react-grab 0.0.20 → 0.0.23
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/dist/index.cjs +931 -1074
- package/dist/index.d.cts +1 -46
- package/dist/index.d.ts +1 -46
- package/dist/index.global.js +54 -26
- package/dist/index.js +932 -1073
- package/package.json +11 -21
- package/dist/plugins/vite.cjs +0 -46
- package/dist/plugins/vite.d.cts +0 -14
- package/dist/plugins/vite.d.ts +0 -14
- package/dist/plugins/vite.js +0 -44
package/dist/index.d.cts
CHANGED
|
@@ -1,47 +1,2 @@
|
|
|
1
|
-
interface StoreApi<T> {
|
|
2
|
-
getInitialState(): T;
|
|
3
|
-
getState(): T;
|
|
4
|
-
setState(partialState: ((prevState: T) => T) | Partial<T>): T;
|
|
5
|
-
subscribe(listener: Listener<T>): () => void;
|
|
6
|
-
subscribe<U>(listener: Listener<U>, selector: (state: T) => unknown): () => void;
|
|
7
|
-
}
|
|
8
|
-
type Listener<T> = (state: T, prevState: T | undefined) => (() => unknown) | void;
|
|
9
1
|
|
|
10
|
-
|
|
11
|
-
name: string;
|
|
12
|
-
open: (promptText: string) => void;
|
|
13
|
-
}
|
|
14
|
-
declare const cursorAdapter: Adapter;
|
|
15
|
-
|
|
16
|
-
type Hotkey = KeyboardEvent["key"];
|
|
17
|
-
|
|
18
|
-
interface Options {
|
|
19
|
-
/**
|
|
20
|
-
* adapter to open the prompt in an external tool
|
|
21
|
-
*/
|
|
22
|
-
adapter?: Adapter;
|
|
23
|
-
enabled?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* hotkey to trigger the overlay
|
|
26
|
-
*
|
|
27
|
-
* default: ["Meta", "C"] on macOS, ["Control", "C"] on Windows/Linux
|
|
28
|
-
*/
|
|
29
|
-
hotkey?: Hotkey | Hotkey[];
|
|
30
|
-
/**
|
|
31
|
-
* time required (ms) to hold the key to trigger the overlay
|
|
32
|
-
*
|
|
33
|
-
* default: 500
|
|
34
|
-
*/
|
|
35
|
-
keyHoldDuration?: number;
|
|
36
|
-
}
|
|
37
|
-
interface LibStore {
|
|
38
|
-
keyPressTimestamps: Map<Hotkey, number>;
|
|
39
|
-
mouseX: number;
|
|
40
|
-
mouseY: number;
|
|
41
|
-
overlayMode: "copying" | "hidden" | "visible";
|
|
42
|
-
pressedKeys: Set<Hotkey>;
|
|
43
|
-
}
|
|
44
|
-
declare const libStore: StoreApi<LibStore>;
|
|
45
|
-
declare const init: (options?: Options) => (() => void) | undefined;
|
|
46
|
-
|
|
47
|
-
export { type Adapter, type Options, cursorAdapter, init, libStore };
|
|
2
|
+
export { }
|
package/dist/index.d.ts
CHANGED
|
@@ -1,47 +1,2 @@
|
|
|
1
|
-
interface StoreApi<T> {
|
|
2
|
-
getInitialState(): T;
|
|
3
|
-
getState(): T;
|
|
4
|
-
setState(partialState: ((prevState: T) => T) | Partial<T>): T;
|
|
5
|
-
subscribe(listener: Listener<T>): () => void;
|
|
6
|
-
subscribe<U>(listener: Listener<U>, selector: (state: T) => unknown): () => void;
|
|
7
|
-
}
|
|
8
|
-
type Listener<T> = (state: T, prevState: T | undefined) => (() => unknown) | void;
|
|
9
1
|
|
|
10
|
-
|
|
11
|
-
name: string;
|
|
12
|
-
open: (promptText: string) => void;
|
|
13
|
-
}
|
|
14
|
-
declare const cursorAdapter: Adapter;
|
|
15
|
-
|
|
16
|
-
type Hotkey = KeyboardEvent["key"];
|
|
17
|
-
|
|
18
|
-
interface Options {
|
|
19
|
-
/**
|
|
20
|
-
* adapter to open the prompt in an external tool
|
|
21
|
-
*/
|
|
22
|
-
adapter?: Adapter;
|
|
23
|
-
enabled?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* hotkey to trigger the overlay
|
|
26
|
-
*
|
|
27
|
-
* default: ["Meta", "C"] on macOS, ["Control", "C"] on Windows/Linux
|
|
28
|
-
*/
|
|
29
|
-
hotkey?: Hotkey | Hotkey[];
|
|
30
|
-
/**
|
|
31
|
-
* time required (ms) to hold the key to trigger the overlay
|
|
32
|
-
*
|
|
33
|
-
* default: 500
|
|
34
|
-
*/
|
|
35
|
-
keyHoldDuration?: number;
|
|
36
|
-
}
|
|
37
|
-
interface LibStore {
|
|
38
|
-
keyPressTimestamps: Map<Hotkey, number>;
|
|
39
|
-
mouseX: number;
|
|
40
|
-
mouseY: number;
|
|
41
|
-
overlayMode: "copying" | "hidden" | "visible";
|
|
42
|
-
pressedKeys: Set<Hotkey>;
|
|
43
|
-
}
|
|
44
|
-
declare const libStore: StoreApi<LibStore>;
|
|
45
|
-
declare const init: (options?: Options) => (() => void) | undefined;
|
|
46
|
-
|
|
47
|
-
export { type Adapter, type Options, cursorAdapter, init, libStore };
|
|
2
|
+
export { }
|
package/dist/index.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
(function(){'use strict';/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2025 Aiden Bai
|
|
@@ -6,36 +6,44 @@ 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 be={name:"cursor",open:t=>{if(!t)return;let e=new URL("cursor://anysphere.cursor-deeplink/prompt");e.searchParams.set("text",t),window.open(e.toString(),"_blank");}};var Gt=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"],Ut=t=>!!t.tagName&&!t.tagName.startsWith("-")&&t.tagName.includes("-"),zt=t=>Array.isArray(t),Bt=(t,e=false)=>{let{composed:n,target:r}=t,l,i;if(r instanceof HTMLElement&&Ut(r)&&n){let s=t.composedPath()[0];s instanceof HTMLElement&&(l=s.tagName,i=s.role);}else r instanceof HTMLElement&&(l=r.tagName,i=r.role);return zt(e)?!!(l&&e&&e.some(o=>typeof l=="string"&&o.toLowerCase()===l.toLowerCase()||o===i)):!!(l&&e&&e)},Vt=t=>Bt(t,Gt),We=()=>{let t=l=>{Vt(l)||l.code!==void 0&&x.setState(i=>{let o=new Map(i.keyPressTimestamps);return i.pressedKeys.has(l.key)||o.set(l.key,Date.now()),{...i,keyPressTimestamps:o,pressedKeys:new Set([l.key,...i.pressedKeys])}});},e=l=>{l.code!==void 0&&x.setState(i=>{let o=new Map(i.keyPressTimestamps);return o.delete(l.key),{...i,keyPressTimestamps:o,pressedKeys:new Set([...i.pressedKeys].filter(s=>s!==l.key))}});},n=()=>{x.setState(l=>({...l,keyPressTimestamps:new Map,pressedKeys:new Set}));},r=()=>{x.setState(l=>({...l,keyPressTimestamps:new Map,pressedKeys:new Set}));};return document.addEventListener("keydown",t),document.addEventListener("keyup",e),window.addEventListener("blur",n),window.addEventListener("contextmenu",r),()=>{document.removeEventListener("keydown",t),document.removeEventListener("keyup",e),window.removeEventListener("blur",n),window.removeEventListener("contextmenu",r);}},Ce=t=>{let{pressedKeys:e}=x.getState();return t.length===1?e.has(t.toLowerCase())||e.has(t.toUpperCase()):e.has(t)},Ke=(t,e,n)=>{let r=null,l=null,i=Date.now(),o=()=>{r!==null&&(clearTimeout(r),r=null),l!==null&&(l(),l=null);},s=(y,g)=>y.length===1?g.has(y.toLowerCase())||g.has(y.toUpperCase()):g.has(y),c=y=>Array.isArray(t)?t.every(g=>s(g,y)):s(t,y),u=()=>{let y=x.getState(),{pressedKeys:g}=y;if(!c(g)){r!==null&&(clearTimeout(r),r=null);return}let p=Date.now()-i,a=e-p;if(a<=0){n(),o();return}r!==null&&clearTimeout(r),r=setTimeout(()=>{n(),o();},a);};return l=x.subscribe(()=>{u();},y=>y.pressedKeys),u(),o};var Qe="0.3.34",ce=`bippy-${Qe}`,Ye=Object.defineProperty,qt=Object.prototype.hasOwnProperty,ee=()=>{},Ze=t=>{try{Function.prototype.toString.call(t).indexOf("^_^")>-1&&setTimeout(()=>{throw new 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{}},Je=(t=q())=>"getFiberRoots"in t,et=false,Xe,we=(t=q())=>et?true:(typeof t.inject=="function"&&(Xe=t.inject.toString()),!!Xe?.includes("(injected)")),ae=new Set,Y=new Set,tt=t=>{let e=new Map,n=0,r={_instrumentationIsActive:false,_instrumentationSource:ce,checkDCE:Ze,hasUnsupportedRendererAttached:false,inject(l){let i=++n;return e.set(i,l),Y.add(l),r._instrumentationIsActive||(r._instrumentationIsActive=true,ae.forEach(o=>o())),i},on:ee,onCommitFiberRoot:ee,onCommitFiberUnmount:ee,onPostCommitFiberRoot:ee,renderers:e,supportsFiber:true,supportsFlight:true};try{Ye(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!0,enumerable:!0,get(){return r},set(o){if(o&&typeof o=="object"){let s=r.renderers;r=o,s.size>0&&(s.forEach((c,u)=>{Y.add(c),o.renderers.set(u,c);}),le(t));}}});let l=window.hasOwnProperty,i=!1;Ye(window,"hasOwnProperty",{configurable:!0,value:function(...o){try{if(!i&&o[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,i=!0,-0}catch{}return l.apply(this,o)},writable:!0});}catch{le(t);}return r},le=t=>{t&&ae.add(t);try{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!e)return;if(!e._instrumentationSource){let n=Je();if(e.checkDCE=Ze,e.supportsFiber=!0,e.supportsFlight=!0,e.hasUnsupportedRendererAttached=!1,e._instrumentationSource=ce,e._instrumentationIsActive=!1,n||(e.on=ee),e.renderers.size){e._instrumentationIsActive=!0,ae.forEach(l=>l());return}let r=e.inject;we(e)&&!n&&(et=!0,e.inject({scheduleRefresh(){}})&&(e._instrumentationIsActive=!0)),e.inject=l=>{let i=r(l);return Y.add(l),e._instrumentationIsActive=!0,ae.forEach(o=>o()),i};}(e.renderers.size||e._instrumentationIsActive||we())&&t?.();}catch{}},nt=()=>qt.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),q=t=>nt()?(le(t),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):tt(t),rt=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),ot=()=>{try{rt()&&q();}catch{}},ue=0,te=1;var de=5;var fe=11,Ee=13,it=14,pe=15,Te=16;var Le=19;var me=26,he=27,Me=28,Re=30;var Ae=t=>{switch(t.tag){case de:case me:case he:return true;default:return typeof t.type=="string"}},xe=t=>{switch(t.tag){case te:case fe:case ue:case it:case pe:return true;default:return false}};function Oe(t,e,n=false){return t&&e(t)instanceof Promise?Ne(t,e,n):Fe(t,e,n)}var Fe=(t,e,n=false)=>{if(!t)return null;if(e(t)===true)return t;let r=n?t.return:t.child;for(;r;){let l=Fe(r,e,n);if(l)return l;r=n?null:r.sibling;}return null},Ne=async(t,e,n=false)=>{if(!t)return null;if(await e(t)===true)return t;let r=n?t.return:t.child;for(;r;){let l=await Ne(r,e,n);if(l)return l;r=n?null:r.sibling;}return null};var X=t=>{let e=t;return typeof e=="function"?e:typeof e=="object"&&e?X(e.type||e.render):null},ge=t=>{let e=t;if(typeof e=="string")return e;if(typeof e!="function"&&!(typeof e=="object"&&e))return null;let n=e.displayName||e.name||null;if(n)return n;let r=X(e);return r&&(r.displayName||r.name)||null};var ke=t=>{let e=q(t.onActive);e._instrumentationSource=t.name??ce;let n=e.onCommitFiberRoot;if(t.onCommitFiberRoot){let i=(o,s,c)=>{e.onCommitFiberRoot===i&&(n?.(o,s,c),t.onCommitFiberRoot?.(o,s,c));};e.onCommitFiberRoot=i;}let r=e.onCommitFiberUnmount;if(t.onCommitFiberUnmount){let i=(o,s)=>{e.onCommitFiberUnmount===i&&(r?.(o,s),t.onCommitFiberUnmount?.(o,s));};e.onCommitFiberUnmount=i;}let l=e.onPostCommitFiberRoot;if(t.onPostCommitFiberRoot){let i=(o,s)=>{e.onPostCommitFiberRoot===i&&(l?.(o,s),t.onPostCommitFiberRoot?.(o,s));};e.onPostCommitFiberRoot=i;}return e},Ie=t=>{let e=q();for(let n of e.renderers.values())try{let r=n.findFiberByHostInstance?.(t);if(r)return r}catch{}if(typeof t=="object"&&t!=null){if("_reactRootContainer"in t)return t._reactRootContainer?._internalRoot?.current?.child;for(let n in t)if(n.startsWith("__reactContainer$")||n.startsWith("__reactInternalInstance$")||n.startsWith("__reactFiber"))return t[n]||null}return null},Pe=new Set;ot();var tn=Object.create,st=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,at=Object.getOwnPropertyNames,rn=Object.getPrototypeOf,on=Object.prototype.hasOwnProperty,z=(t,e)=>function(){return e||(0, t[at(t)[0]])((e={exports:{}}).exports,e),e.exports},sn=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(var l=at(e),i=0,o=l.length,s;i<o;i++)s=l[i],!on.call(t,s)&&s!==n&&st(t,s,{get:(c=>e[c]).bind(null,s),enumerable:!(r=nn(e,s))||r.enumerable});return t},an=(t,e,n)=>(n=t!=null?tn(rn(t)):{},sn(st(n,"default",{value:t,enumerable:true}),t)),lt=/^\s*at .*(\S+:\d+|\(native\))/m,ln=/^(eval@)?(\[native code\])?$/;function cn(t,e){return t.match(lt)?un(t,e):dn(t,e)}function ct(t){if(!t.includes(":"))return [t,void 0,void 0];let n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/[()]/g,""));return [n[1],n[2]||void 0,n[3]||void 0]}function ut(t,e){return e&&e.slice!=null?Array.isArray(e.slice)?t.slice(e.slice[0],e.slice[1]):t.slice(0,e.slice):t}function un(t,e){return ut(t.split(`
|
|
10
|
-
|
|
11
|
-
`).filter(r=>!r.match(ln)),e).map(r=>{if(r.includes(" > eval")&&(r=r.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!r.includes("@")&&!r.includes(":"))return {function:r};{let l=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,i=r.match(l),o=i&&i[1]?i[1]:void 0,s=ct(r.replace(l,""));return {function:o,file:s[0],line:s[1]?+s[1]:void 0,col:s[2]?+s[2]:void 0,raw:r}}})}var fn=z({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/base64.js"(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(n){if(0<=n&&n<e.length)return e[n];throw new TypeError("Must be between 0 and 63: "+n)},t.decode=function(n){var r=65,l=90,i=97,o=122,s=48,c=57,u=43,y=47,g=26,p=52;return r<=n&&n<=l?n-r:i<=n&&n<=o?n-i+g:s<=n&&n<=c?n-s+p:n==u?62:n==y?63:-1};}}),dt=z({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.js"(t){var e=fn(),n=5,r=1<<n,l=r-1,i=r;function o(c){return c<0?(-c<<1)+1:(c<<1)+0}function s(c){var u=(c&1)===1,y=c>>1;return u?-y:y}t.encode=function(u){var y="",g,p=o(u);do g=p&l,p>>>=n,p>0&&(g|=i),y+=e.encode(g);while(p>0);return y},t.decode=function(u,y,g){var p=u.length,a=0,f=0,m,d;do{if(y>=p)throw new Error("Expected more digits in base 64 VLQ value.");if(d=e.decode(u.charCodeAt(y++)),d===-1)throw new Error("Invalid base64 digit: "+u.charAt(y-1));m=!!(d&i),d&=l,a=a+(d<<f),f+=n;}while(m);g.value=s(a),g.rest=y;};}}),re=z({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/util.js"(t){function e(v,_,w){if(_ in v)return v[_];if(arguments.length===3)return w;throw new Error('"'+_+'" is a required argument.')}t.getArg=e;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function l(v){var _=v.match(n);return _?{scheme:_[1],auth:_[2],host:_[3],port:_[4],path:_[5]}:null}t.urlParse=l;function i(v){var _="";return v.scheme&&(_+=v.scheme+":"),_+="//",v.auth&&(_+=v.auth+"@"),v.host&&(_+=v.host),v.port&&(_+=":"+v.port),v.path&&(_+=v.path),_}t.urlGenerate=i;var o=32;function s(v){var _=[];return function(w){for(var b=0;b<_.length;b++)if(_[b].input===w){var I=_[0];return _[0]=_[b],_[b]=I,_[0].result}var A=v(w);return _.unshift({input:w,result:A}),_.length>o&&_.pop(),A}}var c=s(function(_){var w=_,b=l(_);if(b){if(!b.path)return _;w=b.path;}for(var I=t.isAbsolute(w),A=[],P=0,F=0;;)if(P=F,F=w.indexOf("/",P),F===-1){A.push(w.slice(P));break}else for(A.push(w.slice(P,F));F<w.length&&w[F]==="/";)F++;for(var D,j=0,F=A.length-1;F>=0;F--)D=A[F],D==="."?A.splice(F,1):D===".."?j++:j>0&&(D===""?(A.splice(F+1,j),j=0):(A.splice(F,2),j--));return w=A.join("/"),w===""&&(w=I?"/":"."),b?(b.path=w,i(b)):w});t.normalize=c;function u(v,_){v===""&&(v="."),_===""&&(_=".");var w=l(_),b=l(v);if(b&&(v=b.path||"/"),w&&!w.scheme)return b&&(w.scheme=b.scheme),i(w);if(w||_.match(r))return _;if(b&&!b.host&&!b.path)return b.host=_,i(b);var I=_.charAt(0)==="/"?_:c(v.replace(/\/+$/,"")+"/"+_);return b?(b.path=I,i(b)):I}t.join=u,t.isAbsolute=function(v){return v.charAt(0)==="/"||n.test(v)};function y(v,_){v===""&&(v="."),v=v.replace(/\/$/,"");for(var w=0;_.indexOf(v+"/")!==0;){var b=v.lastIndexOf("/");if(b<0||(v=v.slice(0,b),v.match(/^([^\/]+:\/)?\/*$/)))return _;++w;}return Array(w+1).join("../")+_.substr(v.length+1)}t.relative=y;var g=function(){var v=Object.create(null);return !("__proto__"in v)}();function p(v){return v}function a(v){return m(v)?"$"+v:v}t.toSetString=g?p:a;function f(v){return m(v)?v.slice(1):v}t.fromSetString=g?p:f;function m(v){if(!v)return false;var _=v.length;if(_<9||v.charCodeAt(_-1)!==95||v.charCodeAt(_-2)!==95||v.charCodeAt(_-3)!==111||v.charCodeAt(_-4)!==116||v.charCodeAt(_-5)!==111||v.charCodeAt(_-6)!==114||v.charCodeAt(_-7)!==112||v.charCodeAt(_-8)!==95||v.charCodeAt(_-9)!==95)return false;for(var w=_-10;w>=0;w--)if(v.charCodeAt(w)!==36)return false;return true}function d(v,_,w){var b=E(v.source,_.source);return b!==0||(b=v.originalLine-_.originalLine,b!==0)||(b=v.originalColumn-_.originalColumn,b!==0||w)||(b=v.generatedColumn-_.generatedColumn,b!==0)||(b=v.generatedLine-_.generatedLine,b!==0)?b:E(v.name,_.name)}t.compareByOriginalPositions=d;function h(v,_,w){var b;return b=v.originalLine-_.originalLine,b!==0||(b=v.originalColumn-_.originalColumn,b!==0||w)||(b=v.generatedColumn-_.generatedColumn,b!==0)||(b=v.generatedLine-_.generatedLine,b!==0)?b:E(v.name,_.name)}t.compareByOriginalPositionsNoSource=h;function S(v,_,w){var b=v.generatedLine-_.generatedLine;return b!==0||(b=v.generatedColumn-_.generatedColumn,b!==0||w)||(b=E(v.source,_.source),b!==0)||(b=v.originalLine-_.originalLine,b!==0)||(b=v.originalColumn-_.originalColumn,b!==0)?b:E(v.name,_.name)}t.compareByGeneratedPositionsDeflated=S;function C(v,_,w){var b=v.generatedColumn-_.generatedColumn;return b!==0||w||(b=E(v.source,_.source),b!==0)||(b=v.originalLine-_.originalLine,b!==0)||(b=v.originalColumn-_.originalColumn,b!==0)?b:E(v.name,_.name)}t.compareByGeneratedPositionsDeflatedNoLine=C;function E(v,_){return v===_?0:v===null?1:_===null?-1:v>_?1:-1}function T(v,_){var w=v.generatedLine-_.generatedLine;return w!==0||(w=v.generatedColumn-_.generatedColumn,w!==0)||(w=E(v.source,_.source),w!==0)||(w=v.originalLine-_.originalLine,w!==0)||(w=v.originalColumn-_.originalColumn,w!==0)?w:E(v.name,_.name)}t.compareByGeneratedPositionsInflated=T;function L(v){return JSON.parse(v.replace(/^\)]}'[^\n]*\n/,""))}t.parseSourceMapInput=L;function M(v,_,w){if(_=_||"",v&&(v[v.length-1]!=="/"&&_[0]!=="/"&&(v+="/"),_=v+_),w){var b=l(w);if(!b)throw new Error("sourceMapURL could not be parsed");if(b.path){var I=b.path.lastIndexOf("/");I>=0&&(b.path=b.path.substring(0,I+1));}_=u(i(b),_);}return c(_)}t.computeSourceURL=M;}}),ft=z({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.js"(t){var e=re(),n=Object.prototype.hasOwnProperty,r=typeof Map<"u";function l(){this._array=[],this._set=r?new Map:Object.create(null);}l.fromArray=function(o,s){for(var c=new l,u=0,y=o.length;u<y;u++)c.add(o[u],s);return c},l.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},l.prototype.add=function(o,s){var c=r?o:e.toSetString(o),u=r?this.has(o):n.call(this._set,c),y=this._array.length;(!u||s)&&this._array.push(o),u||(r?this._set.set(o,y):this._set[c]=y);},l.prototype.has=function(o){if(r)return this._set.has(o);var s=e.toSetString(o);return n.call(this._set,s)},l.prototype.indexOf=function(o){if(r){var s=this._set.get(o);if(s>=0)return s}else {var c=e.toSetString(o);if(n.call(this._set,c))return this._set[c]}throw new Error('"'+o+'" is not in the set.')},l.prototype.at=function(o){if(o>=0&&o<this._array.length)return this._array[o];throw new Error("No element indexed by "+o)},l.prototype.toArray=function(){return this._array.slice()},t.ArraySet=l;}}),pn=z({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.js"(t){var e=re();function n(l,i){var o=l.generatedLine,s=i.generatedLine,c=l.generatedColumn,u=i.generatedColumn;return s>o||s==o&&u>=c||e.compareByGeneratedPositionsInflated(l,i)<=0}function r(){this._array=[],this._sorted=true,this._last={generatedLine:-1,generatedColumn:0};}r.prototype.unsortedForEach=function(i,o){this._array.forEach(i,o);},r.prototype.add=function(i){n(this._last,i)?(this._last=i,this._array.push(i)):(this._sorted=false,this._array.push(i));},r.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=true),this._array},t.MappingList=r;}}),pt=z({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.js"(t){var e=dt(),n=re(),r=ft().ArraySet,l=pn().MappingList;function i(o){o||(o={}),this._file=n.getArg(o,"file",null),this._sourceRoot=n.getArg(o,"sourceRoot",null),this._skipValidation=n.getArg(o,"skipValidation",false),this._ignoreInvalidMapping=n.getArg(o,"ignoreInvalidMapping",false),this._sources=new r,this._names=new r,this._mappings=new l,this._sourcesContents=null;}i.prototype._version=3,i.fromSourceMap=function(s,c){var u=s.sourceRoot,y=new i(Object.assign(c||{},{file:s.file,sourceRoot:u}));return s.eachMapping(function(g){var p={generated:{line:g.generatedLine,column:g.generatedColumn}};g.source!=null&&(p.source=g.source,u!=null&&(p.source=n.relative(u,p.source)),p.original={line:g.originalLine,column:g.originalColumn},g.name!=null&&(p.name=g.name)),y.addMapping(p);}),s.sources.forEach(function(g){var p=g;u!==null&&(p=n.relative(u,g)),y._sources.has(p)||y._sources.add(p);var a=s.sourceContentFor(g);a!=null&&y.setSourceContent(g,a);}),y},i.prototype.addMapping=function(s){var c=n.getArg(s,"generated"),u=n.getArg(s,"original",null),y=n.getArg(s,"source",null),g=n.getArg(s,"name",null);!this._skipValidation&&this._validateMapping(c,u,y,g)===false||(y!=null&&(y=String(y),this._sources.has(y)||this._sources.add(y)),g!=null&&(g=String(g),this._names.has(g)||this._names.add(g)),this._mappings.add({generatedLine:c.line,generatedColumn:c.column,originalLine:u!=null&&u.line,originalColumn:u!=null&&u.column,source:y,name:g}));},i.prototype.setSourceContent=function(s,c){var u=s;this._sourceRoot!=null&&(u=n.relative(this._sourceRoot,u)),c!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[n.toSetString(u)]=c):this._sourcesContents&&(delete this._sourcesContents[n.toSetString(u)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null));},i.prototype.applySourceMap=function(s,c,u){var y=c;if(c==null){if(s.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);y=s.file;}var g=this._sourceRoot;g!=null&&(y=n.relative(g,y));var p=new r,a=new r;this._mappings.unsortedForEach(function(f){if(f.source===y&&f.originalLine!=null){var m=s.originalPositionFor({line:f.originalLine,column:f.originalColumn});m.source!=null&&(f.source=m.source,u!=null&&(f.source=n.join(u,f.source)),g!=null&&(f.source=n.relative(g,f.source)),f.originalLine=m.line,f.originalColumn=m.column,m.name!=null&&(f.name=m.name));}var d=f.source;d!=null&&!p.has(d)&&p.add(d);var h=f.name;h!=null&&!a.has(h)&&a.add(h);},this),this._sources=p,this._names=a,s.sources.forEach(function(f){var m=s.sourceContentFor(f);m!=null&&(u!=null&&(f=n.join(u,f)),g!=null&&(f=n.relative(g,f)),this.setSourceContent(f,m));},this);},i.prototype._validateMapping=function(s,c,u,y){if(c&&typeof c.line!="number"&&typeof c.column!="number"){var g="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(g),false;throw new Error(g)}if(!(s&&"line"in s&&"column"in s&&s.line>0&&s.column>=0&&!c&&!u&&!y)){if(s&&"line"in s&&"column"in s&&c&&"line"in c&&"column"in c&&s.line>0&&s.column>=0&&c.line>0&&c.column>=0&&u)return;var g="Invalid mapping: "+JSON.stringify({generated:s,source:u,original:c,name:y});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(g),false;throw new Error(g)}},i.prototype._serializeMappings=function(){for(var s=0,c=1,u=0,y=0,g=0,p=0,a="",f,m,d,h,S=this._mappings.toArray(),C=0,E=S.length;C<E;C++){if(m=S[C],f="",m.generatedLine!==c)for(s=0;m.generatedLine!==c;)f+=";",c++;else if(C>0){if(!n.compareByGeneratedPositionsInflated(m,S[C-1]))continue;f+=",";}f+=e.encode(m.generatedColumn-s),s=m.generatedColumn,m.source!=null&&(h=this._sources.indexOf(m.source),f+=e.encode(h-p),p=h,f+=e.encode(m.originalLine-1-y),y=m.originalLine-1,f+=e.encode(m.originalColumn-u),u=m.originalColumn,m.name!=null&&(d=this._names.indexOf(m.name),f+=e.encode(d-g),g=d)),a+=f;}return a},i.prototype._generateSourcesContent=function(s,c){return s.map(function(u){if(!this._sourcesContents)return null;c!=null&&(u=n.relative(c,u));var y=n.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,y)?this._sourcesContents[y]:null},this)},i.prototype.toJSON=function(){var s={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(s.file=this._file),this._sourceRoot!=null&&(s.sourceRoot=this._sourceRoot),this._sourcesContents&&(s.sourcesContent=this._generateSourcesContent(s.sources,s.sourceRoot)),s},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=i;}}),mn=z({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/binary-search.js"(t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2;function e(n,r,l,i,o,s){var c=Math.floor((r-n)/2)+n,u=o(l,i[c],true);return u===0?c:u>0?r-c>1?e(c,r,l,i,o,s):s==t.LEAST_UPPER_BOUND?r<i.length?r:-1:c:c-n>1?e(n,c,l,i,o,s):s==t.LEAST_UPPER_BOUND?c:n<0?-1:n}t.search=function(r,l,i,o){if(l.length===0)return -1;var s=e(-1,l.length,r,l,i,o||t.GREATEST_LOWER_BOUND);if(s<0)return -1;for(;s-1>=0&&i(l[s],l[s-1],true)===0;)--s;return s};}}),hn=z({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.js"(t){function e(l){function i(c,u,y){var g=c[u];c[u]=c[y],c[y]=g;}function o(c,u){return Math.round(c+Math.random()*(u-c))}function s(c,u,y,g){if(y<g){var p=o(y,g),a=y-1;i(c,p,g);for(var f=c[g],m=y;m<g;m++)u(c[m],f,false)<=0&&(a+=1,i(c,a,m));i(c,a+1,m);var d=a+1;s(c,u,y,d-1),s(c,u,d+1,g);}}return s}function n(l){let i=e.toString();return new Function(`return ${i}`)()(l)}let r=new WeakMap;t.quickSort=function(l,i,o=0){let s=r.get(i);s===void 0&&(s=n(i),r.set(i,s)),s(l,i,o,l.length-1);};}}),gn=z({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.js"(t){var e=re(),n=mn(),r=ft().ArraySet,l=dt(),i=hn().quickSort;function o(p,a){var f=p;return typeof p=="string"&&(f=e.parseSourceMapInput(p)),f.sections!=null?new g(f,a):new s(f,a)}o.fromSourceMap=function(p,a){return s.fromSourceMap(p,a)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,"_generatedMappings",{configurable:true,enumerable:true,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,"_originalMappings",{configurable:true,enumerable:true,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(a,f){var m=a.charAt(f);return m===";"||m===","},o.prototype._parseMappings=function(a,f){throw new Error("Subclasses must implement _parseMappings")},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(a,f,m){var d=f||null,h=m||o.GENERATED_ORDER,S;switch(h){case o.GENERATED_ORDER:S=this._generatedMappings;break;case o.ORIGINAL_ORDER:S=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var C=this.sourceRoot,E=a.bind(d),T=this._names,L=this._sources,M=this._sourceMapURL,v=0,_=S.length;v<_;v++){var w=S[v],b=w.source===null?null:L.at(w.source);b!==null&&(b=e.computeSourceURL(C,b,M)),E({source:b,generatedLine:w.generatedLine,generatedColumn:w.generatedColumn,originalLine:w.originalLine,originalColumn:w.originalColumn,name:w.name===null?null:T.at(w.name)});}},o.prototype.allGeneratedPositionsFor=function(a){var f=e.getArg(a,"line"),m={source:e.getArg(a,"source"),originalLine:f,originalColumn:e.getArg(a,"column",0)};if(m.source=this._findSourceIndex(m.source),m.source<0)return [];var d=[],h=this._findMapping(m,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,n.LEAST_UPPER_BOUND);if(h>=0){var S=this._originalMappings[h];if(a.column===void 0)for(var C=S.originalLine;S&&S.originalLine===C;)d.push({line:e.getArg(S,"generatedLine",null),column:e.getArg(S,"generatedColumn",null),lastColumn:e.getArg(S,"lastGeneratedColumn",null)}),S=this._originalMappings[++h];else for(var E=S.originalColumn;S&&S.originalLine===f&&S.originalColumn==E;)d.push({line:e.getArg(S,"generatedLine",null),column:e.getArg(S,"generatedColumn",null),lastColumn:e.getArg(S,"lastGeneratedColumn",null)}),S=this._originalMappings[++h];}return d},t.SourceMapConsumer=o;function s(p,a){var f=p;typeof p=="string"&&(f=e.parseSourceMapInput(p));var m=e.getArg(f,"version"),d=e.getArg(f,"sources"),h=e.getArg(f,"names",[]),S=e.getArg(f,"sourceRoot",null),C=e.getArg(f,"sourcesContent",null),E=e.getArg(f,"mappings"),T=e.getArg(f,"file",null);if(m!=this._version)throw new Error("Unsupported version: "+m);S&&(S=e.normalize(S)),d=d.map(String).map(e.normalize).map(function(L){return S&&e.isAbsolute(S)&&e.isAbsolute(L)?e.relative(S,L):L}),this._names=r.fromArray(h.map(String),true),this._sources=r.fromArray(d,true),this._absoluteSources=this._sources.toArray().map(function(L){return e.computeSourceURL(S,L,a)}),this.sourceRoot=S,this.sourcesContent=C,this._mappings=E,this._sourceMapURL=a,this.file=T;}s.prototype=Object.create(o.prototype),s.prototype.consumer=o,s.prototype._findSourceIndex=function(p){var a=p;if(this.sourceRoot!=null&&(a=e.relative(this.sourceRoot,a)),this._sources.has(a))return this._sources.indexOf(a);var f;for(f=0;f<this._absoluteSources.length;++f)if(this._absoluteSources[f]==p)return f;return -1},s.fromSourceMap=function(a,f){var m=Object.create(s.prototype),d=m._names=r.fromArray(a._names.toArray(),true),h=m._sources=r.fromArray(a._sources.toArray(),true);m.sourceRoot=a._sourceRoot,m.sourcesContent=a._generateSourcesContent(m._sources.toArray(),m.sourceRoot),m.file=a._file,m._sourceMapURL=f,m._absoluteSources=m._sources.toArray().map(function(_){return e.computeSourceURL(m.sourceRoot,_,f)});for(var S=a._mappings.toArray().slice(),C=m.__generatedMappings=[],E=m.__originalMappings=[],T=0,L=S.length;T<L;T++){var M=S[T],v=new c;v.generatedLine=M.generatedLine,v.generatedColumn=M.generatedColumn,M.source&&(v.source=h.indexOf(M.source),v.originalLine=M.originalLine,v.originalColumn=M.originalColumn,M.name&&(v.name=d.indexOf(M.name)),E.push(v)),C.push(v);}return i(m.__originalMappings,e.compareByOriginalPositions),m},s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function c(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null;}let u=e.compareByGeneratedPositionsDeflatedNoLine;function y(p,a){let f=p.length,m=p.length-a;if(!(m<=1))if(m==2){let d=p[a],h=p[a+1];u(d,h)>0&&(p[a]=h,p[a+1]=d);}else if(m<20)for(let d=a;d<f;d++)for(let h=d;h>a;h--){let S=p[h-1],C=p[h];if(u(S,C)<=0)break;p[h-1]=C,p[h]=S;}else i(p,u,a);}s.prototype._parseMappings=function(a,f){var m=1,d=0,h=0,S=0,C=0,E=0,T=a.length,L=0,v={},_=[],w=[],b,A,P,F;let D=0;for(;L<T;)if(a.charAt(L)===";")m++,L++,d=0,y(w,D),D=w.length;else if(a.charAt(L)===",")L++;else {for(b=new c,b.generatedLine=m,P=L;P<T&&!this._charIsMappingSeparator(a,P);P++);for(a.slice(L,P),A=[];L<P;)l.decode(a,L,v),F=v.value,L=v.rest,A.push(F);if(A.length===2)throw new Error("Found a source, but no line and column");if(A.length===3)throw new Error("Found a source and line, but no column");if(b.generatedColumn=d+A[0],d=b.generatedColumn,A.length>1&&(b.source=C+A[1],C+=A[1],b.originalLine=h+A[2],h=b.originalLine,b.originalLine+=1,b.originalColumn=S+A[3],S=b.originalColumn,A.length>4&&(b.name=E+A[4],E+=A[4])),w.push(b),typeof b.originalLine=="number"){let K=b.source;for(;_.length<=K;)_.push(null);_[K]===null&&(_[K]=[]),_[K].push(b);}}y(w,D),this.__generatedMappings=w;for(var j=0;j<_.length;j++)_[j]!=null&&i(_[j],e.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(..._);},s.prototype._findMapping=function(a,f,m,d,h,S){if(a[m]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+a[m]);if(a[d]<0)throw new TypeError("Column must be greater than or equal to 0, got "+a[d]);return n.search(a,f,h,S)},s.prototype.computeColumnSpans=function(){for(var a=0;a<this._generatedMappings.length;++a){var f=this._generatedMappings[a];if(a+1<this._generatedMappings.length){var m=this._generatedMappings[a+1];if(f.generatedLine===m.generatedLine){f.lastGeneratedColumn=m.generatedColumn-1;continue}}f.lastGeneratedColumn=1/0;}},s.prototype.originalPositionFor=function(a){var f={generatedLine:e.getArg(a,"line"),generatedColumn:e.getArg(a,"column")},m=this._findMapping(f,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(a,"bias",o.GREATEST_LOWER_BOUND));if(m>=0){var d=this._generatedMappings[m];if(d.generatedLine===f.generatedLine){var h=e.getArg(d,"source",null);h!==null&&(h=this._sources.at(h),h=e.computeSourceURL(this.sourceRoot,h,this._sourceMapURL));var S=e.getArg(d,"name",null);return S!==null&&(S=this._names.at(S)),{source:h,line:e.getArg(d,"originalLine",null),column:e.getArg(d,"originalColumn",null),name:S}}}return {source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(a){return a==null}):false},s.prototype.sourceContentFor=function(a,f){if(!this.sourcesContent)return null;var m=this._findSourceIndex(a);if(m>=0)return this.sourcesContent[m];var d=a;this.sourceRoot!=null&&(d=e.relative(this.sourceRoot,d));var h;if(this.sourceRoot!=null&&(h=e.urlParse(this.sourceRoot))){var S=d.replace(/^file:\/\//,"");if(h.scheme=="file"&&this._sources.has(S))return this.sourcesContent[this._sources.indexOf(S)];if((!h.path||h.path=="/")&&this._sources.has("/"+d))return this.sourcesContent[this._sources.indexOf("/"+d)]}if(f)return null;throw new Error('"'+d+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(a){var f=e.getArg(a,"source");if(f=this._findSourceIndex(f),f<0)return {line:null,column:null,lastColumn:null};var m={source:f,originalLine:e.getArg(a,"line"),originalColumn:e.getArg(a,"column")},d=this._findMapping(m,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(a,"bias",o.GREATEST_LOWER_BOUND));if(d>=0){var h=this._originalMappings[d];if(h.source===m.source)return {line:e.getArg(h,"generatedLine",null),column:e.getArg(h,"generatedColumn",null),lastColumn:e.getArg(h,"lastGeneratedColumn",null)}}return {line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=s;function g(p,a){var f=p;typeof p=="string"&&(f=e.parseSourceMapInput(p));var m=e.getArg(f,"version"),d=e.getArg(f,"sections");if(m!=this._version)throw new Error("Unsupported version: "+m);this._sources=new r,this._names=new r;var h={line:-1,column:0};this._sections=d.map(function(S){if(S.url)throw new Error("Support for url field in sections not implemented.");var C=e.getArg(S,"offset"),E=e.getArg(C,"line"),T=e.getArg(C,"column");if(E<h.line||E===h.line&&T<h.column)throw new Error("Section offsets must be ordered and non-overlapping.");return h=C,{generatedOffset:{generatedLine:E+1,generatedColumn:T+1},consumer:new o(e.getArg(S,"map"),a)}});}g.prototype=Object.create(o.prototype),g.prototype.constructor=o,g.prototype._version=3,Object.defineProperty(g.prototype,"sources",{get:function(){for(var p=[],a=0;a<this._sections.length;a++)for(var f=0;f<this._sections[a].consumer.sources.length;f++)p.push(this._sections[a].consumer.sources[f]);return p}}),g.prototype.originalPositionFor=function(a){var f={generatedLine:e.getArg(a,"line"),generatedColumn:e.getArg(a,"column")},m=n.search(f,this._sections,function(h,S){var C=h.generatedLine-S.generatedOffset.generatedLine;return C||h.generatedColumn-S.generatedOffset.generatedColumn}),d=this._sections[m];return d?d.consumer.originalPositionFor({line:f.generatedLine-(d.generatedOffset.generatedLine-1),column:f.generatedColumn-(d.generatedOffset.generatedLine===f.generatedLine?d.generatedOffset.generatedColumn-1:0),bias:a.bias}):{source:null,line:null,column:null,name:null}},g.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(a){return a.consumer.hasContentsOfAllSources()})},g.prototype.sourceContentFor=function(a,f){for(var m=0;m<this._sections.length;m++){var d=this._sections[m],h=d.consumer.sourceContentFor(a,true);if(h||h==="")return h}if(f)return null;throw new Error('"'+a+'" is not in the SourceMap.')},g.prototype.generatedPositionFor=function(a){for(var f=0;f<this._sections.length;f++){var m=this._sections[f];if(m.consumer._findSourceIndex(e.getArg(a,"source"))!==-1){var d=m.consumer.generatedPositionFor(a);if(d){var h={line:d.line+(m.generatedOffset.generatedLine-1),column:d.column+(m.generatedOffset.generatedLine===d.line?m.generatedOffset.generatedColumn-1:0)};return h}}}return {line:null,column:null}},g.prototype._parseMappings=function(a,f){this.__generatedMappings=[],this.__originalMappings=[];for(var m=0;m<this._sections.length;m++)for(var d=this._sections[m],h=d.consumer._generatedMappings,S=0;S<h.length;S++){var C=h[S],E=d.consumer._sources.at(C.source);E!==null&&(E=e.computeSourceURL(d.consumer.sourceRoot,E,this._sourceMapURL)),this._sources.add(E),E=this._sources.indexOf(E);var T=null;C.name&&(T=d.consumer._names.at(C.name),this._names.add(T),T=this._names.indexOf(T));var L={source:E,generatedLine:C.generatedLine+(d.generatedOffset.generatedLine-1),generatedColumn:C.generatedColumn+(d.generatedOffset.generatedLine===C.generatedLine?d.generatedOffset.generatedColumn-1:0),originalLine:C.originalLine,originalColumn:C.originalColumn,name:T};this.__generatedMappings.push(L),typeof L.originalLine=="number"&&this.__originalMappings.push(L);}i(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),i(this.__originalMappings,e.compareByOriginalPositions);},t.IndexedSourceMapConsumer=g;}}),yn=z({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.js"(t){var e=pt().SourceMapGenerator,n=re(),r=/(\r?\n)/,l=10,i="$$$isSourceNode$$$";function o(s,c,u,y,g){this.children=[],this.sourceContents={},this.line=s??null,this.column=c??null,this.source=u??null,this.name=g??null,this[i]=true,y!=null&&this.add(y);}o.fromStringWithSourceMap=function(c,u,y){var g=new o,p=c.split(r),a=0,f=function(){var C=T(),E=T()||"";return C+E;function T(){return a<p.length?p[a++]:void 0}},m=1,d=0,h=null;return u.eachMapping(function(C){if(h!==null)if(m<C.generatedLine)S(h,f()),m++,d=0;else {var E=p[a]||"",T=E.substr(0,C.generatedColumn-d);p[a]=E.substr(C.generatedColumn-d),d=C.generatedColumn,S(h,T),h=C;return}for(;m<C.generatedLine;)g.add(f()),m++;if(d<C.generatedColumn){var E=p[a]||"";g.add(E.substr(0,C.generatedColumn)),p[a]=E.substr(C.generatedColumn),d=C.generatedColumn;}h=C;},this),a<p.length&&(h&&S(h,f()),g.add(p.splice(a).join(""))),u.sources.forEach(function(C){var E=u.sourceContentFor(C);E!=null&&(y!=null&&(C=n.join(y,C)),g.setSourceContent(C,E));}),g;function S(C,E){if(C===null||C.source===void 0)g.add(E);else {var T=y?n.join(y,C.source):C.source;g.add(new o(C.originalLine,C.originalColumn,T,E,C.name));}}},o.prototype.add=function(c){if(Array.isArray(c))c.forEach(function(u){this.add(u);},this);else if(c[i]||typeof c=="string")c&&this.children.push(c);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+c);return this},o.prototype.prepend=function(c){if(Array.isArray(c))for(var u=c.length-1;u>=0;u--)this.prepend(c[u]);else if(c[i]||typeof c=="string")this.children.unshift(c);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+c);return this},o.prototype.walk=function(c){for(var u,y=0,g=this.children.length;y<g;y++)u=this.children[y],u[i]?u.walk(c):u!==""&&c(u,{source:this.source,line:this.line,column:this.column,name:this.name});},o.prototype.join=function(c){var u,y,g=this.children.length;if(g>0){for(u=[],y=0;y<g-1;y++)u.push(this.children[y]),u.push(c);u.push(this.children[y]),this.children=u;}return this},o.prototype.replaceRight=function(c,u){var y=this.children[this.children.length-1];return y[i]?y.replaceRight(c,u):typeof y=="string"?this.children[this.children.length-1]=y.replace(c,u):this.children.push("".replace(c,u)),this},o.prototype.setSourceContent=function(c,u){this.sourceContents[n.toSetString(c)]=u;},o.prototype.walkSourceContents=function(c){for(var u=0,y=this.children.length;u<y;u++)this.children[u][i]&&this.children[u].walkSourceContents(c);for(var g=Object.keys(this.sourceContents),u=0,y=g.length;u<y;u++)c(n.fromSetString(g[u]),this.sourceContents[g[u]]);},o.prototype.toString=function(){var c="";return this.walk(function(u){c+=u;}),c},o.prototype.toStringWithSourceMap=function(c){var u={code:"",line:1,column:0},y=new e(c),g=false,p=null,a=null,f=null,m=null;return this.walk(function(d,h){u.code+=d,h.source!==null&&h.line!==null&&h.column!==null?((p!==h.source||a!==h.line||f!==h.column||m!==h.name)&&y.addMapping({source:h.source,original:{line:h.line,column:h.column},generated:{line:u.line,column:u.column},name:h.name}),p=h.source,a=h.line,f=h.column,m=h.name,g=true):g&&(y.addMapping({generated:{line:u.line,column:u.column}}),p=null,g=false);for(var S=0,C=d.length;S<C;S++)d.charCodeAt(S)===l?(u.line++,u.column=0,S+1===C?(p=null,g=false):g&&y.addMapping({source:h.source,original:{line:h.line,column:h.column},generated:{line:u.line,column:u.column},name:h.name})):u.column++;}),this.walkSourceContents(function(d,h){y.setSourceContent(d,h);}),{code:u.code,map:y}},t.SourceNode=o;}}),vn=z({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/source-map.js"(t){t.SourceMapGenerator=pt().SourceMapGenerator,t.SourceMapConsumer=gn().SourceMapConsumer,t.SourceNode=yn().SourceNode;}}),_n=an(vn()),ye=false,V=t=>`
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
${p[f].replace(" at new "," at ")}`,h=ge(t);return h&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",h)),d}while(f>=1&&m>=0);break}}}finally{ye=false,Error.prepareStackTrace=n,De(r),console.error=l,console.warn=i;}let o=t?ge(t):"";return o?V(o):""},je=()=>{let t=q();for(let e of [...Array.from(Y),...Array.from(t.renderers.values())]){let n=e.currentDispatcherRef;if(n&&typeof n=="object")return "H"in n?n.H:n.current}return null},De=t=>{for(let e of Y){let n=e.currentDispatcherRef;n&&typeof n=="object"&&("H"in n?n.H=t:n.current=t);}},ht=t=>{let e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;let n=t.stack;if(!n)return "";Error.prepareStackTrace=e,n.startsWith(`Error: react-stack-top-frame
|
|
9
|
+
var Jn=(e,t)=>e===t,pt=Symbol("solid-proxy"),er=typeof Proxy=="function",tr=Symbol("solid-track"),ze={equals:Jn},nn=an,ae=1,Pe=2,rn={owned:null,cleanups:null,context:null,owner:null};var F=null,h=null,$e=null,H=null,X=null,te=null,Xe=0;function Oe(e,t){let n=H,r=F,s=e.length===0,o=t===void 0?r:t,i=s?rn:{owned:null,cleanups:null,context:o?o.context:null,owner:o},a=s?e:()=>e(()=>ue(()=>Ee(i)));F=i,H=null;try{return pe(a,!0)}finally{H=n,F=r;}}function M(e,t){t=t?Object.assign({},ze,t):ze;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=s=>(typeof s=="function"&&(s=s(n.value)),sn(n,s));return [on.bind(n),r]}function fe(e,t,n){let r=yt(e,t,false,ae);je(r);}function de(e,t,n){nn=ir;let r=yt(e,t,false,ae);(r.user=true),te?te.push(r):je(r);}function ee(e,t,n){n=n?Object.assign({},ze,n):ze;let r=yt(e,t,true,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,je(r),on.bind(r)}function ue(e){if(H===null)return e();let t=H;H=null;try{return $e?$e.untrack(e):e()}finally{H=t;}}function Re(e){return F===null||(F.cleanups===null?F.cleanups=[e]:F.cleanups.push(e)),e}M(false);function on(){let e=h;if(this.sources&&(this.state))if((this.state)===ae)je(this);else {let t=X;X=null,pe(()=>We(this),false),X=t;}if(H){let t=this.observers?this.observers.length:0;H.sources?(H.sources.push(this),H.sourceSlots.push(t)):(H.sources=[this],H.sourceSlots=[t]),this.observers?(this.observers.push(H),this.observerSlots.push(H.sources.length-1)):(this.observers=[H],this.observerSlots=[H.sources.length-1]);}return e&&h.sources.has(this)?this.tValue:this.value}function sn(e,t,n){let r=e.value;if(!e.comparator||!e.comparator(r,t)){e.value=t;e.observers&&e.observers.length&&pe(()=>{for(let s=0;s<e.observers.length;s+=1){let o=e.observers[s],i=h&&h.running;i&&h.disposed.has(o)||((i?!o.tState:!o.state)&&(o.pure?X.push(o):te.push(o),o.observers&&ln(o)),i?o.tState=ae:o.state=ae);}if(X.length>1e6)throw X=[],new Error},false);}return t}function je(e){if(!e.fn)return;Ee(e);let t=Xe;Jt(e,e.value,t);}function Jt(e,t,n){let r,s=F,o=H;H=F=e;try{r=e.fn(t);}catch(i){return e.pure&&((e.state=ae,e.owned&&e.owned.forEach(Ee),e.owned=null)),e.updatedAt=n+1,wt(i)}finally{H=o,F=s;}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?sn(e,r):e.value=r,e.updatedAt=n);}function yt(e,t,n,r=ae,s){let o={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:F,context:F?F.context:null,pure:n};if(F===null||F!==rn&&(F.owned?F.owned.push(o):F.owned=[o]),$e);return o}function De(e){let t=h;if((e.state)===0)return;if((e.state)===Pe)return We(e);if(e.suspense&&ue(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Xe);){(e.state)&&n.push(e);}for(let r=n.length-1;r>=0;r--){if(e=n[r],t);if((e.state)===ae)je(e);else if((e.state)===Pe){let s=X;X=null,pe(()=>We(e,n[0]),false),X=s;}}}function pe(e,t){if(X)return e();let n=false;t||(X=[]),te?n=true:te=[],Xe++;try{let r=e();return or(n),r}catch(r){n||(te=null),X=null,wt(r);}}function or(e){if(X&&(an(X),X=null),e)return;let n=te;te=null,n.length&&pe(()=>nn(n),false);}function an(e){for(let t=0;t<e.length;t++)De(e[t]);}function ir(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:De(r);}for(t=0;t<n;t++)De(e[t]);}function We(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){let s=e.sources[r];if(s.sources){let o=s.state;o===ae?s!==t&&(!s.updatedAt||s.updatedAt<Xe)&&De(s):o===Pe&&We(s,t);}}}function ln(e){for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(!r.state)&&(r.state=Pe,r.pure?X.push(r):te.push(r),r.observers&&ln(r));}}function Ee(e){let t;if(e.sources)for(;e.sources.length;){let n=e.sources.pop(),r=e.sourceSlots.pop(),s=n.observers;if(s&&s.length){let o=s.pop(),i=n.observerSlots.pop();r<s.length&&(o.sourceSlots[i]=r,s[r]=o,n.observerSlots[r]=i);}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)Ee(e.tOwned[t]);delete e.tOwned;}if(e.owned){for(t=e.owned.length-1;t>=0;t--)Ee(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 ar(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function wt(e,t=F){let r=ar(e);throw r;}var lr=Symbol("fallback");function tn(e){for(let t=0;t<e.length;t++)e[t]();}function cr(e,t,n={}){let r=[],s=[],o=[],i=0,a=t.length>1?[]:null;return Re(()=>tn(o)),()=>{let c=e()||[],l=c.length,d,f;return c[tr],ue(()=>{let g,C,R,p,S,v,k,D,Y;if(l===0)i!==0&&(tn(o),o=[],r=[],s=[],i=0,a&&(a=[])),n.fallback&&(r=[lr],s[0]=Oe(Q=>(o[0]=Q,n.fallback())),i=1);else if(i===0){for(s=new Array(l),f=0;f<l;f++)r[f]=c[f],s[f]=Oe(w);i=l;}else {for(R=new Array(l),p=new Array(l),a&&(S=new Array(l)),v=0,k=Math.min(i,l);v<k&&r[v]===c[v];v++);for(k=i-1,D=l-1;k>=v&&D>=v&&r[k]===c[D];k--,D--)R[D]=s[k],p[D]=o[k],a&&(S[D]=a[k]);for(g=new Map,C=new Array(D+1),f=D;f>=v;f--)Y=c[f],d=g.get(Y),C[f]=d===void 0?-1:d,g.set(Y,f);for(d=v;d<=k;d++)Y=r[d],f=g.get(Y),f!==void 0&&f!==-1?(R[f]=s[d],p[f]=o[d],a&&(S[f]=a[d]),f=C[f],g.set(Y,f)):o[d]();for(f=v;f<l;f++)f in R?(s[f]=R[f],o[f]=p[f],a&&(a[f]=S[f],a[f](f))):s[f]=Oe(w);s=s.slice(0,i=l),r=c.slice(0);}return s});function w(g){if(o[f]=g,a){let[C,R]=M(f);return a[f]=R,t(c[f],C)}return t(c[f])}}}function P(e,t){return ue(()=>e(t||{}))}function Ge(){return true}var fr={get(e,t,n){return t===pt?n:e.get(t)},has(e,t){return t===pt?true:e.has(t)},set:Ge,deleteProperty:Ge,getOwnPropertyDescriptor(e,t){return {configurable:true,enumerable:true,get(){return e.get(t)},set:Ge,deleteProperty:Ge}},ownKeys(e){return e.keys()}};function ht(e){return (e=typeof e=="function"?e():e)?e:{}}function dr(){for(let e=0,t=this.length;e<t;++e){let n=this[e]();if(n!==void 0)return n}}function St(...e){let t=false;for(let i=0;i<e.length;i++){let a=e[i];t=t||!!a&&pt in a,e[i]=typeof a=="function"?(t=true,ee(a)):a;}if(er&&t)return new Proxy({get(i){for(let a=e.length-1;a>=0;a--){let c=ht(e[a])[i];if(c!==void 0)return c}},has(i){for(let a=e.length-1;a>=0;a--)if(i in ht(e[a]))return true;return false},keys(){let i=[];for(let a=0;a<e.length;a++)i.push(...Object.keys(ht(e[a])));return [...new Set(i)]}},fr);let n={},r=Object.create(null);for(let i=e.length-1;i>=0;i--){let a=e[i];if(!a)continue;let c=Object.getOwnPropertyNames(a);for(let l=c.length-1;l>=0;l--){let d=c[l];if(d==="__proto__"||d==="constructor")continue;let f=Object.getOwnPropertyDescriptor(a,d);if(!r[d])r[d]=f.get?{enumerable:true,configurable:true,get:dr.bind(n[d]=[f.get.bind(a)])}:f.value!==void 0?f:void 0;else {let w=n[d];w&&(f.get?w.push(f.get.bind(a)):f.value!==void 0&&w.push(()=>f.value));}}}let s={},o=Object.keys(r);for(let i=o.length-1;i>=0;i--){let a=o[i],c=r[a];c&&c.get?Object.defineProperty(s,a,c):s[a]=c?c.value:void 0;}return s}var mr=e=>`Stale read from <${e}>.`;function Ke(e){let t="fallback"in e&&{fallback:()=>e.fallback};return ee(cr(()=>e.each,e.children,t||void 0))}function re(e){let t=e.keyed,n=ee(()=>e.when,void 0,void 0),r=t?n:ee(n,void 0,{equals:(s,o)=>!s==!o});return ee(()=>{let s=r();if(s){let o=e.children;return typeof o=="function"&&o.length>0?ue(()=>o(t?s:()=>{if(!ue(r))throw mr("Show");return n()})):o}return e.fallback},void 0,void 0)}var Be=e=>ee(()=>e());function pr(e,t,n){let r=n.length,s=t.length,o=r,i=0,a=0,c=t[s-1].nextSibling,l=null;for(;i<s||a<o;){if(t[i]===n[a]){i++,a++;continue}for(;t[s-1]===n[o-1];)s--,o--;if(s===i){let d=o<r?a?n[a-1].nextSibling:n[o-a]:c;for(;a<o;)e.insertBefore(n[a++],d);}else if(o===a)for(;i<s;)(!l||!l.has(t[i]))&&t[i].remove(),i++;else if(t[i]===n[o-1]&&n[a]===t[s-1]){let d=t[--s].nextSibling;e.insertBefore(n[a++],t[i++].nextSibling),e.insertBefore(n[--o],d),t[s]=n[o];}else {if(!l){l=new Map;let f=a;for(;f<o;)l.set(n[f],f++);}let d=l.get(t[i]);if(d!=null)if(a<d&&d<o){let f=i,w=1,g;for(;++f<s&&f<o&&!((g=l.get(t[f]))==null||g!==d+w);)w++;if(w>d-a){let C=t[i];for(;a<d;)e.insertBefore(n[a++],C);}else e.replaceChild(n[a++],t[i++]);}else i++;else t[i++].remove();}}}function fn(e,t,n,r={}){let s;return Oe(o=>{s=o,t===document?e():me(t,e(),t.firstChild?null:void 0,n);},r.owner),()=>{s(),t.textContent="";}}function Ae(e,t,n,r){let s,o=()=>{let a=document.createElement("template");return a.innerHTML=e,a.content.firstChild},i=()=>(s||(s=o())).cloneNode(true);return i.cloneNode=i,i}function br(e,t,n){(e.removeAttribute(t));}function vt(e,t,n){if(!t)return n?br(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 s,o;for(o in n)t[o]==null&&r.removeProperty(o),delete n[o];for(o in t)s=t[o],s!==n[o]&&(r.setProperty(o,s),n[o]=s);return n}function be(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t);}function Qe(e,t,n){return ue(()=>e(t,n))}function me(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return Ze(e,t,r,n);fe(s=>Ze(e,t(),s,n),r);}function Ze(e,t,n,r,s){for(;typeof n=="function";)n=n();if(t===n)return n;let i=typeof t,a=r!==void 0;if(e=a&&n[0]&&n[0].parentNode||e,i==="string"||i==="number"){if(i==="number"&&(t=t.toString(),t===n))return n;if(a){let c=n[0];c&&c.nodeType===3?c.data!==t&&(c.data=t):c=document.createTextNode(t),n=Ie(e,n,r,c);}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t;}else if(t==null||i==="boolean"){n=Ie(e,n,r);}else {if(i==="function")return fe(()=>{let c=t();for(;typeof c=="function";)c=c();n=Ze(e,c,n,r);}),()=>n;if(Array.isArray(t)){let c=[],l=n&&Array.isArray(n);if(Tt(c,t,n,s))return fe(()=>n=Ze(e,c,n,r,true)),()=>n;if(c.length===0){if(n=Ie(e,n,r),a)return n}else l?n.length===0?un(e,c,r):pr(e,n,c):(n&&Ie(e),un(e,c));n=c;}else if(t.nodeType){if(Array.isArray(n)){if(a)return n=Ie(e,n,r,t);Ie(e,n,null,t);}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t;}}return n}function Tt(e,t,n,r){let s=false;for(let o=0,i=t.length;o<i;o++){let a=t[o],c=n&&n[e.length],l;if(!(a==null||a===true||a===false))if((l=typeof a)=="object"&&a.nodeType)e.push(a);else if(Array.isArray(a))s=Tt(e,a,c)||s;else if(l==="function")if(r){for(;typeof a=="function";)a=a();s=Tt(e,Array.isArray(a)?a:[a],Array.isArray(c)?c:[c])||s;}else e.push(a),s=true;else {let d=String(a);c&&c.nodeType===3&&c.data===d?e.push(c):e.push(document.createTextNode(d));}}return s}function un(e,t,n=null){for(let r=0,s=t.length;r<s;r++)e.insertBefore(t[r],n);}function Ie(e,t,n,r){if(n===void 0)return e.textContent="";let s=r||document.createTextNode("");if(t.length){let o=false;for(let i=t.length-1;i>=0;i--){let a=t[i];if(s!==a){let c=a.parentNode===e;!o&&!i?c?e.replaceChild(s,a):e.insertBefore(s,n):c&&a.remove();}else o=true;}}else e.insertBefore(s,n);return [s]}var yr=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"],wr=e=>!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-"),Sr=e=>Array.isArray(e),Tr=(e,t=false)=>{let{composed:n,target:r}=e,s,o;if(r instanceof HTMLElement&&wr(r)&&n){let a=e.composedPath()[0];a instanceof HTMLElement&&(s=a.tagName,o=a.role);}else r instanceof HTMLElement&&(s=r.tagName,o=r.role);return Sr(t)?!!(s&&t&&t.some(i=>typeof s=="string"&&i.toLowerCase()===s.toLowerCase()||i===o)):!!(s&&t&&t)},mn=e=>Tr(e,yr);var ke="data-react-grab",hn=()=>{let e=document.querySelector(`[${ke}]`);if(e){let o=e.shadowRoot?.querySelector(`[${ke}]`);if(o instanceof HTMLDivElement&&e.shadowRoot)return o}let t=document.createElement("div");t.setAttribute(ke,"true"),t.style.zIndex="2147483646",t.style.position="fixed",t.style.top="0",t.style.left="0";let n=t.attachShadow({mode:"open"}),r=document.createElement("div");return r.setAttribute(ke,"true"),n.appendChild(r),(document.body??document.documentElement).appendChild(t),r};var Je=(e,t=window.getComputedStyle(e))=>t.display!=="none"&&t.visibility!=="hidden"&&t.opacity!=="0";var vr=Ae("<div>"),xr=Ae('<span style="display:inline-block;width:8px;height:8px;border:1.5px solid rgb(210, 57, 192);border-top-color:transparent;border-radius:50%;margin-right:4px;vertical-align:middle">'),Cr=Ae("<span style=display:inline-block;margin-right:4px;font-weight:600>\u2713"),gn=Ae(`<span style="font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;font-variant-numeric:tabular-nums">`),Er=Ae(`<div style="position:fixed;padding:2px 6px;background-color:#fde7f7;color:#b21c8e;border:1px solid #f7c5ec;border-radius:4px;font-size:11px;font-weight:500;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;pointer-events:none;transition:opacity 0.2s ease-in-out;display:flex;align-items:center;max-width:calc(100vw - (16px + env(safe-area-inset-left) + env(safe-area-inset-right)));overflow:hidden;text-overflow:ellipsis;white-space:nowrap"><span>`),Rr=Ae('<div style="position:fixed;z-index:2147483647;pointer-events:none;transition:opacity 0.1s ease-in-out"><div style="width:32px;height:2px;background-color:rgba(178, 28, 142, 0.2);border-radius:1px;overflow:hidden;position:relative"><div style="height:100%;background-color:#b21c8e;border-radius:1px;transition:width 0.05s cubic-bezier(0.165, 0.84, 0.44, 1)">'),et=8,kr=6,pn=4,yn=1500,wn=.95,Ar=.9,tt=(e,t,n)=>e+(t-e)*n,xt=e=>{let[t,n]=M(e.bounds.x),[r,s]=M(e.bounds.y),[o,i]=M(e.bounds.width),[a,c]=M(e.bounds.height),[l,d]=M(1),f=false,w=null,g=e.bounds;de(()=>{g=e.bounds;let p=e.lerpFactor??wn;if(!f){n(g.x),s(g.y),i(g.width),c(g.height),f=true;return}let S=.5,v=()=>{let k=tt(t(),g.x,p),D=tt(r(),g.y,p),Y=tt(o(),g.width,p),Q=tt(a(),g.height,p);n(k),s(D),i(Y),c(Q),Math.abs(k-g.x)<S&&Math.abs(D-g.y)<S&&Math.abs(Y-g.width)<S&&Math.abs(Q-g.height)<S?w=null:w=requestAnimationFrame(v);};w!==null&&cancelAnimationFrame(w),w=requestAnimationFrame(v),Re(()=>{w!==null&&(cancelAnimationFrame(w),w=null);});}),de(()=>{e.variant==="grabbed"&&requestAnimationFrame(()=>{d(0);});});let C={position:"fixed","box-sizing":"border-box","pointer-events":e.variant==="marquee"?"none":"auto","z-index":"2147483646"},R=()=>e.variant==="marquee"?{border:"1px dashed rgb(210, 57, 192)","background-color":"rgba(210, 57, 192, 0.1)","will-change":"transform, width, height",contain:"layout paint size"}:{border:"1px solid rgb(210, 57, 192)","background-color":"rgba(210, 57, 192, 0.2)",transition:e.variant==="grabbed"?"opacity 0.3s ease-out":void 0};return P(re,{get when(){return e.visible!==false},get children(){var p=vr();return fe(S=>vt(p,{...C,...R(),top:`${r()}px`,left:`${t()}px`,width:`${o()}px`,height:`${a()}px`,"border-radius":e.bounds.borderRadius,transform:e.bounds.transform,opacity:l()},S)),p}})},Nr=e=>{let t;return de(()=>{t&&t.animate([{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}],{duration:600,easing:"linear",iterations:1/0});}),(()=>{var n=xr(),r=t;return typeof r=="function"?Qe(r,n):t=n,fe(s=>vt(n,{...e.style},s)),n})()},bn=e=>{let[t,n]=M(0),r;de(()=>{e.visible!==false?requestAnimationFrame(()=>{n(1);}):n(0);}),de(()=>{if(e.variant==="success"){let i=setTimeout(()=>{n(0);},yn);Re(()=>clearTimeout(i));}});let s=()=>r?.getBoundingClientRect(),o=()=>{let i=s();if(!i)return {left:e.x,top:e.y};let a=window.innerWidth,c=window.innerHeight,l=Math.round(e.x),d=Math.round(e.y)-i.height-kr,f=et,w=et,g=a-i.width-et,C=c-i.height-et,R=l<f,p=d<w,S=R||p;return l=Math.max(f,Math.min(l,g)),d=Math.max(w,Math.min(d,C)),S&&(l+=pn,d+=pn),{left:l,top:d}};return P(re,{get when(){return e.visible!==false},get children(){var i=Er(),a=i.firstChild,c=r;return typeof c=="function"?Qe(c,i):r=i,me(i,P(re,{get when(){return e.variant==="processing"},get children(){return P(Nr,{})}}),a),me(i,P(re,{get when(){return e.variant==="success"},get children(){return Cr()}}),a),me(a,P(re,{get when(){return e.variant==="success"},children:"Grabbed "}),null),me(a,P(re,{get when(){return e.variant==="processing"},children:"Grabbing\u2026"}),null),me(a,P(re,{get when(){return e.variant==="hover"},get children(){var l=gn();return me(l,()=>e.text),l}}),null),me(a,P(re,{get when(){return e.variant!=="hover"},get children(){var l=gn();return me(l,()=>e.text),l}}),null),fe(l=>{var d=`${o().top}px`,f=`${o().left}px`,w=e.zIndex?.toString()??"2147483647",g=t();return d!==l.e&&be(i,"top",l.e=d),f!==l.t&&be(i,"left",l.t=f),w!==l.a&&be(i,"z-index",l.a=w),g!==l.o&&be(i,"opacity",l.o=g),l},{e:void 0,t:void 0,a:void 0,o:void 0}),i}})},Fr=e=>{let[t,n]=M(0),r;de(()=>{e.visible!==false?requestAnimationFrame(()=>{n(1);}):n(0);});let s=()=>{let o=r?.getBoundingClientRect();if(!o)return {left:e.mouseX,top:e.mouseY};let i=window.innerWidth,a=window.innerHeight,c=14,l=8,d=e.mouseX-o.width/2,f=e.mouseY+c;return f+o.height+l>a&&(f=e.mouseY-o.height-c),f=Math.max(l,Math.min(f,a-o.height-l)),d=Math.max(l,Math.min(d,i-o.width-l)),{left:d,top:f}};return P(re,{get when(){return e.visible!==false},get children(){var o=Rr(),i=o.firstChild,a=i.firstChild,c=r;return typeof c=="function"?Qe(c,o):r=o,fe(l=>{var d=`${s().top}px`,f=`${s().left}px`,w=t(),g=`${Math.min(100,Math.max(0,e.progress*100))}%`;return d!==l.e&&be(o,"top",l.e=d),f!==l.t&&be(o,"left",l.t=f),w!==l.a&&be(o,"opacity",l.a=w),g!==l.o&&be(a,"width",l.o=g),l},{e:void 0,t:void 0,a:void 0,o:void 0}),o}})},Sn=e=>[P(re,{get when(){return Be(()=>!!e.selectionVisible)()&&e.selectionBounds},get children(){return P(xt,{variant:"selection",get bounds(){return e.selectionBounds},get visible(){return e.selectionVisible},lerpFactor:wn})}}),P(re,{get when(){return Be(()=>!!e.marqueeVisible)()&&e.marqueeBounds},get children(){return P(xt,{variant:"marquee",get bounds(){return e.marqueeBounds},get visible(){return e.marqueeVisible},lerpFactor:Ar})}}),P(Ke,{get each(){return e.grabbedOverlays??[]},children:t=>P(xt,{variant:"grabbed",get bounds(){return t.bounds},visible:true})}),P(Ke,{get each(){return e.successLabels??[]},children:t=>P(bn,{variant:"success",get text(){return t.text},get x(){return t.x},get y(){return t.y},visible:true,zIndex:2147483648})}),P(re,{get when(){return Be(()=>!!(e.labelVisible&&e.labelVariant&&e.labelText&&e.labelX!==void 0))()&&e.labelY!==void 0},get children(){return P(bn,{get variant(){return e.labelVariant},get text(){return e.labelText},get x(){return e.labelX},get y(){return e.labelY},get visible(){return e.labelVisible},get zIndex(){return e.labelZIndex}})}}),P(re,{get when(){return Be(()=>!!(e.progressVisible&&e.progress!==void 0&&e.mouseX!==void 0))()&&e.mouseY!==void 0},get children(){return P(Fr,{get progress(){return e.progress},get mouseX(){return e.mouseX},get mouseY(){return e.mouseY},get visible(){return e.progressVisible}})}})];var xn="0.5.14",Ye=`bippy-${xn}`,Tn=Object.defineProperty,_r=Object.prototype.hasOwnProperty,Ve=()=>{},Cn=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{}},Ct=(e=ye())=>"getFiberRoots"in e,En=false,vn,rt=(e=ye())=>En?true:(typeof e.inject=="function"&&(vn=e.inject.toString()),!!vn?.includes("(injected)")),nt=new Set,Ne=new Set,Rn=e=>{let t=new Map,n=0,r={_instrumentationIsActive:false,_instrumentationSource:Ye,checkDCE:Cn,hasUnsupportedRendererAttached:false,inject(s){let o=++n;return t.set(o,s),Ne.add(s),r._instrumentationIsActive||(r._instrumentationIsActive=true,nt.forEach(i=>i())),o},on:Ve,onCommitFiberRoot:Ve,onCommitFiberUnmount:Ve,onPostCommitFiberRoot:Ve,renderers:t,supportsFiber:true,supportsFlight:true};try{Tn(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!0,enumerable:!0,get(){return r},set(i){if(i&&typeof i=="object"){let a=r.renderers;r=i,a.size>0&&(a.forEach((c,l)=>{Ne.add(c),i.renderers.set(l,c);}),ot(e));}}});let s=window.hasOwnProperty,o=!1;Tn(window,"hasOwnProperty",{configurable:!0,value:function(...i){try{if(!o&&i[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,o=!0,-0}catch{}return s.apply(this,i)},writable:!0});}catch{ot(e);}return r},ot=e=>{e&&nt.add(e);try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=Cn,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=Ye,t._instrumentationIsActive=!1;let n=Ct(t);if(n||(t.on=Ve),t.renderers.size){t._instrumentationIsActive=!0,nt.forEach(o=>o());return}let r=t.inject,s=rt(t);s&&!n&&(En=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=o=>{let i=r(o);return Ne.add(o),s&&t.renderers.set(i,o),t._instrumentationIsActive=!0,nt.forEach(a=>a()),i};}(t.renderers.size||t._instrumentationIsActive||rt())&&e?.();}catch{}},Et=()=>_r.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),ye=e=>Et()?(ot(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):Rn(e),kn=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),Rt=()=>{try{kn()&&ye();}catch{}};Rt();var kt=0,Ot=1;var At=5;var Nt=11,Ft=13;var _t=15,$t=16;var It=19;var Mt=26,Lt=27,Pt=28,Dt=30;var Ht=e=>{let t=e;return typeof t=="function"?t:typeof t=="object"&&t?Ht(t.type||t.render):null},st=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=Ht(t);return r&&(r.displayName||r.name)||null};var jt=e=>{let t=ye(e.onActive);t._instrumentationSource=e.name??Ye;let n=t.onCommitFiberRoot;if(e.onCommitFiberRoot){let o=(i,a,c)=>{n!==o&&(n?.(i,a,c),e.onCommitFiberRoot?.(i,a,c));};t.onCommitFiberRoot=o;}let r=t.onCommitFiberUnmount;if(e.onCommitFiberUnmount){let o=(i,a)=>{t.onCommitFiberUnmount===o&&(r?.(i,a),e.onCommitFiberUnmount?.(i,a));};t.onCommitFiberUnmount=o;}let s=t.onPostCommitFiberRoot;if(e.onPostCommitFiberRoot){let o=(i,a)=>{t.onPostCommitFiberRoot===o&&(s?.(i,a),e.onPostCommitFiberRoot?.(i,a));};t.onPostCommitFiberRoot=o;}return t},it=e=>{let t=ye();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},Bt=new Set;var Ur=Object.create,$n=Object.defineProperty,Gr=Object.getOwnPropertyDescriptor,zr=Object.getOwnPropertyNames,Wr=Object.getPrototypeOf,Xr=Object.prototype.hasOwnProperty,Kr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Zr=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=zr(t),o=0,i=s.length,a;o<i;o++)a=s[o],!Xr.call(e,a)&&a!==n&&$n(e,a,{get:(c=>t[c]).bind(null,a),enumerable:!(r=Gr(t,a))||r.enumerable});return e},Qr=(e,t,n)=>(n=e==null?{}:Ur(Wr(e)),Zr($n(n,"default",{value:e,enumerable:true}),e)),Jr=()=>{let e=ye();for(let t of [...Array.from(Ne),...Array.from(e.renderers.values())]){let n=t.currentDispatcherRef;if(n&&typeof n=="object")return "H"in n?n.H:n.current}return null},On=e=>{for(let t of Ne){let n=t.currentDispatcherRef;n&&typeof n=="object"&&("H"in n?n.H=e:n.current=e);}},we=e=>`
|
|
10
|
+
in ${e}`,eo=(e,t)=>{let n=we(e);return t&&(n+=` (at ${t})`),n},Vt=false,Yt=(e,t)=>{if(!e||Vt)return "";let n=Error.prepareStackTrace;Error.prepareStackTrace=void 0,Vt=true;let r=Jr();On(null);let s=console.error,o=console.warn;console.error=()=>{},console.warn=()=>{};try{let c={DetermineComponentFrameRoot(){let w;try{if(t){let g=function(){throw Error()};if(Object.defineProperty(g.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(g,[]);}catch(C){w=C;}Reflect.construct(e,[],g);}else {try{g.call();}catch(C){w=C;}e.call(g.prototype);}}else {try{throw Error()}catch(C){w=C;}let g=e();g&&typeof g.catch=="function"&&g.catch(()=>{});}}catch(g){if(g instanceof Error&&w instanceof Error&&typeof g.stack=="string")return [g.stack,w.stack]}return [null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot",Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name")?.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});let[d,f]=c.DetermineComponentFrameRoot();if(d&&f){let w=d.split(`
|
|
11
|
+
`),g=f.split(`
|
|
12
|
+
`),C=0,R=0;for(;C<w.length&&!w[C].includes("DetermineComponentFrameRoot");)C++;for(;R<g.length&&!g[R].includes("DetermineComponentFrameRoot");)R++;if(C===w.length||R===g.length)for(C=w.length-1,R=g.length-1;C>=1&&R>=0&&w[C]!==g[R];)R--;for(;C>=1&&R>=0;C--,R--)if(w[C]!==g[R]){if(C!==1||R!==1)do if(C--,R--,R<0||w[C]!==g[R]){let p=`
|
|
13
|
+
${w[C].replace(" at new "," at ")}`,S=st(e);return S&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",S)),p}while(C>=1&&R>=0);break}}}finally{Vt=false,Error.prepareStackTrace=n,On(r),console.error=s,console.warn=o;}let i=e?st(e):"";return i?we(i):""},to=(e,t)=>{let n=e.tag,r="";switch(n){case Pt:r=we("Activity");break;case Ot:r=Yt(e.type,true);break;case Nt:r=Yt(e.type.render,false);break;case kt:case _t:r=Yt(e.type,false);break;case At:case Mt:case Lt:r=we(e.type);break;case $t:r=we("Lazy");break;case Ft:r=e.child!==t&&t!==null?we("Suspense Fallback"):we("Suspense");break;case It:r=we("SuspenseList");break;case Dt:r=we("ViewTransition");break;default:return ""}return r},no=e=>{try{let t="",n=e,r=null;do{t+=to(n,r);let s=n._debugInfo;if(s&&Array.isArray(s))for(let o=s.length-1;o>=0;o--){let i=s[o];typeof i.name=="string"&&(t+=eo(i.name,i.env));}r=n,n=n.return;}while(n);return t}catch(t){return t instanceof Error?`
|
|
14
|
+
Error generating stack: ${t.message}
|
|
15
|
+
${t.stack}`:""}},ro=e=>{let t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;let n=e;if(!n)return "";Error.prepareStackTrace=t,n.startsWith(`Error: react-stack-top-frame
|
|
17
16
|
`)&&(n=n.slice(29));let r=n.indexOf(`
|
|
18
17
|
`);if(r!==-1&&(n=n.slice(r+1)),r=Math.max(n.indexOf("react_stack_bottom_frame"),n.indexOf("react-stack-bottom-frame")),r!==-1&&(r=n.lastIndexOf(`
|
|
19
|
-
`,r)),r!==-1)n=n.slice(0,r);else return "";return n},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
${e.
|
|
24
|
-
`)
|
|
25
|
-
`)};var W=8,Tt=6,Lt=4,Mt=1500,Rt=200,ve=(t,e,n)=>t+(e-t)*n,_e=.95,wn=({borderRadius:t,height:e,transform:n,width:r,x:l,y:i})=>{let o=document.createElement("div");return o.style.position="fixed",o.style.top=`${i}px`,o.style.left=`${l}px`,o.style.width=`${r}px`,o.style.height=`${e}px`,o.style.borderRadius=t,o.style.transform=n,o.style.pointerEvents="none",o.style.border="1px solid rgb(210, 57, 192)",o.style.backgroundColor="rgba(210, 57, 192, 0.2)",o.style.zIndex="2147483646",o.style.boxSizing="border-box",o.style.display="none",o},En=(t,{borderRadius:e,height:n,transform:r,width:l,x:i,y:o})=>{let s=parseFloat(t.style.top)||0,c=parseFloat(t.style.left)||0,u=parseFloat(t.style.width)||0,y=parseFloat(t.style.height)||0,g=`${ve(s,o,_e)}px`,p=`${ve(c,i,_e)}px`,a=`${ve(u,l,_e)}px`,f=`${ve(y,n,_e)}px`;t.style.top!==g&&(t.style.top=g),t.style.left!==p&&(t.style.left=p),t.style.width!==a&&(t.style.width=a),t.style.height!==f&&(t.style.height=f),t.style.borderRadius!==e&&(t.style.borderRadius=e),t.style.transform!==r&&(t.style.transform=r);},At=t=>{let e=wn({borderRadius:"0px",height:0,transform:"none",width:0,x:-1e3,y:-1e3});t.appendChild(e);let n=false;return e.addEventListener("mousedown",r=>{r.preventDefault(),r.stopPropagation(),r.stopImmediatePropagation();let{overlayMode:l}=x.getState();l==="visible"&&x.setState(i=>({...i,overlayMode:"copying"}));},true),{element:e,hide:()=>{n=false,e.style.display="none";},isVisible:()=>n,show:()=>{n=true,e.style.display="block";},update:r=>{En(e,r);}}},xt=(t,e)=>{let n=document.createElement("div");n.style.position="fixed",n.style.top=`${e.y}px`,n.style.left=`${e.x}px`,n.style.width=`${e.width}px`,n.style.height=`${e.height}px`,n.style.borderRadius=e.borderRadius,n.style.transform=e.transform,n.style.pointerEvents="none",n.style.border="1px solid rgb(210, 57, 192)",n.style.backgroundColor="rgba(210, 57, 192, 0.2)",n.style.zIndex="2147483646",n.style.boxSizing="border-box",n.style.transition="opacity 0.3s ease-out",n.style.opacity="1",t.appendChild(n),requestAnimationFrame(()=>{n.style.opacity="0";}),setTimeout(()=>{n.remove();},300);},Tn=()=>{let t=document.createElement("span");return t.style.display="inline-block",t.style.width="8px",t.style.height="8px",t.style.border="1.5px solid rgb(210, 57, 192)",t.style.borderTopColor="transparent",t.style.borderRadius="50%",t.style.marginRight="4px",t.style.verticalAlign="middle",t.animate([{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}],{duration:600,easing:"linear",iterations:1/0}),t},oe=null,Ot=()=>{let t=document.createElement("div");return t.style.position="fixed",t.style.top="calc(8px + env(safe-area-inset-top))",t.style.padding="2px 6px",t.style.backgroundColor="#fde7f7",t.style.color="#b21c8e",t.style.border="1px solid #f7c5ec",t.style.borderRadius="4px",t.style.fontSize="11px",t.style.fontWeight="500",t.style.fontFamily="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",t.style.zIndex="2147483647",t.style.pointerEvents="none",t.style.opacity="0",t.style.transition="opacity 0.2s ease-in-out",t.style.display="flex",t.style.alignItems="center",t.style.maxWidth="calc(100vw - (16px + env(safe-area-inset-left) + env(safe-area-inset-right)))",t.style.overflow="hidden",t.style.textOverflow="ellipsis",t.style.whiteSpace="nowrap",t},Ft=(t,e,n,r)=>{let l=oe,i=false;if(l||(l=Ot(),t.appendChild(l),oe=l,i=true,ze=false),!ze){let C=l.querySelector("span");if(C){let E=document.createElement("span");E.textContent=r?`<${r}>`:"<element>",E.style.fontFamily="ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",E.style.fontVariantNumeric="tabular-nums",C.replaceChildren(E);}else {let E=document.createElement("span"),T=document.createElement("span");T.textContent=r?`<${r}>`:"<element>",T.style.fontFamily="ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",T.style.fontVariantNumeric="tabular-nums",E.appendChild(T),l.appendChild(E);}}let o=l.getBoundingClientRect(),s=window.innerWidth,c=window.innerHeight,u=Math.round(e),y=Math.round(n)-o.height-Tt,g=Lt,p=W,a=W,f=s-o.width-W,m=c-o.height-W,d=u<p,h=y<a,S=d||h;u=Math.max(p,Math.min(u,f)),y=Math.max(a,Math.min(y,m)),S&&(u+=g,y+=g),l.style.left=`${u}px`,l.style.top=`${y}px`,l.style.right="auto",i?requestAnimationFrame(()=>{l.style.opacity="1";}):l.style.opacity!=="1"&&(l.style.opacity="1");},ze=false,Se=new Set,Nt=(t,e,n)=>{let r=Ot();r.style.zIndex="2147483648",t.appendChild(r),Se.add(r);let l=()=>{if(e===void 0||n===void 0)return;let s=r.getBoundingClientRect(),c=window.innerWidth,u=window.innerHeight,y=Math.round(e),g=Math.round(n)-s.height-Tt,p=Lt,a=W,f=W,m=c-s.width-W,d=u-s.height-W,h=y<a,S=g<f,C=h||S;y=Math.max(a,Math.min(y,m)),g=Math.max(f,Math.min(g,d)),C&&(y+=p,g+=p),r.style.left=`${y}px`,r.style.top=`${g}px`,r.style.right="auto";},i=Tn(),o=document.createElement("span");return o.textContent="Grabbing\u2026",r.appendChild(i),r.appendChild(o),l(),requestAnimationFrame(()=>{r.style.opacity="1";}),s=>{r.textContent="";let c=document.createElement("span");c.textContent="\u2713",c.style.display="inline-block",c.style.marginRight="4px",c.style.fontWeight="600";let u=document.createElement("span"),y=document.createElement("span");y.textContent=s?`<${s}>`:"<element>",y.style.fontFamily="ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",y.style.fontVariantNumeric="tabular-nums",u.appendChild(document.createTextNode("Grabbed ")),u.appendChild(y),r.appendChild(c),r.appendChild(u),requestAnimationFrame(()=>{l();}),setTimeout(()=>{r.style.opacity="0",setTimeout(()=>{r.remove(),Se.delete(r);},Rt);},Mt);}},Q=()=>{oe&&(oe.remove(),oe=null),ze=false;},Be=()=>{for(let t of Se)t.remove();Se.clear();},B=null,Ln=()=>{let t=document.createElement("div");t.style.position="fixed",t.style.zIndex="2147483647",t.style.pointerEvents="none",t.style.opacity="0",t.style.transition="opacity 0.1s ease-in-out";let e=document.createElement("div");e.style.width="32px",e.style.height="2px",e.style.backgroundColor="rgba(178, 28, 142, 0.2)",e.style.borderRadius="1px",e.style.overflow="hidden",e.style.position="relative";let n=document.createElement("div");return n.style.width="0%",n.style.height="100%",n.style.backgroundColor="#b21c8e",n.style.borderRadius="1px",n.style.transition="width 0.05s linear",n.setAttribute("data-progress-fill","true"),e.appendChild(n),t.appendChild(e),t},Ve=(t,e,n,r)=>{B||(B=Ln(),t.appendChild(B),requestAnimationFrame(()=>{B&&(B.style.opacity="1");}));let l=B,i=l.getBoundingClientRect(),o=window.innerWidth,s=window.innerHeight,c=14,u=8,y=n-i.width/2,g=r+c;g+i.height+u>s&&(g=r-i.height-c),g=Math.max(u,Math.min(g,s-i.height-u)),y=Math.max(u,Math.min(y,o-i.width-u)),l.style.top=`${g}px`,l.style.left=`${y}px`;let p=l.querySelector("[data-progress-fill]");if(p){let a=Math.min(100,Math.max(0,e*100));p.style.width=`${a}%`;}},kt=()=>{B&&(B.style.opacity="0",setTimeout(()=>{B&&(B.remove(),B=null);},100));};var Mn=typeof window<"u"&&window.navigator.clipboard&&window.isSecureContext,qe=async t=>{if(Mn)try{return await navigator.clipboard.writeText(t),!0}catch{}let e=document.createElement("textarea");e.value=t,e.setAttribute("readonly",""),e.style.position="fixed",e.style.top="-9999px",e.style.opacity="0",e.style.pointerEvents="none";let n=document.body||document.documentElement;n.appendChild(e),e.select(),e.setSelectionRange(0,e.value.length);let r=false;try{r=document.execCommand("copy");}catch{r=false;}finally{n.removeChild(e);}return r};var It=(t,e=window.getComputedStyle(t))=>e.display!=="none"&&e.visibility!=="hidden"&&e.opacity!=="0";var Z="data-react-grab",Pt=()=>{let t=document.querySelector(`[${Z}]`);if(t){let i=t.shadowRoot?.querySelector(`[${Z}]`);if(i instanceof HTMLDivElement&&t.shadowRoot)return i}let e=document.createElement("div");e.setAttribute(Z,"true"),e.style.zIndex="2147483646",e.style.position="fixed",e.style.top="0",e.style.left="0";let n=e.attachShadow({mode:"open"}),r=document.createElement("div");return r.setAttribute(Z,"true"),n.appendChild(r),(document.body??document.documentElement).appendChild(e),r};var Dt=t=>{let e=new Map,n=0,r,l=g=>{let p=r,a=typeof g=="function"?g(p):g,f={...p,...a};r=f;for(let m of e.values())if(m.type==="selected"){let d=m.selector(f),h=m.prevSelectedValue;Object.is(h,d)||(m.prevSelectedValue=d,m.listener(d,h));}else m.listener(f,p);return r},i=()=>r,o=t(l,i);r=o;let s=(g,p)=>{let a=String(n++),m={listener:(d,h)=>g(d,h),prevSelectedValue:p(r),selector:p,type:"selected"};return e.set(a,m),()=>{e.delete(a);}},c=g=>{let p=String(n++),a={listener:g,type:"full"};return e.set(p,a),()=>{e.delete(p);}};function u(g,p){return p?s(g,p):c(g)}return {getInitialState(){return o},getState:i,setState:l,subscribe:u}};var x=Dt(()=>({keyPressTimestamps:new Map,mouseX:-1e3,mouseY:-1e3,overlayMode:"hidden",pressedKeys:new Set})),Rn=()=>typeof navigator>"u"?["Meta","C"]:navigator.platform.toLowerCase().includes("mac")?["Meta","C"]:["Control","C"],An=(t={})=>{if(t.enabled===false)return;let e={adapter:void 0,enabled:true,hotkey:t.hotkey??Rn(),keyHoldDuration:500,...t},n=Pt(),r=At(n),l=null,i=null,o=false,s=null,c=null,u=()=>{if(Array.isArray(e.hotkey)){for(let R of e.hotkey)if(!Ce(R))return false;return true}return Ce(e.hotkey)},y=()=>{if(c===null)return;let R=Date.now()-c,N=Math.min(1,R/e.keyHoldDuration),{mouseX:$,mouseY:k}=x.getState();Ve(n,N,$,k),N<1&&(s=requestAnimationFrame(y));},g=()=>{if(s!==null)return;c=Date.now();let{mouseX:R,mouseY:N}=x.getState();Ve(n,0,R,N),s=requestAnimationFrame(y);},p=()=>{s!==null&&(cancelAnimationFrame(s),s=null),c=null,kt();},a=null,f=R=>{let{overlayMode:N}=x.getState();if(R.has("Escape")||R.has("Esc")){x.setState(k=>{let O=new Set(k.pressedKeys);O.delete("Escape"),O.delete("Esc");let G=new Map(k.keyPressTimestamps);G.delete("Escape"),G.delete("Esc");let U=Array.isArray(e.hotkey)?e.hotkey:[e.hotkey];for(let H of U)H.length===1?(O.delete(H.toLowerCase()),O.delete(H.toUpperCase()),G.delete(H.toLowerCase()),G.delete(H.toUpperCase())):(O.delete(H),G.delete(H));return {...k,keyPressTimestamps:G,overlayMode:"hidden",pressedKeys:O}}),a&&(a(),a=null),p();return}if(!u()){a&&(a(),a=null),N!=="hidden"&&x.setState(k=>({...k,overlayMode:"hidden"})),p();return}N==="hidden"&&!a&&(g(),a=Ke(e.hotkey,e.keyHoldDuration,()=>{x.setState(k=>({...k,overlayMode:"visible"})),p(),a=null;}));},m=x.subscribe(f,R=>R.pressedKeys),d=false,h=-1e3,S=-1e3,C=R=>{h=R.clientX,S=R.clientY,!d&&(d=true,requestAnimationFrame(()=>{d=false,x.setState(N=>({...N,mouseX:h,mouseY:S}));}));},E=R=>{if(R.button!==0)return;let{overlayMode:N}=x.getState();N!=="hidden"&&(R.preventDefault(),R.stopPropagation(),R.stopImmediatePropagation(),x.setState($=>({...$,overlayMode:"copying"})));},T=R=>{let{overlayMode:N}=x.getState();N!=="hidden"&&(R.preventDefault(),R.stopPropagation(),R.stopImmediatePropagation());},L=()=>{document.hidden&&(Be(),Q());},M=false,v=()=>{M||(M=true,requestAnimationFrame(()=>{M=false,D();}));},_=false,w=()=>{_||(_=true,requestAnimationFrame(()=>{_=false,D();}));};window.addEventListener("mousemove",C),window.addEventListener("mousedown",E,true),window.addEventListener("click",T,true),window.addEventListener("scroll",v,true),window.addEventListener("resize",w),document.addEventListener("visibilitychange",L);let b=We(),I=(R,N)=>{let $=document.elementsFromPoint(R,N);for(let k of $){if(k.closest(`[${Z}]`))continue;let O=window.getComputedStyle(k);if(It(k,O))return k}return null},A=async R=>{let N=(R.tagName||"").toLowerCase(),$=R.getBoundingClientRect(),k=Nt(n,$.left,$.top);try{let O=Et(R);await qe(`
|
|
18
|
+
`,r)),r!==-1)n=n.slice(0,r);else return "";return n},oo=/(^|@)\S+:\d+/,In=/^\s*at .*(\S+:\d+|\(native\))/m,so=/^(eval@)?(\[native code\])?$/;var io=(e,t)=>{if(t?.includeInElement!==false){let n=e.split(`
|
|
19
|
+
`),r=[];for(let s of n)if(/^\s*at\s+/.test(s)){let o=An(s,void 0)[0];o&&r.push(o);}else if(/^\s*in\s+/.test(s)){let o=s.replace(/^\s*in\s+/,"").replace(/\s*\(at .*\)$/,"");r.push({function:o,raw:s});}else if(s.match(oo)){let o=Nn(s,void 0)[0];o&&r.push(o);}return qt(r,t)}return e.match(In)?An(e,t):Nn(e,t)},Mn=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]},qt=(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 An=(e,t)=>qt(e.split(`
|
|
20
|
+
`).filter(r=>!!r.match(In)),t).map(r=>{let s=r;s.includes("(eval ")&&(s=s.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let o=s.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),i=o.match(/ (\(.+\)$)/);o=i?o.replace(i[0],""):o;let a=Mn(i?i[1]:o),c=i&&o||void 0,l=["eval","<anonymous>"].includes(a[0])?void 0:a[0];return {function:c,file:l,line:a[1]?+a[1]:void 0,col:a[2]?+a[2]:void 0,raw:s}});var Nn=(e,t)=>qt(e.split(`
|
|
21
|
+
`).filter(r=>!r.match(so)),t).map(r=>{let s=r;if(s.includes(" > eval")&&(s=s.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!s.includes("@")&&!s.includes(":"))return {function:s};{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][^@]*)?)?[^@]*)@/,i=s.match(o),a=i&&i[1]?i[1]:void 0,c=Mn(s.replace(o,""));return {function:a,file:c[0],line:c[1]?+c[1]:void 0,col:c[2]?+c[2]:void 0,raw:s}}});var ao=Kr((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,s=59,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(64),a=new Uint8Array(128);for(let T=0;T<o.length;T++){let b=o.charCodeAt(T);i[T]=b,a[b]=T;}function c(T,b){let u=0,y=0,x=0;do{let _=T.next();x=a[_],u|=(x&31)<<y,y+=5;}while(x&32);let O=u&1;return u>>>=1,O&&(u=-2147483648|-u),b+u}function l(T,b,u){let y=b-u;y=y<0?-y<<1|1:y<<1;do{let x=y&31;y>>>=5,y>0&&(x|=32),T.write(i[x]);}while(y>0);return b}function d(T,b){return T.pos>=b?false:T.peek()!==r}let f=1024*16,w=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(T){return Buffer.from(T.buffer,T.byteOffset,T.byteLength).toString()}}:{decode(T){let b="";for(let u=0;u<T.length;u++)b+=String.fromCharCode(T[u]);return b}};class g{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(f);}write(b){let{buffer:u}=this;u[this.pos++]=b,this.pos===f&&(this.out+=w.decode(u),this.pos=0);}flush(){let{buffer:b,out:u,pos:y}=this;return y>0?u+w.decode(b.subarray(0,y)):u}}class C{constructor(b){this.pos=0,this.buffer=b;}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(b){let{buffer:u,pos:y}=this,x=u.indexOf(b,y);return x===-1?u.length:x}}let R=[];function p(T){let{length:b}=T,u=new C(T),y=[],x=[],O=0;for(;u.pos<b;u.pos++){O=c(u,O);let _=c(u,0);if(!d(u,b)){let U=x.pop();U[2]=O,U[3]=_;continue}let A=c(u,0),B=c(u,0),j=B&1,L=j?[O,_,0,0,A,c(u,0)]:[O,_,0,0,A],z=R;if(d(u,b)){z=[];do{let U=c(u,0);z.push(U);}while(d(u,b))}L.vars=z,y.push(L),x.push(L);}return y}function S(T){let b=new g;for(let u=0;u<T.length;)u=v(T,u,b,[0]);return b.flush()}function v(T,b,u,y){let x=T[b],{0:O,1:_,2:A,3:B,4:j,vars:L}=x;b>0&&u.write(r),y[0]=l(u,O,y[0]),l(u,_,0),l(u,j,0);let z=x.length===6?1:0;l(u,z,0),x.length===6&&l(u,x[5],0);for(let U of L)l(u,U,0);for(b++;b<T.length;){let U=T[b],{0:$,1:G}=U;if($>A||$===A&&G>=B)break;b=v(T,b,u,y);}return u.write(r),y[0]=l(u,A,y[0]),l(u,B,0),b}function k(T){let{length:b}=T,u=new C(T),y=[],x=[],O=0,_=0,A=0,B=0,j=0,L=0,z=0,U=0;do{let $=u.indexOf(";"),G=0;for(;u.pos<$;u.pos++){if(G=c(u,G),!d(u,$)){let ne=x.pop();ne[2]=O,ne[3]=G;continue}let se=c(u,0),Fe=se&1,Te=se&2,ie=se&4,Me=null,Le=R,he;if(Fe){let ne=c(u,_);A=c(u,_===ne?A:0),_=ne,he=[O,G,0,0,ne,A];}else he=[O,G,0,0];if(he.isScope=!!ie,Te){let ne=B,ve=j;B=c(u,B);let xe=ne===B;j=c(u,xe?j:0),L=c(u,xe&&ve===j?L:0),Me=[B,j,L];}if(he.callsite=Me,d(u,$)){Le=[];do{z=O,U=G;let ne=c(u,0),ve;if(ne<-1){ve=[[c(u,0)]];for(let xe=-1;xe>ne;xe--){let ct=z;z=c(u,z),U=c(u,z===ct?U:0);let _e=c(u,0);ve.push([_e,z,U]);}}else ve=[[ne]];Le.push(ve);}while(d(u,$))}he.bindings=Le,y.push(he),x.push(he);}O++,u.pos=$+1;}while(u.pos<b);return y}function D(T){if(T.length===0)return "";let b=new g;for(let u=0;u<T.length;)u=Y(T,u,b,[0,0,0,0,0,0,0]);return b.flush()}function Y(T,b,u,y){let x=T[b],{0:O,1:_,2:A,3:B,isScope:j,callsite:L,bindings:z}=x;y[0]<O?(Q(u,y[0],O),y[0]=O,y[1]=0):b>0&&u.write(r),y[1]=l(u,x[1],y[1]);let U=(x.length===6?1:0)|(L?2:0)|(j?4:0);if(l(u,U,0),x.length===6){let{4:$,5:G}=x;$!==y[2]&&(y[3]=0),y[2]=l(u,$,y[2]),y[3]=l(u,G,y[3]);}if(L){let{0:$,1:G,2:se}=x.callsite;$===y[4]?G!==y[5]&&(y[6]=0):(y[5]=0,y[6]=0),y[4]=l(u,$,y[4]),y[5]=l(u,G,y[5]),y[6]=l(u,se,y[6]);}if(z)for(let $ of z){$.length>1&&l(u,-$.length,0);let G=$[0][0];l(u,G,0);let se=O,Fe=_;for(let Te=1;Te<$.length;Te++){let ie=$[Te];se=l(u,ie[1],se),Fe=l(u,ie[2],Fe),l(u,ie[0],0);}}for(b++;b<T.length;){let $=T[b],{0:G,1:se}=$;if(G>A||G===A&&se>=B)break;b=Y(T,b,u,y);}return y[0]<A?(Q(u,y[0],A),y[0]=A,y[1]=0):u.write(r),y[1]=l(u,B,y[1]),b}function Q(T,b,u){do T.write(s);while(++b<u)}function q(T){let{length:b}=T,u=new C(T),y=[],x=0,O=0,_=0,A=0,B=0;do{let j=u.indexOf(";"),L=[],z=true,U=0;for(x=0;u.pos<j;){let $;x=c(u,x),x<U&&(z=false),U=x,d(u,j)?(O=c(u,O),_=c(u,_),A=c(u,A),d(u,j)?(B=c(u,B),$=[x,O,_,A,B]):$=[x,O,_,A]):$=[x],L.push($),u.pos++;}z||le(L),y.push(L),u.pos=j+1;}while(u.pos<=b);return y}function le(T){T.sort(Se);}function Se(T,b){return T[0]-b[0]}function Ue(T){let b=new g,u=0,y=0,x=0,O=0;for(let _=0;_<T.length;_++){let A=T[_];if(_>0&&b.write(s),A.length===0)continue;let B=0;for(let j=0;j<A.length;j++){let L=A[j];j>0&&b.write(r),B=l(b,L[0],B),L.length!==1&&(u=l(b,L[1],u),y=l(b,L[2],y),x=l(b,L[3],x),L.length!==4&&(O=l(b,L[4],O)));}}return b.flush()}n.decode=q,n.decodeGeneratedRanges=k,n.decodeOriginalScopes=p,n.encode=Ue,n.encodeGeneratedRanges=D,n.encodeOriginalScopes=S,Object.defineProperty(n,"__esModule",{value:true});});}),Ln=Qr(ao()),Pn=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,lo=/^data:application\/json[^,]+base64,/,co=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,Dn=typeof WeakRef<"u",qe=new Map,at=new Map,uo=e=>Dn&&e instanceof WeakRef,Fn=(e,t,n,r)=>{if(n<0||n>=e.length)return null;let s=e[n];if(!s||s.length===0)return null;let o=null;for(let d of s)if(d[0]<=r)o=d;else break;if(!o||o.length<4)return null;let[,i,a,c]=o;if(i===void 0||a===void 0||c===void 0)return null;let l=t[i];return l?{columnNumber:c,fileName:l,lineNumber:a+1}:null},fo=(e,t,n)=>{if(e.sections){let r=null;for(let i of e.sections)if(t>i.offset.line||t===i.offset.line&&n>=i.offset.column)r=i;else break;if(!r)return null;let s=t-r.offset.line,o=t===r.offset.line?n-r.offset.column:n;return Fn(r.map.mappings,r.map.sources,s,o)}return Fn(e.mappings,e.sources,t-1,n)},mo=(e,t)=>{let n=t.split(`
|
|
22
|
+
`),r;for(let o=n.length-1;o>=0&&!r;o--){let i=n[o].match(co);i&&(r=i[1]||i[2]);}if(!r)return null;let s=Pn.test(r);if(!(lo.test(r)||s||r.startsWith("/"))){let o=e.split("/");o[o.length-1]=r,r=o.join("/");}return r},ho=e=>({file:e.file,mappings:(0, Ln.decode)(e.mappings),names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,version:3}),go=e=>{let t=e.sections.map(({map:r,offset:s})=>({map:{...r,mappings:(0, Ln.decode)(r.mappings)},offset:s})),n=new Set;for(let r of t)for(let s of r.map.sources)n.add(s);return {file:e.file,mappings:[],names:[],sections:t,sourceRoot:void 0,sources:Array.from(n),sourcesContent:void 0,version:3}},_n=e=>{if(!e)return false;let t=e.trim();if(!t)return false;let n=t.match(Pn);if(!n)return true;let r=n[0].toLowerCase();return r==="http:"||r==="https:"},po=async(e,t=fetch)=>{if(!_n(e))return null;let n;try{n=await(await t(e)).text();}catch{return null}if(!n)return null;let r=mo(e,n);if(!r||!_n(r))return null;try{let s=await t(r),o=await s.json();return "sections"in o?go(o):ho(o)}catch{return null}},bo=async(e,t=true,n)=>{if(t&&qe.has(e)){let o=qe.get(e);if(o==null)return null;if(uo(o)){let i=o.deref();if(i)return i;qe.delete(e);}else return o}if(t&&at.has(e))return at.get(e);let r=po(e,n);t&&at.set(e,r);let s=await r;return t&&at.delete(e),t&&(s===null?qe.set(e,null):qe.set(e,Dn?new WeakRef(s):s)),s};var yo=e=>e._debugStack instanceof Error&&typeof e._debugStack?.stack=="string";var Hn=e=>yo(e)?ro(e._debugStack.stack):no(e);var jn=async(e,t=1,n=true,r)=>{let s=io(e,{slice:t??1}),o=[];for(let i of s){if(!i?.file)continue;let a=await bo(i.file,n,r);if(a&&typeof i.line=="number"&&typeof i.col=="number"){let c=fo(a,i.line,i.col);if(c){o.push(c);continue}}o.push({fileName:i.file,lineNumber:i.line,columnNumber:i.col,functionName:i.function});}return o};jt({onCommitFiberRoot(e,t){Bt.add(t);}});var Ut=async e=>{let t=it(e);if(!t)return null;let n=Hn(t),r=await jn(n,Number.MAX_SAFE_INTEGER);return r||null};var Gt=e=>{let t=new Set(["article","aside","footer","form","header","main","nav","section"]),n=p=>{let S=p.tagName.toLowerCase();if(t.has(S)||p.id)return true;if(p.className&&typeof p.className=="string"){let v=p.className.trim();if(v&&v.length>0)return true}return Array.from(p.attributes).some(v=>v.name.startsWith("data-"))},r=(p,S=10)=>{let v=[],k=p.parentElement,D=0;for(;k&&D<S&&k.tagName!=="BODY"&&!(n(k)&&(v.push(k),v.length>=3));)k=k.parentElement,D++;return v.reverse()},s=p=>{let S=[],v=p,k=0,D=5;for(;v&&k<D&&v.tagName!=="BODY";){let Y=v.tagName.toLowerCase();if(v.id){Y+=`#${v.id}`,S.unshift(Y);break}else if(v.className&&typeof v.className=="string"&&v.className.trim()){let Q=v.className.trim().split(/\s+/).slice(0,2);Y+=`.${Q.join(".")}`;}if(!v.id&&(!v.className||!v.className.trim())&&v.parentElement){let Q=Array.from(v.parentElement.children),q=Q.indexOf(v);q>=0&&Q.length>1&&(Y+=`:nth-child(${q+1})`);}S.unshift(Y),v=v.parentElement,k++;}return S.join(" > ")},o=(p,S=false)=>{let v=p.tagName.toLowerCase(),k=[];if(p.id&&k.push(`id="${p.id}"`),p.className&&typeof p.className=="string"){let q=p.className.trim().split(/\s+/);if(q.length>0&&q[0]){let Se=(S?q.slice(0,3):q).join(" ");Se.length>30&&(Se=Se.substring(0,30)+"..."),k.push(`class="${Se}"`);}}let D=Array.from(p.attributes).filter(q=>q.name.startsWith("data-")),Y=S?D.slice(0,1):D;for(let q of Y){let le=q.value;le.length>20&&(le=le.substring(0,20)+"..."),k.push(`${q.name}="${le}"`);}let Q=p.getAttribute("aria-label");if(Q&&!S){let q=Q;q.length>20&&(q=q.substring(0,20)+"..."),k.push(`aria-label="${q}"`);}return k.length>0?`<${v} ${k.join(" ")}>`:`<${v}>`},i=p=>`</${p.tagName.toLowerCase()}>`,a=p=>{let S=p.textContent||"";S=S.trim().replace(/\s+/g," ");let v=60;return S.length>v&&(S=S.substring(0,v)+"..."),S},c=p=>{if(p.id)return `#${p.id}`;if(p.className&&typeof p.className=="string"){let S=p.className.trim().split(/\s+/);if(S.length>0&&S[0])return `.${S[0]}`}return null},l=[];l.push(`Path: ${s(e)}`),l.push("");let d=r(e);for(let p=0;p<d.length;p++){let S=" ".repeat(p);l.push(S+o(d[p],true));}let f=e.parentElement,w=-1;if(f){let p=Array.from(f.children);if(w=p.indexOf(e),w>0){let S=p[w-1];if(c(S)&&w<=2){let k=" ".repeat(d.length);l.push(`${k} ${o(S,true)}`),l.push(`${k} </${S.tagName.toLowerCase()}>`);}else if(w>0){let k=" ".repeat(d.length);l.push(`${k} ... (${w} element${w===1?"":"s"})`);}}}let g=" ".repeat(d.length);l.push(g+" <!-- SELECTED -->");let C=a(e),R=e.children.length;if(C&&R===0&&C.length<40?l.push(`${g} ${o(e)}${C}${i(e)}`):(l.push(g+" "+o(e)),C&&l.push(`${g} ${C}`),R>0&&l.push(`${g} ... (${R} element${R===1?"":"s"})`),l.push(g+" "+i(e))),f&&w>=0){let p=Array.from(f.children),S=p.length-w-1;if(S>0){let v=p[w+1];c(v)&&S<=2?(l.push(`${g} ${o(v,true)}`),l.push(`${g} </${v.tagName.toLowerCase()}>`)):l.push(`${g} ... (${S} element${S===1?"":"s"})`);}}for(let p=d.length-1;p>=0;p--){let S=" ".repeat(p);l.push(S+i(d[p]));}return l.join(`
|
|
23
|
+
`)};var wo=()=>document.hasFocus()?Promise.resolve():new Promise(e=>{let t=()=>{window.removeEventListener("focus",t),e();};window.addEventListener("focus",t),window.focus();}),lt=async e=>{await wo();try{if(Array.isArray(e)){if(!navigator?.clipboard?.write){for(let t of e)if(typeof t=="string"){let n=Bn(t);if(!n)return n}return !0}return await navigator.clipboard.write([new ClipboardItem(Object.fromEntries(e.map(t=>t instanceof Blob?[t.type??"text/plain",t]:["text/plain",new Blob([t],{type:"text/plain"})])))]),!0}else {if(e instanceof Blob)return await navigator.clipboard.write([new ClipboardItem({[e.type]:e})]),!0;try{return await navigator.clipboard.writeText(String(e)),!0}catch{return Bn(e)}}}catch{return false}},Bn=e=>{if(!document.execCommand)return false;let t=document.createElement("textarea");t.value=String(e),t.style.clipPath="inset(50%)",t.ariaHidden="true",(document.body||document.documentElement).append(t);try{return t.select(),document.execCommand("copy")}finally{t.remove();}};var Vn=e=>{let t={enabled:true,keyHoldDuration:300,...e};if(t.enabled!==false)return Oe(n=>{let[r,s]=M(false),[o,i]=M(-1e3),[a,c]=M(-1e3),[l,d]=M(false),[f,w]=M(-1e3),[g,C]=M(-1e3),[R,p]=M(false),[S,v]=M(null),[k,D]=M(null),[Y,Q]=M(0),[q,le]=M([]),[Se,Ue]=M([]),[T,b]=M(false),[u,y]=M(false),x=null,O=null,_=null,A=ee(()=>T()&&!R()),B=m=>(m.metaKey||m.ctrlKey)&&m.key.toLowerCase()==="c",j=(m,E)=>{let I=document.elementsFromPoint(m,E);for(let N of I){if(N.closest(`[${ke}]`))continue;let V=window.getComputedStyle(N);if(Je(N,V))return N}return null},L=m=>{let E=[],I=Array.from(document.querySelectorAll("*")),N=m.x,V=m.y,J=m.x+m.width,oe=m.y+m.height;for(let K of I){if(K.closest(`[${ke}]`))continue;let ge=window.getComputedStyle(K);if(!Je(K,ge))continue;let Z=K.getBoundingClientRect(),ce=Z.left,ut=Z.top,ft=Z.left+Z.width,dt=Z.top+Z.height,mt=Math.max(N,ce),Wt=Math.max(V,ut),Gn=Math.min(J,ft),zn=Math.min(oe,dt),Wn=Math.max(0,Gn-mt),Xn=Math.max(0,zn-Wt),Kn=Wn*Xn,Xt=Math.max(0,Z.width*Z.height);Xt>0&&Kn/Xt>=.75&&E.push(K);}return E},z=m=>{let E=[],I=Array.from(document.querySelectorAll("*")),N=m.x,V=m.y,J=m.x+m.width,oe=m.y+m.height;for(let K of I){if(K.closest(`[${ke}]`))continue;let ge=(K.tagName||"").toUpperCase();if(ge==="HTML"||ge==="BODY")continue;let Z=window.getComputedStyle(K);if(!Je(K,Z))continue;let ce=K.getBoundingClientRect(),ut=ce.left,ft=ce.top,dt=ce.left+ce.width,mt=ce.top+ce.height;ut<J&&dt>N&&ft<oe&&mt>V&&E.push(K);}return E},U=m=>`
|
|
26
24
|
|
|
27
25
|
<referenced_element>
|
|
28
|
-
${
|
|
29
|
-
</referenced_element
|
|
26
|
+
${m}
|
|
27
|
+
</referenced_element>`,$=m=>`
|
|
28
|
+
|
|
29
|
+
<referenced_elements>
|
|
30
|
+
${m}
|
|
31
|
+
</referenced_elements>`,G=m=>{let E=`grabbed-${Date.now()}-${Math.random()}`;le(I=>[...I,{id:E,bounds:m}]),setTimeout(()=>{le(I=>I.filter(N=>N.id!==E));},300);},se=(m,E,I)=>{let N=`success-${Date.now()}-${Math.random()}`;Ue(V=>[...V,{id:N,text:m,x:E,y:I}]),setTimeout(()=>{Ue(V=>V.filter(J=>J.id!==N));},1700);},Fe=async m=>{let E=m.getBoundingClientRect(),I=(m.tagName||"").toLowerCase();G({borderRadius:window.getComputedStyle(m).borderRadius||"0px",height:E.height,transform:window.getComputedStyle(m).transform||"none",width:E.width,x:E.left,y:E.top});try{let N=Gt(m);await lt(U(N));let V=await Ut(m);if(V?.length){let J=V.map(oe=>` ${oe.functionName} - ${oe.fileName}:${oe.lineNumber}:${oe.columnNumber}`).join(`
|
|
32
|
+
`);await lt(U(`${N}
|
|
30
33
|
|
|
31
34
|
Component owner stack:
|
|
32
|
-
${
|
|
35
|
+
${J}`));}}catch{}se(I?`<${I}>`:"<element>",E.left,E.top);},Te=async m=>{if(m.length===0)return;let E=1/0,I=1/0;for(let N of m){let V=N.getBoundingClientRect();E=Math.min(E,V.left),I=Math.min(I,V.top),G({borderRadius:window.getComputedStyle(N).borderRadius||"0px",height:V.height,transform:window.getComputedStyle(N).transform||"none",width:V.width,x:V.left,y:V.top});}try{let N=[];for(let J of m){let oe=Gt(J),K=await Ut(J);if(K?.length){let ge=K.map(Z=>` ${Z.functionName} - ${Z.fileName}:${Z.lineNumber}:${Z.columnNumber}`).join(`
|
|
36
|
+
`);N.push(`${oe}
|
|
33
37
|
|
|
34
|
-
|
|
35
|
-
${
|
|
36
|
-
|
|
38
|
+
Component owner stack:
|
|
39
|
+
${ge}`);}else N.push(oe);}let V=N.join(`
|
|
40
|
+
|
|
41
|
+
---
|
|
37
42
|
|
|
38
|
-
|
|
43
|
+
`);await lt($(V));}catch{}se(`${m.length} elements`,E,I);},ie=ee(()=>!A()||l()?null:j(o(),a())),Me=ee(()=>{let m=ie();if(!m)return;let E=S();if(E&&m===E)return;let I=m.getBoundingClientRect(),N=window.getComputedStyle(m);return {borderRadius:N.borderRadius||"0px",height:I.height,transform:N.transform||"none",width:I.width,x:I.left,y:I.top}}),Le=ee(()=>{if(!l())return;let m=Math.min(f(),o()),E=Math.min(g(),a()),I=Math.abs(o()-f());return {borderRadius:"0px",height:Math.abs(a()-g()),transform:"none",width:I,x:m,y:E}}),he=ee(()=>{let m=ie();if(!m)return "";let E=(m.tagName||"").toLowerCase();return E?`<${E}>`:"<element>"}),ne=ee(()=>{let m=ie()??S();if(m){let E=m.getBoundingClientRect();return {x:E.left,y:E.top}}return {x:o(),y:a()}}),ve=ee(()=>{let m=ie(),E=S();return !!m&&m===E});de(()=>{let m=ie(),E=S();E&&m&&E!==m&&v(null);});let xe=ee(()=>{let m=k();if(Y(),m===null)return 0;let E=Date.now()-m;return Math.min(E/t.keyHoldDuration,1)}),ct=()=>{D(Date.now()),y(false),_=window.setTimeout(()=>{y(true),_=null;},150);let m=()=>{if(k()===null)return;Q(I=>I+1),xe()<1&&(O=requestAnimationFrame(m));};m();},_e=()=>{O!==null&&(cancelAnimationFrame(O),O=null),_!==null&&(window.clearTimeout(_),_=null),D(null),y(false);},Yn=()=>{_e(),b(true);},zt=new AbortController,Ce=zt.signal;window.addEventListener("keydown",m=>{if(m.key==="Escape"&&r()){s(false),b(false),x&&window.clearTimeout(x),_e();return}mn(m)||B(m)&&!r()&&(s(true),ct(),x=window.setTimeout(()=>{Yn(),t.onActivate?.();},t.keyHoldDuration));},{signal:Ce}),window.addEventListener("keyup",m=>{r()&&(!B(m)||m.key.toLowerCase()==="c")&&(s(false),b(false),x&&window.clearTimeout(x),_e());},{signal:Ce}),window.addEventListener("mousemove",m=>{i(m.clientX),c(m.clientY);},{signal:Ce}),window.addEventListener("mousedown",m=>{!A()||R()||(d(true),w(m.clientX),C(m.clientY));},{signal:Ce}),window.addEventListener("mouseup",m=>{if(!l())return;let E=Math.abs(m.clientX-f()),I=Math.abs(m.clientY-g()),N=5,V=E>N||I>N;if(d(false),V){let J=Math.min(f(),m.clientX),oe=Math.min(g(),m.clientY),K=Math.abs(m.clientX-f()),ge=Math.abs(m.clientY-g()),Z=L({x:J,y:oe,width:K,height:ge});if(Z.length>0)p(true),Te(Z).finally(()=>{p(false);});else {let ce=z({x:J,y:oe,width:K,height:ge});ce.length>0&&(p(true),Te(ce).finally(()=>{p(false);}));}}else {let J=j(m.clientX,m.clientY);if(!J)return;p(true),v(J),Fe(J).finally(()=>{p(false);});}},{signal:Ce}),window.addEventListener("scroll",()=>{},{signal:Ce,capture:true}),window.addEventListener("resize",()=>{},{signal:Ce}),document.addEventListener("visibilitychange",()=>{document.hidden&&le([]);},{signal:Ce}),Re(()=>{zt.abort(),x&&window.clearTimeout(x),_e();});let qn=hn(),Un=ee(()=>({selectionVisible:A()&&!l()&&!!Me(),selectionBounds:Me(),marqueeVisible:A()&&l(),marqueeBounds:Le(),grabbedOverlays:q(),successLabels:Se(),labelVariant:R()?"processing":"hover",labelText:he(),labelX:ne().x,labelY:ne().y,labelVisible:A()&&!l()&&!!ie()&&!ve()||R(),progressVisible:r()&&u(),progress:xe(),mouseX:o(),mouseY:a()}));return fn(()=>P(Sn,St(Un)),qn),n})};Vn();
|
|
44
|
+
/*! Bundled license information:
|
|
45
|
+
|
|
46
|
+
bippy/dist/rdt-hook-DAGphl8S.js:
|
|
39
47
|
(**
|
|
40
48
|
* @license bippy
|
|
41
49
|
*
|
|
@@ -45,7 +53,7 @@ bippy/dist/src-DnJsD_Sy.js:
|
|
|
45
53
|
* LICENSE file in the root directory of this source tree.
|
|
46
54
|
*)
|
|
47
55
|
|
|
48
|
-
bippy/dist/
|
|
56
|
+
bippy/dist/install-hook-only-DXZnu_Kj.js:
|
|
49
57
|
(**
|
|
50
58
|
* @license bippy
|
|
51
59
|
*
|
|
@@ -55,7 +63,27 @@ bippy/dist/index.js:
|
|
|
55
63
|
* LICENSE file in the root directory of this source tree.
|
|
56
64
|
*)
|
|
57
65
|
|
|
58
|
-
bippy/dist/
|
|
66
|
+
bippy/dist/core-BE71wdnw.js:
|
|
67
|
+
(**
|
|
68
|
+
* @license bippy
|
|
69
|
+
*
|
|
70
|
+
* Copyright (c) Aiden Bai
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the MIT license found in the
|
|
73
|
+
* LICENSE file in the root directory of this source tree.
|
|
74
|
+
*)
|
|
75
|
+
|
|
76
|
+
bippy/dist/src-C_DvVIY-.js:
|
|
77
|
+
(**
|
|
78
|
+
* @license bippy
|
|
79
|
+
*
|
|
80
|
+
* Copyright (c) Aiden Bai
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the MIT license found in the
|
|
83
|
+
* LICENSE file in the root directory of this source tree.
|
|
84
|
+
*)
|
|
85
|
+
|
|
86
|
+
bippy/dist/index.js:
|
|
59
87
|
(**
|
|
60
88
|
* @license bippy
|
|
61
89
|
*
|
|
@@ -74,4 +102,4 @@ bippy/dist/source.js:
|
|
|
74
102
|
* This source code is licensed under the MIT license found in the
|
|
75
103
|
* LICENSE file in the root directory of this source tree.
|
|
76
104
|
*)
|
|
77
|
-
*/
|
|
105
|
+
*/})();
|