react-grab 0.0.4 → 0.0.5
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 +31 -3
- package/dist/index.global.js +14 -14
- package/dist/index.js +31 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -87,6 +87,21 @@ var getHTMLSnippet = (element) => {
|
|
|
87
87
|
const children = Array.from(el.children);
|
|
88
88
|
return children.length;
|
|
89
89
|
};
|
|
90
|
+
const getTextContent = (el) => {
|
|
91
|
+
let text = "";
|
|
92
|
+
const childNodes = Array.from(el.childNodes);
|
|
93
|
+
for (const node of childNodes) {
|
|
94
|
+
if (node.nodeType === Node.TEXT_NODE) {
|
|
95
|
+
text += node.textContent || "";
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
text = text.trim();
|
|
99
|
+
const maxLength = 100;
|
|
100
|
+
if (text.length > maxLength) {
|
|
101
|
+
text = text.substring(0, maxLength) + "...";
|
|
102
|
+
}
|
|
103
|
+
return text;
|
|
104
|
+
};
|
|
90
105
|
const lines = [];
|
|
91
106
|
const parent = element.parentElement;
|
|
92
107
|
if (parent) {
|
|
@@ -102,7 +117,11 @@ var getHTMLSnippet = (element) => {
|
|
|
102
117
|
const indent = parent ? " " : "";
|
|
103
118
|
lines.push(indent + "<!-- SELECTED -->");
|
|
104
119
|
lines.push(indent + getElementTag(element));
|
|
120
|
+
const textContent = getTextContent(element);
|
|
105
121
|
const childrenCount = getChildrenCount(element);
|
|
122
|
+
if (textContent) {
|
|
123
|
+
lines.push(`${indent} ${textContent}`);
|
|
124
|
+
}
|
|
106
125
|
if (childrenCount > 0) {
|
|
107
126
|
lines.push(
|
|
108
127
|
`${indent} ... (${childrenCount} element${childrenCount === 1 ? "" : "s"})`
|
|
@@ -128,6 +147,7 @@ var init = () => {
|
|
|
128
147
|
let metaKeyTimer = null;
|
|
129
148
|
let overlay = null;
|
|
130
149
|
let isActive = false;
|
|
150
|
+
let isLocked = false;
|
|
131
151
|
let currentElement = null;
|
|
132
152
|
let animationFrame = null;
|
|
133
153
|
let pendingCopyText = null;
|
|
@@ -139,6 +159,7 @@ var init = () => {
|
|
|
139
159
|
try {
|
|
140
160
|
await navigator.clipboard.writeText(text);
|
|
141
161
|
pendingCopyText = null;
|
|
162
|
+
hideOverlay();
|
|
142
163
|
} catch {
|
|
143
164
|
const textarea = document.createElement("textarea");
|
|
144
165
|
textarea.value = text;
|
|
@@ -151,8 +172,10 @@ var init = () => {
|
|
|
151
172
|
try {
|
|
152
173
|
document.execCommand("copy");
|
|
153
174
|
pendingCopyText = null;
|
|
175
|
+
hideOverlay();
|
|
154
176
|
} catch (execErr) {
|
|
155
177
|
console.error("Failed to copy to clipboard:", execErr);
|
|
178
|
+
hideOverlay();
|
|
156
179
|
}
|
|
157
180
|
document.body.removeChild(textarea);
|
|
158
181
|
}
|
|
@@ -204,6 +227,7 @@ var init = () => {
|
|
|
204
227
|
animationFrame = requestAnimationFrame(updateOverlayPosition);
|
|
205
228
|
};
|
|
206
229
|
const handleMouseMove = (e) => {
|
|
230
|
+
if (isLocked) return;
|
|
207
231
|
const element = document.elementFromPoint(e.clientX, e.clientY);
|
|
208
232
|
if (!element || element === overlay) return;
|
|
209
233
|
currentElement = element;
|
|
@@ -220,11 +244,14 @@ var init = () => {
|
|
|
220
244
|
e.preventDefault();
|
|
221
245
|
e.stopPropagation();
|
|
222
246
|
e.stopImmediatePropagation();
|
|
247
|
+
isLocked = true;
|
|
223
248
|
const elementToInspect = currentElement;
|
|
224
|
-
hideOverlay();
|
|
225
249
|
if (elementToInspect) {
|
|
226
250
|
void getStack(elementToInspect).then((stack) => {
|
|
227
|
-
if (!stack)
|
|
251
|
+
if (!stack) {
|
|
252
|
+
hideOverlay();
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
228
255
|
const serializedStack = serializeStack(filterStack(stack));
|
|
229
256
|
const htmlSnippet = getHTMLSnippet(elementToInspect);
|
|
230
257
|
const payload = `## Referenced element
|
|
@@ -258,6 +285,7 @@ Page: ${window.location.href}`;
|
|
|
258
285
|
};
|
|
259
286
|
const hideOverlay = () => {
|
|
260
287
|
isActive = false;
|
|
288
|
+
isLocked = false;
|
|
261
289
|
if (overlay) {
|
|
262
290
|
overlay.style.display = "none";
|
|
263
291
|
}
|
|
@@ -283,7 +311,7 @@ Page: ${window.location.href}`;
|
|
|
283
311
|
clearTimeout(metaKeyTimer);
|
|
284
312
|
metaKeyTimer = null;
|
|
285
313
|
}
|
|
286
|
-
if (isActive) {
|
|
314
|
+
if (isActive && !isLocked) {
|
|
287
315
|
hideOverlay();
|
|
288
316
|
}
|
|
289
317
|
}
|
package/dist/index.global.js
CHANGED
|
@@ -6,25 +6,25 @@ 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 me="0.3.28",q=`bippy-${me}`,fe=Object.defineProperty,He=Object.prototype.hasOwnProperty,
|
|
10
|
-
`).filter(
|
|
11
|
-
`).filter(c=>!c.match(rt)),e).map(c=>{if(c.includes(" > eval")&&(c=c.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!c.includes("@")&&!c.includes(":"))return {function:c};{let g=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,u=c.match(g),s=u&&u[1]?u[1]:undefined,i=we(c.replace(g,""));return {function:s,file:i[0],line:i[1]?+i[1]:undefined,col:i[2]?+i[2]:undefined,raw:c}}})}var at=I({"../../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(o){if(0<=o&&o<e.length)return e[o];throw new TypeError("Must be between 0 and 63: "+o)},t.decode=function(o){var c=65,g=90,u=97,s=122,i=48,n=57,l=43,_=47,v=26,p=52;return c<=o&&o<=g?o-c:u<=o&&o<=s?o-u+v:i<=o&&o<=n?o-i+p:o==l?62:o==_?63:-1};}}),Le=I({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.js"(t){var e=at(),o=5,c=1<<o,g=c-1,u=c;function s(n){return n<0?(-n<<1)+1:(n<<1)+0}function i(n){var l=(n&1)===1,_=n>>1;return l?-_:_}t.encode=function(l){var _="",v,p=s(l);do v=p&g,p>>>=o,p>0&&(v|=u),_+=e.encode(v);while(p>0);return _},t.decode=function(l,_,v){var p=l.length,r=0,a=0,f,y;do{if(_>=p)throw new Error("Expected more digits in base 64 VLQ value.");if(y=e.decode(l.charCodeAt(_++)),y===-1)throw new Error("Invalid base64 digit: "+l.charAt(_-1));f=!!(y&u),y&=g,r=r+(y<<a),a+=o;}while(f);v.value=i(r),v.rest=_;};}}),H=I({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/util.js"(t){function e(d,m,b){if(m in d)return d[m];if(arguments.length===3)return b;throw new Error('"'+m+'" is a required argument.')}t.getArg=e;var o=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,c=/^data:.+\,.+$/;function g(d){var m=d.match(o);return m?{scheme:m[1],auth:m[2],host:m[3],port:m[4],path:m[5]}:null}t.urlParse=g;function u(d){var m="";return d.scheme&&(m+=d.scheme+":"),m+="//",d.auth&&(m+=d.auth+"@"),d.host&&(m+=d.host),d.port&&(m+=":"+d.port),d.path&&(m+=d.path),m}t.urlGenerate=u;var s=32;function i(d){var m=[];return function(b){for(var h=0;h<m.length;h++)if(m[h].input===b){var w=m[0];return m[0]=m[h],m[h]=w,m[0].result}var L=d(b);return m.unshift({input:b,result:L}),m.length>s&&m.pop(),L}}var n=i(function(m){var b=m,h=g(m);if(h){if(!h.path)return m;b=h.path;}for(var w=t.isAbsolute(b),L=[],M=0,F=0;;)if(M=F,F=b.indexOf("/",M),F===-1){L.push(b.slice(M));break}else for(L.push(b.slice(M,F));F<b.length&&b[F]==="/";)F++;for(var k,N=0,F=L.length-1;F>=0;F--)k=L[F],k==="."?L.splice(F,1):k===".."?N++:N>0&&(k===""?(L.splice(F+1,N),N=0):(L.splice(F,2),N--));return b=L.join("/"),b===""&&(b=w?"/":"."),h?(h.path=b,u(h)):b});t.normalize=n;function l(d,m){d===""&&(d="."),m===""&&(m=".");var b=g(m),h=g(d);if(h&&(d=h.path||"/"),b&&!b.scheme)return h&&(b.scheme=h.scheme),u(b);if(b||m.match(c))return m;if(h&&!h.host&&!h.path)return h.host=m,u(h);var w=m.charAt(0)==="/"?m:n(d.replace(/\/+$/,"")+"/"+m);return h?(h.path=w,u(h)):w}t.join=l,t.isAbsolute=function(d){return d.charAt(0)==="/"||o.test(d)};function _(d,m){d===""&&(d="."),d=d.replace(/\/$/,"");for(var b=0;m.indexOf(d+"/")!==0;){var h=d.lastIndexOf("/");if(h<0||(d=d.slice(0,h),d.match(/^([^\/]+:\/)?\/*$/)))return m;++b;}return Array(b+1).join("../")+m.substr(d.length+1)}t.relative=_;var v=function(){var d=Object.create(null);return !("__proto__"in d)}();function p(d){return d}function r(d){return f(d)?"$"+d:d}t.toSetString=v?p:r;function a(d){return f(d)?d.slice(1):d}t.fromSetString=v?p:a;function f(d){if(!d)return false;var m=d.length;if(m<9||d.charCodeAt(m-1)!==95||d.charCodeAt(m-2)!==95||d.charCodeAt(m-3)!==111||d.charCodeAt(m-4)!==116||d.charCodeAt(m-5)!==111||d.charCodeAt(m-6)!==114||d.charCodeAt(m-7)!==112||d.charCodeAt(m-8)!==95||d.charCodeAt(m-9)!==95)return false;for(var b=m-10;b>=0;b--)if(d.charCodeAt(b)!==36)return false;return true}function y(d,m,b){var h=T(d.source,m.source);return h!==0||(h=d.originalLine-m.originalLine,h!==0)||(h=d.originalColumn-m.originalColumn,h!==0||b)||(h=d.generatedColumn-m.generatedColumn,h!==0)||(h=d.generatedLine-m.generatedLine,h!==0)?h:T(d.name,m.name)}t.compareByOriginalPositions=y;function C(d,m,b){var h;return h=d.originalLine-m.originalLine,h!==0||(h=d.originalColumn-m.originalColumn,h!==0||b)||(h=d.generatedColumn-m.generatedColumn,h!==0)||(h=d.generatedLine-m.generatedLine,h!==0)?h:T(d.name,m.name)}t.compareByOriginalPositionsNoSource=C;function S(d,m,b){var h=d.generatedLine-m.generatedLine;return h!==0||(h=d.generatedColumn-m.generatedColumn,h!==0||b)||(h=T(d.source,m.source),h!==0)||(h=d.originalLine-m.originalLine,h!==0)||(h=d.originalColumn-m.originalColumn,h!==0)?h:T(d.name,m.name)}t.compareByGeneratedPositionsDeflated=S;function E(d,m,b){var h=d.generatedColumn-m.generatedColumn;return h!==0||b||(h=T(d.source,m.source),h!==0)||(h=d.originalLine-m.originalLine,h!==0)||(h=d.originalColumn-m.originalColumn,h!==0)?h:T(d.name,m.name)}t.compareByGeneratedPositionsDeflatedNoLine=E;function T(d,m){return d===m?0:d===null?1:m===null?-1:d>m?1:-1}function O(d,m){var b=d.generatedLine-m.generatedLine;return b!==0||(b=d.generatedColumn-m.generatedColumn,b!==0)||(b=T(d.source,m.source),b!==0)||(b=d.originalLine-m.originalLine,b!==0)||(b=d.originalColumn-m.originalColumn,b!==0)?b:T(d.name,m.name)}t.compareByGeneratedPositionsInflated=O;function R(d){return JSON.parse(d.replace(/^\)]}'[^\n]*\n/,""))}t.parseSourceMapInput=R;function A(d,m,b){if(m=m||"",d&&(d[d.length-1]!=="/"&&m[0]!=="/"&&(d+="/"),m=d+m),b){var h=g(b);if(!h)throw new Error("sourceMapURL could not be parsed");if(h.path){var w=h.path.lastIndexOf("/");w>=0&&(h.path=h.path.substring(0,w+1));}m=l(u(h),m);}return n(m)}t.computeSourceURL=A;}}),Oe=I({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.js"(t){var e=H(),o=Object.prototype.hasOwnProperty,c=typeof Map<"u";function g(){this._array=[],this._set=c?new Map:Object.create(null);}g.fromArray=function(s,i){for(var n=new g,l=0,_=s.length;l<_;l++)n.add(s[l],i);return n},g.prototype.size=function(){return c?this._set.size:Object.getOwnPropertyNames(this._set).length},g.prototype.add=function(s,i){var n=c?s:e.toSetString(s),l=c?this.has(s):o.call(this._set,n),_=this._array.length;(!l||i)&&this._array.push(s),l||(c?this._set.set(s,_):this._set[n]=_);},g.prototype.has=function(s){if(c)return this._set.has(s);var i=e.toSetString(s);return o.call(this._set,i)},g.prototype.indexOf=function(s){if(c){var i=this._set.get(s);if(i>=0)return i}else {var n=e.toSetString(s);if(o.call(this._set,n))return this._set[n]}throw new Error('"'+s+'" is not in the set.')},g.prototype.at=function(s){if(s>=0&&s<this._array.length)return this._array[s];throw new Error("No element indexed by "+s)},g.prototype.toArray=function(){return this._array.slice()},t.ArraySet=g;}}),lt=I({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.js"(t){var e=H();function o(g,u){var s=g.generatedLine,i=u.generatedLine,n=g.generatedColumn,l=u.generatedColumn;return i>s||i==s&&l>=n||e.compareByGeneratedPositionsInflated(g,u)<=0}function c(){this._array=[],this._sorted=true,this._last={generatedLine:-1,generatedColumn:0};}c.prototype.unsortedForEach=function(u,s){this._array.forEach(u,s);},c.prototype.add=function(u){o(this._last,u)?(this._last=u,this._array.push(u)):(this._sorted=false,this._array.push(u));},c.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=true),this._array},t.MappingList=c;}}),Re=I({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.js"(t){var e=Le(),o=H(),c=Oe().ArraySet,g=lt().MappingList;function u(s){s||(s={}),this._file=o.getArg(s,"file",null),this._sourceRoot=o.getArg(s,"sourceRoot",null),this._skipValidation=o.getArg(s,"skipValidation",false),this._ignoreInvalidMapping=o.getArg(s,"ignoreInvalidMapping",false),this._sources=new c,this._names=new c,this._mappings=new g,this._sourcesContents=null;}u.prototype._version=3,u.fromSourceMap=function(i,n){var l=i.sourceRoot,_=new u(Object.assign(n||{},{file:i.file,sourceRoot:l}));return i.eachMapping(function(v){var p={generated:{line:v.generatedLine,column:v.generatedColumn}};v.source!=null&&(p.source=v.source,l!=null&&(p.source=o.relative(l,p.source)),p.original={line:v.originalLine,column:v.originalColumn},v.name!=null&&(p.name=v.name)),_.addMapping(p);}),i.sources.forEach(function(v){var p=v;l!==null&&(p=o.relative(l,v)),_._sources.has(p)||_._sources.add(p);var r=i.sourceContentFor(v);r!=null&&_.setSourceContent(v,r);}),_},u.prototype.addMapping=function(i){var n=o.getArg(i,"generated"),l=o.getArg(i,"original",null),_=o.getArg(i,"source",null),v=o.getArg(i,"name",null);!this._skipValidation&&this._validateMapping(n,l,_,v)===false||(_!=null&&(_=String(_),this._sources.has(_)||this._sources.add(_)),v!=null&&(v=String(v),this._names.has(v)||this._names.add(v)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:l!=null&&l.line,originalColumn:l!=null&&l.column,source:_,name:v}));},u.prototype.setSourceContent=function(i,n){var l=i;this._sourceRoot!=null&&(l=o.relative(this._sourceRoot,l)),n!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(l)]=n):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(l)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null));},u.prototype.applySourceMap=function(i,n,l){var _=n;if(n==null){if(i.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);_=i.file;}var v=this._sourceRoot;v!=null&&(_=o.relative(v,_));var p=new c,r=new c;this._mappings.unsortedForEach(function(a){if(a.source===_&&a.originalLine!=null){var f=i.originalPositionFor({line:a.originalLine,column:a.originalColumn});f.source!=null&&(a.source=f.source,l!=null&&(a.source=o.join(l,a.source)),v!=null&&(a.source=o.relative(v,a.source)),a.originalLine=f.line,a.originalColumn=f.column,f.name!=null&&(a.name=f.name));}var y=a.source;y!=null&&!p.has(y)&&p.add(y);var C=a.name;C!=null&&!r.has(C)&&r.add(C);},this),this._sources=p,this._names=r,i.sources.forEach(function(a){var f=i.sourceContentFor(a);f!=null&&(l!=null&&(a=o.join(l,a)),v!=null&&(a=o.relative(v,a)),this.setSourceContent(a,f));},this);},u.prototype._validateMapping=function(i,n,l,_){if(n&&typeof n.line!="number"&&typeof n.column!="number"){var v="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(v),false;throw new Error(v)}if(!(i&&"line"in i&&"column"in i&&i.line>0&&i.column>=0&&!n&&!l&&!_)){if(i&&"line"in i&&"column"in i&&n&&"line"in n&&"column"in n&&i.line>0&&i.column>=0&&n.line>0&&n.column>=0&&l)return;var v="Invalid mapping: "+JSON.stringify({generated:i,source:l,original:n,name:_});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(v),false;throw new Error(v)}},u.prototype._serializeMappings=function(){for(var i=0,n=1,l=0,_=0,v=0,p=0,r="",a,f,y,C,S=this._mappings.toArray(),E=0,T=S.length;E<T;E++){if(f=S[E],a="",f.generatedLine!==n)for(i=0;f.generatedLine!==n;)a+=";",n++;else if(E>0){if(!o.compareByGeneratedPositionsInflated(f,S[E-1]))continue;a+=",";}a+=e.encode(f.generatedColumn-i),i=f.generatedColumn,f.source!=null&&(C=this._sources.indexOf(f.source),a+=e.encode(C-p),p=C,a+=e.encode(f.originalLine-1-_),_=f.originalLine-1,a+=e.encode(f.originalColumn-l),l=f.originalColumn,f.name!=null&&(y=this._names.indexOf(f.name),a+=e.encode(y-v),v=y)),r+=a;}return r},u.prototype._generateSourcesContent=function(i,n){return i.map(function(l){if(!this._sourcesContents)return null;n!=null&&(l=o.relative(n,l));var _=o.toSetString(l);return Object.prototype.hasOwnProperty.call(this._sourcesContents,_)?this._sourcesContents[_]:null},this)},u.prototype.toJSON=function(){var i={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(i.file=this._file),this._sourceRoot!=null&&(i.sourceRoot=this._sourceRoot),this._sourcesContents&&(i.sourcesContent=this._generateSourcesContent(i.sources,i.sourceRoot)),i},u.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=u;}}),ut=I({"../../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(o,c,g,u,s,i){var n=Math.floor((c-o)/2)+o,l=s(g,u[n],true);return l===0?n:l>0?c-n>1?e(n,c,g,u,s,i):i==t.LEAST_UPPER_BOUND?c<u.length?c:-1:n:n-o>1?e(o,n,g,u,s,i):i==t.LEAST_UPPER_BOUND?n:o<0?-1:o}t.search=function(c,g,u,s){if(g.length===0)return -1;var i=e(-1,g.length,c,g,u,s||t.GREATEST_LOWER_BOUND);if(i<0)return -1;for(;i-1>=0&&u(g[i],g[i-1],true)===0;)--i;return i};}}),ct=I({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.js"(t){function e(g){function u(n,l,_){var v=n[l];n[l]=n[_],n[_]=v;}function s(n,l){return Math.round(n+Math.random()*(l-n))}function i(n,l,_,v){if(_<v){var p=s(_,v),r=_-1;u(n,p,v);for(var a=n[v],f=_;f<v;f++)l(n[f],a,false)<=0&&(r+=1,u(n,r,f));u(n,r+1,f);var y=r+1;i(n,l,_,y-1),i(n,l,y+1,v);}}return i}function o(g){let u=e.toString();return new Function(`return ${u}`)()(g)}let c=new WeakMap;t.quickSort=function(g,u,s=0){let i=c.get(u);i===undefined&&(i=o(u),c.set(u,i)),i(g,u,s,g.length-1);};}}),ft=I({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.js"(t){var e=H(),o=ut(),c=Oe().ArraySet,g=Le(),u=ct().quickSort;function s(p,r){var a=p;return typeof p=="string"&&(a=e.parseSourceMapInput(p)),a.sections!=null?new v(a,r):new i(a,r)}s.fromSourceMap=function(p,r){return i.fromSourceMap(p,r)},s.prototype._version=3,s.prototype.__generatedMappings=null,Object.defineProperty(s.prototype,"_generatedMappings",{configurable:true,enumerable:true,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),s.prototype.__originalMappings=null,Object.defineProperty(s.prototype,"_originalMappings",{configurable:true,enumerable:true,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),s.prototype._charIsMappingSeparator=function(r,a){var f=r.charAt(a);return f===";"||f===","},s.prototype._parseMappings=function(r,a){throw new Error("Subclasses must implement _parseMappings")},s.GENERATED_ORDER=1,s.ORIGINAL_ORDER=2,s.GREATEST_LOWER_BOUND=1,s.LEAST_UPPER_BOUND=2,s.prototype.eachMapping=function(r,a,f){var y=a||null,C=f||s.GENERATED_ORDER,S;switch(C){case s.GENERATED_ORDER:S=this._generatedMappings;break;case s.ORIGINAL_ORDER:S=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var E=this.sourceRoot,T=r.bind(y),O=this._names,R=this._sources,A=this._sourceMapURL,d=0,m=S.length;d<m;d++){var b=S[d],h=b.source===null?null:R.at(b.source);h!==null&&(h=e.computeSourceURL(E,h,A)),T({source:h,generatedLine:b.generatedLine,generatedColumn:b.generatedColumn,originalLine:b.originalLine,originalColumn:b.originalColumn,name:b.name===null?null:O.at(b.name)});}},s.prototype.allGeneratedPositionsFor=function(r){var a=e.getArg(r,"line"),f={source:e.getArg(r,"source"),originalLine:a,originalColumn:e.getArg(r,"column",0)};if(f.source=this._findSourceIndex(f.source),f.source<0)return [];var y=[],C=this._findMapping(f,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,o.LEAST_UPPER_BOUND);if(C>=0){var S=this._originalMappings[C];if(r.column===undefined)for(var E=S.originalLine;S&&S.originalLine===E;)y.push({line:e.getArg(S,"generatedLine",null),column:e.getArg(S,"generatedColumn",null),lastColumn:e.getArg(S,"lastGeneratedColumn",null)}),S=this._originalMappings[++C];else for(var T=S.originalColumn;S&&S.originalLine===a&&S.originalColumn==T;)y.push({line:e.getArg(S,"generatedLine",null),column:e.getArg(S,"generatedColumn",null),lastColumn:e.getArg(S,"lastGeneratedColumn",null)}),S=this._originalMappings[++C];}return y},t.SourceMapConsumer=s;function i(p,r){var a=p;typeof p=="string"&&(a=e.parseSourceMapInput(p));var f=e.getArg(a,"version"),y=e.getArg(a,"sources"),C=e.getArg(a,"names",[]),S=e.getArg(a,"sourceRoot",null),E=e.getArg(a,"sourcesContent",null),T=e.getArg(a,"mappings"),O=e.getArg(a,"file",null);if(f!=this._version)throw new Error("Unsupported version: "+f);S&&(S=e.normalize(S)),y=y.map(String).map(e.normalize).map(function(R){return S&&e.isAbsolute(S)&&e.isAbsolute(R)?e.relative(S,R):R}),this._names=c.fromArray(C.map(String),true),this._sources=c.fromArray(y,true),this._absoluteSources=this._sources.toArray().map(function(R){return e.computeSourceURL(S,R,r)}),this.sourceRoot=S,this.sourcesContent=E,this._mappings=T,this._sourceMapURL=r,this.file=O;}i.prototype=Object.create(s.prototype),i.prototype.consumer=s,i.prototype._findSourceIndex=function(p){var r=p;if(this.sourceRoot!=null&&(r=e.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);var a;for(a=0;a<this._absoluteSources.length;++a)if(this._absoluteSources[a]==p)return a;return -1},i.fromSourceMap=function(r,a){var f=Object.create(i.prototype),y=f._names=c.fromArray(r._names.toArray(),true),C=f._sources=c.fromArray(r._sources.toArray(),true);f.sourceRoot=r._sourceRoot,f.sourcesContent=r._generateSourcesContent(f._sources.toArray(),f.sourceRoot),f.file=r._file,f._sourceMapURL=a,f._absoluteSources=f._sources.toArray().map(function(m){return e.computeSourceURL(f.sourceRoot,m,a)});for(var S=r._mappings.toArray().slice(),E=f.__generatedMappings=[],T=f.__originalMappings=[],O=0,R=S.length;O<R;O++){var A=S[O],d=new n;d.generatedLine=A.generatedLine,d.generatedColumn=A.generatedColumn,A.source&&(d.source=C.indexOf(A.source),d.originalLine=A.originalLine,d.originalColumn=A.originalColumn,A.name&&(d.name=y.indexOf(A.name)),T.push(d)),E.push(d);}return u(f.__originalMappings,e.compareByOriginalPositions),f},i.prototype._version=3,Object.defineProperty(i.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function n(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null;}let l=e.compareByGeneratedPositionsDeflatedNoLine;function _(p,r){let a=p.length,f=p.length-r;if(!(f<=1))if(f==2){let y=p[r],C=p[r+1];l(y,C)>0&&(p[r]=C,p[r+1]=y);}else if(f<20)for(let y=r;y<a;y++)for(let C=y;C>r;C--){let S=p[C-1],E=p[C];if(l(S,E)<=0)break;p[C-1]=E,p[C]=S;}else u(p,l,r);}i.prototype._parseMappings=function(r,a){var f=1,y=0,C=0,S=0,E=0,T=0,O=r.length,R=0,d={},m=[],b=[],h,L,M,F;let k=0;for(;R<O;)if(r.charAt(R)===";")f++,R++,y=0,_(b,k),k=b.length;else if(r.charAt(R)===",")R++;else {for(h=new n,h.generatedLine=f,M=R;M<O&&!this._charIsMappingSeparator(r,M);M++);for(r.slice(R,M),L=[];R<M;)g.decode(r,R,d),F=d.value,R=d.rest,L.push(F);if(L.length===2)throw new Error("Found a source, but no line and column");if(L.length===3)throw new Error("Found a source and line, but no column");if(h.generatedColumn=y+L[0],y=h.generatedColumn,L.length>1&&(h.source=E+L[1],E+=L[1],h.originalLine=C+L[2],C=h.originalLine,h.originalLine+=1,h.originalColumn=S+L[3],S=h.originalColumn,L.length>4&&(h.name=T+L[4],T+=L[4])),b.push(h),typeof h.originalLine=="number"){let G=h.source;for(;m.length<=G;)m.push(null);m[G]===null&&(m[G]=[]),m[G].push(h);}}_(b,k),this.__generatedMappings=b;for(var N=0;N<m.length;N++)m[N]!=null&&u(m[N],e.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...m);},i.prototype._findMapping=function(r,a,f,y,C,S){if(r[f]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+r[f]);if(r[y]<0)throw new TypeError("Column must be greater than or equal to 0, got "+r[y]);return o.search(r,a,C,S)},i.prototype.computeColumnSpans=function(){for(var r=0;r<this._generatedMappings.length;++r){var a=this._generatedMappings[r];if(r+1<this._generatedMappings.length){var f=this._generatedMappings[r+1];if(a.generatedLine===f.generatedLine){a.lastGeneratedColumn=f.generatedColumn-1;continue}}a.lastGeneratedColumn=1/0;}},i.prototype.originalPositionFor=function(r){var a={generatedLine:e.getArg(r,"line"),generatedColumn:e.getArg(r,"column")},f=this._findMapping(a,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(r,"bias",s.GREATEST_LOWER_BOUND));if(f>=0){var y=this._generatedMappings[f];if(y.generatedLine===a.generatedLine){var C=e.getArg(y,"source",null);C!==null&&(C=this._sources.at(C),C=e.computeSourceURL(this.sourceRoot,C,this._sourceMapURL));var S=e.getArg(y,"name",null);return S!==null&&(S=this._names.at(S)),{source:C,line:e.getArg(y,"originalLine",null),column:e.getArg(y,"originalColumn",null),name:S}}}return {source:null,line:null,column:null,name:null}},i.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(r){return r==null}):false},i.prototype.sourceContentFor=function(r,a){if(!this.sourcesContent)return null;var f=this._findSourceIndex(r);if(f>=0)return this.sourcesContent[f];var y=r;this.sourceRoot!=null&&(y=e.relative(this.sourceRoot,y));var C;if(this.sourceRoot!=null&&(C=e.urlParse(this.sourceRoot))){var S=y.replace(/^file:\/\//,"");if(C.scheme=="file"&&this._sources.has(S))return this.sourcesContent[this._sources.indexOf(S)];if((!C.path||C.path=="/")&&this._sources.has("/"+y))return this.sourcesContent[this._sources.indexOf("/"+y)]}if(a)return null;throw new Error('"'+y+'" is not in the SourceMap.')},i.prototype.generatedPositionFor=function(r){var a=e.getArg(r,"source");if(a=this._findSourceIndex(a),a<0)return {line:null,column:null,lastColumn:null};var f={source:a,originalLine:e.getArg(r,"line"),originalColumn:e.getArg(r,"column")},y=this._findMapping(f,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(r,"bias",s.GREATEST_LOWER_BOUND));if(y>=0){var C=this._originalMappings[y];if(C.source===f.source)return {line:e.getArg(C,"generatedLine",null),column:e.getArg(C,"generatedColumn",null),lastColumn:e.getArg(C,"lastGeneratedColumn",null)}}return {line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=i;function v(p,r){var a=p;typeof p=="string"&&(a=e.parseSourceMapInput(p));var f=e.getArg(a,"version"),y=e.getArg(a,"sections");if(f!=this._version)throw new Error("Unsupported version: "+f);this._sources=new c,this._names=new c;var C={line:-1,column:0};this._sections=y.map(function(S){if(S.url)throw new Error("Support for url field in sections not implemented.");var E=e.getArg(S,"offset"),T=e.getArg(E,"line"),O=e.getArg(E,"column");if(T<C.line||T===C.line&&O<C.column)throw new Error("Section offsets must be ordered and non-overlapping.");return C=E,{generatedOffset:{generatedLine:T+1,generatedColumn:O+1},consumer:new s(e.getArg(S,"map"),r)}});}v.prototype=Object.create(s.prototype),v.prototype.constructor=s,v.prototype._version=3,Object.defineProperty(v.prototype,"sources",{get:function(){for(var p=[],r=0;r<this._sections.length;r++)for(var a=0;a<this._sections[r].consumer.sources.length;a++)p.push(this._sections[r].consumer.sources[a]);return p}}),v.prototype.originalPositionFor=function(r){var a={generatedLine:e.getArg(r,"line"),generatedColumn:e.getArg(r,"column")},f=o.search(a,this._sections,function(C,S){var E=C.generatedLine-S.generatedOffset.generatedLine;return E||C.generatedColumn-S.generatedOffset.generatedColumn}),y=this._sections[f];return y?y.consumer.originalPositionFor({line:a.generatedLine-(y.generatedOffset.generatedLine-1),column:a.generatedColumn-(y.generatedOffset.generatedLine===a.generatedLine?y.generatedOffset.generatedColumn-1:0),bias:r.bias}):{source:null,line:null,column:null,name:null}},v.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(r){return r.consumer.hasContentsOfAllSources()})},v.prototype.sourceContentFor=function(r,a){for(var f=0;f<this._sections.length;f++){var y=this._sections[f],C=y.consumer.sourceContentFor(r,true);if(C||C==="")return C}if(a)return null;throw new Error('"'+r+'" is not in the SourceMap.')},v.prototype.generatedPositionFor=function(r){for(var a=0;a<this._sections.length;a++){var f=this._sections[a];if(f.consumer._findSourceIndex(e.getArg(r,"source"))!==-1){var y=f.consumer.generatedPositionFor(r);if(y){var C={line:y.line+(f.generatedOffset.generatedLine-1),column:y.column+(f.generatedOffset.generatedLine===y.line?f.generatedOffset.generatedColumn-1:0)};return C}}}return {line:null,column:null}},v.prototype._parseMappings=function(r,a){this.__generatedMappings=[],this.__originalMappings=[];for(var f=0;f<this._sections.length;f++)for(var y=this._sections[f],C=y.consumer._generatedMappings,S=0;S<C.length;S++){var E=C[S],T=y.consumer._sources.at(E.source);T!==null&&(T=e.computeSourceURL(y.consumer.sourceRoot,T,this._sourceMapURL)),this._sources.add(T),T=this._sources.indexOf(T);var O=null;E.name&&(O=y.consumer._names.at(E.name),this._names.add(O),O=this._names.indexOf(O));var R={source:T,generatedLine:E.generatedLine+(y.generatedOffset.generatedLine-1),generatedColumn:E.generatedColumn+(y.generatedOffset.generatedLine===E.generatedLine?y.generatedOffset.generatedColumn-1:0),originalLine:E.originalLine,originalColumn:E.originalColumn,name:O};this.__generatedMappings.push(R),typeof R.originalLine=="number"&&this.__originalMappings.push(R);}u(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),u(this.__originalMappings,e.compareByOriginalPositions);},t.IndexedSourceMapConsumer=v;}}),dt=I({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.js"(t){var e=Re().SourceMapGenerator,o=H(),c=/(\r?\n)/,g=10,u="$$$isSourceNode$$$";function s(i,n,l,_,v){this.children=[],this.sourceContents={},this.line=i??null,this.column=n??null,this.source=l??null,this.name=v??null,this[u]=true,_!=null&&this.add(_);}s.fromStringWithSourceMap=function(n,l,_){var v=new s,p=n.split(c),r=0,a=function(){var E=O(),T=O()||"";return E+T;function O(){return r<p.length?p[r++]:undefined}},f=1,y=0,C=null;return l.eachMapping(function(E){if(C!==null)if(f<E.generatedLine)S(C,a()),f++,y=0;else {var T=p[r]||"",O=T.substr(0,E.generatedColumn-y);p[r]=T.substr(E.generatedColumn-y),y=E.generatedColumn,S(C,O),C=E;return}for(;f<E.generatedLine;)v.add(a()),f++;if(y<E.generatedColumn){var T=p[r]||"";v.add(T.substr(0,E.generatedColumn)),p[r]=T.substr(E.generatedColumn),y=E.generatedColumn;}C=E;},this),r<p.length&&(C&&S(C,a()),v.add(p.splice(r).join(""))),l.sources.forEach(function(E){var T=l.sourceContentFor(E);T!=null&&(_!=null&&(E=o.join(_,E)),v.setSourceContent(E,T));}),v;function S(E,T){if(E===null||E.source===undefined)v.add(T);else {var O=_?o.join(_,E.source):E.source;v.add(new s(E.originalLine,E.originalColumn,O,T,E.name));}}},s.prototype.add=function(n){if(Array.isArray(n))n.forEach(function(l){this.add(l);},this);else if(n[u]||typeof n=="string")n&&this.children.push(n);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+n);return this},s.prototype.prepend=function(n){if(Array.isArray(n))for(var l=n.length-1;l>=0;l--)this.prepend(n[l]);else if(n[u]||typeof n=="string")this.children.unshift(n);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+n);return this},s.prototype.walk=function(n){for(var l,_=0,v=this.children.length;_<v;_++)l=this.children[_],l[u]?l.walk(n):l!==""&&n(l,{source:this.source,line:this.line,column:this.column,name:this.name});},s.prototype.join=function(n){var l,_,v=this.children.length;if(v>0){for(l=[],_=0;_<v-1;_++)l.push(this.children[_]),l.push(n);l.push(this.children[_]),this.children=l;}return this},s.prototype.replaceRight=function(n,l){var _=this.children[this.children.length-1];return _[u]?_.replaceRight(n,l):typeof _=="string"?this.children[this.children.length-1]=_.replace(n,l):this.children.push("".replace(n,l)),this},s.prototype.setSourceContent=function(n,l){this.sourceContents[o.toSetString(n)]=l;},s.prototype.walkSourceContents=function(n){for(var l=0,_=this.children.length;l<_;l++)this.children[l][u]&&this.children[l].walkSourceContents(n);for(var v=Object.keys(this.sourceContents),l=0,_=v.length;l<_;l++)n(o.fromSetString(v[l]),this.sourceContents[v[l]]);},s.prototype.toString=function(){var n="";return this.walk(function(l){n+=l;}),n},s.prototype.toStringWithSourceMap=function(n){var l={code:"",line:1,column:0},_=new e(n),v=false,p=null,r=null,a=null,f=null;return this.walk(function(y,C){l.code+=y,C.source!==null&&C.line!==null&&C.column!==null?((p!==C.source||r!==C.line||a!==C.column||f!==C.name)&&_.addMapping({source:C.source,original:{line:C.line,column:C.column},generated:{line:l.line,column:l.column},name:C.name}),p=C.source,r=C.line,a=C.column,f=C.name,v=true):v&&(_.addMapping({generated:{line:l.line,column:l.column}}),p=null,v=false);for(var S=0,E=y.length;S<E;S++)y.charCodeAt(S)===g?(l.line++,l.column=0,S+1===E?(p=null,v=false):v&&_.addMapping({source:C.source,original:{line:C.line,column:C.column},generated:{line:l.line,column:l.column},name:C.name})):l.column++;}),this.walkSourceContents(function(y,C){_.setSourceContent(y,C);}),{code:l.code,map:_}},t.SourceNode=s;}}),mt=I({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/source-map.js"(t){t.SourceMapGenerator=Re().SourceMapGenerator,t.SourceMapConsumer=ft().SourceMapConsumer,t.SourceNode=dt().SourceNode;}}),pt=nt(mt()),ae=false,P=t=>`
|
|
12
|
-
in ${t}`,ht=/^data:application\/json[^,]+base64,/,gt=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,Me=async(t,e)=>{let
|
|
13
|
-
`),
|
|
14
|
-
`),
|
|
15
|
-
`),a=0,
|
|
16
|
-
${p[a].replace(" at new "," at ")}`,
|
|
17
|
-
in ${t}`;return e&&(
|
|
9
|
+
var me="0.3.28",q=`bippy-${me}`,fe=Object.defineProperty,He=Object.prototype.hasOwnProperty,H=()=>{},pe=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{}},he=(t=j())=>"getFiberRoots"in t,ge=false,de,W=(t=j())=>ge?true:(typeof t.inject=="function"&&(de=t.inject.toString()),!!de?.includes("(injected)")),$=new Set,P=new Set,ve=t=>{let e=new Map,i=0,f={checkDCE:pe,supportsFiber:true,supportsFlight:true,hasUnsupportedRendererAttached:false,renderers:e,onCommitFiberRoot:H,onCommitFiberUnmount:H,onPostCommitFiberRoot:H,on:H,inject(C){let l=++i;return e.set(l,C),P.add(C),f._instrumentationIsActive||(f._instrumentationIsActive=true,$.forEach(r=>r())),l},_instrumentationSource:q,_instrumentationIsActive:false};try{fe(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{get(){return f},set(r){if(r&&typeof r=="object"){let o=f.renderers;f=r,o.size>0&&(o.forEach((s,c)=>{P.add(s),r.renderers.set(c,s);}),z(t));}},configurable:!0,enumerable:!0});let C=window.hasOwnProperty,l=!1;fe(window,"hasOwnProperty",{value:function(){try{if(!l&&arguments[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,l=!0,-0}catch{}return C.apply(this,arguments)},configurable:!0,writable:!0});}catch{z(t);}return f},z=t=>{try{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!e)return;if(!e._instrumentationSource){if(e.checkDCE=pe,e.supportsFiber=!0,e.supportsFlight=!0,e.hasUnsupportedRendererAttached=!1,e._instrumentationSource=q,e._instrumentationIsActive=!1,e.on=H,e.renderers.size){e._instrumentationIsActive=!0,$.forEach(f=>f());return}let i=e.inject;W(e)&&!he()&&(ge=!0,e.inject({scheduleRefresh(){}})&&(e._instrumentationIsActive=!0)),e.inject=f=>{let C=i(f);return P.add(f),e._instrumentationIsActive=!0,$.forEach(l=>l()),C};}(e.renderers.size||e._instrumentationIsActive||W())&&t?.();}catch{}},_e=()=>He.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),j=t=>_e()?(z(t),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):ve(t),ye=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),Ce=()=>{try{ye()&&j();}catch{}},Y=0,K=1;var Q=5;var X=11,J=13;var Z=15,ee=16;var te=19;var ne=26,re=27,oe=28,ie=30;var U=t=>{let e=t;return typeof e=="function"?e:typeof e=="object"&&e?U(e.type||e.render):null},B=t=>{let e=t;if(typeof e=="string")return e;if(typeof e!="function"&&!(typeof e=="object"&&e))return null;let i=e.displayName||e.name||null;if(i)return i;let f=U(e);return f&&(f.displayName||f.name)||null};var se=t=>{let e=j();for(let i of e.renderers.values())try{let f=i.findFiberByHostInstance?.(t);if(f)return f}catch{}if(typeof t=="object"&&t!=null){if("_reactRootContainer"in t)return t._reactRootContainer?._internalRoot?.current?.child;for(let i in t)if(i.startsWith("__reactContainer$")||i.startsWith("__reactInternalInstance$")||i.startsWith("__reactFiber"))return t[i]||null}return null};Ce();var Xe=Object.create,Se=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,be=Object.getOwnPropertyNames,Ze=Object.getPrototypeOf,et=Object.prototype.hasOwnProperty,k=(t,e)=>function(){return e||(0, t[be(t)[0]])((e={exports:{}}).exports,e),e.exports},tt=(t,e,i,f)=>{if(e&&typeof e=="object"||typeof e=="function")for(var C=be(e),l=0,r=C.length,o;l<r;l++)o=C[l],!et.call(t,o)&&o!==i&&Se(t,o,{get:(s=>e[s]).bind(null,o),enumerable:!(f=Je(e,o))||f.enumerable});return t},nt=(t,e,i)=>(i=t!=null?Xe(Ze(t)):{},tt(Se(i,"default",{value:t,enumerable:true}),t)),Ee=/^\s*at .*(\S+:\d+|\(native\))/m,rt=/^(eval@)?(\[native code\])?$/;function ot(t,e){return t.match(Ee)?it(t,e):st(t,e)}function we(t){if(!t.includes(":"))return [t,undefined,undefined];let i=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/[()]/g,""));return [i[1],i[2]||undefined,i[3]||undefined]}function Te(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 it(t,e){return Te(t.split(`
|
|
10
|
+
`).filter(f=>!!f.match(Ee)),e).map(f=>{f.includes("(eval ")&&(f=f.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let C=f.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),l=C.match(/ (\(.+\)$)/);C=l?C.replace(l[0],""):C;let r=we(l?l[1]:C),o=l&&C||undefined,s=["eval","<anonymous>"].includes(r[0])?undefined:r[0];return {function:o,file:s,line:r[1]?+r[1]:undefined,col:r[2]?+r[2]:undefined,raw:f}})}function st(t,e){return Te(t.split(`
|
|
11
|
+
`).filter(f=>!f.match(rt)),e).map(f=>{if(f.includes(" > eval")&&(f=f.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!f.includes("@")&&!f.includes(":"))return {function:f};{let C=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,l=f.match(C),r=l&&l[1]?l[1]:undefined,o=we(f.replace(C,""));return {function:r,file:o[0],line:o[1]?+o[1]:undefined,col:o[2]?+o[2]:undefined,raw:f}}})}var at=k({"../../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(i){if(0<=i&&i<e.length)return e[i];throw new TypeError("Must be between 0 and 63: "+i)},t.decode=function(i){var f=65,C=90,l=97,r=122,o=48,s=57,c=43,g=47,m=26,p=52;return f<=i&&i<=C?i-f:l<=i&&i<=r?i-l+m:o<=i&&i<=s?i-o+p:i==c?62:i==g?63:-1};}}),Le=k({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.js"(t){var e=at(),i=5,f=1<<i,C=f-1,l=f;function r(s){return s<0?(-s<<1)+1:(s<<1)+0}function o(s){var c=(s&1)===1,g=s>>1;return c?-g:g}t.encode=function(c){var g="",m,p=r(c);do m=p&C,p>>>=i,p>0&&(m|=l),g+=e.encode(m);while(p>0);return g},t.decode=function(c,g,m){var p=c.length,n=0,a=0,u,_;do{if(g>=p)throw new Error("Expected more digits in base 64 VLQ value.");if(_=e.decode(c.charCodeAt(g++)),_===-1)throw new Error("Invalid base64 digit: "+c.charAt(g-1));u=!!(_&l),_&=C,n=n+(_<<a),a+=i;}while(u);m.value=o(n),m.rest=g;};}}),G=k({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/util.js"(t){function e(d,h,S){if(h in d)return d[h];if(arguments.length===3)return S;throw new Error('"'+h+'" is a required argument.')}t.getArg=e;var i=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,f=/^data:.+\,.+$/;function C(d){var h=d.match(i);return h?{scheme:h[1],auth:h[2],host:h[3],port:h[4],path:h[5]}:null}t.urlParse=C;function l(d){var h="";return d.scheme&&(h+=d.scheme+":"),h+="//",d.auth&&(h+=d.auth+"@"),d.host&&(h+=d.host),d.port&&(h+=":"+d.port),d.path&&(h+=d.path),h}t.urlGenerate=l;var r=32;function o(d){var h=[];return function(S){for(var v=0;v<h.length;v++)if(h[v].input===S){var A=h[0];return h[0]=h[v],h[v]=A,h[0].result}var w=d(S);return h.unshift({input:S,result:w}),h.length>r&&h.pop(),w}}var s=o(function(h){var S=h,v=C(h);if(v){if(!v.path)return h;S=v.path;}for(var A=t.isAbsolute(S),w=[],L=0,M=0;;)if(L=M,M=S.indexOf("/",L),M===-1){w.push(S.slice(L));break}else for(w.push(S.slice(L,M));M<S.length&&S[M]==="/";)M++;for(var N,I=0,M=w.length-1;M>=0;M--)N=w[M],N==="."?w.splice(M,1):N===".."?I++:I>0&&(N===""?(w.splice(M+1,I),I=0):(w.splice(M,2),I--));return S=w.join("/"),S===""&&(S=A?"/":"."),v?(v.path=S,l(v)):S});t.normalize=s;function c(d,h){d===""&&(d="."),h===""&&(h=".");var S=C(h),v=C(d);if(v&&(d=v.path||"/"),S&&!S.scheme)return v&&(S.scheme=v.scheme),l(S);if(S||h.match(f))return h;if(v&&!v.host&&!v.path)return v.host=h,l(v);var A=h.charAt(0)==="/"?h:s(d.replace(/\/+$/,"")+"/"+h);return v?(v.path=A,l(v)):A}t.join=c,t.isAbsolute=function(d){return d.charAt(0)==="/"||i.test(d)};function g(d,h){d===""&&(d="."),d=d.replace(/\/$/,"");for(var S=0;h.indexOf(d+"/")!==0;){var v=d.lastIndexOf("/");if(v<0||(d=d.slice(0,v),d.match(/^([^\/]+:\/)?\/*$/)))return h;++S;}return Array(S+1).join("../")+h.substr(d.length+1)}t.relative=g;var m=function(){var d=Object.create(null);return !("__proto__"in d)}();function p(d){return d}function n(d){return u(d)?"$"+d:d}t.toSetString=m?p:n;function a(d){return u(d)?d.slice(1):d}t.fromSetString=m?p:a;function u(d){if(!d)return false;var h=d.length;if(h<9||d.charCodeAt(h-1)!==95||d.charCodeAt(h-2)!==95||d.charCodeAt(h-3)!==111||d.charCodeAt(h-4)!==116||d.charCodeAt(h-5)!==111||d.charCodeAt(h-6)!==114||d.charCodeAt(h-7)!==112||d.charCodeAt(h-8)!==95||d.charCodeAt(h-9)!==95)return false;for(var S=h-10;S>=0;S--)if(d.charCodeAt(S)!==36)return false;return true}function _(d,h,S){var v=T(d.source,h.source);return v!==0||(v=d.originalLine-h.originalLine,v!==0)||(v=d.originalColumn-h.originalColumn,v!==0||S)||(v=d.generatedColumn-h.generatedColumn,v!==0)||(v=d.generatedLine-h.generatedLine,v!==0)?v:T(d.name,h.name)}t.compareByOriginalPositions=_;function y(d,h,S){var v;return v=d.originalLine-h.originalLine,v!==0||(v=d.originalColumn-h.originalColumn,v!==0||S)||(v=d.generatedColumn-h.generatedColumn,v!==0)||(v=d.generatedLine-h.generatedLine,v!==0)?v:T(d.name,h.name)}t.compareByOriginalPositionsNoSource=y;function b(d,h,S){var v=d.generatedLine-h.generatedLine;return v!==0||(v=d.generatedColumn-h.generatedColumn,v!==0||S)||(v=T(d.source,h.source),v!==0)||(v=d.originalLine-h.originalLine,v!==0)||(v=d.originalColumn-h.originalColumn,v!==0)?v:T(d.name,h.name)}t.compareByGeneratedPositionsDeflated=b;function E(d,h,S){var v=d.generatedColumn-h.generatedColumn;return v!==0||S||(v=T(d.source,h.source),v!==0)||(v=d.originalLine-h.originalLine,v!==0)||(v=d.originalColumn-h.originalColumn,v!==0)?v:T(d.name,h.name)}t.compareByGeneratedPositionsDeflatedNoLine=E;function T(d,h){return d===h?0:d===null?1:h===null?-1:d>h?1:-1}function O(d,h){var S=d.generatedLine-h.generatedLine;return S!==0||(S=d.generatedColumn-h.generatedColumn,S!==0)||(S=T(d.source,h.source),S!==0)||(S=d.originalLine-h.originalLine,S!==0)||(S=d.originalColumn-h.originalColumn,S!==0)?S:T(d.name,h.name)}t.compareByGeneratedPositionsInflated=O;function R(d){return JSON.parse(d.replace(/^\)]}'[^\n]*\n/,""))}t.parseSourceMapInput=R;function F(d,h,S){if(h=h||"",d&&(d[d.length-1]!=="/"&&h[0]!=="/"&&(d+="/"),h=d+h),S){var v=C(S);if(!v)throw new Error("sourceMapURL could not be parsed");if(v.path){var A=v.path.lastIndexOf("/");A>=0&&(v.path=v.path.substring(0,A+1));}h=c(l(v),h);}return s(h)}t.computeSourceURL=F;}}),Oe=k({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.js"(t){var e=G(),i=Object.prototype.hasOwnProperty,f=typeof Map<"u";function C(){this._array=[],this._set=f?new Map:Object.create(null);}C.fromArray=function(r,o){for(var s=new C,c=0,g=r.length;c<g;c++)s.add(r[c],o);return s},C.prototype.size=function(){return f?this._set.size:Object.getOwnPropertyNames(this._set).length},C.prototype.add=function(r,o){var s=f?r:e.toSetString(r),c=f?this.has(r):i.call(this._set,s),g=this._array.length;(!c||o)&&this._array.push(r),c||(f?this._set.set(r,g):this._set[s]=g);},C.prototype.has=function(r){if(f)return this._set.has(r);var o=e.toSetString(r);return i.call(this._set,o)},C.prototype.indexOf=function(r){if(f){var o=this._set.get(r);if(o>=0)return o}else {var s=e.toSetString(r);if(i.call(this._set,s))return this._set[s]}throw new Error('"'+r+'" is not in the set.')},C.prototype.at=function(r){if(r>=0&&r<this._array.length)return this._array[r];throw new Error("No element indexed by "+r)},C.prototype.toArray=function(){return this._array.slice()},t.ArraySet=C;}}),lt=k({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.js"(t){var e=G();function i(C,l){var r=C.generatedLine,o=l.generatedLine,s=C.generatedColumn,c=l.generatedColumn;return o>r||o==r&&c>=s||e.compareByGeneratedPositionsInflated(C,l)<=0}function f(){this._array=[],this._sorted=true,this._last={generatedLine:-1,generatedColumn:0};}f.prototype.unsortedForEach=function(l,r){this._array.forEach(l,r);},f.prototype.add=function(l){i(this._last,l)?(this._last=l,this._array.push(l)):(this._sorted=false,this._array.push(l));},f.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=true),this._array},t.MappingList=f;}}),Re=k({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.js"(t){var e=Le(),i=G(),f=Oe().ArraySet,C=lt().MappingList;function l(r){r||(r={}),this._file=i.getArg(r,"file",null),this._sourceRoot=i.getArg(r,"sourceRoot",null),this._skipValidation=i.getArg(r,"skipValidation",false),this._ignoreInvalidMapping=i.getArg(r,"ignoreInvalidMapping",false),this._sources=new f,this._names=new f,this._mappings=new C,this._sourcesContents=null;}l.prototype._version=3,l.fromSourceMap=function(o,s){var c=o.sourceRoot,g=new l(Object.assign(s||{},{file:o.file,sourceRoot:c}));return o.eachMapping(function(m){var p={generated:{line:m.generatedLine,column:m.generatedColumn}};m.source!=null&&(p.source=m.source,c!=null&&(p.source=i.relative(c,p.source)),p.original={line:m.originalLine,column:m.originalColumn},m.name!=null&&(p.name=m.name)),g.addMapping(p);}),o.sources.forEach(function(m){var p=m;c!==null&&(p=i.relative(c,m)),g._sources.has(p)||g._sources.add(p);var n=o.sourceContentFor(m);n!=null&&g.setSourceContent(m,n);}),g},l.prototype.addMapping=function(o){var s=i.getArg(o,"generated"),c=i.getArg(o,"original",null),g=i.getArg(o,"source",null),m=i.getArg(o,"name",null);!this._skipValidation&&this._validateMapping(s,c,g,m)===false||(g!=null&&(g=String(g),this._sources.has(g)||this._sources.add(g)),m!=null&&(m=String(m),this._names.has(m)||this._names.add(m)),this._mappings.add({generatedLine:s.line,generatedColumn:s.column,originalLine:c!=null&&c.line,originalColumn:c!=null&&c.column,source:g,name:m}));},l.prototype.setSourceContent=function(o,s){var c=o;this._sourceRoot!=null&&(c=i.relative(this._sourceRoot,c)),s!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(c)]=s):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(c)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null));},l.prototype.applySourceMap=function(o,s,c){var g=s;if(s==null){if(o.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);g=o.file;}var m=this._sourceRoot;m!=null&&(g=i.relative(m,g));var p=new f,n=new f;this._mappings.unsortedForEach(function(a){if(a.source===g&&a.originalLine!=null){var u=o.originalPositionFor({line:a.originalLine,column:a.originalColumn});u.source!=null&&(a.source=u.source,c!=null&&(a.source=i.join(c,a.source)),m!=null&&(a.source=i.relative(m,a.source)),a.originalLine=u.line,a.originalColumn=u.column,u.name!=null&&(a.name=u.name));}var _=a.source;_!=null&&!p.has(_)&&p.add(_);var y=a.name;y!=null&&!n.has(y)&&n.add(y);},this),this._sources=p,this._names=n,o.sources.forEach(function(a){var u=o.sourceContentFor(a);u!=null&&(c!=null&&(a=i.join(c,a)),m!=null&&(a=i.relative(m,a)),this.setSourceContent(a,u));},this);},l.prototype._validateMapping=function(o,s,c,g){if(s&&typeof s.line!="number"&&typeof s.column!="number"){var m="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(m),false;throw new Error(m)}if(!(o&&"line"in o&&"column"in o&&o.line>0&&o.column>=0&&!s&&!c&&!g)){if(o&&"line"in o&&"column"in o&&s&&"line"in s&&"column"in s&&o.line>0&&o.column>=0&&s.line>0&&s.column>=0&&c)return;var m="Invalid mapping: "+JSON.stringify({generated:o,source:c,original:s,name:g});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(m),false;throw new Error(m)}},l.prototype._serializeMappings=function(){for(var o=0,s=1,c=0,g=0,m=0,p=0,n="",a,u,_,y,b=this._mappings.toArray(),E=0,T=b.length;E<T;E++){if(u=b[E],a="",u.generatedLine!==s)for(o=0;u.generatedLine!==s;)a+=";",s++;else if(E>0){if(!i.compareByGeneratedPositionsInflated(u,b[E-1]))continue;a+=",";}a+=e.encode(u.generatedColumn-o),o=u.generatedColumn,u.source!=null&&(y=this._sources.indexOf(u.source),a+=e.encode(y-p),p=y,a+=e.encode(u.originalLine-1-g),g=u.originalLine-1,a+=e.encode(u.originalColumn-c),c=u.originalColumn,u.name!=null&&(_=this._names.indexOf(u.name),a+=e.encode(_-m),m=_)),n+=a;}return n},l.prototype._generateSourcesContent=function(o,s){return o.map(function(c){if(!this._sourcesContents)return null;s!=null&&(c=i.relative(s,c));var g=i.toSetString(c);return Object.prototype.hasOwnProperty.call(this._sourcesContents,g)?this._sourcesContents[g]:null},this)},l.prototype.toJSON=function(){var o={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(o.file=this._file),this._sourceRoot!=null&&(o.sourceRoot=this._sourceRoot),this._sourcesContents&&(o.sourcesContent=this._generateSourcesContent(o.sources,o.sourceRoot)),o},l.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=l;}}),ut=k({"../../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(i,f,C,l,r,o){var s=Math.floor((f-i)/2)+i,c=r(C,l[s],true);return c===0?s:c>0?f-s>1?e(s,f,C,l,r,o):o==t.LEAST_UPPER_BOUND?f<l.length?f:-1:s:s-i>1?e(i,s,C,l,r,o):o==t.LEAST_UPPER_BOUND?s:i<0?-1:i}t.search=function(f,C,l,r){if(C.length===0)return -1;var o=e(-1,C.length,f,C,l,r||t.GREATEST_LOWER_BOUND);if(o<0)return -1;for(;o-1>=0&&l(C[o],C[o-1],true)===0;)--o;return o};}}),ct=k({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.js"(t){function e(C){function l(s,c,g){var m=s[c];s[c]=s[g],s[g]=m;}function r(s,c){return Math.round(s+Math.random()*(c-s))}function o(s,c,g,m){if(g<m){var p=r(g,m),n=g-1;l(s,p,m);for(var a=s[m],u=g;u<m;u++)c(s[u],a,false)<=0&&(n+=1,l(s,n,u));l(s,n+1,u);var _=n+1;o(s,c,g,_-1),o(s,c,_+1,m);}}return o}function i(C){let l=e.toString();return new Function(`return ${l}`)()(C)}let f=new WeakMap;t.quickSort=function(C,l,r=0){let o=f.get(l);o===undefined&&(o=i(l),f.set(l,o)),o(C,l,r,C.length-1);};}}),ft=k({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.js"(t){var e=G(),i=ut(),f=Oe().ArraySet,C=Le(),l=ct().quickSort;function r(p,n){var a=p;return typeof p=="string"&&(a=e.parseSourceMapInput(p)),a.sections!=null?new m(a,n):new o(a,n)}r.fromSourceMap=function(p,n){return o.fromSourceMap(p,n)},r.prototype._version=3,r.prototype.__generatedMappings=null,Object.defineProperty(r.prototype,"_generatedMappings",{configurable:true,enumerable:true,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),r.prototype.__originalMappings=null,Object.defineProperty(r.prototype,"_originalMappings",{configurable:true,enumerable:true,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),r.prototype._charIsMappingSeparator=function(n,a){var u=n.charAt(a);return u===";"||u===","},r.prototype._parseMappings=function(n,a){throw new Error("Subclasses must implement _parseMappings")},r.GENERATED_ORDER=1,r.ORIGINAL_ORDER=2,r.GREATEST_LOWER_BOUND=1,r.LEAST_UPPER_BOUND=2,r.prototype.eachMapping=function(n,a,u){var _=a||null,y=u||r.GENERATED_ORDER,b;switch(y){case r.GENERATED_ORDER:b=this._generatedMappings;break;case r.ORIGINAL_ORDER:b=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var E=this.sourceRoot,T=n.bind(_),O=this._names,R=this._sources,F=this._sourceMapURL,d=0,h=b.length;d<h;d++){var S=b[d],v=S.source===null?null:R.at(S.source);v!==null&&(v=e.computeSourceURL(E,v,F)),T({source:v,generatedLine:S.generatedLine,generatedColumn:S.generatedColumn,originalLine:S.originalLine,originalColumn:S.originalColumn,name:S.name===null?null:O.at(S.name)});}},r.prototype.allGeneratedPositionsFor=function(n){var a=e.getArg(n,"line"),u={source:e.getArg(n,"source"),originalLine:a,originalColumn:e.getArg(n,"column",0)};if(u.source=this._findSourceIndex(u.source),u.source<0)return [];var _=[],y=this._findMapping(u,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,i.LEAST_UPPER_BOUND);if(y>=0){var b=this._originalMappings[y];if(n.column===undefined)for(var E=b.originalLine;b&&b.originalLine===E;)_.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++y];else for(var T=b.originalColumn;b&&b.originalLine===a&&b.originalColumn==T;)_.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++y];}return _},t.SourceMapConsumer=r;function o(p,n){var a=p;typeof p=="string"&&(a=e.parseSourceMapInput(p));var u=e.getArg(a,"version"),_=e.getArg(a,"sources"),y=e.getArg(a,"names",[]),b=e.getArg(a,"sourceRoot",null),E=e.getArg(a,"sourcesContent",null),T=e.getArg(a,"mappings"),O=e.getArg(a,"file",null);if(u!=this._version)throw new Error("Unsupported version: "+u);b&&(b=e.normalize(b)),_=_.map(String).map(e.normalize).map(function(R){return b&&e.isAbsolute(b)&&e.isAbsolute(R)?e.relative(b,R):R}),this._names=f.fromArray(y.map(String),true),this._sources=f.fromArray(_,true),this._absoluteSources=this._sources.toArray().map(function(R){return e.computeSourceURL(b,R,n)}),this.sourceRoot=b,this.sourcesContent=E,this._mappings=T,this._sourceMapURL=n,this.file=O;}o.prototype=Object.create(r.prototype),o.prototype.consumer=r,o.prototype._findSourceIndex=function(p){var n=p;if(this.sourceRoot!=null&&(n=e.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);var a;for(a=0;a<this._absoluteSources.length;++a)if(this._absoluteSources[a]==p)return a;return -1},o.fromSourceMap=function(n,a){var u=Object.create(o.prototype),_=u._names=f.fromArray(n._names.toArray(),true),y=u._sources=f.fromArray(n._sources.toArray(),true);u.sourceRoot=n._sourceRoot,u.sourcesContent=n._generateSourcesContent(u._sources.toArray(),u.sourceRoot),u.file=n._file,u._sourceMapURL=a,u._absoluteSources=u._sources.toArray().map(function(h){return e.computeSourceURL(u.sourceRoot,h,a)});for(var b=n._mappings.toArray().slice(),E=u.__generatedMappings=[],T=u.__originalMappings=[],O=0,R=b.length;O<R;O++){var F=b[O],d=new s;d.generatedLine=F.generatedLine,d.generatedColumn=F.generatedColumn,F.source&&(d.source=y.indexOf(F.source),d.originalLine=F.originalLine,d.originalColumn=F.originalColumn,F.name&&(d.name=_.indexOf(F.name)),T.push(d)),E.push(d);}return l(u.__originalMappings,e.compareByOriginalPositions),u},o.prototype._version=3,Object.defineProperty(o.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function s(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null;}let c=e.compareByGeneratedPositionsDeflatedNoLine;function g(p,n){let a=p.length,u=p.length-n;if(!(u<=1))if(u==2){let _=p[n],y=p[n+1];c(_,y)>0&&(p[n]=y,p[n+1]=_);}else if(u<20)for(let _=n;_<a;_++)for(let y=_;y>n;y--){let b=p[y-1],E=p[y];if(c(b,E)<=0)break;p[y-1]=E,p[y]=b;}else l(p,c,n);}o.prototype._parseMappings=function(n,a){var u=1,_=0,y=0,b=0,E=0,T=0,O=n.length,R=0,d={},h=[],S=[],v,w,L,M;let N=0;for(;R<O;)if(n.charAt(R)===";")u++,R++,_=0,g(S,N),N=S.length;else if(n.charAt(R)===",")R++;else {for(v=new s,v.generatedLine=u,L=R;L<O&&!this._charIsMappingSeparator(n,L);L++);for(n.slice(R,L),w=[];R<L;)C.decode(n,R,d),M=d.value,R=d.rest,w.push(M);if(w.length===2)throw new Error("Found a source, but no line and column");if(w.length===3)throw new Error("Found a source and line, but no column");if(v.generatedColumn=_+w[0],_=v.generatedColumn,w.length>1&&(v.source=E+w[1],E+=w[1],v.originalLine=y+w[2],y=v.originalLine,v.originalLine+=1,v.originalColumn=b+w[3],b=v.originalColumn,w.length>4&&(v.name=T+w[4],T+=w[4])),S.push(v),typeof v.originalLine=="number"){let x=v.source;for(;h.length<=x;)h.push(null);h[x]===null&&(h[x]=[]),h[x].push(v);}}g(S,N),this.__generatedMappings=S;for(var I=0;I<h.length;I++)h[I]!=null&&l(h[I],e.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...h);},o.prototype._findMapping=function(n,a,u,_,y,b){if(n[u]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+n[u]);if(n[_]<0)throw new TypeError("Column must be greater than or equal to 0, got "+n[_]);return i.search(n,a,y,b)},o.prototype.computeColumnSpans=function(){for(var n=0;n<this._generatedMappings.length;++n){var a=this._generatedMappings[n];if(n+1<this._generatedMappings.length){var u=this._generatedMappings[n+1];if(a.generatedLine===u.generatedLine){a.lastGeneratedColumn=u.generatedColumn-1;continue}}a.lastGeneratedColumn=1/0;}},o.prototype.originalPositionFor=function(n){var a={generatedLine:e.getArg(n,"line"),generatedColumn:e.getArg(n,"column")},u=this._findMapping(a,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(n,"bias",r.GREATEST_LOWER_BOUND));if(u>=0){var _=this._generatedMappings[u];if(_.generatedLine===a.generatedLine){var y=e.getArg(_,"source",null);y!==null&&(y=this._sources.at(y),y=e.computeSourceURL(this.sourceRoot,y,this._sourceMapURL));var b=e.getArg(_,"name",null);return b!==null&&(b=this._names.at(b)),{source:y,line:e.getArg(_,"originalLine",null),column:e.getArg(_,"originalColumn",null),name:b}}}return {source:null,line:null,column:null,name:null}},o.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(n){return n==null}):false},o.prototype.sourceContentFor=function(n,a){if(!this.sourcesContent)return null;var u=this._findSourceIndex(n);if(u>=0)return this.sourcesContent[u];var _=n;this.sourceRoot!=null&&(_=e.relative(this.sourceRoot,_));var y;if(this.sourceRoot!=null&&(y=e.urlParse(this.sourceRoot))){var b=_.replace(/^file:\/\//,"");if(y.scheme=="file"&&this._sources.has(b))return this.sourcesContent[this._sources.indexOf(b)];if((!y.path||y.path=="/")&&this._sources.has("/"+_))return this.sourcesContent[this._sources.indexOf("/"+_)]}if(a)return null;throw new Error('"'+_+'" is not in the SourceMap.')},o.prototype.generatedPositionFor=function(n){var a=e.getArg(n,"source");if(a=this._findSourceIndex(a),a<0)return {line:null,column:null,lastColumn:null};var u={source:a,originalLine:e.getArg(n,"line"),originalColumn:e.getArg(n,"column")},_=this._findMapping(u,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(n,"bias",r.GREATEST_LOWER_BOUND));if(_>=0){var y=this._originalMappings[_];if(y.source===u.source)return {line:e.getArg(y,"generatedLine",null),column:e.getArg(y,"generatedColumn",null),lastColumn:e.getArg(y,"lastGeneratedColumn",null)}}return {line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=o;function m(p,n){var a=p;typeof p=="string"&&(a=e.parseSourceMapInput(p));var u=e.getArg(a,"version"),_=e.getArg(a,"sections");if(u!=this._version)throw new Error("Unsupported version: "+u);this._sources=new f,this._names=new f;var y={line:-1,column:0};this._sections=_.map(function(b){if(b.url)throw new Error("Support for url field in sections not implemented.");var E=e.getArg(b,"offset"),T=e.getArg(E,"line"),O=e.getArg(E,"column");if(T<y.line||T===y.line&&O<y.column)throw new Error("Section offsets must be ordered and non-overlapping.");return y=E,{generatedOffset:{generatedLine:T+1,generatedColumn:O+1},consumer:new r(e.getArg(b,"map"),n)}});}m.prototype=Object.create(r.prototype),m.prototype.constructor=r,m.prototype._version=3,Object.defineProperty(m.prototype,"sources",{get:function(){for(var p=[],n=0;n<this._sections.length;n++)for(var a=0;a<this._sections[n].consumer.sources.length;a++)p.push(this._sections[n].consumer.sources[a]);return p}}),m.prototype.originalPositionFor=function(n){var a={generatedLine:e.getArg(n,"line"),generatedColumn:e.getArg(n,"column")},u=i.search(a,this._sections,function(y,b){var E=y.generatedLine-b.generatedOffset.generatedLine;return E||y.generatedColumn-b.generatedOffset.generatedColumn}),_=this._sections[u];return _?_.consumer.originalPositionFor({line:a.generatedLine-(_.generatedOffset.generatedLine-1),column:a.generatedColumn-(_.generatedOffset.generatedLine===a.generatedLine?_.generatedOffset.generatedColumn-1:0),bias:n.bias}):{source:null,line:null,column:null,name:null}},m.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(n){return n.consumer.hasContentsOfAllSources()})},m.prototype.sourceContentFor=function(n,a){for(var u=0;u<this._sections.length;u++){var _=this._sections[u],y=_.consumer.sourceContentFor(n,true);if(y||y==="")return y}if(a)return null;throw new Error('"'+n+'" is not in the SourceMap.')},m.prototype.generatedPositionFor=function(n){for(var a=0;a<this._sections.length;a++){var u=this._sections[a];if(u.consumer._findSourceIndex(e.getArg(n,"source"))!==-1){var _=u.consumer.generatedPositionFor(n);if(_){var y={line:_.line+(u.generatedOffset.generatedLine-1),column:_.column+(u.generatedOffset.generatedLine===_.line?u.generatedOffset.generatedColumn-1:0)};return y}}}return {line:null,column:null}},m.prototype._parseMappings=function(n,a){this.__generatedMappings=[],this.__originalMappings=[];for(var u=0;u<this._sections.length;u++)for(var _=this._sections[u],y=_.consumer._generatedMappings,b=0;b<y.length;b++){var E=y[b],T=_.consumer._sources.at(E.source);T!==null&&(T=e.computeSourceURL(_.consumer.sourceRoot,T,this._sourceMapURL)),this._sources.add(T),T=this._sources.indexOf(T);var O=null;E.name&&(O=_.consumer._names.at(E.name),this._names.add(O),O=this._names.indexOf(O));var R={source:T,generatedLine:E.generatedLine+(_.generatedOffset.generatedLine-1),generatedColumn:E.generatedColumn+(_.generatedOffset.generatedLine===E.generatedLine?_.generatedOffset.generatedColumn-1:0),originalLine:E.originalLine,originalColumn:E.originalColumn,name:O};this.__generatedMappings.push(R),typeof R.originalLine=="number"&&this.__originalMappings.push(R);}l(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),l(this.__originalMappings,e.compareByOriginalPositions);},t.IndexedSourceMapConsumer=m;}}),dt=k({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.js"(t){var e=Re().SourceMapGenerator,i=G(),f=/(\r?\n)/,C=10,l="$$$isSourceNode$$$";function r(o,s,c,g,m){this.children=[],this.sourceContents={},this.line=o??null,this.column=s??null,this.source=c??null,this.name=m??null,this[l]=true,g!=null&&this.add(g);}r.fromStringWithSourceMap=function(s,c,g){var m=new r,p=s.split(f),n=0,a=function(){var E=O(),T=O()||"";return E+T;function O(){return n<p.length?p[n++]:undefined}},u=1,_=0,y=null;return c.eachMapping(function(E){if(y!==null)if(u<E.generatedLine)b(y,a()),u++,_=0;else {var T=p[n]||"",O=T.substr(0,E.generatedColumn-_);p[n]=T.substr(E.generatedColumn-_),_=E.generatedColumn,b(y,O),y=E;return}for(;u<E.generatedLine;)m.add(a()),u++;if(_<E.generatedColumn){var T=p[n]||"";m.add(T.substr(0,E.generatedColumn)),p[n]=T.substr(E.generatedColumn),_=E.generatedColumn;}y=E;},this),n<p.length&&(y&&b(y,a()),m.add(p.splice(n).join(""))),c.sources.forEach(function(E){var T=c.sourceContentFor(E);T!=null&&(g!=null&&(E=i.join(g,E)),m.setSourceContent(E,T));}),m;function b(E,T){if(E===null||E.source===undefined)m.add(T);else {var O=g?i.join(g,E.source):E.source;m.add(new r(E.originalLine,E.originalColumn,O,T,E.name));}}},r.prototype.add=function(s){if(Array.isArray(s))s.forEach(function(c){this.add(c);},this);else if(s[l]||typeof s=="string")s&&this.children.push(s);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+s);return this},r.prototype.prepend=function(s){if(Array.isArray(s))for(var c=s.length-1;c>=0;c--)this.prepend(s[c]);else if(s[l]||typeof s=="string")this.children.unshift(s);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+s);return this},r.prototype.walk=function(s){for(var c,g=0,m=this.children.length;g<m;g++)c=this.children[g],c[l]?c.walk(s):c!==""&&s(c,{source:this.source,line:this.line,column:this.column,name:this.name});},r.prototype.join=function(s){var c,g,m=this.children.length;if(m>0){for(c=[],g=0;g<m-1;g++)c.push(this.children[g]),c.push(s);c.push(this.children[g]),this.children=c;}return this},r.prototype.replaceRight=function(s,c){var g=this.children[this.children.length-1];return g[l]?g.replaceRight(s,c):typeof g=="string"?this.children[this.children.length-1]=g.replace(s,c):this.children.push("".replace(s,c)),this},r.prototype.setSourceContent=function(s,c){this.sourceContents[i.toSetString(s)]=c;},r.prototype.walkSourceContents=function(s){for(var c=0,g=this.children.length;c<g;c++)this.children[c][l]&&this.children[c].walkSourceContents(s);for(var m=Object.keys(this.sourceContents),c=0,g=m.length;c<g;c++)s(i.fromSetString(m[c]),this.sourceContents[m[c]]);},r.prototype.toString=function(){var s="";return this.walk(function(c){s+=c;}),s},r.prototype.toStringWithSourceMap=function(s){var c={code:"",line:1,column:0},g=new e(s),m=false,p=null,n=null,a=null,u=null;return this.walk(function(_,y){c.code+=_,y.source!==null&&y.line!==null&&y.column!==null?((p!==y.source||n!==y.line||a!==y.column||u!==y.name)&&g.addMapping({source:y.source,original:{line:y.line,column:y.column},generated:{line:c.line,column:c.column},name:y.name}),p=y.source,n=y.line,a=y.column,u=y.name,m=true):m&&(g.addMapping({generated:{line:c.line,column:c.column}}),p=null,m=false);for(var b=0,E=_.length;b<E;b++)_.charCodeAt(b)===C?(c.line++,c.column=0,b+1===E?(p=null,m=false):m&&g.addMapping({source:y.source,original:{line:y.line,column:y.column},generated:{line:c.line,column:c.column},name:y.name})):c.column++;}),this.walkSourceContents(function(_,y){g.setSourceContent(_,y);}),{code:c.code,map:g}},t.SourceNode=r;}}),mt=k({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/source-map.js"(t){t.SourceMapGenerator=Re().SourceMapGenerator,t.SourceMapConsumer=ft().SourceMapConsumer,t.SourceNode=dt().SourceNode;}}),pt=nt(mt()),ae=false,D=t=>`
|
|
12
|
+
in ${t}`,ht=/^data:application\/json[^,]+base64,/,gt=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,Me=async(t,e)=>{let i=e.split(`
|
|
13
|
+
`),f;for(let r=i.length-1;r>=0&&!f;r--){let o=i[r].match(gt);o&&(f=o[1]);}if(!f)return null;if(!(ht.test(f)||f.startsWith("/"))){let r=t.split("/");r[r.length-1]=f,f=r.join("/");}let l=await(await fetch(f)).json();return new pt.SourceMapConsumer(l)},Fe=async(t,e)=>{let i=ot(t);if(!i.length)return [];let f=i.slice(0,e);return (await Promise.all(f.map(async({file:l,line:r,col:o=0})=>{if(!l||!r)return null;try{let s=await fetch(l);if(s.ok){let c=await s.text(),g=await Me(l,c);if(g){let m=g.originalPositionFor({line:r,column:o});return {fileName:(g.file||m.source).replace(/^file:\/\//,""),lineNumber:m.line,columnNumber:m.column}}}return {fileName:l.replace(/^file:\/\//,""),lineNumber:r,columnNumber:o}}catch{return {fileName:l.replace(/^file:\/\//,""),lineNumber:r,columnNumber:o}}}))).filter(l=>l!==null)},V=(t,e)=>{if(!t||ae)return "";let i=Error.prepareStackTrace;Error.prepareStackTrace=undefined,ae=true;let f=Ae();le(null);let C=console.error,l=console.warn;console.error=()=>{},console.warn=()=>{};try{let s={DetermineComponentFrameRoot(){let p;try{if(e){let n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[]);}catch(a){p=a;}Reflect.construct(t,[],n);}else {try{n.call();}catch(a){p=a;}t.call(n.prototype);}}else {try{throw Error()}catch(a){p=a;}let n=t();n&&typeof n.catch=="function"&&n.catch(()=>{});}}catch(n){if(n&&p&&typeof n.stack=="string")return [n.stack,p.stack]}return [null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot",Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name")?.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});let[g,m]=s.DetermineComponentFrameRoot();if(g&&m){let p=g.split(`
|
|
14
|
+
`),n=m.split(`
|
|
15
|
+
`),a=0,u=0;for(;a<p.length&&!p[a].includes("DetermineComponentFrameRoot");)a++;for(;u<n.length&&!n[u].includes("DetermineComponentFrameRoot");)u++;if(a===p.length||u===n.length)for(a=p.length-1,u=n.length-1;a>=1&&u>=0&&p[a]!==n[u];)u--;for(;a>=1&&u>=0;a--,u--)if(p[a]!==n[u]){if(a!==1||u!==1)do if(a--,u--,u<0||p[a]!==n[u]){let _=`
|
|
16
|
+
${p[a].replace(" at new "," at ")}`,y=B(t);return y&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",y)),_}while(a>=1&&u>=0);break}}}finally{ae=false,Error.prepareStackTrace=i,le(f),console.error=C,console.warn=l;}let r=t?B(t):"";return r?D(r):""},Ae=()=>{let t=j();for(let e of [...Array.from(P),...Array.from(t.renderers.values())]){let i=e.currentDispatcherRef;if(i&&typeof i=="object")return "H"in i?i.H:i.current}return null},le=t=>{for(let e of P){let i=e.currentDispatcherRef;i&&typeof i=="object"&&("H"in i?i.H=t:i.current=t);}};var Ne=(t,e)=>{switch(t.tag){case ne:case re:case Q:return D(t.type);case ee:return D("Lazy");case J:return t.child!==e&&e!==null?D("Suspense Fallback"):D("Suspense");case te:return D("SuspenseList");case Y:case Z:return V(t.type,false);case X:return V(t.type.render,false);case K:return V(t.type,true);case oe:return D("Activity");case ie:return D("ViewTransition");default:return ""}},Ie=(t,e,i)=>{let f=`
|
|
17
|
+
in ${t}`;return e&&(f+=` (at ${e})`),f},ue=t=>{try{let e="",i=t,f=null;do{e+=Ne(i,f);let C=i._debugInfo;if(C&&Array.isArray(C))for(let l=C.length-1;l>=0;l--){let r=C[l];typeof r.name=="string"&&(e+=Ie(r.name,r.env,r.debugLocation));}f=i,i=i.return;}while(i);return e}catch(e){return e instanceof Error?`
|
|
18
18
|
Error generating stack: ${e.message}
|
|
19
|
-
${e.stack}`:""}},ke=t=>t.length?t[0]===t[0].toUpperCase():false,ce=async t=>{let e=/\n\s+(?:in|at)\s+([^\s(]+)(?:\s+\((?:at\s+)?([^)]+)\))?/g,
|
|
20
|
-
`)},xe=t=>{let e=
|
|
21
|
-
`)};var _t=()=>{let t=null,e=null,
|
|
19
|
+
${e.stack}`:""}},ke=t=>t.length?t[0]===t[0].toUpperCase():false,ce=async t=>{let e=/\n\s+(?:in|at)\s+([^\s(]+)(?:\s+\((?:at\s+)?([^)]+)\))?/g,i=[],f;for(f=e.exec(t);f!==null;){let C=f[1],l=f[2];if(!ke(C)){f=e.exec(t),i.push({name:C,source:undefined});continue}let r;if(l&&l!=="Server")try{let o=` at ${C} (${l})`,s=await Fe(o,1);s.length>0&&(r=s[0]);}catch{}i.push({name:C,source:r||undefined}),f=e.exec(t);}return i};var De=async t=>{let e=se(t);if(!e)return null;let i=ue(e);return (await ce(i)).map(l=>({componentName:l.name,fileName:l.source?.fileName}))},Pe=t=>t.filter(e=>e.fileName&&!e.fileName.includes("node_modules")&&e.componentName.length>1&&!e.fileName.startsWith("_")),vt=t=>{if(t.length===0)return "";if(t.length===1){let f=t[0].lastIndexOf("/");return f>0?t[0].substring(0,f+1):""}let e=t[0];for(let f=1;f<t.length;f++){let C=t[f],l=0;for(;l<e.length&&l<C.length&&e[l]===C[l];)l++;e=e.substring(0,l);}let i=e.lastIndexOf("/");return i>0?e.substring(0,i+1):""},je=t=>{let e=t.map(f=>f.fileName).filter(f=>!!f),i=vt(e);return t.map(f=>{let C=f.fileName;return C&&i&&(C=C.startsWith(i)?C.substring(i.length):C),`${f.componentName}${C?` (${C})`:""}`}).join(`
|
|
20
|
+
`)},xe=t=>{let e=g=>{let m=g.tagName.toLowerCase(),p=["id","class","name","type","role","aria-label"],n=50,a=Array.from(g.attributes).filter(u=>p.includes(u.name)||u.name.startsWith("data-")).map(u=>{let _=u.value;return _.length>n&&(_=_.substring(0,n)+"..."),`${u.name}="${_}"`}).join(" ");return a?`<${m} ${a}>`:`<${m}>`},i=g=>`</${g.tagName.toLowerCase()}>`,f=g=>Array.from(g.children).length,C=g=>{let m="",p=Array.from(g.childNodes);for(let a of p)a.nodeType===Node.TEXT_NODE&&(m+=a.textContent||"");m=m.trim();let n=100;return m.length>n&&(m=m.substring(0,n)+"..."),m},l=[],r=t.parentElement;if(r){l.push(e(r));let m=Array.from(r.children).indexOf(t);m>0&&l.push(` ... (${m} element${m===1?"":"s"})`);}let o=r?" ":"";l.push(o+"<!-- SELECTED -->"),l.push(o+e(t));let s=C(t),c=f(t);if(s&&l.push(`${o} ${s}`),c>0&&l.push(`${o} ... (${c} element${c===1?"":"s"})`),l.push(o+i(t)),r){let g=Array.from(r.children),m=g.indexOf(t),p=g.length-m-1;p>0&&l.push(` ... (${p} element${p===1?"":"s"})`),l.push(i(r));}return l.join(`
|
|
21
|
+
`)};var _t=()=>{let t=null,e=null,i=false,f=false,C=null,l=null,r=null,o=async w=>{if(!document.hasFocus()){r=w;return}try{await navigator.clipboard.writeText(w),r=null,S();}catch{let L=document.createElement("textarea");L.value=w,L.style.position="fixed",L.style.left="-999999px",L.style.top="-999999px",document.body.appendChild(L),L.focus(),L.select();try{document.execCommand("copy"),r=null,S();}catch(M){console.error("Failed to copy to clipboard:",M),S();}document.body.removeChild(L);}},s=()=>{r&&o(r);},c=0,g=0,m=0,p=0,n=0,a=0,u=0,_=0,y="",b=()=>{let w=document.activeElement;return w instanceof HTMLInputElement||w instanceof HTMLTextAreaElement||w?.tagName==="INPUT"||w?.tagName==="TEXTAREA"},E=()=>{let w=document.createElement("div");return w.style.position="fixed",w.style.border="2px solid #3b82f6",w.style.backgroundColor="rgba(59, 130, 246, 0.1)",w.style.pointerEvents="none",w.style.zIndex="999999",w.style.transition="none",document.body.appendChild(w),w},T=(w,L,M)=>w+(L-w)*M,O=()=>{if(!e||!i)return;let w=.5;c=T(c,n,w),g=T(g,a,w),m=T(m,u,w),p=T(p,_,w),e.style.left=`${c}px`,e.style.top=`${g}px`,e.style.width=`${m}px`,e.style.height=`${p}px`,e.style.borderRadius=y,l=requestAnimationFrame(O);},R=w=>{if(f)return;let L=document.elementFromPoint(w.clientX,w.clientY);if(!L||L===e)return;C=L;let M=L.getBoundingClientRect(),N=window.getComputedStyle(L);n=M.left,a=M.top,u=M.width,_=M.height,y=N.borderRadius;},F=w=>{if(!i)return;w.preventDefault(),w.stopPropagation(),w.stopImmediatePropagation(),f=true;let L=C;L&&De(L).then(M=>{if(!M){S();return}let N=je(Pe(M)),x=`## Referenced element
|
|
22
22
|
${xe(L)}
|
|
23
23
|
|
|
24
24
|
Import traces:
|
|
25
|
-
${
|
|
25
|
+
${N}
|
|
26
26
|
|
|
27
|
-
Page: ${window.location.href}`;
|
|
27
|
+
Page: ${window.location.href}`;o(x);});},d=w=>{i&&(w.preventDefault(),w.stopPropagation(),w.stopImmediatePropagation());},h=()=>{e||(e=E()),i=true,e.style.display="block",c=n,g=a,m=u,p=_,O();},S=()=>{i=false,f=false,e&&(e.style.display="none"),l&&(cancelAnimationFrame(l),l=null),C=null;},v=w=>{w.metaKey&&!t&&!i&&(t=setTimeout(()=>{b()||h(),t=null;},750));},A=w=>{w.metaKey||(t&&(clearTimeout(t),t=null),i&&!f&&S());};return document.addEventListener("keydown",v),document.addEventListener("keyup",A),document.addEventListener("mousemove",R),document.addEventListener("mousedown",d,true),document.addEventListener("click",F,true),window.addEventListener("focus",s),()=>{t&&clearTimeout(t),l&&cancelAnimationFrame(l),e&&e.parentNode&&e.parentNode.removeChild(e),document.removeEventListener("keydown",v),document.removeEventListener("keyup",A),document.removeEventListener("mousemove",R),document.removeEventListener("mousedown",d,true),document.removeEventListener("click",F,true),window.removeEventListener("focus",s);}};_t();/*! Bundled license information:
|
|
28
28
|
|
|
29
29
|
bippy/dist/src-CqIv1vpl.js:
|
|
30
30
|
(**
|
package/dist/index.js
CHANGED
|
@@ -85,6 +85,21 @@ var getHTMLSnippet = (element) => {
|
|
|
85
85
|
const children = Array.from(el.children);
|
|
86
86
|
return children.length;
|
|
87
87
|
};
|
|
88
|
+
const getTextContent = (el) => {
|
|
89
|
+
let text = "";
|
|
90
|
+
const childNodes = Array.from(el.childNodes);
|
|
91
|
+
for (const node of childNodes) {
|
|
92
|
+
if (node.nodeType === Node.TEXT_NODE) {
|
|
93
|
+
text += node.textContent || "";
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
text = text.trim();
|
|
97
|
+
const maxLength = 100;
|
|
98
|
+
if (text.length > maxLength) {
|
|
99
|
+
text = text.substring(0, maxLength) + "...";
|
|
100
|
+
}
|
|
101
|
+
return text;
|
|
102
|
+
};
|
|
88
103
|
const lines = [];
|
|
89
104
|
const parent = element.parentElement;
|
|
90
105
|
if (parent) {
|
|
@@ -100,7 +115,11 @@ var getHTMLSnippet = (element) => {
|
|
|
100
115
|
const indent = parent ? " " : "";
|
|
101
116
|
lines.push(indent + "<!-- SELECTED -->");
|
|
102
117
|
lines.push(indent + getElementTag(element));
|
|
118
|
+
const textContent = getTextContent(element);
|
|
103
119
|
const childrenCount = getChildrenCount(element);
|
|
120
|
+
if (textContent) {
|
|
121
|
+
lines.push(`${indent} ${textContent}`);
|
|
122
|
+
}
|
|
104
123
|
if (childrenCount > 0) {
|
|
105
124
|
lines.push(
|
|
106
125
|
`${indent} ... (${childrenCount} element${childrenCount === 1 ? "" : "s"})`
|
|
@@ -126,6 +145,7 @@ var init = () => {
|
|
|
126
145
|
let metaKeyTimer = null;
|
|
127
146
|
let overlay = null;
|
|
128
147
|
let isActive = false;
|
|
148
|
+
let isLocked = false;
|
|
129
149
|
let currentElement = null;
|
|
130
150
|
let animationFrame = null;
|
|
131
151
|
let pendingCopyText = null;
|
|
@@ -137,6 +157,7 @@ var init = () => {
|
|
|
137
157
|
try {
|
|
138
158
|
await navigator.clipboard.writeText(text);
|
|
139
159
|
pendingCopyText = null;
|
|
160
|
+
hideOverlay();
|
|
140
161
|
} catch {
|
|
141
162
|
const textarea = document.createElement("textarea");
|
|
142
163
|
textarea.value = text;
|
|
@@ -149,8 +170,10 @@ var init = () => {
|
|
|
149
170
|
try {
|
|
150
171
|
document.execCommand("copy");
|
|
151
172
|
pendingCopyText = null;
|
|
173
|
+
hideOverlay();
|
|
152
174
|
} catch (execErr) {
|
|
153
175
|
console.error("Failed to copy to clipboard:", execErr);
|
|
176
|
+
hideOverlay();
|
|
154
177
|
}
|
|
155
178
|
document.body.removeChild(textarea);
|
|
156
179
|
}
|
|
@@ -202,6 +225,7 @@ var init = () => {
|
|
|
202
225
|
animationFrame = requestAnimationFrame(updateOverlayPosition);
|
|
203
226
|
};
|
|
204
227
|
const handleMouseMove = (e) => {
|
|
228
|
+
if (isLocked) return;
|
|
205
229
|
const element = document.elementFromPoint(e.clientX, e.clientY);
|
|
206
230
|
if (!element || element === overlay) return;
|
|
207
231
|
currentElement = element;
|
|
@@ -218,11 +242,14 @@ var init = () => {
|
|
|
218
242
|
e.preventDefault();
|
|
219
243
|
e.stopPropagation();
|
|
220
244
|
e.stopImmediatePropagation();
|
|
245
|
+
isLocked = true;
|
|
221
246
|
const elementToInspect = currentElement;
|
|
222
|
-
hideOverlay();
|
|
223
247
|
if (elementToInspect) {
|
|
224
248
|
void getStack(elementToInspect).then((stack) => {
|
|
225
|
-
if (!stack)
|
|
249
|
+
if (!stack) {
|
|
250
|
+
hideOverlay();
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
226
253
|
const serializedStack = serializeStack(filterStack(stack));
|
|
227
254
|
const htmlSnippet = getHTMLSnippet(elementToInspect);
|
|
228
255
|
const payload = `## Referenced element
|
|
@@ -256,6 +283,7 @@ Page: ${window.location.href}`;
|
|
|
256
283
|
};
|
|
257
284
|
const hideOverlay = () => {
|
|
258
285
|
isActive = false;
|
|
286
|
+
isLocked = false;
|
|
259
287
|
if (overlay) {
|
|
260
288
|
overlay.style.display = "none";
|
|
261
289
|
}
|
|
@@ -281,7 +309,7 @@ Page: ${window.location.href}`;
|
|
|
281
309
|
clearTimeout(metaKeyTimer);
|
|
282
310
|
metaKeyTimer = null;
|
|
283
311
|
}
|
|
284
|
-
if (isActive) {
|
|
312
|
+
if (isActive && !isLocked) {
|
|
285
313
|
hideOverlay();
|
|
286
314
|
}
|
|
287
315
|
}
|