aptechka 0.12.0 → 0.13.0
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/{client-lib/Animation-uimN7sdT.js → lib/Animation-DF5jPON_.js} +23 -28
- package/lib/Animation-seVC6-fS.cjs +1 -0
- package/lib/Composed-ChlKoJEp.cjs +1 -0
- package/lib/Composed-CoX1ImVk.js +31 -0
- package/lib/Damped-BDO-F13V.js +53 -0
- package/lib/Damped-C7WAqKPh.cjs +1 -0
- package/lib/Derived-B-2UXnVE.cjs +1 -0
- package/lib/Derived-CDGpSMKu.js +56 -0
- package/{client-lib/SourceManager--L_rA28b.js → lib/SourceManager-B8-EMNnd.js} +26 -30
- package/lib/SourceManager-TzU9Rw08.cjs +1 -0
- package/lib/Store-BnA-dJsE.cjs +1 -0
- package/{client-lib/Store-Qr3SNOSf.js → lib/Store-DGtldlBH.js} +29 -34
- package/lib/Tweened-CHhmfvzo.js +44 -0
- package/lib/Tweened-DSXD0I0k.cjs +1 -0
- package/lib/Viewport-BmLTk_6k.cjs +1 -0
- package/lib/Viewport-DTlImj28.js +123 -0
- package/lib/accordion/index.cjs +1 -0
- package/lib/accordion/index.js +167 -0
- package/{client-lib → lib}/animation/index.cjs +1 -1
- package/lib/animation/index.js +8 -0
- package/lib/attribute/index.cjs +1 -0
- package/{client-lib → lib}/attribute/index.js +15 -20
- package/lib/canvas/index.cjs +1 -0
- package/lib/canvas/index.js +111 -0
- package/lib/checkbox/index.cjs +1 -0
- package/{client-lib → lib}/checkbox/index.js +20 -25
- package/lib/class-linked-status/index.cjs +1 -0
- package/lib/class-linked-status/index.js +45 -0
- package/lib/connector/index.cjs +1 -0
- package/{client-lib → lib}/connector/index.js +14 -18
- package/lib/controls/index.cjs +1 -0
- package/lib/controls/index.js +207 -0
- package/{client-lib/createStylesheet-BqjaCUhm.cjs → lib/createStylesheet-CaDI99iu.cjs} +1 -1
- package/{client-lib/createStylesheet-DNG2b5X4.js → lib/createStylesheet-DO5t5q-m.js} +1 -1
- package/lib/css-property/index.cjs +1 -0
- package/lib/css-property/index.js +58 -0
- package/lib/css-unit-parser/index.cjs +8 -0
- package/lib/css-unit-parser/index.js +31 -0
- package/{client-lib → lib}/dev/index.cjs +1 -1
- package/{client-lib → lib}/dev/index.js +1 -1
- package/{client-lib → lib}/device/index.cjs +1 -1
- package/{client-lib → lib}/device/index.js +1 -1
- package/{client-lib → lib}/element-constructor/index.cjs +1 -1
- package/{client-lib → lib}/element-constructor/index.js +2 -2
- package/lib/element-resizer/index.cjs +1 -0
- package/{client-lib → lib}/element-resizer/index.js +12 -16
- package/lib/en3/helpers/index.cjs +1 -0
- package/{client-lib → lib}/en3/helpers/index.js +612 -646
- package/{client-lib → lib}/en3/index.cjs +1 -1
- package/lib/en3/index.js +6 -0
- package/{client-lib → lib}/en3/libs/index.js +1 -2
- package/lib/en3/loaders/index.cjs +1 -0
- package/{client-lib → lib}/en3/loaders/index.js +152 -167
- package/lib/en3/misc/index.cjs +10 -0
- package/{client-lib → lib}/en3/misc/index.js +18 -23
- package/{client-lib → lib}/en3/utils/index.cjs +1 -1
- package/{client-lib → lib}/en3/utils/index.js +2 -2
- package/lib/en3-C1fLmsjs.cjs +8 -0
- package/{client-lib/en3-THFHEReu.js → lib/en3-x-Ki30MY.js} +59 -64
- package/{client-lib → lib}/image/index.cjs +1 -1
- package/{client-lib → lib}/image/index.js +1 -1
- package/{client-lib/index-BuvwT3dS.js → lib/index-BhbT9PrL.js} +35 -40
- package/lib/index-BpsQqM-8.cjs +9 -0
- package/lib/intersector/index.cjs +1 -0
- package/{client-lib → lib}/intersector/index.js +12 -16
- package/lib/ladder/index.cjs +1 -0
- package/{client-lib → lib}/ladder/index.js +20 -25
- package/lib/layout-box/index.cjs +1 -0
- package/lib/layout-box/index.js +318 -0
- package/lib/loading/index.cjs +1 -0
- package/{client-lib → lib}/loading/index.js +17 -21
- package/lib/media/index.cjs +1 -0
- package/lib/media/index.js +26 -0
- package/lib/modal/index.cjs +1 -0
- package/{client-lib → lib}/modal/index.js +22 -26
- package/lib/morph/index.cjs +1 -0
- package/lib/morph/index.js +225 -0
- package/lib/notifier/index.cjs +1 -0
- package/lib/notifier/index.js +36 -0
- package/lib/pointer/index.cjs +1 -0
- package/{client-lib → lib}/pointer/index.js +37 -41
- package/lib/popover/index.cjs +1 -0
- package/{client-lib → lib}/popover/index.js +71 -79
- package/lib/router/index.cjs +1 -0
- package/{client-lib → lib}/router/index.js +54 -60
- package/lib/scroll/index.cjs +1 -0
- package/lib/scroll/index.js +1131 -0
- package/lib/scroll-entries/index.cjs +1 -0
- package/{client-lib → lib}/scroll-entries/index.js +11 -15
- package/{client-lib → lib}/select/index.cjs +1 -1
- package/{client-lib → lib}/select/index.js +1 -1
- package/lib/sequence/index.cjs +1 -0
- package/{client-lib → lib}/sequence/index.js +26 -30
- package/lib/slicer/index.cjs +11 -0
- package/{client-lib → lib}/slicer/index.js +27 -31
- package/lib/source/index.cjs +5 -0
- package/{client-lib → lib}/source/index.js +19 -24
- package/lib/store/index.cjs +1 -0
- package/{client-lib → lib}/store/index.js +29 -33
- package/{client-lib → lib}/svg-path-data/index.js +3 -6
- package/lib/tags-4AoxVUe3.js +833 -0
- package/lib/tags-v-OSVkiQ.cjs +1 -0
- package/{client-lib → lib}/theme/index.cjs +1 -1
- package/{client-lib → lib}/theme/index.js +2 -2
- package/lib/ticker/index.cjs +1 -0
- package/lib/ticker/index.js +119 -0
- package/{client-lib/traverseMaterials-BtBXV88O.cjs → lib/traverseMaterials-CD_3_56D.cjs} +1 -1
- package/{client-lib/traverseMaterials-BKSwwNmo.js → lib/traverseMaterials-mGC2_FkG.js} +1 -1
- package/lib/tweaker/index.cjs +10 -0
- package/{client-lib → lib}/tweaker/index.js +271 -279
- package/{client-lib → lib}/utils/index.js +1 -2
- package/lib/video/index.cjs +1 -0
- package/{client-lib → lib}/video/index.js +13 -17
- package/lib/window-resizer/index.cjs +1 -0
- package/lib/window-resizer/index.js +42 -0
- package/package.json +351 -378
- package/client-lib/Animation-BInSRYNr.cjs +0 -1
- package/client-lib/Composed-Fa7owymK.js +0 -35
- package/client-lib/Composed-Iihn8fT4.cjs +0 -1
- package/client-lib/Damped-Da3EnNN4.cjs +0 -1
- package/client-lib/Damped-yrNXlkDE.js +0 -57
- package/client-lib/Derived-CNbsNMn_.cjs +0 -1
- package/client-lib/Derived-rInkx3e4.js +0 -60
- package/client-lib/SourceManager-D6D2LVKf.cjs +0 -1
- package/client-lib/Store-Cr3VaD9G.cjs +0 -1
- package/client-lib/Tweened-CjgvoOwL.js +0 -48
- package/client-lib/Tweened-DksN-Rz6.cjs +0 -1
- package/client-lib/Viewport-BBYt1Ivy.cjs +0 -1
- package/client-lib/Viewport-Cgtq2I_K.js +0 -127
- package/client-lib/accordion/AccordionElement.d.ts +0 -30
- package/client-lib/accordion/index.cjs +0 -1
- package/client-lib/accordion/index.d.ts +0 -1
- package/client-lib/accordion/index.js +0 -176
- package/client-lib/animation/Animation.d.ts +0 -35
- package/client-lib/animation/Damped.d.ts +0 -19
- package/client-lib/animation/Tweened.d.ts +0 -15
- package/client-lib/animation/index.d.ts +0 -3
- package/client-lib/animation/index.js +0 -8
- package/client-lib/attribute/index.cjs +0 -1
- package/client-lib/attribute/index.d.ts +0 -15
- package/client-lib/canvas/index.cjs +0 -1
- package/client-lib/canvas/index.d.ts +0 -35
- package/client-lib/canvas/index.js +0 -119
- package/client-lib/checkbox/index.cjs +0 -1
- package/client-lib/checkbox/index.d.ts +0 -14
- package/client-lib/class-linked-status/index.cjs +0 -1
- package/client-lib/class-linked-status/index.d.ts +0 -12
- package/client-lib/class-linked-status/index.js +0 -49
- package/client-lib/connector/index.cjs +0 -1
- package/client-lib/connector/index.d.ts +0 -15
- package/client-lib/controls/AutoplayControls.d.ts +0 -17
- package/client-lib/controls/Controls.d.ts +0 -9
- package/client-lib/controls/DragControls.d.ts +0 -16
- package/client-lib/controls/KeyboardControls.d.ts +0 -14
- package/client-lib/controls/WheelControls.d.ts +0 -19
- package/client-lib/controls/index.cjs +0 -1
- package/client-lib/controls/index.d.ts +0 -5
- package/client-lib/controls/index.js +0 -213
- package/client-lib/counter/index.d.ts +0 -6
- package/client-lib/css-property/index.cjs +0 -1
- package/client-lib/css-property/index.d.ts +0 -17
- package/client-lib/css-property/index.js +0 -62
- package/client-lib/css-unit-parser/index.cjs +0 -8
- package/client-lib/css-unit-parser/index.d.ts +0 -6
- package/client-lib/css-unit-parser/index.js +0 -36
- package/client-lib/css-value-parser/index.d.ts +0 -6
- package/client-lib/dev/index.d.ts +0 -1
- package/client-lib/device/Device.d.ts +0 -19
- package/client-lib/device/Viewport.d.ts +0 -29
- package/client-lib/device/index.d.ts +0 -2
- package/client-lib/element-constructor/ElementConstructor.d.ts +0 -75
- package/client-lib/element-constructor/createStylesheet.d.ts +0 -3
- package/client-lib/element-constructor/createTheme.d.ts +0 -13
- package/client-lib/element-constructor/index.d.ts +0 -4
- package/client-lib/element-constructor/knownSvgTags.d.ts +0 -1
- package/client-lib/element-constructor/tags.d.ts +0 -119
- package/client-lib/element-resizer/index.cjs +0 -1
- package/client-lib/element-resizer/index.d.ts +0 -10
- package/client-lib/en3/core/En3Raycaster.d.ts +0 -21
- package/client-lib/en3/core/En3View.d.ts +0 -40
- package/client-lib/en3/core/en3.d.ts +0 -39
- package/client-lib/en3/core/en3Cache.d.ts +0 -4
- package/client-lib/en3/helpers/En3ComposerManager.d.ts +0 -5
- package/client-lib/en3/helpers/En3GridHelper.d.ts +0 -8
- package/client-lib/en3/helpers/En3Helpers.d.ts +0 -5
- package/client-lib/en3/helpers/En3Object3dManager.d.ts +0 -14
- package/client-lib/en3/helpers/En3OrbitControls.d.ts +0 -8
- package/client-lib/en3/helpers/En3ParametersManager.d.ts +0 -16
- package/client-lib/en3/helpers/En3TransformControls.d.ts +0 -8
- package/client-lib/en3/helpers/index.cjs +0 -1
- package/client-lib/en3/helpers/index.d.ts +0 -2
- package/client-lib/en3/index.d.ts +0 -3
- package/client-lib/en3/index.js +0 -6
- package/client-lib/en3/libs/MeshoptDecoder.d.ts +0 -1
- package/client-lib/en3/libs/index.d.ts +0 -1
- package/client-lib/en3/loaders/En3GLTFLoader.d.ts +0 -12
- package/client-lib/en3/loaders/En3TextureLoader.d.ts +0 -8
- package/client-lib/en3/loaders/index.cjs +0 -1
- package/client-lib/en3/loaders/index.d.ts +0 -3
- package/client-lib/en3/loaders/loaders.d.ts +0 -13
- package/client-lib/en3/misc/En3ModifiedMaterial.d.ts +0 -33
- package/client-lib/en3/misc/En3SourceManager.d.ts +0 -32
- package/client-lib/en3/misc/index.cjs +0 -10
- package/client-lib/en3/misc/index.d.ts +0 -2
- package/client-lib/en3/objects/En3Clip.d.ts +0 -15
- package/client-lib/en3/objects/En3ClipHelpers.d.ts +0 -6
- package/client-lib/en3/objects/En3GLTF.d.ts +0 -11
- package/client-lib/en3/objects/En3Image.d.ts +0 -8
- package/client-lib/en3/objects/En3ImageLike.d.ts +0 -25
- package/client-lib/en3/objects/En3SourceConsumer.d.ts +0 -5
- package/client-lib/en3/objects/En3Video.d.ts +0 -13
- package/client-lib/en3/objects/fluid/Advection.d.ts +0 -30
- package/client-lib/en3/objects/fluid/Divergence.d.ts +0 -23
- package/client-lib/en3/objects/fluid/En3Fluid.d.ts +0 -16
- package/client-lib/en3/objects/fluid/En3FluidElement.d.ts +0 -13
- package/client-lib/en3/objects/fluid/En3FluidPointer.d.ts +0 -13
- package/client-lib/en3/objects/fluid/ExternalForce.d.ts +0 -19
- package/client-lib/en3/objects/fluid/Poisson.d.ts +0 -24
- package/client-lib/en3/objects/fluid/Pressure.d.ts +0 -26
- package/client-lib/en3/objects/fluid/ShaderPass.d.ts +0 -24
- package/client-lib/en3/objects/fluid/Simulation.d.ts +0 -33
- package/client-lib/en3/objects/fluid/Viscous.d.ts +0 -30
- package/client-lib/en3/objects/fluid/index.d.ts +0 -3
- package/client-lib/en3/objects/index.d.ts +0 -7
- package/client-lib/en3/utils/coverTexture.d.ts +0 -7
- package/client-lib/en3/utils/dispose.d.ts +0 -3
- package/client-lib/en3/utils/getCurrentViewport.d.ts +0 -9
- package/client-lib/en3/utils/index.d.ts +0 -5
- package/client-lib/en3/utils/traverseMaterials.d.ts +0 -3
- package/client-lib/en3/utils/traverseMeshes.d.ts +0 -3
- package/client-lib/en3-CBBYE8rb.cjs +0 -8
- package/client-lib/image/index.d.ts +0 -11
- package/client-lib/index-Ctct2GyP.cjs +0 -9
- package/client-lib/intersector/index.cjs +0 -1
- package/client-lib/intersector/index.d.ts +0 -10
- package/client-lib/ladder/index.cjs +0 -1
- package/client-lib/ladder/index.d.ts +0 -24
- package/client-lib/layout-box/index.cjs +0 -1
- package/client-lib/layout-box/index.d.ts +0 -96
- package/client-lib/layout-box/index.js +0 -326
- package/client-lib/libs/path-data-polyfill.d.ts +0 -1
- package/client-lib/loading/index.cjs +0 -1
- package/client-lib/loading/index.d.ts +0 -39
- package/client-lib/media/index.cjs +0 -1
- package/client-lib/media/index.d.ts +0 -12
- package/client-lib/media/index.js +0 -30
- package/client-lib/modal/ModalElement.d.ts +0 -13
- package/client-lib/modal/index.cjs +0 -1
- package/client-lib/modal/index.d.ts +0 -1
- package/client-lib/morph/Link.d.ts +0 -7
- package/client-lib/morph/Morph.d.ts +0 -37
- package/client-lib/morph/index.cjs +0 -1
- package/client-lib/morph/index.d.ts +0 -1
- package/client-lib/morph/index.js +0 -235
- package/client-lib/notifier/index.cjs +0 -1
- package/client-lib/notifier/index.d.ts +0 -8
- package/client-lib/notifier/index.js +0 -40
- package/client-lib/order/index.d.ts +0 -22
- package/client-lib/pointer/Pointer.d.ts +0 -23
- package/client-lib/pointer/PointerElement.d.ts +0 -14
- package/client-lib/pointer/index.cjs +0 -1
- package/client-lib/pointer/index.d.ts +0 -2
- package/client-lib/popover/PopoverButtonElement.d.ts +0 -15
- package/client-lib/popover/PopoverElement.d.ts +0 -26
- package/client-lib/popover/index.cjs +0 -1
- package/client-lib/popover/index.d.ts +0 -2
- package/client-lib/router/Link.d.ts +0 -7
- package/client-lib/router/Route.d.ts +0 -21
- package/client-lib/router/Router.d.ts +0 -41
- package/client-lib/router/index.cjs +0 -1
- package/client-lib/router/index.d.ts +0 -2
- package/client-lib/scroll/ScrollBulletButtonsElement.d.ts +0 -12
- package/client-lib/scroll/ScrollButtonElement.d.ts +0 -6
- package/client-lib/scroll/ScrollElement.d.ts +0 -82
- package/client-lib/scroll/ScrollSection.d.ts +0 -23
- package/client-lib/scroll/ScrollSegmentElement.d.ts +0 -63
- package/client-lib/scroll/ScrollSetButtonElement.d.ts +0 -10
- package/client-lib/scroll/ScrollStepButtonElement.d.ts +0 -10
- package/client-lib/scroll/ScrollUserElement.d.ts +0 -7
- package/client-lib/scroll/ScrollbarElement.d.ts +0 -14
- package/client-lib/scroll/index.cjs +0 -1
- package/client-lib/scroll/index.d.ts +0 -6
- package/client-lib/scroll/index.js +0 -1154
- package/client-lib/scroll-entries/index.cjs +0 -1
- package/client-lib/scroll-entries/index.d.ts +0 -21
- package/client-lib/select/SelectElement.d.ts +0 -24
- package/client-lib/select/SelectHeadElement.d.ts +0 -13
- package/client-lib/select/SelectOptionElement.d.ts +0 -14
- package/client-lib/select/SelectUserElement.d.ts +0 -7
- package/client-lib/select/index.d.ts +0 -4
- package/client-lib/sequence/index.cjs +0 -1
- package/client-lib/sequence/index.d.ts +0 -21
- package/client-lib/slicer/DecoderElement.d.ts +0 -11
- package/client-lib/slicer/Letter.d.ts +0 -11
- package/client-lib/slicer/SlicerElement.d.ts +0 -21
- package/client-lib/slicer/Word.d.ts +0 -17
- package/client-lib/slicer/index.cjs +0 -11
- package/client-lib/slicer/index.d.ts +0 -4
- package/client-lib/source/SourceClass.d.ts +0 -11
- package/client-lib/source/SourceElement.d.ts +0 -25
- package/client-lib/source/SourceManager.d.ts +0 -14
- package/client-lib/source/SourceSet.d.ts +0 -9
- package/client-lib/source/index.cjs +0 -5
- package/client-lib/source/index.d.ts +0 -4
- package/client-lib/store/Cached.d.ts +0 -18
- package/client-lib/store/Composed.d.ts +0 -8
- package/client-lib/store/Derived.d.ts +0 -13
- package/client-lib/store/DerivedArray.d.ts +0 -13
- package/client-lib/store/Resource.d.ts +0 -12
- package/client-lib/store/Store.d.ts +0 -76
- package/client-lib/store/StoreRegistry.d.ts +0 -23
- package/client-lib/store/index.cjs +0 -1
- package/client-lib/store/index.d.ts +0 -7
- package/client-lib/svg-path-data/index.d.ts +0 -15
- package/client-lib/tags-B0do5eeb.cjs +0 -1
- package/client-lib/tags-wG5k157g.js +0 -860
- package/client-lib/test/starting-style/index.d.ts +0 -1
- package/client-lib/theme/index.d.ts +0 -35
- package/client-lib/ticker/index.cjs +0 -1
- package/client-lib/ticker/index.d.ts +0 -22
- package/client-lib/ticker/index.js +0 -125
- package/client-lib/tweaker/TweakerBooleanManagerElement.d.ts +0 -11
- package/client-lib/tweaker/TweakerColorManagerElement.d.ts +0 -11
- package/client-lib/tweaker/TweakerElement.d.ts +0 -18
- package/client-lib/tweaker/TweakerFieldElement.d.ts +0 -21
- package/client-lib/tweaker/TweakerFolderElement.d.ts +0 -24
- package/client-lib/tweaker/TweakerLinkManagerElement.d.ts +0 -11
- package/client-lib/tweaker/TweakerNumberManagerElement.d.ts +0 -14
- package/client-lib/tweaker/TweakerSelectManagerElement.d.ts +0 -11
- package/client-lib/tweaker/TweakerStoreManagerElement.d.ts +0 -10
- package/client-lib/tweaker/TweakerStringManagerElement.d.ts +0 -11
- package/client-lib/tweaker/index.cjs +0 -10
- package/client-lib/tweaker/index.d.ts +0 -1
- package/client-lib/tweaker/tweakerManagerConstructors.d.ts +0 -6
- package/client-lib/tweaker/tweakerStorage.d.ts +0 -23
- package/client-lib/utils/array.d.ts +0 -2
- package/client-lib/utils/attributes.d.ts +0 -2
- package/client-lib/utils/browser.d.ts +0 -1
- package/client-lib/utils/bytes.d.ts +0 -1
- package/client-lib/utils/canvas.d.ts +0 -7
- package/client-lib/utils/collisions.d.ts +0 -4
- package/client-lib/utils/coordinates.d.ts +0 -14
- package/client-lib/utils/cssom.d.ts +0 -5
- package/client-lib/utils/decoding.d.ts +0 -2
- package/client-lib/utils/dom.d.ts +0 -5
- package/client-lib/utils/easings.d.ts +0 -17
- package/client-lib/utils/events.d.ts +0 -8
- package/client-lib/utils/file.d.ts +0 -1
- package/client-lib/utils/function.d.ts +0 -2
- package/client-lib/utils/gestures.d.ts +0 -1
- package/client-lib/utils/index.d.ts +0 -26
- package/client-lib/utils/layout.d.ts +0 -3
- package/client-lib/utils/math.d.ts +0 -12
- package/client-lib/utils/number.d.ts +0 -3
- package/client-lib/utils/object.d.ts +0 -9
- package/client-lib/utils/polyfills.d.ts +0 -1
- package/client-lib/utils/promises.d.ts +0 -1
- package/client-lib/utils/string.d.ts +0 -8
- package/client-lib/utils/style.d.ts +0 -2
- package/client-lib/utils/ts-shape.d.ts +0 -20
- package/client-lib/utils/ts-utility.d.ts +0 -26
- package/client-lib/utils/url.d.ts +0 -9
- package/client-lib/video/index.cjs +0 -1
- package/client-lib/video/index.d.ts +0 -22
- package/client-lib/window-resizer/index.cjs +0 -1
- package/client-lib/window-resizer/index.d.ts +0 -10
- package/client-lib/window-resizer/index.js +0 -46
- package/server-lib/optimizer/FFmpeg.d.ts +0 -10
- package/server-lib/optimizer/generateFavicon.d.ts +0 -4
- package/server-lib/optimizer/generateSequence.d.ts +0 -3
- package/server-lib/optimizer/generateSprite.d.ts +0 -4
- package/server-lib/optimizer/index.d.ts +0 -10
- package/server-lib/optimizer/index.js +0 -404
- package/server-lib/optimizer/inputFiles.d.ts +0 -26
- package/server-lib/optimizer/optimize.d.ts +0 -13
- package/server-lib/optimizer/optimizeImage.d.ts +0 -4
- package/server-lib/optimizer/optimizeVideo.d.ts +0 -3
- package/server-lib/optimizer/optimizer.d.ts +0 -5
- package/server-lib/optimizer/types.d.ts +0 -51
- package/server-lib/optimizer/utils.d.ts +0 -1
- package/server-lib/utils/buffer.d.ts +0 -1
- package/server-lib/utils/fs.d.ts +0 -11
- package/server-lib/utils/index.d.ts +0 -5
- package/server-lib/utils/index.js +0 -65
- package/server-lib/utils/math.d.ts +0 -1
- package/server-lib/utils/path.d.ts +0 -3
- package/server-lib/utils/types.d.ts +0 -8
- /package/{client-lib → lib}/attributes-69we3byR.js +0 -0
- /package/{client-lib → lib}/attributes-Bf2svn4j.cjs +0 -0
- /package/{client-lib → lib}/browser-0zX67oeU.js +0 -0
- /package/{client-lib → lib}/browser-CpzFX2xg.cjs +0 -0
- /package/{client-lib → lib}/canvas-CU5Xjahf.cjs +0 -0
- /package/{client-lib → lib}/canvas-DeZ0SLUJ.js +0 -0
- /package/{client-lib → lib}/coordinates-CgdGoSYs.js +0 -0
- /package/{client-lib → lib}/coordinates-D8Np3cPD.cjs +0 -0
- /package/{client-lib → lib}/createTheme-CHnsCgAr.js +0 -0
- /package/{client-lib → lib}/createTheme-Cfaw9UmV.cjs +0 -0
- /package/{client-lib → lib}/css-value-parser/index.cjs +0 -0
- /package/{client-lib → lib}/css-value-parser/index.js +0 -0
- /package/{client-lib → lib}/dom-JBOkFLTh.cjs +0 -0
- /package/{client-lib → lib}/dom-P5QbAASX.js +0 -0
- /package/{client-lib → lib}/easings-BKi40vHz.js +0 -0
- /package/{client-lib → lib}/easings-DsS5-Kqc.cjs +0 -0
- /package/{client-lib → lib}/en3/libs/index.cjs +0 -0
- /package/{client-lib → lib}/events-BGwqaxVW.cjs +0 -0
- /package/{client-lib → lib}/events-CJTUMSLU.js +0 -0
- /package/{client-lib → lib}/file-EevnUtRj.cjs +0 -0
- /package/{client-lib → lib}/file-lxi_oXJf.js +0 -0
- /package/{client-lib → lib}/function-C10DGppn.js +0 -0
- /package/{client-lib → lib}/function-MthRj-GJ.cjs +0 -0
- /package/{client-lib → lib}/gestures-D2Fdra_G.js +0 -0
- /package/{client-lib → lib}/gestures-DHLrn6Q8.cjs +0 -0
- /package/{client-lib → lib}/layout-8ryRAMGJ.cjs +0 -0
- /package/{client-lib → lib}/layout-HoBT_Da2.js +0 -0
- /package/{client-lib → lib}/math-BOBiC4TN.js +0 -0
- /package/{client-lib → lib}/math-GDWEqu7y.cjs +0 -0
- /package/{client-lib → lib}/object-CCiXnER2.cjs +0 -0
- /package/{client-lib → lib}/object-D6MVWB4l.js +0 -0
- /package/{client-lib → lib}/order/index.cjs +0 -0
- /package/{client-lib → lib}/order/index.js +0 -0
- /package/{client-lib → lib}/polyfills-CM4SCDTt.cjs +0 -0
- /package/{client-lib → lib}/polyfills-X6KXuHg-.js +0 -0
- /package/{client-lib → lib}/string-DhgS_iFl.cjs +0 -0
- /package/{client-lib → lib}/string-f0Dnk0L1.js +0 -0
- /package/{client-lib → lib}/style-At6aDoqG.cjs +0 -0
- /package/{client-lib → lib}/style-j2TwriJ_.js +0 -0
- /package/{client-lib → lib}/svg-path-data/index.cjs +0 -0
- /package/{client-lib → lib}/url-C3dWnJQg.cjs +0 -0
- /package/{client-lib → lib}/url-DMNfW7uN.js +0 -0
- /package/{client-lib → lib}/utils/index.cjs +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var M=Object.defineProperty;var S=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;var v=t=>{throw TypeError(t)};var k=(t,s,e)=>s in t?M(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e,w=(t,s)=>{for(var e in s||(s={}))V.call(s,e)&&k(t,e,s[e]);if(S)for(var e of S(s))m.call(s,e)&&k(t,e,s[e]);return t};var g=(t,s,e)=>s.has(t)||v("Cannot "+e);var o=(t,s,e)=>(g(t,s,"read from private field"),e?e.call(t):s.get(t)),p=(t,s,e)=>s.has(t)?v("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,e),f=(t,s,e,i)=>(g(t,s,"write to private field"),i?i.call(t,e):s.set(t,e),e),b=(t,s,e)=>(g(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("../Store-BnA-dJsE.cjs");var d,u,a,h,y;class x extends q.Store{constructor(e){super(e,{equalityCheck:()=>!1});p(this,h);p(this,d);p(this,u);p(this,a);f(this,d,w({},e)),f(this,u,new Map),f(this,a,new Set)}get base(){return o(this,d)}get steps(){return o(this,u)}close(){super.close(),o(this,a).clear(),o(this,u).clear()}bind(e){o(this,a).add(e)}unbind(e){o(this,a).delete(e)}deleteStep(e){this.steps.delete(e)}getStepValue(e){var i;return(i=this.steps.get(e))==null?void 0:i[1]}getExcludedStepsValue(...e){const i=new Map;return e.map(c=>{const n=this.steps.get(c);n&&i.set(c,n)}),b(this,h,y).call(this,i)}getIncludedStepsValue(...e){const i=new Map(this.steps);return e.map(c=>{this.steps.has(c)&&i.delete(c)}),b(this,h,y).call(this,i)}setStep(e,i,c){const n={};for(const r in this.current)n[r]=c[r]||0;this.steps.set(e,[i,n]),this.calculate()}calculate(){this.current=b(this,h,y).call(this,o(this,u))}}d=new WeakMap,u=new WeakMap,a=new WeakMap,h=new WeakSet,y=function(e){const i={};for(const c in this.base)i[c]=this.base[c];for(const c of e){const n=c[1];if(n[0]==="+")for(const r in this.base){const l=n[1][r];i[r]+=l}else if(n[0]==="*")for(const r in this.base){const l=n[1][r];i[r]*=l}else if(n[0]==="/")for(const r in this.base){const l=n[1][r];i[r]/=l}else if(n[0]==="-")for(const r in this.base){const l=n[1][r];i[r]-=l}}for(const c of o(this,a))for(const n in i)c[n]=i[n];return i};exports.Ladder=x;
|
|
@@ -1,36 +1,31 @@
|
|
|
1
|
-
var
|
|
1
|
+
var V = Object.defineProperty;
|
|
2
2
|
var k = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
V.call(t, e) && S(s, e, t[e]);
|
|
7
|
-
if (k)
|
|
8
|
-
for (var e of k(t))
|
|
9
|
-
m.call(t, e) && S(s, e, t[e]);
|
|
10
|
-
return s;
|
|
3
|
+
var m = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var v = (t) => {
|
|
5
|
+
throw TypeError(t);
|
|
11
6
|
};
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
var S = (t, s, e) => s in t ? V(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e, w = (t, s) => {
|
|
8
|
+
for (var e in s || (s = {}))
|
|
9
|
+
m.call(s, e) && S(t, e, s[e]);
|
|
10
|
+
if (k)
|
|
11
|
+
for (var e of k(s))
|
|
12
|
+
x.call(s, e) && S(t, e, s[e]);
|
|
13
|
+
return t;
|
|
15
14
|
};
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
t instanceof WeakSet ? t.add(s) : t.set(s, e);
|
|
20
|
-
}, d = (s, t, e, i) => (g(s, t, "write to private field"), i ? i.call(s, e) : t.set(s, e), e);
|
|
21
|
-
var b = (s, t, e) => (g(s, t, "access private method"), e);
|
|
22
|
-
import { S as x } from "../Store-Qr3SNOSf.js";
|
|
15
|
+
var g = (t, s, e) => s.has(t) || v("Cannot " + e);
|
|
16
|
+
var r = (t, s, e) => (g(t, s, "read from private field"), e ? e.call(t) : s.get(t)), p = (t, s, e) => s.has(t) ? v("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(t) : s.set(t, e), d = (t, s, e, i) => (g(t, s, "write to private field"), i ? i.call(t, e) : s.set(t, e), e), b = (t, s, e) => (g(t, s, "access private method"), e);
|
|
17
|
+
import { S as M } from "../Store-DGtldlBH.js";
|
|
23
18
|
var f, h, a, u, y;
|
|
24
|
-
class
|
|
19
|
+
class E extends M {
|
|
25
20
|
constructor(e) {
|
|
26
21
|
super(e, {
|
|
27
22
|
equalityCheck: () => !1
|
|
28
23
|
});
|
|
29
24
|
p(this, u);
|
|
30
|
-
p(this, f
|
|
31
|
-
p(this, h
|
|
32
|
-
p(this, a
|
|
33
|
-
d(this, f,
|
|
25
|
+
p(this, f);
|
|
26
|
+
p(this, h);
|
|
27
|
+
p(this, a);
|
|
28
|
+
d(this, f, w({}, e)), d(this, h, /* @__PURE__ */ new Map()), d(this, a, /* @__PURE__ */ new Set());
|
|
34
29
|
}
|
|
35
30
|
get base() {
|
|
36
31
|
return r(this, f);
|
|
@@ -110,5 +105,5 @@ f = new WeakMap(), h = new WeakMap(), a = new WeakMap(), u = new WeakSet(), y =
|
|
|
110
105
|
return i;
|
|
111
106
|
};
|
|
112
107
|
export {
|
|
113
|
-
|
|
108
|
+
E as Ladder
|
|
114
109
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var J=i=>{throw TypeError(i)};var N=(i,e,s)=>e.has(i)||J("Cannot "+s);var t=(i,e,s)=>(N(i,e,"read from private field"),s?s.call(i):e.get(i)),h=(i,e,s)=>e.has(i)?J("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,s),r=(i,e,s,l)=>(N(i,e,"write to private field"),l?l.call(i,s):e.set(i,s),s),L=(i,e,s)=>(N(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const St=require("../css-unit-parser/index.cjs"),$=require("../ladder/index.cjs"),Q=require("../order/index.cjs"),F=require("../scroll-entries/index.cjs"),j=require("../ticker/index.cjs"),tt=require("../browser-CpzFX2xg.cjs"),et=require("../dom-JBOkFLTh.cjs"),V=require("../layout-8ryRAMGJ.cjs"),st=require("../element-resizer/index.cjs"),it=require("../window-resizer/index.cjs"),dt=require("../notifier/index.cjs");function ht(i){const e=Math.sqrt(i.m11*i.m11+i.m12*i.m12+i.m13*i.m13),s=Math.sqrt(i.m21*i.m21+i.m22*i.m22+i.m23*i.m23),l=Math.sqrt(i.m31*i.m31+i.m32*i.m32+i.m33*i.m33),y=Math.atan2(i.m32,i.m33),B=Math.atan2(-i.m31,Math.sqrt(i.m32*i.m32+i.m33*i.m33)),K=Math.atan2(i.m21,i.m11),a=i.m41,q=i.m42*-1,O=i.m43;return{scaleX:e,scaleY:s,scaleZ:l,rotationX:y,rotationY:B,rotationZ:K,translationX:a,translationY:q,translationZ:O}}var u,b,m,R,A,T,v,w,W,k,x,_,X,S,d,C,Y,H,U,g,p,z,o,n,c,E,M,I,f,G,rt,nt,lt,P,D,Z;class ft{constructor(e,s){h(this,f);h(this,u,null);h(this,b,null);h(this,m,[]);h(this,R,"auto");h(this,A,"top");h(this,T,!1);h(this,v,!0);h(this,w,!0);h(this,W,!0);h(this,k,!0);h(this,x,0);h(this,_,0);h(this,X,0);h(this,S,0);h(this,d,0);h(this,C,0);h(this,Y,0);h(this,H,0);h(this,U,0);h(this,g,{x:0,y:0,z:0});h(this,p,{x:0,y:0,z:0});h(this,z,{x:1,y:1,z:1});h(this,o,new $.Ladder({x:0,y:0,z:0}));h(this,n,new $.Ladder({x:0,y:0,z:0}));h(this,c,new $.Ladder({x:0,y:0,z:0}));h(this,E,{x:0,y:0,z:0});h(this,M,new Map);h(this,I,new dt.Notifier);h(this,P,()=>{tt.isBrowser&&L(this,f,nt).call(this)});h(this,D,()=>{L(this,f,lt).call(this),L(this,f,G).call(this)});h(this,Z,()=>{const e=F.scrollEntries.getAll(this.element);t(this,M).forEach((s,l)=>{e.includes(l)||(this.deleteScrollStep(s),t(this,M).delete(l))}),e.forEach(s=>{if(!t(this,M).has(s)){const l=()=>s;t(this,M).set(s,l),this.setScrollStep(l)}})});tt.isBrowser&&(r(this,u,et.getElement(e)||document.body),r(this,b,et.getElement(s==null?void 0:s.containerElement)||document.body),r(this,R,(s==null?void 0:s.scrollAxis)||"auto"),r(this,A,(s==null?void 0:s.frontSide)||"top"),r(this,T,(s==null?void 0:s.cartesian)||!1),r(this,v,(s==null?void 0:s.sizeStep)!==void 0?s.sizeStep:!0),r(this,w,(s==null?void 0:s.positionStep)!==void 0?s.positionStep:!0),r(this,W,(s==null?void 0:s.transformStep)!==void 0?s.transformStep:!0),r(this,k,(s==null?void 0:s.scrollStep)!==void 0?s.scrollStep:!0),t(this,c).setStep("_size","+",{x:1,y:1,z:1}),t(this,n).setStep("_position","+",{x:0,y:0,z:0}),t(this,c).setStep("_scale","*",{x:1,y:1,z:1}),t(this,n).setStep("_translation","+",{x:0,y:0,z:0}),t(this,o).setStep("_rotation","+",{x:0,y:0,z:0}),t(this,k)&&(F.scrollEntries.notifier.subscribe(t(this,Z)),t(this,Z).call(this)),st.elementResizer.subscribe(this.element,t(this,P)),it.windowResizer.subscribe(t(this,P),Q.RESIZE_ORDER.LAYOUT_BOX),j.ticker.subscribe(t(this,D),{order:Q.TICK_ORDER.LAYOUT_BOX,culling:s!=null&&s.culling?this.element:void 0}))}get element(){return t(this,u)}get containerElement(){return t(this,b)}get position(){return t(this,n).current}get rotation(){return t(this,o).current}get scale(){return t(this,c).current}get scrollValue(){return t(this,E)}get left(){return t(this,d)}get top(){return t(this,S)}get CSSTranslation(){return t(this,g)}get CSSRotation(){return t(this,p)}get CSSScale(){return t(this,z)}get front(){return t(this,C)}get width(){return t(this,x)}get height(){return t(this,_)}get depth(){return t(this,X)}destroy(){j.ticker.unsubscribe(t(this,D)),st.elementResizer.unsubscribe(t(this,P)),it.windowResizer.unsubscribe(t(this,P)),F.scrollEntries.notifier.unsubscribe(t(this,Z)),t(this,M).clear(),t(this,n).close(),t(this,o).close(),t(this,c).close()}bindObject(e){e.position&&t(this,n).bind(e.position),e.rotation&&t(this,o).bind(e.rotation),e.scale&&t(this,c).bind(e.scale)}unbindObject(e){e.position&&t(this,n).unbind(e.position),e.rotation&&t(this,o).unbind(e.rotation),e.scale&&t(this,c).unbind(e.scale)}setScrollStep(e){return t(this,m).includes(e)||t(this,m).push(e),()=>this.deleteScrollStep(e)}deleteScrollStep(e){r(this,m,t(this,m).filter(s=>s!==e))}setPositionStep(...e){t(this,n).setStep(...e)}getPositionStep(...e){return t(this,n).getStepValue(...e)}setRotationStep(...e){t(this,o).setStep(...e)}getRotationStep(...e){return t(this,o).getStepValue(...e)}getExcludedRotationSteps(...e){return t(this,o).getExcludedStepsValue(...e)}getIncludedRotationSteps(...e){return t(this,o).getIncludedStepsValue(...e)}setScaleStep(...e){t(this,c).setStep(...e)}getScaleStep(...e){return t(this,c).getStepValue(...e)}getExcludedScaleSteps(...e){return t(this,c).getExcludedStepsValue(...e)}getIncludedScaleSteps(...e){return t(this,c).getIncludedStepsValue(...e)}deletePositionStep(...e){t(this,n).deleteStep(...e)}getExcludedPositionSteps(...e){return t(this,n).getExcludedStepsValue(...e)}getIncludedPositionSteps(...e){return t(this,n).getIncludedStepsValue(...e)}deleteRotationStep(...e){t(this,o).deleteStep(...e)}deleteScaleStep(...e){t(this,c).deleteStep(...e)}onPosition(...e){return t(this,n).subscribe(...e)}offPosition(...e){t(this,n).unsubscribe(...e)}onScale(...e){return t(this,c).subscribe(...e)}offScale(...e){t(this,c).unsubscribe(...e)}onRotation(...e){return t(this,o).subscribe(...e)}offRotation(...e){t(this,o).unsubscribe(...e)}onResize(...e){return t(this,I).subscribe(...e)}offResize(...e){return t(this,I).unsubscribe(...e)}}u=new WeakMap,b=new WeakMap,m=new WeakMap,R=new WeakMap,A=new WeakMap,T=new WeakMap,v=new WeakMap,w=new WeakMap,W=new WeakMap,k=new WeakMap,x=new WeakMap,_=new WeakMap,X=new WeakMap,S=new WeakMap,d=new WeakMap,C=new WeakMap,Y=new WeakMap,H=new WeakMap,U=new WeakMap,g=new WeakMap,p=new WeakMap,z=new WeakMap,o=new WeakMap,n=new WeakMap,c=new WeakMap,E=new WeakMap,M=new WeakMap,I=new WeakMap,f=new WeakSet,G=function(){t(this,c).calculate(),t(this,n).calculate(),t(this,o).calculate()},rt=function(){t(this,c).setStep("_size","+",{x:t(this,v)?t(this,x):1,y:t(this,v)?t(this,_):1,z:t(this,v)?t(this,X):1});const e=t(this,w)?t(this,Y):0,s=t(this,w)?t(this,H):0,l=t(this,w)?t(this,U):0;t(this,n).setStep("_position","+",{x:e,y:s,z:l}),t(this,W)?(t(this,c).setStep("_scale","*",{x:t(this,z).x,y:t(this,z).y,z:t(this,z).z}),t(this,n).setStep("_translation","+",{x:t(this,g).x,y:t(this,g).y,z:t(this,g).z}),t(this,o).setStep("_rotation","+",{x:t(this,p).x,y:t(this,p).y,z:t(this,p).z})):(t(this,c).setStep("_scale","*",{x:1,y:1,z:1}),t(this,n).setStep("_translation","+",{x:0,y:0,z:0}),t(this,o).setStep("_rotation","+",{x:0,y:0,z:0}))},nt=function(){const e=getComputedStyle(t(this,u));r(this,x,Math.max(t(this,u).clientWidth,1)),r(this,_,Math.max(t(this,u).clientHeight,1)),r(this,X,Math.max(St.cssUnitParser.parse(e.getPropertyValue("--depth")||"0px"),1));const s=V.getCumulativeOffsetLeft(t(this,b)),l=V.getCumulativeOffsetTop(t(this,b)),y=t(this,b).clientWidth,B=t(this,b).clientHeight;if(r(this,d,V.getCumulativeOffsetLeft(t(this,u))-s),r(this,S,V.getCumulativeOffsetTop(t(this,u))-l),t(this,R)==="z"){const q=t(this,d)/y,O=t(this,S)/B;r(this,d,(q-Math.floor(q))*y),r(this,S,(O-Math.floor(O))*B),t(this,A)==="left"?r(this,C,V.getCumulativeOffsetLeft(t(this,u))-s-t(this,d)):r(this,C,V.getCumulativeOffsetTop(t(this,u))-l-t(this,S))}if(r(this,d,t(this,d)+t(this,u).clientLeft),r(this,S,t(this,S)+t(this,u).clientTop),t(this,T)){const q=Math.round(y/2),O=Math.round(B/2),ct=t(this,x)?Math.round(t(this,x)/2):0,ot=t(this,_)?Math.round(t(this,_)/2):0,ut=t(this,d)-q+ct,at=(t(this,S)-O+ot)*-1;r(this,Y,ut),r(this,H,at)}else r(this,Y,t(this,d)),r(this,H,t(this,S));r(this,U,t(this,C)*-1);const K=new WebKitCSSMatrix(e.transform),a=ht(K);t(this,g).x=a.translationX,t(this,g).y=a.translationY,t(this,g).z=a.translationZ,t(this,z).x=a.scaleX,t(this,z).y=a.scaleY,t(this,z).z=a.scaleZ,t(this,p).x=a.rotationX,t(this,p).y=a.rotationY,t(this,p).z=a.rotationZ,L(this,f,rt).call(this),L(this,f,G).call(this),t(this,I).notify()},lt=function(){t(this,E).x=0,t(this,E).y=0,t(this,E).z=0;for(let e=0;e<t(this,m).length;e++){const s=t(this,m)[e]();let l=s.axis;t(this,R)!=="auto"&&(l=t(this,R));const y=s.value*(l==="x"?-1:t(this,T)?1:-1);t(this,E)[l]+=y,t(this,n).setStep(`_scroll_${e}`,"+",{[l]:y})}},P=new WeakMap,D=new WeakMap,Z=new WeakMap;exports.LayoutBox=ft;exports.decomposeCSSMatrix=ht;
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
var Q = (i) => {
|
|
2
|
+
throw TypeError(i);
|
|
3
|
+
};
|
|
4
|
+
var K = (i, e, s) => e.has(i) || Q("Cannot " + s);
|
|
5
|
+
var t = (i, e, s) => (K(i, e, "read from private field"), s ? s.call(i) : e.get(i)), h = (i, e, s) => e.has(i) ? Q("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, s), r = (i, e, s, l) => (K(i, e, "write to private field"), l ? l.call(i, s) : e.set(i, s), s), L = (i, e, s) => (K(i, e, "access private method"), s);
|
|
6
|
+
import { cssUnitParser as ut } from "../css-unit-parser/index.js";
|
|
7
|
+
import { Ladder as N } from "../ladder/index.js";
|
|
8
|
+
import { RESIZE_ORDER as St, TICK_ORDER as dt } from "../order/index.js";
|
|
9
|
+
import { scrollEntries as $ } from "../scroll-entries/index.js";
|
|
10
|
+
import { ticker as j } from "../ticker/index.js";
|
|
11
|
+
import { i as tt } from "../browser-0zX67oeU.js";
|
|
12
|
+
import { a as et } from "../dom-P5QbAASX.js";
|
|
13
|
+
import { g as F, a as G } from "../layout-HoBT_Da2.js";
|
|
14
|
+
import { elementResizer as st } from "../element-resizer/index.js";
|
|
15
|
+
import { windowResizer as it } from "../window-resizer/index.js";
|
|
16
|
+
import { Notifier as ft } from "../notifier/index.js";
|
|
17
|
+
function pt(i) {
|
|
18
|
+
const e = Math.sqrt(
|
|
19
|
+
i.m11 * i.m11 + i.m12 * i.m12 + i.m13 * i.m13
|
|
20
|
+
), s = Math.sqrt(
|
|
21
|
+
i.m21 * i.m21 + i.m22 * i.m22 + i.m23 * i.m23
|
|
22
|
+
), l = Math.sqrt(
|
|
23
|
+
i.m31 * i.m31 + i.m32 * i.m32 + i.m33 * i.m33
|
|
24
|
+
), y = Math.atan2(i.m32, i.m33), A = Math.atan2(
|
|
25
|
+
-i.m31,
|
|
26
|
+
Math.sqrt(i.m32 * i.m32 + i.m33 * i.m33)
|
|
27
|
+
), k = Math.atan2(i.m21, i.m11), u = i.m41, V = i.m42 * -1, O = i.m43;
|
|
28
|
+
return {
|
|
29
|
+
scaleX: e,
|
|
30
|
+
scaleY: s,
|
|
31
|
+
scaleZ: l,
|
|
32
|
+
rotationX: y,
|
|
33
|
+
rotationY: A,
|
|
34
|
+
rotationZ: k,
|
|
35
|
+
translationX: u,
|
|
36
|
+
translationY: V,
|
|
37
|
+
translationZ: O
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
var a, z, b, _, W, X, v, w, q, B, x, M, Y, S, d, C, H, I, D, p, m, g, c, n, o, E, R, T, f, J, ht, rt, nt, P, U, Z;
|
|
41
|
+
class Ct {
|
|
42
|
+
constructor(e, s) {
|
|
43
|
+
h(this, f);
|
|
44
|
+
h(this, a, null);
|
|
45
|
+
h(this, z, null);
|
|
46
|
+
h(this, b, []);
|
|
47
|
+
h(this, _, "auto");
|
|
48
|
+
h(this, W, "top");
|
|
49
|
+
h(this, X, !1);
|
|
50
|
+
h(this, v, !0);
|
|
51
|
+
h(this, w, !0);
|
|
52
|
+
h(this, q, !0);
|
|
53
|
+
h(this, B, !0);
|
|
54
|
+
h(this, x, 0);
|
|
55
|
+
h(this, M, 0);
|
|
56
|
+
h(this, Y, 0);
|
|
57
|
+
h(this, S, 0);
|
|
58
|
+
h(this, d, 0);
|
|
59
|
+
h(this, C, 0);
|
|
60
|
+
h(this, H, 0);
|
|
61
|
+
h(this, I, 0);
|
|
62
|
+
h(this, D, 0);
|
|
63
|
+
h(this, p, { x: 0, y: 0, z: 0 });
|
|
64
|
+
h(this, m, { x: 0, y: 0, z: 0 });
|
|
65
|
+
h(this, g, { x: 1, y: 1, z: 1 });
|
|
66
|
+
h(this, c, new N({ x: 0, y: 0, z: 0 }));
|
|
67
|
+
h(this, n, new N({ x: 0, y: 0, z: 0 }));
|
|
68
|
+
h(this, o, new N({ x: 0, y: 0, z: 0 }));
|
|
69
|
+
h(this, E, { x: 0, y: 0, z: 0 });
|
|
70
|
+
h(this, R, /* @__PURE__ */ new Map());
|
|
71
|
+
h(this, T, new ft());
|
|
72
|
+
h(this, P, () => {
|
|
73
|
+
tt && L(this, f, rt).call(this);
|
|
74
|
+
});
|
|
75
|
+
h(this, U, () => {
|
|
76
|
+
L(this, f, nt).call(this), L(this, f, J).call(this);
|
|
77
|
+
});
|
|
78
|
+
h(this, Z, () => {
|
|
79
|
+
const e = $.getAll(this.element);
|
|
80
|
+
t(this, R).forEach((s, l) => {
|
|
81
|
+
e.includes(l) || (this.deleteScrollStep(s), t(this, R).delete(l));
|
|
82
|
+
}), e.forEach((s) => {
|
|
83
|
+
if (!t(this, R).has(s)) {
|
|
84
|
+
const l = () => s;
|
|
85
|
+
t(this, R).set(s, l), this.setScrollStep(l);
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
tt && (r(this, a, et(e) || document.body), r(this, z, et(s == null ? void 0 : s.containerElement) || document.body), r(this, _, (s == null ? void 0 : s.scrollAxis) || "auto"), r(this, W, (s == null ? void 0 : s.frontSide) || "top"), r(this, X, (s == null ? void 0 : s.cartesian) || !1), r(this, v, (s == null ? void 0 : s.sizeStep) !== void 0 ? s.sizeStep : !0), r(this, w, (s == null ? void 0 : s.positionStep) !== void 0 ? s.positionStep : !0), r(this, q, (s == null ? void 0 : s.transformStep) !== void 0 ? s.transformStep : !0), r(this, B, (s == null ? void 0 : s.scrollStep) !== void 0 ? s.scrollStep : !0), t(this, o).setStep("_size", "+", {
|
|
90
|
+
x: 1,
|
|
91
|
+
y: 1,
|
|
92
|
+
z: 1
|
|
93
|
+
}), t(this, n).setStep("_position", "+", {
|
|
94
|
+
x: 0,
|
|
95
|
+
y: 0,
|
|
96
|
+
z: 0
|
|
97
|
+
}), t(this, o).setStep("_scale", "*", {
|
|
98
|
+
x: 1,
|
|
99
|
+
y: 1,
|
|
100
|
+
z: 1
|
|
101
|
+
}), t(this, n).setStep("_translation", "+", {
|
|
102
|
+
x: 0,
|
|
103
|
+
y: 0,
|
|
104
|
+
z: 0
|
|
105
|
+
}), t(this, c).setStep("_rotation", "+", {
|
|
106
|
+
x: 0,
|
|
107
|
+
y: 0,
|
|
108
|
+
z: 0
|
|
109
|
+
}), t(this, B) && ($.notifier.subscribe(t(this, Z)), t(this, Z).call(this)), st.subscribe(this.element, t(this, P)), it.subscribe(t(this, P), St.LAYOUT_BOX), j.subscribe(t(this, U), {
|
|
110
|
+
order: dt.LAYOUT_BOX,
|
|
111
|
+
culling: s != null && s.culling ? this.element : void 0
|
|
112
|
+
}));
|
|
113
|
+
}
|
|
114
|
+
get element() {
|
|
115
|
+
return t(this, a);
|
|
116
|
+
}
|
|
117
|
+
get containerElement() {
|
|
118
|
+
return t(this, z);
|
|
119
|
+
}
|
|
120
|
+
get position() {
|
|
121
|
+
return t(this, n).current;
|
|
122
|
+
}
|
|
123
|
+
get rotation() {
|
|
124
|
+
return t(this, c).current;
|
|
125
|
+
}
|
|
126
|
+
get scale() {
|
|
127
|
+
return t(this, o).current;
|
|
128
|
+
}
|
|
129
|
+
get scrollValue() {
|
|
130
|
+
return t(this, E);
|
|
131
|
+
}
|
|
132
|
+
get left() {
|
|
133
|
+
return t(this, d);
|
|
134
|
+
}
|
|
135
|
+
get top() {
|
|
136
|
+
return t(this, S);
|
|
137
|
+
}
|
|
138
|
+
get CSSTranslation() {
|
|
139
|
+
return t(this, p);
|
|
140
|
+
}
|
|
141
|
+
get CSSRotation() {
|
|
142
|
+
return t(this, m);
|
|
143
|
+
}
|
|
144
|
+
get CSSScale() {
|
|
145
|
+
return t(this, g);
|
|
146
|
+
}
|
|
147
|
+
get front() {
|
|
148
|
+
return t(this, C);
|
|
149
|
+
}
|
|
150
|
+
get width() {
|
|
151
|
+
return t(this, x);
|
|
152
|
+
}
|
|
153
|
+
get height() {
|
|
154
|
+
return t(this, M);
|
|
155
|
+
}
|
|
156
|
+
get depth() {
|
|
157
|
+
return t(this, Y);
|
|
158
|
+
}
|
|
159
|
+
destroy() {
|
|
160
|
+
j.unsubscribe(t(this, U)), st.unsubscribe(t(this, P)), it.unsubscribe(t(this, P)), $.notifier.unsubscribe(t(this, Z)), t(this, R).clear(), t(this, n).close(), t(this, c).close(), t(this, o).close();
|
|
161
|
+
}
|
|
162
|
+
bindObject(e) {
|
|
163
|
+
e.position && t(this, n).bind(e.position), e.rotation && t(this, c).bind(e.rotation), e.scale && t(this, o).bind(e.scale);
|
|
164
|
+
}
|
|
165
|
+
unbindObject(e) {
|
|
166
|
+
e.position && t(this, n).unbind(e.position), e.rotation && t(this, c).unbind(e.rotation), e.scale && t(this, o).unbind(e.scale);
|
|
167
|
+
}
|
|
168
|
+
setScrollStep(e) {
|
|
169
|
+
return t(this, b).includes(e) || t(this, b).push(e), () => this.deleteScrollStep(e);
|
|
170
|
+
}
|
|
171
|
+
deleteScrollStep(e) {
|
|
172
|
+
r(this, b, t(this, b).filter(
|
|
173
|
+
(s) => s !== e
|
|
174
|
+
));
|
|
175
|
+
}
|
|
176
|
+
setPositionStep(...e) {
|
|
177
|
+
t(this, n).setStep(...e);
|
|
178
|
+
}
|
|
179
|
+
getPositionStep(...e) {
|
|
180
|
+
return t(this, n).getStepValue(...e);
|
|
181
|
+
}
|
|
182
|
+
setRotationStep(...e) {
|
|
183
|
+
t(this, c).setStep(...e);
|
|
184
|
+
}
|
|
185
|
+
getRotationStep(...e) {
|
|
186
|
+
return t(this, c).getStepValue(...e);
|
|
187
|
+
}
|
|
188
|
+
getExcludedRotationSteps(...e) {
|
|
189
|
+
return t(this, c).getExcludedStepsValue(...e);
|
|
190
|
+
}
|
|
191
|
+
getIncludedRotationSteps(...e) {
|
|
192
|
+
return t(this, c).getIncludedStepsValue(...e);
|
|
193
|
+
}
|
|
194
|
+
setScaleStep(...e) {
|
|
195
|
+
t(this, o).setStep(...e);
|
|
196
|
+
}
|
|
197
|
+
getScaleStep(...e) {
|
|
198
|
+
return t(this, o).getStepValue(...e);
|
|
199
|
+
}
|
|
200
|
+
getExcludedScaleSteps(...e) {
|
|
201
|
+
return t(this, o).getExcludedStepsValue(...e);
|
|
202
|
+
}
|
|
203
|
+
getIncludedScaleSteps(...e) {
|
|
204
|
+
return t(this, o).getIncludedStepsValue(...e);
|
|
205
|
+
}
|
|
206
|
+
deletePositionStep(...e) {
|
|
207
|
+
t(this, n).deleteStep(...e);
|
|
208
|
+
}
|
|
209
|
+
getExcludedPositionSteps(...e) {
|
|
210
|
+
return t(this, n).getExcludedStepsValue(...e);
|
|
211
|
+
}
|
|
212
|
+
getIncludedPositionSteps(...e) {
|
|
213
|
+
return t(this, n).getIncludedStepsValue(...e);
|
|
214
|
+
}
|
|
215
|
+
deleteRotationStep(...e) {
|
|
216
|
+
t(this, c).deleteStep(...e);
|
|
217
|
+
}
|
|
218
|
+
deleteScaleStep(...e) {
|
|
219
|
+
t(this, o).deleteStep(...e);
|
|
220
|
+
}
|
|
221
|
+
onPosition(...e) {
|
|
222
|
+
return t(this, n).subscribe(...e);
|
|
223
|
+
}
|
|
224
|
+
offPosition(...e) {
|
|
225
|
+
t(this, n).unsubscribe(...e);
|
|
226
|
+
}
|
|
227
|
+
onScale(...e) {
|
|
228
|
+
return t(this, o).subscribe(...e);
|
|
229
|
+
}
|
|
230
|
+
offScale(...e) {
|
|
231
|
+
t(this, o).unsubscribe(...e);
|
|
232
|
+
}
|
|
233
|
+
onRotation(...e) {
|
|
234
|
+
return t(this, c).subscribe(...e);
|
|
235
|
+
}
|
|
236
|
+
offRotation(...e) {
|
|
237
|
+
t(this, c).unsubscribe(...e);
|
|
238
|
+
}
|
|
239
|
+
onResize(...e) {
|
|
240
|
+
return t(this, T).subscribe(...e);
|
|
241
|
+
}
|
|
242
|
+
offResize(...e) {
|
|
243
|
+
return t(this, T).unsubscribe(...e);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
a = new WeakMap(), z = new WeakMap(), b = new WeakMap(), _ = new WeakMap(), W = new WeakMap(), X = new WeakMap(), v = new WeakMap(), w = new WeakMap(), q = new WeakMap(), B = new WeakMap(), x = new WeakMap(), M = new WeakMap(), Y = new WeakMap(), S = new WeakMap(), d = new WeakMap(), C = new WeakMap(), H = new WeakMap(), I = new WeakMap(), D = new WeakMap(), p = new WeakMap(), m = new WeakMap(), g = new WeakMap(), c = new WeakMap(), n = new WeakMap(), o = new WeakMap(), E = new WeakMap(), R = new WeakMap(), T = new WeakMap(), f = new WeakSet(), J = function() {
|
|
247
|
+
t(this, o).calculate(), t(this, n).calculate(), t(this, c).calculate();
|
|
248
|
+
}, ht = function() {
|
|
249
|
+
t(this, o).setStep("_size", "+", {
|
|
250
|
+
x: t(this, v) ? t(this, x) : 1,
|
|
251
|
+
y: t(this, v) ? t(this, M) : 1,
|
|
252
|
+
z: t(this, v) ? t(this, Y) : 1
|
|
253
|
+
});
|
|
254
|
+
const e = t(this, w) ? t(this, H) : 0, s = t(this, w) ? t(this, I) : 0, l = t(this, w) ? t(this, D) : 0;
|
|
255
|
+
t(this, n).setStep("_position", "+", {
|
|
256
|
+
x: e,
|
|
257
|
+
y: s,
|
|
258
|
+
z: l
|
|
259
|
+
}), t(this, q) ? (t(this, o).setStep("_scale", "*", {
|
|
260
|
+
x: t(this, g).x,
|
|
261
|
+
y: t(this, g).y,
|
|
262
|
+
z: t(this, g).z
|
|
263
|
+
}), t(this, n).setStep("_translation", "+", {
|
|
264
|
+
x: t(this, p).x,
|
|
265
|
+
y: t(this, p).y,
|
|
266
|
+
z: t(this, p).z
|
|
267
|
+
}), t(this, c).setStep("_rotation", "+", {
|
|
268
|
+
x: t(this, m).x,
|
|
269
|
+
y: t(this, m).y,
|
|
270
|
+
z: t(this, m).z
|
|
271
|
+
})) : (t(this, o).setStep("_scale", "*", {
|
|
272
|
+
x: 1,
|
|
273
|
+
y: 1,
|
|
274
|
+
z: 1
|
|
275
|
+
}), t(this, n).setStep("_translation", "+", {
|
|
276
|
+
x: 0,
|
|
277
|
+
y: 0,
|
|
278
|
+
z: 0
|
|
279
|
+
}), t(this, c).setStep("_rotation", "+", {
|
|
280
|
+
x: 0,
|
|
281
|
+
y: 0,
|
|
282
|
+
z: 0
|
|
283
|
+
}));
|
|
284
|
+
}, rt = function() {
|
|
285
|
+
const e = getComputedStyle(t(this, a));
|
|
286
|
+
r(this, x, Math.max(t(this, a).clientWidth, 1)), r(this, M, Math.max(t(this, a).clientHeight, 1)), r(this, Y, Math.max(
|
|
287
|
+
ut.parse(e.getPropertyValue("--depth") || "0px"),
|
|
288
|
+
1
|
|
289
|
+
));
|
|
290
|
+
const s = F(t(this, z)), l = G(t(this, z)), y = t(this, z).clientWidth, A = t(this, z).clientHeight;
|
|
291
|
+
if (r(this, d, F(t(this, a)) - s), r(this, S, G(t(this, a)) - l), t(this, _) === "z") {
|
|
292
|
+
const V = t(this, d) / y, O = t(this, S) / A;
|
|
293
|
+
r(this, d, (V - Math.floor(V)) * y), r(this, S, (O - Math.floor(O)) * A), t(this, W) === "left" ? r(this, C, F(t(this, a)) - s - t(this, d)) : r(this, C, G(t(this, a)) - l - t(this, S));
|
|
294
|
+
}
|
|
295
|
+
if (r(this, d, t(this, d) + t(this, a).clientLeft), r(this, S, t(this, S) + t(this, a).clientTop), t(this, X)) {
|
|
296
|
+
const V = Math.round(y / 2), O = Math.round(A / 2), lt = t(this, x) ? Math.round(t(this, x) / 2) : 0, ot = t(this, M) ? Math.round(t(this, M) / 2) : 0, ct = t(this, d) - V + lt, at = (t(this, S) - O + ot) * -1;
|
|
297
|
+
r(this, H, ct), r(this, I, at);
|
|
298
|
+
} else
|
|
299
|
+
r(this, H, t(this, d)), r(this, I, t(this, S));
|
|
300
|
+
r(this, D, t(this, C) * -1);
|
|
301
|
+
const k = new WebKitCSSMatrix(e.transform), u = pt(k);
|
|
302
|
+
t(this, p).x = u.translationX, t(this, p).y = u.translationY, t(this, p).z = u.translationZ, t(this, g).x = u.scaleX, t(this, g).y = u.scaleY, t(this, g).z = u.scaleZ, t(this, m).x = u.rotationX, t(this, m).y = u.rotationY, t(this, m).z = u.rotationZ, L(this, f, ht).call(this), L(this, f, J).call(this), t(this, T).notify();
|
|
303
|
+
}, nt = function() {
|
|
304
|
+
t(this, E).x = 0, t(this, E).y = 0, t(this, E).z = 0;
|
|
305
|
+
for (let e = 0; e < t(this, b).length; e++) {
|
|
306
|
+
const s = t(this, b)[e]();
|
|
307
|
+
let l = s.axis;
|
|
308
|
+
t(this, _) !== "auto" && (l = t(this, _));
|
|
309
|
+
const y = s.value * (l === "x" ? -1 : t(this, X) ? 1 : -1);
|
|
310
|
+
t(this, E)[l] += y, t(this, n).setStep(`_scroll_${e}`, "+", {
|
|
311
|
+
[l]: y
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
}, P = new WeakMap(), U = new WeakMap(), Z = new WeakMap();
|
|
315
|
+
export {
|
|
316
|
+
Ct as LayoutBox,
|
|
317
|
+
pt as decomposeCSSMatrix
|
|
318
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var b=Object.defineProperty,C=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var w=s=>{throw TypeError(s)};var S=(s,t,e)=>t in s?b(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,f=(s,t)=>{for(var e in t||(t={}))N.call(t,e)&&S(s,e,t[e]);if(E)for(var e of E(t))_.call(t,e)&&S(s,e,t[e]);return s},c=(s,t)=>C(s,L(t));var p=(s,t,e)=>t.has(s)||w("Cannot "+e);var r=(s,t,e)=>(p(s,t,"read from private field"),e?e.call(s):t.get(s)),l=(s,t,e)=>t.has(s)?w("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),v=(s,t,e,o)=>(p(s,t,"write to private field"),o?o.call(s,e):t.set(s,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../notifier/index.cjs"),q=require("../function-MthRj-GJ.cjs");var i,h,a,d,n,u,g;class M{constructor(){l(this,i,new Map);l(this,h,new y.Notifier);l(this,a,new y.Notifier);l(this,d,new y.Notifier);l(this,n,!1);l(this,u,t=>{const{loaded:e,total:o}=this.getStats();r(this,h).notify({progress:e/o,loaded:e,total:o,namespace:t}),r(this,g).call(this)});l(this,g,q.debounce(()=>{const{loaded:t,total:e}=this.getStats();if(t===e){v(this,n,!0);const{total:o}=this.getStats();r(this,a).notify({total:o})}},150))}get progressEvent(){return r(this,h)}get completeEvent(){return r(this,a)}get errorEvent(){return r(this,d)}get _counter(){return r(this,i)}get isComplete(){return r(this,n)}reset(){v(this,n,!1),r(this,i).clear()}setTotal(t,e=1){r(this,n)||r(this,i).set(t,{loaded:0,total:e})}setLoaded(t,e=1){if(!r(this,n)&&r(this,i).has(t)){const o=r(this,i).get(t);o.loaded!==e&&(r(this,i).set(t,c(f({},o),{loaded:e})),r(this,u).call(this,t))}}setError(t,e){if(!r(this,n)&&r(this,i).has(t)){const o=r(this,i).get(t);r(this,i).set(t,c(f({},o),{total:o.total-1})),r(this,d).notify({namespace:t,url:e})}}getStats(){return Array.from(r(this,i)).reduce((t,e)=>({loaded:t.loaded+e[1].loaded,total:t.total+e[1].total}),{loaded:0,total:0})}}i=new WeakMap,h=new WeakMap,a=new WeakMap,d=new WeakMap,n=new WeakMap,u=new WeakMap,g=new WeakMap;const T=new M;exports.loading=T;
|
|
@@ -1,28 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var S = Object.defineProperty, C = Object.defineProperties;
|
|
2
|
+
var L = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var v = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var b = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var y = (s) => {
|
|
6
|
+
throw TypeError(s);
|
|
7
|
+
};
|
|
8
|
+
var w = (s, t, e) => t in s ? S(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, u = (s, t) => {
|
|
6
9
|
for (var e in t || (t = {}))
|
|
7
|
-
|
|
10
|
+
b.call(t, e) && w(s, e, t[e]);
|
|
8
11
|
if (v)
|
|
9
12
|
for (var e of v(t))
|
|
10
|
-
|
|
13
|
+
x.call(t, e) && w(s, e, t[e]);
|
|
11
14
|
return s;
|
|
12
|
-
}, c = (s, t) =>
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
throw TypeError("Cannot " + e);
|
|
16
|
-
};
|
|
17
|
-
var r = (s, t, e) => (y(s, t, "read from private field"), e ? e.call(s) : t.get(s)), h = (s, t, e) => {
|
|
18
|
-
if (t.has(s))
|
|
19
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
20
|
-
t instanceof WeakSet ? t.add(s) : t.set(s, e);
|
|
21
|
-
}, E = (s, t, e, o) => (y(s, t, "write to private field"), o ? o.call(s, e) : t.set(s, e), e);
|
|
15
|
+
}, c = (s, t) => C(s, L(t));
|
|
16
|
+
var m = (s, t, e) => t.has(s) || y("Cannot " + e);
|
|
17
|
+
var r = (s, t, e) => (m(s, t, "read from private field"), e ? e.call(s) : t.get(s)), h = (s, t, e) => t.has(s) ? y("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), E = (s, t, e, o) => (m(s, t, "write to private field"), o ? o.call(s, e) : t.set(s, e), e);
|
|
22
18
|
import { Notifier as p } from "../notifier/index.js";
|
|
23
|
-
import { d as
|
|
19
|
+
import { d as A } from "../function-C10DGppn.js";
|
|
24
20
|
var i, l, a, d, n, g, f;
|
|
25
|
-
class
|
|
21
|
+
class M {
|
|
26
22
|
constructor() {
|
|
27
23
|
h(this, i, /* @__PURE__ */ new Map());
|
|
28
24
|
h(this, l, new p());
|
|
@@ -38,7 +34,7 @@ class A {
|
|
|
38
34
|
namespace: t
|
|
39
35
|
}), r(this, f).call(this);
|
|
40
36
|
});
|
|
41
|
-
h(this, f,
|
|
37
|
+
h(this, f, A(() => {
|
|
42
38
|
const { loaded: t, total: e } = this.getStats();
|
|
43
39
|
if (t === e) {
|
|
44
40
|
E(this, n, !0);
|
|
@@ -93,7 +89,7 @@ class A {
|
|
|
93
89
|
}
|
|
94
90
|
}
|
|
95
91
|
i = new WeakMap(), l = new WeakMap(), a = new WeakMap(), d = new WeakMap(), n = new WeakMap(), g = new WeakMap(), f = new WeakMap();
|
|
96
|
-
const
|
|
92
|
+
const j = new M();
|
|
97
93
|
export {
|
|
98
|
-
|
|
94
|
+
j as loading
|
|
99
95
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var d=e=>{throw TypeError(e)};var a=(e,r,s)=>r.has(e)||d("Cannot "+s);var o=(e,r,s)=>(a(e,r,"read from private field"),s?s.call(e):r.get(e)),c=(e,r,s)=>r.has(e)?d("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,s),u=(e,r,s,n)=>(a(e,r,"write to private field"),n?n.call(e,s):r.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../order/index.cjs"),h=require("../window-resizer/index.cjs"),b=require("../Store-BnA-dJsE.cjs");var i,t;class w extends b.Store{constructor(s){super(!1);c(this,i);c(this,t);u(this,i,s),u(this,t,h.windowResizer.subscribe(()=>{matchMedia(o(this,i)).matches?this.current=!0:this.current=!1},l.RESIZE_ORDER.MEDIA))}close(){super.close(),o(this,t).call(this)}}i=new WeakMap,t=new WeakMap;exports.Media=w;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var a = (e) => {
|
|
2
|
+
throw TypeError(e);
|
|
3
|
+
};
|
|
4
|
+
var h = (e, s, r) => s.has(e) || a("Cannot " + r);
|
|
5
|
+
var o = (e, s, r) => (h(e, s, "read from private field"), r ? r.call(e) : s.get(e)), c = (e, s, r) => s.has(e) ? a("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, r), u = (e, s, r, m) => (h(e, s, "write to private field"), m ? m.call(e, r) : s.set(e, r), r);
|
|
6
|
+
import { RESIZE_ORDER as n } from "../order/index.js";
|
|
7
|
+
import { windowResizer as f } from "../window-resizer/index.js";
|
|
8
|
+
import { S as l } from "../Store-DGtldlBH.js";
|
|
9
|
+
var t, i;
|
|
10
|
+
class w extends l {
|
|
11
|
+
constructor(r) {
|
|
12
|
+
super(!1);
|
|
13
|
+
c(this, t);
|
|
14
|
+
c(this, i);
|
|
15
|
+
u(this, t, r), u(this, i, f.subscribe(() => {
|
|
16
|
+
matchMedia(o(this, t)).matches ? this.current = !0 : this.current = !1;
|
|
17
|
+
}, n.MEDIA));
|
|
18
|
+
}
|
|
19
|
+
close() {
|
|
20
|
+
super.close(), o(this, i).call(this);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
t = new WeakMap(), i = new WeakMap();
|
|
24
|
+
export {
|
|
25
|
+
w as Media
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var d=e=>{throw TypeError(e)};var u=(e,t,o)=>t.has(e)||d("Cannot "+o);var i=(e,t,o)=>(u(e,t,"read from private field"),o?o.call(e):t.get(e)),a=(e,t,o)=>t.has(e)?d("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,o),c=(e,t,o,l)=>(u(e,t,"write to private field"),l?l.call(e,o):t.set(e,o),o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-BnA-dJsE.cjs");const b=require("../browser-CpzFX2xg.cjs");require("../ticker/index.cjs");const n=require("../tags-v-OSVkiQ.cjs"),f=require("../createStylesheet-CaDI99iu.cjs"),m=require("../popover/index.cjs"),p=require("../theme/index.cjs"),v=f.createStylesheet({":host":{position:"fixed",top:"0",left:"0",zIndex:"1",width:"100%",height:"100%",transitionProperty:"opacity",transitionDuration:"var(--transition-duration)"},":host::before":{content:'""',position:"fixed",top:"0",left:"0",zIndex:"-1",width:"100%",height:"100%",backgroundColor:"var(--backdrop, rgba(0, 0, 0, 0.8))"},".inner":{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden auto"},".overflow .inner":{alignItems:"flex-start"},".content":{position:"relative"},".close-button":{position:"absolute",zIndex:"1",top:"var(--close-button-top, 0.5em)",right:"var(--close-button-right, 0.5em)",background:"none",border:"none",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit"},".close-button-default":{width:"var(--close-button-size, 1.5em)",height:"var(--close-button-size, 1.5em)",display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"transform",transitionDuration:"var(--transition-duration)",willChange:"transform"},".close-button:hover .close-button-default":{transform:"scale(0.9)"},".close-button:active .close-button-default":{transform:"scale(0.7)"},".close-button-default::before, .close-button-default::after":{content:'""',position:"absolute",width:"var(--close-button-thickness, 0.1em)",height:"100%",backgroundColor:`var(--close-button-color, ${p.aptechkaTheme.colorMain.var})`},".close-button-default::before":{transform:"rotate(-45deg)"},".close-button-default::after":{transform:"rotate(45deg)"}});var s,r;class h extends m.PopoverElement{constructor(){super();a(this,s,null);a(this,r,null);b.isBrowser&&(this.attachShadow({mode:"open"}).adoptedStyleSheets.push(v),n.element(this,{children:n.div({class:"inner",outside:!0,children:n.div({class:"content",children:[n.element("e-popover-button",{type:"close",target:"parent",class:"close-button",lightChildren:[n.slot({name:"close-button",children:n.span({class:"close-button-default"})})]}),n.slot()]}),ref:l=>c(this,r,l)})}),c(this,s,new ResizeObserver(()=>{i(this,r).scrollHeight>i(this,r).clientHeight?this.classList.add("overflow"):this.classList.remove("overflow")})))}connectedCallback(){super.connectedCallback(),i(this,s).observe(this)}disconnectedCallback(){super.disconnectedCallback(),i(this,s).disconnect()}}s=new WeakMap,r=new WeakMap;customElements.get("e-modal")||customElements.define("e-modal",h);exports.ModalElement=h;
|
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
var c = (t
|
|
2
|
-
|
|
3
|
-
throw TypeError("Cannot " + o);
|
|
1
|
+
var c = (t) => {
|
|
2
|
+
throw TypeError(t);
|
|
4
3
|
};
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}, l = (t, e, o, i) => (c(t, e, "write to private field"), i ? i.call(t, o) : e.set(t, o), o);
|
|
10
|
-
import "../Store-Qr3SNOSf.js";
|
|
11
|
-
import { i as f } from "../browser-0zX67oeU.js";
|
|
4
|
+
var d = (t, e, o) => e.has(t) || c("Cannot " + o);
|
|
5
|
+
var r = (t, e, o) => (d(t, e, "read from private field"), o ? o.call(t) : e.get(t)), a = (t, e, o) => e.has(t) ? c("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, o), l = (t, e, o, i) => (d(t, e, "write to private field"), i ? i.call(t, o) : e.set(t, o), o);
|
|
6
|
+
import "../Store-DGtldlBH.js";
|
|
7
|
+
import { i as m } from "../browser-0zX67oeU.js";
|
|
12
8
|
import "../ticker/index.js";
|
|
13
|
-
import { e as
|
|
14
|
-
import { c as
|
|
15
|
-
import { PopoverElement as
|
|
16
|
-
import { aptechkaTheme as
|
|
17
|
-
const
|
|
9
|
+
import { e as h, D as u, ay as f, aB as b } from "../tags-4AoxVUe3.js";
|
|
10
|
+
import { c as p } from "../createStylesheet-DO5t5q-m.js";
|
|
11
|
+
import { PopoverElement as v } from "../popover/index.js";
|
|
12
|
+
import { aptechkaTheme as g } from "../theme/index.js";
|
|
13
|
+
const w = p({
|
|
18
14
|
":host": {
|
|
19
15
|
position: "fixed",
|
|
20
16
|
top: "0",
|
|
@@ -81,7 +77,7 @@ const g = b({
|
|
|
81
77
|
position: "absolute",
|
|
82
78
|
width: "var(--close-button-thickness, 0.1em)",
|
|
83
79
|
height: "100%",
|
|
84
|
-
backgroundColor: `var(--close-button-color, ${
|
|
80
|
+
backgroundColor: `var(--close-button-color, ${g.colorMain.var})`
|
|
85
81
|
},
|
|
86
82
|
".close-button-default::before": {
|
|
87
83
|
transform: "rotate(-45deg)"
|
|
@@ -91,30 +87,30 @@ const g = b({
|
|
|
91
87
|
}
|
|
92
88
|
});
|
|
93
89
|
var n, s;
|
|
94
|
-
class
|
|
90
|
+
class y extends v {
|
|
95
91
|
constructor() {
|
|
96
92
|
super();
|
|
97
93
|
a(this, n, null);
|
|
98
94
|
a(this, s, null);
|
|
99
|
-
|
|
100
|
-
children:
|
|
95
|
+
m && (this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(w), h(this, {
|
|
96
|
+
children: u({
|
|
101
97
|
class: "inner",
|
|
102
98
|
outside: !0,
|
|
103
|
-
children:
|
|
99
|
+
children: u({
|
|
104
100
|
class: "content",
|
|
105
101
|
children: [
|
|
106
|
-
|
|
102
|
+
h("e-popover-button", {
|
|
107
103
|
type: "close",
|
|
108
104
|
target: "parent",
|
|
109
105
|
class: "close-button",
|
|
110
106
|
lightChildren: [
|
|
111
|
-
|
|
107
|
+
f({
|
|
112
108
|
name: "close-button",
|
|
113
|
-
children:
|
|
109
|
+
children: b({ class: "close-button-default" })
|
|
114
110
|
})
|
|
115
111
|
]
|
|
116
112
|
}),
|
|
117
|
-
|
|
113
|
+
f()
|
|
118
114
|
]
|
|
119
115
|
}),
|
|
120
116
|
ref: (i) => l(this, s, i)
|
|
@@ -131,7 +127,7 @@ class w extends p {
|
|
|
131
127
|
}
|
|
132
128
|
}
|
|
133
129
|
n = new WeakMap(), s = new WeakMap();
|
|
134
|
-
customElements.get("e-modal") || customElements.define("e-modal",
|
|
130
|
+
customElements.get("e-modal") || customElements.define("e-modal", y);
|
|
135
131
|
export {
|
|
136
|
-
|
|
132
|
+
y as ModalElement
|
|
137
133
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var it=(s,t)=>(t=Symbol[s])?t:Symbol.for("Symbol."+s),st=s=>{throw TypeError(s)};var _=(s,t,i)=>t.has(s)||st("Cannot "+i);var e=(s,t,i)=>(_(s,t,"read from private field"),i?i.call(s):t.get(s)),o=(s,t,i)=>t.has(s)?st("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,i),c=(s,t,i,r)=>(_(s,t,"write to private field"),r?r.call(s,i):t.set(s,i),i),m=(s,t,i)=>(_(s,t,"access private method"),i);var k=(s,t,i)=>new Promise((r,n)=>{var d=u=>{try{p(i.next(u))}catch(E){n(E)}},g=u=>{try{p(i.throw(u))}catch(E){n(E)}},p=u=>u.done?r(u.value):Promise.resolve(u.value).then(d,g);p((i=i.apply(s,t)).next())});var nt=(s,t,i)=>(t=s[it("asyncIterator")])?t.call(s):(s=s[it("iterator")](),t={},i=(r,n)=>(n=s[r])&&(t[r]=d=>new Promise((g,p,u)=>(d=n.call(s,d),u=d.done,Promise.resolve(d.value).then(E=>g({value:E,done:u}),p)))),i("next"),i("return"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const rt=require("../notifier/index.cjs"),lt=require("../browser-CpzFX2xg.cjs"),G=require("../url-C3dWnJQg.cjs");var y,h,f,C,A,S,M;class ut{constructor(t,i){o(this,y);o(this,h);o(this,f);o(this,C);o(this,A);o(this,S,t=>{t.preventDefault(),e(this,y).links.forEach(i=>{var r;e(this,f)===e(i,f)||(r=e(i,A))!=null&&r.includes(e(this,f))?e(i,h).classList.add("clicked"):e(i,h).classList.remove("clicked")}),e(this,y).navigate(e(this,f),e(this,C))});o(this,M,()=>{e(this,y).prefetch(e(this,f)),e(this,h).removeEventListener("pointerenter",e(this,M))});var d,g;c(this,y,i),c(this,h,t),c(this,f,e(this,h).getAttribute("href")||"/"),c(this,C,e(this,h).getAttribute("data-history-action")||"push"),e(this,h).addEventListener("click",e(this,S));const r=i.normalizePath(e(this,f)),n=i.normalizePath(location.pathname);c(this,A,(d=e(this,h).getAttribute("data-match-paths"))==null?void 0:d.split(",").map(p=>i.normalizePath(p.trim()).pathname)),e(this,h).hasAttribute("data-include")?n.pathname.includes(r.pathname)&&e(this,h).classList.add("current"):r.pathname===n.pathname||(g=e(this,A))!=null&&g.includes(n.pathname)?(e(this,h).classList.add("current"),e(this,h).classList.add("clicked")):e(this,h).classList.remove("clicked"),e(this,h).hasAttribute("data-prefetch")&&e(this,h).addEventListener("pointerenter",e(this,M))}destroy(){e(this,h).removeEventListener("click",e(this,S)),e(this,h).removeEventListener("pointerenter",e(this,M)),e(this,h).classList.remove("current")}}y=new WeakMap,h=new WeakMap,f=new WeakMap,C=new WeakMap,A=new WeakMap,S=new WeakMap,M=new WeakMap;var H,z,q,x,N,B,P,L,w,D,R,l,J,Q,U,at,V,W;class dt{constructor(t){o(this,l);o(this,H,null);o(this,z,null);o(this,q,null);o(this,x,null);o(this,N,[]);o(this,B,new DOMParser);o(this,P,new Map);o(this,L);o(this,w,null);o(this,D,new rt.Notifier);o(this,R,new rt.Notifier);o(this,W,t=>{t.state&&this.navigate(t.state,"none")});if(lt.isBrowser){t!=null&&t.base?c(this,H,G.normalizeBase(t.base)):c(this,H,"/"),c(this,z,(t==null?void 0:t.waitForHeadToLoad)!==!1),c(this,q,(t==null?void 0:t.cachePages)!==!1),c(this,x,m(this,l,U).call(this,document.body));const i=this.normalizePath(location.pathname);c(this,w,i.pathname),document.documentElement.setAttribute("data-current-pathname",e(this,w)),document.documentElement.setAttribute("data-current-leaf",i.leaf),m(this,l,Q).call(this),addEventListener("popstate",e(this,W))}}get currentPathname(){return e(this,w)}get links(){return e(this,N)}normalizePath(t){return G.splitPath(t,e(this,H))}beforeNavigationEvent(t){return e(this,D).subscribe(t)}afterNavigationEvent(t){return e(this,R).subscribe(t)}prefetch(t){return k(this,null,function*(){const i=this.normalizePath(t);return m(this,l,J).call(this,i.pathname)})}navigate(t,i="push"){return k(this,null,function*(){var E;const r=this.normalizePath(t);let{pathname:n,hash:d,parameters:g,leaf:p}=r;if(e(this,L)===n||e(this,w)===n)return;c(this,L,n);const u=e(this,P).has(n);try{let F=!0;if(e(this,D).notify({pathname:n,isCached:u}),this.preprocessor)try{yield new Promise((a,b)=>{var v;(v=this.preprocessor)==null||v.call(this,{pathname:n,resolve:a,reject:b,isCached:u})})}catch(a){a?console.error(a):console.log("Route change canceled"),F=!1}if(!F||e(this,L)!==n)return;const X=e(this,P).get(n)||(yield m(this,l,J).call(this,n));if(e(this,L)!==n)return;const Z=Array.from(document.head.children),$=Array.from(X.head.cloneNode(!0).children),tt=m(this,l,at).call(this,Z,$),ot=m(this,l,V).call(this,Z,tt),I=m(this,l,V).call(this,$,tt);I.forEach((a,b)=>{if(a.tagName==="SCRIPT"&&a.getAttribute("src")){const v=document.createElement("script");v.type="module",v.src=a.getAttribute("src"),I[b]=v}}),I.forEach(a=>{document.head.appendChild(a)});const j=I.filter(a=>(a.tagName==="STYLE"||a.tagName==="SCRIPT"||a.tagName==="LINK")&&a.getAttribute("rel")!=="canonical");e(this,z)&&j.length&&(yield new Promise(a=>k(this,null,function*(){let b=0;try{for(var v=nt(j),ct,K,O;ct=!(K=yield v.next()).done;ct=!1){const T=K.value;T.onload=()=>{b++,b===j.length&&a()}}}catch(K){O=[K]}finally{try{ct&&(K=v.return)&&(yield K.call(v))}finally{if(O)throw O[0]}}}))),ot.forEach(a=>{a.hasAttribute("data-permanent")||a.remove()}),c(this,w,n),G.changeHistory(i,n,g,d);const ht=m(this,l,U).call(this,X.body.cloneNode(!0));e(this,x).forEach((a,b)=>{const v=ht[b];let ct=[...a.childNodes],K=[...v.childNodes];ct.forEach(O=>{if(O instanceof HTMLElement){const T=O.getAttribute("data-remain");let et;K=K.filter(Y=>Y instanceof HTMLElement&&T&&Y.getAttribute("data-remain")===T?(et=Y,!1):!0),T&&et||O.remove()}else O.remove()}),a.append(...K)}),m(this,l,Q).call(this),document.documentElement.setAttribute("data-current-pathname",n),document.documentElement.setAttribute("data-current-leaf",p),(E=this.postprocessor)==null||E.call(this,{pathname:n,isCached:u}),e(this,R).notify({pathname:n,isCached:u})}catch(F){console.error(F)}c(this,L,void 0)})}}H=new WeakMap,z=new WeakMap,q=new WeakMap,x=new WeakMap,N=new WeakMap,B=new WeakMap,P=new WeakMap,L=new WeakMap,w=new WeakMap,D=new WeakMap,R=new WeakMap,l=new WeakSet,J=function(t){return k(this,null,function*(){const i=e(this,P).get(t);if(i)return i;const n=yield(yield fetch(t)).text(),d=e(this,B).parseFromString(n,"text/html");return e(this,q)&&e(this,P).set(t,d),d})},Q=function(){const t=[...document.documentElement.querySelectorAll("a")].filter(i=>{var r;return(r=i.getAttribute("href"))==null?void 0:r.startsWith("/")});e(this,N).forEach(i=>i.destroy()),c(this,N,t.map(i=>new ut(i,this)))},U=function(t){return[...t.querySelectorAll("[data-morph]")]},at=function(t,i){return t.filter(r=>i.find(n=>n.outerHTML===r.outerHTML))},V=function(t,i){return t.filter(r=>!i.find(n=>n.outerHTML===r.outerHTML))},W=new WeakMap;exports.Morph=dt;
|