@curiouslearning/gdl-player-core 1.5.0 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/Image-BolaFg4H.cjs +1 -0
- package/dist/Image-BvZmqug_.js +14 -0
- package/dist/PlayerImage-D1RCTdBY.cjs +1 -0
- package/dist/PlayerImage-Do7_VfFo.js +26 -0
- package/dist/components/Background.d.ts +3 -1
- package/dist/components/LazySvg.d.ts +2 -2
- package/dist/components/Page.d.ts +7 -1
- package/dist/components/Player.d.ts +9 -1
- package/dist/components/PlayerImage.d.ts +20 -0
- package/dist/components/SwipeNav.d.ts +1 -2
- package/dist/context/BookProvider.d.ts +2 -1
- package/dist/{dolottie-BJIvntzd.js → dolottie-C0XP7-PK.js} +42 -53
- package/dist/dolottie-FZVaMI-M.cjs +5 -0
- package/dist/dotlottie-player.wasm +0 -0
- package/dist/index.cjs +3 -3
- package/dist/index.js +1233 -1353
- package/dist/types/context.d.ts +2 -0
- package/dist/utils-D2xWCMio.cjs +1 -0
- package/dist/{utils-B8vKMuMn.js → utils-D36WDE-a.js} +5 -5
- package/package.json +1 -2
- package/dist/Image-D8mWyc98.js +0 -12
- package/dist/Image-DBMEc_qA.cjs +0 -1
- package/dist/dolottie-C7QXtKyz.cjs +0 -5
- package/dist/utils-Cu46IIpo.cjs +0 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as e, i as t, n, r, t as i } from "./utils-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
var x = ":root{--swiper-theme-color:#007aff}:host{z-index:1;margin-left:auto;margin-right:auto;display:block;position:relative}.swiper{z-index:1;margin-left:auto;margin-right:auto;padding:0;list-style:none;display:block;position:relative;overflow:hidden}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{z-index:1;width:100%;height:100%;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box;display:flex;position:relative}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translate(0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;transition-property:transform;display:block;position:relative}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{backface-visibility:hidden;transform:translateZ(0)}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{scrollbar-width:none;-ms-overflow-style:none;overflow:auto}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-slides-offset-before);scroll-margin-inline-start:var(--swiper-slides-offset-before)}.swiper-css-mode.swiper-horizontal>.swiper-wrapper>.swiper-slide:last-child{margin-inline-end:var(--swiper-slides-offset-after)}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-slides-offset-before);scroll-margin-block-start:var(--swiper-slides-offset-before)}.swiper-css-mode.swiper-vertical>.swiper-wrapper>.swiper-slide:last-child{margin-block-end:var(--swiper-slides-offset-after)}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:\"\";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{pointer-events:none;z-index:10;width:100%;height:100%;position:absolute;top:0;left:0}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(270deg,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(90deg,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(#0000,#00000080)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(#00000080,#0000)}.swiper-lazy-preloader{z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-top-color:#0000;border-radius:50%;width:42px;height:42px;margin-top:-21px;margin-left:-21px;position:absolute;top:50%;left:50%}:is(.swiper:not(.swiper-watch-progress),.swiper-watch-progress .swiper-slide-visible) .swiper-lazy-preloader{animation:1s linear infinite swiper-preloader-spin}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.swiper-pagination{text-align:center;z-index:10;transition:opacity .3s;position:absolute;transform:translate(0,0)}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);width:100%;left:0}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{position:relative;transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);display:inline-block}button.swiper-pagination-bullet{box-shadow:none;appearance:none;border:none;margin:0;padding:0}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity,1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translateY(-50%)}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets) .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{width:8px;top:50%;transform:translateY(-50%)}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,top .2s;display:inline-block}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets) .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{white-space:nowrap;left:50%;transform:translate(-50%)}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,left .2s}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,#00000040);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));transform-origin:0 0;width:100%;height:100%;position:absolute;top:0;left:0;transform:scale(0)}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:100% 0}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);top:0;left:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size,4px);height:100%;top:0;left:0}.swiper-pagination-lock{display:none}:host,:root{all:initial;--player-font-family:\"Quicksand\";--swiper-theme-color:#007aff}*,:before,:after{box-sizing:border-box}html,body,div,span,object,iframe,figure,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,code,em,img,small,strike,strong,sub,sup,tt,b,u,i,ol,ul,li,fieldset,form,label,table,caption,tbody,tfoot,thead,tr,th,td,main,canvas,embed,footer,header,nav,section,video{font-size:100%;font:inherit;vertical-align:baseline;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;color:initial;border:0;margin:0;padding:0}footer,header,nav,section,main{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:\"\";content:none}table{border-collapse:collapse;border-spacing:0}input{appearance:none;border-radius:0}audio,canvas,embed,iframe,img,object,svg,video{vertical-align:middle;display:block}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}*,:after,:before{box-sizing:border-box;border:0 solid #d7d8e4}.swiper{width:100%;height:100%}.swiper-slide{background:#fff;justify-content:center;align-items:center;font-size:18px;display:flex}.swiper-slide img{object-fit:cover;width:100%;height:100%;display:block}.player{width:100%;height:100dvh;font-family:var(--player-font-family), sans-serif;background:#fff;font-style:normal;font-weight:700;line-height:1.5;position:relative;overflow:hidden}.player.centered{justify-content:center;align-items:center;display:flex}.player .loader{border:.25rem solid #0000001a;border-top-color:var(--swiper-theme-color,#007aff);border-radius:50%;width:2.5rem;height:2.5rem;animation:.8s linear infinite player-loader-spin}.player .view-box{align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.player .view-box .bg{object-fit:contain;place-self:center;max-width:100%;max-height:100%;display:flex}.player .view-box .pagetext-wrapper{opacity:.8;color:#161e33;z-index:999;background:#e7e9ff;flex-direction:row;justify-content:center;align-items:center;height:clamp(1.875rem,6.9231vw - .6635rem,4.875rem);min-height:max-content;font-size:clamp(1rem,.375rem + 2vw,1.5rem);line-height:1;display:flex;position:absolute;bottom:0;left:0;right:0}.worditem.HL .word{will-change:transform;color:#3345e0;border-color:#3345e0;animation:1s ease-in-out infinite alternate glow;transform:scale(1.15)}.worditem .word{cursor:pointer;letter-spacing:0;border-bottom:2px solid #dcdcdc00;margin:0 2px;padding:0 2px;transition:all .25s ease-in-out;display:inline-block}.worditem :hover{color:#3345e0;border-color:#3345e0;animation:1s ease-in-out infinite alternate glow}.cover-page{flex-direction:column;justify-content:center;align-items:center;height:100%;display:flex}.cover-page .cover-illustration{max-width:20rem;overflow:hidden}.cover-page .cover-illustration img{object-fit:cover;object-position:center}.cover-page .cover-text h1{color:#000;font-size:clamp(1rem,4vw - .25rem,1.75rem);font-weight:700}.cover-page .cover-text small{white-space:pre-wrap;font-size:clamp(.8rem,2vw - .2rem,1rem)}.credits-page{background-color:#f5f3ff;flex-direction:column;align-items:center;width:100%;height:100%;display:flex;overflow:auto}.credits-page .credits-page-inner{background-color:#fff;flex-flow:wrap;justify-content:center;align-items:center;gap:2rem;width:100%;padding:clamp(1.5rem,.25rem + 4vw,2.5rem) clamp(1rem,3vw,3rem);display:flex}.credits-page .credits-page-inner .logo-item{height:clamp(3rem,1.0916rem + 6.1069vw,5rem)}.credits-page .credits-page-inner .logo-item img{max-height:100%}.credits-page .credits-page-bottom{text-align:center;margin-top:.5rem;padding-left:clamp(2.5rem,16.7939vw - 2.7481rem,8rem);padding-right:clamp(2.5rem,16.7939vw - 2.7481rem,8rem)}.credits-page .credits-page-bottom h1{color:#000;padding-top:1rem;padding-bottom:1rem;font-size:clamp(1rem,4vw - .25rem,2rem);font-weight:700}.credits-page .credits-page-bottom small{white-space:pre-wrap;font-size:clamp(.8rem,2vw - .2rem,1rem)}.absolute{position:absolute}.mirror-item{transform:scaleX(-1)}.pageContentWrapper{width:100%;height:100%;display:flex;position:relative;overflow:hidden}.pageContentWrapper.layout-btm-aligned .pagetext-wrapper{width:100%;bottom:0}.page-text-overlay{z-index:10;position:absolute}.pagetext-wrapper{text-align:center;font-weight:700}.pagetext-wrapper .textwrapper-inner{flex:auto;min-width:0;max-width:100%;margin:0 auto;position:relative}.pagetext-wrapper .textcontainer{white-space:normal;word-break:break-word;width:100%;display:block}.page-text-overlay *,.pagetext-wrapper *{color:inherit}.background{width:100%;height:100%}.background img{object-fit:cover;width:100%;height:100%}.lazysvg{display:inline-block}.lazysvg img{z-index:-10;width:100%;max-width:100%;height:100%;max-height:100%}.ui.btn{z-index:50;border-radius:100%;justify-content:center;align-items:center;transition:background-color .1s linear;display:flex;position:absolute;box-shadow:0 12px 16px -8px #3f265833}.ui.btn.audioplay{color:#fff;background:#007737;width:clamp(2.25rem,.2188rem + 6.5vw,3.875rem);height:clamp(2.25rem,.2188rem + 6.5vw,3.875rem);top:1.5%;right:1.5%}.ui.btn.audioplay>svg{margin-left:.25rem}.ui.btn.audioplay:disabled{background:#d7d8e4}.ui.btn.audioplay:active{background:#018d41}.ui.btn.audioplay.playing{color:#9391ac;cursor:default}.ui.btn:active{box-shadow:none}.ui.btn.swipe{color:#5968ec;cursor:pointer;background:#f2f4ff;width:clamp(2.25rem,.2188rem + 6.5vw,3.875rem);height:clamp(2.25rem,.2188rem + 6.5vw,3.875rem);top:45%}.ui.btn.swipe:active{background-color:#dde0ff}.ui.btn:focus-visible{outline-color:#161e33}.ui.btn.swipe.prev{left:1%}.ui.btn.swipe.next{right:1%}.ui.btn.swipe:disabled{cursor:default;background-color:#d7d8e4;transition:background-color .1s linear}.ui.btn.swipe:disabled svg{stroke:#9391ac;fill:#9391ac}[dir=rtl] .ui.btn.audioplay{left:1.5%;right:auto}@keyframes player-loader-spin{to{transform:rotate(360deg)}}", S = (e) => e.replace(/\\/g, "\\\\").replace(/'/g, "\\'"), C = (e = [], t, n) => {
|
|
2
|
+
import { a as e, i as t, n, r, t as i } from "./utils-D36WDE-a.js";
|
|
3
|
+
import { t as a } from "./PlayerImage-Do7_VfFo.js";
|
|
4
|
+
import o, { createContext as s, useCallback as c, useContext as l, useEffect as u, useImperativeHandle as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
5
|
+
import { Swiper as h, SwiperSlide as g, useSwiper as _ } from "swiper/react";
|
|
6
|
+
import { Pagination as v } from "swiper/modules";
|
|
7
|
+
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
8
|
+
// src/components/Player.scss?inline
|
|
9
|
+
var S = ":root{--swiper-theme-color:#007aff}:host{z-index:1;margin-left:auto;margin-right:auto;display:block;position:relative}.swiper{z-index:1;margin-left:auto;margin-right:auto;padding:0;list-style:none;display:block;position:relative;overflow:hidden}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{z-index:1;width:100%;height:100%;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box;display:flex;position:relative}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translate(0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;transition-property:transform;display:block;position:relative}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{backface-visibility:hidden;transform:translateZ(0)}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{scrollbar-width:none;-ms-overflow-style:none;overflow:auto}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-slides-offset-before);scroll-margin-inline-start:var(--swiper-slides-offset-before)}.swiper-css-mode.swiper-horizontal>.swiper-wrapper>.swiper-slide:last-child{margin-inline-end:var(--swiper-slides-offset-after)}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-slides-offset-before);scroll-margin-block-start:var(--swiper-slides-offset-before)}.swiper-css-mode.swiper-vertical>.swiper-wrapper>.swiper-slide:last-child{margin-block-end:var(--swiper-slides-offset-after)}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:\"\";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{pointer-events:none;z-index:10;width:100%;height:100%;position:absolute;top:0;left:0}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(270deg,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(90deg,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(#0000,#00000080)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(#00000080,#0000)}.swiper-lazy-preloader{z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-top-color:#0000;border-radius:50%;width:42px;height:42px;margin-top:-21px;margin-left:-21px;position:absolute;top:50%;left:50%}:is(.swiper:not(.swiper-watch-progress),.swiper-watch-progress .swiper-slide-visible) .swiper-lazy-preloader{animation:1s linear infinite swiper-preloader-spin}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.swiper-pagination{text-align:center;z-index:10;transition:opacity .3s;position:absolute;transform:translate(0,0)}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);width:100%;left:0}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{position:relative;transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);display:inline-block}button.swiper-pagination-bullet{box-shadow:none;appearance:none;border:none;margin:0;padding:0}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity,1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translateY(-50%)}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets) .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{width:8px;top:50%;transform:translateY(-50%)}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,top .2s;display:inline-block}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets) .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{white-space:nowrap;left:50%;transform:translate(-50%)}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,left .2s}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,#00000040);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));transform-origin:0 0;width:100%;height:100%;position:absolute;top:0;left:0;transform:scale(0)}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:100% 0}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);top:0;left:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size,4px);height:100%;top:0;left:0}.swiper-pagination-lock{display:none}:host,:root{all:initial;--player-font-family:\"Quicksand\";--swiper-theme-color:#007aff}*,:before,:after{box-sizing:border-box}html,body,div,span,object,iframe,figure,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,code,em,img,small,strike,strong,sub,sup,tt,b,u,i,ol,ul,li,fieldset,form,label,table,caption,tbody,tfoot,thead,tr,th,td,main,canvas,embed,footer,header,nav,section,video{font-size:100%;font:inherit;vertical-align:baseline;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;color:initial;border:0;margin:0;padding:0}footer,header,nav,section,main{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:\"\";content:none}table{border-collapse:collapse;border-spacing:0}input{appearance:none;border-radius:0}audio,canvas,embed,iframe,img,object,svg,video{vertical-align:middle;display:block}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}*,:after,:before{box-sizing:border-box;border:0 solid #d7d8e4}.swiper{width:100%;height:100%}.swiper-slide{background:#fff;justify-content:center;align-items:center;font-size:18px;display:flex}.swiper-slide img{object-fit:cover;width:100%;height:100%;display:block}.player{width:100%;height:100dvh;font-family:var(--player-font-family), sans-serif;background:#fff;font-style:normal;font-weight:700;line-height:1.5;position:relative;overflow:hidden}.player.centered{justify-content:center;align-items:center;display:flex}.player .loader{border:.25rem solid #0000001a;border-top-color:var(--swiper-theme-color,#007aff);border-radius:50%;width:2.5rem;height:2.5rem;animation:.8s linear infinite player-loader-spin}.player .view-box{align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.player .view-box .bg{object-fit:contain;place-self:center;max-width:100%;max-height:100%;display:flex}.player .view-box .pagetext-wrapper{opacity:.8;color:#161e33;z-index:999;background:#e7e9ff;flex-direction:row;justify-content:center;align-items:center;height:clamp(1.875rem,6.9231vw - .6635rem,4.875rem);min-height:max-content;font-size:clamp(1rem,.375rem + 2vw,1.5rem);line-height:1;display:flex;position:absolute;bottom:0;left:0;right:0}.worditem.HL .word{will-change:transform;color:#3345e0;border-color:#3345e0;animation:1s ease-in-out infinite alternate glow;transform:scale(1.15)}.worditem .word{cursor:pointer;letter-spacing:0;border-bottom:2px solid #dcdcdc00;margin:0 2px;padding:0 2px;transition:all .25s ease-in-out;display:inline-block}.worditem :hover{color:#3345e0;border-color:#3345e0;animation:1s ease-in-out infinite alternate glow}.cover-page{flex-direction:column;justify-content:center;align-items:center;height:100%;display:flex}.cover-page .cover-illustration{max-width:20rem;overflow:hidden}.cover-page .cover-illustration img{object-fit:cover;object-position:center}.cover-page .cover-text h1{color:#000;font-size:clamp(1rem,4vw - .25rem,1.75rem);font-weight:700}.cover-page .cover-text small{white-space:pre-wrap;font-size:clamp(.8rem,2vw - .2rem,1rem)}.credits-page{background-color:#f5f3ff;flex-direction:column;align-items:center;width:100%;height:100%;display:flex;overflow:auto}.credits-page .credits-page-inner{background-color:#fff;flex-flow:wrap;justify-content:center;align-items:center;gap:2rem;width:100%;padding:clamp(1.5rem,.25rem + 4vw,2.5rem) clamp(1rem,3vw,3rem);display:flex}.credits-page .credits-page-inner .logo-item{height:clamp(3rem,1.0916rem + 6.1069vw,5rem)}.credits-page .credits-page-inner .logo-item img{max-height:100%}.credits-page .credits-page-bottom{text-align:center;margin-top:.5rem;padding-left:clamp(2.5rem,16.7939vw - 2.7481rem,8rem);padding-right:clamp(2.5rem,16.7939vw - 2.7481rem,8rem)}.credits-page .credits-page-bottom h1{color:#000;padding-top:1rem;padding-bottom:1rem;font-size:clamp(1rem,4vw - .25rem,2rem);font-weight:700}.credits-page .credits-page-bottom small{white-space:pre-wrap;font-size:clamp(.8rem,2vw - .2rem,1rem)}.absolute{position:absolute}.mirror-item{transform:scaleX(-1)}.pageContentWrapper{width:100%;height:100%;display:flex;position:relative;overflow:hidden}.pageContentWrapper.layout-btm-aligned .pagetext-wrapper{width:100%;bottom:0}.page-text-overlay{z-index:10;position:absolute}.pagetext-wrapper{text-align:center;font-weight:700}.pagetext-wrapper .textwrapper-inner{flex:auto;min-width:0;max-width:100%;margin:0 auto;position:relative}.pagetext-wrapper .textcontainer{white-space:normal;word-break:break-word;width:100%;display:block}.page-text-overlay *,.pagetext-wrapper *{color:inherit}.background{width:100%;height:100%}.background img{object-fit:cover;width:100%;height:100%}.lazysvg{display:inline-block}.lazysvg img{z-index:-10;width:100%;max-width:100%;height:100%;max-height:100%}.ui.btn{z-index:50;border-radius:100%;justify-content:center;align-items:center;transition:background-color .1s linear;display:flex;position:absolute;box-shadow:0 12px 16px -8px #3f265833}.ui.btn.audioplay{color:#fff;background:#007737;width:clamp(2.25rem,.2188rem + 6.5vw,3.875rem);height:clamp(2.25rem,.2188rem + 6.5vw,3.875rem);top:1.5%;right:1.5%}.ui.btn.audioplay>svg{margin-left:.25rem}.ui.btn.audioplay:disabled{background:#d7d8e4}.ui.btn.audioplay:active{background:#018d41}.ui.btn.audioplay.playing{color:#9391ac;cursor:default}.ui.btn:active{box-shadow:none}.ui.btn.swipe{color:#5968ec;cursor:pointer;background:#f2f4ff;width:clamp(2.25rem,.2188rem + 6.5vw,3.875rem);height:clamp(2.25rem,.2188rem + 6.5vw,3.875rem);top:45%}.ui.btn.swipe:active{background-color:#dde0ff}.ui.btn:focus-visible{outline-color:#161e33}.ui.btn.swipe.prev{left:1%}.ui.btn.swipe.next{right:1%}.ui.btn.swipe:disabled{cursor:default;background-color:#d7d8e4;transition:background-color .1s linear}.ui.btn.swipe:disabled svg{stroke:#9391ac;fill:#9391ac}[dir=rtl] .ui.btn.audioplay{left:1.5%;right:auto}@keyframes player-loader-spin{to{transform:rotate(360deg)}}", C = (e) => e.replace(/\\/g, "\\\\").replace(/'/g, "\\'"), w = (e = [], t, n) => {
|
|
9
10
|
if (e.length === 0 || !t && !n) return e;
|
|
10
11
|
if (t) {
|
|
11
12
|
let n = e.filter((e) => e.language && e.language.includes(t));
|
|
@@ -17,34 +18,34 @@ var x = ":root{--swiper-theme-color:#007aff}:host{z-index:1;margin-left:auto;mar
|
|
|
17
18
|
}
|
|
18
19
|
let r = e.filter((e) => e.unicodeRange);
|
|
19
20
|
return r.length > 0 ? r : e;
|
|
20
|
-
},
|
|
21
|
+
}, T = (e = []) => e.map((e) => {
|
|
21
22
|
let t = [
|
|
22
|
-
`font-family: '${
|
|
23
|
-
`src: url('${
|
|
23
|
+
`font-family: '${C(e.family)}';`,
|
|
24
|
+
`src: url('${C(e.url)}');`,
|
|
24
25
|
"font-display: swap;"
|
|
25
26
|
];
|
|
26
27
|
return e.weight && t.push(`font-weight: ${e.weight};`), e.style && t.push(`font-style: ${e.style};`), e.unicodeRange && t.push(`unicode-range: ${e.unicodeRange};`), `@font-face {${t.join("")}}`;
|
|
27
|
-
}).join(""),
|
|
28
|
+
}).join(""), E = {
|
|
28
29
|
color: void 0,
|
|
29
30
|
size: void 0,
|
|
30
31
|
className: void 0,
|
|
31
32
|
style: void 0,
|
|
32
33
|
attr: void 0
|
|
33
|
-
},
|
|
34
|
+
}, D = o.createContext && /*#__PURE__*/ o.createContext(E), ee = [
|
|
34
35
|
"attr",
|
|
35
36
|
"size",
|
|
36
37
|
"title"
|
|
37
38
|
];
|
|
38
|
-
function
|
|
39
|
+
function te(e, t) {
|
|
39
40
|
if (e == null) return {};
|
|
40
|
-
var n, r, i =
|
|
41
|
+
var n, r, i = ne(e, t);
|
|
41
42
|
if (Object.getOwnPropertySymbols) {
|
|
42
43
|
var a = Object.getOwnPropertySymbols(e);
|
|
43
44
|
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
|
|
44
45
|
}
|
|
45
46
|
return i;
|
|
46
47
|
}
|
|
47
|
-
function
|
|
48
|
+
function ne(e, t) {
|
|
48
49
|
if (e == null) return {};
|
|
49
50
|
var n = {};
|
|
50
51
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -62,7 +63,7 @@ function O() {
|
|
|
62
63
|
return e;
|
|
63
64
|
}, O.apply(null, arguments);
|
|
64
65
|
}
|
|
65
|
-
function
|
|
66
|
+
function re(e, t) {
|
|
66
67
|
var n = Object.keys(e);
|
|
67
68
|
if (Object.getOwnPropertySymbols) {
|
|
68
69
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -72,30 +73,30 @@ function k(e, t) {
|
|
|
72
73
|
}
|
|
73
74
|
return n;
|
|
74
75
|
}
|
|
75
|
-
function
|
|
76
|
+
function k(e) {
|
|
76
77
|
for (var t = 1; t < arguments.length; t++) {
|
|
77
78
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
78
|
-
t % 2 ?
|
|
79
|
-
|
|
80
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
79
|
+
t % 2 ? re(Object(n), !0).forEach(function(t) {
|
|
80
|
+
A(e, t, n[t]);
|
|
81
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : re(Object(n)).forEach(function(t) {
|
|
81
82
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
82
83
|
});
|
|
83
84
|
}
|
|
84
85
|
return e;
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
-
return (t =
|
|
87
|
+
function A(e, t, n) {
|
|
88
|
+
return (t = j(t)) in e ? Object.defineProperty(e, t, {
|
|
88
89
|
value: n,
|
|
89
90
|
enumerable: !0,
|
|
90
91
|
configurable: !0,
|
|
91
92
|
writable: !0
|
|
92
93
|
}) : e[t] = n, e;
|
|
93
94
|
}
|
|
94
|
-
function
|
|
95
|
-
var t =
|
|
95
|
+
function j(e) {
|
|
96
|
+
var t = ie(e, "string");
|
|
96
97
|
return typeof t == "symbol" ? t : t + "";
|
|
97
98
|
}
|
|
98
|
-
function
|
|
99
|
+
function ie(e, t) {
|
|
99
100
|
if (typeof e != "object" || !e) return e;
|
|
100
101
|
var n = e[Symbol.toPrimitive];
|
|
101
102
|
if (n !== void 0) {
|
|
@@ -105,33 +106,32 @@ function N(e, t) {
|
|
|
105
106
|
}
|
|
106
107
|
return (t === "string" ? String : Number)(e);
|
|
107
108
|
}
|
|
108
|
-
function
|
|
109
|
-
return e && e.map((e, t) => /*#__PURE__*/
|
|
109
|
+
function M(e) {
|
|
110
|
+
return e && e.map((e, t) => /*#__PURE__*/ o.createElement(e.tag, k({ key: t }, e.attr), M(e.child)));
|
|
110
111
|
}
|
|
111
|
-
function
|
|
112
|
-
return (t) => /*#__PURE__*/
|
|
112
|
+
function N(e) {
|
|
113
|
+
return (t) => /*#__PURE__*/ o.createElement(P, O({ attr: k({}, e.attr) }, t), M(e.child));
|
|
113
114
|
}
|
|
114
|
-
function
|
|
115
|
+
function P(e) {
|
|
115
116
|
var t = (t) => {
|
|
116
|
-
var { attr: n, size: r, title: i } = e,
|
|
117
|
-
return t.className && (c = t.className), e.className && (c = (c ? c + " " : "") + e.className), /*#__PURE__*/
|
|
117
|
+
var { attr: n, size: r, title: i } = e, a = te(e, ee), s = r || t.size || "1em", c;
|
|
118
|
+
return t.className && (c = t.className), e.className && (c = (c ? c + " " : "") + e.className), /*#__PURE__*/ o.createElement("svg", O({
|
|
118
119
|
stroke: "currentColor",
|
|
119
120
|
fill: "currentColor",
|
|
120
121
|
strokeWidth: "0"
|
|
121
|
-
}, t.attr, n,
|
|
122
|
+
}, t.attr, n, a, {
|
|
122
123
|
className: c,
|
|
123
|
-
style:
|
|
124
|
+
style: k(k({ color: e.color || t.color }, t.style), e.style),
|
|
124
125
|
height: s,
|
|
125
126
|
width: s,
|
|
126
127
|
xmlns: "http://www.w3.org/2000/svg"
|
|
127
|
-
}), i && /*#__PURE__*/
|
|
128
|
+
}), i && /*#__PURE__*/ o.createElement("title", null, i), e.children);
|
|
128
129
|
};
|
|
129
|
-
return
|
|
130
|
+
return D === void 0 ? t(E) : /*#__PURE__*/ o.createElement(D.Consumer, null, (e) => t(e));
|
|
130
131
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
return F({
|
|
132
|
+
// node_modules/react-icons/io/index.mjs
|
|
133
|
+
function ae(e) {
|
|
134
|
+
return N({
|
|
135
135
|
tag: "svg",
|
|
136
136
|
attr: { viewBox: "0 0 512 512" },
|
|
137
137
|
child: [{
|
|
@@ -141,8 +141,8 @@ function I(e) {
|
|
|
141
141
|
}]
|
|
142
142
|
})(e);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
return
|
|
144
|
+
function oe(e) {
|
|
145
|
+
return N({
|
|
146
146
|
tag: "svg",
|
|
147
147
|
attr: { viewBox: "0 0 512 512" },
|
|
148
148
|
child: [{
|
|
@@ -152,36 +152,30 @@ function re(e) {
|
|
|
152
152
|
}]
|
|
153
153
|
})(e);
|
|
154
154
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
return /* @__PURE__ */ b("div", {
|
|
155
|
+
// src/components/SwipeNav.tsx
|
|
156
|
+
var se = ({ isFirst: e, isLast: t, activeIndex: n }) => {
|
|
157
|
+
let r = _();
|
|
158
|
+
return /* @__PURE__ */ x("div", {
|
|
160
159
|
className: "swipernavigation",
|
|
161
160
|
"data-index-id": n,
|
|
162
|
-
children: [/* @__PURE__ */
|
|
163
|
-
className: `ui btn swipe prev ${
|
|
164
|
-
disabled:
|
|
165
|
-
"aria-label":
|
|
166
|
-
onClick: () =>
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
a ? i.slidePrev() : i.slideNext();
|
|
175
|
-
},
|
|
176
|
-
className: `ui btn swipe next ${(a ? e : t) ? " disabled" : ""}`,
|
|
177
|
-
children: /* @__PURE__ */ y(I, { size: "75%" })
|
|
161
|
+
children: [/* @__PURE__ */ b("button", {
|
|
162
|
+
className: `ui btn swipe prev ${e ? " disabled" : ""}`,
|
|
163
|
+
disabled: e,
|
|
164
|
+
"aria-label": "Previous page",
|
|
165
|
+
onClick: () => r.slidePrev(),
|
|
166
|
+
children: /* @__PURE__ */ b(oe, { size: "75%" })
|
|
167
|
+
}), /* @__PURE__ */ b("button", {
|
|
168
|
+
disabled: t,
|
|
169
|
+
"aria-label": "Next page",
|
|
170
|
+
onClick: () => r.slideNext(),
|
|
171
|
+
className: `ui btn swipe next ${t ? " disabled" : ""}`,
|
|
172
|
+
children: /* @__PURE__ */ b(ae, { size: "75%" })
|
|
178
173
|
})]
|
|
179
174
|
});
|
|
180
175
|
};
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
return F({
|
|
176
|
+
// node_modules/react-icons/fa/index.mjs
|
|
177
|
+
function ce(e) {
|
|
178
|
+
return N({
|
|
185
179
|
tag: "svg",
|
|
186
180
|
attr: { viewBox: "0 0 448 512" },
|
|
187
181
|
child: [{
|
|
@@ -191,35 +185,33 @@ function ae(e) {
|
|
|
191
185
|
}]
|
|
192
186
|
})(e);
|
|
193
187
|
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
var oe = /* @__PURE__ */ function(e) {
|
|
188
|
+
// src/types/book.ts
|
|
189
|
+
var le = /* @__PURE__ */ function(e) {
|
|
197
190
|
return e[e.BOTTOM = 1] = "BOTTOM", e[e.DYNAMIC = 2] = "DYNAMIC", e;
|
|
198
|
-
}({}),
|
|
199
|
-
let
|
|
200
|
-
return /* @__PURE__ */
|
|
191
|
+
}({}), ue = ({ background: t, eager: r = !1 }) => {
|
|
192
|
+
let i = e();
|
|
193
|
+
return /* @__PURE__ */ b("div", {
|
|
201
194
|
className: "background",
|
|
202
|
-
style: { backgroundColor:
|
|
203
|
-
children:
|
|
204
|
-
src: n(i,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
}), /* @__PURE__ */ y("div", { className: "swiper-lazy-preloader" })] })
|
|
195
|
+
style: { backgroundColor: t.color ?? "transparent" },
|
|
196
|
+
children: t.type === "image" && t.url && /* @__PURE__ */ b(a, {
|
|
197
|
+
src: n(i, t.crop ? t.crop : t),
|
|
198
|
+
eager: r
|
|
199
|
+
})
|
|
208
200
|
});
|
|
209
|
-
},
|
|
210
|
-
let
|
|
211
|
-
|
|
201
|
+
}, de = o.memo(({ segments: t, pageAudio: n, setIsPlaying: i, onWordSelect: a, highlightIds: o, ref: s, textDirection: c = "LTR" }) => {
|
|
202
|
+
let l = p(null), [f, h] = m(!1), g = p([]), _ = e(), v = p(null), S = p(new Audio()), C = p(null), w = () => {
|
|
203
|
+
v.current && clearInterval(v.current);
|
|
212
204
|
let e = () => {
|
|
213
205
|
S.current.pause(), S.current.src = "", h(!0), i(!1);
|
|
214
206
|
};
|
|
215
207
|
C.current ? C.current.then(e).catch(() => {}) : e();
|
|
216
208
|
}, T = () => {
|
|
217
|
-
if (n &&
|
|
209
|
+
if (n && l?.current) {
|
|
218
210
|
h(!1), i(!0);
|
|
219
|
-
let e = Array.from(
|
|
211
|
+
let e = Array.from(l.current.children);
|
|
220
212
|
S.current.src = r(_, n), C.current = S.current.play(), C.current.catch((e) => {
|
|
221
213
|
e.name !== "AbortError" && console.log("audio play error", e);
|
|
222
|
-
}),
|
|
214
|
+
}), v.current = setInterval(() => {
|
|
223
215
|
let n = t.findIndex((e) => S.current.currentTime >= e.start && S.current.currentTime <= e.end);
|
|
224
216
|
if (n > -1) {
|
|
225
217
|
let r = e[n];
|
|
@@ -231,39 +223,39 @@ var oe = /* @__PURE__ */ function(e) {
|
|
|
231
223
|
}
|
|
232
224
|
}
|
|
233
225
|
}, 40), S.current.onended = () => {
|
|
234
|
-
|
|
226
|
+
v.current && clearInterval(v.current), e?.forEach((e) => {
|
|
235
227
|
e.classList.remove("HL");
|
|
236
228
|
}), h(!0), i(!1);
|
|
237
229
|
};
|
|
238
230
|
}
|
|
239
231
|
};
|
|
240
|
-
return
|
|
241
|
-
clearInterval(
|
|
242
|
-
}, []),
|
|
232
|
+
return u(() => () => {
|
|
233
|
+
clearInterval(v.current), S.current.pause(), S.current.src = "";
|
|
234
|
+
}, []), u(() => {
|
|
243
235
|
o && o?.length > 0 && (g?.current[o[0]])?.play();
|
|
244
|
-
}, [o]),
|
|
236
|
+
}, [o]), d(s, () => ({
|
|
245
237
|
onPlay: T,
|
|
246
238
|
onAbortAudio: w
|
|
247
|
-
})), /* @__PURE__ */ y
|
|
248
|
-
ref:
|
|
239
|
+
})), /* @__PURE__ */ b(y, { children: /* @__PURE__ */ b("span", {
|
|
240
|
+
ref: l,
|
|
249
241
|
dir: c.toLowerCase(),
|
|
250
|
-
children: t && t.map((e, n) => e.word === "\\n" || e.word === "/\n" ? /* @__PURE__ */
|
|
242
|
+
children: t && t.map((e, n) => e.word === "\\n" || e.word === "/\n" ? /* @__PURE__ */ b("br", {}, n) : /* @__PURE__ */ x("span", {
|
|
251
243
|
className: `worditem ${o && o.includes(n) ? "HL" : ""}`,
|
|
252
244
|
onClick: () => {
|
|
253
245
|
a && a(e), g?.current[n]?.play();
|
|
254
246
|
},
|
|
255
247
|
children: [
|
|
256
|
-
e.word === "\n" ? /* @__PURE__ */
|
|
248
|
+
e.word === "\n" ? /* @__PURE__ */ b("br", {}) : /* @__PURE__ */ b("span", {
|
|
257
249
|
className: "word",
|
|
258
250
|
children: e.word
|
|
259
251
|
}),
|
|
260
|
-
n < t.length - 1 && /* @__PURE__ */ y
|
|
261
|
-
e.mp3 && /* @__PURE__ */
|
|
252
|
+
n < t.length - 1 && /* @__PURE__ */ b(y, { children: " " }),
|
|
253
|
+
e.mp3 && /* @__PURE__ */ b("audio", {
|
|
262
254
|
preload: "none",
|
|
263
255
|
ref: (e) => {
|
|
264
256
|
g.current[n] = e;
|
|
265
257
|
},
|
|
266
|
-
children: /* @__PURE__ */
|
|
258
|
+
children: /* @__PURE__ */ b("source", {
|
|
267
259
|
src: `${r(_, e)}`,
|
|
268
260
|
type: "audio/mpeg"
|
|
269
261
|
})
|
|
@@ -271,16 +263,16 @@ var oe = /* @__PURE__ */ function(e) {
|
|
|
271
263
|
]
|
|
272
264
|
}, e.uid))
|
|
273
265
|
}) });
|
|
274
|
-
}),
|
|
266
|
+
}), fe = (e) => e / 600 * 100, pe = (e) => e / 1280 * 100, me = ({ item: e, screenScale: t, children: n, onActivate: r }) => {
|
|
275
267
|
let { position: i, scaleSize: a } = e, { top: o, left: s } = i, c = !!e.effect?.type || e.mediaType === "lottie";
|
|
276
|
-
return /* @__PURE__ */
|
|
268
|
+
return /* @__PURE__ */ b("div", {
|
|
277
269
|
className: `absolute ${e.mirror ? "mirror-item" : ""}`,
|
|
278
270
|
style: {
|
|
279
271
|
zIndex: e.zIndex || 10,
|
|
280
272
|
width: `${e.width * a / 100 * t / 100}px`,
|
|
281
273
|
height: e.height === 0 ? "auto" : `${e.height * a / 100 * t / 100}px`,
|
|
282
|
-
top: `${
|
|
283
|
-
left: `${
|
|
274
|
+
top: `${fe(o)}%`,
|
|
275
|
+
left: `${pe(s)}%`
|
|
284
276
|
},
|
|
285
277
|
...c ? {
|
|
286
278
|
role: "button",
|
|
@@ -294,88 +286,81 @@ var oe = /* @__PURE__ */ function(e) {
|
|
|
294
286
|
children: n && n
|
|
295
287
|
});
|
|
296
288
|
};
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
var fe = {
|
|
289
|
+
me.displayName = "MediaItemWrapper";
|
|
290
|
+
// src/components/effectlib/noeffect.tsx
|
|
291
|
+
var F = {
|
|
301
292
|
display: "block",
|
|
302
293
|
width: "100%",
|
|
303
294
|
height: "100%"
|
|
304
|
-
},
|
|
305
|
-
let [o, s] =
|
|
295
|
+
}, he = ({ item: e, children: t, effectCallback: n, onEffectEnd: r, onEffectStart: i, ref: a }) => {
|
|
296
|
+
let [o, s] = m(!1), c = p(!1), l = (t = !0) => {
|
|
306
297
|
!o && !c.current && (c.current = !0, s(!0), i && i(), !t && n && n(e), c.current = !1, s(!1), r && r());
|
|
307
298
|
};
|
|
308
|
-
return
|
|
299
|
+
return d(a, () => ({
|
|
309
300
|
triggerEffect: l,
|
|
310
301
|
setBusy: s,
|
|
311
302
|
busy: o
|
|
312
|
-
}), [o]), /* @__PURE__ */
|
|
303
|
+
}), [o]), /* @__PURE__ */ b("div", {
|
|
313
304
|
onClick: (e) => {
|
|
314
305
|
e.stopPropagation(), l(!1);
|
|
315
306
|
},
|
|
316
|
-
style:
|
|
307
|
+
style: F,
|
|
317
308
|
children: t
|
|
318
309
|
});
|
|
319
310
|
};
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
let t = f(null);
|
|
311
|
+
// node_modules/framer-motion/dist/es/utils/use-constant.mjs
|
|
312
|
+
function ge(e) {
|
|
313
|
+
let t = p(null);
|
|
324
314
|
return t.current === null && (t.current = e()), t.current;
|
|
325
315
|
}
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
function he(e, t) {
|
|
316
|
+
// node_modules/motion-utils/dist/es/array.mjs
|
|
317
|
+
function _e(e, t) {
|
|
329
318
|
e.indexOf(t) === -1 && e.push(t);
|
|
330
319
|
}
|
|
331
|
-
function
|
|
320
|
+
function ve(e, t) {
|
|
332
321
|
let n = e.indexOf(t);
|
|
333
322
|
n > -1 && e.splice(n, 1);
|
|
334
323
|
}
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
//#region node_modules/motion-utils/dist/es/format-error-message.mjs
|
|
340
|
-
function _e(e, t) {
|
|
324
|
+
// node_modules/motion-utils/dist/es/clamp.mjs
|
|
325
|
+
var I = (e, t, n) => n > t ? t : n < e ? e : n;
|
|
326
|
+
// node_modules/motion-utils/dist/es/format-error-message.mjs
|
|
327
|
+
function ye(e, t) {
|
|
341
328
|
return t ? `${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}` : e;
|
|
342
329
|
}
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
typeof
|
|
347
|
-
!e && typeof console < "u" && console.warn(_e(t, n));
|
|
330
|
+
// node_modules/motion-utils/dist/es/errors.mjs
|
|
331
|
+
var L = () => {}, R = () => {};
|
|
332
|
+
typeof process < "u" && process.env.NODE_ENV !== "production" && (L = (e, t, n) => {
|
|
333
|
+
!e && typeof console < "u" && console.warn(ye(t, n));
|
|
348
334
|
}, R = (e, t, n) => {
|
|
349
|
-
if (!e) throw Error(
|
|
335
|
+
if (!e) throw Error(ye(t, n));
|
|
350
336
|
});
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
//#endregion
|
|
355
|
-
//#region node_modules/motion-utils/dist/es/memo.mjs
|
|
337
|
+
// node_modules/motion-utils/dist/es/global-config.mjs
|
|
338
|
+
var z = {}, be = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), xe = (e) => typeof e == "object" && !!e, Se = (e) => /^0[^.\s]+$/u.test(e);
|
|
339
|
+
// node_modules/motion-utils/dist/es/memo.mjs
|
|
356
340
|
/*#__NO_SIDE_EFFECTS__*/
|
|
357
|
-
function
|
|
341
|
+
function Ce(e) {
|
|
358
342
|
let t;
|
|
359
343
|
return () => (t === void 0 && (t = e()), t);
|
|
360
344
|
}
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
var Ce = /* @__NO_SIDE_EFFECTS__ */ (e) => e, we = (...e) => e.reduce((e, t) => (n) => t(e(n))), Te = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
|
|
345
|
+
// node_modules/motion-utils/dist/es/noop.mjs
|
|
346
|
+
var we = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Te = (...e) => e.reduce((e, t) => (n) => t(e(n))), Ee = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
|
|
364
347
|
let r = t - e;
|
|
365
348
|
return r ? (n - e) / r : 1;
|
|
366
|
-
},
|
|
349
|
+
}, De = class {
|
|
367
350
|
constructor() {
|
|
368
351
|
this.subscriptions = [];
|
|
369
352
|
}
|
|
370
353
|
add(e) {
|
|
371
|
-
return
|
|
354
|
+
return _e(this.subscriptions, e), () => ve(this.subscriptions, e);
|
|
372
355
|
}
|
|
373
356
|
notify(e, t, n) {
|
|
374
357
|
let r = this.subscriptions.length;
|
|
375
|
-
if (r)
|
|
376
|
-
|
|
377
|
-
let
|
|
378
|
-
|
|
358
|
+
if (r) {
|
|
359
|
+
if (r === 1) this.subscriptions[0](e, t, n);
|
|
360
|
+
else for (let i = 0; i < r; i++) {
|
|
361
|
+
let r = this.subscriptions[i];
|
|
362
|
+
r && r(e, t, n);
|
|
363
|
+
}
|
|
379
364
|
}
|
|
380
365
|
}
|
|
381
366
|
getSize() {
|
|
@@ -384,60 +369,56 @@ var Ce = /* @__NO_SIDE_EFFECTS__ */ (e) => e, we = (...e) => e.reduce((e, t) =>
|
|
|
384
369
|
clear() {
|
|
385
370
|
this.subscriptions.length = 0;
|
|
386
371
|
}
|
|
387
|
-
}, B = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, V = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3,
|
|
388
|
-
function
|
|
389
|
-
e ||
|
|
372
|
+
}, B = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, V = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, Oe = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, ke = /* @__PURE__ */ new Set();
|
|
373
|
+
function Ae(e, t, n) {
|
|
374
|
+
e || ke.has(t) || (console.warn(ye(t, n)), ke.add(t));
|
|
390
375
|
}
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
var Ae = (e, t, n) => {
|
|
376
|
+
// node_modules/motion-utils/dist/es/wrap.mjs
|
|
377
|
+
var je = (e, t, n) => {
|
|
394
378
|
let r = t - e;
|
|
395
379
|
return ((n - e) % r + r) % r + e;
|
|
396
|
-
},
|
|
397
|
-
function
|
|
380
|
+
}, Me = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, Ne = 1e-7, Pe = 12;
|
|
381
|
+
function Fe(e, t, n, r, i) {
|
|
398
382
|
let a, o, s = 0;
|
|
399
383
|
do
|
|
400
|
-
o = t + (n - t) / 2, a =
|
|
401
|
-
while (Math.abs(a) >
|
|
384
|
+
o = t + (n - t) / 2, a = Me(o, r, i) - e, a > 0 ? n = o : t = o;
|
|
385
|
+
while (Math.abs(a) > Ne && ++s < Pe);
|
|
402
386
|
return o;
|
|
403
387
|
}
|
|
404
388
|
/*#__NO_SIDE_EFFECTS__*/
|
|
405
|
-
function
|
|
406
|
-
if (e === t && n === r) return
|
|
407
|
-
let i = (t) =>
|
|
408
|
-
return (e) => e === 0 || e === 1 ? e :
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
//#endregion
|
|
414
|
-
//#region node_modules/motion-utils/dist/es/easing/utils/get-easing-for-segment.mjs
|
|
389
|
+
function Ie(e, t, n, r) {
|
|
390
|
+
if (e === t && n === r) return we;
|
|
391
|
+
let i = (t) => Fe(t, 0, 1, e, n);
|
|
392
|
+
return (e) => e === 0 || e === 1 ? e : Me(i(e), t, r);
|
|
393
|
+
}
|
|
394
|
+
// node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs
|
|
395
|
+
var Le = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Re = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), ze = /*@__PURE__*/ Ie(.33, 1.53, .69, .99), Be = /*@__PURE__*/ Re(ze), Ve = /*@__PURE__*/ Le(Be), He = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * Be(e) : .5 * (2 - 2 ** (-10 * (e - 1))), Ue = (e) => 1 - Math.sin(Math.acos(e)), We = /* @__PURE__ */ Re(Ue), Ge = /* @__PURE__ */ Le(Ue), Ke = /*@__PURE__*/ Ie(.42, 0, 1, 1), qe = /*@__PURE__*/ Ie(0, 0, .58, 1), Je = /*@__PURE__*/ Ie(.42, 0, .58, 1), Ye = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number";
|
|
396
|
+
// node_modules/motion-utils/dist/es/easing/utils/get-easing-for-segment.mjs
|
|
415
397
|
/*#__NO_SIDE_EFFECTS__*/
|
|
416
|
-
function
|
|
417
|
-
return /* @__PURE__ */
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
if (/* @__PURE__ */ Xe(e)) {
|
|
398
|
+
function Xe(e, t) {
|
|
399
|
+
return /* @__PURE__ */ Ye(e) ? e[je(0, e.length, t)] : e;
|
|
400
|
+
}
|
|
401
|
+
// node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs
|
|
402
|
+
var Ze = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", Qe = {
|
|
403
|
+
linear: we,
|
|
404
|
+
easeIn: Ke,
|
|
405
|
+
easeInOut: Je,
|
|
406
|
+
easeOut: qe,
|
|
407
|
+
circIn: Ue,
|
|
408
|
+
circInOut: Ge,
|
|
409
|
+
circOut: We,
|
|
410
|
+
backIn: Be,
|
|
411
|
+
backInOut: Ve,
|
|
412
|
+
backOut: ze,
|
|
413
|
+
anticipate: He
|
|
414
|
+
}, $e = (e) => typeof e == "string", et = (e) => {
|
|
415
|
+
if (/* @__PURE__ */ Ze(e)) {
|
|
435
416
|
R(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
|
|
436
417
|
let [t, n, r, i] = e;
|
|
437
|
-
return /* @__PURE__ */
|
|
438
|
-
}
|
|
439
|
-
return e;
|
|
440
|
-
},
|
|
418
|
+
return /* @__PURE__ */ Ie(t, n, r, i);
|
|
419
|
+
}
|
|
420
|
+
return $e(e) ? (R(Qe[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), Qe[e]) : e;
|
|
421
|
+
}, tt = [
|
|
441
422
|
"setup",
|
|
442
423
|
"read",
|
|
443
424
|
"resolveKeyframes",
|
|
@@ -446,13 +427,12 @@ var Xe = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "n
|
|
|
446
427
|
"preRender",
|
|
447
428
|
"render",
|
|
448
429
|
"postRender"
|
|
449
|
-
],
|
|
430
|
+
], nt = {
|
|
450
431
|
value: null,
|
|
451
432
|
addProjectionMetrics: null
|
|
452
433
|
};
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
function nt(e, t) {
|
|
434
|
+
// node_modules/motion-dom/dist/es/frameloop/render-step.mjs
|
|
435
|
+
function rt(e, t) {
|
|
456
436
|
let n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = !1, a = !1, o = /* @__PURE__ */ new WeakSet(), s = {
|
|
457
437
|
delta: 0,
|
|
458
438
|
timestamp: 0,
|
|
@@ -476,96 +456,90 @@ function nt(e, t) {
|
|
|
476
456
|
}
|
|
477
457
|
i = !0;
|
|
478
458
|
let o = n;
|
|
479
|
-
n = r, r = o, n.forEach(l), t &&
|
|
459
|
+
n = r, r = o, n.forEach(l), t && nt.value && nt.value.frameloop[t].push(c), c = 0, n.clear(), i = !1, a && (a = !1, u.process(e));
|
|
480
460
|
}
|
|
481
461
|
};
|
|
482
462
|
return u;
|
|
483
463
|
}
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
function it(e, t) {
|
|
464
|
+
// node_modules/motion-dom/dist/es/frameloop/batcher.mjs
|
|
465
|
+
var it = 40;
|
|
466
|
+
function at(e, t) {
|
|
488
467
|
let n = !1, r = !0, i = {
|
|
489
468
|
delta: 0,
|
|
490
469
|
timestamp: 0,
|
|
491
470
|
isProcessing: !1
|
|
492
|
-
}, a = () => n = !0, o =
|
|
471
|
+
}, a = () => n = !0, o = tt.reduce((e, n) => (e[n] = rt(a, t ? n : void 0), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
|
|
493
472
|
let a = z.useManualTiming, o = a ? i.timestamp : performance.now();
|
|
494
|
-
n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp,
|
|
473
|
+
n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, it), 1)), i.timestamp = o, i.isProcessing = !0, s.process(i), c.process(i), l.process(i), u.process(i), d.process(i), f.process(i), p.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(h));
|
|
495
474
|
}, g = () => {
|
|
496
475
|
n = !0, r = !0, i.isProcessing || e(h);
|
|
497
476
|
};
|
|
498
477
|
return {
|
|
499
|
-
schedule:
|
|
478
|
+
schedule: tt.reduce((e, t) => {
|
|
500
479
|
let r = o[t];
|
|
501
480
|
return e[t] = (e, t = !1, i = !1) => (n || g(), r.schedule(e, t, i)), e;
|
|
502
481
|
}, {}),
|
|
503
482
|
cancel: (e) => {
|
|
504
|
-
for (let t = 0; t <
|
|
483
|
+
for (let t = 0; t < tt.length; t++) o[tt[t]].cancel(e);
|
|
505
484
|
},
|
|
506
485
|
state: i,
|
|
507
486
|
steps: o
|
|
508
487
|
};
|
|
509
488
|
}
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
ct = void 0;
|
|
489
|
+
// node_modules/motion-dom/dist/es/frameloop/frame.mjs
|
|
490
|
+
var { schedule: H, cancel: ot, state: st, steps: ct } = /* @__PURE__ */ at(typeof requestAnimationFrame < "u" ? requestAnimationFrame : we, !0), lt;
|
|
491
|
+
function ut() {
|
|
492
|
+
lt = void 0;
|
|
515
493
|
}
|
|
516
494
|
var U = {
|
|
517
|
-
now: () => (
|
|
495
|
+
now: () => (lt === void 0 && U.set(st.isProcessing || z.useManualTiming ? st.timestamp : performance.now()), lt),
|
|
518
496
|
set: (e) => {
|
|
519
|
-
|
|
497
|
+
lt = e, queueMicrotask(ut);
|
|
520
498
|
}
|
|
521
|
-
},
|
|
499
|
+
}, dt = {
|
|
522
500
|
layout: 0,
|
|
523
501
|
mainThread: 0,
|
|
524
502
|
waapi: 0
|
|
525
|
-
},
|
|
526
|
-
function
|
|
527
|
-
return typeof e == "string"
|
|
503
|
+
}, ft = (e) => (t) => typeof t == "string" && t.startsWith(e), pt = /*@__PURE__*/ ft("--"), mt = /*@__PURE__*/ ft("var(--"), ht = (e) => mt(e) ? gt.test(e.split("/*")[0].trim()) : !1, gt = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
|
|
504
|
+
function _t(e) {
|
|
505
|
+
return typeof e == "string" && e.split("/*")[0].includes("var(--");
|
|
528
506
|
}
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
var _t = {
|
|
507
|
+
// node_modules/motion-dom/dist/es/value/types/numbers/index.mjs
|
|
508
|
+
var vt = {
|
|
532
509
|
test: (e) => typeof e == "number",
|
|
533
510
|
parse: parseFloat,
|
|
534
511
|
transform: (e) => e
|
|
535
|
-
}, vt = {
|
|
536
|
-
..._t,
|
|
537
|
-
transform: (e) => L(0, 1, e)
|
|
538
512
|
}, yt = {
|
|
539
|
-
...
|
|
513
|
+
...vt,
|
|
514
|
+
transform: (e) => I(0, 1, e)
|
|
515
|
+
}, bt = {
|
|
516
|
+
...vt,
|
|
540
517
|
default: 1
|
|
541
|
-
},
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
function St(e) {
|
|
518
|
+
}, xt = (e) => Math.round(e * 1e5) / 1e5, St = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
519
|
+
// node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs
|
|
520
|
+
function Ct(e) {
|
|
545
521
|
return e == null;
|
|
546
522
|
}
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
var Ct = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, wt = (e, t) => (n) => !!(typeof n == "string" && Ct.test(n) && n.startsWith(e) || t && !St(n) && Object.prototype.hasOwnProperty.call(n, t)), Tt = (e, t, n) => (r) => {
|
|
523
|
+
// node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs
|
|
524
|
+
var wt = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Tt = (e, t) => (n) => !!(typeof n == "string" && wt.test(n) && n.startsWith(e) || t && !Ct(n) && Object.prototype.hasOwnProperty.call(n, t)), Et = (e, t, n) => (r) => {
|
|
550
525
|
if (typeof r != "string") return r;
|
|
551
|
-
let [i, a, o, s] = r.match(
|
|
526
|
+
let [i, a, o, s] = r.match(St);
|
|
552
527
|
return {
|
|
553
528
|
[e]: parseFloat(i),
|
|
554
529
|
[t]: parseFloat(a),
|
|
555
530
|
[n]: parseFloat(o),
|
|
556
531
|
alpha: s === void 0 ? 1 : parseFloat(s)
|
|
557
532
|
};
|
|
558
|
-
},
|
|
559
|
-
...
|
|
560
|
-
transform: (e) => Math.round(
|
|
533
|
+
}, Dt = (e) => I(0, 255, e), Ot = {
|
|
534
|
+
...vt,
|
|
535
|
+
transform: (e) => Math.round(Dt(e))
|
|
561
536
|
}, W = {
|
|
562
|
-
test: /*@__PURE__*/
|
|
563
|
-
parse: /*@__PURE__*/
|
|
564
|
-
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" +
|
|
537
|
+
test: /*@__PURE__*/ Tt("rgb", "red"),
|
|
538
|
+
parse: /*@__PURE__*/ Et("red", "green", "blue"),
|
|
539
|
+
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + Ot.transform(e) + ", " + Ot.transform(t) + ", " + Ot.transform(n) + ", " + xt(yt.transform(r)) + ")"
|
|
565
540
|
};
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
function Ot(e) {
|
|
541
|
+
// node_modules/motion-dom/dist/es/value/types/color/hex.mjs
|
|
542
|
+
function kt(e) {
|
|
569
543
|
let t = "", n = "", r = "", i = "";
|
|
570
544
|
return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), {
|
|
571
545
|
red: parseInt(t, 16),
|
|
@@ -574,38 +548,37 @@ function Ot(e) {
|
|
|
574
548
|
alpha: i ? parseInt(i, 16) / 255 : 1
|
|
575
549
|
};
|
|
576
550
|
}
|
|
577
|
-
var
|
|
578
|
-
test: /*@__PURE__*/
|
|
579
|
-
parse:
|
|
551
|
+
var At = {
|
|
552
|
+
test: /*@__PURE__*/ Tt("#"),
|
|
553
|
+
parse: kt,
|
|
580
554
|
transform: W.transform
|
|
581
|
-
},
|
|
555
|
+
}, jt = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
|
|
582
556
|
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
|
|
583
557
|
parse: parseFloat,
|
|
584
558
|
transform: (t) => `${t}${e}`
|
|
585
|
-
}), G = /*@__PURE__*/
|
|
586
|
-
...
|
|
587
|
-
parse: (e) =>
|
|
588
|
-
transform: (e) =>
|
|
589
|
-
},
|
|
590
|
-
test: /*@__PURE__*/
|
|
591
|
-
parse: /*@__PURE__*/
|
|
592
|
-
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " +
|
|
559
|
+
}), G = /*@__PURE__*/ jt("deg"), Mt = /*@__PURE__*/ jt("%"), K = /*@__PURE__*/ jt("px"), Nt = /*@__PURE__*/ jt("vh"), Pt = /*@__PURE__*/ jt("vw"), Ft = {
|
|
560
|
+
...Mt,
|
|
561
|
+
parse: (e) => Mt.parse(e) / 100,
|
|
562
|
+
transform: (e) => Mt.transform(e * 100)
|
|
563
|
+
}, It = {
|
|
564
|
+
test: /*@__PURE__*/ Tt("hsl", "hue"),
|
|
565
|
+
parse: /*@__PURE__*/ Et("hue", "saturation", "lightness"),
|
|
566
|
+
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Mt.transform(xt(t)) + ", " + Mt.transform(xt(n)) + ", " + xt(yt.transform(r)) + ")"
|
|
593
567
|
}, q = {
|
|
594
|
-
test: (e) => W.test(e) ||
|
|
595
|
-
parse: (e) => W.test(e) ? W.parse(e) :
|
|
596
|
-
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? W.transform(e) :
|
|
568
|
+
test: (e) => W.test(e) || At.test(e) || It.test(e),
|
|
569
|
+
parse: (e) => W.test(e) ? W.parse(e) : It.test(e) ? It.parse(e) : At.parse(e),
|
|
570
|
+
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? W.transform(e) : It.transform(e),
|
|
597
571
|
getAnimatableNone: (e) => {
|
|
598
572
|
let t = q.parse(e);
|
|
599
573
|
return t.alpha = 0, q.transform(t);
|
|
600
574
|
}
|
|
601
|
-
},
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
return isNaN(e) && typeof e == "string" && (e.match(xt)?.length || 0) + (e.match(It)?.length || 0) > 0;
|
|
575
|
+
}, Lt = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
576
|
+
// node_modules/motion-dom/dist/es/value/types/complex/index.mjs
|
|
577
|
+
function Rt(e) {
|
|
578
|
+
return isNaN(e) && typeof e == "string" && (e.match(St)?.length || 0) + (e.match(Lt)?.length || 0) > 0;
|
|
606
579
|
}
|
|
607
|
-
var
|
|
608
|
-
function
|
|
580
|
+
var zt = "number", Bt = "color", Vt = "var", Ht = "var(", Ut = "${}", Wt = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
|
|
581
|
+
function Gt(e) {
|
|
609
582
|
let t = e.toString(), n = [], r = {
|
|
610
583
|
color: [],
|
|
611
584
|
number: [],
|
|
@@ -613,51 +586,50 @@ function Wt(e) {
|
|
|
613
586
|
}, i = [], a = 0;
|
|
614
587
|
return {
|
|
615
588
|
values: n,
|
|
616
|
-
split: t.replace(
|
|
589
|
+
split: t.replace(Wt, (e) => (q.test(e) ? (r.color.push(a), i.push(Bt), n.push(q.parse(e))) : e.startsWith(Ht) ? (r.var.push(a), i.push(Vt), n.push(e)) : (r.number.push(a), i.push(zt), n.push(parseFloat(e))), ++a, Ut)).split(Ut),
|
|
617
590
|
indexes: r,
|
|
618
591
|
types: i
|
|
619
592
|
};
|
|
620
593
|
}
|
|
621
|
-
function
|
|
622
|
-
return
|
|
594
|
+
function Kt(e) {
|
|
595
|
+
return Gt(e).values;
|
|
623
596
|
}
|
|
624
|
-
function
|
|
597
|
+
function qt({ split: e, types: t }) {
|
|
625
598
|
let n = e.length;
|
|
626
599
|
return (r) => {
|
|
627
600
|
let i = "";
|
|
628
601
|
for (let a = 0; a < n; a++) if (i += e[a], r[a] !== void 0) {
|
|
629
602
|
let e = t[a];
|
|
630
|
-
e ===
|
|
603
|
+
i += e === zt ? xt(r[a]) : e === Bt ? q.transform(r[a]) : r[a];
|
|
631
604
|
}
|
|
632
605
|
return i;
|
|
633
606
|
};
|
|
634
607
|
}
|
|
635
|
-
function
|
|
636
|
-
return
|
|
608
|
+
function Jt(e) {
|
|
609
|
+
return qt(Gt(e));
|
|
637
610
|
}
|
|
638
|
-
var
|
|
639
|
-
function
|
|
640
|
-
let t =
|
|
641
|
-
return
|
|
611
|
+
var Yt = (e) => typeof e == "number" ? 0 : q.test(e) ? q.getAnimatableNone(e) : e, Xt = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : Yt(e);
|
|
612
|
+
function Zt(e) {
|
|
613
|
+
let t = Gt(e);
|
|
614
|
+
return qt(t)(t.values.map((e, n) => Xt(e, t.split[n])));
|
|
642
615
|
}
|
|
643
616
|
var J = {
|
|
644
|
-
test:
|
|
645
|
-
parse:
|
|
646
|
-
createTransformer:
|
|
647
|
-
getAnimatableNone:
|
|
617
|
+
test: Rt,
|
|
618
|
+
parse: Kt,
|
|
619
|
+
createTransformer: Jt,
|
|
620
|
+
getAnimatableNone: Zt
|
|
648
621
|
};
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
function Zt(e, t, n) {
|
|
622
|
+
// node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs
|
|
623
|
+
function Qt(e, t, n) {
|
|
652
624
|
return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
653
625
|
}
|
|
654
|
-
function
|
|
626
|
+
function $t({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
655
627
|
e /= 360, t /= 100, n /= 100;
|
|
656
628
|
let i = 0, a = 0, o = 0;
|
|
657
629
|
if (!t) i = a = o = n;
|
|
658
630
|
else {
|
|
659
631
|
let r = n < .5 ? n * (1 + t) : n + t - n * t, s = 2 * n - r;
|
|
660
|
-
i =
|
|
632
|
+
i = Qt(s, r, e + 1 / 3), a = Qt(s, r, e), o = Qt(s, r, e - 1 / 3);
|
|
661
633
|
}
|
|
662
634
|
return {
|
|
663
635
|
red: Math.round(i * 255),
|
|
@@ -666,117 +638,110 @@ function Qt({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
|
666
638
|
alpha: r
|
|
667
639
|
};
|
|
668
640
|
}
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
function $t(e, t) {
|
|
641
|
+
// node_modules/motion-dom/dist/es/utils/mix/immediate.mjs
|
|
642
|
+
function en(e, t) {
|
|
672
643
|
return (n) => n > 0 ? t : e;
|
|
673
644
|
}
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
var en = (e, t, n) => e + (t - e) * n, tn = (e, t, n) => {
|
|
645
|
+
// node_modules/motion-dom/dist/es/utils/mix/number.mjs
|
|
646
|
+
var tn = (e, t, n) => e + (t - e) * n, nn = (e, t, n) => {
|
|
677
647
|
let r = e * e, i = n * (t * t - r) + r;
|
|
678
648
|
return i < 0 ? 0 : Math.sqrt(i);
|
|
679
|
-
},
|
|
680
|
-
|
|
649
|
+
}, rn = [
|
|
650
|
+
At,
|
|
681
651
|
W,
|
|
682
|
-
|
|
683
|
-
],
|
|
684
|
-
function
|
|
685
|
-
let t =
|
|
686
|
-
if (
|
|
652
|
+
It
|
|
653
|
+
], an = (e) => rn.find((t) => t.test(e));
|
|
654
|
+
function on(e) {
|
|
655
|
+
let t = an(e);
|
|
656
|
+
if (L(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !t) return !1;
|
|
687
657
|
let n = t.parse(e);
|
|
688
|
-
return t ===
|
|
658
|
+
return t === It && (n = $t(n)), n;
|
|
689
659
|
}
|
|
690
|
-
var
|
|
691
|
-
let n =
|
|
692
|
-
if (!n || !r) return
|
|
660
|
+
var sn = (e, t) => {
|
|
661
|
+
let n = on(e), r = on(t);
|
|
662
|
+
if (!n || !r) return en(e, t);
|
|
693
663
|
let i = { ...n };
|
|
694
|
-
return (e) => (i.red =
|
|
695
|
-
},
|
|
696
|
-
function cn(e, t) {
|
|
697
|
-
return sn.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
|
|
698
|
-
}
|
|
699
|
-
//#endregion
|
|
700
|
-
//#region node_modules/motion-dom/dist/es/utils/mix/complex.mjs
|
|
664
|
+
return (e) => (i.red = nn(n.red, r.red, e), i.green = nn(n.green, r.green, e), i.blue = nn(n.blue, r.blue, e), i.alpha = tn(n.alpha, r.alpha, e), W.transform(i));
|
|
665
|
+
}, cn = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
701
666
|
function ln(e, t) {
|
|
702
|
-
return (n) =>
|
|
667
|
+
return cn.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
|
|
703
668
|
}
|
|
704
|
-
|
|
705
|
-
|
|
669
|
+
// node_modules/motion-dom/dist/es/utils/mix/complex.mjs
|
|
670
|
+
function un(e, t) {
|
|
671
|
+
return (n) => tn(e, t, n);
|
|
706
672
|
}
|
|
707
|
-
function dn(e
|
|
708
|
-
|
|
673
|
+
function dn(e) {
|
|
674
|
+
return typeof e == "number" ? un : typeof e == "string" ? ht(e) ? en : q.test(e) ? sn : hn : Array.isArray(e) ? fn : typeof e == "object" ? q.test(e) ? sn : pn : en;
|
|
675
|
+
}
|
|
676
|
+
function fn(e, t) {
|
|
677
|
+
let n = [...e], r = n.length, i = e.map((e, n) => dn(e)(e, t[n]));
|
|
709
678
|
return (e) => {
|
|
710
679
|
for (let t = 0; t < r; t++) n[t] = i[t](e);
|
|
711
680
|
return n;
|
|
712
681
|
};
|
|
713
682
|
}
|
|
714
|
-
function
|
|
683
|
+
function pn(e, t) {
|
|
715
684
|
let n = {
|
|
716
685
|
...e,
|
|
717
686
|
...t
|
|
718
687
|
}, r = {};
|
|
719
|
-
for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] =
|
|
688
|
+
for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = dn(e[i])(e[i], t[i]));
|
|
720
689
|
return (e) => {
|
|
721
690
|
for (let t in r) n[t] = r[t](e);
|
|
722
691
|
return n;
|
|
723
692
|
};
|
|
724
693
|
}
|
|
725
|
-
function
|
|
694
|
+
function mn(e, t) {
|
|
726
695
|
let n = [], r = {
|
|
727
696
|
color: 0,
|
|
728
697
|
var: 0,
|
|
729
698
|
number: 0
|
|
730
699
|
};
|
|
731
700
|
for (let i = 0; i < t.values.length; i++) {
|
|
732
|
-
let a = t.types[i], o = e.indexes[a][r[a]];
|
|
733
|
-
n[i] =
|
|
701
|
+
let a = t.types[i], o = e.indexes[a][r[a]], s = e.values[o] ?? 0;
|
|
702
|
+
n[i] = s, r[a]++;
|
|
734
703
|
}
|
|
735
704
|
return n;
|
|
736
705
|
}
|
|
737
|
-
var
|
|
738
|
-
let n = J.createTransformer(t), r =
|
|
739
|
-
return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ?
|
|
706
|
+
var hn = (e, t) => {
|
|
707
|
+
let n = J.createTransformer(t), r = Gt(e), i = Gt(t);
|
|
708
|
+
return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? cn.has(e) && !i.values.length || cn.has(t) && !r.values.length ? ln(e, t) : Te(fn(mn(r, i), i.values), n) : (L(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), en(e, t));
|
|
740
709
|
};
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
//#region node_modules/motion-dom/dist/es/animation/drivers/frame.mjs
|
|
748
|
-
var gn = (e) => {
|
|
710
|
+
// node_modules/motion-dom/dist/es/utils/mix/index.mjs
|
|
711
|
+
function gn(e, t, n) {
|
|
712
|
+
return typeof e == "number" && typeof t == "number" && typeof n == "number" ? tn(e, t, n) : dn(e)(e, t);
|
|
713
|
+
}
|
|
714
|
+
// node_modules/motion-dom/dist/es/animation/drivers/frame.mjs
|
|
715
|
+
var _n = (e) => {
|
|
749
716
|
let t = ({ timestamp: t }) => e(t);
|
|
750
717
|
return {
|
|
751
718
|
start: (e = !0) => H.update(t, e),
|
|
752
|
-
stop: () =>
|
|
753
|
-
now: () =>
|
|
719
|
+
stop: () => ot(t),
|
|
720
|
+
now: () => st.isProcessing ? st.timestamp : U.now()
|
|
754
721
|
};
|
|
755
|
-
},
|
|
722
|
+
}, vn = (e, t, n = 10) => {
|
|
756
723
|
let r = "", i = Math.max(Math.round(t / n), 2);
|
|
757
724
|
for (let t = 0; t < i; t++) r += Math.round(e(t / (i - 1)) * 1e4) / 1e4 + ", ";
|
|
758
725
|
return `linear(${r.substring(0, r.length - 2)})`;
|
|
759
|
-
},
|
|
760
|
-
function
|
|
726
|
+
}, yn = 2e4;
|
|
727
|
+
function bn(e) {
|
|
761
728
|
let t = 0, n = e.next(t);
|
|
762
729
|
for (; !n.done && t < 2e4;) t += 50, n = e.next(t);
|
|
763
730
|
return t >= 2e4 ? Infinity : t;
|
|
764
731
|
}
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
function bn(e, t = 100, n) {
|
|
732
|
+
// node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs
|
|
733
|
+
function xn(e, t = 100, n) {
|
|
768
734
|
let r = n({
|
|
769
735
|
...e,
|
|
770
736
|
keyframes: [0, t]
|
|
771
|
-
}), i = Math.min(
|
|
737
|
+
}), i = Math.min(bn(r), yn);
|
|
772
738
|
return {
|
|
773
739
|
type: "keyframes",
|
|
774
740
|
ease: (e) => r.next(i * e).value / t,
|
|
775
741
|
duration: /* @__PURE__ */ V(i)
|
|
776
742
|
};
|
|
777
743
|
}
|
|
778
|
-
|
|
779
|
-
//#region node_modules/motion-dom/dist/es/animation/generators/spring.mjs
|
|
744
|
+
// node_modules/motion-dom/dist/es/animation/generators/spring.mjs
|
|
780
745
|
var Y = {
|
|
781
746
|
stiffness: 100,
|
|
782
747
|
damping: 10,
|
|
@@ -798,28 +763,28 @@ var Y = {
|
|
|
798
763
|
minDamping: .05,
|
|
799
764
|
maxDamping: 1
|
|
800
765
|
};
|
|
801
|
-
function
|
|
766
|
+
function Sn(e, t) {
|
|
802
767
|
return e * Math.sqrt(1 - t * t);
|
|
803
768
|
}
|
|
804
|
-
var
|
|
805
|
-
function
|
|
769
|
+
var Cn = 12;
|
|
770
|
+
function wn(e, t, n) {
|
|
806
771
|
let r = n;
|
|
807
|
-
for (let n = 1; n <
|
|
772
|
+
for (let n = 1; n < Cn; n++) r -= e(r) / t(r);
|
|
808
773
|
return r;
|
|
809
774
|
}
|
|
810
|
-
var
|
|
811
|
-
function
|
|
775
|
+
var Tn = .001;
|
|
776
|
+
function En({ duration: e = Y.duration, bounce: t = Y.bounce, velocity: n = Y.velocity, mass: r = Y.mass }) {
|
|
812
777
|
let i, a;
|
|
813
|
-
|
|
778
|
+
L(e <= /* @__PURE__ */ B(Y.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
|
|
814
779
|
let o = 1 - t;
|
|
815
|
-
o =
|
|
816
|
-
let r = t * o, i = r * e, a = r - n, s =
|
|
817
|
-
return
|
|
780
|
+
o = I(Y.minDamping, Y.maxDamping, o), e = I(Y.minDuration, Y.maxDuration, /* @__PURE__ */ V(e)), o < 1 ? (i = (t) => {
|
|
781
|
+
let r = t * o, i = r * e, a = r - n, s = Sn(t, o), c = Math.exp(-i);
|
|
782
|
+
return Tn - a / s * c;
|
|
818
783
|
}, a = (t) => {
|
|
819
|
-
let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l =
|
|
820
|
-
return (-i(t) +
|
|
784
|
+
let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l = Sn(t ** 2, o);
|
|
785
|
+
return (-i(t) + Tn > 0 ? -1 : 1) * ((a - s) * c) / l;
|
|
821
786
|
}) : (i = (t) => -.001 + Math.exp(-t * e) * ((t - n) * e + 1), a = (t) => Math.exp(-t * e) * ((n - t) * (e * e)));
|
|
822
|
-
let s = 5 / e, c =
|
|
787
|
+
let s = 5 / e, c = wn(i, a, s);
|
|
823
788
|
if (e = /* @__PURE__ */ B(e), isNaN(c)) return {
|
|
824
789
|
stiffness: Y.stiffness,
|
|
825
790
|
damping: Y.damping,
|
|
@@ -834,15 +799,15 @@ function Tn({ duration: e = Y.duration, bounce: t = Y.bounce, velocity: n = Y.ve
|
|
|
834
799
|
};
|
|
835
800
|
}
|
|
836
801
|
}
|
|
837
|
-
var
|
|
802
|
+
var Dn = ["duration", "bounce"], On = [
|
|
838
803
|
"stiffness",
|
|
839
804
|
"damping",
|
|
840
805
|
"mass"
|
|
841
806
|
];
|
|
842
|
-
function
|
|
807
|
+
function kn(e, t) {
|
|
843
808
|
return t.some((t) => e[t] !== void 0);
|
|
844
809
|
}
|
|
845
|
-
function
|
|
810
|
+
function An(e) {
|
|
846
811
|
let t = {
|
|
847
812
|
velocity: Y.velocity,
|
|
848
813
|
stiffness: Y.stiffness,
|
|
@@ -851,28 +816,30 @@ function kn(e) {
|
|
|
851
816
|
isResolvedFromDuration: !1,
|
|
852
817
|
...e
|
|
853
818
|
};
|
|
854
|
-
if (!
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
819
|
+
if (!kn(e, On) && kn(e, Dn)) {
|
|
820
|
+
if (t.velocity = 0, e.visualDuration) {
|
|
821
|
+
let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * I(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
|
|
822
|
+
t = {
|
|
823
|
+
...t,
|
|
824
|
+
mass: Y.mass,
|
|
825
|
+
stiffness: i,
|
|
826
|
+
damping: a
|
|
827
|
+
};
|
|
828
|
+
} else {
|
|
829
|
+
let n = En({
|
|
830
|
+
...e,
|
|
831
|
+
velocity: 0
|
|
832
|
+
});
|
|
833
|
+
t = {
|
|
834
|
+
...t,
|
|
835
|
+
...n,
|
|
836
|
+
mass: Y.mass
|
|
837
|
+
}, t.isResolvedFromDuration = !0;
|
|
838
|
+
}
|
|
872
839
|
}
|
|
873
840
|
return t;
|
|
874
841
|
}
|
|
875
|
-
function
|
|
842
|
+
function jn(e = Y.visualDuration, t = Y.bounce) {
|
|
876
843
|
let n = typeof e == "object" ? e : {
|
|
877
844
|
visualDuration: e,
|
|
878
845
|
keyframes: [0, 1],
|
|
@@ -880,13 +847,16 @@ function An(e = Y.visualDuration, t = Y.bounce) {
|
|
|
880
847
|
}, { restSpeed: r, restDelta: i } = n, a = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], s = {
|
|
881
848
|
done: !1,
|
|
882
849
|
value: a
|
|
883
|
-
}, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } =
|
|
850
|
+
}, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = An({
|
|
884
851
|
...n,
|
|
885
852
|
velocity: -/* @__PURE__ */ V(n.velocity || 0)
|
|
886
853
|
}), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ V(Math.sqrt(c / u)), v = Math.abs(g) < 5;
|
|
887
854
|
r ||= v ? Y.restSpeed.granular : Y.restSpeed.default, i ||= v ? Y.restDelta.granular : Y.restDelta.default;
|
|
888
855
|
let y, b, x, S, C, w;
|
|
889
|
-
if (h < 1) x =
|
|
856
|
+
if (h < 1) x = Sn(_, h), S = (m + h * _ * g) / x, y = (e) => {
|
|
857
|
+
let t = Math.exp(-h * _ * e);
|
|
858
|
+
return o - t * (S * Math.sin(x * e) + g * Math.cos(x * e));
|
|
859
|
+
}, C = h * _ * S + g * x, w = h * _ * g - S * x, b = (e) => Math.exp(-h * _ * e) * (C * Math.sin(x * e) + w * Math.cos(x * e));
|
|
890
860
|
else if (h === 1) {
|
|
891
861
|
y = (e) => o - Math.exp(-_ * e) * (g + (m + _ * g) * e);
|
|
892
862
|
let e = m + _ * g;
|
|
@@ -920,27 +890,25 @@ function An(e = Y.visualDuration, t = Y.bounce) {
|
|
|
920
890
|
return s.value = s.done ? o : t, s;
|
|
921
891
|
},
|
|
922
892
|
toString: () => {
|
|
923
|
-
let e = Math.min(
|
|
893
|
+
let e = Math.min(bn(T), yn), t = vn((t) => T.next(e * t).value, e, 30);
|
|
924
894
|
return e + "ms " + t;
|
|
925
895
|
},
|
|
926
896
|
toTransition: () => {}
|
|
927
897
|
};
|
|
928
898
|
return T;
|
|
929
899
|
}
|
|
930
|
-
|
|
931
|
-
let t =
|
|
900
|
+
jn.applyToOptions = (e) => {
|
|
901
|
+
let t = xn(e, 100, jn);
|
|
932
902
|
return e.ease = t.ease, e.duration = /* @__PURE__ */ B(t.duration), e.type = "keyframes", e;
|
|
933
903
|
};
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
//#region node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
|
|
943
|
-
function Nn({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
|
|
904
|
+
// node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
|
|
905
|
+
var Mn = 5;
|
|
906
|
+
function Nn(e, t, n) {
|
|
907
|
+
let r = Math.max(t - Mn, 0);
|
|
908
|
+
return /* @__PURE__ */ Oe(n - e(r), t - r);
|
|
909
|
+
}
|
|
910
|
+
// node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
|
|
911
|
+
function Pn({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
|
|
944
912
|
let d = e[0], f = {
|
|
945
913
|
done: !1,
|
|
946
914
|
value: d
|
|
@@ -950,9 +918,9 @@ function Nn({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
|
|
|
950
918
|
let t = v(e), n = y(e);
|
|
951
919
|
f.done = Math.abs(t) <= l, f.value = f.done ? _ : n;
|
|
952
920
|
}, x, S, C = (e) => {
|
|
953
|
-
p(f.value) && (x = e, S =
|
|
921
|
+
p(f.value) && (x = e, S = jn({
|
|
954
922
|
keyframes: [f.value, m(f.value)],
|
|
955
|
-
velocity:
|
|
923
|
+
velocity: Nn(y, e, f.value),
|
|
956
924
|
damping: i,
|
|
957
925
|
stiffness: a,
|
|
958
926
|
restDelta: l,
|
|
@@ -967,88 +935,80 @@ function Nn({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
|
|
|
967
935
|
}
|
|
968
936
|
};
|
|
969
937
|
}
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
let r = [], i = n || z.mix || hn, a = e.length - 1;
|
|
938
|
+
// node_modules/motion-dom/dist/es/utils/interpolate.mjs
|
|
939
|
+
function Fn(e, t, n) {
|
|
940
|
+
let r = [], i = n || z.mix || gn, a = e.length - 1;
|
|
974
941
|
for (let n = 0; n < a; n++) {
|
|
975
942
|
let a = i(e[n], e[n + 1]);
|
|
976
|
-
t && (a =
|
|
943
|
+
t && (a = Te(Array.isArray(t) ? t[n] || we : t, a)), r.push(a);
|
|
977
944
|
}
|
|
978
945
|
return r;
|
|
979
946
|
}
|
|
980
|
-
function
|
|
947
|
+
function In(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
981
948
|
let a = e.length;
|
|
982
949
|
if (R(a === t.length, "Both input and output ranges must be the same length", "range-length"), a === 1) return () => t[0];
|
|
983
950
|
if (a === 2 && t[0] === t[1]) return () => t[1];
|
|
984
951
|
let o = e[0] === e[1];
|
|
985
952
|
e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());
|
|
986
|
-
let s =
|
|
953
|
+
let s = Fn(t, r, i), c = s.length, l = (n) => {
|
|
987
954
|
if (o && n < e[0]) return t[0];
|
|
988
955
|
let r = 0;
|
|
989
956
|
if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
|
|
990
|
-
let i = /* @__PURE__ */
|
|
957
|
+
let i = /* @__PURE__ */ Ee(e[r], e[r + 1], n);
|
|
991
958
|
return s[r](i);
|
|
992
959
|
};
|
|
993
|
-
return n ? (t) => l(
|
|
960
|
+
return n ? (t) => l(I(e[0], e[a - 1], t)) : l;
|
|
994
961
|
}
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
function In(e, t) {
|
|
962
|
+
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
|
|
963
|
+
function Ln(e, t) {
|
|
998
964
|
let n = e[e.length - 1];
|
|
999
965
|
for (let r = 1; r <= t; r++) {
|
|
1000
|
-
let i = /* @__PURE__ */
|
|
1001
|
-
e.push(
|
|
966
|
+
let i = /* @__PURE__ */ Ee(0, t, r);
|
|
967
|
+
e.push(tn(n, 1, i));
|
|
1002
968
|
}
|
|
1003
969
|
}
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
function Ln(e) {
|
|
970
|
+
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
|
|
971
|
+
function Rn(e) {
|
|
1007
972
|
let t = [0];
|
|
1008
|
-
return
|
|
973
|
+
return Ln(t, e.length - 1), t;
|
|
1009
974
|
}
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
function Rn(e, t) {
|
|
975
|
+
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
|
|
976
|
+
function zn(e, t) {
|
|
1013
977
|
return e.map((e) => e * t);
|
|
1014
978
|
}
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
return e.map(() => t || qe).splice(0, e.length - 1);
|
|
979
|
+
// node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
|
|
980
|
+
function Bn(e, t) {
|
|
981
|
+
return e.map(() => t || Je).splice(0, e.length - 1);
|
|
1019
982
|
}
|
|
1020
|
-
function
|
|
1021
|
-
let i = /* @__PURE__ */
|
|
983
|
+
function Vn({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
|
|
984
|
+
let i = /* @__PURE__ */ Ye(r) ? r.map(et) : et(r), a = {
|
|
1022
985
|
done: !1,
|
|
1023
986
|
value: t[0]
|
|
1024
|
-
}, o =
|
|
987
|
+
}, o = In(zn(n && n.length === t.length ? n : Rn(t), e), t, { ease: Array.isArray(i) ? i : Bn(t, i) });
|
|
1025
988
|
return {
|
|
1026
989
|
calculatedDuration: e,
|
|
1027
990
|
next: (t) => (a.value = o(t), a.done = t >= e, a)
|
|
1028
991
|
};
|
|
1029
992
|
}
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
let a = e.filter(Vn), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
|
|
993
|
+
// node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
|
|
994
|
+
var Hn = (e) => e !== null;
|
|
995
|
+
function Un(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
|
|
996
|
+
let a = e.filter(Hn), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
|
|
1035
997
|
return !o || r === void 0 ? a[o] : r;
|
|
1036
998
|
}
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
spring: An
|
|
999
|
+
// node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs
|
|
1000
|
+
var Wn = {
|
|
1001
|
+
decay: Pn,
|
|
1002
|
+
inertia: Pn,
|
|
1003
|
+
tween: Vn,
|
|
1004
|
+
keyframes: Vn,
|
|
1005
|
+
spring: jn
|
|
1045
1006
|
};
|
|
1046
|
-
function
|
|
1047
|
-
typeof e.type == "string" && (e.type =
|
|
1007
|
+
function Gn(e) {
|
|
1008
|
+
typeof e.type == "string" && (e.type = Wn[e.type]);
|
|
1048
1009
|
}
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
var Gn = class {
|
|
1010
|
+
// node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
|
|
1011
|
+
var Kn = class {
|
|
1052
1012
|
constructor() {
|
|
1053
1013
|
this.updateFinished();
|
|
1054
1014
|
}
|
|
@@ -1066,7 +1026,7 @@ var Gn = class {
|
|
|
1066
1026
|
then(e, t) {
|
|
1067
1027
|
return this.finished.then(e, t);
|
|
1068
1028
|
}
|
|
1069
|
-
},
|
|
1029
|
+
}, qn = (e) => e / 100, Jn = class extends Kn {
|
|
1070
1030
|
constructor(e) {
|
|
1071
1031
|
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
|
|
1072
1032
|
done: !1,
|
|
@@ -1074,13 +1034,13 @@ var Gn = class {
|
|
|
1074
1034
|
}, this.stop = () => {
|
|
1075
1035
|
let { motionValue: e } = this.options;
|
|
1076
1036
|
e && e.updatedAt !== U.now() && this.tick(U.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
|
|
1077
|
-
},
|
|
1037
|
+
}, dt.mainThread++, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause();
|
|
1078
1038
|
}
|
|
1079
1039
|
initAnimation() {
|
|
1080
1040
|
let { options: e } = this;
|
|
1081
|
-
|
|
1082
|
-
let { type: t =
|
|
1083
|
-
process.env.NODE_ENV !== "production" && s !==
|
|
1041
|
+
Gn(e);
|
|
1042
|
+
let { type: t = Vn, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Vn;
|
|
1043
|
+
process.env.NODE_ENV !== "production" && s !== Vn && R(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`, "spring-two-frames"), s !== Vn && typeof o[0] != "number" && (this.mixKeyframes = Te(qn, gn(o[0], o[1])), o = [0, 100]);
|
|
1084
1044
|
let c = s({
|
|
1085
1045
|
...e,
|
|
1086
1046
|
keyframes: o
|
|
@@ -1089,13 +1049,13 @@ var Gn = class {
|
|
|
1089
1049
|
...e,
|
|
1090
1050
|
keyframes: [...o].reverse(),
|
|
1091
1051
|
velocity: -a
|
|
1092
|
-
})), c.calculatedDuration === null && (c.calculatedDuration =
|
|
1052
|
+
})), c.calculatedDuration === null && (c.calculatedDuration = bn(c));
|
|
1093
1053
|
let { calculatedDuration: l } = c;
|
|
1094
1054
|
this.calculatedDuration = l, this.resolvedDuration = l + r, this.totalDuration = this.resolvedDuration * (n + 1) - r, this.generator = c;
|
|
1095
1055
|
}
|
|
1096
1056
|
updateTime(e) {
|
|
1097
1057
|
let t = Math.round(e - this.startTime) * this.playbackSpeed;
|
|
1098
|
-
this.holdTime === null ?
|
|
1058
|
+
this.currentTime = this.holdTime === null ? t : this.holdTime;
|
|
1099
1059
|
}
|
|
1100
1060
|
tick(e, t = !1) {
|
|
1101
1061
|
let { generator: n, totalDuration: r, mixKeyframes: i, mirroredGenerator: a, resolvedDuration: o, calculatedDuration: s } = this;
|
|
@@ -1107,14 +1067,14 @@ var Gn = class {
|
|
|
1107
1067
|
let v = this.currentTime, y = n;
|
|
1108
1068
|
if (u) {
|
|
1109
1069
|
let e = Math.min(this.currentTime, r) / o, t = Math.floor(e), n = e % 1;
|
|
1110
|
-
!n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v =
|
|
1070
|
+
!n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v = I(0, 1, n) * o;
|
|
1111
1071
|
}
|
|
1112
1072
|
let b;
|
|
1113
1073
|
_ ? (this.delayState.value = l[0], b = this.delayState) : b = y.next(v), i && !_ && (b.value = i(b.value));
|
|
1114
1074
|
let { done: x } = b;
|
|
1115
1075
|
!_ && s !== null && (x = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
|
|
1116
1076
|
let S = this.holdTime === null && (this.state === "finished" || this.state === "running" && x);
|
|
1117
|
-
return S && p !==
|
|
1077
|
+
return S && p !== Pn && (b.value = Un(l, this.options, h, this.speed)), m && m(b.value), S && this.finish(), b;
|
|
1118
1078
|
}
|
|
1119
1079
|
then(e, t) {
|
|
1120
1080
|
return this.finished.then(e, t);
|
|
@@ -1137,7 +1097,7 @@ var Gn = class {
|
|
|
1137
1097
|
if (e <= 0) return this.options.velocity || 0;
|
|
1138
1098
|
if (this.generator.velocity) return this.generator.velocity(e);
|
|
1139
1099
|
let t = this.generator.next(e).value;
|
|
1140
|
-
return
|
|
1100
|
+
return Nn((e) => this.generator.next(e).value, e, t);
|
|
1141
1101
|
}
|
|
1142
1102
|
get speed() {
|
|
1143
1103
|
return this.playbackSpeed;
|
|
@@ -1148,7 +1108,7 @@ var Gn = class {
|
|
|
1148
1108
|
}
|
|
1149
1109
|
play() {
|
|
1150
1110
|
if (this.isStopped) return;
|
|
1151
|
-
let { driver: e =
|
|
1111
|
+
let { driver: e = _n, startTime: t } = this.options;
|
|
1152
1112
|
this.driver ||= e((e) => this.tick(e)), this.options.onPlay?.();
|
|
1153
1113
|
let n = this.driver.now();
|
|
1154
1114
|
this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime === null ? this.startTime ||= t ?? n : this.startTime = n - this.holdTime, this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
|
|
@@ -1166,7 +1126,7 @@ var Gn = class {
|
|
|
1166
1126
|
this.holdTime = null, this.startTime = 0, this.tick(0), this.teardown(), this.options.onCancel?.();
|
|
1167
1127
|
}
|
|
1168
1128
|
teardown() {
|
|
1169
|
-
this.state = "idle", this.stopDriver(), this.startTime = this.holdTime = null,
|
|
1129
|
+
this.state = "idle", this.stopDriver(), this.startTime = this.holdTime = null, dt.mainThread--;
|
|
1170
1130
|
}
|
|
1171
1131
|
stopDriver() {
|
|
1172
1132
|
this.driver &&= (this.driver.stop(), void 0);
|
|
@@ -1178,14 +1138,12 @@ var Gn = class {
|
|
|
1178
1138
|
return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), e.observe(this);
|
|
1179
1139
|
}
|
|
1180
1140
|
};
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
function Jn(e) {
|
|
1141
|
+
// node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
|
|
1142
|
+
function Yn(e) {
|
|
1184
1143
|
for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
|
|
1185
1144
|
}
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
var X = (e) => e * 180 / Math.PI, Yn = (e) => Zn(X(Math.atan2(e[1], e[0]))), Xn = {
|
|
1145
|
+
// node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs
|
|
1146
|
+
var X = (e) => e * 180 / Math.PI, Xn = (e) => Qn(X(Math.atan2(e[1], e[0]))), Zn = {
|
|
1189
1147
|
x: 4,
|
|
1190
1148
|
y: 5,
|
|
1191
1149
|
translateX: 4,
|
|
@@ -1193,54 +1151,53 @@ var X = (e) => e * 180 / Math.PI, Yn = (e) => Zn(X(Math.atan2(e[1], e[0]))), Xn
|
|
|
1193
1151
|
scaleX: 0,
|
|
1194
1152
|
scaleY: 3,
|
|
1195
1153
|
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
|
|
1196
|
-
rotate:
|
|
1197
|
-
rotateZ:
|
|
1154
|
+
rotate: Xn,
|
|
1155
|
+
rotateZ: Xn,
|
|
1198
1156
|
skewX: (e) => X(Math.atan(e[1])),
|
|
1199
1157
|
skewY: (e) => X(Math.atan(e[2])),
|
|
1200
1158
|
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
|
|
1201
|
-
},
|
|
1159
|
+
}, Qn = (e) => (e %= 360, e < 0 && (e += 360), e), $n = Xn, er = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), tr = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), nr = {
|
|
1202
1160
|
x: 12,
|
|
1203
1161
|
y: 13,
|
|
1204
1162
|
z: 14,
|
|
1205
1163
|
translateX: 12,
|
|
1206
1164
|
translateY: 13,
|
|
1207
1165
|
translateZ: 14,
|
|
1208
|
-
scaleX:
|
|
1209
|
-
scaleY:
|
|
1210
|
-
scale: (e) => (
|
|
1211
|
-
rotateX: (e) =>
|
|
1212
|
-
rotateY: (e) =>
|
|
1213
|
-
rotateZ:
|
|
1214
|
-
rotate:
|
|
1166
|
+
scaleX: er,
|
|
1167
|
+
scaleY: tr,
|
|
1168
|
+
scale: (e) => (er(e) + tr(e)) / 2,
|
|
1169
|
+
rotateX: (e) => Qn(X(Math.atan2(e[6], e[5]))),
|
|
1170
|
+
rotateY: (e) => Qn(X(Math.atan2(-e[2], e[0]))),
|
|
1171
|
+
rotateZ: $n,
|
|
1172
|
+
rotate: $n,
|
|
1215
1173
|
skewX: (e) => X(Math.atan(e[4])),
|
|
1216
1174
|
skewY: (e) => X(Math.atan(e[1])),
|
|
1217
1175
|
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
|
|
1218
1176
|
};
|
|
1219
|
-
function
|
|
1177
|
+
function rr(e) {
|
|
1220
1178
|
return +!!e.includes("scale");
|
|
1221
1179
|
}
|
|
1222
|
-
function
|
|
1223
|
-
if (!e || e === "none") return
|
|
1180
|
+
function ir(e, t) {
|
|
1181
|
+
if (!e || e === "none") return rr(t);
|
|
1224
1182
|
let n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u), r, i;
|
|
1225
|
-
if (n) r =
|
|
1183
|
+
if (n) r = nr, i = n;
|
|
1226
1184
|
else {
|
|
1227
1185
|
let t = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
|
|
1228
|
-
r =
|
|
1186
|
+
r = Zn, i = t;
|
|
1229
1187
|
}
|
|
1230
|
-
if (!i) return
|
|
1231
|
-
let a = r[t], o = i[1].split(",").map(
|
|
1188
|
+
if (!i) return rr(t);
|
|
1189
|
+
let a = r[t], o = i[1].split(",").map(or);
|
|
1232
1190
|
return typeof a == "function" ? a(o) : o[a];
|
|
1233
1191
|
}
|
|
1234
|
-
var
|
|
1192
|
+
var ar = (e, t) => {
|
|
1235
1193
|
let { transform: n = "none" } = getComputedStyle(e);
|
|
1236
|
-
return
|
|
1194
|
+
return ir(n, t);
|
|
1237
1195
|
};
|
|
1238
|
-
function
|
|
1196
|
+
function or(e) {
|
|
1239
1197
|
return parseFloat(e.trim());
|
|
1240
1198
|
}
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
var or = [
|
|
1199
|
+
// node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs
|
|
1200
|
+
var sr = [
|
|
1244
1201
|
"transformPerspective",
|
|
1245
1202
|
"x",
|
|
1246
1203
|
"y",
|
|
@@ -1258,14 +1215,14 @@ var or = [
|
|
|
1258
1215
|
"skew",
|
|
1259
1216
|
"skewX",
|
|
1260
1217
|
"skewY"
|
|
1261
|
-
],
|
|
1218
|
+
], cr = /* @__PURE__ */ new Set([...sr, "pathRotation"]), lr = (e) => e === vt || e === K, ur = /* @__PURE__ */ new Set([
|
|
1262
1219
|
"x",
|
|
1263
1220
|
"y",
|
|
1264
1221
|
"z"
|
|
1265
|
-
]),
|
|
1266
|
-
function
|
|
1222
|
+
]), dr = sr.filter((e) => !ur.has(e));
|
|
1223
|
+
function fr(e) {
|
|
1267
1224
|
let t = [];
|
|
1268
|
-
return
|
|
1225
|
+
return dr.forEach((n) => {
|
|
1269
1226
|
let r = e.getValue(n);
|
|
1270
1227
|
r !== void 0 && (t.push([n, r.get()]), r.set(+!!n.startsWith("scale")));
|
|
1271
1228
|
}), t;
|
|
@@ -1283,18 +1240,17 @@ var Z = {
|
|
|
1283
1240
|
left: (e, { left: t }) => parseFloat(t),
|
|
1284
1241
|
bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
|
|
1285
1242
|
right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
|
|
1286
|
-
x: (e, { transform: t }) =>
|
|
1287
|
-
y: (e, { transform: t }) =>
|
|
1243
|
+
x: (e, { transform: t }) => ir(t, "x"),
|
|
1244
|
+
y: (e, { transform: t }) => ir(t, "y")
|
|
1288
1245
|
};
|
|
1289
1246
|
Z.translateX = Z.x, Z.translateY = Z.y;
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
if (pr) {
|
|
1247
|
+
// node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs
|
|
1248
|
+
var Q = /* @__PURE__ */ new Set(), pr = !1, mr = !1, hr = !1;
|
|
1249
|
+
function gr() {
|
|
1250
|
+
if (mr) {
|
|
1295
1251
|
let e = Array.from(Q).filter((e) => e.needsMeasurement), t = new Set(e.map((e) => e.element)), n = /* @__PURE__ */ new Map();
|
|
1296
1252
|
t.forEach((e) => {
|
|
1297
|
-
let t =
|
|
1253
|
+
let t = fr(e);
|
|
1298
1254
|
t.length && (n.set(e, t), e.render());
|
|
1299
1255
|
}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
|
|
1300
1256
|
e.render();
|
|
@@ -1306,22 +1262,22 @@ function hr() {
|
|
|
1306
1262
|
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
|
|
1307
1263
|
});
|
|
1308
1264
|
}
|
|
1309
|
-
|
|
1265
|
+
mr = !1, pr = !1, Q.forEach((e) => e.complete(hr)), Q.clear();
|
|
1310
1266
|
}
|
|
1311
|
-
function
|
|
1267
|
+
function _r() {
|
|
1312
1268
|
Q.forEach((e) => {
|
|
1313
|
-
e.readKeyframes(), e.needsMeasurement && (
|
|
1269
|
+
e.readKeyframes(), e.needsMeasurement && (mr = !0);
|
|
1314
1270
|
});
|
|
1315
1271
|
}
|
|
1316
|
-
function
|
|
1317
|
-
|
|
1272
|
+
function vr() {
|
|
1273
|
+
hr = !0, _r(), gr(), hr = !1;
|
|
1318
1274
|
}
|
|
1319
|
-
var
|
|
1275
|
+
var yr = class {
|
|
1320
1276
|
constructor(e, t, n, r, i, a = !1) {
|
|
1321
1277
|
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
|
|
1322
1278
|
}
|
|
1323
1279
|
scheduleResolve() {
|
|
1324
|
-
this.state = "scheduled", this.isAsync ? (Q.add(this),
|
|
1280
|
+
this.state = "scheduled", this.isAsync ? (Q.add(this), pr || (pr = !0, H.read(_r), H.resolveKeyframes(gr))) : (this.readKeyframes(), this.complete());
|
|
1325
1281
|
}
|
|
1326
1282
|
readKeyframes() {
|
|
1327
1283
|
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
|
|
@@ -1334,7 +1290,7 @@ var vr = class {
|
|
|
1334
1290
|
}
|
|
1335
1291
|
e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);
|
|
1336
1292
|
}
|
|
1337
|
-
|
|
1293
|
+
Yn(e);
|
|
1338
1294
|
}
|
|
1339
1295
|
setFinalKeyframe() {}
|
|
1340
1296
|
measureInitialState() {}
|
|
@@ -1349,73 +1305,67 @@ var vr = class {
|
|
|
1349
1305
|
resume() {
|
|
1350
1306
|
this.state === "pending" && this.scheduleResolve();
|
|
1351
1307
|
}
|
|
1352
|
-
},
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
}
|
|
1367
|
-
//#endregion
|
|
1368
|
-
//#region node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
|
|
1369
|
-
var Cr = /* @__PURE__ */ Sr(() => window.ScrollTimeline !== void 0, "scrollTimeline"), wr = /*@__PURE__*/ Sr(() => {
|
|
1308
|
+
}, br = (e) => e.startsWith("--");
|
|
1309
|
+
// node_modules/motion-dom/dist/es/render/dom/style-set.mjs
|
|
1310
|
+
function xr(e, t, n) {
|
|
1311
|
+
br(t) ? e.style.setProperty(t, n) : e.style[t] = n;
|
|
1312
|
+
}
|
|
1313
|
+
// node_modules/motion-dom/dist/es/utils/supports/flags.mjs
|
|
1314
|
+
var Sr = {};
|
|
1315
|
+
// node_modules/motion-dom/dist/es/utils/supports/memo.mjs
|
|
1316
|
+
function Cr(e, t) {
|
|
1317
|
+
let n = /* @__PURE__ */ Ce(e);
|
|
1318
|
+
return () => Sr[t] ?? n();
|
|
1319
|
+
}
|
|
1320
|
+
// node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
|
|
1321
|
+
var wr = /* @__PURE__ */ Cr(() => window.ScrollTimeline !== void 0, "scrollTimeline"), Tr = /*@__PURE__*/ Cr(() => {
|
|
1370
1322
|
try {
|
|
1371
1323
|
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
|
1372
1324
|
} catch {
|
|
1373
1325
|
return !1;
|
|
1374
1326
|
}
|
|
1375
1327
|
return !0;
|
|
1376
|
-
}, "linearEasing"),
|
|
1328
|
+
}, "linearEasing"), Er = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, Dr = {
|
|
1377
1329
|
linear: "linear",
|
|
1378
1330
|
ease: "ease",
|
|
1379
1331
|
easeIn: "ease-in",
|
|
1380
1332
|
easeOut: "ease-out",
|
|
1381
1333
|
easeInOut: "ease-in-out",
|
|
1382
|
-
circIn: /*@__PURE__*/
|
|
1334
|
+
circIn: /*@__PURE__*/ Er([
|
|
1383
1335
|
0,
|
|
1384
1336
|
.65,
|
|
1385
1337
|
.55,
|
|
1386
1338
|
1
|
|
1387
1339
|
]),
|
|
1388
|
-
circOut: /*@__PURE__*/
|
|
1340
|
+
circOut: /*@__PURE__*/ Er([
|
|
1389
1341
|
.55,
|
|
1390
1342
|
0,
|
|
1391
1343
|
1,
|
|
1392
1344
|
.45
|
|
1393
1345
|
]),
|
|
1394
|
-
backIn: /*@__PURE__*/
|
|
1346
|
+
backIn: /*@__PURE__*/ Er([
|
|
1395
1347
|
.31,
|
|
1396
1348
|
.01,
|
|
1397
1349
|
.66,
|
|
1398
1350
|
-.59
|
|
1399
1351
|
]),
|
|
1400
|
-
backOut: /*@__PURE__*/
|
|
1352
|
+
backOut: /*@__PURE__*/ Er([
|
|
1401
1353
|
.33,
|
|
1402
1354
|
1.53,
|
|
1403
1355
|
.69,
|
|
1404
1356
|
.99
|
|
1405
1357
|
])
|
|
1406
1358
|
};
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
function
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
//#region node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
|
|
1414
|
-
function Or(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
|
|
1359
|
+
// node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
|
|
1360
|
+
function Or(e, t) {
|
|
1361
|
+
if (e) return typeof e == "function" ? Tr() ? vn(e, t) : "ease-out" : /* @__PURE__ */ Ze(e) ? Er(e) : Array.isArray(e) ? e.map((e) => Or(e, t) || Dr.easeOut) : Dr[e];
|
|
1362
|
+
}
|
|
1363
|
+
// node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
|
|
1364
|
+
function kr(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
|
|
1415
1365
|
let u = { [t]: n };
|
|
1416
1366
|
c && (u.offset = c);
|
|
1417
|
-
let d =
|
|
1418
|
-
Array.isArray(d) && (u.easing = d),
|
|
1367
|
+
let d = Or(s, i);
|
|
1368
|
+
Array.isArray(d) && (u.easing = d), nt.value && dt.waapi++;
|
|
1419
1369
|
let f = {
|
|
1420
1370
|
delay: r,
|
|
1421
1371
|
duration: i,
|
|
@@ -1426,32 +1376,29 @@ function Or(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatTyp
|
|
|
1426
1376
|
};
|
|
1427
1377
|
l && (f.pseudoElement = l);
|
|
1428
1378
|
let p = e.animate(u, f);
|
|
1429
|
-
return
|
|
1430
|
-
|
|
1379
|
+
return nt.value && p.finished.finally(() => {
|
|
1380
|
+
dt.waapi--;
|
|
1431
1381
|
}), p;
|
|
1432
1382
|
}
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
function kr(e) {
|
|
1383
|
+
// node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
|
|
1384
|
+
function Ar(e) {
|
|
1436
1385
|
return typeof e == "function" && "applyToOptions" in e;
|
|
1437
1386
|
}
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
return kr(e) && wr() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
|
|
1387
|
+
// node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
|
|
1388
|
+
function jr({ type: e, ...t }) {
|
|
1389
|
+
return Ar(e) && Tr() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
|
|
1442
1390
|
}
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
var jr = class extends Gn {
|
|
1391
|
+
// node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
|
|
1392
|
+
var Mr = class extends Kn {
|
|
1446
1393
|
constructor(e) {
|
|
1447
1394
|
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;
|
|
1448
1395
|
let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;
|
|
1449
1396
|
this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e, R(typeof e.type != "string", "Mini animate() doesn't support \"type\" as a string.", "mini-spring");
|
|
1450
|
-
let c =
|
|
1451
|
-
this.animation =
|
|
1397
|
+
let c = jr(e);
|
|
1398
|
+
this.animation = kr(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
|
|
1452
1399
|
if (this.finishedTime = this.time, !i) {
|
|
1453
|
-
let e =
|
|
1454
|
-
this.updateMotionValue && this.updateMotionValue(e),
|
|
1400
|
+
let e = Un(r, this.options, o, this.speed);
|
|
1401
|
+
this.updateMotionValue && this.updateMotionValue(e), xr(t, n, e), this.animation.cancel();
|
|
1455
1402
|
}
|
|
1456
1403
|
s?.(), this.notifyFinished();
|
|
1457
1404
|
};
|
|
@@ -1474,7 +1421,7 @@ var jr = class extends Gn {
|
|
|
1474
1421
|
if (this.isStopped) return;
|
|
1475
1422
|
this.isStopped = !0;
|
|
1476
1423
|
let { state: e } = this;
|
|
1477
|
-
e
|
|
1424
|
+
e !== "idle" && e !== "finished" && (this.updateMotionValue ? this.updateMotionValue() : this.commitStyles(), this.isPseudoElement || this.cancel());
|
|
1478
1425
|
}
|
|
1479
1426
|
commitStyles() {
|
|
1480
1427
|
let e = this.options?.element;
|
|
@@ -1511,24 +1458,23 @@ var jr = class extends Gn {
|
|
|
1511
1458
|
this.manualStartTime = this.animation.startTime = e;
|
|
1512
1459
|
}
|
|
1513
1460
|
attachTimeline({ timeline: e, rangeStart: t, rangeEnd: n, observe: r }) {
|
|
1514
|
-
return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e &&
|
|
1461
|
+
return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && wr() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), we) : r(this);
|
|
1515
1462
|
}
|
|
1516
|
-
},
|
|
1517
|
-
anticipate:
|
|
1518
|
-
backInOut:
|
|
1519
|
-
circInOut:
|
|
1463
|
+
}, Nr = {
|
|
1464
|
+
anticipate: He,
|
|
1465
|
+
backInOut: Ve,
|
|
1466
|
+
circInOut: Ge
|
|
1520
1467
|
};
|
|
1521
|
-
function Nr(e) {
|
|
1522
|
-
return e in Mr;
|
|
1523
|
-
}
|
|
1524
1468
|
function Pr(e) {
|
|
1525
|
-
|
|
1469
|
+
return e in Nr;
|
|
1526
1470
|
}
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1471
|
+
function Fr(e) {
|
|
1472
|
+
typeof e.ease == "string" && Pr(e.ease) && (e.ease = Nr[e.ease]);
|
|
1473
|
+
}
|
|
1474
|
+
// node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs
|
|
1475
|
+
var Ir = 10, Lr = class extends Mr {
|
|
1530
1476
|
constructor(e) {
|
|
1531
|
-
|
|
1477
|
+
Fr(e), Gn(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
|
|
1532
1478
|
}
|
|
1533
1479
|
updateMotionValue(e) {
|
|
1534
1480
|
let { motionValue: t, onUpdate: n, onComplete: r, element: i, ...a } = this.options;
|
|
@@ -1537,47 +1483,43 @@ var Fr = 10, Ir = class extends jr {
|
|
|
1537
1483
|
t.set(e);
|
|
1538
1484
|
return;
|
|
1539
1485
|
}
|
|
1540
|
-
let o = new
|
|
1486
|
+
let o = new Jn({
|
|
1541
1487
|
...a,
|
|
1542
1488
|
autoplay: !1
|
|
1543
|
-
}), s = Math.max(
|
|
1544
|
-
i && u &&
|
|
1489
|
+
}), s = Math.max(Ir, U.now() - this.startTime), c = I(0, Ir, s - Ir), l = o.sample(s).value, { name: u } = this.options;
|
|
1490
|
+
i && u && xr(i, u, l), t.setWithVelocity(o.sample(Math.max(0, s - c)).value, l, c), o.stop();
|
|
1545
1491
|
}
|
|
1546
|
-
},
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
function Rr(e) {
|
|
1492
|
+
}, Rr = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (J.test(e) || e === "0") && !e.startsWith("url("));
|
|
1493
|
+
// node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
|
|
1494
|
+
function zr(e) {
|
|
1550
1495
|
let t = e[0];
|
|
1551
1496
|
if (e.length === 1) return !0;
|
|
1552
1497
|
for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
|
|
1553
1498
|
}
|
|
1554
|
-
function
|
|
1499
|
+
function Br(e, t, n, r) {
|
|
1555
1500
|
let i = e[0];
|
|
1556
1501
|
if (i === null) return !1;
|
|
1557
1502
|
if (t === "display" || t === "visibility") return !0;
|
|
1558
|
-
let a = e[e.length - 1], o =
|
|
1559
|
-
return
|
|
1503
|
+
let a = e[e.length - 1], o = Rr(i, t), s = Rr(a, t);
|
|
1504
|
+
return L(o === s, `You are trying to animate ${t} from "${i}" to "${a}". "${o ? a : i}" is not an animatable value.`, "value-not-animatable"), !o || !s ? !1 : zr(e) || (n === "spring" || Ar(n)) && r;
|
|
1560
1505
|
}
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
function Br(e) {
|
|
1506
|
+
// node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
|
|
1507
|
+
function Vr(e) {
|
|
1564
1508
|
e.duration = 0, e.type = "keyframes";
|
|
1565
1509
|
}
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
var Vr = new Set([
|
|
1510
|
+
// node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
|
|
1511
|
+
var Hr = /* @__PURE__ */ new Set([
|
|
1569
1512
|
"opacity",
|
|
1570
1513
|
"clipPath",
|
|
1571
1514
|
"filter",
|
|
1572
1515
|
"transform"
|
|
1573
|
-
]),
|
|
1574
|
-
function
|
|
1575
|
-
for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" &&
|
|
1516
|
+
]), Ur = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
|
|
1517
|
+
function Wr(e) {
|
|
1518
|
+
for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && Ur.test(e[t])) return !0;
|
|
1576
1519
|
return !1;
|
|
1577
1520
|
}
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
var Wr = new Set([
|
|
1521
|
+
// node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs
|
|
1522
|
+
var Gr = /* @__PURE__ */ new Set([
|
|
1581
1523
|
"color",
|
|
1582
1524
|
"backgroundColor",
|
|
1583
1525
|
"outlineColor",
|
|
@@ -1588,16 +1530,15 @@ var Wr = new Set([
|
|
|
1588
1530
|
"borderRightColor",
|
|
1589
1531
|
"borderBottomColor",
|
|
1590
1532
|
"borderLeftColor"
|
|
1591
|
-
]),
|
|
1592
|
-
function
|
|
1533
|
+
]), Kr = /*@__PURE__*/ Ce(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
|
|
1534
|
+
function qr(e) {
|
|
1593
1535
|
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e;
|
|
1594
1536
|
if (!(t?.owner?.current instanceof HTMLElement)) return !1;
|
|
1595
1537
|
let { onUpdate: c, transformTemplate: l } = t.owner.getProps();
|
|
1596
|
-
return
|
|
1538
|
+
return Kr() && n && (Hr.has(n) || Gr.has(n) && Wr(s)) && (n !== "transform" || !l) && !c && !r && i !== "mirror" && a !== 0 && o !== "inertia";
|
|
1597
1539
|
}
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
var qr = 40, Jr = class extends Gn {
|
|
1540
|
+
// node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
|
|
1541
|
+
var Jr = 40, Yr = class extends Kn {
|
|
1601
1542
|
constructor({ autoplay: e = !0, delay: t = 0, type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: a = "loop", keyframes: o, name: s, motionValue: c, element: l, ...u }) {
|
|
1602
1543
|
super(), this.stop = () => {
|
|
1603
1544
|
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
|
|
@@ -1613,7 +1554,7 @@ var qr = 40, Jr = class extends Gn {
|
|
|
1613
1554
|
motionValue: c,
|
|
1614
1555
|
element: l,
|
|
1615
1556
|
...u
|
|
1616
|
-
}, f = l?.KeyframeResolver ||
|
|
1557
|
+
}, f = l?.KeyframeResolver || yr;
|
|
1617
1558
|
this.keyframeResolver = new f(o, (e, t, n) => this.onKeyframesResolved(e, t, d, !n), s, c, l), this.keyframeResolver?.scheduleResolve();
|
|
1618
1559
|
}
|
|
1619
1560
|
onKeyframesResolved(e, t, n, r) {
|
|
@@ -1621,25 +1562,25 @@ var qr = 40, Jr = class extends Gn {
|
|
|
1621
1562
|
let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
|
|
1622
1563
|
this.resolvedAt = U.now();
|
|
1623
1564
|
let u = !0;
|
|
1624
|
-
|
|
1565
|
+
Br(e, i, a, o) || (u = !1, (z.instantAnimations || !s) && l?.(Un(e, n, t)), e[0] = e[e.length - 1], Vr(n), n.repeat = 0);
|
|
1625
1566
|
let d = {
|
|
1626
|
-
startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt >
|
|
1567
|
+
startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > Jr ? this.resolvedAt : this.createdAt : void 0,
|
|
1627
1568
|
finalKeyframe: t,
|
|
1628
1569
|
...n,
|
|
1629
1570
|
keyframes: e
|
|
1630
|
-
}, f = u && !c &&
|
|
1571
|
+
}, f = u && !c && qr(d), p = d.motionValue?.owner?.current, m;
|
|
1631
1572
|
if (f) try {
|
|
1632
|
-
m = new
|
|
1573
|
+
m = new Lr({
|
|
1633
1574
|
...d,
|
|
1634
1575
|
element: p
|
|
1635
1576
|
});
|
|
1636
1577
|
} catch {
|
|
1637
|
-
m = new
|
|
1578
|
+
m = new Jn(d);
|
|
1638
1579
|
}
|
|
1639
|
-
else m = new
|
|
1580
|
+
else m = new Jn(d);
|
|
1640
1581
|
m.finished.then(() => {
|
|
1641
1582
|
this.notifyFinished();
|
|
1642
|
-
}).catch(
|
|
1583
|
+
}).catch(we), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
|
|
1643
1584
|
}
|
|
1644
1585
|
get finished() {
|
|
1645
1586
|
return this._animation ? this.animation.finished : this._finished;
|
|
@@ -1648,7 +1589,7 @@ var qr = 40, Jr = class extends Gn {
|
|
|
1648
1589
|
return this.finished.finally(e).then(() => {});
|
|
1649
1590
|
}
|
|
1650
1591
|
get animation() {
|
|
1651
|
-
return this._animation || (this.keyframeResolver?.resume(),
|
|
1592
|
+
return this._animation || (this.keyframeResolver?.resume(), vr()), this._animation;
|
|
1652
1593
|
}
|
|
1653
1594
|
get duration() {
|
|
1654
1595
|
return this.animation.duration;
|
|
@@ -1689,7 +1630,7 @@ var qr = 40, Jr = class extends Gn {
|
|
|
1689
1630
|
cancel() {
|
|
1690
1631
|
this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
|
|
1691
1632
|
}
|
|
1692
|
-
},
|
|
1633
|
+
}, Xr = class {
|
|
1693
1634
|
constructor(e) {
|
|
1694
1635
|
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
|
|
1695
1636
|
}
|
|
@@ -1729,10 +1670,10 @@ var qr = 40, Jr = class extends Gn {
|
|
|
1729
1670
|
return this.getAll("startTime");
|
|
1730
1671
|
}
|
|
1731
1672
|
get duration() {
|
|
1732
|
-
return
|
|
1673
|
+
return Zr(this.animations, "duration");
|
|
1733
1674
|
}
|
|
1734
1675
|
get iterationDuration() {
|
|
1735
|
-
return
|
|
1676
|
+
return Zr(this.animations, "iterationDuration");
|
|
1736
1677
|
}
|
|
1737
1678
|
runAll(e) {
|
|
1738
1679
|
this.animations.forEach((t) => t[e]());
|
|
@@ -1750,7 +1691,7 @@ var qr = 40, Jr = class extends Gn {
|
|
|
1750
1691
|
this.runAll("complete");
|
|
1751
1692
|
}
|
|
1752
1693
|
};
|
|
1753
|
-
function
|
|
1694
|
+
function Zr(e, t) {
|
|
1754
1695
|
let n = 0;
|
|
1755
1696
|
for (let r = 0; r < e.length; r++) {
|
|
1756
1697
|
let i = e[r][t];
|
|
@@ -1758,13 +1699,12 @@ function Xr(e, t) {
|
|
|
1758
1699
|
}
|
|
1759
1700
|
return n;
|
|
1760
1701
|
}
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
var Zr = class extends Yr {
|
|
1702
|
+
// node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs
|
|
1703
|
+
var Qr = class extends Xr {
|
|
1764
1704
|
then(e, t) {
|
|
1765
1705
|
return this.finished.finally(e).then(() => {});
|
|
1766
1706
|
}
|
|
1767
|
-
},
|
|
1707
|
+
}, $r = 30, ei = (e) => !isNaN(parseFloat(e)), ti = { current: void 0 }, ni = class {
|
|
1768
1708
|
constructor(e, t = {}) {
|
|
1769
1709
|
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
|
|
1770
1710
|
let t = U.now();
|
|
@@ -1772,16 +1712,16 @@ var Zr = class extends Yr {
|
|
|
1772
1712
|
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
|
|
1773
1713
|
}
|
|
1774
1714
|
setCurrent(e) {
|
|
1775
|
-
this.current = e, this.updatedAt = U.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity =
|
|
1715
|
+
this.current = e, this.updatedAt = U.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = ei(this.current));
|
|
1776
1716
|
}
|
|
1777
1717
|
setPrevFrameValue(e = this.current) {
|
|
1778
1718
|
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
|
|
1779
1719
|
}
|
|
1780
1720
|
onChange(e) {
|
|
1781
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1721
|
+
return process.env.NODE_ENV !== "production" && Ae(!1, "value.onChange(callback) is deprecated. Switch to value.on(\"change\", callback)."), this.on("change", e);
|
|
1782
1722
|
}
|
|
1783
1723
|
on(e, t) {
|
|
1784
|
-
this.events[e] || (this.events[e] = new
|
|
1724
|
+
this.events[e] || (this.events[e] = new De());
|
|
1785
1725
|
let n = this.events[e].add(t);
|
|
1786
1726
|
return e === "change" ? () => {
|
|
1787
1727
|
n(), H.read(() => {
|
|
@@ -1814,16 +1754,16 @@ var Zr = class extends Yr {
|
|
|
1814
1754
|
this.dependents && this.dependents.delete(e);
|
|
1815
1755
|
}
|
|
1816
1756
|
get() {
|
|
1817
|
-
return
|
|
1757
|
+
return ti.current && ti.current.push(this), this.current;
|
|
1818
1758
|
}
|
|
1819
1759
|
getPrevious() {
|
|
1820
1760
|
return this.prev;
|
|
1821
1761
|
}
|
|
1822
1762
|
getVelocity() {
|
|
1823
1763
|
let e = U.now();
|
|
1824
|
-
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt >
|
|
1825
|
-
let t = Math.min(this.updatedAt - this.prevUpdatedAt,
|
|
1826
|
-
return /* @__PURE__ */
|
|
1764
|
+
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > $r) return 0;
|
|
1765
|
+
let t = Math.min(this.updatedAt - this.prevUpdatedAt, $r);
|
|
1766
|
+
return /* @__PURE__ */ Oe(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
|
|
1827
1767
|
}
|
|
1828
1768
|
start(e) {
|
|
1829
1769
|
return this.stop(), new Promise((t) => {
|
|
@@ -1845,12 +1785,11 @@ var Zr = class extends Yr {
|
|
|
1845
1785
|
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
1846
1786
|
}
|
|
1847
1787
|
};
|
|
1848
|
-
function ni(e, t) {
|
|
1849
|
-
return new ti(e, t);
|
|
1850
|
-
}
|
|
1851
|
-
//#endregion
|
|
1852
|
-
//#region node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
|
|
1853
1788
|
function ri(e, t) {
|
|
1789
|
+
return new ni(e, t);
|
|
1790
|
+
}
|
|
1791
|
+
// node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
|
|
1792
|
+
function ii(e, t) {
|
|
1854
1793
|
if (e?.inherit && t) {
|
|
1855
1794
|
let { inherit: n, ...r } = e;
|
|
1856
1795
|
return {
|
|
@@ -1860,28 +1799,26 @@ function ri(e, t) {
|
|
|
1860
1799
|
}
|
|
1861
1800
|
return e;
|
|
1862
1801
|
}
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
function ii(e, t) {
|
|
1802
|
+
// node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
|
|
1803
|
+
function ai(e, t) {
|
|
1866
1804
|
let n = e?.[t] ?? e?.default ?? e;
|
|
1867
|
-
return n === e ? n :
|
|
1805
|
+
return n === e ? n : ii(n, e);
|
|
1868
1806
|
}
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
var ai = {
|
|
1807
|
+
// node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
|
|
1808
|
+
var oi = {
|
|
1872
1809
|
type: "spring",
|
|
1873
1810
|
stiffness: 500,
|
|
1874
1811
|
damping: 25,
|
|
1875
1812
|
restSpeed: 10
|
|
1876
|
-
},
|
|
1813
|
+
}, si = (e) => ({
|
|
1877
1814
|
type: "spring",
|
|
1878
1815
|
stiffness: 550,
|
|
1879
1816
|
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
|
|
1880
1817
|
restSpeed: 10
|
|
1881
|
-
}),
|
|
1818
|
+
}), ci = {
|
|
1882
1819
|
type: "keyframes",
|
|
1883
1820
|
duration: .8
|
|
1884
|
-
},
|
|
1821
|
+
}, li = {
|
|
1885
1822
|
type: "keyframes",
|
|
1886
1823
|
ease: [
|
|
1887
1824
|
.25,
|
|
@@ -1890,7 +1827,7 @@ var ai = {
|
|
|
1890
1827
|
1
|
|
1891
1828
|
],
|
|
1892
1829
|
duration: .3
|
|
1893
|
-
},
|
|
1830
|
+
}, ui = (e, { keyframes: t }) => t.length > 2 ? ci : cr.has(e) ? e.startsWith("scale") ? si(t[1]) : oi : li, di = /* @__PURE__ */ new Set([
|
|
1894
1831
|
"when",
|
|
1895
1832
|
"delay",
|
|
1896
1833
|
"delayChildren",
|
|
@@ -1902,14 +1839,13 @@ var ai = {
|
|
|
1902
1839
|
"from",
|
|
1903
1840
|
"elapsed"
|
|
1904
1841
|
]);
|
|
1905
|
-
function
|
|
1906
|
-
for (let t in e) if (!
|
|
1842
|
+
function fi(e) {
|
|
1843
|
+
for (let t in e) if (!di.has(t)) return !0;
|
|
1907
1844
|
return !1;
|
|
1908
1845
|
}
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
let s = ii(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
|
|
1846
|
+
// node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
|
|
1847
|
+
var pi = (e, t, n, r = {}, i, a) => (o) => {
|
|
1848
|
+
let s = ai(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
|
|
1913
1849
|
l -= /* @__PURE__ */ B(c);
|
|
1914
1850
|
let u = {
|
|
1915
1851
|
keyframes: Array.isArray(n) ? n : [null, n],
|
|
@@ -1927,10 +1863,10 @@ var fi = (e, t, n, r = {}, i, a) => (o) => {
|
|
|
1927
1863
|
motionValue: t,
|
|
1928
1864
|
element: a ? void 0 : i
|
|
1929
1865
|
};
|
|
1930
|
-
|
|
1866
|
+
fi(s) || Object.assign(u, ui(e, u)), u.duration &&= /* @__PURE__ */ B(u.duration), u.repeatDelay &&= /* @__PURE__ */ B(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
|
|
1931
1867
|
let d = !1;
|
|
1932
|
-
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (
|
|
1933
|
-
let e =
|
|
1868
|
+
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Vr(u), u.delay === 0 && (d = !0)), (z.instantAnimations || z.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, Vr(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
|
|
1869
|
+
let e = Un(u.keyframes, s);
|
|
1934
1870
|
if (e !== void 0) {
|
|
1935
1871
|
H.update(() => {
|
|
1936
1872
|
u.onUpdate(e), u.onComplete();
|
|
@@ -1938,126 +1874,116 @@ var fi = (e, t, n, r = {}, i, a) => (o) => {
|
|
|
1938
1874
|
return;
|
|
1939
1875
|
}
|
|
1940
1876
|
}
|
|
1941
|
-
return s.isSync ? new
|
|
1942
|
-
},
|
|
1943
|
-
function
|
|
1944
|
-
let t =
|
|
1877
|
+
return s.isSync ? new Jn(u) : new Yr(u);
|
|
1878
|
+
}, mi = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
|
|
1879
|
+
function hi(e) {
|
|
1880
|
+
let t = mi.exec(e);
|
|
1945
1881
|
if (!t) return [,];
|
|
1946
1882
|
let [, n, r, i] = t;
|
|
1947
1883
|
return [`--${n ?? r}`, i];
|
|
1948
1884
|
}
|
|
1949
|
-
var
|
|
1950
|
-
function
|
|
1951
|
-
R(n <=
|
|
1952
|
-
let [r, i] =
|
|
1885
|
+
var gi = 4;
|
|
1886
|
+
function _i(e, t, n = 1) {
|
|
1887
|
+
R(n <= gi, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
|
|
1888
|
+
let [r, i] = hi(e);
|
|
1953
1889
|
if (!r) return;
|
|
1954
1890
|
let a = window.getComputedStyle(t).getPropertyValue(r);
|
|
1955
1891
|
if (a) {
|
|
1956
1892
|
let e = a.trim();
|
|
1957
|
-
return
|
|
1893
|
+
return be(e) ? parseFloat(e) : e;
|
|
1958
1894
|
}
|
|
1959
|
-
return
|
|
1895
|
+
return ht(i) ? _i(i, t, n + 1) : i;
|
|
1960
1896
|
}
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
function _i(e) {
|
|
1897
|
+
// node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
|
|
1898
|
+
function vi(e) {
|
|
1964
1899
|
let t = [{}, {}];
|
|
1965
1900
|
return e?.values.forEach((e, n) => {
|
|
1966
1901
|
t[0][n] = e.get(), t[1][n] = e.getVelocity();
|
|
1967
1902
|
}), t;
|
|
1968
1903
|
}
|
|
1969
|
-
function
|
|
1904
|
+
function yi(e, t, n, r) {
|
|
1970
1905
|
if (typeof t == "function") {
|
|
1971
|
-
let [i, a] =
|
|
1906
|
+
let [i, a] = vi(r);
|
|
1972
1907
|
t = t(n === void 0 ? e.custom : n, i, a);
|
|
1973
1908
|
}
|
|
1974
1909
|
if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
|
|
1975
|
-
let [i, a] =
|
|
1910
|
+
let [i, a] = vi(r);
|
|
1976
1911
|
t = t(n === void 0 ? e.custom : n, i, a);
|
|
1977
1912
|
}
|
|
1978
1913
|
return t;
|
|
1979
1914
|
}
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
function yi(e, t, n) {
|
|
1915
|
+
// node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs
|
|
1916
|
+
function bi(e, t, n) {
|
|
1983
1917
|
let r = e.getProps();
|
|
1984
|
-
return
|
|
1918
|
+
return yi(r, t, n === void 0 ? r.custom : n, e);
|
|
1985
1919
|
}
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
var bi = new Set([
|
|
1920
|
+
// node_modules/motion-dom/dist/es/render/utils/keys-position.mjs
|
|
1921
|
+
var xi = /* @__PURE__ */ new Set([
|
|
1989
1922
|
"width",
|
|
1990
1923
|
"height",
|
|
1991
1924
|
"top",
|
|
1992
1925
|
"left",
|
|
1993
1926
|
"right",
|
|
1994
1927
|
"bottom",
|
|
1995
|
-
...
|
|
1996
|
-
]),
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
let { transitionEnd: n = {}, transition: r = {}, ...i } = yi(e, t) || {};
|
|
1928
|
+
...sr
|
|
1929
|
+
]), Si = (e) => Array.isArray(e);
|
|
1930
|
+
// node_modules/motion-dom/dist/es/render/utils/setters.mjs
|
|
1931
|
+
function Ci(e, t, n) {
|
|
1932
|
+
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, ri(n));
|
|
1933
|
+
}
|
|
1934
|
+
function wi(e) {
|
|
1935
|
+
return Si(e) ? e[e.length - 1] || 0 : e;
|
|
1936
|
+
}
|
|
1937
|
+
function Ti(e, t) {
|
|
1938
|
+
let { transitionEnd: n = {}, transition: r = {}, ...i } = bi(e, t) || {};
|
|
2007
1939
|
i = {
|
|
2008
1940
|
...i,
|
|
2009
1941
|
...n
|
|
2010
1942
|
};
|
|
2011
|
-
for (let t in i)
|
|
1943
|
+
for (let t in i) Ci(e, t, wi(i[t]));
|
|
2012
1944
|
}
|
|
2013
|
-
|
|
2014
|
-
//#region node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
|
|
1945
|
+
// node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
|
|
2015
1946
|
var $ = (e) => !!(e && e.getVelocity);
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
function Ti(e) {
|
|
1947
|
+
// node_modules/motion-dom/dist/es/value/will-change/is.mjs
|
|
1948
|
+
function Ei(e) {
|
|
2019
1949
|
return !!($(e) && e.add);
|
|
2020
1950
|
}
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
function Ei(e, t) {
|
|
1951
|
+
// node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs
|
|
1952
|
+
function Di(e, t) {
|
|
2024
1953
|
let n = e.getValue("willChange");
|
|
2025
|
-
if (
|
|
1954
|
+
if (Ei(n)) return n.add(t);
|
|
2026
1955
|
if (!n && z.WillChange) {
|
|
2027
1956
|
let n = new z.WillChange("auto");
|
|
2028
1957
|
e.addValue("willChange", n), n.add(t);
|
|
2029
1958
|
}
|
|
2030
1959
|
}
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
function Di(e) {
|
|
1960
|
+
// node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
|
|
1961
|
+
function Oi(e) {
|
|
2034
1962
|
return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
|
|
2035
1963
|
}
|
|
2036
|
-
var
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
return e.props[Oi];
|
|
1964
|
+
var ki = "data-" + Oi("framerAppearId");
|
|
1965
|
+
// node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs
|
|
1966
|
+
function Ai(e) {
|
|
1967
|
+
return e.props[ki];
|
|
2041
1968
|
}
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
function Ai({ protectedKeys: e, needsAnimating: t }, n) {
|
|
1969
|
+
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
|
|
1970
|
+
function ji({ protectedKeys: e, needsAnimating: t }, n) {
|
|
2045
1971
|
let r = e.hasOwnProperty(n) && t[n] !== !0;
|
|
2046
1972
|
return t[n] = !1, r;
|
|
2047
1973
|
}
|
|
2048
|
-
function
|
|
1974
|
+
function Mi(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
2049
1975
|
let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();
|
|
2050
|
-
a = a ?
|
|
1976
|
+
a = a ? ii(a, c) : c;
|
|
2051
1977
|
let l = a?.reduceMotion, u = a?.skipAnimations;
|
|
2052
1978
|
r && (a = r);
|
|
2053
1979
|
let d = [], f = i && e.animationState && e.animationState.getState()[i], p = a?.path;
|
|
2054
1980
|
p && p.animateVisualElement(e, s, a, n, d);
|
|
2055
1981
|
for (let t in s) {
|
|
2056
1982
|
let r = e.getValue(t, e.latestValues[t] ?? null), i = s[t];
|
|
2057
|
-
if (i === void 0 || f &&
|
|
1983
|
+
if (i === void 0 || f && ji(f, t)) continue;
|
|
2058
1984
|
let o = {
|
|
2059
1985
|
delay: n,
|
|
2060
|
-
...
|
|
1986
|
+
...ai(a || {}, t)
|
|
2061
1987
|
};
|
|
2062
1988
|
u && (o.skipAnimations = !0);
|
|
2063
1989
|
let c = r.get();
|
|
@@ -2067,68 +1993,65 @@ function ji(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
2067
1993
|
}
|
|
2068
1994
|
let p = !1;
|
|
2069
1995
|
if (window.MotionHandoffAnimation) {
|
|
2070
|
-
let n =
|
|
1996
|
+
let n = Ai(e);
|
|
2071
1997
|
if (n) {
|
|
2072
1998
|
let e = window.MotionHandoffAnimation(n, t, H);
|
|
2073
1999
|
e !== null && (o.startTime = e, p = !0);
|
|
2074
2000
|
}
|
|
2075
2001
|
}
|
|
2076
|
-
|
|
2002
|
+
Di(e, t);
|
|
2077
2003
|
let m = l ?? e.shouldReduceMotion;
|
|
2078
|
-
r.start(
|
|
2004
|
+
r.start(pi(t, r, i, m && xi.has(t) ? { type: !1 } : o, e, p));
|
|
2079
2005
|
let h = r.animation;
|
|
2080
2006
|
h && d.push(h);
|
|
2081
2007
|
}
|
|
2082
2008
|
if (o) {
|
|
2083
2009
|
let t = () => H.update(() => {
|
|
2084
|
-
o &&
|
|
2010
|
+
o && Ti(e, o);
|
|
2085
2011
|
});
|
|
2086
2012
|
d.length ? Promise.all(d).then(t) : t();
|
|
2087
2013
|
}
|
|
2088
2014
|
return d;
|
|
2089
2015
|
}
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
var Mi = {
|
|
2016
|
+
// node_modules/motion-dom/dist/es/value/types/auto.mjs
|
|
2017
|
+
var Ni = {
|
|
2093
2018
|
test: (e) => e === "auto",
|
|
2094
2019
|
parse: (e) => e
|
|
2095
|
-
},
|
|
2096
|
-
|
|
2020
|
+
}, Pi = (e) => (t) => t.test(e), Fi = [
|
|
2021
|
+
vt,
|
|
2097
2022
|
K,
|
|
2098
|
-
|
|
2023
|
+
Mt,
|
|
2099
2024
|
G,
|
|
2025
|
+
Pt,
|
|
2100
2026
|
Nt,
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
//#endregion
|
|
2110
|
-
//#region node_modules/motion-dom/dist/es/value/types/complex/filter.mjs
|
|
2111
|
-
var Li = new Set([
|
|
2027
|
+
Ni
|
|
2028
|
+
], Ii = (e) => Fi.find(Pi(e));
|
|
2029
|
+
// node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
|
|
2030
|
+
function Li(e) {
|
|
2031
|
+
return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || Se(e);
|
|
2032
|
+
}
|
|
2033
|
+
// node_modules/motion-dom/dist/es/value/types/complex/filter.mjs
|
|
2034
|
+
var Ri = /* @__PURE__ */ new Set([
|
|
2112
2035
|
"brightness",
|
|
2113
2036
|
"contrast",
|
|
2114
2037
|
"saturate",
|
|
2115
2038
|
"opacity"
|
|
2116
2039
|
]);
|
|
2117
|
-
function
|
|
2040
|
+
function zi(e) {
|
|
2118
2041
|
let [t, n] = e.slice(0, -1).split("(");
|
|
2119
2042
|
if (t === "drop-shadow") return e;
|
|
2120
|
-
let [r] = n.match(
|
|
2043
|
+
let [r] = n.match(St) || [];
|
|
2121
2044
|
if (!r) return e;
|
|
2122
|
-
let i = n.replace(r, ""), a = +!!
|
|
2045
|
+
let i = n.replace(r, ""), a = +!!Ri.has(t);
|
|
2123
2046
|
return r !== n && (a *= 100), t + "(" + a + i + ")";
|
|
2124
2047
|
}
|
|
2125
|
-
var
|
|
2048
|
+
var Bi = /\b([a-z-]*)\(.*?\)/gu, Vi = {
|
|
2126
2049
|
...J,
|
|
2127
2050
|
getAnimatableNone: (e) => {
|
|
2128
|
-
let t = e.match(
|
|
2129
|
-
return t ? t.map(
|
|
2051
|
+
let t = e.match(Bi);
|
|
2052
|
+
return t ? t.map(zi).join(" ") : e;
|
|
2130
2053
|
}
|
|
2131
|
-
},
|
|
2054
|
+
}, Hi = {
|
|
2132
2055
|
...J,
|
|
2133
2056
|
getAnimatableNone: (e) => {
|
|
2134
2057
|
let t = J.parse(e);
|
|
@@ -2137,10 +2060,10 @@ var zi = /\b([a-z-]*)\(.*?\)/gu, Bi = {
|
|
|
2137
2060
|
alpha: 1
|
|
2138
2061
|
} : e));
|
|
2139
2062
|
}
|
|
2140
|
-
}, Hi = {
|
|
2141
|
-
..._t,
|
|
2142
|
-
transform: Math.round
|
|
2143
2063
|
}, Ui = {
|
|
2064
|
+
...vt,
|
|
2065
|
+
transform: Math.round
|
|
2066
|
+
}, Wi = {
|
|
2144
2067
|
borderWidth: K,
|
|
2145
2068
|
borderTopWidth: K,
|
|
2146
2069
|
borderRightWidth: K,
|
|
@@ -2196,10 +2119,10 @@ var zi = /\b([a-z-]*)\(.*?\)/gu, Bi = {
|
|
|
2196
2119
|
rotateX: G,
|
|
2197
2120
|
rotateY: G,
|
|
2198
2121
|
rotateZ: G,
|
|
2199
|
-
scale:
|
|
2200
|
-
scaleX:
|
|
2201
|
-
scaleY:
|
|
2202
|
-
scaleZ:
|
|
2122
|
+
scale: bt,
|
|
2123
|
+
scaleX: bt,
|
|
2124
|
+
scaleY: bt,
|
|
2125
|
+
scaleZ: bt,
|
|
2203
2126
|
skew: G,
|
|
2204
2127
|
skewX: G,
|
|
2205
2128
|
skewY: G,
|
|
@@ -2212,16 +2135,16 @@ var zi = /\b([a-z-]*)\(.*?\)/gu, Bi = {
|
|
|
2212
2135
|
z: K,
|
|
2213
2136
|
perspective: K,
|
|
2214
2137
|
transformPerspective: K,
|
|
2215
|
-
opacity:
|
|
2216
|
-
originX:
|
|
2217
|
-
originY:
|
|
2138
|
+
opacity: yt,
|
|
2139
|
+
originX: Ft,
|
|
2140
|
+
originY: Ft,
|
|
2218
2141
|
originZ: K,
|
|
2219
|
-
zIndex:
|
|
2220
|
-
fillOpacity:
|
|
2221
|
-
strokeOpacity:
|
|
2222
|
-
numOctaves:
|
|
2223
|
-
},
|
|
2224
|
-
...
|
|
2142
|
+
zIndex: Ui,
|
|
2143
|
+
fillOpacity: yt,
|
|
2144
|
+
strokeOpacity: yt,
|
|
2145
|
+
numOctaves: Ui
|
|
2146
|
+
}, Gi = {
|
|
2147
|
+
...Wi,
|
|
2225
2148
|
color: q,
|
|
2226
2149
|
backgroundColor: q,
|
|
2227
2150
|
outlineColor: q,
|
|
@@ -2232,33 +2155,31 @@ var zi = /\b([a-z-]*)\(.*?\)/gu, Bi = {
|
|
|
2232
2155
|
borderRightColor: q,
|
|
2233
2156
|
borderBottomColor: q,
|
|
2234
2157
|
borderLeftColor: q,
|
|
2235
|
-
filter:
|
|
2236
|
-
WebkitFilter:
|
|
2237
|
-
mask:
|
|
2238
|
-
WebkitMask:
|
|
2239
|
-
},
|
|
2240
|
-
function
|
|
2241
|
-
let n =
|
|
2242
|
-
return
|
|
2243
|
-
}
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
var Ji = new Set([
|
|
2158
|
+
filter: Vi,
|
|
2159
|
+
WebkitFilter: Vi,
|
|
2160
|
+
mask: Hi,
|
|
2161
|
+
WebkitMask: Hi
|
|
2162
|
+
}, Ki = (e) => Gi[e], qi = /*@__PURE__*/ new Set([Vi, Hi]);
|
|
2163
|
+
function Ji(e, t) {
|
|
2164
|
+
let n = Ki(e);
|
|
2165
|
+
return qi.has(n) || (n = J), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
|
|
2166
|
+
}
|
|
2167
|
+
// node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
|
|
2168
|
+
var Yi = /* @__PURE__ */ new Set([
|
|
2247
2169
|
"auto",
|
|
2248
2170
|
"none",
|
|
2249
2171
|
"0"
|
|
2250
2172
|
]);
|
|
2251
|
-
function
|
|
2173
|
+
function Xi(e, t, n) {
|
|
2252
2174
|
let r = 0, i;
|
|
2253
2175
|
for (; r < e.length && !i;) {
|
|
2254
2176
|
let t = e[r];
|
|
2255
|
-
typeof t == "string" && !
|
|
2177
|
+
typeof t == "string" && !Yi.has(t) && Gt(t).values.length && (i = e[r]), r++;
|
|
2256
2178
|
}
|
|
2257
|
-
if (i && n) for (let r of t) e[r] =
|
|
2179
|
+
if (i && n) for (let r of t) e[r] = Ji(n, i);
|
|
2258
2180
|
}
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
var Xi = class extends vr {
|
|
2181
|
+
// node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
|
|
2182
|
+
var Zi = class extends yr {
|
|
2262
2183
|
constructor(e, t, n, r, i) {
|
|
2263
2184
|
super(e, t, n, r, i, !0);
|
|
2264
2185
|
}
|
|
@@ -2268,27 +2189,26 @@ var Xi = class extends vr {
|
|
|
2268
2189
|
super.readKeyframes();
|
|
2269
2190
|
for (let n = 0; n < e.length; n++) {
|
|
2270
2191
|
let r = e[n];
|
|
2271
|
-
if (typeof r == "string" && (r = r.trim(),
|
|
2272
|
-
let i =
|
|
2192
|
+
if (typeof r == "string" && (r = r.trim(), ht(r))) {
|
|
2193
|
+
let i = _i(r, t.current);
|
|
2273
2194
|
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
|
|
2274
2195
|
}
|
|
2275
2196
|
}
|
|
2276
|
-
if (this.resolveNoneKeyframes(), !
|
|
2277
|
-
let [r, i] = e, a =
|
|
2278
|
-
if (
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2197
|
+
if (this.resolveNoneKeyframes(), !xi.has(n) || e.length !== 2) return;
|
|
2198
|
+
let [r, i] = e, a = Ii(r), o = Ii(i);
|
|
2199
|
+
if (_t(r) !== _t(i) && Z[n]) this.needsMeasurement = !0;
|
|
2200
|
+
else if (a !== o) {
|
|
2201
|
+
if (lr(a) && lr(o)) for (let t = 0; t < e.length; t++) {
|
|
2202
|
+
let n = e[t];
|
|
2203
|
+
typeof n == "string" && (e[t] = parseFloat(n));
|
|
2204
|
+
}
|
|
2205
|
+
else Z[n] && (this.needsMeasurement = !0);
|
|
2285
2206
|
}
|
|
2286
|
-
else Z[n] && (this.needsMeasurement = !0);
|
|
2287
2207
|
}
|
|
2288
2208
|
resolveNoneKeyframes() {
|
|
2289
2209
|
let { unresolvedKeyframes: e, name: t } = this, n = [];
|
|
2290
|
-
for (let t = 0; t < e.length; t++) (e[t] === null ||
|
|
2291
|
-
n.length &&
|
|
2210
|
+
for (let t = 0; t < e.length; t++) (e[t] === null || Li(e[t])) && n.push(t);
|
|
2211
|
+
n.length && Xi(e, n, t);
|
|
2292
2212
|
}
|
|
2293
2213
|
measureInitialState() {
|
|
2294
2214
|
let { element: e, unresolvedKeyframes: t, name: n } = this;
|
|
@@ -2308,9 +2228,8 @@ var Xi = class extends vr {
|
|
|
2308
2228
|
}), this.resolveNoneKeyframes();
|
|
2309
2229
|
}
|
|
2310
2230
|
};
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
function Zi(e, t, n) {
|
|
2231
|
+
// node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
|
|
2232
|
+
function Qi(e, t, n) {
|
|
2314
2233
|
if (e == null) return [];
|
|
2315
2234
|
if (e instanceof EventTarget) return [e];
|
|
2316
2235
|
if (typeof e == "string") {
|
|
@@ -2321,43 +2240,37 @@ function Zi(e, t, n) {
|
|
|
2321
2240
|
}
|
|
2322
2241
|
return Array.from(e).filter((e) => e != null);
|
|
2323
2242
|
}
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
//#endregion
|
|
2328
|
-
//#region node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
|
|
2329
|
-
function ta(e) {
|
|
2330
|
-
return be(e) && "ownerSVGElement" in e;
|
|
2331
|
-
}
|
|
2332
|
-
//#endregion
|
|
2333
|
-
//#region node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
|
|
2243
|
+
// node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
|
|
2244
|
+
var $i = (e, t) => t && typeof e == "number" ? t.transform(e) : e, { schedule: ea, cancel: ta } = /* @__PURE__ */ at(queueMicrotask, !1);
|
|
2245
|
+
// node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
|
|
2334
2246
|
function na(e) {
|
|
2335
|
-
return
|
|
2247
|
+
return xe(e) && "ownerSVGElement" in e;
|
|
2336
2248
|
}
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2249
|
+
// node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
|
|
2250
|
+
function ra(e) {
|
|
2251
|
+
return na(e) && e.tagName === "svg";
|
|
2252
|
+
}
|
|
2253
|
+
// node_modules/motion-dom/dist/es/value/types/utils/find.mjs
|
|
2254
|
+
var ia = [
|
|
2255
|
+
...Fi,
|
|
2341
2256
|
q,
|
|
2342
2257
|
J
|
|
2343
|
-
],
|
|
2258
|
+
], aa = (e) => ia.find(Pi(e)), oa = () => ({
|
|
2344
2259
|
min: 0,
|
|
2345
2260
|
max: 0
|
|
2346
|
-
}),
|
|
2347
|
-
x:
|
|
2348
|
-
y:
|
|
2349
|
-
}),
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
function ca(e) {
|
|
2261
|
+
}), sa = () => ({
|
|
2262
|
+
x: oa(),
|
|
2263
|
+
y: oa()
|
|
2264
|
+
}), ca = /* @__PURE__ */ new WeakMap();
|
|
2265
|
+
// node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
|
|
2266
|
+
function la(e) {
|
|
2353
2267
|
return typeof e == "object" && !!e && typeof e.start == "function";
|
|
2354
2268
|
}
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
function la(e) {
|
|
2269
|
+
// node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
|
|
2270
|
+
function ua(e) {
|
|
2358
2271
|
return typeof e == "string" || Array.isArray(e);
|
|
2359
2272
|
}
|
|
2360
|
-
var
|
|
2273
|
+
var da = [
|
|
2361
2274
|
"initial",
|
|
2362
2275
|
"animate",
|
|
2363
2276
|
"whileInView",
|
|
@@ -2367,44 +2280,44 @@ var ua = [
|
|
|
2367
2280
|
"whileDrag",
|
|
2368
2281
|
"exit"
|
|
2369
2282
|
];
|
|
2370
|
-
|
|
2371
|
-
//#region node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
|
|
2372
|
-
function da(e) {
|
|
2373
|
-
return ca(e.animate) || ua.some((t) => la(e[t]));
|
|
2374
|
-
}
|
|
2283
|
+
// node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
|
|
2375
2284
|
function fa(e) {
|
|
2376
|
-
return
|
|
2285
|
+
return la(e.animate) || da.some((t) => ua(e[t]));
|
|
2286
|
+
}
|
|
2287
|
+
function pa(e) {
|
|
2288
|
+
return !!(fa(e) || e.variants);
|
|
2377
2289
|
}
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
function pa(e, t, n) {
|
|
2290
|
+
// node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
|
|
2291
|
+
function ma(e, t, n) {
|
|
2381
2292
|
for (let r in t) {
|
|
2382
2293
|
let i = t[r], a = n[r];
|
|
2383
2294
|
if ($(i)) e.addValue(r, i);
|
|
2384
|
-
else if ($(a)) e.addValue(r,
|
|
2385
|
-
else if (a !== i)
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2295
|
+
else if ($(a)) e.addValue(r, ri(i, { owner: e }));
|
|
2296
|
+
else if (a !== i) {
|
|
2297
|
+
if (e.hasValue(r)) {
|
|
2298
|
+
let t = e.getValue(r);
|
|
2299
|
+
t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);
|
|
2300
|
+
} else {
|
|
2301
|
+
let t = e.getStaticValue(r);
|
|
2302
|
+
e.addValue(r, ri(t === void 0 ? i : t, { owner: e }));
|
|
2303
|
+
}
|
|
2391
2304
|
}
|
|
2392
2305
|
}
|
|
2393
2306
|
for (let r in n) t[r] === void 0 && e.removeValue(r);
|
|
2394
2307
|
return t;
|
|
2395
2308
|
}
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
}
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
var
|
|
2309
|
+
// node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
|
|
2310
|
+
var ha = { current: null }, ga = { current: !1 }, _a = typeof window < "u";
|
|
2311
|
+
function va() {
|
|
2312
|
+
if (ga.current = !0, _a) {
|
|
2313
|
+
if (window.matchMedia) {
|
|
2314
|
+
let e = window.matchMedia("(prefers-reduced-motion)"), t = () => ha.current = e.matches;
|
|
2315
|
+
e.addEventListener("change", t), t();
|
|
2316
|
+
} else ha.current = !1;
|
|
2317
|
+
}
|
|
2318
|
+
}
|
|
2319
|
+
// node_modules/motion-dom/dist/es/render/VisualElement.mjs
|
|
2320
|
+
var ya = [
|
|
2408
2321
|
"AnimationStart",
|
|
2409
2322
|
"AnimationComplete",
|
|
2410
2323
|
"Update",
|
|
@@ -2412,19 +2325,19 @@ var va = [
|
|
|
2412
2325
|
"LayoutMeasure",
|
|
2413
2326
|
"LayoutAnimationStart",
|
|
2414
2327
|
"LayoutAnimationComplete"
|
|
2415
|
-
],
|
|
2328
|
+
], ba = {}, xa = class {
|
|
2416
2329
|
scrapeMotionValuesFromProps(e, t, n) {
|
|
2417
2330
|
return {};
|
|
2418
2331
|
}
|
|
2419
2332
|
constructor({ parent: e, props: t, presenceContext: n, reducedMotionConfig: r, skipAnimations: i, blockInitialAnimation: a, visualState: o }, s = {}) {
|
|
2420
|
-
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver =
|
|
2333
|
+
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = yr, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
2421
2334
|
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
2422
2335
|
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
|
|
2423
2336
|
let e = U.now();
|
|
2424
2337
|
this.renderScheduledAt < e && (this.renderScheduledAt = e, H.render(this.render, !1, !0));
|
|
2425
2338
|
};
|
|
2426
2339
|
let { latestValues: c, renderState: l } = o;
|
|
2427
|
-
this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants =
|
|
2340
|
+
this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = fa(t), this.isVariantNode = pa(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
|
|
2428
2341
|
let { willChange: u, ...d } = this.scrapeMotionValuesFromProps(t, {}, this);
|
|
2429
2342
|
for (let e in d) {
|
|
2430
2343
|
let t = d[e];
|
|
@@ -2433,10 +2346,10 @@ var va = [
|
|
|
2433
2346
|
}
|
|
2434
2347
|
mount(e) {
|
|
2435
2348
|
if (this.hasBeenMounted) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
|
|
2436
|
-
this.current = e,
|
|
2349
|
+
this.current = e, ca.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (ga.current || va(), this.shouldReduceMotion = ha.current), process.env.NODE_ENV !== "production" && Ae(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
|
|
2437
2350
|
}
|
|
2438
2351
|
unmount() {
|
|
2439
|
-
this.projection && this.projection.unmount(),
|
|
2352
|
+
this.projection && this.projection.unmount(), ot(this.notifyUpdate), ot(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
|
|
2440
2353
|
for (let e in this.events) this.events[e].clear();
|
|
2441
2354
|
for (let e in this.features) {
|
|
2442
2355
|
let t = this.features[e];
|
|
@@ -2451,8 +2364,8 @@ var va = [
|
|
|
2451
2364
|
this.children.delete(e), this.enteringChildren && this.enteringChildren.delete(e);
|
|
2452
2365
|
}
|
|
2453
2366
|
bindToMotionValue(e, t) {
|
|
2454
|
-
if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate &&
|
|
2455
|
-
let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new
|
|
2367
|
+
if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && Hr.has(e) && this.current instanceof HTMLElement) {
|
|
2368
|
+
let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new Mr({
|
|
2456
2369
|
element: this.current,
|
|
2457
2370
|
name: e,
|
|
2458
2371
|
keyframes: r,
|
|
@@ -2465,7 +2378,7 @@ var va = [
|
|
|
2465
2378
|
});
|
|
2466
2379
|
return;
|
|
2467
2380
|
}
|
|
2468
|
-
let n =
|
|
2381
|
+
let n = cr.has(e);
|
|
2469
2382
|
n && this.onBindTransform && this.onBindTransform();
|
|
2470
2383
|
let r = t.on("change", (t) => {
|
|
2471
2384
|
this.latestValues[e] = t, this.props.onUpdate && H.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
|
|
@@ -2479,8 +2392,8 @@ var va = [
|
|
|
2479
2392
|
}
|
|
2480
2393
|
updateFeatures() {
|
|
2481
2394
|
let e = "animation";
|
|
2482
|
-
for (e in
|
|
2483
|
-
let t =
|
|
2395
|
+
for (e in ba) {
|
|
2396
|
+
let t = ba[e];
|
|
2484
2397
|
if (!t) continue;
|
|
2485
2398
|
let { isEnabled: n, Feature: r } = t;
|
|
2486
2399
|
if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {
|
|
@@ -2493,7 +2406,7 @@ var va = [
|
|
|
2493
2406
|
this.build(this.renderState, this.latestValues, this.props);
|
|
2494
2407
|
}
|
|
2495
2408
|
measureViewportBox() {
|
|
2496
|
-
return this.current ? this.measureInstanceViewportBox(this.current, this.props) :
|
|
2409
|
+
return this.current ? this.measureInstanceViewportBox(this.current, this.props) : sa();
|
|
2497
2410
|
}
|
|
2498
2411
|
getStaticValue(e) {
|
|
2499
2412
|
return this.latestValues[e];
|
|
@@ -2503,13 +2416,13 @@ var va = [
|
|
|
2503
2416
|
}
|
|
2504
2417
|
update(e, t) {
|
|
2505
2418
|
(e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
|
|
2506
|
-
for (let t = 0; t <
|
|
2507
|
-
let n =
|
|
2419
|
+
for (let t = 0; t < ya.length; t++) {
|
|
2420
|
+
let n = ya[t];
|
|
2508
2421
|
this.propEventSubscriptions[n] && (this.propEventSubscriptions[n](), delete this.propEventSubscriptions[n]);
|
|
2509
2422
|
let r = e["on" + n];
|
|
2510
2423
|
r && (this.propEventSubscriptions[n] = this.on(n, r));
|
|
2511
2424
|
}
|
|
2512
|
-
this.prevMotionValues =
|
|
2425
|
+
this.prevMotionValues = ma(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
|
|
2513
2426
|
}
|
|
2514
2427
|
getProps() {
|
|
2515
2428
|
return this.props;
|
|
@@ -2545,11 +2458,11 @@ var va = [
|
|
|
2545
2458
|
getValue(e, t) {
|
|
2546
2459
|
if (this.props.values && this.props.values[e]) return this.props.values[e];
|
|
2547
2460
|
let n = this.values.get(e);
|
|
2548
|
-
return n === void 0 && t !== void 0 && (n =
|
|
2461
|
+
return n === void 0 && t !== void 0 && (n = ri(t === null ? void 0 : t, { owner: this }), this.addValue(e, n)), n;
|
|
2549
2462
|
}
|
|
2550
2463
|
readValue(e, t) {
|
|
2551
2464
|
let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
|
|
2552
|
-
return n != null && (typeof n == "string" && (
|
|
2465
|
+
return n != null && (typeof n == "string" && (be(n) || Se(n)) ? n = parseFloat(n) : !aa(n) && J.test(t) && (n = Ji(e, t)), this.setBaseTarget(e, $(n) ? n.get() : n)), $(n) ? n.get() : n;
|
|
2553
2466
|
}
|
|
2554
2467
|
setBaseTarget(e, t) {
|
|
2555
2468
|
this.baseTarget[e] = t;
|
|
@@ -2557,7 +2470,7 @@ var va = [
|
|
|
2557
2470
|
getBaseTarget(e) {
|
|
2558
2471
|
let { initial: t } = this.props, n;
|
|
2559
2472
|
if (typeof t == "string" || typeof t == "object") {
|
|
2560
|
-
let r =
|
|
2473
|
+
let r = yi(this.props, t, this.presenceContext?.custom);
|
|
2561
2474
|
r && (n = r[e]);
|
|
2562
2475
|
}
|
|
2563
2476
|
if (t && n !== void 0) return n;
|
|
@@ -2565,17 +2478,17 @@ var va = [
|
|
|
2565
2478
|
return r !== void 0 && !$(r) ? r : this.initialValues[e] !== void 0 && n === void 0 ? void 0 : this.baseTarget[e];
|
|
2566
2479
|
}
|
|
2567
2480
|
on(e, t) {
|
|
2568
|
-
return this.events[e] || (this.events[e] = new
|
|
2481
|
+
return this.events[e] || (this.events[e] = new De()), this.events[e].add(t);
|
|
2569
2482
|
}
|
|
2570
2483
|
notify(e, ...t) {
|
|
2571
2484
|
this.events[e] && this.events[e].notify(...t);
|
|
2572
2485
|
}
|
|
2573
2486
|
scheduleRenderMicrotask() {
|
|
2574
|
-
|
|
2487
|
+
ea.render(this.render);
|
|
2575
2488
|
}
|
|
2576
|
-
},
|
|
2489
|
+
}, Sa = class extends xa {
|
|
2577
2490
|
constructor() {
|
|
2578
|
-
super(...arguments), this.KeyframeResolver =
|
|
2491
|
+
super(...arguments), this.KeyframeResolver = Zi;
|
|
2579
2492
|
}
|
|
2580
2493
|
sortInstanceNodePosition(e, t) {
|
|
2581
2494
|
return e.compareDocumentPosition(t) & 2 ? 1 : -1;
|
|
@@ -2595,9 +2508,8 @@ var va = [
|
|
|
2595
2508
|
}));
|
|
2596
2509
|
}
|
|
2597
2510
|
};
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
function Sa({ top: e, left: t, right: n, bottom: r }) {
|
|
2511
|
+
// node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
|
|
2512
|
+
function Ca({ top: e, left: t, right: n, bottom: r }) {
|
|
2601
2513
|
return {
|
|
2602
2514
|
x: {
|
|
2603
2515
|
min: t,
|
|
@@ -2609,7 +2521,7 @@ function Sa({ top: e, left: t, right: n, bottom: r }) {
|
|
|
2609
2521
|
}
|
|
2610
2522
|
};
|
|
2611
2523
|
}
|
|
2612
|
-
function
|
|
2524
|
+
function wa(e, t) {
|
|
2613
2525
|
if (!t) return e;
|
|
2614
2526
|
let n = t({
|
|
2615
2527
|
x: e.left,
|
|
@@ -2625,23 +2537,21 @@ function Ca(e, t) {
|
|
|
2625
2537
|
right: r.x
|
|
2626
2538
|
};
|
|
2627
2539
|
}
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
return Sa(Ca(e.getBoundingClientRect(), t));
|
|
2540
|
+
// node_modules/motion-dom/dist/es/projection/utils/measure.mjs
|
|
2541
|
+
function Ta(e, t) {
|
|
2542
|
+
return Ca(wa(e.getBoundingClientRect(), t));
|
|
2632
2543
|
}
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
var Ta = {
|
|
2544
|
+
// node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs
|
|
2545
|
+
var Ea = {
|
|
2636
2546
|
x: "translateX",
|
|
2637
2547
|
y: "translateY",
|
|
2638
2548
|
z: "translateZ",
|
|
2639
2549
|
transformPerspective: "perspective"
|
|
2640
|
-
},
|
|
2641
|
-
function
|
|
2550
|
+
}, Da = sr.length;
|
|
2551
|
+
function Oa(e, t, n) {
|
|
2642
2552
|
let r = "", i = !0;
|
|
2643
|
-
for (let a = 0; a <
|
|
2644
|
-
let o =
|
|
2553
|
+
for (let a = 0; a < Da; a++) {
|
|
2554
|
+
let o = sr[a], s = e[o];
|
|
2645
2555
|
if (s === void 0) continue;
|
|
2646
2556
|
let c = !0;
|
|
2647
2557
|
if (typeof s == "number") c = s === +!!o.startsWith("scale");
|
|
@@ -2650,67 +2560,62 @@ function Da(e, t, n) {
|
|
|
2650
2560
|
c = o.startsWith("scale") ? e === 1 : e === 0;
|
|
2651
2561
|
}
|
|
2652
2562
|
if (!c || n) {
|
|
2653
|
-
let e =
|
|
2563
|
+
let e = $i(s, Wi[o]);
|
|
2654
2564
|
if (!c) {
|
|
2655
2565
|
i = !1;
|
|
2656
|
-
let t =
|
|
2566
|
+
let t = Ea[o] || o;
|
|
2657
2567
|
r += `${t}(${e}) `;
|
|
2658
2568
|
}
|
|
2659
2569
|
n && (t[o] = e);
|
|
2660
2570
|
}
|
|
2661
2571
|
}
|
|
2662
2572
|
let a = e.pathRotation;
|
|
2663
|
-
return a && (i = !1, r += `rotate(${
|
|
2573
|
+
return a && (i = !1, r += `rotate(${$i(a, Wi.pathRotation)}) `), r = r.trim(), n ? r = n(t, i ? "" : r) : i && (r = "none"), r;
|
|
2664
2574
|
}
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
function Oa(e, t, n) {
|
|
2575
|
+
// node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
|
|
2576
|
+
function ka(e, t, n) {
|
|
2668
2577
|
let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
|
|
2669
2578
|
for (let e in t) {
|
|
2670
2579
|
let n = t[e];
|
|
2671
|
-
if (
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
i[e] = n;
|
|
2676
|
-
continue;
|
|
2677
|
-
} else {
|
|
2678
|
-
let t = Qi(n, Ui[e]);
|
|
2580
|
+
if (cr.has(e)) o = !0;
|
|
2581
|
+
else if (pt(e)) i[e] = n;
|
|
2582
|
+
else {
|
|
2583
|
+
let t = $i(n, Wi[e]);
|
|
2679
2584
|
e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
|
|
2680
2585
|
}
|
|
2681
2586
|
}
|
|
2682
|
-
if (t.transform || (o || n ? r.transform =
|
|
2587
|
+
if (t.transform || (o || n ? r.transform = Oa(t, e.transform, n) : r.transform &&= "none"), s) {
|
|
2683
2588
|
let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = a;
|
|
2684
2589
|
r.transformOrigin = `${e} ${t} ${n}`;
|
|
2685
2590
|
}
|
|
2686
2591
|
}
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
function ka(e, { style: t, vars: n }, r, i) {
|
|
2592
|
+
// node_modules/motion-dom/dist/es/render/html/utils/render.mjs
|
|
2593
|
+
function Aa(e, { style: t, vars: n }, r, i) {
|
|
2690
2594
|
let a = e.style, o;
|
|
2691
2595
|
for (o in t) a[o] = t[o];
|
|
2692
2596
|
for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);
|
|
2693
2597
|
}
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
function Aa(e, t) {
|
|
2598
|
+
// node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
|
|
2599
|
+
function ja(e, t) {
|
|
2697
2600
|
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
|
|
2698
2601
|
}
|
|
2699
|
-
var
|
|
2602
|
+
var Ma = { correct: (e, t) => {
|
|
2700
2603
|
if (!t.target) return e;
|
|
2701
|
-
if (typeof e == "string")
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
}
|
|
2604
|
+
if (typeof e == "string") {
|
|
2605
|
+
if (K.test(e)) e = parseFloat(e);
|
|
2606
|
+
else return e;
|
|
2607
|
+
}
|
|
2608
|
+
return `${ja(e, t.target.x)}% ${ja(e, t.target.y)}%`;
|
|
2609
|
+
} }, Na = { correct: (e, { treeScale: t, projectionDelta: n }) => {
|
|
2705
2610
|
let r = e, i = J.parse(e);
|
|
2706
2611
|
if (i.length > 5) return r;
|
|
2707
2612
|
let a = J.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
|
|
2708
2613
|
i[0 + o] /= s, i[1 + o] /= c;
|
|
2709
|
-
let l =
|
|
2614
|
+
let l = tn(s, c, .5);
|
|
2710
2615
|
return typeof i[2 + o] == "number" && (i[2 + o] /= l), typeof i[3 + o] == "number" && (i[3 + o] /= l), a(i);
|
|
2711
|
-
} },
|
|
2616
|
+
} }, Pa = {
|
|
2712
2617
|
borderRadius: {
|
|
2713
|
-
...
|
|
2618
|
+
...Ma,
|
|
2714
2619
|
applyTo: [
|
|
2715
2620
|
"borderTopLeftRadius",
|
|
2716
2621
|
"borderTopRightRadius",
|
|
@@ -2718,62 +2623,58 @@ var ja = { correct: (e, t) => {
|
|
|
2718
2623
|
"borderBottomRightRadius"
|
|
2719
2624
|
]
|
|
2720
2625
|
},
|
|
2721
|
-
borderTopLeftRadius:
|
|
2722
|
-
borderTopRightRadius:
|
|
2723
|
-
borderBottomLeftRadius:
|
|
2724
|
-
borderBottomRightRadius:
|
|
2725
|
-
boxShadow:
|
|
2626
|
+
borderTopLeftRadius: Ma,
|
|
2627
|
+
borderTopRightRadius: Ma,
|
|
2628
|
+
borderBottomLeftRadius: Ma,
|
|
2629
|
+
borderBottomRightRadius: Ma,
|
|
2630
|
+
boxShadow: Na
|
|
2726
2631
|
};
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
//#region node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
|
|
2734
|
-
function Fa(e, t, n) {
|
|
2632
|
+
// node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
|
|
2633
|
+
function Fa(e, { layout: t, layoutId: n }) {
|
|
2634
|
+
return cr.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Pa[e] || e === "opacity");
|
|
2635
|
+
}
|
|
2636
|
+
// node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
|
|
2637
|
+
function Ia(e, t, n) {
|
|
2735
2638
|
let r = e.style, i = t?.style, a = {};
|
|
2736
2639
|
if (!r) return a;
|
|
2737
|
-
for (let t in r) ($(r[t]) || i && $(i[t]) ||
|
|
2640
|
+
for (let t in r) ($(r[t]) || i && $(i[t]) || Fa(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
|
|
2738
2641
|
return a;
|
|
2739
2642
|
}
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
function Ia(e) {
|
|
2643
|
+
// node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs
|
|
2644
|
+
function La(e) {
|
|
2743
2645
|
return window.getComputedStyle(e);
|
|
2744
2646
|
}
|
|
2745
|
-
var
|
|
2647
|
+
var Ra = class extends Sa {
|
|
2746
2648
|
constructor() {
|
|
2747
|
-
super(...arguments), this.type = "html", this.renderInstance =
|
|
2649
|
+
super(...arguments), this.type = "html", this.renderInstance = Aa;
|
|
2748
2650
|
}
|
|
2749
2651
|
readValueFromInstance(e, t) {
|
|
2750
|
-
if (
|
|
2652
|
+
if (cr.has(t)) return this.projection?.isProjecting ? rr(t) : ar(e, t);
|
|
2751
2653
|
{
|
|
2752
|
-
let n =
|
|
2654
|
+
let n = La(e), r = (pt(t) ? n.getPropertyValue(t) : n[t]) || 0;
|
|
2753
2655
|
return typeof r == "string" ? r.trim() : r;
|
|
2754
2656
|
}
|
|
2755
2657
|
}
|
|
2756
2658
|
measureInstanceViewportBox(e, { transformPagePoint: t }) {
|
|
2757
|
-
return
|
|
2659
|
+
return Ta(e, t);
|
|
2758
2660
|
}
|
|
2759
2661
|
build(e, t, n) {
|
|
2760
|
-
|
|
2662
|
+
ka(e, t, n.transformTemplate);
|
|
2761
2663
|
}
|
|
2762
2664
|
scrapeMotionValuesFromProps(e, t, n) {
|
|
2763
|
-
return
|
|
2665
|
+
return Ia(e, t, n);
|
|
2764
2666
|
}
|
|
2765
2667
|
};
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
function Ra(e, t) {
|
|
2668
|
+
// node_modules/motion-dom/dist/es/render/object/ObjectVisualElement.mjs
|
|
2669
|
+
function za(e, t) {
|
|
2769
2670
|
return e in t;
|
|
2770
2671
|
}
|
|
2771
|
-
var
|
|
2672
|
+
var Ba = class extends xa {
|
|
2772
2673
|
constructor() {
|
|
2773
2674
|
super(...arguments), this.type = "object";
|
|
2774
2675
|
}
|
|
2775
2676
|
readValueFromInstance(e, t) {
|
|
2776
|
-
if (
|
|
2677
|
+
if (za(t, e)) {
|
|
2777
2678
|
let n = e[t];
|
|
2778
2679
|
if (typeof n == "string" || typeof n == "number") return n;
|
|
2779
2680
|
}
|
|
@@ -2783,7 +2684,7 @@ var za = class extends ba {
|
|
|
2783
2684
|
delete t.output[e];
|
|
2784
2685
|
}
|
|
2785
2686
|
measureInstanceViewportBox() {
|
|
2786
|
-
return
|
|
2687
|
+
return sa();
|
|
2787
2688
|
}
|
|
2788
2689
|
build(e, t) {
|
|
2789
2690
|
Object.assign(e.output, t);
|
|
@@ -2794,40 +2695,38 @@ var za = class extends ba {
|
|
|
2794
2695
|
sortInstanceNodePosition() {
|
|
2795
2696
|
return 0;
|
|
2796
2697
|
}
|
|
2797
|
-
},
|
|
2698
|
+
}, Va = {
|
|
2798
2699
|
offset: "stroke-dashoffset",
|
|
2799
2700
|
array: "stroke-dasharray"
|
|
2800
|
-
},
|
|
2701
|
+
}, Ha = {
|
|
2801
2702
|
offset: "strokeDashoffset",
|
|
2802
2703
|
array: "strokeDasharray"
|
|
2803
2704
|
};
|
|
2804
|
-
function
|
|
2705
|
+
function Ua(e, t, n = 1, r = 0, i = !0) {
|
|
2805
2706
|
e.pathLength = 1;
|
|
2806
|
-
let a = i ?
|
|
2707
|
+
let a = i ? Va : Ha;
|
|
2807
2708
|
e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;
|
|
2808
2709
|
}
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
var Ua = [
|
|
2710
|
+
// node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
|
|
2711
|
+
var Wa = [
|
|
2812
2712
|
"offsetDistance",
|
|
2813
2713
|
"offsetPath",
|
|
2814
2714
|
"offsetRotate",
|
|
2815
2715
|
"offsetAnchor"
|
|
2816
2716
|
];
|
|
2817
|
-
function
|
|
2818
|
-
if (
|
|
2717
|
+
function Ga(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
|
|
2718
|
+
if (ka(e, s, l), c) {
|
|
2819
2719
|
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
|
|
2820
2720
|
return;
|
|
2821
2721
|
}
|
|
2822
2722
|
e.attrs = e.style, e.style = {};
|
|
2823
2723
|
let { attrs: d, style: f } = e;
|
|
2824
2724
|
d.transform && (f.transform = d.transform, delete d.transform), (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox);
|
|
2825
|
-
for (let e of
|
|
2826
|
-
t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 &&
|
|
2725
|
+
for (let e of Wa) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
|
|
2726
|
+
t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && Ua(d, i, a, o, !1);
|
|
2827
2727
|
}
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
var Ga = new Set([
|
|
2728
|
+
// node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.mjs
|
|
2729
|
+
var Ka = /* @__PURE__ */ new Set([
|
|
2831
2730
|
"baseFrequency",
|
|
2832
2731
|
"diffuseConstant",
|
|
2833
2732
|
"kernelMatrix",
|
|
@@ -2851,151 +2750,136 @@ var Ga = new Set([
|
|
|
2851
2750
|
"startOffset",
|
|
2852
2751
|
"textLength",
|
|
2853
2752
|
"lengthAdjust"
|
|
2854
|
-
]),
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
function Ja(e, t, n) {
|
|
2864
|
-
let r = Fa(e, t, n);
|
|
2753
|
+
]), qa = (e) => typeof e == "string" && e.toLowerCase() === "svg";
|
|
2754
|
+
// node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
|
|
2755
|
+
function Ja(e, t, n, r) {
|
|
2756
|
+
Aa(e, t, void 0, r);
|
|
2757
|
+
for (let n in t.attrs) e.setAttribute(Ka.has(n) ? n : Oi(n), t.attrs[n]);
|
|
2758
|
+
}
|
|
2759
|
+
// node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
|
|
2760
|
+
function Ya(e, t, n) {
|
|
2761
|
+
let r = Ia(e, t, n);
|
|
2865
2762
|
for (let n in e) if ($(e[n]) || $(t[n])) {
|
|
2866
|
-
let t =
|
|
2763
|
+
let t = sr.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
|
|
2867
2764
|
r[t] = e[n];
|
|
2868
2765
|
}
|
|
2869
2766
|
return r;
|
|
2870
2767
|
}
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
var Ya = class extends xa {
|
|
2768
|
+
// node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
|
|
2769
|
+
var Xa = class extends Sa {
|
|
2874
2770
|
constructor() {
|
|
2875
|
-
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox =
|
|
2771
|
+
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = sa;
|
|
2876
2772
|
}
|
|
2877
2773
|
getBaseTargetFromProps(e, t) {
|
|
2878
2774
|
return e[t];
|
|
2879
2775
|
}
|
|
2880
2776
|
readValueFromInstance(e, t) {
|
|
2881
|
-
if (
|
|
2882
|
-
let e =
|
|
2777
|
+
if (cr.has(t)) {
|
|
2778
|
+
let e = Ki(t);
|
|
2883
2779
|
return e && e.default || 0;
|
|
2884
2780
|
}
|
|
2885
|
-
return t =
|
|
2781
|
+
return t = Ka.has(t) ? t : Oi(t), e.getAttribute(t);
|
|
2886
2782
|
}
|
|
2887
2783
|
scrapeMotionValuesFromProps(e, t, n) {
|
|
2888
|
-
return
|
|
2784
|
+
return Ya(e, t, n);
|
|
2889
2785
|
}
|
|
2890
2786
|
build(e, t, n) {
|
|
2891
|
-
|
|
2787
|
+
Ga(e, t, this.isSVGTag, n.transformTemplate, n.style);
|
|
2892
2788
|
}
|
|
2893
2789
|
renderInstance(e, t, n, r) {
|
|
2894
|
-
|
|
2790
|
+
Ja(e, t, n, r);
|
|
2895
2791
|
}
|
|
2896
2792
|
mount(e) {
|
|
2897
|
-
this.isSVGTag =
|
|
2793
|
+
this.isSVGTag = qa(e.tagName), super.mount(e);
|
|
2898
2794
|
}
|
|
2899
2795
|
};
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
//#region node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs
|
|
2908
|
-
var Za = o({
|
|
2796
|
+
// node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
|
|
2797
|
+
function Za(e, t, n) {
|
|
2798
|
+
let r = $(e) ? e : ri(e);
|
|
2799
|
+
return r.start(pi("", r, t, n)), r.animation;
|
|
2800
|
+
}
|
|
2801
|
+
// node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs
|
|
2802
|
+
var Qa = s({
|
|
2909
2803
|
transformPagePoint: (e) => e,
|
|
2910
2804
|
isStatic: !1,
|
|
2911
2805
|
reducedMotion: "never"
|
|
2912
2806
|
});
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
//#endregion
|
|
2919
|
-
//#region node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
|
|
2920
|
-
function $a() {
|
|
2921
|
-
!ha.current && _a();
|
|
2922
|
-
let [e] = p(ma.current);
|
|
2923
|
-
return process.env.NODE_ENV !== "production" && ke(e !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), e;
|
|
2924
|
-
}
|
|
2925
|
-
//#endregion
|
|
2926
|
-
//#region node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion-config.mjs
|
|
2807
|
+
// node_modules/framer-motion/dist/es/utils/use-unmount-effect.mjs
|
|
2808
|
+
function $a(e) {
|
|
2809
|
+
return u(() => () => e(), []);
|
|
2810
|
+
}
|
|
2811
|
+
// node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
|
|
2927
2812
|
function eo() {
|
|
2928
|
-
|
|
2929
|
-
|
|
2813
|
+
!ga.current && va();
|
|
2814
|
+
let [e] = m(ha.current);
|
|
2815
|
+
return process.env.NODE_ENV !== "production" && Ae(e !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), e;
|
|
2816
|
+
}
|
|
2817
|
+
// node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion-config.mjs
|
|
2818
|
+
function to() {
|
|
2819
|
+
let e = eo(), { reducedMotion: t } = l(Qa);
|
|
2820
|
+
return t === "never" ? !1 : t === "always" || e;
|
|
2930
2821
|
}
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
function to(e) {
|
|
2822
|
+
// node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs
|
|
2823
|
+
function no(e) {
|
|
2934
2824
|
return typeof e == "object" && !Array.isArray(e);
|
|
2935
2825
|
}
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
return e == null ? [] : typeof e == "string" && to(t) ? Zi(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
|
|
2826
|
+
// node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.mjs
|
|
2827
|
+
function ro(e, t, n, r) {
|
|
2828
|
+
return e == null ? [] : typeof e == "string" && no(t) ? Qi(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
|
|
2940
2829
|
}
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
function ro(e, t, n) {
|
|
2830
|
+
// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs
|
|
2831
|
+
function io(e, t, n) {
|
|
2944
2832
|
return e * (t + 1) + n * t;
|
|
2945
2833
|
}
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
function io(e, t, n, r) {
|
|
2834
|
+
// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs
|
|
2835
|
+
function ao(e, t, n, r) {
|
|
2949
2836
|
return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : r.get(t) ?? e;
|
|
2950
2837
|
}
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
function ao(e, t, n) {
|
|
2838
|
+
// node_modules/framer-motion/dist/es/animation/sequence/utils/edit.mjs
|
|
2839
|
+
function oo(e, t, n) {
|
|
2954
2840
|
for (let r = 0; r < e.length; r++) {
|
|
2955
2841
|
let i = e[r];
|
|
2956
|
-
i.at > t && i.at < n && (
|
|
2842
|
+
i.at > t && i.at < n && (ve(e, i), r--);
|
|
2957
2843
|
}
|
|
2958
2844
|
}
|
|
2959
|
-
function
|
|
2960
|
-
|
|
2845
|
+
function so(e, t, n, r, i, a) {
|
|
2846
|
+
oo(e, i, a);
|
|
2961
2847
|
for (let o = 0; o < t.length; o++) e.push({
|
|
2962
2848
|
value: t[o],
|
|
2963
|
-
at:
|
|
2964
|
-
easing: /* @__PURE__ */
|
|
2849
|
+
at: tn(i, a, r[o]),
|
|
2850
|
+
easing: /* @__PURE__ */ Xe(n, o)
|
|
2965
2851
|
});
|
|
2966
2852
|
}
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
function so(e, t, n = 0) {
|
|
2853
|
+
// node_modules/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs
|
|
2854
|
+
function co(e, t, n = 0) {
|
|
2970
2855
|
let r = t + 1 + t * n;
|
|
2971
2856
|
for (let t = 0; t < e.length; t++) e[t] = e[t] / r;
|
|
2972
2857
|
}
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
function co(e, t) {
|
|
2858
|
+
// node_modules/framer-motion/dist/es/animation/sequence/utils/sort.mjs
|
|
2859
|
+
function lo(e, t) {
|
|
2976
2860
|
return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
|
|
2977
2861
|
}
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
function fo(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
|
|
2862
|
+
// node_modules/framer-motion/dist/es/animation/sequence/create.mjs
|
|
2863
|
+
var uo = "easeInOut", fo = 20;
|
|
2864
|
+
function po(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
|
|
2982
2865
|
let a = t.duration || .3, o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c = {}, l = /* @__PURE__ */ new Map(), u = 0, d = 0, f = 0;
|
|
2983
2866
|
for (let n = 0; n < e.length; n++) {
|
|
2984
2867
|
let o = e[n];
|
|
2985
2868
|
if (typeof o == "string") {
|
|
2986
2869
|
l.set(o, d);
|
|
2987
2870
|
continue;
|
|
2988
|
-
}
|
|
2989
|
-
|
|
2871
|
+
}
|
|
2872
|
+
if (!Array.isArray(o)) {
|
|
2873
|
+
l.set(o.name, ao(d, o.at, u, l));
|
|
2990
2874
|
continue;
|
|
2991
2875
|
}
|
|
2992
2876
|
let [p, m, h = {}] = o;
|
|
2993
|
-
h.at !== void 0 && (d =
|
|
2877
|
+
h.at !== void 0 && (d = ao(d, h.at, u, l));
|
|
2994
2878
|
let g = 0, _ = (e, n, r, o = 0, s = 0) => {
|
|
2995
|
-
let c =
|
|
2879
|
+
let c = go(e), { delay: l = 0, times: u = Rn(c), type: p = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: _ = 0, ...v } = n, { ease: y = t.ease || "easeOut", duration: b } = n, x = typeof l == "function" ? l(o, s) : l, S = c.length, C = Ar(p) ? p : i?.[p || "keyframes"];
|
|
2996
2880
|
if (S <= 2 && C) {
|
|
2997
2881
|
let e = 100;
|
|
2998
|
-
if (S === 2 &&
|
|
2882
|
+
if (S === 2 && yo(c)) {
|
|
2999
2883
|
let t = c[1] - c[0];
|
|
3000
2884
|
e = Math.abs(t);
|
|
3001
2885
|
}
|
|
@@ -3004,39 +2888,39 @@ function fo(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
|
|
|
3004
2888
|
...v
|
|
3005
2889
|
};
|
|
3006
2890
|
b !== void 0 && (n.duration = /* @__PURE__ */ B(b));
|
|
3007
|
-
let r =
|
|
2891
|
+
let r = xn(n, e, C);
|
|
3008
2892
|
y = r.ease, b = r.duration;
|
|
3009
2893
|
}
|
|
3010
2894
|
b ??= a;
|
|
3011
2895
|
let w = d + x;
|
|
3012
2896
|
u.length === 1 && u[0] === 0 && (u[1] = 1);
|
|
3013
2897
|
let T = u.length - c.length;
|
|
3014
|
-
if (T > 0 &&
|
|
2898
|
+
if (T > 0 && Ln(u, T), c.length === 1 && c.unshift(null), m && L(m < fo, `Sequence segments can't repeat ${m} times — ignoring repeat option. Use a value below ${fo} or apply repeat at the sequence level instead.`), m && m < fo) {
|
|
3015
2899
|
let e = b > 0 ? _ / b : 0;
|
|
3016
|
-
b =
|
|
2900
|
+
b = io(b, m, _);
|
|
3017
2901
|
let t = [...c], n = [...u];
|
|
3018
2902
|
y = Array.isArray(y) ? [...y] : [y];
|
|
3019
2903
|
let r = [...y], i = h === "reverse" || h === "mirror", a = t, o = r;
|
|
3020
|
-
i && (a = [...t].reverse(), h === "reverse" && (o = [...r].reverse().map((e) => typeof e == "function" ? /* @__PURE__ */
|
|
2904
|
+
i && (a = [...t].reverse(), h === "reverse" && (o = [...r].reverse().map((e) => typeof e == "function" ? /* @__PURE__ */ Re(e) : e)));
|
|
3021
2905
|
for (let s = 0; s < m; s++) {
|
|
3022
2906
|
let l = i && s % 2 == 0, d = l ? a : t, f = l ? o : r, p = (s + 1) * (1 + e);
|
|
3023
2907
|
e > 0 && (c.push(c[c.length - 1]), u.push(p), y.push("linear")), c.push(...d);
|
|
3024
|
-
for (let e = 0; e < d.length; e++) u.push(n[e] + p), y.push(e === 0 ? "linear" : /* @__PURE__ */
|
|
2908
|
+
for (let e = 0; e < d.length; e++) u.push(n[e] + p), y.push(e === 0 ? "linear" : /* @__PURE__ */ Xe(f, e - 1));
|
|
3025
2909
|
}
|
|
3026
|
-
|
|
2910
|
+
co(u, m, e);
|
|
3027
2911
|
}
|
|
3028
2912
|
let E = w + b;
|
|
3029
|
-
|
|
2913
|
+
so(r, c, y, u, w, E), g = Math.max(x + b, g), f = Math.max(E, f);
|
|
3030
2914
|
};
|
|
3031
2915
|
if ($(p)) {
|
|
3032
|
-
let e =
|
|
3033
|
-
_(m, h,
|
|
2916
|
+
let e = mo(p, s);
|
|
2917
|
+
_(m, h, ho("default", e));
|
|
3034
2918
|
} else {
|
|
3035
|
-
let e =
|
|
2919
|
+
let e = ro(p, m, r, c), t = e.length;
|
|
3036
2920
|
for (let n = 0; n < t; n++) {
|
|
3037
2921
|
m = m, h = h;
|
|
3038
|
-
let r = e[n], i =
|
|
3039
|
-
for (let e in m) _(m[e],
|
|
2922
|
+
let r = e[n], i = mo(r, s);
|
|
2923
|
+
for (let e in m) _(m[e], _o(h, e), ho(e, i), n, t);
|
|
3040
2924
|
}
|
|
3041
2925
|
}
|
|
3042
2926
|
u = d, d += g;
|
|
@@ -3044,13 +2928,13 @@ function fo(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
|
|
|
3044
2928
|
return s.forEach((e, r) => {
|
|
3045
2929
|
for (let i in e) {
|
|
3046
2930
|
let a = e[i];
|
|
3047
|
-
a.sort(
|
|
2931
|
+
a.sort(lo);
|
|
3048
2932
|
let s = [], c = [], l = [];
|
|
3049
2933
|
for (let e = 0; e < a.length; e++) {
|
|
3050
2934
|
let { at: t, value: n, easing: r } = a[e];
|
|
3051
|
-
s.push(n), c.push(/* @__PURE__ */
|
|
2935
|
+
s.push(n), c.push(/* @__PURE__ */ Ee(0, f, t)), l.push(r || "easeOut");
|
|
3052
2936
|
}
|
|
3053
|
-
c[0] !== 0 && (c.unshift(0), s.unshift(s[0]), l.unshift(
|
|
2937
|
+
c[0] !== 0 && (c.unshift(0), s.unshift(s[0]), l.unshift(uo)), c[c.length - 1] !== 1 && (c.push(1), s.push(null)), o.has(r) || o.set(r, {
|
|
3054
2938
|
keyframes: {},
|
|
3055
2939
|
transition: {}
|
|
3056
2940
|
});
|
|
@@ -3067,25 +2951,24 @@ function fo(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
|
|
|
3067
2951
|
}
|
|
3068
2952
|
}), o;
|
|
3069
2953
|
}
|
|
3070
|
-
function
|
|
2954
|
+
function mo(e, t) {
|
|
3071
2955
|
return !t.has(e) && t.set(e, {}), t.get(e);
|
|
3072
2956
|
}
|
|
3073
|
-
function
|
|
2957
|
+
function ho(e, t) {
|
|
3074
2958
|
return t[e] || (t[e] = []), t[e];
|
|
3075
2959
|
}
|
|
3076
|
-
function
|
|
2960
|
+
function go(e) {
|
|
3077
2961
|
return Array.isArray(e) ? e : [e];
|
|
3078
2962
|
}
|
|
3079
|
-
function
|
|
2963
|
+
function _o(e, t) {
|
|
3080
2964
|
return e && e[t] ? {
|
|
3081
2965
|
...e,
|
|
3082
2966
|
...e[t]
|
|
3083
2967
|
} : { ...e };
|
|
3084
2968
|
}
|
|
3085
|
-
var
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
function yo(e) {
|
|
2969
|
+
var vo = (e) => typeof e == "number", yo = (e) => e.every(vo);
|
|
2970
|
+
// node_modules/framer-motion/dist/es/animation/utils/create-visual-element.mjs
|
|
2971
|
+
function bo(e) {
|
|
3089
2972
|
let t = {
|
|
3090
2973
|
presenceContext: null,
|
|
3091
2974
|
props: {},
|
|
@@ -3099,11 +2982,11 @@ function yo(e) {
|
|
|
3099
2982
|
},
|
|
3100
2983
|
latestValues: {}
|
|
3101
2984
|
}
|
|
3102
|
-
}, n =
|
|
3103
|
-
n.mount(e),
|
|
2985
|
+
}, n = na(e) && !ra(e) ? new Xa(t) : new Ra(t);
|
|
2986
|
+
n.mount(e), ca.set(e, n);
|
|
3104
2987
|
}
|
|
3105
|
-
function
|
|
3106
|
-
let t = new
|
|
2988
|
+
function xo(e) {
|
|
2989
|
+
let t = new Ba({
|
|
3107
2990
|
presenceContext: null,
|
|
3108
2991
|
props: {},
|
|
3109
2992
|
visualState: {
|
|
@@ -3111,25 +2994,24 @@ function bo(e) {
|
|
|
3111
2994
|
latestValues: {}
|
|
3112
2995
|
}
|
|
3113
2996
|
});
|
|
3114
|
-
t.mount(e),
|
|
2997
|
+
t.mount(e), ca.set(e, t);
|
|
3115
2998
|
}
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
return $(e) || typeof e == "number" || typeof e == "string" && !to(t);
|
|
2999
|
+
// node_modules/framer-motion/dist/es/animation/animate/subject.mjs
|
|
3000
|
+
function So(e, t) {
|
|
3001
|
+
return $(e) || typeof e == "number" || typeof e == "string" && !no(t);
|
|
3120
3002
|
}
|
|
3121
|
-
function
|
|
3003
|
+
function Co(e, t, n, r) {
|
|
3122
3004
|
let i = [];
|
|
3123
|
-
if (
|
|
3005
|
+
if (So(e, t)) i.push(Za(e, no(t) && t.default || t, n && (n.default || n)));
|
|
3124
3006
|
else {
|
|
3125
3007
|
if (e == null) return i;
|
|
3126
|
-
let a =
|
|
3008
|
+
let a = ro(e, t, r), o = a.length;
|
|
3127
3009
|
R(!!o, "No valid elements provided.", "no-valid-elements");
|
|
3128
3010
|
for (let e = 0; e < o; e++) {
|
|
3129
|
-
let r = a[e], s = r instanceof Element ?
|
|
3130
|
-
|
|
3131
|
-
let c =
|
|
3132
|
-
"delay" in l && typeof l.delay == "function" && (l.delay = l.delay(e, o)), i.push(...
|
|
3011
|
+
let r = a[e], s = r instanceof Element ? bo : xo;
|
|
3012
|
+
ca.has(r) || s(r);
|
|
3013
|
+
let c = ca.get(r), l = { ...n };
|
|
3014
|
+
"delay" in l && typeof l.delay == "function" && (l.delay = l.delay(e, o)), i.push(...Mi(c, {
|
|
3133
3015
|
...t,
|
|
3134
3016
|
transition: l
|
|
3135
3017
|
}, {}));
|
|
@@ -3137,13 +3019,12 @@ function So(e, t, n, r) {
|
|
|
3137
3019
|
}
|
|
3138
3020
|
return i;
|
|
3139
3021
|
}
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
function Co(e, t, n) {
|
|
3022
|
+
// node_modules/framer-motion/dist/es/animation/animate/sequence.mjs
|
|
3023
|
+
function wo(e, t, n) {
|
|
3143
3024
|
let r = [];
|
|
3144
|
-
return
|
|
3025
|
+
return po(e.map((e) => {
|
|
3145
3026
|
if (Array.isArray(e) && typeof e[0] == "function") {
|
|
3146
|
-
let t = e[0], n =
|
|
3027
|
+
let t = e[0], n = ri(0);
|
|
3147
3028
|
return n.on("change", t), e.length === 1 ? [n, [0, 1]] : e.length === 2 ? [
|
|
3148
3029
|
n,
|
|
3149
3030
|
[0, 1],
|
|
@@ -3155,47 +3036,45 @@ function Co(e, t, n) {
|
|
|
3155
3036
|
];
|
|
3156
3037
|
}
|
|
3157
3038
|
return e;
|
|
3158
|
-
}), t, n, { spring:
|
|
3159
|
-
r.push(...
|
|
3039
|
+
}), t, n, { spring: jn }).forEach(({ keyframes: e, transition: t }, n) => {
|
|
3040
|
+
r.push(...Co(n, e, t));
|
|
3160
3041
|
}), r;
|
|
3161
3042
|
}
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
function wo(e) {
|
|
3043
|
+
// node_modules/framer-motion/dist/es/animation/animate/index.mjs
|
|
3044
|
+
function To(e) {
|
|
3165
3045
|
return Array.isArray(e) && e.some(Array.isArray);
|
|
3166
3046
|
}
|
|
3167
|
-
function
|
|
3047
|
+
function Eo(e = {}) {
|
|
3168
3048
|
let { scope: t, reduceMotion: n, skipAnimations: r } = e;
|
|
3169
3049
|
function i(e, i, a) {
|
|
3170
3050
|
let o = [], s, c = {};
|
|
3171
|
-
if (n !== void 0 && (c.reduceMotion = n), r !== void 0 && (c.skipAnimations = r),
|
|
3051
|
+
if (n !== void 0 && (c.reduceMotion = n), r !== void 0 && (c.skipAnimations = r), To(e)) {
|
|
3172
3052
|
let { onComplete: n, ...r } = i || {};
|
|
3173
|
-
typeof n == "function" && (s = n), o =
|
|
3053
|
+
typeof n == "function" && (s = n), o = wo(e, {
|
|
3174
3054
|
...c,
|
|
3175
3055
|
...r
|
|
3176
3056
|
}, t);
|
|
3177
3057
|
} else {
|
|
3178
3058
|
let { onComplete: n, ...r } = a || {};
|
|
3179
|
-
typeof n == "function" && (s = n), o =
|
|
3059
|
+
typeof n == "function" && (s = n), o = Co(e, i, {
|
|
3180
3060
|
...c,
|
|
3181
3061
|
...r
|
|
3182
3062
|
}, t);
|
|
3183
3063
|
}
|
|
3184
|
-
let l = new
|
|
3064
|
+
let l = new Qr(o);
|
|
3185
3065
|
return s && l.finished.then(s), t && (t.animations.push(l), l.finished.then(() => {
|
|
3186
|
-
|
|
3066
|
+
ve(t.animations, l);
|
|
3187
3067
|
})), l;
|
|
3188
3068
|
}
|
|
3189
3069
|
return i;
|
|
3190
3070
|
}
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
let e = me(() => ({
|
|
3071
|
+
Eo();
|
|
3072
|
+
// node_modules/framer-motion/dist/es/animation/hooks/use-animate.mjs
|
|
3073
|
+
function Do() {
|
|
3074
|
+
let e = ge(() => ({
|
|
3196
3075
|
current: null,
|
|
3197
3076
|
animations: []
|
|
3198
|
-
})), t =
|
|
3077
|
+
})), t = to() ?? void 0, { skipAnimations: n } = l(Qa), r = f(() => Eo({
|
|
3199
3078
|
scope: e,
|
|
3200
3079
|
reduceMotion: t,
|
|
3201
3080
|
skipAnimations: n
|
|
@@ -3204,18 +3083,17 @@ function Eo() {
|
|
|
3204
3083
|
t,
|
|
3205
3084
|
n
|
|
3206
3085
|
]);
|
|
3207
|
-
return
|
|
3086
|
+
return $a(() => {
|
|
3208
3087
|
e.animations.forEach((e) => e.stop()), e.animations.length = 0;
|
|
3209
3088
|
}), [e, r];
|
|
3210
3089
|
}
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
var Do = {
|
|
3090
|
+
// src/components/effectlib/bounce.tsx
|
|
3091
|
+
var Oo = {
|
|
3214
3092
|
display: "block",
|
|
3215
3093
|
width: "100%",
|
|
3216
3094
|
height: "100%"
|
|
3217
|
-
},
|
|
3218
|
-
let [a, o] =
|
|
3095
|
+
}, ko = ({ item: e, children: t, effectCallback: n, onEffectStart: r, ref: i }) => {
|
|
3096
|
+
let [a, o] = Do(), [s, c] = m(!1), l = p(!1), u = (t = !0) => {
|
|
3219
3097
|
if (!t && n && n(e), !s && !l.current) {
|
|
3220
3098
|
if (!a.current) return;
|
|
3221
3099
|
l.current = !0, c(!0), r && r(), o(a.current, {
|
|
@@ -3241,23 +3119,23 @@ var Do = {
|
|
|
3241
3119
|
});
|
|
3242
3120
|
}
|
|
3243
3121
|
};
|
|
3244
|
-
return
|
|
3245
|
-
triggerEffect:
|
|
3122
|
+
return d(i, () => ({
|
|
3123
|
+
triggerEffect: u,
|
|
3246
3124
|
setBusy: c,
|
|
3247
3125
|
busy: s
|
|
3248
|
-
}), [s]), /* @__PURE__ */
|
|
3126
|
+
}), [s]), /* @__PURE__ */ b("div", {
|
|
3249
3127
|
ref: a,
|
|
3250
3128
|
onClick: (e) => {
|
|
3251
|
-
e.stopPropagation(),
|
|
3129
|
+
e.stopPropagation(), u(!1);
|
|
3252
3130
|
},
|
|
3253
|
-
style:
|
|
3131
|
+
style: Oo,
|
|
3254
3132
|
children: t
|
|
3255
3133
|
});
|
|
3256
|
-
},
|
|
3134
|
+
}, Ao = ({ children: e, position: t = {
|
|
3257
3135
|
from: 0,
|
|
3258
3136
|
to: 0
|
|
3259
3137
|
}, screenScale: n, settings: r, onEffectEnd: i, onEffectStart: a, ref: o }) => {
|
|
3260
|
-
let [s, c] =
|
|
3138
|
+
let [s, c] = Do(), l = p(!1), u = () => {
|
|
3261
3139
|
if (!s.current) return;
|
|
3262
3140
|
a && a();
|
|
3263
3141
|
let e = l.current ? 0 : (t.to - t.from) * n / 100;
|
|
@@ -3270,22 +3148,22 @@ var Do = {
|
|
|
3270
3148
|
l.current = !l.current;
|
|
3271
3149
|
});
|
|
3272
3150
|
};
|
|
3273
|
-
return
|
|
3151
|
+
return d(o, () => ({ triggerEffect: u })), /* @__PURE__ */ b("div", {
|
|
3274
3152
|
ref: s,
|
|
3275
3153
|
onClick: (e) => {
|
|
3276
|
-
e.stopPropagation(),
|
|
3154
|
+
e.stopPropagation(), u();
|
|
3277
3155
|
},
|
|
3278
3156
|
children: e
|
|
3279
3157
|
});
|
|
3280
|
-
},
|
|
3158
|
+
}, jo = {
|
|
3281
3159
|
display: "block",
|
|
3282
3160
|
width: "100%",
|
|
3283
3161
|
height: "100%"
|
|
3284
|
-
},
|
|
3285
|
-
let [o, s] =
|
|
3286
|
-
if (!t && n && n(e), !c && !
|
|
3162
|
+
}, Mo = ({ item: e, children: t, effectCallback: n, onEffectEnd: r, onEffectStart: i, ref: a }) => {
|
|
3163
|
+
let [o, s] = Do(), [c, l] = m(!1), u = p(!1), f = (t = !0) => {
|
|
3164
|
+
if (!t && n && n(e), !c && !u.current) {
|
|
3287
3165
|
if (!o.current) return;
|
|
3288
|
-
|
|
3166
|
+
u.current = !0, l(!0), i && i(), s(o.current, {
|
|
3289
3167
|
boxShadow: [
|
|
3290
3168
|
"0px 0px 20px 10px rgba(209, 174, 34, 0)",
|
|
3291
3169
|
"0px 0px 20px 10px rgba(209, 174, 34, 0.8)",
|
|
@@ -3298,34 +3176,34 @@ var Do = {
|
|
|
3298
3176
|
1
|
|
3299
3177
|
]
|
|
3300
3178
|
}, { duration: 1 }).then(() => {
|
|
3301
|
-
l(!1),
|
|
3179
|
+
l(!1), u.current = !1, r && r();
|
|
3302
3180
|
}).catch(() => {
|
|
3303
|
-
l(!1),
|
|
3181
|
+
l(!1), u.current = !1;
|
|
3304
3182
|
});
|
|
3305
3183
|
}
|
|
3306
3184
|
};
|
|
3307
|
-
return
|
|
3308
|
-
triggerEffect:
|
|
3185
|
+
return d(a, () => ({
|
|
3186
|
+
triggerEffect: f,
|
|
3309
3187
|
setBusy: l,
|
|
3310
3188
|
busy: c
|
|
3311
|
-
}), [c]), /* @__PURE__ */
|
|
3189
|
+
}), [c]), /* @__PURE__ */ b("div", {
|
|
3312
3190
|
ref: o,
|
|
3313
3191
|
onClick: (e) => {
|
|
3314
|
-
e.stopPropagation(),
|
|
3192
|
+
e.stopPropagation(), f(!1);
|
|
3315
3193
|
},
|
|
3316
3194
|
style: {
|
|
3317
|
-
...
|
|
3195
|
+
...jo,
|
|
3318
3196
|
borderRadius: "100%"
|
|
3319
3197
|
},
|
|
3320
3198
|
children: t
|
|
3321
3199
|
});
|
|
3322
|
-
},
|
|
3200
|
+
}, No = {
|
|
3323
3201
|
display: "block",
|
|
3324
3202
|
width: "100%",
|
|
3325
3203
|
height: "100%"
|
|
3326
|
-
},
|
|
3327
|
-
let s = e.scaleSize / 100 * (t - 10) / 100, [c, l] =
|
|
3328
|
-
if (!t && r && r(e), !
|
|
3204
|
+
}, Po = ({ item: e, screenScale: t, children: n, effectCallback: r, onEffectEnd: i, onEffectStart: a, ref: o }) => {
|
|
3205
|
+
let s = e.scaleSize / 100 * (t - 10) / 100, [c, l] = Do(), [u, f] = m(!1), h = p(!1), g = (t = !0) => {
|
|
3206
|
+
if (!t && r && r(e), !u && !h.current) {
|
|
3329
3207
|
if (!c.current) return;
|
|
3330
3208
|
h.current = !0, a && a(), l(c.current, {
|
|
3331
3209
|
rotate: [
|
|
@@ -3350,33 +3228,33 @@ var Do = {
|
|
|
3350
3228
|
repeat: 4,
|
|
3351
3229
|
duration: .15
|
|
3352
3230
|
}).then(() => {
|
|
3353
|
-
|
|
3231
|
+
f(!1), h.current = !1, i && i();
|
|
3354
3232
|
}).catch(() => {
|
|
3355
|
-
|
|
3233
|
+
f(!1), h.current = !1;
|
|
3356
3234
|
});
|
|
3357
3235
|
}
|
|
3358
3236
|
};
|
|
3359
|
-
return
|
|
3237
|
+
return d(o, () => ({
|
|
3360
3238
|
triggerEffect: g,
|
|
3361
|
-
setBusy:
|
|
3362
|
-
busy:
|
|
3363
|
-
}), [
|
|
3239
|
+
setBusy: f,
|
|
3240
|
+
busy: u
|
|
3241
|
+
}), [u]), /* @__PURE__ */ b("div", {
|
|
3364
3242
|
ref: c,
|
|
3365
3243
|
onClick: (e) => {
|
|
3366
3244
|
e.stopPropagation(), g(!1);
|
|
3367
3245
|
},
|
|
3368
|
-
style:
|
|
3246
|
+
style: No,
|
|
3369
3247
|
children: n
|
|
3370
3248
|
});
|
|
3371
|
-
},
|
|
3249
|
+
}, Fo = {
|
|
3372
3250
|
display: "block",
|
|
3373
3251
|
width: "100%",
|
|
3374
3252
|
height: "100%"
|
|
3375
|
-
},
|
|
3376
|
-
let o = e.scaleSize / 100, [s, c] =
|
|
3377
|
-
if (!t && n && n(e), !l && !
|
|
3253
|
+
}, Io = ({ item: e, children: t, effectCallback: n, onEffectEnd: r, onEffectStart: i, ref: a }) => {
|
|
3254
|
+
let o = e.scaleSize / 100, [s, c] = Do(), [l, u] = m(!1), f = p(!1), h = (t = !0) => {
|
|
3255
|
+
if (!t && n && n(e), !l && !f.current) {
|
|
3378
3256
|
if (!s.current) return;
|
|
3379
|
-
|
|
3257
|
+
f.current = !0, u(!0), i && i(), c(s.current, {
|
|
3380
3258
|
y: [
|
|
3381
3259
|
0,
|
|
3382
3260
|
-10 * o,
|
|
@@ -3396,90 +3274,86 @@ var Do = {
|
|
|
3396
3274
|
repeatType: "reverse",
|
|
3397
3275
|
duration: .5 * o
|
|
3398
3276
|
}).then(() => {
|
|
3399
|
-
|
|
3277
|
+
u(!1), f.current = !1, r && r();
|
|
3400
3278
|
}).catch(() => {
|
|
3401
|
-
|
|
3279
|
+
u(!1), f.current = !1;
|
|
3402
3280
|
});
|
|
3403
3281
|
}
|
|
3404
3282
|
};
|
|
3405
|
-
return
|
|
3283
|
+
return d(a, () => ({
|
|
3406
3284
|
triggerEffect: h,
|
|
3407
|
-
setBusy:
|
|
3285
|
+
setBusy: u,
|
|
3408
3286
|
busy: l
|
|
3409
|
-
}), [l]), /* @__PURE__ */
|
|
3287
|
+
}), [l]), /* @__PURE__ */ b("div", {
|
|
3410
3288
|
ref: s,
|
|
3411
3289
|
onClick: (e) => {
|
|
3412
3290
|
e.stopPropagation(), h(!1);
|
|
3413
3291
|
},
|
|
3414
|
-
style:
|
|
3292
|
+
style: Fo,
|
|
3415
3293
|
children: t
|
|
3416
3294
|
});
|
|
3417
|
-
},
|
|
3418
|
-
let { effect: i, mediaType: a } = e, [o,
|
|
3419
|
-
|
|
3420
|
-
}, []), _ =
|
|
3421
|
-
let e =
|
|
3422
|
-
|
|
3423
|
-
h.current = !0;
|
|
3424
|
-
return;
|
|
3425
|
-
}
|
|
3426
|
-
o || (c(!0), e.setFrame(0), e.play());
|
|
3295
|
+
}, Lo = o.lazy(() => import("./dolottie-C0XP7-PK.js")), Ro = o.lazy(() => import("./Image-BvZmqug_.js")), zo = ({ item: e, screenScale: t, onMediaClick: n, ref: r }) => {
|
|
3296
|
+
let { effect: i, mediaType: a } = e, [o, s] = m(!1), [l, d] = m(null), f = p(null), h = p(!1), g = c((e) => {
|
|
3297
|
+
f.current = e, d(e);
|
|
3298
|
+
}, []), _ = c(() => {
|
|
3299
|
+
let e = f.current;
|
|
3300
|
+
e ? o || (s(!0), e.setFrame(0), e.play()) : h.current = !0;
|
|
3427
3301
|
}, [o]);
|
|
3428
|
-
|
|
3429
|
-
if (!
|
|
3302
|
+
u(() => {
|
|
3303
|
+
if (!l || !h.current) return;
|
|
3430
3304
|
let e = () => {
|
|
3431
|
-
h.current = !1,
|
|
3305
|
+
h.current = !1, s(!0), l.setFrame(0), l.play();
|
|
3432
3306
|
};
|
|
3433
|
-
if (
|
|
3434
|
-
else return
|
|
3435
|
-
}, [
|
|
3436
|
-
let v =
|
|
3437
|
-
let e =
|
|
3438
|
-
e && o && e.stop(),
|
|
3307
|
+
if (l.isLoaded) e();
|
|
3308
|
+
else return l.addEventListener("load", e), () => l.removeEventListener("load", e);
|
|
3309
|
+
}, [l]);
|
|
3310
|
+
let v = c(() => {
|
|
3311
|
+
let e = f.current;
|
|
3312
|
+
e && o && e.stop(), s(!1);
|
|
3439
3313
|
}, [o]);
|
|
3440
|
-
|
|
3314
|
+
u(() => {
|
|
3441
3315
|
let e = () => {
|
|
3442
|
-
|
|
3316
|
+
i && i.type || s(!1);
|
|
3443
3317
|
};
|
|
3444
|
-
return
|
|
3445
|
-
|
|
3318
|
+
return l && l.addEventListener("complete", e), () => {
|
|
3319
|
+
l && l.removeEventListener("complete", e);
|
|
3446
3320
|
};
|
|
3447
|
-
}, [
|
|
3448
|
-
let
|
|
3321
|
+
}, [l, i]);
|
|
3322
|
+
let y = () => a === "lottie" ? /* @__PURE__ */ b(Lo, {
|
|
3449
3323
|
item: e,
|
|
3450
3324
|
play: o,
|
|
3451
3325
|
setDotLottie: g
|
|
3452
|
-
}) : /* @__PURE__ */
|
|
3453
|
-
return i?.type ? i.type === "highlight" ? /* @__PURE__ */
|
|
3326
|
+
}) : /* @__PURE__ */ b(Ro, { mediaItem: e });
|
|
3327
|
+
return i?.type ? i.type === "highlight" ? /* @__PURE__ */ b(Mo, {
|
|
3454
3328
|
item: e,
|
|
3455
3329
|
ref: r,
|
|
3456
3330
|
onEffectStart: _,
|
|
3457
3331
|
screenScale: t,
|
|
3458
3332
|
effectCallback: n,
|
|
3459
|
-
children:
|
|
3460
|
-
}) : i.type === "shake" ? /* @__PURE__ */
|
|
3333
|
+
children: y()
|
|
3334
|
+
}) : i.type === "shake" ? /* @__PURE__ */ b(Po, {
|
|
3461
3335
|
item: e,
|
|
3462
3336
|
ref: r,
|
|
3463
3337
|
onEffectStart: _,
|
|
3464
3338
|
screenScale: t,
|
|
3465
3339
|
effectCallback: n,
|
|
3466
|
-
children:
|
|
3467
|
-
}) : i.type === "bounce" ? /* @__PURE__ */
|
|
3340
|
+
children: y()
|
|
3341
|
+
}) : i.type === "bounce" ? /* @__PURE__ */ b(ko, {
|
|
3468
3342
|
item: e,
|
|
3469
3343
|
ref: r,
|
|
3470
3344
|
onEffectStart: _,
|
|
3471
3345
|
screenScale: t,
|
|
3472
3346
|
effectCallback: n,
|
|
3473
|
-
children:
|
|
3474
|
-
}) : i.type === "jump" ? /* @__PURE__ */
|
|
3347
|
+
children: y()
|
|
3348
|
+
}) : i.type === "jump" ? /* @__PURE__ */ b(Io, {
|
|
3475
3349
|
item: e,
|
|
3476
3350
|
ref: r,
|
|
3477
3351
|
onEffectEnd: v,
|
|
3478
3352
|
onEffectStart: _,
|
|
3479
3353
|
screenScale: t,
|
|
3480
3354
|
effectCallback: n,
|
|
3481
|
-
children:
|
|
3482
|
-
}) : i.type === "move" ? /* @__PURE__ */
|
|
3355
|
+
children: y()
|
|
3356
|
+
}) : i.type === "move" ? /* @__PURE__ */ b(Ao, {
|
|
3483
3357
|
onEffectEnd: v,
|
|
3484
3358
|
onEffectStart: _,
|
|
3485
3359
|
ref: r,
|
|
@@ -3489,215 +3363,216 @@ var Do = {
|
|
|
3489
3363
|
to: i.settings.to
|
|
3490
3364
|
},
|
|
3491
3365
|
settings: i.settings,
|
|
3492
|
-
children:
|
|
3493
|
-
}) : null : /* @__PURE__ */
|
|
3366
|
+
children: y()
|
|
3367
|
+
}) : null : /* @__PURE__ */ b(he, {
|
|
3494
3368
|
onEffectEnd: v,
|
|
3495
3369
|
onEffectStart: _,
|
|
3496
3370
|
item: e,
|
|
3497
3371
|
ref: r,
|
|
3498
3372
|
screenScale: t,
|
|
3499
3373
|
effectCallback: n,
|
|
3500
|
-
children:
|
|
3374
|
+
children: y()
|
|
3501
3375
|
});
|
|
3502
3376
|
};
|
|
3503
|
-
|
|
3504
|
-
var
|
|
3377
|
+
zo.displayName = "Animation";
|
|
3378
|
+
var Bo = o.memo(zo), Vo = o.memo(({ path: e, mediaType: t }) => t && t === "static" ? /* @__PURE__ */ b("span", {
|
|
3505
3379
|
className: "inline-flex",
|
|
3506
|
-
children:
|
|
3507
|
-
src:
|
|
3508
|
-
|
|
3509
|
-
loading: "lazy",
|
|
3380
|
+
children: /* @__PURE__ */ b(a, {
|
|
3381
|
+
src: e,
|
|
3382
|
+
eager: !0,
|
|
3510
3383
|
className: "max-w-full max-h-full w-full h-full -z-10"
|
|
3511
|
-
})
|
|
3384
|
+
})
|
|
3512
3385
|
}) : null);
|
|
3513
|
-
|
|
3514
|
-
var
|
|
3386
|
+
Vo.displayName = "LazySvg";
|
|
3387
|
+
var Ho = o.memo(Vo), Uo = {
|
|
3515
3388
|
left: 0,
|
|
3516
3389
|
top: 480
|
|
3517
|
-
},
|
|
3518
|
-
let
|
|
3519
|
-
|
|
3390
|
+
}, Wo = "clamp(18px, 3.8vmin, 34px)", Go = 2, Ko = ({ page: t, screenScale: r, isActive: a, isPrev: o = !1, isNext: s = !1, distanceFromActive: l, textDirection: d = "LTR" }) => {
|
|
3391
|
+
let h = _(), g = e(), { bookId: v, slug: S, analytics: C } = g, w = a || o || s || l !== void 0 && l <= Go, T = p(!1);
|
|
3392
|
+
w && (T.current = !0);
|
|
3393
|
+
let E = w || T.current, { audio: D, words: ee, background: te, media: ne = [], layoutStyle: O = le.BOTTOM, textPosition: re, textStyle: k } = t, A = O === le.BOTTOM ? "layout-btm-aligned" : "", [j, ie] = m([]), M = p([]), N = p(null), [P, ae] = m(null), oe = p(null), se = p(!0), fe = navigator?.userActivation.hasBeenActive, pe = h.activeIndex > (h.previousIndex ?? -1), F = f(() => D?.pageAudio?.segments ? D.pageAudio.segments : ee && ee.length > 0 ? ee : [], [D, ee]);
|
|
3394
|
+
u(() => {
|
|
3520
3395
|
let e = null;
|
|
3521
|
-
return a &&
|
|
3522
|
-
|
|
3523
|
-
}, 750)), !a &&
|
|
3396
|
+
return a && P === null && fe && pe && (e = setTimeout(() => {
|
|
3397
|
+
_e();
|
|
3398
|
+
}, 750)), !a && P === !0 && (C?.onAudioPaused?.(v, t._id), N.current?.onAbortAudio()), () => {
|
|
3524
3399
|
e && clearTimeout(e);
|
|
3525
3400
|
};
|
|
3526
3401
|
}, [
|
|
3527
3402
|
a,
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
]),
|
|
3532
|
-
|
|
3533
|
-
}), []),
|
|
3534
|
-
|
|
3535
|
-
}, [
|
|
3536
|
-
let
|
|
3537
|
-
|
|
3403
|
+
P,
|
|
3404
|
+
fe,
|
|
3405
|
+
pe
|
|
3406
|
+
]), u(() => (se.current = !0, () => {
|
|
3407
|
+
se.current = !1;
|
|
3408
|
+
}), []), u(() => {
|
|
3409
|
+
oe.current === !0 && P === !1 && a && C?.onAudioCompleted?.(v, t._id, D?.pageAudio?.mp3 ?? t._id), oe.current = P;
|
|
3410
|
+
}, [P]);
|
|
3411
|
+
let he = c(async (e) => {
|
|
3412
|
+
C?.onWordTapped?.(v, t._id, e.word), M.current.forEach((t) => {
|
|
3538
3413
|
t.mediaItem.effect?.timing?.forEach((n) => {
|
|
3539
|
-
e.word === n.word && t.element
|
|
3414
|
+
e.word === n.word && t.element?.triggerEffect();
|
|
3540
3415
|
});
|
|
3541
3416
|
});
|
|
3542
|
-
let n =
|
|
3417
|
+
let n = F.findIndex((t) => t.word === e.word && t.start === e.start);
|
|
3543
3418
|
if (n > -1) {
|
|
3544
|
-
let e =
|
|
3545
|
-
|
|
3419
|
+
let e = F[n];
|
|
3420
|
+
ie([n]), await i((e.end - e.start) * 1e3 + 500), se.current && ie([]);
|
|
3546
3421
|
}
|
|
3547
3422
|
}, [
|
|
3548
|
-
|
|
3549
|
-
|
|
3423
|
+
C,
|
|
3424
|
+
v,
|
|
3550
3425
|
t._id,
|
|
3551
|
-
|
|
3552
|
-
]),
|
|
3426
|
+
F
|
|
3427
|
+
]), ge = c((e) => {
|
|
3553
3428
|
if (!e) return;
|
|
3554
|
-
|
|
3429
|
+
C?.onAnimationTriggered?.(v, t._id, e._id, e.effect?.type);
|
|
3555
3430
|
let { effect: n } = e, r = [], i = [];
|
|
3556
3431
|
n?.timing?.forEach((e) => {
|
|
3557
|
-
let t =
|
|
3432
|
+
let t = F.findIndex((t) => t.word === e.word && t.start === e.start);
|
|
3558
3433
|
t > -1 && (r.push(t), i.push({
|
|
3559
3434
|
...e,
|
|
3560
3435
|
index: t
|
|
3561
|
-
}),
|
|
3436
|
+
}), he(e));
|
|
3562
3437
|
});
|
|
3563
3438
|
}, [
|
|
3564
|
-
|
|
3565
|
-
|
|
3439
|
+
C,
|
|
3440
|
+
v,
|
|
3566
3441
|
t._id,
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
]),
|
|
3570
|
-
|
|
3442
|
+
F,
|
|
3443
|
+
he
|
|
3444
|
+
]), _e = c(async () => {
|
|
3445
|
+
N.current?.isPlaying || (M.current.forEach((e) => {
|
|
3571
3446
|
e.mediaItem?.effect?.timing?.forEach((t) => {
|
|
3572
3447
|
setTimeout(() => {
|
|
3573
3448
|
e.element?.triggerEffect();
|
|
3574
3449
|
}, t.start * 1e3);
|
|
3575
3450
|
});
|
|
3576
|
-
}),
|
|
3451
|
+
}), N.current?.onPlay(), C?.onAudioPlayed?.(v, t._id, D?.pageAudio?.mp3 ?? t._id));
|
|
3577
3452
|
}, [
|
|
3578
|
-
|
|
3579
|
-
|
|
3453
|
+
C,
|
|
3454
|
+
v,
|
|
3580
3455
|
t._id,
|
|
3581
|
-
|
|
3582
|
-
]),
|
|
3456
|
+
D
|
|
3457
|
+
]), ve = re ?? Uo, I = ve.left * r / 100, ye = ve.top * r / 100, L = 1200 * r / 100, R = F.length > 0 ? O === le.DYNAMIC ? /* @__PURE__ */ b("div", {
|
|
3583
3458
|
className: "page-text-overlay",
|
|
3584
|
-
dir:
|
|
3459
|
+
dir: d.toLowerCase(),
|
|
3585
3460
|
style: {
|
|
3586
3461
|
left: 0,
|
|
3587
3462
|
top: 0,
|
|
3588
|
-
transform: `translate(${
|
|
3589
|
-
width:
|
|
3590
|
-
maxWidth: `${
|
|
3463
|
+
transform: `translate(${I}px, ${ye}px)`,
|
|
3464
|
+
width: k?.textWidth ? `${k.textWidth * r / 100}px` : "fit-content",
|
|
3465
|
+
maxWidth: `${L}px`
|
|
3591
3466
|
},
|
|
3592
|
-
children: /* @__PURE__ */
|
|
3467
|
+
children: /* @__PURE__ */ b("div", {
|
|
3593
3468
|
style: {
|
|
3594
3469
|
display: "inline-block",
|
|
3595
|
-
width:
|
|
3470
|
+
width: k?.textWidth ? "100%" : void 0,
|
|
3596
3471
|
padding: "6px 8px",
|
|
3597
|
-
fontSize:
|
|
3472
|
+
fontSize: k?.fontSize ?? Wo,
|
|
3598
3473
|
lineHeight: 1.2,
|
|
3599
|
-
backgroundColor:
|
|
3600
|
-
color:
|
|
3601
|
-
whiteSpace:
|
|
3602
|
-
wordBreak:
|
|
3474
|
+
backgroundColor: k?.background ?? "transparent",
|
|
3475
|
+
color: k?.color ?? "inherit",
|
|
3476
|
+
whiteSpace: k?.textWidth ? "normal" : "nowrap",
|
|
3477
|
+
wordBreak: k?.textWidth ? "break-word" : void 0,
|
|
3603
3478
|
boxSizing: "border-box"
|
|
3604
3479
|
},
|
|
3605
|
-
children: /* @__PURE__ */
|
|
3606
|
-
onWordSelect:
|
|
3607
|
-
segments:
|
|
3608
|
-
pageAudio:
|
|
3609
|
-
ref:
|
|
3610
|
-
setIsPlaying:
|
|
3611
|
-
highlightIds:
|
|
3612
|
-
textDirection:
|
|
3480
|
+
children: /* @__PURE__ */ b(de, {
|
|
3481
|
+
onWordSelect: he,
|
|
3482
|
+
segments: F,
|
|
3483
|
+
pageAudio: D?.pageAudio?.path ? D.pageAudio : null,
|
|
3484
|
+
ref: N,
|
|
3485
|
+
setIsPlaying: ae,
|
|
3486
|
+
highlightIds: j,
|
|
3487
|
+
textDirection: d
|
|
3613
3488
|
})
|
|
3614
3489
|
})
|
|
3615
|
-
}) : /* @__PURE__ */
|
|
3490
|
+
}) : /* @__PURE__ */ b("div", {
|
|
3616
3491
|
className: "pagetext-wrapper",
|
|
3617
|
-
children: /* @__PURE__ */
|
|
3492
|
+
children: /* @__PURE__ */ b("div", {
|
|
3618
3493
|
className: "textwrapper-inner",
|
|
3619
|
-
children: /* @__PURE__ */
|
|
3494
|
+
children: /* @__PURE__ */ b("div", {
|
|
3620
3495
|
className: "textcontainer",
|
|
3621
|
-
dir:
|
|
3622
|
-
children: /* @__PURE__ */
|
|
3623
|
-
onWordSelect:
|
|
3624
|
-
segments:
|
|
3625
|
-
pageAudio:
|
|
3626
|
-
ref:
|
|
3627
|
-
setIsPlaying:
|
|
3628
|
-
highlightIds:
|
|
3629
|
-
textDirection:
|
|
3496
|
+
dir: d.toLowerCase(),
|
|
3497
|
+
children: /* @__PURE__ */ b(de, {
|
|
3498
|
+
onWordSelect: he,
|
|
3499
|
+
segments: F,
|
|
3500
|
+
pageAudio: D?.pageAudio?.path ? D.pageAudio : null,
|
|
3501
|
+
ref: N,
|
|
3502
|
+
setIsPlaying: ae,
|
|
3503
|
+
highlightIds: j,
|
|
3504
|
+
textDirection: d
|
|
3630
3505
|
})
|
|
3631
3506
|
})
|
|
3632
3507
|
})
|
|
3633
3508
|
}) : null;
|
|
3634
|
-
return
|
|
3635
|
-
className: `
|
|
3636
|
-
dir:
|
|
3509
|
+
return /* @__PURE__ */ x("div", {
|
|
3510
|
+
className: `pageContentWrapper ${A}`,
|
|
3511
|
+
dir: d.toLowerCase(),
|
|
3512
|
+
inert: !a || void 0,
|
|
3513
|
+
tabIndex: a ? void 0 : -1,
|
|
3514
|
+
"aria-hidden": !a || void 0,
|
|
3637
3515
|
children: [
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3516
|
+
te && /* @__PURE__ */ b(ue, {
|
|
3517
|
+
background: te,
|
|
3518
|
+
eager: E
|
|
3519
|
+
}),
|
|
3520
|
+
D && a ? /* @__PURE__ */ b("button", {
|
|
3521
|
+
disabled: P === !0,
|
|
3522
|
+
onClick: _e,
|
|
3523
|
+
"aria-label": P ? "Audio is playing" : "Play audio",
|
|
3524
|
+
className: `ui btn audioplay ${P ? "playing" : ""}`,
|
|
3525
|
+
children: /* @__PURE__ */ b(ce, {
|
|
3645
3526
|
size: "50%",
|
|
3646
|
-
className: `${
|
|
3527
|
+
className: `${P ? "playing" : ""}`
|
|
3647
3528
|
})
|
|
3648
|
-
}),
|
|
3649
|
-
|
|
3529
|
+
}) : null,
|
|
3530
|
+
E && ne && ne.map((e, t) => e.effect ? /* @__PURE__ */ b(me, {
|
|
3650
3531
|
item: e,
|
|
3651
3532
|
screenScale: r,
|
|
3652
|
-
children: /* @__PURE__ */
|
|
3533
|
+
children: /* @__PURE__ */ b(Bo, {
|
|
3653
3534
|
screenScale: r,
|
|
3654
3535
|
item: e,
|
|
3655
|
-
onMediaClick:
|
|
3536
|
+
onMediaClick: ge,
|
|
3656
3537
|
ref: (n) => {
|
|
3657
|
-
|
|
3538
|
+
M.current[t] = {
|
|
3658
3539
|
element: n,
|
|
3659
3540
|
mediaItem: e
|
|
3660
3541
|
};
|
|
3661
3542
|
}
|
|
3662
3543
|
})
|
|
3663
|
-
}, e.id) : /* @__PURE__ */
|
|
3544
|
+
}, e.id) : /* @__PURE__ */ x(me, {
|
|
3664
3545
|
item: e,
|
|
3665
3546
|
screenScale: r,
|
|
3666
|
-
children: [e.mediaType === "lottie" && /* @__PURE__ */ y
|
|
3547
|
+
children: [e.mediaType === "lottie" && /* @__PURE__ */ b(y, { children: /* @__PURE__ */ b(Bo, {
|
|
3667
3548
|
item: e,
|
|
3668
3549
|
screenScale: r,
|
|
3669
|
-
onMediaClick:
|
|
3550
|
+
onMediaClick: ge,
|
|
3670
3551
|
ref: (n) => {
|
|
3671
|
-
|
|
3552
|
+
M.current[t] = {
|
|
3672
3553
|
element: n,
|
|
3673
3554
|
mediaItem: e
|
|
3674
3555
|
};
|
|
3675
3556
|
}
|
|
3676
|
-
}) }), e.mediaType !== "lottie" && /* @__PURE__ */
|
|
3677
|
-
path: n(
|
|
3557
|
+
}) }), e.mediaType !== "lottie" && /* @__PURE__ */ b(Ho, {
|
|
3558
|
+
path: n(g, e),
|
|
3678
3559
|
mediaType: e.mediaType
|
|
3679
3560
|
})]
|
|
3680
3561
|
}, e.id)),
|
|
3681
|
-
|
|
3562
|
+
R
|
|
3682
3563
|
]
|
|
3683
|
-
}) : /* @__PURE__ */ b("div", {
|
|
3684
|
-
className: `pageContentWrapper ${ee}`,
|
|
3685
|
-
inert: !0,
|
|
3686
|
-
tabIndex: -1,
|
|
3687
|
-
"aria-hidden": "true",
|
|
3688
|
-
children: [C && /* @__PURE__ */ y(se, { background: C }), he]
|
|
3689
3564
|
});
|
|
3690
|
-
},
|
|
3565
|
+
}, qo = 1280, Jo = 600, Yo = qo / Jo, Xo = ({ id: e, analytics: r, fonts: i = [], bookSource: a = {
|
|
3691
3566
|
type: "static",
|
|
3692
3567
|
staticFolder: "GDLBookContent"
|
|
3693
|
-
} }) => {
|
|
3694
|
-
let [
|
|
3568
|
+
}, lottieWasmUrl: o }) => {
|
|
3569
|
+
let [s, c] = m(null), [l, d] = m(null), [f, p] = m(null), [_, E] = m(null), D = w([...s?.fonts ?? [], ...i], s?.language, s?.script), ee = T(D), te = D[0]?.family || "Quicksand", ne = s?.illustration && s.illustration.path || s?.coverText && s.coverText !== "", O = s?.credits && s.credits?.text || s?.credits?.logos && s.credits?.logos.length > 0, [re, k] = m({
|
|
3695
3570
|
width: 0,
|
|
3696
3571
|
height: 0
|
|
3697
|
-
}), { width:
|
|
3698
|
-
|
|
3572
|
+
}), { width: A, height: j } = re, ie = s?.config.textDirection || "LTR";
|
|
3573
|
+
u(() => {
|
|
3699
3574
|
let e = () => {
|
|
3700
|
-
|
|
3575
|
+
k({
|
|
3701
3576
|
width: window.innerWidth,
|
|
3702
3577
|
height: window.innerHeight
|
|
3703
3578
|
});
|
|
@@ -3706,139 +3581,144 @@ var Vo = a.memo(Bo), Ho = {
|
|
|
3706
3581
|
window.removeEventListener("resize", e);
|
|
3707
3582
|
};
|
|
3708
3583
|
}, []);
|
|
3709
|
-
let
|
|
3710
|
-
width:
|
|
3711
|
-
height:
|
|
3584
|
+
let M = 100, N = {
|
|
3585
|
+
width: qo,
|
|
3586
|
+
height: Jo
|
|
3712
3587
|
};
|
|
3713
|
-
return (
|
|
3714
|
-
height:
|
|
3715
|
-
width:
|
|
3716
|
-
},
|
|
3717
|
-
width:
|
|
3718
|
-
height:
|
|
3719
|
-
},
|
|
3720
|
-
!
|
|
3588
|
+
return (A < qo || j < Jo) && (Jo / j > qo / A ? (N = {
|
|
3589
|
+
height: j,
|
|
3590
|
+
width: j * Yo
|
|
3591
|
+
}, M = j / Jo * 100) : (N = {
|
|
3592
|
+
width: A,
|
|
3593
|
+
height: A / Yo
|
|
3594
|
+
}, M = A / qo * 100)), u(() => {
|
|
3595
|
+
!s && e && (async (e) => {
|
|
3721
3596
|
let t = a.type === "api" ? `${a.apiHost}/api/book?slug=${e}` : `/${a.staticFolder}/${e}/content.json`;
|
|
3722
3597
|
try {
|
|
3723
3598
|
let n = await fetch(t, { cache: "no-store" });
|
|
3724
3599
|
if (!n.ok) throw Error(`Error fetching data for (${e}): ${n.status}`);
|
|
3725
3600
|
let i = await n.json();
|
|
3726
|
-
|
|
3601
|
+
c(i), d(null), navigator.onLine && r?.onBookOpened && r.onBookOpened(i._id, i.title);
|
|
3727
3602
|
} catch (t) {
|
|
3728
|
-
console.error(t),
|
|
3603
|
+
console.error(t), c(null), d(`Error fetching data for (${e}): ${t instanceof Error ? t.message : "Unknown error"}`);
|
|
3729
3604
|
}
|
|
3730
3605
|
})(e);
|
|
3731
|
-
}, [e]),
|
|
3606
|
+
}, [e]), l ? /* @__PURE__ */ x("p", {
|
|
3732
3607
|
role: "alert",
|
|
3733
3608
|
className: "player",
|
|
3734
|
-
children: ["Error: ",
|
|
3735
|
-
}) : !
|
|
3609
|
+
children: ["Error: ", l]
|
|
3610
|
+
}) : !s || !e ? /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("style", { children: S }), /* @__PURE__ */ b("div", {
|
|
3736
3611
|
role: "status",
|
|
3737
3612
|
"aria-label": "Loading",
|
|
3738
3613
|
className: "player centered",
|
|
3739
|
-
children: /* @__PURE__ */
|
|
3740
|
-
})] }) : /* @__PURE__ */
|
|
3741
|
-
bookId:
|
|
3742
|
-
slug:
|
|
3614
|
+
children: /* @__PURE__ */ b("span", { className: "loader" })
|
|
3615
|
+
})] }) : /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("style", { children: `:root, :host, .player { --player-font-family: '${C(te)}'; }${ee}${S}` }), /* @__PURE__ */ b(t, {
|
|
3616
|
+
bookId: s._id,
|
|
3617
|
+
slug: s.slug,
|
|
3743
3618
|
assetConfig: a,
|
|
3744
3619
|
analytics: r,
|
|
3745
|
-
|
|
3620
|
+
lottieWasmUrl: o,
|
|
3621
|
+
children: /* @__PURE__ */ b("div", {
|
|
3746
3622
|
className: "player",
|
|
3747
|
-
children: /* @__PURE__ */
|
|
3623
|
+
children: /* @__PURE__ */ b("div", {
|
|
3748
3624
|
className: "view-box",
|
|
3749
|
-
children: /* @__PURE__ */
|
|
3625
|
+
children: /* @__PURE__ */ x(h, {
|
|
3750
3626
|
onSlideChange: (e) => {
|
|
3751
|
-
|
|
3627
|
+
p(e.activeIndex), s && (r?.onPageTurned && r.onPageTurned(s._id, e.activeIndex), e.isEnd && r?.onBookCompleted && r.onBookCompleted(s._id, s.title));
|
|
3752
3628
|
},
|
|
3753
3629
|
className: "mySwiper swiper-container",
|
|
3754
3630
|
speed: 1200,
|
|
3755
|
-
dir:
|
|
3756
|
-
modules: [
|
|
3631
|
+
dir: "ltr",
|
|
3632
|
+
modules: [v],
|
|
3757
3633
|
pagination: {
|
|
3758
3634
|
clickable: !1,
|
|
3759
3635
|
type: "progressbar"
|
|
3760
3636
|
},
|
|
3761
3637
|
onSwiper: (e) => {
|
|
3762
|
-
|
|
3638
|
+
E(e);
|
|
3763
3639
|
},
|
|
3764
|
-
style: { ...
|
|
3640
|
+
style: { ...N },
|
|
3765
3641
|
a11y: {
|
|
3766
3642
|
enabled: !0,
|
|
3767
3643
|
prevSlideMessage: "Previous page",
|
|
3768
3644
|
nextSlideMessage: "Next page"
|
|
3769
3645
|
},
|
|
3770
3646
|
children: [
|
|
3771
|
-
|
|
3647
|
+
ne && /* @__PURE__ */ b(g, {
|
|
3772
3648
|
"data-hash": "cover",
|
|
3773
|
-
children: ({ isActive: e }) => /* @__PURE__ */
|
|
3649
|
+
children: ({ isActive: e }) => /* @__PURE__ */ x("div", {
|
|
3774
3650
|
className: "cover-page",
|
|
3775
|
-
inert: e
|
|
3776
|
-
children: [/* @__PURE__ */
|
|
3651
|
+
inert: !e || void 0,
|
|
3652
|
+
children: [/* @__PURE__ */ b("div", {
|
|
3777
3653
|
className: "cover-illustration",
|
|
3778
|
-
children:
|
|
3654
|
+
children: s.illustration?.path && /* @__PURE__ */ b("img", {
|
|
3779
3655
|
src: n({
|
|
3780
|
-
bookId:
|
|
3781
|
-
slug:
|
|
3656
|
+
bookId: s._id,
|
|
3657
|
+
slug: s.slug,
|
|
3782
3658
|
assetConfig: a
|
|
3783
|
-
},
|
|
3784
|
-
alt:
|
|
3659
|
+
}, s.illustration),
|
|
3660
|
+
alt: s.title
|
|
3785
3661
|
})
|
|
3786
|
-
}), /* @__PURE__ */
|
|
3662
|
+
}), /* @__PURE__ */ x("div", {
|
|
3787
3663
|
className: "cover-text",
|
|
3788
|
-
dir:
|
|
3789
|
-
children: [/* @__PURE__ */
|
|
3664
|
+
dir: ie.toLowerCase() || "ltr",
|
|
3665
|
+
children: [/* @__PURE__ */ b("h1", { children: s.title }), s.coverText && /* @__PURE__ */ b("small", { children: s.coverText })]
|
|
3790
3666
|
})]
|
|
3791
3667
|
})
|
|
3792
3668
|
}),
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3669
|
+
s.body.map((e, t) => {
|
|
3670
|
+
let n = t + +!!ne, r = Math.abs(n - (f ?? 0));
|
|
3671
|
+
return /* @__PURE__ */ b(g, {
|
|
3672
|
+
className: "overflow-hidden",
|
|
3673
|
+
"data-hash": e._id,
|
|
3674
|
+
children: ({ isActive: t, isPrev: n, isNext: i }) => /* @__PURE__ */ b(Ko, {
|
|
3675
|
+
screenScale: M,
|
|
3676
|
+
page: e,
|
|
3677
|
+
isActive: t,
|
|
3678
|
+
isPrev: n,
|
|
3679
|
+
isNext: i,
|
|
3680
|
+
distanceFromActive: r,
|
|
3681
|
+
textDirection: ie
|
|
3682
|
+
})
|
|
3683
|
+
}, e._id);
|
|
3684
|
+
}),
|
|
3685
|
+
O && /* @__PURE__ */ b(g, {
|
|
3804
3686
|
"data-hash": "credits",
|
|
3805
|
-
children: ({ isActive: e }) => /* @__PURE__ */
|
|
3687
|
+
children: ({ isActive: e }) => /* @__PURE__ */ x("div", {
|
|
3806
3688
|
className: "credits-page",
|
|
3807
|
-
inert: e
|
|
3808
|
-
children: [/* @__PURE__ */
|
|
3689
|
+
inert: !e || void 0,
|
|
3690
|
+
children: [/* @__PURE__ */ b("div", {
|
|
3809
3691
|
className: "credits-page-inner",
|
|
3810
|
-
children:
|
|
3692
|
+
children: s.credits?.logos.map((e) => /* @__PURE__ */ b("div", {
|
|
3811
3693
|
className: "logo-item",
|
|
3812
|
-
children: /* @__PURE__ */
|
|
3813
|
-
src: a.type === "api" ? `${a.assetsHost}/logos/${e}.jpg` : `/${a.staticFolder}/${
|
|
3694
|
+
children: /* @__PURE__ */ b("img", {
|
|
3695
|
+
src: a.type === "api" ? `${a.assetsHost}/logos/${e}.jpg` : `/${a.staticFolder}/${s.slug}/assets/${e}.jpg`,
|
|
3814
3696
|
alt: e
|
|
3815
3697
|
})
|
|
3816
3698
|
}, e))
|
|
3817
|
-
}), /* @__PURE__ */
|
|
3699
|
+
}), /* @__PURE__ */ x("div", {
|
|
3818
3700
|
className: "credits-page-bottom",
|
|
3819
|
-
dir:
|
|
3820
|
-
children: [/* @__PURE__ */
|
|
3701
|
+
dir: ie.toLowerCase() || "ltr",
|
|
3702
|
+
children: [/* @__PURE__ */ x("h1", { children: [
|
|
3821
3703
|
"\"",
|
|
3822
|
-
|
|
3704
|
+
s.title,
|
|
3823
3705
|
"\" credits"
|
|
3824
|
-
] }),
|
|
3706
|
+
] }), s.credits?.text && /* @__PURE__ */ b("small", { children: s.credits.text })]
|
|
3825
3707
|
})]
|
|
3826
3708
|
})
|
|
3827
3709
|
}),
|
|
3828
|
-
|
|
3829
|
-
isFirst:
|
|
3830
|
-
isLast:
|
|
3831
|
-
activeIndex:
|
|
3832
|
-
textDirection: N
|
|
3710
|
+
_ && _.slides.length > 1 && /* @__PURE__ */ b(se, {
|
|
3711
|
+
isFirst: _.isBeginning === !0,
|
|
3712
|
+
isLast: _.isEnd === !0,
|
|
3713
|
+
activeIndex: f
|
|
3833
3714
|
})
|
|
3834
3715
|
]
|
|
3835
3716
|
})
|
|
3836
3717
|
})
|
|
3837
3718
|
})
|
|
3838
3719
|
})] });
|
|
3839
|
-
},
|
|
3840
|
-
function
|
|
3841
|
-
return "1.5.
|
|
3720
|
+
}, Zo = "1.5.3";
|
|
3721
|
+
function Qo() {
|
|
3722
|
+
return "1.5.3";
|
|
3842
3723
|
}
|
|
3843
|
-
|
|
3844
|
-
export { Yo as PLAYER_VERSION, Jo as Player, Xo as getPlayerVersion };
|
|
3724
|
+
export { Zo as PLAYER_VERSION, Xo as Player, Qo as getPlayerVersion };
|