django-handyhelpers 0.3.20__py3-none-any.whl → 0.3.36__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (571) hide show
  1. {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.36.dist-info}/METADATA +16 -6
  2. {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.36.dist-info}/RECORD +562 -75
  3. {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.36.dist-info}/WHEEL +1 -1
  4. handyhelpers/__init__.py +6 -6
  5. handyhelpers/forms.py +9 -1
  6. handyhelpers/mixins/form_mixins.py +61 -0
  7. handyhelpers/mixins/model_mixins.py +21 -0
  8. handyhelpers/mixins/serializer_mixins.py +35 -0
  9. handyhelpers/mixins/view_mixins.py +5 -2
  10. handyhelpers/serializers.py +23 -3
  11. handyhelpers/static/handyhelpers/css/table_sortable.css +17 -0
  12. handyhelpers/static/handyhelpers/js/sidebar.js +8 -4
  13. handyhelpers/static/handyhelpers/js/table_sortable.js +119 -0
  14. handyhelpers/static/node_modules/.bin/acorn +4 -0
  15. handyhelpers/static/node_modules/.bin/css-b64-images +13 -0
  16. handyhelpers/static/node_modules/.bin/esbuild +0 -0
  17. handyhelpers/static/node_modules/.bin/html-minifier-terser +308 -0
  18. handyhelpers/static/node_modules/.bin/minify +98 -0
  19. handyhelpers/static/node_modules/.bin/terser +21 -0
  20. handyhelpers/static/node_modules/.bin/uglifyjs +624 -0
  21. handyhelpers/static/node_modules/.package-lock.json +750 -0
  22. handyhelpers/static/node_modules/@esbuild/linux-x64/README.md +3 -0
  23. handyhelpers/static/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
  24. handyhelpers/static/node_modules/@esbuild/linux-x64/package.json +20 -0
  25. handyhelpers/static/node_modules/@jridgewell/gen-mapping/LICENSE +19 -0
  26. handyhelpers/static/node_modules/@jridgewell/gen-mapping/README.md +227 -0
  27. handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs +230 -0
  28. handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs.map +1 -0
  29. handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js +246 -0
  30. handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js.map +1 -0
  31. handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +88 -0
  32. handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +12 -0
  33. handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/types/types.d.ts +36 -0
  34. handyhelpers/static/node_modules/@jridgewell/gen-mapping/package.json +76 -0
  35. handyhelpers/static/node_modules/@jridgewell/resolve-uri/LICENSE +19 -0
  36. handyhelpers/static/node_modules/@jridgewell/resolve-uri/README.md +40 -0
  37. handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs +232 -0
  38. handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +1 -0
  39. handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js +240 -0
  40. handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +1 -0
  41. handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +4 -0
  42. handyhelpers/static/node_modules/@jridgewell/resolve-uri/package.json +69 -0
  43. handyhelpers/static/node_modules/@jridgewell/set-array/LICENSE +19 -0
  44. handyhelpers/static/node_modules/@jridgewell/set-array/README.md +37 -0
  45. handyhelpers/static/node_modules/@jridgewell/set-array/dist/set-array.mjs +69 -0
  46. handyhelpers/static/node_modules/@jridgewell/set-array/dist/set-array.mjs.map +1 -0
  47. handyhelpers/static/node_modules/@jridgewell/set-array/dist/set-array.umd.js +83 -0
  48. handyhelpers/static/node_modules/@jridgewell/set-array/dist/set-array.umd.js.map +1 -0
  49. handyhelpers/static/node_modules/@jridgewell/set-array/dist/types/set-array.d.ts +32 -0
  50. handyhelpers/static/node_modules/@jridgewell/set-array/package.json +65 -0
  51. handyhelpers/static/node_modules/@jridgewell/source-map/LICENSE +19 -0
  52. handyhelpers/static/node_modules/@jridgewell/source-map/README.md +184 -0
  53. handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.cjs +95 -0
  54. handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.cjs.map +1 -0
  55. handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.mjs +90 -0
  56. handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.mjs.map +1 -0
  57. handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.umd.js +1242 -0
  58. handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.umd.js.map +1 -0
  59. handyhelpers/static/node_modules/@jridgewell/source-map/dist/types/source-map.d.ts +35 -0
  60. handyhelpers/static/node_modules/@jridgewell/source-map/package.json +71 -0
  61. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/LICENSE +21 -0
  62. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/README.md +264 -0
  63. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +424 -0
  64. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +1 -0
  65. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +439 -0
  66. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +1 -0
  67. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts +49 -0
  68. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +8 -0
  69. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/types/strings.d.ts +15 -0
  70. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/types/vlq.d.ts +6 -0
  71. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/package.json +75 -0
  72. handyhelpers/static/node_modules/@jridgewell/trace-mapping/LICENSE +19 -0
  73. handyhelpers/static/node_modules/@jridgewell/trace-mapping/README.md +257 -0
  74. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +580 -0
  75. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +1 -0
  76. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +600 -0
  77. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +1 -0
  78. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts +8 -0
  79. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts +32 -0
  80. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts +7 -0
  81. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts +1 -0
  82. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts +2 -0
  83. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +16 -0
  84. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts +4 -0
  85. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +79 -0
  86. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts +99 -0
  87. handyhelpers/static/node_modules/@jridgewell/trace-mapping/package.json +77 -0
  88. handyhelpers/static/node_modules/@popperjs/core/dist/cjs/enums.js +1 -1
  89. handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper-base.js +12 -170
  90. handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper-base.js.map +1 -1
  91. handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper-lite.js +14 -184
  92. handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper-lite.js.map +1 -1
  93. handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper.js +14 -197
  94. handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper.js.map +1 -1
  95. handyhelpers/static/node_modules/@popperjs/core/dist/esm/createPopper.js +6 -66
  96. handyhelpers/static/node_modules/@popperjs/core/dist/esm/modifiers/arrow.js +1 -12
  97. handyhelpers/static/node_modules/@popperjs/core/dist/esm/modifiers/computeStyles.js +2 -14
  98. handyhelpers/static/node_modules/@popperjs/core/dist/esm/utils/computeAutoPlacement.js +0 -4
  99. handyhelpers/static/node_modules/@popperjs/core/dist/esm/utils/userAgent.js +1 -1
  100. handyhelpers/static/node_modules/@popperjs/core/dist/umd/enums.js +1 -1
  101. handyhelpers/static/node_modules/@popperjs/core/dist/umd/enums.min.js +1 -1
  102. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-base.js +12 -170
  103. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-base.js.map +1 -1
  104. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-base.min.js +2 -2
  105. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-base.min.js.map +1 -1
  106. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-lite.js +14 -184
  107. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-lite.js.map +1 -1
  108. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-lite.min.js +2 -2
  109. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-lite.min.js.map +1 -1
  110. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper.js +14 -197
  111. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper.js.map +1 -1
  112. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper.min.js +2 -2
  113. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper.min.js.map +1 -1
  114. handyhelpers/static/node_modules/@popperjs/core/lib/createPopper.js +6 -66
  115. handyhelpers/static/node_modules/@popperjs/core/lib/createPopper.js.flow +2 -80
  116. handyhelpers/static/node_modules/@popperjs/core/lib/modifiers/arrow.js +1 -12
  117. handyhelpers/static/node_modules/@popperjs/core/lib/modifiers/arrow.js.flow +0 -22
  118. handyhelpers/static/node_modules/@popperjs/core/lib/modifiers/computeStyles.js +2 -14
  119. handyhelpers/static/node_modules/@popperjs/core/lib/modifiers/computeStyles.js.flow +3 -33
  120. handyhelpers/static/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js +0 -4
  121. handyhelpers/static/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js.flow +0 -12
  122. handyhelpers/static/node_modules/@popperjs/core/lib/utils/userAgent.js +1 -1
  123. handyhelpers/static/node_modules/@popperjs/core/lib/utils/userAgent.js.flow +1 -1
  124. handyhelpers/static/node_modules/@popperjs/core/package.json +1 -1
  125. handyhelpers/static/node_modules/@putout/minify/LICENSE +21 -0
  126. handyhelpers/static/node_modules/@putout/minify/README.md +110 -0
  127. handyhelpers/static/node_modules/@putout/minify/bundle/minify.min.js +52 -0
  128. handyhelpers/static/node_modules/@putout/minify/package.json +112 -0
  129. handyhelpers/static/node_modules/@swc/core/Visitor.d.ts +218 -0
  130. handyhelpers/static/node_modules/@swc/core/Visitor.js +1407 -0
  131. handyhelpers/static/node_modules/@swc/core/binding.d.ts +56 -0
  132. handyhelpers/static/node_modules/@swc/core/binding.js +351 -0
  133. handyhelpers/static/node_modules/@swc/core/index.d.ts +118 -0
  134. handyhelpers/static/node_modules/@swc/core/index.js +439 -0
  135. handyhelpers/static/node_modules/@swc/core/package.json +114 -0
  136. handyhelpers/static/node_modules/@swc/core/postinstall.js +148 -0
  137. handyhelpers/static/node_modules/@swc/core/spack.d.ts +51 -0
  138. handyhelpers/static/node_modules/@swc/core/spack.js +87 -0
  139. handyhelpers/static/node_modules/@swc/core/util.d.ts +1 -0
  140. handyhelpers/static/node_modules/@swc/core/util.js +104 -0
  141. handyhelpers/static/node_modules/@swc/core-linux-x64-gnu/README.md +3 -0
  142. handyhelpers/static/node_modules/@swc/core-linux-x64-gnu/package.json +45 -0
  143. handyhelpers/static/node_modules/@swc/core-linux-x64-gnu/swc.linux-x64-gnu.node +0 -0
  144. handyhelpers/static/node_modules/@swc/counter/CHANGELOG.md +7 -0
  145. handyhelpers/static/node_modules/@swc/counter/README.md +7 -0
  146. handyhelpers/static/node_modules/@swc/counter/index.js +1 -0
  147. handyhelpers/static/node_modules/@swc/counter/package.json +27 -0
  148. handyhelpers/static/node_modules/@swc/types/LICENSE +201 -0
  149. handyhelpers/static/node_modules/@swc/types/README.md +4 -0
  150. handyhelpers/static/node_modules/@swc/types/assumptions.d.ts +92 -0
  151. handyhelpers/static/node_modules/@swc/types/assumptions.js +2 -0
  152. handyhelpers/static/node_modules/@swc/types/index.d.ts +1977 -0
  153. handyhelpers/static/node_modules/@swc/types/index.js +2 -0
  154. handyhelpers/static/node_modules/@swc/types/package.json +39 -0
  155. handyhelpers/static/node_modules/acorn/CHANGELOG.md +928 -0
  156. handyhelpers/static/node_modules/acorn/LICENSE +21 -0
  157. handyhelpers/static/node_modules/acorn/README.md +282 -0
  158. handyhelpers/static/node_modules/acorn/bin/acorn +4 -0
  159. handyhelpers/static/node_modules/acorn/dist/acorn.d.mts +866 -0
  160. handyhelpers/static/node_modules/acorn/dist/acorn.d.ts +866 -0
  161. handyhelpers/static/node_modules/acorn/dist/acorn.js +6174 -0
  162. handyhelpers/static/node_modules/acorn/dist/acorn.mjs +6145 -0
  163. handyhelpers/static/node_modules/acorn/dist/bin.js +90 -0
  164. handyhelpers/static/node_modules/acorn/package.json +50 -0
  165. handyhelpers/static/node_modules/buffer-from/LICENSE +21 -0
  166. handyhelpers/static/node_modules/buffer-from/index.js +72 -0
  167. handyhelpers/static/node_modules/buffer-from/package.json +19 -0
  168. handyhelpers/static/node_modules/buffer-from/readme.md +69 -0
  169. handyhelpers/static/node_modules/camel-case/LICENSE +21 -0
  170. handyhelpers/static/node_modules/camel-case/README.md +47 -0
  171. handyhelpers/static/node_modules/camel-case/dist/index.d.ts +5 -0
  172. handyhelpers/static/node_modules/camel-case/dist/index.js +23 -0
  173. handyhelpers/static/node_modules/camel-case/dist/index.js.map +1 -0
  174. handyhelpers/static/node_modules/camel-case/dist/index.spec.d.ts +1 -0
  175. handyhelpers/static/node_modules/camel-case/dist/index.spec.js +26 -0
  176. handyhelpers/static/node_modules/camel-case/dist/index.spec.js.map +1 -0
  177. handyhelpers/static/node_modules/camel-case/dist.es2015/index.d.ts +5 -0
  178. handyhelpers/static/node_modules/camel-case/dist.es2015/index.js +17 -0
  179. handyhelpers/static/node_modules/camel-case/dist.es2015/index.js.map +1 -0
  180. handyhelpers/static/node_modules/camel-case/dist.es2015/index.spec.d.ts +1 -0
  181. handyhelpers/static/node_modules/camel-case/dist.es2015/index.spec.js +24 -0
  182. handyhelpers/static/node_modules/camel-case/dist.es2015/index.spec.js.map +1 -0
  183. handyhelpers/static/node_modules/camel-case/package.json +89 -0
  184. handyhelpers/static/node_modules/clean-css/History.md +1504 -0
  185. handyhelpers/static/node_modules/clean-css/LICENSE +19 -0
  186. handyhelpers/static/node_modules/clean-css/README.md +987 -0
  187. handyhelpers/static/node_modules/clean-css/index.js +1 -0
  188. handyhelpers/static/node_modules/clean-css/package.json +48 -0
  189. handyhelpers/static/node_modules/commander/LICENSE +22 -0
  190. handyhelpers/static/node_modules/commander/Readme.md +1134 -0
  191. handyhelpers/static/node_modules/commander/esm.mjs +16 -0
  192. handyhelpers/static/node_modules/commander/index.js +27 -0
  193. handyhelpers/static/node_modules/commander/package-support.json +16 -0
  194. handyhelpers/static/node_modules/commander/package.json +80 -0
  195. handyhelpers/static/node_modules/commander/typings/index.d.ts +889 -0
  196. handyhelpers/static/node_modules/css-b64-images/.npmignore +15 -0
  197. handyhelpers/static/node_modules/css-b64-images/.travis.yml +5 -0
  198. handyhelpers/static/node_modules/css-b64-images/README.md +78 -0
  199. handyhelpers/static/node_modules/css-b64-images/bin/css-b64-images +13 -0
  200. handyhelpers/static/node_modules/css-b64-images/draft.png +0 -0
  201. handyhelpers/static/node_modules/css-b64-images/draft.xcf +0 -0
  202. handyhelpers/static/node_modules/css-b64-images/package.json +30 -0
  203. handyhelpers/static/node_modules/css-b64-images/test/css-b64-images-test.js +38 -0
  204. handyhelpers/static/node_modules/css-b64-images/test/fixture/css/style.css +52 -0
  205. handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/callunasansregular-webfont.eot +0 -0
  206. handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/callunasansregular-webfont.svg +248 -0
  207. handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/callunasansregular-webfont.ttf +0 -0
  208. handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/callunasansregular-webfont.woff +0 -0
  209. handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/maven_pro_medium-webfont.eot +0 -0
  210. handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/maven_pro_medium-webfont.svg +245 -0
  211. handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/maven_pro_medium-webfont.ttf +0 -0
  212. handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/maven_pro_medium-webfont.woff +0 -0
  213. handyhelpers/static/node_modules/css-b64-images/test/fixture/img/background-pattern.gif +0 -0
  214. handyhelpers/static/node_modules/css-b64-images/test/fixture/img/dots.svg +6 -0
  215. handyhelpers/static/node_modules/css-b64-images/test/fixture/img/mixit-banner.png +0 -0
  216. handyhelpers/static/node_modules/debug/LICENSE +20 -0
  217. handyhelpers/static/node_modules/debug/README.md +481 -0
  218. handyhelpers/static/node_modules/debug/package.json +65 -0
  219. handyhelpers/static/node_modules/debug/src/browser.js +272 -0
  220. handyhelpers/static/node_modules/debug/src/common.js +292 -0
  221. handyhelpers/static/node_modules/debug/src/index.js +10 -0
  222. handyhelpers/static/node_modules/debug/src/node.js +263 -0
  223. handyhelpers/static/node_modules/dot-case/LICENSE +21 -0
  224. handyhelpers/static/node_modules/dot-case/README.md +37 -0
  225. handyhelpers/static/node_modules/dot-case/dist/index.d.ts +3 -0
  226. handyhelpers/static/node_modules/dot-case/dist/index.js +11 -0
  227. handyhelpers/static/node_modules/dot-case/dist/index.js.map +1 -0
  228. handyhelpers/static/node_modules/dot-case/dist/index.spec.d.ts +1 -0
  229. handyhelpers/static/node_modules/dot-case/dist/index.spec.js +26 -0
  230. handyhelpers/static/node_modules/dot-case/dist/index.spec.js.map +1 -0
  231. handyhelpers/static/node_modules/dot-case/dist.es2015/index.d.ts +3 -0
  232. handyhelpers/static/node_modules/dot-case/dist.es2015/index.js +7 -0
  233. handyhelpers/static/node_modules/dot-case/dist.es2015/index.js.map +1 -0
  234. handyhelpers/static/node_modules/dot-case/dist.es2015/index.spec.d.ts +1 -0
  235. handyhelpers/static/node_modules/dot-case/dist.es2015/index.spec.js +24 -0
  236. handyhelpers/static/node_modules/dot-case/dist.es2015/index.spec.js.map +1 -0
  237. handyhelpers/static/node_modules/dot-case/package.json +89 -0
  238. handyhelpers/static/node_modules/entities/LICENSE +11 -0
  239. handyhelpers/static/node_modules/entities/package.json +90 -0
  240. handyhelpers/static/node_modules/entities/readme.md +122 -0
  241. handyhelpers/static/node_modules/esbuild/LICENSE.md +21 -0
  242. handyhelpers/static/node_modules/esbuild/README.md +3 -0
  243. handyhelpers/static/node_modules/esbuild/bin/esbuild +0 -0
  244. handyhelpers/static/node_modules/esbuild/install.js +286 -0
  245. handyhelpers/static/node_modules/esbuild/package.json +47 -0
  246. handyhelpers/static/node_modules/find-up/index.d.ts +247 -0
  247. handyhelpers/static/node_modules/find-up/index.js +107 -0
  248. handyhelpers/static/node_modules/find-up/license +9 -0
  249. handyhelpers/static/node_modules/find-up/package.json +61 -0
  250. handyhelpers/static/node_modules/find-up/readme.md +160 -0
  251. handyhelpers/static/node_modules/fun-effects/LICENSE +674 -0
  252. handyhelpers/static/node_modules/fun-effects/README.md +10 -0
  253. handyhelpers/static/node_modules/fun-effects/dist/css/background_icons.min.css +1 -0
  254. handyhelpers/static/node_modules/fun-effects/dist/css/blur_group.min.css +1 -0
  255. handyhelpers/static/node_modules/fun-effects/dist/css/fades.min.css +1 -0
  256. handyhelpers/static/node_modules/fun-effects/dist/css/marquee.min.css +1 -0
  257. handyhelpers/static/node_modules/fun-effects/dist/css/scroller.min.css +1 -0
  258. handyhelpers/static/node_modules/fun-effects/dist/index.js +15 -0
  259. handyhelpers/static/node_modules/fun-effects/dist/js/background_icons.min.js +1 -0
  260. handyhelpers/static/node_modules/fun-effects/dist/js/marquee.min.js +1 -0
  261. handyhelpers/static/node_modules/fun-effects/dist/js/scroller.min.js +1 -0
  262. handyhelpers/static/node_modules/fun-effects/package.json +39 -0
  263. handyhelpers/static/node_modules/fun-effects/src/css/background_icons.css +39 -0
  264. handyhelpers/static/node_modules/fun-effects/src/css/blur_group.css +22 -0
  265. handyhelpers/static/node_modules/fun-effects/src/css/fades.css +94 -0
  266. handyhelpers/static/node_modules/fun-effects/src/css/marquee.css +45 -0
  267. handyhelpers/static/node_modules/fun-effects/src/css/scroller.css +144 -0
  268. handyhelpers/static/node_modules/fun-effects/src/index.js +15 -0
  269. handyhelpers/static/node_modules/fun-effects/src/js/background_icons.js +101 -0
  270. handyhelpers/static/node_modules/fun-effects/src/js/marquee.js +81 -0
  271. handyhelpers/static/node_modules/fun-effects/src/js/scroller.js +37 -0
  272. handyhelpers/static/node_modules/html-minifier-terser/LICENSE +22 -0
  273. handyhelpers/static/node_modules/html-minifier-terser/README.md +168 -0
  274. handyhelpers/static/node_modules/html-minifier-terser/cli.js +308 -0
  275. handyhelpers/static/node_modules/html-minifier-terser/dist/htmlminifier.cjs +1857 -0
  276. handyhelpers/static/node_modules/html-minifier-terser/dist/htmlminifier.esm.bundle.js +57509 -0
  277. handyhelpers/static/node_modules/html-minifier-terser/dist/htmlminifier.umd.bundle.js +57520 -0
  278. handyhelpers/static/node_modules/html-minifier-terser/dist/htmlminifier.umd.bundle.min.js +9 -0
  279. handyhelpers/static/node_modules/html-minifier-terser/package.json +105 -0
  280. handyhelpers/static/node_modules/html-minifier-terser/src/htmlminifier.js +1366 -0
  281. handyhelpers/static/node_modules/html-minifier-terser/src/htmlparser.js +565 -0
  282. handyhelpers/static/node_modules/html-minifier-terser/src/tokenchain.js +68 -0
  283. handyhelpers/static/node_modules/html-minifier-terser/src/utils.js +11 -0
  284. handyhelpers/static/node_modules/jju/LICENSE +21 -0
  285. handyhelpers/static/node_modules/jju/Makefile +20 -0
  286. handyhelpers/static/node_modules/jju/README.md +249 -0
  287. handyhelpers/static/node_modules/jju/index.js +32 -0
  288. handyhelpers/static/node_modules/jju/package.json +34 -0
  289. handyhelpers/static/node_modules/jju/package.yaml +36 -0
  290. handyhelpers/static/node_modules/locate-path/index.d.ts +92 -0
  291. handyhelpers/static/node_modules/locate-path/index.js +77 -0
  292. handyhelpers/static/node_modules/locate-path/license +9 -0
  293. handyhelpers/static/node_modules/locate-path/package.json +48 -0
  294. handyhelpers/static/node_modules/locate-path/readme.md +123 -0
  295. handyhelpers/static/node_modules/lower-case/LICENSE +21 -0
  296. handyhelpers/static/node_modules/lower-case/README.md +35 -0
  297. handyhelpers/static/node_modules/lower-case/dist/index.d.ts +8 -0
  298. handyhelpers/static/node_modules/lower-case/dist/index.js +53 -0
  299. handyhelpers/static/node_modules/lower-case/dist/index.js.map +1 -0
  300. handyhelpers/static/node_modules/lower-case/dist/index.spec.d.ts +1 -0
  301. handyhelpers/static/node_modules/lower-case/dist/index.spec.js +36 -0
  302. handyhelpers/static/node_modules/lower-case/dist/index.spec.js.map +1 -0
  303. handyhelpers/static/node_modules/lower-case/dist.es2015/index.d.ts +8 -0
  304. handyhelpers/static/node_modules/lower-case/dist.es2015/index.js +48 -0
  305. handyhelpers/static/node_modules/lower-case/dist.es2015/index.js.map +1 -0
  306. handyhelpers/static/node_modules/lower-case/dist.es2015/index.spec.d.ts +1 -0
  307. handyhelpers/static/node_modules/lower-case/dist.es2015/index.spec.js +34 -0
  308. handyhelpers/static/node_modules/lower-case/dist.es2015/index.spec.js.map +1 -0
  309. handyhelpers/static/node_modules/lower-case/package.json +87 -0
  310. handyhelpers/static/node_modules/minify/ChangeLog +1307 -0
  311. handyhelpers/static/node_modules/minify/LICENSE +22 -0
  312. handyhelpers/static/node_modules/minify/README.md +177 -0
  313. handyhelpers/static/node_modules/minify/bin/minify.js +98 -0
  314. handyhelpers/static/node_modules/minify/deno.json +5 -0
  315. handyhelpers/static/node_modules/minify/help.json +8 -0
  316. handyhelpers/static/node_modules/minify/package.json +65 -0
  317. handyhelpers/static/node_modules/ms/index.js +162 -0
  318. handyhelpers/static/node_modules/ms/license.md +21 -0
  319. handyhelpers/static/node_modules/ms/package.json +38 -0
  320. handyhelpers/static/node_modules/ms/readme.md +59 -0
  321. handyhelpers/static/node_modules/no-case/LICENSE +21 -0
  322. handyhelpers/static/node_modules/no-case/README.md +37 -0
  323. handyhelpers/static/node_modules/no-case/dist/index.d.ts +10 -0
  324. handyhelpers/static/node_modules/no-case/dist/index.js +35 -0
  325. handyhelpers/static/node_modules/no-case/dist/index.js.map +1 -0
  326. handyhelpers/static/node_modules/no-case/dist/index.spec.d.ts +1 -0
  327. handyhelpers/static/node_modules/no-case/dist/index.spec.js +59 -0
  328. handyhelpers/static/node_modules/no-case/dist/index.spec.js.map +1 -0
  329. handyhelpers/static/node_modules/no-case/dist.es2015/index.d.ts +10 -0
  330. handyhelpers/static/node_modules/no-case/dist.es2015/index.js +31 -0
  331. handyhelpers/static/node_modules/no-case/dist.es2015/index.js.map +1 -0
  332. handyhelpers/static/node_modules/no-case/dist.es2015/index.spec.d.ts +1 -0
  333. handyhelpers/static/node_modules/no-case/dist.es2015/index.spec.js +57 -0
  334. handyhelpers/static/node_modules/no-case/dist.es2015/index.spec.js.map +1 -0
  335. handyhelpers/static/node_modules/no-case/package.json +85 -0
  336. handyhelpers/static/node_modules/p-limit/index.d.ts +40 -0
  337. handyhelpers/static/node_modules/p-limit/index.js +68 -0
  338. handyhelpers/static/node_modules/p-limit/license +9 -0
  339. handyhelpers/static/node_modules/p-limit/package.json +54 -0
  340. handyhelpers/static/node_modules/p-limit/readme.md +99 -0
  341. handyhelpers/static/node_modules/p-locate/index.d.ts +49 -0
  342. handyhelpers/static/node_modules/p-locate/index.js +48 -0
  343. handyhelpers/static/node_modules/p-locate/license +9 -0
  344. handyhelpers/static/node_modules/p-locate/package.json +56 -0
  345. handyhelpers/static/node_modules/p-locate/readme.md +91 -0
  346. handyhelpers/static/node_modules/param-case/LICENSE +21 -0
  347. handyhelpers/static/node_modules/param-case/README.md +37 -0
  348. handyhelpers/static/node_modules/param-case/dist/index.d.ts +3 -0
  349. handyhelpers/static/node_modules/param-case/dist/index.js +11 -0
  350. handyhelpers/static/node_modules/param-case/dist/index.js.map +1 -0
  351. handyhelpers/static/node_modules/param-case/dist/index.spec.d.ts +1 -0
  352. handyhelpers/static/node_modules/param-case/dist/index.spec.js +24 -0
  353. handyhelpers/static/node_modules/param-case/dist/index.spec.js.map +1 -0
  354. handyhelpers/static/node_modules/param-case/dist.es2015/index.d.ts +3 -0
  355. handyhelpers/static/node_modules/param-case/dist.es2015/index.js +7 -0
  356. handyhelpers/static/node_modules/param-case/dist.es2015/index.js.map +1 -0
  357. handyhelpers/static/node_modules/param-case/dist.es2015/index.spec.d.ts +1 -0
  358. handyhelpers/static/node_modules/param-case/dist.es2015/index.spec.js +22 -0
  359. handyhelpers/static/node_modules/param-case/dist.es2015/index.spec.js.map +1 -0
  360. handyhelpers/static/node_modules/param-case/package.json +91 -0
  361. handyhelpers/static/node_modules/pascal-case/LICENSE +21 -0
  362. handyhelpers/static/node_modules/pascal-case/README.md +47 -0
  363. handyhelpers/static/node_modules/pascal-case/dist/index.d.ts +5 -0
  364. handyhelpers/static/node_modules/pascal-case/dist/index.js +24 -0
  365. handyhelpers/static/node_modules/pascal-case/dist/index.js.map +1 -0
  366. handyhelpers/static/node_modules/pascal-case/dist/index.spec.d.ts +1 -0
  367. handyhelpers/static/node_modules/pascal-case/dist/index.spec.js +25 -0
  368. handyhelpers/static/node_modules/pascal-case/dist/index.spec.js.map +1 -0
  369. handyhelpers/static/node_modules/pascal-case/dist.es2015/index.d.ts +5 -0
  370. handyhelpers/static/node_modules/pascal-case/dist.es2015/index.js +18 -0
  371. handyhelpers/static/node_modules/pascal-case/dist.es2015/index.js.map +1 -0
  372. handyhelpers/static/node_modules/pascal-case/dist.es2015/index.spec.d.ts +1 -0
  373. handyhelpers/static/node_modules/pascal-case/dist.es2015/index.spec.js +23 -0
  374. handyhelpers/static/node_modules/pascal-case/dist.es2015/index.spec.js.map +1 -0
  375. handyhelpers/static/node_modules/pascal-case/package.json +90 -0
  376. handyhelpers/static/node_modules/path-exists/index.d.ts +31 -0
  377. handyhelpers/static/node_modules/path-exists/index.js +19 -0
  378. handyhelpers/static/node_modules/path-exists/license +9 -0
  379. handyhelpers/static/node_modules/path-exists/package.json +41 -0
  380. handyhelpers/static/node_modules/path-exists/readme.md +52 -0
  381. handyhelpers/static/node_modules/readjson/ChangeLog +110 -0
  382. handyhelpers/static/node_modules/readjson/LICENSE +21 -0
  383. handyhelpers/static/node_modules/readjson/README.md +36 -0
  384. handyhelpers/static/node_modules/readjson/package.json +46 -0
  385. handyhelpers/static/node_modules/relateurl/README.md +159 -0
  386. handyhelpers/static/node_modules/relateurl/license +21 -0
  387. handyhelpers/static/node_modules/relateurl/package.json +46 -0
  388. handyhelpers/static/node_modules/simport/ChangeLog +77 -0
  389. handyhelpers/static/node_modules/simport/LICENSE +21 -0
  390. handyhelpers/static/node_modules/simport/README.md +81 -0
  391. handyhelpers/static/node_modules/simport/fixture/context.js +3 -0
  392. handyhelpers/static/node_modules/simport/fixture/default-frozen-function.mjs +2 -0
  393. handyhelpers/static/node_modules/simport/fixture/default-frozen-object.mjs +2 -0
  394. handyhelpers/static/node_modules/simport/package.json +65 -0
  395. handyhelpers/static/node_modules/simport/simport.js +84 -0
  396. handyhelpers/static/node_modules/simport/simport.mjs +22 -0
  397. handyhelpers/static/node_modules/source-map/CHANGELOG.md +301 -0
  398. handyhelpers/static/node_modules/source-map/LICENSE +28 -0
  399. handyhelpers/static/node_modules/source-map/README.md +742 -0
  400. handyhelpers/static/node_modules/source-map/dist/source-map.debug.js +3234 -0
  401. handyhelpers/static/node_modules/source-map/dist/source-map.js +3233 -0
  402. handyhelpers/static/node_modules/source-map/dist/source-map.min.js +2 -0
  403. handyhelpers/static/node_modules/source-map/dist/source-map.min.js.map +1 -0
  404. handyhelpers/static/node_modules/source-map/package.json +73 -0
  405. handyhelpers/static/node_modules/source-map/source-map.d.ts +98 -0
  406. handyhelpers/static/node_modules/source-map/source-map.js +8 -0
  407. handyhelpers/static/node_modules/source-map-support/LICENSE.md +21 -0
  408. handyhelpers/static/node_modules/source-map-support/README.md +284 -0
  409. handyhelpers/static/node_modules/source-map-support/browser-source-map-support.js +114 -0
  410. handyhelpers/static/node_modules/source-map-support/package.json +31 -0
  411. handyhelpers/static/node_modules/source-map-support/register-hook-require.js +1 -0
  412. handyhelpers/static/node_modules/source-map-support/register.js +1 -0
  413. handyhelpers/static/node_modules/source-map-support/source-map-support.js +625 -0
  414. handyhelpers/static/node_modules/terser/CHANGELOG.md +783 -0
  415. handyhelpers/static/node_modules/terser/LICENSE +27 -0
  416. handyhelpers/static/node_modules/terser/PATRONS.md +15 -0
  417. handyhelpers/static/node_modules/terser/README.md +1421 -0
  418. handyhelpers/static/node_modules/terser/bin/package.json +10 -0
  419. handyhelpers/static/node_modules/terser/bin/terser +21 -0
  420. handyhelpers/static/node_modules/terser/bin/uglifyjs +10 -0
  421. handyhelpers/static/node_modules/terser/dist/.gitkeep +0 -0
  422. handyhelpers/static/node_modules/terser/dist/bundle.min.js +32962 -0
  423. handyhelpers/static/node_modules/terser/dist/package.json +10 -0
  424. handyhelpers/static/node_modules/terser/main.js +27 -0
  425. handyhelpers/static/node_modules/terser/node_modules/commander/CHANGELOG.md +419 -0
  426. handyhelpers/static/node_modules/terser/node_modules/commander/LICENSE +22 -0
  427. handyhelpers/static/node_modules/terser/node_modules/commander/Readme.md +428 -0
  428. handyhelpers/static/node_modules/terser/node_modules/commander/index.js +1224 -0
  429. handyhelpers/static/node_modules/terser/node_modules/commander/package.json +38 -0
  430. handyhelpers/static/node_modules/terser/node_modules/commander/typings/index.d.ts +310 -0
  431. handyhelpers/static/node_modules/terser/package.json +153 -0
  432. handyhelpers/static/node_modules/terser/tools/domprops.js +9026 -0
  433. handyhelpers/static/node_modules/terser/tools/exit.cjs +7 -0
  434. handyhelpers/static/node_modules/terser/tools/props.html +68 -0
  435. handyhelpers/static/node_modules/terser/tools/terser.d.ts +216 -0
  436. handyhelpers/static/node_modules/tippy.js/LICENSE +21 -0
  437. handyhelpers/static/node_modules/tippy.js/README.md +63 -0
  438. handyhelpers/static/node_modules/tippy.js/animations/perspective-extreme.css +1 -0
  439. handyhelpers/static/node_modules/tippy.js/animations/perspective-subtle.css +1 -0
  440. handyhelpers/static/node_modules/tippy.js/animations/perspective.css +1 -0
  441. handyhelpers/static/node_modules/tippy.js/animations/scale-extreme.css +1 -0
  442. handyhelpers/static/node_modules/tippy.js/animations/scale-subtle.css +1 -0
  443. handyhelpers/static/node_modules/tippy.js/animations/scale.css +1 -0
  444. handyhelpers/static/node_modules/tippy.js/animations/shift-away-extreme.css +1 -0
  445. handyhelpers/static/node_modules/tippy.js/animations/shift-away-subtle.css +1 -0
  446. handyhelpers/static/node_modules/tippy.js/animations/shift-away.css +1 -0
  447. handyhelpers/static/node_modules/tippy.js/animations/shift-toward-extreme.css +1 -0
  448. handyhelpers/static/node_modules/tippy.js/animations/shift-toward-subtle.css +1 -0
  449. handyhelpers/static/node_modules/tippy.js/animations/shift-toward.css +1 -0
  450. handyhelpers/static/node_modules/tippy.js/dist/backdrop.css +1 -0
  451. handyhelpers/static/node_modules/tippy.js/dist/border.css +1 -0
  452. handyhelpers/static/node_modules/tippy.js/dist/svg-arrow.css +1 -0
  453. handyhelpers/static/node_modules/tippy.js/dist/tippy-bundle.umd.js +2516 -0
  454. handyhelpers/static/node_modules/tippy.js/dist/tippy-bundle.umd.js.map +1 -0
  455. handyhelpers/static/node_modules/tippy.js/dist/tippy-bundle.umd.min.js +2 -0
  456. handyhelpers/static/node_modules/tippy.js/dist/tippy-bundle.umd.min.js.map +1 -0
  457. handyhelpers/static/node_modules/tippy.js/dist/tippy.cjs.js +2497 -0
  458. handyhelpers/static/node_modules/tippy.js/dist/tippy.cjs.js.map +1 -0
  459. handyhelpers/static/node_modules/tippy.js/dist/tippy.css +1 -0
  460. handyhelpers/static/node_modules/tippy.js/dist/tippy.esm.js +2486 -0
  461. handyhelpers/static/node_modules/tippy.js/dist/tippy.esm.js.map +1 -0
  462. handyhelpers/static/node_modules/tippy.js/dist/tippy.umd.js +2496 -0
  463. handyhelpers/static/node_modules/tippy.js/dist/tippy.umd.js.map +1 -0
  464. handyhelpers/static/node_modules/tippy.js/dist/tippy.umd.min.js +2 -0
  465. handyhelpers/static/node_modules/tippy.js/dist/tippy.umd.min.js.map +1 -0
  466. handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.cjs.js +2388 -0
  467. handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.cjs.js.map +1 -0
  468. handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.esm.js +2377 -0
  469. handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.esm.js.map +1 -0
  470. handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.umd.js +2382 -0
  471. handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.umd.js.map +1 -0
  472. handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.umd.min.js +2 -0
  473. handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.umd.min.js.map +1 -0
  474. handyhelpers/static/node_modules/tippy.js/headless/package.json +16 -0
  475. handyhelpers/static/node_modules/tippy.js/index.d.ts +260 -0
  476. handyhelpers/static/node_modules/tippy.js/package.json +157 -0
  477. handyhelpers/static/node_modules/tippy.js/themes/light-border.css +1 -0
  478. handyhelpers/static/node_modules/tippy.js/themes/light.css +1 -0
  479. handyhelpers/static/node_modules/tippy.js/themes/material.css +1 -0
  480. handyhelpers/static/node_modules/tippy.js/themes/translucent.css +1 -0
  481. handyhelpers/static/node_modules/try-catch/ChangeLog +55 -0
  482. handyhelpers/static/node_modules/try-catch/LICENSE +21 -0
  483. handyhelpers/static/node_modules/try-catch/README.md +38 -0
  484. handyhelpers/static/node_modules/try-catch/package.json +34 -0
  485. handyhelpers/static/node_modules/try-to-catch/ChangeLog +64 -0
  486. handyhelpers/static/node_modules/try-to-catch/LICENSE +21 -0
  487. handyhelpers/static/node_modules/try-to-catch/README.md +74 -0
  488. handyhelpers/static/node_modules/try-to-catch/package.json +47 -0
  489. handyhelpers/static/node_modules/tslib/CopyrightNotice.txt +15 -0
  490. handyhelpers/static/node_modules/tslib/LICENSE.txt +12 -0
  491. handyhelpers/static/node_modules/tslib/README.md +164 -0
  492. handyhelpers/static/node_modules/tslib/SECURITY.md +41 -0
  493. handyhelpers/static/node_modules/tslib/modules/index.d.ts +38 -0
  494. handyhelpers/static/node_modules/tslib/modules/index.js +70 -0
  495. handyhelpers/static/node_modules/tslib/modules/package.json +3 -0
  496. handyhelpers/static/node_modules/tslib/package.json +47 -0
  497. handyhelpers/static/node_modules/tslib/tslib.d.ts +460 -0
  498. handyhelpers/static/node_modules/tslib/tslib.es6.html +1 -0
  499. handyhelpers/static/node_modules/tslib/tslib.es6.js +402 -0
  500. handyhelpers/static/node_modules/tslib/tslib.es6.mjs +401 -0
  501. handyhelpers/static/node_modules/tslib/tslib.html +1 -0
  502. handyhelpers/static/node_modules/tslib/tslib.js +484 -0
  503. handyhelpers/static/node_modules/uglify-js/LICENSE +29 -0
  504. handyhelpers/static/node_modules/uglify-js/README.md +1479 -0
  505. handyhelpers/static/node_modules/uglify-js/bin/uglifyjs +624 -0
  506. handyhelpers/static/node_modules/uglify-js/package.json +56 -0
  507. handyhelpers/static/node_modules/uglify-js/tools/domprops.html +456 -0
  508. handyhelpers/static/node_modules/uglify-js/tools/domprops.json +8327 -0
  509. handyhelpers/static/node_modules/uglify-js/tools/exports.js +8 -0
  510. handyhelpers/static/node_modules/uglify-js/tools/node.js +115 -0
  511. handyhelpers/static/node_modules/uglify-js/tools/tty.js +22 -0
  512. handyhelpers/static/node_modules/unicorn-magic/default.js +14 -0
  513. handyhelpers/static/node_modules/unicorn-magic/index.d.ts +29 -0
  514. handyhelpers/static/node_modules/unicorn-magic/license +9 -0
  515. handyhelpers/static/node_modules/unicorn-magic/node.js +7 -0
  516. handyhelpers/static/node_modules/unicorn-magic/package.json +49 -0
  517. handyhelpers/static/node_modules/unicorn-magic/readme.md +25 -0
  518. handyhelpers/static/node_modules/yocto-queue/index.d.ts +61 -0
  519. handyhelpers/static/node_modules/yocto-queue/index.js +78 -0
  520. handyhelpers/static/node_modules/yocto-queue/license +9 -0
  521. handyhelpers/static/node_modules/yocto-queue/package.json +48 -0
  522. handyhelpers/static/node_modules/yocto-queue/readme.md +70 -0
  523. handyhelpers/static/package.json +3 -1
  524. handyhelpers/static/yarn.lock +393 -20
  525. handyhelpers/templates/handyhelpers/generic/bs5/generic_index.html +5 -8
  526. handyhelpers/templates/handyhelpers/handyhelpers_base_bs5.htm +5 -1
  527. handyhelpers/templates/handyhelpers/handyhelpers_with_sidebar.htm +50 -3
  528. handyhelpers/templates/handyhelpers/htmx/bs5/filter_form/generic_modal_swap.htm +48 -0
  529. handyhelpers/templates/handyhelpers/htmx/bs5/form/form_wrapper.htm +48 -0
  530. handyhelpers/templates/handyhelpers/htmx/bs5/form/inline_form.htm +166 -0
  531. handyhelpers/templates/handyhelpers/htmx/bs5/form/inline_form_disabled.htm +125 -0
  532. handyhelpers/templates/handyhelpers/htmx/bs5/generic_modal_swap.htm +2 -3
  533. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/content_title.htm +38 -0
  534. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/controls.htm +21 -0
  535. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/examples/card.htm +17 -0
  536. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/examples/list.htm +11 -0
  537. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/examples/table.htm +21 -0
  538. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/filter_form_modal_swap.htm +48 -0
  539. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/full.html +6 -0
  540. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/wrapper_card.htm +7 -0
  541. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/wrapper_list.htm +7 -0
  542. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/wrapper_minimal.htm +7 -0
  543. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/wrapper_table.htm +18 -0
  544. handyhelpers/templates/handyhelpers/htmx/bs5/index.htm +34 -0
  545. handyhelpers/templates/handyhelpers/report/annual_stats.html +6 -0
  546. handyhelpers/templates/handyhelpers/report/annual_stats_content.htm +43 -0
  547. handyhelpers/templates/handyhelpers/report/chartjs/annual_progress_chart.htm +1 -1
  548. handyhelpers/templates/handyhelpers/report/chartjs/annual_progress_content.htm +40 -39
  549. handyhelpers/templates/handyhelpers/report/chartjs/annual_stats.html +25 -36
  550. handyhelpers/templates/handyhelpers/report/chartjs/annual_trends_content.htm +35 -34
  551. handyhelpers/templates/handyhelpers/report/chartjs/day_count_chart.htm +1 -1
  552. handyhelpers/templates/handyhelpers/report/chartjs/month_count_chart.htm +1 -1
  553. handyhelpers/templates/handyhelpers/report/chartjs/week_count_chart.htm +1 -1
  554. handyhelpers/templates/handyhelpers/report/chartjs/year_count_chart.htm +1 -1
  555. handyhelpers/templatetags/form_tags.py +47 -0
  556. handyhelpers/templatetags/htmx_tags.py +21 -0
  557. handyhelpers/views/action.py +3 -1
  558. handyhelpers/views/calendar.py +33 -14
  559. handyhelpers/views/htmx.py +396 -4
  560. handyhelpers/views/report.py +12 -5
  561. handyhelpers/management/commands/generate_admin.py +0 -110
  562. handyhelpers/static/node_modules/@popperjs/core/dist/esm/utils/format.js +0 -9
  563. handyhelpers/static/node_modules/@popperjs/core/dist/esm/utils/validateModifiers.js +0 -81
  564. handyhelpers/static/node_modules/@popperjs/core/lib/utils/format.d.ts +0 -1
  565. handyhelpers/static/node_modules/@popperjs/core/lib/utils/format.js +0 -9
  566. handyhelpers/static/node_modules/@popperjs/core/lib/utils/format.js.flow +0 -5
  567. handyhelpers/static/node_modules/@popperjs/core/lib/utils/validateModifiers.d.ts +0 -1
  568. handyhelpers/static/node_modules/@popperjs/core/lib/utils/validateModifiers.js +0 -81
  569. handyhelpers/static/node_modules/@popperjs/core/lib/utils/validateModifiers.js.flow +0 -151
  570. {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.36.dist-info}/LICENSE +0 -0
  571. {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.36.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,2388 @@
1
+ /**!
2
+ * tippy.js v6.3.7
3
+ * (c) 2017-2021 atomiks
4
+ * MIT License
5
+ */
6
+ 'use strict';
7
+
8
+ Object.defineProperty(exports, '__esModule', { value: true });
9
+
10
+ var core = require('@popperjs/core');
11
+
12
+ var ROUND_ARROW = '<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>';
13
+ var CONTENT_CLASS = "tippy-content";
14
+ var BACKDROP_CLASS = "tippy-backdrop";
15
+ var ARROW_CLASS = "tippy-arrow";
16
+ var SVG_ARROW_CLASS = "tippy-svg-arrow";
17
+ var TOUCH_OPTIONS = {
18
+ passive: true,
19
+ capture: true
20
+ };
21
+ var TIPPY_DEFAULT_APPEND_TO = function TIPPY_DEFAULT_APPEND_TO() {
22
+ return document.body;
23
+ };
24
+
25
+ function hasOwnProperty(obj, key) {
26
+ return {}.hasOwnProperty.call(obj, key);
27
+ }
28
+ function getValueAtIndexOrReturn(value, index, defaultValue) {
29
+ if (Array.isArray(value)) {
30
+ var v = value[index];
31
+ return v == null ? Array.isArray(defaultValue) ? defaultValue[index] : defaultValue : v;
32
+ }
33
+
34
+ return value;
35
+ }
36
+ function isType(value, type) {
37
+ var str = {}.toString.call(value);
38
+ return str.indexOf('[object') === 0 && str.indexOf(type + "]") > -1;
39
+ }
40
+ function invokeWithArgsOrReturn(value, args) {
41
+ return typeof value === 'function' ? value.apply(void 0, args) : value;
42
+ }
43
+ function debounce(fn, ms) {
44
+ // Avoid wrapping in `setTimeout` if ms is 0 anyway
45
+ if (ms === 0) {
46
+ return fn;
47
+ }
48
+
49
+ var timeout;
50
+ return function (arg) {
51
+ clearTimeout(timeout);
52
+ timeout = setTimeout(function () {
53
+ fn(arg);
54
+ }, ms);
55
+ };
56
+ }
57
+ function removeProperties(obj, keys) {
58
+ var clone = Object.assign({}, obj);
59
+ keys.forEach(function (key) {
60
+ delete clone[key];
61
+ });
62
+ return clone;
63
+ }
64
+ function splitBySpaces(value) {
65
+ return value.split(/\s+/).filter(Boolean);
66
+ }
67
+ function normalizeToArray(value) {
68
+ return [].concat(value);
69
+ }
70
+ function pushIfUnique(arr, value) {
71
+ if (arr.indexOf(value) === -1) {
72
+ arr.push(value);
73
+ }
74
+ }
75
+ function unique(arr) {
76
+ return arr.filter(function (item, index) {
77
+ return arr.indexOf(item) === index;
78
+ });
79
+ }
80
+ function getBasePlacement(placement) {
81
+ return placement.split('-')[0];
82
+ }
83
+ function arrayFrom(value) {
84
+ return [].slice.call(value);
85
+ }
86
+ function removeUndefinedProps(obj) {
87
+ return Object.keys(obj).reduce(function (acc, key) {
88
+ if (obj[key] !== undefined) {
89
+ acc[key] = obj[key];
90
+ }
91
+
92
+ return acc;
93
+ }, {});
94
+ }
95
+
96
+ function div() {
97
+ return document.createElement('div');
98
+ }
99
+ function isElement(value) {
100
+ return ['Element', 'Fragment'].some(function (type) {
101
+ return isType(value, type);
102
+ });
103
+ }
104
+ function isNodeList(value) {
105
+ return isType(value, 'NodeList');
106
+ }
107
+ function isMouseEvent(value) {
108
+ return isType(value, 'MouseEvent');
109
+ }
110
+ function isReferenceElement(value) {
111
+ return !!(value && value._tippy && value._tippy.reference === value);
112
+ }
113
+ function getArrayOfElements(value) {
114
+ if (isElement(value)) {
115
+ return [value];
116
+ }
117
+
118
+ if (isNodeList(value)) {
119
+ return arrayFrom(value);
120
+ }
121
+
122
+ if (Array.isArray(value)) {
123
+ return value;
124
+ }
125
+
126
+ return arrayFrom(document.querySelectorAll(value));
127
+ }
128
+ function setTransitionDuration(els, value) {
129
+ els.forEach(function (el) {
130
+ if (el) {
131
+ el.style.transitionDuration = value + "ms";
132
+ }
133
+ });
134
+ }
135
+ function setVisibilityState(els, state) {
136
+ els.forEach(function (el) {
137
+ if (el) {
138
+ el.setAttribute('data-state', state);
139
+ }
140
+ });
141
+ }
142
+ function getOwnerDocument(elementOrElements) {
143
+ var _element$ownerDocumen;
144
+
145
+ var _normalizeToArray = normalizeToArray(elementOrElements),
146
+ element = _normalizeToArray[0]; // Elements created via a <template> have an ownerDocument with no reference to the body
147
+
148
+
149
+ return element != null && (_element$ownerDocumen = element.ownerDocument) != null && _element$ownerDocumen.body ? element.ownerDocument : document;
150
+ }
151
+ function isCursorOutsideInteractiveBorder(popperTreeData, event) {
152
+ var clientX = event.clientX,
153
+ clientY = event.clientY;
154
+ return popperTreeData.every(function (_ref) {
155
+ var popperRect = _ref.popperRect,
156
+ popperState = _ref.popperState,
157
+ props = _ref.props;
158
+ var interactiveBorder = props.interactiveBorder;
159
+ var basePlacement = getBasePlacement(popperState.placement);
160
+ var offsetData = popperState.modifiersData.offset;
161
+
162
+ if (!offsetData) {
163
+ return true;
164
+ }
165
+
166
+ var topDistance = basePlacement === 'bottom' ? offsetData.top.y : 0;
167
+ var bottomDistance = basePlacement === 'top' ? offsetData.bottom.y : 0;
168
+ var leftDistance = basePlacement === 'right' ? offsetData.left.x : 0;
169
+ var rightDistance = basePlacement === 'left' ? offsetData.right.x : 0;
170
+ var exceedsTop = popperRect.top - clientY + topDistance > interactiveBorder;
171
+ var exceedsBottom = clientY - popperRect.bottom - bottomDistance > interactiveBorder;
172
+ var exceedsLeft = popperRect.left - clientX + leftDistance > interactiveBorder;
173
+ var exceedsRight = clientX - popperRect.right - rightDistance > interactiveBorder;
174
+ return exceedsTop || exceedsBottom || exceedsLeft || exceedsRight;
175
+ });
176
+ }
177
+ function updateTransitionEndListener(box, action, listener) {
178
+ var method = action + "EventListener"; // some browsers apparently support `transition` (unprefixed) but only fire
179
+ // `webkitTransitionEnd`...
180
+
181
+ ['transitionend', 'webkitTransitionEnd'].forEach(function (event) {
182
+ box[method](event, listener);
183
+ });
184
+ }
185
+ /**
186
+ * Compared to xxx.contains, this function works for dom structures with shadow
187
+ * dom
188
+ */
189
+
190
+ function actualContains(parent, child) {
191
+ var target = child;
192
+
193
+ while (target) {
194
+ var _target$getRootNode;
195
+
196
+ if (parent.contains(target)) {
197
+ return true;
198
+ }
199
+
200
+ target = target.getRootNode == null ? void 0 : (_target$getRootNode = target.getRootNode()) == null ? void 0 : _target$getRootNode.host;
201
+ }
202
+
203
+ return false;
204
+ }
205
+
206
+ var currentInput = {
207
+ isTouch: false
208
+ };
209
+ var lastMouseMoveTime = 0;
210
+ /**
211
+ * When a `touchstart` event is fired, it's assumed the user is using touch
212
+ * input. We'll bind a `mousemove` event listener to listen for mouse input in
213
+ * the future. This way, the `isTouch` property is fully dynamic and will handle
214
+ * hybrid devices that use a mix of touch + mouse input.
215
+ */
216
+
217
+ function onDocumentTouchStart() {
218
+ if (currentInput.isTouch) {
219
+ return;
220
+ }
221
+
222
+ currentInput.isTouch = true;
223
+
224
+ if (window.performance) {
225
+ document.addEventListener('mousemove', onDocumentMouseMove);
226
+ }
227
+ }
228
+ /**
229
+ * When two `mousemove` event are fired consecutively within 20ms, it's assumed
230
+ * the user is using mouse input again. `mousemove` can fire on touch devices as
231
+ * well, but very rarely that quickly.
232
+ */
233
+
234
+ function onDocumentMouseMove() {
235
+ var now = performance.now();
236
+
237
+ if (now - lastMouseMoveTime < 20) {
238
+ currentInput.isTouch = false;
239
+ document.removeEventListener('mousemove', onDocumentMouseMove);
240
+ }
241
+
242
+ lastMouseMoveTime = now;
243
+ }
244
+ /**
245
+ * When an element is in focus and has a tippy, leaving the tab/window and
246
+ * returning causes it to show again. For mouse users this is unexpected, but
247
+ * for keyboard use it makes sense.
248
+ * TODO: find a better technique to solve this problem
249
+ */
250
+
251
+ function onWindowBlur() {
252
+ var activeElement = document.activeElement;
253
+
254
+ if (isReferenceElement(activeElement)) {
255
+ var instance = activeElement._tippy;
256
+
257
+ if (activeElement.blur && !instance.state.isVisible) {
258
+ activeElement.blur();
259
+ }
260
+ }
261
+ }
262
+ function bindGlobalEventListeners() {
263
+ document.addEventListener('touchstart', onDocumentTouchStart, TOUCH_OPTIONS);
264
+ window.addEventListener('blur', onWindowBlur);
265
+ }
266
+
267
+ var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';
268
+ var isIE11 = isBrowser ? // @ts-ignore
269
+ !!window.msCrypto : false;
270
+
271
+ function createMemoryLeakWarning(method) {
272
+ var txt = method === 'destroy' ? 'n already-' : ' ';
273
+ return [method + "() was called on a" + txt + "destroyed instance. This is a no-op but", 'indicates a potential memory leak.'].join(' ');
274
+ }
275
+ function clean(value) {
276
+ var spacesAndTabs = /[ \t]{2,}/g;
277
+ var lineStartWithSpaces = /^[ \t]*/gm;
278
+ return value.replace(spacesAndTabs, ' ').replace(lineStartWithSpaces, '').trim();
279
+ }
280
+
281
+ function getDevMessage(message) {
282
+ return clean("\n %ctippy.js\n\n %c" + clean(message) + "\n\n %c\uD83D\uDC77\u200D This is a development-only message. It will be removed in production.\n ");
283
+ }
284
+
285
+ function getFormattedMessage(message) {
286
+ return [getDevMessage(message), // title
287
+ 'color: #00C584; font-size: 1.3em; font-weight: bold;', // message
288
+ 'line-height: 1.5', // footer
289
+ 'color: #a6a095;'];
290
+ } // Assume warnings and errors never have the same message
291
+
292
+ var visitedMessages;
293
+
294
+ if (process.env.NODE_ENV !== "production") {
295
+ resetVisitedMessages();
296
+ }
297
+
298
+ function resetVisitedMessages() {
299
+ visitedMessages = new Set();
300
+ }
301
+ function warnWhen(condition, message) {
302
+ if (condition && !visitedMessages.has(message)) {
303
+ var _console;
304
+
305
+ visitedMessages.add(message);
306
+
307
+ (_console = console).warn.apply(_console, getFormattedMessage(message));
308
+ }
309
+ }
310
+ function errorWhen(condition, message) {
311
+ if (condition && !visitedMessages.has(message)) {
312
+ var _console2;
313
+
314
+ visitedMessages.add(message);
315
+
316
+ (_console2 = console).error.apply(_console2, getFormattedMessage(message));
317
+ }
318
+ }
319
+ function validateTargets(targets) {
320
+ var didPassFalsyValue = !targets;
321
+ var didPassPlainObject = Object.prototype.toString.call(targets) === '[object Object]' && !targets.addEventListener;
322
+ errorWhen(didPassFalsyValue, ['tippy() was passed', '`' + String(targets) + '`', 'as its targets (first) argument. Valid types are: String, Element,', 'Element[], or NodeList.'].join(' '));
323
+ errorWhen(didPassPlainObject, ['tippy() was passed a plain object which is not supported as an argument', 'for virtual positioning. Use props.getReferenceClientRect instead.'].join(' '));
324
+ }
325
+
326
+ var pluginProps = {
327
+ animateFill: false,
328
+ followCursor: false,
329
+ inlinePositioning: false,
330
+ sticky: false
331
+ };
332
+ var renderProps = {
333
+ allowHTML: false,
334
+ animation: 'fade',
335
+ arrow: true,
336
+ content: '',
337
+ inertia: false,
338
+ maxWidth: 350,
339
+ role: 'tooltip',
340
+ theme: '',
341
+ zIndex: 9999
342
+ };
343
+ var defaultProps = Object.assign({
344
+ appendTo: TIPPY_DEFAULT_APPEND_TO,
345
+ aria: {
346
+ content: 'auto',
347
+ expanded: 'auto'
348
+ },
349
+ delay: 0,
350
+ duration: [300, 250],
351
+ getReferenceClientRect: null,
352
+ hideOnClick: true,
353
+ ignoreAttributes: false,
354
+ interactive: false,
355
+ interactiveBorder: 2,
356
+ interactiveDebounce: 0,
357
+ moveTransition: '',
358
+ offset: [0, 10],
359
+ onAfterUpdate: function onAfterUpdate() {},
360
+ onBeforeUpdate: function onBeforeUpdate() {},
361
+ onCreate: function onCreate() {},
362
+ onDestroy: function onDestroy() {},
363
+ onHidden: function onHidden() {},
364
+ onHide: function onHide() {},
365
+ onMount: function onMount() {},
366
+ onShow: function onShow() {},
367
+ onShown: function onShown() {},
368
+ onTrigger: function onTrigger() {},
369
+ onUntrigger: function onUntrigger() {},
370
+ onClickOutside: function onClickOutside() {},
371
+ placement: 'top',
372
+ plugins: [],
373
+ popperOptions: {},
374
+ render: null,
375
+ showOnCreate: false,
376
+ touch: true,
377
+ trigger: 'mouseenter focus',
378
+ triggerTarget: null
379
+ }, pluginProps, renderProps);
380
+ var defaultKeys = Object.keys(defaultProps);
381
+ var setDefaultProps = function setDefaultProps(partialProps) {
382
+ /* istanbul ignore else */
383
+ if (process.env.NODE_ENV !== "production") {
384
+ validateProps(partialProps, []);
385
+ }
386
+
387
+ var keys = Object.keys(partialProps);
388
+ keys.forEach(function (key) {
389
+ defaultProps[key] = partialProps[key];
390
+ });
391
+ };
392
+ function getExtendedPassedProps(passedProps) {
393
+ var plugins = passedProps.plugins || [];
394
+ var pluginProps = plugins.reduce(function (acc, plugin) {
395
+ var name = plugin.name,
396
+ defaultValue = plugin.defaultValue;
397
+
398
+ if (name) {
399
+ var _name;
400
+
401
+ acc[name] = passedProps[name] !== undefined ? passedProps[name] : (_name = defaultProps[name]) != null ? _name : defaultValue;
402
+ }
403
+
404
+ return acc;
405
+ }, {});
406
+ return Object.assign({}, passedProps, pluginProps);
407
+ }
408
+ function getDataAttributeProps(reference, plugins) {
409
+ var propKeys = plugins ? Object.keys(getExtendedPassedProps(Object.assign({}, defaultProps, {
410
+ plugins: plugins
411
+ }))) : defaultKeys;
412
+ var props = propKeys.reduce(function (acc, key) {
413
+ var valueAsString = (reference.getAttribute("data-tippy-" + key) || '').trim();
414
+
415
+ if (!valueAsString) {
416
+ return acc;
417
+ }
418
+
419
+ if (key === 'content') {
420
+ acc[key] = valueAsString;
421
+ } else {
422
+ try {
423
+ acc[key] = JSON.parse(valueAsString);
424
+ } catch (e) {
425
+ acc[key] = valueAsString;
426
+ }
427
+ }
428
+
429
+ return acc;
430
+ }, {});
431
+ return props;
432
+ }
433
+ function evaluateProps(reference, props) {
434
+ var out = Object.assign({}, props, {
435
+ content: invokeWithArgsOrReturn(props.content, [reference])
436
+ }, props.ignoreAttributes ? {} : getDataAttributeProps(reference, props.plugins));
437
+ out.aria = Object.assign({}, defaultProps.aria, out.aria);
438
+ out.aria = {
439
+ expanded: out.aria.expanded === 'auto' ? props.interactive : out.aria.expanded,
440
+ content: out.aria.content === 'auto' ? props.interactive ? null : 'describedby' : out.aria.content
441
+ };
442
+ return out;
443
+ }
444
+ function validateProps(partialProps, plugins) {
445
+ if (partialProps === void 0) {
446
+ partialProps = {};
447
+ }
448
+
449
+ if (plugins === void 0) {
450
+ plugins = [];
451
+ }
452
+
453
+ var keys = Object.keys(partialProps);
454
+ keys.forEach(function (prop) {
455
+ var nonPluginProps = removeProperties(defaultProps, Object.keys(pluginProps));
456
+ var didPassUnknownProp = !hasOwnProperty(nonPluginProps, prop); // Check if the prop exists in `plugins`
457
+
458
+ if (didPassUnknownProp) {
459
+ didPassUnknownProp = plugins.filter(function (plugin) {
460
+ return plugin.name === prop;
461
+ }).length === 0;
462
+ }
463
+
464
+ warnWhen(didPassUnknownProp, ["`" + prop + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", 'a plugin, forgot to pass it in an array as props.plugins.', '\n\n', 'All props: https://atomiks.github.io/tippyjs/v6/all-props/\n', 'Plugins: https://atomiks.github.io/tippyjs/v6/plugins/'].join(' '));
465
+ });
466
+ }
467
+
468
+ function getChildren(popper) {
469
+ var box = popper.firstElementChild;
470
+ var boxChildren = arrayFrom(box.children);
471
+ return {
472
+ box: box,
473
+ content: boxChildren.find(function (node) {
474
+ return node.classList.contains(CONTENT_CLASS);
475
+ }),
476
+ arrow: boxChildren.find(function (node) {
477
+ return node.classList.contains(ARROW_CLASS) || node.classList.contains(SVG_ARROW_CLASS);
478
+ }),
479
+ backdrop: boxChildren.find(function (node) {
480
+ return node.classList.contains(BACKDROP_CLASS);
481
+ })
482
+ };
483
+ }
484
+
485
+ var idCounter = 1;
486
+ var mouseMoveListeners = []; // Used by `hideAll()`
487
+
488
+ var mountedInstances = [];
489
+ function createTippy(reference, passedProps) {
490
+ var props = evaluateProps(reference, Object.assign({}, defaultProps, getExtendedPassedProps(removeUndefinedProps(passedProps)))); // ===========================================================================
491
+ // 🔒 Private members
492
+ // ===========================================================================
493
+
494
+ var showTimeout;
495
+ var hideTimeout;
496
+ var scheduleHideAnimationFrame;
497
+ var isVisibleFromClick = false;
498
+ var didHideDueToDocumentMouseDown = false;
499
+ var didTouchMove = false;
500
+ var ignoreOnFirstUpdate = false;
501
+ var lastTriggerEvent;
502
+ var currentTransitionEndListener;
503
+ var onFirstUpdate;
504
+ var listeners = [];
505
+ var debouncedOnMouseMove = debounce(onMouseMove, props.interactiveDebounce);
506
+ var currentTarget; // ===========================================================================
507
+ // 🔑 Public members
508
+ // ===========================================================================
509
+
510
+ var id = idCounter++;
511
+ var popperInstance = null;
512
+ var plugins = unique(props.plugins);
513
+ var state = {
514
+ // Is the instance currently enabled?
515
+ isEnabled: true,
516
+ // Is the tippy currently showing and not transitioning out?
517
+ isVisible: false,
518
+ // Has the instance been destroyed?
519
+ isDestroyed: false,
520
+ // Is the tippy currently mounted to the DOM?
521
+ isMounted: false,
522
+ // Has the tippy finished transitioning in?
523
+ isShown: false
524
+ };
525
+ var instance = {
526
+ // properties
527
+ id: id,
528
+ reference: reference,
529
+ popper: div(),
530
+ popperInstance: popperInstance,
531
+ props: props,
532
+ state: state,
533
+ plugins: plugins,
534
+ // methods
535
+ clearDelayTimeouts: clearDelayTimeouts,
536
+ setProps: setProps,
537
+ setContent: setContent,
538
+ show: show,
539
+ hide: hide,
540
+ hideWithInteractivity: hideWithInteractivity,
541
+ enable: enable,
542
+ disable: disable,
543
+ unmount: unmount,
544
+ destroy: destroy
545
+ }; // TODO: Investigate why this early return causes a TDZ error in the tests —
546
+ // it doesn't seem to happen in the browser
547
+
548
+ /* istanbul ignore if */
549
+
550
+ if (!props.render) {
551
+ if (process.env.NODE_ENV !== "production") {
552
+ errorWhen(true, 'render() function has not been supplied.');
553
+ }
554
+
555
+ return instance;
556
+ } // ===========================================================================
557
+ // Initial mutations
558
+ // ===========================================================================
559
+
560
+
561
+ var _props$render = props.render(instance),
562
+ popper = _props$render.popper,
563
+ onUpdate = _props$render.onUpdate;
564
+
565
+ popper.setAttribute('data-tippy-root', '');
566
+ popper.id = "tippy-" + instance.id;
567
+ instance.popper = popper;
568
+ reference._tippy = instance;
569
+ popper._tippy = instance;
570
+ var pluginsHooks = plugins.map(function (plugin) {
571
+ return plugin.fn(instance);
572
+ });
573
+ var hasAriaExpanded = reference.hasAttribute('aria-expanded');
574
+ addListeners();
575
+ handleAriaExpandedAttribute();
576
+ handleStyles();
577
+ invokeHook('onCreate', [instance]);
578
+
579
+ if (props.showOnCreate) {
580
+ scheduleShow();
581
+ } // Prevent a tippy with a delay from hiding if the cursor left then returned
582
+ // before it started hiding
583
+
584
+
585
+ popper.addEventListener('mouseenter', function () {
586
+ if (instance.props.interactive && instance.state.isVisible) {
587
+ instance.clearDelayTimeouts();
588
+ }
589
+ });
590
+ popper.addEventListener('mouseleave', function () {
591
+ if (instance.props.interactive && instance.props.trigger.indexOf('mouseenter') >= 0) {
592
+ getDocument().addEventListener('mousemove', debouncedOnMouseMove);
593
+ }
594
+ });
595
+ return instance; // ===========================================================================
596
+ // 🔒 Private methods
597
+ // ===========================================================================
598
+
599
+ function getNormalizedTouchSettings() {
600
+ var touch = instance.props.touch;
601
+ return Array.isArray(touch) ? touch : [touch, 0];
602
+ }
603
+
604
+ function getIsCustomTouchBehavior() {
605
+ return getNormalizedTouchSettings()[0] === 'hold';
606
+ }
607
+
608
+ function getIsDefaultRenderFn() {
609
+ var _instance$props$rende;
610
+
611
+ // @ts-ignore
612
+ return !!((_instance$props$rende = instance.props.render) != null && _instance$props$rende.$$tippy);
613
+ }
614
+
615
+ function getCurrentTarget() {
616
+ return currentTarget || reference;
617
+ }
618
+
619
+ function getDocument() {
620
+ var parent = getCurrentTarget().parentNode;
621
+ return parent ? getOwnerDocument(parent) : document;
622
+ }
623
+
624
+ function getDefaultTemplateChildren() {
625
+ return getChildren(popper);
626
+ }
627
+
628
+ function getDelay(isShow) {
629
+ // For touch or keyboard input, force `0` delay for UX reasons
630
+ // Also if the instance is mounted but not visible (transitioning out),
631
+ // ignore delay
632
+ if (instance.state.isMounted && !instance.state.isVisible || currentInput.isTouch || lastTriggerEvent && lastTriggerEvent.type === 'focus') {
633
+ return 0;
634
+ }
635
+
636
+ return getValueAtIndexOrReturn(instance.props.delay, isShow ? 0 : 1, defaultProps.delay);
637
+ }
638
+
639
+ function handleStyles(fromHide) {
640
+ if (fromHide === void 0) {
641
+ fromHide = false;
642
+ }
643
+
644
+ popper.style.pointerEvents = instance.props.interactive && !fromHide ? '' : 'none';
645
+ popper.style.zIndex = "" + instance.props.zIndex;
646
+ }
647
+
648
+ function invokeHook(hook, args, shouldInvokePropsHook) {
649
+ if (shouldInvokePropsHook === void 0) {
650
+ shouldInvokePropsHook = true;
651
+ }
652
+
653
+ pluginsHooks.forEach(function (pluginHooks) {
654
+ if (pluginHooks[hook]) {
655
+ pluginHooks[hook].apply(pluginHooks, args);
656
+ }
657
+ });
658
+
659
+ if (shouldInvokePropsHook) {
660
+ var _instance$props;
661
+
662
+ (_instance$props = instance.props)[hook].apply(_instance$props, args);
663
+ }
664
+ }
665
+
666
+ function handleAriaContentAttribute() {
667
+ var aria = instance.props.aria;
668
+
669
+ if (!aria.content) {
670
+ return;
671
+ }
672
+
673
+ var attr = "aria-" + aria.content;
674
+ var id = popper.id;
675
+ var nodes = normalizeToArray(instance.props.triggerTarget || reference);
676
+ nodes.forEach(function (node) {
677
+ var currentValue = node.getAttribute(attr);
678
+
679
+ if (instance.state.isVisible) {
680
+ node.setAttribute(attr, currentValue ? currentValue + " " + id : id);
681
+ } else {
682
+ var nextValue = currentValue && currentValue.replace(id, '').trim();
683
+
684
+ if (nextValue) {
685
+ node.setAttribute(attr, nextValue);
686
+ } else {
687
+ node.removeAttribute(attr);
688
+ }
689
+ }
690
+ });
691
+ }
692
+
693
+ function handleAriaExpandedAttribute() {
694
+ if (hasAriaExpanded || !instance.props.aria.expanded) {
695
+ return;
696
+ }
697
+
698
+ var nodes = normalizeToArray(instance.props.triggerTarget || reference);
699
+ nodes.forEach(function (node) {
700
+ if (instance.props.interactive) {
701
+ node.setAttribute('aria-expanded', instance.state.isVisible && node === getCurrentTarget() ? 'true' : 'false');
702
+ } else {
703
+ node.removeAttribute('aria-expanded');
704
+ }
705
+ });
706
+ }
707
+
708
+ function cleanupInteractiveMouseListeners() {
709
+ getDocument().removeEventListener('mousemove', debouncedOnMouseMove);
710
+ mouseMoveListeners = mouseMoveListeners.filter(function (listener) {
711
+ return listener !== debouncedOnMouseMove;
712
+ });
713
+ }
714
+
715
+ function onDocumentPress(event) {
716
+ // Moved finger to scroll instead of an intentional tap outside
717
+ if (currentInput.isTouch) {
718
+ if (didTouchMove || event.type === 'mousedown') {
719
+ return;
720
+ }
721
+ }
722
+
723
+ var actualTarget = event.composedPath && event.composedPath()[0] || event.target; // Clicked on interactive popper
724
+
725
+ if (instance.props.interactive && actualContains(popper, actualTarget)) {
726
+ return;
727
+ } // Clicked on the event listeners target
728
+
729
+
730
+ if (normalizeToArray(instance.props.triggerTarget || reference).some(function (el) {
731
+ return actualContains(el, actualTarget);
732
+ })) {
733
+ if (currentInput.isTouch) {
734
+ return;
735
+ }
736
+
737
+ if (instance.state.isVisible && instance.props.trigger.indexOf('click') >= 0) {
738
+ return;
739
+ }
740
+ } else {
741
+ invokeHook('onClickOutside', [instance, event]);
742
+ }
743
+
744
+ if (instance.props.hideOnClick === true) {
745
+ instance.clearDelayTimeouts();
746
+ instance.hide(); // `mousedown` event is fired right before `focus` if pressing the
747
+ // currentTarget. This lets a tippy with `focus` trigger know that it
748
+ // should not show
749
+
750
+ didHideDueToDocumentMouseDown = true;
751
+ setTimeout(function () {
752
+ didHideDueToDocumentMouseDown = false;
753
+ }); // The listener gets added in `scheduleShow()`, but this may be hiding it
754
+ // before it shows, and hide()'s early bail-out behavior can prevent it
755
+ // from being cleaned up
756
+
757
+ if (!instance.state.isMounted) {
758
+ removeDocumentPress();
759
+ }
760
+ }
761
+ }
762
+
763
+ function onTouchMove() {
764
+ didTouchMove = true;
765
+ }
766
+
767
+ function onTouchStart() {
768
+ didTouchMove = false;
769
+ }
770
+
771
+ function addDocumentPress() {
772
+ var doc = getDocument();
773
+ doc.addEventListener('mousedown', onDocumentPress, true);
774
+ doc.addEventListener('touchend', onDocumentPress, TOUCH_OPTIONS);
775
+ doc.addEventListener('touchstart', onTouchStart, TOUCH_OPTIONS);
776
+ doc.addEventListener('touchmove', onTouchMove, TOUCH_OPTIONS);
777
+ }
778
+
779
+ function removeDocumentPress() {
780
+ var doc = getDocument();
781
+ doc.removeEventListener('mousedown', onDocumentPress, true);
782
+ doc.removeEventListener('touchend', onDocumentPress, TOUCH_OPTIONS);
783
+ doc.removeEventListener('touchstart', onTouchStart, TOUCH_OPTIONS);
784
+ doc.removeEventListener('touchmove', onTouchMove, TOUCH_OPTIONS);
785
+ }
786
+
787
+ function onTransitionedOut(duration, callback) {
788
+ onTransitionEnd(duration, function () {
789
+ if (!instance.state.isVisible && popper.parentNode && popper.parentNode.contains(popper)) {
790
+ callback();
791
+ }
792
+ });
793
+ }
794
+
795
+ function onTransitionedIn(duration, callback) {
796
+ onTransitionEnd(duration, callback);
797
+ }
798
+
799
+ function onTransitionEnd(duration, callback) {
800
+ var box = getDefaultTemplateChildren().box;
801
+
802
+ function listener(event) {
803
+ if (event.target === box) {
804
+ updateTransitionEndListener(box, 'remove', listener);
805
+ callback();
806
+ }
807
+ } // Make callback synchronous if duration is 0
808
+ // `transitionend` won't fire otherwise
809
+
810
+
811
+ if (duration === 0) {
812
+ return callback();
813
+ }
814
+
815
+ updateTransitionEndListener(box, 'remove', currentTransitionEndListener);
816
+ updateTransitionEndListener(box, 'add', listener);
817
+ currentTransitionEndListener = listener;
818
+ }
819
+
820
+ function on(eventType, handler, options) {
821
+ if (options === void 0) {
822
+ options = false;
823
+ }
824
+
825
+ var nodes = normalizeToArray(instance.props.triggerTarget || reference);
826
+ nodes.forEach(function (node) {
827
+ node.addEventListener(eventType, handler, options);
828
+ listeners.push({
829
+ node: node,
830
+ eventType: eventType,
831
+ handler: handler,
832
+ options: options
833
+ });
834
+ });
835
+ }
836
+
837
+ function addListeners() {
838
+ if (getIsCustomTouchBehavior()) {
839
+ on('touchstart', onTrigger, {
840
+ passive: true
841
+ });
842
+ on('touchend', onMouseLeave, {
843
+ passive: true
844
+ });
845
+ }
846
+
847
+ splitBySpaces(instance.props.trigger).forEach(function (eventType) {
848
+ if (eventType === 'manual') {
849
+ return;
850
+ }
851
+
852
+ on(eventType, onTrigger);
853
+
854
+ switch (eventType) {
855
+ case 'mouseenter':
856
+ on('mouseleave', onMouseLeave);
857
+ break;
858
+
859
+ case 'focus':
860
+ on(isIE11 ? 'focusout' : 'blur', onBlurOrFocusOut);
861
+ break;
862
+
863
+ case 'focusin':
864
+ on('focusout', onBlurOrFocusOut);
865
+ break;
866
+ }
867
+ });
868
+ }
869
+
870
+ function removeListeners() {
871
+ listeners.forEach(function (_ref) {
872
+ var node = _ref.node,
873
+ eventType = _ref.eventType,
874
+ handler = _ref.handler,
875
+ options = _ref.options;
876
+ node.removeEventListener(eventType, handler, options);
877
+ });
878
+ listeners = [];
879
+ }
880
+
881
+ function onTrigger(event) {
882
+ var _lastTriggerEvent;
883
+
884
+ var shouldScheduleClickHide = false;
885
+
886
+ if (!instance.state.isEnabled || isEventListenerStopped(event) || didHideDueToDocumentMouseDown) {
887
+ return;
888
+ }
889
+
890
+ var wasFocused = ((_lastTriggerEvent = lastTriggerEvent) == null ? void 0 : _lastTriggerEvent.type) === 'focus';
891
+ lastTriggerEvent = event;
892
+ currentTarget = event.currentTarget;
893
+ handleAriaExpandedAttribute();
894
+
895
+ if (!instance.state.isVisible && isMouseEvent(event)) {
896
+ // If scrolling, `mouseenter` events can be fired if the cursor lands
897
+ // over a new target, but `mousemove` events don't get fired. This
898
+ // causes interactive tooltips to get stuck open until the cursor is
899
+ // moved
900
+ mouseMoveListeners.forEach(function (listener) {
901
+ return listener(event);
902
+ });
903
+ } // Toggle show/hide when clicking click-triggered tooltips
904
+
905
+
906
+ if (event.type === 'click' && (instance.props.trigger.indexOf('mouseenter') < 0 || isVisibleFromClick) && instance.props.hideOnClick !== false && instance.state.isVisible) {
907
+ shouldScheduleClickHide = true;
908
+ } else {
909
+ scheduleShow(event);
910
+ }
911
+
912
+ if (event.type === 'click') {
913
+ isVisibleFromClick = !shouldScheduleClickHide;
914
+ }
915
+
916
+ if (shouldScheduleClickHide && !wasFocused) {
917
+ scheduleHide(event);
918
+ }
919
+ }
920
+
921
+ function onMouseMove(event) {
922
+ var target = event.target;
923
+ var isCursorOverReferenceOrPopper = getCurrentTarget().contains(target) || popper.contains(target);
924
+
925
+ if (event.type === 'mousemove' && isCursorOverReferenceOrPopper) {
926
+ return;
927
+ }
928
+
929
+ var popperTreeData = getNestedPopperTree().concat(popper).map(function (popper) {
930
+ var _instance$popperInsta;
931
+
932
+ var instance = popper._tippy;
933
+ var state = (_instance$popperInsta = instance.popperInstance) == null ? void 0 : _instance$popperInsta.state;
934
+
935
+ if (state) {
936
+ return {
937
+ popperRect: popper.getBoundingClientRect(),
938
+ popperState: state,
939
+ props: props
940
+ };
941
+ }
942
+
943
+ return null;
944
+ }).filter(Boolean);
945
+
946
+ if (isCursorOutsideInteractiveBorder(popperTreeData, event)) {
947
+ cleanupInteractiveMouseListeners();
948
+ scheduleHide(event);
949
+ }
950
+ }
951
+
952
+ function onMouseLeave(event) {
953
+ var shouldBail = isEventListenerStopped(event) || instance.props.trigger.indexOf('click') >= 0 && isVisibleFromClick;
954
+
955
+ if (shouldBail) {
956
+ return;
957
+ }
958
+
959
+ if (instance.props.interactive) {
960
+ instance.hideWithInteractivity(event);
961
+ return;
962
+ }
963
+
964
+ scheduleHide(event);
965
+ }
966
+
967
+ function onBlurOrFocusOut(event) {
968
+ if (instance.props.trigger.indexOf('focusin') < 0 && event.target !== getCurrentTarget()) {
969
+ return;
970
+ } // If focus was moved to within the popper
971
+
972
+
973
+ if (instance.props.interactive && event.relatedTarget && popper.contains(event.relatedTarget)) {
974
+ return;
975
+ }
976
+
977
+ scheduleHide(event);
978
+ }
979
+
980
+ function isEventListenerStopped(event) {
981
+ return currentInput.isTouch ? getIsCustomTouchBehavior() !== event.type.indexOf('touch') >= 0 : false;
982
+ }
983
+
984
+ function createPopperInstance() {
985
+ destroyPopperInstance();
986
+ var _instance$props2 = instance.props,
987
+ popperOptions = _instance$props2.popperOptions,
988
+ placement = _instance$props2.placement,
989
+ offset = _instance$props2.offset,
990
+ getReferenceClientRect = _instance$props2.getReferenceClientRect,
991
+ moveTransition = _instance$props2.moveTransition;
992
+ var arrow = getIsDefaultRenderFn() ? getChildren(popper).arrow : null;
993
+ var computedReference = getReferenceClientRect ? {
994
+ getBoundingClientRect: getReferenceClientRect,
995
+ contextElement: getReferenceClientRect.contextElement || getCurrentTarget()
996
+ } : reference;
997
+ var tippyModifier = {
998
+ name: '$$tippy',
999
+ enabled: true,
1000
+ phase: 'beforeWrite',
1001
+ requires: ['computeStyles'],
1002
+ fn: function fn(_ref2) {
1003
+ var state = _ref2.state;
1004
+
1005
+ if (getIsDefaultRenderFn()) {
1006
+ var _getDefaultTemplateCh = getDefaultTemplateChildren(),
1007
+ box = _getDefaultTemplateCh.box;
1008
+
1009
+ ['placement', 'reference-hidden', 'escaped'].forEach(function (attr) {
1010
+ if (attr === 'placement') {
1011
+ box.setAttribute('data-placement', state.placement);
1012
+ } else {
1013
+ if (state.attributes.popper["data-popper-" + attr]) {
1014
+ box.setAttribute("data-" + attr, '');
1015
+ } else {
1016
+ box.removeAttribute("data-" + attr);
1017
+ }
1018
+ }
1019
+ });
1020
+ state.attributes.popper = {};
1021
+ }
1022
+ }
1023
+ };
1024
+ var modifiers = [{
1025
+ name: 'offset',
1026
+ options: {
1027
+ offset: offset
1028
+ }
1029
+ }, {
1030
+ name: 'preventOverflow',
1031
+ options: {
1032
+ padding: {
1033
+ top: 2,
1034
+ bottom: 2,
1035
+ left: 5,
1036
+ right: 5
1037
+ }
1038
+ }
1039
+ }, {
1040
+ name: 'flip',
1041
+ options: {
1042
+ padding: 5
1043
+ }
1044
+ }, {
1045
+ name: 'computeStyles',
1046
+ options: {
1047
+ adaptive: !moveTransition
1048
+ }
1049
+ }, tippyModifier];
1050
+
1051
+ if (getIsDefaultRenderFn() && arrow) {
1052
+ modifiers.push({
1053
+ name: 'arrow',
1054
+ options: {
1055
+ element: arrow,
1056
+ padding: 3
1057
+ }
1058
+ });
1059
+ }
1060
+
1061
+ modifiers.push.apply(modifiers, (popperOptions == null ? void 0 : popperOptions.modifiers) || []);
1062
+ instance.popperInstance = core.createPopper(computedReference, popper, Object.assign({}, popperOptions, {
1063
+ placement: placement,
1064
+ onFirstUpdate: onFirstUpdate,
1065
+ modifiers: modifiers
1066
+ }));
1067
+ }
1068
+
1069
+ function destroyPopperInstance() {
1070
+ if (instance.popperInstance) {
1071
+ instance.popperInstance.destroy();
1072
+ instance.popperInstance = null;
1073
+ }
1074
+ }
1075
+
1076
+ function mount() {
1077
+ var appendTo = instance.props.appendTo;
1078
+ var parentNode; // By default, we'll append the popper to the triggerTargets's parentNode so
1079
+ // it's directly after the reference element so the elements inside the
1080
+ // tippy can be tabbed to
1081
+ // If there are clipping issues, the user can specify a different appendTo
1082
+ // and ensure focus management is handled correctly manually
1083
+
1084
+ var node = getCurrentTarget();
1085
+
1086
+ if (instance.props.interactive && appendTo === TIPPY_DEFAULT_APPEND_TO || appendTo === 'parent') {
1087
+ parentNode = node.parentNode;
1088
+ } else {
1089
+ parentNode = invokeWithArgsOrReturn(appendTo, [node]);
1090
+ } // The popper element needs to exist on the DOM before its position can be
1091
+ // updated as Popper needs to read its dimensions
1092
+
1093
+
1094
+ if (!parentNode.contains(popper)) {
1095
+ parentNode.appendChild(popper);
1096
+ }
1097
+
1098
+ instance.state.isMounted = true;
1099
+ createPopperInstance();
1100
+ /* istanbul ignore else */
1101
+
1102
+ if (process.env.NODE_ENV !== "production") {
1103
+ // Accessibility check
1104
+ warnWhen(instance.props.interactive && appendTo === defaultProps.appendTo && node.nextElementSibling !== popper, ['Interactive tippy element may not be accessible via keyboard', 'navigation because it is not directly after the reference element', 'in the DOM source order.', '\n\n', 'Using a wrapper <div> or <span> tag around the reference element', 'solves this by creating a new parentNode context.', '\n\n', 'Specifying `appendTo: document.body` silences this warning, but it', 'assumes you are using a focus management solution to handle', 'keyboard navigation.', '\n\n', 'See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity'].join(' '));
1105
+ }
1106
+ }
1107
+
1108
+ function getNestedPopperTree() {
1109
+ return arrayFrom(popper.querySelectorAll('[data-tippy-root]'));
1110
+ }
1111
+
1112
+ function scheduleShow(event) {
1113
+ instance.clearDelayTimeouts();
1114
+
1115
+ if (event) {
1116
+ invokeHook('onTrigger', [instance, event]);
1117
+ }
1118
+
1119
+ addDocumentPress();
1120
+ var delay = getDelay(true);
1121
+
1122
+ var _getNormalizedTouchSe = getNormalizedTouchSettings(),
1123
+ touchValue = _getNormalizedTouchSe[0],
1124
+ touchDelay = _getNormalizedTouchSe[1];
1125
+
1126
+ if (currentInput.isTouch && touchValue === 'hold' && touchDelay) {
1127
+ delay = touchDelay;
1128
+ }
1129
+
1130
+ if (delay) {
1131
+ showTimeout = setTimeout(function () {
1132
+ instance.show();
1133
+ }, delay);
1134
+ } else {
1135
+ instance.show();
1136
+ }
1137
+ }
1138
+
1139
+ function scheduleHide(event) {
1140
+ instance.clearDelayTimeouts();
1141
+ invokeHook('onUntrigger', [instance, event]);
1142
+
1143
+ if (!instance.state.isVisible) {
1144
+ removeDocumentPress();
1145
+ return;
1146
+ } // For interactive tippies, scheduleHide is added to a document.body handler
1147
+ // from onMouseLeave so must intercept scheduled hides from mousemove/leave
1148
+ // events when trigger contains mouseenter and click, and the tip is
1149
+ // currently shown as a result of a click.
1150
+
1151
+
1152
+ if (instance.props.trigger.indexOf('mouseenter') >= 0 && instance.props.trigger.indexOf('click') >= 0 && ['mouseleave', 'mousemove'].indexOf(event.type) >= 0 && isVisibleFromClick) {
1153
+ return;
1154
+ }
1155
+
1156
+ var delay = getDelay(false);
1157
+
1158
+ if (delay) {
1159
+ hideTimeout = setTimeout(function () {
1160
+ if (instance.state.isVisible) {
1161
+ instance.hide();
1162
+ }
1163
+ }, delay);
1164
+ } else {
1165
+ // Fixes a `transitionend` problem when it fires 1 frame too
1166
+ // late sometimes, we don't want hide() to be called.
1167
+ scheduleHideAnimationFrame = requestAnimationFrame(function () {
1168
+ instance.hide();
1169
+ });
1170
+ }
1171
+ } // ===========================================================================
1172
+ // 🔑 Public methods
1173
+ // ===========================================================================
1174
+
1175
+
1176
+ function enable() {
1177
+ instance.state.isEnabled = true;
1178
+ }
1179
+
1180
+ function disable() {
1181
+ // Disabling the instance should also hide it
1182
+ // https://github.com/atomiks/tippy.js-react/issues/106
1183
+ instance.hide();
1184
+ instance.state.isEnabled = false;
1185
+ }
1186
+
1187
+ function clearDelayTimeouts() {
1188
+ clearTimeout(showTimeout);
1189
+ clearTimeout(hideTimeout);
1190
+ cancelAnimationFrame(scheduleHideAnimationFrame);
1191
+ }
1192
+
1193
+ function setProps(partialProps) {
1194
+ /* istanbul ignore else */
1195
+ if (process.env.NODE_ENV !== "production") {
1196
+ warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('setProps'));
1197
+ }
1198
+
1199
+ if (instance.state.isDestroyed) {
1200
+ return;
1201
+ }
1202
+
1203
+ invokeHook('onBeforeUpdate', [instance, partialProps]);
1204
+ removeListeners();
1205
+ var prevProps = instance.props;
1206
+ var nextProps = evaluateProps(reference, Object.assign({}, prevProps, removeUndefinedProps(partialProps), {
1207
+ ignoreAttributes: true
1208
+ }));
1209
+ instance.props = nextProps;
1210
+ addListeners();
1211
+
1212
+ if (prevProps.interactiveDebounce !== nextProps.interactiveDebounce) {
1213
+ cleanupInteractiveMouseListeners();
1214
+ debouncedOnMouseMove = debounce(onMouseMove, nextProps.interactiveDebounce);
1215
+ } // Ensure stale aria-expanded attributes are removed
1216
+
1217
+
1218
+ if (prevProps.triggerTarget && !nextProps.triggerTarget) {
1219
+ normalizeToArray(prevProps.triggerTarget).forEach(function (node) {
1220
+ node.removeAttribute('aria-expanded');
1221
+ });
1222
+ } else if (nextProps.triggerTarget) {
1223
+ reference.removeAttribute('aria-expanded');
1224
+ }
1225
+
1226
+ handleAriaExpandedAttribute();
1227
+ handleStyles();
1228
+
1229
+ if (onUpdate) {
1230
+ onUpdate(prevProps, nextProps);
1231
+ }
1232
+
1233
+ if (instance.popperInstance) {
1234
+ createPopperInstance(); // Fixes an issue with nested tippies if they are all getting re-rendered,
1235
+ // and the nested ones get re-rendered first.
1236
+ // https://github.com/atomiks/tippyjs-react/issues/177
1237
+ // TODO: find a cleaner / more efficient solution(!)
1238
+
1239
+ getNestedPopperTree().forEach(function (nestedPopper) {
1240
+ // React (and other UI libs likely) requires a rAF wrapper as it flushes
1241
+ // its work in one
1242
+ requestAnimationFrame(nestedPopper._tippy.popperInstance.forceUpdate);
1243
+ });
1244
+ }
1245
+
1246
+ invokeHook('onAfterUpdate', [instance, partialProps]);
1247
+ }
1248
+
1249
+ function setContent(content) {
1250
+ instance.setProps({
1251
+ content: content
1252
+ });
1253
+ }
1254
+
1255
+ function show() {
1256
+ /* istanbul ignore else */
1257
+ if (process.env.NODE_ENV !== "production") {
1258
+ warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('show'));
1259
+ } // Early bail-out
1260
+
1261
+
1262
+ var isAlreadyVisible = instance.state.isVisible;
1263
+ var isDestroyed = instance.state.isDestroyed;
1264
+ var isDisabled = !instance.state.isEnabled;
1265
+ var isTouchAndTouchDisabled = currentInput.isTouch && !instance.props.touch;
1266
+ var duration = getValueAtIndexOrReturn(instance.props.duration, 0, defaultProps.duration);
1267
+
1268
+ if (isAlreadyVisible || isDestroyed || isDisabled || isTouchAndTouchDisabled) {
1269
+ return;
1270
+ } // Normalize `disabled` behavior across browsers.
1271
+ // Firefox allows events on disabled elements, but Chrome doesn't.
1272
+ // Using a wrapper element (i.e. <span>) is recommended.
1273
+
1274
+
1275
+ if (getCurrentTarget().hasAttribute('disabled')) {
1276
+ return;
1277
+ }
1278
+
1279
+ invokeHook('onShow', [instance], false);
1280
+
1281
+ if (instance.props.onShow(instance) === false) {
1282
+ return;
1283
+ }
1284
+
1285
+ instance.state.isVisible = true;
1286
+
1287
+ if (getIsDefaultRenderFn()) {
1288
+ popper.style.visibility = 'visible';
1289
+ }
1290
+
1291
+ handleStyles();
1292
+ addDocumentPress();
1293
+
1294
+ if (!instance.state.isMounted) {
1295
+ popper.style.transition = 'none';
1296
+ } // If flipping to the opposite side after hiding at least once, the
1297
+ // animation will use the wrong placement without resetting the duration
1298
+
1299
+
1300
+ if (getIsDefaultRenderFn()) {
1301
+ var _getDefaultTemplateCh2 = getDefaultTemplateChildren(),
1302
+ box = _getDefaultTemplateCh2.box,
1303
+ content = _getDefaultTemplateCh2.content;
1304
+
1305
+ setTransitionDuration([box, content], 0);
1306
+ }
1307
+
1308
+ onFirstUpdate = function onFirstUpdate() {
1309
+ var _instance$popperInsta2;
1310
+
1311
+ if (!instance.state.isVisible || ignoreOnFirstUpdate) {
1312
+ return;
1313
+ }
1314
+
1315
+ ignoreOnFirstUpdate = true; // reflow
1316
+
1317
+ void popper.offsetHeight;
1318
+ popper.style.transition = instance.props.moveTransition;
1319
+
1320
+ if (getIsDefaultRenderFn() && instance.props.animation) {
1321
+ var _getDefaultTemplateCh3 = getDefaultTemplateChildren(),
1322
+ _box = _getDefaultTemplateCh3.box,
1323
+ _content = _getDefaultTemplateCh3.content;
1324
+
1325
+ setTransitionDuration([_box, _content], duration);
1326
+ setVisibilityState([_box, _content], 'visible');
1327
+ }
1328
+
1329
+ handleAriaContentAttribute();
1330
+ handleAriaExpandedAttribute();
1331
+ pushIfUnique(mountedInstances, instance); // certain modifiers (e.g. `maxSize`) require a second update after the
1332
+ // popper has been positioned for the first time
1333
+
1334
+ (_instance$popperInsta2 = instance.popperInstance) == null ? void 0 : _instance$popperInsta2.forceUpdate();
1335
+ invokeHook('onMount', [instance]);
1336
+
1337
+ if (instance.props.animation && getIsDefaultRenderFn()) {
1338
+ onTransitionedIn(duration, function () {
1339
+ instance.state.isShown = true;
1340
+ invokeHook('onShown', [instance]);
1341
+ });
1342
+ }
1343
+ };
1344
+
1345
+ mount();
1346
+ }
1347
+
1348
+ function hide() {
1349
+ /* istanbul ignore else */
1350
+ if (process.env.NODE_ENV !== "production") {
1351
+ warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('hide'));
1352
+ } // Early bail-out
1353
+
1354
+
1355
+ var isAlreadyHidden = !instance.state.isVisible;
1356
+ var isDestroyed = instance.state.isDestroyed;
1357
+ var isDisabled = !instance.state.isEnabled;
1358
+ var duration = getValueAtIndexOrReturn(instance.props.duration, 1, defaultProps.duration);
1359
+
1360
+ if (isAlreadyHidden || isDestroyed || isDisabled) {
1361
+ return;
1362
+ }
1363
+
1364
+ invokeHook('onHide', [instance], false);
1365
+
1366
+ if (instance.props.onHide(instance) === false) {
1367
+ return;
1368
+ }
1369
+
1370
+ instance.state.isVisible = false;
1371
+ instance.state.isShown = false;
1372
+ ignoreOnFirstUpdate = false;
1373
+ isVisibleFromClick = false;
1374
+
1375
+ if (getIsDefaultRenderFn()) {
1376
+ popper.style.visibility = 'hidden';
1377
+ }
1378
+
1379
+ cleanupInteractiveMouseListeners();
1380
+ removeDocumentPress();
1381
+ handleStyles(true);
1382
+
1383
+ if (getIsDefaultRenderFn()) {
1384
+ var _getDefaultTemplateCh4 = getDefaultTemplateChildren(),
1385
+ box = _getDefaultTemplateCh4.box,
1386
+ content = _getDefaultTemplateCh4.content;
1387
+
1388
+ if (instance.props.animation) {
1389
+ setTransitionDuration([box, content], duration);
1390
+ setVisibilityState([box, content], 'hidden');
1391
+ }
1392
+ }
1393
+
1394
+ handleAriaContentAttribute();
1395
+ handleAriaExpandedAttribute();
1396
+
1397
+ if (instance.props.animation) {
1398
+ if (getIsDefaultRenderFn()) {
1399
+ onTransitionedOut(duration, instance.unmount);
1400
+ }
1401
+ } else {
1402
+ instance.unmount();
1403
+ }
1404
+ }
1405
+
1406
+ function hideWithInteractivity(event) {
1407
+ /* istanbul ignore else */
1408
+ if (process.env.NODE_ENV !== "production") {
1409
+ warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('hideWithInteractivity'));
1410
+ }
1411
+
1412
+ getDocument().addEventListener('mousemove', debouncedOnMouseMove);
1413
+ pushIfUnique(mouseMoveListeners, debouncedOnMouseMove);
1414
+ debouncedOnMouseMove(event);
1415
+ }
1416
+
1417
+ function unmount() {
1418
+ /* istanbul ignore else */
1419
+ if (process.env.NODE_ENV !== "production") {
1420
+ warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('unmount'));
1421
+ }
1422
+
1423
+ if (instance.state.isVisible) {
1424
+ instance.hide();
1425
+ }
1426
+
1427
+ if (!instance.state.isMounted) {
1428
+ return;
1429
+ }
1430
+
1431
+ destroyPopperInstance(); // If a popper is not interactive, it will be appended outside the popper
1432
+ // tree by default. This seems mainly for interactive tippies, but we should
1433
+ // find a workaround if possible
1434
+
1435
+ getNestedPopperTree().forEach(function (nestedPopper) {
1436
+ nestedPopper._tippy.unmount();
1437
+ });
1438
+
1439
+ if (popper.parentNode) {
1440
+ popper.parentNode.removeChild(popper);
1441
+ }
1442
+
1443
+ mountedInstances = mountedInstances.filter(function (i) {
1444
+ return i !== instance;
1445
+ });
1446
+ instance.state.isMounted = false;
1447
+ invokeHook('onHidden', [instance]);
1448
+ }
1449
+
1450
+ function destroy() {
1451
+ /* istanbul ignore else */
1452
+ if (process.env.NODE_ENV !== "production") {
1453
+ warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('destroy'));
1454
+ }
1455
+
1456
+ if (instance.state.isDestroyed) {
1457
+ return;
1458
+ }
1459
+
1460
+ instance.clearDelayTimeouts();
1461
+ instance.unmount();
1462
+ removeListeners();
1463
+ delete reference._tippy;
1464
+ instance.state.isDestroyed = true;
1465
+ invokeHook('onDestroy', [instance]);
1466
+ }
1467
+ }
1468
+
1469
+ function tippy(targets, optionalProps) {
1470
+ if (optionalProps === void 0) {
1471
+ optionalProps = {};
1472
+ }
1473
+
1474
+ var plugins = defaultProps.plugins.concat(optionalProps.plugins || []);
1475
+ /* istanbul ignore else */
1476
+
1477
+ if (process.env.NODE_ENV !== "production") {
1478
+ validateTargets(targets);
1479
+ validateProps(optionalProps, plugins);
1480
+ }
1481
+
1482
+ bindGlobalEventListeners();
1483
+ var passedProps = Object.assign({}, optionalProps, {
1484
+ plugins: plugins
1485
+ });
1486
+ var elements = getArrayOfElements(targets);
1487
+ /* istanbul ignore else */
1488
+
1489
+ if (process.env.NODE_ENV !== "production") {
1490
+ var isSingleContentElement = isElement(passedProps.content);
1491
+ var isMoreThanOneReferenceElement = elements.length > 1;
1492
+ warnWhen(isSingleContentElement && isMoreThanOneReferenceElement, ['tippy() was passed an Element as the `content` prop, but more than', 'one tippy instance was created by this invocation. This means the', 'content element will only be appended to the last tippy instance.', '\n\n', 'Instead, pass the .innerHTML of the element, or use a function that', 'returns a cloned version of the element instead.', '\n\n', '1) content: element.innerHTML\n', '2) content: () => element.cloneNode(true)'].join(' '));
1493
+ }
1494
+
1495
+ var instances = elements.reduce(function (acc, reference) {
1496
+ var instance = reference && createTippy(reference, passedProps);
1497
+
1498
+ if (instance) {
1499
+ acc.push(instance);
1500
+ }
1501
+
1502
+ return acc;
1503
+ }, []);
1504
+ return isElement(targets) ? instances[0] : instances;
1505
+ }
1506
+
1507
+ tippy.defaultProps = defaultProps;
1508
+ tippy.setDefaultProps = setDefaultProps;
1509
+ tippy.currentInput = currentInput;
1510
+ var hideAll = function hideAll(_temp) {
1511
+ var _ref = _temp === void 0 ? {} : _temp,
1512
+ excludedReferenceOrInstance = _ref.exclude,
1513
+ duration = _ref.duration;
1514
+
1515
+ mountedInstances.forEach(function (instance) {
1516
+ var isExcluded = false;
1517
+
1518
+ if (excludedReferenceOrInstance) {
1519
+ isExcluded = isReferenceElement(excludedReferenceOrInstance) ? instance.reference === excludedReferenceOrInstance : instance.popper === excludedReferenceOrInstance.popper;
1520
+ }
1521
+
1522
+ if (!isExcluded) {
1523
+ var originalDuration = instance.props.duration;
1524
+ instance.setProps({
1525
+ duration: duration
1526
+ });
1527
+ instance.hide();
1528
+
1529
+ if (!instance.state.isDestroyed) {
1530
+ instance.setProps({
1531
+ duration: originalDuration
1532
+ });
1533
+ }
1534
+ }
1535
+ });
1536
+ };
1537
+
1538
+ // every time the popper is destroyed (i.e. a new target), removing the styles
1539
+ // and causing transitions to break for singletons when the console is open, but
1540
+ // most notably for non-transform styles being used, `gpuAcceleration: false`.
1541
+
1542
+ var applyStylesModifier = Object.assign({}, core.applyStyles, {
1543
+ effect: function effect(_ref) {
1544
+ var state = _ref.state;
1545
+ var initialStyles = {
1546
+ popper: {
1547
+ position: state.options.strategy,
1548
+ left: '0',
1549
+ top: '0',
1550
+ margin: '0'
1551
+ },
1552
+ arrow: {
1553
+ position: 'absolute'
1554
+ },
1555
+ reference: {}
1556
+ };
1557
+ Object.assign(state.elements.popper.style, initialStyles.popper);
1558
+ state.styles = initialStyles;
1559
+
1560
+ if (state.elements.arrow) {
1561
+ Object.assign(state.elements.arrow.style, initialStyles.arrow);
1562
+ } // intentionally return no cleanup function
1563
+ // return () => { ... }
1564
+
1565
+ }
1566
+ });
1567
+
1568
+ var createSingleton = function createSingleton(tippyInstances, optionalProps) {
1569
+ var _optionalProps$popper;
1570
+
1571
+ if (optionalProps === void 0) {
1572
+ optionalProps = {};
1573
+ }
1574
+
1575
+ /* istanbul ignore else */
1576
+ if (process.env.NODE_ENV !== "production") {
1577
+ errorWhen(!Array.isArray(tippyInstances), ['The first argument passed to createSingleton() must be an array of', 'tippy instances. The passed value was', String(tippyInstances)].join(' '));
1578
+ }
1579
+
1580
+ var individualInstances = tippyInstances;
1581
+ var references = [];
1582
+ var triggerTargets = [];
1583
+ var currentTarget;
1584
+ var overrides = optionalProps.overrides;
1585
+ var interceptSetPropsCleanups = [];
1586
+ var shownOnCreate = false;
1587
+
1588
+ function setTriggerTargets() {
1589
+ triggerTargets = individualInstances.map(function (instance) {
1590
+ return normalizeToArray(instance.props.triggerTarget || instance.reference);
1591
+ }).reduce(function (acc, item) {
1592
+ return acc.concat(item);
1593
+ }, []);
1594
+ }
1595
+
1596
+ function setReferences() {
1597
+ references = individualInstances.map(function (instance) {
1598
+ return instance.reference;
1599
+ });
1600
+ }
1601
+
1602
+ function enableInstances(isEnabled) {
1603
+ individualInstances.forEach(function (instance) {
1604
+ if (isEnabled) {
1605
+ instance.enable();
1606
+ } else {
1607
+ instance.disable();
1608
+ }
1609
+ });
1610
+ }
1611
+
1612
+ function interceptSetProps(singleton) {
1613
+ return individualInstances.map(function (instance) {
1614
+ var originalSetProps = instance.setProps;
1615
+
1616
+ instance.setProps = function (props) {
1617
+ originalSetProps(props);
1618
+
1619
+ if (instance.reference === currentTarget) {
1620
+ singleton.setProps(props);
1621
+ }
1622
+ };
1623
+
1624
+ return function () {
1625
+ instance.setProps = originalSetProps;
1626
+ };
1627
+ });
1628
+ } // have to pass singleton, as it maybe undefined on first call
1629
+
1630
+
1631
+ function prepareInstance(singleton, target) {
1632
+ var index = triggerTargets.indexOf(target); // bail-out
1633
+
1634
+ if (target === currentTarget) {
1635
+ return;
1636
+ }
1637
+
1638
+ currentTarget = target;
1639
+ var overrideProps = (overrides || []).concat('content').reduce(function (acc, prop) {
1640
+ acc[prop] = individualInstances[index].props[prop];
1641
+ return acc;
1642
+ }, {});
1643
+ singleton.setProps(Object.assign({}, overrideProps, {
1644
+ getReferenceClientRect: typeof overrideProps.getReferenceClientRect === 'function' ? overrideProps.getReferenceClientRect : function () {
1645
+ var _references$index;
1646
+
1647
+ return (_references$index = references[index]) == null ? void 0 : _references$index.getBoundingClientRect();
1648
+ }
1649
+ }));
1650
+ }
1651
+
1652
+ enableInstances(false);
1653
+ setReferences();
1654
+ setTriggerTargets();
1655
+ var plugin = {
1656
+ fn: function fn() {
1657
+ return {
1658
+ onDestroy: function onDestroy() {
1659
+ enableInstances(true);
1660
+ },
1661
+ onHidden: function onHidden() {
1662
+ currentTarget = null;
1663
+ },
1664
+ onClickOutside: function onClickOutside(instance) {
1665
+ if (instance.props.showOnCreate && !shownOnCreate) {
1666
+ shownOnCreate = true;
1667
+ currentTarget = null;
1668
+ }
1669
+ },
1670
+ onShow: function onShow(instance) {
1671
+ if (instance.props.showOnCreate && !shownOnCreate) {
1672
+ shownOnCreate = true;
1673
+ prepareInstance(instance, references[0]);
1674
+ }
1675
+ },
1676
+ onTrigger: function onTrigger(instance, event) {
1677
+ prepareInstance(instance, event.currentTarget);
1678
+ }
1679
+ };
1680
+ }
1681
+ };
1682
+ var singleton = tippy(div(), Object.assign({}, removeProperties(optionalProps, ['overrides']), {
1683
+ plugins: [plugin].concat(optionalProps.plugins || []),
1684
+ triggerTarget: triggerTargets,
1685
+ popperOptions: Object.assign({}, optionalProps.popperOptions, {
1686
+ modifiers: [].concat(((_optionalProps$popper = optionalProps.popperOptions) == null ? void 0 : _optionalProps$popper.modifiers) || [], [applyStylesModifier])
1687
+ })
1688
+ }));
1689
+ var originalShow = singleton.show;
1690
+
1691
+ singleton.show = function (target) {
1692
+ originalShow(); // first time, showOnCreate or programmatic call with no params
1693
+ // default to showing first instance
1694
+
1695
+ if (!currentTarget && target == null) {
1696
+ return prepareInstance(singleton, references[0]);
1697
+ } // triggered from event (do nothing as prepareInstance already called by onTrigger)
1698
+ // programmatic call with no params when already visible (do nothing again)
1699
+
1700
+
1701
+ if (currentTarget && target == null) {
1702
+ return;
1703
+ } // target is index of instance
1704
+
1705
+
1706
+ if (typeof target === 'number') {
1707
+ return references[target] && prepareInstance(singleton, references[target]);
1708
+ } // target is a child tippy instance
1709
+
1710
+
1711
+ if (individualInstances.indexOf(target) >= 0) {
1712
+ var ref = target.reference;
1713
+ return prepareInstance(singleton, ref);
1714
+ } // target is a ReferenceElement
1715
+
1716
+
1717
+ if (references.indexOf(target) >= 0) {
1718
+ return prepareInstance(singleton, target);
1719
+ }
1720
+ };
1721
+
1722
+ singleton.showNext = function () {
1723
+ var first = references[0];
1724
+
1725
+ if (!currentTarget) {
1726
+ return singleton.show(0);
1727
+ }
1728
+
1729
+ var index = references.indexOf(currentTarget);
1730
+ singleton.show(references[index + 1] || first);
1731
+ };
1732
+
1733
+ singleton.showPrevious = function () {
1734
+ var last = references[references.length - 1];
1735
+
1736
+ if (!currentTarget) {
1737
+ return singleton.show(last);
1738
+ }
1739
+
1740
+ var index = references.indexOf(currentTarget);
1741
+ var target = references[index - 1] || last;
1742
+ singleton.show(target);
1743
+ };
1744
+
1745
+ var originalSetProps = singleton.setProps;
1746
+
1747
+ singleton.setProps = function (props) {
1748
+ overrides = props.overrides || overrides;
1749
+ originalSetProps(props);
1750
+ };
1751
+
1752
+ singleton.setInstances = function (nextInstances) {
1753
+ enableInstances(true);
1754
+ interceptSetPropsCleanups.forEach(function (fn) {
1755
+ return fn();
1756
+ });
1757
+ individualInstances = nextInstances;
1758
+ enableInstances(false);
1759
+ setReferences();
1760
+ setTriggerTargets();
1761
+ interceptSetPropsCleanups = interceptSetProps(singleton);
1762
+ singleton.setProps({
1763
+ triggerTarget: triggerTargets
1764
+ });
1765
+ };
1766
+
1767
+ interceptSetPropsCleanups = interceptSetProps(singleton);
1768
+ return singleton;
1769
+ };
1770
+
1771
+ var BUBBLING_EVENTS_MAP = {
1772
+ mouseover: 'mouseenter',
1773
+ focusin: 'focus',
1774
+ click: 'click'
1775
+ };
1776
+ /**
1777
+ * Creates a delegate instance that controls the creation of tippy instances
1778
+ * for child elements (`target` CSS selector).
1779
+ */
1780
+
1781
+ function delegate(targets, props) {
1782
+ /* istanbul ignore else */
1783
+ if (process.env.NODE_ENV !== "production") {
1784
+ errorWhen(!(props && props.target), ['You must specity a `target` prop indicating a CSS selector string matching', 'the target elements that should receive a tippy.'].join(' '));
1785
+ }
1786
+
1787
+ var listeners = [];
1788
+ var childTippyInstances = [];
1789
+ var disabled = false;
1790
+ var target = props.target;
1791
+ var nativeProps = removeProperties(props, ['target']);
1792
+ var parentProps = Object.assign({}, nativeProps, {
1793
+ trigger: 'manual',
1794
+ touch: false
1795
+ });
1796
+ var childProps = Object.assign({
1797
+ touch: defaultProps.touch
1798
+ }, nativeProps, {
1799
+ showOnCreate: true
1800
+ });
1801
+ var returnValue = tippy(targets, parentProps);
1802
+ var normalizedReturnValue = normalizeToArray(returnValue);
1803
+
1804
+ function onTrigger(event) {
1805
+ if (!event.target || disabled) {
1806
+ return;
1807
+ }
1808
+
1809
+ var targetNode = event.target.closest(target);
1810
+
1811
+ if (!targetNode) {
1812
+ return;
1813
+ } // Get relevant trigger with fallbacks:
1814
+ // 1. Check `data-tippy-trigger` attribute on target node
1815
+ // 2. Fallback to `trigger` passed to `delegate()`
1816
+ // 3. Fallback to `defaultProps.trigger`
1817
+
1818
+
1819
+ var trigger = targetNode.getAttribute('data-tippy-trigger') || props.trigger || defaultProps.trigger; // @ts-ignore
1820
+
1821
+ if (targetNode._tippy) {
1822
+ return;
1823
+ }
1824
+
1825
+ if (event.type === 'touchstart' && typeof childProps.touch === 'boolean') {
1826
+ return;
1827
+ }
1828
+
1829
+ if (event.type !== 'touchstart' && trigger.indexOf(BUBBLING_EVENTS_MAP[event.type]) < 0) {
1830
+ return;
1831
+ }
1832
+
1833
+ var instance = tippy(targetNode, childProps);
1834
+
1835
+ if (instance) {
1836
+ childTippyInstances = childTippyInstances.concat(instance);
1837
+ }
1838
+ }
1839
+
1840
+ function on(node, eventType, handler, options) {
1841
+ if (options === void 0) {
1842
+ options = false;
1843
+ }
1844
+
1845
+ node.addEventListener(eventType, handler, options);
1846
+ listeners.push({
1847
+ node: node,
1848
+ eventType: eventType,
1849
+ handler: handler,
1850
+ options: options
1851
+ });
1852
+ }
1853
+
1854
+ function addEventListeners(instance) {
1855
+ var reference = instance.reference;
1856
+ on(reference, 'touchstart', onTrigger, TOUCH_OPTIONS);
1857
+ on(reference, 'mouseover', onTrigger);
1858
+ on(reference, 'focusin', onTrigger);
1859
+ on(reference, 'click', onTrigger);
1860
+ }
1861
+
1862
+ function removeEventListeners() {
1863
+ listeners.forEach(function (_ref) {
1864
+ var node = _ref.node,
1865
+ eventType = _ref.eventType,
1866
+ handler = _ref.handler,
1867
+ options = _ref.options;
1868
+ node.removeEventListener(eventType, handler, options);
1869
+ });
1870
+ listeners = [];
1871
+ }
1872
+
1873
+ function applyMutations(instance) {
1874
+ var originalDestroy = instance.destroy;
1875
+ var originalEnable = instance.enable;
1876
+ var originalDisable = instance.disable;
1877
+
1878
+ instance.destroy = function (shouldDestroyChildInstances) {
1879
+ if (shouldDestroyChildInstances === void 0) {
1880
+ shouldDestroyChildInstances = true;
1881
+ }
1882
+
1883
+ if (shouldDestroyChildInstances) {
1884
+ childTippyInstances.forEach(function (instance) {
1885
+ instance.destroy();
1886
+ });
1887
+ }
1888
+
1889
+ childTippyInstances = [];
1890
+ removeEventListeners();
1891
+ originalDestroy();
1892
+ };
1893
+
1894
+ instance.enable = function () {
1895
+ originalEnable();
1896
+ childTippyInstances.forEach(function (instance) {
1897
+ return instance.enable();
1898
+ });
1899
+ disabled = false;
1900
+ };
1901
+
1902
+ instance.disable = function () {
1903
+ originalDisable();
1904
+ childTippyInstances.forEach(function (instance) {
1905
+ return instance.disable();
1906
+ });
1907
+ disabled = true;
1908
+ };
1909
+
1910
+ addEventListeners(instance);
1911
+ }
1912
+
1913
+ normalizedReturnValue.forEach(applyMutations);
1914
+ return returnValue;
1915
+ }
1916
+
1917
+ var animateFill = {
1918
+ name: 'animateFill',
1919
+ defaultValue: false,
1920
+ fn: function fn(instance) {
1921
+ var _instance$props$rende;
1922
+
1923
+ // @ts-ignore
1924
+ if (!((_instance$props$rende = instance.props.render) != null && _instance$props$rende.$$tippy)) {
1925
+ if (process.env.NODE_ENV !== "production") {
1926
+ errorWhen(instance.props.animateFill, 'The `animateFill` plugin requires the default render function.');
1927
+ }
1928
+
1929
+ return {};
1930
+ }
1931
+
1932
+ var _getChildren = getChildren(instance.popper),
1933
+ box = _getChildren.box,
1934
+ content = _getChildren.content;
1935
+
1936
+ var backdrop = instance.props.animateFill ? createBackdropElement() : null;
1937
+ return {
1938
+ onCreate: function onCreate() {
1939
+ if (backdrop) {
1940
+ box.insertBefore(backdrop, box.firstElementChild);
1941
+ box.setAttribute('data-animatefill', '');
1942
+ box.style.overflow = 'hidden';
1943
+ instance.setProps({
1944
+ arrow: false,
1945
+ animation: 'shift-away'
1946
+ });
1947
+ }
1948
+ },
1949
+ onMount: function onMount() {
1950
+ if (backdrop) {
1951
+ var transitionDuration = box.style.transitionDuration;
1952
+ var duration = Number(transitionDuration.replace('ms', '')); // The content should fade in after the backdrop has mostly filled the
1953
+ // tooltip element. `clip-path` is the other alternative but is not
1954
+ // well-supported and is buggy on some devices.
1955
+
1956
+ content.style.transitionDelay = Math.round(duration / 10) + "ms";
1957
+ backdrop.style.transitionDuration = transitionDuration;
1958
+ setVisibilityState([backdrop], 'visible');
1959
+ }
1960
+ },
1961
+ onShow: function onShow() {
1962
+ if (backdrop) {
1963
+ backdrop.style.transitionDuration = '0ms';
1964
+ }
1965
+ },
1966
+ onHide: function onHide() {
1967
+ if (backdrop) {
1968
+ setVisibilityState([backdrop], 'hidden');
1969
+ }
1970
+ }
1971
+ };
1972
+ }
1973
+ };
1974
+
1975
+ function createBackdropElement() {
1976
+ var backdrop = div();
1977
+ backdrop.className = BACKDROP_CLASS;
1978
+ setVisibilityState([backdrop], 'hidden');
1979
+ return backdrop;
1980
+ }
1981
+
1982
+ var mouseCoords = {
1983
+ clientX: 0,
1984
+ clientY: 0
1985
+ };
1986
+ var activeInstances = [];
1987
+
1988
+ function storeMouseCoords(_ref) {
1989
+ var clientX = _ref.clientX,
1990
+ clientY = _ref.clientY;
1991
+ mouseCoords = {
1992
+ clientX: clientX,
1993
+ clientY: clientY
1994
+ };
1995
+ }
1996
+
1997
+ function addMouseCoordsListener(doc) {
1998
+ doc.addEventListener('mousemove', storeMouseCoords);
1999
+ }
2000
+
2001
+ function removeMouseCoordsListener(doc) {
2002
+ doc.removeEventListener('mousemove', storeMouseCoords);
2003
+ }
2004
+
2005
+ var followCursor = {
2006
+ name: 'followCursor',
2007
+ defaultValue: false,
2008
+ fn: function fn(instance) {
2009
+ var reference = instance.reference;
2010
+ var doc = getOwnerDocument(instance.props.triggerTarget || reference);
2011
+ var isInternalUpdate = false;
2012
+ var wasFocusEvent = false;
2013
+ var isUnmounted = true;
2014
+ var prevProps = instance.props;
2015
+
2016
+ function getIsInitialBehavior() {
2017
+ return instance.props.followCursor === 'initial' && instance.state.isVisible;
2018
+ }
2019
+
2020
+ function addListener() {
2021
+ doc.addEventListener('mousemove', onMouseMove);
2022
+ }
2023
+
2024
+ function removeListener() {
2025
+ doc.removeEventListener('mousemove', onMouseMove);
2026
+ }
2027
+
2028
+ function unsetGetReferenceClientRect() {
2029
+ isInternalUpdate = true;
2030
+ instance.setProps({
2031
+ getReferenceClientRect: null
2032
+ });
2033
+ isInternalUpdate = false;
2034
+ }
2035
+
2036
+ function onMouseMove(event) {
2037
+ // If the instance is interactive, avoid updating the position unless it's
2038
+ // over the reference element
2039
+ var isCursorOverReference = event.target ? reference.contains(event.target) : true;
2040
+ var followCursor = instance.props.followCursor;
2041
+ var clientX = event.clientX,
2042
+ clientY = event.clientY;
2043
+ var rect = reference.getBoundingClientRect();
2044
+ var relativeX = clientX - rect.left;
2045
+ var relativeY = clientY - rect.top;
2046
+
2047
+ if (isCursorOverReference || !instance.props.interactive) {
2048
+ instance.setProps({
2049
+ // @ts-ignore - unneeded DOMRect properties
2050
+ getReferenceClientRect: function getReferenceClientRect() {
2051
+ var rect = reference.getBoundingClientRect();
2052
+ var x = clientX;
2053
+ var y = clientY;
2054
+
2055
+ if (followCursor === 'initial') {
2056
+ x = rect.left + relativeX;
2057
+ y = rect.top + relativeY;
2058
+ }
2059
+
2060
+ var top = followCursor === 'horizontal' ? rect.top : y;
2061
+ var right = followCursor === 'vertical' ? rect.right : x;
2062
+ var bottom = followCursor === 'horizontal' ? rect.bottom : y;
2063
+ var left = followCursor === 'vertical' ? rect.left : x;
2064
+ return {
2065
+ width: right - left,
2066
+ height: bottom - top,
2067
+ top: top,
2068
+ right: right,
2069
+ bottom: bottom,
2070
+ left: left
2071
+ };
2072
+ }
2073
+ });
2074
+ }
2075
+ }
2076
+
2077
+ function create() {
2078
+ if (instance.props.followCursor) {
2079
+ activeInstances.push({
2080
+ instance: instance,
2081
+ doc: doc
2082
+ });
2083
+ addMouseCoordsListener(doc);
2084
+ }
2085
+ }
2086
+
2087
+ function destroy() {
2088
+ activeInstances = activeInstances.filter(function (data) {
2089
+ return data.instance !== instance;
2090
+ });
2091
+
2092
+ if (activeInstances.filter(function (data) {
2093
+ return data.doc === doc;
2094
+ }).length === 0) {
2095
+ removeMouseCoordsListener(doc);
2096
+ }
2097
+ }
2098
+
2099
+ return {
2100
+ onCreate: create,
2101
+ onDestroy: destroy,
2102
+ onBeforeUpdate: function onBeforeUpdate() {
2103
+ prevProps = instance.props;
2104
+ },
2105
+ onAfterUpdate: function onAfterUpdate(_, _ref2) {
2106
+ var followCursor = _ref2.followCursor;
2107
+
2108
+ if (isInternalUpdate) {
2109
+ return;
2110
+ }
2111
+
2112
+ if (followCursor !== undefined && prevProps.followCursor !== followCursor) {
2113
+ destroy();
2114
+
2115
+ if (followCursor) {
2116
+ create();
2117
+
2118
+ if (instance.state.isMounted && !wasFocusEvent && !getIsInitialBehavior()) {
2119
+ addListener();
2120
+ }
2121
+ } else {
2122
+ removeListener();
2123
+ unsetGetReferenceClientRect();
2124
+ }
2125
+ }
2126
+ },
2127
+ onMount: function onMount() {
2128
+ if (instance.props.followCursor && !wasFocusEvent) {
2129
+ if (isUnmounted) {
2130
+ onMouseMove(mouseCoords);
2131
+ isUnmounted = false;
2132
+ }
2133
+
2134
+ if (!getIsInitialBehavior()) {
2135
+ addListener();
2136
+ }
2137
+ }
2138
+ },
2139
+ onTrigger: function onTrigger(_, event) {
2140
+ if (isMouseEvent(event)) {
2141
+ mouseCoords = {
2142
+ clientX: event.clientX,
2143
+ clientY: event.clientY
2144
+ };
2145
+ }
2146
+
2147
+ wasFocusEvent = event.type === 'focus';
2148
+ },
2149
+ onHidden: function onHidden() {
2150
+ if (instance.props.followCursor) {
2151
+ unsetGetReferenceClientRect();
2152
+ removeListener();
2153
+ isUnmounted = true;
2154
+ }
2155
+ }
2156
+ };
2157
+ }
2158
+ };
2159
+
2160
+ function getProps(props, modifier) {
2161
+ var _props$popperOptions;
2162
+
2163
+ return {
2164
+ popperOptions: Object.assign({}, props.popperOptions, {
2165
+ modifiers: [].concat((((_props$popperOptions = props.popperOptions) == null ? void 0 : _props$popperOptions.modifiers) || []).filter(function (_ref) {
2166
+ var name = _ref.name;
2167
+ return name !== modifier.name;
2168
+ }), [modifier])
2169
+ })
2170
+ };
2171
+ }
2172
+
2173
+ var inlinePositioning = {
2174
+ name: 'inlinePositioning',
2175
+ defaultValue: false,
2176
+ fn: function fn(instance) {
2177
+ var reference = instance.reference;
2178
+
2179
+ function isEnabled() {
2180
+ return !!instance.props.inlinePositioning;
2181
+ }
2182
+
2183
+ var placement;
2184
+ var cursorRectIndex = -1;
2185
+ var isInternalUpdate = false;
2186
+ var triedPlacements = [];
2187
+ var modifier = {
2188
+ name: 'tippyInlinePositioning',
2189
+ enabled: true,
2190
+ phase: 'afterWrite',
2191
+ fn: function fn(_ref2) {
2192
+ var state = _ref2.state;
2193
+
2194
+ if (isEnabled()) {
2195
+ if (triedPlacements.indexOf(state.placement) !== -1) {
2196
+ triedPlacements = [];
2197
+ }
2198
+
2199
+ if (placement !== state.placement && triedPlacements.indexOf(state.placement) === -1) {
2200
+ triedPlacements.push(state.placement);
2201
+ instance.setProps({
2202
+ // @ts-ignore - unneeded DOMRect properties
2203
+ getReferenceClientRect: function getReferenceClientRect() {
2204
+ return _getReferenceClientRect(state.placement);
2205
+ }
2206
+ });
2207
+ }
2208
+
2209
+ placement = state.placement;
2210
+ }
2211
+ }
2212
+ };
2213
+
2214
+ function _getReferenceClientRect(placement) {
2215
+ return getInlineBoundingClientRect(getBasePlacement(placement), reference.getBoundingClientRect(), arrayFrom(reference.getClientRects()), cursorRectIndex);
2216
+ }
2217
+
2218
+ function setInternalProps(partialProps) {
2219
+ isInternalUpdate = true;
2220
+ instance.setProps(partialProps);
2221
+ isInternalUpdate = false;
2222
+ }
2223
+
2224
+ function addModifier() {
2225
+ if (!isInternalUpdate) {
2226
+ setInternalProps(getProps(instance.props, modifier));
2227
+ }
2228
+ }
2229
+
2230
+ return {
2231
+ onCreate: addModifier,
2232
+ onAfterUpdate: addModifier,
2233
+ onTrigger: function onTrigger(_, event) {
2234
+ if (isMouseEvent(event)) {
2235
+ var rects = arrayFrom(instance.reference.getClientRects());
2236
+ var cursorRect = rects.find(function (rect) {
2237
+ return rect.left - 2 <= event.clientX && rect.right + 2 >= event.clientX && rect.top - 2 <= event.clientY && rect.bottom + 2 >= event.clientY;
2238
+ });
2239
+ var index = rects.indexOf(cursorRect);
2240
+ cursorRectIndex = index > -1 ? index : cursorRectIndex;
2241
+ }
2242
+ },
2243
+ onHidden: function onHidden() {
2244
+ cursorRectIndex = -1;
2245
+ }
2246
+ };
2247
+ }
2248
+ };
2249
+ function getInlineBoundingClientRect(currentBasePlacement, boundingRect, clientRects, cursorRectIndex) {
2250
+ // Not an inline element, or placement is not yet known
2251
+ if (clientRects.length < 2 || currentBasePlacement === null) {
2252
+ return boundingRect;
2253
+ } // There are two rects and they are disjoined
2254
+
2255
+
2256
+ if (clientRects.length === 2 && cursorRectIndex >= 0 && clientRects[0].left > clientRects[1].right) {
2257
+ return clientRects[cursorRectIndex] || boundingRect;
2258
+ }
2259
+
2260
+ switch (currentBasePlacement) {
2261
+ case 'top':
2262
+ case 'bottom':
2263
+ {
2264
+ var firstRect = clientRects[0];
2265
+ var lastRect = clientRects[clientRects.length - 1];
2266
+ var isTop = currentBasePlacement === 'top';
2267
+ var top = firstRect.top;
2268
+ var bottom = lastRect.bottom;
2269
+ var left = isTop ? firstRect.left : lastRect.left;
2270
+ var right = isTop ? firstRect.right : lastRect.right;
2271
+ var width = right - left;
2272
+ var height = bottom - top;
2273
+ return {
2274
+ top: top,
2275
+ bottom: bottom,
2276
+ left: left,
2277
+ right: right,
2278
+ width: width,
2279
+ height: height
2280
+ };
2281
+ }
2282
+
2283
+ case 'left':
2284
+ case 'right':
2285
+ {
2286
+ var minLeft = Math.min.apply(Math, clientRects.map(function (rects) {
2287
+ return rects.left;
2288
+ }));
2289
+ var maxRight = Math.max.apply(Math, clientRects.map(function (rects) {
2290
+ return rects.right;
2291
+ }));
2292
+ var measureRects = clientRects.filter(function (rect) {
2293
+ return currentBasePlacement === 'left' ? rect.left === minLeft : rect.right === maxRight;
2294
+ });
2295
+ var _top = measureRects[0].top;
2296
+ var _bottom = measureRects[measureRects.length - 1].bottom;
2297
+ var _left = minLeft;
2298
+ var _right = maxRight;
2299
+
2300
+ var _width = _right - _left;
2301
+
2302
+ var _height = _bottom - _top;
2303
+
2304
+ return {
2305
+ top: _top,
2306
+ bottom: _bottom,
2307
+ left: _left,
2308
+ right: _right,
2309
+ width: _width,
2310
+ height: _height
2311
+ };
2312
+ }
2313
+
2314
+ default:
2315
+ {
2316
+ return boundingRect;
2317
+ }
2318
+ }
2319
+ }
2320
+
2321
+ var sticky = {
2322
+ name: 'sticky',
2323
+ defaultValue: false,
2324
+ fn: function fn(instance) {
2325
+ var reference = instance.reference,
2326
+ popper = instance.popper;
2327
+
2328
+ function getReference() {
2329
+ return instance.popperInstance ? instance.popperInstance.state.elements.reference : reference;
2330
+ }
2331
+
2332
+ function shouldCheck(value) {
2333
+ return instance.props.sticky === true || instance.props.sticky === value;
2334
+ }
2335
+
2336
+ var prevRefRect = null;
2337
+ var prevPopRect = null;
2338
+
2339
+ function updatePosition() {
2340
+ var currentRefRect = shouldCheck('reference') ? getReference().getBoundingClientRect() : null;
2341
+ var currentPopRect = shouldCheck('popper') ? popper.getBoundingClientRect() : null;
2342
+
2343
+ if (currentRefRect && areRectsDifferent(prevRefRect, currentRefRect) || currentPopRect && areRectsDifferent(prevPopRect, currentPopRect)) {
2344
+ if (instance.popperInstance) {
2345
+ instance.popperInstance.update();
2346
+ }
2347
+ }
2348
+
2349
+ prevRefRect = currentRefRect;
2350
+ prevPopRect = currentPopRect;
2351
+
2352
+ if (instance.state.isMounted) {
2353
+ requestAnimationFrame(updatePosition);
2354
+ }
2355
+ }
2356
+
2357
+ return {
2358
+ onMount: function onMount() {
2359
+ if (instance.props.sticky) {
2360
+ updatePosition();
2361
+ }
2362
+ }
2363
+ };
2364
+ }
2365
+ };
2366
+
2367
+ function areRectsDifferent(rectA, rectB) {
2368
+ if (rectA && rectB) {
2369
+ return rectA.top !== rectB.top || rectA.right !== rectB.right || rectA.bottom !== rectB.bottom || rectA.left !== rectB.left;
2370
+ }
2371
+
2372
+ return true;
2373
+ }
2374
+
2375
+ tippy.setDefaultProps({
2376
+ animation: false
2377
+ });
2378
+
2379
+ exports.animateFill = animateFill;
2380
+ exports.createSingleton = createSingleton;
2381
+ exports.default = tippy;
2382
+ exports.delegate = delegate;
2383
+ exports.followCursor = followCursor;
2384
+ exports.hideAll = hideAll;
2385
+ exports.inlinePositioning = inlinePositioning;
2386
+ exports.roundArrow = ROUND_ARROW;
2387
+ exports.sticky = sticky;
2388
+ //# sourceMappingURL=tippy-headless.cjs.js.map