react-grab 0.0.78 → 0.0.81
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.
- package/README.md +107 -1
- package/dist/chunk-HUGHVCPX.cjs +94 -0
- package/dist/chunk-YE5UYZQC.js +94 -0
- package/dist/cli.cjs +47 -47
- package/dist/{core-BIJVr_bk.d.cts → core-CO-ZnW1x.d.cts} +9 -0
- package/dist/{core-BIJVr_bk.d.ts → core-CO-ZnW1x.d.ts} +9 -0
- package/dist/core.cjs +1 -30
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/index.cjs +2 -60
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.global.js +27 -27
- package/dist/index.js +2 -34
- package/dist/styles.css +1 -1
- package/package.json +2 -2
- package/dist/chunk-IOEUCYGF.cjs +0 -8575
- package/dist/chunk-PJCJQBH7.js +0 -8568
package/README.md
CHANGED
|
@@ -178,6 +178,8 @@ export default function RootLayout({ children }) {
|
|
|
178
178
|
|
|
179
179
|
### Cursor CLI
|
|
180
180
|
|
|
181
|
+
You must have the [`cursor-agent` CLI](https://cursor.com/docs/cli/overview) installed.
|
|
182
|
+
|
|
181
183
|
#### Server Setup
|
|
182
184
|
|
|
183
185
|
The server runs on port `5567` and interfaces with the `cursor-agent` CLI. Add to your `package.json`:
|
|
@@ -278,6 +280,110 @@ export default function RootLayout({ children }) {
|
|
|
278
280
|
}
|
|
279
281
|
```
|
|
280
282
|
|
|
283
|
+
### Codex
|
|
284
|
+
|
|
285
|
+
#### Server Setup
|
|
286
|
+
|
|
287
|
+
The server runs on port `7567` and interfaces with the OpenAI Codex SDK. Add to your `package.json`:
|
|
288
|
+
|
|
289
|
+
```json
|
|
290
|
+
{
|
|
291
|
+
"scripts": {
|
|
292
|
+
"dev": "npx @react-grab/codex@latest && next dev"
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
> **Note:** You must have [Codex](https://github.com/openai/codex) installed (`npm i -g @openai/codex`).
|
|
298
|
+
|
|
299
|
+
#### Client Setup
|
|
300
|
+
|
|
301
|
+
```html
|
|
302
|
+
<script src="//unpkg.com/react-grab/dist/index.global.js"></script>
|
|
303
|
+
<!-- add this in the <head> -->
|
|
304
|
+
<script src="//unpkg.com/@react-grab/codex/dist/client.global.js"></script>
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
Or using Next.js `Script` component in your `app/layout.tsx`:
|
|
308
|
+
|
|
309
|
+
```jsx
|
|
310
|
+
import Script from "next/script";
|
|
311
|
+
|
|
312
|
+
export default function RootLayout({ children }) {
|
|
313
|
+
return (
|
|
314
|
+
<html>
|
|
315
|
+
<head>
|
|
316
|
+
{process.env.NODE_ENV === "development" && (
|
|
317
|
+
<>
|
|
318
|
+
<Script
|
|
319
|
+
src="//unpkg.com/react-grab/dist/index.global.js"
|
|
320
|
+
strategy="beforeInteractive"
|
|
321
|
+
/>
|
|
322
|
+
<Script
|
|
323
|
+
src="//unpkg.com/@react-grab/codex/dist/client.global.js"
|
|
324
|
+
strategy="lazyOnload"
|
|
325
|
+
/>
|
|
326
|
+
</>
|
|
327
|
+
)}
|
|
328
|
+
</head>
|
|
329
|
+
<body>{children}</body>
|
|
330
|
+
</html>
|
|
331
|
+
);
|
|
332
|
+
}
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
### Gemini
|
|
336
|
+
|
|
337
|
+
#### Server Setup
|
|
338
|
+
|
|
339
|
+
The server runs on port `8567` and interfaces with the Gemini CLI. Add to your `package.json`:
|
|
340
|
+
|
|
341
|
+
```json
|
|
342
|
+
{
|
|
343
|
+
"scripts": {
|
|
344
|
+
"dev": "npx @react-grab/gemini@latest && next dev"
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
> **Note:** You must have [Gemini CLI](https://github.com/google-gemini/gemini-cli) installed.
|
|
350
|
+
|
|
351
|
+
#### Client Setup
|
|
352
|
+
|
|
353
|
+
```html
|
|
354
|
+
<script src="//unpkg.com/react-grab/dist/index.global.js"></script>
|
|
355
|
+
<!-- add this in the <head> -->
|
|
356
|
+
<script src="//unpkg.com/@react-grab/gemini/dist/client.global.js"></script>
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
Or using Next.js `Script` component in your `app/layout.tsx`:
|
|
360
|
+
|
|
361
|
+
```jsx
|
|
362
|
+
import Script from "next/script";
|
|
363
|
+
|
|
364
|
+
export default function RootLayout({ children }) {
|
|
365
|
+
return (
|
|
366
|
+
<html>
|
|
367
|
+
<head>
|
|
368
|
+
{process.env.NODE_ENV === "development" && (
|
|
369
|
+
<>
|
|
370
|
+
<Script
|
|
371
|
+
src="//unpkg.com/react-grab/dist/index.global.js"
|
|
372
|
+
strategy="beforeInteractive"
|
|
373
|
+
/>
|
|
374
|
+
<Script
|
|
375
|
+
src="//unpkg.com/@react-grab/gemini/dist/client.global.js"
|
|
376
|
+
strategy="lazyOnload"
|
|
377
|
+
/>
|
|
378
|
+
</>
|
|
379
|
+
)}
|
|
380
|
+
</head>
|
|
381
|
+
<body>{children}</body>
|
|
382
|
+
</html>
|
|
383
|
+
);
|
|
384
|
+
}
|
|
385
|
+
```
|
|
386
|
+
|
|
281
387
|
## Extending React Grab
|
|
282
388
|
|
|
283
389
|
React Grab provides an public customization API. Check out the [type definitions](https://github.com/aidenybai/react-grab/blob/main/packages/react-grab/src/types.ts) to see all available options for extending React Grab.
|
|
@@ -331,4 +437,4 @@ We expect all contributors to abide by the terms of our [Code of Conduct](https:
|
|
|
331
437
|
|
|
332
438
|
React Grab is MIT-licensed open-source software.
|
|
333
439
|
|
|
334
|
-
_Thank you to [Andrew Luetgers](https://github.com/andrewluetgers) for donating the `grab` npm package name._
|
|
440
|
+
_Thank you to [Andrew Luetgers](https://github.com/andrewluetgers) for donating the `grab` npm package name._
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
'use strict';/**
|
|
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
|
+
var Gs=(e,t)=>e===t;var Oo=Symbol("solid-track"),xn={equals:Gs},Mo=Ho,Fe=1,qt=2,$o={owned:null,cleanups:null,context:null,owner:null},sr={},re=null,S=null,Rt=null,ce=null,ve=null,_e=null,Sn=0;function et(e,t){let n=ce,r=re,i=e.length===0,o=t===void 0?r:t,a=i?$o:{owned:null,cleanups:null,context:o?o.context:null,owner:o},l=i?e:()=>e(()=>Re(()=>lt(a)));re=a,ce=null;try{return Pe(l,!0)}finally{ce=n,re=r;}}function _(e,t){t=t?Object.assign({},xn,t):xn;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=i=>(typeof i=="function"&&(i=i(n.value)),Bo(n,i));return [Do.bind(n),r]}function _o(e,t,n){let r=kn(e,t,true,Fe);Lt(r);}function de(e,t,n){let r=kn(e,t,false,Fe);Lt(r);}function se(e,t,n){Mo=qs;let r=kn(e,t,false,Fe);(r.user=true),_e?_e.push(r):Lt(r);}function le(e,t,n){n=n?Object.assign({},xn,n):xn;let r=kn(e,t,true,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,Lt(r),Do.bind(r)}function Ks(e){return e&&typeof e=="object"&&"then"in e}function En(e,t,n){let r,i,o;typeof t=="function"?(r=e,i=t,o={}):(r=true,i=e,o=t||{});let a=null,l=sr,h=false,p="initialValue"in o,A=typeof r=="function"&&le(r),w=new Set,[v,R]=(o.storage||_)(o.initialValue),[B,q]=_(void 0),[I,H]=_(void 0,{equals:false}),[J,E]=_(p?"ready":"unresolved");function $(g,m,f,y){return a===g&&(a=null,y!==void 0&&(p=true),(g===l||m===l)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(y,{value:m})),l=sr,X(m,f)),m}function X(g,m){Pe(()=>{m===void 0&&R(()=>g),E(m!==void 0?"errored":p?"ready":"unresolved"),q(m);for(let f of w.keys())f.decrement();w.clear();},false);}function z(){let g=Zt,m=v(),f=B();if(f!==void 0&&!a)throw f;return ce&&!ce.user&&g,m}function W(g=true){if(g!==false&&h)return;h=false;let m=A?A():r;if(m==null||m===false){$(a,Re(v));return}let f,y=l!==sr?l:Re(()=>{try{return i(m,{value:v(),refetching:g})}catch(L){f=L;}});if(f!==void 0){$(a,void 0,wn(f),m);return}else if(!Ks(y))return $(a,y,void 0,m),y;return a=y,"v"in y?(y.s===1?$(a,y.v,void 0,m):$(a,void 0,wn(y.v),m),y):(h=true,queueMicrotask(()=>h=false),Pe(()=>{E(p?"refreshing":"pending"),H();},false),y.then(L=>$(y,L,void 0,m),L=>$(y,void 0,wn(L),m)))}Object.defineProperties(z,{state:{get:()=>J()},error:{get:()=>B()},loading:{get(){let g=J();return g==="pending"||g==="refreshing"}},latest:{get(){if(!p)return z();let g=B();if(g&&!a)throw g;return v()}}});let M=re;return A?_o(()=>(M=re,W(false))):W(false),[z,{refetch:g=>Po(M,()=>W(g)),mutate:R}]}function Re(e){if(ce===null)return e();let t=ce;ce=null;try{return Rt?Rt.untrack(e):e()}finally{ce=t;}}function Le(e,t,n){let r=Array.isArray(e),i;return a=>{let l;if(r){l=Array(e.length);for(let u=0;u<e.length;u++)l[u]=e[u]();}else l=e();let c=Re(()=>t(l,i,a));return i=l,c}}function Qt(e){se(()=>Re(e));}function be(e){return re===null||(re.cleanups===null?re.cleanups=[e]:re.cleanups.push(e)),e}function Po(e,t){let n=re,r=ce;re=e,ce=null;try{return Pe(t,!0)}catch(i){Tn(i);}finally{re=n,ce=r;}}var[Wc,Ro]=_(false);var Zt;function Do(){let e=S;if(this.sources&&(this.state))if((this.state)===Fe)Lt(this);else {let t=ve;ve=null,Pe(()=>vn(this),false),ve=t;}if(ce){let t=this.observers?this.observers.length:0;ce.sources?(ce.sources.push(this),ce.sourceSlots.push(t)):(ce.sources=[this],ce.sourceSlots=[t]),this.observers?(this.observers.push(ce),this.observerSlots.push(ce.sources.length-1)):(this.observers=[ce],this.observerSlots=[ce.sources.length-1]);}return e&&S.sources.has(this)?this.tValue:this.value}function Bo(e,t,n){let r=e.value;if(!e.comparator||!e.comparator(r,t)){e.value=t;e.observers&&e.observers.length&&Pe(()=>{for(let i=0;i<e.observers.length;i+=1){let o=e.observers[i],a=S&&S.running;a&&S.disposed.has(o)||((a?!o.tState:!o.state)&&(o.pure?ve.push(o):_e.push(o),o.observers&&zo(o)),a?o.tState=Fe:o.state=Fe);}if(ve.length>1e6)throw ve=[],new Error},false);}return t}function Lt(e){if(!e.fn)return;lt(e);let t=Sn;Io(e,e.value,t);}function Io(e,t,n){let r,i=re,o=ce;ce=re=e;try{r=e.fn(t);}catch(a){return e.pure&&((e.state=Fe,e.owned&&e.owned.forEach(lt),e.owned=null)),e.updatedAt=n+1,Tn(a)}finally{ce=o,re=i;}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Bo(e,r):e.value=r,e.updatedAt=n);}function kn(e,t,n,r=Fe,i){let o={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:re,context:re?re.context:null,pure:n};if(re===null||re!==$o&&(re.owned?re.owned.push(o):re.owned=[o]),Rt);return o}function Jt(e){let t=S;if((e.state)===0)return;if((e.state)===qt)return vn(e);if(e.suspense&&Re(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Sn);){(e.state)&&n.push(e);}for(let r=n.length-1;r>=0;r--){if(e=n[r],t);if((e.state)===Fe)Lt(e);else if((e.state)===qt){let i=ve;ve=null,Pe(()=>vn(e,n[0]),false),ve=i;}}}function Pe(e,t){if(ve)return e();let n=false;t||(ve=[]),_e?n=true:_e=[],Sn++;try{let r=e();return Xs(n),r}catch(r){n||(_e=null),ve=null,Tn(r);}}function Xs(e){if(ve&&(Ho(ve),ve=null),e)return;let n=_e;_e=null,n.length&&Pe(()=>Mo(n),false);}function Ho(e){for(let t=0;t<e.length;t++)Jt(e[t]);}function qs(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:Jt(r);}for(t=0;t<n;t++)Jt(e[t]);}function vn(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){let i=e.sources[r];if(i.sources){let o=i.state;o===Fe?i!==t&&(!i.updatedAt||i.updatedAt<Sn)&&Jt(i):o===qt&&vn(i,t);}}}function zo(e){for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(!r.state)&&(r.state=qt,r.pure?ve.push(r):_e.push(r),r.observers&&zo(r));}}function lt(e){let t;if(e.sources)for(;e.sources.length;){let n=e.sources.pop(),r=e.sourceSlots.pop(),i=n.observers;if(i&&i.length){let o=i.pop(),a=n.observerSlots.pop();r<i.length&&(o.sourceSlots[a]=r,i[r]=o,n.observerSlots[r]=a);}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)lt(e.tOwned[t]);delete e.tOwned;}if(e.owned){for(t=e.owned.length-1;t>=0;t--)lt(e.owned[t]);e.owned=null;}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null;}e.state=0;}function wn(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Tn(e,t=re){let r=wn(e);throw r;}var lr=Symbol("fallback");function Cn(e){for(let t=0;t<e.length;t++)e[t]();}function Zs(e,t,n={}){let r=[],i=[],o=[],a=0,l=t.length>1?[]:null;return be(()=>Cn(o)),()=>{let c=e()||[],u=c.length,h,p;return c[Oo],Re(()=>{let w,v,R,B,q,I,H,J,E;if(u===0)a!==0&&(Cn(o),o=[],r=[],i=[],a=0,l&&(l=[])),n.fallback&&(r=[lr],i[0]=et($=>(o[0]=$,n.fallback())),a=1);else if(a===0){for(i=new Array(u),p=0;p<u;p++)r[p]=c[p],i[p]=et(A);a=u;}else {for(R=new Array(u),B=new Array(u),l&&(q=new Array(u)),I=0,H=Math.min(a,u);I<H&&r[I]===c[I];I++);for(H=a-1,J=u-1;H>=I&&J>=I&&r[H]===c[J];H--,J--)R[J]=i[H],B[J]=o[H],l&&(q[J]=l[H]);for(w=new Map,v=new Array(J+1),p=J;p>=I;p--)E=c[p],h=w.get(E),v[p]=h===void 0?-1:h,w.set(E,p);for(h=I;h<=H;h++)E=r[h],p=w.get(E),p!==void 0&&p!==-1?(R[p]=i[h],B[p]=o[h],l&&(q[p]=l[h]),p=v[p],w.set(E,p)):o[h]();for(p=I;p<u;p++)p in R?(i[p]=R[p],o[p]=B[p],l&&(l[p]=q[p],l[p](p))):i[p]=et(A);i=i.slice(0,a=u),r=c.slice(0);}return i});function A(w){if(o[p]=w,l){let[v,R]=_(p);return l[p]=R,t(c[p],v)}return t(c[p])}}}function Js(e,t,n={}){let r=[],i=[],o=[],a=[],l=0,c;return be(()=>Cn(o)),()=>{let u=e()||[],h=u.length;return u[Oo],Re(()=>{if(h===0)return l!==0&&(Cn(o),o=[],r=[],i=[],l=0,a=[]),n.fallback&&(r=[lr],i[0]=et(A=>(o[0]=A,n.fallback())),l=1),i;for(r[0]===lr&&(o[0](),o=[],r=[],i=[],l=0),c=0;c<h;c++)c<r.length&&r[c]!==u[c]?a[c](()=>u[c]):c>=r.length&&(i[c]=et(p));for(;c<r.length;c++)o[c]();return l=a.length=o.length=h,r=u.slice(0),i=i.slice(0,l)});function p(A){o[c]=A;let[w,v]=_(u[c]);return a[c]=v,t(w,c)}}}function T(e,t){return Re(()=>e(t||{}))}var ea=e=>`Stale read from <${e}>.`;function An(e){let t="fallback"in e&&{fallback:()=>e.fallback};return le(Zs(()=>e.each,e.children,t||void 0))}function cr(e){let t="fallback"in e&&{fallback:()=>e.fallback};return le(Js(()=>e.each,e.children,t||void 0))}function te(e){let t=e.keyed,n=le(()=>e.when,void 0,void 0),r=t?n:le(n,void 0,{equals:(i,o)=>!i==!o});return le(()=>{let i=r();if(i){let o=e.children;return typeof o=="function"&&o.length>0?Re(()=>o(t?i:()=>{if(!Re(r))throw ea("Show");return n()})):o}return e.fallback},void 0,void 0)}var Ce=e=>le(()=>e());function ra(e,t,n){let r=n.length,i=t.length,o=r,a=0,l=0,c=t[i-1].nextSibling,u=null;for(;a<i||l<o;){if(t[a]===n[l]){a++,l++;continue}for(;t[i-1]===n[o-1];)i--,o--;if(i===a){let h=o<r?l?n[l-1].nextSibling:n[o-l]:c;for(;l<o;)e.insertBefore(n[l++],h);}else if(o===l)for(;a<i;)(!u||!u.has(t[a]))&&t[a].remove(),a++;else if(t[a]===n[o-1]&&n[l]===t[i-1]){let h=t[--i].nextSibling;e.insertBefore(n[l++],t[a++].nextSibling),e.insertBefore(n[--o],h),t[i]=n[o];}else {if(!u){u=new Map;let p=l;for(;p<o;)u.set(n[p],p++);}let h=u.get(t[a]);if(h!=null)if(l<h&&h<o){let p=a,A=1,w;for(;++p<i&&p<o&&!((w=u.get(t[p]))==null||w!==h+A);)A++;if(A>h-l){let v=t[a];for(;l<h;)e.insertBefore(n[l++],v);}else e.replaceChild(n[l++],t[a++]);}else a++;else t[a++].remove();}}}var Vo="_$DX_DELEGATE";function Go(e,t,n,r={}){let i;return et(o=>{i=o,t===document?e():D(t,e(),t.firstChild?null:void 0,n);},r.owner),()=>{i(),t.textContent="";}}function Y(e,t,n,r){let i,o=()=>{let l=document.createElement("template");return l.innerHTML=e,l.content.firstChild},a=()=>(i||(i=o())).cloneNode(true);return a.cloneNode=a,a}function _n(e,t=window.document){let n=t[Vo]||(t[Vo]=new Set);for(let r=0,i=e.length;r<i;r++){let o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,oa));}}function we(e,t,n){(n==null?e.removeAttribute(t):e.setAttribute(t,n));}function He(e,t){(t==null?e.removeAttribute("class"):e.className=t);}function ct(e,t,n,r){Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;}function Ko(e,t,n){if(!t)return n?we(e,"style"):t;let r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let i,o;for(o in n)t[o]==null&&r.removeProperty(o),delete n[o];for(o in t)i=t[o],i!==n[o]&&(r.setProperty(o,i),n[o]=i);return n}function Te(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t);}function Mt(e,t,n){return Re(()=>e(t,n))}function D(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return Nn(e,t,r,n);de(i=>Nn(e,t(),i,n),r);}function oa(e){let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,o=c=>Object.defineProperty(e,"target",{configurable:true,value:c}),a=()=>{let c=t[n];if(c&&!t.disabled){let u=t[`${n}Data`];if(u!==void 0?c.call(t,u,e):c.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&o(t.host),true},l=()=>{for(;a()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:true,get(){return t||document}}),e.composedPath){let c=e.composedPath();o(c[0]);for(let u=0;u<c.length-2&&(t=c[u],!!a());u++){if(t._$host){t=t._$host,l();break}if(t.parentNode===i)break}}else l();o(r);}function Nn(e,t,n,r,i){for(;typeof n=="function";)n=n();if(t===n)return n;let a=typeof t,l=r!==void 0;if(e=l&&n[0]&&n[0].parentNode||e,a==="string"||a==="number"){if(a==="number"&&(t=t.toString(),t===n))return n;if(l){let c=n[0];c&&c.nodeType===3?c.data!==t&&(c.data=t):c=document.createTextNode(t),n=Ot(e,n,r,c);}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t;}else if(t==null||a==="boolean"){n=Ot(e,n,r);}else {if(a==="function")return de(()=>{let c=t();for(;typeof c=="function";)c=c();n=Nn(e,c,n,r);}),()=>n;if(Array.isArray(t)){let c=[],u=n&&Array.isArray(n);if(ur(c,t,n,i))return de(()=>n=Nn(e,c,n,r,true)),()=>n;if(c.length===0){if(n=Ot(e,n,r),l)return n}else u?n.length===0?Uo(e,c,r):ra(e,n,c):(n&&Ot(e),Uo(e,c));n=c;}else if(t.nodeType){if(Array.isArray(n)){if(l)return n=Ot(e,n,r,t);Ot(e,n,null,t);}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t;}}return n}function ur(e,t,n,r){let i=false;for(let o=0,a=t.length;o<a;o++){let l=t[o],c=n&&n[e.length],u;if(!(l==null||l===true||l===false))if((u=typeof l)=="object"&&l.nodeType)e.push(l);else if(Array.isArray(l))i=ur(e,l,c)||i;else if(u==="function")if(r){for(;typeof l=="function";)l=l();i=ur(e,Array.isArray(l)?l:[l],Array.isArray(c)?c:[c])||i;}else e.push(l),i=true;else {let h=String(l);c&&c.nodeType===3&&c.data===h?e.push(c):e.push(document.createTextNode(h));}}return i}function Uo(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n);}function Ot(e,t,n,r){if(n===void 0)return e.textContent="";let i=r||document.createTextNode("");if(t.length){let o=false;for(let a=t.length-1;a>=0;a--){let l=t[a];if(i!==l){let c=l.parentNode===e;!o&&!a?c?e.replaceChild(i,l):e.insertBefore(i,n):c&&l.remove();}else o=true;}}else e.insertBefore(i,n);return [i]}var Yo=`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
|
|
10
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-contain-size:initial;--tw-contain-layout:initial;--tw-contain-paint:initial;--tw-contain-style:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-black:#000;--color-white:#fff;--spacing:.25rem;--font-weight-medium:500;--radius-xs:.125rem;--ease-out:cubic-bezier(0,0,.2,1);--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-grab-pink:#b21c8e;--color-grab-purple:#d239c0;--color-label-tag-border:#730079;--color-label-muted:#767676}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.top-0{top:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.z-2147483645{z-index:2147483645}.z-2147483646{z-index:2147483646}.z-2147483647{z-index:2147483647}.z-\\[2147483645\\]{z-index:2147483645}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing)*0)}.-mt-px{margin-top:-1px}.mb-0\\.5{margin-bottom:calc(var(--spacing)*.5)}.-ml-\\[2px\\]{margin-left:-2px}.ml-1{margin-left:calc(var(--spacing)*1)}.box-border{box-sizing:border-box}.flex{display:flex}.grid{display:grid}.hidden{display:none}.size-fit{width:fit-content;height:fit-content}.h-0{height:calc(var(--spacing)*0)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-5\\.5{height:calc(var(--spacing)*5.5)}.h-\\[7px\\]{height:7px}.h-\\[17px\\]{height:17px}.h-\\[18px\\]{height:18px}.h-fit{height:fit-content}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-4{min-height:calc(var(--spacing)*4)}.w-0{width:calc(var(--spacing)*0)}.w-0\\.5{width:calc(var(--spacing)*.5)}.w-1{width:calc(var(--spacing)*1)}.w-\\[7px\\]{width:7px}.w-\\[17px\\]{width:17px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[280px\\]{max-width:280px}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-75{--tw-scale-x:75%;--tw-scale-y:75%;--tw-scale-z:75%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.cursor-crosshair{cursor:crosshair}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-\\[3px\\]{gap:3px}.gap-\\[5px\\]{gap:5px}.gap-px{gap:1px}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-\\[1\\.5px\\]{border-radius:1.5px}.rounded-\\[1px\\]{border-radius:1px}.rounded-full{border-radius:3.40282e38px}.rounded-xs{border-radius:var(--radius-xs)}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-b-xs{border-bottom-right-radius:var(--radius-xs);border-bottom-left-radius:var(--radius-xs)}.border{border-style:var(--tw-border-style);border-width:1px}.\\[border-width\\:0\\.5px\\]{border-width:.5px}.\\[border-top-width\\:0\\.5px\\]{border-top-width:.5px}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[\\#7e0002\\]{border-color:#7e0002}.border-\\[\\#B3B3B3\\]{border-color:#b3b3b3}.border-grab-purple{border-color:var(--color-grab-purple)}.border-grab-purple\\/40{border-color:#d239c066}@supports (color:color-mix(in lab, red, red)){.border-grab-purple\\/40{border-color:color-mix(in oklab,var(--color-grab-purple)40%,transparent)}}.border-grab-purple\\/50{border-color:#d239c080}@supports (color:color-mix(in lab, red, red)){.border-grab-purple\\/50{border-color:color-mix(in oklab,var(--color-grab-purple)50%,transparent)}}.border-label-tag-border{border-color:var(--color-label-tag-border)}.border-white{border-color:var(--color-white)}.border-t-\\[\\#D9D9D9\\]{border-top-color:#d9d9d9}.bg-\\[\\#F7F7F7\\]{background-color:#f7f7f7}.bg-black{background-color:var(--color-black)}.bg-grab-pink{background-color:var(--color-grab-pink)}.bg-grab-purple{background-color:var(--color-grab-purple)}.bg-grab-purple\\/5{background-color:#d239c00d}@supports (color:color-mix(in lab, red, red)){.bg-grab-purple\\/5{background-color:color-mix(in oklab,var(--color-grab-purple)5%,transparent)}}.bg-grab-purple\\/8{background-color:#d239c014}@supports (color:color-mix(in lab, red, red)){.bg-grab-purple\\/8{background-color:color-mix(in oklab,var(--color-grab-purple)8%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.px-0{padding-inline:calc(var(--spacing)*0)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-\\[2px\\]{padding-inline:2px}.px-\\[3px\\]{padding-inline:3px}.py-0{padding-block:calc(var(--spacing)*0)}.py-\\[2px\\]{padding-block:2px}.py-\\[3px\\]{padding-block:3px}.py-\\[5px\\]{padding-block:5px}.py-px{padding-block:1px}.pt-1{padding-top:calc(var(--spacing)*1)}.pt-1\\.5{padding-top:calc(var(--spacing)*1.5)}.pr-1{padding-right:calc(var(--spacing)*1)}.pr-1\\.5{padding-right:calc(var(--spacing)*1.5)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pl-1\\.5{padding-left:calc(var(--spacing)*1.5)}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-\\[9px\\]{font-size:9px}.text-\\[11\\.5px\\]{font-size:11.5px}.text-\\[11px\\]{font-size:11px}.text-\\[12px\\]{font-size:12px}.leading-3{--tw-leading:calc(var(--spacing)*3);line-height:calc(var(--spacing)*3)}.leading-3\\.5{--tw-leading:calc(var(--spacing)*3.5);line-height:calc(var(--spacing)*3.5)}.leading-4{--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.wrap-break-word{overflow-wrap:break-word}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.text-\\[\\#0C0C0C\\]{color:#0c0c0c}.text-\\[\\#47004A\\]{color:#47004a}.text-\\[\\#71717a\\]{color:#71717a}.text-\\[\\#B91C1C\\]{color:#b91c1c}.text-\\[\\#a1a1aa\\]{color:#a1a1aa}.text-\\[\\#c00002\\]{color:#c00002}.text-black{color:var(--color-black)}.text-black\\/50{color:#00000080}@supports (color:color-mix(in lab, red, red)){.text-black\\/50{color:color-mix(in oklab,var(--color-black)50%,transparent)}}.text-label-muted{color:var(--color-label-muted)}.text-label-tag-border{color:var(--color-label-tag-border)}.text-white{color:var(--color-white)}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.opacity-\\[0\\.99\\]{opacity:.99}.brightness-125{--tw-brightness:brightness(125%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter-\\[drop-shadow\\(0px_0px_4px_\\#51515180\\)\\]{filter:drop-shadow(0 0 4px #51515180)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-rows\\]{transition-property:grid-template-rows;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[width\\,height\\]{transition-property:width,height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-30{--tw-duration:30ms;transition-duration:30ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-\\[transform\\,width\\,height\\]{will-change:transform,width,height}.contain-layout{--tw-contain-layout:layout;contain:var(--tw-contain-size,)var(--tw-contain-layout,)var(--tw-contain-paint,)var(--tw-contain-style,)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\\[font-synthesis\\:none\\]{font-synthesis:none}@media (hover:hover){.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\\:bg-\\[\\#F5F5F5\\]:hover{background-color:#f5f5f5}.hover\\:bg-\\[\\#FEF2F2\\]:hover{background-color:#fef2f2}.hover\\:opacity-100:hover{opacity:1}}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-contain-size{syntax:"*";inherits:false}@property --tw-contain-layout{syntax:"*";inherits:false}@property --tw-contain-paint{syntax:"*";inherits:false}@property --tw-contain-style{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}`;var sa=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"],aa=e=>!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-"),la=e=>Array.isArray(e),ca=(e,t=false)=>{let{composed:n,target:r}=e,i,o;if(r instanceof HTMLElement&&aa(r)&&n){let l=e.composedPath()[0];l instanceof HTMLElement&&(i=l.tagName,o=l.role);}else r instanceof HTMLElement&&(i=r.tagName,o=r.role);return la(t)?!!(i&&t&&t.some(a=>typeof i=="string"&&a.toLowerCase()===i.toLowerCase()||a===o)):!!(i&&t&&t)},fr=e=>ca(e,sa);var Xo=e=>{let t=e.tagName.toLowerCase();return !!(t==="input"||t==="textarea"||e instanceof HTMLElement&&e.isContentEditable)},Wo=(e,t)=>{let n=document.activeElement;if(n){let r=n;for(;r;){if(Xo(r))return true;r=r.parentElement;}}if(e!==void 0&&t!==void 0){let r=document.elementsFromPoint(e,t);for(let i of r)if(Xo(i))return true}return false};var $t="data-react-grab",qo=e=>{let t=document.querySelector(`[${$t}]`);if(t){let a=t.shadowRoot?.querySelector(`[${$t}]`);if(a instanceof HTMLDivElement&&t.shadowRoot)return a}let n=document.createElement("div");n.setAttribute($t,"true"),n.style.zIndex="2147483646",n.style.position="fixed",n.style.top="0",n.style.left="0";let r=n.attachShadow({mode:"open"});{let a=document.createElement("style");a.textContent=e,r.appendChild(a);}let i=document.createElement("div");i.setAttribute($t,"true"),r.appendChild(i);let o=document.body??document.documentElement;return o.appendChild(n),setTimeout(()=>{o.contains(n)||o.appendChild(n);},1e3),i};var ua="https://react-grab.com",Rn=(e,t)=>{let n=t?`&line=${t}`:"";return `${ua}/open-file?url=${encodeURIComponent(e)}${n}`};var Zo="0.0.81";var In=["Meta","Control","Shift","Alt"],Jo='<svg width="294" height="294" viewBox="0 0 294 294" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_0_3)"><mask id="mask0_0_3" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="294" height="294"><path d="M294 0H0V294H294V0Z" fill="white"/></mask><g mask="url(#mask0_0_3)"><path d="M144.599 47.4924C169.712 27.3959 194.548 20.0265 212.132 30.1797C227.847 39.2555 234.881 60.3243 231.926 89.516C231.677 92.0069 231.328 94.5423 230.94 97.1058L228.526 110.14C228.517 110.136 228.505 110.132 228.495 110.127C228.486 110.165 228.479 110.203 228.468 110.24L216.255 105.741C216.256 105.736 216.248 105.728 216.248 105.723C207.915 103.125 199.421 101.075 190.82 99.5888L190.696 99.5588L173.526 97.2648L173.511 97.2631C173.492 97.236 173.467 97.2176 173.447 97.1905C163.862 96.2064 154.233 95.7166 144.599 95.7223C134.943 95.7162 125.295 96.219 115.693 97.2286C110.075 105.033 104.859 113.118 100.063 121.453C95.2426 129.798 90.8624 138.391 86.939 147.193C90.8624 155.996 95.2426 164.588 100.063 172.933C104.866 181.302 110.099 189.417 115.741 197.245C115.749 197.245 115.758 197.246 115.766 197.247L115.752 197.27L115.745 197.283L115.754 197.296L126.501 211.013L126.574 211.089C132.136 217.767 138.126 224.075 144.507 229.974L144.609 230.082L154.572 238.287C154.539 238.319 154.506 238.35 154.472 238.38C154.485 238.392 154.499 238.402 154.513 238.412L143.846 247.482L143.827 247.497C126.56 261.128 109.472 268.745 94.8019 268.745C88.5916 268.837 82.4687 267.272 77.0657 264.208C61.3496 255.132 54.3164 234.062 57.2707 204.871C57.528 202.307 57.8806 199.694 58.2904 197.054C28.3363 185.327 9.52301 167.51 9.52301 147.193C9.52301 129.042 24.2476 112.396 50.9901 100.375C53.3443 99.3163 55.7938 98.3058 58.2904 97.3526C57.8806 94.7023 57.528 92.0803 57.2707 89.516C54.3164 60.3243 61.3496 39.2555 77.0657 30.1797C94.6494 20.0265 119.486 27.3959 144.599 47.4924ZM70.6423 201.315C70.423 202.955 70.2229 204.566 70.0704 206.168C67.6686 229.567 72.5478 246.628 83.3615 252.988L83.5176 253.062C95.0399 259.717 114.015 254.426 134.782 238.38C125.298 229.45 116.594 219.725 108.764 209.314C95.8516 207.742 83.0977 205.066 70.6423 201.315ZM80.3534 163.438C77.34 171.677 74.8666 180.104 72.9484 188.664C81.1787 191.224 89.5657 193.247 98.0572 194.724L98.4618 194.813C95.2115 189.865 92.0191 184.66 88.9311 179.378C85.8433 174.097 83.003 168.768 80.3534 163.438ZM60.759 110.203C59.234 110.839 57.7378 111.475 56.27 112.11C34.7788 121.806 22.3891 134.591 22.3891 147.193C22.3891 160.493 36.4657 174.297 60.7494 184.26C63.7439 171.581 67.8124 159.182 72.9104 147.193C67.822 135.23 63.7566 122.855 60.759 110.203ZM98.4137 99.6404C89.8078 101.145 81.3075 103.206 72.9676 105.809C74.854 114.203 77.2741 122.468 80.2132 130.554L80.3059 130.939C82.9938 125.6 85.8049 120.338 88.8834 115.008C91.9618 109.679 95.1544 104.569 98.4137 99.6404ZM94.9258 38.5215C90.9331 38.4284 86.9866 39.3955 83.4891 41.3243C72.6291 47.6015 67.6975 64.5954 70.0424 87.9446L70.0416 88.2194C70.194 89.8208 70.3941 91.4325 70.6134 93.0624C83.0737 89.3364 95.8263 86.6703 108.736 85.0924C116.57 74.6779 125.28 64.9532 134.773 56.0249C119.877 44.5087 105.895 38.5215 94.9258 38.5215ZM205.737 41.3148C202.268 39.398 198.355 38.4308 194.394 38.5099L194.29 38.512C183.321 38.512 169.34 44.4991 154.444 56.0153C163.93 64.9374 172.634 74.6557 180.462 85.064C193.375 86.6345 206.128 89.3102 218.584 93.0624C218.812 91.4325 219.003 89.8118 219.165 88.2098C221.548 64.7099 216.65 47.6164 205.737 41.3148ZM144.552 64.3097C138.104 70.2614 132.054 76.6306 126.443 83.3765C132.39 82.995 138.426 82.8046 144.552 82.8046C150.727 82.8046 156.778 83.0143 162.707 83.3765C157.08 76.6293 151.015 70.2596 144.552 64.3097Z" fill="white"/><path d="M144.598 47.4924C169.712 27.3959 194.547 20.0265 212.131 30.1797C227.847 39.2555 234.88 60.3243 231.926 89.516C231.677 92.0069 231.327 94.5423 230.941 97.1058L228.526 110.14L228.496 110.127C228.487 110.165 228.478 110.203 228.469 110.24L216.255 105.741L216.249 105.723C207.916 103.125 199.42 101.075 190.82 99.5888L190.696 99.5588L173.525 97.2648L173.511 97.263C173.492 97.236 173.468 97.2176 173.447 97.1905C163.863 96.2064 154.234 95.7166 144.598 95.7223C134.943 95.7162 125.295 96.219 115.693 97.2286C110.075 105.033 104.859 113.118 100.063 121.453C95.2426 129.798 90.8622 138.391 86.939 147.193C90.8622 155.996 95.2426 164.588 100.063 172.933C104.866 181.302 110.099 189.417 115.741 197.245L115.766 197.247L115.752 197.27L115.745 197.283L115.754 197.296L126.501 211.013L126.574 211.089C132.136 217.767 138.126 224.075 144.506 229.974L144.61 230.082L154.572 238.287C154.539 238.319 154.506 238.35 154.473 238.38L154.512 238.412L143.847 247.482L143.827 247.497C126.56 261.13 109.472 268.745 94.8018 268.745C88.5915 268.837 82.4687 267.272 77.0657 264.208C61.3496 255.132 54.3162 234.062 57.2707 204.871C57.528 202.307 57.8806 199.694 58.2904 197.054C28.3362 185.327 9.52298 167.51 9.52298 147.193C9.52298 129.042 24.2476 112.396 50.9901 100.375C53.3443 99.3163 55.7938 98.3058 58.2904 97.3526C57.8806 94.7023 57.528 92.0803 57.2707 89.516C54.3162 60.3243 61.3496 39.2555 77.0657 30.1797C94.6493 20.0265 119.486 27.3959 144.598 47.4924ZM70.6422 201.315C70.423 202.955 70.2229 204.566 70.0704 206.168C67.6686 229.567 72.5478 246.628 83.3615 252.988L83.5175 253.062C95.0399 259.717 114.015 254.426 134.782 238.38C125.298 229.45 116.594 219.725 108.764 209.314C95.8515 207.742 83.0977 205.066 70.6422 201.315ZM80.3534 163.438C77.34 171.677 74.8666 180.104 72.9484 188.664C81.1786 191.224 89.5657 193.247 98.0572 194.724L98.4618 194.813C95.2115 189.865 92.0191 184.66 88.931 179.378C85.8433 174.097 83.003 168.768 80.3534 163.438ZM60.7589 110.203C59.234 110.839 57.7378 111.475 56.2699 112.11C34.7788 121.806 22.3891 134.591 22.3891 147.193C22.3891 160.493 36.4657 174.297 60.7494 184.26C63.7439 171.581 67.8124 159.182 72.9103 147.193C67.822 135.23 63.7566 122.855 60.7589 110.203ZM98.4137 99.6404C89.8078 101.145 81.3075 103.206 72.9676 105.809C74.8539 114.203 77.2741 122.468 80.2132 130.554L80.3059 130.939C82.9938 125.6 85.8049 120.338 88.8834 115.008C91.9618 109.679 95.1544 104.569 98.4137 99.6404ZM94.9258 38.5215C90.9331 38.4284 86.9866 39.3955 83.4891 41.3243C72.629 47.6015 67.6975 64.5954 70.0424 87.9446L70.0415 88.2194C70.194 89.8208 70.3941 91.4325 70.6134 93.0624C83.0737 89.3364 95.8262 86.6703 108.736 85.0924C116.57 74.6779 125.28 64.9532 134.772 56.0249C119.877 44.5087 105.895 38.5215 94.9258 38.5215ZM205.737 41.3148C202.268 39.398 198.355 38.4308 194.394 38.5099L194.291 38.512C183.321 38.512 169.34 44.4991 154.443 56.0153C163.929 64.9374 172.634 74.6557 180.462 85.064C193.374 86.6345 206.129 89.3102 218.584 93.0624C218.813 91.4325 219.003 89.8118 219.166 88.2098C221.548 64.7099 216.65 47.6164 205.737 41.3148ZM144.551 64.3097C138.103 70.2614 132.055 76.6306 126.443 83.3765C132.389 82.995 138.427 82.8046 144.551 82.8046C150.727 82.8046 156.779 83.0143 162.707 83.3765C157.079 76.6293 151.015 70.2596 144.551 64.3097Z" fill="#FF40E0"/></g><mask id="mask1_0_3" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="102" y="84" width="161" height="162"><path d="M235.282 84.827L102.261 112.259L129.693 245.28L262.714 217.848L235.282 84.827Z" fill="white"/></mask><g mask="url(#mask1_0_3)"><path d="M136.863 129.916L213.258 141.224C220.669 142.322 222.495 152.179 215.967 155.856L187.592 171.843L184.135 204.227C183.339 211.678 173.564 213.901 169.624 207.526L129.021 141.831C125.503 136.14 130.245 128.936 136.863 129.916Z" fill="#FF40E0" stroke="#FF40E0" stroke-width="0.817337" stroke-linecap="round" stroke-linejoin="round"/></g></g><defs><clipPath id="clip0_0_3"><rect width="294" height="294" fill="white"/></clipPath></defs></svg>';var ut=(e,t,n)=>e+(t-e)*n;function Qo(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Qo(e[t]))&&(r&&(r+=" "),r+=n);}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ei(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Qo(e))&&(r&&(r+=" "),r+=t);return r}var gr="-",da=e=>{let t=ma(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return {getClassGroupId:a=>{let l=a.split(gr);return l[0]===""&&l.length!==1&&l.shift(),ri(l,t)||fa(a)},getConflictingClassGroupIds:(a,l)=>{let c=n[a]||[];return l&&r[a]?[...c,...r[a]]:c}}},ri=(e,t)=>{if(e.length===0)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),i=r?ri(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let o=e.join(gr);return t.validators.find(({validator:a})=>a(o))?.classGroupId},ti=/^\[(.+)\]$/,fa=e=>{if(ti.test(e)){let t=ti.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return "arbitrary.."+n}},ma=e=>{let{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return ga(Object.entries(e.classGroups),n).forEach(([o,a])=>{pr(a,r,o,t);}),r},pr=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){let o=i===""?t:ni(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(pa(i)){pr(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,a])=>{pr(a,ni(t,o),n,r);});});},ni=(e,t)=>{let n=e;return t.split(gr).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r);}),n},pa=e=>e.isThemeGetter,ga=(e,t)=>t?e.map(([n,r])=>{let i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([a,l])=>[t+a,l])):o);return [n,i]}):e,ha=e=>{if(e<1)return {get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map,i=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map);};return {get(o){let a=n.get(o);if(a!==void 0)return a;if((a=r.get(o))!==void 0)return i(o,a),a},set(o,a){n.has(o)?n.set(o,a):i(o,a);}}},oi="!",ba=e=>{let{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],o=t.length,a=l=>{let c=[],u=0,h=0,p;for(let B=0;B<l.length;B++){let q=l[B];if(u===0){if(q===i&&(r||l.slice(B,B+o)===t)){c.push(l.slice(h,B)),h=B+o;continue}if(q==="/"){p=B;continue}}q==="["?u++:q==="]"&&u--;}let A=c.length===0?l:l.substring(h),w=A.startsWith(oi),v=w?A.substring(1):A,R=p&&p>h?p-h:void 0;return {modifiers:c,hasImportantModifier:w,baseClassName:v,maybePostfixModifierPosition:R}};return n?l=>n({className:l,parseClassName:a}):a},ya=e=>{if(e.length<=1)return e;let t=[],n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r);}),t.push(...n.sort()),t},wa=e=>({cache:ha(e.cacheSize),parseClassName:ba(e),...da(e)}),xa=/\s+/,va=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(xa),l="";for(let c=a.length-1;c>=0;c-=1){let u=a[c],{modifiers:h,hasImportantModifier:p,baseClassName:A,maybePostfixModifierPosition:w}=n(u),v=!!w,R=r(v?A.substring(0,w):A);if(!R){if(!v){l=u+(l.length>0?" "+l:l);continue}if(R=r(A),!R){l=u+(l.length>0?" "+l:l);continue}v=false;}let B=ya(h).join(":"),q=p?B+oi:B,I=q+R;if(o.includes(I))continue;o.push(I);let H=i(R,v);for(let J=0;J<H.length;++J){let E=H[J];o.push(q+E);}l=u+(l.length>0?" "+l:l);}return l};function Ca(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=ii(t))&&(r&&(r+=" "),r+=n);return r}var ii=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ii(e[r]))&&(n&&(n+=" "),n+=t);return n};function Sa(e,...t){let n,r,i,o=a;function a(c){let u=t.reduce((h,p)=>p(h),e());return n=wa(u),r=n.cache.get,i=n.cache.set,o=l,l(c)}function l(c){let u=r(c);if(u)return u;let h=va(c,n);return i(c,h),h}return function(){return o(Ca.apply(null,arguments))}}var ge=e=>{let t=n=>n[e]||[];return t.isThemeGetter=true,t},si=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ea=/^\d+\/\d+$/,ka=new Set(["px","full","screen"]),Ta=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Aa=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Na=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,_a=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ra=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,tt=e=>Pt(e)||ka.has(e)||Ea.test(e),dt=e=>Ft(e,"length",Da),Pt=e=>!!e&&!Number.isNaN(Number(e)),mr=e=>Ft(e,"number",Pt),en=e=>!!e&&Number.isInteger(Number(e)),Ia=e=>e.endsWith("%")&&Pt(e.slice(0,-1)),Z=e=>si.test(e),ft=e=>Ta.test(e),La=new Set(["length","size","percentage"]),Oa=e=>Ft(e,La,ai),Ma=e=>Ft(e,"position",ai),$a=new Set(["image","url"]),Pa=e=>Ft(e,$a,Ha),Fa=e=>Ft(e,"",Ba),tn=()=>true,Ft=(e,t,n)=>{let r=si.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):false},Da=e=>Aa.test(e)&&!Na.test(e),ai=()=>false,Ba=e=>_a.test(e),Ha=e=>Ra.test(e);var za=()=>{let e=ge("colors"),t=ge("spacing"),n=ge("blur"),r=ge("brightness"),i=ge("borderColor"),o=ge("borderRadius"),a=ge("borderSpacing"),l=ge("borderWidth"),c=ge("contrast"),u=ge("grayscale"),h=ge("hueRotate"),p=ge("invert"),A=ge("gap"),w=ge("gradientColorStops"),v=ge("gradientColorStopPositions"),R=ge("inset"),B=ge("margin"),q=ge("opacity"),I=ge("padding"),H=ge("saturate"),J=ge("scale"),E=ge("sepia"),$=ge("skew"),X=ge("space"),z=ge("translate"),W=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],g=()=>["auto",Z,t],m=()=>[Z,t],f=()=>["",tt,dt],y=()=>["auto",Pt,Z],L=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],oe=()=>["","0",Z],C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>[Pt,Z];return {cacheSize:500,separator:":",theme:{colors:[tn],spacing:[tt,dt],blur:["none","",ft,Z],brightness:P(),borderColor:[e],borderRadius:["none","","full",ft,Z],borderSpacing:m(),borderWidth:f(),contrast:P(),grayscale:oe(),hueRotate:P(),invert:oe(),gap:m(),gradientColorStops:[e],gradientColorStopPositions:[Ia,dt],inset:g(),margin:g(),opacity:P(),padding:m(),saturate:P(),scale:P(),sepia:oe(),skew:P(),space:m(),translate:m()},classGroups:{aspect:[{aspect:["auto","square","video",Z]}],container:["container"],columns:[{columns:[ft]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...L(),Z]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[R]}],"inset-x":[{"inset-x":[R]}],"inset-y":[{"inset-y":[R]}],start:[{start:[R]}],end:[{end:[R]}],top:[{top:[R]}],right:[{right:[R]}],bottom:[{bottom:[R]}],left:[{left:[R]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",en,Z]}],basis:[{basis:g()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Z]}],grow:[{grow:oe()}],shrink:[{shrink:oe()}],order:[{order:["first","last","none",en,Z]}],"grid-cols":[{"grid-cols":[tn]}],"col-start-end":[{col:["auto",{span:["full",en,Z]},Z]}],"col-start":[{"col-start":y()}],"col-end":[{"col-end":y()}],"grid-rows":[{"grid-rows":[tn]}],"row-start-end":[{row:["auto",{span:[en,Z]},Z]}],"row-start":[{"row-start":y()}],"row-end":[{"row-end":y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Z]}],gap:[{gap:[A]}],"gap-x":[{"gap-x":[A]}],"gap-y":[{"gap-y":[A]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[I]}],px:[{px:[I]}],py:[{py:[I]}],ps:[{ps:[I]}],pe:[{pe:[I]}],pt:[{pt:[I]}],pr:[{pr:[I]}],pb:[{pb:[I]}],pl:[{pl:[I]}],m:[{m:[B]}],mx:[{mx:[B]}],my:[{my:[B]}],ms:[{ms:[B]}],me:[{me:[B]}],mt:[{mt:[B]}],mr:[{mr:[B]}],mb:[{mb:[B]}],ml:[{ml:[B]}],"space-x":[{"space-x":[X]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[X]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Z,t]}],"min-w":[{"min-w":[Z,t,"min","max","fit"]}],"max-w":[{"max-w":[Z,t,"none","full","min","max","fit","prose",{screen:[ft]},ft]}],h:[{h:[Z,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Z,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Z,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Z,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ft,dt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",mr]}],"font-family":[{font:[tn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Z]}],"line-clamp":[{"line-clamp":["none",Pt,mr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",tt,Z]}],"list-image":[{"list-image":["none",Z]}],"list-style-type":[{list:["none","disc","decimal",Z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[q]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",tt,dt]}],"underline-offset":[{"underline-offset":["auto",tt,Z]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[q]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...L(),Ma]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Oa]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Pa]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[q]}],"border-style":[{border:[...F(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[q]}],"divide-style":[{divide:F()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...F()]}],"outline-offset":[{"outline-offset":[tt,Z]}],"outline-w":[{outline:[tt,dt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:f()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[q]}],"ring-offset-w":[{"ring-offset":[tt,dt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ft,Fa]}],"shadow-color":[{shadow:[tn]}],opacity:[{opacity:[q]}],"mix-blend":[{"mix-blend":[...ne(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ne()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",ft,Z]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[p]}],saturate:[{saturate:[H]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[q]}],"backdrop-saturate":[{"backdrop-saturate":[H]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Z]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",Z]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",Z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[J]}],"scale-x":[{"scale-x":[J]}],"scale-y":[{"scale-y":[J]}],rotate:[{rotate:[en,Z]}],"translate-x":[{"translate-x":[z]}],"translate-y":[{"translate-y":[z]}],"skew-x":[{"skew-x":[$]}],"skew-y":[{"skew-y":[$]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Z]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Z]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Z]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[tt,dt,mr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var li=Sa(za);var De=(...e)=>li(ei(e));var Va=Y("<div style=overflow:visible>"),xt=e=>{let[t,n]=_(e.bounds.x),[r,i]=_(e.bounds.y),[o,a]=_(e.bounds.width),[l,c]=_(e.bounds.height),[u,h]=_(1),p=false,A=null,w=null,v=e.bounds,R=false,B=()=>e.lerpFactor!==void 0?e.lerpFactor:e.variant==="drag"?.7:.95,q=()=>{if(R)return;R=true;let I=()=>{let H=ut(t(),v.x,B()),J=ut(r(),v.y,B()),E=ut(o(),v.width,B()),$=ut(l(),v.height,B());n(H),i(J),a(E),c($),Math.abs(H-v.x)<.5&&Math.abs(J-v.y)<.5&&Math.abs(E-v.width)<.5&&Math.abs($-v.height)<.5?(A=null,R=false):A=requestAnimationFrame(I);};A=requestAnimationFrame(I);};return se(Le(()=>e.bounds,I=>{if(v=I,!p){n(v.x),i(v.y),a(v.width),c(v.height),p=true;return}q();})),se(()=>{e.variant==="grabbed"&&e.createdAt&&(w=window.setTimeout(()=>{h(0);},1500));}),be(()=>{A!==null&&(cancelAnimationFrame(A),A=null),w!==null&&(window.clearTimeout(w),w=null),R=false;}),T(te,{get when(){return e.visible!==false},get children(){var I=Va();return de(H=>{var J=De("fixed box-border",e.variant==="drag"&&"pointer-events-none",e.variant!=="drag"&&"pointer-events-auto",e.variant==="grabbed"&&"z-2147483645",e.variant!=="grabbed"&&"z-2147483646",e.variant==="drag"&&"border border-solid border-grab-purple/40 bg-grab-purple/5 will-change-[transform,width,height] cursor-crosshair",e.variant==="selection"&&"border border-solid border-grab-purple/50 bg-grab-purple/8 transition-opacity duration-100 ease-out",e.variant==="grabbed"&&"border border-solid border-grab-purple/50 bg-grab-purple/8",e.variant==="processing"&&!e.isCompleted&&"border border-solid border-grab-purple/50 bg-grab-purple/8",e.variant==="processing"&&e.isCompleted&&"border border-solid border-grab-purple/50 bg-grab-purple/8"),E=`${r()}px`,$=`${t()}px`,X=`${o()}px`,z=`${l()}px`,W=e.bounds.borderRadius,M=e.bounds.transform,g=e.isFading?0:u(),m=e.variant==="drag"?"layout paint size":void 0;return J!==H.e&&He(I,H.e=J),E!==H.t&&Te(I,"top",H.t=E),$!==H.a&&Te(I,"left",H.a=$),X!==H.o&&Te(I,"width",H.o=X),z!==H.i&&Te(I,"height",H.i=z),W!==H.n&&Te(I,"border-radius",H.n=W),M!==H.s&&Te(I,"transform",H.s=M),g!==H.h&&Te(I,"opacity",H.h=g),m!==H.r&&Te(I,"contain",H.r=m),H},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0}),I}})};var ci=e=>{let t=e.lerpFactor??.3,n=e.convergenceThreshold??.5,[r,i]=_(e.x()),[o,a]=_(e.y()),l=e.x(),c=e.y(),u=null,h=false,p=()=>{let w=ut(r(),l,t),v=ut(o(),c,t);i(w),a(v),Math.abs(w-l)<n&&Math.abs(v-c)<n?u=null:u=requestAnimationFrame(p);},A=()=>{u===null&&(u=requestAnimationFrame(p));};return se(()=>{if(l=e.x(),c=e.y(),!h){i(l),a(c),h=true;return}A();}),be(()=>{u!==null&&(cancelAnimationFrame(u),u=null);}),{x:r,y:o}};var Ua=Y('<canvas class="fixed top-0 left-0 pointer-events-none z-[2147483645]">'),ui=e=>{let t,n=null,r=0,i=0,o=1,a=ci({x:()=>e.mouseX,y:()=>e.mouseY,lerpFactor:.3}),l=()=>{t&&(o=Math.max(window.devicePixelRatio||1,2),r=window.innerWidth,i=window.innerHeight,t.width=r*o,t.height=i*o,t.style.width=`${r}px`,t.style.height=`${i}px`,n=t.getContext("2d"),n&&n.scale(o,o));},c=()=>{n&&(n.clearRect(0,0,r,i),n.strokeStyle="rgba(210, 57, 192)",n.lineWidth=1,n.beginPath(),n.moveTo(a.x(),0),n.lineTo(a.x(),i),n.moveTo(0,a.y()),n.lineTo(r,a.y()),n.stroke());};return se(()=>{l(),c();let u=()=>{l(),c();};window.addEventListener("resize",u),be(()=>{window.removeEventListener("resize",u);});}),se(()=>{a.x(),a.y(),c();}),T(te,{get when(){return e.visible!==false},get children(){var u=Ua(),h=t;return typeof h=="function"?Mt(h,u):t=u,u}})};var di=e=>{let t,[n,r]=_(false),i=()=>typeof window<"u"&&(!!window.SpeechRecognition||!!window.webkitSpeechRecognition),o=()=>{if(!i())return;let c=window.SpeechRecognition||window.webkitSpeechRecognition;if(!c)return;t=new c,t.continuous=true,t.interimResults=true,t.lang=navigator.language||"en-US";let u="",h="";t.onresult=p=>{let A=e.getCurrentValue(),w;u&&A.endsWith(u)||A===h&&u?w=A.slice(0,-u.length):w=A;let v="",R="";for(let q=p.resultIndex;q<p.results.length;q++){let I=p.results[q][0].transcript;p.results[q].isFinal?v+=I:R+=I;}u=R;let B=w+v+R;h=B,e.onTranscript(B);},t.onerror=()=>{r(false);},t.onend=()=>{r(false);},t.start(),r(true);},a=()=>{t&&(t.stop(),t=void 0),r(false);},l=()=>{n()?a():o();};return be(()=>{a();}),{isListening:n,isSupported:i,start:o,stop:a,toggle:l}};var Ga=Y('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2><path d="M12 6H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6"></path><path d="M11 13l9-9"></path><path d="M15 4h5v5">'),fi=e=>{let t=()=>e.size??12;return (()=>{var n=Ga();return de(r=>{var i=t(),o=t(),a=e.class;return i!==r.e&&we(n,"width",r.e=i),o!==r.t&&we(n,"height",r.t=o),a!==r.a&&we(n,"class",r.a=a),r},{e:void 0,t:void 0,a:void 0}),n})()};var Ka=Y('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1=12 x2=12 y1=19 y2=22>'),mi=e=>{let t=()=>e.size??12;return (()=>{var n=Ka();return de(r=>{var i=t(),o=t(),a=e.class;return i!==r.e&&we(n,"width",r.e=i),o!==r.t&&we(n,"height",r.t=o),a!==r.a&&we(n,"class",r.a=a),r},{e:void 0,t:void 0,a:void 0}),n})()};var Ya=Y('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 22 19"fill=none><path d="M6.76263 18.6626C7.48251 18.6626 7.95474 18.1682 7.95474 17.4895C7.95474 17.1207 7.80474 16.8576 7.58683 16.6361L5.3018 14.4137L2.84621 12.3589L2.44374 13.0037L5.92137 13.1622H17.9232C20.4842 13.1622 21.593 12.021 21.593 9.47237V3.66983C21.593 1.10875 20.4842 0 17.9232 0H12.5414C11.8179 0 11.3018 0.545895 11.3018 1.21695C11.3018 1.888 11.8179 2.43389 12.5414 2.43389H17.8424C18.7937 2.43389 19.1897 2.83653 19.1897 3.78784V9.35747C19.1897 10.3257 18.7937 10.7314 17.8424 10.7314H5.92137L2.44374 10.8832L2.84621 11.5281L5.3018 9.47993L7.58683 7.2606C7.80474 7.03914 7.95474 6.7693 7.95474 6.40049C7.95474 5.72854 7.48251 5.22747 6.76263 5.22747C6.46129 5.22747 6.12975 5.36905 5.89231 5.6096L0.376815 11.0425C0.134921 11.2777 0 11.6141 0 11.9452C0 12.2728 0.134921 12.6158 0.376815 12.848L5.89231 18.2871C6.12975 18.5276 6.46129 18.6626 6.76263 18.6626Z"fill=currentColor>'),nn=e=>{let t=()=>e.size??12;return (()=>{var n=Ya();return de(r=>{var i=t(),o=t()*19/22,a=e.class;return i!==r.e&&we(n,"width",r.e=i),o!==r.t&&we(n,"height",r.t=o),a!==r.a&&we(n,"class",r.a=a),r},{e:void 0,t:void 0,a:void 0}),n})()};var Xa=Y('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none><path d="M17.65 6.35C16.2 4.9 14.21 4 12 4C7.58 4 4.01 7.58 4.01 12C4.01 16.42 7.58 20 12 20C15.73 20 18.84 17.45 19.73 14H17.65C16.83 16.33 14.61 18 12 18C8.69 18 6 15.31 6 12C6 8.69 8.69 6 12 6C13.66 6 15.14 6.69 16.22 7.78L13 11H20V4L17.65 6.35Z"fill=currentColor>'),pi=e=>{let t=()=>e.size??12;return (()=>{var n=Xa();return de(r=>{var i=t(),o=t(),a=e.class;return i!==r.e&&we(n,"width",r.e=i),o!==r.t&&we(n,"height",r.t=o),a!==r.a&&we(n,"class",r.a=a),r},{e:void 0,t:void 0,a:void 0}),n})()};var Wa=Y('<div style="background-image:linear-gradient(in oklab 180deg, oklab(88.7% 0.086 -0.058) 0%, oklab(83.2% 0.132 -0.089) 100%)"><span>'),qa=Y('<div class="contain-layout shrink-0 flex items-center w-fit h-4 rounded-[1px] gap-1 px-[3px] [border-width:0.5px] border-solid border-[#B3B3B3] py-0 bg-[#F7F7F7]"><span class="text-[#0C0C0C] text-[11.5px] leading-3.5 shrink-0 font-medium w-fit h-fit">'),Za=Y('<div class="contain-layout shrink-0 flex items-center w-fit h-4 rounded-[1px] gap-1 px-[3px] [border-width:0.5px] border-solid border-white py-0"><span class="text-[#0C0C0C] text-[11.5px] leading-3.5 shrink-0 font-medium w-fit h-fit">>'),Ja=Y('<div class="absolute w-0 h-0"style="border-left:8px solid transparent;border-right:8px solid transparent">'),Qa=Y('<div role=button><div class="text-black text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">'),el=Y('<div class="[font-synthesis:none] contain-layout shrink-0 flex flex-col items-start px-2 py-[5px] w-auto h-fit self-stretch [border-top-width:0.5px] border-t-solid border-t-[#D9D9D9] antialiased rounded-t-none rounded-b-xs -mt-px"style="background-image:linear-gradient(in oklab 180deg, oklab(100% 0 0) 0%, oklab(96.1% 0 0) 5.92%)">'),tl=Y('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit"><button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">No</span></button><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#7e0002] cursor-pointer transition-all hover:bg-[#FEF2F2] h-[17px]"><span class="text-[#B91C1C] text-[11px] leading-3.5 font-sans font-medium">Yes'),nl=Y('<div class="contain-layout shrink-0 flex flex-col justify-center items-end gap-1 w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-full h-fit"><span class="text-black text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">Discard prompt?'),rl=Y('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit"><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">Retry</span></button><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">Ok'),ol=Y('<div class="contain-layout shrink-0 flex flex-col justify-center items-end gap-1 w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-full h-fit"><span class="text-[#B91C1C] text-[12px] leading-4 font-sans font-medium">'),il=Y('<button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#7e0002] cursor-pointer transition-all hover:bg-[#FEF2F2] h-[17px]"><span class="text-[#B91C1C] text-[11px] leading-3.5 font-sans font-medium">Undo'),sl=Y('<button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">Reply'),al=Y('<button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">Ok'),ll=Y('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit">'),cl=Y('<div class="[font-synthesis:none] contain-layout shrink-0 flex flex-col justify-center items-end rounded-xs bg-white antialiased w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1.5 pb-1 px-1.5 w-full h-fit"><span class="text-black text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit tabular-nums">'),ul=Y('<button data-react-grab-ignore-events class="contain-layout shrink-0 flex flex-col items-start rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] p-1 size-fit cursor-pointer ml-1 transition-none hover:scale-105"><div data-react-grab-ignore-events class="shrink-0 w-[7px] h-[7px] rounded-[1px] bg-black pointer-events-none">'),dl=Y('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea data-react-grab-ignore-events class="text-black text-[12px] leading-4 font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 opacity-50 wrap-break-word overflow-y-auto"placeholder="type to edit"rows=1 disabled style=field-sizing:content;min-height:16px;max-height:95px;scrollbar-width:none>'),fl=Y('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-auto h-fit"><div class="contain-layout flex items-center px-0 py-px w-auto h-fit rounded-[1.5px] gap-[3px]"><span class="text-[12px] leading-4 font-sans font-medium w-auto h-fit whitespace-normal text-[#71717a] animate-pulse tabular-nums">'),gi=Y('<div class="contain-layout shrink-0 flex items-center gap-px w-fit h-fit">'),ml=Y('<div class="contain-layout shrink-0 flex items-center gap-1 w-fit h-fit"><span class="text-label-muted text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">Double click to edit</span><div class="contain-layout shrink-0 flex flex-col items-start px-[3px] py-[3px] rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit">'),pl=Y('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit"><div></div><div class="grid transition-[grid-template-rows] duration-30 ease-out self-stretch"><div>'),gl=Y('<div class="shrink-0 flex items-center gap-0.5 w-full mb-0.5 overflow-hidden"><span class="text-[#a1a1aa] text-[9px] leading-3 shrink-0">\u21B3</span><span class="text-[#a1a1aa] text-[9px] leading-3 italic truncate whitespace-nowrap">'),hl=Y("<button>"),bl=Y('<button class="contain-layout shrink-0 flex flex-col items-start px-[3px] py-[3px] rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit cursor-pointer transition-all hover:scale-105">'),yl=Y('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea data-react-grab-ignore-events class="text-black text-[12px] leading-4 font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 wrap-break-word overflow-y-auto"rows=1 style=field-sizing:content;min-height:16px;max-height:95px;scrollbar-width:none></textarea><div class="flex items-center gap-0.5 ml-1 w-[17px] h-[17px] justify-end">'),wl=Y('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit max-w-[280px]"><div>'),xl=Y('<div data-react-grab-ignore-events class="fixed font-sans antialiased transition-opacity duration-300 ease-out filter-[drop-shadow(0px_0px_4px_#51515180)] select-none"style=z-index:2147483647><div class="[font-synthesis:none] contain-layout flex items-center gap-[5px] rounded-xs bg-white antialiased w-fit h-fit p-0">'),hi=8,bi=4,vl=400;var Ln=e=>{let[t,n]=_(false),r=()=>{n(true),e.onHoverChange?.(true);},i=()=>{n(false),e.onHoverChange?.(false);};return (()=>{var o=Wa(),a=o.firstChild;return ct(o,"click",e.onClick),o.addEventListener("mouseleave",i),o.addEventListener("mouseenter",r),D(a,()=>e.tagName),D(o,T(te,{get when(){return e.isClickable||e.forceShowIcon},get children(){return T(fi,{size:10,get class(){return De("text-label-tag-border transition-all duration-100",t()||e.forceShowIcon?"opacity-100 scale-100":"opacity-0 scale-75 -ml-[2px] w-0")}})}}),null),de(l=>{var c=De("contain-layout flex items-center px-[3px] py-0 h-4 rounded-[1px] gap-0.5 [border-width:0.5px] border-solid border-label-tag-border",e.shrink&&"shrink-0 w-fit",e.isClickable&&"cursor-pointer"),u=De("text-[#47004A] text-[11.5px] leading-3.5 shrink-0 w-fit h-fit font-medium");return c!==l.e&&He(o,l.e=c),u!==l.t&&He(a,l.t=u),l},{e:void 0,t:void 0}),o})()},yi=e=>(()=>{var t=qa(),n=t.firstChild;return D(n,()=>e.name),t})(),wi=()=>Za(),Cl=e=>{let t=()=>e.color??"white";return (()=>{var n=Ja();return de(r=>Ko(n,{left:`${e.leftPx}px`,...e.position==="bottom"?{top:"0",transform:"translateX(-50%) translateY(-100%)"}:{bottom:"0",transform:"translateX(-50%) translateY(100%)"},...e.position==="bottom"?{"border-bottom":`8px solid ${t()}`}:{"border-top":`8px solid ${t()}`}},r)),n})()},xi=e=>{let t=()=>e.hasAgent?"Selecting":e.hasParent?"Copy":"Click to copy";return (()=>{var n=Qa(),r=n.firstChild;return ct(n,"click",e.onClick),D(r,t),de(()=>He(n,De("contain-layout shrink-0 flex items-center px-0 py-px w-fit h-[18px] rounded-[1.5px] gap-[3px]",e.asButton&&"cursor-pointer",e.dimmed&&"opacity-50 hover:opacity-100 transition-opacity"))),n})()};var Dt=e=>(()=>{var t=el();return D(t,()=>e.children),t})(),Sl=e=>{let t=n=>{(n.code==="Enter"||n.code==="Escape")&&(n.preventDefault(),n.stopPropagation(),e.onConfirm?.());};return Qt(()=>{window.addEventListener("keydown",t,{capture:true});}),be(()=>{window.removeEventListener("keydown",t,{capture:true});}),(()=>{var n=nl();n.firstChild;return D(n,T(Dt,{get children(){var i=tl(),o=i.firstChild,a=o.nextSibling;a.firstChild;return ct(o,"click",e.onCancel),ct(a,"click",e.onConfirm),D(a,T(nn,{size:10,class:"text-[#c00002]"}),null),i}}),null),n})()},vi=50,El=e=>{let t=r=>{r.code==="Enter"?(r.preventDefault(),r.stopPropagation(),e.onRetry?.()):r.code==="Escape"&&(r.preventDefault(),r.stopPropagation(),e.onAcknowledge?.());},n=()=>{let r=e.error;return r.length<=vi?r:`${r.slice(0,vi)}\u2026`};return Qt(()=>{window.addEventListener("keydown",t,{capture:true});}),be(()=>{window.removeEventListener("keydown",t,{capture:true});}),(()=>{var r=ol(),i=r.firstChild,o=i.firstChild;return D(o,n),D(r,T(Dt,{get children(){var a=rl(),l=a.firstChild;l.firstChild;var u=l.nextSibling;return ct(l,"click",e.onRetry),D(l,T(pi,{size:10,class:"text-black/50"}),null),ct(u,"click",e.onAcknowledge),a}}),null),de(()=>we(o,"title",e.error)),r})()},kl=e=>{let t=n=>{(n.code==="Enter"||n.code==="Escape")&&(n.preventDefault(),n.stopPropagation(),e.onDismiss?.());};return Qt(()=>{window.addEventListener("keydown",t,{capture:true});}),be(()=>{window.removeEventListener("keydown",t,{capture:true});}),(()=>{var n=cl(),r=n.firstChild,i=r.firstChild;return D(i,()=>e.statusText),D(n,T(te,{get when(){return e.onDismiss||e.onUndo||e.onReply},get children(){return T(Dt,{get children(){var o=ll();return D(o,T(te,{get when(){return Ce(()=>!!e.supportsUndo)()&&e.onUndo},get children(){var a=il();return a.$$click=()=>e.onUndo?.(),a}}),null),D(o,T(te,{get when(){return Ce(()=>!!e.supportsFollowUp)()&&e.onReply},get children(){var a=sl();return a.$$click=()=>e.onReply?.(),a}}),null),D(o,T(te,{get when(){return e.onDismiss},get children(){var a=al();a.firstChild;return a.$$click=()=>e.onDismiss?.(),D(a,T(nn,{size:10,class:"text-black/50"}),null),a}}),null),o}})}}),null),n})()},Bt=e=>{let t,n,r=false,i=null,o=null,[a,l]=_(0),[c,u]=_(0),[h,p]=_("bottom"),[A,w]=_(0),[v,R]=_(false),[B,q]=_(false),I=di({onTranscript:C=>e.onInputChange?.(C),getCurrentValue:()=>e.inputValue??""}),H=()=>e.status!=="copying"&&e.status!=="copied"&&e.status!=="fading",J=()=>{if(t&&!r){let C=t.getBoundingClientRect();l(C.width),u(C.height);}},E=C=>{r=C;},$=()=>{w(C=>C+1);},X,z=()=>{R(false),X&&clearTimeout(X),X=setTimeout(()=>{R(true);},vl);},W=C=>{C.code==="Enter"&&v()&&!e.isInputExpanded&&H()&&(C.preventDefault(),C.stopPropagation(),C.stopImmediatePropagation(),e.onToggleExpand?.());};Qt(()=>{J(),window.addEventListener("scroll",$,true),window.addEventListener("resize",$),window.addEventListener("keydown",W,{capture:true}),z();}),be(()=>{window.removeEventListener("scroll",$,true),window.removeEventListener("resize",$),window.removeEventListener("keydown",W,{capture:true}),X&&clearTimeout(X);}),se(()=>{let C=`${e.tagName??""}:${e.componentName??""}`;C!==o&&(o=C,z());}),se(()=>{e.tagName,e.componentName,e.statusText,e.inputValue,e.hasAgent,e.isInputExpanded,e.isPendingDismiss,e.error,requestAnimationFrame(J);}),se(()=>{e.visible&&requestAnimationFrame(J);}),se(()=>{e.status,requestAnimationFrame(J);}),se(()=>{e.isInputExpanded&&n?setTimeout(()=>{n?.focus();},0):I.stop();});let M=()=>{A();let C=e.selectionBounds,P=a(),G=c(),K=P>0&&G>0,j=C&&C.width>0&&C.height>0;if(!K||!j)return i??{left:-9999,top:-9999,arrowLeft:0};let V=window.innerWidth,ie=window.innerHeight,ee=C.x+C.width/2,me=e.mouseX??ee,ue=C.y+C.height,ye=C.y,fe=me-P/2,Se=ue+hi+bi;fe+P>V-8&&(fe=V-P-8),fe<8&&(fe=8);let xe=G+hi+bi;Se+G<=ie-8?p("bottom"):(Se=ye-xe,p("top")),Se<8&&(Se=8);let Oe=Math.max(12,Math.min(me-fe,P-12)),Be={left:fe,top:Se,arrowLeft:Oe};return i=Be,q(true),Be},g=C=>{if(C.stopPropagation(),C.stopImmediatePropagation(),C.code==="Enter"&&!C.shiftKey){if(C.preventDefault(),!e.inputValue?.trim())return;I.stop(),e.onSubmit?.();}else C.code==="Escape"&&(C.preventDefault(),I.stop(),e.onCancel?.());},m=C=>{let P=C.target;e.onInputChange?.(P.value);},f=()=>e.tagName||"element",y=C=>{C.stopPropagation(),C.stopImmediatePropagation(),e.filePath&&e.onOpen&&e.onOpen();},L=()=>!!(e.filePath&&e.onOpen),F=C=>{C.stopPropagation(),C.stopImmediatePropagation();},ne=C=>{F(C),H()&&e.isInputExpanded&&!e.isPendingDismiss&&n&&n.focus();},Q=()=>{e.isInputExpanded&&!e.inputValue?.trim()||(I.stop(),e.onSubmit?.());},oe=()=>B()&&(e.status==="copied"||e.status==="fading");return T(te,{get when(){return Ce(()=>e.visible!==false)()&&(e.selectionBounds||oe())},get children(){var C=xl(),P=C.firstChild;C.$$click=F,C.$$mousedown=F,C.$$pointerdown=ne;var G=t;return typeof G=="function"?Mt(G,C):t=C,D(C,T(Cl,{get position(){return h()},get leftPx(){return M().arrowLeft}}),P),D(C,T(te,{get when(){return Ce(()=>e.status==="copied"||e.status==="fading")()&&!e.error},get children(){return T(kl,{get statusText(){return Ce(()=>!!e.hasAgent)()?e.statusText??"Completed":"Copied"},get supportsUndo(){return e.supportsUndo},get supportsFollowUp(){return e.supportsFollowUp},get onDismiss(){return e.onDismiss},get onUndo(){return e.onUndo},get onReply(){return e.onReply}})}}),P),D(P,T(te,{get when(){return e.status==="copying"},get children(){var K=fl(),j=K.firstChild,V=j.firstChild,ie=V.firstChild;return D(ie,()=>e.statusText??"Grabbing\u2026"),D(K,T(Dt,{get children(){var ee=dl(),me=ee.firstChild,ue=n;return typeof ue=="function"?Mt(ue,me):n=me,D(ee,T(te,{get when(){return e.onAbort},get children(){var ye=ul();return ye.$$click=fe=>{fe.stopPropagation(),e.onAbort?.();},ye.$$pointerup=fe=>{fe.stopPropagation(),e.onAbort?.();},ye.$$mousedown=fe=>fe.stopPropagation(),ye.$$pointerdown=fe=>fe.stopPropagation(),ye}}),null),de(()=>me.value=e.inputValue??""),ee}}),null),K}}),null),D(P,T(te,{get when(){return Ce(()=>!!H())()&&!e.isInputExpanded},get children(){var K=pl(),j=K.firstChild,V=j.nextSibling,ie=V.firstChild;return D(j,T(xi,{onClick:Q,shrink:true,get hasParent(){return !!e.componentName},get hasAgent(){return e.hasAgent}}),null),D(j,T(te,{get when(){return e.componentName},get children(){var ee=gi();return D(ee,T(yi,{get name(){return e.componentName}}),null),D(ee,T(wi,{}),null),D(ee,T(Ln,{get tagName(){return f()},get isClickable(){return L()},onClick:y,onHoverChange:E,shrink:true}),null),ee}}),null),D(j,T(te,{get when(){return !e.componentName},get children(){return T(Ln,{get tagName(){return f()},get isClickable(){return L()},onClick:y,onHoverChange:E,shrink:true})}}),null),D(ie,T(Dt,{get children(){var ee=ml(),me=ee.firstChild,ue=me.nextSibling;return D(ue,T(nn,{size:10,class:"opacity-[0.99] text-black"})),ee}})),de(ee=>{var me=De("contain-layout shrink-0 flex items-center gap-1 pt-1 w-fit h-fit pl-1.5",e.componentName?"pr-1.5":"pr-1"),ue=v()?"1fr":"0fr",ye=De("overflow-hidden min-h-0",!v()&&"w-0");return me!==ee.e&&He(j,ee.e=me),ue!==ee.t&&Te(V,"grid-template-rows",ee.t=ue),ye!==ee.a&&He(ie,ee.a=ye),ee},{e:void 0,t:void 0,a:void 0}),K}}),null),D(P,T(te,{get when(){return Ce(()=>!!(H()&&e.isInputExpanded))()&&!e.isPendingDismiss},get children(){var K=wl(),j=K.firstChild;return D(j,T(xi,{onClick:Q,dimmed:true,shrink:true,get hasParent(){return !!e.componentName},get hasAgent(){return e.hasAgent}}),null),D(j,T(te,{get when(){return e.componentName},get children(){var V=gi();return D(V,T(yi,{get name(){return e.componentName}}),null),D(V,T(wi,{}),null),D(V,T(Ln,{get tagName(){return f()},get isClickable(){return L()},onClick:y,onHoverChange:E,shrink:true,forceShowIcon:true}),null),V}}),null),D(j,T(te,{get when(){return !e.componentName},get children(){return T(Ln,{get tagName(){return f()},get isClickable(){return L()},onClick:y,onHoverChange:E,shrink:true,forceShowIcon:true})}}),null),D(K,T(Dt,{get children(){return [T(te,{get when(){return e.replyToPrompt},get children(){var V=gl(),ie=V.firstChild,ee=ie.nextSibling;return D(ee,()=>e.replyToPrompt),V}}),(()=>{var V=yl(),ie=V.firstChild,ee=ie.nextSibling;ie.$$keydown=g,ie.$$input=m;var me=n;return typeof me=="function"?Mt(me,ie):n=ie,D(ee,T(te,{get when(){return Ce(()=>!!(e.hasAgent&&I.isSupported()))()&&!e.inputValue},get children(){var ue=hl();return ct(ue,"click",I.toggle),D(ue,T(mi,{size:11,get class(){return I.isListening()?"animate-pulse":""}})),de(ye=>{var fe=De("contain-layout shrink-0 flex items-center justify-center px-[2px] py-[2px] rounded-xs [border-width:0.5px] border-solid size-fit cursor-pointer transition-all hover:scale-105",I.isListening()?"bg-grab-purple border-grab-purple text-white":"bg-white border-[#B3B3B3] text-black"),Se=I.isListening()?"Stop listening":"Start voice input";return fe!==ye.e&&He(ue,ye.e=fe),Se!==ye.t&&we(ue,"title",ye.t=Se),ye},{e:void 0,t:void 0}),ue}}),null),D(ee,T(te,{get when(){return e.inputValue},get children(){var ue=bl();return ue.$$click=Q,D(ue,T(nn,{size:10,class:"opacity-[0.99] text-black"})),ue}}),null),de(()=>we(ie,"placeholder",I.isListening()?"listening...":"type prompt")),de(()=>ie.value=e.inputValue??""),V})()]}}),null),de(()=>He(j,De("contain-layout shrink-0 flex items-center gap-1 pt-1 w-fit h-fit pl-1.5",e.componentName?"pr-1.5":"pr-1"))),K}}),null),D(P,T(te,{get when(){return e.isPendingDismiss},get children(){return T(Sl,{get onConfirm(){return e.onConfirmDismiss},get onCancel(){return e.onCancelDismiss}})}}),null),D(P,T(te,{get when(){return e.error},get children(){return T(El,{get error(){return e.error},get onAcknowledge(){return e.onAcknowledgeError},get onRetry(){return e.onRetry}})}}),null),de(K=>{var j=`${M().top}px`,V=`${M().left}px`,ie=e.isInputExpanded||e.status==="copied"&&e.onDismiss||e.status==="copying"&&e.onAbort?"auto":"none",ee=e.status==="fading"?0:1,me=(e.status==="copied"||e.status==="fading")&&!e.error?"none":void 0;return j!==K.e&&Te(C,"top",K.e=j),V!==K.t&&Te(C,"left",K.t=V),ie!==K.a&&Te(C,"pointer-events",K.a=ie),ee!==K.o&&Te(C,"opacity",K.o=ee),me!==K.i&&Te(P,"display",K.i=me),K},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),C}})};_n(["click","pointerdown","mousedown","pointerup","input","keydown"]);var Al=Y('<div class="fixed z-2147483647"><button data-react-grab-selection-cursor>'),Ci=e=>{let[t,n]=_(false),[r,i]=_(false);se(()=>{let a=e.visible!==false;if(e.x,e.y,i(false),a){let l=setTimeout(()=>i(true),500);be(()=>clearTimeout(l));}});let o=a=>{a.preventDefault(),a.stopPropagation(),e.onClick?.();};return T(te,{get when(){return r()},get children(){return [T(te,{get when(){return Ce(()=>!!t())()&&e.elementBounds},get children(){return T(xt,{variant:"selection",get bounds(){return e.elementBounds},visible:true})}}),(()=>{var a=Al(),l=a.firstChild;return a.addEventListener("mouseleave",()=>n(false)),a.addEventListener("mouseenter",()=>n(true)),l.$$click=o,de(c=>{var u=`${e.x}px`,h=`${e.y}px`,p=De("absolute left-0 top-0 -translate-x-1/2 -translate-y-1/2 bg-grab-pink cursor-pointer rounded-full transition-[width,height] duration-150",t()?"w-1 h-5.5 brightness-125":"w-0.5 h-5 animate-pulse");return u!==c.e&&Te(a,"left",c.e=u),h!==c.t&&Te(a,"top",c.t=h),p!==c.a&&He(l,c.a=p),c},{e:void 0,t:void 0,a:void 0}),a})(),T(te,{get when(){return Ce(()=>!!t())()&&e.elementBounds},get children(){return T(Bt,{get tagName(){return e.tagName},get selectionBounds(){return e.elementBounds},get mouseX(){return e.x},visible:true,get onSubmit(){return e.onClick}})}})]}})};_n(["click"]);var Si=e=>{let t=le(()=>e.agentSessions?Array.from(e.agentSessions.values()):[]);return [T(te,{get when(){return Ce(()=>!!e.selectionVisible)()&&e.selectionBounds},get children(){return T(xt,{variant:"selection",get bounds(){return e.selectionBounds},get visible(){return e.selectionVisible},get isFading(){return e.selectionLabelStatus==="fading"}})}}),T(te,{get when(){return Ce(()=>e.crosshairVisible===true&&e.mouseX!==void 0)()&&e.mouseY!==void 0},get children(){return T(ui,{get mouseX(){return e.mouseX},get mouseY(){return e.mouseY},visible:true})}}),T(te,{get when(){return Ce(()=>!!e.dragVisible)()&&e.dragBounds},get children(){return T(xt,{variant:"drag",get bounds(){return e.dragBounds},get visible(){return e.dragVisible}})}}),T(An,{get each(){return e.grabbedBoxes??[]},children:n=>T(xt,{variant:"grabbed",get bounds(){return n.bounds},get createdAt(){return n.createdAt}})}),T(cr,{get each(){return t()},children:n=>[T(te,{get when(){return n().selectionBounds},get children(){return T(xt,{variant:"processing",get bounds(){return n().selectionBounds},visible:true,get isCompleted(){return !n().isStreaming}})}}),T(Bt,{get tagName(){return n().tagName},get componentName(){return n().componentName},get selectionBounds(){return n().selectionBounds},get mouseX(){return n().position.x},visible:true,hasAgent:true,isAgentConnected:true,get status(){return n().isStreaming?"copying":"copied"},get statusText(){return n().lastStatus||"Thinking\u2026"},get inputValue(){return n().context.prompt},get supportsUndo(){return e.supportsUndo},get supportsFollowUp(){return e.supportsFollowUp},onAbort:()=>e.onAbortSession?.(n().id),get onDismiss(){return n().isStreaming?void 0:()=>e.onDismissSession?.(n().id)},get onUndo(){return n().isStreaming?void 0:()=>e.onUndoSession?.(n().id)},get onReply(){return n().isStreaming?void 0:()=>e.onReplySession?.(n().id)},get error(){return n().error},onAcknowledgeError:()=>e.onAcknowledgeSessionError?.(n().id),onRetry:()=>e.onRetrySession?.(n().id)})]}),T(te,{get when(){return Ce(()=>!!e.selectionLabelVisible)()&&e.selectionBounds},get children(){return T(Bt,{get tagName(){return e.selectionTagName},get componentName(){return e.selectionComponentName},get selectionBounds(){return e.selectionBounds},get mouseX(){return e.mouseX},get visible(){return e.selectionLabelVisible},get isInputExpanded(){return e.isInputExpanded},get inputValue(){return e.inputValue},get replyToPrompt(){return e.replyToPrompt},get hasAgent(){return e.hasAgent},get isAgentConnected(){return e.isAgentConnected},get status(){return e.selectionLabelStatus},get filePath(){return e.selectionFilePath},get lineNumber(){return e.selectionLineNumber},get onInputChange(){return e.onInputChange},get onSubmit(){return e.onInputSubmit},get onCancel(){return e.onInputCancel},get onToggleExpand(){return e.onToggleExpand},get isPendingDismiss(){return e.isPendingDismiss},get onConfirmDismiss(){return e.onConfirmDismiss},get onCancelDismiss(){return e.onCancelDismiss},onOpen:()=>{if(e.selectionFilePath){let n=Rn(e.selectionFilePath,e.selectionLineNumber);window.open(n,"_blank");}}})}}),T(An,{get each(){return e.labelInstances??[]},children:n=>T(Bt,{get tagName(){return n.tagName},get componentName(){return n.componentName},get selectionBounds(){return n.bounds},get mouseX(){return n.mouseX},visible:true,get status(){return n.status}})}),T(te,{get when(){return Ce(()=>!!(e.nativeSelectionCursorVisible&&e.nativeSelectionCursorX!==void 0))()&&e.nativeSelectionCursorY!==void 0},get children(){return T(Ci,{get x(){return e.nativeSelectionCursorX},get y(){return e.nativeSelectionCursorY},get tagName(){return e.nativeSelectionTagName},get componentName(){return e.nativeSelectionComponentName},get elementBounds(){return e.nativeSelectionBounds},get visible(){return e.nativeSelectionCursorVisible},get onClick(){return e.onNativeSelectionCopy},get onEnter(){return e.onNativeSelectionEnter}})}})]};var Ti="0.5.25",$n=`bippy-${Ti}`,Ei=Object.defineProperty,Nl=Object.prototype.hasOwnProperty,rn=()=>{},Ai=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{}},Pn=(e=nt())=>"getFiberRoots"in e,Ni=false,ki,on=(e=nt())=>Ni?true:(typeof e.inject=="function"&&(ki=e.inject.toString()),!!ki?.includes("(injected)")),On=new Set,Ct=new Set,_i=e=>{let t=new Map,n=0,r={_instrumentationIsActive:false,_instrumentationSource:$n,checkDCE:Ai,hasUnsupportedRendererAttached:false,inject(i){let o=++n;return t.set(o,i),Ct.add(i),r._instrumentationIsActive||(r._instrumentationIsActive=true,On.forEach(a=>a())),o},on:rn,onCommitFiberRoot:rn,onCommitFiberUnmount:rn,onPostCommitFiberRoot:rn,renderers:t,supportsFiber:true,supportsFlight:true};try{Ei(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!0,enumerable:!0,get(){return r},set(a){if(a&&typeof a=="object"){let l=r.renderers;r=a,l.size>0&&(l.forEach((c,u)=>{Ct.add(c),a.renderers.set(u,c);}),Mn(e));}}});let i=window.hasOwnProperty,o=!1;Ei(window,"hasOwnProperty",{configurable:!0,value:function(...a){try{if(!o&&a[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,o=!0,-0}catch{}return i.apply(this,a)},writable:!0});}catch{Mn(e);}return r},Mn=e=>{try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=Ai,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=$n,t._instrumentationIsActive=!1;let n=Pn(t);if(n||(t.on=rn),t.renderers.size){t._instrumentationIsActive=!0,On.forEach(o=>o());return}let r=t.inject,i=on(t);i&&!n&&(Ni=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=o=>{let a=r(o);return Ct.add(o),i&&t.renderers.set(a,o),t._instrumentationIsActive=!0,On.forEach(l=>l()),a};}(t.renderers.size||t._instrumentationIsActive||on())&&e?.();}catch{}},hr=()=>Nl.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),nt=e=>hr()?(Mn(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):_i(e),Ri=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),br=()=>{try{Ri()&&nt();}catch{}};var yr=0,wr=1;var xr=5;var vr=11,Cr=13;var Sr=15,Er=16;var kr=19;var Tr=26,Ar=27,Nr=28,_r=30;function Rr(e,t,n=false){if(!e)return null;let r=t(e);if(r instanceof Promise)return (async()=>{if(await r===true)return e;let o=n?e.return:e.child;for(;o;){let a=await Lr(o,t,n);if(a)return a;o=n?null:o.sibling;}return null})();if(r===true)return e;let i=n?e.return:e.child;for(;i;){let o=Ir(i,t,n);if(o)return o;i=n?null:i.sibling;}return null}var Ir=(e,t,n=false)=>{if(!e)return null;if(t(e)===true)return e;let r=n?e.return:e.child;for(;r;){let i=Ir(r,t,n);if(i)return i;r=n?null:r.sibling;}return null},Lr=async(e,t,n=false)=>{if(!e)return null;if(await t(e)===true)return e;let r=n?e.return:e.child;for(;r;){let i=await Lr(r,t,n);if(i)return i;r=n?null:r.sibling;}return null};var Or=e=>{let t=e;return typeof t=="function"?t:typeof t=="object"&&t?Or(t.type||t.render):null},sn=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=Or(t);return r&&(r.displayName||r.name)||null};var an=()=>!!nt()._instrumentationIsActive||Pn()||on();var Mr=e=>{let t=nt();for(let n of t.renderers.values())try{let r=n.findFiberByHostInstance?.(e);if(r)return r}catch{}if(typeof e=="object"&&e){if("_reactRootContainer"in e)return e._reactRootContainer?._internalRoot?.current?.child;for(let n in e)if(n.startsWith("__reactContainer$")||n.startsWith("__reactInternalInstance$")||n.startsWith("__reactFiber"))return e[n]||null}return null};var Fl=Object.create,Di=Object.defineProperty,Dl=Object.getOwnPropertyDescriptor,Bl=Object.getOwnPropertyNames,Hl=Object.getPrototypeOf,zl=Object.prototype.hasOwnProperty,jl=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Vl=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=Bl(t),o=0,a=i.length,l;o<a;o++)l=i[o],!zl.call(e,l)&&l!==n&&Di(e,l,{get:(c=>t[c]).bind(null,l),enumerable:!(r=Dl(t,l))||r.enumerable});return e},Ul=(e,t,n)=>(n=e==null?{}:Fl(Hl(e)),Vl(Di(n,"default",{value:e,enumerable:true}),e)),Ii=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,Gl=["rsc://","file:///","webpack://","webpack-internal://","node:","turbopack://","metro://","/app-pages-browser/"],Li="about://React/",Kl=["<anonymous>","eval",""],Yl=/\.(jsx|tsx|ts|js)$/,Xl=/(\.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,Wl=/^\?[\w~.\-]+(?:=[^&#]*)?(?:&[\w~.\-]+(?:=[^&#]*)?)*$/,Bi="(at Server)",ql=/(^|@)\S+:\d+/,Hi=/^\s*at .*(\S+:\d+|\(native\))/m,Zl=/^(eval@)?(\[native code\])?$/;var zi=(e,t)=>{{let n=e.split(`
|
|
11
|
+
`),r=[];for(let i of n)if(/^\s*at\s+/.test(i)){let o=Oi(i,void 0)[0];o&&r.push(o);}else if(/^\s*in\s+/.test(i)){let o=i.replace(/^\s*in\s+/,"").replace(/\s*\(at .*\)$/,"");r.push({functionName:o,source:i});}else if(i.match(ql)){let o=Mi(i,void 0)[0];o&&r.push(o);}return Fr(r,t)}},ji=e=>{if(!e.includes(":"))return [e,void 0,void 0];let t=/(.+?)(?::(\d+))?(?::(\d+))?$/,n=t.exec(e.replace(/[()]/g,""));return [n[1],n[2]||void 0,n[3]||void 0]},Fr=(e,t)=>t&&t.slice!=null?Array.isArray(t.slice)?e.slice(t.slice[0],t.slice[1]):e.slice(0,t.slice):e;var Oi=(e,t)=>Fr(e.split(`
|
|
12
|
+
`).filter(r=>!!r.match(Hi)),t).map(r=>{let i=r;i.includes("(eval ")&&(i=i.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let o=i.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),a=o.match(/ (\(.+\)$)/);o=a?o.replace(a[0],""):o;let l=ji(a?a[1]:o),c=a&&o||void 0,u=["eval","<anonymous>"].includes(l[0])?void 0:l[0];return {functionName:c,fileName:u,lineNumber:l[1]?+l[1]:void 0,columnNumber:l[2]?+l[2]:void 0,source:i}});var Mi=(e,t)=>Fr(e.split(`
|
|
13
|
+
`).filter(r=>!r.match(Zl)),t).map(r=>{let i=r;if(i.includes(" > eval")&&(i=i.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!i.includes("@")&&!i.includes(":"))return {functionName:i};{let o=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,a=i.match(o),l=a&&a[1]?a[1]:void 0,c=ji(i.replace(o,""));return {functionName:l,fileName:c[0],lineNumber:c[1]?+c[1]:void 0,columnNumber:c[2]?+c[2]:void 0,source:i}}});var Jl=jl((e,t)=>{(function(n,r){typeof e=="object"&&t!==void 0?r(e):typeof define=="function"&&define.amd?define(["exports"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.sourcemapCodec={}));})(void 0,function(n){let r=44,i=59,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=new Uint8Array(64),l=new Uint8Array(128);for(let g=0;g<o.length;g++){let m=o.charCodeAt(g);a[g]=m,l[m]=g;}function c(g,m){let f=0,y=0,L=0;do{let ne=g.next();L=l[ne],f|=(L&31)<<y,y+=5;}while(L&32);let F=f&1;return f>>>=1,F&&(f=-2147483648|-f),m+f}function u(g,m,f){let y=m-f;y=y<0?-y<<1|1:y<<1;do{let L=y&31;y>>>=5,y>0&&(L|=32),g.write(a[L]);}while(y>0);return m}function h(g,m){return g.pos>=m?false:g.peek()!==r}let p=1024*16,A=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(g){return Buffer.from(g.buffer,g.byteOffset,g.byteLength).toString()}}:{decode(g){let m="";for(let f=0;f<g.length;f++)m+=String.fromCharCode(g[f]);return m}};class w{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(p);}write(m){let{buffer:f}=this;f[this.pos++]=m,this.pos===p&&(this.out+=A.decode(f),this.pos=0);}flush(){let{buffer:m,out:f,pos:y}=this;return y>0?f+A.decode(m.subarray(0,y)):f}}class v{constructor(m){this.pos=0,this.buffer=m;}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(m){let{buffer:f,pos:y}=this,L=f.indexOf(m,y);return L===-1?f.length:L}}let R=[];function B(g){let{length:m}=g,f=new v(g),y=[],L=[],F=0;for(;f.pos<m;f.pos++){F=c(f,F);let ne=c(f,0);if(!h(f,m)){let K=L.pop();K[2]=F,K[3]=ne;continue}let Q=c(f,0),oe=c(f,0),C=oe&1,P=C?[F,ne,0,0,Q,c(f,0)]:[F,ne,0,0,Q],G=R;if(h(f,m)){G=[];do{let K=c(f,0);G.push(K);}while(h(f,m))}P.vars=G,y.push(P),L.push(P);}return y}function q(g){let m=new w;for(let f=0;f<g.length;)f=I(g,f,m,[0]);return m.flush()}function I(g,m,f,y){let L=g[m],{0:F,1:ne,2:Q,3:oe,4:C,vars:P}=L;m>0&&f.write(r),y[0]=u(f,F,y[0]),u(f,ne,0),u(f,C,0);let G=L.length===6?1:0;u(f,G,0),L.length===6&&u(f,L[5],0);for(let K of P)u(f,K,0);for(m++;m<g.length;){let K=g[m],{0:j,1:V}=K;if(j>Q||j===Q&&V>=oe)break;m=I(g,m,f,y);}return f.write(r),y[0]=u(f,Q,y[0]),u(f,oe,0),m}function H(g){let{length:m}=g,f=new v(g),y=[],L=[],F=0,ne=0,Q=0,oe=0,C=0,P=0,G=0,K=0;do{let j=f.indexOf(";"),V=0;for(;f.pos<j;f.pos++){if(V=c(f,V),!h(f,j)){let xe=L.pop();xe[2]=F,xe[3]=V;continue}let ie=c(f,0),ee=ie&1,me=ie&2,ue=ie&4,ye=null,fe=R,Se;if(ee){let xe=c(f,ne);Q=c(f,ne===xe?Q:0),ne=xe,Se=[F,V,0,0,xe,Q];}else Se=[F,V,0,0];if(Se.isScope=!!ue,me){let xe=oe,We=C;oe=c(f,oe);let Oe=xe===oe;C=c(f,Oe?C:0),P=c(f,Oe&&We===C?P:0),ye=[oe,C,P];}if(Se.callsite=ye,h(f,j)){fe=[];do{G=F,K=V;let xe=c(f,0),We;if(xe<-1){We=[[c(f,0)]];for(let Oe=-1;Oe>xe;Oe--){let Be=G;G=c(f,G),K=c(f,G===Be?K:0);let zt=c(f,0);We.push([zt,G,K]);}}else We=[[xe]];fe.push(We);}while(h(f,j))}Se.bindings=fe,y.push(Se),L.push(Se);}F++,f.pos=j+1;}while(f.pos<m);return y}function J(g){if(g.length===0)return "";let m=new w;for(let f=0;f<g.length;)f=E(g,f,m,[0,0,0,0,0,0,0]);return m.flush()}function E(g,m,f,y){let L=g[m],{0:F,1:ne,2:Q,3:oe,isScope:C,callsite:P,bindings:G}=L;y[0]<F?($(f,y[0],F),y[0]=F,y[1]=0):m>0&&f.write(r),y[1]=u(f,L[1],y[1]);let K=(L.length===6?1:0)|(P?2:0)|(C?4:0);if(u(f,K,0),L.length===6){let{4:j,5:V}=L;j!==y[2]&&(y[3]=0),y[2]=u(f,j,y[2]),y[3]=u(f,V,y[3]);}if(P){let{0:j,1:V,2:ie}=L.callsite;j===y[4]?V!==y[5]&&(y[6]=0):(y[5]=0,y[6]=0),y[4]=u(f,j,y[4]),y[5]=u(f,V,y[5]),y[6]=u(f,ie,y[6]);}if(G)for(let j of G){j.length>1&&u(f,-j.length,0);let V=j[0][0];u(f,V,0);let ie=F,ee=ne;for(let me=1;me<j.length;me++){let ue=j[me];ie=u(f,ue[1],ie),ee=u(f,ue[2],ee),u(f,ue[0],0);}}for(m++;m<g.length;){let j=g[m],{0:V,1:ie}=j;if(V>Q||V===Q&&ie>=oe)break;m=E(g,m,f,y);}return y[0]<Q?($(f,y[0],Q),y[0]=Q,y[1]=0):f.write(r),y[1]=u(f,oe,y[1]),m}function $(g,m,f){do g.write(i);while(++m<f)}function X(g){let{length:m}=g,f=new v(g),y=[],L=0,F=0,ne=0,Q=0,oe=0;do{let C=f.indexOf(";"),P=[],G=true,K=0;for(L=0;f.pos<C;){let j;L=c(f,L),L<K&&(G=false),K=L,h(f,C)?(F=c(f,F),ne=c(f,ne),Q=c(f,Q),h(f,C)?(oe=c(f,oe),j=[L,F,ne,Q,oe]):j=[L,F,ne,Q]):j=[L],P.push(j),f.pos++;}G||z(P),y.push(P),f.pos=C+1;}while(f.pos<=m);return y}function z(g){g.sort(W);}function W(g,m){return g[0]-m[0]}function M(g){let m=new w,f=0,y=0,L=0,F=0;for(let ne=0;ne<g.length;ne++){let Q=g[ne];if(ne>0&&m.write(i),Q.length===0)continue;let oe=0;for(let C=0;C<Q.length;C++){let P=Q[C];C>0&&m.write(r),oe=u(m,P[0],oe),P.length!==1&&(f=u(m,P[1],f),y=u(m,P[2],y),L=u(m,P[3],L),P.length!==4&&(F=u(m,P[4],F)));}}return m.flush()}n.decode=X,n.decodeGeneratedRanges=H,n.decodeOriginalScopes=B,n.encode=M,n.encodeGeneratedRanges=J,n.encodeOriginalScopes=q,Object.defineProperty(n,"__esModule",{value:true});});}),Vi=Ul(Jl()),Ui=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,Ql=/^data:application\/json[^,]+base64,/,ec=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,Gi=typeof WeakRef<"u",ln=new Map,Fn=new Map,tc=e=>Gi&&e instanceof WeakRef,$i=(e,t,n,r)=>{if(n<0||n>=e.length)return null;let i=e[n];if(!i||i.length===0)return null;let o=null;for(let h of i)if(h[0]<=r)o=h;else break;if(!o||o.length<4)return null;let[,a,l,c]=o;if(a===void 0||l===void 0||c===void 0)return null;let u=t[a];return u?{columnNumber:c,fileName:u,lineNumber:l+1}:null},nc=(e,t,n)=>{if(e.sections){let r=null;for(let a of e.sections)if(t>a.offset.line||t===a.offset.line&&n>=a.offset.column)r=a;else break;if(!r)return null;let i=t-r.offset.line,o=t===r.offset.line?n-r.offset.column:n;return $i(r.map.mappings,r.map.sources,i,o)}return $i(e.mappings,e.sources,t-1,n)},rc=(e,t)=>{let n=t.split(`
|
|
14
|
+
`),r;for(let o=n.length-1;o>=0&&!r;o--){let a=n[o].match(ec);a&&(r=a[1]||a[2]);}if(!r)return null;let i=Ui.test(r);if(!(Ql.test(r)||i||r.startsWith("/"))){let o=e.split("/");o[o.length-1]=r,r=o.join("/");}return r},oc=e=>({file:e.file,mappings:(0, Vi.decode)(e.mappings),names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,version:3}),ic=e=>{let t=e.sections.map(({map:r,offset:i})=>({map:{...r,mappings:(0, Vi.decode)(r.mappings)},offset:i})),n=new Set;for(let r of t)for(let i of r.map.sources)n.add(i);return {file:e.file,mappings:[],names:[],sections:t,sourceRoot:void 0,sources:Array.from(n),sourcesContent:void 0,version:3}},Pi=e=>{if(!e)return false;let t=e.trim();if(!t)return false;let n=t.match(Ui);if(!n)return true;let r=n[0].toLowerCase();return r==="http:"||r==="https:"},sc=async(e,t=fetch)=>{if(!Pi(e))return null;let n;try{n=await(await t(e)).text();}catch{return null}if(!n)return null;let r=rc(e,n);if(!r||!Pi(r))return null;try{let i=await t(r),o=await i.json();return "sections"in o?ic(o):oc(o)}catch{return null}},ac=async(e,t=true,n)=>{if(t&&ln.has(e)){let o=ln.get(e);if(o==null)return null;if(tc(o)){let a=o.deref();if(a)return a;ln.delete(e);}else return o}if(t&&Fn.has(e))return Fn.get(e);let r=sc(e,n);t&&Fn.set(e,r);let i=await r;return t&&Fn.delete(e),t&&(i===null?ln.set(e,null):ln.set(e,Gi?new WeakRef(i):i)),i},lc=async(e,t=true,n)=>await Promise.all(e.map(async r=>{if(!r.fileName)return r;let i=await ac(r.fileName,t,n);if(!i||typeof r.lineNumber!="number"||typeof r.columnNumber!="number")return r;let o=nc(i,r.lineNumber,r.columnNumber);return o?{...r,source:o.fileName&&r.source?r.source.replace(r.fileName,o.fileName):r.source,fileName:o.fileName,lineNumber:o.lineNumber,columnNumber:o.columnNumber,isSymbolicated:true}:r})),cc=e=>e._debugStack instanceof Error&&typeof e._debugStack?.stack=="string",uc=()=>{let e=nt();for(let t of [...Array.from(Ct),...Array.from(e.renderers.values())]){let n=t.currentDispatcherRef;if(n&&typeof n=="object")return "H"in n?n.H:n.current}return null},Fi=e=>{for(let t of Ct){let n=t.currentDispatcherRef;n&&typeof n=="object"&&("H"in n?n.H=e:n.current=e);}},rt=e=>`
|
|
15
|
+
in ${e}`,dc=(e,t)=>{let n=rt(e);return t&&(n+=` (at ${t})`),n},$r=false,Pr=(e,t)=>{if(!e||$r)return "";let n=Error.prepareStackTrace;Error.prepareStackTrace=void 0,$r=true;let r=uc();Fi(null);let i=console.error,o=console.warn;console.error=()=>{},console.warn=()=>{};try{let c={DetermineComponentFrameRoot(){let A;try{if(t){let w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[]);}catch(v){A=v;}Reflect.construct(e,[],w);}else {try{w.call();}catch(v){A=v;}e.call(w.prototype);}}else {try{throw Error()}catch(v){A=v;}let w=e();w&&typeof w.catch=="function"&&w.catch(()=>{});}}catch(w){if(w instanceof Error&&A instanceof Error&&typeof w.stack=="string")return [w.stack,A.stack]}return [null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot",Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name")?.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});let[h,p]=c.DetermineComponentFrameRoot();if(h&&p){let A=h.split(`
|
|
16
|
+
`),w=p.split(`
|
|
17
|
+
`),v=0,R=0;for(;v<A.length&&!A[v].includes("DetermineComponentFrameRoot");)v++;for(;R<w.length&&!w[R].includes("DetermineComponentFrameRoot");)R++;if(v===A.length||R===w.length)for(v=A.length-1,R=w.length-1;v>=1&&R>=0&&A[v]!==w[R];)R--;for(;v>=1&&R>=0;v--,R--)if(A[v]!==w[R]){if(v!==1||R!==1)do if(v--,R--,R<0||A[v]!==w[R]){let B=`
|
|
18
|
+
${A[v].replace(" at new "," at ")}`,q=sn(e);return q&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",q)),B}while(v>=1&&R>=0);break}}}finally{$r=false,Error.prepareStackTrace=n,Fi(r),console.error=i,console.warn=o;}let a=e?sn(e):"";return a?rt(a):""},fc=(e,t)=>{let n=e.tag,r="";switch(n){case Nr:r=rt("Activity");break;case wr:r=Pr(e.type,true);break;case vr:r=Pr(e.type.render,false);break;case yr:case Sr:r=Pr(e.type,false);break;case xr:case Tr:case Ar:r=rt(e.type);break;case Er:r=rt("Lazy");break;case Cr:r=e.child!==t&&t!==null?rt("Suspense Fallback"):rt("Suspense");break;case kr:r=rt("SuspenseList");break;case _r:r=rt("ViewTransition");break;default:return ""}return r},mc=e=>{try{let t="",n=e,r=null;do{t+=fc(n,r);let i=n._debugInfo;if(i&&Array.isArray(i))for(let o=i.length-1;o>=0;o--){let a=i[o];typeof a.name=="string"&&(t+=dc(a.name,a.env));}r=n,n=n.return;}while(n);return t}catch(t){return t instanceof Error?`
|
|
19
|
+
Error generating stack: ${t.message}
|
|
20
|
+
${t.stack}`:""}},pc=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
|
|
21
|
+
`)&&(n=n.slice(29));let r=n.indexOf(`
|
|
22
|
+
`);if(r!==-1&&(n=n.slice(r+1)),r=Math.max(n.indexOf("react_stack_bottom_frame"),n.indexOf("react-stack-bottom-frame")),r!==-1&&(r=n.lastIndexOf(`
|
|
23
|
+
`,r)),r!==-1)n=n.slice(0,r);else return "";return n},gc=e=>!!(e.fileName?.startsWith("rsc://")&&e.functionName),hc=(e,t)=>e.fileName===t.fileName&&e.lineNumber===t.lineNumber&&e.columnNumber===t.columnNumber,bc=e=>{let t=new Map;for(let n of e)for(let r of n.stackFrames){if(!gc(r))continue;let i=r.functionName,o=t.get(i)??[];o.some(l=>hc(l,r))||(o.push(r),t.set(i,o));}return t},yc=(e,t,n)=>{if(!e.functionName)return {...e,isServer:true};let r=t.get(e.functionName);if(!r||r.length===0)return {...e,isServer:true};let i=n.get(e.functionName)??0,o=r[i%r.length];return n.set(e.functionName,i+1),{...e,isServer:true,fileName:o.fileName,lineNumber:o.lineNumber,columnNumber:o.columnNumber,source:e.source?.replace(Bi,`(${o.fileName}:${o.lineNumber}:${o.columnNumber})`)}},wc=e=>{let t=[];return Rr(e,n=>{if(!cc(n))return;let r=typeof n.type=="string"?n.type:sn(n.type)||"<anonymous>";t.push({componentName:r,stackFrames:zi(pc(n._debugStack?.stack))});},true),t},Ki=async(e,t=true,n)=>{let r=wc(e),i=zi(mc(e)),o=bc(r),a=new Map,l=i.map(u=>u.source?.includes(Bi)??false?yc(u,o,a):u),c=l.filter((u,h,p)=>{if(h===0)return true;let A=p[h-1];return u.functionName!==A.functionName});return lc(c,t,n)};var cn=e=>{if(!e||Kl.includes(e))return "";let t=e;if(t.startsWith(Li)){let i=t.slice(Li.length),o=i.indexOf("/"),a=i.indexOf(":");t=o!==-1&&(a===-1||o<a)?i.slice(o+1):i;}let n=true;for(;n;){n=false;for(let i of Gl)if(t.startsWith(i)){t=t.slice(i.length),i==="file:///"&&(t=`/${t.replace(/^\/+/,"")}`),n=true;break}}if(Ii.test(t)){let i=t.match(Ii);i&&(t=t.slice(i[0].length));}let r=t.indexOf("?");if(r!==-1){let i=t.slice(r);Wl.test(i)&&(t=t.slice(0,r));}return t},Dn=e=>{let t=cn(e);return !(!t||!Yl.test(t)||Xl.test(t))};var Yi=e=>e.length>0&&/^[A-Z]/.test(e);br();var xc=new Set(["InnerLayoutRouter","RedirectErrorBoundary","RedirectBoundary","HTTPAccessFallbackErrorBoundary","HTTPAccessFallbackBoundary","LoadingBoundary","ErrorBoundary","InnerScrollAndFocusHandler","ScrollAndFocusHandler","RenderFromTemplateContext","OuterLayoutRouter","body","html","DevRootHTTPAccessFallbackBoundary","AppDevOverlayErrorBoundary","AppDevOverlay","HotReload","Router","ErrorBoundaryHandler","AppRouter","ServerRoot","SegmentStateProvider","RootErrorBoundary","LoadableComponent","MotionDOMComponent"]),vc=()=>typeof document>"u"?false:!!(document.getElementById("__NEXT_DATA__")||document.querySelector("nextjs-portal")),Cc=e=>!!(e.startsWith("_")||xc.has(e)),Dr=e=>!(Cc(e)||!Yi(e)||e.startsWith("Primitive.")||e.includes("Provider")&&e.includes("Context")),un=async e=>{if(!an())return [];let t=Mr(e);return t?await Ki(t):null},Ue=async e=>{if(!an())return null;let t=await un(e);if(!t)return null;for(let n of t)if(n.functionName&&Dr(n.functionName))return n.functionName;return null},dn=async(e,t={})=>{let{maxLines:n=3}=t,r=Sc(e),i=await un(e),o=vc(),a=[];if(i)for(let l of i){if(a.length>=n)break;if(l.isServer&&(!l.functionName||Dr(l.functionName))){a.push(`
|
|
24
|
+
in ${l.functionName||"<anonymous>"} (at Server)`);continue}if(l.fileName&&Dn(l.fileName)){let c=`
|
|
25
|
+
in `,u=l.functionName&&Dr(l.functionName);u&&(c+=`${l.functionName} (at `),c+=cn(l.fileName),o&&l.lineNumber&&l.columnNumber&&(c+=`:${l.lineNumber}:${l.columnNumber}`),u&&(c+=")"),a.push(c);}}return `${r}${a.join("")}`},Sc=e=>{let t=e.tagName.toLowerCase();if(!(e instanceof HTMLElement))return `<${t} />`;let n=e.innerText?.trim()??e.textContent?.trim()??"",r="",i=Array.from(e.attributes);for(let w of i){let v=w.name,R=w.value;R.length>20&&(R=`${R.slice(0,20)}...`),r+=` ${v}="${R}"`;}let o=[],a=[],l=false,c=Array.from(e.childNodes);for(let w of c)w.nodeType!==Node.COMMENT_NODE&&(w.nodeType===Node.TEXT_NODE?w.textContent&&w.textContent.trim().length>0&&(l=true):w instanceof Element&&(l?a.push(w):o.push(w)));let u=w=>w.length===0?"":w.length<=2?w.map(v=>`<${v.tagName.toLowerCase()} ...>`).join(`
|
|
26
|
+
`):`(${w.length} elements)`,h="",p=u(o);if(p&&(h+=`
|
|
27
|
+
${p}`),n.length>0){let w=n.length>100?`${n.slice(0,100)}...`:n;h+=`
|
|
28
|
+
${w}`;}let A=u(a);return A&&(h+=`
|
|
29
|
+
${A}`),h.length>0?`<${t}${r}>${h}
|
|
30
|
+
</${t}>`:`<${t}${r} />`};var Ec="application/x-react-grab",Bn=(e,t)=>{let n=JSON.stringify({version:Zo,content:e,timestamp:Date.now(),...t?.prompt&&{prompt:t.prompt}}),r=o=>{o.preventDefault(),o.clipboardData?.setData("text/plain",e),o.clipboardData?.setData(Ec,n);};document.addEventListener("copy",r);let i=document.createElement("textarea");i.value=e,i.style.position="fixed",i.style.left="-9999px",i.ariaHidden="true",document.body.appendChild(i),i.select();try{let o=document.execCommand("copy");return o&&t?.onSuccess?.(),o}finally{document.removeEventListener("copy",r),i.remove();}};var Xi=(e,t=window.getComputedStyle(e))=>t.display!=="none"&&t.visibility!=="hidden"&&t.opacity!=="0";var Ht=e=>{if(e.closest(`[${$t}]`))return false;let t=window.getComputedStyle(e);return !(!Xi(e,t)||t.pointerEvents==="none")};var Br=(e,t)=>{let n=document.elementsFromPoint(e,t);for(let r of n)if(Ht(r))return r;return null};var kc=(e,t)=>{let n=Math.max(e.left,t.left),r=Math.max(e.top,t.top),i=Math.min(e.right,t.right),o=Math.min(e.bottom,t.bottom),a=Math.max(0,i-n),l=Math.max(0,o-r);return a*l},Tc=(e,t)=>e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top,Wi=(e,t,n)=>{let r=[],i=Array.from(document.querySelectorAll("*")),o={left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height};for(let a of i){if(!n){let u=(a.tagName||"").toUpperCase();if(u==="HTML"||u==="BODY")continue}if(!t(a))continue;let l=a.getBoundingClientRect(),c={left:l.left,top:l.top,right:l.left+l.width,bottom:l.top+l.height};if(n){let u=kc(o,c),h=Math.max(0,l.width*l.height);h>0&&u/h>=.75&&r.push(a);}else Tc(c,o)&&r.push(a);}return r},qi=e=>e.filter(t=>!e.some(n=>n!==t&&n.contains(t))),Zi=(e,t)=>{let n=Wi(e,t,true);return qi(n)},Ji=(e,t)=>{let n=Wi(e,t,false);return qi(n)};var Ac=e=>typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e),Nc=e=>{let t=e.trim();if(!t)return null;let n=parseFloat(t);return Ac(n)?n:null},Qi=(e,t)=>{let n=e.split(",");if(n.length!==t)return null;let r=[];for(let i of n){let o=Nc(i);if(o===null)return null;r.push(o);}return r},_c=(e,t,n,r)=>e===1&&t===0&&n===0&&r===1,Rc=e=>e[0]===1&&e[1]===0&&e[2]===0&&e[3]===0&&e[4]===0&&e[5]===1&&e[6]===0&&e[7]===0&&e[8]===0&&e[9]===0&&e[10]===1&&e[11]===0&&e[15]===1,Hn=e=>{try{if(!(e instanceof Element))return "none";let t=window.getComputedStyle(e);if(!t)return "none";let n=t.transform;if(!n||n==="none")return "none";let r=n.match(/^matrix3d\(([^)]+)\)$/);if(r){let o=Qi(r[1],16);if(o&&o.length===16){let a=[...o];return a[12]=0,a[13]=0,a[14]=0,Rc(a)?"none":`matrix3d(${a.join(", ")})`}}let i=n.match(/^matrix\(([^)]+)\)$/);if(i){let o=Qi(i[1],6);if(o&&o.length===6){let[a,l,c,u]=o;return _c(a,l,c,u)?"none":`matrix(${a}, ${l}, ${c}, ${u}, 0, 0)`}}return "none"}catch{return "none"}};var Ae=e=>{let t=e.getBoundingClientRect();return {borderRadius:window.getComputedStyle(e).borderRadius||"0px",height:t.height,transform:Hn(e),width:t.width,x:t.left,y:t.top}};var Ic=new Set(["c","C","\u0441","\u0421","\u023C","\u023B","\u2184","\u2183","\u1D04","\u1D9C","\u2C7C","\u217D","\u216D","\xE7","\xC7","\u0107","\u0106","\u010D","\u010C","\u0109","\u0108","\u010B","\u010A"]),zn=(e,t)=>t==="KeyC"?true:!e||e.length!==1?false:Ic.has(e);var Hr=(e,t)=>{let n=e.toLowerCase();return t.startsWith("Key")?t.slice(3).toLowerCase()===n:t.startsWith("Digit")?t.slice(5)===n:false},zr=(e,t)=>{if(t.activationShortcut)return t.activationShortcut(e);if(t.activationKey){let{key:r,metaKey:i,ctrlKey:o,shiftKey:a,altKey:l}=t.activationKey;if(!r){if(!In.includes(e.key))return false;let A=i?e.metaKey||e.key==="Meta":true,w=o?e.ctrlKey||e.key==="Control":true,v=a?e.shiftKey||e.key==="Shift":true,R=l?e.altKey||e.key==="Alt":true,B=A&&w&&v&&R,q=[i,o,a,l].filter(Boolean).length,I=[e.metaKey||e.key==="Meta",e.ctrlKey||e.key==="Control",e.shiftKey||e.key==="Shift",e.altKey||e.key==="Alt"].filter(Boolean).length;return B&&I>=q}let u=e.key?.toLowerCase()===r.toLowerCase()||Hr(r,e.code),p=i||o||a||l?(i?e.metaKey:true)&&(o?e.ctrlKey:true)&&(a?e.shiftKey:true)&&(l?e.altKey:true):e.metaKey||e.ctrlKey;return u&&p}let n=(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey;return !!(e.key&&n&&zn(e.key,e.code))};var ot=(e,t)=>{try{return e.composedPath().some(n=>n instanceof HTMLElement&&n.hasAttribute(t))}catch{return false}};var jr={enabled:true,hue:0,selectionBox:{enabled:true},dragBox:{enabled:true},grabbedBoxes:{enabled:true},elementLabel:{enabled:true},crosshair:{enabled:true}},es=(e,t)=>({enabled:t.enabled??e.enabled,hue:t.hue??e.hue,selectionBox:{enabled:t.selectionBox?.enabled??e.selectionBox.enabled},dragBox:{enabled:t.dragBox?.enabled??e.dragBox.enabled},grabbedBoxes:{enabled:t.grabbedBoxes?.enabled??e.grabbedBoxes.enabled},elementLabel:{enabled:t.elementLabel?.enabled??e.elementLabel.enabled},crosshair:{enabled:t.crosshair?.enabled??e.crosshair.enabled}}),Vr=e=>e?es(jr,e):jr,ts=es;var Ur="react-grab:agent-sessions",Lc=()=>`session-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,ns=(e,t,n,r,i)=>{let o=Date.now();return {id:Lc(),context:e,lastStatus:"",isStreaming:true,createdAt:o,lastUpdatedAt:o,position:t,selectionBounds:n,tagName:r,componentName:i}},Gr=e=>e||null,St=new Map,jn=(e,t)=>{let n=Gr(t);if(!n){St.clear(),e.forEach((r,i)=>St.set(i,r));return}try{let r=Object.fromEntries(e);n.setItem(Ur,JSON.stringify(r));}catch{St.clear(),e.forEach((r,i)=>St.set(i,r));}},Vn=(e,t)=>{let n=Un(t);n.set(e.id,e),jn(n,t);},Un=e=>{let t=Gr(e);if(!t)return new Map(St);try{let n=t.getItem(Ur);if(!n)return new Map;let r=JSON.parse(n);return new Map(Object.entries(r))}catch{return new Map}};var Gn=e=>{let t=Gr(e);if(!t){St.clear();return}try{t.removeItem(Ur);}catch{St.clear();}},Kr=(e,t)=>{let n=Un(t);n.delete(e),jn(n,t);},Et=(e,t,n)=>{let r={...e,...t,lastUpdatedAt:Date.now()};return Vn(r,n),r};var Yr=async(e,t={})=>{let r=(await Promise.allSettled(e.map(i=>dn(i,t)))).map(i=>i.status==="fulfilled"?i.value:"").filter(i=>i.trim());return r.length===0?"":r.join(`
|
|
31
|
+
|
|
32
|
+
`)};var rs=e=>{let[t,n]=_(new Map),r=new Map,i=new Map,o=e,a=E=>{o=E;},l=()=>o,c=()=>t().size>0,u=async(E,$)=>{let X=o?.storage,z=false;try{for await(let g of $){let f=t().get(E.id);if(!f)break;let y=Et(f,{lastStatus:g},X);n(L=>new Map(L).set(E.id,y)),o?.onStatus?.(g,y);}let M=t().get(E.id);if(M){let g=o?.provider?.getCompletionMessage?.(),m=Et(M,{isStreaming:!1,...g?{lastStatus:g}:{}},X);n(L=>new Map(L).set(E.id,m));let f=i.get(E.id),y=o?.onComplete?.(m,f);if(y?.error){let L=Et(m,{error:y.error},X);n(F=>new Map(F).set(E.id,L));}}}catch(W){let g=t().get(E.id);if(W instanceof Error&&W.name==="AbortError"){if(z=true,g){let m=i.get(E.id);o?.onAbort?.(g,m);}}else {let m=W instanceof Error?W.message:"Unknown error";if(g){let f=Et(g,{error:m,isStreaming:false},X);n(y=>new Map(y).set(E.id,f)),W instanceof Error&&o?.onError?.(W,f);}}}finally{r.delete(E.id),z&&(i.delete(E.id),Kr(E.id,X),n(W=>{let M=new Map(W);return M.delete(E.id),M}));}},h=E=>{let{selectionBounds:$,tagName:X}=E;if(!$)return;let z=$.x+$.width/2,W=$.y+$.height/2,M=document.elementFromPoint(z,W);if(M&&!(X&&M.tagName.toLowerCase()!==X))return M},p=()=>{let E=o?.storage;if(!E)return;let $=Un(E);if($.size===0)return;let X=Date.now(),z=Array.from($.values()).filter(M=>{if(M.isStreaming)return true;let g=M.lastUpdatedAt??M.createdAt;return X-g<1e4&&!!M.error});if(z.length===0){Gn(E);return}if(!o?.provider?.supportsResume||!o.provider.resume){Gn(E);return}let W=new Map(z.map(M=>[M.id,M]));n(W),jn(W,E);for(let M of z){let g=h(M);g&&i.set(M.id,g);let m={...M,isStreaming:true,error:void 0,lastStatus:M.lastStatus||"Resuming...",position:M.position??{x:window.innerWidth/2,y:window.innerHeight/2}};n(L=>new Map(L).set(M.id,m)),o?.onResume?.(m);let f=new AbortController;r.set(M.id,f);let y=o.provider.resume(M.id,f.signal,E);u(M,y);}},A=async E=>{let{element:$,prompt:X,position:z,selectionBounds:W,sessionId:M}=E,g=o?.storage;if(!o?.provider)return;let m=M?t().get(M):void 0,f=!!M,L={content:m?m.context.content:await Yr([$],{maxLines:1/0}),prompt:X,options:o?.getOptions?.(),sessionId:f?M:void 0},F;if(m)F=Et(m,{context:L,isStreaming:true,lastStatus:"Thinking\u2026"},g);else {let C=($.tagName||"").toLowerCase()||void 0,P=await Ue($)||void 0;F=ns(L,z,W,C,P),F.lastStatus="Thinking\u2026",i.set(F.id,$);}n(C=>new Map(C).set(F.id,F)),Vn(F,g),o.onStart?.(F,$);let ne=new AbortController;r.set(F.id,ne);let Q={...L,sessionId:M??F.id},oe=o.provider.send(Q,ne.signal);u(F,oe);},w=E=>{let $=r.get(E);$&&$.abort();},v=()=>{r.forEach(E=>E.abort()),r.clear(),n(new Map),Gn(o?.storage);},R=E=>{let $=o?.storage;i.delete(E),Kr(E,$),n(X=>{let z=new Map(X);return z.delete(E),z});};return {sessions:t,isProcessing:c,tryResumeSessions:p,startSession:A,abortSession:w,abortAllSessions:v,dismissSession:R,undoSession:E=>{let X=t().get(E);if(X){let z=i.get(E);o?.onUndo?.(X,z),o?.provider?.undo?.();}R(E);},acknowledgeSessionError:E=>{let z=t().get(E)?.context.prompt;return R(E),z},retrySession:E=>{let X=t().get(E);if(!X||!o?.provider)return;let z=o.storage,W=i.get(E),M=Et(X,{error:void 0,isStreaming:true,lastStatus:"Retrying\u2026"},z);n(y=>new Map(y).set(E,M)),Vn(M,z),W&&o.onStart?.(M,W);let g=new AbortController;r.set(E,g);let m={...M.context,sessionId:E},f=o.provider.send(m,g.signal);u(M,f);},updateSessionBoundsOnViewportChange:()=>{let E=t();if(E.size===0)return;let $=new Map(E),X=false;for(let[z,W]of E){let M=i.get(z);if(M&&document.contains(M)){let g=Ae(M);if(g){let m=W.selectionBounds,f=W.position;if(m){let y=m.x+m.width/2,L=W.position.x-y,F=g.x+g.width/2;f={...W.position,x:F+L};}$.set(z,{...W,selectionBounds:g,position:f}),X=true;}}}X&&n($);},getSessionElement:E=>i.get(E),setOptions:a,getOptions:l}};var os=Y('<span class="tabular-nums align-middle">'),is=Y('<span class="font-mono tabular-nums align-middle"><<!>>'),jc=Y('<span class="tabular-nums ml-1 align-middle"> in '),Vc=e=>"scheduler"in globalThis?globalThis.scheduler.postTask(e,{priority:"background"}):"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0),Wr=false,Uc=()=>{if(typeof window>"u")return null;try{let e=document.currentScript?.getAttribute("data-options");return e?JSON.parse(e):null}catch{return null}},lp=e=>{let t=Vr(e?.theme);if(typeof window>"u")return {activate:()=>{},deactivate:()=>{},toggle:()=>{},isActive:()=>false,dispose:()=>{},copyElement:()=>Promise.resolve(false),getState:()=>({isActive:false,isDragging:false,isCopying:false,isInputMode:false,targetElement:null,dragBounds:null}),updateTheme:()=>{},getTheme:()=>t,setAgent:()=>{},updateOptions:()=>{}};let n=Uc(),r={enabled:true,keyHoldDuration:200,allowActivationInsideInput:true,maxContextLines:3,...n,...e},i=Vr(r.theme);return r.enabled===false||Wr?{activate:()=>{},deactivate:()=>{},toggle:()=>{},isActive:()=>false,dispose:()=>{},copyElement:()=>Promise.resolve(false),getState:()=>({isActive:false,isDragging:false,isCopying:false,isInputMode:false,targetElement:null,dragBounds:null}),updateTheme:()=>{},getTheme:()=>i,setAgent:()=>{},updateOptions:()=>{}}:(Wr=true,(()=>{try{let a="0.0.81",l=`data:image/svg+xml;base64,${btoa(Jo)}`;console.log(`%cReact Grab${a?` v${a}`:""}%c
|
|
33
|
+
https://react-grab.com`,`background: #330039; color: #ffffff; border: 1px solid #d75fcb; padding: 4px 4px 4px 24px; border-radius: 4px; background-image: url("${l}"); background-size: 16px 16px; background-repeat: no-repeat; background-position: 4px center; display: inline-block; margin-bottom: 4px;`,""),navigator.onLine&&a&&fetch(`https://www.react-grab.com/api/version?source=browser&t=${Date.now()}`,{referrerPolicy:"origin",keepalive:!0,priority:"low",cache:"no-store"}).then(c=>c.text()).then(c=>{c&&c!==a&&console.warn(`[React Grab] v${a} is outdated (latest: v${c})`);}).catch(()=>null);}catch{}})(),et(a=>{let[l,c]=_(i),[u,h]=_(false),[p,A]=_(-1e3),[w,v]=_(-1e3),[R,B]=_(null),q=0,[I,H]=_(false),[J,E]=_(-1e3),[$,X]=_(-1e3),[z,W]=_(false),[M,g]=_("idle"),[m,f]=_([]),[y,L]=_(null),[F,ne]=_(null),[Q,oe]=_(null),[C,P]=_([]),[G,K]=_(false),[j,V]=_(false),[ie,ee]=_(false),[me,ue]=_(false),[ye,fe]=_(-1e3),[Se,xe]=_(-1e3),[We,Oe]=_(0),[Be,zt]=_(0),[he,ze]=_(false),[Wn,je]=_(""),[ss,qn]=_(false),[qr,Zr]=_(void 0),[Jr,Qr]=_(void 0),[fn,Ge]=_(false),[eo,Ke]=_(false),[kt,mt]=_(null),[jt,as]=_(!!r.agent?.provider),[ls,cs]=_(false),[us,ds]=_(!!r.agent?.provider?.undo),[fs,ms]=_(!!r.agent?.provider?.supportsFollowUp),[ps,mn]=_(null),[gs,to]=_(null),[no,Tt]=_(false),it=new WeakMap,[Zn,Jn]=_(-1e3),[Qn,er]=_(-1e3),[ro,Vt]=_(false),[Ut,oo]=_([]),qe=s=>(s.tagName||"").toLowerCase(),io=le(()=>{let s=Ut();if(!(s.length===0||!s[0]))return qe(s[0])||void 0}),[so]=En(()=>{let s=Ut();return s.length===0||!s[0]?null:s[0]},async s=>{if(s)return await Ue(s)||void 0}),Ze=()=>{Vt(false),Jn(-1e3),er(-1e3),oo([]);},hs=()=>{let s=window.getSelection();if(!s||s.isCollapsed||s.rangeCount===0)return;let b=s.getRangeAt(0).getClientRects();if(b.length===0)return;let x=(()=>{if(!s.anchorNode||!s.focusNode)return false;let U=s.anchorNode.compareDocumentPosition(s.focusNode);return U&Node.DOCUMENT_POSITION_FOLLOWING?false:U&Node.DOCUMENT_POSITION_PRECEDING?true:s.anchorOffset>s.focusOffset})(),k=x?b[0]:b[b.length-1],N=x?k.left:k.right,O=k.top+k.height/2;Jn(N),er(O);};se(Le(()=>Be(),()=>{ro()&&hs();}));let tr=le(()=>{Be();let s=Ut();if(!(s.length===0||!s[0]))return Ae(s[0])}),Je=null,pn=null,gn=null,Me=null,pt=null,Gt=null,Ye=null,gt=null,Ve=le(()=>G()&&!z()),ao=(s,d)=>({top:d<25,bottom:d>window.innerHeight-25,left:s<25,right:s>window.innerWidth-25}),lo=(s,d)=>{let b=`grabbed-${Date.now()}-${Math.random()}`,x=Date.now(),k={id:b,bounds:s,createdAt:x,element:d},N=C();P([...N,k]),r.onGrabbedBox?.(s,d),setTimeout(()=>{P(O=>O.filter(U=>U.id!==b));},1700);},co=s=>{let d=s.map(b=>({tagName:qe(b)}));window.dispatchEvent(new CustomEvent("react-grab:element-selected",{detail:{elements:d}}));},bs=(s,d,b,x,k,N)=>{let O=`label-${Date.now()}-${Math.random().toString(36).slice(2)}`;return f(U=>[...U,{id:O,bounds:s,tagName:d,componentName:b,status:x,createdAt:Date.now(),element:k,mouseX:N}]),O},uo=(s,d)=>{f(b=>b.map(x=>x.id===s?{...x,status:d}:x));},ys=s=>{f(d=>d.filter(b=>b.id!==s));},ht=async(s,d,b,x,k,N,O,U)=>{if(fe(s),xe(d),x){let $e=x.x+x.width/2;Oe(s-$e);}else Oe(0);W(true),Ss();let pe=x&&k?bs(x,k,N,"copying",O,s):null;await b().finally(()=>{W(false),ue(true),O&&ne(O),hn(),pe&&(uo(pe,"copied"),setTimeout(()=>{uo(pe,"fading"),setTimeout(()=>{ys(pe);},350);},1500)),(j()||U)&&Ie();});},ws=s=>"innerText"in s,xs=s=>ws(s)?s.innerText:s.textContent??"",fo=s=>s.map(d=>xs(d).trim()).filter(d=>d.length>0).join(`
|
|
34
|
+
|
|
35
|
+
`),nr=async(s,d)=>{let b=false,x="";await r.onBeforeCopy?.(s);try{let k=await Promise.allSettled(s.map(O=>dn(O,{maxLines:r.maxContextLines}))),N=[];for(let O of k)O.status==="fulfilled"&&O.value.trim()&&N.push(O.value);if(N.length>0){let O=N.join(`
|
|
36
|
+
|
|
37
|
+
`),U=d?`${d}
|
|
38
|
+
|
|
39
|
+
${O}`:O;x=U,b=Bn(U,{prompt:d});}if(!b){let O=fo(s);if(O.length>0){let U=d?`${d}
|
|
40
|
+
|
|
41
|
+
${O}`:O;x=U,b=Bn(U,{prompt:d});}}}catch(k){r.onCopyError?.(k);let N=fo(s);if(N.length>0){let O=d?`${d}
|
|
42
|
+
|
|
43
|
+
${N}`:N;x=O,b=Bn(O,{prompt:d});}}return b&&r.onCopySuccess?.(s,x),r.onAfterCopy?.(s,b),b},Kt=async(s,d)=>{r.onElementSelect?.(s),l().grabbedBoxes.enabled&&lo(Ae(s),s),await new Promise(b=>requestAnimationFrame(b)),await nr([s],d),co([s]);},mo=async s=>{if(s.length!==0){for(let d of s)r.onElementSelect?.(d);if(l().grabbedBoxes.enabled)for(let d of s)lo(Ae(d),d);await new Promise(d=>requestAnimationFrame(d)),await nr(s),co(s);}},Ne=le(()=>{if(!Ve()||I())return null;let s=R();return s&&!document.contains(s)?null:s}),At=le(()=>fn()?kt():Ne());se(()=>{let s=R();if(!s)return;let d=setInterval(()=>{document.contains(s)||B(null);},100);be(()=>clearInterval(d));}),se(()=>{if(fn())return;let s=Ne();s&&mt(s);});let po=le(()=>{Be();let s=At();if(s)return Ae(s)}),go=(s,d)=>{let b=s+window.scrollX,x=d+window.scrollY;return {x:Math.abs(b-J()),y:Math.abs(x-$())}},ho=le(()=>{if(!I())return false;let s=go(p(),w());return s.x>2||s.y>2}),bo=(s,d)=>{let b=s+window.scrollX,x=d+window.scrollY,k=Math.min(J(),b),N=Math.min($(),x),O=Math.abs(b-J()),U=Math.abs(x-$());return {x:k-window.scrollX,y:N-window.scrollY,width:O,height:U}},st=le(()=>{if(!ho())return;let s=bo(p(),w());return {borderRadius:"0px",height:s.height,transform:"none",width:s.width,x:s.x,y:s.y}}),[vs]=En(()=>Ne(),async s=>s?Ue(s):null),Cs=le(()=>{let s=Ne(),d=z();if(!s)return (()=>{var k=os();return D(k,d?"Processing\u2026":"1 element"),k})();let b=qe(s),x=vs();return b&&x?[(()=>{var k=is(),N=k.firstChild,O=N.nextSibling;O.nextSibling;return D(k,b,O),k})(),(()=>{var k=jc();k.firstChild;return D(k,x,null),k})()]:b?(()=>{var k=is(),N=k.firstChild,O=N.nextSibling;O.nextSibling;return D(k,b,O),k})():(()=>{var k=os();return D(k,d?"Processing\u2026":"1 element"),k})()}),rr=le(()=>{if(z()||eo()){Be();let s=kt()||Ne();if(s){let d=Ae(s);return {x:d.x+d.width/2+We(),y:Se()}}return {x:ye(),y:Se()}}return {x:p(),y:w()}});se(Le(()=>[Ne(),y()],([s,d])=>{d&&s&&d!==s&&L(null),s&&r.onElementHover?.(s);})),se(Le(()=>Ne(),s=>{let d=()=>{Zr(void 0),Qr(void 0);};if(!s){d();return}un(s).then(b=>{if(b){for(let x of b)if(x.fileName&&Dn(x.fileName)){Zr(cn(x.fileName)),Qr(x.lineNumber);return}d();}}).catch(d);})),se(Le(()=>Be(),()=>Ee.updateSessionBoundsOnViewportChange())),se(Le(()=>[G(),I(),z(),he(),Ne(),st()],([s,d,b,x,k,N])=>{r.onStateChange?.({isActive:s,isDragging:d,isCopying:b,isInputMode:x,targetElement:k,dragBounds:N?{x:N.x,y:N.y,width:N.width,height:N.height}:null});})),se(Le(()=>[he(),p(),w(),Ne()],([s,d,b,x])=>{r.onInputModeChange?.(s,{x:d,y:b,targetElement:x});})),se(Le(()=>[Eo(),po(),Ne()],([s,d,b])=>{r.onSelectionBox?.(!!s,d??null,b);})),se(Le(()=>[ko(),st()],([s,d])=>{r.onDragBox?.(!!s,d??null);})),se(Le(()=>[To(),p(),w()],([s,d,b])=>{r.onCrosshair?.(!!s,{x:d,y:b});})),se(Le(()=>[Hs(),Bs(),Cs(),rr()],([s,d,b,x])=>{let k=typeof b=="string"?b:"";r.onElementLabel?.(!!s,d,{x:x.x,y:x.y,content:k});}));let at=null,bt=s=>{s?(at||(at=document.createElement("style"),at.setAttribute("data-react-grab-cursor",""),document.head.appendChild(at)),at.textContent=`* { cursor: ${s} !important; }`):at&&(at.remove(),at=null);};se(Le(()=>[G(),z(),I(),he(),Ne()],([s,d,b,x,k])=>{bt(d?"progress":x?null:s&&b?"crosshair":s&&k?"default":s?"crosshair":null);}));let Ss=s=>{let d=Date.now(),b=r.keyHoldDuration??200;oe(d);let x=()=>{let k=Q();if(k===null)return;let O=(Date.now()-k)/b,U=1-Math.exp(-O);(z()?Math.min(U,.95):1)<1&&(gn=requestAnimationFrame(x));};x();},hn=()=>{gn!==null&&(cancelAnimationFrame(gn),gn=null),oe(null);},Es=()=>{let s=()=>{if(!I()){Yt();return}let d=ao(p(),w());d.top&&window.scrollBy(0,-10),d.bottom&&window.scrollBy(0,10),d.left&&window.scrollBy(-10,0),d.right&&window.scrollBy(10,0),d.top||d.bottom||d.left||d.right?pt=requestAnimationFrame(s):pt=null;};s();},Yt=()=>{pt!==null&&(cancelAnimationFrame(pt),pt=null);},Qe=()=>{hn(),Gt=document.activeElement,pn=Date.now(),K(true),r.onActivate?.();},Ie=()=>{if(V(false),h(false),K(false),ze(false),je(""),Ge(false),Ke(false),Tt(false),mt(null),g("idle"),ue(false),I()&&(H(false),document.body.style.userSelect=""),Je&&window.clearTimeout(Je),Me&&window.clearTimeout(Me),Ye){window.clearTimeout(Ye),Ye=null;let s=gt;if(gt=null,s){L(s.element);let d=Ae(s.element),b=qe(s.element);Ue(s.element).then(x=>{ht(s.clientX,s.clientY,()=>Kt(s.element),d,b,x??void 0,s.element);});}}Yt(),hn(),pn=null,Gt instanceof HTMLElement&&document.contains(Gt)&&Gt.focus(),Gt=null,r.onDeactivate?.();},bn=(s,d)=>{if(d&&document.contains(d)){let b=d.getBoundingClientRect(),x=b.top+b.height/2;A(s.position.x),v(x),mt(d),je(s.context.prompt),Ke(true),ze(true),V(true),Ge(true),G()||Qe();}},ks=r.agent?{...r.agent,onAbort:(s,d)=>{r.agent?.onAbort?.(s,d),bn(s,d);},onUndo:(s,d)=>{r.agent?.onUndo?.(s,d),bn(s,d);}}:void 0,Ee=rs(ks),Ts=s=>{je(s);},As=()=>{ne(null);let s=kt()||Ne(),d=he()?Wn().trim():"";if(!s){Ie();return}let b=Ae(s),x=p(),k=b.x+b.width/2,N=b.y+b.height/2;if(jt()&&d){it.delete(s),Ie();let U=ps();mn(null),to(null),Ee.startSession({element:s,prompt:d,position:{x,y:N},selectionBounds:b,sessionId:U??void 0});return}A(k),v(N),ze(false),je(""),d?it.set(s,d):it.delete(s);let O=qe(s);Ue(s).then(U=>{ht(k,N,()=>Kt(s,d||void 0),b,O,U??void 0,s).then(()=>{Ie();});});},or=()=>{if(ne(null),!he())return;let s=Wn().trim();if(s&&!no()){Tt(true);return}let d=kt()||Ne();d&&s&&it.set(d,s),Tt(false),mn(null),Ie();},Ns=()=>{Tt(false),mn(null),Ie();},_s=()=>{Tt(false);},Rs=()=>{let s=kt()||Ne();if(s){let d=Ae(s),b=d.x+d.width/2;fe(p()),xe(w()),Oe(p()-b);let x=it.get(s);x&&je(x);}V(true),Ge(true),Ke(true),ze(true);},Is=async()=>{let s=Ut();if(s.length===0)return;let d=Zn(),b=Qn(),x=tr(),k=io();Vt(false),Ze(),window.getSelection()?.removeAllRanges();let N=so();s.length===1?await ht(d,b,()=>Kt(s[0]),x,k,N):await ht(d,b,()=>mo(s),x,k,N);},Ls=()=>{if(Ut().length===0)return;let d=tr(),b=d?d.x+d.width/2:Zn(),x=d?d.y+d.height/2:Qn();Vt(false),Ze(),window.getSelection()?.removeAllRanges(),A(b),v(x),V(true),Ge(true),Ke(true),Qe(),ze(true);},yo=(s,d)=>{if(he()||fn())return;ue(false),A(s),v(d);let b=performance.now();if(b-q>=32&&(q=b,Vc(()=>{let x=Br(s,d);B(x);})),I()){let x=ao(s,d),k=x.top||x.bottom||x.left||x.right;k&&pt===null?Es():!k&&pt!==null&&Yt();}},wo=(s,d)=>{if(!Ve()||z())return false;H(true);let b=s+window.scrollX,x=d+window.scrollY;return E(b),X(x),document.body.style.userSelect="none",r.onDragStart?.(b,x),true},xo=(s,d)=>{if(!I())return;let b=go(s,d),x=b.x>2||b.y>2;if(H(false),Yt(),document.body.style.userSelect="",x){ee(true);let k=bo(s,d),N=Zi(k,Ht),O=N.length>0?N:Ji(k,Ht);if(O.length>0){r.onDragEnd?.(O,k);let U=O[0],pe=U.getBoundingClientRect(),$e={x:pe.left,y:pe.top,width:pe.width,height:pe.height,borderRadius:"0px",transform:Hn(U)},Xt=qe(U),_t=$e.x+$e.width/2,Wt=$e.y+$e.height/2;jt()?(A(_t),v(Wt),mt(U),V(true),Ge(true),Ke(true),G()||Qe(),ze(true)):Ue(U).then(js=>{ht(_t,Wt,()=>mo(O),$e,Xt,js??void 0,U,true);});}}else {let k=Br(s,d);if(!k)return;if(jt()){if(Ye!==null){window.clearTimeout(Ye),Ye=null;let N=gt?.element??k;gt=null;let O=Ae(N),U=O.x+O.width/2;fe(s),xe(d),Oe(s-U);let pe=it.get(N);pe&&je(pe),A(s),v(d),mt(N),V(true),Ge(true),Ke(true),ze(true);return}gt={clientX:s,clientY:d,element:k},Ye=window.setTimeout(()=>{Ye=null;let N=gt;if(gt=null,!N)return;L(N.element);let O=Ae(N.element),U=qe(N.element);Ue(N.element).then(pe=>{ht(N.clientX,N.clientY,()=>Kt(N.element),O,U,pe??void 0,N.element);});},250);}else {L(k);let N=Ae(k),O=qe(k);Ue(k).then(U=>{ht(s,d,()=>Kt(k),N,O,U??void 0,k);});}}},vo=new AbortController,ke=vo.signal,Co=new WeakSet,yt=s=>s==="Enter"||s==="NumpadEnter",wt=Object.getOwnPropertyDescriptor(KeyboardEvent.prototype,"key"),So=false;if(wt?.get&&!wt.get.__reactGrabPatched){So=true;let s=wt.get,d=function(){return Co.has(this)?"":s.call(this)};d.__reactGrabPatched=true,Object.defineProperty(KeyboardEvent.prototype,"key",{get:d,configurable:true});}let Nt=s=>{let d;try{d=wt?.get?wt.get.call(s):s.key;}catch{return false}let b=d==="Enter"||yt(s.code),x=G()||u();return b&&x&&!he()&&!j()?(Co.add(s),s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation(),true):false};document.addEventListener("keydown",Nt,{signal:ke,capture:true}),document.addEventListener("keyup",Nt,{signal:ke,capture:true}),document.addEventListener("keypress",Nt,{signal:ke,capture:true}),window.addEventListener("keydown",s=>{Nt(s);let d=yt(s.code)&&u()&&!he();if(he()&&zr(s,r)&&!s.repeat){s.preventDefault(),s.stopPropagation(),ze(false),je(""),Ge(false),Ke(false),Tt(false);return}if(he()||ot(s,"data-react-grab-ignore-events")&&!d){s.key==="Escape"&&Ee.isProcessing()&&Ee.abortAllSessions();return}if(s.key==="Escape"){if(Ee.isProcessing()){Ee.abortAllSessions();return}if(u()){Ie();return}}let b=F();if(yt(s.code)&&!u()&&!he()&&!G()&&b&&document.contains(b)&&!m().some(N=>N.status==="copied"||N.status==="fading")){s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation();let N=Ae(b),O=N.x+N.width/2,U=N.y+N.height/2;A(O),v(U),fe(O),xe(U),Oe(0),mt(b),ne(null),f([]);let pe=it.get(b);pe&&je(pe),V(true),Ge(true),Ke(true),Qe(),ze(true);return}if(yt(s.code)&&u()&&!he()){s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation();let N=kt()||Ne();if(N){let O=Ae(N),U=O.x+O.width/2;fe(p()),xe(w()),Oe(p()-U);let pe=it.get(N);pe&&je(pe);}V(true),Ge(true),Ke(true),Me!==null&&(window.clearTimeout(Me),Me=null),G()||(Je&&window.clearTimeout(Je),Qe()),ze(true);return}if(s.key?.toLowerCase()==="o"&&!he()&&G()&&(s.metaKey||s.ctrlKey)){let N=qr(),O=Jr();if(N)if(s.preventDefault(),s.stopPropagation(),r.onOpenFile)r.onOpenFile(N,O);else {let U=Rn(N,O);window.open(U,"_blank");}return}if(!r.allowActivationInsideInput&&fr(s)||!zr(s,r)&&(G()&&!j()&&(s.metaKey||s.ctrlKey)&&!In.includes(s.key)&&!yt(s.code)&&Ie(),!yt(s.code)||!u()))return;if((G()||u())&&!he()&&(s.preventDefault(),yt(s.code)&&(s.stopPropagation(),s.stopImmediatePropagation())),G()){if(j()||s.repeat)return;Me!==null&&window.clearTimeout(Me),Me=window.setTimeout(()=>{Ie();},200);return}if(u()&&s.repeat)return;Je!==null&&window.clearTimeout(Je),u()||h(true);let x=r.keyHoldDuration??200,k=fr(s)?x+150:x;Je=window.setTimeout(()=>{Qe();},k);},{signal:ke,capture:true}),window.addEventListener("keyup",s=>{if(Nt(s)||!u()&&!G()||he())return;let d=!!(r.activationShortcut||r.activationKey),x=(()=>{if(r.activationKey){let{metaKey:O,ctrlKey:U,shiftKey:pe,altKey:$e}=r.activationKey;return {metaKey:!!O,ctrlKey:!!U,shiftKey:!!pe,altKey:!!$e}}return {metaKey:true,ctrlKey:true,shiftKey:false,altKey:false}})(),k=x.metaKey||x.ctrlKey?!s.metaKey&&!s.ctrlKey:x.shiftKey&&!s.shiftKey||x.altKey&&!s.altKey,N=r.activationShortcut?!r.activationShortcut(s):r.activationKey?r.activationKey.key?s.key?.toLowerCase()===r.activationKey.key.toLowerCase()||Hr(r.activationKey.key,s.code):false:zn(s.key,s.code);if(G()){if(k){if(j())return;Ie();}else !d&&N&&Me!==null&&(window.clearTimeout(Me),Me=null);return}if(N||k){if(j())return;Ie();}},{signal:ke,capture:true}),window.addEventListener("keypress",Nt,{signal:ke,capture:true}),window.addEventListener("mousemove",s=>{qn(false),!ot(s,"data-react-grab-ignore-events")&&yo(s.clientX,s.clientY);},{signal:ke}),window.addEventListener("mousedown",s=>{if(s.button!==0||ot(s,"data-react-grab-ignore-events"))return;if(he()){or();return}wo(s.clientX,s.clientY)&&(s.preventDefault(),s.stopPropagation());},{signal:ke,capture:true}),window.addEventListener("pointerdown",s=>{s.button===0&&(ot(s,"data-react-grab-ignore-events")||!Ve()||z()||he()||s.stopPropagation());},{signal:ke,capture:true}),window.addEventListener("mouseup",s=>{s.button===0&&xo(s.clientX,s.clientY);},{signal:ke}),window.addEventListener("touchmove",s=>{s.touches.length!==0&&(qn(true),!ot(s,"data-react-grab-ignore-events")&&yo(s.touches[0].clientX,s.touches[0].clientY));},{signal:ke,passive:true}),window.addEventListener("touchstart",s=>{if(s.touches.length===0||(qn(true),ot(s,"data-react-grab-ignore-events")))return;if(he()){or();return}wo(s.touches[0].clientX,s.touches[0].clientY)&&s.preventDefault();},{signal:ke,passive:false}),window.addEventListener("touchend",s=>{s.changedTouches.length!==0&&xo(s.changedTouches[0].clientX,s.changedTouches[0].clientY);},{signal:ke}),window.addEventListener("click",s=>{ot(s,"data-react-grab-ignore-events")||(Ve()||z()||ie())&&(s.preventDefault(),s.stopPropagation(),ie()&&ee(false),j()&&!z()&&!he()&&(u()?V(false):Ie()));},{signal:ke,capture:true}),document.addEventListener("visibilitychange",()=>{document.hidden&&(P([]),G()&&!he()&&pn!==null&&Date.now()-pn>500&&Ie());},{signal:ke}),window.addEventListener("scroll",()=>{zt(s=>s+1);},{signal:ke,capture:true}),window.addEventListener("resize",()=>{zt(s=>s+1);},{signal:ke});let Os=setInterval(()=>{zt(s=>s+1);},100);be(()=>clearInterval(Os)),document.addEventListener("copy",s=>{he()||ot(s,"data-react-grab-ignore-events")||(Ve()||z())&&s.preventDefault();},{signal:ke,capture:true});let yn=null;document.addEventListener("selectionchange",()=>{if(Ve())return;yn!==null&&window.clearTimeout(yn),Vt(false);let s=window.getSelection();if(!s||s.isCollapsed||s.rangeCount===0){Ze();return}yn=window.setTimeout(()=>{yn=null;let d=window.getSelection();if(!d||d.isCollapsed||d.rangeCount===0){Ze();return}let b=d.getRangeAt(0),x=b.getBoundingClientRect();if(x.width===0&&x.height===0){Ze();return}if(!d.toString().trim()){Ze();return}let N=(()=>{if(!d.anchorNode||!d.focusNode)return false;let Wt=d.anchorNode.compareDocumentPosition(d.focusNode);return Wt&Node.DOCUMENT_POSITION_FOLLOWING?false:Wt&Node.DOCUMENT_POSITION_PRECEDING?true:d.anchorOffset>d.focusOffset})(),O=b.getClientRects();if(O.length===0){Ze();return}let U=N?O[0]:O[O.length-1],pe=N?U.left:U.right,$e=U.top+U.height/2;if(Wo(pe,$e)){Ze();return}let Xt=b.commonAncestorContainer,_t=Xt.nodeType===Node.ELEMENT_NODE?Xt:Xt.parentElement;_t&&Ht(_t)?(Jn(pe),er($e),oo([_t]),Vt(true)):Ze();},150);},{signal:ke}),be(()=>{vo.abort(),Je&&window.clearTimeout(Je),Me&&window.clearTimeout(Me),Ye&&window.clearTimeout(Ye),Yt(),hn(),document.body.style.userSelect="",bt(null),So&&wt&&Object.defineProperty(KeyboardEvent.prototype,"key",wt);});let ir=qo(Yo),Eo=le(()=>!l().selectionBox.enabled||me()?false:Ve()&&!I()&&!!At()),Ms=le(()=>{let s=At();if(s)return qe(s)||void 0}),[$s]=En(()=>At(),async s=>s?await Ue(s)??void 0:void 0),Ps=le(()=>!l().elementLabel.enabled||me()?false:Ve()&&!I()&&!!At()),Fs=le(()=>(Be(),m().map(s=>!s.element||!document.body.contains(s.element)?s:{...s,bounds:Ae(s.element)}))),Ds=le(()=>(Be(),C().map(s=>!s.element||!document.body.contains(s.element)?s:{...s,bounds:Ae(s.element)}))),ko=le(()=>l().dragBox.enabled&&Ve()&&ho()),Bs=le(()=>z()?"processing":"hover"),Hs=le(()=>!l().elementLabel.enabled||he()?false:z()?true:Ve()&&!I()&&!!At()),To=le(()=>l().crosshair.enabled&&Ve()&&!I()&&!ss()&&!fn()),zs=le(()=>l().grabbedBoxes.enabled);return se(Le(l,s=>{s.hue!==0?ir.style.filter=`hue-rotate(${s.hue}deg)`:ir.style.filter="";})),l().enabled&&Go(()=>T(Si,{get selectionVisible(){return Eo()},get selectionBounds(){return po()},get selectionFilePath(){return qr()},get selectionLineNumber(){return Jr()},get selectionTagName(){return Ms()},get selectionComponentName(){return $s()},get selectionLabelVisible(){return Ps()},get selectionLabelStatus(){return M()},get labelInstances(){return Fs()},get dragVisible(){return ko()},get dragBounds(){return st()},get grabbedBoxes(){return Ce(()=>!!zs())()?Ds():[]},labelZIndex:2147483647,get mouseX(){return rr().x},get mouseY(){return rr().y},get crosshairVisible(){return To()},get inputValue(){return Wn()},get isInputExpanded(){return eo()},get replyToPrompt(){return gs()??void 0},get hasAgent(){return jt()},get isAgentConnected(){return ls()},get agentSessions(){return Ee.sessions()},get supportsUndo(){return us()},get supportsFollowUp(){return fs()},onAbortSession:s=>Ee.abortSession(s),onDismissSession:s=>Ee.dismissSession(s),onUndoSession:s=>Ee.undoSession(s),onReplySession:s=>{let d=Ee.sessions().get(s),b=Ee.getSessionElement(s);if(d&&b){let x=d.position.x,k=b.getBoundingClientRect(),N=k.top+k.height/2,O=d.context.prompt;Ee.dismissSession(s),A(x),v(N),mt(b),je(""),Ke(true),ze(true),V(true),Ge(true),mn(d.context.sessionId??s),to(O),G()||Qe();}},onAcknowledgeSessionError:s=>{let d=Ee.acknowledgeSessionError(s);d&&je(d);},onRetrySession:s=>{Ee.retrySession(s);},onInputChange:Ts,onInputSubmit:()=>void As(),onInputCancel:or,onToggleExpand:Rs,get isPendingDismiss(){return no()},onConfirmDismiss:Ns,onCancelDismiss:_s,get nativeSelectionCursorVisible(){return ro()},get nativeSelectionCursorX(){return Zn()},get nativeSelectionCursorY(){return Qn()},get nativeSelectionTagName(){return io()},get nativeSelectionComponentName(){return so()},get nativeSelectionBounds(){return tr()},onNativeSelectionCopy:()=>void Is(),onNativeSelectionEnter:Ls,get theme(){return l()}}),ir),jt()&&Ee.tryResumeSessions(),{activate:()=>{G()||(V(true),Qe());},deactivate:()=>{G()&&Ie();},toggle:()=>{G()?Ie():(V(true),Qe());},isActive:()=>G(),dispose:()=>{Wr=false,a();},copyElement:async s=>{let d=Array.isArray(s)?s:[s];if(d.length===0)return false;await r.onBeforeCopy?.(d);let b=await nr(d);return r.onAfterCopy?.(d,b),b},getState:()=>({isActive:G(),isDragging:I(),isCopying:z(),isInputMode:he(),targetElement:Ne(),dragBounds:st()?{x:st().x,y:st().y,width:st().width,height:st().height}:null}),updateTheme:s=>{let d=l(),b=ts(d,s);c(b);},getTheme:()=>l(),setAgent:s=>{let d=Ee.getOptions(),b={...d,...s,provider:s.provider??d?.provider,onAbort:(x,k)=>{s?.onAbort?.(x,k),bn(x,k);},onUndo:(x,k)=>{s?.onUndo?.(x,k),bn(x,k);}};Ee.setOptions(b),as(!!b.provider),ds(!!b.provider?.undo),ms(!!b.provider?.supportsFollowUp),b.provider?.checkConnection&&b.provider.checkConnection().then(x=>{cs(x);}),Ee.tryResumeSessions();},updateOptions:s=>{r={...r,...s};}}}))};/*! Bundled license information:
|
|
44
|
+
|
|
45
|
+
bippy/dist/rdt-hook-7WClMTWh.js:
|
|
46
|
+
(**
|
|
47
|
+
* @license bippy
|
|
48
|
+
*
|
|
49
|
+
* Copyright (c) Aiden Bai
|
|
50
|
+
*
|
|
51
|
+
* This source code is licensed under the MIT license found in the
|
|
52
|
+
* LICENSE file in the root directory of this source tree.
|
|
53
|
+
*)
|
|
54
|
+
|
|
55
|
+
bippy/dist/core-CoV0JPOT.js:
|
|
56
|
+
(**
|
|
57
|
+
* @license bippy
|
|
58
|
+
*
|
|
59
|
+
* Copyright (c) Aiden Bai
|
|
60
|
+
*
|
|
61
|
+
* This source code is licensed under the MIT license found in the
|
|
62
|
+
* LICENSE file in the root directory of this source tree.
|
|
63
|
+
*)
|
|
64
|
+
|
|
65
|
+
bippy/dist/source.js:
|
|
66
|
+
(**
|
|
67
|
+
* @license bippy
|
|
68
|
+
*
|
|
69
|
+
* Copyright (c) Aiden Bai
|
|
70
|
+
*
|
|
71
|
+
* This source code is licensed under the MIT license found in the
|
|
72
|
+
* LICENSE file in the root directory of this source tree.
|
|
73
|
+
*)
|
|
74
|
+
|
|
75
|
+
bippy/dist/install-hook-only-CTBENLgG.js:
|
|
76
|
+
(**
|
|
77
|
+
* @license bippy
|
|
78
|
+
*
|
|
79
|
+
* Copyright (c) Aiden Bai
|
|
80
|
+
*
|
|
81
|
+
* This source code is licensed under the MIT license found in the
|
|
82
|
+
* LICENSE file in the root directory of this source tree.
|
|
83
|
+
*)
|
|
84
|
+
|
|
85
|
+
bippy/dist/index.js:
|
|
86
|
+
(**
|
|
87
|
+
* @license bippy
|
|
88
|
+
*
|
|
89
|
+
* Copyright (c) Aiden Bai
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the MIT license found in the
|
|
92
|
+
* LICENSE file in the root directory of this source tree.
|
|
93
|
+
*)
|
|
94
|
+
*/exports.a=an;exports.b=un;exports.c=dn;exports.d=jr;exports.e=Yr;exports.f=lp;
|