react-grab 0.0.71 → 0.0.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,41 +6,41 @@ var ReactGrab=(function(exports){'use strict';/**
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- var ys=(e,t)=>e===t;var ws=Symbol("solid-track"),an={equals:ys},bo=Eo,Ne=1,zt=2,yo={owned:null,cleanups:null,context:null,owner:null},Xn={},Q=null,S=null,wt=null,ie=null,fe=null,we=null,cn=0;function ut(e,t){let n=ie,r=Q,i=e.length===0,o=t===void 0?r:t,a=i?yo:{owned:null,cleanups:null,context:o?o.context:null,owner:o},l=i?e:()=>e(()=>ve(()=>Je(a)));Q=a,ie=null;try{return Ae(l,!0)}finally{ie=n,Q=r;}}function R(e,t){t=t?Object.assign({},an,t):an;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=i=>(typeof i=="function"&&(i=i(n.value)),So(n,i));return [Co.bind(n),r]}function fo(e,t,n){let r=dn(e,t,true,Ne);vt(r);}function ce(e,t,n){let r=dn(e,t,false,Ne);vt(r);}function re(e,t,n){bo=Es;let r=dn(e,t,false,Ne);(r.user=true),we?we.push(r):vt(r);}function ae(e,t,n){n=n?Object.assign({},an,n):an;let r=dn(e,t,true,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,vt(r),Co.bind(r)}function xs(e){return e&&typeof e=="object"&&"then"in e}function un(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=Xn,h=false,g="initialValue"in o,T=typeof r=="function"&&ae(r),w=new Set,[x,A]=(o.storage||R)(o.initialValue),[$,k]=R(void 0),[C,N]=R(void 0,{equals:false}),[V,P]=R(g?"ready":"unresolved");function G(b,p,m,f){return a===b&&(a=null,f!==void 0&&(g=true),(b===l||p===l)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(f,{value:p})),l=Xn,q(p,m)),p}function q(b,p){Ae(()=>{p===void 0&&A(()=>b),P(p!==void 0?"errored":g?"ready":"unresolved"),k(p);for(let m of w.keys())m.decrement();w.clear();},false);}function U(){let b=jt,p=x(),m=$();if(m!==void 0&&!a)throw m;return ie&&!ie.user&&b,p}function K(b=true){if(b!==false&&h)return;h=false;let p=T?T():r;if(p==null||p===false){G(a,ve(x));return}let m,f=l!==Xn?l:ve(()=>{try{return i(p,{value:x(),refetching:b})}catch(_){m=_;}});if(m!==void 0){G(a,void 0,sn(m),p);return}else if(!xs(f))return G(a,f,void 0,p),f;return a=f,"v"in f?(f.s===1?G(a,f.v,void 0,p):G(a,void 0,sn(f.v),p),f):(h=true,queueMicrotask(()=>h=false),Ae(()=>{P(g?"refreshing":"pending"),N();},false),f.then(_=>G(f,_,void 0,p),_=>G(f,void 0,sn(_),p)))}Object.defineProperties(U,{state:{get:()=>V()},error:{get:()=>$()},loading:{get(){let b=V();return b==="pending"||b==="refreshing"}},latest:{get(){if(!g)return U();let b=$();if(b&&!a)throw b;return x()}}});let te=Q;return T?fo(()=>(te=Q,K(false))):K(false),[U,{refetch:b=>xo(te,()=>K(b)),mutate:A}]}function ve(e){if(ie===null)return e();let t=ie;ie=null;try{return wt?wt.untrack(e):e()}finally{ie=t;}}function Ce(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=ve(()=>t(l,i,a));return i=l,c}}function wo(e){re(()=>ve(e));}function pe(e){return Q===null||(Q.cleanups===null?Q.cleanups=[e]:Q.cleanups.push(e)),e}function xo(e,t){let n=Q,r=ie;Q=e,ie=null;try{return Ae(t,!0)}catch(i){fn(i);}finally{Q=n,ie=r;}}var[sc,mo]=R(false);var jt;function Co(){let e=S;if(this.sources&&(this.state))if((this.state)===Ne)vt(this);else {let t=fe;fe=null,Ae(()=>ln(this),false),fe=t;}if(ie){let t=this.observers?this.observers.length:0;ie.sources?(ie.sources.push(this),ie.sourceSlots.push(t)):(ie.sources=[this],ie.sourceSlots=[t]),this.observers?(this.observers.push(ie),this.observerSlots.push(ie.sources.length-1)):(this.observers=[ie],this.observerSlots=[ie.sources.length-1]);}return e&&S.sources.has(this)?this.tValue:this.value}function So(e,t,n){let r=e.value;if(!e.comparator||!e.comparator(r,t)){e.value=t;e.observers&&e.observers.length&&Ae(()=>{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?fe.push(o):we.push(o),o.observers&&ko(o)),a?o.tState=Ne:o.state=Ne);}if(fe.length>1e6)throw fe=[],new Error},false);}return t}function vt(e){if(!e.fn)return;Je(e);let t=cn;po(e,e.value,t);}function po(e,t,n){let r,i=Q,o=ie;ie=Q=e;try{r=e.fn(t);}catch(a){return e.pure&&((e.state=Ne,e.owned&&e.owned.forEach(Je),e.owned=null)),e.updatedAt=n+1,fn(a)}finally{ie=o,Q=i;}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?So(e,r):e.value=r,e.updatedAt=n);}function dn(e,t,n,r=Ne,i){let o={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Q,context:Q?Q.context:null,pure:n};if(Q===null||Q!==yo&&(Q.owned?Q.owned.push(o):Q.owned=[o]),wt);return o}function Vt(e){let t=S;if((e.state)===0)return;if((e.state)===zt)return ln(e);if(e.suspense&&ve(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<cn);){(e.state)&&n.push(e);}for(let r=n.length-1;r>=0;r--){if(e=n[r],t);if((e.state)===Ne)vt(e);else if((e.state)===zt){let i=fe;fe=null,Ae(()=>ln(e,n[0]),false),fe=i;}}}function Ae(e,t){if(fe)return e();let n=false;t||(fe=[]),we?n=true:we=[],cn++;try{let r=e();return Cs(n),r}catch(r){n||(we=null),fe=null,fn(r);}}function Cs(e){if(fe&&(Eo(fe),fe=null),e)return;let n=we;we=null,n.length&&Ae(()=>bo(n),false);}function Eo(e){for(let t=0;t<e.length;t++)Vt(e[t]);}function Es(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:Vt(r);}for(t=0;t<n;t++)Vt(e[t]);}function ln(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===Ne?i!==t&&(!i.updatedAt||i.updatedAt<cn)&&Vt(i):o===zt&&ln(i,t);}}}function ko(e){for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(!r.state)&&(r.state=zt,r.pure?fe.push(r):we.push(r),r.observers&&ko(r));}}function Je(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--)Je(e.tOwned[t]);delete e.tOwned;}if(e.owned){for(t=e.owned.length-1;t>=0;t--)Je(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 sn(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function fn(e,t=Q){let r=sn(e);throw r;}var ks=Symbol("fallback");function ho(e){for(let t=0;t<e.length;t++)e[t]();}function Ts(e,t,n={}){let r=[],i=[],o=[],a=0,l=t.length>1?[]:null;return pe(()=>ho(o)),()=>{let c=e()||[],u=c.length,h,g;return c[ws],ve(()=>{let w,x,A,$,k,C,N,V,P;if(u===0)a!==0&&(ho(o),o=[],r=[],i=[],a=0,l&&(l=[])),n.fallback&&(r=[ks],i[0]=ut(G=>(o[0]=G,n.fallback())),a=1);else if(a===0){for(i=new Array(u),g=0;g<u;g++)r[g]=c[g],i[g]=ut(T);a=u;}else {for(A=new Array(u),$=new Array(u),l&&(k=new Array(u)),C=0,N=Math.min(a,u);C<N&&r[C]===c[C];C++);for(N=a-1,V=u-1;N>=C&&V>=C&&r[N]===c[V];N--,V--)A[V]=i[N],$[V]=o[N],l&&(k[V]=l[N]);for(w=new Map,x=new Array(V+1),g=V;g>=C;g--)P=c[g],h=w.get(P),x[g]=h===void 0?-1:h,w.set(P,g);for(h=C;h<=N;h++)P=r[h],g=w.get(P),g!==void 0&&g!==-1?(A[g]=i[h],$[g]=o[h],l&&(k[g]=l[h]),g=x[g],w.set(P,g)):o[h]();for(g=C;g<u;g++)g in A?(i[g]=A[g],o[g]=$[g],l&&(l[g]=k[g],l[g](g))):i[g]=ut(T);i=i.slice(0,a=u),r=c.slice(0);}return i});function T(w){if(o[g]=w,l){let[x,A]=R(g);return l[g]=A,t(c[g],x)}return t(c[g])}}}function O(e,t){return ve(()=>e(t||{}))}var Ns=e=>`Stale read from <${e}>.`;function Gt(e){let t="fallback"in e&&{fallback:()=>e.fallback};return ae(Ts(()=>e.each,e.children,t||void 0))}function se(e){let t=e.keyed,n=ae(()=>e.when,void 0,void 0),r=t?n:ae(n,void 0,{equals:(i,o)=>!i==!o});return ae(()=>{let i=r();if(i){let o=e.children;return typeof o=="function"&&o.length>0?ve(()=>o(t?i:()=>{if(!ve(r))throw Ns("Show");return n()})):o}return e.fallback},void 0,void 0)}var ye=e=>ae(()=>e());function Is(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 g=l;for(;g<o;)u.set(n[g],g++);}let h=u.get(t[a]);if(h!=null)if(l<h&&h<o){let g=a,T=1,w;for(;++g<i&&g<o&&!((w=u.get(t[g]))==null||w!==h+T);)T++;if(T>h-l){let x=t[a];for(;l<h;)e.insertBefore(n[l++],x);}else e.replaceChild(n[l++],t[a++]);}else a++;else t[a++].remove();}}}var Ao="_$DX_DELEGATE";function _o(e,t,n,r={}){let i;return ut(o=>{i=o,t===document?e():Z(t,e(),t.firstChild?null:void 0,n);},r.owner),()=>{i(),t.textContent="";}}function ne(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 pn(e,t=window.document){let n=t[Ao]||(t[Ao]=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,Ms));}}function Me(e,t,n){(n==null?e.removeAttribute(t):e.setAttribute(t,n));}function Oe(e,t){(t==null?e.removeAttribute("class"):e.className=t);}function gn(e,t,n,r){Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;}function Ro(e,t,n){if(!t)return n?Me(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 ge(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t);}function St(e,t,n){return ve(()=>e(t,n))}function Z(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return mn(e,t,r,n);ce(i=>mn(e,t(),i,n),r);}function Ms(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 mn(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=Ct(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=Ct(e,n,r);}else {if(a==="function")return ce(()=>{let c=t();for(;typeof c=="function";)c=c();n=mn(e,c,n,r);}),()=>n;if(Array.isArray(t)){let c=[],u=n&&Array.isArray(n);if(qn(c,t,n,i))return ce(()=>n=mn(e,c,n,r,true)),()=>n;if(c.length===0){if(n=Ct(e,n,r),l)return n}else u?n.length===0?No(e,c,r):Is(e,n,c):(n&&Ct(e),No(e,c));n=c;}else if(t.nodeType){if(Array.isArray(n)){if(l)return n=Ct(e,n,r,t);Ct(e,n,null,t);}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t;}}return n}function qn(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=qn(e,l,c)||i;else if(u==="function")if(r){for(;typeof l=="function";)l=l();i=qn(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 No(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n);}function Ct(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 Io=`/*! 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-tracking: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)}.-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-\\[9px\\]{height:9px}.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-2\\.5{width:calc(var(--spacing)*2.5)}.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}.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-\\[\\#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)}.bg-cover{background-size:cover}.bg-center{background-position:50%}.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-1{padding-block:calc(var(--spacing)*1)}.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)}.pr-1{padding-right:calc(var(--spacing)*1)}.pr-1\\.5{padding-right:calc(var(--spacing)*1.5)}.pl-1\\.5{padding-left:calc(var(--spacing)*1.5)}.align-middle{vertical-align:middle}.font-\\[ui-monospace\\,\\'SFMono-Regular\\'\\,\\'SF_Mono\\'\\,\\'Menlo\\'\\,\\'Consolas\\'\\,\\'Liberation_Mono\\'\\,monospace\\]{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-\\[11\\.5px\\]{font-size:11.5px}.text-\\[12px\\]{font-size:12px}.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)}.tracking-\\[-0\\.04em\\]{--tw-tracking:-.04em;letter-spacing:-.04em}.tracking-\\[-0\\.08em\\]{--tw-tracking:-.08em;letter-spacing:-.08em}.wrap-break-word{overflow-wrap:break-word}.whitespace-normal{white-space:normal}.text-\\[\\#0C0C0C\\]{color:#0c0c0c}.text-\\[\\#47004A\\]{color:#47004a}.text-black{color:var(--color-black)}.text-label-muted{color:var(--color-label-muted)}.text-label-tag-border{color:var(--color-label-tag-border)}.text-white{color:var(--color-white)}.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\\:opacity-100:hover{opacity:1}}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes flash{0%{opacity:1;background-color:#d239c040;border-color:#d239c0}50%{opacity:1;background-color:#d239c073;border-color:#e650d2}to{opacity:1;background-color:#d239c014;border-color:#d239c080}}.react-grab-flash{animation:.4s ease-out forwards flash}.react-grab-shimmer{position:relative;overflow:hidden}.react-grab-shimmer:after{content:"";border-radius:inherit;pointer-events:none;background:linear-gradient(90deg,#0000 0%,#fff6 50%,#0000 100%) 0 0/200% 100%;animation:1.5s ease-in-out infinite shimmer;position:absolute;inset:0}@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-tracking{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 Ls=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"],Ps=e=>!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-"),$s=e=>Array.isArray(e),Fs=(e,t=false)=>{let{composed:n,target:r}=e,i,o;if(r instanceof HTMLElement&&Ps(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 $s(t)?!!(i&&t&&t.some(a=>typeof i=="string"&&a.toLowerCase()===i.toLowerCase()||a===o)):!!(i&&t&&t)},Mo=e=>Fs(e,Ls);var Oo=e=>{let t=e.tagName.toLowerCase();return !!(t==="input"||t==="textarea"||e instanceof HTMLElement&&e.isContentEditable)},Lo=(e,t)=>{let n=document.activeElement;if(n){let r=n;for(;r;){if(Oo(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(Oo(i))return true}return false};var Et="data-react-grab",Po=e=>{let t=document.querySelector(`[${Et}]`);if(t){let a=t.shadowRoot?.querySelector(`[${Et}]`);if(a instanceof HTMLDivElement&&t.shadowRoot)return a}let n=document.createElement("div");n.setAttribute(Et,"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(Et,"true"),r.appendChild(i);let o=document.body??document.documentElement;return o.appendChild(n),setTimeout(()=>{o.contains(n)||o.appendChild(n);},1e3),i};var Ds="https://react-grab.com",hn=(e,t)=>{let n=t?`&line=${t}`:"";return `${Ds}/open-file?url=${encodeURIComponent(e)}${n}`};var $o="0.0.71";var bn=["Meta","Control","Shift","Alt"],Fo='<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 Qe=(e,t,n)=>e+(t-e)*n;function Do(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=Do(e[t]))&&(r&&(r+=" "),r+=n);}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Bo(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Do(e))&&(r&&(r+=" "),r+=t);return r}var er="-",Bs=e=>{let t=zs(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return {getClassGroupId:a=>{let l=a.split(er);return l[0]===""&&l.length!==1&&l.shift(),jo(l,t)||Hs(a)},getConflictingClassGroupIds:(a,l)=>{let c=n[a]||[];return l&&r[a]?[...c,...r[a]]:c}}},jo=(e,t)=>{if(e.length===0)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),i=r?jo(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let o=e.join(er);return t.validators.find(({validator:a})=>a(o))?.classGroupId},Ho=/^\[(.+)\]$/,Hs=e=>{if(Ho.test(e)){let t=Ho.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return "arbitrary.."+n}},zs=e=>{let{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Vs(Object.entries(e.classGroups),n).forEach(([o,a])=>{Qn(a,r,o,t);}),r},Qn=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){let o=i===""?t:zo(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(js(i)){Qn(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,a])=>{Qn(a,zo(t,o),n,r);});});},zo=(e,t)=>{let n=e;return t.split(er).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r);}),n},js=e=>e.isThemeGetter,Vs=(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,Gs=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);}}},Vo="!",Ks=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,g;for(let $=0;$<l.length;$++){let k=l[$];if(u===0){if(k===i&&(r||l.slice($,$+o)===t)){c.push(l.slice(h,$)),h=$+o;continue}if(k==="/"){g=$;continue}}k==="["?u++:k==="]"&&u--;}let T=c.length===0?l:l.substring(h),w=T.startsWith(Vo),x=w?T.substring(1):T,A=g&&g>h?g-h:void 0;return {modifiers:c,hasImportantModifier:w,baseClassName:x,maybePostfixModifierPosition:A}};return n?l=>n({className:l,parseClassName:a}):a},Us=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},Ys=e=>({cache:Gs(e.cacheSize),parseClassName:Ks(e),...Bs(e)}),Xs=/\s+/,Ws=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(Xs),l="";for(let c=a.length-1;c>=0;c-=1){let u=a[c],{modifiers:h,hasImportantModifier:g,baseClassName:T,maybePostfixModifierPosition:w}=n(u),x=!!w,A=r(x?T.substring(0,w):T);if(!A){if(!x){l=u+(l.length>0?" "+l:l);continue}if(A=r(T),!A){l=u+(l.length>0?" "+l:l);continue}x=false;}let $=Us(h).join(":"),k=g?$+Vo:$,C=k+A;if(o.includes(C))continue;o.push(C);let N=i(A,x);for(let V=0;V<N.length;++V){let P=N[V];o.push(k+P);}l=u+(l.length>0?" "+l:l);}return l};function qs(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Go(t))&&(r&&(r+=" "),r+=n);return r}var Go=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Go(e[r]))&&(n&&(n+=" "),n+=t);return n};function Zs(e,...t){let n,r,i,o=a;function a(c){let u=t.reduce((h,g)=>g(h),e());return n=Ys(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=Ws(c,n);return i(c,h),h}return function(){return o(qs.apply(null,arguments))}}var le=e=>{let t=n=>n[e]||[];return t.isThemeGetter=true,t},Ko=/^\[(?:([a-z-]+):)?(.+)\]$/i,Js=/^\d+\/\d+$/,Qs=new Set(["px","full","screen"]),ea=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ta=/\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))\(.+\)$/,ra=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,oa=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,je=e=>kt(e)||Qs.has(e)||Js.test(e),et=e=>Tt(e,"length",fa),kt=e=>!!e&&!Number.isNaN(Number(e)),Jn=e=>Tt(e,"number",kt),Kt=e=>!!e&&Number.isInteger(Number(e)),ia=e=>e.endsWith("%")&&kt(e.slice(0,-1)),W=e=>Ko.test(e),tt=e=>ea.test(e),sa=new Set(["length","size","percentage"]),aa=e=>Tt(e,sa,Uo),la=e=>Tt(e,"position",Uo),ca=new Set(["image","url"]),ua=e=>Tt(e,ca,pa),da=e=>Tt(e,"",ma),Ut=()=>true,Tt=(e,t,n)=>{let r=Ko.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):false},fa=e=>ta.test(e)&&!na.test(e),Uo=()=>false,ma=e=>ra.test(e),pa=e=>oa.test(e);var ga=()=>{let e=le("colors"),t=le("spacing"),n=le("blur"),r=le("brightness"),i=le("borderColor"),o=le("borderRadius"),a=le("borderSpacing"),l=le("borderWidth"),c=le("contrast"),u=le("grayscale"),h=le("hueRotate"),g=le("invert"),T=le("gap"),w=le("gradientColorStops"),x=le("gradientColorStopPositions"),A=le("inset"),$=le("margin"),k=le("opacity"),C=le("padding"),N=le("saturate"),V=le("scale"),P=le("sepia"),G=le("skew"),q=le("space"),U=le("translate"),K=()=>["auto","contain","none"],te=()=>["auto","hidden","clip","visible","scroll"],b=()=>["auto",W,t],p=()=>[W,t],m=()=>["",je,et],f=()=>["auto",kt,W],_=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],L=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",W],M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>[kt,W];return {cacheSize:500,separator:":",theme:{colors:[Ut],spacing:[je,et],blur:["none","",tt,W],brightness:I(),borderColor:[e],borderRadius:["none","","full",tt,W],borderSpacing:p(),borderWidth:m(),contrast:I(),grayscale:j(),hueRotate:I(),invert:j(),gap:p(),gradientColorStops:[e],gradientColorStopPositions:[ia,et],inset:b(),margin:b(),opacity:I(),padding:p(),saturate:I(),scale:I(),sepia:j(),skew:I(),space:p(),translate:p()},classGroups:{aspect:[{aspect:["auto","square","video",W]}],container:["container"],columns:[{columns:[tt]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"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:[..._(),W]}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:K()}],"overscroll-x":[{"overscroll-x":K()}],"overscroll-y":[{"overscroll-y":K()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[A]}],"inset-x":[{"inset-x":[A]}],"inset-y":[{"inset-y":[A]}],start:[{start:[A]}],end:[{end:[A]}],top:[{top:[A]}],right:[{right:[A]}],bottom:[{bottom:[A]}],left:[{left:[A]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Kt,W]}],basis:[{basis:b()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",Kt,W]}],"grid-cols":[{"grid-cols":[Ut]}],"col-start-end":[{col:["auto",{span:["full",Kt,W]},W]}],"col-start":[{"col-start":f()}],"col-end":[{"col-end":f()}],"grid-rows":[{"grid-rows":[Ut]}],"row-start-end":[{row:["auto",{span:[Kt,W]},W]}],"row-start":[{"row-start":f()}],"row-end":[{"row-end":f()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",W]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W]}],gap:[{gap:[T]}],"gap-x":[{"gap-x":[T]}],"gap-y":[{"gap-y":[T]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[$]}],mx:[{mx:[$]}],my:[{my:[$]}],ms:[{ms:[$]}],me:[{me:[$]}],mt:[{mt:[$]}],mr:[{mr:[$]}],mb:[{mb:[$]}],ml:[{ml:[$]}],"space-x":[{"space-x":[q]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[q]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",W,t]}],"min-w":[{"min-w":[W,t,"min","max","fit"]}],"max-w":[{"max-w":[W,t,"none","full","min","max","fit","prose",{screen:[tt]},tt]}],h:[{h:[W,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[W,t,"auto","min","max","fit"]}],"font-size":[{text:["base",tt,et]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Jn]}],"font-family":[{font:[Ut]}],"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",W]}],"line-clamp":[{"line-clamp":["none",kt,Jn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",je,W]}],"list-image":[{"list-image":["none",W]}],"list-style-type":[{list:["none","disc","decimal",W]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",je,et]}],"underline-offset":[{"underline-offset":["auto",je,W]}],"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:p()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W]}],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",W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[..._(),la]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",aa]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ua]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"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":[k]}],"border-style":[{border:[...Y(),"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":[k]}],"divide-style":[{divide:Y()}],"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:["",...Y()]}],"outline-offset":[{"outline-offset":[je,W]}],"outline-w":[{outline:[je,et]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:m()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[je,et]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",tt,da]}],"shadow-color":[{shadow:[Ut]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...L(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":L()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",tt,W]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[g]}],saturate:[{saturate:[N]}],sepia:[{sepia:[P]}],"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":[g]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"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",W]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",W]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",W]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[V]}],"scale-x":[{"scale-x":[V]}],"scale-y":[{"scale-y":[V]}],rotate:[{rotate:[Kt,W]}],"translate-x":[{"translate-x":[U]}],"translate-y":[{"translate-y":[U]}],"skew-x":[{"skew-x":[G]}],"skew-y":[{"skew-y":[G]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",W]}],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",W]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":p()}],"scroll-mx":[{"scroll-mx":p()}],"scroll-my":[{"scroll-my":p()}],"scroll-ms":[{"scroll-ms":p()}],"scroll-me":[{"scroll-me":p()}],"scroll-mt":[{"scroll-mt":p()}],"scroll-mr":[{"scroll-mr":p()}],"scroll-mb":[{"scroll-mb":p()}],"scroll-ml":[{"scroll-ml":p()}],"scroll-p":[{"scroll-p":p()}],"scroll-px":[{"scroll-px":p()}],"scroll-py":[{"scroll-py":p()}],"scroll-ps":[{"scroll-ps":p()}],"scroll-pe":[{"scroll-pe":p()}],"scroll-pt":[{"scroll-pt":p()}],"scroll-pr":[{"scroll-pr":p()}],"scroll-pb":[{"scroll-pb":p()}],"scroll-pl":[{"scroll-pl":p()}],"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",W]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[je,et,Jn]}],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 Yo=Zs(ga);var _e=(...e)=>Yo(Bo(e));var ba=ne("<div style=overflow:visible>"),dt=e=>{let[t,n]=R(e.bounds.x),[r,i]=R(e.bounds.y),[o,a]=R(e.bounds.width),[l,c]=R(e.bounds.height),[u,h]=R(1),g=false,T=null,w=null,x=e.bounds,A=false,$=()=>e.lerpFactor!==void 0?e.lerpFactor:e.variant==="drag"?.7:.95,k=()=>{if(A)return;A=true;let C=()=>{let N=Qe(t(),x.x,$()),V=Qe(r(),x.y,$()),P=Qe(o(),x.width,$()),G=Qe(l(),x.height,$());n(N),i(V),a(P),c(G),Math.abs(N-x.x)<.5&&Math.abs(V-x.y)<.5&&Math.abs(P-x.width)<.5&&Math.abs(G-x.height)<.5?(T=null,A=false):T=requestAnimationFrame(C);};T=requestAnimationFrame(C);};return re(Ce(()=>e.bounds,C=>{if(x=C,!g){n(x.x),i(x.y),a(x.width),c(x.height),g=true;return}k();})),re(()=>{e.variant==="grabbed"&&e.createdAt&&(w=window.setTimeout(()=>{h(0);},1500));}),pe(()=>{T!==null&&(cancelAnimationFrame(T),T=null),w!==null&&(window.clearTimeout(w),w=null),A=false;}),O(se,{get when(){return e.visible!==false},get children(){var C=ba();return ce(N=>{var V=_e("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 react-grab-flash",e.variant==="processing"&&!e.isCompleted&&"border border-solid border-grab-purple/50 bg-grab-purple/8",e.variant==="processing"&&e.isCompleted&&"border border-solid react-grab-flash"),P=`${r()}px`,G=`${t()}px`,q=`${o()}px`,U=`${l()}px`,K=e.bounds.borderRadius,te=e.bounds.transform,b=e.isFading?0:u(),p=e.variant==="drag"?"layout paint size":void 0;return V!==N.e&&Oe(C,N.e=V),P!==N.t&&ge(C,"top",N.t=P),G!==N.a&&ge(C,"left",N.a=G),q!==N.o&&ge(C,"width",N.o=q),U!==N.i&&ge(C,"height",N.i=U),K!==N.n&&ge(C,"border-radius",N.n=K),te!==N.s&&ge(C,"transform",N.s=te),b!==N.h&&ge(C,"opacity",N.h=b),p!==N.r&&ge(C,"contain",N.r=p),N},{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}),C}})};var Xo=e=>{let t=e.lerpFactor??.3,n=e.convergenceThreshold??.5,[r,i]=R(e.x()),[o,a]=R(e.y()),l=e.x(),c=e.y(),u=null,h=false,g=()=>{let w=Qe(r(),l,t),x=Qe(o(),c,t);i(w),a(x),Math.abs(w-l)<n&&Math.abs(x-c)<n?u=null:u=requestAnimationFrame(g);},T=()=>{u===null&&(u=requestAnimationFrame(g));};return re(()=>{if(l=e.x(),c=e.y(),!h){i(l),a(c),h=true;return}T();}),pe(()=>{u!==null&&(cancelAnimationFrame(u),u=null);}),{x:r,y:o}};var ya=ne('<canvas class="fixed top-0 left-0 pointer-events-none z-[2147483645]">'),Wo=e=>{let t,n=null,r=0,i=0,o=1,a=Xo({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 re(()=>{l(),c();let u=()=>{l(),c();};window.addEventListener("resize",u),pe(()=>{window.removeEventListener("resize",u);});}),re(()=>{a.x(),a.y(),c();}),O(se,{get when(){return e.visible!==false},get children(){var u=ya(),h=t;return typeof h=="function"?St(h,u):t=u,u}})};var qo=e=>{let t,[n,r]=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=g=>{let T=e.getCurrentValue(),w;u&&T.endsWith(u)||T===h?w=T.slice(0,-u.length):w=T;let x="",A="";for(let k=g.resultIndex;k<g.results.length;k++){let C=g.results[k][0].transcript;g.results[k].isFinal?x+=C:A+=C;}u=A;let $=w+x+A;h=$,e.onTranscript($);},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 pe(()=>{a();}),{isListening:n,isSupported:i,start:o,stop:a,toggle:l}};var wa=ne('<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">'),Zo=e=>{let t=()=>e.size??12;return (()=>{var n=wa();return ce(r=>{var i=t(),o=t(),a=e.class;return i!==r.e&&Me(n,"width",r.e=i),o!==r.t&&Me(n,"height",r.t=o),a!==r.a&&Me(n,"class",r.a=a),r},{e:void 0,t:void 0,a:void 0}),n})()};var xa=ne('<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>'),Jo=e=>{let t=()=>e.size??12;return (()=>{var n=xa();return ce(r=>{var i=t(),o=t(),a=e.class;return i!==r.e&&Me(n,"width",r.e=i),o!==r.t&&Me(n,"height",r.t=o),a!==r.a&&Me(n,"class",r.a=a),r},{e:void 0,t:void 0,a:void 0}),n})()};var va=ne('<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>'),Ca=ne(`<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 tracking-[-0.08em] font-[ui-monospace,'SFMono-Regular','SF_Mono','Menlo','Consolas','Liberation_Mono',monospace] w-fit h-fit">`),Sa=ne(`<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 tracking-[-0.08em] font-[ui-monospace,'SFMono-Regular','SF_Mono','Menlo','Consolas','Liberation_Mono',monospace] w-fit h-fit">&gt;`),Ea=ne('<div class="absolute w-0 h-0"style="border-left:8px solid transparent;border-right:8px solid transparent">'),ka=ne('<div role=button><div class="text-black text-[12px] leading-4 shrink-0 tracking-[-0.04em] font-sans font-medium w-fit h-fit">'),Ta=ne('<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"style="background-image:linear-gradient(in oklab 180deg, oklab(100% 0 0) 0%, oklab(96.1% 0 0) 5.92%)">'),Aa=ne('<div class="[font-synthesis:none] contain-layout shrink-0 flex items-center gap-1 rounded-xs bg-white antialiased w-fit h-fit py-1 px-1.5"><div class="contain-layout shrink-0 flex items-center px-0 py-px w-fit h-[18px] rounded-[1.5px] gap-[3px]"><div class="text-black text-[12px] leading-4 shrink-0 tracking-[-0.04em] font-sans font-medium w-fit h-fit">'),Na=ne('<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">'),_a=ne('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea class="text-black text-[12px] leading-4 tracking-[-0.04em] 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>'),Ra=ne('<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]"><div class="text-black text-[12px] leading-4 tracking-[-0.04em] font-sans font-medium w-auto h-fit whitespace-normal react-grab-shimmer">'),Qo=ne('<div class="contain-layout shrink-0 flex items-center gap-px w-fit h-fit">'),Ia=ne('<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 tracking-[-0.04em] font-sans font-medium w-fit h-fit">Press</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"><div class="w-2.5 h-[9px] shrink-0 opacity-[0.99] bg-cover bg-center"style=background-image:url(https://workers.paper.design/file-assets/01K8D51Q7E2ESJTN18XN2MT96X/01KBEJ7N5GQ0ZZ7K456R42AP4V.svg)></div></div><span class="text-label-muted text-[12px] leading-4 shrink-0 tracking-[-0.04em] font-sans font-medium w-fit h-fit">to edit'),Ma=ne('<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"><div>'),Oa=ne("<button>"),La=ne('<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"><div class="w-2.5 h-[9px] shrink-0 bg-cover bg-center opacity-[0.99]"style=background-image:url(https://workers.paper.design/file-assets/01K8D51Q7E2ESJTN18XN2MT96X/01KBEJ7N5GQ0ZZ7K456R42AP4V.svg)>'),Pa=ne('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea class="text-black text-[12px] leading-4 tracking-[-0.04em] 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">'),$a=ne('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit max-w-[280px]"><div>'),Fa=ne('<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">'),ei=8,ti=4,Da=400;var yn=e=>{let[t,n]=R(false),r=()=>{n(true),e.onHoverChange?.(true);},i=()=>{n(false),e.onHoverChange?.(false);};return (()=>{var o=va(),a=o.firstChild;return gn(o,"click",e.onClick),o.addEventListener("mouseleave",i),o.addEventListener("mouseenter",r),Z(a,()=>e.tagName),Z(o,O(se,{get when(){return e.isClickable||e.forceShowIcon},get children(){return O(Zo,{size:10,get class(){return _e("text-label-tag-border transition-all duration-100",t()||e.forceShowIcon?"opacity-100 scale-100":"opacity-0 scale-75 -ml-[2px] w-0")}})}}),null),ce(l=>{var c=_e("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=_e("text-[#47004A] text-[11.5px] leading-3.5 shrink-0 w-fit h-fit",e.showMono?"tracking-[-0.08em] font-[ui-monospace,'SFMono-Regular','SF_Mono','Menlo','Consolas','Liberation_Mono',monospace]":"tracking-[-0.04em] font-medium");return c!==l.e&&Oe(o,l.e=c),u!==l.t&&Oe(a,l.t=u),l},{e:void 0,t:void 0}),o})()},ni=e=>(()=>{var t=Ca(),n=t.firstChild;return Z(n,()=>e.name),t})(),ri=()=>Sa(),Ba=e=>{let t=()=>e.color??"white";return (()=>{var n=Ea();return ce(r=>Ro(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})()},oi=e=>{let t=()=>e.hasAgent?"Selecting":e.hasParent?"Copy":"Click to copy";return (()=>{var n=ka(),r=n.firstChild;return gn(n,"click",e.onClick),Z(r,t),ce(()=>Oe(n,_e("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 tr=e=>(()=>{var t=Ta();return Z(t,()=>e.children),t})(),At=e=>{let t,n,r=false,[i,o]=R(0),[a,l]=R(0),[c,u]=R("bottom"),[h,g]=R(0),[T,w]=R(false),x=qo({onTranscript:f=>e.onInputChange?.(f),getCurrentValue:()=>e.inputValue??""}),A=()=>e.status!=="copying"&&e.status!=="copied"&&e.status!=="fading",$=()=>{if(t&&!r){let f=t.getBoundingClientRect();o(f.width),l(f.height);}},k=f=>{r=f;},C=()=>{g(f=>f+1);},N,V=()=>{w(false),N&&clearTimeout(N),N=setTimeout(()=>{w(true);},Da);},P=f=>{f.code==="Enter"&&T()&&!e.isInputExpanded&&A()&&(f.preventDefault(),f.stopPropagation(),f.stopImmediatePropagation(),e.onToggleExpand?.());};wo(()=>{$(),window.addEventListener("scroll",C,true),window.addEventListener("resize",C),window.addEventListener("keydown",P,{capture:true}),V();}),pe(()=>{window.removeEventListener("scroll",C,true),window.removeEventListener("resize",C),window.removeEventListener("keydown",P,{capture:true}),N&&clearTimeout(N);}),re(()=>{e.selectionBounds,V();}),re(()=>{e.visible&&requestAnimationFrame($);}),re(()=>{e.status,requestAnimationFrame($);}),re(()=>{e.isInputExpanded&&n?setTimeout(()=>{n?.focus();},0):x.stop();});let G=()=>{h();let f=e.selectionBounds,_=i(),Y=a();if(!f||_===0||Y===0)return {left:-9999,top:-9999,arrowLeft:0};let L=window.innerWidth,H=window.innerHeight,j=f.x+f.width/2,M=e.mouseX??j,I=f.y+f.height,X=f.y,D=M-_/2,B=I+ei+ti;D+_>L-8&&(D=L-_-8),D<8&&(D=8);let ee=Y+ei+ti;B+Y<=H-8?u("bottom"):(B=X-ee,u("top")),B<8&&(B=8);let $e=Math.max(12,Math.min(M-D,_-12));return {left:D,top:B,arrowLeft:$e}},q=f=>{if(f.stopPropagation(),f.stopImmediatePropagation(),f.code==="Enter"&&!f.shiftKey){if(f.preventDefault(),!e.inputValue?.trim())return;x.stop(),e.onSubmit?.();}else f.code==="Escape"&&(f.preventDefault(),x.stop(),e.onCancel?.());},U=f=>{let _=f.target;e.onInputChange?.(_.value);},K=()=>e.tagName||"element",te=f=>{f.stopPropagation(),f.stopImmediatePropagation(),e.filePath&&e.onOpen&&e.onOpen();},b=()=>!!(e.filePath&&e.onOpen),p=f=>{f.stopPropagation(),f.stopImmediatePropagation();},m=()=>{e.isInputExpanded&&!e.inputValue?.trim()||(x.stop(),e.onSubmit?.());};return O(se,{get when(){return ye(()=>e.visible!==false)()&&e.selectionBounds},get children(){var f=Fa(),_=f.firstChild;f.$$click=p,f.$$mousedown=p,f.$$pointerdown=p;var Y=t;return typeof Y=="function"?St(Y,f):t=f,Z(f,O(Ba,{get position(){return c()},get leftPx(){return G().arrowLeft}}),_),Z(f,O(se,{get when(){return e.status==="copied"||e.status==="fading"},get children(){var L=Aa(),H=L.firstChild,j=H.firstChild;return Z(j,()=>e.hasAgent?"Completed":"Copied"),L}}),_),Z(_,O(se,{get when(){return e.status==="copying"},get children(){var L=Ra(),H=L.firstChild,j=H.firstChild,M=j.firstChild;return Z(M,()=>e.statusText??"Grabbing\u2026"),Z(L,O(tr,{get children(){var I=_a(),X=I.firstChild,D=n;return typeof D=="function"?St(D,X):n=X,Z(I,O(se,{get when(){return e.onAbort},get children(){var B=Na();return B.$$click=ee=>{ee.stopPropagation(),e.onAbort?.();},B.$$pointerup=ee=>{ee.stopPropagation(),e.onAbort?.();},B.$$mousedown=ee=>ee.stopPropagation(),B.$$pointerdown=ee=>ee.stopPropagation(),B}}),null),ce(()=>X.value=e.inputValue??""),I}}),null),L}}),null),Z(_,O(se,{get when(){return ye(()=>!!A())()&&!e.isInputExpanded},get children(){var L=Ma(),H=L.firstChild,j=H.nextSibling,M=j.firstChild;return Z(H,O(oi,{onClick:m,shrink:true,get hasParent(){return !!e.componentName},get hasAgent(){return e.hasAgent}}),null),Z(H,O(se,{get when(){return e.componentName},get children(){var I=Qo();return Z(I,O(ni,{get name(){return e.componentName}}),null),Z(I,O(ri,{}),null),Z(I,O(yn,{get tagName(){return K()},get isClickable(){return b()},onClick:te,onHoverChange:k,showMono:true,shrink:true}),null),I}}),null),Z(H,O(se,{get when(){return !e.componentName},get children(){return O(yn,{get tagName(){return K()},get isClickable(){return b()},onClick:te,onHoverChange:k,showMono:true,shrink:true})}}),null),Z(M,O(tr,{get children(){var I=Ia(),X=I.firstChild,D=X.nextSibling;D.firstChild;return I}})),ce(I=>{var X=_e("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"),D=T()?"1fr":"0fr",B=_e("overflow-hidden min-h-0",!T()&&"w-0");return X!==I.e&&Oe(H,I.e=X),D!==I.t&&ge(j,"grid-template-rows",I.t=D),B!==I.a&&Oe(M,I.a=B),I},{e:void 0,t:void 0,a:void 0}),L}}),null),Z(_,O(se,{get when(){return ye(()=>!!A())()&&e.isInputExpanded},get children(){var L=$a(),H=L.firstChild;return Z(H,O(oi,{onClick:m,dimmed:true,shrink:true,get hasParent(){return !!e.componentName},get hasAgent(){return e.hasAgent}}),null),Z(H,O(se,{get when(){return e.componentName},get children(){var j=Qo();return Z(j,O(ni,{get name(){return e.componentName}}),null),Z(j,O(ri,{}),null),Z(j,O(yn,{get tagName(){return K()},get isClickable(){return b()},onClick:te,onHoverChange:k,showMono:true,shrink:true,forceShowIcon:true}),null),j}}),null),Z(H,O(se,{get when(){return !e.componentName},get children(){return O(yn,{get tagName(){return K()},get isClickable(){return b()},onClick:te,onHoverChange:k,showMono:true,shrink:true,forceShowIcon:true})}}),null),Z(L,O(tr,{get children(){var j=Pa(),M=j.firstChild,I=M.nextSibling;M.$$keydown=q,M.$$input=U;var X=n;return typeof X=="function"?St(X,M):n=M,Z(I,O(se,{get when(){return ye(()=>!!(e.hasAgent&&x.isSupported()))()&&!e.inputValue},get children(){var D=Oa();return gn(D,"click",x.toggle),Z(D,O(Jo,{size:11,get class(){return x.isListening()?"animate-pulse":""}})),ce(B=>{var ee=_e("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",x.isListening()?"bg-grab-purple border-grab-purple text-white":"bg-white border-[#B3B3B3] text-black"),he=x.isListening()?"Stop listening":"Start voice input";return ee!==B.e&&Oe(D,B.e=ee),he!==B.t&&Me(D,"title",B.t=he),B},{e:void 0,t:void 0}),D}}),null),Z(I,O(se,{get when(){return e.inputValue},get children(){var D=La();D.firstChild;return D.$$click=m,D}}),null),ce(()=>Me(M,"placeholder",x.isListening()?"listening...":e.hasAgent?"type to edit":"type prompt")),ce(()=>M.value=e.inputValue??""),j}}),null),ce(()=>Oe(H,_e("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"))),L}}),null),ce(L=>{var H=`${G().top}px`,j=`${G().left}px`,M=e.isInputExpanded?"auto":"none",I=e.status==="fading"?0:1,X=e.status==="copied"||e.status==="fading"?"none":void 0;return H!==L.e&&ge(f,"top",L.e=H),j!==L.t&&ge(f,"left",L.t=j),M!==L.a&&ge(f,"pointer-events",L.a=M),I!==L.o&&ge(f,"opacity",L.o=I),X!==L.i&&ge(_,"display",L.i=X),L},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),f}})};pn(["click","pointerdown","mousedown","pointerup","input","keydown"]);var za=ne('<div class="fixed z-2147483647"><button data-react-grab-selection-cursor>'),ii=e=>{let[t,n]=R(false),[r,i]=R(false);re(()=>{let a=e.visible!==false;if(e.x,e.y,i(false),a){let l=setTimeout(()=>i(true),500);pe(()=>clearTimeout(l));}});let o=a=>{a.preventDefault(),a.stopPropagation(),e.onClick?.();};return O(se,{get when(){return r()},get children(){return [O(se,{get when(){return ye(()=>!!t())()&&e.elementBounds},get children(){return O(dt,{variant:"selection",get bounds(){return e.elementBounds},visible:true})}}),(()=>{var a=za(),l=a.firstChild;return a.addEventListener("mouseleave",()=>n(false)),a.addEventListener("mouseenter",()=>n(true)),l.$$click=o,ce(c=>{var u=`${e.x}px`,h=`${e.y}px`,g=_e("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&&ge(a,"left",c.e=u),h!==c.t&&ge(a,"top",c.t=h),g!==c.a&&Oe(l,c.a=g),c},{e:void 0,t:void 0,a:void 0}),a})(),O(se,{get when(){return ye(()=>!!t())()&&e.elementBounds},get children(){return O(At,{get tagName(){return e.tagName},get selectionBounds(){return e.elementBounds},get mouseX(){return e.x},visible:true,get onSubmit(){return e.onClick}})}})]}})};pn(["click"]);var si=e=>[O(se,{get when(){return ye(()=>!!e.selectionVisible)()&&e.selectionBounds},get children(){return O(dt,{variant:"selection",get bounds(){return e.selectionBounds},get visible(){return e.selectionVisible},get isFading(){return e.selectionLabelStatus==="fading"}})}}),O(se,{get when(){return ye(()=>e.crosshairVisible===true&&e.mouseX!==void 0)()&&e.mouseY!==void 0},get children(){return O(Wo,{get mouseX(){return e.mouseX},get mouseY(){return e.mouseY},visible:true})}}),O(se,{get when(){return ye(()=>!!e.dragVisible)()&&e.dragBounds},get children(){return O(dt,{variant:"drag",get bounds(){return e.dragBounds},get visible(){return e.dragVisible}})}}),O(Gt,{get each(){return e.grabbedBoxes??[]},children:t=>O(dt,{variant:"grabbed",get bounds(){return t.bounds},get createdAt(){return t.createdAt}})}),O(Gt,{get each(){return ye(()=>!!e.agentSessions)()?Array.from(e.agentSessions.values()):[]},children:t=>[O(se,{get when(){return t.selectionBounds},get children(){return O(dt,{variant:"processing",get bounds(){return t.selectionBounds},visible:true,get isCompleted(){return !t.isStreaming}})}}),O(At,{get tagName(){return t.tagName},get componentName(){return t.componentName},get selectionBounds(){return t.selectionBounds},get mouseX(){return t.position.x},visible:true,hasAgent:true,get status(){return t.isStreaming?"copying":"copied"},get statusText(){return t.lastStatus||"Thinking\u2026"},get inputValue(){return t.context.prompt},onAbort:()=>e.onAbortSession?.(t.id)})]}),O(se,{get when(){return ye(()=>!!e.selectionLabelVisible)()&&e.selectionBounds},get children(){return O(At,{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 hasAgent(){return e.hasAgent},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},onOpen:()=>{if(e.selectionFilePath){let t=hn(e.selectionFilePath,e.selectionLineNumber);window.open(t,"_blank");}}})}}),O(Gt,{get each(){return e.labelInstances??[]},children:t=>O(At,{get tagName(){return t.tagName},get componentName(){return t.componentName},get selectionBounds(){return t.bounds},get mouseX(){return t.mouseX},visible:true,get status(){return t.status}})}),O(se,{get when(){return ye(()=>!!(e.nativeSelectionCursorVisible&&e.nativeSelectionCursorX!==void 0))()&&e.nativeSelectionCursorY!==void 0},get children(){return O(ii,{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 ci="0.5.25",vn=`bippy-${ci}`,ai=Object.defineProperty,ja=Object.prototype.hasOwnProperty,Yt=()=>{},ui=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{}},Cn=(e=Ve())=>"getFiberRoots"in e,di=false,li,Xt=(e=Ve())=>di?true:(typeof e.inject=="function"&&(li=e.inject.toString()),!!li?.includes("(injected)")),wn=new Set,mt=new Set,fi=e=>{let t=new Map,n=0,r={_instrumentationIsActive:false,_instrumentationSource:vn,checkDCE:ui,hasUnsupportedRendererAttached:false,inject(i){let o=++n;return t.set(o,i),mt.add(i),r._instrumentationIsActive||(r._instrumentationIsActive=true,wn.forEach(a=>a())),o},on:Yt,onCommitFiberRoot:Yt,onCommitFiberUnmount:Yt,onPostCommitFiberRoot:Yt,renderers:t,supportsFiber:true,supportsFlight:true};try{ai(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)=>{mt.add(c),a.renderers.set(u,c);}),xn(e));}}});let i=window.hasOwnProperty,o=!1;ai(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{xn(e);}return r},xn=e=>{try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=ui,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=vn,t._instrumentationIsActive=!1;let n=Cn(t);if(n||(t.on=Yt),t.renderers.size){t._instrumentationIsActive=!0,wn.forEach(o=>o());return}let r=t.inject,i=Xt(t);i&&!n&&(di=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=o=>{let a=r(o);return mt.add(o),i&&t.renderers.set(a,o),t._instrumentationIsActive=!0,wn.forEach(l=>l()),a};}(t.renderers.size||t._instrumentationIsActive||Xt())&&e?.();}catch{}},nr=()=>ja.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),Ve=e=>nr()?(xn(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):fi(e),mi=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),rr=()=>{try{mi()&&Ve();}catch{}};var or=0,ir=1;var sr=5;var ar=11,lr=13;var cr=15,ur=16;var dr=19;var fr=26,mr=27,pr=28,gr=30;function hr(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 yr(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=br(i,t,n);if(o)return o;i=n?null:i.sibling;}return null}var br=(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=br(r,t,n);if(i)return i;r=n?null:r.sibling;}return null},yr=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 yr(r,t,n);if(i)return i;r=n?null:r.sibling;}return null};var wr=e=>{let t=e;return typeof t=="function"?t:typeof t=="object"&&t?wr(t.type||t.render):null},Wt=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=wr(t);return r&&(r.displayName||r.name)||null};var Nt=()=>!!Ve()._instrumentationIsActive||Cn()||Xt();var xr=e=>{let t=Ve();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 Za=Object.create,vi=Object.defineProperty,Ja=Object.getOwnPropertyDescriptor,Qa=Object.getOwnPropertyNames,el=Object.getPrototypeOf,tl=Object.prototype.hasOwnProperty,nl=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),rl=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=Qa(t),o=0,a=i.length,l;o<a;o++)l=i[o],!tl.call(e,l)&&l!==n&&vi(e,l,{get:(c=>t[c]).bind(null,l),enumerable:!(r=Ja(t,l))||r.enumerable});return e},ol=(e,t,n)=>(n=e==null?{}:Za(el(e)),rl(vi(n,"default",{value:e,enumerable:true}),e)),pi=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,il=["rsc://","file:///","webpack://","webpack-internal://","node:","turbopack://","metro://","/app-pages-browser/"],gi="about://React/",sl=["<anonymous>","eval",""],al=/\.(jsx|tsx|ts|js)$/,ll=/(\.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,cl=/^\?[\w~.\-]+(?:=[^&#]*)?(?:&[\w~.\-]+(?:=[^&#]*)?)*$/,Ci="(at Server)",ul=/(^|@)\S+:\d+/,Si=/^\s*at .*(\S+:\d+|\(native\))/m,dl=/^(eval@)?(\[native code\])?$/;var Ei=(e,t)=>{{let n=e.split(`
11
- `),r=[];for(let i of n)if(/^\s*at\s+/.test(i)){let o=hi(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(ul)){let o=bi(i,void 0)[0];o&&r.push(o);}return Sr(r,t)}},ki=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]},Sr=(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 hi=(e,t)=>Sr(e.split(`
12
- `).filter(r=>!!r.match(Si)),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=ki(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 bi=(e,t)=>Sr(e.split(`
13
- `).filter(r=>!r.match(dl)),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=ki(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 fl=nl((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 b=0;b<o.length;b++){let p=o.charCodeAt(b);a[b]=p,l[p]=b;}function c(b,p){let m=0,f=0,_=0;do{let L=b.next();_=l[L],m|=(_&31)<<f,f+=5;}while(_&32);let Y=m&1;return m>>>=1,Y&&(m=-2147483648|-m),p+m}function u(b,p,m){let f=p-m;f=f<0?-f<<1|1:f<<1;do{let _=f&31;f>>>=5,f>0&&(_|=32),b.write(a[_]);}while(f>0);return p}function h(b,p){return b.pos>=p?false:b.peek()!==r}let g=1024*16,T=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(b){return Buffer.from(b.buffer,b.byteOffset,b.byteLength).toString()}}:{decode(b){let p="";for(let m=0;m<b.length;m++)p+=String.fromCharCode(b[m]);return p}};class w{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(g);}write(p){let{buffer:m}=this;m[this.pos++]=p,this.pos===g&&(this.out+=T.decode(m),this.pos=0);}flush(){let{buffer:p,out:m,pos:f}=this;return f>0?m+T.decode(p.subarray(0,f)):m}}class x{constructor(p){this.pos=0,this.buffer=p;}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(p){let{buffer:m,pos:f}=this,_=m.indexOf(p,f);return _===-1?m.length:_}}let A=[];function $(b){let{length:p}=b,m=new x(b),f=[],_=[],Y=0;for(;m.pos<p;m.pos++){Y=c(m,Y);let L=c(m,0);if(!h(m,p)){let D=_.pop();D[2]=Y,D[3]=L;continue}let H=c(m,0),j=c(m,0),M=j&1,I=M?[Y,L,0,0,H,c(m,0)]:[Y,L,0,0,H],X=A;if(h(m,p)){X=[];do{let D=c(m,0);X.push(D);}while(h(m,p))}I.vars=X,f.push(I),_.push(I);}return f}function k(b){let p=new w;for(let m=0;m<b.length;)m=C(b,m,p,[0]);return p.flush()}function C(b,p,m,f){let _=b[p],{0:Y,1:L,2:H,3:j,4:M,vars:I}=_;p>0&&m.write(r),f[0]=u(m,Y,f[0]),u(m,L,0),u(m,M,0);let X=_.length===6?1:0;u(m,X,0),_.length===6&&u(m,_[5],0);for(let D of I)u(m,D,0);for(p++;p<b.length;){let D=b[p],{0:B,1:ee}=D;if(B>H||B===H&&ee>=j)break;p=C(b,p,m,f);}return m.write(r),f[0]=u(m,H,f[0]),u(m,j,0),p}function N(b){let{length:p}=b,m=new x(b),f=[],_=[],Y=0,L=0,H=0,j=0,M=0,I=0,X=0,D=0;do{let B=m.indexOf(";"),ee=0;for(;m.pos<B;m.pos++){if(ee=c(m,ee),!h(m,B)){let be=_.pop();be[2]=Y,be[3]=ee;continue}let he=c(m,0),$e=he&1,nt=he&2,De=he&4,Mt=null,rt=A,Be;if($e){let be=c(m,L);H=c(m,L===be?H:0),L=be,Be=[Y,ee,0,0,be,H];}else Be=[Y,ee,0,0];if(Be.isScope=!!De,nt){let be=j,ke=M;j=c(m,j);let He=be===j;M=c(m,He?M:0),I=c(m,He&&ke===M?I:0),Mt=[j,M,I];}if(Be.callsite=Mt,h(m,B)){rt=[];do{X=Y,D=ee;let be=c(m,0),ke;if(be<-1){ke=[[c(m,0)]];for(let He=-1;He>be;He--){let ue=X;X=c(m,X),D=c(m,X===ue?D:0);let Le=c(m,0);ke.push([Le,X,D]);}}else ke=[[be]];rt.push(ke);}while(h(m,B))}Be.bindings=rt,f.push(Be),_.push(Be);}Y++,m.pos=B+1;}while(m.pos<p);return f}function V(b){if(b.length===0)return "";let p=new w;for(let m=0;m<b.length;)m=P(b,m,p,[0,0,0,0,0,0,0]);return p.flush()}function P(b,p,m,f){let _=b[p],{0:Y,1:L,2:H,3:j,isScope:M,callsite:I,bindings:X}=_;f[0]<Y?(G(m,f[0],Y),f[0]=Y,f[1]=0):p>0&&m.write(r),f[1]=u(m,_[1],f[1]);let D=(_.length===6?1:0)|(I?2:0)|(M?4:0);if(u(m,D,0),_.length===6){let{4:B,5:ee}=_;B!==f[2]&&(f[3]=0),f[2]=u(m,B,f[2]),f[3]=u(m,ee,f[3]);}if(I){let{0:B,1:ee,2:he}=_.callsite;B===f[4]?ee!==f[5]&&(f[6]=0):(f[5]=0,f[6]=0),f[4]=u(m,B,f[4]),f[5]=u(m,ee,f[5]),f[6]=u(m,he,f[6]);}if(X)for(let B of X){B.length>1&&u(m,-B.length,0);let ee=B[0][0];u(m,ee,0);let he=Y,$e=L;for(let nt=1;nt<B.length;nt++){let De=B[nt];he=u(m,De[1],he),$e=u(m,De[2],$e),u(m,De[0],0);}}for(p++;p<b.length;){let B=b[p],{0:ee,1:he}=B;if(ee>H||ee===H&&he>=j)break;p=P(b,p,m,f);}return f[0]<H?(G(m,f[0],H),f[0]=H,f[1]=0):m.write(r),f[1]=u(m,j,f[1]),p}function G(b,p,m){do b.write(i);while(++p<m)}function q(b){let{length:p}=b,m=new x(b),f=[],_=0,Y=0,L=0,H=0,j=0;do{let M=m.indexOf(";"),I=[],X=true,D=0;for(_=0;m.pos<M;){let B;_=c(m,_),_<D&&(X=false),D=_,h(m,M)?(Y=c(m,Y),L=c(m,L),H=c(m,H),h(m,M)?(j=c(m,j),B=[_,Y,L,H,j]):B=[_,Y,L,H]):B=[_],I.push(B),m.pos++;}X||U(I),f.push(I),m.pos=M+1;}while(m.pos<=p);return f}function U(b){b.sort(K);}function K(b,p){return b[0]-p[0]}function te(b){let p=new w,m=0,f=0,_=0,Y=0;for(let L=0;L<b.length;L++){let H=b[L];if(L>0&&p.write(i),H.length===0)continue;let j=0;for(let M=0;M<H.length;M++){let I=H[M];M>0&&p.write(r),j=u(p,I[0],j),I.length!==1&&(m=u(p,I[1],m),f=u(p,I[2],f),_=u(p,I[3],_),I.length!==4&&(Y=u(p,I[4],Y)));}}return p.flush()}n.decode=q,n.decodeGeneratedRanges=N,n.decodeOriginalScopes=$,n.encode=te,n.encodeGeneratedRanges=V,n.encodeOriginalScopes=k,Object.defineProperty(n,"__esModule",{value:true});});}),Ti=ol(fl()),Ai=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,ml=/^data:application\/json[^,]+base64,/,pl=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,Ni=typeof WeakRef<"u",qt=new Map,Sn=new Map,gl=e=>Ni&&e instanceof WeakRef,yi=(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},hl=(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 yi(r.map.mappings,r.map.sources,i,o)}return yi(e.mappings,e.sources,t-1,n)},bl=(e,t)=>{let n=t.split(`
14
- `),r;for(let o=n.length-1;o>=0&&!r;o--){let a=n[o].match(pl);a&&(r=a[1]||a[2]);}if(!r)return null;let i=Ai.test(r);if(!(ml.test(r)||i||r.startsWith("/"))){let o=e.split("/");o[o.length-1]=r,r=o.join("/");}return r},yl=e=>({file:e.file,mappings:(0, Ti.decode)(e.mappings),names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,version:3}),wl=e=>{let t=e.sections.map(({map:r,offset:i})=>({map:{...r,mappings:(0, Ti.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}},wi=e=>{if(!e)return false;let t=e.trim();if(!t)return false;let n=t.match(Ai);if(!n)return true;let r=n[0].toLowerCase();return r==="http:"||r==="https:"},xl=async(e,t=fetch)=>{if(!wi(e))return null;let n;try{n=await(await t(e)).text();}catch{return null}if(!n)return null;let r=bl(e,n);if(!r||!wi(r))return null;try{let i=await t(r),o=await i.json();return "sections"in o?wl(o):yl(o)}catch{return null}},vl=async(e,t=true,n)=>{if(t&&qt.has(e)){let o=qt.get(e);if(o==null)return null;if(gl(o)){let a=o.deref();if(a)return a;qt.delete(e);}else return o}if(t&&Sn.has(e))return Sn.get(e);let r=xl(e,n);t&&Sn.set(e,r);let i=await r;return t&&Sn.delete(e),t&&(i===null?qt.set(e,null):qt.set(e,Ni?new WeakRef(i):i)),i},Cl=async(e,t=true,n)=>await Promise.all(e.map(async r=>{if(!r.fileName)return r;let i=await vl(r.fileName,t,n);if(!i||typeof r.lineNumber!="number"||typeof r.columnNumber!="number")return r;let o=hl(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})),Sl=e=>e._debugStack instanceof Error&&typeof e._debugStack?.stack=="string",El=()=>{let e=Ve();for(let t of [...Array.from(mt),...Array.from(e.renderers.values())]){let n=t.currentDispatcherRef;if(n&&typeof n=="object")return "H"in n?n.H:n.current}return null},xi=e=>{for(let t of mt){let n=t.currentDispatcherRef;n&&typeof n=="object"&&("H"in n?n.H=e:n.current=e);}},Ge=e=>`
15
- in ${e}`,kl=(e,t)=>{let n=Ge(e);return t&&(n+=` (at ${t})`),n},vr=false,Cr=(e,t)=>{if(!e||vr)return "";let n=Error.prepareStackTrace;Error.prepareStackTrace=void 0,vr=true;let r=El();xi(null);let i=console.error,o=console.warn;console.error=()=>{},console.warn=()=>{};try{let c={DetermineComponentFrameRoot(){let T;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(x){T=x;}Reflect.construct(e,[],w);}else {try{w.call();}catch(x){T=x;}e.call(w.prototype);}}else {try{throw Error()}catch(x){T=x;}let w=e();w&&typeof w.catch=="function"&&w.catch(()=>{});}}catch(w){if(w instanceof Error&&T instanceof Error&&typeof w.stack=="string")return [w.stack,T.stack]}return [null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot",Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name")?.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});let[h,g]=c.DetermineComponentFrameRoot();if(h&&g){let T=h.split(`
16
- `),w=g.split(`
17
- `),x=0,A=0;for(;x<T.length&&!T[x].includes("DetermineComponentFrameRoot");)x++;for(;A<w.length&&!w[A].includes("DetermineComponentFrameRoot");)A++;if(x===T.length||A===w.length)for(x=T.length-1,A=w.length-1;x>=1&&A>=0&&T[x]!==w[A];)A--;for(;x>=1&&A>=0;x--,A--)if(T[x]!==w[A]){if(x!==1||A!==1)do if(x--,A--,A<0||T[x]!==w[A]){let $=`
18
- ${T[x].replace(" at new "," at ")}`,k=Wt(e);return k&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",k)),$}while(x>=1&&A>=0);break}}}finally{vr=false,Error.prepareStackTrace=n,xi(r),console.error=i,console.warn=o;}let a=e?Wt(e):"";return a?Ge(a):""},Tl=(e,t)=>{let n=e.tag,r="";switch(n){case pr:r=Ge("Activity");break;case ir:r=Cr(e.type,true);break;case ar:r=Cr(e.type.render,false);break;case or:case cr:r=Cr(e.type,false);break;case sr:case fr:case mr:r=Ge(e.type);break;case ur:r=Ge("Lazy");break;case lr:r=e.child!==t&&t!==null?Ge("Suspense Fallback"):Ge("Suspense");break;case dr:r=Ge("SuspenseList");break;case gr:r=Ge("ViewTransition");break;default:return ""}return r},Al=e=>{try{let t="",n=e,r=null;do{t+=Tl(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+=kl(a.name,a.env));}r=n,n=n.return;}while(n);return t}catch(t){return t instanceof Error?`
9
+ var Ms=(e,t)=>e===t;var Ao=Symbol("solid-track"),fn={equals:Ms},_o=Oo,$e=1,Xt=2,No={owned:null,cleanups:null,context:null,owner:null},rr={},J=null,S=null,Tt=null,ce=null,ye=null,Ee=null,gn=0;function Ze(e,t){let n=ce,r=J,i=e.length===0,o=t===void 0?r:t,a=i?No:{owned:null,cleanups:null,context:o?o.context:null,owner:o},l=i?e:()=>e(()=>ke(()=>it(a)));J=a,ce=null;try{return Pe(l,!0)}finally{ce=n,J=r;}}function N(e,t){t=t?Object.assign({},fn,t):fn;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=i=>(typeof i=="function"&&(i=i(n.value)),Mo(n,i));return [Lo.bind(n),r]}function So(e,t,n){let r=bn(e,t,true,$e);_t(r);}function me(e,t,n){let r=bn(e,t,false,$e);_t(r);}function re(e,t,n){_o=Ds;let r=bn(e,t,false,$e);(r.user=true),Ee?Ee.push(r):_t(r);}function ae(e,t,n){n=n?Object.assign({},fn,n):fn;let r=bn(e,t,true,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,_t(r),Lo.bind(r)}function Os(e){return e&&typeof e=="object"&&"then"in e}function hn(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=rr,g=false,p="initialValue"in o,A=typeof r=="function"&&ae(r),x=new Set,[C,_]=(o.storage||N)(o.initialValue),[D,T]=N(void 0),[v,R]=N(void 0,{equals:false}),[H,M]=N(p?"ready":"unresolved");function z(h,m,f,y){return a===h&&(a=null,y!==void 0&&(p=true),(h===l||m===l)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(y,{value:m})),l=rr,U(m,f)),m}function U(h,m){Pe(()=>{m===void 0&&_(()=>h),M(m!==void 0?"errored":p?"ready":"unresolved"),T(m);for(let f of x.keys())f.decrement();x.clear();},false);}function K(){let h=Wt,m=C(),f=D();if(f!==void 0&&!a)throw f;return ce&&!ce.user&&h,m}function Y(h=true){if(h!==false&&g)return;g=false;let m=A?A():r;if(m==null||m===false){z(a,ke(C));return}let f,y=l!==rr?l:ke(()=>{try{return i(m,{value:C(),refetching:h})}catch(O){f=O;}});if(f!==void 0){z(a,void 0,dn(f),m);return}else if(!Os(y))return z(a,y,void 0,m),y;return a=y,"v"in y?(y.s===1?z(a,y.v,void 0,m):z(a,void 0,dn(y.v),m),y):(g=true,queueMicrotask(()=>g=false),Pe(()=>{M(p?"refreshing":"pending"),R();},false),y.then(O=>z(y,O,void 0,m),O=>z(y,void 0,dn(O),m)))}Object.defineProperties(K,{state:{get:()=>H()},error:{get:()=>D()},loading:{get(){let h=H();return h==="pending"||h==="refreshing"}},latest:{get(){if(!p)return K();let h=D();if(h&&!a)throw h;return C()}}});let ne=J;return A?So(()=>(ne=J,Y(false))):Y(false),[K,{refetch:h=>Ro(ne,()=>Y(h)),mutate:_}]}function ke(e){if(ce===null)return e();let t=ce;ce=null;try{return Tt?Tt.untrack(e):e()}finally{ce=t;}}function Re(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=ke(()=>t(l,i,a));return i=l,c}}function sr(e){re(()=>ke(e));}function be(e){return J===null||(J.cleanups===null?J.cleanups=[e]:J.cleanups.push(e)),e}function Ro(e,t){let n=J,r=ce;J=e,ce=null;try{return Pe(t,!0)}catch(i){yn(i);}finally{J=n,ce=r;}}var[Ec,Eo]=N(false);var Wt;function Lo(){let e=S;if(this.sources&&(this.state))if((this.state)===$e)_t(this);else {let t=ye;ye=null,Pe(()=>mn(this),false),ye=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 Mo(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?ye.push(o):Ee.push(o),o.observers&&Po(o)),a?o.tState=$e:o.state=$e);}if(ye.length>1e6)throw ye=[],new Error},false);}return t}function _t(e){if(!e.fn)return;it(e);let t=gn;ko(e,e.value,t);}function ko(e,t,n){let r,i=J,o=ce;ce=J=e;try{r=e.fn(t);}catch(a){return e.pure&&((e.state=$e,e.owned&&e.owned.forEach(it),e.owned=null)),e.updatedAt=n+1,yn(a)}finally{ce=o,J=i;}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Mo(e,r):e.value=r,e.updatedAt=n);}function bn(e,t,n,r=$e,i){let o={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:J,context:J?J.context:null,pure:n};if(J===null||J!==No&&(J.owned?J.owned.push(o):J.owned=[o]),Tt);return o}function qt(e){let t=S;if((e.state)===0)return;if((e.state)===Xt)return mn(e);if(e.suspense&&ke(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<gn);){(e.state)&&n.push(e);}for(let r=n.length-1;r>=0;r--){if(e=n[r],t);if((e.state)===$e)_t(e);else if((e.state)===Xt){let i=ye;ye=null,Pe(()=>mn(e,n[0]),false),ye=i;}}}function Pe(e,t){if(ye)return e();let n=false;t||(ye=[]),Ee?n=true:Ee=[],gn++;try{let r=e();return $s(n),r}catch(r){n||(Ee=null),ye=null,yn(r);}}function $s(e){if(ye&&(Oo(ye),ye=null),e)return;let n=Ee;Ee=null,n.length&&Pe(()=>_o(n),false);}function Oo(e){for(let t=0;t<e.length;t++)qt(e[t]);}function Ds(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:qt(r);}for(t=0;t<n;t++)qt(e[t]);}function mn(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===$e?i!==t&&(!i.updatedAt||i.updatedAt<gn)&&qt(i):o===Xt&&mn(i,t);}}}function Po(e){for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(!r.state)&&(r.state=Xt,r.pure?ye.push(r):Ee.push(r),r.observers&&Po(r));}}function it(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--)it(e.tOwned[t]);delete e.tOwned;}if(e.owned){for(t=e.owned.length-1;t>=0;t--)it(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 dn(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function yn(e,t=J){let r=dn(e);throw r;}var ir=Symbol("fallback");function pn(e){for(let t=0;t<e.length;t++)e[t]();}function Bs(e,t,n={}){let r=[],i=[],o=[],a=0,l=t.length>1?[]:null;return be(()=>pn(o)),()=>{let c=e()||[],u=c.length,g,p;return c[Ao],ke(()=>{let x,C,_,D,T,v,R,H,M;if(u===0)a!==0&&(pn(o),o=[],r=[],i=[],a=0,l&&(l=[])),n.fallback&&(r=[ir],i[0]=Ze(z=>(o[0]=z,n.fallback())),a=1);else if(a===0){for(i=new Array(u),p=0;p<u;p++)r[p]=c[p],i[p]=Ze(A);a=u;}else {for(_=new Array(u),D=new Array(u),l&&(T=new Array(u)),v=0,R=Math.min(a,u);v<R&&r[v]===c[v];v++);for(R=a-1,H=u-1;R>=v&&H>=v&&r[R]===c[H];R--,H--)_[H]=i[R],D[H]=o[R],l&&(T[H]=l[R]);for(x=new Map,C=new Array(H+1),p=H;p>=v;p--)M=c[p],g=x.get(M),C[p]=g===void 0?-1:g,x.set(M,p);for(g=v;g<=R;g++)M=r[g],p=x.get(M),p!==void 0&&p!==-1?(_[p]=i[g],D[p]=o[g],l&&(T[p]=l[g]),p=C[p],x.set(M,p)):o[g]();for(p=v;p<u;p++)p in _?(i[p]=_[p],o[p]=D[p],l&&(l[p]=T[p],l[p](p))):i[p]=Ze(A);i=i.slice(0,a=u),r=c.slice(0);}return i});function A(x){if(o[p]=x,l){let[C,_]=N(p);return l[p]=_,t(c[p],C)}return t(c[p])}}}function Hs(e,t,n={}){let r=[],i=[],o=[],a=[],l=0,c;return be(()=>pn(o)),()=>{let u=e()||[],g=u.length;return u[Ao],ke(()=>{if(g===0)return l!==0&&(pn(o),o=[],r=[],i=[],l=0,a=[]),n.fallback&&(r=[ir],i[0]=Ze(A=>(o[0]=A,n.fallback())),l=1),i;for(r[0]===ir&&(o[0](),o=[],r=[],i=[],l=0),c=0;c<g;c++)c<r.length&&r[c]!==u[c]?a[c](()=>u[c]):c>=r.length&&(i[c]=Ze(p));for(;c<r.length;c++)o[c]();return l=a.length=o.length=g,r=u.slice(0),i=i.slice(0,l)});function p(A){o[c]=A;let[x,C]=N(u[c]);return a[c]=C,t(x,c)}}}function I(e,t){return ke(()=>e(t||{}))}var js=e=>`Stale read from <${e}>.`;function wn(e){let t="fallback"in e&&{fallback:()=>e.fallback};return ae(Bs(()=>e.each,e.children,t||void 0))}function ar(e){let t="fallback"in e&&{fallback:()=>e.fallback};return ae(Hs(()=>e.each,e.children,t||void 0))}function le(e){let t=e.keyed,n=ae(()=>e.when,void 0,void 0),r=t?n:ae(n,void 0,{equals:(i,o)=>!i==!o});return ae(()=>{let i=r();if(i){let o=e.children;return typeof o=="function"&&o.length>0?ke(()=>o(t?i:()=>{if(!ke(r))throw js("Show");return n()})):o}return e.fallback},void 0,void 0)}var Te=e=>ae(()=>e());function Us(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 g=o<r?l?n[l-1].nextSibling:n[o-l]:c;for(;l<o;)e.insertBefore(n[l++],g);}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 g=t[--i].nextSibling;e.insertBefore(n[l++],t[a++].nextSibling),e.insertBefore(n[--o],g),t[i]=n[o];}else {if(!u){u=new Map;let p=l;for(;p<o;)u.set(n[p],p++);}let g=u.get(t[a]);if(g!=null)if(l<g&&g<o){let p=a,A=1,x;for(;++p<i&&p<o&&!((x=u.get(t[p]))==null||x!==g+A);)A++;if(A>g-l){let C=t[a];for(;l<g;)e.insertBefore(n[l++],C);}else e.replaceChild(n[l++],t[a++]);}else a++;else t[a++].remove();}}}var Fo="_$DX_DELEGATE";function Bo(e,t,n,r={}){let i;return Ze(o=>{i=o,t===document?e():G(t,e(),t.firstChild?null:void 0,n);},r.owner),()=>{i(),t.textContent="";}}function Z(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 vn(e,t=window.document){let n=t[Fo]||(t[Fo]=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,Ks));}}function Ae(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 Rt(e,t,n,r){Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;}function Ho(e,t,n){if(!t)return n?Ae(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 Ce(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t);}function It(e,t,n){return ke(()=>e(t,n))}function G(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return xn(e,t,r,n);me(i=>xn(e,t(),i,n),r);}function Ks(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 xn(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=Nt(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=Nt(e,n,r);}else {if(a==="function")return me(()=>{let c=t();for(;typeof c=="function";)c=c();n=xn(e,c,n,r);}),()=>n;if(Array.isArray(t)){let c=[],u=n&&Array.isArray(n);if(lr(c,t,n,i))return me(()=>n=xn(e,c,n,r,true)),()=>n;if(c.length===0){if(n=Nt(e,n,r),l)return n}else u?n.length===0?Do(e,c,r):Us(e,n,c):(n&&Nt(e),Do(e,c));n=c;}else if(t.nodeType){if(Array.isArray(n)){if(l)return n=Nt(e,n,r,t);Nt(e,n,null,t);}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t;}}return n}function lr(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=lr(e,l,c)||i;else if(u==="function")if(r){for(;typeof l=="function";)l=l();i=lr(e,Array.isArray(l)?l:[l],Array.isArray(c)?c:[c])||i;}else e.push(l),i=true;else {let g=String(l);c&&c.nodeType===3&&c.data===g?e.push(c):e.push(document.createTextNode(g));}}return i}function Do(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n);}function Nt(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 zo=`/*! 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-tracking: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}.-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}.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-1{padding-block:calc(var(--spacing)*1)}.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)}.pr-1{padding-right:calc(var(--spacing)*1)}.pr-1\\.5{padding-right:calc(var(--spacing)*1.5)}.pl-1\\.5{padding-left:calc(var(--spacing)*1.5)}.align-middle{vertical-align:middle}.font-\\[ui-monospace\\,\\'SFMono-Regular\\'\\,\\'SF_Mono\\'\\,\\'Menlo\\'\\,\\'Consolas\\'\\,\\'Liberation_Mono\\'\\,monospace\\]{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-\\[11\\.5px\\]{font-size:11.5px}.text-\\[11px\\]{font-size:11px}.text-\\[12px\\]{font-size:12px}.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)}.tracking-\\[-0\\.04em\\]{--tw-tracking:-.04em;letter-spacing:-.04em}.tracking-\\[-0\\.08em\\]{--tw-tracking:-.08em;letter-spacing:-.08em}.wrap-break-word{overflow-wrap:break-word}.whitespace-normal{white-space:normal}.text-\\[\\#0C0C0C\\]{color:#0c0c0c}.text-\\[\\#47004A\\]{color:#47004a}.text-\\[\\#71717a\\]{color:#71717a}.text-\\[\\#B91C1C\\]{color:#b91c1c}.text-\\[\\#c00002\\]{color:#c00002}.text-black{color:var(--color-black)}.text-label-muted{color:var(--color-label-muted)}.text-label-tag-border{color:var(--color-label-tag-border)}.text-white{color:var(--color-white)}.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-tracking{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 Xs=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"],Ws=e=>!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-"),qs=e=>Array.isArray(e),Zs=(e,t=false)=>{let{composed:n,target:r}=e,i,o;if(r instanceof HTMLElement&&Ws(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 qs(t)?!!(i&&t&&t.some(a=>typeof i=="string"&&a.toLowerCase()===i.toLowerCase()||a===o)):!!(i&&t&&t)},jo=e=>Zs(e,Xs);var Vo=e=>{let t=e.tagName.toLowerCase();return !!(t==="input"||t==="textarea"||e instanceof HTMLElement&&e.isContentEditable)},Go=(e,t)=>{let n=document.activeElement;if(n){let r=n;for(;r;){if(Vo(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(Vo(i))return true}return false};var Lt="data-react-grab",Uo=e=>{let t=document.querySelector(`[${Lt}]`);if(t){let a=t.shadowRoot?.querySelector(`[${Lt}]`);if(a instanceof HTMLDivElement&&t.shadowRoot)return a}let n=document.createElement("div");n.setAttribute(Lt,"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(Lt,"true"),r.appendChild(i);let o=document.body??document.documentElement;return o.appendChild(n),setTimeout(()=>{o.contains(n)||o.appendChild(n);},1e3),i};var Js="https://react-grab.com",Cn=(e,t)=>{let n=t?`&line=${t}`:"";return `${Js}/open-file?url=${encodeURIComponent(e)}${n}`};var Ko="0.0.72";var Sn=["Meta","Control","Shift","Alt"],Yo='<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 st=(e,t,n)=>e+(t-e)*n;function Xo(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=Xo(e[t]))&&(r&&(r+=" "),r+=n);}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Wo(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Xo(e))&&(r&&(r+=" "),r+=t);return r}var fr="-",Qs=e=>{let t=ta(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return {getClassGroupId:a=>{let l=a.split(fr);return l[0]===""&&l.length!==1&&l.shift(),Jo(l,t)||ea(a)},getConflictingClassGroupIds:(a,l)=>{let c=n[a]||[];return l&&r[a]?[...c,...r[a]]:c}}},Jo=(e,t)=>{if(e.length===0)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),i=r?Jo(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let o=e.join(fr);return t.validators.find(({validator:a})=>a(o))?.classGroupId},qo=/^\[(.+)\]$/,ea=e=>{if(qo.test(e)){let t=qo.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return "arbitrary.."+n}},ta=e=>{let{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return ra(Object.entries(e.classGroups),n).forEach(([o,a])=>{dr(a,r,o,t);}),r},dr=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){let o=i===""?t:Zo(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(na(i)){dr(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,a])=>{dr(a,Zo(t,o),n,r);});});},Zo=(e,t)=>{let n=e;return t.split(fr).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r);}),n},na=e=>e.isThemeGetter,ra=(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,oa=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);}}},Qo="!",ia=e=>{let{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],o=t.length,a=l=>{let c=[],u=0,g=0,p;for(let D=0;D<l.length;D++){let T=l[D];if(u===0){if(T===i&&(r||l.slice(D,D+o)===t)){c.push(l.slice(g,D)),g=D+o;continue}if(T==="/"){p=D;continue}}T==="["?u++:T==="]"&&u--;}let A=c.length===0?l:l.substring(g),x=A.startsWith(Qo),C=x?A.substring(1):A,_=p&&p>g?p-g:void 0;return {modifiers:c,hasImportantModifier:x,baseClassName:C,maybePostfixModifierPosition:_}};return n?l=>n({className:l,parseClassName:a}):a},sa=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},aa=e=>({cache:oa(e.cacheSize),parseClassName:ia(e),...Qs(e)}),la=/\s+/,ca=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(la),l="";for(let c=a.length-1;c>=0;c-=1){let u=a[c],{modifiers:g,hasImportantModifier:p,baseClassName:A,maybePostfixModifierPosition:x}=n(u),C=!!x,_=r(C?A.substring(0,x):A);if(!_){if(!C){l=u+(l.length>0?" "+l:l);continue}if(_=r(A),!_){l=u+(l.length>0?" "+l:l);continue}C=false;}let D=sa(g).join(":"),T=p?D+Qo:D,v=T+_;if(o.includes(v))continue;o.push(v);let R=i(_,C);for(let H=0;H<R.length;++H){let M=R[H];o.push(T+M);}l=u+(l.length>0?" "+l:l);}return l};function ua(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=ei(t))&&(r&&(r+=" "),r+=n);return r}var ei=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ei(e[r]))&&(n&&(n+=" "),n+=t);return n};function da(e,...t){let n,r,i,o=a;function a(c){let u=t.reduce((g,p)=>p(g),e());return n=aa(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 g=ca(c,n);return i(c,g),g}return function(){return o(ua.apply(null,arguments))}}var pe=e=>{let t=n=>n[e]||[];return t.isThemeGetter=true,t},ti=/^\[(?:([a-z-]+):)?(.+)\]$/i,fa=/^\d+\/\d+$/,ma=new Set(["px","full","screen"]),pa=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ga=/\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$/,ha=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ba=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ya=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Je=e=>Mt(e)||ma.has(e)||fa.test(e),at=e=>Ot(e,"length",Ta),Mt=e=>!!e&&!Number.isNaN(Number(e)),ur=e=>Ot(e,"number",Mt),Zt=e=>!!e&&Number.isInteger(Number(e)),wa=e=>e.endsWith("%")&&Mt(e.slice(0,-1)),X=e=>ti.test(e),lt=e=>pa.test(e),xa=new Set(["length","size","percentage"]),va=e=>Ot(e,xa,ni),Ca=e=>Ot(e,"position",ni),Sa=new Set(["image","url"]),Ea=e=>Ot(e,Sa,_a),ka=e=>Ot(e,"",Aa),Jt=()=>true,Ot=(e,t,n)=>{let r=ti.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):false},Ta=e=>ga.test(e)&&!ha.test(e),ni=()=>false,Aa=e=>ba.test(e),_a=e=>ya.test(e);var Na=()=>{let e=pe("colors"),t=pe("spacing"),n=pe("blur"),r=pe("brightness"),i=pe("borderColor"),o=pe("borderRadius"),a=pe("borderSpacing"),l=pe("borderWidth"),c=pe("contrast"),u=pe("grayscale"),g=pe("hueRotate"),p=pe("invert"),A=pe("gap"),x=pe("gradientColorStops"),C=pe("gradientColorStopPositions"),_=pe("inset"),D=pe("margin"),T=pe("opacity"),v=pe("padding"),R=pe("saturate"),H=pe("scale"),M=pe("sepia"),z=pe("skew"),U=pe("space"),K=pe("translate"),Y=()=>["auto","contain","none"],ne=()=>["auto","hidden","clip","visible","scroll"],h=()=>["auto",X,t],m=()=>[X,t],f=()=>["",Je,at],y=()=>["auto",Mt,X],O=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],te=()=>["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",X],E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>[Mt,X];return {cacheSize:500,separator:":",theme:{colors:[Jt],spacing:[Je,at],blur:["none","",lt,X],brightness:$(),borderColor:[e],borderRadius:["none","","full",lt,X],borderSpacing:m(),borderWidth:f(),contrast:$(),grayscale:oe(),hueRotate:$(),invert:oe(),gap:m(),gradientColorStops:[e],gradientColorStopPositions:[wa,at],inset:h(),margin:h(),opacity:$(),padding:m(),saturate:$(),scale:$(),sepia:oe(),skew:$(),space:m(),translate:m()},classGroups:{aspect:[{aspect:["auto","square","video",X]}],container:["container"],columns:[{columns:[lt]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"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:[...O(),X]}],overflow:[{overflow:ne()}],"overflow-x":[{"overflow-x":ne()}],"overflow-y":[{"overflow-y":ne()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[_]}],"inset-x":[{"inset-x":[_]}],"inset-y":[{"inset-y":[_]}],start:[{start:[_]}],end:[{end:[_]}],top:[{top:[_]}],right:[{right:[_]}],bottom:[{bottom:[_]}],left:[{left:[_]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Zt,X]}],basis:[{basis:h()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",X]}],grow:[{grow:oe()}],shrink:[{shrink:oe()}],order:[{order:["first","last","none",Zt,X]}],"grid-cols":[{"grid-cols":[Jt]}],"col-start-end":[{col:["auto",{span:["full",Zt,X]},X]}],"col-start":[{"col-start":y()}],"col-end":[{"col-end":y()}],"grid-rows":[{"grid-rows":[Jt]}],"row-start-end":[{row:["auto",{span:[Zt,X]},X]}],"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",X]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",X]}],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:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[D]}],mx:[{mx:[D]}],my:[{my:[D]}],ms:[{ms:[D]}],me:[{me:[D]}],mt:[{mt:[D]}],mr:[{mr:[D]}],mb:[{mb:[D]}],ml:[{ml:[D]}],"space-x":[{"space-x":[U]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[U]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",X,t]}],"min-w":[{"min-w":[X,t,"min","max","fit"]}],"max-w":[{"max-w":[X,t,"none","full","min","max","fit","prose",{screen:[lt]},lt]}],h:[{h:[X,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[X,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[X,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[X,t,"auto","min","max","fit"]}],"font-size":[{text:["base",lt,at]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ur]}],"font-family":[{font:[Jt]}],"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",X]}],"line-clamp":[{"line-clamp":["none",Mt,ur]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Je,X]}],"list-image":[{"list-image":["none",X]}],"list-style-type":[{list:["none","disc","decimal",X]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Je,at]}],"underline-offset":[{"underline-offset":["auto",Je,X]}],"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",X]}],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",X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...O(),Ca]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",va]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ea]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],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":[T]}],"border-style":[{border:[...W(),"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":[T]}],"divide-style":[{divide:W()}],"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:["",...W()]}],"outline-offset":[{"outline-offset":[Je,X]}],"outline-w":[{outline:[Je,at]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:f()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-w":[{"ring-offset":[Je,at]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",lt,ka]}],"shadow-color":[{shadow:[Jt]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":[...te(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":te()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",lt,X]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[p]}],saturate:[{saturate:[R]}],sepia:[{sepia:[M]}],"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":[g]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[R]}],"backdrop-sepia":[{"backdrop-sepia":[M]}],"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",X]}],duration:[{duration:$()}],ease:[{ease:["linear","in","out","in-out",X]}],delay:[{delay:$()}],animate:[{animate:["none","spin","ping","pulse","bounce",X]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[H]}],"scale-x":[{"scale-x":[H]}],"scale-y":[{"scale-y":[H]}],rotate:[{rotate:[Zt,X]}],"translate-x":[{"translate-x":[K]}],"translate-y":[{"translate-y":[K]}],"skew-x":[{"skew-x":[z]}],"skew-y":[{"skew-y":[z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",X]}],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",X]}],"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",X]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Je,at,ur]}],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 ri=da(Na);var Fe=(...e)=>ri(Wo(e));var Ia=Z("<div style=overflow:visible>"),gt=e=>{let[t,n]=N(e.bounds.x),[r,i]=N(e.bounds.y),[o,a]=N(e.bounds.width),[l,c]=N(e.bounds.height),[u,g]=N(1),p=false,A=null,x=null,C=e.bounds,_=false,D=()=>e.lerpFactor!==void 0?e.lerpFactor:e.variant==="drag"?.7:.95,T=()=>{if(_)return;_=true;let v=()=>{let R=st(t(),C.x,D()),H=st(r(),C.y,D()),M=st(o(),C.width,D()),z=st(l(),C.height,D());n(R),i(H),a(M),c(z),Math.abs(R-C.x)<.5&&Math.abs(H-C.y)<.5&&Math.abs(M-C.width)<.5&&Math.abs(z-C.height)<.5?(A=null,_=false):A=requestAnimationFrame(v);};A=requestAnimationFrame(v);};return re(Re(()=>e.bounds,v=>{if(C=v,!p){n(C.x),i(C.y),a(C.width),c(C.height),p=true;return}T();})),re(()=>{e.variant==="grabbed"&&e.createdAt&&(x=window.setTimeout(()=>{g(0);},1500));}),be(()=>{A!==null&&(cancelAnimationFrame(A),A=null),x!==null&&(window.clearTimeout(x),x=null),_=false;}),I(le,{get when(){return e.visible!==false},get children(){var v=Ia();return me(R=>{var H=Fe("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"),M=`${r()}px`,z=`${t()}px`,U=`${o()}px`,K=`${l()}px`,Y=e.bounds.borderRadius,ne=e.bounds.transform,h=e.isFading?0:u(),m=e.variant==="drag"?"layout paint size":void 0;return H!==R.e&&He(v,R.e=H),M!==R.t&&Ce(v,"top",R.t=M),z!==R.a&&Ce(v,"left",R.a=z),U!==R.o&&Ce(v,"width",R.o=U),K!==R.i&&Ce(v,"height",R.i=K),Y!==R.n&&Ce(v,"border-radius",R.n=Y),ne!==R.s&&Ce(v,"transform",R.s=ne),h!==R.h&&Ce(v,"opacity",R.h=h),m!==R.r&&Ce(v,"contain",R.r=m),R},{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}),v}})};var oi=e=>{let t=e.lerpFactor??.3,n=e.convergenceThreshold??.5,[r,i]=N(e.x()),[o,a]=N(e.y()),l=e.x(),c=e.y(),u=null,g=false,p=()=>{let x=st(r(),l,t),C=st(o(),c,t);i(x),a(C),Math.abs(x-l)<n&&Math.abs(C-c)<n?u=null:u=requestAnimationFrame(p);},A=()=>{u===null&&(u=requestAnimationFrame(p));};return re(()=>{if(l=e.x(),c=e.y(),!g){i(l),a(c),g=true;return}A();}),be(()=>{u!==null&&(cancelAnimationFrame(u),u=null);}),{x:r,y:o}};var La=Z('<canvas class="fixed top-0 left-0 pointer-events-none z-[2147483645]">'),ii=e=>{let t,n=null,r=0,i=0,o=1,a=oi({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 re(()=>{l(),c();let u=()=>{l(),c();};window.addEventListener("resize",u),be(()=>{window.removeEventListener("resize",u);});}),re(()=>{a.x(),a.y(),c();}),I(le,{get when(){return e.visible!==false},get children(){var u=La(),g=t;return typeof g=="function"?It(g,u):t=u,u}})};var si=e=>{let t,[n,r]=N(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="",g="";t.onresult=p=>{let A=e.getCurrentValue(),x;u&&A.endsWith(u)||A===g&&u?x=A.slice(0,-u.length):x=A;let C="",_="";for(let T=p.resultIndex;T<p.results.length;T++){let v=p.results[T][0].transcript;p.results[T].isFinal?C+=v:_+=v;}u=_;let D=x+C+_;g=D,e.onTranscript(D);},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 Ma=Z('<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">'),ai=e=>{let t=()=>e.size??12;return (()=>{var n=Ma();return me(r=>{var i=t(),o=t(),a=e.class;return i!==r.e&&Ae(n,"width",r.e=i),o!==r.t&&Ae(n,"height",r.t=o),a!==r.a&&Ae(n,"class",r.a=a),r},{e:void 0,t:void 0,a:void 0}),n})()};var Oa=Z('<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>'),li=e=>{let t=()=>e.size??12;return (()=>{var n=Oa();return me(r=>{var i=t(),o=t(),a=e.class;return i!==r.e&&Ae(n,"width",r.e=i),o!==r.t&&Ae(n,"height",r.t=o),a!==r.a&&Ae(n,"class",r.a=a),r},{e:void 0,t:void 0,a:void 0}),n})()};var Pa=Z('<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>'),En=e=>{let t=()=>e.size??12;return (()=>{var n=Pa();return me(r=>{var i=t(),o=t()*19/22,a=e.class;return i!==r.e&&Ae(n,"width",r.e=i),o!==r.t&&Ae(n,"height",r.t=o),a!==r.a&&Ae(n,"class",r.a=a),r},{e:void 0,t:void 0,a:void 0}),n})()};var $a=Z('<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>'),Fa=Z(`<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 tracking-[-0.08em] font-[ui-monospace,'SFMono-Regular','SF_Mono','Menlo','Consolas','Liberation_Mono',monospace] w-fit h-fit">`),Da=Z(`<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 tracking-[-0.08em] font-[ui-monospace,'SFMono-Regular','SF_Mono','Menlo','Consolas','Liberation_Mono',monospace] w-fit h-fit">&gt;`),Ba=Z('<div class="absolute w-0 h-0"style="border-left:8px solid transparent;border-right:8px solid transparent">'),Ha=Z('<div role=button><div class="text-black text-[12px] leading-4 shrink-0 tracking-[-0.04em] font-sans font-medium w-fit h-fit">'),za=Z('<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%)">'),ja=Z('<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 tracking-[-0.04em] 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 tracking-[-0.04em] font-sans font-medium">Yes'),Va=Z('<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 tracking-[-0.04em] font-sans font-medium w-fit h-fit">Discard prompt?'),Ga=Z('<div class="[font-synthesis:none] contain-layout shrink-0 flex items-center gap-1 rounded-xs bg-white antialiased w-fit h-fit py-1 px-1.5"><div class="contain-layout shrink-0 flex items-center px-0 py-px w-fit h-[18px] rounded-[1.5px] gap-[3px]"><div class="text-black text-[12px] leading-4 shrink-0 tracking-[-0.04em] font-sans font-medium w-fit h-fit">'),Ua=Z('<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">'),Ka=Z('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea class="text-black text-[12px] leading-4 tracking-[-0.04em] 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>'),Ya=Z('<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 tracking-[-0.04em] font-sans font-medium w-auto h-fit whitespace-normal text-[#71717a] animate-pulse">'),ci=Z('<div class="contain-layout shrink-0 flex items-center gap-px w-fit h-fit">'),Xa=Z('<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 tracking-[-0.04em] font-sans font-medium w-fit h-fit">Press</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"></div><span class="text-label-muted text-[12px] leading-4 shrink-0 tracking-[-0.04em] font-sans font-medium w-fit h-fit">to edit'),Wa=Z('<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>'),qa=Z("<button>"),Za=Z('<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">'),Ja=Z('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea class="text-black text-[12px] leading-4 tracking-[-0.04em] 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">'),Qa=Z('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit max-w-[280px]"><div>'),el=Z('<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">'),ui=8,di=4,tl=400;var kn=e=>{let[t,n]=N(false),r=()=>{n(true),e.onHoverChange?.(true);},i=()=>{n(false),e.onHoverChange?.(false);};return (()=>{var o=$a(),a=o.firstChild;return Rt(o,"click",e.onClick),o.addEventListener("mouseleave",i),o.addEventListener("mouseenter",r),G(a,()=>e.tagName),G(o,I(le,{get when(){return e.isClickable||e.forceShowIcon},get children(){return I(ai,{size:10,get class(){return Fe("text-label-tag-border transition-all duration-100",t()||e.forceShowIcon?"opacity-100 scale-100":"opacity-0 scale-75 -ml-[2px] w-0")}})}}),null),me(l=>{var c=Fe("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=Fe("text-[#47004A] text-[11.5px] leading-3.5 shrink-0 w-fit h-fit",e.showMono?"tracking-[-0.08em] font-[ui-monospace,'SFMono-Regular','SF_Mono','Menlo','Consolas','Liberation_Mono',monospace]":"tracking-[-0.04em] 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})()},fi=e=>(()=>{var t=Fa(),n=t.firstChild;return G(n,()=>e.name),t})(),mi=()=>Da(),nl=e=>{let t=()=>e.color??"white";return (()=>{var n=Ba();return me(r=>Ho(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})()},pi=e=>{let t=()=>e.hasAgent?"Selecting":e.hasParent?"Copy":"Click to copy";return (()=>{var n=Ha(),r=n.firstChild;return Rt(n,"click",e.onClick),G(r,t),me(()=>He(n,Fe("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 Tn=e=>(()=>{var t=za();return G(t,()=>e.children),t})(),rl=e=>{let t=n=>{n.code==="Enter"?(n.preventDefault(),n.stopPropagation(),e.onConfirm?.()):n.code==="Escape"&&(n.preventDefault(),n.stopPropagation(),e.onCancel?.());};return sr(()=>{window.addEventListener("keydown",t,{capture:true});}),be(()=>{window.removeEventListener("keydown",t,{capture:true});}),(()=>{var n=Va();n.firstChild;return G(n,I(Tn,{get children(){var i=ja(),o=i.firstChild,a=o.nextSibling;a.firstChild;return Rt(o,"click",e.onCancel),Rt(a,"click",e.onConfirm),G(a,I(En,{size:10,class:"text-[#c00002]"}),null),i}}),null),n})()},Pt=e=>{let t,n,r=false,i=null,o=null,[a,l]=N(0),[c,u]=N(0),[g,p]=N("bottom"),[A,x]=N(0),[C,_]=N(false),[D,T]=N(false),v=si({onTranscript:E=>e.onInputChange?.(E),getCurrentValue:()=>e.inputValue??""}),R=()=>e.status!=="copying"&&e.status!=="copied"&&e.status!=="fading",H=()=>{if(t&&!r){let E=t.getBoundingClientRect();l(E.width),u(E.height);}},M=E=>{r=E;},z=()=>{x(E=>E+1);},U,K=()=>{_(false),U&&clearTimeout(U),U=setTimeout(()=>{_(true);},tl);},Y=E=>{E.code==="Enter"&&C()&&!e.isInputExpanded&&R()&&(E.preventDefault(),E.stopPropagation(),E.stopImmediatePropagation(),e.onToggleExpand?.());};sr(()=>{H(),window.addEventListener("scroll",z,true),window.addEventListener("resize",z),window.addEventListener("keydown",Y,{capture:true}),K();}),be(()=>{window.removeEventListener("scroll",z,true),window.removeEventListener("resize",z),window.removeEventListener("keydown",Y,{capture:true}),U&&clearTimeout(U);}),re(()=>{let E=`${e.tagName??""}:${e.componentName??""}`;E!==o&&(o=E,K());}),re(()=>{e.visible&&requestAnimationFrame(H);}),re(()=>{e.status,requestAnimationFrame(H);}),re(()=>{e.isInputExpanded&&n?setTimeout(()=>{n?.focus();},0):v.stop();});let ne=()=>{A();let E=e.selectionBounds,$=a(),V=c(),j=$>0&&V>0,F=E&&E.width>0&&E.height>0;if(!j||!F)return i??{left:-9999,top:-9999,arrowLeft:0};let B=window.innerWidth,ie=window.innerHeight,ee=E.x+E.width/2,de=e.mouseX??ee,ue=E.y+E.height,he=E.y,fe=de-$/2,we=ue+ui+di;fe+$>B-8&&(fe=B-$-8),fe<8&&(fe=8);let xe=V+ui+di;we+V<=ie-8?p("bottom"):(we=he-xe,p("top")),we<8&&(we=8);let Le=Math.max(12,Math.min(de-fe,$-12)),De={left:fe,top:we,arrowLeft:Le};return i=De,T(true),De},h=E=>{if(E.stopPropagation(),E.stopImmediatePropagation(),E.code==="Enter"&&!E.shiftKey){if(E.preventDefault(),!e.inputValue?.trim())return;v.stop(),e.onSubmit?.();}else E.code==="Escape"&&(E.preventDefault(),v.stop(),e.onCancel?.());},m=E=>{let $=E.target;e.onInputChange?.($.value);},f=()=>e.tagName||"element",y=E=>{E.stopPropagation(),E.stopImmediatePropagation(),e.filePath&&e.onOpen&&e.onOpen();},O=()=>!!(e.filePath&&e.onOpen),W=E=>{E.stopPropagation(),E.stopImmediatePropagation();},te=E=>{W(E),R()&&e.isInputExpanded&&!e.isPendingDismiss&&n&&n.focus();},Q=()=>{e.isInputExpanded&&!e.inputValue?.trim()||(v.stop(),e.onSubmit?.());},oe=()=>D()&&(e.status==="copied"||e.status==="fading");return I(le,{get when(){return Te(()=>e.visible!==false)()&&(e.selectionBounds||oe())},get children(){var E=el(),$=E.firstChild;E.$$click=W,E.$$mousedown=W,E.$$pointerdown=te;var V=t;return typeof V=="function"?It(V,E):t=E,G(E,I(nl,{get position(){return g()},get leftPx(){return ne().arrowLeft}}),$),G(E,I(le,{get when(){return e.status==="copied"||e.status==="fading"},get children(){var j=Ga(),F=j.firstChild,B=F.firstChild;return G(B,()=>e.hasAgent?"Completed":"Copied"),j}}),$),G($,I(le,{get when(){return e.status==="copying"},get children(){var j=Ya(),F=j.firstChild,B=F.firstChild,ie=B.firstChild;return G(ie,()=>e.statusText??"Grabbing\u2026"),G(j,I(Tn,{get children(){var ee=Ka(),de=ee.firstChild,ue=n;return typeof ue=="function"?It(ue,de):n=de,G(ee,I(le,{get when(){return e.onAbort},get children(){var he=Ua();return he.$$click=fe=>{fe.stopPropagation(),e.onAbort?.();},he.$$pointerup=fe=>{fe.stopPropagation(),e.onAbort?.();},he.$$mousedown=fe=>fe.stopPropagation(),he.$$pointerdown=fe=>fe.stopPropagation(),he}}),null),me(()=>de.value=e.inputValue??""),ee}}),null),j}}),null),G($,I(le,{get when(){return Te(()=>!!R())()&&!e.isInputExpanded},get children(){var j=Wa(),F=j.firstChild,B=F.nextSibling,ie=B.firstChild;return G(F,I(pi,{onClick:Q,shrink:true,get hasParent(){return !!e.componentName},get hasAgent(){return e.hasAgent}}),null),G(F,I(le,{get when(){return e.componentName},get children(){var ee=ci();return G(ee,I(fi,{get name(){return e.componentName}}),null),G(ee,I(mi,{}),null),G(ee,I(kn,{get tagName(){return f()},get isClickable(){return O()},onClick:y,onHoverChange:M,showMono:true,shrink:true}),null),ee}}),null),G(F,I(le,{get when(){return !e.componentName},get children(){return I(kn,{get tagName(){return f()},get isClickable(){return O()},onClick:y,onHoverChange:M,showMono:true,shrink:true})}}),null),G(ie,I(Tn,{get children(){var ee=Xa(),de=ee.firstChild,ue=de.nextSibling;return G(ue,I(En,{size:10,class:"opacity-[0.99] text-black"})),ee}})),me(ee=>{var de=Fe("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=C()?"1fr":"0fr",he=Fe("overflow-hidden min-h-0",!C()&&"w-0");return de!==ee.e&&He(F,ee.e=de),ue!==ee.t&&Ce(B,"grid-template-rows",ee.t=ue),he!==ee.a&&He(ie,ee.a=he),ee},{e:void 0,t:void 0,a:void 0}),j}}),null),G($,I(le,{get when(){return Te(()=>!!(R()&&e.isInputExpanded))()&&!e.isPendingDismiss},get children(){var j=Qa(),F=j.firstChild;return G(F,I(pi,{onClick:Q,dimmed:true,shrink:true,get hasParent(){return !!e.componentName},get hasAgent(){return e.hasAgent}}),null),G(F,I(le,{get when(){return e.componentName},get children(){var B=ci();return G(B,I(fi,{get name(){return e.componentName}}),null),G(B,I(mi,{}),null),G(B,I(kn,{get tagName(){return f()},get isClickable(){return O()},onClick:y,onHoverChange:M,showMono:true,shrink:true,forceShowIcon:true}),null),B}}),null),G(F,I(le,{get when(){return !e.componentName},get children(){return I(kn,{get tagName(){return f()},get isClickable(){return O()},onClick:y,onHoverChange:M,showMono:true,shrink:true,forceShowIcon:true})}}),null),G(j,I(Tn,{get children(){var B=Ja(),ie=B.firstChild,ee=ie.nextSibling;ie.$$keydown=h,ie.$$input=m;var de=n;return typeof de=="function"?It(de,ie):n=ie,G(ee,I(le,{get when(){return Te(()=>!!(e.hasAgent&&v.isSupported()))()&&!e.inputValue},get children(){var ue=qa();return Rt(ue,"click",v.toggle),G(ue,I(li,{size:11,get class(){return v.isListening()?"animate-pulse":""}})),me(he=>{var fe=Fe("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",v.isListening()?"bg-grab-purple border-grab-purple text-white":"bg-white border-[#B3B3B3] text-black"),we=v.isListening()?"Stop listening":"Start voice input";return fe!==he.e&&He(ue,he.e=fe),we!==he.t&&Ae(ue,"title",he.t=we),he},{e:void 0,t:void 0}),ue}}),null),G(ee,I(le,{get when(){return e.inputValue},get children(){var ue=Za();return ue.$$click=Q,G(ue,I(En,{size:10,class:"opacity-[0.99] text-black"})),ue}}),null),me(()=>Ae(ie,"placeholder",v.isListening()?"listening...":e.hasAgent&&e.isAgentConnected?"type to edit":"type prompt")),me(()=>ie.value=e.inputValue??""),B}}),null),me(()=>He(F,Fe("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"))),j}}),null),G($,I(le,{get when(){return e.isPendingDismiss},get children(){return I(rl,{get onConfirm(){return e.onConfirmDismiss},get onCancel(){return e.onCancelDismiss}})}}),null),me(j=>{var F=`${ne().top}px`,B=`${ne().left}px`,ie=e.isInputExpanded?"auto":"none",ee=e.status==="fading"?0:1,de=e.status==="copied"||e.status==="fading"?"none":void 0;return F!==j.e&&Ce(E,"top",j.e=F),B!==j.t&&Ce(E,"left",j.t=B),ie!==j.a&&Ce(E,"pointer-events",j.a=ie),ee!==j.o&&Ce(E,"opacity",j.o=ee),de!==j.i&&Ce($,"display",j.i=de),j},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),E}})};vn(["click","pointerdown","mousedown","pointerup","input","keydown"]);var il=Z('<div class="fixed z-2147483647"><button data-react-grab-selection-cursor>'),gi=e=>{let[t,n]=N(false),[r,i]=N(false);re(()=>{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 I(le,{get when(){return r()},get children(){return [I(le,{get when(){return Te(()=>!!t())()&&e.elementBounds},get children(){return I(gt,{variant:"selection",get bounds(){return e.elementBounds},visible:true})}}),(()=>{var a=il(),l=a.firstChild;return a.addEventListener("mouseleave",()=>n(false)),a.addEventListener("mouseenter",()=>n(true)),l.$$click=o,me(c=>{var u=`${e.x}px`,g=`${e.y}px`,p=Fe("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&&Ce(a,"left",c.e=u),g!==c.t&&Ce(a,"top",c.t=g),p!==c.a&&He(l,c.a=p),c},{e:void 0,t:void 0,a:void 0}),a})(),I(le,{get when(){return Te(()=>!!t())()&&e.elementBounds},get children(){return I(Pt,{get tagName(){return e.tagName},get selectionBounds(){return e.elementBounds},get mouseX(){return e.x},visible:true,get onSubmit(){return e.onClick}})}})]}})};vn(["click"]);var hi=e=>{let t=ae(()=>e.agentSessions?Array.from(e.agentSessions.values()):[]);return [I(le,{get when(){return Te(()=>!!e.selectionVisible)()&&e.selectionBounds},get children(){return I(gt,{variant:"selection",get bounds(){return e.selectionBounds},get visible(){return e.selectionVisible},get isFading(){return e.selectionLabelStatus==="fading"}})}}),I(le,{get when(){return Te(()=>e.crosshairVisible===true&&e.mouseX!==void 0)()&&e.mouseY!==void 0},get children(){return I(ii,{get mouseX(){return e.mouseX},get mouseY(){return e.mouseY},visible:true})}}),I(le,{get when(){return Te(()=>!!e.dragVisible)()&&e.dragBounds},get children(){return I(gt,{variant:"drag",get bounds(){return e.dragBounds},get visible(){return e.dragVisible}})}}),I(wn,{get each(){return e.grabbedBoxes??[]},children:n=>I(gt,{variant:"grabbed",get bounds(){return n.bounds},get createdAt(){return n.createdAt}})}),I(ar,{get each(){return t()},children:n=>[I(le,{get when(){return n().selectionBounds},get children(){return I(gt,{variant:"processing",get bounds(){return n().selectionBounds},visible:true,get isCompleted(){return !n().isStreaming}})}}),I(Pt,{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},onAbort:()=>e.onAbortSession?.(n().id)})]}),I(le,{get when(){return Te(()=>!!e.selectionLabelVisible)()&&e.selectionBounds},get children(){return I(Pt,{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 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=Cn(e.selectionFilePath,e.selectionLineNumber);window.open(n,"_blank");}}})}}),I(wn,{get each(){return e.labelInstances??[]},children:n=>I(Pt,{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}})}),I(le,{get when(){return Te(()=>!!(e.nativeSelectionCursorVisible&&e.nativeSelectionCursorX!==void 0))()&&e.nativeSelectionCursorY!==void 0},get children(){return I(gi,{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 wi="0.5.25",Nn=`bippy-${wi}`,bi=Object.defineProperty,sl=Object.prototype.hasOwnProperty,Qt=()=>{},xi=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{}},Rn=(e=Qe())=>"getFiberRoots"in e,vi=false,yi,en=(e=Qe())=>vi?true:(typeof e.inject=="function"&&(yi=e.inject.toString()),!!yi?.includes("(injected)")),An=new Set,bt=new Set,Ci=e=>{let t=new Map,n=0,r={_instrumentationIsActive:false,_instrumentationSource:Nn,checkDCE:xi,hasUnsupportedRendererAttached:false,inject(i){let o=++n;return t.set(o,i),bt.add(i),r._instrumentationIsActive||(r._instrumentationIsActive=true,An.forEach(a=>a())),o},on:Qt,onCommitFiberRoot:Qt,onCommitFiberUnmount:Qt,onPostCommitFiberRoot:Qt,renderers:t,supportsFiber:true,supportsFlight:true};try{bi(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)=>{bt.add(c),a.renderers.set(u,c);}),_n(e));}}});let i=window.hasOwnProperty,o=!1;bi(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{_n(e);}return r},_n=e=>{try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=xi,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=Nn,t._instrumentationIsActive=!1;let n=Rn(t);if(n||(t.on=Qt),t.renderers.size){t._instrumentationIsActive=!0,An.forEach(o=>o());return}let r=t.inject,i=en(t);i&&!n&&(vi=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=o=>{let a=r(o);return bt.add(o),i&&t.renderers.set(a,o),t._instrumentationIsActive=!0,An.forEach(l=>l()),a};}(t.renderers.size||t._instrumentationIsActive||en())&&e?.();}catch{}},mr=()=>sl.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),Qe=e=>mr()?(_n(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):Ci(e),Si=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),pr=()=>{try{Si()&&Qe();}catch{}};var gr=0,hr=1;var br=5;var yr=11,wr=13;var xr=15,vr=16;var Cr=19;var Sr=26,Er=27,kr=28,Tr=30;function Ar(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 Nr(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=_r(i,t,n);if(o)return o;i=n?null:i.sibling;}return null}var _r=(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=_r(r,t,n);if(i)return i;r=n?null:r.sibling;}return null},Nr=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 Nr(r,t,n);if(i)return i;r=n?null:r.sibling;}return null};var Rr=e=>{let t=e;return typeof t=="function"?t:typeof t=="object"&&t?Rr(t.type||t.render):null},tn=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=Rr(t);return r&&(r.displayName||r.name)||null};var $t=()=>!!Qe()._instrumentationIsActive||Rn()||en();var Ir=e=>{let t=Qe();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 gl=Object.create,Ii=Object.defineProperty,hl=Object.getOwnPropertyDescriptor,bl=Object.getOwnPropertyNames,yl=Object.getPrototypeOf,wl=Object.prototype.hasOwnProperty,xl=(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],!wl.call(e,l)&&l!==n&&Ii(e,l,{get:(c=>t[c]).bind(null,l),enumerable:!(r=hl(t,l))||r.enumerable});return e},Cl=(e,t,n)=>(n=e==null?{}:gl(yl(e)),vl(Ii(n,"default",{value:e,enumerable:true}),e)),Ei=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,Sl=["rsc://","file:///","webpack://","webpack-internal://","node:","turbopack://","metro://","/app-pages-browser/"],ki="about://React/",El=["<anonymous>","eval",""],kl=/\.(jsx|tsx|ts|js)$/,Tl=/(\.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,Al=/^\?[\w~.\-]+(?:=[^&#]*)?(?:&[\w~.\-]+(?:=[^&#]*)?)*$/,Li="(at Server)",_l=/(^|@)\S+:\d+/,Mi=/^\s*at .*(\S+:\d+|\(native\))/m,Nl=/^(eval@)?(\[native code\])?$/;var Oi=(e,t)=>{{let n=e.split(`
11
+ `),r=[];for(let i of n)if(/^\s*at\s+/.test(i)){let o=Ti(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(_l)){let o=Ai(i,void 0)[0];o&&r.push(o);}return Or(r,t)}},Pi=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]},Or=(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 Ti=(e,t)=>Or(e.split(`
12
+ `).filter(r=>!!r.match(Mi)),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=Pi(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 Ai=(e,t)=>Or(e.split(`
13
+ `).filter(r=>!r.match(Nl)),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=Pi(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 Rl=xl((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 h=0;h<o.length;h++){let m=o.charCodeAt(h);a[h]=m,l[m]=h;}function c(h,m){let f=0,y=0,O=0;do{let te=h.next();O=l[te],f|=(O&31)<<y,y+=5;}while(O&32);let W=f&1;return f>>>=1,W&&(f=-2147483648|-f),m+f}function u(h,m,f){let y=m-f;y=y<0?-y<<1|1:y<<1;do{let O=y&31;y>>>=5,y>0&&(O|=32),h.write(a[O]);}while(y>0);return m}function g(h,m){return h.pos>=m?false:h.peek()!==r}let p=1024*16,A=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(h){return Buffer.from(h.buffer,h.byteOffset,h.byteLength).toString()}}:{decode(h){let m="";for(let f=0;f<h.length;f++)m+=String.fromCharCode(h[f]);return m}};class x{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 C{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,O=f.indexOf(m,y);return O===-1?f.length:O}}let _=[];function D(h){let{length:m}=h,f=new C(h),y=[],O=[],W=0;for(;f.pos<m;f.pos++){W=c(f,W);let te=c(f,0);if(!g(f,m)){let j=O.pop();j[2]=W,j[3]=te;continue}let Q=c(f,0),oe=c(f,0),E=oe&1,$=E?[W,te,0,0,Q,c(f,0)]:[W,te,0,0,Q],V=_;if(g(f,m)){V=[];do{let j=c(f,0);V.push(j);}while(g(f,m))}$.vars=V,y.push($),O.push($);}return y}function T(h){let m=new x;for(let f=0;f<h.length;)f=v(h,f,m,[0]);return m.flush()}function v(h,m,f,y){let O=h[m],{0:W,1:te,2:Q,3:oe,4:E,vars:$}=O;m>0&&f.write(r),y[0]=u(f,W,y[0]),u(f,te,0),u(f,E,0);let V=O.length===6?1:0;u(f,V,0),O.length===6&&u(f,O[5],0);for(let j of $)u(f,j,0);for(m++;m<h.length;){let j=h[m],{0:F,1:B}=j;if(F>Q||F===Q&&B>=oe)break;m=v(h,m,f,y);}return f.write(r),y[0]=u(f,Q,y[0]),u(f,oe,0),m}function R(h){let{length:m}=h,f=new C(h),y=[],O=[],W=0,te=0,Q=0,oe=0,E=0,$=0,V=0,j=0;do{let F=f.indexOf(";"),B=0;for(;f.pos<F;f.pos++){if(B=c(f,B),!g(f,F)){let xe=O.pop();xe[2]=W,xe[3]=B;continue}let ie=c(f,0),ee=ie&1,de=ie&2,ue=ie&4,he=null,fe=_,we;if(ee){let xe=c(f,te);Q=c(f,te===xe?Q:0),te=xe,we=[W,B,0,0,xe,Q];}else we=[W,B,0,0];if(we.isScope=!!ue,de){let xe=oe,Ge=E;oe=c(f,oe);let Le=xe===oe;E=c(f,Le?E:0),$=c(f,Le&&Ge===E?$:0),he=[oe,E,$];}if(we.callsite=he,g(f,F)){fe=[];do{V=W,j=B;let xe=c(f,0),Ge;if(xe<-1){Ge=[[c(f,0)]];for(let Le=-1;Le>xe;Le--){let De=V;V=c(f,V),j=c(f,V===De?j:0);let Ht=c(f,0);Ge.push([Ht,V,j]);}}else Ge=[[xe]];fe.push(Ge);}while(g(f,F))}we.bindings=fe,y.push(we),O.push(we);}W++,f.pos=F+1;}while(f.pos<m);return y}function H(h){if(h.length===0)return "";let m=new x;for(let f=0;f<h.length;)f=M(h,f,m,[0,0,0,0,0,0,0]);return m.flush()}function M(h,m,f,y){let O=h[m],{0:W,1:te,2:Q,3:oe,isScope:E,callsite:$,bindings:V}=O;y[0]<W?(z(f,y[0],W),y[0]=W,y[1]=0):m>0&&f.write(r),y[1]=u(f,O[1],y[1]);let j=(O.length===6?1:0)|($?2:0)|(E?4:0);if(u(f,j,0),O.length===6){let{4:F,5:B}=O;F!==y[2]&&(y[3]=0),y[2]=u(f,F,y[2]),y[3]=u(f,B,y[3]);}if($){let{0:F,1:B,2:ie}=O.callsite;F===y[4]?B!==y[5]&&(y[6]=0):(y[5]=0,y[6]=0),y[4]=u(f,F,y[4]),y[5]=u(f,B,y[5]),y[6]=u(f,ie,y[6]);}if(V)for(let F of V){F.length>1&&u(f,-F.length,0);let B=F[0][0];u(f,B,0);let ie=W,ee=te;for(let de=1;de<F.length;de++){let ue=F[de];ie=u(f,ue[1],ie),ee=u(f,ue[2],ee),u(f,ue[0],0);}}for(m++;m<h.length;){let F=h[m],{0:B,1:ie}=F;if(B>Q||B===Q&&ie>=oe)break;m=M(h,m,f,y);}return y[0]<Q?(z(f,y[0],Q),y[0]=Q,y[1]=0):f.write(r),y[1]=u(f,oe,y[1]),m}function z(h,m,f){do h.write(i);while(++m<f)}function U(h){let{length:m}=h,f=new C(h),y=[],O=0,W=0,te=0,Q=0,oe=0;do{let E=f.indexOf(";"),$=[],V=true,j=0;for(O=0;f.pos<E;){let F;O=c(f,O),O<j&&(V=false),j=O,g(f,E)?(W=c(f,W),te=c(f,te),Q=c(f,Q),g(f,E)?(oe=c(f,oe),F=[O,W,te,Q,oe]):F=[O,W,te,Q]):F=[O],$.push(F),f.pos++;}V||K($),y.push($),f.pos=E+1;}while(f.pos<=m);return y}function K(h){h.sort(Y);}function Y(h,m){return h[0]-m[0]}function ne(h){let m=new x,f=0,y=0,O=0,W=0;for(let te=0;te<h.length;te++){let Q=h[te];if(te>0&&m.write(i),Q.length===0)continue;let oe=0;for(let E=0;E<Q.length;E++){let $=Q[E];E>0&&m.write(r),oe=u(m,$[0],oe),$.length!==1&&(f=u(m,$[1],f),y=u(m,$[2],y),O=u(m,$[3],O),$.length!==4&&(W=u(m,$[4],W)));}}return m.flush()}n.decode=U,n.decodeGeneratedRanges=R,n.decodeOriginalScopes=D,n.encode=ne,n.encodeGeneratedRanges=H,n.encodeOriginalScopes=T,Object.defineProperty(n,"__esModule",{value:true});});}),$i=Cl(Rl()),Fi=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,Il=/^data:application\/json[^,]+base64,/,Ll=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,Di=typeof WeakRef<"u",nn=new Map,In=new Map,Ml=e=>Di&&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 g of i)if(g[0]<=r)o=g;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},Ol=(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)},Pl=(e,t)=>{let n=t.split(`
14
+ `),r;for(let o=n.length-1;o>=0&&!r;o--){let a=n[o].match(Ll);a&&(r=a[1]||a[2]);}if(!r)return null;let i=Fi.test(r);if(!(Il.test(r)||i||r.startsWith("/"))){let o=e.split("/");o[o.length-1]=r,r=o.join("/");}return r},$l=e=>({file:e.file,mappings:(0, $i.decode)(e.mappings),names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,version:3}),Fl=e=>{let t=e.sections.map(({map:r,offset:i})=>({map:{...r,mappings:(0, $i.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}},Ni=e=>{if(!e)return false;let t=e.trim();if(!t)return false;let n=t.match(Fi);if(!n)return true;let r=n[0].toLowerCase();return r==="http:"||r==="https:"},Dl=async(e,t=fetch)=>{if(!Ni(e))return null;let n;try{n=await(await t(e)).text();}catch{return null}if(!n)return null;let r=Pl(e,n);if(!r||!Ni(r))return null;try{let i=await t(r),o=await i.json();return "sections"in o?Fl(o):$l(o)}catch{return null}},Bl=async(e,t=true,n)=>{if(t&&nn.has(e)){let o=nn.get(e);if(o==null)return null;if(Ml(o)){let a=o.deref();if(a)return a;nn.delete(e);}else return o}if(t&&In.has(e))return In.get(e);let r=Dl(e,n);t&&In.set(e,r);let i=await r;return t&&In.delete(e),t&&(i===null?nn.set(e,null):nn.set(e,Di?new WeakRef(i):i)),i},Hl=async(e,t=true,n)=>await Promise.all(e.map(async r=>{if(!r.fileName)return r;let i=await Bl(r.fileName,t,n);if(!i||typeof r.lineNumber!="number"||typeof r.columnNumber!="number")return r;let o=Ol(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})),zl=e=>e._debugStack instanceof Error&&typeof e._debugStack?.stack=="string",jl=()=>{let e=Qe();for(let t of [...Array.from(bt),...Array.from(e.renderers.values())]){let n=t.currentDispatcherRef;if(n&&typeof n=="object")return "H"in n?n.H:n.current}return null},Ri=e=>{for(let t of bt){let n=t.currentDispatcherRef;n&&typeof n=="object"&&("H"in n?n.H=e:n.current=e);}},et=e=>`
15
+ in ${e}`,Vl=(e,t)=>{let n=et(e);return t&&(n+=` (at ${t})`),n},Lr=false,Mr=(e,t)=>{if(!e||Lr)return "";let n=Error.prepareStackTrace;Error.prepareStackTrace=void 0,Lr=true;let r=jl();Ri(null);let i=console.error,o=console.warn;console.error=()=>{},console.warn=()=>{};try{let c={DetermineComponentFrameRoot(){let A;try{if(t){let x=function(){throw Error()};if(Object.defineProperty(x.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(x,[]);}catch(C){A=C;}Reflect.construct(e,[],x);}else {try{x.call();}catch(C){A=C;}e.call(x.prototype);}}else {try{throw Error()}catch(C){A=C;}let x=e();x&&typeof x.catch=="function"&&x.catch(()=>{});}}catch(x){if(x instanceof Error&&A instanceof Error&&typeof x.stack=="string")return [x.stack,A.stack]}return [null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot",Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name")?.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});let[g,p]=c.DetermineComponentFrameRoot();if(g&&p){let A=g.split(`
16
+ `),x=p.split(`
17
+ `),C=0,_=0;for(;C<A.length&&!A[C].includes("DetermineComponentFrameRoot");)C++;for(;_<x.length&&!x[_].includes("DetermineComponentFrameRoot");)_++;if(C===A.length||_===x.length)for(C=A.length-1,_=x.length-1;C>=1&&_>=0&&A[C]!==x[_];)_--;for(;C>=1&&_>=0;C--,_--)if(A[C]!==x[_]){if(C!==1||_!==1)do if(C--,_--,_<0||A[C]!==x[_]){let D=`
18
+ ${A[C].replace(" at new "," at ")}`,T=tn(e);return T&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",T)),D}while(C>=1&&_>=0);break}}}finally{Lr=false,Error.prepareStackTrace=n,Ri(r),console.error=i,console.warn=o;}let a=e?tn(e):"";return a?et(a):""},Gl=(e,t)=>{let n=e.tag,r="";switch(n){case kr:r=et("Activity");break;case hr:r=Mr(e.type,true);break;case yr:r=Mr(e.type.render,false);break;case gr:case xr:r=Mr(e.type,false);break;case br:case Sr:case Er:r=et(e.type);break;case vr:r=et("Lazy");break;case wr:r=e.child!==t&&t!==null?et("Suspense Fallback"):et("Suspense");break;case Cr:r=et("SuspenseList");break;case Tr:r=et("ViewTransition");break;default:return ""}return r},Ul=e=>{try{let t="",n=e,r=null;do{t+=Gl(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+=Vl(a.name,a.env));}r=n,n=n.return;}while(n);return t}catch(t){return t instanceof Error?`
19
19
  Error generating stack: ${t.message}
20
- ${t.stack}`:""}},Nl=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
20
+ ${t.stack}`:""}},Kl=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
21
  `)&&(n=n.slice(29));let r=n.indexOf(`
22
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},_l=e=>!!(e.fileName?.startsWith("rsc://")&&e.functionName),Rl=(e,t)=>e.fileName===t.fileName&&e.lineNumber===t.lineNumber&&e.columnNumber===t.columnNumber,Il=e=>{let t=new Map;for(let n of e)for(let r of n.stackFrames){if(!_l(r))continue;let i=r.functionName,o=t.get(i)??[];o.some(l=>Rl(l,r))||(o.push(r),t.set(i,o));}return t},Ml=(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(Ci,`(${o.fileName}:${o.lineNumber}:${o.columnNumber})`)}},Ol=e=>{let t=[];return hr(e,n=>{if(!Sl(n))return;let r=typeof n.type=="string"?n.type:Wt(n.type)||"<anonymous>";t.push({componentName:r,stackFrames:Ei(Nl(n._debugStack?.stack))});},true),t},_i=async(e,t=true,n)=>{let r=Ol(e),i=Ei(Al(e)),o=Il(r),a=new Map,l=i.map(u=>u.source?.includes(Ci)??false?Ml(u,o,a):u),c=l.filter((u,h,g)=>{if(h===0)return true;let T=g[h-1];return u.functionName!==T.functionName});return Cl(c,t,n)};var Zt=e=>{if(!e||sl.includes(e))return "";let t=e;if(t.startsWith(gi)){let i=t.slice(gi.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 il)if(t.startsWith(i)){t=t.slice(i.length),i==="file:///"&&(t=`/${t.replace(/^\/+/,"")}`),n=true;break}}if(pi.test(t)){let i=t.match(pi);i&&(t=t.slice(i[0].length));}let r=t.indexOf("?");if(r!==-1){let i=t.slice(r);cl.test(i)&&(t=t.slice(0,r));}return t},En=e=>{let t=Zt(e);return !(!t||!al.test(t)||ll.test(t))};var Ri=e=>e.length>0&&/^[A-Z]/.test(e);rr();var Ll=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"]),Pl=()=>typeof document>"u"?false:!!(document.getElementById("__NEXT_DATA__")||document.querySelector("nextjs-portal")),$l=e=>!!(e.startsWith("_")||Ll.has(e)),Er=e=>!($l(e)||!Ri(e)||e.startsWith("Primitive.")||e.includes("Provider")&&e.includes("Context")),_t=async e=>{if(!Nt())return [];let t=xr(e);return t?await _i(t):null},Ke=async e=>{if(!Nt())return null;let t=await _t(e);if(!t)return null;for(let n of t)if(n.functionName&&Er(n.functionName))return n.functionName;return null},Rt=async(e,t={})=>{let{maxLines:n=3}=t,r=Fl(e),i=await _t(e),o=Pl(),a=[];if(i)for(let l of i){if(a.length>=n)break;if(l.isServer&&(!l.functionName||Er(l.functionName))){a.push(`
24
- in ${l.functionName||"<anonymous>"} (at Server)`);continue}if(l.fileName&&En(l.fileName)){let c=`
25
- in `,u=l.functionName&&Er(l.functionName);u&&(c+=`${l.functionName} (at `),c+=Zt(l.fileName),o&&l.lineNumber&&l.columnNumber&&(c+=`:${l.lineNumber}:${l.columnNumber}`),u&&(c+=")"),a.push(c);}}return `${r}${a.join("")}`},Fl=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 x=w.name,A=w.value;A.length>20&&(A=`${A.slice(0,20)}...`),r+=` ${x}="${A}"`;}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(x=>`<${x.tagName.toLowerCase()} ...>`).join(`
26
- `):`(${w.length} elements)`,h="",g=u(o);if(g&&(h+=`
27
- ${g}`),n.length>0){let w=n.length>100?`${n.slice(0,100)}...`:n;h+=`
28
- ${w}`;}let T=u(a);return T&&(h+=`
29
- ${T}`),h.length>0?`<${t}${r}>${h}
30
- </${t}>`:`<${t}${r} />`};var Dl="application/x-react-grab",kn=(e,t)=>{let n=JSON.stringify({version:$o,content:e,timestamp:Date.now()}),r=o=>{o.preventDefault(),o.clipboardData?.setData("text/plain",e),o.clipboardData?.setData(Dl,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?.(),o}finally{document.removeEventListener("copy",r),i.remove();}};var Ii=(e,t=window.getComputedStyle(e))=>t.display!=="none"&&t.visibility!=="hidden"&&t.opacity!=="0";var It=e=>{if(e.closest(`[${Et}]`))return false;let t=window.getComputedStyle(e);return !(!Ii(e,t)||t.pointerEvents==="none")};var kr=(e,t)=>{let n=document.elementsFromPoint(e,t);for(let r of n)if(It(r))return r;return null};var Bl=(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},Hl=(e,t)=>e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top,Mi=(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=Bl(o,c),h=Math.max(0,l.width*l.height);h>0&&u/h>=.75&&r.push(a);}else Hl(c,o)&&r.push(a);}return r},Oi=e=>e.filter(t=>!e.some(n=>n!==t&&n.contains(t))),Li=(e,t)=>{let n=Mi(e,t,true);return Oi(n)},Pi=(e,t)=>{let n=Mi(e,t,false);return Oi(n)};var zl=e=>typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e),jl=e=>{let t=e.trim();if(!t)return null;let n=parseFloat(t);return zl(n)?n:null},$i=(e,t)=>{let n=e.split(",");if(n.length!==t)return null;let r=[];for(let i of n){let o=jl(i);if(o===null)return null;r.push(o);}return r},Vl=(e,t,n,r)=>e===1&&t===0&&n===0&&r===1,Gl=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,Tn=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=$i(r[1],16);if(o&&o.length===16){let a=[...o];return a[12]=0,a[13]=0,a[14]=0,Gl(a)?"none":`matrix3d(${a.join(", ")})`}}let i=n.match(/^matrix\(([^)]+)\)$/);if(i){let o=$i(i[1],6);if(o&&o.length===6){let[a,l,c,u]=o;return Vl(a,l,c,u)?"none":`matrix(${a}, ${l}, ${c}, ${u}, 0, 0)`}}return "none"}catch{return "none"}};var Re=e=>{let t=e.getBoundingClientRect();return {borderRadius:window.getComputedStyle(e).borderRadius||"0px",height:t.height,transform:Tn(e),width:t.width,x:t.left,y:t.top}};var Kl=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"]),An=(e,t)=>t==="KeyC"?true:!e||e.length!==1?false:Kl.has(e);var Tr=(e,t)=>{let n=e.toLowerCase();return t.startsWith("Key")?t.slice(3).toLowerCase()===n:t.startsWith("Digit")?t.slice(5)===n:false},Ar=(e,t)=>{if(t.activationShortcut)return t.activationShortcut(e);if(t.activationKey){let{key:n,metaKey:r,ctrlKey:i,shiftKey:o,altKey:a}=t.activationKey;if(!n){if(!bn.includes(e.key))return false;let g=r?e.metaKey||e.key==="Meta":true,T=i?e.ctrlKey||e.key==="Control":true,w=o?e.shiftKey||e.key==="Shift":true,x=a?e.altKey||e.key==="Alt":true,A=g&&T&&w&&x,$=[r,i,o,a].filter(Boolean).length,k=[e.metaKey||e.key==="Meta",e.ctrlKey||e.key==="Control",e.shiftKey||e.key==="Shift",e.altKey||e.key==="Alt"].filter(Boolean).length;return A&&k>=$}let c=e.key?.toLowerCase()===n.toLowerCase()||Tr(n,e.code),h=r||i||o||a?(r?e.metaKey:true)&&(i?e.ctrlKey:true)&&(o?e.shiftKey:true)&&(a?e.altKey:true):e.metaKey||e.ctrlKey;return c&&h}return (e.metaKey||e.ctrlKey)&&An(e.key,e.code)};var Ue=(e,t)=>e.composedPath().some(n=>n instanceof HTMLElement&&n.hasAttribute(t));var Nn={enabled:true,hue:0,selectionBox:{enabled:true},dragBox:{enabled:true},grabbedBoxes:{enabled:true},elementLabel:{enabled:true},crosshair:{enabled:true}},Fi=(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}}),Nr=e=>e?Fi(Nn,e):Nn,Di=Fi;var _r="react-grab:agent-sessions",Ul=()=>`session-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,Bi=(e,t,n,r,i)=>({id:Ul(),context:e,lastStatus:"",isStreaming:true,createdAt:Date.now(),position:t,selectionBounds:n,tagName:r,componentName:i}),Rr=e=>e||null,pt=new Map,_n=(e,t)=>{let n=Rr(t);if(!n){pt.clear(),e.forEach((r,i)=>pt.set(i,r));return}try{let r=Object.fromEntries(e);n.setItem(_r,JSON.stringify(r));}catch{pt.clear(),e.forEach((r,i)=>pt.set(i,r));}},Ir=(e,t)=>{let n=Rn(t);n.set(e.id,e),_n(n,t);},Rn=e=>{let t=Rr(e);if(!t)return new Map(pt);try{let n=t.getItem(_r);if(!n)return new Map;let r=JSON.parse(n);return new Map(Object.entries(r))}catch{return new Map}};var In=e=>{let t=Rr(e);if(!t){pt.clear();return}try{t.removeItem(_r);}catch{pt.clear();}},Hi=(e,t)=>{let n=Rn(t);n.delete(e),_n(n,t);},Jt=(e,t,n)=>{let r={...e,...t};return Ir(r,n),r};var Mn=async(e,t={})=>{let r=(await Promise.allSettled(e.map(i=>Rt(i,t)))).map(i=>i.status==="fulfilled"?i.value:"").filter(i=>i.trim());return r.length===0?"":r.join(`
23
+ `,r)),r!==-1)n=n.slice(0,r);else return "";return n},Yl=e=>!!(e.fileName?.startsWith("rsc://")&&e.functionName),Xl=(e,t)=>e.fileName===t.fileName&&e.lineNumber===t.lineNumber&&e.columnNumber===t.columnNumber,Wl=e=>{let t=new Map;for(let n of e)for(let r of n.stackFrames){if(!Yl(r))continue;let i=r.functionName,o=t.get(i)??[];o.some(l=>Xl(l,r))||(o.push(r),t.set(i,o));}return t},ql=(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(Li,`(${o.fileName}:${o.lineNumber}:${o.columnNumber})`)}},Zl=e=>{let t=[];return Ar(e,n=>{if(!zl(n))return;let r=typeof n.type=="string"?n.type:tn(n.type)||"<anonymous>";t.push({componentName:r,stackFrames:Oi(Kl(n._debugStack?.stack))});},true),t},Bi=async(e,t=true,n)=>{let r=Zl(e),i=Oi(Ul(e)),o=Wl(r),a=new Map,l=i.map(u=>u.source?.includes(Li)??false?ql(u,o,a):u),c=l.filter((u,g,p)=>{if(g===0)return true;let A=p[g-1];return u.functionName!==A.functionName});return Hl(c,t,n)};var rn=e=>{if(!e||El.includes(e))return "";let t=e;if(t.startsWith(ki)){let i=t.slice(ki.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 Sl)if(t.startsWith(i)){t=t.slice(i.length),i==="file:///"&&(t=`/${t.replace(/^\/+/,"")}`),n=true;break}}if(Ei.test(t)){let i=t.match(Ei);i&&(t=t.slice(i[0].length));}let r=t.indexOf("?");if(r!==-1){let i=t.slice(r);Al.test(i)&&(t=t.slice(0,r));}return t},Ln=e=>{let t=rn(e);return !(!t||!kl.test(t)||Tl.test(t))};var Hi=e=>e.length>0&&/^[A-Z]/.test(e);pr();var Jl=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"]),Ql=()=>typeof document>"u"?false:!!(document.getElementById("__NEXT_DATA__")||document.querySelector("nextjs-portal")),ec=e=>!!(e.startsWith("_")||Jl.has(e)),Pr=e=>!(ec(e)||!Hi(e)||e.startsWith("Primitive.")||e.includes("Provider")&&e.includes("Context")),Ft=async e=>{if(!$t())return [];let t=Ir(e);return t?await Bi(t):null},tt=async e=>{if(!$t())return null;let t=await Ft(e);if(!t)return null;for(let n of t)if(n.functionName&&Pr(n.functionName))return n.functionName;return null},Dt=async(e,t={})=>{let{maxLines:n=3}=t,r=tc(e),i=await Ft(e),o=Ql(),a=[];if(i)for(let l of i){if(a.length>=n)break;if(l.isServer&&(!l.functionName||Pr(l.functionName))){a.push(`
24
+ in ${l.functionName||"<anonymous>"} (at Server)`);continue}if(l.fileName&&Ln(l.fileName)){let c=`
25
+ in `,u=l.functionName&&Pr(l.functionName);u&&(c+=`${l.functionName} (at `),c+=rn(l.fileName),o&&l.lineNumber&&l.columnNumber&&(c+=`:${l.lineNumber}:${l.columnNumber}`),u&&(c+=")"),a.push(c);}}return `${r}${a.join("")}`},tc=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 x of i){let C=x.name,_=x.value;_.length>20&&(_=`${_.slice(0,20)}...`),r+=` ${C}="${_}"`;}let o=[],a=[],l=false,c=Array.from(e.childNodes);for(let x of c)x.nodeType!==Node.COMMENT_NODE&&(x.nodeType===Node.TEXT_NODE?x.textContent&&x.textContent.trim().length>0&&(l=true):x instanceof Element&&(l?a.push(x):o.push(x)));let u=x=>x.length===0?"":x.length<=2?x.map(C=>`<${C.tagName.toLowerCase()} ...>`).join(`
26
+ `):`(${x.length} elements)`,g="",p=u(o);if(p&&(g+=`
27
+ ${p}`),n.length>0){let x=n.length>100?`${n.slice(0,100)}...`:n;g+=`
28
+ ${x}`;}let A=u(a);return A&&(g+=`
29
+ ${A}`),g.length>0?`<${t}${r}>${g}
30
+ </${t}>`:`<${t}${r} />`};var nc="application/x-react-grab",Mn=(e,t)=>{let n=JSON.stringify({version:Ko,content:e,timestamp:Date.now()}),r=o=>{o.preventDefault(),o.clipboardData?.setData("text/plain",e),o.clipboardData?.setData(nc,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?.(),o}finally{document.removeEventListener("copy",r),i.remove();}};var zi=(e,t=window.getComputedStyle(e))=>t.display!=="none"&&t.visibility!=="hidden"&&t.opacity!=="0";var Bt=e=>{if(e.closest(`[${Lt}]`))return false;let t=window.getComputedStyle(e);return !(!zi(e,t)||t.pointerEvents==="none")};var $r=(e,t)=>{let n=document.elementsFromPoint(e,t);for(let r of n)if(Bt(r))return r;return null};var rc=(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},oc=(e,t)=>e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top,ji=(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=rc(o,c),g=Math.max(0,l.width*l.height);g>0&&u/g>=.75&&r.push(a);}else oc(c,o)&&r.push(a);}return r},Vi=e=>e.filter(t=>!e.some(n=>n!==t&&n.contains(t))),Gi=(e,t)=>{let n=ji(e,t,true);return Vi(n)},Ui=(e,t)=>{let n=ji(e,t,false);return Vi(n)};var ic=e=>typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e),sc=e=>{let t=e.trim();if(!t)return null;let n=parseFloat(t);return ic(n)?n:null},Ki=(e,t)=>{let n=e.split(",");if(n.length!==t)return null;let r=[];for(let i of n){let o=sc(i);if(o===null)return null;r.push(o);}return r},ac=(e,t,n,r)=>e===1&&t===0&&n===0&&r===1,lc=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,On=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=Ki(r[1],16);if(o&&o.length===16){let a=[...o];return a[12]=0,a[13]=0,a[14]=0,lc(a)?"none":`matrix3d(${a.join(", ")})`}}let i=n.match(/^matrix\(([^)]+)\)$/);if(i){let o=Ki(i[1],6);if(o&&o.length===6){let[a,l,c,u]=o;return ac(a,l,c,u)?"none":`matrix(${a}, ${l}, ${c}, ${u}, 0, 0)`}}return "none"}catch{return "none"}};var Ie=e=>{let t=e.getBoundingClientRect();return {borderRadius:window.getComputedStyle(e).borderRadius||"0px",height:t.height,transform:On(e),width:t.width,x:t.left,y:t.top}};var cc=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"]),Pn=(e,t)=>t==="KeyC"?true:!e||e.length!==1?false:cc.has(e);var Fr=(e,t)=>{let n=e.toLowerCase();return t.startsWith("Key")?t.slice(3).toLowerCase()===n:t.startsWith("Digit")?t.slice(5)===n:false},Dr=(e,t)=>{if(t.activationShortcut)return t.activationShortcut(e);if(t.activationKey){let{key:n,metaKey:r,ctrlKey:i,shiftKey:o,altKey:a}=t.activationKey;if(!n){if(!Sn.includes(e.key))return false;let p=r?e.metaKey||e.key==="Meta":true,A=i?e.ctrlKey||e.key==="Control":true,x=o?e.shiftKey||e.key==="Shift":true,C=a?e.altKey||e.key==="Alt":true,_=p&&A&&x&&C,D=[r,i,o,a].filter(Boolean).length,T=[e.metaKey||e.key==="Meta",e.ctrlKey||e.key==="Control",e.shiftKey||e.key==="Shift",e.altKey||e.key==="Alt"].filter(Boolean).length;return _&&T>=D}let c=e.key?.toLowerCase()===n.toLowerCase()||Fr(n,e.code),g=r||i||o||a?(r?e.metaKey:true)&&(i?e.ctrlKey:true)&&(o?e.shiftKey:true)&&(a?e.altKey:true):e.metaKey||e.ctrlKey;return c&&g}return (e.metaKey||e.ctrlKey)&&Pn(e.key,e.code)};var nt=(e,t)=>e.composedPath().some(n=>n instanceof HTMLElement&&n.hasAttribute(t));var $n={enabled:true,hue:0,selectionBox:{enabled:true},dragBox:{enabled:true},grabbedBoxes:{enabled:true},elementLabel:{enabled:true},crosshair:{enabled:true}},Yi=(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}}),Br=e=>e?Yi($n,e):$n,Xi=Yi;var Hr="react-grab:agent-sessions",uc=()=>`session-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,Wi=(e,t,n,r,i)=>({id:uc(),context:e,lastStatus:"",isStreaming:true,createdAt:Date.now(),position:t,selectionBounds:n,tagName:r,componentName:i}),zr=e=>e||null,yt=new Map,Fn=(e,t)=>{let n=zr(t);if(!n){yt.clear(),e.forEach((r,i)=>yt.set(i,r));return}try{let r=Object.fromEntries(e);n.setItem(Hr,JSON.stringify(r));}catch{yt.clear(),e.forEach((r,i)=>yt.set(i,r));}},jr=(e,t)=>{let n=Dn(t);n.set(e.id,e),Fn(n,t);},Dn=e=>{let t=zr(e);if(!t)return new Map(yt);try{let n=t.getItem(Hr);if(!n)return new Map;let r=JSON.parse(n);return new Map(Object.entries(r))}catch{return new Map}};var Bn=e=>{let t=zr(e);if(!t){yt.clear();return}try{t.removeItem(Hr);}catch{yt.clear();}},qi=(e,t)=>{let n=Dn(t);n.delete(e),Fn(n,t);},on=(e,t,n)=>{let r={...e,...t};return jr(r,n),r};var Hn=async(e,t={})=>{let r=(await Promise.allSettled(e.map(i=>Dt(i,t)))).map(i=>i.status==="fulfilled"?i.value:"").filter(i=>i.trim());return r.length===0?"":r.join(`
31
31
 
32
- `)};var zi=e=>{let[t,n]=R(new Map),r=new Map,i=new Map,o=e,a=k=>{o=k;},l=()=>o,c=()=>t().size>0,u=async(k,C)=>{let N=o?.storage,V=false,P=false,G=false;try{for await(let K of C){let b=t().get(k.id);if(!b)break;let p=Jt(b,{lastStatus:K},N);n(m=>new Map(m).set(k.id,p)),o?.onStatus?.(K,p);}V=!0;let U=t().get(k.id);if(U){let K=Jt(U,{isStreaming:!1},N);n(te=>new Map(te).set(k.id,K)),o?.onComplete?.(K);}}catch(q){let K=t().get(k.id);if(q instanceof Error&&q.name==="AbortError"){if(P=true,K){let te=i.get(k.id);o?.onAbort?.(K,te);}}else {let te=q instanceof Error?q.message:"Unknown error",b=te.toLowerCase();if(b.includes("network")||b.includes("fetch")||b.includes("load failed")||b.includes("cancelled")||b.includes("canceled")||b.includes("aborted")){if(K){let m=Jt(K,{lastStatus:`Error: ${te}`},N);n(f=>new Map(f).set(k.id,m));}}else if(G=true,K){let m=Jt(K,{lastStatus:`Error: ${te}`,isStreaming:false},N);n(f=>new Map(f).set(k.id,m)),q instanceof Error&&o?.onError?.(q,m);}}}finally{r.delete(k.id);let q=()=>{i.delete(k.id),Hi(k.id,N),n(U=>{let K=new Map(U);return K.delete(k.id),K});};P?q():(V||G)&&setTimeout(q,1500);}},h=k=>{let{selectionBounds:C,tagName:N}=k;if(!C)return;let V=C.x+C.width/2,P=C.y+C.height/2,G=document.elementFromPoint(V,P);if(G&&!(N&&G.tagName.toLowerCase()!==N))return G};return {sessions:t,isProcessing:c,tryResumeSessions:()=>{let k=o?.storage;if(!k)return;let C=Rn(k);if(C.size===0)return;let N=Array.from(C.values()).filter(P=>P.isStreaming);if(N.length===0){In(k);return}if(!o?.provider?.supportsResume||!o.provider.resume){In(k);return}let V=new Map(N.map(P=>[P.id,P]));n(V),_n(V,k);for(let P of N){let G=h(P);G&&i.set(P.id,G);let q={...P,lastStatus:P.lastStatus||"Resuming...",position:P.position??{x:window.innerWidth/2,y:window.innerHeight/2}};n(te=>new Map(te).set(P.id,q)),o?.onResume?.(q);let U=new AbortController;r.set(P.id,U);let K=o.provider.resume(P.id,U.signal,k);u(P,K);}},startSession:async k=>{let{element:C,prompt:N,position:V,selectionBounds:P}=k,G=o?.storage;if(!o?.provider)return;let K={content:await Mn([C]),prompt:N,options:o?.getOptions?.()},te=(C.tagName||"").toLowerCase()||void 0,b=await Ke(C)||void 0,p=Bi(K,V,P,te,b);p.lastStatus="Thinking\u2026",i.set(p.id,C),n(_=>new Map(_).set(p.id,p)),Ir(p,G),o.onStart?.(p);let m=new AbortController;r.set(p.id,m);let f=o.provider.send(K,m.signal);u(p,f);},abortSession:k=>{let C=r.get(k);C&&C.abort();},abortAllSessions:()=>{r.forEach(k=>k.abort()),r.clear(),n(new Map),In(o?.storage);},updateSessionBoundsOnViewportChange:()=>{let k=t();if(k.size===0)return;let C=new Map(k),N=false;for(let[V,P]of k){let G=i.get(V);if(!G||!document.contains(G)){let q=h(P);q&&(i.set(V,q),G=q);}if(G&&document.contains(G)){let q=Re(G);if(q){let U=P.selectionBounds,K=P.position;if(U){let te=U.x+U.width/2,b=P.position.x-te,p=q.x+q.width/2;K={...P.position,x:p+b};}C.set(V,{...P,selectionBounds:q,position:K}),N=true;}}}N&&n(C);},getSessionElement:k=>i.get(k),setOptions:a,getOptions:l}};var ji=ne('<span class="tabular-nums align-middle">'),Vi=ne('<span class="font-mono tabular-nums align-middle">&lt;<!>>'),Ql=ne('<span class="tabular-nums ml-1 align-middle"> in '),ec=e=>"scheduler"in globalThis?globalThis.scheduler.postTask(e,{priority:"background"}):"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0),Mr=false,tc=()=>{if(typeof window>"u")return null;try{let e=document.currentScript?.getAttribute("data-options");return e?JSON.parse(e):null}catch{return null}},Or=e=>{let t=Nr(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:()=>{}};let r={enabled:true,keyHoldDuration:200,allowActivationInsideInput:true,maxContextLines:3,...tc(),...e},i=Nr(r.theme);return r.enabled===false||Mr?{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:()=>{}}:(Mr=true,(()=>{try{let a="0.0.71",l=`data:image/svg+xml;base64,${btoa(Fo)}`;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?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{}})(),ut(a=>{let[l,c]=R(i),[u,h]=R(false),[g,T]=R(-1e3),[w,x]=R(-1e3),[A,$]=R(null),k=0,[C,N]=R(false),[V,P]=R(-1e3),[G,q]=R(-1e3),[U,K]=R(false),[te,b]=R("idle"),[p,m]=R([]),[f,_]=R(null),[Y,L]=R(null),[H,j]=R([]),[M,I]=R(false),[X,D]=R(false),[B,ee]=R(false),[he,$e]=R(false),[nt,De]=R(-1e3),[Mt,rt]=R(-1e3),[Be,be]=R(0),[ke,He]=R(0),[ue,Le]=R(false),[$n,Ye]=R(""),[Gi,Fn]=R(false),[Lr,Pr]=R(void 0),[$r,Fr]=R(void 0),[Dr,Xe]=R(false),[Br,We]=R(false),[Ot,Lt]=R(null),[Qt,Ki]=R(!!r.agent?.provider),Pt=new WeakMap,[Dn,Bn]=R(-1e3),[Hn,zn]=R(-1e3),[Hr,en]=R(false),[$t,zr]=R([]),ot=s=>(s.tagName||"").toLowerCase(),jr=ae(()=>{let s=$t();if(!(s.length===0||!s[0]))return ot(s[0])||void 0}),[Vr]=un(()=>{let s=$t();return s.length===0||!s[0]?null:s[0]},async s=>{if(s)return await Ke(s)||void 0}),it=()=>{Bn(-1e3),zn(-1e3),zr([]);},Ui=()=>{let s=window.getSelection();if(!s||s.isCollapsed||s.rangeCount===0)return;let y=s.getRangeAt(0).getClientRects();if(y.length===0)return;let v=(()=>{if(!s.anchorNode||!s.focusNode)return false;let J=s.anchorNode.compareDocumentPosition(s.focusNode);return J&Node.DOCUMENT_POSITION_FOLLOWING?false:J&Node.DOCUMENT_POSITION_PRECEDING?true:s.anchorOffset>s.focusOffset})(),E=v?y[0]:y[y.length-1],F=v?E.left:E.right,z=E.top+E.height/2;Bn(F),zn(z);};re(Ce(()=>ke(),()=>{Hr()&&Ui();}));let jn=ae(()=>{ke();let s=$t();if(!(s.length===0||!s[0]))return Re(s[0])}),ze=null,tn=null,nn=null,Te=null,st=null,Ft=null,Pe=ae(()=>M()&&!U()),Gr=(s,d)=>({top:d<25,bottom:d>window.innerHeight-25,left:s<25,right:s>window.innerWidth-25}),Kr=(s,d)=>{let y=`grabbed-${Date.now()}-${Math.random()}`,v=Date.now(),E={id:y,bounds:s,createdAt:v,element:d},F=H();j([...F,E]),r.onGrabbedBox?.(s,d),setTimeout(()=>{j(z=>z.filter(J=>J.id!==y));},1700);},Ur=s=>{let d=s.map(y=>({tagName:ot(y)}));window.dispatchEvent(new CustomEvent("react-grab:element-selected",{detail:{elements:d}}));},Yi=(s,d,y,v,E,F)=>{let z=`label-${Date.now()}-${Math.random().toString(36).slice(2)}`;return m(J=>[...J,{id:z,bounds:s,tagName:d,componentName:y,status:v,createdAt:Date.now(),element:E,mouseX:F}]),z},Yr=(s,d)=>{m(y=>y.map(v=>v.id===s?{...v,status:d}:v));},Xi=s=>{m(d=>d.filter(y=>y.id!==s));},Dt=async(s,d,y,v,E,F,z,J)=>{if(De(s),rt(d),v){let Ee=v.x+v.width/2;be(s-Ee);}else be(0);K(true),Qi();let xe=v&&E?Yi(v,E,F,"copying",z,s):null;await y().finally(()=>{K(false),$e(true),rn(),xe&&(Yr(xe,"copied"),setTimeout(()=>{Yr(xe,"fading"),setTimeout(()=>{Xi(xe);},350);},1500)),(X()||J)&&Se();});},Wi=s=>"innerText"in s,qi=s=>Wi(s)?s.innerText:s.textContent??"",Xr=s=>s.map(d=>qi(d).trim()).filter(d=>d.length>0).join(`
32
+ `)};var Zi=e=>{let[t,n]=N(new Map),r=new Map,i=new Map,o=e,a=T=>{o=T;},l=()=>o,c=()=>t().size>0,u=async(T,v)=>{let R=o?.storage,H=false,M=false,z=false;try{for await(let Y of v){let h=t().get(T.id);if(!h)break;let m=on(h,{lastStatus:Y},R);n(f=>new Map(f).set(T.id,m)),o?.onStatus?.(Y,m);}H=!0;let K=t().get(T.id);if(K){let Y=on(K,{isStreaming:!1},R);n(h=>new Map(h).set(T.id,Y));let ne=i.get(T.id);o?.onComplete?.(Y,ne);}}catch(U){let Y=t().get(T.id);if(U instanceof Error&&U.name==="AbortError"){if(M=true,Y){let ne=i.get(T.id);o?.onAbort?.(Y,ne);}}else {let ne=U instanceof Error?U.message:"Unknown error",h=ne.toLowerCase();if(h.includes("network")||h.includes("fetch")||h.includes("load failed")||h.includes("cancelled")||h.includes("canceled")||h.includes("aborted")){if(Y){let f=on(Y,{lastStatus:`Error: ${ne}`},R);n(y=>new Map(y).set(T.id,f));}}else if(z=true,Y){let f=on(Y,{lastStatus:`Error: ${ne}`,isStreaming:false},R);n(y=>new Map(y).set(T.id,f)),U instanceof Error&&o?.onError?.(U,f);}}}finally{r.delete(T.id);let U=()=>{i.delete(T.id),qi(T.id,R),n(K=>{let Y=new Map(K);return Y.delete(T.id),Y});};M?U():(H||z)&&setTimeout(U,1500);}},g=T=>{let{selectionBounds:v,tagName:R}=T;if(!v)return;let H=v.x+v.width/2,M=v.y+v.height/2,z=document.elementFromPoint(H,M);if(z&&!(R&&z.tagName.toLowerCase()!==R))return z};return {sessions:t,isProcessing:c,tryResumeSessions:()=>{let T=o?.storage;if(!T)return;let v=Dn(T);if(v.size===0)return;let R=Array.from(v.values()).filter(M=>M.isStreaming);if(R.length===0){Bn(T);return}if(!o?.provider?.supportsResume||!o.provider.resume){Bn(T);return}let H=new Map(R.map(M=>[M.id,M]));n(H),Fn(H,T);for(let M of R){let z=g(M);z&&i.set(M.id,z);let U={...M,lastStatus:M.lastStatus||"Resuming...",position:M.position??{x:window.innerWidth/2,y:window.innerHeight/2}};n(ne=>new Map(ne).set(M.id,U)),o?.onResume?.(U);let K=new AbortController;r.set(M.id,K);let Y=o.provider.resume(M.id,K.signal,T);u(M,Y);}},startSession:async T=>{let{element:v,prompt:R,position:H,selectionBounds:M}=T,z=o?.storage;if(!o?.provider)return;let Y={content:await Hn([v],{maxLines:1/0}),prompt:R,options:o?.getOptions?.()},ne=(v.tagName||"").toLowerCase()||void 0,h=await tt(v)||void 0,m=Wi(Y,H,M,ne,h);m.lastStatus="Thinking\u2026",i.set(m.id,v),n(O=>new Map(O).set(m.id,m)),jr(m,z),o.onStart?.(m,v);let f=new AbortController;r.set(m.id,f);let y=o.provider.send(Y,f.signal);u(m,y);},abortSession:T=>{let v=r.get(T);v&&v.abort();},abortAllSessions:()=>{r.forEach(T=>T.abort()),r.clear(),n(new Map),Bn(o?.storage);},updateSessionBoundsOnViewportChange:()=>{let T=t();if(T.size===0)return;let v=new Map(T),R=false;for(let[H,M]of T){let z=i.get(H);if(!z||!document.contains(z)){let U=g(M);U&&(i.set(H,U),z=U);}if(z&&document.contains(z)){let U=Ie(z);if(U){let K=M.selectionBounds,Y=M.position;if(K){let ne=K.x+K.width/2,h=M.position.x-ne,m=U.x+U.width/2;Y={...M.position,x:m+h};}v.set(H,{...M,selectionBounds:U,position:Y}),R=true;}}}R&&n(v);},getSessionElement:T=>i.get(T),setOptions:a,getOptions:l}};var Ji=Z('<span class="tabular-nums align-middle">'),Qi=Z('<span class="font-mono tabular-nums align-middle">&lt;<!>>'),bc=Z('<span class="tabular-nums ml-1 align-middle"> in '),yc=e=>"scheduler"in globalThis?globalThis.scheduler.postTask(e,{priority:"background"}):"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0),Vr=false,wc=()=>{if(typeof window>"u")return null;try{let e=document.currentScript?.getAttribute("data-options");return e?JSON.parse(e):null}catch{return null}},Gr=e=>{let t=Br(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:()=>{}};let r={enabled:true,keyHoldDuration:200,allowActivationInsideInput:true,maxContextLines:3,...wc(),...e},i=Br(r.theme);return r.enabled===false||Vr?{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:()=>{}}:(Vr=true,(()=>{try{let a="0.0.72",l=`data:image/svg+xml;base64,${btoa(Yo)}`;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?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{}})(),Ze(a=>{let[l,c]=N(i),[u,g]=N(false),[p,A]=N(-1e3),[x,C]=N(-1e3),[_,D]=N(null),T=0,[v,R]=N(false),[H,M]=N(-1e3),[z,U]=N(-1e3),[K,Y]=N(false),[ne,h]=N("idle"),[m,f]=N([]),[y,O]=N(null),[W,te]=N(null),[Q,oe]=N(null),[E,$]=N([]),[V,j]=N(false),[F,B]=N(false),[ie,ee]=N(false),[de,ue]=N(false),[he,fe]=N(-1e3),[we,xe]=N(-1e3),[Ge,Le]=N(0),[De,Ht]=N(0),[ge,je]=N(false),[Gn,Ue]=N(""),[es,Un]=N(false),[Ur,Kr]=N(void 0),[Yr,Xr]=N(void 0),[Kn,Ke]=N(false),[Wr,Ye]=N(false),[xt,vt]=N(null),[sn,ts]=N(!!r.agent?.provider),[ns,rs]=N(false),[qr,Ct]=N(false),ct=new WeakMap,[Yn,Xn]=N(-1e3),[Wn,qn]=N(-1e3),[Zr,zt]=N(false),[jt,Jr]=N([]),ut=s=>(s.tagName||"").toLowerCase(),Qr=ae(()=>{let s=jt();if(!(s.length===0||!s[0]))return ut(s[0])||void 0}),[eo]=hn(()=>{let s=jt();return s.length===0||!s[0]?null:s[0]},async s=>{if(s)return await tt(s)||void 0}),Xe=()=>{zt(false),Xn(-1e3),qn(-1e3),Jr([]);},os=()=>{let s=window.getSelection();if(!s||s.isCollapsed||s.rangeCount===0)return;let b=s.getRangeAt(0).getClientRects();if(b.length===0)return;let w=(()=>{if(!s.anchorNode||!s.focusNode)return false;let q=s.anchorNode.compareDocumentPosition(s.focusNode);return q&Node.DOCUMENT_POSITION_FOLLOWING?false:q&Node.DOCUMENT_POSITION_PRECEDING?true:s.anchorOffset>s.focusOffset})(),k=w?b[0]:b[b.length-1],P=w?k.left:k.right,L=k.top+k.height/2;Xn(P),qn(L);};re(Re(()=>De(),()=>{Zr()&&os();}));let Zn=ae(()=>{De();let s=jt();if(!(s.length===0||!s[0]))return Ie(s[0])}),We=null,an=null,ln=null,Me=null,dt=null,Vt=null,ze=ae(()=>V()&&!K()),to=(s,d)=>({top:d<25,bottom:d>window.innerHeight-25,left:s<25,right:s>window.innerWidth-25}),no=(s,d)=>{let b=`grabbed-${Date.now()}-${Math.random()}`,w=Date.now(),k={id:b,bounds:s,createdAt:w,element:d},P=E();$([...P,k]),r.onGrabbedBox?.(s,d),setTimeout(()=>{$(L=>L.filter(q=>q.id!==b));},1700);},ro=s=>{let d=s.map(b=>({tagName:ut(b)}));window.dispatchEvent(new CustomEvent("react-grab:element-selected",{detail:{elements:d}}));},is=(s,d,b,w,k,P)=>{let L=`label-${Date.now()}-${Math.random().toString(36).slice(2)}`;return f(q=>[...q,{id:L,bounds:s,tagName:d,componentName:b,status:w,createdAt:Date.now(),element:k,mouseX:P}]),L},oo=(s,d)=>{f(b=>b.map(w=>w.id===s?{...w,status:d}:w));},ss=s=>{f(d=>d.filter(b=>b.id!==s));},Gt=async(s,d,b,w,k,P,L,q)=>{if(fe(s),xe(d),w){let Oe=w.x+w.width/2;Le(s-Oe);}else Le(0);Y(true),ds();let Ne=w&&k?is(w,k,P,"copying",L,s):null;await b().finally(()=>{Y(false),ue(true),L&&te(L),cn(),Ne&&(oo(Ne,"copied"),setTimeout(()=>{oo(Ne,"fading"),setTimeout(()=>{ss(Ne);},350);},1500)),(F()||q)&&_e();});},as=s=>"innerText"in s,ls=s=>as(s)?s.innerText:s.textContent??"",io=s=>s.map(d=>ls(d).trim()).filter(d=>d.length>0).join(`
34
34
 
35
- `),Vn=async(s,d)=>{let y=false,v="";await r.onBeforeCopy?.(s);try{let E=await Promise.allSettled(s.map(z=>Rt(z,{maxLines:r.maxContextLines}))),F=[];for(let z of E)z.status==="fulfilled"&&z.value.trim()&&F.push(z.value);if(F.length>0){let z=F.join(`
35
+ `),Jn=async(s,d)=>{let b=false,w="";await r.onBeforeCopy?.(s);try{let k=await Promise.allSettled(s.map(L=>Dt(L,{maxLines:r.maxContextLines}))),P=[];for(let L of k)L.status==="fulfilled"&&L.value.trim()&&P.push(L.value);if(P.length>0){let L=P.join(`
36
36
 
37
- `),J=d?`${d}
37
+ `),q=d?`${d}
38
38
 
39
- ${z}`:z;v=J,y=kn(J);}if(!y){let z=Xr(s);if(z.length>0){let J=d?`${d}
39
+ ${L}`:L;w=q,b=Mn(q);}if(!b){let L=io(s);if(L.length>0){let q=d?`${d}
40
40
 
41
- ${z}`:z;v=J,y=kn(J);}}y&&r.onCopySuccess?.(s,v);}catch(E){r.onCopyError?.(E);let F=Xr(s);if(F.length>0){let z=d?`${d}
41
+ ${L}`:L;w=q,b=Mn(q);}}b&&r.onCopySuccess?.(s,w);}catch(k){r.onCopyError?.(k);let P=io(s);if(P.length>0){let L=d?`${d}
42
42
 
43
- ${F}`:F;v=z,y=kn(z);}}return r.onAfterCopy?.(s,y),y},Gn=async(s,d)=>{r.onElementSelect?.(s),l().grabbedBoxes.enabled&&Kr(Re(s),s),await new Promise(y=>requestAnimationFrame(y)),await Vn([s],d),Ur([s]);},Wr=async s=>{if(s.length!==0){for(let d of s)r.onElementSelect?.(d);if(l().grabbedBoxes.enabled)for(let d of s)Kr(Re(d),d);await new Promise(d=>requestAnimationFrame(d)),await Vn(s),Ur(s);}},de=ae(()=>{if(!Pe()||C())return null;let s=A();return s&&!document.contains(s)?null:s});re(()=>{let s=A();if(!s)return;let d=setInterval(()=>{document.contains(s)||$(null);},100);pe(()=>clearInterval(d));}),re(()=>{let s=de();s&&Lt(s);});let qr=ae(()=>{ke();let s=de();if(s)return Re(s)}),Zr=(s,d)=>{let y=s+window.scrollX,v=d+window.scrollY;return {x:Math.abs(y-V()),y:Math.abs(v-G())}},Jr=ae(()=>{if(!C())return false;let s=Zr(g(),w());return s.x>2||s.y>2}),Qr=(s,d)=>{let y=s+window.scrollX,v=d+window.scrollY,E=Math.min(V(),y),F=Math.min(G(),v),z=Math.abs(y-V()),J=Math.abs(v-G());return {x:E-window.scrollX,y:F-window.scrollY,width:z,height:J}},qe=ae(()=>{if(!Jr())return;let s=Qr(g(),w());return {borderRadius:"0px",height:s.height,transform:"none",width:s.width,x:s.x,y:s.y}}),[Zi]=un(()=>de(),async s=>s?Ke(s):null),Ji=ae(()=>{let s=de(),d=U();if(!s)return (()=>{var E=ji();return Z(E,d?"Processing\u2026":"1 element"),E})();let y=ot(s),v=Zi();return y&&v?[(()=>{var E=Vi(),F=E.firstChild,z=F.nextSibling;z.nextSibling;return Z(E,y,z),E})(),(()=>{var E=Ql();E.firstChild;return Z(E,v,null),E})()]:y?(()=>{var E=Vi(),F=E.firstChild,z=F.nextSibling;z.nextSibling;return Z(E,y,z),E})():(()=>{var E=ji();return Z(E,d?"Processing\u2026":"1 element"),E})()}),Kn=ae(()=>{if(U()||Br()){ke();let s=Ot()||de();if(s){let d=Re(s);return {x:d.x+d.width/2+Be(),y:Mt()}}return {x:nt(),y:Mt()}}return {x:g(),y:w()}});re(Ce(()=>[de(),f()],([s,d])=>{d&&s&&d!==s&&_(null),s&&r.onElementHover?.(s);})),re(Ce(()=>de(),s=>{let d=()=>{Pr(void 0),Fr(void 0);};if(!s){d();return}_t(s).then(y=>{if(y){for(let v of y)if(v.fileName&&En(v.fileName)){Pr(Zt(v.fileName)),Fr(v.lineNumber);return}d();}}).catch(d);})),re(Ce(()=>ke(),()=>Ie.updateSessionBoundsOnViewportChange())),re(Ce(()=>[M(),C(),U(),ue(),de(),qe()],([s,d,y,v,E,F])=>{r.onStateChange?.({isActive:s,isDragging:d,isCopying:y,isInputMode:v,targetElement:E,dragBounds:F?{x:F.x,y:F.y,width:F.width,height:F.height}:null});})),re(Ce(()=>[ue(),g(),w(),de()],([s,d,y,v])=>{r.onInputModeChange?.(s,{x:d,y,targetElement:v});})),re(Ce(()=>[so(),qr(),de()],([s,d,y])=>{r.onSelectionBox?.(!!s,d??null,y);})),re(Ce(()=>[ao(),qe()],([s,d])=>{r.onDragBox?.(!!s,d??null);})),re(Ce(()=>[lo(),g(),w()],([s,d,y])=>{r.onCrosshair?.(!!s,{x:d,y});})),re(Ce(()=>[ms(),fs(),Ji(),Kn()],([s,d,y,v])=>{let E=typeof y=="string"?y:"";r.onElementLabel?.(!!s,d,{x:v.x,y:v.y,content:E});}));let Ze=null,at=s=>{s?(Ze||(Ze=document.createElement("style"),Ze.setAttribute("data-react-grab-cursor",""),document.head.appendChild(Ze)),Ze.textContent=`* { cursor: ${s} !important; }`):Ze&&(Ze.remove(),Ze=null);};re(Ce(()=>[M(),U(),C(),ue(),de()],([s,d,y,v,E])=>{at(d?"progress":v?null:s&&y?"crosshair":s&&E?"default":s?"crosshair":null);}));let Qi=s=>{let d=Date.now(),y=r.keyHoldDuration;L(d);let v=()=>{let E=Y();if(E===null)return;let z=(Date.now()-E)/y,J=1-Math.exp(-z);(U()?Math.min(J,.95):1)<1&&(nn=requestAnimationFrame(v));};v();},rn=()=>{nn!==null&&(cancelAnimationFrame(nn),nn=null),L(null);},es=()=>{let s=()=>{if(!C()){Bt();return}let d=Gr(g(),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?st=requestAnimationFrame(s):st=null;};s();},Bt=()=>{st!==null&&(cancelAnimationFrame(st),st=null);},lt=()=>{rn(),Ft=document.activeElement,tn=Date.now(),I(true),r.onActivate?.();},Se=()=>{D(false),h(false),I(false),Le(false),Ye(""),Xe(false),We(false),Lt(null),b("idle"),$e(false),C()&&(N(false),document.body.style.userSelect=""),ze&&window.clearTimeout(ze),Te&&window.clearTimeout(Te),Bt(),rn(),tn=null,Ft instanceof HTMLElement&&document.contains(Ft)&&Ft.focus(),Ft=null,r.onDeactivate?.();},ts=r.agent?{...r.agent,onAbort:(s,d)=>{if(r.agent?.onAbort?.(s,d),d&&document.contains(d)){let y=d.getBoundingClientRect(),v=y.top+y.height/2;T(s.position.x),x(v),Lt(d),Ye(s.context.prompt),We(true),Le(true),D(true),Xe(true),M()||lt();}}}:void 0,Ie=zi(ts),ns=s=>{Ye(s);},rs=()=>{let s=Ot()||de(),d=ue()?$n().trim():"";if(!s){Se();return}let y=Re(s),v=g(),E=y.x+y.width/2,F=y.y+y.height/2;if(T(E),x(F),Qt()&&d){Pt.delete(s),Se(),Ie.startSession({element:s,prompt:d,position:{x:v,y:F},selectionBounds:y});return}Le(false),Ye(""),Pt.delete(s);let z=ot(s);Ke(s).then(J=>{Dt(E,F,()=>Gn(s,d||void 0),y,z,J??void 0,s).then(()=>{Se();});});},Un=()=>{if(!ue())return;let s=Ot()||de(),d=$n().trim();s&&d&&Pt.set(s,d),Se();},os=()=>{let s=Ot()||de();if(s){let d=Re(s),y=d.x+d.width/2;De(g()),rt(w()),be(g()-y);let v=Pt.get(s);v&&Ye(v);}D(true),Xe(true),We(true),Le(true);},is=async()=>{let s=$t();if(s.length===0)return;let d=Dn(),y=Hn(),v=jn(),E=jr();en(false),it(),window.getSelection()?.removeAllRanges();let F=Vr();s.length===1?await Dt(d,y,()=>Gn(s[0]),v,E,F):await Dt(d,y,()=>Wr(s),v,E,F);},ss=()=>{if($t().length===0)return;let d=jn(),y=d?d.x+d.width/2:Dn(),v=d?d.y+d.height/2:Hn();en(false),it(),window.getSelection()?.removeAllRanges(),T(y),x(v),D(true),Xe(true),We(true),lt(),Le(true);},eo=(s,d)=>{if(ue()||Dr())return;$e(false),T(s),x(d);let y=performance.now();if(y-k>=32&&(k=y,ec(()=>{let v=kr(s,d);$(v);})),C()){let v=Gr(s,d),E=v.top||v.bottom||v.left||v.right;E&&st===null?es():!E&&st!==null&&Bt();}},to=(s,d)=>{if(!Pe()||U())return false;N(true);let y=s+window.scrollX,v=d+window.scrollY;return P(y),q(v),document.body.style.userSelect="none",r.onDragStart?.(y,v),true},no=(s,d)=>{if(!C())return;let y=Zr(s,d),v=y.x>2||y.y>2;if(N(false),Bt(),document.body.style.userSelect="",v){ee(true);let E=Qr(s,d),F=Li(E,It),z=F.length>0?F:Pi(E,It);if(z.length>0){r.onDragEnd?.(z,E);let J=z[0],xe=J.getBoundingClientRect(),Ee={x:xe.left,y:xe.top,width:xe.width,height:xe.height,borderRadius:"0px",transform:Tn(J)},Ht=ot(J);if(Qt()){let yt=Ee.x+Ee.width/2,gs=Ee.y+Ee.height/2;T(yt),x(gs),Lt(J),D(true),Xe(true),We(true),Le(true);}else Ke(J).then(yt=>{Dt(s,d,()=>Wr(z),Ee,Ht,yt??void 0,J,true);});}}else {let E=kr(s,d);if(!E)return;_(E);let F=Re(E),z=ot(E);Ke(E).then(J=>{Dt(s,d,()=>Gn(E),F,z,J??void 0,E);});}},ro=new AbortController,me=ro.signal,oo=new WeakSet,ht=s=>s==="Enter"||s==="NumpadEnter",ct=Object.getOwnPropertyDescriptor(KeyboardEvent.prototype,"key"),io=false;if(ct?.get&&!ct.get.__reactGrabPatched){io=true;let s=ct.get,d=function(){return oo.has(this)?"":s.call(this)};d.__reactGrabPatched=true,Object.defineProperty(KeyboardEvent.prototype,"key",{get:d,configurable:true});}let bt=s=>{let y=(ct?.get?ct.get.call(s):s.key)==="Enter"||ht(s.code),v=M()||u();return y&&v&&!ue()?(oo.add(s),s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation(),true):false};document.addEventListener("keydown",bt,{signal:me,capture:true}),document.addEventListener("keyup",bt,{signal:me,capture:true}),document.addEventListener("keypress",bt,{signal:me,capture:true}),window.addEventListener("keydown",s=>{bt(s);let d=ht(s.code)&&u()&&!ue();if(ue()&&Ar(s,r)){s.preventDefault(),s.stopPropagation(),Le(false),Ye(""),Xe(false),We(false);return}if(ue()||Ue(s,"data-react-grab-ignore-events")&&!d){s.key==="Escape"&&Ie.isProcessing()&&Ie.abortAllSessions();return}if(s.key==="Escape"){if(Ie.isProcessing()){Ie.abortAllSessions();return}if(u()){Se();return}}if(ht(s.code)&&u()&&!ue()){s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation();let y=Ot()||de();if(y){let v=Re(y),E=v.x+v.width/2;De(g()),rt(w()),be(g()-E);let F=Pt.get(y);F&&Ye(F);}D(true),Xe(true),We(true),Te!==null&&(window.clearTimeout(Te),Te=null),M()||(ze&&window.clearTimeout(ze),lt()),Le(true);return}if(s.key.toLowerCase()==="o"&&!ue()&&M()&&(s.metaKey||s.ctrlKey)){let y=Lr(),v=$r();if(y)if(s.preventDefault(),s.stopPropagation(),r.onOpenFile)r.onOpenFile(y,v);else {let E=hn(y,v);window.open(E,"_blank");}return}if(!(!r.allowActivationInsideInput&&Mo(s))&&!(!Ar(s,r)&&(M()&&!X()&&(s.metaKey||s.ctrlKey)&&!bn.includes(s.key)&&!ht(s.code)&&Se(),!ht(s.code)||!u()))){if((M()||u())&&!ue()&&(s.preventDefault(),ht(s.code)&&(s.stopPropagation(),s.stopImmediatePropagation())),M()){if(X()||s.repeat)return;Te!==null&&window.clearTimeout(Te),Te=window.setTimeout(()=>{Se();},200);return}u()&&s.repeat||(ze!==null&&window.clearTimeout(ze),u()||h(true),ze=window.setTimeout(()=>{lt();},r.keyHoldDuration));}},{signal:me,capture:true}),window.addEventListener("keyup",s=>{if(bt(s)||!u()&&!M()||ue())return;let d=!!(r.activationShortcut||r.activationKey),v=(()=>{if(r.activationKey){let{metaKey:z,ctrlKey:J,shiftKey:xe,altKey:Ee}=r.activationKey;return {metaKey:!!z,ctrlKey:!!J,shiftKey:!!xe,altKey:!!Ee}}return {metaKey:true,ctrlKey:true,shiftKey:false,altKey:false}})(),E=v.metaKey||v.ctrlKey?!s.metaKey&&!s.ctrlKey:v.shiftKey&&!s.shiftKey||v.altKey&&!s.altKey,F=r.activationShortcut?!r.activationShortcut(s):r.activationKey?r.activationKey.key?s.key.toLowerCase()===r.activationKey.key.toLowerCase()||Tr(r.activationKey.key,s.code):false:An(s.key,s.code);if(M()){if(E){if(X())return;Se();}else !d&&F&&Te!==null&&(window.clearTimeout(Te),Te=null);return}if(F||E){if(X())return;Se();}},{signal:me,capture:true}),window.addEventListener("keypress",bt,{signal:me,capture:true}),window.addEventListener("mousemove",s=>{Fn(false),!Ue(s,"data-react-grab-ignore-events")&&eo(s.clientX,s.clientY);},{signal:me}),window.addEventListener("mousedown",s=>{if(s.button!==0||Ue(s,"data-react-grab-ignore-events"))return;if(ue()){Un();return}to(s.clientX,s.clientY)&&(s.preventDefault(),s.stopPropagation());},{signal:me,capture:true}),window.addEventListener("pointerdown",s=>{s.button===0&&(Ue(s,"data-react-grab-ignore-events")||!Pe()||U()||ue()||s.stopPropagation());},{signal:me,capture:true}),window.addEventListener("mouseup",s=>{s.button===0&&no(s.clientX,s.clientY);},{signal:me}),window.addEventListener("touchmove",s=>{s.touches.length!==0&&(Fn(true),!Ue(s,"data-react-grab-ignore-events")&&eo(s.touches[0].clientX,s.touches[0].clientY));},{signal:me,passive:true}),window.addEventListener("touchstart",s=>{if(s.touches.length===0||(Fn(true),Ue(s,"data-react-grab-ignore-events")))return;if(ue()){Un();return}to(s.touches[0].clientX,s.touches[0].clientY)&&s.preventDefault();},{signal:me,passive:false}),window.addEventListener("touchend",s=>{s.changedTouches.length!==0&&no(s.changedTouches[0].clientX,s.changedTouches[0].clientY);},{signal:me}),window.addEventListener("click",s=>{Ue(s,"data-react-grab-ignore-events")||(Pe()||U()||B())&&(s.preventDefault(),s.stopPropagation(),B()&&ee(false),X()&&!U()&&(u()?D(false):Se()));},{signal:me,capture:true}),document.addEventListener("visibilitychange",()=>{document.hidden&&(j([]),M()&&!ue()&&tn!==null&&Date.now()-tn>500&&Se());},{signal:me}),window.addEventListener("scroll",()=>{He(s=>s+1);},{signal:me,capture:true}),window.addEventListener("resize",()=>{He(s=>s+1);},{signal:me});let as=setInterval(()=>{He(s=>s+1);},100);pe(()=>clearInterval(as)),document.addEventListener("copy",s=>{ue()||Ue(s,"data-react-grab-ignore-events")||(Pe()||U())&&s.preventDefault();},{signal:me,capture:true});let on=null;document.addEventListener("selectionchange",()=>{if(Pe())return;on!==null&&window.clearTimeout(on),en(false);let s=window.getSelection();if(!s||s.isCollapsed||s.rangeCount===0){it();return}on=window.setTimeout(()=>{on=null;let d=window.getSelection();if(!d||d.isCollapsed||d.rangeCount===0)return;let y=d.getRangeAt(0),v=y.getBoundingClientRect();if(v.width===0&&v.height===0){it();return}let E=(()=>{if(!d.anchorNode||!d.focusNode)return false;let yt=d.anchorNode.compareDocumentPosition(d.focusNode);return yt&Node.DOCUMENT_POSITION_FOLLOWING?false:yt&Node.DOCUMENT_POSITION_PRECEDING?true:d.anchorOffset>d.focusOffset})(),F=y.getClientRects();if(F.length===0){it();return}let z=E?F[0]:F[F.length-1],J=E?z.left:z.right,xe=z.top+z.height/2;if(Lo(J,xe)){it();return}let Ee=y.commonAncestorContainer,Ht=Ee.nodeType===Node.ELEMENT_NODE?Ee:Ee.parentElement;Ht&&It(Ht)?(Bn(J),zn(xe),zr([Ht]),en(true)):it();},150);},{signal:me}),pe(()=>{ro.abort(),ze&&window.clearTimeout(ze),Te&&window.clearTimeout(Te),Bt(),rn(),document.body.style.userSelect="",at(null),io&&ct&&Object.defineProperty(KeyboardEvent.prototype,"key",ct);});let Yn=Po(Io),so=ae(()=>!l().selectionBox.enabled||he()?false:Pe()&&!C()&&!!de()),ls=ae(()=>{let s=de();if(s)return ot(s)||void 0}),[cs]=un(()=>de(),async s=>s?await Ke(s)??void 0:void 0),us=ae(()=>!l().elementLabel.enabled||he()?false:Pe()&&!C()&&!!de()),ds=ae(()=>(ke(),p().map(s=>!s.element||!document.body.contains(s.element)?s:{...s,bounds:Re(s.element)}))),ao=ae(()=>l().dragBox.enabled&&Pe()&&Jr()),fs=ae(()=>U()?"processing":"hover"),ms=ae(()=>!l().elementLabel.enabled||ue()?false:U()?true:Pe()&&!C()&&!!de()),lo=ae(()=>l().crosshair.enabled&&Pe()&&!C()&&!Gi()&&!Dr()),ps=ae(()=>l().grabbedBoxes.enabled);return re(Ce(l,s=>{s.hue!==0?Yn.style.filter=`hue-rotate(${s.hue}deg)`:Yn.style.filter="";})),l().enabled&&_o(()=>O(si,{get selectionVisible(){return so()},get selectionBounds(){return qr()},get selectionFilePath(){return Lr()},get selectionLineNumber(){return $r()},get selectionTagName(){return ls()},get selectionComponentName(){return cs()},get selectionLabelVisible(){return us()},get selectionLabelStatus(){return te()},get labelInstances(){return ds()},get dragVisible(){return ao()},get dragBounds(){return qe()},get grabbedBoxes(){return ye(()=>!!ps())()?H():[]},labelZIndex:2147483647,get mouseX(){return Kn().x},get mouseY(){return Kn().y},get crosshairVisible(){return lo()},get inputValue(){return $n()},get isInputExpanded(){return Br()},get hasAgent(){return Qt()},get agentSessions(){return Ie.sessions()},onAbortSession:s=>Ie.abortSession(s),onInputChange:ns,onInputSubmit:()=>void rs(),onInputCancel:Un,onToggleExpand:os,get nativeSelectionCursorVisible(){return Hr()},get nativeSelectionCursorX(){return Dn()},get nativeSelectionCursorY(){return Hn()},get nativeSelectionTagName(){return jr()},get nativeSelectionComponentName(){return Vr()},get nativeSelectionBounds(){return jn()},onNativeSelectionCopy:()=>void is(),onNativeSelectionEnter:ss,get theme(){return l()}}),Yn),Qt()&&Ie.tryResumeSessions(),{activate:()=>{M()||(D(true),lt());},deactivate:()=>{M()&&Se();},toggle:()=>{M()?Se():(D(true),lt());},isActive:()=>M(),dispose:()=>{Mr=false,a();},copyElement:async s=>{let d=Array.isArray(s)?s:[s];if(d.length===0)return false;await r.onBeforeCopy?.(d);let y=await Vn(d);return r.onAfterCopy?.(d,y),y},getState:()=>({isActive:M(),isDragging:C(),isCopying:U(),isInputMode:ue(),targetElement:de(),dragBounds:qe()?{x:qe().x,y:qe().y,width:qe().width,height:qe().height}:null}),updateTheme:s=>{let d=l(),y=Di(d,s);c(y);},getTheme:()=>l(),setAgent:s=>{let d=Ie.getOptions(),y={...d,...s,provider:s.provider??d?.provider,onAbort:(v,E)=>{if(s?.onAbort?.(v,E),E&&document.contains(E)){let F=E.getBoundingClientRect(),z=F.top+F.height/2;T(v.position.x),x(z),Lt(E),Ye(v.context.prompt),We(true),Le(true),D(true),Xe(true),M()||lt();}}};Ie.setOptions(y),Ki(!!y.provider),Ie.tryResumeSessions();}}}))};var gt=null,gm=()=>typeof window>"u"?gt:window.__REACT_GRAB__??gt??null,hm=e=>{gt=e,typeof window<"u"&&(e?window.__REACT_GRAB__=e:delete window.__REACT_GRAB__);};typeof window<"u"&&(window.__REACT_GRAB__?gt=window.__REACT_GRAB__:(gt=Or(),window.__REACT_GRAB__=gt,window.dispatchEvent(new CustomEvent("react-grab:init",{detail:gt}))));/*! Bundled license information:
43
+ ${P}`:P;w=L,b=Mn(L);}}return r.onAfterCopy?.(s,b),b},Qn=async(s,d)=>{r.onElementSelect?.(s),l().grabbedBoxes.enabled&&no(Ie(s),s),await new Promise(b=>requestAnimationFrame(b)),await Jn([s],d),ro([s]);},so=async s=>{if(s.length!==0){for(let d of s)r.onElementSelect?.(d);if(l().grabbedBoxes.enabled)for(let d of s)no(Ie(d),d);await new Promise(d=>requestAnimationFrame(d)),await Jn(s),ro(s);}},Se=ae(()=>{if(!ze()||v())return null;let s=_();return s&&!document.contains(s)?null:s}),St=ae(()=>Kn()?xt():Se());re(()=>{let s=_();if(!s)return;let d=setInterval(()=>{document.contains(s)||D(null);},100);be(()=>clearInterval(d));}),re(()=>{let s=Se();s&&vt(s);});let ao=ae(()=>{De();let s=St();if(s)return Ie(s)}),lo=(s,d)=>{let b=s+window.scrollX,w=d+window.scrollY;return {x:Math.abs(b-H()),y:Math.abs(w-z())}},co=ae(()=>{if(!v())return false;let s=lo(p(),x());return s.x>2||s.y>2}),uo=(s,d)=>{let b=s+window.scrollX,w=d+window.scrollY,k=Math.min(H(),b),P=Math.min(z(),w),L=Math.abs(b-H()),q=Math.abs(w-z());return {x:k-window.scrollX,y:P-window.scrollY,width:L,height:q}},rt=ae(()=>{if(!co())return;let s=uo(p(),x());return {borderRadius:"0px",height:s.height,transform:"none",width:s.width,x:s.x,y:s.y}}),[cs]=hn(()=>Se(),async s=>s?tt(s):null),us=ae(()=>{let s=Se(),d=K();if(!s)return (()=>{var k=Ji();return G(k,d?"Processing\u2026":"1 element"),k})();let b=ut(s),w=cs();return b&&w?[(()=>{var k=Qi(),P=k.firstChild,L=P.nextSibling;L.nextSibling;return G(k,b,L),k})(),(()=>{var k=bc();k.firstChild;return G(k,w,null),k})()]:b?(()=>{var k=Qi(),P=k.firstChild,L=P.nextSibling;L.nextSibling;return G(k,b,L),k})():(()=>{var k=Ji();return G(k,d?"Processing\u2026":"1 element"),k})()}),er=ae(()=>{if(K()||Wr()){De();let s=xt()||Se();if(s){let d=Ie(s);return {x:d.x+d.width/2+Ge(),y:we()}}return {x:he(),y:we()}}return {x:p(),y:x()}});re(Re(()=>[Se(),y()],([s,d])=>{d&&s&&d!==s&&O(null),s&&r.onElementHover?.(s);})),re(Re(()=>Se(),s=>{let d=()=>{Kr(void 0),Xr(void 0);};if(!s){d();return}Ft(s).then(b=>{if(b){for(let w of b)if(w.fileName&&Ln(w.fileName)){Kr(rn(w.fileName)),Xr(w.lineNumber);return}d();}}).catch(d);})),re(Re(()=>De(),()=>Be.updateSessionBoundsOnViewportChange())),re(Re(()=>[V(),v(),K(),ge(),Se(),rt()],([s,d,b,w,k,P])=>{r.onStateChange?.({isActive:s,isDragging:d,isCopying:b,isInputMode:w,targetElement:k,dragBounds:P?{x:P.x,y:P.y,width:P.width,height:P.height}:null});})),re(Re(()=>[ge(),p(),x(),Se()],([s,d,b,w])=>{r.onInputModeChange?.(s,{x:d,y:b,targetElement:w});})),re(Re(()=>[yo(),ao(),Se()],([s,d,b])=>{r.onSelectionBox?.(!!s,d??null,b);})),re(Re(()=>[wo(),rt()],([s,d])=>{r.onDragBox?.(!!s,d??null);})),re(Re(()=>[xo(),p(),x()],([s,d,b])=>{r.onCrosshair?.(!!s,{x:d,y:b});})),re(Re(()=>[_s(),As(),us(),er()],([s,d,b,w])=>{let k=typeof b=="string"?b:"";r.onElementLabel?.(!!s,d,{x:w.x,y:w.y,content:k});}));let ot=null,ft=s=>{s?(ot||(ot=document.createElement("style"),ot.setAttribute("data-react-grab-cursor",""),document.head.appendChild(ot)),ot.textContent=`* { cursor: ${s} !important; }`):ot&&(ot.remove(),ot=null);};re(Re(()=>[V(),K(),v(),ge(),Se()],([s,d,b,w,k])=>{ft(d?"progress":w?null:s&&b?"crosshair":s&&k?"default":s?"crosshair":null);}));let ds=s=>{let d=Date.now(),b=r.keyHoldDuration;oe(d);let w=()=>{let k=Q();if(k===null)return;let L=(Date.now()-k)/b,q=1-Math.exp(-L);(K()?Math.min(q,.95):1)<1&&(ln=requestAnimationFrame(w));};w();},cn=()=>{ln!==null&&(cancelAnimationFrame(ln),ln=null),oe(null);},fs=()=>{let s=()=>{if(!v()){Ut();return}let d=to(p(),x());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?dt=requestAnimationFrame(s):dt=null;};s();},Ut=()=>{dt!==null&&(cancelAnimationFrame(dt),dt=null);},qe=()=>{cn(),Vt=document.activeElement,an=Date.now(),j(true),r.onActivate?.();},_e=()=>{B(false),g(false),j(false),je(false),Ue(""),Ke(false),Ye(false),Ct(false),vt(null),h("idle"),ue(false),v()&&(R(false),document.body.style.userSelect=""),We&&window.clearTimeout(We),Me&&window.clearTimeout(Me),Ut(),cn(),an=null,Vt instanceof HTMLElement&&document.contains(Vt)&&Vt.focus(),Vt=null,r.onDeactivate?.();},ms=r.agent?{...r.agent,onAbort:(s,d)=>{if(r.agent?.onAbort?.(s,d),d&&document.contains(d)){let b=d.getBoundingClientRect(),w=b.top+b.height/2;A(s.position.x),C(w),vt(d),Ue(s.context.prompt),Ye(true),je(true),B(true),Ke(true),V()||qe();}}}:void 0,Be=Zi(ms),ps=s=>{Ue(s);},gs=()=>{te(null);let s=xt()||Se(),d=ge()?Gn().trim():"";if(!s){_e();return}let b=Ie(s),w=p(),k=b.x+b.width/2,P=b.y+b.height/2;if(A(k),C(P),sn()&&d){ct.delete(s),_e(),Be.startSession({element:s,prompt:d,position:{x:w,y:P},selectionBounds:b});return}je(false),Ue(""),d?ct.set(s,d):ct.delete(s);let L=ut(s);tt(s).then(q=>{Gt(k,P,()=>Qn(s,d||void 0),b,L,q??void 0,s).then(()=>{_e();});});},tr=()=>{if(te(null),!ge())return;let s=Gn().trim();if(s&&!qr()){Ct(true);return}let d=xt()||Se();d&&s&&ct.set(d,s),Ct(false),_e();},hs=()=>{Ct(false),_e();},bs=()=>{Ct(false);},ys=()=>{let s=xt()||Se();if(s){let d=Ie(s),b=d.x+d.width/2;fe(p()),xe(x()),Le(p()-b);let w=ct.get(s);w&&Ue(w);}B(true),Ke(true),Ye(true),je(true);},ws=async()=>{let s=jt();if(s.length===0)return;let d=Yn(),b=Wn(),w=Zn(),k=Qr();zt(false),Xe(),window.getSelection()?.removeAllRanges();let P=eo();s.length===1?await Gt(d,b,()=>Qn(s[0]),w,k,P):await Gt(d,b,()=>so(s),w,k,P);},xs=()=>{if(jt().length===0)return;let d=Zn(),b=d?d.x+d.width/2:Yn(),w=d?d.y+d.height/2:Wn();zt(false),Xe(),window.getSelection()?.removeAllRanges(),A(b),C(w),B(true),Ke(true),Ye(true),qe(),je(true);},fo=(s,d)=>{if(ge()||Kn())return;ue(false),A(s),C(d);let b=performance.now();if(b-T>=32&&(T=b,yc(()=>{let w=$r(s,d);D(w);})),v()){let w=to(s,d),k=w.top||w.bottom||w.left||w.right;k&&dt===null?fs():!k&&dt!==null&&Ut();}},mo=(s,d)=>{if(!ze()||K())return false;R(true);let b=s+window.scrollX,w=d+window.scrollY;return M(b),U(w),document.body.style.userSelect="none",r.onDragStart?.(b,w),true},po=(s,d)=>{if(!v())return;let b=lo(s,d),w=b.x>2||b.y>2;if(R(false),Ut(),document.body.style.userSelect="",w){ee(true);let k=uo(s,d),P=Gi(k,Bt),L=P.length>0?P:Ui(k,Bt);if(L.length>0){r.onDragEnd?.(L,k);let q=L[0],Ne=q.getBoundingClientRect(),Oe={x:Ne.left,y:Ne.top,width:Ne.width,height:Ne.height,borderRadius:"0px",transform:On(q)},Kt=ut(q),kt=Oe.x+Oe.width/2,Yt=Oe.y+Oe.height/2;sn()?(A(kt),C(Yt),vt(q),B(true),Ke(true),Ye(true),V()||qe(),je(true)):tt(q).then(Rs=>{Gt(kt,Yt,()=>so(L),Oe,Kt,Rs??void 0,q,true);});}}else {let k=$r(s,d);if(!k)return;O(k);let P=Ie(k),L=ut(k);tt(k).then(q=>{Gt(s,d,()=>Qn(k),P,L,q??void 0,k);});}},go=new AbortController,ve=go.signal,ho=new WeakSet,mt=s=>s==="Enter"||s==="NumpadEnter",pt=Object.getOwnPropertyDescriptor(KeyboardEvent.prototype,"key"),bo=false;if(pt?.get&&!pt.get.__reactGrabPatched){bo=true;let s=pt.get,d=function(){return ho.has(this)?"":s.call(this)};d.__reactGrabPatched=true,Object.defineProperty(KeyboardEvent.prototype,"key",{get:d,configurable:true});}let Et=s=>{let b=(pt?.get?pt.get.call(s):s.key)==="Enter"||mt(s.code),w=V()||u();return b&&w&&!ge()&&!F()?(ho.add(s),s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation(),true):false};document.addEventListener("keydown",Et,{signal:ve,capture:true}),document.addEventListener("keyup",Et,{signal:ve,capture:true}),document.addEventListener("keypress",Et,{signal:ve,capture:true}),window.addEventListener("keydown",s=>{Et(s);let d=mt(s.code)&&u()&&!ge();if(ge()&&Dr(s,r)&&!s.repeat){s.preventDefault(),s.stopPropagation(),je(false),Ue(""),Ke(false),Ye(false),Ct(false);return}if(ge()||nt(s,"data-react-grab-ignore-events")&&!d){s.key==="Escape"&&Be.isProcessing()&&Be.abortAllSessions();return}if(s.key==="Escape"){if(Be.isProcessing()){Be.abortAllSessions();return}if(u()){_e();return}}let b=W();if(mt(s.code)&&!u()&&!ge()&&!V()&&b&&document.contains(b)){s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation();let w=Ie(b),k=w.x+w.width/2,P=w.y+w.height/2;A(k),C(P),fe(k),xe(P),Le(0),vt(b),te(null),f([]);let L=ct.get(b);L&&Ue(L),B(true),Ke(true),Ye(true),qe(),je(true);return}if(mt(s.code)&&u()&&!ge()){s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation();let w=xt()||Se();if(w){let k=Ie(w),P=k.x+k.width/2;fe(p()),xe(x()),Le(p()-P);let L=ct.get(w);L&&Ue(L);}B(true),Ke(true),Ye(true),Me!==null&&(window.clearTimeout(Me),Me=null),V()||(We&&window.clearTimeout(We),qe()),je(true);return}if(s.key.toLowerCase()==="o"&&!ge()&&V()&&(s.metaKey||s.ctrlKey)){let w=Ur(),k=Yr();if(w)if(s.preventDefault(),s.stopPropagation(),r.onOpenFile)r.onOpenFile(w,k);else {let P=Cn(w,k);window.open(P,"_blank");}return}if(!(!r.allowActivationInsideInput&&jo(s))&&!(!Dr(s,r)&&(V()&&!F()&&(s.metaKey||s.ctrlKey)&&!Sn.includes(s.key)&&!mt(s.code)&&_e(),!mt(s.code)||!u()))){if((V()||u())&&!ge()&&(s.preventDefault(),mt(s.code)&&(s.stopPropagation(),s.stopImmediatePropagation())),V()){if(F()||s.repeat)return;Me!==null&&window.clearTimeout(Me),Me=window.setTimeout(()=>{_e();},200);return}u()&&s.repeat||(We!==null&&window.clearTimeout(We),u()||g(true),We=window.setTimeout(()=>{qe();},r.keyHoldDuration));}},{signal:ve,capture:true}),window.addEventListener("keyup",s=>{if(Et(s)||!u()&&!V()||ge())return;let d=!!(r.activationShortcut||r.activationKey),w=(()=>{if(r.activationKey){let{metaKey:L,ctrlKey:q,shiftKey:Ne,altKey:Oe}=r.activationKey;return {metaKey:!!L,ctrlKey:!!q,shiftKey:!!Ne,altKey:!!Oe}}return {metaKey:true,ctrlKey:true,shiftKey:false,altKey:false}})(),k=w.metaKey||w.ctrlKey?!s.metaKey&&!s.ctrlKey:w.shiftKey&&!s.shiftKey||w.altKey&&!s.altKey,P=r.activationShortcut?!r.activationShortcut(s):r.activationKey?r.activationKey.key?s.key.toLowerCase()===r.activationKey.key.toLowerCase()||Fr(r.activationKey.key,s.code):false:Pn(s.key,s.code);if(V()){if(k){if(F())return;_e();}else !d&&P&&Me!==null&&(window.clearTimeout(Me),Me=null);return}if(P||k){if(F())return;_e();}},{signal:ve,capture:true}),window.addEventListener("keypress",Et,{signal:ve,capture:true}),window.addEventListener("mousemove",s=>{Un(false),!nt(s,"data-react-grab-ignore-events")&&fo(s.clientX,s.clientY);},{signal:ve}),window.addEventListener("mousedown",s=>{if(s.button!==0||nt(s,"data-react-grab-ignore-events"))return;if(ge()){tr();return}mo(s.clientX,s.clientY)&&(s.preventDefault(),s.stopPropagation());},{signal:ve,capture:true}),window.addEventListener("pointerdown",s=>{s.button===0&&(nt(s,"data-react-grab-ignore-events")||!ze()||K()||ge()||s.stopPropagation());},{signal:ve,capture:true}),window.addEventListener("mouseup",s=>{s.button===0&&po(s.clientX,s.clientY);},{signal:ve}),window.addEventListener("touchmove",s=>{s.touches.length!==0&&(Un(true),!nt(s,"data-react-grab-ignore-events")&&fo(s.touches[0].clientX,s.touches[0].clientY));},{signal:ve,passive:true}),window.addEventListener("touchstart",s=>{if(s.touches.length===0||(Un(true),nt(s,"data-react-grab-ignore-events")))return;if(ge()){tr();return}mo(s.touches[0].clientX,s.touches[0].clientY)&&s.preventDefault();},{signal:ve,passive:false}),window.addEventListener("touchend",s=>{s.changedTouches.length!==0&&po(s.changedTouches[0].clientX,s.changedTouches[0].clientY);},{signal:ve}),window.addEventListener("click",s=>{nt(s,"data-react-grab-ignore-events")||(ze()||K()||ie())&&(s.preventDefault(),s.stopPropagation(),ie()&&ee(false),F()&&!K()&&!ge()&&(u()?B(false):_e()));},{signal:ve,capture:true}),document.addEventListener("visibilitychange",()=>{document.hidden&&($([]),V()&&!ge()&&an!==null&&Date.now()-an>500&&_e());},{signal:ve}),window.addEventListener("scroll",()=>{Ht(s=>s+1);},{signal:ve,capture:true}),window.addEventListener("resize",()=>{Ht(s=>s+1);},{signal:ve});let vs=setInterval(()=>{Ht(s=>s+1);},100);be(()=>clearInterval(vs)),document.addEventListener("copy",s=>{ge()||nt(s,"data-react-grab-ignore-events")||(ze()||K())&&s.preventDefault();},{signal:ve,capture:true});let un=null;document.addEventListener("selectionchange",()=>{if(ze())return;un!==null&&window.clearTimeout(un),zt(false);let s=window.getSelection();if(!s||s.isCollapsed||s.rangeCount===0){Xe();return}un=window.setTimeout(()=>{un=null;let d=window.getSelection();if(!d||d.isCollapsed||d.rangeCount===0){Xe();return}let b=d.getRangeAt(0),w=b.getBoundingClientRect();if(w.width===0&&w.height===0){Xe();return}if(!d.toString().trim()){Xe();return}let P=(()=>{if(!d.anchorNode||!d.focusNode)return false;let Yt=d.anchorNode.compareDocumentPosition(d.focusNode);return Yt&Node.DOCUMENT_POSITION_FOLLOWING?false:Yt&Node.DOCUMENT_POSITION_PRECEDING?true:d.anchorOffset>d.focusOffset})(),L=b.getClientRects();if(L.length===0){Xe();return}let q=P?L[0]:L[L.length-1],Ne=P?q.left:q.right,Oe=q.top+q.height/2;if(Go(Ne,Oe)){Xe();return}let Kt=b.commonAncestorContainer,kt=Kt.nodeType===Node.ELEMENT_NODE?Kt:Kt.parentElement;kt&&Bt(kt)?(Xn(Ne),qn(Oe),Jr([kt]),zt(true)):Xe();},150);},{signal:ve}),be(()=>{go.abort(),We&&window.clearTimeout(We),Me&&window.clearTimeout(Me),Ut(),cn(),document.body.style.userSelect="",ft(null),bo&&pt&&Object.defineProperty(KeyboardEvent.prototype,"key",pt);});let nr=Uo(zo),yo=ae(()=>!l().selectionBox.enabled||de()?false:ze()&&!v()&&!!St()),Cs=ae(()=>{let s=St();if(s)return ut(s)||void 0}),[Ss]=hn(()=>St(),async s=>s?await tt(s)??void 0:void 0),Es=ae(()=>!l().elementLabel.enabled||de()?false:ze()&&!v()&&!!St()),ks=ae(()=>(De(),m().map(s=>!s.element||!document.body.contains(s.element)?s:{...s,bounds:Ie(s.element)}))),Ts=ae(()=>(De(),E().map(s=>!s.element||!document.body.contains(s.element)?s:{...s,bounds:Ie(s.element)}))),wo=ae(()=>l().dragBox.enabled&&ze()&&co()),As=ae(()=>K()?"processing":"hover"),_s=ae(()=>!l().elementLabel.enabled||ge()?false:K()?true:ze()&&!v()&&!!St()),xo=ae(()=>l().crosshair.enabled&&ze()&&!v()&&!es()&&!Kn()),Ns=ae(()=>l().grabbedBoxes.enabled);return re(Re(l,s=>{s.hue!==0?nr.style.filter=`hue-rotate(${s.hue}deg)`:nr.style.filter="";})),l().enabled&&Bo(()=>I(hi,{get selectionVisible(){return yo()},get selectionBounds(){return ao()},get selectionFilePath(){return Ur()},get selectionLineNumber(){return Yr()},get selectionTagName(){return Cs()},get selectionComponentName(){return Ss()},get selectionLabelVisible(){return Es()},get selectionLabelStatus(){return ne()},get labelInstances(){return ks()},get dragVisible(){return wo()},get dragBounds(){return rt()},get grabbedBoxes(){return Te(()=>!!Ns())()?Ts():[]},labelZIndex:2147483647,get mouseX(){return er().x},get mouseY(){return er().y},get crosshairVisible(){return xo()},get inputValue(){return Gn()},get isInputExpanded(){return Wr()},get hasAgent(){return sn()},get isAgentConnected(){return ns()},get agentSessions(){return Be.sessions()},onAbortSession:s=>Be.abortSession(s),onInputChange:ps,onInputSubmit:()=>void gs(),onInputCancel:tr,onToggleExpand:ys,get isPendingDismiss(){return qr()},onConfirmDismiss:hs,onCancelDismiss:bs,get nativeSelectionCursorVisible(){return Zr()},get nativeSelectionCursorX(){return Yn()},get nativeSelectionCursorY(){return Wn()},get nativeSelectionTagName(){return Qr()},get nativeSelectionComponentName(){return eo()},get nativeSelectionBounds(){return Zn()},onNativeSelectionCopy:()=>void ws(),onNativeSelectionEnter:xs,get theme(){return l()}}),nr),sn()&&Be.tryResumeSessions(),{activate:()=>{V()||(B(true),qe());},deactivate:()=>{V()&&_e();},toggle:()=>{V()?_e():(B(true),qe());},isActive:()=>V(),dispose:()=>{Vr=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 Jn(d);return r.onAfterCopy?.(d,b),b},getState:()=>({isActive:V(),isDragging:v(),isCopying:K(),isInputMode:ge(),targetElement:Se(),dragBounds:rt()?{x:rt().x,y:rt().y,width:rt().width,height:rt().height}:null}),updateTheme:s=>{let d=l(),b=Xi(d,s);c(b);},getTheme:()=>l(),setAgent:s=>{let d=Be.getOptions(),b={...d,...s,provider:s.provider??d?.provider,onAbort:(w,k)=>{if(s?.onAbort?.(w,k),k&&document.contains(k)){let P=k.getBoundingClientRect(),L=P.top+P.height/2;A(w.position.x),C(L),vt(k),Ue(w.context.prompt),Ye(true),je(true),B(true),Ke(true),V()||qe();}}};Be.setOptions(b),ts(!!b.provider),b.provider?.checkConnection&&b.provider.checkConnection().then(w=>{rs(w);}),Be.tryResumeSessions();}}}))};var wt=null,Fm=()=>typeof window>"u"?wt:window.__REACT_GRAB__??wt??null,Dm=e=>{wt=e,typeof window<"u"&&(e?window.__REACT_GRAB__=e:delete window.__REACT_GRAB__);};typeof window<"u"&&(window.__REACT_GRAB__?wt=window.__REACT_GRAB__:(wt=Gr(),window.__REACT_GRAB__=wt,window.dispatchEvent(new CustomEvent("react-grab:init",{detail:wt}))));/*! Bundled license information:
44
44
 
45
45
  bippy/dist/rdt-hook-7WClMTWh.js:
46
46
  (**
@@ -91,4 +91,4 @@ bippy/dist/index.js:
91
91
  * This source code is licensed under the MIT license found in the
92
92
  * LICENSE file in the root directory of this source tree.
93
93
  *)
94
- */exports.DEFAULT_THEME=Nn;exports.formatElementInfo=Rt;exports.generateSnippet=Mn;exports.getGlobalApi=gm;exports.getStack=_t;exports.init=Or;exports.isInstrumentationActive=Nt;exports.setGlobalApi=hm;return exports;})({});
94
+ */exports.DEFAULT_THEME=$n;exports.formatElementInfo=Dt;exports.generateSnippet=Hn;exports.getGlobalApi=Fm;exports.getStack=Ft;exports.init=Gr;exports.isInstrumentationActive=$t;exports.setGlobalApi=Dm;return exports;})({});