react-grab 0.1.48-dev.f8bac7f → 0.1.48-dev.fe982d7

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.
@@ -0,0 +1,61 @@
1
+ /**
2
+ * @license MIT
3
+ *
4
+ * Copyright (c) 2025 Aiden Bai
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
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})`;let i=null;const a=e=>{i=e},o=()=>i,s=e=>i?e!==null&&i.contains(e):!0,c=e=>e,l=[`/components/ui/`,`/packages/ui/`,`/design-system/`,`/design-systems/`,`/primitives/`],u=r(.4),ee=r(.05),te=r(.5),ne=r(.08),re=r(.15),ie=[`id`,`class`,`aria-label`,`data-testid`,`role`,`name`,`title`],ae=new Set([`id`,`data-testid`,`aria-label`,`href`,`src`,`alt`,`type`,`name`,`placeholder`,`role`,`for`,`action`,`method`,`title`,`disabled`,`checked`,`readonly`,`required`,`selected`,`open`]),oe=new Set([`a`,`code`,`pre`]),se=new Set([`script`,`style`,`template`,`noscript`]),ce=[`Meta`,`Control`,`Shift`,`Alt`],le=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`]),d=`data-react-grab-frozen`,ue={left:-9999,top:-9999},de={left:`left center`,right:`right center`,top:`center top`,bottom:`center bottom`},fe=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(`.`)),pe=`bippy-0.6.0`,me=Object.defineProperty,he=Object.prototype.hasOwnProperty,f=()=>{},ge=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{}},_e=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e);let ve=!1,ye;const be=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>ve?!0:(e&&typeof e.inject==`function`&&(ye=e.inject.toString()),!!ye?.includes(`(injected)`)),p=new Set,m=new Set,xe=e=>{e&&p.add(e);let t=new Map,n=0,r={_instrumentationIsActive:!1,_instrumentationSource:pe,checkDCE:ge,hasUnsupportedRendererAttached:!1,inject(e){let i=++n;return t.set(i,e),m.add(e),r._instrumentationIsActive||(r._instrumentationIsActive=!0,p.forEach(e=>e())),i},on:f,onCommitFiberRoot:f,onCommitFiberUnmount:f,onPostCommitFiberRoot:f,renderers:t,supportsFiber:!0,supportsFlight:!0};try{me(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)=>{m.add(e),t.renderers.set(n,e)}),Se(e))}}});let t=window.hasOwnProperty,n=!1;me(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{Se(e)}return r},Se=e=>{e&&p.add(e);try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=ge,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=pe,t._instrumentationIsActive=!1;let e=_e(t);if(e||(t.on=f),t.renderers.size){t._instrumentationIsActive=!0,p.forEach(e=>e());return}let n=t.inject,r=be(t);r&&!e&&(ve=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=e=>{let i=n(e);return m.add(e),r&&t.renderers.set(i,e),t._instrumentationIsActive=!0,p.forEach(e=>e()),i}}(t.renderers.size||t._instrumentationIsActive||be())&&e?.()}catch{}},Ce=()=>he.call(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),we=e=>Ce()?(Se(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):xe(e),Te=()=>!!(typeof window<`u`&&(window.document?.createElement||window.navigator?.product===`ReactNative`));
10
+ /**
11
+ * @license bippy
12
+ *
13
+ * Copyright (c) Aiden Bai
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */
18
+ (()=>{try{Te()&&we()}catch{}})();
19
+ /**
20
+ * @license bippy
21
+ *
22
+ * Copyright (c) Aiden Bai
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */
27
+ const Ee=e=>{switch(e.tag){case 5:case 26:case 27:return!0;default:return typeof e.type==`string`}},De=e=>{switch(e.tag){case 1:case 11:case 0:case 14:case 15:return!0;default:return!1}},Oe=e=>!e||typeof e!=`object`?!1:`pendingProps`in e&&!(`containerInfo`in e),ke=e=>{let t=e.memoizedProps,n=e.alternate?.memoizedProps||{},r=e.flags??e.effectTag??0;switch(e.tag){case 1:case 9:case 11:case 0:case 14:case 15:return(r&1)==1;default:return e.alternate?n!==t||e.alternate.memoizedState!==e.memoizedState||e.alternate.ref!==e.ref:!0}},Ae=e=>{switch(e.tag){case 18:return!0;case 7:case 6:case 23:case 22:return!0;case 3:return!1;default:{let t=typeof e.type==`object`&&e.type!==null?e.type.$$typeof:e.type;if(typeof t==`symbol`)return t.description===`react.concurrent_mode`||t.description===`react.async_mode`;switch(t){case 60111:case`Symbol(react.concurrent_mode)`:case`Symbol(react.async_mode)`:return!0;default:return!1}}}},je=e=>{let t=[],n=[];for(Ee(e)?t.push(e):e.child&&n.push(e.child);n.length;){let e=n.pop();if(!e)break;Ee(e)?t.push(e):e.child&&n.push(e.child),e.sibling&&n.push(e.sibling)}return t};function h(e,t,n=!1){if(!e)return null;let r=t(e);if(r instanceof Promise)return(async()=>{if(await r===!0)return e;let i=n?e.return:e.child;for(;i;){let e=await Ne(i,t,n);if(e)return e;i=n?null:i.sibling}return null})();if(r===!0)return e;let i=n?e.return:e.child;for(;i;){let e=Me(i,t,n);if(e)return e;i=n?null:i.sibling}return null}const Me=(e,t,n=!1)=>{if(!e)return null;if(t(e)===!0)return e;let r=n?e.return:e.child;for(;r;){let e=Me(r,t,n);if(e)return e;r=n?null:r.sibling}return null},Ne=async(e,t,n=!1)=>{if(!e)return null;if(await t(e)===!0)return e;let r=n?e.return:e.child;for(;r;){let e=await Ne(r,t,n);if(e)return e;r=n?null:r.sibling}return null},Pe=e=>{let t=e;return typeof t==`function`?t:typeof t==`object`&&t?Pe(t.type||t.render):null},g=e=>{let t=e;if(typeof t==`string`)return t;if(typeof t!=`function`&&!(typeof t==`object`&&t))return null;let n=t.displayName||t.name||null;if(n)return n;let r=Pe(t);return r&&(r.displayName||r.name)||null},Fe=()=>{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;return!!e?._instrumentationIsActive||_e(e)||be(e)},Ie=new Set,Le=e=>{let t=e.alternate;if(!t)return e;if(t.actualStartTime&&e.actualStartTime)return t.actualStartTime>e.actualStartTime?t:e;for(let t of Ie){let n=h(t.current,t=>{if(t===e)return!0});if(n)return n}return e};let Re=0;const _=new WeakMap,ze=(e,t=Re++)=>{_.set(e,t)},Be=e=>{let t=_.get(e);return!t&&e.alternate&&(t=_.get(e.alternate)),t||(t=Re++,ze(e,t)),t},v=(e,t,n)=>{let r=t;for(;r!=null;){if(_.has(r)||Be(r),!Ae(r)&&ke(r)&&e(r,`mount`),r.tag===13)if(r.memoizedState!==null){let t=r.child,n=t?t.sibling:null;if(n){let t=n.child;t!==null&&v(e,t,!1)}}else{let t=null;r.child!==null&&(t=r.child.child),t!==null&&v(e,t,!1)}else r.child!=null&&v(e,r.child,!0);r=n?r.sibling:null}},Ve=(e,t,n,r)=>{if(_.has(t)||Be(t),!n)return;_.has(n)||Be(n);let i=t.tag===13,a=!Ae(t);a&&ke(t)&&e(t,`update`);let o=i&&n.memoizedState!==null,s=i&&t.memoizedState!==null;if(o&&s){let r=t.child?.sibling??null,i=n.child?.sibling??null;r!==null&&i!==null&&Ve(e,r,i,t)}else if(o&&!s){let n=t.child;n!==null&&v(e,n,!0)}else if(!o&&s){Ue(e,n);let r=t.child?.sibling??null;r!==null&&v(e,r,!0)}else if(t.child!==n.child){let n=t.child;for(;n;){if(n.alternate){let i=n.alternate;Ve(e,n,i,a?t:r)}else v(e,n,!1);n=n.sibling}}},He=(e,t)=>{(t.tag===3||!Ae(t))&&e(t,`unmount`)},Ue=(e,t)=>{let n=t.tag===13&&t.memoizedState!==null,r=t.child;for(n&&(r=(t.child?.sibling??null)?.child??null);r!==null;)r.return!==null&&(He(e,r),Ue(e,r)),r=r.sibling},We=e=>Object.prototype.toString.call(e)===`[object Object]`&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null),Ge=(e,t=[])=>{if(!We(e))return[{path:t,value:e}];let n=[];for(let r in e){let i=e[r],a=t.concat(r);We(i)?n.push(...Ge(i,a)):n.push({path:a,value:i})}return n},Ke=new Set,qe=e=>e.startsWith(`__reactContainer$`)||e.startsWith(`__reactInternalInstance$`)||e.startsWith(`__reactFiber`),Je=e=>{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t?.renderers)for(let n of t.renderers.values())try{let t=n.findFiberByHostInstance?.(e);if(t)return t}catch{}if(typeof e==`object`&&e){if(`_reactRootContainer`in e)return e._reactRootContainer?._internalRoot?.current?.child;let t=e.__internalInstanceHandle??e._internalInstanceHandle;if(Oe(t))return t;let n=e;for(let e of Ke){let t=n[e];if(t)return t}for(let e of Object.keys(n))if(qe(e))return Ke.add(e),n[e]||null}return null};
28
+ /**
29
+ * @license bippy
30
+ *
31
+ * Copyright (c) Aiden Bai
32
+ *
33
+ * This source code is licensed under the MIT license found in the
34
+ * LICENSE file in the root directory of this source tree.
35
+ */
36
+ var y=class extends Error{constructor(e,t){super(e,t),this.name=`ReactGrabError`}},b=class extends y{constructor(e,t){super(e,{cause:t}),this.name=`RecoverableError`}},Ye=class extends y{constructor(e){super(`Failed to freeze page`,{cause:e}),this.name=`FreezeError`}},Xe=class extends b{constructor(e,t,n){super(`Plugin hook "${t}" failed for "${e}"`,n),this.name=`PluginHookError`,this.pluginName=e,this.hookName=t}},Ze=class extends b{constructor(e,t){super(`Plugin cleanup failed for "${e}"`,t),this.name=`PluginCleanupError`,this.pluginName=e}},Qe=class extends y{constructor(e,t){super(`Plugin setup failed for "${e}"`,{cause:t}),this.name=`PluginSetupError`,this.pluginName=e}},$e=class extends b{constructor(e,t){super(`Action "${e}" failed`,t),this.name=`ContextMenuActionError`,this.actionId=e}},et=class extends b{constructor(e,t){super(`Action "${e}" enabled check failed`,t),this.name=`ContextMenuActionEnabledError`,this.actionId=e}},tt=class extends y{constructor(){super(`Can't generate CSS selector for non-element node type.`),this.name=`NonElementNodeError`}},nt=class extends y{constructor(e){super(`Timeout: Can't find a unique selector after ${e}ms`),this.name=`SelectorTimeoutError`,this.timeoutMs=e}},rt=class extends y{constructor(){super(`Selector was not found.`),this.name=`SelectorNotFoundError`}},it=class extends y{constructor(){super(`Failed to copy`),this.name=`CopyFailedError`}};const at=e=>(e.tagName||``).toLowerCase();let ot;const st=()=>{if(ot!==void 0)return ot;let e=document.querySelector(`script[nonce], style[nonce]`),t=e?.nonce||e?.getAttribute(`nonce`)||null;return t&&(ot=t),t},ct=[[`data-rr-block`,``],[`data-rr-ignore`,``],[`data-rr-mask`,``],[`data-sentry-block`,``],[`data-sentry-ignore`,``],[`data-sentry-mask`,``],[`data-dd-privacy`,`hidden`],[`data-fs-exclude`,``],[`data-lr-exclude`,``],[`data-hj-suppress`,``],[`data-recording-disable`,``],[`data-clarity-mask`,`true`],[`data-heap-redact-text`,``]],lt=e=>{for(let[t,n]of ct)e.setAttribute(t,n);e.setAttribute(`data-testid`,`react-grab-overlay`),e.classList.add(`ph-no-capture`)},ut=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,dt=[`rsc://`,`file:///`,`webpack-internal://`,`webpack://`,`node:`,`turbopack://`,`metro://`,`/app-pages-browser/`,`/(app-pages-browser)/`],ft=[`rsc://`,`about://React/`],pt=[`<anonymous>`,`eval`,``],mt=/\.(jsx|tsx|ts|js)$/,ht=/(\.min|bundle|chunk|vendor|vendors|runtime|polyfill|polyfills)\.(js|mjs|cjs)$|(chunk|bundle|vendor|vendors|runtime|polyfill|polyfills|framework|app|main|index)[-_.][A-Za-z0-9_-]{4,}\.(js|mjs|cjs)$|[\da-f]{8,}\.(js|mjs|cjs)$|[-_.][\da-f]{20,}\.(js|mjs|cjs)$|\/dist\/|\/build\/|\/.next\/|\/out\/|\/node_modules\/|\.webpack\.|\.vite\.|\.turbopack\./i,gt=/^\?[\w~.-]+(?:=[^&#]*)?(?:&[\w~.-]+(?:=[^&#]*)?)*$/,_t=/\(at [^)]+\)$/,vt=[`react_stack_bottom_frame`,`react-stack-bottom-frame`],yt=/(^|@)\S+:\d+/,bt=/^\s*at .*(\S+:\d+|\(native\))/m,xt=/^(eval@)?(\[native code\])?$/,x=(e,t)=>{if(t?.includeInElement!==!1){let n=e.split(`
37
+ `),r=[];for(let e of n)if(/^\s*at\s+/.test(e)){let t=wt(e,void 0)[0];t&&r.push(t)}else if(/^\s*in\s+/.test(e)){let t=e.replace(/^\s*in\s+/,``).replace(/\s*\(at .*\)$/,``);r.push({functionName:t,source:e})}else if(e.match(yt)){let t=Tt(e,void 0)[0];t&&r.push(t)}return Ct(r,t)}return e.match(bt)?wt(e,t):Tt(e,t)},St=e=>{if(!e.includes(`:`))return[e,void 0,void 0];let t=e.startsWith(`(`)&&/:\d+\)$/.test(e)?e.slice(1,-1):e,n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t);return n?[n[1],n[2]||void 0,n[3]||void 0]:[t,void 0,void 0]},Ct=(e,t)=>t&&t.slice!=null?Array.isArray(t.slice)?e.slice(t.slice[0],t.slice[1]):e.slice(0,t.slice):e,wt=(e,t)=>Ct(e.split(`
38
+ `).filter(e=>!!e.match(bt)),t).map(e=>{let t=e;t.includes(`(eval `)&&(t=t.replace(/eval code/g,`eval`).replace(/(\(eval at [^()]*)|(,.*$)/g,``));let n=t.replace(/^\s+/,``).replace(/\(eval code/g,`(`).replace(/^.*?\s+/,``),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],``):n;let i=St(r?r[1]:n);return{functionName:r&&n||void 0,fileName:[`eval`,`<anonymous>`].includes(i[0])?void 0:i[0],lineNumber:i[1]?+i[1]:void 0,columnNumber:i[2]?+i[2]:void 0,source:t}}),Tt=(e,t)=>Ct(e.split(`
39
+ `).filter(e=>!e.match(xt)),t).map(e=>{let t=e;if(t.includes(` > eval`)&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,`:$1`)),!t.includes(`@`)&&!t.includes(`:`))return{functionName:t};{let e=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,n=t.match(e),r=n&&n[1]?n[1]:void 0,i=St(t.replace(e,``));return{functionName:r,fileName:i[0],lineNumber:i[1]?+i[1]:void 0,columnNumber:i[2]?+i[2]:void 0,source:t}}}),Et=new WeakMap,Dt=e=>vt.some(t=>e.includes(t)),Ot=e=>{let t=e.getFunctionName?.()??``;if(t)return t;let n=e.getTypeName?.()??``,r=e.getMethodName?.()??``;return n&&r?`${n}.${r}`:r},kt=e=>{let t=[];for(let n=1;n<e.length;n++){let r=e[n],i=Ot(r);if(Dt(i))return{frames:t,isTrusted:!0};if(r.isNative?.()){t.push({functionName:i||void 0});continue}let a=r.getScriptNameOrSourceURL?.()??``;!a&&r.isEval?.()&&(a=r.getEvalOrigin?.()??``),t.push({functionName:i&&i!==`<anonymous>`?i:void 0,fileName:a&&a!==`<anonymous>`?a:void 0,lineNumber:r.getLineNumber?.()??void 0,columnNumber:r.getColumnNumber?.()??void 0,enclosingLineNumber:r.getEnclosingLineNumber?.()??void 0,enclosingColumnNumber:r.getEnclosingColumnNumber?.()??void 0,source:` at ${r.toString()}`})}return{frames:t,isTrusted:!1}},At=e=>{let t=-1;for(let n of vt)if(t=e.indexOf(n),t!==-1)break;return{frames:x(t===-1?e:e.slice(0,e.lastIndexOf(`
40
+ `,t))).slice(1),isTrusted:t!==-1}},S=e=>{let t=Et.get(e);if(t)return t;let n=null,r=(e,t)=>{n=kt(t);let r=`${e.name||`Error`}: ${e.message||``}`;for(let e of t)r+=`\n at ${e.toString()}`;return r},i=Error.prepareStackTrace;Error.prepareStackTrace=r;let a;try{a=String(e.stack)}finally{Error.prepareStackTrace=i}let o=n??At(a);return Et.set(e,o),o};var jt=44,Mt=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Nt=new Uint8Array(64),Pt=new Uint8Array(128);for(let e=0;e<Mt.length;e++){let t=Mt.charCodeAt(e);Nt[e]=t,Pt[t]=e}function C(e,t){let n=0,r=0,i=0;do i=Pt[e.next()],n|=(i&31)<<r,r+=5;while(i&32);let a=n&1;return n>>>=1,a&&(n=-2147483648|-n),t+n}function Ft(e,t){return e.pos>=t?!1:e.peek()!==jt}var It=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:n}=this,r=t.indexOf(e,n);return r===-1?t.length:r}};function Lt(e){let{length:t}=e,n=new It(e),r=[],i=0,a=0,o=0,s=0,c=0;do{let e=n.indexOf(`;`),t=[],l=!0,u=0;for(i=0;n.pos<e;){let r;i=C(n,i),i<u&&(l=!1),u=i,Ft(n,e)?(a=C(n,a),o=C(n,o),s=C(n,s),Ft(n,e)?(c=C(n,c),r=[i,a,o,s,c]):r=[i,a,o,s]):r=[i],t.push(r),n.pos++}l||Rt(t),r.push(t),n.pos=e+1}while(n.pos<=t);return r}function Rt(e){e.sort(zt)}function zt(e,t){return e[0]-t[0]}const Bt=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,Vt=/^data:application\/json[^,]+base64,/,Ht=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,Ut=new Map,Wt=new Map,Gt=(e,t,n,r,i)=>{if(n<0||n>=e.length)return null;let a=e[n];if(!a||a.length===0)return null;let o=null,s=0,c=a.length-1;for(;s<=c;){let e=s+c>>1;a[e][0]<=r?(o=a[e],s=e+1):c=e-1}if(!o||o.length<4)return null;let[,l,u,ee]=o;if(l===void 0||u===void 0||ee===void 0)return null;let te=t[l];return te?{columnNumber:ee,fileName:te,lineNumber:u+1,isIgnoreListed:i?.has(l)??!1}:null},Kt=(e,t,n)=>{if(e.sections){let r=t-1,i=null;for(let t of e.sections)if(r>t.offset.line||r===t.offset.line&&n>=t.offset.column)i=t;else break;if(!i)return null;let a=r-i.offset.line,o=r===i.offset.line?n-i.offset.column:n;return Gt(i.map.mappings,i.map.sources,a,o,i.map.ignoredSourceIndices)}return Gt(e.mappings,e.sources,t-1,n,e.ignoredSourceIndices)},qt=(e,t)=>{let n,r=t.length;for(;r>0&&!n;){let e=t.lastIndexOf(`
41
+ `,r-1)+1,i=t.slice(e,r).match(Ht);i&&(n=i[1]||i[2]),r=e-1}if(!n)return null;let i=Bt.test(n);if(!(Vt.test(n)||i||n.startsWith(`/`))){let t=e.split(`/`);t[t.length-1]=n,n=t.join(`/`)}return n},Jt=e=>{let t=e.ignoreList??e.x_google_ignoreList;return Array.isArray(t)&&t.length>0?new Set(t):void 0},Yt=e=>({file:e.file,ignoredSourceIndices:Jt(e),mappings:Lt(e.mappings),names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,version:3}),Xt=e=>{let t=e.sections.map(({map:e,offset:t})=>({map:{...e,ignoredSourceIndices:Jt(e),mappings:Lt(e.mappings)},offset:t})),n=new Set;for(let e of t)for(let t of e.map.sources)n.add(t);return{file:e.file,mappings:[],names:[],sections:t,sourceRoot:void 0,sources:Array.from(n),sourcesContent:void 0,version:3}},Zt=e=>{if(!e)return!1;let t=e.trim();if(!t)return!1;let n=t.match(Bt);if(!n)return!0;let r=n[0].toLowerCase();return r===`http:`||r===`https:`},Qt=async(e,t=fetch)=>{if(!Zt(e))return null;let n=await t(e);if(!n.ok)return null;let r=await n.text();if(!r)return null;let i=qt(e,r);if(!i||!Zt(i)&&!Vt.test(i))return null;let a=await t(i);if(!a.ok)return null;try{let e=await a.json();return`sections`in e?Xt(e):Yt(e)}catch{return null}},$t=async(e,t=!0,n)=>{if(t&&Ut.has(e))return Ut.get(e)??null;let r=t?Wt.get(e):void 0;if(r)return(await r).sourceMap;let i=Qt(e,n).then(e=>({sourceMap:e,isTransientFailure:!1}),()=>({sourceMap:null,isTransientFailure:!0}));t&&Wt.set(e,i);let{sourceMap:a,isTransientFailure:o}=await i;return t&&(Wt.delete(e),o||Ut.set(e,a)),a},en=async(e,t=!0,n)=>await Promise.all(e.map(async e=>{if(!e.fileName)return e;let r=await $t(e.fileName,t,n);if(!r||typeof e.lineNumber!=`number`||typeof e.columnNumber!=`number`)return e;let i=Kt(r,e.lineNumber,e.columnNumber);return i?{...e,source:i.fileName&&e.source?e.source.replace(e.fileName,i.fileName):e.source,fileName:i.fileName,lineNumber:i.lineNumber,columnNumber:i.columnNumber,isIgnoreListed:i.isIgnoreListed,isSymbolicated:!0}:e})),tn=e=>e._debugStack instanceof Error&&typeof e._debugStack?.stack==`string`,nn=e=>typeof e.tag==`number`,rn=e=>e._debugOwner,an=e=>{let t=null;if(h(e,n=>{if(n===e)return!1;let r=n._debugOwner;return(r===e||e.alternate!==null&&r===e.alternate)&&n._debugStack instanceof Error?(t=n._debugStack,!0):!1}),!t)return null;let{frames:n,isTrusted:r}=S(t);if(!r)return null;for(let e=n.length-1;e>=0;e--){let t=n[e];if(t.fileName)return{...t,lineNumber:t.enclosingLineNumber||t.lineNumber,columnNumber:t.enclosingColumnNumber||t.columnNumber}}return null},on=()=>{let e=we();for(let t of[...Array.from(m),...Array.from(e.renderers.values())]){let e=t.currentDispatcherRef;if(e&&typeof e==`object`)return`H`in e?e.H:e.current}return null},sn=e=>{for(let t of m){let n=t.currentDispatcherRef;n&&typeof n==`object`&&(`H`in n?n.H=e:n.current=e)}},w=e=>`\n in ${e}`,cn=(e,t)=>{let n=w(e);return t&&(n+=` (at ${t})`),n};let ln=!1;const un=new WeakMap,dn=(e,t)=>{if(!e||ln)return``;let n=un.get(e);if(n!==void 0)return n;let r=Error.prepareStackTrace;Error.prepareStackTrace=void 0,ln=!0;let i=on();sn(null);let a=console.error,o=console.warn;console.error=()=>{},console.warn=()=>{};try{let n={DetermineComponentFrameRoot(){let n;try{if(t){let t=function(){throw Error()};if(Object.defineProperty(t.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}}else{try{throw Error()}catch(e){n=e}let t=e();t&&typeof t.catch==`function`&&t.catch(()=>{})}}catch(e){if(e instanceof Error&&n instanceof Error&&typeof e.stack==`string`)return[e.stack,n.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`,Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,`name`)?.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});let[r,i]=n.DetermineComponentFrameRoot();if(r&&i){let t=r.split(`
42
+ `),n=i.split(`
43
+ `),a=0,o=0;for(;a<t.length&&!t[a].includes(`DetermineComponentFrameRoot`);)a++;for(;o<n.length&&!n[o].includes(`DetermineComponentFrameRoot`);)o++;if(a===t.length||o===n.length)for(a=t.length-1,o=n.length-1;a>=1&&o>=0&&t[a]!==n[o];)o--;for(;a>=1&&o>=0;a--,o--)if(t[a]!==n[o]){if(a!==1||o!==1)do if(a--,o--,o<0||t[a]!==n[o]){let n=`\n${t[a].replace(` at new `,` at `)}`,r=g(e);return r&&n.includes(`<anonymous>`)&&(n=n.replace(`<anonymous>`,r)),un.set(e,n),n}while(a>=1&&o>=0);break}}}finally{ln=!1,Error.prepareStackTrace=r,sn(i),console.error=a,console.warn=o}let s=e?g(e):``,c=s?w(s):``;return un.set(e,c),c},fn=(e,t)=>{let n=e.tag,r=``;switch(n){case 28:r=w(`Activity`);break;case 1:r=dn(e.type,!0);break;case 11:r=dn(e.type.render,!1);break;case 0:case 15:r=dn(e.type,!1);break;case 5:case 26:case 27:r=w(e.type);break;case 16:r=w(`Lazy`);break;case 13:r=e.child!==t&&t!==null?w(`Suspense Fallback`):w(`Suspense`);break;case 19:r=w(`SuspenseList`);break;case 30:r=w(`ViewTransition`);break;default:return``}return r},pn=e=>{try{let t=``,n=e,r=null;do{t+=fn(n,r);let e=n._debugInfo;if(e&&Array.isArray(e))for(let n=e.length-1;n>=0;n--){let r=e[n];typeof r.name==`string`&&(t+=cn(r.name,r.env))}r=n,n=n.return}while(n);return t}catch(e){return e instanceof Error?`\nError generating stack: ${e.message}\n${e.stack}`:``}},mn=e=>{let t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;let n=e;if(!n)return``;Error.prepareStackTrace=t,n.startsWith(`Error: react-stack-top-frame
44
+ `)&&(n=n.slice(29));let r=n.indexOf(`
45
+ `);r!==-1&&(n=n.slice(r+1));let i=Math.max(n.indexOf(`react_stack_bottom_frame`),n.indexOf(`react-stack-bottom-frame`));if(i!==-1&&(i=n.lastIndexOf(`
46
+ `,i)),i!==-1)n=n.slice(0,i);else return``;return n},hn=e=>!!(e.functionName&&e.fileName&&yn(e.fileName)),gn=(e,t)=>e.fileName===t.fileName&&e.lineNumber===t.lineNumber&&e.columnNumber===t.columnNumber,_n=e=>{let t=new Map;for(let n of e)for(let e of n.stackFrames){if(!hn(e))continue;let n=e.functionName,r=t.get(n)??[];r.some(t=>gn(t,e))||(r.push(e),t.set(n,r))}return t},vn=(e,t,n)=>{if(!e.functionName)return{...e,isServer:!0};let r=t.get(e.functionName);if(!r||r.length===0)return{...e,isServer:!0};let i=n.get(e.functionName)??0,a=r[i%r.length];return n.set(e.functionName,i+1),{...e,isServer:!0,fileName:a.fileName,lineNumber:a.lineNumber,columnNumber:a.columnNumber,source:e.source?.replace(`(at Server)`,`(${a.fileName}:${a.lineNumber}:${a.columnNumber})`)}},yn=e=>ft.some(t=>e.startsWith(t)),bn=e=>!e.isServer&&e.fileName&&yn(e.fileName)?{...e,isServer:!0}:e,xn=e=>{let t=[],n=e;for(;n;)if(nn(n)){let e=n;if(n=rn(e),n&&tn(e)){let{frames:n,isTrusted:r}=S(e._debugStack);if(r)for(let e of n)t.push(bn(e))}}else{let e=n;if(n=e.owner,n&&e.debugStack instanceof Error)for(let n of S(e.debugStack).frames)t.push({...n,isServer:!0})}return t},Sn=e=>{let t=[];return h(e,e=>{if(!tn(e))return;let n=typeof e.type==`string`?e.type:g(e.type)||`<anonymous>`;t.push({componentName:n,stackFrames:x(mn(e._debugStack?.stack))})},!0),t},Cn=async(e,t=!0,n)=>{let r=Sn(e),i=x(pn(e)),a=_n(r),o=new Map;return en(i.map(e=>(e.source?.includes(`(at Server)`)??!1)||e.source!=null&&_t.test(e.source)?vn(e,a,o):e).filter((e,t,n)=>{if(t===0)return!0;let r=n[t-1];return e.functionName!==r.functionName}),t,n)},wn=e=>!!e.fileName&&!e.isIgnoreListed,Tn=async(e,t=!0,n)=>{let r=xn(e);if(r.length>0){let i=an(e)??{};i.functionName=g(e.type)??i.functionName;let a=await en([i,...r],t,n);if(a.some((e,t)=>t>0&&wn(e)))return a}return Cn(e,t,n)},En=e=>{let t=e._debugSource;return t?typeof t==`object`&&!!t&&`fileName`in t&&typeof t.fileName==`string`&&`lineNumber`in t&&typeof t.lineNumber==`number`:!1},Dn=e=>e.fileName?{fileName:e.fileName,lineNumber:e.lineNumber,columnNumber:e.columnNumber,functionName:e.functionName}:null,On=e=>{if(!tn(e))return null;let{frames:t,isTrusted:n}=S(e._debugStack);if(!n)return null;for(let e of t)if(e.fileName)return e;return null},kn=async(e,t=!0,n)=>{if(En(e))return e._debugSource||null;let r=On(e)??an(e);if(r){let[e]=await en([r],t,n),i=Dn(e);if(i)return i}let i=await Cn(e,t,n);for(let e of i)if(e.fileName)return Dn(e);return null},An=e=>e.split(`/`).filter(Boolean).length,jn=e=>e.split(`/`).filter(Boolean)[0]??null,Mn=e=>{let t=e.indexOf(`/`,1);if(t===-1||An(e.slice(0,t))!==1)return e;let n=e.slice(t);if(!mt.test(n)||An(n)<2)return e;let r=jn(n);return!r||r.startsWith(`@`)||r.length>4?e:n},Nn=e=>{if(!e||pt.some(t=>t===e))return``;let t=e,n=t.startsWith(`http://`)||t.startsWith(`https://`);if(n)try{t=new URL(t).pathname}catch{}if(n&&(t=Mn(t)),t.startsWith(`about://React/`)){let e=t.slice(14),n=e.indexOf(`/`),r=e.indexOf(`:`);t=n!==-1&&(r===-1||n<r)?e.slice(n+1):e}let r=!0;for(;r;){r=!1;for(let e of dt)if(t.startsWith(e)){t=t.slice(e.length),e===`file:///`&&(t=`/${t.replace(/^\/+/,``)}`),r=!0;break}}if(ut.test(t)){let e=t.match(ut);e&&(t=t.slice(e[0].length))}if(t.startsWith(`//`)){let e=t.indexOf(`/`,2);t=e===-1?``:t.slice(e)}let i=t.indexOf(`?`);if(i!==-1){let e=t.slice(i);gt.test(e)&&(t=t.slice(0,i))}return t},Pn=e=>{let t=Nn(e);return!(!t||!mt.test(t)||ht.test(t))},Fn=Symbol.for(`react.context`);let In=[],Ln=null;const Rn=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render."),T=()=>{let e=Ln;return e!==null&&(Ln=e.next),e},zn=e=>e._currentValue,E=(e,t,n,r=null)=>{In.push({displayName:r,primitive:e,stackError:Error(),value:t,dispatcherHookName:n})},Bn=e=>{if(typeof e==`object`&&e){let t=e;if(typeof t.then==`function`){let e=t;switch(e.status){case`fulfilled`:return E(`Promise`,e.value,`Use`),e.value;case`rejected`:throw e.reason}throw E(`Unresolved`,e,`Use`),Rn}if(t.$$typeof===Fn&&`_currentValue`in t){let e=t,n=zn(e);return E(`Context (use)`,n,`Use`,e.displayName||`Context`),n}}throw Error(`An unsupported type was passed to use(): `+String(e))},Vn=e=>{let t=zn(e);return E(`Context`,t,`Context`,e.displayName||null),t},Hn=e=>{let t=T(),n=t===null?typeof e==`function`?e():e:t.memoizedState;return E(`State`,n,`State`),[n,()=>{}]},Un=(e,t,n)=>{let r=T(),i=r===null?n===void 0?t:n(t):r.memoizedState;return E(`Reducer`,i,`Reducer`),[i,()=>{}]},Wn=e=>{let t=T(),n=t===null?{current:e}:t.memoizedState;return E(`Ref`,n.current,`Ref`),n},Gn=()=>{let e=T();return E(`CacheRefresh`,e===null?()=>{}:e.memoizedState,`CacheRefresh`),()=>{}},Kn=e=>{T(),E(`LayoutEffect`,e,`LayoutEffect`)},qn=e=>{T(),E(`InsertionEffect`,e,`InsertionEffect`)},Jn=e=>{T(),E(`Effect`,e,`Effect`)},Yn=e=>{T();let t;typeof e==`object`&&e&&`current`in e&&(t=e.current),E(`ImperativeHandle`,t,`ImperativeHandle`)},Xn=(e,t)=>{E(`DebugValue`,typeof t==`function`?t(e):e,`DebugValue`)},Zn=e=>{let t=T();return E(`Callback`,t===null?e:t.memoizedState[0],`Callback`),e},Qn=e=>{let t=T(),n=t===null?e():t.memoizedState[0];return E(`Memo`,n,`Memo`),n},$n=(e,t)=>{let n=T();T();let r=n===null?t():n.memoizedState;return E(`SyncExternalStore`,r,`SyncExternalStore`),r},er=()=>{let e=T();T();let t=e===null?!1:e.memoizedState;return E(`Transition`,t,`Transition`),[t,()=>{}]},tr=e=>{let t=T(),n=t===null?e:t.memoizedState;return E(`DeferredValue`,n,`DeferredValue`),n},nr=()=>{let e=T(),t=e===null?``:e.memoizedState;return E(`Id`,t,`Id`),t},rr=e=>[],ir=e=>{let t=T(),n=t===null?e:t.memoizedState;return E(`Optimistic`,n,`Optimistic`),[n,()=>{}]},ar=(e,t)=>{let n,r=null;if(e!==null){let t=e.memoizedState;if(typeof t==`object`&&t&&`then`in t&&typeof t.then==`function`){let e=t;switch(e.status){case`fulfilled`:n=e.value;break;case`rejected`:r=e.reason;break;default:r=Rn,n=e}}else n=t}else n=t;return{value:n,error:r}},or=e=>(t,n)=>{let r=T();T(),T();let i=Error(),{value:a,error:o}=ar(r,n);if(In.push({displayName:null,primitive:e,stackError:i,value:a,dispatcherHookName:e}),o!==null)throw o;return[a,()=>{},!1]},sr=or(`ActionState`),cr={readContext:zn,use:Bn,useCallback:Zn,useContext:Vn,useEffect:Jn,useImperativeHandle:Yn,useLayoutEffect:Kn,useInsertionEffect:qn,useMemo:Qn,useReducer:Un,useRef:Wn,useState:Hn,useDebugValue:Xn,useDeferredValue:tr,useTransition:er,useSyncExternalStore:$n,useId:nr,useHostTransitionStatus:()=>{let e=zn({_currentValue:null});return E(`HostTransitionStatus`,e,`HostTransitionStatus`),e},useFormState:or(`FormState`),useActionState:sr,useOptimistic:ir,useMemoCache:rr,useCacheRefresh:Gn,useEffectEvent:e=>(T(),E(`EffectEvent`,e,`EffectEvent`),e)};typeof Proxy>`u`||new Proxy(cr,{get(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];let n=Error(`Missing method in Dispatcher: `+t);throw n.name=`ReactDebugToolsUnsupportedHookError`,n}});const lr=/^(?:\.\/)?\/?\([a-z][a-z0-9-]*\)\//,ur=e=>{let t=Nn(e);return t=t.replace(lr,``),t.startsWith(`./`)&&(t=t.slice(2)),t};let dr;const fr=e=>(e&&(dr=void 0),dr??=typeof document<`u`&&!!(document.getElementById(`__NEXT_DATA__`)||document.querySelector(`nextjs-portal`)),dr);let D;const pr=()=>{if(D!==void 0)return D;let e=document.querySelector(`script[src*="/_next/"]`)?.src,t=e?new URL(e).pathname:``,n=t.indexOf(`/_next/`);return D=n>0?t.slice(0,n):``,D},mr=typeof window<`u`,hr=e=>0,gr=e=>{},O=mr?(Object.getOwnPropertyDescriptor(Window.prototype,`requestAnimationFrame`)?.value??window.requestAnimationFrame).bind(window):hr,k=mr?(Object.getOwnPropertyDescriptor(Window.prototype,`cancelAnimationFrame`)?.value??window.cancelAnimationFrame).bind(window):gr,_r=()=>mr?new Promise(e=>O(()=>e())):Promise.resolve(),vr=typeof Element<`u`&&typeof Element.prototype.checkVisibility==`function`,yr={checkOpacity:!0,checkVisibilityCSS:!0,opacityProperty:!0,visibilityProperty:!0},br={checkVisibilityCSS:!0,visibilityProperty:!0},xr=(e,t)=>{if(vr&&!t)return e.checkVisibility(yr)?!0:e.checkVisibility(br)?window.getComputedStyle(e).opacity!==`0`:!1;let n=t??window.getComputedStyle(e);return n.display!==`none`&&n.visibility!==`hidden`&&n.opacity!==`0`},Sr=e=>{let t=at(e);return t===`html`||t===`body`},Cr=[`data-react-grab`,`data-react-grab-demo`],wr=e=>Cr.some(t=>e.hasAttribute(t)),Tr=e=>{if(wr(e))return!0;let t=e.getRootNode();return t instanceof ShadowRoot&&wr(t.host)},Er=e=>e.hasAttribute(`data-react-grab-ignore`)||e.closest(`[data-react-grab-ignore]`)!==null,Dr=e=>{let t=parseInt(e.zIndex,10);return e.pointerEvents===`none`&&e.position===`fixed`&&!isNaN(t)&&t>=2147483600},Or=e=>{let t=e.backgroundColor;return t===`transparent`||t===`rgba(0, 0, 0, 0)`},kr=e=>{let t=e.position;if(t!==`fixed`&&t!==`absolute`)return!1;if(Or(e)||parseFloat(e.opacity)<.1)return!0;let n=parseInt(e.zIndex,10);return!isNaN(n)&&n>1e3};let A=new WeakMap;const Ar=()=>{A=new WeakMap},jr=e=>{if(Sr(e)||Tr(e)||Er(e))return!1;let t=performance.now(),n=A.get(e);if(n&&t-n.timestamp<50)return n.isVisible;if(!xr(e))return A.set(e,{isVisible:!1,timestamp:t}),!1;if(e.clientWidth/window.innerWidth>=.9&&e.clientHeight/window.innerHeight>=.9){let t=window.getComputedStyle(e);if(Dr(t)||kr(t))return!1}return A.set(e,{isVisible:!0,timestamp:t}),!0},j=(e,t)=>{let n=document.createElement(`style`);n.setAttribute(e,``);let r=st();return r&&(n.nonce=r),lt(n),n.textContent=t,document.head.appendChild(n),n};let M=null,N=null;const Mr=()=>M!==null,Nr=()=>{M||(M=j(`data-react-grab-frozen-pseudo`,`html { pointer-events: none !important; }`),N=j(`data-react-grab-hittest-override`,`html, body { pointer-events: auto !important; }`),N.disabled=!0)},Pr=()=>{M?.remove(),M=null,N?.remove(),N=null},Fr=()=>{M&&(M.disabled||=!0,N?.disabled&&(N.disabled=!1))},Ir=()=>{M&&(M.disabled&&=!1,N&&!N.disabled&&(N.disabled=!0))};let P=null,F=null,I=null;const Lr=(e,t,n)=>e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom,Rr=()=>{I!==null&&clearTimeout(I),I=setTimeout(()=>{I=null,Ir()},100)},zr=()=>{I!==null&&(clearTimeout(I),I=null)},Br=(e,t,n,r)=>{let i=Math.abs(e-n),a=Math.abs(t-r);return i<=2&&a<=2},Vr=(e,t)=>{if(!Number.isFinite(e)||!Number.isFinite(t))return[];zr(),Fr();try{let n=document.elementsFromPoint(e,t);return o()?n.filter(s):n}finally{Rr()}},Hr=(e,t)=>{if(!Number.isFinite(e)||!Number.isFinite(t))return null;let n=performance.now();if(F){let r=F.element,i=n-F.timestamp<16;if(r.isConnected&&i&&Lr(e,t,F.rect))return r;F=null,P?.element===r&&(P=null)}if(P){let r=Br(e,t,P.clientX,P.clientY),i=n-P.timestamp<16;if(r||i)return P.element}zr(),Fr();try{let r=null,i=document.elementFromPoint(e,t);if(i&&jr(i)&&s(i))r=i;else{let n=document.elementsFromPoint(e,t);for(let e of n)if(e!==i&&jr(e)&&s(e)){r=e;break}}return F=r instanceof HTMLIFrameElement?{element:r,rect:r.getBoundingClientRect(),timestamp:n}:null,P={clientX:e,clientY:t,element:r,timestamp:n},r}finally{Rr()}},Ur=()=>{zr(),Ir(),P=null,F=null},Wr=async(e,t)=>{let n=fr(),r=new URLSearchParams({file:e}),i=n?`line1`:`line`,a=n?`column1`:`column`;t&&r.set(i,String(t)),r.set(a,`1`);let o=n?`${pr()}/__nextjs_launch-editor`:`/__open-in-editor`;return(await fetch(`${o}?${r}`)).ok},Gr=async(e,t,n)=>{let r=ur(e);if(await Wr(r,t).catch(()=>!1))return;let i=t?`&line=${t}`:``,a=`https://react-grab.com/open-file?url=${encodeURIComponent(r)}${i}`,o=n?n(a,r,t):a;window.open(o,`_blank`,`noopener,noreferrer`)},Kr=e=>{};let L=!1;const R=new Map;let qr=-1;const Jr=new WeakSet,z=new Map,B=new Map,Yr=e=>Jr.has(e)?!0:!L||!(`gsapVersions`in window)||!(Error().stack??``).includes(`_tick`)?!1:(Jr.add(e),!0);typeof window<`u`&&(window.requestAnimationFrame=e=>{if(!Yr(e))return O(e);if(L){let t=qr--;return R.set(t,e),t}let t=O(n=>{if(L){let n=qr--;R.set(n,e),z.set(t,n);return}e(n)});return t},window.cancelAnimationFrame=e=>{if(R.has(e)){R.delete(e);return}let t=B.get(e);if(t!==void 0){k(t.nativeId),B.delete(e);return}let n=z.get(e);if(n!==void 0){R.delete(n),z.delete(e);return}k(e)});const Xr=()=>{if(!L){L=!0,R.clear(),z.clear();for(let[e,{nativeId:t,callback:n}]of B)k(t),R.set(e,n);B.clear()}},Zr=()=>{if(L){L=!1;for(let[e,t]of R.entries()){let n=O(n=>{B.delete(e),t(n)});B.set(e,{nativeId:n,callback:t})}R.clear(),z.clear()}},V=(e,t)=>{if(e.length!==0)throw e.length===1?e[0]:AggregateError(e,t)},Qr=`
47
+ [${d}],
48
+ [${d}] * {
49
+ animation-play-state: paused !important;
50
+ transition: none !important;
51
+ }
52
+ `;let $r=null,H=[],U=[],ei=[],W=null,G=[],K=[],ti=!1;const q=new Map;let J=[];const ni=()=>W!==null||G.length>0||K.length>0,ri=()=>{$r||=j(`data-react-grab-frozen-styles`,Qr)},ii=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),ai=e=>{let t=new Set;for(let n of e){n instanceof SVGSVGElement?t.add(n):n instanceof SVGElement&&n.ownerSVGElement&&t.add(n.ownerSVGElement);for(let e of n.querySelectorAll(`svg`))e instanceof SVGSVGElement&&t.add(e)}return[...t]},oi=(e,t)=>{let n=Reflect.get(e,t);typeof n==`function`&&n.call(e)},si=(e,t)=>{for(let n of e){let e=q.get(n)??0;if(e===0){q.set(n,1),t.push(n),oi(n,`pauseAnimations`);continue}q.set(n,e+1),t.push(n)}},ci=(e,t)=>{let n=[];for(let r of e){let e=q.get(r);if(e){if(e===1){try{oi(r,`unpauseAnimations`),q.delete(r)}catch(e){n.push(r),t.push(e)}continue}q.set(r,e-1)}}return n},li=e=>{let t=[];for(let n of e)for(let e of n.getAnimations({subtree:!0}))e.playState===`running`&&t.push(e);return t},ui=e=>{for(let t of e)try{t.finish()}catch{}},di=e=>{for(let t of e)try{t.finish()}catch{try{t.play()}catch{}}},fi=e=>{if(!(e.effect instanceof KeyframeEffect))return!1;let t=e.effect.target;return t instanceof Element&&t.getRootNode()instanceof ShadowRoot},pi=e=>{if(e.length===0||ii(e,ei))return;Y();let t=[...e];ri(),H=t,U=[];try{si(ai(H),U);for(let e of H)e.setAttribute(d,``);let e=li(H);J=[];for(let t of e)t.pause(),J.push(t);ei=t}catch(e){try{Y()}catch(t){throw AggregateError([e,t],`Rolling back animation freeze failed`)}throw e}},Y=()=>{if(H.length===0&&U.length===0&&J.length===0)return;let e=H,t=U,n=J,r=[],i=[];ei=[];for(let t of e)try{t.removeAttribute(d)}catch(e){i.push(t),r.push(e)}H=i,U=ci(t,r),di(n),J=[],V(r,`Unfreezing element animations failed`)},mi=e=>e.length===0?(Y(),()=>{}):(pi(e),Y),hi=()=>{if(ni())return[];let e=[];for(let t of document.getAnimations())fi(t)||t.playState===`running`&&e.push(t);return e},gi=e=>{if(ni())return;if(W=j(`data-react-grab-global-freeze`,``),e.length>200)W.textContent=`
53
+ *, *::before, *::after {
54
+ animation-play-state: paused !important;
55
+ transition: none !important;
56
+ }
57
+ `,ti=!0,K=[];else{K=[];for(let t of e)t.pause(),K.push(t);ti=!1}let t=ai(Array.from(document.querySelectorAll(`svg`)));G=[],si(t,G),Xr()},_i=()=>{if(!ni())return;let e=W,t=ti,n=K,r=G,i=[];if(e){try{if(t){e.textContent=`
58
+ *, *::before, *::after {
59
+ transition: none !important;
60
+ }
61
+ `;let t=[];for(let e of document.getAnimations())fi(e)||t.push(e);ui(t)}else di(n)}catch(e){i.push(e)}ti=!1,K=[];try{e.remove(),W=null}catch(e){i.push(e)}}G=ci(r,i);try{Zr()}catch(e){i.push(e)}V(i,`Unfreezing global animations failed`)},vi=[`mouseenter`,`mouseleave`,`mouseover`,`mouseout`,`pointerenter`,`pointerleave`,`pointerover`,`pointerout`],yi=[`focus`,`blur`,`focusin`,`focusout`],bi=[`background-color`,`color`,`border-color`,`box-shadow`,`transform`,`opacity`,`outline`,`filter`,`scale`,`visibility`,`display`],xi=[`background-color`,`color`,`border-color`,`box-shadow`,`outline`,`outline-offset`,`outline-width`,`outline-color`,`outline-style`,`filter`,`opacity`,`ring-color`,`ring-width`],Si=new Map,Ci=new Map,wi=e=>{e.stopImmediatePropagation()},Ti=e=>{e.preventDefault(),e.stopImmediatePropagation()},Ei=(e,t,n)=>{if(n?.has(e))return null;let r=getComputedStyle(e),i=new Map,a=new Map;for(let n of t){let t=r.getPropertyValue(n);t&&(i.set(n,t),a.set(n,{value:e.style.getPropertyValue(n),priority:e.style.getPropertyPriority(n)}))}return{element:e,frozenPropertyValues:i,originalPropertyValues:a}},Di=(e,t)=>{let n=[],r=document.elementFromPoint(e,t);for(;r&&r!==document.documentElement;)r instanceof HTMLElement&&n.push(r),r=r.parentElement;return n},Oi=()=>{let e=[],t=document.activeElement;for(;t&&t!==document.body;)t instanceof HTMLElement&&e.push(t),t=t.shadowRoot?.activeElement??null;return e},ki=(e,t)=>{for(let{element:n,frozenPropertyValues:r,originalPropertyValues:i}of e){t.set(n,i);for(let[e,t]of r)n.style.setProperty(e,t,`important`)}},Ai=e=>{let t=[];for(let[n,r]of e){for(let[e,i]of r)try{i.value?n.style.setProperty(e,i.value,i.priority):n.style.removeProperty(e),r.delete(e)}catch(e){t.push(e)}r.size===0&&e.delete(n)}return t},ji=(e,t)=>{if(Mr())return null;let n=[],r=e!==void 0&&t!==void 0&&e>=0&&t>=0&&e<window.innerWidth&&t<window.innerHeight?Di(e,t):Array.from(document.querySelectorAll(`:hover`)).filter(e=>e instanceof HTMLElement);for(let e of r){let t=Ei(e,bi);t&&n.push(t)}let i=[];for(let e of Oi()){let t=Ei(e,xi,Ci);t&&i.push(t)}return{hoverStates:n,focusStates:i}},Mi=e=>{if(e){for(let e of vi)document.addEventListener(e,wi,!0);for(let e of yi)document.addEventListener(e,Ti,!0);ki(e.hoverStates,Si),ki(e.focusStates,Ci),Nr()}},Ni=()=>{Ur();for(let e of vi)document.removeEventListener(e,wi,!0);for(let e of yi)document.removeEventListener(e,Ti,!0);let e=[...Ai(Si),...Ai(Ci)];try{Pr()}catch(t){e.push(t)}V(e,`Unfreezing pseudo states failed`)},Pi=()=>{let e=[];try{Ni()}catch(t){e.push(t)}try{_i()}catch(t){e.push(t)}return e},Fi=(e,t)=>{let n=ji(e,t),r=hi();try{Mi(n),gi(r)}catch(e){let t=Pi();throw t.length===0?e:AggregateError([e,...t],`Freezing global interactions failed`)}},Ii=()=>{V(Pi(),`Unfreezing global interactions failed`)};let X=!1,Z=0;const Li=(e,t,n)=>{let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i},Ri=new WeakMap,zi=new WeakMap,Bi=new WeakMap,Vi=new Set,Hi=[],Q=[],Ui=new WeakMap,$=new WeakMap,Wi=new WeakSet,Gi=Ie,Ki=new Set,qi=e=>{let t=e;for(;t.return;)t=t.return;return t.stateNode??null},Ji=()=>{if(Gi.size>0)return Gi;let e=new Set,t=n=>{let r=Je(n);if(r){let t=qi(r);t&&e.add(t);return}for(let r of Array.from(n.children))if(t(r),e.size>0)return};return t(document.body),e},Yi=(e,t)=>{if(!e)return t;if(!t)return e;if(!e.next||!t.next)return t;let n=e.next,r=t.next,i=e===n,a=t===r;return i&&a?(e.next=t,t.next=e):i?(e.next=r,t.next=e):a?(t.next=n,e.next=t):(e.next=r,t.next=n),t},Xi=e=>{if(!e||Ui.has(e))return;let t={originalPendingDescriptor:Object.getOwnPropertyDescriptor(e,`pending`),pendingValueAtPause:e.pending,bufferedPending:null};typeof e.getSnapshot==`function`&&(t.originalGetSnapshot=e.getSnapshot,t.snapshotValueAtPause=e.getSnapshot(),e.getSnapshot=()=>X?t.snapshotValueAtPause:t.originalGetSnapshot());let n=t.pendingValueAtPause;Object.defineProperty(e,`pending`,{configurable:!0,enumerable:!0,get:()=>X?null:n,set:e=>{if(X){e!==null&&(t.bufferedPending=Yi(t.bufferedPending??null,e));return}n=e}}),Ui.set(e,t)},Zi=e=>{if(!e)return[];let t=[],n=e.next;if(!n)return[];let r=n;do r&&=(t.push(r.action),r.next);while(r&&r!==n);return t},Qi=e=>{let t=Ui.get(e);if(!t)return;t.originalGetSnapshot&&(e.getSnapshot=t.originalGetSnapshot),t.originalPendingDescriptor?Object.defineProperty(e,`pending`,t.originalPendingDescriptor):delete e.pending,e.pending=null;let n=e.dispatch;if(typeof n==`function`){let e=Zi(t.pendingValueAtPause??null),r=Zi(t.bufferedPending??null);for(let t of[...e,...r])Q.push(()=>n(t))}Ui.delete(e)},$i=e=>{if($.has(e))return;let t={originalDescriptor:Object.getOwnPropertyDescriptor(e,`memoizedValue`),frozenValue:e.memoizedValue};Object.defineProperty(e,`memoizedValue`,{configurable:!0,enumerable:!0,get(){return X?t.frozenValue:t.originalDescriptor?.get?t.originalDescriptor.get.call(this):this._memoizedValue},set(e){if(X){t.pendingValue=e,t.didReceivePendingValue=!0;return}t.originalDescriptor?.set?t.originalDescriptor.set.call(this,e):this._memoizedValue=e}}),t.originalDescriptor?.get||(e._memoizedValue=t.frozenValue),$.set(e,t)},ea=e=>{let t=$.get(e);t&&(t.originalDescriptor?Object.defineProperty(e,`memoizedValue`,t.originalDescriptor):delete e.memoizedValue,t.didReceivePendingValue&&(e.memoizedValue=t.pendingValue),$.delete(e))},ta=e=>{let t=e.memoizedState;for(;t;)t.queue&&typeof t.queue==`object`&&Xi(t.queue),t=t.next;let n=e.dependencies?.firstContext;for(;n&&typeof n==`object`&&`memoizedValue`in n;)$i(n),n=n.next},na=e=>{let t=e.memoizedState;for(;t;)t.queue&&typeof t.queue==`object`&&Qi(t.queue),t=t.next;let n=e.dependencies?.firstContext;for(;n&&typeof n==`object`&&`memoizedValue`in n;)ea(n),n=n.next},ra=e=>{let t=e;for(;t;){if(De(t)&&ta(t),t.child){t=t.child;continue}for(;t!==e&&!t.sibling;)if(t=t.return,!t)return;if(t===e)return;t=t.sibling}},ia=e=>{let t=e;for(;t;){if(De(t)&&na(t),t.child){t=t.child;continue}for(;t!==e&&!t.sibling;)if(t=t.return,!t)return;if(t===e)return;t=t.sibling}},aa=e=>{if(Ri.has(e))return;let t=e,n={useState:t.useState,useReducer:t.useReducer,useTransition:t.useTransition,useSyncExternalStore:t.useSyncExternalStore};Ri.set(e,n),t.useState=(...t)=>{let r=n.useState.apply(e,t);if(!X||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,Li(zi,a,()=>(...e)=>{X?Q.push(()=>a(...e)):a(...e)})]},t.useReducer=(...t)=>{let r=n.useReducer.apply(e,t);if(!X||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,Li(zi,a,()=>(...e)=>{X?Q.push(()=>a(...e)):a(...e)})]},t.useTransition=(...t)=>{let r=n.useTransition.apply(e,t);if(!X||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,Li(Bi,a,()=>e=>{X?Hi.push(()=>a(e)):a(e)})]},t.useSyncExternalStore=((e,t,r)=>X?n.useSyncExternalStore(t=>e(()=>{X?Vi.add(t):t()}),t,r):n.useSyncExternalStore(e,t,r))},oa=e=>{let t=e.currentDispatcherRef;if(!t||typeof t!=`object`)return;let n=`H`in t?`H`:`current`,r=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:()=>(r&&typeof r==`object`&&aa(r),r),set:e=>{r=e}})},sa=e=>{queueMicrotask(()=>{try{for(let t of we().renderers.values())if(typeof t.scheduleUpdate==`function`){for(let n of e)if(n.current)try{t.scheduleUpdate(n.current)}catch(e){new b(`scheduleUpdate failed during unfreeze`,e)}}}catch(e){new b(`scheduleReactUpdate failed`,e)}})},ca=e=>{for(let t of e)try{t()}catch(e){new b(`Callback failed during state replay`,e)}},la=()=>{for(let e of we().renderers.values())Wi.has(e)||(oa(e),Wi.add(e))},ua=()=>{Vi.clear(),Hi.length=0,Q.length=0},da=()=>{let e=new Set(Ki);try{for(let t of Ji())e.add(t)}catch(e){new b(`Collecting fiber roots failed during unfreeze`,e)}Ki.clear(),X=!1;for(let t of e)try{ia(t.current)}catch(e){new b(`Resuming a fiber root failed during unfreeze`,e)}let t=Array.from(Vi),n=Hi.slice(),r=Q.slice();ua(),ca(t),ca(n),ca(r),X||sa(e)},fa=()=>{let e=Z===0;if(Z+=1,e)try{la(),X=!0;let e=Ji();for(let t of e)Ki.add(t),ra(t.current)}catch(e){throw--Z,X&&da(),e}let t=!1;return()=>{t||(t=!0,--Z,Z===0&&da())}},pa=()=>{try{return fa()}catch(e){return new b(`Pausing React updates failed`,e),()=>{}}};Object.defineProperty(exports,`$`,{enumerable:!0,get:function(){return le}}),Object.defineProperty(exports,`$t`,{enumerable:!0,get:function(){return`0.1.48-dev.fe982d7`}}),Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return lt}}),Object.defineProperty(exports,`At`,{enumerable:!0,get:function(){return 1e3}}),Object.defineProperty(exports,`B`,{enumerable:!0,get:function(){return Qe}}),Object.defineProperty(exports,`Bt`,{enumerable:!0,get:function(){return`var(--rg-shadow)`}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return Nn}}),Object.defineProperty(exports,`Ct`,{enumerable:!0,get:function(){return re}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return Pn}}),Object.defineProperty(exports,`Dt`,{enumerable:!0,get:function(){return 1e4}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return Tn}}),Object.defineProperty(exports,`Et`,{enumerable:!0,get:function(){return .18}}),Object.defineProperty(exports,`F`,{enumerable:!0,get:function(){return it}}),Object.defineProperty(exports,`Ft`,{enumerable:!0,get:function(){return te}}),Object.defineProperty(exports,`G`,{enumerable:!0,get:function(){return De}}),Object.defineProperty(exports,`Gt`,{enumerable:!0,get:function(){return`data-react-grab-input`}}),Object.defineProperty(exports,`H`,{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,`Ht`,{enumerable:!0,get:function(){return ae}}),Object.defineProperty(exports,`I`,{enumerable:!0,get:function(){return Ye}}),Object.defineProperty(exports,`It`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`J`,{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,`Jt`,{enumerable:!0,get:function(){return .95}}),Object.defineProperty(exports,`K`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`Kt`,{enumerable:!0,get:function(){return fe}}),Object.defineProperty(exports,`L`,{enumerable:!0,get:function(){return tt}}),Object.defineProperty(exports,`Lt`,{enumerable:!0,get:function(){return ne}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return at}}),Object.defineProperty(exports,`Mt`,{enumerable:!0,get:function(){return-1e3}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return et}}),Object.defineProperty(exports,`Nt`,{enumerable:!0,get:function(){return .01}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,`Ot`,{enumerable:!0,get:function(){return`superellipse(1.25)`}}),Object.defineProperty(exports,`P`,{enumerable:!0,get:function(){return $e}}),Object.defineProperty(exports,`Pt`,{enumerable:!0,get:function(){return .5}}),Object.defineProperty(exports,`Q`,{enumerable:!0,get:function(){return Ee}}),Object.defineProperty(exports,`Qt`,{enumerable:!0,get:function(){return .5}}),Object.defineProperty(exports,`R`,{enumerable:!0,get:function(){return Ze}}),Object.defineProperty(exports,`Rt`,{enumerable:!0,get:function(){return ee}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return ur}}),Object.defineProperty(exports,`St`,{enumerable:!0,get:function(){return 1.2}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return tn}}),Object.defineProperty(exports,`Tt`,{enumerable:!0,get:function(){return .6}}),Object.defineProperty(exports,`U`,{enumerable:!0,get:function(){return rt}}),Object.defineProperty(exports,`Ut`,{enumerable:!0,get:function(){return ie}}),Object.defineProperty(exports,`V`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`Vt`,{enumerable:!0,get:function(){return oe}}),Object.defineProperty(exports,`W`,{enumerable:!0,get:function(){return nt}}),Object.defineProperty(exports,`Wt`,{enumerable:!0,get:function(){return se}}),Object.defineProperty(exports,`X`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`Xt`,{enumerable:!0,get:function(){return 8e3}}),Object.defineProperty(exports,`Y`,{enumerable:!0,get:function(){return Le}}),Object.defineProperty(exports,`Yt`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`Z`,{enumerable:!0,get:function(){return Je}}),Object.defineProperty(exports,`Zt`,{enumerable:!0,get:function(){return 5e3}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,`_t`,{enumerable:!0,get:function(){return 9e3}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return pi}}),Object.defineProperty(exports,`an`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`at`,{enumerable:!0,get:function(){return`copy`}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return pr}}),Object.defineProperty(exports,`bt`,{enumerable:!0,get:function(){return`transparent`}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return Gr}}),Object.defineProperty(exports,`cn`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`ct`,{enumerable:!0,get:function(){return de}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return Vr}}),Object.defineProperty(exports,`dt`,{enumerable:!0,get:function(){return 2e3}}),Object.defineProperty(exports,`en`,{enumerable:!0,get:function(){return .01}}),Object.defineProperty(exports,`et`,{enumerable:!0,get:function(){return .2}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return Ir}}),Object.defineProperty(exports,`ft`,{enumerable:!0,get:function(){return 1e4}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return Sr}}),Object.defineProperty(exports,`gt`,{enumerable:!0,get:function(){return 12e3}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return jr}}),Object.defineProperty(exports,`ht`,{enumerable:!0,get:function(){return 1e3}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return Ii}}),Object.defineProperty(exports,`in`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`it`,{enumerable:!0,get:function(){return 1e7}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return st}}),Object.defineProperty(exports,`jt`,{enumerable:!0,get:function(){return 1e3}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return mn}}),Object.defineProperty(exports,`kt`,{enumerable:!0,get:function(){return ce}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return Ur}}),Object.defineProperty(exports,`lt`,{enumerable:!0,get:function(){return ue}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return Ar}}),Object.defineProperty(exports,`mt`,{enumerable:!0,get:function(){return 5e3}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return fa}}),Object.defineProperty(exports,`nn`,{enumerable:!0,get:function(){return 2147483645}}),Object.defineProperty(exports,`nt`,{enumerable:!0,get:function(){return .5}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return mi}}),Object.defineProperty(exports,`on`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`ot`,{enumerable:!0,get:function(){return .7}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return Fr}}),Object.defineProperty(exports,`pt`,{enumerable:!0,get:function(){return 8e3}}),Object.defineProperty(exports,`q`,{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(exports,`qt`,{enumerable:!0,get:function(){return-9999}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Fi}}),Object.defineProperty(exports,`rn`,{enumerable:!0,get:function(){return`data-react-grab`}}),Object.defineProperty(exports,`rt`,{enumerable:!0,get:function(){return`comment`}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return Kr}}),Object.defineProperty(exports,`sn`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`st`,{enumerable:!0,get:function(){return .75}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return pa}}),Object.defineProperty(exports,`tn`,{enumerable:!0,get:function(){return 2147483647}}),Object.defineProperty(exports,`tt`,{enumerable:!0,get:function(){return 16.666666666666668}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return Hr}}),Object.defineProperty(exports,`ut`,{enumerable:!0,get:function(){return`edit`}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,`vt`,{enumerable:!0,get:function(){return`cubic-bezier(0.34, 1.56, 0.64, 1)`}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return kn}}),Object.defineProperty(exports,`wt`,{enumerable:!0,get:function(){return .5}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return fr}}),Object.defineProperty(exports,`xt`,{enumerable:!0,get:function(){return 1500}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return _r}}),Object.defineProperty(exports,`yt`,{enumerable:!0,get:function(){return`#00000000`}}),Object.defineProperty(exports,`z`,{enumerable:!0,get:function(){return Xe}}),Object.defineProperty(exports,`zt`,{enumerable:!0,get:function(){return`var(--rg-panel-bg)`}});
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-C15zpS13.cjs`),t=require(`./freeze-updates-BZyl_zps.cjs`),n=require(`./copy-content-D42Pfsuq.cjs`);let r=null;const i=()=>typeof window>`u`?r:window.__REACT_GRAB__??r??null,a=e=>{r=e,typeof window<`u`&&(e?window.__REACT_GRAB__=e:delete window.__REACT_GRAB__)},o=[],s=e=>{for(;o.length>0;){let t=o.shift();t&&e.registerPlugin(t)}},c=e=>{let t=i();if(t){t.registerPlugin(e);return}o.push(e)},l=e=>{let t=i();if(t){t.unregisterPlugin(e);return}let n=o.findIndex(t=>t.name===e);n!==-1&&o.splice(n,1)};typeof window<`u`&&!window.__REACT_GRAB_DISABLED__&&(window.__REACT_GRAB__?r=window.__REACT_GRAB__:(r=e.t(),window.__REACT_GRAB__=r),s(r),window.dispatchEvent(new CustomEvent(`react-grab:init`,{detail:r}))),exports.DEFAULT_THEME=e.a,exports.FreezeError=t.I,exports.commentPlugin=e.i,exports.formatElementInfo=n.n,exports.generateSnippet=e.n,exports.getGlobalApi=i,exports.getStack=n.o,exports.init=e.t,exports.isInstrumentationActive=t.G,exports.openPlugin=e.r,exports.registerPlugin=c,exports.setGlobalApi=a,exports.unregisterPlugin=l;
9
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./core-x3YUe26k.cjs`),t=require(`./freeze-updates-D7HmnXxx.cjs`),n=require(`./copy-content-CXUx_1iN.cjs`);let r=null;const i=()=>typeof window>`u`?r:window.__REACT_GRAB__??r??null,a=e=>{r=e,typeof window<`u`&&(e?window.__REACT_GRAB__=e:delete window.__REACT_GRAB__)},o=[],s=e=>{for(;o.length>0;){let t=o.shift();t&&e.registerPlugin(t)}},c=e=>{let t=i();if(t){t.registerPlugin(e);return}o.push(e)},l=e=>{let t=i();if(t){t.unregisterPlugin(e);return}let n=o.findIndex(t=>t.name===e);n!==-1&&o.splice(n,1)};typeof window<`u`&&!window.__REACT_GRAB_DISABLED__&&(window.__REACT_GRAB__?r=window.__REACT_GRAB__:(r=e.t(),window.__REACT_GRAB__=r),s(r),window.dispatchEvent(new CustomEvent(`react-grab:init`,{detail:r}))),exports.DEFAULT_THEME=e.a,exports.FreezeError=t.I,exports.PluginSetupError=t.B,exports.ReactGrabError=t.V,exports.commentPlugin=e.i,exports.formatElementInfo=n.n,exports.generateSnippet=e.n,exports.getGlobalApi=i,exports.getStack=n.o,exports.init=e.t,exports.isInstrumentationActive=t.q,exports.openPlugin=e.r,exports.registerPlugin=c,exports.setGlobalApi=a,exports.unregisterPlugin=l;
package/dist/index.d.cts CHANGED
@@ -8,7 +8,7 @@
8
8
  */
9
9
  import { A as SourceInfo, C as PromptModeContext, D as Rect, E as ReactGrabState, M as ToolbarState, O as SelectedElementPayload, S as Position, _ as Options, a as ActionContext, b as PluginConfig, c as AgentContext, d as DeepPartial, f as DragRect, g as GrabbedBox, h as ElementSelectedEventDetail, j as Theme, k as SettableOptions, l as ContextMenuAction, m as ElementLabelVariant, n as isInstrumentationActive, o as ActionContextHooks, p as ElementLabelContext, s as ActivationMode, u as ContextMenuActionContext, v as OverlayBounds, w as ReactGrabAPI, x as PluginHooks, y as Plugin } from "./copy-content-hpjB511j.cjs";
10
10
  import { a as getStack, i as formatElementInfo, n as generateSnippet, r as DEFAULT_THEME, t as init } from "./index-D23mfsUe.cjs";
11
- import { t as FreezeError } from "./errors-CgCtKMy4.cjs";
11
+ import { n as PluginSetupError, r as ReactGrabError, t as FreezeError } from "./errors-Bk7FIavr.cjs";
12
12
 
13
13
  //#region src/core/plugins/comment.d.ts
14
14
  declare const commentPlugin: Plugin;
@@ -28,4 +28,4 @@ declare const setGlobalApi: (api: ReactGrabAPI | null) => void;
28
28
  declare const registerPlugin: (plugin: Plugin) => void;
29
29
  declare const unregisterPlugin: (name: string) => void;
30
30
  //#endregion
31
- export { type ActionContext, type ActionContextHooks, type ActivationMode, type AgentContext, type ContextMenuAction, type ContextMenuActionContext, DEFAULT_THEME, type DeepPartial, type DragRect, type ElementLabelContext, type ElementLabelVariant, type ElementSelectedEventDetail, FreezeError, type GrabbedBox, type Options, type OverlayBounds, type Plugin, type PluginConfig, type PluginHooks, type Position, type PromptModeContext, type ReactGrabAPI, type ReactGrabState, type Rect, type SelectedElementPayload, type SettableOptions, type SourceInfo, type Theme, type ToolbarState, commentPlugin, formatElementInfo, generateSnippet, getGlobalApi, getStack, init, isInstrumentationActive, openPlugin, registerPlugin, setGlobalApi, unregisterPlugin };
31
+ export { type ActionContext, type ActionContextHooks, type ActivationMode, type AgentContext, type ContextMenuAction, type ContextMenuActionContext, DEFAULT_THEME, type DeepPartial, type DragRect, type ElementLabelContext, type ElementLabelVariant, type ElementSelectedEventDetail, FreezeError, type GrabbedBox, type Options, type OverlayBounds, type Plugin, type PluginConfig, type PluginHooks, PluginSetupError, type Position, type PromptModeContext, type ReactGrabAPI, ReactGrabError, type ReactGrabState, type Rect, type SelectedElementPayload, type SettableOptions, type SourceInfo, type Theme, type ToolbarState, commentPlugin, formatElementInfo, generateSnippet, getGlobalApi, getStack, init, isInstrumentationActive, openPlugin, registerPlugin, setGlobalApi, unregisterPlugin };
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  */
9
9
  import { A as SourceInfo, C as PromptModeContext, D as Rect, E as ReactGrabState, M as ToolbarState, O as SelectedElementPayload, S as Position, _ as Options, a as ActionContext, b as PluginConfig, c as AgentContext, d as DeepPartial, f as DragRect, g as GrabbedBox, h as ElementSelectedEventDetail, j as Theme, k as SettableOptions, l as ContextMenuAction, m as ElementLabelVariant, n as isInstrumentationActive, o as ActionContextHooks, p as ElementLabelContext, s as ActivationMode, u as ContextMenuActionContext, v as OverlayBounds, w as ReactGrabAPI, x as PluginHooks, y as Plugin } from "./copy-content-CDFe4uJW.js";
10
10
  import { a as getStack, i as formatElementInfo, n as generateSnippet, r as DEFAULT_THEME, t as init } from "./index-qFak7ECs.js";
11
- import { t as FreezeError } from "./errors-0FkK6sRG.js";
11
+ import { n as PluginSetupError, r as ReactGrabError, t as FreezeError } from "./errors-Cy89H8tr.js";
12
12
 
13
13
  //#region src/core/plugins/comment.d.ts
14
14
  declare const commentPlugin: Plugin;
@@ -28,4 +28,4 @@ declare const setGlobalApi: (api: ReactGrabAPI | null) => void;
28
28
  declare const registerPlugin: (plugin: Plugin) => void;
29
29
  declare const unregisterPlugin: (name: string) => void;
30
30
  //#endregion
31
- export { type ActionContext, type ActionContextHooks, type ActivationMode, type AgentContext, type ContextMenuAction, type ContextMenuActionContext, DEFAULT_THEME, type DeepPartial, type DragRect, type ElementLabelContext, type ElementLabelVariant, type ElementSelectedEventDetail, FreezeError, type GrabbedBox, type Options, type OverlayBounds, type Plugin, type PluginConfig, type PluginHooks, type Position, type PromptModeContext, type ReactGrabAPI, type ReactGrabState, type Rect, type SelectedElementPayload, type SettableOptions, type SourceInfo, type Theme, type ToolbarState, commentPlugin, formatElementInfo, generateSnippet, getGlobalApi, getStack, init, isInstrumentationActive, openPlugin, registerPlugin, setGlobalApi, unregisterPlugin };
31
+ export { type ActionContext, type ActionContextHooks, type ActivationMode, type AgentContext, type ContextMenuAction, type ContextMenuActionContext, DEFAULT_THEME, type DeepPartial, type DragRect, type ElementLabelContext, type ElementLabelVariant, type ElementSelectedEventDetail, FreezeError, type GrabbedBox, type Options, type OverlayBounds, type Plugin, type PluginConfig, type PluginHooks, PluginSetupError, type Position, type PromptModeContext, type ReactGrabAPI, ReactGrabError, type ReactGrabState, type Rect, type SelectedElementPayload, type SettableOptions, type SourceInfo, type Theme, type ToolbarState, commentPlugin, formatElementInfo, generateSnippet, getGlobalApi, getStack, init, isInstrumentationActive, openPlugin, registerPlugin, setGlobalApi, unregisterPlugin };