@vc-shell/framework 1.1.44 → 1.1.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (453) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/core/plugins/modularity/loader.ts +120 -74
  3. package/core/services/app-bar-mobile-buttons-service.ts +1 -1
  4. package/dist/core/plugins/modularity/loader.d.ts.map +1 -1
  5. package/dist/core/services/app-bar-mobile-buttons-service.d.ts +1 -1
  6. package/dist/core/services/app-bar-mobile-buttons-service.d.ts.map +1 -1
  7. package/dist/framework.js +33347 -295
  8. package/dist/index.css +1 -9
  9. package/dist/index.d.ts +0 -4
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/locales/de.json +0 -84
  12. package/dist/locales/en.json +0 -84
  13. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/_internal/vc-mobile-back-button.vue.d.ts.map +1 -1
  14. package/dist/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts +1 -1
  15. package/dist/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts.map +1 -1
  16. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/internal/bladeRouteResolver.d.ts.map +1 -1
  17. package/dist/shared/components/change-password-button/change-password-button.vue.d.ts.map +1 -1
  18. package/dist/shared/components/logout-button/logout-button.vue.d.ts.map +1 -1
  19. package/dist/shared/components/settings-menu-item/settings-menu-item.vue.d.ts.map +1 -1
  20. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +2 -2
  21. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +6 -6
  22. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts.map +1 -1
  23. package/dist/tsconfig.tsbuildinfo +1 -1
  24. package/dist/ui/components/atoms/vc-hint/vc-hint.vue.d.ts.map +1 -1
  25. package/dist/ui/components/atoms/vc-icon/icons/MenuBurgerIcon.vue.d.ts.map +1 -1
  26. package/dist/ui/components/atoms/vc-icon/icons/index.d.ts +0 -26
  27. package/dist/ui/components/atoms/vc-icon/icons/index.d.ts.map +1 -1
  28. package/dist/ui/components/atoms/vc-icon/vc-bootstrap-icon.vue.d.ts.map +1 -1
  29. package/dist/ui/components/atoms/vc-icon/vc-fontawesome-icon.vue.d.ts.map +1 -1
  30. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
  31. package/dist/ui/components/atoms/vc-icon/vc-lucide-icon.vue.d.ts +0 -5
  32. package/dist/ui/components/atoms/vc-icon/vc-lucide-icon.vue.d.ts.map +1 -1
  33. package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts +0 -20
  34. package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts.map +1 -1
  35. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts.map +1 -1
  36. package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-button.vue.d.ts +36 -0
  37. package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-button.vue.d.ts.map +1 -0
  38. package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-toolbar.vue.d.ts +17 -0
  39. package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-toolbar.vue.d.ts.map +1 -0
  40. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +16 -2381
  41. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
  42. package/dist/ui/components/molecules/vc-form/vc-form.vue.d.ts.map +1 -1
  43. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +1 -1
  44. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
  45. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +1 -1
  46. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
  47. package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/MenuSidebar.vue.d.ts.map +1 -1
  48. package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts.map +1 -1
  49. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts.map +1 -1
  50. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
  51. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts.map +1 -1
  52. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-desktop.vue.d.ts.map +1 -1
  53. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-mobile.vue.d.ts.map +1 -1
  54. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
  55. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +2 -2
  56. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +2 -2
  57. package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts.map +1 -1
  58. package/dist/ui/components/organisms/vc-table/_internal/vc-table-header/vc-table-header.vue.d.ts.map +1 -1
  59. package/dist/vendor-boolbase-Cp9L0GAZ.js +25 -0
  60. package/dist/vendor-cheerio-HN9zIPZn.js +3135 -0
  61. package/dist/vendor-cheerio-select-5Ry0HvBq.js +306 -0
  62. package/dist/vendor-core-js-l0sNRNKZ.js +1 -0
  63. package/dist/vendor-css-select-DRIZ9kfZ.js +966 -0
  64. package/dist/vendor-css-what-DuPJ1HEF.js +448 -0
  65. package/dist/vendor-cypress-signalr-mock-BKdBJpdt.js +778 -0
  66. package/dist/vendor-date-fns-515YWkk-.js +6724 -0
  67. package/dist/vendor-dom-serializer-nQMsqjYW.js +286 -0
  68. package/dist/vendor-dom7-CJLPMwy5.js +941 -0
  69. package/dist/vendor-domelementtype-CjSzQey5.js +53 -0
  70. package/dist/vendor-domhandler-9z8cS16a.js +484 -0
  71. package/dist/vendor-dompurify-CRFzu7ib.js +1336 -0
  72. package/dist/vendor-domutils-Bc-Opz-v.js +981 -0
  73. package/dist/vendor-entities-Bfsx4xOQ.js +636 -0
  74. package/dist/vendor-floating-ui-core-wV8u8QP4.js +511 -0
  75. package/dist/vendor-floating-ui-dom-DDnRPs17.js +706 -0
  76. package/dist/vendor-floating-ui-utils-OMIFy1QU.js +296 -0
  77. package/dist/vendor-floating-ui-vue-D-tCDAMm.js +167 -0
  78. package/dist/vendor-fontsource-plus-jakarta-sans.css +1 -0
  79. package/dist/vendor-headlessui-vue-CY9FRgTb.js +83 -0
  80. package/dist/vendor-htmlparser2-B1dhFPOs.js +1426 -0
  81. package/dist/vendor-iconify-vue-DfRGgyNu.js +1840 -0
  82. package/dist/vendor-intlify-core-base-BuknsFQe.js +1876 -0
  83. package/dist/vendor-intlify-message-compiler-CuOQDWx1.js +1508 -0
  84. package/dist/vendor-intlify-shared-Cz4YRMuC.js +241 -0
  85. package/dist/vendor-iso-639-1-BJCk9DvE.js +819 -0
  86. package/dist/vendor-linkify-it-CKUf4vsc.js +830 -0
  87. package/dist/vendor-linkifyjs-BfyGgbCh.js +1756 -0
  88. package/dist/vendor-lodash-es-BySUOlwf.js +18333 -0
  89. package/dist/vendor-markdown-it-D-apazHa.js +6000 -0
  90. package/dist/vendor-markdown-it-task-lists-rxMVH6Ku.js +131 -0
  91. package/dist/vendor-mdurl-BNh2CCgT.js +537 -0
  92. package/dist/vendor-microsoft-applicationinsights-analytics-js-kG3lLg8X.js +1275 -0
  93. package/dist/vendor-microsoft-applicationinsights-cfgsync-js-C0uQkiQq.js +591 -0
  94. package/dist/vendor-microsoft-applicationinsights-channel-js-Dyd_PXA3.js +2153 -0
  95. package/dist/vendor-microsoft-applicationinsights-common-CfmP1_Qr.js +2470 -0
  96. package/dist/vendor-microsoft-applicationinsights-core-js-Cq4YSEvZ.js +6589 -0
  97. package/dist/vendor-microsoft-applicationinsights-dependencies-js-C56OBFr4.js +1510 -0
  98. package/dist/vendor-microsoft-applicationinsights-properties-js-CBJTBawx.js +761 -0
  99. package/dist/vendor-microsoft-applicationinsights-shims-CX8sJgar.js +70 -0
  100. package/dist/vendor-microsoft-applicationinsights-web-pim2ri-g.js +667 -0
  101. package/dist/vendor-microsoft-dynamicproto-js-CFBBUu9p.js +520 -0
  102. package/dist/vendor-microsoft-signalr-dUnlRsGm.js +3339 -0
  103. package/dist/vendor-moment-Mki5YqAR.js +5679 -0
  104. package/dist/vendor-nevware21-ts-async-CLMApQ9E.js +395 -0
  105. package/dist/vendor-nevware21-ts-utils-e8v8Jty3.js +1160 -0
  106. package/dist/vendor-normalize-css.css +1 -0
  107. package/dist/vendor-nth-check-Bx8TxtJt.js +157 -0
  108. package/dist/vendor-orderedmap-dGG6uMFJ.js +137 -0
  109. package/dist/vendor-parse5-Bt2NhSzR.js +8432 -0
  110. package/dist/vendor-parse5-htmlparser2-tree-adapter-BUUtKzf8.js +216 -0
  111. package/dist/vendor-popperjs-core-Cr2byIky.js +1790 -0
  112. package/dist/vendor-prettier-B4PaeWRQ.js +98 -0
  113. package/dist/vendor-prosemirror-commands-BH9lWGpW.js +561 -0
  114. package/dist/vendor-prosemirror-dropcursor-CeyPcxrA.js +146 -0
  115. package/dist/vendor-prosemirror-gapcursor-U8UoUJII.js +236 -0
  116. package/dist/vendor-prosemirror-history-BDaJkvNx.js +414 -0
  117. package/dist/vendor-prosemirror-keymap-BbWvIWmH.js +128 -0
  118. package/dist/vendor-prosemirror-markdown-gB0PXBbz.js +866 -0
  119. package/dist/vendor-prosemirror-model-BZu3WVcD.js +3463 -0
  120. package/dist/vendor-prosemirror-schema-list-Bl9NpKA7.js +158 -0
  121. package/dist/vendor-prosemirror-state-BvL9Pxph.js +1003 -0
  122. package/dist/vendor-prosemirror-tables-17qAnviK.js +2159 -0
  123. package/dist/vendor-prosemirror-transform-CE9VV3qg.js +2156 -0
  124. package/dist/vendor-prosemirror-view-CU2WTHT7.js +5811 -0
  125. package/dist/vendor-punycode-js-iAs5RxMf.js +441 -0
  126. package/dist/vendor-rope-sequence-BdXDKoGt.js +207 -0
  127. package/dist/vendor-semver-CVLMK-S4.js +2702 -0
  128. package/dist/vendor-ssr-window-s6OpKa3O.js +150 -0
  129. package/dist/vendor-swiper-CdiyNHVt.js +5679 -0
  130. package/dist/vendor-swiper.css +1 -0
  131. package/dist/vendor-tanstack-virtual-core-l0sNRNKZ.js +1 -0
  132. package/dist/vendor-tanstack-vue-virtual-l0sNRNKZ.js +1 -0
  133. package/dist/vendor-tippy-js-DWFe2TfK.js +1647 -0
  134. package/dist/vendor-tiptap-core-NfwGfaQk.js +4910 -0
  135. package/dist/vendor-tiptap-extension-blockquote-jmWBTtsI.js +57 -0
  136. package/dist/vendor-tiptap-extension-bold-p5frh4ak.js +97 -0
  137. package/dist/vendor-tiptap-extension-bubble-menu-KUhZSfrs.js +218 -0
  138. package/dist/vendor-tiptap-extension-bullet-list-COmZRoSB.js +73 -0
  139. package/dist/vendor-tiptap-extension-code-block-DyTARZss.js +221 -0
  140. package/dist/vendor-tiptap-extension-code-jVv6CXpX.js +75 -0
  141. package/dist/vendor-tiptap-extension-document-DssuotYs.js +13 -0
  142. package/dist/vendor-tiptap-extension-dropcursor-BoO0Qv91.js +26 -0
  143. package/dist/vendor-tiptap-extension-floating-menu-CrO8CN5w.js +165 -0
  144. package/dist/vendor-tiptap-extension-gapcursor-KpsWEoMD.js +30 -0
  145. package/dist/vendor-tiptap-extension-hard-break-ldOzhSvf.js +68 -0
  146. package/dist/vendor-tiptap-extension-heading-CKz2llX0.js +77 -0
  147. package/dist/vendor-tiptap-extension-history-DeKZ2VQ9.js +48 -0
  148. package/dist/vendor-tiptap-extension-horizontal-rule-CAjWRyDS.js +92 -0
  149. package/dist/vendor-tiptap-extension-image-ZagcEYuk.js +76 -0
  150. package/dist/vendor-tiptap-extension-italic-CM4xdznY.js +96 -0
  151. package/dist/vendor-tiptap-extension-link-Z-AMC4Ri.js +414 -0
  152. package/dist/vendor-tiptap-extension-list-item-BJi5QpXc.js +37 -0
  153. package/dist/vendor-tiptap-extension-ordered-list-C_TMrfBE.js +97 -0
  154. package/dist/vendor-tiptap-extension-paragraph-CQw0E0Au.js +39 -0
  155. package/dist/vendor-tiptap-extension-placeholder-BBNVKfa_.js +66 -0
  156. package/dist/vendor-tiptap-extension-strike-DUyMYX1Z.js +79 -0
  157. package/dist/vendor-tiptap-extension-table-cell-CoDIMPA5.js +47 -0
  158. package/dist/vendor-tiptap-extension-table-header-DvbGHnmw.js +47 -0
  159. package/dist/vendor-tiptap-extension-table-row-D1uqN5Aj.js +26 -0
  160. package/dist/vendor-tiptap-extension-table-tKS4MOM4.js +354 -0
  161. package/dist/vendor-tiptap-extension-text-DtRBhKB2.js +12 -0
  162. package/dist/vendor-tiptap-extension-underline-DqaSFp_P.js +50 -0
  163. package/dist/vendor-tiptap-markdown-7-PCADTU.js +1017 -0
  164. package/dist/vendor-tiptap-pm-l0sNRNKZ.js +1 -0
  165. package/dist/vendor-tiptap-starter-kit-CDSV_Zuu.js +88 -0
  166. package/dist/vendor-tiptap-vue-3-DZg2fjq_.js +268 -0
  167. package/dist/vendor-truncate-html-3qQY0Djo.js +196 -0
  168. package/dist/vendor-uc-micro-jjt6LQ65.js +23 -0
  169. package/dist/vendor-vee-validate-i18n-v_gHjRmD.js +154 -0
  170. package/dist/vendor-vee-validate-rules-DzV3VY3N.js +536 -0
  171. package/dist/vendor-vue-currency-input-DGAkEFBO.js +545 -0
  172. package/dist/vendor-vue-demi-l0sNRNKZ.js +1 -0
  173. package/dist/vendor-vue-devtools-api-DXYR8qBG.js +169 -0
  174. package/dist/vendor-vue-i18n-Co752uk3.js +1897 -0
  175. package/dist/vendor-vue3-application-insights-CYWFCr_J.js +119 -0
  176. package/dist/vendor-vue3-touch-events-BJEAiSa3.js +416 -0
  177. package/dist/vendor-vuepic-vue-datepicker-BSWXRSiu.js +5019 -0
  178. package/dist/vendor-vuepic-vue-datepicker.css +1 -0
  179. package/dist/vendor-vueuse-components-l1bL12mE.js +339 -0
  180. package/dist/vendor-vueuse-core-DGcJOmwG.js +7743 -0
  181. package/dist/vendor-vueuse-shared-_mOXsFuM.js +1568 -0
  182. package/dist/vendor-w3c-keyname-BOm2dtJm.js +121 -0
  183. package/package.json +22 -11
  184. package/shared/components/blade-navigation/components/vc-blade-navigation/_internal/vc-mobile-back-button.vue +3 -3
  185. package/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.ts +2 -1
  186. package/shared/components/blade-navigation/composables/useBladeNavigation/internal/bladeRouteResolver.ts +1 -0
  187. package/shared/components/change-password-button/change-password-button.vue +1 -2
  188. package/shared/components/logout-button/logout-button.vue +1 -2
  189. package/shared/components/notifications/components/notification-container/index.ts +1 -1
  190. package/shared/components/notifications/core/notification.ts +1 -1
  191. package/shared/components/settings-menu-item/settings-menu-item.vue +1 -0
  192. package/shared/components/sidebar/sidebar.vue +2 -2
  193. package/shared/modules/dynamic/pages/dynamic-blade-list.vue +2 -1
  194. package/ui/components/atoms/vc-hint/vc-hint.vue +2 -0
  195. package/ui/components/atoms/vc-icon/composables/use-icon.ts +1 -1
  196. package/ui/components/atoms/vc-icon/icons/MenuBurgerIcon.vue +18 -14
  197. package/ui/components/atoms/vc-icon/icons/index.ts +1 -27
  198. package/ui/components/atoms/vc-icon/vc-bootstrap-icon.vue +7 -11
  199. package/ui/components/atoms/vc-icon/vc-fontawesome-icon.vue +37 -31
  200. package/ui/components/atoms/vc-icon/vc-icon-examples.vue +1 -1
  201. package/ui/components/atoms/vc-icon/vc-icon.stories.ts +4 -5
  202. package/ui/components/atoms/vc-icon/vc-icon.vue +33 -163
  203. package/ui/components/atoms/vc-icon/vc-lucide-icon.vue +22 -70
  204. package/ui/components/atoms/vc-icon/vc-material-icon.vue +28 -59
  205. package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +2 -3
  206. package/ui/components/molecules/vc-editor/_internal/vc-editor-button.vue +103 -0
  207. package/ui/components/molecules/vc-editor/_internal/vc-editor-toolbar.vue +252 -0
  208. package/ui/components/molecules/vc-editor/vc-editor.stories.ts +1 -4
  209. package/ui/components/molecules/vc-editor/vc-editor.vue +666 -360
  210. package/ui/components/molecules/vc-form/vc-form.vue +7 -5
  211. package/ui/components/molecules/vc-input/vc-input.vue +1 -1
  212. package/ui/components/molecules/vc-pagination/vc-pagination.vue +4 -17
  213. package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarMobileActions.vue +1 -1
  214. package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/MenuSidebar.vue +1 -3
  215. package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +1 -4
  216. package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +1 -3
  217. package/ui/components/organisms/vc-app/vc-app.backupsb.ts +214 -214
  218. package/ui/components/organisms/vc-app/vc-app.vue +3 -5
  219. package/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue +3 -10
  220. package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/mobile/vc-blade-toolbar-mobile.vue +1 -1
  221. package/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-desktop.vue +2 -2
  222. package/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-mobile.vue +2 -2
  223. package/ui/components/organisms/vc-blade/vc-blade.vue +4 -5
  224. package/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue +1 -3
  225. package/ui/components/organisms/vc-table/_internal/vc-table-header/vc-table-header.vue +1 -2
  226. package/ui/components/organisms/vc-table/composables/useTableState.ts +5 -5
  227. package/dist/apl-B2DGVGxc.js +0 -76
  228. package/dist/asciiarmor-2LVJmxlE.js +0 -34
  229. package/dist/asn1-jKiBa2Ya.js +0 -95
  230. package/dist/asterisk-DS281yxp.js +0 -271
  231. package/dist/brainfuck-C_p9pTT8.js +0 -34
  232. package/dist/clike-DGTaUp48.js +0 -620
  233. package/dist/clojure-CCKyeQKf.js +0 -800
  234. package/dist/cmake-CuaCgAKt.js +0 -28
  235. package/dist/cobol-BlTKFDRj.js +0 -72
  236. package/dist/coffeescript-BVCvwO8I.js +0 -179
  237. package/dist/commonlisp-D_kxz07b.js +0 -75
  238. package/dist/crystal-D309uH6_.js +0 -217
  239. package/dist/css-BkF-NPzE.js +0 -1553
  240. package/dist/cypher-BMq4Fwjl.js +0 -68
  241. package/dist/d-BZcgY6La.js +0 -127
  242. package/dist/diff-Cg9d_RX2.js +0 -18
  243. package/dist/dockerfile-DIy8NleC.js +0 -194
  244. package/dist/dtd-CtLokQ-U.js +0 -84
  245. package/dist/dylan-QYeExnWK.js +0 -234
  246. package/dist/ebnf-DUPDuY4r.js +0 -78
  247. package/dist/ecl-CiXN-g_D.js +0 -121
  248. package/dist/eiffel-yQhjl4T1.js +0 -110
  249. package/dist/elm-CNT9vbN0.js +0 -108
  250. package/dist/erlang-CFOYdy9e.js +0 -487
  251. package/dist/factor-DDOC7X6P.js +0 -65
  252. package/dist/fcl-CPC2WYrI.js +0 -103
  253. package/dist/forth-BmxRyE9S.js +0 -60
  254. package/dist/fortran-9bvPyrOW.js +0 -442
  255. package/dist/gas-cpmYfFX2.js +0 -183
  256. package/dist/gherkin-CJuwpceU.js +0 -34
  257. package/dist/groovy-DZeT_VM-.js +0 -146
  258. package/dist/haskell-Bvt3Qq1t.js +0 -375
  259. package/dist/haxe-70NVW1pR.js +0 -359
  260. package/dist/http-D9LttvKF.js +0 -44
  261. package/dist/idl-B6TRFYjl.js +0 -947
  262. package/dist/index-4DWvmoYg.js +0 -71
  263. package/dist/index-52o7mJaX.js +0 -156
  264. package/dist/index-B0KatioT.js +0 -98
  265. package/dist/index-BP3W8zuk.js +0 -268
  266. package/dist/index-BykT5L1A.js +0 -148134
  267. package/dist/index-CfXo9hsG.js +0 -75
  268. package/dist/index-Ch37pBUt.js +0 -308
  269. package/dist/index-D2KGkAYT.js +0 -93
  270. package/dist/index-D83zQom_.js +0 -58
  271. package/dist/index-DuQrVLbu.js +0 -134
  272. package/dist/index-_fdMid5h.js +0 -288
  273. package/dist/index-a1wO-owY.js +0 -545
  274. package/dist/index-crMpNSFe.js +0 -611
  275. package/dist/index-dmBRpHHY.js +0 -137
  276. package/dist/index-kBdB14Fz.js +0 -341
  277. package/dist/index-uBhy41le.js +0 -249
  278. package/dist/index-zZrijNsr.js +0 -299
  279. package/dist/javascript-C2yteZeJ.js +0 -691
  280. package/dist/jinja2-DnB6dQmV.js +0 -154
  281. package/dist/julia-DpvXAuO6.js +0 -241
  282. package/dist/livescript-CanGTf8u.js +0 -272
  283. package/dist/lua-XplVlWi_.js +0 -217
  284. package/dist/mathematica-jaRHnSxC.js +0 -35
  285. package/dist/mbox-BctzC1hL.js +0 -76
  286. package/dist/mirc-CFBPAOaF.js +0 -72
  287. package/dist/mllike-BSnXJBGA.js +0 -272
  288. package/dist/modelica-vUgVs--1.js +0 -93
  289. package/dist/mscgen-Cpl0NYLN.js +0 -104
  290. package/dist/mumps-CQoS1kWX.js +0 -25
  291. package/dist/nginx-zDPm3Z74.js +0 -89
  292. package/dist/nsis-fePjrhq7.js +0 -62
  293. package/dist/ntriples-CsNjv2QF.js +0 -79
  294. package/dist/octave-C8PmmSRH.js +0 -143
  295. package/dist/oz-Ce8aN8oE.js +0 -151
  296. package/dist/pascal-De0D6mP7.js +0 -77
  297. package/dist/perl-B4bSCe1C.js +0 -915
  298. package/dist/pig-D24Z8EXi.js +0 -54
  299. package/dist/powershell-DkYVfTzP.js +0 -249
  300. package/dist/properties-Dn9wna3M.js +0 -26
  301. package/dist/protobuf-BPIjwpzm.js +0 -49
  302. package/dist/pug-CwAQJzGR.js +0 -248
  303. package/dist/puppet-nyd4dhjf.js +0 -45
  304. package/dist/python-BkR3uSy8.js +0 -313
  305. package/dist/q-DXjKs-tC.js +0 -83
  306. package/dist/r-LKEuhEGI.js +0 -104
  307. package/dist/rpm-IznJm2Xc.js +0 -57
  308. package/dist/ruby-CcYfvIk6.js +0 -228
  309. package/dist/sas-7E8yHoCW.js +0 -105
  310. package/dist/scheme-DjibxsNh.js +0 -124
  311. package/dist/shared/modules/dynamic/components/fields/storybook/common/args.d.ts +0 -113
  312. package/dist/shared/modules/dynamic/components/fields/storybook/common/args.d.ts.map +0 -1
  313. package/dist/shared/modules/dynamic/components/fields/storybook/common/templates.d.ts +0 -3
  314. package/dist/shared/modules/dynamic/components/fields/storybook/common/templates.d.ts.map +0 -1
  315. package/dist/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.d.ts +0 -102
  316. package/dist/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.d.ts.map +0 -1
  317. package/dist/shared/modules/dynamic/components/fields/storybook/utils/sourceHighlighter.d.ts +0 -4
  318. package/dist/shared/modules/dynamic/components/fields/storybook/utils/sourceHighlighter.d.ts.map +0 -1
  319. package/dist/shared/modules/dynamic/components/fields/storybook/utils/sourceTransform.d.ts +0 -3
  320. package/dist/shared/modules/dynamic/components/fields/storybook/utils/sourceTransform.d.ts.map +0 -1
  321. package/dist/shell-C0C2sNA_.js +0 -182
  322. package/dist/sieve-Bwz7vjP5.js +0 -72
  323. package/dist/simple-mode-B0dvCdAA.js +0 -89
  324. package/dist/smalltalk-Bhddl2pB.js +0 -48
  325. package/dist/solr-BNlsLglM.js +0 -41
  326. package/dist/sparql-FarWu_Gb.js +0 -197
  327. package/dist/spreadsheet-C-cy4P5N.js +0 -49
  328. package/dist/sql-CfG5lQ3l.js +0 -282
  329. package/dist/stex-Du4h4KAU.js +0 -129
  330. package/dist/stylus-CAdqWld3.js +0 -250
  331. package/dist/swift-DSxqR9R6.js +0 -230
  332. package/dist/tcl-xfoLljhY.js +0 -81
  333. package/dist/textile-D1AWE-pc.js +0 -295
  334. package/dist/tiddlywiki-5wqsXtSk.js +0 -155
  335. package/dist/tiki-__Kn3CeS.js +0 -181
  336. package/dist/toml-BHiuTcfn.js +0 -49
  337. package/dist/troff-D2UO-fKf.js +0 -35
  338. package/dist/ttcn-Bsa4sfRm.js +0 -123
  339. package/dist/ttcn-cfg-Bac_acMi.js +0 -88
  340. package/dist/turtle-xwJUxoPV.js +0 -80
  341. package/dist/ui/components/atoms/vc-icon/icons/AppWindowIcon.vue.d.ts +0 -7
  342. package/dist/ui/components/atoms/vc-icon/icons/AppWindowIcon.vue.d.ts.map +0 -1
  343. package/dist/ui/components/atoms/vc-icon/icons/ArrowLeftIcon.vue.d.ts +0 -7
  344. package/dist/ui/components/atoms/vc-icon/icons/ArrowLeftIcon.vue.d.ts.map +0 -1
  345. package/dist/ui/components/atoms/vc-icon/icons/ArrowRightIcon.vue.d.ts +0 -7
  346. package/dist/ui/components/atoms/vc-icon/icons/ArrowRightIcon.vue.d.ts.map +0 -1
  347. package/dist/ui/components/atoms/vc-icon/icons/BellIcon.vue.d.ts +0 -7
  348. package/dist/ui/components/atoms/vc-icon/icons/BellIcon.vue.d.ts.map +0 -1
  349. package/dist/ui/components/atoms/vc-icon/icons/ChevronDownIcon.vue.d.ts +0 -7
  350. package/dist/ui/components/atoms/vc-icon/icons/ChevronDownIcon.vue.d.ts.map +0 -1
  351. package/dist/ui/components/atoms/vc-icon/icons/ChevronLeftIcon.vue.d.ts +0 -7
  352. package/dist/ui/components/atoms/vc-icon/icons/ChevronLeftIcon.vue.d.ts.map +0 -1
  353. package/dist/ui/components/atoms/vc-icon/icons/ChevronRightIcon.vue.d.ts +0 -7
  354. package/dist/ui/components/atoms/vc-icon/icons/ChevronRightIcon.vue.d.ts.map +0 -1
  355. package/dist/ui/components/atoms/vc-icon/icons/ChevronUpIcon.vue.d.ts +0 -7
  356. package/dist/ui/components/atoms/vc-icon/icons/ChevronUpIcon.vue.d.ts.map +0 -1
  357. package/dist/ui/components/atoms/vc-icon/icons/CircleDotsIcon.vue.d.ts +0 -7
  358. package/dist/ui/components/atoms/vc-icon/icons/CircleDotsIcon.vue.d.ts.map +0 -1
  359. package/dist/ui/components/atoms/vc-icon/icons/CrossSignIcon.vue.d.ts +0 -7
  360. package/dist/ui/components/atoms/vc-icon/icons/CrossSignIcon.vue.d.ts.map +0 -1
  361. package/dist/ui/components/atoms/vc-icon/icons/DoubleArrowLeftIcon.vue.d.ts +0 -7
  362. package/dist/ui/components/atoms/vc-icon/icons/DoubleArrowLeftIcon.vue.d.ts.map +0 -1
  363. package/dist/ui/components/atoms/vc-icon/icons/DoubleArrowRightIcon.vue.d.ts +0 -7
  364. package/dist/ui/components/atoms/vc-icon/icons/DoubleArrowRightIcon.vue.d.ts.map +0 -1
  365. package/dist/ui/components/atoms/vc-icon/icons/FulfillmentCentersIcon.vue.d.ts +0 -7
  366. package/dist/ui/components/atoms/vc-icon/icons/FulfillmentCentersIcon.vue.d.ts.map +0 -1
  367. package/dist/ui/components/atoms/vc-icon/icons/GridDotsIcon.vue.d.ts +0 -7
  368. package/dist/ui/components/atoms/vc-icon/icons/GridDotsIcon.vue.d.ts.map +0 -1
  369. package/dist/ui/components/atoms/vc-icon/icons/LogoutIcon.vue.d.ts +0 -7
  370. package/dist/ui/components/atoms/vc-icon/icons/LogoutIcon.vue.d.ts.map +0 -1
  371. package/dist/ui/components/atoms/vc-icon/icons/MinusSignIcon.vue.d.ts +0 -7
  372. package/dist/ui/components/atoms/vc-icon/icons/MinusSignIcon.vue.d.ts.map +0 -1
  373. package/dist/ui/components/atoms/vc-icon/icons/OffersIcon.vue.d.ts +0 -7
  374. package/dist/ui/components/atoms/vc-icon/icons/OffersIcon.vue.d.ts.map +0 -1
  375. package/dist/ui/components/atoms/vc-icon/icons/OrdersIcon.vue.d.ts +0 -7
  376. package/dist/ui/components/atoms/vc-icon/icons/OrdersIcon.vue.d.ts.map +0 -1
  377. package/dist/ui/components/atoms/vc-icon/icons/PeopleIcon.vue.d.ts +0 -7
  378. package/dist/ui/components/atoms/vc-icon/icons/PeopleIcon.vue.d.ts.map +0 -1
  379. package/dist/ui/components/atoms/vc-icon/icons/PlusSignIcon.vue.d.ts +0 -7
  380. package/dist/ui/components/atoms/vc-icon/icons/PlusSignIcon.vue.d.ts.map +0 -1
  381. package/dist/ui/components/atoms/vc-icon/icons/ProductsIcon.vue.d.ts +0 -7
  382. package/dist/ui/components/atoms/vc-icon/icons/ProductsIcon.vue.d.ts.map +0 -1
  383. package/dist/ui/components/atoms/vc-icon/icons/ProfileIcon.vue.d.ts +0 -7
  384. package/dist/ui/components/atoms/vc-icon/icons/ProfileIcon.vue.d.ts.map +0 -1
  385. package/dist/ui/components/atoms/vc-icon/icons/SearchIcon.vue.d.ts +0 -7
  386. package/dist/ui/components/atoms/vc-icon/icons/SearchIcon.vue.d.ts.map +0 -1
  387. package/dist/ui/components/atoms/vc-icon/icons/SettingsBoltIcon.vue.d.ts +0 -7
  388. package/dist/ui/components/atoms/vc-icon/icons/SettingsBoltIcon.vue.d.ts.map +0 -1
  389. package/dist/ui/components/atoms/vc-icon/icons/ShoppingCardIcon.vue.d.ts +0 -7
  390. package/dist/ui/components/atoms/vc-icon/icons/ShoppingCardIcon.vue.d.ts.map +0 -1
  391. package/dist/ui/components/atoms/vc-icon/icons/VendorSwitchIcon.vue.d.ts +0 -7
  392. package/dist/ui/components/atoms/vc-icon/icons/VendorSwitchIcon.vue.d.ts.map +0 -1
  393. package/dist/ui/components/atoms/vc-icon/icons/VertDotsIcon.vue.d.ts +0 -7
  394. package/dist/ui/components/atoms/vc-icon/icons/VertDotsIcon.vue.d.ts.map +0 -1
  395. package/dist/vb-c2kQGd6-.js +0 -74
  396. package/dist/vbscript-1f_Dhg5H.js +0 -324
  397. package/dist/velocity-DJd0pTTC.js +0 -96
  398. package/dist/verilog-CiS1jyi5.js +0 -262
  399. package/dist/vhdl-T9HkrbI2.js +0 -106
  400. package/dist/webidl-CjfDENEo.js +0 -155
  401. package/dist/xquery-BUQdORAS.js +0 -422
  402. package/dist/yacas-C0absKBh.js +0 -73
  403. package/dist/z80-Pki2zAjW.js +0 -61
  404. package/shared/modules/dynamic/components/fields/storybook/Button.stories.ts +0 -186
  405. package/shared/modules/dynamic/components/fields/storybook/Card.stories.ts +0 -175
  406. package/shared/modules/dynamic/components/fields/storybook/Checkbox.stories.ts +0 -185
  407. package/shared/modules/dynamic/components/fields/storybook/ContentField.stories.ts +0 -245
  408. package/shared/modules/dynamic/components/fields/storybook/EditorField.stories.ts +0 -192
  409. package/shared/modules/dynamic/components/fields/storybook/Fieldset.stories.ts +0 -347
  410. package/shared/modules/dynamic/components/fields/storybook/GalleryField.stories.ts +0 -239
  411. package/shared/modules/dynamic/components/fields/storybook/ImageField.stories.ts +0 -186
  412. package/shared/modules/dynamic/components/fields/storybook/InputCurrency.stories.ts +0 -281
  413. package/shared/modules/dynamic/components/fields/storybook/InputField.stories.ts +0 -312
  414. package/shared/modules/dynamic/components/fields/storybook/MultivalueField.stories.ts +0 -361
  415. package/shared/modules/dynamic/components/fields/storybook/RadioButtonGroup.stories.ts +0 -224
  416. package/shared/modules/dynamic/components/fields/storybook/RatingField.stories.ts +0 -131
  417. package/shared/modules/dynamic/components/fields/storybook/SelectField.stories.ts +0 -666
  418. package/shared/modules/dynamic/components/fields/storybook/StatusField.stories.ts +0 -202
  419. package/shared/modules/dynamic/components/fields/storybook/SwitchField.stories.ts +0 -178
  420. package/shared/modules/dynamic/components/fields/storybook/TextareaField.stories.ts +0 -203
  421. package/shared/modules/dynamic/components/fields/storybook/VideoField.stories.ts +0 -92
  422. package/shared/modules/dynamic/components/fields/storybook/common/args.ts +0 -130
  423. package/shared/modules/dynamic/components/fields/storybook/common/templates.ts +0 -8
  424. package/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.ts +0 -54
  425. package/shared/modules/dynamic/components/fields/storybook/utils/sourceHighlighter.ts +0 -16
  426. package/shared/modules/dynamic/components/fields/storybook/utils/sourceTransform.ts +0 -41
  427. package/ui/components/atoms/vc-icon/icons/AppWindowIcon.vue +0 -15
  428. package/ui/components/atoms/vc-icon/icons/ArrowLeftIcon.vue +0 -20
  429. package/ui/components/atoms/vc-icon/icons/ArrowRightIcon.vue +0 -13
  430. package/ui/components/atoms/vc-icon/icons/BellIcon.vue +0 -14
  431. package/ui/components/atoms/vc-icon/icons/ChevronDownIcon.vue +0 -13
  432. package/ui/components/atoms/vc-icon/icons/ChevronLeftIcon.vue +0 -13
  433. package/ui/components/atoms/vc-icon/icons/ChevronRightIcon.vue +0 -13
  434. package/ui/components/atoms/vc-icon/icons/ChevronUpIcon.vue +0 -13
  435. package/ui/components/atoms/vc-icon/icons/CircleDotsIcon.vue +0 -16
  436. package/ui/components/atoms/vc-icon/icons/CrossSignIcon.vue +0 -20
  437. package/ui/components/atoms/vc-icon/icons/DoubleArrowLeftIcon.vue +0 -14
  438. package/ui/components/atoms/vc-icon/icons/DoubleArrowRightIcon.vue +0 -14
  439. package/ui/components/atoms/vc-icon/icons/FulfillmentCentersIcon.vue +0 -27
  440. package/ui/components/atoms/vc-icon/icons/GridDotsIcon.vue +0 -22
  441. package/ui/components/atoms/vc-icon/icons/LogoutIcon.vue +0 -13
  442. package/ui/components/atoms/vc-icon/icons/MinusSignIcon.vue +0 -14
  443. package/ui/components/atoms/vc-icon/icons/OffersIcon.vue +0 -23
  444. package/ui/components/atoms/vc-icon/icons/OrdersIcon.vue +0 -19
  445. package/ui/components/atoms/vc-icon/icons/PeopleIcon.vue +0 -21
  446. package/ui/components/atoms/vc-icon/icons/PlusSignIcon.vue +0 -20
  447. package/ui/components/atoms/vc-icon/icons/ProductsIcon.vue +0 -23
  448. package/ui/components/atoms/vc-icon/icons/ProfileIcon.vue +0 -18
  449. package/ui/components/atoms/vc-icon/icons/SearchIcon.vue +0 -14
  450. package/ui/components/atoms/vc-icon/icons/SettingsBoltIcon.vue +0 -21
  451. package/ui/components/atoms/vc-icon/icons/ShoppingCardIcon.vue +0 -16
  452. package/ui/components/atoms/vc-icon/icons/VendorSwitchIcon.vue +0 -26
  453. package/ui/components/atoms/vc-icon/icons/VertDotsIcon.vue +0 -19
@@ -0,0 +1,1790 @@
1
+ var top = 'top';
2
+ var bottom = 'bottom';
3
+ var right = 'right';
4
+ var left = 'left';
5
+ var auto = 'auto';
6
+ var basePlacements = [top, bottom, right, left];
7
+ var start = 'start';
8
+ var end = 'end';
9
+ var clippingParents = 'clippingParents';
10
+ var viewport = 'viewport';
11
+ var popper = 'popper';
12
+ var reference = 'reference';
13
+ var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {
14
+ return acc.concat([placement + "-" + start, placement + "-" + end]);
15
+ }, []);
16
+ var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {
17
+ return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
18
+ }, []); // modifiers that need to read the DOM
19
+
20
+ var beforeRead = 'beforeRead';
21
+ var read = 'read';
22
+ var afterRead = 'afterRead'; // pure-logic modifiers
23
+
24
+ var beforeMain = 'beforeMain';
25
+ var main = 'main';
26
+ var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)
27
+
28
+ var beforeWrite = 'beforeWrite';
29
+ var write = 'write';
30
+ var afterWrite = 'afterWrite';
31
+ var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
32
+
33
+ function getNodeName(element) {
34
+ return element ? (element.nodeName || '').toLowerCase() : null;
35
+ }
36
+
37
+ function getWindow(node) {
38
+ if (node == null) {
39
+ return window;
40
+ }
41
+
42
+ if (node.toString() !== '[object Window]') {
43
+ var ownerDocument = node.ownerDocument;
44
+ return ownerDocument ? ownerDocument.defaultView || window : window;
45
+ }
46
+
47
+ return node;
48
+ }
49
+
50
+ function isElement(node) {
51
+ var OwnElement = getWindow(node).Element;
52
+ return node instanceof OwnElement || node instanceof Element;
53
+ }
54
+
55
+ function isHTMLElement(node) {
56
+ var OwnElement = getWindow(node).HTMLElement;
57
+ return node instanceof OwnElement || node instanceof HTMLElement;
58
+ }
59
+
60
+ function isShadowRoot(node) {
61
+ // IE 11 has no ShadowRoot
62
+ if (typeof ShadowRoot === 'undefined') {
63
+ return false;
64
+ }
65
+
66
+ var OwnElement = getWindow(node).ShadowRoot;
67
+ return node instanceof OwnElement || node instanceof ShadowRoot;
68
+ }
69
+
70
+ // and applies them to the HTMLElements such as popper and arrow
71
+
72
+ function applyStyles(_ref) {
73
+ var state = _ref.state;
74
+ Object.keys(state.elements).forEach(function (name) {
75
+ var style = state.styles[name] || {};
76
+ var attributes = state.attributes[name] || {};
77
+ var element = state.elements[name]; // arrow is optional + virtual elements
78
+
79
+ if (!isHTMLElement(element) || !getNodeName(element)) {
80
+ return;
81
+ } // Flow doesn't support to extend this property, but it's the most
82
+ // effective way to apply styles to an HTMLElement
83
+ // $FlowFixMe[cannot-write]
84
+
85
+
86
+ Object.assign(element.style, style);
87
+ Object.keys(attributes).forEach(function (name) {
88
+ var value = attributes[name];
89
+
90
+ if (value === false) {
91
+ element.removeAttribute(name);
92
+ } else {
93
+ element.setAttribute(name, value === true ? '' : value);
94
+ }
95
+ });
96
+ });
97
+ }
98
+
99
+ function effect$2(_ref2) {
100
+ var state = _ref2.state;
101
+ var initialStyles = {
102
+ popper: {
103
+ position: state.options.strategy,
104
+ left: '0',
105
+ top: '0',
106
+ margin: '0'
107
+ },
108
+ arrow: {
109
+ position: 'absolute'
110
+ },
111
+ reference: {}
112
+ };
113
+ Object.assign(state.elements.popper.style, initialStyles.popper);
114
+ state.styles = initialStyles;
115
+
116
+ if (state.elements.arrow) {
117
+ Object.assign(state.elements.arrow.style, initialStyles.arrow);
118
+ }
119
+
120
+ return function () {
121
+ Object.keys(state.elements).forEach(function (name) {
122
+ var element = state.elements[name];
123
+ var attributes = state.attributes[name] || {};
124
+ var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them
125
+
126
+ var style = styleProperties.reduce(function (style, property) {
127
+ style[property] = '';
128
+ return style;
129
+ }, {}); // arrow is optional + virtual elements
130
+
131
+ if (!isHTMLElement(element) || !getNodeName(element)) {
132
+ return;
133
+ }
134
+
135
+ Object.assign(element.style, style);
136
+ Object.keys(attributes).forEach(function (attribute) {
137
+ element.removeAttribute(attribute);
138
+ });
139
+ });
140
+ };
141
+ } // eslint-disable-next-line import/no-unused-modules
142
+
143
+
144
+ const applyStyles$1 = {
145
+ name: 'applyStyles',
146
+ enabled: true,
147
+ phase: 'write',
148
+ fn: applyStyles,
149
+ effect: effect$2,
150
+ requires: ['computeStyles']
151
+ };
152
+
153
+ function getBasePlacement(placement) {
154
+ return placement.split('-')[0];
155
+ }
156
+
157
+ var max = Math.max;
158
+ var min = Math.min;
159
+ var round = Math.round;
160
+
161
+ function getUAString() {
162
+ var uaData = navigator.userAgentData;
163
+
164
+ if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
165
+ return uaData.brands.map(function (item) {
166
+ return item.brand + "/" + item.version;
167
+ }).join(' ');
168
+ }
169
+
170
+ return navigator.userAgent;
171
+ }
172
+
173
+ function isLayoutViewport() {
174
+ return !/^((?!chrome|android).)*safari/i.test(getUAString());
175
+ }
176
+
177
+ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
178
+ if (includeScale === void 0) {
179
+ includeScale = false;
180
+ }
181
+
182
+ if (isFixedStrategy === void 0) {
183
+ isFixedStrategy = false;
184
+ }
185
+
186
+ var clientRect = element.getBoundingClientRect();
187
+ var scaleX = 1;
188
+ var scaleY = 1;
189
+
190
+ if (includeScale && isHTMLElement(element)) {
191
+ scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
192
+ scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
193
+ }
194
+
195
+ var _ref = isElement(element) ? getWindow(element) : window,
196
+ visualViewport = _ref.visualViewport;
197
+
198
+ var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
199
+ var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
200
+ var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
201
+ var width = clientRect.width / scaleX;
202
+ var height = clientRect.height / scaleY;
203
+ return {
204
+ width: width,
205
+ height: height,
206
+ top: y,
207
+ right: x + width,
208
+ bottom: y + height,
209
+ left: x,
210
+ x: x,
211
+ y: y
212
+ };
213
+ }
214
+
215
+ // means it doesn't take into account transforms.
216
+
217
+ function getLayoutRect(element) {
218
+ var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
219
+ // Fixes https://github.com/popperjs/popper-core/issues/1223
220
+
221
+ var width = element.offsetWidth;
222
+ var height = element.offsetHeight;
223
+
224
+ if (Math.abs(clientRect.width - width) <= 1) {
225
+ width = clientRect.width;
226
+ }
227
+
228
+ if (Math.abs(clientRect.height - height) <= 1) {
229
+ height = clientRect.height;
230
+ }
231
+
232
+ return {
233
+ x: element.offsetLeft,
234
+ y: element.offsetTop,
235
+ width: width,
236
+ height: height
237
+ };
238
+ }
239
+
240
+ function contains(parent, child) {
241
+ var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
242
+
243
+ if (parent.contains(child)) {
244
+ return true;
245
+ } // then fallback to custom implementation with Shadow DOM support
246
+ else if (rootNode && isShadowRoot(rootNode)) {
247
+ var next = child;
248
+
249
+ do {
250
+ if (next && parent.isSameNode(next)) {
251
+ return true;
252
+ } // $FlowFixMe[prop-missing]: need a better way to handle this...
253
+
254
+
255
+ next = next.parentNode || next.host;
256
+ } while (next);
257
+ } // Give up, the result is false
258
+
259
+
260
+ return false;
261
+ }
262
+
263
+ function getComputedStyle(element) {
264
+ return getWindow(element).getComputedStyle(element);
265
+ }
266
+
267
+ function isTableElement(element) {
268
+ return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;
269
+ }
270
+
271
+ function getDocumentElement(element) {
272
+ // $FlowFixMe[incompatible-return]: assume body is always available
273
+ return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
274
+ element.document) || window.document).documentElement;
275
+ }
276
+
277
+ function getParentNode(element) {
278
+ if (getNodeName(element) === 'html') {
279
+ return element;
280
+ }
281
+
282
+ return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
283
+ // $FlowFixMe[incompatible-return]
284
+ // $FlowFixMe[prop-missing]
285
+ element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
286
+ element.parentNode || ( // DOM Element detected
287
+ isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
288
+ // $FlowFixMe[incompatible-call]: HTMLElement is a Node
289
+ getDocumentElement(element) // fallback
290
+
291
+ );
292
+ }
293
+
294
+ function getTrueOffsetParent(element) {
295
+ if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
296
+ getComputedStyle(element).position === 'fixed') {
297
+ return null;
298
+ }
299
+
300
+ return element.offsetParent;
301
+ } // `.offsetParent` reports `null` for fixed elements, while absolute elements
302
+ // return the containing block
303
+
304
+
305
+ function getContainingBlock(element) {
306
+ var isFirefox = /firefox/i.test(getUAString());
307
+ var isIE = /Trident/i.test(getUAString());
308
+
309
+ if (isIE && isHTMLElement(element)) {
310
+ // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
311
+ var elementCss = getComputedStyle(element);
312
+
313
+ if (elementCss.position === 'fixed') {
314
+ return null;
315
+ }
316
+ }
317
+
318
+ var currentNode = getParentNode(element);
319
+
320
+ if (isShadowRoot(currentNode)) {
321
+ currentNode = currentNode.host;
322
+ }
323
+
324
+ while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
325
+ var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that
326
+ // create a containing block.
327
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
328
+
329
+ if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
330
+ return currentNode;
331
+ } else {
332
+ currentNode = currentNode.parentNode;
333
+ }
334
+ }
335
+
336
+ return null;
337
+ } // Gets the closest ancestor positioned element. Handles some edge cases,
338
+ // such as table ancestors and cross browser bugs.
339
+
340
+
341
+ function getOffsetParent(element) {
342
+ var window = getWindow(element);
343
+ var offsetParent = getTrueOffsetParent(element);
344
+
345
+ while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {
346
+ offsetParent = getTrueOffsetParent(offsetParent);
347
+ }
348
+
349
+ if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {
350
+ return window;
351
+ }
352
+
353
+ return offsetParent || getContainingBlock(element) || window;
354
+ }
355
+
356
+ function getMainAxisFromPlacement(placement) {
357
+ return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
358
+ }
359
+
360
+ function within(min$1, value, max$1) {
361
+ return max(min$1, min(value, max$1));
362
+ }
363
+ function withinMaxClamp(min, value, max) {
364
+ var v = within(min, value, max);
365
+ return v > max ? max : v;
366
+ }
367
+
368
+ function getFreshSideObject() {
369
+ return {
370
+ top: 0,
371
+ right: 0,
372
+ bottom: 0,
373
+ left: 0
374
+ };
375
+ }
376
+
377
+ function mergePaddingObject(paddingObject) {
378
+ return Object.assign({}, getFreshSideObject(), paddingObject);
379
+ }
380
+
381
+ function expandToHashMap(value, keys) {
382
+ return keys.reduce(function (hashMap, key) {
383
+ hashMap[key] = value;
384
+ return hashMap;
385
+ }, {});
386
+ }
387
+
388
+ var toPaddingObject = function toPaddingObject(padding, state) {
389
+ padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
390
+ placement: state.placement
391
+ })) : padding;
392
+ return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
393
+ };
394
+
395
+ function arrow(_ref) {
396
+ var _state$modifiersData$;
397
+
398
+ var state = _ref.state,
399
+ name = _ref.name,
400
+ options = _ref.options;
401
+ var arrowElement = state.elements.arrow;
402
+ var popperOffsets = state.modifiersData.popperOffsets;
403
+ var basePlacement = getBasePlacement(state.placement);
404
+ var axis = getMainAxisFromPlacement(basePlacement);
405
+ var isVertical = [left, right].indexOf(basePlacement) >= 0;
406
+ var len = isVertical ? 'height' : 'width';
407
+
408
+ if (!arrowElement || !popperOffsets) {
409
+ return;
410
+ }
411
+
412
+ var paddingObject = toPaddingObject(options.padding, state);
413
+ var arrowRect = getLayoutRect(arrowElement);
414
+ var minProp = axis === 'y' ? top : left;
415
+ var maxProp = axis === 'y' ? bottom : right;
416
+ var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];
417
+ var startDiff = popperOffsets[axis] - state.rects.reference[axis];
418
+ var arrowOffsetParent = getOffsetParent(arrowElement);
419
+ var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
420
+ var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
421
+ // outside of the popper bounds
422
+
423
+ var min = paddingObject[minProp];
424
+ var max = clientSize - arrowRect[len] - paddingObject[maxProp];
425
+ var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;
426
+ var offset = within(min, center, max); // Prevents breaking syntax highlighting...
427
+
428
+ var axisProp = axis;
429
+ state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
430
+ }
431
+
432
+ function effect$1(_ref2) {
433
+ var state = _ref2.state,
434
+ options = _ref2.options;
435
+ var _options$element = options.element,
436
+ arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
437
+
438
+ if (arrowElement == null) {
439
+ return;
440
+ } // CSS selector
441
+
442
+
443
+ if (typeof arrowElement === 'string') {
444
+ arrowElement = state.elements.popper.querySelector(arrowElement);
445
+
446
+ if (!arrowElement) {
447
+ return;
448
+ }
449
+ }
450
+
451
+ if (!contains(state.elements.popper, arrowElement)) {
452
+ return;
453
+ }
454
+
455
+ state.elements.arrow = arrowElement;
456
+ } // eslint-disable-next-line import/no-unused-modules
457
+
458
+
459
+ const arrow$1 = {
460
+ name: 'arrow',
461
+ enabled: true,
462
+ phase: 'main',
463
+ fn: arrow,
464
+ effect: effect$1,
465
+ requires: ['popperOffsets'],
466
+ requiresIfExists: ['preventOverflow']
467
+ };
468
+
469
+ function getVariation(placement) {
470
+ return placement.split('-')[1];
471
+ }
472
+
473
+ var unsetSides = {
474
+ top: 'auto',
475
+ right: 'auto',
476
+ bottom: 'auto',
477
+ left: 'auto'
478
+ }; // Round the offsets to the nearest suitable subpixel based on the DPR.
479
+ // Zooming can change the DPR, but it seems to report a value that will
480
+ // cleanly divide the values into the appropriate subpixels.
481
+
482
+ function roundOffsetsByDPR(_ref, win) {
483
+ var x = _ref.x,
484
+ y = _ref.y;
485
+ var dpr = win.devicePixelRatio || 1;
486
+ return {
487
+ x: round(x * dpr) / dpr || 0,
488
+ y: round(y * dpr) / dpr || 0
489
+ };
490
+ }
491
+
492
+ function mapToStyles(_ref2) {
493
+ var _Object$assign2;
494
+
495
+ var popper = _ref2.popper,
496
+ popperRect = _ref2.popperRect,
497
+ placement = _ref2.placement,
498
+ variation = _ref2.variation,
499
+ offsets = _ref2.offsets,
500
+ position = _ref2.position,
501
+ gpuAcceleration = _ref2.gpuAcceleration,
502
+ adaptive = _ref2.adaptive,
503
+ roundOffsets = _ref2.roundOffsets,
504
+ isFixed = _ref2.isFixed;
505
+ var _offsets$x = offsets.x,
506
+ x = _offsets$x === void 0 ? 0 : _offsets$x,
507
+ _offsets$y = offsets.y,
508
+ y = _offsets$y === void 0 ? 0 : _offsets$y;
509
+
510
+ var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
511
+ x: x,
512
+ y: y
513
+ }) : {
514
+ x: x,
515
+ y: y
516
+ };
517
+
518
+ x = _ref3.x;
519
+ y = _ref3.y;
520
+ var hasX = offsets.hasOwnProperty('x');
521
+ var hasY = offsets.hasOwnProperty('y');
522
+ var sideX = left;
523
+ var sideY = top;
524
+ var win = window;
525
+
526
+ if (adaptive) {
527
+ var offsetParent = getOffsetParent(popper);
528
+ var heightProp = 'clientHeight';
529
+ var widthProp = 'clientWidth';
530
+
531
+ if (offsetParent === getWindow(popper)) {
532
+ offsetParent = getDocumentElement(popper);
533
+
534
+ if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {
535
+ heightProp = 'scrollHeight';
536
+ widthProp = 'scrollWidth';
537
+ }
538
+ } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
539
+
540
+
541
+ offsetParent = offsetParent;
542
+
543
+ if (placement === top || (placement === left || placement === right) && variation === end) {
544
+ sideY = bottom;
545
+ var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
546
+ offsetParent[heightProp];
547
+ y -= offsetY - popperRect.height;
548
+ y *= gpuAcceleration ? 1 : -1;
549
+ }
550
+
551
+ if (placement === left || (placement === top || placement === bottom) && variation === end) {
552
+ sideX = right;
553
+ var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
554
+ offsetParent[widthProp];
555
+ x -= offsetX - popperRect.width;
556
+ x *= gpuAcceleration ? 1 : -1;
557
+ }
558
+ }
559
+
560
+ var commonStyles = Object.assign({
561
+ position: position
562
+ }, adaptive && unsetSides);
563
+
564
+ var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
565
+ x: x,
566
+ y: y
567
+ }, getWindow(popper)) : {
568
+ x: x,
569
+ y: y
570
+ };
571
+
572
+ x = _ref4.x;
573
+ y = _ref4.y;
574
+
575
+ if (gpuAcceleration) {
576
+ var _Object$assign;
577
+
578
+ return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
579
+ }
580
+
581
+ return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
582
+ }
583
+
584
+ function computeStyles(_ref5) {
585
+ var state = _ref5.state,
586
+ options = _ref5.options;
587
+ var _options$gpuAccelerat = options.gpuAcceleration,
588
+ gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
589
+ _options$adaptive = options.adaptive,
590
+ adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
591
+ _options$roundOffsets = options.roundOffsets,
592
+ roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
593
+ var commonStyles = {
594
+ placement: getBasePlacement(state.placement),
595
+ variation: getVariation(state.placement),
596
+ popper: state.elements.popper,
597
+ popperRect: state.rects.popper,
598
+ gpuAcceleration: gpuAcceleration,
599
+ isFixed: state.options.strategy === 'fixed'
600
+ };
601
+
602
+ if (state.modifiersData.popperOffsets != null) {
603
+ state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
604
+ offsets: state.modifiersData.popperOffsets,
605
+ position: state.options.strategy,
606
+ adaptive: adaptive,
607
+ roundOffsets: roundOffsets
608
+ })));
609
+ }
610
+
611
+ if (state.modifiersData.arrow != null) {
612
+ state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
613
+ offsets: state.modifiersData.arrow,
614
+ position: 'absolute',
615
+ adaptive: false,
616
+ roundOffsets: roundOffsets
617
+ })));
618
+ }
619
+
620
+ state.attributes.popper = Object.assign({}, state.attributes.popper, {
621
+ 'data-popper-placement': state.placement
622
+ });
623
+ } // eslint-disable-next-line import/no-unused-modules
624
+
625
+
626
+ const computeStyles$1 = {
627
+ name: 'computeStyles',
628
+ enabled: true,
629
+ phase: 'beforeWrite',
630
+ fn: computeStyles,
631
+ data: {}
632
+ };
633
+
634
+ var passive = {
635
+ passive: true
636
+ };
637
+
638
+ function effect(_ref) {
639
+ var state = _ref.state,
640
+ instance = _ref.instance,
641
+ options = _ref.options;
642
+ var _options$scroll = options.scroll,
643
+ scroll = _options$scroll === void 0 ? true : _options$scroll,
644
+ _options$resize = options.resize,
645
+ resize = _options$resize === void 0 ? true : _options$resize;
646
+ var window = getWindow(state.elements.popper);
647
+ var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
648
+
649
+ if (scroll) {
650
+ scrollParents.forEach(function (scrollParent) {
651
+ scrollParent.addEventListener('scroll', instance.update, passive);
652
+ });
653
+ }
654
+
655
+ if (resize) {
656
+ window.addEventListener('resize', instance.update, passive);
657
+ }
658
+
659
+ return function () {
660
+ if (scroll) {
661
+ scrollParents.forEach(function (scrollParent) {
662
+ scrollParent.removeEventListener('scroll', instance.update, passive);
663
+ });
664
+ }
665
+
666
+ if (resize) {
667
+ window.removeEventListener('resize', instance.update, passive);
668
+ }
669
+ };
670
+ } // eslint-disable-next-line import/no-unused-modules
671
+
672
+
673
+ const eventListeners = {
674
+ name: 'eventListeners',
675
+ enabled: true,
676
+ phase: 'write',
677
+ fn: function fn() {},
678
+ effect: effect,
679
+ data: {}
680
+ };
681
+
682
+ var hash$1 = {
683
+ left: 'right',
684
+ right: 'left',
685
+ bottom: 'top',
686
+ top: 'bottom'
687
+ };
688
+ function getOppositePlacement(placement) {
689
+ return placement.replace(/left|right|bottom|top/g, function (matched) {
690
+ return hash$1[matched];
691
+ });
692
+ }
693
+
694
+ var hash = {
695
+ start: 'end',
696
+ end: 'start'
697
+ };
698
+ function getOppositeVariationPlacement(placement) {
699
+ return placement.replace(/start|end/g, function (matched) {
700
+ return hash[matched];
701
+ });
702
+ }
703
+
704
+ function getWindowScroll(node) {
705
+ var win = getWindow(node);
706
+ var scrollLeft = win.pageXOffset;
707
+ var scrollTop = win.pageYOffset;
708
+ return {
709
+ scrollLeft: scrollLeft,
710
+ scrollTop: scrollTop
711
+ };
712
+ }
713
+
714
+ function getWindowScrollBarX(element) {
715
+ // If <html> has a CSS width greater than the viewport, then this will be
716
+ // incorrect for RTL.
717
+ // Popper 1 is broken in this case and never had a bug report so let's assume
718
+ // it's not an issue. I don't think anyone ever specifies width on <html>
719
+ // anyway.
720
+ // Browsers where the left scrollbar doesn't cause an issue report `0` for
721
+ // this (e.g. Edge 2019, IE11, Safari)
722
+ return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
723
+ }
724
+
725
+ function getViewportRect(element, strategy) {
726
+ var win = getWindow(element);
727
+ var html = getDocumentElement(element);
728
+ var visualViewport = win.visualViewport;
729
+ var width = html.clientWidth;
730
+ var height = html.clientHeight;
731
+ var x = 0;
732
+ var y = 0;
733
+
734
+ if (visualViewport) {
735
+ width = visualViewport.width;
736
+ height = visualViewport.height;
737
+ var layoutViewport = isLayoutViewport();
738
+
739
+ if (layoutViewport || !layoutViewport && strategy === 'fixed') {
740
+ x = visualViewport.offsetLeft;
741
+ y = visualViewport.offsetTop;
742
+ }
743
+ }
744
+
745
+ return {
746
+ width: width,
747
+ height: height,
748
+ x: x + getWindowScrollBarX(element),
749
+ y: y
750
+ };
751
+ }
752
+
753
+ // of the `<html>` and `<body>` rect bounds if horizontally scrollable
754
+
755
+ function getDocumentRect(element) {
756
+ var _element$ownerDocumen;
757
+
758
+ var html = getDocumentElement(element);
759
+ var winScroll = getWindowScroll(element);
760
+ var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
761
+ var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
762
+ var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
763
+ var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
764
+ var y = -winScroll.scrollTop;
765
+
766
+ if (getComputedStyle(body || html).direction === 'rtl') {
767
+ x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
768
+ }
769
+
770
+ return {
771
+ width: width,
772
+ height: height,
773
+ x: x,
774
+ y: y
775
+ };
776
+ }
777
+
778
+ function isScrollParent(element) {
779
+ // Firefox wants us to check `-x` and `-y` variations as well
780
+ var _getComputedStyle = getComputedStyle(element),
781
+ overflow = _getComputedStyle.overflow,
782
+ overflowX = _getComputedStyle.overflowX,
783
+ overflowY = _getComputedStyle.overflowY;
784
+
785
+ return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
786
+ }
787
+
788
+ function getScrollParent(node) {
789
+ if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
790
+ // $FlowFixMe[incompatible-return]: assume body is always available
791
+ return node.ownerDocument.body;
792
+ }
793
+
794
+ if (isHTMLElement(node) && isScrollParent(node)) {
795
+ return node;
796
+ }
797
+
798
+ return getScrollParent(getParentNode(node));
799
+ }
800
+
801
+ /*
802
+ given a DOM element, return the list of all scroll parents, up the list of ancesors
803
+ until we get to the top window object. This list is what we attach scroll listeners
804
+ to, because if any of these parent elements scroll, we'll need to re-calculate the
805
+ reference element's position.
806
+ */
807
+
808
+ function listScrollParents(element, list) {
809
+ var _element$ownerDocumen;
810
+
811
+ if (list === void 0) {
812
+ list = [];
813
+ }
814
+
815
+ var scrollParent = getScrollParent(element);
816
+ var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
817
+ var win = getWindow(scrollParent);
818
+ var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
819
+ var updatedList = list.concat(target);
820
+ return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
821
+ updatedList.concat(listScrollParents(getParentNode(target)));
822
+ }
823
+
824
+ function rectToClientRect(rect) {
825
+ return Object.assign({}, rect, {
826
+ left: rect.x,
827
+ top: rect.y,
828
+ right: rect.x + rect.width,
829
+ bottom: rect.y + rect.height
830
+ });
831
+ }
832
+
833
+ function getInnerBoundingClientRect(element, strategy) {
834
+ var rect = getBoundingClientRect(element, false, strategy === 'fixed');
835
+ rect.top = rect.top + element.clientTop;
836
+ rect.left = rect.left + element.clientLeft;
837
+ rect.bottom = rect.top + element.clientHeight;
838
+ rect.right = rect.left + element.clientWidth;
839
+ rect.width = element.clientWidth;
840
+ rect.height = element.clientHeight;
841
+ rect.x = rect.left;
842
+ rect.y = rect.top;
843
+ return rect;
844
+ }
845
+
846
+ function getClientRectFromMixedType(element, clippingParent, strategy) {
847
+ return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
848
+ } // A "clipping parent" is an overflowable container with the characteristic of
849
+ // clipping (or hiding) overflowing elements with a position different from
850
+ // `initial`
851
+
852
+
853
+ function getClippingParents(element) {
854
+ var clippingParents = listScrollParents(getParentNode(element));
855
+ var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;
856
+ var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
857
+
858
+ if (!isElement(clipperElement)) {
859
+ return [];
860
+ } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
861
+
862
+
863
+ return clippingParents.filter(function (clippingParent) {
864
+ return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
865
+ });
866
+ } // Gets the maximum area that the element is visible in due to any number of
867
+ // clipping parents
868
+
869
+
870
+ function getClippingRect(element, boundary, rootBoundary, strategy) {
871
+ var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
872
+ var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
873
+ var firstClippingParent = clippingParents[0];
874
+ var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
875
+ var rect = getClientRectFromMixedType(element, clippingParent, strategy);
876
+ accRect.top = max(rect.top, accRect.top);
877
+ accRect.right = min(rect.right, accRect.right);
878
+ accRect.bottom = min(rect.bottom, accRect.bottom);
879
+ accRect.left = max(rect.left, accRect.left);
880
+ return accRect;
881
+ }, getClientRectFromMixedType(element, firstClippingParent, strategy));
882
+ clippingRect.width = clippingRect.right - clippingRect.left;
883
+ clippingRect.height = clippingRect.bottom - clippingRect.top;
884
+ clippingRect.x = clippingRect.left;
885
+ clippingRect.y = clippingRect.top;
886
+ return clippingRect;
887
+ }
888
+
889
+ function computeOffsets(_ref) {
890
+ var reference = _ref.reference,
891
+ element = _ref.element,
892
+ placement = _ref.placement;
893
+ var basePlacement = placement ? getBasePlacement(placement) : null;
894
+ var variation = placement ? getVariation(placement) : null;
895
+ var commonX = reference.x + reference.width / 2 - element.width / 2;
896
+ var commonY = reference.y + reference.height / 2 - element.height / 2;
897
+ var offsets;
898
+
899
+ switch (basePlacement) {
900
+ case top:
901
+ offsets = {
902
+ x: commonX,
903
+ y: reference.y - element.height
904
+ };
905
+ break;
906
+
907
+ case bottom:
908
+ offsets = {
909
+ x: commonX,
910
+ y: reference.y + reference.height
911
+ };
912
+ break;
913
+
914
+ case right:
915
+ offsets = {
916
+ x: reference.x + reference.width,
917
+ y: commonY
918
+ };
919
+ break;
920
+
921
+ case left:
922
+ offsets = {
923
+ x: reference.x - element.width,
924
+ y: commonY
925
+ };
926
+ break;
927
+
928
+ default:
929
+ offsets = {
930
+ x: reference.x,
931
+ y: reference.y
932
+ };
933
+ }
934
+
935
+ var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
936
+
937
+ if (mainAxis != null) {
938
+ var len = mainAxis === 'y' ? 'height' : 'width';
939
+
940
+ switch (variation) {
941
+ case start:
942
+ offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
943
+ break;
944
+
945
+ case end:
946
+ offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
947
+ break;
948
+ }
949
+ }
950
+
951
+ return offsets;
952
+ }
953
+
954
+ function detectOverflow(state, options) {
955
+ if (options === void 0) {
956
+ options = {};
957
+ }
958
+
959
+ var _options = options,
960
+ _options$placement = _options.placement,
961
+ placement = _options$placement === void 0 ? state.placement : _options$placement,
962
+ _options$strategy = _options.strategy,
963
+ strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,
964
+ _options$boundary = _options.boundary,
965
+ boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
966
+ _options$rootBoundary = _options.rootBoundary,
967
+ rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,
968
+ _options$elementConte = _options.elementContext,
969
+ elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,
970
+ _options$altBoundary = _options.altBoundary,
971
+ altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,
972
+ _options$padding = _options.padding,
973
+ padding = _options$padding === void 0 ? 0 : _options$padding;
974
+ var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
975
+ var altContext = elementContext === popper ? reference : popper;
976
+ var popperRect = state.rects.popper;
977
+ var element = state.elements[altBoundary ? altContext : elementContext];
978
+ var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);
979
+ var referenceClientRect = getBoundingClientRect(state.elements.reference);
980
+ var popperOffsets = computeOffsets({
981
+ reference: referenceClientRect,
982
+ element: popperRect,
983
+ placement: placement
984
+ });
985
+ var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
986
+ var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
987
+ // 0 or negative = within the clipping rect
988
+
989
+ var overflowOffsets = {
990
+ top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
991
+ bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
992
+ left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
993
+ right: elementClientRect.right - clippingClientRect.right + paddingObject.right
994
+ };
995
+ var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element
996
+
997
+ if (elementContext === popper && offsetData) {
998
+ var offset = offsetData[placement];
999
+ Object.keys(overflowOffsets).forEach(function (key) {
1000
+ var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;
1001
+ var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';
1002
+ overflowOffsets[key] += offset[axis] * multiply;
1003
+ });
1004
+ }
1005
+
1006
+ return overflowOffsets;
1007
+ }
1008
+
1009
+ function computeAutoPlacement(state, options) {
1010
+ if (options === void 0) {
1011
+ options = {};
1012
+ }
1013
+
1014
+ var _options = options,
1015
+ placement = _options.placement,
1016
+ boundary = _options.boundary,
1017
+ rootBoundary = _options.rootBoundary,
1018
+ padding = _options.padding,
1019
+ flipVariations = _options.flipVariations,
1020
+ _options$allowedAutoP = _options.allowedAutoPlacements,
1021
+ allowedAutoPlacements = _options$allowedAutoP === void 0 ? placements : _options$allowedAutoP;
1022
+ var variation = getVariation(placement);
1023
+ var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
1024
+ return getVariation(placement) === variation;
1025
+ }) : basePlacements;
1026
+ var allowedPlacements = placements$1.filter(function (placement) {
1027
+ return allowedAutoPlacements.indexOf(placement) >= 0;
1028
+ });
1029
+
1030
+ if (allowedPlacements.length === 0) {
1031
+ allowedPlacements = placements$1;
1032
+ } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
1033
+
1034
+
1035
+ var overflows = allowedPlacements.reduce(function (acc, placement) {
1036
+ acc[placement] = detectOverflow(state, {
1037
+ placement: placement,
1038
+ boundary: boundary,
1039
+ rootBoundary: rootBoundary,
1040
+ padding: padding
1041
+ })[getBasePlacement(placement)];
1042
+ return acc;
1043
+ }, {});
1044
+ return Object.keys(overflows).sort(function (a, b) {
1045
+ return overflows[a] - overflows[b];
1046
+ });
1047
+ }
1048
+
1049
+ function getExpandedFallbackPlacements(placement) {
1050
+ if (getBasePlacement(placement) === auto) {
1051
+ return [];
1052
+ }
1053
+
1054
+ var oppositePlacement = getOppositePlacement(placement);
1055
+ return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];
1056
+ }
1057
+
1058
+ function flip(_ref) {
1059
+ var state = _ref.state,
1060
+ options = _ref.options,
1061
+ name = _ref.name;
1062
+
1063
+ if (state.modifiersData[name]._skip) {
1064
+ return;
1065
+ }
1066
+
1067
+ var _options$mainAxis = options.mainAxis,
1068
+ checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
1069
+ _options$altAxis = options.altAxis,
1070
+ checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,
1071
+ specifiedFallbackPlacements = options.fallbackPlacements,
1072
+ padding = options.padding,
1073
+ boundary = options.boundary,
1074
+ rootBoundary = options.rootBoundary,
1075
+ altBoundary = options.altBoundary,
1076
+ _options$flipVariatio = options.flipVariations,
1077
+ flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,
1078
+ allowedAutoPlacements = options.allowedAutoPlacements;
1079
+ var preferredPlacement = state.options.placement;
1080
+ var basePlacement = getBasePlacement(preferredPlacement);
1081
+ var isBasePlacement = basePlacement === preferredPlacement;
1082
+ var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));
1083
+ var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {
1084
+ return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {
1085
+ placement: placement,
1086
+ boundary: boundary,
1087
+ rootBoundary: rootBoundary,
1088
+ padding: padding,
1089
+ flipVariations: flipVariations,
1090
+ allowedAutoPlacements: allowedAutoPlacements
1091
+ }) : placement);
1092
+ }, []);
1093
+ var referenceRect = state.rects.reference;
1094
+ var popperRect = state.rects.popper;
1095
+ var checksMap = new Map();
1096
+ var makeFallbackChecks = true;
1097
+ var firstFittingPlacement = placements[0];
1098
+
1099
+ for (var i = 0; i < placements.length; i++) {
1100
+ var placement = placements[i];
1101
+
1102
+ var _basePlacement = getBasePlacement(placement);
1103
+
1104
+ var isStartVariation = getVariation(placement) === start;
1105
+ var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;
1106
+ var len = isVertical ? 'width' : 'height';
1107
+ var overflow = detectOverflow(state, {
1108
+ placement: placement,
1109
+ boundary: boundary,
1110
+ rootBoundary: rootBoundary,
1111
+ altBoundary: altBoundary,
1112
+ padding: padding
1113
+ });
1114
+ var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;
1115
+
1116
+ if (referenceRect[len] > popperRect[len]) {
1117
+ mainVariationSide = getOppositePlacement(mainVariationSide);
1118
+ }
1119
+
1120
+ var altVariationSide = getOppositePlacement(mainVariationSide);
1121
+ var checks = [];
1122
+
1123
+ if (checkMainAxis) {
1124
+ checks.push(overflow[_basePlacement] <= 0);
1125
+ }
1126
+
1127
+ if (checkAltAxis) {
1128
+ checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);
1129
+ }
1130
+
1131
+ if (checks.every(function (check) {
1132
+ return check;
1133
+ })) {
1134
+ firstFittingPlacement = placement;
1135
+ makeFallbackChecks = false;
1136
+ break;
1137
+ }
1138
+
1139
+ checksMap.set(placement, checks);
1140
+ }
1141
+
1142
+ if (makeFallbackChecks) {
1143
+ // `2` may be desired in some cases – research later
1144
+ var numberOfChecks = flipVariations ? 3 : 1;
1145
+
1146
+ var _loop = function _loop(_i) {
1147
+ var fittingPlacement = placements.find(function (placement) {
1148
+ var checks = checksMap.get(placement);
1149
+
1150
+ if (checks) {
1151
+ return checks.slice(0, _i).every(function (check) {
1152
+ return check;
1153
+ });
1154
+ }
1155
+ });
1156
+
1157
+ if (fittingPlacement) {
1158
+ firstFittingPlacement = fittingPlacement;
1159
+ return "break";
1160
+ }
1161
+ };
1162
+
1163
+ for (var _i = numberOfChecks; _i > 0; _i--) {
1164
+ var _ret = _loop(_i);
1165
+
1166
+ if (_ret === "break") break;
1167
+ }
1168
+ }
1169
+
1170
+ if (state.placement !== firstFittingPlacement) {
1171
+ state.modifiersData[name]._skip = true;
1172
+ state.placement = firstFittingPlacement;
1173
+ state.reset = true;
1174
+ }
1175
+ } // eslint-disable-next-line import/no-unused-modules
1176
+
1177
+
1178
+ const flip$1 = {
1179
+ name: 'flip',
1180
+ enabled: true,
1181
+ phase: 'main',
1182
+ fn: flip,
1183
+ requiresIfExists: ['offset'],
1184
+ data: {
1185
+ _skip: false
1186
+ }
1187
+ };
1188
+
1189
+ function getSideOffsets(overflow, rect, preventedOffsets) {
1190
+ if (preventedOffsets === void 0) {
1191
+ preventedOffsets = {
1192
+ x: 0,
1193
+ y: 0
1194
+ };
1195
+ }
1196
+
1197
+ return {
1198
+ top: overflow.top - rect.height - preventedOffsets.y,
1199
+ right: overflow.right - rect.width + preventedOffsets.x,
1200
+ bottom: overflow.bottom - rect.height + preventedOffsets.y,
1201
+ left: overflow.left - rect.width - preventedOffsets.x
1202
+ };
1203
+ }
1204
+
1205
+ function isAnySideFullyClipped(overflow) {
1206
+ return [top, right, bottom, left].some(function (side) {
1207
+ return overflow[side] >= 0;
1208
+ });
1209
+ }
1210
+
1211
+ function hide(_ref) {
1212
+ var state = _ref.state,
1213
+ name = _ref.name;
1214
+ var referenceRect = state.rects.reference;
1215
+ var popperRect = state.rects.popper;
1216
+ var preventedOffsets = state.modifiersData.preventOverflow;
1217
+ var referenceOverflow = detectOverflow(state, {
1218
+ elementContext: 'reference'
1219
+ });
1220
+ var popperAltOverflow = detectOverflow(state, {
1221
+ altBoundary: true
1222
+ });
1223
+ var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
1224
+ var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
1225
+ var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
1226
+ var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
1227
+ state.modifiersData[name] = {
1228
+ referenceClippingOffsets: referenceClippingOffsets,
1229
+ popperEscapeOffsets: popperEscapeOffsets,
1230
+ isReferenceHidden: isReferenceHidden,
1231
+ hasPopperEscaped: hasPopperEscaped
1232
+ };
1233
+ state.attributes.popper = Object.assign({}, state.attributes.popper, {
1234
+ 'data-popper-reference-hidden': isReferenceHidden,
1235
+ 'data-popper-escaped': hasPopperEscaped
1236
+ });
1237
+ } // eslint-disable-next-line import/no-unused-modules
1238
+
1239
+
1240
+ const hide$1 = {
1241
+ name: 'hide',
1242
+ enabled: true,
1243
+ phase: 'main',
1244
+ requiresIfExists: ['preventOverflow'],
1245
+ fn: hide
1246
+ };
1247
+
1248
+ function distanceAndSkiddingToXY(placement, rects, offset) {
1249
+ var basePlacement = getBasePlacement(placement);
1250
+ var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
1251
+
1252
+ var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
1253
+ placement: placement
1254
+ })) : offset,
1255
+ skidding = _ref[0],
1256
+ distance = _ref[1];
1257
+
1258
+ skidding = skidding || 0;
1259
+ distance = (distance || 0) * invertDistance;
1260
+ return [left, right].indexOf(basePlacement) >= 0 ? {
1261
+ x: distance,
1262
+ y: skidding
1263
+ } : {
1264
+ x: skidding,
1265
+ y: distance
1266
+ };
1267
+ }
1268
+
1269
+ function offset(_ref2) {
1270
+ var state = _ref2.state,
1271
+ options = _ref2.options,
1272
+ name = _ref2.name;
1273
+ var _options$offset = options.offset,
1274
+ offset = _options$offset === void 0 ? [0, 0] : _options$offset;
1275
+ var data = placements.reduce(function (acc, placement) {
1276
+ acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);
1277
+ return acc;
1278
+ }, {});
1279
+ var _data$state$placement = data[state.placement],
1280
+ x = _data$state$placement.x,
1281
+ y = _data$state$placement.y;
1282
+
1283
+ if (state.modifiersData.popperOffsets != null) {
1284
+ state.modifiersData.popperOffsets.x += x;
1285
+ state.modifiersData.popperOffsets.y += y;
1286
+ }
1287
+
1288
+ state.modifiersData[name] = data;
1289
+ } // eslint-disable-next-line import/no-unused-modules
1290
+
1291
+
1292
+ const offset$1 = {
1293
+ name: 'offset',
1294
+ enabled: true,
1295
+ phase: 'main',
1296
+ requires: ['popperOffsets'],
1297
+ fn: offset
1298
+ };
1299
+
1300
+ function popperOffsets(_ref) {
1301
+ var state = _ref.state,
1302
+ name = _ref.name;
1303
+ // Offsets are the actual position the popper needs to have to be
1304
+ // properly positioned near its reference element
1305
+ // This is the most basic placement, and will be adjusted by
1306
+ // the modifiers in the next step
1307
+ state.modifiersData[name] = computeOffsets({
1308
+ reference: state.rects.reference,
1309
+ element: state.rects.popper,
1310
+ placement: state.placement
1311
+ });
1312
+ } // eslint-disable-next-line import/no-unused-modules
1313
+
1314
+
1315
+ const popperOffsets$1 = {
1316
+ name: 'popperOffsets',
1317
+ enabled: true,
1318
+ phase: 'read',
1319
+ fn: popperOffsets,
1320
+ data: {}
1321
+ };
1322
+
1323
+ function getAltAxis(axis) {
1324
+ return axis === 'x' ? 'y' : 'x';
1325
+ }
1326
+
1327
+ function preventOverflow(_ref) {
1328
+ var state = _ref.state,
1329
+ options = _ref.options,
1330
+ name = _ref.name;
1331
+ var _options$mainAxis = options.mainAxis,
1332
+ checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
1333
+ _options$altAxis = options.altAxis,
1334
+ checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,
1335
+ boundary = options.boundary,
1336
+ rootBoundary = options.rootBoundary,
1337
+ altBoundary = options.altBoundary,
1338
+ padding = options.padding,
1339
+ _options$tether = options.tether,
1340
+ tether = _options$tether === void 0 ? true : _options$tether,
1341
+ _options$tetherOffset = options.tetherOffset,
1342
+ tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;
1343
+ var overflow = detectOverflow(state, {
1344
+ boundary: boundary,
1345
+ rootBoundary: rootBoundary,
1346
+ padding: padding,
1347
+ altBoundary: altBoundary
1348
+ });
1349
+ var basePlacement = getBasePlacement(state.placement);
1350
+ var variation = getVariation(state.placement);
1351
+ var isBasePlacement = !variation;
1352
+ var mainAxis = getMainAxisFromPlacement(basePlacement);
1353
+ var altAxis = getAltAxis(mainAxis);
1354
+ var popperOffsets = state.modifiersData.popperOffsets;
1355
+ var referenceRect = state.rects.reference;
1356
+ var popperRect = state.rects.popper;
1357
+ var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
1358
+ placement: state.placement
1359
+ })) : tetherOffset;
1360
+ var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {
1361
+ mainAxis: tetherOffsetValue,
1362
+ altAxis: tetherOffsetValue
1363
+ } : Object.assign({
1364
+ mainAxis: 0,
1365
+ altAxis: 0
1366
+ }, tetherOffsetValue);
1367
+ var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;
1368
+ var data = {
1369
+ x: 0,
1370
+ y: 0
1371
+ };
1372
+
1373
+ if (!popperOffsets) {
1374
+ return;
1375
+ }
1376
+
1377
+ if (checkMainAxis) {
1378
+ var _offsetModifierState$;
1379
+
1380
+ var mainSide = mainAxis === 'y' ? top : left;
1381
+ var altSide = mainAxis === 'y' ? bottom : right;
1382
+ var len = mainAxis === 'y' ? 'height' : 'width';
1383
+ var offset = popperOffsets[mainAxis];
1384
+ var min$1 = offset + overflow[mainSide];
1385
+ var max$1 = offset - overflow[altSide];
1386
+ var additive = tether ? -popperRect[len] / 2 : 0;
1387
+ var minLen = variation === start ? referenceRect[len] : popperRect[len];
1388
+ var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
1389
+ // outside the reference bounds
1390
+
1391
+ var arrowElement = state.elements.arrow;
1392
+ var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {
1393
+ width: 0,
1394
+ height: 0
1395
+ };
1396
+ var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();
1397
+ var arrowPaddingMin = arrowPaddingObject[mainSide];
1398
+ var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want
1399
+ // to include its full size in the calculation. If the reference is small
1400
+ // and near the edge of a boundary, the popper can overflow even if the
1401
+ // reference is not overflowing as well (e.g. virtual elements with no
1402
+ // width or height)
1403
+
1404
+ var arrowLen = within(0, referenceRect[len], arrowRect[len]);
1405
+ var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;
1406
+ var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
1407
+ var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
1408
+ var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
1409
+ var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
1410
+ var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
1411
+ var tetherMax = offset + maxOffset - offsetModifierValue;
1412
+ var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
1413
+ popperOffsets[mainAxis] = preventedOffset;
1414
+ data[mainAxis] = preventedOffset - offset;
1415
+ }
1416
+
1417
+ if (checkAltAxis) {
1418
+ var _offsetModifierState$2;
1419
+
1420
+ var _mainSide = mainAxis === 'x' ? top : left;
1421
+
1422
+ var _altSide = mainAxis === 'x' ? bottom : right;
1423
+
1424
+ var _offset = popperOffsets[altAxis];
1425
+
1426
+ var _len = altAxis === 'y' ? 'height' : 'width';
1427
+
1428
+ var _min = _offset + overflow[_mainSide];
1429
+
1430
+ var _max = _offset - overflow[_altSide];
1431
+
1432
+ var isOriginSide = [top, left].indexOf(basePlacement) !== -1;
1433
+
1434
+ var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;
1435
+
1436
+ var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;
1437
+
1438
+ var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;
1439
+
1440
+ var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);
1441
+
1442
+ popperOffsets[altAxis] = _preventedOffset;
1443
+ data[altAxis] = _preventedOffset - _offset;
1444
+ }
1445
+
1446
+ state.modifiersData[name] = data;
1447
+ } // eslint-disable-next-line import/no-unused-modules
1448
+
1449
+
1450
+ const preventOverflow$1 = {
1451
+ name: 'preventOverflow',
1452
+ enabled: true,
1453
+ phase: 'main',
1454
+ fn: preventOverflow,
1455
+ requiresIfExists: ['offset']
1456
+ };
1457
+
1458
+ function getHTMLElementScroll(element) {
1459
+ return {
1460
+ scrollLeft: element.scrollLeft,
1461
+ scrollTop: element.scrollTop
1462
+ };
1463
+ }
1464
+
1465
+ function getNodeScroll(node) {
1466
+ if (node === getWindow(node) || !isHTMLElement(node)) {
1467
+ return getWindowScroll(node);
1468
+ } else {
1469
+ return getHTMLElementScroll(node);
1470
+ }
1471
+ }
1472
+
1473
+ function isElementScaled(element) {
1474
+ var rect = element.getBoundingClientRect();
1475
+ var scaleX = round(rect.width) / element.offsetWidth || 1;
1476
+ var scaleY = round(rect.height) / element.offsetHeight || 1;
1477
+ return scaleX !== 1 || scaleY !== 1;
1478
+ } // Returns the composite rect of an element relative to its offsetParent.
1479
+ // Composite means it takes into account transforms as well as layout.
1480
+
1481
+
1482
+ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
1483
+ if (isFixed === void 0) {
1484
+ isFixed = false;
1485
+ }
1486
+
1487
+ var isOffsetParentAnElement = isHTMLElement(offsetParent);
1488
+ var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
1489
+ var documentElement = getDocumentElement(offsetParent);
1490
+ var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
1491
+ var scroll = {
1492
+ scrollLeft: 0,
1493
+ scrollTop: 0
1494
+ };
1495
+ var offsets = {
1496
+ x: 0,
1497
+ y: 0
1498
+ };
1499
+
1500
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1501
+ if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
1502
+ isScrollParent(documentElement)) {
1503
+ scroll = getNodeScroll(offsetParent);
1504
+ }
1505
+
1506
+ if (isHTMLElement(offsetParent)) {
1507
+ offsets = getBoundingClientRect(offsetParent, true);
1508
+ offsets.x += offsetParent.clientLeft;
1509
+ offsets.y += offsetParent.clientTop;
1510
+ } else if (documentElement) {
1511
+ offsets.x = getWindowScrollBarX(documentElement);
1512
+ }
1513
+ }
1514
+
1515
+ return {
1516
+ x: rect.left + scroll.scrollLeft - offsets.x,
1517
+ y: rect.top + scroll.scrollTop - offsets.y,
1518
+ width: rect.width,
1519
+ height: rect.height
1520
+ };
1521
+ }
1522
+
1523
+ function order(modifiers) {
1524
+ var map = new Map();
1525
+ var visited = new Set();
1526
+ var result = [];
1527
+ modifiers.forEach(function (modifier) {
1528
+ map.set(modifier.name, modifier);
1529
+ }); // On visiting object, check for its dependencies and visit them recursively
1530
+
1531
+ function sort(modifier) {
1532
+ visited.add(modifier.name);
1533
+ var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
1534
+ requires.forEach(function (dep) {
1535
+ if (!visited.has(dep)) {
1536
+ var depModifier = map.get(dep);
1537
+
1538
+ if (depModifier) {
1539
+ sort(depModifier);
1540
+ }
1541
+ }
1542
+ });
1543
+ result.push(modifier);
1544
+ }
1545
+
1546
+ modifiers.forEach(function (modifier) {
1547
+ if (!visited.has(modifier.name)) {
1548
+ // check for visited object
1549
+ sort(modifier);
1550
+ }
1551
+ });
1552
+ return result;
1553
+ }
1554
+
1555
+ function orderModifiers(modifiers) {
1556
+ // order based on dependencies
1557
+ var orderedModifiers = order(modifiers); // order based on phase
1558
+
1559
+ return modifierPhases.reduce(function (acc, phase) {
1560
+ return acc.concat(orderedModifiers.filter(function (modifier) {
1561
+ return modifier.phase === phase;
1562
+ }));
1563
+ }, []);
1564
+ }
1565
+
1566
+ function debounce(fn) {
1567
+ var pending;
1568
+ return function () {
1569
+ if (!pending) {
1570
+ pending = new Promise(function (resolve) {
1571
+ Promise.resolve().then(function () {
1572
+ pending = undefined;
1573
+ resolve(fn());
1574
+ });
1575
+ });
1576
+ }
1577
+
1578
+ return pending;
1579
+ };
1580
+ }
1581
+
1582
+ function mergeByName(modifiers) {
1583
+ var merged = modifiers.reduce(function (merged, current) {
1584
+ var existing = merged[current.name];
1585
+ merged[current.name] = existing ? Object.assign({}, existing, current, {
1586
+ options: Object.assign({}, existing.options, current.options),
1587
+ data: Object.assign({}, existing.data, current.data)
1588
+ }) : current;
1589
+ return merged;
1590
+ }, {}); // IE11 does not support Object.values
1591
+
1592
+ return Object.keys(merged).map(function (key) {
1593
+ return merged[key];
1594
+ });
1595
+ }
1596
+
1597
+ var DEFAULT_OPTIONS = {
1598
+ placement: 'bottom',
1599
+ modifiers: [],
1600
+ strategy: 'absolute'
1601
+ };
1602
+
1603
+ function areValidElements() {
1604
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1605
+ args[_key] = arguments[_key];
1606
+ }
1607
+
1608
+ return !args.some(function (element) {
1609
+ return !(element && typeof element.getBoundingClientRect === 'function');
1610
+ });
1611
+ }
1612
+
1613
+ function popperGenerator(generatorOptions) {
1614
+ if (generatorOptions === void 0) {
1615
+ generatorOptions = {};
1616
+ }
1617
+
1618
+ var _generatorOptions = generatorOptions,
1619
+ _generatorOptions$def = _generatorOptions.defaultModifiers,
1620
+ defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,
1621
+ _generatorOptions$def2 = _generatorOptions.defaultOptions,
1622
+ defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
1623
+ return function createPopper(reference, popper, options) {
1624
+ if (options === void 0) {
1625
+ options = defaultOptions;
1626
+ }
1627
+
1628
+ var state = {
1629
+ placement: 'bottom',
1630
+ orderedModifiers: [],
1631
+ options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
1632
+ modifiersData: {},
1633
+ elements: {
1634
+ reference: reference,
1635
+ popper: popper
1636
+ },
1637
+ attributes: {},
1638
+ styles: {}
1639
+ };
1640
+ var effectCleanupFns = [];
1641
+ var isDestroyed = false;
1642
+ var instance = {
1643
+ state: state,
1644
+ setOptions: function setOptions(setOptionsAction) {
1645
+ var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
1646
+ cleanupModifierEffects();
1647
+ state.options = Object.assign({}, defaultOptions, state.options, options);
1648
+ state.scrollParents = {
1649
+ reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
1650
+ popper: listScrollParents(popper)
1651
+ }; // Orders the modifiers based on their dependencies and `phase`
1652
+ // properties
1653
+
1654
+ var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers
1655
+
1656
+ state.orderedModifiers = orderedModifiers.filter(function (m) {
1657
+ return m.enabled;
1658
+ });
1659
+ runModifierEffects();
1660
+ return instance.update();
1661
+ },
1662
+ // Sync update – it will always be executed, even if not necessary. This
1663
+ // is useful for low frequency updates where sync behavior simplifies the
1664
+ // logic.
1665
+ // For high frequency updates (e.g. `resize` and `scroll` events), always
1666
+ // prefer the async Popper#update method
1667
+ forceUpdate: function forceUpdate() {
1668
+ if (isDestroyed) {
1669
+ return;
1670
+ }
1671
+
1672
+ var _state$elements = state.elements,
1673
+ reference = _state$elements.reference,
1674
+ popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements
1675
+ // anymore
1676
+
1677
+ if (!areValidElements(reference, popper)) {
1678
+ return;
1679
+ } // Store the reference and popper rects to be read by modifiers
1680
+
1681
+
1682
+ state.rects = {
1683
+ reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),
1684
+ popper: getLayoutRect(popper)
1685
+ }; // Modifiers have the ability to reset the current update cycle. The
1686
+ // most common use case for this is the `flip` modifier changing the
1687
+ // placement, which then needs to re-run all the modifiers, because the
1688
+ // logic was previously ran for the previous placement and is therefore
1689
+ // stale/incorrect
1690
+
1691
+ state.reset = false;
1692
+ state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier
1693
+ // is filled with the initial data specified by the modifier. This means
1694
+ // it doesn't persist and is fresh on each update.
1695
+ // To ensure persistent data, use `${name}#persistent`
1696
+
1697
+ state.orderedModifiers.forEach(function (modifier) {
1698
+ return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
1699
+ });
1700
+
1701
+ for (var index = 0; index < state.orderedModifiers.length; index++) {
1702
+ if (state.reset === true) {
1703
+ state.reset = false;
1704
+ index = -1;
1705
+ continue;
1706
+ }
1707
+
1708
+ var _state$orderedModifie = state.orderedModifiers[index],
1709
+ fn = _state$orderedModifie.fn,
1710
+ _state$orderedModifie2 = _state$orderedModifie.options,
1711
+ _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,
1712
+ name = _state$orderedModifie.name;
1713
+
1714
+ if (typeof fn === 'function') {
1715
+ state = fn({
1716
+ state: state,
1717
+ options: _options,
1718
+ name: name,
1719
+ instance: instance
1720
+ }) || state;
1721
+ }
1722
+ }
1723
+ },
1724
+ // Async and optimistically optimized update – it will not be executed if
1725
+ // not necessary (debounced to run at most once-per-tick)
1726
+ update: debounce(function () {
1727
+ return new Promise(function (resolve) {
1728
+ instance.forceUpdate();
1729
+ resolve(state);
1730
+ });
1731
+ }),
1732
+ destroy: function destroy() {
1733
+ cleanupModifierEffects();
1734
+ isDestroyed = true;
1735
+ }
1736
+ };
1737
+
1738
+ if (!areValidElements(reference, popper)) {
1739
+ return instance;
1740
+ }
1741
+
1742
+ instance.setOptions(options).then(function (state) {
1743
+ if (!isDestroyed && options.onFirstUpdate) {
1744
+ options.onFirstUpdate(state);
1745
+ }
1746
+ }); // Modifiers have the ability to execute arbitrary code before the first
1747
+ // update cycle runs. They will be executed in the same order as the update
1748
+ // cycle. This is useful when a modifier adds some persistent data that
1749
+ // other modifiers need to use, but the modifier is run after the dependent
1750
+ // one.
1751
+
1752
+ function runModifierEffects() {
1753
+ state.orderedModifiers.forEach(function (_ref) {
1754
+ var name = _ref.name,
1755
+ _ref$options = _ref.options,
1756
+ options = _ref$options === void 0 ? {} : _ref$options,
1757
+ effect = _ref.effect;
1758
+
1759
+ if (typeof effect === 'function') {
1760
+ var cleanupFn = effect({
1761
+ state: state,
1762
+ name: name,
1763
+ instance: instance,
1764
+ options: options
1765
+ });
1766
+
1767
+ var noopFn = function noopFn() {};
1768
+
1769
+ effectCleanupFns.push(cleanupFn || noopFn);
1770
+ }
1771
+ });
1772
+ }
1773
+
1774
+ function cleanupModifierEffects() {
1775
+ effectCleanupFns.forEach(function (fn) {
1776
+ return fn();
1777
+ });
1778
+ effectCleanupFns = [];
1779
+ }
1780
+
1781
+ return instance;
1782
+ };
1783
+ }
1784
+
1785
+ var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyStyles$1, offset$1, flip$1, preventOverflow$1, arrow$1, hide$1];
1786
+ var createPopper = /*#__PURE__*/popperGenerator({
1787
+ defaultModifiers: defaultModifiers
1788
+ }); // eslint-disable-next-line import/no-unused-modules
1789
+
1790
+ export { applyStyles$1 as a, createPopper as c };