@pfct/purple 1.16.2 → 1.17.0

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 (166) hide show
  1. package/dist/chunks/Accordion.DYya7dTN.js +1 -0
  2. package/dist/chunks/Accordion.DgWTtf1u.js +716 -0
  3. package/dist/chunks/Divider.CptJ_x2Y.js +1 -0
  4. package/dist/chunks/{Divider.DBtnaPqJ.js → Divider.DR-c4z_i.js} +16 -13
  5. package/dist/chunks/DotLottie.BQNTv0XO.js +5 -0
  6. package/dist/chunks/DotLottie.qOfU0HjI.js +1993 -0
  7. package/dist/chunks/Switch.D7T_jbtK.js +207 -0
  8. package/dist/chunks/Switch.DUWZASi8.js +1 -0
  9. package/dist/chunks/Toast.Bnm65xmy.js +1 -0
  10. package/dist/chunks/Toast.C7OnkFjA.js +698 -0
  11. package/dist/chunks/{bottomSheet.BGKwHjuP.js → bottomSheet.DCURoJ3z.js} +1 -1
  12. package/dist/chunks/{bottomSheet.C99fAuQK.js → bottomSheet.DqOEMG09.js} +1 -1
  13. package/dist/chunks/checkbox.DjQsU_Pk.js +1 -0
  14. package/dist/chunks/{checkbox.DNdnhspb.js → checkbox.Dl8nNqLc.js} +100 -92
  15. package/dist/chunks/dist.AclwPuO5.js +1 -0
  16. package/dist/chunks/{dist.BskID78S.js → dist.B0edyUiC.js} +176 -178
  17. package/dist/chunks/dist.B4GZ3aX4.js +111 -0
  18. package/dist/chunks/dist.BE2xxxwt.js +96 -0
  19. package/dist/chunks/dist.Ba6P-3sU.js +1 -0
  20. package/dist/chunks/dist.BaV_5zx8.js +186 -0
  21. package/dist/chunks/{dist.CDZCWPu4.js → dist.BnLwXMBJ.js} +8 -4
  22. package/dist/chunks/dist.BpQ7SpeW.js +227 -0
  23. package/dist/chunks/dist.Bui5aGSB.js +197 -0
  24. package/dist/chunks/dist.CBOTGT1c.js +1 -0
  25. package/dist/chunks/dist.CIvT5XE_.js +1 -0
  26. package/dist/chunks/dist.CKG-hzoQ.js +1 -0
  27. package/dist/chunks/{dist.QtpYoD01.js → dist.CVClT59R.js} +8 -3
  28. package/dist/chunks/dist.CcSbgqVt.js +1 -0
  29. package/dist/chunks/dist.Cf8FjzvS.js +1 -0
  30. package/dist/chunks/{dist.DIjdcvlQ.js → dist.Cx1JFVV3.js} +48 -59
  31. package/dist/chunks/dist.D7s7BenH.js +1 -0
  32. package/dist/chunks/dist.DQ5uOc4y.js +1 -0
  33. package/dist/chunks/dist.DWzqVshx.js +16 -0
  34. package/dist/chunks/dist.DfLaHIBc.js +1 -0
  35. package/dist/chunks/dist.DomaJxrX.js +1 -0
  36. package/dist/chunks/dist.e7n2cf43.js +144 -0
  37. package/dist/chunks/dist.gUJz6qTg.js +185 -0
  38. package/dist/chunks/dist.zJ3rbM0i.js +1 -0
  39. package/dist/chunks/drawer.Cots0_ea.js +7 -0
  40. package/dist/chunks/drawer.ftfBm36h.js +1836 -0
  41. package/dist/chunks/es2015.CfvYaoE5.js +41 -0
  42. package/dist/chunks/{es2015.ByVyszJo.js → es2015.DCKfm2VN.js} +168 -187
  43. package/dist/chunks/{src.D-VoFbup.js → src.BAhu5d2_.js} +1 -1
  44. package/dist/chunks/{src.CmgILXZE.js → src.DlM6Ki-I.js} +5 -5
  45. package/dist/chunks/tooltip.8vKL7w2a.js +1 -0
  46. package/dist/chunks/tooltip.D9PoXwtV.js +448 -0
  47. package/dist/components/Accordion/index.cjs.js +1 -1
  48. package/dist/components/Accordion/index.esm.js +1 -1
  49. package/dist/components/Control/Switch/index.cjs.js +1 -1
  50. package/dist/components/Control/Switch/index.esm.js +1 -1
  51. package/dist/components/Control/index.cjs.js +1 -1
  52. package/dist/components/Control/index.esm.js +2 -2
  53. package/dist/components/Divider/index.cjs.js +1 -1
  54. package/dist/components/Divider/index.esm.js +1 -1
  55. package/dist/components/LegacyModal/index.cjs.js +1 -1
  56. package/dist/components/LegacyModal/index.esm.js +1 -1
  57. package/dist/components/MiniButton/IconMiniButton/index.cjs.js +1 -1
  58. package/dist/components/MiniButton/IconMiniButton/index.esm.js +1 -1
  59. package/dist/components/MiniButton/UnderLineMiniButton/index.cjs.js +1 -1
  60. package/dist/components/MiniButton/UnderLineMiniButton/index.esm.js +1 -1
  61. package/dist/components/Modal/index.cjs.js +1 -1
  62. package/dist/components/Modal/index.esm.js +1 -1
  63. package/dist/components/Pagination/index.cjs.js +1 -1
  64. package/dist/components/Pagination/index.esm.js +1 -1
  65. package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
  66. package/dist/components/Tabs/FillTabs/index.esm.js +1 -1
  67. package/dist/components/Tabs/index.cjs.js +1 -1
  68. package/dist/components/Tabs/index.esm.js +1 -1
  69. package/dist/components/Tag/index.cjs.js +1 -1
  70. package/dist/components/Tag/index.esm.js +1 -1
  71. package/dist/components/Terms/index.cjs.js +1 -1
  72. package/dist/components/Terms/index.esm.js +3 -3
  73. package/dist/components/Toast/index.cjs.js +1 -1
  74. package/dist/components/Toast/index.esm.js +1 -1
  75. package/dist/components/index.cjs.js +1 -1
  76. package/dist/components/index.esm.js +8 -8
  77. package/dist/components/ui/bottomSheet.cjs.js +1 -1
  78. package/dist/components/ui/bottomSheet.esm.js +1 -1
  79. package/dist/components/ui/button.cjs.js +1 -1
  80. package/dist/components/ui/button.esm.js +1 -1
  81. package/dist/components/ui/checkbox.cjs.js +1 -1
  82. package/dist/components/ui/checkbox.esm.js +1 -1
  83. package/dist/components/ui/dialog.cjs.js +1 -1
  84. package/dist/components/ui/dialog.esm.js +1 -1
  85. package/dist/components/ui/drawer.cjs.js +1 -1
  86. package/dist/components/ui/drawer.esm.js +1 -1
  87. package/dist/components/ui/impact-tooltip.cjs.js +1 -1
  88. package/dist/components/ui/impact-tooltip.esm.js +1 -1
  89. package/dist/components/ui/select.cjs.js +1 -1
  90. package/dist/components/ui/select.esm.js +3 -3
  91. package/dist/components/ui/tooltip.cjs.js +1 -1
  92. package/dist/components/ui/tooltip.esm.js +1 -1
  93. package/dist/components/ui/typography.cjs.js +1 -1
  94. package/dist/components/ui/typography.esm.js +1 -1
  95. package/dist/icons/src/aliases/aliases.cjs.js +1 -1
  96. package/dist/icons/src/aliases/aliases.d.ts +1 -1
  97. package/dist/icons/src/aliases/aliases.d.ts.map +1 -1
  98. package/dist/icons/src/aliases/aliases.esm.js +3 -3
  99. package/dist/icons/src/aliases/index.cjs.js +1 -1
  100. package/dist/icons/src/aliases/index.esm.js +3 -3
  101. package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
  102. package/dist/icons/src/aliases/prefixed.d.ts +9 -9
  103. package/dist/icons/src/aliases/prefixed.d.ts.map +1 -1
  104. package/dist/icons/src/aliases/prefixed.esm.js +3 -3
  105. package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
  106. package/dist/icons/src/aliases/suffixed.d.ts +10 -10
  107. package/dist/icons/src/aliases/suffixed.d.ts.map +1 -1
  108. package/dist/icons/src/aliases/suffixed.esm.js +3 -3
  109. package/dist/icons/src/icons/index.cjs.js +1 -1
  110. package/dist/icons/src/icons/index.esm.js +3 -3
  111. package/dist/index.cjs.js +1 -1
  112. package/dist/index.esm.js +12 -12
  113. package/dist/library/DotLottie/index.cjs.js +1 -1
  114. package/dist/library/DotLottie/index.d.ts +13 -0
  115. package/dist/library/DotLottie/index.d.ts.map +1 -1
  116. package/dist/library/DotLottie/index.esm.js +1 -1
  117. package/dist/library/Lottie/index.cjs.js +1 -1
  118. package/dist/library/Lottie/index.d.ts +13 -0
  119. package/dist/library/Lottie/index.d.ts.map +1 -1
  120. package/dist/library/Lottie/index.esm.js +25 -25
  121. package/dist/library/index.cjs.js +1 -1
  122. package/dist/library/index.esm.js +1 -1
  123. package/package.json +4 -4
  124. package/dist/chunks/Accordion.Cs1f4aQZ.js +0 -373
  125. package/dist/chunks/Accordion.ZIp0NsA0.js +0 -1
  126. package/dist/chunks/Divider.BIS4pXEy.js +0 -1
  127. package/dist/chunks/DotLottie.CaDygpsw.js +0 -73962
  128. package/dist/chunks/DotLottie.Cf-SL2bJ.js +0 -5
  129. package/dist/chunks/Switch.C6xwIjJR.js +0 -1
  130. package/dist/chunks/Switch.D_myxCrS.js +0 -200
  131. package/dist/chunks/Toast.Cjdk4za6.js +0 -1
  132. package/dist/chunks/Toast.D1-VfeA2.js +0 -685
  133. package/dist/chunks/checkbox.CfWB_nqn.js +0 -1
  134. package/dist/chunks/dist.B2wZmrK1.js +0 -98
  135. package/dist/chunks/dist.B8tpQk-4.js +0 -1
  136. package/dist/chunks/dist.BC0-iqKU.js +0 -1
  137. package/dist/chunks/dist.BGATFz6w.js +0 -1
  138. package/dist/chunks/dist.BQIeYu70.js +0 -1
  139. package/dist/chunks/dist.BWsA5f1f.js +0 -1
  140. package/dist/chunks/dist.BixLWWwb.js +0 -71
  141. package/dist/chunks/dist.Bxqi8VAi.js +0 -1
  142. package/dist/chunks/dist.C8FJXTu6.js +0 -10
  143. package/dist/chunks/dist.C8NniehT.js +0 -1
  144. package/dist/chunks/dist.C8k7jQIp.js +0 -87
  145. package/dist/chunks/dist.CEJ-WCY_.js +0 -44
  146. package/dist/chunks/dist.CIQdvun-.js +0 -1
  147. package/dist/chunks/dist.Cff8LOoN.js +0 -67
  148. package/dist/chunks/dist.CmRTDXGG.js +0 -1
  149. package/dist/chunks/dist.CwMFqhEQ.js +0 -146
  150. package/dist/chunks/dist.CwWM0zXK.js +0 -25
  151. package/dist/chunks/dist.CyhalHxz.js +0 -1
  152. package/dist/chunks/dist.Czpint58.js +0 -1
  153. package/dist/chunks/dist.D3cPoDZ_.js +0 -194
  154. package/dist/chunks/dist.D4mQo5QB.js +0 -1
  155. package/dist/chunks/dist.D5ataprQ.js +0 -1
  156. package/dist/chunks/dist.D6A3yc_d.js +0 -11
  157. package/dist/chunks/dist.DKOi9kq6.js +0 -1
  158. package/dist/chunks/dist.DhCw5vjE.js +0 -1
  159. package/dist/chunks/dist.DrfVZqiO.js +0 -186
  160. package/dist/chunks/dist.SHmlpKFY.js +0 -1
  161. package/dist/chunks/dist.kg7EEYPp.js +0 -12
  162. package/dist/chunks/drawer.Cji5AtcU.js +0 -1720
  163. package/dist/chunks/drawer.Gt1AjdVH.js +0 -7
  164. package/dist/chunks/es2015.D2emqwtq.js +0 -41
  165. package/dist/chunks/tooltip.DGgNTZ5B.js +0 -444
  166. package/dist/chunks/tooltip.vEwTtt8v.js +0 -1
@@ -0,0 +1,41 @@
1
+ const e=require("./rolldown-runtime.mLOUI7ql.js");let t=require("react");t=e.r(t);var n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function i(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var a=`right-scroll-bar-position`,o=`width-before-scroll-bar`,s=`with-scroll-bars-hidden`,c=`--removed-body-scroll-bar-size`;function l(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function u(e,n){var r=(0,t.useState)(function(){return{value:e,callback:n,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}})[0];return r.callback=n,r.facade}var d=typeof window<`u`?t.useLayoutEffect:t.useEffect,f=new WeakMap;function p(e,t){var n=u(t||null,function(t){return e.forEach(function(e){return l(e,t)})});return d(function(){var t=f.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||l(e,null)}),i.forEach(function(e){r.has(e)||l(e,a)})}f.set(n,e)},[e]),n}function m(e){return e}function h(e,t){t===void 0&&(t=m);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function g(e){e===void 0&&(e={});var t=h(null);return t.options=n({async:!0,ssr:!1},e),t}var _=function(e){var i=e.sideCar,a=r(e,[`sideCar`]);if(!i)throw Error("Sidecar: please provide `sideCar` property to import the right car");var o=i.read();if(!o)throw Error(`Sidecar medium not found`);return t.createElement(o,n({},a))};_.isSideCarExport=!0;function v(e,t){return e.useMedium(t),_}var y=g(),b=function(){},x=t.forwardRef(function(e,i){var a=t.useRef(null),o=t.useState({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:b}),s=o[0],c=o[1],l=e.forwardProps,u=e.children,d=e.className,f=e.removeScrollBar,m=e.enabled,h=e.shards,g=e.sideCar,_=e.noRelative,v=e.noIsolation,x=e.inert,S=e.allowPinchZoom,C=e.as,w=C===void 0?`div`:C,T=e.gapMode,E=r(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),D=g,O=p([a,i]),k=n(n({},E),s);return t.createElement(t.Fragment,null,m&&t.createElement(D,{sideCar:y,removeScrollBar:f,shards:h,noRelative:_,noIsolation:v,inert:x,setCallbacks:c,allowPinchZoom:!!S,lockRef:a,gapMode:T}),l?t.cloneElement(t.Children.only(u),n(n({},k),{ref:O})):t.createElement(w,n({},k,{className:d,ref:O}),u))});x.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},x.classNames={fullWidth:o,zeroRight:a};var S,C=function(){if(S)return S;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function w(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=C();return t&&e.setAttribute(`nonce`,t),e}function T(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function E(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var D=function(){var e=0,t=null;return{add:function(n){e==0&&(t=w())&&(T(t,n),E(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},O=function(){var e=D();return function(n,r){t.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&r])}},k=function(){var e=O();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},ee={left:0,top:0,right:0,gap:0},A=function(e){return parseInt(e||``,10)||0},te=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[A(n),A(r),A(i)]},ne=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return ee;var t=te(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},re=k(),j=`data-scroll-locked`,M=function(e,t,n,r){var i=e.left,l=e.top,u=e.right,d=e.gap;return n===void 0&&(n=`margin`),`
2
+ .${s} {
3
+ overflow: hidden ${r};
4
+ padding-right: ${d}px ${r};
5
+ }
6
+ body[${j}] {
7
+ overflow: hidden ${r};
8
+ overscroll-behavior: contain;
9
+ ${[t&&`position: relative ${r};`,n===`margin`&&`
10
+ padding-left: ${i}px;
11
+ padding-top: ${l}px;
12
+ padding-right: ${u}px;
13
+ margin-left:0;
14
+ margin-top:0;
15
+ margin-right: ${d}px ${r};
16
+ `,n===`padding`&&`padding-right: ${d}px ${r};`].filter(Boolean).join(``)}
17
+ }
18
+
19
+ .${a} {
20
+ right: ${d}px ${r};
21
+ }
22
+
23
+ .${o} {
24
+ margin-right: ${d}px ${r};
25
+ }
26
+
27
+ .${a} .${a} {
28
+ right: 0 ${r};
29
+ }
30
+
31
+ .${o} .${o} {
32
+ margin-right: 0 ${r};
33
+ }
34
+
35
+ body[${j}] {
36
+ ${c}: ${d}px;
37
+ }
38
+ `},N=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},ie=function(){t.useEffect(function(){return document.body.setAttribute(j,(N()+1).toString()),function(){var e=N()-1;e<=0?document.body.removeAttribute(j):document.body.setAttribute(j,e.toString())}},[])},P=function(e){var n=e.noRelative,r=e.noImportant,i=e.gapMode,a=i===void 0?`margin`:i;ie();var o=t.useMemo(function(){return ne(a)},[a]);return t.createElement(re,{styles:M(o,!n,a,r?``:`!important`)})},F=!1;if(typeof window<`u`)try{var I=Object.defineProperty({},"passive",{get:function(){return F=!0,!0}});window.addEventListener(`test`,I,I),window.removeEventListener(`test`,I,I)}catch{F=!1}var L=F?{passive:!1}:!1,ae=function(e){return e.tagName===`TEXTAREA`},R=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!ae(e)&&n[t]===`visible`)},oe=function(e){return R(e,`overflowY`)},se=function(e){return R(e,`overflowX`)},z=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),B(e,r)){var i=V(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ce=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},le=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},B=function(e,t){return e===`v`?oe(t):se(t)},V=function(e,t){return e===`v`?ce(t):le(t)},H=function(e,t){return e===`h`&&t===`rtl`?-1:1},U=function(e,t,n,r,i){var a=H(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=V(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&B(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},W=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},G=function(e){return[e.deltaX,e.deltaY]},K=function(e){return e&&`current`in e?e.current:e},ue=function(e,t){return e[0]===t[0]&&e[1]===t[1]},de=function(e){return`
39
+ .block-interactivity-${e} {pointer-events: none;}
40
+ .allow-interactivity-${e} {pointer-events: all;}
41
+ `},fe=0,q=[];function pe(e){var n=t.useRef([]),r=t.useRef([0,0]),a=t.useRef(),o=t.useState(fe++)[0],s=t.useState(k)[0],c=t.useRef(e);t.useEffect(function(){c.current=e},[e]),t.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${o}`);var t=i([e.lockRef.current],(e.shards||[]).map(K),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${o}`)}),function(){document.body.classList.remove(`block-interactivity-${o}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${o}`)})}}},[e.inert,e.lockRef.current,e.shards]);var l=t.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!c.current.allowPinchZoom;var n=W(e),i=r.current,o=`deltaX`in e?e.deltaX:i[0]-n[0],s=`deltaY`in e?e.deltaY:i[1]-n[1],l,u=e.target,d=Math.abs(o)>Math.abs(s)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=z(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=z(d,u)),!m)return!1;if(!a.current&&`changedTouches`in e&&(o||s)&&(a.current=l),!l)return!0;var h=a.current||l;return U(h,t,e,h===`h`?o:s,!0)},[]),u=t.useCallback(function(e){var t=e;if(!(!q.length||q[q.length-1]!==s)){var r=`deltaY`in t?G(t):W(t),i=n.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&ue(e.delta,r)})[0];if(i&&i.should){t.cancelable&&t.preventDefault();return}if(!i){var a=(c.current.shards||[]).map(K).filter(Boolean).filter(function(e){return e.contains(t.target)});(a.length>0?l(t,a[0]):!c.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),d=t.useCallback(function(e,t,r,i){var a={name:e,delta:t,target:r,should:i,shadowParent:me(r)};n.current.push(a),setTimeout(function(){n.current=n.current.filter(function(e){return e!==a})},1)},[]),f=t.useCallback(function(e){r.current=W(e),a.current=void 0},[]),p=t.useCallback(function(t){d(t.type,G(t),t.target,l(t,e.lockRef.current))},[]),m=t.useCallback(function(t){d(t.type,W(t),t.target,l(t,e.lockRef.current))},[]);t.useEffect(function(){return q.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener(`wheel`,u,L),document.addEventListener(`touchmove`,u,L),document.addEventListener(`touchstart`,f,L),function(){q=q.filter(function(e){return e!==s}),document.removeEventListener(`wheel`,u,L),document.removeEventListener(`touchmove`,u,L),document.removeEventListener(`touchstart`,f,L)}},[]);var h=e.removeScrollBar,g=e.inert;return t.createElement(t.Fragment,null,g?t.createElement(s,{styles:de(o)}):null,h?t.createElement(P,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function me(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var he=v(y,pe),J=t.forwardRef(function(e,r){return t.createElement(x,n({},e,{ref:r,sideCar:he}))});J.classNames=x.classNames;var ge=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Y=new WeakMap,X=new WeakMap,Z={},Q=0,$=function(e){return e&&(e.host||$(e.parentNode))},_e=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=$(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},ve=function(e,t,n,r){var i=_e(t,Array.isArray(e)?e:[e]);Z[n]||(Z[n]=new WeakMap);var a=Z[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Y.get(e)||0)+1,l=(a.get(e)||0)+1;Y.set(e,c),a.set(e,l),o.push(e),c===1&&i&&X.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Q++,function(){o.forEach(function(e){var t=Y.get(e)-1,i=a.get(e)-1;Y.set(e,t),a.set(e,i),t||(X.has(e)||e.removeAttribute(r),X.delete(e)),i||e.removeAttribute(n)}),Q--,Q||(Y=new WeakMap,Y=new WeakMap,X=new WeakMap,Z={})}},ye=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||ge(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),ve(r,i,n,`aria-hidden`)):function(){return null}};Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return ye}});