@iwsdk/core 0.2.2 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +94 -0
- package/dist/asset/loaders/hdr-texture-loader.d.ts +1 -1
- package/dist/asset/loaders/hdr-texture-loader.d.ts.map +1 -1
- package/dist/asset/loaders/hdr-texture-loader.js +4 -4
- package/dist/asset/loaders/hdr-texture-loader.js.map +1 -1
- package/dist/audio/audio-system.d.ts +6 -2
- package/dist/audio/audio-system.d.ts.map +1 -1
- package/dist/audio/audio-system.js +1 -0
- package/dist/audio/audio-system.js.map +1 -1
- package/dist/audio/audio.d.ts +3 -1
- package/dist/audio/audio.d.ts.map +1 -1
- package/dist/audio/audio.js +8 -2
- package/dist/audio/audio.js.map +1 -1
- package/dist/camera/camera-source.js +1 -0
- package/dist/camera/camera-source.js.map +1 -1
- package/dist/camera/camera-system.d.ts.map +1 -1
- package/dist/camera/camera-system.js +1 -0
- package/dist/camera/camera-system.js.map +1 -1
- package/dist/camera/camera-utils.d.ts.map +1 -1
- package/dist/camera/camera-utils.js.map +1 -1
- package/dist/depth/depth-occludable.d.ts +48 -0
- package/dist/depth/depth-occludable.d.ts.map +1 -0
- package/dist/depth/depth-occludable.js +48 -0
- package/dist/depth/depth-occludable.js.map +1 -0
- package/dist/depth/depth-sensing-system.d.ts +164 -0
- package/dist/depth/depth-sensing-system.d.ts.map +1 -0
- package/dist/depth/depth-sensing-system.js +453 -0
- package/dist/depth/depth-sensing-system.js.map +1 -0
- package/dist/depth/depth-textures.d.ts +53 -0
- package/dist/depth/depth-textures.d.ts.map +1 -0
- package/dist/depth/depth-textures.js +114 -0
- package/dist/depth/depth-textures.js.map +1 -0
- package/dist/depth/index.d.ts +10 -0
- package/dist/depth/index.d.ts.map +1 -0
- package/dist/depth/occlusion/preprocessing-pass.d.ts +52 -0
- package/dist/depth/occlusion/preprocessing-pass.d.ts.map +1 -0
- package/dist/depth/occlusion/preprocessing-pass.js +105 -0
- package/dist/depth/occlusion/preprocessing-pass.js.map +1 -0
- package/dist/depth/occlusion/preprocessing-shader.glsl.d.ts +22 -0
- package/dist/depth/occlusion/preprocessing-shader.glsl.d.ts.map +1 -0
- package/dist/depth/occlusion/preprocessing-shader.glsl.js +115 -0
- package/dist/depth/occlusion/preprocessing-shader.glsl.js.map +1 -0
- package/dist/ecs/entity.d.ts +17 -1
- package/dist/ecs/entity.d.ts.map +1 -1
- package/dist/ecs/entity.js +7 -1
- package/dist/ecs/entity.js.map +1 -1
- package/dist/ecs/world.d.ts +12 -0
- package/dist/ecs/world.d.ts.map +1 -1
- package/dist/ecs/world.js +47 -3
- package/dist/ecs/world.js.map +1 -1
- package/dist/environment/dome-gradient.js +1 -0
- package/dist/environment/dome-gradient.js.map +1 -1
- package/dist/environment/dome-texture.d.ts +3 -1
- package/dist/environment/dome-texture.d.ts.map +1 -1
- package/dist/environment/dome-texture.js +7 -1
- package/dist/environment/dome-texture.js.map +1 -1
- package/dist/environment/environment-system.d.ts +8 -0
- package/dist/environment/environment-system.d.ts.map +1 -1
- package/dist/environment/environment-system.js +78 -2
- package/dist/environment/environment-system.js.map +1 -1
- package/dist/environment/ibl-gradient.js +1 -0
- package/dist/environment/ibl-gradient.js.map +1 -1
- package/dist/environment/ibl-texture.d.ts +3 -1
- package/dist/environment/ibl-texture.d.ts.map +1 -1
- package/dist/environment/ibl-texture.js +7 -1
- package/dist/environment/ibl-texture.js.map +1 -1
- package/dist/environment-raycast/environment-raycast.d.ts +136 -0
- package/dist/environment-raycast/environment-raycast.d.ts.map +1 -0
- package/dist/environment-raycast/environment-raycast.js +333 -0
- package/dist/environment-raycast/environment-raycast.js.map +1 -0
- package/dist/environment-raycast/index.d.ts +9 -0
- package/dist/environment-raycast/index.d.ts.map +1 -0
- package/dist/environment-raycast/raycast-target.d.ts +114 -0
- package/dist/environment-raycast/raycast-target.d.ts.map +1 -0
- package/dist/environment-raycast/raycast-target.js +84 -0
- package/dist/environment-raycast/raycast-target.js.map +1 -0
- package/dist/grab/distance-grabbable.d.ts +27 -2
- package/dist/grab/distance-grabbable.d.ts.map +1 -1
- package/dist/grab/distance-grabbable.js +25 -2
- package/dist/grab/distance-grabbable.js.map +1 -1
- package/dist/grab/grab-system.d.ts +106 -61
- package/dist/grab/grab-system.d.ts.map +1 -1
- package/dist/grab/grab-system.js +61 -10
- package/dist/grab/grab-system.js.map +1 -1
- package/dist/grab/handles.d.ts +14 -4
- package/dist/grab/handles.d.ts.map +1 -1
- package/dist/grab/handles.js +45 -18
- package/dist/grab/handles.js.map +1 -1
- package/dist/grab/index.d.ts +0 -1
- package/dist/grab/index.d.ts.map +1 -1
- package/dist/grab/index.js +0 -2
- package/dist/grab/index.js.map +1 -1
- package/dist/grab/one-hand-grabbable.js +1 -0
- package/dist/grab/one-hand-grabbable.js.map +1 -1
- package/dist/grab/two-hands-grabbable.js +1 -0
- package/dist/grab/two-hands-grabbable.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/init/world-initializer.d.ts +13 -1
- package/dist/init/world-initializer.d.ts.map +1 -1
- package/dist/init/world-initializer.js +78 -18
- package/dist/init/world-initializer.js.map +1 -1
- package/dist/init/xr.d.ts +1 -0
- package/dist/init/xr.d.ts.map +1 -1
- package/dist/init/xr.js +6 -0
- package/dist/init/xr.js.map +1 -1
- package/dist/input/input-system.d.ts +409 -5
- package/dist/input/input-system.d.ts.map +1 -1
- package/dist/input/input-system.js +166 -32
- package/dist/input/input-system.js.map +1 -1
- package/dist/input/state-tags.d.ts +32 -15
- package/dist/input/state-tags.d.ts.map +1 -1
- package/dist/input/state-tags.js +34 -16
- package/dist/input/state-tags.js.map +1 -1
- package/dist/level/level-entity-creator.js +1 -0
- package/dist/level/level-entity-creator.js.map +1 -1
- package/dist/level/level-root.js +1 -0
- package/dist/level/level-root.js.map +1 -1
- package/dist/level/level-system.js +1 -0
- package/dist/level/level-system.js.map +1 -1
- package/dist/level/level-tag.js +1 -0
- package/dist/level/level-tag.js.map +1 -1
- package/dist/locomotion/locomotion.d.ts +10 -0
- package/dist/locomotion/locomotion.d.ts.map +1 -1
- package/dist/locomotion/locomotion.js +17 -1
- package/dist/locomotion/locomotion.js.map +1 -1
- package/dist/locomotion/slide.d.ts +10 -0
- package/dist/locomotion/slide.d.ts.map +1 -1
- package/dist/locomotion/slide.js +6 -2
- package/dist/locomotion/slide.js.map +1 -1
- package/dist/locomotion/teleport.js +1 -0
- package/dist/locomotion/teleport.js.map +1 -1
- package/dist/mcp/ecs-debug-tools.d.ts +167 -0
- package/dist/mcp/ecs-debug-tools.d.ts.map +1 -0
- package/dist/mcp/ecs-debug-tools.js +602 -0
- package/dist/mcp/ecs-debug-tools.js.map +1 -0
- package/dist/mcp/index.d.ts +10 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/mcp-runtime.d.ts +31 -0
- package/dist/mcp/mcp-runtime.d.ts.map +1 -0
- package/dist/mcp/mcp-runtime.js +85 -0
- package/dist/mcp/mcp-runtime.js.map +1 -0
- package/dist/mcp/scene-tools.d.ts +41 -0
- package/dist/mcp/scene-tools.d.ts.map +1 -0
- package/dist/mcp/scene-tools.js +95 -0
- package/dist/mcp/scene-tools.js.map +1 -0
- package/dist/physics/physics-system.d.ts +1 -1
- package/dist/physics/physics-system.d.ts.map +1 -1
- package/dist/physics/physics-system.js +9 -4
- package/dist/physics/physics-system.js.map +1 -1
- package/dist/physics/utils.d.ts.map +1 -1
- package/dist/physics/utils.js +1 -1
- package/dist/scene-understanding/anchor.js +1 -0
- package/dist/scene-understanding/anchor.js.map +1 -1
- package/dist/scene-understanding/mesh.js +1 -0
- package/dist/scene-understanding/mesh.js.map +1 -1
- package/dist/scene-understanding/plane.js +1 -0
- package/dist/scene-understanding/plane.js.map +1 -1
- package/dist/scene-understanding/scene-understanding-system.d.ts +0 -39
- package/dist/scene-understanding/scene-understanding-system.d.ts.map +1 -1
- package/dist/scene-understanding/scene-understanding-system.js +10 -2
- package/dist/scene-understanding/scene-understanding-system.js.map +1 -1
- package/dist/transform/index.d.ts +2 -0
- package/dist/transform/index.d.ts.map +1 -1
- package/dist/transform/synced-euler.d.ts +62 -0
- package/dist/transform/synced-euler.d.ts.map +1 -0
- package/dist/transform/synced-euler.js +212 -0
- package/dist/transform/synced-euler.js.map +1 -0
- package/dist/transform/synced-quaternion.d.ts +11 -0
- package/dist/transform/synced-quaternion.d.ts.map +1 -1
- package/dist/transform/synced-quaternion.js +29 -0
- package/dist/transform/synced-quaternion.js.map +1 -1
- package/dist/transform/transform-utils.d.ts +24 -0
- package/dist/transform/transform-utils.d.ts.map +1 -0
- package/dist/transform/transform-utils.js +53 -0
- package/dist/transform/transform-utils.js.map +1 -0
- package/dist/transform/transform.d.ts.map +1 -1
- package/dist/transform/transform.js +19 -2
- package/dist/transform/transform.js.map +1 -1
- package/dist/ui/follow.js +1 -0
- package/dist/ui/follow.js.map +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/screenspace.js +1 -0
- package/dist/ui/screenspace.js.map +1 -1
- package/dist/ui/ui.d.ts.map +1 -1
- package/dist/ui/ui.js +2 -8
- package/dist/ui/ui.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/visibility/visibility.d.ts.map +1 -1
- package/dist/visibility/visibility.js +4 -1
- package/dist/visibility/visibility.js.map +1 -1
- package/package.json +16 -9
- package/dist/node_modules/.pnpm/@pmndrs_uikitml@0.1.7_super-three@0.177.0/node_modules/@pmndrs/uikitml/dist/interpreter/html.js +0 -128
- package/dist/node_modules/.pnpm/@pmndrs_uikitml@0.1.7_super-three@0.177.0/node_modules/@pmndrs/uikitml/dist/interpreter/html.js.map +0 -1
- package/dist/node_modules/.pnpm/@pmndrs_uikitml@0.1.7_super-three@0.177.0/node_modules/@pmndrs/uikitml/dist/interpreter/index.js +0 -161
- package/dist/node_modules/.pnpm/@pmndrs_uikitml@0.1.7_super-three@0.177.0/node_modules/@pmndrs/uikitml/dist/interpreter/index.js.map +0 -1
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.js +0 -66
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.js.map +0 -1
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.js +0 -162
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.js.map +0 -1
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.js +0 -519
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.js.map +0 -1
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.js +0 -15
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.js.map +0 -1
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.js +0 -32
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.js.map +0 -1
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.js +0 -10
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.js.map +0 -1
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.js +0 -41
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.js.map +0 -1
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.js +0 -35
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.js.map +0 -1
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.js +0 -24
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.js.map +0 -1
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.js +0 -92
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.js.map +0 -1
- package/dist/node_modules/.pnpm/super-three@0.177.0/node_modules/super-three/examples/jsm/libs/fflate.module.js +0 -382
- package/dist/node_modules/.pnpm/super-three@0.177.0/node_modules/super-three/examples/jsm/libs/fflate.module.js.map +0 -1
- package/dist/node_modules/.pnpm/super-three@0.177.0/node_modules/super-three/examples/jsm/loaders/EXRLoader.js +0 -2587
- package/dist/node_modules/.pnpm/super-three@0.177.0/node_modules/super-three/examples/jsm/loaders/EXRLoader.js.map +0 -1
- package/dist/node_modules/.pnpm/super-three@0.177.0/node_modules/super-three/examples/jsm/loaders/RGBELoader.js +0 -477
- package/dist/node_modules/.pnpm/super-three@0.177.0/node_modules/super-three/examples/jsm/loaders/RGBELoader.js.map +0 -1
- package/dist/node_modules/.pnpm/super-three@0.177.0/node_modules/super-three/src/math/MathUtils.js +0 -17
- package/dist/node_modules/.pnpm/super-three@0.177.0/node_modules/super-three/src/math/MathUtils.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screenspace.js","sources":["../../src/ui/screenspace.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"screenspace.js","sources":["../../src/ui/screenspace.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAAA;;;;;AAKG;AAOH;;;;;;;;;;;;;;;;;;;;;;;;;AAyBG;AACI,MAAM,WAAW,GAAG,eAAe,CACxC,aAAa,EACb;;IAEE,MAAM,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE;;IAE/C,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE;;IAE9C,GAAG,EAAE,EAAE,IAA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,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC;AACpC,QAAA,OAAO,CAAC,KAAK,CAAC,QAAQ,GAAG,UAAU;QACnC,OAAO,CAAC,KAAK,CAAC,KAAK,GAAG,CAAA,EAAG,OAAO,IAAI;QACpC,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,CAAA,EAAG,QAAQ,IAAI;AACtC,QAAA,OAAO,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG;AACvB,QAAA,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM;AAC7B,QAAA,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI;AACzB,QAAA,OAAO,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK;AAC3B,QAAA,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC;QAC9B,MAAM,WAAW,GAAG,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC;AACpD,QAAA,MAAM,MAAM,GAAG;AACb,YAAA,GAAG,EAAE,UAAU,CAAC,WAAW,CAAC,GAAG,CAAC;AAChC,YAAA,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC;SACnC;AACD,QAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC;AACpC,QAAA,OAAO,MAAM;IACf;AACD;;;;"}
|
package/dist/ui/ui.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/ui/ui.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AASH,OAAO,EAAE,KAAK,EAAyC,MAAM,iBAAiB,CAAC;AAI/E;;;GAGG;AACH,eAAO,MAAM,eAAe;IAC1B,oDAAoD;;IAEpD,uBAAuB;;IAEvB,sBAAsB;;CAEd,CAAC;AAEX;;;GAGG;AACH,MAAM,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/ui/ui.ts"],"names":[],"mappings":"AA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EAAsE;IACtE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAgC5B;;;OAGG;YACW,SAAS;IA8CvB,oFAAoF;IACpF,OAAO,CAAC,YAAY;IAiBpB,0CAA0C;IAC1C,OAAO,IAAI,IAAI;CAGhB"}
|
package/dist/ui/ui.js
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import { forwardHtmlEvents } from '@pmndrs/pointer-events';
|
|
2
2
|
import { reversePainterSortStable, setPreferredColorScheme } from '@pmndrs/uikit';
|
|
3
|
-
import '
|
|
4
|
-
import '../node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.js';
|
|
5
|
-
import '../node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.js';
|
|
6
|
-
import '../node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.js';
|
|
7
|
-
import '../node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.js';
|
|
8
|
-
import '../node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.js';
|
|
9
|
-
import '../node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.js';
|
|
10
|
-
import { interpret } from '../node_modules/.pnpm/@pmndrs_uikitml@0.1.7_super-three@0.177.0/node_modules/@pmndrs/uikitml/dist/interpreter/index.js';
|
|
3
|
+
import { interpret } from '@pmndrs/uikitml';
|
|
11
4
|
import { createSystem } from '../ecs/system.js';
|
|
12
5
|
import '../ecs/world.js';
|
|
13
6
|
import { createComponent, Types } from 'elics';
|
|
7
|
+
import '../ecs/entity.js';
|
|
14
8
|
import '../ecs/component-registry.js';
|
|
15
9
|
import '../runtime/three.js';
|
|
16
10
|
import { UIKitDocument } from './document.js';
|
package/dist/ui/ui.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.js","sources":["../../src/ui/ui.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
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CAAA,+CAAA,EAAkD,MAAM,CAAC,KAAK,CAAA,CAAA,CAAG,EACjE,KAAK,CACN;QACH;IACF;;AAGQ,IAAA,YAAY,CAAC,MAAc,EAAA;;AAEjC,QAAA,MAAM,QAAQ,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAkB;QAE3E,IAAI,QAAQ,EAAE;;AAEZ,YAAA,IAAI,MAAM,CAAC,QAAQ,EAAE;AACnB,gBAAA,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC;YAClC;;AAGA,YAAA,IAAI,OAAO,QAAQ,CAAC,OAAO,KAAK,UAAU,EAAE;gBAC1C,QAAQ,CAAC,OAAO,EAAE;YACpB;QACF;IACF;;IAGA,OAAO,GAAA;;AACL,QAAA,CAAA,EAAA,GAAA,IAAI,CAAC,WAAW,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,OAAO,EAAE;IAC7B;AACD;;;;"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.3.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visibility.d.ts","sourceRoot":"","sources":["../../src/visibility/visibility.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,EAAyC,MAAM,iBAAiB,CAAC;AAE/E,eAAO,MAAM,UAAU;;;;;
|
|
1
|
+
{"version":3,"file":"visibility.d.ts","sourceRoot":"","sources":["../../src/visibility/visibility.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,EAAyC,MAAM,iBAAiB,CAAC;AAE/E,eAAO,MAAM,UAAU;;;;;EAQtB,CAAC;;;;;;;;;;;;;;;;;;;;AAiCF,qBAAa,gBAAiB,SAAQ,qBAEpC;IACA,IAAI,IAAI,IAAI;CAIb"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createSystem } from '../ecs/system.js';
|
|
2
2
|
import '../ecs/world.js';
|
|
3
3
|
import { createComponent, Types } from 'elics';
|
|
4
|
+
import '../ecs/entity.js';
|
|
4
5
|
import '../ecs/component-registry.js';
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -11,7 +12,9 @@ import '../ecs/component-registry.js';
|
|
|
11
12
|
*/
|
|
12
13
|
const Visibility = createComponent('Visibility', {
|
|
13
14
|
isVisible: { type: Types.Boolean, default: true },
|
|
14
|
-
}, 'Component to control if an entity object is visible'
|
|
15
|
+
}, 'Component to control if an entity object is visible',
|
|
16
|
+
// @ts-ignore - 4th argument is parsed by vite-plugin-metaspatial for XML generation
|
|
17
|
+
{ hideInEditor: true });
|
|
15
18
|
function attachToEntity(entity) {
|
|
16
19
|
const object3D = entity.object3D;
|
|
17
20
|
if (!object3D) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visibility.js","sources":["../../src/visibility/visibility.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"visibility.js","sources":["../../src/visibility/visibility.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAAA;;;;;AAKG;AAII,MAAM,UAAU,GAAG,eAAe,CACvC,YAAY,EACZ;IACE,SAAS,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;AAClD,CAAA,EACD,qDAAqD;AACrD;AACA,EAAE,YAAY,EAAE,IAAI,EAAE;AAGxB,SAAS,cAAc,CAAC,MAAc,EAAA;AACpC,IAAA,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ;IAChC,IAAI,CAAC,QAAQ,EAAE;QACb;IACF;AAEA,IAAA,MAAM,CAAC,cAAc,CAAC,QAAQ,EAAE,SAAS,EAAE;QACzC,GAAG,EAAE,MAAK;YACR,OAAO,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC;QACjD,CAAC;AACD,QAAA,GAAG,EAAE,CAAC,KAAc,KAAI;YACtB,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,WAAW,EAAE,KAAK,CAAC;QACjD,CAAC;AACD,QAAA,UAAU,EAAE,IAAI;AAChB,QAAA,YAAY,EAAE,IAAI;AACnB,KAAA,CAAC;AACJ;AAEA,SAAS,gBAAgB,CAAC,MAAc,EAAA;AACtC,IAAA,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ;IAChC,IAAI,CAAC,QAAQ,EAAE;QACb;IACF;AAEA,IAAA,MAAM,CAAC,cAAc,CAAC,QAAQ,EAAE,SAAS,EAAE;QACzC,KAAK,EAAE,QAAQ,CAAC,OAAO;AACvB,QAAA,UAAU,EAAE,IAAI;AAChB,QAAA,YAAY,EAAE,IAAI;AACnB,KAAA,CAAC;AACJ;AAEM,MAAO,gBAAiB,SAAQ,YAAY,CAAC;AACjD,IAAA,UAAU,EAAE,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE;CACvC,CAAC,CAAA;IACA,IAAI,GAAA;QACF,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,SAAS,EAAE,cAAc,CAAC;QAC5D,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,YAAY,EAAE,gBAAgB,CAAC;IACnE;AACD;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iwsdk/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Javascript WebXR Runtime for Emulation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,23 +24,30 @@
|
|
|
24
24
|
"@babylonjs/havok": "^1.3.10",
|
|
25
25
|
"@pmndrs/handle": "^6.6.16",
|
|
26
26
|
"@pmndrs/pointer-events": "^6.6.22",
|
|
27
|
-
"@pmndrs/uikit": "^1.0.
|
|
28
|
-
"@pmndrs/uikitml": "^0.1.
|
|
27
|
+
"@pmndrs/uikit": "^1.0.62",
|
|
28
|
+
"@pmndrs/uikitml": "^0.1.12",
|
|
29
29
|
"@preact/signals-core": "^1.11.0",
|
|
30
|
-
"elics": "^3.
|
|
31
|
-
"three": "
|
|
30
|
+
"elics": "^3.4.1",
|
|
31
|
+
"three": "*",
|
|
32
32
|
"three-mesh-bvh": "^0.9.1",
|
|
33
|
-
"@iwsdk/
|
|
34
|
-
"@iwsdk/
|
|
35
|
-
"@iwsdk/xr-input": "0.
|
|
33
|
+
"@iwsdk/locomotor": "0.3.1",
|
|
34
|
+
"@iwsdk/glxf": "0.3.1",
|
|
35
|
+
"@iwsdk/xr-input": "0.3.1"
|
|
36
36
|
},
|
|
37
37
|
"engines": {
|
|
38
38
|
"node": ">=20.19.0"
|
|
39
39
|
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"vitest": "^4.0.0",
|
|
42
|
+
"@vitest/coverage-v8": "^4.0.0"
|
|
43
|
+
},
|
|
40
44
|
"scripts": {
|
|
41
45
|
"prebuild": "node -p \"'export const VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/version.ts",
|
|
42
46
|
"build": "rollup -c",
|
|
43
47
|
"doc": "typedoc",
|
|
44
|
-
"format": "prettier --write ./src/**/*"
|
|
48
|
+
"format": "prettier --write ./src/**/*",
|
|
49
|
+
"test": "vitest run",
|
|
50
|
+
"test:watch": "vitest",
|
|
51
|
+
"test:coverage": "vitest run --coverage"
|
|
45
52
|
}
|
|
46
53
|
}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { Input, Container } from '@pmndrs/uikit';
|
|
2
|
-
|
|
3
|
-
const htmlKit = {
|
|
4
|
-
h1: class H1 extends Container {
|
|
5
|
-
constructor(inputProperties, initialClasses, config) {
|
|
6
|
-
super(inputProperties, initialClasses, {
|
|
7
|
-
...config,
|
|
8
|
-
defaultOverrides: {
|
|
9
|
-
fontSize: 24,
|
|
10
|
-
fontWeight: 'bold',
|
|
11
|
-
...config?.defaultOverrides,
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
h2: class H2 extends Container {
|
|
17
|
-
constructor(inputProperties, initialClasses, config) {
|
|
18
|
-
super(inputProperties, initialClasses, {
|
|
19
|
-
...config,
|
|
20
|
-
defaultOverrides: {
|
|
21
|
-
fontSize: 24,
|
|
22
|
-
fontWeight: 'bold',
|
|
23
|
-
...config?.defaultOverrides,
|
|
24
|
-
},
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
h3: class H3 extends Container {
|
|
29
|
-
constructor(inputProperties, initialClasses, config) {
|
|
30
|
-
super(inputProperties, initialClasses, {
|
|
31
|
-
...config,
|
|
32
|
-
defaultOverrides: {
|
|
33
|
-
fontSize: 18.72,
|
|
34
|
-
fontWeight: 'bold',
|
|
35
|
-
...config?.defaultOverrides,
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
h4: class H4 extends Container {
|
|
41
|
-
constructor(inputProperties, initialClasses, config) {
|
|
42
|
-
super(inputProperties, initialClasses, {
|
|
43
|
-
...config,
|
|
44
|
-
defaultOverrides: { fontSize: 16, fontWeight: 'bold', ...config?.defaultOverrides },
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
h5: class H5 extends Container {
|
|
49
|
-
constructor(inputProperties, initialClasses, config) {
|
|
50
|
-
super(inputProperties, initialClasses, {
|
|
51
|
-
...config,
|
|
52
|
-
defaultOverrides: { fontSize: 13.28, fontWeight: 'bold', ...config?.defaultOverrides },
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
h6: class H6 extends Container {
|
|
57
|
-
constructor(inputProperties, initialClasses, config) {
|
|
58
|
-
super(inputProperties, initialClasses, {
|
|
59
|
-
...config,
|
|
60
|
-
defaultOverrides: {
|
|
61
|
-
//tailwind disables this marginY: 37.28,
|
|
62
|
-
fontSize: 10.67,
|
|
63
|
-
fontWeight: 'bold',
|
|
64
|
-
...config?.defaultOverrides,
|
|
65
|
-
},
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
ol: class OL extends Container {
|
|
70
|
-
constructor(inputProperties, initialClasses, config) {
|
|
71
|
-
super(inputProperties, initialClasses, {
|
|
72
|
-
...config,
|
|
73
|
-
defaultOverrides: { flexDirection: 'column', ...config?.defaultOverrides },
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
ul: class UL extends Container {
|
|
78
|
-
constructor(inputProperties, initialClasses, config) {
|
|
79
|
-
super(inputProperties, initialClasses, {
|
|
80
|
-
...config,
|
|
81
|
-
defaultOverrides: { flexDirection: 'column', ...config?.defaultOverrides },
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
a: class A extends Container {
|
|
86
|
-
constructor(inputProperties, initialClasses, config) {
|
|
87
|
-
super(inputProperties, initialClasses, {
|
|
88
|
-
...config,
|
|
89
|
-
defaultOverrides: {
|
|
90
|
-
cursor: 'pointer',
|
|
91
|
-
onClick: (e) => {
|
|
92
|
-
e.stopPropagation?.();
|
|
93
|
-
const href = this.properties.peek().href;
|
|
94
|
-
if (href != null) {
|
|
95
|
-
window.open(href);
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
...config?.defaultOverrides,
|
|
99
|
-
},
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
button: class Button extends Container {
|
|
104
|
-
constructor(inputProperties, initialClasses, config) {
|
|
105
|
-
super(inputProperties, initialClasses, {
|
|
106
|
-
...config,
|
|
107
|
-
defaultOverrides: {
|
|
108
|
-
verticalAlign: 'middle',
|
|
109
|
-
textAlign: 'center',
|
|
110
|
-
cursor: 'pointer',
|
|
111
|
-
...config?.defaultOverrides,
|
|
112
|
-
},
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
textarea: class Textarea extends Input {
|
|
117
|
-
constructor(inputProperties, initialClasses, config) {
|
|
118
|
-
super(inputProperties, initialClasses, {
|
|
119
|
-
...config,
|
|
120
|
-
defaultOverrides: { multiline: true, ...config?.defaultOverrides },
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
};
|
|
125
|
-
//TBD select option
|
|
126
|
-
|
|
127
|
-
export { htmlKit };
|
|
128
|
-
//# sourceMappingURL=html.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"html.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@pmndrs+uikitml@0.1.7_super-three@0.177.0/node_modules/@pmndrs/uikitml/dist/interpreter/html.js"],"sourcesContent":["import { Container, Input } from '@pmndrs/uikit';\nexport const htmlKit = {\n h1: class H1 extends Container {\n constructor(inputProperties, initialClasses, config) {\n super(inputProperties, initialClasses, {\n ...config,\n defaultOverrides: {\n fontSize: 24,\n fontWeight: 'bold',\n ...config?.defaultOverrides,\n },\n });\n }\n },\n h2: class H2 extends Container {\n constructor(inputProperties, initialClasses, config) {\n super(inputProperties, initialClasses, {\n ...config,\n defaultOverrides: {\n fontSize: 24,\n fontWeight: 'bold',\n ...config?.defaultOverrides,\n },\n });\n }\n },\n h3: class H3 extends Container {\n constructor(inputProperties, initialClasses, config) {\n super(inputProperties, initialClasses, {\n ...config,\n defaultOverrides: {\n fontSize: 18.72,\n fontWeight: 'bold',\n ...config?.defaultOverrides,\n },\n });\n }\n },\n h4: class H4 extends Container {\n constructor(inputProperties, initialClasses, config) {\n super(inputProperties, initialClasses, {\n ...config,\n defaultOverrides: { fontSize: 16, fontWeight: 'bold', ...config?.defaultOverrides },\n });\n }\n },\n h5: class H5 extends Container {\n constructor(inputProperties, initialClasses, config) {\n super(inputProperties, initialClasses, {\n ...config,\n defaultOverrides: { fontSize: 13.28, fontWeight: 'bold', ...config?.defaultOverrides },\n });\n }\n },\n h6: class H6 extends Container {\n constructor(inputProperties, initialClasses, config) {\n super(inputProperties, initialClasses, {\n ...config,\n defaultOverrides: {\n //tailwind disables this marginY: 37.28,\n fontSize: 10.67,\n fontWeight: 'bold',\n ...config?.defaultOverrides,\n },\n });\n }\n },\n ol: class OL extends Container {\n constructor(inputProperties, initialClasses, config) {\n super(inputProperties, initialClasses, {\n ...config,\n defaultOverrides: { flexDirection: 'column', ...config?.defaultOverrides },\n });\n }\n },\n ul: class UL extends Container {\n constructor(inputProperties, initialClasses, config) {\n super(inputProperties, initialClasses, {\n ...config,\n defaultOverrides: { flexDirection: 'column', ...config?.defaultOverrides },\n });\n }\n },\n a: class A extends Container {\n constructor(inputProperties, initialClasses, config) {\n super(inputProperties, initialClasses, {\n ...config,\n defaultOverrides: {\n cursor: 'pointer',\n onClick: (e) => {\n e.stopPropagation?.();\n const href = this.properties.peek().href;\n if (href != null) {\n window.open(href);\n }\n },\n ...config?.defaultOverrides,\n },\n });\n }\n },\n button: class Button extends Container {\n constructor(inputProperties, initialClasses, config) {\n super(inputProperties, initialClasses, {\n ...config,\n defaultOverrides: {\n verticalAlign: 'middle',\n textAlign: 'center',\n cursor: 'pointer',\n ...config?.defaultOverrides,\n },\n });\n }\n },\n textarea: class Textarea extends Input {\n constructor(inputProperties, initialClasses, config) {\n super(inputProperties, initialClasses, {\n ...config,\n defaultOverrides: { multiline: true, ...config?.defaultOverrides },\n });\n }\n },\n};\n//TBD select option\n//# sourceMappingURL=html.js.map"],"names":[],"mappings":";;AACY,MAAC,OAAO,GAAG;AACvB,IAAI,EAAE,EAAE,MAAM,EAAE,SAAS,SAAS,CAAC;AACnC,QAAQ,WAAW,CAAC,eAAe,EAAE,cAAc,EAAE,MAAM,EAAE;AAC7D,YAAY,KAAK,CAAC,eAAe,EAAE,cAAc,EAAE;AACnD,gBAAgB,G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AAE,gBAAgB;AAC/C,iBAAiB;AACjB,aAAa,CAAC;AACd,QAAQ;AACR,KAAK;AACL,IAAI,QAAQ,EAAE,MAAM,QAAQ,SAAS,KAAK,CAAC;AAC3C,QAAQ,WAAW,CAAC,eAAe,EAAE,cAAc,EAAE,MAAM,EAAE;AAC7D,YAAY,KAAK,CAAC,eAAe,EAAE,cAAc,EAAE;AACnD,gBAAgB,GAAG,MAAM;AACzB,gBAAgB,gBAAgB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,MAAM,EAAE,gBAAgB,EAAE;AAClF,aAAa,CAAC;AACd,QAAQ;AACR,KAAK;AACL;AACA;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { StyleSheet, Text, Container, Textarea, Input, Video, Svg, Image } from '@pmndrs/uikit';
|
|
2
|
-
import { computed } from '@preact/signals-core';
|
|
3
|
-
import { htmlKit } from './html.js';
|
|
4
|
-
|
|
5
|
-
function interpret(parseResult, kit) {
|
|
6
|
-
if (!parseResult.element) {
|
|
7
|
-
return null;
|
|
8
|
-
}
|
|
9
|
-
// Add parsed CSS classes to the global StyleSheet
|
|
10
|
-
for (const [className, classData] of Object.entries(parseResult.classes)) {
|
|
11
|
-
if (classData && typeof classData === 'object' && 'content' in classData) {
|
|
12
|
-
StyleSheet[className] = classData.content;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
const kitEntries = Object.entries(htmlKit);
|
|
16
|
-
if (kit != null) {
|
|
17
|
-
kitEntries.unshift(...Object.entries(kit));
|
|
18
|
-
}
|
|
19
|
-
return interpretElement(parseResult.element, kitEntries);
|
|
20
|
-
}
|
|
21
|
-
function interpretElement(json, kit) {
|
|
22
|
-
if (json === null || json === undefined) {
|
|
23
|
-
return null;
|
|
24
|
-
}
|
|
25
|
-
if (typeof json === 'string') {
|
|
26
|
-
const text = new Text({
|
|
27
|
-
text: computed(() => (text.parentContainer.value?.properties.value).text ?? json),
|
|
28
|
-
width: '100%',
|
|
29
|
-
height: '100%',
|
|
30
|
-
});
|
|
31
|
-
return text;
|
|
32
|
-
}
|
|
33
|
-
const properties = { ...json.properties };
|
|
34
|
-
if (properties.style && typeof properties.style === 'object') {
|
|
35
|
-
Object.assign(properties, properties.style);
|
|
36
|
-
delete properties.style;
|
|
37
|
-
}
|
|
38
|
-
const elementId = properties.id;
|
|
39
|
-
let element;
|
|
40
|
-
switch (json.type) {
|
|
41
|
-
case 'container':
|
|
42
|
-
element = createContainerElement(json, properties);
|
|
43
|
-
break;
|
|
44
|
-
case 'custom':
|
|
45
|
-
element = createCustomElement(json, properties, kit);
|
|
46
|
-
break;
|
|
47
|
-
case 'image':
|
|
48
|
-
element = createImageElement(json, properties);
|
|
49
|
-
break;
|
|
50
|
-
case 'svg':
|
|
51
|
-
element = createSvgElement(json, properties);
|
|
52
|
-
break;
|
|
53
|
-
case 'inline-svg':
|
|
54
|
-
element = createInlineSvgElement(json, properties);
|
|
55
|
-
break;
|
|
56
|
-
case 'video':
|
|
57
|
-
element = createVideoElement(json, properties);
|
|
58
|
-
break;
|
|
59
|
-
case 'input':
|
|
60
|
-
element = createInputElement(json, properties);
|
|
61
|
-
break;
|
|
62
|
-
case 'textarea':
|
|
63
|
-
element = createTextareaElement(json, properties);
|
|
64
|
-
break;
|
|
65
|
-
default:
|
|
66
|
-
//omit the kit intentionally because we are falling back to an unknown uikit kit component
|
|
67
|
-
element = createCustomElement(json, properties);
|
|
68
|
-
break;
|
|
69
|
-
}
|
|
70
|
-
if (elementId) {
|
|
71
|
-
element.userData.id = elementId;
|
|
72
|
-
}
|
|
73
|
-
if (json.sourceTag) {
|
|
74
|
-
element.userData.sourceTag = json.sourceTag;
|
|
75
|
-
}
|
|
76
|
-
if (json.dataUid) {
|
|
77
|
-
element.userData.dataUid = json.dataUid;
|
|
78
|
-
}
|
|
79
|
-
// Preserve data-* attributes in userData, removing data prefix and lowercasing first letter
|
|
80
|
-
for (const [key, value] of Object.entries(properties)) {
|
|
81
|
-
if (key.startsWith('data')) {
|
|
82
|
-
// Remove 'data' prefix and lowercase the first letter of the remaining part
|
|
83
|
-
const userDataKey = key.slice(4, 5).toLowerCase() + key.slice(5);
|
|
84
|
-
element.userData[userDataKey] = value;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
if (properties.class) {
|
|
88
|
-
const classNames = properties.class.split(' ').filter((name) => name.trim());
|
|
89
|
-
element.classList.add(...classNames);
|
|
90
|
-
}
|
|
91
|
-
if (element instanceof Container) {
|
|
92
|
-
json.children.forEach((childElementJson) => {
|
|
93
|
-
const childElement = interpretElement(childElementJson, kit);
|
|
94
|
-
if (childElement) {
|
|
95
|
-
element.add(childElement);
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
return element;
|
|
100
|
-
}
|
|
101
|
-
function createContainerElement(_json, properties) {
|
|
102
|
-
return new Container(properties);
|
|
103
|
-
}
|
|
104
|
-
function createCustomElement(json, properties, kit) {
|
|
105
|
-
const componentName = json.sourceTag;
|
|
106
|
-
const CustomComponent = kit == null ? undefined : kit.find(([name]) => name.toLowerCase() === componentName)?.[1];
|
|
107
|
-
if (CustomComponent) {
|
|
108
|
-
const element = new CustomComponent(properties);
|
|
109
|
-
element.userData.customElement = {
|
|
110
|
-
componentName,
|
|
111
|
-
sourceTag: json.sourceTag,
|
|
112
|
-
};
|
|
113
|
-
return element;
|
|
114
|
-
}
|
|
115
|
-
else {
|
|
116
|
-
const element = new Container(properties);
|
|
117
|
-
element.userData.customElement = {
|
|
118
|
-
componentName,
|
|
119
|
-
sourceTag: json.sourceTag,
|
|
120
|
-
};
|
|
121
|
-
//console.warn(`Custom component '${componentName}' not found in kit, falling back to Container`)
|
|
122
|
-
return element;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
function createImageElement(_json, properties) {
|
|
126
|
-
if (!properties.src) {
|
|
127
|
-
console.warn('Image element missing src property');
|
|
128
|
-
properties.src = '';
|
|
129
|
-
}
|
|
130
|
-
return new Image(properties);
|
|
131
|
-
}
|
|
132
|
-
function createSvgElement(_json, properties) {
|
|
133
|
-
if (!properties.src) {
|
|
134
|
-
console.warn('SVG element missing src property');
|
|
135
|
-
properties.src = '';
|
|
136
|
-
}
|
|
137
|
-
return new Svg(properties);
|
|
138
|
-
}
|
|
139
|
-
function createInlineSvgElement(json, properties) {
|
|
140
|
-
const svgText = json.text || '';
|
|
141
|
-
return new Svg({
|
|
142
|
-
...properties,
|
|
143
|
-
content: svgText,
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
function createVideoElement(_json, properties) {
|
|
147
|
-
if (!properties.src) {
|
|
148
|
-
console.warn('Video element missing src property');
|
|
149
|
-
properties.src = '';
|
|
150
|
-
}
|
|
151
|
-
return new Video(properties);
|
|
152
|
-
}
|
|
153
|
-
function createTextareaElement(_json, properties) {
|
|
154
|
-
return new Textarea(properties);
|
|
155
|
-
}
|
|
156
|
-
function createInputElement(_json, properties) {
|
|
157
|
-
return new Input(properties);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
export { interpret };
|
|
161
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@pmndrs+uikitml@0.1.7_super-three@0.177.0/node_modules/@pmndrs/uikitml/dist/interpreter/index.js"],"sourcesContent":["import { Container, Image, Input, Text, Video, Svg, StyleSheet, Textarea } from '@pmndrs/uikit';\nimport { computed } from '@preact/signals-core';\nimport { htmlKit } from './html.js';\nexport function interpret(parseResult, kit) {\n if (!parseResult.element) {\n return null;\n }\n // Add parsed CSS classes to the global StyleSheet\n for (const [className, classData] of Object.entries(parseResult.classes)) {\n if (classData && typeof classData === 'object' && 'content' in classData) {\n StyleSheet[className] = classData.content;\n }\n }\n const kitEntries = Object.entries(htmlKit);\n if (kit != null) {\n kitEntries.unshift(...Object.entries(kit));\n }\n return interpretElement(parseResult.element, kitEntries);\n}\nfunction interpretElement(json, kit) {\n if (json === null || json === undefined) {\n return null;\n }\n if (typeof json === 'string') {\n const text = new Text({\n text: computed(() => (text.parentContainer.value?.properties.value).text ?? json),\n width: '100%',\n height: '100%',\n });\n return text;\n }\n const properties = { ...json.properties };\n if (properties.style && typeof properties.style === 'object') {\n Object.assign(properties, properties.style);\n delete properties.style;\n }\n const elementId = properties.id;\n let element;\n switch (json.type) {\n case 'container':\n element = createContainerElement(json, properties);\n break;\n case 'custom':\n element = createCustomElement(json, properties, kit);\n break;\n case 'image':\n element = createImageElement(json, properties);\n break;\n case 'svg':\n element = createSvgElement(json, properties);\n break;\n case 'inline-svg':\n element = createInlineSvgElement(json, properties);\n break;\n case 'video':\n element = createVideoElement(json, properties);\n break;\n case 'input':\n element = createInputElement(json, properties);\n break;\n case 'textarea':\n element = createTextareaElement(json, properties);\n break;\n default:\n //omit the kit intentionally because we are falling back to an unknown uikit kit component\n element = createCustomElement(json, properties);\n break;\n }\n if (elementId) {\n element.userData.id = elementId;\n }\n if (json.sourceTag) {\n element.userData.sourceTag = json.sourceTag;\n }\n if (json.dataUid) {\n element.userData.dataUid = json.dataUid;\n }\n // Preserve data-* attributes in userData, removing data prefix and lowercasing first letter\n for (const [key, value] of Object.entries(properties)) {\n if (key.startsWith('data')) {\n // Remove 'data' prefix and lowercase the first letter of the remaining part\n const userDataKey = key.slice(4, 5).toLowerCase() + key.slice(5);\n element.userData[userDataKey] = value;\n }\n }\n if (properties.class) {\n const classNames = properties.class.split(' ').filter((name) => name.trim());\n element.classList.add(...classNames);\n }\n if (element instanceof Container) {\n ;\n json.children.forEach((childElementJson) => {\n const childElement = interpretElement(childElementJson, kit);\n if (childElement) {\n element.add(childElement);\n }\n });\n }\n return element;\n}\nfunction createContainerElement(_json, properties) {\n return new Container(properties);\n}\nfunction createCustomElement(json, properties, kit) {\n const componentName = json.sourceTag;\n const CustomComponent = kit == null ? undefined : kit.find(([name]) => name.toLowerCase() === componentName)?.[1];\n if (CustomComponent) {\n const element = new CustomComponent(properties);\n element.userData.customElement = {\n componentName,\n sourceTag: json.sourceTag,\n };\n return element;\n }\n else {\n const element = new Container(properties);\n element.userData.customElement = {\n componentName,\n sourceTag: json.sourceTag,\n };\n //console.warn(`Custom component '${componentName}' not found in kit, falling back to Container`)\n return element;\n }\n}\nfunction createImageElement(_json, properties) {\n if (!properties.src) {\n console.warn('Image element missing src property');\n properties.src = '';\n }\n return new Image(properties);\n}\nfunction createSvgElement(_json, properties) {\n if (!properties.src) {\n console.warn('SVG element missing src property');\n properties.src = '';\n }\n return new Svg(properties);\n}\nfunction createInlineSvgElement(json, properties) {\n const svgText = json.text || '';\n return new Svg({\n ...properties,\n content: svgText,\n });\n}\nfunction createVideoElement(_json, properties) {\n if (!properties.src) {\n console.warn('Video element missing src property');\n properties.src = '';\n }\n return new Video(properties);\n}\nfunction createTextareaElement(_json, properties) {\n return new Textarea(properties);\n}\nfunction createInputElement(_json, properties) {\n return new Input(properties);\n}\nexport function getElementDescription(json) {\n if (typeof json === 'string') {\n return `Text: \"${json.substring(0, 20)}${json.length > 20 ? '...' : ''}\"`;\n }\n switch (json.type) {\n case 'container':\n return `Container (${json.sourceTag})`;\n case 'custom':\n return `Custom: ${json.sourceTag}`;\n case 'image':\n return `Image: ${json.properties?.src || 'no src'}`;\n case 'svg':\n return `SVG: ${json.properties?.src || 'no src'}`;\n case 'inline-svg':\n return `Inline SVG (${json.text?.length || 0} chars)`;\n case 'video':\n return `Video: ${json.properties?.src || 'no src'}`;\n case 'input':\n case 'textarea':\n return `Input (${json.sourceTag}${json.properties?.multiline ? ', multiline' : ''})`;\n default:\n return `Unknown: ${json.type}`;\n }\n}\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;AAGO,SAAS,SAAS,CAAC,WAAW,EAAE,GAAG,EAAE;AAC5C,IAAI,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE;AAC9B,QAAQ,OAAO,IAAI;AACnB,IAAI;AACJ;AACA,IAAI,KAAK,MAAM,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AAC,UAAU,CAAC,GAAG,EAAE;AACzB,QAAQ,OAAO,CAAC,IAAI,CAAC,kCAAkC,CAAC;AACxD,QAAQ,UAAU,CAAC,GAAG,GAAG,EAAE;AAC3B,IAAI;AACJ,IAAI,OAAO,IAAI,GAAG,CAAC,UAAU,CAAC;AAC9B;AACA,SAAS,sBAAsB,CAAC,IAAI,EAAE,UAAU,EAAE;AAClD,IAAI,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,IAAI,EAAE;AACnC,IAAI,OAAO,IAAI,GAAG,CAAC;AACnB,QAAQ,GAAG,UAAU;AACrB,QAAQ,OAAO,EAAE,OAAO;AACxB,KAAK,CAAC;AACN;AACA,SAAS,kBAAkB,CAAC,KAAK,EAAE,UAAU,EAAE;AAC/C,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE;AACzB,QAAQ,OAAO,CAAC,IAAI,CAAC,oCAAoC,CAAC;AAC1D,QAAQ,UAAU,CAAC,GAAG,GAAG,EAAE;AAC3B,IAAI;AACJ,IAAI,OAAO,IAAI,KAAK,CAAC,UAAU,CAAC;AAChC;AACA,SAAS,qBAAqB,CAAC,KAAK,EAAE,UAAU,EAAE;AAClD,IAAI,OAAO,IAAI,QAAQ,CAAC,UAAU,CAAC;AACnC;AACA,SAAS,kBAAkB,CAAC,KAAK,EAAE,UAAU,EAAE;AAC/C,IAAI,OAAO,IAAI,KAAK,CAAC,UAAU,CAAC;AAChC;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
var ERR;
|
|
2
|
-
(function (ERR) {
|
|
3
|
-
ERR["controlCharacterInInputStream"] = "control-character-in-input-stream";
|
|
4
|
-
ERR["noncharacterInInputStream"] = "noncharacter-in-input-stream";
|
|
5
|
-
ERR["surrogateInInputStream"] = "surrogate-in-input-stream";
|
|
6
|
-
ERR["nonVoidHtmlElementStartTagWithTrailingSolidus"] = "non-void-html-element-start-tag-with-trailing-solidus";
|
|
7
|
-
ERR["endTagWithAttributes"] = "end-tag-with-attributes";
|
|
8
|
-
ERR["endTagWithTrailingSolidus"] = "end-tag-with-trailing-solidus";
|
|
9
|
-
ERR["unexpectedSolidusInTag"] = "unexpected-solidus-in-tag";
|
|
10
|
-
ERR["unexpectedNullCharacter"] = "unexpected-null-character";
|
|
11
|
-
ERR["unexpectedQuestionMarkInsteadOfTagName"] = "unexpected-question-mark-instead-of-tag-name";
|
|
12
|
-
ERR["invalidFirstCharacterOfTagName"] = "invalid-first-character-of-tag-name";
|
|
13
|
-
ERR["unexpectedEqualsSignBeforeAttributeName"] = "unexpected-equals-sign-before-attribute-name";
|
|
14
|
-
ERR["missingEndTagName"] = "missing-end-tag-name";
|
|
15
|
-
ERR["unexpectedCharacterInAttributeName"] = "unexpected-character-in-attribute-name";
|
|
16
|
-
ERR["unknownNamedCharacterReference"] = "unknown-named-character-reference";
|
|
17
|
-
ERR["missingSemicolonAfterCharacterReference"] = "missing-semicolon-after-character-reference";
|
|
18
|
-
ERR["unexpectedCharacterAfterDoctypeSystemIdentifier"] = "unexpected-character-after-doctype-system-identifier";
|
|
19
|
-
ERR["unexpectedCharacterInUnquotedAttributeValue"] = "unexpected-character-in-unquoted-attribute-value";
|
|
20
|
-
ERR["eofBeforeTagName"] = "eof-before-tag-name";
|
|
21
|
-
ERR["eofInTag"] = "eof-in-tag";
|
|
22
|
-
ERR["missingAttributeValue"] = "missing-attribute-value";
|
|
23
|
-
ERR["missingWhitespaceBetweenAttributes"] = "missing-whitespace-between-attributes";
|
|
24
|
-
ERR["missingWhitespaceAfterDoctypePublicKeyword"] = "missing-whitespace-after-doctype-public-keyword";
|
|
25
|
-
ERR["missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers"] = "missing-whitespace-between-doctype-public-and-system-identifiers";
|
|
26
|
-
ERR["missingWhitespaceAfterDoctypeSystemKeyword"] = "missing-whitespace-after-doctype-system-keyword";
|
|
27
|
-
ERR["missingQuoteBeforeDoctypePublicIdentifier"] = "missing-quote-before-doctype-public-identifier";
|
|
28
|
-
ERR["missingQuoteBeforeDoctypeSystemIdentifier"] = "missing-quote-before-doctype-system-identifier";
|
|
29
|
-
ERR["missingDoctypePublicIdentifier"] = "missing-doctype-public-identifier";
|
|
30
|
-
ERR["missingDoctypeSystemIdentifier"] = "missing-doctype-system-identifier";
|
|
31
|
-
ERR["abruptDoctypePublicIdentifier"] = "abrupt-doctype-public-identifier";
|
|
32
|
-
ERR["abruptDoctypeSystemIdentifier"] = "abrupt-doctype-system-identifier";
|
|
33
|
-
ERR["cdataInHtmlContent"] = "cdata-in-html-content";
|
|
34
|
-
ERR["incorrectlyOpenedComment"] = "incorrectly-opened-comment";
|
|
35
|
-
ERR["eofInScriptHtmlCommentLikeText"] = "eof-in-script-html-comment-like-text";
|
|
36
|
-
ERR["eofInDoctype"] = "eof-in-doctype";
|
|
37
|
-
ERR["nestedComment"] = "nested-comment";
|
|
38
|
-
ERR["abruptClosingOfEmptyComment"] = "abrupt-closing-of-empty-comment";
|
|
39
|
-
ERR["eofInComment"] = "eof-in-comment";
|
|
40
|
-
ERR["incorrectlyClosedComment"] = "incorrectly-closed-comment";
|
|
41
|
-
ERR["eofInCdata"] = "eof-in-cdata";
|
|
42
|
-
ERR["absenceOfDigitsInNumericCharacterReference"] = "absence-of-digits-in-numeric-character-reference";
|
|
43
|
-
ERR["nullCharacterReference"] = "null-character-reference";
|
|
44
|
-
ERR["surrogateCharacterReference"] = "surrogate-character-reference";
|
|
45
|
-
ERR["characterReferenceOutsideUnicodeRange"] = "character-reference-outside-unicode-range";
|
|
46
|
-
ERR["controlCharacterReference"] = "control-character-reference";
|
|
47
|
-
ERR["noncharacterCharacterReference"] = "noncharacter-character-reference";
|
|
48
|
-
ERR["missingWhitespaceBeforeDoctypeName"] = "missing-whitespace-before-doctype-name";
|
|
49
|
-
ERR["missingDoctypeName"] = "missing-doctype-name";
|
|
50
|
-
ERR["invalidCharacterSequenceAfterDoctypeName"] = "invalid-character-sequence-after-doctype-name";
|
|
51
|
-
ERR["duplicateAttribute"] = "duplicate-attribute";
|
|
52
|
-
ERR["nonConformingDoctype"] = "non-conforming-doctype";
|
|
53
|
-
ERR["missingDoctype"] = "missing-doctype";
|
|
54
|
-
ERR["misplacedDoctype"] = "misplaced-doctype";
|
|
55
|
-
ERR["endTagWithoutMatchingOpenElement"] = "end-tag-without-matching-open-element";
|
|
56
|
-
ERR["closingOfElementWithOpenChildElements"] = "closing-of-element-with-open-child-elements";
|
|
57
|
-
ERR["disallowedContentInNoscriptInHead"] = "disallowed-content-in-noscript-in-head";
|
|
58
|
-
ERR["openElementsLeftAfterEof"] = "open-elements-left-after-eof";
|
|
59
|
-
ERR["abandonedHeadElementChild"] = "abandoned-head-element-child";
|
|
60
|
-
ERR["misplacedStartTagForHeadElement"] = "misplaced-start-tag-for-head-element";
|
|
61
|
-
ERR["nestedNoscriptInHead"] = "nested-noscript-in-head";
|
|
62
|
-
ERR["eofInElementThatCanContainOnlyText"] = "eof-in-element-that-can-contain-only-text";
|
|
63
|
-
})(ERR || (ERR = {}));
|
|
64
|
-
|
|
65
|
-
export { ERR };
|
|
66
|
-
//# sourceMappingURL=error-codes.js.map
|
package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error-codes.js","sources":["../../../../../../../../../../node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.js"],"sourcesContent":["export var ERR;\n(function (ERR) {\n ERR[\"controlCharacterInInputStream\"] = \"control-character-in-input-stream\";\n ERR[\"noncharacterInInputStream\"] = \"noncharacter-in-input-stream\";\n ERR[\"surrogateInInputStream\"] = \"surrogate-in-input-stream\";\n ERR[\"nonVoidHtmlElementStartTagWithTrailingSolidus\"] = \"non-void-html-element-start-tag-with-trailing-solidus\";\n ERR[\"endTagWithAttributes\"] = \"end-tag-with-attributes\";\n ERR[\"endTagWithTrailingSolidus\"] = \"end-tag-with-trailing-solidus\";\n ERR[\"unexpectedSolidusInTag\"] = \"unexpected-solidus-in-tag\";\n ERR[\"unexpectedNullCharacter\"] = \"unexpected-null-character\";\n ERR[\"unexpectedQuestionMarkInsteadOfTagName\"] = \"unexpected-question-mark-instead-of-tag-name\";\n ERR[\"invalidFirstCharacterOfTagName\"] = \"invalid-first-character-of-tag-name\";\n ERR[\"unexpectedEqualsSignBeforeAttributeName\"] = \"unexpected-equals-sign-before-attribute-name\";\n ERR[\"missingEndTagName\"] = \"missing-end-tag-name\";\n ERR[\"unexpectedCharacterInAttributeName\"] = \"unexpected-character-in-attribute-name\";\n ERR[\"unknownNamedCharacterReference\"] = \"unknown-named-character-reference\";\n ERR[\"missingSemicolonAfterCharacterReference\"] = \"missing-semicolon-after-character-reference\";\n ERR[\"unexpectedCharacterAfterDoctypeSystemIdentifier\"] = \"unexpected-character-after-doctype-system-identifier\";\n ERR[\"unexpectedCharacterInUnquotedAttributeValue\"] = \"unexpected-character-in-unquoted-attribute-value\";\n ERR[\"eofBeforeTagName\"] = \"eof-before-tag-name\";\n ERR[\"eofInTag\"] = \"eof-in-tag\";\n ERR[\"missingAttributeValue\"] = \"missing-attribute-value\";\n ERR[\"missingWhitespaceBetweenAttributes\"] = \"missing-whitespace-between-attributes\";\n ERR[\"missingWhitespaceAfterDoctypePublicKeyword\"] = \"missing-whitespace-after-doctype-public-keyword\";\n ERR[\"missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers\"] = \"missing-whitespace-between-doctype-public-and-system-identifiers\";\n ERR[\"missingWhitespaceAfterDoctypeSystemKeyword\"] = \"missing-whitespace-after-doctype-system-keyword\";\n ERR[\"missingQuoteBeforeDoctypePublicIdentifier\"] = \"missing-quote-before-doctype-public-identifier\";\n ERR[\"missingQuoteBeforeDoctypeSystemIdentifier\"] = \"missing-quote-before-doctype-system-identifier\";\n ERR[\"missingDoctypePublicIdentifier\"] = \"missing-doctype-public-identifier\";\n ERR[\"missingDoctypeSystemIdentifier\"] = \"missing-doctype-system-identifier\";\n ERR[\"abruptDoctypePublicIdentifier\"] = \"abrupt-doctype-public-identifier\";\n ERR[\"abruptDoctypeSystemIdentifier\"] = \"abrupt-doctype-system-identifier\";\n ERR[\"cdataInHtmlContent\"] = \"cdata-in-html-content\";\n ERR[\"incorrectlyOpenedComment\"] = \"incorrectly-opened-comment\";\n ERR[\"eofInScriptHtmlCommentLikeText\"] = \"eof-in-script-html-comment-like-text\";\n ERR[\"eofInDoctype\"] = \"eof-in-doctype\";\n ERR[\"nestedComment\"] = \"nested-comment\";\n ERR[\"abruptClosingOfEmptyComment\"] = \"abrupt-closing-of-empty-comment\";\n ERR[\"eofInComment\"] = \"eof-in-comment\";\n ERR[\"incorrectlyClosedComment\"] = \"incorrectly-closed-comment\";\n ERR[\"eofInCdata\"] = \"eof-in-cdata\";\n ERR[\"absenceOfDigitsInNumericCharacterReference\"] = \"absence-of-digits-in-numeric-character-reference\";\n ERR[\"nullCharacterReference\"] = \"null-character-reference\";\n ERR[\"surrogateCharacterReference\"] = \"surrogate-character-reference\";\n ERR[\"characterReferenceOutsideUnicodeRange\"] = \"character-reference-outside-unicode-range\";\n ERR[\"controlCharacterReference\"] = \"control-character-reference\";\n ERR[\"noncharacterCharacterReference\"] = \"noncharacter-character-reference\";\n ERR[\"missingWhitespaceBeforeDoctypeName\"] = \"missing-whitespace-before-doctype-name\";\n ERR[\"missingDoctypeName\"] = \"missing-doctype-name\";\n ERR[\"invalidCharacterSequenceAfterDoctypeName\"] = \"invalid-character-sequence-after-doctype-name\";\n ERR[\"duplicateAttribute\"] = \"duplicate-attribute\";\n ERR[\"nonConformingDoctype\"] = \"non-conforming-doctype\";\n ERR[\"missingDoctype\"] = \"missing-doctype\";\n ERR[\"misplacedDoctype\"] = \"misplaced-doctype\";\n ERR[\"endTagWithoutMatchingOpenElement\"] = \"end-tag-without-matching-open-element\";\n ERR[\"closingOfElementWithOpenChildElements\"] = \"closing-of-element-with-open-child-elements\";\n ERR[\"disallowedContentInNoscriptInHead\"] = \"disallowed-content-in-noscript-in-head\";\n ERR[\"openElementsLeftAfterEof\"] = \"open-elements-left-after-eof\";\n ERR[\"abandonedHeadElementChild\"] = \"abandoned-head-element-child\";\n ERR[\"misplacedStartTagForHeadElement\"] = \"misplaced-start-tag-for-head-element\";\n ERR[\"nestedNoscriptInHead\"] = \"nested-noscript-in-head\";\n ERR[\"eofInElementThatCanContainOnlyText\"] = \"eof-in-element-that-can-contain-only-text\";\n})(ERR || (ERR = {}));\n"],"names":[],"mappings":"AAAU,IAAC;AACX,CAAC,UAAU,GAAG,EAAE;AAChB,IAAI,GAAG,CAAC,+BAA+B,CAAC,GAAG,mCAAmC;AAC9E,IAAI,GAAG,CAAC,2BAA2B,CAAC,GAAG,8BAA8B;AACrE,IAAI,GAAG,CAAC,wBAAwB,CAAC,GAAG,2BAA2B;AAC/D,IAAI,GAAG,CAAC,+CAA+C,CAAC,GAAG,uDAAuD;AAClH,IAAI,GAAG,CAAC,sBAAsB,CAAC,GAAG,yBAAyB;AAC3D,IAAI,GAAG,CAAC,2BAA2B,CAAC,GAAG,+BAA+B;AACtE,IAAI,GAAG,CAAC,wBAAwB,CAAC,GAAG,2BAA2B;AAC/D,IAAI,GAAG,CAAC,yBAAyB,CAAC,GAAG,2BAA2B;AAChE,IAAI,GAAG,CAAC,wCAAwC,CAAC,GAAG,8CAA8C;AAClG,IAAI,GAAG,CAAC,gCAAgC,CAAC,GAAG,qCAAqC;AACjF,IAAI,GAAG,CAAC,yCAAyC,CAAC,GAAG,8CAA8C;AACnG,IAAI,GAAG,CAAC,mBAAmB,CAAC,GAAG,sBAAsB;AACrD,IAAI,GAAG,CAAC,oCAAoC,CAAC,GAAG,wCAAwC;AACxF,IAAI,GAAG,CAAC,gCAAgC,CAAC,GAAG,mCAAmC;AAC/E,IAAI,GAAG,CAAC,yCAAyC,CAAC,GAAG,6CAA6C;AAClG,IAAI,GAAG,CAAC,iDAAiD,CAAC,GAAG,sDAAsD;AACnH,IAAI,GAAG,CAAC,6C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