bitboss-ui 0.2.70 → 0.2.72

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 (144) hide show
  1. package/dist/index101.js +2 -2
  2. package/dist/index103.js +2 -2
  3. package/dist/index109.js +1 -1
  4. package/dist/index11.js +2 -2
  5. package/dist/index111.js +4 -4
  6. package/dist/index113.js +1 -1
  7. package/dist/index116.js +1 -1
  8. package/dist/index117.js +1 -1
  9. package/dist/index118.js +1 -1
  10. package/dist/index119.js +1 -1
  11. package/dist/index121.js +1 -1
  12. package/dist/index125.js +1 -1
  13. package/dist/index126.js +1 -1
  14. package/dist/index127.js +1 -1
  15. package/dist/index131.js +2 -2
  16. package/dist/index15.js +8 -8
  17. package/dist/index17.js +9 -9
  18. package/dist/index19.js +3 -3
  19. package/dist/index196.js +2 -2
  20. package/dist/index196.js.map +1 -1
  21. package/dist/index197.js +235 -2
  22. package/dist/index197.js.map +1 -1
  23. package/dist/index198.js +10 -2
  24. package/dist/index198.js.map +1 -1
  25. package/dist/index199.js +2 -235
  26. package/dist/index199.js.map +1 -1
  27. package/dist/index200.js +4 -2
  28. package/dist/index200.js.map +1 -1
  29. package/dist/index201.js +3 -5
  30. package/dist/index201.js.map +1 -1
  31. package/dist/index202.js +3 -16
  32. package/dist/index202.js.map +1 -1
  33. package/dist/index203.js +5 -16
  34. package/dist/index203.js.map +1 -1
  35. package/dist/index204.js +15 -18
  36. package/dist/index204.js.map +1 -1
  37. package/dist/index205.js +13 -17
  38. package/dist/index205.js.map +1 -1
  39. package/dist/index206.js +18 -28
  40. package/dist/index206.js.map +1 -1
  41. package/dist/index207.js +20 -8
  42. package/dist/index207.js.map +1 -1
  43. package/dist/index208.js +29 -2
  44. package/dist/index208.js.map +1 -1
  45. package/dist/index209.js +8 -121
  46. package/dist/index209.js.map +1 -1
  47. package/dist/index21.js +2 -2
  48. package/dist/index210.js +2 -2
  49. package/dist/index210.js.map +1 -1
  50. package/dist/index211.js +3 -6
  51. package/dist/index211.js.map +1 -1
  52. package/dist/index212.js +35 -4
  53. package/dist/index212.js.map +1 -1
  54. package/dist/index213.js +6 -368
  55. package/dist/index213.js.map +1 -1
  56. package/dist/index214.js +345 -350
  57. package/dist/index214.js.map +1 -1
  58. package/dist/index215.js +134 -3
  59. package/dist/index215.js.map +1 -1
  60. package/dist/index216.js +2 -3
  61. package/dist/index216.js.map +1 -1
  62. package/dist/index217.js +174 -3
  63. package/dist/index217.js.map +1 -1
  64. package/dist/index218.js +23 -35
  65. package/dist/index218.js.map +1 -1
  66. package/dist/index219.js +365 -126
  67. package/dist/index219.js.map +1 -1
  68. package/dist/index220.js +2 -174
  69. package/dist/index220.js.map +1 -1
  70. package/dist/index221.js +121 -23
  71. package/dist/index221.js.map +1 -1
  72. package/dist/index222.js +2 -10
  73. package/dist/index222.js.map +1 -1
  74. package/dist/index224.js +3 -3
  75. package/dist/index226.js +1 -1
  76. package/dist/index228.js +5 -295
  77. package/dist/index228.js.map +1 -1
  78. package/dist/index229.js +160 -6
  79. package/dist/index229.js.map +1 -1
  80. package/dist/index23.js +1 -1
  81. package/dist/index230.js +1 -4
  82. package/dist/index230.js.map +1 -1
  83. package/dist/index231.js +69 -2
  84. package/dist/index231.js.map +1 -1
  85. package/dist/index232.js +4 -2
  86. package/dist/index232.js.map +1 -1
  87. package/dist/index233.js +224 -2
  88. package/dist/index233.js.map +1 -1
  89. package/dist/index234.js +258 -2
  90. package/dist/index234.js.map +1 -1
  91. package/dist/index235.js +295 -2
  92. package/dist/index235.js.map +1 -1
  93. package/dist/index236.js +6 -160
  94. package/dist/index236.js.map +1 -1
  95. package/dist/index237.js +4 -1
  96. package/dist/index237.js.map +1 -1
  97. package/dist/index238.js +2 -69
  98. package/dist/index238.js.map +1 -1
  99. package/dist/index239.js +2 -106
  100. package/dist/index239.js.map +1 -1
  101. package/dist/index240.js +2 -4
  102. package/dist/index240.js.map +1 -1
  103. package/dist/index241.js +2 -5
  104. package/dist/index241.js.map +1 -1
  105. package/dist/index242.js +2 -2
  106. package/dist/index243.js +430 -219
  107. package/dist/index243.js.map +1 -1
  108. package/dist/index244.js +83 -252
  109. package/dist/index244.js.map +1 -1
  110. package/dist/index245.js +2 -117
  111. package/dist/index245.js.map +1 -1
  112. package/dist/index246.js +110 -428
  113. package/dist/index246.js.map +1 -1
  114. package/dist/index247.js +105 -88
  115. package/dist/index247.js.map +1 -1
  116. package/dist/index249.js +2 -2
  117. package/dist/index25.js +2 -2
  118. package/dist/index250.js +15 -4
  119. package/dist/index250.js.map +1 -1
  120. package/dist/index251.js +4 -4
  121. package/dist/index251.js.map +1 -1
  122. package/dist/index252.js +4 -61
  123. package/dist/index252.js.map +1 -1
  124. package/dist/index253.js +60 -14
  125. package/dist/index253.js.map +1 -1
  126. package/dist/index254.js +3 -2
  127. package/dist/index254.js.map +1 -1
  128. package/dist/index255.js +2 -3
  129. package/dist/index255.js.map +1 -1
  130. package/dist/index29.js +3 -3
  131. package/dist/index31.js +8 -8
  132. package/dist/index33.js +2 -2
  133. package/dist/index35.js +2 -2
  134. package/dist/index47.js +1 -1
  135. package/dist/index49.js +1 -1
  136. package/dist/index65.js +4 -4
  137. package/dist/index72.js +1 -1
  138. package/dist/index75.js +1 -1
  139. package/dist/index79.js +4 -4
  140. package/dist/index81.js +1 -1
  141. package/dist/index99.js +47 -47
  142. package/dist/index99.js.map +1 -1
  143. package/dist/style.css +1 -1
  144. package/package.json +1 -1
package/dist/index218.js CHANGED
@@ -1,38 +1,26 @@
1
- import { unrefElement as m } from "./index131.js";
2
- import { ref as u, watch as l } from "vue";
3
- import { createFocusTrap as d } from "./index246.js";
4
- import { tryOnScopeDispose as D } from "./index222.js";
5
- function O(i, a = {}) {
6
- let e;
7
- const { immediate: f, ...n } = a, c = u(!1), s = u(!1), o = (t) => e && e.activate(t), r = (t) => e && e.deactivate(t), v = () => {
8
- e && (e.pause(), s.value = !0);
9
- }, p = () => {
10
- e && (e.unpause(), s.value = !1);
11
- };
12
- return l(
13
- () => m(i),
14
- (t) => {
15
- t && (e = d(t, {
16
- ...n,
17
- onActivate() {
18
- c.value = !0, a.onActivate && a.onActivate();
19
- },
20
- onDeactivate() {
21
- c.value = !1, a.onDeactivate && a.onDeactivate();
22
- }
23
- }), f && o());
24
- },
25
- { flush: "post" }
26
- ), D(() => r()), {
27
- hasFocus: c,
28
- isPaused: s,
29
- activate: o,
30
- deactivate: r,
31
- pause: v,
32
- unpause: p
33
- };
34
- }
1
+ const e = {
2
+ inert: ":not([inert]):not([inert] *)",
3
+ negTabIndex: ':not([tabindex^="-"])',
4
+ disabled: ":not(:disabled)"
5
+ }, n = [
6
+ `a[href]${e.inert}${e.negTabIndex}`,
7
+ `area[href]${e.inert}${e.negTabIndex}`,
8
+ `input:not([type="hidden"]):not([type="radio"])${e.inert}${e.negTabIndex}${e.disabled}`,
9
+ `input[type="radio"]${e.inert}${e.negTabIndex}${e.disabled}`,
10
+ `select${e.inert}${e.negTabIndex}${e.disabled}`,
11
+ `textarea${e.inert}${e.negTabIndex}${e.disabled}`,
12
+ `button${e.inert}${e.negTabIndex}${e.disabled}`,
13
+ `details${e.inert} > summary:first-of-type${e.negTabIndex}`,
14
+ // Discard until Firefox supports `:has()`
15
+ // See: https://github.com/KittyGiraudel/focusable-selectors/issues/12
16
+ // `details:not(:has(> summary))${not.inert}${not.negTabIndex}`,
17
+ `iframe${e.inert}${e.negTabIndex}`,
18
+ `audio[controls]${e.inert}${e.negTabIndex}`,
19
+ `video[controls]${e.inert}${e.negTabIndex}`,
20
+ `[contenteditable]${e.inert}${e.negTabIndex}`,
21
+ `[tabindex]${e.inert}${e.negTabIndex}`
22
+ ];
35
23
  export {
36
- O as useFocusTrap
24
+ n as default
37
25
  };
38
26
  //# sourceMappingURL=index218.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index218.js","sources":["../node_modules/@vueuse/integrations/useFocusTrap.mjs"],"sourcesContent":["import { unrefElement, tryOnScopeDispose } from '@vueuse/core';\nimport { ref, watch } from 'vue-demi';\nimport { createFocusTrap } from 'focus-trap';\n\nfunction useFocusTrap(target, options = {}) {\n let trap;\n const { immediate, ...focusTrapOptions } = options;\n const hasFocus = ref(false);\n const isPaused = ref(false);\n const activate = (opts) => trap && trap.activate(opts);\n const deactivate = (opts) => trap && trap.deactivate(opts);\n const pause = () => {\n if (trap) {\n trap.pause();\n isPaused.value = true;\n }\n };\n const unpause = () => {\n if (trap) {\n trap.unpause();\n isPaused.value = false;\n }\n };\n watch(\n () => unrefElement(target),\n (el) => {\n if (!el)\n return;\n trap = createFocusTrap(el, {\n ...focusTrapOptions,\n onActivate() {\n hasFocus.value = true;\n if (options.onActivate)\n options.onActivate();\n },\n onDeactivate() {\n hasFocus.value = false;\n if (options.onDeactivate)\n options.onDeactivate();\n }\n });\n if (immediate)\n activate();\n },\n { flush: \"post\" }\n );\n tryOnScopeDispose(() => deactivate());\n return {\n hasFocus,\n isPaused,\n activate,\n deactivate,\n pause,\n unpause\n };\n}\n\nexport { useFocusTrap };\n"],"names":["useFocusTrap","target","options","trap","immediate","focusTrapOptions","hasFocus","ref","isPaused","activate","opts","deactivate","pause","unpause","watch","unrefElement","el","createFocusTrap","tryOnScopeDispose"],"mappings":";;;;AAIA,SAASA,EAAaC,GAAQC,IAAU,IAAI;AAC1C,MAAIC;AACJ,QAAM,EAAE,WAAAC,GAAW,GAAGC,EAAgB,IAAKH,GACrCI,IAAWC,EAAI,EAAK,GACpBC,IAAWD,EAAI,EAAK,GACpBE,IAAW,CAACC,MAASP,KAAQA,EAAK,SAASO,CAAI,GAC/CC,IAAa,CAACD,MAASP,KAAQA,EAAK,WAAWO,CAAI,GACnDE,IAAQ,MAAM;AAClB,IAAIT,MACFA,EAAK,MAAK,GACVK,EAAS,QAAQ;AAAA,EAEvB,GACQK,IAAU,MAAM;AACpB,IAAIV,MACFA,EAAK,QAAO,GACZK,EAAS,QAAQ;AAAA,EAEvB;AACE,SAAAM;AAAA,IACE,MAAMC,EAAad,CAAM;AAAA,IACzB,CAACe,MAAO;AACN,MAAKA,MAELb,IAAOc,EAAgBD,GAAI;AAAA,QACzB,GAAGX;AAAA,QACH,aAAa;AACX,UAAAC,EAAS,QAAQ,IACbJ,EAAQ,cACVA,EAAQ,WAAU;AAAA,QACrB;AAAA,QACD,eAAe;AACb,UAAAI,EAAS,QAAQ,IACbJ,EAAQ,gBACVA,EAAQ,aAAY;AAAA,QACvB;AAAA,MACT,CAAO,GACGE,KACFK;IACH;AAAA,IACD,EAAE,OAAO,OAAQ;AAAA,EACrB,GACES,EAAkB,MAAMP,EAAU,CAAE,GAC7B;AAAA,IACL,UAAAL;AAAA,IACA,UAAAE;AAAA,IACA,UAAAC;AAAA,IACA,YAAAE;AAAA,IACA,OAAAC;AAAA,IACA,SAAAC;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index218.js","sources":["../node_modules/focusable-selectors/index.js"],"sourcesContent":["const not = {\n inert: ':not([inert]):not([inert] *)',\n negTabIndex: ':not([tabindex^=\"-\"])',\n disabled: ':not(:disabled)',\n}\n\nexport default [\n `a[href]${not.inert}${not.negTabIndex}`,\n `area[href]${not.inert}${not.negTabIndex}`,\n `input:not([type=\"hidden\"]):not([type=\"radio\"])${not.inert}${not.negTabIndex}${not.disabled}`,\n `input[type=\"radio\"]${not.inert}${not.negTabIndex}${not.disabled}`,\n `select${not.inert}${not.negTabIndex}${not.disabled}`,\n `textarea${not.inert}${not.negTabIndex}${not.disabled}`,\n `button${not.inert}${not.negTabIndex}${not.disabled}`,\n `details${not.inert} > summary:first-of-type${not.negTabIndex}`,\n // Discard until Firefox supports `:has()`\n // See: https://github.com/KittyGiraudel/focusable-selectors/issues/12\n // `details:not(:has(> summary))${not.inert}${not.negTabIndex}`,\n `iframe${not.inert}${not.negTabIndex}`,\n `audio[controls]${not.inert}${not.negTabIndex}`,\n `video[controls]${not.inert}${not.negTabIndex}`,\n `[contenteditable]${not.inert}${not.negTabIndex}`,\n `[tabindex]${not.inert}${not.negTabIndex}`,\n]\n"],"names":["not","selectors"],"mappings":"AAAA,MAAMA,IAAM;AAAA,EACV,OAAO;AAAA,EACP,aAAa;AAAA,EACb,UAAU;AACZ,GAEeC,IAAA;AAAA,EACb,UAAUD,EAAI,KAAK,GAAGA,EAAI,WAAW;AAAA,EACrC,aAAaA,EAAI,KAAK,GAAGA,EAAI,WAAW;AAAA,EACxC,iDAAiDA,EAAI,KAAK,GAAGA,EAAI,WAAW,GAAGA,EAAI,QAAQ;AAAA,EAC3F,sBAAsBA,EAAI,KAAK,GAAGA,EAAI,WAAW,GAAGA,EAAI,QAAQ;AAAA,EAChE,SAASA,EAAI,KAAK,GAAGA,EAAI,WAAW,GAAGA,EAAI,QAAQ;AAAA,EACnD,WAAWA,EAAI,KAAK,GAAGA,EAAI,WAAW,GAAGA,EAAI,QAAQ;AAAA,EACrD,SAASA,EAAI,KAAK,GAAGA,EAAI,WAAW,GAAGA,EAAI,QAAQ;AAAA,EACnD,UAAUA,EAAI,KAAK,2BAA2BA,EAAI,WAAW;AAAA;AAAA;AAAA;AAAA,EAI7D,SAASA,EAAI,KAAK,GAAGA,EAAI,WAAW;AAAA,EACpC,kBAAkBA,EAAI,KAAK,GAAGA,EAAI,WAAW;AAAA,EAC7C,kBAAkBA,EAAI,KAAK,GAAGA,EAAI,WAAW;AAAA,EAC7C,oBAAoBA,EAAI,KAAK,GAAGA,EAAI,WAAW;AAAA,EAC/C,aAAaA,EAAI,KAAK,GAAGA,EAAI,WAAW;AAC1C;","x_google_ignoreList":[0]}
package/dist/index219.js CHANGED
@@ -1,137 +1,376 @@
1
- import { getDefaultExportFromCjs as R, commonjsGlobal as W } from "./index229.js";
2
- import { __module as G } from "./index249.js";
3
- (function(V, rt) {
4
- (function(b, Z) {
5
- V.exports = Z();
6
- })(W, function() {
7
- var b = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, Z = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, $ = /\d\d/, i = /\d\d?/, y = /\d*[^-_:/,()\s\d]+/, m = {}, U = function(t) {
8
- return (t = +t) + (t > 68 ? 1900 : 2e3);
9
- }, o = function(t) {
10
- return function(r) {
11
- this[t] = +r;
1
+ import { evaluate as j, getSide as M, getOppositePlacement as G, getExpandedPlacements as J, getOppositeAxisPlacements as K, getAlignmentSides as N, getAlignment as F, getSideAxis as Y, clamp as B, getPaddingObject as z, rectToClientRect as $, getAlignmentAxis as H, getOppositeAxis as Q, getAxisLength as I, min as X } from "./index246.js";
2
+ function _(o, i, m) {
3
+ let {
4
+ reference: n,
5
+ floating: r
6
+ } = o;
7
+ const e = Y(i), l = H(i), a = I(l), g = M(i), x = e === "y", d = n.x + n.width / 2 - r.width / 2, c = n.y + n.height / 2 - r.height / 2, f = n[a] / 2 - r[a] / 2;
8
+ let t;
9
+ switch (g) {
10
+ case "top":
11
+ t = {
12
+ x: d,
13
+ y: n.y - r.height
12
14
  };
13
- }, j = [/[+-]\d\d:?(\d\d)?|Z/, function(t) {
14
- (this.zone || (this.zone = {})).offset = function(r) {
15
- if (!r || r === "Z")
16
- return 0;
17
- var n = r.match(/([+-]|\d\d)/g), e = 60 * n[1] + (+n[2] || 0);
18
- return e === 0 ? 0 : n[0] === "+" ? -e : e;
19
- }(t);
20
- }], F = function(t) {
21
- var r = m[t];
22
- return r && (r.indexOf ? r : r.s.concat(r.f));
23
- }, k = function(t, r) {
24
- var n, e = m.meridiem;
25
- if (e) {
26
- for (var c = 1; c <= 24; c += 1)
27
- if (t.indexOf(e(c, 0, r)) > -1) {
28
- n = c > 12;
29
- break;
30
- }
31
- } else
32
- n = t === (r ? "pm" : "PM");
33
- return n;
34
- }, q = { A: [y, function(t) {
35
- this.afternoon = k(t, !1);
36
- }], a: [y, function(t) {
37
- this.afternoon = k(t, !0);
38
- }], S: [/\d/, function(t) {
39
- this.milliseconds = 100 * +t;
40
- }], SS: [$, function(t) {
41
- this.milliseconds = 10 * +t;
42
- }], SSS: [/\d{3}/, function(t) {
43
- this.milliseconds = +t;
44
- }], s: [i, o("seconds")], ss: [i, o("seconds")], m: [i, o("minutes")], mm: [i, o("minutes")], H: [i, o("hours")], h: [i, o("hours")], HH: [i, o("hours")], hh: [i, o("hours")], D: [i, o("day")], DD: [$, o("day")], Do: [y, function(t) {
45
- var r = m.ordinal, n = t.match(/\d+/);
46
- if (this.day = n[0], r)
47
- for (var e = 1; e <= 31; e += 1)
48
- r(e).replace(/\[|\]/g, "") === t && (this.day = e);
49
- }], M: [i, o("month")], MM: [$, o("month")], MMM: [y, function(t) {
50
- var r = F("months"), n = (F("monthsShort") || r.map(function(e) {
51
- return e.slice(0, 3);
52
- })).indexOf(t) + 1;
53
- if (n < 1)
54
- throw new Error();
55
- this.month = n % 12 || n;
56
- }], MMMM: [y, function(t) {
57
- var r = F("months").indexOf(t) + 1;
58
- if (r < 1)
59
- throw new Error();
60
- this.month = r % 12 || r;
61
- }], Y: [/[+-]?\d+/, o("year")], YY: [$, function(t) {
62
- this.year = U(t);
63
- }], YYYY: [/\d{4}/, o("year")], Z: j, ZZ: j };
64
- function B(t) {
65
- var r, n;
66
- r = t, n = m && m.formats;
67
- for (var e = (t = r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(v, l, f) {
68
- var a = f && f.toUpperCase();
69
- return l || n[f] || b[f] || n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(M, Y, D) {
70
- return Y || D.slice(1);
71
- });
72
- })).match(Z), c = e.length, h = 0; h < c; h += 1) {
73
- var w = e[h], p = q[w], u = p && p[0], d = p && p[1];
74
- e[h] = d ? { regex: u, parser: d } : w.replace(/^\[|\]$/g, "");
15
+ break;
16
+ case "bottom":
17
+ t = {
18
+ x: d,
19
+ y: n.y + n.height
20
+ };
21
+ break;
22
+ case "right":
23
+ t = {
24
+ x: n.x + n.width,
25
+ y: c
26
+ };
27
+ break;
28
+ case "left":
29
+ t = {
30
+ x: n.x - r.width,
31
+ y: c
32
+ };
33
+ break;
34
+ default:
35
+ t = {
36
+ x: n.x,
37
+ y: n.y
38
+ };
39
+ }
40
+ switch (F(i)) {
41
+ case "start":
42
+ t[l] -= f * (m && x ? -1 : 1);
43
+ break;
44
+ case "end":
45
+ t[l] += f * (m && x ? -1 : 1);
46
+ break;
47
+ }
48
+ return t;
49
+ }
50
+ const tt = async (o, i, m) => {
51
+ const {
52
+ placement: n = "bottom",
53
+ strategy: r = "absolute",
54
+ middleware: e = [],
55
+ platform: l
56
+ } = m, a = e.filter(Boolean), g = await (l.isRTL == null ? void 0 : l.isRTL(i));
57
+ let x = await l.getElementRects({
58
+ reference: o,
59
+ floating: i,
60
+ strategy: r
61
+ }), {
62
+ x: d,
63
+ y: c
64
+ } = _(x, n, g), f = n, t = {}, s = 0;
65
+ for (let w = 0; w < a.length; w++) {
66
+ const {
67
+ name: u,
68
+ fn: p
69
+ } = a[w], {
70
+ x: h,
71
+ y,
72
+ data: P,
73
+ reset: v
74
+ } = await p({
75
+ x: d,
76
+ y: c,
77
+ initialPlacement: n,
78
+ placement: f,
79
+ strategy: r,
80
+ middlewareData: t,
81
+ rects: x,
82
+ platform: l,
83
+ elements: {
84
+ reference: o,
85
+ floating: i
75
86
  }
76
- return function(v) {
77
- for (var l = {}, f = 0, a = 0; f < c; f += 1) {
78
- var M = e[f];
79
- if (typeof M == "string")
80
- a += M.length;
81
- else {
82
- var Y = M.regex, D = M.parser, S = v.slice(a), g = Y.exec(S)[0];
83
- D.call(l, g), v = v.replace(g, "");
84
- }
87
+ });
88
+ d = h ?? d, c = y ?? c, t = {
89
+ ...t,
90
+ [u]: {
91
+ ...t[u],
92
+ ...P
93
+ }
94
+ }, v && s <= 50 && (s++, typeof v == "object" && (v.placement && (f = v.placement), v.rects && (x = v.rects === !0 ? await l.getElementRects({
95
+ reference: o,
96
+ floating: i,
97
+ strategy: r
98
+ }) : v.rects), {
99
+ x: d,
100
+ y: c
101
+ } = _(x, f, g)), w = -1);
102
+ }
103
+ return {
104
+ x: d,
105
+ y: c,
106
+ placement: f,
107
+ strategy: r,
108
+ middlewareData: t
109
+ };
110
+ };
111
+ async function W(o, i) {
112
+ var m;
113
+ i === void 0 && (i = {});
114
+ const {
115
+ x: n,
116
+ y: r,
117
+ platform: e,
118
+ rects: l,
119
+ elements: a,
120
+ strategy: g
121
+ } = o, {
122
+ boundary: x = "clippingAncestors",
123
+ rootBoundary: d = "viewport",
124
+ elementContext: c = "floating",
125
+ altBoundary: f = !1,
126
+ padding: t = 0
127
+ } = j(i, o), s = z(t), u = a[f ? c === "floating" ? "reference" : "floating" : c], p = $(await e.getClippingRect({
128
+ element: (m = await (e.isElement == null ? void 0 : e.isElement(u))) == null || m ? u : u.contextElement || await (e.getDocumentElement == null ? void 0 : e.getDocumentElement(a.floating)),
129
+ boundary: x,
130
+ rootBoundary: d,
131
+ strategy: g
132
+ })), h = c === "floating" ? {
133
+ ...l.floating,
134
+ x: n,
135
+ y: r
136
+ } : l.reference, y = await (e.getOffsetParent == null ? void 0 : e.getOffsetParent(a.floating)), P = await (e.isElement == null ? void 0 : e.isElement(y)) ? await (e.getScale == null ? void 0 : e.getScale(y)) || {
137
+ x: 1,
138
+ y: 1
139
+ } : {
140
+ x: 1,
141
+ y: 1
142
+ }, v = $(e.convertOffsetParentRelativeRectToViewportRelativeRect ? await e.convertOffsetParentRelativeRectToViewportRelativeRect({
143
+ elements: a,
144
+ rect: h,
145
+ offsetParent: y,
146
+ strategy: g
147
+ }) : h);
148
+ return {
149
+ top: (p.top - v.top + s.top) / P.y,
150
+ bottom: (v.bottom - p.bottom + s.bottom) / P.y,
151
+ left: (p.left - v.left + s.left) / P.x,
152
+ right: (v.right - p.right + s.right) / P.x
153
+ };
154
+ }
155
+ const et = (o) => ({
156
+ name: "arrow",
157
+ options: o,
158
+ async fn(i) {
159
+ const {
160
+ x: m,
161
+ y: n,
162
+ placement: r,
163
+ rects: e,
164
+ platform: l,
165
+ elements: a,
166
+ middlewareData: g
167
+ } = i, {
168
+ element: x,
169
+ padding: d = 0
170
+ } = j(o, i) || {};
171
+ if (x == null)
172
+ return {};
173
+ const c = z(d), f = {
174
+ x: m,
175
+ y: n
176
+ }, t = H(r), s = I(t), w = await l.getDimensions(x), u = t === "y", p = u ? "top" : "left", h = u ? "bottom" : "right", y = u ? "clientHeight" : "clientWidth", P = e.reference[s] + e.reference[t] - f[t] - e.floating[s], v = f[t] - e.reference[t], D = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(x));
177
+ let O = D ? D[y] : 0;
178
+ (!O || !await (l.isElement == null ? void 0 : l.isElement(D))) && (O = a.floating[y] || e.floating[s]);
179
+ const E = P / 2 - v / 2, S = O / 2 - w[s] / 2 - 1, T = X(c[p], S), L = X(c[h], S), b = T, V = O - w[s] - L, A = O / 2 - w[s] / 2 + E, R = B(b, A, V), k = !g.arrow && F(r) != null && A !== R && e.reference[s] / 2 - (A < b ? T : L) - w[s] / 2 < 0, C = k ? A < b ? A - b : A - V : 0;
180
+ return {
181
+ [t]: f[t] + C,
182
+ data: {
183
+ [t]: R,
184
+ centerOffset: A - R - C,
185
+ ...k && {
186
+ alignmentOffset: C
85
187
  }
86
- return function(L) {
87
- var s = L.afternoon;
88
- if (s !== void 0) {
89
- var x = L.hours;
90
- s ? x < 12 && (L.hours += 12) : x === 12 && (L.hours = 0), delete L.afternoon;
91
- }
92
- }(l), l;
93
- };
94
- }
95
- return function(t, r, n) {
96
- n.p.customParseFormat = !0, t && t.parseTwoDigitYear && (U = t.parseTwoDigitYear);
97
- var e = r.prototype, c = e.parse;
98
- e.parse = function(h) {
99
- var w = h.date, p = h.utc, u = h.args;
100
- this.$u = p;
101
- var d = u[1];
102
- if (typeof d == "string") {
103
- var v = u[2] === !0, l = u[3] === !0, f = v || l, a = u[2];
104
- l && (a = u[2]), m = this.$locale(), !v && a && (m = n.Ls[a]), this.$d = function(S, g, L) {
105
- try {
106
- if (["x", "X"].indexOf(g) > -1)
107
- return new Date((g === "X" ? 1e3 : 1) * S);
108
- var s = B(g)(S), x = s.year, A = s.month, I = s.day, J = s.hours, K = s.minutes, N = s.seconds, Q = s.milliseconds, X = s.zone, H = /* @__PURE__ */ new Date(), O = I || (x || A ? 1 : H.getDate()), P = x || H.getFullYear(), T = 0;
109
- x && !A || (T = A > 0 ? A - 1 : H.getMonth());
110
- var z = J || 0, C = K || 0, E = N || 0, _ = Q || 0;
111
- return X ? new Date(Date.UTC(P, T, O, z, C, E, _ + 60 * X.offset * 1e3)) : L ? new Date(Date.UTC(P, T, O, z, C, E, _)) : new Date(P, T, O, z, C, E, _);
112
- } catch {
113
- return /* @__PURE__ */ new Date("");
188
+ },
189
+ reset: k
190
+ };
191
+ }
192
+ }), nt = function(o) {
193
+ return o === void 0 && (o = {}), {
194
+ name: "flip",
195
+ options: o,
196
+ async fn(i) {
197
+ var m, n;
198
+ const {
199
+ placement: r,
200
+ middlewareData: e,
201
+ rects: l,
202
+ initialPlacement: a,
203
+ platform: g,
204
+ elements: x
205
+ } = i, {
206
+ mainAxis: d = !0,
207
+ crossAxis: c = !0,
208
+ fallbackPlacements: f,
209
+ fallbackStrategy: t = "bestFit",
210
+ fallbackAxisSideDirection: s = "none",
211
+ flipAlignment: w = !0,
212
+ ...u
213
+ } = j(o, i);
214
+ if ((m = e.arrow) != null && m.alignmentOffset)
215
+ return {};
216
+ const p = M(r), h = M(a) === a, y = await (g.isRTL == null ? void 0 : g.isRTL(x.floating)), P = f || (h || !w ? [G(a)] : J(a));
217
+ !f && s !== "none" && P.push(...K(a, w, s, y));
218
+ const v = [a, ...P], D = await W(i, u), O = [];
219
+ let E = ((n = e.flip) == null ? void 0 : n.overflows) || [];
220
+ if (d && O.push(D[p]), c) {
221
+ const b = N(r, l, y);
222
+ O.push(D[b[0]], D[b[1]]);
223
+ }
224
+ if (E = [...E, {
225
+ placement: r,
226
+ overflows: O
227
+ }], !O.every((b) => b <= 0)) {
228
+ var S, T;
229
+ const b = (((S = e.flip) == null ? void 0 : S.index) || 0) + 1, V = v[b];
230
+ if (V)
231
+ return {
232
+ data: {
233
+ index: b,
234
+ overflows: E
235
+ },
236
+ reset: {
237
+ placement: V
238
+ }
239
+ };
240
+ let A = (T = E.filter((R) => R.overflows[0] <= 0).sort((R, k) => R.overflows[1] - k.overflows[1])[0]) == null ? void 0 : T.placement;
241
+ if (!A)
242
+ switch (t) {
243
+ case "bestFit": {
244
+ var L;
245
+ const R = (L = E.map((k) => [k.placement, k.overflows.filter((C) => C > 0).reduce((C, q) => C + q, 0)]).sort((k, C) => k[1] - C[1])[0]) == null ? void 0 : L[0];
246
+ R && (A = R);
247
+ break;
114
248
  }
115
- }(w, d, p), this.init(), a && a !== !0 && (this.$L = this.locale(a).$L), f && w != this.format(d) && (this.$d = /* @__PURE__ */ new Date("")), m = {};
116
- } else if (d instanceof Array)
117
- for (var M = d.length, Y = 1; Y <= M; Y += 1) {
118
- u[1] = d[Y - 1];
119
- var D = n.apply(this, u);
120
- if (D.isValid()) {
121
- this.$d = D.$d, this.$L = D.$L, this.init();
249
+ case "initialPlacement":
250
+ A = a;
122
251
  break;
252
+ }
253
+ if (r !== A)
254
+ return {
255
+ reset: {
256
+ placement: A
123
257
  }
124
- Y === M && (this.$d = /* @__PURE__ */ new Date(""));
258
+ };
259
+ }
260
+ return {};
261
+ }
262
+ };
263
+ };
264
+ async function U(o, i) {
265
+ const {
266
+ placement: m,
267
+ platform: n,
268
+ elements: r
269
+ } = o, e = await (n.isRTL == null ? void 0 : n.isRTL(r.floating)), l = M(m), a = F(m), g = Y(m) === "y", x = ["left", "top"].includes(l) ? -1 : 1, d = e && g ? -1 : 1, c = j(i, o);
270
+ let {
271
+ mainAxis: f,
272
+ crossAxis: t,
273
+ alignmentAxis: s
274
+ } = typeof c == "number" ? {
275
+ mainAxis: c,
276
+ crossAxis: 0,
277
+ alignmentAxis: null
278
+ } : {
279
+ mainAxis: 0,
280
+ crossAxis: 0,
281
+ alignmentAxis: null,
282
+ ...c
283
+ };
284
+ return a && typeof s == "number" && (t = a === "end" ? s * -1 : s), g ? {
285
+ x: t * d,
286
+ y: f * x
287
+ } : {
288
+ x: f * x,
289
+ y: t * d
290
+ };
291
+ }
292
+ const it = function(o) {
293
+ return o === void 0 && (o = 0), {
294
+ name: "offset",
295
+ options: o,
296
+ async fn(i) {
297
+ var m, n;
298
+ const {
299
+ x: r,
300
+ y: e,
301
+ placement: l,
302
+ middlewareData: a
303
+ } = i, g = await U(i, o);
304
+ return l === ((m = a.offset) == null ? void 0 : m.placement) && (n = a.arrow) != null && n.alignmentOffset ? {} : {
305
+ x: r + g.x,
306
+ y: e + g.y,
307
+ data: {
308
+ ...g,
309
+ placement: l
310
+ }
311
+ };
312
+ }
313
+ };
314
+ }, ot = function(o) {
315
+ return o === void 0 && (o = {}), {
316
+ name: "shift",
317
+ options: o,
318
+ async fn(i) {
319
+ const {
320
+ x: m,
321
+ y: n,
322
+ placement: r
323
+ } = i, {
324
+ mainAxis: e = !0,
325
+ crossAxis: l = !1,
326
+ limiter: a = {
327
+ fn: (u) => {
328
+ let {
329
+ x: p,
330
+ y: h
331
+ } = u;
332
+ return {
333
+ x: p,
334
+ y: h
335
+ };
125
336
  }
126
- else
127
- c.call(this, h);
337
+ },
338
+ ...g
339
+ } = j(o, i), x = {
340
+ x: m,
341
+ y: n
342
+ }, d = await W(i, g), c = Y(M(r)), f = Q(c);
343
+ let t = x[f], s = x[c];
344
+ if (e) {
345
+ const u = f === "y" ? "top" : "left", p = f === "y" ? "bottom" : "right", h = t + d[u], y = t - d[p];
346
+ t = B(h, t, y);
347
+ }
348
+ if (l) {
349
+ const u = c === "y" ? "top" : "left", p = c === "y" ? "bottom" : "right", h = s + d[u], y = s - d[p];
350
+ s = B(h, s, y);
351
+ }
352
+ const w = a.fn({
353
+ ...i,
354
+ [f]: t,
355
+ [c]: s
356
+ });
357
+ return {
358
+ ...w,
359
+ data: {
360
+ x: w.x - m,
361
+ y: w.y - n
362
+ }
128
363
  };
129
- };
130
- });
131
- })(G);
132
- var tt = G.exports;
133
- const at = /* @__PURE__ */ R(tt);
364
+ }
365
+ };
366
+ };
134
367
  export {
135
- at as default
368
+ et as arrow,
369
+ tt as computePosition,
370
+ W as detectOverflow,
371
+ nt as flip,
372
+ it as offset,
373
+ $ as rectToClientRect,
374
+ ot as shift
136
375
  };
137
376
  //# sourceMappingURL=index219.js.map