@xiping/react-components 1.0.20 → 1.0.21

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.
Files changed (108) hide show
  1. package/dist/cjs/components/confetti-button/index.d.ts +24 -0
  2. package/dist/cjs/components/confetti-button/index.js +1 -0
  3. package/dist/cjs/components/txt-editor/TxtEditor.js +1 -1
  4. package/dist/cjs/hooks/useStayTimeReport.d.ts +6 -0
  5. package/dist/cjs/hooks/useStayTimeReport.js +1 -0
  6. package/dist/cjs/index.d.ts +2 -0
  7. package/dist/cjs/index.js +1 -1
  8. package/dist/cjs/node_modules/.pnpm/3d-force-graph@1.78.2/node_modules/3d-force-graph/dist/3d-force-graph.js +28 -0
  9. package/dist/cjs/node_modules/.pnpm/@tweenjs_tween.js@25.0.0/node_modules/@tweenjs/tween.js/dist/tween.esm.js +1 -0
  10. package/dist/cjs/node_modules/.pnpm/bowser@2.11.0/node_modules/bowser/src/bowser.js +6 -0
  11. package/dist/cjs/node_modules/.pnpm/bowser@2.11.0/node_modules/bowser/src/constants.js +1 -0
  12. package/dist/cjs/node_modules/.pnpm/bowser@2.11.0/node_modules/bowser/src/parser-browsers.js +1 -0
  13. package/dist/cjs/node_modules/.pnpm/bowser@2.11.0/node_modules/bowser/src/parser-engines.js +1 -0
  14. package/dist/cjs/node_modules/.pnpm/bowser@2.11.0/node_modules/bowser/src/parser-os.js +1 -0
  15. package/dist/cjs/node_modules/.pnpm/bowser@2.11.0/node_modules/bowser/src/parser-platforms.js +1 -0
  16. package/dist/cjs/node_modules/.pnpm/bowser@2.11.0/node_modules/bowser/src/parser.js +1 -0
  17. package/dist/cjs/node_modules/.pnpm/bowser@2.11.0/node_modules/bowser/src/utils.js +1 -0
  18. package/dist/cjs/node_modules/.pnpm/canvas-confetti@1.9.3/node_modules/canvas-confetti/dist/confetti.module.js +2 -0
  19. package/dist/cjs/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/max.js +1 -0
  20. package/dist/cjs/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/min.js +1 -0
  21. package/dist/cjs/node_modules/.pnpm/react-force-graph-3d@1.28.0_react@19.1.0/node_modules/react-force-graph-3d/dist/react-force-graph-3d.js +1 -0
  22. package/dist/cjs/node_modules/.pnpm/three-forcegraph@1.43.0_three@0.178.0/node_modules/three-forcegraph/dist/three-forcegraph.js +3 -0
  23. package/dist/cjs/node_modules/.pnpm/three-render-objects@1.40.3_three@0.178.0/node_modules/three-render-objects/dist/three-render-objects.js +18 -0
  24. package/dist/cjs/node_modules/.pnpm/three@0.178.0/node_modules/three/build/three.core.js +44 -0
  25. package/dist/cjs/node_modules/.pnpm/three@0.178.0/node_modules/three/build/three.module.js +3784 -0
  26. package/dist/cjs/node_modules/.pnpm/three@0.178.0/node_modules/three/build/three.webgpu.js +392 -0
  27. package/dist/cjs/node_modules/.pnpm/three@0.178.0/node_modules/three/examples/jsm/controls/DragControls.js +1 -0
  28. package/dist/cjs/node_modules/.pnpm/three@0.178.0/node_modules/three/examples/jsm/controls/FlyControls.js +1 -0
  29. package/dist/cjs/node_modules/.pnpm/three@0.178.0/node_modules/three/examples/jsm/controls/OrbitControls.js +1 -0
  30. package/dist/cjs/node_modules/.pnpm/three@0.178.0/node_modules/three/examples/jsm/controls/TrackballControls.js +1 -0
  31. package/dist/cjs/node_modules/.pnpm/three@0.178.0/node_modules/three/examples/jsm/postprocessing/ShaderPass.js +1 -0
  32. package/dist/cjs/react-components.css +1 -1
  33. package/dist/es/components/confetti-button/index.d.ts +24 -0
  34. package/dist/es/components/confetti-button/index.js +77 -0
  35. package/dist/es/components/txt-editor/TxtEditor.js +1 -1
  36. package/dist/es/hooks/useStayTimeReport.d.ts +6 -0
  37. package/dist/es/hooks/useStayTimeReport.js +31 -0
  38. package/dist/es/index.d.ts +2 -0
  39. package/dist/es/index.js +31 -26
  40. package/dist/es/node_modules/.pnpm/{3d-force-graph@1.77.0 → 3d-force-graph@1.78.2}/node_modules/3d-force-graph/dist/3d-force-graph.js +10 -10
  41. package/dist/es/node_modules/.pnpm/@tweenjs_tween.js@25.0.0/node_modules/@tweenjs/tween.js/dist/tween.esm.js +396 -0
  42. package/dist/es/node_modules/.pnpm/bowser@2.11.0/node_modules/bowser/src/bowser.js +55 -0
  43. package/dist/es/node_modules/.pnpm/bowser@2.11.0/node_modules/bowser/src/constants.js +113 -0
  44. package/dist/es/node_modules/.pnpm/bowser@2.11.0/node_modules/bowser/src/parser-browsers.js +404 -0
  45. package/dist/es/node_modules/.pnpm/bowser@2.11.0/node_modules/bowser/src/parser-engines.js +78 -0
  46. package/dist/es/node_modules/.pnpm/bowser@2.11.0/node_modules/bowser/src/parser-os.js +159 -0
  47. package/dist/es/node_modules/.pnpm/bowser@2.11.0/node_modules/bowser/src/parser-platforms.js +238 -0
  48. package/dist/es/node_modules/.pnpm/bowser@2.11.0/node_modules/bowser/src/parser.js +303 -0
  49. package/dist/es/node_modules/.pnpm/bowser@2.11.0/node_modules/bowser/src/utils.js +280 -0
  50. package/dist/es/node_modules/.pnpm/canvas-confetti@1.9.3/node_modules/canvas-confetti/dist/confetti.module.js +409 -0
  51. package/dist/es/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/max.js +15 -0
  52. package/dist/es/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/min.js +15 -0
  53. package/dist/es/node_modules/.pnpm/{react-force-graph-3d@1.27.0_react@18.3.1 → react-force-graph-3d@1.28.0_react@19.1.0}/node_modules/react-force-graph-3d/dist/react-force-graph-3d.js +5 -2
  54. package/dist/es/node_modules/.pnpm/three-forcegraph@1.43.0_three@0.178.0/node_modules/three-forcegraph/dist/three-forcegraph.js +1037 -0
  55. package/dist/es/node_modules/.pnpm/{three-render-objects@1.40.2_three@0.171.0 → three-render-objects@1.40.3_three@0.178.0}/node_modules/three-render-objects/dist/three-render-objects.js +10 -10
  56. package/dist/es/node_modules/.pnpm/three@0.178.0/node_modules/three/build/three.core.js +13236 -0
  57. package/dist/es/node_modules/.pnpm/{three@0.171.0 → three@0.178.0}/node_modules/three/build/three.module.js +3379 -3325
  58. package/dist/es/node_modules/.pnpm/three@0.178.0/node_modules/three/build/three.webgpu.js +24475 -0
  59. package/dist/es/node_modules/.pnpm/{three@0.171.0 → three@0.178.0}/node_modules/three/examples/jsm/controls/DragControls.js +15 -8
  60. package/dist/es/node_modules/.pnpm/{three@0.171.0 → three@0.178.0}/node_modules/three/examples/jsm/controls/FlyControls.js +26 -20
  61. package/dist/es/node_modules/.pnpm/{three@0.171.0 → three@0.178.0}/node_modules/three/examples/jsm/controls/OrbitControls.js +47 -10
  62. package/dist/es/node_modules/.pnpm/{three@0.171.0 → three@0.178.0}/node_modules/three/examples/jsm/controls/TrackballControls.js +16 -4
  63. package/dist/es/node_modules/.pnpm/{three@0.171.0 → three@0.178.0}/node_modules/three/examples/jsm/postprocessing/EffectComposer.js +62 -0
  64. package/dist/es/node_modules/.pnpm/{three@0.171.0 → three@0.178.0}/node_modules/three/examples/jsm/postprocessing/MaskPass.js +31 -0
  65. package/dist/es/node_modules/.pnpm/three@0.178.0/node_modules/three/examples/jsm/postprocessing/Pass.js +89 -0
  66. package/dist/es/node_modules/.pnpm/{three@0.171.0 → three@0.178.0}/node_modules/three/examples/jsm/postprocessing/RenderPass.js +21 -0
  67. package/dist/es/node_modules/.pnpm/three@0.178.0/node_modules/three/examples/jsm/postprocessing/ShaderPass.js +46 -0
  68. package/dist/es/react-components.css +1 -1
  69. package/package.json +29 -27
  70. package/dist/cjs/node_modules/.pnpm/3d-force-graph@1.77.0/node_modules/3d-force-graph/dist/3d-force-graph.js +0 -28
  71. package/dist/cjs/node_modules/.pnpm/@tweenjs_tween.js@23.1.3/node_modules/@tweenjs/tween.js/dist/tween.esm.js +0 -1
  72. package/dist/cjs/node_modules/.pnpm/d3-array@1.2.4/node_modules/d3-array/src/ascending.js +0 -1
  73. package/dist/cjs/node_modules/.pnpm/d3-array@1.2.4/node_modules/d3-array/src/bisect.js +0 -1
  74. package/dist/cjs/node_modules/.pnpm/d3-array@1.2.4/node_modules/d3-array/src/bisector.js +0 -1
  75. package/dist/cjs/node_modules/.pnpm/d3-array@1.2.4/node_modules/d3-array/src/max.js +0 -1
  76. package/dist/cjs/node_modules/.pnpm/d3-array@1.2.4/node_modules/d3-array/src/min.js +0 -1
  77. package/dist/cjs/node_modules/.pnpm/react-force-graph-3d@1.27.0_react@18.3.1/node_modules/react-force-graph-3d/dist/react-force-graph-3d.js +0 -1
  78. package/dist/cjs/node_modules/.pnpm/three-forcegraph@1.42.13_three@0.171.0/node_modules/three-forcegraph/dist/three-forcegraph.js +0 -3
  79. package/dist/cjs/node_modules/.pnpm/three-render-objects@1.40.2_three@0.171.0/node_modules/three-render-objects/dist/three-render-objects.js +0 -18
  80. package/dist/cjs/node_modules/.pnpm/three@0.171.0/node_modules/three/build/three.core.js +0 -44
  81. package/dist/cjs/node_modules/.pnpm/three@0.171.0/node_modules/three/build/three.module.js +0 -3789
  82. package/dist/cjs/node_modules/.pnpm/three@0.171.0/node_modules/three/build/three.webgpu.js +0 -373
  83. package/dist/cjs/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/controls/DragControls.js +0 -1
  84. package/dist/cjs/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/controls/FlyControls.js +0 -1
  85. package/dist/cjs/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/controls/OrbitControls.js +0 -1
  86. package/dist/cjs/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/controls/TrackballControls.js +0 -1
  87. package/dist/cjs/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/postprocessing/ShaderPass.js +0 -1
  88. package/dist/es/node_modules/.pnpm/@tweenjs_tween.js@23.1.3/node_modules/@tweenjs/tween.js/dist/tween.esm.js +0 -379
  89. package/dist/es/node_modules/.pnpm/d3-array@1.2.4/node_modules/d3-array/src/ascending.js +0 -6
  90. package/dist/es/node_modules/.pnpm/d3-array@1.2.4/node_modules/d3-array/src/bisect.js +0 -3
  91. package/dist/es/node_modules/.pnpm/d3-array@1.2.4/node_modules/d3-array/src/bisector.js +0 -27
  92. package/dist/es/node_modules/.pnpm/d3-array@1.2.4/node_modules/d3-array/src/max.js +0 -17
  93. package/dist/es/node_modules/.pnpm/d3-array@1.2.4/node_modules/d3-array/src/min.js +0 -17
  94. package/dist/es/node_modules/.pnpm/three-forcegraph@1.42.13_three@0.171.0/node_modules/three-forcegraph/dist/three-forcegraph.js +0 -1020
  95. package/dist/es/node_modules/.pnpm/three@0.171.0/node_modules/three/build/three.core.js +0 -6662
  96. package/dist/es/node_modules/.pnpm/three@0.171.0/node_modules/three/build/three.webgpu.js +0 -13421
  97. package/dist/es/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/postprocessing/Pass.js +0 -42
  98. package/dist/es/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/postprocessing/ShaderPass.js +0 -23
  99. /package/dist/cjs/node_modules/.pnpm/{@monaco-editor_react@4.7.0_monaco-editor@0.52.2_react-dom@18.3.1_react@18.3.1__react@18.3.1 → @monaco-editor_react@4.7.0_monaco-editor@0.52.2_react-dom@19.1.0_react@19.1.0__react@19.1.0}/node_modules/@monaco-editor/react/dist/index.js +0 -0
  100. /package/dist/cjs/node_modules/.pnpm/{react-kapsule@2.5.7_react@18.3.1 → react-kapsule@2.5.7_react@19.1.0}/node_modules/react-kapsule/dist/react-kapsule.js +0 -0
  101. /package/dist/cjs/node_modules/.pnpm/{three@0.171.0 → three@0.178.0}/node_modules/three/examples/jsm/postprocessing/EffectComposer.js +0 -0
  102. /package/dist/cjs/node_modules/.pnpm/{three@0.171.0 → three@0.178.0}/node_modules/three/examples/jsm/postprocessing/MaskPass.js +0 -0
  103. /package/dist/cjs/node_modules/.pnpm/{three@0.171.0 → three@0.178.0}/node_modules/three/examples/jsm/postprocessing/Pass.js +0 -0
  104. /package/dist/cjs/node_modules/.pnpm/{three@0.171.0 → three@0.178.0}/node_modules/three/examples/jsm/postprocessing/RenderPass.js +0 -0
  105. /package/dist/cjs/node_modules/.pnpm/{three@0.171.0 → three@0.178.0}/node_modules/three/examples/jsm/shaders/CopyShader.js +0 -0
  106. /package/dist/es/node_modules/.pnpm/{@monaco-editor_react@4.7.0_monaco-editor@0.52.2_react-dom@18.3.1_react@18.3.1__react@18.3.1 → @monaco-editor_react@4.7.0_monaco-editor@0.52.2_react-dom@19.1.0_react@19.1.0__react@19.1.0}/node_modules/@monaco-editor/react/dist/index.js +0 -0
  107. /package/dist/es/node_modules/.pnpm/{react-kapsule@2.5.7_react@18.3.1 → react-kapsule@2.5.7_react@19.1.0}/node_modules/react-kapsule/dist/react-kapsule.js +0 -0
  108. /package/dist/es/node_modules/.pnpm/{three@0.171.0 → three@0.178.0}/node_modules/three/examples/jsm/shaders/CopyShader.js +0 -0
@@ -0,0 +1,24 @@
1
+ import { GlobalOptions as ConfettiGlobalOptions, Options as ConfettiOptions } from 'canvas-confetti';
2
+ import { ReactNode, default as React } from 'react';
3
+ type Api = {
4
+ fire: (options?: ConfettiOptions) => void;
5
+ };
6
+ type Props = React.ComponentPropsWithRef<"canvas"> & {
7
+ options?: ConfettiOptions;
8
+ globalOptions?: ConfettiGlobalOptions;
9
+ manualstart?: boolean;
10
+ children?: ReactNode;
11
+ };
12
+ export type ConfettiRef = Api | null;
13
+ export declare const Confetti: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<Api>>;
14
+ interface ConfettiButtonProps extends React.HTMLAttributes<HTMLDivElement> {
15
+ options?: ConfettiOptions & ConfettiGlobalOptions & {
16
+ canvas?: HTMLCanvasElement;
17
+ };
18
+ children?: React.ReactNode;
19
+ }
20
+ export declare const ConfettiButton: {
21
+ ({ options, children, ...props }: ConfettiButtonProps): import("react/jsx-runtime").JSX.Element;
22
+ displayName: string;
23
+ };
24
+ export {};
@@ -0,0 +1,77 @@
1
+ "use client";
2
+ import { jsxs as g, jsx as d } from "react/jsx-runtime";
3
+ import m from "../../node_modules/.pnpm/canvas-confetti@1.9.3/node_modules/canvas-confetti/dist/confetti.module.js";
4
+ import { forwardRef as x, useRef as v, useCallback as C, useMemo as k, useImperativeHandle as B, useEffect as b, createContext as R } from "react";
5
+ const j = R({}), p = x((c, s) => {
6
+ const {
7
+ options: n,
8
+ globalOptions: a = { resize: !0, useWorker: !0 },
9
+ manualstart: o = !1,
10
+ children: e,
11
+ ...l
12
+ } = c, t = v(null), y = C(
13
+ (r) => {
14
+ if (r !== null) {
15
+ if (t.current) return;
16
+ t.current = m.create(r, {
17
+ ...a,
18
+ resize: !0
19
+ });
20
+ } else
21
+ t.current && (t.current.reset(), t.current = null);
22
+ },
23
+ [a]
24
+ ), i = C(
25
+ async (r = {}) => {
26
+ var f;
27
+ try {
28
+ await ((f = t.current) == null ? void 0 : f.call(t, { ...n, ...r }));
29
+ } catch (w) {
30
+ console.error("Confetti error:", w);
31
+ }
32
+ },
33
+ [n]
34
+ ), u = k(
35
+ () => ({
36
+ fire: i
37
+ }),
38
+ [i]
39
+ );
40
+ return B(s, () => u, [u]), b(() => {
41
+ o || (async () => {
42
+ try {
43
+ await i();
44
+ } catch (r) {
45
+ console.error("Confetti effect error:", r);
46
+ }
47
+ })();
48
+ }, [o, i]), /* @__PURE__ */ g(j.Provider, { value: u, children: [
49
+ /* @__PURE__ */ d("canvas", { ref: y, ...l }),
50
+ e
51
+ ] });
52
+ });
53
+ p.displayName = "Confetti";
54
+ const W = p, h = ({
55
+ options: c,
56
+ children: s,
57
+ ...n
58
+ }) => /* @__PURE__ */ d("div", { onClick: async (o) => {
59
+ try {
60
+ const e = o.currentTarget.getBoundingClientRect(), l = e.left + e.width / 2, t = e.top + e.height / 2;
61
+ await m({
62
+ ...c,
63
+ origin: {
64
+ x: l / window.innerWidth,
65
+ y: t / window.innerHeight
66
+ }
67
+ });
68
+ } catch (e) {
69
+ console.error("Confetti button error:", e);
70
+ }
71
+ }, ...n, children: s });
72
+ h.displayName = "ConfettiButton";
73
+ const E = h;
74
+ export {
75
+ W as Confetti,
76
+ E as ConfettiButton
77
+ };
@@ -1,5 +1,5 @@
1
1
  import { jsx as u } from "react/jsx-runtime";
2
- import c from "../../node_modules/.pnpm/@monaco-editor_react@4.7.0_monaco-editor@0.52.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@monaco-editor/react/dist/index.js";
2
+ import c from "../../node_modules/.pnpm/@monaco-editor_react@4.7.0_monaco-editor@0.52.2_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@monaco-editor/react/dist/index.js";
3
3
  import { useRef as x } from "react";
4
4
  const D = ({
5
5
  height: o = "500px",
@@ -0,0 +1,6 @@
1
+ export declare function useStayTimeReport(onReport: (info: {
2
+ enterTime: number;
3
+ leaveTime: number;
4
+ duration: number;
5
+ browser: string;
6
+ }) => void): void;
@@ -0,0 +1,31 @@
1
+ import { useRef as s, useEffect as u } from "react";
2
+ import d from "../node_modules/.pnpm/bowser@2.11.0/node_modules/bowser/src/bowser.js";
3
+ function f() {
4
+ const t = d.getParser(window.navigator.userAgent), e = t.getBrowser(), n = t.getOS();
5
+ return `${e.name} ${e.version} (${n.name} ${n.version})`;
6
+ }
7
+ function v(t) {
8
+ const e = s(Date.now()), n = s(!1);
9
+ u(() => {
10
+ e.current = Date.now(), n.current = !1;
11
+ const r = () => {
12
+ if (n.current) return;
13
+ n.current = !0;
14
+ const i = Date.now(), a = i - e.current, c = f();
15
+ t({
16
+ enterTime: e.current,
17
+ leaveTime: i,
18
+ duration: a,
19
+ browser: c
20
+ });
21
+ }, o = () => {
22
+ document.visibilityState === "hidden" && r();
23
+ };
24
+ return window.addEventListener("beforeunload", r), document.addEventListener("visibilitychange", o), () => {
25
+ r(), window.removeEventListener("beforeunload", r), document.removeEventListener("visibilitychange", o);
26
+ };
27
+ }, []);
28
+ }
29
+ export {
30
+ v as useStayTimeReport
31
+ };
@@ -12,3 +12,5 @@ export * from './components/txt-editor';
12
12
  export * from './components/message';
13
13
  export * from './components/qr-code';
14
14
  export * from './components/react-force-graph-3d';
15
+ export * from './components/confetti-button';
16
+ export * from './hooks/useStayTimeReport';
package/dist/es/index.js CHANGED
@@ -1,33 +1,38 @@
1
1
  /* empty css */
2
- import { Button as t } from "./components/button/Button.js";
3
- import { TxtReader as p } from "./components/txt-reader/TxtReader.js";
4
- import { HyperText as f } from "./components/hyper-text/index.js";
2
+ import { Button as e } from "./components/button/Button.js";
3
+ import { TxtReader as f } from "./components/txt-reader/TxtReader.js";
4
+ import { HyperText as x } from "./components/hyper-text/index.js";
5
5
  import { TypingAnimation as n } from "./components/typing-animation/index.js";
6
6
  import { QRCode as d } from "./components/qr-code/index.js";
7
- import { default as c } from "./components/pinch-content/PinchContent.js";
8
- import { default as T } from "./components/image-viewer/ImageViewer.js";
9
- import { ShimmerButton as l } from "./components/shimmer-button/ShimmerButton.js";
10
- import { default as k } from "./components/image-compare/ImageCompare.js";
11
- import { TextAnimate as D } from "./components/text-animate/TextAnimate.js";
12
- import { Dock as y, DockIcon as A, dockVariants as B } from "./components/dock/Duck.js";
13
- import { TxtEditor as V } from "./components/txt-editor/TxtEditor.js";
14
- import { Message as E } from "./components/message/Message.js";
15
- import { default as G } from "./node_modules/.pnpm/react-force-graph-3d@1.27.0_react@18.3.1/node_modules/react-force-graph-3d/dist/react-force-graph-3d.js";
7
+ import { Confetti as u, ConfettiButton as c } from "./components/confetti-button/index.js";
8
+ import { useStayTimeReport as C } from "./hooks/useStayTimeReport.js";
9
+ import { default as l } from "./components/pinch-content/PinchContent.js";
10
+ import { default as k } from "./components/image-viewer/ImageViewer.js";
11
+ import { ShimmerButton as B } from "./components/shimmer-button/ShimmerButton.js";
12
+ import { default as I } from "./components/image-compare/ImageCompare.js";
13
+ import { TextAnimate as A } from "./components/text-animate/TextAnimate.js";
14
+ import { Dock as V, DockIcon as w, dockVariants as E } from "./components/dock/Duck.js";
15
+ import { TxtEditor as G } from "./components/txt-editor/TxtEditor.js";
16
+ import { Message as M } from "./components/message/Message.js";
17
+ import { default as Q } from "./node_modules/.pnpm/react-force-graph-3d@1.28.0_react@19.1.0/node_modules/react-force-graph-3d/dist/react-force-graph-3d.js";
16
18
  export {
17
- t as Button,
18
- y as Dock,
19
- A as DockIcon,
20
- G as ForceGraph3D,
21
- f as HyperText,
22
- k as ImageCompare,
23
- T as ImageViewer,
24
- E as Message,
25
- c as PinchContent,
19
+ e as Button,
20
+ u as Confetti,
21
+ c as ConfettiButton,
22
+ V as Dock,
23
+ w as DockIcon,
24
+ Q as ForceGraph3D,
25
+ x as HyperText,
26
+ I as ImageCompare,
27
+ k as ImageViewer,
28
+ M as Message,
29
+ l as PinchContent,
26
30
  d as QRCode,
27
- l as ShimmerButton,
28
- D as TextAnimate,
29
- V as TxtEditor,
30
- p as TxtReader,
31
+ B as ShimmerButton,
32
+ A as TextAnimate,
33
+ G as TxtEditor,
34
+ f as TxtReader,
31
35
  n as TypingAnimation,
32
- B as dockVariants
36
+ E as dockVariants,
37
+ C as useStayTimeReport
33
38
  };
@@ -1,10 +1,10 @@
1
- import "../../../../three@0.171.0/node_modules/three/build/three.module.js";
2
- import { DragControls as R } from "../../../../three@0.171.0/node_modules/three/examples/jsm/controls/DragControls.js";
3
- import D from "../../../../three-forcegraph@1.42.13_three@0.171.0/node_modules/three-forcegraph/dist/three-forcegraph.js";
4
- import A from "../../../../three-render-objects@1.40.2_three@0.171.0/node_modules/three-render-objects/dist/three-render-objects.js";
5
- import L from "../../../../accessor-fn@1.5.3/node_modules/accessor-fn/dist/accessor-fn.js";
6
- import T from "../../../../kapsule@1.16.3/node_modules/kapsule/dist/kapsule.js";
7
- import { REVISION as S, AmbientLight as I, DirectionalLight as N } from "../../../../three@0.171.0/node_modules/three/build/three.core.js";
1
+ import "../../../../three@0.178.0/node_modules/three/build/three.module.js";
2
+ import { DragControls as R } from "../../../../three@0.178.0/node_modules/three/examples/jsm/controls/DragControls.js";
3
+ import D from "../../../../three-forcegraph@1.43.0_three@0.178.0/node_modules/three-forcegraph/dist/three-forcegraph.js";
4
+ import A from "../../../../three-render-objects@1.40.3_three@0.178.0/node_modules/three-render-objects/dist/three-render-objects.js";
5
+ import T from "../../../../accessor-fn@1.5.3/node_modules/accessor-fn/dist/accessor-fn.js";
6
+ import L from "../../../../kapsule@1.16.3/node_modules/kapsule/dist/kapsule.js";
7
+ import { REVISION as S, AmbientLight as I, DirectionalLight as N } from "../../../../three@0.178.0/node_modules/three/build/three.core.js";
8
8
  function F(n, r) {
9
9
  r === void 0 && (r = {});
10
10
  var e = r.insertAt;
@@ -135,7 +135,7 @@ var C = window.THREE ? window.THREE : {
135
135
  AmbientLight: I,
136
136
  DirectionalLight: N,
137
137
  REVISION: S
138
- }, q = 170, x = w("forceGraph", D), K = Object.assign.apply(Object, O(["jsonUrl", "graphData", "numDimensions", "dagMode", "dagLevelDistance", "dagNodeFilter", "onDagError", "nodeRelSize", "nodeId", "nodeVal", "nodeResolution", "nodeColor", "nodeAutoColorBy", "nodeOpacity", "nodeVisibility", "nodeThreeObject", "nodeThreeObjectExtend", "nodePositionUpdate", "linkSource", "linkTarget", "linkVisibility", "linkColor", "linkAutoColorBy", "linkOpacity", "linkWidth", "linkResolution", "linkCurvature", "linkCurveRotation", "linkMaterial", "linkThreeObject", "linkThreeObjectExtend", "linkPositionUpdate", "linkDirectionalArrowLength", "linkDirectionalArrowColor", "linkDirectionalArrowRelPos", "linkDirectionalArrowResolution", "linkDirectionalParticles", "linkDirectionalParticleSpeed", "linkDirectionalParticleWidth", "linkDirectionalParticleColor", "linkDirectionalParticleResolution", "forceEngine", "d3AlphaDecay", "d3VelocityDecay", "d3AlphaMin", "ngraphPhysics", "warmupTicks", "cooldownTicks", "cooldownTime", "onEngineTick", "onEngineStop"].map(function(n) {
138
+ }, q = 170, x = w("forceGraph", D), K = Object.assign.apply(Object, O(["jsonUrl", "graphData", "numDimensions", "dagMode", "dagLevelDistance", "dagNodeFilter", "onDagError", "nodeRelSize", "nodeId", "nodeVal", "nodeResolution", "nodeColor", "nodeAutoColorBy", "nodeOpacity", "nodeVisibility", "nodeThreeObject", "nodeThreeObjectExtend", "nodePositionUpdate", "linkSource", "linkTarget", "linkVisibility", "linkColor", "linkAutoColorBy", "linkOpacity", "linkWidth", "linkResolution", "linkCurvature", "linkCurveRotation", "linkMaterial", "linkThreeObject", "linkThreeObjectExtend", "linkPositionUpdate", "linkDirectionalArrowLength", "linkDirectionalArrowColor", "linkDirectionalArrowRelPos", "linkDirectionalArrowResolution", "linkDirectionalParticles", "linkDirectionalParticleSpeed", "linkDirectionalParticleOffset", "linkDirectionalParticleWidth", "linkDirectionalParticleColor", "linkDirectionalParticleResolution", "linkDirectionalParticleThreeObject", "forceEngine", "d3AlphaDecay", "d3VelocityDecay", "d3AlphaMin", "ngraphPhysics", "warmupTicks", "cooldownTicks", "cooldownTime", "onEngineTick", "onEngineStop"].map(function(n) {
139
139
  return v({}, n, x.linkProp(n));
140
140
  }))), W = Object.assign.apply(Object, O(["refresh", "getGraphBbox", "d3Force", "d3ReheatSimulation", "emitParticle"].map(function(n) {
141
141
  return v({}, n, x.linkMethod(n));
@@ -146,7 +146,7 @@ var C = window.THREE ? window.THREE : {
146
146
  })).concat([{
147
147
  graph2ScreenCoords: j.linkMethod("getScreenCoords"),
148
148
  screen2GraphCoords: j.linkMethod("getSceneCoords")
149
- }])), oe = T({
149
+ }])), oe = L({
150
150
  props: _(_({
151
151
  nodeLabel: {
152
152
  default: "name",
@@ -356,7 +356,7 @@ var C = window.THREE ? window.THREE : {
356
356
  return i(c) - i(o);
357
357
  }).tooltipContent(function(u) {
358
358
  var a = h(u);
359
- return a && L(e["".concat(a.__graphObjType, "Label")])(a.__data) || "";
359
+ return a && T(e["".concat(a.__graphObjType, "Label")])(a.__data) || "";
360
360
  }).hoverDuringDrag(!1).onHover(function(u) {
361
361
  var a = h(u);
362
362
  if (a !== e.hoverObj) {
@@ -0,0 +1,396 @@
1
+ var g = Object.freeze({
2
+ Linear: Object.freeze({
3
+ None: function(t) {
4
+ return t;
5
+ },
6
+ In: function(t) {
7
+ return t;
8
+ },
9
+ Out: function(t) {
10
+ return t;
11
+ },
12
+ InOut: function(t) {
13
+ return t;
14
+ }
15
+ }),
16
+ Quadratic: Object.freeze({
17
+ In: function(t) {
18
+ return t * t;
19
+ },
20
+ Out: function(t) {
21
+ return t * (2 - t);
22
+ },
23
+ InOut: function(t) {
24
+ return (t *= 2) < 1 ? 0.5 * t * t : -0.5 * (--t * (t - 2) - 1);
25
+ }
26
+ }),
27
+ Cubic: Object.freeze({
28
+ In: function(t) {
29
+ return t * t * t;
30
+ },
31
+ Out: function(t) {
32
+ return --t * t * t + 1;
33
+ },
34
+ InOut: function(t) {
35
+ return (t *= 2) < 1 ? 0.5 * t * t * t : 0.5 * ((t -= 2) * t * t + 2);
36
+ }
37
+ }),
38
+ Quartic: Object.freeze({
39
+ In: function(t) {
40
+ return t * t * t * t;
41
+ },
42
+ Out: function(t) {
43
+ return 1 - --t * t * t * t;
44
+ },
45
+ InOut: function(t) {
46
+ return (t *= 2) < 1 ? 0.5 * t * t * t * t : -0.5 * ((t -= 2) * t * t * t - 2);
47
+ }
48
+ }),
49
+ Quintic: Object.freeze({
50
+ In: function(t) {
51
+ return t * t * t * t * t;
52
+ },
53
+ Out: function(t) {
54
+ return --t * t * t * t * t + 1;
55
+ },
56
+ InOut: function(t) {
57
+ return (t *= 2) < 1 ? 0.5 * t * t * t * t * t : 0.5 * ((t -= 2) * t * t * t * t + 2);
58
+ }
59
+ }),
60
+ Sinusoidal: Object.freeze({
61
+ In: function(t) {
62
+ return 1 - Math.sin((1 - t) * Math.PI / 2);
63
+ },
64
+ Out: function(t) {
65
+ return Math.sin(t * Math.PI / 2);
66
+ },
67
+ InOut: function(t) {
68
+ return 0.5 * (1 - Math.sin(Math.PI * (0.5 - t)));
69
+ }
70
+ }),
71
+ Exponential: Object.freeze({
72
+ In: function(t) {
73
+ return t === 0 ? 0 : Math.pow(1024, t - 1);
74
+ },
75
+ Out: function(t) {
76
+ return t === 1 ? 1 : 1 - Math.pow(2, -10 * t);
77
+ },
78
+ InOut: function(t) {
79
+ return t === 0 ? 0 : t === 1 ? 1 : (t *= 2) < 1 ? 0.5 * Math.pow(1024, t - 1) : 0.5 * (-Math.pow(2, -10 * (t - 1)) + 2);
80
+ }
81
+ }),
82
+ Circular: Object.freeze({
83
+ In: function(t) {
84
+ return 1 - Math.sqrt(1 - t * t);
85
+ },
86
+ Out: function(t) {
87
+ return Math.sqrt(1 - --t * t);
88
+ },
89
+ InOut: function(t) {
90
+ return (t *= 2) < 1 ? -0.5 * (Math.sqrt(1 - t * t) - 1) : 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);
91
+ }
92
+ }),
93
+ Elastic: Object.freeze({
94
+ In: function(t) {
95
+ return t === 0 ? 0 : t === 1 ? 1 : -Math.pow(2, 10 * (t - 1)) * Math.sin((t - 1.1) * 5 * Math.PI);
96
+ },
97
+ Out: function(t) {
98
+ return t === 0 ? 0 : t === 1 ? 1 : Math.pow(2, -10 * t) * Math.sin((t - 0.1) * 5 * Math.PI) + 1;
99
+ },
100
+ InOut: function(t) {
101
+ return t === 0 ? 0 : t === 1 ? 1 : (t *= 2, t < 1 ? -0.5 * Math.pow(2, 10 * (t - 1)) * Math.sin((t - 1.1) * 5 * Math.PI) : 0.5 * Math.pow(2, -10 * (t - 1)) * Math.sin((t - 1.1) * 5 * Math.PI) + 1);
102
+ }
103
+ }),
104
+ Back: Object.freeze({
105
+ In: function(t) {
106
+ var e = 1.70158;
107
+ return t === 1 ? 1 : t * t * ((e + 1) * t - e);
108
+ },
109
+ Out: function(t) {
110
+ var e = 1.70158;
111
+ return t === 0 ? 0 : --t * t * ((e + 1) * t + e) + 1;
112
+ },
113
+ InOut: function(t) {
114
+ var e = 2.5949095;
115
+ return (t *= 2) < 1 ? 0.5 * (t * t * ((e + 1) * t - e)) : 0.5 * ((t -= 2) * t * ((e + 1) * t + e) + 2);
116
+ }
117
+ }),
118
+ Bounce: Object.freeze({
119
+ In: function(t) {
120
+ return 1 - g.Bounce.Out(1 - t);
121
+ },
122
+ Out: function(t) {
123
+ return t < 0.36363636363636365 ? 7.5625 * t * t : t < 0.7272727272727273 ? 7.5625 * (t -= 0.5454545454545454) * t + 0.75 : t < 0.9090909090909091 ? 7.5625 * (t -= 0.8181818181818182) * t + 0.9375 : 7.5625 * (t -= 0.9545454545454546) * t + 0.984375;
124
+ },
125
+ InOut: function(t) {
126
+ return t < 0.5 ? g.Bounce.In(t * 2) * 0.5 : g.Bounce.Out(t * 2 - 1) * 0.5 + 0.5;
127
+ }
128
+ }),
129
+ generatePow: function(t) {
130
+ return t === void 0 && (t = 4), t = t < Number.EPSILON ? Number.EPSILON : t, t = t > 1e4 ? 1e4 : t, {
131
+ In: function(e) {
132
+ return Math.pow(e, t);
133
+ },
134
+ Out: function(e) {
135
+ return 1 - Math.pow(1 - e, t);
136
+ },
137
+ InOut: function(e) {
138
+ return e < 0.5 ? Math.pow(e * 2, t) / 2 : (1 - Math.pow(2 - e * 2, t)) / 2 + 0.5;
139
+ }
140
+ };
141
+ }
142
+ }), y = function() {
143
+ return performance.now();
144
+ }, w = (
145
+ /** @class */
146
+ function() {
147
+ function t() {
148
+ for (var e = [], i = 0; i < arguments.length; i++)
149
+ e[i] = arguments[i];
150
+ this._tweens = {}, this._tweensAddedDuringUpdate = {}, this.add.apply(this, e);
151
+ }
152
+ return t.prototype.getAll = function() {
153
+ var e = this;
154
+ return Object.keys(this._tweens).map(function(i) {
155
+ return e._tweens[i];
156
+ });
157
+ }, t.prototype.removeAll = function() {
158
+ this._tweens = {};
159
+ }, t.prototype.add = function() {
160
+ for (var e, i = [], r = 0; r < arguments.length; r++)
161
+ i[r] = arguments[r];
162
+ for (var a = 0, s = i; a < s.length; a++) {
163
+ var n = s[a];
164
+ (e = n._group) === null || e === void 0 || e.remove(n), n._group = this, this._tweens[n.getId()] = n, this._tweensAddedDuringUpdate[n.getId()] = n;
165
+ }
166
+ }, t.prototype.remove = function() {
167
+ for (var e = [], i = 0; i < arguments.length; i++)
168
+ e[i] = arguments[i];
169
+ for (var r = 0, a = e; r < a.length; r++) {
170
+ var s = a[r];
171
+ s._group = void 0, delete this._tweens[s.getId()], delete this._tweensAddedDuringUpdate[s.getId()];
172
+ }
173
+ }, t.prototype.allStopped = function() {
174
+ return this.getAll().every(function(e) {
175
+ return !e.isPlaying();
176
+ });
177
+ }, t.prototype.update = function(e, i) {
178
+ e === void 0 && (e = y()), i === void 0 && (i = !0);
179
+ var r = Object.keys(this._tweens);
180
+ if (r.length !== 0)
181
+ for (; r.length > 0; ) {
182
+ this._tweensAddedDuringUpdate = {};
183
+ for (var a = 0; a < r.length; a++) {
184
+ var s = this._tweens[r[a]], n = !i;
185
+ s && s.update(e, n) === !1 && !i && this.remove(s);
186
+ }
187
+ r = Object.keys(this._tweensAddedDuringUpdate);
188
+ }
189
+ }, t;
190
+ }()
191
+ ), O = {
192
+ Linear: function(t, e) {
193
+ var i = t.length - 1, r = i * e, a = Math.floor(r), s = O.Utils.Linear;
194
+ return e < 0 ? s(t[0], t[1], r) : e > 1 ? s(t[i], t[i - 1], i - r) : s(t[a], t[a + 1 > i ? i : a + 1], r - a);
195
+ },
196
+ Utils: {
197
+ Linear: function(t, e, i) {
198
+ return (e - t) * i + t;
199
+ }
200
+ }
201
+ }, I = (
202
+ /** @class */
203
+ function() {
204
+ function t() {
205
+ }
206
+ return t.nextId = function() {
207
+ return t._nextId++;
208
+ }, t._nextId = 0, t;
209
+ }()
210
+ ), C = new w(), M = (
211
+ /** @class */
212
+ function() {
213
+ function t(e, i) {
214
+ this._isPaused = !1, this._pauseStart = 0, this._valuesStart = {}, this._valuesEnd = {}, this._valuesStartRepeat = {}, this._duration = 1e3, this._isDynamic = !1, this._initialRepeat = 0, this._repeat = 0, this._yoyo = !1, this._isPlaying = !1, this._reversed = !1, this._delayTime = 0, this._startTime = 0, this._easingFunction = g.Linear.None, this._interpolationFunction = O.Linear, this._chainedTweens = [], this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._id = I.nextId(), this._isChainStopped = !1, this._propertiesAreSetUp = !1, this._goToEnd = !1, this._object = e, typeof i == "object" ? (this._group = i, i.add(this)) : i === !0 && (this._group = C, C.add(this));
215
+ }
216
+ return t.prototype.getId = function() {
217
+ return this._id;
218
+ }, t.prototype.isPlaying = function() {
219
+ return this._isPlaying;
220
+ }, t.prototype.isPaused = function() {
221
+ return this._isPaused;
222
+ }, t.prototype.getDuration = function() {
223
+ return this._duration;
224
+ }, t.prototype.to = function(e, i) {
225
+ if (i === void 0 && (i = 1e3), this._isPlaying)
226
+ throw new Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");
227
+ return this._valuesEnd = e, this._propertiesAreSetUp = !1, this._duration = i < 0 ? 0 : i, this;
228
+ }, t.prototype.duration = function(e) {
229
+ return e === void 0 && (e = 1e3), this._duration = e < 0 ? 0 : e, this;
230
+ }, t.prototype.dynamic = function(e) {
231
+ return e === void 0 && (e = !1), this._isDynamic = e, this;
232
+ }, t.prototype.start = function(e, i) {
233
+ if (e === void 0 && (e = y()), i === void 0 && (i = !1), this._isPlaying)
234
+ return this;
235
+ if (this._repeat = this._initialRepeat, this._reversed) {
236
+ this._reversed = !1;
237
+ for (var r in this._valuesStartRepeat)
238
+ this._swapEndStartRepeatValues(r), this._valuesStart[r] = this._valuesStartRepeat[r];
239
+ }
240
+ if (this._isPlaying = !0, this._isPaused = !1, this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._isChainStopped = !1, this._startTime = e, this._startTime += this._delayTime, !this._propertiesAreSetUp || i) {
241
+ if (this._propertiesAreSetUp = !0, !this._isDynamic) {
242
+ var a = {};
243
+ for (var s in this._valuesEnd)
244
+ a[s] = this._valuesEnd[s];
245
+ this._valuesEnd = a;
246
+ }
247
+ this._setupProperties(this._object, this._valuesStart, this._valuesEnd, this._valuesStartRepeat, i);
248
+ }
249
+ return this;
250
+ }, t.prototype.startFromCurrentValues = function(e) {
251
+ return this.start(e, !0);
252
+ }, t.prototype._setupProperties = function(e, i, r, a, s) {
253
+ for (var n in r) {
254
+ var h = e[n], f = Array.isArray(h), _ = f ? "array" : typeof h, u = !f && Array.isArray(r[n]);
255
+ if (!(_ === "undefined" || _ === "function")) {
256
+ if (u) {
257
+ var o = r[n];
258
+ if (o.length === 0)
259
+ continue;
260
+ for (var p = [h], d = 0, S = o.length; d < S; d += 1) {
261
+ var b = this._handleRelativeValue(h, o[d]);
262
+ if (isNaN(b)) {
263
+ u = !1, console.warn("Found invalid interpolation list. Skipping.");
264
+ break;
265
+ }
266
+ p.push(b);
267
+ }
268
+ u && (r[n] = p);
269
+ }
270
+ if ((_ === "object" || f) && h && !u) {
271
+ i[n] = f ? [] : {};
272
+ var v = h;
273
+ for (var c in v)
274
+ i[n][c] = v[c];
275
+ a[n] = f ? [] : {};
276
+ var o = r[n];
277
+ if (!this._isDynamic) {
278
+ var P = {};
279
+ for (var c in o)
280
+ P[c] = o[c];
281
+ r[n] = o = P;
282
+ }
283
+ this._setupProperties(v, i[n], o, a[n], s);
284
+ } else
285
+ (typeof i[n] > "u" || s) && (i[n] = h), f || (i[n] *= 1), u ? a[n] = r[n].slice().reverse() : a[n] = i[n] || 0;
286
+ }
287
+ }
288
+ }, t.prototype.stop = function() {
289
+ return this._isChainStopped || (this._isChainStopped = !0, this.stopChainedTweens()), this._isPlaying ? (this._isPlaying = !1, this._isPaused = !1, this._onStopCallback && this._onStopCallback(this._object), this) : this;
290
+ }, t.prototype.end = function() {
291
+ return this._goToEnd = !0, this.update(this._startTime + this._duration), this;
292
+ }, t.prototype.pause = function(e) {
293
+ return e === void 0 && (e = y()), this._isPaused || !this._isPlaying ? this : (this._isPaused = !0, this._pauseStart = e, this);
294
+ }, t.prototype.resume = function(e) {
295
+ return e === void 0 && (e = y()), !this._isPaused || !this._isPlaying ? this : (this._isPaused = !1, this._startTime += e - this._pauseStart, this._pauseStart = 0, this);
296
+ }, t.prototype.stopChainedTweens = function() {
297
+ for (var e = 0, i = this._chainedTweens.length; e < i; e++)
298
+ this._chainedTweens[e].stop();
299
+ return this;
300
+ }, t.prototype.group = function(e) {
301
+ return e ? (e.add(this), this) : (console.warn("tween.group() without args has been removed, use group.add(tween) instead."), this);
302
+ }, t.prototype.remove = function() {
303
+ var e;
304
+ return (e = this._group) === null || e === void 0 || e.remove(this), this;
305
+ }, t.prototype.delay = function(e) {
306
+ return e === void 0 && (e = 0), this._delayTime = e, this;
307
+ }, t.prototype.repeat = function(e) {
308
+ return e === void 0 && (e = 0), this._initialRepeat = e, this._repeat = e, this;
309
+ }, t.prototype.repeatDelay = function(e) {
310
+ return this._repeatDelayTime = e, this;
311
+ }, t.prototype.yoyo = function(e) {
312
+ return e === void 0 && (e = !1), this._yoyo = e, this;
313
+ }, t.prototype.easing = function(e) {
314
+ return e === void 0 && (e = g.Linear.None), this._easingFunction = e, this;
315
+ }, t.prototype.interpolation = function(e) {
316
+ return e === void 0 && (e = O.Linear), this._interpolationFunction = e, this;
317
+ }, t.prototype.chain = function() {
318
+ for (var e = [], i = 0; i < arguments.length; i++)
319
+ e[i] = arguments[i];
320
+ return this._chainedTweens = e, this;
321
+ }, t.prototype.onStart = function(e) {
322
+ return this._onStartCallback = e, this;
323
+ }, t.prototype.onEveryStart = function(e) {
324
+ return this._onEveryStartCallback = e, this;
325
+ }, t.prototype.onUpdate = function(e) {
326
+ return this._onUpdateCallback = e, this;
327
+ }, t.prototype.onRepeat = function(e) {
328
+ return this._onRepeatCallback = e, this;
329
+ }, t.prototype.onComplete = function(e) {
330
+ return this._onCompleteCallback = e, this;
331
+ }, t.prototype.onStop = function(e) {
332
+ return this._onStopCallback = e, this;
333
+ }, t.prototype.update = function(e, i) {
334
+ var r = this, a;
335
+ if (e === void 0 && (e = y()), i === void 0 && (i = t.autoStartOnUpdate), this._isPaused)
336
+ return !0;
337
+ var s;
338
+ if (!this._goToEnd && !this._isPlaying)
339
+ if (i)
340
+ this.start(e, !0);
341
+ else
342
+ return !1;
343
+ if (this._goToEnd = !1, e < this._startTime)
344
+ return !0;
345
+ this._onStartCallbackFired === !1 && (this._onStartCallback && this._onStartCallback(this._object), this._onStartCallbackFired = !0), this._onEveryStartCallbackFired === !1 && (this._onEveryStartCallback && this._onEveryStartCallback(this._object), this._onEveryStartCallbackFired = !0);
346
+ var n = e - this._startTime, h = this._duration + ((a = this._repeatDelayTime) !== null && a !== void 0 ? a : this._delayTime), f = this._duration + this._repeat * h, _ = function() {
347
+ if (r._duration === 0 || n > f)
348
+ return 1;
349
+ var b = Math.trunc(n / h), v = n - b * h, c = Math.min(v / r._duration, 1);
350
+ return c === 0 && n === r._duration ? 1 : c;
351
+ }, u = _(), o = this._easingFunction(u);
352
+ if (this._updateProperties(this._object, this._valuesStart, this._valuesEnd, o), this._onUpdateCallback && this._onUpdateCallback(this._object, u), this._duration === 0 || n >= this._duration)
353
+ if (this._repeat > 0) {
354
+ var p = Math.min(Math.trunc((n - this._duration) / h) + 1, this._repeat);
355
+ isFinite(this._repeat) && (this._repeat -= p);
356
+ for (s in this._valuesStartRepeat)
357
+ !this._yoyo && typeof this._valuesEnd[s] == "string" && (this._valuesStartRepeat[s] = // eslint-disable-next-line
358
+ // @ts-ignore FIXME?
359
+ this._valuesStartRepeat[s] + parseFloat(this._valuesEnd[s])), this._yoyo && this._swapEndStartRepeatValues(s), this._valuesStart[s] = this._valuesStartRepeat[s];
360
+ return this._yoyo && (this._reversed = !this._reversed), this._startTime += h * p, this._onRepeatCallback && this._onRepeatCallback(this._object), this._onEveryStartCallbackFired = !1, !0;
361
+ } else {
362
+ this._onCompleteCallback && this._onCompleteCallback(this._object);
363
+ for (var d = 0, S = this._chainedTweens.length; d < S; d++)
364
+ this._chainedTweens[d].start(this._startTime + this._duration, !1);
365
+ return this._isPlaying = !1, !1;
366
+ }
367
+ return !0;
368
+ }, t.prototype._updateProperties = function(e, i, r, a) {
369
+ for (var s in r)
370
+ if (i[s] !== void 0) {
371
+ var n = i[s] || 0, h = r[s], f = Array.isArray(e[s]), _ = Array.isArray(h), u = !f && _;
372
+ u ? e[s] = this._interpolationFunction(h, a) : typeof h == "object" && h ? this._updateProperties(e[s], n, h, a) : (h = this._handleRelativeValue(n, h), typeof h == "number" && (e[s] = n + (h - n) * a));
373
+ }
374
+ }, t.prototype._handleRelativeValue = function(e, i) {
375
+ return typeof i != "string" ? i : i.charAt(0) === "+" || i.charAt(0) === "-" ? e + parseFloat(i) : parseFloat(i);
376
+ }, t.prototype._swapEndStartRepeatValues = function(e) {
377
+ var i = this._valuesStartRepeat[e], r = this._valuesEnd[e];
378
+ typeof r == "string" ? this._valuesStartRepeat[e] = this._valuesStartRepeat[e] + parseFloat(r) : this._valuesStartRepeat[e] = this._valuesEnd[e], this._valuesEnd[e] = i;
379
+ }, t.autoStartOnUpdate = !1, t;
380
+ }()
381
+ );
382
+ I.nextId;
383
+ var l = C;
384
+ l.getAll.bind(l);
385
+ l.removeAll.bind(l);
386
+ l.add.bind(l);
387
+ l.remove.bind(l);
388
+ l.update.bind(l);
389
+ export {
390
+ g as Easing,
391
+ w as Group,
392
+ O as Interpolation,
393
+ I as Sequence,
394
+ M as Tween,
395
+ y as now
396
+ };