earthsdk3-cesium 3.5.0 → 3.6.0-beta.1

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.
@@ -3,12 +3,12 @@ var k1 = (t, i, e) => i in t ? D1(t, i, { enumerable: !0, configurable: !0, writ
3
3
  var m = (t, i, e) => k1(t, typeof i != "symbol" ? i + "" : i, e);
4
4
  import * as h from "cesium";
5
5
  import { Cartesian3 as Wo, Math as ap, WebMercatorTilingScheme as F1, Rectangle as z1, Event as L1, Credit as O1, DefaultProxy as B1, defined as V1, Resource as gg, ImageryLayerFeatureInfo as N1, Frozen as U1 } from "cesium";
6
- import { createGuid as Qe, extendClassProps as ae, Destroyable as L, EngineObject as qi, Event as q, getReactFuncs as Mi, createNextAnimateFrameEvent as F, react as G, cartesianDistance as G1, ObjResettingWithEvent as he, geoRhumbDistance as Od, geoRhumbHeading as hr, geoRhumbDestination as Ft, geoNearestPointOnLine as W1, getDomEventCurrentTargetPos as qt, geoDistance as Ti, ESSceneObject as oe, lbhToXyz as cr, xyzToLbh as nw, createProcessingFromAsyncFunc as Fe, step as fi, reactArrayWithUndefined as Q, getMinMaxCorner as mt, ESImageryLayer as _h, ESTerrainLayer as ga, ES3DTileset as vi, bind as M, geoHeading as wr, animateFrame as H1, geoDestination as $s, min as su, objsIterator as En, max as nu, getGeoBoundingSphereFromPositions as cf, pairToPromise as $1, Vector as di, ESGltfModel as jc, reactJsonWithUndefined as Ge, reactJson as Be, reactArray as j, track as C, reactDeepArrayWithUndefined as rw, defaultGetLocalFilePath as q1, ComplexImage as ru, czmPixelFormats as X1, HasOwner as Bd, reactPositionsSet as Gr, setExtProp as ed, getExtProp as df, getMinMaxPosition as aw, PosFloatDiv as lw, DivPoi as hw, createNextMicroTaskEvent as Y1, Transition as Cr, CanvasPrimitivesContext as Z1, CanvasPoi as uf, DomElementEvent as pc, PointerClick as cw, PointerHover as Q1, CanvasPrimitive as K1, fetchImage as J1, getColorHexStr as fc, getDrawRect as au, drawTextBlock as mg, imageToCanvas as j1, setCanvasUniformColor as eP, ESJPickedResult as dr, createTimeoutWithStartValues as vg, reactPositions as Ke, reactArrayCollectionWithUndefined as tP, Player as ic, ESPoi2D as ot, ESWidget as dw, registerCreatedEventUpdate as Mt, debounce as iP, getDistancesFromPositions as ut, getDefaultValue as lu, ESPathImpl as uw, PlayerProperty as Vd, SmoothMoveController as oP, ESSceneObjectWithId as Di, ESClippingPlane as pw, ESGeoPolygon as Nd, nextAnimateFrame as Zt, ESPolygonFlattenedPlane as sP, registerEventUpdate as Ui, ESExcavate as oc, ESHole as Ud, ESBoxClipping as pf, defaultLocalFileServer as ma, ESAlarm as yg, ESApertureEffect as wg, createEventsCallFunc as $c, geoArea as nP, geoCenterOfMass as rP, ESAreaMeasurement as aP, ESBlastParticleSystem as lP, ESCameraView as hP, ESCameraVisibleRange as Cg, ESCar as cP, ESCityBasePoint as dP, ESClassification as fw, ESCzml as uP, ESDataMesh as An, ColorStops as pP, sleep as gw, fetchArrayBuffer as hu, clampN180_180 as fP, clamp0_360 as gP, ESDirectionMeasurement as mP, inOrderRunning as vP, ESGeoLineString as mw, ESDistanceMeasurement as yP, ESFireParticleSystem as wP, ESVisualObject as td, GroupProperty as ye, EnumProperty as Ii, NumberProperty as ce, StringProperty as qs, Number4Property as ss, JsonProperty as $t, NumberSliderProperty as _g, FunctionProperty as ur, EvalStringProperty as id, BooleanProperty as ue, LongStringProperty as CP, DateProperty as cu, ESLocalVector2D as Pg, reactPosition2Ds as _P, Number2sProperty as PP, ColorProperty as Zn, DashPatternProperty as vw, ESLocalVector as xg, Number3sProperty as xP, ESObjectWithLocation as lp, PositionProperty as SP, RotationProperty as bP, Number3Property as yw, ESGeoVector as Ri, ESJEditingMode as Ye, UriProperty as TP, Number2Property as EP, ESGeoDiv as AP, ESGeoDivTextPoi as MP, isJSON as ww, ESGeoJson as Cw, ESGeoRectangle as IP, ESHeightMeasurement as RP, ESHuman as Sg, ESImageLabel as DP, ESLocalSkyBox as bg, ESLocationMeasurement as Tg, ESParticleSystemPrimitive as kP, ESPoi3D as FP, ESSubmergingAnalysis as bs, ESTextLabel as zP, ESUEWidget as LP, ESUnrealActor as OP, ESVideoFusion as gc, ESViewShed as mc, ESLocalCircle as Eg, ESLocalPolygon as _w, ESLocalPolygonZ as Pw, ESLocalRectangle as BP, ESNavigator as Mn, ESCustomDiv as Gd, createAnimateFrameWithStartValues as ff, ESPath as VP, ESPolygonFence as xw, ESRectangle as NP, ESScale as ta, ESDynamicWater as Ho, ESEntityCluster as qc, ESGeoWater as mo, ESPipeFence as UP, ESPipeline as GP, equalsN3 as Wr, ESPipeserTileset as WP, ESPit as HP, ESPolygonWithHole as $P, clamp as hp, ESSunshineAnalysis as Sw, ESSurfaceAreaMeasurement as qP, ESViewerStatusBar as Zi, ESViewerStatusBarScale as Qi, ESVisibilityAnalysis as XP, ESVolumeMeasurement as YP, ESGeoExtrudedPolygon as vc, ESHumanPoi as ZP, ESRtsTileset as QP, ESRtsFeatureEditing as KP, ESMsTileset as JP, ESStaticMesh as jP, ESSkylineAnalysis as Ag, ESHeatMap as In, ESGeoPoints as ia, getEventFromPromise as ex, Processing as Ca, ObservableArray as tx, CursorInfo as ix, CursorFloatDiv as ox, createCancelablePromise as cp, createNextAnimateFrame as sx, ESViewer as dp, StringsProperty as nx } from "earthsdk3";
6
+ import { createGuid as Qe, extendClassProps as ae, Destroyable as L, EngineObject as qi, Event as q, getReactFuncs as Mi, createNextAnimateFrameEvent as F, react as U, cartesianDistance as G1, ObjResettingWithEvent as he, geoRhumbDistance as Od, geoRhumbHeading as hr, geoRhumbDestination as Ft, geoNearestPointOnLine as W1, getDomEventCurrentTargetPos as qt, geoDistance as Ti, ESSceneObject as oe, lbhToXyz as cr, xyzToLbh as nw, createProcessingFromAsyncFunc as Fe, step as fi, reactArrayWithUndefined as Q, getMinMaxCorner as mt, ESImageryLayer as _h, ESTerrainLayer as ga, ES3DTileset as vi, bind as M, geoHeading as wr, animateFrame as H1, geoDestination as $s, min as su, objsIterator as En, max as nu, getGeoBoundingSphereFromPositions as cf, pairToPromise as $1, Vector as di, ESGltfModel as jc, reactJsonWithUndefined as Ge, reactJson as Be, reactArray as j, track as C, reactDeepArrayWithUndefined as rw, defaultGetLocalFilePath as q1, ComplexImage as ru, czmPixelFormats as X1, HasOwner as Bd, reactPositionsSet as Gr, setExtProp as ed, getExtProp as df, getMinMaxPosition as aw, PosFloatDiv as lw, DivPoi as hw, createNextMicroTaskEvent as Y1, Transition as Cr, CanvasPrimitivesContext as Z1, CanvasPoi as uf, DomElementEvent as pc, PointerClick as cw, PointerHover as Q1, CanvasPrimitive as K1, fetchImage as J1, getColorHexStr as fc, getDrawRect as au, drawTextBlock as mg, imageToCanvas as j1, setCanvasUniformColor as eP, ESJPickedResult as dr, createTimeoutWithStartValues as vg, reactPositions as Ke, reactArrayCollectionWithUndefined as tP, Player as ic, ESPoi2D as ot, ESWidget as dw, registerCreatedEventUpdate as Mt, debounce as iP, getDistancesFromPositions as ut, getDefaultValue as lu, ESPathImpl as uw, PlayerProperty as Vd, SmoothMoveController as oP, ESSceneObjectWithId as Di, ESClippingPlane as pw, ESGeoPolygon as Nd, nextAnimateFrame as Zt, ESPolygonFlattenedPlane as sP, registerEventUpdate as Ui, ESExcavate as oc, ESHole as Ud, ESBoxClipping as pf, defaultLocalFileServer as ma, ESAlarm as yg, ESApertureEffect as wg, createEventsCallFunc as $c, geoArea as nP, geoCenterOfMass as rP, ESAreaMeasurement as aP, ESBlastParticleSystem as lP, ESCameraView as hP, ESCameraVisibleRange as Cg, ESCar as cP, ESCityBasePoint as dP, ESClassification as fw, ESCzml as uP, ESDataMesh as An, ColorStops as pP, sleep as gw, fetchArrayBuffer as hu, clampN180_180 as fP, clamp0_360 as gP, ESDirectionMeasurement as mP, inOrderRunning as vP, ESGeoLineString as mw, ESDistanceMeasurement as yP, ESFireParticleSystem as wP, ESVisualObject as td, GroupProperty as ye, EnumProperty as Ii, NumberProperty as ce, StringProperty as qs, Number4Property as ss, JsonProperty as $t, NumberSliderProperty as _g, FunctionProperty as ur, EvalStringProperty as id, BooleanProperty as ue, LongStringProperty as CP, DateProperty as cu, ESLocalVector2D as Pg, reactPosition2Ds as _P, Number2sProperty as PP, ColorProperty as Zn, DashPatternProperty as vw, ESLocalVector as xg, Number3sProperty as xP, ESObjectWithLocation as lp, PositionProperty as SP, RotationProperty as bP, Number3Property as yw, ESGeoVector as Ri, ESJEditingMode as Ye, UriProperty as TP, Number2Property as EP, ESGeoDiv as AP, ESGeoDivTextPoi as MP, isJSON as ww, ESGeoJson as Cw, ESGeoRectangle as IP, ESHeightMeasurement as RP, ESHuman as Sg, ESImageLabel as DP, ESLocalSkyBox as bg, ESLocationMeasurement as Tg, ESParticleSystemPrimitive as kP, ESPoi3D as FP, ESSubmergingAnalysis as bs, ESTextLabel as zP, ESUEWidget as LP, ESUnrealActor as OP, ESVideoFusion as gc, ESViewShed as mc, ESLocalCircle as Eg, ESLocalPolygon as _w, ESLocalPolygonZ as Pw, ESLocalRectangle as BP, ESNavigator as Mn, ESCustomDiv as Gd, createAnimateFrameWithStartValues as ff, ESPath as VP, ESPolygonFence as xw, ESRectangle as NP, ESScale as ta, ESDynamicWater as Ho, ESEntityCluster as qc, ESGeoWater as mo, ESPipeFence as UP, ESPipeline as GP, equalsN3 as Wr, ESPipeserTileset as WP, ESPit as HP, ESPolygonWithHole as $P, clamp as hp, ESSunshineAnalysis as Sw, ESSurfaceAreaMeasurement as qP, ESViewerStatusBar as Zi, ESViewerStatusBarScale as Qi, ESVisibilityAnalysis as XP, ESVolumeMeasurement as YP, ESGeoExtrudedPolygon as vc, ESHumanPoi as ZP, ESRtsTileset as QP, ESRtsFeatureEditing as KP, ESMsTileset as JP, ESStaticMesh as jP, ESSkylineAnalysis as Ag, ESHeatMap as In, ESGeoPoints as ia, getEventFromPromise as ex, Processing as Ca, ObservableArray as tx, CursorInfo as ix, CursorFloatDiv as ox, createCancelablePromise as cp, createNextAnimateFrame as sx, ESViewer as dp, StringsProperty as nx } from "earthsdk3";
7
7
  import gf from "html2canvas";
8
8
  import * as rx from "mvt-basic-render";
9
9
  import ax from "delaunator";
10
10
  import lx from "earcut";
11
- window.Cesium = h;
11
+ globalThis.Cesium = h;
12
12
  function hx() {
13
13
  Object.keys(h).forEach((t) => {
14
14
  h[t].prototype && Object.defineProperty(h[t].prototype, "ESSceneObjectID", {
@@ -409,19 +409,19 @@ class bx extends L {
409
409
  class Hr extends L {
410
410
  constructor(e, o, s, n) {
411
411
  super();
412
- m(this, "_visibleAlpha", this.disposeVar(G(1)));
413
- m(this, "_viewDistance", this.disposeVar(G(0)));
414
- m(this, "_debug", this.disposeVar(G(!1)));
412
+ m(this, "_visibleAlpha", this.disposeVar(U(1)));
413
+ m(this, "_viewDistance", this.disposeVar(U(0)));
414
+ m(this, "_debug", this.disposeVar(U(!1)));
415
415
  m(this, "_viewDistanceDebug", this.disposeVar(new bx(this)));
416
416
  this._czmViewer = e, this._positionReact = s;
417
417
  const { positionReact: r, czmViewer: a } = this, [l, c, d] = Mi(o), [u, p, f] = Mi(r), [g, v, _] = n ? Mi(n) : [void 0, void 0, void 0], P = () => {
418
418
  let T = 1, E = Number.NEGATIVE_INFINITY;
419
- const D = l(), B = u(), V = g ? g() : 0, U = a.getCurrentCameraInfo();
420
- if (!D || !B || !U) {
419
+ const D = l(), B = u(), V = g ? g() : 0, G = a.getCurrentCameraInfo();
420
+ if (!D || !B || !G) {
421
421
  this._viewDistance.value = E, this._visibleAlpha.value = T;
422
422
  return;
423
423
  }
424
- E = G1(U.position, B) - (V ?? 0);
424
+ E = G1(G.position, B) - (V ?? 0);
425
425
  const [W, z, N, y] = D;
426
426
  W > z || z > N || N > y ? console.error("viewDistanceRange存在问题,需要满足逐级增大的条件,否则不生效!") : E >= z && E <= N ? T = 1 : E <= W || E >= y ? T = 0 : E > W && E < z ? z - W <= 0 ? T = 0 : T = (E - W) / (z - W) : E > N && E < y ? (y <= N && (T = 0), T = (y - E) / (y - N)) : (T = 1, console.error("不应该运行至此!")), this._viewDistance.value = E, this._visibleAlpha.value = T;
427
427
  };
@@ -609,7 +609,7 @@ function Aw(t, i) {
609
609
  i.type === "Color" ? t.uniforms.color = de(i.color ?? [1, 1, 1, 1]) : i.type === "PolylineArrow" ? t.uniforms.color = de(i.color ?? [1, 1, 1, 1]) : i.type === "PolylineDash" ? (t.uniforms.color = de(i.color ?? [1, 1, 1, 1]), t.uniforms.gapColor = de(i.gapColor ?? [0, 0, 0, 0]), t.uniforms.dashLength = i.dashLength ?? 16, t.uniforms.dashPattern = i.dashPattern ?? 255) : i.type === "PolylineGlow" ? (t.uniforms.color = de(i.color ?? [1, 1, 1, 1]), t.uniforms.glowPower = i.glowPower ?? 0.25, t.uniforms.taperPower = i.taperPower ?? 1) : i.type === "PolylineOutline" ? (t.uniforms.color = de(i.color ?? [1, 1, 1, 1]), t.uniforms.outlineColor = de(i.outlineColor ?? [1, 0, 0, 1]), t.uniforms.outlineWidth = i.outlineWidth ?? 1) : i.type === "Image" ? (t.uniforms.image = ti(i.image), t.uniforms.repeat = De(i.repeat ?? [1, 1]), t.uniforms.color = de(i.color ?? [1, 1, 1, 1])) : i.type === "DiffuseMap" ? (t.uniforms.image = ti(i.image), t.uniforms.repeat = De(i.repeat ?? [1, 1]), t.uniforms.channels = i.channels ?? "rgb") : i.type === "AlphaMap" ? (t.uniforms.image = ti(i.image), t.uniforms.repeat = De(i.repeat ?? [1, 1]), t.uniforms.channel = i.channel ?? "a") : i.type === "SpecularMap" ? (t.uniforms.image = ti(i.image), t.uniforms.repeat = De(i.repeat ?? [1, 1]), t.uniforms.channel = i.channel ?? "r") : i.type === "EmissionMap" ? (t.uniforms.image = ti(i.image), t.uniforms.repeat = De(i.repeat ?? [1, 1]), t.uniforms.channels = i.channels ?? "rgb") : i.type === "BumpMap" ? (t.uniforms.image = ti(i.image), t.uniforms.repeat = De(i.repeat ?? [1, 1]), t.uniforms.channel = i.channel ?? "r", t.uniforms.strength = i.strength ?? 0.8) : i.type === "NormalMap" ? (t.uniforms.image = ti(i.image), t.uniforms.repeat = De(i.repeat ?? [1, 1]), t.uniforms.channels = i.channels ?? "rgb", t.uniforms.strength = i.strength ?? 0.8) : i.type === "Grid" ? (t.uniforms.color = de(i.color ?? [0, 1, 0, 1]), t.uniforms.cellAlpha = i.cellAlpha ?? 0.1, t.uniforms.lineCount = De(i.lineCount ?? [8, 8]), t.uniforms.lineThickness = De(i.lineThickness ?? [1, 1]), t.uniforms.lineOffset = De(i.lineOffset ?? [0, 0])) : i.type === "Stripe" ? (t.uniforms.evenColor = de(i.evenColor ?? [1, 1, 1, 0.5]), t.uniforms.oddColor = de(i.oddColor ?? [0, 0, 1, 0.5]), t.uniforms.horizontal = i.horizontal ?? !0, t.uniforms.offset = i.offset ?? 0, t.uniforms.repeat = i.repeat ?? 5) : i.type === "Checkerboard" ? (t.uniforms.lightColor = de(i.lightColor ?? [1, 1, 1, 0.5]), t.uniforms.darkColor = de(i.darkColor ?? [0, 0, 0, 0.5]), t.uniforms.repeat = De(i.repeat ?? [5, 5])) : i.type === "Dot" ? (t.uniforms.lightColor = de(i.lightColor ?? [1, 1, 0, 0.75]), t.uniforms.darkColor = de(i.darkColor ?? [0, 1, 1, 0.75]), t.uniforms.repeat = De(i.repeat ?? [5, 5])) : i.type === "Water" ? (t.uniforms.baseWaterColor = de(i.baseWaterColor ?? [0.2, 0.3, 0.6, 1]), t.uniforms.blendColor = de(i.blendColor ?? [0, 1, 0.699, 1]), t.uniforms.specularMap = ti(i.specularMap), t.uniforms.normalMap = ti(i.normalMap), t.uniforms.frequency = i.frequency ?? 10, t.uniforms.animationSpeed = i.animationSpeed ?? 0.01, t.uniforms.amplitude = i.amplitude ?? 1, t.uniforms.specularIntensity = i.specularIntensity ?? 0.5, t.uniforms.fadeFactor = i.fadeFactor ?? 1) : i.type === "RimLighting" ? (t.uniforms.color = de(i.color ?? [1, 0, 0, 0.7]), t.uniforms.rimColor = de(i.rimColor ?? [1, 1, 1, 0.4]), t.uniforms.width = i.width ?? 0.3) : i.type === "Fade" ? (t.uniforms.fadeInColor = de(i.fadeInColor ?? [1, 0, 0, 1]), t.uniforms.fadeOutColor = de(i.fadeOutColor ?? [0, 0, 0, 0]), t.uniforms.maximumDistance = i.maximumDistance ?? 0.5, t.uniforms.repeat = i.repeat ?? !0, t.uniforms.fadeDirection = zx(i.fadeDirection ?? [!0, !0]), t.uniforms.time = De(i.time ?? [0.5, 0.5])) : i.type === "ElevationContour" ? (t.uniforms.color = de(i.color ?? [1, 0, 0, 1]), t.uniforms.spacing = i.spacing ?? 100, t.uniforms.width = i.width ?? 1) : i.type === "ElevationRamp" ? (t.uniforms.image = ti(i.image), t.uniforms.minimumHeight = i.minimumHeight ?? 0, t.uniforms.maximumHeight = i.maximumHeight ?? 1e4) : i.type === "AspectRamp" ? t.uniforms.image = ti(i.image) : i.type === "ElevationBand" ? (t.uniforms.color = ti(i.colors), t.uniforms.heights = ti(i.heights)) : i.type === "XbsjPolylineArrow" ? (t.uniforms.color = de(i.color ?? [1, 1, 1, 1]), t.uniforms.image = ti(i.image), t.uniforms.repeat = i.repeat ?? 60, t.uniforms.speed = i.speed ?? 1, t.uniforms.lineLength = i.lineLength ?? 1, t.uniforms.arrowColor = de(i.arrowColor ?? [1, 1, 1, 1])) : console.warn(`未知材质类型,无法更新 ${i.type}`);
610
610
  }
611
611
  function fo(t, i) {
612
- const e = G(void 0);
612
+ const e = U(void 0);
613
613
  let o = "";
614
614
  const [s, n, r] = Mi(t), a = () => {
615
615
  try {
@@ -1241,7 +1241,7 @@ class Vw extends L {
1241
1241
  constructor(e) {
1242
1242
  super();
1243
1243
  m(this, "_center", this.disposeVar(Q(void 0)));
1244
- m(this, "_radius", this.disposeVar(G(0)));
1244
+ m(this, "_radius", this.disposeVar(U(0)));
1245
1245
  const [o, s, n] = Mi(e);
1246
1246
  {
1247
1247
  const r = () => {
@@ -1575,7 +1575,7 @@ class bS extends L {
1575
1575
  for (let P = 0, w = _.length; P < w; P++) {
1576
1576
  const S = _[P];
1577
1577
  if (h.defined(S) && S > 0 && S < 1) {
1578
- const T = d.frustumCommandsList[g], E = T.near * (P !== 0 ? s.opaqueFrustumNearOffset : 1), D = T.far, B = E + S * (D - E), V = Math.floor(P / d.viewport.width), U = P % d.viewport.width, W = (V - d.viewport.height / 2) * (r / d.viewport.height), z = (U - d.viewport.width / 2) * (n / d.viewport.width), N = new h.Cartesian3();
1578
+ const T = d.frustumCommandsList[g], E = T.near * (P !== 0 ? s.opaqueFrustumNearOffset : 1), D = T.far, B = E + S * (D - E), V = Math.floor(P / d.viewport.width), G = P % d.viewport.width, W = (V - d.viewport.height / 2) * (r / d.viewport.height), z = (G - d.viewport.width / 2) * (n / d.viewport.width), N = new h.Cartesian3();
1579
1579
  h.Cartesian3.multiplyByScalar(u.up, W, f), h.Cartesian3.add(f, u.position, N), h.Cartesian3.multiplyByScalar(u.right, z, f), h.Cartesian3.add(f, N, N);
1580
1580
  const y = h.Ray.clone(e);
1581
1581
  y.origin = N;
@@ -1712,7 +1712,7 @@ class TS extends L {
1712
1712
  constructor() {
1713
1713
  super(...arguments);
1714
1714
  m(this, "_currentPosition", this.disposeVar(Q(void 0)));
1715
- m(this, "_currentHeading", this.disposeVar(G(void 0)));
1715
+ m(this, "_currentHeading", this.disposeVar(U(void 0)));
1716
1716
  m(this, "_startPosition", [0, 0, 0]);
1717
1717
  m(this, "_processing", this.disposeVar(Fe(async (e, o, s) => {
1718
1718
  const { currentPosition: n } = this;
@@ -1988,7 +1988,7 @@ function Hg(t, i, e, o) {
1988
1988
  return s.innerHTML = qr(t), s.position = i, s.show = !0, s;
1989
1989
  }
1990
1990
  function IS(t) {
1991
- const [i, e, o] = Mi(t), s = G(void 0), n = () => {
1991
+ const [i, e, o] = Mi(t), s = U(void 0), n = () => {
1992
1992
  const r = i();
1993
1993
  s.value = r && cf(r);
1994
1994
  };
@@ -2597,9 +2597,9 @@ class XS extends L {
2597
2597
  const wc = new h.Cartesian3(), YS = new h.HeadingPitchRoll(), qg = new h.Matrix3(), ZS = new h.Quaternion(), Cc = h.ModelComponents.Attribute, QS = h.ModelComponents.FeatureIdAttribute, qw = h.ModelComponents.Instances;
2598
2598
  function KS(t, i, e, o) {
2599
2599
  if (!o || o.length === 0) {
2600
- const U = i.nodes, W = U.length;
2600
+ const G = i.nodes, W = G.length;
2601
2601
  for (let z = 0; z < W; z++) {
2602
- const N = U[z];
2602
+ const N = G[z];
2603
2603
  N.primitives.length > 0 && (N.instances = void 0);
2604
2604
  }
2605
2605
  return;
@@ -2607,7 +2607,7 @@ function KS(t, i, e, o) {
2607
2607
  let s;
2608
2608
  const n = o ? o.length : 0;
2609
2609
  if (n === 0) return;
2610
- const r = new Float32Array(3 * n), a = new Float32Array(4 * n), l = new Float32Array(3 * n), c = new Float32Array(n), d = new Array(4), u = new Array(3), p = h.BoundingSphere.fromPoints(o.map((U) => Ze(U.position))), f = h.Matrix4.inverse(h.Transforms.northWestUpToFixedFrame(p.center), new h.Matrix4());
2610
+ const r = new Float32Array(3 * n), a = new Float32Array(4 * n), l = new Float32Array(3 * n), c = new Float32Array(n), d = new Array(4), u = new Array(3), p = h.BoundingSphere.fromPoints(o.map((G) => Ze(G.position))), f = h.Matrix4.inverse(h.Transforms.northWestUpToFixedFrame(p.center), new h.Matrix4());
2611
2611
  for (s = 0; s < n; s++)
2612
2612
  h.Matrix4.multiplyByPoint(f, Ze(o[s].position), wc), r[3 * s + 0] = wc.x, r[3 * s + 1] = wc.y, r[3 * s + 2] = wc.z, h.Matrix3.fromHeadingPitchRoll(h.HeadingPitchRoll.fromDegrees(...o[s].rotation ?? [0, 0, 0], YS), qg), h.Quaternion.pack(h.Quaternion.fromRotationMatrix(qg, ZS), d, 0), a[4 * s + 0] = d[0], a[4 * s + 1] = d[1], a[4 * s + 2] = d[2], a[4 * s + 3] = d[3], h.Cartesian3.pack(h.Cartesian3.fromArray(o[s].scale ?? [1, 1, 1]), u, 0), l[3 * s + 0] = u[1], l[3 * s + 1] = u[0], l[3 * s + 2] = u[2], c[s] = s;
2613
2613
  const g = new qw();
@@ -2631,8 +2631,8 @@ function KS(t, i, e, o) {
2631
2631
  const D = i.nodes, B = D.length;
2632
2632
  let V = !1;
2633
2633
  for (s = 0; s < B; s++) {
2634
- const U = D[s];
2635
- U.primitives.length > 0 && (U.instances = V ? jS(g) : g, V = !0);
2634
+ const G = D[s];
2635
+ G.primitives.length > 0 && (G.instances = V ? jS(g) : g, V = !0);
2636
2636
  }
2637
2637
  }
2638
2638
  function JS(t, i) {
@@ -2881,19 +2881,19 @@ const vu = {
2881
2881
  super();
2882
2882
  m(this, "_readyEvent", this.disposeVar(new q()));
2883
2883
  m(this, "_flyToEvent", this.disposeVar(new q()));
2884
- m(this, "_customShaderInstanceClass", this.disposeVar(G(void 0)));
2884
+ m(this, "_customShaderInstanceClass", this.disposeVar(U(void 0)));
2885
2885
  m(this, "_updateCustomShaderEvent", this.disposeVar(new q()));
2886
2886
  m(this, "_activeAnimations", this.disposeVar(rw(void 0, (e, o) => e.animationTime === o.animationTime && e.delay === o.delay && e.index === o.index && e.loop === o.loop && e.multiplier === o.multiplier && e.name === o.name && e.removeOnStop === o.removeOnStop && e.reverse === o.reverse && h.JulianDate.equals(e.startTime, o.startTime) && h.JulianDate.equals(e.stopTime, o.stopTime) && !0, (e) => ({ ...e }))));
2887
2887
  m(this, "_primitive");
2888
2888
  m(this, "_customShaderInstance");
2889
- m(this, "_gltf", this.disposeVar(G(void 0)));
2889
+ m(this, "_gltf", this.disposeVar(U(void 0)));
2890
2890
  m(this, "_czmViewVisibleDistanceRangeControl");
2891
2891
  // private _viewDistanceDebugBinding = (this.dispose(track([this._czmViewVisibleDistanceRangeControl, 'debug'], [this, 'viewDistanceDebug'])), 0);
2892
- m(this, "_sceneScaleFromPixelSize", this.disposeVar(G(void 0)));
2893
- m(this, "_finalShowReact", this.disposeVar(G(!0)));
2892
+ m(this, "_sceneScaleFromPixelSize", this.disposeVar(U(void 0)));
2893
+ m(this, "_finalShowReact", this.disposeVar(U(!0)));
2894
2894
  m(this, "_finalModelUriReact");
2895
2895
  m(this, "_finalSpecularEnvironmentMapsReact", this.disposeVar(oe.context.createEnvStrReact([this, "specularEnvironmentMaps"])));
2896
- m(this, "_id", this.disposeVar(G(void 0)));
2896
+ m(this, "_id", this.disposeVar(U(void 0)));
2897
2897
  m(this, "_setMaterialEvent", this.disposeVar(new q()));
2898
2898
  m(this, "_resetEvent", this.disposeVar(new q()));
2899
2899
  m(this, "_printDebugInfoEvent", this.disposeVar(new q()));
@@ -3504,8 +3504,8 @@ const tr = class tr extends L {
3504
3504
  console.warn("剪切板中没有图像!");
3505
3505
  return;
3506
3506
  }
3507
- const r = await e.promise(s.getType(s.types[n])), a = window.URL.createObjectURL(new Blob([r]));
3508
- e.disposer.dispose(() => window.URL.revokeObjectURL(a));
3507
+ const r = await e.promise(s.getType(s.types[n])), a = globalThis.URL.createObjectURL(new Blob([r]));
3508
+ e.disposer.dispose(() => globalThis.URL.revokeObjectURL(a));
3509
3509
  const l = await e.promise(new Promise((c, d) => {
3510
3510
  const u = new Image();
3511
3511
  u.src = a, u.onload = () => c(u), u.onerror = () => d("无法加载图片!"), u.onabort = () => d("加载图片被中断!");
@@ -3514,15 +3514,15 @@ const tr = class tr extends L {
3514
3514
  })));
3515
3515
  m(this, "_readyEvent", this.disposeVar(new q()));
3516
3516
  m(this, "_czmNativeTexture");
3517
- m(this, "_id", this.disposeVar(G(Qe())));
3517
+ m(this, "_id", this.disposeVar(U(Qe())));
3518
3518
  if (this._czmViewer = e, o && (this.id = o), this._czmNativeTexture = this.disposeVar(new ob(this.czmViewer.viewer, this.complexImage)), this.disposeVar(new he(this.showPreviewChanged, () => {
3519
3519
  if (this.showPreview)
3520
3520
  return new ab(this);
3521
3521
  })), !this._czmViewer.viewer) return;
3522
3522
  this.readyEvent.emit(e), this.dispose(C([this._complexImage, "enabled"], [this, "enabled"])), this.dispose(M([this._complexImage, "size"], [this, "size"])), this.dispose(M([this._complexImage, "pixelFormat"], [this, "pixelFormat"])), this.dispose(M([this._complexImage, "flipY"], [this, "flipY"]));
3523
3523
  const n = this.disposeVar(oe.context.createEnvStrReact([this, "uri"], ""));
3524
- this.dispose(M([this._complexImage, "uri"], n)), this.dispose(M([this._complexImage, "type"], [this, "uriType"])), this.dispose(M([this._complexImage, "crossOrigin"], [this, "crossOrigin"], (r) => r === "null" ? null : r)), this.dispose(M([this._complexImage, "autoplay"], [this, "autoplay"])), this.dispose(M([this._complexImage, "loop"], [this, "loop"])), window.czmTexture || (window.czmTexture = {}), window.czmTexture[this.id] = this, this.ad(() => {
3525
- Reflect.has(window.czmTexture, this.id) && Reflect.deleteProperty(window.czmTexture, this.id);
3524
+ this.dispose(M([this._complexImage, "uri"], n)), this.dispose(M([this._complexImage, "type"], [this, "uriType"])), this.dispose(M([this._complexImage, "crossOrigin"], [this, "crossOrigin"], (r) => r === "null" ? null : r)), this.dispose(M([this._complexImage, "autoplay"], [this, "autoplay"])), this.dispose(M([this._complexImage, "loop"], [this, "loop"])), globalThis.czmTexture || (globalThis.czmTexture = {}), globalThis.czmTexture[this.id] = this, this.ad(() => {
3525
+ Reflect.has(globalThis.czmTexture, this.id) && Reflect.deleteProperty(globalThis.czmTexture, this.id);
3526
3526
  });
3527
3527
  }
3528
3528
  get complexImage() {
@@ -4177,7 +4177,7 @@ class bh extends L {
4177
4177
  super();
4178
4178
  m(this, "_flyToEvent", this.disposeVar(new q()));
4179
4179
  m(this, "_primitive");
4180
- m(this, "_id", this.disposeVar(G(Qe())));
4180
+ m(this, "_id", this.disposeVar(U(Qe())));
4181
4181
  o && (this.id = o);
4182
4182
  const s = e.viewer;
4183
4183
  if (!s) return;
@@ -4493,7 +4493,7 @@ function Sb(t) {
4493
4493
  class bb extends L {
4494
4494
  constructor() {
4495
4495
  super(...arguments);
4496
- m(this, "_show", this.disposeVar(G(!0)));
4496
+ m(this, "_show", this.disposeVar(U(!0)));
4497
4497
  }
4498
4498
  get show() {
4499
4499
  return this._show.value;
@@ -4557,7 +4557,7 @@ class Eh extends bb {
4557
4557
  super();
4558
4558
  m(this, "_updateEvent", this.disposeVar(new q()));
4559
4559
  m(this, "_drawCommand");
4560
- m(this, "_ESSceneObjectID", this.disposeVar(G(Qe())));
4560
+ m(this, "_ESSceneObjectID", this.disposeVar(U(Qe())));
4561
4561
  this._scene = e, o && (this.ESSceneObjectID = o);
4562
4562
  const s = this._scene, { context: n } = s;
4563
4563
  let r = !1, a = !1, l = !1, c = !1, d = !1, u, p, f, g, v, _, P;
@@ -4580,7 +4580,7 @@ class Eh extends bb {
4580
4580
  const { attributes: D, indexTypedArray: B } = this;
4581
4581
  if (r && D) {
4582
4582
  r = !1;
4583
- const V = {}, U = {}, W = [];
4583
+ const V = {}, G = {}, W = [];
4584
4584
  let z = 0;
4585
4585
  for (let [N, y] of Object.entries(D)) {
4586
4586
  const b = z++, { typedArray: R, componentsPerAttribute: O, usage: $ = h.BufferUsage.STATIC_DRAW, normalize: J = !1 } = y;
@@ -4591,7 +4591,7 @@ class Eh extends bb {
4591
4591
  V[N] = b;
4592
4592
  let Z;
4593
4593
  const K = p && p[N] ? df(p[N], "_originAttribute") : void 0;
4594
- K && Ib(K, y) ? (Z = p[N], delete p[N], U[N] = Z) : K && K.typedArray !== y.typedArray && K.typedArray.byteLength === y.typedArray.byteLength && K.usage === y.usage ? (Z = p[N], Z.copyFromArrayView(y.typedArray), delete p[N], U[N] = Z, ed(U[N], "_originAttribute", y)) : (Z = h.Buffer.createVertexBuffer({ context: n, typedArray: R, usage: $ }), Z.vertexArrayDestroyable = !1, U[N] = Z, ed(U[N], "_originAttribute", y)), W.push({
4594
+ K && Ib(K, y) ? (Z = p[N], delete p[N], G[N] = Z) : K && K.typedArray !== y.typedArray && K.typedArray.byteLength === y.typedArray.byteLength && K.usage === y.usage ? (Z = p[N], Z.copyFromArrayView(y.typedArray), delete p[N], G[N] = Z, ed(G[N], "_originAttribute", y)) : (Z = h.Buffer.createVertexBuffer({ context: n, typedArray: R, usage: $ }), Z.vertexArrayDestroyable = !1, G[N] = Z, ed(G[N], "_originAttribute", y)), W.push({
4595
4595
  index: b,
4596
4596
  vertexBuffer: Z,
4597
4597
  componentsPerAttribute: O,
@@ -4602,7 +4602,7 @@ class Eh extends bb {
4602
4602
  if (p)
4603
4603
  for (let N of Object.values(p))
4604
4604
  N.destroy();
4605
- (!f || f.length !== W.length || f.some((N, y) => !Mb(N, W[y]))) && (l = !0), p = U, f = W, V && (!u || !Ab(V, u)) && (u = V, c = !0, l = !0);
4605
+ (!f || f.length !== W.length || f.some((N, y) => !Mb(N, W[y]))) && (l = !0), p = G, f = W, V && (!u || !Ab(V, u)) && (u = V, c = !0, l = !0);
4606
4606
  }
4607
4607
  if (a && (a = !1, g && (g.destroy(), g = void 0), g = B ? h.Buffer.createIndexBuffer({
4608
4608
  context: n,
@@ -4618,13 +4618,13 @@ class Eh extends bb {
4618
4618
  }), P ? P.vertexArray = v : d = !0)), c) {
4619
4619
  c = !1;
4620
4620
  const V = S.obj;
4621
- let U;
4621
+ let G;
4622
4622
  if (V) {
4623
4623
  const { red: W, green: z, blue: N, alpha: y } = V.color;
4624
- U = `const vec4 xbsjPickColor220823 = ${`vec4(${W.toFixed(6)}, ${z.toFixed(6)}, ${N.toFixed(6)}, ${y.toFixed(6)})`};
4624
+ G = `const vec4 xbsjPickColor220823 = ${`vec4(${W.toFixed(6)}, ${z.toFixed(6)}, ${N.toFixed(6)}, ${y.toFixed(6)})`};
4625
4625
  `;
4626
4626
  } else
4627
- U = "";
4627
+ G = "";
4628
4628
  u && (_ = h.ShaderProgram.fromCache({
4629
4629
  context: n,
4630
4630
  vertexShaderSource: new h.ShaderSource({
@@ -4632,7 +4632,7 @@ class Eh extends bb {
4632
4632
  // defines: this.vertexShaderDefines,
4633
4633
  }),
4634
4634
  fragmentShaderSource: new h.ShaderSource({
4635
- sources: [U, this.fragmentShaderSource]
4635
+ sources: [G, this.fragmentShaderSource]
4636
4636
  // defines: fragmentSahderDefines,
4637
4637
  }),
4638
4638
  attributeLocations: u
@@ -4686,7 +4686,7 @@ class Eh extends bb {
4686
4686
  }
4687
4687
  ((t) => {
4688
4688
  t.createDefaultProps = () => ({
4689
- modelMatrix: G(new h.Matrix4(), h.Matrix4.equals, h.Matrix4.clone),
4689
+ modelMatrix: U(new h.Matrix4(), h.Matrix4.equals, h.Matrix4.clone),
4690
4690
  boundingVolume: void 0,
4691
4691
  //@ts-ignore
4692
4692
  pass: h.Pass.OPAQUE,
@@ -4736,15 +4736,15 @@ function Rb(t) {
4736
4736
  const tt = class tt extends L {
4737
4737
  constructor(e, o) {
4738
4738
  super();
4739
- m(this, "_attributes", this.disposeVar(G(void 0)));
4740
- m(this, "_indexTypedArray", this.disposeVar(G(void 0)));
4739
+ m(this, "_attributes", this.disposeVar(U(void 0)));
4740
+ m(this, "_indexTypedArray", this.disposeVar(U(void 0)));
4741
4741
  m(this, "_flyToEvent", this.disposeVar(new q()));
4742
4742
  m(this, "_sceneScaleEvent", this.disposeVar(new q()));
4743
4743
  m(this, "_nativePrimitive");
4744
4744
  m(this, "_lastCzmPickResult");
4745
4745
  m(this, "_czmViewVisibleDistanceRangeControl");
4746
4746
  // private _viewDistanceDebugBinding = (this.dispose(track([this._czmViewVisibleDistanceRangeControl, 'debug'], [this, 'viewDistanceDebug'])), 0);
4747
- m(this, "_id", this.disposeVar(G(Qe())));
4747
+ m(this, "_id", this.disposeVar(U(Qe())));
4748
4748
  this._czmViewer = e, o && (this.id = o), this._czmViewVisibleDistanceRangeControl = this.disposeVar(new Hr(
4749
4749
  this.czmViewer,
4750
4750
  [this, "viewDistanceRange"],
@@ -4765,7 +4765,7 @@ const tt = class tt extends L {
4765
4765
  return this.allowPickingDepth ? void 0 : new We.ObjectsToExcludeWrapper(this.czmViewer, [a]);
4766
4766
  }));
4767
4767
  }
4768
- const l = G(void 0);
4768
+ const l = U(void 0);
4769
4769
  {
4770
4770
  const d = () => {
4771
4771
  let u;
@@ -4790,7 +4790,7 @@ const tt = class tt extends L {
4790
4790
  };
4791
4791
  d(), this.dispose(this.showChanged.disposableOn(d)), this.dispose(this.visibleAlphaChanged.disposableOn(d));
4792
4792
  }
4793
- const c = this.disposeVar(G(void 0));
4793
+ const c = this.disposeVar(U(void 0));
4794
4794
  {
4795
4795
  const d = () => {
4796
4796
  const p = qe({
@@ -4947,7 +4947,7 @@ const tt = class tt extends L {
4947
4947
  const T = new je(e);
4948
4948
  T.enabled = !0, T.uri = S.uri, T.uriType = "img", p[w] = T, v[w] = () => T.texture ? T.texture : r.defaultTexture;
4949
4949
  } else "type" in S && S.type === "texture" && (S.id || console.warn(`uniform变量设置错误:${w} 的配置中id未设置或者无效!id为${S.id}`), v[w] = () => {
4950
- const T = window.czmTexture[S.id];
4950
+ const T = globalThis.czmTexture[S.id];
4951
4951
  return T ? T.texture : r.defaultTexture;
4952
4952
  });
4953
4953
  }
@@ -5126,7 +5126,7 @@ let Xe = tt;
5126
5126
  showSceneScale: void 0,
5127
5127
  // 显示每个窗口中的模型缩放值
5128
5128
  modelMatrix: Q(void 0),
5129
- cull: G(void 0),
5129
+ cull: U(void 0),
5130
5130
  boundingVolume: Be(void 0),
5131
5131
  // TODO JSONValue => RenderStateOptions
5132
5132
  renderState: Be(void 0),
@@ -5173,8 +5173,8 @@ class eB extends L {
5173
5173
  constructor(e, o) {
5174
5174
  super();
5175
5175
  m(this, "_cursorDiv");
5176
- m(this, "_pointerOut", this.disposeVar(G(!0)));
5177
- m(this, "_show", this.disposeVar(G(!0)));
5176
+ m(this, "_pointerOut", this.disposeVar(U(!0)));
5177
+ m(this, "_show", this.disposeVar(U(!0)));
5178
5178
  this._cursorDiv = new hw(o, e), this.dispose(() => this._cursorDiv.destroy());
5179
5179
  const s = (a) => {
5180
5180
  const [l, c] = qt(a);
@@ -5215,11 +5215,11 @@ class eB extends L {
5215
5215
  class Db extends L {
5216
5216
  constructor(e, o) {
5217
5217
  super();
5218
- m(this, "_show", this.disposeVar(G(!0)));
5218
+ m(this, "_show", this.disposeVar(U(!0)));
5219
5219
  m(this, "_winPosFromCartesian");
5220
- m(this, "_near", this.disposeVar(G(0)));
5221
- m(this, "_far", this.disposeVar(G(Number.POSITIVE_INFINITY)));
5222
- m(this, "_actualShow", this.disposeVar(G(!1)));
5220
+ m(this, "_near", this.disposeVar(U(0)));
5221
+ m(this, "_far", this.disposeVar(U(Number.POSITIVE_INFINITY)));
5222
+ m(this, "_actualShow", this.disposeVar(U(!1)));
5223
5223
  this._czmPoisContext = e;
5224
5224
  const { viewer: s, cameraChanged: n } = this._czmPoisContext;
5225
5225
  this._winPosFromCartesian = o || this.disposeVar(new wf(s, !0, n));
@@ -5601,10 +5601,10 @@ class ps extends L {
5601
5601
  m(this, "_clickOutEvent", this.disposeVar(new q()));
5602
5602
  m(this, "_dblclickEvent", this.disposeVar(new q()));
5603
5603
  m(this, "_dblclickOutEvent", this.disposeVar(new q()));
5604
- m(this, "_canvasPoiClassAndCreateFunc", G(void 0));
5604
+ m(this, "_canvasPoiClassAndCreateFunc", U(void 0));
5605
5605
  m(this, "_czmViewVisibleDistanceRangeControl");
5606
5606
  m(this, "_canvasObj");
5607
- m(this, "_id", this.disposeVar(G(Qe())));
5607
+ m(this, "_id", this.disposeVar(U(Qe())));
5608
5608
  o && (this.id = o), this._czmViewVisibleDistanceRangeControl = this.disposeVar(new Hr(
5609
5609
  e,
5610
5610
  [this, "viewDistanceRange"],
@@ -5775,7 +5775,7 @@ class zb extends L {
5775
5775
  (i.enabled ?? !0) && i.dbclickEvent.emit(f);
5776
5776
  })), this.dispose(e.dbclickOutEvent.disposableOn((c, d, u, p, f) => {
5777
5777
  (i.enabled ?? !0) && i.dbclickOutEvent.emit(f);
5778
- })), this.dispose(M([i, "hovered"], [e, "hovered"])), this.ad(M([e, "isHoverZoom"], [i, "isHoverZoom"]));
5778
+ })), this.dispose(M([i, "hovered"], [e, "hovered"])), this.ad(M([e, "isHoverZoom"], [i, "isHoverZoom"])), this.ad(M([e, "hoverHighlight"], [i, "hoverHighlight"]));
5779
5779
  }
5780
5780
  }
5781
5781
  function Lb(t, i) {
@@ -5795,8 +5795,9 @@ class Ob extends uf {
5795
5795
  m(this, "_fgColor", [1, 1, 1, 1]);
5796
5796
  m(this, "_fgColorHexStr", fc(this._fgColor));
5797
5797
  // 用来强制确定tooltipShow是否显示
5798
- m(this, "_tooltipShow", this.disposeVar(G(!0)));
5799
- m(this, "_isHoverZoom", this.disposeVar(G(!1)));
5798
+ m(this, "_tooltipShow", this.disposeVar(U(!0)));
5799
+ m(this, "_isHoverZoom", this.disposeVar(U(!1)));
5800
+ m(this, "_hoverHighlight", this.disposeVar(U(!1)));
5800
5801
  this._image = o, this._size = s, this._originRatioAndOffset = n, this._defaultColorStr = r;
5801
5802
  const a = new Cr(100), l = new Cr(100);
5802
5803
  this.dispose(() => {
@@ -5810,7 +5811,7 @@ class Ob extends uf {
5810
5811
  }));
5811
5812
  const d = () => {
5812
5813
  const u = this.tooltipShow && this.hovered;
5813
- a.target = u ? 1 : 0, c(), this.needRedraw();
5814
+ a.target = u ? 1 : 0, c(), this.hoverHighlight && (this.hovered ? this.selected = !0 : this.selected = !1), this.needRedraw();
5814
5815
  };
5815
5816
  this.dispose(this.hoveredChanged.disposableOn(d)), this.dispose(this.tooltipShowChanged.disposableOn(d)), this.dispose(this.selectedChanged.disposableOn(() => {
5816
5817
  this.needRedraw();
@@ -5834,6 +5835,15 @@ class Ob extends uf {
5834
5835
  get isHoverZoomChanged() {
5835
5836
  return this._isHoverZoom.changed;
5836
5837
  }
5838
+ get hoverHighlight() {
5839
+ return this._hoverHighlight.value;
5840
+ }
5841
+ set hoverHighlight(e) {
5842
+ this._hoverHighlight.value = e;
5843
+ }
5844
+ get hoverHighlightChanged() {
5845
+ return this._hoverHighlight.changed;
5846
+ }
5837
5847
  set size(e) {
5838
5848
  const [o, s] = e, [n, r] = this._size;
5839
5849
  (n !== o || r !== s) && (this._size[0] = o, this._size[1] = s, this.needRedraw(), this.needPickRedraw());
@@ -5930,7 +5940,7 @@ class Io extends L {
5930
5940
  m(this, "_clickOutEvent", this.disposeVar(new q()));
5931
5941
  m(this, "_dbclickEvent", this.disposeVar(new q()));
5932
5942
  m(this, "_dbclickOutEvent", this.disposeVar(new q()));
5933
- m(this, "_clickFunc", this.disposeVar(G(void 0)));
5943
+ m(this, "_clickFunc", this.disposeVar(U(void 0)));
5934
5944
  m(this, "_clickFuncInit", (() => {
5935
5945
  this.dispose(this.clickEvent.disposableOn((e) => this.clickFunc && this.clickFunc(e)));
5936
5946
  })());
@@ -6016,7 +6026,8 @@ m(Io, "defaults", {
6016
6026
  pickOnClick: !1,
6017
6027
  clickFuncStr: "",
6018
6028
  zOrder: 0,
6019
- isHoverZoom: !1
6029
+ isHoverZoom: !1,
6030
+ hoverHighlight: !1
6020
6031
  });
6021
6032
  })(Io || (Io = {}));
6022
6033
  ae(Io.prototype, Io.createDefaultProps);
@@ -6078,8 +6089,8 @@ class Ah extends L {
6078
6089
  return;
6079
6090
  const v = g.length, _ = 50, P = 0, w = -(v * _ * Math.PI / 180) * 0.5;
6080
6091
  for (let S = 0; S < v; ++S) {
6081
- const [T, E, D, B] = g[S], V = w + _ * (S + 0.5) * Math.PI / 180, U = Math.sin(V) * P, W = Math.cos(V) * P, z = new Io(e);
6082
- z.imageUri = B, z.tooltip = E, z.bgColor = [0, 0, 0, 0.6], z.fgColor = [1, 1, 1, 1], z.size = [24, 24], z.dispose(C([z, "position"], [o, "position"])), z.originRatioAndOffset = [0.5, 0.5, -U, W], z.show = !1, z.opacity = 0, z.dispose(z.opacityChanged.disposableOn((N) => z.show = (N ?? 1) > 0)), z.dispose(z.clickEvent.disposableOn((N) => o.commandEvent.emit(T, N))), z.dispose(z.hoveredChanged.disposableOn((N) => N ? r.cancel() : r.restart())), z.dispose(n.currentChanged.disposableOn((N) => z.enabled = N === 1)), u.push(z);
6092
+ const [T, E, D, B] = g[S], V = w + _ * (S + 0.5) * Math.PI / 180, G = Math.sin(V) * P, W = Math.cos(V) * P, z = new Io(e);
6093
+ z.imageUri = B, z.tooltip = E, z.bgColor = [0, 0, 0, 0.6], z.fgColor = [1, 1, 1, 1], z.size = [24, 24], z.dispose(C([z, "position"], [o, "position"])), z.originRatioAndOffset = [0.5, 0.5, -G, W], z.show = !1, z.opacity = 0, z.dispose(z.opacityChanged.disposableOn((N) => z.show = (N ?? 1) > 0)), z.dispose(z.clickEvent.disposableOn((N) => o.commandEvent.emit(T, N))), z.dispose(z.hoveredChanged.disposableOn((N) => N ? r.cancel() : r.restart())), z.dispose(n.currentChanged.disposableOn((N) => z.enabled = N === 1)), u.push(z);
6083
6094
  }
6084
6095
  };
6085
6096
  f(), this.dispose(o.commandsChanged.disposableOn(f)), this.dispose(l.hoveredChanged.disposableOn((g) => g ? r.cancel() : r.restart())), this.dispose(l.hoveredChanged.disposableOn((g) => g ? o.enabled && a.restart() : a.cancel())), this.dispose(n.currentChanged.disposableOn((g) => {
@@ -6191,7 +6202,7 @@ class dt extends L {
6191
6202
  constructor(e, o) {
6192
6203
  super();
6193
6204
  m(this, "_updateEvent", this.disposeVar(new q()));
6194
- m(this, "_instanceClassReact", this.disposeVar(G(void 0)));
6205
+ m(this, "_instanceClassReact", this.disposeVar(U(void 0)));
6195
6206
  m(this, "_flyToEvent", this.disposeVar(new q()));
6196
6207
  m(this, "_pickedEvent", this.disposeVar(new q()));
6197
6208
  m(this, "_innerHtmlMounted", this.disposeVar(new q()));
@@ -6677,14 +6688,14 @@ const Yg = 6;
6677
6688
  class Gb extends uf {
6678
6689
  constructor(e) {
6679
6690
  super(e);
6680
- m(this, "_scale", G(1));
6681
- m(this, "_text", G(void 0));
6682
- m(this, "_font", G(void 0));
6683
- m(this, "_fontStyle", G(void 0));
6684
- m(this, "_radius", G(void 0));
6685
- m(this, "_outlineStyle", G(void 0));
6686
- m(this, "_selectedStyle", G(void 0));
6687
- m(this, "_fillStyle", G(void 0));
6691
+ m(this, "_scale", U(1));
6692
+ m(this, "_text", U(void 0));
6693
+ m(this, "_font", U(void 0));
6694
+ m(this, "_fontStyle", U(void 0));
6695
+ m(this, "_radius", U(void 0));
6696
+ m(this, "_outlineStyle", U(void 0));
6697
+ m(this, "_selectedStyle", U(void 0));
6698
+ m(this, "_fillStyle", U(void 0));
6688
6699
  const o = this.disposeVar(new Cr(100)), s = this.disposeVar(new Cr(100)), n = () => {
6689
6700
  this._clickEvent && !this._clickEvent.empty && (this._scale.value = (1 + 0.1 * s.current) * (1 + 0.2 * o.current));
6690
6701
  };
@@ -7169,7 +7180,7 @@ class Ve extends L {
7169
7180
  m(this, "_flyToEvent", this.disposeVar(new q()));
7170
7181
  m(this, "_polylineOrGroundPolylineResetting");
7171
7182
  m(this, "_czmViewVisibleDistanceRangeControl");
7172
- m(this, "_id", this.disposeVar(G(Qe())));
7183
+ m(this, "_id", this.disposeVar(U(Qe())));
7173
7184
  m(this, "_positionsCenter");
7174
7185
  o && (this.id = o), this._positionsCenter = this.ad(new Vw(this.positionsReact)), this._czmViewVisibleDistanceRangeControl = this.disposeVar(new Hr(
7175
7186
  e,
@@ -7352,7 +7363,7 @@ const eo = class eo extends L {
7352
7363
  super();
7353
7364
  m(this, "_flyToEvent", this.disposeVar(new q()));
7354
7365
  m(this, "_player");
7355
- m(this, "_updateCallbackFunc", this.disposeVar(G(void 0)));
7366
+ m(this, "_updateCallbackFunc", this.disposeVar(U(void 0)));
7356
7367
  m(this, "_disposeUpdateCallbackFunc", (() => {
7357
7368
  this.dispose(this.updateCallbackFuncChanged.don((e) => {
7358
7369
  e ? this.updateCallback = e.toString() : this.updateCallback = void 0;
@@ -7649,7 +7660,7 @@ const xo = class xo extends L {
7649
7660
  constructor(e, o) {
7650
7661
  super();
7651
7662
  m(this, "_captureEvent", this.disposeVar(new q()));
7652
- m(this, "_id", this.disposeVar(G(Qe())));
7663
+ m(this, "_id", this.disposeVar(U(Qe())));
7653
7664
  this._czmViewer = e, o && (this.id = o);
7654
7665
  const s = e.viewer;
7655
7666
  if (!s) return;
@@ -7788,7 +7799,7 @@ class ks extends L {
7788
7799
  m(this, "_czmGeoCustomDivPoi");
7789
7800
  m(this, "sceneObject");
7790
7801
  m(this, "domSize");
7791
- m(this, "_defaultAnchor", this.disposeVar(G([0, 0])));
7802
+ m(this, "_defaultAnchor", this.disposeVar(U([0, 0])));
7792
7803
  m(this, "flyTo", (e, o) => {
7793
7804
  if (this.czmGeoCustomDivPoi.position) {
7794
7805
  fe(this._czmViewer.viewer, this.czmGeoCustomDivPoi.position, 1e3, Yi, e);
@@ -7897,7 +7908,7 @@ class mp extends L {
7897
7908
  m(this, "_czmTexture");
7898
7909
  m(this, "sceneObject");
7899
7910
  m(this, "domSize");
7900
- m(this, "_defaultAnchor", this.disposeVar(G([0, 0])));
7911
+ m(this, "_defaultAnchor", this.disposeVar(U([0, 0])));
7901
7912
  m(this, "czmViewer");
7902
7913
  m(this, "flyTo", (e, o) => {
7903
7914
  wi(this.czmViewer, this.sceneObject, o, e, this.czmCustomPrimitive, !0);
@@ -8563,7 +8574,7 @@ class Sr extends L {
8563
8574
  super();
8564
8575
  m(this, "_flyToEvent", this.disposeVar(new q()));
8565
8576
  m(this, "_primitive");
8566
- m(this, "_id", this.disposeVar(G(Qe())));
8577
+ m(this, "_id", this.disposeVar(U(Qe())));
8567
8578
  o && (this.id = o);
8568
8579
  const s = e.viewer;
8569
8580
  if (!s) {
@@ -9120,7 +9131,7 @@ class on extends L {
9120
9131
  m(this, "_flyToEvent", this.disposeVar(new q()));
9121
9132
  m(this, "_polygonOrGroundPolygonResetting");
9122
9133
  m(this, "_czmViewVisibleDistanceRangeControl");
9123
- m(this, "_id", this.disposeVar(G(Qe())));
9134
+ m(this, "_id", this.disposeVar(U(Qe())));
9124
9135
  m(this, "_positionsCenter");
9125
9136
  this._positionsCenter = this.ad(new Vw(this.positionsReact)), this._czmViewVisibleDistanceRangeControl = this.disposeVar(new Hr(
9126
9137
  e,
@@ -10176,8 +10187,8 @@ class Tr extends L {
10176
10187
  specularIntensity: this.specularIntensity
10177
10188
  };
10178
10189
  if (this.blendColor && (T.blendColor = de(this.blendColor)), this.specularMap && (T.specularMap = a(this.specularMap)), this.points && this.points.length >= 1) {
10179
- const { maxPos: B, minPos: V } = mt(this.points), U = ut([V, [B[0], B[1], V[2]]], "GEODESIC")[0], W = ut([V, [V[0], B[1], B[2]]], "GEODESIC")[0];
10180
- this.baseWaterImage && (this.baseWaterImage.url && (T.baseWaterImage = a(this.baseWaterImage.url)), this.baseWaterImage.uDis && (T.repeatX = U / this.baseWaterImage.uDis), this.baseWaterImage.vDis && (T.repeatY = W / this.baseWaterImage.vDis)), T.flowSpeed = this.flowSpeed / (((D = this.baseWaterImage) == null ? void 0 : D.uDis) ?? U);
10190
+ const { maxPos: B, minPos: V } = mt(this.points), G = ut([V, [B[0], B[1], V[2]]], "GEODESIC")[0], W = ut([V, [V[0], B[1], B[2]]], "GEODESIC")[0];
10191
+ this.baseWaterImage && (this.baseWaterImage.url && (T.baseWaterImage = a(this.baseWaterImage.url)), this.baseWaterImage.uDis && (T.repeatX = G / this.baseWaterImage.uDis), this.baseWaterImage.vDis && (T.repeatY = W / this.baseWaterImage.vDis)), T.flowSpeed = this.flowSpeed / (((D = this.baseWaterImage) == null ? void 0 : D.uDis) ?? G);
10181
10192
  }
10182
10193
  if (this._primitive && this._primitive.appearance) {
10183
10194
  this._primitive.appearance.material.uniforms = Object.assign({}, this._primitive.appearance.material.uniforms, T);
@@ -10211,8 +10222,8 @@ class Tr extends L {
10211
10222
  h.BoundingSphere.fromPoints(T, S);
10212
10223
  }, p = () => {
10213
10224
  if (!this.points || this.points.length < 3) return;
10214
- const { minPos: S } = mt(this.points), [T] = ui({ originPosition: S }, this.points), { minPos: E, maxPos: D } = mt(T), B = D[0] - E[0], V = D[1] - E[1], U = { positions: this.points }, W = new h.PolygonGeometry({
10215
- polygonHierarchy: Cs(U),
10225
+ const { minPos: S } = mt(this.points), [T] = ui({ originPosition: S }, this.points), { minPos: E, maxPos: D } = mt(T), B = D[0] - E[0], V = D[1] - E[1], G = { positions: this.points }, W = new h.PolygonGeometry({
10226
+ polygonHierarchy: Cs(G),
10216
10227
  vertexFormat: h.VertexFormat.DEFAULT,
10217
10228
  stRotation: this.stRotation && h.Math.toRadians(this.stRotation),
10218
10229
  perPositionHeight: !0,
@@ -10618,7 +10629,7 @@ x.typeOf.number.equals = function(t, i, e, o) {
10618
10629
  `${t} must be equal to ${i}, the actual values are ${e} and ${o}`
10619
10630
  );
10620
10631
  };
10621
- var Qs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
10632
+ var Qs = typeof globalThis < "u" || typeof globalThis < "u" ? globalThis : typeof global < "u" ? global : typeof self < "u" ? self : {};
10622
10633
  function qd(t) {
10623
10634
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
10624
10635
  }
@@ -11257,14 +11268,14 @@ function rC(t, i, e, o, s) {
11257
11268
  return isFinite(v) ? I.clone(_, s) : void 0;
11258
11269
  const P = e.x, w = e.y, S = e.z, T = pT;
11259
11270
  T.x = _.x * P * 2, T.y = _.y * w * 2, T.z = _.z * S * 2;
11260
- let E = (1 - v) * I.magnitude(t) / (0.5 * I.magnitude(T)), D = 0, B, V, U, W, z, N, y, b, R, O, $;
11271
+ let E = (1 - v) * I.magnitude(t) / (0.5 * I.magnitude(T)), D = 0, B, V, G, W, z, N, y, b, R, O, $;
11261
11272
  do {
11262
- E -= D, U = 1 / (1 + E * P), W = 1 / (1 + E * w), z = 1 / (1 + E * S), N = U * U, y = W * W, b = z * z, R = N * U, O = y * W, $ = b * z, B = u * N + p * y + f * b - 1, V = u * R * P + p * O * w + f * $ * S;
11273
+ E -= D, G = 1 / (1 + E * P), W = 1 / (1 + E * w), z = 1 / (1 + E * S), N = G * G, y = W * W, b = z * z, R = N * G, O = y * W, $ = b * z, B = u * N + p * y + f * b - 1, V = u * R * P + p * O * w + f * $ * S;
11263
11274
  const J = -2 * V;
11264
11275
  D = B / J;
11265
11276
  } while (Math.abs(B) > k.EPSILON12);
11266
- return A(s) ? (s.x = n * U, s.y = r * W, s.z = a * z, s) : new I(
11267
- n * U,
11277
+ return A(s) ? (s.x = n * G, s.y = r * W, s.z = a * z, s) : new I(
11278
+ n * G,
11268
11279
  r * W,
11269
11280
  a * z
11270
11281
  );
@@ -12493,8 +12504,8 @@ Y.fromRotationTranslation = function(t, i, e) {
12493
12504
  };
12494
12505
  Y.fromTranslationQuaternionRotationScale = function(t, i, e, o) {
12495
12506
  x.typeOf.object("translation", t), x.typeOf.object("rotation", i), x.typeOf.object("scale", e), A(o) || (o = new Y());
12496
- const s = e.x, n = e.y, r = e.z, a = i.x * i.x, l = i.x * i.y, c = i.x * i.z, d = i.x * i.w, u = i.y * i.y, p = i.y * i.z, f = i.y * i.w, g = i.z * i.z, v = i.z * i.w, _ = i.w * i.w, P = a - u - g + _, w = 2 * (l - v), S = 2 * (c + f), T = 2 * (l + v), E = -a + u - g + _, D = 2 * (p - d), B = 2 * (c - f), V = 2 * (p + d), U = -a - u + g + _;
12497
- return o[0] = P * s, o[1] = T * s, o[2] = B * s, o[3] = 0, o[4] = w * n, o[5] = E * n, o[6] = V * n, o[7] = 0, o[8] = S * r, o[9] = D * r, o[10] = U * r, o[11] = 0, o[12] = t.x, o[13] = t.y, o[14] = t.z, o[15] = 1, o;
12507
+ const s = e.x, n = e.y, r = e.z, a = i.x * i.x, l = i.x * i.y, c = i.x * i.z, d = i.x * i.w, u = i.y * i.y, p = i.y * i.z, f = i.y * i.w, g = i.z * i.z, v = i.z * i.w, _ = i.w * i.w, P = a - u - g + _, w = 2 * (l - v), S = 2 * (c + f), T = 2 * (l + v), E = -a + u - g + _, D = 2 * (p - d), B = 2 * (c - f), V = 2 * (p + d), G = -a - u + g + _;
12508
+ return o[0] = P * s, o[1] = T * s, o[2] = B * s, o[3] = 0, o[4] = w * n, o[5] = E * n, o[6] = V * n, o[7] = 0, o[8] = S * r, o[9] = D * r, o[10] = G * r, o[11] = 0, o[12] = t.x, o[13] = t.y, o[14] = t.z, o[15] = 1, o;
12498
12509
  };
12499
12510
  Y.fromTranslationRotationScale = function(t, i) {
12500
12511
  return x.typeOf.object("translationRotationScale", t), Y.fromTranslationQuaternionRotationScale(
@@ -12696,7 +12707,7 @@ Y.getRotation = function(t, i) {
12696
12707
  };
12697
12708
  Y.multiply = function(t, i, e) {
12698
12709
  x.typeOf.object("left", t), x.typeOf.object("right", i), x.typeOf.object("result", e);
12699
- const o = t[0], s = t[1], n = t[2], r = t[3], a = t[4], l = t[5], c = t[6], d = t[7], u = t[8], p = t[9], f = t[10], g = t[11], v = t[12], _ = t[13], P = t[14], w = t[15], S = i[0], T = i[1], E = i[2], D = i[3], B = i[4], V = i[5], U = i[6], W = i[7], z = i[8], N = i[9], y = i[10], b = i[11], R = i[12], O = i[13], $ = i[14], J = i[15], Z = o * S + a * T + u * E + v * D, K = s * S + l * T + p * E + _ * D, te = n * S + c * T + f * E + P * D, le = r * S + d * T + g * E + w * D, _e = o * B + a * V + u * U + v * W, be = s * B + l * V + p * U + _ * W, Ee = n * B + c * V + f * U + P * W, Oe = r * B + d * V + g * U + w * W, et = o * z + a * N + u * y + v * b, st = s * z + l * N + p * y + _ * b, Ne = n * z + c * N + f * y + P * b, Pe = r * z + d * N + g * y + w * b, $e = o * R + a * O + u * $ + v * J, ht = s * R + l * O + p * $ + _ * J, Ut = n * R + c * O + f * $ + P * J, jt = r * R + d * O + g * $ + w * J;
12710
+ const o = t[0], s = t[1], n = t[2], r = t[3], a = t[4], l = t[5], c = t[6], d = t[7], u = t[8], p = t[9], f = t[10], g = t[11], v = t[12], _ = t[13], P = t[14], w = t[15], S = i[0], T = i[1], E = i[2], D = i[3], B = i[4], V = i[5], G = i[6], W = i[7], z = i[8], N = i[9], y = i[10], b = i[11], R = i[12], O = i[13], $ = i[14], J = i[15], Z = o * S + a * T + u * E + v * D, K = s * S + l * T + p * E + _ * D, te = n * S + c * T + f * E + P * D, le = r * S + d * T + g * E + w * D, _e = o * B + a * V + u * G + v * W, be = s * B + l * V + p * G + _ * W, Ee = n * B + c * V + f * G + P * W, Oe = r * B + d * V + g * G + w * W, et = o * z + a * N + u * y + v * b, st = s * z + l * N + p * y + _ * b, Ne = n * z + c * N + f * y + P * b, Pe = r * z + d * N + g * y + w * b, $e = o * R + a * O + u * $ + v * J, ht = s * R + l * O + p * $ + _ * J, Ut = n * R + c * O + f * $ + P * J, jt = r * R + d * O + g * $ + w * J;
12700
12711
  return e[0] = Z, e[1] = K, e[2] = te, e[3] = le, e[4] = _e, e[5] = be, e[6] = Ee, e[7] = Oe, e[8] = et, e[9] = st, e[10] = Ne, e[11] = Pe, e[12] = $e, e[13] = ht, e[14] = Ut, e[15] = jt, e;
12701
12712
  };
12702
12713
  Y.add = function(t, i, e) {
@@ -12707,13 +12718,13 @@ Y.subtract = function(t, i, e) {
12707
12718
  };
12708
12719
  Y.multiplyTransformation = function(t, i, e) {
12709
12720
  x.typeOf.object("left", t), x.typeOf.object("right", i), x.typeOf.object("result", e);
12710
- const o = t[0], s = t[1], n = t[2], r = t[4], a = t[5], l = t[6], c = t[8], d = t[9], u = t[10], p = t[12], f = t[13], g = t[14], v = i[0], _ = i[1], P = i[2], w = i[4], S = i[5], T = i[6], E = i[8], D = i[9], B = i[10], V = i[12], U = i[13], W = i[14], z = o * v + r * _ + c * P, N = s * v + a * _ + d * P, y = n * v + l * _ + u * P, b = o * w + r * S + c * T, R = s * w + a * S + d * T, O = n * w + l * S + u * T, $ = o * E + r * D + c * B, J = s * E + a * D + d * B, Z = n * E + l * D + u * B, K = o * V + r * U + c * W + p, te = s * V + a * U + d * W + f, le = n * V + l * U + u * W + g;
12721
+ const o = t[0], s = t[1], n = t[2], r = t[4], a = t[5], l = t[6], c = t[8], d = t[9], u = t[10], p = t[12], f = t[13], g = t[14], v = i[0], _ = i[1], P = i[2], w = i[4], S = i[5], T = i[6], E = i[8], D = i[9], B = i[10], V = i[12], G = i[13], W = i[14], z = o * v + r * _ + c * P, N = s * v + a * _ + d * P, y = n * v + l * _ + u * P, b = o * w + r * S + c * T, R = s * w + a * S + d * T, O = n * w + l * S + u * T, $ = o * E + r * D + c * B, J = s * E + a * D + d * B, Z = n * E + l * D + u * B, K = o * V + r * G + c * W + p, te = s * V + a * G + d * W + f, le = n * V + l * G + u * W + g;
12711
12722
  return e[0] = z, e[1] = N, e[2] = y, e[3] = 0, e[4] = b, e[5] = R, e[6] = O, e[7] = 0, e[8] = $, e[9] = J, e[10] = Z, e[11] = 0, e[12] = K, e[13] = te, e[14] = le, e[15] = 1, e;
12712
12723
  };
12713
12724
  Y.multiplyByMatrix3 = function(t, i, e) {
12714
12725
  x.typeOf.object("matrix", t), x.typeOf.object("rotation", i), x.typeOf.object("result", e);
12715
- const o = t[0], s = t[1], n = t[2], r = t[4], a = t[5], l = t[6], c = t[8], d = t[9], u = t[10], p = i[0], f = i[1], g = i[2], v = i[3], _ = i[4], P = i[5], w = i[6], S = i[7], T = i[8], E = o * p + r * f + c * g, D = s * p + a * f + d * g, B = n * p + l * f + u * g, V = o * v + r * _ + c * P, U = s * v + a * _ + d * P, W = n * v + l * _ + u * P, z = o * w + r * S + c * T, N = s * w + a * S + d * T, y = n * w + l * S + u * T;
12716
- return e[0] = E, e[1] = D, e[2] = B, e[3] = 0, e[4] = V, e[5] = U, e[6] = W, e[7] = 0, e[8] = z, e[9] = N, e[10] = y, e[11] = 0, e[12] = t[12], e[13] = t[13], e[14] = t[14], e[15] = t[15], e;
12726
+ const o = t[0], s = t[1], n = t[2], r = t[4], a = t[5], l = t[6], c = t[8], d = t[9], u = t[10], p = i[0], f = i[1], g = i[2], v = i[3], _ = i[4], P = i[5], w = i[6], S = i[7], T = i[8], E = o * p + r * f + c * g, D = s * p + a * f + d * g, B = n * p + l * f + u * g, V = o * v + r * _ + c * P, G = s * v + a * _ + d * P, W = n * v + l * _ + u * P, z = o * w + r * S + c * T, N = s * w + a * S + d * T, y = n * w + l * S + u * T;
12727
+ return e[0] = E, e[1] = D, e[2] = B, e[3] = 0, e[4] = V, e[5] = G, e[6] = W, e[7] = 0, e[8] = z, e[9] = N, e[10] = y, e[11] = 0, e[12] = t[12], e[13] = t[13], e[14] = t[14], e[15] = t[15], e;
12717
12728
  };
12718
12729
  Y.multiplyByTranslation = function(t, i, e) {
12719
12730
  x.typeOf.object("matrix", t), x.typeOf.object("translation", i), x.typeOf.object("result", e);
@@ -12776,10 +12787,10 @@ const UT = new X(), GT = new X(), WT = new se(), HT = new se(0, 0, 0, 1);
12776
12787
  Y.inverse = function(t, i) {
12777
12788
  x.typeOf.object("matrix", t), x.typeOf.object("result", i);
12778
12789
  const e = t[0], o = t[4], s = t[8], n = t[12], r = t[1], a = t[5], l = t[9], c = t[13], d = t[2], u = t[6], p = t[10], f = t[14], g = t[3], v = t[7], _ = t[11], P = t[15];
12779
- let w = p * P, S = f * _, T = u * P, E = f * v, D = u * _, B = p * v, V = d * P, U = f * g, W = d * _, z = p * g, N = d * v, y = u * g;
12780
- const b = w * a + E * l + D * c - (S * a + T * l + B * c), R = S * r + V * l + z * c - (w * r + U * l + W * c), O = T * r + U * a + N * c - (E * r + V * a + y * c), $ = B * r + W * a + y * l - (D * r + z * a + N * l), J = S * o + T * s + B * n - (w * o + E * s + D * n), Z = w * e + U * s + W * n - (S * e + V * s + z * n), K = E * e + V * o + y * n - (T * e + U * o + N * n), te = D * e + z * o + N * s - (B * e + W * o + y * s);
12781
- w = s * c, S = n * l, T = o * c, E = n * a, D = o * l, B = s * a, V = e * c, U = n * r, W = e * l, z = s * r, N = e * a, y = o * r;
12782
- const le = w * v + E * _ + D * P - (S * v + T * _ + B * P), _e = S * g + V * _ + z * P - (w * g + U * _ + W * P), be = T * g + U * v + N * P - (E * g + V * v + y * P), Ee = B * g + W * v + y * _ - (D * g + z * v + N * _), Oe = T * p + B * f + S * u - (D * f + w * u + E * p), et = W * f + w * d + U * p - (V * p + z * f + S * d), st = V * u + y * f + E * d - (N * f + T * d + U * u), Ne = N * p + D * d + z * u - (W * u + y * p + B * d);
12790
+ let w = p * P, S = f * _, T = u * P, E = f * v, D = u * _, B = p * v, V = d * P, G = f * g, W = d * _, z = p * g, N = d * v, y = u * g;
12791
+ const b = w * a + E * l + D * c - (S * a + T * l + B * c), R = S * r + V * l + z * c - (w * r + G * l + W * c), O = T * r + G * a + N * c - (E * r + V * a + y * c), $ = B * r + W * a + y * l - (D * r + z * a + N * l), J = S * o + T * s + B * n - (w * o + E * s + D * n), Z = w * e + G * s + W * n - (S * e + V * s + z * n), K = E * e + V * o + y * n - (T * e + G * o + N * n), te = D * e + z * o + N * s - (B * e + W * o + y * s);
12792
+ w = s * c, S = n * l, T = o * c, E = n * a, D = o * l, B = s * a, V = e * c, G = n * r, W = e * l, z = s * r, N = e * a, y = o * r;
12793
+ const le = w * v + E * _ + D * P - (S * v + T * _ + B * P), _e = S * g + V * _ + z * P - (w * g + G * _ + W * P), be = T * g + G * v + N * P - (E * g + V * v + y * P), Ee = B * g + W * v + y * _ - (D * g + z * v + N * _), Oe = T * p + B * f + S * u - (D * f + w * u + E * p), et = W * f + w * d + G * p - (V * p + z * f + S * d), st = V * u + y * f + E * d - (N * f + T * d + G * u), Ne = N * p + D * d + z * u - (W * u + y * p + B * d);
12783
12794
  let Pe = e * b + o * R + s * O + n * $;
12784
12795
  if (Math.abs(Pe) < k.EPSILON21) {
12785
12796
  if (X.equalsEpsilon(
@@ -13482,7 +13493,7 @@ function iE() {
13482
13493
  function V(K) {
13483
13494
  throw new RangeError(S[K]);
13484
13495
  }
13485
- function U(K, te) {
13496
+ function G(K, te) {
13486
13497
  for (var le = K.length, _e = []; le--; )
13487
13498
  _e[le] = te(K[le]);
13488
13499
  return _e;
@@ -13490,7 +13501,7 @@ function iE() {
13490
13501
  function W(K, te) {
13491
13502
  var le = K.split("@"), _e = "";
13492
13503
  le.length > 1 && (_e = le[0] + "@", K = le[1]), K = K.replace(w, ".");
13493
- var be = K.split("."), Ee = U(be, te).join(".");
13504
+ var be = K.split("."), Ee = G(be, te).join(".");
13494
13505
  return _e + Ee;
13495
13506
  }
13496
13507
  function z(K) {
@@ -13499,7 +13510,7 @@ function iE() {
13499
13510
  return te;
13500
13511
  }
13501
13512
  function N(K) {
13502
- return U(K, function(te) {
13513
+ return G(K, function(te) {
13503
13514
  var le = "";
13504
13515
  return te > 65535 && (te -= 65536, le += D(te >>> 10 & 1023 | 55296), te = 56320 | te & 1023), le += D(te), le;
13505
13516
  }).join("");
@@ -14426,11 +14437,11 @@ function sE() {
14426
14437
  }
14427
14438
  return null;
14428
14439
  };
14429
- var U = l.protocol, W = l.port, z = l.hostname;
14440
+ var G = l.protocol, W = l.port, z = l.hostname;
14430
14441
  l.protocol = function(y, b) {
14431
14442
  if (y && (y = y.replace(/:(\/\/)?$/, ""), !y.match(r.protocol_expression)))
14432
14443
  throw new TypeError('Protocol "' + y + `" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);
14433
- return U.call(this, y, b);
14444
+ return G.call(this, y, b);
14434
14445
  }, l.scheme = l.protocol, l.port = function(y, b) {
14435
14446
  return this._parts.urn ? y === void 0 ? "" : this : (y !== void 0 && (y === 0 && (y = null), y && (y += "", y.charAt(0) === ":" && (y = y.substring(1)), r.ensureValidPort(y))), W.call(this, y, b));
14436
14447
  }, l.hostname = function(y, b) {
@@ -14857,7 +14868,7 @@ function dC(t) {
14857
14868
  }
14858
14869
  let Ki;
14859
14870
  function Cp(t) {
14860
- A(Ki) || (Ki = document.createElement("a")), Ki.href = window.location.href;
14871
+ A(Ki) || (Ki = document.createElement("a")), Ki.href = globalThis.location.href;
14861
14872
  const i = Ki.host, e = Ki.protocol;
14862
14873
  return Ki.href = t, Ki.href = Ki.href, e !== Ki.protocol || i !== Ki.host;
14863
14874
  }
@@ -14868,7 +14879,7 @@ function uC(t) {
14868
14879
  function dE(t) {
14869
14880
  const i = document.createElement("script");
14870
14881
  return i.async = !0, i.src = t, new Promise((e, o) => {
14871
- window.crossOriginIsolated && i.setAttribute("crossorigin", "anonymous");
14882
+ globalThis.crossOriginIsolated && i.setAttribute("crossorigin", "anonymous");
14872
14883
  const s = document.getElementsByTagName("head")[0];
14873
14884
  i.onload = function() {
14874
14885
  i.onload = void 0, s.removeChild(i), e();
@@ -15408,7 +15419,7 @@ function xE(t) {
15408
15419
  if (e.length !== 0) {
15409
15420
  if (i.authority(e), e.indexOf("@") !== -1 && (e = e.split("@")[1]), e.indexOf(":") === -1) {
15410
15421
  let o = i.scheme();
15411
- if (o.length === 0 && (o = window.location.protocol, o = o.substring(0, o.length - 1)), o === "http")
15422
+ if (o.length === 0 && (o = globalThis.location.protocol, o = o.substring(0, o.length - 1)), o === "http")
15412
15423
  e += ":80";
15413
15424
  else if (o === "https")
15414
15425
  e += ":443";
@@ -15742,7 +15753,7 @@ ne.prototype.fetchImage = function(t) {
15742
15753
  premultiplyAlpha: !1,
15743
15754
  skipColorSpaceConversion: s
15744
15755
  });
15745
- const u = window.URL.createObjectURL(d);
15756
+ const u = globalThis.URL.createObjectURL(d);
15746
15757
  return l = new ne({
15747
15758
  url: u
15748
15759
  }), Pp({
@@ -15753,9 +15764,9 @@ ne.prototype.fetchImage = function(t) {
15753
15764
  });
15754
15765
  }).then(function(d) {
15755
15766
  if (A(d))
15756
- return d.blob = c, a || window.URL.revokeObjectURL(l.url), d;
15767
+ return d.blob = c, a || globalThis.URL.revokeObjectURL(l.url), d;
15757
15768
  }).catch(function(d) {
15758
- return A(l) && window.URL.revokeObjectURL(l.url), d.blob = c, Promise.reject(d);
15769
+ return A(l) && globalThis.URL.revokeObjectURL(l.url), d.blob = c, Promise.reject(d);
15759
15770
  });
15760
15771
  };
15761
15772
  function Pp(t) {
@@ -15832,7 +15843,7 @@ ne.prototype.fetchJsonp = function(t) {
15832
15843
  let i;
15833
15844
  do
15834
15845
  i = `loadJsonp${k.nextRandomNumber().toString().substring(2, 8)}`;
15835
- while (A(window[i]));
15846
+ while (A(globalThis[i]));
15836
15847
  return vC(this, t, i);
15837
15848
  };
15838
15849
  function vC(t, i, e) {
@@ -15841,12 +15852,12 @@ function vC(t, i, e) {
15841
15852
  const s = t.request, n = t.url;
15842
15853
  s.url = n, s.requestFunction = function() {
15843
15854
  const a = nc();
15844
- return window[e] = function(l) {
15855
+ return globalThis[e] = function(l) {
15845
15856
  a.resolve(l);
15846
15857
  try {
15847
- delete window[e];
15858
+ delete globalThis[e];
15848
15859
  } catch {
15849
- window[e] = void 0;
15860
+ globalThis[e] = void 0;
15850
15861
  }
15851
15862
  }, ne._Implementations.loadAndExecuteScript(n, e, a), a.promise;
15852
15863
  };
@@ -16116,7 +16127,7 @@ ne._Implementations.loadWithXhr = function(t, i, e, o, s, n, r) {
16116
16127
  s.hasOwnProperty(d) && l.setRequestHeader(d, s[d]);
16117
16128
  A(i) && (l.responseType = i);
16118
16129
  let c = !1;
16119
- return typeof t == "string" && (c = t.indexOf("file://") === 0 || typeof window < "u" && window.location.origin === "file://"), l.onload = function() {
16130
+ return typeof t == "string" && (c = t.indexOf("file://") === 0 || typeof globalThis < "u" && globalThis.location.origin === "file://"), l.onload = function() {
16120
16131
  if ((l.status < 200 || l.status >= 300) && !(c && l.status === 0)) {
16121
16132
  n.reject(
16122
16133
  new Fh(
@@ -17360,8 +17371,8 @@ Ce.computeFixedToIcrfMatrix = function(t, i) {
17360
17371
  const P = X.fromRotationZ(_, zu), w = X.multiply(u, P, Fu), S = Math.cos(e.xPoleWander), T = Math.cos(e.yPoleWander), E = Math.sin(e.xPoleWander), D = Math.sin(e.yPoleWander);
17361
17372
  let B = o - uA + s / Je.SECONDS_PER_DAY;
17362
17373
  B /= 36525;
17363
- const V = -47e-6 * B * k.RADIANS_PER_DEGREE / 3600, U = Math.cos(V), W = Math.sin(V), z = zu;
17364
- return z[0] = S * U, z[1] = S * W, z[2] = E, z[3] = -T * W + D * E * U, z[4] = T * U + D * E * W, z[5] = -D * S, z[6] = -D * W - T * E * U, z[7] = D * U - T * E * W, z[8] = T * S, X.multiply(w, z, i);
17374
+ const V = -47e-6 * B * k.RADIANS_PER_DEGREE / 3600, G = Math.cos(V), W = Math.sin(V), z = zu;
17375
+ return z[0] = S * G, z[1] = S * W, z[2] = E, z[3] = -T * W + D * E * G, z[4] = T * G + D * E * W, z[5] = -D * S, z[6] = -D * W - T * E * G, z[7] = D * G - T * E * W, z[8] = T * S, X.multiply(w, z, i);
17365
17376
  };
17366
17377
  const wA = new se();
17367
17378
  Ce.pointToWindowCoordinates = function(t, i, e, o) {
@@ -17804,10 +17815,10 @@ function Lu(t) {
17804
17815
  type: "application/javascript"
17805
17816
  });
17806
17817
  } catch {
17807
- const s = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder || window.MSBlobBuilder, n = new s();
17818
+ const s = globalThis.BlobBuilder || globalThis.WebKitBlobBuilder || globalThis.MozBlobBuilder || globalThis.MSBlobBuilder, n = new s();
17808
17819
  n.append(t), i = n.getBlob("application/javascript");
17809
17820
  }
17810
- return (window.URL || window.webkitURL).createObjectURL(i);
17821
+ return (globalThis.URL || globalThis.webkitURL).createObjectURL(i);
17811
17822
  }
17812
17823
  function Nf(t) {
17813
17824
  const i = new Fo(t), e = i.scheme().length !== 0 && i.fragment().length === 0, o = t.replace(/\.js$/, ""), s = {};
@@ -19179,8 +19190,8 @@ class hn extends L {
19179
19190
  constructor(e, o) {
19180
19191
  super();
19181
19192
  m(this, "_flyToEvent", this.disposeVar(new q()));
19182
- m(this, "_innerImageryProvider", this.disposeVar(G(void 0)));
19183
- m(this, "_layer", this.disposeVar(G(void 0)));
19193
+ m(this, "_innerImageryProvider", this.disposeVar(U(void 0)));
19194
+ m(this, "_layer", this.disposeVar(U(void 0)));
19184
19195
  const s = e.viewer;
19185
19196
  if (!s)
19186
19197
  return;
@@ -19953,7 +19964,7 @@ class Lh extends L {
19953
19964
  m(this, "_geoCanvasPointPoi");
19954
19965
  m(this, "_player");
19955
19966
  m(this, "_flyToEvent", this.disposeVar(new q()));
19956
- m(this, "_currentDistance", this.disposeVar(G(0)));
19967
+ m(this, "_currentDistance", this.disposeVar(U(0)));
19957
19968
  m(this, "_ratio", this.disposeVar(Vd.createPlayingRatio([this, "currentTime"], [this, "duration"])));
19958
19969
  this._geoPath = this.disposeVar(new uw()), this._geoPolyline = this.disposeVar(new Ve(e)), this._geoCanvasPointPoi = this.disposeVar(new en(e)), this._player = this.disposeVar(new ic()), this._geoPolyline.show = !1, this.dispose(M([this._geoPolyline, "positions"], [this, "positions"])), this.dispose(C([this._geoPath, "currentTime"], [this, "currentDistance"])), this.dispose(C([this._geoPath, "leadTime"], [this, "leadTime"])), this.dispose(C([this._geoPath, "trailTime"], [this, "trailTime"])), this.dispose(C([this._geoPath, "show"], [this, "show"])), this.dispose(C([this._geoPath, "polylineShow"], [this, "polylineShow"])), this.dispose(C([this._geoPath, "currentPoiShow"], [this, "currentPoiShow"])), this.dispose(C([this._geoPath, "width"], [this, "width"])), this.dispose(C([this._geoPath, "ground"], [this, "ground"])), this.dispose(C([this._geoPath, "color"], [this, "color"])), this.dispose(C([this._geoPath, "hasDash"], [this, "hasDash"])), this.dispose(C([this._geoPath, "gapColor"], [this, "gapColor"])), this.dispose(C([this._geoPath, "dashLength"], [this, "dashLength"])), this.dispose(C([this._geoPath, "dashPattern"], [this, "dashPattern"])), this.dispose(C([this._geoPath, "hasArrow"], [this, "hasArrow"])), this.dispose(C([this._geoPath, "depthTest"], [this, "depthTest"])), this.dispose(C([this._geoPath, "arcType"], [this, "arcType"])), this.dispose(C([this._geoPath, "allowPicking"], [this, "allowPicking"]));
19959
19970
  {
@@ -20247,7 +20258,7 @@ class Kt extends Xi {
20247
20258
  class Jd extends Me {
20248
20259
  constructor(e, o) {
20249
20260
  super(e, o);
20250
- m(this, "_lastHoverResult", this.disposeVar(G(void 0)));
20261
+ m(this, "_lastHoverResult", this.disposeVar(U(void 0)));
20251
20262
  if (!o.viewer) {
20252
20263
  console.warn("viewer is undefined!");
20253
20264
  return;
@@ -20296,7 +20307,7 @@ function mM(t, i, e) {
20296
20307
  class cn extends L {
20297
20308
  constructor(e, o) {
20298
20309
  super();
20299
- m(this, "_id", this.disposeVar(G(Qe())));
20310
+ m(this, "_id", this.disposeVar(U(Qe())));
20300
20311
  m(this, "_flyToEvent", this.disposeVar(new q()));
20301
20312
  m(this, "_polylines");
20302
20313
  m(this, "_axis");
@@ -20384,8 +20395,8 @@ ae(cn.prototype, cn.createDefaultProps);
20384
20395
  class vM extends L {
20385
20396
  constructor(e, o, s) {
20386
20397
  super();
20387
- m(this, "_centerMatrix", this.disposeVar(G(void 0)));
20388
- m(this, "_inverseCenterMatrix", this.disposeVar(G(void 0)));
20398
+ m(this, "_centerMatrix", this.disposeVar(U(void 0)));
20399
+ m(this, "_inverseCenterMatrix", this.disposeVar(U(void 0)));
20389
20400
  m(this, "_czmPlaneWrappers");
20390
20401
  m(this, "_czmPlaneWrappersChanged", this.disposeVar(F()));
20391
20402
  m(this, "_computedPlanesChanged", this.disposeVar(F()));
@@ -20544,9 +20555,9 @@ class wM extends L {
20544
20555
  class Oh extends L {
20545
20556
  constructor(e, o) {
20546
20557
  super();
20547
- m(this, "_id", this.disposeVar(G(Qe())));
20558
+ m(this, "_id", this.disposeVar(U(Qe())));
20548
20559
  m(this, "_flyToEvent", this.disposeVar(new q()));
20549
- m(this, "_computedClippingPlanes", this.disposeVar(G(void 0)));
20560
+ m(this, "_computedClippingPlanes", this.disposeVar(U(void 0)));
20550
20561
  o && (this.id = o), this.disposeVar(new he(this.planeIdsChanged, () => new vM(e, this, this.planeIds)));
20551
20562
  }
20552
20563
  get id() {
@@ -20640,7 +20651,7 @@ const Ma = class Ma extends Me {
20640
20651
  m(this, "_czmPlane");
20641
20652
  m(this, "_tilesSceneObjectWithId");
20642
20653
  this._czmPlane = this.disposeVar(new cn(o, e.id)), this._tilesSceneObjectWithId = this.disposeVar(new Di());
20643
- const s = this.ad(G(this.sceneObject.targetID));
20654
+ const s = this.ad(U(this.sceneObject.targetID));
20644
20655
  if (this.ad(e.targetIDChanged.don(() => {
20645
20656
  const a = oe.getSceneObject(e.targetID);
20646
20657
  s.value = a ? (a.components.main ?? a).id : "";
@@ -20935,11 +20946,11 @@ class bM extends L {
20935
20946
  class un extends L {
20936
20947
  constructor(e, o) {
20937
20948
  super();
20938
- m(this, "_id", this.disposeVar(G(Qe())));
20949
+ m(this, "_id", this.disposeVar(U(Qe())));
20939
20950
  m(this, "_flyToEvent", this.disposeVar(new q()));
20940
- m(this, "_computedCustomShader", this.disposeVar(G(void 0)));
20951
+ m(this, "_computedCustomShader", this.disposeVar(U(void 0)));
20941
20952
  m(this, "_polylines");
20942
- m(this, "_finalMatrix", this.disposeVar(G(void 0)));
20953
+ m(this, "_finalMatrix", this.disposeVar(U(void 0)));
20943
20954
  m(this, "_czmTextureWithId");
20944
20955
  o && (this.id = o), this._czmTextureWithId = this.disposeVar(new Di()), this._polylines = this.disposeVar(new Fi(e)), this._polylines.arcType = "NONE", this.dispose(C([this._czmTextureWithId, "id"], [this, "czmTextureId"])), this.dispose(this.flyToEvent.disposableOn((s) => {
20945
20956
  if (!(e instanceof We) || !e.actived) return;
@@ -21085,7 +21096,7 @@ class TM extends L {
21085
21096
  class Bh extends L {
21086
21097
  constructor(e, o) {
21087
21098
  super();
21088
- m(this, "_id", this.disposeVar(G(Qe())));
21099
+ m(this, "_id", this.disposeVar(U(Qe())));
21089
21100
  m(this, "_flyToEvent", this.disposeVar(new q()));
21090
21101
  m(this, "_czmTexture");
21091
21102
  m(this, "_polygon");
@@ -21268,7 +21279,7 @@ const Da = class Da extends Li {
21268
21279
  m(this, "_polygonFlattenedPlane");
21269
21280
  m(this, "_tilesSceneObjectWithId");
21270
21281
  this._polygonFlattenedPlane = this.disposeVar(new Bh(o, e.id)), this._tilesSceneObjectWithId = this.disposeVar(new Di());
21271
- const s = this.ad(G(this.sceneObject.targetID));
21282
+ const s = this.ad(U(this.sceneObject.targetID));
21272
21283
  if (this.ad(e.targetIDChanged.don(() => {
21273
21284
  const l = oe.getSceneObject(e.targetID);
21274
21285
  s.value = l ? (l.components.main ?? l).id : "";
@@ -21437,7 +21448,7 @@ class DM extends L {
21437
21448
  }
21438
21449
  o.xbsjGetFlattenedTextureFunc = () => {
21439
21450
  const { sceneObject: s } = this._czmFlattenedPlane.czmTextureWithId;
21440
- return s ? window.czmTexture[s.id].texture : void 0;
21451
+ return s ? globalThis.czmTexture[s.id].texture : void 0;
21441
21452
  }, this.dispose(() => o.xbsjGetFlattenedTextureFunc = void 0);
21442
21453
  {
21443
21454
  const s = () => {
@@ -21551,7 +21562,7 @@ class OM extends L {
21551
21562
  super();
21552
21563
  m(this, "_clippingPlanesCollectionResetting");
21553
21564
  m(this, "_clippingPolygonCollectionResetting");
21554
- m(this, "_flattenedCustomShader", this.disposeVar(G(void 0)));
21565
+ m(this, "_flattenedCustomShader", this.disposeVar(U(void 0)));
21555
21566
  this._tileset = e, this._czm3DTiles = o, this._czmNativeViewer = s, this._czmViewer = n, this._clippingPolygonCollectionResetting = new RM(this.tileset, this.czm3DTiles);
21556
21567
  const { tileset: r, czm3DTiles: a } = this;
21557
21568
  {
@@ -21775,7 +21786,7 @@ class NM extends L {
21775
21786
  constructor(e, o, s, n) {
21776
21787
  var l;
21777
21788
  super();
21778
- m(this, "_tileset", this.disposeVar(G(void 0)));
21789
+ m(this, "_tileset", this.disposeVar(U(void 0)));
21779
21790
  m(this, "_readyResetting");
21780
21791
  if (this._url = e, this._czm3DTiles = o, this._czmNativeViewer = s, this._czmViewer = n, this._readyResetting = this.disposeVar(new he(this.tilesetChanged, () => {
21781
21792
  if (this.tileset)
@@ -22082,20 +22093,20 @@ let JM = class extends L {
22082
22093
  const hi = class hi extends L {
22083
22094
  constructor(e, o, s) {
22084
22095
  super();
22085
- m(this, "_id", this.disposeVar(G(Qe())));
22086
- m(this, "_supportEdit", this.disposeVar(G(!0)));
22096
+ m(this, "_id", this.disposeVar(U(Qe())));
22097
+ m(this, "_supportEdit", this.disposeVar(U(!0)));
22087
22098
  m(this, "_flyToEvent", this.disposeVar(new q()));
22088
- m(this, "_customShaderInstanceClass", this.disposeVar(G(void 0)));
22099
+ m(this, "_customShaderInstanceClass", this.disposeVar(U(void 0)));
22089
22100
  m(this, "_updateCustomShaderEvent", this.disposeVar(new q()));
22090
- m(this, "_foveatedInterpolationCallback", this.disposeVar(G(hi.defaultFoveatedInterpolationCallback)));
22091
- m(this, "_origin", this.disposeVar(G(void 0)));
22101
+ m(this, "_foveatedInterpolationCallback", this.disposeVar(U(hi.defaultFoveatedInterpolationCallback)));
22102
+ m(this, "_origin", this.disposeVar(U(void 0)));
22092
22103
  m(this, "_czmTilesetReadyEvent", this.disposeVar(new q()));
22093
22104
  m(this, "_czmFlattenedPlaneWithId");
22094
22105
  m(this, "_clippingPlanesSceneObjectWithId");
22095
- m(this, "_customShaderInstance", this.disposeVar(G(void 0)));
22096
- m(this, "_style", this.disposeVar(G(void 0)));
22097
- m(this, "_originRootTransform", this.disposeVar(G(void 0)));
22098
- m(this, "_originRootTransformInv", this.disposeVar(G(void 0)));
22106
+ m(this, "_customShaderInstance", this.disposeVar(U(void 0)));
22107
+ m(this, "_style", this.disposeVar(U(void 0)));
22108
+ m(this, "_originRootTransform", this.disposeVar(U(void 0)));
22109
+ m(this, "_originRootTransformInv", this.disposeVar(U(void 0)));
22099
22110
  m(this, "_recreateEvent", this.disposeVar(F(...AM(this))));
22100
22111
  m(this, "_nativeTilesetResetting");
22101
22112
  m(this, "_setMaterialEvent", this.disposeVar(new q()));
@@ -22512,7 +22523,7 @@ class jM extends L {
22512
22523
  constructor() {
22513
22524
  super();
22514
22525
  m(this, "strokeSilhouette", h.PostProcessStageLibrary.createEdgeDetectionStage());
22515
- m(this, "_viewer", this.disposeVar(G(void 0)));
22526
+ m(this, "_viewer", this.disposeVar(U(void 0)));
22516
22527
  m(this, "_featureMap", /* @__PURE__ */ new Map());
22517
22528
  const e = () => {
22518
22529
  this.viewer && (this.viewer.scene.postProcessStages.add(
@@ -22824,9 +22835,9 @@ const to = class to extends Xi {
22824
22835
  m(this, "_czm3DTiles");
22825
22836
  m(this, "_clippingPlanes");
22826
22837
  m(this, "_flattenedPlane");
22827
- m(this, "_styleColor", this.dv(G(void 0)));
22828
- m(this, "_highlightStyleColor", this.dv(G(void 0)));
22829
- m(this, "_styleVisable", this.dv(G(void 0)));
22838
+ m(this, "_styleColor", this.dv(U(void 0)));
22839
+ m(this, "_highlightStyleColor", this.dv(U(void 0)));
22840
+ m(this, "_styleVisable", this.dv(U(void 0)));
22830
22841
  this._flattenedPlane = this.dv(new un(o, e.id)), this._czm3DTiles = this.dv(new ke(o, this, e.id)), this._clippingPlanes = this.dv(new Oh(o, e.id));
22831
22842
  const s = o.viewer;
22832
22843
  if (!s) {
@@ -23313,11 +23324,11 @@ class Dr extends L {
23313
23324
  super();
23314
23325
  m(this, "_pickedEvent", this.dv(new q()));
23315
23326
  m(this, "_flyToEvent", this.dv(new q()));
23316
- m(this, "_area", this.dv(G(0)));
23327
+ m(this, "_area", this.dv(U(0)));
23317
23328
  m(this, "_centerOfMass", this.dv(Q(void 0)));
23318
23329
  m(this, "_distances", this.dv(j([])));
23319
23330
  m(this, "_geoPolyline");
23320
- m(this, "_id", this.dv(G(Qe())));
23331
+ m(this, "_id", this.dv(U(Qe())));
23321
23332
  o && (this.id = o);
23322
23333
  {
23323
23334
  const s = () => {
@@ -23604,9 +23615,9 @@ function gI(t, i, e) {
23604
23615
  class kr extends L {
23605
23616
  constructor(e, o) {
23606
23617
  super();
23607
- m(this, "_id", this.disposeVar(G(Qe())));
23618
+ m(this, "_id", this.disposeVar(U(Qe())));
23608
23619
  m(this, "_flyToEvent", this.disposeVar(new q()));
23609
- m(this, "_computedClippingPlanes", this.disposeVar(G(void 0)));
23620
+ m(this, "_computedClippingPlanes", this.disposeVar(U(void 0)));
23610
23621
  m(this, "_polylines");
23611
23622
  o && (this.id = o), this._polylines = this.disposeVar(new Fi(e, o)), this._polylines.arcType = "NONE", this.ad(this.flyToEvent.disposableOn((s) => {
23612
23623
  if (!(e instanceof We) || !e.actived) return;
@@ -23757,7 +23768,7 @@ const Oa = class Oa extends Me {
23757
23768
  m(this, "_czmBoxClippingPlanes");
23758
23769
  m(this, "_tilesSceneObjectWithId");
23759
23770
  this._tilesSceneObjectWithId = this.disposeVar(new Di());
23760
- const s = this.ad(G(this.sceneObject.targetID));
23771
+ const s = this.ad(U(this.sceneObject.targetID));
23761
23772
  if (this.ad(e.targetIDChanged.don(() => {
23762
23773
  const a = oe.getSceneObject(e.targetID);
23763
23774
  s.value = a ? (a.components.main ?? a).id : "";
@@ -23880,8 +23891,8 @@ const Va = class Va extends Me {
23880
23891
  3,
23881
23892
  4,
23882
23893
  0
23883
- ], U = [...V, ...V.reverse()], W = [1, 0], z = [1, 1], N = [1, 0], y = [1, 1], b = [0, 0], R = [0, 1], O = [0, 0], $ = [0, 1], J = [...W, ...z, ...N, ...y, ...b, ...R, ...O, ...$];
23884
- n.indexTypedArray = new Uint16Array(U), n.attributes = {
23894
+ ], G = [...V, ...V.reverse()], W = [1, 0], z = [1, 1], N = [1, 0], y = [1, 1], b = [0, 0], R = [0, 1], O = [0, 0], $ = [0, 1], J = [...W, ...z, ...N, ...y, ...b, ...R, ...O, ...$];
23895
+ n.indexTypedArray = new Uint16Array(G), n.attributes = {
23885
23896
  position: {
23886
23897
  typedArray: new Float32Array(B),
23887
23898
  componentsPerAttribute: 3
@@ -24121,7 +24132,7 @@ class fn extends L {
24121
24132
  constructor(e, o) {
24122
24133
  super();
24123
24134
  m(this, "_flyToEvent", this.disposeVar(new q()));
24124
- m(this, "_id", this.disposeVar(G(Qe())));
24135
+ m(this, "_id", this.disposeVar(U(Qe())));
24125
24136
  o && (this.id = o);
24126
24137
  const s = e.viewer;
24127
24138
  if (!s) {
@@ -24301,7 +24312,7 @@ class Fr extends L {
24301
24312
  super();
24302
24313
  m(this, "_flyToEvent", this.disposeVar(new q()));
24303
24314
  m(this, "_helperPolygon");
24304
- m(this, "_id", this.disposeVar(G(Qe())));
24315
+ m(this, "_id", this.disposeVar(U(Qe())));
24305
24316
  o && (this.id = o);
24306
24317
  {
24307
24318
  const s = this.disposeVar(new on(e, o));
@@ -24477,10 +24488,10 @@ const Ha = class Ha extends L {
24477
24488
  super();
24478
24489
  m(this, "_flyToEvent", this.disposeVar(new q()));
24479
24490
  //@ts-ignore
24480
- m(this, "_loadFuncReact", this.disposeVar(G(void 0)));
24491
+ m(this, "_loadFuncReact", this.disposeVar(U(void 0)));
24481
24492
  m(this, "_clock");
24482
24493
  m(this, "_resetClockEvent", this.disposeVar(new q()));
24483
- m(this, "_dataSource", this.disposeVar(G(void 0)));
24494
+ m(this, "_dataSource", this.disposeVar(U(void 0)));
24484
24495
  this._clock = this.disposeVar(new we(e)), this.dispose(M([this.clock, "startTime"], [this, "startTime"])), this.dispose(M([this.clock, "stopTime"], [this, "stopTime"])), this.dispose(M([this.clock, "currentTime"], [this, "currentTime"])), this.dispose(M([this.clock, "multiplier"], [this, "multiplier"])), this.dispose(M([this.clock, "clockStep"], [this, "clockStep"])), this.dispose(M([this.clock, "clockRange"], [this, "clockRange"])), this.dispose(M([this.clock, "shouldAnimate"], [this, "shouldAnimate"])), this.dispose(M([this.clock, "enabled"], [this, "clockEnabled"]));
24485
24496
  const s = e.viewer;
24486
24497
  if (!s) {
@@ -24507,7 +24518,7 @@ const Ha = class Ha extends L {
24507
24518
  this.dataSource && (this.dataSource.show = this.show ?? Ha.defaults.show);
24508
24519
  };
24509
24520
  a(), this.dispose(this.showChanged.disposableOn(a));
24510
- const l = this.disposeVar(G(void 0));
24521
+ const l = this.disposeVar(U(void 0));
24511
24522
  {
24512
24523
  const c = () => {
24513
24524
  var p;
@@ -24745,7 +24756,7 @@ const qa = class qa extends Me {
24745
24756
  ],
24746
24757
  u_ratio: 0
24747
24758
  };
24748
- let a = this.disposeVar(G(void 0));
24759
+ let a = this.disposeVar(U(void 0));
24749
24760
  {
24750
24761
  const l = this.disposeVar(Fe(async (d) => {
24751
24762
  a.value = void 0;
@@ -24823,8 +24834,8 @@ const Bs = class Bs extends L {
24823
24834
  super();
24824
24835
  m(this, "_pickedEvent", this.disposeVar(new q()));
24825
24836
  m(this, "_flyToEvent", this.disposeVar(new q()));
24826
- m(this, "_heading", this.disposeVar(G(0)));
24827
- m(this, "_textFunc", this.disposeVar(G(void 0)));
24837
+ m(this, "_heading", this.disposeVar(U(0)));
24838
+ m(this, "_textFunc", this.disposeVar(U(void 0)));
24828
24839
  const s = this;
24829
24840
  {
24830
24841
  const a = () => {
@@ -25186,7 +25197,7 @@ class Uh extends L {
25186
25197
  constructor(e, o) {
25187
25198
  super();
25188
25199
  m(this, "_flyToEvent", this.disposeVar(new q()));
25189
- m(this, "_id", this.disposeVar(G(Qe())));
25200
+ m(this, "_id", this.disposeVar(U(Qe())));
25190
25201
  o && (this.id = o);
25191
25202
  }
25192
25203
  get flyToEvent() {
@@ -25263,7 +25274,7 @@ const Qa = class Qa extends Li {
25263
25274
  m(this, "_czmPolygonClipping");
25264
25275
  m(this, "_tilesSceneObjectWithId");
25265
25276
  this._czmPolygonClipping = this.ad(new Uh(o, e.id)), this._tilesSceneObjectWithId = this.disposeVar(new Di());
25266
- const s = this.ad(G(this.sceneObject.targetID));
25277
+ const s = this.ad(U(this.sceneObject.targetID));
25267
25278
  if (this.ad(e.targetIDChanged.don(() => {
25268
25279
  const a = oe.getSceneObject(e.targetID);
25269
25280
  s.value = a ? (a.components.main ?? a).id : "";
@@ -25343,7 +25354,7 @@ class Gh extends L {
25343
25354
  m(this, "_geoCanvasPointPoi");
25344
25355
  m(this, "_player");
25345
25356
  m(this, "_flyToEvent", this.disposeVar(new q()));
25346
- m(this, "_currentDistance", this.disposeVar(G(0)));
25357
+ m(this, "_currentDistance", this.disposeVar(U(0)));
25347
25358
  m(this, "_ratio", this.disposeVar(Vd.createPlayingRatio([this, "currentTime"], [this, "duration"])));
25348
25359
  this._geoPath = this.disposeVar(new uw()), this._geoPolyline = this.disposeVar(new Ve(e, o)), this._geoCanvasPointPoi = this.disposeVar(new en(e, o)), this._player = this.disposeVar(new ic()), this.dispose(M([this._geoPolyline, "positions"], [this, "positions"])), this.dispose(C([this._geoPolyline, "width"], [this, "width"])), this.dispose(C([this._geoPolyline, "ground"], [this, "ground"])), this.dispose(C([this._geoPolyline, "color"], [this, "color"])), this.dispose(C([this._geoPolyline, "hasDash"], [this, "hasDash"])), this.dispose(C([this._geoPolyline, "gapColor"], [this, "gapColor"])), this.dispose(C([this._geoPolyline, "dashLength"], [this, "dashLength"])), this.dispose(C([this._geoPolyline, "dashPattern"], [this, "dashPattern"])), this.dispose(C([this._geoPolyline, "hasArrow"], [this, "hasArrow"])), this.dispose(C([this._geoPolyline, "depthTest"], [this, "depthTest"])), this.dispose(C([this._geoPolyline, "arcType"], [this, "arcType"])), this.dispose(C([this._geoPolyline, "show"], [this, "show"])), this.dispose(C([this._geoPolyline, "show"], [this, "polylineShow"])), this.dispose(C([this._geoPolyline, "allowPicking"], [this, "allowPicking"])), this.dispose(C([this._geoPath, "currentTime"], [this, "currentDistance"])), this.dispose(C([this._geoPath, "leadTime"], [this, "leadTime"])), this.dispose(C([this._geoPath, "trailTime"], [this, "trailTime"])), this.dispose(C([this._geoPath, "show"], [this, "show"])), this.dispose(C([this._geoPath, "currentPoiShow"], [this, "currentPoiShow"]));
25349
25360
  {
@@ -25527,7 +25538,7 @@ class Wh extends L {
25527
25538
  super();
25528
25539
  m(this, "_geoPolylinePath");
25529
25540
  m(this, "_flyToEvent", this.disposeVar(new q()));
25530
- m(this, "_currentDistance", this.disposeVar(G(0)));
25541
+ m(this, "_currentDistance", this.disposeVar(U(0)));
25531
25542
  this._geoPolylinePath = this.disposeVar(new Gh(e, o)), this._geoPolylinePath.rotLerpMode = "Lerp", this.dispose(M([this._geoPolylinePath, "show"], [this, "show"])), this.dispose(M([this._geoPolylinePath, "currentPoiShow"], [this, "currentPoiShow"])), this.dispose(M([this._geoPolylinePath, "polylineShow"], [this, "polylineShow"])), this.dispose(M([this._geoPolylinePath, "width"], [this, "width"])), this.dispose(M([this._geoPolylinePath, "ground"], [this, "ground"])), this.dispose(M([this._geoPolylinePath, "color"], [this, "color"])), this.dispose(M([this._geoPolylinePath, "hasDash"], [this, "hasDash"])), this.dispose(M([this._geoPolylinePath, "gapColor"], [this, "gapColor"])), this.dispose(M([this._geoPolylinePath, "dashLength"], [this, "dashLength"])), this.dispose(M([this._geoPolylinePath, "dashPattern"], [this, "dashPattern"])), this.dispose(M([this._geoPolylinePath, "hasArrow"], [this, "hasArrow"])), this.dispose(M([this._geoPolylinePath, "arcType"], [this, "arcType"])), this.dispose(M([this._geoPolylinePath, "currentDistance"], [this, "currentDistance"])), this.dispose(M([this._geoPolylinePath, "loop"], [this, "loop"])), this.dispose(M([this._geoPolylinePath, "currentTime"], [this, "currentTime"])), this.dispose(M([this._geoPolylinePath, "duration"], [this, "duration"])), this.dispose(M([this._geoPolylinePath, "playing"], [this, "playing"])), this.dispose(M([this._geoPolylinePath, "speed"], [this, "speed"])), this.dispose(M([this._geoPolylinePath, "depthTest"], [this, "depthTest"])), this.dispose(C([this._geoPolylinePath, "leadTime"], [this, "leadTime"])), this.dispose(C([this._geoPolylinePath, "trailTime"], [this, "trailTime"])), this.dispose(C([this._geoPolylinePath, "allowPicking"], [this, "allowPicking"]));
25532
25543
  const s = this.disposeVar(F(this.positionsChanged, this.resolutionChanged, this.sharpnessChanged)), n = () => {
25533
25544
  try {
@@ -25714,7 +25725,7 @@ m(oi, "createDefaultProps", () => ({
25714
25725
  maximumLevel: 18,
25715
25726
  minimumLevel: 0,
25716
25727
  style: Q([]),
25717
- scheme: G("tms"),
25728
+ scheme: U("tms"),
25718
25729
  /**
25719
25730
  * 分割方向
25720
25731
  * @deprecated 未来会移除,请使用splitDirection代替 */
@@ -26534,8 +26545,8 @@ export type IndexJsonType = {
26534
26545
  `, Ht = class Ht extends lp {
26535
26546
  constructor(e) {
26536
26547
  super(e);
26537
- m(this, "_attributes", this.disposeVar(G(void 0)));
26538
- m(this, "_indexTypedArray", this.disposeVar(G(void 0)));
26548
+ m(this, "_attributes", this.disposeVar(U(void 0)));
26549
+ m(this, "_indexTypedArray", this.disposeVar(U(void 0)));
26539
26550
  }
26540
26551
  get attributesJson() {
26541
26552
  return this.attributes && iv(this.attributes);
@@ -26685,7 +26696,7 @@ m(Ht, "createDefaultProps", () => ({
26685
26696
  showSceneScale: void 0,
26686
26697
  // 显示每个窗口中的模型缩放值
26687
26698
  modelMatrix: Q(void 0),
26688
- cull: G(void 0),
26699
+ cull: U(void 0),
26689
26700
  boundingVolume: Be(void 0),
26690
26701
  renderState: Be(void 0),
26691
26702
  primitiveType: void 0,
@@ -26881,7 +26892,7 @@ const jo = class jo extends Ri {
26881
26892
  this._deprecatedWarning();
26882
26893
  })());
26883
26894
  m(this, "_geoPolylinePath");
26884
- m(this, "_currentDistance", this.disposeVar(G(0)));
26895
+ m(this, "_currentDistance", this.disposeVar(U(0)));
26885
26896
  }
26886
26897
  updateEditing() {
26887
26898
  var e;
@@ -27284,8 +27295,8 @@ ${e_}
27284
27295
  super();
27285
27296
  //飞行整体
27286
27297
  m(this, "_flyToEvent", this.disposeVar(new q()));
27287
- m(this, "_loadFuncReact", this.disposeVar(G(void 0)));
27288
- m(this, "_dataSource", this.disposeVar(G(void 0)));
27298
+ m(this, "_loadFuncReact", this.disposeVar(U(void 0)));
27299
+ m(this, "_dataSource", this.disposeVar(U(void 0)));
27289
27300
  m(this, "_data");
27290
27301
  m(this, "_defaultHeight", {});
27291
27302
  //记录面默认高度
@@ -27899,9 +27910,9 @@ class $h extends L {
27899
27910
  super();
27900
27911
  m(this, "_pickedEvent", this.disposeVar(new q()));
27901
27912
  m(this, "_flyToEvent", this.disposeVar(new q()));
27902
- m(this, "_distance", this.disposeVar(G(0)));
27903
- m(this, "_surfaceDistance", this.disposeVar(G(0)));
27904
- m(this, "_height", this.disposeVar(G(0)));
27913
+ m(this, "_distance", this.disposeVar(U(0)));
27914
+ m(this, "_surfaceDistance", this.disposeVar(U(0)));
27915
+ m(this, "_height", this.disposeVar(U(0)));
27905
27916
  m(this, "_middlePosition", this.disposeVar(Q(void 0)));
27906
27917
  // private _distancePosition = this.disposeVar(reactArrayWithUndefined<[number, number, number] | undefined>(undefined));
27907
27918
  // get distancePosition() { return this._distancePosition.value; }
@@ -28218,7 +28229,7 @@ class KI extends L {
28218
28229
  e.sizeByContentChanged,
28219
28230
  e.sizeChanged
28220
28231
  ));
28221
- this.dispose(a.disposableOn(() => r())), r(), this.d(C([s, "zOrder"], [e, "zOrder"])), this.dispose(C([s, "show"], [e, "show"])), this.dispose(M([s, "position"], [e, "position"])), this.ad(M([s, "isHoverZoom"], [e, "isHoverZoom"]));
28232
+ this.dispose(a.disposableOn(() => r())), r(), this.d(C([s, "zOrder"], [e, "zOrder"])), this.dispose(C([s, "show"], [e, "show"])), this.dispose(M([s, "position"], [e, "position"])), this.ad(M([s, "isHoverZoom"], [e, "isHoverZoom"])), this.ad(M([s, "hoverHighlight"], [e, "hoverHighlight"]));
28222
28233
  {
28223
28234
  const d = () => {
28224
28235
  s.scale = [e.scale[1], e.scale[2]];
@@ -28459,7 +28470,7 @@ class e2 extends L {
28459
28470
  m(this, "_czmESCustomPrimitive");
28460
28471
  // 自定义纹理
28461
28472
  m(this, "_czmTexture");
28462
- this._sceneObject = e, this._show = this.disposeVar(G(this._sceneObject.show)), this._czmESCustomPrimitive = this.dv(new Xe(o, this._sceneObject.id)), this._czmTexture = this.dv(new je(o));
28473
+ this._sceneObject = e, this._show = this.disposeVar(U(this._sceneObject.show)), this._czmESCustomPrimitive = this.dv(new Xe(o, this._sceneObject.id)), this._czmTexture = this.dv(new je(o));
28463
28474
  const r = e, a = this._czmESCustomPrimitive, l = this._czmTexture;
28464
28475
  this.dispose(C([a, "show"], [this, "show"])), this.dispose(C([a, "show"], [r, "show"])), this.dispose(C([a, "allowPicking"], [r, "allowPicking"])), this.dispose(C([a, "rotation"], [r, "rotation"])), this.dispose(C([a, "position"], [r, "position"])), this.dispose(C([a, "scale"], [r, "scale"])), this.ad(r.allowPickingChanged.don(() => {
28465
28476
  a.allowPicking = r.allowPicking, a.pass = r.allowPicking ? "TRANSLUCENT" : "OVERLAY";
@@ -28503,8 +28514,8 @@ class e2 extends L {
28503
28514
  }
28504
28515
  const V = a.computeLocalAxisedBoundingBoxFromAttribute("position");
28505
28516
  if (!V) return;
28506
- const { min: U, max: W } = V;
28507
- a.setLocalAxisedBoundingBox(U, W);
28517
+ const { min: G, max: W } = V;
28518
+ a.setLocalAxisedBoundingBox(G, W);
28508
28519
  };
28509
28520
  c();
28510
28521
  const d = this.disposeVar(
@@ -28655,7 +28666,7 @@ const Pi = class Pi extends Me {
28655
28666
  constructor(e, o) {
28656
28667
  super(e, o);
28657
28668
  m(this, "_geoCustomDivPoi");
28658
- m(this, "_textFunc", this.disposeVar(G(void 0)));
28669
+ m(this, "_textFunc", this.disposeVar(U(void 0)));
28659
28670
  if (this._geoCustomDivPoi = this.disposeVar(new dt(o, e.id)), !o.viewer) {
28660
28671
  console.warn("viewer is undefined!");
28661
28672
  return;
@@ -29131,7 +29142,7 @@ const c2 = {
29131
29142
  }
29132
29143
  }
29133
29144
  };
29134
- m(rt, "type", rt.register("ESCesiumViewer", ot.type, rt)), m(rt, "modeCache", G({}));
29145
+ m(rt, "type", rt.register("ESCesiumViewer", ot.type, rt)), m(rt, "modeCache", U({}));
29135
29146
  let wv = rt;
29136
29147
  const cl = class cl extends Me {
29137
29148
  constructor(e, o) {
@@ -29508,8 +29519,8 @@ async function g2(t, i) {
29508
29519
  const ul = class ul extends Xi {
29509
29520
  constructor(e, o) {
29510
29521
  super(e, o);
29511
- m(this, "_provider", this.disposeVar(G(void 0)));
29512
- m(this, "_czmProvider", this.dv(G(void 0)));
29522
+ m(this, "_provider", this.disposeVar(U(void 0)));
29523
+ m(this, "_czmProvider", this.dv(U(void 0)));
29513
29524
  const s = o.viewer;
29514
29525
  if (!s) return;
29515
29526
  const n = Bi(s);
@@ -29679,9 +29690,9 @@ class y2 extends L {
29679
29690
  super();
29680
29691
  m(this, "_czmTextLabel");
29681
29692
  m(this, "_czmImageModel");
29682
- m(this, "_url", this.disposeVar(G("")));
29683
- m(this, "_defaultSize", this.disposeVar(G([1, 1])));
29684
- m(this, "_size", this.disposeVar(G([1, 1])));
29693
+ m(this, "_url", this.disposeVar(U("")));
29694
+ m(this, "_defaultSize", this.disposeVar(U([1, 1])));
29695
+ m(this, "_size", this.disposeVar(U([1, 1])));
29685
29696
  //鼠标模式
29686
29697
  m(this, "_eventInfo", { type: "leftClick", add: { mousePos: [0, 0] } });
29687
29698
  m(this, "_isPointEvent", !1);
@@ -30219,7 +30230,7 @@ class Lr extends L {
30219
30230
  m(this, "_flyToEvent", this.disposeVar(new q()));
30220
30231
  m(this, "_resetWithCameraInfoEvent", this.disposeVar(new q()));
30221
30232
  m(this, "_sharedCzmTexture");
30222
- m(this, "_fovy", this.disposeVar(G(0)));
30233
+ m(this, "_fovy", this.disposeVar(U(0)));
30223
30234
  m(this, "_fovyUpdate", (() => {
30224
30235
  const e = h.Math.toRadians, o = h.Math.toDegrees;
30225
30236
  {
@@ -30237,7 +30248,7 @@ class Lr extends L {
30237
30248
  s(), this.dispose(this.fovyChanged.disposableOn(s));
30238
30249
  }
30239
30250
  })());
30240
- m(this, "_fovx", this.disposeVar(G(0)));
30251
+ m(this, "_fovx", this.disposeVar(U(0)));
30241
30252
  m(this, "_fovxUpdate", (() => {
30242
30253
  const e = h.Math.toRadians, o = h.Math.toDegrees;
30243
30254
  {
@@ -30257,11 +30268,11 @@ class Lr extends L {
30257
30268
  })());
30258
30269
  m(this, "_xbsjCameraVideoResettingEvent");
30259
30270
  m(this, "_xbsjCameraVideoResetting");
30260
- m(this, "_id", this.disposeVar(G(Qe())));
30271
+ m(this, "_id", this.disposeVar(U(Qe())));
30261
30272
  o && (this.id = o);
30262
30273
  {
30263
30274
  const n = () => {
30264
- this.czmTextureId && (this._sharedCzmTexture = window.czmTexture[this.czmTextureId]);
30275
+ this.czmTextureId && (this._sharedCzmTexture = globalThis.czmTexture[this.czmTextureId]);
30265
30276
  };
30266
30277
  n(), this.ad(this.czmTextureIdChanged.don(n));
30267
30278
  }
@@ -31320,10 +31331,10 @@ const ar = class ar extends L {
31320
31331
  constructor(e, o) {
31321
31332
  super();
31322
31333
  m(this, "_flyToEvent", this.disposeVar(new q()));
31323
- m(this, "_loadFuncReact", this.disposeVar(G(void 0)));
31334
+ m(this, "_loadFuncReact", this.disposeVar(U(void 0)));
31324
31335
  m(this, "_clock");
31325
31336
  m(this, "_resetClockEvent", this.disposeVar(new q()));
31326
- m(this, "_dataSource", this.dv(G(void 0)));
31337
+ m(this, "_dataSource", this.dv(U(void 0)));
31327
31338
  this._clock = this.disposeVar(new we(e)), this.dispose(M([this.clock, "startTime"], [this, "startTime"])), this.dispose(M([this.clock, "stopTime"], [this, "stopTime"])), this.dispose(M([this.clock, "currentTime"], [this, "currentTime"])), this.dispose(M([this.clock, "multiplier"], [this, "multiplier"])), this.dispose(M([this.clock, "clockStep"], [this, "clockStep"])), this.dispose(M([this.clock, "clockRange"], [this, "clockRange"])), this.dispose(M([this.clock, "shouldAnimate"], [this, "shouldAnimate"])), this.dispose(M([this.clock, "enabled"], [this, "clockEnabled"]));
31328
31339
  const s = e.viewer;
31329
31340
  if (!s) {
@@ -31353,7 +31364,7 @@ const ar = class ar extends L {
31353
31364
  this.dataSource && (this.dataSource.show = this.show ?? ar.defaults.show, n.style.display = this.show ?? ar.defaults.show ? "block" : "none");
31354
31365
  };
31355
31366
  l(), this.d(this.showChanged.don(l));
31356
- const c = this.dv(G(void 0));
31367
+ const c = this.dv(U(void 0));
31357
31368
  {
31358
31369
  const d = () => {
31359
31370
  var f;
@@ -31956,7 +31967,7 @@ const bo = class bo extends L {
31956
31967
  this._czmCustomPrimitive = this.disposeVar(new Xe(e, o)), this._geoBoundingSphere = this.disposeVar(IS([this, "positions"]));
31957
31968
  const { czmCustomPrimitive: s } = this;
31958
31969
  this.dispose(C([s, "show"], [this, "show"])), this.dispose(C([s, "allowPicking"], [this, "allowPicking"]));
31959
- const n = this.disposeVar(G(0));
31970
+ const n = this.disposeVar(U(0));
31960
31971
  {
31961
31972
  const r = () => {
31962
31973
  if (!this.positions || this.positions.length < 3) {
@@ -32286,7 +32297,7 @@ const es = class es extends L {
32286
32297
  console.warn("viewer is undefined!");
32287
32298
  return;
32288
32299
  }
32289
- const n = oe.context.createEnvStrReact([this, "imageUrl"], es.defaults.imageUrl), r = this.disposeVar(G(void 0)), a = () => {
32300
+ const n = oe.context.createEnvStrReact([this, "imageUrl"], es.defaults.imageUrl), r = this.disposeVar(U(void 0)), a = () => {
32290
32301
  const w = h.Material.fromType(h.Material.ImageType);
32291
32302
  w.uniforms.image = n.value, w.uniforms.repeat = De(this.repeat ?? es.defaults.repeat), r.value = w;
32292
32303
  };
@@ -32655,7 +32666,7 @@ const Fl = class Fl extends Xi {
32655
32666
  constructor(e, o) {
32656
32667
  super(e, o);
32657
32668
  m(this, "_scaleFactor", 0.6);
32658
- m(this, "_urlData", this.dv(G(void 0)));
32669
+ m(this, "_urlData", this.dv(U(void 0)));
32659
32670
  m(this, "_dataSource", new h.CustomDataSource());
32660
32671
  m(this, "_clusterImages", {});
32661
32672
  m(this, "_clusterImageAttribute", {});
@@ -32741,8 +32752,8 @@ const Fl = class Fl extends Xi {
32741
32752
  const a = s.entities, l = new h.NearFarScalar(100, 1, 1e3, 1), c = n.heightReference == "None" ? h.HeightReference.NONE : n.heightReference == "CLAMP_TO_GROUND" ? h.HeightReference.CLAMP_TO_GROUND : h.HeightReference.CLAMP_TO_TERRAIN;
32742
32753
  a.removeAll();
32743
32754
  const d = (g = this.czmViewer.viewer) == null ? void 0 : g.scene.postUpdate.addEventListener(() => {
32744
- s._entityCluster._billboardCollection && (s._entityCluster._billboardCollection._billboards.forEach((U) => {
32745
- U.id.billboard.imageSubRegion = void 0;
32755
+ s._entityCluster._billboardCollection && (s._entityCluster._billboardCollection._billboards.forEach((G) => {
32756
+ G.id.billboard.imageSubRegion = void 0;
32746
32757
  }), d && d());
32747
32758
  }), u = n.style ?? qc.defaults.style;
32748
32759
  this._clusterImages[((v = u.nonCluster) == null ? void 0 : v.mode) ?? "SquareH01"].heightReference = c, this._clusterImages[((_ = u.nonCluster) == null ? void 0 : _.mode) ?? "SquareH01"].scaleByDistance = l;
@@ -32751,24 +32762,24 @@ const Fl = class Fl extends Xi {
32751
32762
  -this._clusterImageAttribute[((S = u.nonCluster) == null ? void 0 : S.mode) ?? "SquareH01"].anchorPixelOffset[1] - this._clusterImageAttribute[((T = u.nonCluster) == null ? void 0 : T.mode) ?? "SquareH01"].textPixelOffset[1]
32752
32763
  ];
32753
32764
  if (this.urlData.type === "FeatureCollection")
32754
- for (let U = 0; U < this.urlData.features.length; U++) {
32755
- const W = this.urlData.features[U];
32765
+ for (let G = 0; G < this.urlData.features.length; G++) {
32766
+ const W = this.urlData.features[G];
32756
32767
  if (W.geometry.type == "Point")
32757
- this._addEntities(a, W.properties.name ?? (U + 1).toString(), W.geometry.coordinates, p, c, l, (E = u.nonCluster) == null ? void 0 : E.mode, W.properties);
32768
+ this._addEntities(a, W.properties.name ?? (G + 1).toString(), W.geometry.coordinates, p, c, l, (E = u.nonCluster) == null ? void 0 : E.mode, W.properties);
32758
32769
  else if (W.geometry.type == "MultiPoint")
32759
32770
  for (let z = 0; z < W.geometry.coordinates.length; z++)
32760
- this._addEntities(a, W.properties.name ?? (U + 1).toString(), W.geometry.coordinates[z], p, c, l, (D = u.nonCluster) == null ? void 0 : D.mode, W.properties);
32771
+ this._addEntities(a, W.properties.name ?? (G + 1).toString(), W.geometry.coordinates[z], p, c, l, (D = u.nonCluster) == null ? void 0 : D.mode, W.properties);
32761
32772
  else
32762
32773
  console.log("POI聚合只能加载Point和MultiPoint类型的数据,未加载数据类型为:", W.geometry.type);
32763
32774
  }
32764
32775
  else if (this.urlData.type == "GeometryCollection")
32765
- for (let U = 0; U < this.urlData.geometries.length; U++) {
32766
- const W = this.urlData.geometries[U];
32776
+ for (let G = 0; G < this.urlData.geometries.length; G++) {
32777
+ const W = this.urlData.geometries[G];
32767
32778
  if (W.type == "Point")
32768
- this._addEntities(a, W.name ?? (U + 1).toString(), W.coordinates, p, c, l, (B = u.nonCluster) == null ? void 0 : B.mode, W.properties);
32779
+ this._addEntities(a, W.name ?? (G + 1).toString(), W.coordinates, p, c, l, (B = u.nonCluster) == null ? void 0 : B.mode, W.properties);
32769
32780
  else if (W.type == "MultiPoint")
32770
32781
  for (let z = 0; z < W.coordinates.length; z++)
32771
- this._addEntities(a, W.name ?? (U + 1).toString(), W.coordinates[z], p, c, l, (V = u.nonCluster) == null ? void 0 : V.mode, W.properties);
32782
+ this._addEntities(a, W.name ?? (G + 1).toString(), W.coordinates[z], p, c, l, (V = u.nonCluster) == null ? void 0 : V.mode, W.properties);
32772
32783
  else
32773
32784
  console.log("POI聚合只能加载Point和MultiPoint类型的数据,未加载数据类型为:", W.type);
32774
32785
  }
@@ -33146,7 +33157,7 @@ const Bl = class Bl extends Kt {
33146
33157
  m(this, "_czmTexture", this.ad(new je(this.czmViewer, this.sceneObject.id)));
33147
33158
  // 自定义 primitive
33148
33159
  m(this, "_czmCustomPrimitive", this.dv(new Xe(this.czmViewer, this.sceneObject.id)));
33149
- m(this, "_distances", this.dv(G(0)));
33160
+ m(this, "_distances", this.dv(U(0)));
33150
33161
  if (!o.viewer) {
33151
33162
  console.warn("viewer is undefined!");
33152
33163
  return;
@@ -33454,7 +33465,7 @@ class J2 extends L {
33454
33465
  }
33455
33466
  h.Cartesian3.normalize(D, D), h.Cartesian3.multiplyByScalar(D, s, D);
33456
33467
  for (let B = 0; B <= n; B++) {
33457
- let V = h.Quaternion.fromAxisAngle(S, B * 2 * Math.PI / n), U = h.Matrix3.fromQuaternion(V), W = h.Matrix4.fromRotationTranslation(U, h.Cartesian3.ZERO);
33468
+ let V = h.Quaternion.fromAxisAngle(S, B * 2 * Math.PI / n), G = h.Matrix3.fromQuaternion(V), W = h.Matrix4.fromRotationTranslation(G, h.Cartesian3.ZERO);
33458
33469
  h.Matrix4.multiplyByTranslation(W, D, W);
33459
33470
  const z = h.Matrix4.getTranslation(W, new h.Cartesian3());
33460
33471
  h.Cartesian3.add(_, z, z);
@@ -33596,14 +33607,14 @@ const Ul = class Ul extends Li {
33596
33607
  componentsPerAttribute: 2
33597
33608
  }
33598
33609
  };
33599
- const U = v == "bottom" ? e.bottomImage.uDis ?? 50 : e.sideImage.uDis ?? 50, W = v == "bottom" ? e.bottomImage.vDis ?? 50 : e.sideImage.vDis ?? 50;
33610
+ const G = v == "bottom" ? e.bottomImage.uDis ?? 50 : e.sideImage.uDis ?? 50, W = v == "bottom" ? e.bottomImage.vDis ?? 50 : e.sideImage.vDis ?? 50;
33600
33611
  p.fragmentShaderSource = `in vec2 v_st;
33601
33612
  uniform sampler2D u_image;
33602
33613
  uniform vec4 u_color;
33603
33614
  void main()
33604
33615
  {
33605
33616
  vec2 st = v_st;
33606
- st.s = fract(st.s * ${(this._width / U).toFixed(1)});
33617
+ st.s = fract(st.s * ${(this._width / G).toFixed(1)});
33607
33618
  st.t = fract(st.t * ${(this._height / W).toFixed(1)});
33608
33619
  vec4 imageColor = texture(u_image, st);
33609
33620
  out_FragColor = imageColor * u_color;
@@ -34794,8 +34805,8 @@ Br.createGeometry = function(t) {
34794
34805
  for (l = 0; l < p - 1; ++l) {
34795
34806
  var S = u[l], T = u[l + 1], E = o[l], D = g(S, T, f);
34796
34807
  if (s && l < _) {
34797
- var B = o[l + 1], V = NR(S, T, E, B, D), U = V.length;
34798
- for (c = 0; c < U; ++c)
34808
+ var B = o[l + 1], V = NR(S, T, E, B, D), G = V.length;
34809
+ for (c = 0; c < G; ++c)
34799
34810
  P[w++] = V[c];
34800
34811
  } else
34801
34812
  for (c = 0; c < D; ++c)
@@ -35083,11 +35094,11 @@ function (result, this, instanceIndex, frameState) {
35083
35094
  m(this, "_flyToEvent", this.disposeVar(new q()));
35084
35095
  m(this, "_player");
35085
35096
  m(this, "_finalImageUrlReact", this.disposeVar(oe.context.createEnvStrReact([this, "imageUrl"])));
35086
- m(this, "_routePaths", this.disposeVar(G(void 0)));
35097
+ m(this, "_routePaths", this.disposeVar(U(void 0)));
35087
35098
  m(this, "routePathCallback");
35088
35099
  // 操作说明:1 输入变量名 2 输入类型信息 3 输入默认值 tab进入下一个输入项
35089
35100
  // import { react } from "earthsdk3";
35090
- m(this, "_id", this.disposeVar(G(Qe())));
35101
+ m(this, "_id", this.disposeVar(U(Qe())));
35091
35102
  o && (this._id.value = o), this._player = this.disposeVar(new ic());
35092
35103
  {
35093
35104
  const f = ts.defaults;
@@ -35416,18 +35427,18 @@ var g_ = { exports: {} };
35416
35427
  t.exports = o();
35417
35428
  })(Qs, function() {
35418
35429
  function e(w, S, T, E, D) {
35419
- (function B(V, U, W, z, N) {
35430
+ (function B(V, G, W, z, N) {
35420
35431
  for (; z > W; ) {
35421
35432
  if (z - W > 600) {
35422
- var y = z - W + 1, b = U - W + 1, R = Math.log(y), O = 0.5 * Math.exp(2 * R / 3), $ = 0.5 * Math.sqrt(R * O * (y - O) / y) * (b - y / 2 < 0 ? -1 : 1), J = Math.max(W, Math.floor(U - b * O / y + $)), Z = Math.min(z, Math.floor(U + (y - b) * O / y + $));
35423
- B(V, U, J, Z, N);
35433
+ var y = z - W + 1, b = G - W + 1, R = Math.log(y), O = 0.5 * Math.exp(2 * R / 3), $ = 0.5 * Math.sqrt(R * O * (y - O) / y) * (b - y / 2 < 0 ? -1 : 1), J = Math.max(W, Math.floor(G - b * O / y + $)), Z = Math.min(z, Math.floor(G + (y - b) * O / y + $));
35434
+ B(V, G, J, Z, N);
35424
35435
  }
35425
- var K = V[U], te = W, le = z;
35426
- for (o(V, W, U), N(V[z], K) > 0 && o(V, W, z); te < le; ) {
35436
+ var K = V[G], te = W, le = z;
35437
+ for (o(V, W, G), N(V[z], K) > 0 && o(V, W, z); te < le; ) {
35427
35438
  for (o(V, te, le), te++, le--; N(V[te], K) < 0; ) te++;
35428
35439
  for (; N(V[le], K) > 0; ) le--;
35429
35440
  }
35430
- N(V[W], K) === 0 ? o(V, W, le) : o(V, ++le, z), le <= U && (W = le + 1), U <= le && (z = le - 1);
35441
+ N(V[W], K) === 0 ? o(V, W, le) : o(V, ++le, z), le <= G && (W = le + 1), G <= le && (z = le - 1);
35431
35442
  }
35432
35443
  })(w, S, T || 0, E || w.length - 1, D || s);
35433
35444
  }
@@ -35494,8 +35505,8 @@ var g_ = { exports: {} };
35494
35505
  if (!v(w, S)) return T;
35495
35506
  for (var E = this.toBBox, D = []; S; ) {
35496
35507
  for (var B = 0; B < S.children.length; B++) {
35497
- var V = S.children[B], U = S.leaf ? E(V) : V;
35498
- v(w, U) && (S.leaf ? T.push(V) : g(w, U) ? this._all(V, T) : D.push(V));
35508
+ var V = S.children[B], G = S.leaf ? E(V) : V;
35509
+ v(w, G) && (S.leaf ? T.push(V) : g(w, G) ? this._all(V, T) : D.push(V));
35499
35510
  }
35500
35511
  S = D.pop();
35501
35512
  }
@@ -35537,12 +35548,12 @@ var g_ = { exports: {} };
35537
35548
  return this.data = _([]), this;
35538
35549
  }, n.prototype.remove = function(w, S) {
35539
35550
  if (!w) return this;
35540
- for (var T, E, D, B = this.data, V = this.toBBox(w), U = [], W = []; B || U.length; ) {
35541
- if (B || (B = U.pop(), E = U[U.length - 1], T = W.pop(), D = !0), B.leaf) {
35551
+ for (var T, E, D, B = this.data, V = this.toBBox(w), G = [], W = []; B || G.length; ) {
35552
+ if (B || (B = G.pop(), E = G[G.length - 1], T = W.pop(), D = !0), B.leaf) {
35542
35553
  var z = r(w, B.children, S);
35543
- if (z !== -1) return B.children.splice(z, 1), U.push(B), this._condense(U), this;
35554
+ if (z !== -1) return B.children.splice(z, 1), G.push(B), this._condense(G), this;
35544
35555
  }
35545
- D || B.leaf || !g(B, V) ? E ? (T++, B = E.children[T], D = !1) : B = null : (U.push(B), W.push(T), T = 0, E = B, B = B.children[0]);
35556
+ D || B.leaf || !g(B, V) ? E ? (T++, B = E.children[T], D = !1) : B = null : (G.push(B), W.push(T), T = 0, E = B, B = B.children[0]);
35546
35557
  }
35547
35558
  return this;
35548
35559
  }, n.prototype.toBBox = function(w) {
@@ -35562,21 +35573,21 @@ var g_ = { exports: {} };
35562
35573
  var D, B = T - S + 1, V = this._maxEntries;
35563
35574
  if (B <= V) return a(D = _(w.slice(S, T + 1)), this.toBBox), D;
35564
35575
  E || (E = Math.ceil(Math.log(B) / Math.log(V)), V = Math.ceil(B / Math.pow(V, E - 1))), (D = _([])).leaf = !1, D.height = E;
35565
- var U = Math.ceil(B / V), W = U * Math.ceil(Math.sqrt(V));
35576
+ var G = Math.ceil(B / V), W = G * Math.ceil(Math.sqrt(V));
35566
35577
  P(w, S, T, W, this.compareMinX);
35567
35578
  for (var z = S; z <= T; z += W) {
35568
35579
  var N = Math.min(z + W - 1, T);
35569
- P(w, z, N, U, this.compareMinY);
35570
- for (var y = z; y <= N; y += U) {
35571
- var b = Math.min(y + U - 1, N);
35580
+ P(w, z, N, G, this.compareMinY);
35581
+ for (var y = z; y <= N; y += G) {
35582
+ var b = Math.min(y + G - 1, N);
35572
35583
  D.children.push(this._build(w, y, b, E - 1));
35573
35584
  }
35574
35585
  }
35575
35586
  return a(D, this.toBBox), D;
35576
35587
  }, n.prototype._chooseSubtree = function(w, S, T, E) {
35577
35588
  for (; E.push(S), !S.leaf && E.length - 1 !== T; ) {
35578
- for (var D = 1 / 0, B = 1 / 0, V = void 0, U = 0; U < S.children.length; U++) {
35579
- var W = S.children[U], z = p(W), N = (y = w, b = W, (Math.max(b.maxX, y.maxX) - Math.min(b.minX, y.minX)) * (Math.max(b.maxY, y.maxY) - Math.min(b.minY, y.minY)) - z);
35589
+ for (var D = 1 / 0, B = 1 / 0, V = void 0, G = 0; G < S.children.length; G++) {
35590
+ var W = S.children[G], z = p(W), N = (y = w, b = W, (Math.max(b.maxX, y.maxX) - Math.min(b.minX, y.minX)) * (Math.max(b.maxY, y.maxY) - Math.min(b.minY, y.minY)) - z);
35580
35591
  N < B ? (B = N, D = z < D ? z : D, V = W) : N === B && z < D && (D = z, V = W);
35581
35592
  }
35582
35593
  S = V || S.children[0];
@@ -35595,8 +35606,8 @@ var g_ = { exports: {} };
35595
35606
  }, n.prototype._splitRoot = function(w, S) {
35596
35607
  this.data = _([w, S]), this.data.height = w.height + 1, this.data.leaf = !1, a(this.data, this.toBBox);
35597
35608
  }, n.prototype._chooseSplitIndex = function(w, S, T) {
35598
- for (var E, D, B, V, U, W, z, N = 1 / 0, y = 1 / 0, b = S; b <= T - S; b++) {
35599
- var R = l(w, 0, b, this.toBBox), O = l(w, b, T, this.toBBox), $ = (D = R, B = O, V = void 0, U = void 0, W = void 0, z = void 0, V = Math.max(D.minX, B.minX), U = Math.max(D.minY, B.minY), W = Math.min(D.maxX, B.maxX), z = Math.min(D.maxY, B.maxY), Math.max(0, W - V) * Math.max(0, z - U)), J = p(R) + p(O);
35609
+ for (var E, D, B, V, G, W, z, N = 1 / 0, y = 1 / 0, b = S; b <= T - S; b++) {
35610
+ var R = l(w, 0, b, this.toBBox), O = l(w, b, T, this.toBBox), $ = (D = R, B = O, V = void 0, G = void 0, W = void 0, z = void 0, V = Math.max(D.minX, B.minX), G = Math.max(D.minY, B.minY), W = Math.min(D.maxX, B.maxX), z = Math.min(D.maxY, B.maxY), Math.max(0, W - V) * Math.max(0, z - G)), J = p(R) + p(O);
35600
35611
  $ < N ? (N = $, E = b, y = J < y ? J : y) : $ === N && J < y && (y = J, E = b);
35601
35612
  }
35602
35613
  return E || T - S;
@@ -35605,15 +35616,15 @@ var g_ = { exports: {} };
35605
35616
  this._allDistMargin(w, S, T, E) < this._allDistMargin(w, S, T, D) && w.children.sort(E);
35606
35617
  }, n.prototype._allDistMargin = function(w, S, T, E) {
35607
35618
  w.children.sort(E);
35608
- for (var D = this.toBBox, B = l(w, 0, S, D), V = l(w, T - S, T, D), U = f(B) + f(V), W = S; W < T - S; W++) {
35619
+ for (var D = this.toBBox, B = l(w, 0, S, D), V = l(w, T - S, T, D), G = f(B) + f(V), W = S; W < T - S; W++) {
35609
35620
  var z = w.children[W];
35610
- c(B, w.leaf ? D(z) : z), U += f(B);
35621
+ c(B, w.leaf ? D(z) : z), G += f(B);
35611
35622
  }
35612
35623
  for (var N = T - S - 1; N >= S; N--) {
35613
35624
  var y = w.children[N];
35614
- c(V, w.leaf ? D(y) : y), U += f(V);
35625
+ c(V, w.leaf ? D(y) : y), G += f(V);
35615
35626
  }
35616
- return U;
35627
+ return G;
35617
35628
  }, n.prototype._adjustParentBBoxes = function(w, S, T) {
35618
35629
  for (var E = T; E >= 0; E--) c(S[E], w);
35619
35630
  }, n.prototype._condense = function(w) {
@@ -36074,7 +36085,7 @@ var tg = { exports: {} }, w_ = {};
36074
36085
  return !!z && z.constructor === Object;
36075
36086
  }
36076
36087
  t.isObject = V;
36077
- function U(z) {
36088
+ function G(z) {
36078
36089
  if (!z)
36079
36090
  throw new Error("bbox is required");
36080
36091
  if (!Array.isArray(z))
@@ -36086,7 +36097,7 @@ var tg = { exports: {} }, w_ = {};
36086
36097
  throw new Error("bbox must only contain numbers");
36087
36098
  });
36088
36099
  }
36089
- t.validateBBox = U;
36100
+ t.validateBBox = G;
36090
36101
  function W(z) {
36091
36102
  if (!z)
36092
36103
  throw new Error("id is required");
@@ -36908,13 +36919,13 @@ function DD() {
36908
36919
  $webkitStorageInfo: !0,
36909
36920
  $window: !0
36910
36921
  }, d = function() {
36911
- if (typeof window > "u")
36922
+ if (typeof globalThis > "u")
36912
36923
  return !1;
36913
- for (var p in window)
36924
+ for (var p in globalThis)
36914
36925
  try {
36915
- if (!c["$" + p] && i.call(window, p) && window[p] !== null && typeof window[p] == "object")
36926
+ if (!c["$" + p] && i.call(globalThis, p) && globalThis[p] !== null && typeof globalThis[p] == "object")
36916
36927
  try {
36917
- l(window[p]);
36928
+ l(globalThis[p]);
36918
36929
  } catch {
36919
36930
  return !0;
36920
36931
  }
@@ -36923,7 +36934,7 @@ function DD() {
36923
36934
  }
36924
36935
  return !1;
36925
36936
  }(), u = function(p) {
36926
- if (typeof window > "u" || !d)
36937
+ if (typeof globalThis > "u" || !d)
36927
36938
  return l(p);
36928
36939
  try {
36929
36940
  return l(p);
@@ -38236,13 +38247,13 @@ function uc(t) {
38236
38247
  const EF = (3 + 16 * Mo) * Mo, AF = (2 + 12 * Mo) * Mo, MF = (9 + 64 * Mo) * Mo * Mo, Hn = uc(4), J0 = uc(8), j0 = uc(12), ey = uc(16), Gt = uc(4);
38237
38248
  function IF(t, i, e, o, s, n, r) {
38238
38249
  let a, l, c, d, u, p, f, g, v, _, P, w, S, T, E, D, B, V;
38239
- const U = t - s, W = e - s, z = i - n, N = o - n;
38240
- T = U * N, p = Rt * U, f = p - (p - U), g = U - f, p = Rt * N, v = p - (p - N), _ = N - v, E = g * _ - (T - f * v - g * v - f * _), D = z * W, p = Rt * z, f = p - (p - z), g = z - f, p = Rt * W, v = p - (p - W), _ = W - v, B = g * _ - (D - f * v - g * v - f * _), P = E - B, u = E - P, Hn[0] = E - (P + u) + (u - B), w = T + P, u = w - T, S = T - (w - u) + (P - u), P = S - D, u = S - P, Hn[1] = S - (P + u) + (u - D), V = w + P, u = V - w, Hn[2] = w - (V - u) + (P - u), Hn[3] = V;
38250
+ const G = t - s, W = e - s, z = i - n, N = o - n;
38251
+ T = G * N, p = Rt * G, f = p - (p - G), g = G - f, p = Rt * N, v = p - (p - N), _ = N - v, E = g * _ - (T - f * v - g * v - f * _), D = z * W, p = Rt * z, f = p - (p - z), g = z - f, p = Rt * W, v = p - (p - W), _ = W - v, B = g * _ - (D - f * v - g * v - f * _), P = E - B, u = E - P, Hn[0] = E - (P + u) + (u - B), w = T + P, u = w - T, S = T - (w - u) + (P - u), P = S - D, u = S - P, Hn[1] = S - (P + u) + (u - D), V = w + P, u = V - w, Hn[2] = w - (V - u) + (P - u), Hn[3] = V;
38241
38252
  let y = TF(4, Hn), b = AF * r;
38242
- if (y >= b || -y >= b || (u = t - U, a = t - (U + u) + (u - s), u = e - W, c = e - (W + u) + (u - s), u = i - z, l = i - (z + u) + (u - n), u = o - N, d = o - (N + u) + (u - n), a === 0 && l === 0 && c === 0 && d === 0) || (b = MF * r + bF * Math.abs(y), y += U * d + N * a - (z * c + W * l), y >= b || -y >= b)) return y;
38253
+ if (y >= b || -y >= b || (u = t - G, a = t - (G + u) + (u - s), u = e - W, c = e - (W + u) + (u - s), u = i - z, l = i - (z + u) + (u - n), u = o - N, d = o - (N + u) + (u - n), a === 0 && l === 0 && c === 0 && d === 0) || (b = MF * r + bF * Math.abs(y), y += G * d + N * a - (z * c + W * l), y >= b || -y >= b)) return y;
38243
38254
  T = a * N, p = Rt * a, f = p - (p - a), g = a - f, p = Rt * N, v = p - (p - N), _ = N - v, E = g * _ - (T - f * v - g * v - f * _), D = l * W, p = Rt * l, f = p - (p - l), g = l - f, p = Rt * W, v = p - (p - W), _ = W - v, B = g * _ - (D - f * v - g * v - f * _), P = E - B, u = E - P, Gt[0] = E - (P + u) + (u - B), w = T + P, u = w - T, S = T - (w - u) + (P - u), P = S - D, u = S - P, Gt[1] = S - (P + u) + (u - D), V = w + P, u = V - w, Gt[2] = w - (V - u) + (P - u), Gt[3] = V;
38244
38255
  const R = Zu(4, Hn, 4, Gt, J0);
38245
- T = U * d, p = Rt * U, f = p - (p - U), g = U - f, p = Rt * d, v = p - (p - d), _ = d - v, E = g * _ - (T - f * v - g * v - f * _), D = z * c, p = Rt * z, f = p - (p - z), g = z - f, p = Rt * c, v = p - (p - c), _ = c - v, B = g * _ - (D - f * v - g * v - f * _), P = E - B, u = E - P, Gt[0] = E - (P + u) + (u - B), w = T + P, u = w - T, S = T - (w - u) + (P - u), P = S - D, u = S - P, Gt[1] = S - (P + u) + (u - D), V = w + P, u = V - w, Gt[2] = w - (V - u) + (P - u), Gt[3] = V;
38256
+ T = G * d, p = Rt * G, f = p - (p - G), g = G - f, p = Rt * d, v = p - (p - d), _ = d - v, E = g * _ - (T - f * v - g * v - f * _), D = z * c, p = Rt * z, f = p - (p - z), g = z - f, p = Rt * c, v = p - (p - c), _ = c - v, B = g * _ - (D - f * v - g * v - f * _), P = E - B, u = E - P, Gt[0] = E - (P + u) + (u - B), w = T + P, u = w - T, S = T - (w - u) + (P - u), P = S - D, u = S - P, Gt[1] = S - (P + u) + (u - D), V = w + P, u = V - w, Gt[2] = w - (V - u) + (P - u), Gt[3] = V;
38246
38257
  const O = Zu(R, J0, 4, Gt, j0);
38247
38258
  T = a * d, p = Rt * a, f = p - (p - a), g = a - f, p = Rt * d, v = p - (p - d), _ = d - v, E = g * _ - (T - f * v - g * v - f * _), D = l * c, p = Rt * l, f = p - (p - l), g = l - f, p = Rt * c, v = p - (p - c), _ = c - v, B = g * _ - (D - f * v - g * v - f * _), P = E - B, u = E - P, Gt[0] = E - (P + u) + (u - B), w = T + P, u = w - T, S = T - (w - u) + (P - u), P = S - D, u = S - P, Gt[1] = S - (P + u) + (u - D), V = w + P, u = V - w, Gt[2] = w - (V - u) + (P - u), Gt[3] = V;
38248
38259
  const $ = Zu(O, j0, 4, Gt, ey);
@@ -39092,8 +39103,8 @@ function Ed(t, i, e) {
39092
39103
  }
39093
39104
  function YF(t, i, e) {
39094
39105
  e === void 0 && (e = {});
39095
- var o = JSON.stringify(e.properties || {}), s = t[0], n = t[1], r = t[2], a = t[3], l = (n + a) / 2, c = (s + r) / 2, d = i * 2 / po([s, l], [r, l], e), u = d * (r - s), p = i * 2 / po([c, n], [c, a], e), f = p * (a - n), g = u / 2, v = g * 2, _ = Math.sqrt(3) / 2 * f, P = r - s, w = a - n, S = 3 / 4 * v, T = _, E = (P - v) / (v - g / 2), D = Math.floor(E), B = (D * S - g / 2 - P) / 2 - g / 2 + S / 2, V = Math.floor((w - _) / _), U = (w - V * _) / 2, W = V * _ - w > _ / 2;
39096
- W && (U -= _ / 4);
39106
+ var o = JSON.stringify(e.properties || {}), s = t[0], n = t[1], r = t[2], a = t[3], l = (n + a) / 2, c = (s + r) / 2, d = i * 2 / po([s, l], [r, l], e), u = d * (r - s), p = i * 2 / po([c, n], [c, a], e), f = p * (a - n), g = u / 2, v = g * 2, _ = Math.sqrt(3) / 2 * f, P = r - s, w = a - n, S = 3 / 4 * v, T = _, E = (P - v) / (v - g / 2), D = Math.floor(E), B = (D * S - g / 2 - P) / 2 - g / 2 + S / 2, V = Math.floor((w - _) / _), G = (w - V * _) / 2, W = V * _ - w > _ / 2;
39107
+ W && (G -= _ / 4);
39097
39108
  for (var z = [], N = [], y = 0; y < 6; y++) {
39098
39109
  var b = 2 * Math.PI / 6 * y;
39099
39110
  z.push(Math.cos(b)), N.push(Math.sin(b));
@@ -39102,7 +39113,7 @@ function YF(t, i, e) {
39102
39113
  for (var $ = 0; $ <= V; $++) {
39103
39114
  var J = O % 2 === 1;
39104
39115
  if (!($ === 0 && J) && !($ === 0 && W)) {
39105
- var Z = O * S + s - B, K = $ * T + n + U;
39116
+ var Z = O * S + s - B, K = $ * T + n + G;
39106
39117
  if (J && (K -= _ / 2), e.triangles === !0)
39107
39118
  QF([Z, K], u / 2, f / 2, JSON.parse(o), z, N).forEach(function(le) {
39108
39119
  e.mask ? Ed(e.mask, le) && R.push(le) : R.push(le);
@@ -39467,11 +39478,11 @@ void main()
39467
39478
  var T = uy(v), E = h.Matrix4.fromTranslation(T, new h.Matrix4());
39468
39479
  S = h.Matrix4.multiply(Z, E, E), w = h.Matrix4.inverse(S, new h.Matrix4());
39469
39480
  }
39470
- var D = yr(f, S), B = [], V = [], U = cz(D);
39481
+ var D = yr(f, S), B = [], V = [], G = cz(D);
39471
39482
  if (d && c > 0) {
39472
39483
  var W = hz(D);
39473
39484
  const Z = Math.max(W.maxy - W.miny, W.maxx - W.minx);
39474
- var z = fz(U, W, c);
39485
+ var z = fz(G, W, c);
39475
39486
  const K = await Qu(z, w, S, g, s.scene, u, p, Z);
39476
39487
  var N = gz(D, c);
39477
39488
  const te = await Qu(N, w, S, g, s.scene, u, p, Z);
@@ -39493,7 +39504,7 @@ void main()
39493
39504
  const Z = D.map((K) => h.Cartesian3.fromArray([K.x, K.y, K.z + Z]));
39494
39505
  B = Z, V = yr(Z, w);
39495
39506
  }
39496
- var R = dz(B, U);
39507
+ var R = dz(B, G);
39497
39508
  const O = uz(V, R);
39498
39509
  this.totalArea = O;
39499
39510
  const $ = [];
@@ -39873,7 +39884,7 @@ const ql = class ql extends qi {
39873
39884
  let P = "", w = "";
39874
39885
  const S = c.getCameraInfo();
39875
39886
  if (S) {
39876
- const D = (V, U) => S.position[V].toFixed(U), B = (V, U) => S.rotation[V].toFixed(U);
39887
+ const D = (V, G) => S.position[V].toFixed(G), B = (V, G) => S.rotation[V].toFixed(G);
39877
39888
  P = `帧率:${c.getFPS()}FPS 经度: ${D(0, 5)}° 纬度: ${D(1, 5)}° 高度: ${D(2, 2)}米 偏航角: ${B(0, 2)}° 俯仰角: ${B(1, 2)}° 翻滚角:${B(2, 2)}° `;
39878
39889
  }
39879
39890
  p.innerText = P;
@@ -39960,8 +39971,8 @@ const Xl = class Xl extends qi {
39960
39971
  _.style.display = "none";
39961
39972
  else {
39962
39973
  _.style.display = "block";
39963
- const U = o.viewerLegend.legend.computedLengthInStr;
39964
- U && (P.innerHTML = U);
39974
+ const G = o.viewerLegend.legend.computedLengthInStr;
39975
+ G && (P.innerHTML = G);
39965
39976
  const W = o.viewerLegend.legend.computedLengthInPixels;
39966
39977
  if (W) {
39967
39978
  w.style.width = `${W}px`;
@@ -39977,7 +39988,7 @@ const Xl = class Xl extends qi {
39977
39988
  this.dispose(() => clearInterval(B));
39978
39989
  {
39979
39990
  let V;
39980
- const U = () => {
39991
+ const G = () => {
39981
39992
  e.show ? (d.style.display = "block", V = this.disposeVar(ff(
39982
39993
  () => {
39983
39994
  var y;
@@ -39997,7 +40008,7 @@ const Xl = class Xl extends qi {
39997
40008
  }
39998
40009
  )), V.start()) : (d.style.display = "none", V.destroy());
39999
40010
  };
40000
- this.dispose(e.showChanged.disposableOn(U)), U();
40011
+ this.dispose(e.showChanged.disposableOn(G)), G();
40001
40012
  }
40002
40013
  }
40003
40014
  };
@@ -40131,8 +40142,8 @@ class Zh extends L {
40131
40142
  ...this.positions.map((N) => [N[0], N[1]])
40132
40143
  ]
40133
40144
  ]
40134
- }, E = [v, _, P, w], D = this.gridWidth, U = M_(E, D, { units: "meters", mask: T }).features.map((N) => N.geometry.coordinates), W = h.Math.toRadians;
40135
- return U.map((N) => new h.Cartographic(W(N[0]), W(N[1])));
40145
+ }, E = [v, _, P, w], D = this.gridWidth, G = M_(E, D, { units: "meters", mask: T }).features.map((N) => N.geometry.coordinates), W = h.Math.toRadians;
40146
+ return G.map((N) => new h.Cartographic(W(N[0]), W(N[1])));
40136
40147
  }, d = () => {
40137
40148
  a.positions = [], l.positions = [], this.area = 0, this.cutVolume = 0, this.fillVolume = 0, this.cutAndFillVolume = 0, a.depthTest = !0;
40138
40149
  }, u = this.dv(Fe(async (f) => {
@@ -40225,7 +40236,7 @@ class Zh extends L {
40225
40236
  show: !0,
40226
40237
  allowPicking: !1,
40227
40238
  positions: Ke(void 0),
40228
- planeHeight: G(void 0),
40239
+ planeHeight: U(void 0),
40229
40240
  gridWidth: 1,
40230
40241
  area: 0,
40231
40242
  cutVolume: 0,
@@ -40998,7 +41009,7 @@ const Tz = (t) => new bz(t), oh = class oh extends Xi {
40998
41009
  m(this, "_heatmap");
40999
41010
  m(this, "_div");
41000
41011
  m(this, "_primitiveObj");
41001
- m(this, "_rectangle", this.disposeVar(G(void 0)));
41012
+ m(this, "_rectangle", this.disposeVar(U(void 0)));
41002
41013
  m(this, "onePixelRadius", 1e-4);
41003
41014
  const s = o.viewer, n = 256;
41004
41015
  if (this._primitiveObj = this.ad(new he(e.is3DChanged, () => e.is3D ? new Pz(this, o) : new _z(this, o))), !s) {
@@ -41155,10 +41166,10 @@ const Gs = class Gs extends yi {
41155
41166
  constructor(e) {
41156
41167
  super();
41157
41168
  // 注意这里用的是react,不是reactJson,意思就是一个配置信息可以配置多个不同的PositionEditing
41158
- m(this, "_config", this.disposeVar(G(Gs.defaultConfig)));
41169
+ m(this, "_config", this.disposeVar(U(Gs.defaultConfig)));
41159
41170
  // 放置完成
41160
41171
  m(this, "_overEvent", this.disposeVar(new q()));
41161
- m(this, "_pointerEventFilterFunc", this.disposeVar(G(Gs.defaultPointerEventFilterFunc)));
41172
+ m(this, "_pointerEventFilterFunc", this.disposeVar(U(Gs.defaultPointerEventFilterFunc)));
41162
41173
  m(this, "point");
41163
41174
  m(this, "czmViewer");
41164
41175
  this.czmViewer = e, e.viewer && (this._updateConfig(), this.dispose(this.configChanged.disposableOn(() => this._updateConfig())), this._createPoint(), this._updatePointPosition(), this.dispose(this.positionChanged.disposableOn(() => this._updatePointPosition())), this.ad(new he(this.enabledChanged, () => this.enabled ? new Az(e, this) : void 0)));
@@ -41357,16 +41368,16 @@ const is = class is extends mi {
41357
41368
  constructor(e) {
41358
41369
  super();
41359
41370
  m(this, "_opInfo", {
41360
- step: this.ad(G(!1)),
41361
- moved: this.ad(G(!1)),
41362
- constraintMode: this.ad(G("none")),
41371
+ step: this.ad(U(!1)),
41372
+ moved: this.ad(U(!1)),
41373
+ constraintMode: this.ad(U("none")),
41363
41374
  originPosition: this.disposeVar(j(mi.defaults.position)),
41364
- originHeading: this.disposeVar(G(0)),
41375
+ originHeading: this.disposeVar(U(0)),
41365
41376
  originDimensions: this.disposeVar(j([1, 1, 1])),
41366
41377
  draggingStartPosition: this.disposeVar(j([0, 0, 0])),
41367
41378
  movingPosition: this.disposeVar(j([0, 0, 0])),
41368
41379
  targetPosition: this.disposeVar(j([0, 0, 0])),
41369
- targetHeading: this.disposeVar(G(0))
41380
+ targetHeading: this.disposeVar(U(0))
41370
41381
  });
41371
41382
  m(this, "_createCoordinates", (e) => {
41372
41383
  const o = this.ad(new ms(e));
@@ -41804,7 +41815,7 @@ class Nr extends L {
41804
41815
  return this._debugAxis;
41805
41816
  }
41806
41817
  _createCircleCanvas(e) {
41807
- let o = this.disposeVar(G(!1));
41818
+ let o = this.disposeVar(U(!1));
41808
41819
  const s = document.createElement("canvas");
41809
41820
  s.width = s.height = 256, this._circleCanvas = s.getContext("2d");
41810
41821
  {
@@ -42126,8 +42137,8 @@ function Ju(t, i, e) {
42126
42137
  const Ws = class Ws extends mi {
42127
42138
  constructor(e) {
42128
42139
  super();
42129
- m(this, "_hoveredPlaneType", this.disposeVar(G("none")));
42130
- m(this, "_movingPlaneType", this.disposeVar(G("none")));
42140
+ m(this, "_hoveredPlaneType", this.disposeVar(U("none")));
42141
+ m(this, "_movingPlaneType", this.disposeVar(U("none")));
42131
42142
  // 圆地图效果
42132
42143
  m(this, "_circles");
42133
42144
  // 照相机地图效果
@@ -42320,16 +42331,16 @@ class ys extends mi {
42320
42331
  super();
42321
42332
  m(this, "_lastPosition");
42322
42333
  m(this, "_opInfo", {
42323
- step: this.ad(G(!1)),
42324
- moved: this.ad(G(!1)),
42325
- constraintMode: this.disposeVar(G("none")),
42334
+ step: this.ad(U(!1)),
42335
+ moved: this.ad(U(!1)),
42336
+ constraintMode: this.disposeVar(U("none")),
42326
42337
  originPosition: this.disposeVar(j([0, 0, 0])),
42327
- originHeading: this.disposeVar(G(0)),
42338
+ originHeading: this.disposeVar(U(0)),
42328
42339
  originDimensions: this.disposeVar(j([1, 1, 1])),
42329
42340
  draggingStartPosition: this.disposeVar(j([0, 0, 0])),
42330
42341
  movingPosition: this.disposeVar(j([0, 0, 0])),
42331
42342
  targetPosition: this.disposeVar(j([0, 0, 0])),
42332
- targetHeading: this.disposeVar(G(0))
42343
+ targetHeading: this.disposeVar(U(0))
42333
42344
  });
42334
42345
  m(this, "_scaleAxis");
42335
42346
  m(this, "_pickingXYProcessing", (e) => this.disposeVar(new Ca((o, s, n) => {
@@ -42499,8 +42510,8 @@ const os = class os extends yi {
42499
42510
  m(this, "_editingPoints", this.disposeVar(new tx()));
42500
42511
  m(this, "_cancelEvent", this.disposeVar(new q()));
42501
42512
  m(this, "_currentProcess");
42502
- m(this, "_menuPoiEnabled", this.disposeVar(G(!1)));
42503
- m(this, "_status", this.disposeVar(G("None")));
42513
+ m(this, "_menuPoiEnabled", this.disposeVar(U(!1)));
42514
+ m(this, "_status", this.disposeVar(U("None")));
42504
42515
  m(this, "_positionsChanged", this.ad(new q()));
42505
42516
  m(this, "_cursorInfo");
42506
42517
  this._czmViewer = e, this.enabled = !1, this.createPolyline(e), this._createCursorInfo(e), this.dispose(() => this.resetPositions()), this.dispose(() => this.editingPoints.length = 0), this.dispose(this.editingPoints.changedEvent.disposableOn(() => this.positionsChanged.emit())), this.dispose(this.editingPoints.toChangeEvent.disposableOn((o) => {
@@ -43092,7 +43103,7 @@ class Qh extends pt {
43092
43103
  startPosition: Q(void 0),
43093
43104
  endPosition: Q(void 0),
43094
43105
  rotation: j([90, 0, 0]),
43095
- distance: G(1)
43106
+ distance: U(1)
43096
43107
  });
43097
43108
  })(Qh || (Qh = {}));
43098
43109
  ae(Qh.prototype, Qh.createDefaultProps);
@@ -43144,7 +43155,7 @@ class Ur extends Le {
43144
43155
  startPosition: Q(void 0),
43145
43156
  endPosition: Q(void 0),
43146
43157
  rotation: j([0, 0, 0]),
43147
- distance: G(0)
43158
+ distance: U(0)
43148
43159
  });
43149
43160
  })(Ur || (Ur = {}));
43150
43161
  ae(Ur.prototype, Ur.createDefaultProps);
@@ -43219,7 +43230,7 @@ class Zz extends Ur {
43219
43230
  class Jt extends qi {
43220
43231
  constructor(e, o, s) {
43221
43232
  super(e, o, s ?? !0);
43222
- m(this, "_currentEditing", this.disposeVar(G(void 0)));
43233
+ m(this, "_currentEditing", this.disposeVar(U(void 0)));
43223
43234
  this.ad(this.toDestroyEvent.don(() => {
43224
43235
  var n;
43225
43236
  if (this.currentEditing)
@@ -43597,7 +43608,7 @@ const yt = class yt extends L {
43597
43608
  m(this, "currentIndex", 0);
43598
43609
  m(this, "currentEditingMode");
43599
43610
  m(this, "currentEditingWrapper");
43600
- m(this, "_notSupportedEditCount", this.disposeVar(G(0)));
43611
+ m(this, "_notSupportedEditCount", this.disposeVar(U(0)));
43601
43612
  m(this, "_onEditEnd", () => {
43602
43613
  this._cleanupCurrentWrapper(), this.notSupportedEditCount < this.editingModes.length && Zt(() => this._createEditingMode(this.currentIndex + 1));
43603
43614
  });
@@ -43933,7 +43944,7 @@ function hL(t) {
43933
43944
  _ = _ ?? U1.EMPTY_OBJECT;
43934
43945
  const P = _.tilingScheme, w = _.x, S = _.y, T = _.level, E = _.exaggeration ?? 1, D = _.exaggerationRelativeHeight ?? 0, B = _.throttle ?? !0, V = P.ellipsoid;
43935
43946
  P.tileXYToNativeRectangle(w, S, T, g), P.tileXYToRectangle(w, S, T, v);
43936
- const U = V.cartographicToCartesian(
43947
+ const G = V.cartographicToCartesian(
43937
43948
  n.center(v)
43938
43949
  );
43939
43950
  this._skirtHeight = 6378137 * 0.3;
@@ -43942,7 +43953,7 @@ function hL(t) {
43942
43953
  nativeRectangle: g,
43943
43954
  rectangle: n.clone(v),
43944
43955
  // vtxf 20230804
43945
- relativeToCenter: U,
43956
+ relativeToCenter: G,
43946
43957
  ellipsoid: V,
43947
43958
  skirtHeight: this._skirtHeight,
43948
43959
  exaggeration: E,
@@ -43956,7 +43967,7 @@ function hL(t) {
43956
43967
  const N = this;
43957
43968
  return z.then(function(y) {
43958
43969
  return N._mesh = new c(
43959
- U,
43970
+ G,
43960
43971
  new Float32Array(y.vertices),
43961
43972
  new Uint16Array(y.indices),
43962
43973
  y.indexCountWithoutSkirts,
@@ -44525,10 +44536,10 @@ function o4(t, i, e, o) {
44525
44536
  //@ts-ignore
44526
44537
  h.VertexAttributeSemantic,
44527
44538
  D
44528
- ), U = V.modelSemantic;
44529
- if (u && !g4(U))
44539
+ ), G = V.modelSemantic;
44540
+ if (u && !g4(G))
44530
44541
  continue;
44531
- U === h.VertexAttributeSemantic.FEATURE_ID && (f = !0);
44542
+ G === h.VertexAttributeSemantic.FEATURE_ID && (f = !0);
44532
44543
  const W = P1(
44533
44544
  t,
44534
44545
  B,
@@ -45796,7 +45807,7 @@ class h5 extends L {
45796
45807
  class c5 extends L {
45797
45808
  constructor(e) {
45798
45809
  super();
45799
- m(this, "_pause", this.disposeVar(G(!1)));
45810
+ m(this, "_pause", this.disposeVar(U(!1)));
45800
45811
  m(this, "_pickPositionTasks", []);
45801
45812
  m(this, "_pickTasks", []);
45802
45813
  m(this, "pickHeightMustGreaterThanZero", !0);
@@ -45855,13 +45866,13 @@ class c5 extends L {
45855
45866
  v && v.getPropertyIds().forEach((W) => {
45856
45867
  _ && (_[W] = v.getProperty(W));
45857
45868
  });
45858
- } catch (U) {
45859
- console.warn(U);
45869
+ } catch (G) {
45870
+ console.warn(G);
45860
45871
  }
45861
45872
  }
45862
45873
  if (!v) {
45863
- const { left: U, top: W } = e.container.getBoundingClientRect();
45864
- v = (E = document.elementFromPoint(d[0] + U, d[1] + W)) == null ? void 0 : E.closest("[data-es-scene-object-id]");
45874
+ const { left: G, top: W } = e.container.getBoundingClientRect();
45875
+ v = (E = document.elementFromPoint(d[0] + G, d[1] + W)) == null ? void 0 : E.closest("[data-es-scene-object-id]");
45865
45876
  }
45866
45877
  let P;
45867
45878
  v && (v.id && v.id instanceof h.Entity && v.id.ESSceneObjectID ? P = v.id.ESSceneObjectID : v.collection && v.collection.ESSceneObjectID ? P = v.collection.ESSceneObjectID : v.primitive && v.primitive.ESSceneObjectID ? P = v.primitive.ESSceneObjectID : Array.isArray(v) && v[0] instanceof h.ImageryLayerFeatureInfo ? P = v[0].imageryLayer.ESSceneObjectID : v instanceof HTMLElement && (P = v.dataset.esSceneObjectId));
@@ -45870,23 +45881,23 @@ class c5 extends L {
45870
45881
  let S = {};
45871
45882
  if (w && Reflect.has(w, "allowPicking") && Reflect.has(w, "pickedEvent") && (w.allowPicking ?? !1)) {
45872
45883
  if (w instanceof qc) {
45873
- const U = new h.JulianDate();
45884
+ const G = new h.JulianDate();
45874
45885
  S = v.id instanceof h.Entity ? {
45875
- name: v.id.label.text.getValue(U),
45876
- properties: (D = v.id.properties) == null ? void 0 : D.getValue(U),
45877
- coordinates: od(v.id.position.getValue(U))
45886
+ name: v.id.label.text.getValue(G),
45887
+ properties: (D = v.id.properties) == null ? void 0 : D.getValue(G),
45888
+ coordinates: od(v.id.position.getValue(G))
45878
45889
  } : (B = v.id) == null ? void 0 : B.map((W) => {
45879
45890
  var z;
45880
45891
  return {
45881
45892
  name: W.id,
45882
- properties: (z = W.properties) == null ? void 0 : z.getValue(U),
45883
- coordinates: od(W.position.getValue(U))
45893
+ properties: (z = W.properties) == null ? void 0 : z.getValue(G),
45894
+ coordinates: od(W.position.getValue(G))
45884
45895
  };
45885
45896
  });
45886
45897
  } else if (w instanceof Cw) {
45887
- const U = new h.JulianDate();
45898
+ const G = new h.JulianDate();
45888
45899
  if (!v.id.entityCollection) return;
45889
- const W = v.id.polygon ? "Polygon" : v.id.polyline ? "LineString" : "Point", z = ((V = v.id.properties) == null ? void 0 : V.getValue(U)) ?? {}, N = W == "Point" ? ve(v.id.position.getValue(U)) : W == "LineString" ? v.id.polyline.positions.getValue(U).map((y) => ve(y)) : Ow(v.id.polygon.hierarchy.getValue(U));
45900
+ const W = v.id.polygon ? "Polygon" : v.id.polyline ? "LineString" : "Point", z = ((V = v.id.properties) == null ? void 0 : V.getValue(G)) ?? {}, N = W == "Point" ? ve(v.id.position.getValue(G)) : W == "LineString" ? v.id.polyline.positions.getValue(G).map((y) => ve(y)) : Ow(v.id.polygon.hierarchy.getValue(G));
45890
45901
  S = w.pickedInfoType == "FeatureCollection" ? {
45891
45902
  type: "Feature",
45892
45903
  geometry: {
@@ -45900,8 +45911,8 @@ class c5 extends L {
45900
45911
  properties: z
45901
45912
  };
45902
45913
  } else if (w instanceof jc) {
45903
- let U;
45904
- Reflect.has(v, "featureId") ? U = v.featureId : Reflect.has(v, "instanceId") && (U = v.instanceId), U && (v.id = v.primitive.structuralMetadata.getPropertyTable(0).getProperty(v.instanceId, "id"));
45914
+ let G;
45915
+ Reflect.has(v, "featureId") ? G = v.featureId : Reflect.has(v, "instanceId") && (G = v.instanceId), G && (v.id = v.primitive.structuralMetadata.getPropertyTable(0).getProperty(v.instanceId, "id"));
45905
45916
  }
45906
45917
  w.pickedEvent.emit(new dr(v, w, _, S, p, d));
45907
45918
  }
@@ -45961,8 +45972,8 @@ function d5(t, i) {
45961
45972
  class u5 extends L {
45962
45973
  constructor(e) {
45963
45974
  super();
45964
- m(this, "_enabled", this.disposeVar(G(!1)));
45965
- m(this, "_cursorPosition", G(void 0));
45975
+ m(this, "_enabled", this.disposeVar(U(!1)));
45976
+ m(this, "_cursorPosition", U(void 0));
45966
45977
  m(this, "quickPickPosition", !0);
45967
45978
  let o = new L();
45968
45979
  const s = () => {
@@ -45974,7 +45985,7 @@ class u5 extends L {
45974
45985
  const r = Bi(e);
45975
45986
  if (!r) return;
45976
45987
  o = new L();
45977
- const a = o.disposeVar(G(void 0)), l = o.disposeVar(F(a.changed));
45988
+ const a = o.disposeVar(U(void 0)), l = o.disposeVar(F(a.changed));
45978
45989
  o.dispose(r.czmViewer.pointerMoveEvent.disposableOn((d) => {
45979
45990
  d.pointerEvent && (a.value = qt(d.pointerEvent));
45980
45991
  }));
@@ -46154,7 +46165,7 @@ class Id extends L {
46154
46165
  super();
46155
46166
  m(this, "_currentKeyIds", /* @__PURE__ */ new Set());
46156
46167
  m(this, "_currentKeyIdsChanged", this.dv(new q()));
46157
- m(this, "_debug", this.dv(G(!1)));
46168
+ m(this, "_debug", this.dv(U(!1)));
46158
46169
  m(this, "_debugResetting", this.dv(new he(this.debugChanged, () => {
46159
46170
  if (this.debug)
46160
46171
  return new class extends L {
@@ -46230,17 +46241,17 @@ class g5 extends L {
46230
46241
  const zd = class zd extends L {
46231
46242
  constructor(e) {
46232
46243
  super();
46233
- m(this, "_enabled", this.dv(G(!1)));
46234
- m(this, "_keyStatusMap", this.dv(G(zd.defaultKeyStatusMap)));
46244
+ m(this, "_enabled", this.dv(U(!1)));
46245
+ m(this, "_keyStatusMap", this.dv(U(zd.defaultKeyStatusMap)));
46235
46246
  /**
46236
46247
  * 米/毫秒
46237
46248
  */
46238
- m(this, "_speed", this.dv(G(1)));
46249
+ m(this, "_speed", this.dv(U(1)));
46239
46250
  /**
46240
46251
  * 度/毫秒
46241
46252
  */
46242
- m(this, "_rotateSpeed", this.dv(G(0.01)));
46243
- m(this, "_alwaysWithCamera", this.dv(G(!1)));
46253
+ m(this, "_rotateSpeed", this.dv(U(0.01)));
46254
+ m(this, "_alwaysWithCamera", this.dv(U(!1)));
46244
46255
  m(this, "_keyDownEvent", this.dv(new q()));
46245
46256
  m(this, "_keyUpEvent", this.dv(new q()));
46246
46257
  m(this, "_abortEvent", this.dv(new q()));
@@ -46395,7 +46406,7 @@ let af = Ld;
46395
46406
  class y5 extends L {
46396
46407
  constructor(e) {
46397
46408
  super();
46398
- m(this, "_enabled", this.dv(G(!1)));
46409
+ m(this, "_enabled", this.dv(U(!1)));
46399
46410
  m(this, "enableViewerOriginInputs", (e) => {
46400
46411
  e ? this.firstPersonController.czmViewer.incrementDisabledInputStack() : this.firstPersonController.czmViewer.decrementDisabledInputStack();
46401
46412
  });
@@ -46825,9 +46836,9 @@ class b5 extends L {
46825
46836
  class T5 extends L {
46826
46837
  constructor(e) {
46827
46838
  super();
46828
- m(this, "_height", this.dv(G(1e7)));
46829
- m(this, "_cycle", this.dv(G(60)));
46830
- m(this, "_latitude", this.dv(G(38)));
46839
+ m(this, "_height", this.dv(U(1e7)));
46840
+ m(this, "_cycle", this.dv(U(60)));
46841
+ m(this, "_latitude", this.dv(U(38)));
46831
46842
  m(this, "_inner");
46832
46843
  this._czmViewer = e;
46833
46844
  const o = this._czmViewer.viewer;
@@ -46916,7 +46927,7 @@ class E5 extends L {
46916
46927
  * @default 50000
46917
46928
  * @memberof RotatePoint
46918
46929
  */
46919
- m(this, "_distance", this.dv(G(5e4)));
46930
+ m(this, "_distance", this.dv(U(5e4)));
46920
46931
  /**
46921
46932
  * 飞行一圈的周期,单位为秒
46922
46933
  * @type {number}
@@ -46924,7 +46935,7 @@ class E5 extends L {
46924
46935
  * @default 60
46925
46936
  * @memberof RotatePoint
46926
46937
  */
46927
- m(this, "_cycle", this.dv(G(60)));
46938
+ m(this, "_cycle", this.dv(U(60)));
46928
46939
  /**
46929
46940
  * 相对中心点的偏航角 单位度
46930
46941
  * @type {number}
@@ -46932,7 +46943,7 @@ class E5 extends L {
46932
46943
  * @default 0
46933
46944
  * @memberof RotatePoint
46934
46945
  */
46935
- m(this, "_heading", this.dv(G(0)));
46946
+ m(this, "_heading", this.dv(U(0)));
46936
46947
  /**
46937
46948
  * 相对中心点的俯仰角 单位度
46938
46949
  * @type {number}
@@ -46940,7 +46951,7 @@ class E5 extends L {
46940
46951
  * @default -30
46941
46952
  * @memberof RotatePoint
46942
46953
  */
46943
- m(this, "_pitch", this.dv(G(-30)));
46954
+ m(this, "_pitch", this.dv(U(-30)));
46944
46955
  m(this, "_transform");
46945
46956
  m(this, "_headingRadius");
46946
46957
  m(this, "_pitchRadius");
@@ -47091,7 +47102,7 @@ class A5 extends L {
47091
47102
  * @default 50000
47092
47103
  * @memberof RotatePoint
47093
47104
  */
47094
- m(this, "_distance", this.dv(G(5e4)));
47105
+ m(this, "_distance", this.dv(U(5e4)));
47095
47106
  /**
47096
47107
  * 飞行一圈的周期,单位为秒
47097
47108
  * @type {number}
@@ -47099,7 +47110,7 @@ class A5 extends L {
47099
47110
  * @default 60
47100
47111
  * @memberof RotatePoint
47101
47112
  */
47102
- m(this, "_cycle", this.dv(G(60)));
47113
+ m(this, "_cycle", this.dv(U(60)));
47103
47114
  /**
47104
47115
  * 相机偏航角
47105
47116
  * @type {number}
@@ -47107,7 +47118,7 @@ class A5 extends L {
47107
47118
  * @default 0°
47108
47119
  * @memberof RotatePoint
47109
47120
  */
47110
- m(this, "_heading", this.dv(G(0)));
47121
+ m(this, "_heading", this.dv(U(0)));
47111
47122
  /**
47112
47123
  * 相机俯仰角
47113
47124
  * @type {number}
@@ -47115,7 +47126,7 @@ class A5 extends L {
47115
47126
  * @default -30°
47116
47127
  * @memberof RotatePoint
47117
47128
  */
47118
- m(this, "_pitch", this.dv(G(-30)));
47129
+ m(this, "_pitch", this.dv(U(-30)));
47119
47130
  m(this, "_inner");
47120
47131
  this._czmViewer = e;
47121
47132
  const o = this._czmViewer.viewer;
@@ -47987,7 +47998,7 @@ const I5 = [
47987
47998
  class R5 extends L {
47988
47999
  constructor(e) {
47989
48000
  super();
47990
- m(this, "_show", this.dv(G(!1)));
48001
+ m(this, "_show", this.dv(U(!1)));
47991
48002
  m(this, "cloudsPostProcess");
47992
48003
  const o = e.viewer;
47993
48004
  if (!o) throw new Error("Cesium Viewer is not initialized");
@@ -48117,7 +48128,7 @@ const D5 = `
48117
48128
  class k5 extends L {
48118
48129
  constructor(e) {
48119
48130
  super();
48120
- m(this, "_show", this.dv(G(!1)));
48131
+ m(this, "_show", this.dv(U(!1)));
48121
48132
  m(this, "postProcess");
48122
48133
  const o = e.viewer;
48123
48134
  if (!o) {
@@ -48182,7 +48193,7 @@ void main(void){
48182
48193
  class z5 extends L {
48183
48194
  constructor(e) {
48184
48195
  super();
48185
- m(this, "_show", this.dv(G(!1)));
48196
+ m(this, "_show", this.dv(U(!1)));
48186
48197
  m(this, "rainPostProcess");
48187
48198
  const o = e.viewer;
48188
48199
  if (!o) {
@@ -48287,8 +48298,8 @@ void main() {
48287
48298
  class B5 extends L {
48288
48299
  constructor(e) {
48289
48300
  super();
48290
- m(this, "_show", this.dv(G(!1)));
48291
- m(this, "_alpha", this.dv(G(0)));
48301
+ m(this, "_show", this.dv(U(!1)));
48302
+ m(this, "_alpha", this.dv(U(0)));
48292
48303
  m(this, "snow");
48293
48304
  m(this, "snowCover");
48294
48305
  const o = e.viewer;
@@ -48925,15 +48936,15 @@ class gO extends L {
48925
48936
  constructor() {
48926
48937
  super();
48927
48938
  // 比例尺的长度,单位是 像素
48928
- m(this, "_lengthInPixels", this.disposeVar(G(100)));
48939
+ m(this, "_lengthInPixels", this.disposeVar(U(100)));
48929
48940
  // 分辨率的单位:米/像素
48930
- m(this, "_resolution", this.disposeVar(G(void 0)));
48941
+ m(this, "_resolution", this.disposeVar(U(void 0)));
48931
48942
  // 计算好的像素长度(像素)
48932
- m(this, "_computedLengthInPixels", this.disposeVar(G(void 0)));
48943
+ m(this, "_computedLengthInPixels", this.disposeVar(U(void 0)));
48933
48944
  // 计算好的实际长度(米)
48934
- m(this, "_computedLengthInMeters", this.disposeVar(G(void 0)));
48945
+ m(this, "_computedLengthInMeters", this.disposeVar(U(void 0)));
48935
48946
  // 计算好的实际长度字符串
48936
- m(this, "_computedLengthInStr", this.disposeVar(G(void 0)));
48947
+ m(this, "_computedLengthInStr", this.disposeVar(U(void 0)));
48937
48948
  {
48938
48949
  const e = () => {
48939
48950
  let o, s;
@@ -49001,10 +49012,10 @@ class gO extends L {
49001
49012
  class mO extends L {
49002
49013
  constructor(e) {
49003
49014
  super();
49004
- m(this, "_enabled", this.dv(G(!0)));
49005
- m(this, "_resolution", this.dv(G(void 0)));
49006
- m(this, "_center", this.dv(G(void 0)));
49007
- m(this, "_zoom", this.dv(G(void 0)));
49015
+ m(this, "_enabled", this.dv(U(!0)));
49016
+ m(this, "_resolution", this.dv(U(void 0)));
49017
+ m(this, "_center", this.dv(U(void 0)));
49018
+ m(this, "_zoom", this.dv(U(void 0)));
49008
49019
  m(this, "_legend", this.dv(new gO()));
49009
49020
  this._czmViewer = e;
49010
49021
  {
@@ -49453,8 +49464,8 @@ function bO() {
49453
49464
  gitee地址:${t}
49454
49465
  `;
49455
49466
  console.log(e);
49456
- const o = window.prompt(e, t);
49457
- o && window.open(o, "_blank");
49467
+ const o = globalThis.prompt(e, t);
49468
+ o && globalThis.open(o, "_blank");
49458
49469
  }
49459
49470
  const wt = class wt extends dp {
49460
49471
  constructor(e) {
@@ -49462,13 +49473,13 @@ const wt = class wt extends dp {
49462
49473
  /**
49463
49474
  * _disabledInputStack记录外部disable的数量,当为0时才可能正常使用!
49464
49475
  */
49465
- m(this, "_disabledInputStack", this.disposeVar(G(0)));
49466
- m(this, "_viewer", this.dv(G(void 0)));
49476
+ m(this, "_disabledInputStack", this.disposeVar(U(0)));
49477
+ m(this, "_viewer", this.dv(U(void 0)));
49467
49478
  m(this, "_viewerInstance");
49468
49479
  m(this, "_viewerLegend");
49469
49480
  m(this, "pickCustomAttachedInfo");
49470
- m(this, "_fps", this.dv(G(0)));
49471
- m(this, "_notSupportEditingCount", this.disposeVar(G(0)));
49481
+ m(this, "_fps", this.dv(U(0)));
49482
+ m(this, "_notSupportEditingCount", this.disposeVar(U(0)));
49472
49483
  m(this, "_editingSystem", nf);
49473
49484
  m(this, "_moveObjectsProcess", this.ad(Qz()));
49474
49485
  if (e.type !== "ESCesiumViewer") throw new Error("option.type must be ESCesiumViewer");
@@ -49692,7 +49703,7 @@ const wt = class wt extends dp {
49692
49703
  return Promise.resolve(void 0);
49693
49704
  }
49694
49705
  async getVersion() {
49695
- const e = window.g_XE3CopyRights ?? {};
49706
+ const e = globalThis.g_XE3CopyRights ?? {};
49696
49707
  return e.cesium = h.VERSION, e;
49697
49708
  }
49698
49709
  async getHeightByLonLat(e, o, s) {
@@ -49948,7 +49959,7 @@ let We = wt;
49948
49959
  ae(We.prototype, We.createDefaultProps);
49949
49960
  let rp;
49950
49961
  try {
49951
- const t = "earthsdk3-cesium", i = "3.5.0", e = "2025-10-30T00:53:02.000Z", o = "北京西部世界科技有限公司", s = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", n = "cda73626e40b80da99887fe7a1decdbccc6aa5d9", a = ((Date.now() - 1761785582e3) / 36e5).toFixed(1), l = `%c🌏 ${t}%c ${i}.${n.slice(0, 8)}.${e} (距今${a}个小时)
49962
+ const t = "earthsdk3-cesium", i = "3.6.0-beta.1", e = "2025-10-30T06:56:39.000Z", o = "北京西部世界科技有限公司", s = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", n = "4036c096f6901802a4551685925be1fa8a9fdade", a = ((Date.now() - 1761807399e3) / 36e5).toFixed(1), l = `%c🌏 ${t}%c ${i}.${n.slice(0, 8)}.${e} (距今${a}个小时)
49952
49963
  %c${s ? s + `
49953
49964
  ` : ""}当前网站正在使用${t},此软件版权归${o}所有
49954
49965
  `;
@@ -49962,7 +49973,7 @@ try {
49962
49973
  },
49963
49974
  // @ts-ignore
49964
49975
  get gituri() {
49965
- return GITURI_ && GITURI_.replace("${commitId}", "cda73626e40b80da99887fe7a1decdbccc6aa5d9");
49976
+ return GITURI_ && GITURI_.replace("${commitId}", "4036c096f6901802a4551685925be1fa8a9fdade");
49966
49977
  },
49967
49978
  // @ts-ignore
49968
49979
  get info() {
@@ -49970,7 +49981,7 @@ try {
49970
49981
  },
49971
49982
  // @ts-ignore
49972
49983
  get date() {
49973
- return "2025-10-30T00:53:02.000Z";
49984
+ return "2025-10-30T06:56:39.000Z";
49974
49985
  },
49975
49986
  // @ts-ignore
49976
49987
  get author() {
@@ -49978,7 +49989,7 @@ try {
49978
49989
  },
49979
49990
  // @ts-ignore
49980
49991
  get version() {
49981
- return "3.5.0";
49992
+ return "3.6.0-beta.1";
49982
49993
  },
49983
49994
  // @ts-ignore
49984
49995
  get name() {
@@ -49986,7 +49997,7 @@ try {
49986
49997
  },
49987
49998
  // @ts-ignore
49988
49999
  get commitId() {
49989
- return "cda73626e40b80da99887fe7a1decdbccc6aa5d9";
50000
+ return "4036c096f6901802a4551685925be1fa8a9fdade";
49990
50001
  },
49991
50002
  print() {
49992
50003
  console.info(
@@ -50013,7 +50024,7 @@ try {
50013
50024
  `
50014
50025
  );
50015
50026
  }
50016
- }), window.g_XE3CopyRights = window.g_XE3CopyRights || {}, window.g_XE3CopyRights[t] = rp, window.g_earthsdk_copyright_print = window.g_earthsdk_copyright_print ?? !0, window.g_earthsdk_copyright_print && rp.print();
50027
+ }), globalThis.g_XE3CopyRights = globalThis.g_XE3CopyRights || {}, globalThis.g_XE3CopyRights[t] = rp, globalThis.g_earthsdk_copyright_print = globalThis.g_earthsdk_copyright_print ?? !0, globalThis.g_earthsdk_copyright_print && rp.print();
50017
50028
  } catch {
50018
50029
  }
50019
50030
  hx();