react-grab 0.0.60 → 0.0.61

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