react-grab 0.0.68 → 0.0.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -16,12 +16,14 @@ https://github.com/user-attachments/assets/fdb34329-b471-4b39-b433-0b1a27a94bd8
16
16
 
17
17
  > [**Install using Cursor**](https://cursor.com/link/prompt?text=1.+Run+curl+-s+https%3A%2F%2Freact-grab.com%2Fllms.txt+%0A2.+Understand+the+content+and+follow+the+instructions+to+install+React+Grab.%0A3.+Tell+the+user+to+refresh+their+local+app+and+explain+how+to+use+React+Grab)
18
18
 
19
- Get started in 1 minute by adding this script tag to your app:
19
+ Run this command to install React Grab into your project. Ensure you are running at project root (e.g. where the `next.config.ts` or `vite.config.ts` file is located).
20
20
 
21
21
  ```html
22
- <script src="//www.react-grab.com/script.js" crossorigin="anonymous"></script>
22
+ npx @react-grab/cli@latest
23
23
  ```
24
24
 
25
+ ## Manual Installation
26
+
25
27
  If you're using a React framework or build tool, view instructions below:
26
28
 
27
29
  #### Next.js (App router)
@@ -1019,6 +1019,7 @@ var buildOpenFileUrl = (filePath, lineNumber) => {
1019
1019
  };
1020
1020
 
1021
1021
  // src/constants.ts
1022
+ var VERSION = "0.0.70";
1022
1023
  var VIEWPORT_MARGIN_PX = 8;
1023
1024
  var OFFSCREEN_POSITION = -1e3;
1024
1025
  var SELECTION_LERP_FACTOR = 0.95;
@@ -5682,49 +5683,35 @@ var getHTMLPreview = (element) => {
5682
5683
  };
5683
5684
 
5684
5685
  // src/utils/copy-content.ts
5685
- var waitForFocus = () => {
5686
- if (document.hasFocus()) {
5687
- return new Promise((resolve) => setTimeout(resolve, 50));
5688
- }
5689
- return new Promise((resolve) => {
5690
- const onFocus = () => {
5691
- window.removeEventListener("focus", onFocus);
5692
- setTimeout(resolve, 50);
5693
- };
5694
- window.addEventListener("focus", onFocus);
5695
- window.focus();
5686
+ var REACT_GRAB_MIME_TYPE = "application/x-react-grab";
5687
+ var copyContent = (content, onSuccess) => {
5688
+ const metadata = JSON.stringify({
5689
+ version: VERSION,
5690
+ content,
5691
+ timestamp: Date.now()
5696
5692
  });
5697
- };
5698
- var copyContent = async (content, onSuccess) => {
5699
- await waitForFocus();
5693
+ const copyHandler = (event) => {
5694
+ event.preventDefault();
5695
+ event.clipboardData?.setData("text/plain", content);
5696
+ event.clipboardData?.setData(REACT_GRAB_MIME_TYPE, metadata);
5697
+ };
5698
+ document.addEventListener("copy", copyHandler);
5699
+ const textarea = document.createElement("textarea");
5700
+ textarea.value = content;
5701
+ textarea.style.position = "fixed";
5702
+ textarea.style.left = "-9999px";
5703
+ textarea.ariaHidden = "true";
5704
+ document.body.appendChild(textarea);
5705
+ textarea.select();
5700
5706
  try {
5701
- try {
5702
- await navigator.clipboard.writeText(content);
5707
+ const didCopySucceed = document.execCommand("copy");
5708
+ if (didCopySucceed) {
5703
5709
  onSuccess?.();
5704
- return true;
5705
- } catch {
5706
- const result = copyContentFallback(content, onSuccess);
5707
- return result;
5708
5710
  }
5709
- } catch {
5710
- return false;
5711
- }
5712
- };
5713
- var copyContentFallback = (content, onSuccess) => {
5714
- if (!document.execCommand) return false;
5715
- const el = document.createElement("textarea");
5716
- el.value = String(content);
5717
- el.style.clipPath = "inset(50%)";
5718
- el.ariaHidden = "true";
5719
- const doc = document.body || document.documentElement;
5720
- doc.append(el);
5721
- try {
5722
- el.select();
5723
- const result = document.execCommand("copy");
5724
- if (result) onSuccess?.();
5725
- return result;
5711
+ return didCopySucceed;
5726
5712
  } finally {
5727
- el.remove();
5713
+ document.removeEventListener("copy", copyHandler);
5714
+ textarea.remove();
5728
5715
  }
5729
5716
  };
5730
5717
 
@@ -6528,7 +6515,7 @@ var init = (rawOptions) => {
6528
6515
  hasInited = true;
6529
6516
  const logIntro = () => {
6530
6517
  try {
6531
- const version = "0.0.68";
6518
+ const version = "0.0.70";
6532
6519
  const logoDataUri = `data:image/svg+xml;base64,${btoa(LOGO_SVG)}`;
6533
6520
  console.log(`%cReact Grab${version ? ` v${version}` : ""}%c
6534
6521
  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;`, "");
@@ -6775,7 +6762,7 @@ https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid
6775
6762
 
6776
6763
  ${combinedSnippets}` : combinedSnippets;
6777
6764
  copiedContent = plainTextContent;
6778
- didCopy = await copyContent(plainTextContent);
6765
+ didCopy = copyContent(plainTextContent);
6779
6766
  }
6780
6767
  if (!didCopy) {
6781
6768
  const plainTextContentOnly = createCombinedTextContent(elements);
@@ -6784,7 +6771,7 @@ ${combinedSnippets}` : combinedSnippets;
6784
6771
 
6785
6772
  ${plainTextContentOnly}` : plainTextContentOnly;
6786
6773
  copiedContent = contentWithPrompt;
6787
- didCopy = await copyContent(contentWithPrompt);
6774
+ didCopy = copyContent(contentWithPrompt);
6788
6775
  }
6789
6776
  }
6790
6777
  if (didCopy) {
@@ -6798,7 +6785,7 @@ ${plainTextContentOnly}` : plainTextContentOnly;
6798
6785
 
6799
6786
  ${plainTextContentOnly}` : plainTextContentOnly;
6800
6787
  copiedContent = contentWithPrompt;
6801
- didCopy = await copyContent(contentWithPrompt);
6788
+ didCopy = copyContent(contentWithPrompt);
6802
6789
  }
6803
6790
  }
6804
6791
  options.onAfterCopy?.(elements, didCopy);
@@ -6836,7 +6823,19 @@ ${plainTextContentOnly}` : plainTextContentOnly;
6836
6823
  };
6837
6824
  const targetElement = createMemo(() => {
6838
6825
  if (!isRendererActive() || isDragging()) return null;
6839
- return detectedElement();
6826
+ const element = detectedElement();
6827
+ if (element && !document.contains(element)) return null;
6828
+ return element;
6829
+ });
6830
+ createEffect(() => {
6831
+ const element = detectedElement();
6832
+ if (!element) return;
6833
+ const intervalId = setInterval(() => {
6834
+ if (!document.contains(element)) {
6835
+ setDetectedElement(null);
6836
+ }
6837
+ }, 100);
6838
+ onCleanup(() => clearInterval(intervalId));
6840
6839
  });
6841
6840
  createEffect(() => {
6842
6841
  const element = targetElement();
@@ -1017,6 +1017,7 @@ var buildOpenFileUrl = (filePath, lineNumber) => {
1017
1017
  };
1018
1018
 
1019
1019
  // src/constants.ts
1020
+ var VERSION = "0.0.70";
1020
1021
  var VIEWPORT_MARGIN_PX = 8;
1021
1022
  var OFFSCREEN_POSITION = -1e3;
1022
1023
  var SELECTION_LERP_FACTOR = 0.95;
@@ -5680,49 +5681,35 @@ var getHTMLPreview = (element) => {
5680
5681
  };
5681
5682
 
5682
5683
  // src/utils/copy-content.ts
5683
- var waitForFocus = () => {
5684
- if (document.hasFocus()) {
5685
- return new Promise((resolve) => setTimeout(resolve, 50));
5686
- }
5687
- return new Promise((resolve) => {
5688
- const onFocus = () => {
5689
- window.removeEventListener("focus", onFocus);
5690
- setTimeout(resolve, 50);
5691
- };
5692
- window.addEventListener("focus", onFocus);
5693
- window.focus();
5684
+ var REACT_GRAB_MIME_TYPE = "application/x-react-grab";
5685
+ var copyContent = (content, onSuccess) => {
5686
+ const metadata = JSON.stringify({
5687
+ version: VERSION,
5688
+ content,
5689
+ timestamp: Date.now()
5694
5690
  });
5695
- };
5696
- var copyContent = async (content, onSuccess) => {
5697
- await waitForFocus();
5691
+ const copyHandler = (event) => {
5692
+ event.preventDefault();
5693
+ event.clipboardData?.setData("text/plain", content);
5694
+ event.clipboardData?.setData(REACT_GRAB_MIME_TYPE, metadata);
5695
+ };
5696
+ document.addEventListener("copy", copyHandler);
5697
+ const textarea = document.createElement("textarea");
5698
+ textarea.value = content;
5699
+ textarea.style.position = "fixed";
5700
+ textarea.style.left = "-9999px";
5701
+ textarea.ariaHidden = "true";
5702
+ document.body.appendChild(textarea);
5703
+ textarea.select();
5698
5704
  try {
5699
- try {
5700
- await navigator.clipboard.writeText(content);
5705
+ const didCopySucceed = document.execCommand("copy");
5706
+ if (didCopySucceed) {
5701
5707
  onSuccess?.();
5702
- return true;
5703
- } catch {
5704
- const result = copyContentFallback(content, onSuccess);
5705
- return result;
5706
5708
  }
5707
- } catch {
5708
- return false;
5709
- }
5710
- };
5711
- var copyContentFallback = (content, onSuccess) => {
5712
- if (!document.execCommand) return false;
5713
- const el = document.createElement("textarea");
5714
- el.value = String(content);
5715
- el.style.clipPath = "inset(50%)";
5716
- el.ariaHidden = "true";
5717
- const doc = document.body || document.documentElement;
5718
- doc.append(el);
5719
- try {
5720
- el.select();
5721
- const result = document.execCommand("copy");
5722
- if (result) onSuccess?.();
5723
- return result;
5709
+ return didCopySucceed;
5724
5710
  } finally {
5725
- el.remove();
5711
+ document.removeEventListener("copy", copyHandler);
5712
+ textarea.remove();
5726
5713
  }
5727
5714
  };
5728
5715
 
@@ -6526,7 +6513,7 @@ var init = (rawOptions) => {
6526
6513
  hasInited = true;
6527
6514
  const logIntro = () => {
6528
6515
  try {
6529
- const version = "0.0.68";
6516
+ const version = "0.0.70";
6530
6517
  const logoDataUri = `data:image/svg+xml;base64,${btoa(LOGO_SVG)}`;
6531
6518
  console.log(`%cReact Grab${version ? ` v${version}` : ""}%c
6532
6519
  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;`, "");
@@ -6773,7 +6760,7 @@ https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid
6773
6760
 
6774
6761
  ${combinedSnippets}` : combinedSnippets;
6775
6762
  copiedContent = plainTextContent;
6776
- didCopy = await copyContent(plainTextContent);
6763
+ didCopy = copyContent(plainTextContent);
6777
6764
  }
6778
6765
  if (!didCopy) {
6779
6766
  const plainTextContentOnly = createCombinedTextContent(elements);
@@ -6782,7 +6769,7 @@ ${combinedSnippets}` : combinedSnippets;
6782
6769
 
6783
6770
  ${plainTextContentOnly}` : plainTextContentOnly;
6784
6771
  copiedContent = contentWithPrompt;
6785
- didCopy = await copyContent(contentWithPrompt);
6772
+ didCopy = copyContent(contentWithPrompt);
6786
6773
  }
6787
6774
  }
6788
6775
  if (didCopy) {
@@ -6796,7 +6783,7 @@ ${plainTextContentOnly}` : plainTextContentOnly;
6796
6783
 
6797
6784
  ${plainTextContentOnly}` : plainTextContentOnly;
6798
6785
  copiedContent = contentWithPrompt;
6799
- didCopy = await copyContent(contentWithPrompt);
6786
+ didCopy = copyContent(contentWithPrompt);
6800
6787
  }
6801
6788
  }
6802
6789
  options.onAfterCopy?.(elements, didCopy);
@@ -6834,7 +6821,19 @@ ${plainTextContentOnly}` : plainTextContentOnly;
6834
6821
  };
6835
6822
  const targetElement = createMemo(() => {
6836
6823
  if (!isRendererActive() || isDragging()) return null;
6837
- return detectedElement();
6824
+ const element = detectedElement();
6825
+ if (element && !document.contains(element)) return null;
6826
+ return element;
6827
+ });
6828
+ createEffect(() => {
6829
+ const element = detectedElement();
6830
+ if (!element) return;
6831
+ const intervalId = setInterval(() => {
6832
+ if (!document.contains(element)) {
6833
+ setDetectedElement(null);
6834
+ }
6835
+ }, 100);
6836
+ onCleanup(() => clearInterval(intervalId));
6838
6837
  });
6839
6838
  createEffect(() => {
6840
6839
  const element = targetElement();
package/dist/core.cjs CHANGED
@@ -1,30 +1,30 @@
1
1
  'use strict';
2
2
 
3
- var chunkVMN6HO3J_cjs = require('./chunk-VMN6HO3J.cjs');
3
+ var chunk3OWWYY5I_cjs = require('./chunk-3OWWYY5I.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "DEFAULT_THEME", {
8
8
  enumerable: true,
9
- get: function () { return chunkVMN6HO3J_cjs.DEFAULT_THEME; }
9
+ get: function () { return chunk3OWWYY5I_cjs.DEFAULT_THEME; }
10
10
  });
11
11
  Object.defineProperty(exports, "formatElementInfo", {
12
12
  enumerable: true,
13
- get: function () { return chunkVMN6HO3J_cjs.getElementContext; }
13
+ get: function () { return chunk3OWWYY5I_cjs.getElementContext; }
14
14
  });
15
15
  Object.defineProperty(exports, "generateSnippet", {
16
16
  enumerable: true,
17
- get: function () { return chunkVMN6HO3J_cjs.generateSnippet; }
17
+ get: function () { return chunk3OWWYY5I_cjs.generateSnippet; }
18
18
  });
19
19
  Object.defineProperty(exports, "getStack", {
20
20
  enumerable: true,
21
- get: function () { return chunkVMN6HO3J_cjs.getStack; }
21
+ get: function () { return chunk3OWWYY5I_cjs.getStack; }
22
22
  });
23
23
  Object.defineProperty(exports, "init", {
24
24
  enumerable: true,
25
- get: function () { return chunkVMN6HO3J_cjs.init; }
25
+ get: function () { return chunk3OWWYY5I_cjs.init; }
26
26
  });
27
27
  Object.defineProperty(exports, "isInstrumentationActive", {
28
28
  enumerable: true,
29
- get: function () { return chunkVMN6HO3J_cjs.Ee; }
29
+ get: function () { return chunk3OWWYY5I_cjs.Ee; }
30
30
  });
package/dist/core.js CHANGED
@@ -1 +1 @@
1
- export { DEFAULT_THEME, getElementContext as formatElementInfo, generateSnippet, getStack, init, Ee as isInstrumentationActive } from './chunk-6DG5DJMI.js';
1
+ export { DEFAULT_THEME, getElementContext as formatElementInfo, generateSnippet, getStack, init, Ee as isInstrumentationActive } from './chunk-UIOO5VVO.js';
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkVMN6HO3J_cjs = require('./chunk-VMN6HO3J.cjs');
3
+ var chunk3OWWYY5I_cjs = require('./chunk-3OWWYY5I.cjs');
4
4
 
5
5
  /**
6
6
  * @license MIT
@@ -31,7 +31,7 @@ if (typeof window !== "undefined") {
31
31
  if (window.__REACT_GRAB__) {
32
32
  globalApi = window.__REACT_GRAB__;
33
33
  } else {
34
- globalApi = chunkVMN6HO3J_cjs.init();
34
+ globalApi = chunk3OWWYY5I_cjs.init();
35
35
  window.__REACT_GRAB__ = globalApi;
36
36
  window.dispatchEvent(
37
37
  new CustomEvent("react-grab:init", { detail: globalApi })
@@ -41,27 +41,27 @@ if (typeof window !== "undefined") {
41
41
 
42
42
  Object.defineProperty(exports, "DEFAULT_THEME", {
43
43
  enumerable: true,
44
- get: function () { return chunkVMN6HO3J_cjs.DEFAULT_THEME; }
44
+ get: function () { return chunk3OWWYY5I_cjs.DEFAULT_THEME; }
45
45
  });
46
46
  Object.defineProperty(exports, "formatElementInfo", {
47
47
  enumerable: true,
48
- get: function () { return chunkVMN6HO3J_cjs.getElementContext; }
48
+ get: function () { return chunk3OWWYY5I_cjs.getElementContext; }
49
49
  });
50
50
  Object.defineProperty(exports, "generateSnippet", {
51
51
  enumerable: true,
52
- get: function () { return chunkVMN6HO3J_cjs.generateSnippet; }
52
+ get: function () { return chunk3OWWYY5I_cjs.generateSnippet; }
53
53
  });
54
54
  Object.defineProperty(exports, "getStack", {
55
55
  enumerable: true,
56
- get: function () { return chunkVMN6HO3J_cjs.getStack; }
56
+ get: function () { return chunk3OWWYY5I_cjs.getStack; }
57
57
  });
58
58
  Object.defineProperty(exports, "init", {
59
59
  enumerable: true,
60
- get: function () { return chunkVMN6HO3J_cjs.init; }
60
+ get: function () { return chunk3OWWYY5I_cjs.init; }
61
61
  });
62
62
  Object.defineProperty(exports, "isInstrumentationActive", {
63
63
  enumerable: true,
64
- get: function () { return chunkVMN6HO3J_cjs.Ee; }
64
+ get: function () { return chunk3OWWYY5I_cjs.Ee; }
65
65
  });
66
66
  exports.getGlobalApi = getGlobalApi;
67
67
  exports.setGlobalApi = setGlobalApi;
@@ -6,41 +6,41 @@ var ReactGrab=(function(exports){'use strict';/**
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- var ms=(e,t)=>e===t;var ps=Symbol("solid-track"),rn={equals:ms},uo=yo,Ne=1,Pt=2,fo={owned:null,cleanups:null,context:null,owner:null},Gn={},Q=null,S=null,pt=null,ie=null,me=null,ye=null,sn=0;function at(e,t){let n=ie,r=Q,i=e.length===0,o=t===void 0?r:t,a=i?fo:{owned:null,cleanups:null,context:o?o.context:null,owner:o},l=i?e:()=>e(()=>Ce(()=>Ze(a)));Q=a,ie=null;try{return Ae(l,!0)}finally{ie=n,Q=r;}}function R(e,t){t=t?Object.assign({},rn,t):rn;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=i=>(typeof i=="function"&&(i=i(n.value)),bo(n,i));return [ho.bind(n),r]}function io(e,t,n){let r=ln(e,t,true,Ne);ht(r);}function ue(e,t,n){let r=ln(e,t,false,Ne);ht(r);}function ne(e,t,n){uo=ws;let r=ln(e,t,false,Ne);(r.user=true),ye?ye.push(r):ht(r);}function ae(e,t,n){n=n?Object.assign({},rn,n):rn;let r=ln(e,t,true,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,ht(r),ho.bind(r)}function gs(e){return e&&typeof e=="object"&&"then"in e}function an(e,t,n){let r,i,o;typeof t=="function"?(r=e,i=t,o={}):(r=true,i=e,o=t||{});let a=null,l=Gn,b=false,g="initialValue"in o,T=typeof r=="function"&&ae(r),w=new Set,[x,A]=(o.storage||R)(o.initialValue),[P,E]=R(void 0),[v,N]=R(void 0,{equals:false}),[z,I]=R(g?"ready":"unresolved");function j(y,p,m,f){return a===y&&(a=null,f!==void 0&&(g=true),(y===l||p===l)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(f,{value:p})),l=Gn,W(p,m)),p}function W(y,p){Ae(()=>{p===void 0&&A(()=>y),I(p!==void 0?"errored":g?"ready":"unresolved"),E(p);for(let m of w.keys())m.decrement();w.clear();},false);}function Y(){let y=$t,p=x(),m=P();if(m!==void 0&&!a)throw m;return ie&&!ie.user&&y,p}function U(y=true){if(y!==false&&b)return;b=false;let p=T?T():r;if(p==null||p===false){j(a,Ce(x));return}let m,f=l!==Gn?l:Ce(()=>{try{return i(p,{value:x(),refetching:y})}catch(_){m=_;}});if(m!==void 0){j(a,void 0,nn(m),p);return}else if(!gs(f))return j(a,f,void 0,p),f;return a=f,"v"in f?(f.s===1?j(a,f.v,void 0,p):j(a,void 0,nn(f.v),p),f):(b=true,queueMicrotask(()=>b=false),Ae(()=>{I(g?"refreshing":"pending"),N();},false),f.then(_=>j(f,_,void 0,p),_=>j(f,void 0,nn(_),p)))}Object.defineProperties(Y,{state:{get:()=>z()},error:{get:()=>P()},loading:{get(){let y=z();return y==="pending"||y==="refreshing"}},latest:{get(){if(!g)return Y();let y=P();if(y&&!a)throw y;return x()}}});let te=Q;return T?io(()=>(te=Q,U(false))):U(false),[Y,{refetch:y=>po(te,()=>U(y)),mutate:A}]}function Ce(e){if(ie===null)return e();let t=ie;ie=null;try{return pt?pt.untrack(e):e()}finally{ie=t;}}function we(e,t,n){let r=Array.isArray(e),i;return a=>{let l;if(r){l=Array(e.length);for(let u=0;u<e.length;u++)l[u]=e[u]();}else l=e();let c=Ce(()=>t(l,i,a));return i=l,c}}function mo(e){ne(()=>Ce(e));}function he(e){return Q===null||(Q.cleanups===null?Q.cleanups=[e]:Q.cleanups.push(e)),e}function po(e,t){let n=Q,r=ie;Q=e,ie=null;try{return Ae(t,!0)}catch(i){cn(i);}finally{Q=n,ie=r;}}var[Ql,so]=R(false);var $t;function ho(){let e=S;if(this.sources&&(this.state))if((this.state)===Ne)ht(this);else {let t=me;me=null,Ae(()=>on(this),false),me=t;}if(ie){let t=this.observers?this.observers.length:0;ie.sources?(ie.sources.push(this),ie.sourceSlots.push(t)):(ie.sources=[this],ie.sourceSlots=[t]),this.observers?(this.observers.push(ie),this.observerSlots.push(ie.sources.length-1)):(this.observers=[ie],this.observerSlots=[ie.sources.length-1]);}return e&&S.sources.has(this)?this.tValue:this.value}function bo(e,t,n){let r=e.value;if(!e.comparator||!e.comparator(r,t)){e.value=t;e.observers&&e.observers.length&&Ae(()=>{for(let i=0;i<e.observers.length;i+=1){let o=e.observers[i],a=S&&S.running;a&&S.disposed.has(o)||((a?!o.tState:!o.state)&&(o.pure?me.push(o):ye.push(o),o.observers&&wo(o)),a?o.tState=Ne:o.state=Ne);}if(me.length>1e6)throw me=[],new Error},false);}return t}function ht(e){if(!e.fn)return;Ze(e);let t=sn;ao(e,e.value,t);}function ao(e,t,n){let r,i=Q,o=ie;ie=Q=e;try{r=e.fn(t);}catch(a){return e.pure&&((e.state=Ne,e.owned&&e.owned.forEach(Ze),e.owned=null)),e.updatedAt=n+1,cn(a)}finally{ie=o,Q=i;}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?bo(e,r):e.value=r,e.updatedAt=n);}function ln(e,t,n,r=Ne,i){let o={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Q,context:Q?Q.context:null,pure:n};if(Q===null||Q!==fo&&(Q.owned?Q.owned.push(o):Q.owned=[o]),pt);return o}function Ft(e){let t=S;if((e.state)===0)return;if((e.state)===Pt)return on(e);if(e.suspense&&Ce(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<sn);){(e.state)&&n.push(e);}for(let r=n.length-1;r>=0;r--){if(e=n[r],t);if((e.state)===Ne)ht(e);else if((e.state)===Pt){let i=me;me=null,Ae(()=>on(e,n[0]),false),me=i;}}}function Ae(e,t){if(me)return e();let n=false;t||(me=[]),ye?n=true:ye=[],sn++;try{let r=e();return bs(n),r}catch(r){n||(ye=null),me=null,cn(r);}}function bs(e){if(me&&(yo(me),me=null),e)return;let n=ye;ye=null,n.length&&Ae(()=>uo(n),false);}function yo(e){for(let t=0;t<e.length;t++)Ft(e[t]);}function ws(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:Ft(r);}for(t=0;t<n;t++)Ft(e[t]);}function on(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){let i=e.sources[r];if(i.sources){let o=i.state;o===Ne?i!==t&&(!i.updatedAt||i.updatedAt<sn)&&Ft(i):o===Pt&&on(i,t);}}}function wo(e){for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(!r.state)&&(r.state=Pt,r.pure?me.push(r):ye.push(r),r.observers&&wo(r));}}function Ze(e){let t;if(e.sources)for(;e.sources.length;){let n=e.sources.pop(),r=e.sourceSlots.pop(),i=n.observers;if(i&&i.length){let o=i.pop(),a=n.observerSlots.pop();r<i.length&&(o.sourceSlots[a]=r,i[r]=o,n.observerSlots[r]=a);}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)Ze(e.tOwned[t]);delete e.tOwned;}if(e.owned){for(t=e.owned.length-1;t>=0;t--)Ze(e.owned[t]);e.owned=null;}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null;}e.state=0;}function nn(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function cn(e,t=Q){let r=nn(e);throw r;}var xs=Symbol("fallback");function co(e){for(let t=0;t<e.length;t++)e[t]();}function vs(e,t,n={}){let r=[],i=[],o=[],a=0,l=t.length>1?[]:null;return he(()=>co(o)),()=>{let c=e()||[],u=c.length,b,g;return c[ps],Ce(()=>{let w,x,A,P,E,v,N,z,I;if(u===0)a!==0&&(co(o),o=[],r=[],i=[],a=0,l&&(l=[])),n.fallback&&(r=[xs],i[0]=at(j=>(o[0]=j,n.fallback())),a=1);else if(a===0){for(i=new Array(u),g=0;g<u;g++)r[g]=c[g],i[g]=at(T);a=u;}else {for(A=new Array(u),P=new Array(u),l&&(E=new Array(u)),v=0,N=Math.min(a,u);v<N&&r[v]===c[v];v++);for(N=a-1,z=u-1;N>=v&&z>=v&&r[N]===c[z];N--,z--)A[z]=i[N],P[z]=o[N],l&&(E[z]=l[N]);for(w=new Map,x=new Array(z+1),g=z;g>=v;g--)I=c[g],b=w.get(I),x[g]=b===void 0?-1:b,w.set(I,g);for(b=v;b<=N;b++)I=r[b],g=w.get(I),g!==void 0&&g!==-1?(A[g]=i[b],P[g]=o[b],l&&(E[g]=l[b]),g=x[g],w.set(I,g)):o[b]();for(g=v;g<u;g++)g in A?(i[g]=A[g],o[g]=P[g],l&&(l[g]=E[g],l[g](g))):i[g]=at(T);i=i.slice(0,a=u),r=c.slice(0);}return i});function T(w){if(o[g]=w,l){let[x,A]=R(g);return l[g]=A,t(c[g],x)}return t(c[g])}}}function M(e,t){return Ce(()=>e(t||{}))}var Ss=e=>`Stale read from <${e}>.`;function Bt(e){let t="fallback"in e&&{fallback:()=>e.fallback};return ae(vs(()=>e.each,e.children,t||void 0))}function se(e){let t=e.keyed,n=ae(()=>e.when,void 0,void 0),r=t?n:ae(n,void 0,{equals:(i,o)=>!i==!o});return ae(()=>{let i=r();if(i){let o=e.children;return typeof o=="function"&&o.length>0?Ce(()=>o(t?i:()=>{if(!Ce(r))throw Ss("Show");return n()})):o}return e.fallback},void 0,void 0)}var be=e=>ae(()=>e());function Ts(e,t,n){let r=n.length,i=t.length,o=r,a=0,l=0,c=t[i-1].nextSibling,u=null;for(;a<i||l<o;){if(t[a]===n[l]){a++,l++;continue}for(;t[i-1]===n[o-1];)i--,o--;if(i===a){let b=o<r?l?n[l-1].nextSibling:n[o-l]:c;for(;l<o;)e.insertBefore(n[l++],b);}else if(o===l)for(;a<i;)(!u||!u.has(t[a]))&&t[a].remove(),a++;else if(t[a]===n[o-1]&&n[l]===t[i-1]){let b=t[--i].nextSibling;e.insertBefore(n[l++],t[a++].nextSibling),e.insertBefore(n[--o],b),t[i]=n[o];}else {if(!u){u=new Map;let g=l;for(;g<o;)u.set(n[g],g++);}let b=u.get(t[a]);if(b!=null)if(l<b&&b<o){let g=a,T=1,w;for(;++g<i&&g<o&&!((w=u.get(t[g]))==null||w!==b+T);)T++;if(T>b-l){let x=t[a];for(;l<b;)e.insertBefore(n[l++],x);}else e.replaceChild(n[l++],t[a++]);}else a++;else t[a++].remove();}}}var vo="_$DX_DELEGATE";function So(e,t,n,r={}){let i;return at(o=>{i=o,t===document?e():J(t,e(),t.firstChild?null:void 0,n);},r.owner),()=>{i(),t.textContent="";}}function re(e,t,n,r){let i,o=()=>{let l=document.createElement("template");return l.innerHTML=e,l.content.firstChild},a=()=>(i||(i=o())).cloneNode(true);return a.cloneNode=a,a}function dn(e,t=window.document){let n=t[vo]||(t[vo]=new Set);for(let r=0,i=e.length;r<i;r++){let o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,As));}}function Le(e,t,n){(n==null?e.removeAttribute(t):e.setAttribute(t,n));}function Fe(e,t){(t==null?e.removeAttribute("class"):e.className=t);}function Dt(e,t,n,r){Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;}function Eo(e,t,n){if(!t)return n?Le(e,"style"):t;let r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let i,o;for(o in n)t[o]==null&&r.removeProperty(o),delete n[o];for(o in t)i=t[o],i!==n[o]&&(r.setProperty(o,i),n[o]=i);return n}function pe(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t);}function yt(e,t,n){return Ce(()=>e(t,n))}function J(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return un(e,t,r,n);ue(i=>un(e,t(),i,n),r);}function As(e){let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,o=c=>Object.defineProperty(e,"target",{configurable:true,value:c}),a=()=>{let c=t[n];if(c&&!t.disabled){let u=t[`${n}Data`];if(u!==void 0?c.call(t,u,e):c.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&o(t.host),true},l=()=>{for(;a()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:true,get(){return t||document}}),e.composedPath){let c=e.composedPath();o(c[0]);for(let u=0;u<c.length-2&&(t=c[u],!!a());u++){if(t._$host){t=t._$host,l();break}if(t.parentNode===i)break}}else l();o(r);}function un(e,t,n,r,i){for(;typeof n=="function";)n=n();if(t===n)return n;let a=typeof t,l=r!==void 0;if(e=l&&n[0]&&n[0].parentNode||e,a==="string"||a==="number"){if(a==="number"&&(t=t.toString(),t===n))return n;if(l){let c=n[0];c&&c.nodeType===3?c.data!==t&&(c.data=t):c=document.createTextNode(t),n=bt(e,n,r,c);}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t;}else if(t==null||a==="boolean"){n=bt(e,n,r);}else {if(a==="function")return ue(()=>{let c=t();for(;typeof c=="function";)c=c();n=un(e,c,n,r);}),()=>n;if(Array.isArray(t)){let c=[],u=n&&Array.isArray(n);if(Kn(c,t,n,i))return ue(()=>n=un(e,c,n,r,true)),()=>n;if(c.length===0){if(n=bt(e,n,r),l)return n}else u?n.length===0?Co(e,c,r):Ts(e,n,c):(n&&bt(e),Co(e,c));n=c;}else if(t.nodeType){if(Array.isArray(n)){if(l)return n=bt(e,n,r,t);bt(e,n,null,t);}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t;}}return n}function Kn(e,t,n,r){let i=false;for(let o=0,a=t.length;o<a;o++){let l=t[o],c=n&&n[e.length],u;if(!(l==null||l===true||l===false))if((u=typeof l)=="object"&&l.nodeType)e.push(l);else if(Array.isArray(l))i=Kn(e,l,c)||i;else if(u==="function")if(r){for(;typeof l=="function";)l=l();i=Kn(e,Array.isArray(l)?l:[l],Array.isArray(c)?c:[c])||i;}else e.push(l),i=true;else {let b=String(l);c&&c.nodeType===3&&c.data===b?e.push(c):e.push(document.createTextNode(b));}}return i}function Co(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n);}function bt(e,t,n,r){if(n===void 0)return e.textContent="";let i=r||document.createTextNode("");if(t.length){let o=false;for(let a=t.length-1;a>=0;a--){let l=t[a];if(i!==l){let c=l.parentNode===e;!o&&!a?c?e.replaceChild(i,l):e.insertBefore(i,n):c&&l.remove();}else o=true;}}else e.insertBefore(i,n);return [i]}var ko=`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
10
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-contain-size:initial;--tw-contain-layout:initial;--tw-contain-paint:initial;--tw-contain-style:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-black:#000;--color-white:#fff;--spacing:.25rem;--font-weight-medium:500;--radius-xs:.125rem;--ease-out:cubic-bezier(0,0,.2,1);--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-grab-pink:#b21c8e;--color-grab-purple:#d239c0;--color-label-tag-border:#730079;--color-label-muted:#767676}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.top-0{top:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.z-2147483645{z-index:2147483645}.z-2147483646{z-index:2147483646}.z-2147483647{z-index:2147483647}.z-\\[2147483645\\]{z-index:2147483645}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing)*0)}.-ml-\\[2px\\]{margin-left:-2px}.ml-1{margin-left:calc(var(--spacing)*1)}.box-border{box-sizing:border-box}.flex{display:flex}.grid{display:grid}.hidden{display:none}.size-fit{width:fit-content;height:fit-content}.h-0{height:calc(var(--spacing)*0)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-5\\.5{height:calc(var(--spacing)*5.5)}.h-\\[7px\\]{height:7px}.h-\\[9px\\]{height:9px}.h-\\[18px\\]{height:18px}.h-fit{height:fit-content}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-4{min-height:calc(var(--spacing)*4)}.w-0{width:calc(var(--spacing)*0)}.w-0\\.5{width:calc(var(--spacing)*.5)}.w-1{width:calc(var(--spacing)*1)}.w-2\\.5{width:calc(var(--spacing)*2.5)}.w-\\[7px\\]{width:7px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[280px\\]{max-width:280px}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-75{--tw-scale-x:75%;--tw-scale-y:75%;--tw-scale-z:75%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.cursor-crosshair{cursor:crosshair}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-\\[3px\\]{gap:3px}.gap-\\[5px\\]{gap:5px}.gap-px{gap:1px}.self-stretch{align-self:stretch}.overflow-hidden{overflow:hidden}.rounded-\\[1\\.5px\\]{border-radius:1.5px}.rounded-\\[1px\\]{border-radius:1px}.rounded-full{border-radius:3.40282e38px}.rounded-xs{border-radius:var(--radius-xs)}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-b-xs{border-bottom-right-radius:var(--radius-xs);border-bottom-left-radius:var(--radius-xs)}.border{border-style:var(--tw-border-style);border-width:1px}.\\[border-width\\:0\\.5px\\]{border-width:.5px}.\\[border-top-width\\:0\\.5px\\]{border-top-width:.5px}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[\\#B3B3B3\\]{border-color:#b3b3b3}.border-grab-purple{border-color:var(--color-grab-purple)}.border-grab-purple\\/40{border-color:#d239c066}@supports (color:color-mix(in lab, red, red)){.border-grab-purple\\/40{border-color:color-mix(in oklab,var(--color-grab-purple)40%,transparent)}}.border-grab-purple\\/50{border-color:#d239c080}@supports (color:color-mix(in lab, red, red)){.border-grab-purple\\/50{border-color:color-mix(in oklab,var(--color-grab-purple)50%,transparent)}}.border-label-tag-border{border-color:var(--color-label-tag-border)}.border-white{border-color:var(--color-white)}.border-t-\\[\\#D9D9D9\\]{border-top-color:#d9d9d9}.bg-\\[\\#F7F7F7\\]{background-color:#f7f7f7}.bg-black{background-color:var(--color-black)}.bg-grab-pink{background-color:var(--color-grab-pink)}.bg-grab-purple{background-color:var(--color-grab-purple)}.bg-grab-purple\\/5{background-color:#d239c00d}@supports (color:color-mix(in lab, red, red)){.bg-grab-purple\\/5{background-color:color-mix(in oklab,var(--color-grab-purple)5%,transparent)}}.bg-grab-purple\\/8{background-color:#d239c014}@supports (color:color-mix(in lab, red, red)){.bg-grab-purple\\/8{background-color:color-mix(in oklab,var(--color-grab-purple)8%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-cover{background-size:cover}.bg-center{background-position:50%}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.px-0{padding-inline:calc(var(--spacing)*0)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-\\[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}.break-all{word-break:break-all}.whitespace-normal{white-space:normal}.text-\\[\\#0C0C0C\\]{color:#0c0c0c}.text-\\[\\#47004A\\]{color:#47004a}.text-black{color:var(--color-black)}.text-black\\/50{color:#00000080}@supports (color:color-mix(in lab, red, red)){.text-black\\/50{color:color-mix(in oklab,var(--color-black)50%,transparent)}}.text-label-muted{color:var(--color-label-muted)}.text-label-tag-border{color:var(--color-label-tag-border)}.text-white{color:var(--color-white)}.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\\:text-black:hover{color:var(--color-black)}.hover\\:opacity-100:hover{opacity:1}}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes flash{0%{opacity:1;background-color:#d239c040;border-color:#d239c0}50%{opacity:1;background-color:#d239c073;border-color:#e650d2}to{opacity:1;background-color:#d239c014;border-color:#d239c080}}.react-grab-flash{animation:.4s ease-out forwards flash}.react-grab-shimmer{position:relative;overflow:hidden}.react-grab-shimmer:after{content:"";border-radius:inherit;pointer-events:none;background:linear-gradient(90deg,#0000 0%,#fff6 50%,#0000 100%) 0 0/200% 100%;animation:1.5s ease-in-out infinite shimmer;position:absolute;inset:0}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-contain-size{syntax:"*";inherits:false}@property --tw-contain-layout{syntax:"*";inherits:false}@property --tw-contain-paint{syntax:"*";inherits:false}@property --tw-contain-style{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}`;var _s=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"],Rs=e=>!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-"),Ms=e=>Array.isArray(e),Ls=(e,t=false)=>{let{composed:n,target:r}=e,i,o;if(r instanceof HTMLElement&&Rs(r)&&n){let l=e.composedPath()[0];l instanceof HTMLElement&&(i=l.tagName,o=l.role);}else r instanceof HTMLElement&&(i=r.tagName,o=r.role);return Ms(t)?!!(i&&t&&t.some(a=>typeof i=="string"&&a.toLowerCase()===i.toLowerCase()||a===o)):!!(i&&t&&t)},To=e=>Ls(e,_s);var Ao=e=>{let t=e.tagName.toLowerCase();return !!(t==="input"||t==="textarea"||e instanceof HTMLElement&&e.isContentEditable)},No=(e,t)=>{let n=document.activeElement;if(n){let r=n;for(;r;){if(Ao(r))return true;r=r.parentElement;}}if(e!==void 0&&t!==void 0){let r=document.elementsFromPoint(e,t);for(let i of r)if(Ao(i))return true}return false};var wt="data-react-grab",_o=e=>{let t=document.querySelector(`[${wt}]`);if(t){let a=t.shadowRoot?.querySelector(`[${wt}]`);if(a instanceof HTMLDivElement&&t.shadowRoot)return a}let n=document.createElement("div");n.setAttribute(wt,"true"),n.style.zIndex="2147483646",n.style.position="fixed",n.style.top="0",n.style.left="0";let r=n.attachShadow({mode:"open"});{let a=document.createElement("style");a.textContent=e,r.appendChild(a);}let i=document.createElement("div");i.setAttribute(wt,"true"),r.appendChild(i);let o=document.body??document.documentElement;return o.appendChild(n),setTimeout(()=>{o.contains(n)||o.appendChild(n);},1e3),i};var Os="https://react-grab.com",fn=(e,t)=>{let n=t?`&line=${t}`:"";return `${Os}/open-file?url=${encodeURIComponent(e)}${n}`};var mn=["Meta","Control","Shift","Alt"],Ro='<svg width="294" height="294" viewBox="0 0 294 294" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_0_3)"><mask id="mask0_0_3" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="294" height="294"><path d="M294 0H0V294H294V0Z" fill="white"/></mask><g mask="url(#mask0_0_3)"><path d="M144.599 47.4924C169.712 27.3959 194.548 20.0265 212.132 30.1797C227.847 39.2555 234.881 60.3243 231.926 89.516C231.677 92.0069 231.328 94.5423 230.94 97.1058L228.526 110.14C228.517 110.136 228.505 110.132 228.495 110.127C228.486 110.165 228.479 110.203 228.468 110.24L216.255 105.741C216.256 105.736 216.248 105.728 216.248 105.723C207.915 103.125 199.421 101.075 190.82 99.5888L190.696 99.5588L173.526 97.2648L173.511 97.2631C173.492 97.236 173.467 97.2176 173.447 97.1905C163.862 96.2064 154.233 95.7166 144.599 95.7223C134.943 95.7162 125.295 96.219 115.693 97.2286C110.075 105.033 104.859 113.118 100.063 121.453C95.2426 129.798 90.8624 138.391 86.939 147.193C90.8624 155.996 95.2426 164.588 100.063 172.933C104.866 181.302 110.099 189.417 115.741 197.245C115.749 197.245 115.758 197.246 115.766 197.247L115.752 197.27L115.745 197.283L115.754 197.296L126.501 211.013L126.574 211.089C132.136 217.767 138.126 224.075 144.507 229.974L144.609 230.082L154.572 238.287C154.539 238.319 154.506 238.35 154.472 238.38C154.485 238.392 154.499 238.402 154.513 238.412L143.846 247.482L143.827 247.497C126.56 261.128 109.472 268.745 94.8019 268.745C88.5916 268.837 82.4687 267.272 77.0657 264.208C61.3496 255.132 54.3164 234.062 57.2707 204.871C57.528 202.307 57.8806 199.694 58.2904 197.054C28.3363 185.327 9.52301 167.51 9.52301 147.193C9.52301 129.042 24.2476 112.396 50.9901 100.375C53.3443 99.3163 55.7938 98.3058 58.2904 97.3526C57.8806 94.7023 57.528 92.0803 57.2707 89.516C54.3164 60.3243 61.3496 39.2555 77.0657 30.1797C94.6494 20.0265 119.486 27.3959 144.599 47.4924ZM70.6423 201.315C70.423 202.955 70.2229 204.566 70.0704 206.168C67.6686 229.567 72.5478 246.628 83.3615 252.988L83.5176 253.062C95.0399 259.717 114.015 254.426 134.782 238.38C125.298 229.45 116.594 219.725 108.764 209.314C95.8516 207.742 83.0977 205.066 70.6423 201.315ZM80.3534 163.438C77.34 171.677 74.8666 180.104 72.9484 188.664C81.1787 191.224 89.5657 193.247 98.0572 194.724L98.4618 194.813C95.2115 189.865 92.0191 184.66 88.9311 179.378C85.8433 174.097 83.003 168.768 80.3534 163.438ZM60.759 110.203C59.234 110.839 57.7378 111.475 56.27 112.11C34.7788 121.806 22.3891 134.591 22.3891 147.193C22.3891 160.493 36.4657 174.297 60.7494 184.26C63.7439 171.581 67.8124 159.182 72.9104 147.193C67.822 135.23 63.7566 122.855 60.759 110.203ZM98.4137 99.6404C89.8078 101.145 81.3075 103.206 72.9676 105.809C74.854 114.203 77.2741 122.468 80.2132 130.554L80.3059 130.939C82.9938 125.6 85.8049 120.338 88.8834 115.008C91.9618 109.679 95.1544 104.569 98.4137 99.6404ZM94.9258 38.5215C90.9331 38.4284 86.9866 39.3955 83.4891 41.3243C72.6291 47.6015 67.6975 64.5954 70.0424 87.9446L70.0416 88.2194C70.194 89.8208 70.3941 91.4325 70.6134 93.0624C83.0737 89.3364 95.8263 86.6703 108.736 85.0924C116.57 74.6779 125.28 64.9532 134.773 56.0249C119.877 44.5087 105.895 38.5215 94.9258 38.5215ZM205.737 41.3148C202.268 39.398 198.355 38.4308 194.394 38.5099L194.29 38.512C183.321 38.512 169.34 44.4991 154.444 56.0153C163.93 64.9374 172.634 74.6557 180.462 85.064C193.375 86.6345 206.128 89.3102 218.584 93.0624C218.812 91.4325 219.003 89.8118 219.165 88.2098C221.548 64.7099 216.65 47.6164 205.737 41.3148ZM144.552 64.3097C138.104 70.2614 132.054 76.6306 126.443 83.3765C132.39 82.995 138.426 82.8046 144.552 82.8046C150.727 82.8046 156.778 83.0143 162.707 83.3765C157.08 76.6293 151.015 70.2596 144.552 64.3097Z" fill="white"/><path d="M144.598 47.4924C169.712 27.3959 194.547 20.0265 212.131 30.1797C227.847 39.2555 234.88 60.3243 231.926 89.516C231.677 92.0069 231.327 94.5423 230.941 97.1058L228.526 110.14L228.496 110.127C228.487 110.165 228.478 110.203 228.469 110.24L216.255 105.741L216.249 105.723C207.916 103.125 199.42 101.075 190.82 99.5888L190.696 99.5588L173.525 97.2648L173.511 97.263C173.492 97.236 173.468 97.2176 173.447 97.1905C163.863 96.2064 154.234 95.7166 144.598 95.7223C134.943 95.7162 125.295 96.219 115.693 97.2286C110.075 105.033 104.859 113.118 100.063 121.453C95.2426 129.798 90.8622 138.391 86.939 147.193C90.8622 155.996 95.2426 164.588 100.063 172.933C104.866 181.302 110.099 189.417 115.741 197.245L115.766 197.247L115.752 197.27L115.745 197.283L115.754 197.296L126.501 211.013L126.574 211.089C132.136 217.767 138.126 224.075 144.506 229.974L144.61 230.082L154.572 238.287C154.539 238.319 154.506 238.35 154.473 238.38L154.512 238.412L143.847 247.482L143.827 247.497C126.56 261.13 109.472 268.745 94.8018 268.745C88.5915 268.837 82.4687 267.272 77.0657 264.208C61.3496 255.132 54.3162 234.062 57.2707 204.871C57.528 202.307 57.8806 199.694 58.2904 197.054C28.3362 185.327 9.52298 167.51 9.52298 147.193C9.52298 129.042 24.2476 112.396 50.9901 100.375C53.3443 99.3163 55.7938 98.3058 58.2904 97.3526C57.8806 94.7023 57.528 92.0803 57.2707 89.516C54.3162 60.3243 61.3496 39.2555 77.0657 30.1797C94.6493 20.0265 119.486 27.3959 144.598 47.4924ZM70.6422 201.315C70.423 202.955 70.2229 204.566 70.0704 206.168C67.6686 229.567 72.5478 246.628 83.3615 252.988L83.5175 253.062C95.0399 259.717 114.015 254.426 134.782 238.38C125.298 229.45 116.594 219.725 108.764 209.314C95.8515 207.742 83.0977 205.066 70.6422 201.315ZM80.3534 163.438C77.34 171.677 74.8666 180.104 72.9484 188.664C81.1786 191.224 89.5657 193.247 98.0572 194.724L98.4618 194.813C95.2115 189.865 92.0191 184.66 88.931 179.378C85.8433 174.097 83.003 168.768 80.3534 163.438ZM60.7589 110.203C59.234 110.839 57.7378 111.475 56.2699 112.11C34.7788 121.806 22.3891 134.591 22.3891 147.193C22.3891 160.493 36.4657 174.297 60.7494 184.26C63.7439 171.581 67.8124 159.182 72.9103 147.193C67.822 135.23 63.7566 122.855 60.7589 110.203ZM98.4137 99.6404C89.8078 101.145 81.3075 103.206 72.9676 105.809C74.8539 114.203 77.2741 122.468 80.2132 130.554L80.3059 130.939C82.9938 125.6 85.8049 120.338 88.8834 115.008C91.9618 109.679 95.1544 104.569 98.4137 99.6404ZM94.9258 38.5215C90.9331 38.4284 86.9866 39.3955 83.4891 41.3243C72.629 47.6015 67.6975 64.5954 70.0424 87.9446L70.0415 88.2194C70.194 89.8208 70.3941 91.4325 70.6134 93.0624C83.0737 89.3364 95.8262 86.6703 108.736 85.0924C116.57 74.6779 125.28 64.9532 134.772 56.0249C119.877 44.5087 105.895 38.5215 94.9258 38.5215ZM205.737 41.3148C202.268 39.398 198.355 38.4308 194.394 38.5099L194.291 38.512C183.321 38.512 169.34 44.4991 154.443 56.0153C163.929 64.9374 172.634 74.6557 180.462 85.064C193.374 86.6345 206.129 89.3102 218.584 93.0624C218.813 91.4325 219.003 89.8118 219.166 88.2098C221.548 64.7099 216.65 47.6164 205.737 41.3148ZM144.551 64.3097C138.103 70.2614 132.055 76.6306 126.443 83.3765C132.389 82.995 138.427 82.8046 144.551 82.8046C150.727 82.8046 156.779 83.0143 162.707 83.3765C157.079 76.6293 151.015 70.2596 144.551 64.3097Z" fill="#FF40E0"/></g><mask id="mask1_0_3" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="102" y="84" width="161" height="162"><path d="M235.282 84.827L102.261 112.259L129.693 245.28L262.714 217.848L235.282 84.827Z" fill="white"/></mask><g mask="url(#mask1_0_3)"><path d="M136.863 129.916L213.258 141.224C220.669 142.322 222.495 152.179 215.967 155.856L187.592 171.843L184.135 204.227C183.339 211.678 173.564 213.901 169.624 207.526L129.021 141.831C125.503 136.14 130.245 128.936 136.863 129.916Z" fill="#FF40E0" stroke="#FF40E0" stroke-width="0.817337" stroke-linecap="round" stroke-linejoin="round"/></g></g><defs><clipPath id="clip0_0_3"><rect width="294" height="294" fill="white"/></clipPath></defs></svg>';var Je=(e,t,n)=>e+(t-e)*n;function Mo(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Mo(e[t]))&&(r&&(r+=" "),r+=n);}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Lo(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Mo(e))&&(r&&(r+=" "),r+=t);return r}var Wn="-",Is=e=>{let t=$s(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return {getClassGroupId:a=>{let l=a.split(Wn);return l[0]===""&&l.length!==1&&l.shift(),Po(l,t)||Ps(a)},getConflictingClassGroupIds:(a,l)=>{let c=n[a]||[];return l&&r[a]?[...c,...r[a]]:c}}},Po=(e,t)=>{if(e.length===0)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),i=r?Po(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let o=e.join(Wn);return t.validators.find(({validator:a})=>a(o))?.classGroupId},Oo=/^\[(.+)\]$/,Ps=e=>{if(Oo.test(e)){let t=Oo.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return "arbitrary.."+n}},$s=e=>{let{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Bs(Object.entries(e.classGroups),n).forEach(([o,a])=>{qn(a,r,o,t);}),r},qn=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){let o=i===""?t:Io(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(Fs(i)){qn(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,a])=>{qn(a,Io(t,o),n,r);});});},Io=(e,t)=>{let n=e;return t.split(Wn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r);}),n},Fs=e=>e.isThemeGetter,Bs=(e,t)=>t?e.map(([n,r])=>{let i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([a,l])=>[t+a,l])):o);return [n,i]}):e,Ds=e=>{if(e<1)return {get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map,i=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map);};return {get(o){let a=n.get(o);if(a!==void 0)return a;if((a=r.get(o))!==void 0)return i(o,a),a},set(o,a){n.has(o)?n.set(o,a):i(o,a);}}},$o="!",Hs=e=>{let{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],o=t.length,a=l=>{let c=[],u=0,b=0,g;for(let P=0;P<l.length;P++){let E=l[P];if(u===0){if(E===i&&(r||l.slice(P,P+o)===t)){c.push(l.slice(b,P)),b=P+o;continue}if(E==="/"){g=P;continue}}E==="["?u++:E==="]"&&u--;}let T=c.length===0?l:l.substring(b),w=T.startsWith($o),x=w?T.substring(1):T,A=g&&g>b?g-b:void 0;return {modifiers:c,hasImportantModifier:w,baseClassName:x,maybePostfixModifierPosition:A}};return n?l=>n({className:l,parseClassName:a}):a},zs=e=>{if(e.length<=1)return e;let t=[],n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r);}),t.push(...n.sort()),t},js=e=>({cache:Ds(e.cacheSize),parseClassName:Hs(e),...Is(e)}),Vs=/\s+/,Gs=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(Vs),l="";for(let c=a.length-1;c>=0;c-=1){let u=a[c],{modifiers:b,hasImportantModifier:g,baseClassName:T,maybePostfixModifierPosition:w}=n(u),x=!!w,A=r(x?T.substring(0,w):T);if(!A){if(!x){l=u+(l.length>0?" "+l:l);continue}if(A=r(T),!A){l=u+(l.length>0?" "+l:l);continue}x=false;}let P=zs(b).join(":"),E=g?P+$o:P,v=E+A;if(o.includes(v))continue;o.push(v);let N=i(A,x);for(let z=0;z<N.length;++z){let I=N[z];o.push(E+I);}l=u+(l.length>0?" "+l:l);}return l};function Us(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Fo(t))&&(r&&(r+=" "),r+=n);return r}var Fo=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Fo(e[r]))&&(n&&(n+=" "),n+=t);return n};function Ks(e,...t){let n,r,i,o=a;function a(c){let u=t.reduce((b,g)=>g(b),e());return n=js(u),r=n.cache.get,i=n.cache.set,o=l,l(c)}function l(c){let u=r(c);if(u)return u;let b=Gs(c,n);return i(c,b),b}return function(){return o(Us.apply(null,arguments))}}var le=e=>{let t=n=>n[e]||[];return t.isThemeGetter=true,t},Bo=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ys=/^\d+\/\d+$/,Xs=new Set(["px","full","screen"]),qs=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ws=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Zs=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Js=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qs=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,je=e=>xt(e)||Xs.has(e)||Ys.test(e),Qe=e=>vt(e,"length",aa),xt=e=>!!e&&!Number.isNaN(Number(e)),Xn=e=>vt(e,"number",xt),Ht=e=>!!e&&Number.isInteger(Number(e)),ea=e=>e.endsWith("%")&&xt(e.slice(0,-1)),q=e=>Bo.test(e),et=e=>qs.test(e),ta=new Set(["length","size","percentage"]),na=e=>vt(e,ta,Do),ra=e=>vt(e,"position",Do),oa=new Set(["image","url"]),ia=e=>vt(e,oa,ca),sa=e=>vt(e,"",la),zt=()=>true,vt=(e,t,n)=>{let r=Bo.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):false},aa=e=>Ws.test(e)&&!Zs.test(e),Do=()=>false,la=e=>Js.test(e),ca=e=>Qs.test(e);var ua=()=>{let e=le("colors"),t=le("spacing"),n=le("blur"),r=le("brightness"),i=le("borderColor"),o=le("borderRadius"),a=le("borderSpacing"),l=le("borderWidth"),c=le("contrast"),u=le("grayscale"),b=le("hueRotate"),g=le("invert"),T=le("gap"),w=le("gradientColorStops"),x=le("gradientColorStopPositions"),A=le("inset"),P=le("margin"),E=le("opacity"),v=le("padding"),N=le("saturate"),z=le("scale"),I=le("sepia"),j=le("skew"),W=le("space"),Y=le("translate"),U=()=>["auto","contain","none"],te=()=>["auto","hidden","clip","visible","scroll"],y=()=>["auto",q,t],p=()=>[q,t],m=()=>["",je,Qe],f=()=>["auto",xt,q],_=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],X=()=>["solid","dashed","dotted","double","none"],L=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],H=()=>["","0",q],G=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>[xt,q];return {cacheSize:500,separator:":",theme:{colors:[zt],spacing:[je,Qe],blur:["none","",et,q],brightness:O(),borderColor:[e],borderRadius:["none","","full",et,q],borderSpacing:p(),borderWidth:m(),contrast:O(),grayscale:H(),hueRotate:O(),invert:H(),gap:p(),gradientColorStops:[e],gradientColorStopPositions:[ea,Qe],inset:y(),margin:y(),opacity:O(),padding:p(),saturate:O(),scale:O(),sepia:H(),skew:O(),space:p(),translate:p()},classGroups:{aspect:[{aspect:["auto","square","video",q]}],container:["container"],columns:[{columns:[et]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[..._(),q]}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[A]}],"inset-x":[{"inset-x":[A]}],"inset-y":[{"inset-y":[A]}],start:[{start:[A]}],end:[{end:[A]}],top:[{top:[A]}],right:[{right:[A]}],bottom:[{bottom:[A]}],left:[{left:[A]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ht,q]}],basis:[{basis:y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",q]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",Ht,q]}],"grid-cols":[{"grid-cols":[zt]}],"col-start-end":[{col:["auto",{span:["full",Ht,q]},q]}],"col-start":[{"col-start":f()}],"col-end":[{"col-end":f()}],"grid-rows":[{"grid-rows":[zt]}],"row-start-end":[{row:["auto",{span:[Ht,q]},q]}],"row-start":[{"row-start":f()}],"row-end":[{"row-end":f()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",q]}],gap:[{gap:[T]}],"gap-x":[{"gap-x":[T]}],"gap-y":[{"gap-y":[T]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[P]}],mx:[{mx:[P]}],my:[{my:[P]}],ms:[{ms:[P]}],me:[{me:[P]}],mt:[{mt:[P]}],mr:[{mr:[P]}],mb:[{mb:[P]}],ml:[{ml:[P]}],"space-x":[{"space-x":[W]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[W]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",q,t]}],"min-w":[{"min-w":[q,t,"min","max","fit"]}],"max-w":[{"max-w":[q,t,"none","full","min","max","fit","prose",{screen:[et]},et]}],h:[{h:[q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",et,Qe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Xn]}],"font-family":[{font:[zt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",q]}],"line-clamp":[{"line-clamp":["none",xt,Xn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",je,q]}],"list-image":[{"list-image":["none",q]}],"list-style-type":[{list:["none","disc","decimal",q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",je,Qe]}],"underline-offset":[{"underline-offset":["auto",je,q]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:p()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[..._(),ra]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",na]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ia]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...X(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:X()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...X()]}],"outline-offset":[{"outline-offset":[je,q]}],"outline-w":[{outline:[je,Qe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:m()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[je,Qe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",et,sa]}],"shadow-color":[{shadow:[zt]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...L(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":L()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",et,q]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[g]}],saturate:[{saturate:[N]}],sepia:[{sepia:[I]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",q]}],duration:[{duration:O()}],ease:[{ease:["linear","in","out","in-out",q]}],delay:[{delay:O()}],animate:[{animate:["none","spin","ping","pulse","bounce",q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-y":[{"scale-y":[z]}],rotate:[{rotate:[Ht,q]}],"translate-x":[{"translate-x":[Y]}],"translate-y":[{"translate-y":[Y]}],"skew-x":[{"skew-x":[j]}],"skew-y":[{"skew-y":[j]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",q]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":p()}],"scroll-mx":[{"scroll-mx":p()}],"scroll-my":[{"scroll-my":p()}],"scroll-ms":[{"scroll-ms":p()}],"scroll-me":[{"scroll-me":p()}],"scroll-mt":[{"scroll-mt":p()}],"scroll-mr":[{"scroll-mr":p()}],"scroll-mb":[{"scroll-mb":p()}],"scroll-ml":[{"scroll-ml":p()}],"scroll-p":[{"scroll-p":p()}],"scroll-px":[{"scroll-px":p()}],"scroll-py":[{"scroll-py":p()}],"scroll-ps":[{"scroll-ps":p()}],"scroll-pe":[{"scroll-pe":p()}],"scroll-pt":[{"scroll-pt":p()}],"scroll-pr":[{"scroll-pr":p()}],"scroll-pb":[{"scroll-pb":p()}],"scroll-pl":[{"scroll-pl":p()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[je,Qe,Xn]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ho=Ks(ua);var Ie=(...e)=>Ho(Lo(e));var fa=re("<div style=overflow:visible>"),lt=e=>{let[t,n]=R(e.bounds.x),[r,i]=R(e.bounds.y),[o,a]=R(e.bounds.width),[l,c]=R(e.bounds.height),[u,b]=R(1),g=false,T=null,w=null,x=e.bounds,A=false,P=()=>e.lerpFactor!==void 0?e.lerpFactor:e.variant==="drag"?.7:.95,E=()=>{if(A)return;A=true;let v=()=>{let N=Je(t(),x.x,P()),z=Je(r(),x.y,P()),I=Je(o(),x.width,P()),j=Je(l(),x.height,P());n(N),i(z),a(I),c(j),Math.abs(N-x.x)<.5&&Math.abs(z-x.y)<.5&&Math.abs(I-x.width)<.5&&Math.abs(j-x.height)<.5?(T=null,A=false):T=requestAnimationFrame(v);};T=requestAnimationFrame(v);};return ne(we(()=>e.bounds,v=>{if(x=v,!g){n(x.x),i(x.y),a(x.width),c(x.height),g=true;return}E();})),ne(()=>{e.variant==="grabbed"&&e.createdAt&&(w=window.setTimeout(()=>{b(0);},1500));}),he(()=>{T!==null&&(cancelAnimationFrame(T),T=null),w!==null&&(window.clearTimeout(w),w=null),A=false;}),M(se,{get when(){return e.visible!==false},get children(){var v=fa();return ue(N=>{var z=Ie("fixed box-border",e.variant==="drag"&&"pointer-events-none",e.variant!=="drag"&&"pointer-events-auto",e.variant==="grabbed"&&"z-2147483645",e.variant!=="grabbed"&&"z-2147483646",e.variant==="drag"&&"border border-solid border-grab-purple/40 bg-grab-purple/5 will-change-[transform,width,height] cursor-crosshair",e.variant==="selection"&&"border border-solid border-grab-purple/50 bg-grab-purple/8 transition-opacity duration-100 ease-out",e.variant==="grabbed"&&"border border-solid react-grab-flash",e.variant==="processing"&&!e.isCompleted&&"border border-solid border-grab-purple/50 bg-grab-purple/8",e.variant==="processing"&&e.isCompleted&&"border border-solid react-grab-flash"),I=`${r()}px`,j=`${t()}px`,W=`${o()}px`,Y=`${l()}px`,U=e.bounds.borderRadius,te=e.bounds.transform,y=e.isFading?0:u(),p=e.variant==="drag"?"layout paint size":void 0;return z!==N.e&&Fe(v,N.e=z),I!==N.t&&pe(v,"top",N.t=I),j!==N.a&&pe(v,"left",N.a=j),W!==N.o&&pe(v,"width",N.o=W),Y!==N.i&&pe(v,"height",N.i=Y),U!==N.n&&pe(v,"border-radius",N.n=U),te!==N.s&&pe(v,"transform",N.s=te),y!==N.h&&pe(v,"opacity",N.h=y),p!==N.r&&pe(v,"contain",N.r=p),N},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0}),v}})};var zo=e=>{let t=e.lerpFactor??.3,n=e.convergenceThreshold??.5,[r,i]=R(e.x()),[o,a]=R(e.y()),l=e.x(),c=e.y(),u=null,b=false,g=()=>{let w=Je(r(),l,t),x=Je(o(),c,t);i(w),a(x),Math.abs(w-l)<n&&Math.abs(x-c)<n?u=null:u=requestAnimationFrame(g);},T=()=>{u===null&&(u=requestAnimationFrame(g));};return ne(()=>{if(l=e.x(),c=e.y(),!b){i(l),a(c),b=true;return}T();}),he(()=>{u!==null&&(cancelAnimationFrame(u),u=null);}),{x:r,y:o}};var ma=re('<canvas class="fixed top-0 left-0 pointer-events-none z-[2147483645]">'),jo=e=>{let t,n=null,r=0,i=0,o=1,a=zo({x:()=>e.mouseX,y:()=>e.mouseY,lerpFactor:.3}),l=()=>{t&&(o=Math.max(window.devicePixelRatio||1,2),r=window.innerWidth,i=window.innerHeight,t.width=r*o,t.height=i*o,t.style.width=`${r}px`,t.style.height=`${i}px`,n=t.getContext("2d"),n&&n.scale(o,o));},c=()=>{n&&(n.clearRect(0,0,r,i),n.strokeStyle="rgba(210, 57, 192)",n.lineWidth=1,n.beginPath(),n.moveTo(a.x(),0),n.lineTo(a.x(),i),n.moveTo(0,a.y()),n.lineTo(r,a.y()),n.stroke());};return ne(()=>{l(),c();let u=()=>{l(),c();};window.addEventListener("resize",u),he(()=>{window.removeEventListener("resize",u);});}),ne(()=>{a.x(),a.y(),c();}),M(se,{get when(){return e.visible!==false},get children(){var u=ma(),b=t;return typeof b=="function"?yt(b,u):t=u,u}})};var Vo=e=>{let t,[n,r]=R(false),i=()=>typeof window<"u"&&(!!window.SpeechRecognition||!!window.webkitSpeechRecognition),o=()=>{if(!i())return;let c=window.SpeechRecognition||window.webkitSpeechRecognition;if(!c)return;t=new c,t.continuous=true,t.interimResults=true,t.lang=navigator.language||"en-US";let u="",b="";t.onresult=g=>{let T=e.getCurrentValue(),w;u&&T.endsWith(u)||T===b?w=T.slice(0,-u.length):w=T;let x="",A="";for(let E=g.resultIndex;E<g.results.length;E++){let v=g.results[E][0].transcript;g.results[E].isFinal?x+=v:A+=v;}u=A;let P=w+x+A;b=P,e.onTranscript(P);},t.onerror=()=>{r(false);},t.onend=()=>{r(false);},t.start(),r(true);},a=()=>{t&&(t.stop(),t=void 0),r(false);},l=()=>{n()?a():o();};return he(()=>{a();}),{isListening:n,isSupported:i,start:o,stop:a,toggle:l}};var pa=re('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2><path d="M12 6H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6"></path><path d="M11 13l9-9"></path><path d="M15 4h5v5">'),Go=e=>{let t=()=>e.size??12;return (()=>{var n=pa();return ue(r=>{var i=t(),o=t(),a=e.class;return i!==r.e&&Le(n,"width",r.e=i),o!==r.t&&Le(n,"height",r.t=o),a!==r.a&&Le(n,"class",r.a=a),r},{e:void 0,t:void 0,a:void 0}),n})()};var ga=re('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1=12 x2=12 y1=19 y2=22>'),Uo=e=>{let t=()=>e.size??12;return (()=>{var n=ga();return ue(r=>{var i=t(),o=t(),a=e.class;return i!==r.e&&Le(n,"width",r.e=i),o!==r.t&&Le(n,"height",r.t=o),a!==r.a&&Le(n,"class",r.a=a),r},{e:void 0,t:void 0,a:void 0}),n})()};var ha=re('<div style="background-image:linear-gradient(in oklab 180deg, oklab(88.7% 0.086 -0.058) 0%, oklab(83.2% 0.132 -0.089) 100%)"><span>'),ba=re(`<div class="contain-layout shrink-0 flex items-center w-fit h-4 rounded-[1px] gap-1 px-[3px] [border-width:0.5px] border-solid border-[#B3B3B3] py-0 bg-[#F7F7F7]"><span class="text-[#0C0C0C] text-[11.5px] leading-3.5 shrink-0 tracking-[-0.08em] font-[ui-monospace,'SFMono-Regular','SF_Mono','Menlo','Consolas','Liberation_Mono',monospace] w-fit h-fit">`),ya=re(`<div class="contain-layout shrink-0 flex items-center w-fit h-4 rounded-[1px] gap-1 px-[3px] [border-width:0.5px] border-solid border-white py-0"><span class="text-[#0C0C0C] text-[11.5px] leading-3.5 shrink-0 tracking-[-0.08em] font-[ui-monospace,'SFMono-Regular','SF_Mono','Menlo','Consolas','Liberation_Mono',monospace] w-fit h-fit">&gt;`),wa=re('<div class="absolute w-0 h-0"style="border-left:8px solid transparent;border-right:8px solid transparent">'),xa=re('<div role=button><div class="text-black text-[12px] leading-4 shrink-0 tracking-[-0.04em] font-sans font-medium w-fit h-fit">'),va=re('<div class="[font-synthesis:none] contain-layout shrink-0 flex flex-col items-start px-2 py-[5px] w-auto h-fit self-stretch [border-top-width:0.5px] border-t-solid border-t-[#D9D9D9] antialiased rounded-t-none rounded-b-xs"style="background-image:linear-gradient(in oklab 180deg, oklab(100% 0 0) 0%, oklab(96.1% 0 0) 5.92%)">'),Ca=re('<div class="[font-synthesis:none] contain-layout shrink-0 flex items-center gap-1 rounded-xs bg-white antialiased w-fit h-fit py-1 px-1.5"><div class="contain-layout shrink-0 flex items-center px-0 py-px w-fit h-[18px] rounded-[1.5px] gap-[3px]"><div class="text-black text-[12px] leading-4 shrink-0 tracking-[-0.04em] font-sans font-medium w-fit h-fit">'),Sa=re('<button class="contain-layout shrink-0 flex flex-col items-start rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] p-1 size-fit cursor-pointer ml-1 transition-none hover:scale-105"><div class="shrink-0 w-[7px] h-[7px] rounded-[1px] bg-black">'),Ea=re('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea class="text-black text-[12px] leading-4 tracking-[-0.04em] font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 opacity-50 break-all"placeholder="type to edit"rows=1 disabled style=field-sizing:content;min-height:16px>'),ka=re('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-auto h-fit"><div class="contain-layout flex items-center px-0 py-px w-auto h-fit rounded-[1.5px] gap-[3px]"><div class="text-black text-[12px] leading-4 tracking-[-0.04em] font-sans font-medium w-auto h-fit whitespace-normal react-grab-shimmer">'),Ko=re('<div class="contain-layout shrink-0 flex items-center gap-px w-fit h-fit">'),Ta=re('<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'),Aa=re('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 w-fit h-fit px-1.5"></div><div class="grid w-full transition-[grid-template-rows] duration-30 ease-out"><div class="overflow-hidden min-h-0">'),Na=re("<button>"),_a=re('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea class="text-black text-[12px] leading-4 tracking-[-0.04em] font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 break-all"rows=1 style=field-sizing:content;min-height:16px></textarea><div class="flex items-center gap-0.5 ml-1"><button class="contain-layout shrink-0 flex flex-col items-start px-[3px] py-[3px] rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit cursor-pointer transition-none hover:scale-105"><div style=background-image:url(https://workers.paper.design/file-assets/01K8D51Q7E2ESJTN18XN2MT96X/01KBEJ7N5GQ0ZZ7K456R42AP4V.svg)>'),Ra=re('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-fit h-fit">'),Ma=re('<div data-react-grab-ignore-events class="fixed font-sans antialiased transition-opacity duration-300 ease-out filter-[drop-shadow(0px_0px_4px_#51515180)]"style=z-index:2147483647><div class="[font-synthesis:none] contain-layout flex items-center gap-[5px] rounded-xs bg-white antialiased w-fit h-fit p-0">'),Yo=8,Xo=4,La=400;var pn=e=>{let[t,n]=R(false),r=()=>{n(true),e.onHoverChange?.(true);},i=()=>{n(false),e.onHoverChange?.(false);};return (()=>{var o=ha(),a=o.firstChild;return Dt(o,"click",e.onClick),o.addEventListener("mouseleave",i),o.addEventListener("mouseenter",r),J(a,()=>e.tagName),J(o,M(se,{get when(){return e.isClickable||e.forceShowIcon},get children(){return M(Go,{size:10,get class(){return Ie("text-label-tag-border transition-all duration-100",t()||e.forceShowIcon?"opacity-100 scale-100":"opacity-0 scale-75 -ml-[2px] w-0")}})}}),null),ue(l=>{var c=Ie("contain-layout flex items-center px-[3px] py-0 h-4 rounded-[1px] gap-0.5 [border-width:0.5px] border-solid border-label-tag-border",e.shrink&&"shrink-0 w-fit",e.isClickable&&"cursor-pointer"),u=Ie("text-[#47004A] text-[11.5px] leading-3.5 shrink-0 w-fit h-fit",e.showMono?"tracking-[-0.08em] font-[ui-monospace,'SFMono-Regular','SF_Mono','Menlo','Consolas','Liberation_Mono',monospace]":"tracking-[-0.04em] font-medium");return c!==l.e&&Fe(o,l.e=c),u!==l.t&&Fe(a,l.t=u),l},{e:void 0,t:void 0}),o})()},qo=e=>(()=>{var t=ba(),n=t.firstChild;return J(n,()=>e.name),t})(),Wo=()=>ya(),Oa=e=>{let t=()=>e.color??"white";return (()=>{var n=wa();return ue(r=>Eo(n,{left:`${e.leftPx}px`,...e.position==="bottom"?{top:"0",transform:"translateX(-50%) translateY(-100%)"}:{bottom:"0",transform:"translateX(-50%) translateY(100%)"},...e.position==="bottom"?{"border-bottom":`8px solid ${t()}`}:{"border-top":`8px solid ${t()}`}},r)),n})()},Zo=e=>{let t=()=>e.hasAgent?"Selecting":e.hasParent?"Copy":"Click to copy";return (()=>{var n=xa(),r=n.firstChild;return Dt(n,"click",e.onClick),J(r,t),ue(()=>Fe(n,Ie("contain-layout shrink-0 flex items-center px-0 py-px w-fit h-[18px] rounded-[1.5px] gap-[3px]",e.asButton&&"cursor-pointer",e.dimmed&&"opacity-50 hover:opacity-100 transition-opacity"))),n})()};var Zn=e=>(()=>{var t=va();return J(t,()=>e.children),t})(),Ct=e=>{let t,n,r=false,[i,o]=R(0),[a,l]=R(0),[c,u]=R("bottom"),[b,g]=R(0),[T,w]=R(false),x=Vo({onTranscript:f=>e.onInputChange?.(f),getCurrentValue:()=>e.inputValue??""}),A=()=>e.status!=="copying"&&e.status!=="copied"&&e.status!=="fading",P=()=>{if(t&&!r){let f=t.getBoundingClientRect();o(f.width),l(f.height);}},E=f=>{r=f;},v=()=>{g(f=>f+1);},N,z=()=>{w(false),N&&clearTimeout(N),N=setTimeout(()=>{w(true);},La);},I=f=>{f.code==="Enter"&&T()&&!e.isInputExpanded&&A()&&(f.preventDefault(),f.stopPropagation(),f.stopImmediatePropagation(),e.onToggleExpand?.());};mo(()=>{P(),window.addEventListener("scroll",v,true),window.addEventListener("resize",v),window.addEventListener("keydown",I,{capture:true}),z();}),he(()=>{window.removeEventListener("scroll",v,true),window.removeEventListener("resize",v),window.removeEventListener("keydown",I,{capture:true}),N&&clearTimeout(N);}),ne(()=>{e.selectionBounds,z();}),ne(()=>{e.visible&&requestAnimationFrame(P);}),ne(()=>{e.status,requestAnimationFrame(P);}),ne(()=>{e.isInputExpanded&&n?setTimeout(()=>{n?.focus();},0):x.stop();});let j=()=>{b();let f=e.selectionBounds,_=i(),X=a();if(!f||_===0||X===0)return {left:-9999,top:-9999,arrowLeft:0};let L=window.innerWidth,D=window.innerHeight,H=f.x+f.width/2,G=e.mouseX??H,O=f.y+f.height,$=f.y,ee=G-_/2,V=O+Yo+Xo;ee+_>L-8&&(ee=L-_-8),ee<8&&(ee=8);let K=X+Yo+Xo;V+X<=D-8?u("bottom"):(V=$-K,u("top")),V<8&&(V=8);let xe=Math.max(12,Math.min(G-ee,_-12));return {left:ee,top:V,arrowLeft:xe}},W=f=>{f.stopPropagation(),f.stopImmediatePropagation(),f.code==="Enter"&&!f.shiftKey?(f.preventDefault(),x.stop(),e.onSubmit?.()):f.code==="Escape"&&(f.preventDefault(),x.stop(),e.onCancel?.());},Y=f=>{let _=f.target;e.onInputChange?.(_.value);},U=()=>e.tagName||"element",te=f=>{f.stopPropagation(),f.stopImmediatePropagation(),e.filePath&&e.onOpen&&e.onOpen();},y=()=>!!(e.filePath&&e.onOpen),p=f=>{f.stopPropagation(),f.stopImmediatePropagation();},m=()=>{x.stop(),e.onSubmit?.();};return M(se,{get when(){return be(()=>e.visible!==false)()&&e.selectionBounds},get children(){var f=Ma(),_=f.firstChild;f.$$click=p,f.$$mousedown=p,f.$$pointerdown=p;var X=t;return typeof X=="function"?yt(X,f):t=f,J(f,M(Oa,{get position(){return c()},get leftPx(){return j().arrowLeft}}),_),J(f,M(se,{get when(){return e.status==="copied"||e.status==="fading"},get children(){var L=Ca(),D=L.firstChild,H=D.firstChild;return J(H,()=>e.hasAgent?"Completed":"Copied"),L}}),_),J(_,M(se,{get when(){return e.status==="copying"},get children(){var L=ka(),D=L.firstChild,H=D.firstChild,G=H.firstChild;return J(G,()=>e.statusText??"Grabbing\u2026"),J(L,M(Zn,{get children(){var O=Ea(),$=O.firstChild,ee=n;return typeof ee=="function"?yt(ee,$):n=$,J(O,M(se,{get when(){return e.onAbort},get children(){var V=Sa();return Dt(V,"click",e.onAbort),V}}),null),ue(()=>$.value=e.inputValue??""),O}}),null),L}}),null),J(_,M(se,{get when(){return be(()=>!!A())()&&!e.isInputExpanded},get children(){var L=Aa(),D=L.firstChild,H=D.nextSibling,G=H.firstChild;return J(D,M(Zo,{onClick:m,shrink:true,get hasParent(){return !!e.componentName},get hasAgent(){return e.hasAgent}}),null),J(D,M(se,{get when(){return e.componentName},get children(){var O=Ko();return J(O,M(qo,{get name(){return e.componentName}}),null),J(O,M(Wo,{}),null),J(O,M(pn,{get tagName(){return U()},get isClickable(){return y()},onClick:te,onHoverChange:E,showMono:true,shrink:true}),null),O}}),null),J(D,M(se,{get when(){return !e.componentName},get children(){return M(pn,{get tagName(){return U()},get isClickable(){return y()},onClick:te,onHoverChange:E,showMono:true,shrink:true})}}),null),J(G,M(Zn,{get children(){var O=Ta(),$=O.firstChild,ee=$.nextSibling;ee.firstChild;return O}})),ue(O=>pe(H,"grid-template-rows",T()?"1fr":"0fr")),L}}),null),J(_,M(se,{get when(){return be(()=>!!A())()&&e.isInputExpanded},get children(){var L=Ra(),D=L.firstChild;return J(D,M(Zo,{onClick:m,dimmed:true,shrink:true,get hasParent(){return !!e.componentName},get hasAgent(){return e.hasAgent}}),null),J(D,M(se,{get when(){return e.componentName},get children(){var H=Ko();return J(H,M(qo,{get name(){return e.componentName}}),null),J(H,M(Wo,{}),null),J(H,M(pn,{get tagName(){return U()},get isClickable(){return y()},onClick:te,onHoverChange:E,showMono:true,shrink:true,forceShowIcon:true}),null),H}}),null),J(D,M(se,{get when(){return !e.componentName},get children(){return M(pn,{get tagName(){return U()},get isClickable(){return y()},onClick:te,onHoverChange:E,showMono:true,shrink:true,forceShowIcon:true})}}),null),J(L,M(Zn,{get children(){var H=_a(),G=H.firstChild,O=G.nextSibling,$=O.firstChild,ee=$.firstChild;G.$$keydown=W,G.$$input=Y;var V=n;return typeof V=="function"?yt(V,G):n=G,J(O,M(se,{get when(){return be(()=>!!e.hasAgent)()&&x.isSupported()},get children(){var K=Na();return Dt(K,"click",x.toggle),J(K,M(Uo,{size:11,get class(){return x.isListening()?"animate-pulse":""}})),ue(ce=>{var xe=Ie("contain-layout shrink-0 flex items-center justify-center px-[3px] py-[3px] rounded-xs [border-width:0.5px] border-solid size-fit cursor-pointer transition-all hover:scale-105",x.isListening()?"bg-grab-purple border-grab-purple text-white":"bg-white border-[#B3B3B3] text-black/50 hover:text-black"),Pe=x.isListening()?"Stop listening":"Start voice input";return xe!==ce.e&&Fe(K,ce.e=xe),Pe!==ce.t&&Le(K,"title",ce.t=Pe),ce},{e:void 0,t:void 0}),K}}),$),$.$$click=m,ue(K=>{var ce=x.isListening()?"listening...":e.hasAgent?"type or speak to edit":"type to edit",xe=Ie("w-2.5 h-[9px] shrink-0 bg-cover bg-center transition-opacity duration-100",e.inputValue?"opacity-[0.99]":"opacity-50");return ce!==K.e&&Le(G,"placeholder",K.e=ce),xe!==K.t&&Fe(ee,K.t=xe),K},{e:void 0,t:void 0}),ue(()=>G.value=e.inputValue??""),H}}),null),L}}),null),ue(L=>{var D=`${j().top}px`,H=`${j().left}px`,G=e.visible?"auto":"none",O=e.status==="fading"?0:1,$=e.status==="copied"||e.status==="fading"?"none":void 0;return D!==L.e&&pe(f,"top",L.e=D),H!==L.t&&pe(f,"left",L.t=H),G!==L.a&&pe(f,"pointer-events",L.a=G),O!==L.o&&pe(f,"opacity",L.o=O),$!==L.i&&pe(_,"display",L.i=$),L},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),f}})};dn(["click","pointerdown","mousedown","input","keydown"]);var Pa=re('<div class="fixed z-2147483647"><button data-react-grab-selection-cursor>'),Jo=e=>{let[t,n]=R(false),[r,i]=R(false);ne(()=>{let a=e.visible!==false;if(e.x,e.y,i(false),a){let l=setTimeout(()=>i(true),500);he(()=>clearTimeout(l));}});let o=a=>{a.preventDefault(),a.stopPropagation(),e.onClick?.();};return M(se,{get when(){return r()},get children(){return [M(se,{get when(){return be(()=>!!t())()&&e.elementBounds},get children(){return M(lt,{variant:"selection",get bounds(){return e.elementBounds},visible:true})}}),(()=>{var a=Pa(),l=a.firstChild;return a.addEventListener("mouseleave",()=>n(false)),a.addEventListener("mouseenter",()=>n(true)),l.$$click=o,ue(c=>{var u=`${e.x}px`,b=`${e.y}px`,g=Ie("absolute left-0 top-0 -translate-x-1/2 -translate-y-1/2 bg-grab-pink cursor-pointer rounded-full transition-[width,height] duration-150",t()?"w-1 h-5.5 brightness-125":"w-0.5 h-5 animate-pulse");return u!==c.e&&pe(a,"left",c.e=u),b!==c.t&&pe(a,"top",c.t=b),g!==c.a&&Fe(l,c.a=g),c},{e:void 0,t:void 0,a:void 0}),a})(),M(se,{get when(){return be(()=>!!t())()&&e.elementBounds},get children(){return M(Ct,{get tagName(){return e.tagName},get selectionBounds(){return e.elementBounds},get mouseX(){return e.x},visible:true,get onSubmit(){return e.onClick}})}})]}})};dn(["click"]);var Qo=e=>[M(se,{get when(){return be(()=>!!e.selectionVisible)()&&e.selectionBounds},get children(){return M(lt,{variant:"selection",get bounds(){return e.selectionBounds},get visible(){return e.selectionVisible},get isFading(){return e.selectionLabelStatus==="fading"}})}}),M(se,{get when(){return be(()=>e.crosshairVisible===true&&e.mouseX!==void 0)()&&e.mouseY!==void 0},get children(){return M(jo,{get mouseX(){return e.mouseX},get mouseY(){return e.mouseY},visible:true})}}),M(se,{get when(){return be(()=>!!e.dragVisible)()&&e.dragBounds},get children(){return M(lt,{variant:"drag",get bounds(){return e.dragBounds},get visible(){return e.dragVisible}})}}),M(Bt,{get each(){return e.grabbedBoxes??[]},children:t=>M(lt,{variant:"grabbed",get bounds(){return t.bounds},get createdAt(){return t.createdAt}})}),M(Bt,{get each(){return be(()=>!!e.agentSessions)()?Array.from(e.agentSessions.values()):[]},children:t=>[M(se,{get when(){return t.selectionBounds},get children(){return M(lt,{variant:"processing",get bounds(){return t.selectionBounds},visible:true,get isCompleted(){return !t.isStreaming}})}}),M(Ct,{get tagName(){return t.tagName},get componentName(){return t.componentName},get selectionBounds(){return t.selectionBounds},get mouseX(){return t.position.x},visible:true,hasAgent:true,get status(){return t.isStreaming?"copying":"copied"},get statusText(){return t.lastStatus||"Please wait\u2026"},get inputValue(){return t.context.prompt},onAbort:()=>e.onAbortSession?.(t.id)})]}),M(se,{get when(){return be(()=>!!e.selectionLabelVisible)()&&e.selectionBounds},get children(){return M(Ct,{get tagName(){return e.selectionTagName},get componentName(){return e.selectionComponentName},get selectionBounds(){return e.selectionBounds},get mouseX(){return e.mouseX},get visible(){return e.selectionLabelVisible},get isInputExpanded(){return e.isInputExpanded},get inputValue(){return e.inputValue},get hasAgent(){return e.hasAgent},get status(){return e.selectionLabelStatus},get filePath(){return e.selectionFilePath},get lineNumber(){return e.selectionLineNumber},get onInputChange(){return e.onInputChange},get onSubmit(){return e.onInputSubmit},get onCancel(){return e.onInputCancel},get onToggleExpand(){return e.onToggleExpand},onOpen:()=>{if(e.selectionFilePath){let t=fn(e.selectionFilePath,e.selectionLineNumber);window.open(t,"_blank");}}})}}),M(Bt,{get each(){return e.labelInstances??[]},children:t=>M(Ct,{get tagName(){return t.tagName},get componentName(){return t.componentName},get selectionBounds(){return t.bounds},get mouseX(){return t.mouseX},visible:true,get status(){return t.status}})}),M(se,{get when(){return be(()=>!!(e.nativeSelectionCursorVisible&&e.nativeSelectionCursorX!==void 0))()&&e.nativeSelectionCursorY!==void 0},get children(){return M(Jo,{get x(){return e.nativeSelectionCursorX},get y(){return e.nativeSelectionCursorY},get tagName(){return e.nativeSelectionTagName},get componentName(){return e.nativeSelectionComponentName},get elementBounds(){return e.nativeSelectionBounds},get visible(){return e.nativeSelectionCursorVisible},get onClick(){return e.onNativeSelectionCopy},get onEnter(){return e.onNativeSelectionEnter}})}})];var ni="0.5.25",bn=`bippy-${ni}`,ei=Object.defineProperty,$a=Object.prototype.hasOwnProperty,jt=()=>{},ri=e=>{try{Function.prototype.toString.call(e).indexOf("^_^")>-1&&setTimeout(()=>{throw Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build")});}catch{}},yn=(e=Ve())=>"getFiberRoots"in e,oi=false,ti,Vt=(e=Ve())=>oi?true:(typeof e.inject=="function"&&(ti=e.inject.toString()),!!ti?.includes("(injected)")),gn=new Set,ut=new Set,ii=e=>{let t=new Map,n=0,r={_instrumentationIsActive:false,_instrumentationSource:bn,checkDCE:ri,hasUnsupportedRendererAttached:false,inject(i){let o=++n;return t.set(o,i),ut.add(i),r._instrumentationIsActive||(r._instrumentationIsActive=true,gn.forEach(a=>a())),o},on:jt,onCommitFiberRoot:jt,onCommitFiberUnmount:jt,onPostCommitFiberRoot:jt,renderers:t,supportsFiber:true,supportsFlight:true};try{ei(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!0,enumerable:!0,get(){return r},set(a){if(a&&typeof a=="object"){let l=r.renderers;r=a,l.size>0&&(l.forEach((c,u)=>{ut.add(c),a.renderers.set(u,c);}),hn(e));}}});let i=window.hasOwnProperty,o=!1;ei(window,"hasOwnProperty",{configurable:!0,value:function(...a){try{if(!o&&a[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,o=!0,-0}catch{}return i.apply(this,a)},writable:!0});}catch{hn(e);}return r},hn=e=>{try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=ri,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=bn,t._instrumentationIsActive=!1;let n=yn(t);if(n||(t.on=jt),t.renderers.size){t._instrumentationIsActive=!0,gn.forEach(o=>o());return}let r=t.inject,i=Vt(t);i&&!n&&(oi=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=o=>{let a=r(o);return ut.add(o),i&&t.renderers.set(a,o),t._instrumentationIsActive=!0,gn.forEach(l=>l()),a};}(t.renderers.size||t._instrumentationIsActive||Vt())&&e?.();}catch{}},Jn=()=>$a.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),Ve=e=>Jn()?(hn(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):ii(e),si=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),Qn=()=>{try{si()&&Ve();}catch{}};var er=0,tr=1;var nr=5;var rr=11,or=13;var ir=15,sr=16;var ar=19;var lr=26,cr=27,ur=28,dr=30;function fr(e,t,n=false){if(!e)return null;let r=t(e);if(r instanceof Promise)return (async()=>{if(await r===true)return e;let o=n?e.return:e.child;for(;o;){let a=await pr(o,t,n);if(a)return a;o=n?null:o.sibling;}return null})();if(r===true)return e;let i=n?e.return:e.child;for(;i;){let o=mr(i,t,n);if(o)return o;i=n?null:i.sibling;}return null}var mr=(e,t,n=false)=>{if(!e)return null;if(t(e)===true)return e;let r=n?e.return:e.child;for(;r;){let i=mr(r,t,n);if(i)return i;r=n?null:r.sibling;}return null},pr=async(e,t,n=false)=>{if(!e)return null;if(await t(e)===true)return e;let r=n?e.return:e.child;for(;r;){let i=await pr(r,t,n);if(i)return i;r=n?null:r.sibling;}return null};var gr=e=>{let t=e;return typeof t=="function"?t:typeof t=="object"&&t?gr(t.type||t.render):null},Gt=e=>{let t=e;if(typeof t=="string")return t;if(typeof t!="function"&&!(typeof t=="object"&&t))return null;let n=t.displayName||t.name||null;if(n)return n;let r=gr(t);return r&&(r.displayName||r.name)||null};var St=()=>!!Ve()._instrumentationIsActive||yn()||Vt();var hr=e=>{let t=Ve();for(let n of t.renderers.values())try{let r=n.findFiberByHostInstance?.(e);if(r)return r}catch{}if(typeof e=="object"&&e){if("_reactRootContainer"in e)return e._reactRootContainer?._internalRoot?.current?.child;for(let n in e)if(n.startsWith("__reactContainer$")||n.startsWith("__reactInternalInstance$")||n.startsWith("__reactFiber"))return e[n]||null}return null};var Ua=Object.create,pi=Object.defineProperty,Ka=Object.getOwnPropertyDescriptor,Ya=Object.getOwnPropertyNames,Xa=Object.getPrototypeOf,qa=Object.prototype.hasOwnProperty,Wa=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Za=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=Ya(t),o=0,a=i.length,l;o<a;o++)l=i[o],!qa.call(e,l)&&l!==n&&pi(e,l,{get:(c=>t[c]).bind(null,l),enumerable:!(r=Ka(t,l))||r.enumerable});return e},Ja=(e,t,n)=>(n=e==null?{}:Ua(Xa(e)),Za(pi(n,"default",{value:e,enumerable:true}),e)),ai=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,Qa=["rsc://","file:///","webpack://","webpack-internal://","node:","turbopack://","metro://","/app-pages-browser/"],li="about://React/",el=["<anonymous>","eval",""],tl=/\.(jsx|tsx|ts|js)$/,nl=/(\.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,rl=/^\?[\w~.\-]+(?:=[^&#]*)?(?:&[\w~.\-]+(?:=[^&#]*)?)*$/,gi="(at Server)",ol=/(^|@)\S+:\d+/,hi=/^\s*at .*(\S+:\d+|\(native\))/m,il=/^(eval@)?(\[native code\])?$/;var bi=(e,t)=>{{let n=e.split(`
11
- `),r=[];for(let i of n)if(/^\s*at\s+/.test(i)){let o=ci(i,void 0)[0];o&&r.push(o);}else if(/^\s*in\s+/.test(i)){let o=i.replace(/^\s*in\s+/,"").replace(/\s*\(at .*\)$/,"");r.push({functionName:o,source:i});}else if(i.match(ol)){let o=ui(i,void 0)[0];o&&r.push(o);}return wr(r,t)}},yi=e=>{if(!e.includes(":"))return [e,void 0,void 0];let t=/(.+?)(?::(\d+))?(?::(\d+))?$/,n=t.exec(e.replace(/[()]/g,""));return [n[1],n[2]||void 0,n[3]||void 0]},wr=(e,t)=>t&&t.slice!=null?Array.isArray(t.slice)?e.slice(t.slice[0],t.slice[1]):e.slice(0,t.slice):e;var ci=(e,t)=>wr(e.split(`
12
- `).filter(r=>!!r.match(hi)),t).map(r=>{let i=r;i.includes("(eval ")&&(i=i.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let o=i.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),a=o.match(/ (\(.+\)$)/);o=a?o.replace(a[0],""):o;let l=yi(a?a[1]:o),c=a&&o||void 0,u=["eval","<anonymous>"].includes(l[0])?void 0:l[0];return {functionName:c,fileName:u,lineNumber:l[1]?+l[1]:void 0,columnNumber:l[2]?+l[2]:void 0,source:i}});var ui=(e,t)=>wr(e.split(`
13
- `).filter(r=>!r.match(il)),t).map(r=>{let i=r;if(i.includes(" > eval")&&(i=i.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!i.includes("@")&&!i.includes(":"))return {functionName:i};{let o=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,a=i.match(o),l=a&&a[1]?a[1]:void 0,c=yi(i.replace(o,""));return {functionName:l,fileName:c[0],lineNumber:c[1]?+c[1]:void 0,columnNumber:c[2]?+c[2]:void 0,source:i}}});var sl=Wa((e,t)=>{(function(n,r){typeof e=="object"&&t!==void 0?r(e):typeof define=="function"&&define.amd?define(["exports"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.sourcemapCodec={}));})(void 0,function(n){let r=44,i=59,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=new Uint8Array(64),l=new Uint8Array(128);for(let y=0;y<o.length;y++){let p=o.charCodeAt(y);a[y]=p,l[p]=y;}function c(y,p){let m=0,f=0,_=0;do{let L=y.next();_=l[L],m|=(_&31)<<f,f+=5;}while(_&32);let X=m&1;return m>>>=1,X&&(m=-2147483648|-m),p+m}function u(y,p,m){let f=p-m;f=f<0?-f<<1|1:f<<1;do{let _=f&31;f>>>=5,f>0&&(_|=32),y.write(a[_]);}while(f>0);return p}function b(y,p){return y.pos>=p?false:y.peek()!==r}let g=1024*16,T=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(y){return Buffer.from(y.buffer,y.byteOffset,y.byteLength).toString()}}:{decode(y){let p="";for(let m=0;m<y.length;m++)p+=String.fromCharCode(y[m]);return p}};class w{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(g);}write(p){let{buffer:m}=this;m[this.pos++]=p,this.pos===g&&(this.out+=T.decode(m),this.pos=0);}flush(){let{buffer:p,out:m,pos:f}=this;return f>0?m+T.decode(p.subarray(0,f)):m}}class x{constructor(p){this.pos=0,this.buffer=p;}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(p){let{buffer:m,pos:f}=this,_=m.indexOf(p,f);return _===-1?m.length:_}}let A=[];function P(y){let{length:p}=y,m=new x(y),f=[],_=[],X=0;for(;m.pos<p;m.pos++){X=c(m,X);let L=c(m,0);if(!b(m,p)){let ee=_.pop();ee[2]=X,ee[3]=L;continue}let D=c(m,0),H=c(m,0),G=H&1,O=G?[X,L,0,0,D,c(m,0)]:[X,L,0,0,D],$=A;if(b(m,p)){$=[];do{let ee=c(m,0);$.push(ee);}while(b(m,p))}O.vars=$,f.push(O),_.push(O);}return f}function E(y){let p=new w;for(let m=0;m<y.length;)m=v(y,m,p,[0]);return p.flush()}function v(y,p,m,f){let _=y[p],{0:X,1:L,2:D,3:H,4:G,vars:O}=_;p>0&&m.write(r),f[0]=u(m,X,f[0]),u(m,L,0),u(m,G,0);let $=_.length===6?1:0;u(m,$,0),_.length===6&&u(m,_[5],0);for(let ee of O)u(m,ee,0);for(p++;p<y.length;){let ee=y[p],{0:V,1:K}=ee;if(V>D||V===D&&K>=H)break;p=v(y,p,m,f);}return m.write(r),f[0]=u(m,D,f[0]),u(m,H,0),p}function N(y){let{length:p}=y,m=new x(y),f=[],_=[],X=0,L=0,D=0,H=0,G=0,O=0,$=0,ee=0;do{let V=m.indexOf(";"),K=0;for(;m.pos<V;m.pos++){if(K=c(m,K),!b(m,V)){let ge=_.pop();ge[2]=X,ge[3]=K;continue}let ce=c(m,0),xe=ce&1,Pe=ce&2,De=ce&4,At=null,tt=A,He;if(xe){let ge=c(m,L);D=c(m,L===ge?D:0),L=ge,He=[X,K,0,0,ge,D];}else He=[X,K,0,0];if(He.isScope=!!De,Pe){let ge=H,Se=G;H=c(m,H);let Ye=ge===H;G=c(m,Ye?G:0),O=c(m,Ye&&Se===G?O:0),At=[H,G,O];}if(He.callsite=At,b(m,V)){tt=[];do{$=X,ee=K;let ge=c(m,0),Se;if(ge<-1){Se=[[c(m,0)]];for(let Ye=-1;Ye>ge;Ye--){let de=$;$=c(m,$),ee=c(m,$===de?ee:0);let $e=c(m,0);Se.push([$e,$,ee]);}}else Se=[[ge]];tt.push(Se);}while(b(m,V))}He.bindings=tt,f.push(He),_.push(He);}X++,m.pos=V+1;}while(m.pos<p);return f}function z(y){if(y.length===0)return "";let p=new w;for(let m=0;m<y.length;)m=I(y,m,p,[0,0,0,0,0,0,0]);return p.flush()}function I(y,p,m,f){let _=y[p],{0:X,1:L,2:D,3:H,isScope:G,callsite:O,bindings:$}=_;f[0]<X?(j(m,f[0],X),f[0]=X,f[1]=0):p>0&&m.write(r),f[1]=u(m,_[1],f[1]);let ee=(_.length===6?1:0)|(O?2:0)|(G?4:0);if(u(m,ee,0),_.length===6){let{4:V,5:K}=_;V!==f[2]&&(f[3]=0),f[2]=u(m,V,f[2]),f[3]=u(m,K,f[3]);}if(O){let{0:V,1:K,2:ce}=_.callsite;V===f[4]?K!==f[5]&&(f[6]=0):(f[5]=0,f[6]=0),f[4]=u(m,V,f[4]),f[5]=u(m,K,f[5]),f[6]=u(m,ce,f[6]);}if($)for(let V of $){V.length>1&&u(m,-V.length,0);let K=V[0][0];u(m,K,0);let ce=X,xe=L;for(let Pe=1;Pe<V.length;Pe++){let De=V[Pe];ce=u(m,De[1],ce),xe=u(m,De[2],xe),u(m,De[0],0);}}for(p++;p<y.length;){let V=y[p],{0:K,1:ce}=V;if(K>D||K===D&&ce>=H)break;p=I(y,p,m,f);}return f[0]<D?(j(m,f[0],D),f[0]=D,f[1]=0):m.write(r),f[1]=u(m,H,f[1]),p}function j(y,p,m){do y.write(i);while(++p<m)}function W(y){let{length:p}=y,m=new x(y),f=[],_=0,X=0,L=0,D=0,H=0;do{let G=m.indexOf(";"),O=[],$=true,ee=0;for(_=0;m.pos<G;){let V;_=c(m,_),_<ee&&($=false),ee=_,b(m,G)?(X=c(m,X),L=c(m,L),D=c(m,D),b(m,G)?(H=c(m,H),V=[_,X,L,D,H]):V=[_,X,L,D]):V=[_],O.push(V),m.pos++;}$||Y(O),f.push(O),m.pos=G+1;}while(m.pos<=p);return f}function Y(y){y.sort(U);}function U(y,p){return y[0]-p[0]}function te(y){let p=new w,m=0,f=0,_=0,X=0;for(let L=0;L<y.length;L++){let D=y[L];if(L>0&&p.write(i),D.length===0)continue;let H=0;for(let G=0;G<D.length;G++){let O=D[G];G>0&&p.write(r),H=u(p,O[0],H),O.length!==1&&(m=u(p,O[1],m),f=u(p,O[2],f),_=u(p,O[3],_),O.length!==4&&(X=u(p,O[4],X)));}}return p.flush()}n.decode=W,n.decodeGeneratedRanges=N,n.decodeOriginalScopes=P,n.encode=te,n.encodeGeneratedRanges=z,n.encodeOriginalScopes=E,Object.defineProperty(n,"__esModule",{value:true});});}),wi=Ja(sl()),xi=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,al=/^data:application\/json[^,]+base64,/,ll=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,vi=typeof WeakRef<"u",Ut=new Map,wn=new Map,cl=e=>vi&&e instanceof WeakRef,di=(e,t,n,r)=>{if(n<0||n>=e.length)return null;let i=e[n];if(!i||i.length===0)return null;let o=null;for(let b of i)if(b[0]<=r)o=b;else break;if(!o||o.length<4)return null;let[,a,l,c]=o;if(a===void 0||l===void 0||c===void 0)return null;let u=t[a];return u?{columnNumber:c,fileName:u,lineNumber:l+1}:null},ul=(e,t,n)=>{if(e.sections){let r=null;for(let a of e.sections)if(t>a.offset.line||t===a.offset.line&&n>=a.offset.column)r=a;else break;if(!r)return null;let i=t-r.offset.line,o=t===r.offset.line?n-r.offset.column:n;return di(r.map.mappings,r.map.sources,i,o)}return di(e.mappings,e.sources,t-1,n)},dl=(e,t)=>{let n=t.split(`
14
- `),r;for(let o=n.length-1;o>=0&&!r;o--){let a=n[o].match(ll);a&&(r=a[1]||a[2]);}if(!r)return null;let i=xi.test(r);if(!(al.test(r)||i||r.startsWith("/"))){let o=e.split("/");o[o.length-1]=r,r=o.join("/");}return r},fl=e=>({file:e.file,mappings:(0, wi.decode)(e.mappings),names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,version:3}),ml=e=>{let t=e.sections.map(({map:r,offset:i})=>({map:{...r,mappings:(0, wi.decode)(r.mappings)},offset:i})),n=new Set;for(let r of t)for(let i of r.map.sources)n.add(i);return {file:e.file,mappings:[],names:[],sections:t,sourceRoot:void 0,sources:Array.from(n),sourcesContent:void 0,version:3}},fi=e=>{if(!e)return false;let t=e.trim();if(!t)return false;let n=t.match(xi);if(!n)return true;let r=n[0].toLowerCase();return r==="http:"||r==="https:"},pl=async(e,t=fetch)=>{if(!fi(e))return null;let n;try{n=await(await t(e)).text();}catch{return null}if(!n)return null;let r=dl(e,n);if(!r||!fi(r))return null;try{let i=await t(r),o=await i.json();return "sections"in o?ml(o):fl(o)}catch{return null}},gl=async(e,t=true,n)=>{if(t&&Ut.has(e)){let o=Ut.get(e);if(o==null)return null;if(cl(o)){let a=o.deref();if(a)return a;Ut.delete(e);}else return o}if(t&&wn.has(e))return wn.get(e);let r=pl(e,n);t&&wn.set(e,r);let i=await r;return t&&wn.delete(e),t&&(i===null?Ut.set(e,null):Ut.set(e,vi?new WeakRef(i):i)),i},hl=async(e,t=true,n)=>await Promise.all(e.map(async r=>{if(!r.fileName)return r;let i=await gl(r.fileName,t,n);if(!i||typeof r.lineNumber!="number"||typeof r.columnNumber!="number")return r;let o=ul(i,r.lineNumber,r.columnNumber);return o?{...r,source:o.fileName&&r.source?r.source.replace(r.fileName,o.fileName):r.source,fileName:o.fileName,lineNumber:o.lineNumber,columnNumber:o.columnNumber,isSymbolicated:true}:r})),bl=e=>e._debugStack instanceof Error&&typeof e._debugStack?.stack=="string",yl=()=>{let e=Ve();for(let t of [...Array.from(ut),...Array.from(e.renderers.values())]){let n=t.currentDispatcherRef;if(n&&typeof n=="object")return "H"in n?n.H:n.current}return null},mi=e=>{for(let t of ut){let n=t.currentDispatcherRef;n&&typeof n=="object"&&("H"in n?n.H=e:n.current=e);}},Ge=e=>`
15
- in ${e}`,wl=(e,t)=>{let n=Ge(e);return t&&(n+=` (at ${t})`),n},br=false,yr=(e,t)=>{if(!e||br)return "";let n=Error.prepareStackTrace;Error.prepareStackTrace=void 0,br=true;let r=yl();mi(null);let i=console.error,o=console.warn;console.error=()=>{},console.warn=()=>{};try{let c={DetermineComponentFrameRoot(){let T;try{if(t){let w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[]);}catch(x){T=x;}Reflect.construct(e,[],w);}else {try{w.call();}catch(x){T=x;}e.call(w.prototype);}}else {try{throw Error()}catch(x){T=x;}let w=e();w&&typeof w.catch=="function"&&w.catch(()=>{});}}catch(w){if(w instanceof Error&&T instanceof Error&&typeof w.stack=="string")return [w.stack,T.stack]}return [null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot",Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name")?.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});let[b,g]=c.DetermineComponentFrameRoot();if(b&&g){let T=b.split(`
9
+ var ps=(e,t)=>e===t;var gs=Symbol("solid-track"),rn={equals:ps},uo=yo,Ne=1,Pt=2,fo={owned:null,cleanups:null,context:null,owner:null},Gn={},Q=null,C=null,pt=null,ie=null,me=null,ye=null,sn=0;function at(e,t){let n=ie,r=Q,i=e.length===0,o=t===void 0?r:t,a=i?fo:{owned:null,cleanups:null,context:o?o.context:null,owner:o},l=i?e:()=>e(()=>Se(()=>Ze(a)));Q=a,ie=null;try{return Ae(l,!0)}finally{ie=n,Q=r;}}function R(e,t){t=t?Object.assign({},rn,t):rn;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=i=>(typeof i=="function"&&(i=i(n.value)),bo(n,i));return [ho.bind(n),r]}function io(e,t,n){let r=ln(e,t,true,Ne);ht(r);}function ue(e,t,n){let r=ln(e,t,false,Ne);ht(r);}function ne(e,t,n){uo=xs;let r=ln(e,t,false,Ne);(r.user=true),ye?ye.push(r):ht(r);}function ae(e,t,n){n=n?Object.assign({},rn,n):rn;let r=ln(e,t,true,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,ht(r),ho.bind(r)}function hs(e){return e&&typeof e=="object"&&"then"in e}function an(e,t,n){let r,i,o;typeof t=="function"?(r=e,i=t,o={}):(r=true,i=e,o=t||{});let a=null,l=Gn,b=false,g="initialValue"in o,T=typeof r=="function"&&ae(r),w=new Set,[x,A]=(o.storage||R)(o.initialValue),[P,E]=R(void 0),[v,N]=R(void 0,{equals:false}),[z,I]=R(g?"ready":"unresolved");function j(y,p,m,f){return a===y&&(a=null,f!==void 0&&(g=true),(y===l||p===l)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(f,{value:p})),l=Gn,W(p,m)),p}function W(y,p){Ae(()=>{p===void 0&&A(()=>y),I(p!==void 0?"errored":g?"ready":"unresolved"),E(p);for(let m of w.keys())m.decrement();w.clear();},false);}function Y(){let y=$t,p=x(),m=P();if(m!==void 0&&!a)throw m;return ie&&!ie.user&&y,p}function U(y=true){if(y!==false&&b)return;b=false;let p=T?T():r;if(p==null||p===false){j(a,Se(x));return}let m,f=l!==Gn?l:Se(()=>{try{return i(p,{value:x(),refetching:y})}catch(_){m=_;}});if(m!==void 0){j(a,void 0,nn(m),p);return}else if(!hs(f))return j(a,f,void 0,p),f;return a=f,"v"in f?(f.s===1?j(a,f.v,void 0,p):j(a,void 0,nn(f.v),p),f):(b=true,queueMicrotask(()=>b=false),Ae(()=>{I(g?"refreshing":"pending"),N();},false),f.then(_=>j(f,_,void 0,p),_=>j(f,void 0,nn(_),p)))}Object.defineProperties(Y,{state:{get:()=>z()},error:{get:()=>P()},loading:{get(){let y=z();return y==="pending"||y==="refreshing"}},latest:{get(){if(!g)return Y();let y=P();if(y&&!a)throw y;return x()}}});let te=Q;return T?io(()=>(te=Q,U(false))):U(false),[Y,{refetch:y=>po(te,()=>U(y)),mutate:A}]}function Se(e){if(ie===null)return e();let t=ie;ie=null;try{return pt?pt.untrack(e):e()}finally{ie=t;}}function we(e,t,n){let r=Array.isArray(e),i;return a=>{let l;if(r){l=Array(e.length);for(let u=0;u<e.length;u++)l[u]=e[u]();}else l=e();let c=Se(()=>t(l,i,a));return i=l,c}}function mo(e){ne(()=>Se(e));}function ge(e){return Q===null||(Q.cleanups===null?Q.cleanups=[e]:Q.cleanups.push(e)),e}function po(e,t){let n=Q,r=ie;Q=e,ie=null;try{return Ae(t,!0)}catch(i){cn(i);}finally{Q=n,ie=r;}}var[Ql,so]=R(false);var $t;function ho(){let e=C;if(this.sources&&(this.state))if((this.state)===Ne)ht(this);else {let t=me;me=null,Ae(()=>on(this),false),me=t;}if(ie){let t=this.observers?this.observers.length:0;ie.sources?(ie.sources.push(this),ie.sourceSlots.push(t)):(ie.sources=[this],ie.sourceSlots=[t]),this.observers?(this.observers.push(ie),this.observerSlots.push(ie.sources.length-1)):(this.observers=[ie],this.observerSlots=[ie.sources.length-1]);}return e&&C.sources.has(this)?this.tValue:this.value}function bo(e,t,n){let r=e.value;if(!e.comparator||!e.comparator(r,t)){e.value=t;e.observers&&e.observers.length&&Ae(()=>{for(let i=0;i<e.observers.length;i+=1){let o=e.observers[i],a=C&&C.running;a&&C.disposed.has(o)||((a?!o.tState:!o.state)&&(o.pure?me.push(o):ye.push(o),o.observers&&wo(o)),a?o.tState=Ne:o.state=Ne);}if(me.length>1e6)throw me=[],new Error},false);}return t}function ht(e){if(!e.fn)return;Ze(e);let t=sn;ao(e,e.value,t);}function ao(e,t,n){let r,i=Q,o=ie;ie=Q=e;try{r=e.fn(t);}catch(a){return e.pure&&((e.state=Ne,e.owned&&e.owned.forEach(Ze),e.owned=null)),e.updatedAt=n+1,cn(a)}finally{ie=o,Q=i;}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?bo(e,r):e.value=r,e.updatedAt=n);}function ln(e,t,n,r=Ne,i){let o={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Q,context:Q?Q.context:null,pure:n};if(Q===null||Q!==fo&&(Q.owned?Q.owned.push(o):Q.owned=[o]),pt);return o}function Ft(e){let t=C;if((e.state)===0)return;if((e.state)===Pt)return on(e);if(e.suspense&&Se(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<sn);){(e.state)&&n.push(e);}for(let r=n.length-1;r>=0;r--){if(e=n[r],t);if((e.state)===Ne)ht(e);else if((e.state)===Pt){let i=me;me=null,Ae(()=>on(e,n[0]),false),me=i;}}}function Ae(e,t){if(me)return e();let n=false;t||(me=[]),ye?n=true:ye=[],sn++;try{let r=e();return ys(n),r}catch(r){n||(ye=null),me=null,cn(r);}}function ys(e){if(me&&(yo(me),me=null),e)return;let n=ye;ye=null,n.length&&Ae(()=>uo(n),false);}function yo(e){for(let t=0;t<e.length;t++)Ft(e[t]);}function xs(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:Ft(r);}for(t=0;t<n;t++)Ft(e[t]);}function on(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){let i=e.sources[r];if(i.sources){let o=i.state;o===Ne?i!==t&&(!i.updatedAt||i.updatedAt<sn)&&Ft(i):o===Pt&&on(i,t);}}}function wo(e){for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(!r.state)&&(r.state=Pt,r.pure?me.push(r):ye.push(r),r.observers&&wo(r));}}function Ze(e){let t;if(e.sources)for(;e.sources.length;){let n=e.sources.pop(),r=e.sourceSlots.pop(),i=n.observers;if(i&&i.length){let o=i.pop(),a=n.observerSlots.pop();r<i.length&&(o.sourceSlots[a]=r,i[r]=o,n.observerSlots[r]=a);}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)Ze(e.tOwned[t]);delete e.tOwned;}if(e.owned){for(t=e.owned.length-1;t>=0;t--)Ze(e.owned[t]);e.owned=null;}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null;}e.state=0;}function nn(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function cn(e,t=Q){let r=nn(e);throw r;}var vs=Symbol("fallback");function co(e){for(let t=0;t<e.length;t++)e[t]();}function Ss(e,t,n={}){let r=[],i=[],o=[],a=0,l=t.length>1?[]:null;return ge(()=>co(o)),()=>{let c=e()||[],u=c.length,b,g;return c[gs],Se(()=>{let w,x,A,P,E,v,N,z,I;if(u===0)a!==0&&(co(o),o=[],r=[],i=[],a=0,l&&(l=[])),n.fallback&&(r=[vs],i[0]=at(j=>(o[0]=j,n.fallback())),a=1);else if(a===0){for(i=new Array(u),g=0;g<u;g++)r[g]=c[g],i[g]=at(T);a=u;}else {for(A=new Array(u),P=new Array(u),l&&(E=new Array(u)),v=0,N=Math.min(a,u);v<N&&r[v]===c[v];v++);for(N=a-1,z=u-1;N>=v&&z>=v&&r[N]===c[z];N--,z--)A[z]=i[N],P[z]=o[N],l&&(E[z]=l[N]);for(w=new Map,x=new Array(z+1),g=z;g>=v;g--)I=c[g],b=w.get(I),x[g]=b===void 0?-1:b,w.set(I,g);for(b=v;b<=N;b++)I=r[b],g=w.get(I),g!==void 0&&g!==-1?(A[g]=i[b],P[g]=o[b],l&&(E[g]=l[b]),g=x[g],w.set(I,g)):o[b]();for(g=v;g<u;g++)g in A?(i[g]=A[g],o[g]=P[g],l&&(l[g]=E[g],l[g](g))):i[g]=at(T);i=i.slice(0,a=u),r=c.slice(0);}return i});function T(w){if(o[g]=w,l){let[x,A]=R(g);return l[g]=A,t(c[g],x)}return t(c[g])}}}function M(e,t){return Se(()=>e(t||{}))}var Es=e=>`Stale read from <${e}>.`;function Dt(e){let t="fallback"in e&&{fallback:()=>e.fallback};return ae(Ss(()=>e.each,e.children,t||void 0))}function se(e){let t=e.keyed,n=ae(()=>e.when,void 0,void 0),r=t?n:ae(n,void 0,{equals:(i,o)=>!i==!o});return ae(()=>{let i=r();if(i){let o=e.children;return typeof o=="function"&&o.length>0?Se(()=>o(t?i:()=>{if(!Se(r))throw Es("Show");return n()})):o}return e.fallback},void 0,void 0)}var be=e=>ae(()=>e());function As(e,t,n){let r=n.length,i=t.length,o=r,a=0,l=0,c=t[i-1].nextSibling,u=null;for(;a<i||l<o;){if(t[a]===n[l]){a++,l++;continue}for(;t[i-1]===n[o-1];)i--,o--;if(i===a){let b=o<r?l?n[l-1].nextSibling:n[o-l]:c;for(;l<o;)e.insertBefore(n[l++],b);}else if(o===l)for(;a<i;)(!u||!u.has(t[a]))&&t[a].remove(),a++;else if(t[a]===n[o-1]&&n[l]===t[i-1]){let b=t[--i].nextSibling;e.insertBefore(n[l++],t[a++].nextSibling),e.insertBefore(n[--o],b),t[i]=n[o];}else {if(!u){u=new Map;let g=l;for(;g<o;)u.set(n[g],g++);}let b=u.get(t[a]);if(b!=null)if(l<b&&b<o){let g=a,T=1,w;for(;++g<i&&g<o&&!((w=u.get(t[g]))==null||w!==b+T);)T++;if(T>b-l){let x=t[a];for(;l<b;)e.insertBefore(n[l++],x);}else e.replaceChild(n[l++],t[a++]);}else a++;else t[a++].remove();}}}var vo="_$DX_DELEGATE";function Co(e,t,n,r={}){let i;return at(o=>{i=o,t===document?e():J(t,e(),t.firstChild?null:void 0,n);},r.owner),()=>{i(),t.textContent="";}}function re(e,t,n,r){let i,o=()=>{let l=document.createElement("template");return l.innerHTML=e,l.content.firstChild},a=()=>(i||(i=o())).cloneNode(true);return a.cloneNode=a,a}function dn(e,t=window.document){let n=t[vo]||(t[vo]=new Set);for(let r=0,i=e.length;r<i;r++){let o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,Ns));}}function Le(e,t,n){(n==null?e.removeAttribute(t):e.setAttribute(t,n));}function Fe(e,t){(t==null?e.removeAttribute("class"):e.className=t);}function Bt(e,t,n,r){Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;}function Eo(e,t,n){if(!t)return n?Le(e,"style"):t;let r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let i,o;for(o in n)t[o]==null&&r.removeProperty(o),delete n[o];for(o in t)i=t[o],i!==n[o]&&(r.setProperty(o,i),n[o]=i);return n}function pe(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t);}function yt(e,t,n){return Se(()=>e(t,n))}function J(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return un(e,t,r,n);ue(i=>un(e,t(),i,n),r);}function Ns(e){let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,o=c=>Object.defineProperty(e,"target",{configurable:true,value:c}),a=()=>{let c=t[n];if(c&&!t.disabled){let u=t[`${n}Data`];if(u!==void 0?c.call(t,u,e):c.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&o(t.host),true},l=()=>{for(;a()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:true,get(){return t||document}}),e.composedPath){let c=e.composedPath();o(c[0]);for(let u=0;u<c.length-2&&(t=c[u],!!a());u++){if(t._$host){t=t._$host,l();break}if(t.parentNode===i)break}}else l();o(r);}function un(e,t,n,r,i){for(;typeof n=="function";)n=n();if(t===n)return n;let a=typeof t,l=r!==void 0;if(e=l&&n[0]&&n[0].parentNode||e,a==="string"||a==="number"){if(a==="number"&&(t=t.toString(),t===n))return n;if(l){let c=n[0];c&&c.nodeType===3?c.data!==t&&(c.data=t):c=document.createTextNode(t),n=bt(e,n,r,c);}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t;}else if(t==null||a==="boolean"){n=bt(e,n,r);}else {if(a==="function")return ue(()=>{let c=t();for(;typeof c=="function";)c=c();n=un(e,c,n,r);}),()=>n;if(Array.isArray(t)){let c=[],u=n&&Array.isArray(n);if(Kn(c,t,n,i))return ue(()=>n=un(e,c,n,r,true)),()=>n;if(c.length===0){if(n=bt(e,n,r),l)return n}else u?n.length===0?So(e,c,r):As(e,n,c):(n&&bt(e),So(e,c));n=c;}else if(t.nodeType){if(Array.isArray(n)){if(l)return n=bt(e,n,r,t);bt(e,n,null,t);}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t;}}return n}function Kn(e,t,n,r){let i=false;for(let o=0,a=t.length;o<a;o++){let l=t[o],c=n&&n[e.length],u;if(!(l==null||l===true||l===false))if((u=typeof l)=="object"&&l.nodeType)e.push(l);else if(Array.isArray(l))i=Kn(e,l,c)||i;else if(u==="function")if(r){for(;typeof l=="function";)l=l();i=Kn(e,Array.isArray(l)?l:[l],Array.isArray(c)?c:[c])||i;}else e.push(l),i=true;else {let b=String(l);c&&c.nodeType===3&&c.data===b?e.push(c):e.push(document.createTextNode(b));}}return i}function So(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n);}function bt(e,t,n,r){if(n===void 0)return e.textContent="";let i=r||document.createTextNode("");if(t.length){let o=false;for(let a=t.length-1;a>=0;a--){let l=t[a];if(i!==l){let c=l.parentNode===e;!o&&!a?c?e.replaceChild(i,l):e.insertBefore(i,n):c&&l.remove();}else o=true;}}else e.insertBefore(i,n);return [i]}var ko=`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
10
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-contain-size:initial;--tw-contain-layout:initial;--tw-contain-paint:initial;--tw-contain-style:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-black:#000;--color-white:#fff;--spacing:.25rem;--font-weight-medium:500;--radius-xs:.125rem;--ease-out:cubic-bezier(0,0,.2,1);--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-grab-pink:#b21c8e;--color-grab-purple:#d239c0;--color-label-tag-border:#730079;--color-label-muted:#767676}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.top-0{top:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.z-2147483645{z-index:2147483645}.z-2147483646{z-index:2147483646}.z-2147483647{z-index:2147483647}.z-\\[2147483645\\]{z-index:2147483645}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing)*0)}.-ml-\\[2px\\]{margin-left:-2px}.ml-1{margin-left:calc(var(--spacing)*1)}.box-border{box-sizing:border-box}.flex{display:flex}.grid{display:grid}.hidden{display:none}.size-fit{width:fit-content;height:fit-content}.h-0{height:calc(var(--spacing)*0)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-5\\.5{height:calc(var(--spacing)*5.5)}.h-\\[7px\\]{height:7px}.h-\\[9px\\]{height:9px}.h-\\[18px\\]{height:18px}.h-fit{height:fit-content}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-4{min-height:calc(var(--spacing)*4)}.w-0{width:calc(var(--spacing)*0)}.w-0\\.5{width:calc(var(--spacing)*.5)}.w-1{width:calc(var(--spacing)*1)}.w-2\\.5{width:calc(var(--spacing)*2.5)}.w-\\[7px\\]{width:7px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[280px\\]{max-width:280px}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-75{--tw-scale-x:75%;--tw-scale-y:75%;--tw-scale-z:75%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.cursor-crosshair{cursor:crosshair}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-\\[3px\\]{gap:3px}.gap-\\[5px\\]{gap:5px}.gap-px{gap:1px}.self-stretch{align-self:stretch}.overflow-hidden{overflow:hidden}.rounded-\\[1\\.5px\\]{border-radius:1.5px}.rounded-\\[1px\\]{border-radius:1px}.rounded-full{border-radius:3.40282e38px}.rounded-xs{border-radius:var(--radius-xs)}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-b-xs{border-bottom-right-radius:var(--radius-xs);border-bottom-left-radius:var(--radius-xs)}.border{border-style:var(--tw-border-style);border-width:1px}.\\[border-width\\:0\\.5px\\]{border-width:.5px}.\\[border-top-width\\:0\\.5px\\]{border-top-width:.5px}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[\\#B3B3B3\\]{border-color:#b3b3b3}.border-grab-purple{border-color:var(--color-grab-purple)}.border-grab-purple\\/40{border-color:#d239c066}@supports (color:color-mix(in lab, red, red)){.border-grab-purple\\/40{border-color:color-mix(in oklab,var(--color-grab-purple)40%,transparent)}}.border-grab-purple\\/50{border-color:#d239c080}@supports (color:color-mix(in lab, red, red)){.border-grab-purple\\/50{border-color:color-mix(in oklab,var(--color-grab-purple)50%,transparent)}}.border-label-tag-border{border-color:var(--color-label-tag-border)}.border-white{border-color:var(--color-white)}.border-t-\\[\\#D9D9D9\\]{border-top-color:#d9d9d9}.bg-\\[\\#F7F7F7\\]{background-color:#f7f7f7}.bg-black{background-color:var(--color-black)}.bg-grab-pink{background-color:var(--color-grab-pink)}.bg-grab-purple{background-color:var(--color-grab-purple)}.bg-grab-purple\\/5{background-color:#d239c00d}@supports (color:color-mix(in lab, red, red)){.bg-grab-purple\\/5{background-color:color-mix(in oklab,var(--color-grab-purple)5%,transparent)}}.bg-grab-purple\\/8{background-color:#d239c014}@supports (color:color-mix(in lab, red, red)){.bg-grab-purple\\/8{background-color:color-mix(in oklab,var(--color-grab-purple)8%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-cover{background-size:cover}.bg-center{background-position:50%}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.px-0{padding-inline:calc(var(--spacing)*0)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-\\[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}.break-all{word-break:break-all}.whitespace-normal{white-space:normal}.text-\\[\\#0C0C0C\\]{color:#0c0c0c}.text-\\[\\#47004A\\]{color:#47004a}.text-black{color:var(--color-black)}.text-black\\/50{color:#00000080}@supports (color:color-mix(in lab, red, red)){.text-black\\/50{color:color-mix(in oklab,var(--color-black)50%,transparent)}}.text-label-muted{color:var(--color-label-muted)}.text-label-tag-border{color:var(--color-label-tag-border)}.text-white{color:var(--color-white)}.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\\:text-black:hover{color:var(--color-black)}.hover\\:opacity-100:hover{opacity:1}}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes flash{0%{opacity:1;background-color:#d239c040;border-color:#d239c0}50%{opacity:1;background-color:#d239c073;border-color:#e650d2}to{opacity:1;background-color:#d239c014;border-color:#d239c080}}.react-grab-flash{animation:.4s ease-out forwards flash}.react-grab-shimmer{position:relative;overflow:hidden}.react-grab-shimmer:after{content:"";border-radius:inherit;pointer-events:none;background:linear-gradient(90deg,#0000 0%,#fff6 50%,#0000 100%) 0 0/200% 100%;animation:1.5s ease-in-out infinite shimmer;position:absolute;inset:0}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-contain-size{syntax:"*";inherits:false}@property --tw-contain-layout{syntax:"*";inherits:false}@property --tw-contain-paint{syntax:"*";inherits:false}@property --tw-contain-style{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}`;var Rs=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"],Ms=e=>!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-"),Ls=e=>Array.isArray(e),Os=(e,t=false)=>{let{composed:n,target:r}=e,i,o;if(r instanceof HTMLElement&&Ms(r)&&n){let l=e.composedPath()[0];l instanceof HTMLElement&&(i=l.tagName,o=l.role);}else r instanceof HTMLElement&&(i=r.tagName,o=r.role);return Ls(t)?!!(i&&t&&t.some(a=>typeof i=="string"&&a.toLowerCase()===i.toLowerCase()||a===o)):!!(i&&t&&t)},To=e=>Os(e,Rs);var Ao=e=>{let t=e.tagName.toLowerCase();return !!(t==="input"||t==="textarea"||e instanceof HTMLElement&&e.isContentEditable)},No=(e,t)=>{let n=document.activeElement;if(n){let r=n;for(;r;){if(Ao(r))return true;r=r.parentElement;}}if(e!==void 0&&t!==void 0){let r=document.elementsFromPoint(e,t);for(let i of r)if(Ao(i))return true}return false};var wt="data-react-grab",_o=e=>{let t=document.querySelector(`[${wt}]`);if(t){let a=t.shadowRoot?.querySelector(`[${wt}]`);if(a instanceof HTMLDivElement&&t.shadowRoot)return a}let n=document.createElement("div");n.setAttribute(wt,"true"),n.style.zIndex="2147483646",n.style.position="fixed",n.style.top="0",n.style.left="0";let r=n.attachShadow({mode:"open"});{let a=document.createElement("style");a.textContent=e,r.appendChild(a);}let i=document.createElement("div");i.setAttribute(wt,"true"),r.appendChild(i);let o=document.body??document.documentElement;return o.appendChild(n),setTimeout(()=>{o.contains(n)||o.appendChild(n);},1e3),i};var Is="https://react-grab.com",fn=(e,t)=>{let n=t?`&line=${t}`:"";return `${Is}/open-file?url=${encodeURIComponent(e)}${n}`};var Ro="0.0.70";var mn=["Meta","Control","Shift","Alt"],Mo='<svg width="294" height="294" viewBox="0 0 294 294" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_0_3)"><mask id="mask0_0_3" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="294" height="294"><path d="M294 0H0V294H294V0Z" fill="white"/></mask><g mask="url(#mask0_0_3)"><path d="M144.599 47.4924C169.712 27.3959 194.548 20.0265 212.132 30.1797C227.847 39.2555 234.881 60.3243 231.926 89.516C231.677 92.0069 231.328 94.5423 230.94 97.1058L228.526 110.14C228.517 110.136 228.505 110.132 228.495 110.127C228.486 110.165 228.479 110.203 228.468 110.24L216.255 105.741C216.256 105.736 216.248 105.728 216.248 105.723C207.915 103.125 199.421 101.075 190.82 99.5888L190.696 99.5588L173.526 97.2648L173.511 97.2631C173.492 97.236 173.467 97.2176 173.447 97.1905C163.862 96.2064 154.233 95.7166 144.599 95.7223C134.943 95.7162 125.295 96.219 115.693 97.2286C110.075 105.033 104.859 113.118 100.063 121.453C95.2426 129.798 90.8624 138.391 86.939 147.193C90.8624 155.996 95.2426 164.588 100.063 172.933C104.866 181.302 110.099 189.417 115.741 197.245C115.749 197.245 115.758 197.246 115.766 197.247L115.752 197.27L115.745 197.283L115.754 197.296L126.501 211.013L126.574 211.089C132.136 217.767 138.126 224.075 144.507 229.974L144.609 230.082L154.572 238.287C154.539 238.319 154.506 238.35 154.472 238.38C154.485 238.392 154.499 238.402 154.513 238.412L143.846 247.482L143.827 247.497C126.56 261.128 109.472 268.745 94.8019 268.745C88.5916 268.837 82.4687 267.272 77.0657 264.208C61.3496 255.132 54.3164 234.062 57.2707 204.871C57.528 202.307 57.8806 199.694 58.2904 197.054C28.3363 185.327 9.52301 167.51 9.52301 147.193C9.52301 129.042 24.2476 112.396 50.9901 100.375C53.3443 99.3163 55.7938 98.3058 58.2904 97.3526C57.8806 94.7023 57.528 92.0803 57.2707 89.516C54.3164 60.3243 61.3496 39.2555 77.0657 30.1797C94.6494 20.0265 119.486 27.3959 144.599 47.4924ZM70.6423 201.315C70.423 202.955 70.2229 204.566 70.0704 206.168C67.6686 229.567 72.5478 246.628 83.3615 252.988L83.5176 253.062C95.0399 259.717 114.015 254.426 134.782 238.38C125.298 229.45 116.594 219.725 108.764 209.314C95.8516 207.742 83.0977 205.066 70.6423 201.315ZM80.3534 163.438C77.34 171.677 74.8666 180.104 72.9484 188.664C81.1787 191.224 89.5657 193.247 98.0572 194.724L98.4618 194.813C95.2115 189.865 92.0191 184.66 88.9311 179.378C85.8433 174.097 83.003 168.768 80.3534 163.438ZM60.759 110.203C59.234 110.839 57.7378 111.475 56.27 112.11C34.7788 121.806 22.3891 134.591 22.3891 147.193C22.3891 160.493 36.4657 174.297 60.7494 184.26C63.7439 171.581 67.8124 159.182 72.9104 147.193C67.822 135.23 63.7566 122.855 60.759 110.203ZM98.4137 99.6404C89.8078 101.145 81.3075 103.206 72.9676 105.809C74.854 114.203 77.2741 122.468 80.2132 130.554L80.3059 130.939C82.9938 125.6 85.8049 120.338 88.8834 115.008C91.9618 109.679 95.1544 104.569 98.4137 99.6404ZM94.9258 38.5215C90.9331 38.4284 86.9866 39.3955 83.4891 41.3243C72.6291 47.6015 67.6975 64.5954 70.0424 87.9446L70.0416 88.2194C70.194 89.8208 70.3941 91.4325 70.6134 93.0624C83.0737 89.3364 95.8263 86.6703 108.736 85.0924C116.57 74.6779 125.28 64.9532 134.773 56.0249C119.877 44.5087 105.895 38.5215 94.9258 38.5215ZM205.737 41.3148C202.268 39.398 198.355 38.4308 194.394 38.5099L194.29 38.512C183.321 38.512 169.34 44.4991 154.444 56.0153C163.93 64.9374 172.634 74.6557 180.462 85.064C193.375 86.6345 206.128 89.3102 218.584 93.0624C218.812 91.4325 219.003 89.8118 219.165 88.2098C221.548 64.7099 216.65 47.6164 205.737 41.3148ZM144.552 64.3097C138.104 70.2614 132.054 76.6306 126.443 83.3765C132.39 82.995 138.426 82.8046 144.552 82.8046C150.727 82.8046 156.778 83.0143 162.707 83.3765C157.08 76.6293 151.015 70.2596 144.552 64.3097Z" fill="white"/><path d="M144.598 47.4924C169.712 27.3959 194.547 20.0265 212.131 30.1797C227.847 39.2555 234.88 60.3243 231.926 89.516C231.677 92.0069 231.327 94.5423 230.941 97.1058L228.526 110.14L228.496 110.127C228.487 110.165 228.478 110.203 228.469 110.24L216.255 105.741L216.249 105.723C207.916 103.125 199.42 101.075 190.82 99.5888L190.696 99.5588L173.525 97.2648L173.511 97.263C173.492 97.236 173.468 97.2176 173.447 97.1905C163.863 96.2064 154.234 95.7166 144.598 95.7223C134.943 95.7162 125.295 96.219 115.693 97.2286C110.075 105.033 104.859 113.118 100.063 121.453C95.2426 129.798 90.8622 138.391 86.939 147.193C90.8622 155.996 95.2426 164.588 100.063 172.933C104.866 181.302 110.099 189.417 115.741 197.245L115.766 197.247L115.752 197.27L115.745 197.283L115.754 197.296L126.501 211.013L126.574 211.089C132.136 217.767 138.126 224.075 144.506 229.974L144.61 230.082L154.572 238.287C154.539 238.319 154.506 238.35 154.473 238.38L154.512 238.412L143.847 247.482L143.827 247.497C126.56 261.13 109.472 268.745 94.8018 268.745C88.5915 268.837 82.4687 267.272 77.0657 264.208C61.3496 255.132 54.3162 234.062 57.2707 204.871C57.528 202.307 57.8806 199.694 58.2904 197.054C28.3362 185.327 9.52298 167.51 9.52298 147.193C9.52298 129.042 24.2476 112.396 50.9901 100.375C53.3443 99.3163 55.7938 98.3058 58.2904 97.3526C57.8806 94.7023 57.528 92.0803 57.2707 89.516C54.3162 60.3243 61.3496 39.2555 77.0657 30.1797C94.6493 20.0265 119.486 27.3959 144.598 47.4924ZM70.6422 201.315C70.423 202.955 70.2229 204.566 70.0704 206.168C67.6686 229.567 72.5478 246.628 83.3615 252.988L83.5175 253.062C95.0399 259.717 114.015 254.426 134.782 238.38C125.298 229.45 116.594 219.725 108.764 209.314C95.8515 207.742 83.0977 205.066 70.6422 201.315ZM80.3534 163.438C77.34 171.677 74.8666 180.104 72.9484 188.664C81.1786 191.224 89.5657 193.247 98.0572 194.724L98.4618 194.813C95.2115 189.865 92.0191 184.66 88.931 179.378C85.8433 174.097 83.003 168.768 80.3534 163.438ZM60.7589 110.203C59.234 110.839 57.7378 111.475 56.2699 112.11C34.7788 121.806 22.3891 134.591 22.3891 147.193C22.3891 160.493 36.4657 174.297 60.7494 184.26C63.7439 171.581 67.8124 159.182 72.9103 147.193C67.822 135.23 63.7566 122.855 60.7589 110.203ZM98.4137 99.6404C89.8078 101.145 81.3075 103.206 72.9676 105.809C74.8539 114.203 77.2741 122.468 80.2132 130.554L80.3059 130.939C82.9938 125.6 85.8049 120.338 88.8834 115.008C91.9618 109.679 95.1544 104.569 98.4137 99.6404ZM94.9258 38.5215C90.9331 38.4284 86.9866 39.3955 83.4891 41.3243C72.629 47.6015 67.6975 64.5954 70.0424 87.9446L70.0415 88.2194C70.194 89.8208 70.3941 91.4325 70.6134 93.0624C83.0737 89.3364 95.8262 86.6703 108.736 85.0924C116.57 74.6779 125.28 64.9532 134.772 56.0249C119.877 44.5087 105.895 38.5215 94.9258 38.5215ZM205.737 41.3148C202.268 39.398 198.355 38.4308 194.394 38.5099L194.291 38.512C183.321 38.512 169.34 44.4991 154.443 56.0153C163.929 64.9374 172.634 74.6557 180.462 85.064C193.374 86.6345 206.129 89.3102 218.584 93.0624C218.813 91.4325 219.003 89.8118 219.166 88.2098C221.548 64.7099 216.65 47.6164 205.737 41.3148ZM144.551 64.3097C138.103 70.2614 132.055 76.6306 126.443 83.3765C132.389 82.995 138.427 82.8046 144.551 82.8046C150.727 82.8046 156.779 83.0143 162.707 83.3765C157.079 76.6293 151.015 70.2596 144.551 64.3097Z" fill="#FF40E0"/></g><mask id="mask1_0_3" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="102" y="84" width="161" height="162"><path d="M235.282 84.827L102.261 112.259L129.693 245.28L262.714 217.848L235.282 84.827Z" fill="white"/></mask><g mask="url(#mask1_0_3)"><path d="M136.863 129.916L213.258 141.224C220.669 142.322 222.495 152.179 215.967 155.856L187.592 171.843L184.135 204.227C183.339 211.678 173.564 213.901 169.624 207.526L129.021 141.831C125.503 136.14 130.245 128.936 136.863 129.916Z" fill="#FF40E0" stroke="#FF40E0" stroke-width="0.817337" stroke-linecap="round" stroke-linejoin="round"/></g></g><defs><clipPath id="clip0_0_3"><rect width="294" height="294" fill="white"/></clipPath></defs></svg>';var Je=(e,t,n)=>e+(t-e)*n;function Lo(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Lo(e[t]))&&(r&&(r+=" "),r+=n);}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Oo(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Lo(e))&&(r&&(r+=" "),r+=t);return r}var Wn="-",Ps=e=>{let t=Fs(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return {getClassGroupId:a=>{let l=a.split(Wn);return l[0]===""&&l.length!==1&&l.shift(),$o(l,t)||$s(a)},getConflictingClassGroupIds:(a,l)=>{let c=n[a]||[];return l&&r[a]?[...c,...r[a]]:c}}},$o=(e,t)=>{if(e.length===0)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),i=r?$o(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let o=e.join(Wn);return t.validators.find(({validator:a})=>a(o))?.classGroupId},Io=/^\[(.+)\]$/,$s=e=>{if(Io.test(e)){let t=Io.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return "arbitrary.."+n}},Fs=e=>{let{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Bs(Object.entries(e.classGroups),n).forEach(([o,a])=>{qn(a,r,o,t);}),r},qn=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){let o=i===""?t:Po(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(Ds(i)){qn(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,a])=>{qn(a,Po(t,o),n,r);});});},Po=(e,t)=>{let n=e;return t.split(Wn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r);}),n},Ds=e=>e.isThemeGetter,Bs=(e,t)=>t?e.map(([n,r])=>{let i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([a,l])=>[t+a,l])):o);return [n,i]}):e,Hs=e=>{if(e<1)return {get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map,i=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map);};return {get(o){let a=n.get(o);if(a!==void 0)return a;if((a=r.get(o))!==void 0)return i(o,a),a},set(o,a){n.has(o)?n.set(o,a):i(o,a);}}},Fo="!",zs=e=>{let{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],o=t.length,a=l=>{let c=[],u=0,b=0,g;for(let P=0;P<l.length;P++){let E=l[P];if(u===0){if(E===i&&(r||l.slice(P,P+o)===t)){c.push(l.slice(b,P)),b=P+o;continue}if(E==="/"){g=P;continue}}E==="["?u++:E==="]"&&u--;}let T=c.length===0?l:l.substring(b),w=T.startsWith(Fo),x=w?T.substring(1):T,A=g&&g>b?g-b:void 0;return {modifiers:c,hasImportantModifier:w,baseClassName:x,maybePostfixModifierPosition:A}};return n?l=>n({className:l,parseClassName:a}):a},js=e=>{if(e.length<=1)return e;let t=[],n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r);}),t.push(...n.sort()),t},Vs=e=>({cache:Hs(e.cacheSize),parseClassName:zs(e),...Ps(e)}),Gs=/\s+/,Us=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(Gs),l="";for(let c=a.length-1;c>=0;c-=1){let u=a[c],{modifiers:b,hasImportantModifier:g,baseClassName:T,maybePostfixModifierPosition:w}=n(u),x=!!w,A=r(x?T.substring(0,w):T);if(!A){if(!x){l=u+(l.length>0?" "+l:l);continue}if(A=r(T),!A){l=u+(l.length>0?" "+l:l);continue}x=false;}let P=js(b).join(":"),E=g?P+Fo:P,v=E+A;if(o.includes(v))continue;o.push(v);let N=i(A,x);for(let z=0;z<N.length;++z){let I=N[z];o.push(E+I);}l=u+(l.length>0?" "+l:l);}return l};function Ks(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Do(t))&&(r&&(r+=" "),r+=n);return r}var Do=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Do(e[r]))&&(n&&(n+=" "),n+=t);return n};function Ys(e,...t){let n,r,i,o=a;function a(c){let u=t.reduce((b,g)=>g(b),e());return n=Vs(u),r=n.cache.get,i=n.cache.set,o=l,l(c)}function l(c){let u=r(c);if(u)return u;let b=Us(c,n);return i(c,b),b}return function(){return o(Ks.apply(null,arguments))}}var le=e=>{let t=n=>n[e]||[];return t.isThemeGetter=true,t},Bo=/^\[(?:([a-z-]+):)?(.+)\]$/i,Xs=/^\d+\/\d+$/,qs=new Set(["px","full","screen"]),Ws=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zs=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Js=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Qs=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ea=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,je=e=>xt(e)||qs.has(e)||Xs.test(e),Qe=e=>vt(e,"length",la),xt=e=>!!e&&!Number.isNaN(Number(e)),Xn=e=>vt(e,"number",xt),Ht=e=>!!e&&Number.isInteger(Number(e)),ta=e=>e.endsWith("%")&&xt(e.slice(0,-1)),q=e=>Bo.test(e),et=e=>Ws.test(e),na=new Set(["length","size","percentage"]),ra=e=>vt(e,na,Ho),oa=e=>vt(e,"position",Ho),ia=new Set(["image","url"]),sa=e=>vt(e,ia,ua),aa=e=>vt(e,"",ca),zt=()=>true,vt=(e,t,n)=>{let r=Bo.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):false},la=e=>Zs.test(e)&&!Js.test(e),Ho=()=>false,ca=e=>Qs.test(e),ua=e=>ea.test(e);var da=()=>{let e=le("colors"),t=le("spacing"),n=le("blur"),r=le("brightness"),i=le("borderColor"),o=le("borderRadius"),a=le("borderSpacing"),l=le("borderWidth"),c=le("contrast"),u=le("grayscale"),b=le("hueRotate"),g=le("invert"),T=le("gap"),w=le("gradientColorStops"),x=le("gradientColorStopPositions"),A=le("inset"),P=le("margin"),E=le("opacity"),v=le("padding"),N=le("saturate"),z=le("scale"),I=le("sepia"),j=le("skew"),W=le("space"),Y=le("translate"),U=()=>["auto","contain","none"],te=()=>["auto","hidden","clip","visible","scroll"],y=()=>["auto",q,t],p=()=>[q,t],m=()=>["",je,Qe],f=()=>["auto",xt,q],_=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],X=()=>["solid","dashed","dotted","double","none"],L=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>["start","end","center","between","around","evenly","stretch"],H=()=>["","0",q],G=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>[xt,q];return {cacheSize:500,separator:":",theme:{colors:[zt],spacing:[je,Qe],blur:["none","",et,q],brightness:O(),borderColor:[e],borderRadius:["none","","full",et,q],borderSpacing:p(),borderWidth:m(),contrast:O(),grayscale:H(),hueRotate:O(),invert:H(),gap:p(),gradientColorStops:[e],gradientColorStopPositions:[ta,Qe],inset:y(),margin:y(),opacity:O(),padding:p(),saturate:O(),scale:O(),sepia:H(),skew:O(),space:p(),translate:p()},classGroups:{aspect:[{aspect:["auto","square","video",q]}],container:["container"],columns:[{columns:[et]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[..._(),q]}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[A]}],"inset-x":[{"inset-x":[A]}],"inset-y":[{"inset-y":[A]}],start:[{start:[A]}],end:[{end:[A]}],top:[{top:[A]}],right:[{right:[A]}],bottom:[{bottom:[A]}],left:[{left:[A]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ht,q]}],basis:[{basis:y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",q]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",Ht,q]}],"grid-cols":[{"grid-cols":[zt]}],"col-start-end":[{col:["auto",{span:["full",Ht,q]},q]}],"col-start":[{"col-start":f()}],"col-end":[{"col-end":f()}],"grid-rows":[{"grid-rows":[zt]}],"row-start-end":[{row:["auto",{span:[Ht,q]},q]}],"row-start":[{"row-start":f()}],"row-end":[{"row-end":f()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",q]}],gap:[{gap:[T]}],"gap-x":[{"gap-x":[T]}],"gap-y":[{"gap-y":[T]}],"justify-content":[{justify:["normal",...B()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...B(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...B(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[P]}],mx:[{mx:[P]}],my:[{my:[P]}],ms:[{ms:[P]}],me:[{me:[P]}],mt:[{mt:[P]}],mr:[{mr:[P]}],mb:[{mb:[P]}],ml:[{ml:[P]}],"space-x":[{"space-x":[W]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[W]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",q,t]}],"min-w":[{"min-w":[q,t,"min","max","fit"]}],"max-w":[{"max-w":[q,t,"none","full","min","max","fit","prose",{screen:[et]},et]}],h:[{h:[q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",et,Qe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Xn]}],"font-family":[{font:[zt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",q]}],"line-clamp":[{"line-clamp":["none",xt,Xn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",je,q]}],"list-image":[{"list-image":["none",q]}],"list-style-type":[{list:["none","disc","decimal",q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",je,Qe]}],"underline-offset":[{"underline-offset":["auto",je,q]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:p()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[..._(),oa]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ra]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},sa]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...X(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:X()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...X()]}],"outline-offset":[{"outline-offset":[je,q]}],"outline-w":[{outline:[je,Qe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:m()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[je,Qe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",et,aa]}],"shadow-color":[{shadow:[zt]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...L(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":L()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",et,q]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[g]}],saturate:[{saturate:[N]}],sepia:[{sepia:[I]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",q]}],duration:[{duration:O()}],ease:[{ease:["linear","in","out","in-out",q]}],delay:[{delay:O()}],animate:[{animate:["none","spin","ping","pulse","bounce",q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-y":[{"scale-y":[z]}],rotate:[{rotate:[Ht,q]}],"translate-x":[{"translate-x":[Y]}],"translate-y":[{"translate-y":[Y]}],"skew-x":[{"skew-x":[j]}],"skew-y":[{"skew-y":[j]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",q]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":p()}],"scroll-mx":[{"scroll-mx":p()}],"scroll-my":[{"scroll-my":p()}],"scroll-ms":[{"scroll-ms":p()}],"scroll-me":[{"scroll-me":p()}],"scroll-mt":[{"scroll-mt":p()}],"scroll-mr":[{"scroll-mr":p()}],"scroll-mb":[{"scroll-mb":p()}],"scroll-ml":[{"scroll-ml":p()}],"scroll-p":[{"scroll-p":p()}],"scroll-px":[{"scroll-px":p()}],"scroll-py":[{"scroll-py":p()}],"scroll-ps":[{"scroll-ps":p()}],"scroll-pe":[{"scroll-pe":p()}],"scroll-pt":[{"scroll-pt":p()}],"scroll-pr":[{"scroll-pr":p()}],"scroll-pb":[{"scroll-pb":p()}],"scroll-pl":[{"scroll-pl":p()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[je,Qe,Xn]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var zo=Ys(da);var Ie=(...e)=>zo(Oo(e));var ma=re("<div style=overflow:visible>"),lt=e=>{let[t,n]=R(e.bounds.x),[r,i]=R(e.bounds.y),[o,a]=R(e.bounds.width),[l,c]=R(e.bounds.height),[u,b]=R(1),g=false,T=null,w=null,x=e.bounds,A=false,P=()=>e.lerpFactor!==void 0?e.lerpFactor:e.variant==="drag"?.7:.95,E=()=>{if(A)return;A=true;let v=()=>{let N=Je(t(),x.x,P()),z=Je(r(),x.y,P()),I=Je(o(),x.width,P()),j=Je(l(),x.height,P());n(N),i(z),a(I),c(j),Math.abs(N-x.x)<.5&&Math.abs(z-x.y)<.5&&Math.abs(I-x.width)<.5&&Math.abs(j-x.height)<.5?(T=null,A=false):T=requestAnimationFrame(v);};T=requestAnimationFrame(v);};return ne(we(()=>e.bounds,v=>{if(x=v,!g){n(x.x),i(x.y),a(x.width),c(x.height),g=true;return}E();})),ne(()=>{e.variant==="grabbed"&&e.createdAt&&(w=window.setTimeout(()=>{b(0);},1500));}),ge(()=>{T!==null&&(cancelAnimationFrame(T),T=null),w!==null&&(window.clearTimeout(w),w=null),A=false;}),M(se,{get when(){return e.visible!==false},get children(){var v=ma();return ue(N=>{var z=Ie("fixed box-border",e.variant==="drag"&&"pointer-events-none",e.variant!=="drag"&&"pointer-events-auto",e.variant==="grabbed"&&"z-2147483645",e.variant!=="grabbed"&&"z-2147483646",e.variant==="drag"&&"border border-solid border-grab-purple/40 bg-grab-purple/5 will-change-[transform,width,height] cursor-crosshair",e.variant==="selection"&&"border border-solid border-grab-purple/50 bg-grab-purple/8 transition-opacity duration-100 ease-out",e.variant==="grabbed"&&"border border-solid react-grab-flash",e.variant==="processing"&&!e.isCompleted&&"border border-solid border-grab-purple/50 bg-grab-purple/8",e.variant==="processing"&&e.isCompleted&&"border border-solid react-grab-flash"),I=`${r()}px`,j=`${t()}px`,W=`${o()}px`,Y=`${l()}px`,U=e.bounds.borderRadius,te=e.bounds.transform,y=e.isFading?0:u(),p=e.variant==="drag"?"layout paint size":void 0;return z!==N.e&&Fe(v,N.e=z),I!==N.t&&pe(v,"top",N.t=I),j!==N.a&&pe(v,"left",N.a=j),W!==N.o&&pe(v,"width",N.o=W),Y!==N.i&&pe(v,"height",N.i=Y),U!==N.n&&pe(v,"border-radius",N.n=U),te!==N.s&&pe(v,"transform",N.s=te),y!==N.h&&pe(v,"opacity",N.h=y),p!==N.r&&pe(v,"contain",N.r=p),N},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0}),v}})};var jo=e=>{let t=e.lerpFactor??.3,n=e.convergenceThreshold??.5,[r,i]=R(e.x()),[o,a]=R(e.y()),l=e.x(),c=e.y(),u=null,b=false,g=()=>{let w=Je(r(),l,t),x=Je(o(),c,t);i(w),a(x),Math.abs(w-l)<n&&Math.abs(x-c)<n?u=null:u=requestAnimationFrame(g);},T=()=>{u===null&&(u=requestAnimationFrame(g));};return ne(()=>{if(l=e.x(),c=e.y(),!b){i(l),a(c),b=true;return}T();}),ge(()=>{u!==null&&(cancelAnimationFrame(u),u=null);}),{x:r,y:o}};var pa=re('<canvas class="fixed top-0 left-0 pointer-events-none z-[2147483645]">'),Vo=e=>{let t,n=null,r=0,i=0,o=1,a=jo({x:()=>e.mouseX,y:()=>e.mouseY,lerpFactor:.3}),l=()=>{t&&(o=Math.max(window.devicePixelRatio||1,2),r=window.innerWidth,i=window.innerHeight,t.width=r*o,t.height=i*o,t.style.width=`${r}px`,t.style.height=`${i}px`,n=t.getContext("2d"),n&&n.scale(o,o));},c=()=>{n&&(n.clearRect(0,0,r,i),n.strokeStyle="rgba(210, 57, 192)",n.lineWidth=1,n.beginPath(),n.moveTo(a.x(),0),n.lineTo(a.x(),i),n.moveTo(0,a.y()),n.lineTo(r,a.y()),n.stroke());};return ne(()=>{l(),c();let u=()=>{l(),c();};window.addEventListener("resize",u),ge(()=>{window.removeEventListener("resize",u);});}),ne(()=>{a.x(),a.y(),c();}),M(se,{get when(){return e.visible!==false},get children(){var u=pa(),b=t;return typeof b=="function"?yt(b,u):t=u,u}})};var Go=e=>{let t,[n,r]=R(false),i=()=>typeof window<"u"&&(!!window.SpeechRecognition||!!window.webkitSpeechRecognition),o=()=>{if(!i())return;let c=window.SpeechRecognition||window.webkitSpeechRecognition;if(!c)return;t=new c,t.continuous=true,t.interimResults=true,t.lang=navigator.language||"en-US";let u="",b="";t.onresult=g=>{let T=e.getCurrentValue(),w;u&&T.endsWith(u)||T===b?w=T.slice(0,-u.length):w=T;let x="",A="";for(let E=g.resultIndex;E<g.results.length;E++){let v=g.results[E][0].transcript;g.results[E].isFinal?x+=v:A+=v;}u=A;let P=w+x+A;b=P,e.onTranscript(P);},t.onerror=()=>{r(false);},t.onend=()=>{r(false);},t.start(),r(true);},a=()=>{t&&(t.stop(),t=void 0),r(false);},l=()=>{n()?a():o();};return ge(()=>{a();}),{isListening:n,isSupported:i,start:o,stop:a,toggle:l}};var ga=re('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2><path d="M12 6H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6"></path><path d="M11 13l9-9"></path><path d="M15 4h5v5">'),Uo=e=>{let t=()=>e.size??12;return (()=>{var n=ga();return ue(r=>{var i=t(),o=t(),a=e.class;return i!==r.e&&Le(n,"width",r.e=i),o!==r.t&&Le(n,"height",r.t=o),a!==r.a&&Le(n,"class",r.a=a),r},{e:void 0,t:void 0,a:void 0}),n})()};var ha=re('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1=12 x2=12 y1=19 y2=22>'),Ko=e=>{let t=()=>e.size??12;return (()=>{var n=ha();return ue(r=>{var i=t(),o=t(),a=e.class;return i!==r.e&&Le(n,"width",r.e=i),o!==r.t&&Le(n,"height",r.t=o),a!==r.a&&Le(n,"class",r.a=a),r},{e:void 0,t:void 0,a:void 0}),n})()};var ba=re('<div style="background-image:linear-gradient(in oklab 180deg, oklab(88.7% 0.086 -0.058) 0%, oklab(83.2% 0.132 -0.089) 100%)"><span>'),ya=re(`<div class="contain-layout shrink-0 flex items-center w-fit h-4 rounded-[1px] gap-1 px-[3px] [border-width:0.5px] border-solid border-[#B3B3B3] py-0 bg-[#F7F7F7]"><span class="text-[#0C0C0C] text-[11.5px] leading-3.5 shrink-0 tracking-[-0.08em] font-[ui-monospace,'SFMono-Regular','SF_Mono','Menlo','Consolas','Liberation_Mono',monospace] w-fit h-fit">`),wa=re(`<div class="contain-layout shrink-0 flex items-center w-fit h-4 rounded-[1px] gap-1 px-[3px] [border-width:0.5px] border-solid border-white py-0"><span class="text-[#0C0C0C] text-[11.5px] leading-3.5 shrink-0 tracking-[-0.08em] font-[ui-monospace,'SFMono-Regular','SF_Mono','Menlo','Consolas','Liberation_Mono',monospace] w-fit h-fit">&gt;`),xa=re('<div class="absolute w-0 h-0"style="border-left:8px solid transparent;border-right:8px solid transparent">'),va=re('<div role=button><div class="text-black text-[12px] leading-4 shrink-0 tracking-[-0.04em] font-sans font-medium w-fit h-fit">'),Sa=re('<div class="[font-synthesis:none] contain-layout shrink-0 flex flex-col items-start px-2 py-[5px] w-auto h-fit self-stretch [border-top-width:0.5px] border-t-solid border-t-[#D9D9D9] antialiased rounded-t-none rounded-b-xs"style="background-image:linear-gradient(in oklab 180deg, oklab(100% 0 0) 0%, oklab(96.1% 0 0) 5.92%)">'),Ca=re('<div class="[font-synthesis:none] contain-layout shrink-0 flex items-center gap-1 rounded-xs bg-white antialiased w-fit h-fit py-1 px-1.5"><div class="contain-layout shrink-0 flex items-center px-0 py-px w-fit h-[18px] rounded-[1.5px] gap-[3px]"><div class="text-black text-[12px] leading-4 shrink-0 tracking-[-0.04em] font-sans font-medium w-fit h-fit">'),Ea=re('<button class="contain-layout shrink-0 flex flex-col items-start rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] p-1 size-fit cursor-pointer ml-1 transition-none hover:scale-105"><div class="shrink-0 w-[7px] h-[7px] rounded-[1px] bg-black">'),ka=re('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea class="text-black text-[12px] leading-4 tracking-[-0.04em] font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 opacity-50 break-all"placeholder="type to edit"rows=1 disabled style=field-sizing:content;min-height:16px>'),Ta=re('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-auto h-fit"><div class="contain-layout flex items-center px-0 py-px w-auto h-fit rounded-[1.5px] gap-[3px]"><div class="text-black text-[12px] leading-4 tracking-[-0.04em] font-sans font-medium w-auto h-fit whitespace-normal react-grab-shimmer">'),Yo=re('<div class="contain-layout shrink-0 flex items-center gap-px w-fit h-fit">'),Aa=re('<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'),Na=re('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 w-fit h-fit px-1.5"></div><div class="grid w-full transition-[grid-template-rows] duration-30 ease-out"><div class="overflow-hidden min-h-0">'),_a=re("<button>"),Ra=re('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea class="text-black text-[12px] leading-4 tracking-[-0.04em] font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 break-all"rows=1 style=field-sizing:content;min-height:16px></textarea><div class="flex items-center gap-0.5 ml-1"><button class="contain-layout shrink-0 flex flex-col items-start px-[3px] py-[3px] rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit cursor-pointer transition-none hover:scale-105"><div style=background-image:url(https://workers.paper.design/file-assets/01K8D51Q7E2ESJTN18XN2MT96X/01KBEJ7N5GQ0ZZ7K456R42AP4V.svg)>'),Ma=re('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-fit h-fit">'),La=re('<div data-react-grab-ignore-events class="fixed font-sans antialiased transition-opacity duration-300 ease-out filter-[drop-shadow(0px_0px_4px_#51515180)]"style=z-index:2147483647><div class="[font-synthesis:none] contain-layout flex items-center gap-[5px] rounded-xs bg-white antialiased w-fit h-fit p-0">'),Xo=8,qo=4,Oa=400;var pn=e=>{let[t,n]=R(false),r=()=>{n(true),e.onHoverChange?.(true);},i=()=>{n(false),e.onHoverChange?.(false);};return (()=>{var o=ba(),a=o.firstChild;return Bt(o,"click",e.onClick),o.addEventListener("mouseleave",i),o.addEventListener("mouseenter",r),J(a,()=>e.tagName),J(o,M(se,{get when(){return e.isClickable||e.forceShowIcon},get children(){return M(Uo,{size:10,get class(){return Ie("text-label-tag-border transition-all duration-100",t()||e.forceShowIcon?"opacity-100 scale-100":"opacity-0 scale-75 -ml-[2px] w-0")}})}}),null),ue(l=>{var c=Ie("contain-layout flex items-center px-[3px] py-0 h-4 rounded-[1px] gap-0.5 [border-width:0.5px] border-solid border-label-tag-border",e.shrink&&"shrink-0 w-fit",e.isClickable&&"cursor-pointer"),u=Ie("text-[#47004A] text-[11.5px] leading-3.5 shrink-0 w-fit h-fit",e.showMono?"tracking-[-0.08em] font-[ui-monospace,'SFMono-Regular','SF_Mono','Menlo','Consolas','Liberation_Mono',monospace]":"tracking-[-0.04em] font-medium");return c!==l.e&&Fe(o,l.e=c),u!==l.t&&Fe(a,l.t=u),l},{e:void 0,t:void 0}),o})()},Wo=e=>(()=>{var t=ya(),n=t.firstChild;return J(n,()=>e.name),t})(),Zo=()=>wa(),Ia=e=>{let t=()=>e.color??"white";return (()=>{var n=xa();return ue(r=>Eo(n,{left:`${e.leftPx}px`,...e.position==="bottom"?{top:"0",transform:"translateX(-50%) translateY(-100%)"}:{bottom:"0",transform:"translateX(-50%) translateY(100%)"},...e.position==="bottom"?{"border-bottom":`8px solid ${t()}`}:{"border-top":`8px solid ${t()}`}},r)),n})()},Jo=e=>{let t=()=>e.hasAgent?"Selecting":e.hasParent?"Copy":"Click to copy";return (()=>{var n=va(),r=n.firstChild;return Bt(n,"click",e.onClick),J(r,t),ue(()=>Fe(n,Ie("contain-layout shrink-0 flex items-center px-0 py-px w-fit h-[18px] rounded-[1.5px] gap-[3px]",e.asButton&&"cursor-pointer",e.dimmed&&"opacity-50 hover:opacity-100 transition-opacity"))),n})()};var Zn=e=>(()=>{var t=Sa();return J(t,()=>e.children),t})(),St=e=>{let t,n,r=false,[i,o]=R(0),[a,l]=R(0),[c,u]=R("bottom"),[b,g]=R(0),[T,w]=R(false),x=Go({onTranscript:f=>e.onInputChange?.(f),getCurrentValue:()=>e.inputValue??""}),A=()=>e.status!=="copying"&&e.status!=="copied"&&e.status!=="fading",P=()=>{if(t&&!r){let f=t.getBoundingClientRect();o(f.width),l(f.height);}},E=f=>{r=f;},v=()=>{g(f=>f+1);},N,z=()=>{w(false),N&&clearTimeout(N),N=setTimeout(()=>{w(true);},Oa);},I=f=>{f.code==="Enter"&&T()&&!e.isInputExpanded&&A()&&(f.preventDefault(),f.stopPropagation(),f.stopImmediatePropagation(),e.onToggleExpand?.());};mo(()=>{P(),window.addEventListener("scroll",v,true),window.addEventListener("resize",v),window.addEventListener("keydown",I,{capture:true}),z();}),ge(()=>{window.removeEventListener("scroll",v,true),window.removeEventListener("resize",v),window.removeEventListener("keydown",I,{capture:true}),N&&clearTimeout(N);}),ne(()=>{e.selectionBounds,z();}),ne(()=>{e.visible&&requestAnimationFrame(P);}),ne(()=>{e.status,requestAnimationFrame(P);}),ne(()=>{e.isInputExpanded&&n?setTimeout(()=>{n?.focus();},0):x.stop();});let j=()=>{b();let f=e.selectionBounds,_=i(),X=a();if(!f||_===0||X===0)return {left:-9999,top:-9999,arrowLeft:0};let L=window.innerWidth,B=window.innerHeight,H=f.x+f.width/2,G=e.mouseX??H,O=f.y+f.height,$=f.y,ee=G-_/2,V=O+Xo+qo;ee+_>L-8&&(ee=L-_-8),ee<8&&(ee=8);let K=X+Xo+qo;V+X<=B-8?u("bottom"):(V=$-K,u("top")),V<8&&(V=8);let xe=Math.max(12,Math.min(G-ee,_-12));return {left:ee,top:V,arrowLeft:xe}},W=f=>{f.stopPropagation(),f.stopImmediatePropagation(),f.code==="Enter"&&!f.shiftKey?(f.preventDefault(),x.stop(),e.onSubmit?.()):f.code==="Escape"&&(f.preventDefault(),x.stop(),e.onCancel?.());},Y=f=>{let _=f.target;e.onInputChange?.(_.value);},U=()=>e.tagName||"element",te=f=>{f.stopPropagation(),f.stopImmediatePropagation(),e.filePath&&e.onOpen&&e.onOpen();},y=()=>!!(e.filePath&&e.onOpen),p=f=>{f.stopPropagation(),f.stopImmediatePropagation();},m=()=>{x.stop(),e.onSubmit?.();};return M(se,{get when(){return be(()=>e.visible!==false)()&&e.selectionBounds},get children(){var f=La(),_=f.firstChild;f.$$click=p,f.$$mousedown=p,f.$$pointerdown=p;var X=t;return typeof X=="function"?yt(X,f):t=f,J(f,M(Ia,{get position(){return c()},get leftPx(){return j().arrowLeft}}),_),J(f,M(se,{get when(){return e.status==="copied"||e.status==="fading"},get children(){var L=Ca(),B=L.firstChild,H=B.firstChild;return J(H,()=>e.hasAgent?"Completed":"Copied"),L}}),_),J(_,M(se,{get when(){return e.status==="copying"},get children(){var L=Ta(),B=L.firstChild,H=B.firstChild,G=H.firstChild;return J(G,()=>e.statusText??"Grabbing\u2026"),J(L,M(Zn,{get children(){var O=ka(),$=O.firstChild,ee=n;return typeof ee=="function"?yt(ee,$):n=$,J(O,M(se,{get when(){return e.onAbort},get children(){var V=Ea();return Bt(V,"click",e.onAbort),V}}),null),ue(()=>$.value=e.inputValue??""),O}}),null),L}}),null),J(_,M(se,{get when(){return be(()=>!!A())()&&!e.isInputExpanded},get children(){var L=Na(),B=L.firstChild,H=B.nextSibling,G=H.firstChild;return J(B,M(Jo,{onClick:m,shrink:true,get hasParent(){return !!e.componentName},get hasAgent(){return e.hasAgent}}),null),J(B,M(se,{get when(){return e.componentName},get children(){var O=Yo();return J(O,M(Wo,{get name(){return e.componentName}}),null),J(O,M(Zo,{}),null),J(O,M(pn,{get tagName(){return U()},get isClickable(){return y()},onClick:te,onHoverChange:E,showMono:true,shrink:true}),null),O}}),null),J(B,M(se,{get when(){return !e.componentName},get children(){return M(pn,{get tagName(){return U()},get isClickable(){return y()},onClick:te,onHoverChange:E,showMono:true,shrink:true})}}),null),J(G,M(Zn,{get children(){var O=Aa(),$=O.firstChild,ee=$.nextSibling;ee.firstChild;return O}})),ue(O=>pe(H,"grid-template-rows",T()?"1fr":"0fr")),L}}),null),J(_,M(se,{get when(){return be(()=>!!A())()&&e.isInputExpanded},get children(){var L=Ma(),B=L.firstChild;return J(B,M(Jo,{onClick:m,dimmed:true,shrink:true,get hasParent(){return !!e.componentName},get hasAgent(){return e.hasAgent}}),null),J(B,M(se,{get when(){return e.componentName},get children(){var H=Yo();return J(H,M(Wo,{get name(){return e.componentName}}),null),J(H,M(Zo,{}),null),J(H,M(pn,{get tagName(){return U()},get isClickable(){return y()},onClick:te,onHoverChange:E,showMono:true,shrink:true,forceShowIcon:true}),null),H}}),null),J(B,M(se,{get when(){return !e.componentName},get children(){return M(pn,{get tagName(){return U()},get isClickable(){return y()},onClick:te,onHoverChange:E,showMono:true,shrink:true,forceShowIcon:true})}}),null),J(L,M(Zn,{get children(){var H=Ra(),G=H.firstChild,O=G.nextSibling,$=O.firstChild,ee=$.firstChild;G.$$keydown=W,G.$$input=Y;var V=n;return typeof V=="function"?yt(V,G):n=G,J(O,M(se,{get when(){return be(()=>!!e.hasAgent)()&&x.isSupported()},get children(){var K=_a();return Bt(K,"click",x.toggle),J(K,M(Ko,{size:11,get class(){return x.isListening()?"animate-pulse":""}})),ue(ce=>{var xe=Ie("contain-layout shrink-0 flex items-center justify-center px-[3px] py-[3px] rounded-xs [border-width:0.5px] border-solid size-fit cursor-pointer transition-all hover:scale-105",x.isListening()?"bg-grab-purple border-grab-purple text-white":"bg-white border-[#B3B3B3] text-black/50 hover:text-black"),Pe=x.isListening()?"Stop listening":"Start voice input";return xe!==ce.e&&Fe(K,ce.e=xe),Pe!==ce.t&&Le(K,"title",ce.t=Pe),ce},{e:void 0,t:void 0}),K}}),$),$.$$click=m,ue(K=>{var ce=x.isListening()?"listening...":e.hasAgent?"type or speak to edit":"type to edit",xe=Ie("w-2.5 h-[9px] shrink-0 bg-cover bg-center transition-opacity duration-100",e.inputValue?"opacity-[0.99]":"opacity-50");return ce!==K.e&&Le(G,"placeholder",K.e=ce),xe!==K.t&&Fe(ee,K.t=xe),K},{e:void 0,t:void 0}),ue(()=>G.value=e.inputValue??""),H}}),null),L}}),null),ue(L=>{var B=`${j().top}px`,H=`${j().left}px`,G=e.visible?"auto":"none",O=e.status==="fading"?0:1,$=e.status==="copied"||e.status==="fading"?"none":void 0;return B!==L.e&&pe(f,"top",L.e=B),H!==L.t&&pe(f,"left",L.t=H),G!==L.a&&pe(f,"pointer-events",L.a=G),O!==L.o&&pe(f,"opacity",L.o=O),$!==L.i&&pe(_,"display",L.i=$),L},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),f}})};dn(["click","pointerdown","mousedown","input","keydown"]);var $a=re('<div class="fixed z-2147483647"><button data-react-grab-selection-cursor>'),Qo=e=>{let[t,n]=R(false),[r,i]=R(false);ne(()=>{let a=e.visible!==false;if(e.x,e.y,i(false),a){let l=setTimeout(()=>i(true),500);ge(()=>clearTimeout(l));}});let o=a=>{a.preventDefault(),a.stopPropagation(),e.onClick?.();};return M(se,{get when(){return r()},get children(){return [M(se,{get when(){return be(()=>!!t())()&&e.elementBounds},get children(){return M(lt,{variant:"selection",get bounds(){return e.elementBounds},visible:true})}}),(()=>{var a=$a(),l=a.firstChild;return a.addEventListener("mouseleave",()=>n(false)),a.addEventListener("mouseenter",()=>n(true)),l.$$click=o,ue(c=>{var u=`${e.x}px`,b=`${e.y}px`,g=Ie("absolute left-0 top-0 -translate-x-1/2 -translate-y-1/2 bg-grab-pink cursor-pointer rounded-full transition-[width,height] duration-150",t()?"w-1 h-5.5 brightness-125":"w-0.5 h-5 animate-pulse");return u!==c.e&&pe(a,"left",c.e=u),b!==c.t&&pe(a,"top",c.t=b),g!==c.a&&Fe(l,c.a=g),c},{e:void 0,t:void 0,a:void 0}),a})(),M(se,{get when(){return be(()=>!!t())()&&e.elementBounds},get children(){return M(St,{get tagName(){return e.tagName},get selectionBounds(){return e.elementBounds},get mouseX(){return e.x},visible:true,get onSubmit(){return e.onClick}})}})]}})};dn(["click"]);var ei=e=>[M(se,{get when(){return be(()=>!!e.selectionVisible)()&&e.selectionBounds},get children(){return M(lt,{variant:"selection",get bounds(){return e.selectionBounds},get visible(){return e.selectionVisible},get isFading(){return e.selectionLabelStatus==="fading"}})}}),M(se,{get when(){return be(()=>e.crosshairVisible===true&&e.mouseX!==void 0)()&&e.mouseY!==void 0},get children(){return M(Vo,{get mouseX(){return e.mouseX},get mouseY(){return e.mouseY},visible:true})}}),M(se,{get when(){return be(()=>!!e.dragVisible)()&&e.dragBounds},get children(){return M(lt,{variant:"drag",get bounds(){return e.dragBounds},get visible(){return e.dragVisible}})}}),M(Dt,{get each(){return e.grabbedBoxes??[]},children:t=>M(lt,{variant:"grabbed",get bounds(){return t.bounds},get createdAt(){return t.createdAt}})}),M(Dt,{get each(){return be(()=>!!e.agentSessions)()?Array.from(e.agentSessions.values()):[]},children:t=>[M(se,{get when(){return t.selectionBounds},get children(){return M(lt,{variant:"processing",get bounds(){return t.selectionBounds},visible:true,get isCompleted(){return !t.isStreaming}})}}),M(St,{get tagName(){return t.tagName},get componentName(){return t.componentName},get selectionBounds(){return t.selectionBounds},get mouseX(){return t.position.x},visible:true,hasAgent:true,get status(){return t.isStreaming?"copying":"copied"},get statusText(){return t.lastStatus||"Please wait\u2026"},get inputValue(){return t.context.prompt},onAbort:()=>e.onAbortSession?.(t.id)})]}),M(se,{get when(){return be(()=>!!e.selectionLabelVisible)()&&e.selectionBounds},get children(){return M(St,{get tagName(){return e.selectionTagName},get componentName(){return e.selectionComponentName},get selectionBounds(){return e.selectionBounds},get mouseX(){return e.mouseX},get visible(){return e.selectionLabelVisible},get isInputExpanded(){return e.isInputExpanded},get inputValue(){return e.inputValue},get hasAgent(){return e.hasAgent},get status(){return e.selectionLabelStatus},get filePath(){return e.selectionFilePath},get lineNumber(){return e.selectionLineNumber},get onInputChange(){return e.onInputChange},get onSubmit(){return e.onInputSubmit},get onCancel(){return e.onInputCancel},get onToggleExpand(){return e.onToggleExpand},onOpen:()=>{if(e.selectionFilePath){let t=fn(e.selectionFilePath,e.selectionLineNumber);window.open(t,"_blank");}}})}}),M(Dt,{get each(){return e.labelInstances??[]},children:t=>M(St,{get tagName(){return t.tagName},get componentName(){return t.componentName},get selectionBounds(){return t.bounds},get mouseX(){return t.mouseX},visible:true,get status(){return t.status}})}),M(se,{get when(){return be(()=>!!(e.nativeSelectionCursorVisible&&e.nativeSelectionCursorX!==void 0))()&&e.nativeSelectionCursorY!==void 0},get children(){return M(Qo,{get x(){return e.nativeSelectionCursorX},get y(){return e.nativeSelectionCursorY},get tagName(){return e.nativeSelectionTagName},get componentName(){return e.nativeSelectionComponentName},get elementBounds(){return e.nativeSelectionBounds},get visible(){return e.nativeSelectionCursorVisible},get onClick(){return e.onNativeSelectionCopy},get onEnter(){return e.onNativeSelectionEnter}})}})];var ri="0.5.25",bn=`bippy-${ri}`,ti=Object.defineProperty,Fa=Object.prototype.hasOwnProperty,jt=()=>{},oi=e=>{try{Function.prototype.toString.call(e).indexOf("^_^")>-1&&setTimeout(()=>{throw Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build")});}catch{}},yn=(e=Ve())=>"getFiberRoots"in e,ii=false,ni,Vt=(e=Ve())=>ii?true:(typeof e.inject=="function"&&(ni=e.inject.toString()),!!ni?.includes("(injected)")),gn=new Set,ut=new Set,si=e=>{let t=new Map,n=0,r={_instrumentationIsActive:false,_instrumentationSource:bn,checkDCE:oi,hasUnsupportedRendererAttached:false,inject(i){let o=++n;return t.set(o,i),ut.add(i),r._instrumentationIsActive||(r._instrumentationIsActive=true,gn.forEach(a=>a())),o},on:jt,onCommitFiberRoot:jt,onCommitFiberUnmount:jt,onPostCommitFiberRoot:jt,renderers:t,supportsFiber:true,supportsFlight:true};try{ti(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!0,enumerable:!0,get(){return r},set(a){if(a&&typeof a=="object"){let l=r.renderers;r=a,l.size>0&&(l.forEach((c,u)=>{ut.add(c),a.renderers.set(u,c);}),hn(e));}}});let i=window.hasOwnProperty,o=!1;ti(window,"hasOwnProperty",{configurable:!0,value:function(...a){try{if(!o&&a[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,o=!0,-0}catch{}return i.apply(this,a)},writable:!0});}catch{hn(e);}return r},hn=e=>{try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=oi,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=bn,t._instrumentationIsActive=!1;let n=yn(t);if(n||(t.on=jt),t.renderers.size){t._instrumentationIsActive=!0,gn.forEach(o=>o());return}let r=t.inject,i=Vt(t);i&&!n&&(ii=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=o=>{let a=r(o);return ut.add(o),i&&t.renderers.set(a,o),t._instrumentationIsActive=!0,gn.forEach(l=>l()),a};}(t.renderers.size||t._instrumentationIsActive||Vt())&&e?.();}catch{}},Jn=()=>Fa.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),Ve=e=>Jn()?(hn(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):si(e),ai=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),Qn=()=>{try{ai()&&Ve();}catch{}};var er=0,tr=1;var nr=5;var rr=11,or=13;var ir=15,sr=16;var ar=19;var lr=26,cr=27,ur=28,dr=30;function fr(e,t,n=false){if(!e)return null;let r=t(e);if(r instanceof Promise)return (async()=>{if(await r===true)return e;let o=n?e.return:e.child;for(;o;){let a=await pr(o,t,n);if(a)return a;o=n?null:o.sibling;}return null})();if(r===true)return e;let i=n?e.return:e.child;for(;i;){let o=mr(i,t,n);if(o)return o;i=n?null:i.sibling;}return null}var mr=(e,t,n=false)=>{if(!e)return null;if(t(e)===true)return e;let r=n?e.return:e.child;for(;r;){let i=mr(r,t,n);if(i)return i;r=n?null:r.sibling;}return null},pr=async(e,t,n=false)=>{if(!e)return null;if(await t(e)===true)return e;let r=n?e.return:e.child;for(;r;){let i=await pr(r,t,n);if(i)return i;r=n?null:r.sibling;}return null};var gr=e=>{let t=e;return typeof t=="function"?t:typeof t=="object"&&t?gr(t.type||t.render):null},Gt=e=>{let t=e;if(typeof t=="string")return t;if(typeof t!="function"&&!(typeof t=="object"&&t))return null;let n=t.displayName||t.name||null;if(n)return n;let r=gr(t);return r&&(r.displayName||r.name)||null};var Ct=()=>!!Ve()._instrumentationIsActive||yn()||Vt();var hr=e=>{let t=Ve();for(let n of t.renderers.values())try{let r=n.findFiberByHostInstance?.(e);if(r)return r}catch{}if(typeof e=="object"&&e){if("_reactRootContainer"in e)return e._reactRootContainer?._internalRoot?.current?.child;for(let n in e)if(n.startsWith("__reactContainer$")||n.startsWith("__reactInternalInstance$")||n.startsWith("__reactFiber"))return e[n]||null}return null};var Ka=Object.create,gi=Object.defineProperty,Ya=Object.getOwnPropertyDescriptor,Xa=Object.getOwnPropertyNames,qa=Object.getPrototypeOf,Wa=Object.prototype.hasOwnProperty,Za=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ja=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=Xa(t),o=0,a=i.length,l;o<a;o++)l=i[o],!Wa.call(e,l)&&l!==n&&gi(e,l,{get:(c=>t[c]).bind(null,l),enumerable:!(r=Ya(t,l))||r.enumerable});return e},Qa=(e,t,n)=>(n=e==null?{}:Ka(qa(e)),Ja(gi(n,"default",{value:e,enumerable:true}),e)),li=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,el=["rsc://","file:///","webpack://","webpack-internal://","node:","turbopack://","metro://","/app-pages-browser/"],ci="about://React/",tl=["<anonymous>","eval",""],nl=/\.(jsx|tsx|ts|js)$/,rl=/(\.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,ol=/^\?[\w~.\-]+(?:=[^&#]*)?(?:&[\w~.\-]+(?:=[^&#]*)?)*$/,hi="(at Server)",il=/(^|@)\S+:\d+/,bi=/^\s*at .*(\S+:\d+|\(native\))/m,sl=/^(eval@)?(\[native code\])?$/;var yi=(e,t)=>{{let n=e.split(`
11
+ `),r=[];for(let i of n)if(/^\s*at\s+/.test(i)){let o=ui(i,void 0)[0];o&&r.push(o);}else if(/^\s*in\s+/.test(i)){let o=i.replace(/^\s*in\s+/,"").replace(/\s*\(at .*\)$/,"");r.push({functionName:o,source:i});}else if(i.match(il)){let o=di(i,void 0)[0];o&&r.push(o);}return wr(r,t)}},wi=e=>{if(!e.includes(":"))return [e,void 0,void 0];let t=/(.+?)(?::(\d+))?(?::(\d+))?$/,n=t.exec(e.replace(/[()]/g,""));return [n[1],n[2]||void 0,n[3]||void 0]},wr=(e,t)=>t&&t.slice!=null?Array.isArray(t.slice)?e.slice(t.slice[0],t.slice[1]):e.slice(0,t.slice):e;var ui=(e,t)=>wr(e.split(`
12
+ `).filter(r=>!!r.match(bi)),t).map(r=>{let i=r;i.includes("(eval ")&&(i=i.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let o=i.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),a=o.match(/ (\(.+\)$)/);o=a?o.replace(a[0],""):o;let l=wi(a?a[1]:o),c=a&&o||void 0,u=["eval","<anonymous>"].includes(l[0])?void 0:l[0];return {functionName:c,fileName:u,lineNumber:l[1]?+l[1]:void 0,columnNumber:l[2]?+l[2]:void 0,source:i}});var di=(e,t)=>wr(e.split(`
13
+ `).filter(r=>!r.match(sl)),t).map(r=>{let i=r;if(i.includes(" > eval")&&(i=i.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!i.includes("@")&&!i.includes(":"))return {functionName:i};{let o=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,a=i.match(o),l=a&&a[1]?a[1]:void 0,c=wi(i.replace(o,""));return {functionName:l,fileName:c[0],lineNumber:c[1]?+c[1]:void 0,columnNumber:c[2]?+c[2]:void 0,source:i}}});var al=Za((e,t)=>{(function(n,r){typeof e=="object"&&t!==void 0?r(e):typeof define=="function"&&define.amd?define(["exports"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.sourcemapCodec={}));})(void 0,function(n){let r=44,i=59,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=new Uint8Array(64),l=new Uint8Array(128);for(let y=0;y<o.length;y++){let p=o.charCodeAt(y);a[y]=p,l[p]=y;}function c(y,p){let m=0,f=0,_=0;do{let L=y.next();_=l[L],m|=(_&31)<<f,f+=5;}while(_&32);let X=m&1;return m>>>=1,X&&(m=-2147483648|-m),p+m}function u(y,p,m){let f=p-m;f=f<0?-f<<1|1:f<<1;do{let _=f&31;f>>>=5,f>0&&(_|=32),y.write(a[_]);}while(f>0);return p}function b(y,p){return y.pos>=p?false:y.peek()!==r}let g=1024*16,T=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(y){return Buffer.from(y.buffer,y.byteOffset,y.byteLength).toString()}}:{decode(y){let p="";for(let m=0;m<y.length;m++)p+=String.fromCharCode(y[m]);return p}};class w{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(g);}write(p){let{buffer:m}=this;m[this.pos++]=p,this.pos===g&&(this.out+=T.decode(m),this.pos=0);}flush(){let{buffer:p,out:m,pos:f}=this;return f>0?m+T.decode(p.subarray(0,f)):m}}class x{constructor(p){this.pos=0,this.buffer=p;}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(p){let{buffer:m,pos:f}=this,_=m.indexOf(p,f);return _===-1?m.length:_}}let A=[];function P(y){let{length:p}=y,m=new x(y),f=[],_=[],X=0;for(;m.pos<p;m.pos++){X=c(m,X);let L=c(m,0);if(!b(m,p)){let ee=_.pop();ee[2]=X,ee[3]=L;continue}let B=c(m,0),H=c(m,0),G=H&1,O=G?[X,L,0,0,B,c(m,0)]:[X,L,0,0,B],$=A;if(b(m,p)){$=[];do{let ee=c(m,0);$.push(ee);}while(b(m,p))}O.vars=$,f.push(O),_.push(O);}return f}function E(y){let p=new w;for(let m=0;m<y.length;)m=v(y,m,p,[0]);return p.flush()}function v(y,p,m,f){let _=y[p],{0:X,1:L,2:B,3:H,4:G,vars:O}=_;p>0&&m.write(r),f[0]=u(m,X,f[0]),u(m,L,0),u(m,G,0);let $=_.length===6?1:0;u(m,$,0),_.length===6&&u(m,_[5],0);for(let ee of O)u(m,ee,0);for(p++;p<y.length;){let ee=y[p],{0:V,1:K}=ee;if(V>B||V===B&&K>=H)break;p=v(y,p,m,f);}return m.write(r),f[0]=u(m,B,f[0]),u(m,H,0),p}function N(y){let{length:p}=y,m=new x(y),f=[],_=[],X=0,L=0,B=0,H=0,G=0,O=0,$=0,ee=0;do{let V=m.indexOf(";"),K=0;for(;m.pos<V;m.pos++){if(K=c(m,K),!b(m,V)){let he=_.pop();he[2]=X,he[3]=K;continue}let ce=c(m,0),xe=ce&1,Pe=ce&2,Be=ce&4,At=null,tt=A,He;if(xe){let he=c(m,L);B=c(m,L===he?B:0),L=he,He=[X,K,0,0,he,B];}else He=[X,K,0,0];if(He.isScope=!!Be,Pe){let he=H,Ce=G;H=c(m,H);let Ye=he===H;G=c(m,Ye?G:0),O=c(m,Ye&&Ce===G?O:0),At=[H,G,O];}if(He.callsite=At,b(m,V)){tt=[];do{$=X,ee=K;let he=c(m,0),Ce;if(he<-1){Ce=[[c(m,0)]];for(let Ye=-1;Ye>he;Ye--){let de=$;$=c(m,$),ee=c(m,$===de?ee:0);let $e=c(m,0);Ce.push([$e,$,ee]);}}else Ce=[[he]];tt.push(Ce);}while(b(m,V))}He.bindings=tt,f.push(He),_.push(He);}X++,m.pos=V+1;}while(m.pos<p);return f}function z(y){if(y.length===0)return "";let p=new w;for(let m=0;m<y.length;)m=I(y,m,p,[0,0,0,0,0,0,0]);return p.flush()}function I(y,p,m,f){let _=y[p],{0:X,1:L,2:B,3:H,isScope:G,callsite:O,bindings:$}=_;f[0]<X?(j(m,f[0],X),f[0]=X,f[1]=0):p>0&&m.write(r),f[1]=u(m,_[1],f[1]);let ee=(_.length===6?1:0)|(O?2:0)|(G?4:0);if(u(m,ee,0),_.length===6){let{4:V,5:K}=_;V!==f[2]&&(f[3]=0),f[2]=u(m,V,f[2]),f[3]=u(m,K,f[3]);}if(O){let{0:V,1:K,2:ce}=_.callsite;V===f[4]?K!==f[5]&&(f[6]=0):(f[5]=0,f[6]=0),f[4]=u(m,V,f[4]),f[5]=u(m,K,f[5]),f[6]=u(m,ce,f[6]);}if($)for(let V of $){V.length>1&&u(m,-V.length,0);let K=V[0][0];u(m,K,0);let ce=X,xe=L;for(let Pe=1;Pe<V.length;Pe++){let Be=V[Pe];ce=u(m,Be[1],ce),xe=u(m,Be[2],xe),u(m,Be[0],0);}}for(p++;p<y.length;){let V=y[p],{0:K,1:ce}=V;if(K>B||K===B&&ce>=H)break;p=I(y,p,m,f);}return f[0]<B?(j(m,f[0],B),f[0]=B,f[1]=0):m.write(r),f[1]=u(m,H,f[1]),p}function j(y,p,m){do y.write(i);while(++p<m)}function W(y){let{length:p}=y,m=new x(y),f=[],_=0,X=0,L=0,B=0,H=0;do{let G=m.indexOf(";"),O=[],$=true,ee=0;for(_=0;m.pos<G;){let V;_=c(m,_),_<ee&&($=false),ee=_,b(m,G)?(X=c(m,X),L=c(m,L),B=c(m,B),b(m,G)?(H=c(m,H),V=[_,X,L,B,H]):V=[_,X,L,B]):V=[_],O.push(V),m.pos++;}$||Y(O),f.push(O),m.pos=G+1;}while(m.pos<=p);return f}function Y(y){y.sort(U);}function U(y,p){return y[0]-p[0]}function te(y){let p=new w,m=0,f=0,_=0,X=0;for(let L=0;L<y.length;L++){let B=y[L];if(L>0&&p.write(i),B.length===0)continue;let H=0;for(let G=0;G<B.length;G++){let O=B[G];G>0&&p.write(r),H=u(p,O[0],H),O.length!==1&&(m=u(p,O[1],m),f=u(p,O[2],f),_=u(p,O[3],_),O.length!==4&&(X=u(p,O[4],X)));}}return p.flush()}n.decode=W,n.decodeGeneratedRanges=N,n.decodeOriginalScopes=P,n.encode=te,n.encodeGeneratedRanges=z,n.encodeOriginalScopes=E,Object.defineProperty(n,"__esModule",{value:true});});}),xi=Qa(al()),vi=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,ll=/^data:application\/json[^,]+base64,/,cl=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,Si=typeof WeakRef<"u",Ut=new Map,wn=new Map,ul=e=>Si&&e instanceof WeakRef,fi=(e,t,n,r)=>{if(n<0||n>=e.length)return null;let i=e[n];if(!i||i.length===0)return null;let o=null;for(let b of i)if(b[0]<=r)o=b;else break;if(!o||o.length<4)return null;let[,a,l,c]=o;if(a===void 0||l===void 0||c===void 0)return null;let u=t[a];return u?{columnNumber:c,fileName:u,lineNumber:l+1}:null},dl=(e,t,n)=>{if(e.sections){let r=null;for(let a of e.sections)if(t>a.offset.line||t===a.offset.line&&n>=a.offset.column)r=a;else break;if(!r)return null;let i=t-r.offset.line,o=t===r.offset.line?n-r.offset.column:n;return fi(r.map.mappings,r.map.sources,i,o)}return fi(e.mappings,e.sources,t-1,n)},fl=(e,t)=>{let n=t.split(`
14
+ `),r;for(let o=n.length-1;o>=0&&!r;o--){let a=n[o].match(cl);a&&(r=a[1]||a[2]);}if(!r)return null;let i=vi.test(r);if(!(ll.test(r)||i||r.startsWith("/"))){let o=e.split("/");o[o.length-1]=r,r=o.join("/");}return r},ml=e=>({file:e.file,mappings:(0, xi.decode)(e.mappings),names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,version:3}),pl=e=>{let t=e.sections.map(({map:r,offset:i})=>({map:{...r,mappings:(0, xi.decode)(r.mappings)},offset:i})),n=new Set;for(let r of t)for(let i of r.map.sources)n.add(i);return {file:e.file,mappings:[],names:[],sections:t,sourceRoot:void 0,sources:Array.from(n),sourcesContent:void 0,version:3}},mi=e=>{if(!e)return false;let t=e.trim();if(!t)return false;let n=t.match(vi);if(!n)return true;let r=n[0].toLowerCase();return r==="http:"||r==="https:"},gl=async(e,t=fetch)=>{if(!mi(e))return null;let n;try{n=await(await t(e)).text();}catch{return null}if(!n)return null;let r=fl(e,n);if(!r||!mi(r))return null;try{let i=await t(r),o=await i.json();return "sections"in o?pl(o):ml(o)}catch{return null}},hl=async(e,t=true,n)=>{if(t&&Ut.has(e)){let o=Ut.get(e);if(o==null)return null;if(ul(o)){let a=o.deref();if(a)return a;Ut.delete(e);}else return o}if(t&&wn.has(e))return wn.get(e);let r=gl(e,n);t&&wn.set(e,r);let i=await r;return t&&wn.delete(e),t&&(i===null?Ut.set(e,null):Ut.set(e,Si?new WeakRef(i):i)),i},bl=async(e,t=true,n)=>await Promise.all(e.map(async r=>{if(!r.fileName)return r;let i=await hl(r.fileName,t,n);if(!i||typeof r.lineNumber!="number"||typeof r.columnNumber!="number")return r;let o=dl(i,r.lineNumber,r.columnNumber);return o?{...r,source:o.fileName&&r.source?r.source.replace(r.fileName,o.fileName):r.source,fileName:o.fileName,lineNumber:o.lineNumber,columnNumber:o.columnNumber,isSymbolicated:true}:r})),yl=e=>e._debugStack instanceof Error&&typeof e._debugStack?.stack=="string",wl=()=>{let e=Ve();for(let t of [...Array.from(ut),...Array.from(e.renderers.values())]){let n=t.currentDispatcherRef;if(n&&typeof n=="object")return "H"in n?n.H:n.current}return null},pi=e=>{for(let t of ut){let n=t.currentDispatcherRef;n&&typeof n=="object"&&("H"in n?n.H=e:n.current=e);}},Ge=e=>`
15
+ in ${e}`,xl=(e,t)=>{let n=Ge(e);return t&&(n+=` (at ${t})`),n},br=false,yr=(e,t)=>{if(!e||br)return "";let n=Error.prepareStackTrace;Error.prepareStackTrace=void 0,br=true;let r=wl();pi(null);let i=console.error,o=console.warn;console.error=()=>{},console.warn=()=>{};try{let c={DetermineComponentFrameRoot(){let T;try{if(t){let w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[]);}catch(x){T=x;}Reflect.construct(e,[],w);}else {try{w.call();}catch(x){T=x;}e.call(w.prototype);}}else {try{throw Error()}catch(x){T=x;}let w=e();w&&typeof w.catch=="function"&&w.catch(()=>{});}}catch(w){if(w instanceof Error&&T instanceof Error&&typeof w.stack=="string")return [w.stack,T.stack]}return [null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot",Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name")?.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});let[b,g]=c.DetermineComponentFrameRoot();if(b&&g){let T=b.split(`
16
16
  `),w=g.split(`
17
17
  `),x=0,A=0;for(;x<T.length&&!T[x].includes("DetermineComponentFrameRoot");)x++;for(;A<w.length&&!w[A].includes("DetermineComponentFrameRoot");)A++;if(x===T.length||A===w.length)for(x=T.length-1,A=w.length-1;x>=1&&A>=0&&T[x]!==w[A];)A--;for(;x>=1&&A>=0;x--,A--)if(T[x]!==w[A]){if(x!==1||A!==1)do if(x--,A--,A<0||T[x]!==w[A]){let P=`
18
- ${T[x].replace(" at new "," at ")}`,E=Gt(e);return E&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",E)),P}while(x>=1&&A>=0);break}}}finally{br=false,Error.prepareStackTrace=n,mi(r),console.error=i,console.warn=o;}let a=e?Gt(e):"";return a?Ge(a):""},xl=(e,t)=>{let n=e.tag,r="";switch(n){case ur:r=Ge("Activity");break;case tr:r=yr(e.type,true);break;case rr:r=yr(e.type.render,false);break;case er:case ir:r=yr(e.type,false);break;case nr:case lr:case cr:r=Ge(e.type);break;case sr:r=Ge("Lazy");break;case or:r=e.child!==t&&t!==null?Ge("Suspense Fallback"):Ge("Suspense");break;case ar:r=Ge("SuspenseList");break;case dr:r=Ge("ViewTransition");break;default:return ""}return r},vl=e=>{try{let t="",n=e,r=null;do{t+=xl(n,r);let i=n._debugInfo;if(i&&Array.isArray(i))for(let o=i.length-1;o>=0;o--){let a=i[o];typeof a.name=="string"&&(t+=wl(a.name,a.env));}r=n,n=n.return;}while(n);return t}catch(t){return t instanceof Error?`
18
+ ${T[x].replace(" at new "," at ")}`,E=Gt(e);return E&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",E)),P}while(x>=1&&A>=0);break}}}finally{br=false,Error.prepareStackTrace=n,pi(r),console.error=i,console.warn=o;}let a=e?Gt(e):"";return a?Ge(a):""},vl=(e,t)=>{let n=e.tag,r="";switch(n){case ur:r=Ge("Activity");break;case tr:r=yr(e.type,true);break;case rr:r=yr(e.type.render,false);break;case er:case ir:r=yr(e.type,false);break;case nr:case lr:case cr:r=Ge(e.type);break;case sr:r=Ge("Lazy");break;case or:r=e.child!==t&&t!==null?Ge("Suspense Fallback"):Ge("Suspense");break;case ar:r=Ge("SuspenseList");break;case dr:r=Ge("ViewTransition");break;default:return ""}return r},Sl=e=>{try{let t="",n=e,r=null;do{t+=vl(n,r);let i=n._debugInfo;if(i&&Array.isArray(i))for(let o=i.length-1;o>=0;o--){let a=i[o];typeof a.name=="string"&&(t+=xl(a.name,a.env));}r=n,n=n.return;}while(n);return t}catch(t){return t instanceof Error?`
19
19
  Error generating stack: ${t.message}
20
20
  ${t.stack}`:""}},Cl=e=>{let t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;let n=e;if(!n)return "";Error.prepareStackTrace=t,n.startsWith(`Error: react-stack-top-frame
21
21
  `)&&(n=n.slice(29));let r=n.indexOf(`
22
22
  `);if(r!==-1&&(n=n.slice(r+1)),r=Math.max(n.indexOf("react_stack_bottom_frame"),n.indexOf("react-stack-bottom-frame")),r!==-1&&(r=n.lastIndexOf(`
23
- `,r)),r!==-1)n=n.slice(0,r);else return "";return n},Sl=e=>!!(e.fileName?.startsWith("rsc://")&&e.functionName),El=(e,t)=>e.fileName===t.fileName&&e.lineNumber===t.lineNumber&&e.columnNumber===t.columnNumber,kl=e=>{let t=new Map;for(let n of e)for(let r of n.stackFrames){if(!Sl(r))continue;let i=r.functionName,o=t.get(i)??[];o.some(l=>El(l,r))||(o.push(r),t.set(i,o));}return t},Tl=(e,t,n)=>{if(!e.functionName)return {...e,isServer:true};let r=t.get(e.functionName);if(!r||r.length===0)return {...e,isServer:true};let i=n.get(e.functionName)??0,o=r[i%r.length];return n.set(e.functionName,i+1),{...e,isServer:true,fileName:o.fileName,lineNumber:o.lineNumber,columnNumber:o.columnNumber,source:e.source?.replace(gi,`(${o.fileName}:${o.lineNumber}:${o.columnNumber})`)}},Al=e=>{let t=[];return fr(e,n=>{if(!bl(n))return;let r=typeof n.type=="string"?n.type:Gt(n.type)||"<anonymous>";t.push({componentName:r,stackFrames:bi(Cl(n._debugStack?.stack))});},true),t},Ci=async(e,t=true,n)=>{let r=Al(e),i=bi(vl(e)),o=kl(r),a=new Map,l=i.map(u=>u.source?.includes(gi)??false?Tl(u,o,a):u),c=l.filter((u,b,g)=>{if(b===0)return true;let T=g[b-1];return u.functionName!==T.functionName});return hl(c,t,n)};var Kt=e=>{if(!e||el.includes(e))return "";let t=e;if(t.startsWith(li)){let i=t.slice(li.length),o=i.indexOf("/"),a=i.indexOf(":");t=o!==-1&&(a===-1||o<a)?i.slice(o+1):i;}let n=true;for(;n;){n=false;for(let i of Qa)if(t.startsWith(i)){t=t.slice(i.length),i==="file:///"&&(t=`/${t.replace(/^\/+/,"")}`),n=true;break}}if(ai.test(t)){let i=t.match(ai);i&&(t=t.slice(i[0].length));}let r=t.indexOf("?");if(r!==-1){let i=t.slice(r);rl.test(i)&&(t=t.slice(0,r));}return t},xn=e=>{let t=Kt(e);return !(!t||!tl.test(t)||nl.test(t))};var Si=e=>e.length>0&&/^[A-Z]/.test(e);Qn();var Nl=new Set(["InnerLayoutRouter","RedirectErrorBoundary","RedirectBoundary","HTTPAccessFallbackErrorBoundary","HTTPAccessFallbackBoundary","LoadingBoundary","ErrorBoundary","InnerScrollAndFocusHandler","ScrollAndFocusHandler","RenderFromTemplateContext","OuterLayoutRouter","body","html","DevRootHTTPAccessFallbackBoundary","AppDevOverlayErrorBoundary","AppDevOverlay","HotReload","Router","ErrorBoundaryHandler","AppRouter","ServerRoot","SegmentStateProvider","RootErrorBoundary","LoadableComponent","MotionDOMComponent"]),_l=()=>typeof document>"u"?false:!!(document.getElementById("__NEXT_DATA__")||document.querySelector("nextjs-portal")),Rl=e=>!!(e.startsWith("_")||Nl.has(e)),xr=e=>!(Rl(e)||!Si(e)||e.startsWith("Primitive.")||e.includes("Provider")&&e.includes("Context")),Et=async e=>{if(!St())return [];let t=hr(e);return t?await Ci(t):null},Ue=async e=>{if(!St())return null;let t=await Et(e);if(!t)return null;for(let n of t)if(n.functionName&&xr(n.functionName))return n.functionName;return null},kt=async(e,t={})=>{let{maxLines:n=3}=t,r=Ml(e),i=await Et(e),o=_l(),a=[];if(i)for(let l of i){if(a.length>=n)break;if(l.isServer&&(!l.functionName||xr(l.functionName))){a.push(`
23
+ `,r)),r!==-1)n=n.slice(0,r);else return "";return n},El=e=>!!(e.fileName?.startsWith("rsc://")&&e.functionName),kl=(e,t)=>e.fileName===t.fileName&&e.lineNumber===t.lineNumber&&e.columnNumber===t.columnNumber,Tl=e=>{let t=new Map;for(let n of e)for(let r of n.stackFrames){if(!El(r))continue;let i=r.functionName,o=t.get(i)??[];o.some(l=>kl(l,r))||(o.push(r),t.set(i,o));}return t},Al=(e,t,n)=>{if(!e.functionName)return {...e,isServer:true};let r=t.get(e.functionName);if(!r||r.length===0)return {...e,isServer:true};let i=n.get(e.functionName)??0,o=r[i%r.length];return n.set(e.functionName,i+1),{...e,isServer:true,fileName:o.fileName,lineNumber:o.lineNumber,columnNumber:o.columnNumber,source:e.source?.replace(hi,`(${o.fileName}:${o.lineNumber}:${o.columnNumber})`)}},Nl=e=>{let t=[];return fr(e,n=>{if(!yl(n))return;let r=typeof n.type=="string"?n.type:Gt(n.type)||"<anonymous>";t.push({componentName:r,stackFrames:yi(Cl(n._debugStack?.stack))});},true),t},Ci=async(e,t=true,n)=>{let r=Nl(e),i=yi(Sl(e)),o=Tl(r),a=new Map,l=i.map(u=>u.source?.includes(hi)??false?Al(u,o,a):u),c=l.filter((u,b,g)=>{if(b===0)return true;let T=g[b-1];return u.functionName!==T.functionName});return bl(c,t,n)};var Kt=e=>{if(!e||tl.includes(e))return "";let t=e;if(t.startsWith(ci)){let i=t.slice(ci.length),o=i.indexOf("/"),a=i.indexOf(":");t=o!==-1&&(a===-1||o<a)?i.slice(o+1):i;}let n=true;for(;n;){n=false;for(let i of el)if(t.startsWith(i)){t=t.slice(i.length),i==="file:///"&&(t=`/${t.replace(/^\/+/,"")}`),n=true;break}}if(li.test(t)){let i=t.match(li);i&&(t=t.slice(i[0].length));}let r=t.indexOf("?");if(r!==-1){let i=t.slice(r);ol.test(i)&&(t=t.slice(0,r));}return t},xn=e=>{let t=Kt(e);return !(!t||!nl.test(t)||rl.test(t))};var Ei=e=>e.length>0&&/^[A-Z]/.test(e);Qn();var _l=new Set(["InnerLayoutRouter","RedirectErrorBoundary","RedirectBoundary","HTTPAccessFallbackErrorBoundary","HTTPAccessFallbackBoundary","LoadingBoundary","ErrorBoundary","InnerScrollAndFocusHandler","ScrollAndFocusHandler","RenderFromTemplateContext","OuterLayoutRouter","body","html","DevRootHTTPAccessFallbackBoundary","AppDevOverlayErrorBoundary","AppDevOverlay","HotReload","Router","ErrorBoundaryHandler","AppRouter","ServerRoot","SegmentStateProvider","RootErrorBoundary","LoadableComponent","MotionDOMComponent"]),Rl=()=>typeof document>"u"?false:!!(document.getElementById("__NEXT_DATA__")||document.querySelector("nextjs-portal")),Ml=e=>!!(e.startsWith("_")||_l.has(e)),xr=e=>!(Ml(e)||!Ei(e)||e.startsWith("Primitive.")||e.includes("Provider")&&e.includes("Context")),Et=async e=>{if(!Ct())return [];let t=hr(e);return t?await Ci(t):null},Ue=async e=>{if(!Ct())return null;let t=await Et(e);if(!t)return null;for(let n of t)if(n.functionName&&xr(n.functionName))return n.functionName;return null},kt=async(e,t={})=>{let{maxLines:n=3}=t,r=Ll(e),i=await Et(e),o=Rl(),a=[];if(i)for(let l of i){if(a.length>=n)break;if(l.isServer&&(!l.functionName||xr(l.functionName))){a.push(`
24
24
  in ${l.functionName||"<anonymous>"} (at Server)`);continue}if(l.fileName&&xn(l.fileName)){let c=`
25
- in `,u=l.functionName&&xr(l.functionName);u&&(c+=`${l.functionName} (at `),c+=Kt(l.fileName),o&&l.lineNumber&&l.columnNumber&&(c+=`:${l.lineNumber}:${l.columnNumber}`),u&&(c+=")"),a.push(c);}}return `${r}${a.join("")}`},Ml=e=>{let t=e.tagName.toLowerCase();if(!(e instanceof HTMLElement))return `<${t} />`;let n=e.innerText?.trim()??e.textContent?.trim()??"",r="",i=Array.from(e.attributes);for(let w of i){let x=w.name,A=w.value;A.length>20&&(A=`${A.slice(0,20)}...`),r+=` ${x}="${A}"`;}let o=[],a=[],l=false,c=Array.from(e.childNodes);for(let w of c)w.nodeType!==Node.COMMENT_NODE&&(w.nodeType===Node.TEXT_NODE?w.textContent&&w.textContent.trim().length>0&&(l=true):w instanceof Element&&(l?a.push(w):o.push(w)));let u=w=>w.length===0?"":w.length<=2?w.map(x=>`<${x.tagName.toLowerCase()} ...>`).join(`
25
+ in `,u=l.functionName&&xr(l.functionName);u&&(c+=`${l.functionName} (at `),c+=Kt(l.fileName),o&&l.lineNumber&&l.columnNumber&&(c+=`:${l.lineNumber}:${l.columnNumber}`),u&&(c+=")"),a.push(c);}}return `${r}${a.join("")}`},Ll=e=>{let t=e.tagName.toLowerCase();if(!(e instanceof HTMLElement))return `<${t} />`;let n=e.innerText?.trim()??e.textContent?.trim()??"",r="",i=Array.from(e.attributes);for(let w of i){let x=w.name,A=w.value;A.length>20&&(A=`${A.slice(0,20)}...`),r+=` ${x}="${A}"`;}let o=[],a=[],l=false,c=Array.from(e.childNodes);for(let w of c)w.nodeType!==Node.COMMENT_NODE&&(w.nodeType===Node.TEXT_NODE?w.textContent&&w.textContent.trim().length>0&&(l=true):w instanceof Element&&(l?a.push(w):o.push(w)));let u=w=>w.length===0?"":w.length<=2?w.map(x=>`<${x.tagName.toLowerCase()} ...>`).join(`
26
26
  `):`(${w.length} elements)`,b="",g=u(o);if(g&&(b+=`
27
27
  ${g}`),n.length>0){let w=n.length>100?`${n.slice(0,100)}...`:n;b+=`
28
28
  ${w}`;}let T=u(a);return T&&(b+=`
29
29
  ${T}`),b.length>0?`<${t}${r}>${b}
30
- </${t}>`:`<${t}${r} />`};var Ll=()=>document.hasFocus()?new Promise(e=>setTimeout(e,50)):new Promise(e=>{let t=()=>{window.removeEventListener("focus",t),setTimeout(e,50);};window.addEventListener("focus",t),window.focus();}),vn=async(e,t)=>{await Ll();try{try{return await navigator.clipboard.writeText(e),t?.(),!0}catch{return Ol(e,t)}}catch{return false}},Ol=(e,t)=>{if(!document.execCommand)return false;let n=document.createElement("textarea");n.value=String(e),n.style.clipPath="inset(50%)",n.ariaHidden="true",(document.body||document.documentElement).append(n);try{n.select();let i=document.execCommand("copy");return i&&t?.(),i}finally{n.remove();}};var Ei=(e,t=window.getComputedStyle(e))=>t.display!=="none"&&t.visibility!=="hidden"&&t.opacity!=="0";var Tt=e=>{if(e.closest(`[${wt}]`))return false;let t=window.getComputedStyle(e);return !(!Ei(e,t)||t.pointerEvents==="none")};var vr=(e,t)=>{let n=document.elementsFromPoint(e,t);for(let r of n)if(Tt(r))return r;return null};var Il=(e,t)=>{let n=Math.max(e.left,t.left),r=Math.max(e.top,t.top),i=Math.min(e.right,t.right),o=Math.min(e.bottom,t.bottom),a=Math.max(0,i-n),l=Math.max(0,o-r);return a*l},Pl=(e,t)=>e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top,ki=(e,t,n)=>{let r=[],i=Array.from(document.querySelectorAll("*")),o={left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height};for(let a of i){if(!n){let u=(a.tagName||"").toUpperCase();if(u==="HTML"||u==="BODY")continue}if(!t(a))continue;let l=a.getBoundingClientRect(),c={left:l.left,top:l.top,right:l.left+l.width,bottom:l.top+l.height};if(n){let u=Il(o,c),b=Math.max(0,l.width*l.height);b>0&&u/b>=.75&&r.push(a);}else Pl(c,o)&&r.push(a);}return r},Ti=e=>e.filter(t=>!e.some(n=>n!==t&&n.contains(t))),Ai=(e,t)=>{let n=ki(e,t,true);return Ti(n)},Ni=(e,t)=>{let n=ki(e,t,false);return Ti(n)};var $l=e=>typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e),Fl=e=>{let t=e.trim();if(!t)return null;let n=parseFloat(t);return $l(n)?n:null},_i=(e,t)=>{let n=e.split(",");if(n.length!==t)return null;let r=[];for(let i of n){let o=Fl(i);if(o===null)return null;r.push(o);}return r},Bl=(e,t,n,r)=>e===1&&t===0&&n===0&&r===1,Dl=e=>e[0]===1&&e[1]===0&&e[2]===0&&e[3]===0&&e[4]===0&&e[5]===1&&e[6]===0&&e[7]===0&&e[8]===0&&e[9]===0&&e[10]===1&&e[11]===0&&e[15]===1,Cn=e=>{try{if(!(e instanceof Element))return "none";let t=window.getComputedStyle(e);if(!t)return "none";let n=t.transform;if(!n||n==="none")return "none";let r=n.match(/^matrix3d\(([^)]+)\)$/);if(r){let o=_i(r[1],16);if(o&&o.length===16){let a=[...o];return a[12]=0,a[13]=0,a[14]=0,Dl(a)?"none":`matrix3d(${a.join(", ")})`}}let i=n.match(/^matrix\(([^)]+)\)$/);if(i){let o=_i(i[1],6);if(o&&o.length===6){let[a,l,c,u]=o;return Bl(a,l,c,u)?"none":`matrix(${a}, ${l}, ${c}, ${u}, 0, 0)`}}return "none"}catch{return "none"}};var ke=e=>{let t=e.getBoundingClientRect();return {borderRadius:window.getComputedStyle(e).borderRadius||"0px",height:t.height,transform:Cn(e),width:t.width,x:t.left,y:t.top}};var Hl=new Set(["c","C","\u0441","\u0421","\u023C","\u023B","\u2184","\u2183","\u1D04","\u1D9C","\u2C7C","\u217D","\u216D","\xE7","\xC7","\u0107","\u0106","\u010D","\u010C","\u0109","\u0108","\u010B","\u010A"]),Sn=(e,t)=>t==="KeyC"?true:!e||e.length!==1?false:Hl.has(e);var Cr=(e,t)=>{let n=e.toLowerCase();return t.startsWith("Key")?t.slice(3).toLowerCase()===n:t.startsWith("Digit")?t.slice(5)===n:false},Ri=(e,t)=>{if(t.activationShortcut)return t.activationShortcut(e);if(t.activationKey){let{key:n,metaKey:r,ctrlKey:i,shiftKey:o,altKey:a}=t.activationKey;if(!n){if(!mn.includes(e.key))return false;let g=r?e.metaKey||e.key==="Meta":true,T=i?e.ctrlKey||e.key==="Control":true,w=o?e.shiftKey||e.key==="Shift":true,x=a?e.altKey||e.key==="Alt":true,A=g&&T&&w&&x,P=[r,i,o,a].filter(Boolean).length,E=[e.metaKey||e.key==="Meta",e.ctrlKey||e.key==="Control",e.shiftKey||e.key==="Shift",e.altKey||e.key==="Alt"].filter(Boolean).length;return A&&E>=P}let c=e.key.toLowerCase()===n.toLowerCase()||Cr(n,e.code),b=r||i||o||a?(r?e.metaKey:true)&&(i?e.ctrlKey:true)&&(o?e.shiftKey:true)&&(a?e.altKey:true):e.metaKey||e.ctrlKey;return c&&b}return (e.metaKey||e.ctrlKey)&&Sn(e.key,e.code)};var Ke=(e,t)=>e.composedPath().some(n=>n instanceof HTMLElement&&n.hasAttribute(t));var En={enabled:true,hue:0,selectionBox:{enabled:true},dragBox:{enabled:true},grabbedBoxes:{enabled:true},elementLabel:{enabled:true},successLabels:{enabled:true},crosshair:{enabled:true}},Mi=(e,t)=>({enabled:t.enabled??e.enabled,hue:t.hue??e.hue,selectionBox:{enabled:t.selectionBox?.enabled??e.selectionBox.enabled},dragBox:{enabled:t.dragBox?.enabled??e.dragBox.enabled},grabbedBoxes:{enabled:t.grabbedBoxes?.enabled??e.grabbedBoxes.enabled},elementLabel:{enabled:t.elementLabel?.enabled??e.elementLabel.enabled},successLabels:{enabled:t.successLabels?.enabled??e.successLabels.enabled},crosshair:{enabled:t.crosshair?.enabled??e.crosshair.enabled}}),Sr=e=>e?Mi(En,e):En,Li=Mi;var Er="react-grab:agent-sessions",zl=()=>`session-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,Oi=(e,t,n,r,i)=>({id:zl(),context:e,lastStatus:"",isStreaming:true,createdAt:Date.now(),position:t,selectionBounds:n,tagName:r,componentName:i}),kr=e=>e||null,dt=new Map,kn=(e,t)=>{let n=kr(t);if(!n){dt.clear(),e.forEach((r,i)=>dt.set(i,r));return}try{let r=Object.fromEntries(e);n.setItem(Er,JSON.stringify(r));}catch{dt.clear(),e.forEach((r,i)=>dt.set(i,r));}},Tr=(e,t)=>{let n=Tn(t);n.set(e.id,e),kn(n,t);},Tn=e=>{let t=kr(e);if(!t)return new Map(dt);try{let n=t.getItem(Er);if(!n)return new Map;let r=JSON.parse(n);return new Map(Object.entries(r))}catch{return new Map}};var An=e=>{let t=kr(e);if(!t){dt.clear();return}try{t.removeItem(Er);}catch{dt.clear();}},Ii=(e,t)=>{let n=Tn(t);n.delete(e),kn(n,t);},Yt=(e,t,n)=>{let r={...e,...t};return Tr(r,n),r};var Nn=async(e,t={})=>{let r=(await Promise.allSettled(e.map(i=>kt(i,t)))).map(i=>i.status==="fulfilled"?i.value:"").filter(i=>i.trim());return r.length===0?"":r.join(`
30
+ </${t}>`:`<${t}${r} />`};var Ol="application/x-react-grab",vn=(e,t)=>{let n=JSON.stringify({version:Ro,content:e,timestamp:Date.now()}),r=o=>{o.preventDefault(),o.clipboardData?.setData("text/plain",e),o.clipboardData?.setData(Ol,n);};document.addEventListener("copy",r);let i=document.createElement("textarea");i.value=e,i.style.position="fixed",i.style.left="-9999px",i.ariaHidden="true",document.body.appendChild(i),i.select();try{let o=document.execCommand("copy");return o&&t?.(),o}finally{document.removeEventListener("copy",r),i.remove();}};var ki=(e,t=window.getComputedStyle(e))=>t.display!=="none"&&t.visibility!=="hidden"&&t.opacity!=="0";var Tt=e=>{if(e.closest(`[${wt}]`))return false;let t=window.getComputedStyle(e);return !(!ki(e,t)||t.pointerEvents==="none")};var vr=(e,t)=>{let n=document.elementsFromPoint(e,t);for(let r of n)if(Tt(r))return r;return null};var Il=(e,t)=>{let n=Math.max(e.left,t.left),r=Math.max(e.top,t.top),i=Math.min(e.right,t.right),o=Math.min(e.bottom,t.bottom),a=Math.max(0,i-n),l=Math.max(0,o-r);return a*l},Pl=(e,t)=>e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top,Ti=(e,t,n)=>{let r=[],i=Array.from(document.querySelectorAll("*")),o={left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height};for(let a of i){if(!n){let u=(a.tagName||"").toUpperCase();if(u==="HTML"||u==="BODY")continue}if(!t(a))continue;let l=a.getBoundingClientRect(),c={left:l.left,top:l.top,right:l.left+l.width,bottom:l.top+l.height};if(n){let u=Il(o,c),b=Math.max(0,l.width*l.height);b>0&&u/b>=.75&&r.push(a);}else Pl(c,o)&&r.push(a);}return r},Ai=e=>e.filter(t=>!e.some(n=>n!==t&&n.contains(t))),Ni=(e,t)=>{let n=Ti(e,t,true);return Ai(n)},_i=(e,t)=>{let n=Ti(e,t,false);return Ai(n)};var $l=e=>typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e),Fl=e=>{let t=e.trim();if(!t)return null;let n=parseFloat(t);return $l(n)?n:null},Ri=(e,t)=>{let n=e.split(",");if(n.length!==t)return null;let r=[];for(let i of n){let o=Fl(i);if(o===null)return null;r.push(o);}return r},Dl=(e,t,n,r)=>e===1&&t===0&&n===0&&r===1,Bl=e=>e[0]===1&&e[1]===0&&e[2]===0&&e[3]===0&&e[4]===0&&e[5]===1&&e[6]===0&&e[7]===0&&e[8]===0&&e[9]===0&&e[10]===1&&e[11]===0&&e[15]===1,Sn=e=>{try{if(!(e instanceof Element))return "none";let t=window.getComputedStyle(e);if(!t)return "none";let n=t.transform;if(!n||n==="none")return "none";let r=n.match(/^matrix3d\(([^)]+)\)$/);if(r){let o=Ri(r[1],16);if(o&&o.length===16){let a=[...o];return a[12]=0,a[13]=0,a[14]=0,Bl(a)?"none":`matrix3d(${a.join(", ")})`}}let i=n.match(/^matrix\(([^)]+)\)$/);if(i){let o=Ri(i[1],6);if(o&&o.length===6){let[a,l,c,u]=o;return Dl(a,l,c,u)?"none":`matrix(${a}, ${l}, ${c}, ${u}, 0, 0)`}}return "none"}catch{return "none"}};var ke=e=>{let t=e.getBoundingClientRect();return {borderRadius:window.getComputedStyle(e).borderRadius||"0px",height:t.height,transform:Sn(e),width:t.width,x:t.left,y:t.top}};var Hl=new Set(["c","C","\u0441","\u0421","\u023C","\u023B","\u2184","\u2183","\u1D04","\u1D9C","\u2C7C","\u217D","\u216D","\xE7","\xC7","\u0107","\u0106","\u010D","\u010C","\u0109","\u0108","\u010B","\u010A"]),Cn=(e,t)=>t==="KeyC"?true:!e||e.length!==1?false:Hl.has(e);var Sr=(e,t)=>{let n=e.toLowerCase();return t.startsWith("Key")?t.slice(3).toLowerCase()===n:t.startsWith("Digit")?t.slice(5)===n:false},Mi=(e,t)=>{if(t.activationShortcut)return t.activationShortcut(e);if(t.activationKey){let{key:n,metaKey:r,ctrlKey:i,shiftKey:o,altKey:a}=t.activationKey;if(!n){if(!mn.includes(e.key))return false;let g=r?e.metaKey||e.key==="Meta":true,T=i?e.ctrlKey||e.key==="Control":true,w=o?e.shiftKey||e.key==="Shift":true,x=a?e.altKey||e.key==="Alt":true,A=g&&T&&w&&x,P=[r,i,o,a].filter(Boolean).length,E=[e.metaKey||e.key==="Meta",e.ctrlKey||e.key==="Control",e.shiftKey||e.key==="Shift",e.altKey||e.key==="Alt"].filter(Boolean).length;return A&&E>=P}let c=e.key.toLowerCase()===n.toLowerCase()||Sr(n,e.code),b=r||i||o||a?(r?e.metaKey:true)&&(i?e.ctrlKey:true)&&(o?e.shiftKey:true)&&(a?e.altKey:true):e.metaKey||e.ctrlKey;return c&&b}return (e.metaKey||e.ctrlKey)&&Cn(e.key,e.code)};var Ke=(e,t)=>e.composedPath().some(n=>n instanceof HTMLElement&&n.hasAttribute(t));var En={enabled:true,hue:0,selectionBox:{enabled:true},dragBox:{enabled:true},grabbedBoxes:{enabled:true},elementLabel:{enabled:true},successLabels:{enabled:true},crosshair:{enabled:true}},Li=(e,t)=>({enabled:t.enabled??e.enabled,hue:t.hue??e.hue,selectionBox:{enabled:t.selectionBox?.enabled??e.selectionBox.enabled},dragBox:{enabled:t.dragBox?.enabled??e.dragBox.enabled},grabbedBoxes:{enabled:t.grabbedBoxes?.enabled??e.grabbedBoxes.enabled},elementLabel:{enabled:t.elementLabel?.enabled??e.elementLabel.enabled},successLabels:{enabled:t.successLabels?.enabled??e.successLabels.enabled},crosshair:{enabled:t.crosshair?.enabled??e.crosshair.enabled}}),Cr=e=>e?Li(En,e):En,Oi=Li;var Er="react-grab:agent-sessions",zl=()=>`session-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,Ii=(e,t,n,r,i)=>({id:zl(),context:e,lastStatus:"",isStreaming:true,createdAt:Date.now(),position:t,selectionBounds:n,tagName:r,componentName:i}),kr=e=>e||null,dt=new Map,kn=(e,t)=>{let n=kr(t);if(!n){dt.clear(),e.forEach((r,i)=>dt.set(i,r));return}try{let r=Object.fromEntries(e);n.setItem(Er,JSON.stringify(r));}catch{dt.clear(),e.forEach((r,i)=>dt.set(i,r));}},Tr=(e,t)=>{let n=Tn(t);n.set(e.id,e),kn(n,t);},Tn=e=>{let t=kr(e);if(!t)return new Map(dt);try{let n=t.getItem(Er);if(!n)return new Map;let r=JSON.parse(n);return new Map(Object.entries(r))}catch{return new Map}};var An=e=>{let t=kr(e);if(!t){dt.clear();return}try{t.removeItem(Er);}catch{dt.clear();}},Pi=(e,t)=>{let n=Tn(t);n.delete(e),kn(n,t);},Yt=(e,t,n)=>{let r={...e,...t};return Tr(r,n),r};var Nn=async(e,t={})=>{let r=(await Promise.allSettled(e.map(i=>kt(i,t)))).map(i=>i.status==="fulfilled"?i.value:"").filter(i=>i.trim());return r.length===0?"":r.join(`
31
31
 
32
- `)};var Pi=e=>{let[t,n]=R(new Map),r=new Map,i=new Map,o=e,a=E=>{o=E;},l=()=>o,c=()=>t().size>0,u=async(E,v)=>{let N=o?.storage,z=false,I=false,j=false;try{for await(let U of v){let y=t().get(E.id);if(!y)break;let p=Yt(y,{lastStatus:U},N);n(m=>new Map(m).set(E.id,p)),o?.onStatus?.(U,p);}z=!0;let Y=t().get(E.id);if(Y){let U=Yt(Y,{isStreaming:!1},N);n(te=>new Map(te).set(E.id,U)),o?.onComplete?.(U);}}catch(W){let U=t().get(E.id);if(W instanceof Error&&W.name==="AbortError"){if(I=true,U){let te=i.get(E.id);o?.onAbort?.(U,te);}}else {let te=W instanceof Error?W.message:"Unknown error",y=te.toLowerCase();if(y.includes("network")||y.includes("fetch")||y.includes("load failed")||y.includes("cancelled")||y.includes("canceled")||y.includes("aborted")){if(U){let m=Yt(U,{lastStatus:`Error: ${te}`},N);n(f=>new Map(f).set(E.id,m));}}else if(j=true,U){let m=Yt(U,{lastStatus:`Error: ${te}`,isStreaming:false},N);n(f=>new Map(f).set(E.id,m)),W instanceof Error&&o?.onError?.(W,m);}}}finally{r.delete(E.id);let W=()=>{i.delete(E.id),Ii(E.id,N),n(Y=>{let U=new Map(Y);return U.delete(E.id),U});};I?W():(z||j)&&setTimeout(W,1500);}},b=E=>{let{selectionBounds:v,tagName:N}=E;if(!v)return;let z=v.x+v.width/2,I=v.y+v.height/2,j=document.elementFromPoint(z,I);if(j&&!(N&&j.tagName.toLowerCase()!==N))return j};return {sessions:t,isProcessing:c,tryResumeSessions:()=>{let E=o?.storage;if(!E)return;let v=Tn(E);if(v.size===0)return;let N=Array.from(v.values()).filter(I=>I.isStreaming);if(N.length===0){An(E);return}if(!o?.provider?.supportsResume||!o.provider.resume){An(E);return}let z=new Map(N.map(I=>[I.id,I]));n(z),kn(z,E);for(let I of N){let j=b(I);j&&i.set(I.id,j);let W={...I,lastStatus:I.lastStatus||"Resuming...",position:I.position??{x:window.innerWidth/2,y:window.innerHeight/2}};n(te=>new Map(te).set(I.id,W)),o?.onResume?.(W);let Y=new AbortController;r.set(I.id,Y);let U=o.provider.resume(I.id,Y.signal,E);u(I,U);}},startSession:async E=>{let{element:v,prompt:N,position:z,selectionBounds:I}=E,j=o?.storage;if(!o?.provider)return;let U={content:await Nn([v]),prompt:N,options:o?.getOptions?.()},te=(v.tagName||"").toLowerCase()||void 0,y=await Ue(v)||void 0,p=Oi(U,z,I,te,y);p.lastStatus="Please wait\u2026",i.set(p.id,v),n(_=>new Map(_).set(p.id,p)),Tr(p,j),o.onStart?.(p);let m=new AbortController;r.set(p.id,m);let f=o.provider.send(U,m.signal);u(p,f);},abortSession:E=>{let v=r.get(E);v&&v.abort();},abortAllSessions:()=>{r.forEach(E=>E.abort()),r.clear(),n(new Map),An(o?.storage);},updateSessionBoundsOnViewportChange:()=>{let E=t();if(E.size===0)return;let v=new Map(E),N=false;for(let[z,I]of E){let j=i.get(z);if(!j||!document.contains(j)){let W=b(I);W&&(i.set(z,W),j=W);}if(j&&document.contains(j)){let W=ke(j);if(W){let Y=I.selectionBounds,U=I.position;if(Y){let te=Y.x+Y.width/2,y=I.position.x-te,p=W.x+W.width/2;U={...I.position,x:p+y};}v.set(z,{...I,selectionBounds:W,position:U}),N=true;}}}N&&n(v);},getSessionElement:E=>i.get(E),setOptions:a,getOptions:l}};var Fi=re('<span class="tabular-nums align-middle">'),Bi=re('<span class="font-mono tabular-nums align-middle">&lt;<!>>'),Kl=re('<span class="tabular-nums ml-1 align-middle"> in '),Yl=e=>"scheduler"in globalThis?globalThis.scheduler.postTask(e,{priority:"background"}):"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0),Ar=false,Xl=()=>{if(typeof window>"u")return null;try{let e=document.currentScript?.getAttribute("data-options");return e?JSON.parse(e):null}catch{return null}},Nr=e=>{let t=Sr(e?.theme);if(typeof window>"u")return {activate:()=>{},deactivate:()=>{},toggle:()=>{},isActive:()=>false,dispose:()=>{},copyElement:()=>Promise.resolve(false),getState:()=>({isActive:false,isDragging:false,isCopying:false,isInputMode:false,targetElement:null,dragBounds:null}),updateTheme:()=>{},getTheme:()=>t,setAgent:()=>{}};let r={enabled:true,keyHoldDuration:200,allowActivationInsideInput:true,maxContextLines:3,...Xl(),...e},i=Sr(r.theme);return r.enabled===false||Ar?{activate:()=>{},deactivate:()=>{},toggle:()=>{},isActive:()=>false,dispose:()=>{},copyElement:()=>Promise.resolve(false),getState:()=>({isActive:false,isDragging:false,isCopying:false,isInputMode:false,targetElement:null,dragBounds:null}),updateTheme:()=>{},getTheme:()=>i,setAgent:()=>{}}:(Ar=true,(()=>{try{let a="0.0.68",l=`data:image/svg+xml;base64,${btoa(Ro)}`;console.log(`%cReact Grab${a?` v${a}`:""}%c
33
- https://react-grab.com`,`background: #330039; color: #ffffff; border: 1px solid #d75fcb; padding: 4px 4px 4px 24px; border-radius: 4px; background-image: url("${l}"); background-size: 16px 16px; background-repeat: no-repeat; background-position: 4px center; display: inline-block; margin-bottom: 4px;`,""),navigator.onLine&&a&&fetch(`https://www.react-grab.com/api/version?t=${Date.now()}`,{referrerPolicy:"origin",keepalive:!0,priority:"low",cache:"no-store"}).then(c=>c.text()).then(c=>{c&&c!==a&&console.warn(`[React Grab] v${a} is outdated (latest: v${c})`);}).catch(()=>null);}catch{}})(),at(a=>{let[l,c]=R(i),[u,b]=R(false),[g,T]=R(-1e3),[w,x]=R(-1e3),[A,P]=R(null),E=0,[v,N]=R(false),[z,I]=R(-1e3),[j,W]=R(-1e3),[Y,U]=R(false),[te,y]=R("idle"),[p,m]=R([]),[f,_]=R(null),[X,L]=R(null),[D,H]=R([]),[G,O]=R([]),[$,ee]=R(false),[V,K]=R(false),[ce,xe]=R(false),[Pe,De]=R(-1e3),[At,tt]=R(-1e3),[He,ge]=R(0),[Se,Ye]=R(0),[de,$e]=R(false),[_r,Nt]=R(""),[Di,Ln]=R(false),[Rr,Mr]=R(void 0),[Lr,Or]=R(void 0),[Ir,nt]=R(false),[Pr,rt]=R(false),[Xt,_t]=R(null),[qt,Hi]=R(!!r.agent?.provider),[On,In]=R(-1e3),[Pn,$n]=R(-1e3),[$r,Wt]=R(false),[Rt,Fn]=R([]),Xe=s=>(s.tagName||"").toLowerCase(),Fr=ae(()=>{let s=Rt();if(!(s.length===0||!s[0]))return Xe(s[0])||void 0}),[Br]=an(()=>{let s=Rt();return s.length===0||!s[0]?null:s[0]},async s=>{if(s)return await Ue(s)||void 0}),Zt=()=>{In(-1e3),$n(-1e3),Fn([]);},zi=()=>{let s=window.getSelection();if(!s||s.isCollapsed||s.rangeCount===0)return;let h=s.getRangeAt(0).getClientRects();if(h.length===0)return;let C=(()=>{if(!s.anchorNode||!s.focusNode)return false;let Z=s.anchorNode.compareDocumentPosition(s.focusNode);return Z&Node.DOCUMENT_POSITION_FOLLOWING?false:Z&Node.DOCUMENT_POSITION_PRECEDING?true:s.anchorOffset>s.focusOffset})(),k=C?h[0]:h[h.length-1],F=C?k.left:k.right,B=k.top+k.height/2;In(F),$n(B);};ne(we(()=>Se(),()=>{$r()&&zi();}));let Bn=ae(()=>{Se();let s=Rt();if(!(s.length===0||!s[0]))return ke(s[0])}),ze=null,Jt=null,Qt=null,Te=null,ot=null,Mt=null,Oe=ae(()=>$()&&!Y()),Dr=(s,d)=>({top:d<25,bottom:d>window.innerHeight-25,left:s<25,right:s>window.innerWidth-25}),Hr=(s,d)=>{let h=`grabbed-${Date.now()}-${Math.random()}`,C=Date.now(),k={id:h,bounds:s,createdAt:C,element:d},F=D();H([...F,k]),r.onGrabbedBox?.(s,d),setTimeout(()=>{H(B=>B.filter(Z=>Z.id!==h));},1700);},zr=(s,d)=>{let h=`success-${Date.now()}-${Math.random()}`;O(C=>[...C,{id:h,text:s}]),r.onSuccessLabel?.(s,d,{x:g(),y:w()}),setTimeout(()=>{O(C=>C.filter(k=>k.id!==h));},1700);},ji=s=>{let d=Xe(s);return d?`<${d}>`:"1 element"},jr=s=>{let d=s.map(h=>({tagName:Xe(h)}));window.dispatchEvent(new CustomEvent("react-grab:element-selected",{detail:{elements:d}}));},Vi=(s,d,h,C,k,F)=>{let B=`label-${Date.now()}-${Math.random().toString(36).slice(2)}`;return m(Z=>[...Z,{id:B,bounds:s,tagName:d,componentName:h,status:C,createdAt:Date.now(),element:k,mouseX:F}]),B},Vr=(s,d)=>{m(h=>h.map(C=>C.id===s?{...C,status:d}:C));},Gi=s=>{m(d=>d.filter(h=>h.id!==s));},Lt=async(s,d,h,C,k,F,B)=>{if(De(s),tt(d),C){let Re=C.x+C.width/2;ge(s-Re);}else ge(0);U(true),qi();let Z=C&&k?Vi(C,k,F,"copying",B,s):null;await h().finally(()=>{U(false),en(),Z&&(Vr(Z,"copied"),setTimeout(()=>{Vr(Z,"fading"),setTimeout(()=>{Gi(Z);},350);},1500)),V()&&Ee();});},Ui=s=>"innerText"in s,Ki=s=>Ui(s)?s.innerText:s.textContent??"",Gr=s=>s.map(d=>Ki(d).trim()).filter(d=>d.length>0).join(`
32
+ `)};var $i=e=>{let[t,n]=R(new Map),r=new Map,i=new Map,o=e,a=E=>{o=E;},l=()=>o,c=()=>t().size>0,u=async(E,v)=>{let N=o?.storage,z=false,I=false,j=false;try{for await(let U of v){let y=t().get(E.id);if(!y)break;let p=Yt(y,{lastStatus:U},N);n(m=>new Map(m).set(E.id,p)),o?.onStatus?.(U,p);}z=!0;let Y=t().get(E.id);if(Y){let U=Yt(Y,{isStreaming:!1},N);n(te=>new Map(te).set(E.id,U)),o?.onComplete?.(U);}}catch(W){let U=t().get(E.id);if(W instanceof Error&&W.name==="AbortError"){if(I=true,U){let te=i.get(E.id);o?.onAbort?.(U,te);}}else {let te=W instanceof Error?W.message:"Unknown error",y=te.toLowerCase();if(y.includes("network")||y.includes("fetch")||y.includes("load failed")||y.includes("cancelled")||y.includes("canceled")||y.includes("aborted")){if(U){let m=Yt(U,{lastStatus:`Error: ${te}`},N);n(f=>new Map(f).set(E.id,m));}}else if(j=true,U){let m=Yt(U,{lastStatus:`Error: ${te}`,isStreaming:false},N);n(f=>new Map(f).set(E.id,m)),W instanceof Error&&o?.onError?.(W,m);}}}finally{r.delete(E.id);let W=()=>{i.delete(E.id),Pi(E.id,N),n(Y=>{let U=new Map(Y);return U.delete(E.id),U});};I?W():(z||j)&&setTimeout(W,1500);}},b=E=>{let{selectionBounds:v,tagName:N}=E;if(!v)return;let z=v.x+v.width/2,I=v.y+v.height/2,j=document.elementFromPoint(z,I);if(j&&!(N&&j.tagName.toLowerCase()!==N))return j};return {sessions:t,isProcessing:c,tryResumeSessions:()=>{let E=o?.storage;if(!E)return;let v=Tn(E);if(v.size===0)return;let N=Array.from(v.values()).filter(I=>I.isStreaming);if(N.length===0){An(E);return}if(!o?.provider?.supportsResume||!o.provider.resume){An(E);return}let z=new Map(N.map(I=>[I.id,I]));n(z),kn(z,E);for(let I of N){let j=b(I);j&&i.set(I.id,j);let W={...I,lastStatus:I.lastStatus||"Resuming...",position:I.position??{x:window.innerWidth/2,y:window.innerHeight/2}};n(te=>new Map(te).set(I.id,W)),o?.onResume?.(W);let Y=new AbortController;r.set(I.id,Y);let U=o.provider.resume(I.id,Y.signal,E);u(I,U);}},startSession:async E=>{let{element:v,prompt:N,position:z,selectionBounds:I}=E,j=o?.storage;if(!o?.provider)return;let U={content:await Nn([v]),prompt:N,options:o?.getOptions?.()},te=(v.tagName||"").toLowerCase()||void 0,y=await Ue(v)||void 0,p=Ii(U,z,I,te,y);p.lastStatus="Please wait\u2026",i.set(p.id,v),n(_=>new Map(_).set(p.id,p)),Tr(p,j),o.onStart?.(p);let m=new AbortController;r.set(p.id,m);let f=o.provider.send(U,m.signal);u(p,f);},abortSession:E=>{let v=r.get(E);v&&v.abort();},abortAllSessions:()=>{r.forEach(E=>E.abort()),r.clear(),n(new Map),An(o?.storage);},updateSessionBoundsOnViewportChange:()=>{let E=t();if(E.size===0)return;let v=new Map(E),N=false;for(let[z,I]of E){let j=i.get(z);if(!j||!document.contains(j)){let W=b(I);W&&(i.set(z,W),j=W);}if(j&&document.contains(j)){let W=ke(j);if(W){let Y=I.selectionBounds,U=I.position;if(Y){let te=Y.x+Y.width/2,y=I.position.x-te,p=W.x+W.width/2;U={...I.position,x:p+y};}v.set(z,{...I,selectionBounds:W,position:U}),N=true;}}}N&&n(v);},getSessionElement:E=>i.get(E),setOptions:a,getOptions:l}};var Di=re('<span class="tabular-nums align-middle">'),Bi=re('<span class="font-mono tabular-nums align-middle">&lt;<!>>'),Kl=re('<span class="tabular-nums ml-1 align-middle"> in '),Yl=e=>"scheduler"in globalThis?globalThis.scheduler.postTask(e,{priority:"background"}):"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0),Ar=false,Xl=()=>{if(typeof window>"u")return null;try{let e=document.currentScript?.getAttribute("data-options");return e?JSON.parse(e):null}catch{return null}},Nr=e=>{let t=Cr(e?.theme);if(typeof window>"u")return {activate:()=>{},deactivate:()=>{},toggle:()=>{},isActive:()=>false,dispose:()=>{},copyElement:()=>Promise.resolve(false),getState:()=>({isActive:false,isDragging:false,isCopying:false,isInputMode:false,targetElement:null,dragBounds:null}),updateTheme:()=>{},getTheme:()=>t,setAgent:()=>{}};let r={enabled:true,keyHoldDuration:200,allowActivationInsideInput:true,maxContextLines:3,...Xl(),...e},i=Cr(r.theme);return r.enabled===false||Ar?{activate:()=>{},deactivate:()=>{},toggle:()=>{},isActive:()=>false,dispose:()=>{},copyElement:()=>Promise.resolve(false),getState:()=>({isActive:false,isDragging:false,isCopying:false,isInputMode:false,targetElement:null,dragBounds:null}),updateTheme:()=>{},getTheme:()=>i,setAgent:()=>{}}:(Ar=true,(()=>{try{let a="0.0.70",l=`data:image/svg+xml;base64,${btoa(Mo)}`;console.log(`%cReact Grab${a?` v${a}`:""}%c
33
+ https://react-grab.com`,`background: #330039; color: #ffffff; border: 1px solid #d75fcb; padding: 4px 4px 4px 24px; border-radius: 4px; background-image: url("${l}"); background-size: 16px 16px; background-repeat: no-repeat; background-position: 4px center; display: inline-block; margin-bottom: 4px;`,""),navigator.onLine&&a&&fetch(`https://www.react-grab.com/api/version?t=${Date.now()}`,{referrerPolicy:"origin",keepalive:!0,priority:"low",cache:"no-store"}).then(c=>c.text()).then(c=>{c&&c!==a&&console.warn(`[React Grab] v${a} is outdated (latest: v${c})`);}).catch(()=>null);}catch{}})(),at(a=>{let[l,c]=R(i),[u,b]=R(false),[g,T]=R(-1e3),[w,x]=R(-1e3),[A,P]=R(null),E=0,[v,N]=R(false),[z,I]=R(-1e3),[j,W]=R(-1e3),[Y,U]=R(false),[te,y]=R("idle"),[p,m]=R([]),[f,_]=R(null),[X,L]=R(null),[B,H]=R([]),[G,O]=R([]),[$,ee]=R(false),[V,K]=R(false),[ce,xe]=R(false),[Pe,Be]=R(-1e3),[At,tt]=R(-1e3),[He,he]=R(0),[Ce,Ye]=R(0),[de,$e]=R(false),[_r,Nt]=R(""),[Hi,Ln]=R(false),[Rr,Mr]=R(void 0),[Lr,Or]=R(void 0),[Ir,nt]=R(false),[Pr,rt]=R(false),[Xt,_t]=R(null),[qt,zi]=R(!!r.agent?.provider),[On,In]=R(-1e3),[Pn,$n]=R(-1e3),[$r,Wt]=R(false),[Rt,Fn]=R([]),Xe=s=>(s.tagName||"").toLowerCase(),Fr=ae(()=>{let s=Rt();if(!(s.length===0||!s[0]))return Xe(s[0])||void 0}),[Dr]=an(()=>{let s=Rt();return s.length===0||!s[0]?null:s[0]},async s=>{if(s)return await Ue(s)||void 0}),Zt=()=>{In(-1e3),$n(-1e3),Fn([]);},ji=()=>{let s=window.getSelection();if(!s||s.isCollapsed||s.rangeCount===0)return;let h=s.getRangeAt(0).getClientRects();if(h.length===0)return;let S=(()=>{if(!s.anchorNode||!s.focusNode)return false;let Z=s.anchorNode.compareDocumentPosition(s.focusNode);return Z&Node.DOCUMENT_POSITION_FOLLOWING?false:Z&Node.DOCUMENT_POSITION_PRECEDING?true:s.anchorOffset>s.focusOffset})(),k=S?h[0]:h[h.length-1],F=S?k.left:k.right,D=k.top+k.height/2;In(F),$n(D);};ne(we(()=>Ce(),()=>{$r()&&ji();}));let Dn=ae(()=>{Ce();let s=Rt();if(!(s.length===0||!s[0]))return ke(s[0])}),ze=null,Jt=null,Qt=null,Te=null,ot=null,Mt=null,Oe=ae(()=>$()&&!Y()),Br=(s,d)=>({top:d<25,bottom:d>window.innerHeight-25,left:s<25,right:s>window.innerWidth-25}),Hr=(s,d)=>{let h=`grabbed-${Date.now()}-${Math.random()}`,S=Date.now(),k={id:h,bounds:s,createdAt:S,element:d},F=B();H([...F,k]),r.onGrabbedBox?.(s,d),setTimeout(()=>{H(D=>D.filter(Z=>Z.id!==h));},1700);},zr=(s,d)=>{let h=`success-${Date.now()}-${Math.random()}`;O(S=>[...S,{id:h,text:s}]),r.onSuccessLabel?.(s,d,{x:g(),y:w()}),setTimeout(()=>{O(S=>S.filter(k=>k.id!==h));},1700);},Vi=s=>{let d=Xe(s);return d?`<${d}>`:"1 element"},jr=s=>{let d=s.map(h=>({tagName:Xe(h)}));window.dispatchEvent(new CustomEvent("react-grab:element-selected",{detail:{elements:d}}));},Gi=(s,d,h,S,k,F)=>{let D=`label-${Date.now()}-${Math.random().toString(36).slice(2)}`;return m(Z=>[...Z,{id:D,bounds:s,tagName:d,componentName:h,status:S,createdAt:Date.now(),element:k,mouseX:F}]),D},Vr=(s,d)=>{m(h=>h.map(S=>S.id===s?{...S,status:d}:S));},Ui=s=>{m(d=>d.filter(h=>h.id!==s));},Lt=async(s,d,h,S,k,F,D)=>{if(Be(s),tt(d),S){let Re=S.x+S.width/2;he(s-Re);}else he(0);U(true),Wi();let Z=S&&k?Gi(S,k,F,"copying",D,s):null;await h().finally(()=>{U(false),en(),Z&&(Vr(Z,"copied"),setTimeout(()=>{Vr(Z,"fading"),setTimeout(()=>{Ui(Z);},350);},1500)),V()&&Ee();});},Ki=s=>"innerText"in s,Yi=s=>Ki(s)?s.innerText:s.textContent??"",Gr=s=>s.map(d=>Yi(d).trim()).filter(d=>d.length>0).join(`
34
34
 
35
- `),Dn=async(s,d)=>{let h=false,C="";await r.onBeforeCopy?.(s);try{let k=await Promise.allSettled(s.map(B=>kt(B,{maxLines:r.maxContextLines}))),F=[];for(let B of k)B.status==="fulfilled"&&B.value.trim()&&F.push(B.value);if(F.length>0){let B=F.join(`
35
+ `),Bn=async(s,d)=>{let h=false,S="";await r.onBeforeCopy?.(s);try{let k=await Promise.allSettled(s.map(D=>kt(D,{maxLines:r.maxContextLines}))),F=[];for(let D of k)D.status==="fulfilled"&&D.value.trim()&&F.push(D.value);if(F.length>0){let D=F.join(`
36
36
 
37
37
  `),Z=d?`${d}
38
38
 
39
- ${B}`:B;C=Z,h=await vn(Z);}if(!h){let B=Gr(s);if(B.length>0){let Z=d?`${d}
39
+ ${D}`:D;S=Z,h=vn(Z);}if(!h){let D=Gr(s);if(D.length>0){let Z=d?`${d}
40
40
 
41
- ${B}`:B;C=Z,h=await vn(Z);}}h&&r.onCopySuccess?.(s,C);}catch(k){r.onCopyError?.(k);let F=Gr(s);if(F.length>0){let B=d?`${d}
41
+ ${D}`:D;S=Z,h=vn(Z);}}h&&r.onCopySuccess?.(s,S);}catch(k){r.onCopyError?.(k);let F=Gr(s);if(F.length>0){let D=d?`${d}
42
42
 
43
- ${F}`:F;C=B,h=await vn(B);}}return r.onAfterCopy?.(s,h),h},Hn=async(s,d)=>{let h=d?"input-submit":"copy";r.onElementSelect?.(s),l().grabbedBoxes.enabled&&Hr(ke(s),s),await new Promise(k=>requestAnimationFrame(k)),await Dn([s],d)&&l().successLabels.enabled&&zr(ji(s),h),jr([s]);},Ur=async s=>{if(s.length===0)return;for(let h of s)r.onElementSelect?.(h);if(l().grabbedBoxes.enabled)for(let h of s)Hr(ke(h),h);await new Promise(h=>requestAnimationFrame(h)),await Dn(s)&&l().successLabels.enabled&&zr(`${s.length} elements`,"copy"),jr(s);},fe=ae(()=>!Oe()||v()?null:A());ne(()=>{let s=fe();s&&_t(s);});let Kr=ae(()=>{Se();let s=fe();if(s)return ke(s)}),Yr=(s,d)=>{let h=s+window.scrollX,C=d+window.scrollY;return {x:Math.abs(h-z()),y:Math.abs(C-j())}},Xr=ae(()=>{if(!v())return false;let s=Yr(g(),w());return s.x>2||s.y>2}),qr=(s,d)=>{let h=s+window.scrollX,C=d+window.scrollY,k=Math.min(z(),h),F=Math.min(j(),C),B=Math.abs(h-z()),Z=Math.abs(C-j());return {x:k-window.scrollX,y:F-window.scrollY,width:B,height:Z}},qe=ae(()=>{if(!Xr())return;let s=qr(g(),w());return {borderRadius:"0px",height:s.height,transform:"none",width:s.width,x:s.x,y:s.y}}),[Yi]=an(()=>fe(),async s=>s?Ue(s):null),Xi=ae(()=>{let s=fe(),d=Y();if(!s)return (()=>{var k=Fi();return J(k,d?"Please wait\u2026":"1 element"),k})();let h=Xe(s),C=Yi();return h&&C?[(()=>{var k=Bi(),F=k.firstChild,B=F.nextSibling;B.nextSibling;return J(k,h,B),k})(),(()=>{var k=Kl();k.firstChild;return J(k,C,null),k})()]:h?(()=>{var k=Bi(),F=k.firstChild,B=F.nextSibling;B.nextSibling;return J(k,h,B),k})():(()=>{var k=Fi();return J(k,d?"Please wait\u2026":"1 element"),k})()}),zn=ae(()=>{if(Y()||Pr()){Se();let s=Xt()||fe();if(s){let d=ke(s);return {x:d.x+d.width/2+He(),y:At()}}return {x:Pe(),y:At()}}return {x:g(),y:w()}});ne(we(()=>[fe(),f()],([s,d])=>{d&&s&&d!==s&&_(null),s&&r.onElementHover?.(s);})),ne(we(()=>fe(),s=>{let d=()=>{Mr(void 0),Or(void 0);};if(!s){d();return}Et(s).then(h=>{if(h){for(let C of h)if(C.fileName&&xn(C.fileName)){Mr(Kt(C.fileName)),Or(C.lineNumber);return}d();}}).catch(d);})),ne(we(()=>Se(),()=>{let s=D();if(s.length===0)return;let d=s.map(h=>({...h,bounds:ke(h.element)}));H(d);})),ne(we(()=>Se(),()=>_e.updateSessionBoundsOnViewportChange())),ne(we(()=>[$(),v(),Y(),de(),fe(),qe()],([s,d,h,C,k,F])=>{r.onStateChange?.({isActive:s,isDragging:d,isCopying:h,isInputMode:C,targetElement:k,dragBounds:F?{x:F.x,y:F.y,width:F.width,height:F.height}:null});})),ne(we(()=>[de(),g(),w(),fe()],([s,d,h,C])=>{r.onInputModeChange?.(s,{x:d,y:h,targetElement:C});})),ne(we(()=>[eo(),Kr(),fe()],([s,d,h])=>{r.onSelectionBox?.(!!s,d??null,h);})),ne(we(()=>[to(),qe()],([s,d])=>{r.onDragBox?.(!!s,d??null);})),ne(we(()=>[no(),g(),w()],([s,d,h])=>{r.onCrosshair?.(!!s,{x:d,y:h});})),ne(we(()=>[ls(),as(),Xi(),zn()],([s,d,h,C])=>{let k=typeof h=="string"?h:"";r.onElementLabel?.(!!s,d,{x:C.x,y:C.y,content:k});}));let We=null,it=s=>{s?(We||(We=document.createElement("style"),We.setAttribute("data-react-grab-cursor",""),document.head.appendChild(We)),We.textContent=`* { cursor: ${s} !important; }`):We&&(We.remove(),We=null);};ne(we(()=>[$(),Y(),v(),de(),fe()],([s,d,h,C,k])=>{it(d?"progress":C?null:s&&h?"crosshair":s&&k?"default":s?"crosshair":null);}));let qi=s=>{let d=Date.now(),h=r.keyHoldDuration;L(d);let C=()=>{let k=X();if(k===null)return;let B=(Date.now()-k)/h,Z=1-Math.exp(-B);(Y()?Math.min(Z,.95):1)<1&&(Qt=requestAnimationFrame(C));};C();},en=()=>{Qt!==null&&(cancelAnimationFrame(Qt),Qt=null),L(null);},Wi=()=>{let s=()=>{if(!v()){Ot();return}let d=Dr(g(),w());d.top&&window.scrollBy(0,-10),d.bottom&&window.scrollBy(0,10),d.left&&window.scrollBy(-10,0),d.right&&window.scrollBy(10,0),d.top||d.bottom||d.left||d.right?ot=requestAnimationFrame(s):ot=null;};s();},Ot=()=>{ot!==null&&(cancelAnimationFrame(ot),ot=null);},st=()=>{en(),Mt=document.activeElement,Jt=Date.now(),ee(true),r.onActivate?.();},Ee=()=>{K(false),b(false),ee(false),$e(false),Nt(""),nt(false),rt(false),_t(null),y("idle"),v()&&(N(false),document.body.style.userSelect=""),ze&&window.clearTimeout(ze),Te&&window.clearTimeout(Te),Ot(),en(),Jt=null,Mt instanceof HTMLElement&&document.contains(Mt)&&Mt.focus(),Mt=null,r.onDeactivate?.();},Zi=r.agent?{...r.agent,onAbort:(s,d)=>{if(r.agent?.onAbort?.(s,d),d&&document.contains(d)){let h=d.getBoundingClientRect(),C=h.top+h.height/2;T(s.position.x),x(C),_t(d),Nt(s.context.prompt),rt(true),$e(true),K(true),nt(true),$()||st();}}}:void 0,_e=Pi(Zi),Ji=s=>{Nt(s);},Qi=()=>{let s=Xt()||fe(),d=de()?_r().trim():"";if(!s){Ee();return}let h=ke(s),C=g(),k=h.x+h.width/2,F=h.y+h.height/2;if(T(k),x(F),qt()&&d){Ee(),_e.startSession({element:s,prompt:d,position:{x:C,y:F},selectionBounds:h});return}$e(false),Nt("");let B=Xe(s);Ue(s).then(Z=>{Lt(k,F,()=>Hn(s,d||void 0),h,B,Z??void 0,s).then(()=>{Ee();});});},jn=()=>{de()&&Ee();},es=()=>{let s=Xt()||fe();if(s){let d=ke(s),h=d.x+d.width/2;De(g()),tt(w()),ge(g()-h);}K(true),nt(true),rt(true),$e(true);},ts=async()=>{let s=Rt();if(s.length===0)return;let d=On(),h=Pn(),C=Bn(),k=Fr();Wt(false),Zt(),window.getSelection()?.removeAllRanges();let F=Br();s.length===1?await Lt(d,h,()=>Hn(s[0]),C,k,F):await Lt(d,h,()=>Ur(s),C,k,F);},ns=()=>{if(Rt().length===0)return;let d=Bn(),h=d?d.x+d.width/2:On(),C=d?d.y+d.height/2:Pn();Wt(false),Zt(),window.getSelection()?.removeAllRanges(),T(h),x(C),K(true),nt(true),rt(true),st(),$e(true);},Wr=(s,d)=>{if(de()||Ir())return;T(s),x(d);let h=performance.now();if(h-E>=32&&(E=h,Yl(()=>{let C=vr(s,d);P(C);})),v()){let C=Dr(s,d),k=C.top||C.bottom||C.left||C.right;k&&ot===null?Wi():!k&&ot!==null&&Ot();}},Zr=(s,d)=>{if(!Oe()||Y())return false;N(true);let h=s+window.scrollX,C=d+window.scrollY;return I(h),W(C),document.body.style.userSelect="none",r.onDragStart?.(h,C),true},Jr=(s,d)=>{if(!v())return;let h=Yr(s,d),C=h.x>2||h.y>2;if(N(false),Ot(),document.body.style.userSelect="",C){xe(true);let k=qr(s,d),F=Ai(k,Tt),B=F.length>0?F:Ni(k,Tt);if(B.length>0){r.onDragEnd?.(B,k);let Z=B[0],Re=Z.getBoundingClientRect(),Me={x:Re.left,y:Re.top,width:Re.width,height:Re.height,borderRadius:"0px",transform:Cn(Z)},It=Xe(Z);if(qt()){let mt=Me.x+Me.width/2,us=Me.y+Me.height/2;T(mt),x(us),_t(Z),K(true),nt(true),rt(true),$e(true);}else Ue(Z).then(mt=>{Lt(s,d,()=>Ur(B),Me,It,mt??void 0,Z);});}}else {let k=vr(s,d);if(!k)return;_(k);let F=ke(k),B=Xe(k);Ue(k).then(Z=>{Lt(s,d,()=>Hn(k),F,B,Z??void 0,k);});}},Qr=new AbortController,ve=Qr.signal;window.addEventListener("keydown",s=>{if(de()||Ke(s,"data-react-grab-ignore-events")){s.key==="Escape"&&_e.isProcessing()&&_e.abortAllSessions();return}if(s.key==="Escape"){if(_e.isProcessing()){_e.abortAllSessions();return}if(u()){Ee();return}}if(s.key==="Enter"&&u()&&!de()){s.preventDefault(),s.stopPropagation();let d=Xt()||fe();if(d){let h=ke(d),C=h.x+h.width/2;De(g()),tt(w()),ge(g()-C);}K(true),nt(true),rt(true),Te!==null&&(window.clearTimeout(Te),Te=null),$()||(ze&&window.clearTimeout(ze),st()),$e(true);return}if(s.key.toLowerCase()==="o"&&!de()&&$()&&(s.metaKey||s.ctrlKey)){let d=Rr(),h=Lr();if(d)if(s.preventDefault(),s.stopPropagation(),r.onOpenFile)r.onOpenFile(d,h);else {let C=fn(d,h);window.open(C,"_blank");}return}if(!(!r.allowActivationInsideInput&&To(s))&&!(!Ri(s,r)&&($()&&!V()&&(s.metaKey||s.ctrlKey)&&!mn.includes(s.key)&&s.key!=="Enter"&&Ee(),s.key!=="Enter"))){if(($()||u())&&!de()&&s.preventDefault(),$()){if(V()||s.repeat)return;Te!==null&&window.clearTimeout(Te),Te=window.setTimeout(()=>{Ee();},200);return}u()&&s.repeat||(ze!==null&&window.clearTimeout(ze),u()||b(true),ze=window.setTimeout(()=>{st();},r.keyHoldDuration));}},{signal:ve,capture:true}),window.addEventListener("keyup",s=>{if(!u()&&!$()||de())return;let d=!!(r.activationShortcut||r.activationKey),C=(()=>{if(r.activationKey){let{metaKey:B,ctrlKey:Z,shiftKey:Re,altKey:Me}=r.activationKey;return {metaKey:!!B,ctrlKey:!!Z,shiftKey:!!Re,altKey:!!Me}}return {metaKey:true,ctrlKey:true,shiftKey:false,altKey:false}})(),k=C.metaKey||C.ctrlKey?!s.metaKey&&!s.ctrlKey:C.shiftKey&&!s.shiftKey||C.altKey&&!s.altKey,F=r.activationShortcut?!r.activationShortcut(s):r.activationKey?r.activationKey.key?s.key.toLowerCase()===r.activationKey.key.toLowerCase()||Cr(r.activationKey.key,s.code):false:Sn(s.key,s.code);if($()){if(k){if(V())return;Ee();}else !d&&F&&Te!==null&&(window.clearTimeout(Te),Te=null);return}if(F||k){if(V())return;Ee();}},{signal:ve,capture:true}),window.addEventListener("mousemove",s=>{Ln(false),!Ke(s,"data-react-grab-ignore-events")&&Wr(s.clientX,s.clientY);},{signal:ve}),window.addEventListener("mousedown",s=>{if(Ke(s,"data-react-grab-ignore-events"))return;if(de()){jn();return}Zr(s.clientX,s.clientY)&&(s.preventDefault(),s.stopPropagation());},{signal:ve,capture:true}),window.addEventListener("pointerdown",s=>{!Oe()||Y()||de()||Ke(s,"data-react-grab-ignore-events")||s.stopPropagation();},{signal:ve,capture:true}),window.addEventListener("mouseup",s=>{Jr(s.clientX,s.clientY);},{signal:ve}),window.addEventListener("touchmove",s=>{s.touches.length!==0&&(Ln(true),!Ke(s,"data-react-grab-ignore-events")&&Wr(s.touches[0].clientX,s.touches[0].clientY));},{signal:ve,passive:true}),window.addEventListener("touchstart",s=>{if(s.touches.length===0||(Ln(true),Ke(s,"data-react-grab-ignore-events")))return;if(de()){jn();return}Zr(s.touches[0].clientX,s.touches[0].clientY)&&s.preventDefault();},{signal:ve,passive:false}),window.addEventListener("touchend",s=>{s.changedTouches.length!==0&&Jr(s.changedTouches[0].clientX,s.changedTouches[0].clientY);},{signal:ve}),window.addEventListener("click",s=>{Ke(s,"data-react-grab-ignore-events")||(Oe()||Y()||ce())&&(s.preventDefault(),s.stopPropagation(),ce()&&xe(false),V()&&!Y()&&(u()?K(false):Ee()));},{signal:ve,capture:true}),document.addEventListener("visibilitychange",()=>{document.hidden&&(H([]),$()&&!de()&&Jt!==null&&Date.now()-Jt>500&&Ee());},{signal:ve}),window.addEventListener("scroll",()=>{Ye(s=>s+1);},{signal:ve,capture:true}),window.addEventListener("resize",()=>{Ye(s=>s+1);},{signal:ve}),document.addEventListener("copy",s=>{de()||Ke(s,"data-react-grab-ignore-events")||(Oe()||Y())&&s.preventDefault();},{signal:ve,capture:true});let tn=null;document.addEventListener("selectionchange",()=>{if(Oe())return;tn!==null&&window.clearTimeout(tn),Wt(false);let s=window.getSelection();if(!s||s.isCollapsed||s.rangeCount===0){Zt();return}tn=window.setTimeout(()=>{tn=null;let d=window.getSelection();if(!d||d.isCollapsed||d.rangeCount===0)return;let h=d.getRangeAt(0),C=h.getBoundingClientRect();if(C.width===0&&C.height===0)return;let k=(()=>{if(!d.anchorNode||!d.focusNode)return false;let mt=d.anchorNode.compareDocumentPosition(d.focusNode);return mt&Node.DOCUMENT_POSITION_FOLLOWING?false:mt&Node.DOCUMENT_POSITION_PRECEDING?true:d.anchorOffset>d.focusOffset})(),F=h.getClientRects();if(F.length===0)return;let B=k?F[0]:F[F.length-1],Z=k?B.left:B.right,Re=B.top+B.height/2;if(No(Z,Re)){Zt();return}In(Z),$n(Re);let Me=h.commonAncestorContainer,It=Me.nodeType===Node.ELEMENT_NODE?Me:Me.parentElement;It&&Tt(It)?(Fn([It]),Wt(true)):Fn([]);},150);},{signal:ve}),he(()=>{Qr.abort(),ze&&window.clearTimeout(ze),Te&&window.clearTimeout(Te),Ot(),en(),document.body.style.userSelect="",it(null);});let Vn=_o(ko),eo=ae(()=>l().selectionBox.enabled?Oe()&&!v()&&!!fe():false),rs=ae(()=>{let s=fe();if(s)return Xe(s)||void 0}),[os]=an(()=>fe(),async s=>s?await Ue(s)??void 0:void 0),is=ae(()=>!l().elementLabel.enabled||G().length>0?false:Oe()&&!v()&&!!fe()),ss=ae(()=>(Se(),p().map(s=>!s.element||!document.body.contains(s.element)?s:{...s,bounds:ke(s.element)}))),to=ae(()=>l().dragBox.enabled&&Oe()&&Xr()),as=ae(()=>Y()?"processing":"hover"),ls=ae(()=>!l().elementLabel.enabled||de()?false:Y()?true:G().length>0?false:Oe()&&!v()&&!!fe()),no=ae(()=>l().crosshair.enabled&&Oe()&&!v()&&!Di()&&!Ir()),cs=ae(()=>l().grabbedBoxes.enabled);return ne(we(l,s=>{s.hue!==0?Vn.style.filter=`hue-rotate(${s.hue}deg)`:Vn.style.filter="";})),l().enabled&&So(()=>M(Qo,{get selectionVisible(){return eo()},get selectionBounds(){return Kr()},get selectionFilePath(){return Rr()},get selectionLineNumber(){return Lr()},get selectionTagName(){return rs()},get selectionComponentName(){return os()},get selectionLabelVisible(){return is()},get selectionLabelStatus(){return te()},get labelInstances(){return ss()},get dragVisible(){return to()},get dragBounds(){return qe()},get grabbedBoxes(){return be(()=>!!cs())()?D():[]},labelZIndex:2147483647,get mouseX(){return zn().x},get mouseY(){return zn().y},get crosshairVisible(){return no()},get inputValue(){return _r()},get isInputExpanded(){return Pr()},get hasAgent(){return qt()},get agentSessions(){return _e.sessions()},onAbortSession:s=>_e.abortSession(s),onInputChange:Ji,onInputSubmit:()=>void Qi(),onInputCancel:jn,onToggleExpand:es,get nativeSelectionCursorVisible(){return $r()},get nativeSelectionCursorX(){return On()},get nativeSelectionCursorY(){return Pn()},get nativeSelectionTagName(){return Fr()},get nativeSelectionComponentName(){return Br()},get nativeSelectionBounds(){return Bn()},onNativeSelectionCopy:()=>void ts(),onNativeSelectionEnter:ns,get theme(){return l()}}),Vn),qt()&&_e.tryResumeSessions(),{activate:()=>{$()||(K(true),st());},deactivate:()=>{$()&&Ee();},toggle:()=>{$()?Ee():(K(true),st());},isActive:()=>$(),dispose:()=>{Ar=false,a();},copyElement:async s=>{let d=Array.isArray(s)?s:[s];if(d.length===0)return false;await r.onBeforeCopy?.(d);let h=await Dn(d);return r.onAfterCopy?.(d,h),h},getState:()=>({isActive:$(),isDragging:v(),isCopying:Y(),isInputMode:de(),targetElement:fe(),dragBounds:qe()?{x:qe().x,y:qe().y,width:qe().width,height:qe().height}:null}),updateTheme:s=>{let d=l(),h=Li(d,s);c(h);},getTheme:()=>l(),setAgent:s=>{let d=_e.getOptions(),h={...d,...s,provider:s.provider??d?.provider,onAbort:(C,k)=>{if(s?.onAbort?.(C,k),k&&document.contains(k)){let F=k.getBoundingClientRect(),B=F.top+F.height/2;T(C.position.x),x(B),_t(k),Nt(C.context.prompt),rt(true),$e(true),K(true),nt(true),$()||st();}}};_e.setOptions(h),Hi(!!h.provider),_e.tryResumeSessions();}}}))};var ft=null,am=()=>typeof window>"u"?ft:window.__REACT_GRAB__??ft??null,lm=e=>{ft=e,typeof window<"u"&&(e?window.__REACT_GRAB__=e:delete window.__REACT_GRAB__);};typeof window<"u"&&(window.__REACT_GRAB__?ft=window.__REACT_GRAB__:(ft=Nr(),window.__REACT_GRAB__=ft,window.dispatchEvent(new CustomEvent("react-grab:init",{detail:ft}))));/*! Bundled license information:
43
+ ${F}`:F;S=D,h=vn(D);}}return r.onAfterCopy?.(s,h),h},Hn=async(s,d)=>{let h=d?"input-submit":"copy";r.onElementSelect?.(s),l().grabbedBoxes.enabled&&Hr(ke(s),s),await new Promise(k=>requestAnimationFrame(k)),await Bn([s],d)&&l().successLabels.enabled&&zr(Vi(s),h),jr([s]);},Ur=async s=>{if(s.length===0)return;for(let h of s)r.onElementSelect?.(h);if(l().grabbedBoxes.enabled)for(let h of s)Hr(ke(h),h);await new Promise(h=>requestAnimationFrame(h)),await Bn(s)&&l().successLabels.enabled&&zr(`${s.length} elements`,"copy"),jr(s);},fe=ae(()=>{if(!Oe()||v())return null;let s=A();return s&&!document.contains(s)?null:s});ne(()=>{let s=A();if(!s)return;let d=setInterval(()=>{document.contains(s)||P(null);},100);ge(()=>clearInterval(d));}),ne(()=>{let s=fe();s&&_t(s);});let Kr=ae(()=>{Ce();let s=fe();if(s)return ke(s)}),Yr=(s,d)=>{let h=s+window.scrollX,S=d+window.scrollY;return {x:Math.abs(h-z()),y:Math.abs(S-j())}},Xr=ae(()=>{if(!v())return false;let s=Yr(g(),w());return s.x>2||s.y>2}),qr=(s,d)=>{let h=s+window.scrollX,S=d+window.scrollY,k=Math.min(z(),h),F=Math.min(j(),S),D=Math.abs(h-z()),Z=Math.abs(S-j());return {x:k-window.scrollX,y:F-window.scrollY,width:D,height:Z}},qe=ae(()=>{if(!Xr())return;let s=qr(g(),w());return {borderRadius:"0px",height:s.height,transform:"none",width:s.width,x:s.x,y:s.y}}),[Xi]=an(()=>fe(),async s=>s?Ue(s):null),qi=ae(()=>{let s=fe(),d=Y();if(!s)return (()=>{var k=Di();return J(k,d?"Please wait\u2026":"1 element"),k})();let h=Xe(s),S=Xi();return h&&S?[(()=>{var k=Bi(),F=k.firstChild,D=F.nextSibling;D.nextSibling;return J(k,h,D),k})(),(()=>{var k=Kl();k.firstChild;return J(k,S,null),k})()]:h?(()=>{var k=Bi(),F=k.firstChild,D=F.nextSibling;D.nextSibling;return J(k,h,D),k})():(()=>{var k=Di();return J(k,d?"Please wait\u2026":"1 element"),k})()}),zn=ae(()=>{if(Y()||Pr()){Ce();let s=Xt()||fe();if(s){let d=ke(s);return {x:d.x+d.width/2+He(),y:At()}}return {x:Pe(),y:At()}}return {x:g(),y:w()}});ne(we(()=>[fe(),f()],([s,d])=>{d&&s&&d!==s&&_(null),s&&r.onElementHover?.(s);})),ne(we(()=>fe(),s=>{let d=()=>{Mr(void 0),Or(void 0);};if(!s){d();return}Et(s).then(h=>{if(h){for(let S of h)if(S.fileName&&xn(S.fileName)){Mr(Kt(S.fileName)),Or(S.lineNumber);return}d();}}).catch(d);})),ne(we(()=>Ce(),()=>{let s=B();if(s.length===0)return;let d=s.map(h=>({...h,bounds:ke(h.element)}));H(d);})),ne(we(()=>Ce(),()=>_e.updateSessionBoundsOnViewportChange())),ne(we(()=>[$(),v(),Y(),de(),fe(),qe()],([s,d,h,S,k,F])=>{r.onStateChange?.({isActive:s,isDragging:d,isCopying:h,isInputMode:S,targetElement:k,dragBounds:F?{x:F.x,y:F.y,width:F.width,height:F.height}:null});})),ne(we(()=>[de(),g(),w(),fe()],([s,d,h,S])=>{r.onInputModeChange?.(s,{x:d,y:h,targetElement:S});})),ne(we(()=>[eo(),Kr(),fe()],([s,d,h])=>{r.onSelectionBox?.(!!s,d??null,h);})),ne(we(()=>[to(),qe()],([s,d])=>{r.onDragBox?.(!!s,d??null);})),ne(we(()=>[no(),g(),w()],([s,d,h])=>{r.onCrosshair?.(!!s,{x:d,y:h});})),ne(we(()=>[cs(),ls(),qi(),zn()],([s,d,h,S])=>{let k=typeof h=="string"?h:"";r.onElementLabel?.(!!s,d,{x:S.x,y:S.y,content:k});}));let We=null,it=s=>{s?(We||(We=document.createElement("style"),We.setAttribute("data-react-grab-cursor",""),document.head.appendChild(We)),We.textContent=`* { cursor: ${s} !important; }`):We&&(We.remove(),We=null);};ne(we(()=>[$(),Y(),v(),de(),fe()],([s,d,h,S,k])=>{it(d?"progress":S?null:s&&h?"crosshair":s&&k?"default":s?"crosshair":null);}));let Wi=s=>{let d=Date.now(),h=r.keyHoldDuration;L(d);let S=()=>{let k=X();if(k===null)return;let D=(Date.now()-k)/h,Z=1-Math.exp(-D);(Y()?Math.min(Z,.95):1)<1&&(Qt=requestAnimationFrame(S));};S();},en=()=>{Qt!==null&&(cancelAnimationFrame(Qt),Qt=null),L(null);},Zi=()=>{let s=()=>{if(!v()){Ot();return}let d=Br(g(),w());d.top&&window.scrollBy(0,-10),d.bottom&&window.scrollBy(0,10),d.left&&window.scrollBy(-10,0),d.right&&window.scrollBy(10,0),d.top||d.bottom||d.left||d.right?ot=requestAnimationFrame(s):ot=null;};s();},Ot=()=>{ot!==null&&(cancelAnimationFrame(ot),ot=null);},st=()=>{en(),Mt=document.activeElement,Jt=Date.now(),ee(true),r.onActivate?.();},Ee=()=>{K(false),b(false),ee(false),$e(false),Nt(""),nt(false),rt(false),_t(null),y("idle"),v()&&(N(false),document.body.style.userSelect=""),ze&&window.clearTimeout(ze),Te&&window.clearTimeout(Te),Ot(),en(),Jt=null,Mt instanceof HTMLElement&&document.contains(Mt)&&Mt.focus(),Mt=null,r.onDeactivate?.();},Ji=r.agent?{...r.agent,onAbort:(s,d)=>{if(r.agent?.onAbort?.(s,d),d&&document.contains(d)){let h=d.getBoundingClientRect(),S=h.top+h.height/2;T(s.position.x),x(S),_t(d),Nt(s.context.prompt),rt(true),$e(true),K(true),nt(true),$()||st();}}}:void 0,_e=$i(Ji),Qi=s=>{Nt(s);},es=()=>{let s=Xt()||fe(),d=de()?_r().trim():"";if(!s){Ee();return}let h=ke(s),S=g(),k=h.x+h.width/2,F=h.y+h.height/2;if(T(k),x(F),qt()&&d){Ee(),_e.startSession({element:s,prompt:d,position:{x:S,y:F},selectionBounds:h});return}$e(false),Nt("");let D=Xe(s);Ue(s).then(Z=>{Lt(k,F,()=>Hn(s,d||void 0),h,D,Z??void 0,s).then(()=>{Ee();});});},jn=()=>{de()&&Ee();},ts=()=>{let s=Xt()||fe();if(s){let d=ke(s),h=d.x+d.width/2;Be(g()),tt(w()),he(g()-h);}K(true),nt(true),rt(true),$e(true);},ns=async()=>{let s=Rt();if(s.length===0)return;let d=On(),h=Pn(),S=Dn(),k=Fr();Wt(false),Zt(),window.getSelection()?.removeAllRanges();let F=Dr();s.length===1?await Lt(d,h,()=>Hn(s[0]),S,k,F):await Lt(d,h,()=>Ur(s),S,k,F);},rs=()=>{if(Rt().length===0)return;let d=Dn(),h=d?d.x+d.width/2:On(),S=d?d.y+d.height/2:Pn();Wt(false),Zt(),window.getSelection()?.removeAllRanges(),T(h),x(S),K(true),nt(true),rt(true),st(),$e(true);},Wr=(s,d)=>{if(de()||Ir())return;T(s),x(d);let h=performance.now();if(h-E>=32&&(E=h,Yl(()=>{let S=vr(s,d);P(S);})),v()){let S=Br(s,d),k=S.top||S.bottom||S.left||S.right;k&&ot===null?Zi():!k&&ot!==null&&Ot();}},Zr=(s,d)=>{if(!Oe()||Y())return false;N(true);let h=s+window.scrollX,S=d+window.scrollY;return I(h),W(S),document.body.style.userSelect="none",r.onDragStart?.(h,S),true},Jr=(s,d)=>{if(!v())return;let h=Yr(s,d),S=h.x>2||h.y>2;if(N(false),Ot(),document.body.style.userSelect="",S){xe(true);let k=qr(s,d),F=Ni(k,Tt),D=F.length>0?F:_i(k,Tt);if(D.length>0){r.onDragEnd?.(D,k);let Z=D[0],Re=Z.getBoundingClientRect(),Me={x:Re.left,y:Re.top,width:Re.width,height:Re.height,borderRadius:"0px",transform:Sn(Z)},It=Xe(Z);if(qt()){let mt=Me.x+Me.width/2,ds=Me.y+Me.height/2;T(mt),x(ds),_t(Z),K(true),nt(true),rt(true),$e(true);}else Ue(Z).then(mt=>{Lt(s,d,()=>Ur(D),Me,It,mt??void 0,Z);});}}else {let k=vr(s,d);if(!k)return;_(k);let F=ke(k),D=Xe(k);Ue(k).then(Z=>{Lt(s,d,()=>Hn(k),F,D,Z??void 0,k);});}},Qr=new AbortController,ve=Qr.signal;window.addEventListener("keydown",s=>{if(de()||Ke(s,"data-react-grab-ignore-events")){s.key==="Escape"&&_e.isProcessing()&&_e.abortAllSessions();return}if(s.key==="Escape"){if(_e.isProcessing()){_e.abortAllSessions();return}if(u()){Ee();return}}if(s.key==="Enter"&&u()&&!de()){s.preventDefault(),s.stopPropagation();let d=Xt()||fe();if(d){let h=ke(d),S=h.x+h.width/2;Be(g()),tt(w()),he(g()-S);}K(true),nt(true),rt(true),Te!==null&&(window.clearTimeout(Te),Te=null),$()||(ze&&window.clearTimeout(ze),st()),$e(true);return}if(s.key.toLowerCase()==="o"&&!de()&&$()&&(s.metaKey||s.ctrlKey)){let d=Rr(),h=Lr();if(d)if(s.preventDefault(),s.stopPropagation(),r.onOpenFile)r.onOpenFile(d,h);else {let S=fn(d,h);window.open(S,"_blank");}return}if(!(!r.allowActivationInsideInput&&To(s))&&!(!Mi(s,r)&&($()&&!V()&&(s.metaKey||s.ctrlKey)&&!mn.includes(s.key)&&s.key!=="Enter"&&Ee(),s.key!=="Enter"))){if(($()||u())&&!de()&&s.preventDefault(),$()){if(V()||s.repeat)return;Te!==null&&window.clearTimeout(Te),Te=window.setTimeout(()=>{Ee();},200);return}u()&&s.repeat||(ze!==null&&window.clearTimeout(ze),u()||b(true),ze=window.setTimeout(()=>{st();},r.keyHoldDuration));}},{signal:ve,capture:true}),window.addEventListener("keyup",s=>{if(!u()&&!$()||de())return;let d=!!(r.activationShortcut||r.activationKey),S=(()=>{if(r.activationKey){let{metaKey:D,ctrlKey:Z,shiftKey:Re,altKey:Me}=r.activationKey;return {metaKey:!!D,ctrlKey:!!Z,shiftKey:!!Re,altKey:!!Me}}return {metaKey:true,ctrlKey:true,shiftKey:false,altKey:false}})(),k=S.metaKey||S.ctrlKey?!s.metaKey&&!s.ctrlKey:S.shiftKey&&!s.shiftKey||S.altKey&&!s.altKey,F=r.activationShortcut?!r.activationShortcut(s):r.activationKey?r.activationKey.key?s.key.toLowerCase()===r.activationKey.key.toLowerCase()||Sr(r.activationKey.key,s.code):false:Cn(s.key,s.code);if($()){if(k){if(V())return;Ee();}else !d&&F&&Te!==null&&(window.clearTimeout(Te),Te=null);return}if(F||k){if(V())return;Ee();}},{signal:ve,capture:true}),window.addEventListener("mousemove",s=>{Ln(false),!Ke(s,"data-react-grab-ignore-events")&&Wr(s.clientX,s.clientY);},{signal:ve}),window.addEventListener("mousedown",s=>{if(Ke(s,"data-react-grab-ignore-events"))return;if(de()){jn();return}Zr(s.clientX,s.clientY)&&(s.preventDefault(),s.stopPropagation());},{signal:ve,capture:true}),window.addEventListener("pointerdown",s=>{!Oe()||Y()||de()||Ke(s,"data-react-grab-ignore-events")||s.stopPropagation();},{signal:ve,capture:true}),window.addEventListener("mouseup",s=>{Jr(s.clientX,s.clientY);},{signal:ve}),window.addEventListener("touchmove",s=>{s.touches.length!==0&&(Ln(true),!Ke(s,"data-react-grab-ignore-events")&&Wr(s.touches[0].clientX,s.touches[0].clientY));},{signal:ve,passive:true}),window.addEventListener("touchstart",s=>{if(s.touches.length===0||(Ln(true),Ke(s,"data-react-grab-ignore-events")))return;if(de()){jn();return}Zr(s.touches[0].clientX,s.touches[0].clientY)&&s.preventDefault();},{signal:ve,passive:false}),window.addEventListener("touchend",s=>{s.changedTouches.length!==0&&Jr(s.changedTouches[0].clientX,s.changedTouches[0].clientY);},{signal:ve}),window.addEventListener("click",s=>{Ke(s,"data-react-grab-ignore-events")||(Oe()||Y()||ce())&&(s.preventDefault(),s.stopPropagation(),ce()&&xe(false),V()&&!Y()&&(u()?K(false):Ee()));},{signal:ve,capture:true}),document.addEventListener("visibilitychange",()=>{document.hidden&&(H([]),$()&&!de()&&Jt!==null&&Date.now()-Jt>500&&Ee());},{signal:ve}),window.addEventListener("scroll",()=>{Ye(s=>s+1);},{signal:ve,capture:true}),window.addEventListener("resize",()=>{Ye(s=>s+1);},{signal:ve}),document.addEventListener("copy",s=>{de()||Ke(s,"data-react-grab-ignore-events")||(Oe()||Y())&&s.preventDefault();},{signal:ve,capture:true});let tn=null;document.addEventListener("selectionchange",()=>{if(Oe())return;tn!==null&&window.clearTimeout(tn),Wt(false);let s=window.getSelection();if(!s||s.isCollapsed||s.rangeCount===0){Zt();return}tn=window.setTimeout(()=>{tn=null;let d=window.getSelection();if(!d||d.isCollapsed||d.rangeCount===0)return;let h=d.getRangeAt(0),S=h.getBoundingClientRect();if(S.width===0&&S.height===0)return;let k=(()=>{if(!d.anchorNode||!d.focusNode)return false;let mt=d.anchorNode.compareDocumentPosition(d.focusNode);return mt&Node.DOCUMENT_POSITION_FOLLOWING?false:mt&Node.DOCUMENT_POSITION_PRECEDING?true:d.anchorOffset>d.focusOffset})(),F=h.getClientRects();if(F.length===0)return;let D=k?F[0]:F[F.length-1],Z=k?D.left:D.right,Re=D.top+D.height/2;if(No(Z,Re)){Zt();return}In(Z),$n(Re);let Me=h.commonAncestorContainer,It=Me.nodeType===Node.ELEMENT_NODE?Me:Me.parentElement;It&&Tt(It)?(Fn([It]),Wt(true)):Fn([]);},150);},{signal:ve}),ge(()=>{Qr.abort(),ze&&window.clearTimeout(ze),Te&&window.clearTimeout(Te),Ot(),en(),document.body.style.userSelect="",it(null);});let Vn=_o(ko),eo=ae(()=>l().selectionBox.enabled?Oe()&&!v()&&!!fe():false),os=ae(()=>{let s=fe();if(s)return Xe(s)||void 0}),[is]=an(()=>fe(),async s=>s?await Ue(s)??void 0:void 0),ss=ae(()=>!l().elementLabel.enabled||G().length>0?false:Oe()&&!v()&&!!fe()),as=ae(()=>(Ce(),p().map(s=>!s.element||!document.body.contains(s.element)?s:{...s,bounds:ke(s.element)}))),to=ae(()=>l().dragBox.enabled&&Oe()&&Xr()),ls=ae(()=>Y()?"processing":"hover"),cs=ae(()=>!l().elementLabel.enabled||de()?false:Y()?true:G().length>0?false:Oe()&&!v()&&!!fe()),no=ae(()=>l().crosshair.enabled&&Oe()&&!v()&&!Hi()&&!Ir()),us=ae(()=>l().grabbedBoxes.enabled);return ne(we(l,s=>{s.hue!==0?Vn.style.filter=`hue-rotate(${s.hue}deg)`:Vn.style.filter="";})),l().enabled&&Co(()=>M(ei,{get selectionVisible(){return eo()},get selectionBounds(){return Kr()},get selectionFilePath(){return Rr()},get selectionLineNumber(){return Lr()},get selectionTagName(){return os()},get selectionComponentName(){return is()},get selectionLabelVisible(){return ss()},get selectionLabelStatus(){return te()},get labelInstances(){return as()},get dragVisible(){return to()},get dragBounds(){return qe()},get grabbedBoxes(){return be(()=>!!us())()?B():[]},labelZIndex:2147483647,get mouseX(){return zn().x},get mouseY(){return zn().y},get crosshairVisible(){return no()},get inputValue(){return _r()},get isInputExpanded(){return Pr()},get hasAgent(){return qt()},get agentSessions(){return _e.sessions()},onAbortSession:s=>_e.abortSession(s),onInputChange:Qi,onInputSubmit:()=>void es(),onInputCancel:jn,onToggleExpand:ts,get nativeSelectionCursorVisible(){return $r()},get nativeSelectionCursorX(){return On()},get nativeSelectionCursorY(){return Pn()},get nativeSelectionTagName(){return Fr()},get nativeSelectionComponentName(){return Dr()},get nativeSelectionBounds(){return Dn()},onNativeSelectionCopy:()=>void ns(),onNativeSelectionEnter:rs,get theme(){return l()}}),Vn),qt()&&_e.tryResumeSessions(),{activate:()=>{$()||(K(true),st());},deactivate:()=>{$()&&Ee();},toggle:()=>{$()?Ee():(K(true),st());},isActive:()=>$(),dispose:()=>{Ar=false,a();},copyElement:async s=>{let d=Array.isArray(s)?s:[s];if(d.length===0)return false;await r.onBeforeCopy?.(d);let h=await Bn(d);return r.onAfterCopy?.(d,h),h},getState:()=>({isActive:$(),isDragging:v(),isCopying:Y(),isInputMode:de(),targetElement:fe(),dragBounds:qe()?{x:qe().x,y:qe().y,width:qe().width,height:qe().height}:null}),updateTheme:s=>{let d=l(),h=Oi(d,s);c(h);},getTheme:()=>l(),setAgent:s=>{let d=_e.getOptions(),h={...d,...s,provider:s.provider??d?.provider,onAbort:(S,k)=>{if(s?.onAbort?.(S,k),k&&document.contains(k)){let F=k.getBoundingClientRect(),D=F.top+F.height/2;T(S.position.x),x(D),_t(k),Nt(S.context.prompt),rt(true),$e(true),K(true),nt(true),$()||st();}}};_e.setOptions(h),zi(!!h.provider),_e.tryResumeSessions();}}}))};var ft=null,lm=()=>typeof window>"u"?ft:window.__REACT_GRAB__??ft??null,cm=e=>{ft=e,typeof window<"u"&&(e?window.__REACT_GRAB__=e:delete window.__REACT_GRAB__);};typeof window<"u"&&(window.__REACT_GRAB__?ft=window.__REACT_GRAB__:(ft=Nr(),window.__REACT_GRAB__=ft,window.dispatchEvent(new CustomEvent("react-grab:init",{detail:ft}))));/*! Bundled license information:
44
44
 
45
45
  bippy/dist/rdt-hook-7WClMTWh.js:
46
46
  (**
@@ -91,4 +91,4 @@ bippy/dist/index.js:
91
91
  * This source code is licensed under the MIT license found in the
92
92
  * LICENSE file in the root directory of this source tree.
93
93
  *)
94
- */exports.DEFAULT_THEME=En;exports.formatElementInfo=kt;exports.generateSnippet=Nn;exports.getGlobalApi=am;exports.getStack=Et;exports.init=Nr;exports.isInstrumentationActive=St;exports.setGlobalApi=lm;return exports;})({});
94
+ */exports.DEFAULT_THEME=En;exports.formatElementInfo=kt;exports.generateSnippet=Nn;exports.getGlobalApi=lm;exports.getStack=Et;exports.init=Nr;exports.isInstrumentationActive=Ct;exports.setGlobalApi=cm;return exports;})({});
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { init } from './chunk-6DG5DJMI.js';
2
- export { DEFAULT_THEME, getElementContext as formatElementInfo, generateSnippet, getStack, init, Ee as isInstrumentationActive } from './chunk-6DG5DJMI.js';
1
+ import { init } from './chunk-UIOO5VVO.js';
2
+ export { DEFAULT_THEME, getElementContext as formatElementInfo, generateSnippet, getStack, init, Ee as isInstrumentationActive } from './chunk-UIOO5VVO.js';
3
3
 
4
4
  /**
5
5
  * @license MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-grab",
3
- "version": "0.0.68",
3
+ "version": "0.0.70",
4
4
  "description": "Grab any element in your app and give it to Cursor, Claude Code, or other AI coding agents.",
5
5
  "keywords": [
6
6
  "react",