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.
@@ -85,8 +85,8 @@ function createMemo(fn, value, options) {
85
85
  updateComputation(c3);
86
86
  return readSignal.bind(c3);
87
87
  }
88
- function isPromise(v2) {
89
- return v2 && typeof v2 === "object" && "then" in v2;
88
+ function isPromise(v3) {
89
+ return v3 && typeof v3 === "object" && "then" in v3;
90
90
  }
91
91
  function createResource(pSource, pFetcher, pOptions) {
92
92
  let source;
@@ -105,21 +105,21 @@ function createResource(pSource, pFetcher, pOptions) {
105
105
  const contexts = /* @__PURE__ */ new Set(), [value, setValue] = (options.storage || createSignal)(options.initialValue), [error, setError] = createSignal(void 0), [track, trigger] = createSignal(void 0, {
106
106
  equals: false
107
107
  }), [state, setState] = createSignal(resolved ? "ready" : "unresolved");
108
- function loadEnd(p3, v2, error2, key) {
108
+ function loadEnd(p3, v3, error2, key) {
109
109
  if (pr === p3) {
110
110
  pr = null;
111
111
  key !== void 0 && (resolved = true);
112
- if ((p3 === initP || v2 === initP) && options.onHydrated) queueMicrotask(() => options.onHydrated(key, {
113
- value: v2
112
+ if ((p3 === initP || v3 === initP) && options.onHydrated) queueMicrotask(() => options.onHydrated(key, {
113
+ value: v3
114
114
  }));
115
115
  initP = NO_INIT;
116
- completeLoad(v2, error2);
116
+ completeLoad(v3, error2);
117
117
  }
118
- return v2;
118
+ return v3;
119
119
  }
120
- function completeLoad(v2, err) {
120
+ function completeLoad(v3, err) {
121
121
  runUpdates(() => {
122
- if (err === void 0) setValue(() => v2);
122
+ if (err === void 0) setValue(() => v3);
123
123
  setState(err !== void 0 ? "errored" : resolved ? "ready" : "unresolved");
124
124
  setError(err);
125
125
  for (const c3 of contexts.keys()) c3.decrement();
@@ -127,10 +127,10 @@ function createResource(pSource, pFetcher, pOptions) {
127
127
  }, false);
128
128
  }
129
129
  function read() {
130
- const c3 = SuspenseContext, v2 = value(), err = error();
130
+ const c3 = SuspenseContext, v3 = value(), err = error();
131
131
  if (err !== void 0 && !pr) throw err;
132
132
  if (Listener && !Listener.user && c3) ;
133
- return v2;
133
+ return v3;
134
134
  }
135
135
  function load(refetching = true) {
136
136
  if (refetching !== false && scheduled) return;
@@ -170,7 +170,7 @@ function createResource(pSource, pFetcher, pOptions) {
170
170
  setState(resolved ? "refreshing" : "pending");
171
171
  trigger();
172
172
  }, false);
173
- return p3.then((v2) => loadEnd(p3, v2, void 0, lookup), (e2) => loadEnd(p3, void 0, castError(e2), lookup));
173
+ return p3.then((v3) => loadEnd(p3, v3, void 0, lookup), (e2) => loadEnd(p3, void 0, castError(e2), lookup));
174
174
  }
175
175
  Object.defineProperties(read, {
176
176
  state: {
@@ -710,16 +710,16 @@ function style(node, value, prev) {
710
710
  typeof prev === "string" && (nodeStyle.cssText = prev = void 0);
711
711
  prev || (prev = {});
712
712
  value || (value = {});
713
- let v2, s3;
713
+ let v3, s3;
714
714
  for (s3 in prev) {
715
715
  value[s3] == null && nodeStyle.removeProperty(s3);
716
716
  delete prev[s3];
717
717
  }
718
718
  for (s3 in value) {
719
- v2 = value[s3];
720
- if (v2 !== prev[s3]) {
721
- nodeStyle.setProperty(s3, v2);
722
- prev[s3] = v2;
719
+ v3 = value[s3];
720
+ if (v3 !== prev[s3]) {
721
+ nodeStyle.setProperty(s3, v3);
722
+ prev[s3] = v3;
723
723
  }
724
724
  }
725
725
  return prev;
@@ -806,9 +806,9 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
806
806
  current = cleanChildren(parent, current, marker);
807
807
  } else if (t2 === "function") {
808
808
  createRenderEffect(() => {
809
- let v2 = value();
810
- while (typeof v2 === "function") v2 = v2();
811
- current = insertExpression(parent, v2, current, marker);
809
+ let v3 = value();
810
+ while (typeof v3 === "function") v3 = v3();
811
+ current = insertExpression(parent, v3, current, marker);
812
812
  });
813
813
  return () => current;
814
814
  } else if (Array.isArray(value)) {
@@ -888,7 +888,7 @@ function cleanChildren(parent, current, marker, replacement) {
888
888
 
889
889
  // dist/styles.css
890
890
  var styles_default = `/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
891
- @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}}`;
891
+ @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}}`;
892
892
 
893
893
  // src/utils/is-keyboard-event-triggered-by-input.ts
894
894
  var FORM_TAGS_AND_ROLES = [
@@ -1025,6 +1025,7 @@ var COPIED_LABEL_DURATION_MS = 1500;
1025
1025
  var SELECTION_CURSOR_SETTLE_DELAY_MS = 500;
1026
1026
  var BLUR_DEACTIVATION_THRESHOLD_MS = 500;
1027
1027
  var DRAG_THRESHOLD_PX = 2;
1028
+ var ELEMENT_DETECTION_THROTTLE_MS = 32;
1028
1029
  var AUTO_SCROLL_EDGE_THRESHOLD_PX = 25;
1029
1030
  var AUTO_SCROLL_SPEED_PX = 10;
1030
1031
  var Z_INDEX_LABEL = 2147483647;
@@ -3623,14 +3624,14 @@ var useAnimatedPosition = (options) => {
3623
3624
  const lerpFactor = options.lerpFactor ?? 0.3;
3624
3625
  const convergenceThreshold = options.convergenceThreshold ?? 0.5;
3625
3626
  const [x3, setX] = createSignal(options.x());
3626
- const [y2, setY] = createSignal(options.y());
3627
+ const [y3, setY] = createSignal(options.y());
3627
3628
  let targetX = options.x();
3628
3629
  let targetY = options.y();
3629
3630
  let animationFrameId = null;
3630
3631
  let hasBeenRenderedOnce = false;
3631
3632
  const animate = () => {
3632
3633
  const currentX = lerp(x3(), targetX, lerpFactor);
3633
- const currentY = lerp(y2(), targetY, lerpFactor);
3634
+ const currentY = lerp(y3(), targetY, lerpFactor);
3634
3635
  setX(currentX);
3635
3636
  setY(currentY);
3636
3637
  const hasConverged = Math.abs(currentX - targetX) < convergenceThreshold && Math.abs(currentY - targetY) < convergenceThreshold;
@@ -3661,7 +3662,7 @@ var useAnimatedPosition = (options) => {
3661
3662
  animationFrameId = null;
3662
3663
  }
3663
3664
  });
3664
- return { x: x3, y: y2 };
3665
+ return { x: x3, y: y3 };
3665
3666
  };
3666
3667
 
3667
3668
  // src/components/crosshair.tsx
@@ -3766,11 +3767,11 @@ var _tmpl$8 = /* @__PURE__ */ template(`<button class="contain-layout shrink-0 f
3766
3767
  var _tmpl$9 = /* @__PURE__ */ template(`<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>`);
3767
3768
  var _tmpl$0 = /* @__PURE__ */ template(`<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">`);
3768
3769
  var _tmpl$1 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex items-center gap-px w-fit h-fit">`);
3769
- var _tmpl$10 = /* @__PURE__ */ template(`<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`);
3770
+ var _tmpl$10 = /* @__PURE__ */ template(`<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`);
3770
3771
  var _tmpl$11 = /* @__PURE__ */ template(`<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">`);
3771
3772
  var _tmpl$12 = /* @__PURE__ */ template(`<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)>`);
3772
3773
  var _tmpl$13 = /* @__PURE__ */ template(`<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">`);
3773
- var _tmpl$14 = /* @__PURE__ */ template(`<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">`);
3774
+ var _tmpl$14 = /* @__PURE__ */ template(`<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">`);
3774
3775
  var ARROW_HEIGHT = 8;
3775
3776
  var LABEL_GAP = 4;
3776
3777
  var IDLE_TIMEOUT_MS = 400;
@@ -4297,6 +4298,9 @@ var SelectionCursor = (props) => {
4297
4298
  get selectionBounds() {
4298
4299
  return props.elementBounds;
4299
4300
  },
4301
+ get mouseX() {
4302
+ return props.x;
4303
+ },
4300
4304
  visible: true,
4301
4305
  get onSubmit() {
4302
4306
  return props.onClick;
@@ -4488,6 +4492,9 @@ var ReactGrabRenderer = (props) => {
4488
4492
  get selectionBounds() {
4489
4493
  return instance.bounds;
4490
4494
  },
4495
+ get mouseX() {
4496
+ return instance.mouseX;
4497
+ },
4491
4498
  visible: true,
4492
4499
  get status() {
4493
4500
  return instance.status;
@@ -4528,8 +4535,8 @@ var ReactGrabRenderer = (props) => {
4528
4535
  })];
4529
4536
  };
4530
4537
 
4531
- // ../../node_modules/.pnpm/bippy@0.5.21_@types+react@19.2.2_react@19.2.0/node_modules/bippy/dist/rdt-hook-BE3UuUaz.js
4532
- var e = `0.5.21`;
4538
+ // ../../node_modules/.pnpm/bippy@0.5.25_@types+react@19.2.2_react@19.2.1/node_modules/bippy/dist/rdt-hook-7WClMTWh.js
4539
+ var e = `0.5.25`;
4533
4540
  var t = `bippy-${e}`;
4534
4541
  var n = Object.defineProperty;
4535
4542
  var r2 = Object.prototype.hasOwnProperty;
@@ -4616,10 +4623,7 @@ var _ = () => {
4616
4623
  }
4617
4624
  };
4618
4625
 
4619
- // ../../node_modules/.pnpm/bippy@0.5.21_@types+react@19.2.2_react@19.2.0/node_modules/bippy/dist/install-hook-only-_lLceJhv.js
4620
- _();
4621
-
4622
- // ../../node_modules/.pnpm/bippy@0.5.21_@types+react@19.2.2_react@19.2.0/node_modules/bippy/dist/core-_xno6DOO.js
4626
+ // ../../node_modules/.pnpm/bippy@0.5.25_@types+react@19.2.2_react@19.2.1/node_modules/bippy/dist/core-CoV0JPOT.js
4623
4627
  var a2 = 0;
4624
4628
  var o2 = 1;
4625
4629
  var c2 = 5;
@@ -4632,17 +4636,6 @@ var y = 26;
4632
4636
  var b = 27;
4633
4637
  var ne = 28;
4634
4638
  var re = 30;
4635
- var k = (e2) => {
4636
- switch (e2.tag) {
4637
- case c2:
4638
- case y:
4639
- case b:
4640
- return true;
4641
- default:
4642
- return typeof e2.type == `string`;
4643
- }
4644
- };
4645
- var me = (e2) => !e2 || typeof e2 != `object` ? false : `pendingProps` in e2 && !(`containerInfo` in e2);
4646
4639
  function N(e2, t2, n2 = false) {
4647
4640
  if (!e2) return null;
4648
4641
  let r3 = t2(e2);
@@ -4704,18 +4697,6 @@ var Ee = () => {
4704
4697
  let e2 = h();
4705
4698
  return !!e2._instrumentationIsActive || o() || l();
4706
4699
  };
4707
- var De = (e2) => {
4708
- let t2 = e2.alternate;
4709
- if (!t2) return e2;
4710
- if (t2.actualStartTime && e2.actualStartTime) return t2.actualStartTime > e2.actualStartTime ? t2 : e2;
4711
- for (let t3 of $) {
4712
- let n2 = N(t3.current, (t4) => {
4713
- if (t4 === e2) return true;
4714
- });
4715
- if (n2) return n2;
4716
- }
4717
- return e2;
4718
- };
4719
4700
  var Pe = (e2) => {
4720
4701
  let n2 = h();
4721
4702
  for (let t2 of n2.renderers.values()) try {
@@ -4729,243 +4710,79 @@ var Pe = (e2) => {
4729
4710
  }
4730
4711
  return null;
4731
4712
  };
4732
- var $ = /* @__PURE__ */ new Set();
4733
4713
 
4734
- // ../../node_modules/.pnpm/bippy@0.5.21_@types+react@19.2.2_react@19.2.0/node_modules/bippy/dist/source.js
4735
- var b2 = Object.create;
4736
- var x2 = Object.defineProperty;
4737
- var S2 = Object.getOwnPropertyDescriptor;
4738
- var ee2 = Object.getOwnPropertyNames;
4739
- var te2 = Object.getPrototypeOf;
4740
- var ne2 = Object.prototype.hasOwnProperty;
4741
- var re2 = (e2, t2) => () => (t2 || e2((t2 = { exports: {} }).exports, t2), t2.exports);
4742
- var ie2 = (e2, t2, n2, r3) => {
4743
- if (t2 && typeof t2 == `object` || typeof t2 == `function`) for (var i2 = ee2(t2), a3 = 0, o3 = i2.length, s3; a3 < o3; a3++) s3 = i2[a3], !ne2.call(e2, s3) && s3 !== n2 && x2(e2, s3, { get: ((e3) => t2[e3]).bind(null, s3), enumerable: !(r3 = S2(t2, s3)) || r3.enumerable });
4714
+ // ../../node_modules/.pnpm/bippy@0.5.25_@types+react@19.2.2_react@19.2.1/node_modules/bippy/dist/source.js
4715
+ var g2 = Object.create;
4716
+ var _2 = Object.defineProperty;
4717
+ var v = Object.getOwnPropertyDescriptor;
4718
+ var y2 = Object.getOwnPropertyNames;
4719
+ var b2 = Object.getPrototypeOf;
4720
+ var x = Object.prototype.hasOwnProperty;
4721
+ var S = (e2, t2) => () => (t2 || e2((t2 = { exports: {} }).exports, t2), t2.exports);
4722
+ var ee2 = (e2, t2, n2, r3) => {
4723
+ if (t2 && typeof t2 == `object` || typeof t2 == `function`) for (var i2 = y2(t2), a3 = 0, o3 = i2.length, s3; a3 < o3; a3++) s3 = i2[a3], !x.call(e2, s3) && s3 !== n2 && _2(e2, s3, { get: ((e3) => t2[e3]).bind(null, s3), enumerable: !(r3 = v(t2, s3)) || r3.enumerable });
4744
4724
  return e2;
4745
4725
  };
4746
- var ae2 = (e2, t2, n2) => (n2 = e2 == null ? {} : b2(te2(e2)), ie2(x2(n2, `default`, { value: e2, enumerable: true }) , e2));
4747
- var oe2 = () => {
4748
- let n2 = h();
4749
- for (let t2 of [...Array.from(d), ...Array.from(n2.renderers.values())]) {
4750
- let e2 = t2.currentDispatcherRef;
4751
- if (e2 && typeof e2 == `object`) return `H` in e2 ? e2.H : e2.current;
4752
- }
4753
- return null;
4754
- };
4755
- var C2 = (t2) => {
4756
- for (let n2 of d) {
4757
- let e2 = n2.currentDispatcherRef;
4758
- e2 && typeof e2 == `object` && (`H` in e2 ? e2.H = t2 : e2.current = t2);
4759
- }
4760
- };
4761
- var w2 = (e2) => `
4762
- in ${e2}`;
4763
- var T2 = (e2, t2) => {
4764
- let n2 = w2(e2);
4765
- return t2 && (n2 += ` (at ${t2})`), n2;
4766
- };
4767
- var E = false;
4726
+ var C = (e2, t2, n2) => (n2 = e2 == null ? {} : g2(b2(e2)), ee2(_2(n2, `default`, { value: e2, enumerable: true }) , e2));
4727
+ var w = /^[a-zA-Z][a-zA-Z\d+\-.]*:/;
4728
+ var te2 = [`rsc://`, `file:///`, `webpack://`, `webpack-internal://`, `node:`, `turbopack://`, `metro://`, `/app-pages-browser/`];
4729
+ var T = `about://React/`;
4730
+ var ne2 = [`<anonymous>`, `eval`, ``];
4731
+ var re2 = /\.(jsx|tsx|ts|js)$/;
4732
+ var ie2 = /(\.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;
4733
+ var ae2 = /^\?[\w~.\-]+(?:=[^&#]*)?(?:&[\w~.\-]+(?:=[^&#]*)?)*$/;
4734
+ var E = `(at Server)`;
4735
+ var oe2 = /(^|@)\S+:\d+/;
4736
+ var se2 = /^\s*at .*(\S+:\d+|\(native\))/m;
4737
+ var ce2 = /^(eval@)?(\[native code\])?$/;
4768
4738
  var D = (e2, t2) => {
4769
- if (!e2 || E) return ``;
4770
- let n2 = Error.prepareStackTrace;
4771
- Error.prepareStackTrace = void 0, E = true;
4772
- let r3 = oe2();
4773
- C2(null);
4774
- let i2 = console.error, a3 = console.warn;
4775
- console.error = () => {
4776
- }, console.warn = () => {
4777
- };
4778
- try {
4779
- let n3 = { DetermineComponentFrameRoot() {
4780
- let n4;
4781
- try {
4782
- if (t2) {
4783
- let t3 = function() {
4784
- throw Error();
4785
- };
4786
- if (Object.defineProperty(t3.prototype, `props`, { set: function() {
4787
- throw Error();
4788
- } }), typeof Reflect == `object` && Reflect.construct) {
4789
- try {
4790
- Reflect.construct(t3, []);
4791
- } catch (e3) {
4792
- n4 = e3;
4793
- }
4794
- Reflect.construct(e2, [], t3);
4795
- } else {
4796
- try {
4797
- t3.call();
4798
- } catch (e3) {
4799
- n4 = e3;
4800
- }
4801
- e2.call(t3.prototype);
4802
- }
4803
- } else {
4804
- try {
4805
- throw Error();
4806
- } catch (e3) {
4807
- n4 = e3;
4808
- }
4809
- let t3 = e2();
4810
- t3 && typeof t3.catch == `function` && t3.catch(() => {
4811
- });
4812
- }
4813
- } catch (e3) {
4814
- if (e3 instanceof Error && n4 instanceof Error && typeof e3.stack == `string`) return [e3.stack, n4.stack];
4815
- }
4816
- return [null, null];
4817
- } };
4818
- n3.DetermineComponentFrameRoot.displayName = `DetermineComponentFrameRoot`;
4819
- let r4 = Object.getOwnPropertyDescriptor(n3.DetermineComponentFrameRoot, `name`);
4820
- r4?.configurable && Object.defineProperty(n3.DetermineComponentFrameRoot, `name`, { value: `DetermineComponentFrameRoot` });
4821
- let [i3, a4] = n3.DetermineComponentFrameRoot();
4822
- if (i3 && a4) {
4823
- let t3 = i3.split(`
4824
- `), n4 = a4.split(`
4825
- `), r5 = 0, o4 = 0;
4826
- for (; r5 < t3.length && !t3[r5].includes(`DetermineComponentFrameRoot`); ) r5++;
4827
- for (; o4 < n4.length && !n4[o4].includes(`DetermineComponentFrameRoot`); ) o4++;
4828
- if (r5 === t3.length || o4 === n4.length) for (r5 = t3.length - 1, o4 = n4.length - 1; r5 >= 1 && o4 >= 0 && t3[r5] !== n4[o4]; ) o4--;
4829
- for (; r5 >= 1 && o4 >= 0; r5--, o4--) if (t3[r5] !== n4[o4]) {
4830
- if (r5 !== 1 || o4 !== 1) do
4831
- if (r5--, o4--, o4 < 0 || t3[r5] !== n4[o4]) {
4832
- let n5 = `
4833
- ${t3[r5].replace(` at new `, ` at `)}`, i4 = Te(e2);
4834
- return i4 && n5.includes(`<anonymous>`) && (n5 = n5.replace(`<anonymous>`, i4)), n5;
4835
- }
4836
- while (r5 >= 1 && o4 >= 0);
4837
- break;
4838
- }
4839
- }
4840
- } finally {
4841
- E = false, Error.prepareStackTrace = n2, C2(r3), console.error = i2, console.warn = a3;
4842
- }
4843
- let o3 = e2 ? Te(e2) : ``, s3 = o3 ? w2(o3) : ``;
4844
- return s3;
4845
- };
4846
- var se2 = (e2, t2) => {
4847
- let m3 = e2.tag, h3 = ``;
4848
- switch (m3) {
4849
- case ne:
4850
- h3 = w2(`Activity`);
4851
- break;
4852
- case o2:
4853
- h3 = D(e2.type, true);
4854
- break;
4855
- case f2:
4856
- h3 = D(e2.type.render, false);
4857
- break;
4858
- case a2:
4859
- case h2:
4860
- h3 = D(e2.type, false);
4861
- break;
4862
- case c2:
4863
- case y:
4864
- case b:
4865
- h3 = w2(e2.type);
4866
- break;
4867
- case ee:
4868
- h3 = w2(`Lazy`);
4869
- break;
4870
- case p2:
4871
- h3 = e2.child !== t2 && t2 !== null ? w2(`Suspense Fallback`) : w2(`Suspense`);
4872
- break;
4873
- case te:
4874
- h3 = w2(`SuspenseList`);
4875
- break;
4876
- case re:
4877
- h3 = w2(`ViewTransition`);
4878
- break;
4879
- default:
4880
- return ``;
4881
- }
4882
- return h3;
4883
- };
4884
- var ce2 = (e2) => {
4885
- try {
4886
- let t2 = ``, n2 = e2, r3 = null;
4887
- do {
4888
- t2 += se2(n2, r3);
4889
- let e3 = n2._debugInfo;
4890
- if (e3 && Array.isArray(e3)) for (let n3 = e3.length - 1; n3 >= 0; n3--) {
4891
- let r4 = e3[n3];
4892
- typeof r4.name == `string` && (t2 += T2(r4.name, r4.env));
4893
- }
4894
- r3 = n2, n2 = n2.return;
4895
- } while (n2);
4896
- return t2;
4897
- } catch (e3) {
4898
- return e3 instanceof Error ? `
4899
- Error generating stack: ${e3.message}
4900
- ${e3.stack}` : ``;
4901
- }
4902
- };
4903
- var le2 = (e2) => {
4904
- let t2 = Error.prepareStackTrace;
4905
- Error.prepareStackTrace = void 0;
4906
- let n2 = e2;
4907
- if (!n2) return ``;
4908
- Error.prepareStackTrace = t2, n2.startsWith(`Error: react-stack-top-frame
4909
- `) && (n2 = n2.slice(29));
4910
- let r3 = n2.indexOf(`
4911
- `);
4912
- if (r3 !== -1 && (n2 = n2.slice(r3 + 1)), r3 = Math.max(n2.indexOf(`react_stack_bottom_frame`), n2.indexOf(`react-stack-bottom-frame`)), r3 !== -1 && (r3 = n2.lastIndexOf(`
4913
- `, r3)), r3 !== -1) n2 = n2.slice(0, r3);
4914
- else return ``;
4915
- return n2;
4916
- };
4917
- var O2 = /(^|@)\S+:\d+/;
4918
- var k2 = /^\s*at .*(\S+:\d+|\(native\))/m;
4919
- var ue2 = /^(eval@)?(\[native code\])?$/;
4920
- var j2 = (e2, t2) => {
4921
- if (t2?.includeInElement !== false) {
4739
+ {
4922
4740
  let n2 = e2.split(`
4923
4741
  `), r3 = [];
4924
4742
  for (let e3 of n2) if (/^\s*at\s+/.test(e3)) {
4925
- let t3 = P2(e3, void 0)[0];
4743
+ let t3 = A(e3, void 0)[0];
4926
4744
  t3 && r3.push(t3);
4927
4745
  } else if (/^\s*in\s+/.test(e3)) {
4928
4746
  let t3 = e3.replace(/^\s*in\s+/, ``).replace(/\s*\(at .*\)$/, ``);
4929
- r3.push({ function: t3, raw: e3 });
4930
- } else if (e3.match(O2)) {
4931
- let t3 = F2(e3, void 0)[0];
4747
+ r3.push({ functionName: t3, source: e3 });
4748
+ } else if (e3.match(oe2)) {
4749
+ let t3 = j(e3, void 0)[0];
4932
4750
  t3 && r3.push(t3);
4933
4751
  }
4934
- return N2(r3, t2);
4752
+ return k(r3, t2);
4935
4753
  }
4936
- return e2.match(k2) ? P2(e2, t2) : F2(e2, t2);
4937
4754
  };
4938
- var M2 = (e2) => {
4755
+ var O2 = (e2) => {
4939
4756
  if (!e2.includes(`:`)) return [e2, void 0, void 0];
4940
4757
  let t2 = /(.+?)(?::(\d+))?(?::(\d+))?$/, n2 = t2.exec(e2.replace(/[()]/g, ``));
4941
4758
  return [n2[1], n2[2] || void 0, n2[3] || void 0];
4942
4759
  };
4943
- var N2 = (e2, t2) => t2 && t2.slice != null ? Array.isArray(t2.slice) ? e2.slice(t2.slice[0], t2.slice[1]) : e2.slice(0, t2.slice) : e2;
4944
- var P2 = (e2, t2) => {
4945
- let n2 = N2(e2.split(`
4946
- `).filter((e3) => !!e3.match(k2)), t2);
4760
+ var k = (e2, t2) => t2 && t2.slice != null ? Array.isArray(t2.slice) ? e2.slice(t2.slice[0], t2.slice[1]) : e2.slice(0, t2.slice) : e2;
4761
+ var A = (e2, t2) => {
4762
+ let n2 = k(e2.split(`
4763
+ `).filter((e3) => !!e3.match(se2)), t2);
4947
4764
  return n2.map((e3) => {
4948
4765
  let t3 = e3;
4949
4766
  t3.includes(`(eval `) && (t3 = t3.replace(/eval code/g, `eval`).replace(/(\(eval at [^()]*)|(,.*$)/g, ``));
4950
4767
  let n3 = t3.replace(/^\s+/, ``).replace(/\(eval code/g, `(`).replace(/^.*?\s+/, ``), r3 = n3.match(/ (\(.+\)$)/);
4951
4768
  n3 = r3 ? n3.replace(r3[0], ``) : n3;
4952
- let i2 = M2(r3 ? r3[1] : n3), a3 = r3 && n3 || void 0, o3 = [`eval`, `<anonymous>`].includes(i2[0]) ? void 0 : i2[0];
4953
- return { function: a3, file: o3, line: i2[1] ? +i2[1] : void 0, col: i2[2] ? +i2[2] : void 0, raw: t3 };
4769
+ let i2 = O2(r3 ? r3[1] : n3), a3 = r3 && n3 || void 0, o3 = [`eval`, `<anonymous>`].includes(i2[0]) ? void 0 : i2[0];
4770
+ return { functionName: a3, fileName: o3, lineNumber: i2[1] ? +i2[1] : void 0, columnNumber: i2[2] ? +i2[2] : void 0, source: t3 };
4954
4771
  });
4955
4772
  };
4956
- var F2 = (e2, t2) => {
4957
- let n2 = N2(e2.split(`
4958
- `).filter((e3) => !e3.match(ue2)), t2);
4773
+ var j = (e2, t2) => {
4774
+ let n2 = k(e2.split(`
4775
+ `).filter((e3) => !e3.match(ce2)), t2);
4959
4776
  return n2.map((e3) => {
4960
4777
  let t3 = e3;
4961
- if (t3.includes(` > eval`) && (t3 = t3.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, `:$1`)), !t3.includes(`@`) && !t3.includes(`:`)) return { function: t3 };
4778
+ if (t3.includes(` > eval`) && (t3 = t3.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, `:$1`)), !t3.includes(`@`) && !t3.includes(`:`)) return { functionName: t3 };
4962
4779
  {
4963
- let e4 = /(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/, n3 = t3.match(e4), r3 = n3 && n3[1] ? n3[1] : void 0, i2 = M2(t3.replace(e4, ``));
4964
- return { function: r3, file: i2[0], line: i2[1] ? +i2[1] : void 0, col: i2[2] ? +i2[2] : void 0, raw: t3 };
4780
+ let e4 = /(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/, n3 = t3.match(e4), r3 = n3 && n3[1] ? n3[1] : void 0, i2 = O2(t3.replace(e4, ``));
4781
+ return { functionName: r3, fileName: i2[0], lineNumber: i2[1] ? +i2[1] : void 0, columnNumber: i2[2] ? +i2[2] : void 0, source: t3 };
4965
4782
  }
4966
4783
  });
4967
4784
  };
4968
- var me2 = re2((exports, t2) => {
4785
+ var pe = S((exports, t2) => {
4969
4786
  (function(n2, r3) {
4970
4787
  typeof exports == `object` && t2 !== void 0 ? r3(exports) : typeof define == `function` && define.amd ? define([`exports`], r3) : (n2 = typeof globalThis < `u` ? globalThis : n2 || self, r3(n2.sourcemapCodec = {}));
4971
4788
  })(void 0, function(e2) {
@@ -5056,10 +4873,10 @@ var me2 = re2((exports, t2) => {
5056
4873
  }
5057
4874
  function h3(e3) {
5058
4875
  let t4 = new d3();
5059
- for (let n3 = 0; n3 < e3.length; ) n3 = g3(e3, n3, t4, [0]);
4876
+ for (let n3 = 0; n3 < e3.length; ) n3 = g4(e3, n3, t4, [0]);
5060
4877
  return t4.flush();
5061
4878
  }
5062
- function g3(e3, n3, r4, i3) {
4879
+ function g4(e3, n3, r4, i3) {
5063
4880
  let a4 = e3[n3], { 0: o4, 1: c4, 2: l4, 3: u4, 4: d4, vars: f4 } = a4;
5064
4881
  n3 > 0 && r4.write(t3), i3[0] = s3(r4, o4, i3[0]), s3(r4, c4, 0), s3(r4, d4, 0);
5065
4882
  let p4 = a4.length === 6 ? 1 : 0;
@@ -5068,12 +4885,12 @@ var me2 = re2((exports, t2) => {
5068
4885
  for (n3++; n3 < e3.length; ) {
5069
4886
  let t4 = e3[n3], { 0: a5, 1: o5 } = t4;
5070
4887
  if (a5 > l4 || a5 === l4 && o5 >= u4) break;
5071
- n3 = g3(e3, n3, r4, i3);
4888
+ n3 = g4(e3, n3, r4, i3);
5072
4889
  }
5073
4890
  return r4.write(t3), i3[0] = s3(r4, l4, i3[0]), s3(r4, u4, 0), n3;
5074
4891
  }
5075
- function _3(e3) {
5076
- let { length: t4 } = e3, n3 = new f3(e3), r4 = [], i3 = [], a4 = 0, s4 = 0, l4 = 0, u4 = 0, d4 = 0, m4 = 0, h4 = 0, g4 = 0;
4892
+ function _4(e3) {
4893
+ let { length: t4 } = e3, n3 = new f3(e3), r4 = [], i3 = [], a4 = 0, s4 = 0, l4 = 0, u4 = 0, d4 = 0, m4 = 0, h4 = 0, g5 = 0;
5077
4894
  do {
5078
4895
  let e4 = n3.indexOf(`;`), t5 = 0;
5079
4896
  for (; n3.pos < e4; n3.pos++) {
@@ -5082,12 +4899,12 @@ var me2 = re2((exports, t2) => {
5082
4899
  e5[2] = a4, e5[3] = t5;
5083
4900
  continue;
5084
4901
  }
5085
- let f4 = o3(n3, 0), _4 = f4 & 1, v3 = f4 & 2, y3 = f4 & 4, b4 = null, x4 = p3, S4;
5086
- if (_4) {
4902
+ let f4 = o3(n3, 0), _5 = f4 & 1, v4 = f4 & 2, y4 = f4 & 4, b4 = null, x4 = p3, S4;
4903
+ if (_5) {
5087
4904
  let e5 = o3(n3, s4);
5088
4905
  l4 = o3(n3, s4 === e5 ? l4 : 0), s4 = e5, S4 = [a4, t5, 0, 0, e5, l4];
5089
4906
  } else S4 = [a4, t5, 0, 0];
5090
- if (S4.isScope = !!y3, v3) {
4907
+ if (S4.isScope = !!y4, v4) {
5091
4908
  let e5 = u4, t6 = d4;
5092
4909
  u4 = o3(n3, u4);
5093
4910
  let r5 = e5 === u4;
@@ -5096,15 +4913,15 @@ var me2 = re2((exports, t2) => {
5096
4913
  if (S4.callsite = b4, c3(n3, e4)) {
5097
4914
  x4 = [];
5098
4915
  do {
5099
- h4 = a4, g4 = t5;
4916
+ h4 = a4, g5 = t5;
5100
4917
  let e5 = o3(n3, 0), r5;
5101
4918
  if (e5 < -1) {
5102
4919
  r5 = [[o3(n3, 0)]];
5103
4920
  for (let t6 = -1; t6 > e5; t6--) {
5104
4921
  let e6 = h4;
5105
- h4 = o3(n3, h4), g4 = o3(n3, h4 === e6 ? g4 : 0);
4922
+ h4 = o3(n3, h4), g5 = o3(n3, h4 === e6 ? g5 : 0);
5106
4923
  let t7 = o3(n3, 0);
5107
- r5.push([t7, h4, g4]);
4924
+ r5.push([t7, h4, g5]);
5108
4925
  }
5109
4926
  } else r5 = [[e5]];
5110
4927
  x4.push(r5);
@@ -5116,13 +4933,13 @@ var me2 = re2((exports, t2) => {
5116
4933
  } while (n3.pos < t4);
5117
4934
  return r4;
5118
4935
  }
5119
- function v2(e3) {
4936
+ function v3(e3) {
5120
4937
  if (e3.length === 0) return ``;
5121
4938
  let t4 = new d3();
5122
- for (let n3 = 0; n3 < e3.length; ) n3 = y2(e3, n3, t4, [0, 0, 0, 0, 0, 0, 0]);
4939
+ for (let n3 = 0; n3 < e3.length; ) n3 = y3(e3, n3, t4, [0, 0, 0, 0, 0, 0, 0]);
5123
4940
  return t4.flush();
5124
4941
  }
5125
- function y2(e3, n3, r4, i3) {
4942
+ function y3(e3, n3, r4, i3) {
5126
4943
  let a4 = e3[n3], { 0: o4, 1: c4, 2: l4, 3: u4, isScope: d4, callsite: f4, bindings: p4 } = a4;
5127
4944
  i3[0] < o4 ? (b3(r4, i3[0], o4), i3[0] = o4, i3[1] = 0) : n3 > 0 && r4.write(t3), i3[1] = s3(r4, a4[1], i3[1]);
5128
4945
  let m4 = (a4.length === 6 ? 1 : 0) | (f4 ? 2 : 0) | (d4 ? 4 : 0);
@@ -5147,7 +4964,7 @@ var me2 = re2((exports, t2) => {
5147
4964
  for (n3++; n3 < e3.length; ) {
5148
4965
  let t4 = e3[n3], { 0: a5, 1: o5 } = t4;
5149
4966
  if (a5 > l4 || a5 === l4 && o5 >= u4) break;
5150
- n3 = y2(e3, n3, r4, i3);
4967
+ n3 = y3(e3, n3, r4, i3);
5151
4968
  }
5152
4969
  return i3[0] < l4 ? (b3(r4, i3[0], l4), i3[0] = l4, i3[1] = 0) : r4.write(t3), i3[1] = s3(r4, u4, i3[1]), n3;
5153
4970
  }
@@ -5174,7 +4991,7 @@ var me2 = re2((exports, t2) => {
5174
4991
  function ee3(e3, t4) {
5175
4992
  return e3[0] - t4[0];
5176
4993
  }
5177
- function te3(e3) {
4994
+ function C3(e3) {
5178
4995
  let r4 = new d3(), i3 = 0, a4 = 0, o4 = 0, c4 = 0;
5179
4996
  for (let l4 = 0; l4 < e3.length; l4++) {
5180
4997
  let u4 = e3[l4];
@@ -5187,18 +5004,18 @@ var me2 = re2((exports, t2) => {
5187
5004
  }
5188
5005
  return r4.flush();
5189
5006
  }
5190
- e2.decode = x3, e2.decodeGeneratedRanges = _3, e2.decodeOriginalScopes = m3, e2.encode = te3, e2.encodeGeneratedRanges = v2, e2.encodeOriginalScopes = h3, Object.defineProperty(e2, `__esModule`, { value: true });
5007
+ e2.decode = x3, e2.decodeGeneratedRanges = _4, e2.decodeOriginalScopes = m3, e2.encode = C3, e2.encodeGeneratedRanges = v3, e2.encodeOriginalScopes = h3, Object.defineProperty(e2, `__esModule`, { value: true });
5191
5008
  });
5192
5009
  });
5193
- var z2 = ae2(me2());
5194
- var B2 = /^[a-zA-Z][a-zA-Z\d+\-.]*:/;
5195
- var he2 = /^data:application\/json[^,]+base64,/;
5196
- var ge2 = /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/;
5197
- var V2 = typeof WeakRef < `u`;
5198
- var H2 = /* @__PURE__ */ new Map();
5199
- var U2 = /* @__PURE__ */ new Map();
5200
- var _e2 = (e2) => V2 && e2 instanceof WeakRef;
5201
- var W2 = (e2, t2, n2, r3) => {
5010
+ var F2 = C(pe());
5011
+ var I2 = /^[a-zA-Z][a-zA-Z\d+\-.]*:/;
5012
+ var me = /^data:application\/json[^,]+base64,/;
5013
+ var he = /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/;
5014
+ var L = typeof WeakRef < `u`;
5015
+ var R = /* @__PURE__ */ new Map();
5016
+ var z = /* @__PURE__ */ new Map();
5017
+ var ge = (e2) => L && e2 instanceof WeakRef;
5018
+ var B = (e2, t2, n2, r3) => {
5202
5019
  if (n2 < 0 || n2 >= e2.length) return null;
5203
5020
  let i2 = e2[n2];
5204
5021
  if (!i2 || i2.length === 0) return null;
@@ -5211,49 +5028,49 @@ var W2 = (e2, t2, n2, r3) => {
5211
5028
  let l3 = t2[o3];
5212
5029
  return l3 ? { columnNumber: c3, fileName: l3, lineNumber: s3 + 1 } : null;
5213
5030
  };
5214
- var G2 = (e2, t2, n2) => {
5031
+ var V = (e2, t2, n2) => {
5215
5032
  if (e2.sections) {
5216
5033
  let r3 = null;
5217
5034
  for (let i3 of e2.sections) if (t2 > i3.offset.line || t2 === i3.offset.line && n2 >= i3.offset.column) r3 = i3;
5218
5035
  else break;
5219
5036
  if (!r3) return null;
5220
5037
  let i2 = t2 - r3.offset.line, a3 = t2 === r3.offset.line ? n2 - r3.offset.column : n2;
5221
- return W2(r3.map.mappings, r3.map.sources, i2, a3);
5038
+ return B(r3.map.mappings, r3.map.sources, i2, a3);
5222
5039
  }
5223
- return W2(e2.mappings, e2.sources, t2 - 1, n2);
5040
+ return B(e2.mappings, e2.sources, t2 - 1, n2);
5224
5041
  };
5225
- var ve2 = (e2, t2) => {
5042
+ var _e = (e2, t2) => {
5226
5043
  let n2 = t2.split(`
5227
5044
  `), r3;
5228
5045
  for (let e3 = n2.length - 1; e3 >= 0 && !r3; e3--) {
5229
- let t3 = n2[e3].match(ge2);
5046
+ let t3 = n2[e3].match(he);
5230
5047
  t3 && (r3 = t3[1] || t3[2]);
5231
5048
  }
5232
5049
  if (!r3) return null;
5233
- let i2 = B2.test(r3);
5234
- if (!(he2.test(r3) || i2 || r3.startsWith(`/`))) {
5050
+ let i2 = I2.test(r3);
5051
+ if (!(me.test(r3) || i2 || r3.startsWith(`/`))) {
5235
5052
  let t3 = e2.split(`/`);
5236
5053
  t3[t3.length - 1] = r3, r3 = t3.join(`/`);
5237
5054
  }
5238
5055
  return r3;
5239
5056
  };
5240
- var ye2 = (e2) => ({ file: e2.file, mappings: (0, z2.decode)(e2.mappings), names: e2.names, sourceRoot: e2.sourceRoot, sources: e2.sources, sourcesContent: e2.sourcesContent, version: 3 });
5241
- var be2 = (e2) => {
5242
- let t2 = e2.sections.map(({ map: e3, offset: t3 }) => ({ map: { ...e3, mappings: (0, z2.decode)(e3.mappings) }, offset: t3 })), n2 = /* @__PURE__ */ new Set();
5057
+ var ve = (e2) => ({ file: e2.file, mappings: (0, F2.decode)(e2.mappings), names: e2.names, sourceRoot: e2.sourceRoot, sources: e2.sources, sourcesContent: e2.sourcesContent, version: 3 });
5058
+ var ye = (e2) => {
5059
+ let t2 = e2.sections.map(({ map: e3, offset: t3 }) => ({ map: { ...e3, mappings: (0, F2.decode)(e3.mappings) }, offset: t3 })), n2 = /* @__PURE__ */ new Set();
5243
5060
  for (let e3 of t2) for (let t3 of e3.map.sources) n2.add(t3);
5244
5061
  return { file: e2.file, mappings: [], names: [], sections: t2, sourceRoot: void 0, sources: Array.from(n2), sourcesContent: void 0, version: 3 };
5245
5062
  };
5246
- var K = (e2) => {
5063
+ var H = (e2) => {
5247
5064
  if (!e2) return false;
5248
5065
  let t2 = e2.trim();
5249
5066
  if (!t2) return false;
5250
- let n2 = t2.match(B2);
5067
+ let n2 = t2.match(I2);
5251
5068
  if (!n2) return true;
5252
5069
  let r3 = n2[0].toLowerCase();
5253
5070
  return r3 === `http:` || r3 === `https:`;
5254
5071
  };
5255
- var q = async (e2, t2 = fetch) => {
5256
- if (!K(e2)) return null;
5072
+ var U = async (e2, t2 = fetch) => {
5073
+ if (!H(e2)) return null;
5257
5074
  let n2;
5258
5075
  try {
5259
5076
  let r4 = await t2(e2);
@@ -5262,105 +5079,284 @@ var q = async (e2, t2 = fetch) => {
5262
5079
  return null;
5263
5080
  }
5264
5081
  if (!n2) return null;
5265
- let r3 = ve2(e2, n2);
5266
- if (!r3 || !K(r3)) return null;
5082
+ let r3 = _e(e2, n2);
5083
+ if (!r3 || !H(r3)) return null;
5267
5084
  try {
5268
5085
  let e3 = await t2(r3), n3 = await e3.json();
5269
- return `sections` in n3 ? be2(n3) : ye2(n3);
5086
+ return `sections` in n3 ? ye(n3) : ve(n3);
5270
5087
  } catch {
5271
5088
  return null;
5272
5089
  }
5273
5090
  };
5274
- var J = async (e2, t2 = true, n2) => {
5275
- if (t2 && H2.has(e2)) {
5276
- let t3 = H2.get(e2);
5091
+ var W = async (e2, t2 = true, n2) => {
5092
+ if (t2 && R.has(e2)) {
5093
+ let t3 = R.get(e2);
5277
5094
  if (t3 == null) return null;
5278
- if (_e2(t3)) {
5095
+ if (ge(t3)) {
5279
5096
  let n3 = t3.deref();
5280
5097
  if (n3) return n3;
5281
- H2.delete(e2);
5098
+ R.delete(e2);
5282
5099
  } else return t3;
5283
5100
  }
5284
- if (t2 && U2.has(e2)) return U2.get(e2);
5285
- let r3 = q(e2, n2);
5286
- t2 && U2.set(e2, r3);
5101
+ if (t2 && z.has(e2)) return z.get(e2);
5102
+ let r3 = U(e2, n2);
5103
+ t2 && z.set(e2, r3);
5287
5104
  let i2 = await r3;
5288
- return t2 && U2.delete(e2), t2 && (i2 === null ? H2.set(e2, null) : H2.set(e2, V2 ? new WeakRef(i2) : i2)), i2;
5105
+ return t2 && z.delete(e2), t2 && (i2 === null ? R.set(e2, null) : R.set(e2, L ? new WeakRef(i2) : i2)), i2;
5289
5106
  };
5290
- var xe2 = /^[a-zA-Z][a-zA-Z\d+\-.]*:/;
5291
- var Se2 = [`rsc://`, `file:///`, `webpack://`, `webpack-internal://`, `node:`, `turbopack://`, `metro://`, `/app-pages-browser/`];
5292
- var Ce2 = `about://React/`;
5293
- var we2 = [`<anonymous>`, `eval`, ``];
5294
- var Te2 = /\.(jsx|tsx|ts|js)$/;
5295
- var Ee2 = /(\.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;
5296
- var De2 = /^\?[\w~.\-]+(?:=[^&#]*)?(?:&[\w~.\-]+(?:=[^&#]*)?)*$/;
5297
- var Y = (e2) => e2?.fileName != null;
5298
- var Oe = (e2) => e2._debugStack instanceof Error && typeof e2._debugStack?.stack == `string`;
5299
- var ke2 = (e2) => {
5300
- let t2 = e2._debugSource;
5301
- return t2 ? typeof t2 == `object` && !!t2 && `fileName` in t2 && typeof t2.fileName == `string` && `lineNumber` in t2 && typeof t2.lineNumber == `number` : false;
5302
- };
5303
- var Ae2 = async (e2, t2 = true, n2) => {
5304
- if (ke2(e2)) {
5305
- let t3 = e2._debugSource;
5306
- return t3 || null;
5107
+ var G = async (e2, t2 = true, n2) => await Promise.all(e2.map(async (e3) => {
5108
+ if (!e3.fileName) return e3;
5109
+ let r3 = await W(e3.fileName, t2, n2);
5110
+ if (!r3 || typeof e3.lineNumber != `number` || typeof e3.columnNumber != `number`) return e3;
5111
+ let i2 = V(r3, e3.lineNumber, e3.columnNumber);
5112
+ return i2 ? { ...e3, source: i2.fileName && e3.source ? e3.source.replace(e3.fileName, i2.fileName) : e3.source, fileName: i2.fileName, lineNumber: i2.lineNumber, columnNumber: i2.columnNumber, isSymbolicated: true } : e3;
5113
+ }));
5114
+ var K = (e2) => e2._debugStack instanceof Error && typeof e2._debugStack?.stack == `string`;
5115
+ var be = () => {
5116
+ let n2 = h();
5117
+ for (let t2 of [...Array.from(d), ...Array.from(n2.renderers.values())]) {
5118
+ let e2 = t2.currentDispatcherRef;
5119
+ if (e2 && typeof e2 == `object`) return `H` in e2 ? e2.H : e2.current;
5307
5120
  }
5308
- let r3 = X2(e2), i2 = await Z(r3, 2 ** 53 - 1, t2, n2);
5309
- if (!i2 || i2.length === 0) return null;
5310
- for (let e3 of i2) if (Y(e3)) return e3;
5311
5121
  return null;
5312
5122
  };
5313
- var X2 = (e2) => Oe(e2) ? le2(e2._debugStack.stack) : ce2(e2);
5314
- var Z = async (e2, t2 = 2 ** 53 - 1, n2 = true, r3) => {
5315
- let i2 = j2(e2, { slice: t2 }), a3 = [];
5316
- for (let e3 of i2) {
5317
- if (!e3?.file) {
5318
- a3.push({ fileName: void 0, lineNumber: e3?.line, columnNumber: e3?.col, functionName: e3?.function });
5319
- continue;
5320
- }
5321
- let t3 = await J(e3.file, n2, r3);
5322
- if (t3 && typeof e3.line == `number` && typeof e3.col == `number`) {
5323
- let n3 = G2(t3, e3.line, e3.col);
5324
- if (n3) {
5325
- a3.push(n3);
5326
- continue;
5123
+ var q = (t2) => {
5124
+ for (let n2 of d) {
5125
+ let e2 = n2.currentDispatcherRef;
5126
+ e2 && typeof e2 == `object` && (`H` in e2 ? e2.H = t2 : e2.current = t2);
5127
+ }
5128
+ };
5129
+ var J = (e2) => `
5130
+ in ${e2}`;
5131
+ var Y = (e2, t2) => {
5132
+ let n2 = J(e2);
5133
+ return t2 && (n2 += ` (at ${t2})`), n2;
5134
+ };
5135
+ var X = false;
5136
+ var Z = (e2, t2) => {
5137
+ if (!e2 || X) return ``;
5138
+ let n2 = Error.prepareStackTrace;
5139
+ Error.prepareStackTrace = void 0, X = true;
5140
+ let r3 = be();
5141
+ q(null);
5142
+ let i2 = console.error, a3 = console.warn;
5143
+ console.error = () => {
5144
+ }, console.warn = () => {
5145
+ };
5146
+ try {
5147
+ let n3 = { DetermineComponentFrameRoot() {
5148
+ let n4;
5149
+ try {
5150
+ if (t2) {
5151
+ let t3 = function() {
5152
+ throw Error();
5153
+ };
5154
+ if (Object.defineProperty(t3.prototype, `props`, { set: function() {
5155
+ throw Error();
5156
+ } }), typeof Reflect == `object` && Reflect.construct) {
5157
+ try {
5158
+ Reflect.construct(t3, []);
5159
+ } catch (e3) {
5160
+ n4 = e3;
5161
+ }
5162
+ Reflect.construct(e2, [], t3);
5163
+ } else {
5164
+ try {
5165
+ t3.call();
5166
+ } catch (e3) {
5167
+ n4 = e3;
5168
+ }
5169
+ e2.call(t3.prototype);
5170
+ }
5171
+ } else {
5172
+ try {
5173
+ throw Error();
5174
+ } catch (e3) {
5175
+ n4 = e3;
5176
+ }
5177
+ let t3 = e2();
5178
+ t3 && typeof t3.catch == `function` && t3.catch(() => {
5179
+ });
5180
+ }
5181
+ } catch (e3) {
5182
+ if (e3 instanceof Error && n4 instanceof Error && typeof e3.stack == `string`) return [e3.stack, n4.stack];
5183
+ }
5184
+ return [null, null];
5185
+ } };
5186
+ n3.DetermineComponentFrameRoot.displayName = `DetermineComponentFrameRoot`;
5187
+ let r4 = Object.getOwnPropertyDescriptor(n3.DetermineComponentFrameRoot, `name`);
5188
+ r4?.configurable && Object.defineProperty(n3.DetermineComponentFrameRoot, `name`, { value: `DetermineComponentFrameRoot` });
5189
+ let [i3, a4] = n3.DetermineComponentFrameRoot();
5190
+ if (i3 && a4) {
5191
+ let t3 = i3.split(`
5192
+ `), n4 = a4.split(`
5193
+ `), r5 = 0, o4 = 0;
5194
+ for (; r5 < t3.length && !t3[r5].includes(`DetermineComponentFrameRoot`); ) r5++;
5195
+ for (; o4 < n4.length && !n4[o4].includes(`DetermineComponentFrameRoot`); ) o4++;
5196
+ if (r5 === t3.length || o4 === n4.length) for (r5 = t3.length - 1, o4 = n4.length - 1; r5 >= 1 && o4 >= 0 && t3[r5] !== n4[o4]; ) o4--;
5197
+ for (; r5 >= 1 && o4 >= 0; r5--, o4--) if (t3[r5] !== n4[o4]) {
5198
+ if (r5 !== 1 || o4 !== 1) do
5199
+ if (r5--, o4--, o4 < 0 || t3[r5] !== n4[o4]) {
5200
+ let n5 = `
5201
+ ${t3[r5].replace(` at new `, ` at `)}`, i4 = Te(e2);
5202
+ return i4 && n5.includes(`<anonymous>`) && (n5 = n5.replace(`<anonymous>`, i4)), n5;
5203
+ }
5204
+ while (r5 >= 1 && o4 >= 0);
5205
+ break;
5327
5206
  }
5328
5207
  }
5329
- a3.push({ fileName: e3.file, lineNumber: e3.line, columnNumber: e3.col, functionName: e3.function });
5208
+ } finally {
5209
+ X = false, Error.prepareStackTrace = n2, q(r3), console.error = i2, console.warn = a3;
5330
5210
  }
5331
- return a3;
5211
+ let o3 = e2 ? Te(e2) : ``, s3 = o3 ? J(o3) : ``;
5212
+ return s3;
5332
5213
  };
5333
- var Q = (e2) => {
5334
- if (!e2 || we2.includes(e2)) return ``;
5214
+ var xe = (e2, t2) => {
5215
+ let m3 = e2.tag, h3 = ``;
5216
+ switch (m3) {
5217
+ case ne:
5218
+ h3 = J(`Activity`);
5219
+ break;
5220
+ case o2:
5221
+ h3 = Z(e2.type, true);
5222
+ break;
5223
+ case f2:
5224
+ h3 = Z(e2.type.render, false);
5225
+ break;
5226
+ case a2:
5227
+ case h2:
5228
+ h3 = Z(e2.type, false);
5229
+ break;
5230
+ case c2:
5231
+ case y:
5232
+ case b:
5233
+ h3 = J(e2.type);
5234
+ break;
5235
+ case ee:
5236
+ h3 = J(`Lazy`);
5237
+ break;
5238
+ case p2:
5239
+ h3 = e2.child !== t2 && t2 !== null ? J(`Suspense Fallback`) : J(`Suspense`);
5240
+ break;
5241
+ case te:
5242
+ h3 = J(`SuspenseList`);
5243
+ break;
5244
+ case re:
5245
+ h3 = J(`ViewTransition`);
5246
+ break;
5247
+ default:
5248
+ return ``;
5249
+ }
5250
+ return h3;
5251
+ };
5252
+ var Se = (e2) => {
5253
+ try {
5254
+ let t2 = ``, n2 = e2, r3 = null;
5255
+ do {
5256
+ t2 += xe(n2, r3);
5257
+ let e3 = n2._debugInfo;
5258
+ if (e3 && Array.isArray(e3)) for (let n3 = e3.length - 1; n3 >= 0; n3--) {
5259
+ let r4 = e3[n3];
5260
+ typeof r4.name == `string` && (t2 += Y(r4.name, r4.env));
5261
+ }
5262
+ r3 = n2, n2 = n2.return;
5263
+ } while (n2);
5264
+ return t2;
5265
+ } catch (e3) {
5266
+ return e3 instanceof Error ? `
5267
+ Error generating stack: ${e3.message}
5268
+ ${e3.stack}` : ``;
5269
+ }
5270
+ };
5271
+ var Ce = (e2) => {
5272
+ let t2 = Error.prepareStackTrace;
5273
+ Error.prepareStackTrace = void 0;
5274
+ let n2 = e2;
5275
+ if (!n2) return ``;
5276
+ Error.prepareStackTrace = t2, n2.startsWith(`Error: react-stack-top-frame
5277
+ `) && (n2 = n2.slice(29));
5278
+ let r3 = n2.indexOf(`
5279
+ `);
5280
+ if (r3 !== -1 && (n2 = n2.slice(r3 + 1)), r3 = Math.max(n2.indexOf(`react_stack_bottom_frame`), n2.indexOf(`react-stack-bottom-frame`)), r3 !== -1 && (r3 = n2.lastIndexOf(`
5281
+ `, r3)), r3 !== -1) n2 = n2.slice(0, r3);
5282
+ else return ``;
5283
+ return n2;
5284
+ };
5285
+ var we = (e2) => !!(e2.fileName?.startsWith(`rsc://`) && e2.functionName);
5286
+ var Te2 = (e2, t2) => e2.fileName === t2.fileName && e2.lineNumber === t2.lineNumber && e2.columnNumber === t2.columnNumber;
5287
+ var Ee2 = (e2) => {
5288
+ let t2 = /* @__PURE__ */ new Map();
5289
+ for (let n2 of e2) for (let e3 of n2.stackFrames) {
5290
+ if (!we(e3)) continue;
5291
+ let n3 = e3.functionName, r3 = t2.get(n3) ?? [], i2 = r3.some((t3) => Te2(t3, e3));
5292
+ i2 || (r3.push(e3), t2.set(n3, r3));
5293
+ }
5294
+ return t2;
5295
+ };
5296
+ var De = (e2, t2, n2) => {
5297
+ if (!e2.functionName) return { ...e2, isServer: true };
5298
+ let r3 = t2.get(e2.functionName);
5299
+ if (!r3 || r3.length === 0) return { ...e2, isServer: true };
5300
+ let i2 = n2.get(e2.functionName) ?? 0, a3 = r3[i2 % r3.length];
5301
+ return n2.set(e2.functionName, i2 + 1), { ...e2, isServer: true, fileName: a3.fileName, lineNumber: a3.lineNumber, columnNumber: a3.columnNumber, source: e2.source?.replace(E, `(${a3.fileName}:${a3.lineNumber}:${a3.columnNumber})`) };
5302
+ };
5303
+ var Oe = (e2) => {
5304
+ let t2 = [];
5305
+ return N(e2, (e3) => {
5306
+ if (!K(e3)) return;
5307
+ let n2 = typeof e3.type == `string` ? e3.type : Te(e3.type) || `<anonymous>`;
5308
+ t2.push({ componentName: n2, stackFrames: D(Ce(e3._debugStack?.stack)) });
5309
+ }, true), t2;
5310
+ };
5311
+ var Q = async (e2, t2 = true, n2) => {
5312
+ let r3 = Oe(e2), i2 = D(Se(e2)), a3 = Ee2(r3), o3 = /* @__PURE__ */ new Map(), s3 = i2.map((e3) => {
5313
+ let t3 = e3.source?.includes(E) ?? false;
5314
+ return t3 ? De(e3, a3, o3) : e3;
5315
+ }), c3 = s3.filter((e3, t3, n3) => {
5316
+ if (t3 === 0) return true;
5317
+ let r4 = n3[t3 - 1];
5318
+ return e3.functionName !== r4.functionName;
5319
+ });
5320
+ return G(c3, t2, n2);
5321
+ };
5322
+ var $ = (e2) => {
5323
+ if (!e2 || ne2.includes(e2)) return ``;
5335
5324
  let t2 = e2;
5336
- if (t2.startsWith(Ce2)) {
5337
- let e3 = t2.slice(Ce2.length), n3 = e3.indexOf(`/`), r3 = e3.indexOf(`:`);
5338
- t2 = n3 !== -1 && (r3 === -1 || n3 < r3) ? e3.slice(n3 + 1) : e3;
5325
+ if (t2.startsWith(T)) {
5326
+ let e3 = t2.slice(T.length), n3 = e3.indexOf(`/`), r4 = e3.indexOf(`:`);
5327
+ t2 = n3 !== -1 && (r4 === -1 || n3 < r4) ? e3.slice(n3 + 1) : e3;
5339
5328
  }
5340
- for (let e3 of Se2) if (t2.startsWith(e3)) {
5341
- t2 = t2.slice(e3.length), e3 === `file:///` && (t2 = `/${t2.replace(/^\/+/, ``)}`);
5342
- break;
5329
+ let n2 = true;
5330
+ for (; n2; ) {
5331
+ n2 = false;
5332
+ for (let e3 of te2) if (t2.startsWith(e3)) {
5333
+ t2 = t2.slice(e3.length), e3 === `file:///` && (t2 = `/${t2.replace(/^\/+/, ``)}`), n2 = true;
5334
+ break;
5335
+ }
5343
5336
  }
5344
- if (xe2.test(t2)) {
5345
- let e3 = t2.match(xe2);
5337
+ if (w.test(t2)) {
5338
+ let e3 = t2.match(w);
5346
5339
  e3 && (t2 = t2.slice(e3[0].length));
5347
5340
  }
5348
- let n2 = t2.indexOf(`?`);
5349
- if (n2 !== -1) {
5350
- let e3 = t2.slice(n2);
5351
- De2.test(e3) && (t2 = t2.slice(0, n2));
5341
+ let r3 = t2.indexOf(`?`);
5342
+ if (r3 !== -1) {
5343
+ let e3 = t2.slice(r3);
5344
+ ae2.test(e3) && (t2 = t2.slice(0, r3));
5352
5345
  }
5353
5346
  return t2;
5354
5347
  };
5355
- var Me2 = (e2) => {
5356
- let t2 = Q(e2);
5357
- return !(!t2 || !Te2.test(t2) || Ee2.test(t2));
5348
+ var je = (e2) => {
5349
+ let t2 = $(e2);
5350
+ return !(!t2 || !re2.test(t2) || ie2.test(t2));
5358
5351
  };
5359
5352
 
5360
5353
  // src/utils/is-capitalized.ts
5361
5354
  var isCapitalized = (value) => value.length > 0 && /^[A-Z]/.test(value);
5362
5355
 
5363
- // src/instrumentation.ts
5356
+ // ../../node_modules/.pnpm/bippy@0.5.25_@types+react@19.2.2_react@19.2.1/node_modules/bippy/dist/install-hook-only-CTBENLgG.js
5357
+ _();
5358
+
5359
+ // src/context.ts
5364
5360
  var NEXT_INTERNAL_COMPONENT_NAMES = /* @__PURE__ */ new Set([
5365
5361
  "InnerLayoutRouter",
5366
5362
  "RedirectErrorBoundary",
@@ -5384,11 +5380,14 @@ var NEXT_INTERNAL_COMPONENT_NAMES = /* @__PURE__ */ new Set([
5384
5380
  "AppRouter",
5385
5381
  "ServerRoot",
5386
5382
  "SegmentStateProvider",
5387
- "RootErrorBoundary"
5383
+ "RootErrorBoundary",
5384
+ "LoadableComponent"
5388
5385
  ]);
5389
5386
  var checkIsNextProject = () => {
5390
5387
  if (typeof document === "undefined") return false;
5391
- return Boolean(document.getElementById("__NEXT_DATA__"));
5388
+ return Boolean(
5389
+ document.getElementById("__NEXT_DATA__") || document.querySelector("nextjs-portal")
5390
+ );
5392
5391
  };
5393
5392
  var checkIsInternalComponentName = (name) => {
5394
5393
  if (name.startsWith("_")) return true;
@@ -5404,105 +5403,60 @@ var checkIsSourceComponentName = (name) => {
5404
5403
  };
5405
5404
  var getStack = async (element) => {
5406
5405
  if (!Ee()) return [];
5407
- try {
5408
- const maybeFiber = Pe(element);
5409
- if (!maybeFiber || !me(maybeFiber)) return [];
5410
- const ownerStack = X2(maybeFiber);
5411
- const sources = await Z(ownerStack);
5412
- if (sources && sources.length > 0) {
5413
- const stack = [];
5414
- for (const source of sources) {
5415
- if (source.functionName && !checkIsInternalComponentName(source.functionName)) {
5416
- stack.push({
5417
- name: source.functionName,
5418
- source: source.fileName ? {
5419
- fileName: source.fileName,
5420
- lineNumber: source.lineNumber,
5421
- columnNumber: source.columnNumber
5422
- } : null
5423
- });
5424
- }
5425
- }
5426
- if (stack.length > 0) {
5427
- return stack;
5428
- }
5429
- }
5430
- const fiber = De(maybeFiber);
5431
- const unresolvedStack = [];
5432
- N(
5433
- fiber,
5434
- (currentFiber) => {
5435
- const displayName = k(currentFiber) ? typeof currentFiber.type === "string" ? currentFiber.type : null : Te(currentFiber);
5436
- if (displayName && !checkIsInternalComponentName(displayName)) {
5437
- unresolvedStack.push({
5438
- name: displayName,
5439
- sourcePromise: Ae2(currentFiber)
5440
- });
5441
- }
5442
- },
5443
- true
5444
- );
5445
- const resolvedStack = await Promise.all(
5446
- unresolvedStack.map(async (frame) => ({
5447
- name: frame.name,
5448
- source: await frame.sourcePromise
5449
- }))
5450
- );
5451
- return resolvedStack.filter((frame) => frame.source !== null);
5452
- } catch {
5453
- return [];
5454
- }
5406
+ const fiber = Pe(element);
5407
+ if (!fiber) return null;
5408
+ return await Q(fiber);
5455
5409
  };
5456
5410
  var getNearestComponentName = async (element) => {
5411
+ if (Ee()) return null;
5457
5412
  const stack = await getStack(element);
5413
+ if (!stack) return null;
5458
5414
  for (const frame of stack) {
5459
- if (checkIsSourceComponentName(frame.name)) {
5460
- return frame.name;
5415
+ if (frame.functionName && checkIsSourceComponentName(frame.functionName)) {
5416
+ return frame.functionName;
5461
5417
  }
5462
5418
  }
5463
5419
  return null;
5464
5420
  };
5465
- var formatElementInfo = async (element) => {
5421
+ var getElementContext = async (element, options = {}) => {
5422
+ const { maxLines = 3 } = options;
5466
5423
  const html = getHTMLPreview(element);
5467
5424
  const stack = await getStack(element);
5468
5425
  const isNextProject = checkIsNextProject();
5469
- let fileName = null;
5470
- let lineNumber = null;
5471
- let columnNumber = null;
5472
- let serverComponentName = null;
5473
- let clientComponentName = null;
5474
- for (const frame of stack) {
5475
- if (checkIsSourceComponentName(frame.name) && !serverComponentName && !frame.source?.fileName) {
5476
- serverComponentName = frame.name;
5477
- continue;
5478
- }
5479
- if (!frame.source) continue;
5480
- if (Me2(frame.source.fileName) && !fileName) {
5481
- fileName = Q(frame.source.fileName);
5482
- lineNumber = frame.source.lineNumber ?? null;
5483
- columnNumber = frame.source.columnNumber ?? null;
5484
- clientComponentName = frame.name;
5485
- break;
5486
- }
5487
- }
5488
- let result = html;
5489
- if (serverComponentName) {
5490
- result += `
5491
- in ${serverComponentName} (Server)`;
5492
- }
5493
- if (fileName) {
5494
- result += `
5495
- ${clientComponentName ? ` in ${clientComponentName}` : ""} at ${fileName}`;
5496
- if (isNextProject && lineNumber && columnNumber) {
5497
- result += `:${lineNumber}:${columnNumber}`;
5426
+ const stackContext = [];
5427
+ if (stack) {
5428
+ for (const frame of stack) {
5429
+ if (stackContext.length >= maxLines) break;
5430
+ if (frame.isServer && (!frame.functionName || checkIsSourceComponentName(frame.functionName))) {
5431
+ stackContext.push(
5432
+ `
5433
+ in ${frame.functionName || "<anonymous>"} (at Server)`
5434
+ );
5435
+ continue;
5436
+ }
5437
+ if (frame.fileName && je(frame.fileName)) {
5438
+ let line = "\n in ";
5439
+ const hasComponentName = frame.functionName && checkIsSourceComponentName(frame.functionName);
5440
+ if (hasComponentName) {
5441
+ line += `${frame.functionName} (at `;
5442
+ }
5443
+ line += $(frame.fileName);
5444
+ if (isNextProject && frame.lineNumber && frame.columnNumber) {
5445
+ line += `:${frame.lineNumber}:${frame.columnNumber}`;
5446
+ }
5447
+ if (hasComponentName) {
5448
+ line += `)`;
5449
+ }
5450
+ stackContext.push(line);
5451
+ }
5498
5452
  }
5499
5453
  }
5500
- return result;
5454
+ return `${html}${stackContext.join("")}`;
5501
5455
  };
5502
5456
  var getFileName = (stack) => {
5503
5457
  for (const frame of stack) {
5504
- if (frame.source && Me2(frame.source.fileName)) {
5505
- return Q(frame.source.fileName);
5458
+ if (frame.fileName && je(frame.fileName)) {
5459
+ return $(frame.fileName);
5506
5460
  }
5507
5461
  }
5508
5462
  return null;
@@ -6050,9 +6004,9 @@ var updateSession = (session, updates, storage) => {
6050
6004
  };
6051
6005
 
6052
6006
  // src/utils/generate-snippet.ts
6053
- var generateSnippet = async (elements) => {
6007
+ var generateSnippet = async (elements, options = {}) => {
6054
6008
  const elementSnippetResults = await Promise.allSettled(
6055
- elements.map((element) => formatElementInfo(element))
6009
+ elements.map((element) => getElementContext(element, options))
6056
6010
  );
6057
6011
  const elementSnippets = elementSnippetResults.map((result) => result.status === "fulfilled" ? result.value : "").filter((snippet) => snippet.trim());
6058
6012
  if (elementSnippets.length === 0) {
@@ -6267,6 +6221,17 @@ var createAgentManager = (initialAgentOptions) => {
6267
6221
  var _tmpl$16 = /* @__PURE__ */ template(`<span class="tabular-nums align-middle">`);
6268
6222
  var _tmpl$23 = /* @__PURE__ */ template(`<span class="font-mono tabular-nums align-middle">&lt;<!>>`);
6269
6223
  var _tmpl$33 = /* @__PURE__ */ template(`<span class="tabular-nums ml-1 align-middle"> in `);
6224
+ var onIdle = (callback) => {
6225
+ if ("scheduler" in globalThis) {
6226
+ return globalThis.scheduler.postTask(callback, {
6227
+ priority: "background"
6228
+ });
6229
+ }
6230
+ if ("requestIdleCallback" in window) {
6231
+ return requestIdleCallback(callback);
6232
+ }
6233
+ return setTimeout(callback, 0);
6234
+ };
6270
6235
  var hasInited = false;
6271
6236
  var getScriptOptions = () => {
6272
6237
  if (typeof window === "undefined") return null;
@@ -6312,6 +6277,7 @@ var init = (rawOptions) => {
6312
6277
  enabled: true,
6313
6278
  keyHoldDuration: 200,
6314
6279
  allowActivationInsideInput: true,
6280
+ maxContextLines: 3,
6315
6281
  ...scriptOptions,
6316
6282
  ...rawOptions
6317
6283
  };
@@ -6346,7 +6312,7 @@ var init = (rawOptions) => {
6346
6312
  hasInited = true;
6347
6313
  const logIntro = () => {
6348
6314
  try {
6349
- const version = "0.0.60";
6315
+ const version = "0.0.61";
6350
6316
  const logoDataUri = `data:image/svg+xml;base64,${btoa(LOGO_SVG)}`;
6351
6317
  console.log(`%cReact Grab${version ? ` v${version}` : ""}%c
6352
6318
  https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid #d75fcb; padding: 4px 4px 4px 24px; border-radius: 4px; background-image: url("${logoDataUri}"); background-size: 16px 16px; background-repeat: no-repeat; background-position: 4px center; display: inline-block; margin-bottom: 4px;`, "");
@@ -6371,6 +6337,8 @@ https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid
6371
6337
  const [isHoldingKeys, setIsHoldingKeys] = createSignal(false);
6372
6338
  const [mouseX, setMouseX] = createSignal(OFFSCREEN_POSITION);
6373
6339
  const [mouseY, setMouseY] = createSignal(OFFSCREEN_POSITION);
6340
+ const [detectedElement, setDetectedElement] = createSignal(null);
6341
+ let lastElementDetectionTime = 0;
6374
6342
  const [isDragging, setIsDragging] = createSignal(false);
6375
6343
  const [dragStartX, setDragStartX] = createSignal(OFFSCREEN_POSITION);
6376
6344
  const [dragStartY, setDragStartY] = createSignal(OFFSCREEN_POSITION);
@@ -6510,7 +6478,7 @@ https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid
6510
6478
  }
6511
6479
  }));
6512
6480
  };
6513
- const createLabelInstance = (bounds, tagName, componentName, status, element) => {
6481
+ const createLabelInstance = (bounds, tagName, componentName, status, element, mouseX2) => {
6514
6482
  const instanceId = `label-${Date.now()}-${Math.random().toString(36).slice(2)}`;
6515
6483
  setLabelInstances((prev) => [...prev, {
6516
6484
  id: instanceId,
@@ -6519,7 +6487,8 @@ https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid
6519
6487
  componentName,
6520
6488
  status,
6521
6489
  createdAt: Date.now(),
6522
- element
6490
+ element,
6491
+ mouseX: mouseX2
6523
6492
  }]);
6524
6493
  return instanceId;
6525
6494
  };
@@ -6537,7 +6506,7 @@ https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid
6537
6506
  setCopyStartY(positionY);
6538
6507
  setIsCopying(true);
6539
6508
  startProgressAnimation();
6540
- const instanceId = bounds && tagName ? createLabelInstance(bounds, tagName, componentName, "copying", element) : null;
6509
+ const instanceId = bounds && tagName ? createLabelInstance(bounds, tagName, componentName, "copying", element, positionX) : null;
6541
6510
  await operation().finally(() => {
6542
6511
  setIsCopying(false);
6543
6512
  stopProgressAnimation();
@@ -6568,7 +6537,9 @@ https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid
6568
6537
  let copiedContent = "";
6569
6538
  await options.onBeforeCopy?.(elements);
6570
6539
  try {
6571
- const elementSnippetResults = await Promise.allSettled(elements.map((element) => formatElementInfo(element)));
6540
+ const elementSnippetResults = await Promise.allSettled(elements.map((element) => getElementContext(element, {
6541
+ maxLines: options.maxContextLines
6542
+ })));
6572
6543
  const elementSnippets = [];
6573
6544
  for (const result of elementSnippetResults) {
6574
6545
  if (result.status === "fulfilled" && result.value.trim()) {
@@ -6642,7 +6613,7 @@ ${plainTextContentOnly}` : plainTextContentOnly;
6642
6613
  };
6643
6614
  const targetElement = createMemo(() => {
6644
6615
  if (!isRendererActive() || isDragging()) return null;
6645
- return getElementAtPosition(mouseX(), mouseY());
6616
+ return detectedElement();
6646
6617
  });
6647
6618
  createEffect(() => {
6648
6619
  const element = targetElement();
@@ -6760,10 +6731,11 @@ ${plainTextContentOnly}` : plainTextContentOnly;
6760
6731
  return;
6761
6732
  }
6762
6733
  getStack(element).then((stack) => {
6734
+ if (!stack) return;
6763
6735
  for (const frame of stack) {
6764
- if (frame.source && Me2(frame.source.fileName)) {
6765
- setSelectionFilePath(Q(frame.source.fileName));
6766
- setSelectionLineNumber(frame.source.lineNumber);
6736
+ if (frame.fileName && je(frame.fileName)) {
6737
+ setSelectionFilePath($(frame.fileName));
6738
+ setSelectionLineNumber(frame.lineNumber);
6767
6739
  return;
6768
6740
  }
6769
6741
  }
@@ -6795,10 +6767,10 @@ ${plainTextContentOnly}` : plainTextContentOnly;
6795
6767
  } : null
6796
6768
  });
6797
6769
  }));
6798
- createEffect(on(() => [isInputMode(), mouseX(), mouseY(), targetElement()], ([inputMode, x3, y2, target]) => {
6770
+ createEffect(on(() => [isInputMode(), mouseX(), mouseY(), targetElement()], ([inputMode, x3, y3, target]) => {
6799
6771
  options.onInputModeChange?.(inputMode, {
6800
6772
  x: x3,
6801
- y: y2,
6773
+ y: y3,
6802
6774
  targetElement: target
6803
6775
  });
6804
6776
  }));
@@ -6808,10 +6780,10 @@ ${plainTextContentOnly}` : plainTextContentOnly;
6808
6780
  createEffect(on(() => [dragVisible(), dragBounds()], ([visible, bounds]) => {
6809
6781
  options.onDragBox?.(Boolean(visible), bounds ?? null);
6810
6782
  }));
6811
- createEffect(on(() => [crosshairVisible(), mouseX(), mouseY()], ([visible, x3, y2]) => {
6783
+ createEffect(on(() => [crosshairVisible(), mouseX(), mouseY()], ([visible, x3, y3]) => {
6812
6784
  options.onCrosshair?.(Boolean(visible), {
6813
6785
  x: x3,
6814
- y: y2
6786
+ y: y3
6815
6787
  });
6816
6788
  }));
6817
6789
  createEffect(on(() => [labelVisible(), labelVariant(), labelContent(), cursorPosition()], ([visible, variant, content, position]) => {
@@ -7041,6 +7013,14 @@ ${plainTextContentOnly}` : plainTextContentOnly;
7041
7013
  if (isInputMode() || isToggleFrozen()) return;
7042
7014
  setMouseX(clientX);
7043
7015
  setMouseY(clientY);
7016
+ const now = performance.now();
7017
+ if (now - lastElementDetectionTime >= ELEMENT_DETECTION_THROTTLE_MS) {
7018
+ lastElementDetectionTime = now;
7019
+ onIdle(() => {
7020
+ const candidate = getElementAtPosition(clientX, clientY);
7021
+ setDetectedElement(candidate);
7022
+ });
7023
+ }
7044
7024
  if (isDragging()) {
7045
7025
  const direction = getAutoScrollDirection(clientX, clientY);
7046
7026
  const isNearEdge = direction.top || direction.bottom || direction.left || direction.right;
@@ -7667,7 +7647,7 @@ ${plainTextContentOnly}` : plainTextContentOnly;
7667
7647
  };
7668
7648
  /*! Bundled license information:
7669
7649
 
7670
- bippy/dist/rdt-hook-BE3UuUaz.js:
7650
+ bippy/dist/rdt-hook-7WClMTWh.js:
7671
7651
  (**
7672
7652
  * @license bippy
7673
7653
  *
@@ -7677,7 +7657,7 @@ bippy/dist/rdt-hook-BE3UuUaz.js:
7677
7657
  * LICENSE file in the root directory of this source tree.
7678
7658
  *)
7679
7659
 
7680
- bippy/dist/install-hook-only-_lLceJhv.js:
7660
+ bippy/dist/core-CoV0JPOT.js:
7681
7661
  (**
7682
7662
  * @license bippy
7683
7663
  *
@@ -7687,7 +7667,7 @@ bippy/dist/install-hook-only-_lLceJhv.js:
7687
7667
  * LICENSE file in the root directory of this source tree.
7688
7668
  *)
7689
7669
 
7690
- bippy/dist/core-_xno6DOO.js:
7670
+ bippy/dist/source.js:
7691
7671
  (**
7692
7672
  * @license bippy
7693
7673
  *
@@ -7697,7 +7677,7 @@ bippy/dist/core-_xno6DOO.js:
7697
7677
  * LICENSE file in the root directory of this source tree.
7698
7678
  *)
7699
7679
 
7700
- bippy/dist/src-C_DvVIY-.js:
7680
+ bippy/dist/install-hook-only-CTBENLgG.js:
7701
7681
  (**
7702
7682
  * @license bippy
7703
7683
  *
@@ -7716,16 +7696,6 @@ bippy/dist/index.js:
7716
7696
  * This source code is licensed under the MIT license found in the
7717
7697
  * LICENSE file in the root directory of this source tree.
7718
7698
  *)
7719
-
7720
- bippy/dist/source.js:
7721
- (**
7722
- * @license bippy
7723
- *
7724
- * Copyright (c) Aiden Bai
7725
- *
7726
- * This source code is licensed under the MIT license found in the
7727
- * LICENSE file in the root directory of this source tree.
7728
- *)
7729
7699
  */
7730
7700
 
7731
- export { DEFAULT_THEME, Ee, formatElementInfo, generateSnippet, getFileName, getStack, init };
7701
+ export { DEFAULT_THEME, Ee, generateSnippet, getElementContext, getFileName, getStack, init };