sunpeak 0.5.10 → 0.5.13

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 (104) hide show
  1. package/bin/sunpeak.js +11 -1
  2. package/dist/index.cjs +27 -8
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.js +27 -8
  5. package/dist/index.js.map +1 -1
  6. package/dist/style.css +12 -4
  7. package/package.json +1 -1
  8. package/template/_gitignore +47 -0
  9. package/template/dist/chatgpt/albums.js +49 -0
  10. package/template/dist/chatgpt/carousel.js +49 -0
  11. package/template/dist/chatgpt/counter.js +49 -0
  12. package/template/node_modules/.bin/eslint +21 -0
  13. package/template/node_modules/.bin/eslint-config-prettier +21 -0
  14. package/template/node_modules/.bin/nodemon +21 -0
  15. package/template/node_modules/.bin/prettier +21 -0
  16. package/template/node_modules/.bin/sunpeak +21 -0
  17. package/template/node_modules/.bin/ts-node +21 -0
  18. package/template/node_modules/.bin/ts-node-cwd +21 -0
  19. package/template/node_modules/.bin/ts-node-esm +21 -0
  20. package/template/node_modules/.bin/ts-node-script +21 -0
  21. package/template/node_modules/.bin/ts-node-transpile-only +21 -0
  22. package/template/node_modules/.bin/ts-script +21 -0
  23. package/template/node_modules/.bin/tsc +21 -0
  24. package/template/node_modules/.bin/tsserver +21 -0
  25. package/template/node_modules/.bin/tsx +21 -0
  26. package/template/node_modules/.bin/vite +21 -0
  27. package/template/node_modules/.bin/vitest +21 -0
  28. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Button.js +20 -0
  29. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Button.js.map +7 -0
  30. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Checkbox.js +33 -0
  31. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Checkbox.js.map +7 -0
  32. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Icon.js +1498 -0
  33. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Icon.js.map +7 -0
  34. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Input.js +13 -0
  35. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Input.js.map +7 -0
  36. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_SegmentedControl.js +103 -0
  37. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_SegmentedControl.js.map +7 -0
  38. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Select.js +1019 -0
  39. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Select.js.map +7 -0
  40. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Textarea.js +95 -0
  41. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Textarea.js.map +7 -0
  42. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_theme.js +45 -0
  43. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_theme.js.map +7 -0
  44. package/template/node_modules/.vite/deps/_metadata.json +151 -0
  45. package/template/node_modules/.vite/deps/chunk-4TLBUCVB.js +1004 -0
  46. package/template/node_modules/.vite/deps/chunk-4TLBUCVB.js.map +7 -0
  47. package/template/node_modules/.vite/deps/chunk-BAG6OO6S.js +115 -0
  48. package/template/node_modules/.vite/deps/chunk-BAG6OO6S.js.map +7 -0
  49. package/template/node_modules/.vite/deps/chunk-CNYJBM5F.js +21 -0
  50. package/template/node_modules/.vite/deps/chunk-CNYJBM5F.js.map +7 -0
  51. package/template/node_modules/.vite/deps/chunk-CQ3GYAYB.js +112 -0
  52. package/template/node_modules/.vite/deps/chunk-CQ3GYAYB.js.map +7 -0
  53. package/template/node_modules/.vite/deps/chunk-EGRHWZRV.js +1 -0
  54. package/template/node_modules/.vite/deps/chunk-EGRHWZRV.js.map +7 -0
  55. package/template/node_modules/.vite/deps/chunk-EVJ3DVH5.js +628 -0
  56. package/template/node_modules/.vite/deps/chunk-EVJ3DVH5.js.map +7 -0
  57. package/template/node_modules/.vite/deps/chunk-ILHRZGIS.js +46 -0
  58. package/template/node_modules/.vite/deps/chunk-ILHRZGIS.js.map +7 -0
  59. package/template/node_modules/.vite/deps/chunk-KFGKZMLK.js +280 -0
  60. package/template/node_modules/.vite/deps/chunk-KFGKZMLK.js.map +7 -0
  61. package/template/node_modules/.vite/deps/chunk-PTVT3RFX.js +292 -0
  62. package/template/node_modules/.vite/deps/chunk-PTVT3RFX.js.map +7 -0
  63. package/template/node_modules/.vite/deps/chunk-QPJAV452.js +13 -0
  64. package/template/node_modules/.vite/deps/chunk-QPJAV452.js.map +7 -0
  65. package/template/node_modules/.vite/deps/chunk-SGWD4VEU.js +15195 -0
  66. package/template/node_modules/.vite/deps/chunk-SGWD4VEU.js.map +7 -0
  67. package/template/node_modules/.vite/deps/chunk-XB525PXG.js +4480 -0
  68. package/template/node_modules/.vite/deps/chunk-XB525PXG.js.map +7 -0
  69. package/template/node_modules/.vite/deps/chunk-YOJ6QPGS.js +231 -0
  70. package/template/node_modules/.vite/deps/chunk-YOJ6QPGS.js.map +7 -0
  71. package/template/node_modules/.vite/deps/clsx.js +10 -0
  72. package/template/node_modules/.vite/deps/clsx.js.map +7 -0
  73. package/template/node_modules/.vite/deps/embla-carousel-react.js +1712 -0
  74. package/template/node_modules/.vite/deps/embla-carousel-react.js.map +7 -0
  75. package/template/node_modules/.vite/deps/embla-carousel-wheel-gestures.js +589 -0
  76. package/template/node_modules/.vite/deps/embla-carousel-wheel-gestures.js.map +7 -0
  77. package/template/node_modules/.vite/deps/package.json +3 -0
  78. package/template/node_modules/.vite/deps/react-dom.js +7 -0
  79. package/template/node_modules/.vite/deps/react-dom.js.map +7 -0
  80. package/template/node_modules/.vite/deps/react-dom_client.js +20217 -0
  81. package/template/node_modules/.vite/deps/react-dom_client.js.map +7 -0
  82. package/template/node_modules/.vite/deps/react.js +6 -0
  83. package/template/node_modules/.vite/deps/react.js.map +7 -0
  84. package/template/node_modules/.vite/deps/react_jsx-dev-runtime.js +278 -0
  85. package/template/node_modules/.vite/deps/react_jsx-dev-runtime.js.map +7 -0
  86. package/template/node_modules/.vite/deps/react_jsx-runtime.js +7 -0
  87. package/template/node_modules/.vite/deps/react_jsx-runtime.js.map +7 -0
  88. package/template/node_modules/.vite/deps/tailwind-merge.js +3095 -0
  89. package/template/node_modules/.vite/deps/tailwind-merge.js.map +7 -0
  90. package/template/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -0
  91. package/template/src/components/album/album-card.tsx +3 -1
  92. package/template/src/components/album/albums.test.tsx +47 -0
  93. package/template/src/components/album/albums.tsx +15 -2
  94. package/template/src/components/album/fullscreen-viewer.test.tsx +30 -1
  95. package/template/src/components/album/fullscreen-viewer.tsx +17 -3
  96. package/template/src/components/card/card.tsx +3 -0
  97. package/template/src/components/resources/albums-resource.test.tsx +81 -0
  98. package/template/src/components/resources/albums-resource.tsx +18 -1
  99. package/template/src/components/resources/carousel-resource.test.tsx +156 -0
  100. package/template/src/components/resources/carousel-resource.tsx +17 -2
  101. package/template/src/components/resources/counter-resource.test.tsx +116 -0
  102. package/template/src/components/resources/counter-resource.tsx +30 -5
  103. /package/template/{.prettierignore → _prettierignore} +0 -0
  104. /package/template/{.prettierrc → _prettierrc} +0 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../node_modules/.pnpm/wheel-gestures@2.2.48/node_modules/wheel-gestures/src/utils/projection.ts", "../../../../node_modules/.pnpm/wheel-gestures@2.2.48/node_modules/wheel-gestures/src/utils/index.ts", "../../../../node_modules/.pnpm/wheel-gestures@2.2.48/node_modules/wheel-gestures/src/events/EventBus.ts", "../../../../node_modules/.pnpm/wheel-gestures@2.2.48/node_modules/wheel-gestures/src/events/WheelTargetObserver.ts", "../../../../node_modules/.pnpm/wheel-gestures@2.2.48/node_modules/wheel-gestures/src/wheel-normalizer/wheel-normalizer.ts", "../../../../node_modules/.pnpm/wheel-gestures@2.2.48/node_modules/wheel-gestures/src/wheel-gestures/constants.ts", "../../../../node_modules/.pnpm/wheel-gestures@2.2.48/node_modules/wheel-gestures/src/wheel-gestures/options.ts", "../../../../node_modules/.pnpm/wheel-gestures@2.2.48/node_modules/wheel-gestures/src/wheel-gestures/state.ts", "../../../../node_modules/.pnpm/wheel-gestures@2.2.48/node_modules/wheel-gestures/src/wheel-gestures/wheel-gestures.ts", "../../../../node_modules/.pnpm/embla-carousel-wheel-gestures@8.1.0_embla-carousel@8.6.0/node_modules/embla-carousel-wheel-gestures/src/WheelGesturesPlugin.ts"],
4
+ "sourcesContent": ["const DECAY = 0.996\n\n/**\n * movement projection based on velocity\n * @param velocityPxMs\n * @param decay\n */\nexport const projection = (velocityPxMs: number, decay = DECAY) => (velocityPxMs * decay) / (1 - decay)\n", "export * from './projection'\n\nexport function lastOf<T>(array: T[]) {\n return array[array.length - 1]\n}\n\nexport function average(numbers: number[]) {\n return numbers.reduce((a, b) => a + b) / numbers.length\n}\n\nexport const clamp = (value: number, min: number, max: number) => Math.min(Math.max(min, value), max)\n\nexport function addVectors<T extends number[]>(v1: T, v2: T): T {\n if (v1.length !== v2.length) {\n throw new Error('vectors must be same length')\n }\n return v1.map((val, i) => val + v2[i]) as T\n}\n\nexport function absMax(numbers: number[]) {\n return Math.max(...numbers.map(Math.abs))\n}\n\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function deepFreeze<T extends object>(o: T): Readonly<T> {\n Object.freeze(o)\n Object.values(o).forEach((value) => {\n if (value !== null && typeof value === 'object' && !Object.isFrozen(value)) {\n deepFreeze(value)\n }\n })\n return o\n}\n", "import { deepFreeze } from '../utils'\n\nexport type EventMapEmpty = Record<string, unknown>\nexport type EventListener<D = unknown> = (data: D) => void\nexport type Off = () => void\n\nexport default function EventBus<EventMap = EventMapEmpty>() {\n const listeners = {} as Record<keyof EventMap, EventListener<never>[]>\n\n function on<EK extends keyof EventMap>(type: EK, listener: EventListener<EventMap[EK]>): Off {\n listeners[type] = (listeners[type] || []).concat(listener)\n return () => off(type, listener)\n }\n\n function off<EK extends keyof EventMap>(type: EK, listener: EventListener<EventMap[EK]>) {\n listeners[type] = (listeners[type] || []).filter((l) => l !== listener)\n }\n\n function dispatch<EK extends keyof EventMap>(type: EK, data: EventMap[EK]) {\n if (!(type in listeners)) return\n ;(listeners[type] as EventListener<EventMap[EK]>[]).forEach((l) => l(data))\n }\n\n return deepFreeze({\n on,\n off,\n dispatch,\n })\n}\n", "import { WheelEventData } from '../types'\nimport { deepFreeze } from '../utils'\n\ntype UnobserveTarget = () => void\n\nexport function WheelTargetObserver(eventListener: (wheelEvent: WheelEventData) => void) {\n let targets: EventTarget[] = []\n\n // add event listener to target element\n const observe = (target: EventTarget): UnobserveTarget => {\n target.addEventListener('wheel', eventListener as EventListener, { passive: false })\n targets.push(target)\n\n return () => unobserve(target)\n }\n\n /// remove event listener from target element\n const unobserve = (target: EventTarget) => {\n target.removeEventListener('wheel', eventListener as EventListener)\n targets = targets.filter((t) => t !== target)\n }\n\n // stops watching all of its target elements for visibility changes.\n const disconnect = () => {\n targets.forEach(unobserve)\n }\n\n return deepFreeze({\n observe,\n unobserve,\n disconnect,\n })\n}\n", "import { ReverseSign, VectorXYZ, WheelEventData } from '../types'\nimport { clamp } from '../utils'\n\nexport interface NormalizedWheel {\n axisDelta: VectorXYZ\n timeStamp: number\n}\n\nconst LINE_HEIGHT = 16 * 1.125\nconst PAGE_HEIGHT = (typeof window !== 'undefined' && window.innerHeight) || 800\nconst DELTA_MODE_UNIT = [1, LINE_HEIGHT, PAGE_HEIGHT]\n\nexport function normalizeWheel(e: WheelEventData): NormalizedWheel {\n const deltaX = e.deltaX * DELTA_MODE_UNIT[e.deltaMode]\n const deltaY = e.deltaY * DELTA_MODE_UNIT[e.deltaMode]\n const deltaZ = (e.deltaZ || 0) * DELTA_MODE_UNIT[e.deltaMode]\n\n return {\n timeStamp: e.timeStamp,\n axisDelta: [deltaX, deltaY, deltaZ],\n }\n}\n\nconst reverseAll = [-1, -1, -1]\n\nexport function reverseAxisDeltaSign<T extends Pick<NormalizedWheel, 'axisDelta'>>(\n wheel: T,\n reverseSign: ReverseSign\n): T {\n if (!reverseSign) {\n return wheel\n }\n\n const multipliers = reverseSign === true ? reverseAll : reverseSign.map((shouldReverse) => (shouldReverse ? -1 : 1))\n\n return {\n ...wheel,\n axisDelta: wheel.axisDelta.map((delta, i) => delta * multipliers[i]),\n }\n}\n\nconst DELTA_MAX_ABS = 700\n\nexport const clampAxisDelta = <T extends Pick<NormalizedWheel, 'axisDelta'>>(wheel: T) => {\n return {\n ...wheel,\n axisDelta: wheel.axisDelta.map((delta) => clamp(delta, -DELTA_MAX_ABS, DELTA_MAX_ABS)),\n }\n}\n", "export const __DEV__ = process.env.NODE_ENV !== 'production'\nexport const ACC_FACTOR_MIN = 0.6\nexport const ACC_FACTOR_MAX = 0.96\nexport const WHEELEVENTS_TO_MERGE = 2\nexport const WHEELEVENTS_TO_ANALAZE = 5\n", "import { WheelGesturesConfig } from '../types'\nimport { deepFreeze } from '../utils'\n\nexport const configDefaults: WheelGesturesConfig = deepFreeze({\n preventWheelAction: true,\n reverseSign: [true, true, false],\n})\n", "/**\n * the timeout is automatically adjusted during a gesture\n * the initial timeout period is pretty long, so even old mouses, which emit wheel events less often, can produce a continuous gesture\n */\nimport { WheelGesturesInternalState } from './internal-types'\n\nconst WILL_END_TIMEOUT_DEFAULT = 400\n\nexport function createWheelGesturesState(): WheelGesturesInternalState {\n return {\n isStarted: false,\n isStartPublished: false,\n isMomentum: false,\n startTime: 0,\n lastAbsDelta: Infinity,\n axisMovement: [0, 0, 0],\n axisVelocity: [0, 0, 0],\n accelerationFactors: [],\n scrollPoints: [],\n scrollPointsToMerge: [],\n willEndTimeout: WILL_END_TIMEOUT_DEFAULT,\n }\n}\n", "import EventBus from '../events/EventBus'\nimport { WheelTargetObserver } from '../events/WheelTargetObserver'\nimport {\n VectorXYZ,\n WheelEventData,\n WheelEventState,\n WheelGesturesConfig,\n WheelGesturesEventMap,\n WheelGesturesOptions,\n} from '../types'\nimport { absMax, addVectors, average, deepFreeze, lastOf, projection } from '../utils'\nimport { clampAxisDelta, normalizeWheel, reverseAxisDeltaSign } from '../wheel-normalizer/wheel-normalizer'\nimport { __DEV__, ACC_FACTOR_MAX, ACC_FACTOR_MIN, WHEELEVENTS_TO_ANALAZE, WHEELEVENTS_TO_MERGE } from './constants'\nimport { configDefaults } from './options'\nimport { createWheelGesturesState } from './state'\n\nexport function WheelGestures(optionsParam: WheelGesturesOptions = {}) {\n const { on, off, dispatch } = EventBus<WheelGesturesEventMap>()\n let config = configDefaults\n let state = createWheelGesturesState()\n let currentEvent: WheelEventData\n let negativeZeroFingerUpSpecialEvent = false\n let prevWheelEventState: WheelEventState | undefined\n\n const feedWheel = (wheelEvents: WheelEventData | WheelEventData[]) => {\n if (Array.isArray(wheelEvents)) {\n wheelEvents.forEach((wheelEvent) => processWheelEventData(wheelEvent))\n } else {\n processWheelEventData(wheelEvents)\n }\n }\n\n const updateOptions = (newOptions: WheelGesturesOptions = {}): WheelGesturesConfig => {\n if (Object.values(newOptions).some((option) => option === undefined || option === null)) {\n __DEV__ && console.error('updateOptions ignored! undefined & null options not allowed')\n return config\n }\n return (config = deepFreeze({ ...configDefaults, ...config, ...newOptions }))\n }\n\n const publishWheel = (additionalData?: Partial<WheelEventState>) => {\n const wheelEventState: WheelEventState = {\n event: currentEvent,\n isStart: false,\n isEnding: false,\n isMomentumCancel: false,\n isMomentum: state.isMomentum,\n axisDelta: [0, 0, 0],\n axisVelocity: state.axisVelocity,\n axisMovement: state.axisMovement,\n get axisMovementProjection() {\n return addVectors(\n wheelEventState.axisMovement,\n wheelEventState.axisVelocity.map((velocity) => projection(velocity)) as VectorXYZ\n )\n },\n ...additionalData,\n }\n\n dispatch('wheel', {\n ...wheelEventState,\n previous: prevWheelEventState,\n })\n\n // keep reference without previous, otherwise we would create a long chain\n prevWheelEventState = wheelEventState\n }\n\n // should prevent when there is mainly movement on the desired axis\n const shouldPreventDefault = (deltaMaxAbs: number, axisDelta: VectorXYZ): boolean => {\n const { preventWheelAction } = config\n const [deltaX, deltaY, deltaZ] = axisDelta\n\n if (typeof preventWheelAction === 'boolean') return preventWheelAction\n\n switch (preventWheelAction) {\n case 'x':\n return Math.abs(deltaX) >= deltaMaxAbs\n case 'y':\n return Math.abs(deltaY) >= deltaMaxAbs\n case 'z':\n return Math.abs(deltaZ) >= deltaMaxAbs\n default:\n __DEV__ && console.warn('unsupported preventWheelAction value: ' + preventWheelAction, 'warn')\n return false\n }\n }\n\n const processWheelEventData = (wheelEvent: WheelEventData) => {\n const { axisDelta, timeStamp } = clampAxisDelta(\n reverseAxisDeltaSign(normalizeWheel(wheelEvent), config.reverseSign)\n )\n const deltaMaxAbs = absMax(axisDelta)\n\n if (wheelEvent.preventDefault && shouldPreventDefault(deltaMaxAbs, axisDelta)) {\n wheelEvent.preventDefault()\n }\n\n if (!state.isStarted) {\n start()\n }\n // check if user started scrolling again -> cancel\n else if (state.isMomentum && deltaMaxAbs > Math.max(2, state.lastAbsDelta * 2)) {\n end(true)\n start()\n }\n\n // special finger up event on windows + blink\n if (deltaMaxAbs === 0 && Object.is && Object.is(wheelEvent.deltaX, -0)) {\n negativeZeroFingerUpSpecialEvent = true\n // return -> zero delta event should not influence velocity\n return\n }\n\n currentEvent = wheelEvent\n state.axisMovement = addVectors(state.axisMovement, axisDelta)\n state.lastAbsDelta = deltaMaxAbs\n state.scrollPointsToMerge.push({\n axisDelta,\n timeStamp,\n })\n\n mergeScrollPointsCalcVelocity()\n\n // only wheel event (move) and not start/end get the delta values\n publishWheel({ axisDelta, isStart: !state.isStartPublished }) // state.isMomentum ? MOMENTUM_WHEEL : WHEEL, { axisDelta })\n\n // publish start after velocity etc. have been updated\n state.isStartPublished = true\n\n // calc debounced end function, to recognize end of wheel event stream\n willEnd()\n }\n\n const mergeScrollPointsCalcVelocity = () => {\n if (state.scrollPointsToMerge.length === WHEELEVENTS_TO_MERGE) {\n state.scrollPoints.unshift({\n axisDeltaSum: state.scrollPointsToMerge.map((b) => b.axisDelta).reduce(addVectors),\n timeStamp: average(state.scrollPointsToMerge.map((b) => b.timeStamp)),\n })\n\n // only update velocity after a merged scrollpoint was generated\n updateVelocity()\n\n // reset toMerge array\n state.scrollPointsToMerge.length = 0\n\n // after calculation of velocity only keep the most recent merged scrollPoint\n state.scrollPoints.length = 1\n\n if (!state.isMomentum) {\n detectMomentum()\n }\n } else if (!state.isStartPublished) {\n updateStartVelocity()\n }\n }\n\n const updateStartVelocity = () => {\n state.axisVelocity = lastOf(state.scrollPointsToMerge).axisDelta.map((d) => d / state.willEndTimeout) as VectorXYZ\n }\n\n const updateVelocity = () => {\n // need to have two recent points to calc velocity\n const [latestScrollPoint, prevScrollPoint] = state.scrollPoints\n\n if (!prevScrollPoint || !latestScrollPoint) {\n return\n }\n\n // time delta\n const deltaTime = latestScrollPoint.timeStamp - prevScrollPoint.timeStamp\n\n if (deltaTime <= 0) {\n __DEV__ && console.warn('invalid deltaTime')\n return\n }\n\n // calc the velocity per axes\n const velocity = latestScrollPoint.axisDeltaSum.map((d) => d / deltaTime) as VectorXYZ\n\n // calc the acceleration factor per axis\n const accelerationFactor = velocity.map((v, i) => v / (state.axisVelocity[i] || 1))\n\n state.axisVelocity = velocity\n state.accelerationFactors.push(accelerationFactor)\n\n updateWillEndTimeout(deltaTime)\n }\n\n const updateWillEndTimeout = (deltaTime: number) => {\n // use current time between events rounded up and increased by a bit as timeout\n let newTimeout = Math.ceil(deltaTime / 10) * 10 * 1.2\n\n // double the timeout, when momentum was not detected yet\n if (!state.isMomentum) {\n newTimeout = Math.max(100, newTimeout * 2)\n }\n\n state.willEndTimeout = Math.min(1000, Math.round(newTimeout))\n }\n\n const accelerationFactorInMomentumRange = (accFactor: number) => {\n // when main axis is the the other one and there is no movement/change on the current one\n if (accFactor === 0) return true\n return accFactor <= ACC_FACTOR_MAX && accFactor >= ACC_FACTOR_MIN\n }\n\n const detectMomentum = () => {\n if (state.accelerationFactors.length >= WHEELEVENTS_TO_ANALAZE) {\n if (negativeZeroFingerUpSpecialEvent) {\n negativeZeroFingerUpSpecialEvent = false\n\n if (absMax(state.axisVelocity) >= 0.2) {\n recognizedMomentum()\n return\n }\n }\n\n const recentAccelerationFactors = state.accelerationFactors.slice(WHEELEVENTS_TO_ANALAZE * -1)\n\n // check recent acceleration / deceleration factors\n // all recent need to match, if any did not match\n const detectedMomentum = recentAccelerationFactors.every((accFac) => {\n // when both axis decelerate exactly in the same rate it is very likely caused by momentum\n const sameAccFac = !!accFac.reduce((f1, f2) => (f1 && f1 < 1 && f1 === f2 ? 1 : 0))\n\n // check if acceleration factor is within momentum range\n const bothAreInRangeOrZero = accFac.filter(accelerationFactorInMomentumRange).length === accFac.length\n\n // one the requirements must be fulfilled\n return sameAccFac || bothAreInRangeOrZero\n })\n\n if (detectedMomentum) {\n recognizedMomentum()\n }\n\n // only keep the most recent events\n state.accelerationFactors = recentAccelerationFactors\n }\n }\n\n const recognizedMomentum = () => {\n state.isMomentum = true\n }\n\n const start = () => {\n state = createWheelGesturesState()\n state.isStarted = true\n state.startTime = Date.now()\n prevWheelEventState = undefined\n negativeZeroFingerUpSpecialEvent = false\n }\n\n const willEnd = (() => {\n let willEndId: number\n return () => {\n clearTimeout(willEndId)\n willEndId = setTimeout(end, state.willEndTimeout)\n }\n })()\n\n const end = (isMomentumCancel = false) => {\n if (!state.isStarted) return\n\n if (state.isMomentum && isMomentumCancel) {\n publishWheel({ isEnding: true, isMomentumCancel: true })\n } else {\n publishWheel({ isEnding: true })\n }\n\n state.isMomentum = false\n state.isStarted = false\n }\n\n const { observe, unobserve, disconnect } = WheelTargetObserver(feedWheel)\n\n updateOptions(optionsParam)\n\n return deepFreeze({\n on,\n off,\n observe,\n unobserve,\n disconnect,\n feedWheel,\n updateOptions,\n })\n}\n", "import { CreateOptionsType, CreatePluginType, EmblaCarouselType, OptionsHandlerType } from 'embla-carousel'\nimport WheelGestures, { WheelEventState } from 'wheel-gestures'\n\nexport type WheelGesturesPluginOptions = CreateOptionsType<{\n wheelDraggingClass: string\n forceWheelAxis?: 'x' | 'y'\n target?: Element\n}>\n\ntype WheelGesturesPluginType = CreatePluginType<{}, WheelGesturesPluginOptions>\n\nconst defaultOptions: WheelGesturesPluginOptions = {\n active: true,\n breakpoints: {},\n wheelDraggingClass: 'is-wheel-dragging',\n forceWheelAxis: undefined,\n target: undefined,\n}\n\nWheelGesturesPlugin.globalOptions = undefined as WheelGesturesPluginType['options'] | undefined\n\nconst __DEV__ = process.env.NODE_ENV !== 'production'\n\nexport function WheelGesturesPlugin(userOptions: WheelGesturesPluginType['options'] = {}): WheelGesturesPluginType {\n let options: WheelGesturesPluginOptions\n let cleanup = () => {}\n\n function init(embla: EmblaCarouselType, optionsHandler: OptionsHandlerType) {\n const { mergeOptions, optionsAtMedia } = optionsHandler\n const optionsBase = mergeOptions(defaultOptions, WheelGesturesPlugin.globalOptions)\n const allOptions = mergeOptions(optionsBase, userOptions)\n options = optionsAtMedia(allOptions)\n\n const engine = embla.internalEngine()\n const targetNode = options.target ?? (embla.containerNode().parentNode as Element)\n const wheelAxis = options.forceWheelAxis ?? engine.options.axis\n const wheelGestures = WheelGestures({\n preventWheelAction: wheelAxis,\n reverseSign: [true, true, false],\n })\n\n function updateSizeRelatedVariables() {\n scrollBoundaryThreshold = (wheelAxis === 'x' ? engine.containerRect.width : engine.containerRect.height) / 2\n }\n\n const unobserveTargetNode = wheelGestures.observe(targetNode)\n const offWheel = wheelGestures.on('wheel', handleWheel)\n\n let isStarted = false\n let startEvent: MouseEvent\n let overBoundaryAccumulation = 0\n let scrollBoundaryThreshold = 0\n let blockedWaitUntilGestureEnd = false\n\n updateSizeRelatedVariables()\n embla.on('resize', updateSizeRelatedVariables)\n\n function wheelGestureStarted(state: WheelEventState) {\n try {\n startEvent = new MouseEvent('mousedown', state.event)\n dispatchEvent(startEvent)\n } catch (e) {\n // Legacy Browsers like IE 10 & 11 will throw when attempting to create the Event\n if (__DEV__) {\n console.warn(\n 'Legacy browser requires events-polyfill (https://github.com/xiel/embla-carousel-wheel-gestures#legacy-browsers)'\n )\n }\n return cleanup()\n }\n\n isStarted = true\n overBoundaryAccumulation = 0\n addNativeMouseEventListeners()\n\n if (options.wheelDraggingClass) {\n targetNode.classList.add(options.wheelDraggingClass)\n }\n }\n\n function wheelGestureEnded(state: WheelEventState) {\n isStarted = false\n dispatchEvent(createRelativeMouseEvent('mouseup', state))\n removeNativeMouseEventListeners()\n\n if (options.wheelDraggingClass) {\n targetNode.classList.remove(options.wheelDraggingClass)\n }\n }\n\n function addNativeMouseEventListeners() {\n document.documentElement.addEventListener('mousemove', preventNativeMouseHandler, true)\n document.documentElement.addEventListener('mouseup', preventNativeMouseHandler, true)\n document.documentElement.addEventListener('mousedown', preventNativeMouseHandler, true)\n }\n\n function removeNativeMouseEventListeners() {\n document.documentElement.removeEventListener('mousemove', preventNativeMouseHandler, true)\n document.documentElement.removeEventListener('mouseup', preventNativeMouseHandler, true)\n document.documentElement.removeEventListener('mousedown', preventNativeMouseHandler, true)\n }\n\n function preventNativeMouseHandler(e: MouseEvent) {\n if (isStarted && e.isTrusted) {\n e.stopImmediatePropagation()\n }\n }\n\n function createRelativeMouseEvent(type: 'mousedown' | 'mousemove' | 'mouseup', state: WheelEventState) {\n let moveX, moveY\n\n if (wheelAxis === engine.options.axis) {\n ;[moveX, moveY] = state.axisMovement\n } else {\n // if emblas axis and the wheelAxis don't match, swap the axes to match the right embla events\n ;[moveY, moveX] = state.axisMovement\n }\n\n const { isAtBoundary } = checkIfAtBoundary(state)\n\n // Apply progressive rubber band damping when at boundaries\n if (isAtBoundary) {\n // Calculate progressive damping factor based on how far over boundary we are\n const progressRatio = Math.min(overBoundaryAccumulation / scrollBoundaryThreshold, 1)\n const dampingFactor = 0.25 + progressRatio * 0.5\n const counterMoveSign = moveX > 0 ? -1 : 1\n const counterMovement = overBoundaryAccumulation * counterMoveSign\n const dampingMovement = counterMovement * dampingFactor\n\n moveX += dampingMovement\n moveY += dampingMovement\n }\n\n // prevent skipping slides\n if (!engine.options.skipSnaps && !engine.options.dragFree) {\n const maxX = engine.containerRect.width\n const maxY = engine.containerRect.height\n\n moveX = moveX < 0 ? Math.max(moveX, -maxX) : Math.min(moveX, maxX)\n moveY = moveY < 0 ? Math.max(moveY, -maxY) : Math.min(moveY, maxY)\n }\n\n return new MouseEvent(type, {\n clientX: startEvent.clientX + moveX,\n clientY: startEvent.clientY + moveY,\n screenX: startEvent.screenX + moveX,\n screenY: startEvent.screenY + moveY,\n movementX: moveX,\n movementY: moveY,\n button: 0,\n bubbles: true,\n cancelable: true,\n composed: true,\n })\n }\n\n function dispatchEvent(event: UIEvent) {\n embla.containerNode().dispatchEvent(event)\n }\n\n function checkIfAtBoundary(state: WheelEventState) {\n const {\n axisDelta: [deltaX, deltaY],\n } = state\n const scrollProgress = embla.scrollProgress()\n const canScrollNext = scrollProgress < 1\n const canScrollPrev = scrollProgress > 0\n const primaryAxisDelta = wheelAxis === 'x' ? deltaX : deltaY\n const isScrollingNext = primaryAxisDelta < 0\n const isScrollingPrev = primaryAxisDelta > 0\n const isAtBoundary = (isScrollingNext && !canScrollNext) || (isScrollingPrev && !canScrollPrev)\n\n return {\n isAtBoundary,\n primaryAxisDelta,\n }\n }\n\n function isBoundaryThresholdReached(state: WheelEventState) {\n const { isAtBoundary, primaryAxisDelta } = checkIfAtBoundary(state)\n\n if (isAtBoundary && !state.isMomentum) {\n overBoundaryAccumulation += Math.abs(primaryAxisDelta)\n\n // End gesture if we exceed the threshold\n if (overBoundaryAccumulation > scrollBoundaryThreshold) {\n blockedWaitUntilGestureEnd = true\n wheelGestureEnded(state)\n return true\n }\n } else {\n // Reset accumulation when we can scroll or when not at boundary\n overBoundaryAccumulation = 0\n }\n\n return false\n }\n\n function handleWheel(state: WheelEventState) {\n const {\n axisDelta: [deltaX, deltaY],\n } = state\n const primaryAxisDelta = wheelAxis === 'x' ? deltaX : deltaY\n const crossAxisDelta = wheelAxis === 'x' ? deltaY : deltaX\n const isRelease = state.isMomentum && state.previous && !state.previous.isMomentum\n const isEndingOrRelease = (state.isEnding && !state.isMomentum) || isRelease\n const primaryAxisDeltaIsDominant = Math.abs(primaryAxisDelta) > Math.abs(crossAxisDelta)\n\n if (primaryAxisDeltaIsDominant && !isStarted && !state.isMomentum && !blockedWaitUntilGestureEnd) {\n wheelGestureStarted(state)\n }\n\n if (blockedWaitUntilGestureEnd && state.isEnding) {\n blockedWaitUntilGestureEnd = false\n }\n\n if (!isStarted) return\n\n if (isBoundaryThresholdReached(state)) return\n\n if (isEndingOrRelease) {\n wheelGestureEnded(state)\n } else {\n dispatchEvent(createRelativeMouseEvent('mousemove', state))\n }\n }\n\n cleanup = () => {\n unobserveTargetNode()\n offWheel()\n embla.off('resize', updateSizeRelatedVariables)\n removeNativeMouseEventListeners()\n }\n }\n\n const self: WheelGesturesPluginType = {\n name: 'wheelGestures',\n options: userOptions,\n init,\n destroy: () => cleanup(),\n }\n return self\n}\n\ndeclare module 'embla-carousel' {\n interface EmblaPluginsType {\n wheelGestures?: WheelGesturesPluginType\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA,IAAMA,QAAQ;IAODC,aAAa,SAAbA,YAAcC,cAAsBC,OAAvB;AAAA,MAAuBA,UAAvB,QAAA;AAAuBA,YAAQH;EAA/B;AAAA,SAA0CE,eAAeC,SAAU,IAAIA;AAAvE;SCLVC,OAAUC,OAAAA;AACxB,SAAOA,MAAMA,MAAMC,SAAS,CAAhB;AACb;AAED,SAAgBC,QAAQC,SAAAA;AACtB,SAAOA,QAAQC,OAAO,SAACC,GAAGC,GAAJ;AAAA,WAAUD,IAAIC;EAAd,CAAf,IAAkCH,QAAQF;AAClD;AAED,IAAaM,QAAQ,SAARA,OAASC,OAAeC,KAAaC,KAA7B;AAAA,SAA6CC,KAAKF,IAAIE,KAAKD,IAAID,KAAKD,KAAd,GAAsBE,GAA/B;AAA7C;AAErB,SAAgBE,WAA+BC,IAAOC,IAAAA;AACpD,MAAID,GAAGZ,WAAW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MAAM+D,SAASJ;AACxE,UAAMK,oBAAqBhE,MAAMiE,YAAY,CAACjE,MAAM2D,cAAeG;AACnE,UAAMI,6BAA6BtC,KAAKgC,IAAIL,gBAAT,IAA6B3B,KAAKgC,IAAIC,cAAT;AAEhE,UAAIK,8BAA8B,CAACvE,aAAa,CAACK,MAAM2D,cAAc,CAAC7D,4BAA4B;AAChGC,4BAAoBC,KAAD;MACpB;AAED,UAAIF,8BAA8BE,MAAMiE,UAAU;AAChDnE,qCAA6B;MAC9B;AAED,UAAI,CAACH,UAAW;AAEhB,UAAI+D,2BAA2B1D,KAAD,EAAS;AAEvC,UAAIgE,mBAAmB;AACrBtD,0BAAkBV,KAAD;MAClB,OAAM;AACLG,sBAAcQ,yBAAyB,aAAaX,KAAd,CAAzB;MACd;IACF;AAEDlC,cAAU,SAAAA,WAAA;AACRwB,0BAAmB;AACnBE,eAAQ;AACRxB,YAAMmG,IAAI,UAAUlF,0BAApB;AACA2B,sCAA+B;IAChC;EACF;AAED,MAAMwD,OAAgC;IACpCC,MAAM;IACNxG,SAASD;IACTG;IACAuG,SAAS,SAAA,UAAA;AAAA,aAAMxG,QAAO;IAAb;EAJ2B;AAMtC,SAAOsG;AACR;;",
6
+ "names": ["DECAY", "projection", "velocityPxMs", "decay", "lastOf", "array", "length", "average", "numbers", "reduce", "a", "b", "clamp", "value", "min", "max", "Math", "addVectors", "v1", "v2", "Error", "map", "val", "i", "absMax", "abs", "deepFreeze", "o", "Object", "freeze", "values", "forEach", "isFrozen", "EventBus", "listeners", "on", "type", "listener", "concat", "off", "filter", "l", "dispatch", "data", "WheelTargetObserver", "eventListener", "targets", "observe", "target", "addEventListener", "passive", "push", "unobserve", "removeEventListener", "t", "disconnect", "LINE_HEIGHT", "PAGE_HEIGHT", "window", "innerHeight", "DELTA_MODE_UNIT", "normalizeWheel", "e", "deltaX", "deltaMode", "deltaY", "deltaZ", "timeStamp", "axisDelta", "reverseAll", "reverseAxisDeltaSign", "wheel", "reverseSign", "multipliers", "shouldReverse", "delta", "DELTA_MAX_ABS", "clampAxisDelta", "__DEV__", "process", "ACC_FACTOR_MIN", "ACC_FACTOR_MAX", "WHEELEVENTS_TO_MERGE", "WHEELEVENTS_TO_ANALAZE", "configDefaults", "preventWheelAction", "WILL_END_TIMEOUT_DEFAULT", "createWheelGesturesState", "isStarted", "isStartPublished", "isMomentum", "startTime", "lastAbsDelta", "Infinity", "axisMovement", "axisVelocity", "accelerationFactors", "scrollPoints", "scrollPointsToMerge", "willEndTimeout", "WheelGestures", "optionsParam", "config", "state", "currentEvent", "negativeZeroFingerUpSpecialEvent", "prevWheelEventState", "feedWheel", "wheelEvents", "Array", "isArray", "wheelEvent", "processWheelEventData", "updateOptions", "newOptions", "some", "option", "undefined", "console", "error", "publishWheel", "additionalData", "wheelEventState", "event", "isStart", "isEnding", "isMomentumCancel", "axisMovementProjection", "velocity", "previous", "shouldPreventDefault", "deltaMaxAbs", "warn", "preventDefault", "start", "end", "is", "mergeScrollPointsCalcVelocity", "willEnd", "unshift", "axisDeltaSum", "updateVelocity", "detectMomentum", "updateStartVelocity", "d", "latestScrollPoint", "prevScrollPoint", "deltaTime", "accelerationFactor", "v", "updateWillEndTimeout", "newTimeout", "ceil", "round", "accelerationFactorInMomentumRange", "accFactor", "recognizedMomentum", "recentAccelerationFactors", "slice", "detectedMomentum", "every", "accFac", "sameAccFac", "f1", "f2", "bothAreInRangeOrZero", "Date", "now", "willEndId", "clearTimeout", "setTimeout", "defaultOptions", "active", "breakpoints", "wheelDraggingClass", "forceWheelAxis", "undefined", "target", "WheelGesturesPlugin", "globalOptions", "__DEV__", "process", "userOptions", "options", "cleanup", "init", "embla", "optionsHandler", "mergeOptions", "optionsAtMedia", "optionsBase", "allOptions", "engine", "internalEngine", "targetNode", "containerNode", "parentNode", "wheelAxis", "axis", "wheelGestures", "WheelGestures", "preventWheelAction", "reverseSign", "updateSizeRelatedVariables", "scrollBoundaryThreshold", "containerRect", "width", "height", "unobserveTargetNode", "observe", "offWheel", "on", "handleWheel", "isStarted", "startEvent", "overBoundaryAccumulation", "blockedWaitUntilGestureEnd", "wheelGestureStarted", "state", "MouseEvent", "event", "dispatchEvent", "e", "console", "warn", "addNativeMouseEventListeners", "classList", "add", "wheelGestureEnded", "createRelativeMouseEvent", "removeNativeMouseEventListeners", "remove", "document", "documentElement", "addEventListener", "preventNativeMouseHandler", "removeEventListener", "isTrusted", "stopImmediatePropagation", "type", "moveX", "moveY", "axisMovement", "checkIfAtBoundary", "isAtBoundary", "progressRatio", "Math", "min", "dampingFactor", "counterMoveSign", "counterMovement", "dampingMovement", "skipSnaps", "dragFree", "maxX", "maxY", "max", "clientX", "clientY", "screenX", "screenY", "movementX", "movementY", "button", "bubbles", "cancelable", "composed", "axisDelta", "deltaX", "deltaY", "scrollProgress", "canScrollNext", "canScrollPrev", "primaryAxisDelta", "isScrollingNext", "isScrollingPrev", "isBoundaryThresholdReached", "isMomentum", "abs", "crossAxisDelta", "isRelease", "previous", "isEndingOrRelease", "isEnding", "primaryAxisDeltaIsDominant", "off", "self", "name", "destroy"]
7
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,7 @@
1
+ import {
2
+ require_react_dom
3
+ } from "./chunk-KFGKZMLK.js";
4
+ import "./chunk-4TLBUCVB.js";
5
+ import "./chunk-ILHRZGIS.js";
6
+ export default require_react_dom();
7
+ //# sourceMappingURL=react-dom.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }