react-grab 0.1.48-dev.40371ea → 0.1.48-dev.5257e15

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.
@@ -6,7 +6,7 @@
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- let e=null;const t=()=>{if(e!==null)return e;try{e=window.matchMedia(`(color-gamut: p3)`).matches}catch{e=!1}return e},n=t(),r=e=>n?`color(display-p3 0.84 0.19 0.78 / ${e})`:`rgba(210, 57, 192, ${e})`,i=e=>{let t=e.ownerDocument?.defaultView;return!!(t&&e instanceof t.ShadowRoot)},a=e=>typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===9,o=e=>{if(!e)return null;try{return e.frameElement}catch{return null}},s=e=>{if(e.assignedSlot)return e.assignedSlot;if(e.parentElement)return e.parentElement;let t=e.getRootNode();return i(t)?t.host:a(t)?o(t.defaultView):null};let c=null;const l=e=>{c=e},u=()=>c,d=e=>{if(!c)return!0;let t=e;for(;t;){if(t===c)return!0;t=s(t)}return!1},ee=e=>e,te=`data-react-grab`,ne=`0.1.48-dev.40371ea`,re=`var(--rg-panel-bg)`,ie=`var(--rg-shadow)`,ae=-1e3,oe=.95,se=1500,ce=[`/components/ui/`,`/packages/ui/`,`/design-system/`,`/design-systems/`,`/primitives/`],le=5e3,ue=8e3,de=1e4,fe=.5,pe=2147483647,me=2147483645,he=.7,ge=1e3/60,_e=.5,ve=.01,ye=r(.4),be=r(.05),xe=r(.5),Se=r(.08),Ce=r(.15),we=.2,Te=[`id`,`class`,`aria-label`,`data-testid`,`role`,`name`,`title`],Ee=new Set([`id`,`data-testid`,`aria-label`,`href`,`src`,`alt`,`type`,`name`,`placeholder`,`role`,`for`,`action`,`method`,`title`,`disabled`,`checked`,`readonly`,`required`,`selected`,`open`]),De=new Set([`a`,`code`,`pre`]),Oe=new Set([`script`,`style`,`template`,`noscript`]),ke=[`Meta`,`Control`,`Shift`,`Alt`],Ae=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`]),f=`data-react-grab-frozen`,je=`data-react-grab-same-origin-frame`,Me=.18,Ne=.6,Pe=.5,Fe=`data-react-grab-input`,Ie=.5,Le=`copy`,Re=`comment`,ze=`edit`,Be=`superellipse(1.25)`,Ve=.75,He=.01,Ue=1e3,We={left:-9999,top:-9999},Ge={left:`left center`,right:`right center`,top:`center top`,bottom:`center bottom`},Ke=1e3,qe=`#00000000`,Je=`transparent`,Ye=2e3,Xe=`cubic-bezier(0.34, 1.56, 0.64, 1)`,Ze=12e3,Qe=9e3,$e=1e4,et=8e3,tt=5e3,nt=1e3,rt=1e7,it=1.2,at=-9999,ot=new Set(`display.position.top.right.bottom.left.z-index.overflow.overflow-x.overflow-y.width.height.min-width.min-height.max-width.max-height.margin-top.margin-right.margin-bottom.margin-left.padding-top.padding-right.padding-bottom.padding-left.flex-direction.flex-wrap.justify-content.align-items.align-self.align-content.flex-grow.flex-shrink.flex-basis.order.gap.row-gap.column-gap.grid-template-columns.grid-template-rows.grid-template-areas.font-family.font-size.font-weight.font-style.line-height.letter-spacing.text-align.text-decoration-line.text-decoration-style.text-transform.text-overflow.text-shadow.white-space.word-break.overflow-wrap.vertical-align.color.background-color.background-image.background-position.background-size.background-repeat.border-top-width.border-right-width.border-bottom-width.border-left-width.border-top-style.border-right-style.border-bottom-style.border-left-style.border-top-color.border-right-color.border-bottom-color.border-left-color.border-top-left-radius.border-top-right-radius.border-bottom-left-radius.border-bottom-right-radius.box-shadow.opacity.transform.filter.backdrop-filter.object-fit.object-position`.split(`.`)),st=e=>typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===Node.ELEMENT_NODE,p=e=>st(e)&&e.namespaceURI===`http://www.w3.org/1999/xhtml`,m=e=>p(e)&&e.tagName===`IFRAME`,ct=new WeakMap,h=e=>{let t=Number.parseFloat(e);return Number.isFinite(t)?t:0},lt=e=>{let t=performance.now(),n=ct.get(e);if(n&&t-n.timestamp<16)return n.metrics;let r=e.ownerDocument.defaultView?.getComputedStyle(e),i;if(!r)i={contentOffsetX:e.clientLeft,contentOffsetY:e.clientTop,height:e.offsetHeight,width:e.offsetWidth};else{let t=h(r.borderLeftWidth),n=h(r.borderRightWidth),a=h(r.borderTopWidth),o=h(r.borderBottomWidth),s=h(r.paddingLeft),c=h(r.paddingRight),l=h(r.paddingTop),u=h(r.paddingBottom),d=h(r.width),ee=h(r.height),te=t+n+s+c,ne=a+o+l+u,re=r.boxSizing===`border-box`?d:d+te,ie=r.boxSizing===`border-box`?ee:ee+ne;i={contentOffsetX:t+s,contentOffsetY:a+l,height:ie>0?ie:e.offsetHeight,width:re>0?re:e.offsetWidth}}return ct.set(e,{metrics:i,timestamp:t}),i},g=(e,t)=>t>0?e/t:1,ut=(e,t,n)=>{let r=t,i=n,a=1,s=1,c=e;for(;c&&c!==window;){let e=o(c);if(!e||!m(e))break;let t=e.getBoundingClientRect(),n=lt(e),l=g(t.width,n.width),u=g(t.height,n.height);r=t.left+(n.contentOffsetX+r)*l,i=t.top+(n.contentOffsetY+i)*u,a*=l,s*=u,c=e.ownerDocument.defaultView}return{x:r,y:i,scaleX:a,scaleY:s}},_=e=>{let t=e.ownerDocument.defaultView;return t?t.getComputedStyle(e):window.getComputedStyle(e)},dt=(e,t)=>e.replace(/([\d.]+)px/g,(e,n)=>{let r=Number(n)*Math.abs(t);return`${Number(r.toFixed(3))}px`}),ft=(e,t,n)=>{let[r,i]=e.split(`/`).map(e=>e.trim()),a=dt(r,t),o=dt(i??r,n);return i===void 0&&a===o?a:`${a} / ${o}`};let pt=new WeakMap,mt=new WeakMap;const ht=()=>{pt=new WeakMap,mt=new WeakMap},gt=(e,t,n)=>{let r=mt.get(e);if(r&&n-r.timestamp<200)return r.borderRadius;let i=(t??_(e)).borderRadius||`0px`;return mt.set(e,{borderRadius:i,timestamp:n}),i},_t=e=>{let t=performance.now(),n=pt.get(e);if(n&&t-n.timestamp<16)return n.bounds;let r=e.getBoundingClientRect(),i=ut(e.ownerDocument.defaultView,r.left,r.top),a={borderRadius:ft(gt(e,null,t),i.scaleX,i.scaleY),height:r.height*i.scaleY,width:r.width*i.scaleX,x:i.x,y:i.y};return pt.set(e,{bounds:a,timestamp:t}),a},vt=`bippy-0.6.0`,yt=Object.defineProperty,bt=Object.prototype.hasOwnProperty,v=()=>{},xt=e=>{try{Function.prototype.toString.call(e).indexOf(`^_^`)>-1&&setTimeout(()=>{throw 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{}},St=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e);let Ct=!1,wt;const Tt=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>Ct?!0:(e&&typeof e.inject==`function`&&(wt=e.inject.toString()),!!wt?.includes(`(injected)`)),y=new Set,b=new Set,Et=e=>{e&&y.add(e);let t=new Map,n=0,r={_instrumentationIsActive:!1,_instrumentationSource:vt,checkDCE:xt,hasUnsupportedRendererAttached:!1,inject(e){let i=++n;return t.set(i,e),b.add(e),r._instrumentationIsActive||(r._instrumentationIsActive=!0,y.forEach(e=>e())),i},on:v,onCommitFiberRoot:v,onCommitFiberUnmount:v,onPostCommitFiberRoot:v,renderers:t,supportsFiber:!0,supportsFlight:!0};try{yt(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`,{configurable:!0,enumerable:!0,get(){return r},set(t){if(t&&typeof t==`object`){let n=r.renderers;r=t,n.size>0&&(n.forEach((e,n)=>{b.add(e),t.renderers.set(n,e)}),Dt(e))}}});let t=window.hasOwnProperty,n=!1;yt(window,`hasOwnProperty`,{configurable:!0,value:function(...e){try{if(!n&&e[0]===`__REACT_DEVTOOLS_GLOBAL_HOOK__`)return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,n=!0,-0}catch{}return t.apply(this,e)},writable:!0})}catch{Dt(e)}return r},Dt=e=>{e&&y.add(e);try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=xt,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=vt,t._instrumentationIsActive=!1;let e=St(t);if(e||(t.on=v),t.renderers.size){t._instrumentationIsActive=!0,y.forEach(e=>e());return}let n=t.inject,r=Tt(t);r&&!e&&(Ct=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=e=>{let i=n(e);return b.add(e),r&&t.renderers.set(i,e),t._instrumentationIsActive=!0,y.forEach(e=>e()),i}}(t.renderers.size||t._instrumentationIsActive||Tt())&&e?.()}catch{}},Ot=()=>bt.call(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),x=e=>Ot()?(Dt(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):Et(e),kt=()=>!!(typeof window<`u`&&(window.document?.createElement||window.navigator?.product===`ReactNative`));
9
+ let e=null;const t=()=>{if(e!==null)return e;try{e=window.matchMedia(`(color-gamut: p3)`).matches}catch{e=!1}return e},n=t(),r=e=>n?`color(display-p3 0.84 0.19 0.78 / ${e})`:`rgba(210, 57, 192, ${e})`,i=e=>{let t=e.ownerDocument?.defaultView;return!!(t&&e instanceof t.ShadowRoot)},a=e=>typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===9,o=e=>{if(!e)return null;try{return e.frameElement}catch{return null}},s=e=>{if(e.assignedSlot)return e.assignedSlot;if(e.parentElement)return e.parentElement;let t=e.getRootNode();return i(t)?t.host:a(t)?o(t.defaultView):null};let c=null;const l=e=>{c=e},u=()=>c,d=e=>{if(!c)return!0;let t=e;for(;t;){if(t===c)return!0;t=s(t)}return!1},ee=e=>e,te=`data-react-grab`,ne=`0.1.48-dev.5257e15`,re=`var(--rg-panel-bg)`,ie=`var(--rg-shadow)`,ae=-1e3,oe=.95,se=1500,ce=[`/components/ui/`,`/packages/ui/`,`/design-system/`,`/design-systems/`,`/primitives/`],le=5e3,ue=8e3,de=1e4,fe=.5,pe=2147483647,me=2147483645,he=.7,ge=1e3/60,_e=.5,ve=.01,ye=r(.4),be=r(.05),xe=r(.5),Se=r(.08),Ce=r(.15),we=.2,Te=[`id`,`class`,`aria-label`,`data-testid`,`role`,`name`,`title`],Ee=new Set([`id`,`data-testid`,`aria-label`,`href`,`src`,`alt`,`type`,`name`,`placeholder`,`role`,`for`,`action`,`method`,`title`,`disabled`,`checked`,`readonly`,`required`,`selected`,`open`]),De=new Set([`a`,`code`,`pre`]),Oe=new Set([`script`,`style`,`template`,`noscript`]),ke=[`Meta`,`Control`,`Shift`,`Alt`],Ae=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`]),f=`data-react-grab-frozen`,je=`data-react-grab-same-origin-frame`,Me=.18,Ne=.6,Pe=.5,Fe=`data-react-grab-input`,Ie=.5,Le=`copy`,Re=`comment`,ze=`edit`,Be=`superellipse(1.25)`,Ve=.75,He=.01,Ue=1e3,We={left:-9999,top:-9999},Ge={left:`left center`,right:`right center`,top:`center top`,bottom:`center bottom`},Ke=1e3,qe=`#00000000`,Je=`transparent`,Ye=2e3,Xe=`cubic-bezier(0.34, 1.56, 0.64, 1)`,Ze=12e3,Qe=9e3,$e=1e4,et=8e3,tt=5e3,nt=1e3,rt=1e7,it=1.2,at=-9999,ot=new Set(`display.position.top.right.bottom.left.z-index.overflow.overflow-x.overflow-y.width.height.min-width.min-height.max-width.max-height.margin-top.margin-right.margin-bottom.margin-left.padding-top.padding-right.padding-bottom.padding-left.flex-direction.flex-wrap.justify-content.align-items.align-self.align-content.flex-grow.flex-shrink.flex-basis.order.gap.row-gap.column-gap.grid-template-columns.grid-template-rows.grid-template-areas.font-family.font-size.font-weight.font-style.line-height.letter-spacing.text-align.text-decoration-line.text-decoration-style.text-transform.text-overflow.text-shadow.white-space.word-break.overflow-wrap.vertical-align.color.background-color.background-image.background-position.background-size.background-repeat.border-top-width.border-right-width.border-bottom-width.border-left-width.border-top-style.border-right-style.border-bottom-style.border-left-style.border-top-color.border-right-color.border-bottom-color.border-left-color.border-top-left-radius.border-top-right-radius.border-bottom-left-radius.border-bottom-right-radius.box-shadow.opacity.transform.filter.backdrop-filter.object-fit.object-position`.split(`.`)),st=e=>typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===Node.ELEMENT_NODE,p=e=>st(e)&&e.namespaceURI===`http://www.w3.org/1999/xhtml`,m=e=>p(e)&&e.tagName===`IFRAME`,ct=new WeakMap,h=e=>{let t=Number.parseFloat(e);return Number.isFinite(t)?t:0},lt=e=>{let t=performance.now(),n=ct.get(e);if(n&&t-n.timestamp<16)return n.metrics;let r=e.ownerDocument.defaultView?.getComputedStyle(e),i;if(!r)i={contentOffsetX:e.clientLeft,contentOffsetY:e.clientTop,height:e.offsetHeight,width:e.offsetWidth};else{let t=h(r.borderLeftWidth),n=h(r.borderRightWidth),a=h(r.borderTopWidth),o=h(r.borderBottomWidth),s=h(r.paddingLeft),c=h(r.paddingRight),l=h(r.paddingTop),u=h(r.paddingBottom),d=h(r.width),ee=h(r.height),te=t+n+s+c,ne=a+o+l+u,re=r.boxSizing===`border-box`?d:d+te,ie=r.boxSizing===`border-box`?ee:ee+ne;i={contentOffsetX:t+s,contentOffsetY:a+l,height:ie>0?ie:e.offsetHeight,width:re>0?re:e.offsetWidth}}return ct.set(e,{metrics:i,timestamp:t}),i},g=(e,t)=>t>0?e/t:1,ut=(e,t,n)=>{let r=t,i=n,a=1,s=1,c=e;for(;c&&c!==window;){let e=o(c);if(!e||!m(e))break;let t=e.getBoundingClientRect(),n=lt(e),l=g(t.width,n.width),u=g(t.height,n.height);r=t.left+(n.contentOffsetX+r)*l,i=t.top+(n.contentOffsetY+i)*u,a*=l,s*=u,c=e.ownerDocument.defaultView}return{x:r,y:i,scaleX:a,scaleY:s}},_=e=>{let t=e.ownerDocument.defaultView;return t?t.getComputedStyle(e):window.getComputedStyle(e)},dt=(e,t)=>e.replace(/([\d.]+)px/g,(e,n)=>{let r=Number(n)*Math.abs(t);return`${Number(r.toFixed(3))}px`}),ft=(e,t,n)=>{let[r,i]=e.split(`/`).map(e=>e.trim()),a=dt(r,t),o=dt(i??r,n);return i===void 0&&a===o?a:`${a} / ${o}`};let pt=new WeakMap,mt=new WeakMap;const ht=()=>{pt=new WeakMap,mt=new WeakMap},gt=(e,t,n)=>{let r=mt.get(e);if(r&&n-r.timestamp<200)return r.borderRadius;let i=(t??_(e)).borderRadius||`0px`;return mt.set(e,{borderRadius:i,timestamp:n}),i},_t=e=>{let t=performance.now(),n=pt.get(e);if(n&&t-n.timestamp<16)return n.bounds;let r=e.getBoundingClientRect(),i=ut(e.ownerDocument.defaultView,r.left,r.top),a={borderRadius:ft(gt(e,null,t),i.scaleX,i.scaleY),height:r.height*i.scaleY,width:r.width*i.scaleX,x:i.x,y:i.y};return pt.set(e,{bounds:a,timestamp:t}),a},vt=`bippy-0.6.0`,yt=Object.defineProperty,bt=Object.prototype.hasOwnProperty,v=()=>{},xt=e=>{try{Function.prototype.toString.call(e).indexOf(`^_^`)>-1&&setTimeout(()=>{throw 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{}},St=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e);let Ct=!1,wt;const Tt=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>Ct?!0:(e&&typeof e.inject==`function`&&(wt=e.inject.toString()),!!wt?.includes(`(injected)`)),y=new Set,b=new Set,Et=e=>{e&&y.add(e);let t=new Map,n=0,r={_instrumentationIsActive:!1,_instrumentationSource:vt,checkDCE:xt,hasUnsupportedRendererAttached:!1,inject(e){let i=++n;return t.set(i,e),b.add(e),r._instrumentationIsActive||(r._instrumentationIsActive=!0,y.forEach(e=>e())),i},on:v,onCommitFiberRoot:v,onCommitFiberUnmount:v,onPostCommitFiberRoot:v,renderers:t,supportsFiber:!0,supportsFlight:!0};try{yt(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`,{configurable:!0,enumerable:!0,get(){return r},set(t){if(t&&typeof t==`object`){let n=r.renderers;r=t,n.size>0&&(n.forEach((e,n)=>{b.add(e),t.renderers.set(n,e)}),Dt(e))}}});let t=window.hasOwnProperty,n=!1;yt(window,`hasOwnProperty`,{configurable:!0,value:function(...e){try{if(!n&&e[0]===`__REACT_DEVTOOLS_GLOBAL_HOOK__`)return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,n=!0,-0}catch{}return t.apply(this,e)},writable:!0})}catch{Dt(e)}return r},Dt=e=>{e&&y.add(e);try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=xt,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=vt,t._instrumentationIsActive=!1;let e=St(t);if(e||(t.on=v),t.renderers.size){t._instrumentationIsActive=!0,y.forEach(e=>e());return}let n=t.inject,r=Tt(t);r&&!e&&(Ct=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=e=>{let i=n(e);return b.add(e),r&&t.renderers.set(i,e),t._instrumentationIsActive=!0,y.forEach(e=>e()),i}}(t.renderers.size||t._instrumentationIsActive||Tt())&&e?.()}catch{}},Ot=()=>bt.call(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),x=e=>Ot()?(Dt(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):Et(e),kt=()=>!!(typeof window<`u`&&(window.document?.createElement||window.navigator?.product===`ReactNative`));
10
10
  /**
11
11
  * @license bippy
12
12
  *
package/dist/index.cjs CHANGED
@@ -6,4 +6,4 @@
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./core-CqurQjKv.cjs`),t=require(`./freeze-updates-e3oImtGv.cjs`),n=require(`./open-file-Bs_Cp__2.cjs`);let r=null;const i=new Map,a=()=>typeof window>`u`?r:window.__REACT_GRAB__??r??null,o=e=>{if(r=e,typeof window<`u`&&(e?window.__REACT_GRAB__=e:delete window.__REACT_GRAB__),e)for(let[n,r]of i){i.delete(n);try{e.registerPlugin(r)}catch(e){e instanceof t.I||new t.I(n,e)}}},s=e=>{let t=a();if(t){t.registerPlugin(e);return}i.set(e.name,e)},c=e=>{let t=a();if(t){t.unregisterPlugin(e);return}i.delete(e)};typeof window<`u`&&!window.__REACT_GRAB_DISABLED__&&(o((window.__REACT_GRAB__??(()=>{if(typeof window>`u`||window.parent===window)return null;try{return window.parent.__REACT_GRAB__??null}catch{return null}})())||e.t()),window.dispatchEvent(new CustomEvent(`react-grab:init`,{detail:a()}))),exports.DEFAULT_THEME=e.a,exports.FreezeError=t.j,exports.OpenFileError=t.N,exports.PluginSetupError=t.I,exports.ReactGrabError=t.L,exports.commentPlugin=e.i,exports.formatElementInfo=n.r,exports.generateSnippet=e.n,exports.getGlobalApi=a,exports.getStack=n.s,exports.init=e.t,exports.isInstrumentationActive=t.U,exports.openPlugin=e.r,exports.registerPlugin=s,exports.setGlobalApi=o,exports.unregisterPlugin=c;
9
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./core-MjJXdPWT.cjs`),t=require(`./freeze-updates-DfvXG5iw.cjs`),n=require(`./open-file-36nGbzLS.cjs`);let r=null;const i=new Map,a=()=>typeof window>`u`?r:window.__REACT_GRAB__??r??null,o=e=>{if(r=e,typeof window<`u`&&(e?window.__REACT_GRAB__=e:delete window.__REACT_GRAB__),e)for(let[n,r]of i){i.delete(n);try{e.registerPlugin(r)}catch(e){e instanceof t.I||new t.I(n,e)}}},s=e=>{let t=a();if(t){t.registerPlugin(e);return}i.set(e.name,e)},c=e=>{let t=a();if(t){t.unregisterPlugin(e);return}i.delete(e)};typeof window<`u`&&!window.__REACT_GRAB_DISABLED__&&(o((window.__REACT_GRAB__??(()=>{if(typeof window>`u`||window.parent===window)return null;try{return window.parent.__REACT_GRAB__??null}catch{return null}})())||e.t()),window.dispatchEvent(new CustomEvent(`react-grab:init`,{detail:a()}))),exports.DEFAULT_THEME=e.a,exports.FreezeError=t.j,exports.OpenFileError=t.N,exports.PluginSetupError=t.I,exports.ReactGrabError=t.L,exports.commentPlugin=e.i,exports.formatElementInfo=n.r,exports.generateSnippet=e.n,exports.getGlobalApi=a,exports.getStack=n.s,exports.init=e.t,exports.isInstrumentationActive=t.U,exports.openPlugin=e.r,exports.registerPlugin=s,exports.setGlobalApi=o,exports.unregisterPlugin=c;