@capagents/forgeqe 3.2.6 → 3.2.7
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/HOW_TO_USE.md +4 -1
- package/dist/docs-site/CREDITS.md +3 -3
- package/dist/docs-site/{LICENSE.dm-sans.txt → LICENSE.geist.txt} +1 -1
- package/dist/docs-site/app-look.css +72 -32
- package/dist/docs-site/architecture-map/arch-theme.css +31 -40
- package/dist/docs-site/docs/app-theme.css +109 -108
- package/dist/docs-site/docs/area-api/index.html +3 -3
- package/dist/docs-site/docs/area-browser/index.html +2 -0
- package/dist/docs-site/docs/area-setup/index.html +1 -0
- package/dist/docs-site/docs/search.js +1 -1
- package/dist/docs-site/docs/web-app/index.html +2 -2
- package/dist/docs-site/security/security-theme.css +66 -69
- package/dist/forgeqe.js +1870 -1847
- package/dist/web/THIRD_PARTY_NOTICES.md +0 -101
- package/dist/web/assets/{3d-force-graph-CNVqakzA.js → 3d-force-graph-CUGt_TSW.js} +1 -1
- package/dist/web/assets/Agent-DiX8ljlC.js +8 -0
- package/dist/web/assets/AgentWork-BpfMY_xu.js +2 -0
- package/dist/web/assets/ApiTests-4jfzlfVd.js +15 -0
- package/dist/web/assets/Browse-ByDemInL.js +1 -0
- package/dist/web/assets/Chat-C3wKV0CI.js +3 -0
- package/dist/web/assets/CommandPalette-CKJHtRjo.js +1 -0
- package/dist/web/assets/Compare-DtW2g-qb.js +1 -0
- package/dist/web/assets/Cost-DW-kVEL8.js +1 -0
- package/dist/web/assets/Data--HGneNun.js +6 -0
- package/dist/web/assets/Desktop-DQf5gv7D.js +1 -0
- package/dist/web/assets/DesktopReview-BaPYt0kl.js +2 -0
- package/dist/web/assets/DeviceScreen-DzVNfMwl.js +1 -0
- package/dist/web/assets/Evidence-CxRMnZch.js +1 -0
- package/dist/web/assets/Explore-ChpAuezG.js +2 -0
- package/dist/web/assets/Features-VsLb8QTH.js +1 -0
- package/dist/web/assets/Flags-Do-pvmCF.js +2 -0
- package/dist/web/assets/Flaky-CyhTszAg.js +1 -0
- package/dist/web/assets/Impact-BWBAXRuw.js +3 -0
- package/dist/web/assets/Jobs-C_MjXv0_.js +5 -0
- package/dist/web/assets/KindPage-Bb3Kp4-q.js +6 -0
- package/dist/web/assets/LiveDevice-OyxEiqBt.js +1 -0
- package/dist/web/assets/Migration-C80mGA3h.js +8 -0
- package/dist/web/assets/Mobile-C4wVBYfr.js +1 -0
- package/dist/web/assets/Observability-DdTOLp2C.js +1 -0
- package/dist/web/assets/PageAgent-Bi53-H99.js +1 -0
- package/dist/web/assets/Product-0LXndvp-.js +12 -0
- package/dist/web/assets/Production-oTXhv40a.js +1 -0
- package/dist/web/assets/Quality-CY0CJF9e.js +1 -0
- package/dist/web/assets/Readiness-Bv9uTTiI.js +1 -0
- package/dist/web/assets/Record-C-kyOkYq.js +1 -0
- package/dist/web/assets/Regression-CwKxvG1h.js +5 -0
- package/dist/web/assets/RelationGraph-BQl3M4zd.js +1 -0
- package/dist/web/assets/Reports-Ck8rc3br.js +2 -0
- package/dist/web/assets/Responsive-COmV2NXo.js +3 -0
- package/dist/web/assets/RunDiff-BBT1sQLh.js +1 -0
- package/dist/web/assets/Settings-7aMk9Sqx.js +21 -0
- package/dist/web/assets/Steps-C_vL6-8p.js +3 -0
- package/dist/web/assets/TestData-KzMy9N9f.js +2 -0
- package/dist/web/assets/TestManagement-BCEhOGB9.js +4 -0
- package/dist/web/assets/WhatsNew-DTcaqdOJ.js +1 -0
- package/dist/web/assets/agentSettingsSheet-DM1aa237.js +1 -0
- package/dist/web/assets/choice-B6z9CWyZ.js +1 -0
- package/dist/web/assets/code-DzYywAs5.js +1 -0
- package/dist/web/assets/{coverage-xSRsKFL6.js → coverage-BhtF065n.js} +4 -4
- package/dist/web/assets/dataParts-BNDVxwFb.js +3 -0
- package/dist/web/assets/desktopAppPath-D4hHP56R.js +1 -0
- package/dist/web/assets/frame-CNYHTG4T.js +13 -0
- package/dist/web/assets/index-B1Q2Dlqw.js +56 -0
- package/dist/web/assets/index-sxUpjgyw.css +2 -0
- package/dist/web/assets/markdown-BhU7ng6c.js +8 -0
- package/dist/web/assets/pageBack-BoSbGSU6.js +3 -0
- package/dist/web/assets/palette-BsY8OLxd.js +1 -0
- package/dist/web/assets/{paletteCommands-CwHwpVqt.js → paletteCommands-DflHQ05x.js} +1 -1
- package/dist/web/assets/parts-C4QMgN_N.js +1 -0
- package/dist/web/assets/preload-helper-qorOEK5q.js +1 -0
- package/dist/web/assets/productParts-Dxl-TQKY.js +1 -0
- package/dist/web/assets/qualityParts-ClGKtjEv.js +1 -0
- package/dist/web/assets/radio-DDxnnflQ.js +1 -0
- package/dist/web/assets/recordTest-B33rIncn.js +1 -0
- package/dist/web/assets/route-D9uPlFWw.js +1 -0
- package/dist/web/assets/{sectionList-BlwEtA8S.js → sectionList-e5mFDaS2.js} +1 -1
- package/dist/web/assets/stepper-DSDz0uu8.js +1 -0
- package/dist/web/index.html +10 -9
- package/docs/WEB_APP.md +2 -2
- package/docs/user-guide.html +13 -7
- package/package.json +1 -1
- package/prompts/api-scenarios.md +1 -0
- package/prompts/brain.md +1 -0
- package/py/forgeqe_desktop/replay.py +3 -1
- package/py/forgeqe_desktop/workflow.py +19 -0
- package/py/forgeqe_engine/capture.py +19 -4
- package/py/forgeqe_engine/cli.py +12 -10
- package/py/forgeqe_engine/clientcert.py +28 -0
- package/py/forgeqe_engine/d365.py +182 -0
- package/py/forgeqe_engine/logins.py +20 -16
- package/py/forgeqe_engine/memory.py +9 -3
- package/py/forgeqe_engine/recordsession.py +23 -3
- package/py/forgeqe_engine/webrecord.py +16 -0
- package/py/forgeqe_engine/webrecord_page.py +26 -1
- package/py/forgeqe_mobile/appium_driver.py +26 -0
- package/py/forgeqe_mobile/maestro.py +2 -1
- package/dist/web/assets/Agent-CAp1dIHx.js +0 -8
- package/dist/web/assets/AgentWork-DxO8FN6U.js +0 -2
- package/dist/web/assets/ApiTests-XQ8wXCBj.js +0 -14
- package/dist/web/assets/Browse-BP1oToo4.js +0 -1
- package/dist/web/assets/Chat-DjIdHvHj.js +0 -3
- package/dist/web/assets/CommandPalette-rNWxEO_C.js +0 -1
- package/dist/web/assets/Compare-DwUP21-2.js +0 -1
- package/dist/web/assets/Cost-qZ-gGn2T.js +0 -1
- package/dist/web/assets/Data-AlbKk5zW.js +0 -6
- package/dist/web/assets/Desktop-yGPlxyBz.js +0 -1
- package/dist/web/assets/DesktopReview-BlpxN07L.js +0 -2
- package/dist/web/assets/DeviceScreen-BQKsJonx.js +0 -1
- package/dist/web/assets/Evidence-BCodp0GV.js +0 -1
- package/dist/web/assets/Explore-Ck5EEDy7.js +0 -2
- package/dist/web/assets/Features-BOQomaU8.js +0 -1
- package/dist/web/assets/Flags-DjolLE4S.js +0 -2
- package/dist/web/assets/Flaky-D-xnPfil.js +0 -1
- package/dist/web/assets/Impact-CoNLaNwy.js +0 -3
- package/dist/web/assets/Jobs-_kBd2W3F.js +0 -5
- package/dist/web/assets/KindPage-DfnkzpPj.js +0 -6
- package/dist/web/assets/LiveDevice-DRAN4Gl4.js +0 -1
- package/dist/web/assets/Migration-PETc1Ckc.js +0 -8
- package/dist/web/assets/Mobile-B193VBXu.js +0 -1
- package/dist/web/assets/Observability-CvdV37XD.js +0 -1
- package/dist/web/assets/PageAgent-BJguufGW.js +0 -1
- package/dist/web/assets/Product-Cmgcj9fr.js +0 -12
- package/dist/web/assets/Production-DM62n03j.js +0 -1
- package/dist/web/assets/Quality-DbgAAeel.js +0 -1
- package/dist/web/assets/Readiness-CojmD235.js +0 -1
- package/dist/web/assets/Record-C4VFM97k.js +0 -1
- package/dist/web/assets/Regression-5mma_vyD.js +0 -5
- package/dist/web/assets/RelationGraph-bDvvcead.js +0 -1
- package/dist/web/assets/Reports-BeSrlzKk.js +0 -2
- package/dist/web/assets/Responsive-B4CkMBwF.js +0 -3
- package/dist/web/assets/RunDiff-DGThx7bk.js +0 -1
- package/dist/web/assets/Settings-IjfPYiuf.js +0 -21
- package/dist/web/assets/Steps-BPSNI3aY.js +0 -3
- package/dist/web/assets/TestCases-hIuP5BLu.js +0 -1
- package/dist/web/assets/TestData-DpAMEMLP.js +0 -2
- package/dist/web/assets/TestDebt-D6UjJCpY.js +0 -1
- package/dist/web/assets/TestManagement-CTWh-aA8.js +0 -4
- package/dist/web/assets/WhatsNew-DMDg1zmv.js +0 -1
- package/dist/web/assets/agentSettingsSheet-CUogAKga.js +0 -1
- package/dist/web/assets/dataParts-s8iIR3Ad.js +0 -3
- package/dist/web/assets/desktopAppPath-CnmfVr-s.js +0 -1
- package/dist/web/assets/dm-sans-latin-400-normal-BwCSEQnW.woff +0 -0
- package/dist/web/assets/dm-sans-latin-400-normal-CW0RaeGs.woff2 +0 -0
- package/dist/web/assets/dm-sans-latin-500-normal-B9HHJjqV.woff2 +0 -0
- package/dist/web/assets/dm-sans-latin-500-normal-Dr3UlScf.woff +0 -0
- package/dist/web/assets/dm-sans-latin-600-normal-Aqo67rzb.woff2 +0 -0
- package/dist/web/assets/dm-sans-latin-600-normal-BmdmIIQ2.woff +0 -0
- package/dist/web/assets/dm-sans-latin-ext-400-normal-BjWJ59Pq.woff +0 -0
- package/dist/web/assets/dm-sans-latin-ext-400-normal-BtiwyxMk.woff2 +0 -0
- package/dist/web/assets/dm-sans-latin-ext-500-normal-BJfUCQsA.woff2 +0 -0
- package/dist/web/assets/dm-sans-latin-ext-500-normal-DR84L5F-.woff +0 -0
- package/dist/web/assets/dm-sans-latin-ext-600-normal-4vooXBpG.woff2 +0 -0
- package/dist/web/assets/dm-sans-latin-ext-600-normal-DRtaDpgU.woff +0 -0
- package/dist/web/assets/frame-DNgVKrlp.js +0 -13
- package/dist/web/assets/index-BBJ_SKdO.js +0 -56
- package/dist/web/assets/index-hysPD6U9.css +0 -2
- package/dist/web/assets/input-FbzQKk3L.js +0 -1
- package/dist/web/assets/markdown-1z66EzBR.js +0 -8
- package/dist/web/assets/pageBack-B6bY6ZUl.js +0 -3
- package/dist/web/assets/palette-C5Ok5Zd1.js +0 -1
- package/dist/web/assets/parts-Dqq6noWp.js +0 -1
- package/dist/web/assets/productParts-DNSo4bn5.js +0 -1
- package/dist/web/assets/qualityParts-kh6SukEP.js +0 -1
- package/dist/web/assets/recordTest-BCxsm3gC.js +0 -1
- package/dist/web/assets/route-D8G-pTdk.js +0 -1
- package/dist/web/assets/stepper-ByKrM1LP.js +0 -1
|
@@ -5,7 +5,6 @@ The web app `forgeqe web` serves (built into `dist/web`) contains the open sourc
|
|
|
5
5
|
| Package | Version | Licence | Where |
|
|
6
6
|
|---------|---------|---------|-------|
|
|
7
7
|
| @babel/runtime | 7.29.15 | MIT | polished |
|
|
8
|
-
| @fontsource/dm-sans | 5.3.0 | OFL-1.1 | the web app |
|
|
9
8
|
| @fontsource/geist | 5.3.0 | OFL-1.1 | the web app |
|
|
10
9
|
| @fontsource/jetbrains-mono | 5.3.0 | OFL-1.1 | the web app |
|
|
11
10
|
| @iconify-json/devicon | 1.2.72 | MIT | the web app (compiled in) |
|
|
@@ -182,106 +181,6 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
182
181
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
183
182
|
```
|
|
184
183
|
|
|
185
|
-
### @fontsource/dm-sans 5.3.0
|
|
186
|
-
|
|
187
|
-
OFL-1.1. https://fontsource.org/fonts/dm-sans
|
|
188
|
-
|
|
189
|
-
```text
|
|
190
|
-
Copyright 2014 The DM Sans Project Authors (https://github.com/googlefonts/dm-fonts) DMSans-Italic[opsz,wght].ttf: Copyright 2014 The DM Sans Project Authors (https://github.com/googlefonts/dm-fonts)
|
|
191
|
-
|
|
192
|
-
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
193
|
-
This license is copied below, and is also available with a FAQ at:
|
|
194
|
-
http://scripts.sil.org/OFL
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
-----------------------------------------------------------
|
|
198
|
-
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
199
|
-
-----------------------------------------------------------
|
|
200
|
-
|
|
201
|
-
PREAMBLE
|
|
202
|
-
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
203
|
-
development of collaborative font projects, to support the font creation
|
|
204
|
-
efforts of academic and linguistic communities, and to provide a free and
|
|
205
|
-
open framework in which fonts may be shared and improved in partnership
|
|
206
|
-
with others.
|
|
207
|
-
|
|
208
|
-
The OFL allows the licensed fonts to be used, studied, modified and
|
|
209
|
-
redistributed freely as long as they are not sold by themselves. The
|
|
210
|
-
fonts, including any derivative works, can be bundled, embedded,
|
|
211
|
-
redistributed and/or sold with any software provided that any reserved
|
|
212
|
-
names are not used by derivative works. The fonts and derivatives,
|
|
213
|
-
however, cannot be released under any other type of license. The
|
|
214
|
-
requirement for fonts to remain under this license does not apply
|
|
215
|
-
to any document created using the fonts or their derivatives.
|
|
216
|
-
|
|
217
|
-
DEFINITIONS
|
|
218
|
-
"Font Software" refers to the set of files released by the Copyright
|
|
219
|
-
Holder(s) under this license and clearly marked as such. This may
|
|
220
|
-
include source files, build scripts and documentation.
|
|
221
|
-
|
|
222
|
-
"Reserved Font Name" refers to any names specified as such after the
|
|
223
|
-
copyright statement(s).
|
|
224
|
-
|
|
225
|
-
"Original Version" refers to the collection of Font Software components as
|
|
226
|
-
distributed by the Copyright Holder(s).
|
|
227
|
-
|
|
228
|
-
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
229
|
-
or substituting -- in part or in whole -- any of the components of the
|
|
230
|
-
Original Version, by changing formats or by porting the Font Software to a
|
|
231
|
-
new environment.
|
|
232
|
-
|
|
233
|
-
"Author" refers to any designer, engineer, programmer, technical
|
|
234
|
-
writer or other person who contributed to the Font Software.
|
|
235
|
-
|
|
236
|
-
PERMISSION & CONDITIONS
|
|
237
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
238
|
-
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
239
|
-
redistribute, and sell modified and unmodified copies of the Font
|
|
240
|
-
Software, subject to the following conditions:
|
|
241
|
-
|
|
242
|
-
1) Neither the Font Software nor any of its individual components,
|
|
243
|
-
in Original or Modified Versions, may be sold by itself.
|
|
244
|
-
|
|
245
|
-
2) Original or Modified Versions of the Font Software may be bundled,
|
|
246
|
-
redistributed and/or sold with any software, provided that each copy
|
|
247
|
-
contains the above copyright notice and this license. These can be
|
|
248
|
-
included either as stand-alone text files, human-readable headers or
|
|
249
|
-
in the appropriate machine-readable metadata fields within text or
|
|
250
|
-
binary files as long as those fields can be easily viewed by the user.
|
|
251
|
-
|
|
252
|
-
3) No Modified Version of the Font Software may use the Reserved Font
|
|
253
|
-
Name(s) unless explicit written permission is granted by the corresponding
|
|
254
|
-
Copyright Holder. This restriction only applies to the primary font name as
|
|
255
|
-
presented to the users.
|
|
256
|
-
|
|
257
|
-
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
258
|
-
Software shall not be used to promote, endorse or advertise any
|
|
259
|
-
Modified Version, except to acknowledge the contribution(s) of the
|
|
260
|
-
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
261
|
-
permission.
|
|
262
|
-
|
|
263
|
-
5) The Font Software, modified or unmodified, in part or in whole,
|
|
264
|
-
must be distributed entirely under this license, and must not be
|
|
265
|
-
distributed under any other license. The requirement for fonts to
|
|
266
|
-
remain under this license does not apply to any document created
|
|
267
|
-
using the Font Software.
|
|
268
|
-
|
|
269
|
-
TERMINATION
|
|
270
|
-
This license becomes null and void if any of the above conditions are
|
|
271
|
-
not met.
|
|
272
|
-
|
|
273
|
-
DISCLAIMER
|
|
274
|
-
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
275
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
276
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
277
|
-
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
278
|
-
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
279
|
-
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
280
|
-
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
281
|
-
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
282
|
-
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
283
|
-
```
|
|
284
|
-
|
|
285
184
|
### @fontsource/geist 5.3.0
|
|
286
185
|
|
|
287
186
|
OFL-1.1. https://fontsource.org/fonts/geist
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,t}from"./rolldown-runtime-XKyaHtl9.js";import{AmbientLight as n,ArrayCamera as r,Box3 as i,BoxGeometry as a,BufferAttribute as o,BufferGeometry as s,ByteType as c,ClampToEdgeWrapping as l,Color as u,ColorManagement as d,Compatibility as f,ConeGeometry as p,Controls as m,CubeCamera as h,CubeDepthTexture as g,CubeTexture as _,CubicBezierCurve3 as v,CylinderGeometry as y,DataArrayTexture as b,DataTexture as x,DecrementStencilOp as S,DecrementWrapStencilOp as C,DepthFormat as ee,DepthStencilFormat as te,DepthTexture as w,DirectionalLight as ne,DynamicDrawUsage as re,EllipseCurve as ie,EventDispatcher as ae,Float16BufferAttribute as oe,Float32BufferAttribute as se,FloatType as ce,FramebufferTexture as le,Frustum as ue,FrustumArray as de,GridHelper as fe,Group as pe,HalfFloatType as me,HemisphereLight as he,IncrementStencilOp as ge,IncrementWrapStencilOp as _e,InstancedBufferAttribute as ve,InstancedInterleavedBuffer as ye,IntType as be,InterleavedBuffer as xe,InterleavedBufferAttribute as Se,InvertStencilOp as Ce,KeepStencilOp as we,LightProbe as Te,Line as Ee,LineBasicMaterial as De,LineDashedMaterial as Oe,LinearFilter as ke,LinearMipmapLinearFilter as Ae,LinearMipmapNearestFilter as je,LinearSRGBColorSpace as Me,LinearTransfer as Ne,MOUSE as Pe,Material as Fe,MathUtils as Ie,Matrix2 as Le,Matrix3 as Re,Matrix4 as ze,Mesh as Be,MeshBasicMaterial as Ve,MeshLambertMaterial as He,MeshMatcapMaterial as Ue,MeshNormalMaterial as We,MeshPhongMaterial as Ge,MeshPhysicalMaterial as Ke,MeshStandardMaterial as qe,MeshToonMaterial as Je,MirroredRepeatWrapping as Ye,NearestFilter as Xe,NearestMipmapLinearFilter as Ze,NearestMipmapNearestFilter as Qe,OrthographicCamera as $e,PerspectiveCamera as et,Plane as tt,PlaneGeometry as nt,PointLight as rt,PointsMaterial as it,QuadraticBezierCurve3 as at,Quaternion as ot,R11_EAC_Format as st,RED_GREEN_RGTC2_Format as ct,RED_RGTC1_Format as lt,RG11_EAC_Format as ut,RGBAFormat as dt,RGBAIntegerFormat as ft,RGBA_ASTC_10x10_Format as pt,RGBA_ASTC_10x5_Format as mt,RGBA_ASTC_10x6_Format as ht,RGBA_ASTC_10x8_Format as gt,RGBA_ASTC_12x10_Format as _t,RGBA_ASTC_12x12_Format as vt,RGBA_ASTC_4x4_Format as yt,RGBA_ASTC_5x4_Format as bt,RGBA_ASTC_5x5_Format as xt,RGBA_ASTC_6x5_Format as St,RGBA_ASTC_6x6_Format as Ct,RGBA_ASTC_8x5_Format as wt,RGBA_ASTC_8x6_Format as Tt,RGBA_ASTC_8x8_Format as Et,RGBA_BPTC_Format as Dt,RGBA_ETC2_EAC_Format as Ot,RGBA_S3TC_DXT1_Format as kt,RGBA_S3TC_DXT3_Format as At,RGBA_S3TC_DXT5_Format as jt,RGBFormat as Mt,RGBIntegerFormat as Nt,RGB_BPTC_SIGNED_Format as Pt,RGB_BPTC_UNSIGNED_Format as Ft,RGB_ETC1_Format as It,RGB_ETC2_Format as Lt,RGB_S3TC_DXT1_Format as Rt,RGFormat as zt,RGIntegerFormat as Bt,Ray as Vt,Raycaster as Ht,RectAreaLight as Ut,RedFormat as Wt,RedIntegerFormat as Gt,RenderObjectRefreshType as Kt,RenderTarget as qt,RepeatWrapping as Jt,ReplaceStencilOp as Yt,SIGNED_R11_EAC_Format as Xt,SIGNED_RED_GREEN_RGTC2_Format as Zt,SIGNED_RED_RGTC1_Format as Qt,SIGNED_RG11_EAC_Format as $t,SRGBColorSpace as en,Scene as tn,ShaderMaterial as nn,ShadowMaterial as rn,ShortType as an,Sphere as on,SphereGeometry as sn,Spherical as cn,SpotLight as ln,SpriteMaterial as un,StaticDrawUsage as dn,TOUCH as fn,Texture as pn,TextureLoader as mn,Timer as hn,TimestampQuery as gn,TubeGeometry as _n,Uint16BufferAttribute as vn,Uint32BufferAttribute as yn,UniformsUtils as bn,UnsignedByteType as xn,UnsignedInt101111Type as Sn,UnsignedInt248Type as Cn,UnsignedInt5999Type as wn,UnsignedIntType as Tn,UnsignedShortType as En,Vector2 as T,Vector3 as E,Vector4 as Dn,WebGLCoordinateSystem as On,WebGLRenderTarget as kn,WebGLRenderer as An,WebGPUCoordinateSystem as jn,WebXRController as Mn,a as Nn,createCanvasElement as Pn,error as D,i as Fn,log as In,n as Ln,r as Rn,t as zn,warn as O,warnOnce as Bn}from"./three.module-D480w7q4.js";import{g as Vn,h as Hn,m as Un}from"./RelationGraph-bDvvcead.js";import{a as Wn,i as Gn,n as Kn,o as qn,r as Jn,s as Yn}from"./Product-Cmgcj9fr.js";var Xn=new tt,Zn=new T,Qn=new E,$n=new T,er=new T,tr=new E,nr=new E,rr=new ze,ir=new E,ar=new E,or=null,sr=null,cr=[],lr={NONE:-1,PAN:0,ROTATE:1},ur=class extends m{constructor(e,t,n=null){super(t,n),this.objects=e,this.recursive=!0,this.transformGroup=!1,this.rotateSpeed=1,this.raycaster=new Ht,this.mouseButtons={LEFT:Pe.PAN,MIDDLE:Pe.PAN,RIGHT:Pe.ROTATE},this.touches={ONE:fn.PAN},this._onPointerMove=dr.bind(this),this._onPointerDown=fr.bind(this),this._onPointerCancel=pr.bind(this),this._onContextMenu=mr.bind(this),n!==null&&this.connect(n)}connect(e){super.connect(e),this.domElement.addEventListener(`pointermove`,this._onPointerMove),this.domElement.addEventListener(`pointerdown`,this._onPointerDown),this.domElement.addEventListener(`pointerup`,this._onPointerCancel),this.domElement.addEventListener(`pointerleave`,this._onPointerCancel),this.domElement.addEventListener(`contextmenu`,this._onContextMenu),this.domElement.style.touchAction=`none`}disconnect(){this.domElement.removeEventListener(`pointermove`,this._onPointerMove),this.domElement.removeEventListener(`pointerdown`,this._onPointerDown),this.domElement.removeEventListener(`pointerup`,this._onPointerCancel),this.domElement.removeEventListener(`pointerleave`,this._onPointerCancel),this.domElement.removeEventListener(`contextmenu`,this._onContextMenu),this.domElement.style.touchAction=``,this.domElement.style.cursor=``}dispose(){this.disconnect()}_updatePointer(e){let t=this.domElement.getBoundingClientRect();Zn.x=(e.clientX-t.left)/t.width*2-1,Zn.y=-(e.clientY-t.top)/t.height*2+1}_updateState(e){let t;if(e.pointerType===`touch`)t=this.touches.ONE;else switch(e.button){case 0:t=this.mouseButtons.LEFT;break;case 1:t=this.mouseButtons.MIDDLE;break;case 2:t=this.mouseButtons.RIGHT;break;default:t=null}switch(t){case Pe.PAN:case fn.PAN:this.state=lr.PAN;break;case Pe.ROTATE:case fn.ROTATE:this.state=lr.ROTATE;break;default:this.state=lr.NONE}}};function dr(e){let t=this.object,n=this.domElement,r=this.raycaster;if(this.enabled!==!1){if(this._updatePointer(e),r.setFromCamera(Zn,t),or)this.state===lr.PAN?r.ray.intersectPlane(Xn,tr)&&(or.position.copy(tr.sub(Qn).applyMatrix4(rr)),this.dispatchEvent({type:`drag`,object:or})):this.state===lr.ROTATE&&($n.subVectors(Zn,er).multiplyScalar(this.rotateSpeed),or.rotateOnWorldAxis(ir,$n.x),or.rotateOnWorldAxis(ar.normalize(),-$n.y),this.dispatchEvent({type:`drag`,object:or})),er.copy(Zn);else if(e.pointerType===`mouse`||e.pointerType===`pen`){if(cr.length=0,r.setFromCamera(Zn,t),r.intersectObjects(this.objects,this.recursive,cr),cr.length>0){let e=cr[0].object;Xn.setFromNormalAndCoplanarPoint(t.getWorldDirection(Xn.normal),nr.setFromMatrixPosition(e.matrixWorld)),sr!==e&&sr!==null&&(this.dispatchEvent({type:`hoveroff`,object:sr}),n.style.cursor=`auto`,sr=null),sr!==e&&(this.dispatchEvent({type:`hoveron`,object:e}),n.style.cursor=`pointer`,sr=e)}else sr!==null&&(this.dispatchEvent({type:`hoveroff`,object:sr}),n.style.cursor=`auto`,sr=null)}er.copy(Zn)}}function fr(e){let t=this.object,n=this.domElement,r=this.raycaster;this.enabled!==!1&&(this._updatePointer(e),this._updateState(e),cr.length=0,r.setFromCamera(Zn,t),r.intersectObjects(this.objects,this.recursive,cr),cr.length>0&&(or=this.transformGroup===!0?hr(cr[0].object):cr[0].object,Xn.setFromNormalAndCoplanarPoint(t.getWorldDirection(Xn.normal),nr.setFromMatrixPosition(or.matrixWorld)),r.ray.intersectPlane(Xn,tr)&&(this.state===lr.PAN?(rr.copy(or.parent.matrixWorld).invert(),Qn.copy(tr).sub(nr.setFromMatrixPosition(or.matrixWorld)),n.style.cursor=`move`,this.dispatchEvent({type:`dragstart`,object:or})):this.state===lr.ROTATE&&(ir.set(0,1,0).applyQuaternion(t.quaternion).normalize(),ar.set(1,0,0).applyQuaternion(t.quaternion).normalize(),n.style.cursor=`move`,this.dispatchEvent({type:`dragstart`,object:or})))),er.copy(Zn))}function pr(){this.enabled!==!1&&(or&&=(this.dispatchEvent({type:`dragend`,object:or}),null),this.domElement.style.cursor=sr?`pointer`:`auto`,this.state=lr.NONE)}function mr(e){this.enabled!==!1&&e.preventDefault()}function hr(e,t=null){return e.isGroup&&(t=e),e.parent===null?t:hr(e.parent,t)}function gr(e,t,n){var r,i=1;e??=0,t??=0,n??=0;function a(){var a,o=r.length,s,c=0,l=0,u=0;for(a=0;a<o;++a)s=r[a],c+=s.x||0,l+=s.y||0,u+=s.z||0;for(c=(c/o-e)*i,l=(l/o-t)*i,u=(u/o-n)*i,a=0;a<o;++a)s=r[a],c&&(s.x-=c),l&&(s.y-=l),u&&(s.z-=u)}return a.initialize=function(e){r=e},a.x=function(t){return arguments.length?(e=+t,a):e},a.y=function(e){return arguments.length?(t=+e,a):t},a.z=function(e){return arguments.length?(n=+e,a):n},a.strength=function(e){return arguments.length?(i=+e,a):i},a}function _r(e){let t=+this._x.call(null,e);return vr(this.cover(t),t,e)}function vr(e,t,n){if(isNaN(t))return e;var r,i=e._root,a={data:n},o=e._x0,s=e._x1,c,l,u,d,f;if(!i)return e._root=a,e;for(;i.length;)if((u=t>=(c=(o+s)/2))?o=c:s=c,r=i,!(i=i[d=+u]))return r[d]=a,e;if(l=+e._x.call(null,i.data),t===l)return a.next=i,r?r[d]=a:e._root=a,e;do r=r?r[d]=[,,]:e._root=[,,],(u=t>=(c=(o+s)/2))?o=c:s=c;while((d=+u)==(f=+(l>=c)));return r[f]=i,r[d]=a,e}function yr(e){Array.isArray(e)||(e=Array.from(e));let t=e.length,n=new Float64Array(t),r=1/0,i=-1/0;for(let a=0,o;a<t;++a)isNaN(o=+this._x.call(null,e[a]))||(n[a]=o,o<r&&(r=o),o>i&&(i=o));if(r>i)return this;this.cover(r).cover(i);for(let r=0;r<t;++r)vr(this,n[r],e[r]);return this}function br(e){if(isNaN(e=+e))return this;var t=this._x0,n=this._x1;if(isNaN(t))n=(t=Math.floor(e))+1;else{for(var r=n-t||1,i=this._root,a,o;t>e||e>=n;)switch(o=+(e<t),a=[,,],a[o]=i,i=a,r*=2,o){case 0:n=t+r;break;case 1:t=n-r}this._root&&this._root.length&&(this._root=i)}return this._x0=t,this._x1=n,this}function xr(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Sr(e){return arguments.length?this.cover(+e[0][0]).cover(+e[1][0]):isNaN(this._x0)?void 0:[[this._x0],[this._x1]]}function Cr(e,t,n){this.node=e,this.x0=t,this.x1=n}function wr(e,t){var n,r=this._x0,i,a,o=this._x1,s=[],c=this._root,l,u;for(c&&s.push(new Cr(c,r,o)),t==null?t=1/0:(r=e-t,o=e+t);l=s.pop();)if(!(!(c=l.node)||(i=l.x0)>o||(a=l.x1)<r)){if(c.length){var d=(i+a)/2;s.push(new Cr(c[1],d,a),new Cr(c[0],i,d)),(u=+(e>=d))&&(l=s[s.length-1],s[s.length-1]=s[s.length-1-u],s[s.length-1-u]=l)}else{var f=Math.abs(e-+this._x.call(null,c.data));f<t&&(t=f,r=e-f,o=e+f,n=c.data)}}return n}function Tr(e){if(isNaN(c=+this._x.call(null,e)))return this;var t,n=this._root,r,i,a,o=this._x0,s=this._x1,c,l,u,d,f;if(!n)return this;if(n.length)for(;;){if((u=c>=(l=(o+s)/2))?o=l:s=l,t=n,!(n=n[d=+u]))return this;if(!n.length)break;t[d+1&1]&&(r=t,f=d)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(a=n.next)&&delete n.next,i?(a?i.next=a:delete i.next,this):t?(a?t[d]=a:delete t[d],(n=t[0]||t[1])&&n===(t[1]||t[0])&&!n.length&&(r?r[f]=n:this._root=n),this):(this._root=a,this)}function Er(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function Dr(){return this._root}function Or(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function kr(e){var t=[],n,r=this._root,i,a,o;for(r&&t.push(new Cr(r,this._x0,this._x1));n=t.pop();)if(!e(r=n.node,a=n.x0,o=n.x1)&&r.length){var s=(a+o)/2;(i=r[1])&&t.push(new Cr(i,s,o)),(i=r[0])&&t.push(new Cr(i,a,s))}return this}function Ar(e){var t=[],n=[],r;for(this._root&&t.push(new Cr(this._root,this._x0,this._x1));r=t.pop();){var i=r.node;if(i.length){var a,o=r.x0,s=r.x1,c=(o+s)/2;(a=i[0])&&t.push(new Cr(a,o,c)),(a=i[1])&&t.push(new Cr(a,c,s))}n.push(r)}for(;r=n.pop();)e(r.node,r.x0,r.x1);return this}function jr(e){return e[0]}function Mr(e){return arguments.length?(this._x=e,this):this._x}function Nr(e,t){var n=new Pr(t??jr,NaN,NaN);return e==null?n:n.addAll(e)}function Pr(e,t,n){this._x=e,this._x0=t,this._x1=n,this._root=void 0}function Fr(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Ir=Nr.prototype=Pr.prototype;Ir.copy=function(){var e=new Pr(this._x,this._x0,this._x1),t=this._root,n,r;if(!t)return e;if(!t.length)return e._root=Fr(t),e;for(n=[{source:t,target:e._root=[,,]}];t=n.pop();)for(var i=0;i<2;++i)(r=t.source[i])&&(r.length?n.push({source:r,target:t.target[i]=[,,]}):t.target[i]=Fr(r));return e},Ir.add=_r,Ir.addAll=yr,Ir.cover=br,Ir.data=xr,Ir.extent=Sr,Ir.find=wr,Ir.remove=Tr,Ir.removeAll=Er,Ir.root=Dr,Ir.size=Or,Ir.visit=kr,Ir.visitAfter=Ar,Ir.x=Mr;function Lr(e){let t=+this._x.call(null,e),n=+this._y.call(null,e),r=+this._z.call(null,e);return Rr(this.cover(t,n,r),t,n,r,e)}function Rr(e,t,n,r,i){if(isNaN(t)||isNaN(n)||isNaN(r))return e;var a,o=e._root,s={data:i},c=e._x0,l=e._y0,u=e._z0,d=e._x1,f=e._y1,p=e._z1,m,h,g,_,v,y,b,x,S,C,ee;if(!o)return e._root=s,e;for(;o.length;)if((b=t>=(m=(c+d)/2))?c=m:d=m,(x=n>=(h=(l+f)/2))?l=h:f=h,(S=r>=(g=(u+p)/2))?u=g:p=g,a=o,!(o=o[C=S<<2|x<<1|b]))return a[C]=s,e;if(_=+e._x.call(null,o.data),v=+e._y.call(null,o.data),y=+e._z.call(null,o.data),t===_&&n===v&&r===y)return s.next=o,a?a[C]=s:e._root=s,e;do a=a?a[C]=Array(8):e._root=Array(8),(b=t>=(m=(c+d)/2))?c=m:d=m,(x=n>=(h=(l+f)/2))?l=h:f=h,(S=r>=(g=(u+p)/2))?u=g:p=g;while((C=S<<2|x<<1|b)==(ee=(y>=g)<<2|(v>=h)<<1|_>=m));return a[ee]=o,a[C]=s,e}function zr(e){Array.isArray(e)||(e=Array.from(e));let t=e.length,n=new Float64Array(t),r=new Float64Array(t),i=new Float64Array(t),a=1/0,o=1/0,s=1/0,c=-1/0,l=-1/0,u=-1/0;for(let d=0,f,p,m,h;d<t;++d)isNaN(p=+this._x.call(null,f=e[d]))||isNaN(m=+this._y.call(null,f))||isNaN(h=+this._z.call(null,f))||(n[d]=p,r[d]=m,i[d]=h,p<a&&(a=p),p>c&&(c=p),m<o&&(o=m),m>l&&(l=m),h<s&&(s=h),h>u&&(u=h));if(a>c||o>l||s>u)return this;this.cover(a,o,s).cover(c,l,u);for(let a=0;a<t;++a)Rr(this,n[a],r[a],i[a],e[a]);return this}function Br(e,t,n){if(isNaN(e=+e)||isNaN(t=+t)||isNaN(n=+n))return this;var r=this._x0,i=this._y0,a=this._z0,o=this._x1,s=this._y1,c=this._z1;if(isNaN(r))o=(r=Math.floor(e))+1,s=(i=Math.floor(t))+1,c=(a=Math.floor(n))+1;else{for(var l=o-r||1,u=this._root,d,f;r>e||e>=o||i>t||t>=s||a>n||n>=c;)switch(f=(n<a)<<2|(t<i)<<1|e<r,d=Array(8),d[f]=u,u=d,l*=2,f){case 0:o=r+l,s=i+l,c=a+l;break;case 1:r=o-l,s=i+l,c=a+l;break;case 2:o=r+l,i=s-l,c=a+l;break;case 3:r=o-l,i=s-l,c=a+l;break;case 4:o=r+l,s=i+l,a=c-l;break;case 5:r=o-l,s=i+l,a=c-l;break;case 6:o=r+l,i=s-l,a=c-l;break;case 7:r=o-l,i=s-l,a=c-l}this._root&&this._root.length&&(this._root=u)}return this._x0=r,this._y0=i,this._z0=a,this._x1=o,this._y1=s,this._z1=c,this}function Vr(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Hr(e){return arguments.length?this.cover(+e[0][0],+e[0][1],+e[0][2]).cover(+e[1][0],+e[1][1],+e[1][2]):isNaN(this._x0)?void 0:[[this._x0,this._y0,this._z0],[this._x1,this._y1,this._z1]]}function Ur(e,t,n,r,i,a,o){this.node=e,this.x0=t,this.y0=n,this.z0=r,this.x1=i,this.y1=a,this.z1=o}function Wr(e,t,n,r){var i,a=this._x0,o=this._y0,s=this._z0,c,l,u,d,f,p,m=this._x1,h=this._y1,g=this._z1,_=[],v=this._root,y,b;for(v&&_.push(new Ur(v,a,o,s,m,h,g)),r==null?r=1/0:(a=e-r,o=t-r,s=n-r,m=e+r,h=t+r,g=n+r,r*=r);y=_.pop();)if(!(!(v=y.node)||(c=y.x0)>m||(l=y.y0)>h||(u=y.z0)>g||(d=y.x1)<a||(f=y.y1)<o||(p=y.z1)<s)){if(v.length){var x=(c+d)/2,S=(l+f)/2,C=(u+p)/2;_.push(new Ur(v[7],x,S,C,d,f,p),new Ur(v[6],c,S,C,x,f,p),new Ur(v[5],x,l,C,d,S,p),new Ur(v[4],c,l,C,x,S,p),new Ur(v[3],x,S,u,d,f,C),new Ur(v[2],c,S,u,x,f,C),new Ur(v[1],x,l,u,d,S,C),new Ur(v[0],c,l,u,x,S,C)),(b=(n>=C)<<2|(t>=S)<<1|e>=x)&&(y=_[_.length-1],_[_.length-1]=_[_.length-1-b],_[_.length-1-b]=y)}else{var ee=e-+this._x.call(null,v.data),te=t-+this._y.call(null,v.data),w=n-+this._z.call(null,v.data),ne=ee*ee+te*te+w*w;if(ne<r){var re=Math.sqrt(r=ne);a=e-re,o=t-re,s=n-re,m=e+re,h=t+re,g=n+re,i=v.data}}}return i}var Gr=(e,t,n,r,i,a)=>Math.sqrt((e-r)**2+(t-i)**2+(n-a)**2);function Kr(e,t,n,r){let i=[],a=e-r,o=t-r,s=n-r,c=e+r,l=t+r,u=n+r;return this.visit((d,f,p,m,h,g,_)=>{if(!d.length)do{let a=d.data;Gr(e,t,n,this._x(a),this._y(a),this._z(a))<=r&&i.push(a)}while(d=d.next);return f>c||p>l||m>u||h<a||g<o||_<s}),i}function qr(e){if(isNaN(f=+this._x.call(null,e))||isNaN(p=+this._y.call(null,e))||isNaN(m=+this._z.call(null,e)))return this;var t,n=this._root,r,i,a,o=this._x0,s=this._y0,c=this._z0,l=this._x1,u=this._y1,d=this._z1,f,p,m,h,g,_,v,y,b,x,S;if(!n)return this;if(n.length)for(;;){if((v=f>=(h=(o+l)/2))?o=h:l=h,(y=p>=(g=(s+u)/2))?s=g:u=g,(b=m>=(_=(c+d)/2))?c=_:d=_,t=n,!(n=n[x=b<<2|y<<1|v]))return this;if(!n.length)break;(t[x+1&7]||t[x+2&7]||t[x+3&7]||t[x+4&7]||t[x+5&7]||t[x+6&7]||t[x+7&7])&&(r=t,S=x)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(a=n.next)&&delete n.next,i?(a?i.next=a:delete i.next,this):t?(a?t[x]=a:delete t[x],(n=t[0]||t[1]||t[2]||t[3]||t[4]||t[5]||t[6]||t[7])&&n===(t[7]||t[6]||t[5]||t[4]||t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[S]=n:this._root=n),this):(this._root=a,this)}function Jr(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function Yr(){return this._root}function Xr(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Zr(e){var t=[],n,r=this._root,i,a,o,s,c,l,u;for(r&&t.push(new Ur(r,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));n=t.pop();)if(!e(r=n.node,a=n.x0,o=n.y0,s=n.z0,c=n.x1,l=n.y1,u=n.z1)&&r.length){var d=(a+c)/2,f=(o+l)/2,p=(s+u)/2;(i=r[7])&&t.push(new Ur(i,d,f,p,c,l,u)),(i=r[6])&&t.push(new Ur(i,a,f,p,d,l,u)),(i=r[5])&&t.push(new Ur(i,d,o,p,c,f,u)),(i=r[4])&&t.push(new Ur(i,a,o,p,d,f,u)),(i=r[3])&&t.push(new Ur(i,d,f,s,c,l,p)),(i=r[2])&&t.push(new Ur(i,a,f,s,d,l,p)),(i=r[1])&&t.push(new Ur(i,d,o,s,c,f,p)),(i=r[0])&&t.push(new Ur(i,a,o,s,d,f,p))}return this}function Qr(e){var t=[],n=[],r;for(this._root&&t.push(new Ur(this._root,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));r=t.pop();){var i=r.node;if(i.length){var a,o=r.x0,s=r.y0,c=r.z0,l=r.x1,u=r.y1,d=r.z1,f=(o+l)/2,p=(s+u)/2,m=(c+d)/2;(a=i[0])&&t.push(new Ur(a,o,s,c,f,p,m)),(a=i[1])&&t.push(new Ur(a,f,s,c,l,p,m)),(a=i[2])&&t.push(new Ur(a,o,p,c,f,u,m)),(a=i[3])&&t.push(new Ur(a,f,p,c,l,u,m)),(a=i[4])&&t.push(new Ur(a,o,s,m,f,p,d)),(a=i[5])&&t.push(new Ur(a,f,s,m,l,p,d)),(a=i[6])&&t.push(new Ur(a,o,p,m,f,u,d)),(a=i[7])&&t.push(new Ur(a,f,p,m,l,u,d))}n.push(r)}for(;r=n.pop();)e(r.node,r.x0,r.y0,r.z0,r.x1,r.y1,r.z1);return this}function $r(e){return e[0]}function ei(e){return arguments.length?(this._x=e,this):this._x}function ti(e){return e[1]}function ni(e){return arguments.length?(this._y=e,this):this._y}function ri(e){return e[2]}function ii(e){return arguments.length?(this._z=e,this):this._z}function ai(e,t,n,r){var i=new oi(t??$r,n??ti,r??ri,NaN,NaN,NaN,NaN,NaN,NaN);return e==null?i:i.addAll(e)}function oi(e,t,n,r,i,a,o,s,c){this._x=e,this._y=t,this._z=n,this._x0=r,this._y0=i,this._z0=a,this._x1=o,this._y1=s,this._z1=c,this._root=void 0}function si(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var ci=ai.prototype=oi.prototype;ci.copy=function(){var e=new oi(this._x,this._y,this._z,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1),t=this._root,n,r;if(!t)return e;if(!t.length)return e._root=si(t),e;for(n=[{source:t,target:e._root=Array(8)}];t=n.pop();)for(var i=0;i<8;++i)(r=t.source[i])&&(r.length?n.push({source:r,target:t.target[i]=Array(8)}):t.target[i]=si(r));return e},ci.add=Lr,ci.addAll=zr,ci.cover=Br,ci.data=Vr,ci.extent=Hr,ci.find=Wr,ci.findAllWithinRadius=Kr,ci.remove=qr,ci.removeAll=Jr,ci.root=Yr,ci.size=Xr,ci.visit=Zr,ci.visitAfter=Qr,ci.x=ei,ci.y=ni,ci.z=ii;function li(e){return function(){return e}}function ui(e){return(e()-.5)*1e-6}function di(e){return e.index}function fi(e,t){var n=e.get(t);if(!n)throw Error(`node not found: `+t);return n}function pi(e){var t=di,n=f,r,i=li(30),a,o,s,c,l,u,d=1;e??=[];function f(e){return 1/Math.min(c[e.source.index],c[e.target.index])}function p(t){for(var n=0,i=e.length;n<d;++n)for(var o=0,c,f,p,m=0,h=0,g=0,_,v;o<i;++o)c=e[o],f=c.source,p=c.target,m=p.x+p.vx-f.x-f.vx||ui(u),s>1&&(h=p.y+p.vy-f.y-f.vy||ui(u)),s>2&&(g=p.z+p.vz-f.z-f.vz||ui(u)),_=Math.sqrt(m*m+h*h+g*g),_=(_-a[o])/_*t*r[o],m*=_,h*=_,g*=_,p.vx-=m*(v=l[o]),s>1&&(p.vy-=h*v),s>2&&(p.vz-=g*v),f.vx+=m*(v=1-v),s>1&&(f.vy+=h*v),s>2&&(f.vz+=g*v)}function m(){if(o){var n,i=o.length,s=e.length,u=new Map(o.map((e,n)=>[t(e,n,o),e])),d;for(n=0,c=Array(i);n<s;++n)d=e[n],d.index=n,typeof d.source!=`object`&&(d.source=fi(u,d.source)),typeof d.target!=`object`&&(d.target=fi(u,d.target)),c[d.source.index]=(c[d.source.index]||0)+1,c[d.target.index]=(c[d.target.index]||0)+1;for(n=0,l=Array(s);n<s;++n)d=e[n],l[n]=c[d.source.index]/(c[d.source.index]+c[d.target.index]);r=Array(s),h(),a=Array(s),g()}}function h(){if(o)for(var t=0,i=e.length;t<i;++t)r[t]=+n(e[t],t,e)}function g(){if(o)for(var t=0,n=e.length;t<n;++t)a[t]=+i(e[t],t,e)}return p.initialize=function(e,...t){o=e,u=t.find(e=>typeof e==`function`)||Math.random,s=t.find(e=>[1,2,3].includes(e))||2,m()},p.links=function(t){return arguments.length?(e=t,m(),p):e},p.id=function(e){return arguments.length?(t=e,p):t},p.iterations=function(e){return arguments.length?(d=+e,p):d},p.strength=function(e){return arguments.length?(n=typeof e==`function`?e:li(+e),h(),p):n},p.distance=function(e){return arguments.length?(i=typeof e==`function`?e:li(+e),g(),p):i},p}var mi=1664525,hi=1013904223,gi=4294967296;function _i(){let e=1;return()=>(e=(mi*e+hi)%gi)/gi}var vi=3;function yi(e){return e.x}function bi(e){return e.y}function xi(e){return e.z}var Si=10,Ci=Math.PI*(3-Math.sqrt(5)),wi=Math.PI*20/(9+Math.sqrt(221));function Ti(e,t){t||=2;var n=Math.min(vi,Math.max(1,Math.round(t))),r,i=1,a=.001,o=1-a**(1/300),s=0,c=.6,l=new Map,u=Un(p),d=Hn(`tick`,`end`),f=_i();e??=[];function p(){m(),d.call(`tick`,r),i<a&&(u.stop(),d.call(`end`,r))}function m(t){var a,u=e.length,d;t===void 0&&(t=1);for(var f=0;f<t;++f)for(i+=(s-i)*o,l.forEach(function(e){e(i)}),a=0;a<u;++a)d=e[a],d.fx==null?d.x+=d.vx*=c:(d.x=d.fx,d.vx=0),n>1&&(d.fy==null?d.y+=d.vy*=c:(d.y=d.fy,d.vy=0)),n>2&&(d.fz==null?d.z+=d.vz*=c:(d.z=d.fz,d.vz=0));return r}function h(){for(var t=0,r=e.length,i;t<r;++t){if(i=e[t],i.index=t,i.fx!=null&&(i.x=i.fx),i.fy!=null&&(i.y=i.fy),i.fz!=null&&(i.z=i.fz),isNaN(i.x)||n>1&&isNaN(i.y)||n>2&&isNaN(i.z)){var a=Si*(n>2?Math.cbrt(.5+t):n>1?Math.sqrt(.5+t):t),o=t*Ci,s=t*wi;n===1?i.x=a:n===2?(i.x=a*Math.cos(o),i.y=a*Math.sin(o)):(i.x=a*Math.sin(o)*Math.cos(s),i.y=a*Math.cos(o),i.z=a*Math.sin(o)*Math.sin(s))}(isNaN(i.vx)||n>1&&isNaN(i.vy)||n>2&&isNaN(i.vz))&&(i.vx=0,n>1&&(i.vy=0),n>2&&(i.vz=0))}}function g(t){return t.initialize&&t.initialize(e,f,n),t}return h(),r={tick:m,restart:function(){return u.restart(p),r},stop:function(){return u.stop(),r},numDimensions:function(e){return arguments.length?(n=Math.min(vi,Math.max(1,Math.round(e))),l.forEach(g),r):n},nodes:function(t){return arguments.length?(e=t,h(),l.forEach(g),r):e},alpha:function(e){return arguments.length?(i=+e,r):i},alphaMin:function(e){return arguments.length?(a=+e,r):a},alphaDecay:function(e){return arguments.length?(o=+e,r):+o},alphaTarget:function(e){return arguments.length?(s=+e,r):s},velocityDecay:function(e){return arguments.length?(c=1-e,r):1-c},randomSource:function(e){return arguments.length?(f=e,l.forEach(g),r):f},force:function(e,t){return arguments.length>1?(t==null?l.delete(e):l.set(e,g(t)),r):l.get(e)},find:function(){var t=Array.prototype.slice.call(arguments),r=t.shift()||0,i=(n>1?t.shift():null)||0,a=(n>2?t.shift():null)||0,o=t.shift()||1/0,s=0,c=e.length,l,u,d,f,p,m;for(o*=o,s=0;s<c;++s)p=e[s],l=r-p.x,u=i-(p.y||0),d=a-(p.z||0),f=l*l+u*u+d*d,f<o&&(m=p,o=f);return m},on:function(e,t){return arguments.length>1?(d.on(e,t),r):d.on(e)}}}function Ei(){var e,t,n,r,i,a=li(-30),o,s=1,c=1/0,l=.81;function u(r){var a,o=e.length,s=(t===1?Nr(e,yi):t===2?Vn(e,yi,bi):t===3?ai(e,yi,bi,xi):null).visitAfter(f);for(i=r,a=0;a<o;++a)n=e[a],s.visit(p)}function d(){if(e){var t,n=e.length,r;for(o=Array(n),t=0;t<n;++t)r=e[t],o[r.index]=+a(r,t,e)}}function f(e){var n=0,r,i,a=0,s,c,l,u,d=e.length;if(d){for(s=c=l=u=0;u<d;++u)(r=e[u])&&(i=Math.abs(r.value))&&(n+=r.value,a+=i,s+=i*(r.x||0),c+=i*(r.y||0),l+=i*(r.z||0));n*=Math.sqrt(4/d),e.x=s/a,t>1&&(e.y=c/a),t>2&&(e.z=l/a)}else{r=e,r.x=r.data.x,t>1&&(r.y=r.data.y),t>2&&(r.z=r.data.z);do n+=o[r.data.index];while(r=r.next)}e.value=n}function p(e,a,u,d,f){if(!e.value)return!0;var p=[u,d,f][t-1],m=e.x-n.x,h=t>1?e.y-n.y:0,g=t>2?e.z-n.z:0,_=p-a,v=m*m+h*h+g*g;if(_*_/l<v)return v<c&&(m===0&&(m=ui(r),v+=m*m),t>1&&h===0&&(h=ui(r),v+=h*h),t>2&&g===0&&(g=ui(r),v+=g*g),v<s&&(v=Math.sqrt(s*v)),n.vx+=m*e.value*i/v,t>1&&(n.vy+=h*e.value*i/v),t>2&&(n.vz+=g*e.value*i/v)),!0;if(!(e.length||v>=c)){(e.data!==n||e.next)&&(m===0&&(m=ui(r),v+=m*m),t>1&&h===0&&(h=ui(r),v+=h*h),t>2&&g===0&&(g=ui(r),v+=g*g),v<s&&(v=Math.sqrt(s*v)));do e.data!==n&&(_=o[e.data.index]*i/v,n.vx+=m*_,t>1&&(n.vy+=h*_),t>2&&(n.vz+=g*_));while(e=e.next)}}return u.initialize=function(n,...i){e=n,r=i.find(e=>typeof e==`function`)||Math.random,t=i.find(e=>[1,2,3].includes(e))||2,d()},u.strength=function(e){return arguments.length?(a=typeof e==`function`?e:li(+e),d(),u):a},u.distanceMin=function(e){return arguments.length?(s=e*e,u):Math.sqrt(s)},u.distanceMax=function(e){return arguments.length?(c=e*e,u):Math.sqrt(c)},u.theta=function(e){return arguments.length?(l=e*e,u):Math.sqrt(l)},u}function Di(e,t,n,r){var i,a,o=li(.1),s,c;typeof e!=`function`&&(e=li(+e)),t??=0,n??=0,r??=0;function l(e){for(var o=0,l=i.length;o<l;++o){var u=i[o],d=u.x-t||1e-6,f=(u.y||0)-n||1e-6,p=(u.z||0)-r||1e-6,m=Math.sqrt(d*d+f*f+p*p),h=(c[o]-m)*s[o]*e/m;u.vx+=d*h,a>1&&(u.vy+=f*h),a>2&&(u.vz+=p*h)}}function u(){if(i){var t,n=i.length;for(s=Array(n),c=Array(n),t=0;t<n;++t)c[t]=+e(i[t],t,i),s[t]=isNaN(c[t])?0:+o(i[t],t,i)}}return l.initialize=function(e,...t){i=e,a=t.find(e=>[1,2,3].includes(e))||2,u()},l.strength=function(e){return arguments.length?(o=typeof e==`function`?e:li(+e),u(),l):o},l.radius=function(t){return arguments.length?(e=typeof t==`function`?t:li(+t),u(),l):e},l.x=function(e){return arguments.length?(t=+e,l):t},l.y=function(e){return arguments.length?(n=+e,l):n},l.z=function(e){return arguments.length?(r=+e,l):r},l}function Oi(e){Ai(e);let t=ki(e);return e.on=t.on,e.off=t.off,e.fire=t.fire,e}function ki(e){let t=Object.create(null);return{on:function(n,r,i){if(typeof r!=`function`)throw Error(`callback is expected to be a function`);let a=t[n];return a||=t[n]=[],a.push({callback:r,ctx:i}),e},off:function(n,r){if(n===void 0)return t=Object.create(null),e;if(t[n]){if(typeof r!=`function`)delete t[n];else{let e=t[n];for(let t=0;t<e.length;++t)e[t].callback===r&&e.splice(t,1)}}return e},fire:function(n){let r=t[n];if(!r)return e;let i;arguments.length>1&&(i=Array.prototype.slice.call(arguments,1));for(let e=0;e<r.length;++e){let t=r[e];t.callback.apply(t.ctx,i)}return e}}}function Ai(e){if(!e)throw Error(`Eventify cannot use falsy object as events subject`);let t=[`on`,`fire`,`off`];for(let n=0;n<t.length;++n)if(e.hasOwnProperty(t[n]))throw Error(`Subject cannot be eventified, since it already has property '`+t[n]+`'`)}var ji=Mi;function Mi(e){if(e||={},`uniqueLinkId`in e&&(console.warn("ngraph.graph: Starting from version 0.14 `uniqueLinkId` is deprecated.\nUse `multigraph` option instead\n",`
|
|
1
|
+
import{r as e,t}from"./rolldown-runtime-XKyaHtl9.js";import{AmbientLight as n,ArrayCamera as r,Box3 as i,BoxGeometry as a,BufferAttribute as o,BufferGeometry as s,ByteType as c,ClampToEdgeWrapping as l,Color as u,ColorManagement as d,Compatibility as f,ConeGeometry as p,Controls as m,CubeCamera as h,CubeDepthTexture as g,CubeTexture as _,CubicBezierCurve3 as v,CylinderGeometry as y,DataArrayTexture as b,DataTexture as x,DecrementStencilOp as S,DecrementWrapStencilOp as C,DepthFormat as ee,DepthStencilFormat as te,DepthTexture as w,DirectionalLight as ne,DynamicDrawUsage as re,EllipseCurve as ie,EventDispatcher as ae,Float16BufferAttribute as oe,Float32BufferAttribute as se,FloatType as ce,FramebufferTexture as le,Frustum as ue,FrustumArray as de,GridHelper as fe,Group as pe,HalfFloatType as me,HemisphereLight as he,IncrementStencilOp as ge,IncrementWrapStencilOp as _e,InstancedBufferAttribute as ve,InstancedInterleavedBuffer as ye,IntType as be,InterleavedBuffer as xe,InterleavedBufferAttribute as Se,InvertStencilOp as Ce,KeepStencilOp as we,LightProbe as Te,Line as Ee,LineBasicMaterial as De,LineDashedMaterial as Oe,LinearFilter as ke,LinearMipmapLinearFilter as Ae,LinearMipmapNearestFilter as je,LinearSRGBColorSpace as Me,LinearTransfer as Ne,MOUSE as Pe,Material as Fe,MathUtils as Ie,Matrix2 as Le,Matrix3 as Re,Matrix4 as ze,Mesh as Be,MeshBasicMaterial as Ve,MeshLambertMaterial as He,MeshMatcapMaterial as Ue,MeshNormalMaterial as We,MeshPhongMaterial as Ge,MeshPhysicalMaterial as Ke,MeshStandardMaterial as qe,MeshToonMaterial as Je,MirroredRepeatWrapping as Ye,NearestFilter as Xe,NearestMipmapLinearFilter as Ze,NearestMipmapNearestFilter as Qe,OrthographicCamera as $e,PerspectiveCamera as et,Plane as tt,PlaneGeometry as nt,PointLight as rt,PointsMaterial as it,QuadraticBezierCurve3 as at,Quaternion as ot,R11_EAC_Format as st,RED_GREEN_RGTC2_Format as ct,RED_RGTC1_Format as lt,RG11_EAC_Format as ut,RGBAFormat as dt,RGBAIntegerFormat as ft,RGBA_ASTC_10x10_Format as pt,RGBA_ASTC_10x5_Format as mt,RGBA_ASTC_10x6_Format as ht,RGBA_ASTC_10x8_Format as gt,RGBA_ASTC_12x10_Format as _t,RGBA_ASTC_12x12_Format as vt,RGBA_ASTC_4x4_Format as yt,RGBA_ASTC_5x4_Format as bt,RGBA_ASTC_5x5_Format as xt,RGBA_ASTC_6x5_Format as St,RGBA_ASTC_6x6_Format as Ct,RGBA_ASTC_8x5_Format as wt,RGBA_ASTC_8x6_Format as Tt,RGBA_ASTC_8x8_Format as Et,RGBA_BPTC_Format as Dt,RGBA_ETC2_EAC_Format as Ot,RGBA_S3TC_DXT1_Format as kt,RGBA_S3TC_DXT3_Format as At,RGBA_S3TC_DXT5_Format as jt,RGBFormat as Mt,RGBIntegerFormat as Nt,RGB_BPTC_SIGNED_Format as Pt,RGB_BPTC_UNSIGNED_Format as Ft,RGB_ETC1_Format as It,RGB_ETC2_Format as Lt,RGB_S3TC_DXT1_Format as Rt,RGFormat as zt,RGIntegerFormat as Bt,Ray as Vt,Raycaster as Ht,RectAreaLight as Ut,RedFormat as Wt,RedIntegerFormat as Gt,RenderObjectRefreshType as Kt,RenderTarget as qt,RepeatWrapping as Jt,ReplaceStencilOp as Yt,SIGNED_R11_EAC_Format as Xt,SIGNED_RED_GREEN_RGTC2_Format as Zt,SIGNED_RED_RGTC1_Format as Qt,SIGNED_RG11_EAC_Format as $t,SRGBColorSpace as en,Scene as tn,ShaderMaterial as nn,ShadowMaterial as rn,ShortType as an,Sphere as on,SphereGeometry as sn,Spherical as cn,SpotLight as ln,SpriteMaterial as un,StaticDrawUsage as dn,TOUCH as fn,Texture as pn,TextureLoader as mn,Timer as hn,TimestampQuery as gn,TubeGeometry as _n,Uint16BufferAttribute as vn,Uint32BufferAttribute as yn,UniformsUtils as bn,UnsignedByteType as xn,UnsignedInt101111Type as Sn,UnsignedInt248Type as Cn,UnsignedInt5999Type as wn,UnsignedIntType as Tn,UnsignedShortType as En,Vector2 as T,Vector3 as E,Vector4 as Dn,WebGLCoordinateSystem as On,WebGLRenderTarget as kn,WebGLRenderer as An,WebGPUCoordinateSystem as jn,WebXRController as Mn,a as Nn,createCanvasElement as Pn,error as D,i as Fn,log as In,n as Ln,r as Rn,t as zn,warn as O,warnOnce as Bn}from"./three.module-D480w7q4.js";import{g as Vn,h as Hn,m as Un}from"./RelationGraph-BQl3M4zd.js";import{a as Wn,i as Gn,n as Kn,o as qn,r as Jn,s as Yn}from"./Product-0LXndvp-.js";var Xn=new tt,Zn=new T,Qn=new E,$n=new T,er=new T,tr=new E,nr=new E,rr=new ze,ir=new E,ar=new E,or=null,sr=null,cr=[],lr={NONE:-1,PAN:0,ROTATE:1},ur=class extends m{constructor(e,t,n=null){super(t,n),this.objects=e,this.recursive=!0,this.transformGroup=!1,this.rotateSpeed=1,this.raycaster=new Ht,this.mouseButtons={LEFT:Pe.PAN,MIDDLE:Pe.PAN,RIGHT:Pe.ROTATE},this.touches={ONE:fn.PAN},this._onPointerMove=dr.bind(this),this._onPointerDown=fr.bind(this),this._onPointerCancel=pr.bind(this),this._onContextMenu=mr.bind(this),n!==null&&this.connect(n)}connect(e){super.connect(e),this.domElement.addEventListener(`pointermove`,this._onPointerMove),this.domElement.addEventListener(`pointerdown`,this._onPointerDown),this.domElement.addEventListener(`pointerup`,this._onPointerCancel),this.domElement.addEventListener(`pointerleave`,this._onPointerCancel),this.domElement.addEventListener(`contextmenu`,this._onContextMenu),this.domElement.style.touchAction=`none`}disconnect(){this.domElement.removeEventListener(`pointermove`,this._onPointerMove),this.domElement.removeEventListener(`pointerdown`,this._onPointerDown),this.domElement.removeEventListener(`pointerup`,this._onPointerCancel),this.domElement.removeEventListener(`pointerleave`,this._onPointerCancel),this.domElement.removeEventListener(`contextmenu`,this._onContextMenu),this.domElement.style.touchAction=``,this.domElement.style.cursor=``}dispose(){this.disconnect()}_updatePointer(e){let t=this.domElement.getBoundingClientRect();Zn.x=(e.clientX-t.left)/t.width*2-1,Zn.y=-(e.clientY-t.top)/t.height*2+1}_updateState(e){let t;if(e.pointerType===`touch`)t=this.touches.ONE;else switch(e.button){case 0:t=this.mouseButtons.LEFT;break;case 1:t=this.mouseButtons.MIDDLE;break;case 2:t=this.mouseButtons.RIGHT;break;default:t=null}switch(t){case Pe.PAN:case fn.PAN:this.state=lr.PAN;break;case Pe.ROTATE:case fn.ROTATE:this.state=lr.ROTATE;break;default:this.state=lr.NONE}}};function dr(e){let t=this.object,n=this.domElement,r=this.raycaster;if(this.enabled!==!1){if(this._updatePointer(e),r.setFromCamera(Zn,t),or)this.state===lr.PAN?r.ray.intersectPlane(Xn,tr)&&(or.position.copy(tr.sub(Qn).applyMatrix4(rr)),this.dispatchEvent({type:`drag`,object:or})):this.state===lr.ROTATE&&($n.subVectors(Zn,er).multiplyScalar(this.rotateSpeed),or.rotateOnWorldAxis(ir,$n.x),or.rotateOnWorldAxis(ar.normalize(),-$n.y),this.dispatchEvent({type:`drag`,object:or})),er.copy(Zn);else if(e.pointerType===`mouse`||e.pointerType===`pen`){if(cr.length=0,r.setFromCamera(Zn,t),r.intersectObjects(this.objects,this.recursive,cr),cr.length>0){let e=cr[0].object;Xn.setFromNormalAndCoplanarPoint(t.getWorldDirection(Xn.normal),nr.setFromMatrixPosition(e.matrixWorld)),sr!==e&&sr!==null&&(this.dispatchEvent({type:`hoveroff`,object:sr}),n.style.cursor=`auto`,sr=null),sr!==e&&(this.dispatchEvent({type:`hoveron`,object:e}),n.style.cursor=`pointer`,sr=e)}else sr!==null&&(this.dispatchEvent({type:`hoveroff`,object:sr}),n.style.cursor=`auto`,sr=null)}er.copy(Zn)}}function fr(e){let t=this.object,n=this.domElement,r=this.raycaster;this.enabled!==!1&&(this._updatePointer(e),this._updateState(e),cr.length=0,r.setFromCamera(Zn,t),r.intersectObjects(this.objects,this.recursive,cr),cr.length>0&&(or=this.transformGroup===!0?hr(cr[0].object):cr[0].object,Xn.setFromNormalAndCoplanarPoint(t.getWorldDirection(Xn.normal),nr.setFromMatrixPosition(or.matrixWorld)),r.ray.intersectPlane(Xn,tr)&&(this.state===lr.PAN?(rr.copy(or.parent.matrixWorld).invert(),Qn.copy(tr).sub(nr.setFromMatrixPosition(or.matrixWorld)),n.style.cursor=`move`,this.dispatchEvent({type:`dragstart`,object:or})):this.state===lr.ROTATE&&(ir.set(0,1,0).applyQuaternion(t.quaternion).normalize(),ar.set(1,0,0).applyQuaternion(t.quaternion).normalize(),n.style.cursor=`move`,this.dispatchEvent({type:`dragstart`,object:or})))),er.copy(Zn))}function pr(){this.enabled!==!1&&(or&&=(this.dispatchEvent({type:`dragend`,object:or}),null),this.domElement.style.cursor=sr?`pointer`:`auto`,this.state=lr.NONE)}function mr(e){this.enabled!==!1&&e.preventDefault()}function hr(e,t=null){return e.isGroup&&(t=e),e.parent===null?t:hr(e.parent,t)}function gr(e,t,n){var r,i=1;e??=0,t??=0,n??=0;function a(){var a,o=r.length,s,c=0,l=0,u=0;for(a=0;a<o;++a)s=r[a],c+=s.x||0,l+=s.y||0,u+=s.z||0;for(c=(c/o-e)*i,l=(l/o-t)*i,u=(u/o-n)*i,a=0;a<o;++a)s=r[a],c&&(s.x-=c),l&&(s.y-=l),u&&(s.z-=u)}return a.initialize=function(e){r=e},a.x=function(t){return arguments.length?(e=+t,a):e},a.y=function(e){return arguments.length?(t=+e,a):t},a.z=function(e){return arguments.length?(n=+e,a):n},a.strength=function(e){return arguments.length?(i=+e,a):i},a}function _r(e){let t=+this._x.call(null,e);return vr(this.cover(t),t,e)}function vr(e,t,n){if(isNaN(t))return e;var r,i=e._root,a={data:n},o=e._x0,s=e._x1,c,l,u,d,f;if(!i)return e._root=a,e;for(;i.length;)if((u=t>=(c=(o+s)/2))?o=c:s=c,r=i,!(i=i[d=+u]))return r[d]=a,e;if(l=+e._x.call(null,i.data),t===l)return a.next=i,r?r[d]=a:e._root=a,e;do r=r?r[d]=[,,]:e._root=[,,],(u=t>=(c=(o+s)/2))?o=c:s=c;while((d=+u)==(f=+(l>=c)));return r[f]=i,r[d]=a,e}function yr(e){Array.isArray(e)||(e=Array.from(e));let t=e.length,n=new Float64Array(t),r=1/0,i=-1/0;for(let a=0,o;a<t;++a)isNaN(o=+this._x.call(null,e[a]))||(n[a]=o,o<r&&(r=o),o>i&&(i=o));if(r>i)return this;this.cover(r).cover(i);for(let r=0;r<t;++r)vr(this,n[r],e[r]);return this}function br(e){if(isNaN(e=+e))return this;var t=this._x0,n=this._x1;if(isNaN(t))n=(t=Math.floor(e))+1;else{for(var r=n-t||1,i=this._root,a,o;t>e||e>=n;)switch(o=+(e<t),a=[,,],a[o]=i,i=a,r*=2,o){case 0:n=t+r;break;case 1:t=n-r}this._root&&this._root.length&&(this._root=i)}return this._x0=t,this._x1=n,this}function xr(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Sr(e){return arguments.length?this.cover(+e[0][0]).cover(+e[1][0]):isNaN(this._x0)?void 0:[[this._x0],[this._x1]]}function Cr(e,t,n){this.node=e,this.x0=t,this.x1=n}function wr(e,t){var n,r=this._x0,i,a,o=this._x1,s=[],c=this._root,l,u;for(c&&s.push(new Cr(c,r,o)),t==null?t=1/0:(r=e-t,o=e+t);l=s.pop();)if(!(!(c=l.node)||(i=l.x0)>o||(a=l.x1)<r)){if(c.length){var d=(i+a)/2;s.push(new Cr(c[1],d,a),new Cr(c[0],i,d)),(u=+(e>=d))&&(l=s[s.length-1],s[s.length-1]=s[s.length-1-u],s[s.length-1-u]=l)}else{var f=Math.abs(e-+this._x.call(null,c.data));f<t&&(t=f,r=e-f,o=e+f,n=c.data)}}return n}function Tr(e){if(isNaN(c=+this._x.call(null,e)))return this;var t,n=this._root,r,i,a,o=this._x0,s=this._x1,c,l,u,d,f;if(!n)return this;if(n.length)for(;;){if((u=c>=(l=(o+s)/2))?o=l:s=l,t=n,!(n=n[d=+u]))return this;if(!n.length)break;t[d+1&1]&&(r=t,f=d)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(a=n.next)&&delete n.next,i?(a?i.next=a:delete i.next,this):t?(a?t[d]=a:delete t[d],(n=t[0]||t[1])&&n===(t[1]||t[0])&&!n.length&&(r?r[f]=n:this._root=n),this):(this._root=a,this)}function Er(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function Dr(){return this._root}function Or(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function kr(e){var t=[],n,r=this._root,i,a,o;for(r&&t.push(new Cr(r,this._x0,this._x1));n=t.pop();)if(!e(r=n.node,a=n.x0,o=n.x1)&&r.length){var s=(a+o)/2;(i=r[1])&&t.push(new Cr(i,s,o)),(i=r[0])&&t.push(new Cr(i,a,s))}return this}function Ar(e){var t=[],n=[],r;for(this._root&&t.push(new Cr(this._root,this._x0,this._x1));r=t.pop();){var i=r.node;if(i.length){var a,o=r.x0,s=r.x1,c=(o+s)/2;(a=i[0])&&t.push(new Cr(a,o,c)),(a=i[1])&&t.push(new Cr(a,c,s))}n.push(r)}for(;r=n.pop();)e(r.node,r.x0,r.x1);return this}function jr(e){return e[0]}function Mr(e){return arguments.length?(this._x=e,this):this._x}function Nr(e,t){var n=new Pr(t??jr,NaN,NaN);return e==null?n:n.addAll(e)}function Pr(e,t,n){this._x=e,this._x0=t,this._x1=n,this._root=void 0}function Fr(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Ir=Nr.prototype=Pr.prototype;Ir.copy=function(){var e=new Pr(this._x,this._x0,this._x1),t=this._root,n,r;if(!t)return e;if(!t.length)return e._root=Fr(t),e;for(n=[{source:t,target:e._root=[,,]}];t=n.pop();)for(var i=0;i<2;++i)(r=t.source[i])&&(r.length?n.push({source:r,target:t.target[i]=[,,]}):t.target[i]=Fr(r));return e},Ir.add=_r,Ir.addAll=yr,Ir.cover=br,Ir.data=xr,Ir.extent=Sr,Ir.find=wr,Ir.remove=Tr,Ir.removeAll=Er,Ir.root=Dr,Ir.size=Or,Ir.visit=kr,Ir.visitAfter=Ar,Ir.x=Mr;function Lr(e){let t=+this._x.call(null,e),n=+this._y.call(null,e),r=+this._z.call(null,e);return Rr(this.cover(t,n,r),t,n,r,e)}function Rr(e,t,n,r,i){if(isNaN(t)||isNaN(n)||isNaN(r))return e;var a,o=e._root,s={data:i},c=e._x0,l=e._y0,u=e._z0,d=e._x1,f=e._y1,p=e._z1,m,h,g,_,v,y,b,x,S,C,ee;if(!o)return e._root=s,e;for(;o.length;)if((b=t>=(m=(c+d)/2))?c=m:d=m,(x=n>=(h=(l+f)/2))?l=h:f=h,(S=r>=(g=(u+p)/2))?u=g:p=g,a=o,!(o=o[C=S<<2|x<<1|b]))return a[C]=s,e;if(_=+e._x.call(null,o.data),v=+e._y.call(null,o.data),y=+e._z.call(null,o.data),t===_&&n===v&&r===y)return s.next=o,a?a[C]=s:e._root=s,e;do a=a?a[C]=Array(8):e._root=Array(8),(b=t>=(m=(c+d)/2))?c=m:d=m,(x=n>=(h=(l+f)/2))?l=h:f=h,(S=r>=(g=(u+p)/2))?u=g:p=g;while((C=S<<2|x<<1|b)==(ee=(y>=g)<<2|(v>=h)<<1|_>=m));return a[ee]=o,a[C]=s,e}function zr(e){Array.isArray(e)||(e=Array.from(e));let t=e.length,n=new Float64Array(t),r=new Float64Array(t),i=new Float64Array(t),a=1/0,o=1/0,s=1/0,c=-1/0,l=-1/0,u=-1/0;for(let d=0,f,p,m,h;d<t;++d)isNaN(p=+this._x.call(null,f=e[d]))||isNaN(m=+this._y.call(null,f))||isNaN(h=+this._z.call(null,f))||(n[d]=p,r[d]=m,i[d]=h,p<a&&(a=p),p>c&&(c=p),m<o&&(o=m),m>l&&(l=m),h<s&&(s=h),h>u&&(u=h));if(a>c||o>l||s>u)return this;this.cover(a,o,s).cover(c,l,u);for(let a=0;a<t;++a)Rr(this,n[a],r[a],i[a],e[a]);return this}function Br(e,t,n){if(isNaN(e=+e)||isNaN(t=+t)||isNaN(n=+n))return this;var r=this._x0,i=this._y0,a=this._z0,o=this._x1,s=this._y1,c=this._z1;if(isNaN(r))o=(r=Math.floor(e))+1,s=(i=Math.floor(t))+1,c=(a=Math.floor(n))+1;else{for(var l=o-r||1,u=this._root,d,f;r>e||e>=o||i>t||t>=s||a>n||n>=c;)switch(f=(n<a)<<2|(t<i)<<1|e<r,d=Array(8),d[f]=u,u=d,l*=2,f){case 0:o=r+l,s=i+l,c=a+l;break;case 1:r=o-l,s=i+l,c=a+l;break;case 2:o=r+l,i=s-l,c=a+l;break;case 3:r=o-l,i=s-l,c=a+l;break;case 4:o=r+l,s=i+l,a=c-l;break;case 5:r=o-l,s=i+l,a=c-l;break;case 6:o=r+l,i=s-l,a=c-l;break;case 7:r=o-l,i=s-l,a=c-l}this._root&&this._root.length&&(this._root=u)}return this._x0=r,this._y0=i,this._z0=a,this._x1=o,this._y1=s,this._z1=c,this}function Vr(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Hr(e){return arguments.length?this.cover(+e[0][0],+e[0][1],+e[0][2]).cover(+e[1][0],+e[1][1],+e[1][2]):isNaN(this._x0)?void 0:[[this._x0,this._y0,this._z0],[this._x1,this._y1,this._z1]]}function Ur(e,t,n,r,i,a,o){this.node=e,this.x0=t,this.y0=n,this.z0=r,this.x1=i,this.y1=a,this.z1=o}function Wr(e,t,n,r){var i,a=this._x0,o=this._y0,s=this._z0,c,l,u,d,f,p,m=this._x1,h=this._y1,g=this._z1,_=[],v=this._root,y,b;for(v&&_.push(new Ur(v,a,o,s,m,h,g)),r==null?r=1/0:(a=e-r,o=t-r,s=n-r,m=e+r,h=t+r,g=n+r,r*=r);y=_.pop();)if(!(!(v=y.node)||(c=y.x0)>m||(l=y.y0)>h||(u=y.z0)>g||(d=y.x1)<a||(f=y.y1)<o||(p=y.z1)<s)){if(v.length){var x=(c+d)/2,S=(l+f)/2,C=(u+p)/2;_.push(new Ur(v[7],x,S,C,d,f,p),new Ur(v[6],c,S,C,x,f,p),new Ur(v[5],x,l,C,d,S,p),new Ur(v[4],c,l,C,x,S,p),new Ur(v[3],x,S,u,d,f,C),new Ur(v[2],c,S,u,x,f,C),new Ur(v[1],x,l,u,d,S,C),new Ur(v[0],c,l,u,x,S,C)),(b=(n>=C)<<2|(t>=S)<<1|e>=x)&&(y=_[_.length-1],_[_.length-1]=_[_.length-1-b],_[_.length-1-b]=y)}else{var ee=e-+this._x.call(null,v.data),te=t-+this._y.call(null,v.data),w=n-+this._z.call(null,v.data),ne=ee*ee+te*te+w*w;if(ne<r){var re=Math.sqrt(r=ne);a=e-re,o=t-re,s=n-re,m=e+re,h=t+re,g=n+re,i=v.data}}}return i}var Gr=(e,t,n,r,i,a)=>Math.sqrt((e-r)**2+(t-i)**2+(n-a)**2);function Kr(e,t,n,r){let i=[],a=e-r,o=t-r,s=n-r,c=e+r,l=t+r,u=n+r;return this.visit((d,f,p,m,h,g,_)=>{if(!d.length)do{let a=d.data;Gr(e,t,n,this._x(a),this._y(a),this._z(a))<=r&&i.push(a)}while(d=d.next);return f>c||p>l||m>u||h<a||g<o||_<s}),i}function qr(e){if(isNaN(f=+this._x.call(null,e))||isNaN(p=+this._y.call(null,e))||isNaN(m=+this._z.call(null,e)))return this;var t,n=this._root,r,i,a,o=this._x0,s=this._y0,c=this._z0,l=this._x1,u=this._y1,d=this._z1,f,p,m,h,g,_,v,y,b,x,S;if(!n)return this;if(n.length)for(;;){if((v=f>=(h=(o+l)/2))?o=h:l=h,(y=p>=(g=(s+u)/2))?s=g:u=g,(b=m>=(_=(c+d)/2))?c=_:d=_,t=n,!(n=n[x=b<<2|y<<1|v]))return this;if(!n.length)break;(t[x+1&7]||t[x+2&7]||t[x+3&7]||t[x+4&7]||t[x+5&7]||t[x+6&7]||t[x+7&7])&&(r=t,S=x)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(a=n.next)&&delete n.next,i?(a?i.next=a:delete i.next,this):t?(a?t[x]=a:delete t[x],(n=t[0]||t[1]||t[2]||t[3]||t[4]||t[5]||t[6]||t[7])&&n===(t[7]||t[6]||t[5]||t[4]||t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[S]=n:this._root=n),this):(this._root=a,this)}function Jr(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function Yr(){return this._root}function Xr(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Zr(e){var t=[],n,r=this._root,i,a,o,s,c,l,u;for(r&&t.push(new Ur(r,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));n=t.pop();)if(!e(r=n.node,a=n.x0,o=n.y0,s=n.z0,c=n.x1,l=n.y1,u=n.z1)&&r.length){var d=(a+c)/2,f=(o+l)/2,p=(s+u)/2;(i=r[7])&&t.push(new Ur(i,d,f,p,c,l,u)),(i=r[6])&&t.push(new Ur(i,a,f,p,d,l,u)),(i=r[5])&&t.push(new Ur(i,d,o,p,c,f,u)),(i=r[4])&&t.push(new Ur(i,a,o,p,d,f,u)),(i=r[3])&&t.push(new Ur(i,d,f,s,c,l,p)),(i=r[2])&&t.push(new Ur(i,a,f,s,d,l,p)),(i=r[1])&&t.push(new Ur(i,d,o,s,c,f,p)),(i=r[0])&&t.push(new Ur(i,a,o,s,d,f,p))}return this}function Qr(e){var t=[],n=[],r;for(this._root&&t.push(new Ur(this._root,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));r=t.pop();){var i=r.node;if(i.length){var a,o=r.x0,s=r.y0,c=r.z0,l=r.x1,u=r.y1,d=r.z1,f=(o+l)/2,p=(s+u)/2,m=(c+d)/2;(a=i[0])&&t.push(new Ur(a,o,s,c,f,p,m)),(a=i[1])&&t.push(new Ur(a,f,s,c,l,p,m)),(a=i[2])&&t.push(new Ur(a,o,p,c,f,u,m)),(a=i[3])&&t.push(new Ur(a,f,p,c,l,u,m)),(a=i[4])&&t.push(new Ur(a,o,s,m,f,p,d)),(a=i[5])&&t.push(new Ur(a,f,s,m,l,p,d)),(a=i[6])&&t.push(new Ur(a,o,p,m,f,u,d)),(a=i[7])&&t.push(new Ur(a,f,p,m,l,u,d))}n.push(r)}for(;r=n.pop();)e(r.node,r.x0,r.y0,r.z0,r.x1,r.y1,r.z1);return this}function $r(e){return e[0]}function ei(e){return arguments.length?(this._x=e,this):this._x}function ti(e){return e[1]}function ni(e){return arguments.length?(this._y=e,this):this._y}function ri(e){return e[2]}function ii(e){return arguments.length?(this._z=e,this):this._z}function ai(e,t,n,r){var i=new oi(t??$r,n??ti,r??ri,NaN,NaN,NaN,NaN,NaN,NaN);return e==null?i:i.addAll(e)}function oi(e,t,n,r,i,a,o,s,c){this._x=e,this._y=t,this._z=n,this._x0=r,this._y0=i,this._z0=a,this._x1=o,this._y1=s,this._z1=c,this._root=void 0}function si(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var ci=ai.prototype=oi.prototype;ci.copy=function(){var e=new oi(this._x,this._y,this._z,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1),t=this._root,n,r;if(!t)return e;if(!t.length)return e._root=si(t),e;for(n=[{source:t,target:e._root=Array(8)}];t=n.pop();)for(var i=0;i<8;++i)(r=t.source[i])&&(r.length?n.push({source:r,target:t.target[i]=Array(8)}):t.target[i]=si(r));return e},ci.add=Lr,ci.addAll=zr,ci.cover=Br,ci.data=Vr,ci.extent=Hr,ci.find=Wr,ci.findAllWithinRadius=Kr,ci.remove=qr,ci.removeAll=Jr,ci.root=Yr,ci.size=Xr,ci.visit=Zr,ci.visitAfter=Qr,ci.x=ei,ci.y=ni,ci.z=ii;function li(e){return function(){return e}}function ui(e){return(e()-.5)*1e-6}function di(e){return e.index}function fi(e,t){var n=e.get(t);if(!n)throw Error(`node not found: `+t);return n}function pi(e){var t=di,n=f,r,i=li(30),a,o,s,c,l,u,d=1;e??=[];function f(e){return 1/Math.min(c[e.source.index],c[e.target.index])}function p(t){for(var n=0,i=e.length;n<d;++n)for(var o=0,c,f,p,m=0,h=0,g=0,_,v;o<i;++o)c=e[o],f=c.source,p=c.target,m=p.x+p.vx-f.x-f.vx||ui(u),s>1&&(h=p.y+p.vy-f.y-f.vy||ui(u)),s>2&&(g=p.z+p.vz-f.z-f.vz||ui(u)),_=Math.sqrt(m*m+h*h+g*g),_=(_-a[o])/_*t*r[o],m*=_,h*=_,g*=_,p.vx-=m*(v=l[o]),s>1&&(p.vy-=h*v),s>2&&(p.vz-=g*v),f.vx+=m*(v=1-v),s>1&&(f.vy+=h*v),s>2&&(f.vz+=g*v)}function m(){if(o){var n,i=o.length,s=e.length,u=new Map(o.map((e,n)=>[t(e,n,o),e])),d;for(n=0,c=Array(i);n<s;++n)d=e[n],d.index=n,typeof d.source!=`object`&&(d.source=fi(u,d.source)),typeof d.target!=`object`&&(d.target=fi(u,d.target)),c[d.source.index]=(c[d.source.index]||0)+1,c[d.target.index]=(c[d.target.index]||0)+1;for(n=0,l=Array(s);n<s;++n)d=e[n],l[n]=c[d.source.index]/(c[d.source.index]+c[d.target.index]);r=Array(s),h(),a=Array(s),g()}}function h(){if(o)for(var t=0,i=e.length;t<i;++t)r[t]=+n(e[t],t,e)}function g(){if(o)for(var t=0,n=e.length;t<n;++t)a[t]=+i(e[t],t,e)}return p.initialize=function(e,...t){o=e,u=t.find(e=>typeof e==`function`)||Math.random,s=t.find(e=>[1,2,3].includes(e))||2,m()},p.links=function(t){return arguments.length?(e=t,m(),p):e},p.id=function(e){return arguments.length?(t=e,p):t},p.iterations=function(e){return arguments.length?(d=+e,p):d},p.strength=function(e){return arguments.length?(n=typeof e==`function`?e:li(+e),h(),p):n},p.distance=function(e){return arguments.length?(i=typeof e==`function`?e:li(+e),g(),p):i},p}var mi=1664525,hi=1013904223,gi=4294967296;function _i(){let e=1;return()=>(e=(mi*e+hi)%gi)/gi}var vi=3;function yi(e){return e.x}function bi(e){return e.y}function xi(e){return e.z}var Si=10,Ci=Math.PI*(3-Math.sqrt(5)),wi=Math.PI*20/(9+Math.sqrt(221));function Ti(e,t){t||=2;var n=Math.min(vi,Math.max(1,Math.round(t))),r,i=1,a=.001,o=1-a**(1/300),s=0,c=.6,l=new Map,u=Un(p),d=Hn(`tick`,`end`),f=_i();e??=[];function p(){m(),d.call(`tick`,r),i<a&&(u.stop(),d.call(`end`,r))}function m(t){var a,u=e.length,d;t===void 0&&(t=1);for(var f=0;f<t;++f)for(i+=(s-i)*o,l.forEach(function(e){e(i)}),a=0;a<u;++a)d=e[a],d.fx==null?d.x+=d.vx*=c:(d.x=d.fx,d.vx=0),n>1&&(d.fy==null?d.y+=d.vy*=c:(d.y=d.fy,d.vy=0)),n>2&&(d.fz==null?d.z+=d.vz*=c:(d.z=d.fz,d.vz=0));return r}function h(){for(var t=0,r=e.length,i;t<r;++t){if(i=e[t],i.index=t,i.fx!=null&&(i.x=i.fx),i.fy!=null&&(i.y=i.fy),i.fz!=null&&(i.z=i.fz),isNaN(i.x)||n>1&&isNaN(i.y)||n>2&&isNaN(i.z)){var a=Si*(n>2?Math.cbrt(.5+t):n>1?Math.sqrt(.5+t):t),o=t*Ci,s=t*wi;n===1?i.x=a:n===2?(i.x=a*Math.cos(o),i.y=a*Math.sin(o)):(i.x=a*Math.sin(o)*Math.cos(s),i.y=a*Math.cos(o),i.z=a*Math.sin(o)*Math.sin(s))}(isNaN(i.vx)||n>1&&isNaN(i.vy)||n>2&&isNaN(i.vz))&&(i.vx=0,n>1&&(i.vy=0),n>2&&(i.vz=0))}}function g(t){return t.initialize&&t.initialize(e,f,n),t}return h(),r={tick:m,restart:function(){return u.restart(p),r},stop:function(){return u.stop(),r},numDimensions:function(e){return arguments.length?(n=Math.min(vi,Math.max(1,Math.round(e))),l.forEach(g),r):n},nodes:function(t){return arguments.length?(e=t,h(),l.forEach(g),r):e},alpha:function(e){return arguments.length?(i=+e,r):i},alphaMin:function(e){return arguments.length?(a=+e,r):a},alphaDecay:function(e){return arguments.length?(o=+e,r):+o},alphaTarget:function(e){return arguments.length?(s=+e,r):s},velocityDecay:function(e){return arguments.length?(c=1-e,r):1-c},randomSource:function(e){return arguments.length?(f=e,l.forEach(g),r):f},force:function(e,t){return arguments.length>1?(t==null?l.delete(e):l.set(e,g(t)),r):l.get(e)},find:function(){var t=Array.prototype.slice.call(arguments),r=t.shift()||0,i=(n>1?t.shift():null)||0,a=(n>2?t.shift():null)||0,o=t.shift()||1/0,s=0,c=e.length,l,u,d,f,p,m;for(o*=o,s=0;s<c;++s)p=e[s],l=r-p.x,u=i-(p.y||0),d=a-(p.z||0),f=l*l+u*u+d*d,f<o&&(m=p,o=f);return m},on:function(e,t){return arguments.length>1?(d.on(e,t),r):d.on(e)}}}function Ei(){var e,t,n,r,i,a=li(-30),o,s=1,c=1/0,l=.81;function u(r){var a,o=e.length,s=(t===1?Nr(e,yi):t===2?Vn(e,yi,bi):t===3?ai(e,yi,bi,xi):null).visitAfter(f);for(i=r,a=0;a<o;++a)n=e[a],s.visit(p)}function d(){if(e){var t,n=e.length,r;for(o=Array(n),t=0;t<n;++t)r=e[t],o[r.index]=+a(r,t,e)}}function f(e){var n=0,r,i,a=0,s,c,l,u,d=e.length;if(d){for(s=c=l=u=0;u<d;++u)(r=e[u])&&(i=Math.abs(r.value))&&(n+=r.value,a+=i,s+=i*(r.x||0),c+=i*(r.y||0),l+=i*(r.z||0));n*=Math.sqrt(4/d),e.x=s/a,t>1&&(e.y=c/a),t>2&&(e.z=l/a)}else{r=e,r.x=r.data.x,t>1&&(r.y=r.data.y),t>2&&(r.z=r.data.z);do n+=o[r.data.index];while(r=r.next)}e.value=n}function p(e,a,u,d,f){if(!e.value)return!0;var p=[u,d,f][t-1],m=e.x-n.x,h=t>1?e.y-n.y:0,g=t>2?e.z-n.z:0,_=p-a,v=m*m+h*h+g*g;if(_*_/l<v)return v<c&&(m===0&&(m=ui(r),v+=m*m),t>1&&h===0&&(h=ui(r),v+=h*h),t>2&&g===0&&(g=ui(r),v+=g*g),v<s&&(v=Math.sqrt(s*v)),n.vx+=m*e.value*i/v,t>1&&(n.vy+=h*e.value*i/v),t>2&&(n.vz+=g*e.value*i/v)),!0;if(!(e.length||v>=c)){(e.data!==n||e.next)&&(m===0&&(m=ui(r),v+=m*m),t>1&&h===0&&(h=ui(r),v+=h*h),t>2&&g===0&&(g=ui(r),v+=g*g),v<s&&(v=Math.sqrt(s*v)));do e.data!==n&&(_=o[e.data.index]*i/v,n.vx+=m*_,t>1&&(n.vy+=h*_),t>2&&(n.vz+=g*_));while(e=e.next)}}return u.initialize=function(n,...i){e=n,r=i.find(e=>typeof e==`function`)||Math.random,t=i.find(e=>[1,2,3].includes(e))||2,d()},u.strength=function(e){return arguments.length?(a=typeof e==`function`?e:li(+e),d(),u):a},u.distanceMin=function(e){return arguments.length?(s=e*e,u):Math.sqrt(s)},u.distanceMax=function(e){return arguments.length?(c=e*e,u):Math.sqrt(c)},u.theta=function(e){return arguments.length?(l=e*e,u):Math.sqrt(l)},u}function Di(e,t,n,r){var i,a,o=li(.1),s,c;typeof e!=`function`&&(e=li(+e)),t??=0,n??=0,r??=0;function l(e){for(var o=0,l=i.length;o<l;++o){var u=i[o],d=u.x-t||1e-6,f=(u.y||0)-n||1e-6,p=(u.z||0)-r||1e-6,m=Math.sqrt(d*d+f*f+p*p),h=(c[o]-m)*s[o]*e/m;u.vx+=d*h,a>1&&(u.vy+=f*h),a>2&&(u.vz+=p*h)}}function u(){if(i){var t,n=i.length;for(s=Array(n),c=Array(n),t=0;t<n;++t)c[t]=+e(i[t],t,i),s[t]=isNaN(c[t])?0:+o(i[t],t,i)}}return l.initialize=function(e,...t){i=e,a=t.find(e=>[1,2,3].includes(e))||2,u()},l.strength=function(e){return arguments.length?(o=typeof e==`function`?e:li(+e),u(),l):o},l.radius=function(t){return arguments.length?(e=typeof t==`function`?t:li(+t),u(),l):e},l.x=function(e){return arguments.length?(t=+e,l):t},l.y=function(e){return arguments.length?(n=+e,l):n},l.z=function(e){return arguments.length?(r=+e,l):r},l}function Oi(e){Ai(e);let t=ki(e);return e.on=t.on,e.off=t.off,e.fire=t.fire,e}function ki(e){let t=Object.create(null);return{on:function(n,r,i){if(typeof r!=`function`)throw Error(`callback is expected to be a function`);let a=t[n];return a||=t[n]=[],a.push({callback:r,ctx:i}),e},off:function(n,r){if(n===void 0)return t=Object.create(null),e;if(t[n]){if(typeof r!=`function`)delete t[n];else{let e=t[n];for(let t=0;t<e.length;++t)e[t].callback===r&&e.splice(t,1)}}return e},fire:function(n){let r=t[n];if(!r)return e;let i;arguments.length>1&&(i=Array.prototype.slice.call(arguments,1));for(let e=0;e<r.length;++e){let t=r[e];t.callback.apply(t.ctx,i)}return e}}}function Ai(e){if(!e)throw Error(`Eventify cannot use falsy object as events subject`);let t=[`on`,`fire`,`off`];for(let n=0;n<t.length;++n)if(e.hasOwnProperty(t[n]))throw Error(`Subject cannot be eventified, since it already has property '`+t[n]+`'`)}var ji=Mi;function Mi(e){if(e||={},`uniqueLinkId`in e&&(console.warn("ngraph.graph: Starting from version 0.14 `uniqueLinkId` is deprecated.\nUse `multigraph` option instead\n",`
|
|
2
2
|
`,`Note: there is also change in default behavior: From now on each graph
|
|
3
3
|
is considered to be not a multigraph by default (each edge is unique).`),e.multigraph=e.uniqueLinkId),e.multigraph===void 0&&(e.multigraph=!1),typeof Map!=`function`)throw Error("ngraph.graph requires `Map` to be defined. Please polyfill it before using ngraph");var t=new Map,n=new Map,r={},i=0,a=e.multigraph?b:y,o=[],s=ce,c=ce,l=ce,u=ce,d={version:20,addNode:h,addLink:v,removeLink:ee,removeNode:_,getNode:g,getNodeCount:x,getLinkCount:S,getEdgeCount:S,getLinksCount:S,getNodesCount:x,getLinks:C,forEachNode:de,forEachLinkedNode:ae,forEachLink:ie,beginUpdate:l,endUpdate:u,clear:re,hasLink:w,hasNode:g,getLink:w,getLinkById:ne};return Oi(d),f(),d;function f(){var e=d.on;d.on=t;function t(){return d.beginUpdate=l=le,d.endUpdate=u=ue,s=p,c=m,d.on=e,e.apply(d,arguments)}}function p(e,t){o.push({link:e,changeType:t})}function m(e,t){o.push({node:e,changeType:t})}function h(e,n){if(e===void 0)throw Error(`Invalid node identifier`);l();var r=g(e);return r?(r.data=n,c(r,`update`)):(r=new Ni(e,n),c(r,`add`)),t.set(e,r),u(),r}function g(e){return t.get(e)}function _(e){var n=g(e);if(!n)return!1;l();var r=n.links;return r&&(r.forEach(te),n.links=null),t.delete(e),c(n,`remove`),u(),!0}function v(e,t,r){l();var i=g(e)||h(e),o=g(t)||h(t),c=a(e,t,r),d=n.has(c.id);return n.set(c.id,c),Pi(i,c),e!==t&&Pi(o,c),s(c,d?`update`:`add`),u(),c}function y(e,t,r){var i=Ii(e,t),a=n.get(i);return a?(a.data=r,a):new Fi(e,t,r,i)}function b(e,t,n){var i=Ii(e,t),a=r.hasOwnProperty(i);if(a||w(e,t)){a||(r[i]=0);var o=`@`+ ++r[i];i=Ii(e+o,t+o)}return new Fi(e,t,n,i)}function x(){return t.size}function S(){return n.size}function C(e){var t=g(e);return t?t.links:null}function ee(e,t){return t!==void 0&&(e=w(e,t)),te(e)}function te(e){if(!e||!n.get(e.id))return!1;l(),n.delete(e.id);var t=g(e.fromId),r=g(e.toId);return t&&t.links.delete(e),r&&r.links.delete(e),s(e,`remove`),u(),!0}function w(e,t){if(e!==void 0&&t!==void 0)return n.get(Ii(e,t))}function ne(e){if(e!==void 0)return n.get(e)}function re(){l(),de(function(e){_(e.id)}),u()}function ie(e){if(typeof e==`function`)for(var t=n.values(),r=t.next();!r.done;){if(e(r.value))return!0;r=t.next()}}function ae(e,t,n){var r=g(e);if(r&&r.links&&typeof t==`function`)return n?se(r.links,e,t):oe(r.links,e,t)}function oe(e,n,r){for(var i,a=e.values(),o=a.next();!o.done;){var s=o.value,c=s.fromId===n?s.toId:s.fromId;if(i=r(t.get(c),s),i)return!0;o=a.next()}}function se(e,n,r){for(var i,a=e.values(),o=a.next();!o.done;){var s=o.value;if(s.fromId===n&&(i=r(t.get(s.toId),s),i))return!0;o=a.next()}}function ce(){}function le(){i+=1}function ue(){--i,i===0&&o.length>0&&(d.fire(`changed`,o),o.length=0)}function de(e){if(typeof e!=`function`)throw Error(`Function is expected to iterate over graph nodes. You passed `+e);for(var n=t.values(),r=n.next();!r.done;){if(e(r.value))return!0;r=n.next()}}}function Ni(e,t){this.id=e,this.links=null,this.data=t}function Pi(e,t){e.links?e.links.add(t):e.links=new Set([t])}function Fi(e,t,n,r){this.fromId=e,this.toId=t,this.data=n,this.id=r}function Ii(e,t){return e.toString()+`👉 `+t.toString()}var Li=t(((e,t)=>{t.exports=function(e){return e===0?`x`:e===1?`y`:e===2?`z`:`c`+(e+1)}})),Ri=t(((e,t)=>{var n=Li();t.exports=function(e){return t;function t(t,r){let i=r&&r.indent||0,a=r&&r.join!==void 0?r.join:`
|
|
4
4
|
`,o=Array(i+1).join(` `),s=[];for(let r=0;r<e;++r){let e=n(r),i=r===0?``:o;s.push(i+t.replace(/{var}/g,e))}return s.join(a)}}})),zi=t(((e,t)=>{var n=Ri();t.exports=r,t.exports.generateCreateBodyFunctionBody=i,t.exports.getVectorCode=o,t.exports.getBodyCode=a;function r(e,t){let n=i(e,t),{Body:r}=Function(n)();return r}function i(e,t){return`
|