@kakadu/components 6.9.0 → 6.10.1

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 (223) hide show
  1. package/build/components/aria-text.js +1 -1
  2. package/build/components/aria-text.mjs +1 -1
  3. package/build/components/box.js +1 -1
  4. package/build/components/box.mjs +1 -1
  5. package/build/components/button-tooltip.js +1 -1
  6. package/build/components/button-tooltip.mjs +1 -1
  7. package/build/components/button.js +1 -1
  8. package/build/components/button.mjs +1 -1
  9. package/build/components/card.js +1 -1
  10. package/build/components/card.mjs +1 -1
  11. package/build/components/checkbox.js +1 -1
  12. package/build/components/checkbox.mjs +1 -1
  13. package/build/components/click-ripples.js +1 -1
  14. package/build/components/click-ripples.mjs +1 -1
  15. package/build/components/collapsible.js +1 -1
  16. package/build/components/collapsible.mjs +1 -1
  17. package/build/components/combobox.js +1 -1
  18. package/build/components/combobox.mjs +1 -1
  19. package/build/components/copy-icon-button.js +1 -1
  20. package/build/components/copy-icon-button.mjs +1 -1
  21. package/build/components/datum.js +1 -1
  22. package/build/components/datum.mjs +1 -1
  23. package/build/components/decorators.js +1 -1
  24. package/build/components/decorators.mjs +1 -1
  25. package/build/components/dot.js +1 -1
  26. package/build/components/dot.mjs +1 -1
  27. package/build/components/flags.js +1 -1
  28. package/build/components/flags.mjs +1 -1
  29. package/build/components/flex.js +1 -1
  30. package/build/components/flex.mjs +1 -1
  31. package/build/components/footer.js +1 -1
  32. package/build/components/footer.mjs +1 -1
  33. package/build/components/gauge.js +1 -1
  34. package/build/components/gauge.mjs +1 -1
  35. package/build/components/header.js +1 -1
  36. package/build/components/header.mjs +1 -1
  37. package/build/components/hover-gradient.js +1 -1
  38. package/build/components/hover-gradient.mjs +1 -1
  39. package/build/components/icon-button.js +1 -1
  40. package/build/components/icon-button.mjs +1 -1
  41. package/build/components/input.js +1 -1
  42. package/build/components/input.mjs +1 -1
  43. package/build/components/logos/akt-logo.js +1 -1
  44. package/build/components/logos/akt-logo.mjs +1 -1
  45. package/build/components/logos/amedia-logo.js +1 -1
  46. package/build/components/logos/amedia-logo.mjs +1 -1
  47. package/build/components/logos/bankaxept-logo.js +1 -1
  48. package/build/components/logos/bankaxept-logo.mjs +1 -1
  49. package/build/components/logos/bankid-logo.js +1 -1
  50. package/build/components/logos/bankid-logo.mjs +1 -1
  51. package/build/components/logos/dnb-logo.js +1 -1
  52. package/build/components/logos/dnb-logo.mjs +1 -1
  53. package/build/components/logos/entur-logo.js +1 -1
  54. package/build/components/logos/entur-logo.mjs +1 -1
  55. package/build/components/logos/gjensidige-logo.js +1 -1
  56. package/build/components/logos/gjensidige-logo.mjs +1 -1
  57. package/build/components/logos/kakadu-academy-logo.js +1 -1
  58. package/build/components/logos/kakadu-academy-logo.mjs +1 -1
  59. package/build/components/logos/kakadu-guide-icon.js +1 -1
  60. package/build/components/logos/kakadu-guide-icon.mjs +1 -1
  61. package/build/components/logos/kakadu-guide-logo.js +1 -1
  62. package/build/components/logos/kakadu-guide-logo.mjs +1 -1
  63. package/build/components/logos/kakadu-index-logo.js +1 -1
  64. package/build/components/logos/kakadu-index-logo.mjs +1 -1
  65. package/build/components/logos/kakadu-logo.js +1 -1
  66. package/build/components/logos/kakadu-logo.mjs +1 -1
  67. package/build/components/logos/kakadu-play-logo.js +1 -1
  68. package/build/components/logos/kakadu-play-logo.mjs +1 -1
  69. package/build/components/logos/kolumbus-logo.js +1 -1
  70. package/build/components/logos/kolumbus-logo.mjs +1 -1
  71. package/build/components/logos/nordea-logo.js +1 -1
  72. package/build/components/logos/nordea-logo.mjs +1 -1
  73. package/build/components/logos/norsk-tipping-logo.js +1 -1
  74. package/build/components/logos/norsk-tipping-logo.mjs +1 -1
  75. package/build/components/logos/ruter-logo.js +1 -1
  76. package/build/components/logos/ruter-logo.mjs +1 -1
  77. package/build/components/logos/senteret-for-et-aldersvennlig-norge-logo.js +1 -1
  78. package/build/components/logos/senteret-for-et-aldersvennlig-norge-logo.mjs +1 -1
  79. package/build/components/logos/sparebank1-logo.js +1 -1
  80. package/build/components/logos/sparebank1-logo.mjs +1 -1
  81. package/build/components/logos/sparebanken-norge-logo.js +1 -1
  82. package/build/components/logos/sparebanken-norge-logo.mjs +1 -1
  83. package/build/components/logos/sto-logo.js +1 -1
  84. package/build/components/logos/sto-logo.mjs +1 -1
  85. package/build/components/logos/storebrand-logo.js +1 -1
  86. package/build/components/logos/storebrand-logo.mjs +1 -1
  87. package/build/components/modal.js +1 -1
  88. package/build/components/modal.mjs +2 -2
  89. package/build/components/moving-gradients.js +1 -1
  90. package/build/components/moving-gradients.mjs +1 -1
  91. package/build/components/moving-stars.js +1 -1
  92. package/build/components/moving-stars.mjs +1 -1
  93. package/build/components/notice.js +1 -1
  94. package/build/components/notice.mjs +1 -1
  95. package/build/components/notification.js +1 -1
  96. package/build/components/notification.mjs +1 -1
  97. package/build/components/popover-menu.js +1 -1
  98. package/build/components/popover-menu.mjs +1 -1
  99. package/build/components/popover.js +1 -1
  100. package/build/components/popover.mjs +2 -2
  101. package/build/components/revealer.js +1 -1
  102. package/build/components/revealer.mjs +1 -1
  103. package/build/components/select.js +1 -1
  104. package/build/components/select.mjs +1 -1
  105. package/build/components/separator.js +1 -1
  106. package/build/components/separator.mjs +1 -1
  107. package/build/components/skeleton.js +1 -1
  108. package/build/components/skeleton.mjs +1 -1
  109. package/build/components/spinner.js +1 -1
  110. package/build/components/spinner.mjs +1 -1
  111. package/build/components/text-button.js +1 -1
  112. package/build/components/text-button.mjs +1 -1
  113. package/build/components/text.js +1 -1
  114. package/build/components/text.mjs +1 -1
  115. package/build/components/theme-setter.js +1 -1
  116. package/build/components/theme-setter.mjs +1 -1
  117. package/build/components/veil.js +1 -1
  118. package/build/components/veil.mjs +1 -1
  119. package/build/components/wrapper.js +1 -1
  120. package/build/components/wrapper.mjs +1 -1
  121. package/build/{focus-trap-react-B7f3iC5h.js → focus-trap-react-D0ZxGVUk.js} +3 -3
  122. package/build/{focus-trap-react-Dr3BYLw6.mjs → focus-trap-react-D4ushEjf.mjs} +86 -85
  123. package/build/hooks/use-fetch.d.ts +3 -3
  124. package/build/hooks/use-fetch.js +1 -1
  125. package/build/hooks/use-fetch.mjs +77 -75
  126. package/build/hooks/use-local-storage.d.ts +3 -0
  127. package/build/hooks/use-local-storage.js +1 -0
  128. package/build/hooks/use-local-storage.mjs +84 -0
  129. package/build/icons/anchor-down.js +1 -1
  130. package/build/icons/anchor-down.mjs +1 -1
  131. package/build/icons/anchor-up.js +1 -1
  132. package/build/icons/anchor-up.mjs +1 -1
  133. package/build/icons/arrow-down.js +1 -1
  134. package/build/icons/arrow-down.mjs +1 -1
  135. package/build/icons/arrow-left.js +1 -1
  136. package/build/icons/arrow-left.mjs +1 -1
  137. package/build/icons/arrow-right.js +1 -1
  138. package/build/icons/arrow-right.mjs +1 -1
  139. package/build/icons/arrow-up.js +1 -1
  140. package/build/icons/arrow-up.mjs +1 -1
  141. package/build/icons/caret-down.js +1 -1
  142. package/build/icons/caret-down.mjs +1 -1
  143. package/build/icons/caret-left.js +1 -1
  144. package/build/icons/caret-left.mjs +1 -1
  145. package/build/icons/caret-right.js +1 -1
  146. package/build/icons/caret-right.mjs +1 -1
  147. package/build/icons/caret-up.js +1 -1
  148. package/build/icons/caret-up.mjs +1 -1
  149. package/build/icons/check.js +1 -1
  150. package/build/icons/check.mjs +1 -1
  151. package/build/icons/chevron-down.js +1 -1
  152. package/build/icons/chevron-down.mjs +1 -1
  153. package/build/icons/chevron-left.js +1 -1
  154. package/build/icons/chevron-left.mjs +1 -1
  155. package/build/icons/chevron-right.js +1 -1
  156. package/build/icons/chevron-right.mjs +1 -1
  157. package/build/icons/chevron-up.js +1 -1
  158. package/build/icons/chevron-up.mjs +1 -1
  159. package/build/icons/chrome-browser-logo.js +1 -1
  160. package/build/icons/chrome-browser-logo.mjs +1 -1
  161. package/build/icons/cog.js +1 -1
  162. package/build/icons/cog.mjs +1 -1
  163. package/build/icons/copy.js +1 -1
  164. package/build/icons/copy.mjs +1 -1
  165. package/build/icons/document.js +1 -1
  166. package/build/icons/document.mjs +1 -1
  167. package/build/icons/dots.js +1 -1
  168. package/build/icons/dots.mjs +1 -1
  169. package/build/icons/drag.js +1 -1
  170. package/build/icons/drag.mjs +1 -1
  171. package/build/icons/edge-browser-logo.js +1 -1
  172. package/build/icons/edge-browser-logo.mjs +1 -1
  173. package/build/icons/edit.js +1 -1
  174. package/build/icons/edit.mjs +1 -1
  175. package/build/icons/exclamation-triangle.js +1 -1
  176. package/build/icons/exclamation-triangle.mjs +1 -1
  177. package/build/icons/external.js +1 -1
  178. package/build/icons/external.mjs +1 -1
  179. package/build/icons/eye.js +1 -1
  180. package/build/icons/eye.mjs +1 -1
  181. package/build/icons/icon.js +1 -1
  182. package/build/icons/icon.mjs +1 -1
  183. package/build/icons/information.js +1 -1
  184. package/build/icons/information.mjs +1 -1
  185. package/build/icons/kakadu-guide-glyph.js +1 -1
  186. package/build/icons/kakadu-guide-glyph.mjs +1 -1
  187. package/build/icons/kakadu-guide-icon.js +1 -1
  188. package/build/icons/kakadu-guide-icon.mjs +1 -1
  189. package/build/icons/menu.js +1 -1
  190. package/build/icons/menu.mjs +1 -1
  191. package/build/icons/package.js +1 -1
  192. package/build/icons/package.mjs +1 -1
  193. package/build/icons/plus.js +1 -1
  194. package/build/icons/plus.mjs +1 -1
  195. package/build/icons/reload.js +1 -1
  196. package/build/icons/reload.mjs +1 -1
  197. package/build/icons/select.js +1 -1
  198. package/build/icons/select.mjs +1 -1
  199. package/build/icons/share.js +1 -1
  200. package/build/icons/share.mjs +1 -1
  201. package/build/icons/sparkle.js +1 -1
  202. package/build/icons/sparkle.mjs +1 -1
  203. package/build/icons/test.js +1 -1
  204. package/build/icons/test.mjs +1 -1
  205. package/build/icons/thumbs-down.js +1 -1
  206. package/build/icons/thumbs-down.mjs +1 -1
  207. package/build/icons/thumbs-up.js +1 -1
  208. package/build/icons/thumbs-up.mjs +1 -1
  209. package/build/icons/times.js +1 -1
  210. package/build/icons/times.mjs +1 -1
  211. package/build/icons/trash.js +1 -1
  212. package/build/icons/trash.mjs +1 -1
  213. package/build/icons/trend-up.js +1 -1
  214. package/build/icons/trend-up.mjs +1 -1
  215. package/build/index.d.ts +2 -0
  216. package/build/index.js +1 -1
  217. package/build/index.mjs +22 -20
  218. package/build/jsx-runtime-CZa898vN.js +22 -0
  219. package/build/{jsx-runtime-B4hRZ52C.mjs → jsx-runtime-z6PQ6F3d.mjs} +111 -97
  220. package/build/theme.js +1 -1
  221. package/build/theme.mjs +1 -1
  222. package/package.json +22 -22
  223. package/build/jsx-runtime-BB_1_6y_.js +0 -22
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../jsx-runtime-BB_1_6y_.js"),y=require("@kuma-ui/core"),c=require("react"),z=require("../theme.js"),g=require("../icons/icon.js"),A=require("../hooks/use-synchronized-value.js"),F=require("../utilities/listeners.js"),R=require("./popover.js"),V=require("./atom.js"),S=require("./text.js"),I=require("./hover-gradient.js"),B=require("./click-ripples.js"),T=require("./separator.js"),H=require("./decorators.js"),N=require("./spinner.js"),_=require("./skeleton.js"),$=F.default(e=>{window.addEventListener("keydown",e,{capture:!0})},e=>{window.removeEventListener("keydown",e,{capture:!0})});function K(){const{value:e,setValue:n}=A.default("isKeyboardNavigating");return c.useMemo(()=>({isKeyboardNavigating:e,setIsKeyboardNavigating:n}),[e,n])}const G="kakadu-components-949294122";function U({isLoading:e,isDisabled:n,label:l,iconLeft:m,iconRight:u,href:v,target:b,shouldCloseOnClick:s=!0,decorators:o=[],submenu:r,className:i,onClick:j,...E}){const{isVisible:h,isPreparingFocus:d,isFocused:a,close:f}=R.usePopoverContext(),{isKeyboardNavigating:p}=K(),w=c.useRef(!0),M=c.useCallback(()=>{w.current=a},[a]),P=c.useCallback(D=>{!p&&!w.current||a&&(j==null||j(D),r?r.show():s&&(f==null||f(void 0,{all:s==="all"})))},[p,a,j,r,s,f]),x=!h&&!d||!!e||!!n,k=v!==void 0&&!e,q=c.useMemo(()=>t.jsxRuntimeExports.jsxs(V.default,{as:k?"a":"button",...E,"aria-disabled":k&&x?!0:void 0,type:k?void 0:"button",role:"menuitem",href:e?void 0:v,target:k?b:void 0,inert:k?x:void 0,disabled:k?void 0:x,className:y.cx(z.buttonResetStyles,"kakadu-components-1772835671",a&&"kakadu-components-3160069815",p?"kakadu-components-2254977234":a&&!x&&"kakadu-components-278139688",x&&"kakadu-components-1879666195",i),onClick:x?void 0:P,onPointerDownCapture:x?void 0:M,children:[t.jsxRuntimeExports.jsxs(S.Span,{className:y.cx("kakadu-components-1377252111",e?"kakadu-components-2409458488":x&&"kakadu-components-532828420"),children:[m?e?t.jsxRuntimeExports.jsx(N.default,{size:12}):t.jsxRuntimeExports.jsx(g.default,{width:12,height:12,type:m}):null,t.jsxRuntimeExports.jsxs("span",{className:y.cx("kakadu-components-1590676894",e&&"kakadu-components-743909038"),children:[e?t.jsxRuntimeExports.jsx(_.SkeletonInstance,{"aria-hidden":!0,width:"100%",className:"kakadu-components-3950955262"}):null,t.jsxRuntimeExports.jsx("span",{className:e?"kakadu-components-543569100":void 0,children:l})]}),u?e?m?t.jsxRuntimeExports.jsx(_.SkeletonInstance,{width:12,height:12}):t.jsxRuntimeExports.jsx(N.default,{size:12}):t.jsxRuntimeExports.jsx(g.default,{width:12,height:12,type:u}):null]}),p||x?null:t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx(B.default,{isActive:a,size:100}),t.jsxRuntimeExports.jsx(I.default,{isActive:a,size:150,className:I.normalBlendStyles})]})]}),[k,E,x,v,e,b,i,a,p,P,M,m,l,u]);return t.jsxRuntimeExports.jsx(H.default,{decorators:o,children:r?t.jsxRuntimeExports.jsx(C,{menu:r.popoverMenu,className:"kakadu-components-1861176543",children:q}):q})}function J(e){if("type"in e){if(e.type==="separator")return t.jsxRuntimeExports.jsx(T.default,{});if(e.type==="group")return t.jsxRuntimeExports.jsx(S.Span,{className:"kakadu-components-1499037363",children:e.label})}return t.jsxRuntimeExports.jsx(U,{...e})}function O({items:e}){const{isFocused:n}=R.usePopoverContext(),[l,m]=c.useState([]),{setIsKeyboardNavigating:u}=K(),v=c.useCallback(s=>{s&&m(o=>o.includes(s)?o:[...o,s])},[]),b=c.useCallback(s=>{n&&(s.currentTarget.focus(),u(!1))},[n,u]);return c.useEffect(()=>{if(n)return $(s=>{const o=l.filter(d=>d.isConnected),r=o.length;if(r===0)return;let i,j=1;const E=document.activeElement;let h=E?o.indexOf(E):-1;switch(h===-1&&(h=0),s.key){case"ArrowUp":j=-1;case"ArrowDown":{i=(h+j+r)%r;break}case"Home":{i=0;break}case"End":{i=r-1,j=-1;break}case"Tab":{u(!0);return}}if(i!==void 0){s.preventDefault(),s.stopPropagation();let d=o[i];if(d){let a=0;const f=p=>"disabled"in p&&p.disabled||"inert"in p&&p.inert;for(;f(d)&&a<r;)i=(i+j+r)%r,d=o[i],a+=1;d&&!f(d)&&(d.focus(),u(!0))}}})},[n,l,u]),t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:e.map((s,o)=>t.jsxRuntimeExports.jsx(J,{...s,reference:v,onMouseEnter:b},o))})}function Q({items:e,...n}){return t.jsxRuntimeExports.jsx(R.default,{...n,as:"nav",role:"menu",innerClassName:"kakadu-components-3600436535",children:t.jsxRuntimeExports.jsx(O,{items:e})})}function W(e){const n=c.useMemo(()=>({items:e}),[e]),{isVisible:l,show:m,close:u,popover:v}=R.usePopover(Q,n);return c.useMemo(()=>({isVisible:l,show:m,close:u,popoverMenu:v}),[l,m,u,v])}function C({menu:e,className:n,children:l}){return t.jsxRuntimeExports.jsxs(R.PopoverContainer,{className:n,children:[l,e]})}exports.dangerPopoverMenuItemStyles=G;exports.default=C;exports.usePopoverMenu=W;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../jsx-runtime-CZa898vN.js"),y=require("@kuma-ui/core"),c=require("react"),z=require("../theme.js"),g=require("../icons/icon.js"),A=require("../hooks/use-synchronized-value.js"),F=require("../utilities/listeners.js"),R=require("./popover.js"),V=require("./atom.js"),S=require("./text.js"),I=require("./hover-gradient.js"),B=require("./click-ripples.js"),T=require("./separator.js"),H=require("./decorators.js"),N=require("./spinner.js"),_=require("./skeleton.js"),$=F.default(e=>{window.addEventListener("keydown",e,{capture:!0})},e=>{window.removeEventListener("keydown",e,{capture:!0})});function K(){const{value:e,setValue:n}=A.default("isKeyboardNavigating");return c.useMemo(()=>({isKeyboardNavigating:e,setIsKeyboardNavigating:n}),[e,n])}const G="kakadu-components-949294122";function U({isLoading:e,isDisabled:n,label:l,iconLeft:m,iconRight:u,href:v,target:b,shouldCloseOnClick:s=!0,decorators:o=[],submenu:r,className:i,onClick:j,...E}){const{isVisible:h,isPreparingFocus:d,isFocused:a,close:f}=R.usePopoverContext(),{isKeyboardNavigating:p}=K(),w=c.useRef(!0),M=c.useCallback(()=>{w.current=a},[a]),P=c.useCallback(D=>{!p&&!w.current||a&&(j==null||j(D),r?r.show():s&&(f==null||f(void 0,{all:s==="all"})))},[p,a,j,r,s,f]),x=!h&&!d||!!e||!!n,k=v!==void 0&&!e,q=c.useMemo(()=>t.jsxRuntimeExports.jsxs(V.default,{as:k?"a":"button",...E,"aria-disabled":k&&x?!0:void 0,type:k?void 0:"button",role:"menuitem",href:e?void 0:v,target:k?b:void 0,inert:k?x:void 0,disabled:k?void 0:x,className:y.cx(z.buttonResetStyles,"kakadu-components-1772835671",a&&"kakadu-components-3160069815",p?"kakadu-components-2254977234":a&&!x&&"kakadu-components-278139688",x&&"kakadu-components-1879666195",i),onClick:x?void 0:P,onPointerDownCapture:x?void 0:M,children:[t.jsxRuntimeExports.jsxs(S.Span,{className:y.cx("kakadu-components-1377252111",e?"kakadu-components-2409458488":x&&"kakadu-components-532828420"),children:[m?e?t.jsxRuntimeExports.jsx(N.default,{size:12}):t.jsxRuntimeExports.jsx(g.default,{width:12,height:12,type:m}):null,t.jsxRuntimeExports.jsxs("span",{className:y.cx("kakadu-components-1590676894",e&&"kakadu-components-743909038"),children:[e?t.jsxRuntimeExports.jsx(_.SkeletonInstance,{"aria-hidden":!0,width:"100%",className:"kakadu-components-3950955262"}):null,t.jsxRuntimeExports.jsx("span",{className:e?"kakadu-components-543569100":void 0,children:l})]}),u?e?m?t.jsxRuntimeExports.jsx(_.SkeletonInstance,{width:12,height:12}):t.jsxRuntimeExports.jsx(N.default,{size:12}):t.jsxRuntimeExports.jsx(g.default,{width:12,height:12,type:u}):null]}),p||x?null:t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx(B.default,{isActive:a,size:100}),t.jsxRuntimeExports.jsx(I.default,{isActive:a,size:150,className:I.normalBlendStyles})]})]}),[k,E,x,v,e,b,i,a,p,P,M,m,l,u]);return t.jsxRuntimeExports.jsx(H.default,{decorators:o,children:r?t.jsxRuntimeExports.jsx(C,{menu:r.popoverMenu,className:"kakadu-components-1861176543",children:q}):q})}function J(e){if("type"in e){if(e.type==="separator")return t.jsxRuntimeExports.jsx(T.default,{});if(e.type==="group")return t.jsxRuntimeExports.jsx(S.Span,{className:"kakadu-components-1499037363",children:e.label})}return t.jsxRuntimeExports.jsx(U,{...e})}function O({items:e}){const{isFocused:n}=R.usePopoverContext(),[l,m]=c.useState([]),{setIsKeyboardNavigating:u}=K(),v=c.useCallback(s=>{s&&m(o=>o.includes(s)?o:[...o,s])},[]),b=c.useCallback(s=>{n&&(s.currentTarget.focus(),u(!1))},[n,u]);return c.useEffect(()=>{if(n)return $(s=>{const o=l.filter(d=>d.isConnected),r=o.length;if(r===0)return;let i,j=1;const E=document.activeElement;let h=E?o.indexOf(E):-1;switch(h===-1&&(h=0),s.key){case"ArrowUp":j=-1;case"ArrowDown":{i=(h+j+r)%r;break}case"Home":{i=0;break}case"End":{i=r-1,j=-1;break}case"Tab":{u(!0);return}}if(i!==void 0){s.preventDefault(),s.stopPropagation();let d=o[i];if(d){let a=0;const f=p=>"disabled"in p&&p.disabled||"inert"in p&&p.inert;for(;f(d)&&a<r;)i=(i+j+r)%r,d=o[i],a+=1;d&&!f(d)&&(d.focus(),u(!0))}}})},[n,l,u]),t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:e.map((s,o)=>t.jsxRuntimeExports.jsx(J,{...s,reference:v,onMouseEnter:b},o))})}function Q({items:e,...n}){return t.jsxRuntimeExports.jsx(R.default,{...n,as:"nav",role:"menu",innerClassName:"kakadu-components-3600436535",children:t.jsxRuntimeExports.jsx(O,{items:e})})}function W(e){const n=c.useMemo(()=>({items:e}),[e]),{isVisible:l,show:m,close:u,popover:v}=R.usePopover(Q,n);return c.useMemo(()=>({isVisible:l,show:m,close:u,popoverMenu:v}),[l,m,u,v])}function C({menu:e,className:n,children:l}){return t.jsxRuntimeExports.jsxs(R.PopoverContainer,{className:n,children:[l,e]})}exports.dangerPopoverMenuItemStyles=G;exports.default=C;exports.usePopoverMenu=W;
@@ -1,4 +1,4 @@
1
- import { j as n } from "../jsx-runtime-B4hRZ52C.mjs";
1
+ import { j as n } from "../jsx-runtime-z6PQ6F3d.mjs";
2
2
  import { cx as P } from "@kuma-ui/core";
3
3
  import { useMemo as y, useState as V, useCallback as b, useEffect as B, useRef as C } from "react";
4
4
  import { buttonResetStyles as H } from "../theme.mjs";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../jsx-runtime-BB_1_6y_.js"),x=require("@kuma-ui/core"),e=require("react"),Y=require("../focus-trap-react-B7f3iC5h.js"),Z=require("../utilities/listeners.js"),T=require("./atom.js"),ee=Z.default(s=>{window.addEventListener("resize",s,{passive:!0})},s=>{window.removeEventListener("resize",s)}),H=e.createContext({isVisible:!1,isPreparingFocus:!1,isFocused:!1}),{Provider:te}=H;function U(){return e.useContext(H)}function se({as:s,className:n,...d}){return o.jsxRuntimeExports.jsx(T.default,{as:s??T.defaultAtomElementType,...d,className:x.cx("kakadu-components-2845019685",n)})}function ne({as:s,isVisible:n,label:d,shouldCloseOnOutsideClick:k=!0,shouldCloseOnEscapePress:c=!0,children:R,className:a,innerClassName:m,onClose:u,...h}){const{close:i}=U(),g=e.useRef(null),r=e.useRef(null),[j,p]=e.useState(!1),[b,E]=e.useState(!1),[L,G]=e.useState(!1),[l,P]=e.useState(!1),[J,I]=e.useState(!1),N=e.useCallback((t,f)=>{g.current=t??null,P(!1),f!=null&&f.all&&(i==null||i(void 0,f))},[i]),S=e.useRef(null),O=e.useCallback(t=>{t&&(S.current=t)},[]),K=e.useMemo(()=>({initialFocus:()=>S.current??void 0,onPostActivate(){var t;E(!0),p(!1),(t=S.current)==null||t.focus()},clickOutsideDeactivates:k,escapeDeactivates:c,onPostUnpause(){E(!0)},onPause(){E(!1)},onDeactivate(){I(!1),P(!1),E(!1)}}),[k,c]),[M,y]=e.useState(n??!1),Q=e.useMemo(()=>({isVisible:M,isPreparingFocus:j,isFocused:b,setInitialFocus:O,close:N}),[M,j,b,O,N]),[v,z]=e.useState("center");return e.useEffect(()=>{const t=r.current;if(t){const f=()=>{const D=t.offsetParent,q=D instanceof HTMLElement?D.getBoundingClientRect():null,V=t.getBoundingClientRect();if(!q){z("center");return}const C=16,_=window.innerWidth-C,A=q.left+q.width/2-V.width/2,B=A+V.width,W=A<C,$=B>_;let w="center";if(W&&$){const F=C-A;w=B-_>F?"right":"left"}else $?w="right":W&&(w="left");z(F=>F===w?F:w)};f();const X=ee(f);return()=>{X()}}},[]),e.useEffect(()=>{n&&(G(!0),y(!0))},[n]),e.useEffect(()=>{if(n){const t=setTimeout(()=>{P(!0)},100);return()=>{clearTimeout(t)}}P(!1)},[n]),e.useEffect(()=>{if(!l){I(!1),p(!1);return}p(!0);const t=window.requestAnimationFrame(()=>{I(!0)});return()=>{window.cancelAnimationFrame(t)}},[l]),e.useEffect(()=>{if(L&&!l){const t=setTimeout(()=>{y(!1),u==null||u(g.current??void 0)},370);return()=>{clearTimeout(t)}}},[L,l,u]),M?o.jsxRuntimeExports.jsx(T.default,{reference:r,as:s??T.defaultAtomElementType,role:"dialog","aria-hidden":!l&&!b,"aria-label":d??"Popover",...h,className:x.cx("kakadu-components-3920007758",v==="left"&&"kakadu-components-611400930",v==="right"&&"kakadu-components-944244368",l&&"kakadu-components-1399012551",a),children:o.jsxRuntimeExports.jsxs("div",{className:x.cx("kakadu-components-1118152266",l&&"kakadu-components-231244945"),children:[o.jsxRuntimeExports.jsx("div",{className:x.cx("kakadu-components-1951789226",v==="left"&&"kakadu-components-1495725644",v==="right"&&"kakadu-components-4235689197")}),o.jsxRuntimeExports.jsx(Y.focusTrapReactExports.FocusTrap,{active:J,focusTrapOptions:K,children:o.jsxRuntimeExports.jsxs("div",{className:x.cx("kakadu-components-2488426662",m),children:[o.jsxRuntimeExports.jsx(te,{value:Q,children:R}),o.jsxRuntimeExports.jsx("div",{className:x.cx("kakadu-components-3252390100",v==="left"&&"kakadu-components-3754561431",v==="right"&&"kakadu-components-2265262600")})]})})]})}):null}function oe(s,n){const[d,k]=e.useState(!1),[c,R]=e.useState(!1),a=e.useRef(void 0),m=e.useRef(void 0),u=e.useCallback(async()=>(m.current=void 0,k(!0),R(!0),new Promise(r=>{a.current=r})),[]),h=e.useCallback(r=>{m.current=r,R(!1)},[]),i=e.useCallback(r=>{var p;const j=r??m.current;m.current=void 0,(p=a.current)==null||p.call(a,j),a.current=void 0,k(!1),R(!1)},[]),g=e.useMemo(()=>d?o.jsxRuntimeExports.jsx(s,{...n,isVisible:c,onClose:i}):null,[d,s,n,c,i]);return e.useMemo(()=>({isVisible:c,show:u,close:h,popover:g}),[c,u,h,g])}exports.PopoverContainer=se;exports.default=ne;exports.usePopover=oe;exports.usePopoverContext=U;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../jsx-runtime-CZa898vN.js"),x=require("@kuma-ui/core"),e=require("react"),Y=require("../focus-trap-react-D0ZxGVUk.js"),Z=require("../utilities/listeners.js"),T=require("./atom.js"),ee=Z.default(s=>{window.addEventListener("resize",s,{passive:!0})},s=>{window.removeEventListener("resize",s)}),H=e.createContext({isVisible:!1,isPreparingFocus:!1,isFocused:!1}),{Provider:te}=H;function U(){return e.useContext(H)}function se({as:s,className:n,...d}){return o.jsxRuntimeExports.jsx(T.default,{as:s??T.defaultAtomElementType,...d,className:x.cx("kakadu-components-2845019685",n)})}function ne({as:s,isVisible:n,label:d,shouldCloseOnOutsideClick:k=!0,shouldCloseOnEscapePress:c=!0,children:R,className:a,innerClassName:m,onClose:u,...h}){const{close:i}=U(),g=e.useRef(null),r=e.useRef(null),[j,p]=e.useState(!1),[b,E]=e.useState(!1),[L,G]=e.useState(!1),[l,P]=e.useState(!1),[J,I]=e.useState(!1),N=e.useCallback((t,f)=>{g.current=t??null,P(!1),f!=null&&f.all&&(i==null||i(void 0,f))},[i]),S=e.useRef(null),O=e.useCallback(t=>{t&&(S.current=t)},[]),K=e.useMemo(()=>({initialFocus:()=>S.current??void 0,onPostActivate(){var t;E(!0),p(!1),(t=S.current)==null||t.focus()},clickOutsideDeactivates:k,escapeDeactivates:c,onPostUnpause(){E(!0)},onPause(){E(!1)},onDeactivate(){I(!1),P(!1),E(!1)}}),[k,c]),[M,y]=e.useState(n??!1),Q=e.useMemo(()=>({isVisible:M,isPreparingFocus:j,isFocused:b,setInitialFocus:O,close:N}),[M,j,b,O,N]),[v,z]=e.useState("center");return e.useEffect(()=>{const t=r.current;if(t){const f=()=>{const D=t.offsetParent,q=D instanceof HTMLElement?D.getBoundingClientRect():null,V=t.getBoundingClientRect();if(!q){z("center");return}const C=16,_=window.innerWidth-C,A=q.left+q.width/2-V.width/2,B=A+V.width,W=A<C,$=B>_;let w="center";if(W&&$){const F=C-A;w=B-_>F?"right":"left"}else $?w="right":W&&(w="left");z(F=>F===w?F:w)};f();const X=ee(f);return()=>{X()}}},[]),e.useEffect(()=>{n&&(G(!0),y(!0))},[n]),e.useEffect(()=>{if(n){const t=setTimeout(()=>{P(!0)},100);return()=>{clearTimeout(t)}}P(!1)},[n]),e.useEffect(()=>{if(!l){I(!1),p(!1);return}p(!0);const t=window.requestAnimationFrame(()=>{I(!0)});return()=>{window.cancelAnimationFrame(t)}},[l]),e.useEffect(()=>{if(L&&!l){const t=setTimeout(()=>{y(!1),u==null||u(g.current??void 0)},370);return()=>{clearTimeout(t)}}},[L,l,u]),M?o.jsxRuntimeExports.jsx(T.default,{reference:r,as:s??T.defaultAtomElementType,role:"dialog","aria-hidden":!l&&!b,"aria-label":d??"Popover",...h,className:x.cx("kakadu-components-3920007758",v==="left"&&"kakadu-components-611400930",v==="right"&&"kakadu-components-944244368",l&&"kakadu-components-1399012551",a),children:o.jsxRuntimeExports.jsxs("div",{className:x.cx("kakadu-components-1118152266",l&&"kakadu-components-231244945"),children:[o.jsxRuntimeExports.jsx("div",{className:x.cx("kakadu-components-1951789226",v==="left"&&"kakadu-components-1495725644",v==="right"&&"kakadu-components-4235689197")}),o.jsxRuntimeExports.jsx(Y.focusTrapReactExports.FocusTrap,{active:J,focusTrapOptions:K,children:o.jsxRuntimeExports.jsxs("div",{className:x.cx("kakadu-components-2488426662",m),children:[o.jsxRuntimeExports.jsx(te,{value:Q,children:R}),o.jsxRuntimeExports.jsx("div",{className:x.cx("kakadu-components-3252390100",v==="left"&&"kakadu-components-3754561431",v==="right"&&"kakadu-components-2265262600")})]})})]})}):null}function oe(s,n){const[d,k]=e.useState(!1),[c,R]=e.useState(!1),a=e.useRef(void 0),m=e.useRef(void 0),u=e.useCallback(async()=>(m.current=void 0,k(!0),R(!0),new Promise(r=>{a.current=r})),[]),h=e.useCallback(r=>{m.current=r,R(!1)},[]),i=e.useCallback(r=>{var p;const j=r??m.current;m.current=void 0,(p=a.current)==null||p.call(a,j),a.current=void 0,k(!1),R(!1)},[]),g=e.useMemo(()=>d?o.jsxRuntimeExports.jsx(s,{...n,isVisible:c,onClose:i}):null,[d,s,n,c,i]);return e.useMemo(()=>({isVisible:c,show:u,close:h,popover:g}),[c,u,h,g])}exports.PopoverContainer=se;exports.default=ne;exports.usePopover=oe;exports.usePopoverContext=U;
@@ -1,7 +1,7 @@
1
- import { j as n } from "../jsx-runtime-B4hRZ52C.mjs";
1
+ import { j as n } from "../jsx-runtime-z6PQ6F3d.mjs";
2
2
  import { cx as k } from "@kuma-ui/core";
3
3
  import { createContext as se, useRef as R, useState as o, useCallback as P, useMemo as b, useEffect as F, useContext as ne } from "react";
4
- import { f as oe } from "../focus-trap-react-Dr3BYLw6.mjs";
4
+ import { f as oe } from "../focus-trap-react-D4ushEjf.mjs";
5
5
  import re from "../utilities/listeners.mjs";
6
6
  import Q, { defaultAtomElementType as X } from "./atom.mjs";
7
7
  const ce = re((t) => {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y=require("../jsx-runtime-BB_1_6y_.js"),n=require("react"),R=require("@kuma-ui/core"),q=require("./atom.js");function b(s,i={}){const{delay:r=1,animationDelay:c=1,duration:l=870,threshold:a=0,distance:d=20,isMoving:m=!0,isCentered:f=!1,shouldReveal:o=!0}=i,[u,v]=n.useState(!1),[e,p]=n.useState(()=>typeof window>"u"?!1:!("IntersectionObserver"in window));return n.useEffect(()=>{const t=setTimeout(()=>{v(!0)},r);return()=>{clearTimeout(t)}},[r]),n.useEffect(()=>{if(u&&o&&!e&&s.current){const t=new IntersectionObserver(k=>{k.some(x=>x.isIntersecting)&&requestAnimationFrame(()=>{p(!0)})},{threshold:a});return t.observe(s.current),()=>{t.disconnect()}}},[u,o,e,s,a]),{isVisible:e,style:{"--distance":`${d}px`,"--duration":`${l/1e3}s`,"--animation-delay":`${c/1e3}s`},className:R.cx("kakadu-components-3009931469",m&&"kakadu-components-3252535480",e&&"kakadu-components-358711811",f&&"kakadu-components-3753263087")}}function w({as:s,delay:i,animationDelay:r,duration:c,threshold:l,distance:a,isMoving:d,isCentered:m,shouldReveal:f,children:o,className:u,...v}){const e=n.useRef(null),{style:p,className:t}=b(e,{delay:i,animationDelay:r,duration:c,threshold:l,distance:a,isMoving:d,isCentered:m,shouldReveal:f});return y.jsxRuntimeExports.jsx(q.default,{as:s??"span",...v,reference:e,className:R.cx(t,u),style:p,children:o})}exports.default=w;exports.useRevealer=b;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y=require("../jsx-runtime-CZa898vN.js"),n=require("react"),R=require("@kuma-ui/core"),q=require("./atom.js");function b(s,i={}){const{delay:r=1,animationDelay:c=1,duration:l=870,threshold:a=0,distance:d=20,isMoving:m=!0,isCentered:f=!1,shouldReveal:o=!0}=i,[u,v]=n.useState(!1),[e,p]=n.useState(()=>typeof window>"u"?!1:!("IntersectionObserver"in window));return n.useEffect(()=>{const t=setTimeout(()=>{v(!0)},r);return()=>{clearTimeout(t)}},[r]),n.useEffect(()=>{if(u&&o&&!e&&s.current){const t=new IntersectionObserver(k=>{k.some(x=>x.isIntersecting)&&requestAnimationFrame(()=>{p(!0)})},{threshold:a});return t.observe(s.current),()=>{t.disconnect()}}},[u,o,e,s,a]),{isVisible:e,style:{"--distance":`${d}px`,"--duration":`${l/1e3}s`,"--animation-delay":`${c/1e3}s`},className:R.cx("kakadu-components-3009931469",m&&"kakadu-components-3252535480",e&&"kakadu-components-358711811",f&&"kakadu-components-3753263087")}}function w({as:s,delay:i,animationDelay:r,duration:c,threshold:l,distance:a,isMoving:d,isCentered:m,shouldReveal:f,children:o,className:u,...v}){const e=n.useRef(null),{style:p,className:t}=b(e,{delay:i,animationDelay:r,duration:c,threshold:l,distance:a,isMoving:d,isCentered:m,shouldReveal:f});return y.jsxRuntimeExports.jsx(q.default,{as:s??"span",...v,reference:e,className:R.cx(t,u),style:p,children:o})}exports.default=w;exports.useRevealer=b;
@@ -1,4 +1,4 @@
1
- import { j as y } from "../jsx-runtime-B4hRZ52C.mjs";
1
+ import { j as y } from "../jsx-runtime-z6PQ6F3d.mjs";
2
2
  import { useRef as w, useState as v, useEffect as k } from "react";
3
3
  import { cx as R } from "@kuma-ui/core";
4
4
  import I from "./atom.mjs";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../jsx-runtime-BB_1_6y_.js"),o=require("react"),k=require("@kuma-ui/core"),S=require("../icons/chevron-up.js"),f=require("./input.js");function B({label:h,options:y,error:i,warning:c,information:d,footnote:E,className:I,onChange:s,...x}){const l=o.useId(),m=`${l}-error`,p=`${l}-warning`,j=`${l}-information`,a=!!i,u=!a&&!!c,v=!a&&!u&&!!d,q=a?m:u?p:v?j:void 0,{value:n}=x,[R,b]=o.useState(""),$=n??R;o.useEffect(()=>{b(typeof n=="string"?n:"")},[n]);const g=o.useCallback(e=>{const{value:r}=e.target;b(r),s==null||s(r,e)},[s]);return t.jsxRuntimeExports.jsxs(f.InputLabel,{label:h,error:i,errorId:m,warning:c,warningId:p,information:d,informationId:j,footnote:E,children:[t.jsxRuntimeExports.jsx("select",{...x,value:$,"aria-invalid":a,"data-warning":u,"data-information":v,"aria-describedby":q,className:k.cx(f.inputStyles,"kakadu-components-1997515934",I),onChange:g,children:y.map((e,r)=>"type"in e?e.type==="separator"?t.jsxRuntimeExports.jsx("hr",{},`separator-${r}`):null:t.jsxRuntimeExports.jsx("option",{value:e.value,disabled:e.disabled,children:e.label},e.value))}),t.jsxRuntimeExports.jsx(S.default,{width:14,height:14,className:"kakadu-components-158931186"})]})}exports.default=B;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../jsx-runtime-CZa898vN.js"),o=require("react"),k=require("@kuma-ui/core"),S=require("../icons/chevron-up.js"),f=require("./input.js");function B({label:h,options:y,error:i,warning:c,information:d,footnote:E,className:I,onChange:s,...x}){const l=o.useId(),m=`${l}-error`,p=`${l}-warning`,j=`${l}-information`,a=!!i,u=!a&&!!c,v=!a&&!u&&!!d,q=a?m:u?p:v?j:void 0,{value:n}=x,[R,b]=o.useState(""),$=n??R;o.useEffect(()=>{b(typeof n=="string"?n:"")},[n]);const g=o.useCallback(e=>{const{value:r}=e.target;b(r),s==null||s(r,e)},[s]);return t.jsxRuntimeExports.jsxs(f.InputLabel,{label:h,error:i,errorId:m,warning:c,warningId:p,information:d,informationId:j,footnote:E,children:[t.jsxRuntimeExports.jsx("select",{...x,value:$,"aria-invalid":a,"data-warning":u,"data-information":v,"aria-describedby":q,className:k.cx(f.inputStyles,"kakadu-components-1997515934",I),onChange:g,children:y.map((e,r)=>"type"in e?e.type==="separator"?t.jsxRuntimeExports.jsx("hr",{},`separator-${r}`):null:t.jsxRuntimeExports.jsx("option",{value:e.value,disabled:e.disabled,children:e.label},e.value))}),t.jsxRuntimeExports.jsx(S.default,{width:14,height:14,className:"kakadu-components-158931186"})]})}exports.default=B;
@@ -1,4 +1,4 @@
1
- import { j as e } from "../jsx-runtime-B4hRZ52C.mjs";
1
+ import { j as e } from "../jsx-runtime-z6PQ6F3d.mjs";
2
2
  import { useId as S, useState as $, useEffect as w, useCallback as E } from "react";
3
3
  import { cx as V } from "@kuma-ui/core";
4
4
  import N from "../icons/chevron-up.mjs";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../jsx-runtime-BB_1_6y_.js"),s=require("@kuma-ui/core"),o=require("./flex.js"),u=require("./text.js");function a({className:e,...t}){return r.jsxRuntimeExports.jsx("hr",{...t,className:s.cx("kakadu-components-175326694",e)})}function c({className:e,...t}){return r.jsxRuntimeExports.jsx("hr",{...t,className:s.cx("kakadu-components-3380219127",e)})}function x({label:e,className:t,...n}){return r.jsxRuntimeExports.jsxs(o.default,{gap:2,direction:"row",preset:"center",className:s.cx("kakadu-components-1250376591",t),children:[r.jsxRuntimeExports.jsx(a,{...n}),r.jsxRuntimeExports.jsx(u.Label,{children:e}),r.jsxRuntimeExports.jsx(a,{...n})]})}function i({className:e,...t}){return r.jsxRuntimeExports.jsx("hr",{...t,className:s.cx("kakadu-components-2653569622",e)})}exports.SeparatorLabel=x;exports.SmallSeparator=c;exports.VerticalSeparator=i;exports.default=a;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../jsx-runtime-CZa898vN.js"),s=require("@kuma-ui/core"),o=require("./flex.js"),u=require("./text.js");function a({className:e,...t}){return r.jsxRuntimeExports.jsx("hr",{...t,className:s.cx("kakadu-components-175326694",e)})}function c({className:e,...t}){return r.jsxRuntimeExports.jsx("hr",{...t,className:s.cx("kakadu-components-3380219127",e)})}function x({label:e,className:t,...n}){return r.jsxRuntimeExports.jsxs(o.default,{gap:2,direction:"row",preset:"center",className:s.cx("kakadu-components-1250376591",t),children:[r.jsxRuntimeExports.jsx(a,{...n}),r.jsxRuntimeExports.jsx(u.Label,{children:e}),r.jsxRuntimeExports.jsx(a,{...n})]})}function i({className:e,...t}){return r.jsxRuntimeExports.jsx("hr",{...t,className:s.cx("kakadu-components-2653569622",e)})}exports.SeparatorLabel=x;exports.SmallSeparator=c;exports.VerticalSeparator=i;exports.default=a;
@@ -1,4 +1,4 @@
1
- import { j as e } from "../jsx-runtime-B4hRZ52C.mjs";
1
+ import { j as e } from "../jsx-runtime-z6PQ6F3d.mjs";
2
2
  import { cx as o } from "@kuma-ui/core";
3
3
  import s from "./flex.mjs";
4
4
  import { Label as c } from "./text.mjs";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../jsx-runtime-BB_1_6y_.js"),l=require("react"),h=require("@kuma-ui/core"),d=require("./atom.js");function c(o,e,{minimum:t,maximum:s}){const a=o*374761393+e*668265263+2147483647,u=Math.imul(a,1274126177),n=s-t+1;return t+Math.abs(u)%n}function i({as:o,label:e,width:t,height:s,className:a,children:u,isAnimated:n=!0,...x}){return r.jsxRuntimeExports.jsx(d.default,{...x,as:o??"span","aria-label":e,className:h.cx("kakadu-components-4254676273",n&&"kakadu-components-574297718",a),style:{width:t,height:s},children:u??r.jsxRuntimeExports.jsx(r.jsxRuntimeExports.Fragment,{children:" "})})}const m="kakadu-components-3140855657";function j({label:o,lines:e=1,isDeterministic:t=!1,isAnimated:s=!0}){const a=l.useMemo(()=>{const u=[];if(e<=1)return u;for(let n=1;n<e;n+=1)u.push(r.jsxRuntimeExports.jsx(i,{"aria-hidden":!0,width:t?`${c(n,e,{minimum:90,maximum:100})}%`:"100%",height:"1em",isAnimated:s,className:m},n));return u},[e,t,s]);return e<1?null:e===1?r.jsxRuntimeExports.jsx(i,{"aria-busy":!0,label:o,width:"100%",height:"1em",isAnimated:s,role:"status",className:m}):r.jsxRuntimeExports.jsxs(r.jsxRuntimeExports.Fragment,{children:[a,r.jsxRuntimeExports.jsx(i,{"aria-busy":!0,label:o,width:t?`${c(e,e,{minimum:50,maximum:60})}%`:"60%",height:"1em",isAnimated:s,role:"status",className:m})]})}exports.SkeletonInstance=i;exports.default=j;exports.getDeterministicSkeletonWidth=c;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../jsx-runtime-CZa898vN.js"),l=require("react"),h=require("@kuma-ui/core"),d=require("./atom.js");function c(o,e,{minimum:t,maximum:s}){const a=o*374761393+e*668265263+2147483647,u=Math.imul(a,1274126177),n=s-t+1;return t+Math.abs(u)%n}function i({as:o,label:e,width:t,height:s,className:a,children:u,isAnimated:n=!0,...x}){return r.jsxRuntimeExports.jsx(d.default,{...x,as:o??"span","aria-label":e,className:h.cx("kakadu-components-4254676273",n&&"kakadu-components-574297718",a),style:{width:t,height:s},children:u??r.jsxRuntimeExports.jsx(r.jsxRuntimeExports.Fragment,{children:" "})})}const m="kakadu-components-3140855657";function j({label:o,lines:e=1,isDeterministic:t=!1,isAnimated:s=!0}){const a=l.useMemo(()=>{const u=[];if(e<=1)return u;for(let n=1;n<e;n+=1)u.push(r.jsxRuntimeExports.jsx(i,{"aria-hidden":!0,width:t?`${c(n,e,{minimum:90,maximum:100})}%`:"100%",height:"1em",isAnimated:s,className:m},n));return u},[e,t,s]);return e<1?null:e===1?r.jsxRuntimeExports.jsx(i,{"aria-busy":!0,label:o,width:"100%",height:"1em",isAnimated:s,role:"status",className:m}):r.jsxRuntimeExports.jsxs(r.jsxRuntimeExports.Fragment,{children:[a,r.jsxRuntimeExports.jsx(i,{"aria-busy":!0,label:o,width:t?`${c(e,e,{minimum:50,maximum:60})}%`:"60%",height:"1em",isAnimated:s,role:"status",className:m})]})}exports.SkeletonInstance=i;exports.default=j;exports.getDeterministicSkeletonWidth=c;
@@ -1,4 +1,4 @@
1
- import { j as s } from "../jsx-runtime-B4hRZ52C.mjs";
1
+ import { j as s } from "../jsx-runtime-z6PQ6F3d.mjs";
2
2
  import { useMemo as l } from "react";
3
3
  import { cx as f } from "@kuma-ui/core";
4
4
  import d from "./atom.mjs";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("../jsx-runtime-BB_1_6y_.js"),t=require("react"),l=require("@kuma-ui/core");function i({size:e=18,strokeWidth:o=2.5,isAnimated:c=!0}){const s=t.useMemo(()=>e/2,[e]),n=t.useMemo(()=>s-o/2,[s,o]),r=t.useMemo(()=>2*Math.PI*n,[n]),a=t.useMemo(()=>r*.33,[r]),m=t.useMemo(()=>r-a,[r,a]),d=t.useMemo(()=>-m/2,[m]);return u.jsxRuntimeExports.jsx("svg",{width:e,height:e,preserveAspectRatio:"xMidYMid meet",viewBox:`0 0 ${e} ${e}`,fill:"none",className:"kakadu-components-1569667551",children:u.jsxRuntimeExports.jsx("circle",{cx:s,cy:s,r:n,stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeDasharray:`${m} ${a}`,strokeDashoffset:d,className:c?"kakadu-components-762885873":void 0})})}function x({isVisible:e,...o}){const[c,s]=t.useState(e);return t.useEffect(()=>{if(e)s(!0);else{const n=setTimeout(()=>{s(!1)},370);return()=>{clearTimeout(n)}}},[e]),u.jsxRuntimeExports.jsx("div",{className:l.cx("kakadu-components-3913140600",e&&"kakadu-components-2895791158"),children:u.jsxRuntimeExports.jsx(i,{isAnimated:c,...o})})}exports.RevealSpinner=x;exports.default=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("../jsx-runtime-CZa898vN.js"),t=require("react"),l=require("@kuma-ui/core");function i({size:e=18,strokeWidth:o=2.5,isAnimated:c=!0}){const s=t.useMemo(()=>e/2,[e]),n=t.useMemo(()=>s-o/2,[s,o]),r=t.useMemo(()=>2*Math.PI*n,[n]),a=t.useMemo(()=>r*.33,[r]),m=t.useMemo(()=>r-a,[r,a]),d=t.useMemo(()=>-m/2,[m]);return u.jsxRuntimeExports.jsx("svg",{width:e,height:e,preserveAspectRatio:"xMidYMid meet",viewBox:`0 0 ${e} ${e}`,fill:"none",className:"kakadu-components-1569667551",children:u.jsxRuntimeExports.jsx("circle",{cx:s,cy:s,r:n,stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeDasharray:`${m} ${a}`,strokeDashoffset:d,className:c?"kakadu-components-762885873":void 0})})}function x({isVisible:e,...o}){const[c,s]=t.useState(e);return t.useEffect(()=>{if(e)s(!0);else{const n=setTimeout(()=>{s(!1)},370);return()=>{clearTimeout(n)}}},[e]),u.jsxRuntimeExports.jsx("div",{className:l.cx("kakadu-components-3913140600",e&&"kakadu-components-2895791158"),children:u.jsxRuntimeExports.jsx(i,{isAnimated:c,...o})})}exports.RevealSpinner=x;exports.default=i;
@@ -1,4 +1,4 @@
1
- import { j as a } from "../jsx-runtime-B4hRZ52C.mjs";
1
+ import { j as a } from "../jsx-runtime-z6PQ6F3d.mjs";
2
2
  import { useMemo as o, useState as d, useEffect as i } from "react";
3
3
  import { cx as p } from "@kuma-ui/core";
4
4
  function l({
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../jsx-runtime-BB_1_6y_.js"),a=require("@kuma-ui/core"),c=require("../icons/icon.js"),_=require("./flex.js"),f=require("./text.js"),h=require("./click-ripples.js"),d=require("./hover-gradient.js"),b=require("./button-tooltip.js"),N=require("./aria-text.js"),g=require("./atom.js"),w=require("./skeleton.js"),S=["primary","delete"],T="kakadu-components-356806024";function z({ref:l,iconLeft:n,iconRight:o,variant:m="primary",tooltip:x,tooltipPosition:p,href:i,target:j,rel:k,disabled:E,hasUnderline:v=!0,isSkeleton:u,isSkeletonAnimated:R=!0,className:y,children:t,label:B,...q}){const r=!!E||!!u,s=i!==void 0&&!u;return e.jsxRuntimeExports.jsxs("div",{className:a.cx("kakadu-components-989891841",t&&(n||o)?a.cx(!!n&&"kakadu-components-497190725",!!o&&"kakadu-components-3729381008"):"kakadu-components-3866032606"),children:[e.jsxRuntimeExports.jsxs(g.default,{...q,reference:l,as:s?"a":"button",type:s?void 0:"button",href:s?i:void 0,target:s?j:void 0,rel:s?k:void 0,disabled:s?void 0:r,inert:s?r:void 0,className:a.cx(f.textShadowStyles,"kakadu-components-4279134239",m==="delete"&&T,u&&"kakadu-components-2662775151",y),children:[e.jsxRuntimeExports.jsxs(_.default,{direction:"row",gap:.5,preset:"center",children:[n?e.jsxRuntimeExports.jsx("div",{className:a.cx("kakadu-components-743909038",t?"kakadu-components-1285017646":"kakadu-components-1475172827"),children:typeof n=="string"?e.jsxRuntimeExports.jsx(c.default,{width:14,height:14,type:n}):n}):null,t?e.jsxRuntimeExports.jsx("span",{className:a.cx("kakadu-components-743909038",v&&"kakadu-components-2703794515"),children:t}):e.jsxRuntimeExports.jsx(N.default,{children:B}),o?e.jsxRuntimeExports.jsx("div",{className:a.cx("kakadu-components-743909038",t?"kakadu-components-2421728947":"kakadu-components-1475172827"),children:typeof o=="string"?e.jsxRuntimeExports.jsx(c.default,{width:14,height:14,type:o}):o}):null]}),e.jsxRuntimeExports.jsx("span",{className:"kakadu-components-1970948853",children:r?null:e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(h.default,{size:t?void 0:50}),e.jsxRuntimeExports.jsx(d.default,{size:t?void 0:50,className:d.normalBlendStyles})]})}),x?e.jsxRuntimeExports.jsx(b.default,{label:x,position:p}):null]}),u?e.jsxRuntimeExports.jsx("div",{className:"kakadu-components-1970948853",children:e.jsxRuntimeExports.jsx(w.SkeletonInstance,{width:"100%",height:"100%",isAnimated:R})}):null]})}exports.default=z;exports.textButtonVariants=S;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../jsx-runtime-CZa898vN.js"),a=require("@kuma-ui/core"),c=require("../icons/icon.js"),_=require("./flex.js"),f=require("./text.js"),h=require("./click-ripples.js"),d=require("./hover-gradient.js"),b=require("./button-tooltip.js"),N=require("./aria-text.js"),g=require("./atom.js"),w=require("./skeleton.js"),S=["primary","delete"],T="kakadu-components-356806024";function z({ref:l,iconLeft:n,iconRight:o,variant:m="primary",tooltip:x,tooltipPosition:p,href:i,target:j,rel:k,disabled:E,hasUnderline:v=!0,isSkeleton:u,isSkeletonAnimated:R=!0,className:y,children:t,label:B,...q}){const r=!!E||!!u,s=i!==void 0&&!u;return e.jsxRuntimeExports.jsxs("div",{className:a.cx("kakadu-components-989891841",t&&(n||o)?a.cx(!!n&&"kakadu-components-497190725",!!o&&"kakadu-components-3729381008"):"kakadu-components-3866032606"),children:[e.jsxRuntimeExports.jsxs(g.default,{...q,reference:l,as:s?"a":"button",type:s?void 0:"button",href:s?i:void 0,target:s?j:void 0,rel:s?k:void 0,disabled:s?void 0:r,inert:s?r:void 0,className:a.cx(f.textShadowStyles,"kakadu-components-4279134239",m==="delete"&&T,u&&"kakadu-components-2662775151",y),children:[e.jsxRuntimeExports.jsxs(_.default,{direction:"row",gap:.5,preset:"center",children:[n?e.jsxRuntimeExports.jsx("div",{className:a.cx("kakadu-components-743909038",t?"kakadu-components-1285017646":"kakadu-components-1475172827"),children:typeof n=="string"?e.jsxRuntimeExports.jsx(c.default,{width:14,height:14,type:n}):n}):null,t?e.jsxRuntimeExports.jsx("span",{className:a.cx("kakadu-components-743909038",v&&"kakadu-components-2703794515"),children:t}):e.jsxRuntimeExports.jsx(N.default,{children:B}),o?e.jsxRuntimeExports.jsx("div",{className:a.cx("kakadu-components-743909038",t?"kakadu-components-2421728947":"kakadu-components-1475172827"),children:typeof o=="string"?e.jsxRuntimeExports.jsx(c.default,{width:14,height:14,type:o}):o}):null]}),e.jsxRuntimeExports.jsx("span",{className:"kakadu-components-1970948853",children:r?null:e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(h.default,{size:t?void 0:50}),e.jsxRuntimeExports.jsx(d.default,{size:t?void 0:50,className:d.normalBlendStyles})]})}),x?e.jsxRuntimeExports.jsx(b.default,{label:x,position:p}):null]}),u?e.jsxRuntimeExports.jsx("div",{className:"kakadu-components-1970948853",children:e.jsxRuntimeExports.jsx(w.SkeletonInstance,{width:"100%",height:"100%",isAnimated:R})}):null]})}exports.default=z;exports.textButtonVariants=S;
@@ -1,4 +1,4 @@
1
- import { j as o } from "../jsx-runtime-B4hRZ52C.mjs";
1
+ import { j as o } from "../jsx-runtime-z6PQ6F3d.mjs";
2
2
  import { cx as n } from "@kuma-ui/core";
3
3
  import p from "../icons/icon.mjs";
4
4
  import N from "./flex.mjs";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("../jsx-runtime-BB_1_6y_.js"),a=require("@kuma-ui/core"),j=require("../theme.js"),c=require("./atom.js"),r="kakadu-components-1538322784",x="kakadu-components-739732526",m="h1";function l({reference:t,as:e,className:n,...o}){return s.jsxRuntimeExports.jsx(c.default,{reference:t,as:e??m,...o,className:a.cx(j.overflowProtectionStyles,r,"kakadu-components-3658929198",x,n)})}function f({as:t,id:e,children:n,className:o,...k}){return s.jsxRuntimeExports.jsx(l,{as:t??"h1",id:e,...k,className:a.cx(o),children:s.jsxRuntimeExports.jsx("a",{href:`#${e}`,className:"kakadu-components-1038708690",children:n})})}const u=a.cx("kakadu-components-162258071",x);function p({as:t,className:e,...n}){return s.jsxRuntimeExports.jsx(c.default,{as:t??"span",...n,className:a.cx(u,e)})}function i({as:t,className:e,...n}){return s.jsxRuntimeExports.jsx(c.default,{as:t??"p",...n,className:a.cx(u,"kakadu-components-3547863283",e)})}function S({as:t,className:e,...n}){return s.jsxRuntimeExports.jsx(i,{as:t??"small",...n,className:a.cx("kakadu-components-1696055534",e)})}function g({as:t,className:e,...n}){return s.jsxRuntimeExports.jsx(p,{as:t??"span",...n,className:a.cx("kakadu-components-1329768068",e)})}function d({as:t,width:e="text",className:n,...o}){return s.jsxRuntimeExports.jsx(c.default,{as:t??"div",...o,className:a.cx("kakadu-components-1896894881",e==="wide"&&"kakadu-components-81067145",e==="page"&&"kakadu-components-2433581593",e==="text"&&"kakadu-components-958855245",e==="content"&&"kakadu-components-797764377",n)})}function E(t){const{className:e}=t;return s.jsxRuntimeExports.jsx(d,{...t,className:a.cx("kakadu-components-3757870586",e)})}exports.AnchorHeading=f;exports.Footnote=S;exports.Heading=l;exports.Hero=E;exports.Label=g;exports.Paragraph=i;exports.Span=p;exports.default=d;exports.defaultHeadingElementType=m;exports.spanStyles=u;exports.textShadowStyles=r;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("../jsx-runtime-CZa898vN.js"),a=require("@kuma-ui/core"),j=require("../theme.js"),c=require("./atom.js"),r="kakadu-components-1538322784",x="kakadu-components-739732526",m="h1";function l({reference:t,as:e,className:n,...o}){return s.jsxRuntimeExports.jsx(c.default,{reference:t,as:e??m,...o,className:a.cx(j.overflowProtectionStyles,r,"kakadu-components-3658929198",x,n)})}function f({as:t,id:e,children:n,className:o,...k}){return s.jsxRuntimeExports.jsx(l,{as:t??"h1",id:e,...k,className:a.cx(o),children:s.jsxRuntimeExports.jsx("a",{href:`#${e}`,className:"kakadu-components-1038708690",children:n})})}const u=a.cx("kakadu-components-162258071",x);function p({as:t,className:e,...n}){return s.jsxRuntimeExports.jsx(c.default,{as:t??"span",...n,className:a.cx(u,e)})}function i({as:t,className:e,...n}){return s.jsxRuntimeExports.jsx(c.default,{as:t??"p",...n,className:a.cx(u,"kakadu-components-3547863283",e)})}function S({as:t,className:e,...n}){return s.jsxRuntimeExports.jsx(i,{as:t??"small",...n,className:a.cx("kakadu-components-1696055534",e)})}function g({as:t,className:e,...n}){return s.jsxRuntimeExports.jsx(p,{as:t??"span",...n,className:a.cx("kakadu-components-1329768068",e)})}function d({as:t,width:e="text",className:n,...o}){return s.jsxRuntimeExports.jsx(c.default,{as:t??"div",...o,className:a.cx("kakadu-components-1896894881",e==="wide"&&"kakadu-components-81067145",e==="page"&&"kakadu-components-2433581593",e==="text"&&"kakadu-components-958855245",e==="content"&&"kakadu-components-797764377",n)})}function E(t){const{className:e}=t;return s.jsxRuntimeExports.jsx(d,{...t,className:a.cx("kakadu-components-3757870586",e)})}exports.AnchorHeading=f;exports.Footnote=S;exports.Heading=l;exports.Hero=E;exports.Label=g;exports.Paragraph=i;exports.Span=p;exports.default=d;exports.defaultHeadingElementType=m;exports.spanStyles=u;exports.textShadowStyles=r;
@@ -1,4 +1,4 @@
1
- import { j as o } from "../jsx-runtime-B4hRZ52C.mjs";
1
+ import { j as o } from "../jsx-runtime-z6PQ6F3d.mjs";
2
2
  import { cx as t } from "@kuma-ui/core";
3
3
  import { overflowProtectionStyles as k } from "../theme.mjs";
4
4
  import c from "./atom.mjs";
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("../jsx-runtime-BB_1_6y_.js"),m=require("react"),o=["system","light","dark"];function u(e){const[t,r]=m.useState("light");return m.useEffect(()=>{const n=e&&"current"in e?e.current:e,s=(n==null?void 0:n.closest("[data-theme]"))??document.documentElement,a=()=>{s.dataset.theme&&r(s.dataset.theme)};if(typeof window<"u"&&"MutationObserver"in window){const c=new window.MutationObserver(i=>{for(const h of i)h.type==="attributes"&&a()});return a(),c.observe(s,{attributes:!0}),c.observe(document.documentElement,{attributes:!0}),()=>{c.disconnect()}}},[e]),t}function l(e){return u(e)==="light"}function g(e){return u(e)==="dark"}const w=`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("../jsx-runtime-CZa898vN.js"),m=require("react"),o=["system","light","dark"];function u(e){const[t,r]=m.useState("light");return m.useEffect(()=>{const n=e&&"current"in e?e.current:e,s=(n==null?void 0:n.closest("[data-theme]"))??document.documentElement,a=()=>{s.dataset.theme&&r(s.dataset.theme)};if(typeof window<"u"&&"MutationObserver"in window){const c=new window.MutationObserver(i=>{for(const h of i)h.type==="attributes"&&a()});return a(),c.observe(s,{attributes:!0}),c.observe(document.documentElement,{attributes:!0}),()=>{c.disconnect()}}},[e]),t}function l(e){return u(e)==="light"}function g(e){return u(e)==="dark"}const w=`
2
2
  try {
3
3
  var themePreference = window.localStorage.getItem("theme-preference") || "system";
4
4
 
@@ -1,4 +1,4 @@
1
- import { j as h } from "../jsx-runtime-B4hRZ52C.mjs";
1
+ import { j as h } from "../jsx-runtime-z6PQ6F3d.mjs";
2
2
  import { useEffect as o, useState as f } from "react";
3
3
  const a = ["system", "light", "dark"];
4
4
  function d(e) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../jsx-runtime-BB_1_6y_.js"),o=require("react"),u=require("@kuma-ui/core"),i=require("./moving-gradients.js"),c=require("./moving-stars.js"),a=require("./theme-setter.js");function m({className:r,hasMovingStars:n=!0}){const t=o.useRef(null),s=a.useIsDarkTheme(t);return e.jsxRuntimeExports.jsxs("div",{ref:t,className:u.cx("kakadu-components-560222664",r),children:[e.jsxRuntimeExports.jsx(i.default,{opacity:s?.1:.2,className:"kakadu-components-947991810"}),n?e.jsxRuntimeExports.jsx(c.default,{opacity:s?.1:.2}):null]})}exports.default=m;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../jsx-runtime-CZa898vN.js"),o=require("react"),u=require("@kuma-ui/core"),i=require("./moving-gradients.js"),c=require("./moving-stars.js"),a=require("./theme-setter.js");function m({className:r,hasMovingStars:n=!0}){const t=o.useRef(null),s=a.useIsDarkTheme(t);return e.jsxRuntimeExports.jsxs("div",{ref:t,className:u.cx("kakadu-components-560222664",r),children:[e.jsxRuntimeExports.jsx(i.default,{opacity:s?.1:.2,className:"kakadu-components-947991810"}),n?e.jsxRuntimeExports.jsx(c.default,{opacity:s?.1:.2}):null]})}exports.default=m;
@@ -1,4 +1,4 @@
1
- import { j as o } from "../jsx-runtime-B4hRZ52C.mjs";
1
+ import { j as o } from "../jsx-runtime-z6PQ6F3d.mjs";
2
2
  import { useRef as m } from "react";
3
3
  import { cx as a } from "@kuma-ui/core";
4
4
  import i from "./moving-gradients.mjs";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../jsx-runtime-BB_1_6y_.js"),n=require("@kuma-ui/core"),j=require("./atom.js"),o=require("./flex.js"),g=["wide","page","text","content"];function q({as:s,gap:a,direction:r,preset:u,distribution:c,alignment:p,wrap:m,width:e="page",className:d,innerClassName:i,children:l,outerChildrenBefore:k,outerChildrenAfter:x,...f}){return t.jsxRuntimeExports.jsxs(o.default,{as:s??j.defaultAtomElementType,...f,className:n.cx("kakadu-components-847862034",d),children:[k,t.jsxRuntimeExports.jsx(o.default,{direction:r,preset:u,distribution:c,alignment:p,wrap:m,gap:a,className:n.cx("kakadu-components-1099799322",e==="wide"&&"kakadu-components-2350609268",e==="page"&&"kakadu-components-3142729958",e==="text"&&"kakadu-components-2670503515",e==="content"&&"kakadu-components-259932668",i),children:l}),x]})}exports.default=q;exports.wrapperWidths=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../jsx-runtime-CZa898vN.js"),n=require("@kuma-ui/core"),j=require("./atom.js"),o=require("./flex.js"),g=["wide","page","text","content"];function q({as:s,gap:a,direction:r,preset:u,distribution:c,alignment:p,wrap:m,width:e="page",className:d,innerClassName:i,children:l,outerChildrenBefore:k,outerChildrenAfter:x,...f}){return t.jsxRuntimeExports.jsxs(o.default,{as:s??j.defaultAtomElementType,...f,className:n.cx("kakadu-components-847862034",d),children:[k,t.jsxRuntimeExports.jsx(o.default,{direction:r,preset:u,distribution:c,alignment:p,wrap:m,gap:a,className:n.cx("kakadu-components-1099799322",e==="wide"&&"kakadu-components-2350609268",e==="page"&&"kakadu-components-3142729958",e==="text"&&"kakadu-components-2670503515",e==="content"&&"kakadu-components-259932668",i),children:l}),x]})}exports.default=q;exports.wrapperWidths=g;
@@ -1,4 +1,4 @@
1
- import { j as o } from "../jsx-runtime-B4hRZ52C.mjs";
1
+ import { j as o } from "../jsx-runtime-z6PQ6F3d.mjs";
2
2
  import { cx as a } from "@kuma-ui/core";
3
3
  import { defaultAtomElementType as j } from "./atom.mjs";
4
4
  import t from "./flex.mjs";
@@ -1,9 +1,9 @@
1
1
  "use strict";const Fe=require("react"),be=require("./_commonjsHelpers-DGT2Y9Xa.js");var Y={exports:{}};/*!
2
- * tabbable 6.4.0
2
+ * tabbable 6.5.0
3
3
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
4
- */var pe=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],J=pe.join(","),he=typeof Element>"u",M=he?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Q=!he&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n==null?void 0:n.ownerDocument},ee=function(e,t){var o;t===void 0&&(t=!0);var s=e==null||(o=e.getAttribute)===null||o===void 0?void 0:o.call(e,"inert"),l=s===""||s==="true",a=l||t&&e&&(typeof e.closest=="function"?e.closest("[inert]"):ee(e.parentNode));return a},Oe=function(e){var t,o=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return o===""||o==="true"},ye=function(e,t,o){if(ee(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(J));return t&&M.call(e,J)&&s.unshift(e),s=s.filter(o),s},te=function(e,t,o){for(var s=[],l=Array.from(e);l.length;){var a=l.shift();if(!ee(a,!1))if(a.tagName==="SLOT"){var y=a.assignedElements(),w=y.length?y:a.children,F=te(w,!0,o);o.flatten?s.push.apply(s,F):s.push({scopeParent:a,candidates:F})}else{var k=M.call(a,J);k&&o.filter(a)&&(t||!e.includes(a))&&s.push(a);var D=a.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(a),R=!ee(D,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(a));if(D&&R){var j=te(D===!0?a.children:D.children,!0,o);o.flatten?s.push.apply(s,j):s.push({scopeParent:a,candidates:j})}else l.unshift.apply(l,a.children)}}return s},me=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},L=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Oe(e))&&!me(e)?0:e.tabIndex},ke=function(e,t){var o=L(e);return o<0&&t&&!me(e)?0:o},De=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},ge=function(e){return e.tagName==="INPUT"},Ne=function(e){return ge(e)&&e.type==="hidden"},Re=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(o){return o.tagName==="SUMMARY"});return t},Pe=function(e,t){for(var o=0;o<e.length;o++)if(e[o].checked&&e[o].form===t)return e[o]},Ce=function(e){if(!e.name)return!0;var t=e.form||Q(e),o=function(y){return t.querySelectorAll('input[type="radio"][name="'+y+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=o(window.CSS.escape(e.name));else try{s=o(e.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var l=Pe(s,e.form);return!l||l===e},Ae=function(e){return ge(e)&&e.type==="radio"},Ie=function(e){return Ae(e)&&!Ce(e)},je=function(e){var t,o=e&&Q(e),s=(t=o)===null||t===void 0?void 0:t.host,l=!1;if(o&&o!==e){var a,y,w;for(l=!!((a=s)!==null&&a!==void 0&&(y=a.ownerDocument)!==null&&y!==void 0&&y.contains(s)||e!=null&&(w=e.ownerDocument)!==null&&w!==void 0&&w.contains(e));!l&&s;){var F,k,D;o=Q(s),s=(F=o)===null||F===void 0?void 0:F.host,l=!!((k=s)!==null&&k!==void 0&&(D=k.ownerDocument)!==null&&D!==void 0&&D.contains(s))}}return l},se=function(e){var t=e.getBoundingClientRect(),o=t.width,s=t.height;return o===0&&s===0},_e=function(e,t){var o=t.displayCheck,s=t.getShadowRoot;if(o==="full-native"&&"checkVisibility"in e){var l=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!l}if(getComputedStyle(e).visibility==="hidden")return!0;var a=M.call(e,"details>summary:first-of-type"),y=a?e.parentElement:e;if(M.call(y,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="full-native"||o==="legacy-full"){if(typeof s=="function"){for(var w=e;e;){var F=e.parentElement,k=Q(e);if(F&&!F.shadowRoot&&s(F)===!0)return se(e);e.assignedSlot?e=e.assignedSlot:!F&&k!==e.ownerDocument?e=k.host:e=F}e=w}if(je(e))return!e.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return se(e);return!1},xe=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var o=0;o<t.children.length;o++){var s=t.children.item(o);if(s.tagName==="LEGEND")return M.call(t,"fieldset[disabled] *")?!0:!s.contains(e)}return!0}t=t.parentElement}return!1},re=function(e,t){return!(t.disabled||Ne(t)||_e(t,e)||Re(t)||xe(t))},oe=function(e,t){return!(Ie(t)||L(t)<0||!re(e,t))},Le=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Te=function(e){var t=[],o=[];return e.forEach(function(s,l){var a=!!s.scopeParent,y=a?s.scopeParent:s,w=ke(y,a),F=a?Te(s.candidates):y;w===0?a?t.push.apply(t,F):t.push(y):o.push({documentOrder:l,tabIndex:w,item:s,isScope:a,content:F})}),o.sort(De).reduce(function(s,l){return l.isScope?s.push.apply(s,l.content):s.push(l.content),s},[]).concat(t)},we=function(e,t){t=t||{};var o;return t.getShadowRoot?o=te([e],t.includeContainer,{filter:oe.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Le}):o=ye(e,t.includeContainer,oe.bind(null,t)),Te(o)},Se=function(e,t){t=t||{};var o;return t.getShadowRoot?o=te([e],t.includeContainer,{filter:re.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):o=ye(e,t.includeContainer,re.bind(null,t)),o},K=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return M.call(e,J)===!1?!1:oe(t,e)},Be=pe.concat("iframe:not([inert]):not([inert] *)").join(","),X=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return M.call(e,Be)===!1?!1:re(t,e)};const Ke=Object.freeze(Object.defineProperty({__proto__:null,focusable:Se,getTabIndex:L,isFocusable:X,isTabbable:K,tabbable:we},Symbol.toStringTag,{value:"Module"}));/*!
4
+ */var pe=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],J=pe.join(","),he=typeof Element>"u",M=he?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Q=!he&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n==null?void 0:n.ownerDocument},ee=function(e,t){var o;t===void 0&&(t=!0);var s=e==null||(o=e.getAttribute)===null||o===void 0?void 0:o.call(e,"inert"),l=s===""||s==="true",a=l||t&&e&&(typeof e.closest=="function"?e.closest("[inert]"):ee(e.parentNode));return a},Oe=function(e){var t,o=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return o===""||o==="true"},ye=function(e,t,o){if(ee(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(J));return t&&M.call(e,J)&&s.unshift(e),s=s.filter(o),s},te=function(e,t,o){for(var s=[],l=Array.from(e);l.length;){var a=l.shift();if(!ee(a,!1))if(a.tagName==="SLOT"){var y=a.assignedElements(),w=y.length?y:a.children,O=te(w,!0,o);o.flatten?s.push.apply(s,O):s.push({scopeParent:a,candidates:O})}else{var D=M.call(a,J);D&&o.filter(a)&&(t||!e.includes(a))&&s.push(a);var F=a.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(a),N=!ee(F,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(a));if(F&&N){var j=te(F===!0?a.children:F.children,!0,o);o.flatten?s.push.apply(s,j):s.push({scopeParent:a,candidates:j})}else l.unshift.apply(l,a.children)}}return s},me=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},L=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Oe(e))&&!me(e)?0:e.tabIndex},ke=function(e,t){var o=L(e);return o<0&&t&&!me(e)?0:o},De=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},ge=function(e){return e.tagName==="INPUT"},Ne=function(e){return ge(e)&&e.type==="hidden"},Re=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(o){return o.tagName==="SUMMARY"});return t},Pe=function(e,t){for(var o=0;o<e.length;o++)if(e[o].checked&&e[o].form===t)return e[o]},Ce=function(e){if(!e.name)return!0;var t=e.form||Q(e),o=function(y){return t.querySelectorAll('input[type="radio"][name="'+y+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=o(window.CSS.escape(e.name));else try{s=o(e.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var l=Pe(s,e.form);return!l||l===e},Ae=function(e){return ge(e)&&e.type==="radio"},Ie=function(e){return Ae(e)&&!Ce(e)},je=function(e){var t,o=e&&Q(e),s=(t=o)===null||t===void 0?void 0:t.host,l=!1;if(o&&o!==e){var a,y,w;for(l=!!((a=s)!==null&&a!==void 0&&(y=a.ownerDocument)!==null&&y!==void 0&&y.contains(s)||e!=null&&(w=e.ownerDocument)!==null&&w!==void 0&&w.contains(e));!l&&s;){var O,D,F;o=Q(s),s=(O=o)===null||O===void 0?void 0:O.host,l=!!((D=s)!==null&&D!==void 0&&(F=D.ownerDocument)!==null&&F!==void 0&&F.contains(s))}}return l},se=function(e){var t=e.getBoundingClientRect(),o=t.width,s=t.height;return o===0&&s===0},_e=function(e,t){var o=t.displayCheck,s=t.getShadowRoot;if(o==="full-native"&&"checkVisibility"in e){var l=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!l}var a=getComputedStyle(e),y=a.visibility;if(y==="hidden"||y==="collapse")return!0;var w=M.call(e,"details>summary:first-of-type"),O=w?e.parentElement:e;if(M.call(O,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="full-native"||o==="legacy-full"){if(typeof s=="function"){for(var D=e;e;){var F=e.parentElement,N=Q(e);if(F&&!F.shadowRoot&&s(F)===!0)return se(e);e.assignedSlot?e=e.assignedSlot:!F&&N!==e.ownerDocument?e=N.host:e=F}e=D}if(je(e))return!e.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return se(e);return!1},xe=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var o=0;o<t.children.length;o++){var s=t.children.item(o);if(s.tagName==="LEGEND")return M.call(t,"fieldset[disabled] *")?!0:!s.contains(e)}return!0}t=t.parentElement}return!1},re=function(e,t){return!(t.disabled||Ne(t)||_e(t,e)||Re(t)||xe(t))},oe=function(e,t){return!(Ie(t)||L(t)<0||!re(e,t))},Le=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Te=function(e){var t=[],o=[];return e.forEach(function(s,l){var a=!!s.scopeParent,y=a?s.scopeParent:s,w=ke(y,a),O=a?Te(s.candidates):y;w===0?a?t.push.apply(t,O):t.push(y):o.push({documentOrder:l,tabIndex:w,item:s,isScope:a,content:O})}),o.sort(De).reduce(function(s,l){return l.isScope?s.push.apply(s,l.content):s.push(l.content),s},[]).concat(t)},we=function(e,t){t=t||{};var o;return t.getShadowRoot?o=te([e],t.includeContainer,{filter:oe.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Le}):o=ye(e,t.includeContainer,oe.bind(null,t)),Te(o)},Se=function(e,t){t=t||{};var o;return t.getShadowRoot?o=te([e],t.includeContainer,{filter:re.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):o=ye(e,t.includeContainer,re.bind(null,t)),o},K=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return M.call(e,J)===!1?!1:oe(t,e)},Be=pe.concat("iframe:not([inert]):not([inert] *)").join(","),X=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return M.call(e,Be)===!1?!1:re(t,e)};const Ke=Object.freeze(Object.defineProperty({__proto__:null,focusable:Se,getTabIndex:L,isFocusable:X,isTabbable:K,tabbable:we},Symbol.toStringTag,{value:"Module"}));/*!
5
5
  * focus-trap 7.8.0
6
6
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
7
7
  */function ue(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,o=Array(e);t<e;t++)o[t]=n[t];return o}function Me(n){if(Array.isArray(n))return ue(n)}function ce(n,e){var t=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=Ee(n))||e){t&&(n=t);var o=0,s=function(){};return{s,n:function(){return o>=n.length?{done:!0}:{done:!1,value:n[o++]}},e:function(w){throw w},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
8
8
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,a=!0,y=!1;return{s:function(){t=t.call(n)},n:function(){var w=t.next();return a=w.done,w},e:function(w){y=!0,l=w},f:function(){try{a||t.return==null||t.return()}finally{if(y)throw l}}}}function qe(n,e,t){return(e=We(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Ve(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function Ge(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
9
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function le(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable})),t.push.apply(t,o)}return t}function fe(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?le(Object(t),!0).forEach(function(o){qe(n,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):le(Object(t)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(t,o))})}return n}function $e(n){return Me(n)||Ve(n)||Ee(n)||Ge()}function Ue(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var o=t.call(n,e);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function We(n){var e=Ue(n,"string");return typeof e=="symbol"?e:e+""}function Ee(n,e){if(n){if(typeof n=="string")return ue(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ue(n,e):void 0}}var I={getActiveTrap:function(e){return(e==null?void 0:e.length)>0?e[e.length-1]:null},activateTrap:function(e,t){var o=I.getActiveTrap(e);t!==o&&I.pauseTrap(e);var s=e.indexOf(t);s===-1||e.splice(s,1),e.push(t)},deactivateTrap:function(e,t){var o=e.indexOf(t);o!==-1&&e.splice(o,1),I.unpauseTrap(e)},pauseTrap:function(e){var t=I.getActiveTrap(e);t==null||t._setPausedState(!0)},unpauseTrap:function(e){var t=I.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},ze=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},He=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},$=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Ye=function(e){return $(e)&&!e.shiftKey},Ze=function(e){return $(e)&&e.shiftKey},de=function(e){return setTimeout(e,0)},G=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];return typeof e=="function"?e.apply(void 0,o):e},Z=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Xe=[],Je=function(e,t){var o=(t==null?void 0:t.document)||document,s=(t==null?void 0:t.trapStack)||Xe,l=fe({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:Ye,isKeyBackward:Ze},t),a={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},y,w=function(i,r,c){return i&&i[r]!==void 0?i[r]:l[c||r]},F=function(i,r){var c=typeof(r==null?void 0:r.composedPath)=="function"?r.composedPath():void 0;return a.containerGroups.findIndex(function(h){var p=h.container,g=h.tabbableNodes;return p.contains(i)||(c==null?void 0:c.includes(p))||g.find(function(v){return v===i})})},k=function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=r.hasFallback,h=c===void 0?!1:c,p=r.params,g=p===void 0?[]:p,v=l[i];if(typeof v=="function"&&(v=v.apply(void 0,$e(g))),v===!0&&(v=void 0),!v){if(v===void 0||v===!1)return v;throw new Error("`".concat(i,"` was specified but was not a node, or did not return a node"))}var S=v;if(typeof v=="string"){try{S=o.querySelector(v)}catch(E){throw new Error("`".concat(i,'` appears to be an invalid selector; error="').concat(E.message,'"'))}if(!S&&!h)throw new Error("`".concat(i,"` as selector refers to no known node"))}return S},D=function(){var i=k("initialFocus",{hasFallback:!0});if(i===!1)return!1;if(i===void 0||i&&!X(i,l.tabbableOptions))if(F(o.activeElement)>=0)i=o.activeElement;else{var r=a.tabbableGroups[0],c=r&&r.firstTabbableNode;i=c||k("fallbackFocus")}else i===null&&(i=k("fallbackFocus"));if(!i)throw new Error("Your focus-trap needs to have at least one focusable element");return i},R=function(){if(a.containerGroups=a.containers.map(function(i){var r=we(i,l.tabbableOptions),c=Se(i,l.tabbableOptions),h=r.length>0?r[0]:void 0,p=r.length>0?r[r.length-1]:void 0,g=c.find(function(E){return K(E)}),v=c.slice().reverse().find(function(E){return K(E)}),S=!!r.find(function(E){return L(E)>0});return{container:i,tabbableNodes:r,focusableNodes:c,posTabIndexesFound:S,firstTabbableNode:h,lastTabbableNode:p,firstDomTabbableNode:g,lastDomTabbableNode:v,nextTabbableNode:function(N){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,C=r.indexOf(N);return C<0?A?c.slice(c.indexOf(N)+1).find(function(B){return K(B)}):c.slice(0,c.indexOf(N)).reverse().find(function(B){return K(B)}):r[C+(A?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(i){return i.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!k("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(a.containerGroups.find(function(i){return i.posTabIndexesFound})&&a.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},j=function(i){var r=i.activeElement;if(r)return r.shadowRoot&&r.shadowRoot.activeElement!==null?j(r.shadowRoot):r},P=function(i){if(i!==!1&&i!==j(document)){if(!i||!i.focus){P(D());return}i.focus({preventScroll:!!l.preventScroll}),a.mostRecentlyFocusedNode=i,ze(i)&&i.select()}},U=function(i){var r=k("setReturnFocus",{params:[i]});return r||(r===!1?!1:i)},_=function(i){var r=i.target,c=i.event,h=i.isBackward,p=h===void 0?!1:h;r=r||Z(c),R();var g=null;if(a.tabbableGroups.length>0){var v=F(r,c),S=v>=0?a.containerGroups[v]:void 0;if(v<0)p?g=a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:g=a.tabbableGroups[0].firstTabbableNode;else if(p){var E=a.tabbableGroups.findIndex(function(ne){var ie=ne.firstTabbableNode;return r===ie});if(E<0&&(S.container===r||X(r,l.tabbableOptions)&&!K(r,l.tabbableOptions)&&!S.nextTabbableNode(r,!1))&&(E=v),E>=0){var N=E===0?a.tabbableGroups.length-1:E-1,A=a.tabbableGroups[N];g=L(r)>=0?A.lastTabbableNode:A.lastDomTabbableNode}else $(c)||(g=S.nextTabbableNode(r,!1))}else{var C=a.tabbableGroups.findIndex(function(ne){var ie=ne.lastTabbableNode;return r===ie});if(C<0&&(S.container===r||X(r,l.tabbableOptions)&&!K(r,l.tabbableOptions)&&!S.nextTabbableNode(r))&&(C=v),C>=0){var B=C===a.tabbableGroups.length-1?0:C+1,x=a.tabbableGroups[B];g=L(r)>=0?x.firstTabbableNode:x.firstDomTabbableNode}else $(c)||(g=S.nextTabbableNode(r))}}else g=k("fallbackFocus");return g},q=function(i){var r=Z(i);if(!(F(r,i)>=0)){if(G(l.clickOutsideDeactivates,i)){y.deactivate({returnFocus:l.returnFocusOnDeactivate});return}G(l.allowOutsideClick,i)||i.preventDefault()}},W=function(i){var r=Z(i),c=F(r,i)>=0;if(c||r instanceof Document)c&&(a.mostRecentlyFocusedNode=r);else{i.stopImmediatePropagation();var h,p=!0;if(a.mostRecentlyFocusedNode)if(L(a.mostRecentlyFocusedNode)>0){var g=F(a.mostRecentlyFocusedNode),v=a.containerGroups[g].tabbableNodes;if(v.length>0){var S=v.findIndex(function(E){return E===a.mostRecentlyFocusedNode});S>=0&&(l.isKeyForward(a.recentNavEvent)?S+1<v.length&&(h=v[S+1],p=!1):S-1>=0&&(h=v[S-1],p=!1))}}else a.containerGroups.some(function(E){return E.tabbableNodes.some(function(N){return L(N)>0})})||(p=!1);else p=!1;p&&(h=_({target:a.mostRecentlyFocusedNode,isBackward:l.isKeyBackward(a.recentNavEvent)})),P(h||a.mostRecentlyFocusedNode||D())}a.recentNavEvent=void 0},ae=function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;a.recentNavEvent=i;var c=_({event:i,isBackward:r});c&&($(i)&&i.preventDefault(),P(c))},z=function(i){(l.isKeyForward(i)||l.isKeyBackward(i))&&ae(i,l.isKeyBackward(i))},H=function(i){He(i)&&G(l.escapeDeactivates,i)!==!1&&(i.preventDefault(),y.deactivate())},V=function(i){var r=Z(i);F(r,i)>=0||G(l.clickOutsideDeactivates,i)||G(l.allowOutsideClick,i)||(i.preventDefault(),i.stopImmediatePropagation())},d=function(){if(a.active)return I.activateTrap(s,y),a.delayInitialFocusTimer=l.delayInitialFocus?de(function(){P(D())}):P(D()),o.addEventListener("focusin",W,!0),o.addEventListener("mousedown",q,{capture:!0,passive:!1}),o.addEventListener("touchstart",q,{capture:!0,passive:!1}),o.addEventListener("click",V,{capture:!0,passive:!1}),o.addEventListener("keydown",z,{capture:!0,passive:!1}),o.addEventListener("keydown",H),y},f=function(i){a.active&&!a.paused&&y._setSubtreeIsolation(!1),a.adjacentElements.clear(),a.alreadySilent.clear();var r=new Set,c=new Set,h=ce(i),p;try{for(h.s();!(p=h.n()).done;){var g=p.value;r.add(g);for(var v=typeof ShadowRoot<"u"&&g.getRootNode()instanceof ShadowRoot,S=g;S;){r.add(S);var E=S.parentElement,N=[];E?N=E.children:!E&&v&&(N=S.getRootNode().children,E=S.getRootNode().host,v=typeof ShadowRoot<"u"&&E.getRootNode()instanceof ShadowRoot);var A=ce(N),C;try{for(A.s();!(C=A.n()).done;){var B=C.value;c.add(B)}}catch(x){A.e(x)}finally{A.f()}S=E}}}catch(x){h.e(x)}finally{h.f()}r.forEach(function(x){c.delete(x)}),a.adjacentElements=c},m=function(){if(a.active)return o.removeEventListener("focusin",W,!0),o.removeEventListener("mousedown",q,!0),o.removeEventListener("touchstart",q,!0),o.removeEventListener("click",V,!0),o.removeEventListener("keydown",z,!0),o.removeEventListener("keydown",H),y},u=function(i){var r=i.some(function(c){var h=Array.from(c.removedNodes);return h.some(function(p){return p===a.mostRecentlyFocusedNode})});r&&P(D())},T=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(u):void 0,O=function(){T&&(T.disconnect(),a.active&&!a.paused&&a.containers.map(function(i){T.observe(i,{subtree:!0,childList:!0})}))};return y={get active(){return a.active},get paused(){return a.paused},activate:function(i){if(a.active)return this;var r=w(i,"onActivate"),c=w(i,"onPostActivate"),h=w(i,"checkCanFocusTrap"),p=I.getActiveTrap(s),g=!1;if(p&&!p.paused){var v;(v=p._setSubtreeIsolation)===null||v===void 0||v.call(p,!1),g=!0}try{h||R(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=j(o),r==null||r();var S=function(){h&&R(),d(),O(),l.isolateSubtrees&&y._setSubtreeIsolation(!0),c==null||c()};if(h)return h(a.containers.concat()).then(S,S),this;S()}catch(N){if(p===I.getActiveTrap(s)&&g){var E;(E=p._setSubtreeIsolation)===null||E===void 0||E.call(p,!0)}throw N}return this},deactivate:function(i){if(!a.active)return this;var r=fe({onDeactivate:l.onDeactivate,onPostDeactivate:l.onPostDeactivate,checkCanReturnFocus:l.checkCanReturnFocus},i);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,a.paused||y._setSubtreeIsolation(!1),a.alreadySilent.clear(),m(),a.active=!1,a.paused=!1,O(),I.deactivateTrap(s,y);var c=w(r,"onDeactivate"),h=w(r,"onPostDeactivate"),p=w(r,"checkCanReturnFocus"),g=w(r,"returnFocus","returnFocusOnDeactivate");c==null||c();var v=function(){de(function(){g&&P(U(a.nodeFocusedBeforeActivation)),h==null||h()})};return g&&p?(p(U(a.nodeFocusedBeforeActivation)).then(v,v),this):(v(),this)},pause:function(i){return a.active?(a.manuallyPaused=!0,this._setPausedState(!0,i)):this},unpause:function(i){return a.active?(a.manuallyPaused=!1,s[s.length-1]!==this?this:this._setPausedState(!1,i)):this},updateContainerElements:function(i){var r=[].concat(i).filter(Boolean);return a.containers=r.map(function(c){return typeof c=="string"?o.querySelector(c):c}),l.isolateSubtrees&&f(a.containers),a.active&&(R(),l.isolateSubtrees&&!a.paused&&y._setSubtreeIsolation(!0)),O(),this}},Object.defineProperties(y,{_isManuallyPaused:{value:function(){return a.manuallyPaused}},_setPausedState:{value:function(i,r){if(a.paused===i)return this;if(a.paused=i,i){var c=w(r,"onPause"),h=w(r,"onPostPause");c==null||c(),m(),O(),y._setSubtreeIsolation(!1),h==null||h()}else{var p=w(r,"onUnpause"),g=w(r,"onPostUnpause");p==null||p(),y._setSubtreeIsolation(!0),R(),d(),O(),g==null||g()}return this}},_setSubtreeIsolation:{value:function(i){l.isolateSubtrees&&a.adjacentElements.forEach(function(r){var c;if(i)switch(l.isolateSubtrees){case"aria-hidden":(r.ariaHidden==="true"||((c=r.getAttribute("aria-hidden"))===null||c===void 0?void 0:c.toLowerCase())==="true")&&a.alreadySilent.add(r),r.setAttribute("aria-hidden","true");break;default:(r.inert||r.hasAttribute("inert"))&&a.alreadySilent.add(r),r.setAttribute("inert",!0);break}else if(!a.alreadySilent.has(r))switch(l.isolateSubtrees){case"aria-hidden":r.removeAttribute("aria-hidden");break;default:r.removeAttribute("inert");break}})}}}),y.updateContainerElements(e),y};const Qe=Object.freeze(Object.defineProperty({__proto__:null,createFocusTrap:Je},Symbol.toStringTag,{value:"Module"})),et=be.getAugmentedNamespace(Qe),tt=be.getAugmentedNamespace(Ke);var ve;function rt(){if(ve)return Y.exports;ve=1;function n(d){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},n(d)}var e,t;function o(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function s(d,f){for(var m=0;m<f.length;m++){var u=f[m];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(d,P(u.key),u)}}function l(d,f,m){return f&&s(d.prototype,f),Object.defineProperty(d,"prototype",{writable:!1}),d}function a(d,f,m){return f=k(f),y(d,F()?Reflect.construct(f,m||[],k(d).constructor):f.apply(d,m))}function y(d,f){if(f&&(n(f)=="object"||typeof f=="function"))return f;if(f!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return w(d)}function w(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function F(){try{var d=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F=function(){return!!d})()}function k(d){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(f){return f.__proto__||Object.getPrototypeOf(f)},k(d)}function D(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),Object.defineProperty(d,"prototype",{writable:!1}),f&&R(d,f)}function R(d,f){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,u){return m.__proto__=u,m},R(d,f)}function j(d,f,m){return(f=P(f))in d?Object.defineProperty(d,f,{value:m,enumerable:!0,configurable:!0,writable:!0}):d[f]=m,d}function P(d){var f=U(d,"string");return n(f)=="symbol"?f:f+""}function U(d,f){if(n(d)!="object"||!d)return d;var m=d[Symbol.toPrimitive];if(m!==void 0){var u=m.call(d,f);if(n(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(d)}var _=Fe,q=et,W=q.createFocusTrap,ae=tt,z=ae.isFocusable,H=parseInt((e=(t=/^(\d+)\./.exec(_.version))===null||t===void 0?void 0:t[1])!==null&&e!==void 0?e:0,10),V=(function(d){function f(m){var u;o(this,f),u=a(this,f,[m]),j(u,"getNodeForOption",function(b){var i,r=(i=this.internalOptions[b])!==null&&i!==void 0?i:this.originalOptions[b];if(typeof r=="function"){for(var c=arguments.length,h=new Array(c>1?c-1:0),p=1;p<c;p++)h[p-1]=arguments[p];r=r.apply(void 0,h)}if(r===!0&&(r=void 0),!r){if(r===void 0||r===!1)return r;throw new Error("`".concat(b,"` was specified but was not a node, or did not return a node"))}var g=r;if(typeof r=="string"){var v;if(g=(v=this.getDocument())===null||v===void 0?void 0:v.querySelector(r),!g)throw new Error("`".concat(b,"` as selector refers to no known node"))}return g}),u.handleDeactivate=u.handleDeactivate.bind(u),u.handlePostDeactivate=u.handlePostDeactivate.bind(u),u.handleClickOutsideDeactivates=u.handleClickOutsideDeactivates.bind(u),u.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:u.handleDeactivate,onPostDeactivate:u.handlePostDeactivate,clickOutsideDeactivates:u.handleClickOutsideDeactivates},u.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var T=m.focusTrapOptions;for(var O in T)if(Object.prototype.hasOwnProperty.call(T,O)){if(O==="returnFocusOnDeactivate"||O==="onDeactivate"||O==="onPostDeactivate"||O==="checkCanReturnFocus"||O==="clickOutsideDeactivates"){u.originalOptions[O]=T[O];continue}u.internalOptions[O]=T[O]}return u.outsideClick=null,u.focusTrapElements=m.containerElements||[],u.updatePreviousElement(),u}return D(f,d),l(f,[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||(typeof document<"u"?document:void 0)}},{key:"getReturnFocusNode",value:function(){var u=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return u||(u===!1?!1:this.previouslyFocusedElement)}},{key:"updatePreviousElement",value:function(){var u=this.getDocument();u&&(this.previouslyFocusedElement=u.activeElement)}},{key:"deactivateTrap",value:function(){!this.focusTrap||!this.focusTrap.active||this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(u){var T=typeof this.originalOptions.clickOutsideDeactivates=="function"?this.originalOptions.clickOutsideDeactivates.call(null,u):this.originalOptions.clickOutsideDeactivates;return T&&(this.outsideClick={target:u.target,allowDeactivation:T}),T}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var u=this,T=function(){var b=u.getReturnFocusNode(),i=!!(u.originalOptions.returnFocusOnDeactivate&&b!==null&&b!==void 0&&b.focus&&(!u.outsideClick||u.outsideClick.allowDeactivation&&!z(u.outsideClick.target,u.internalOptions.tabbableOptions))),r=u.internalOptions.preventScroll,c=r===void 0?!1:r;i&&b.focus({preventScroll:c}),u.originalOptions.onPostDeactivate&&u.originalOptions.onPostDeactivate.call(null),u.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(T,T):T()}},{key:"setupFocusTrap",value:function(){if(this.focusTrap)this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause());else{var u=this.focusTrapElements.some(Boolean);u&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(u){if(this.focusTrap){u.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var T=!u.active&&this.props.active,O=u.active&&!this.props.active,b=!u.paused&&this.props.paused,i=u.paused&&!this.props.paused;if(T&&(this.updatePreviousElement(),this.focusTrap.activate()),O){this.deactivateTrap();return}b&&this.focusTrap.pause(),i&&this.focusTrap.unpause()}else u.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var u=this,T=this.props.children?_.Children.only(this.props.children):void 0;if(T){if(T.type&&T.type===_.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");var O=function(r){var c=u.props.containerElements;T&&(H>=19?typeof T.props.ref=="function"?T.props.ref(r):T.props.ref&&(T.props.ref.current=r):typeof T.ref=="function"?T.ref(r):T.ref&&(T.ref.current=r)),u.focusTrapElements=c||[r]},b=_.cloneElement(T,{ref:O});return b}return null}}])})(_.Component);return V.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:W},Y.exports=V,Y.exports.FocusTrap=V,Y.exports}var at=rt();exports.focusTrapReactExports=at;
9
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function le(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable})),t.push.apply(t,o)}return t}function fe(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?le(Object(t),!0).forEach(function(o){qe(n,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):le(Object(t)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(t,o))})}return n}function $e(n){return Me(n)||Ve(n)||Ee(n)||Ge()}function Ue(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var o=t.call(n,e);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function We(n){var e=Ue(n,"string");return typeof e=="symbol"?e:e+""}function Ee(n,e){if(n){if(typeof n=="string")return ue(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ue(n,e):void 0}}var I={getActiveTrap:function(e){return(e==null?void 0:e.length)>0?e[e.length-1]:null},activateTrap:function(e,t){var o=I.getActiveTrap(e);t!==o&&I.pauseTrap(e);var s=e.indexOf(t);s===-1||e.splice(s,1),e.push(t)},deactivateTrap:function(e,t){var o=e.indexOf(t);o!==-1&&e.splice(o,1),I.unpauseTrap(e)},pauseTrap:function(e){var t=I.getActiveTrap(e);t==null||t._setPausedState(!0)},unpauseTrap:function(e){var t=I.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},ze=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},He=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},$=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Ye=function(e){return $(e)&&!e.shiftKey},Ze=function(e){return $(e)&&e.shiftKey},de=function(e){return setTimeout(e,0)},G=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];return typeof e=="function"?e.apply(void 0,o):e},Z=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Xe=[],Je=function(e,t){var o=(t==null?void 0:t.document)||document,s=(t==null?void 0:t.trapStack)||Xe,l=fe({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:Ye,isKeyBackward:Ze},t),a={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},y,w=function(i,r,c){return i&&i[r]!==void 0?i[r]:l[c||r]},O=function(i,r){var c=typeof(r==null?void 0:r.composedPath)=="function"?r.composedPath():void 0;return a.containerGroups.findIndex(function(h){var p=h.container,g=h.tabbableNodes;return p.contains(i)||(c==null?void 0:c.includes(p))||g.find(function(v){return v===i})})},D=function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=r.hasFallback,h=c===void 0?!1:c,p=r.params,g=p===void 0?[]:p,v=l[i];if(typeof v=="function"&&(v=v.apply(void 0,$e(g))),v===!0&&(v=void 0),!v){if(v===void 0||v===!1)return v;throw new Error("`".concat(i,"` was specified but was not a node, or did not return a node"))}var S=v;if(typeof v=="string"){try{S=o.querySelector(v)}catch(E){throw new Error("`".concat(i,'` appears to be an invalid selector; error="').concat(E.message,'"'))}if(!S&&!h)throw new Error("`".concat(i,"` as selector refers to no known node"))}return S},F=function(){var i=D("initialFocus",{hasFallback:!0});if(i===!1)return!1;if(i===void 0||i&&!X(i,l.tabbableOptions))if(O(o.activeElement)>=0)i=o.activeElement;else{var r=a.tabbableGroups[0],c=r&&r.firstTabbableNode;i=c||D("fallbackFocus")}else i===null&&(i=D("fallbackFocus"));if(!i)throw new Error("Your focus-trap needs to have at least one focusable element");return i},N=function(){if(a.containerGroups=a.containers.map(function(i){var r=we(i,l.tabbableOptions),c=Se(i,l.tabbableOptions),h=r.length>0?r[0]:void 0,p=r.length>0?r[r.length-1]:void 0,g=c.find(function(E){return K(E)}),v=c.slice().reverse().find(function(E){return K(E)}),S=!!r.find(function(E){return L(E)>0});return{container:i,tabbableNodes:r,focusableNodes:c,posTabIndexesFound:S,firstTabbableNode:h,lastTabbableNode:p,firstDomTabbableNode:g,lastDomTabbableNode:v,nextTabbableNode:function(R){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,C=r.indexOf(R);return C<0?A?c.slice(c.indexOf(R)+1).find(function(B){return K(B)}):c.slice(0,c.indexOf(R)).reverse().find(function(B){return K(B)}):r[C+(A?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(i){return i.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!D("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(a.containerGroups.find(function(i){return i.posTabIndexesFound})&&a.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},j=function(i){var r=i.activeElement;if(r)return r.shadowRoot&&r.shadowRoot.activeElement!==null?j(r.shadowRoot):r},P=function(i){if(i!==!1&&i!==j(document)){if(!i||!i.focus){P(F());return}i.focus({preventScroll:!!l.preventScroll}),a.mostRecentlyFocusedNode=i,ze(i)&&i.select()}},U=function(i){var r=D("setReturnFocus",{params:[i]});return r||(r===!1?!1:i)},_=function(i){var r=i.target,c=i.event,h=i.isBackward,p=h===void 0?!1:h;r=r||Z(c),N();var g=null;if(a.tabbableGroups.length>0){var v=O(r,c),S=v>=0?a.containerGroups[v]:void 0;if(v<0)p?g=a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:g=a.tabbableGroups[0].firstTabbableNode;else if(p){var E=a.tabbableGroups.findIndex(function(ne){var ie=ne.firstTabbableNode;return r===ie});if(E<0&&(S.container===r||X(r,l.tabbableOptions)&&!K(r,l.tabbableOptions)&&!S.nextTabbableNode(r,!1))&&(E=v),E>=0){var R=E===0?a.tabbableGroups.length-1:E-1,A=a.tabbableGroups[R];g=L(r)>=0?A.lastTabbableNode:A.lastDomTabbableNode}else $(c)||(g=S.nextTabbableNode(r,!1))}else{var C=a.tabbableGroups.findIndex(function(ne){var ie=ne.lastTabbableNode;return r===ie});if(C<0&&(S.container===r||X(r,l.tabbableOptions)&&!K(r,l.tabbableOptions)&&!S.nextTabbableNode(r))&&(C=v),C>=0){var B=C===a.tabbableGroups.length-1?0:C+1,x=a.tabbableGroups[B];g=L(r)>=0?x.firstTabbableNode:x.firstDomTabbableNode}else $(c)||(g=S.nextTabbableNode(r))}}else g=D("fallbackFocus");return g},q=function(i){var r=Z(i);if(!(O(r,i)>=0)){if(G(l.clickOutsideDeactivates,i)){y.deactivate({returnFocus:l.returnFocusOnDeactivate});return}G(l.allowOutsideClick,i)||i.preventDefault()}},W=function(i){var r=Z(i),c=O(r,i)>=0;if(c||r instanceof Document)c&&(a.mostRecentlyFocusedNode=r);else{i.stopImmediatePropagation();var h,p=!0;if(a.mostRecentlyFocusedNode)if(L(a.mostRecentlyFocusedNode)>0){var g=O(a.mostRecentlyFocusedNode),v=a.containerGroups[g].tabbableNodes;if(v.length>0){var S=v.findIndex(function(E){return E===a.mostRecentlyFocusedNode});S>=0&&(l.isKeyForward(a.recentNavEvent)?S+1<v.length&&(h=v[S+1],p=!1):S-1>=0&&(h=v[S-1],p=!1))}}else a.containerGroups.some(function(E){return E.tabbableNodes.some(function(R){return L(R)>0})})||(p=!1);else p=!1;p&&(h=_({target:a.mostRecentlyFocusedNode,isBackward:l.isKeyBackward(a.recentNavEvent)})),P(h||a.mostRecentlyFocusedNode||F())}a.recentNavEvent=void 0},ae=function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;a.recentNavEvent=i;var c=_({event:i,isBackward:r});c&&($(i)&&i.preventDefault(),P(c))},z=function(i){(l.isKeyForward(i)||l.isKeyBackward(i))&&ae(i,l.isKeyBackward(i))},H=function(i){He(i)&&G(l.escapeDeactivates,i)!==!1&&(i.preventDefault(),y.deactivate())},V=function(i){var r=Z(i);O(r,i)>=0||G(l.clickOutsideDeactivates,i)||G(l.allowOutsideClick,i)||(i.preventDefault(),i.stopImmediatePropagation())},d=function(){if(a.active)return I.activateTrap(s,y),a.delayInitialFocusTimer=l.delayInitialFocus?de(function(){P(F())}):P(F()),o.addEventListener("focusin",W,!0),o.addEventListener("mousedown",q,{capture:!0,passive:!1}),o.addEventListener("touchstart",q,{capture:!0,passive:!1}),o.addEventListener("click",V,{capture:!0,passive:!1}),o.addEventListener("keydown",z,{capture:!0,passive:!1}),o.addEventListener("keydown",H),y},f=function(i){a.active&&!a.paused&&y._setSubtreeIsolation(!1),a.adjacentElements.clear(),a.alreadySilent.clear();var r=new Set,c=new Set,h=ce(i),p;try{for(h.s();!(p=h.n()).done;){var g=p.value;r.add(g);for(var v=typeof ShadowRoot<"u"&&g.getRootNode()instanceof ShadowRoot,S=g;S;){r.add(S);var E=S.parentElement,R=[];E?R=E.children:!E&&v&&(R=S.getRootNode().children,E=S.getRootNode().host,v=typeof ShadowRoot<"u"&&E.getRootNode()instanceof ShadowRoot);var A=ce(R),C;try{for(A.s();!(C=A.n()).done;){var B=C.value;c.add(B)}}catch(x){A.e(x)}finally{A.f()}S=E}}}catch(x){h.e(x)}finally{h.f()}r.forEach(function(x){c.delete(x)}),a.adjacentElements=c},m=function(){if(a.active)return o.removeEventListener("focusin",W,!0),o.removeEventListener("mousedown",q,!0),o.removeEventListener("touchstart",q,!0),o.removeEventListener("click",V,!0),o.removeEventListener("keydown",z,!0),o.removeEventListener("keydown",H),y},u=function(i){var r=i.some(function(c){var h=Array.from(c.removedNodes);return h.some(function(p){return p===a.mostRecentlyFocusedNode})});r&&P(F())},T=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(u):void 0,k=function(){T&&(T.disconnect(),a.active&&!a.paused&&a.containers.map(function(i){T.observe(i,{subtree:!0,childList:!0})}))};return y={get active(){return a.active},get paused(){return a.paused},activate:function(i){if(a.active)return this;var r=w(i,"onActivate"),c=w(i,"onPostActivate"),h=w(i,"checkCanFocusTrap"),p=I.getActiveTrap(s),g=!1;if(p&&!p.paused){var v;(v=p._setSubtreeIsolation)===null||v===void 0||v.call(p,!1),g=!0}try{h||N(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=j(o),r==null||r();var S=function(){h&&N(),d(),k(),l.isolateSubtrees&&y._setSubtreeIsolation(!0),c==null||c()};if(h)return h(a.containers.concat()).then(S,S),this;S()}catch(R){if(p===I.getActiveTrap(s)&&g){var E;(E=p._setSubtreeIsolation)===null||E===void 0||E.call(p,!0)}throw R}return this},deactivate:function(i){if(!a.active)return this;var r=fe({onDeactivate:l.onDeactivate,onPostDeactivate:l.onPostDeactivate,checkCanReturnFocus:l.checkCanReturnFocus},i);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,a.paused||y._setSubtreeIsolation(!1),a.alreadySilent.clear(),m(),a.active=!1,a.paused=!1,k(),I.deactivateTrap(s,y);var c=w(r,"onDeactivate"),h=w(r,"onPostDeactivate"),p=w(r,"checkCanReturnFocus"),g=w(r,"returnFocus","returnFocusOnDeactivate");c==null||c();var v=function(){de(function(){g&&P(U(a.nodeFocusedBeforeActivation)),h==null||h()})};return g&&p?(p(U(a.nodeFocusedBeforeActivation)).then(v,v),this):(v(),this)},pause:function(i){return a.active?(a.manuallyPaused=!0,this._setPausedState(!0,i)):this},unpause:function(i){return a.active?(a.manuallyPaused=!1,s[s.length-1]!==this?this:this._setPausedState(!1,i)):this},updateContainerElements:function(i){var r=[].concat(i).filter(Boolean);return a.containers=r.map(function(c){return typeof c=="string"?o.querySelector(c):c}),l.isolateSubtrees&&f(a.containers),a.active&&(N(),l.isolateSubtrees&&!a.paused&&y._setSubtreeIsolation(!0)),k(),this}},Object.defineProperties(y,{_isManuallyPaused:{value:function(){return a.manuallyPaused}},_setPausedState:{value:function(i,r){if(a.paused===i)return this;if(a.paused=i,i){var c=w(r,"onPause"),h=w(r,"onPostPause");c==null||c(),m(),k(),y._setSubtreeIsolation(!1),h==null||h()}else{var p=w(r,"onUnpause"),g=w(r,"onPostUnpause");p==null||p(),y._setSubtreeIsolation(!0),N(),d(),k(),g==null||g()}return this}},_setSubtreeIsolation:{value:function(i){l.isolateSubtrees&&a.adjacentElements.forEach(function(r){var c;if(i)switch(l.isolateSubtrees){case"aria-hidden":(r.ariaHidden==="true"||((c=r.getAttribute("aria-hidden"))===null||c===void 0?void 0:c.toLowerCase())==="true")&&a.alreadySilent.add(r),r.setAttribute("aria-hidden","true");break;default:(r.inert||r.hasAttribute("inert"))&&a.alreadySilent.add(r),r.setAttribute("inert",!0);break}else if(!a.alreadySilent.has(r))switch(l.isolateSubtrees){case"aria-hidden":r.removeAttribute("aria-hidden");break;default:r.removeAttribute("inert");break}})}}}),y.updateContainerElements(e),y};const Qe=Object.freeze(Object.defineProperty({__proto__:null,createFocusTrap:Je},Symbol.toStringTag,{value:"Module"})),et=be.getAugmentedNamespace(Qe),tt=be.getAugmentedNamespace(Ke);var ve;function rt(){if(ve)return Y.exports;ve=1;function n(d){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},n(d)}var e,t;function o(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function s(d,f){for(var m=0;m<f.length;m++){var u=f[m];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(d,P(u.key),u)}}function l(d,f,m){return f&&s(d.prototype,f),Object.defineProperty(d,"prototype",{writable:!1}),d}function a(d,f,m){return f=D(f),y(d,O()?Reflect.construct(f,m||[],D(d).constructor):f.apply(d,m))}function y(d,f){if(f&&(n(f)=="object"||typeof f=="function"))return f;if(f!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return w(d)}function w(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function O(){try{var d=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(O=function(){return!!d})()}function D(d){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(f){return f.__proto__||Object.getPrototypeOf(f)},D(d)}function F(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),Object.defineProperty(d,"prototype",{writable:!1}),f&&N(d,f)}function N(d,f){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,u){return m.__proto__=u,m},N(d,f)}function j(d,f,m){return(f=P(f))in d?Object.defineProperty(d,f,{value:m,enumerable:!0,configurable:!0,writable:!0}):d[f]=m,d}function P(d){var f=U(d,"string");return n(f)=="symbol"?f:f+""}function U(d,f){if(n(d)!="object"||!d)return d;var m=d[Symbol.toPrimitive];if(m!==void 0){var u=m.call(d,f);if(n(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(d)}var _=Fe,q=et,W=q.createFocusTrap,ae=tt,z=ae.isFocusable,H=parseInt((e=(t=/^(\d+)\./.exec(_.version))===null||t===void 0?void 0:t[1])!==null&&e!==void 0?e:0,10),V=(function(d){function f(m){var u;o(this,f),u=a(this,f,[m]),j(u,"getNodeForOption",function(b){var i,r=(i=this.internalOptions[b])!==null&&i!==void 0?i:this.originalOptions[b];if(typeof r=="function"){for(var c=arguments.length,h=new Array(c>1?c-1:0),p=1;p<c;p++)h[p-1]=arguments[p];r=r.apply(void 0,h)}if(r===!0&&(r=void 0),!r){if(r===void 0||r===!1)return r;throw new Error("`".concat(b,"` was specified but was not a node, or did not return a node"))}var g=r;if(typeof r=="string"){var v;if(g=(v=this.getDocument())===null||v===void 0?void 0:v.querySelector(r),!g)throw new Error("`".concat(b,"` as selector refers to no known node"))}return g}),u.handleDeactivate=u.handleDeactivate.bind(u),u.handlePostDeactivate=u.handlePostDeactivate.bind(u),u.handleClickOutsideDeactivates=u.handleClickOutsideDeactivates.bind(u),u.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:u.handleDeactivate,onPostDeactivate:u.handlePostDeactivate,clickOutsideDeactivates:u.handleClickOutsideDeactivates},u.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var T=m.focusTrapOptions;for(var k in T)if(Object.prototype.hasOwnProperty.call(T,k)){if(k==="returnFocusOnDeactivate"||k==="onDeactivate"||k==="onPostDeactivate"||k==="checkCanReturnFocus"||k==="clickOutsideDeactivates"){u.originalOptions[k]=T[k];continue}u.internalOptions[k]=T[k]}return u.outsideClick=null,u.focusTrapElements=m.containerElements||[],u.updatePreviousElement(),u}return F(f,d),l(f,[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||(typeof document<"u"?document:void 0)}},{key:"getReturnFocusNode",value:function(){var u=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return u||(u===!1?!1:this.previouslyFocusedElement)}},{key:"updatePreviousElement",value:function(){var u=this.getDocument();u&&(this.previouslyFocusedElement=u.activeElement)}},{key:"deactivateTrap",value:function(){!this.focusTrap||!this.focusTrap.active||this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(u){var T=typeof this.originalOptions.clickOutsideDeactivates=="function"?this.originalOptions.clickOutsideDeactivates.call(null,u):this.originalOptions.clickOutsideDeactivates;return T&&(this.outsideClick={target:u.target,allowDeactivation:T}),T}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var u=this,T=function(){var b=u.getReturnFocusNode(),i=!!(u.originalOptions.returnFocusOnDeactivate&&b!==null&&b!==void 0&&b.focus&&(!u.outsideClick||u.outsideClick.allowDeactivation&&!z(u.outsideClick.target,u.internalOptions.tabbableOptions))),r=u.internalOptions.preventScroll,c=r===void 0?!1:r;i&&b.focus({preventScroll:c}),u.originalOptions.onPostDeactivate&&u.originalOptions.onPostDeactivate.call(null),u.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(T,T):T()}},{key:"setupFocusTrap",value:function(){if(this.focusTrap)this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause());else{var u=this.focusTrapElements.some(Boolean);u&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(u){if(this.focusTrap){u.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var T=!u.active&&this.props.active,k=u.active&&!this.props.active,b=!u.paused&&this.props.paused,i=u.paused&&!this.props.paused;if(T&&(this.updatePreviousElement(),this.focusTrap.activate()),k){this.deactivateTrap();return}b&&this.focusTrap.pause(),i&&this.focusTrap.unpause()}else u.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var u=this,T=this.props.children?_.Children.only(this.props.children):void 0;if(T){if(T.type&&T.type===_.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");var k=function(r){var c=u.props.containerElements;T&&(H>=19?typeof T.props.ref=="function"?T.props.ref(r):T.props.ref&&(T.props.ref.current=r):typeof T.ref=="function"?T.ref(r):T.ref&&(T.ref.current=r)),u.focusTrapElements=c||[r]},b=_.cloneElement(T,{ref:k});return b}return null}}])})(_.Component);return V.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:W},Y.exports=V,Y.exports.FocusTrap=V,Y.exports}var at=rt();exports.focusTrapReactExports=at;