@cloudflare/kumo 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +100 -0
- package/ai/component-registry.json +39 -11
- package/ai/component-registry.md +213 -23
- package/ai/schemas.ts +2 -1
- package/dist/.build-complete +1 -1
- package/dist/Legend-AE5XCSyU.js +388 -0
- package/dist/Legend-AE5XCSyU.js.map +1 -0
- package/dist/abap-DBQ6eW1v.js +8 -0
- package/dist/abap-DBQ6eW1v.js.map +1 -0
- package/dist/actionscript-3-DiEsS-FW.js +8 -0
- package/dist/actionscript-3-DiEsS-FW.js.map +1 -0
- package/dist/ada-DGQ_5PSJ.js +8 -0
- package/dist/ada-DGQ_5PSJ.js.map +1 -0
- package/dist/ai/schemas.d.ts +16 -2
- package/dist/ai/schemas.d.ts.map +1 -1
- package/dist/{schemas-CdpAeJKO.js → ai/schemas.js} +116 -114
- package/dist/ai/schemas.js.map +1 -0
- package/dist/andromeeda-0OVEHq5k.js +6 -0
- package/dist/andromeeda-0OVEHq5k.js.map +1 -0
- package/dist/angular-html-C3bwzvDd.js +34 -0
- package/dist/angular-html-C3bwzvDd.js.map +1 -0
- package/dist/angular-ts-fBH42fxp.js +23 -0
- package/dist/angular-ts-fBH42fxp.js.map +1 -0
- package/dist/apache-Bbrn7pkv.js +8 -0
- package/dist/apache-Bbrn7pkv.js.map +1 -0
- package/dist/apex-D7jlLUJl.js +8 -0
- package/dist/apex-D7jlLUJl.js.map +1 -0
- package/dist/apl-Cal58rzR.js +18 -0
- package/dist/apl-Cal58rzR.js.map +1 -0
- package/dist/applescript-AZMDCVmb.js +8 -0
- package/dist/applescript-AZMDCVmb.js.map +1 -0
- package/dist/ara-D7lI3smf.js +8 -0
- package/dist/ara-D7lI3smf.js.map +1 -0
- package/dist/asciidoc-B_JWnvj-.js +8 -0
- package/dist/asciidoc-B_JWnvj-.js.map +1 -0
- package/dist/asm-CF39_jeh.js +8 -0
- package/dist/asm-CF39_jeh.js.map +1 -0
- package/dist/astro-DvJenNvt.js +20 -0
- package/dist/astro-DvJenNvt.js.map +1 -0
- package/dist/aurora-x-lzSm_5DI.js +6 -0
- package/dist/aurora-x-lzSm_5DI.js.map +1 -0
- package/dist/awk-D1dwqHUl.js +8 -0
- package/dist/awk-D1dwqHUl.js.map +1 -0
- package/dist/ayu-dark-C_pOwMAx.js +6 -0
- package/dist/ayu-dark-C_pOwMAx.js.map +1 -0
- package/dist/ayu-light-C25DTeWu.js +6 -0
- package/dist/ayu-light-C25DTeWu.js.map +1 -0
- package/dist/ayu-mirage-9IoMPoai.js +6 -0
- package/dist/ayu-mirage-9IoMPoai.js.map +1 -0
- package/dist/{badge-Dc99vsfo.js → badge-DUfmrhhZ.js} +23 -18
- package/dist/badge-DUfmrhhZ.js.map +1 -0
- package/dist/ballerina-0aHuYbBL.js +8 -0
- package/dist/ballerina-0aHuYbBL.js.map +1 -0
- package/dist/bat-hp8TkMW_.js +8 -0
- package/dist/bat-hp8TkMW_.js.map +1 -0
- package/dist/beancount-DhXwArMG.js +8 -0
- package/dist/beancount-DhXwArMG.js.map +1 -0
- package/dist/berry-SKcQ_bn6.js +8 -0
- package/dist/berry-SKcQ_bn6.js.map +1 -0
- package/dist/bibtex-CKeuI1gX.js +8 -0
- package/dist/bibtex-CKeuI1gX.js.map +1 -0
- package/dist/bicep-Bb1Z8c8o.js +8 -0
- package/dist/bicep-Bb1Z8c8o.js.map +1 -0
- package/dist/bird2-C3rWbj4Z.js +8 -0
- package/dist/bird2-C3rWbj4Z.js.map +1 -0
- package/dist/blade-THHHddQO.js +22 -0
- package/dist/blade-THHHddQO.js.map +1 -0
- package/dist/breadcrumbs-BPtbCStQ.js +166 -0
- package/dist/breadcrumbs-BPtbCStQ.js.map +1 -0
- package/dist/bsl-CflI2mMp.js +10 -0
- package/dist/bsl-CflI2mMp.js.map +1 -0
- package/dist/c-D5qA7m19.js +8 -0
- package/dist/c-D5qA7m19.js.map +1 -0
- package/dist/c3-COOn93H9.js +8 -0
- package/dist/c3-COOn93H9.js.map +1 -0
- package/dist/cadence-Dxfo-G8_.js +8 -0
- package/dist/cadence-Dxfo-G8_.js.map +1 -0
- package/dist/cairo-CY6szQm5.js +10 -0
- package/dist/cairo-CY6szQm5.js.map +1 -0
- package/dist/catalog.js +1 -1
- package/dist/catalog.js.map +1 -1
- package/dist/catppuccin-frappe-CpIXPvSU.js +6 -0
- package/dist/catppuccin-frappe-CpIXPvSU.js.map +1 -0
- package/dist/catppuccin-latte-xiJp113n.js +6 -0
- package/dist/catppuccin-latte-xiJp113n.js.map +1 -0
- package/dist/catppuccin-macchiato-CUb8G_sh.js +6 -0
- package/dist/catppuccin-macchiato-CUb8G_sh.js.map +1 -0
- package/dist/catppuccin-mocha-_pSbIuk3.js +6 -0
- package/dist/catppuccin-mocha-_pSbIuk3.js.map +1 -0
- package/dist/{checkbox-CfFoTNFI.js → checkbox-z5gO1lL8.js} +48 -48
- package/dist/checkbox-z5gO1lL8.js.map +1 -0
- package/dist/clarity-S9WX3mE2.js +8 -0
- package/dist/clarity-S9WX3mE2.js.map +1 -0
- package/dist/{clipboard-text-1d0rHIhb.js → clipboard-text-DbvIaZ3g.js} +4 -4
- package/dist/clipboard-text-DbvIaZ3g.js.map +1 -0
- package/dist/clojure-CMSQ2cRZ.js +8 -0
- package/dist/clojure-CMSQ2cRZ.js.map +1 -0
- package/dist/cmake-BjGOmuDM.js +8 -0
- package/dist/cmake-BjGOmuDM.js.map +1 -0
- package/dist/cobol-CdczAIkZ.js +12 -0
- package/dist/cobol-CdczAIkZ.js.map +1 -0
- package/dist/code/server.js +58 -0
- package/dist/code/server.js.map +1 -0
- package/dist/code-T2wPDiM0.js.map +1 -1
- package/dist/code.js +205 -0
- package/dist/code.js.map +1 -0
- package/dist/codeowners-CJleX2EU.js +8 -0
- package/dist/codeowners-CJleX2EU.js.map +1 -0
- package/dist/codeql-C_xiqGOC.js +8 -0
- package/dist/codeql-C_xiqGOC.js.map +1 -0
- package/dist/coffee-DbwFrMGw.js +10 -0
- package/dist/coffee-DbwFrMGw.js.map +1 -0
- package/dist/combobox-CJqgoue6.js +336 -0
- package/dist/combobox-CJqgoue6.js.map +1 -0
- package/dist/command-line/cli.js +4 -0
- package/dist/command-line/commands/add.js +4 -0
- package/dist/{command-palette-B80cqB7K.js → command-palette-xctZ--ZT.js} +55 -55
- package/dist/command-palette-xctZ--ZT.js.map +1 -0
- package/dist/common-lisp-bZFDzkJA.js +8 -0
- package/dist/common-lisp-bZFDzkJA.js.map +1 -0
- package/dist/components/badge.js +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/chart.js +9 -0
- package/dist/components/chart.js.map +1 -0
- package/dist/components/checkbox.js +1 -1
- package/dist/components/clipboard-text.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/command-palette.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/flow.js +1000 -980
- package/dist/components/flow.js.map +1 -1
- package/dist/components/input.js +3 -3
- package/dist/components/label.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/menubar.js +1 -1
- package/dist/components/meter.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/sensitive-input.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/toast.js +2 -2
- package/dist/components/tooltip.js +1 -1
- package/dist/coq-BHwvPA1n.js +8 -0
- package/dist/coq-BHwvPA1n.js.map +1 -0
- package/dist/cpp-8X-mPrPy.js +20 -0
- package/dist/cpp-8X-mPrPy.js.map +1 -0
- package/dist/crystal-ClltT4Pm.js +20 -0
- package/dist/crystal-ClltT4Pm.js.map +1 -0
- package/dist/csharp-Byem5RBI.js +8 -0
- package/dist/csharp-Byem5RBI.js.map +1 -0
- package/dist/css-qd-96f_M.js +8 -0
- package/dist/css-qd-96f_M.js.map +1 -0
- package/dist/csv-CF_FKHnB.js +8 -0
- package/dist/csv-CF_FKHnB.js.map +1 -0
- package/dist/cue-I1Agx594.js +8 -0
- package/dist/cue-I1Agx594.js.map +1 -0
- package/dist/cypher-plLNBUt5.js +8 -0
- package/dist/cypher-plLNBUt5.js.map +1 -0
- package/dist/d-CEuq9VFi.js +8 -0
- package/dist/d-CEuq9VFi.js.map +1 -0
- package/dist/dark-plus-BoH9QJRG.js +6 -0
- package/dist/dark-plus-BoH9QJRG.js.map +1 -0
- package/dist/dart-BW14f2cB.js +8 -0
- package/dist/dart-BW14f2cB.js.map +1 -0
- package/dist/dax-3tjM9tVE.js +8 -0
- package/dist/dax-3tjM9tVE.js.map +1 -0
- package/dist/desktop-C_s7lQ2C.js +8 -0
- package/dist/desktop-C_s7lQ2C.js.map +1 -0
- package/dist/dialog-1pa-ezdL.js +112 -0
- package/dist/dialog-1pa-ezdL.js.map +1 -0
- package/dist/diff-B9PHDIQg.js +8 -0
- package/dist/diff-B9PHDIQg.js.map +1 -0
- package/dist/docker-rmWVNdXq.js +8 -0
- package/dist/docker-rmWVNdXq.js.map +1 -0
- package/dist/dotenv-DZArZ0py.js +8 -0
- package/dist/dotenv-DZArZ0py.js.map +1 -0
- package/dist/dracula-CdWPhGUA.js +6 -0
- package/dist/dracula-CdWPhGUA.js.map +1 -0
- package/dist/dracula-soft-DRgtS4KI.js +6 -0
- package/dist/dracula-soft-DRgtS4KI.js.map +1 -0
- package/dist/dream-maker-DNRMl5wX.js +8 -0
- package/dist/dream-maker-DNRMl5wX.js.map +1 -0
- package/dist/{dropdown-CfS4QcSR.js → dropdown-BXg01-8j.js} +3 -3
- package/dist/{dropdown-CfS4QcSR.js.map → dropdown-BXg01-8j.js.map} +1 -1
- package/dist/edge-CQUaQiBB.js +14 -0
- package/dist/edge-CQUaQiBB.js.map +1 -0
- package/dist/elixir-BIX3y1uJ.js +10 -0
- package/dist/elixir-BIX3y1uJ.js.map +1 -0
- package/dist/elm-DNVN4B4L.js +10 -0
- package/dist/elm-DNVN4B4L.js.map +1 -0
- package/dist/emacs-lisp-C3TqDViv.js +8 -0
- package/dist/emacs-lisp-C3TqDViv.js.map +1 -0
- package/dist/engine-compile-D-n7xALU.js +2621 -0
- package/dist/engine-compile-D-n7xALU.js.map +1 -0
- package/dist/engine-javascript-BGkeRc0U.js +26 -0
- package/dist/engine-javascript-BGkeRc0U.js.map +1 -0
- package/dist/engine-oniguruma-T2xha06Q.js +304 -0
- package/dist/engine-oniguruma-T2xha06Q.js.map +1 -0
- package/dist/erb-CPJOs_gM.js +12 -0
- package/dist/erb-CPJOs_gM.js.map +1 -0
- package/dist/erlang-X97pCGTS.js +10 -0
- package/dist/erlang-X97pCGTS.js.map +1 -0
- package/dist/everforest-dark-C9JXzteI.js +6 -0
- package/dist/everforest-dark-C9JXzteI.js.map +1 -0
- package/dist/everforest-light-xBi4ZMR7.js +6 -0
- package/dist/everforest-light-xBi4ZMR7.js.map +1 -0
- package/dist/fennel-fKVJGO8V.js +8 -0
- package/dist/fennel-fKVJGO8V.js.map +1 -0
- package/dist/{field-B8xISAuX.js → field-BYaOyOtJ.js} +7 -7
- package/dist/{field-B8xISAuX.js.map → field-BYaOyOtJ.js.map} +1 -1
- package/dist/fish-BB5DT4M2.js +8 -0
- package/dist/fish-BB5DT4M2.js.map +1 -0
- package/dist/fluent-AMVPEbdR.js +8 -0
- package/dist/fluent-AMVPEbdR.js.map +1 -0
- package/dist/fortran-fixed-form-J4xKprxx.js +10 -0
- package/dist/fortran-fixed-form-J4xKprxx.js.map +1 -0
- package/dist/fortran-free-form-89VVYcvD.js +8 -0
- package/dist/fortran-free-form-89VVYcvD.js.map +1 -0
- package/dist/fsharp-BnRQMxrz.js +10 -0
- package/dist/fsharp-BnRQMxrz.js.map +1 -0
- package/dist/gdresource-DGR3GPIj.js +12 -0
- package/dist/gdresource-DGR3GPIj.js.map +1 -0
- package/dist/gdscript-8-4n2AaI.js +8 -0
- package/dist/gdscript-8-4n2AaI.js.map +1 -0
- package/dist/gdshader-BCM6bIM_.js +8 -0
- package/dist/gdshader-BCM6bIM_.js.map +1 -0
- package/dist/genie-CxR2u3hD.js +8 -0
- package/dist/genie-CxR2u3hD.js.map +1 -0
- package/dist/gherkin-BhW6oAYW.js +8 -0
- package/dist/gherkin-BhW6oAYW.js.map +1 -0
- package/dist/git-commit-DSzkYnqf.js +10 -0
- package/dist/git-commit-DSzkYnqf.js.map +1 -0
- package/dist/git-rebase-CY0sqDHH.js +10 -0
- package/dist/git-rebase-CY0sqDHH.js.map +1 -0
- package/dist/github-dark-EGgK0P1m.js +6 -0
- package/dist/github-dark-EGgK0P1m.js.map +1 -0
- package/dist/github-dark-default-69UGLTaR.js +6 -0
- package/dist/github-dark-default-69UGLTaR.js.map +1 -0
- package/dist/github-dark-dimmed-CnBHruXC.js +6 -0
- package/dist/github-dark-dimmed-CnBHruXC.js.map +1 -0
- package/dist/github-dark-high-contrast-Dz2ZsuOt.js +6 -0
- package/dist/github-dark-high-contrast-Dz2ZsuOt.js.map +1 -0
- package/dist/github-light-C7TbDuh5.js +6 -0
- package/dist/github-light-C7TbDuh5.js.map +1 -0
- package/dist/github-light-default-C1fruPEw.js +6 -0
- package/dist/github-light-default-C1fruPEw.js.map +1 -0
- package/dist/github-light-high-contrast-SmWFD2B-.js +6 -0
- package/dist/github-light-high-contrast-SmWFD2B-.js.map +1 -0
- package/dist/gleam-PNso-9g-.js +8 -0
- package/dist/gleam-PNso-9g-.js.map +1 -0
- package/dist/glimmer-js-DY9OBWW6.js +16 -0
- package/dist/glimmer-js-DY9OBWW6.js.map +1 -0
- package/dist/glimmer-ts-CKjdlzG3.js +16 -0
- package/dist/glimmer-ts-CKjdlzG3.js.map +1 -0
- package/dist/glsl-Bo9QfxI7.js +10 -0
- package/dist/glsl-Bo9QfxI7.js.map +1 -0
- package/dist/gn-B8imrxEe.js +8 -0
- package/dist/gn-B8imrxEe.js.map +1 -0
- package/dist/gnuplot-z48QnpzZ.js +8 -0
- package/dist/gnuplot-z48QnpzZ.js.map +1 -0
- package/dist/go-BUI2a86a.js +8 -0
- package/dist/go-BUI2a86a.js.map +1 -0
- package/dist/graphql-CYUl2j62.js +16 -0
- package/dist/graphql-CYUl2j62.js.map +1 -0
- package/dist/groovy-BZajDB1h.js +8 -0
- package/dist/groovy-BZajDB1h.js.map +1 -0
- package/dist/gruvbox-dark-hard-DEp4fn0U.js +6 -0
- package/dist/gruvbox-dark-hard-DEp4fn0U.js.map +1 -0
- package/dist/gruvbox-dark-medium-D3l-n4N3.js +6 -0
- package/dist/gruvbox-dark-medium-D3l-n4N3.js.map +1 -0
- package/dist/gruvbox-dark-soft-Ca_lMr1K.js +6 -0
- package/dist/gruvbox-dark-soft-Ca_lMr1K.js.map +1 -0
- package/dist/gruvbox-light-hard-D5BcqPys.js +6 -0
- package/dist/gruvbox-light-hard-D5BcqPys.js.map +1 -0
- package/dist/gruvbox-light-medium-C_7vC_ep.js +6 -0
- package/dist/gruvbox-light-medium-C_7vC_ep.js.map +1 -0
- package/dist/gruvbox-light-soft-YeHuiVT9.js +6 -0
- package/dist/gruvbox-light-soft-YeHuiVT9.js.map +1 -0
- package/dist/hack-Bo7_3XMo.js +12 -0
- package/dist/hack-Bo7_3XMo.js.map +1 -0
- package/dist/haml-lAa-UgZq.js +12 -0
- package/dist/haml-lAa-UgZq.js.map +1 -0
- package/dist/handlebars-C-lypSbJ.js +16 -0
- package/dist/handlebars-C-lypSbJ.js.map +1 -0
- package/dist/haskell-CyfJi0Qi.js +8 -0
- package/dist/haskell-CyfJi0Qi.js.map +1 -0
- package/dist/haxe-DHpItfCt.js +8 -0
- package/dist/haxe-DHpItfCt.js.map +1 -0
- package/dist/hcl-C-f84Y9W.js +8 -0
- package/dist/hcl-C-f84Y9W.js.map +1 -0
- package/dist/hjson-8VYQauSm.js +8 -0
- package/dist/hjson-8VYQauSm.js.map +1 -0
- package/dist/hlsl-Bi2Lb4au.js +8 -0
- package/dist/hlsl-Bi2Lb4au.js.map +1 -0
- package/dist/horizon-DyGYchkb.js +6 -0
- package/dist/horizon-DyGYchkb.js.map +1 -0
- package/dist/horizon-bright-DatYugLo.js +6 -0
- package/dist/horizon-bright-DatYugLo.js.map +1 -0
- package/dist/houston-DaTAsj92.js +6 -0
- package/dist/houston-DaTAsj92.js.map +1 -0
- package/dist/html-BXZx6WkT.js +12 -0
- package/dist/html-BXZx6WkT.js.map +1 -0
- package/dist/html-derivative-CaPNhXFu.js +10 -0
- package/dist/html-derivative-CaPNhXFu.js.map +1 -0
- package/dist/http-BJ0BMq9T.js +16 -0
- package/dist/http-BJ0BMq9T.js.map +1 -0
- package/dist/hurl-D_d_bmYM.js +14 -0
- package/dist/hurl-D_d_bmYM.js.map +1 -0
- package/dist/hxml-C8H9PCaB.js +10 -0
- package/dist/hxml-C8H9PCaB.js.map +1 -0
- package/dist/hy-Cf7WyqnA.js +8 -0
- package/dist/hy-Cf7WyqnA.js.map +1 -0
- package/dist/imba-4cu8YWL6.js +8 -0
- package/dist/imba-4cu8YWL6.js.map +1 -0
- package/dist/index-yfbAkHut.js +7313 -0
- package/dist/index-yfbAkHut.js.map +1 -0
- package/dist/index.js +72 -67
- package/dist/index.js.map +1 -1
- package/dist/ini-DdlAq5Sk.js +8 -0
- package/dist/ini-DdlAq5Sk.js.map +1 -0
- package/dist/{input-DCzpefuq.js → input-BXn3ElmF.js} +3 -3
- package/dist/{input-DCzpefuq.js.map → input-BXn3ElmF.js.map} +1 -1
- package/dist/{input-area-DCaAN9nG.js → input-area-C3ddZhEo.js} +3 -3
- package/dist/{input-area-DCaAN9nG.js.map → input-area-C3ddZhEo.js.map} +1 -1
- package/dist/{input-group-BbaVpJnA.js → input-group-BiUKE2TR.js} +5 -5
- package/dist/input-group-BiUKE2TR.js.map +1 -0
- package/dist/java-DZX_qz_V.js +8 -0
- package/dist/java-DZX_qz_V.js.map +1 -0
- package/dist/javascript-Dcop9YgO.js +8 -0
- package/dist/javascript-Dcop9YgO.js.map +1 -0
- package/dist/jinja-CYDaN8cn.js +13 -0
- package/dist/jinja-CYDaN8cn.js.map +1 -0
- package/dist/jison-B8TKZKc6.js +10 -0
- package/dist/jison-B8TKZKc6.js.map +1 -0
- package/dist/json-BONZstWZ.js +8 -0
- package/dist/json-BONZstWZ.js.map +1 -0
- package/dist/json5-C-4cnXW0.js +8 -0
- package/dist/json5-C-4cnXW0.js.map +1 -0
- package/dist/jsonc-CIx6BVP6.js +8 -0
- package/dist/jsonc-CIx6BVP6.js.map +1 -0
- package/dist/jsonl-DFezC0c-.js +8 -0
- package/dist/jsonl-DFezC0c-.js.map +1 -0
- package/dist/jsonnet-CrYiLnuZ.js +8 -0
- package/dist/jsonnet-CrYiLnuZ.js.map +1 -0
- package/dist/jssm-DPqP_6Yy.js +8 -0
- package/dist/jssm-DPqP_6Yy.js.map +1 -0
- package/dist/jsx-Buo8VY2N.js +8 -0
- package/dist/jsx-Buo8VY2N.js.map +1 -0
- package/dist/julia-BGc-upw8.js +18 -0
- package/dist/julia-BGc-upw8.js.map +1 -0
- package/dist/just-Btim_Xbp.js +20 -0
- package/dist/just-Btim_Xbp.js.map +1 -0
- package/dist/kanagawa-dragon-CrRYMC-y.js +6 -0
- package/dist/kanagawa-dragon-CrRYMC-y.js.map +1 -0
- package/dist/kanagawa-lotus-CpAeLZo_.js +6 -0
- package/dist/kanagawa-lotus-CpAeLZo_.js.map +1 -0
- package/dist/kanagawa-wave-DgLnfzgl.js +6 -0
- package/dist/kanagawa-wave-DgLnfzgl.js.map +1 -0
- package/dist/kdl-D5mP0US-.js +8 -0
- package/dist/kdl-D5mP0US-.js.map +1 -0
- package/dist/kotlin-Bj4GXgal.js +8 -0
- package/dist/kotlin-Bj4GXgal.js.map +1 -0
- package/dist/kusto-xKgi3EM3.js +8 -0
- package/dist/kusto-xKgi3EM3.js.map +1 -0
- package/dist/{label-Cd6nCDWj.js → label-ByOtGj7z.js} +2 -2
- package/dist/{label-Cd6nCDWj.js.map → label-ByOtGj7z.js.map} +1 -1
- package/dist/laserwave-DwIE46bX.js +6 -0
- package/dist/laserwave-DwIE46bX.js.map +1 -0
- package/dist/latex-Ba_x0_mo.js +10 -0
- package/dist/latex-Ba_x0_mo.js.map +1 -0
- package/dist/lean-CFZjFqaI.js +8 -0
- package/dist/lean-CFZjFqaI.js.map +1 -0
- package/dist/less-Cah4u9hl.js +8 -0
- package/dist/less-Cah4u9hl.js.map +1 -0
- package/dist/light-plus-uDz5yXau.js +6 -0
- package/dist/light-plus-uDz5yXau.js.map +1 -0
- package/dist/{link-DJq9RWpK.js → link-CfCaX9Ks.js} +2 -2
- package/dist/{link-DJq9RWpK.js.map → link-CfCaX9Ks.js.map} +1 -1
- package/dist/liquid-DUwftMLD.js +16 -0
- package/dist/liquid-DUwftMLD.js.map +1 -0
- package/dist/llvm-p6MskI4D.js +8 -0
- package/dist/llvm-p6MskI4D.js.map +1 -0
- package/dist/log-B-eGB3gN.js +8 -0
- package/dist/log-B-eGB3gN.js.map +1 -0
- package/dist/logo-_QhIaHqR.js +8 -0
- package/dist/logo-_QhIaHqR.js.map +1 -0
- package/dist/lua-DXBtl-xZ.js +10 -0
- package/dist/lua-DXBtl-xZ.js.map +1 -0
- package/dist/luau-cNt0OAd4.js +8 -0
- package/dist/luau-cNt0OAd4.js.map +1 -0
- package/dist/make-LOzELzzn.js +8 -0
- package/dist/make-LOzELzzn.js.map +1 -0
- package/dist/markdown-CPiFXKuQ.js +8 -0
- package/dist/markdown-CPiFXKuQ.js.map +1 -0
- package/dist/marko-B5j5W6dr.js +16 -0
- package/dist/marko-B5j5W6dr.js.map +1 -0
- package/dist/material-theme-BNmHEIvm.js +6 -0
- package/dist/material-theme-BNmHEIvm.js.map +1 -0
- package/dist/material-theme-darker-DSlFkdBn.js +6 -0
- package/dist/material-theme-darker-DSlFkdBn.js.map +1 -0
- package/dist/material-theme-lighter-DMthFo49.js +6 -0
- package/dist/material-theme-lighter-DMthFo49.js.map +1 -0
- package/dist/material-theme-ocean-Bza3srwZ.js +6 -0
- package/dist/material-theme-ocean-Bza3srwZ.js.map +1 -0
- package/dist/material-theme-palenight-cC7823m_.js +6 -0
- package/dist/material-theme-palenight-cC7823m_.js.map +1 -0
- package/dist/matlab-BXc70sGh.js +8 -0
- package/dist/matlab-BXc70sGh.js.map +1 -0
- package/dist/mdc-DIfFG4VK.js +14 -0
- package/dist/mdc-DIfFG4VK.js.map +1 -0
- package/dist/mdx-DDEEGmMw.js +8 -0
- package/dist/mdx-DDEEGmMw.js.map +1 -0
- package/dist/{menubar-Chchzst0.js → menubar-be9R8bE-.js} +14 -14
- package/dist/menubar-be9R8bE-.js.map +1 -0
- package/dist/mermaid-BbhKaiym.js +8 -0
- package/dist/mermaid-BbhKaiym.js.map +1 -0
- package/dist/{meter-Wk7_EhaO.js → meter-CCpXrH8B.js} +4 -4
- package/dist/{meter-Wk7_EhaO.js.map → meter-CCpXrH8B.js.map} +1 -1
- package/dist/min-dark-B2RGEXlR.js +6 -0
- package/dist/min-dark-B2RGEXlR.js.map +1 -0
- package/dist/min-light-CdvDdehu.js +6 -0
- package/dist/min-light-CdvDdehu.js.map +1 -0
- package/dist/mipsasm-A-azREv6.js +8 -0
- package/dist/mipsasm-A-azREv6.js.map +1 -0
- package/dist/mojo-eENZKkWN.js +8 -0
- package/dist/mojo-eENZKkWN.js.map +1 -0
- package/dist/monokai-DfGcBwbw.js +6 -0
- package/dist/monokai-DfGcBwbw.js.map +1 -0
- package/dist/moonbit-OY9Cnyv0.js +8 -0
- package/dist/moonbit-OY9Cnyv0.js.map +1 -0
- package/dist/move-DQ3SUBHm.js +8 -0
- package/dist/move-DQ3SUBHm.js.map +1 -0
- package/dist/narrat-DEs1QMww.js +8 -0
- package/dist/narrat-DEs1QMww.js.map +1 -0
- package/dist/nextflow-BLqoZa2U.js +10 -0
- package/dist/nextflow-BLqoZa2U.js.map +1 -0
- package/dist/nextflow-groovy-sn5GPI4S.js +8 -0
- package/dist/nextflow-groovy-sn5GPI4S.js.map +1 -0
- package/dist/nginx-DV2C2lFg.js +10 -0
- package/dist/nginx-DV2C2lFg.js.map +1 -0
- package/dist/night-owl-Cx4f311z.js +6 -0
- package/dist/night-owl-Cx4f311z.js.map +1 -0
- package/dist/night-owl-light-CFIwPg_e.js +6 -0
- package/dist/night-owl-light-CFIwPg_e.js.map +1 -0
- package/dist/nim-DX5HB9SQ.js +22 -0
- package/dist/nim-DX5HB9SQ.js.map +1 -0
- package/dist/nix-BbTJzn8W.js +11 -0
- package/dist/nix-BbTJzn8W.js.map +1 -0
- package/dist/nord-N4OTOgI2.js +6 -0
- package/dist/nord-N4OTOgI2.js.map +1 -0
- package/dist/nushell-CRsPhsIw.js +8 -0
- package/dist/nushell-CRsPhsIw.js.map +1 -0
- package/dist/objective-c-7VQzYTNs.js +8 -0
- package/dist/objective-c-7VQzYTNs.js.map +1 -0
- package/dist/objective-cpp-C_AHgfC8.js +8 -0
- package/dist/objective-cpp-C_AHgfC8.js.map +1 -0
- package/dist/ocaml-N0gcbB8P.js +8 -0
- package/dist/ocaml-N0gcbB8P.js.map +1 -0
- package/dist/odin-CbArZjV2.js +8 -0
- package/dist/odin-CbArZjV2.js.map +1 -0
- package/dist/one-dark-pro-CFjKUJ8l.js +6 -0
- package/dist/one-dark-pro-CFjKUJ8l.js.map +1 -0
- package/dist/one-light-cHFZvryT.js +6 -0
- package/dist/one-light-cHFZvryT.js.map +1 -0
- package/dist/openscad-9QYZdZML.js +8 -0
- package/dist/openscad-9QYZdZML.js.map +1 -0
- package/dist/pagination-CaHm6TKa.js +220 -0
- package/dist/pagination-CaHm6TKa.js.map +1 -0
- package/dist/pascal-Chee6n3j.js +8 -0
- package/dist/pascal-Chee6n3j.js.map +1 -0
- package/dist/perl-Bo9cWF9y.js +18 -0
- package/dist/perl-Bo9cWF9y.js.map +1 -0
- package/dist/php-Cbqedh5-.js +20 -0
- package/dist/php-Cbqedh5-.js.map +1 -0
- package/dist/pkl-DmRpyJfO.js +8 -0
- package/dist/pkl-DmRpyJfO.js.map +1 -0
- package/dist/plastic-BWaSpRpp.js +6 -0
- package/dist/plastic-BWaSpRpp.js.map +1 -0
- package/dist/plsql-DXyBT3AN.js +8 -0
- package/dist/plsql-DXyBT3AN.js.map +1 -0
- package/dist/po-Duw5KTH-.js +8 -0
- package/dist/po-Duw5KTH-.js.map +1 -0
- package/dist/poimandres-DtrtfOBO.js +6 -0
- package/dist/poimandres-DtrtfOBO.js.map +1 -0
- package/dist/polar-C9ZZjIU6.js +8 -0
- package/dist/polar-C9ZZjIU6.js.map +1 -0
- package/dist/{popover-D20xpmdk.js → popover-CHafAVT6.js} +2 -2
- package/dist/{popover-D20xpmdk.js.map → popover-CHafAVT6.js.map} +1 -1
- package/dist/postcss-D9nF9Ns4.js +8 -0
- package/dist/postcss-D9nF9Ns4.js.map +1 -0
- package/dist/powerquery-Bf1siwRH.js +8 -0
- package/dist/powerquery-Bf1siwRH.js.map +1 -0
- package/dist/powershell-DbLFMYnO.js +8 -0
- package/dist/powershell-DbLFMYnO.js.map +1 -0
- package/dist/primitives/accordion.js +1 -1
- package/dist/primitives/alert-dialog.js +1 -1
- package/dist/primitives/autocomplete.js +1 -1
- package/dist/primitives/avatar.js +1 -1
- package/dist/primitives/button.js +1 -1
- package/dist/primitives/checkbox-group.js +1 -1
- package/dist/primitives/checkbox.js +1 -1
- package/dist/primitives/collapsible.js +1 -1
- package/dist/primitives/combobox.js +1 -1
- package/dist/primitives/context-menu.js +1 -1
- package/dist/primitives/csp-provider.js +1 -1
- package/dist/primitives/dialog.js +1 -1
- package/dist/primitives/direction-provider.js +1 -1
- package/dist/primitives/drawer.js +1 -1
- package/dist/primitives/field.js +1 -1
- package/dist/primitives/fieldset.js +1 -1
- package/dist/primitives/form.js +1 -1
- package/dist/primitives/input.js +1 -1
- package/dist/primitives/menu.js +1 -1
- package/dist/primitives/menubar.js +1 -1
- package/dist/primitives/meter.js +1 -1
- package/dist/primitives/navigation-menu.js +1 -1
- package/dist/primitives/number-field.js +1 -1
- package/dist/primitives/popover.js +1 -1
- package/dist/primitives/preview-card.js +1 -1
- package/dist/primitives/progress.js +1 -1
- package/dist/primitives/radio-group.js +1 -1
- package/dist/primitives/radio.js +1 -1
- package/dist/primitives/scroll-area.js +1 -1
- package/dist/primitives/select.js +1 -1
- package/dist/primitives/separator.js +1 -1
- package/dist/primitives/slider.js +1 -1
- package/dist/primitives/switch.js +1 -1
- package/dist/primitives/tabs.js +1 -1
- package/dist/primitives/toast.js +1 -1
- package/dist/primitives/toggle-group.js +1 -1
- package/dist/primitives/toggle.js +1 -1
- package/dist/primitives/toolbar.js +1 -1
- package/dist/primitives/tooltip.js +1 -1
- package/dist/primitives.js +1 -1
- package/dist/prisma-DQmdODpM.js +8 -0
- package/dist/prisma-DQmdODpM.js.map +1 -0
- package/dist/prolog-BhDhfNq2.js +8 -0
- package/dist/prolog-BhDhfNq2.js.map +1 -0
- package/dist/proto-8YBPwIZV.js +8 -0
- package/dist/proto-8YBPwIZV.js.map +1 -0
- package/dist/pug-Cd1k_DIC.js +14 -0
- package/dist/pug-Cd1k_DIC.js.map +1 -0
- package/dist/puppet-DWeotfji.js +8 -0
- package/dist/puppet-DWeotfji.js.map +1 -0
- package/dist/purescript-BlRfpTfS.js +8 -0
- package/dist/purescript-BlRfpTfS.js.map +1 -0
- package/dist/python--QhWBEuB.js +8 -0
- package/dist/python--QhWBEuB.js.map +1 -0
- package/dist/qml-D5YeakZo.js +10 -0
- package/dist/qml-D5YeakZo.js.map +1 -0
- package/dist/qmldir-Cvb9I9Hu.js +8 -0
- package/dist/qmldir-Cvb9I9Hu.js.map +1 -0
- package/dist/qss-MOxpdvNy.js +8 -0
- package/dist/qss-MOxpdvNy.js.map +1 -0
- package/dist/r-CPa3sP0i.js +8 -0
- package/dist/r-CPa3sP0i.js.map +1 -0
- package/dist/racket-u4Z5W-hW.js +8 -0
- package/dist/racket-u4Z5W-hW.js.map +1 -0
- package/dist/{radio-ibVa4Y8a.js → radio-DZ1uS-zK.js} +24 -24
- package/dist/{radio-ibVa4Y8a.js.map → radio-DZ1uS-zK.js.map} +1 -1
- package/dist/raku-DD1-d8EI.js +8 -0
- package/dist/raku-DD1-d8EI.js.map +1 -0
- package/dist/razor-CvgW6g5F.js +12 -0
- package/dist/razor-CvgW6g5F.js.map +1 -0
- package/dist/red-nqtx3ZzA.js +6 -0
- package/dist/red-nqtx3ZzA.js.map +1 -0
- package/dist/reg-D39ozI4Z.js +8 -0
- package/dist/reg-D39ozI4Z.js.map +1 -0
- package/dist/regexp-C-mTs3Xt.js +8 -0
- package/dist/regexp-C-mTs3Xt.js.map +1 -0
- package/dist/rel-CvIujmyu.js +8 -0
- package/dist/rel-CvIujmyu.js.map +1 -0
- package/dist/riscv-BDw_rTFU.js +8 -0
- package/dist/riscv-BDw_rTFU.js.map +1 -0
- package/dist/ron-Dr-HoCkP.js +8 -0
- package/dist/ron-Dr-HoCkP.js.map +1 -0
- package/dist/rose-pine-Ca6P34ai.js +6 -0
- package/dist/rose-pine-Ca6P34ai.js.map +1 -0
- package/dist/rose-pine-dawn-CSsyidmk.js +6 -0
- package/dist/rose-pine-dawn-CSsyidmk.js.map +1 -0
- package/dist/rose-pine-moon-DFcWGQ4j.js +6 -0
- package/dist/rose-pine-moon-DFcWGQ4j.js.map +1 -0
- package/dist/rosmsg-D3QLmOd5.js +8 -0
- package/dist/rosmsg-D3QLmOd5.js.map +1 -0
- package/dist/rst-BVJfTGcR.js +24 -0
- package/dist/rst-BVJfTGcR.js.map +1 -0
- package/dist/ruby-0gZcrdnG.js +32 -0
- package/dist/ruby-0gZcrdnG.js.map +1 -0
- package/dist/rust-CiVdiDo-.js +8 -0
- package/dist/rust-CiVdiDo-.js.map +1 -0
- package/dist/sas-Df_jutC7.js +10 -0
- package/dist/sas-Df_jutC7.js.map +1 -0
- package/dist/sass-CnN1LcIf.js +8 -0
- package/dist/sass-CnN1LcIf.js.map +1 -0
- package/dist/scala-D_7p1-Ff.js +8 -0
- package/dist/scala-D_7p1-Ff.js.map +1 -0
- package/dist/scheme-kuKKlndT.js +8 -0
- package/dist/scheme-kuKKlndT.js.map +1 -0
- package/dist/scripts/theme-generator/config.d.ts +6 -0
- package/dist/scripts/theme-generator/config.d.ts.map +1 -0
- package/dist/scripts/theme-generator/config.js +394 -0
- package/dist/scripts/theme-generator/config.js.map +1 -0
- package/dist/scripts/theme-generator/generate-css.d.ts +31 -0
- package/dist/scripts/theme-generator/generate-css.d.ts.map +1 -0
- package/dist/scripts/theme-generator/index.d.ts +13 -0
- package/dist/scripts/theme-generator/index.d.ts.map +1 -0
- package/dist/scripts/theme-generator/migrate.d.ts +56 -0
- package/dist/scripts/theme-generator/migrate.d.ts.map +1 -0
- package/dist/scripts/theme-generator/types.d.ts +76 -0
- package/dist/scripts/theme-generator/types.d.ts.map +1 -0
- package/dist/scripts/theme-generator/types.js +2 -0
- package/dist/scripts/theme-generator/types.js.map +1 -0
- package/dist/scss-Cnx3ZIbn.js +10 -0
- package/dist/scss-Cnx3ZIbn.js.map +1 -0
- package/dist/sdbl-C99B6EXT.js +8 -0
- package/dist/sdbl-C99B6EXT.js.map +1 -0
- package/dist/select-BXZAlFAV.js +113 -0
- package/dist/select-BXZAlFAV.js.map +1 -0
- package/dist/{sensitive-input-DHDRZRC7.js → sensitive-input-CI-gtdfw.js} +4 -4
- package/dist/{sensitive-input-DHDRZRC7.js.map → sensitive-input-CI-gtdfw.js.map} +1 -1
- package/dist/shaderlab-r5kupfNY.js +10 -0
- package/dist/shaderlab-r5kupfNY.js.map +1 -0
- package/dist/shellscript-C9yrawww.js +8 -0
- package/dist/shellscript-C9yrawww.js.map +1 -0
- package/dist/shellsession-Vfxwd5pt.js +10 -0
- package/dist/shellsession-Vfxwd5pt.js.map +1 -0
- package/dist/slack-dark-DPwE-fTd.js +6 -0
- package/dist/slack-dark-DPwE-fTd.js.map +1 -0
- package/dist/slack-ochin-XQpb-bu3.js +6 -0
- package/dist/slack-ochin-XQpb-bu3.js.map +1 -0
- package/dist/smalltalk-DBHjpWnU.js +8 -0
- package/dist/smalltalk-DBHjpWnU.js.map +1 -0
- package/dist/snazzy-light-B301-rZ_.js +6 -0
- package/dist/snazzy-light-B301-rZ_.js.map +1 -0
- package/dist/solarized-dark-Bmasqmd6.js +6 -0
- package/dist/solarized-dark-Bmasqmd6.js.map +1 -0
- package/dist/solarized-light-D79sTVew.js +6 -0
- package/dist/solarized-light-D79sTVew.js.map +1 -0
- package/dist/solidity-DiELThdT.js +8 -0
- package/dist/solidity-DiELThdT.js.map +1 -0
- package/dist/soy-JFzJcdvc.js +10 -0
- package/dist/soy-JFzJcdvc.js.map +1 -0
- package/dist/sparql-DFkbfk9m.js +10 -0
- package/dist/sparql-DFkbfk9m.js.map +1 -0
- package/dist/splunk-D_3lOa0g.js +8 -0
- package/dist/splunk-D_3lOa0g.js.map +1 -0
- package/dist/sql-BUQKMpen.js +8 -0
- package/dist/sql-BUQKMpen.js.map +1 -0
- package/dist/src/code/code-highlighted.d.ts +32 -0
- package/dist/src/code/code-highlighted.d.ts.map +1 -0
- package/dist/src/code/context.d.ts +16 -0
- package/dist/src/code/context.d.ts.map +1 -0
- package/dist/src/code/index.d.ts +31 -0
- package/dist/src/code/index.d.ts.map +1 -0
- package/dist/src/code/provider.d.ts +7 -0
- package/dist/src/code/provider.d.ts.map +1 -0
- package/dist/src/code/server.d.ts +96 -0
- package/dist/src/code/server.d.ts.map +1 -0
- package/dist/src/code/types.d.ts +89 -0
- package/dist/src/code/types.d.ts.map +1 -0
- package/dist/src/code/use-shiki-highlighter.d.ts +36 -0
- package/dist/src/code/use-shiki-highlighter.d.ts.map +1 -0
- package/dist/src/command-line/commands/add.d.ts.map +1 -1
- package/dist/src/components/badge/badge.d.ts +4 -0
- package/dist/src/components/badge/badge.d.ts.map +1 -1
- package/dist/src/components/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/src/components/chart/Color.d.ts +96 -0
- package/dist/src/components/chart/Color.d.ts.map +1 -0
- package/dist/src/components/chart/EChart.d.ts +130 -0
- package/dist/src/components/chart/EChart.d.ts.map +1 -0
- package/dist/src/components/chart/Legend.d.ts +42 -0
- package/dist/src/components/chart/Legend.d.ts.map +1 -0
- package/dist/src/components/chart/TimeseriesChart.d.ts +94 -0
- package/dist/src/components/chart/TimeseriesChart.d.ts.map +1 -0
- package/dist/src/components/chart/index.d.ts +5 -0
- package/dist/src/components/chart/index.d.ts.map +1 -0
- package/dist/src/components/code/code.d.ts +19 -0
- package/dist/src/components/code/code.d.ts.map +1 -1
- package/dist/src/components/combobox/combobox.d.ts +33 -2
- package/dist/src/components/combobox/combobox.d.ts.map +1 -1
- package/dist/src/components/dialog/dialog.d.ts +41 -2
- package/dist/src/components/dialog/dialog.d.ts.map +1 -1
- package/dist/src/components/flow/diagram.d.ts +8 -0
- package/dist/src/components/flow/diagram.d.ts.map +1 -1
- package/dist/src/components/flow/use-children.d.ts +8 -1
- package/dist/src/components/flow/use-children.d.ts.map +1 -1
- package/dist/src/components/pagination/pagination.d.ts.map +1 -1
- package/dist/src/components/select/select.d.ts.map +1 -1
- package/dist/src/components/table/table.d.ts +3 -1
- package/dist/src/components/table/table.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/ssh-config-DNaBVjVu.js +8 -0
- package/dist/ssh-config-DNaBVjVu.js.map +1 -0
- package/dist/stata-DLB0gsgJ.js +10 -0
- package/dist/stata-DLB0gsgJ.js.map +1 -0
- package/dist/styles/kumo-binding.css +12 -0
- package/dist/styles/kumo-standalone.css +1 -1
- package/dist/styles/kumo.css +67 -0
- package/dist/styles/theme-kumo.css +11 -1
- package/dist/stylus-D51fN9sH.js +8 -0
- package/dist/stylus-D51fN9sH.js.map +1 -0
- package/dist/surrealql-sFzY-ODM.js +10 -0
- package/dist/surrealql-sFzY-ODM.js.map +1 -0
- package/dist/svelte-CvDgWedh.js +16 -0
- package/dist/svelte-CvDgWedh.js.map +1 -0
- package/dist/swift-DwwnjRI-.js +8 -0
- package/dist/swift-DwwnjRI-.js.map +1 -0
- package/dist/{switch-DrbaX2iC.js → switch-BxnAwAse.js} +3 -3
- package/dist/{switch-DrbaX2iC.js.map → switch-BxnAwAse.js.map} +1 -1
- package/dist/synthwave-84-H0OiUA6S.js +6 -0
- package/dist/synthwave-84-H0OiUA6S.js.map +1 -0
- package/dist/system-verilog-Crpmwi64.js +8 -0
- package/dist/system-verilog-Crpmwi64.js.map +1 -0
- package/dist/systemd-DpPksTVO.js +8 -0
- package/dist/systemd-DpPksTVO.js.map +1 -0
- package/dist/{table-CH9KC36S.js → table-CdcsAm5X.js} +39 -33
- package/dist/table-CdcsAm5X.js.map +1 -0
- package/dist/{tabs-B-Fxc6Zo.js → tabs-Cf12PXHz.js} +6 -6
- package/dist/tabs-Cf12PXHz.js.map +1 -0
- package/dist/talonscript-C0B9tdh0.js +8 -0
- package/dist/talonscript-C0B9tdh0.js.map +1 -0
- package/dist/tasl-De-6_1ux.js +8 -0
- package/dist/tasl-De-6_1ux.js.map +1 -0
- package/dist/tcl-tdOXVFhT.js +8 -0
- package/dist/tcl-tdOXVFhT.js.map +1 -0
- package/dist/templ-D3k0ETqq.js +14 -0
- package/dist/templ-D3k0ETqq.js.map +1 -0
- package/dist/terraform-C65cvXJK.js +8 -0
- package/dist/terraform-C65cvXJK.js.map +1 -0
- package/dist/tex-4pYKQzZ9.js +10 -0
- package/dist/tex-4pYKQzZ9.js.map +1 -0
- package/dist/{toast-DUYp3EtH.js → toast-BzvG5cpW.js} +7 -7
- package/dist/{toast-DUYp3EtH.js.map → toast-BzvG5cpW.js.map} +1 -1
- package/dist/tokyo-night-BcIcd5FP.js +6 -0
- package/dist/tokyo-night-BcIcd5FP.js.map +1 -0
- package/dist/toml-BTLaxjFB.js +8 -0
- package/dist/toml-BTLaxjFB.js.map +1 -0
- package/dist/{tooltip-D-KwZQDV.js → tooltip-2KqOpTj0.js} +2 -2
- package/dist/{tooltip-D-KwZQDV.js.map → tooltip-2KqOpTj0.js.map} +1 -1
- package/dist/ts-tags-DeeA5bAv.js +43 -0
- package/dist/ts-tags-DeeA5bAv.js.map +1 -0
- package/dist/tsv-BSiNlNds.js +8 -0
- package/dist/tsv-BSiNlNds.js.map +1 -0
- package/dist/tsx-1QZ5GNk-.js +8 -0
- package/dist/tsx-1QZ5GNk-.js.map +1 -0
- package/dist/turtle-B1Pzn5av.js +8 -0
- package/dist/turtle-B1Pzn5av.js.map +1 -0
- package/dist/twig-C2HueQmu.js +20 -0
- package/dist/twig-C2HueQmu.js.map +1 -0
- package/dist/typescript-CLMZXfG9.js +8 -0
- package/dist/typescript-CLMZXfG9.js.map +1 -0
- package/dist/typespec-C5gqdlO4.js +8 -0
- package/dist/typespec-C5gqdlO4.js.map +1 -0
- package/dist/typst-pX4dU_Sd.js +8 -0
- package/dist/typst-pX4dU_Sd.js.map +1 -0
- package/dist/v-C_UlMRpP.js +8 -0
- package/dist/v-C_UlMRpP.js.map +1 -0
- package/dist/vala-B0RfnRiT.js +8 -0
- package/dist/vala-B0RfnRiT.js.map +1 -0
- package/dist/vb-DYbmUkLw.js +8 -0
- package/dist/vb-DYbmUkLw.js.map +1 -0
- package/dist/{vendor-base-ui-Bsg5ebHI.js → vendor-base-ui-DvXlzG7n.js} +260 -259
- package/dist/{vendor-base-ui-Bsg5ebHI.js.map → vendor-base-ui-DvXlzG7n.js.map} +1 -1
- package/dist/verilog-BUqLwf8h.js +8 -0
- package/dist/verilog-BUqLwf8h.js.map +1 -0
- package/dist/vesper-BW8Q9P3p.js +6 -0
- package/dist/vesper-BW8Q9P3p.js.map +1 -0
- package/dist/vhdl-e6zXgkQJ.js +8 -0
- package/dist/vhdl-e6zXgkQJ.js.map +1 -0
- package/dist/viml-Bw7DMabC.js +8 -0
- package/dist/viml-Bw7DMabC.js.map +1 -0
- package/dist/vitesse-black-BBGvp4RB.js +6 -0
- package/dist/vitesse-black-BBGvp4RB.js.map +1 -0
- package/dist/vitesse-dark-qcbI9VBy.js +6 -0
- package/dist/vitesse-dark-qcbI9VBy.js.map +1 -0
- package/dist/vitesse-light-BL2wQDaR.js +6 -0
- package/dist/vitesse-light-BL2wQDaR.js.map +1 -0
- package/dist/vue-DKeMdoTK.js +33 -0
- package/dist/vue-DKeMdoTK.js.map +1 -0
- package/dist/vue-html-CEfeAKp2.js +10 -0
- package/dist/vue-html-CEfeAKp2.js.map +1 -0
- package/dist/vue-vine-CjuPBhXu.js +20 -0
- package/dist/vue-vine-CjuPBhXu.js.map +1 -0
- package/dist/vyper-Dc9KcbZ_.js +8 -0
- package/dist/vyper-Dc9KcbZ_.js.map +1 -0
- package/dist/wasm-Bae8j78o.js +8 -0
- package/dist/wasm-Bae8j78o.js.map +1 -0
- package/dist/wasm-D5B682Xt.js +9 -0
- package/dist/wasm-D5B682Xt.js.map +1 -0
- package/dist/wenyan-j7Mu9-Zf.js +8 -0
- package/dist/wenyan-j7Mu9-Zf.js.map +1 -0
- package/dist/wgsl-DEgz941F.js +8 -0
- package/dist/wgsl-DEgz941F.js.map +1 -0
- package/dist/wikitext-CFdiH6zG.js +8 -0
- package/dist/wikitext-CFdiH6zG.js.map +1 -0
- package/dist/wit-CQDxIROw.js +8 -0
- package/dist/wit-CQDxIROw.js.map +1 -0
- package/dist/wolfram-BkETUL8d.js +8 -0
- package/dist/wolfram-BkETUL8d.js.map +1 -0
- package/dist/xml-CKSarKBc.js +10 -0
- package/dist/xml-CKSarKBc.js.map +1 -0
- package/dist/xsl-oImqe_65.js +10 -0
- package/dist/xsl-oImqe_65.js.map +1 -0
- package/dist/yaml-CqFcuW2H.js +8 -0
- package/dist/yaml-CqFcuW2H.js.map +1 -0
- package/dist/zenscript-DfbVeZ74.js +8 -0
- package/dist/zenscript-DfbVeZ74.js.map +1 -0
- package/dist/zig--LeFnMpj.js +8 -0
- package/dist/zig--LeFnMpj.js.map +1 -0
- package/package.json +33 -10
- package/scripts/css-build.ts +5 -1
- package/scripts/theme-generator/config.ts +19 -1
- package/dist/badge-Dc99vsfo.js.map +0 -1
- package/dist/breadcrumbs-DyKi7BcP.js +0 -132
- package/dist/breadcrumbs-DyKi7BcP.js.map +0 -1
- package/dist/checkbox-CfFoTNFI.js.map +0 -1
- package/dist/clipboard-text-1d0rHIhb.js.map +0 -1
- package/dist/combobox-vnvi22pn.js +0 -250
- package/dist/combobox-vnvi22pn.js.map +0 -1
- package/dist/command-palette-B80cqB7K.js.map +0 -1
- package/dist/dialog-C4BIM-74.js +0 -97
- package/dist/dialog-C4BIM-74.js.map +0 -1
- package/dist/input-group-BbaVpJnA.js.map +0 -1
- package/dist/menubar-Chchzst0.js.map +0 -1
- package/dist/pagination-DFHoZwPJ.js +0 -208
- package/dist/pagination-DFHoZwPJ.js.map +0 -1
- package/dist/schemas-CdpAeJKO.js.map +0 -1
- package/dist/select-DtcT1zGm.js +0 -122
- package/dist/select-DtcT1zGm.js.map +0 -1
- package/dist/table-CH9KC36S.js.map +0 -1
- package/dist/tabs-B-Fxc6Zo.js.map +0 -1
- /package/dist/{src/blocks → blocks-source}/delete-resource/delete-resource.tsx +0 -0
- /package/dist/{src/blocks → blocks-source}/page-header/page-header.tsx +0 -0
- /package/dist/{src/blocks → blocks-source}/resource-list/resource-list.test.tsx +0 -0
- /package/dist/{src/blocks → blocks-source}/resource-list/resource-list.tsx +0 -0
package/dist/components/flow.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as Dt, jsx as E } from "react/jsx-runtime";
|
|
3
|
-
import { createContext as ct, useRef as F, useLayoutEffect as yo, useEffect as X, useContext as
|
|
3
|
+
import { createContext as ct, useRef as F, useLayoutEffect as yo, useEffect as X, useContext as $, useId as ve, useCallback as Et, useMemo as Q, Fragment as fi, createElement as vo, useInsertionEffect as mi, forwardRef as xe, Component as xo, useState as ht, isValidElement as pi, cloneElement as gi } from "react";
|
|
4
4
|
import { c as le } from "../cn-Bhsu1vx2.js";
|
|
5
|
-
const
|
|
5
|
+
const yi = ct({});
|
|
6
6
|
function Ut(t) {
|
|
7
7
|
const e = F(null);
|
|
8
8
|
return e.current === null && (e.current = t()), e.current;
|
|
9
9
|
}
|
|
10
|
-
const
|
|
10
|
+
const vi = typeof window < "u", xi = vi ? yo : X, fn = /* @__PURE__ */ ct(null);
|
|
11
11
|
function mn(t, e) {
|
|
12
12
|
t.indexOf(e) === -1 && t.push(e);
|
|
13
13
|
}
|
|
@@ -16,25 +16,25 @@ function ce(t, e) {
|
|
|
16
16
|
n > -1 && t.splice(n, 1);
|
|
17
17
|
}
|
|
18
18
|
const it = (t, e, n) => n > e ? e : n < t ? t : n;
|
|
19
|
-
function
|
|
19
|
+
function $e(t, e) {
|
|
20
20
|
return e ? `${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}` : t;
|
|
21
21
|
}
|
|
22
22
|
let Rt = () => {
|
|
23
23
|
}, ot = () => {
|
|
24
24
|
};
|
|
25
25
|
typeof process < "u" && process.env?.NODE_ENV !== "production" && (Rt = (t, e, n) => {
|
|
26
|
-
!t && typeof console < "u" && console.warn(
|
|
26
|
+
!t && typeof console < "u" && console.warn($e(e, n));
|
|
27
27
|
}, ot = (t, e, n) => {
|
|
28
28
|
if (!t)
|
|
29
|
-
throw new Error(
|
|
29
|
+
throw new Error($e(e, n));
|
|
30
30
|
});
|
|
31
|
-
const at = {},
|
|
32
|
-
function
|
|
31
|
+
const at = {}, Ti = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);
|
|
32
|
+
function wi(t) {
|
|
33
33
|
return typeof t == "object" && t !== null;
|
|
34
34
|
}
|
|
35
|
-
const
|
|
35
|
+
const bi = (t) => /^0[^.\s]+$/u.test(t);
|
|
36
36
|
// @__NO_SIDE_EFFECTS__
|
|
37
|
-
function
|
|
37
|
+
function Si(t) {
|
|
38
38
|
let e;
|
|
39
39
|
return () => (e === void 0 && (e = t()), e);
|
|
40
40
|
}
|
|
@@ -68,18 +68,18 @@ class pn {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
const Z = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, Y = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3;
|
|
71
|
-
function
|
|
71
|
+
function Pi(t, e) {
|
|
72
72
|
return e ? t * (1e3 / e) : 0;
|
|
73
73
|
}
|
|
74
|
-
const
|
|
74
|
+
const Kn = /* @__PURE__ */ new Set();
|
|
75
75
|
function gn(t, e, n) {
|
|
76
|
-
t ||
|
|
76
|
+
t || Kn.has(e) || (console.warn($e(e, n)), Kn.add(e));
|
|
77
77
|
}
|
|
78
|
-
const
|
|
78
|
+
const Ai = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, wo = 1e-7, bo = 12;
|
|
79
79
|
function So(t, e, n, s, i) {
|
|
80
80
|
let o, r, a = 0;
|
|
81
81
|
do
|
|
82
|
-
r = e + (n - e) / 2, o =
|
|
82
|
+
r = e + (n - e) / 2, o = Ai(r, s, i) - t, o > 0 ? n = r : e = r;
|
|
83
83
|
while (Math.abs(o) > wo && ++a < bo);
|
|
84
84
|
return r;
|
|
85
85
|
}
|
|
@@ -87,27 +87,27 @@ function Xt(t, e, n, s) {
|
|
|
87
87
|
if (t === e && n === s)
|
|
88
88
|
return q;
|
|
89
89
|
const i = (o) => So(o, 0, 1, t, n);
|
|
90
|
-
return (o) => o === 0 || o === 1 ? o :
|
|
90
|
+
return (o) => o === 0 || o === 1 ? o : Ai(i(o), e, s);
|
|
91
91
|
}
|
|
92
|
-
const
|
|
92
|
+
const Vi = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Ci = (t) => (e) => 1 - t(1 - e), Mi = /* @__PURE__ */ Xt(0.33, 1.53, 0.69, 0.99), yn = /* @__PURE__ */ Ci(Mi), Di = /* @__PURE__ */ Vi(yn), Ei = (t) => (t *= 2) < 1 ? 0.5 * yn(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), vn = (t) => 1 - Math.sin(Math.acos(t)), Ri = Ci(vn), Li = Vi(vn), Po = /* @__PURE__ */ Xt(0.42, 0, 1, 1), Ao = /* @__PURE__ */ Xt(0, 0, 0.58, 1), ki = /* @__PURE__ */ Xt(0.42, 0, 0.58, 1), Vo = (t) => Array.isArray(t) && typeof t[0] != "number", Bi = (t) => Array.isArray(t) && typeof t[0] == "number", Gn = {
|
|
93
93
|
linear: q,
|
|
94
94
|
easeIn: Po,
|
|
95
|
-
easeInOut:
|
|
95
|
+
easeInOut: ki,
|
|
96
96
|
easeOut: Ao,
|
|
97
97
|
circIn: vn,
|
|
98
|
-
circInOut:
|
|
99
|
-
circOut:
|
|
98
|
+
circInOut: Li,
|
|
99
|
+
circOut: Ri,
|
|
100
100
|
backIn: yn,
|
|
101
|
-
backInOut:
|
|
102
|
-
backOut:
|
|
103
|
-
anticipate:
|
|
104
|
-
}, Co = (t) => typeof t == "string",
|
|
105
|
-
if (
|
|
101
|
+
backInOut: Di,
|
|
102
|
+
backOut: Mi,
|
|
103
|
+
anticipate: Ei
|
|
104
|
+
}, Co = (t) => typeof t == "string", _n = (t) => {
|
|
105
|
+
if (Bi(t)) {
|
|
106
106
|
ot(t.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
|
|
107
107
|
const [e, n, s, i] = t;
|
|
108
108
|
return Xt(e, n, s, i);
|
|
109
109
|
} else if (Co(t))
|
|
110
|
-
return ot(
|
|
110
|
+
return ot(Gn[t] !== void 0, `Invalid easing type '${t}'`, "invalid-easing-type"), Gn[t];
|
|
111
111
|
return t;
|
|
112
112
|
}, Zt = [
|
|
113
113
|
"setup",
|
|
@@ -142,9 +142,9 @@ function Mo(t, e) {
|
|
|
142
142
|
/**
|
|
143
143
|
* Schedule a process to run on the next frame.
|
|
144
144
|
*/
|
|
145
|
-
schedule: (u, h = !1,
|
|
146
|
-
const
|
|
147
|
-
return h && r.add(u),
|
|
145
|
+
schedule: (u, h = !1, d = !1) => {
|
|
146
|
+
const m = d && i ? n : s;
|
|
147
|
+
return h && r.add(u), m.has(u) || m.add(u), u;
|
|
148
148
|
},
|
|
149
149
|
/**
|
|
150
150
|
* Cancel the provided callback from running on the next frame.
|
|
@@ -166,27 +166,27 @@ function Mo(t, e) {
|
|
|
166
166
|
return c;
|
|
167
167
|
}
|
|
168
168
|
const Do = 40;
|
|
169
|
-
function
|
|
169
|
+
function Fi(t, e) {
|
|
170
170
|
let n = !1, s = !0;
|
|
171
171
|
const i = {
|
|
172
172
|
delta: 0,
|
|
173
173
|
timestamp: 0,
|
|
174
174
|
isProcessing: !1
|
|
175
|
-
}, o = () => n = !0, r = Zt.reduce((
|
|
176
|
-
const
|
|
177
|
-
n = !1, at.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(
|
|
175
|
+
}, o = () => n = !0, r = Zt.reduce((p, b) => (p[b] = Mo(o), p), {}), { setup: a, read: l, resolveKeyframes: c, preUpdate: u, update: h, preRender: d, render: f, postRender: m } = r, y = () => {
|
|
176
|
+
const p = at.useManualTiming ? i.timestamp : performance.now();
|
|
177
|
+
n = !1, at.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(p - i.timestamp, Do), 1)), i.timestamp = p, i.isProcessing = !0, a.process(i), l.process(i), c.process(i), u.process(i), h.process(i), d.process(i), f.process(i), m.process(i), i.isProcessing = !1, n && e && (s = !1, t(y));
|
|
178
178
|
}, v = () => {
|
|
179
|
-
n = !0, s = !0, i.isProcessing || t(
|
|
179
|
+
n = !0, s = !0, i.isProcessing || t(y);
|
|
180
180
|
};
|
|
181
|
-
return { schedule: Zt.reduce((
|
|
182
|
-
const w = r[
|
|
183
|
-
return
|
|
184
|
-
}, {}), cancel: (
|
|
185
|
-
for (let
|
|
186
|
-
r[Zt[
|
|
181
|
+
return { schedule: Zt.reduce((p, b) => {
|
|
182
|
+
const w = r[b];
|
|
183
|
+
return p[b] = (P, M = !1, S = !1) => (n || v(), w.schedule(P, M, S)), p;
|
|
184
|
+
}, {}), cancel: (p) => {
|
|
185
|
+
for (let b = 0; b < Zt.length; b++)
|
|
186
|
+
r[Zt[b]].cancel(p);
|
|
187
187
|
}, state: i, steps: r };
|
|
188
188
|
}
|
|
189
|
-
const { schedule: L, cancel: lt, state: H, steps:
|
|
189
|
+
const { schedule: L, cancel: lt, state: H, steps: Se } = /* @__PURE__ */ Fi(typeof requestAnimationFrame < "u" ? requestAnimationFrame : q, !0);
|
|
190
190
|
let ee;
|
|
191
191
|
function Eo() {
|
|
192
192
|
ee = void 0;
|
|
@@ -196,8 +196,8 @@ const G = {
|
|
|
196
196
|
set: (t) => {
|
|
197
197
|
ee = t, queueMicrotask(Eo);
|
|
198
198
|
}
|
|
199
|
-
},
|
|
200
|
-
function
|
|
199
|
+
}, Ii = (t) => (e) => typeof e == "string" && e.startsWith(t), Oi = /* @__PURE__ */ Ii("--"), Ro = /* @__PURE__ */ Ii("var(--"), xn = (t) => Ro(t) ? Lo.test(t.split("/*")[0].trim()) : !1, Lo = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
|
|
200
|
+
function Xn(t) {
|
|
201
201
|
return typeof t != "string" ? !1 : t.split("/*")[0].includes("var(--");
|
|
202
202
|
}
|
|
203
203
|
const Lt = {
|
|
@@ -214,7 +214,7 @@ const Lt = {
|
|
|
214
214
|
function ko(t) {
|
|
215
215
|
return t == null;
|
|
216
216
|
}
|
|
217
|
-
const Bo = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, wn = (t, e) => (n) => !!(typeof n == "string" && Bo.test(n) && n.startsWith(t) || e && !ko(n) && Object.prototype.hasOwnProperty.call(n, e)),
|
|
217
|
+
const Bo = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, wn = (t, e) => (n) => !!(typeof n == "string" && Bo.test(n) && n.startsWith(t) || e && !ko(n) && Object.prototype.hasOwnProperty.call(n, e)), Ni = (t, e, n) => (s) => {
|
|
218
218
|
if (typeof s != "string")
|
|
219
219
|
return s;
|
|
220
220
|
const [i, o, r, a] = s.match(Tn);
|
|
@@ -224,13 +224,13 @@ const Bo = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
224
224
|
[n]: parseFloat(r),
|
|
225
225
|
alpha: a !== void 0 ? parseFloat(a) : 1
|
|
226
226
|
};
|
|
227
|
-
}, Fo = (t) => it(0, 255, t),
|
|
227
|
+
}, Fo = (t) => it(0, 255, t), Pe = {
|
|
228
228
|
...Lt,
|
|
229
229
|
transform: (t) => Math.round(Fo(t))
|
|
230
230
|
}, yt = {
|
|
231
231
|
test: /* @__PURE__ */ wn("rgb", "red"),
|
|
232
|
-
parse: /* @__PURE__ */
|
|
233
|
-
transform: ({ red: t, green: e, blue: n, alpha: s = 1 }) => "rgba(" +
|
|
232
|
+
parse: /* @__PURE__ */ Ni("red", "green", "blue"),
|
|
233
|
+
transform: ({ red: t, green: e, blue: n, alpha: s = 1 }) => "rgba(" + Pe.transform(t) + ", " + Pe.transform(e) + ", " + Pe.transform(n) + ", " + Ot(zt.transform(s)) + ")"
|
|
234
234
|
};
|
|
235
235
|
function Io(t) {
|
|
236
236
|
let e = "", n = "", s = "", i = "";
|
|
@@ -241,7 +241,7 @@ function Io(t) {
|
|
|
241
241
|
alpha: i ? parseInt(i, 16) / 255 : 1
|
|
242
242
|
};
|
|
243
243
|
}
|
|
244
|
-
const
|
|
244
|
+
const Ue = {
|
|
245
245
|
test: /* @__PURE__ */ wn("#"),
|
|
246
246
|
parse: Io,
|
|
247
247
|
transform: yt.transform
|
|
@@ -249,17 +249,17 @@ const $e = {
|
|
|
249
249
|
test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
|
|
250
250
|
parse: parseFloat,
|
|
251
251
|
transform: (e) => `${e}${t}`
|
|
252
|
-
}), ut = /* @__PURE__ */ Yt("deg"), st = /* @__PURE__ */ Yt("%"), T = /* @__PURE__ */ Yt("px"), Oo = /* @__PURE__ */ Yt("vh"), No = /* @__PURE__ */ Yt("vw"),
|
|
252
|
+
}), ut = /* @__PURE__ */ Yt("deg"), st = /* @__PURE__ */ Yt("%"), T = /* @__PURE__ */ Yt("px"), Oo = /* @__PURE__ */ Yt("vh"), No = /* @__PURE__ */ Yt("vw"), Yn = {
|
|
253
253
|
...st,
|
|
254
254
|
parse: (t) => st.parse(t) / 100,
|
|
255
255
|
transform: (t) => st.transform(t * 100)
|
|
256
256
|
}, bt = {
|
|
257
257
|
test: /* @__PURE__ */ wn("hsl", "hue"),
|
|
258
|
-
parse: /* @__PURE__ */
|
|
258
|
+
parse: /* @__PURE__ */ Ni("hue", "saturation", "lightness"),
|
|
259
259
|
transform: ({ hue: t, saturation: e, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(t) + ", " + st.transform(Ot(e)) + ", " + st.transform(Ot(n)) + ", " + Ot(zt.transform(s)) + ")"
|
|
260
260
|
}, O = {
|
|
261
|
-
test: (t) => yt.test(t) ||
|
|
262
|
-
parse: (t) => yt.test(t) ? yt.parse(t) : bt.test(t) ? bt.parse(t) :
|
|
261
|
+
test: (t) => yt.test(t) || Ue.test(t) || bt.test(t),
|
|
262
|
+
parse: (t) => yt.test(t) ? yt.parse(t) : bt.test(t) ? bt.parse(t) : Ue.parse(t),
|
|
263
263
|
transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? yt.transform(t) : bt.transform(t),
|
|
264
264
|
getAnimatableNone: (t) => {
|
|
265
265
|
const e = O.parse(t);
|
|
@@ -269,7 +269,7 @@ const $e = {
|
|
|
269
269
|
function $o(t) {
|
|
270
270
|
return isNaN(t) && typeof t == "string" && (t.match(Tn)?.length || 0) + (t.match(jo)?.length || 0) > 0;
|
|
271
271
|
}
|
|
272
|
-
const
|
|
272
|
+
const ji = "number", $i = "color", Uo = "var", Wo = "var(", qn = "${}", zo = /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;
|
|
273
273
|
function Ht(t) {
|
|
274
274
|
const e = t.toString(), n = [], s = {
|
|
275
275
|
color: [],
|
|
@@ -277,36 +277,36 @@ function Ht(t) {
|
|
|
277
277
|
var: []
|
|
278
278
|
}, i = [];
|
|
279
279
|
let o = 0;
|
|
280
|
-
const a = e.replace(zo, (l) => (O.test(l) ? (s.color.push(o), i.push(
|
|
280
|
+
const a = e.replace(zo, (l) => (O.test(l) ? (s.color.push(o), i.push($i), n.push(O.parse(l))) : l.startsWith(Wo) ? (s.var.push(o), i.push(Uo), n.push(l)) : (s.number.push(o), i.push(ji), n.push(parseFloat(l))), ++o, qn)).split(qn);
|
|
281
281
|
return { values: n, split: a, indexes: s, types: i };
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function Ui(t) {
|
|
284
284
|
return Ht(t).values;
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function Wi(t) {
|
|
287
287
|
const { split: e, types: n } = Ht(t), s = e.length;
|
|
288
288
|
return (i) => {
|
|
289
289
|
let o = "";
|
|
290
290
|
for (let r = 0; r < s; r++)
|
|
291
291
|
if (o += e[r], i[r] !== void 0) {
|
|
292
292
|
const a = n[r];
|
|
293
|
-
a ===
|
|
293
|
+
a === ji ? o += Ot(i[r]) : a === $i ? o += O.transform(i[r]) : o += i[r];
|
|
294
294
|
}
|
|
295
295
|
return o;
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
298
|
const Ho = (t) => typeof t == "number" ? 0 : O.test(t) ? O.getAnimatableNone(t) : t;
|
|
299
299
|
function Ko(t) {
|
|
300
|
-
const e =
|
|
301
|
-
return
|
|
300
|
+
const e = Ui(t);
|
|
301
|
+
return Wi(t)(e.map(Ho));
|
|
302
302
|
}
|
|
303
|
-
const
|
|
303
|
+
const et = {
|
|
304
304
|
test: $o,
|
|
305
|
-
parse:
|
|
306
|
-
createTransformer:
|
|
305
|
+
parse: Ui,
|
|
306
|
+
createTransformer: Wi,
|
|
307
307
|
getAnimatableNone: Ko
|
|
308
308
|
};
|
|
309
|
-
function
|
|
309
|
+
function Ae(t, e, n) {
|
|
310
310
|
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
|
|
311
311
|
}
|
|
312
312
|
function Go({ hue: t, saturation: e, lightness: n, alpha: s }) {
|
|
@@ -316,7 +316,7 @@ function Go({ hue: t, saturation: e, lightness: n, alpha: s }) {
|
|
|
316
316
|
i = o = r = n;
|
|
317
317
|
else {
|
|
318
318
|
const a = n < 0.5 ? n * (1 + e) : n + e - n * e, l = 2 * n - a;
|
|
319
|
-
i =
|
|
319
|
+
i = Ae(l, a, t + 1 / 3), o = Ae(l, a, t), r = Ae(l, a, t - 1 / 3);
|
|
320
320
|
}
|
|
321
321
|
return {
|
|
322
322
|
red: Math.round(i * 255),
|
|
@@ -328,34 +328,34 @@ function Go({ hue: t, saturation: e, lightness: n, alpha: s }) {
|
|
|
328
328
|
function ue(t, e) {
|
|
329
329
|
return (n) => n > 0 ? e : t;
|
|
330
330
|
}
|
|
331
|
-
const B = (t, e, n) => t + (e - t) * n,
|
|
331
|
+
const B = (t, e, n) => t + (e - t) * n, Ve = (t, e, n) => {
|
|
332
332
|
const s = t * t, i = n * (e * e - s) + s;
|
|
333
333
|
return i < 0 ? 0 : Math.sqrt(i);
|
|
334
|
-
}, _o = [
|
|
335
|
-
function
|
|
334
|
+
}, _o = [Ue, yt, bt], Xo = (t) => _o.find((e) => e.test(t));
|
|
335
|
+
function Zn(t) {
|
|
336
336
|
const e = Xo(t);
|
|
337
337
|
if (Rt(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !e)
|
|
338
338
|
return !1;
|
|
339
339
|
let n = e.parse(t);
|
|
340
340
|
return e === bt && (n = Go(n)), n;
|
|
341
341
|
}
|
|
342
|
-
const
|
|
343
|
-
const n =
|
|
342
|
+
const Qn = (t, e) => {
|
|
343
|
+
const n = Zn(t), s = Zn(e);
|
|
344
344
|
if (!n || !s)
|
|
345
345
|
return ue(t, e);
|
|
346
346
|
const i = { ...n };
|
|
347
|
-
return (o) => (i.red =
|
|
348
|
-
},
|
|
347
|
+
return (o) => (i.red = Ve(n.red, s.red, o), i.green = Ve(n.green, s.green, o), i.blue = Ve(n.blue, s.blue, o), i.alpha = B(n.alpha, s.alpha, o), yt.transform(i));
|
|
348
|
+
}, We = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
349
349
|
function Yo(t, e) {
|
|
350
|
-
return
|
|
350
|
+
return We.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
|
|
351
351
|
}
|
|
352
352
|
function qo(t, e) {
|
|
353
353
|
return (n) => B(t, e, n);
|
|
354
354
|
}
|
|
355
355
|
function bn(t) {
|
|
356
|
-
return typeof t == "number" ? qo : typeof t == "string" ? xn(t) ? ue : O.test(t) ?
|
|
356
|
+
return typeof t == "number" ? qo : typeof t == "string" ? xn(t) ? ue : O.test(t) ? Qn : Jo : Array.isArray(t) ? zi : typeof t == "object" ? O.test(t) ? Qn : Zo : ue;
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function zi(t, e) {
|
|
359
359
|
const n = [...t], s = n.length, i = t.map((o, r) => bn(o)(o, e[r]));
|
|
360
360
|
return (o) => {
|
|
361
361
|
for (let r = 0; r < s; r++)
|
|
@@ -382,10 +382,10 @@ function Qo(t, e) {
|
|
|
382
382
|
return n;
|
|
383
383
|
}
|
|
384
384
|
const Jo = (t, e) => {
|
|
385
|
-
const n =
|
|
386
|
-
return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ?
|
|
385
|
+
const n = et.createTransformer(e), s = Ht(t), i = Ht(e);
|
|
386
|
+
return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? We.has(t) && !i.values.length || We.has(e) && !s.values.length ? Yo(t, e) : _t(zi(Qo(s, i), i.values), n) : (Rt(!0, `Complex values '${t}' and '${e}' 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"), ue(t, e));
|
|
387
387
|
};
|
|
388
|
-
function
|
|
388
|
+
function Hi(t, e, n) {
|
|
389
389
|
return typeof t == "number" && typeof e == "number" && typeof n == "number" ? B(t, e, n) : bn(t)(t, e);
|
|
390
390
|
}
|
|
391
391
|
const ta = (t) => {
|
|
@@ -399,7 +399,7 @@ const ta = (t) => {
|
|
|
399
399
|
*/
|
|
400
400
|
now: () => H.isProcessing ? H.timestamp : G.now()
|
|
401
401
|
};
|
|
402
|
-
},
|
|
402
|
+
}, Ki = (t, e, n = 10) => {
|
|
403
403
|
let s = "";
|
|
404
404
|
const i = Math.max(Math.round(e / n), 2);
|
|
405
405
|
for (let o = 0; o < i; o++)
|
|
@@ -423,9 +423,9 @@ function ea(t, e = 100, n) {
|
|
|
423
423
|
};
|
|
424
424
|
}
|
|
425
425
|
const na = 5;
|
|
426
|
-
function
|
|
426
|
+
function Gi(t, e, n) {
|
|
427
427
|
const s = Math.max(e - na, 0);
|
|
428
|
-
return
|
|
428
|
+
return Pi(n - t(s), e - s);
|
|
429
429
|
}
|
|
430
430
|
const k = {
|
|
431
431
|
// Default spring physics
|
|
@@ -455,20 +455,20 @@ const k = {
|
|
|
455
455
|
// in seconds
|
|
456
456
|
minDamping: 0.05,
|
|
457
457
|
maxDamping: 1
|
|
458
|
-
},
|
|
458
|
+
}, Ce = 1e-3;
|
|
459
459
|
function sa({ duration: t = k.duration, bounce: e = k.bounce, velocity: n = k.velocity, mass: s = k.mass }) {
|
|
460
460
|
let i, o;
|
|
461
461
|
Rt(t <= /* @__PURE__ */ Z(k.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
|
|
462
462
|
let r = 1 - e;
|
|
463
463
|
r = it(k.minDamping, k.maxDamping, r), t = it(k.minDuration, k.maxDuration, /* @__PURE__ */ Y(t)), r < 1 ? (i = (c) => {
|
|
464
|
-
const u = c * r, h = u * t,
|
|
465
|
-
return
|
|
464
|
+
const u = c * r, h = u * t, d = u - n, f = ze(c, r), m = Math.exp(-h);
|
|
465
|
+
return Ce - d / f * m;
|
|
466
466
|
}, o = (c) => {
|
|
467
|
-
const h = c * r * t,
|
|
468
|
-
return (-i(c) +
|
|
467
|
+
const h = c * r * t, d = h * n + n, f = Math.pow(r, 2) * Math.pow(c, 2) * t, m = Math.exp(-h), y = ze(Math.pow(c, 2), r);
|
|
468
|
+
return (-i(c) + Ce > 0 ? -1 : 1) * ((d - f) * m) / y;
|
|
469
469
|
}) : (i = (c) => {
|
|
470
470
|
const u = Math.exp(-c * t), h = (c - n) * t + 1;
|
|
471
|
-
return -
|
|
471
|
+
return -Ce + u * h;
|
|
472
472
|
}, o = (c) => {
|
|
473
473
|
const u = Math.exp(-c * t), h = (n - c) * (t * t);
|
|
474
474
|
return u * h;
|
|
@@ -496,11 +496,11 @@ function ra(t, e, n) {
|
|
|
496
496
|
s = s - t(s) / e(s);
|
|
497
497
|
return s;
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function ze(t, e) {
|
|
500
500
|
return t * Math.sqrt(1 - e * e);
|
|
501
501
|
}
|
|
502
502
|
const oa = ["duration", "bounce"], aa = ["stiffness", "damping", "mass"];
|
|
503
|
-
function
|
|
503
|
+
function Jn(t, e) {
|
|
504
504
|
return e.some((n) => t[n] !== void 0);
|
|
505
505
|
}
|
|
506
506
|
function la(t) {
|
|
@@ -512,7 +512,7 @@ function la(t) {
|
|
|
512
512
|
isResolvedFromDuration: !1,
|
|
513
513
|
...t
|
|
514
514
|
};
|
|
515
|
-
if (!
|
|
515
|
+
if (!Jn(t, aa) && Jn(t, oa))
|
|
516
516
|
if (t.visualDuration) {
|
|
517
517
|
const n = t.visualDuration, s = 2 * Math.PI / (n * 1.2), i = s * s, o = 2 * it(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(i);
|
|
518
518
|
e = {
|
|
@@ -531,78 +531,78 @@ function la(t) {
|
|
|
531
531
|
}
|
|
532
532
|
return e;
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function de(t = k.visualDuration, e = k.bounce) {
|
|
535
535
|
const n = typeof t != "object" ? {
|
|
536
536
|
visualDuration: t,
|
|
537
537
|
keyframes: [0, 1],
|
|
538
538
|
bounce: e
|
|
539
539
|
} : t;
|
|
540
540
|
let { restSpeed: s, restDelta: i } = n;
|
|
541
|
-
const o = n.keyframes[0], r = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: c, mass: u, duration: h, velocity:
|
|
541
|
+
const o = n.keyframes[0], r = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: c, mass: u, duration: h, velocity: d, isResolvedFromDuration: f } = la({
|
|
542
542
|
...n,
|
|
543
543
|
velocity: -/* @__PURE__ */ Y(n.velocity || 0)
|
|
544
|
-
}),
|
|
544
|
+
}), m = d || 0, y = c / (2 * Math.sqrt(l * u)), v = r - o, g = /* @__PURE__ */ Y(Math.sqrt(l / u)), x = Math.abs(v) < 5;
|
|
545
545
|
s || (s = x ? k.restSpeed.granular : k.restSpeed.default), i || (i = x ? k.restDelta.granular : k.restDelta.default);
|
|
546
|
-
let
|
|
547
|
-
if (
|
|
548
|
-
const w =
|
|
549
|
-
|
|
550
|
-
const M = Math.exp(-
|
|
551
|
-
return r - M * ((
|
|
546
|
+
let p;
|
|
547
|
+
if (y < 1) {
|
|
548
|
+
const w = ze(g, y);
|
|
549
|
+
p = (P) => {
|
|
550
|
+
const M = Math.exp(-y * g * P);
|
|
551
|
+
return r - M * ((m + y * g * v) / w * Math.sin(w * P) + v * Math.cos(w * P));
|
|
552
552
|
};
|
|
553
|
-
} else if (
|
|
554
|
-
|
|
553
|
+
} else if (y === 1)
|
|
554
|
+
p = (w) => r - Math.exp(-g * w) * (v + (m + g * v) * w);
|
|
555
555
|
else {
|
|
556
|
-
const w = g * Math.sqrt(
|
|
557
|
-
|
|
558
|
-
const M = Math.exp(-
|
|
559
|
-
return r - M * ((
|
|
556
|
+
const w = g * Math.sqrt(y * y - 1);
|
|
557
|
+
p = (P) => {
|
|
558
|
+
const M = Math.exp(-y * g * P), S = Math.min(w * P, 300);
|
|
559
|
+
return r - M * ((m + y * g * v) * Math.sinh(S) + w * v * Math.cosh(S)) / w;
|
|
560
560
|
};
|
|
561
561
|
}
|
|
562
|
-
const
|
|
563
|
-
calculatedDuration:
|
|
562
|
+
const b = {
|
|
563
|
+
calculatedDuration: f && h || null,
|
|
564
564
|
next: (w) => {
|
|
565
|
-
const P =
|
|
566
|
-
if (
|
|
565
|
+
const P = p(w);
|
|
566
|
+
if (f)
|
|
567
567
|
a.done = w >= h;
|
|
568
568
|
else {
|
|
569
|
-
let M = w === 0 ?
|
|
570
|
-
|
|
571
|
-
const
|
|
572
|
-
a.done =
|
|
569
|
+
let M = w === 0 ? m : 0;
|
|
570
|
+
y < 1 && (M = w === 0 ? /* @__PURE__ */ Z(m) : Gi(p, w, P));
|
|
571
|
+
const S = Math.abs(M) <= s, I = Math.abs(r - P) <= i;
|
|
572
|
+
a.done = S && I;
|
|
573
573
|
}
|
|
574
574
|
return a.value = a.done ? r : P, a;
|
|
575
575
|
},
|
|
576
576
|
toString: () => {
|
|
577
|
-
const w = Math.min(Sn(
|
|
577
|
+
const w = Math.min(Sn(b), he), P = Ki((M) => b.next(w * M).value, w, 30);
|
|
578
578
|
return w + "ms " + P;
|
|
579
579
|
},
|
|
580
580
|
toTransition: () => {
|
|
581
581
|
}
|
|
582
582
|
};
|
|
583
|
-
return
|
|
583
|
+
return b;
|
|
584
584
|
}
|
|
585
|
-
|
|
586
|
-
const e = ea(t, 100,
|
|
585
|
+
de.applyToOptions = (t) => {
|
|
586
|
+
const e = ea(t, 100, de);
|
|
587
587
|
return t.ease = e.ease, t.duration = /* @__PURE__ */ Z(e.duration), t.type = "keyframes", t;
|
|
588
588
|
};
|
|
589
|
-
function
|
|
590
|
-
const h = t[0],
|
|
589
|
+
function He({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: i = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
|
|
590
|
+
const h = t[0], d = {
|
|
591
591
|
done: !1,
|
|
592
592
|
value: h
|
|
593
|
-
},
|
|
594
|
-
let
|
|
595
|
-
const v = h +
|
|
596
|
-
g !== v && (
|
|
597
|
-
const x = (
|
|
598
|
-
const I = x(
|
|
599
|
-
|
|
593
|
+
}, f = (S) => a !== void 0 && S < a || l !== void 0 && S > l, m = (S) => a === void 0 ? l : l === void 0 || Math.abs(a - S) < Math.abs(l - S) ? a : l;
|
|
594
|
+
let y = n * e;
|
|
595
|
+
const v = h + y, g = r === void 0 ? v : r(v);
|
|
596
|
+
g !== v && (y = g - h);
|
|
597
|
+
const x = (S) => -y * Math.exp(-S / s), p = (S) => g + x(S), b = (S) => {
|
|
598
|
+
const I = x(S), N = p(S);
|
|
599
|
+
d.done = Math.abs(I) <= c, d.value = d.done ? g : N;
|
|
600
600
|
};
|
|
601
601
|
let w, P;
|
|
602
|
-
const M = (
|
|
603
|
-
|
|
604
|
-
keyframes: [
|
|
605
|
-
velocity:
|
|
602
|
+
const M = (S) => {
|
|
603
|
+
f(d.value) && (w = S, P = de({
|
|
604
|
+
keyframes: [d.value, m(d.value)],
|
|
605
|
+
velocity: Gi(p, S, d.value),
|
|
606
606
|
// TODO: This should be passing * 1000
|
|
607
607
|
damping: i,
|
|
608
608
|
stiffness: o,
|
|
@@ -612,14 +612,14 @@ function ze({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 3
|
|
|
612
612
|
};
|
|
613
613
|
return M(0), {
|
|
614
614
|
calculatedDuration: null,
|
|
615
|
-
next: (
|
|
615
|
+
next: (S) => {
|
|
616
616
|
let I = !1;
|
|
617
|
-
return !P && w === void 0 && (I = !0, S
|
|
617
|
+
return !P && w === void 0 && (I = !0, b(S), M(S)), w !== void 0 && S >= w ? P.next(S - w) : (!I && b(S), d);
|
|
618
618
|
}
|
|
619
619
|
};
|
|
620
620
|
}
|
|
621
621
|
function ca(t, e, n) {
|
|
622
|
-
const s = [], i = n || at.mix ||
|
|
622
|
+
const s = [], i = n || at.mix || Hi, o = t.length - 1;
|
|
623
623
|
for (let r = 0; r < o; r++) {
|
|
624
624
|
let a = i(t[r], t[r + 1]);
|
|
625
625
|
if (e) {
|
|
@@ -630,7 +630,7 @@ function ca(t, e, n) {
|
|
|
630
630
|
}
|
|
631
631
|
return s;
|
|
632
632
|
}
|
|
633
|
-
function
|
|
633
|
+
function _i(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
|
|
634
634
|
const o = t.length;
|
|
635
635
|
if (ot(o === e.length, "Both input and output ranges must be the same length", "range-length"), o === 1)
|
|
636
636
|
return () => e[0];
|
|
@@ -645,8 +645,8 @@ function Gi(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
|
|
|
645
645
|
if (l > 1)
|
|
646
646
|
for (; h < t.length - 2 && !(u < t[h + 1]); h++)
|
|
647
647
|
;
|
|
648
|
-
const
|
|
649
|
-
return a[h](
|
|
648
|
+
const d = /* @__PURE__ */ Wt(t[h], t[h + 1], u);
|
|
649
|
+
return a[h](d);
|
|
650
650
|
};
|
|
651
651
|
return n ? (u) => c(it(t[0], t[o - 1], u)) : c;
|
|
652
652
|
}
|
|
@@ -661,23 +661,23 @@ function ha(t) {
|
|
|
661
661
|
const e = [0];
|
|
662
662
|
return ua(e, t.length - 1), e;
|
|
663
663
|
}
|
|
664
|
-
function
|
|
664
|
+
function da(t, e) {
|
|
665
665
|
return t.map((n) => n * e);
|
|
666
666
|
}
|
|
667
|
-
function
|
|
668
|
-
return t.map(() => e ||
|
|
667
|
+
function fa(t, e) {
|
|
668
|
+
return t.map(() => e || ki).splice(0, t.length - 1);
|
|
669
669
|
}
|
|
670
670
|
function St({ duration: t = 300, keyframes: e, times: n, ease: s = "easeInOut" }) {
|
|
671
|
-
const i = Vo(s) ? s.map(
|
|
671
|
+
const i = Vo(s) ? s.map(_n) : _n(s), o = {
|
|
672
672
|
done: !1,
|
|
673
673
|
value: e[0]
|
|
674
|
-
}, r =
|
|
674
|
+
}, r = da(
|
|
675
675
|
// Only use the provided offsets if they're the correct length
|
|
676
676
|
// TODO Maybe we should warn here if there's a length mismatch
|
|
677
677
|
n && n.length === e.length ? n : ha(e),
|
|
678
678
|
t
|
|
679
|
-
), a =
|
|
680
|
-
ease: Array.isArray(i) ? i :
|
|
679
|
+
), a = _i(r, e, {
|
|
680
|
+
ease: Array.isArray(i) ? i : fa(e, i)
|
|
681
681
|
});
|
|
682
682
|
return {
|
|
683
683
|
calculatedDuration: t,
|
|
@@ -690,13 +690,13 @@ function Pn(t, { repeat: e, repeatType: n = "loop" }, s, i = 1) {
|
|
|
690
690
|
return !a || s === void 0 ? o[a] : s;
|
|
691
691
|
}
|
|
692
692
|
const pa = {
|
|
693
|
-
decay:
|
|
694
|
-
inertia:
|
|
693
|
+
decay: He,
|
|
694
|
+
inertia: He,
|
|
695
695
|
tween: St,
|
|
696
696
|
keyframes: St,
|
|
697
|
-
spring:
|
|
697
|
+
spring: de
|
|
698
698
|
};
|
|
699
|
-
function
|
|
699
|
+
function Xi(t) {
|
|
700
700
|
typeof t.type == "string" && (t.type = pa[t.type]);
|
|
701
701
|
}
|
|
702
702
|
class An {
|
|
@@ -733,11 +733,11 @@ class Vn extends An {
|
|
|
733
733
|
}
|
|
734
734
|
initAnimation() {
|
|
735
735
|
const { options: e } = this;
|
|
736
|
-
|
|
736
|
+
Xi(e);
|
|
737
737
|
const { type: n = St, repeat: s = 0, repeatDelay: i = 0, repeatType: o, velocity: r = 0 } = e;
|
|
738
738
|
let { keyframes: a } = e;
|
|
739
739
|
const l = n || St;
|
|
740
|
-
process.env.NODE_ENV !== "production" && l !== St && ot(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), l !== St && typeof a[0] != "number" && (this.mixKeyframes = _t(ga,
|
|
740
|
+
process.env.NODE_ENV !== "production" && l !== St && ot(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), l !== St && typeof a[0] != "number" && (this.mixKeyframes = _t(ga, Hi(a[0], a[1])), a = [0, 100]);
|
|
741
741
|
const c = l({ ...e, keyframes: a });
|
|
742
742
|
o === "mirror" && (this.mirroredGenerator = l({
|
|
743
743
|
...e,
|
|
@@ -755,22 +755,22 @@ class Vn extends An {
|
|
|
755
755
|
const { generator: s, totalDuration: i, mixKeyframes: o, mirroredGenerator: r, resolvedDuration: a, calculatedDuration: l } = this;
|
|
756
756
|
if (this.startTime === null)
|
|
757
757
|
return s.next(0);
|
|
758
|
-
const { delay: c = 0, keyframes: u, repeat: h, repeatType:
|
|
758
|
+
const { delay: c = 0, keyframes: u, repeat: h, repeatType: d, repeatDelay: f, type: m, onUpdate: y, finalKeyframe: v } = this.options;
|
|
759
759
|
this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - i / this.speed, this.startTime)), n ? this.currentTime = e : this.updateTime(e);
|
|
760
760
|
const g = this.currentTime - c * (this.playbackSpeed >= 0 ? 1 : -1), x = this.playbackSpeed >= 0 ? g < 0 : g > i;
|
|
761
761
|
this.currentTime = Math.max(g, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
|
|
762
|
-
let
|
|
762
|
+
let p = this.currentTime, b = s;
|
|
763
763
|
if (h) {
|
|
764
|
-
const
|
|
765
|
-
let I = Math.floor(
|
|
766
|
-
!N &&
|
|
764
|
+
const S = Math.min(this.currentTime, i) / a;
|
|
765
|
+
let I = Math.floor(S), N = S % 1;
|
|
766
|
+
!N && S >= 1 && (N = 1), N === 1 && I--, I = Math.min(I, h + 1), !!(I % 2) && (d === "reverse" ? (N = 1 - N, f && (N -= f / a)) : d === "mirror" && (b = r)), p = it(0, 1, N) * a;
|
|
767
767
|
}
|
|
768
|
-
const w = x ? { done: !1, value: u[0] } :
|
|
768
|
+
const w = x ? { done: !1, value: u[0] } : b.next(p);
|
|
769
769
|
o && (w.value = o(w.value));
|
|
770
770
|
let { done: P } = w;
|
|
771
771
|
!x && l !== null && (P = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
|
|
772
772
|
const M = this.holdTime === null && (this.state === "finished" || this.state === "running" && P);
|
|
773
|
-
return M &&
|
|
773
|
+
return M && m !== He && (w.value = Pn(u, this.options, v, this.speed)), y && y(w.value), M && this.finish(), w;
|
|
774
774
|
}
|
|
775
775
|
/**
|
|
776
776
|
* Allows the returned animation to be awaited or promise-chained. Currently
|
|
@@ -838,9 +838,9 @@ function ya(t) {
|
|
|
838
838
|
for (let e = 1; e < t.length; e++)
|
|
839
839
|
t[e] ?? (t[e] = t[e - 1]);
|
|
840
840
|
}
|
|
841
|
-
const vt = (t) => t * 180 / Math.PI,
|
|
841
|
+
const vt = (t) => t * 180 / Math.PI, Ke = (t) => {
|
|
842
842
|
const e = vt(Math.atan2(t[1], t[0]));
|
|
843
|
-
return
|
|
843
|
+
return Ge(e);
|
|
844
844
|
}, va = {
|
|
845
845
|
x: 4,
|
|
846
846
|
y: 5,
|
|
@@ -849,35 +849,35 @@ const vt = (t) => t * 180 / Math.PI, He = (t) => {
|
|
|
849
849
|
scaleX: 0,
|
|
850
850
|
scaleY: 3,
|
|
851
851
|
scale: (t) => (Math.abs(t[0]) + Math.abs(t[3])) / 2,
|
|
852
|
-
rotate:
|
|
853
|
-
rotateZ:
|
|
852
|
+
rotate: Ke,
|
|
853
|
+
rotateZ: Ke,
|
|
854
854
|
skewX: (t) => vt(Math.atan(t[1])),
|
|
855
855
|
skewY: (t) => vt(Math.atan(t[2])),
|
|
856
856
|
skew: (t) => (Math.abs(t[1]) + Math.abs(t[2])) / 2
|
|
857
|
-
},
|
|
857
|
+
}, Ge = (t) => (t = t % 360, t < 0 && (t += 360), t), ts = Ke, es = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), ns = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), xa = {
|
|
858
858
|
x: 12,
|
|
859
859
|
y: 13,
|
|
860
860
|
z: 14,
|
|
861
861
|
translateX: 12,
|
|
862
862
|
translateY: 13,
|
|
863
863
|
translateZ: 14,
|
|
864
|
-
scaleX:
|
|
865
|
-
scaleY:
|
|
866
|
-
scale: (t) => (
|
|
867
|
-
rotateX: (t) =>
|
|
868
|
-
rotateY: (t) =>
|
|
869
|
-
rotateZ:
|
|
870
|
-
rotate:
|
|
864
|
+
scaleX: es,
|
|
865
|
+
scaleY: ns,
|
|
866
|
+
scale: (t) => (es(t) + ns(t)) / 2,
|
|
867
|
+
rotateX: (t) => Ge(vt(Math.atan2(t[6], t[5]))),
|
|
868
|
+
rotateY: (t) => Ge(vt(Math.atan2(-t[2], t[0]))),
|
|
869
|
+
rotateZ: ts,
|
|
870
|
+
rotate: ts,
|
|
871
871
|
skewX: (t) => vt(Math.atan(t[4])),
|
|
872
872
|
skewY: (t) => vt(Math.atan(t[1])),
|
|
873
873
|
skew: (t) => (Math.abs(t[1]) + Math.abs(t[4])) / 2
|
|
874
874
|
};
|
|
875
|
-
function
|
|
875
|
+
function _e(t) {
|
|
876
876
|
return t.includes("scale") ? 1 : 0;
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function Xe(t, e) {
|
|
879
879
|
if (!t || t === "none")
|
|
880
|
-
return
|
|
880
|
+
return _e(e);
|
|
881
881
|
const n = t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
|
|
882
882
|
let s, i;
|
|
883
883
|
if (n)
|
|
@@ -887,13 +887,13 @@ function _e(t, e) {
|
|
|
887
887
|
s = va, i = a;
|
|
888
888
|
}
|
|
889
889
|
if (!i)
|
|
890
|
-
return
|
|
890
|
+
return _e(e);
|
|
891
891
|
const o = s[e], r = i[1].split(",").map(wa);
|
|
892
892
|
return typeof o == "function" ? o(r) : r[o];
|
|
893
893
|
}
|
|
894
894
|
const Ta = (t, e) => {
|
|
895
895
|
const { transform: n = "none" } = getComputedStyle(t);
|
|
896
|
-
return
|
|
896
|
+
return Xe(n, e);
|
|
897
897
|
};
|
|
898
898
|
function wa(t) {
|
|
899
899
|
return parseFloat(t.trim());
|
|
@@ -916,7 +916,7 @@ const kt = [
|
|
|
916
916
|
"skew",
|
|
917
917
|
"skewX",
|
|
918
918
|
"skewY"
|
|
919
|
-
], Bt = new Set(kt),
|
|
919
|
+
], Bt = new Set(kt), ss = (t) => t === Lt || t === T, ba = /* @__PURE__ */ new Set(["x", "y", "z"]), Sa = kt.filter((t) => !ba.has(t));
|
|
920
920
|
function Pa(t) {
|
|
921
921
|
const e = [];
|
|
922
922
|
return Sa.forEach((n) => {
|
|
@@ -924,7 +924,7 @@ function Pa(t) {
|
|
|
924
924
|
s !== void 0 && (e.push([n, s.get()]), s.set(n.startsWith("scale") ? 1 : 0));
|
|
925
925
|
}), e;
|
|
926
926
|
}
|
|
927
|
-
const
|
|
927
|
+
const dt = {
|
|
928
928
|
// Dimensions
|
|
929
929
|
width: ({ x: t }, { paddingLeft: e = "0", paddingRight: n = "0" }) => t.max - t.min - parseFloat(e) - parseFloat(n),
|
|
930
930
|
height: ({ y: t }, { paddingTop: e = "0", paddingBottom: n = "0" }) => t.max - t.min - parseFloat(e) - parseFloat(n),
|
|
@@ -933,15 +933,15 @@ const ft = {
|
|
|
933
933
|
bottom: ({ y: t }, { top: e }) => parseFloat(e) + (t.max - t.min),
|
|
934
934
|
right: ({ x: t }, { left: e }) => parseFloat(e) + (t.max - t.min),
|
|
935
935
|
// Transform
|
|
936
|
-
x: (t, { transform: e }) =>
|
|
937
|
-
y: (t, { transform: e }) =>
|
|
936
|
+
x: (t, { transform: e }) => Xe(e, "x"),
|
|
937
|
+
y: (t, { transform: e }) => Xe(e, "y")
|
|
938
938
|
};
|
|
939
|
-
|
|
940
|
-
|
|
939
|
+
dt.translateX = dt.x;
|
|
940
|
+
dt.translateY = dt.y;
|
|
941
941
|
const xt = /* @__PURE__ */ new Set();
|
|
942
|
-
let
|
|
943
|
-
function
|
|
944
|
-
if (
|
|
942
|
+
let Ye = !1, qe = !1, Ze = !1;
|
|
943
|
+
function Yi() {
|
|
944
|
+
if (qe) {
|
|
945
945
|
const t = Array.from(xt).filter((s) => s.needsMeasurement), e = new Set(t.map((s) => s.element)), n = /* @__PURE__ */ new Map();
|
|
946
946
|
e.forEach((s) => {
|
|
947
947
|
const i = Pa(s);
|
|
@@ -956,22 +956,22 @@ function Xi() {
|
|
|
956
956
|
s.suspendedScrollY !== void 0 && window.scrollTo(0, s.suspendedScrollY);
|
|
957
957
|
});
|
|
958
958
|
}
|
|
959
|
-
|
|
959
|
+
qe = !1, Ye = !1, xt.forEach((t) => t.complete(Ze)), xt.clear();
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function qi() {
|
|
962
962
|
xt.forEach((t) => {
|
|
963
|
-
t.readKeyframes(), t.needsMeasurement && (
|
|
963
|
+
t.readKeyframes(), t.needsMeasurement && (qe = !0);
|
|
964
964
|
});
|
|
965
965
|
}
|
|
966
966
|
function Aa() {
|
|
967
|
-
|
|
967
|
+
Ze = !0, qi(), Yi(), Ze = !1;
|
|
968
968
|
}
|
|
969
969
|
class Cn {
|
|
970
970
|
constructor(e, n, s, i, o, r = !1) {
|
|
971
971
|
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = s, this.motionValue = i, this.element = o, this.isAsync = r;
|
|
972
972
|
}
|
|
973
973
|
scheduleResolve() {
|
|
974
|
-
this.state = "scheduled", this.isAsync ? (xt.add(this),
|
|
974
|
+
this.state = "scheduled", this.isAsync ? (xt.add(this), Ye || (Ye = !0, L.read(qi), L.resolveKeyframes(Yi))) : (this.readKeyframes(), this.complete());
|
|
975
975
|
}
|
|
976
976
|
readKeyframes() {
|
|
977
977
|
const { unresolvedKeyframes: e, name: n, element: s, motionValue: i } = this;
|
|
@@ -1010,18 +1010,18 @@ function Ca(t, e, n) {
|
|
|
1010
1010
|
Va(e) ? t.style.setProperty(e, n) : t.style[e] = n;
|
|
1011
1011
|
}
|
|
1012
1012
|
const Ma = {};
|
|
1013
|
-
function
|
|
1014
|
-
const n = /* @__PURE__ */
|
|
1013
|
+
function Zi(t, e) {
|
|
1014
|
+
const n = /* @__PURE__ */ Si(t);
|
|
1015
1015
|
return () => Ma[e] ?? n();
|
|
1016
1016
|
}
|
|
1017
|
-
const Da = /* @__PURE__ */
|
|
1017
|
+
const Da = /* @__PURE__ */ Zi(() => window.ScrollTimeline !== void 0, "scrollTimeline"), Qi = /* @__PURE__ */ Zi(() => {
|
|
1018
1018
|
try {
|
|
1019
1019
|
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
|
1020
1020
|
} catch {
|
|
1021
1021
|
return !1;
|
|
1022
1022
|
}
|
|
1023
1023
|
return !0;
|
|
1024
|
-
}, "linearEasing"), It = ([t, e, n, s]) => `cubic-bezier(${t}, ${e}, ${n}, ${s})`,
|
|
1024
|
+
}, "linearEasing"), It = ([t, e, n, s]) => `cubic-bezier(${t}, ${e}, ${n}, ${s})`, is = {
|
|
1025
1025
|
linear: "linear",
|
|
1026
1026
|
ease: "ease",
|
|
1027
1027
|
easeIn: "ease-in",
|
|
@@ -1032,18 +1032,18 @@ const Da = /* @__PURE__ */ qi(() => window.ScrollTimeline !== void 0, "scrollTim
|
|
|
1032
1032
|
backIn: /* @__PURE__ */ It([0.31, 0.01, 0.66, -0.59]),
|
|
1033
1033
|
backOut: /* @__PURE__ */ It([0.33, 1.53, 0.69, 0.99])
|
|
1034
1034
|
};
|
|
1035
|
-
function
|
|
1035
|
+
function Ji(t, e) {
|
|
1036
1036
|
if (t)
|
|
1037
|
-
return typeof t == "function" ?
|
|
1037
|
+
return typeof t == "function" ? Qi() ? Ki(t, e) : "ease-out" : Bi(t) ? It(t) : Array.isArray(t) ? t.map((n) => Ji(n, e) || is.easeOut) : is[t];
|
|
1038
1038
|
}
|
|
1039
1039
|
function Ea(t, e, n, { delay: s = 0, duration: i = 300, repeat: o = 0, repeatType: r = "loop", ease: a = "easeOut", times: l } = {}, c = void 0) {
|
|
1040
1040
|
const u = {
|
|
1041
1041
|
[e]: n
|
|
1042
1042
|
};
|
|
1043
1043
|
l && (u.offset = l);
|
|
1044
|
-
const h =
|
|
1044
|
+
const h = Ji(a, i);
|
|
1045
1045
|
Array.isArray(h) && (u.easing = h);
|
|
1046
|
-
const
|
|
1046
|
+
const d = {
|
|
1047
1047
|
delay: s,
|
|
1048
1048
|
duration: i,
|
|
1049
1049
|
easing: Array.isArray(h) ? "linear" : h,
|
|
@@ -1051,15 +1051,15 @@ function Ea(t, e, n, { delay: s = 0, duration: i = 300, repeat: o = 0, repeatTyp
|
|
|
1051
1051
|
iterations: o + 1,
|
|
1052
1052
|
direction: r === "reverse" ? "alternate" : "normal"
|
|
1053
1053
|
};
|
|
1054
|
-
return c && (
|
|
1054
|
+
return c && (d.pseudoElement = c), t.animate(u, d);
|
|
1055
1055
|
}
|
|
1056
|
-
function
|
|
1056
|
+
function tr(t) {
|
|
1057
1057
|
return typeof t == "function" && "applyToOptions" in t;
|
|
1058
1058
|
}
|
|
1059
1059
|
function Ra({ type: t, ...e }) {
|
|
1060
|
-
return
|
|
1060
|
+
return tr(t) && Qi() ? t.applyToOptions(e) : (e.duration ?? (e.duration = 300), e.ease ?? (e.ease = "easeOut"), e);
|
|
1061
1061
|
}
|
|
1062
|
-
class
|
|
1062
|
+
class er extends An {
|
|
1063
1063
|
constructor(e) {
|
|
1064
1064
|
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e)
|
|
1065
1065
|
return;
|
|
@@ -1152,21 +1152,21 @@ class tr extends An {
|
|
|
1152
1152
|
return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Da() ? (this.animation.timeline = e, q) : n(this);
|
|
1153
1153
|
}
|
|
1154
1154
|
}
|
|
1155
|
-
const
|
|
1156
|
-
anticipate:
|
|
1157
|
-
backInOut:
|
|
1158
|
-
circInOut:
|
|
1155
|
+
const nr = {
|
|
1156
|
+
anticipate: Ei,
|
|
1157
|
+
backInOut: Di,
|
|
1158
|
+
circInOut: Li
|
|
1159
1159
|
};
|
|
1160
1160
|
function La(t) {
|
|
1161
|
-
return t in
|
|
1161
|
+
return t in nr;
|
|
1162
1162
|
}
|
|
1163
1163
|
function ka(t) {
|
|
1164
|
-
typeof t.ease == "string" && La(t.ease) && (t.ease =
|
|
1164
|
+
typeof t.ease == "string" && La(t.ease) && (t.ease = nr[t.ease]);
|
|
1165
1165
|
}
|
|
1166
|
-
const
|
|
1167
|
-
class Ba extends
|
|
1166
|
+
const Me = 10;
|
|
1167
|
+
class Ba extends er {
|
|
1168
1168
|
constructor(e) {
|
|
1169
|
-
ka(e),
|
|
1169
|
+
ka(e), Xi(e), super(e), e.startTime !== void 0 && (this.startTime = e.startTime), this.options = e;
|
|
1170
1170
|
}
|
|
1171
1171
|
/**
|
|
1172
1172
|
* WAAPI doesn't natively have any interruption capabilities.
|
|
@@ -1187,12 +1187,12 @@ class Ba extends tr {
|
|
|
1187
1187
|
const a = new Vn({
|
|
1188
1188
|
...r,
|
|
1189
1189
|
autoplay: !1
|
|
1190
|
-
}), l = Math.max(
|
|
1190
|
+
}), l = Math.max(Me, G.now() - this.startTime), c = it(0, Me, l - Me);
|
|
1191
1191
|
n.setWithVelocity(a.sample(Math.max(0, l - c)).value, a.sample(l).value, c), a.stop();
|
|
1192
1192
|
}
|
|
1193
1193
|
}
|
|
1194
|
-
const
|
|
1195
|
-
(
|
|
1194
|
+
const rs = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
|
|
1195
|
+
(et.test(t) || t === "0") && // And it contains numbers and/or colors
|
|
1196
1196
|
!t.startsWith("url("));
|
|
1197
1197
|
function Fa(t) {
|
|
1198
1198
|
const e = t[0];
|
|
@@ -1208,10 +1208,10 @@ function Ia(t, e, n, s) {
|
|
|
1208
1208
|
return !1;
|
|
1209
1209
|
if (e === "display" || e === "visibility")
|
|
1210
1210
|
return !0;
|
|
1211
|
-
const o = t[t.length - 1], r =
|
|
1212
|
-
return Rt(r === a, `You are trying to animate ${e} from "${i}" to "${o}". "${r ? o : i}" is not an animatable value.`, "value-not-animatable"), !r || !a ? !1 : Fa(t) || (n === "spring" ||
|
|
1211
|
+
const o = t[t.length - 1], r = rs(i, e), a = rs(o, e);
|
|
1212
|
+
return Rt(r === a, `You are trying to animate ${e} from "${i}" to "${o}". "${r ? o : i}" is not an animatable value.`, "value-not-animatable"), !r || !a ? !1 : Fa(t) || (n === "spring" || tr(n)) && s;
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1214
|
+
function Qe(t) {
|
|
1215
1215
|
t.duration = 0, t.type = "keyframes";
|
|
1216
1216
|
}
|
|
1217
1217
|
const Oa = /* @__PURE__ */ new Set([
|
|
@@ -1221,7 +1221,7 @@ const Oa = /* @__PURE__ */ new Set([
|
|
|
1221
1221
|
"transform"
|
|
1222
1222
|
// TODO: Could be re-enabled now we have support for linear() easing
|
|
1223
1223
|
// "background-color"
|
|
1224
|
-
]), Na = /* @__PURE__ */
|
|
1224
|
+
]), Na = /* @__PURE__ */ Si(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
|
|
1225
1225
|
function ja(t) {
|
|
1226
1226
|
const { motionValue: e, name: n, repeatDelay: s, repeatType: i, damping: o, type: r } = t;
|
|
1227
1227
|
if (!(e?.owner?.current instanceof HTMLElement))
|
|
@@ -1239,7 +1239,7 @@ class Ua extends An {
|
|
|
1239
1239
|
super(), this.stop = () => {
|
|
1240
1240
|
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
|
|
1241
1241
|
}, this.createdAt = G.now();
|
|
1242
|
-
const
|
|
1242
|
+
const d = {
|
|
1243
1243
|
autoplay: e,
|
|
1244
1244
|
delay: n,
|
|
1245
1245
|
type: s,
|
|
@@ -1250,25 +1250,25 @@ class Ua extends An {
|
|
|
1250
1250
|
motionValue: c,
|
|
1251
1251
|
element: u,
|
|
1252
1252
|
...h
|
|
1253
|
-
},
|
|
1254
|
-
this.keyframeResolver = new
|
|
1253
|
+
}, f = u?.KeyframeResolver || Cn;
|
|
1254
|
+
this.keyframeResolver = new f(a, (m, y, v) => this.onKeyframesResolved(m, y, d, !v), l, c, u), this.keyframeResolver?.scheduleResolve();
|
|
1255
1255
|
}
|
|
1256
1256
|
onKeyframesResolved(e, n, s, i) {
|
|
1257
1257
|
this.keyframeResolver = void 0;
|
|
1258
1258
|
const { name: o, type: r, velocity: a, delay: l, isHandoff: c, onUpdate: u } = s;
|
|
1259
|
-
this.resolvedAt = G.now(), Ia(e, o, r, a) || ((at.instantAnimations || !l) && u?.(Pn(e, s, n)), e[0] = e[e.length - 1],
|
|
1260
|
-
const
|
|
1259
|
+
this.resolvedAt = G.now(), Ia(e, o, r, a) || ((at.instantAnimations || !l) && u?.(Pn(e, s, n)), e[0] = e[e.length - 1], Qe(s), s.repeat = 0);
|
|
1260
|
+
const d = {
|
|
1261
1261
|
startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > $a ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
|
|
1262
1262
|
finalKeyframe: n,
|
|
1263
1263
|
...s,
|
|
1264
1264
|
keyframes: e
|
|
1265
|
-
},
|
|
1266
|
-
...
|
|
1267
|
-
element:
|
|
1268
|
-
}) : new Vn(
|
|
1269
|
-
|
|
1265
|
+
}, f = !c && ja(d), m = d.motionValue?.owner?.current, y = f ? new Ba({
|
|
1266
|
+
...d,
|
|
1267
|
+
element: m
|
|
1268
|
+
}) : new Vn(d);
|
|
1269
|
+
y.finished.then(() => {
|
|
1270
1270
|
this.notifyFinished();
|
|
1271
|
-
}).catch(q), this.pendingTimeline && (this.stopTimeline =
|
|
1271
|
+
}).catch(q), this.pendingTimeline && (this.stopTimeline = y.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = y;
|
|
1272
1272
|
}
|
|
1273
1273
|
get finished() {
|
|
1274
1274
|
return this._animation ? this.animation.finished : this._finished;
|
|
@@ -1320,7 +1320,7 @@ class Ua extends An {
|
|
|
1320
1320
|
this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
|
|
1321
1321
|
}
|
|
1322
1322
|
}
|
|
1323
|
-
function
|
|
1323
|
+
function sr(t, e, n, s = 0, i = 1) {
|
|
1324
1324
|
const o = Array.from(t).sort((c, u) => c.sortNodePosition(u)).indexOf(e), r = t.size, a = (r - 1) * s;
|
|
1325
1325
|
return typeof n == "function" ? n(o, r) : i === 1 ? o * s : a - o * s;
|
|
1326
1326
|
}
|
|
@@ -1336,7 +1336,7 @@ function za(t) {
|
|
|
1336
1336
|
return [`--${n ?? s}`, i];
|
|
1337
1337
|
}
|
|
1338
1338
|
const Ha = 4;
|
|
1339
|
-
function
|
|
1339
|
+
function ir(t, e, n = 1) {
|
|
1340
1340
|
ot(n <= Ha, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
|
|
1341
1341
|
const [s, i] = za(t);
|
|
1342
1342
|
if (!s)
|
|
@@ -1344,9 +1344,9 @@ function sr(t, e, n = 1) {
|
|
|
1344
1344
|
const o = window.getComputedStyle(e).getPropertyValue(s);
|
|
1345
1345
|
if (o) {
|
|
1346
1346
|
const r = o.trim();
|
|
1347
|
-
return
|
|
1347
|
+
return Ti(r) ? parseFloat(r) : r;
|
|
1348
1348
|
}
|
|
1349
|
-
return xn(i) ?
|
|
1349
|
+
return xn(i) ? ir(i, e, n + 1) : i;
|
|
1350
1350
|
}
|
|
1351
1351
|
const Ka = {
|
|
1352
1352
|
type: "spring",
|
|
@@ -1370,7 +1370,7 @@ function Za(t, { repeat: e, repeatType: n = "loop" }, s) {
|
|
|
1370
1370
|
const i = t.filter(qa), o = e && n !== "loop" && e % 2 === 1 ? 0 : i.length - 1;
|
|
1371
1371
|
return i[o];
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function rr(t, e) {
|
|
1374
1374
|
if (t?.inherit && e) {
|
|
1375
1375
|
const { inherit: n, ...s } = t;
|
|
1376
1376
|
return { ...e, ...s };
|
|
@@ -1379,7 +1379,7 @@ function ir(t, e) {
|
|
|
1379
1379
|
}
|
|
1380
1380
|
function Mn(t, e) {
|
|
1381
1381
|
const n = t?.[e] ?? t?.default ?? t;
|
|
1382
|
-
return n !== t ?
|
|
1382
|
+
return n !== t ? rr(n, t) : n;
|
|
1383
1383
|
}
|
|
1384
1384
|
function Qa({ when: t, delay: e, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: c, ...u }) {
|
|
1385
1385
|
return !!Object.keys(u).length;
|
|
@@ -1394,8 +1394,8 @@ const Dn = (t, e, n, s = {}, i, o) => (r) => {
|
|
|
1394
1394
|
velocity: e.getVelocity(),
|
|
1395
1395
|
...a,
|
|
1396
1396
|
delay: -c,
|
|
1397
|
-
onUpdate: (
|
|
1398
|
-
e.set(
|
|
1397
|
+
onUpdate: (d) => {
|
|
1398
|
+
e.set(d), a.onUpdate && a.onUpdate(d);
|
|
1399
1399
|
},
|
|
1400
1400
|
onComplete: () => {
|
|
1401
1401
|
r(), a.onComplete && a.onComplete();
|
|
@@ -1406,18 +1406,18 @@ const Dn = (t, e, n, s = {}, i, o) => (r) => {
|
|
|
1406
1406
|
};
|
|
1407
1407
|
Qa(a) || Object.assign(u, Ya(t, u)), u.duration && (u.duration = /* @__PURE__ */ Z(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ Z(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
|
|
1408
1408
|
let h = !1;
|
|
1409
|
-
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (
|
|
1410
|
-
const
|
|
1411
|
-
if (
|
|
1409
|
+
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Qe(u), u.delay === 0 && (h = !0)), (at.instantAnimations || at.skipAnimations || i?.shouldSkipAnimations) && (h = !0, Qe(u), u.delay = 0), u.allowFlatten = !a.type && !a.ease, h && !o && e.get() !== void 0) {
|
|
1410
|
+
const d = Za(u.keyframes, a);
|
|
1411
|
+
if (d !== void 0) {
|
|
1412
1412
|
L.update(() => {
|
|
1413
|
-
u.onUpdate(
|
|
1413
|
+
u.onUpdate(d), u.onComplete();
|
|
1414
1414
|
});
|
|
1415
1415
|
return;
|
|
1416
1416
|
}
|
|
1417
1417
|
}
|
|
1418
1418
|
return a.isSync ? new Vn(u) : new Ua(u);
|
|
1419
1419
|
};
|
|
1420
|
-
function
|
|
1420
|
+
function os(t) {
|
|
1421
1421
|
const e = [{}, {}];
|
|
1422
1422
|
return t?.values.forEach((n, s) => {
|
|
1423
1423
|
e[0][s] = n.get(), e[1][s] = n.getVelocity();
|
|
@@ -1425,11 +1425,11 @@ function rs(t) {
|
|
|
1425
1425
|
}
|
|
1426
1426
|
function En(t, e, n, s) {
|
|
1427
1427
|
if (typeof e == "function") {
|
|
1428
|
-
const [i, o] =
|
|
1428
|
+
const [i, o] = os(s);
|
|
1429
1429
|
e = e(n !== void 0 ? n : t.custom, i, o);
|
|
1430
1430
|
}
|
|
1431
1431
|
if (typeof e == "string" && (e = t.variants && t.variants[e]), typeof e == "function") {
|
|
1432
|
-
const [i, o] =
|
|
1432
|
+
const [i, o] = os(s);
|
|
1433
1433
|
e = e(n !== void 0 ? n : t.custom, i, o);
|
|
1434
1434
|
}
|
|
1435
1435
|
return e;
|
|
@@ -1438,7 +1438,7 @@ function Mt(t, e, n) {
|
|
|
1438
1438
|
const s = t.getProps();
|
|
1439
1439
|
return En(s, e, n !== void 0 ? n : s.custom, t);
|
|
1440
1440
|
}
|
|
1441
|
-
const
|
|
1441
|
+
const or = /* @__PURE__ */ new Set([
|
|
1442
1442
|
"width",
|
|
1443
1443
|
"height",
|
|
1444
1444
|
"top",
|
|
@@ -1446,7 +1446,7 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
1446
1446
|
"right",
|
|
1447
1447
|
"bottom",
|
|
1448
1448
|
...kt
|
|
1449
|
-
]),
|
|
1449
|
+
]), as = 30, Ja = (t) => !isNaN(parseFloat(t)), Nt = {
|
|
1450
1450
|
current: void 0
|
|
1451
1451
|
};
|
|
1452
1452
|
class tl {
|
|
@@ -1594,10 +1594,10 @@ class tl {
|
|
|
1594
1594
|
*/
|
|
1595
1595
|
getVelocity() {
|
|
1596
1596
|
const e = G.now();
|
|
1597
|
-
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt >
|
|
1597
|
+
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > as)
|
|
1598
1598
|
return 0;
|
|
1599
|
-
const n = Math.min(this.updatedAt - this.prevUpdatedAt,
|
|
1600
|
-
return
|
|
1599
|
+
const n = Math.min(this.updatedAt - this.prevUpdatedAt, as);
|
|
1600
|
+
return Pi(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
|
|
1601
1601
|
}
|
|
1602
1602
|
/**
|
|
1603
1603
|
* Registers a new animation to control this `MotionValue`. Only one
|
|
@@ -1651,12 +1651,12 @@ class tl {
|
|
|
1651
1651
|
function Tt(t, e) {
|
|
1652
1652
|
return new tl(t, e);
|
|
1653
1653
|
}
|
|
1654
|
-
const
|
|
1654
|
+
const Je = (t) => Array.isArray(t);
|
|
1655
1655
|
function el(t, e, n) {
|
|
1656
1656
|
t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, Tt(n));
|
|
1657
1657
|
}
|
|
1658
1658
|
function nl(t) {
|
|
1659
|
-
return
|
|
1659
|
+
return Je(t) ? t[t.length - 1] || 0 : t;
|
|
1660
1660
|
}
|
|
1661
1661
|
function sl(t, e) {
|
|
1662
1662
|
const n = Mt(t, e);
|
|
@@ -1671,7 +1671,7 @@ const W = (t) => !!(t && t.getVelocity);
|
|
|
1671
1671
|
function il(t) {
|
|
1672
1672
|
return !!(W(t) && t.add);
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1674
|
+
function tn(t, e) {
|
|
1675
1675
|
const n = t.getValue("willChange");
|
|
1676
1676
|
if (il(n))
|
|
1677
1677
|
return n.add(e);
|
|
@@ -1683,58 +1683,58 @@ function Je(t, e) {
|
|
|
1683
1683
|
function Rn(t) {
|
|
1684
1684
|
return t.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
|
|
1685
1685
|
}
|
|
1686
|
-
const rl = "framerAppearId",
|
|
1687
|
-
function
|
|
1688
|
-
return t.props[
|
|
1686
|
+
const rl = "framerAppearId", ar = "data-" + Rn(rl);
|
|
1687
|
+
function lr(t) {
|
|
1688
|
+
return t.props[ar];
|
|
1689
1689
|
}
|
|
1690
1690
|
function ol({ protectedKeys: t, needsAnimating: e }, n) {
|
|
1691
1691
|
const s = t.hasOwnProperty(n) && e[n] !== !0;
|
|
1692
1692
|
return e[n] = !1, s;
|
|
1693
1693
|
}
|
|
1694
|
-
function
|
|
1694
|
+
function cr(t, e, { delay: n = 0, transitionOverride: s, type: i } = {}) {
|
|
1695
1695
|
let { transition: o, transitionEnd: r, ...a } = e;
|
|
1696
1696
|
const l = t.getDefaultTransition();
|
|
1697
|
-
o = o ?
|
|
1697
|
+
o = o ? rr(o, l) : l;
|
|
1698
1698
|
const c = o?.reduceMotion;
|
|
1699
1699
|
s && (o = s);
|
|
1700
1700
|
const u = [], h = i && t.animationState && t.animationState.getState()[i];
|
|
1701
|
-
for (const
|
|
1702
|
-
const
|
|
1703
|
-
if (
|
|
1701
|
+
for (const d in a) {
|
|
1702
|
+
const f = t.getValue(d, t.latestValues[d] ?? null), m = a[d];
|
|
1703
|
+
if (m === void 0 || h && ol(h, d))
|
|
1704
1704
|
continue;
|
|
1705
|
-
const
|
|
1705
|
+
const y = {
|
|
1706
1706
|
delay: n,
|
|
1707
|
-
...Mn(o || {},
|
|
1708
|
-
}, v =
|
|
1709
|
-
if (v !== void 0 && !
|
|
1707
|
+
...Mn(o || {}, d)
|
|
1708
|
+
}, v = f.get();
|
|
1709
|
+
if (v !== void 0 && !f.isAnimating && !Array.isArray(m) && m === v && !y.velocity)
|
|
1710
1710
|
continue;
|
|
1711
1711
|
let g = !1;
|
|
1712
1712
|
if (window.MotionHandoffAnimation) {
|
|
1713
|
-
const
|
|
1714
|
-
if (
|
|
1715
|
-
const w = window.MotionHandoffAnimation(
|
|
1716
|
-
w !== null && (
|
|
1713
|
+
const b = lr(t);
|
|
1714
|
+
if (b) {
|
|
1715
|
+
const w = window.MotionHandoffAnimation(b, d, L);
|
|
1716
|
+
w !== null && (y.startTime = w, g = !0);
|
|
1717
1717
|
}
|
|
1718
1718
|
}
|
|
1719
|
-
|
|
1719
|
+
tn(t, d);
|
|
1720
1720
|
const x = c ?? t.shouldReduceMotion;
|
|
1721
|
-
|
|
1722
|
-
const
|
|
1723
|
-
|
|
1721
|
+
f.start(Dn(d, f, m, x && or.has(d) ? { type: !1 } : y, t, g));
|
|
1722
|
+
const p = f.animation;
|
|
1723
|
+
p && u.push(p);
|
|
1724
1724
|
}
|
|
1725
1725
|
if (r) {
|
|
1726
|
-
const
|
|
1726
|
+
const d = () => L.update(() => {
|
|
1727
1727
|
r && sl(t, r);
|
|
1728
1728
|
});
|
|
1729
|
-
u.length ? Promise.all(u).then(
|
|
1729
|
+
u.length ? Promise.all(u).then(d) : d();
|
|
1730
1730
|
}
|
|
1731
1731
|
return u;
|
|
1732
1732
|
}
|
|
1733
|
-
function
|
|
1733
|
+
function en(t, e, n = {}) {
|
|
1734
1734
|
const s = Mt(t, e, n.type === "exit" ? t.presenceContext?.custom : void 0);
|
|
1735
1735
|
let { transition: i = t.getDefaultTransition() || {} } = s || {};
|
|
1736
1736
|
n.transitionOverride && (i = n.transitionOverride);
|
|
1737
|
-
const o = s ? () => Promise.all(
|
|
1737
|
+
const o = s ? () => Promise.all(cr(t, s, n)) : () => Promise.resolve(), r = t.variantChildren && t.variantChildren.size ? (l = 0) => {
|
|
1738
1738
|
const { delayChildren: c = 0, staggerChildren: u, staggerDirection: h } = i;
|
|
1739
1739
|
return al(t, e, l, c, u, h, n);
|
|
1740
1740
|
} : () => Promise.resolve(), { when: a } = i;
|
|
@@ -1747,9 +1747,9 @@ function tn(t, e, n = {}) {
|
|
|
1747
1747
|
function al(t, e, n = 0, s = 0, i = 0, o = 1, r) {
|
|
1748
1748
|
const a = [];
|
|
1749
1749
|
for (const l of t.variantChildren)
|
|
1750
|
-
l.notify("AnimationStart", e), a.push(
|
|
1750
|
+
l.notify("AnimationStart", e), a.push(en(l, e, {
|
|
1751
1751
|
...r,
|
|
1752
|
-
delay: n + (typeof s == "function" ? 0 : s) +
|
|
1752
|
+
delay: n + (typeof s == "function" ? 0 : s) + sr(t.variantChildren, l, s, i, o)
|
|
1753
1753
|
}).then(() => l.notify("AnimationComplete", e)));
|
|
1754
1754
|
return Promise.all(a);
|
|
1755
1755
|
}
|
|
@@ -1757,13 +1757,13 @@ function ll(t, e, n = {}) {
|
|
|
1757
1757
|
t.notify("AnimationStart", e);
|
|
1758
1758
|
let s;
|
|
1759
1759
|
if (Array.isArray(e)) {
|
|
1760
|
-
const i = e.map((o) =>
|
|
1760
|
+
const i = e.map((o) => en(t, o, n));
|
|
1761
1761
|
s = Promise.all(i);
|
|
1762
1762
|
} else if (typeof e == "string")
|
|
1763
|
-
s =
|
|
1763
|
+
s = en(t, e, n);
|
|
1764
1764
|
else {
|
|
1765
1765
|
const i = typeof e == "function" ? Mt(t, e, n.custom) : e;
|
|
1766
|
-
s = Promise.all(
|
|
1766
|
+
s = Promise.all(cr(t, i, n));
|
|
1767
1767
|
}
|
|
1768
1768
|
return s.then(() => {
|
|
1769
1769
|
t.notify("AnimationComplete", e);
|
|
@@ -1772,12 +1772,12 @@ function ll(t, e, n = {}) {
|
|
|
1772
1772
|
const cl = {
|
|
1773
1773
|
test: (t) => t === "auto",
|
|
1774
1774
|
parse: (t) => t
|
|
1775
|
-
},
|
|
1775
|
+
}, ur = (t) => (e) => e.test(t), hr = [Lt, T, st, ut, No, Oo, cl], ls = (t) => hr.find(ur(t));
|
|
1776
1776
|
function ul(t) {
|
|
1777
|
-
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" ||
|
|
1777
|
+
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || bi(t) : !0;
|
|
1778
1778
|
}
|
|
1779
1779
|
const hl = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
|
|
1780
|
-
function
|
|
1780
|
+
function dl(t) {
|
|
1781
1781
|
const [e, n] = t.slice(0, -1).split("(");
|
|
1782
1782
|
if (e === "drop-shadow")
|
|
1783
1783
|
return t;
|
|
@@ -1788,19 +1788,19 @@ function fl(t) {
|
|
|
1788
1788
|
let o = hl.has(e) ? 1 : 0;
|
|
1789
1789
|
return s !== n && (o *= 100), e + "(" + o + i + ")";
|
|
1790
1790
|
}
|
|
1791
|
-
const
|
|
1792
|
-
...
|
|
1791
|
+
const fl = /\b([a-z-]*)\(.*?\)/gu, nn = {
|
|
1792
|
+
...et,
|
|
1793
1793
|
getAnimatableNone: (t) => {
|
|
1794
|
-
const e = t.match(
|
|
1795
|
-
return e ? e.map(
|
|
1794
|
+
const e = t.match(fl);
|
|
1795
|
+
return e ? e.map(dl).join(" ") : t;
|
|
1796
1796
|
}
|
|
1797
|
-
},
|
|
1798
|
-
...
|
|
1797
|
+
}, sn = {
|
|
1798
|
+
...et,
|
|
1799
1799
|
getAnimatableNone: (t) => {
|
|
1800
|
-
const e =
|
|
1801
|
-
return
|
|
1800
|
+
const e = et.parse(t);
|
|
1801
|
+
return et.createTransformer(t)(e.map((s) => typeof s == "number" ? 0 : typeof s == "object" ? { ...s, alpha: 1 } : s));
|
|
1802
1802
|
}
|
|
1803
|
-
},
|
|
1803
|
+
}, cs = {
|
|
1804
1804
|
...Lt,
|
|
1805
1805
|
transform: Math.round
|
|
1806
1806
|
}, ml = {
|
|
@@ -1825,8 +1825,8 @@ const dl = /\b([a-z-]*)\(.*?\)/gu, en = {
|
|
|
1825
1825
|
perspective: T,
|
|
1826
1826
|
transformPerspective: T,
|
|
1827
1827
|
opacity: zt,
|
|
1828
|
-
originX:
|
|
1829
|
-
originY:
|
|
1828
|
+
originX: Yn,
|
|
1829
|
+
originY: Yn,
|
|
1830
1830
|
originZ: T
|
|
1831
1831
|
}, Ln = {
|
|
1832
1832
|
// Border props
|
|
@@ -1885,11 +1885,11 @@ const dl = /\b([a-z-]*)\(.*?\)/gu, en = {
|
|
|
1885
1885
|
backgroundPositionX: T,
|
|
1886
1886
|
backgroundPositionY: T,
|
|
1887
1887
|
...ml,
|
|
1888
|
-
zIndex:
|
|
1888
|
+
zIndex: cs,
|
|
1889
1889
|
// SVG
|
|
1890
1890
|
fillOpacity: zt,
|
|
1891
1891
|
strokeOpacity: zt,
|
|
1892
|
-
numOctaves:
|
|
1892
|
+
numOctaves: cs
|
|
1893
1893
|
}, pl = {
|
|
1894
1894
|
...Ln,
|
|
1895
1895
|
// Color props
|
|
@@ -1904,14 +1904,14 @@ const dl = /\b([a-z-]*)\(.*?\)/gu, en = {
|
|
|
1904
1904
|
borderRightColor: O,
|
|
1905
1905
|
borderBottomColor: O,
|
|
1906
1906
|
borderLeftColor: O,
|
|
1907
|
-
filter:
|
|
1908
|
-
WebkitFilter:
|
|
1909
|
-
mask:
|
|
1910
|
-
WebkitMask:
|
|
1911
|
-
},
|
|
1907
|
+
filter: nn,
|
|
1908
|
+
WebkitFilter: nn,
|
|
1909
|
+
mask: sn,
|
|
1910
|
+
WebkitMask: sn
|
|
1911
|
+
}, dr = (t) => pl[t], gl = /* @__PURE__ */ new Set([nn, sn]);
|
|
1912
1912
|
function fr(t, e) {
|
|
1913
|
-
let n =
|
|
1914
|
-
return gl.has(n) || (n =
|
|
1913
|
+
let n = dr(t);
|
|
1914
|
+
return gl.has(n) || (n = et), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
|
|
1915
1915
|
}
|
|
1916
1916
|
const yl = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
1917
1917
|
function vl(t, e, n) {
|
|
@@ -1936,24 +1936,24 @@ class xl extends Cn {
|
|
|
1936
1936
|
for (let u = 0; u < e.length; u++) {
|
|
1937
1937
|
let h = e[u];
|
|
1938
1938
|
if (typeof h == "string" && (h = h.trim(), xn(h))) {
|
|
1939
|
-
const
|
|
1940
|
-
|
|
1939
|
+
const d = ir(h, n.current);
|
|
1940
|
+
d !== void 0 && (e[u] = d), u === e.length - 1 && (this.finalKeyframe = h);
|
|
1941
1941
|
}
|
|
1942
1942
|
}
|
|
1943
|
-
if (this.resolveNoneKeyframes(), !
|
|
1943
|
+
if (this.resolveNoneKeyframes(), !or.has(s) || e.length !== 2)
|
|
1944
1944
|
return;
|
|
1945
|
-
const [i, o] = e, r =
|
|
1946
|
-
if (l !== c &&
|
|
1945
|
+
const [i, o] = e, r = ls(i), a = ls(o), l = Xn(i), c = Xn(o);
|
|
1946
|
+
if (l !== c && dt[s]) {
|
|
1947
1947
|
this.needsMeasurement = !0;
|
|
1948
1948
|
return;
|
|
1949
1949
|
}
|
|
1950
1950
|
if (r !== a)
|
|
1951
|
-
if (
|
|
1951
|
+
if (ss(r) && ss(a))
|
|
1952
1952
|
for (let u = 0; u < e.length; u++) {
|
|
1953
1953
|
const h = e[u];
|
|
1954
1954
|
typeof h == "string" && (e[u] = parseFloat(h));
|
|
1955
1955
|
}
|
|
1956
|
-
else
|
|
1956
|
+
else dt[s] && (this.needsMeasurement = !0);
|
|
1957
1957
|
}
|
|
1958
1958
|
resolveNoneKeyframes() {
|
|
1959
1959
|
const { unresolvedKeyframes: e, name: n } = this, s = [];
|
|
@@ -1965,7 +1965,7 @@ class xl extends Cn {
|
|
|
1965
1965
|
const { element: e, unresolvedKeyframes: n, name: s } = this;
|
|
1966
1966
|
if (!e || !e.current)
|
|
1967
1967
|
return;
|
|
1968
|
-
s === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin =
|
|
1968
|
+
s === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = dt[s](e.measureViewportBox(), window.getComputedStyle(e.current)), n[0] = this.measuredOrigin;
|
|
1969
1969
|
const i = n[n.length - 1];
|
|
1970
1970
|
i !== void 0 && e.getValue(s, i).jump(i, !1);
|
|
1971
1971
|
}
|
|
@@ -1976,7 +1976,7 @@ class xl extends Cn {
|
|
|
1976
1976
|
const i = e.getValue(n);
|
|
1977
1977
|
i && i.jump(this.measuredOrigin, !1);
|
|
1978
1978
|
const o = s.length - 1, r = s[o];
|
|
1979
|
-
s[o] =
|
|
1979
|
+
s[o] = dt[n](e.measureViewportBox(), window.getComputedStyle(e.current)), r !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = r), this.removedTransforms?.length && this.removedTransforms.forEach(([a, l]) => {
|
|
1980
1980
|
e.getValue(a).set(l);
|
|
1981
1981
|
}), this.resolveNoneKeyframes();
|
|
1982
1982
|
}
|
|
@@ -1990,7 +1990,7 @@ const Tl = /* @__PURE__ */ new Set([
|
|
|
1990
1990
|
// or until we implement support for linear() easing.
|
|
1991
1991
|
// "background-color"
|
|
1992
1992
|
]);
|
|
1993
|
-
function
|
|
1993
|
+
function mr(t, e, n) {
|
|
1994
1994
|
if (t == null)
|
|
1995
1995
|
return [];
|
|
1996
1996
|
if (t instanceof EventTarget)
|
|
@@ -2002,26 +2002,26 @@ function dr(t, e, n) {
|
|
|
2002
2002
|
}
|
|
2003
2003
|
return Array.from(t).filter((s) => s != null);
|
|
2004
2004
|
}
|
|
2005
|
-
const
|
|
2005
|
+
const pr = (t, e) => e && typeof t == "number" ? e.transform(t) : t;
|
|
2006
2006
|
function wl(t) {
|
|
2007
|
-
return
|
|
2007
|
+
return wi(t) && "offsetHeight" in t;
|
|
2008
2008
|
}
|
|
2009
|
-
const { schedule: kn } = /* @__PURE__ */
|
|
2009
|
+
const { schedule: kn } = /* @__PURE__ */ Fi(queueMicrotask, !1), tt = {
|
|
2010
2010
|
x: !1,
|
|
2011
2011
|
y: !1
|
|
2012
2012
|
};
|
|
2013
|
-
function
|
|
2014
|
-
return
|
|
2013
|
+
function gr() {
|
|
2014
|
+
return tt.x || tt.y;
|
|
2015
2015
|
}
|
|
2016
2016
|
function bl(t) {
|
|
2017
|
-
return t === "x" || t === "y" ?
|
|
2018
|
-
|
|
2019
|
-
}) :
|
|
2020
|
-
|
|
2017
|
+
return t === "x" || t === "y" ? tt[t] ? null : (tt[t] = !0, () => {
|
|
2018
|
+
tt[t] = !1;
|
|
2019
|
+
}) : tt.x || tt.y ? null : (tt.x = tt.y = !0, () => {
|
|
2020
|
+
tt.x = tt.y = !1;
|
|
2021
2021
|
});
|
|
2022
2022
|
}
|
|
2023
|
-
function
|
|
2024
|
-
const n =
|
|
2023
|
+
function yr(t, e) {
|
|
2024
|
+
const n = mr(t), s = new AbortController(), i = {
|
|
2025
2025
|
passive: !0,
|
|
2026
2026
|
...e,
|
|
2027
2027
|
signal: s.signal
|
|
@@ -2029,21 +2029,21 @@ function gr(t, e) {
|
|
|
2029
2029
|
return [n, i, () => s.abort()];
|
|
2030
2030
|
}
|
|
2031
2031
|
function Sl(t) {
|
|
2032
|
-
return !(t.pointerType === "touch" ||
|
|
2032
|
+
return !(t.pointerType === "touch" || gr());
|
|
2033
2033
|
}
|
|
2034
2034
|
function Pl(t, e, n = {}) {
|
|
2035
|
-
const [s, i, o] =
|
|
2035
|
+
const [s, i, o] = yr(t, n);
|
|
2036
2036
|
return s.forEach((r) => {
|
|
2037
2037
|
let a = !1, l = !1, c;
|
|
2038
2038
|
const u = () => {
|
|
2039
|
-
r.removeEventListener("pointerleave",
|
|
2039
|
+
r.removeEventListener("pointerleave", m);
|
|
2040
2040
|
}, h = (v) => {
|
|
2041
2041
|
c && (c(v), c = void 0), u();
|
|
2042
|
-
}, f = (v) => {
|
|
2043
|
-
a = !1, window.removeEventListener("pointerup", f), window.removeEventListener("pointercancel", f), l && (l = !1, h(v));
|
|
2044
|
-
}, m = () => {
|
|
2045
|
-
a = !0, window.addEventListener("pointerup", f, i), window.addEventListener("pointercancel", f, i);
|
|
2046
2042
|
}, d = (v) => {
|
|
2043
|
+
a = !1, window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", d), l && (l = !1, h(v));
|
|
2044
|
+
}, f = () => {
|
|
2045
|
+
a = !0, window.addEventListener("pointerup", d, i), window.addEventListener("pointercancel", d, i);
|
|
2046
|
+
}, m = (v) => {
|
|
2047
2047
|
if (v.pointerType !== "touch") {
|
|
2048
2048
|
if (a) {
|
|
2049
2049
|
l = !0;
|
|
@@ -2051,17 +2051,17 @@ function Pl(t, e, n = {}) {
|
|
|
2051
2051
|
}
|
|
2052
2052
|
h(v);
|
|
2053
2053
|
}
|
|
2054
|
-
},
|
|
2054
|
+
}, y = (v) => {
|
|
2055
2055
|
if (!Sl(v))
|
|
2056
2056
|
return;
|
|
2057
2057
|
l = !1;
|
|
2058
2058
|
const g = e(r, v);
|
|
2059
|
-
typeof g == "function" && (c = g, r.addEventListener("pointerleave",
|
|
2059
|
+
typeof g == "function" && (c = g, r.addEventListener("pointerleave", m, i));
|
|
2060
2060
|
};
|
|
2061
|
-
r.addEventListener("pointerenter",
|
|
2061
|
+
r.addEventListener("pointerenter", y, i), r.addEventListener("pointerdown", f, i);
|
|
2062
2062
|
}), o;
|
|
2063
2063
|
}
|
|
2064
|
-
const
|
|
2064
|
+
const vr = (t, e) => e ? t === e ? !0 : vr(t, e.parentElement) : !1, Bn = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, Al = /* @__PURE__ */ new Set([
|
|
2065
2065
|
"BUTTON",
|
|
2066
2066
|
"INPUT",
|
|
2067
2067
|
"SELECT",
|
|
@@ -2076,58 +2076,58 @@ function Ml(t) {
|
|
|
2076
2076
|
return Cl.has(t.tagName) || t.isContentEditable === !0;
|
|
2077
2077
|
}
|
|
2078
2078
|
const ne = /* @__PURE__ */ new WeakSet();
|
|
2079
|
-
function
|
|
2079
|
+
function us(t) {
|
|
2080
2080
|
return (e) => {
|
|
2081
2081
|
e.key === "Enter" && t(e);
|
|
2082
2082
|
};
|
|
2083
2083
|
}
|
|
2084
|
-
function
|
|
2084
|
+
function De(t, e) {
|
|
2085
2085
|
t.dispatchEvent(new PointerEvent("pointer" + e, { isPrimary: !0, bubbles: !0 }));
|
|
2086
2086
|
}
|
|
2087
2087
|
const Dl = (t, e) => {
|
|
2088
2088
|
const n = t.currentTarget;
|
|
2089
2089
|
if (!n)
|
|
2090
2090
|
return;
|
|
2091
|
-
const s =
|
|
2091
|
+
const s = us(() => {
|
|
2092
2092
|
if (ne.has(n))
|
|
2093
2093
|
return;
|
|
2094
|
-
|
|
2095
|
-
const i =
|
|
2096
|
-
|
|
2097
|
-
}), o = () =>
|
|
2094
|
+
De(n, "down");
|
|
2095
|
+
const i = us(() => {
|
|
2096
|
+
De(n, "up");
|
|
2097
|
+
}), o = () => De(n, "cancel");
|
|
2098
2098
|
n.addEventListener("keyup", i, e), n.addEventListener("blur", o, e);
|
|
2099
2099
|
});
|
|
2100
2100
|
n.addEventListener("keydown", s, e), n.addEventListener("blur", () => n.removeEventListener("keydown", s), e);
|
|
2101
2101
|
};
|
|
2102
|
-
function
|
|
2103
|
-
return Bn(t) && !
|
|
2102
|
+
function hs(t) {
|
|
2103
|
+
return Bn(t) && !gr();
|
|
2104
2104
|
}
|
|
2105
|
-
const
|
|
2105
|
+
const ds = /* @__PURE__ */ new WeakSet();
|
|
2106
2106
|
function El(t, e, n = {}) {
|
|
2107
|
-
const [s, i, o] =
|
|
2107
|
+
const [s, i, o] = yr(t, n), r = (a) => {
|
|
2108
2108
|
const l = a.currentTarget;
|
|
2109
|
-
if (!
|
|
2109
|
+
if (!hs(a) || ds.has(a))
|
|
2110
2110
|
return;
|
|
2111
|
-
ne.add(l), n.stopPropagation &&
|
|
2112
|
-
const c = e(l, a), u = (
|
|
2113
|
-
window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel",
|
|
2114
|
-
}, h = (
|
|
2115
|
-
u(
|
|
2116
|
-
},
|
|
2117
|
-
u(
|
|
2111
|
+
ne.add(l), n.stopPropagation && ds.add(a);
|
|
2112
|
+
const c = e(l, a), u = (f, m) => {
|
|
2113
|
+
window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", d), ne.has(l) && ne.delete(l), hs(f) && typeof c == "function" && c(f, { success: m });
|
|
2114
|
+
}, h = (f) => {
|
|
2115
|
+
u(f, l === window || l === document || n.useGlobalTarget || vr(l, f.target));
|
|
2116
|
+
}, d = (f) => {
|
|
2117
|
+
u(f, !1);
|
|
2118
2118
|
};
|
|
2119
|
-
window.addEventListener("pointerup", h, i), window.addEventListener("pointercancel",
|
|
2119
|
+
window.addEventListener("pointerup", h, i), window.addEventListener("pointercancel", d, i);
|
|
2120
2120
|
};
|
|
2121
2121
|
return s.forEach((a) => {
|
|
2122
2122
|
(n.useGlobalTarget ? window : a).addEventListener("pointerdown", r, i), wl(a) && (a.addEventListener("focus", (c) => Dl(c, i)), !Vl(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
|
|
2123
2123
|
}), o;
|
|
2124
2124
|
}
|
|
2125
2125
|
function Fn(t) {
|
|
2126
|
-
return
|
|
2126
|
+
return wi(t) && "ownerSVGElement" in t;
|
|
2127
2127
|
}
|
|
2128
2128
|
const se = /* @__PURE__ */ new WeakMap();
|
|
2129
2129
|
let ie;
|
|
2130
|
-
const
|
|
2130
|
+
const xr = (t, e, n) => (s, i) => i && i[0] ? i[0][t + "Size"] : Fn(s) && "getBBox" in s ? s.getBBox()[e] : s[n], Rl = /* @__PURE__ */ xr("inline", "width", "offsetWidth"), Ll = /* @__PURE__ */ xr("block", "height", "offsetHeight");
|
|
2131
2131
|
function kl({ target: t, borderBoxSize: e }) {
|
|
2132
2132
|
se.get(t)?.forEach((n) => {
|
|
2133
2133
|
n(t, {
|
|
@@ -2148,7 +2148,7 @@ function Fl() {
|
|
|
2148
2148
|
}
|
|
2149
2149
|
function Il(t, e) {
|
|
2150
2150
|
ie || Fl();
|
|
2151
|
-
const n =
|
|
2151
|
+
const n = mr(t);
|
|
2152
2152
|
return n.forEach((s) => {
|
|
2153
2153
|
let i = se.get(s);
|
|
2154
2154
|
i || (i = /* @__PURE__ */ new Set(), se.set(s, i)), i.add(e), ie?.observe(s);
|
|
@@ -2186,22 +2186,22 @@ function jl(t) {
|
|
|
2186
2186
|
return Fn(t) && t.tagName === "svg";
|
|
2187
2187
|
}
|
|
2188
2188
|
function $l(...t) {
|
|
2189
|
-
const e = !Array.isArray(t[0]), n = e ? 0 : -1, s = t[0 + n], i = t[1 + n], o = t[2 + n], r = t[3 + n], a =
|
|
2189
|
+
const e = !Array.isArray(t[0]), n = e ? 0 : -1, s = t[0 + n], i = t[1 + n], o = t[2 + n], r = t[3 + n], a = _i(i, o, r);
|
|
2190
2190
|
return e ? a(s) : a;
|
|
2191
2191
|
}
|
|
2192
|
-
const Ul = [...
|
|
2192
|
+
const Ul = [...hr, O, et], Wl = (t) => Ul.find(ur(t)), ms = () => ({
|
|
2193
2193
|
translate: 0,
|
|
2194
2194
|
scale: 1,
|
|
2195
2195
|
origin: 0,
|
|
2196
2196
|
originPoint: 0
|
|
2197
2197
|
}), At = () => ({
|
|
2198
|
-
x: ds(),
|
|
2199
|
-
y: ds()
|
|
2200
|
-
}), ms = () => ({ min: 0, max: 0 }), j = () => ({
|
|
2201
2198
|
x: ms(),
|
|
2202
2199
|
y: ms()
|
|
2200
|
+
}), ps = () => ({ min: 0, max: 0 }), j = () => ({
|
|
2201
|
+
x: ps(),
|
|
2202
|
+
y: ps()
|
|
2203
2203
|
}), zl = /* @__PURE__ */ new WeakMap();
|
|
2204
|
-
function
|
|
2204
|
+
function Te(t) {
|
|
2205
2205
|
return t !== null && typeof t == "object" && typeof t.start == "function";
|
|
2206
2206
|
}
|
|
2207
2207
|
function Kt(t) {
|
|
@@ -2216,11 +2216,11 @@ const In = [
|
|
|
2216
2216
|
"whileDrag",
|
|
2217
2217
|
"exit"
|
|
2218
2218
|
], On = ["initial", ...In];
|
|
2219
|
-
function
|
|
2220
|
-
return
|
|
2219
|
+
function we(t) {
|
|
2220
|
+
return Te(t.animate) || On.some((e) => Kt(t[e]));
|
|
2221
2221
|
}
|
|
2222
|
-
function
|
|
2223
|
-
return !!(
|
|
2222
|
+
function Tr(t) {
|
|
2223
|
+
return !!(we(t) || t.variants);
|
|
2224
2224
|
}
|
|
2225
2225
|
function Hl(t, e, n) {
|
|
2226
2226
|
for (const s in e) {
|
|
@@ -2242,16 +2242,16 @@ function Hl(t, e, n) {
|
|
|
2242
2242
|
e[s] === void 0 && t.removeValue(s);
|
|
2243
2243
|
return e;
|
|
2244
2244
|
}
|
|
2245
|
-
const
|
|
2245
|
+
const rn = { current: null }, wr = { current: !1 }, Kl = typeof window < "u";
|
|
2246
2246
|
function Gl() {
|
|
2247
|
-
if (
|
|
2247
|
+
if (wr.current = !0, !!Kl)
|
|
2248
2248
|
if (window.matchMedia) {
|
|
2249
|
-
const t = window.matchMedia("(prefers-reduced-motion)"), e = () =>
|
|
2249
|
+
const t = window.matchMedia("(prefers-reduced-motion)"), e = () => rn.current = t.matches;
|
|
2250
2250
|
t.addEventListener("change", e), e();
|
|
2251
2251
|
} else
|
|
2252
|
-
|
|
2252
|
+
rn.current = !1;
|
|
2253
2253
|
}
|
|
2254
|
-
const
|
|
2254
|
+
const gs = [
|
|
2255
2255
|
"AnimationStart",
|
|
2256
2256
|
"AnimationComplete",
|
|
2257
2257
|
"Update",
|
|
@@ -2260,12 +2260,12 @@ const ps = [
|
|
|
2260
2260
|
"LayoutAnimationStart",
|
|
2261
2261
|
"LayoutAnimationComplete"
|
|
2262
2262
|
];
|
|
2263
|
-
let
|
|
2264
|
-
function
|
|
2265
|
-
|
|
2263
|
+
let fe = {};
|
|
2264
|
+
function br(t) {
|
|
2265
|
+
fe = t;
|
|
2266
2266
|
}
|
|
2267
2267
|
function _l() {
|
|
2268
|
-
return
|
|
2268
|
+
return fe;
|
|
2269
2269
|
}
|
|
2270
2270
|
class Xl {
|
|
2271
2271
|
/**
|
|
@@ -2282,22 +2282,22 @@ class Xl {
|
|
|
2282
2282
|
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 = Cn, 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 = () => {
|
|
2283
2283
|
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
2284
2284
|
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
|
|
2285
|
-
const
|
|
2286
|
-
this.renderScheduledAt <
|
|
2285
|
+
const f = G.now();
|
|
2286
|
+
this.renderScheduledAt < f && (this.renderScheduledAt = f, L.render(this.render, !1, !0));
|
|
2287
2287
|
};
|
|
2288
2288
|
const { latestValues: c, renderState: u } = a;
|
|
2289
|
-
this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = n.initial ? { ...c } : {}, this.renderState = u, this.parent = e, this.props = n, this.presenceContext = s, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.skipAnimationsConfig = o, this.options = l, this.blockInitialAnimation = !!r, this.isControllingVariants =
|
|
2290
|
-
const { willChange: h, ...
|
|
2291
|
-
for (const
|
|
2292
|
-
const
|
|
2293
|
-
c[
|
|
2289
|
+
this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = n.initial ? { ...c } : {}, this.renderState = u, this.parent = e, this.props = n, this.presenceContext = s, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.skipAnimationsConfig = o, this.options = l, this.blockInitialAnimation = !!r, this.isControllingVariants = we(n), this.isVariantNode = Tr(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
|
|
2290
|
+
const { willChange: h, ...d } = this.scrapeMotionValuesFromProps(n, {}, this);
|
|
2291
|
+
for (const f in d) {
|
|
2292
|
+
const m = d[f];
|
|
2293
|
+
c[f] !== void 0 && W(m) && m.set(c[f]);
|
|
2294
2294
|
}
|
|
2295
2295
|
}
|
|
2296
2296
|
mount(e) {
|
|
2297
2297
|
if (this.hasBeenMounted)
|
|
2298
2298
|
for (const n in this.initialValues)
|
|
2299
2299
|
this.values.get(n)?.jump(this.initialValues[n]), this.latestValues[n] = this.initialValues[n];
|
|
2300
|
-
this.current = e, zl.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((n, s) => this.bindToMotionValue(s, n)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (
|
|
2300
|
+
this.current = e, zl.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((n, s) => this.bindToMotionValue(s, n)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (wr.current || Gl(), this.shouldReduceMotion = rn.current), process.env.NODE_ENV !== "production" && gn(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;
|
|
2301
2301
|
}
|
|
2302
2302
|
unmount() {
|
|
2303
2303
|
this.projection && this.projection.unmount(), lt(this.notifyUpdate), lt(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
|
|
@@ -2317,16 +2317,16 @@ class Xl {
|
|
|
2317
2317
|
}
|
|
2318
2318
|
bindToMotionValue(e, n) {
|
|
2319
2319
|
if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), n.accelerate && Tl.has(e) && this.current instanceof HTMLElement) {
|
|
2320
|
-
const { factory: r, keyframes: a, times: l, ease: c, duration: u } = n.accelerate, h = new
|
|
2320
|
+
const { factory: r, keyframes: a, times: l, ease: c, duration: u } = n.accelerate, h = new er({
|
|
2321
2321
|
element: this.current,
|
|
2322
2322
|
name: e,
|
|
2323
2323
|
keyframes: a,
|
|
2324
2324
|
times: l,
|
|
2325
2325
|
ease: c,
|
|
2326
2326
|
duration: /* @__PURE__ */ Z(u)
|
|
2327
|
-
}),
|
|
2327
|
+
}), d = r(h);
|
|
2328
2328
|
this.valueSubscriptions.set(e, () => {
|
|
2329
|
-
|
|
2329
|
+
d(), h.cancel();
|
|
2330
2330
|
});
|
|
2331
2331
|
return;
|
|
2332
2332
|
}
|
|
@@ -2345,8 +2345,8 @@ class Xl {
|
|
|
2345
2345
|
}
|
|
2346
2346
|
updateFeatures() {
|
|
2347
2347
|
let e = "animation";
|
|
2348
|
-
for (e in
|
|
2349
|
-
const n =
|
|
2348
|
+
for (e in fe) {
|
|
2349
|
+
const n = fe[e];
|
|
2350
2350
|
if (!n)
|
|
2351
2351
|
continue;
|
|
2352
2352
|
const { isEnabled: s, Feature: i } = n;
|
|
@@ -2379,8 +2379,8 @@ class Xl {
|
|
|
2379
2379
|
*/
|
|
2380
2380
|
update(e, n) {
|
|
2381
2381
|
(e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
|
|
2382
|
-
for (let s = 0; s <
|
|
2383
|
-
const i =
|
|
2382
|
+
for (let s = 0; s < gs.length; s++) {
|
|
2383
|
+
const i = gs[s];
|
|
2384
2384
|
this.propEventSubscriptions[i] && (this.propEventSubscriptions[i](), delete this.propEventSubscriptions[i]);
|
|
2385
2385
|
const o = "on" + i, r = e[o];
|
|
2386
2386
|
r && (this.propEventSubscriptions[i] = this.on(i, r));
|
|
@@ -2450,7 +2450,7 @@ class Xl {
|
|
|
2450
2450
|
*/
|
|
2451
2451
|
readValue(e, n) {
|
|
2452
2452
|
let s = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
|
|
2453
|
-
return s != null && (typeof s == "string" && (
|
|
2453
|
+
return s != null && (typeof s == "string" && (Ti(s) || bi(s)) ? s = parseFloat(s) : !Wl(s) && et.test(n) && (s = fr(e, n)), this.setBaseTarget(e, W(s) ? s.get() : s)), W(s) ? s.get() : s;
|
|
2454
2454
|
}
|
|
2455
2455
|
/**
|
|
2456
2456
|
* Set the base target to later animate back to. This is currently
|
|
@@ -2485,7 +2485,7 @@ class Xl {
|
|
|
2485
2485
|
kn.render(this.render);
|
|
2486
2486
|
}
|
|
2487
2487
|
}
|
|
2488
|
-
class
|
|
2488
|
+
class Sr extends Xl {
|
|
2489
2489
|
constructor() {
|
|
2490
2490
|
super(...arguments), this.KeyframeResolver = xl;
|
|
2491
2491
|
}
|
|
@@ -2507,14 +2507,14 @@ class br extends Xl {
|
|
|
2507
2507
|
}));
|
|
2508
2508
|
}
|
|
2509
2509
|
}
|
|
2510
|
-
class
|
|
2510
|
+
class ft {
|
|
2511
2511
|
constructor(e) {
|
|
2512
2512
|
this.isMounted = !1, this.node = e;
|
|
2513
2513
|
}
|
|
2514
2514
|
update() {
|
|
2515
2515
|
}
|
|
2516
2516
|
}
|
|
2517
|
-
function
|
|
2517
|
+
function Pr({ top: t, left: e, right: n, bottom: s }) {
|
|
2518
2518
|
return {
|
|
2519
2519
|
x: { min: e, max: n },
|
|
2520
2520
|
y: { min: t, max: s }
|
|
@@ -2534,35 +2534,35 @@ function ql(t, e) {
|
|
|
2534
2534
|
right: s.x
|
|
2535
2535
|
};
|
|
2536
2536
|
}
|
|
2537
|
-
function
|
|
2537
|
+
function Ee(t) {
|
|
2538
2538
|
return t === void 0 || t === 1;
|
|
2539
2539
|
}
|
|
2540
|
-
function
|
|
2541
|
-
return !
|
|
2540
|
+
function on({ scale: t, scaleX: e, scaleY: n }) {
|
|
2541
|
+
return !Ee(t) || !Ee(e) || !Ee(n);
|
|
2542
2542
|
}
|
|
2543
2543
|
function gt(t) {
|
|
2544
|
-
return
|
|
2544
|
+
return on(t) || Ar(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
|
|
2545
2545
|
}
|
|
2546
|
-
function
|
|
2547
|
-
return
|
|
2546
|
+
function Ar(t) {
|
|
2547
|
+
return ys(t.x) || ys(t.y);
|
|
2548
2548
|
}
|
|
2549
|
-
function
|
|
2549
|
+
function ys(t) {
|
|
2550
2550
|
return t && t !== "0%";
|
|
2551
2551
|
}
|
|
2552
2552
|
function me(t, e, n) {
|
|
2553
2553
|
const s = t - n, i = e * s;
|
|
2554
2554
|
return n + i;
|
|
2555
2555
|
}
|
|
2556
|
-
function
|
|
2556
|
+
function vs(t, e, n, s, i) {
|
|
2557
2557
|
return i !== void 0 && (t = me(t, i, s)), me(t, n, s) + e;
|
|
2558
2558
|
}
|
|
2559
|
-
function
|
|
2560
|
-
t.min =
|
|
2559
|
+
function an(t, e = 0, n = 1, s, i) {
|
|
2560
|
+
t.min = vs(t.min, e, n, s, i), t.max = vs(t.max, e, n, s, i);
|
|
2561
2561
|
}
|
|
2562
|
-
function
|
|
2563
|
-
|
|
2562
|
+
function Vr(t, { x: e, y: n }) {
|
|
2563
|
+
an(t.x, e.translate, e.scale, e.originPoint), an(t.y, n.translate, n.scale, n.originPoint);
|
|
2564
2564
|
}
|
|
2565
|
-
const
|
|
2565
|
+
const xs = 0.999999999999, Ts = 1.0000000000001;
|
|
2566
2566
|
function Zl(t, e, n, s = !1) {
|
|
2567
2567
|
const i = n.length;
|
|
2568
2568
|
if (!i)
|
|
@@ -2575,25 +2575,25 @@ function Zl(t, e, n, s = !1) {
|
|
|
2575
2575
|
l && l.props.style && l.props.style.display === "contents" || (s && o.options.layoutScroll && o.scroll && o !== o.root && Ct(t, {
|
|
2576
2576
|
x: -o.scroll.offset.x,
|
|
2577
2577
|
y: -o.scroll.offset.y
|
|
2578
|
-
}), r && (e.x *= r.x.scale, e.y *= r.y.scale,
|
|
2578
|
+
}), r && (e.x *= r.x.scale, e.y *= r.y.scale, Vr(t, r)), s && gt(o.latestValues) && Ct(t, o.latestValues));
|
|
2579
2579
|
}
|
|
2580
|
-
e.x <
|
|
2580
|
+
e.x < Ts && e.x > xs && (e.x = 1), e.y < Ts && e.y > xs && (e.y = 1);
|
|
2581
2581
|
}
|
|
2582
2582
|
function Vt(t, e) {
|
|
2583
2583
|
t.min = t.min + e, t.max = t.max + e;
|
|
2584
2584
|
}
|
|
2585
|
-
function
|
|
2585
|
+
function ws(t, e, n, s, i = 0.5) {
|
|
2586
2586
|
const o = B(t.min, t.max, i);
|
|
2587
|
-
|
|
2587
|
+
an(t, e, n, o, s);
|
|
2588
2588
|
}
|
|
2589
2589
|
function Ct(t, e) {
|
|
2590
|
-
|
|
2590
|
+
ws(t.x, e.x, e.scaleX, e.scale, e.originX), ws(t.y, e.y, e.scaleY, e.scale, e.originY);
|
|
2591
2591
|
}
|
|
2592
|
-
function
|
|
2593
|
-
return
|
|
2592
|
+
function Cr(t, e) {
|
|
2593
|
+
return Pr(ql(t.getBoundingClientRect(), e));
|
|
2594
2594
|
}
|
|
2595
2595
|
function Ql(t, e, n) {
|
|
2596
|
-
const s =
|
|
2596
|
+
const s = Cr(t, n), { scroll: i } = e;
|
|
2597
2597
|
return i && (Vt(s.x, i.offset.x), Vt(s.y, i.offset.y)), s;
|
|
2598
2598
|
}
|
|
2599
2599
|
const Jl = {
|
|
@@ -2616,7 +2616,7 @@ function ec(t, e, n) {
|
|
|
2616
2616
|
l = r.startsWith("scale") ? c === 1 : c === 0;
|
|
2617
2617
|
}
|
|
2618
2618
|
if (!l || n) {
|
|
2619
|
-
const c =
|
|
2619
|
+
const c = pr(a, Ln[r]);
|
|
2620
2620
|
if (!l) {
|
|
2621
2621
|
i = !1;
|
|
2622
2622
|
const u = Jl[r] || r;
|
|
@@ -2635,11 +2635,11 @@ function Nn(t, e, n) {
|
|
|
2635
2635
|
if (Bt.has(l)) {
|
|
2636
2636
|
r = !0;
|
|
2637
2637
|
continue;
|
|
2638
|
-
} else if (
|
|
2638
|
+
} else if (Oi(l)) {
|
|
2639
2639
|
i[l] = c;
|
|
2640
2640
|
continue;
|
|
2641
2641
|
} else {
|
|
2642
|
-
const u =
|
|
2642
|
+
const u = pr(c, Ln[l]);
|
|
2643
2643
|
l.startsWith("origin") ? (a = !0, o[l] = u) : s[l] = u;
|
|
2644
2644
|
}
|
|
2645
2645
|
}
|
|
@@ -2648,7 +2648,7 @@ function Nn(t, e, n) {
|
|
|
2648
2648
|
s.transformOrigin = `${l} ${c} ${u}`;
|
|
2649
2649
|
}
|
|
2650
2650
|
}
|
|
2651
|
-
function
|
|
2651
|
+
function Mr(t, { style: e, vars: n }, s, i) {
|
|
2652
2652
|
const o = t.style;
|
|
2653
2653
|
let r;
|
|
2654
2654
|
for (r in e)
|
|
@@ -2657,7 +2657,7 @@ function Cr(t, { style: e, vars: n }, s, i) {
|
|
|
2657
2657
|
for (r in n)
|
|
2658
2658
|
o.setProperty(r, n[r]);
|
|
2659
2659
|
}
|
|
2660
|
-
function
|
|
2660
|
+
function bs(t, e) {
|
|
2661
2661
|
return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
|
|
2662
2662
|
}
|
|
2663
2663
|
const Ft = {
|
|
@@ -2669,20 +2669,20 @@ const Ft = {
|
|
|
2669
2669
|
t = parseFloat(t);
|
|
2670
2670
|
else
|
|
2671
2671
|
return t;
|
|
2672
|
-
const n =
|
|
2672
|
+
const n = bs(t, e.target.x), s = bs(t, e.target.y);
|
|
2673
2673
|
return `${n}% ${s}%`;
|
|
2674
2674
|
}
|
|
2675
2675
|
}, nc = {
|
|
2676
2676
|
correct: (t, { treeScale: e, projectionDelta: n }) => {
|
|
2677
|
-
const s = t, i =
|
|
2677
|
+
const s = t, i = et.parse(t);
|
|
2678
2678
|
if (i.length > 5)
|
|
2679
2679
|
return s;
|
|
2680
|
-
const o =
|
|
2680
|
+
const o = et.createTransformer(t), r = typeof i[0] != "number" ? 1 : 0, a = n.x.scale * e.x, l = n.y.scale * e.y;
|
|
2681
2681
|
i[0 + r] /= a, i[1 + r] /= l;
|
|
2682
2682
|
const c = B(a, l, 0.5);
|
|
2683
2683
|
return typeof i[2 + r] == "number" && (i[2 + r] /= c), typeof i[3 + r] == "number" && (i[3 + r] /= c), o(i);
|
|
2684
2684
|
}
|
|
2685
|
-
},
|
|
2685
|
+
}, ln = {
|
|
2686
2686
|
borderRadius: {
|
|
2687
2687
|
...Ft,
|
|
2688
2688
|
applyTo: [
|
|
@@ -2698,34 +2698,34 @@ const Ft = {
|
|
|
2698
2698
|
borderBottomRightRadius: Ft,
|
|
2699
2699
|
boxShadow: nc
|
|
2700
2700
|
};
|
|
2701
|
-
function
|
|
2702
|
-
return Bt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!
|
|
2701
|
+
function Dr(t, { layout: e, layoutId: n }) {
|
|
2702
|
+
return Bt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!ln[t] || t === "opacity");
|
|
2703
2703
|
}
|
|
2704
2704
|
function jn(t, e, n) {
|
|
2705
2705
|
const s = t.style, i = e?.style, o = {};
|
|
2706
2706
|
if (!s)
|
|
2707
2707
|
return o;
|
|
2708
2708
|
for (const r in s)
|
|
2709
|
-
(W(s[r]) || i && W(i[r]) ||
|
|
2709
|
+
(W(s[r]) || i && W(i[r]) || Dr(r, t) || n?.getValue(r)?.liveStyle !== void 0) && (o[r] = s[r]);
|
|
2710
2710
|
return o;
|
|
2711
2711
|
}
|
|
2712
2712
|
function sc(t) {
|
|
2713
2713
|
return window.getComputedStyle(t);
|
|
2714
2714
|
}
|
|
2715
|
-
class ic extends
|
|
2715
|
+
class ic extends Sr {
|
|
2716
2716
|
constructor() {
|
|
2717
|
-
super(...arguments), this.type = "html", this.renderInstance =
|
|
2717
|
+
super(...arguments), this.type = "html", this.renderInstance = Mr;
|
|
2718
2718
|
}
|
|
2719
2719
|
readValueFromInstance(e, n) {
|
|
2720
2720
|
if (Bt.has(n))
|
|
2721
|
-
return this.projection?.isProjecting ?
|
|
2721
|
+
return this.projection?.isProjecting ? _e(n) : Ta(e, n);
|
|
2722
2722
|
{
|
|
2723
|
-
const s = sc(e), i = (
|
|
2723
|
+
const s = sc(e), i = (Oi(n) ? s.getPropertyValue(n) : s[n]) || 0;
|
|
2724
2724
|
return typeof i == "string" ? i.trim() : i;
|
|
2725
2725
|
}
|
|
2726
2726
|
}
|
|
2727
2727
|
measureInstanceViewportBox(e, { transformPagePoint: n }) {
|
|
2728
|
-
return
|
|
2728
|
+
return Cr(e, n);
|
|
2729
2729
|
}
|
|
2730
2730
|
build(e, n, s) {
|
|
2731
2731
|
Nn(e, n, s.transformTemplate);
|
|
@@ -2752,7 +2752,7 @@ const lc = [
|
|
|
2752
2752
|
"offsetRotate",
|
|
2753
2753
|
"offsetAnchor"
|
|
2754
2754
|
];
|
|
2755
|
-
function
|
|
2755
|
+
function Er(t, {
|
|
2756
2756
|
attrX: e,
|
|
2757
2757
|
attrY: n,
|
|
2758
2758
|
attrScale: s,
|
|
@@ -2767,13 +2767,13 @@ function Dr(t, {
|
|
|
2767
2767
|
return;
|
|
2768
2768
|
}
|
|
2769
2769
|
t.attrs = t.style, t.style = {};
|
|
2770
|
-
const { attrs: h, style:
|
|
2771
|
-
h.transform && (
|
|
2772
|
-
for (const
|
|
2773
|
-
h[
|
|
2770
|
+
const { attrs: h, style: d } = t;
|
|
2771
|
+
h.transform && (d.transform = h.transform, delete h.transform), (d.transform || h.transformOrigin) && (d.transformOrigin = h.transformOrigin ?? "50% 50%", delete h.transformOrigin), d.transform && (d.transformBox = u?.transformBox ?? "fill-box", delete h.transformBox);
|
|
2772
|
+
for (const f of lc)
|
|
2773
|
+
h[f] !== void 0 && (d[f] = h[f], delete h[f]);
|
|
2774
2774
|
e !== void 0 && (h.x = e), n !== void 0 && (h.y = n), s !== void 0 && (h.scale = s), i !== void 0 && ac(h, i, o, r, !1);
|
|
2775
2775
|
}
|
|
2776
|
-
const
|
|
2776
|
+
const Rr = /* @__PURE__ */ new Set([
|
|
2777
2777
|
"baseFrequency",
|
|
2778
2778
|
"diffuseConstant",
|
|
2779
2779
|
"kernelMatrix",
|
|
@@ -2797,13 +2797,13 @@ const Er = /* @__PURE__ */ new Set([
|
|
|
2797
2797
|
"startOffset",
|
|
2798
2798
|
"textLength",
|
|
2799
2799
|
"lengthAdjust"
|
|
2800
|
-
]),
|
|
2800
|
+
]), Lr = (t) => typeof t == "string" && t.toLowerCase() === "svg";
|
|
2801
2801
|
function cc(t, e, n, s) {
|
|
2802
|
-
|
|
2802
|
+
Mr(t, e, void 0, s);
|
|
2803
2803
|
for (const i in e.attrs)
|
|
2804
|
-
t.setAttribute(
|
|
2804
|
+
t.setAttribute(Rr.has(i) ? i : Rn(i), e.attrs[i]);
|
|
2805
2805
|
}
|
|
2806
|
-
function
|
|
2806
|
+
function kr(t, e, n) {
|
|
2807
2807
|
const s = jn(t, e, n);
|
|
2808
2808
|
for (const i in t)
|
|
2809
2809
|
if (W(t[i]) || W(e[i])) {
|
|
@@ -2812,7 +2812,7 @@ function Lr(t, e, n) {
|
|
|
2812
2812
|
}
|
|
2813
2813
|
return s;
|
|
2814
2814
|
}
|
|
2815
|
-
class uc extends
|
|
2815
|
+
class uc extends Sr {
|
|
2816
2816
|
constructor() {
|
|
2817
2817
|
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = j;
|
|
2818
2818
|
}
|
|
@@ -2821,30 +2821,30 @@ class uc extends br {
|
|
|
2821
2821
|
}
|
|
2822
2822
|
readValueFromInstance(e, n) {
|
|
2823
2823
|
if (Bt.has(n)) {
|
|
2824
|
-
const s =
|
|
2824
|
+
const s = dr(n);
|
|
2825
2825
|
return s && s.default || 0;
|
|
2826
2826
|
}
|
|
2827
|
-
return n =
|
|
2827
|
+
return n = Rr.has(n) ? n : Rn(n), e.getAttribute(n);
|
|
2828
2828
|
}
|
|
2829
2829
|
scrapeMotionValuesFromProps(e, n, s) {
|
|
2830
|
-
return
|
|
2830
|
+
return kr(e, n, s);
|
|
2831
2831
|
}
|
|
2832
2832
|
build(e, n, s) {
|
|
2833
|
-
|
|
2833
|
+
Er(e, n, this.isSVGTag, s.transformTemplate, s.style);
|
|
2834
2834
|
}
|
|
2835
2835
|
renderInstance(e, n, s, i) {
|
|
2836
2836
|
cc(e, n, s, i);
|
|
2837
2837
|
}
|
|
2838
2838
|
mount(e) {
|
|
2839
|
-
this.isSVGTag =
|
|
2839
|
+
this.isSVGTag = Lr(e.tagName), super.mount(e);
|
|
2840
2840
|
}
|
|
2841
2841
|
}
|
|
2842
2842
|
const hc = On.length;
|
|
2843
|
-
function
|
|
2843
|
+
function Br(t) {
|
|
2844
2844
|
if (!t)
|
|
2845
2845
|
return;
|
|
2846
2846
|
if (!t.isControllingVariants) {
|
|
2847
|
-
const n = t.parent ?
|
|
2847
|
+
const n = t.parent ? Br(t.parent) || {} : {};
|
|
2848
2848
|
return t.props.initial !== void 0 && (n.initial = t.props.initial), n;
|
|
2849
2849
|
}
|
|
2850
2850
|
const e = {};
|
|
@@ -2854,7 +2854,7 @@ function kr(t) {
|
|
|
2854
2854
|
}
|
|
2855
2855
|
return e;
|
|
2856
2856
|
}
|
|
2857
|
-
function
|
|
2857
|
+
function Fr(t, e) {
|
|
2858
2858
|
if (!Array.isArray(e))
|
|
2859
2859
|
return !1;
|
|
2860
2860
|
const n = e.length;
|
|
@@ -2865,17 +2865,17 @@ function Br(t, e) {
|
|
|
2865
2865
|
return !1;
|
|
2866
2866
|
return !0;
|
|
2867
2867
|
}
|
|
2868
|
-
const
|
|
2868
|
+
const dc = [...In].reverse(), fc = In.length;
|
|
2869
2869
|
function mc(t) {
|
|
2870
2870
|
return (e) => Promise.all(e.map(({ animation: n, options: s }) => ll(t, n, s)));
|
|
2871
2871
|
}
|
|
2872
2872
|
function pc(t) {
|
|
2873
|
-
let e = mc(t), n =
|
|
2873
|
+
let e = mc(t), n = Ss(), s = !0;
|
|
2874
2874
|
const i = (l) => (c, u) => {
|
|
2875
2875
|
const h = Mt(t, u, l === "exit" ? t.presenceContext?.custom : void 0);
|
|
2876
2876
|
if (h) {
|
|
2877
|
-
const { transition:
|
|
2878
|
-
c = { ...c, ...
|
|
2877
|
+
const { transition: d, transitionEnd: f, ...m } = h;
|
|
2878
|
+
c = { ...c, ...m, ...f };
|
|
2879
2879
|
}
|
|
2880
2880
|
return c;
|
|
2881
2881
|
};
|
|
@@ -2883,55 +2883,55 @@ function pc(t) {
|
|
|
2883
2883
|
e = l(t);
|
|
2884
2884
|
}
|
|
2885
2885
|
function r(l) {
|
|
2886
|
-
const { props: c } = t, u =
|
|
2887
|
-
let
|
|
2888
|
-
for (let v = 0; v <
|
|
2889
|
-
const g =
|
|
2890
|
-
w === !1 && (
|
|
2891
|
-
let P =
|
|
2892
|
-
if (P && s && t.manuallyAnimateOnMount && (P = !1), x.protectedKeys = { ...
|
|
2886
|
+
const { props: c } = t, u = Br(t.parent) || {}, h = [], d = /* @__PURE__ */ new Set();
|
|
2887
|
+
let f = {}, m = 1 / 0;
|
|
2888
|
+
for (let v = 0; v < fc; v++) {
|
|
2889
|
+
const g = dc[v], x = n[g], p = c[g] !== void 0 ? c[g] : u[g], b = Kt(p), w = g === l ? x.isActive : null;
|
|
2890
|
+
w === !1 && (m = v);
|
|
2891
|
+
let P = p === u[g] && p !== c[g] && b;
|
|
2892
|
+
if (P && s && t.manuallyAnimateOnMount && (P = !1), x.protectedKeys = { ...f }, // If it isn't active and hasn't *just* been set as inactive
|
|
2893
2893
|
!x.isActive && w === null || // If we didn't and don't have any defined prop for this animation type
|
|
2894
|
-
!
|
|
2895
|
-
|
|
2894
|
+
!p && !x.prevProp || // Or if the prop doesn't define an animation
|
|
2895
|
+
Te(p) || typeof p == "boolean")
|
|
2896
2896
|
continue;
|
|
2897
2897
|
if (g === "exit" && x.isActive && w !== !0) {
|
|
2898
|
-
x.prevResolvedValues && (
|
|
2899
|
-
...
|
|
2898
|
+
x.prevResolvedValues && (f = {
|
|
2899
|
+
...f,
|
|
2900
2900
|
...x.prevResolvedValues
|
|
2901
2901
|
});
|
|
2902
2902
|
continue;
|
|
2903
2903
|
}
|
|
2904
|
-
const M = gc(x.prevProp,
|
|
2905
|
-
let
|
|
2906
|
-
g === l && x.isActive && !P &&
|
|
2907
|
-
v >
|
|
2908
|
-
const N = Array.isArray(
|
|
2904
|
+
const M = gc(x.prevProp, p);
|
|
2905
|
+
let S = M || // If we're making this variant active, we want to always make it active
|
|
2906
|
+
g === l && x.isActive && !P && b || // If we removed a higher-priority variant (i is in reverse order)
|
|
2907
|
+
v > m && b, I = !1;
|
|
2908
|
+
const N = Array.isArray(p) ? p : [p];
|
|
2909
2909
|
let z = N.reduce(i(g), {});
|
|
2910
2910
|
w === !1 && (z = {});
|
|
2911
|
-
const { prevResolvedValues:
|
|
2912
|
-
|
|
2911
|
+
const { prevResolvedValues: U = {} } = x, D = {
|
|
2912
|
+
...U,
|
|
2913
2913
|
...z
|
|
2914
2914
|
}, C = (V) => {
|
|
2915
|
-
|
|
2915
|
+
S = !0, d.has(V) && (I = !0, d.delete(V)), x.needsAnimating[V] = !0;
|
|
2916
2916
|
const R = t.getValue(V);
|
|
2917
2917
|
R && (R.liveStyle = !1);
|
|
2918
2918
|
};
|
|
2919
2919
|
for (const V in D) {
|
|
2920
|
-
const R = z[V], rt =
|
|
2921
|
-
if (
|
|
2920
|
+
const R = z[V], rt = U[V];
|
|
2921
|
+
if (f.hasOwnProperty(V))
|
|
2922
2922
|
continue;
|
|
2923
2923
|
let mt = !1;
|
|
2924
|
-
|
|
2924
|
+
Je(R) && Je(rt) ? mt = !Fr(R, rt) : mt = R !== rt, mt ? R != null ? C(V) : d.add(V) : R !== void 0 && d.has(V) ? C(V) : x.protectedKeys[V] = !0;
|
|
2925
2925
|
}
|
|
2926
|
-
x.prevProp =
|
|
2926
|
+
x.prevProp = p, x.prevResolvedValues = z, x.isActive && (f = { ...f, ...z }), s && t.blockInitialAnimation && (S = !1);
|
|
2927
2927
|
const A = P && M;
|
|
2928
|
-
|
|
2928
|
+
S && (!A || I) && h.push(...N.map((V) => {
|
|
2929
2929
|
const R = { type: g };
|
|
2930
2930
|
if (typeof V == "string" && s && !A && t.manuallyAnimateOnMount && t.parent) {
|
|
2931
2931
|
const { parent: rt } = t, mt = Mt(rt, V);
|
|
2932
2932
|
if (rt.enteringChildren && mt) {
|
|
2933
2933
|
const { delayChildren: go } = mt.transition || {};
|
|
2934
|
-
R.delay =
|
|
2934
|
+
R.delay = sr(rt.enteringChildren, t, go);
|
|
2935
2935
|
}
|
|
2936
2936
|
}
|
|
2937
2937
|
return {
|
|
@@ -2940,19 +2940,19 @@ function pc(t) {
|
|
|
2940
2940
|
};
|
|
2941
2941
|
}));
|
|
2942
2942
|
}
|
|
2943
|
-
if (
|
|
2943
|
+
if (d.size) {
|
|
2944
2944
|
const v = {};
|
|
2945
2945
|
if (typeof c.initial != "boolean") {
|
|
2946
2946
|
const g = Mt(t, Array.isArray(c.initial) ? c.initial[0] : c.initial);
|
|
2947
2947
|
g && g.transition && (v.transition = g.transition);
|
|
2948
2948
|
}
|
|
2949
|
-
|
|
2950
|
-
const x = t.getBaseTarget(g),
|
|
2951
|
-
|
|
2949
|
+
d.forEach((g) => {
|
|
2950
|
+
const x = t.getBaseTarget(g), p = t.getValue(g);
|
|
2951
|
+
p && (p.liveStyle = !0), v[g] = x ?? null;
|
|
2952
2952
|
}), h.push({ animation: v });
|
|
2953
2953
|
}
|
|
2954
|
-
let
|
|
2955
|
-
return s && (c.initial === !1 || c.initial === c.animate) && !t.manuallyAnimateOnMount && (
|
|
2954
|
+
let y = !!h.length;
|
|
2955
|
+
return s && (c.initial === !1 || c.initial === c.animate) && !t.manuallyAnimateOnMount && (y = !1), s = !1, y ? e(h) : Promise.resolve();
|
|
2956
2956
|
}
|
|
2957
2957
|
function a(l, c) {
|
|
2958
2958
|
if (n[l].isActive === c)
|
|
@@ -2969,12 +2969,12 @@ function pc(t) {
|
|
|
2969
2969
|
setAnimateFunction: o,
|
|
2970
2970
|
getState: () => n,
|
|
2971
2971
|
reset: () => {
|
|
2972
|
-
n =
|
|
2972
|
+
n = Ss();
|
|
2973
2973
|
}
|
|
2974
2974
|
};
|
|
2975
2975
|
}
|
|
2976
2976
|
function gc(t, e) {
|
|
2977
|
-
return typeof e == "string" ? e !== t : Array.isArray(e) ? !
|
|
2977
|
+
return typeof e == "string" ? e !== t : Array.isArray(e) ? !Fr(e, t) : !1;
|
|
2978
2978
|
}
|
|
2979
2979
|
function pt(t = !1) {
|
|
2980
2980
|
return {
|
|
@@ -2984,7 +2984,7 @@ function pt(t = !1) {
|
|
|
2984
2984
|
prevResolvedValues: {}
|
|
2985
2985
|
};
|
|
2986
2986
|
}
|
|
2987
|
-
function
|
|
2987
|
+
function Ss() {
|
|
2988
2988
|
return {
|
|
2989
2989
|
animate: pt(!0),
|
|
2990
2990
|
whileInView: pt(),
|
|
@@ -2995,78 +2995,78 @@ function bs() {
|
|
|
2995
2995
|
exit: pt()
|
|
2996
2996
|
};
|
|
2997
2997
|
}
|
|
2998
|
-
function
|
|
2998
|
+
function Ps(t, e) {
|
|
2999
2999
|
t.min = e.min, t.max = e.max;
|
|
3000
3000
|
}
|
|
3001
|
-
function
|
|
3002
|
-
|
|
3001
|
+
function J(t, e) {
|
|
3002
|
+
Ps(t.x, e.x), Ps(t.y, e.y);
|
|
3003
3003
|
}
|
|
3004
|
-
function
|
|
3004
|
+
function As(t, e) {
|
|
3005
3005
|
t.translate = e.translate, t.scale = e.scale, t.originPoint = e.originPoint, t.origin = e.origin;
|
|
3006
3006
|
}
|
|
3007
|
-
const
|
|
3007
|
+
const Ir = 1e-4, yc = 1 - Ir, vc = 1 + Ir, Or = 0.01, xc = 0 - Or, Tc = 0 + Or;
|
|
3008
3008
|
function _(t) {
|
|
3009
3009
|
return t.max - t.min;
|
|
3010
3010
|
}
|
|
3011
3011
|
function wc(t, e, n) {
|
|
3012
3012
|
return Math.abs(t - e) <= n;
|
|
3013
3013
|
}
|
|
3014
|
-
function
|
|
3014
|
+
function Vs(t, e, n, s = 0.5) {
|
|
3015
3015
|
t.origin = s, t.originPoint = B(e.min, e.max, t.origin), t.scale = _(n) / _(e), t.translate = B(n.min, n.max, t.origin) - t.originPoint, (t.scale >= yc && t.scale <= vc || isNaN(t.scale)) && (t.scale = 1), (t.translate >= xc && t.translate <= Tc || isNaN(t.translate)) && (t.translate = 0);
|
|
3016
3016
|
}
|
|
3017
3017
|
function jt(t, e, n, s) {
|
|
3018
|
-
|
|
3018
|
+
Vs(t.x, e.x, n.x, s ? s.originX : void 0), Vs(t.y, e.y, n.y, s ? s.originY : void 0);
|
|
3019
3019
|
}
|
|
3020
|
-
function
|
|
3020
|
+
function Cs(t, e, n) {
|
|
3021
3021
|
t.min = n.min + e.min, t.max = t.min + _(e);
|
|
3022
3022
|
}
|
|
3023
3023
|
function bc(t, e, n) {
|
|
3024
|
-
|
|
3024
|
+
Cs(t.x, e.x, n.x), Cs(t.y, e.y, n.y);
|
|
3025
3025
|
}
|
|
3026
|
-
function
|
|
3026
|
+
function Ms(t, e, n) {
|
|
3027
3027
|
t.min = e.min - n.min, t.max = t.min + _(e);
|
|
3028
3028
|
}
|
|
3029
3029
|
function pe(t, e, n) {
|
|
3030
|
-
|
|
3030
|
+
Ms(t.x, e.x, n.x), Ms(t.y, e.y, n.y);
|
|
3031
3031
|
}
|
|
3032
|
-
function
|
|
3032
|
+
function Ds(t, e, n, s, i) {
|
|
3033
3033
|
return t -= e, t = me(t, 1 / n, s), i !== void 0 && (t = me(t, 1 / i, s)), t;
|
|
3034
3034
|
}
|
|
3035
3035
|
function Sc(t, e = 0, n = 1, s = 0.5, i, o = t, r = t) {
|
|
3036
3036
|
if (st.test(e) && (e = parseFloat(e), e = B(r.min, r.max, e / 100) - r.min), typeof e != "number")
|
|
3037
3037
|
return;
|
|
3038
3038
|
let a = B(o.min, o.max, s);
|
|
3039
|
-
t === o && (a -= e), t.min =
|
|
3039
|
+
t === o && (a -= e), t.min = Ds(t.min, e, n, a, i), t.max = Ds(t.max, e, n, a, i);
|
|
3040
3040
|
}
|
|
3041
|
-
function
|
|
3041
|
+
function Es(t, e, [n, s, i], o, r) {
|
|
3042
3042
|
Sc(t, e[n], e[s], e[i], e.scale, o, r);
|
|
3043
3043
|
}
|
|
3044
3044
|
const Pc = ["x", "scaleX", "originX"], Ac = ["y", "scaleY", "originY"];
|
|
3045
|
-
function
|
|
3046
|
-
|
|
3045
|
+
function Rs(t, e, n, s) {
|
|
3046
|
+
Es(t.x, e, Pc, n ? n.x : void 0, s ? s.x : void 0), Es(t.y, e, Ac, n ? n.y : void 0, s ? s.y : void 0);
|
|
3047
3047
|
}
|
|
3048
|
-
function
|
|
3048
|
+
function Ls(t) {
|
|
3049
3049
|
return t.translate === 0 && t.scale === 1;
|
|
3050
3050
|
}
|
|
3051
|
-
function
|
|
3052
|
-
return
|
|
3051
|
+
function Nr(t) {
|
|
3052
|
+
return Ls(t.x) && Ls(t.y);
|
|
3053
3053
|
}
|
|
3054
|
-
function
|
|
3054
|
+
function ks(t, e) {
|
|
3055
3055
|
return t.min === e.min && t.max === e.max;
|
|
3056
3056
|
}
|
|
3057
3057
|
function Vc(t, e) {
|
|
3058
|
-
return
|
|
3058
|
+
return ks(t.x, e.x) && ks(t.y, e.y);
|
|
3059
3059
|
}
|
|
3060
|
-
function
|
|
3060
|
+
function Bs(t, e) {
|
|
3061
3061
|
return Math.round(t.min) === Math.round(e.min) && Math.round(t.max) === Math.round(e.max);
|
|
3062
3062
|
}
|
|
3063
|
-
function
|
|
3064
|
-
return
|
|
3063
|
+
function jr(t, e) {
|
|
3064
|
+
return Bs(t.x, e.x) && Bs(t.y, e.y);
|
|
3065
3065
|
}
|
|
3066
|
-
function
|
|
3066
|
+
function Fs(t) {
|
|
3067
3067
|
return _(t.x) / _(t.y);
|
|
3068
3068
|
}
|
|
3069
|
-
function
|
|
3069
|
+
function Is(t, e) {
|
|
3070
3070
|
return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
|
|
3071
3071
|
}
|
|
3072
3072
|
function nt(t) {
|
|
@@ -3076,29 +3076,29 @@ function Cc(t, e, n) {
|
|
|
3076
3076
|
let s = "";
|
|
3077
3077
|
const i = t.x.translate / e.x, o = t.y.translate / e.y, r = n?.z || 0;
|
|
3078
3078
|
if ((i || o || r) && (s = `translate3d(${i}px, ${o}px, ${r}px) `), (e.x !== 1 || e.y !== 1) && (s += `scale(${1 / e.x}, ${1 / e.y}) `), n) {
|
|
3079
|
-
const { transformPerspective: c, rotate: u, rotateX: h, rotateY:
|
|
3080
|
-
c && (s = `perspective(${c}px) ${s}`), u && (s += `rotate(${u}deg) `), h && (s += `rotateX(${h}deg) `),
|
|
3079
|
+
const { transformPerspective: c, rotate: u, rotateX: h, rotateY: d, skewX: f, skewY: m } = n;
|
|
3080
|
+
c && (s = `perspective(${c}px) ${s}`), u && (s += `rotate(${u}deg) `), h && (s += `rotateX(${h}deg) `), d && (s += `rotateY(${d}deg) `), f && (s += `skewX(${f}deg) `), m && (s += `skewY(${m}deg) `);
|
|
3081
3081
|
}
|
|
3082
3082
|
const a = t.x.scale * e.x, l = t.y.scale * e.y;
|
|
3083
3083
|
return (a !== 1 || l !== 1) && (s += `scale(${a}, ${l})`), s || "none";
|
|
3084
3084
|
}
|
|
3085
|
-
const
|
|
3085
|
+
const $r = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Mc = $r.length, Os = (t) => typeof t == "string" ? parseFloat(t) : t, Ns = (t) => typeof t == "number" || T.test(t);
|
|
3086
3086
|
function Dc(t, e, n, s, i, o) {
|
|
3087
3087
|
i ? (t.opacity = B(0, n.opacity ?? 1, Ec(s)), t.opacityExit = B(e.opacity ?? 1, 0, Rc(s))) : o && (t.opacity = B(e.opacity ?? 1, n.opacity ?? 1, s));
|
|
3088
3088
|
for (let r = 0; r < Mc; r++) {
|
|
3089
|
-
const a = `border${
|
|
3090
|
-
let l =
|
|
3089
|
+
const a = `border${$r[r]}Radius`;
|
|
3090
|
+
let l = js(e, a), c = js(n, a);
|
|
3091
3091
|
if (l === void 0 && c === void 0)
|
|
3092
3092
|
continue;
|
|
3093
|
-
l || (l = 0), c || (c = 0), l === 0 || c === 0 ||
|
|
3093
|
+
l || (l = 0), c || (c = 0), l === 0 || c === 0 || Ns(l) === Ns(c) ? (t[a] = Math.max(B(Os(l), Os(c), s), 0), (st.test(c) || st.test(l)) && (t[a] += "%")) : t[a] = c;
|
|
3094
3094
|
}
|
|
3095
3095
|
(e.rotate || n.rotate) && (t.rotate = B(e.rotate || 0, n.rotate || 0, s));
|
|
3096
3096
|
}
|
|
3097
|
-
function
|
|
3097
|
+
function js(t, e) {
|
|
3098
3098
|
return t[e] !== void 0 ? t[e] : t.borderRadius;
|
|
3099
3099
|
}
|
|
3100
|
-
const Ec = /* @__PURE__ */
|
|
3101
|
-
function
|
|
3100
|
+
const Ec = /* @__PURE__ */ Ur(0, 0.5, Ri), Rc = /* @__PURE__ */ Ur(0.5, 0.95, q);
|
|
3101
|
+
function Ur(t, e, n) {
|
|
3102
3102
|
return (s) => s < t ? 0 : s > e ? 1 : n(/* @__PURE__ */ Wt(t, e, s));
|
|
3103
3103
|
}
|
|
3104
3104
|
function Lc(t, e, n) {
|
|
@@ -3211,27 +3211,27 @@ const ae = {
|
|
|
3211
3211
|
* update will be given a `data-projection-id` attribute.
|
|
3212
3212
|
*/
|
|
3213
3213
|
hasEverUpdated: !1
|
|
3214
|
-
},
|
|
3214
|
+
}, Re = ["", "X", "Y", "Z"], Oc = 1e3;
|
|
3215
3215
|
let Nc = 0;
|
|
3216
|
-
function
|
|
3216
|
+
function Le(t, e, n, s) {
|
|
3217
3217
|
const { latestValues: i } = e;
|
|
3218
3218
|
i[t] && (n[t] = i[t], e.setStaticValue(t, 0), s && (s[t] = 0));
|
|
3219
3219
|
}
|
|
3220
|
-
function
|
|
3220
|
+
function Wr(t) {
|
|
3221
3221
|
if (t.hasCheckedOptimisedAppear = !0, t.root === t)
|
|
3222
3222
|
return;
|
|
3223
3223
|
const { visualElement: e } = t.options;
|
|
3224
3224
|
if (!e)
|
|
3225
3225
|
return;
|
|
3226
|
-
const n =
|
|
3226
|
+
const n = lr(e);
|
|
3227
3227
|
if (window.MotionHasOptimisedAnimation(n, "transform")) {
|
|
3228
3228
|
const { layout: i, layoutId: o } = t.options;
|
|
3229
3229
|
window.MotionCancelOptimisedAnimation(n, "transform", L, !(i || o));
|
|
3230
3230
|
}
|
|
3231
3231
|
const { parent: s } = t;
|
|
3232
|
-
s && !s.hasCheckedOptimisedAppear &&
|
|
3232
|
+
s && !s.hasCheckedOptimisedAppear && Wr(s);
|
|
3233
3233
|
}
|
|
3234
|
-
function
|
|
3234
|
+
function zr({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: s, resetTransform: i }) {
|
|
3235
3235
|
return class {
|
|
3236
3236
|
constructor(r = {}, a = e?.()) {
|
|
3237
3237
|
this.id = Nc++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.layoutVersion = 0, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
|
|
@@ -3263,31 +3263,31 @@ function Wr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3263
3263
|
const { layoutId: a, layout: l, visualElement: c } = this.options;
|
|
3264
3264
|
if (c && !c.current && c.mount(r), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (l || a) && (this.isLayoutDirty = !0), t) {
|
|
3265
3265
|
let u, h = 0;
|
|
3266
|
-
const
|
|
3266
|
+
const d = () => this.root.updateBlockedByResize = !1;
|
|
3267
3267
|
L.read(() => {
|
|
3268
3268
|
h = window.innerWidth;
|
|
3269
3269
|
}), t(r, () => {
|
|
3270
|
-
const
|
|
3271
|
-
|
|
3270
|
+
const f = window.innerWidth;
|
|
3271
|
+
f !== h && (h = f, this.root.updateBlockedByResize = !0, u && u(), u = Fc(d, 250), ae.hasAnimatedSinceResize && (ae.hasAnimatedSinceResize = !1, this.nodes.forEach(Ws)));
|
|
3272
3272
|
});
|
|
3273
3273
|
}
|
|
3274
|
-
a && this.root.registerSharedNode(a, this), this.options.animate !== !1 && c && (a || l) && this.addEventListener("didUpdate", ({ delta: u, hasLayoutChanged: h, hasRelativeLayoutChanged:
|
|
3274
|
+
a && this.root.registerSharedNode(a, this), this.options.animate !== !1 && c && (a || l) && this.addEventListener("didUpdate", ({ delta: u, hasLayoutChanged: h, hasRelativeLayoutChanged: d, layout: f }) => {
|
|
3275
3275
|
if (this.isTreeAnimationBlocked()) {
|
|
3276
3276
|
this.target = void 0, this.relativeTarget = void 0;
|
|
3277
3277
|
return;
|
|
3278
3278
|
}
|
|
3279
|
-
const
|
|
3279
|
+
const m = this.options.transition || c.getDefaultTransition() || Zc, { onLayoutAnimationStart: y, onLayoutAnimationComplete: v } = c.getProps(), g = !this.targetLayout || !jr(this.targetLayout, f), x = !h && d;
|
|
3280
3280
|
if (this.options.layoutRoot || this.resumeFrom || x || h && (g || !this.currentAnimation)) {
|
|
3281
3281
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
|
|
3282
|
-
const
|
|
3283
|
-
...Mn(
|
|
3284
|
-
onPlay:
|
|
3282
|
+
const p = {
|
|
3283
|
+
...Mn(m, "layout"),
|
|
3284
|
+
onPlay: y,
|
|
3285
3285
|
onComplete: v
|
|
3286
3286
|
};
|
|
3287
|
-
(c.shouldReduceMotion || this.options.layoutRoot) && (
|
|
3287
|
+
(c.shouldReduceMotion || this.options.layoutRoot) && (p.delay = 0, p.type = !1), this.startAnimation(p), this.setAnimationOrigin(u, x);
|
|
3288
3288
|
} else
|
|
3289
|
-
h ||
|
|
3290
|
-
this.targetLayout =
|
|
3289
|
+
h || Ws(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
3290
|
+
this.targetLayout = f;
|
|
3291
3291
|
});
|
|
3292
3292
|
}
|
|
3293
3293
|
unmount() {
|
|
@@ -3321,7 +3321,7 @@ function Wr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3321
3321
|
this.options.onExitComplete && this.options.onExitComplete();
|
|
3322
3322
|
return;
|
|
3323
3323
|
}
|
|
3324
|
-
if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear &&
|
|
3324
|
+
if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && Wr(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
|
|
3325
3325
|
return;
|
|
3326
3326
|
this.isLayoutDirty = !0;
|
|
3327
3327
|
for (let u = 0; u < this.path.length; u++) {
|
|
@@ -3336,16 +3336,16 @@ function Wr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3336
3336
|
}
|
|
3337
3337
|
update() {
|
|
3338
3338
|
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
|
|
3339
|
-
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(
|
|
3339
|
+
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach($s);
|
|
3340
3340
|
return;
|
|
3341
3341
|
}
|
|
3342
3342
|
if (this.animationId <= this.animationCommitId) {
|
|
3343
|
-
this.nodes.forEach(
|
|
3343
|
+
this.nodes.forEach(Us);
|
|
3344
3344
|
return;
|
|
3345
3345
|
}
|
|
3346
|
-
this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Hc), this.nodes.forEach(jc), this.nodes.forEach($c)) : this.nodes.forEach(
|
|
3346
|
+
this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Hc), this.nodes.forEach(jc), this.nodes.forEach($c)) : this.nodes.forEach(Us), this.clearAllSnapshots();
|
|
3347
3347
|
const a = G.now();
|
|
3348
|
-
H.delta = it(0, 1e3 / 60, a - H.timestamp), H.timestamp = a, H.isProcessing = !0,
|
|
3348
|
+
H.delta = it(0, 1e3 / 60, a - H.timestamp), H.timestamp = a, H.isProcessing = !0, Se.update.process(H), Se.preRender.process(H), Se.render.process(H), H.isProcessing = !1;
|
|
3349
3349
|
}
|
|
3350
3350
|
didUpdate() {
|
|
3351
3351
|
this.updateScheduled || (this.updateScheduled = !0, kn.read(this.scheduleUpdate));
|
|
@@ -3394,7 +3394,7 @@ function Wr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3394
3394
|
resetTransform() {
|
|
3395
3395
|
if (!i)
|
|
3396
3396
|
return;
|
|
3397
|
-
const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !
|
|
3397
|
+
const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !Nr(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
|
|
3398
3398
|
r && this.instance && (a || gt(this.latestValues) || u) && (i(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender());
|
|
3399
3399
|
}
|
|
3400
3400
|
measure(r = !0) {
|
|
@@ -3421,17 +3421,17 @@ function Wr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3421
3421
|
}
|
|
3422
3422
|
removeElementScroll(r) {
|
|
3423
3423
|
const a = j();
|
|
3424
|
-
if (
|
|
3424
|
+
if (J(a, r), this.scroll?.wasRoot)
|
|
3425
3425
|
return a;
|
|
3426
3426
|
for (let l = 0; l < this.path.length; l++) {
|
|
3427
3427
|
const c = this.path[l], { scroll: u, options: h } = c;
|
|
3428
|
-
c !== this.root && u && h.layoutScroll && (u.wasRoot &&
|
|
3428
|
+
c !== this.root && u && h.layoutScroll && (u.wasRoot && J(a, r), Vt(a.x, u.offset.x), Vt(a.y, u.offset.y));
|
|
3429
3429
|
}
|
|
3430
3430
|
return a;
|
|
3431
3431
|
}
|
|
3432
3432
|
applyTransform(r, a = !1) {
|
|
3433
3433
|
const l = j();
|
|
3434
|
-
|
|
3434
|
+
J(l, r);
|
|
3435
3435
|
for (let c = 0; c < this.path.length; c++) {
|
|
3436
3436
|
const u = this.path[c];
|
|
3437
3437
|
!a && u.options.layoutScroll && u.scroll && u !== u.root && Ct(l, {
|
|
@@ -3443,16 +3443,16 @@ function Wr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3443
3443
|
}
|
|
3444
3444
|
removeTransform(r) {
|
|
3445
3445
|
const a = j();
|
|
3446
|
-
|
|
3446
|
+
J(a, r);
|
|
3447
3447
|
for (let l = 0; l < this.path.length; l++) {
|
|
3448
3448
|
const c = this.path[l];
|
|
3449
3449
|
if (!c.instance || !gt(c.latestValues))
|
|
3450
3450
|
continue;
|
|
3451
|
-
|
|
3451
|
+
on(c.latestValues) && c.updateSnapshot();
|
|
3452
3452
|
const u = j(), h = c.measurePageBox();
|
|
3453
|
-
|
|
3453
|
+
J(u, h), Rs(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
|
|
3454
3454
|
}
|
|
3455
|
-
return gt(this.latestValues) &&
|
|
3455
|
+
return gt(this.latestValues) && Rs(a, this.latestValues), a;
|
|
3456
3456
|
}
|
|
3457
3457
|
setTargetDelta(r) {
|
|
3458
3458
|
this.targetDelta = r, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
|
|
@@ -3480,18 +3480,18 @@ function Wr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3480
3480
|
if (!this.layout || !(u || h))
|
|
3481
3481
|
return;
|
|
3482
3482
|
this.resolvedRelativeTargetAt = H.timestamp;
|
|
3483
|
-
const
|
|
3484
|
-
|
|
3483
|
+
const d = this.getClosestProjectingParent();
|
|
3484
|
+
d && this.linkedParentVersion !== d.layoutVersion && !d.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (d && d.layout ? this.createRelativeTarget(d, this.layout.layoutBox, d.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = j(), this.targetWithTransforms = j()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), bc(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : J(this.target, this.layout.layoutBox), Vr(this.target, this.targetDelta)) : J(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, d && !!d.resumingFrom == !!this.resumingFrom && !d.options.layoutScroll && d.target && this.animationProgress !== 1 ? this.createRelativeTarget(d, this.target, d.target) : this.relativeParent = this.relativeTarget = void 0));
|
|
3485
3485
|
}
|
|
3486
3486
|
getClosestProjectingParent() {
|
|
3487
|
-
if (!(!this.parent ||
|
|
3487
|
+
if (!(!this.parent || on(this.parent.latestValues) || Ar(this.parent.latestValues)))
|
|
3488
3488
|
return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
|
|
3489
3489
|
}
|
|
3490
3490
|
isProjecting() {
|
|
3491
3491
|
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
|
|
3492
3492
|
}
|
|
3493
3493
|
createRelativeTarget(r, a, l) {
|
|
3494
|
-
this.relativeParent = r, this.linkedParentVersion = r.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = j(), this.relativeTargetOrigin = j(), pe(this.relativeTargetOrigin, a, l),
|
|
3494
|
+
this.relativeParent = r, this.linkedParentVersion = r.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = j(), this.relativeTargetOrigin = j(), pe(this.relativeTargetOrigin, a, l), J(this.relativeTarget, this.relativeTargetOrigin);
|
|
3495
3495
|
}
|
|
3496
3496
|
removeRelativeTarget() {
|
|
3497
3497
|
this.relativeParent = this.relativeTarget = void 0;
|
|
@@ -3504,15 +3504,15 @@ function Wr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3504
3504
|
const { layout: c, layoutId: u } = this.options;
|
|
3505
3505
|
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(c || u))
|
|
3506
3506
|
return;
|
|
3507
|
-
|
|
3508
|
-
const h = this.treeScale.x,
|
|
3507
|
+
J(this.layoutCorrected, this.layout.layoutBox);
|
|
3508
|
+
const h = this.treeScale.x, d = this.treeScale.y;
|
|
3509
3509
|
Zl(this.layoutCorrected, this.treeScale, this.path, a), r.layout && !r.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (r.target = r.layout.layoutBox, r.targetWithTransforms = j());
|
|
3510
|
-
const { target:
|
|
3511
|
-
if (!
|
|
3510
|
+
const { target: f } = r;
|
|
3511
|
+
if (!f) {
|
|
3512
3512
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
3513
3513
|
return;
|
|
3514
3514
|
}
|
|
3515
|
-
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (
|
|
3515
|
+
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (As(this.prevProjectionDelta.x, this.projectionDelta.x), As(this.prevProjectionDelta.y, this.projectionDelta.y)), jt(this.projectionDelta, this.layoutCorrected, f, this.latestValues), (this.treeScale.x !== h || this.treeScale.y !== d || !Is(this.projectionDelta.x, this.prevProjectionDelta.x) || !Is(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", f));
|
|
3516
3516
|
}
|
|
3517
3517
|
hide() {
|
|
3518
3518
|
this.isVisible = !1;
|
|
@@ -3533,12 +3533,12 @@ function Wr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3533
3533
|
setAnimationOrigin(r, a = !1) {
|
|
3534
3534
|
const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, h = At();
|
|
3535
3535
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
|
3536
|
-
const
|
|
3536
|
+
const d = j(), f = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, y = f !== m, v = this.getStack(), g = !v || v.members.length <= 1, x = !!(y && !g && this.options.crossfade === !0 && !this.path.some(qc));
|
|
3537
3537
|
this.animationProgress = 0;
|
|
3538
|
-
let
|
|
3539
|
-
this.mixTargetDelta = (
|
|
3540
|
-
const w =
|
|
3541
|
-
|
|
3538
|
+
let p;
|
|
3539
|
+
this.mixTargetDelta = (b) => {
|
|
3540
|
+
const w = b / 1e3;
|
|
3541
|
+
zs(h.x, r.x, w), zs(h.y, r.y, w), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (pe(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Yc(this.relativeTarget, this.relativeTargetOrigin, d, w), p && Vc(this.relativeTarget, p) && (this.isProjectionDirty = !1), p || (p = j()), J(p, this.relativeTarget)), y && (this.animationValues = u, Dc(u, c, this.latestValues, w, x, g)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = w;
|
|
3542
3542
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
3543
3543
|
}
|
|
3544
3544
|
startAnimation(r) {
|
|
@@ -3570,14 +3570,14 @@ function Wr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3570
3570
|
const r = this.getLead();
|
|
3571
3571
|
let { targetWithTransforms: a, target: l, layout: c, latestValues: u } = r;
|
|
3572
3572
|
if (!(!a || !l || !c)) {
|
|
3573
|
-
if (this !== r && this.layout && c &&
|
|
3573
|
+
if (this !== r && this.layout && c && Hr(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
|
|
3574
3574
|
l = this.target || j();
|
|
3575
3575
|
const h = _(this.layout.layoutBox.x);
|
|
3576
3576
|
l.x.min = r.target.x.min, l.x.max = l.x.min + h;
|
|
3577
|
-
const
|
|
3578
|
-
l.y.min = r.target.y.min, l.y.max = l.y.min +
|
|
3577
|
+
const d = _(this.layout.layoutBox.y);
|
|
3578
|
+
l.y.min = r.target.y.min, l.y.max = l.y.min + d;
|
|
3579
3579
|
}
|
|
3580
|
-
|
|
3580
|
+
J(a, l), Ct(a, u), jt(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
|
|
3581
3581
|
}
|
|
3582
3582
|
}
|
|
3583
3583
|
registerSharedNode(r, a) {
|
|
@@ -3622,9 +3622,9 @@ function Wr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3622
3622
|
if ((l.z || l.rotate || l.rotateX || l.rotateY || l.rotateZ || l.skewX || l.skewY) && (a = !0), !a)
|
|
3623
3623
|
return;
|
|
3624
3624
|
const c = {};
|
|
3625
|
-
l.z &&
|
|
3626
|
-
for (let u = 0; u <
|
|
3627
|
-
|
|
3625
|
+
l.z && Le("z", r, c, this.animationValues);
|
|
3626
|
+
for (let u = 0; u < Re.length; u++)
|
|
3627
|
+
Le(`rotate${Re[u]}`, r, c, this.animationValues), Le(`skew${Re[u]}`, r, c, this.animationValues);
|
|
3628
3628
|
r.render();
|
|
3629
3629
|
for (const u in c)
|
|
3630
3630
|
r.setStaticValue(u, c[u]), this.animationValues && (this.animationValues[u] = c[u]);
|
|
@@ -3652,18 +3652,18 @@ function Wr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3652
3652
|
this.applyTransformsToTarget();
|
|
3653
3653
|
let h = Cc(this.projectionDeltaWithTransform, this.treeScale, u);
|
|
3654
3654
|
l && (h = l(u, h)), r.transform = h;
|
|
3655
|
-
const { x:
|
|
3656
|
-
r.transformOrigin = `${
|
|
3657
|
-
for (const
|
|
3658
|
-
if (u[
|
|
3655
|
+
const { x: d, y: f } = this.projectionDelta;
|
|
3656
|
+
r.transformOrigin = `${d.origin * 100}% ${f.origin * 100}% 0`, c.animationValues ? r.opacity = c === this ? u.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : u.opacityExit : r.opacity = c === this ? u.opacity !== void 0 ? u.opacity : "" : u.opacityExit !== void 0 ? u.opacityExit : 0;
|
|
3657
|
+
for (const m in ln) {
|
|
3658
|
+
if (u[m] === void 0)
|
|
3659
3659
|
continue;
|
|
3660
|
-
const { correct:
|
|
3660
|
+
const { correct: y, applyTo: v, isCSSVariable: g } = ln[m], x = h === "none" ? u[m] : y(u[m], c);
|
|
3661
3661
|
if (v) {
|
|
3662
|
-
const
|
|
3663
|
-
for (let
|
|
3664
|
-
r[v[
|
|
3662
|
+
const p = v.length;
|
|
3663
|
+
for (let b = 0; b < p; b++)
|
|
3664
|
+
r[v[b]] = x;
|
|
3665
3665
|
} else
|
|
3666
|
-
g ? this.options.visualElement.renderState.vars[
|
|
3666
|
+
g ? this.options.visualElement.renderState.vars[m] = x : r[m] = x;
|
|
3667
3667
|
}
|
|
3668
3668
|
this.options.layoutId && (r.pointerEvents = c === this ? oe(a?.pointerEvents) || "" : "none");
|
|
3669
3669
|
}
|
|
@@ -3672,7 +3672,7 @@ function Wr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3672
3672
|
}
|
|
3673
3673
|
// Only run on root
|
|
3674
3674
|
resetTree() {
|
|
3675
|
-
this.root.nodes.forEach((r) => r.currentAnimation?.stop()), this.root.nodes.forEach(
|
|
3675
|
+
this.root.nodes.forEach((r) => r.currentAnimation?.stop()), this.root.nodes.forEach($s), this.root.sharedNodes.clear();
|
|
3676
3676
|
}
|
|
3677
3677
|
};
|
|
3678
3678
|
}
|
|
@@ -3684,27 +3684,27 @@ function $c(t) {
|
|
|
3684
3684
|
if (t.isLead() && t.layout && e && t.hasListeners("didUpdate")) {
|
|
3685
3685
|
const { layoutBox: n, measuredBox: s } = t.layout, { animationType: i } = t.options, o = e.source !== t.layout.source;
|
|
3686
3686
|
i === "size" ? nt((u) => {
|
|
3687
|
-
const h = o ? e.measuredBox[u] : e.layoutBox[u],
|
|
3688
|
-
h.min = n[u].min, h.max = h.min +
|
|
3689
|
-
}) :
|
|
3690
|
-
const h = o ? e.measuredBox[u] : e.layoutBox[u],
|
|
3691
|
-
h.max = h.min +
|
|
3687
|
+
const h = o ? e.measuredBox[u] : e.layoutBox[u], d = _(h);
|
|
3688
|
+
h.min = n[u].min, h.max = h.min + d;
|
|
3689
|
+
}) : Hr(i, e.layoutBox, n) && nt((u) => {
|
|
3690
|
+
const h = o ? e.measuredBox[u] : e.layoutBox[u], d = _(n[u]);
|
|
3691
|
+
h.max = h.min + d, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[u].max = t.relativeTarget[u].min + d);
|
|
3692
3692
|
});
|
|
3693
3693
|
const r = At();
|
|
3694
3694
|
jt(r, n, e.layoutBox);
|
|
3695
3695
|
const a = At();
|
|
3696
3696
|
o ? jt(a, t.applyTransform(s, !0), e.measuredBox) : jt(a, n, e.layoutBox);
|
|
3697
|
-
const l = !
|
|
3697
|
+
const l = !Nr(r);
|
|
3698
3698
|
let c = !1;
|
|
3699
3699
|
if (!t.resumeFrom) {
|
|
3700
3700
|
const u = t.getClosestProjectingParent();
|
|
3701
3701
|
if (u && !u.resumeFrom) {
|
|
3702
|
-
const { snapshot: h, layout:
|
|
3703
|
-
if (h &&
|
|
3702
|
+
const { snapshot: h, layout: d } = u;
|
|
3703
|
+
if (h && d) {
|
|
3704
|
+
const f = j();
|
|
3705
|
+
pe(f, e.layoutBox, h.layoutBox);
|
|
3704
3706
|
const m = j();
|
|
3705
|
-
pe(m,
|
|
3706
|
-
const d = j();
|
|
3707
|
-
pe(d, n, f.layoutBox), Nr(m, d) || (c = !0), u.options.layoutRoot && (t.relativeTarget = d, t.relativeTargetOrigin = m, t.relativeParent = u);
|
|
3707
|
+
pe(m, n, d.layoutBox), jr(f, m) || (c = !0), u.options.layoutRoot && (t.relativeTarget = m, t.relativeTargetOrigin = f, t.relativeParent = u);
|
|
3708
3708
|
}
|
|
3709
3709
|
}
|
|
3710
3710
|
}
|
|
@@ -3731,17 +3731,17 @@ function Wc(t) {
|
|
|
3731
3731
|
function zc(t) {
|
|
3732
3732
|
t.clearSnapshot();
|
|
3733
3733
|
}
|
|
3734
|
-
function
|
|
3734
|
+
function $s(t) {
|
|
3735
3735
|
t.clearMeasurements();
|
|
3736
3736
|
}
|
|
3737
|
-
function
|
|
3737
|
+
function Us(t) {
|
|
3738
3738
|
t.isLayoutDirty = !1;
|
|
3739
3739
|
}
|
|
3740
3740
|
function Hc(t) {
|
|
3741
3741
|
const { visualElement: e } = t.options;
|
|
3742
3742
|
e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
|
|
3743
3743
|
}
|
|
3744
|
-
function
|
|
3744
|
+
function Ws(t) {
|
|
3745
3745
|
t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
|
|
3746
3746
|
}
|
|
3747
3747
|
function Kc(t) {
|
|
@@ -3756,14 +3756,14 @@ function _c(t) {
|
|
|
3756
3756
|
function Xc(t) {
|
|
3757
3757
|
t.removeLeadSnapshot();
|
|
3758
3758
|
}
|
|
3759
|
-
function
|
|
3759
|
+
function zs(t, e, n) {
|
|
3760
3760
|
t.translate = B(e.translate, 0, n), t.scale = B(e.scale, 1, n), t.origin = e.origin, t.originPoint = e.originPoint;
|
|
3761
3761
|
}
|
|
3762
|
-
function
|
|
3762
|
+
function Hs(t, e, n, s) {
|
|
3763
3763
|
t.min = B(e.min, n.min, s), t.max = B(e.max, n.max, s);
|
|
3764
3764
|
}
|
|
3765
3765
|
function Yc(t, e, n, s) {
|
|
3766
|
-
|
|
3766
|
+
Hs(t.x, e.x, n.x, s), Hs(t.y, e.y, n.y, s);
|
|
3767
3767
|
}
|
|
3768
3768
|
function qc(t) {
|
|
3769
3769
|
return t.animationValues && t.animationValues.opacityExit !== void 0;
|
|
@@ -3771,39 +3771,39 @@ function qc(t) {
|
|
|
3771
3771
|
const Zc = {
|
|
3772
3772
|
duration: 0.45,
|
|
3773
3773
|
ease: [0.4, 0, 0.1, 1]
|
|
3774
|
-
},
|
|
3775
|
-
function
|
|
3776
|
-
t.min =
|
|
3774
|
+
}, Ks = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Gs = Ks("applewebkit/") && !Ks("chrome/") ? Math.round : q;
|
|
3775
|
+
function _s(t) {
|
|
3776
|
+
t.min = Gs(t.min), t.max = Gs(t.max);
|
|
3777
3777
|
}
|
|
3778
3778
|
function Qc(t) {
|
|
3779
|
-
|
|
3779
|
+
_s(t.x), _s(t.y);
|
|
3780
3780
|
}
|
|
3781
|
-
function
|
|
3782
|
-
return t === "position" || t === "preserve-aspect" && !wc(
|
|
3781
|
+
function Hr(t, e, n) {
|
|
3782
|
+
return t === "position" || t === "preserve-aspect" && !wc(Fs(e), Fs(n), 0.2);
|
|
3783
3783
|
}
|
|
3784
3784
|
function Jc(t) {
|
|
3785
3785
|
return t !== t.root && t.scroll?.wasRoot;
|
|
3786
3786
|
}
|
|
3787
|
-
const tu =
|
|
3787
|
+
const tu = zr({
|
|
3788
3788
|
attachResizeListener: (t, e) => Gt(t, "resize", e),
|
|
3789
3789
|
measureScroll: () => ({
|
|
3790
3790
|
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
|
|
3791
3791
|
y: document.documentElement.scrollTop || document.body?.scrollTop || 0
|
|
3792
3792
|
}),
|
|
3793
3793
|
checkIsScrollRoot: () => !0
|
|
3794
|
-
}),
|
|
3794
|
+
}), ke = {
|
|
3795
3795
|
current: void 0
|
|
3796
|
-
},
|
|
3796
|
+
}, Kr = zr({
|
|
3797
3797
|
measureScroll: (t) => ({
|
|
3798
3798
|
x: t.scrollLeft,
|
|
3799
3799
|
y: t.scrollTop
|
|
3800
3800
|
}),
|
|
3801
3801
|
defaultParent: () => {
|
|
3802
|
-
if (!
|
|
3802
|
+
if (!ke.current) {
|
|
3803
3803
|
const t = new tu({});
|
|
3804
|
-
t.mount(window), t.setOptions({ layoutScroll: !0 }),
|
|
3804
|
+
t.mount(window), t.setOptions({ layoutScroll: !0 }), ke.current = t;
|
|
3805
3805
|
}
|
|
3806
|
-
return
|
|
3806
|
+
return ke.current;
|
|
3807
3807
|
},
|
|
3808
3808
|
resetTransform: (t, e) => {
|
|
3809
3809
|
t.style.transform = e !== void 0 ? e : "none";
|
|
@@ -3815,10 +3815,10 @@ const tu = Wr({
|
|
|
3815
3815
|
reducedMotion: "never"
|
|
3816
3816
|
});
|
|
3817
3817
|
function eu(t = !0) {
|
|
3818
|
-
const e =
|
|
3818
|
+
const e = $(fn);
|
|
3819
3819
|
if (e === null)
|
|
3820
3820
|
return [!0, null];
|
|
3821
|
-
const { isPresent: n, onExitComplete: s, register: i } = e, o =
|
|
3821
|
+
const { isPresent: n, onExitComplete: s, register: i } = e, o = ve();
|
|
3822
3822
|
X(() => {
|
|
3823
3823
|
if (t)
|
|
3824
3824
|
return i(o);
|
|
@@ -3826,7 +3826,7 @@ function eu(t = !0) {
|
|
|
3826
3826
|
const r = Et(() => t && s && s(o), [o, s, t]);
|
|
3827
3827
|
return !n && s ? [!1, r] : [!0];
|
|
3828
3828
|
}
|
|
3829
|
-
const
|
|
3829
|
+
const Gr = ct({ strict: !1 }), Xs = {
|
|
3830
3830
|
animation: [
|
|
3831
3831
|
"animate",
|
|
3832
3832
|
"variants",
|
|
@@ -3846,28 +3846,28 @@ const Kr = ct({ strict: !1 }), _s = {
|
|
|
3846
3846
|
inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
|
|
3847
3847
|
layout: ["layout", "layoutId"]
|
|
3848
3848
|
};
|
|
3849
|
-
let
|
|
3849
|
+
let Ys = !1;
|
|
3850
3850
|
function nu() {
|
|
3851
|
-
if (
|
|
3851
|
+
if (Ys)
|
|
3852
3852
|
return;
|
|
3853
3853
|
const t = {};
|
|
3854
|
-
for (const e in
|
|
3854
|
+
for (const e in Xs)
|
|
3855
3855
|
t[e] = {
|
|
3856
|
-
isEnabled: (n) =>
|
|
3856
|
+
isEnabled: (n) => Xs[e].some((s) => !!n[s])
|
|
3857
3857
|
};
|
|
3858
|
-
|
|
3858
|
+
br(t), Ys = !0;
|
|
3859
3859
|
}
|
|
3860
|
-
function
|
|
3860
|
+
function _r() {
|
|
3861
3861
|
return nu(), _l();
|
|
3862
3862
|
}
|
|
3863
3863
|
function su(t) {
|
|
3864
|
-
const e =
|
|
3864
|
+
const e = _r();
|
|
3865
3865
|
for (const n in t)
|
|
3866
3866
|
e[n] = {
|
|
3867
3867
|
...e[n],
|
|
3868
3868
|
...t[n]
|
|
3869
3869
|
};
|
|
3870
|
-
|
|
3870
|
+
br(e);
|
|
3871
3871
|
}
|
|
3872
3872
|
const iu = /* @__PURE__ */ new Set([
|
|
3873
3873
|
"animate",
|
|
@@ -3905,9 +3905,9 @@ const iu = /* @__PURE__ */ new Set([
|
|
|
3905
3905
|
function ge(t) {
|
|
3906
3906
|
return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || iu.has(t);
|
|
3907
3907
|
}
|
|
3908
|
-
let
|
|
3908
|
+
let Xr = (t) => !ge(t);
|
|
3909
3909
|
function ru(t) {
|
|
3910
|
-
typeof t == "function" && (
|
|
3910
|
+
typeof t == "function" && (Xr = (e) => e.startsWith("on") ? !ge(e) : t(e));
|
|
3911
3911
|
}
|
|
3912
3912
|
try {
|
|
3913
3913
|
ru(require("@emotion/is-prop-valid").default);
|
|
@@ -3916,13 +3916,13 @@ try {
|
|
|
3916
3916
|
function ou(t, e, n) {
|
|
3917
3917
|
const s = {};
|
|
3918
3918
|
for (const i in t)
|
|
3919
|
-
i === "values" && typeof t.values == "object" || (
|
|
3919
|
+
i === "values" && typeof t.values == "object" || (Xr(i) || n === !0 && ge(i) || !e && !ge(i) || // If trying to use native HTML drag events, forward drag listeners
|
|
3920
3920
|
t.draggable && i.startsWith("onDrag")) && (s[i] = t[i]);
|
|
3921
3921
|
return s;
|
|
3922
3922
|
}
|
|
3923
|
-
const
|
|
3923
|
+
const be = /* @__PURE__ */ ct({});
|
|
3924
3924
|
function au(t, e) {
|
|
3925
|
-
if (
|
|
3925
|
+
if (we(t)) {
|
|
3926
3926
|
const { initial: n, animate: s } = t;
|
|
3927
3927
|
return {
|
|
3928
3928
|
initial: n === !1 || Kt(n) ? n : void 0,
|
|
@@ -3932,10 +3932,10 @@ function au(t, e) {
|
|
|
3932
3932
|
return t.inherit !== !1 ? e : {};
|
|
3933
3933
|
}
|
|
3934
3934
|
function lu(t) {
|
|
3935
|
-
const { initial: e, animate: n } = au(t,
|
|
3936
|
-
return
|
|
3935
|
+
const { initial: e, animate: n } = au(t, $(be));
|
|
3936
|
+
return Q(() => ({ initial: e, animate: n }), [qs(e), qs(n)]);
|
|
3937
3937
|
}
|
|
3938
|
-
function
|
|
3938
|
+
function qs(t) {
|
|
3939
3939
|
return Array.isArray(t) ? t.join(" ") : t;
|
|
3940
3940
|
}
|
|
3941
3941
|
const Un = () => ({
|
|
@@ -3944,43 +3944,43 @@ const Un = () => ({
|
|
|
3944
3944
|
transformOrigin: {},
|
|
3945
3945
|
vars: {}
|
|
3946
3946
|
});
|
|
3947
|
-
function
|
|
3947
|
+
function Yr(t, e, n) {
|
|
3948
3948
|
for (const s in e)
|
|
3949
|
-
!W(e[s]) && !
|
|
3949
|
+
!W(e[s]) && !Dr(s, n) && (t[s] = e[s]);
|
|
3950
3950
|
}
|
|
3951
3951
|
function cu({ transformTemplate: t }, e) {
|
|
3952
|
-
return
|
|
3952
|
+
return Q(() => {
|
|
3953
3953
|
const n = Un();
|
|
3954
3954
|
return Nn(n, e, t), Object.assign({}, n.vars, n.style);
|
|
3955
3955
|
}, [e]);
|
|
3956
3956
|
}
|
|
3957
3957
|
function uu(t, e) {
|
|
3958
3958
|
const n = t.style || {}, s = {};
|
|
3959
|
-
return
|
|
3959
|
+
return Yr(s, n, t), Object.assign(s, cu(t, e)), s;
|
|
3960
3960
|
}
|
|
3961
3961
|
function hu(t, e) {
|
|
3962
3962
|
const n = {}, s = uu(t, e);
|
|
3963
3963
|
return t.drag && t.dragListener !== !1 && (n.draggable = !1, s.userSelect = s.WebkitUserSelect = s.WebkitTouchCallout = "none", s.touchAction = t.drag === !0 ? "none" : `pan-${t.drag === "x" ? "y" : "x"}`), t.tabIndex === void 0 && (t.onTap || t.onTapStart || t.whileTap) && (n.tabIndex = 0), n.style = s, n;
|
|
3964
3964
|
}
|
|
3965
|
-
const
|
|
3965
|
+
const qr = () => ({
|
|
3966
3966
|
...Un(),
|
|
3967
3967
|
attrs: {}
|
|
3968
3968
|
});
|
|
3969
|
-
function
|
|
3970
|
-
const i =
|
|
3971
|
-
const o =
|
|
3972
|
-
return
|
|
3969
|
+
function du(t, e, n, s) {
|
|
3970
|
+
const i = Q(() => {
|
|
3971
|
+
const o = qr();
|
|
3972
|
+
return Er(o, e, Lr(s), t.transformTemplate, t.style), {
|
|
3973
3973
|
...o.attrs,
|
|
3974
3974
|
style: { ...o.style }
|
|
3975
3975
|
};
|
|
3976
3976
|
}, [e]);
|
|
3977
3977
|
if (t.style) {
|
|
3978
3978
|
const o = {};
|
|
3979
|
-
|
|
3979
|
+
Yr(o, t.style, t), i.style = { ...o, ...i.style };
|
|
3980
3980
|
}
|
|
3981
3981
|
return i;
|
|
3982
3982
|
}
|
|
3983
|
-
const
|
|
3983
|
+
const fu = [
|
|
3984
3984
|
"animate",
|
|
3985
3985
|
"circle",
|
|
3986
3986
|
"defs",
|
|
@@ -4020,7 +4020,7 @@ function Wn(t) {
|
|
|
4020
4020
|
/**
|
|
4021
4021
|
* If it's in our list of lowercase SVG tags, it's an SVG component
|
|
4022
4022
|
*/
|
|
4023
|
-
!!(
|
|
4023
|
+
!!(fu.indexOf(t) > -1 || /**
|
|
4024
4024
|
* If it contains a capital letter, it's an SVG component
|
|
4025
4025
|
*/
|
|
4026
4026
|
/[A-Z]/u.test(t))
|
|
@@ -4028,10 +4028,10 @@ function Wn(t) {
|
|
|
4028
4028
|
);
|
|
4029
4029
|
}
|
|
4030
4030
|
function mu(t, e, n, { latestValues: s }, i, o = !1, r) {
|
|
4031
|
-
const l = (r ?? Wn(t) ?
|
|
4031
|
+
const l = (r ?? Wn(t) ? du : hu)(e, s, i, t), c = ou(e, typeof t == "string", o), u = t !== fi ? { ...c, ...l, ref: n } : {}, { children: h } = e, d = Q(() => W(h) ? h.get() : h, [h]);
|
|
4032
4032
|
return vo(t, {
|
|
4033
4033
|
...u,
|
|
4034
|
-
children:
|
|
4034
|
+
children: d
|
|
4035
4035
|
});
|
|
4036
4036
|
}
|
|
4037
4037
|
function pu({ scrapeMotionValuesFromProps: t, createRenderState: e }, n, s, i) {
|
|
@@ -4042,48 +4042,48 @@ function pu({ scrapeMotionValuesFromProps: t, createRenderState: e }, n, s, i) {
|
|
|
4042
4042
|
}
|
|
4043
4043
|
function gu(t, e, n, s) {
|
|
4044
4044
|
const i = {}, o = s(t, {});
|
|
4045
|
-
for (const
|
|
4046
|
-
i[
|
|
4045
|
+
for (const d in o)
|
|
4046
|
+
i[d] = oe(o[d]);
|
|
4047
4047
|
let { initial: r, animate: a } = t;
|
|
4048
|
-
const l =
|
|
4048
|
+
const l = we(t), c = Tr(t);
|
|
4049
4049
|
e && c && !l && t.inherit !== !1 && (r === void 0 && (r = e.initial), a === void 0 && (a = e.animate));
|
|
4050
4050
|
let u = n ? n.initial === !1 : !1;
|
|
4051
4051
|
u = u || r === !1;
|
|
4052
4052
|
const h = u ? a : r;
|
|
4053
|
-
if (h && typeof h != "boolean" && !
|
|
4054
|
-
const
|
|
4055
|
-
for (let
|
|
4056
|
-
const
|
|
4057
|
-
if (
|
|
4058
|
-
const { transitionEnd:
|
|
4053
|
+
if (h && typeof h != "boolean" && !Te(h)) {
|
|
4054
|
+
const d = Array.isArray(h) ? h : [h];
|
|
4055
|
+
for (let f = 0; f < d.length; f++) {
|
|
4056
|
+
const m = En(t, d[f]);
|
|
4057
|
+
if (m) {
|
|
4058
|
+
const { transitionEnd: y, transition: v, ...g } = m;
|
|
4059
4059
|
for (const x in g) {
|
|
4060
|
-
let
|
|
4061
|
-
if (Array.isArray(
|
|
4062
|
-
const
|
|
4063
|
-
|
|
4060
|
+
let p = g[x];
|
|
4061
|
+
if (Array.isArray(p)) {
|
|
4062
|
+
const b = u ? p.length - 1 : 0;
|
|
4063
|
+
p = p[b];
|
|
4064
4064
|
}
|
|
4065
|
-
|
|
4065
|
+
p !== null && (i[x] = p);
|
|
4066
4066
|
}
|
|
4067
|
-
for (const x in
|
|
4068
|
-
i[x] =
|
|
4067
|
+
for (const x in y)
|
|
4068
|
+
i[x] = y[x];
|
|
4069
4069
|
}
|
|
4070
4070
|
}
|
|
4071
4071
|
}
|
|
4072
4072
|
return i;
|
|
4073
4073
|
}
|
|
4074
|
-
const
|
|
4075
|
-
const s =
|
|
4074
|
+
const Zr = (t) => (e, n) => {
|
|
4075
|
+
const s = $(be), i = $(fn), o = () => pu(t, e, s, i);
|
|
4076
4076
|
return n ? o() : Ut(o);
|
|
4077
|
-
}, yu = /* @__PURE__ */
|
|
4077
|
+
}, yu = /* @__PURE__ */ Zr({
|
|
4078
4078
|
scrapeMotionValuesFromProps: jn,
|
|
4079
4079
|
createRenderState: Un
|
|
4080
|
-
}), vu = /* @__PURE__ */
|
|
4081
|
-
scrapeMotionValuesFromProps:
|
|
4082
|
-
createRenderState:
|
|
4080
|
+
}), vu = /* @__PURE__ */ Zr({
|
|
4081
|
+
scrapeMotionValuesFromProps: kr,
|
|
4082
|
+
createRenderState: qr
|
|
4083
4083
|
}), xu = Symbol.for("motionComponentSymbol");
|
|
4084
4084
|
function Tu(t, e, n) {
|
|
4085
4085
|
const s = F(n);
|
|
4086
|
-
|
|
4086
|
+
mi(() => {
|
|
4087
4087
|
s.current = n;
|
|
4088
4088
|
});
|
|
4089
4089
|
const i = F(null);
|
|
@@ -4098,13 +4098,13 @@ function Tu(t, e, n) {
|
|
|
4098
4098
|
else r && (r.current = o);
|
|
4099
4099
|
}, [e]);
|
|
4100
4100
|
}
|
|
4101
|
-
const
|
|
4101
|
+
const Qr = ct({});
|
|
4102
4102
|
function wt(t) {
|
|
4103
4103
|
return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
|
|
4104
4104
|
}
|
|
4105
4105
|
function wu(t, e, n, s, i, o) {
|
|
4106
|
-
const { visualElement: r } =
|
|
4107
|
-
s = s || a.renderer, !
|
|
4106
|
+
const { visualElement: r } = $(be), a = $(Gr), l = $(fn), c = $($n), u = c.reducedMotion, h = c.skipAnimations, d = F(null), f = F(!1);
|
|
4107
|
+
s = s || a.renderer, !d.current && s && (d.current = s(t, {
|
|
4108
4108
|
visualState: e,
|
|
4109
4109
|
parent: r,
|
|
4110
4110
|
props: n,
|
|
@@ -4113,25 +4113,25 @@ function wu(t, e, n, s, i, o) {
|
|
|
4113
4113
|
reducedMotionConfig: u,
|
|
4114
4114
|
skipAnimations: h,
|
|
4115
4115
|
isSVG: o
|
|
4116
|
-
}),
|
|
4117
|
-
const
|
|
4118
|
-
|
|
4116
|
+
}), f.current && d.current && (d.current.manuallyAnimateOnMount = !0));
|
|
4117
|
+
const m = d.current, y = $(Qr);
|
|
4118
|
+
m && !m.projection && i && (m.type === "html" || m.type === "svg") && bu(d.current, n, i, y);
|
|
4119
4119
|
const v = F(!1);
|
|
4120
|
-
|
|
4121
|
-
|
|
4120
|
+
mi(() => {
|
|
4121
|
+
m && v.current && m.update(n, l);
|
|
4122
4122
|
});
|
|
4123
|
-
const g = n[
|
|
4124
|
-
return
|
|
4125
|
-
|
|
4123
|
+
const g = n[ar], x = F(!!g && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
|
|
4124
|
+
return xi(() => {
|
|
4125
|
+
f.current = !0, m && (v.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), x.current && m.animationState && m.animationState.animateChanges());
|
|
4126
4126
|
}), X(() => {
|
|
4127
|
-
|
|
4127
|
+
m && (!x.current && m.animationState && m.animationState.animateChanges(), x.current && (queueMicrotask(() => {
|
|
4128
4128
|
window.MotionHandoffMarkAsComplete?.(g);
|
|
4129
|
-
}), x.current = !1),
|
|
4130
|
-
}),
|
|
4129
|
+
}), x.current = !1), m.enteringChildren = void 0);
|
|
4130
|
+
}), m;
|
|
4131
4131
|
}
|
|
4132
4132
|
function bu(t, e, n, s) {
|
|
4133
4133
|
const { layoutId: i, layout: o, drag: r, dragConstraints: a, layoutScroll: l, layoutRoot: c, layoutCrossfade: u } = e;
|
|
4134
|
-
t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 :
|
|
4134
|
+
t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : Jr(t.parent)), t.projection.setOptions({
|
|
4135
4135
|
layoutId: i,
|
|
4136
4136
|
layout: o,
|
|
4137
4137
|
alwaysMeasureLayout: !!r || a && wt(a),
|
|
@@ -4150,44 +4150,44 @@ function bu(t, e, n, s) {
|
|
|
4150
4150
|
layoutRoot: c
|
|
4151
4151
|
});
|
|
4152
4152
|
}
|
|
4153
|
-
function
|
|
4153
|
+
function Jr(t) {
|
|
4154
4154
|
if (t)
|
|
4155
|
-
return t.options.allowProjection !== !1 ? t.projection :
|
|
4155
|
+
return t.options.allowProjection !== !1 ? t.projection : Jr(t.parent);
|
|
4156
4156
|
}
|
|
4157
|
-
function
|
|
4157
|
+
function Be(t, { forwardMotionProps: e = !1, type: n } = {}, s, i) {
|
|
4158
4158
|
s && su(s);
|
|
4159
4159
|
const o = n ? n === "svg" : Wn(t), r = o ? vu : yu;
|
|
4160
4160
|
function a(c, u) {
|
|
4161
4161
|
let h;
|
|
4162
|
-
const
|
|
4163
|
-
|
|
4162
|
+
const d = {
|
|
4163
|
+
...$($n),
|
|
4164
4164
|
...c,
|
|
4165
4165
|
layoutId: Su(c)
|
|
4166
|
-
}, { isStatic:
|
|
4167
|
-
if (!
|
|
4168
|
-
Pu(
|
|
4169
|
-
const v = Au(
|
|
4170
|
-
h = v.MeasureLayout,
|
|
4166
|
+
}, { isStatic: f } = d, m = lu(c), y = r(c, f);
|
|
4167
|
+
if (!f && vi) {
|
|
4168
|
+
Pu(d, s);
|
|
4169
|
+
const v = Au(d);
|
|
4170
|
+
h = v.MeasureLayout, m.visualElement = wu(t, y, d, i, v.ProjectionNode, o);
|
|
4171
4171
|
}
|
|
4172
|
-
return Dt(
|
|
4172
|
+
return Dt(be.Provider, { value: m, children: [h && m.visualElement ? E(h, { visualElement: m.visualElement, ...d }) : null, mu(t, c, Tu(y, m.visualElement, u), y, f, e, o)] });
|
|
4173
4173
|
}
|
|
4174
4174
|
a.displayName = `motion.${typeof t == "string" ? t : `create(${t.displayName ?? t.name ?? ""})`}`;
|
|
4175
|
-
const l =
|
|
4175
|
+
const l = xe(a);
|
|
4176
4176
|
return l[xu] = t, l;
|
|
4177
4177
|
}
|
|
4178
4178
|
function Su({ layoutId: t }) {
|
|
4179
|
-
const e =
|
|
4179
|
+
const e = $(yi).id;
|
|
4180
4180
|
return e && t !== void 0 ? e + "-" + t : t;
|
|
4181
4181
|
}
|
|
4182
4182
|
function Pu(t, e) {
|
|
4183
|
-
const n =
|
|
4183
|
+
const n = $(Gr).strict;
|
|
4184
4184
|
if (process.env.NODE_ENV !== "production" && e && n) {
|
|
4185
4185
|
const s = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
4186
4186
|
t.ignoreStrict ? Rt(!1, s, "lazy-strict-mode") : ot(!1, s, "lazy-strict-mode");
|
|
4187
4187
|
}
|
|
4188
4188
|
}
|
|
4189
4189
|
function Au(t) {
|
|
4190
|
-
const e =
|
|
4190
|
+
const e = _r(), { drag: n, layout: s } = e;
|
|
4191
4191
|
if (!n && !s)
|
|
4192
4192
|
return {};
|
|
4193
4193
|
const i = { ...n, ...s };
|
|
@@ -4198,21 +4198,21 @@ function Au(t) {
|
|
|
4198
4198
|
}
|
|
4199
4199
|
function Vu(t, e) {
|
|
4200
4200
|
if (typeof Proxy > "u")
|
|
4201
|
-
return
|
|
4202
|
-
const n = /* @__PURE__ */ new Map(), s = (o, r) =>
|
|
4201
|
+
return Be;
|
|
4202
|
+
const n = /* @__PURE__ */ new Map(), s = (o, r) => Be(o, r, t, e), i = (o, r) => (process.env.NODE_ENV !== "production" && gn(!1, "motion() is deprecated. Use motion.create() instead."), s(o, r));
|
|
4203
4203
|
return new Proxy(i, {
|
|
4204
4204
|
/**
|
|
4205
4205
|
* Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.
|
|
4206
4206
|
* The prop name is passed through as `key` and we can use that to generate a `motion`
|
|
4207
4207
|
* DOM component with that name.
|
|
4208
4208
|
*/
|
|
4209
|
-
get: (o, r) => r === "create" ? s : (n.has(r) || n.set(r,
|
|
4209
|
+
get: (o, r) => r === "create" ? s : (n.has(r) || n.set(r, Be(r, void 0, t, e)), n.get(r))
|
|
4210
4210
|
});
|
|
4211
4211
|
}
|
|
4212
4212
|
const Cu = (t, e) => e.isSVG ?? Wn(t) ? new uc(e) : new ic(e, {
|
|
4213
4213
|
allowProjection: t !== fi
|
|
4214
4214
|
});
|
|
4215
|
-
class Mu extends
|
|
4215
|
+
class Mu extends ft {
|
|
4216
4216
|
/**
|
|
4217
4217
|
* We dynamically generate the AnimationState manager as it contains a reference
|
|
4218
4218
|
* to the underlying animation library. We only want to load that if we load this,
|
|
@@ -4223,7 +4223,7 @@ class Mu extends dt {
|
|
|
4223
4223
|
}
|
|
4224
4224
|
updateAnimationControlsSubscription() {
|
|
4225
4225
|
const { animate: e } = this.node.getProps();
|
|
4226
|
-
|
|
4226
|
+
Te(e) && (this.unmountControls = e.subscribe(this.node));
|
|
4227
4227
|
}
|
|
4228
4228
|
/**
|
|
4229
4229
|
* Subscribe any provided AnimationControls to the component's VisualElement
|
|
@@ -4240,7 +4240,7 @@ class Mu extends dt {
|
|
|
4240
4240
|
}
|
|
4241
4241
|
}
|
|
4242
4242
|
let Du = 0;
|
|
4243
|
-
class Eu extends
|
|
4243
|
+
class Eu extends ft {
|
|
4244
4244
|
constructor() {
|
|
4245
4245
|
super(...arguments), this.id = Du++;
|
|
4246
4246
|
}
|
|
@@ -4282,44 +4282,44 @@ const Lu = (t) => (e) => Bn(e) && t(e, qt(e));
|
|
|
4282
4282
|
function $t(t, e, n, s) {
|
|
4283
4283
|
return Gt(t, e, Lu(n), s);
|
|
4284
4284
|
}
|
|
4285
|
-
const
|
|
4285
|
+
const to = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Zs = (t, e) => Math.abs(t - e);
|
|
4286
4286
|
function ku(t, e) {
|
|
4287
|
-
const n =
|
|
4287
|
+
const n = Zs(t.x, e.x), s = Zs(t.y, e.y);
|
|
4288
4288
|
return Math.sqrt(n ** 2 + s ** 2);
|
|
4289
4289
|
}
|
|
4290
|
-
const
|
|
4291
|
-
class
|
|
4290
|
+
const Qs = /* @__PURE__ */ new Set(["auto", "scroll"]);
|
|
4291
|
+
class eo {
|
|
4292
4292
|
constructor(e, n, { transformPagePoint: s, contextWindow: i = window, dragSnapToOrigin: o = !1, distanceThreshold: r = 3, element: a } = {}) {
|
|
4293
|
-
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.removeScrollListeners = null, this.onElementScroll = (
|
|
4294
|
-
this.handleScroll(
|
|
4293
|
+
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.removeScrollListeners = null, this.onElementScroll = (f) => {
|
|
4294
|
+
this.handleScroll(f.target);
|
|
4295
4295
|
}, this.onWindowScroll = () => {
|
|
4296
4296
|
this.handleScroll(window);
|
|
4297
4297
|
}, this.updatePoint = () => {
|
|
4298
4298
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
4299
4299
|
return;
|
|
4300
|
-
const
|
|
4301
|
-
if (!
|
|
4300
|
+
const f = Ie(this.lastMoveEventInfo, this.history), m = this.startEvent !== null, y = ku(f.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
|
|
4301
|
+
if (!m && !y)
|
|
4302
4302
|
return;
|
|
4303
|
-
const { point: v } =
|
|
4303
|
+
const { point: v } = f, { timestamp: g } = H;
|
|
4304
4304
|
this.history.push({ ...v, timestamp: g });
|
|
4305
|
-
const { onStart: x, onMove:
|
|
4306
|
-
|
|
4307
|
-
}, this.handlePointerMove = (
|
|
4308
|
-
this.lastMoveEvent =
|
|
4309
|
-
}, this.handlePointerUp = (
|
|
4305
|
+
const { onStart: x, onMove: p } = this.handlers;
|
|
4306
|
+
m || (x && x(this.lastMoveEvent, f), this.startEvent = this.lastMoveEvent), p && p(this.lastMoveEvent, f);
|
|
4307
|
+
}, this.handlePointerMove = (f, m) => {
|
|
4308
|
+
this.lastMoveEvent = f, this.lastMoveEventInfo = Fe(m, this.transformPagePoint), L.update(this.updatePoint, !0);
|
|
4309
|
+
}, this.handlePointerUp = (f, m) => {
|
|
4310
4310
|
this.end();
|
|
4311
|
-
const { onEnd:
|
|
4311
|
+
const { onEnd: y, onSessionEnd: v, resumeAnimation: g } = this.handlers;
|
|
4312
4312
|
if ((this.dragSnapToOrigin || !this.startEvent) && g && g(), !(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
4313
4313
|
return;
|
|
4314
|
-
const x =
|
|
4315
|
-
this.startEvent &&
|
|
4314
|
+
const x = Ie(f.type === "pointercancel" ? this.lastMoveEventInfo : Fe(m, this.transformPagePoint), this.history);
|
|
4315
|
+
this.startEvent && y && y(f, x), v && v(f, x);
|
|
4316
4316
|
}, !Bn(e))
|
|
4317
4317
|
return;
|
|
4318
4318
|
this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = s, this.distanceThreshold = r, this.contextWindow = i || window;
|
|
4319
|
-
const l = qt(e), c =
|
|
4319
|
+
const l = qt(e), c = Fe(l, this.transformPagePoint), { point: u } = c, { timestamp: h } = H;
|
|
4320
4320
|
this.history = [{ ...u, timestamp: h }];
|
|
4321
|
-
const { onSessionStart:
|
|
4322
|
-
|
|
4321
|
+
const { onSessionStart: d } = n;
|
|
4322
|
+
d && d(e, Ie(c, this.history)), this.removeListeners = _t($t(this.contextWindow, "pointermove", this.handlePointerMove), $t(this.contextWindow, "pointerup", this.handlePointerUp), $t(this.contextWindow, "pointercancel", this.handlePointerUp)), a && this.startScrollTracking(a);
|
|
4323
4323
|
}
|
|
4324
4324
|
/**
|
|
4325
4325
|
* Start tracking scroll on ancestors and window.
|
|
@@ -4328,7 +4328,7 @@ class to {
|
|
|
4328
4328
|
let n = e.parentElement;
|
|
4329
4329
|
for (; n; ) {
|
|
4330
4330
|
const s = getComputedStyle(n);
|
|
4331
|
-
(
|
|
4331
|
+
(Qs.has(s.overflowX) || Qs.has(s.overflowY)) && this.scrollPositions.set(n, {
|
|
4332
4332
|
x: n.scrollLeft,
|
|
4333
4333
|
y: n.scrollTop
|
|
4334
4334
|
}), n = n.parentElement;
|
|
@@ -4370,31 +4370,31 @@ class to {
|
|
|
4370
4370
|
this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), lt(this.updatePoint);
|
|
4371
4371
|
}
|
|
4372
4372
|
}
|
|
4373
|
-
function
|
|
4373
|
+
function Fe(t, e) {
|
|
4374
4374
|
return e ? { point: e(t.point) } : t;
|
|
4375
4375
|
}
|
|
4376
|
-
function
|
|
4376
|
+
function Js(t, e) {
|
|
4377
4377
|
return { x: t.x - e.x, y: t.y - e.y };
|
|
4378
4378
|
}
|
|
4379
|
-
function
|
|
4379
|
+
function Ie({ point: t }, e) {
|
|
4380
4380
|
return {
|
|
4381
4381
|
point: t,
|
|
4382
|
-
delta:
|
|
4383
|
-
offset:
|
|
4382
|
+
delta: Js(t, no(e)),
|
|
4383
|
+
offset: Js(t, Bu(e)),
|
|
4384
4384
|
velocity: Fu(e, 0.1)
|
|
4385
4385
|
};
|
|
4386
4386
|
}
|
|
4387
4387
|
function Bu(t) {
|
|
4388
4388
|
return t[0];
|
|
4389
4389
|
}
|
|
4390
|
-
function
|
|
4390
|
+
function no(t) {
|
|
4391
4391
|
return t[t.length - 1];
|
|
4392
4392
|
}
|
|
4393
4393
|
function Fu(t, e) {
|
|
4394
4394
|
if (t.length < 2)
|
|
4395
4395
|
return { x: 0, y: 0 };
|
|
4396
4396
|
let n = t.length - 1, s = null;
|
|
4397
|
-
const i =
|
|
4397
|
+
const i = no(t);
|
|
4398
4398
|
for (; n >= 0 && (s = t[n], !(i.timestamp - s.timestamp > /* @__PURE__ */ Z(e))); )
|
|
4399
4399
|
n--;
|
|
4400
4400
|
if (!s)
|
|
@@ -4412,7 +4412,7 @@ function Fu(t, e) {
|
|
|
4412
4412
|
function Iu(t, { min: e, max: n }, s) {
|
|
4413
4413
|
return e !== void 0 && t < e ? t = s ? B(e, t, s.min) : Math.max(t, e) : n !== void 0 && t > n && (t = s ? B(n, t, s.max) : Math.min(t, n)), t;
|
|
4414
4414
|
}
|
|
4415
|
-
function
|
|
4415
|
+
function ti(t, e, n) {
|
|
4416
4416
|
return {
|
|
4417
4417
|
min: e !== void 0 ? t.min + e : void 0,
|
|
4418
4418
|
max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
|
|
@@ -4420,18 +4420,18 @@ function Js(t, e, n) {
|
|
|
4420
4420
|
}
|
|
4421
4421
|
function Ou(t, { top: e, left: n, bottom: s, right: i }) {
|
|
4422
4422
|
return {
|
|
4423
|
-
x:
|
|
4424
|
-
y:
|
|
4423
|
+
x: ti(t.x, n, i),
|
|
4424
|
+
y: ti(t.y, e, s)
|
|
4425
4425
|
};
|
|
4426
4426
|
}
|
|
4427
|
-
function
|
|
4427
|
+
function ei(t, e) {
|
|
4428
4428
|
let n = e.min - t.min, s = e.max - t.max;
|
|
4429
4429
|
return e.max - e.min < t.max - t.min && ([n, s] = [s, n]), { min: n, max: s };
|
|
4430
4430
|
}
|
|
4431
4431
|
function Nu(t, e) {
|
|
4432
4432
|
return {
|
|
4433
|
-
x:
|
|
4434
|
-
y:
|
|
4433
|
+
x: ei(t.x, e.x),
|
|
4434
|
+
y: ei(t.y, e.y)
|
|
4435
4435
|
};
|
|
4436
4436
|
}
|
|
4437
4437
|
function ju(t, e) {
|
|
@@ -4443,20 +4443,20 @@ function $u(t, e) {
|
|
|
4443
4443
|
const n = {};
|
|
4444
4444
|
return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
|
|
4445
4445
|
}
|
|
4446
|
-
const
|
|
4447
|
-
function Uu(t =
|
|
4448
|
-
return t === !1 ? t = 0 : t === !0 && (t =
|
|
4449
|
-
x:
|
|
4450
|
-
y:
|
|
4446
|
+
const cn = 0.35;
|
|
4447
|
+
function Uu(t = cn) {
|
|
4448
|
+
return t === !1 ? t = 0 : t === !0 && (t = cn), {
|
|
4449
|
+
x: ni(t, "left", "right"),
|
|
4450
|
+
y: ni(t, "top", "bottom")
|
|
4451
4451
|
};
|
|
4452
4452
|
}
|
|
4453
|
-
function
|
|
4453
|
+
function ni(t, e, n) {
|
|
4454
4454
|
return {
|
|
4455
|
-
min:
|
|
4456
|
-
max:
|
|
4455
|
+
min: si(t, e),
|
|
4456
|
+
max: si(t, n)
|
|
4457
4457
|
};
|
|
4458
4458
|
}
|
|
4459
|
-
function
|
|
4459
|
+
function si(t, e) {
|
|
4460
4460
|
return typeof t == "number" ? t : t[e] || 0;
|
|
4461
4461
|
}
|
|
4462
4462
|
const Wu = /* @__PURE__ */ new WeakMap();
|
|
@@ -4470,41 +4470,41 @@ class zu {
|
|
|
4470
4470
|
return;
|
|
4471
4471
|
const o = (h) => {
|
|
4472
4472
|
n && this.snapToCursor(qt(h).point), this.stopAnimation();
|
|
4473
|
-
}, r = (h,
|
|
4474
|
-
const { drag:
|
|
4475
|
-
if (
|
|
4473
|
+
}, r = (h, d) => {
|
|
4474
|
+
const { drag: f, dragPropagation: m, onDragStart: y } = this.getProps();
|
|
4475
|
+
if (f && !m && (this.openDragLock && this.openDragLock(), this.openDragLock = bl(f), !this.openDragLock))
|
|
4476
4476
|
return;
|
|
4477
|
-
this.latestPointerEvent = h, this.latestPanInfo =
|
|
4477
|
+
this.latestPointerEvent = h, this.latestPanInfo = d, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), nt((g) => {
|
|
4478
4478
|
let x = this.getAxisMotionValue(g).get() || 0;
|
|
4479
4479
|
if (st.test(x)) {
|
|
4480
|
-
const { projection:
|
|
4481
|
-
if (
|
|
4482
|
-
const
|
|
4483
|
-
|
|
4480
|
+
const { projection: p } = this.visualElement;
|
|
4481
|
+
if (p && p.layout) {
|
|
4482
|
+
const b = p.layout.layoutBox[g];
|
|
4483
|
+
b && (x = _(b) * (parseFloat(x) / 100));
|
|
4484
4484
|
}
|
|
4485
4485
|
}
|
|
4486
4486
|
this.originPoint[g] = x;
|
|
4487
|
-
}),
|
|
4487
|
+
}), y && L.update(() => y(h, d), !1, !0), tn(this.visualElement, "transform");
|
|
4488
4488
|
const { animationState: v } = this.visualElement;
|
|
4489
4489
|
v && v.setActive("whileDrag", !0);
|
|
4490
|
-
}, a = (h,
|
|
4491
|
-
this.latestPointerEvent = h, this.latestPanInfo =
|
|
4492
|
-
const { dragPropagation:
|
|
4493
|
-
if (!
|
|
4490
|
+
}, a = (h, d) => {
|
|
4491
|
+
this.latestPointerEvent = h, this.latestPanInfo = d;
|
|
4492
|
+
const { dragPropagation: f, dragDirectionLock: m, onDirectionLock: y, onDrag: v } = this.getProps();
|
|
4493
|
+
if (!f && !this.openDragLock)
|
|
4494
4494
|
return;
|
|
4495
|
-
const { offset: g } =
|
|
4496
|
-
if (
|
|
4497
|
-
this.currentDirection = Ku(g), this.currentDirection !== null &&
|
|
4495
|
+
const { offset: g } = d;
|
|
4496
|
+
if (m && this.currentDirection === null) {
|
|
4497
|
+
this.currentDirection = Ku(g), this.currentDirection !== null && y && y(this.currentDirection);
|
|
4498
4498
|
return;
|
|
4499
4499
|
}
|
|
4500
|
-
this.updateAxis("x",
|
|
4501
|
-
}, l = (h,
|
|
4502
|
-
this.latestPointerEvent = h, this.latestPanInfo =
|
|
4500
|
+
this.updateAxis("x", d.point, g), this.updateAxis("y", d.point, g), this.visualElement.render(), v && L.update(() => v(h, d), !1, !0);
|
|
4501
|
+
}, l = (h, d) => {
|
|
4502
|
+
this.latestPointerEvent = h, this.latestPanInfo = d, this.stop(h, d), this.latestPointerEvent = null, this.latestPanInfo = null;
|
|
4503
4503
|
}, c = () => {
|
|
4504
4504
|
const { dragSnapToOrigin: h } = this.getProps();
|
|
4505
4505
|
(h || this.constraints) && this.startAnimation({ x: 0, y: 0 });
|
|
4506
4506
|
}, { dragSnapToOrigin: u } = this.getProps();
|
|
4507
|
-
this.panSession = new
|
|
4507
|
+
this.panSession = new eo(e, {
|
|
4508
4508
|
onSessionStart: o,
|
|
4509
4509
|
onStart: r,
|
|
4510
4510
|
onMove: a,
|
|
@@ -4514,7 +4514,7 @@ class zu {
|
|
|
4514
4514
|
transformPagePoint: this.visualElement.getTransformPagePoint(),
|
|
4515
4515
|
dragSnapToOrigin: u,
|
|
4516
4516
|
distanceThreshold: s,
|
|
4517
|
-
contextWindow:
|
|
4517
|
+
contextWindow: to(this.visualElement),
|
|
4518
4518
|
element: this.visualElement.current
|
|
4519
4519
|
});
|
|
4520
4520
|
}
|
|
@@ -4576,7 +4576,7 @@ class zu {
|
|
|
4576
4576
|
let r = Nu(i.layout.layoutBox, o);
|
|
4577
4577
|
if (n) {
|
|
4578
4578
|
const a = n(Yl(r));
|
|
4579
|
-
this.hasMutatedConstraints = !!a, a && (r =
|
|
4579
|
+
this.hasMutatedConstraints = !!a, a && (r = Pr(a));
|
|
4580
4580
|
}
|
|
4581
4581
|
return r;
|
|
4582
4582
|
}
|
|
@@ -4586,24 +4586,24 @@ class zu {
|
|
|
4586
4586
|
return;
|
|
4587
4587
|
let h = l && l[u] || {};
|
|
4588
4588
|
r && (h = { min: 0, max: 0 });
|
|
4589
|
-
const
|
|
4589
|
+
const d = i ? 200 : 1e6, f = i ? 40 : 1e7, m = {
|
|
4590
4590
|
type: "inertia",
|
|
4591
4591
|
velocity: s ? e[u] : 0,
|
|
4592
|
-
bounceStiffness:
|
|
4593
|
-
bounceDamping:
|
|
4592
|
+
bounceStiffness: d,
|
|
4593
|
+
bounceDamping: f,
|
|
4594
4594
|
timeConstant: 750,
|
|
4595
4595
|
restDelta: 1,
|
|
4596
4596
|
restSpeed: 10,
|
|
4597
4597
|
...o,
|
|
4598
4598
|
...h
|
|
4599
4599
|
};
|
|
4600
|
-
return this.startAxisValueAnimation(u,
|
|
4600
|
+
return this.startAxisValueAnimation(u, m);
|
|
4601
4601
|
});
|
|
4602
4602
|
return Promise.all(c).then(a);
|
|
4603
4603
|
}
|
|
4604
4604
|
startAxisValueAnimation(e, n) {
|
|
4605
4605
|
const s = this.getAxisMotionValue(e);
|
|
4606
|
-
return
|
|
4606
|
+
return tn(this.visualElement, e), s.start(Dn(e, s, 0, n, this.visualElement, !1));
|
|
4607
4607
|
}
|
|
4608
4608
|
stopAnimation() {
|
|
4609
4609
|
nt((e) => this.getAxisMotionValue(e).stop());
|
|
@@ -4663,8 +4663,8 @@ class zu {
|
|
|
4663
4663
|
return;
|
|
4664
4664
|
Wu.set(this.visualElement, this);
|
|
4665
4665
|
const e = this.visualElement.current, n = $t(e, "pointerdown", (c) => {
|
|
4666
|
-
const { drag: u, dragListener: h = !0 } = this.getProps(),
|
|
4667
|
-
u && h && !
|
|
4666
|
+
const { drag: u, dragListener: h = !0 } = this.getProps(), d = c.target, f = d !== e && Ml(d);
|
|
4667
|
+
u && h && !f && this.start(c);
|
|
4668
4668
|
});
|
|
4669
4669
|
let s;
|
|
4670
4670
|
const i = () => {
|
|
@@ -4674,8 +4674,8 @@ class zu {
|
|
|
4674
4674
|
o && !o.layout && (o.root && o.root.updateScroll(), o.updateLayout()), L.read(i);
|
|
4675
4675
|
const a = Gt(window, "resize", () => this.scalePositionWithinConstraints()), l = o.addEventListener("didUpdate", (({ delta: c, hasLayoutChanged: u }) => {
|
|
4676
4676
|
this.isDragging && u && (nt((h) => {
|
|
4677
|
-
const
|
|
4678
|
-
|
|
4677
|
+
const d = this.getAxisMotionValue(h);
|
|
4678
|
+
d && (this.originPoint[h] += c[h].translate, d.set(d.get() + c[h].translate));
|
|
4679
4679
|
}), this.visualElement.render());
|
|
4680
4680
|
}));
|
|
4681
4681
|
return () => {
|
|
@@ -4683,7 +4683,7 @@ class zu {
|
|
|
4683
4683
|
};
|
|
4684
4684
|
}
|
|
4685
4685
|
getProps() {
|
|
4686
|
-
const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: s = !1, dragPropagation: i = !1, dragConstraints: o = !1, dragElastic: r =
|
|
4686
|
+
const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: s = !1, dragPropagation: i = !1, dragConstraints: o = !1, dragElastic: r = cn, dragMomentum: a = !0 } = e;
|
|
4687
4687
|
return {
|
|
4688
4688
|
...e,
|
|
4689
4689
|
drag: n,
|
|
@@ -4695,7 +4695,7 @@ class zu {
|
|
|
4695
4695
|
};
|
|
4696
4696
|
}
|
|
4697
4697
|
}
|
|
4698
|
-
function
|
|
4698
|
+
function ii(t) {
|
|
4699
4699
|
let e = !0;
|
|
4700
4700
|
return () => {
|
|
4701
4701
|
if (e) {
|
|
@@ -4706,7 +4706,7 @@ function si(t) {
|
|
|
4706
4706
|
};
|
|
4707
4707
|
}
|
|
4708
4708
|
function Hu(t, e, n) {
|
|
4709
|
-
const s = fs(t,
|
|
4709
|
+
const s = fs(t, ii(n)), i = fs(e, ii(n));
|
|
4710
4710
|
return () => {
|
|
4711
4711
|
s(), i();
|
|
4712
4712
|
};
|
|
@@ -4718,7 +4718,7 @@ function Ku(t, e = 10) {
|
|
|
4718
4718
|
let n = null;
|
|
4719
4719
|
return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
|
|
4720
4720
|
}
|
|
4721
|
-
class Gu extends
|
|
4721
|
+
class Gu extends ft {
|
|
4722
4722
|
constructor(e) {
|
|
4723
4723
|
super(e), this.removeGroupControls = q, this.removeListeners = q, this.controls = new zu(e);
|
|
4724
4724
|
}
|
|
@@ -4734,25 +4734,25 @@ class Gu extends dt {
|
|
|
4734
4734
|
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
|
|
4735
4735
|
}
|
|
4736
4736
|
}
|
|
4737
|
-
const
|
|
4737
|
+
const Oe = (t) => (e, n) => {
|
|
4738
4738
|
t && L.update(() => t(e, n), !1, !0);
|
|
4739
4739
|
};
|
|
4740
|
-
class _u extends
|
|
4740
|
+
class _u extends ft {
|
|
4741
4741
|
constructor() {
|
|
4742
4742
|
super(...arguments), this.removePointerDownListener = q;
|
|
4743
4743
|
}
|
|
4744
4744
|
onPointerDown(e) {
|
|
4745
|
-
this.session = new
|
|
4745
|
+
this.session = new eo(e, this.createPanHandlers(), {
|
|
4746
4746
|
transformPagePoint: this.node.getTransformPagePoint(),
|
|
4747
|
-
contextWindow:
|
|
4747
|
+
contextWindow: to(this.node)
|
|
4748
4748
|
});
|
|
4749
4749
|
}
|
|
4750
4750
|
createPanHandlers() {
|
|
4751
4751
|
const { onPanSessionStart: e, onPanStart: n, onPan: s, onPanEnd: i } = this.node.getProps();
|
|
4752
4752
|
return {
|
|
4753
|
-
onSessionStart:
|
|
4754
|
-
onStart:
|
|
4755
|
-
onMove:
|
|
4753
|
+
onSessionStart: Oe(e),
|
|
4754
|
+
onStart: Oe(n),
|
|
4755
|
+
onMove: Oe(s),
|
|
4756
4756
|
onEnd: (o, r) => {
|
|
4757
4757
|
delete this.session, i && L.postRender(() => i(o, r));
|
|
4758
4758
|
}
|
|
@@ -4768,7 +4768,7 @@ class _u extends dt {
|
|
|
4768
4768
|
this.removePointerDownListener(), this.session && this.session.end();
|
|
4769
4769
|
}
|
|
4770
4770
|
}
|
|
4771
|
-
let
|
|
4771
|
+
let Ne = !1;
|
|
4772
4772
|
class Xu extends xo {
|
|
4773
4773
|
/**
|
|
4774
4774
|
* This only mounts projection nodes for components that
|
|
@@ -4777,7 +4777,7 @@ class Xu extends xo {
|
|
|
4777
4777
|
*/
|
|
4778
4778
|
componentDidMount() {
|
|
4779
4779
|
const { visualElement: e, layoutGroup: n, switchLayoutGroup: s, layoutId: i } = this.props, { projection: o } = e;
|
|
4780
|
-
o && (n.group && n.group.add(o), s && s.register && i && s.register(o),
|
|
4780
|
+
o && (n.group && n.group.add(o), s && s.register && i && s.register(o), Ne && o.root.didUpdate(), o.addEventListener("animationComplete", () => {
|
|
4781
4781
|
this.safeToRemove();
|
|
4782
4782
|
}), o.setOptions({
|
|
4783
4783
|
...o.options,
|
|
@@ -4790,7 +4790,7 @@ class Xu extends xo {
|
|
|
4790
4790
|
return r && (r.isPresent = o, e.layoutDependency !== n && r.setOptions({
|
|
4791
4791
|
...r.options,
|
|
4792
4792
|
layoutDependency: n
|
|
4793
|
-
}),
|
|
4793
|
+
}), Ne = !0, i || e.layoutDependency !== n || n === void 0 || e.isPresent !== o ? r.willUpdate() : this.safeToRemove(), e.isPresent !== o && (o ? r.promote() : r.relegate() || L.postRender(() => {
|
|
4794
4794
|
const a = r.getStack();
|
|
4795
4795
|
(!a || !a.members.length) && this.safeToRemove();
|
|
4796
4796
|
}))), null;
|
|
@@ -4803,7 +4803,7 @@ class Xu extends xo {
|
|
|
4803
4803
|
}
|
|
4804
4804
|
componentWillUnmount() {
|
|
4805
4805
|
const { visualElement: e, layoutGroup: n, switchLayoutGroup: s } = this.props, { projection: i } = e;
|
|
4806
|
-
|
|
4806
|
+
Ne = !0, i && (i.scheduleCheckAfterUnmount(), n && n.group && n.group.remove(i), s && s.deregister && s.deregister(i));
|
|
4807
4807
|
}
|
|
4808
4808
|
safeToRemove() {
|
|
4809
4809
|
const { safeToRemove: e } = this.props;
|
|
@@ -4813,9 +4813,9 @@ class Xu extends xo {
|
|
|
4813
4813
|
return null;
|
|
4814
4814
|
}
|
|
4815
4815
|
}
|
|
4816
|
-
function
|
|
4817
|
-
const [e, n] = eu(), s =
|
|
4818
|
-
return E(Xu, { ...t, layoutGroup: s, switchLayoutGroup:
|
|
4816
|
+
function so(t) {
|
|
4817
|
+
const [e, n] = eu(), s = $(yi);
|
|
4818
|
+
return E(Xu, { ...t, layoutGroup: s, switchLayoutGroup: $(Qr), isPresent: e, safeToRemove: n });
|
|
4819
4819
|
}
|
|
4820
4820
|
const Yu = {
|
|
4821
4821
|
pan: {
|
|
@@ -4823,25 +4823,25 @@ const Yu = {
|
|
|
4823
4823
|
},
|
|
4824
4824
|
drag: {
|
|
4825
4825
|
Feature: Gu,
|
|
4826
|
-
ProjectionNode:
|
|
4827
|
-
MeasureLayout:
|
|
4826
|
+
ProjectionNode: Kr,
|
|
4827
|
+
MeasureLayout: so
|
|
4828
4828
|
}
|
|
4829
4829
|
};
|
|
4830
|
-
function
|
|
4830
|
+
function ri(t, e, n) {
|
|
4831
4831
|
const { props: s } = t;
|
|
4832
4832
|
t.animationState && s.whileHover && t.animationState.setActive("whileHover", n === "Start");
|
|
4833
4833
|
const i = "onHover" + n, o = s[i];
|
|
4834
4834
|
o && L.postRender(() => o(e, qt(e)));
|
|
4835
4835
|
}
|
|
4836
|
-
class qu extends
|
|
4836
|
+
class qu extends ft {
|
|
4837
4837
|
mount() {
|
|
4838
4838
|
const { current: e } = this.node;
|
|
4839
|
-
e && (this.unmount = Pl(e, (n, s) => (
|
|
4839
|
+
e && (this.unmount = Pl(e, (n, s) => (ri(this.node, s, "Start"), (i) => ri(this.node, i, "End"))));
|
|
4840
4840
|
}
|
|
4841
4841
|
unmount() {
|
|
4842
4842
|
}
|
|
4843
4843
|
}
|
|
4844
|
-
class Zu extends
|
|
4844
|
+
class Zu extends ft {
|
|
4845
4845
|
constructor() {
|
|
4846
4846
|
super(...arguments), this.isActive = !1;
|
|
4847
4847
|
}
|
|
@@ -4863,7 +4863,7 @@ class Zu extends dt {
|
|
|
4863
4863
|
unmount() {
|
|
4864
4864
|
}
|
|
4865
4865
|
}
|
|
4866
|
-
function
|
|
4866
|
+
function oi(t, e, n) {
|
|
4867
4867
|
const { props: s } = t;
|
|
4868
4868
|
if (t.current instanceof HTMLButtonElement && t.current.disabled)
|
|
4869
4869
|
return;
|
|
@@ -4871,13 +4871,13 @@ function ri(t, e, n) {
|
|
|
4871
4871
|
const i = "onTap" + (n === "End" ? "" : n), o = s[i];
|
|
4872
4872
|
o && L.postRender(() => o(e, qt(e)));
|
|
4873
4873
|
}
|
|
4874
|
-
class Qu extends
|
|
4874
|
+
class Qu extends ft {
|
|
4875
4875
|
mount() {
|
|
4876
4876
|
const { current: e } = this.node;
|
|
4877
4877
|
if (!e)
|
|
4878
4878
|
return;
|
|
4879
4879
|
const { globalTapTarget: n, propagate: s } = this.node.props;
|
|
4880
|
-
this.unmount = El(e, (i, o) => (
|
|
4880
|
+
this.unmount = El(e, (i, o) => (oi(this.node, o, "Start"), (r, { success: a }) => oi(this.node, r, a ? "End" : "Cancel")), {
|
|
4881
4881
|
useGlobalTarget: n,
|
|
4882
4882
|
stopPropagation: s?.tap === !1
|
|
4883
4883
|
});
|
|
@@ -4885,29 +4885,29 @@ class Qu extends dt {
|
|
|
4885
4885
|
unmount() {
|
|
4886
4886
|
}
|
|
4887
4887
|
}
|
|
4888
|
-
const
|
|
4889
|
-
const e =
|
|
4888
|
+
const un = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), Ju = (t) => {
|
|
4889
|
+
const e = un.get(t.target);
|
|
4890
4890
|
e && e(t);
|
|
4891
4891
|
}, th = (t) => {
|
|
4892
4892
|
t.forEach(Ju);
|
|
4893
4893
|
};
|
|
4894
4894
|
function eh({ root: t, ...e }) {
|
|
4895
4895
|
const n = t || document;
|
|
4896
|
-
|
|
4897
|
-
const s =
|
|
4896
|
+
je.has(n) || je.set(n, {});
|
|
4897
|
+
const s = je.get(n), i = JSON.stringify(e);
|
|
4898
4898
|
return s[i] || (s[i] = new IntersectionObserver(th, { root: t, ...e })), s[i];
|
|
4899
4899
|
}
|
|
4900
4900
|
function nh(t, e, n) {
|
|
4901
4901
|
const s = eh(e);
|
|
4902
|
-
return
|
|
4903
|
-
|
|
4902
|
+
return un.set(t, n), s.observe(t), () => {
|
|
4903
|
+
un.delete(t), s.unobserve(t);
|
|
4904
4904
|
};
|
|
4905
4905
|
}
|
|
4906
4906
|
const sh = {
|
|
4907
4907
|
some: 0,
|
|
4908
4908
|
all: 1
|
|
4909
4909
|
};
|
|
4910
|
-
class ih extends
|
|
4910
|
+
class ih extends ft {
|
|
4911
4911
|
constructor() {
|
|
4912
4912
|
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
4913
4913
|
}
|
|
@@ -4922,8 +4922,8 @@ class ih extends dt {
|
|
|
4922
4922
|
if (this.isInView === c || (this.isInView = c, o && !c && this.hasEnteredView))
|
|
4923
4923
|
return;
|
|
4924
4924
|
c && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", c);
|
|
4925
|
-
const { onViewportEnter: u, onViewportLeave: h } = this.node.getProps(),
|
|
4926
|
-
|
|
4925
|
+
const { onViewportEnter: u, onViewportLeave: h } = this.node.getProps(), d = c ? u : h;
|
|
4926
|
+
d && d(l);
|
|
4927
4927
|
};
|
|
4928
4928
|
return nh(this.node.current, r, a);
|
|
4929
4929
|
}
|
|
@@ -4957,8 +4957,8 @@ const oh = {
|
|
|
4957
4957
|
}
|
|
4958
4958
|
}, ah = {
|
|
4959
4959
|
layout: {
|
|
4960
|
-
ProjectionNode:
|
|
4961
|
-
MeasureLayout:
|
|
4960
|
+
ProjectionNode: Kr,
|
|
4961
|
+
MeasureLayout: so
|
|
4962
4962
|
}
|
|
4963
4963
|
}, lh = {
|
|
4964
4964
|
...Ru,
|
|
@@ -4966,8 +4966,8 @@ const oh = {
|
|
|
4966
4966
|
...Yu,
|
|
4967
4967
|
...ah
|
|
4968
4968
|
}, te = /* @__PURE__ */ Vu(lh, Cu);
|
|
4969
|
-
function
|
|
4970
|
-
const e = Ut(() => Tt(t)), { isStatic: n } =
|
|
4969
|
+
function hn(t) {
|
|
4970
|
+
const e = Ut(() => Tt(t)), { isStatic: n } = $($n);
|
|
4971
4971
|
if (n) {
|
|
4972
4972
|
const [, s] = ht(t);
|
|
4973
4973
|
X(() => e.on("change", s), []);
|
|
@@ -4975,15 +4975,15 @@ function un(t) {
|
|
|
4975
4975
|
return e;
|
|
4976
4976
|
}
|
|
4977
4977
|
function zn(t, e) {
|
|
4978
|
-
const n =
|
|
4979
|
-
return s(),
|
|
4978
|
+
const n = hn(e()), s = () => n.set(e());
|
|
4979
|
+
return s(), xi(() => {
|
|
4980
4980
|
const i = () => L.preRender(s, !1, !0), o = t.map((r) => r.on("change", i));
|
|
4981
4981
|
return () => {
|
|
4982
4982
|
o.forEach((r) => r()), lt(s);
|
|
4983
4983
|
};
|
|
4984
4984
|
}), n;
|
|
4985
4985
|
}
|
|
4986
|
-
function
|
|
4986
|
+
function ai(t, ...e) {
|
|
4987
4987
|
const n = t.length;
|
|
4988
4988
|
function s() {
|
|
4989
4989
|
let i = "";
|
|
@@ -5001,12 +5001,12 @@ function ch(t) {
|
|
|
5001
5001
|
const e = zn(Nt.current, t);
|
|
5002
5002
|
return Nt.current = void 0, e;
|
|
5003
5003
|
}
|
|
5004
|
-
function
|
|
5004
|
+
function dn(t, e, n, s) {
|
|
5005
5005
|
if (typeof t == "function")
|
|
5006
5006
|
return ch(t);
|
|
5007
5007
|
if (n !== void 0 && !Array.isArray(n) && typeof e != "function")
|
|
5008
5008
|
return uh(t, e, n, s);
|
|
5009
|
-
const r = typeof e == "function" ? e : $l(e, n, s), a = Array.isArray(t) ?
|
|
5009
|
+
const r = typeof e == "function" ? e : $l(e, n, s), a = Array.isArray(t) ? li(t, r) : li([t], ([c]) => r(c)), l = Array.isArray(t) ? void 0 : t.accelerate;
|
|
5010
5010
|
return l && !l.isTransformed && typeof e != "function" && Array.isArray(n) && s?.clamp !== !1 && (a.accelerate = {
|
|
5011
5011
|
...l,
|
|
5012
5012
|
times: e,
|
|
@@ -5014,7 +5014,7 @@ function hn(t, e, n, s) {
|
|
|
5014
5014
|
isTransformed: !0
|
|
5015
5015
|
}), a;
|
|
5016
5016
|
}
|
|
5017
|
-
function
|
|
5017
|
+
function li(t, e) {
|
|
5018
5018
|
const n = Ut(() => []);
|
|
5019
5019
|
return zn(t, () => {
|
|
5020
5020
|
n.length = 0;
|
|
@@ -5027,10 +5027,10 @@ function ai(t, e) {
|
|
|
5027
5027
|
function uh(t, e, n, s) {
|
|
5028
5028
|
const i = Ut(() => Object.keys(n)), o = Ut(() => ({}));
|
|
5029
5029
|
for (const r of i)
|
|
5030
|
-
o[r] =
|
|
5030
|
+
o[r] = dn(t, e, n[r], s);
|
|
5031
5031
|
return o;
|
|
5032
5032
|
}
|
|
5033
|
-
const
|
|
5033
|
+
const ci = 2;
|
|
5034
5034
|
function hh({ x1: t, y1: e, x2: n, y2: s }, {
|
|
5035
5035
|
cornerRadius: i = 8,
|
|
5036
5036
|
midOffset: o = 32,
|
|
@@ -5044,16 +5044,16 @@ function hh({ x1: t, y1: e, x2: n, y2: s }, {
|
|
|
5044
5044
|
Math.abs(c === "horizontal" ? (s - e) / 2 : (n - t) / 2)
|
|
5045
5045
|
);
|
|
5046
5046
|
if (c === "horizontal") {
|
|
5047
|
-
if (Math.abs(s - e) <=
|
|
5047
|
+
if (Math.abs(s - e) <= ci)
|
|
5048
5048
|
return `M ${t} ${e} L ${n - r} ${s}`;
|
|
5049
|
-
const
|
|
5049
|
+
const S = l || a ? n - o : t + o, N = n > t ? 1 : -1, U = s > e ? 1 : -1, D = S - N * u, C = e + U * u, A = s - U * u, K = S + N * u, V = n - N * r, R = [
|
|
5050
5050
|
`L ${D} ${e}`,
|
|
5051
|
-
`Q ${
|
|
5052
|
-
l ? `L ${
|
|
5051
|
+
`Q ${S} ${e} ${S} ${C}`,
|
|
5052
|
+
l ? `L ${S} ${A} Q ${S} ${s} ${K} ${s}` : `L ${S} ${s}`
|
|
5053
5053
|
], rt = [
|
|
5054
|
-
l ? `L ${D} ${e} Q ${
|
|
5055
|
-
`L ${
|
|
5056
|
-
`Q ${
|
|
5054
|
+
l ? `L ${D} ${e} Q ${S} ${e} ${S} ${C}` : `L ${S} ${e}`,
|
|
5055
|
+
`L ${S} ${A}`,
|
|
5056
|
+
`Q ${S} ${s} ${K} ${s}`
|
|
5057
5057
|
];
|
|
5058
5058
|
return [
|
|
5059
5059
|
`M ${t} ${e}`,
|
|
@@ -5061,28 +5061,28 @@ function hh({ x1: t, y1: e, x2: n, y2: s }, {
|
|
|
5061
5061
|
`L ${V} ${s}`
|
|
5062
5062
|
].join(" ");
|
|
5063
5063
|
}
|
|
5064
|
-
if (Math.abs(n - t) <=
|
|
5064
|
+
if (Math.abs(n - t) <= ci)
|
|
5065
5065
|
return `M ${t} ${e} L ${n} ${s - r}`;
|
|
5066
|
-
const h = l || a ? s - o : e + o,
|
|
5066
|
+
const h = l || a ? s - o : e + o, f = n > t ? 1 : -1, y = s > e ? 1 : -1, v = h - u, g = t + f * u, x = n - f * u, p = h + u, b = s - y * r, w = [
|
|
5067
5067
|
`L ${t} ${v}`,
|
|
5068
5068
|
`Q ${t} ${h} ${g} ${h}`,
|
|
5069
5069
|
`L ${n} ${h}`
|
|
5070
5070
|
], P = [
|
|
5071
5071
|
`L ${t} ${h}`,
|
|
5072
5072
|
`L ${x} ${h}`,
|
|
5073
|
-
`Q ${n} ${h} ${n} ${
|
|
5073
|
+
`Q ${n} ${h} ${n} ${p}`
|
|
5074
5074
|
];
|
|
5075
5075
|
return [
|
|
5076
5076
|
`M ${t} ${e}`,
|
|
5077
5077
|
// Move the cursor to the starting point
|
|
5078
5078
|
a ? [...w] : [...P],
|
|
5079
|
-
`L ${n} ${
|
|
5079
|
+
`L ${n} ${b}`
|
|
5080
5080
|
// Draw the final line to the end point
|
|
5081
5081
|
].join(" ");
|
|
5082
5082
|
}
|
|
5083
|
-
const
|
|
5083
|
+
const io = xe(
|
|
5084
5084
|
function({ connectors: e, children: n, ...s }, i) {
|
|
5085
|
-
const o =
|
|
5085
|
+
const o = ve();
|
|
5086
5086
|
return /* @__PURE__ */ Dt(
|
|
5087
5087
|
"svg",
|
|
5088
5088
|
{
|
|
@@ -5142,8 +5142,8 @@ const so = ve(
|
|
|
5142
5142
|
}
|
|
5143
5143
|
);
|
|
5144
5144
|
}
|
|
5145
|
-
),
|
|
5146
|
-
function
|
|
5145
|
+
), Hn = ct(null);
|
|
5146
|
+
function dh() {
|
|
5147
5147
|
const [t, e] = ht([]), n = F(
|
|
5148
5148
|
/* @__PURE__ */ new Map()
|
|
5149
5149
|
), s = F(0), i = F(/* @__PURE__ */ new Map());
|
|
@@ -5156,20 +5156,20 @@ function fh() {
|
|
|
5156
5156
|
renderOrder: c
|
|
5157
5157
|
};
|
|
5158
5158
|
n.current.set(l, h);
|
|
5159
|
-
const
|
|
5159
|
+
const d = Array.from(
|
|
5160
5160
|
n.current.values()
|
|
5161
|
-
).sort((
|
|
5162
|
-
return e(
|
|
5161
|
+
).sort((m, y) => m.renderOrder - y.renderOrder);
|
|
5162
|
+
return e(d), { unregister: () => {
|
|
5163
5163
|
n.current.delete(l);
|
|
5164
|
-
const
|
|
5164
|
+
const m = Array.from(
|
|
5165
5165
|
n.current.values()
|
|
5166
|
-
).sort((
|
|
5167
|
-
e(
|
|
5166
|
+
).sort((y, v) => y.renderOrder - v.renderOrder);
|
|
5167
|
+
e(m);
|
|
5168
5168
|
} };
|
|
5169
5169
|
},
|
|
5170
5170
|
[]
|
|
5171
5171
|
);
|
|
5172
|
-
return
|
|
5172
|
+
return Q(
|
|
5173
5173
|
() => ({
|
|
5174
5174
|
register: r,
|
|
5175
5175
|
descendants: t,
|
|
@@ -5183,30 +5183,33 @@ function ro({
|
|
|
5183
5183
|
children: e
|
|
5184
5184
|
}) {
|
|
5185
5185
|
return /* @__PURE__ */ E(
|
|
5186
|
-
|
|
5186
|
+
Hn.Provider,
|
|
5187
5187
|
{
|
|
5188
5188
|
value: t,
|
|
5189
5189
|
children: e
|
|
5190
5190
|
}
|
|
5191
5191
|
);
|
|
5192
5192
|
}
|
|
5193
|
-
function
|
|
5194
|
-
const t =
|
|
5193
|
+
function fh() {
|
|
5194
|
+
const t = $(Hn);
|
|
5195
5195
|
if (!t)
|
|
5196
5196
|
throw new Error(
|
|
5197
5197
|
"useDescendantsContext must be used within DescendantsProvider"
|
|
5198
5198
|
);
|
|
5199
5199
|
return t;
|
|
5200
5200
|
}
|
|
5201
|
-
function mh(
|
|
5202
|
-
|
|
5201
|
+
function mh() {
|
|
5202
|
+
return $(Hn);
|
|
5203
|
+
}
|
|
5204
|
+
function ph(t) {
|
|
5205
|
+
const e = fh(), n = ve(), s = e.claimRenderOrder(n), i = F(null), o = F(e.register);
|
|
5203
5206
|
o.current = e.register, X(() => {
|
|
5204
5207
|
const { unregister: c } = o.current(n, s, t);
|
|
5205
5208
|
return i.current || (i.current = c), () => {
|
|
5206
5209
|
i.current && (i.current(), i.current = null);
|
|
5207
5210
|
};
|
|
5208
5211
|
}, [n, s, t]);
|
|
5209
|
-
const r =
|
|
5212
|
+
const r = Q(() => e.descendants.findIndex((c) => c.id === n), [e.descendants, n]), a = Et(() => {
|
|
5210
5213
|
if (!(r <= 0))
|
|
5211
5214
|
return e.descendants[r - 1];
|
|
5212
5215
|
}, [e.descendants, r]), l = Et(() => {
|
|
@@ -5215,28 +5218,28 @@ function mh(t) {
|
|
|
5215
5218
|
}, [e.descendants, r]);
|
|
5216
5219
|
return { index: r, id: n, getPrevious: a, getNext: l };
|
|
5217
5220
|
}
|
|
5218
|
-
const
|
|
5221
|
+
const ui = {
|
|
5219
5222
|
y: 64,
|
|
5220
5223
|
x: 16
|
|
5221
|
-
},
|
|
5224
|
+
}, hi = 10, oo = ct(null);
|
|
5222
5225
|
function ao() {
|
|
5223
|
-
const t =
|
|
5226
|
+
const t = $(oo);
|
|
5224
5227
|
if (t === null)
|
|
5225
5228
|
throw new Error("useDiagramContext must be used within a FlowDiagram");
|
|
5226
5229
|
return t;
|
|
5227
5230
|
}
|
|
5228
|
-
function
|
|
5231
|
+
function gh({
|
|
5229
5232
|
orientation: t = "horizontal",
|
|
5230
5233
|
align: e = "start",
|
|
5231
5234
|
className: n,
|
|
5232
5235
|
children: s
|
|
5233
5236
|
}) {
|
|
5234
|
-
const i = F(null), o = F(null), r =
|
|
5237
|
+
const i = F(null), o = F(null), r = hn(0), a = hn(0), [l, c] = ht(null), [u, h] = ht(null), [d, f] = ht(!1), [m, y] = ht(!1);
|
|
5235
5238
|
X(() => {
|
|
5236
5239
|
if (!i.current || !o.current) return;
|
|
5237
5240
|
const D = () => {
|
|
5238
5241
|
if (!i.current || !o.current) return;
|
|
5239
|
-
const A = i.current.getBoundingClientRect(), K = o.current.getBoundingClientRect(), V = A.width -
|
|
5242
|
+
const A = i.current.getBoundingClientRect(), K = o.current.getBoundingClientRect(), V = A.width - ui.x * 2, R = A.height - ui.y * 2;
|
|
5240
5243
|
c({
|
|
5241
5244
|
x: Math.min(0, V - K.width),
|
|
5242
5245
|
y: Math.min(0, R - K.height)
|
|
@@ -5245,7 +5248,7 @@ function ph({
|
|
|
5245
5248
|
viewportHeight: R,
|
|
5246
5249
|
contentWidth: K.width,
|
|
5247
5250
|
contentHeight: K.height
|
|
5248
|
-
}),
|
|
5251
|
+
}), y(
|
|
5249
5252
|
K.width > V || K.height > R
|
|
5250
5253
|
);
|
|
5251
5254
|
};
|
|
@@ -5276,30 +5279,30 @@ function ph({
|
|
|
5276
5279
|
return D.addEventListener("wheel", C, { passive: !1 }), () => D.removeEventListener("wheel", C);
|
|
5277
5280
|
}, [l, r, a]);
|
|
5278
5281
|
const v = (D) => D.target.closest("[data-node-id]") !== null, g = (D) => {
|
|
5279
|
-
v(D) || (
|
|
5282
|
+
v(D) || (f(!0), document.body.style.cursor = "grabbing", document.body.style.userSelect = "none");
|
|
5280
5283
|
}, x = (D, C) => {
|
|
5281
|
-
!l || !
|
|
5282
|
-
},
|
|
5283
|
-
|
|
5284
|
-
},
|
|
5285
|
-
|
|
5284
|
+
!l || !d || (r.set(Math.max(l.x, Math.min(0, r.get() + C.delta.x))), a.set(Math.max(l.y, Math.min(0, a.get() + C.delta.y))));
|
|
5285
|
+
}, p = () => {
|
|
5286
|
+
d && (f(!1), document.body.style.cursor = "", document.body.style.userSelect = "");
|
|
5287
|
+
}, b = l && l.x < 0, w = l && l.y < 0, P = u && u.contentWidth > 0 && u.viewportWidth > 0 ? Math.max(
|
|
5288
|
+
hi,
|
|
5286
5289
|
u.viewportWidth / u.contentWidth * 100
|
|
5287
5290
|
) : 0, M = u && u.contentHeight > 0 && u.viewportHeight > 0 ? Math.max(
|
|
5288
|
-
|
|
5291
|
+
hi,
|
|
5289
5292
|
u.viewportHeight / u.contentHeight * 100
|
|
5290
|
-
) : 0,
|
|
5293
|
+
) : 0, S = dn(
|
|
5291
5294
|
r,
|
|
5292
5295
|
[0, l?.x ?? 0],
|
|
5293
5296
|
[0, 100 - P]
|
|
5294
|
-
), I =
|
|
5297
|
+
), I = dn(
|
|
5295
5298
|
a,
|
|
5296
5299
|
[0, l?.y ?? 0],
|
|
5297
5300
|
[0, 100 - M]
|
|
5298
|
-
), N =
|
|
5301
|
+
), N = ai`${I}%`, z = ai`${S}%`, U = Q(
|
|
5299
5302
|
() => ({ orientation: t, align: e, x: r, y: a, wrapperRef: i }),
|
|
5300
5303
|
[t, e, r, a]
|
|
5301
5304
|
);
|
|
5302
|
-
return /* @__PURE__ */ E(oo.Provider, { value:
|
|
5305
|
+
return /* @__PURE__ */ E(oo.Provider, { value: U, children: /* @__PURE__ */ Dt(
|
|
5303
5306
|
te.div,
|
|
5304
5307
|
{
|
|
5305
5308
|
ref: i,
|
|
@@ -5308,11 +5311,11 @@ function ph({
|
|
|
5308
5311
|
n
|
|
5309
5312
|
),
|
|
5310
5313
|
style: {
|
|
5311
|
-
cursor:
|
|
5314
|
+
cursor: m && !d ? "grab" : void 0
|
|
5312
5315
|
},
|
|
5313
5316
|
onPanStart: g,
|
|
5314
5317
|
onPan: x,
|
|
5315
|
-
onPanEnd:
|
|
5318
|
+
onPanEnd: p,
|
|
5316
5319
|
children: [
|
|
5317
5320
|
/* @__PURE__ */ E(te.div, { ref: o, className: "w-max mx-auto", style: { x: r, y: a }, children: /* @__PURE__ */ E(uo, { children: s }) }),
|
|
5318
5321
|
w && /* @__PURE__ */ E("div", { className: "absolute right-1 top-4 bottom-4 w-1.5 rounded-full bg-kumo-line/50 opacity-0 group-hover:opacity-100", children: /* @__PURE__ */ E(
|
|
@@ -5325,7 +5328,7 @@ function ph({
|
|
|
5325
5328
|
}
|
|
5326
5329
|
}
|
|
5327
5330
|
) }),
|
|
5328
|
-
|
|
5331
|
+
b && /* @__PURE__ */ E("div", { className: "absolute bottom-1 left-4 right-4 h-1.5 rounded-full bg-kumo-line/50 opacity-0 group-hover:opacity-100", children: /* @__PURE__ */ E(
|
|
5329
5332
|
te.div,
|
|
5330
5333
|
{
|
|
5331
5334
|
className: "absolute h-full rounded-full bg-kumo-fill",
|
|
@@ -5339,29 +5342,46 @@ function ph({
|
|
|
5339
5342
|
}
|
|
5340
5343
|
) });
|
|
5341
5344
|
}
|
|
5342
|
-
const lo = () =>
|
|
5345
|
+
const lo = () => dh(), co = (t) => ph(t), yh = (t) => {
|
|
5346
|
+
const e = mh(), n = ve(), s = e?.claimRenderOrder(n) ?? -1, i = F(null);
|
|
5347
|
+
return X(() => {
|
|
5348
|
+
if (!e) return;
|
|
5349
|
+
const { unregister: r } = e.register(n, s, t);
|
|
5350
|
+
return i.current || (i.current = r), () => {
|
|
5351
|
+
i.current && (i.current(), i.current = null);
|
|
5352
|
+
};
|
|
5353
|
+
}, [n, s, t, e]), e ? { index: e.descendants.findIndex((r) => r.id === n), id: n } : null;
|
|
5354
|
+
}, ye = (t, { type: e = "start" }) => t ? t.props[e] ?? null : null;
|
|
5343
5355
|
function uo({ children: t }) {
|
|
5344
|
-
const { orientation: e, align: n } = ao(), s = lo(), i = F(null), o =
|
|
5345
|
-
const
|
|
5346
|
-
for (let
|
|
5347
|
-
const
|
|
5348
|
-
if (
|
|
5349
|
-
const
|
|
5350
|
-
if (
|
|
5351
|
-
const
|
|
5352
|
-
|
|
5353
|
-
x1:
|
|
5354
|
-
y1:
|
|
5355
|
-
x2:
|
|
5356
|
-
y2:
|
|
5357
|
-
disabled:
|
|
5356
|
+
const { orientation: e, align: n } = ao(), s = lo(), i = F(null), o = Q(() => {
|
|
5357
|
+
const h = [], d = s.descendants, f = i.current?.getBoundingClientRect(), m = f?.left ?? 0, y = f?.top ?? 0;
|
|
5358
|
+
for (let v = 0; v < d.length - 1; v++) {
|
|
5359
|
+
const g = d[v], x = d[v + 1];
|
|
5360
|
+
if (g.props?.parallel || x.props?.parallel) continue;
|
|
5361
|
+
const p = ye(g, { type: "start" }), b = ye(x, { type: "end" });
|
|
5362
|
+
if (p && b) {
|
|
5363
|
+
const w = g.props.disabled || x.props.disabled;
|
|
5364
|
+
h.push({
|
|
5365
|
+
x1: p.left - m + p.width,
|
|
5366
|
+
y1: p.top - y + p.height / 2,
|
|
5367
|
+
x2: b.left - m,
|
|
5368
|
+
y2: b.top - y + b.height / 2,
|
|
5369
|
+
disabled: w,
|
|
5358
5370
|
single: !0
|
|
5359
5371
|
});
|
|
5360
5372
|
}
|
|
5361
5373
|
}
|
|
5362
|
-
return
|
|
5363
|
-
}, [s.descendants])
|
|
5364
|
-
|
|
5374
|
+
return h;
|
|
5375
|
+
}, [s.descendants]), r = s.descendants[0], a = s.descendants[s.descendants.length - 1], l = r?.props?.end ?? null, c = a?.props?.start ?? null, u = Q(
|
|
5376
|
+
() => ({
|
|
5377
|
+
parallel: !1,
|
|
5378
|
+
disabled: !1,
|
|
5379
|
+
start: c,
|
|
5380
|
+
end: l
|
|
5381
|
+
}),
|
|
5382
|
+
[c, l]
|
|
5383
|
+
);
|
|
5384
|
+
return yh(u), /* @__PURE__ */ E(ro, { value: s, children: /* @__PURE__ */ Dt("div", { className: "relative", ref: i, children: [
|
|
5365
5385
|
/* @__PURE__ */ E(
|
|
5366
5386
|
"ul",
|
|
5367
5387
|
{
|
|
@@ -5373,7 +5393,7 @@ function uo({ children: t }) {
|
|
|
5373
5393
|
children: t
|
|
5374
5394
|
}
|
|
5375
5395
|
),
|
|
5376
|
-
/* @__PURE__ */ E("div", { className: "absolute inset-0 pointer-events-none", children: /* @__PURE__ */ E(
|
|
5396
|
+
/* @__PURE__ */ E("div", { className: "absolute inset-0 pointer-events-none", children: /* @__PURE__ */ E(io, { connectors: o, orientation: e }) })
|
|
5377
5397
|
] }) });
|
|
5378
5398
|
}
|
|
5379
5399
|
function ho(...t) {
|
|
@@ -5383,63 +5403,63 @@ function ho(...t) {
|
|
|
5383
5403
|
});
|
|
5384
5404
|
};
|
|
5385
5405
|
}
|
|
5386
|
-
const fo =
|
|
5406
|
+
const fo = xe(
|
|
5387
5407
|
function({ render: e, children: n, disabled: s = !1 }, i) {
|
|
5388
|
-
const o = F(null), r = F(null), a = F(null), [l, c] = ht({ start: null, end: null }), u =
|
|
5408
|
+
const o = F(null), r = F(null), a = F(null), [l, c] = ht({ start: null, end: null }), u = Q(
|
|
5389
5409
|
() => ({
|
|
5390
5410
|
parallel: !1,
|
|
5391
5411
|
disabled: s,
|
|
5392
5412
|
...l
|
|
5393
5413
|
}),
|
|
5394
5414
|
[l, s]
|
|
5395
|
-
), { index: h, id:
|
|
5415
|
+
), { index: h, id: d } = co(u);
|
|
5396
5416
|
X(() => {
|
|
5397
5417
|
if (!o.current) return;
|
|
5398
5418
|
const v = o.current.getBoundingClientRect();
|
|
5399
5419
|
let g = v, x = v;
|
|
5400
|
-
r.current && (g = r.current.getBoundingClientRect()), a.current && (x = a.current.getBoundingClientRect()), c((
|
|
5401
|
-
const
|
|
5402
|
-
return JSON.stringify(
|
|
5420
|
+
r.current && (g = r.current.getBoundingClientRect()), a.current && (x = a.current.getBoundingClientRect()), c((p) => {
|
|
5421
|
+
const b = { start: g, end: x };
|
|
5422
|
+
return JSON.stringify(p) === JSON.stringify(b) ? p : b;
|
|
5403
5423
|
});
|
|
5404
5424
|
});
|
|
5405
|
-
const
|
|
5406
|
-
let
|
|
5407
|
-
if (e &&
|
|
5408
|
-
const
|
|
5409
|
-
|
|
5410
|
-
ref:
|
|
5425
|
+
const f = ho(i, o);
|
|
5426
|
+
let m;
|
|
5427
|
+
if (e && pi(e)) {
|
|
5428
|
+
const y = e.props;
|
|
5429
|
+
m = gi(e, {
|
|
5430
|
+
ref: f,
|
|
5411
5431
|
"data-node-index": h,
|
|
5412
|
-
"data-node-id":
|
|
5413
|
-
style: { cursor: "default", ...
|
|
5414
|
-
children:
|
|
5432
|
+
"data-node-id": d,
|
|
5433
|
+
style: { cursor: "default", ...y.style },
|
|
5434
|
+
children: y.children ?? n
|
|
5415
5435
|
});
|
|
5416
5436
|
} else
|
|
5417
|
-
|
|
5437
|
+
m = /* @__PURE__ */ E(
|
|
5418
5438
|
"li",
|
|
5419
5439
|
{
|
|
5420
|
-
ref:
|
|
5440
|
+
ref: f,
|
|
5421
5441
|
className: "py-2 px-3 rounded-md shadow bg-kumo-base ring ring-kumo-line",
|
|
5422
5442
|
style: { cursor: "default" },
|
|
5423
5443
|
"data-node-index": h,
|
|
5424
|
-
"data-node-id":
|
|
5444
|
+
"data-node-id": d,
|
|
5425
5445
|
children: n
|
|
5426
5446
|
}
|
|
5427
5447
|
);
|
|
5428
5448
|
return /* @__PURE__ */ E(
|
|
5429
5449
|
mo.Provider,
|
|
5430
5450
|
{
|
|
5431
|
-
value:
|
|
5451
|
+
value: Q(
|
|
5432
5452
|
() => ({
|
|
5433
|
-
registerStartAnchor: (
|
|
5434
|
-
r.current =
|
|
5453
|
+
registerStartAnchor: (y) => {
|
|
5454
|
+
r.current = y;
|
|
5435
5455
|
},
|
|
5436
|
-
registerEndAnchor: (
|
|
5437
|
-
a.current =
|
|
5456
|
+
registerEndAnchor: (y) => {
|
|
5457
|
+
a.current = y;
|
|
5438
5458
|
}
|
|
5439
5459
|
}),
|
|
5440
5460
|
[]
|
|
5441
5461
|
),
|
|
5442
|
-
children:
|
|
5462
|
+
children: m
|
|
5443
5463
|
}
|
|
5444
5464
|
);
|
|
5445
5465
|
}
|
|
@@ -5447,9 +5467,9 @@ const fo = ve(
|
|
|
5447
5467
|
fo.displayName = "Flow.Node";
|
|
5448
5468
|
const mo = ct(
|
|
5449
5469
|
null
|
|
5450
|
-
), po =
|
|
5470
|
+
), po = xe(
|
|
5451
5471
|
function({ type: e, render: n, children: s }, i) {
|
|
5452
|
-
const o =
|
|
5472
|
+
const o = $(mo), r = F(null);
|
|
5453
5473
|
if (!o)
|
|
5454
5474
|
throw new Error("Flow.Anchor must be used within Flow.Node");
|
|
5455
5475
|
X(() => {
|
|
@@ -5459,9 +5479,9 @@ const mo = ct(
|
|
|
5459
5479
|
};
|
|
5460
5480
|
}, [e, o.registerStartAnchor, o.registerEndAnchor]);
|
|
5461
5481
|
const a = ho(i, r);
|
|
5462
|
-
if (n &&
|
|
5482
|
+
if (n && pi(n)) {
|
|
5463
5483
|
const l = n.props;
|
|
5464
|
-
return
|
|
5484
|
+
return gi(n, {
|
|
5465
5485
|
ref: a,
|
|
5466
5486
|
children: l.children ?? s
|
|
5467
5487
|
});
|
|
@@ -5470,7 +5490,7 @@ const mo = ct(
|
|
|
5470
5490
|
}
|
|
5471
5491
|
);
|
|
5472
5492
|
po.displayName = "Flow.Anchor";
|
|
5473
|
-
function
|
|
5493
|
+
function vh({
|
|
5474
5494
|
container: t,
|
|
5475
5495
|
previous: e,
|
|
5476
5496
|
next: n,
|
|
@@ -5496,79 +5516,79 @@ function gh({
|
|
|
5496
5516
|
};
|
|
5497
5517
|
return e && (i.y = e.top - t.top + e.height / 2), n && (o.y = n.top - t.top + n.height / 2), { start: i, end: o };
|
|
5498
5518
|
}
|
|
5499
|
-
function
|
|
5519
|
+
function xh({
|
|
5500
5520
|
children: t,
|
|
5501
5521
|
align: e = "start"
|
|
5502
5522
|
}) {
|
|
5503
5523
|
const { orientation: n } = ao(), s = lo(), i = F(null), o = F(null), [r, a] = ht(null), { index: l, getPrevious: c, getNext: u } = co(
|
|
5504
|
-
|
|
5524
|
+
Q(
|
|
5505
5525
|
() => ({ parallel: !0, start: r, end: r }),
|
|
5506
5526
|
[r]
|
|
5507
5527
|
)
|
|
5508
5528
|
);
|
|
5509
5529
|
X(() => {
|
|
5510
5530
|
if (!o.current) return;
|
|
5511
|
-
const
|
|
5512
|
-
a((
|
|
5531
|
+
const f = o.current.getBoundingClientRect();
|
|
5532
|
+
a((m) => JSON.stringify(m) === JSON.stringify(f) ? m : f);
|
|
5513
5533
|
});
|
|
5514
|
-
const
|
|
5515
|
-
const
|
|
5516
|
-
if (!
|
|
5517
|
-
const
|
|
5518
|
-
container:
|
|
5534
|
+
const d = (() => {
|
|
5535
|
+
const f = i.current;
|
|
5536
|
+
if (!f) return;
|
|
5537
|
+
const m = f.getBoundingClientRect(), [y, v] = [c(), u()], g = ye(y, { type: "start" }), x = ye(v, { type: "end" }), { start: p, end: b } = vh({
|
|
5538
|
+
container: m,
|
|
5519
5539
|
previous: g,
|
|
5520
5540
|
next: x,
|
|
5521
5541
|
orientation: n
|
|
5522
5542
|
}), w = [], P = [];
|
|
5523
5543
|
for (const z of s.descendants) {
|
|
5524
|
-
const { props:
|
|
5544
|
+
const { props: U } = z, [D, C] = [U.end, U.start];
|
|
5525
5545
|
if (g && D) {
|
|
5526
|
-
const A = n === "horizontal" ? D.top -
|
|
5546
|
+
const A = n === "horizontal" ? D.top - m.top + D.height / 2 : D.left - m.left + D.width / 2;
|
|
5527
5547
|
w.push({ y: A });
|
|
5528
5548
|
}
|
|
5529
5549
|
if (x && C) {
|
|
5530
|
-
const A = n === "horizontal" ? C.top -
|
|
5550
|
+
const A = n === "horizontal" ? C.top - m.top + C.height / 2 : C.left - m.left + C.width / 2;
|
|
5531
5551
|
P.push({ y: A });
|
|
5532
5552
|
}
|
|
5533
5553
|
}
|
|
5534
|
-
const M = 2,
|
|
5554
|
+
const M = 2, S = (() => {
|
|
5535
5555
|
if (w.length <= 1) return !1;
|
|
5536
5556
|
const z = w.some(
|
|
5537
|
-
(A) => A.y <
|
|
5538
|
-
),
|
|
5539
|
-
(A) => A.y >
|
|
5557
|
+
(A) => A.y < p.y - M
|
|
5558
|
+
), U = w.some(
|
|
5559
|
+
(A) => A.y > p.y + M
|
|
5540
5560
|
), D = w.some(
|
|
5541
|
-
(A) => Math.abs(A.y -
|
|
5561
|
+
(A) => Math.abs(A.y - p.y) <= M
|
|
5542
5562
|
);
|
|
5543
|
-
return [z,
|
|
5563
|
+
return [z, U, D].filter(Boolean).length > 1;
|
|
5544
5564
|
})(), I = (() => {
|
|
5545
5565
|
if (P.length <= 1) return !1;
|
|
5546
5566
|
const z = P.some(
|
|
5547
|
-
(A) => A.y <
|
|
5548
|
-
),
|
|
5549
|
-
(A) => A.y >
|
|
5567
|
+
(A) => A.y < b.y - M
|
|
5568
|
+
), U = P.some(
|
|
5569
|
+
(A) => A.y > b.y + M
|
|
5550
5570
|
), D = P.some(
|
|
5551
|
-
(A) => Math.abs(A.y -
|
|
5571
|
+
(A) => Math.abs(A.y - b.y) <= M
|
|
5552
5572
|
);
|
|
5553
|
-
return [z,
|
|
5573
|
+
return [z, U, D].filter(Boolean).length > 1;
|
|
5554
5574
|
})();
|
|
5555
5575
|
return {
|
|
5556
5576
|
connectors: s.descendants.flatMap((z) => {
|
|
5557
|
-
const { props:
|
|
5577
|
+
const { props: U } = z, D = [], [C, A] = [U.end, U.start], K = U.disabled;
|
|
5558
5578
|
if (g && C) {
|
|
5559
5579
|
let V;
|
|
5560
5580
|
switch (n) {
|
|
5561
5581
|
case "vertical": {
|
|
5562
5582
|
V = {
|
|
5563
|
-
x: C.left -
|
|
5564
|
-
y: C.top -
|
|
5583
|
+
x: C.left - m.left + C.width / 2,
|
|
5584
|
+
y: C.top - m.top
|
|
5565
5585
|
};
|
|
5566
5586
|
break;
|
|
5567
5587
|
}
|
|
5568
5588
|
case "horizontal": {
|
|
5569
|
-
const R = C.top -
|
|
5589
|
+
const R = C.top - m.top + C.height / 2;
|
|
5570
5590
|
V = {
|
|
5571
|
-
x: C.left -
|
|
5591
|
+
x: C.left - m.left,
|
|
5572
5592
|
y: R
|
|
5573
5593
|
};
|
|
5574
5594
|
break;
|
|
@@ -5577,13 +5597,13 @@ function yh({
|
|
|
5577
5597
|
throw new Error(`Unknown orientation: ${n}`);
|
|
5578
5598
|
}
|
|
5579
5599
|
D.push({
|
|
5580
|
-
x1:
|
|
5581
|
-
y1:
|
|
5600
|
+
x1: p.x,
|
|
5601
|
+
y1: p.y,
|
|
5582
5602
|
x2: V.x,
|
|
5583
5603
|
y2: V.y,
|
|
5584
5604
|
isBottom: !1,
|
|
5585
|
-
disabled:
|
|
5586
|
-
single: !
|
|
5605
|
+
disabled: y?.props.disabled || K,
|
|
5606
|
+
single: !S
|
|
5587
5607
|
});
|
|
5588
5608
|
}
|
|
5589
5609
|
if (x && A) {
|
|
@@ -5591,15 +5611,15 @@ function yh({
|
|
|
5591
5611
|
switch (n) {
|
|
5592
5612
|
case "vertical": {
|
|
5593
5613
|
V = {
|
|
5594
|
-
x: A.left -
|
|
5595
|
-
y: A.bottom -
|
|
5614
|
+
x: A.left - m.left + A.width / 2,
|
|
5615
|
+
y: A.bottom - m.top
|
|
5596
5616
|
};
|
|
5597
5617
|
break;
|
|
5598
5618
|
}
|
|
5599
5619
|
case "horizontal": {
|
|
5600
|
-
const R = A.top -
|
|
5620
|
+
const R = A.top - m.top + A.height / 2;
|
|
5601
5621
|
V = {
|
|
5602
|
-
x: A.right -
|
|
5622
|
+
x: A.right - m.left,
|
|
5603
5623
|
y: R
|
|
5604
5624
|
};
|
|
5605
5625
|
break;
|
|
@@ -5610,8 +5630,8 @@ function yh({
|
|
|
5610
5630
|
D.push({
|
|
5611
5631
|
x1: V.x,
|
|
5612
5632
|
y1: V.y,
|
|
5613
|
-
x2:
|
|
5614
|
-
y2:
|
|
5633
|
+
x2: b.x,
|
|
5634
|
+
y2: b.y,
|
|
5615
5635
|
isBottom: !0,
|
|
5616
5636
|
disabled: K || v?.props.disabled,
|
|
5617
5637
|
single: !I
|
|
@@ -5620,16 +5640,16 @@ function yh({
|
|
|
5620
5640
|
return D;
|
|
5621
5641
|
}),
|
|
5622
5642
|
junctions: {
|
|
5623
|
-
start: g &&
|
|
5624
|
-
x: n === "vertical" ?
|
|
5625
|
-
y: n === "vertical" ?
|
|
5643
|
+
start: g && S ? {
|
|
5644
|
+
x: n === "vertical" ? p.x : p.x + 32,
|
|
5645
|
+
y: n === "vertical" ? p.y + 32 : p.y
|
|
5626
5646
|
} : void 0,
|
|
5627
5647
|
end: x && I ? {
|
|
5628
|
-
x: n === "vertical" ?
|
|
5629
|
-
y: n === "vertical" ?
|
|
5648
|
+
x: n === "vertical" ? b.x : b.x - 32,
|
|
5649
|
+
y: n === "vertical" ? b.y - 32 : b.y
|
|
5630
5650
|
} : void 0
|
|
5631
5651
|
},
|
|
5632
|
-
containerRect:
|
|
5652
|
+
containerRect: m
|
|
5633
5653
|
};
|
|
5634
5654
|
})();
|
|
5635
5655
|
return /* @__PURE__ */ Dt(
|
|
@@ -5637,24 +5657,24 @@ function yh({
|
|
|
5637
5657
|
{
|
|
5638
5658
|
ref: i,
|
|
5639
5659
|
className: le(
|
|
5640
|
-
"relative",
|
|
5660
|
+
"relative isolate",
|
|
5641
5661
|
n === "horizontal" ? "px-16 -mx-16" : "py-16 -my-16"
|
|
5642
5662
|
),
|
|
5643
5663
|
"data-node-index": l,
|
|
5644
5664
|
children: [
|
|
5645
|
-
/* @__PURE__ */ E("div", { className: "absolute inset-0 pointer-events-none z-
|
|
5646
|
-
|
|
5665
|
+
/* @__PURE__ */ E("div", { className: "absolute inset-0 pointer-events-none z-1", children: d && /* @__PURE__ */ Dt(io, { connectors: d.connectors, orientation: n, children: [
|
|
5666
|
+
d.junctions?.start && /* @__PURE__ */ E(
|
|
5647
5667
|
"g",
|
|
5648
5668
|
{
|
|
5649
|
-
transform: `translate(${
|
|
5650
|
-
children: /* @__PURE__ */ E(
|
|
5669
|
+
transform: `translate(${d.junctions.start.x} ${d.junctions.start.y})`,
|
|
5670
|
+
children: /* @__PURE__ */ E(di, {})
|
|
5651
5671
|
}
|
|
5652
5672
|
),
|
|
5653
|
-
|
|
5673
|
+
d.junctions?.end && /* @__PURE__ */ E(
|
|
5654
5674
|
"g",
|
|
5655
5675
|
{
|
|
5656
|
-
transform: `translate(${
|
|
5657
|
-
children: /* @__PURE__ */ E(
|
|
5676
|
+
transform: `translate(${d.junctions.end.x} ${d.junctions.end.y})`,
|
|
5677
|
+
children: /* @__PURE__ */ E(di, {})
|
|
5658
5678
|
}
|
|
5659
5679
|
)
|
|
5660
5680
|
] }) }),
|
|
@@ -5674,7 +5694,7 @@ function yh({
|
|
|
5674
5694
|
}
|
|
5675
5695
|
);
|
|
5676
5696
|
}
|
|
5677
|
-
function
|
|
5697
|
+
function di({ size: t = 6 }) {
|
|
5678
5698
|
const e = t / 2;
|
|
5679
5699
|
return /* @__PURE__ */ E(
|
|
5680
5700
|
"rect",
|
|
@@ -5688,13 +5708,13 @@ function hi({ size: t = 6 }) {
|
|
|
5688
5708
|
}
|
|
5689
5709
|
);
|
|
5690
5710
|
}
|
|
5691
|
-
const
|
|
5711
|
+
const Ph = Object.assign(gh, {
|
|
5692
5712
|
Node: fo,
|
|
5693
|
-
Parallel:
|
|
5713
|
+
Parallel: xh,
|
|
5694
5714
|
List: uo,
|
|
5695
5715
|
Anchor: po
|
|
5696
5716
|
});
|
|
5697
5717
|
export {
|
|
5698
|
-
|
|
5718
|
+
Ph as Flow
|
|
5699
5719
|
};
|
|
5700
5720
|
//# sourceMappingURL=flow.js.map
|