@glodon-aiot/react-components 3.3.0-beta.14 → 3.3.0-beta.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (414) hide show
  1. package/dist/es/_virtual/_commonjsHelpers.mjs +8 -0
  2. package/dist/es/_virtual/index.mjs +4 -0
  3. package/dist/es/_virtual/index2.mjs +4 -0
  4. package/dist/es/_virtual/index3.mjs +4 -0
  5. package/dist/es/_virtual/lib.mjs +4 -0
  6. package/dist/es/_virtual/prism-core.mjs +4 -0
  7. package/dist/es/_virtual/types.mjs +4 -0
  8. package/dist/es/_virtual/ua-parser.min.mjs +4 -0
  9. package/dist/es/components/Copy/index.mjs +44 -0
  10. package/dist/es/components/Copy/style.less.mjs +4 -0
  11. package/dist/es/components/Markdown/ATag/index.mjs +47 -0
  12. package/dist/es/components/Markdown/Code/index.mjs +69 -0
  13. package/dist/es/components/Markdown/Image/index.mjs +60 -0
  14. package/dist/es/components/Markdown/Video/index.mjs +22 -0
  15. package/dist/es/components/Markdown/index.mjs +75 -0
  16. package/dist/es/components/Markdown/style.less.mjs +4 -0
  17. package/dist/es/index.mjs +30 -25
  18. package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +9 -0
  19. package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +8 -0
  20. package/dist/es/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
  21. package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
  22. package/dist/es/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +7 -0
  23. package/dist/es/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +7 -0
  24. package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +15 -0
  25. package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +15 -0
  26. package/dist/es/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
  27. package/dist/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +16 -0
  28. package/dist/es/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
  29. package/dist/es/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
  30. package/dist/es/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +12 -0
  31. package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +201 -0
  32. package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +1087 -0
  33. package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +104 -0
  34. package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +568 -0
  35. package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +158 -0
  36. package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +908 -0
  37. package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +35 -0
  38. package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +242 -0
  39. package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +33 -0
  40. package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +20 -0
  41. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.css.mjs +4 -0
  42. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +78 -0
  43. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +14 -0
  44. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +34 -0
  45. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +178 -0
  46. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +83 -0
  47. package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +5 -0
  48. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.css.mjs +4 -0
  49. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +84 -0
  50. package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +5 -0
  51. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.css.mjs +4 -0
  52. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +9 -0
  53. package/dist/es/node_modules/antd-mobile/es/global/global.css.mjs +4 -0
  54. package/dist/es/node_modules/antd-mobile/es/global/index.mjs +4 -0
  55. package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +141 -0
  56. package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +9 -0
  57. package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +7 -0
  58. package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +4 -0
  59. package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +11 -0
  60. package/dist/es/node_modules/antd-mobile/es/utils/dev-log.mjs +7 -0
  61. package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +6 -0
  62. package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +22 -0
  63. package/dist/es/node_modules/antd-mobile/es/utils/is-dev.mjs +4 -0
  64. package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +11 -0
  65. package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +12 -0
  66. package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +47 -0
  67. package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +12 -0
  68. package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +13 -0
  69. package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +52 -0
  70. package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +11 -0
  71. package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +10 -0
  72. package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +15 -0
  73. package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +6 -0
  74. package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +8 -0
  75. package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +54 -0
  76. package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +32 -0
  77. package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +11 -0
  78. package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +19 -0
  79. package/dist/es/node_modules/character-reference-invalid/index.json.mjs +33 -0
  80. package/dist/es/node_modules/classnames/index.mjs +42 -0
  81. package/dist/es/node_modules/hast-util-parse-selector/index.mjs +14 -0
  82. package/dist/es/node_modules/is-alphabetical/index.mjs +8 -0
  83. package/dist/es/node_modules/is-alphanumerical/index.mjs +9 -0
  84. package/dist/es/node_modules/is-decimal/index.mjs +8 -0
  85. package/dist/es/node_modules/is-hexadecimal/index.mjs +8 -0
  86. package/dist/es/node_modules/parse-entities/decode-entity.browser.mjs +8 -0
  87. package/dist/es/node_modules/parse-entities/index.mjs +83 -0
  88. package/dist/es/node_modules/parse-entities/node_modules/character-entities-legacy/index.json.mjs +217 -0
  89. package/dist/es/node_modules/property-information/find.mjs +25 -0
  90. package/dist/es/node_modules/property-information/html.mjs +10 -0
  91. package/dist/es/node_modules/property-information/lib/aria.mjs +63 -0
  92. package/dist/es/node_modules/property-information/lib/html.mjs +354 -0
  93. package/dist/es/node_modules/property-information/lib/util/case-insensitive-transform.mjs +8 -0
  94. package/dist/es/node_modules/property-information/lib/util/case-sensitive-transform.mjs +7 -0
  95. package/dist/es/node_modules/property-information/lib/util/create.mjs +13 -0
  96. package/dist/es/node_modules/property-information/lib/util/defined-info.mjs +18 -0
  97. package/dist/es/node_modules/property-information/lib/util/info.mjs +19 -0
  98. package/dist/es/node_modules/property-information/lib/util/merge.mjs +11 -0
  99. package/dist/es/node_modules/property-information/lib/util/schema.mjs +10 -0
  100. package/dist/es/node_modules/property-information/lib/util/types.mjs +15 -0
  101. package/dist/es/node_modules/property-information/lib/xlink.mjs +20 -0
  102. package/dist/es/node_modules/property-information/lib/xml.mjs +16 -0
  103. package/dist/es/node_modules/property-information/lib/xmlns.mjs +16 -0
  104. package/dist/es/node_modules/property-information/normalize.mjs +7 -0
  105. package/dist/es/node_modules/react-device-detect/dist/lib.mjs +723 -0
  106. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.mjs +7 -0
  107. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/create-element.mjs +101 -0
  108. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/highlight.mjs +283 -0
  109. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.mjs +4 -0
  110. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/prism.mjs +10 -0
  111. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.mjs +195 -0
  112. package/dist/es/node_modules/refractor/core.mjs +111 -0
  113. package/dist/es/node_modules/refractor/index.mjs +553 -0
  114. package/dist/es/node_modules/refractor/lang/abap.mjs +60 -0
  115. package/dist/es/node_modules/refractor/lang/abnf.mjs +63 -0
  116. package/dist/es/node_modules/refractor/lang/actionscript.mjs +22 -0
  117. package/dist/es/node_modules/refractor/lang/ada.mjs +28 -0
  118. package/dist/es/node_modules/refractor/lang/agda.mjs +35 -0
  119. package/dist/es/node_modules/refractor/lang/al.mjs +35 -0
  120. package/dist/es/node_modules/refractor/lang/antlr4.mjs +72 -0
  121. package/dist/es/node_modules/refractor/lang/apacheconf.mjs +59 -0
  122. package/dist/es/node_modules/refractor/lang/apex.mjs +69 -0
  123. package/dist/es/node_modules/refractor/lang/apl.mjs +44 -0
  124. package/dist/es/node_modules/refractor/lang/applescript.mjs +26 -0
  125. package/dist/es/node_modules/refractor/lang/aql.mjs +57 -0
  126. package/dist/es/node_modules/refractor/lang/arduino.mjs +20 -0
  127. package/dist/es/node_modules/refractor/lang/arff.mjs +22 -0
  128. package/dist/es/node_modules/refractor/lang/asciidoc.mjs +208 -0
  129. package/dist/es/node_modules/refractor/lang/asm6502.mjs +41 -0
  130. package/dist/es/node_modules/refractor/lang/asmatmel.mjs +53 -0
  131. package/dist/es/node_modules/refractor/lang/aspnet.mjs +53 -0
  132. package/dist/es/node_modules/refractor/lang/autohotkey.mjs +40 -0
  133. package/dist/es/node_modules/refractor/lang/autoit.mjs +43 -0
  134. package/dist/es/node_modules/refractor/lang/avisynth.mjs +167 -0
  135. package/dist/es/node_modules/refractor/lang/avro-idl.mjs +50 -0
  136. package/dist/es/node_modules/refractor/lang/bash.mjs +206 -0
  137. package/dist/es/node_modules/refractor/lang/basic.mjs +29 -0
  138. package/dist/es/node_modules/refractor/lang/batch.mjs +95 -0
  139. package/dist/es/node_modules/refractor/lang/bbcode.mjs +36 -0
  140. package/dist/es/node_modules/refractor/lang/bicep.mjs +72 -0
  141. package/dist/es/node_modules/refractor/lang/birb.mjs +32 -0
  142. package/dist/es/node_modules/refractor/lang/bison.mjs +52 -0
  143. package/dist/es/node_modules/refractor/lang/bnf.mjs +31 -0
  144. package/dist/es/node_modules/refractor/lang/brainfuck.mjs +32 -0
  145. package/dist/es/node_modules/refractor/lang/brightscript.mjs +55 -0
  146. package/dist/es/node_modules/refractor/lang/bro.mjs +39 -0
  147. package/dist/es/node_modules/refractor/lang/bsl.mjs +77 -0
  148. package/dist/es/node_modules/refractor/lang/c.mjs +78 -0
  149. package/dist/es/node_modules/refractor/lang/cfscript.mjs +44 -0
  150. package/dist/es/node_modules/refractor/lang/chaiscript.mjs +65 -0
  151. package/dist/es/node_modules/refractor/lang/cil.mjs +31 -0
  152. package/dist/es/node_modules/refractor/lang/clike.mjs +36 -0
  153. package/dist/es/node_modules/refractor/lang/clojure.mjs +42 -0
  154. package/dist/es/node_modules/refractor/lang/cmake.mjs +41 -0
  155. package/dist/es/node_modules/refractor/lang/cobol.mjs +58 -0
  156. package/dist/es/node_modules/refractor/lang/coffeescript.mjs +86 -0
  157. package/dist/es/node_modules/refractor/lang/concurnas.mjs +69 -0
  158. package/dist/es/node_modules/refractor/lang/coq.mjs +52 -0
  159. package/dist/es/node_modules/refractor/lang/cpp.mjs +98 -0
  160. package/dist/es/node_modules/refractor/lang/crystal.mjs +63 -0
  161. package/dist/es/node_modules/refractor/lang/csharp.mjs +277 -0
  162. package/dist/es/node_modules/refractor/lang/cshtml.mjs +104 -0
  163. package/dist/es/node_modules/refractor/lang/csp.mjs +61 -0
  164. package/dist/es/node_modules/refractor/lang/css-extras.mjs +109 -0
  165. package/dist/es/node_modules/refractor/lang/css.mjs +63 -0
  166. package/dist/es/node_modules/refractor/lang/csv.mjs +16 -0
  167. package/dist/es/node_modules/refractor/lang/cypher.mjs +44 -0
  168. package/dist/es/node_modules/refractor/lang/d.mjs +77 -0
  169. package/dist/es/node_modules/refractor/lang/dart.mjs +72 -0
  170. package/dist/es/node_modules/refractor/lang/dataweave.mjs +49 -0
  171. package/dist/es/node_modules/refractor/lang/dax.mjs +39 -0
  172. package/dist/es/node_modules/refractor/lang/dhall.mjs +74 -0
  173. package/dist/es/node_modules/refractor/lang/diff.mjs +54 -0
  174. package/dist/es/node_modules/refractor/lang/django.mjs +60 -0
  175. package/dist/es/node_modules/refractor/lang/dns-zone-file.mjs +40 -0
  176. package/dist/es/node_modules/refractor/lang/docker.mjs +83 -0
  177. package/dist/es/node_modules/refractor/lang/dot.mjs +75 -0
  178. package/dist/es/node_modules/refractor/lang/ebnf.mjs +32 -0
  179. package/dist/es/node_modules/refractor/lang/editorconfig.mjs +39 -0
  180. package/dist/es/node_modules/refractor/lang/eiffel.mjs +46 -0
  181. package/dist/es/node_modules/refractor/lang/ejs.mjs +33 -0
  182. package/dist/es/node_modules/refractor/lang/elixir.mjs +100 -0
  183. package/dist/es/node_modules/refractor/lang/elm.mjs +54 -0
  184. package/dist/es/node_modules/refractor/lang/erb.mjs +35 -0
  185. package/dist/es/node_modules/refractor/lang/erlang.mjs +47 -0
  186. package/dist/es/node_modules/refractor/lang/etlua.mjs +33 -0
  187. package/dist/es/node_modules/refractor/lang/excel-formula.mjs +74 -0
  188. package/dist/es/node_modules/refractor/lang/factor.mjs +569 -0
  189. package/dist/es/node_modules/refractor/lang/false.mjs +39 -0
  190. package/dist/es/node_modules/refractor/lang/firestore-security-rules.mjs +43 -0
  191. package/dist/es/node_modules/refractor/lang/flow.mjs +31 -0
  192. package/dist/es/node_modules/refractor/lang/fortran.mjs +49 -0
  193. package/dist/es/node_modules/refractor/lang/fsharp.mjs +76 -0
  194. package/dist/es/node_modules/refractor/lang/ftl.mjs +102 -0
  195. package/dist/es/node_modules/refractor/lang/gap.mjs +57 -0
  196. package/dist/es/node_modules/refractor/lang/gcode.mjs +28 -0
  197. package/dist/es/node_modules/refractor/lang/gdscript.mjs +36 -0
  198. package/dist/es/node_modules/refractor/lang/gedcom.mjs +40 -0
  199. package/dist/es/node_modules/refractor/lang/gherkin.mjs +94 -0
  200. package/dist/es/node_modules/refractor/lang/git.mjs +75 -0
  201. package/dist/es/node_modules/refractor/lang/glsl.mjs +18 -0
  202. package/dist/es/node_modules/refractor/lang/gml.mjs +19 -0
  203. package/dist/es/node_modules/refractor/lang/gn.mjs +55 -0
  204. package/dist/es/node_modules/refractor/lang/go-module.mjs +34 -0
  205. package/dist/es/node_modules/refractor/lang/go.mjs +36 -0
  206. package/dist/es/node_modules/refractor/lang/graphql.mjs +133 -0
  207. package/dist/es/node_modules/refractor/lang/groovy.mjs +58 -0
  208. package/dist/es/node_modules/refractor/lang/haml.mjs +132 -0
  209. package/dist/es/node_modules/refractor/lang/handlebars.mjs +46 -0
  210. package/dist/es/node_modules/refractor/lang/haskell.mjs +76 -0
  211. package/dist/es/node_modules/refractor/lang/haxe.mjs +84 -0
  212. package/dist/es/node_modules/refractor/lang/hcl.mjs +68 -0
  213. package/dist/es/node_modules/refractor/lang/hlsl.mjs +31 -0
  214. package/dist/es/node_modules/refractor/lang/hoon.mjs +26 -0
  215. package/dist/es/node_modules/refractor/lang/hpkp.mjs +20 -0
  216. package/dist/es/node_modules/refractor/lang/hsts.mjs +20 -0
  217. package/dist/es/node_modules/refractor/lang/http.mjs +126 -0
  218. package/dist/es/node_modules/refractor/lang/ichigojam.mjs +25 -0
  219. package/dist/es/node_modules/refractor/lang/icon.mjs +32 -0
  220. package/dist/es/node_modules/refractor/lang/icu-message-format.mjs +136 -0
  221. package/dist/es/node_modules/refractor/lang/idris.mjs +30 -0
  222. package/dist/es/node_modules/refractor/lang/iecst.mjs +38 -0
  223. package/dist/es/node_modules/refractor/lang/ignore.mjs +30 -0
  224. package/dist/es/node_modules/refractor/lang/inform7.mjs +69 -0
  225. package/dist/es/node_modules/refractor/lang/ini.mjs +52 -0
  226. package/dist/es/node_modules/refractor/lang/io.mjs +34 -0
  227. package/dist/es/node_modules/refractor/lang/j.mjs +40 -0
  228. package/dist/es/node_modules/refractor/lang/java.mjs +86 -0
  229. package/dist/es/node_modules/refractor/lang/javadoc.mjs +89 -0
  230. package/dist/es/node_modules/refractor/lang/javadoclike.mjs +60 -0
  231. package/dist/es/node_modules/refractor/lang/javascript.mjs +114 -0
  232. package/dist/es/node_modules/refractor/lang/javastacktrace.mjs +146 -0
  233. package/dist/es/node_modules/refractor/lang/jexl.mjs +26 -0
  234. package/dist/es/node_modules/refractor/lang/jolie.mjs +51 -0
  235. package/dist/es/node_modules/refractor/lang/jq.mjs +71 -0
  236. package/dist/es/node_modules/refractor/lang/js-extras.mjs +104 -0
  237. package/dist/es/node_modules/refractor/lang/js-templates.mjs +153 -0
  238. package/dist/es/node_modules/refractor/lang/jsdoc.mjs +83 -0
  239. package/dist/es/node_modules/refractor/lang/json.mjs +36 -0
  240. package/dist/es/node_modules/refractor/lang/json5.mjs +32 -0
  241. package/dist/es/node_modules/refractor/lang/jsonp.mjs +20 -0
  242. package/dist/es/node_modules/refractor/lang/jsstacktrace.mjs +53 -0
  243. package/dist/es/node_modules/refractor/lang/jsx.mjs +61 -0
  244. package/dist/es/node_modules/refractor/lang/julia.mjs +47 -0
  245. package/dist/es/node_modules/refractor/lang/keepalived.mjs +54 -0
  246. package/dist/es/node_modules/refractor/lang/keyman.mjs +55 -0
  247. package/dist/es/node_modules/refractor/lang/kotlin.mjs +81 -0
  248. package/dist/es/node_modules/refractor/lang/kumir.mjs +85 -0
  249. package/dist/es/node_modules/refractor/lang/kusto.mjs +47 -0
  250. package/dist/es/node_modules/refractor/lang/latex.mjs +68 -0
  251. package/dist/es/node_modules/refractor/lang/latte.mjs +68 -0
  252. package/dist/es/node_modules/refractor/lang/less.mjs +51 -0
  253. package/dist/es/node_modules/refractor/lang/lilypond.mjs +77 -0
  254. package/dist/es/node_modules/refractor/lang/liquid.mjs +68 -0
  255. package/dist/es/node_modules/refractor/lang/lisp.mjs +158 -0
  256. package/dist/es/node_modules/refractor/lang/livescript.mjs +119 -0
  257. package/dist/es/node_modules/refractor/lang/llvm.mjs +31 -0
  258. package/dist/es/node_modules/refractor/lang/log.mjs +103 -0
  259. package/dist/es/node_modules/refractor/lang/lolcode.mjs +57 -0
  260. package/dist/es/node_modules/refractor/lang/lua.mjs +29 -0
  261. package/dist/es/node_modules/refractor/lang/magma.mjs +42 -0
  262. package/dist/es/node_modules/refractor/lang/makefile.mjs +42 -0
  263. package/dist/es/node_modules/refractor/lang/markdown.mjs +306 -0
  264. package/dist/es/node_modules/refractor/lang/markup-templating.mjs +74 -0
  265. package/dist/es/node_modules/refractor/lang/markup.mjs +154 -0
  266. package/dist/es/node_modules/refractor/lang/matlab.mjs +25 -0
  267. package/dist/es/node_modules/refractor/lang/maxscript.mjs +70 -0
  268. package/dist/es/node_modules/refractor/lang/mel.mjs +49 -0
  269. package/dist/es/node_modules/refractor/lang/mermaid.mjs +116 -0
  270. package/dist/es/node_modules/refractor/lang/mizar.mjs +24 -0
  271. package/dist/es/node_modules/refractor/lang/mongodb.mjs +287 -0
  272. package/dist/es/node_modules/refractor/lang/monkey.mjs +40 -0
  273. package/dist/es/node_modules/refractor/lang/moonscript.mjs +63 -0
  274. package/dist/es/node_modules/refractor/lang/n1ql.mjs +34 -0
  275. package/dist/es/node_modules/refractor/lang/n4js.mjs +22 -0
  276. package/dist/es/node_modules/refractor/lang/nand2tetris-hdl.mjs +21 -0
  277. package/dist/es/node_modules/refractor/lang/naniscript.mjs +140 -0
  278. package/dist/es/node_modules/refractor/lang/nasm.mjs +31 -0
  279. package/dist/es/node_modules/refractor/lang/neon.mjs +52 -0
  280. package/dist/es/node_modules/refractor/lang/nevod.mjs +125 -0
  281. package/dist/es/node_modules/refractor/lang/nginx.mjs +61 -0
  282. package/dist/es/node_modules/refractor/lang/nim.mjs +54 -0
  283. package/dist/es/node_modules/refractor/lang/nix.mjs +45 -0
  284. package/dist/es/node_modules/refractor/lang/nsis.mjs +37 -0
  285. package/dist/es/node_modules/refractor/lang/objectivec.mjs +23 -0
  286. package/dist/es/node_modules/refractor/lang/ocaml.mjs +64 -0
  287. package/dist/es/node_modules/refractor/lang/opencl.mjs +62 -0
  288. package/dist/es/node_modules/refractor/lang/openqasm.mjs +29 -0
  289. package/dist/es/node_modules/refractor/lang/oz.mjs +37 -0
  290. package/dist/es/node_modules/refractor/lang/parigp.mjs +36 -0
  291. package/dist/es/node_modules/refractor/lang/parser.mjs +80 -0
  292. package/dist/es/node_modules/refractor/lang/pascal.mjs +66 -0
  293. package/dist/es/node_modules/refractor/lang/pascaligo.mjs +70 -0
  294. package/dist/es/node_modules/refractor/lang/pcaxis.mjs +63 -0
  295. package/dist/es/node_modules/refractor/lang/peoplecode.mjs +51 -0
  296. package/dist/es/node_modules/refractor/lang/perl.mjs +134 -0
  297. package/dist/es/node_modules/refractor/lang/php-extras.mjs +29 -0
  298. package/dist/es/node_modules/refractor/lang/php.mjs +301 -0
  299. package/dist/es/node_modules/refractor/lang/phpdoc.mjs +34 -0
  300. package/dist/es/node_modules/refractor/lang/plsql.mjs +30 -0
  301. package/dist/es/node_modules/refractor/lang/powerquery.mjs +44 -0
  302. package/dist/es/node_modules/refractor/lang/powershell.mjs +58 -0
  303. package/dist/es/node_modules/refractor/lang/processing.mjs +25 -0
  304. package/dist/es/node_modules/refractor/lang/prolog.mjs +31 -0
  305. package/dist/es/node_modules/refractor/lang/promql.mjs +74 -0
  306. package/dist/es/node_modules/refractor/lang/properties.mjs +21 -0
  307. package/dist/es/node_modules/refractor/lang/protobuf.mjs +47 -0
  308. package/dist/es/node_modules/refractor/lang/psl.mjs +47 -0
  309. package/dist/es/node_modules/refractor/lang/pug.mjs +173 -0
  310. package/dist/es/node_modules/refractor/lang/puppet.mjs +140 -0
  311. package/dist/es/node_modules/refractor/lang/pure.mjs +72 -0
  312. package/dist/es/node_modules/refractor/lang/purebasic.mjs +63 -0
  313. package/dist/es/node_modules/refractor/lang/purescript.mjs +41 -0
  314. package/dist/es/node_modules/refractor/lang/python.mjs +73 -0
  315. package/dist/es/node_modules/refractor/lang/q.mjs +62 -0
  316. package/dist/es/node_modules/refractor/lang/qml.mjs +67 -0
  317. package/dist/es/node_modules/refractor/lang/qore.mjs +32 -0
  318. package/dist/es/node_modules/refractor/lang/qsharp.mjs +93 -0
  319. package/dist/es/node_modules/refractor/lang/r.mjs +31 -0
  320. package/dist/es/node_modules/refractor/lang/racket.mjs +29 -0
  321. package/dist/es/node_modules/refractor/lang/reason.mjs +33 -0
  322. package/dist/es/node_modules/refractor/lang/regex.mjs +97 -0
  323. package/dist/es/node_modules/refractor/lang/rego.mjs +37 -0
  324. package/dist/es/node_modules/refractor/lang/renpy.mjs +30 -0
  325. package/dist/es/node_modules/refractor/lang/rest.mjs +199 -0
  326. package/dist/es/node_modules/refractor/lang/rip.mjs +41 -0
  327. package/dist/es/node_modules/refractor/lang/roboconf.mjs +39 -0
  328. package/dist/es/node_modules/refractor/lang/robotframework.mjs +95 -0
  329. package/dist/es/node_modules/refractor/lang/ruby.mjs +159 -0
  330. package/dist/es/node_modules/refractor/lang/rust.mjs +122 -0
  331. package/dist/es/node_modules/refractor/lang/sas.mjs +305 -0
  332. package/dist/es/node_modules/refractor/lang/sass.mjs +69 -0
  333. package/dist/es/node_modules/refractor/lang/scala.mjs +59 -0
  334. package/dist/es/node_modules/refractor/lang/scheme.mjs +120 -0
  335. package/dist/es/node_modules/refractor/lang/scss.mjs +82 -0
  336. package/dist/es/node_modules/refractor/lang/shell-session.mjs +69 -0
  337. package/dist/es/node_modules/refractor/lang/smali.mjs +84 -0
  338. package/dist/es/node_modules/refractor/lang/smalltalk.mjs +47 -0
  339. package/dist/es/node_modules/refractor/lang/smarty.mjs +106 -0
  340. package/dist/es/node_modules/refractor/lang/sml.mjs +64 -0
  341. package/dist/es/node_modules/refractor/lang/solidity.mjs +28 -0
  342. package/dist/es/node_modules/refractor/lang/solution-file.mjs +58 -0
  343. package/dist/es/node_modules/refractor/lang/soy.mjs +77 -0
  344. package/dist/es/node_modules/refractor/lang/sparql.mjs +24 -0
  345. package/dist/es/node_modules/refractor/lang/splunk-spl.mjs +36 -0
  346. package/dist/es/node_modules/refractor/lang/sqf.mjs +42 -0
  347. package/dist/es/node_modules/refractor/lang/sql.mjs +42 -0
  348. package/dist/es/node_modules/refractor/lang/squirrel.mjs +50 -0
  349. package/dist/es/node_modules/refractor/lang/stan.mjs +63 -0
  350. package/dist/es/node_modules/refractor/lang/stylus.mjs +141 -0
  351. package/dist/es/node_modules/refractor/lang/swift.mjs +125 -0
  352. package/dist/es/node_modules/refractor/lang/systemd.mjs +65 -0
  353. package/dist/es/node_modules/refractor/lang/t4-cs.mjs +17 -0
  354. package/dist/es/node_modules/refractor/lang/t4-templating.mjs +57 -0
  355. package/dist/es/node_modules/refractor/lang/t4-vb.mjs +17 -0
  356. package/dist/es/node_modules/refractor/lang/tap.mjs +35 -0
  357. package/dist/es/node_modules/refractor/lang/tcl.mjs +51 -0
  358. package/dist/es/node_modules/refractor/lang/textile.mjs +248 -0
  359. package/dist/es/node_modules/refractor/lang/toml.mjs +54 -0
  360. package/dist/es/node_modules/refractor/lang/tremor.mjs +67 -0
  361. package/dist/es/node_modules/refractor/lang/tsx.mjs +22 -0
  362. package/dist/es/node_modules/refractor/lang/tt2.mjs +53 -0
  363. package/dist/es/node_modules/refractor/lang/turtle.mjs +62 -0
  364. package/dist/es/node_modules/refractor/lang/twig.mjs +48 -0
  365. package/dist/es/node_modules/refractor/lang/typescript.mjs +57 -0
  366. package/dist/es/node_modules/refractor/lang/typoscript.mjs +81 -0
  367. package/dist/es/node_modules/refractor/lang/unrealscript.mjs +50 -0
  368. package/dist/es/node_modules/refractor/lang/uorazor.mjs +57 -0
  369. package/dist/es/node_modules/refractor/lang/uri.mjs +92 -0
  370. package/dist/es/node_modules/refractor/lang/v.mjs +85 -0
  371. package/dist/es/node_modules/refractor/lang/vala.mjs +87 -0
  372. package/dist/es/node_modules/refractor/lang/vbnet.mjs +34 -0
  373. package/dist/es/node_modules/refractor/lang/velocity.mjs +75 -0
  374. package/dist/es/node_modules/refractor/lang/verilog.mjs +38 -0
  375. package/dist/es/node_modules/refractor/lang/vhdl.mjs +35 -0
  376. package/dist/es/node_modules/refractor/lang/vim.mjs +22 -0
  377. package/dist/es/node_modules/refractor/lang/visual-basic.mjs +38 -0
  378. package/dist/es/node_modules/refractor/lang/warpscript.mjs +33 -0
  379. package/dist/es/node_modules/refractor/lang/wasm.mjs +36 -0
  380. package/dist/es/node_modules/refractor/lang/web-idl.mjs +89 -0
  381. package/dist/es/node_modules/refractor/lang/wiki.mjs +86 -0
  382. package/dist/es/node_modules/refractor/lang/wolfram.mjs +37 -0
  383. package/dist/es/node_modules/refractor/lang/wren.mjs +97 -0
  384. package/dist/es/node_modules/refractor/lang/xeora.mjs +121 -0
  385. package/dist/es/node_modules/refractor/lang/xml-doc.mjs +35 -0
  386. package/dist/es/node_modules/refractor/lang/xojo.mjs +30 -0
  387. package/dist/es/node_modules/refractor/lang/xquery.mjs +89 -0
  388. package/dist/es/node_modules/refractor/lang/yaml.mjs +78 -0
  389. package/dist/es/node_modules/refractor/lang/yang.mjs +32 -0
  390. package/dist/es/node_modules/refractor/lang/zig.mjs +80 -0
  391. package/dist/es/node_modules/refractor/node_modules/comma-separated-tokens/index.mjs +16 -0
  392. package/dist/es/node_modules/refractor/node_modules/hastscript/factory.mjs +77 -0
  393. package/dist/es/node_modules/refractor/node_modules/hastscript/html.mjs +8 -0
  394. package/dist/es/node_modules/refractor/node_modules/hastscript/index.mjs +5 -0
  395. package/dist/es/node_modules/refractor/node_modules/prismjs/components/prism-core.mjs +720 -0
  396. package/dist/es/node_modules/refractor/node_modules/space-separated-tokens/index.mjs +14 -0
  397. package/dist/es/node_modules/tslib/tslib.es6.mjs +30 -0
  398. package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +123 -0
  399. package/dist/es/node_modules/xtend/immutable.mjs +12 -0
  400. package/dist/es/utils/clipboard.mjs +38 -0
  401. package/dist/es/utils/markdown/index.mjs +29 -0
  402. package/dist/lib/index.js +25 -1
  403. package/dist/src/components/Copy/index.d.ts +5 -0
  404. package/dist/src/components/Markdown/ATag/index.d.ts +2 -0
  405. package/dist/src/components/Markdown/Code/index.d.ts +2 -0
  406. package/dist/src/components/Markdown/Image/index.d.ts +2 -0
  407. package/dist/src/components/Markdown/Video/index.d.ts +2 -0
  408. package/dist/src/components/Markdown/index.d.ts +9 -0
  409. package/dist/src/index.d.ts +2 -0
  410. package/dist/src/utils/clipboard.d.ts +11 -0
  411. package/dist/src/utils/markdown/index.d.ts +10 -0
  412. package/package.json +18 -2
  413. package/dist/es/style.css +0 -1
  414. package/dist/lib/style.css +0 -1
@@ -0,0 +1,1087 @@
1
+ var L = (e, t, i) => new Promise((s, n) => {
2
+ var o = (r) => {
3
+ try {
4
+ l(i.next(r));
5
+ } catch (d) {
6
+ n(d);
7
+ }
8
+ }, c = (r) => {
9
+ try {
10
+ l(i.throw(r));
11
+ } catch (d) {
12
+ n(d);
13
+ }
14
+ }, l = (r) => r.done ? s(r.value) : Promise.resolve(r.value).then(o, c);
15
+ l((i = i.apply(e, t)).next());
16
+ });
17
+ import { easings as se, Globals as q, createStringInterpolator as ne, useMemoOne as oe, createInterpolator as ae, isEqual as E, is as a, getFluidValue as O, toArray as R, each as S, frameLoop as _t, callFluidObservers as st, FluidValue as re, deprecateInterpolate as ue, useForceUpdate as ce, usePrev as St, useIsomorphicLayoutEffect as he, useOnce as de, hasFluidValue as U, addFluidObserver as ot, removeFluidObserver as Dt, eachProp as $, flush as it, flushCalls as J, noop as At, deprecateDirectCall as le, isAnimatedString as Nt, getFluidObservers as wt } from "../../shared/dist/react-spring-shared.esm.mjs";
18
+ import * as Qt from "react";
19
+ import { useContext as kt, useMemo as et, useRef as It } from "react";
20
+ import { getAnimatedType as ht, setAnimated as zt, getAnimated as j, getPayload as yt, AnimatedValue as fe, AnimatedString as Ct } from "../../animated/dist/react-spring-animated.esm.mjs";
21
+ import { raf as T } from "../../rafz/dist/react-spring-rafz.esm.mjs";
22
+ function w() {
23
+ return w = Object.assign ? Object.assign.bind() : function(e) {
24
+ for (var t = 1; t < arguments.length; t++) {
25
+ var i = arguments[t];
26
+ for (var s in i)
27
+ Object.prototype.hasOwnProperty.call(i, s) && (e[s] = i[s]);
28
+ }
29
+ return e;
30
+ }, w.apply(this, arguments);
31
+ }
32
+ function D(e, ...t) {
33
+ return a.fun(e) ? e(...t) : e;
34
+ }
35
+ const W = (e, t) => e === !0 || !!(t && e && (a.fun(e) ? e(t) : R(e).includes(t))), $t = (e, t) => a.obj(e) ? t && e[t] : e, Bt = (e, t) => e.default === !0 ? e[t] : e.default ? e.default[t] : void 0, me = (e) => e, vt = (e, t = me) => {
36
+ let i = pe;
37
+ e.default && e.default !== !0 && (e = e.default, i = Object.keys(e));
38
+ const s = {};
39
+ for (const n of i) {
40
+ const o = t(e[n], n);
41
+ a.und(o) || (s[n] = o);
42
+ }
43
+ return s;
44
+ }, pe = ["config", "onProps", "onStart", "onChange", "onPause", "onResume", "onRest"], ge = {
45
+ config: 1,
46
+ from: 1,
47
+ to: 1,
48
+ ref: 1,
49
+ loop: 1,
50
+ reset: 1,
51
+ pause: 1,
52
+ cancel: 1,
53
+ reverse: 1,
54
+ immediate: 1,
55
+ default: 1,
56
+ delay: 1,
57
+ onProps: 1,
58
+ onStart: 1,
59
+ onChange: 1,
60
+ onPause: 1,
61
+ onResume: 1,
62
+ onRest: 1,
63
+ onResolve: 1,
64
+ items: 1,
65
+ trail: 1,
66
+ sort: 1,
67
+ expires: 1,
68
+ initial: 1,
69
+ enter: 1,
70
+ update: 1,
71
+ leave: 1,
72
+ children: 1,
73
+ onDestroyed: 1,
74
+ keys: 1,
75
+ callId: 1,
76
+ parentId: 1
77
+ };
78
+ function _e(e) {
79
+ const t = {};
80
+ let i = 0;
81
+ if ($(e, (s, n) => {
82
+ ge[n] || (t[n] = s, i++);
83
+ }), i)
84
+ return t;
85
+ }
86
+ function Lt(e) {
87
+ const t = _e(e);
88
+ if (t) {
89
+ const i = {
90
+ to: t
91
+ };
92
+ return $(e, (s, n) => n in t || (i[n] = s)), i;
93
+ }
94
+ return w({}, e);
95
+ }
96
+ function Y(e) {
97
+ return e = O(e), a.arr(e) ? e.map(Y) : Nt(e) ? q.createStringInterpolator({
98
+ range: [0, 1],
99
+ output: [e, e]
100
+ })(1) : e;
101
+ }
102
+ function ye(e) {
103
+ for (const t in e)
104
+ return !0;
105
+ return !1;
106
+ }
107
+ function dt(e) {
108
+ return a.fun(e) || a.arr(e) && a.obj(e[0]);
109
+ }
110
+ function ve(e, t) {
111
+ var i;
112
+ (i = e.ref) == null || i.delete(e), t == null || t.delete(e);
113
+ }
114
+ function Pe(e, t) {
115
+ if (t && e.ref !== t) {
116
+ var i;
117
+ (i = e.ref) == null || i.delete(e), t.add(e), e.ref = t;
118
+ }
119
+ }
120
+ const be = {
121
+ default: {
122
+ tension: 170,
123
+ friction: 26
124
+ },
125
+ gentle: {
126
+ tension: 120,
127
+ friction: 14
128
+ },
129
+ wobbly: {
130
+ tension: 180,
131
+ friction: 12
132
+ },
133
+ stiff: {
134
+ tension: 210,
135
+ friction: 20
136
+ },
137
+ slow: {
138
+ tension: 280,
139
+ friction: 60
140
+ },
141
+ molasses: {
142
+ tension: 280,
143
+ friction: 120
144
+ }
145
+ }, lt = w({}, be.default, {
146
+ mass: 1,
147
+ damping: 1,
148
+ easing: se.linear,
149
+ clamp: !1
150
+ });
151
+ class Se {
152
+ constructor() {
153
+ this.tension = void 0, this.friction = void 0, this.frequency = void 0, this.damping = void 0, this.mass = void 0, this.velocity = 0, this.restVelocity = void 0, this.precision = void 0, this.progress = void 0, this.duration = void 0, this.easing = void 0, this.clamp = void 0, this.bounce = void 0, this.decay = void 0, this.round = void 0, Object.assign(this, lt);
154
+ }
155
+ }
156
+ function Ae(e, t, i) {
157
+ i && (i = w({}, i), Rt(i, t), t = w({}, i, t)), Rt(e, t), Object.assign(e, t);
158
+ for (const c in lt)
159
+ e[c] == null && (e[c] = lt[c]);
160
+ let {
161
+ mass: s,
162
+ frequency: n,
163
+ damping: o
164
+ } = e;
165
+ return a.und(n) || (n < 0.01 && (n = 0.01), o < 0 && (o = 0), e.tension = Math.pow(2 * Math.PI / n, 2) * s, e.friction = 4 * Math.PI * o * s / n), e;
166
+ }
167
+ function Rt(e, t) {
168
+ if (!a.und(t.decay))
169
+ e.duration = void 0;
170
+ else {
171
+ const i = !a.und(t.tension) || !a.und(t.friction);
172
+ (i || !a.und(t.frequency) || !a.und(t.damping) || !a.und(t.mass)) && (e.duration = void 0, e.decay = void 0), i && (e.frequency = void 0);
173
+ }
174
+ }
175
+ const Vt = [];
176
+ class we {
177
+ constructor() {
178
+ this.changed = !1, this.values = Vt, this.toValues = null, this.fromValues = Vt, this.to = void 0, this.from = void 0, this.config = new Se(), this.immediate = !1;
179
+ }
180
+ }
181
+ function Gt(e, {
182
+ key: t,
183
+ props: i,
184
+ defaultProps: s,
185
+ state: n,
186
+ actions: o
187
+ }) {
188
+ return new Promise((c, l) => {
189
+ var r;
190
+ let d, u, f = W((r = i.cancel) != null ? r : s == null ? void 0 : s.cancel, t);
191
+ if (f)
192
+ y();
193
+ else {
194
+ a.und(i.pause) || (n.paused = W(i.pause, t));
195
+ let m = s == null ? void 0 : s.pause;
196
+ m !== !0 && (m = n.paused || W(m, t)), d = D(i.delay || 0, t), m ? (n.resumeQueue.add(b), o.pause()) : (o.resume(), b());
197
+ }
198
+ function v() {
199
+ n.resumeQueue.add(b), n.timeouts.delete(u), u.cancel(), d = u.time - T.now();
200
+ }
201
+ function b() {
202
+ d > 0 && !q.skipAnimation ? (n.delayed = !0, u = T.setTimeout(y, d), n.pauseQueue.add(v), n.timeouts.add(u)) : y();
203
+ }
204
+ function y() {
205
+ n.delayed && (n.delayed = !1), n.pauseQueue.delete(v), n.timeouts.delete(u), e <= (n.cancelId || 0) && (f = !0);
206
+ try {
207
+ o.start(w({}, i, {
208
+ callId: e,
209
+ cancel: f
210
+ }), c);
211
+ } catch (m) {
212
+ l(m);
213
+ }
214
+ }
215
+ });
216
+ }
217
+ const Pt = (e, t) => t.length == 1 ? t[0] : t.some((i) => i.cancelled) ? z(e.get()) : t.every((i) => i.noop) ? Ht(e.get()) : V(e.get(), t.every((i) => i.finished)), Ht = (e) => ({
218
+ value: e,
219
+ noop: !0,
220
+ finished: !0,
221
+ cancelled: !1
222
+ }), V = (e, t, i = !1) => ({
223
+ value: e,
224
+ finished: t,
225
+ cancelled: i
226
+ }), z = (e) => ({
227
+ value: e,
228
+ cancelled: !0,
229
+ finished: !1
230
+ });
231
+ function Kt(e, t, i, s) {
232
+ const {
233
+ callId: n,
234
+ parentId: o,
235
+ onRest: c
236
+ } = t, {
237
+ asyncTo: l,
238
+ promise: r
239
+ } = i;
240
+ return !o && e === l && !t.reset ? r : i.promise = (() => L(this, null, function* () {
241
+ i.asyncId = n, i.asyncTo = e;
242
+ const d = vt(t, (h, p) => p === "onRest" ? void 0 : h);
243
+ let u, f;
244
+ const v = new Promise((h, p) => (u = h, f = p)), b = (h) => {
245
+ const p = n <= (i.cancelId || 0) && z(s) || n !== i.asyncId && V(s, !1);
246
+ if (p)
247
+ throw h.result = p, f(h), h;
248
+ }, y = (h, p) => {
249
+ const g = new Tt(), P = new Ft();
250
+ return (() => L(this, null, function* () {
251
+ if (q.skipAnimation)
252
+ throw X(i), P.result = V(s, !1), f(P), P;
253
+ b(g);
254
+ const _ = a.obj(h) ? w({}, h) : w({}, p, {
255
+ to: h
256
+ });
257
+ _.parentId = n, $(d, (I, Q) => {
258
+ a.und(_[Q]) && (_[Q] = I);
259
+ });
260
+ const A = yield s.start(_);
261
+ return b(g), i.paused && (yield new Promise((I) => {
262
+ i.resumeQueue.add(I);
263
+ })), A;
264
+ }))();
265
+ };
266
+ let m;
267
+ if (q.skipAnimation)
268
+ return X(i), V(s, !1);
269
+ try {
270
+ let h;
271
+ a.arr(e) ? h = ((p) => L(this, null, function* () {
272
+ for (const g of p)
273
+ yield y(g);
274
+ }))(e) : h = Promise.resolve(e(y, s.stop.bind(s))), yield Promise.all([h.then(u), v]), m = V(s.get(), !0, !1);
275
+ } catch (h) {
276
+ if (h instanceof Tt)
277
+ m = h.result;
278
+ else if (h instanceof Ft)
279
+ m = h.result;
280
+ else
281
+ throw h;
282
+ } finally {
283
+ n == i.asyncId && (i.asyncId = o, i.asyncTo = o ? l : void 0, i.promise = o ? r : void 0);
284
+ }
285
+ return a.fun(c) && T.batchedUpdates(() => {
286
+ c(m, s, s.item);
287
+ }), m;
288
+ }))();
289
+ }
290
+ function X(e, t) {
291
+ it(e.timeouts, (i) => i.cancel()), e.pauseQueue.clear(), e.resumeQueue.clear(), e.asyncId = e.asyncTo = e.promise = void 0, t && (e.cancelId = t);
292
+ }
293
+ class Tt extends Error {
294
+ constructor() {
295
+ super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."), this.result = void 0;
296
+ }
297
+ }
298
+ class Ft extends Error {
299
+ constructor() {
300
+ super("SkipAnimationSignal"), this.result = void 0;
301
+ }
302
+ }
303
+ const ft = (e) => e instanceof bt;
304
+ let Ie = 1;
305
+ class bt extends re {
306
+ constructor(...t) {
307
+ super(...t), this.id = Ie++, this.key = void 0, this._priority = 0;
308
+ }
309
+ get priority() {
310
+ return this._priority;
311
+ }
312
+ set priority(t) {
313
+ this._priority != t && (this._priority = t, this._onPriorityChange(t));
314
+ }
315
+ get() {
316
+ const t = j(this);
317
+ return t && t.getValue();
318
+ }
319
+ to(...t) {
320
+ return q.to(this, t);
321
+ }
322
+ interpolate(...t) {
323
+ return ue(), q.to(this, t);
324
+ }
325
+ toJSON() {
326
+ return this.get();
327
+ }
328
+ observerAdded(t) {
329
+ t == 1 && this._attach();
330
+ }
331
+ observerRemoved(t) {
332
+ t == 0 && this._detach();
333
+ }
334
+ _attach() {
335
+ }
336
+ _detach() {
337
+ }
338
+ _onChange(t, i = !1) {
339
+ st(this, {
340
+ type: "change",
341
+ parent: this,
342
+ value: t,
343
+ idle: i
344
+ });
345
+ }
346
+ _onPriorityChange(t) {
347
+ this.idle || _t.sort(this), st(this, {
348
+ type: "priority",
349
+ parent: this,
350
+ priority: t
351
+ });
352
+ }
353
+ }
354
+ const N = Symbol.for("SpringPhase"), Jt = 1, mt = 2, pt = 4, ut = (e) => (e[N] & Jt) > 0, M = (e) => (e[N] & mt) > 0, G = (e) => (e[N] & pt) > 0, Ot = (e, t) => t ? e[N] |= mt | Jt : e[N] &= ~mt, xt = (e, t) => t ? e[N] |= pt : e[N] &= ~pt;
355
+ class Ce extends bt {
356
+ constructor(t, i) {
357
+ if (super(), this.key = void 0, this.animation = new we(), this.queue = void 0, this.defaultProps = {}, this._state = {
358
+ paused: !1,
359
+ delayed: !1,
360
+ pauseQueue: /* @__PURE__ */ new Set(),
361
+ resumeQueue: /* @__PURE__ */ new Set(),
362
+ timeouts: /* @__PURE__ */ new Set()
363
+ }, this._pendingCalls = /* @__PURE__ */ new Set(), this._lastCallId = 0, this._lastToId = 0, this._memoizedDuration = 0, !a.und(t) || !a.und(i)) {
364
+ const s = a.obj(t) ? w({}, t) : w({}, i, {
365
+ from: t
366
+ });
367
+ a.und(s.default) && (s.default = !0), this.start(s);
368
+ }
369
+ }
370
+ get idle() {
371
+ return !(M(this) || this._state.asyncTo) || G(this);
372
+ }
373
+ get goal() {
374
+ return O(this.animation.to);
375
+ }
376
+ get velocity() {
377
+ const t = j(this);
378
+ return t instanceof fe ? t.lastVelocity || 0 : t.getPayload().map((i) => i.lastVelocity || 0);
379
+ }
380
+ get hasAnimated() {
381
+ return ut(this);
382
+ }
383
+ get isAnimating() {
384
+ return M(this);
385
+ }
386
+ get isPaused() {
387
+ return G(this);
388
+ }
389
+ get isDelayed() {
390
+ return this._state.delayed;
391
+ }
392
+ advance(t) {
393
+ let i = !0, s = !1;
394
+ const n = this.animation;
395
+ let {
396
+ config: o,
397
+ toValues: c
398
+ } = n;
399
+ const l = yt(n.to);
400
+ !l && U(n.to) && (c = R(O(n.to))), n.values.forEach((u, f) => {
401
+ if (u.done)
402
+ return;
403
+ const v = u.constructor == Ct ? 1 : l ? l[f].lastPosition : c[f];
404
+ let b = n.immediate, y = v;
405
+ if (!b) {
406
+ if (y = u.lastPosition, o.tension <= 0) {
407
+ u.done = !0;
408
+ return;
409
+ }
410
+ let m = u.elapsedTime += t;
411
+ const h = n.fromValues[f], p = u.v0 != null ? u.v0 : u.v0 = a.arr(o.velocity) ? o.velocity[f] : o.velocity;
412
+ let g;
413
+ const P = o.precision || (h == v ? 5e-3 : Math.min(1, Math.abs(v - h) * 1e-3));
414
+ if (a.und(o.duration))
415
+ if (o.decay) {
416
+ const _ = o.decay === !0 ? 0.998 : o.decay, A = Math.exp(-(1 - _) * m);
417
+ y = h + p / (1 - _) * (1 - A), b = Math.abs(u.lastPosition - y) <= P, g = p * A;
418
+ } else {
419
+ g = u.lastVelocity == null ? p : u.lastVelocity;
420
+ const _ = o.restVelocity || P / 10, A = o.clamp ? 0 : o.bounce, I = !a.und(A), Q = h == v ? u.v0 > 0 : h < v;
421
+ let x, tt = !1;
422
+ const C = 1, B = Math.ceil(t / C);
423
+ for (let F = 0; F < B && (x = Math.abs(g) > _, !(!x && (b = Math.abs(v - y) <= P, b))); ++F) {
424
+ I && (tt = y == v || y > v == Q, tt && (g = -g * A, y = v));
425
+ const k = -o.tension * 1e-6 * (y - v), rt = -o.friction * 1e-3 * g, ie = (k + rt) / o.mass;
426
+ g = g + ie * C, y = y + g * C;
427
+ }
428
+ }
429
+ else {
430
+ let _ = 1;
431
+ o.duration > 0 && (this._memoizedDuration !== o.duration && (this._memoizedDuration = o.duration, u.durationProgress > 0 && (u.elapsedTime = o.duration * u.durationProgress, m = u.elapsedTime += t)), _ = (o.progress || 0) + m / this._memoizedDuration, _ = _ > 1 ? 1 : _ < 0 ? 0 : _, u.durationProgress = _), y = h + o.easing(_) * (v - h), g = (y - u.lastPosition) / t, b = _ == 1;
432
+ }
433
+ u.lastVelocity = g, Number.isNaN(y) && (console.warn("Got NaN while animating:", this), b = !0);
434
+ }
435
+ l && !l[f].done && (b = !1), b ? u.done = !0 : i = !1, u.setValue(y, o.round) && (s = !0);
436
+ });
437
+ const r = j(this), d = r.getValue();
438
+ if (i) {
439
+ const u = O(n.to);
440
+ (d !== u || s) && !o.decay ? (r.setValue(u), this._onChange(u)) : s && o.decay && this._onChange(d), this._stop();
441
+ } else
442
+ s && this._onChange(d);
443
+ }
444
+ set(t) {
445
+ return T.batchedUpdates(() => {
446
+ this._stop(), this._focus(t), this._set(t);
447
+ }), this;
448
+ }
449
+ pause() {
450
+ this._update({
451
+ pause: !0
452
+ });
453
+ }
454
+ resume() {
455
+ this._update({
456
+ pause: !1
457
+ });
458
+ }
459
+ finish() {
460
+ if (M(this)) {
461
+ const {
462
+ to: t,
463
+ config: i
464
+ } = this.animation;
465
+ T.batchedUpdates(() => {
466
+ this._onStart(), i.decay || this._set(t, !1), this._stop();
467
+ });
468
+ }
469
+ return this;
470
+ }
471
+ update(t) {
472
+ return (this.queue || (this.queue = [])).push(t), this;
473
+ }
474
+ start(t, i) {
475
+ let s;
476
+ return a.und(t) ? (s = this.queue || [], this.queue = []) : s = [a.obj(t) ? t : w({}, i, {
477
+ to: t
478
+ })], Promise.all(s.map((n) => this._update(n))).then((n) => Pt(this, n));
479
+ }
480
+ stop(t) {
481
+ const {
482
+ to: i
483
+ } = this.animation;
484
+ return this._focus(this.get()), X(this._state, t && this._lastCallId), T.batchedUpdates(() => this._stop(i, t)), this;
485
+ }
486
+ reset() {
487
+ this._update({
488
+ reset: !0
489
+ });
490
+ }
491
+ eventObserved(t) {
492
+ t.type == "change" ? this._start() : t.type == "priority" && (this.priority = t.priority + 1);
493
+ }
494
+ _prepareNode(t) {
495
+ const i = this.key || "";
496
+ let {
497
+ to: s,
498
+ from: n
499
+ } = t;
500
+ s = a.obj(s) ? s[i] : s, (s == null || dt(s)) && (s = void 0), n = a.obj(n) ? n[i] : n, n == null && (n = void 0);
501
+ const o = {
502
+ to: s,
503
+ from: n
504
+ };
505
+ return ut(this) || (t.reverse && ([s, n] = [n, s]), n = O(n), a.und(n) ? j(this) || this._set(s) : this._set(n)), o;
506
+ }
507
+ _update(t, i) {
508
+ let s = w({}, t);
509
+ const {
510
+ key: n,
511
+ defaultProps: o
512
+ } = this;
513
+ s.default && Object.assign(o, vt(s, (r, d) => /^on/.test(d) ? $t(r, n) : r)), jt(this, s, "onProps"), K(this, "onProps", s, this);
514
+ const c = this._prepareNode(s);
515
+ if (Object.isFrozen(this))
516
+ throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");
517
+ const l = this._state;
518
+ return Gt(++this._lastCallId, {
519
+ key: n,
520
+ props: s,
521
+ defaultProps: o,
522
+ state: l,
523
+ actions: {
524
+ pause: () => {
525
+ G(this) || (xt(this, !0), J(l.pauseQueue), K(this, "onPause", V(this, H(this, this.animation.to)), this));
526
+ },
527
+ resume: () => {
528
+ G(this) && (xt(this, !1), M(this) && this._resume(), J(l.resumeQueue), K(this, "onResume", V(this, H(this, this.animation.to)), this));
529
+ },
530
+ start: this._merge.bind(this, c)
531
+ }
532
+ }).then((r) => {
533
+ if (s.loop && r.finished && !(i && r.noop)) {
534
+ const d = Wt(s);
535
+ if (d)
536
+ return this._update(d, !0);
537
+ }
538
+ return r;
539
+ });
540
+ }
541
+ _merge(t, i, s) {
542
+ if (i.cancel)
543
+ return this.stop(!0), s(z(this));
544
+ const n = !a.und(t.to), o = !a.und(t.from);
545
+ if (n || o)
546
+ if (i.callId > this._lastToId)
547
+ this._lastToId = i.callId;
548
+ else
549
+ return s(z(this));
550
+ const {
551
+ key: c,
552
+ defaultProps: l,
553
+ animation: r
554
+ } = this, {
555
+ to: d,
556
+ from: u
557
+ } = r;
558
+ let {
559
+ to: f = d,
560
+ from: v = u
561
+ } = t;
562
+ o && !n && (!i.default || a.und(f)) && (f = v), i.reverse && ([f, v] = [v, f]);
563
+ const b = !E(v, u);
564
+ b && (r.from = v), v = O(v);
565
+ const y = !E(f, d);
566
+ y && this._focus(f);
567
+ const m = dt(i.to), {
568
+ config: h
569
+ } = r, {
570
+ decay: p,
571
+ velocity: g
572
+ } = h;
573
+ (n || o) && (h.velocity = 0), i.config && !m && Ae(h, D(i.config, c), i.config !== l.config ? D(l.config, c) : void 0);
574
+ let P = j(this);
575
+ if (!P || a.und(f))
576
+ return s(V(this, !0));
577
+ const _ = a.und(i.reset) ? o && !i.default : !a.und(v) && W(i.reset, c), A = _ ? v : this.get(), I = Y(f), Q = a.num(I) || a.arr(I) || Nt(I), x = !m && (!Q || W(l.immediate || i.immediate, c));
578
+ if (y) {
579
+ const F = ht(f);
580
+ if (F !== P.constructor)
581
+ if (x)
582
+ P = this._set(I);
583
+ else
584
+ throw Error(`Cannot animate between ${P.constructor.name} and ${F.name}, as the "to" prop suggests`);
585
+ }
586
+ const tt = P.constructor;
587
+ let C = U(f), B = !1;
588
+ if (!C) {
589
+ const F = _ || !ut(this) && b;
590
+ (y || F) && (B = E(Y(A), I), C = !B), (!E(r.immediate, x) && !x || !E(h.decay, p) || !E(h.velocity, g)) && (C = !0);
591
+ }
592
+ if (B && M(this) && (r.changed && !_ ? C = !0 : C || this._stop(d)), !m && ((C || U(d)) && (r.values = P.getPayload(), r.toValues = U(f) ? null : tt == Ct ? [1] : R(I)), r.immediate != x && (r.immediate = x, !x && !_ && this._set(d)), C)) {
593
+ const {
594
+ onRest: F
595
+ } = r;
596
+ S(Ve, (rt) => jt(this, i, rt));
597
+ const k = V(this, H(this, d));
598
+ J(this._pendingCalls, k), this._pendingCalls.add(s), r.changed && T.batchedUpdates(() => {
599
+ r.changed = !_, F == null || F(k, this), _ ? D(l.onRest, k) : r.onStart == null || r.onStart(k, this);
600
+ });
601
+ }
602
+ _ && this._set(A), m ? s(Kt(i.to, i, this._state, this)) : C ? this._start() : M(this) && !y ? this._pendingCalls.add(s) : s(Ht(A));
603
+ }
604
+ _focus(t) {
605
+ const i = this.animation;
606
+ t !== i.to && (wt(this) && this._detach(), i.to = t, wt(this) && this._attach());
607
+ }
608
+ _attach() {
609
+ let t = 0;
610
+ const {
611
+ to: i
612
+ } = this.animation;
613
+ U(i) && (ot(i, this), ft(i) && (t = i.priority + 1)), this.priority = t;
614
+ }
615
+ _detach() {
616
+ const {
617
+ to: t
618
+ } = this.animation;
619
+ U(t) && Dt(t, this);
620
+ }
621
+ _set(t, i = !0) {
622
+ const s = O(t);
623
+ if (!a.und(s)) {
624
+ const n = j(this);
625
+ if (!n || !E(s, n.getValue())) {
626
+ const o = ht(s);
627
+ !n || n.constructor != o ? zt(this, o.create(s)) : n.setValue(s), n && T.batchedUpdates(() => {
628
+ this._onChange(s, i);
629
+ });
630
+ }
631
+ }
632
+ return j(this);
633
+ }
634
+ _onStart() {
635
+ const t = this.animation;
636
+ t.changed || (t.changed = !0, K(this, "onStart", V(this, H(this, t.to)), this));
637
+ }
638
+ _onChange(t, i) {
639
+ i || (this._onStart(), D(this.animation.onChange, t, this)), D(this.defaultProps.onChange, t, this), super._onChange(t, i);
640
+ }
641
+ _start() {
642
+ const t = this.animation;
643
+ j(this).reset(O(t.to)), t.immediate || (t.fromValues = t.values.map((i) => i.lastPosition)), M(this) || (Ot(this, !0), G(this) || this._resume());
644
+ }
645
+ _resume() {
646
+ q.skipAnimation ? this.finish() : _t.start(this);
647
+ }
648
+ _stop(t, i) {
649
+ if (M(this)) {
650
+ Ot(this, !1);
651
+ const s = this.animation;
652
+ S(s.values, (o) => {
653
+ o.done = !0;
654
+ }), s.toValues && (s.onChange = s.onPause = s.onResume = void 0), st(this, {
655
+ type: "idle",
656
+ parent: this
657
+ });
658
+ const n = i ? z(this.get()) : V(this.get(), H(this, t != null ? t : s.to));
659
+ J(this._pendingCalls, n), s.changed && (s.changed = !1, K(this, "onRest", n, this));
660
+ }
661
+ }
662
+ }
663
+ function H(e, t) {
664
+ const i = Y(t), s = Y(e.get());
665
+ return E(s, i);
666
+ }
667
+ function Wt(e, t = e.loop, i = e.to) {
668
+ let s = D(t);
669
+ if (s) {
670
+ const n = s !== !0 && Lt(s), o = (n || e).reverse, c = !n || n.reset;
671
+ return Z(w({}, e, {
672
+ loop: t,
673
+ default: !1,
674
+ pause: void 0,
675
+ to: !o || dt(i) ? i : void 0,
676
+ from: c ? e.from : void 0,
677
+ reset: c
678
+ }, n));
679
+ }
680
+ }
681
+ function Z(e) {
682
+ const {
683
+ to: t,
684
+ from: i
685
+ } = e = Lt(e), s = /* @__PURE__ */ new Set();
686
+ return a.obj(t) && Et(t, s), a.obj(i) && Et(i, s), e.keys = s.size ? Array.from(s) : null, e;
687
+ }
688
+ function Re(e) {
689
+ const t = Z(e);
690
+ return a.und(t.default) && (t.default = vt(t)), t;
691
+ }
692
+ function Et(e, t) {
693
+ $(e, (i, s) => i != null && t.add(s));
694
+ }
695
+ const Ve = ["onStart", "onRest", "onChange", "onPause", "onResume"];
696
+ function jt(e, t, i) {
697
+ e.animation[i] = t[i] !== Bt(t, i) ? $t(t[i], e.key) : void 0;
698
+ }
699
+ function K(e, t, ...i) {
700
+ var s, n, o, c;
701
+ (s = (n = e.animation)[t]) == null || s.call(n, ...i), (o = (c = e.defaultProps)[t]) == null || o.call(c, ...i);
702
+ }
703
+ const Te = ["onStart", "onChange", "onRest"];
704
+ let Fe = 1;
705
+ class Oe {
706
+ constructor(t, i) {
707
+ this.id = Fe++, this.springs = {}, this.queue = [], this.ref = void 0, this._flush = void 0, this._initialProps = void 0, this._lastAsyncId = 0, this._active = /* @__PURE__ */ new Set(), this._changed = /* @__PURE__ */ new Set(), this._started = !1, this._item = void 0, this._state = {
708
+ paused: !1,
709
+ pauseQueue: /* @__PURE__ */ new Set(),
710
+ resumeQueue: /* @__PURE__ */ new Set(),
711
+ timeouts: /* @__PURE__ */ new Set()
712
+ }, this._events = {
713
+ onStart: /* @__PURE__ */ new Map(),
714
+ onChange: /* @__PURE__ */ new Map(),
715
+ onRest: /* @__PURE__ */ new Map()
716
+ }, this._onFrame = this._onFrame.bind(this), i && (this._flush = i), t && this.start(w({
717
+ default: !0
718
+ }, t));
719
+ }
720
+ get idle() {
721
+ return !this._state.asyncTo && Object.values(this.springs).every((t) => t.idle && !t.isDelayed && !t.isPaused);
722
+ }
723
+ get item() {
724
+ return this._item;
725
+ }
726
+ set item(t) {
727
+ this._item = t;
728
+ }
729
+ get() {
730
+ const t = {};
731
+ return this.each((i, s) => t[s] = i.get()), t;
732
+ }
733
+ set(t) {
734
+ for (const i in t) {
735
+ const s = t[i];
736
+ a.und(s) || this.springs[i].set(s);
737
+ }
738
+ }
739
+ update(t) {
740
+ return t && this.queue.push(Z(t)), this;
741
+ }
742
+ start(t) {
743
+ let {
744
+ queue: i
745
+ } = this;
746
+ return t ? i = R(t).map(Z) : this.queue = [], this._flush ? this._flush(this, i) : (ee(this, i), gt(this, i));
747
+ }
748
+ stop(t, i) {
749
+ if (t !== !!t && (i = t), i) {
750
+ const s = this.springs;
751
+ S(R(i), (n) => s[n].stop(!!t));
752
+ } else
753
+ X(this._state, this._lastAsyncId), this.each((s) => s.stop(!!t));
754
+ return this;
755
+ }
756
+ pause(t) {
757
+ if (a.und(t))
758
+ this.start({
759
+ pause: !0
760
+ });
761
+ else {
762
+ const i = this.springs;
763
+ S(R(t), (s) => i[s].pause());
764
+ }
765
+ return this;
766
+ }
767
+ resume(t) {
768
+ if (a.und(t))
769
+ this.start({
770
+ pause: !1
771
+ });
772
+ else {
773
+ const i = this.springs;
774
+ S(R(t), (s) => i[s].resume());
775
+ }
776
+ return this;
777
+ }
778
+ each(t) {
779
+ $(this.springs, t);
780
+ }
781
+ _onFrame() {
782
+ const {
783
+ onStart: t,
784
+ onChange: i,
785
+ onRest: s
786
+ } = this._events, n = this._active.size > 0, o = this._changed.size > 0;
787
+ (n && !this._started || o && !this._started) && (this._started = !0, it(t, ([r, d]) => {
788
+ d.value = this.get(), r(d, this, this._item);
789
+ }));
790
+ const c = !n && this._started, l = o || c && s.size ? this.get() : null;
791
+ o && i.size && it(i, ([r, d]) => {
792
+ d.value = l, r(d, this, this._item);
793
+ }), c && (this._started = !1, it(s, ([r, d]) => {
794
+ d.value = l, r(d, this, this._item);
795
+ }));
796
+ }
797
+ eventObserved(t) {
798
+ if (t.type == "change")
799
+ this._changed.add(t.parent), t.idle || this._active.add(t.parent);
800
+ else if (t.type == "idle")
801
+ this._active.delete(t.parent);
802
+ else
803
+ return;
804
+ T.onFrame(this._onFrame);
805
+ }
806
+ }
807
+ function gt(e, t) {
808
+ return Promise.all(t.map((i) => Yt(e, i))).then((i) => Pt(e, i));
809
+ }
810
+ function Yt(e, t, i) {
811
+ return L(this, null, function* () {
812
+ const {
813
+ keys: s,
814
+ to: n,
815
+ from: o,
816
+ loop: c,
817
+ onRest: l,
818
+ onResolve: r
819
+ } = t, d = a.obj(t.default) && t.default;
820
+ c && (t.loop = !1), n === !1 && (t.to = null), o === !1 && (t.from = null);
821
+ const u = a.arr(n) || a.fun(n) ? n : void 0;
822
+ u ? (t.to = void 0, t.onRest = void 0, d && (d.onRest = void 0)) : S(Te, (m) => {
823
+ const h = t[m];
824
+ if (a.fun(h)) {
825
+ const p = e._events[m];
826
+ t[m] = ({
827
+ finished: g,
828
+ cancelled: P
829
+ }) => {
830
+ const _ = p.get(h);
831
+ _ ? (g || (_.finished = !1), P && (_.cancelled = !0)) : p.set(h, {
832
+ value: null,
833
+ finished: g || !1,
834
+ cancelled: P || !1
835
+ });
836
+ }, d && (d[m] = t[m]);
837
+ }
838
+ });
839
+ const f = e._state;
840
+ t.pause === !f.paused ? (f.paused = t.pause, J(t.pause ? f.pauseQueue : f.resumeQueue)) : f.paused && (t.pause = !0);
841
+ const v = (s || Object.keys(e.springs)).map((m) => e.springs[m].start(t)), b = t.cancel === !0 || Bt(t, "cancel") === !0;
842
+ (u || b && f.asyncId) && v.push(Gt(++e._lastAsyncId, {
843
+ props: t,
844
+ state: f,
845
+ actions: {
846
+ pause: At,
847
+ resume: At,
848
+ start(m, h) {
849
+ b ? (X(f, e._lastAsyncId), h(z(e))) : (m.onRest = l, h(Kt(u, m, f, e)));
850
+ }
851
+ }
852
+ })), f.paused && (yield new Promise((m) => {
853
+ f.resumeQueue.add(m);
854
+ }));
855
+ const y = Pt(e, yield Promise.all(v));
856
+ if (c && y.finished && !(i && y.noop)) {
857
+ const m = Wt(t, c, n);
858
+ if (m)
859
+ return ee(e, [m]), Yt(e, m, !0);
860
+ }
861
+ return r && T.batchedUpdates(() => r(y, e, e.item)), y;
862
+ });
863
+ }
864
+ function qt(e, t) {
865
+ const i = w({}, e.springs);
866
+ return t && S(R(t), (s) => {
867
+ a.und(s.keys) && (s = Z(s)), a.obj(s.to) || (s = w({}, s, {
868
+ to: void 0
869
+ })), te(i, s, (n) => Zt(n));
870
+ }), Xt(e, i), i;
871
+ }
872
+ function Xt(e, t) {
873
+ $(t, (i, s) => {
874
+ e.springs[s] || (e.springs[s] = i, ot(i, e));
875
+ });
876
+ }
877
+ function Zt(e, t) {
878
+ const i = new Ce();
879
+ return i.key = e, t && ot(i, t), i;
880
+ }
881
+ function te(e, t, i) {
882
+ t.keys && S(t.keys, (s) => {
883
+ (e[s] || (e[s] = i(s)))._prepareNode(t);
884
+ });
885
+ }
886
+ function ee(e, t) {
887
+ S(t, (i) => {
888
+ te(e.springs, i, (s) => Zt(s, e));
889
+ });
890
+ }
891
+ function xe(e, t) {
892
+ if (e == null)
893
+ return {};
894
+ var i = {}, s = Object.keys(e), n, o;
895
+ for (o = 0; o < s.length; o++)
896
+ n = s[o], !(t.indexOf(n) >= 0) && (i[n] = e[n]);
897
+ return i;
898
+ }
899
+ const Ee = ["children"], at = (e) => {
900
+ let {
901
+ children: t
902
+ } = e, i = xe(e, Ee);
903
+ const s = kt(nt), n = i.pause || !!s.pause, o = i.immediate || !!s.immediate;
904
+ i = oe(() => ({
905
+ pause: n,
906
+ immediate: o
907
+ }), [n, o]);
908
+ const {
909
+ Provider: c
910
+ } = nt;
911
+ return Qt.createElement(c, {
912
+ value: i
913
+ }, t);
914
+ }, nt = je(at, {});
915
+ at.Provider = nt.Provider;
916
+ at.Consumer = nt.Consumer;
917
+ function je(e, t) {
918
+ return Object.assign(e, Qt.createContext(t)), e.Provider._context = e, e.Consumer._context = e, e;
919
+ }
920
+ const qe = () => {
921
+ const e = [], t = function(n) {
922
+ le();
923
+ const o = [];
924
+ return S(e, (c, l) => {
925
+ if (a.und(n))
926
+ o.push(c.start());
927
+ else {
928
+ const r = i(n, c, l);
929
+ r && o.push(c.start(r));
930
+ }
931
+ }), o;
932
+ };
933
+ t.current = e, t.add = function(s) {
934
+ e.includes(s) || e.push(s);
935
+ }, t.delete = function(s) {
936
+ const n = e.indexOf(s);
937
+ ~n && e.splice(n, 1);
938
+ }, t.pause = function() {
939
+ return S(e, (s) => s.pause(...arguments)), this;
940
+ }, t.resume = function() {
941
+ return S(e, (s) => s.resume(...arguments)), this;
942
+ }, t.set = function(s) {
943
+ S(e, (n) => n.set(s));
944
+ }, t.start = function(s) {
945
+ const n = [];
946
+ return S(e, (o, c) => {
947
+ if (a.und(s))
948
+ n.push(o.start());
949
+ else {
950
+ const l = this._getProps(s, o, c);
951
+ l && n.push(o.start(l));
952
+ }
953
+ }), n;
954
+ }, t.stop = function() {
955
+ return S(e, (s) => s.stop(...arguments)), this;
956
+ }, t.update = function(s) {
957
+ return S(e, (n, o) => n.update(this._getProps(s, n, o))), this;
958
+ };
959
+ const i = function(n, o, c) {
960
+ return a.fun(n) ? n(c, o) : n;
961
+ };
962
+ return t._getProps = i, t;
963
+ };
964
+ function Me(e, t, i) {
965
+ const s = a.fun(t) && t;
966
+ s && !i && (i = []);
967
+ const n = et(() => s || arguments.length == 3 ? qe() : void 0, []), o = It(0), c = ce(), l = et(() => ({
968
+ ctrls: [],
969
+ queue: [],
970
+ flush(p, g) {
971
+ const P = qt(p, g);
972
+ return o.current > 0 && !l.queue.length && !Object.keys(P).some((A) => !p.springs[A]) ? gt(p, g) : new Promise((A) => {
973
+ Xt(p, P), l.queue.push(() => {
974
+ A(gt(p, g));
975
+ }), c();
976
+ });
977
+ }
978
+ }), []), r = It([...l.ctrls]), d = [], u = St(e) || 0;
979
+ et(() => {
980
+ S(r.current.slice(e, u), (p) => {
981
+ ve(p, n), p.stop(!0);
982
+ }), r.current.length = e, f(u, e);
983
+ }, [e]), et(() => {
984
+ f(0, Math.min(u, e));
985
+ }, i);
986
+ function f(p, g) {
987
+ for (let P = p; P < g; P++) {
988
+ const _ = r.current[P] || (r.current[P] = new Oe(null, l.flush)), A = s ? s(P, _) : t[P];
989
+ A && (d[P] = Re(A));
990
+ }
991
+ }
992
+ const v = r.current.map((p, g) => qt(p, d[g])), b = kt(at), y = St(b), m = b !== y && ye(b);
993
+ he(() => {
994
+ o.current++, l.ctrls = r.current;
995
+ const {
996
+ queue: p
997
+ } = l;
998
+ p.length && (l.queue = [], S(p, (g) => g())), S(r.current, (g, P) => {
999
+ n == null || n.add(g), m && g.start({
1000
+ default: b
1001
+ });
1002
+ const _ = d[P];
1003
+ _ && (Pe(g, _.ref), g.ref ? g.queue.push(_) : g.start(_));
1004
+ });
1005
+ }), de(() => () => {
1006
+ S(l.ctrls, (p) => p.stop(!0));
1007
+ });
1008
+ const h = v.map((p) => w({}, p));
1009
+ return n ? [h, n] : h;
1010
+ }
1011
+ function Be(e, t) {
1012
+ const i = a.fun(e), [[s], n] = Me(1, i ? e : [e], i ? t || [] : t);
1013
+ return i || arguments.length == 2 ? [s, n] : s;
1014
+ }
1015
+ let Mt;
1016
+ (function(e) {
1017
+ e.MOUNT = "mount", e.ENTER = "enter", e.UPDATE = "update", e.LEAVE = "leave";
1018
+ })(Mt || (Mt = {}));
1019
+ class Ue extends bt {
1020
+ constructor(t, i) {
1021
+ super(), this.key = void 0, this.idle = !0, this.calc = void 0, this._active = /* @__PURE__ */ new Set(), this.source = t, this.calc = ae(...i);
1022
+ const s = this._get(), n = ht(s);
1023
+ zt(this, n.create(s));
1024
+ }
1025
+ advance(t) {
1026
+ const i = this._get(), s = this.get();
1027
+ E(i, s) || (j(this).setValue(i), this._onChange(i, this.idle)), !this.idle && Ut(this._active) && ct(this);
1028
+ }
1029
+ _get() {
1030
+ const t = a.arr(this.source) ? this.source.map(O) : R(O(this.source));
1031
+ return this.calc(...t);
1032
+ }
1033
+ _start() {
1034
+ this.idle && !Ut(this._active) && (this.idle = !1, S(yt(this), (t) => {
1035
+ t.done = !1;
1036
+ }), q.skipAnimation ? (T.batchedUpdates(() => this.advance()), ct(this)) : _t.start(this));
1037
+ }
1038
+ _attach() {
1039
+ let t = 1;
1040
+ S(R(this.source), (i) => {
1041
+ U(i) && ot(i, this), ft(i) && (i.idle || this._active.add(i), t = Math.max(t, i.priority + 1));
1042
+ }), this.priority = t, this._start();
1043
+ }
1044
+ _detach() {
1045
+ S(R(this.source), (t) => {
1046
+ U(t) && Dt(t, this);
1047
+ }), this._active.clear(), ct(this);
1048
+ }
1049
+ eventObserved(t) {
1050
+ t.type == "change" ? t.idle ? this.advance() : (this._active.add(t.parent), this._start()) : t.type == "idle" ? this._active.delete(t.parent) : t.type == "priority" && (this.priority = R(this.source).reduce((i, s) => Math.max(i, (ft(s) ? s.priority : 0) + 1), 0));
1051
+ }
1052
+ }
1053
+ function De(e) {
1054
+ return e.idle !== !1;
1055
+ }
1056
+ function Ut(e) {
1057
+ return !e.size || Array.from(e).every(De);
1058
+ }
1059
+ function ct(e) {
1060
+ e.idle || (e.idle = !0, S(yt(e), (t) => {
1061
+ t.done = !0;
1062
+ }), st(e, {
1063
+ type: "idle",
1064
+ parent: e
1065
+ }));
1066
+ }
1067
+ q.assign({
1068
+ createStringInterpolator: ne,
1069
+ to: (e, t) => new Ue(e, t)
1070
+ });
1071
+ export {
1072
+ Tt as BailSignal,
1073
+ Oe as Controller,
1074
+ bt as FrameValue,
1075
+ q as Globals,
1076
+ Ue as Interpolation,
1077
+ at as SpringContext,
1078
+ qe as SpringRef,
1079
+ Ce as SpringValue,
1080
+ be as config,
1081
+ ae as createInterpolator,
1082
+ se as easings,
1083
+ Lt as inferTo,
1084
+ he as useIsomorphicLayoutEffect,
1085
+ Be as useSpring,
1086
+ Me as useSprings
1087
+ };