bippy 0.3.0 → 0.3.2

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 (39) hide show
  1. package/README.md +24 -0
  2. package/dist/chunk-AMVCK6H6.js +2240 -0
  3. package/dist/chunk-AQ674A4M.cjs +38 -0
  4. package/dist/{chunk-2R5SJTFQ.js → chunk-E67XFKKG.js} +2 -7
  5. package/dist/chunk-EPG3GO3H.js +35 -0
  6. package/dist/{chunk-POWCTW3F.cjs → chunk-J2F3EJOS.cjs} +2 -7
  7. package/dist/chunk-LMTDJIAV.cjs +2246 -0
  8. package/dist/{chunk-R357CEJU.cjs → chunk-OZZZ2ACU.cjs} +57 -40
  9. package/dist/{chunk-NK43KTPL.js → chunk-SI6Y374H.js} +55 -39
  10. package/dist/core.cjs +80 -67
  11. package/dist/core.d.cts +13 -3
  12. package/dist/core.d.ts +13 -3
  13. package/dist/core.js +2 -1
  14. package/dist/experiments/inspect.cjs +25 -15
  15. package/dist/experiments/inspect.js +13 -3
  16. package/dist/experiments/shrinkwrap.cjs +7 -6
  17. package/dist/experiments/shrinkwrap.js +3 -2
  18. package/dist/index.cjs +81 -68
  19. package/dist/index.d.cts +3 -2
  20. package/dist/index.d.ts +3 -2
  21. package/dist/index.global.js +1 -1
  22. package/dist/index.js +3 -2
  23. package/dist/jsx-dev-runtime.cjs +47 -0
  24. package/dist/jsx-dev-runtime.d.cts +8 -0
  25. package/dist/jsx-dev-runtime.d.ts +8 -0
  26. package/dist/jsx-dev-runtime.js +37 -0
  27. package/dist/{types-bP3PNEQt.d.cts → jsx-runtime-LhDmw-G0.d.cts} +1 -0
  28. package/dist/{types-bP3PNEQt.d.ts → jsx-runtime-LhDmw-G0.d.ts} +1 -0
  29. package/dist/jsx-runtime.cjs +15 -0
  30. package/dist/jsx-runtime.d.cts +3 -0
  31. package/dist/jsx-runtime.d.ts +3 -0
  32. package/dist/jsx-runtime.js +4 -0
  33. package/dist/shrinkwrap.global.js +1 -1
  34. package/dist/source.cjs +274 -2216
  35. package/dist/source.d.cts +7 -3
  36. package/dist/source.d.ts +7 -3
  37. package/dist/source.global.js +14 -1
  38. package/dist/source.js +4 -2229
  39. package/package.json +21 -1
@@ -0,0 +1,3 @@
1
+ import './jsx-runtime-LhDmw-G0.js';
2
+ export * from 'react/jsx-runtime';
3
+ import 'react-reconciler';
@@ -0,0 +1,4 @@
1
+ import './chunk-E67XFKKG.js';
2
+ import './chunk-SI6Y374H.js';
3
+ import './chunk-EPG3GO3H.js';
4
+ export * from 'react/jsx-runtime';
@@ -6,4 +6,4 @@ var Bippy=function(t){"use strict";
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var e="bippy-0.3.0",n=Object.defineProperty,o=Object.prototype.hasOwnProperty,i=()=>{},r=t=>{try{Function.prototype.toString.call(t).indexOf("^_^")>-1&&setTimeout((()=>{throw new Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build")}))}catch{}},s=!1,c=void 0,a=(t=h())=>!!s||("function"==typeof t.inject&&(c=t.inject.toString()),Boolean(c?.includes("(injected)"))),l=new Set,u=t=>{const o=new Map;let s=0;const c={checkDCE:r,supportsFiber:!0,supportsFlight:!0,hasUnsupportedRendererAttached:!1,renderers:o,onCommitFiberRoot:i,onCommitFiberUnmount:i,onPostCommitFiberRoot:i,inject(t){const e=++s;return o.set(e,t),c._instrumentationIsActive||(c._instrumentationIsActive=!0,l.forEach((t=>t()))),e},_instrumentationSource:e,_instrumentationIsActive:!1};try{n(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{value:c,configurable:!0,writable:!0});const t=window.hasOwnProperty;let e=!1;n(window,"hasOwnProperty",{value:function(){return e||"__REACT_DEVTOOLS_GLOBAL_HOOK__"!==arguments[0]?t.apply(this,arguments):(globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,e=!0,-0)},configurable:!0,writable:!0})}catch{d(t)}return c},d=t=>{t&&l.add(t);try{const n=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!n)return;if(!n._instrumentationSource){if(s=a(n),n.checkDCE=r,n.supportsFiber=!0,n.supportsFlight=!0,n.hasUnsupportedRendererAttached=!1,n._instrumentationSource=e,n._instrumentationIsActive=!1,n.renderers.size)return n._instrumentationIsActive=!0,void l.forEach((t=>t()));const t=n.inject;if(a(n)&&!((t=h())=>"getFiberRoots"in t)()){s=!0;let t=n.inject(null);t&&(n._instrumentationIsActive=!0),n.inject=()=>t++}else n.inject=e=>{const o=t(e);return n._instrumentationIsActive=!0,l.forEach((t=>t())),o}}(n.renderers.size||n._instrumentationIsActive||a())&&t?.()}catch{}},h=t=>o.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__")?(d(t),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):u(t),m=t=>{switch(t.tag){case 5:case 26:case 27:return!0;default:return"string"==typeof t.type}},b=(t,e,n=!1)=>{if(!t)return null;if(!0===e(t))return t;let o=n?t.return:t.child;for(;o;){const t=b(o,e,n);if(t)return t;o=n?null:o.sibling}return null},w=[[255,0,0],[0,255,0],[0,0,255],[255,165,0],[128,0,128],[0,128,128],[255,105,180],[75,0,130],[255,69,0],[46,139,87],[220,20,60],[70,130,180]],f=["a","button","details","embed","input","label","menu","menuitem","object","select","textarea","summary"],p=["button","menu","menuitem","link","checkbox","radio","slider","tab","tabpanel","textbox","combobox","grid","listbox","option","progressbar","scrollbar","searchbox","switch","tree","treeitem","spinbutton","tooltip","a-button-inner","a-dropdown-button","click","menuitemcheckbox","menuitemradio","a-button-text","button-text","button-icon","button-icon-only","button-text-icon-only","dropdown","combobox"],g=["click","mousedown","mouseup","touchstart","touchend","keydown","keyup","focus","blur"],_=t=>{const e=(t=>{const e=h();for(const n of e.renderers.values())try{const e=n.findFiberByHostInstance?.(t);if(e)return e}catch{}if("object"==typeof t&&null!=t){if("_reactRootContainer"in t)return t._reactRootContainer?._internalRoot?.current?.child;for(const e in t)if(e.startsWith("__reactInternalInstance$")||e.startsWith("__reactFiber"))return t[e]||null}return null})(t);if(e?.stateNode instanceof Element)for(const t of Object.keys(e.memoizedProps||{})){if(!t.startsWith("on"))continue;const n=t.slice(2).toLowerCase().replace(/capture$/,"");if(g.includes(n)&&e.memoizedProps[t])return!0}for(const e of g){const n=t[`on${e}`],o=t.hasAttribute(`on${e}`),i=t.hasAttribute(`ng-${e}`),r=t.hasAttribute(`@${e}`),s=t.hasAttribute(`v-on:${e}`);if(n||o||i||r||s)return!0}const n=t.tagName.toLowerCase(),o=t.getAttribute("role"),i=t.getAttribute("aria-role"),r=t.getAttribute("tabindex"),s=f.includes(n)||o&&p.includes(o)||i&&p.includes(i)||null!==r&&"-1"!==r,c=t.hasAttribute("aria-expanded")||t.hasAttribute("aria-pressed")||t.hasAttribute("aria-selected")||t.hasAttribute("aria-checked"),a="form"in t&&void 0!==t.form||t.hasAttribute("contenteditable"),l="draggable"in t&&t.draggable||"true"===t.getAttribute("draggable");return s||a||l||c},y=t=>{const e=window.getComputedStyle(t);return t.offsetWidth>0&&t.offsetHeight>0&&"hidden"!==e.visibility&&"none"!==e.display},v=t=>{if(t.ownerDocument!==window.document)return!0;const e=t.getRootNode();if(e instanceof ShadowRoot){const n=t.getBoundingClientRect(),o={x:n.left+n.width/2,y:n.top+n.height/2};try{const n=e.elementFromPoint(o.x,o.y);if(!n)return!1;let i=n;for(;i&&i!==e;){if(i===t)return!0;i=i.parentElement}return!1}catch{return!0}}const n=t.getBoundingClientRect(),o=window.scrollX,i=window.scrollY,r=i,s=o,c=window.innerHeight+i,a=window.innerWidth+o,l=n.top+i,u=n.left+o,d=n.bottom+i,h=n.right+o;if(d<r||l>c||h<s||u>a)return!1;try{const e=n.left+n.width/2,o={x:e,y:n.top+n.height/2};if(o.x<0||o.x>=window.innerWidth||o.y<0||o.y>=window.innerHeight)return!0;const i=document.elementFromPoint(o.x,o.y);if(!i)return!1;let r=i;for(;r&&r!==document.documentElement;){if(r===t)return!0;r=r.parentElement}return!1}catch{return!0}},x=t=>new Promise((e=>{const n=new Map,o=new IntersectionObserver((t=>{for(let e=0,o=t.length;e<o;e++){const o=t[e],i=o.target,r=o.boundingClientRect;o.isIntersecting&&r.width&&r.height&&n.set(i,r)}o.disconnect(),e(n)}));for(let e=0,n=t.length;e<n;e++){const n=t[e];o.observe(n)}}));return t.createShrinkwrap=()=>{const t=()=>{u&&u.clearRect(0,0,i.width/r,i.height/r)},n=document.createElement("div");n.setAttribute("data-react-scan","true");const o=n.attachShadow({mode:"open"});o.innerHTML='<canvas style="position:fixed;top:0;left:0;pointer-events:none;z-index:2147483646" aria-hidden="true"></canvas>';const i=o.firstChild;let r=Math.min(window.devicePixelRatio||1,2);const{innerWidth:s,innerHeight:c}=window;i.style.width=`${s}px`,i.style.height=`${c}px`;const a=s*r,l=c*r;i.width=a,i.height=l;const u=i.getContext("2d",{alpha:!0});u&&u.scale(r,r),o.appendChild(i),document.documentElement.appendChild(n);let d=!1;const f=()=>{d||(d=!0,setTimeout((()=>{const t=window.innerWidth,e=window.innerHeight;r=Math.min(window.devicePixelRatio||1,2),i.style.width=`${t}px`,i.style.height=`${e}px`,i.width=t*r,i.height=e*r,u&&(u.resetTransform(),u.scale(r,r)),O.trackInteractive(),d=!1})))};let p=!1;const g=()=>{p||(p=!0,setTimeout((()=>{requestAnimationFrame((()=>{O.trackInteractive()})),p=!1}),8))},A=new Set,O={draw(e){(async e=>{if(!u)return;const n=await x(e);t();const o=[];let i=0;const r=new Map,s=window.innerWidth,c=window.innerHeight;for(let t=0,a=e.length;t<a;t++){const a=e[t],l=n.get(a);if(!l)continue;const{width:d,height:h}=l,m=l.x,b=l.y;if(d/s>.97&&h/c>.97)continue;const f=`${i+1}`,p=16;u.textRendering="optimizeSpeed",u.font=`${p}px monospace`;const{width:g}=u.measureText(f);let _=b-p-4;_<0&&(_=0);const y={x:m,y:_,width:g+4,height:p+4};if(!o.some((t=>y.x<t.x+t.width&&y.x+y.width>t.x&&y.y<t.y+t.height&&y.y+y.height>t.y))){o.push(y),i++,r.set(a,i),u.beginPath(),u.rect(m,b,d,h);const e=w[t%w.length].join(",");u.fillStyle=`rgba(${e},0.1)`,u.strokeStyle=`rgba(${e})`,u.fill(),u.stroke(),u.fillStyle=`rgba(${e})`,u.fillRect(m,_,g+4,p+4),u.fillStyle="rgba(255,255,255)",u.fillText(f,m+2,_+p)}}return r})(e).then((t=>{if(!t)return;const e={};t.forEach(((t,n)=>{e[t]=n})),window.shrinkwrap={elementMap:e}}))},trackInteractive(){var t;t={onCommitFiberRoot(t,e){A.add(e);const n=[];for(const t of A)b(t.current,(t=>{m(t)&&_(t.stateNode)&&y(t.stateNode)&&v(t.stateNode)&&n.push(t.stateNode)}));O.draw(n)}},h((()=>{const n=h();t.onActive?.(),n._instrumentationSource=t.name??e;const o=n.onCommitFiberRoot;t.onCommitFiberRoot&&(n.onCommitFiberRoot=(e,n,i)=>{o&&o(e,n,i),t.onCommitFiberRoot?.(e,n,i)});const i=n.onCommitFiberUnmount;t.onCommitFiberUnmount&&(n.onCommitFiberUnmount=(e,n)=>{i&&i(e,n),t.onCommitFiberUnmount?.(e,n)});const r=n.onPostCommitFiberRoot;t.onPostCommitFiberRoot&&(n.onPostCommitFiberRoot=(e,n)=>{r&&r(e,n),t.onPostCommitFiberRoot?.(e,n)})}))},cleanup(){A.clear(),window.removeEventListener("scroll",g),window.removeEventListener("resize",f),document.documentElement.removeChild(n)}};return window.addEventListener("scroll",g),window.addEventListener("resize",f),O},t.getRectMap=x,t.isInteractive=_,t.isScrollable=t=>t.hasAttribute("aria-scrollable")||t.hasAttribute("scrollable")||"style"in t&&("auto"===t.style.overflow||"scroll"===t.style.overflow||"auto"===t.style.overflowY||"scroll"===t.style.overflowY||"auto"===t.style.overflowX||"scroll"===t.style.overflowX),t}({});
9
+ */var e="bippy-0.3.2",n=Object.defineProperty,o=Object.prototype.hasOwnProperty,i=()=>{},r=t=>{try{Function.prototype.toString.call(t).indexOf("^_^")>-1&&setTimeout((()=>{throw new Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build")}))}catch{}},s=!1,c=void 0,a=(t=h())=>!!s||("function"==typeof t.inject&&(c=t.inject.toString()),Boolean(c?.includes("(injected)"))),l=new Set,u=t=>{const o=new Map;let s=0;const c={checkDCE:r,supportsFiber:!0,supportsFlight:!0,hasUnsupportedRendererAttached:!1,renderers:o,onCommitFiberRoot:i,onCommitFiberUnmount:i,onPostCommitFiberRoot:i,inject(t){const e=++s;return o.set(e,t),c._instrumentationIsActive||(c._instrumentationIsActive=!0,l.forEach((t=>t()))),e},_instrumentationSource:e,_instrumentationIsActive:!1};try{n(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{get:()=>c,set(e){if(e&&"object"==typeof e){const n=c.renderers;globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=e,n.size>0&&(n.forEach(((t,n)=>{e.renderers.set(n,t)})),d(t))}},configurable:!0,enumerable:!0});const e=window.hasOwnProperty;let o=!1;n(window,"hasOwnProperty",{value:function(){return o||"__REACT_DEVTOOLS_GLOBAL_HOOK__"!==arguments[0]?e.apply(this,arguments):(globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,o=!0,-0)},configurable:!0,writable:!0})}catch{d(t)}return c},d=t=>{t&&l.add(t);try{const n=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!n)return;if(!n._instrumentationSource){if(n.checkDCE=r,n.supportsFiber=!0,n.supportsFlight=!0,n.hasUnsupportedRendererAttached=!1,n._instrumentationSource=e,n._instrumentationIsActive=!1,n.renderers.size)return n._instrumentationIsActive=!0,void l.forEach((t=>t()));const t=n.inject;if(a(n)&&!((t=h())=>"getFiberRoots"in t)()){s=!0;n.inject({scheduleRefresh(){}})&&(n._instrumentationIsActive=!0)}n.inject=e=>{const o=t(e);return n._instrumentationIsActive=!0,l.forEach((t=>t())),o}}(n.renderers.size||n._instrumentationIsActive||a())&&t?.()}catch{}},h=t=>o.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__")?(d(t),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):u(t),m=t=>{switch(t.tag){case 5:case 26:case 27:return!0;default:return"string"==typeof t.type}},b=(t,e,n=!1)=>{if(!t)return null;if(!0===e(t))return t;let o=n?t.return:t.child;for(;o;){const t=b(o,e,n);if(t)return t;o=n?null:o.sibling}return null},f=[[255,0,0],[0,255,0],[0,0,255],[255,165,0],[128,0,128],[0,128,128],[255,105,180],[75,0,130],[255,69,0],[46,139,87],[220,20,60],[70,130,180]],w=["a","button","details","embed","input","label","menu","menuitem","object","select","textarea","summary"],p=["button","menu","menuitem","link","checkbox","radio","slider","tab","tabpanel","textbox","combobox","grid","listbox","option","progressbar","scrollbar","searchbox","switch","tree","treeitem","spinbutton","tooltip","a-button-inner","a-dropdown-button","click","menuitemcheckbox","menuitemradio","a-button-text","button-text","button-icon","button-icon-only","button-text-icon-only","dropdown","combobox"],g=["click","mousedown","mouseup","touchstart","touchend","keydown","keyup","focus","blur"],_=t=>{const e=(t=>{const e=h();for(const n of e.renderers.values())try{const e=n.findFiberByHostInstance?.(t);if(e)return e}catch{}if("object"==typeof t&&null!=t){if("_reactRootContainer"in t)return t._reactRootContainer?._internalRoot?.current?.child;for(const e in t)if(e.startsWith("__reactInternalInstance$")||e.startsWith("__reactFiber"))return t[e]||null}return null})(t);if(e?.stateNode instanceof Element)for(const t of Object.keys(e.memoizedProps||{})){if(!t.startsWith("on"))continue;const n=t.slice(2).toLowerCase().replace(/capture$/,"");if(g.includes(n)&&e.memoizedProps[t])return!0}for(const e of g){const n=t[`on${e}`],o=t.hasAttribute(`on${e}`),i=t.hasAttribute(`ng-${e}`),r=t.hasAttribute(`@${e}`),s=t.hasAttribute(`v-on:${e}`);if(n||o||i||r||s)return!0}const n=t.tagName.toLowerCase(),o=t.getAttribute("role"),i=t.getAttribute("aria-role"),r=t.getAttribute("tabindex"),s=w.includes(n)||o&&p.includes(o)||i&&p.includes(i)||null!==r&&"-1"!==r,c=t.hasAttribute("aria-expanded")||t.hasAttribute("aria-pressed")||t.hasAttribute("aria-selected")||t.hasAttribute("aria-checked"),a="form"in t&&void 0!==t.form||t.hasAttribute("contenteditable"),l="draggable"in t&&t.draggable||"true"===t.getAttribute("draggable");return s||a||l||c},y=t=>{const e=window.getComputedStyle(t);return t.offsetWidth>0&&t.offsetHeight>0&&"hidden"!==e.visibility&&"none"!==e.display},v=t=>{if(t.ownerDocument!==window.document)return!0;const e=t.getRootNode();if(e instanceof ShadowRoot){const n=t.getBoundingClientRect(),o={x:n.left+n.width/2,y:n.top+n.height/2};try{const n=e.elementFromPoint(o.x,o.y);if(!n)return!1;let i=n;for(;i&&i!==e;){if(i===t)return!0;i=i.parentElement}return!1}catch{return!0}}const n=t.getBoundingClientRect(),o=window.scrollX,i=window.scrollY,r=i,s=o,c=window.innerHeight+i,a=window.innerWidth+o,l=n.top+i,u=n.left+o,d=n.bottom+i,h=n.right+o;if(d<r||l>c||h<s||u>a)return!1;try{const e=n.left+n.width/2,o={x:e,y:n.top+n.height/2};if(o.x<0||o.x>=window.innerWidth||o.y<0||o.y>=window.innerHeight)return!0;const i=document.elementFromPoint(o.x,o.y);if(!i)return!1;let r=i;for(;r&&r!==document.documentElement;){if(r===t)return!0;r=r.parentElement}return!1}catch{return!0}},O=t=>new Promise((e=>{const n=new Map,o=new IntersectionObserver((t=>{for(let e=0,o=t.length;e<o;e++){const o=t[e],i=o.target,r=o.boundingClientRect;o.isIntersecting&&r.width&&r.height&&n.set(i,r)}o.disconnect(),e(n)}));for(let e=0,n=t.length;e<n;e++){const n=t[e];o.observe(n)}}));return t.createShrinkwrap=()=>{const t=()=>{u&&u.clearRect(0,0,i.width/r,i.height/r)},n=document.createElement("div");n.setAttribute("data-react-scan","true");const o=n.attachShadow({mode:"open"});o.innerHTML='<canvas style="position:fixed;top:0;left:0;pointer-events:none;z-index:2147483646" aria-hidden="true"></canvas>';const i=o.firstChild;let r=Math.min(window.devicePixelRatio||1,2);const{innerWidth:s,innerHeight:c}=window;i.style.width=`${s}px`,i.style.height=`${c}px`;const a=s*r,l=c*r;i.width=a,i.height=l;const u=i.getContext("2d",{alpha:!0});u&&u.scale(r,r),o.appendChild(i),document.documentElement.appendChild(n);let d=!1;const w=()=>{d||(d=!0,setTimeout((()=>{const t=window.innerWidth,e=window.innerHeight;r=Math.min(window.devicePixelRatio||1,2),i.style.width=`${t}px`,i.style.height=`${e}px`,i.width=t*r,i.height=e*r,u&&(u.resetTransform(),u.scale(r,r)),x.trackInteractive(),d=!1})))};let p=!1;const g=()=>{p||(p=!0,setTimeout((()=>{requestAnimationFrame((()=>{x.trackInteractive()})),p=!1}),8))},A=new Set,x={draw(e){(async e=>{if(!u)return;const n=await O(e);t();const o=[];let i=0;const r=new Map,s=window.innerWidth,c=window.innerHeight;for(let t=0,a=e.length;t<a;t++){const a=e[t],l=n.get(a);if(!l)continue;const{width:d,height:h}=l,m=l.x,b=l.y;if(d/s>.97&&h/c>.97)continue;const w=`${i+1}`,p=16;u.textRendering="optimizeSpeed",u.font=`${p}px monospace`;const{width:g}=u.measureText(w);let _=b-p-4;_<0&&(_=0);const y={x:m,y:_,width:g+4,height:p+4};if(!o.some((t=>y.x<t.x+t.width&&y.x+y.width>t.x&&y.y<t.y+t.height&&y.y+y.height>t.y))){o.push(y),i++,r.set(a,i),u.beginPath(),u.rect(m,b,d,h);const e=f[t%f.length].join(",");u.fillStyle=`rgba(${e},0.1)`,u.strokeStyle=`rgba(${e})`,u.fill(),u.stroke(),u.fillStyle=`rgba(${e})`,u.fillRect(m,_,g+4,p+4),u.fillStyle="rgba(255,255,255)",u.fillText(w,m+2,_+p)}}return r})(e).then((t=>{if(!t)return;const e={};t.forEach(((t,n)=>{e[t]=n})),window.shrinkwrap={elementMap:e}}))},trackInteractive(){var t;t={onCommitFiberRoot(t,e){A.add(e);const n=[];for(const t of A)b(t.current,(t=>{m(t)&&_(t.stateNode)&&y(t.stateNode)&&v(t.stateNode)&&n.push(t.stateNode)}));x.draw(n)}},h((()=>{const n=h();t.onActive?.(),n._instrumentationSource=t.name??e;const o=n.onCommitFiberRoot;t.onCommitFiberRoot&&(n.onCommitFiberRoot=(e,n,i)=>{o&&o(e,n,i),t.onCommitFiberRoot?.(e,n,i)});const i=n.onCommitFiberUnmount;t.onCommitFiberUnmount&&(n.onCommitFiberUnmount=(e,n)=>{i&&i(e,n),t.onCommitFiberUnmount?.(e,n)});const r=n.onPostCommitFiberRoot;t.onPostCommitFiberRoot&&(n.onPostCommitFiberRoot=(e,n)=>{r&&r(e,n),t.onPostCommitFiberRoot?.(e,n)})}))},cleanup(){A.clear(),window.removeEventListener("scroll",g),window.removeEventListener("resize",w),document.documentElement.removeChild(n)}};return window.addEventListener("scroll",g),window.addEventListener("resize",w),x},t.getRectMap=O,t.isInteractive=_,t.isScrollable=t=>t.hasAttribute("aria-scrollable")||t.hasAttribute("scrollable")||"style"in t&&("auto"===t.style.overflow||"scroll"===t.style.overflow||"auto"===t.style.overflowY||"scroll"===t.style.overflowY||"auto"===t.style.overflowX||"scroll"===t.style.overflowX),t}({});