@vc-shell/framework 1.1.46 → 1.1.48

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 (360) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/core/plugins/modularity/loader.ts +126 -97
  3. package/dist/assets/042c75b764bc78a7.svg +1 -0
  4. package/dist/assets/0ba156439a339f2a.svg +1 -0
  5. package/dist/assets/0be560bfb22d0e72.woff2 +0 -0
  6. package/dist/assets/0f590f8a94577092.svg +1 -0
  7. package/dist/assets/0fc5820f8be53a1b.svg +1 -0
  8. package/dist/assets/10768e2cc79fc60b.svg +1 -0
  9. package/dist/assets/11b3d25a56fd9a21.woff2 +0 -0
  10. package/dist/assets/157b8721e0600ea8.svg +1 -0
  11. package/dist/assets/15e91cdd649cde9a.svg +1 -0
  12. package/dist/assets/1a3e84b2457f709a.woff +0 -0
  13. package/dist/assets/1de63eb118636cce.svg +1 -0
  14. package/dist/assets/1ea01de36eb5491b.svg +1 -0
  15. package/dist/assets/204eaf512fde2023.svg +1 -0
  16. package/dist/assets/2088983edf42e153.svg +1 -0
  17. package/dist/assets/208f810a9321a327.svg +1 -0
  18. package/dist/assets/21220a9d10e6c558.svg +1 -0
  19. package/dist/assets/220db345a102045d.woff2 +0 -0
  20. package/dist/assets/225da11d23968333.svg +1 -0
  21. package/dist/assets/226f862dd81bdc13.woff2 +0 -0
  22. package/dist/assets/23a2d53395ddb14f.woff +0 -0
  23. package/dist/assets/259e6ad461a52ad7.svg +1 -0
  24. package/dist/assets/261e6dec4d53b9ac.woff +0 -0
  25. package/dist/assets/262f46a0b6d94bb6.svg +1 -0
  26. package/dist/assets/2857c513073467da.svg +1 -0
  27. package/dist/assets/2b3be7889467d98f.woff +0 -0
  28. package/dist/assets/2d4e6190eec72737.svg +1 -0
  29. package/dist/assets/2eba973185078bc8.woff +0 -0
  30. package/dist/assets/327511cd4a7ba7f9.woff +0 -0
  31. package/dist/assets/334d3f6bc766c516.woff +0 -0
  32. package/dist/assets/34ff7dd0c2285956.svg +1 -0
  33. package/dist/assets/3d26b7c1ab78bbe2.woff +0 -0
  34. package/dist/assets/3f8c4cc8099e34b6.woff2 +0 -0
  35. package/dist/assets/40a0e53b79ce63c6.woff2 +0 -0
  36. package/dist/assets/41275bcb979cb650.svg +1 -0
  37. package/dist/assets/42df4e2d6fa3fd2a.woff2 +0 -0
  38. package/dist/assets/434f7982590e462f.woff +0 -0
  39. package/dist/assets/4ae5f23e0ca888e7.woff2 +0 -0
  40. package/dist/assets/4d7a77b0e5373992.svg +1 -0
  41. package/dist/assets/4e43c74354534fb3.svg +1 -0
  42. package/dist/assets/4fe75f5117100705.svg +1 -0
  43. package/dist/assets/52610491f372cb0c.woff2 +0 -0
  44. package/dist/assets/52e261a005074e1b.woff +0 -0
  45. package/dist/assets/5304c3d05a5f9789.woff2 +0 -0
  46. package/dist/assets/572bb1bb4156a9c1.svg +1 -0
  47. package/dist/assets/5b3661be8be679d0.woff2 +0 -0
  48. package/dist/assets/5d96cfcc5bedd917.woff2 +0 -0
  49. package/dist/assets/6075995d7e74da46.woff2 +0 -0
  50. package/dist/assets/617c4736236e199e.woff +0 -0
  51. package/dist/assets/6619e9e10beea0e7.woff2 +0 -0
  52. package/dist/assets/67230f05dc94a265.svg +1 -0
  53. package/dist/assets/6798e4dd4add9b48.svg +1 -0
  54. package/dist/assets/698ec6c722d4cb05.woff2 +0 -0
  55. package/dist/assets/6a3e73faf406cf33.svg +1 -0
  56. package/dist/assets/72de3a63bc0b70dd.svg +1 -0
  57. package/dist/assets/74c6a6ab81bb6340.woff2 +0 -0
  58. package/dist/assets/74ed5f8a78e71106.svg +1 -0
  59. package/dist/assets/7ce0c166fd6a1204.woff +0 -0
  60. package/dist/assets/7d55399c2a7bc985.svg +1 -0
  61. package/dist/assets/7d970675c69fca1d.woff +0 -0
  62. package/dist/assets/7eda727273fd98d3.svg +1 -0
  63. package/dist/assets/7f6ebfd707b76ca2.woff +0 -0
  64. package/dist/assets/7fa898d213fcc7bc.woff2 +0 -0
  65. package/dist/assets/861e6b7192b3b6c7.woff +0 -0
  66. package/dist/assets/8bbcde81ba21ecb2.woff2 +0 -0
  67. package/dist/assets/8f6657e5e0b8d3e4.woff +0 -0
  68. package/dist/assets/910b0d99b9e26568.svg +1 -0
  69. package/dist/assets/91eee1aa81f72683.woff +0 -0
  70. package/dist/assets/92508f8707159b51.svg +1 -0
  71. package/dist/assets/9392bf1d591e1abb.svg +1 -0
  72. package/dist/assets/97e8d4984ba0713a.woff2 +0 -0
  73. package/dist/assets/9cb83236f6bb7ab1.svg +1 -0
  74. package/dist/assets/9d37314695c0b68d.woff +0 -0
  75. package/dist/assets/a18404194e3f9047.svg +1 -0
  76. package/dist/assets/a2017fe7f0a26510.svg +1 -0
  77. package/dist/assets/a47034e65dbcc3d7.woff +0 -0
  78. package/dist/assets/a617e11804bbacb7.woff +0 -0
  79. package/dist/assets/ab6e7190bb1492d5.woff2 +0 -0
  80. package/dist/assets/abf88f301a0730f4.svg +1 -0
  81. package/dist/assets/aed17cb6fdad2ada.woff2 +0 -0
  82. package/dist/assets/b1a596e31ad1185a.svg +1 -0
  83. package/dist/assets/b27767411c8427be.woff +0 -0
  84. package/dist/assets/b291dc35a17511f7.woff +0 -0
  85. package/dist/assets/b325adcae33bbe7a.svg +1 -0
  86. package/dist/assets/b372390551ca2fa1.svg +1 -0
  87. package/dist/assets/b5bb1e8fc975decd.svg +1 -0
  88. package/dist/assets/b645a4a2181b9dc1.svg +1 -0
  89. package/dist/assets/b6499ddce0a4ef7d.svg +1 -0
  90. package/dist/assets/b94421fadd23b0f2.svg +1 -0
  91. package/dist/assets/bb28fb0f27f1c11b.svg +1 -0
  92. package/dist/assets/bfbe205759295eca.woff2 +0 -0
  93. package/dist/assets/ca791c5ca5848a03.svg +1 -0
  94. package/dist/assets/cb32840ce330103f.woff +0 -0
  95. package/dist/assets/d084bda16abe8a56.svg +1 -0
  96. package/dist/assets/d32b129cae2fffd6.svg +1 -0
  97. package/dist/assets/d35a4c7113315758.woff2 +0 -0
  98. package/dist/assets/d3f792f54ae4c307.svg +1 -0
  99. package/dist/assets/d5a5b8630120073d.svg +1 -0
  100. package/dist/assets/d5f9664ebbfb104b.svg +1 -0
  101. package/dist/assets/d80b05788e407de7.woff2 +0 -0
  102. package/dist/assets/d84247b59449dd88.woff2 +0 -0
  103. package/dist/assets/dd05d43ff0df2fc7.svg +1 -0
  104. package/dist/assets/e38acaa1757232e0.svg +1 -0
  105. package/dist/assets/e4a8550f1c7ffe36.svg +1 -0
  106. package/dist/assets/e5adb5ae3a3698f6.svg +1 -0
  107. package/dist/assets/e61a1889bac955f4.woff2 +0 -0
  108. package/dist/assets/e72bb11356af94c7.svg +1 -0
  109. package/dist/assets/e98196a9f8dcb2f0.svg +1 -0
  110. package/dist/assets/ebec912a42ad49ff.woff +0 -0
  111. package/dist/assets/f09d89268e4c0317.svg +1 -0
  112. package/dist/assets/f276d55184e05a07.woff +0 -0
  113. package/dist/assets/f5722262b6e7214e.woff2 +0 -0
  114. package/dist/assets/f7fc8bf46089d8b2.svg +1 -0
  115. package/dist/assets/fcb1c1ffb5640194.woff +0 -0
  116. package/dist/assets/fe141d99763f5d2b.woff +0 -0
  117. package/dist/assets/fed13b0d59903483.svg +1 -0
  118. package/dist/assets/fed757d2c2344ead.woff2 +0 -0
  119. package/dist/assets/ffc438f20e79ce73.woff +0 -0
  120. package/dist/core/plugins/modularity/loader.d.ts.map +1 -1
  121. package/dist/framework.js +16544 -25878
  122. package/dist/index.css +1 -1
  123. package/dist/index.d.ts +5 -8
  124. package/dist/index.d.ts.map +1 -1
  125. package/dist/tsconfig.tsbuildinfo +1 -1
  126. package/dist/ui/components/atoms/vc-icon/vc-lucide-icon.vue.d.ts.map +1 -1
  127. package/dist/vendor-boolbase-Bgn9I6iN.js +21 -0
  128. package/dist/vendor-cheerio-CleDsuQZ.js +1053 -0
  129. package/dist/vendor-cheerio-select-CVkYl3Z-.js +191 -0
  130. package/dist/vendor-css-select-CtIzVIiG.js +622 -0
  131. package/dist/vendor-css-what-CZZaquJM.js +267 -0
  132. package/dist/vendor-cypress-signalr-mock-CdKwIhWw.js +769 -0
  133. package/dist/vendor-date-fns-CdFbeoHV.js +2989 -0
  134. package/dist/vendor-dom-serializer-CugO0RdN.js +213 -0
  135. package/dist/vendor-dom7-wvIUV9pT.js +529 -0
  136. package/dist/vendor-domelementtype-B3sFIGaC.js +21 -0
  137. package/dist/vendor-domhandler-CL40eeX9.js +311 -0
  138. package/dist/vendor-dompurify-eYFoHPwR.js +528 -0
  139. package/dist/vendor-domutils-D3Y2YQFR.js +386 -0
  140. package/dist/vendor-entities-v26HW8wW.js +363 -0
  141. package/dist/vendor-floating-ui-core-C9uEvi1M.js +349 -0
  142. package/dist/vendor-floating-ui-dom-CZkYGmv4.js +393 -0
  143. package/dist/vendor-floating-ui-utils-Bx3BTd6_.js +259 -0
  144. package/dist/vendor-floating-ui-vue-CLOiVYP7.js +107 -0
  145. package/dist/vendor-headlessui-vue-Dg0Llidi.js +961 -0
  146. package/dist/vendor-htmlparser2-CXL_uhMI.js +735 -0
  147. package/dist/vendor-iconify-vue-D4fihzvl.js +1205 -0
  148. package/dist/vendor-intlify-core-base-Bvt2vJFV.js +1129 -0
  149. package/dist/vendor-intlify-message-compiler-1VxNzq21.js +945 -0
  150. package/dist/vendor-intlify-shared-D7kiPMOG.js +130 -0
  151. package/dist/vendor-iso-639-1-dVGfSUIM.js +781 -0
  152. package/dist/vendor-linkify-it-LzoUhj6C.js +199 -0
  153. package/dist/vendor-linkifyjs-DTu7SY_Y.js +705 -0
  154. package/dist/vendor-lodash-es-CrYlgAi8.js +4816 -0
  155. package/dist/vendor-markdown-it-4AJoRTAg.js +2263 -0
  156. package/dist/vendor-markdown-it-task-lists-Byg1-ms9.js +69 -0
  157. package/dist/vendor-mdurl-DZFDNdqC.js +192 -0
  158. package/dist/vendor-microsoft-applicationinsights-analytics-js-DA-ctcAL.js +1105 -0
  159. package/dist/vendor-microsoft-applicationinsights-cfgsync-js-COfRj-2q.js +261 -0
  160. package/dist/vendor-microsoft-applicationinsights-channel-js-MTPYhH-I.js +1809 -0
  161. package/dist/vendor-microsoft-applicationinsights-common-CDVnJ6MR.js +1921 -0
  162. package/dist/vendor-microsoft-applicationinsights-core-js-D7Aicf8S.js +4127 -0
  163. package/dist/vendor-microsoft-applicationinsights-dependencies-js-CvQWWraU.js +1399 -0
  164. package/dist/vendor-microsoft-applicationinsights-properties-js-C0Iv1cZE.js +572 -0
  165. package/dist/vendor-microsoft-applicationinsights-shims-CxtPYiwp.js +43 -0
  166. package/dist/vendor-microsoft-applicationinsights-web-BRuQAzjU.js +487 -0
  167. package/dist/vendor-microsoft-dynamicproto-js-DSkQkH3T.js +147 -0
  168. package/dist/vendor-microsoft-signalr-qIrag5xx.js +1761 -0
  169. package/dist/vendor-moment-CwOqp704.js +2589 -0
  170. package/dist/vendor-nevware21-ts-async-FAyg3c9V.js +260 -0
  171. package/dist/vendor-nevware21-ts-utils-Dy41wRhA.js +853 -0
  172. package/dist/vendor-nth-check-BE7AeBMg.js +45 -0
  173. package/dist/vendor-orderedmap-B3SOk52B.js +103 -0
  174. package/dist/vendor-parse5-DqztJOGh.js +5747 -0
  175. package/dist/vendor-parse5-htmlparser2-tree-adapter-CNubfdOP.js +143 -0
  176. package/dist/vendor-popperjs-core-LGjf7Wza.js +905 -0
  177. package/dist/vendor-prettier-D8C9GG-0.js +4858 -0
  178. package/dist/vendor-prosemirror-commands-BqYcdumy.js +344 -0
  179. package/dist/vendor-prosemirror-dropcursor-zknUsW5x.js +86 -0
  180. package/dist/vendor-prosemirror-gapcursor-DjOZhP78.js +200 -0
  181. package/dist/vendor-prosemirror-history-l8l3CFac.js +248 -0
  182. package/dist/vendor-prosemirror-keymap-C17r08p-.js +62 -0
  183. package/dist/vendor-prosemirror-markdown-WJEDhc-w.js +650 -0
  184. package/dist/vendor-prosemirror-model-BN5TnJD_.js +2736 -0
  185. package/dist/vendor-prosemirror-schema-list-CR0gi7aY.js +87 -0
  186. package/dist/vendor-prosemirror-state-B0bFP8WI.js +821 -0
  187. package/dist/vendor-prosemirror-tables-B1txTKlC.js +1711 -0
  188. package/dist/vendor-prosemirror-transform-Bo7kNPme.js +1507 -0
  189. package/dist/vendor-prosemirror-view--C7TZvmQ.js +3746 -0
  190. package/dist/vendor-punycode-js-CNI-zL6U.js +133 -0
  191. package/dist/vendor-rope-sequence-sEGCUMi8.js +100 -0
  192. package/dist/vendor-semver-BoKYtkQw.js +1021 -0
  193. package/dist/vendor-ssr-window-D4k3p53c.js +133 -0
  194. package/dist/vendor-swiper-CMVLTGu0.js +2825 -0
  195. package/dist/vendor-tippy-js-BGdgwGX-.js +812 -0
  196. package/dist/vendor-tiptap-core-BRY37Sb2.js +2806 -0
  197. package/dist/vendor-tiptap-extension-blockquote-CPd5qv-9.js +43 -0
  198. package/dist/vendor-tiptap-extension-bold-B0GwBNks.js +71 -0
  199. package/dist/vendor-tiptap-extension-bubble-menu-B0sZZld7.js +128 -0
  200. package/dist/vendor-tiptap-extension-bullet-list-CQm4ReOu.js +53 -0
  201. package/dist/vendor-tiptap-extension-code-C8cy6bRj.js +51 -0
  202. package/dist/vendor-tiptap-extension-code-block-BqTchNEf.js +133 -0
  203. package/dist/vendor-tiptap-extension-document-Dka1Uu0g.js +9 -0
  204. package/dist/vendor-tiptap-extension-dropcursor-CFSh-BuE.js +20 -0
  205. package/dist/vendor-tiptap-extension-floating-menu-H8PB4zeI.js +99 -0
  206. package/dist/vendor-tiptap-extension-gapcursor-CzwfD_IT.js +24 -0
  207. package/dist/vendor-tiptap-extension-hard-break-Rm6aVcrK.js +55 -0
  208. package/dist/vendor-tiptap-extension-heading-CavI6u1v.js +54 -0
  209. package/dist/vendor-tiptap-extension-history-WEN1_74D.js +35 -0
  210. package/dist/vendor-tiptap-extension-horizontal-rule-DZkUEL6s.js +58 -0
  211. package/dist/vendor-tiptap-extension-image-B67_mxGM.js +64 -0
  212. package/dist/vendor-tiptap-extension-italic-BshxBFou.js +70 -0
  213. package/dist/vendor-tiptap-extension-link-CJAQIgui.js +262 -0
  214. package/dist/vendor-tiptap-extension-list-item-DF-iMpqO.js +33 -0
  215. package/dist/vendor-tiptap-extension-ordered-list-CN8MF-kN.js +71 -0
  216. package/dist/vendor-tiptap-extension-paragraph-DI577lM5.js +33 -0
  217. package/dist/vendor-tiptap-extension-placeholder-DwAtlfAF.js +52 -0
  218. package/dist/vendor-tiptap-extension-strike-CIty09KN.js +61 -0
  219. package/dist/vendor-tiptap-extension-table-C5nv-GUb.js +213 -0
  220. package/dist/vendor-tiptap-extension-table-cell-DXbBhJW3.js +40 -0
  221. package/dist/vendor-tiptap-extension-table-header-rtggsYXA.js +40 -0
  222. package/dist/vendor-tiptap-extension-table-row-67khjMDt.js +22 -0
  223. package/dist/vendor-tiptap-extension-text-D1OHb_a1.js +8 -0
  224. package/dist/vendor-tiptap-extension-underline-IqWixw3m.js +40 -0
  225. package/dist/vendor-tiptap-markdown-DVxB1hbO.js +825 -0
  226. package/dist/vendor-tiptap-starter-kit-CPH9gu2X.js +29 -0
  227. package/dist/vendor-tiptap-vue-3-CkBe4_xM.js +225 -0
  228. package/dist/vendor-truncate-html-Bx1HJzRq.js +145 -0
  229. package/dist/vendor-uc-micro-4lbSaZOs.js +17 -0
  230. package/dist/vendor-vee-validate-i18n-zT8NxX3R.js +93 -0
  231. package/dist/vendor-vee-validate-rules-DDeNM2Gc.js +314 -0
  232. package/dist/vendor-vue-currency-input-DxWnS-HB.js +315 -0
  233. package/dist/vendor-vue-devtools-api-aVYGocXp.js +93 -0
  234. package/dist/vendor-vue-i18n-DPtOLen3.js +1359 -0
  235. package/dist/vendor-vue3-application-insights-dAGGfA_M.js +69 -0
  236. package/dist/vendor-vue3-touch-events-8Pa3HHlV.js +169 -0
  237. package/dist/vendor-vuepic-vue-datepicker-DglsiNYa.js +4997 -0
  238. package/dist/vendor-vueuse-components-DtK_mxpP.js +219 -0
  239. package/dist/vendor-vueuse-core-cB-c7DzH.js +5129 -0
  240. package/dist/vendor-vueuse-shared-Dg7PMM0z.js +1169 -0
  241. package/dist/vendor-w3c-keyname-CLxH8j-f.js +92 -0
  242. package/dist/vendor-whatwg-fetch-l0sNRNKZ.js +1 -0
  243. package/package.json +5 -4
  244. package/ui/components/atoms/vc-icon/vc-lucide-icon.vue +2 -1
  245. package/dist/vendor-boolbase-Cp9L0GAZ.js +0 -25
  246. package/dist/vendor-cheerio-HN9zIPZn.js +0 -3135
  247. package/dist/vendor-cheerio-select-5Ry0HvBq.js +0 -306
  248. package/dist/vendor-css-select-DRIZ9kfZ.js +0 -966
  249. package/dist/vendor-css-what-DuPJ1HEF.js +0 -448
  250. package/dist/vendor-cypress-signalr-mock-BKdBJpdt.js +0 -778
  251. package/dist/vendor-date-fns-515YWkk-.js +0 -6724
  252. package/dist/vendor-dom-serializer-nQMsqjYW.js +0 -286
  253. package/dist/vendor-dom7-CJLPMwy5.js +0 -941
  254. package/dist/vendor-domelementtype-CjSzQey5.js +0 -53
  255. package/dist/vendor-domhandler-9z8cS16a.js +0 -484
  256. package/dist/vendor-dompurify-CRFzu7ib.js +0 -1336
  257. package/dist/vendor-domutils-Bc-Opz-v.js +0 -981
  258. package/dist/vendor-entities-Bfsx4xOQ.js +0 -636
  259. package/dist/vendor-floating-ui-core-wV8u8QP4.js +0 -511
  260. package/dist/vendor-floating-ui-dom-DDnRPs17.js +0 -706
  261. package/dist/vendor-floating-ui-utils-OMIFy1QU.js +0 -296
  262. package/dist/vendor-floating-ui-vue-D-tCDAMm.js +0 -167
  263. package/dist/vendor-fontsource-plus-jakarta-sans.css +0 -1
  264. package/dist/vendor-headlessui-vue-CY9FRgTb.js +0 -83
  265. package/dist/vendor-htmlparser2-B1dhFPOs.js +0 -1426
  266. package/dist/vendor-iconify-vue-DfRGgyNu.js +0 -1840
  267. package/dist/vendor-intlify-core-base-BuknsFQe.js +0 -1876
  268. package/dist/vendor-intlify-message-compiler-CuOQDWx1.js +0 -1508
  269. package/dist/vendor-intlify-shared-Cz4YRMuC.js +0 -241
  270. package/dist/vendor-iso-639-1-BJCk9DvE.js +0 -819
  271. package/dist/vendor-linkify-it-CKUf4vsc.js +0 -830
  272. package/dist/vendor-linkifyjs-BfyGgbCh.js +0 -1756
  273. package/dist/vendor-lodash-es-BySUOlwf.js +0 -18333
  274. package/dist/vendor-markdown-it-D-apazHa.js +0 -6000
  275. package/dist/vendor-markdown-it-task-lists-rxMVH6Ku.js +0 -131
  276. package/dist/vendor-mdurl-BNh2CCgT.js +0 -537
  277. package/dist/vendor-microsoft-applicationinsights-analytics-js-kG3lLg8X.js +0 -1275
  278. package/dist/vendor-microsoft-applicationinsights-cfgsync-js-C0uQkiQq.js +0 -591
  279. package/dist/vendor-microsoft-applicationinsights-channel-js-Dyd_PXA3.js +0 -2153
  280. package/dist/vendor-microsoft-applicationinsights-common-CfmP1_Qr.js +0 -2470
  281. package/dist/vendor-microsoft-applicationinsights-core-js-Cq4YSEvZ.js +0 -6589
  282. package/dist/vendor-microsoft-applicationinsights-dependencies-js-C56OBFr4.js +0 -1510
  283. package/dist/vendor-microsoft-applicationinsights-properties-js-CBJTBawx.js +0 -761
  284. package/dist/vendor-microsoft-applicationinsights-shims-CX8sJgar.js +0 -70
  285. package/dist/vendor-microsoft-applicationinsights-web-pim2ri-g.js +0 -667
  286. package/dist/vendor-microsoft-dynamicproto-js-CFBBUu9p.js +0 -520
  287. package/dist/vendor-microsoft-signalr-dUnlRsGm.js +0 -3339
  288. package/dist/vendor-moment-Mki5YqAR.js +0 -5679
  289. package/dist/vendor-nevware21-ts-async-CLMApQ9E.js +0 -395
  290. package/dist/vendor-nevware21-ts-utils-e8v8Jty3.js +0 -1160
  291. package/dist/vendor-nth-check-Bx8TxtJt.js +0 -157
  292. package/dist/vendor-orderedmap-dGG6uMFJ.js +0 -137
  293. package/dist/vendor-parse5-Bt2NhSzR.js +0 -8432
  294. package/dist/vendor-parse5-htmlparser2-tree-adapter-BUUtKzf8.js +0 -216
  295. package/dist/vendor-popperjs-core-Cr2byIky.js +0 -1790
  296. package/dist/vendor-prettier-B4PaeWRQ.js +0 -98
  297. package/dist/vendor-prosemirror-commands-BH9lWGpW.js +0 -561
  298. package/dist/vendor-prosemirror-dropcursor-CeyPcxrA.js +0 -146
  299. package/dist/vendor-prosemirror-gapcursor-U8UoUJII.js +0 -236
  300. package/dist/vendor-prosemirror-history-BDaJkvNx.js +0 -414
  301. package/dist/vendor-prosemirror-keymap-BbWvIWmH.js +0 -128
  302. package/dist/vendor-prosemirror-markdown-gB0PXBbz.js +0 -866
  303. package/dist/vendor-prosemirror-model-BZu3WVcD.js +0 -3463
  304. package/dist/vendor-prosemirror-schema-list-Bl9NpKA7.js +0 -158
  305. package/dist/vendor-prosemirror-state-BvL9Pxph.js +0 -1003
  306. package/dist/vendor-prosemirror-tables-17qAnviK.js +0 -2159
  307. package/dist/vendor-prosemirror-transform-CE9VV3qg.js +0 -2156
  308. package/dist/vendor-prosemirror-view-CU2WTHT7.js +0 -5811
  309. package/dist/vendor-punycode-js-iAs5RxMf.js +0 -441
  310. package/dist/vendor-rope-sequence-BdXDKoGt.js +0 -207
  311. package/dist/vendor-semver-CVLMK-S4.js +0 -2702
  312. package/dist/vendor-ssr-window-s6OpKa3O.js +0 -150
  313. package/dist/vendor-swiper-CdiyNHVt.js +0 -5679
  314. package/dist/vendor-tippy-js-DWFe2TfK.js +0 -1647
  315. package/dist/vendor-tiptap-core-NfwGfaQk.js +0 -4910
  316. package/dist/vendor-tiptap-extension-blockquote-jmWBTtsI.js +0 -57
  317. package/dist/vendor-tiptap-extension-bold-p5frh4ak.js +0 -97
  318. package/dist/vendor-tiptap-extension-bubble-menu-KUhZSfrs.js +0 -218
  319. package/dist/vendor-tiptap-extension-bullet-list-COmZRoSB.js +0 -73
  320. package/dist/vendor-tiptap-extension-code-block-DyTARZss.js +0 -221
  321. package/dist/vendor-tiptap-extension-code-jVv6CXpX.js +0 -75
  322. package/dist/vendor-tiptap-extension-document-DssuotYs.js +0 -13
  323. package/dist/vendor-tiptap-extension-dropcursor-BoO0Qv91.js +0 -26
  324. package/dist/vendor-tiptap-extension-floating-menu-CrO8CN5w.js +0 -165
  325. package/dist/vendor-tiptap-extension-gapcursor-KpsWEoMD.js +0 -30
  326. package/dist/vendor-tiptap-extension-hard-break-ldOzhSvf.js +0 -68
  327. package/dist/vendor-tiptap-extension-heading-CKz2llX0.js +0 -77
  328. package/dist/vendor-tiptap-extension-history-DeKZ2VQ9.js +0 -48
  329. package/dist/vendor-tiptap-extension-horizontal-rule-CAjWRyDS.js +0 -92
  330. package/dist/vendor-tiptap-extension-image-ZagcEYuk.js +0 -76
  331. package/dist/vendor-tiptap-extension-italic-CM4xdznY.js +0 -96
  332. package/dist/vendor-tiptap-extension-link-Z-AMC4Ri.js +0 -414
  333. package/dist/vendor-tiptap-extension-list-item-BJi5QpXc.js +0 -37
  334. package/dist/vendor-tiptap-extension-ordered-list-C_TMrfBE.js +0 -97
  335. package/dist/vendor-tiptap-extension-paragraph-CQw0E0Au.js +0 -39
  336. package/dist/vendor-tiptap-extension-placeholder-BBNVKfa_.js +0 -66
  337. package/dist/vendor-tiptap-extension-strike-DUyMYX1Z.js +0 -79
  338. package/dist/vendor-tiptap-extension-table-cell-CoDIMPA5.js +0 -47
  339. package/dist/vendor-tiptap-extension-table-header-DvbGHnmw.js +0 -47
  340. package/dist/vendor-tiptap-extension-table-row-D1uqN5Aj.js +0 -26
  341. package/dist/vendor-tiptap-extension-table-tKS4MOM4.js +0 -354
  342. package/dist/vendor-tiptap-extension-text-DtRBhKB2.js +0 -12
  343. package/dist/vendor-tiptap-extension-underline-DqaSFp_P.js +0 -50
  344. package/dist/vendor-tiptap-markdown-7-PCADTU.js +0 -1017
  345. package/dist/vendor-tiptap-starter-kit-CDSV_Zuu.js +0 -88
  346. package/dist/vendor-tiptap-vue-3-DZg2fjq_.js +0 -268
  347. package/dist/vendor-truncate-html-3qQY0Djo.js +0 -196
  348. package/dist/vendor-uc-micro-jjt6LQ65.js +0 -23
  349. package/dist/vendor-vee-validate-i18n-v_gHjRmD.js +0 -154
  350. package/dist/vendor-vee-validate-rules-DzV3VY3N.js +0 -536
  351. package/dist/vendor-vue-currency-input-DGAkEFBO.js +0 -545
  352. package/dist/vendor-vue-devtools-api-DXYR8qBG.js +0 -169
  353. package/dist/vendor-vue-i18n-Co752uk3.js +0 -1897
  354. package/dist/vendor-vue3-application-insights-CYWFCr_J.js +0 -119
  355. package/dist/vendor-vue3-touch-events-BJEAiSa3.js +0 -416
  356. package/dist/vendor-vuepic-vue-datepicker-BSWXRSiu.js +0 -5019
  357. package/dist/vendor-vueuse-components-l1bL12mE.js +0 -339
  358. package/dist/vendor-vueuse-core-DGcJOmwG.js +0 -7743
  359. package/dist/vendor-vueuse-shared-_mOXsFuM.js +0 -1568
  360. package/dist/vendor-w3c-keyname-BOm2dtJm.js +0 -121
@@ -1,1790 +0,0 @@
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 };