@okam/stack-ui 1.32.3 → 1.32.4

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 (359) hide show
  1. package/components/fields/TextInputField/index.d.ts +1 -1
  2. package/components/fields/TextInputField/interface.d.ts +1 -2
  3. package/index110.js +1 -1
  4. package/index110.mjs +5 -5
  5. package/index111.js +1 -1
  6. package/index111.mjs +2 -2
  7. package/index112.js +1 -1
  8. package/index112.mjs +1 -1
  9. package/index113.js +1 -1
  10. package/index113.mjs +2 -2
  11. package/index115.js +1 -1
  12. package/index115.mjs +4 -4
  13. package/index116.js +1 -1
  14. package/index116.mjs +2 -2
  15. package/index118.js +1 -1
  16. package/index118.mjs +3 -3
  17. package/index119.js +1 -1
  18. package/index119.mjs +3 -3
  19. package/index120.js +1 -1
  20. package/index120.mjs +4 -4
  21. package/index121.js +1 -1
  22. package/index121.mjs +2 -2
  23. package/index122.js +1 -1
  24. package/index122.mjs +2 -2
  25. package/index123.js +1 -1
  26. package/index123.mjs +8 -8
  27. package/index124.js +1 -1
  28. package/index124.mjs +1 -1
  29. package/index125.js +1 -1
  30. package/index125.mjs +3 -3
  31. package/index126.js +1 -1
  32. package/index126.mjs +3 -3
  33. package/index130.js +1 -1
  34. package/index130.mjs +2 -2
  35. package/index133.js +1 -1
  36. package/index133.mjs +1 -1
  37. package/index139.js +1 -1
  38. package/index139.mjs +2 -2
  39. package/index140.js +1 -1
  40. package/index140.mjs +23 -23
  41. package/index141.js +1 -1
  42. package/index141.mjs +3 -3
  43. package/index144.js +1 -1
  44. package/index144.mjs +23 -21
  45. package/index145.js +1 -1
  46. package/index145.mjs +113 -38
  47. package/index146.js +1 -1
  48. package/index146.mjs +22 -25
  49. package/index147.js +1 -1
  50. package/index147.mjs +35 -251
  51. package/index148.js +1 -1
  52. package/index148.mjs +25 -106
  53. package/index149.js +1 -1
  54. package/index149.mjs +242 -320
  55. package/index150.js +1 -1
  56. package/index150.mjs +105 -23
  57. package/index151.js +1 -1
  58. package/index151.mjs +323 -104
  59. package/index152.js +1 -1
  60. package/index152.mjs +20 -106
  61. package/index153.js +1 -1
  62. package/index153.mjs +107 -83
  63. package/index154.js +1 -1
  64. package/index154.mjs +83 -26
  65. package/index155.js +1 -1
  66. package/index155.mjs +25 -20
  67. package/index156.js +1 -1
  68. package/index156.mjs +123 -17
  69. package/index157.js +1 -1
  70. package/index157.mjs +24 -122
  71. package/index158.js +1 -1
  72. package/index158.mjs +17 -71
  73. package/index159.js +1 -1
  74. package/index159.mjs +62 -338
  75. package/index160.js +1 -1
  76. package/index160.mjs +346 -42
  77. package/index161.js +1 -1
  78. package/index161.mjs +43 -29
  79. package/index162.js +1 -1
  80. package/index162.mjs +28 -24
  81. package/index164.js +1 -1
  82. package/index164.mjs +2 -2
  83. package/index167.js +1 -1
  84. package/index167.mjs +2 -2
  85. package/index169.js +1 -1
  86. package/index169.mjs +4 -4
  87. package/index170.js +1 -1
  88. package/index170.mjs +2 -2
  89. package/index173.js +1 -1
  90. package/index173.mjs +1 -1
  91. package/index175.js +1 -1
  92. package/index175.mjs +1 -1
  93. package/index176.js +1 -1
  94. package/index176.mjs +1 -1
  95. package/index177.js +1 -1
  96. package/index177.mjs +1 -1
  97. package/index178.js +1 -1
  98. package/index178.mjs +4 -4
  99. package/index179.js +1 -1
  100. package/index179.mjs +1 -1
  101. package/index180.js +1 -1
  102. package/index180.mjs +2 -2
  103. package/index182.js +1 -1
  104. package/index182.mjs +1 -1
  105. package/index184.js +1 -1
  106. package/index184.mjs +1 -1
  107. package/index185.js +1 -1
  108. package/index185.mjs +197 -205
  109. package/index186.js +1 -1
  110. package/index186.mjs +64 -24
  111. package/index187.js +1 -1
  112. package/index187.mjs +143 -4
  113. package/index188.js +1 -1
  114. package/index188.mjs +124 -3
  115. package/index189.js +1 -1
  116. package/index189.mjs +215 -116
  117. package/index190.js +1 -1
  118. package/index190.mjs +184 -23
  119. package/index191.js +1 -1
  120. package/index191.mjs +69 -51
  121. package/index192.js +1 -1
  122. package/index192.mjs +278 -43
  123. package/index193.js +1 -1
  124. package/index193.mjs +92 -31
  125. package/index194.js +1 -1
  126. package/index194.mjs +184 -109
  127. package/index195.js +1 -1
  128. package/index195.mjs +84 -77
  129. package/index196.js +1 -1
  130. package/index196.mjs +58 -101
  131. package/index197.js +1 -1
  132. package/index197.mjs +127 -98
  133. package/index198.js +1 -1
  134. package/index198.mjs +114 -70
  135. package/index199.js +1 -1
  136. package/index199.mjs +118 -91
  137. package/index200.js +1 -1
  138. package/index200.mjs +69 -152
  139. package/index201.js +1 -1
  140. package/index201.mjs +111 -72
  141. package/index202.js +1 -1
  142. package/index202.mjs +51 -41
  143. package/index203.js +1 -1
  144. package/index203.mjs +93 -5
  145. package/index204.js +1 -1
  146. package/index204.mjs +69 -60
  147. package/index205.js +1 -1
  148. package/index205.mjs +55 -58
  149. package/index206.js +1 -1
  150. package/index206.mjs +92 -196
  151. package/index207.js +5 -1
  152. package/index207.mjs +75 -59
  153. package/index208.js +1 -1
  154. package/index208.mjs +2008 -126
  155. package/index209.js +1 -1
  156. package/index209.mjs +56 -121
  157. package/index210.js +1 -1
  158. package/index210.mjs +185 -221
  159. package/index211.js +1 -1
  160. package/index211.mjs +206 -185
  161. package/index212.js +1 -1
  162. package/index212.mjs +24 -69
  163. package/index213.js +1 -1
  164. package/index213.mjs +4 -279
  165. package/index214.js +1 -1
  166. package/index214.mjs +3 -98
  167. package/index215.js +1 -1
  168. package/index215.mjs +116 -179
  169. package/index216.js +1 -1
  170. package/index216.mjs +29 -84
  171. package/index217.js +1 -1
  172. package/index217.mjs +51 -58
  173. package/index218.js +1 -1
  174. package/index218.mjs +43 -125
  175. package/index219.js +1 -1
  176. package/index219.mjs +33 -112
  177. package/index22.js +1 -1
  178. package/index22.mjs +109 -102
  179. package/index220.js +1 -1
  180. package/index220.mjs +110 -119
  181. package/index221.js +1 -1
  182. package/index221.mjs +77 -72
  183. package/index222.js +1 -1
  184. package/index222.mjs +96 -105
  185. package/index223.js +1 -1
  186. package/index223.mjs +98 -53
  187. package/index224.js +1 -1
  188. package/index224.mjs +68 -89
  189. package/index225.js +1 -1
  190. package/index225.mjs +93 -68
  191. package/index226.js +1 -1
  192. package/index226.mjs +151 -52
  193. package/index227.js +1 -1
  194. package/index227.mjs +72 -100
  195. package/index228.js +1 -5
  196. package/index228.mjs +40 -78
  197. package/index229.js +1 -1
  198. package/index229.mjs +5 -2025
  199. package/index230.js +1 -1
  200. package/index230.mjs +61 -59
  201. package/index231.js +1 -1
  202. package/index231.mjs +58 -187
  203. package/index269.js +1 -1
  204. package/index269.mjs +130 -4
  205. package/index270.js +1 -1
  206. package/index270.mjs +184 -42
  207. package/index271.js +1 -1
  208. package/index271.mjs +9 -9
  209. package/index272.js +1 -1
  210. package/index272.mjs +4 -16
  211. package/index273.js +1 -1
  212. package/index273.mjs +37 -16
  213. package/index274.js +1 -1
  214. package/index274.mjs +6 -16
  215. package/index275.js +1 -1
  216. package/index275.mjs +30 -16
  217. package/index276.js +1 -1
  218. package/index276.mjs +7 -16
  219. package/index277.js +1 -1
  220. package/index277.mjs +141 -16
  221. package/index278.js +1 -1
  222. package/index278.mjs +198 -16
  223. package/index279.js +1 -1
  224. package/index279.mjs +23 -16
  225. package/index280.js +1 -1
  226. package/index280.mjs +29 -16
  227. package/index281.js +1 -1
  228. package/index281.mjs +47 -16
  229. package/index282.js +1 -1
  230. package/index282.mjs +49 -16
  231. package/index283.js +1 -1
  232. package/index283.mjs +101 -16
  233. package/index284.js +1 -1
  234. package/index284.mjs +6 -16
  235. package/index285.js +1 -1
  236. package/index285.mjs +71 -15
  237. package/index286.js +1 -1
  238. package/index286.mjs +59 -16
  239. package/index287.js +1 -1
  240. package/index287.mjs +8 -16
  241. package/index288.js +1 -1
  242. package/index288.mjs +12 -16
  243. package/index289.js +1 -1
  244. package/index289.mjs +48 -16
  245. package/index290.js +1 -1
  246. package/index290.mjs +25 -16
  247. package/index291.js +1 -1
  248. package/index291.mjs +6 -16
  249. package/index292.js +1 -1
  250. package/index292.mjs +15 -16
  251. package/index293.js +1 -1
  252. package/index293.mjs +25 -16
  253. package/index294.js +1 -1
  254. package/index294.mjs +29 -16
  255. package/index295.js +1 -1
  256. package/index295.mjs +32 -16
  257. package/index296.js +1 -1
  258. package/index296.mjs +10 -16
  259. package/index297.js +1 -1
  260. package/index297.mjs +10 -16
  261. package/index298.js +1 -1
  262. package/index298.mjs +6 -16
  263. package/index299.js +1 -1
  264. package/index299.mjs +8 -16
  265. package/index300.js +1 -1
  266. package/index300.mjs +14 -16
  267. package/index301.js +1 -1
  268. package/index301.mjs +9 -16
  269. package/index302.js +1 -1
  270. package/index302.mjs +5 -16
  271. package/index303.js +1 -1
  272. package/index303.mjs +49 -16
  273. package/index304.js +1 -1
  274. package/index304.mjs +12 -12
  275. package/index305.js +1 -1
  276. package/index305.mjs +12 -12
  277. package/index306.js +1 -1
  278. package/index306.mjs +15 -130
  279. package/index307.js +1 -1
  280. package/index307.mjs +16 -191
  281. package/index308.js +1 -1
  282. package/index308.mjs +16 -10
  283. package/index309.js +1 -1
  284. package/index309.mjs +16 -4
  285. package/index310.js +1 -1
  286. package/index310.mjs +16 -37
  287. package/index311.js +1 -1
  288. package/index311.mjs +16 -6
  289. package/index312.js +1 -1
  290. package/index312.mjs +16 -30
  291. package/index313.js +1 -1
  292. package/index313.mjs +16 -7
  293. package/index314.js +1 -1
  294. package/index314.mjs +16 -25
  295. package/index315.js +1 -1
  296. package/index315.mjs +16 -48
  297. package/index316.js +1 -1
  298. package/index316.mjs +16 -6
  299. package/index317.js +1 -1
  300. package/index317.mjs +16 -6
  301. package/index318.js +1 -1
  302. package/index318.mjs +16 -15
  303. package/index319.js +1 -1
  304. package/index319.mjs +16 -25
  305. package/index320.js +1 -1
  306. package/index320.mjs +16 -29
  307. package/index321.js +1 -1
  308. package/index321.mjs +16 -32
  309. package/index322.js +1 -1
  310. package/index322.mjs +16 -29
  311. package/index323.js +1 -1
  312. package/index323.mjs +16 -10
  313. package/index324.js +1 -1
  314. package/index324.mjs +16 -6
  315. package/index325.js +1 -1
  316. package/index325.mjs +16 -8
  317. package/index326.js +1 -1
  318. package/index326.mjs +16 -14
  319. package/index327.js +1 -1
  320. package/index327.mjs +16 -9
  321. package/index328.js +1 -1
  322. package/index328.mjs +16 -141
  323. package/index329.js +1 -1
  324. package/index329.mjs +16 -198
  325. package/index330.js +1 -1
  326. package/index330.mjs +16 -23
  327. package/index331.js +1 -1
  328. package/index331.mjs +16 -47
  329. package/index332.js +1 -1
  330. package/index332.mjs +16 -49
  331. package/index333.js +1 -1
  332. package/index333.mjs +16 -101
  333. package/index334.js +1 -1
  334. package/index334.mjs +15 -71
  335. package/index335.js +1 -1
  336. package/index335.mjs +16 -59
  337. package/index336.js +1 -1
  338. package/index336.mjs +16 -8
  339. package/index337.js +1 -1
  340. package/index337.mjs +16 -12
  341. package/index338.js +1 -1
  342. package/index338.mjs +4 -7
  343. package/index339.js +1 -1
  344. package/index339.mjs +6 -68
  345. package/index340.js +1 -1
  346. package/index340.mjs +65 -27
  347. package/index341.js +1 -1
  348. package/index341.mjs +30 -6
  349. package/index342.js +1 -1
  350. package/index342.mjs +6 -6
  351. package/index343.js +1 -1
  352. package/index343.mjs +6 -20
  353. package/index344.js +1 -1
  354. package/index344.mjs +20 -3
  355. package/index345.js +1 -1
  356. package/index345.mjs +71 -117
  357. package/index346.js +1 -1
  358. package/index346.mjs +117 -71
  359. package/package.json +1 -1
package/index339.mjs CHANGED
@@ -1,71 +1,9 @@
1
- import { useRef as o, useCallback as i } from "react";
2
- import { useLayoutEffect as l } from "./index172.mjs";
3
- import { useEffectEvent as d } from "./index326.mjs";
4
- class f {
5
- isDefaultPrevented() {
6
- return this.nativeEvent.defaultPrevented;
1
+ import e from "react";
2
+ const t = e.createContext({
3
+ register: () => {
7
4
  }
8
- preventDefault() {
9
- this.defaultPrevented = !0, this.nativeEvent.preventDefault();
10
- }
11
- stopPropagation() {
12
- this.nativeEvent.stopPropagation(), this.isPropagationStopped = () => !0;
13
- }
14
- isPropagationStopped() {
15
- return !1;
16
- }
17
- persist() {
18
- }
19
- constructor(t, e) {
20
- this.nativeEvent = e, this.target = e.target, this.currentTarget = e.currentTarget, this.relatedTarget = e.relatedTarget, this.bubbles = e.bubbles, this.cancelable = e.cancelable, this.defaultPrevented = e.defaultPrevented, this.eventPhase = e.eventPhase, this.isTrusted = e.isTrusted, this.timeStamp = e.timeStamp, this.type = t;
21
- }
22
- }
23
- function h(n) {
24
- let t = o({
25
- isFocused: !1,
26
- observer: null
27
- });
28
- l(() => {
29
- const r = t.current;
30
- return () => {
31
- r.observer && (r.observer.disconnect(), r.observer = null);
32
- };
33
- }, []);
34
- let e = d((r) => {
35
- n == null || n(r);
36
- });
37
- return i((r) => {
38
- if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
39
- t.current.isFocused = !0;
40
- let s = r.target, u = (a) => {
41
- t.current.isFocused = !1, s.disabled && e(new f("blur", a)), t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
42
- };
43
- s.addEventListener("focusout", u, {
44
- once: !0
45
- }), t.current.observer = new MutationObserver(() => {
46
- if (t.current.isFocused && s.disabled) {
47
- var a;
48
- (a = t.current.observer) === null || a === void 0 || a.disconnect();
49
- let c = s === document.activeElement ? null : document.activeElement;
50
- s.dispatchEvent(new FocusEvent("blur", {
51
- relatedTarget: c
52
- })), s.dispatchEvent(new FocusEvent("focusout", {
53
- bubbles: !0,
54
- relatedTarget: c
55
- }));
56
- }
57
- }), t.current.observer.observe(s, {
58
- attributes: !0,
59
- attributeFilter: [
60
- "disabled"
61
- ]
62
- });
63
- }
64
- }, [
65
- e
66
- ]);
67
- }
5
+ });
6
+ t.displayName = "PressResponderContext";
68
7
  export {
69
- f as SyntheticFocusEvent,
70
- h as useSyntheticBlurEvent
8
+ t as PressResponderContext
71
9
  };
package/index340.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index317.js"),c=require("./index320.js"),o=require("./index174.js");let n="default",s="",l=new WeakMap;function r(e){if(o.isIOS()){if(n==="default"){const t=i.getOwnerDocument(e);s=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}n="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(l.set(e,e.style.userSelect),e.style.userSelect="none")}function u(e){if(o.isIOS()){if(n!=="disabled")return;n="restoring",setTimeout(()=>{c.runAfterTransition(()=>{if(n==="restoring"){const t=i.getOwnerDocument(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=s||""),s="",n="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&l.has(e)){let t=l.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),l.delete(e)}}exports.disableTextSelection=r;exports.restoreTextSelection=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),l=require("./index172.js"),d=require("./index300.js");class i{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,e){this.nativeEvent=e,this.target=e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget,this.bubbles=e.bubbles,this.cancelable=e.cancelable,this.defaultPrevented=e.defaultPrevented,this.eventPhase=e.eventPhase,this.isTrusted=e.isTrusted,this.timeStamp=e.timeStamp,this.type=t}}function b(u){let t=c.useRef({isFocused:!1,observer:null});l.useLayoutEffect(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let e=d.useEffectEvent(r=>{u==null||u(r)});return c.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let s=r.target,o=n=>{t.current.isFocused=!1,s.disabled&&e(new i("blur",n)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};s.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&s.disabled){var n;(n=t.current.observer)===null||n===void 0||n.disconnect();let a=s===document.activeElement?null:document.activeElement;s.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),s.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(s,{attributes:!0,attributeFilter:["disabled"]})}},[e])}exports.SyntheticFocusEvent=i;exports.useSyntheticBlurEvent=b;
package/index340.mjs CHANGED
@@ -1,33 +1,71 @@
1
- import { getOwnerDocument as c } from "./index317.mjs";
2
- import { runAfterTransition as i } from "./index320.mjs";
3
- import { isIOS as o } from "./index174.mjs";
4
- let n = "default", l = "", s = /* @__PURE__ */ new WeakMap();
5
- function r(e) {
6
- if (o()) {
7
- if (n === "default") {
8
- const t = c(e);
9
- l = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
10
- }
11
- n = "disabled";
12
- } else (e instanceof HTMLElement || e instanceof SVGElement) && (s.set(e, e.style.userSelect), e.style.userSelect = "none");
1
+ import { useRef as o, useCallback as i } from "react";
2
+ import { useLayoutEffect as l } from "./index172.mjs";
3
+ import { useEffectEvent as d } from "./index300.mjs";
4
+ class f {
5
+ isDefaultPrevented() {
6
+ return this.nativeEvent.defaultPrevented;
7
+ }
8
+ preventDefault() {
9
+ this.defaultPrevented = !0, this.nativeEvent.preventDefault();
10
+ }
11
+ stopPropagation() {
12
+ this.nativeEvent.stopPropagation(), this.isPropagationStopped = () => !0;
13
+ }
14
+ isPropagationStopped() {
15
+ return !1;
16
+ }
17
+ persist() {
18
+ }
19
+ constructor(t, e) {
20
+ this.nativeEvent = e, this.target = e.target, this.currentTarget = e.currentTarget, this.relatedTarget = e.relatedTarget, this.bubbles = e.bubbles, this.cancelable = e.cancelable, this.defaultPrevented = e.defaultPrevented, this.eventPhase = e.eventPhase, this.isTrusted = e.isTrusted, this.timeStamp = e.timeStamp, this.type = t;
21
+ }
13
22
  }
14
- function m(e) {
15
- if (o()) {
16
- if (n !== "disabled") return;
17
- n = "restoring", setTimeout(() => {
18
- i(() => {
19
- if (n === "restoring") {
20
- const t = c(e);
21
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = l || ""), l = "", n = "default";
23
+ function h(n) {
24
+ let t = o({
25
+ isFocused: !1,
26
+ observer: null
27
+ });
28
+ l(() => {
29
+ const r = t.current;
30
+ return () => {
31
+ r.observer && (r.observer.disconnect(), r.observer = null);
32
+ };
33
+ }, []);
34
+ let e = d((r) => {
35
+ n == null || n(r);
36
+ });
37
+ return i((r) => {
38
+ if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
39
+ t.current.isFocused = !0;
40
+ let s = r.target, u = (a) => {
41
+ t.current.isFocused = !1, s.disabled && e(new f("blur", a)), t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
42
+ };
43
+ s.addEventListener("focusout", u, {
44
+ once: !0
45
+ }), t.current.observer = new MutationObserver(() => {
46
+ if (t.current.isFocused && s.disabled) {
47
+ var a;
48
+ (a = t.current.observer) === null || a === void 0 || a.disconnect();
49
+ let c = s === document.activeElement ? null : document.activeElement;
50
+ s.dispatchEvent(new FocusEvent("blur", {
51
+ relatedTarget: c
52
+ })), s.dispatchEvent(new FocusEvent("focusout", {
53
+ bubbles: !0,
54
+ relatedTarget: c
55
+ }));
22
56
  }
57
+ }), t.current.observer.observe(s, {
58
+ attributes: !0,
59
+ attributeFilter: [
60
+ "disabled"
61
+ ]
23
62
  });
24
- }, 300);
25
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && s.has(e)) {
26
- let t = s.get(e);
27
- e.style.userSelect === "none" && (e.style.userSelect = t), e.getAttribute("style") === "" && e.removeAttribute("style"), s.delete(e);
28
- }
63
+ }
64
+ }, [
65
+ e
66
+ ]);
29
67
  }
30
68
  export {
31
- r as disableTextSelection,
32
- m as restoreTextSelection
69
+ f as SyntheticFocusEvent,
70
+ h as useSyntheticBlurEvent
33
71
  };
package/index341.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("./index416.js"),s=require("./index417.js");function c(e,t){var r=s._(e,t,"get");return _._(e,r)}exports._=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index291.js"),c=require("./index294.js"),o=require("./index174.js");let n="default",s="",l=new WeakMap;function r(e){if(o.isIOS()){if(n==="default"){const t=i.getOwnerDocument(e);s=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}n="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(l.set(e,e.style.userSelect),e.style.userSelect="none")}function u(e){if(o.isIOS()){if(n!=="disabled")return;n="restoring",setTimeout(()=>{c.runAfterTransition(()=>{if(n==="restoring"){const t=i.getOwnerDocument(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=s||""),s="",n="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&l.has(e)){let t=l.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),l.delete(e)}}exports.disableTextSelection=r;exports.restoreTextSelection=u;
package/index341.mjs CHANGED
@@ -1,9 +1,33 @@
1
- import { _ as s } from "./index416.mjs";
2
- import { _ as a } from "./index417.mjs";
3
- function p(_, r) {
4
- var t = a(_, r, "get");
5
- return s(_, t);
1
+ import { getOwnerDocument as c } from "./index291.mjs";
2
+ import { runAfterTransition as i } from "./index294.mjs";
3
+ import { isIOS as o } from "./index174.mjs";
4
+ let n = "default", l = "", s = /* @__PURE__ */ new WeakMap();
5
+ function r(e) {
6
+ if (o()) {
7
+ if (n === "default") {
8
+ const t = c(e);
9
+ l = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
10
+ }
11
+ n = "disabled";
12
+ } else (e instanceof HTMLElement || e instanceof SVGElement) && (s.set(e, e.style.userSelect), e.style.userSelect = "none");
13
+ }
14
+ function m(e) {
15
+ if (o()) {
16
+ if (n !== "disabled") return;
17
+ n = "restoring", setTimeout(() => {
18
+ i(() => {
19
+ if (n === "restoring") {
20
+ const t = c(e);
21
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = l || ""), l = "", n = "default";
22
+ }
23
+ });
24
+ }, 300);
25
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && s.has(e)) {
26
+ let t = s.get(e);
27
+ e.style.userSelect === "none" && (e.style.userSelect = t), e.getAttribute("style") === "" && e.removeAttribute("style"), s.delete(e);
28
+ }
6
29
  }
7
30
  export {
8
- p as _
31
+ r as disableTextSelection,
32
+ m as restoreTextSelection
9
33
  };
package/index342.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("./index418.js"),c=require("./index417.js");function i(t,r,e){var s=c._(t,r,"set");return _._(t,s,e),e}exports._=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("./index416.js"),s=require("./index417.js");function c(e,t){var r=s._(e,t,"get");return _._(e,r)}exports._=c;
package/index342.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { _ as a } from "./index418.mjs";
2
- import { _ as o } from "./index417.mjs";
3
- function i(s, r, _) {
4
- var t = o(s, r, "set");
5
- return a(s, t, _), _;
1
+ import { _ as s } from "./index416.mjs";
2
+ import { _ as a } from "./index417.mjs";
3
+ function p(_, r) {
4
+ var t = a(_, r, "get");
5
+ return s(_, t);
6
6
  }
7
7
  export {
8
- i as _
8
+ p as _
9
9
  };
package/index343.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index139.js"),u=require("./index171.js");function n(t){let{id:l,label:s,"aria-labelledby":e,"aria-label":b,labelElementType:o="label"}=t;l=r.useId(l);let a=r.useId(),i={};s?(e=e?`${a} ${e}`:a,i={id:a,htmlFor:o==="label"?l:void 0}):!e&&!b&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let d=u.useLabels({id:l,"aria-label":b,"aria-labelledby":e});return{labelProps:i,fieldProps:d}}exports.useLabel=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("./index418.js"),c=require("./index417.js");function i(t,r,e){var s=c._(t,r,"set");return _._(t,s,e),e}exports._=i;
package/index343.mjs CHANGED
@@ -1,23 +1,9 @@
1
- import { useId as r } from "./index139.mjs";
2
- import { useLabels as f } from "./index171.mjs";
3
- function $(o) {
4
- let { id: l, label: d, "aria-labelledby": e, "aria-label": b, labelElementType: t = "label" } = o;
5
- l = r(l);
6
- let a = r(), i = {};
7
- d ? (e = e ? `${a} ${e}` : a, i = {
8
- id: a,
9
- htmlFor: t === "label" ? l : void 0
10
- }) : !e && !b && console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");
11
- let s = f({
12
- id: l,
13
- "aria-label": b,
14
- "aria-labelledby": e
15
- });
16
- return {
17
- labelProps: i,
18
- fieldProps: s
19
- };
1
+ import { _ as a } from "./index418.mjs";
2
+ import { _ as o } from "./index417.mjs";
3
+ function i(s, r, _) {
4
+ var t = o(s, r, "set");
5
+ return a(s, t, _), _;
20
6
  }
21
7
  export {
22
- $ as useLabel
8
+ i as _
23
9
  };
package/index344.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(e,t=-1/0,a=1/0){return Math.min(Math.max(e,t),a)}exports.clamp=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index139.js"),u=require("./index171.js");function n(t){let{id:l,label:s,"aria-labelledby":e,"aria-label":b,labelElementType:o="label"}=t;l=r.useId(l);let a=r.useId(),i={};s?(e=e?`${a} ${e}`:a,i={id:a,htmlFor:o==="label"?l:void 0}):!e&&!b&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let d=u.useLabels({id:l,"aria-label":b,"aria-labelledby":e});return{labelProps:i,fieldProps:d}}exports.useLabel=n;
package/index344.mjs CHANGED
@@ -1,6 +1,23 @@
1
- function c(a, n = -1 / 0, t = 1 / 0) {
2
- return Math.min(Math.max(a, n), t);
1
+ import { useId as r } from "./index139.mjs";
2
+ import { useLabels as f } from "./index171.mjs";
3
+ function $(o) {
4
+ let { id: l, label: d, "aria-labelledby": e, "aria-label": b, labelElementType: t = "label" } = o;
5
+ l = r(l);
6
+ let a = r(), i = {};
7
+ d ? (e = e ? `${a} ${e}` : a, i = {
8
+ id: a,
9
+ htmlFor: t === "label" ? l : void 0
10
+ }) : !e && !b && console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");
11
+ let s = f({
12
+ id: l,
13
+ "aria-label": b,
14
+ "aria-labelledby": e
15
+ });
16
+ return {
17
+ labelProps: i,
18
+ fieldProps: s
19
+ };
3
20
  }
4
21
  export {
5
- c as clamp
22
+ $ as useLabel
6
23
  };
package/index345.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let u=new Map,f=!1;try{f=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let l=!1;try{l=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const c={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class p{format(t){let e="";if(!f&&this.options.signDisplay!=null?e=m(this.numberFormatter,this.options.signDisplay,t):e=this.numberFormatter.format(t),this.options.style==="unit"&&!l){var i;let{unit:a,unitDisplay:s="short",locale:n}=this.resolvedOptions();if(!a)return e;let o=(i=c[a])===null||i===void 0?void 0:i[s];e+=o[n]||o.default}return e}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,e){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,e);if(e<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(e)}`}formatRangeToParts(t,e){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,e);if(e<t)throw new RangeError("End date must be >= start date");let i=this.numberFormatter.formatToParts(t),a=this.numberFormatter.formatToParts(e);return[...i.map(s=>({...s,source:"startRange"})),{type:"literal",value:"",source:"shared"},...a.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!f&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!l&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,e={}){this.numberFormatter=d(t,e),this.options=e}}function d(r,t={}){let{numberingSystem:e}=t;if(e&&r.includes("-nu-")&&(r.includes("-u-")||(r+="-u-"),r+=`-nu-${e}`),t.style==="unit"&&!l){var i;let{unit:n,unitDisplay:o="short"}=t;if(!n)throw new Error('unit option must be provided with style: "unit"');if(!(!((i=c[n])===null||i===void 0)&&i[o]))throw new Error(`Unsupported unit ${n} with unitDisplay = ${o}`);t={...t,style:"decimal"}}let a=r+(t?Object.entries(t).sort((n,o)=>n[0]<o[0]?-1:1).join():"");if(u.has(a))return u.get(a);let s=new Intl.NumberFormat(r,t);return u.set(a,s),s}function m(r,t,e){if(t==="auto")return r.format(e);if(t==="never")return r.format(Math.abs(e));{let i=!1;if(t==="always"?i=e>0||Object.is(e,0):t==="exceptZero"&&(Object.is(e,-0)||Object.is(e,0)?e=Math.abs(e):i=e>0),i){let a=r.format(-e),s=r.format(e),n=a.replace(s,"").replace(/\u200e|\u061C/,"");return[...n].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),a.replace(s,"!!!").replace(n,"+").replace("!!!",s)}else return r.format(e)}}exports.NumberFormatter=p;exports.numberFormatSignDisplayPolyfill=m;
1
+ "use strict";const e=require("./index419.js"),r=require("./index420.js"),t=require("./index421.js"),s=require("./index422.js"),u=require("./index423.js"),n=require("./index424.js"),i=require("./index425.js"),o=require("./index426.js"),c=require("./index427.js"),q=require("./index428.js"),R=require("./index429.js"),l=require("./index430.js"),E=require("./index431.js"),S=require("./index432.js"),h=require("./index433.js"),L=require("./index434.js"),T=require("./index435.js"),a=require("./index436.js"),I=require("./index437.js"),P=require("./index438.js"),U=require("./index439.js"),d=require("./index440.js"),f=require("./index441.js"),p=require("./index442.js"),k=require("./index443.js"),K=require("./index444.js"),N=require("./index445.js"),b=require("./index446.js"),v=require("./index447.js"),z=require("./index448.js"),A=require("./index449.js"),B=require("./index450.js"),C=require("./index451.js"),D=require("./index452.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;
package/index345.mjs CHANGED
@@ -1,120 +1,74 @@
1
- let u = /* @__PURE__ */ new Map(), f = !1;
2
- try {
3
- f = new Intl.NumberFormat("de-DE", {
4
- signDisplay: "exceptZero"
5
- }).resolvedOptions().signDisplay === "exceptZero";
6
- } catch {
7
- }
8
- let l = !1;
9
- try {
10
- l = new Intl.NumberFormat("de-DE", {
11
- style: "unit",
12
- unit: "degree"
13
- }).resolvedOptions().style === "unit";
14
- } catch {
15
- }
16
- const c = {
17
- degree: {
18
- narrow: {
19
- default: "°",
20
- "ja-JP": " ",
21
- "zh-TW": "",
22
- "sl-SI": " °"
23
- }
24
- }
1
+ import r from "./index419.mjs";
2
+ import o from "./index420.mjs";
3
+ import e from "./index421.mjs";
4
+ import t from "./index422.mjs";
5
+ import f from "./index423.mjs";
6
+ import p from "./index424.mjs";
7
+ import $ from "./index425.mjs";
8
+ import m from "./index426.mjs";
9
+ import c from "./index427.mjs";
10
+ import b from "./index428.mjs";
11
+ import s from "./index429.mjs";
12
+ import a from "./index430.mjs";
13
+ import i from "./index431.mjs";
14
+ import x from "./index432.mjs";
15
+ import d from "./index433.mjs";
16
+ import R from "./index434.mjs";
17
+ import l from "./index435.mjs";
18
+ import E from "./index436.mjs";
19
+ import S from "./index437.mjs";
20
+ import h from "./index438.mjs";
21
+ import L from "./index439.mjs";
22
+ import T from "./index440.mjs";
23
+ import u from "./index441.mjs";
24
+ import I from "./index442.mjs";
25
+ import P from "./index443.mjs";
26
+ import U from "./index444.mjs";
27
+ import k from "./index445.mjs";
28
+ import n from "./index446.mjs";
29
+ import v from "./index447.mjs";
30
+ import K from "./index448.mjs";
31
+ import N from "./index449.mjs";
32
+ import z from "./index450.mjs";
33
+ import A from "./index451.mjs";
34
+ import B from "./index452.mjs";
35
+ var C = {};
36
+ C = {
37
+ "ar-AE": r,
38
+ "bg-BG": o,
39
+ "cs-CZ": e,
40
+ "da-DK": t,
41
+ "de-DE": f,
42
+ "el-GR": p,
43
+ "en-US": $,
44
+ "es-ES": m,
45
+ "et-EE": c,
46
+ "fi-FI": b,
47
+ "fr-FR": s,
48
+ "he-IL": a,
49
+ "hr-HR": i,
50
+ "hu-HU": x,
51
+ "it-IT": d,
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
25
71
  };
26
- class d {
27
- /** Formats a number value as a string, according to the locale and options provided to the constructor. */
28
- format(t) {
29
- let e = "";
30
- if (!f && this.options.signDisplay != null ? e = m(this.numberFormatter, this.options.signDisplay, t) : e = this.numberFormatter.format(t), this.options.style === "unit" && !l) {
31
- var i;
32
- let { unit: a, unitDisplay: s = "short", locale: n } = this.resolvedOptions();
33
- if (!a) return e;
34
- let o = (i = c[a]) === null || i === void 0 ? void 0 : i[s];
35
- e += o[n] || o.default;
36
- }
37
- return e;
38
- }
39
- /** Formats a number to an array of parts such as separators, digits, punctuation, and more. */
40
- formatToParts(t) {
41
- return this.numberFormatter.formatToParts(t);
42
- }
43
- /** Formats a number range as a string. */
44
- formatRange(t, e) {
45
- if (typeof this.numberFormatter.formatRange == "function") return this.numberFormatter.formatRange(t, e);
46
- if (e < t) throw new RangeError("End date must be >= start date");
47
- return `${this.format(t)} – ${this.format(e)}`;
48
- }
49
- /** Formats a number range as an array of parts. */
50
- formatRangeToParts(t, e) {
51
- if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(t, e);
52
- if (e < t) throw new RangeError("End date must be >= start date");
53
- let i = this.numberFormatter.formatToParts(t), a = this.numberFormatter.formatToParts(e);
54
- return [
55
- ...i.map((s) => ({
56
- ...s,
57
- source: "startRange"
58
- })),
59
- {
60
- type: "literal",
61
- value: " – ",
62
- source: "shared"
63
- },
64
- ...a.map((s) => ({
65
- ...s,
66
- source: "endRange"
67
- }))
68
- ];
69
- }
70
- /** Returns the resolved formatting options based on the values passed to the constructor. */
71
- resolvedOptions() {
72
- let t = this.numberFormatter.resolvedOptions();
73
- return !f && this.options.signDisplay != null && (t = {
74
- ...t,
75
- signDisplay: this.options.signDisplay
76
- }), !l && this.options.style === "unit" && (t = {
77
- ...t,
78
- style: "unit",
79
- unit: this.options.unit,
80
- unitDisplay: this.options.unitDisplay
81
- }), t;
82
- }
83
- constructor(t, e = {}) {
84
- this.numberFormatter = p(t, e), this.options = e;
85
- }
86
- }
87
- function p(r, t = {}) {
88
- let { numberingSystem: e } = t;
89
- if (e && r.includes("-nu-") && (r.includes("-u-") || (r += "-u-"), r += `-nu-${e}`), t.style === "unit" && !l) {
90
- var i;
91
- let { unit: n, unitDisplay: o = "short" } = t;
92
- if (!n) throw new Error('unit option must be provided with style: "unit"');
93
- if (!(!((i = c[n]) === null || i === void 0) && i[o])) throw new Error(`Unsupported unit ${n} with unitDisplay = ${o}`);
94
- t = {
95
- ...t,
96
- style: "decimal"
97
- };
98
- }
99
- let a = r + (t ? Object.entries(t).sort((n, o) => n[0] < o[0] ? -1 : 1).join() : "");
100
- if (u.has(a)) return u.get(a);
101
- let s = new Intl.NumberFormat(r, t);
102
- return u.set(a, s), s;
103
- }
104
- function m(r, t, e) {
105
- if (t === "auto") return r.format(e);
106
- if (t === "never") return r.format(Math.abs(e));
107
- {
108
- let i = !1;
109
- if (t === "always" ? i = e > 0 || Object.is(e, 0) : t === "exceptZero" && (Object.is(e, -0) || Object.is(e, 0) ? e = Math.abs(e) : i = e > 0), i) {
110
- let a = r.format(-e), s = r.format(e), n = a.replace(s, "").replace(/\u200e|\u061C/, "");
111
- return [
112
- ...n
113
- ].length !== 1 && console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"), a.replace(s, "!!!").replace(n, "+").replace("!!!", s);
114
- } else return r.format(e);
115
- }
116
- }
117
72
  export {
118
- d as NumberFormatter,
119
- m as numberFormatSignDisplayPolyfill
73
+ C as default
120
74
  };
package/index346.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index419.js"),r=require("./index420.js"),t=require("./index421.js"),s=require("./index422.js"),u=require("./index423.js"),n=require("./index424.js"),i=require("./index425.js"),o=require("./index426.js"),c=require("./index427.js"),q=require("./index428.js"),R=require("./index429.js"),l=require("./index430.js"),E=require("./index431.js"),S=require("./index432.js"),h=require("./index433.js"),L=require("./index434.js"),T=require("./index435.js"),a=require("./index436.js"),I=require("./index437.js"),P=require("./index438.js"),U=require("./index439.js"),d=require("./index440.js"),f=require("./index441.js"),p=require("./index442.js"),k=require("./index443.js"),K=require("./index444.js"),N=require("./index445.js"),b=require("./index446.js"),v=require("./index447.js"),z=require("./index448.js"),A=require("./index449.js"),B=require("./index450.js"),C=require("./index451.js"),D=require("./index452.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"});let u=new Map,f=!1;try{f=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let l=!1;try{l=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const c={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class p{format(t){let e="";if(!f&&this.options.signDisplay!=null?e=m(this.numberFormatter,this.options.signDisplay,t):e=this.numberFormatter.format(t),this.options.style==="unit"&&!l){var i;let{unit:a,unitDisplay:s="short",locale:n}=this.resolvedOptions();if(!a)return e;let o=(i=c[a])===null||i===void 0?void 0:i[s];e+=o[n]||o.default}return e}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,e){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,e);if(e<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(e)}`}formatRangeToParts(t,e){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,e);if(e<t)throw new RangeError("End date must be >= start date");let i=this.numberFormatter.formatToParts(t),a=this.numberFormatter.formatToParts(e);return[...i.map(s=>({...s,source:"startRange"})),{type:"literal",value:"",source:"shared"},...a.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!f&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!l&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,e={}){this.numberFormatter=d(t,e),this.options=e}}function d(r,t={}){let{numberingSystem:e}=t;if(e&&r.includes("-nu-")&&(r.includes("-u-")||(r+="-u-"),r+=`-nu-${e}`),t.style==="unit"&&!l){var i;let{unit:n,unitDisplay:o="short"}=t;if(!n)throw new Error('unit option must be provided with style: "unit"');if(!(!((i=c[n])===null||i===void 0)&&i[o]))throw new Error(`Unsupported unit ${n} with unitDisplay = ${o}`);t={...t,style:"decimal"}}let a=r+(t?Object.entries(t).sort((n,o)=>n[0]<o[0]?-1:1).join():"");if(u.has(a))return u.get(a);let s=new Intl.NumberFormat(r,t);return u.set(a,s),s}function m(r,t,e){if(t==="auto")return r.format(e);if(t==="never")return r.format(Math.abs(e));{let i=!1;if(t==="always"?i=e>0||Object.is(e,0):t==="exceptZero"&&(Object.is(e,-0)||Object.is(e,0)?e=Math.abs(e):i=e>0),i){let a=r.format(-e),s=r.format(e),n=a.replace(s,"").replace(/\u200e|\u061C/,"");return[...n].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),a.replace(s,"!!!").replace(n,"+").replace("!!!",s)}else return r.format(e)}}exports.NumberFormatter=p;exports.numberFormatSignDisplayPolyfill=m;