aptechka 0.10.0 → 0.11.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/Derived-CNbsNMn_.cjs +1 -0
- package/client-lib/Derived-rInkx3e4.js +60 -0
- package/{lib → client-lib}/element-constructor/ElementConstructor.d.ts +3 -2
- package/{lib/instantiate-TYteKsII.js → client-lib/instantiate-D19vO5Ku.js} +21 -19
- package/client-lib/instantiate-DF1bIAXR.cjs +1 -0
- package/client-lib/jsx/hooks/store/createCached.d.ts +4 -0
- package/client-lib/jsx/hooks/store/createDerived.d.ts +4 -0
- package/client-lib/jsx/hooks/store/createDerivedArray.d.ts +4 -0
- package/client-lib/jsx/hooks/store/index.cjs +1 -0
- package/client-lib/jsx/hooks/store/index.d.ts +6 -0
- package/client-lib/jsx/hooks/store/index.js +45 -0
- package/{lib → client-lib}/jsx/index.cjs +1 -1
- package/{lib → client-lib}/jsx/index.js +2 -2
- package/{lib → client-lib}/jsx/type.d.ts +7 -10
- package/{lib → client-lib}/router/index.cjs +1 -1
- package/{lib → client-lib}/router/index.js +1 -1
- package/{lib → client-lib}/scroll/index.cjs +1 -1
- package/{lib → client-lib}/scroll/index.js +1 -1
- package/{lib → client-lib}/slicer/SlicerElement.d.ts +1 -1
- package/{lib → client-lib}/store/Cached.d.ts +6 -1
- package/client-lib/store/Derived.d.ts +13 -0
- package/client-lib/store/DerivedArray.d.ts +13 -0
- package/client-lib/store/index.cjs +1 -0
- package/{lib → client-lib}/store/index.d.ts +3 -3
- package/client-lib/store/index.js +131 -0
- package/client-lib/utils/index.cjs +1 -0
- package/{lib → client-lib}/utils/index.d.ts +1 -0
- package/client-lib/utils/index.js +173 -0
- package/client-lib/utils/promises.d.ts +1 -0
- package/package.json +433 -406
- package/server-lib/optimizer/FFmpeg.d.ts +10 -0
- package/server-lib/optimizer/generateFavicon.d.ts +4 -0
- package/server-lib/optimizer/generateSequence.d.ts +3 -0
- package/server-lib/optimizer/generateSprite.d.ts +4 -0
- package/server-lib/optimizer/index.d.ts +10 -0
- package/server-lib/optimizer/index.js +383 -0
- package/server-lib/optimizer/inputFiles.d.ts +26 -0
- package/server-lib/optimizer/optimize.d.ts +13 -0
- package/server-lib/optimizer/optimizeImage.d.ts +4 -0
- package/server-lib/optimizer/optimizeVideo.d.ts +3 -0
- package/server-lib/optimizer/optimizer.d.ts +5 -0
- package/server-lib/optimizer/types.d.ts +47 -0
- package/server-lib/utils/fs.d.ts +11 -0
- package/server-lib/utils/index.d.ts +3 -0
- package/server-lib/utils/index.js +54 -0
- package/server-lib/utils/path.d.ts +3 -0
- package/server-lib/utils/types.d.ts +8 -0
- package/lib/Derived-D9VrDuf9.cjs +0 -1
- package/lib/Derived-DIWinC7Y.js +0 -27
- package/lib/instantiate-BuVJ8pIJ.cjs +0 -1
- package/lib/jsx/hooks/store/createCached.d.ts +0 -3
- package/lib/jsx/hooks/store/createDerived.d.ts +0 -3
- package/lib/jsx/hooks/store/createDerivedArray.d.ts +0 -3
- package/lib/jsx/hooks/store/index.cjs +0 -1
- package/lib/jsx/hooks/store/index.d.ts +0 -6
- package/lib/jsx/hooks/store/index.js +0 -31
- package/lib/store/Derived.d.ts +0 -8
- package/lib/store/DerivedArray.d.ts +0 -8
- package/lib/store/index.cjs +0 -1
- package/lib/store/index.js +0 -76
- package/lib/utils/index.cjs +0 -1
- package/lib/utils/index.js +0 -165
- /package/{lib → client-lib}/Animation-BInSRYNr.cjs +0 -0
- /package/{lib → client-lib}/Animation-uimN7sdT.js +0 -0
- /package/{lib → client-lib}/Composed-Fa7owymK.js +0 -0
- /package/{lib → client-lib}/Composed-Iihn8fT4.cjs +0 -0
- /package/{lib → client-lib}/Damped-Da3EnNN4.cjs +0 -0
- /package/{lib → client-lib}/Damped-yrNXlkDE.js +0 -0
- /package/{lib → client-lib}/ElementConstructor-OK-6OPjh.cjs +0 -0
- /package/{lib → client-lib}/ElementConstructor-rValMo8f.js +0 -0
- /package/{lib → client-lib}/SourceManager--L_rA28b.js +0 -0
- /package/{lib → client-lib}/SourceManager-D6D2LVKf.cjs +0 -0
- /package/{lib → client-lib}/Store-Cr3VaD9G.cjs +0 -0
- /package/{lib → client-lib}/Store-Qr3SNOSf.js +0 -0
- /package/{lib → client-lib}/Tweened-CjgvoOwL.js +0 -0
- /package/{lib → client-lib}/Tweened-DksN-Rz6.cjs +0 -0
- /package/{lib → client-lib}/Viewport-BBYt1Ivy.cjs +0 -0
- /package/{lib → client-lib}/Viewport-Cgtq2I_K.js +0 -0
- /package/{lib → client-lib}/_createStore-C75y9luu.cjs +0 -0
- /package/{lib → client-lib}/_createStore-D3qHYaSz.js +0 -0
- /package/{lib → client-lib}/accordion/AccordionElement.d.ts +0 -0
- /package/{lib → client-lib}/accordion/index.cjs +0 -0
- /package/{lib → client-lib}/accordion/index.d.ts +0 -0
- /package/{lib → client-lib}/accordion/index.js +0 -0
- /package/{lib → client-lib}/animation/Animation.d.ts +0 -0
- /package/{lib → client-lib}/animation/Damped.d.ts +0 -0
- /package/{lib → client-lib}/animation/Tweened.d.ts +0 -0
- /package/{lib → client-lib}/animation/index.cjs +0 -0
- /package/{lib → client-lib}/animation/index.d.ts +0 -0
- /package/{lib → client-lib}/animation/index.js +0 -0
- /package/{lib → client-lib}/attribute/index.cjs +0 -0
- /package/{lib → client-lib}/attribute/index.d.ts +0 -0
- /package/{lib → client-lib}/attribute/index.js +0 -0
- /package/{lib → client-lib}/attributes-69we3byR.js +0 -0
- /package/{lib → client-lib}/attributes-Bf2svn4j.cjs +0 -0
- /package/{lib → client-lib}/browser-0zX67oeU.js +0 -0
- /package/{lib → client-lib}/browser-CpzFX2xg.cjs +0 -0
- /package/{lib → client-lib}/canvas/index.cjs +0 -0
- /package/{lib → client-lib}/canvas/index.d.ts +0 -0
- /package/{lib → client-lib}/canvas/index.js +0 -0
- /package/{lib → client-lib}/canvas-CU5Xjahf.cjs +0 -0
- /package/{lib → client-lib}/canvas-DeZ0SLUJ.js +0 -0
- /package/{lib → client-lib}/checkbox/index.cjs +0 -0
- /package/{lib → client-lib}/checkbox/index.d.ts +0 -0
- /package/{lib → client-lib}/checkbox/index.js +0 -0
- /package/{lib → client-lib}/class-linked-status/index.cjs +0 -0
- /package/{lib → client-lib}/class-linked-status/index.d.ts +0 -0
- /package/{lib → client-lib}/class-linked-status/index.js +0 -0
- /package/{lib → client-lib}/connector/index.cjs +0 -0
- /package/{lib → client-lib}/connector/index.d.ts +0 -0
- /package/{lib → client-lib}/connector/index.js +0 -0
- /package/{lib → client-lib}/controls/AutoplayControls.d.ts +0 -0
- /package/{lib → client-lib}/controls/Controls.d.ts +0 -0
- /package/{lib → client-lib}/controls/DragControls.d.ts +0 -0
- /package/{lib → client-lib}/controls/KeyboardControls.d.ts +0 -0
- /package/{lib → client-lib}/controls/WheelControls.d.ts +0 -0
- /package/{lib → client-lib}/controls/index.cjs +0 -0
- /package/{lib → client-lib}/controls/index.d.ts +0 -0
- /package/{lib → client-lib}/controls/index.js +0 -0
- /package/{lib → client-lib}/coordinates-CgdGoSYs.js +0 -0
- /package/{lib → client-lib}/coordinates-D8Np3cPD.cjs +0 -0
- /package/{lib → client-lib}/counter/index.d.ts +0 -0
- /package/{lib → client-lib}/createStylesheet-9nksoWW0.cjs +0 -0
- /package/{lib → client-lib}/createStylesheet-BrFGJ8Q7.js +0 -0
- /package/{lib → client-lib}/createTheme-CHnsCgAr.js +0 -0
- /package/{lib → client-lib}/createTheme-Cfaw9UmV.cjs +0 -0
- /package/{lib → client-lib}/css-property/index.cjs +0 -0
- /package/{lib → client-lib}/css-property/index.d.ts +0 -0
- /package/{lib → client-lib}/css-property/index.js +0 -0
- /package/{lib → client-lib}/css-unit-parser/index.cjs +0 -0
- /package/{lib → client-lib}/css-unit-parser/index.d.ts +0 -0
- /package/{lib → client-lib}/css-unit-parser/index.js +0 -0
- /package/{lib → client-lib}/css-value-parser/index.cjs +0 -0
- /package/{lib → client-lib}/css-value-parser/index.d.ts +0 -0
- /package/{lib → client-lib}/css-value-parser/index.js +0 -0
- /package/{lib → client-lib}/dev/index.cjs +0 -0
- /package/{lib → client-lib}/dev/index.d.ts +0 -0
- /package/{lib → client-lib}/dev/index.js +0 -0
- /package/{lib → client-lib}/device/Device.d.ts +0 -0
- /package/{lib → client-lib}/device/Viewport.d.ts +0 -0
- /package/{lib → client-lib}/device/index.cjs +0 -0
- /package/{lib → client-lib}/device/index.d.ts +0 -0
- /package/{lib → client-lib}/device/index.js +0 -0
- /package/{lib → client-lib}/dom-JBOkFLTh.cjs +0 -0
- /package/{lib → client-lib}/dom-P5QbAASX.js +0 -0
- /package/{lib → client-lib}/easings-BKi40vHz.js +0 -0
- /package/{lib → client-lib}/easings-DsS5-Kqc.cjs +0 -0
- /package/{lib → client-lib}/element-constructor/createStylesheet.d.ts +0 -0
- /package/{lib → client-lib}/element-constructor/createTheme.d.ts +0 -0
- /package/{lib → client-lib}/element-constructor/index.cjs +0 -0
- /package/{lib → client-lib}/element-constructor/index.d.ts +0 -0
- /package/{lib → client-lib}/element-constructor/index.js +0 -0
- /package/{lib → client-lib}/element-constructor/knownSvgTags.d.ts +0 -0
- /package/{lib → client-lib}/element-constructor/tags.d.ts +0 -0
- /package/{lib → client-lib}/element-resizer/index.cjs +0 -0
- /package/{lib → client-lib}/element-resizer/index.d.ts +0 -0
- /package/{lib → client-lib}/element-resizer/index.js +0 -0
- /package/{lib → client-lib}/en3/core/En3Raycaster.d.ts +0 -0
- /package/{lib → client-lib}/en3/core/En3View.d.ts +0 -0
- /package/{lib → client-lib}/en3/core/en3.d.ts +0 -0
- /package/{lib → client-lib}/en3/core/en3Cache.d.ts +0 -0
- /package/{lib → client-lib}/en3/helpers/En3ComposerManager.d.ts +0 -0
- /package/{lib → client-lib}/en3/helpers/En3GridHelper.d.ts +0 -0
- /package/{lib → client-lib}/en3/helpers/En3Helpers.d.ts +0 -0
- /package/{lib → client-lib}/en3/helpers/En3Object3dManager.d.ts +0 -0
- /package/{lib → client-lib}/en3/helpers/En3OrbitControls.d.ts +0 -0
- /package/{lib → client-lib}/en3/helpers/En3ParametersManager.d.ts +0 -0
- /package/{lib → client-lib}/en3/helpers/En3TransformControls.d.ts +0 -0
- /package/{lib → client-lib}/en3/helpers/index.cjs +0 -0
- /package/{lib → client-lib}/en3/helpers/index.d.ts +0 -0
- /package/{lib → client-lib}/en3/helpers/index.js +0 -0
- /package/{lib → client-lib}/en3/index.cjs +0 -0
- /package/{lib → client-lib}/en3/index.d.ts +0 -0
- /package/{lib → client-lib}/en3/index.js +0 -0
- /package/{lib → client-lib}/en3/libs/MeshoptDecoder.d.ts +0 -0
- /package/{lib → client-lib}/en3/libs/index.cjs +0 -0
- /package/{lib → client-lib}/en3/libs/index.d.ts +0 -0
- /package/{lib → client-lib}/en3/libs/index.js +0 -0
- /package/{lib → client-lib}/en3/loaders/En3GLTFLoader.d.ts +0 -0
- /package/{lib → client-lib}/en3/loaders/En3TextureLoader.d.ts +0 -0
- /package/{lib → client-lib}/en3/loaders/index.cjs +0 -0
- /package/{lib → client-lib}/en3/loaders/index.d.ts +0 -0
- /package/{lib → client-lib}/en3/loaders/index.js +0 -0
- /package/{lib → client-lib}/en3/loaders/loaders.d.ts +0 -0
- /package/{lib → client-lib}/en3/misc/En3ModifiedMaterial.d.ts +0 -0
- /package/{lib → client-lib}/en3/misc/En3SourceManager.d.ts +0 -0
- /package/{lib → client-lib}/en3/misc/index.cjs +0 -0
- /package/{lib → client-lib}/en3/misc/index.d.ts +0 -0
- /package/{lib → client-lib}/en3/misc/index.js +0 -0
- /package/{lib → client-lib}/en3/objects/En3Clip.d.ts +0 -0
- /package/{lib → client-lib}/en3/objects/En3ClipHelpers.d.ts +0 -0
- /package/{lib → client-lib}/en3/objects/En3GLTF.d.ts +0 -0
- /package/{lib → client-lib}/en3/objects/En3Image.d.ts +0 -0
- /package/{lib → client-lib}/en3/objects/En3ImageLike.d.ts +0 -0
- /package/{lib → client-lib}/en3/objects/En3SourceConsumer.d.ts +0 -0
- /package/{lib → client-lib}/en3/objects/En3Video.d.ts +0 -0
- /package/{lib → client-lib}/en3/objects/fluid/Advection.d.ts +0 -0
- /package/{lib → client-lib}/en3/objects/fluid/Divergence.d.ts +0 -0
- /package/{lib → client-lib}/en3/objects/fluid/En3Fluid.d.ts +0 -0
- /package/{lib → client-lib}/en3/objects/fluid/En3FluidElement.d.ts +0 -0
- /package/{lib → client-lib}/en3/objects/fluid/En3FluidPointer.d.ts +0 -0
- /package/{lib → client-lib}/en3/objects/fluid/ExternalForce.d.ts +0 -0
- /package/{lib → client-lib}/en3/objects/fluid/Poisson.d.ts +0 -0
- /package/{lib → client-lib}/en3/objects/fluid/Pressure.d.ts +0 -0
- /package/{lib → client-lib}/en3/objects/fluid/ShaderPass.d.ts +0 -0
- /package/{lib → client-lib}/en3/objects/fluid/Simulation.d.ts +0 -0
- /package/{lib → client-lib}/en3/objects/fluid/Viscous.d.ts +0 -0
- /package/{lib → client-lib}/en3/objects/fluid/index.d.ts +0 -0
- /package/{lib → client-lib}/en3/objects/index.d.ts +0 -0
- /package/{lib → client-lib}/en3/utils/coverTexture.d.ts +0 -0
- /package/{lib → client-lib}/en3/utils/dispose.d.ts +0 -0
- /package/{lib → client-lib}/en3/utils/getCurrentViewport.d.ts +0 -0
- /package/{lib → client-lib}/en3/utils/index.cjs +0 -0
- /package/{lib → client-lib}/en3/utils/index.d.ts +0 -0
- /package/{lib → client-lib}/en3/utils/index.js +0 -0
- /package/{lib → client-lib}/en3/utils/traverseMaterials.d.ts +0 -0
- /package/{lib → client-lib}/en3/utils/traverseMeshes.d.ts +0 -0
- /package/{lib → client-lib}/en3-CBBYE8rb.cjs +0 -0
- /package/{lib → client-lib}/en3-THFHEReu.js +0 -0
- /package/{lib → client-lib}/events-BGwqaxVW.cjs +0 -0
- /package/{lib → client-lib}/events-CJTUMSLU.js +0 -0
- /package/{lib → client-lib}/file-EevnUtRj.cjs +0 -0
- /package/{lib → client-lib}/file-lxi_oXJf.js +0 -0
- /package/{lib → client-lib}/function-C10DGppn.js +0 -0
- /package/{lib → client-lib}/function-MthRj-GJ.cjs +0 -0
- /package/{lib → client-lib}/gestures-D2Fdra_G.js +0 -0
- /package/{lib → client-lib}/gestures-DHLrn6Q8.cjs +0 -0
- /package/{lib → client-lib}/globals-DMjysUXI.js +0 -0
- /package/{lib → client-lib}/globals-bYKki-b9.cjs +0 -0
- /package/{lib → client-lib}/image/index.cjs +0 -0
- /package/{lib → client-lib}/image/index.d.ts +0 -0
- /package/{lib → client-lib}/image/index.js +0 -0
- /package/{lib → client-lib}/index-3R8YL-P3.js +0 -0
- /package/{lib → client-lib}/index-CyQAdqFu.cjs +0 -0
- /package/{lib → client-lib}/intersector/index.cjs +0 -0
- /package/{lib → client-lib}/intersector/index.d.ts +0 -0
- /package/{lib → client-lib}/intersector/index.js +0 -0
- /package/{lib → client-lib}/jsx/ComponentElement.d.ts +0 -0
- /package/{lib → client-lib}/jsx/globals.d.ts +0 -0
- /package/{lib → client-lib}/jsx/h.d.ts +0 -0
- /package/{lib → client-lib}/jsx/hooks/animation/createDamped.d.ts +0 -0
- /package/{lib → client-lib}/jsx/hooks/animation/createTweened.d.ts +0 -0
- /package/{lib → client-lib}/jsx/hooks/animation/index.cjs +0 -0
- /package/{lib → client-lib}/jsx/hooks/animation/index.d.ts +0 -0
- /package/{lib → client-lib}/jsx/hooks/animation/index.js +0 -0
- /package/{lib → client-lib}/jsx/hooks/basic/_createStore.d.ts +0 -0
- /package/{lib → client-lib}/jsx/hooks/basic/attachInternals.d.ts +0 -0
- /package/{lib → client-lib}/jsx/hooks/basic/attachShadow.d.ts +0 -0
- /package/{lib → client-lib}/jsx/hooks/basic/attachStylesheet.d.ts +0 -0
- /package/{lib → client-lib}/jsx/hooks/basic/createContext.d.ts +0 -0
- /package/{lib → client-lib}/jsx/hooks/basic/createRef.d.ts +0 -0
- /package/{lib → client-lib}/jsx/hooks/basic/onConnect.d.ts +0 -0
- /package/{lib → client-lib}/jsx/hooks/basic/onDisconnect.d.ts +0 -0
- /package/{lib → client-lib}/jsx/hooks/basic/onStoreChange.d.ts +0 -0
- /package/{lib → client-lib}/jsx/hooks/onAnimationFrame.cjs +0 -0
- /package/{lib → client-lib}/jsx/hooks/onAnimationFrame.d.ts +0 -0
- /package/{lib → client-lib}/jsx/hooks/onAnimationFrame.js +0 -0
- /package/{lib → client-lib}/jsx/hooks/onElementResize.cjs +0 -0
- /package/{lib → client-lib}/jsx/hooks/onElementResize.d.ts +0 -0
- /package/{lib → client-lib}/jsx/hooks/onElementResize.js +0 -0
- /package/{lib → client-lib}/jsx/hooks/onIntersection.cjs +0 -0
- /package/{lib → client-lib}/jsx/hooks/onIntersection.d.ts +0 -0
- /package/{lib → client-lib}/jsx/hooks/onIntersection.js +0 -0
- /package/{lib → client-lib}/jsx/hooks/onWindowResize.cjs +0 -0
- /package/{lib → client-lib}/jsx/hooks/onWindowResize.d.ts +0 -0
- /package/{lib → client-lib}/jsx/hooks/onWindowResize.js +0 -0
- /package/{lib → client-lib}/jsx/hooks/store/createComposed.d.ts +0 -0
- /package/{lib → client-lib}/jsx/hooks/store/createResource.d.ts +0 -0
- /package/{lib → client-lib}/jsx/hooks/store/createStore.d.ts +0 -0
- /package/{lib → client-lib}/jsx/hooks/watchAttribute.cjs +0 -0
- /package/{lib → client-lib}/jsx/hooks/watchAttribute.d.ts +0 -0
- /package/{lib → client-lib}/jsx/hooks/watchAttribute.js +0 -0
- /package/{lib → client-lib}/jsx/hooks/watchCSSProperty.cjs +0 -0
- /package/{lib → client-lib}/jsx/hooks/watchCSSProperty.d.ts +0 -0
- /package/{lib → client-lib}/jsx/hooks/watchCSSProperty.js +0 -0
- /package/{lib → client-lib}/jsx/index.d.ts +0 -0
- /package/{lib → client-lib}/jsx/instantiate.d.ts +0 -0
- /package/{lib → client-lib}/jsx/register.d.ts +0 -0
- /package/{lib → client-lib}/jsx/render.d.ts +0 -0
- /package/{lib → client-lib}/ladder/index.cjs +0 -0
- /package/{lib → client-lib}/ladder/index.d.ts +0 -0
- /package/{lib → client-lib}/ladder/index.js +0 -0
- /package/{lib → client-lib}/layout-8ryRAMGJ.cjs +0 -0
- /package/{lib → client-lib}/layout-HoBT_Da2.js +0 -0
- /package/{lib → client-lib}/layout-box/index.cjs +0 -0
- /package/{lib → client-lib}/layout-box/index.d.ts +0 -0
- /package/{lib → client-lib}/layout-box/index.js +0 -0
- /package/{lib → client-lib}/libs/path-data-polyfill.d.ts +0 -0
- /package/{lib → client-lib}/loading/index.cjs +0 -0
- /package/{lib → client-lib}/loading/index.d.ts +0 -0
- /package/{lib → client-lib}/loading/index.js +0 -0
- /package/{lib → client-lib}/math-BOBiC4TN.js +0 -0
- /package/{lib → client-lib}/math-GDWEqu7y.cjs +0 -0
- /package/{lib → client-lib}/media/index.cjs +0 -0
- /package/{lib → client-lib}/media/index.d.ts +0 -0
- /package/{lib → client-lib}/media/index.js +0 -0
- /package/{lib → client-lib}/modal/ModalElement.d.ts +0 -0
- /package/{lib → client-lib}/modal/index.cjs +0 -0
- /package/{lib → client-lib}/modal/index.d.ts +0 -0
- /package/{lib → client-lib}/modal/index.js +0 -0
- /package/{lib → client-lib}/morph/Link.d.ts +0 -0
- /package/{lib → client-lib}/morph/Morph.d.ts +0 -0
- /package/{lib → client-lib}/morph/index.cjs +0 -0
- /package/{lib → client-lib}/morph/index.d.ts +0 -0
- /package/{lib → client-lib}/morph/index.js +0 -0
- /package/{lib → client-lib}/notifier/index.cjs +0 -0
- /package/{lib → client-lib}/notifier/index.d.ts +0 -0
- /package/{lib → client-lib}/notifier/index.js +0 -0
- /package/{lib → client-lib}/object-CCiXnER2.cjs +0 -0
- /package/{lib → client-lib}/object-D6MVWB4l.js +0 -0
- /package/{lib → client-lib}/onConnect-DGP866cj.cjs +0 -0
- /package/{lib → client-lib}/onConnect-y5DrxJ9P.js +0 -0
- /package/{lib → client-lib}/order/index.cjs +0 -0
- /package/{lib → client-lib}/order/index.d.ts +0 -0
- /package/{lib → client-lib}/order/index.js +0 -0
- /package/{lib → client-lib}/pointer/Pointer.d.ts +0 -0
- /package/{lib → client-lib}/pointer/PointerElement.d.ts +0 -0
- /package/{lib → client-lib}/pointer/index.cjs +0 -0
- /package/{lib → client-lib}/pointer/index.d.ts +0 -0
- /package/{lib → client-lib}/pointer/index.js +0 -0
- /package/{lib → client-lib}/polyfills-CM4SCDTt.cjs +0 -0
- /package/{lib → client-lib}/polyfills-X6KXuHg-.js +0 -0
- /package/{lib → client-lib}/popover/PopoverButtonElement.d.ts +0 -0
- /package/{lib → client-lib}/popover/PopoverElement.d.ts +0 -0
- /package/{lib → client-lib}/popover/index.cjs +0 -0
- /package/{lib → client-lib}/popover/index.d.ts +0 -0
- /package/{lib → client-lib}/popover/index.js +0 -0
- /package/{lib → client-lib}/router/Link.d.ts +0 -0
- /package/{lib → client-lib}/router/Route.d.ts +0 -0
- /package/{lib → client-lib}/router/Router.d.ts +0 -0
- /package/{lib → client-lib}/router/index.d.ts +0 -0
- /package/{lib → client-lib}/scroll/ScrollBulletButtonsElement.d.ts +0 -0
- /package/{lib → client-lib}/scroll/ScrollButtonElement.d.ts +0 -0
- /package/{lib → client-lib}/scroll/ScrollElement.d.ts +0 -0
- /package/{lib → client-lib}/scroll/ScrollSection.d.ts +0 -0
- /package/{lib → client-lib}/scroll/ScrollSegmentElement.d.ts +0 -0
- /package/{lib → client-lib}/scroll/ScrollSetButtonElement.d.ts +0 -0
- /package/{lib → client-lib}/scroll/ScrollStepButtonElement.d.ts +0 -0
- /package/{lib → client-lib}/scroll/ScrollUserElement.d.ts +0 -0
- /package/{lib → client-lib}/scroll/ScrollbarElement.d.ts +0 -0
- /package/{lib → client-lib}/scroll/index.d.ts +0 -0
- /package/{lib → client-lib}/scroll-entries/index.cjs +0 -0
- /package/{lib → client-lib}/scroll-entries/index.d.ts +0 -0
- /package/{lib → client-lib}/scroll-entries/index.js +0 -0
- /package/{lib → client-lib}/select/SelectElement.d.ts +0 -0
- /package/{lib → client-lib}/select/SelectHeadElement.d.ts +0 -0
- /package/{lib → client-lib}/select/SelectOptionElement.d.ts +0 -0
- /package/{lib → client-lib}/select/SelectUserElement.d.ts +0 -0
- /package/{lib → client-lib}/select/index.cjs +0 -0
- /package/{lib → client-lib}/select/index.d.ts +0 -0
- /package/{lib → client-lib}/select/index.js +0 -0
- /package/{lib → client-lib}/sequence/index.cjs +0 -0
- /package/{lib → client-lib}/sequence/index.d.ts +0 -0
- /package/{lib → client-lib}/sequence/index.js +0 -0
- /package/{lib → client-lib}/slicer/DecoderElement.d.ts +0 -0
- /package/{lib → client-lib}/slicer/Letter.d.ts +0 -0
- /package/{lib → client-lib}/slicer/Word.d.ts +0 -0
- /package/{lib → client-lib}/slicer/index.cjs +0 -0
- /package/{lib → client-lib}/slicer/index.d.ts +0 -0
- /package/{lib → client-lib}/slicer/index.js +0 -0
- /package/{lib → client-lib}/source/SourceClass.d.ts +0 -0
- /package/{lib → client-lib}/source/SourceElement.d.ts +0 -0
- /package/{lib → client-lib}/source/SourceManager.d.ts +0 -0
- /package/{lib → client-lib}/source/SourceSet.d.ts +0 -0
- /package/{lib → client-lib}/source/index.cjs +0 -0
- /package/{lib → client-lib}/source/index.d.ts +0 -0
- /package/{lib → client-lib}/source/index.js +0 -0
- /package/{lib → client-lib}/store/Composed.d.ts +0 -0
- /package/{lib → client-lib}/store/Resource.d.ts +0 -0
- /package/{lib → client-lib}/store/Store.d.ts +0 -0
- /package/{lib → client-lib}/store/StoreRegistry.d.ts +0 -0
- /package/{lib → client-lib}/string-DhgS_iFl.cjs +0 -0
- /package/{lib → client-lib}/string-f0Dnk0L1.js +0 -0
- /package/{lib → client-lib}/style-At6aDoqG.cjs +0 -0
- /package/{lib → client-lib}/style-j2TwriJ_.js +0 -0
- /package/{lib → client-lib}/svg-path-data/index.cjs +0 -0
- /package/{lib → client-lib}/svg-path-data/index.d.ts +0 -0
- /package/{lib → client-lib}/svg-path-data/index.js +0 -0
- /package/{lib → client-lib}/tags-BosXYPYv.cjs +0 -0
- /package/{lib → client-lib}/tags-D0kLlFdQ.js +0 -0
- /package/{lib → client-lib}/test/starting-style/index.d.ts +0 -0
- /package/{lib → client-lib}/theme/index.cjs +0 -0
- /package/{lib → client-lib}/theme/index.d.ts +0 -0
- /package/{lib → client-lib}/theme/index.js +0 -0
- /package/{lib → client-lib}/ticker/index.cjs +0 -0
- /package/{lib → client-lib}/ticker/index.d.ts +0 -0
- /package/{lib → client-lib}/ticker/index.js +0 -0
- /package/{lib → client-lib}/traverseMaterials-BKSwwNmo.js +0 -0
- /package/{lib → client-lib}/traverseMaterials-BtBXV88O.cjs +0 -0
- /package/{lib → client-lib}/tweaker/TweakerBooleanManagerElement.d.ts +0 -0
- /package/{lib → client-lib}/tweaker/TweakerColorManagerElement.d.ts +0 -0
- /package/{lib → client-lib}/tweaker/TweakerElement.d.ts +0 -0
- /package/{lib → client-lib}/tweaker/TweakerFieldElement.d.ts +0 -0
- /package/{lib → client-lib}/tweaker/TweakerFolderElement.d.ts +0 -0
- /package/{lib → client-lib}/tweaker/TweakerLinkManagerElement.d.ts +0 -0
- /package/{lib → client-lib}/tweaker/TweakerNumberManagerElement.d.ts +0 -0
- /package/{lib → client-lib}/tweaker/TweakerSelectManagerElement.d.ts +0 -0
- /package/{lib → client-lib}/tweaker/TweakerStoreManagerElement.d.ts +0 -0
- /package/{lib → client-lib}/tweaker/TweakerStringManagerElement.d.ts +0 -0
- /package/{lib → client-lib}/tweaker/index.cjs +0 -0
- /package/{lib → client-lib}/tweaker/index.d.ts +0 -0
- /package/{lib → client-lib}/tweaker/index.js +0 -0
- /package/{lib → client-lib}/tweaker/tweakerManagerConstructors.d.ts +0 -0
- /package/{lib → client-lib}/tweaker/tweakerStorage.d.ts +0 -0
- /package/{lib → client-lib}/url-C3dWnJQg.cjs +0 -0
- /package/{lib → client-lib}/url-DMNfW7uN.js +0 -0
- /package/{lib → client-lib}/utils/array.d.ts +0 -0
- /package/{lib → client-lib}/utils/attributes.d.ts +0 -0
- /package/{lib → client-lib}/utils/browser.d.ts +0 -0
- /package/{lib → client-lib}/utils/bytes.d.ts +0 -0
- /package/{lib → client-lib}/utils/canvas.d.ts +0 -0
- /package/{lib → client-lib}/utils/collisions.d.ts +0 -0
- /package/{lib → client-lib}/utils/coordinates.d.ts +0 -0
- /package/{lib → client-lib}/utils/cssom.d.ts +0 -0
- /package/{lib → client-lib}/utils/decoding.d.ts +0 -0
- /package/{lib → client-lib}/utils/dom.d.ts +0 -0
- /package/{lib → client-lib}/utils/easings.d.ts +0 -0
- /package/{lib → client-lib}/utils/events.d.ts +0 -0
- /package/{lib → client-lib}/utils/file.d.ts +0 -0
- /package/{lib → client-lib}/utils/function.d.ts +0 -0
- /package/{lib → client-lib}/utils/gestures.d.ts +0 -0
- /package/{lib → client-lib}/utils/layout.d.ts +0 -0
- /package/{lib → client-lib}/utils/math.d.ts +0 -0
- /package/{lib → client-lib}/utils/number.d.ts +0 -0
- /package/{lib → client-lib}/utils/object.d.ts +0 -0
- /package/{lib → client-lib}/utils/polyfills.d.ts +0 -0
- /package/{lib → client-lib}/utils/string.d.ts +0 -0
- /package/{lib → client-lib}/utils/style.d.ts +0 -0
- /package/{lib → client-lib}/utils/ts-shape.d.ts +0 -0
- /package/{lib → client-lib}/utils/ts-utility.d.ts +0 -0
- /package/{lib → client-lib}/utils/url.d.ts +0 -0
- /package/{lib → client-lib}/video/index.cjs +0 -0
- /package/{lib → client-lib}/video/index.d.ts +0 -0
- /package/{lib → client-lib}/video/index.js +0 -0
- /package/{lib → client-lib}/window-resizer/index.cjs +0 -0
- /package/{lib → client-lib}/window-resizer/index.d.ts +0 -0
- /package/{lib → client-lib}/window-resizer/index.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Is=Object.defineProperty;var Ss=Object.getOwnPropertySymbols;var Ts=Object.prototype.hasOwnProperty,Ms=Object.prototype.propertyIsEnumerable;var ds=(S,n,s)=>n in S?Is(S,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):S[n]=s,ps=(S,n)=>{for(var s in n||(n={}))Ts.call(n,s)&&ds(S,s,n[s]);if(Ss)for(var s of Ss(n))Ms.call(n,s)&&ds(S,s,n[s]);return S};var es=(S,n,s)=>{if(!n.has(S))throw TypeError("Cannot "+s)};var t=(S,n,s)=>(es(S,n,"read from private field"),s?s.call(S):n.get(S)),i=(S,n,s)=>{if(n.has(S))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(S):n.set(S,s)},r=(S,n,s,e)=>(es(S,n,"write to private field"),e?e.call(S,s):n.set(S,s),s);var o=(S,n,s)=>(es(S,n,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Dt=require("../Store-Cr3VaD9G.cjs"),As=require("../Derived-D9VrDuf9.cjs"),ls=require("../browser-CpzFX2xg.cjs"),Bs=require("../easings-DsS5-Kqc.cjs"),Rt=require("../layout-8ryRAMGJ.cjs"),us=require("../math-GDWEqu7y.cjs");require("../ticker/index.cjs");const ge=require("../order/index.cjs"),ms=require("../Damped-Da3EnNN4.cjs"),_s=require("../Tweened-DksN-Rz6.cjs"),$e=require("../controls/index.cjs"),be=require("../window-resizer/index.cjs"),ee=require("../scroll-entries/index.cjs"),H=require("../tags-BosXYPYv.cjs"),as=require("../createStylesheet-9nksoWW0.cjs"),fs=require("../css-unit-parser/index.cjs"),c=require("../css-property/index.cjs"),Hs=require("../Viewport-BBYt1Ivy.cjs"),We=require("../element-resizer/index.cjs"),$s=require("../gestures-DHLrn6Q8.cjs"),bs=require("../theme/index.cjs"),Ws=require("../dom-JBOkFLTh.cjs"),gs=require("../function-MthRj-GJ.cjs");var f,ye,y,It,Z,dt;class Us{constructor(n,s,e){i(this,f,void 0);i(this,ye,void 0);i(this,y,void 0);i(this,It,0);i(this,Z,0);i(this,dt,null);r(this,f,n),r(this,ye,s),r(this,y,e),ee.scrollEntries.register(t(this,f))}get index(){return t(this,ye)}get size(){return t(this,It)}get position(){return t(this,Z)}destroy(){ee.scrollEntries.unregister(t(this,f)),t(this,f).style.transform="",this.mark(null)}setSize(n){n?(t(this,f).style.setProperty("--size",n+"px"),t(this,y).axisCSSProperty.current==="x"?(t(this,f).style.width=n+"px",t(this,f).style.height=""):(t(this,f).style.height=n+"px",t(this,f).style.width="")):(t(this,f).style.width="",t(this,f).style.height="",t(this,f).style.removeProperty("--size"))}resize(){r(this,It,t(this,y).vertical?t(this,f).offsetHeight:t(this,f).offsetWidth),r(this,Z,t(this,y).vertical?Rt.getCumulativeOffsetTop(t(this,f)):Rt.getCumulativeOffsetLeft(t(this,f))),r(this,Z,t(this,Z)-t(this,y).contentPosition)}transform(){let n=0;const s=t(this,y).viewportSize*t(this,y).sectionDistanceScaleCSSProperty.current;t(this,y).loopCSSProperty.current&&t(this,y).overscroll&&t(this,Z)+t(this,It)<t(this,y).currentScrollValue&&(n=t(this,y).distance*-1-t(this,y).gap),ee.scrollEntries.update(t(this,f),t(this,y).axisCSSProperty.current,n);const e=t(this,y).currentScrollValue+n,h=t(this,Z)-t(this,y).viewportSize-s,u=t(this,Z)+t(this,It)+s,b=us.clamp(e,h,u);t(this,y).vertical?t(this,f).style.transform=`translate3d(0px, ${b*-1}px, 0px)`:t(this,f).style.transform=`translate3d(${b*-1}px, 0px, 0px)`}mark(n){t(this,dt)!==n&&(t(this,dt)&&t(this,f).classList.remove(t(this,dt)),n&&t(this,f).classList.add(n),r(this,dt,n),t(this,f).dispatchEvent(new CustomEvent("sectionsChange",{composed:!0,detail:{mark:t(this,dt)}})))}}f=new WeakMap,ye=new WeakMap,y=new WeakMap,It=new WeakMap,Z=new WeakMap,dt=new WeakMap;const Gs=as.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".static":{position:"var(--static-position, absolute)",top:"var(--static-top, 0)",left:"var(--static-left, 0)",width:"var(--static-width, 100%)",height:"var(--static-height, 100%)"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)",willChange:"var(--will-change, transform)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});var a,Tt,V,j,J,$,Q,pt,ft,W,F,Mt,At,Bt,_t,re,U,Ht,bt,G,mt,X,gt,$t,Wt,Ut,p,Ce,l,ve,Pe,v,m,O,K,yt,Y,x,g,he,Ct,Gt,Kt,ne,tt,Nt,me,vt,ie,we,ss,Ee,is,xe,rs,Le,hs,q,ze,Ge,ys,oe,Ve,Fe,ns,et,Ot,ke,os;class Ue extends HTMLElement{constructor(){super();i(this,Nt);i(this,vt);i(this,we);i(this,Ee);i(this,xe);i(this,Le);i(this,Ge);i(this,Fe);i(this,et);i(this,ke);i(this,a,null);i(this,Tt,new c.CSSProperty(this,"--controls",!0));i(this,V,new c.CSSProperty(this,"--axis","y"));i(this,j,new c.CSSProperty(this,"--direction",0));i(this,J,new c.CSSProperty(this,"--pages",0,{validate:s=>Math.max(0,s-1)}));i(this,$,new c.CSSProperty(this,"--split",!1));i(this,Q,new c.CSSProperty(this,"--sectional",!1));i(this,pt,new c.CSSProperty(this,"--auto-size",!1));i(this,ft,new c.CSSProperty(this,"--wheel-max-delta",!1));i(this,W,new c.CSSProperty(this,"--sections-in-view",1));i(this,F,new c.CSSProperty(this,"--loop",!1));i(this,Mt,new c.CSSProperty(this,"--damping",20));i(this,At,new c.CSSProperty(this,"--mass",0));i(this,Bt,new c.CSSProperty(this,"--stiffness",0));i(this,_t,new c.CSSProperty(this,"--mouse-drag",!1));i(this,re,new c.CSSProperty(this,"--section-distance-scale",.5));i(this,U,new c.CSSProperty(this,"--autoplay",0));i(this,Ht,new c.CSSProperty(this,"--autoplay-pause-duration",0));i(this,bt,new c.CSSProperty(this,"--autoplay-user-direction",!1));i(this,G,new c.CSSProperty(this,"--classes",0));i(this,mt,new c.CSSProperty(this,"--current-index-start-offset",0));i(this,X,new c.CSSProperty(this,"--current-index-end-offset",0));i(this,gt,new c.CSSProperty(this,"--focus-delay",0));i(this,$t,new c.CSSProperty(this,"--focus-duration",3e3));i(this,Wt,new c.CSSProperty(this,"--disabled",!1));i(this,Ut,new c.CSSProperty(this,"--hibernated",!1));i(this,p,null);i(this,Ce,null);i(this,l,[]);i(this,ve,0);i(this,Pe,0);i(this,v,0);i(this,m,0);i(this,O,0);i(this,K,null);i(this,yt,null);i(this,Y,null);i(this,x,null);i(this,g,new Dt.Store(0));i(this,he,0);i(this,Ct,0);i(this,Gt,!0);i(this,Kt,!0);i(this,ne,void 0);i(this,tt,new _s.Tweened);i(this,q,()=>{t(this,a).unlistenAnimationFrame();const s=this.currentScrollValue/t(this,m)||0,e=t(this,g).current;if(r(this,ve,this.vertical?Rt.getCumulativeOffsetTop(this):Rt.getCumulativeOffsetLeft(this)),r(this,Pe,this.vertical?Rt.getCumulativeOffsetTop(t(this,p)):Rt.getCumulativeOffsetLeft(t(this,p))),r(this,v,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?r(this,O,fs.cssUnitParser.parse(getComputedStyle(t(this,p)).rowGap)):r(this,O,fs.cssUnitParser.parse(getComputedStyle(t(this,p)).columnGap)),t(this,pt).current&&t(this,l).length){const h=t(this,W).current,u=(t(this,v)-t(this,O)*(h-1))/h;t(this,l).forEach(b=>{b.setSize(u)})}else t(this,l).forEach(h=>{h.setSize()});if(t(this,l).forEach(h=>{h.resize()}),t(this,J).current){r(this,m,t(this,v)*t(this,J).current);const h=t(this,m)+t(this,v);this.vertical?(t(this,p).style.width=h+"px",t(this,p).style.height="100%"):(t(this,p).style.height=h+"px",t(this,p).style.width="100%")}else this.vertical?(t(this,p).style.width="100%",t(this,p).style.height="max-content",r(this,m,t(this,p).offsetHeight-t(this,v))):(t(this,p).style.width="max-content",t(this,p).style.height="100%",r(this,m,t(this,p).offsetWidth-t(this,v)));if(!t(this,F).current){const h=getComputedStyle(this),u=this.vertical?parseFloat(h.paddingBlockStart)+parseFloat(h.paddingBlockEnd):parseFloat(h.paddingInlineStart)+parseFloat(h.paddingInlineEnd);r(this,m,t(this,m)+u),t(this,a).max=t(this,m)}if(t(this,F).current&&t(this,l).length){const h=t(this,l)[t(this,l).length-1],u=h.position+h.size-t(this,v),b=t(this,m)-u;r(this,Ct,h.position+h.size+b)}else r(this,Ct,t(this,m));if(t(this,Q).current&&t(this,l).length){const h=t(this,l)[e];t(this,a).set(h.position,{equalize:!0})}else t(this,a).set(s*t(this,m),{equalize:!0})});i(this,ze,()=>{const s=this.currentScrollValue;if(r(this,he,Math.max(0,s-t(this,m))),t(this,l).length){let e=0;for(let h=0;h<t(this,l).length;h++){const u=t(this,l)[h];u.transform(),this.targetScrollValue+u.size/2>=u.position&&(e=h)}t(this,g).current=e}else this.vertical?t(this,p).style.transform=`translate3d(0px, ${s*-1}px, 0px)`:t(this,p).style.transform=`translate3d(${s*-1}px, 0px, 0px)`;ee.scrollEntries.update(this,t(this,V).current,s)});i(this,oe,(s,e)=>{t(this,Tt).current&&(t(this,bt).current&&(t(this,x).pauseAndContinue(t(this,Ht).current),t(this,x).direction=Math.sign(e)||1),t(this,Ve).call(this,s,e))});i(this,Ve,(s,e)=>{if(t(this,j).current){if(t(this,j).current<0&&e>0)return;if(t(this,j).current>0&&e<0)return}if(t(this,tt).unlistenAnimationFrame(),!t(this,U).current&&t(this,gt).current&&(clearInterval(t(this,ne)),r(this,ne,setTimeout(()=>{const h=o(this,ke,os).call(this);h&&this.scrollToSection(h.index,{tween:{duration:t(this,$t).current,easing:Bs.easeInOutExpo}})},t(this,gt).current))),!(s==="drag"&&!Hs.device.isMobile&&!t(this,_t).current))if(t(this,Q).current){const h=Math.sign(e);t(this,l).length?this.shiftSections(h):t(this,a).shift(h*t(this,v))}else t(this,a).shift(e)});ls.isBrowser&&(r(this,a,new ms.Damped(0,{damping:.01,min:0,order:ge.TICK_ORDER.SCROLL})),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Gs),H.element(this,{tabIndex:0,children:[H.div({class:"static",children:[H.slot({name:"static"})]}),H.div({class:"content",children:[H.slot({ref:e=>r(this,Ce,e)})],style:{flexDirection:new As.Derived(t(this,V),e=>e==="x"?"row":"column")},ref:e=>r(this,p,e)})]}),r(this,K,new $e.WheelControls({element:t(this,p)})),t(this,K).changeEvent.subscribe(t(this,oe)),r(this,yt,new $e.KeyboardControls({element:this})),t(this,yt).changeEvent.subscribe(t(this,oe)),r(this,Y,new $e.DragControls({element:t(this,p)})),t(this,Y).changeEvent.subscribe(t(this,oe)),r(this,x,new $e.AutoplayControls({culling:this})),t(this,x).changeEvent.subscribe(t(this,Ve)),t(this,V).subscribe(({current:e})=>{t(this,p).style.flexDirection=e==="x"?"row":"column",t(this,K).axis=t(this,ft).current?"max":e,t(this,yt).dimension=e==="x"?"width":"height",t(this,Y).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),this.isConnected&&t(this,q).call(this)}),t(this,ft).subscribe(e=>{t(this,K).axis=e.current?"max":t(this,V).current}),t(this,J).subscribe(()=>{this.isConnected&&t(this,q).call(this)}),t(this,$).subscribe(({current:e})=>{this.isConnected&&(e?o(this,Nt,me).call(this):o(this,vt,ie).call(this))}),t(this,Q).subscribe(e=>{t(this,K).debounce=e.current,t(this,Y).swipe=e.current,t(this,x).interval=e.current,this.isConnected&&(e.current&&!e.previous&&!t(this,l).length?o(this,Nt,me).call(this):!e.current&&e.previous&&t(this,l).length&&o(this,vt,ie).call(this))}),t(this,pt).subscribe(e=>{this.isConnected&&(t(this,q).call(this),e.current&&!e.previous&&!t(this,l).length?o(this,Nt,me).call(this):!e.current&&e.previous&&t(this,l).length&&o(this,vt,ie).call(this))}),t(this,W).subscribe(e=>{this.isConnected&&(t(this,q).call(this),o(this,et,Ot).call(this))}),t(this,F).subscribe(e=>{e.current?(this.isConnected&&(t(this,l).length||(t(this,$).current=!0)),t(this,l).length&&(t(this,a).max=1/0,t(this,a).min=-1/0)):(r(this,he,0),t(this,a).max=t(this,m),t(this,a).min=0)}),t(this,Mt).subscribe(e=>{t(this,a).damping=e.current}),t(this,At).subscribe(e=>{t(this,a).mass=e.current}),t(this,Bt).subscribe(e=>{t(this,a).stiffness=e.current}),t(this,Wt).subscribe(e=>{e.current&&!e.previous?o(this,we,ss).call(this):!e.current&&e.previous&&o(this,Ee,is).call(this)}),t(this,Ut).subscribe(e=>{e.current&&!e.previous?o(this,xe,rs).call(this):!e.current&&e.previous&&o(this,Le,hs).call(this)}),t(this,U).subscribe(e=>{t(this,x).speed=e.current,e.current&&!e.previous?t(this,x).connect():!e.current&&e.previous&&t(this,x).disconnect()}),t(this,bt).subscribe(e=>{e.current||(t(this,x).direction=1)}),t(this,G).subscribe(e=>{this.isConnected&&o(this,et,Ot).call(this)}),t(this,mt).subscribe(e=>{this.isConnected&&t(this,G).current&&o(this,et,Ot).call(this)}),t(this,X).subscribe(e=>{this.isConnected&&t(this,G).current&&o(this,et,Ot).call(this)}),t(this,a).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,g).subscribe(e=>{t(this,l).length&&o(this,et,Ot).call(this)}),t(this,tt).subscribe(e=>{t(this,tt).isRunning.current&&t(this,a).set(e.current)}))}get damped(){return t(this,a)}get controlsCSSProperty(){return t(this,Tt)}get axisCSSProperty(){return t(this,V)}get directionCSSProperty(){return t(this,j)}get pagesCSSProperty(){return t(this,J)}get splitCSSProperty(){return t(this,$)}get sectionalCSSProperty(){return t(this,Q)}get autoSizeCSSProperty(){return t(this,pt)}get wheelMaxDeltaCSSProperty(){return t(this,ft)}get sectionsInViewCSSProperty(){return t(this,W)}get loopCSSProperty(){return t(this,F)}get dampingCSSProperty(){return t(this,Mt)}get massCSSProperty(){return t(this,At)}get stiffnessCSSProperty(){return t(this,Bt)}get mouseDragCSSProperty(){return t(this,_t)}get sectionDistanceScaleCSSProperty(){return t(this,re)}get autoplayCSSProperty(){return t(this,U)}get autoplayPauseDurationCSSProperty(){return t(this,Ht)}get autoplayUserDirectionCSSProperty(){return t(this,bt)}get classesCSSProperty(){return t(this,G)}get currentIndexStartOffsetCSSProperty(){return t(this,mt)}get currentIndexEndOffsetCSSProperty(){return t(this,X)}get focusDelayCSSProperty(){return t(this,gt)}get focusDurationCSSProperty(){return t(this,$t)}get disabledCSSProperty(){return t(this,Wt)}get hibernatedCSSProperty(){return t(this,Ut)}get currentScrollValue(){return o(this,Fe,ns).call(this,"current")}get targetScrollValue(){return o(this,Fe,ns).call(this,"target")}get contentElement(){return t(this,p)}get sections(){return t(this,l)}get position(){return t(this,ve)}get contentPosition(){return t(this,Pe)}get viewportSize(){return t(this,v)}get scrollSize(){return t(this,m)}get gap(){return t(this,O)}get counter(){return t(this,g)}get limit(){return t(this,l).length-t(this,W).current}get distance(){return t(this,Ct)}get loopDistance(){return t(this,F).current?t(this,Ct)+t(this,O):t(this,Ct)}get overscroll(){return t(this,he)}get vertical(){return t(this,V).current==="y"}get currentProgress(){return this.currentScrollValue/this.loopDistance||0}get targetProgress(){return this.targetScrollValue/this.loopDistance||0}get scrollWidth(){return t(this,V).current==="y"?0:t(this,a).distance}get scrollHeight(){return t(this,V).current==="x"?0:t(this,a).distance}onScroll(...s){return t(this,a).subscribe(...s)}offScroll(...s){t(this,a).unsubscribe(...s)}range(s,e,h=0){const u=s-h,b=u+e+h*2;return this.currentProgress<u?0:this.currentProgress>b?1:(this.currentProgress-u)/(b-u)}curve(s,e,h=0){return Math.sin(this.range(s,e,h)*Math.PI)}visible(s,e,h=0){const u=s-h,b=u+e+h*2;return this.currentProgress>=u&&this.currentProgress<=b}scrollToSection(s,e){if(!t(this,l).length)return;const h=t(this,g).current;o(this,Ge,ys).call(this,s);const u=t(this,l)[h],b=t(this,l)[t(this,g).current];if(u&&b){let D=0;const se=o(this,ke,os).call(this),qs=se?this.targetScrollValue-se.position:0;t(this,F).current?t(this,g).current===0&&h===t(this,l).length-1?D=t(this,m)+t(this,v)-u.position+t(this,O):t(this,g).current===t(this,l).length-1&&h===0?D=b.position-(t(this,m)+t(this,v)+t(this,O)):D=b.position-u.position:D=b.position-u.position,this.shiftPosition(D-qs,e)}}shiftSections(s,e){t(this,l).length&&this.scrollToSection(t(this,g).current+s,e)}setPosition(s,e){e!=null&&e.tween?(t(this,tt).set(t(this,a).current,{equalize:!0}),t(this,tt).set(s,ps({},e.tween))):t(this,a).set(s,{equalize:(e==null?void 0:e.behaviour)==="instant"})}shiftPosition(s,e){this.setPosition(t(this,a).target+s,e)}connectedCallback(){t(this,Tt).observe(),t(this,V).observe(),t(this,j).observe(),t(this,J).observe(),t(this,$).observe(),t(this,Q).observe(),t(this,pt).observe(),t(this,ft).observe(),t(this,W).observe(),t(this,F).observe(),t(this,Mt).observe(),t(this,At).observe(),t(this,Bt).observe(),t(this,_t).observe(),t(this,re).observe(),t(this,U).observe(),t(this,U).observe(),t(this,Ht).observe(),t(this,bt).observe(),t(this,G).observe(),t(this,mt).observe(),t(this,X).observe(),t(this,gt).observe(),t(this,$t).observe(),t(this,Wt).observe(),t(this,Ut).observe(),o(this,Le,hs).call(this)}disconnectedCallback(){t(this,Tt).unobserve(),t(this,V).unobserve(),t(this,j).unobserve(),t(this,J).unobserve(),t(this,$).unobserve(),t(this,Q).unobserve(),t(this,pt).unobserve(),t(this,ft).unobserve(),t(this,W).unobserve(),t(this,F).unobserve(),t(this,Mt).unobserve(),t(this,At).unobserve(),t(this,Bt).unobserve(),t(this,_t).unobserve(),t(this,re).unobserve(),t(this,U).unobserve(),t(this,Ht).unobserve(),t(this,bt).unobserve(),t(this,G).unobserve(),t(this,mt).unobserve(),t(this,X).unobserve(),t(this,gt).unobserve(),t(this,$t).unobserve(),t(this,Wt).unobserve(),t(this,Ut).unobserve(),o(this,xe,rs).call(this)}}a=new WeakMap,Tt=new WeakMap,V=new WeakMap,j=new WeakMap,J=new WeakMap,$=new WeakMap,Q=new WeakMap,pt=new WeakMap,ft=new WeakMap,W=new WeakMap,F=new WeakMap,Mt=new WeakMap,At=new WeakMap,Bt=new WeakMap,_t=new WeakMap,re=new WeakMap,U=new WeakMap,Ht=new WeakMap,bt=new WeakMap,G=new WeakMap,mt=new WeakMap,X=new WeakMap,gt=new WeakMap,$t=new WeakMap,Wt=new WeakMap,Ut=new WeakMap,p=new WeakMap,Ce=new WeakMap,l=new WeakMap,ve=new WeakMap,Pe=new WeakMap,v=new WeakMap,m=new WeakMap,O=new WeakMap,K=new WeakMap,yt=new WeakMap,Y=new WeakMap,x=new WeakMap,g=new WeakMap,he=new WeakMap,Ct=new WeakMap,Gt=new WeakMap,Kt=new WeakMap,ne=new WeakMap,tt=new WeakMap,Nt=new WeakSet,me=function(){o(this,vt,ie).call(this),t(this,Ce).assignedElements().forEach((s,e)=>{s instanceof HTMLElement&&t(this,l).push(new Us(s,e,this))}),t(this,p).style.transform="",this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0})),t(this,q).call(this),o(this,et,Ot).call(this)},vt=new WeakSet,ie=function(){t(this,l).forEach(s=>{s.destroy()}),r(this,l,[]),t(this,g).current=0,t(this,a).reset(),this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0}))},we=new WeakSet,ss=function(){t(this,Gt)||(r(this,Gt,!0),t(this,a).unsubscribe(t(this,ze)),t(this,a).unlistenAnimationFrame(),t(this,K).disconnect(),t(this,yt).disconnect(),t(this,Y).disconnect(),t(this,x).disconnect(),clearInterval(t(this,ne)),t(this,tt).unlistenAnimationFrame())},Ee=new WeakSet,is=function(){t(this,Gt)&&(r(this,Gt,!1),t(this,a).subscribe(t(this,ze)),t(this,K).connect(),t(this,yt).connect(),t(this,Y).connect(),t(this,U).current&&t(this,x).connect())},xe=new WeakSet,rs=function(){t(this,Kt)||(r(this,Kt,!0),be.windowResizer.unsubscribe(t(this,q)),We.elementResizer.unsubscribe(t(this,q)),t(this,a).reset(),o(this,we,ss).call(this),t(this,p).style.transform="",t(this,$).current&&o(this,vt,ie).call(this),ee.scrollEntries.unregister(this))},Le=new WeakSet,hs=function(){t(this,Kt)&&(r(this,Kt,!1),t(this,$).current&&o(this,Nt,me).call(this),ee.scrollEntries.register(this),be.windowResizer.subscribe(t(this,q),ge.RESIZE_ORDER.SCROLL),We.elementResizer.subscribe(this,t(this,q)),o(this,Ee,is).call(this))},q=new WeakMap,ze=new WeakMap,Ge=new WeakSet,ys=function(s){t(this,F).current?(t(this,g).current=s%t(this,l).length,t(this,g).current=t(this,g).current<0?t(this,l).length+t(this,g).current:t(this,g).current):t(this,g).current=us.clamp(s,0,this.limit)},oe=new WeakMap,Ve=new WeakMap,Fe=new WeakSet,ns=function(s="current"){if(t(this,F).current&&t(this,l).length){const e=t(this,a)[s]%(t(this,m)+t(this,v)+t(this,O));return e<0?t(this,m)+e+t(this,v)+t(this,O):e}else return t(this,a)[s]},et=new WeakSet,Ot=function(){if(t(this,G).current&&t(this,l).length){const s=t(this,g).current+t(this,mt).current;s===0?this.classList.add("start"):this.classList.remove("start"),s===this.limit?this.classList.add("end"):this.classList.remove("end");const e=t(this,W).current+t(this,X).current;t(this,l).forEach((h,u)=>{const b=s-this.limit-1+t(this,X).current,D=s+e,se=this.sections.length-D;u>=s&&u<D||u<=b?h.mark("current"):u>=D&&u<D+se/2||u<=b+e?h.mark("next"):h.mark("previous")})}},ke=new WeakSet,os=function(){let s=null,e=1/0;for(let h=0;h<t(this,l).length;h++){const u=Math.abs(t(this,l)[h].position-this.targetScrollValue);u<e&&(e=u,s=h)}return s!==null?t(this,l)[s]:null};customElements.get("e-scroll")||customElements.define("e-scroll",Ue);var Re;class ts extends HTMLElement{constructor(){super(...arguments);i(this,Re,null)}get scrollElement(){return t(this,Re)}connectedCallback(){const s=Ws.findParentElement(this,Ue);s instanceof Ue?r(this,Re,s):console.error(this,"e-scroll not found")}}Re=new WeakMap;const Ks=as.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:bs.aptechkaTheme.colorFont.var},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:bs.aptechkaTheme.colorMain.var,borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});var ce,k,st,it,le,ue,Zt,De,Oe,qe;class Cs extends ts{constructor(){super();i(this,ce,null);i(this,k,null);i(this,st,!1);i(this,it,0);i(this,le,0);i(this,ue,0);i(this,Zt,()=>{r(this,st,this.offsetWidth>this.offsetHeight);const s=t(this,st)?this.offsetWidth:this.offsetHeight;r(this,it,s/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/s)),r(this,it,Math.max(t(this,it),30)),t(this,st)?(t(this,k).style.width=t(this,it)+"px",t(this,k).style.height="100%"):(t(this,k).style.width="100%",t(this,k).style.height=t(this,it)+"px"),r(this,le,s-t(this,it)),this.scrollElement.scrollSize||(this.style.display="none")});i(this,De,()=>{r(this,ue,this.scrollElement.currentProgress*t(this,le)),t(this,st)?t(this,k).style.transform=`translate3d(${t(this,ue)}px, 0px, 0px)`:t(this,k).style.transform=`translate3d(0px, ${t(this,ue)}px, 0px)`});i(this,Oe,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)});i(this,qe,s=>{document.documentElement.classList.add("grabbing"),$s.setupDrag(u=>{const b=t(this,st)?u.x:u.y,D=this.scrollElement.distance/t(this,le),se=(b-h)*D;this.scrollElement.setPosition(e+se)},()=>{document.documentElement.classList.remove("grabbing")});const e=this.scrollElement.targetScrollValue,h=t(this,st)?s.x:s.y});ls.isBrowser&&(this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Ks),H.element(this,{slot:"static","drag-dead-zone":"",children:[H.slot({ref:e=>r(this,ce,e),children:H.div({class:"default-thumb"})})]}))}get thumbElement(){return t(this,k)}connectedCallback(){super.connectedCallback();const s=t(this,ce).assignedElements()[0]||t(this,ce).firstElementChild;r(this,k,s),t(this,k).addEventListener("pointerdown",t(this,qe)),be.windowResizer.subscribe(t(this,Zt),ge.RESIZE_ORDER.SCROLL+1),We.elementResizer.subscribe(this,t(this,Zt)),this.scrollElement.onScroll(t(this,De)),this.scrollElement.axisCSSProperty.subscribe(t(this,Oe))}disconnectedCallback(){t(this,k).removeEventListener("pointerdown",t(this,qe)),be.windowResizer.unsubscribe(t(this,Zt)),We.elementResizer.unsubscribe(t(this,Zt)),this.scrollElement.offScroll(t(this,De)),this.scrollElement.axisCSSProperty.unsubscribe(t(this,Oe))}}ce=new WeakMap,k=new WeakMap,st=new WeakMap,it=new WeakMap,le=new WeakMap,ue=new WeakMap,Zt=new WeakMap,De=new WeakMap,Oe=new WeakMap,qe=new WeakMap;customElements.get("e-scrollbar")||customElements.define("e-scrollbar",Cs);const Ns=as.createStylesheet({button:{all:"inherit"}});class vs extends ts{constructor(){super(),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Ns),ls.isBrowser&&H.element(this,{children:[H.button({onClick:()=>{this.handleClick()},children:[H.slot()]})]})}}class Ps extends vs{handleClick(){const n=this.getAttribute("index"),s=this.getAttribute("behaviour");this.scrollElement.scrollToSection(parseInt(n||"0"),{behaviour:s})}}customElements.get("e-scroll-set-button")||customElements.define("e-scroll-set-button",Ps);class ws extends vs{handleClick(){const n=this.getAttribute("step"),s=this.getAttribute("behaviour");this.scrollElement.shiftSections(parseInt(n||"1"),{behaviour:s})}}customElements.get("e-scroll-step-button")||customElements.define("e-scroll-step-button",ws);var rt,Pt,ae,Ie,Te,Se;class Zs{constructor(n,s,e){i(this,rt,void 0);i(this,Pt,void 0);i(this,ae,void 0);i(this,Ie,void 0);i(this,Te,()=>{t(this,Pt).scrollToSection(t(this,ae),{behaviour:t(this,Ie)})});i(this,Se,()=>{t(this,rt).classList.toggle("current",t(this,Pt).counter.current===t(this,ae))});r(this,rt,document.createElement("button")),r(this,Pt,n),r(this,Ie,e),r(this,ae,s),t(this,rt).addEventListener("click",t(this,Te)),t(this,Pt).counter.subscribe(t(this,Se)),t(this,Se).call(this)}get element(){return t(this,rt)}destroy(){t(this,rt).removeEventListener("click",t(this,Te)),t(this,Pt).counter.unsubscribe(t(this,Se)),t(this,rt).remove()}}rt=new WeakMap,Pt=new WeakMap,ae=new WeakMap,Ie=new WeakMap,Te=new WeakMap,Se=new WeakMap;var wt,de;class Es extends ts{constructor(){super(...arguments);i(this,wt,[]);i(this,de,gs.debounce(()=>{t(this,wt).forEach(s=>s.destroy()),r(this,wt,[]);for(let s=0;s<this.scrollElement.sections.length;s++){const e=new Zs(this.scrollElement,s,this.getAttribute("behaviour")||"smooth");this.appendChild(e.element),t(this,wt).push(e)}},0))}connectedCallback(){super.connectedCallback(),this.scrollElement.addEventListener("sectionsChange",t(this,de)),t(this,de).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("sectionsChange",t(this,de)),t(this,wt).forEach(s=>s.destroy()),r(this,wt,[])}}wt=new WeakMap,de=new WeakMap;customElements.get("e-scroll-bullet-buttons")||customElements.define("e-scroll-bullet-buttons",Es);var jt,Jt,Qt,Xt,Et,xt,Lt,zt,L,I,T,M,Vt,P,ht,nt,ot,ct,lt,w,A,B,ut,at,N,Me,d,Yt,te,Ae,E,Ft,R,z,_,pe,kt,C,Ke,Ls,Ne,zs,Ze,Vs,je,Fs,Je,ks,Qe,Rs,Be,fe,St,qt,Xe,Ds,Ye,Os,_e,cs,He;class xs extends ts{constructor(){super();i(this,Ke);i(this,Ne);i(this,Ze);i(this,je);i(this,Je);i(this,Qe);i(this,St);i(this,Xe);i(this,Ye);i(this,_e);i(this,jt,new c.CSSProperty(this,"--damping",20));i(this,Jt,new c.CSSProperty(this,"--mass",0));i(this,Qt,new c.CSSProperty(this,"--stiffness",0));i(this,Xt,new c.CSSProperty(this,"--target",""));i(this,Et,new c.CSSProperty(this,"--disabled",!1));i(this,xt,new c.CSSProperty(this,"--distance-offset",0,{rawValueCheck:!1}));i(this,Lt,new c.CSSProperty(this,"--start-offset",0,{rawValueCheck:!1}));i(this,zt,new c.CSSProperty(this,"--capture-once",!1));i(this,L,new c.CSSProperty(this,"--captured",""));i(this,I,new c.CSSProperty(this,"--released",""));i(this,T,new c.CSSProperty(this,"--captured-from-start",""));i(this,M,new c.CSSProperty(this,"--captured-from-finish",""));i(this,Vt,new c.CSSProperty(this,"--released-from-start",""));i(this,P,new c.CSSProperty(this,"--released-from-finish",""));i(this,ht,new c.CSSProperty(this,"--passed-var",""));i(this,nt,new c.CSSProperty(this,"--progress-var",""));i(this,ot,new c.CSSProperty(this,"--distance-var",""));i(this,ct,new c.CSSProperty(this,"--start-var",""));i(this,lt,new c.CSSProperty(this,"--finish-var",""));i(this,w,new Dt.Store(!1));i(this,A,new Dt.Store(!1));i(this,B,new Dt.Store(!1));i(this,ut,new Dt.Store(!1));i(this,at,new Dt.Store(!1));i(this,N,new Dt.Store(!1));i(this,Me,[]);i(this,d,this);i(this,Yt,0);i(this,te,0);i(this,Ae,0);i(this,E,new ms.Damped(0,{order:ge.TICK_ORDER.SCROLL-1,min:0,max:1}));i(this,Ft,0);i(this,R,0);i(this,z,0);i(this,_,0);i(this,pe,!1);i(this,kt,!1);i(this,C,!0);i(this,Be,()=>{t(this,C)||(this.resize(),t(this,fe).call(this))});i(this,fe,()=>{!t(this,C)&&t(this,pe)&&this.tick()});i(this,He,gs.debounce(()=>{const s=ee.scrollEntries.getAll(this).reverse();let e=0;s.forEach((h,u)=>{h.element===this.scrollElement&&(e=u)}),r(this,Me,s.slice(e+1))},0))}get distanceOffsetCSSProperty(){return t(this,xt)}get startOffsetCSSProperty(){return t(this,Lt)}get captureOnceCSSProperty(){return t(this,zt)}get capturedCSSProperty(){return t(this,L)}get releasedCSSProperty(){return t(this,I)}get capturedFromStartCSSProperty(){return t(this,T)}get capturedFromFinishCSSProperty(){return t(this,M)}get releasedFromStartCSSProperty(){return t(this,Vt)}get releasedFromFinishCSSProperty(){return t(this,P)}get passedVarCSSProperty(){return t(this,ht)}get progressVarCSSProperty(){return t(this,nt)}get distanceVarCSSProperty(){return t(this,ot)}get startVarCSSProperty(){return t(this,ct)}get finishVarCSSProperty(){return t(this,lt)}get disabledCSSProperty(){return t(this,Et)}get dampingCSSProperty(){return t(this,jt)}get massCSSProperty(){return t(this,Jt)}get stiffnessCSSProperty(){return t(this,Qt)}get targetCSSProperty(){return t(this,Xt)}get isCaptured(){return t(this,w)}get isReleased(){return t(this,A)}get isCapturedFromStart(){return t(this,B)}get isReleasedFromStart(){return t(this,ut)}get isCapturedFromFinish(){return t(this,at)}get isReleasedFromFinish(){return t(this,N)}get directionPosition(){return t(this,Yt)}get directionSize(){return t(this,te)}get passed(){return t(this,E)}get progress(){return t(this,Ft)}get start(){return t(this,R)}get finish(){return t(this,_)}get distance(){return t(this,z)}get isCapturedOnce(){return t(this,kt)}get isDisabled(){return t(this,C)}resize(){r(this,te,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),r(this,Yt,this.scrollElement.vertical?Rt.getCumulativeOffsetTop(this,this.scrollElement):Rt.getCumulativeOffsetLeft(this,this.scrollElement)),r(this,R,this.getStart()),r(this,z,this.getDistance()),r(this,R,t(this,R)+t(this,Lt).current),r(this,z,t(this,z)+t(this,xt).current),r(this,_,t(this,R)+t(this,z)),this.scrollElement.currentScrollValue>t(this,_)&&!t(this,w).current&&!t(this,A).current&&(t(this,w).current=!0),this.setVar(t(this,ct).current,t(this,R)),this.setVar(t(this,lt).current,t(this,_)),this.setVar(t(this,ot).current,t(this,z)),t(this,E).max=t(this,z),r(this,pe,!0)}tick(){let s=this.scrollElement.currentScrollValue;t(this,Me).forEach(h=>{s+=h.value}),t(this,E).set(s-t(this,R));const e=Math.round(s);t(this,w).current&&(e>t(this,R)?t(this,B).current||o(this,Ze,Vs).call(this):t(this,B).current&&!t(this,ut).current&&o(this,Je,ks).call(this),e<t(this,_)?t(this,N).current&&!t(this,at).current&&o(this,je,Fs).call(this):t(this,B).current&&!t(this,N).current&&o(this,Qe,Rs).call(this)),e>t(this,R)&&e<t(this,_)?t(this,w).current||o(this,Ke,Ls).call(this):t(this,w).current&&(t(this,E).set(us.step(t(this,z)/2,t(this,E).current,0,t(this,z))),o(this,Ne,zs).call(this)),t(this,kt)&&t(this,zt).current&&(t(this,L).current&&t(this,d).classList.add(t(this,L).current),r(this,C,!0))}disable(){this.style.cssText="",r(this,Yt,0),r(this,te,0),t(this,E).reset(),r(this,Ft,0),r(this,R,0),r(this,z,0),r(this,_,0),r(this,pe,!1),t(this,w).current=!1,t(this,A).current=!1,t(this,B).current=!1,t(this,ut).current=!1,t(this,at).current=!1,t(this,N).current=!1,r(this,kt,!1),r(this,C,!0),o(this,_e,cs).call(this)}enable(){r(this,C,!1)}connectedCallback(){super.connectedCallback(),t(this,jt).observe(),t(this,Jt).observe(),t(this,Qt).observe(),t(this,Xt).observe(),t(this,Et).observe(),t(this,xt).observe(),t(this,Lt).observe(),t(this,zt).observe(),t(this,L).observe(),t(this,I).observe(),t(this,T).observe(),t(this,M).observe(),t(this,Vt).observe(),t(this,P).observe(),t(this,ht).observe(),t(this,nt).observe(),t(this,ot).observe(),t(this,ct).observe(),t(this,lt).observe();let s=!1;this.scrollElement.addEventListener("sectionsChange",t(this,He)),t(this,He).call(this),t(this,Et).current||this.enable(),t(this,jt).subscribe(e=>{t(this,E).damping=e.current}),t(this,Jt).subscribe(e=>{t(this,E).mass=e.current}),t(this,Qt).subscribe(e=>{t(this,E).stiffness=e.current}),t(this,Xt).subscribe(e=>{e.previous&&o(this,_e,cs).call(this),e.current?e.current==="parent"?r(this,d,this.parentElement||this):r(this,d,document.querySelector(e.current)||this):r(this,d,this)}),t(this,Et).subscribe(e=>{e.current&&!e.previous?this.disable():!e.current&&e.previous&&(this.resize(),this.enable())}),t(this,Lt).subscribe(()=>{s&&!t(this,C)&&this.resize()}),t(this,xt).subscribe(()=>{s&&!t(this,C)&&this.resize()}),t(this,L).subscribe(e=>{o(this,St,qt).call(this,e)}),t(this,T).subscribe(e=>{o(this,St,qt).call(this,e)}),t(this,M).subscribe(e=>{o(this,St,qt).call(this,e)}),t(this,I).subscribe(e=>{o(this,St,qt).call(this,e)}),t(this,Vt).subscribe(e=>{o(this,St,qt).call(this,e)}),t(this,P).subscribe(e=>{o(this,St,qt).call(this,e)}),t(this,zt).subscribe(e=>{t(this,C)||!e.current&&e.previous&&(this.resize(),this.enable())}),t(this,ht).subscribe(e=>{t(this,C)||(this.removeVar(e.previous),this.setVar(e.current,this.passed.current))}),t(this,nt).subscribe(e=>{t(this,C)||(this.removeVar(e.previous),this.setVar(e.current,t(this,Ft)))}),t(this,ct).subscribe(e=>{t(this,C)||(this.removeVar(e.previous),this.setVar(e.current,t(this,R)))}),t(this,lt).subscribe(e=>{t(this,C)||(this.removeVar(e.previous),this.setVar(e.current,t(this,_)))}),t(this,ot).subscribe(e=>{t(this,C)||(this.removeVar(e.previous),this.setVar(e.current,t(this,z)))}),t(this,E).subscribe(e=>{r(this,Ft,t(this,E).current/t(this,z)||0),this.setVar(t(this,ht).current,t(this,E).current.toFixed(6)),this.setVar(t(this,nt).current,t(this,Ft).toFixed(6))}),be.windowResizer.subscribe(t(this,Be),ge.RESIZE_ORDER.SEGMENT),this.scrollElement.onScroll(t(this,fe)),s=!0}disconnectedCallback(){be.windowResizer.unsubscribe(t(this,Be)),this.scrollElement.offScroll(t(this,fe)),t(this,jt).close(),t(this,Jt).close(),t(this,Qt).close(),t(this,Xt).close(),t(this,Et).close(),t(this,xt).close(),t(this,Lt).close(),t(this,zt).close(),t(this,L).close(),t(this,I).close(),t(this,T).close(),t(this,M).close(),t(this,Vt).close(),t(this,P).close(),t(this,ht).close(),t(this,nt).close(),t(this,ot).close(),t(this,ct).close(),t(this,lt).close(),t(this,w).close(),t(this,A).close(),t(this,B).close(),t(this,ut).close(),t(this,at).close(),t(this,N).close(),this.disable()}removeVar(s){s&&t(this,d).style.removeProperty(`--${s}`)}setVar(s,e){s&&t(this,d).style.setProperty(`--${s}`,e.toString())}getDistance(){return t(this,te)+t(this,Ae)}getStart(){return t(this,Yt)-t(this,Ae)}}jt=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,Xt=new WeakMap,Et=new WeakMap,xt=new WeakMap,Lt=new WeakMap,zt=new WeakMap,L=new WeakMap,I=new WeakMap,T=new WeakMap,M=new WeakMap,Vt=new WeakMap,P=new WeakMap,ht=new WeakMap,nt=new WeakMap,ot=new WeakMap,ct=new WeakMap,lt=new WeakMap,w=new WeakMap,A=new WeakMap,B=new WeakMap,ut=new WeakMap,at=new WeakMap,N=new WeakMap,Me=new WeakMap,d=new WeakMap,Yt=new WeakMap,te=new WeakMap,Ae=new WeakMap,E=new WeakMap,Ft=new WeakMap,R=new WeakMap,z=new WeakMap,_=new WeakMap,pe=new WeakMap,kt=new WeakMap,C=new WeakMap,Ke=new WeakSet,Ls=function(){t(this,w).current=!0,t(this,A).current=!1,r(this,kt,!0),t(this,I).current&&t(this,d).classList.remove(t(this,I).current),t(this,P).current&&t(this,d).classList.remove(t(this,P).current),t(this,P).current&&t(this,d).classList.remove(t(this,P).current),t(this,L).current&&t(this,d).classList.add(t(this,L).current)},Ne=new WeakSet,zs=function(){t(this,A).current=!0,t(this,w).current=!1,r(this,kt,!0),t(this,L).current&&t(this,d).classList.remove(t(this,L).current),t(this,T).current&&t(this,d).classList.remove(t(this,T).current),t(this,M).current&&t(this,d).classList.remove(t(this,M).current),t(this,I).current&&t(this,d).classList.add(t(this,I).current)},Ze=new WeakSet,Vs=function(){t(this,w).current=!0,t(this,B).current=!0,t(this,ut).current=!1,t(this,T).current&&t(this,d).classList.add(t(this,T).current)},je=new WeakSet,Fs=function(){t(this,w).current=!0,t(this,at).current=!0,t(this,N).current=!1,t(this,M).current&&t(this,d).classList.add(t(this,M).current)},Je=new WeakSet,ks=function(){t(this,A).current=!0,t(this,ut).current=!0,t(this,B).current=!1,t(this,P).current&&t(this,d).classList.add(t(this,P).current)},Qe=new WeakSet,Rs=function(){t(this,A).current=!0,t(this,N).current=!0,t(this,at).current=!1,t(this,P).current&&t(this,d).classList.add(t(this,P).current)},Be=new WeakMap,fe=new WeakMap,St=new WeakSet,qt=function(s){if(t(this,C)){s.previous&&t(this,d).classList.remove(s.previous),s.current&&t(this,d).classList.remove(s.current);return}s.current&&t(this,w).current?(s.previous&&t(this,d).classList.remove(s.previous),t(this,d).classList.add(s.current)):!s.current&&s.previous&&t(this,d).classList.remove(s.previous)},Xe=new WeakSet,Ds=function(...s){s.forEach(e=>{e&&t(this,d).classList.remove(e)})},Ye=new WeakSet,Os=function(...s){s.forEach(e=>{e&&t(this,d).style.removeProperty(`--${e}`)})},_e=new WeakSet,cs=function(){o(this,Xe,Ds).call(this,t(this,L).current,t(this,T).current,t(this,M).current,t(this,I).current,t(this,Vt).current,t(this,P).current),o(this,Ye,Os).call(this,t(this,ht).current,t(this,nt).current,t(this,ot).current,t(this,ct).current,t(this,lt).current)},He=new WeakMap;customElements.get("e-scroll-segment")||customElements.define("e-scroll-segment",xs);exports.ScrollBulletButtonsElement=Es;exports.ScrollElement=Ue;exports.ScrollSegmentElement=xs;exports.ScrollSetButtonElement=Ps;exports.ScrollStepButtonElement=ws;exports.ScrollbarElement=Cs;
|
|
1
|
+
"use strict";var Is=Object.defineProperty;var Ss=Object.getOwnPropertySymbols;var Ts=Object.prototype.hasOwnProperty,Ms=Object.prototype.propertyIsEnumerable;var ds=(S,n,s)=>n in S?Is(S,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):S[n]=s,ps=(S,n)=>{for(var s in n||(n={}))Ts.call(n,s)&&ds(S,s,n[s]);if(Ss)for(var s of Ss(n))Ms.call(n,s)&&ds(S,s,n[s]);return S};var es=(S,n,s)=>{if(!n.has(S))throw TypeError("Cannot "+s)};var t=(S,n,s)=>(es(S,n,"read from private field"),s?s.call(S):n.get(S)),i=(S,n,s)=>{if(n.has(S))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(S):n.set(S,s)},r=(S,n,s,e)=>(es(S,n,"write to private field"),e?e.call(S,s):n.set(S,s),s);var o=(S,n,s)=>(es(S,n,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Dt=require("../Store-Cr3VaD9G.cjs"),As=require("../Derived-CNbsNMn_.cjs"),ls=require("../browser-CpzFX2xg.cjs"),Bs=require("../easings-DsS5-Kqc.cjs"),Rt=require("../layout-8ryRAMGJ.cjs"),us=require("../math-GDWEqu7y.cjs");require("../ticker/index.cjs");const ge=require("../order/index.cjs"),ms=require("../Damped-Da3EnNN4.cjs"),_s=require("../Tweened-DksN-Rz6.cjs"),$e=require("../controls/index.cjs"),be=require("../window-resizer/index.cjs"),ee=require("../scroll-entries/index.cjs"),H=require("../tags-BosXYPYv.cjs"),as=require("../createStylesheet-9nksoWW0.cjs"),fs=require("../css-unit-parser/index.cjs"),c=require("../css-property/index.cjs"),Hs=require("../Viewport-BBYt1Ivy.cjs"),We=require("../element-resizer/index.cjs"),$s=require("../gestures-DHLrn6Q8.cjs"),bs=require("../theme/index.cjs"),Ws=require("../dom-JBOkFLTh.cjs"),gs=require("../function-MthRj-GJ.cjs");var f,ye,y,It,Z,dt;class Us{constructor(n,s,e){i(this,f,void 0);i(this,ye,void 0);i(this,y,void 0);i(this,It,0);i(this,Z,0);i(this,dt,null);r(this,f,n),r(this,ye,s),r(this,y,e),ee.scrollEntries.register(t(this,f))}get index(){return t(this,ye)}get size(){return t(this,It)}get position(){return t(this,Z)}destroy(){ee.scrollEntries.unregister(t(this,f)),t(this,f).style.transform="",this.mark(null)}setSize(n){n?(t(this,f).style.setProperty("--size",n+"px"),t(this,y).axisCSSProperty.current==="x"?(t(this,f).style.width=n+"px",t(this,f).style.height=""):(t(this,f).style.height=n+"px",t(this,f).style.width="")):(t(this,f).style.width="",t(this,f).style.height="",t(this,f).style.removeProperty("--size"))}resize(){r(this,It,t(this,y).vertical?t(this,f).offsetHeight:t(this,f).offsetWidth),r(this,Z,t(this,y).vertical?Rt.getCumulativeOffsetTop(t(this,f)):Rt.getCumulativeOffsetLeft(t(this,f))),r(this,Z,t(this,Z)-t(this,y).contentPosition)}transform(){let n=0;const s=t(this,y).viewportSize*t(this,y).sectionDistanceScaleCSSProperty.current;t(this,y).loopCSSProperty.current&&t(this,y).overscroll&&t(this,Z)+t(this,It)<t(this,y).currentScrollValue&&(n=t(this,y).distance*-1-t(this,y).gap),ee.scrollEntries.update(t(this,f),t(this,y).axisCSSProperty.current,n);const e=t(this,y).currentScrollValue+n,h=t(this,Z)-t(this,y).viewportSize-s,u=t(this,Z)+t(this,It)+s,b=us.clamp(e,h,u);t(this,y).vertical?t(this,f).style.transform=`translate3d(0px, ${b*-1}px, 0px)`:t(this,f).style.transform=`translate3d(${b*-1}px, 0px, 0px)`}mark(n){t(this,dt)!==n&&(t(this,dt)&&t(this,f).classList.remove(t(this,dt)),n&&t(this,f).classList.add(n),r(this,dt,n),t(this,f).dispatchEvent(new CustomEvent("sectionsChange",{composed:!0,detail:{mark:t(this,dt)}})))}}f=new WeakMap,ye=new WeakMap,y=new WeakMap,It=new WeakMap,Z=new WeakMap,dt=new WeakMap;const Gs=as.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".static":{position:"var(--static-position, absolute)",top:"var(--static-top, 0)",left:"var(--static-left, 0)",width:"var(--static-width, 100%)",height:"var(--static-height, 100%)"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)",willChange:"var(--will-change, transform)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});var a,Tt,V,j,J,$,Q,pt,ft,W,F,Mt,At,Bt,_t,re,U,Ht,bt,G,mt,X,gt,$t,Wt,Ut,p,Ce,l,ve,Pe,v,m,O,K,yt,Y,x,g,he,Ct,Gt,Kt,ne,tt,Nt,me,vt,ie,we,ss,Ee,is,xe,rs,Le,hs,q,ze,Ge,ys,oe,Ve,Fe,ns,et,Ot,ke,os;class Ue extends HTMLElement{constructor(){super();i(this,Nt);i(this,vt);i(this,we);i(this,Ee);i(this,xe);i(this,Le);i(this,Ge);i(this,Fe);i(this,et);i(this,ke);i(this,a,null);i(this,Tt,new c.CSSProperty(this,"--controls",!0));i(this,V,new c.CSSProperty(this,"--axis","y"));i(this,j,new c.CSSProperty(this,"--direction",0));i(this,J,new c.CSSProperty(this,"--pages",0,{validate:s=>Math.max(0,s-1)}));i(this,$,new c.CSSProperty(this,"--split",!1));i(this,Q,new c.CSSProperty(this,"--sectional",!1));i(this,pt,new c.CSSProperty(this,"--auto-size",!1));i(this,ft,new c.CSSProperty(this,"--wheel-max-delta",!1));i(this,W,new c.CSSProperty(this,"--sections-in-view",1));i(this,F,new c.CSSProperty(this,"--loop",!1));i(this,Mt,new c.CSSProperty(this,"--damping",20));i(this,At,new c.CSSProperty(this,"--mass",0));i(this,Bt,new c.CSSProperty(this,"--stiffness",0));i(this,_t,new c.CSSProperty(this,"--mouse-drag",!1));i(this,re,new c.CSSProperty(this,"--section-distance-scale",.5));i(this,U,new c.CSSProperty(this,"--autoplay",0));i(this,Ht,new c.CSSProperty(this,"--autoplay-pause-duration",0));i(this,bt,new c.CSSProperty(this,"--autoplay-user-direction",!1));i(this,G,new c.CSSProperty(this,"--classes",0));i(this,mt,new c.CSSProperty(this,"--current-index-start-offset",0));i(this,X,new c.CSSProperty(this,"--current-index-end-offset",0));i(this,gt,new c.CSSProperty(this,"--focus-delay",0));i(this,$t,new c.CSSProperty(this,"--focus-duration",3e3));i(this,Wt,new c.CSSProperty(this,"--disabled",!1));i(this,Ut,new c.CSSProperty(this,"--hibernated",!1));i(this,p,null);i(this,Ce,null);i(this,l,[]);i(this,ve,0);i(this,Pe,0);i(this,v,0);i(this,m,0);i(this,O,0);i(this,K,null);i(this,yt,null);i(this,Y,null);i(this,x,null);i(this,g,new Dt.Store(0));i(this,he,0);i(this,Ct,0);i(this,Gt,!0);i(this,Kt,!0);i(this,ne,void 0);i(this,tt,new _s.Tweened);i(this,q,()=>{t(this,a).unlistenAnimationFrame();const s=this.currentScrollValue/t(this,m)||0,e=t(this,g).current;if(r(this,ve,this.vertical?Rt.getCumulativeOffsetTop(this):Rt.getCumulativeOffsetLeft(this)),r(this,Pe,this.vertical?Rt.getCumulativeOffsetTop(t(this,p)):Rt.getCumulativeOffsetLeft(t(this,p))),r(this,v,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?r(this,O,fs.cssUnitParser.parse(getComputedStyle(t(this,p)).rowGap)):r(this,O,fs.cssUnitParser.parse(getComputedStyle(t(this,p)).columnGap)),t(this,pt).current&&t(this,l).length){const h=t(this,W).current,u=(t(this,v)-t(this,O)*(h-1))/h;t(this,l).forEach(b=>{b.setSize(u)})}else t(this,l).forEach(h=>{h.setSize()});if(t(this,l).forEach(h=>{h.resize()}),t(this,J).current){r(this,m,t(this,v)*t(this,J).current);const h=t(this,m)+t(this,v);this.vertical?(t(this,p).style.width=h+"px",t(this,p).style.height="100%"):(t(this,p).style.height=h+"px",t(this,p).style.width="100%")}else this.vertical?(t(this,p).style.width="100%",t(this,p).style.height="max-content",r(this,m,t(this,p).offsetHeight-t(this,v))):(t(this,p).style.width="max-content",t(this,p).style.height="100%",r(this,m,t(this,p).offsetWidth-t(this,v)));if(!t(this,F).current){const h=getComputedStyle(this),u=this.vertical?parseFloat(h.paddingBlockStart)+parseFloat(h.paddingBlockEnd):parseFloat(h.paddingInlineStart)+parseFloat(h.paddingInlineEnd);r(this,m,t(this,m)+u),t(this,a).max=t(this,m)}if(t(this,F).current&&t(this,l).length){const h=t(this,l)[t(this,l).length-1],u=h.position+h.size-t(this,v),b=t(this,m)-u;r(this,Ct,h.position+h.size+b)}else r(this,Ct,t(this,m));if(t(this,Q).current&&t(this,l).length){const h=t(this,l)[e];t(this,a).set(h.position,{equalize:!0})}else t(this,a).set(s*t(this,m),{equalize:!0})});i(this,ze,()=>{const s=this.currentScrollValue;if(r(this,he,Math.max(0,s-t(this,m))),t(this,l).length){let e=0;for(let h=0;h<t(this,l).length;h++){const u=t(this,l)[h];u.transform(),this.targetScrollValue+u.size/2>=u.position&&(e=h)}t(this,g).current=e}else this.vertical?t(this,p).style.transform=`translate3d(0px, ${s*-1}px, 0px)`:t(this,p).style.transform=`translate3d(${s*-1}px, 0px, 0px)`;ee.scrollEntries.update(this,t(this,V).current,s)});i(this,oe,(s,e)=>{t(this,Tt).current&&(t(this,bt).current&&(t(this,x).pauseAndContinue(t(this,Ht).current),t(this,x).direction=Math.sign(e)||1),t(this,Ve).call(this,s,e))});i(this,Ve,(s,e)=>{if(t(this,j).current){if(t(this,j).current<0&&e>0)return;if(t(this,j).current>0&&e<0)return}if(t(this,tt).unlistenAnimationFrame(),!t(this,U).current&&t(this,gt).current&&(clearInterval(t(this,ne)),r(this,ne,setTimeout(()=>{const h=o(this,ke,os).call(this);h&&this.scrollToSection(h.index,{tween:{duration:t(this,$t).current,easing:Bs.easeInOutExpo}})},t(this,gt).current))),!(s==="drag"&&!Hs.device.isMobile&&!t(this,_t).current))if(t(this,Q).current){const h=Math.sign(e);t(this,l).length?this.shiftSections(h):t(this,a).shift(h*t(this,v))}else t(this,a).shift(e)});ls.isBrowser&&(r(this,a,new ms.Damped(0,{damping:.01,min:0,order:ge.TICK_ORDER.SCROLL})),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Gs),H.element(this,{tabIndex:0,children:[H.div({class:"static",children:[H.slot({name:"static"})]}),H.div({class:"content",children:[H.slot({ref:e=>r(this,Ce,e)})],style:{flexDirection:new As.Derived(t(this,V),e=>e==="x"?"row":"column")},ref:e=>r(this,p,e)})]}),r(this,K,new $e.WheelControls({element:t(this,p)})),t(this,K).changeEvent.subscribe(t(this,oe)),r(this,yt,new $e.KeyboardControls({element:this})),t(this,yt).changeEvent.subscribe(t(this,oe)),r(this,Y,new $e.DragControls({element:t(this,p)})),t(this,Y).changeEvent.subscribe(t(this,oe)),r(this,x,new $e.AutoplayControls({culling:this})),t(this,x).changeEvent.subscribe(t(this,Ve)),t(this,V).subscribe(({current:e})=>{t(this,p).style.flexDirection=e==="x"?"row":"column",t(this,K).axis=t(this,ft).current?"max":e,t(this,yt).dimension=e==="x"?"width":"height",t(this,Y).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),this.isConnected&&t(this,q).call(this)}),t(this,ft).subscribe(e=>{t(this,K).axis=e.current?"max":t(this,V).current}),t(this,J).subscribe(()=>{this.isConnected&&t(this,q).call(this)}),t(this,$).subscribe(({current:e})=>{this.isConnected&&(e?o(this,Nt,me).call(this):o(this,vt,ie).call(this))}),t(this,Q).subscribe(e=>{t(this,K).debounce=e.current,t(this,Y).swipe=e.current,t(this,x).interval=e.current,this.isConnected&&(e.current&&!e.previous&&!t(this,l).length?o(this,Nt,me).call(this):!e.current&&e.previous&&t(this,l).length&&o(this,vt,ie).call(this))}),t(this,pt).subscribe(e=>{this.isConnected&&(t(this,q).call(this),e.current&&!e.previous&&!t(this,l).length?o(this,Nt,me).call(this):!e.current&&e.previous&&t(this,l).length&&o(this,vt,ie).call(this))}),t(this,W).subscribe(e=>{this.isConnected&&(t(this,q).call(this),o(this,et,Ot).call(this))}),t(this,F).subscribe(e=>{e.current?(this.isConnected&&(t(this,l).length||(t(this,$).current=!0)),t(this,l).length&&(t(this,a).max=1/0,t(this,a).min=-1/0)):(r(this,he,0),t(this,a).max=t(this,m),t(this,a).min=0)}),t(this,Mt).subscribe(e=>{t(this,a).damping=e.current}),t(this,At).subscribe(e=>{t(this,a).mass=e.current}),t(this,Bt).subscribe(e=>{t(this,a).stiffness=e.current}),t(this,Wt).subscribe(e=>{e.current&&!e.previous?o(this,we,ss).call(this):!e.current&&e.previous&&o(this,Ee,is).call(this)}),t(this,Ut).subscribe(e=>{e.current&&!e.previous?o(this,xe,rs).call(this):!e.current&&e.previous&&o(this,Le,hs).call(this)}),t(this,U).subscribe(e=>{t(this,x).speed=e.current,e.current&&!e.previous?t(this,x).connect():!e.current&&e.previous&&t(this,x).disconnect()}),t(this,bt).subscribe(e=>{e.current||(t(this,x).direction=1)}),t(this,G).subscribe(e=>{this.isConnected&&o(this,et,Ot).call(this)}),t(this,mt).subscribe(e=>{this.isConnected&&t(this,G).current&&o(this,et,Ot).call(this)}),t(this,X).subscribe(e=>{this.isConnected&&t(this,G).current&&o(this,et,Ot).call(this)}),t(this,a).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,g).subscribe(e=>{t(this,l).length&&o(this,et,Ot).call(this)}),t(this,tt).subscribe(e=>{t(this,tt).isRunning.current&&t(this,a).set(e.current)}))}get damped(){return t(this,a)}get controlsCSSProperty(){return t(this,Tt)}get axisCSSProperty(){return t(this,V)}get directionCSSProperty(){return t(this,j)}get pagesCSSProperty(){return t(this,J)}get splitCSSProperty(){return t(this,$)}get sectionalCSSProperty(){return t(this,Q)}get autoSizeCSSProperty(){return t(this,pt)}get wheelMaxDeltaCSSProperty(){return t(this,ft)}get sectionsInViewCSSProperty(){return t(this,W)}get loopCSSProperty(){return t(this,F)}get dampingCSSProperty(){return t(this,Mt)}get massCSSProperty(){return t(this,At)}get stiffnessCSSProperty(){return t(this,Bt)}get mouseDragCSSProperty(){return t(this,_t)}get sectionDistanceScaleCSSProperty(){return t(this,re)}get autoplayCSSProperty(){return t(this,U)}get autoplayPauseDurationCSSProperty(){return t(this,Ht)}get autoplayUserDirectionCSSProperty(){return t(this,bt)}get classesCSSProperty(){return t(this,G)}get currentIndexStartOffsetCSSProperty(){return t(this,mt)}get currentIndexEndOffsetCSSProperty(){return t(this,X)}get focusDelayCSSProperty(){return t(this,gt)}get focusDurationCSSProperty(){return t(this,$t)}get disabledCSSProperty(){return t(this,Wt)}get hibernatedCSSProperty(){return t(this,Ut)}get currentScrollValue(){return o(this,Fe,ns).call(this,"current")}get targetScrollValue(){return o(this,Fe,ns).call(this,"target")}get contentElement(){return t(this,p)}get sections(){return t(this,l)}get position(){return t(this,ve)}get contentPosition(){return t(this,Pe)}get viewportSize(){return t(this,v)}get scrollSize(){return t(this,m)}get gap(){return t(this,O)}get counter(){return t(this,g)}get limit(){return t(this,l).length-t(this,W).current}get distance(){return t(this,Ct)}get loopDistance(){return t(this,F).current?t(this,Ct)+t(this,O):t(this,Ct)}get overscroll(){return t(this,he)}get vertical(){return t(this,V).current==="y"}get currentProgress(){return this.currentScrollValue/this.loopDistance||0}get targetProgress(){return this.targetScrollValue/this.loopDistance||0}get scrollWidth(){return t(this,V).current==="y"?0:t(this,a).distance}get scrollHeight(){return t(this,V).current==="x"?0:t(this,a).distance}onScroll(...s){return t(this,a).subscribe(...s)}offScroll(...s){t(this,a).unsubscribe(...s)}range(s,e,h=0){const u=s-h,b=u+e+h*2;return this.currentProgress<u?0:this.currentProgress>b?1:(this.currentProgress-u)/(b-u)}curve(s,e,h=0){return Math.sin(this.range(s,e,h)*Math.PI)}visible(s,e,h=0){const u=s-h,b=u+e+h*2;return this.currentProgress>=u&&this.currentProgress<=b}scrollToSection(s,e){if(!t(this,l).length)return;const h=t(this,g).current;o(this,Ge,ys).call(this,s);const u=t(this,l)[h],b=t(this,l)[t(this,g).current];if(u&&b){let D=0;const se=o(this,ke,os).call(this),qs=se?this.targetScrollValue-se.position:0;t(this,F).current?t(this,g).current===0&&h===t(this,l).length-1?D=t(this,m)+t(this,v)-u.position+t(this,O):t(this,g).current===t(this,l).length-1&&h===0?D=b.position-(t(this,m)+t(this,v)+t(this,O)):D=b.position-u.position:D=b.position-u.position,this.shiftPosition(D-qs,e)}}shiftSections(s,e){t(this,l).length&&this.scrollToSection(t(this,g).current+s,e)}setPosition(s,e){e!=null&&e.tween?(t(this,tt).set(t(this,a).current,{equalize:!0}),t(this,tt).set(s,ps({},e.tween))):t(this,a).set(s,{equalize:(e==null?void 0:e.behaviour)==="instant"})}shiftPosition(s,e){this.setPosition(t(this,a).target+s,e)}connectedCallback(){t(this,Tt).observe(),t(this,V).observe(),t(this,j).observe(),t(this,J).observe(),t(this,$).observe(),t(this,Q).observe(),t(this,pt).observe(),t(this,ft).observe(),t(this,W).observe(),t(this,F).observe(),t(this,Mt).observe(),t(this,At).observe(),t(this,Bt).observe(),t(this,_t).observe(),t(this,re).observe(),t(this,U).observe(),t(this,U).observe(),t(this,Ht).observe(),t(this,bt).observe(),t(this,G).observe(),t(this,mt).observe(),t(this,X).observe(),t(this,gt).observe(),t(this,$t).observe(),t(this,Wt).observe(),t(this,Ut).observe(),o(this,Le,hs).call(this)}disconnectedCallback(){t(this,Tt).unobserve(),t(this,V).unobserve(),t(this,j).unobserve(),t(this,J).unobserve(),t(this,$).unobserve(),t(this,Q).unobserve(),t(this,pt).unobserve(),t(this,ft).unobserve(),t(this,W).unobserve(),t(this,F).unobserve(),t(this,Mt).unobserve(),t(this,At).unobserve(),t(this,Bt).unobserve(),t(this,_t).unobserve(),t(this,re).unobserve(),t(this,U).unobserve(),t(this,Ht).unobserve(),t(this,bt).unobserve(),t(this,G).unobserve(),t(this,mt).unobserve(),t(this,X).unobserve(),t(this,gt).unobserve(),t(this,$t).unobserve(),t(this,Wt).unobserve(),t(this,Ut).unobserve(),o(this,xe,rs).call(this)}}a=new WeakMap,Tt=new WeakMap,V=new WeakMap,j=new WeakMap,J=new WeakMap,$=new WeakMap,Q=new WeakMap,pt=new WeakMap,ft=new WeakMap,W=new WeakMap,F=new WeakMap,Mt=new WeakMap,At=new WeakMap,Bt=new WeakMap,_t=new WeakMap,re=new WeakMap,U=new WeakMap,Ht=new WeakMap,bt=new WeakMap,G=new WeakMap,mt=new WeakMap,X=new WeakMap,gt=new WeakMap,$t=new WeakMap,Wt=new WeakMap,Ut=new WeakMap,p=new WeakMap,Ce=new WeakMap,l=new WeakMap,ve=new WeakMap,Pe=new WeakMap,v=new WeakMap,m=new WeakMap,O=new WeakMap,K=new WeakMap,yt=new WeakMap,Y=new WeakMap,x=new WeakMap,g=new WeakMap,he=new WeakMap,Ct=new WeakMap,Gt=new WeakMap,Kt=new WeakMap,ne=new WeakMap,tt=new WeakMap,Nt=new WeakSet,me=function(){o(this,vt,ie).call(this),t(this,Ce).assignedElements().forEach((s,e)=>{s instanceof HTMLElement&&t(this,l).push(new Us(s,e,this))}),t(this,p).style.transform="",this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0})),t(this,q).call(this),o(this,et,Ot).call(this)},vt=new WeakSet,ie=function(){t(this,l).forEach(s=>{s.destroy()}),r(this,l,[]),t(this,g).current=0,t(this,a).reset(),this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0}))},we=new WeakSet,ss=function(){t(this,Gt)||(r(this,Gt,!0),t(this,a).unsubscribe(t(this,ze)),t(this,a).unlistenAnimationFrame(),t(this,K).disconnect(),t(this,yt).disconnect(),t(this,Y).disconnect(),t(this,x).disconnect(),clearInterval(t(this,ne)),t(this,tt).unlistenAnimationFrame())},Ee=new WeakSet,is=function(){t(this,Gt)&&(r(this,Gt,!1),t(this,a).subscribe(t(this,ze)),t(this,K).connect(),t(this,yt).connect(),t(this,Y).connect(),t(this,U).current&&t(this,x).connect())},xe=new WeakSet,rs=function(){t(this,Kt)||(r(this,Kt,!0),be.windowResizer.unsubscribe(t(this,q)),We.elementResizer.unsubscribe(t(this,q)),t(this,a).reset(),o(this,we,ss).call(this),t(this,p).style.transform="",t(this,$).current&&o(this,vt,ie).call(this),ee.scrollEntries.unregister(this))},Le=new WeakSet,hs=function(){t(this,Kt)&&(r(this,Kt,!1),t(this,$).current&&o(this,Nt,me).call(this),ee.scrollEntries.register(this),be.windowResizer.subscribe(t(this,q),ge.RESIZE_ORDER.SCROLL),We.elementResizer.subscribe(this,t(this,q)),o(this,Ee,is).call(this))},q=new WeakMap,ze=new WeakMap,Ge=new WeakSet,ys=function(s){t(this,F).current?(t(this,g).current=s%t(this,l).length,t(this,g).current=t(this,g).current<0?t(this,l).length+t(this,g).current:t(this,g).current):t(this,g).current=us.clamp(s,0,this.limit)},oe=new WeakMap,Ve=new WeakMap,Fe=new WeakSet,ns=function(s="current"){if(t(this,F).current&&t(this,l).length){const e=t(this,a)[s]%(t(this,m)+t(this,v)+t(this,O));return e<0?t(this,m)+e+t(this,v)+t(this,O):e}else return t(this,a)[s]},et=new WeakSet,Ot=function(){if(t(this,G).current&&t(this,l).length){const s=t(this,g).current+t(this,mt).current;s===0?this.classList.add("start"):this.classList.remove("start"),s===this.limit?this.classList.add("end"):this.classList.remove("end");const e=t(this,W).current+t(this,X).current;t(this,l).forEach((h,u)=>{const b=s-this.limit-1+t(this,X).current,D=s+e,se=this.sections.length-D;u>=s&&u<D||u<=b?h.mark("current"):u>=D&&u<D+se/2||u<=b+e?h.mark("next"):h.mark("previous")})}},ke=new WeakSet,os=function(){let s=null,e=1/0;for(let h=0;h<t(this,l).length;h++){const u=Math.abs(t(this,l)[h].position-this.targetScrollValue);u<e&&(e=u,s=h)}return s!==null?t(this,l)[s]:null};customElements.get("e-scroll")||customElements.define("e-scroll",Ue);var Re;class ts extends HTMLElement{constructor(){super(...arguments);i(this,Re,null)}get scrollElement(){return t(this,Re)}connectedCallback(){const s=Ws.findParentElement(this,Ue);s instanceof Ue?r(this,Re,s):console.error(this,"e-scroll not found")}}Re=new WeakMap;const Ks=as.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:bs.aptechkaTheme.colorFont.var},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:bs.aptechkaTheme.colorMain.var,borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});var ce,k,st,it,le,ue,Zt,De,Oe,qe;class Cs extends ts{constructor(){super();i(this,ce,null);i(this,k,null);i(this,st,!1);i(this,it,0);i(this,le,0);i(this,ue,0);i(this,Zt,()=>{r(this,st,this.offsetWidth>this.offsetHeight);const s=t(this,st)?this.offsetWidth:this.offsetHeight;r(this,it,s/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/s)),r(this,it,Math.max(t(this,it),30)),t(this,st)?(t(this,k).style.width=t(this,it)+"px",t(this,k).style.height="100%"):(t(this,k).style.width="100%",t(this,k).style.height=t(this,it)+"px"),r(this,le,s-t(this,it)),this.scrollElement.scrollSize||(this.style.display="none")});i(this,De,()=>{r(this,ue,this.scrollElement.currentProgress*t(this,le)),t(this,st)?t(this,k).style.transform=`translate3d(${t(this,ue)}px, 0px, 0px)`:t(this,k).style.transform=`translate3d(0px, ${t(this,ue)}px, 0px)`});i(this,Oe,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)});i(this,qe,s=>{document.documentElement.classList.add("grabbing"),$s.setupDrag(u=>{const b=t(this,st)?u.x:u.y,D=this.scrollElement.distance/t(this,le),se=(b-h)*D;this.scrollElement.setPosition(e+se)},()=>{document.documentElement.classList.remove("grabbing")});const e=this.scrollElement.targetScrollValue,h=t(this,st)?s.x:s.y});ls.isBrowser&&(this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Ks),H.element(this,{slot:"static","drag-dead-zone":"",children:[H.slot({ref:e=>r(this,ce,e),children:H.div({class:"default-thumb"})})]}))}get thumbElement(){return t(this,k)}connectedCallback(){super.connectedCallback();const s=t(this,ce).assignedElements()[0]||t(this,ce).firstElementChild;r(this,k,s),t(this,k).addEventListener("pointerdown",t(this,qe)),be.windowResizer.subscribe(t(this,Zt),ge.RESIZE_ORDER.SCROLL+1),We.elementResizer.subscribe(this,t(this,Zt)),this.scrollElement.onScroll(t(this,De)),this.scrollElement.axisCSSProperty.subscribe(t(this,Oe))}disconnectedCallback(){t(this,k).removeEventListener("pointerdown",t(this,qe)),be.windowResizer.unsubscribe(t(this,Zt)),We.elementResizer.unsubscribe(t(this,Zt)),this.scrollElement.offScroll(t(this,De)),this.scrollElement.axisCSSProperty.unsubscribe(t(this,Oe))}}ce=new WeakMap,k=new WeakMap,st=new WeakMap,it=new WeakMap,le=new WeakMap,ue=new WeakMap,Zt=new WeakMap,De=new WeakMap,Oe=new WeakMap,qe=new WeakMap;customElements.get("e-scrollbar")||customElements.define("e-scrollbar",Cs);const Ns=as.createStylesheet({button:{all:"inherit"}});class vs extends ts{constructor(){super(),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Ns),ls.isBrowser&&H.element(this,{children:[H.button({onClick:()=>{this.handleClick()},children:[H.slot()]})]})}}class Ps extends vs{handleClick(){const n=this.getAttribute("index"),s=this.getAttribute("behaviour");this.scrollElement.scrollToSection(parseInt(n||"0"),{behaviour:s})}}customElements.get("e-scroll-set-button")||customElements.define("e-scroll-set-button",Ps);class ws extends vs{handleClick(){const n=this.getAttribute("step"),s=this.getAttribute("behaviour");this.scrollElement.shiftSections(parseInt(n||"1"),{behaviour:s})}}customElements.get("e-scroll-step-button")||customElements.define("e-scroll-step-button",ws);var rt,Pt,ae,Ie,Te,Se;class Zs{constructor(n,s,e){i(this,rt,void 0);i(this,Pt,void 0);i(this,ae,void 0);i(this,Ie,void 0);i(this,Te,()=>{t(this,Pt).scrollToSection(t(this,ae),{behaviour:t(this,Ie)})});i(this,Se,()=>{t(this,rt).classList.toggle("current",t(this,Pt).counter.current===t(this,ae))});r(this,rt,document.createElement("button")),r(this,Pt,n),r(this,Ie,e),r(this,ae,s),t(this,rt).addEventListener("click",t(this,Te)),t(this,Pt).counter.subscribe(t(this,Se)),t(this,Se).call(this)}get element(){return t(this,rt)}destroy(){t(this,rt).removeEventListener("click",t(this,Te)),t(this,Pt).counter.unsubscribe(t(this,Se)),t(this,rt).remove()}}rt=new WeakMap,Pt=new WeakMap,ae=new WeakMap,Ie=new WeakMap,Te=new WeakMap,Se=new WeakMap;var wt,de;class Es extends ts{constructor(){super(...arguments);i(this,wt,[]);i(this,de,gs.debounce(()=>{t(this,wt).forEach(s=>s.destroy()),r(this,wt,[]);for(let s=0;s<this.scrollElement.sections.length;s++){const e=new Zs(this.scrollElement,s,this.getAttribute("behaviour")||"smooth");this.appendChild(e.element),t(this,wt).push(e)}},0))}connectedCallback(){super.connectedCallback(),this.scrollElement.addEventListener("sectionsChange",t(this,de)),t(this,de).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("sectionsChange",t(this,de)),t(this,wt).forEach(s=>s.destroy()),r(this,wt,[])}}wt=new WeakMap,de=new WeakMap;customElements.get("e-scroll-bullet-buttons")||customElements.define("e-scroll-bullet-buttons",Es);var jt,Jt,Qt,Xt,Et,xt,Lt,zt,L,I,T,M,Vt,P,ht,nt,ot,ct,lt,w,A,B,ut,at,N,Me,d,Yt,te,Ae,E,Ft,R,z,_,pe,kt,C,Ke,Ls,Ne,zs,Ze,Vs,je,Fs,Je,ks,Qe,Rs,Be,fe,St,qt,Xe,Ds,Ye,Os,_e,cs,He;class xs extends ts{constructor(){super();i(this,Ke);i(this,Ne);i(this,Ze);i(this,je);i(this,Je);i(this,Qe);i(this,St);i(this,Xe);i(this,Ye);i(this,_e);i(this,jt,new c.CSSProperty(this,"--damping",20));i(this,Jt,new c.CSSProperty(this,"--mass",0));i(this,Qt,new c.CSSProperty(this,"--stiffness",0));i(this,Xt,new c.CSSProperty(this,"--target",""));i(this,Et,new c.CSSProperty(this,"--disabled",!1));i(this,xt,new c.CSSProperty(this,"--distance-offset",0,{rawValueCheck:!1}));i(this,Lt,new c.CSSProperty(this,"--start-offset",0,{rawValueCheck:!1}));i(this,zt,new c.CSSProperty(this,"--capture-once",!1));i(this,L,new c.CSSProperty(this,"--captured",""));i(this,I,new c.CSSProperty(this,"--released",""));i(this,T,new c.CSSProperty(this,"--captured-from-start",""));i(this,M,new c.CSSProperty(this,"--captured-from-finish",""));i(this,Vt,new c.CSSProperty(this,"--released-from-start",""));i(this,P,new c.CSSProperty(this,"--released-from-finish",""));i(this,ht,new c.CSSProperty(this,"--passed-var",""));i(this,nt,new c.CSSProperty(this,"--progress-var",""));i(this,ot,new c.CSSProperty(this,"--distance-var",""));i(this,ct,new c.CSSProperty(this,"--start-var",""));i(this,lt,new c.CSSProperty(this,"--finish-var",""));i(this,w,new Dt.Store(!1));i(this,A,new Dt.Store(!1));i(this,B,new Dt.Store(!1));i(this,ut,new Dt.Store(!1));i(this,at,new Dt.Store(!1));i(this,N,new Dt.Store(!1));i(this,Me,[]);i(this,d,this);i(this,Yt,0);i(this,te,0);i(this,Ae,0);i(this,E,new ms.Damped(0,{order:ge.TICK_ORDER.SCROLL-1,min:0,max:1}));i(this,Ft,0);i(this,R,0);i(this,z,0);i(this,_,0);i(this,pe,!1);i(this,kt,!1);i(this,C,!0);i(this,Be,()=>{t(this,C)||(this.resize(),t(this,fe).call(this))});i(this,fe,()=>{!t(this,C)&&t(this,pe)&&this.tick()});i(this,He,gs.debounce(()=>{const s=ee.scrollEntries.getAll(this).reverse();let e=0;s.forEach((h,u)=>{h.element===this.scrollElement&&(e=u)}),r(this,Me,s.slice(e+1))},0))}get distanceOffsetCSSProperty(){return t(this,xt)}get startOffsetCSSProperty(){return t(this,Lt)}get captureOnceCSSProperty(){return t(this,zt)}get capturedCSSProperty(){return t(this,L)}get releasedCSSProperty(){return t(this,I)}get capturedFromStartCSSProperty(){return t(this,T)}get capturedFromFinishCSSProperty(){return t(this,M)}get releasedFromStartCSSProperty(){return t(this,Vt)}get releasedFromFinishCSSProperty(){return t(this,P)}get passedVarCSSProperty(){return t(this,ht)}get progressVarCSSProperty(){return t(this,nt)}get distanceVarCSSProperty(){return t(this,ot)}get startVarCSSProperty(){return t(this,ct)}get finishVarCSSProperty(){return t(this,lt)}get disabledCSSProperty(){return t(this,Et)}get dampingCSSProperty(){return t(this,jt)}get massCSSProperty(){return t(this,Jt)}get stiffnessCSSProperty(){return t(this,Qt)}get targetCSSProperty(){return t(this,Xt)}get isCaptured(){return t(this,w)}get isReleased(){return t(this,A)}get isCapturedFromStart(){return t(this,B)}get isReleasedFromStart(){return t(this,ut)}get isCapturedFromFinish(){return t(this,at)}get isReleasedFromFinish(){return t(this,N)}get directionPosition(){return t(this,Yt)}get directionSize(){return t(this,te)}get passed(){return t(this,E)}get progress(){return t(this,Ft)}get start(){return t(this,R)}get finish(){return t(this,_)}get distance(){return t(this,z)}get isCapturedOnce(){return t(this,kt)}get isDisabled(){return t(this,C)}resize(){r(this,te,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),r(this,Yt,this.scrollElement.vertical?Rt.getCumulativeOffsetTop(this,this.scrollElement):Rt.getCumulativeOffsetLeft(this,this.scrollElement)),r(this,R,this.getStart()),r(this,z,this.getDistance()),r(this,R,t(this,R)+t(this,Lt).current),r(this,z,t(this,z)+t(this,xt).current),r(this,_,t(this,R)+t(this,z)),this.scrollElement.currentScrollValue>t(this,_)&&!t(this,w).current&&!t(this,A).current&&(t(this,w).current=!0),this.setVar(t(this,ct).current,t(this,R)),this.setVar(t(this,lt).current,t(this,_)),this.setVar(t(this,ot).current,t(this,z)),t(this,E).max=t(this,z),r(this,pe,!0)}tick(){let s=this.scrollElement.currentScrollValue;t(this,Me).forEach(h=>{s+=h.value}),t(this,E).set(s-t(this,R));const e=Math.round(s);t(this,w).current&&(e>t(this,R)?t(this,B).current||o(this,Ze,Vs).call(this):t(this,B).current&&!t(this,ut).current&&o(this,Je,ks).call(this),e<t(this,_)?t(this,N).current&&!t(this,at).current&&o(this,je,Fs).call(this):t(this,B).current&&!t(this,N).current&&o(this,Qe,Rs).call(this)),e>t(this,R)&&e<t(this,_)?t(this,w).current||o(this,Ke,Ls).call(this):t(this,w).current&&(t(this,E).set(us.step(t(this,z)/2,t(this,E).current,0,t(this,z))),o(this,Ne,zs).call(this)),t(this,kt)&&t(this,zt).current&&(t(this,L).current&&t(this,d).classList.add(t(this,L).current),r(this,C,!0))}disable(){this.style.cssText="",r(this,Yt,0),r(this,te,0),t(this,E).reset(),r(this,Ft,0),r(this,R,0),r(this,z,0),r(this,_,0),r(this,pe,!1),t(this,w).current=!1,t(this,A).current=!1,t(this,B).current=!1,t(this,ut).current=!1,t(this,at).current=!1,t(this,N).current=!1,r(this,kt,!1),r(this,C,!0),o(this,_e,cs).call(this)}enable(){r(this,C,!1)}connectedCallback(){super.connectedCallback(),t(this,jt).observe(),t(this,Jt).observe(),t(this,Qt).observe(),t(this,Xt).observe(),t(this,Et).observe(),t(this,xt).observe(),t(this,Lt).observe(),t(this,zt).observe(),t(this,L).observe(),t(this,I).observe(),t(this,T).observe(),t(this,M).observe(),t(this,Vt).observe(),t(this,P).observe(),t(this,ht).observe(),t(this,nt).observe(),t(this,ot).observe(),t(this,ct).observe(),t(this,lt).observe();let s=!1;this.scrollElement.addEventListener("sectionsChange",t(this,He)),t(this,He).call(this),t(this,Et).current||this.enable(),t(this,jt).subscribe(e=>{t(this,E).damping=e.current}),t(this,Jt).subscribe(e=>{t(this,E).mass=e.current}),t(this,Qt).subscribe(e=>{t(this,E).stiffness=e.current}),t(this,Xt).subscribe(e=>{e.previous&&o(this,_e,cs).call(this),e.current?e.current==="parent"?r(this,d,this.parentElement||this):r(this,d,document.querySelector(e.current)||this):r(this,d,this)}),t(this,Et).subscribe(e=>{e.current&&!e.previous?this.disable():!e.current&&e.previous&&(this.resize(),this.enable())}),t(this,Lt).subscribe(()=>{s&&!t(this,C)&&this.resize()}),t(this,xt).subscribe(()=>{s&&!t(this,C)&&this.resize()}),t(this,L).subscribe(e=>{o(this,St,qt).call(this,e)}),t(this,T).subscribe(e=>{o(this,St,qt).call(this,e)}),t(this,M).subscribe(e=>{o(this,St,qt).call(this,e)}),t(this,I).subscribe(e=>{o(this,St,qt).call(this,e)}),t(this,Vt).subscribe(e=>{o(this,St,qt).call(this,e)}),t(this,P).subscribe(e=>{o(this,St,qt).call(this,e)}),t(this,zt).subscribe(e=>{t(this,C)||!e.current&&e.previous&&(this.resize(),this.enable())}),t(this,ht).subscribe(e=>{t(this,C)||(this.removeVar(e.previous),this.setVar(e.current,this.passed.current))}),t(this,nt).subscribe(e=>{t(this,C)||(this.removeVar(e.previous),this.setVar(e.current,t(this,Ft)))}),t(this,ct).subscribe(e=>{t(this,C)||(this.removeVar(e.previous),this.setVar(e.current,t(this,R)))}),t(this,lt).subscribe(e=>{t(this,C)||(this.removeVar(e.previous),this.setVar(e.current,t(this,_)))}),t(this,ot).subscribe(e=>{t(this,C)||(this.removeVar(e.previous),this.setVar(e.current,t(this,z)))}),t(this,E).subscribe(e=>{r(this,Ft,t(this,E).current/t(this,z)||0),this.setVar(t(this,ht).current,t(this,E).current.toFixed(6)),this.setVar(t(this,nt).current,t(this,Ft).toFixed(6))}),be.windowResizer.subscribe(t(this,Be),ge.RESIZE_ORDER.SEGMENT),this.scrollElement.onScroll(t(this,fe)),s=!0}disconnectedCallback(){be.windowResizer.unsubscribe(t(this,Be)),this.scrollElement.offScroll(t(this,fe)),t(this,jt).close(),t(this,Jt).close(),t(this,Qt).close(),t(this,Xt).close(),t(this,Et).close(),t(this,xt).close(),t(this,Lt).close(),t(this,zt).close(),t(this,L).close(),t(this,I).close(),t(this,T).close(),t(this,M).close(),t(this,Vt).close(),t(this,P).close(),t(this,ht).close(),t(this,nt).close(),t(this,ot).close(),t(this,ct).close(),t(this,lt).close(),t(this,w).close(),t(this,A).close(),t(this,B).close(),t(this,ut).close(),t(this,at).close(),t(this,N).close(),this.disable()}removeVar(s){s&&t(this,d).style.removeProperty(`--${s}`)}setVar(s,e){s&&t(this,d).style.setProperty(`--${s}`,e.toString())}getDistance(){return t(this,te)+t(this,Ae)}getStart(){return t(this,Yt)-t(this,Ae)}}jt=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,Xt=new WeakMap,Et=new WeakMap,xt=new WeakMap,Lt=new WeakMap,zt=new WeakMap,L=new WeakMap,I=new WeakMap,T=new WeakMap,M=new WeakMap,Vt=new WeakMap,P=new WeakMap,ht=new WeakMap,nt=new WeakMap,ot=new WeakMap,ct=new WeakMap,lt=new WeakMap,w=new WeakMap,A=new WeakMap,B=new WeakMap,ut=new WeakMap,at=new WeakMap,N=new WeakMap,Me=new WeakMap,d=new WeakMap,Yt=new WeakMap,te=new WeakMap,Ae=new WeakMap,E=new WeakMap,Ft=new WeakMap,R=new WeakMap,z=new WeakMap,_=new WeakMap,pe=new WeakMap,kt=new WeakMap,C=new WeakMap,Ke=new WeakSet,Ls=function(){t(this,w).current=!0,t(this,A).current=!1,r(this,kt,!0),t(this,I).current&&t(this,d).classList.remove(t(this,I).current),t(this,P).current&&t(this,d).classList.remove(t(this,P).current),t(this,P).current&&t(this,d).classList.remove(t(this,P).current),t(this,L).current&&t(this,d).classList.add(t(this,L).current)},Ne=new WeakSet,zs=function(){t(this,A).current=!0,t(this,w).current=!1,r(this,kt,!0),t(this,L).current&&t(this,d).classList.remove(t(this,L).current),t(this,T).current&&t(this,d).classList.remove(t(this,T).current),t(this,M).current&&t(this,d).classList.remove(t(this,M).current),t(this,I).current&&t(this,d).classList.add(t(this,I).current)},Ze=new WeakSet,Vs=function(){t(this,w).current=!0,t(this,B).current=!0,t(this,ut).current=!1,t(this,T).current&&t(this,d).classList.add(t(this,T).current)},je=new WeakSet,Fs=function(){t(this,w).current=!0,t(this,at).current=!0,t(this,N).current=!1,t(this,M).current&&t(this,d).classList.add(t(this,M).current)},Je=new WeakSet,ks=function(){t(this,A).current=!0,t(this,ut).current=!0,t(this,B).current=!1,t(this,P).current&&t(this,d).classList.add(t(this,P).current)},Qe=new WeakSet,Rs=function(){t(this,A).current=!0,t(this,N).current=!0,t(this,at).current=!1,t(this,P).current&&t(this,d).classList.add(t(this,P).current)},Be=new WeakMap,fe=new WeakMap,St=new WeakSet,qt=function(s){if(t(this,C)){s.previous&&t(this,d).classList.remove(s.previous),s.current&&t(this,d).classList.remove(s.current);return}s.current&&t(this,w).current?(s.previous&&t(this,d).classList.remove(s.previous),t(this,d).classList.add(s.current)):!s.current&&s.previous&&t(this,d).classList.remove(s.previous)},Xe=new WeakSet,Ds=function(...s){s.forEach(e=>{e&&t(this,d).classList.remove(e)})},Ye=new WeakSet,Os=function(...s){s.forEach(e=>{e&&t(this,d).style.removeProperty(`--${e}`)})},_e=new WeakSet,cs=function(){o(this,Xe,Ds).call(this,t(this,L).current,t(this,T).current,t(this,M).current,t(this,I).current,t(this,Vt).current,t(this,P).current),o(this,Ye,Os).call(this,t(this,ht).current,t(this,nt).current,t(this,ot).current,t(this,ct).current,t(this,lt).current)},He=new WeakMap;customElements.get("e-scroll-segment")||customElements.define("e-scroll-segment",xs);exports.ScrollBulletButtonsElement=Es;exports.ScrollElement=Ue;exports.ScrollSegmentElement=xs;exports.ScrollSetButtonElement=Ps;exports.ScrollStepButtonElement=ws;exports.ScrollbarElement=Cs;
|
|
@@ -20,7 +20,7 @@ var t = (f, n, e) => (Ys(f, n, "read from private field"), e ? e.call(f) : n.get
|
|
|
20
20
|
}, r = (f, n, e, s) => (Ys(f, n, "write to private field"), s ? s.call(f, e) : n.set(f, e), e);
|
|
21
21
|
var o = (f, n, e) => (Ys(f, n, "access private method"), e);
|
|
22
22
|
import { S as kt } from "../Store-Qr3SNOSf.js";
|
|
23
|
-
import { D as Ae } from "../Derived-
|
|
23
|
+
import { D as Ae } from "../Derived-rInkx3e4.js";
|
|
24
24
|
import { i as le } from "../browser-0zX67oeU.js";
|
|
25
25
|
import { p as Te } from "../easings-BKi40vHz.js";
|
|
26
26
|
import { a as $s, g as Bs } from "../layout-HoBT_Da2.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Store, StoreOptions } from './Store';
|
|
2
2
|
|
|
3
|
-
export type CachedCallback<Type, SourceType extends Array<CachedSource
|
|
3
|
+
export type CachedCallback<Type, SourceType extends Array<CachedSource>, Return = Type> = (value: SourceType[number]['value'], index: number, arr: SourceType) => Return;
|
|
4
4
|
export interface CachedSource<T = any> {
|
|
5
5
|
key: any;
|
|
6
6
|
value: T;
|
|
@@ -11,3 +11,8 @@ export declare class Cached<Type, SourceType extends Array<CachedSource>> extend
|
|
|
11
11
|
constructor(store: Store<SourceType, any>, callback: CachedCallback<Type, SourceType>, parameters?: StoreOptions<Array<Type>>);
|
|
12
12
|
close(): void;
|
|
13
13
|
}
|
|
14
|
+
export declare class AsyncCached<Type, SourceType extends Array<CachedSource>> extends Store<Array<Type>> {
|
|
15
|
+
#private;
|
|
16
|
+
constructor(store: Store<SourceType, any>, callback: CachedCallback<Type, SourceType, Promise<Type>>, parameters?: StoreOptions<Array<Type>>);
|
|
17
|
+
close(): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Store, StoreOptions } from './Store';
|
|
2
|
+
|
|
3
|
+
export type DerivedCallback<SourceType, Type, Return = Type> = (value: SourceType) => Return;
|
|
4
|
+
export declare class Derived<Type, SourceType> extends Store<Type> {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(store: Store<SourceType, any>, callback: DerivedCallback<SourceType, Type>, parameters?: StoreOptions<Type>);
|
|
7
|
+
close(): void;
|
|
8
|
+
}
|
|
9
|
+
export declare class AsyncDerived<Type, SourceType> extends Store<Type> {
|
|
10
|
+
#private;
|
|
11
|
+
constructor(store: Store<SourceType, any>, callback: DerivedCallback<SourceType, Type, Promise<Type>>, parameters?: StoreOptions<Type>);
|
|
12
|
+
close(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Store, StoreOptions } from './Store';
|
|
2
|
+
|
|
3
|
+
export type DerivedArrayCallback<Type, SourceType extends Array<any>, Return = Type> = (value: SourceType[number], index: number, arr: SourceType) => Return;
|
|
4
|
+
export declare class DerivedArray<Type, SourceType extends Array<any>> extends Store<Array<Type>> {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(store: Store<SourceType, any>, callback: DerivedArrayCallback<Type, SourceType>, parameters?: StoreOptions<Array<Type>>);
|
|
7
|
+
close(): void;
|
|
8
|
+
}
|
|
9
|
+
export declare class AsyncDerivedArray<Type, SourceType extends Array<any>> extends Store<Array<Type>> {
|
|
10
|
+
#private;
|
|
11
|
+
constructor(store: Store<SourceType, any>, callback: DerivedArrayCallback<Type, SourceType, Promise<Type>>, parameters?: StoreOptions<Array<Type>>);
|
|
12
|
+
close(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var R=(s,r,e)=>{if(!r.has(s))throw TypeError("Cannot "+e)};var t=(s,r,e)=>(R(s,r,"read from private field"),e?e.call(s):r.get(s)),h=(s,r,e)=>{if(r.has(s))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(s):r.set(s,e)},v=(s,r,e,c)=>(R(s,r,"write to private field"),c?c.call(s,e):r.set(s,e),e);var k=(s,r,e)=>new Promise((c,i)=>{var a=n=>{try{l(e.next(n))}catch(o){i(o)}},u=n=>{try{l(e.throw(n))}catch(o){i(o)}},l=n=>n.done?c(n.value):Promise.resolve(n.value).then(a,u);l((e=e.apply(s,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../Store-Cr3VaD9G.cjs"),q=require("../Derived-CNbsNMn_.cjs"),M=require("../Composed-Iihn8fT4.cjs");var A;class I extends d.Store{constructor(e,c,i){super(null,i);h(this,A,void 0);v(this,A,e.subscribe(a=>{this.current=a.current.map((u,l,n)=>c(u,l,n))}))}close(){super.close(),t(this,A).call(this)}}A=new WeakMap;var g;class V extends d.Store{constructor(e,c,i){super(null,i);h(this,g,void 0);let a=0;v(this,g,e.subscribe(u=>k(this,null,function*(){const l=++a,n=u.current.map((b,x,P)=>c(b,x,P)),o=yield Promise.all(n);l===a&&(this.current=o)})))}close(){super.close(),t(this,g).call(this)}}g=new WeakMap;var D,p;class j extends d.Store{constructor(e,c,i){super(null,i);h(this,D,void 0);h(this,p,new Map);v(this,D,e.subscribe(a=>{this.current=a.current.map((u,l,n)=>{let o=t(this,p).get(u.key);return(o===void 0||u.revalidate)&&(o=c(u.value,l,n),t(this,p).set(u.key,o)),o})}))}close(){super.close(),t(this,D).call(this),t(this,p).clear()}}D=new WeakMap,p=new WeakMap;var m,f;class O extends d.Store{constructor(e,c,i){super(null,i);h(this,m,void 0);h(this,f,new Map);let a=0;v(this,m,e.subscribe(u=>k(this,null,function*(){const l=++a,n=u.current.map((b,x,P)=>{let w=t(this,f).get(b.key);return(w===void 0||b.revalidate)&&(w=c(b.value,x,P),t(this,f).set(b.key,w)),w}),o=yield Promise.all(n);l===a&&(this.current=o)})))}close(){super.close(),t(this,m).call(this),t(this,f).clear()}}m=new WeakMap,f=new WeakMap;var C,y,S;class T extends d.Store{constructor(e,c,i){super(e,i);h(this,C,void 0);h(this,y,void 0);h(this,S,0);v(this,y,new d.Store(!1)),v(this,C,c),i!=null&&i.manualControl||this.refetch()}get isPending(){return t(this,y)}refetch(){t(this,y).current=!0,v(this,S,t(this,S)+1);const e=t(this,S);t(this,C).call(this).then(c=>{e===t(this,S)&&(t(this,y).current=!1,this.current=c)})}}C=new WeakMap,y=new WeakMap,S=new WeakMap;exports.Store=d.Store;exports.activeStores=d.activeStores;exports.storeRegistry=d.storeRegistry;exports.AsyncDerived=q.AsyncDerived;exports.Derived=q.Derived;exports.Composed=M.Composed;exports.AsyncCached=O;exports.AsyncDerivedArray=V;exports.Cached=j;exports.DerivedArray=I;exports.Resource=T;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Store, activeStores, type StoreCallback, type StorePassport, type StoreMiddleware, type StoreOptions, type StoreEqualityCheckCallback, type StoreManager, type StoreStringManager, type StoreNumberManager, type StoreColorManager, type StoreBooleanManager, type StoreLinkManager, type StoreSelectManager, type StoreManagers, type StoreManagerType, } from './Store';
|
|
2
|
-
export { Derived, type DerivedCallback } from './Derived';
|
|
3
|
-
export { DerivedArray, type DerivedArrayCallback } from './DerivedArray';
|
|
4
|
-
export { Cached, type CachedCallback, type CachedSource } from './Cached';
|
|
2
|
+
export { Derived, AsyncDerived, type DerivedCallback } from './Derived';
|
|
3
|
+
export { DerivedArray, AsyncDerivedArray, type DerivedArrayCallback, } from './DerivedArray';
|
|
4
|
+
export { Cached, AsyncCached, type CachedCallback, type CachedSource, } from './Cached';
|
|
5
5
|
export { Resource, type ResourceFetcher } from './Resource';
|
|
6
6
|
export { Composed, type ComposedCallback } from './Composed';
|
|
7
7
|
export { storeRegistry, type StoreRegistryState, type StoreRegistryStateStore, } from './StoreRegistry';
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
var I = (s, r, e) => {
|
|
2
|
+
if (!r.has(s))
|
|
3
|
+
throw TypeError("Cannot " + e);
|
|
4
|
+
};
|
|
5
|
+
var t = (s, r, e) => (I(s, r, "read from private field"), e ? e.call(s) : r.get(s)), h = (s, r, e) => {
|
|
6
|
+
if (r.has(s))
|
|
7
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
+
r instanceof WeakSet ? r.add(s) : r.set(s, e);
|
|
9
|
+
}, d = (s, r, e, c) => (I(s, r, "write to private field"), c ? c.call(s, e) : r.set(s, e), e);
|
|
10
|
+
var S = (s, r, e) => new Promise((c, i) => {
|
|
11
|
+
var o = (n) => {
|
|
12
|
+
try {
|
|
13
|
+
l(e.next(n));
|
|
14
|
+
} catch (a) {
|
|
15
|
+
i(a);
|
|
16
|
+
}
|
|
17
|
+
}, u = (n) => {
|
|
18
|
+
try {
|
|
19
|
+
l(e.throw(n));
|
|
20
|
+
} catch (a) {
|
|
21
|
+
i(a);
|
|
22
|
+
}
|
|
23
|
+
}, l = (n) => n.done ? c(n.value) : Promise.resolve(n.value).then(o, u);
|
|
24
|
+
l((e = e.apply(s, r)).next());
|
|
25
|
+
});
|
|
26
|
+
import { S as x } from "../Store-Qr3SNOSf.js";
|
|
27
|
+
import { a as G, s as H } from "../Store-Qr3SNOSf.js";
|
|
28
|
+
import { A as K, D as L } from "../Derived-rInkx3e4.js";
|
|
29
|
+
import { C as O } from "../Composed-Fa7owymK.js";
|
|
30
|
+
var m;
|
|
31
|
+
class V extends x {
|
|
32
|
+
constructor(e, c, i) {
|
|
33
|
+
super(null, i);
|
|
34
|
+
h(this, m, void 0);
|
|
35
|
+
d(this, m, e.subscribe((o) => {
|
|
36
|
+
this.current = o.current.map((u, l, n) => c(u, l, n));
|
|
37
|
+
}));
|
|
38
|
+
}
|
|
39
|
+
close() {
|
|
40
|
+
super.close(), t(this, m).call(this);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
m = new WeakMap();
|
|
44
|
+
var w;
|
|
45
|
+
class j extends x {
|
|
46
|
+
constructor(e, c, i) {
|
|
47
|
+
super(null, i);
|
|
48
|
+
h(this, w, void 0);
|
|
49
|
+
let o = 0;
|
|
50
|
+
d(this, w, e.subscribe((u) => S(this, null, function* () {
|
|
51
|
+
const l = ++o, n = u.current.map((f, k, P) => c(f, k, P)), a = yield Promise.all(n);
|
|
52
|
+
l === o && (this.current = a);
|
|
53
|
+
})));
|
|
54
|
+
}
|
|
55
|
+
close() {
|
|
56
|
+
super.close(), t(this, w).call(this);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
w = new WeakMap();
|
|
60
|
+
var g, b;
|
|
61
|
+
class q extends x {
|
|
62
|
+
constructor(e, c, i) {
|
|
63
|
+
super(null, i);
|
|
64
|
+
h(this, g, void 0);
|
|
65
|
+
h(this, b, /* @__PURE__ */ new Map());
|
|
66
|
+
d(this, g, e.subscribe((o) => {
|
|
67
|
+
this.current = o.current.map((u, l, n) => {
|
|
68
|
+
let a = t(this, b).get(u.key);
|
|
69
|
+
return (a === void 0 || u.revalidate) && (a = c(u.value, l, n), t(this, b).set(u.key, a)), a;
|
|
70
|
+
});
|
|
71
|
+
}));
|
|
72
|
+
}
|
|
73
|
+
close() {
|
|
74
|
+
super.close(), t(this, g).call(this), t(this, b).clear();
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
g = new WeakMap(), b = new WeakMap();
|
|
78
|
+
var A, v;
|
|
79
|
+
class z extends x {
|
|
80
|
+
constructor(e, c, i) {
|
|
81
|
+
super(null, i);
|
|
82
|
+
h(this, A, void 0);
|
|
83
|
+
h(this, v, /* @__PURE__ */ new Map());
|
|
84
|
+
let o = 0;
|
|
85
|
+
d(this, A, e.subscribe((u) => S(this, null, function* () {
|
|
86
|
+
const l = ++o, n = u.current.map((f, k, P) => {
|
|
87
|
+
let D = t(this, v).get(f.key);
|
|
88
|
+
return (D === void 0 || f.revalidate) && (D = c(f.value, k, P), t(this, v).set(f.key, D)), D;
|
|
89
|
+
}), a = yield Promise.all(n);
|
|
90
|
+
l === o && (this.current = a);
|
|
91
|
+
})));
|
|
92
|
+
}
|
|
93
|
+
close() {
|
|
94
|
+
super.close(), t(this, A).call(this), t(this, v).clear();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
A = new WeakMap(), v = new WeakMap();
|
|
98
|
+
var C, p, y;
|
|
99
|
+
class B extends x {
|
|
100
|
+
constructor(e, c, i) {
|
|
101
|
+
super(e, i);
|
|
102
|
+
h(this, C, void 0);
|
|
103
|
+
h(this, p, void 0);
|
|
104
|
+
h(this, y, 0);
|
|
105
|
+
d(this, p, new x(!1)), d(this, C, c), i != null && i.manualControl || this.refetch();
|
|
106
|
+
}
|
|
107
|
+
get isPending() {
|
|
108
|
+
return t(this, p);
|
|
109
|
+
}
|
|
110
|
+
refetch() {
|
|
111
|
+
t(this, p).current = !0, d(this, y, t(this, y) + 1);
|
|
112
|
+
const e = t(this, y);
|
|
113
|
+
t(this, C).call(this).then((c) => {
|
|
114
|
+
e === t(this, y) && (t(this, p).current = !1, this.current = c);
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
C = new WeakMap(), p = new WeakMap(), y = new WeakMap();
|
|
119
|
+
export {
|
|
120
|
+
z as AsyncCached,
|
|
121
|
+
K as AsyncDerived,
|
|
122
|
+
j as AsyncDerivedArray,
|
|
123
|
+
q as Cached,
|
|
124
|
+
O as Composed,
|
|
125
|
+
L as Derived,
|
|
126
|
+
V as DerivedArray,
|
|
127
|
+
B as Resource,
|
|
128
|
+
x as Store,
|
|
129
|
+
G as activeStores,
|
|
130
|
+
H as storeRegistry
|
|
131
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../attributes-Bf2svn4j.cjs"),S=require("../browser-CpzFX2xg.cjs"),l=require("../canvas-CU5Xjahf.cjs"),d=require("../coordinates-D8Np3cPD.cjs"),p=require("../dom-JBOkFLTh.cjs"),a=require("../easings-DsS5-Kqc.cjs"),b=require("../events-BGwqaxVW.cjs"),I=require("../file-EevnUtRj.cjs"),C=require("../function-MthRj-GJ.cjs"),y=require("../gestures-DHLrn6Q8.cjs"),f=require("../layout-8ryRAMGJ.cjs"),s=require("../math-GDWEqu7y.cjs"),m=require("../polyfills-CM4SCDTt.cjs"),r=require("../object-CCiXnER2.cjs"),u=require("../string-DhgS_iFl.cjs"),O=require("../style-At6aDoqG.cjs"),g=require("../url-C3dWnJQg.cjs");function P(t,e,...n){return[...t.slice(0,e),...n,...t.slice(e)]}function T(t,e){const n=t.length;e=e%n;const i=new Array(n);for(let o=0;o<n;o++){const c=(o+e)%n;i[c]=t[o]}return i}function v(t,e=2){if(!+t)return"0 Bytes";const n=1024,i=e<0?0:e,o=["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],c=Math.floor(Math.log(t)/Math.log(n));return`${parseFloat((t/Math.pow(n,c)).toFixed(i))} ${o[c]}`}function w(t,e){return t.x<e.x+e.width&&t.x>e.x&&t.y<e.y+e.height&&t.y>e.y}function x(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)<e.radius}function E(t,e){const n=t.styleMap.get(e);if(n){const i=n.toString();return i.startsWith("var")?E(t,i.slice(4,-1)):i}}function q(...t){const e={};return Array.from(document.styleSheets).forEach(n=>{Array.from(n.cssRules).forEach(i=>{i instanceof CSSStyleRule&&i.selectorText===":root"&&t.forEach(o=>{const c=E(i,o);c&&(e[o]=c)})})}),t.forEach(n=>{e[n]||console.warn(`variable named ${n} not found`)}),e}function B(t){const e=window.atob(t);return decodeURIComponent(window.escape(e))}function Q(t){const e=window.unescape(encodeURIComponent(t));return window.btoa(e)}function D(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}exports.parseAttribute=h.parseAttribute;exports.parseAttributeValue=h.parseAttributeValue;exports.isBrowser=S.isBrowser;exports.contain=l.contain;exports.cover=l.cover;exports.fixPosition=l.fixPosition;exports.measureText=l.measureText;exports.getPointerPosition=d.getPointerPosition;exports.normalize=d.normalize;exports.screenToCartesian=d.screenToCartesian;exports.findParentElement=p.findParentElement;exports.findScrollParentElement=p.findScrollParentElement;exports.getAllParentElements=p.getAllParentElements;exports.getElement=p.getElement;exports.easeInCubic=a.easeInCubic;exports.easeInExpo=a.easeInExpo;exports.easeInOutCubic=a.easeInOutCubic;exports.easeInOutExpo=a.easeInOutExpo;exports.easeInOutQuad=a.easeInOutQuad;exports.easeInOutQuart=a.easeInOutQuart;exports.easeInOutQuint=a.easeInOutQuint;exports.easeInQuad=a.easeInQuad;exports.easeInQuart=a.easeInQuart;exports.easeInQuint=a.easeInQuint;exports.easeOutCubic=a.easeOutCubic;exports.easeOutExpo=a.easeOutExpo;exports.easeOutQuad=a.easeOutQuad;exports.easeOutQuart=a.easeOutQuart;exports.easeOutQuint=a.easeOutQuint;exports.linear=a.linear;exports.dispatchBeforeSizeChangeEvent=b.dispatchBeforeSizeChangeEvent;exports.dispatchSizeChangeEvent=b.dispatchSizeChangeEvent;exports.createJSONAndSave=I.createJSONAndSave;exports.debounce=C.debounce;exports.throttle=C.throttle;exports.setupDrag=y.setupDrag;exports.getCumulativeOffsetLeft=f.getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=f.getCumulativeOffsetTop;exports.getCumulativePosition=f.getCumulativePosition;exports.calculateDistance=s.calculateDistance;exports.calculateDistanceWithRadius=s.calculateDistanceWithRadius;exports.clamp=s.clamp;exports.damp=s.damp;exports.lerp=s.lerp;exports.mapRange=s.mapRange;exports.round=s.round;exports.smootherstep=s.smootherstep;exports.smoothstep=s.smoothstep;exports.step=s.step;exports.nullishCoalescing=m.nullishCoalescing;exports.preciseNumber=m.preciseNumber;exports.roundNumberTo=m.roundNumberTo;exports.toStep=m.toStep;exports.cloneDeep=r.cloneDeep;exports.compareObjects=r.compareObjects;exports.isESClass=r.isESClass;exports.isNullish=r.isNullish;exports.isObject=r.isObject;exports.mergeDeep=r.mergeDeep;exports.mixin=r.mixin;exports.omit=r.omit;exports.pick=r.pick;exports.camelToKebab=u.camelToKebab;exports.capitalize=u.capitalize;exports.generateId=u.generateId;exports.isUppercase=u.isUppercase;exports.kebabToCamel=u.kebabToCamel;exports.snakeToDotted=u.snakeToDotted;exports.toPascalCase=u.toPascalCase;exports.uncapitalize=u.uncapitalize;exports.getElementTransitionDurationMS=O.getElementTransitionDurationMS;exports.getElementTransitionDurationS=O.getElementTransitionDurationS;exports.changeHistory=g.changeHistory;exports.normalizeBase=g.normalizeBase;exports.splitPath=g.splitPath;exports.decode=Q;exports.dotCircleCollision=x;exports.dotRectCollision=w;exports.encode=B;exports.formatBytes=v;exports.getRootVariables=q;exports.insert=P;exports.shiftArray=T;exports.wait=D;
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { a as b, p as C } from "../attributes-69we3byR.js";
|
|
2
|
+
import { i as w } from "../browser-0zX67oeU.js";
|
|
3
|
+
import { a as y, c as O, f as B, m as I } from "../canvas-DeZ0SLUJ.js";
|
|
4
|
+
import { g as T, n as v, s as A } from "../coordinates-CgdGoSYs.js";
|
|
5
|
+
import { f as D, b as M, g as R, a as z } from "../dom-P5QbAASX.js";
|
|
6
|
+
import { c as j, n as N, f as V, p as U, b as $, i as F, m as K, e as W, g as q, j as G, d as H, o as J, a as L, h as Y, k as Z, l as X } from "../easings-BKi40vHz.js";
|
|
7
|
+
import { d as ee, a as ae } from "../events-CJTUMSLU.js";
|
|
8
|
+
import { c as se } from "../file-lxi_oXJf.js";
|
|
9
|
+
import { d as ne, t as re } from "../function-C10DGppn.js";
|
|
10
|
+
import { s as ue } from "../gestures-D2Fdra_G.js";
|
|
11
|
+
import { g as le, a as fe, b as pe } from "../layout-HoBT_Da2.js";
|
|
12
|
+
import { e as de, f as ge, c as xe, d as he, l as be, m as Ce, r as Ee, b as we, a as Se, s as ye } from "../math-BOBiC4TN.js";
|
|
13
|
+
import { n as Be, p as Ie, r as Pe, t as Te } from "../polyfills-X6KXuHg-.js";
|
|
14
|
+
import { c as Ae, d as Qe, i as De, b as Me, a as Re, m as ze, e as ke, o as je, p as Ne } from "../object-D6MVWB4l.js";
|
|
15
|
+
import { c as Ue, a as $e, g as Fe, i as Ke, k as We, s as qe, t as Ge, u as He } from "../string-f0Dnk0L1.js";
|
|
16
|
+
import { g as Le, a as Ye } from "../style-j2TwriJ_.js";
|
|
17
|
+
import { c as Xe, n as _e, s as ea } from "../url-DMNfW7uN.js";
|
|
18
|
+
function i(a, e, ...t) {
|
|
19
|
+
return [...a.slice(0, e), ...t, ...a.slice(e)];
|
|
20
|
+
}
|
|
21
|
+
function u(a, e) {
|
|
22
|
+
const t = a.length;
|
|
23
|
+
e = e % t;
|
|
24
|
+
const s = new Array(t);
|
|
25
|
+
for (let o = 0; o < t; o++) {
|
|
26
|
+
const n = (o + e) % t;
|
|
27
|
+
s[n] = a[o];
|
|
28
|
+
}
|
|
29
|
+
return s;
|
|
30
|
+
}
|
|
31
|
+
function c(a, e = 2) {
|
|
32
|
+
if (!+a)
|
|
33
|
+
return "0 Bytes";
|
|
34
|
+
const t = 1024, s = e < 0 ? 0 : e, o = [
|
|
35
|
+
"Bytes",
|
|
36
|
+
"KiB",
|
|
37
|
+
"MiB",
|
|
38
|
+
"GiB",
|
|
39
|
+
"TiB",
|
|
40
|
+
"PiB",
|
|
41
|
+
"EiB",
|
|
42
|
+
"ZiB",
|
|
43
|
+
"YiB"
|
|
44
|
+
], n = Math.floor(Math.log(a) / Math.log(t));
|
|
45
|
+
return `${parseFloat((a / Math.pow(t, n)).toFixed(s))} ${o[n]}`;
|
|
46
|
+
}
|
|
47
|
+
function l(a, e) {
|
|
48
|
+
return a.x < e.x + e.width && a.x > e.x && a.y < e.y + e.height && a.y > e.y;
|
|
49
|
+
}
|
|
50
|
+
function f(a, e) {
|
|
51
|
+
return Math.sqrt((a.x - e.x) ** 2 + (a.y - e.y) ** 2) < e.radius;
|
|
52
|
+
}
|
|
53
|
+
function r(a, e) {
|
|
54
|
+
const t = a.styleMap.get(e);
|
|
55
|
+
if (t) {
|
|
56
|
+
const s = t.toString();
|
|
57
|
+
return s.startsWith("var") ? r(a, s.slice(4, -1)) : s;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function p(...a) {
|
|
61
|
+
const e = {};
|
|
62
|
+
return Array.from(document.styleSheets).forEach((t) => {
|
|
63
|
+
Array.from(t.cssRules).forEach((s) => {
|
|
64
|
+
s instanceof CSSStyleRule && s.selectorText === ":root" && a.forEach((o) => {
|
|
65
|
+
const n = r(s, o);
|
|
66
|
+
n && (e[o] = n);
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
}), a.forEach((t) => {
|
|
70
|
+
e[t] || console.warn(`variable named ${t} not found`);
|
|
71
|
+
}), e;
|
|
72
|
+
}
|
|
73
|
+
function m(a) {
|
|
74
|
+
const e = window.atob(a);
|
|
75
|
+
return decodeURIComponent(window.escape(e));
|
|
76
|
+
}
|
|
77
|
+
function d(a) {
|
|
78
|
+
const e = window.unescape(encodeURIComponent(a));
|
|
79
|
+
return window.btoa(e);
|
|
80
|
+
}
|
|
81
|
+
function g(a) {
|
|
82
|
+
return new Promise((e) => {
|
|
83
|
+
setTimeout(() => {
|
|
84
|
+
e();
|
|
85
|
+
}, a);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
export {
|
|
89
|
+
de as calculateDistance,
|
|
90
|
+
ge as calculateDistanceWithRadius,
|
|
91
|
+
Ue as camelToKebab,
|
|
92
|
+
$e as capitalize,
|
|
93
|
+
Xe as changeHistory,
|
|
94
|
+
xe as clamp,
|
|
95
|
+
Ae as cloneDeep,
|
|
96
|
+
Qe as compareObjects,
|
|
97
|
+
y as contain,
|
|
98
|
+
O as cover,
|
|
99
|
+
se as createJSONAndSave,
|
|
100
|
+
he as damp,
|
|
101
|
+
ne as debounce,
|
|
102
|
+
d as decode,
|
|
103
|
+
ee as dispatchBeforeSizeChangeEvent,
|
|
104
|
+
ae as dispatchSizeChangeEvent,
|
|
105
|
+
f as dotCircleCollision,
|
|
106
|
+
l as dotRectCollision,
|
|
107
|
+
j as easeInCubic,
|
|
108
|
+
N as easeInExpo,
|
|
109
|
+
V as easeInOutCubic,
|
|
110
|
+
U as easeInOutExpo,
|
|
111
|
+
$ as easeInOutQuad,
|
|
112
|
+
F as easeInOutQuart,
|
|
113
|
+
K as easeInOutQuint,
|
|
114
|
+
W as easeInQuad,
|
|
115
|
+
q as easeInQuart,
|
|
116
|
+
G as easeInQuint,
|
|
117
|
+
H as easeOutCubic,
|
|
118
|
+
J as easeOutExpo,
|
|
119
|
+
L as easeOutQuad,
|
|
120
|
+
Y as easeOutQuart,
|
|
121
|
+
Z as easeOutQuint,
|
|
122
|
+
m as encode,
|
|
123
|
+
D as findParentElement,
|
|
124
|
+
M as findScrollParentElement,
|
|
125
|
+
B as fixPosition,
|
|
126
|
+
c as formatBytes,
|
|
127
|
+
Fe as generateId,
|
|
128
|
+
R as getAllParentElements,
|
|
129
|
+
le as getCumulativeOffsetLeft,
|
|
130
|
+
fe as getCumulativeOffsetTop,
|
|
131
|
+
pe as getCumulativePosition,
|
|
132
|
+
z as getElement,
|
|
133
|
+
Le as getElementTransitionDurationMS,
|
|
134
|
+
Ye as getElementTransitionDurationS,
|
|
135
|
+
T as getPointerPosition,
|
|
136
|
+
p as getRootVariables,
|
|
137
|
+
i as insert,
|
|
138
|
+
w as isBrowser,
|
|
139
|
+
De as isESClass,
|
|
140
|
+
Me as isNullish,
|
|
141
|
+
Re as isObject,
|
|
142
|
+
Ke as isUppercase,
|
|
143
|
+
We as kebabToCamel,
|
|
144
|
+
be as lerp,
|
|
145
|
+
X as linear,
|
|
146
|
+
Ce as mapRange,
|
|
147
|
+
I as measureText,
|
|
148
|
+
ze as mergeDeep,
|
|
149
|
+
ke as mixin,
|
|
150
|
+
v as normalize,
|
|
151
|
+
_e as normalizeBase,
|
|
152
|
+
Be as nullishCoalescing,
|
|
153
|
+
je as omit,
|
|
154
|
+
b as parseAttribute,
|
|
155
|
+
C as parseAttributeValue,
|
|
156
|
+
Ne as pick,
|
|
157
|
+
Ie as preciseNumber,
|
|
158
|
+
Ee as round,
|
|
159
|
+
Pe as roundNumberTo,
|
|
160
|
+
A as screenToCartesian,
|
|
161
|
+
ue as setupDrag,
|
|
162
|
+
u as shiftArray,
|
|
163
|
+
we as smootherstep,
|
|
164
|
+
Se as smoothstep,
|
|
165
|
+
qe as snakeToDotted,
|
|
166
|
+
ea as splitPath,
|
|
167
|
+
ye as step,
|
|
168
|
+
re as throttle,
|
|
169
|
+
Ge as toPascalCase,
|
|
170
|
+
Te as toStep,
|
|
171
|
+
He as uncapitalize,
|
|
172
|
+
g as wait
|
|
173
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function wait(dur: number): Promise<void>;
|