@okam/stack-ui 1.35.6 → 1.35.7

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 (227) hide show
  1. package/index107.js +1 -1
  2. package/index107.mjs +1 -1
  3. package/index114.js +1 -1
  4. package/index114.mjs +1 -1
  5. package/index116.js +1 -1
  6. package/index116.mjs +3 -3
  7. package/index117.js +1 -1
  8. package/index117.mjs +3 -3
  9. package/index118.js +1 -1
  10. package/index118.mjs +1 -1
  11. package/index119.js +1 -1
  12. package/index119.mjs +1 -1
  13. package/index124.js +1 -1
  14. package/index124.mjs +1 -1
  15. package/index126.js +1 -1
  16. package/index126.mjs +2 -2
  17. package/index127.js +1 -1
  18. package/index127.mjs +5 -5
  19. package/index128.js +1 -1
  20. package/index128.mjs +3 -3
  21. package/index129.js +1 -1
  22. package/index129.mjs +9 -9
  23. package/index135.js +1 -1
  24. package/index135.mjs +1 -1
  25. package/index144.js +1 -1
  26. package/index144.mjs +55 -10
  27. package/index145.js +1 -1
  28. package/index145.mjs +10 -55
  29. package/index150.js +1 -1
  30. package/index150.mjs +1 -1
  31. package/index151.js +1 -1
  32. package/index151.mjs +1 -1
  33. package/index153.js +1 -1
  34. package/index153.mjs +22 -68
  35. package/index154.js +1 -1
  36. package/index154.mjs +62 -370
  37. package/index155.js +1 -1
  38. package/index155.mjs +379 -44
  39. package/index156.js +1 -1
  40. package/index156.mjs +47 -4
  41. package/index157.js +1 -1
  42. package/index157.mjs +4 -25
  43. package/index158.js +1 -1
  44. package/index158.mjs +23 -46
  45. package/index159.js +1 -1
  46. package/index159.mjs +46 -4
  47. package/index160.js +1 -1
  48. package/index160.mjs +5 -24
  49. package/index161.js +1 -1
  50. package/index161.mjs +23 -11
  51. package/index162.js +1 -1
  52. package/index162.mjs +12 -4
  53. package/index163.js +1 -1
  54. package/index163.mjs +4 -14
  55. package/index164.js +1 -1
  56. package/index164.mjs +14 -21
  57. package/index165.js +1 -1
  58. package/index165.mjs +21 -42
  59. package/index166.js +1 -1
  60. package/index166.mjs +41 -23
  61. package/index167.js +1 -1
  62. package/index167.mjs +24 -42
  63. package/index168.js +1 -1
  64. package/index168.mjs +41 -27
  65. package/index169.js +1 -1
  66. package/index169.mjs +27 -30
  67. package/index170.js +1 -1
  68. package/index170.mjs +30 -13
  69. package/index171.js +1 -1
  70. package/index171.mjs +14 -28
  71. package/index172.js +1 -1
  72. package/index172.mjs +28 -9
  73. package/index173.js +1 -1
  74. package/index173.mjs +9 -6
  75. package/index174.js +1 -1
  76. package/index174.mjs +6 -5
  77. package/index175.js +1 -1
  78. package/index175.mjs +5 -13
  79. package/index176.js +1 -1
  80. package/index176.mjs +13 -8
  81. package/index177.js +1 -1
  82. package/index177.mjs +8 -17
  83. package/index178.js +1 -1
  84. package/index178.mjs +17 -19
  85. package/index179.js +1 -1
  86. package/index179.mjs +19 -54
  87. package/index18.js +1 -1
  88. package/index18.mjs +49 -44
  89. package/index180.js +1 -1
  90. package/index180.mjs +50 -23
  91. package/index181.js +1 -1
  92. package/index181.mjs +122 -138
  93. package/index182.js +1 -1
  94. package/index182.mjs +129 -192
  95. package/index183.js +1 -1
  96. package/index183.mjs +44 -22
  97. package/index184.js +1 -1
  98. package/index184.mjs +14 -49
  99. package/index185.js +1 -1
  100. package/index185.mjs +93 -46
  101. package/index186.js +1 -1
  102. package/index186.mjs +98 -89
  103. package/index187.js +1 -1
  104. package/index187.mjs +5 -72
  105. package/index188.js +1 -1
  106. package/index188.mjs +3 -68
  107. package/index189.js +1 -1
  108. package/index189.mjs +125 -7
  109. package/index190.js +1 -1
  110. package/index190.mjs +29 -11
  111. package/index191.js +1 -1
  112. package/index191.mjs +40 -113
  113. package/index192.js +1 -1
  114. package/index192.mjs +41 -131
  115. package/index193.js +1 -1
  116. package/index193.mjs +36 -43
  117. package/index194.js +1 -1
  118. package/index194.mjs +110 -11
  119. package/index195.js +1 -1
  120. package/index195.mjs +59 -77
  121. package/index196.js +1 -1
  122. package/index196.mjs +94 -99
  123. package/index197.js +1 -1
  124. package/index197.mjs +98 -5
  125. package/index198.js +1 -1
  126. package/index198.mjs +140 -3
  127. package/index199.js +1 -1
  128. package/index199.mjs +191 -119
  129. package/index200.js +1 -1
  130. package/index200.mjs +22 -29
  131. package/index201.js +1 -1
  132. package/index201.mjs +49 -51
  133. package/index202.js +1 -1
  134. package/index202.mjs +47 -43
  135. package/index203.js +1 -1
  136. package/index203.mjs +95 -35
  137. package/index204.js +1 -1
  138. package/index204.mjs +72 -114
  139. package/index205.js +1 -1
  140. package/index205.mjs +67 -76
  141. package/index206.js +1 -1
  142. package/index206.mjs +7 -101
  143. package/index207.js +1 -1
  144. package/index207.mjs +12 -98
  145. package/index235.js +1 -1
  146. package/index235.mjs +5 -5
  147. package/index236.js +1 -1
  148. package/index236.mjs +1 -1
  149. package/index237.js +1 -1
  150. package/index237.mjs +4 -4
  151. package/index238.js +1 -1
  152. package/index238.mjs +1 -1
  153. package/index239.js +1 -1
  154. package/index239.mjs +1 -1
  155. package/index240.js +1 -1
  156. package/index240.mjs +4 -4
  157. package/index241.js +1 -1
  158. package/index241.mjs +4 -4
  159. package/index242.js +1 -1
  160. package/index242.mjs +1 -1
  161. package/index243.js +1 -1
  162. package/index243.mjs +4 -4
  163. package/index244.js +1 -1
  164. package/index244.mjs +4 -4
  165. package/index245.js +1 -1
  166. package/index245.mjs +1 -1
  167. package/index246.js +1 -1
  168. package/index246.mjs +4 -4
  169. package/index247.js +1 -1
  170. package/index247.mjs +4 -4
  171. package/index248.js +1 -1
  172. package/index248.mjs +1 -1
  173. package/index249.js +1 -1
  174. package/index249.mjs +1 -1
  175. package/index250.js +1 -1
  176. package/index250.mjs +4 -4
  177. package/index251.js +1 -1
  178. package/index251.mjs +4 -4
  179. package/index252.js +1 -1
  180. package/index252.mjs +1 -1
  181. package/index253.js +1 -1
  182. package/index253.mjs +4 -4
  183. package/index254.js +1 -1
  184. package/index254.mjs +4 -4
  185. package/index255.js +1 -1
  186. package/index255.mjs +4 -4
  187. package/index256.js +1 -1
  188. package/index256.mjs +1 -1
  189. package/index257.js +1 -1
  190. package/index257.mjs +4 -4
  191. package/index258.js +1 -1
  192. package/index258.mjs +4 -4
  193. package/index259.js +1 -1
  194. package/index259.mjs +4 -4
  195. package/index260.js +1 -1
  196. package/index260.mjs +4 -4
  197. package/index261.js +1 -1
  198. package/index261.mjs +4 -4
  199. package/index262.js +1 -1
  200. package/index262.mjs +1 -1
  201. package/index263.js +1 -1
  202. package/index263.mjs +1 -1
  203. package/index264.js +1 -1
  204. package/index264.mjs +1 -1
  205. package/index265.js +1 -1
  206. package/index265.mjs +4 -4
  207. package/index266.js +1 -1
  208. package/index266.mjs +4 -4
  209. package/index267.js +1 -1
  210. package/index267.mjs +4 -4
  211. package/index268.js +1 -1
  212. package/index268.mjs +4 -4
  213. package/index269.js +1 -1
  214. package/index269.mjs +5 -5
  215. package/index278.js +1 -1
  216. package/index278.mjs +3 -3
  217. package/index280.js +1 -1
  218. package/index280.mjs +2 -2
  219. package/index281.js +1 -1
  220. package/index281.mjs +5 -5
  221. package/index284.js +1 -1
  222. package/index284.mjs +3 -3
  223. package/index287.js +1 -1
  224. package/index287.mjs +1 -1
  225. package/index288.js +1 -1
  226. package/index288.mjs +4 -4
  227. package/package.json +1 -1
package/index185.mjs CHANGED
@@ -1,51 +1,98 @@
1
- import { getOwnerDocument as p } from "./index161.mjs";
2
- import { useEffectEvent as m } from "./index175.mjs";
3
- import { useRef as w, useEffect as D } from "react";
4
- function $(r) {
5
- let { ref: n, onInteractOutside: s, isDisabled: d, onInteractOutsideStart: l } = r, E = w({
6
- isPointerDown: !1,
7
- ignoreEmulatedMouseEvents: !1
8
- }), o = m((e) => {
9
- s && c(e, n) && (l && l(e), E.current.isPointerDown = !0);
10
- }), f = m((e) => {
11
- s && s(e);
12
- });
13
- D(() => {
14
- let e = E.current;
15
- if (d) return;
16
- const v = n.current, t = p(v);
17
- if (typeof PointerEvent < "u") {
18
- let i = (u) => {
19
- e.isPointerDown && c(u, n) && f(u), e.isPointerDown = !1;
20
- };
21
- return t.addEventListener("pointerdown", o, !0), t.addEventListener("pointerup", i, !0), () => {
22
- t.removeEventListener("pointerdown", o, !0), t.removeEventListener("pointerup", i, !0);
23
- };
24
- } else if (process.env.NODE_ENV === "test") {
25
- let i = (a) => {
26
- e.ignoreEmulatedMouseEvents ? e.ignoreEmulatedMouseEvents = !1 : e.isPointerDown && c(a, n) && f(a), e.isPointerDown = !1;
27
- }, u = (a) => {
28
- e.ignoreEmulatedMouseEvents = !0, e.isPointerDown && c(a, n) && f(a), e.isPointerDown = !1;
29
- };
30
- return t.addEventListener("mousedown", o, !0), t.addEventListener("mouseup", i, !0), t.addEventListener("touchstart", o, !0), t.addEventListener("touchend", u, !0), () => {
31
- t.removeEventListener("mousedown", o, !0), t.removeEventListener("mouseup", i, !0), t.removeEventListener("touchstart", o, !0), t.removeEventListener("touchend", u, !0);
32
- };
33
- }
34
- }, [
35
- n,
36
- d,
37
- o,
38
- f
39
- ]);
1
+ import { CalendarDate as m } from "./index181.mjs";
2
+ import { mod as s } from "./index188.mjs";
3
+ const p = 1721426;
4
+ function b(r, e, t, l) {
5
+ e = C(r, e);
6
+ let a = e - 1, n = -2;
7
+ return t <= 2 ? n = 0 : d(e) && (n = -1), p - 1 + 365 * a + Math.floor(a / 4) - Math.floor(a / 100) + Math.floor(a / 400) + Math.floor((367 * t - 362) / 12 + n + l);
40
8
  }
41
- function c(r, n) {
42
- if (r.button > 0) return !1;
43
- if (r.target) {
44
- const s = r.target.ownerDocument;
45
- if (!s || !s.documentElement.contains(r.target) || r.target.closest("[data-react-aria-top-layer]")) return !1;
9
+ function d(r) {
10
+ return r % 4 === 0 && (r % 100 !== 0 || r % 400 === 0);
11
+ }
12
+ function C(r, e) {
13
+ return r === "BC" ? 1 - e : e;
14
+ }
15
+ function Y(r) {
16
+ let e = "AD";
17
+ return r <= 0 && (e = "BC", r = 1 - r), [
18
+ e,
19
+ r
20
+ ];
21
+ }
22
+ const B = {
23
+ standard: [
24
+ 31,
25
+ 28,
26
+ 31,
27
+ 30,
28
+ 31,
29
+ 30,
30
+ 31,
31
+ 31,
32
+ 30,
33
+ 31,
34
+ 30,
35
+ 31
36
+ ],
37
+ leapyear: [
38
+ 31,
39
+ 29,
40
+ 31,
41
+ 30,
42
+ 31,
43
+ 30,
44
+ 31,
45
+ 31,
46
+ 30,
47
+ 31,
48
+ 30,
49
+ 31
50
+ ]
51
+ };
52
+ class q {
53
+ fromJulianDay(e) {
54
+ let t = e, l = t - p, a = Math.floor(l / 146097), n = s(l, 146097), $ = Math.floor(n / 36524), i = s(n, 36524), y = Math.floor(i / 1461), x = s(i, 1461), u = Math.floor(x / 365), M = a * 400 + $ * 100 + y * 4 + u + ($ !== 4 && u !== 4 ? 1 : 0), [f, o] = Y(M), g = t - b(f, o, 1, 1), c = 2;
55
+ t < b(f, o, 3, 1) ? c = 0 : d(o) && (c = 1);
56
+ let h = Math.floor(((g + c) * 12 + 373) / 367), D = t - b(f, o, h, 1) + 1;
57
+ return new m(f, o, h, D);
58
+ }
59
+ toJulianDay(e) {
60
+ return b(e.era, e.year, e.month, e.day);
61
+ }
62
+ getDaysInMonth(e) {
63
+ return B[d(e.year) ? "leapyear" : "standard"][e.month - 1];
64
+ }
65
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
66
+ getMonthsInYear(e) {
67
+ return 12;
68
+ }
69
+ getDaysInYear(e) {
70
+ return d(e.year) ? 366 : 365;
71
+ }
72
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
73
+ getYearsInEra(e) {
74
+ return 9999;
75
+ }
76
+ getEras() {
77
+ return [
78
+ "BC",
79
+ "AD"
80
+ ];
81
+ }
82
+ isInverseEra(e) {
83
+ return e.era === "BC";
84
+ }
85
+ balanceDate(e) {
86
+ e.year <= 0 && (e.era = e.era === "BC" ? "AD" : "BC", e.year = 1 - e.year);
87
+ }
88
+ constructor() {
89
+ this.identifier = "gregory";
46
90
  }
47
- return n.current ? !r.composedPath().includes(n.current) : !1;
48
91
  }
49
92
  export {
50
- $ as useInteractOutside
93
+ q as GregorianCalendar,
94
+ Y as fromExtendedYear,
95
+ C as getExtendedYear,
96
+ b as gregorianToJulianDay,
97
+ d as isLeapYear
51
98
  };
package/index186.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index159.js"),E=require("./index156.js"),w=require("./index173.js"),S=require("./index167.js"),m=typeof document<"u"&&window.visualViewport,y=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let s=0,f;function T(e={}){let{isDisabled:t}=e;E.useLayoutEffect(()=>{if(!t)return s++,s===1&&(S.isIOS()?f=x():f=b()),()=>{s--,s===0&&f()}},[t])}function b(){return v.chain(r(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),r(document.documentElement,"overflow","hidden"))}function x(){let e,t,n=c=>{e=w.getScrollParent(c.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=r(e,"overscrollBehavior","contain"))},o=c=>{if(!e||e===document.documentElement||e===document.body){c.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&c.preventDefault()},u=()=>{t&&t()},a=c=>{let l=c.target;L(l)&&(h(),l.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{l.style.transform="",m&&(m.height<window.innerHeight?requestAnimationFrame(()=>{$(l)}):m.addEventListener("resize",()=>$(l),{once:!0}))}))},i=null,h=()=>{if(i)return;let c=()=>{window.scrollTo(0,0)},l=window.pageXOffset,p=window.pageYOffset;i=v.chain(d(window,"scroll",c),r(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),r(document.documentElement,"overflow","hidden"),r(document.body,"marginTop",`-${p}px`),()=>{window.scrollTo(l,p)}),window.scrollTo(0,0)},g=v.chain(d(document,"touchstart",n,{passive:!1,capture:!0}),d(document,"touchmove",o,{passive:!1,capture:!0}),d(document,"touchend",u,{passive:!1,capture:!0}),d(document,"focus",a,!0));return()=>{t==null||t(),i==null||i(),g()}}function r(e,t,n){let o=e.style[t];return e.style[t]=n,()=>{e.style[t]=o}}function d(e,t,n,o){return e.addEventListener(t,n,o),()=>{e.removeEventListener(t,n,o)}}function $(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let o=w.getScrollParent(n);if(o!==document.documentElement&&o!==document.body&&o!==n){let u=o.getBoundingClientRect().top,a=n.getBoundingClientRect().top;a>u+n.clientHeight&&(o.scrollTop+=a-u)}n=o.parentElement}}function L(e){return e instanceof HTMLInputElement&&!y.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}exports.usePreventScroll=T;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./index181.js"),D=require("./index182.js"),f=require("./index185.js"),m=require("./index183.js");function c(e){e=d(e,new f.GregorianCalendar);let t=f.getExtendedYear(e.era,e.year);return $(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function $(e,t,n,r,o,a,i){let u=new Date;return u.setUTCHours(r,o,a,i),u.setUTCFullYear(e,t-1,n),u.getTime()}function s(e,t){if(t==="UTC")return 0;if(e>0&&t===m.getLocalTimeZone())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:o,hour:a,minute:i,second:u}=p(e,t);return $(n,r,o,a,i,u,0)-Math.floor(e/1e3)*1e3}const h=new Map;function p(e,t){let n=h.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),h.set(t,n));let r=n.formatToParts(new Date(e)),o={};for(let a of r)a.type!=="literal"&&(o[a.type]=a.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const y=864e5;function C(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>v(e,t,a))}function v(e,t,n){let r=p(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function b(e,t,n="compatible"){let r=T(e);if(t==="UTC")return c(r);if(t===m.getLocalTimeZone()&&n==="compatible"){r=d(r,new f.GregorianCalendar);let l=new Date,g=f.getExtendedYear(r.era,r.year);return l.setFullYear(g,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let o=c(r),a=s(o-y,t),i=s(o+y,t),u=C(r,t,o-a,o-i);if(u.length===1)return u[0];if(u.length>1)switch(n){case"compatible":case"earlier":return u[0];case"later":return u[u.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(o-a,o-i);case"compatible":case"later":return Math.max(o-a,o-i);case"reject":throw new RangeError("No such absolute time found")}}function x(e,t,n="compatible"){return new Date(b(e,t,n))}function T(e,t){let n=0,r=0,o=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:o,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:o,millisecond:a}=t),new w.CalendarDateTime(e.calendar,e.era,e.year,e.month,e.day,n,r,o,a)}function d(e,t){if(m.isEqualCalendar(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,D.constrain(r),r}exports.epochFromDate=c;exports.getTimeZoneOffset=s;exports.toAbsolute=b;exports.toCalendar=d;exports.toCalendarDateTime=T;exports.toDate=x;
package/index186.mjs CHANGED
@@ -1,100 +1,109 @@
1
- import { chain as $ } from "./index159.mjs";
2
- import { useLayoutEffect as b } from "./index156.mjs";
3
- import { getScrollParent as w } from "./index173.mjs";
4
- import { isIOS as g } from "./index167.mjs";
5
- const m = typeof document < "u" && window.visualViewport, T = /* @__PURE__ */ new Set([
6
- "checkbox",
7
- "radio",
8
- "range",
9
- "color",
10
- "file",
11
- "image",
12
- "button",
13
- "submit",
14
- "reset"
15
- ]);
16
- let s = 0, f;
17
- function C(e = {}) {
18
- let { isDisabled: t } = e;
19
- b(() => {
20
- if (!t)
21
- return s++, s === 1 && (g() ? f = S() : f = y()), () => {
22
- s--, s === 0 && f();
23
- };
24
- }, [
25
- t
26
- ]);
1
+ import { CalendarDateTime as w } from "./index181.mjs";
2
+ import { constrain as x } from "./index182.mjs";
3
+ import { GregorianCalendar as $, getExtendedYear as d } from "./index185.mjs";
4
+ import { isEqualCalendar as D, getLocalTimeZone as h } from "./index183.mjs";
5
+ function i(e) {
6
+ e = y(e, new $());
7
+ let t = d(e.era, e.year);
8
+ return b(t, e.month, e.day, e.hour, e.minute, e.second, e.millisecond);
27
9
  }
28
- function y() {
29
- return $(l(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), l(document.documentElement, "overflow", "hidden"));
10
+ function b(e, t, n, r, o, a, c) {
11
+ let f = /* @__PURE__ */ new Date();
12
+ return f.setUTCHours(r, o, a, c), f.setUTCFullYear(e, t - 1, n), f.getTime();
30
13
  }
31
- function S() {
32
- let e, t, n = (c) => {
33
- e = w(c.target, !0), !(e === document.documentElement && e === document.body) && e instanceof HTMLElement && window.getComputedStyle(e).overscrollBehavior === "auto" && (t = l(e, "overscrollBehavior", "contain"));
34
- }, o = (c) => {
35
- if (!e || e === document.documentElement || e === document.body) {
36
- c.preventDefault();
37
- return;
38
- }
39
- e.scrollHeight === e.clientHeight && e.scrollWidth === e.clientWidth && c.preventDefault();
40
- }, u = () => {
41
- t && t();
42
- }, a = (c) => {
43
- let r = c.target;
44
- x(r) && (h(), r.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
45
- r.style.transform = "", m && (m.height < window.innerHeight ? requestAnimationFrame(() => {
46
- v(r);
47
- }) : m.addEventListener("resize", () => v(r), {
48
- once: !0
49
- }));
50
- }));
51
- }, d = null, h = () => {
52
- if (d) return;
53
- let c = () => {
54
- window.scrollTo(0, 0);
55
- }, r = window.pageXOffset, p = window.pageYOffset;
56
- d = $(i(window, "scroll", c), l(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), l(document.documentElement, "overflow", "hidden"), l(document.body, "marginTop", `-${p}px`), () => {
57
- window.scrollTo(r, p);
58
- }), window.scrollTo(0, 0);
59
- }, E = $(i(document, "touchstart", n, {
60
- passive: !1,
61
- capture: !0
62
- }), i(document, "touchmove", o, {
63
- passive: !1,
64
- capture: !0
65
- }), i(document, "touchend", u, {
66
- passive: !1,
67
- capture: !0
68
- }), i(document, "focus", a, !0));
69
- return () => {
70
- t == null || t(), d == null || d(), E();
71
- };
14
+ function l(e, t) {
15
+ if (t === "UTC") return 0;
16
+ if (e > 0 && t === h()) return new Date(e).getTimezoneOffset() * -6e4;
17
+ let { year: n, month: r, day: o, hour: a, minute: c, second: f } = p(e, t);
18
+ return b(n, r, o, a, c, f, 0) - Math.floor(e / 1e3) * 1e3;
72
19
  }
73
- function l(e, t, n) {
74
- let o = e.style[t];
75
- return e.style[t] = n, () => {
76
- e.style[t] = o;
20
+ const s = /* @__PURE__ */ new Map();
21
+ function p(e, t) {
22
+ let n = s.get(t);
23
+ n || (n = new Intl.DateTimeFormat("en-US", {
24
+ timeZone: t,
25
+ hour12: !1,
26
+ era: "short",
27
+ year: "numeric",
28
+ month: "numeric",
29
+ day: "numeric",
30
+ hour: "numeric",
31
+ minute: "numeric",
32
+ second: "numeric"
33
+ }), s.set(t, n));
34
+ let r = n.formatToParts(new Date(e)), o = {};
35
+ for (let a of r) a.type !== "literal" && (o[a.type] = a.value);
36
+ return {
37
+ // Firefox returns B instead of BC... https://bugzilla.mozilla.org/show_bug.cgi?id=1752253
38
+ year: o.era === "BC" || o.era === "B" ? -o.year + 1 : +o.year,
39
+ month: +o.month,
40
+ day: +o.day,
41
+ hour: o.hour === "24" ? 0 : +o.hour,
42
+ minute: +o.minute,
43
+ second: +o.second
77
44
  };
78
45
  }
79
- function i(e, t, n, o) {
80
- return e.addEventListener(t, n, o), () => {
81
- e.removeEventListener(t, n, o);
82
- };
46
+ const m = 864e5;
47
+ function g(e, t, n, r) {
48
+ return (n === r ? [
49
+ n
50
+ ] : [
51
+ n,
52
+ r
53
+ ]).filter((a) => C(e, t, a));
83
54
  }
84
- function v(e) {
85
- let t = document.scrollingElement || document.documentElement, n = e;
86
- for (; n && n !== t; ) {
87
- let o = w(n);
88
- if (o !== document.documentElement && o !== document.body && o !== n) {
89
- let u = o.getBoundingClientRect().top, a = n.getBoundingClientRect().top;
90
- a > u + n.clientHeight && (o.scrollTop += a - u);
91
- }
92
- n = o.parentElement;
55
+ function C(e, t, n) {
56
+ let r = p(n, t);
57
+ return e.year === r.year && e.month === r.month && e.day === r.day && e.hour === r.hour && e.minute === r.minute && e.second === r.second;
58
+ }
59
+ function v(e, t, n = "compatible") {
60
+ let r = M(e);
61
+ if (t === "UTC") return i(r);
62
+ if (t === h() && n === "compatible") {
63
+ r = y(r, new $());
64
+ let u = /* @__PURE__ */ new Date(), T = d(r.era, r.year);
65
+ return u.setFullYear(T, r.month - 1, r.day), u.setHours(r.hour, r.minute, r.second, r.millisecond), u.getTime();
66
+ }
67
+ let o = i(r), a = l(o - m, t), c = l(o + m, t), f = g(r, t, o - a, o - c);
68
+ if (f.length === 1) return f[0];
69
+ if (f.length > 1) switch (n) {
70
+ case "compatible":
71
+ case "earlier":
72
+ return f[0];
73
+ case "later":
74
+ return f[f.length - 1];
75
+ case "reject":
76
+ throw new RangeError("Multiple possible absolute times found");
93
77
  }
78
+ switch (n) {
79
+ case "earlier":
80
+ return Math.min(o - a, o - c);
81
+ case "compatible":
82
+ case "later":
83
+ return Math.max(o - a, o - c);
84
+ case "reject":
85
+ throw new RangeError("No such absolute time found");
86
+ }
87
+ }
88
+ function P(e, t, n = "compatible") {
89
+ return new Date(v(e, t, n));
90
+ }
91
+ function M(e, t) {
92
+ let n = 0, r = 0, o = 0, a = 0;
93
+ if ("timeZone" in e) ({ hour: n, minute: r, second: o, millisecond: a } = e);
94
+ else if ("hour" in e && !t) return e;
95
+ return t && ({ hour: n, minute: r, second: o, millisecond: a } = t), new w(e.calendar, e.era, e.year, e.month, e.day, n, r, o, a);
94
96
  }
95
- function x(e) {
96
- return e instanceof HTMLInputElement && !T.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
97
+ function y(e, t) {
98
+ if (D(e.calendar, t)) return e;
99
+ let n = t.fromJulianDay(e.calendar.toJulianDay(e)), r = e.copy();
100
+ return r.calendar = t, r.era = n.era, r.year = n.year, r.month = n.month, r.day = n.day, x(r), r;
97
101
  }
98
102
  export {
99
- C as usePreventScroll
103
+ i as epochFromDate,
104
+ l as getTimeZoneOffset,
105
+ v as toAbsolute,
106
+ y as toCalendar,
107
+ M as toCalendarDateTime,
108
+ P as toDate
100
109
  };
package/index187.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index235.js"),r=require("./index236.js"),t=require("./index237.js"),s=require("./index238.js"),u=require("./index239.js"),n=require("./index240.js"),i=require("./index241.js"),o=require("./index242.js"),c=require("./index243.js"),q=require("./index244.js"),R=require("./index245.js"),l=require("./index246.js"),E=require("./index247.js"),S=require("./index248.js"),h=require("./index249.js"),L=require("./index250.js"),T=require("./index251.js"),a=require("./index252.js"),I=require("./index253.js"),P=require("./index254.js"),U=require("./index255.js"),d=require("./index256.js"),f=require("./index257.js"),p=require("./index258.js"),k=require("./index259.js"),K=require("./index260.js"),N=require("./index261.js"),b=require("./index262.js"),v=require("./index263.js"),z=require("./index264.js"),A=require("./index265.js"),B=require("./index266.js"),C=require("./index267.js"),D=require("./index268.js");exports.default={};exports.default={"ar-AE":e,"bg-BG":r,"cs-CZ":t,"da-DK":s,"de-DE":u,"el-GR":n,"en-US":i,"es-ES":o,"et-EE":c,"fi-FI":q,"fr-FR":R,"he-IL":l,"hr-HR":E,"hu-HU":S,"it-IT":h,"ja-JP":L,"ko-KR":T,"lt-LT":a,"lv-LV":I,"nb-NO":P,"nl-NL":U,"pl-PL":d,"pt-BR":f,"pt-PT":p,"ro-RO":k,"ru-RU":K,"sk-SK":N,"sl-SI":b,"sr-SP":v,"sv-SE":z,"tr-TR":A,"uk-UA":B,"zh-CN":C,"zh-TW":D};module.exports=exports.default;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index235.js");function _(e,t,i){r._(e,t),t.set(e,i)}exports._=_;
package/index187.mjs CHANGED
@@ -1,74 +1,7 @@
1
- import r from "./index235.mjs";
2
- import o from "./index236.mjs";
3
- import f from "./index237.mjs";
4
- import t from "./index238.mjs";
5
- import p from "./index239.mjs";
6
- import $ from "./index240.mjs";
7
- import e from "./index241.mjs";
8
- import m from "./index242.mjs";
9
- import s from "./index243.mjs";
10
- import d from "./index244.mjs";
11
- import c from "./index245.mjs";
12
- import i from "./index246.mjs";
13
- import x from "./index247.mjs";
14
- import a from "./index248.mjs";
15
- import b from "./index249.mjs";
16
- import R from "./index250.mjs";
17
- import l from "./index251.mjs";
18
- import E from "./index252.mjs";
19
- import S from "./index253.mjs";
20
- import h from "./index254.mjs";
21
- import L from "./index255.mjs";
22
- import T from "./index256.mjs";
23
- import u from "./index257.mjs";
24
- import I from "./index258.mjs";
25
- import P from "./index259.mjs";
26
- import U from "./index260.mjs";
27
- import k from "./index261.mjs";
28
- import n from "./index262.mjs";
29
- import v from "./index263.mjs";
30
- import K from "./index264.mjs";
31
- import N from "./index265.mjs";
32
- import z from "./index266.mjs";
33
- import A from "./index267.mjs";
34
- import B from "./index268.mjs";
35
- var C = {};
36
- C = {
37
- "ar-AE": r,
38
- "bg-BG": o,
39
- "cs-CZ": f,
40
- "da-DK": t,
41
- "de-DE": p,
42
- "el-GR": $,
43
- "en-US": e,
44
- "es-ES": m,
45
- "et-EE": s,
46
- "fi-FI": d,
47
- "fr-FR": c,
48
- "he-IL": i,
49
- "hr-HR": x,
50
- "hu-HU": a,
51
- "it-IT": b,
52
- "ja-JP": R,
53
- "ko-KR": l,
54
- "lt-LT": E,
55
- "lv-LV": S,
56
- "nb-NO": h,
57
- "nl-NL": L,
58
- "pl-PL": T,
59
- "pt-BR": u,
60
- "pt-PT": I,
61
- "ro-RO": P,
62
- "ru-RU": U,
63
- "sk-SK": k,
64
- "sl-SI": n,
65
- "sr-SP": v,
66
- "sv-SE": K,
67
- "tr-TR": N,
68
- "uk-UA": z,
69
- "zh-CN": A,
70
- "zh-TW": B
71
- };
1
+ import { _ as t } from "./index235.mjs";
2
+ function a(_, e, i) {
3
+ t(_, e), e.set(_, i);
4
+ }
72
5
  export {
73
- C as default
6
+ a as _
74
7
  };
package/index188.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let s=new WeakMap,i=[];function p(d,n=document.body){let o=new Set(d),a=new Set,u=t=>{for(let l of t.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))o.add(l);let r=l=>{if(o.has(l)||l.parentElement&&a.has(l.parentElement)&&l.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of o)if(l.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},e=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r}),v=r(t);if(v===NodeFilter.FILTER_ACCEPT&&b(t),v!==NodeFilter.FILTER_REJECT){let l=e.nextNode();for(;l!=null;)b(l),l=e.nextNode()}},b=t=>{var r;let e=(r=s.get(t))!==null&&r!==void 0?r:0;t.getAttribute("aria-hidden")==="true"&&e===0||(e===0&&t.setAttribute("aria-hidden","true"),a.add(t),s.set(t,e+1))};i.length&&i[i.length-1].disconnect(),u(n);let c=new MutationObserver(t=>{for(let r of t)if(!(r.type!=="childList"||r.addedNodes.length===0)&&![...o,...a].some(e=>e.contains(r.target))){for(let e of r.removedNodes)e instanceof Element&&(o.delete(e),a.delete(e));for(let e of r.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&(e.dataset.liveAnnouncer==="true"||e.dataset.reactAriaTopLayer==="true")?o.add(e):e instanceof Element&&u(e)}});c.observe(n,{childList:!0,subtree:!0});let f={visibleNodes:o,hiddenNodes:a,observe(){c.observe(n,{childList:!0,subtree:!0})},disconnect(){c.disconnect()}};return i.push(f),()=>{c.disconnect();for(let t of a){let r=s.get(t);r!=null&&(r===1?(t.removeAttribute("aria-hidden"),s.delete(t)):s.set(t,r-1))}f===i[i.length-1]?(i.pop(),i.length&&i[i.length-1].observe()):i.splice(i.indexOf(f),1)}}function E(d){let n=i[i.length-1];if(n&&!n.visibleNodes.has(d))return n.visibleNodes.add(d),()=>{n.visibleNodes.delete(d)}}exports.ariaHideOutside=p;exports.keepVisible=E;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function o(e,t){return e-t*Math.floor(e/t)}exports.mod=o;
package/index188.mjs CHANGED
@@ -1,71 +1,6 @@
1
- let s = /* @__PURE__ */ new WeakMap(), i = [];
2
- function v(o, l = document.body) {
3
- let a = new Set(o), d = /* @__PURE__ */ new Set(), u = (t) => {
4
- for (let n of t.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) a.add(n);
5
- let r = (n) => {
6
- if (a.has(n) || n.parentElement && d.has(n.parentElement) && n.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
7
- for (let p of a)
8
- if (n.contains(p)) return NodeFilter.FILTER_SKIP;
9
- return NodeFilter.FILTER_ACCEPT;
10
- }, e = document.createTreeWalker(t, NodeFilter.SHOW_ELEMENT, {
11
- acceptNode: r
12
- }), h = r(t);
13
- if (h === NodeFilter.FILTER_ACCEPT && b(t), h !== NodeFilter.FILTER_REJECT) {
14
- let n = e.nextNode();
15
- for (; n != null; )
16
- b(n), n = e.nextNode();
17
- }
18
- }, b = (t) => {
19
- var r;
20
- let e = (r = s.get(t)) !== null && r !== void 0 ? r : 0;
21
- t.getAttribute("aria-hidden") === "true" && e === 0 || (e === 0 && t.setAttribute("aria-hidden", "true"), d.add(t), s.set(t, e + 1));
22
- };
23
- i.length && i[i.length - 1].disconnect(), u(l);
24
- let c = new MutationObserver((t) => {
25
- for (let r of t)
26
- if (!(r.type !== "childList" || r.addedNodes.length === 0) && ![
27
- ...a,
28
- ...d
29
- ].some((e) => e.contains(r.target))) {
30
- for (let e of r.removedNodes) e instanceof Element && (a.delete(e), d.delete(e));
31
- for (let e of r.addedNodes)
32
- (e instanceof HTMLElement || e instanceof SVGElement) && (e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer === "true") ? a.add(e) : e instanceof Element && u(e);
33
- }
34
- });
35
- c.observe(l, {
36
- childList: !0,
37
- subtree: !0
38
- });
39
- let f = {
40
- visibleNodes: a,
41
- hiddenNodes: d,
42
- observe() {
43
- c.observe(l, {
44
- childList: !0,
45
- subtree: !0
46
- });
47
- },
48
- disconnect() {
49
- c.disconnect();
50
- }
51
- };
52
- return i.push(f), () => {
53
- c.disconnect();
54
- for (let t of d) {
55
- let r = s.get(t);
56
- r != null && (r === 1 ? (t.removeAttribute("aria-hidden"), s.delete(t)) : s.set(t, r - 1));
57
- }
58
- f === i[i.length - 1] ? (i.pop(), i.length && i[i.length - 1].observe()) : i.splice(i.indexOf(f), 1);
59
- };
60
- }
61
- function E(o) {
62
- let l = i[i.length - 1];
63
- if (l && !l.visibleNodes.has(o))
64
- return l.visibleNodes.add(o), () => {
65
- l.visibleNodes.delete(o);
66
- };
1
+ function d(f, a) {
2
+ return f - a * Math.floor(f / a);
67
3
  }
68
4
  export {
69
- v as ariaHideOutside,
70
- E as keepVisible
5
+ d as mod
71
6
  };
package/index189.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),o=e.createContext({});function r(){var t;return(t=e.useContext(o))!==null&&t!==void 0?t:{}}exports.PortalContext=o;exports.useUNSAFE_PortalContext=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index181.js"),D=require("./index185.js"),u=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],c=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],f=[1867,1911,1925,1988,2018],i=["meiji","taisho","showa","heisei","reiwa"];function h(e){const r=u.findIndex(([n,a,t])=>e.year<n||e.year===n&&e.month<a||e.year===n&&e.month===a&&e.day<t);return r===-1?u.length-1:r===0?0:r-1}function l(e){let r=f[i.indexOf(e.era)];if(!r)throw new Error("Unknown era: "+e.era);return new y.CalendarDate(e.year+r,e.month,e.day)}class M extends D.GregorianCalendar{fromJulianDay(r){let n=super.fromJulianDay(r),a=h(n);return new y.CalendarDate(this,i[a],n.year-f[a],n.month,n.day)}toJulianDay(r){return super.toJulianDay(l(r))}balanceDate(r){let n=l(r),a=h(n);i[a]!==r.era&&(r.era=i[a],r.year=n.year-f[a]),this.constrainDate(r)}constrainDate(r){let n=i.indexOf(r.era),a=c[n];if(a!=null){let[t,o,$]=a,s=t-f[n];r.year=Math.max(1,Math.min(s,r.year)),r.year===s&&(r.month=Math.min(o,r.month),r.month===o&&(r.day=Math.min($,r.day)))}if(r.year===1&&n>=0){let[,t,o]=u[n];r.month=Math.max(t,r.month),r.month===t&&(r.day=Math.max(o,r.day))}}getEras(){return i}getYearsInEra(r){let n=i.indexOf(r.era),a=u[n],t=u[n+1];if(t==null)return 9999-a[0]+1;let o=t[0]-a[0];return(r.month<t[1]||r.month===t[1]&&r.day<t[2])&&o++,o}getDaysInMonth(r){return super.getDaysInMonth(l(r))}getMinimumMonthInYear(r){let n=m(r);return n?n[1]:1}getMinimumDayInMonth(r){let n=m(r);return n&&r.month===n[1]?n[2]:1}constructor(...r){super(...r),this.identifier="japanese"}}function m(e){if(e.year===1){let r=i.indexOf(e.era);return u[r]}}exports.JapaneseCalendar=M;