earthsdk3 3.5.0 → 3.6.0-beta.2

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.
package/dist/earthsdk3.js CHANGED
@@ -5,7 +5,8 @@ import { parse as mv } from "js-binary-schema-parser";
5
5
  import ig from "proj4";
6
6
  import * as Ze from "@turf/turf";
7
7
  function vv() {
8
- const r = navigator.userAgent;
8
+ var n;
9
+ const r = ((n = globalThis == null ? void 0 : globalThis.navigator) == null ? void 0 : n.userAgent) ?? "unknown";
9
10
  let e = "Unknown";
10
11
  /Windows/.test(r) ? e = "Windows" : /Macintosh/.test(r) ? e = "MacOS" : /Linux/.test(r) ? e = "Linux" : /Android/.test(r) ? e = "Android" : /iOS|iPhone|iPad|iPod/.test(r) && (e = "iOS");
11
12
  let t = "Unknown";
@@ -16,6 +17,7 @@ function vv() {
16
17
  }
17
18
  const _v = Date.now();
18
19
  function ld(r) {
20
+ var a;
19
21
  const { os: e, arch: t } = vv(), n = {
20
22
  version: r.version,
21
23
  commitdate: r.date,
@@ -24,8 +26,8 @@ function ld(r) {
24
26
  // 产品运行时间(分钟)
25
27
  date: (/* @__PURE__ */ new Date()).toLocaleString(),
26
28
  // 日期
27
- href: window.location.href,
28
- // 网址
29
+ href: ((a = globalThis == null ? void 0 : globalThis.location) == null ? void 0 : a.href) ?? "unknown",
30
+ // 网址 适配node 环境
29
31
  os: e,
30
32
  // 操作系统
31
33
  arch: t
@@ -34,12 +36,12 @@ function ld(r) {
34
36
  method: "GET",
35
37
  headers: new Headers(),
36
38
  redirect: "follow"
37
- }, o = window.encodeURIComponent(JSON.stringify(n));
38
- fetch(`https://account.bjxbsj.cn/api/product/record?product=EarthSDKJS&content=${o}`, s).then((a) => a.text()).then((a) => console.log(a)).catch((a) => console.log("error", a));
39
+ }, o = globalThis.encodeURIComponent(JSON.stringify(n));
40
+ fetch(`https://account.bjxbsj.cn/api/product/record?product=EarthSDKJS&content=${o}`, s).then((u) => u.text()).then((u) => console.log(u)).catch((u) => console.log("error", u));
39
41
  }
40
42
  let Za;
41
43
  try {
42
- const r = "earthsdk3", e = "3.5.0", t = "2025-10-30T00:53:02.000Z", n = "北京西部世界科技有限公司", i = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", s = "cda73626e40b80da99887fe7a1decdbccc6aa5d9", a = ((Date.now() - 1761785582e3) / 36e5).toFixed(1), u = `%c🌏 ${r}%c ${e}.${s.slice(0, 8)}.${t} (距今${a}个小时)
44
+ const r = "earthsdk3", e = "3.6.0-beta.2", t = "2025-11-03T03:44:11.000Z", n = "北京西部世界科技有限公司", i = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", s = "a185aeaa266bf4afbe1ddaf870b577819df95253", a = ((Date.now() - 1762141451e3) / 36e5).toFixed(1), u = `%c🌏 ${r}%c ${e}.${s.slice(0, 8)}.${t} (距今${a}个小时)
43
45
  %c${i ? i + `
44
46
  ` : ""}当前网站正在使用${r},此软件版权归${n}所有
45
47
  `;
@@ -53,7 +55,7 @@ try {
53
55
  },
54
56
  // @ts-ignore
55
57
  get gituri() {
56
- return GITURI_ && GITURI_.replace("${commitId}", "cda73626e40b80da99887fe7a1decdbccc6aa5d9");
58
+ return GITURI_ && GITURI_.replace("${commitId}", "a185aeaa266bf4afbe1ddaf870b577819df95253");
57
59
  },
58
60
  // @ts-ignore
59
61
  get info() {
@@ -61,7 +63,7 @@ try {
61
63
  },
62
64
  // @ts-ignore
63
65
  get date() {
64
- return "2025-10-30T00:53:02.000Z";
66
+ return "2025-11-03T03:44:11.000Z";
65
67
  },
66
68
  // @ts-ignore
67
69
  get author() {
@@ -69,7 +71,7 @@ try {
69
71
  },
70
72
  // @ts-ignore
71
73
  get version() {
72
- return "3.5.0";
74
+ return "3.6.0-beta.2";
73
75
  },
74
76
  // @ts-ignore
75
77
  get name() {
@@ -77,7 +79,7 @@ try {
77
79
  },
78
80
  // @ts-ignore
79
81
  get commitId() {
80
- return "cda73626e40b80da99887fe7a1decdbccc6aa5d9";
82
+ return "a185aeaa266bf4afbe1ddaf870b577819df95253";
81
83
  },
82
84
  /**
83
85
  * 打印版权信息到控制台
@@ -107,7 +109,7 @@ try {
107
109
  `
108
110
  );
109
111
  }
110
- }), window.g_XE3CopyRights = window.g_XE3CopyRights || {}, window.g_XE3CopyRights[r] = Za, window.g_XE3SendProductUsageInfo = window.g_XE3SendProductUsageInfo || !0, window.g_XE3SendProductUsageInfo && (setTimeout(() => ld(Za), 1e3 * 60), setInterval(() => ld(Za), 24 * 60 * 60 * 1e3)), window.g_earthsdk_copyright_print = window.g_earthsdk_copyright_print ?? !0, window.g_earthsdk_copyright_print && Za.print();
112
+ }), globalThis.g_XE3CopyRights = globalThis.g_XE3CopyRights || {}, globalThis.g_XE3CopyRights[r] = Za, globalThis.g_XE3SendProductUsageInfo = globalThis.g_XE3SendProductUsageInfo || !0, globalThis.g_XE3SendProductUsageInfo && (setTimeout(() => ld(Za), 1e3 * 60), setInterval(() => ld(Za), 24 * 60 * 60 * 1e3)), globalThis.g_earthsdk_copyright_print = globalThis.g_earthsdk_copyright_print ?? !0, globalThis.g_earthsdk_copyright_print && Za.print();
111
113
  } catch {
112
114
  console.warn("版本信息有误!");
113
115
  }
@@ -1067,14 +1069,14 @@ function Uu() {
1067
1069
  });
1068
1070
  }
1069
1071
  function yh(r, e) {
1070
- if (!window || !window.setTimeout || !window.clearTimeout)
1072
+ if (!globalThis || !globalThis.setTimeout || !globalThis.clearTimeout)
1071
1073
  throw new Error("目前只适合在浏览器中使用!");
1072
1074
  let t = 0;
1073
1075
  function n() {
1074
- t > 0 && (window.clearTimeout(t), t = 0);
1076
+ t > 0 && (globalThis.clearTimeout(t), t = 0);
1075
1077
  }
1076
1078
  function i(...s) {
1077
- n(), t = window.setTimeout(r, e, ...s);
1079
+ n(), t = globalThis.setTimeout(r, e, ...s);
1078
1080
  }
1079
1081
  return [i, n];
1080
1082
  }
@@ -1505,12 +1507,12 @@ function gd(r, e, t) {
1505
1507
  }
1506
1508
  function gg(r, e = !0) {
1507
1509
  if (e) {
1508
- const t = window.L;
1509
- window.L && (window.L = void 0);
1510
- const n = window.define;
1511
- return window.define && (window.define = void 0), new Promise((i, s) => {
1510
+ const t = globalThis.L;
1511
+ globalThis.L && (globalThis.L = void 0);
1512
+ const n = globalThis.define;
1513
+ return globalThis.define && (globalThis.define = void 0), new Promise((i, s) => {
1512
1514
  gd(r, i, s);
1513
- }).then(() => (window.define = n, window.L = t, Promise.resolve()));
1515
+ }).then(() => (globalThis.define = n, globalThis.L = t, Promise.resolve()));
1514
1516
  } else
1515
1517
  return new Promise((t, n) => {
1516
1518
  gd(r, t, n);
@@ -2357,12 +2359,12 @@ function wg(r, e) {
2357
2359
  function Vv(r) {
2358
2360
  const e = r.composedPath && r.composedPath() || r.path, t = r.target;
2359
2361
  if (e != null)
2360
- return e.indexOf(window) < 0 ? e.concat(window) : e;
2361
- if (t === window)
2362
- return [window];
2362
+ return e.indexOf(globalThis) < 0 ? e.concat(globalThis) : e;
2363
+ if (t === globalThis)
2364
+ return [globalThis];
2363
2365
  if (t === null)
2364
2366
  throw new Error("target === null");
2365
- return [t].concat(wg(t), window);
2367
+ return [t].concat(wg(t), globalThis);
2366
2368
  }
2367
2369
  function Cn(r, e = !1) {
2368
2370
  const { offsetX: t, offsetY: n } = r;
@@ -2377,13 +2379,13 @@ function Cn(r, e = !1) {
2377
2379
  break;
2378
2380
  }
2379
2381
  }
2380
- return e ? [i * window.devicePixelRatio, s * window.devicePixelRatio] : [i, s];
2382
+ return e ? [i * globalThis.devicePixelRatio, s * globalThis.devicePixelRatio] : [i, s];
2381
2383
  }
2382
2384
  function tu(r, e = !1) {
2383
2385
  const t = r.target, n = r.currentTarget || r.__xbsj_lastCurrentTarget__;
2384
2386
  if (!t || !n) return [r.clientX, r.clientY];
2385
2387
  const i = t.getBoundingClientRect(), s = n.getBoundingClientRect(), o = i.left + r.offsetX, a = i.top + r.offsetY, u = o - s.left, l = a - s.top;
2386
- return e ? [u * window.devicePixelRatio, l * window.devicePixelRatio] : [u, l];
2388
+ return e ? [u * globalThis.devicePixelRatio, l * globalThis.devicePixelRatio] : [u, l];
2387
2389
  }
2388
2390
  class Bv extends V {
2389
2391
  constructor(t) {
@@ -4380,8 +4382,8 @@ class kS extends i_ {
4380
4382
  const n = (i) => {
4381
4383
  i.source === this._iframe.contentWindow && (this._iframeMessageEvent ? this._iframeMessageEvent.emit(i) : console.warn(`iframe消息接收到未处理!data: ${i.data}`));
4382
4384
  };
4383
- window.addEventListener("message", n), this.dispose(() => {
4384
- window.removeEventListener("message", n);
4385
+ globalThis.addEventListener("message", n), this.dispose(() => {
4386
+ globalThis.removeEventListener("message", n);
4385
4387
  });
4386
4388
  }
4387
4389
  reset() {
@@ -5172,7 +5174,7 @@ class g_ extends V {
5172
5174
  async getRootDirId(t) {
5173
5175
  let n;
5174
5176
  try {
5175
- console.log("window.showDirectoryPicker begin"), n = await window.showDirectoryPicker({ id: t, mode: "read" }), console.log("window.showDirectoryPicker end", n);
5177
+ console.log("window.showDirectoryPicker begin"), n = await globalThis.showDirectoryPicker({ id: t, mode: "read" }), console.log("window.showDirectoryPicker end", n);
5176
5178
  } catch (i) {
5177
5179
  console.error(`LocalFileServer getRootDirId failed: ${i}`, i);
5178
5180
  return;
@@ -6036,7 +6038,7 @@ class B_ extends V {
6036
6038
  * 存储环境变量的对象,默认从 window.ESSDK_ENV 获取
6037
6039
  */
6038
6040
  //@ts-ignore
6039
- d(this, "_environmentVariables", window.ESSDK_ENV || {});
6041
+ d(this, "_environmentVariables", globalThis.ESSDK_ENV || {});
6040
6042
  /**
6041
6043
  * 环境变量变更事件,当环境变量发生变化时触发
6042
6044
  */
@@ -6276,7 +6278,7 @@ class B_ extends V {
6276
6278
  const i = this._environmentVariables[t];
6277
6279
  this._environmentVariables[t] = n, this._environmentVariablesChanged.emit(t, n, i);
6278
6280
  }
6279
- window.ESSDK_ENV = { ...this._environmentVariables };
6281
+ globalThis.ESSDK_ENV = { ...this._environmentVariables };
6280
6282
  }
6281
6283
  /**
6282
6284
  * 获取环境变量
@@ -25792,7 +25794,7 @@ const Rn = class Rn extends lu {
25792
25794
  d(this, "_showPropUiOnSelecting", this.disposeVar(k(!0)));
25793
25795
  this._name = t, this._dragStartDataManager = n, this._projectManager = s, this.dispose(this.selectedItems.changedEvent.disposableOn(() => {
25794
25796
  var a, u;
25795
- window.lssn = this.lastSelectedItem, window.lsso = (a = this.lastSelectedItem) == null ? void 0 : a.sceneObject, this.debug && console.log(((u = this.lastSelectedItem) == null ? void 0 : u.sceneObject) ?? "select null");
25797
+ globalThis.lssn = this.lastSelectedItem, globalThis.lsso = (a = this.lastSelectedItem) == null ? void 0 : a.sceneObject, this.debug && console.log(((u = this.lastSelectedItem) == null ? void 0 : u.sceneObject) ?? "select null");
25796
25798
  }));
25797
25799
  const { sceneObjectsManager: o } = this._projectManager;
25798
25800
  this.dispose(this.itemsDeleted.disposableOn((a) => {
@@ -25907,6 +25909,29 @@ const Rn = class Rn extends lu {
25907
25909
  }
25908
25910
  return i;
25909
25911
  }
25912
+ /**
25913
+ * 根据场景对象的类型获取树项
25914
+ * @param type { string | string[] } 场景对象的类型 例如 :['ES3DTileset']
25915
+ * @returns 对应的树项节点,如果未找到则返回空数组
25916
+ */
25917
+ getTreeItemsFromSceneObjType(t) {
25918
+ const n = this.getDescendants(), i = [], s = Array.isArray(t) ? t : [t];
25919
+ for (let o of n)
25920
+ o.sceneObject && s.includes(o.sceneObject.typeName) && i.push(o);
25921
+ return i;
25922
+ }
25923
+ /**
25924
+ * 根据场景对象的名称获取树项
25925
+ * @param name { string } 场景对象的名称 例如 :'全球影像'
25926
+ * @returns 对应的树项节点,如果未找到则返回空数组
25927
+ */
25928
+ getTreeItemsFromSceneObjName(t) {
25929
+ var s;
25930
+ const n = this.getDescendants(), i = [];
25931
+ for (let o of n)
25932
+ (s = o.sceneObject) != null && s.name.includes(t) && i.push(o);
25933
+ return i;
25934
+ }
25910
25935
  /**
25911
25936
  * 获取拖放起始数据管理器
25912
25937
  */
@@ -30951,7 +30976,8 @@ const Ys = class Ys extends xr {
30951
30976
  basic: [
30952
30977
  ...e.basic,
30953
30978
  new rt([this, "url"], "图片路径", Ys.defaults.url),
30954
- new X([this, "isHoverZoom"], "悬浮放大")
30979
+ new X([this, "isHoverZoom"], "悬浮放大"),
30980
+ new X([this, "hoverHighlight"], "悬浮高亮")
30955
30981
  ]
30956
30982
  };
30957
30983
  }
@@ -30966,6 +30992,11 @@ d(Ys, "createDefaultProps", () => ({
30966
30992
  * @type {boolean}
30967
30993
  */
30968
30994
  isHoverZoom: !1,
30995
+ /** 是否悬浮高亮
30996
+ * @type {boolean}
30997
+ * 非正式属性,测试属性,仅Cesium有效
30998
+ */
30999
+ hoverHighlight: !1,
30969
31000
  renderMode: 4
30970
31001
  })), /**
30971
31002
  * 注册 ESImageLabel 类,设置其类型名称、中文名称、标签和描述信息。
@@ -32175,7 +32206,7 @@ function Qm(r) {
32175
32206
  }
32176
32207
  return a;
32177
32208
  }
32178
- window.parseGlb = Qm;
32209
+ globalThis.parseGlb = Qm;
32179
32210
  function tv(r) {
32180
32211
  const e = Qm(r);
32181
32212
  if (e === void 0 || !e.gltfBinary) return;
@@ -32194,7 +32225,7 @@ function tv(r) {
32194
32225
  };
32195
32226
  });
32196
32227
  }
32197
- window.parseWaterGlb = tv;
32228
+ globalThis.parseWaterGlb = tv;
32198
32229
  const ln = class ln extends st {
32199
32230
  /**
32200
32231
  * 构造函数,初始化该对象并解析 URL 获取数据。
@@ -35817,7 +35848,7 @@ const nd = {
35817
35848
  getts: "/ts/info"
35818
35849
  }, TE = async (r, e, t, n) => {
35819
35850
  try {
35820
- const i = window.localStorage.getItem("Authorization");
35851
+ const i = globalThis.localStorage.getItem("Authorization");
35821
35852
  let s = r + `${nd.layerconfigfind}?tileServiceName=${e}`;
35822
35853
  t && (s += `&earthdstoken=${encodeURIComponent(n)}`);
35823
35854
  const o = {
@@ -35833,7 +35864,7 @@ const nd = {
35833
35864
  }
35834
35865
  }, NE = async (r, e, t, n, i) => {
35835
35866
  try {
35836
- const s = window.localStorage.getItem("Authorization");
35867
+ const s = globalThis.localStorage.getItem("Authorization");
35837
35868
  let o = r + nd.layerconfigsave;
35838
35869
  const a = i ?? {};
35839
35870
  t && (o += `?earthdstoken=${encodeURIComponent(n)}`);
@@ -35856,7 +35887,7 @@ const nd = {
35856
35887
  }
35857
35888
  }, OE = async (r, e, t) => {
35858
35889
  try {
35859
- const n = window.localStorage.getItem("Authorization");
35890
+ const n = globalThis.localStorage.getItem("Authorization");
35860
35891
  let i = r;
35861
35892
  e && (i += `?earthdstoken=${encodeURIComponent(t)}`);
35862
35893
  const s = {
@@ -35875,7 +35906,7 @@ const nd = {
35875
35906
  }
35876
35907
  }, DE = async (r, e, t, n, i) => {
35877
35908
  try {
35878
- const s = { tileServiceName: e, featureId: t }, o = window.localStorage.getItem("Authorization");
35909
+ const s = { tileServiceName: e, featureId: t }, o = globalThis.localStorage.getItem("Authorization");
35879
35910
  let a = r + nd.featureproperty;
35880
35911
  n && (a += `?earthdstoken=${encodeURIComponent(i)}`);
35881
35912
  const l = await (await fetch(a, {
@@ -35914,6 +35945,8 @@ const nd = {
35914
35945
  d(this, "_earthdstoken", this.dv(k("")));
35915
35946
  // 要素拾取的要素id数组
35916
35947
  d(this, "_visJson", this.disposeVar(k({})));
35948
+ // 实时服务跟数据服务端口号是否相同
35949
+ d(this, "_isSameIP", this.disposeVar(k(!1)));
35917
35950
  /**
35918
35951
  * 内部 3D Tileset 高亮事件。
35919
35952
  */
@@ -36041,6 +36074,15 @@ const nd = {
36041
36074
  get visJsonChanged() {
36042
36075
  return this._visJson.changed;
36043
36076
  }
36077
+ get isSameIP() {
36078
+ return this._isSameIP.value;
36079
+ }
36080
+ set isSameIP(t) {
36081
+ this._isSameIP.value = t;
36082
+ }
36083
+ get isSameIPChanged() {
36084
+ return this._isSameIP.changed;
36085
+ }
36044
36086
  setFeatureVisable(t, n) {
36045
36087
  var i;
36046
36088
  if ((i = this.layerConfig) != null && i.length) {
@@ -36167,12 +36209,15 @@ const nd = {
36167
36209
  * 刷新图层。
36168
36210
  */
36169
36211
  async refresh() {
36170
- var i;
36212
+ var n;
36171
36213
  if (!this.url || typeof this.url != "string") return;
36172
- const t = (i = this.url.match(/\/ts\/info\/(.*)/)) == null ? void 0 : i[1], n = +/* @__PURE__ */ new Date();
36173
- if (t) {
36174
- const s = this.tileServiceIp, o = await this.getport();
36175
- await this.getLayerConfig(), this._es3DTileset.url = `${s}:${o}/tiles/tileset.json?t=${n}`;
36214
+ const t = +/* @__PURE__ */ new Date();
36215
+ if (this.isSameIP) {
36216
+ const i = (n = this.url.match(/^(https?:\/\/[^\/]+)/)) == null ? void 0 : n[0];
36217
+ this._es3DTileset.url = `${i}/ts/tiles/${this.tileServiceName}/tileset.json?t=${t}`;
36218
+ } else {
36219
+ const i = this.tileServiceIp, s = await this.getport();
36220
+ await this.getLayerConfig(), this._es3DTileset.url = `${i}:${s}/tiles/tileset.json?t=${t}`;
36176
36221
  }
36177
36222
  console.log("3dtileset url:", this._es3DTileset.url);
36178
36223
  }
@@ -36275,23 +36320,29 @@ const ua = class ua extends Gr {
36275
36320
  * @param featureId - 要素的 ID。
36276
36321
  */
36277
36322
  async init(e, t) {
36323
+ var i;
36278
36324
  this.featureId = t;
36279
36325
  const n = await e.getFeatureProperty(t);
36280
- this.uiShowprops = n.allFields.map((o) => ({
36281
- featureClassName: o.featureClassName,
36282
- fields: o.fields.map((a) => ({
36283
- key: a.name,
36284
- type: a.type,
36285
- value: a.type != "Double" ? a.value : ME(a.value) ? Number(a.value.toFixed(3)) : ""
36326
+ if (this.uiShowprops = n.allFields.map((s) => ({
36327
+ featureClassName: s.featureClassName,
36328
+ fields: s.fields.map((o) => ({
36329
+ key: o.name,
36330
+ type: o.type,
36331
+ value: o.type != "Double" ? o.value : ME(o.value) ? Number(o.value.toFixed(3)) : ""
36286
36332
  }))
36287
36333
  })), this.datasetName = n.datasetName, e.setFeatureVisable("id", [{ value: this.featureId, visable: !1 }]), this.d(() => {
36288
36334
  e.setFeatureVisable("id", [{ value: this.featureId, visable: !0 }]);
36289
- });
36290
- const i = e.tileServiceIp, s = e.tilesetServePort;
36291
- if (!s)
36292
- throw new Error("ESRtsFeatureEditing: port is not defined");
36293
- this.url = `${i}:${s}/featuretiles/${this.featureId}/tileset.json`, this.allowPicking = !0, this.d(this.pickedEvent.don((o) => {
36294
- o.assign({ sceneObject: e }), e.pickedEvent.emit(o);
36335
+ }), e.isSameIP) {
36336
+ const s = (i = e.url.match(/^(https?:\/\/[^\/]+)/)) == null ? void 0 : i[0], o = e.tileServiceName;
36337
+ this.url = `${s}/ts/featuretiles/${o}/${this.featureId}/tileset.json`;
36338
+ } else {
36339
+ const s = e.tileServiceIp, o = e.tilesetServePort;
36340
+ if (!o)
36341
+ throw new Error("ESRtsFeatureEditing2: port is not defined");
36342
+ this.url = `${s}:${o}/featuretiles/${this.featureId}/tileset.json`;
36343
+ }
36344
+ this.allowPicking = !0, this.d(this.pickedEvent.don((s) => {
36345
+ s.assign({ sceneObject: e }), e.pickedEvent.emit(s);
36295
36346
  })), this.d(() => {
36296
36347
  this.editing = !1, e.removeHighlightDSFeature(this);
36297
36348
  });
@@ -36325,7 +36376,7 @@ d(ua, "type", ua.register("ESRtsFeatureEditing", ua, { chsName: "ESRtsFeatureEdi
36325
36376
  let Np = ua;
36326
36377
  const RE = async (r, e, t) => {
36327
36378
  try {
36328
- const n = window.localStorage.getItem("Authorization");
36379
+ const n = globalThis.localStorage.getItem("Authorization");
36329
36380
  let i = r;
36330
36381
  e && (i += `?earthdstoken=${encodeURIComponent(t)}`);
36331
36382
  const s = {
@@ -39538,7 +39589,7 @@ const Vi = class Vi extends V {
39538
39589
  this._loadedPromiseResolve = t;
39539
39590
  }));
39540
39591
  d(this, "_processing", this.disposeVar(Ir(async (t) => {
39541
- if (this._loading = !0, window.Hls)
39592
+ if (this._loading = !0, globalThis.Hls)
39542
39593
  console.info("可能系统已经加载hlsjs,此处不再加载!");
39543
39594
  else {
39544
39595
  const n = et.context.getStrFromEnv(Vi.path);
@@ -39606,7 +39657,7 @@ class tC extends V {
39606
39657
  d(this, "_processing", this.disposeVar(Ir(async (t) => {
39607
39658
  const { videoSrc: n } = this, i = fh.instance();
39608
39659
  await t.promise(i.loadedPromise);
39609
- const s = window.Hls, o = new s(), a = this.element;
39660
+ const s = globalThis.Hls, o = new s(), a = this.element;
39610
39661
  await Vo(t, () => new Promise((u, l) => {
39611
39662
  a.xbsjHLS = o, o.attachMedia(a), o.on(s.Events.MEDIA_ATTACHED, () => {
39612
39663
  o.loadSource(n), o.on(s.Events.MANIFEST_PARSED, (c, h) => {
@@ -39666,7 +39717,7 @@ const Bi = class Bi extends V {
39666
39717
  this._loadedPromiseResolve = t;
39667
39718
  }));
39668
39719
  d(this, "_processing", this.disposeVar(Ir(async (t) => {
39669
- if (this._loading = !0, window.flvjs)
39720
+ if (this._loading = !0, globalThis.flvjs)
39670
39721
  console.info("可能系统已经加载flvjs,此处不再加载!");
39671
39722
  else {
39672
39723
  const n = et.context.getStrFromEnv(Bi.path);
@@ -39735,7 +39786,7 @@ class rC extends V {
39735
39786
  d(this, "_processing", this.disposeVar(Ir(async (t) => {
39736
39787
  const { videoSrc: n } = this, i = ph.instance();
39737
39788
  await t.promise(i.loadedPromise);
39738
- const s = window.flvjs, o = this.element;
39789
+ const s = globalThis.flvjs, o = this.element;
39739
39790
  await Vo(t, () => new Promise((a, u) => {
39740
39791
  if (!s.isSupported()) {
39741
39792
  u("flvjs不支持!");
@@ -41726,7 +41777,7 @@ const ji = class ji extends V {
41726
41777
  * 获取版本信息。
41727
41778
  */
41728
41779
  async getVersion() {
41729
- return window.g_XE3CopyRights ?? {};
41780
+ return globalThis.g_XE3CopyRights ?? {};
41730
41781
  }
41731
41782
  // 事件开始——————————————————————————————————————————————————————————————————————事件开始
41732
41783
  /**