react-grab 0.0.5 → 0.0.7

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 CHANGED
@@ -58,86 +58,195 @@ var serializeStack = (stack) => {
58
58
  }).join("\n");
59
59
  };
60
60
  var getHTMLSnippet = (element) => {
61
- const getElementTag = (el) => {
61
+ const semanticTags = /* @__PURE__ */ new Set([
62
+ "article",
63
+ "aside",
64
+ "footer",
65
+ "form",
66
+ "header",
67
+ "main",
68
+ "nav",
69
+ "section"
70
+ ]);
71
+ const hasDistinguishingFeatures = (el) => {
62
72
  const tagName = el.tagName.toLowerCase();
63
- const importantAttrs = [
64
- "id",
65
- "class",
66
- "name",
67
- "type",
68
- "role",
69
- "aria-label"
70
- ];
71
- const maxValueLength = 50;
72
- const attrs = Array.from(el.attributes).filter((attr) => {
73
- return importantAttrs.includes(attr.name) || attr.name.startsWith("data-");
74
- }).map((attr) => {
73
+ if (semanticTags.has(tagName)) return true;
74
+ if (el.id) return true;
75
+ if (el.className && typeof el.className === "string") {
76
+ const classes = el.className.trim();
77
+ if (classes && classes.length > 0) return true;
78
+ }
79
+ return Array.from(el.attributes).some(
80
+ (attr) => attr.name.startsWith("data-")
81
+ );
82
+ };
83
+ const getAncestorChain = (el, maxDepth = 10) => {
84
+ const ancestors2 = [];
85
+ let current = el.parentElement;
86
+ let depth = 0;
87
+ while (current && depth < maxDepth && current.tagName !== "BODY") {
88
+ if (hasDistinguishingFeatures(current)) {
89
+ ancestors2.push(current);
90
+ if (ancestors2.length >= 3) break;
91
+ }
92
+ current = current.parentElement;
93
+ depth++;
94
+ }
95
+ return ancestors2.reverse();
96
+ };
97
+ const getCSSPath = (el) => {
98
+ const parts = [];
99
+ let current = el;
100
+ let depth = 0;
101
+ const maxDepth = 5;
102
+ while (current && depth < maxDepth && current.tagName !== "BODY") {
103
+ let selector = current.tagName.toLowerCase();
104
+ if (current.id) {
105
+ selector += `#${current.id}`;
106
+ parts.unshift(selector);
107
+ break;
108
+ } else if (current.className && typeof current.className === "string" && current.className.trim()) {
109
+ const classes = current.className.trim().split(/\s+/).slice(0, 2);
110
+ selector += `.${classes.join(".")}`;
111
+ }
112
+ if (!current.id && (!current.className || !current.className.trim()) && current.parentElement) {
113
+ const siblings = Array.from(current.parentElement.children);
114
+ const index = siblings.indexOf(current);
115
+ if (index >= 0 && siblings.length > 1) {
116
+ selector += `:nth-child(${index + 1})`;
117
+ }
118
+ }
119
+ parts.unshift(selector);
120
+ current = current.parentElement;
121
+ depth++;
122
+ }
123
+ return parts.join(" > ");
124
+ };
125
+ const getElementTag = (el, compact = false) => {
126
+ const tagName = el.tagName.toLowerCase();
127
+ const attrs = [];
128
+ if (el.id) {
129
+ attrs.push(`id="${el.id}"`);
130
+ }
131
+ if (el.className && typeof el.className === "string") {
132
+ const classes = el.className.trim().split(/\s+/);
133
+ if (classes.length > 0 && classes[0]) {
134
+ const displayClasses = compact ? classes.slice(0, 3) : classes;
135
+ let classStr = displayClasses.join(" ");
136
+ if (classStr.length > 30) {
137
+ classStr = classStr.substring(0, 30) + "...";
138
+ }
139
+ attrs.push(`class="${classStr}"`);
140
+ }
141
+ }
142
+ const dataAttrs = Array.from(el.attributes).filter(
143
+ (attr) => attr.name.startsWith("data-")
144
+ );
145
+ const displayDataAttrs = compact ? dataAttrs.slice(0, 1) : dataAttrs;
146
+ for (const attr of displayDataAttrs) {
75
147
  let value = attr.value;
76
- if (value.length > maxValueLength) {
77
- value = value.substring(0, maxValueLength) + "...";
148
+ if (value.length > 20) {
149
+ value = value.substring(0, 20) + "...";
78
150
  }
79
- return `${attr.name}="${value}"`;
80
- }).join(" ");
81
- return attrs ? `<${tagName} ${attrs}>` : `<${tagName}>`;
151
+ attrs.push(`${attr.name}="${value}"`);
152
+ }
153
+ const ariaLabel = el.getAttribute("aria-label");
154
+ if (ariaLabel && !compact) {
155
+ let value = ariaLabel;
156
+ if (value.length > 20) {
157
+ value = value.substring(0, 20) + "...";
158
+ }
159
+ attrs.push(`aria-label="${value}"`);
160
+ }
161
+ return attrs.length > 0 ? `<${tagName} ${attrs.join(" ")}>` : `<${tagName}>`;
82
162
  };
83
163
  const getClosingTag = (el) => {
84
164
  return `</${el.tagName.toLowerCase()}>`;
85
165
  };
86
- const getChildrenCount = (el) => {
87
- const children = Array.from(el.children);
88
- return children.length;
89
- };
90
166
  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;
167
+ let text = el.textContent || "";
168
+ text = text.trim().replace(/\s+/g, " ");
169
+ const maxLength = 60;
100
170
  if (text.length > maxLength) {
101
171
  text = text.substring(0, maxLength) + "...";
102
172
  }
103
173
  return text;
104
174
  };
175
+ const getSiblingIdentifier = (el) => {
176
+ if (el.id) return `#${el.id}`;
177
+ if (el.className && typeof el.className === "string") {
178
+ const classes = el.className.trim().split(/\s+/);
179
+ if (classes.length > 0 && classes[0]) {
180
+ return `.${classes[0]}`;
181
+ }
182
+ }
183
+ return null;
184
+ };
105
185
  const lines = [];
186
+ lines.push(`Path: ${getCSSPath(element)}`);
187
+ lines.push("");
188
+ const ancestors = getAncestorChain(element);
189
+ for (let i = 0; i < ancestors.length; i++) {
190
+ const indent2 = " ".repeat(i);
191
+ lines.push(indent2 + getElementTag(ancestors[i], true));
192
+ }
106
193
  const parent = element.parentElement;
194
+ let targetIndex = -1;
107
195
  if (parent) {
108
- lines.push(getElementTag(parent));
109
196
  const siblings = Array.from(parent.children);
110
- const targetIndex = siblings.indexOf(element);
197
+ targetIndex = siblings.indexOf(element);
111
198
  if (targetIndex > 0) {
112
- lines.push(
113
- ` ... (${targetIndex} element${targetIndex === 1 ? "" : "s"})`
114
- );
199
+ const prevSibling = siblings[targetIndex - 1];
200
+ const prevId = getSiblingIdentifier(prevSibling);
201
+ if (prevId && targetIndex <= 2) {
202
+ const indent2 = " ".repeat(ancestors.length);
203
+ lines.push(`${indent2} ${getElementTag(prevSibling, true)}`);
204
+ lines.push(`${indent2} </${prevSibling.tagName.toLowerCase()}>`);
205
+ } else if (targetIndex > 0) {
206
+ const indent2 = " ".repeat(ancestors.length);
207
+ lines.push(`${indent2} ... (${targetIndex} element${targetIndex === 1 ? "" : "s"})`);
208
+ }
115
209
  }
116
210
  }
117
- const indent = parent ? " " : "";
118
- lines.push(indent + "<!-- SELECTED -->");
119
- lines.push(indent + getElementTag(element));
211
+ const indent = " ".repeat(ancestors.length);
212
+ lines.push(indent + " <!-- SELECTED -->");
120
213
  const textContent = getTextContent(element);
121
- const childrenCount = getChildrenCount(element);
122
- if (textContent) {
123
- lines.push(`${indent} ${textContent}`);
124
- }
125
- if (childrenCount > 0) {
214
+ const childrenCount = element.children.length;
215
+ if (textContent && childrenCount === 0 && textContent.length < 40) {
126
216
  lines.push(
127
- `${indent} ... (${childrenCount} element${childrenCount === 1 ? "" : "s"})`
217
+ `${indent} ${getElementTag(element)}${textContent}${getClosingTag(element)}`
128
218
  );
219
+ } else {
220
+ lines.push(indent + " " + getElementTag(element));
221
+ if (textContent) {
222
+ lines.push(`${indent} ${textContent}`);
223
+ }
224
+ if (childrenCount > 0) {
225
+ lines.push(
226
+ `${indent} ... (${childrenCount} element${childrenCount === 1 ? "" : "s"})`
227
+ );
228
+ }
229
+ lines.push(indent + " " + getClosingTag(element));
129
230
  }
130
- lines.push(indent + getClosingTag(element));
131
- if (parent) {
231
+ if (parent && targetIndex >= 0) {
132
232
  const siblings = Array.from(parent.children);
133
- const targetIndex = siblings.indexOf(element);
134
233
  const siblingsAfter = siblings.length - targetIndex - 1;
135
234
  if (siblingsAfter > 0) {
136
- lines.push(
137
- ` ... (${siblingsAfter} element${siblingsAfter === 1 ? "" : "s"})`
138
- );
235
+ const nextSibling = siblings[targetIndex + 1];
236
+ const nextId = getSiblingIdentifier(nextSibling);
237
+ if (nextId && siblingsAfter <= 2) {
238
+ lines.push(`${indent} ${getElementTag(nextSibling, true)}`);
239
+ lines.push(`${indent} </${nextSibling.tagName.toLowerCase()}>`);
240
+ } else {
241
+ lines.push(
242
+ `${indent} ... (${siblingsAfter} element${siblingsAfter === 1 ? "" : "s"})`
243
+ );
244
+ }
139
245
  }
140
- lines.push(getClosingTag(parent));
246
+ }
247
+ for (let i = ancestors.length - 1; i >= 0; i--) {
248
+ const indent2 = " ".repeat(i);
249
+ lines.push(indent2 + getClosingTag(ancestors[i]));
141
250
  }
142
251
  return lines.join("\n");
143
252
  };
@@ -6,27 +6,27 @@ 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,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?`
9
+ var me="0.3.29",q=`bippy-${me}`,fe=Object.defineProperty,$e=Object.prototype.hasOwnProperty,$=()=>{},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=P())=>"getFiberRoots"in t,ge=false,de,V=(t=P())=>ge?true:(typeof t.inject=="function"&&(de=t.inject.toString()),!!de?.includes("(injected)")),G=new Set,j=new Set,ve=t=>{let e=new Map,s=0,m={checkDCE:pe,supportsFiber:true,supportsFlight:true,hasUnsupportedRendererAttached:false,renderers:e,onCommitFiberRoot:$,onCommitFiberUnmount:$,onPostCommitFiberRoot:$,on:$,inject(S){let c=++s;return e.set(c,S),j.add(S),m._instrumentationIsActive||(m._instrumentationIsActive=true,G.forEach(i=>i())),c},_instrumentationSource:q,_instrumentationIsActive:false};try{fe(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{get(){return m},set(i){if(i&&typeof i=="object"){let a=m.renderers;m=i,a.size>0&&(a.forEach((l,r)=>{j.add(l),i.renderers.set(r,l);}),z(t));}},configurable:!0,enumerable:!0});let S=window.hasOwnProperty,c=!1;fe(window,"hasOwnProperty",{value:function(){try{if(!c&&arguments[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,c=!0,-0}catch{}return S.apply(this,arguments)},configurable:!0,writable:!0});}catch{z(t);}return m},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=$,e.renderers.size){e._instrumentationIsActive=!0,G.forEach(m=>m());return}let s=e.inject;V(e)&&!he()&&(ge=!0,e.inject({scheduleRefresh(){}})&&(e._instrumentationIsActive=!0)),e.inject=m=>{let S=s(m);return j.add(m),e._instrumentationIsActive=!0,G.forEach(c=>c()),S};}(e.renderers.size||e._instrumentationIsActive||V())&&t?.();}catch{}},_e=()=>$e.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),P=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()&&P();}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 s=e.displayName||e.name||null;if(s)return s;let m=U(e);return m&&(m.displayName||m.name)||null};var se=t=>{let e=P();for(let s of e.renderers.values())try{let m=s.findFiberByHostInstance?.(t);if(m)return m}catch{}if(typeof t=="object"&&t!=null){if("_reactRootContainer"in t)return t._reactRootContainer?._internalRoot?.current?.child;for(let s in t)if(s.startsWith("__reactContainer$")||s.startsWith("__reactInternalInstance$")||s.startsWith("__reactFiber"))return t[s]||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,s,m)=>{if(e&&typeof e=="object"||typeof e=="function")for(var S=be(e),c=0,i=S.length,a;c<i;c++)a=S[c],!et.call(t,a)&&a!==s&&Se(t,a,{get:(l=>e[l]).bind(null,a),enumerable:!(m=Je(e,a))||m.enumerable});return t},nt=(t,e,s)=>(s=t!=null?Xe(Ze(t)):{},tt(Se(s,"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 s=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/[()]/g,""));return [s[1],s[2]||undefined,s[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(m=>!!m.match(Ee)),e).map(m=>{m.includes("(eval ")&&(m=m.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let S=m.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),c=S.match(/ (\(.+\)$)/);S=c?S.replace(c[0],""):S;let i=we(c?c[1]:S),a=c&&S||undefined,l=["eval","<anonymous>"].includes(i[0])?undefined:i[0];return {function:a,file:l,line:i[1]?+i[1]:undefined,col:i[2]?+i[2]:undefined,raw:m}})}function st(t,e){return Te(t.split(`
11
+ `).filter(m=>!m.match(rt)),e).map(m=>{if(m.includes(" > eval")&&(m=m.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!m.includes("@")&&!m.includes(":"))return {function:m};{let S=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,c=m.match(S),i=c&&c[1]?c[1]:undefined,a=we(m.replace(S,""));return {function:i,file:a[0],line:a[1]?+a[1]:undefined,col:a[2]?+a[2]:undefined,raw:m}}})}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(s){if(0<=s&&s<e.length)return e[s];throw new TypeError("Must be between 0 and 63: "+s)},t.decode=function(s){var m=65,S=90,c=97,i=122,a=48,l=57,r=43,C=47,y=26,h=52;return m<=s&&s<=S?s-m:c<=s&&s<=i?s-c+y:a<=s&&s<=l?s-a+h:s==r?62:s==C?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(),s=5,m=1<<s,S=m-1,c=m;function i(l){return l<0?(-l<<1)+1:(l<<1)+0}function a(l){var r=(l&1)===1,C=l>>1;return r?-C:C}t.encode=function(r){var C="",y,h=i(r);do y=h&S,h>>>=s,h>0&&(y|=c),C+=e.encode(y);while(h>0);return C},t.decode=function(r,C,y){var h=r.length,n=0,u=0,d,o;do{if(C>=h)throw new Error("Expected more digits in base 64 VLQ value.");if(o=e.decode(r.charCodeAt(C++)),o===-1)throw new Error("Invalid base64 digit: "+r.charAt(C-1));d=!!(o&c),o&=S,n=n+(o<<u),u+=s;}while(d);y.value=a(n),y.rest=C;};}}),H=k({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/util.js"(t){function e(p,g,E){if(g in p)return p[g];if(arguments.length===3)return E;throw new Error('"'+g+'" is a required argument.')}t.getArg=e;var s=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,m=/^data:.+\,.+$/;function S(p){var g=p.match(s);return g?{scheme:g[1],auth:g[2],host:g[3],port:g[4],path:g[5]}:null}t.urlParse=S;function c(p){var g="";return p.scheme&&(g+=p.scheme+":"),g+="//",p.auth&&(g+=p.auth+"@"),p.host&&(g+=p.host),p.port&&(g+=":"+p.port),p.path&&(g+=p.path),g}t.urlGenerate=c;var i=32;function a(p){var g=[];return function(E){for(var _=0;_<g.length;_++)if(g[_].input===E){var A=g[0];return g[0]=g[_],g[_]=A,g[0].result}var w=p(E);return g.unshift({input:E,result:w}),g.length>i&&g.pop(),w}}var l=a(function(g){var E=g,_=S(g);if(_){if(!_.path)return g;E=_.path;}for(var A=t.isAbsolute(E),w=[],M=0,F=0;;)if(M=F,F=E.indexOf("/",M),F===-1){w.push(E.slice(M));break}else for(w.push(E.slice(M,F));F<E.length&&E[F]==="/";)F++;for(var N,I=0,F=w.length-1;F>=0;F--)N=w[F],N==="."?w.splice(F,1):N===".."?I++:I>0&&(N===""?(w.splice(F+1,I),I=0):(w.splice(F,2),I--));return E=w.join("/"),E===""&&(E=A?"/":"."),_?(_.path=E,c(_)):E});t.normalize=l;function r(p,g){p===""&&(p="."),g===""&&(g=".");var E=S(g),_=S(p);if(_&&(p=_.path||"/"),E&&!E.scheme)return _&&(E.scheme=_.scheme),c(E);if(E||g.match(m))return g;if(_&&!_.host&&!_.path)return _.host=g,c(_);var A=g.charAt(0)==="/"?g:l(p.replace(/\/+$/,"")+"/"+g);return _?(_.path=A,c(_)):A}t.join=r,t.isAbsolute=function(p){return p.charAt(0)==="/"||s.test(p)};function C(p,g){p===""&&(p="."),p=p.replace(/\/$/,"");for(var E=0;g.indexOf(p+"/")!==0;){var _=p.lastIndexOf("/");if(_<0||(p=p.slice(0,_),p.match(/^([^\/]+:\/)?\/*$/)))return g;++E;}return Array(E+1).join("../")+g.substr(p.length+1)}t.relative=C;var y=function(){var p=Object.create(null);return !("__proto__"in p)}();function h(p){return p}function n(p){return d(p)?"$"+p:p}t.toSetString=y?h:n;function u(p){return d(p)?p.slice(1):p}t.fromSetString=y?h:u;function d(p){if(!p)return false;var g=p.length;if(g<9||p.charCodeAt(g-1)!==95||p.charCodeAt(g-2)!==95||p.charCodeAt(g-3)!==111||p.charCodeAt(g-4)!==116||p.charCodeAt(g-5)!==111||p.charCodeAt(g-6)!==114||p.charCodeAt(g-7)!==112||p.charCodeAt(g-8)!==95||p.charCodeAt(g-9)!==95)return false;for(var E=g-10;E>=0;E--)if(p.charCodeAt(E)!==36)return false;return true}function o(p,g,E){var _=T(p.source,g.source);return _!==0||(_=p.originalLine-g.originalLine,_!==0)||(_=p.originalColumn-g.originalColumn,_!==0||E)||(_=p.generatedColumn-g.generatedColumn,_!==0)||(_=p.generatedLine-g.generatedLine,_!==0)?_:T(p.name,g.name)}t.compareByOriginalPositions=o;function f(p,g,E){var _;return _=p.originalLine-g.originalLine,_!==0||(_=p.originalColumn-g.originalColumn,_!==0||E)||(_=p.generatedColumn-g.generatedColumn,_!==0)||(_=p.generatedLine-g.generatedLine,_!==0)?_:T(p.name,g.name)}t.compareByOriginalPositionsNoSource=f;function v(p,g,E){var _=p.generatedLine-g.generatedLine;return _!==0||(_=p.generatedColumn-g.generatedColumn,_!==0||E)||(_=T(p.source,g.source),_!==0)||(_=p.originalLine-g.originalLine,_!==0)||(_=p.originalColumn-g.originalColumn,_!==0)?_:T(p.name,g.name)}t.compareByGeneratedPositionsDeflated=v;function b(p,g,E){var _=p.generatedColumn-g.generatedColumn;return _!==0||E||(_=T(p.source,g.source),_!==0)||(_=p.originalLine-g.originalLine,_!==0)||(_=p.originalColumn-g.originalColumn,_!==0)?_:T(p.name,g.name)}t.compareByGeneratedPositionsDeflatedNoLine=b;function T(p,g){return p===g?0:p===null?1:g===null?-1:p>g?1:-1}function L(p,g){var E=p.generatedLine-g.generatedLine;return E!==0||(E=p.generatedColumn-g.generatedColumn,E!==0)||(E=T(p.source,g.source),E!==0)||(E=p.originalLine-g.originalLine,E!==0)||(E=p.originalColumn-g.originalColumn,E!==0)?E:T(p.name,g.name)}t.compareByGeneratedPositionsInflated=L;function O(p){return JSON.parse(p.replace(/^\)]}'[^\n]*\n/,""))}t.parseSourceMapInput=O;function R(p,g,E){if(g=g||"",p&&(p[p.length-1]!=="/"&&g[0]!=="/"&&(p+="/"),g=p+g),E){var _=S(E);if(!_)throw new Error("sourceMapURL could not be parsed");if(_.path){var A=_.path.lastIndexOf("/");A>=0&&(_.path=_.path.substring(0,A+1));}g=r(c(_),g);}return l(g)}t.computeSourceURL=R;}}),Oe=k({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.js"(t){var e=H(),s=Object.prototype.hasOwnProperty,m=typeof Map<"u";function S(){this._array=[],this._set=m?new Map:Object.create(null);}S.fromArray=function(i,a){for(var l=new S,r=0,C=i.length;r<C;r++)l.add(i[r],a);return l},S.prototype.size=function(){return m?this._set.size:Object.getOwnPropertyNames(this._set).length},S.prototype.add=function(i,a){var l=m?i:e.toSetString(i),r=m?this.has(i):s.call(this._set,l),C=this._array.length;(!r||a)&&this._array.push(i),r||(m?this._set.set(i,C):this._set[l]=C);},S.prototype.has=function(i){if(m)return this._set.has(i);var a=e.toSetString(i);return s.call(this._set,a)},S.prototype.indexOf=function(i){if(m){var a=this._set.get(i);if(a>=0)return a}else {var l=e.toSetString(i);if(s.call(this._set,l))return this._set[l]}throw new Error('"'+i+'" is not in the set.')},S.prototype.at=function(i){if(i>=0&&i<this._array.length)return this._array[i];throw new Error("No element indexed by "+i)},S.prototype.toArray=function(){return this._array.slice()},t.ArraySet=S;}}),lt=k({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.js"(t){var e=H();function s(S,c){var i=S.generatedLine,a=c.generatedLine,l=S.generatedColumn,r=c.generatedColumn;return a>i||a==i&&r>=l||e.compareByGeneratedPositionsInflated(S,c)<=0}function m(){this._array=[],this._sorted=true,this._last={generatedLine:-1,generatedColumn:0};}m.prototype.unsortedForEach=function(c,i){this._array.forEach(c,i);},m.prototype.add=function(c){s(this._last,c)?(this._last=c,this._array.push(c)):(this._sorted=false,this._array.push(c));},m.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=true),this._array},t.MappingList=m;}}),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(),s=H(),m=Oe().ArraySet,S=lt().MappingList;function c(i){i||(i={}),this._file=s.getArg(i,"file",null),this._sourceRoot=s.getArg(i,"sourceRoot",null),this._skipValidation=s.getArg(i,"skipValidation",false),this._ignoreInvalidMapping=s.getArg(i,"ignoreInvalidMapping",false),this._sources=new m,this._names=new m,this._mappings=new S,this._sourcesContents=null;}c.prototype._version=3,c.fromSourceMap=function(a,l){var r=a.sourceRoot,C=new c(Object.assign(l||{},{file:a.file,sourceRoot:r}));return a.eachMapping(function(y){var h={generated:{line:y.generatedLine,column:y.generatedColumn}};y.source!=null&&(h.source=y.source,r!=null&&(h.source=s.relative(r,h.source)),h.original={line:y.originalLine,column:y.originalColumn},y.name!=null&&(h.name=y.name)),C.addMapping(h);}),a.sources.forEach(function(y){var h=y;r!==null&&(h=s.relative(r,y)),C._sources.has(h)||C._sources.add(h);var n=a.sourceContentFor(y);n!=null&&C.setSourceContent(y,n);}),C},c.prototype.addMapping=function(a){var l=s.getArg(a,"generated"),r=s.getArg(a,"original",null),C=s.getArg(a,"source",null),y=s.getArg(a,"name",null);!this._skipValidation&&this._validateMapping(l,r,C,y)===false||(C!=null&&(C=String(C),this._sources.has(C)||this._sources.add(C)),y!=null&&(y=String(y),this._names.has(y)||this._names.add(y)),this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:C,name:y}));},c.prototype.setSourceContent=function(a,l){var r=a;this._sourceRoot!=null&&(r=s.relative(this._sourceRoot,r)),l!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[s.toSetString(r)]=l):this._sourcesContents&&(delete this._sourcesContents[s.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null));},c.prototype.applySourceMap=function(a,l,r){var C=l;if(l==null){if(a.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);C=a.file;}var y=this._sourceRoot;y!=null&&(C=s.relative(y,C));var h=new m,n=new m;this._mappings.unsortedForEach(function(u){if(u.source===C&&u.originalLine!=null){var d=a.originalPositionFor({line:u.originalLine,column:u.originalColumn});d.source!=null&&(u.source=d.source,r!=null&&(u.source=s.join(r,u.source)),y!=null&&(u.source=s.relative(y,u.source)),u.originalLine=d.line,u.originalColumn=d.column,d.name!=null&&(u.name=d.name));}var o=u.source;o!=null&&!h.has(o)&&h.add(o);var f=u.name;f!=null&&!n.has(f)&&n.add(f);},this),this._sources=h,this._names=n,a.sources.forEach(function(u){var d=a.sourceContentFor(u);d!=null&&(r!=null&&(u=s.join(r,u)),y!=null&&(u=s.relative(y,u)),this.setSourceContent(u,d));},this);},c.prototype._validateMapping=function(a,l,r,C){if(l&&typeof l.line!="number"&&typeof l.column!="number"){var y="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(y),false;throw new Error(y)}if(!(a&&"line"in a&&"column"in a&&a.line>0&&a.column>=0&&!l&&!r&&!C)){if(a&&"line"in a&&"column"in a&&l&&"line"in l&&"column"in l&&a.line>0&&a.column>=0&&l.line>0&&l.column>=0&&r)return;var y="Invalid mapping: "+JSON.stringify({generated:a,source:r,original:l,name:C});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(y),false;throw new Error(y)}},c.prototype._serializeMappings=function(){for(var a=0,l=1,r=0,C=0,y=0,h=0,n="",u,d,o,f,v=this._mappings.toArray(),b=0,T=v.length;b<T;b++){if(d=v[b],u="",d.generatedLine!==l)for(a=0;d.generatedLine!==l;)u+=";",l++;else if(b>0){if(!s.compareByGeneratedPositionsInflated(d,v[b-1]))continue;u+=",";}u+=e.encode(d.generatedColumn-a),a=d.generatedColumn,d.source!=null&&(f=this._sources.indexOf(d.source),u+=e.encode(f-h),h=f,u+=e.encode(d.originalLine-1-C),C=d.originalLine-1,u+=e.encode(d.originalColumn-r),r=d.originalColumn,d.name!=null&&(o=this._names.indexOf(d.name),u+=e.encode(o-y),y=o)),n+=u;}return n},c.prototype._generateSourcesContent=function(a,l){return a.map(function(r){if(!this._sourcesContents)return null;l!=null&&(r=s.relative(l,r));var C=s.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,C)?this._sourcesContents[C]:null},this)},c.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(a.file=this._file),this._sourceRoot!=null&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},c.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=c;}}),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(s,m,S,c,i,a){var l=Math.floor((m-s)/2)+s,r=i(S,c[l],true);return r===0?l:r>0?m-l>1?e(l,m,S,c,i,a):a==t.LEAST_UPPER_BOUND?m<c.length?m:-1:l:l-s>1?e(s,l,S,c,i,a):a==t.LEAST_UPPER_BOUND?l:s<0?-1:s}t.search=function(m,S,c,i){if(S.length===0)return -1;var a=e(-1,S.length,m,S,c,i||t.GREATEST_LOWER_BOUND);if(a<0)return -1;for(;a-1>=0&&c(S[a],S[a-1],true)===0;)--a;return a};}}),ct=k({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.js"(t){function e(S){function c(l,r,C){var y=l[r];l[r]=l[C],l[C]=y;}function i(l,r){return Math.round(l+Math.random()*(r-l))}function a(l,r,C,y){if(C<y){var h=i(C,y),n=C-1;c(l,h,y);for(var u=l[y],d=C;d<y;d++)r(l[d],u,false)<=0&&(n+=1,c(l,n,d));c(l,n+1,d);var o=n+1;a(l,r,C,o-1),a(l,r,o+1,y);}}return a}function s(S){let c=e.toString();return new Function(`return ${c}`)()(S)}let m=new WeakMap;t.quickSort=function(S,c,i=0){let a=m.get(c);a===undefined&&(a=s(c),m.set(c,a)),a(S,c,i,S.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=H(),s=ut(),m=Oe().ArraySet,S=Le(),c=ct().quickSort;function i(h,n){var u=h;return typeof h=="string"&&(u=e.parseSourceMapInput(h)),u.sections!=null?new y(u,n):new a(u,n)}i.fromSourceMap=function(h,n){return a.fromSourceMap(h,n)},i.prototype._version=3,i.prototype.__generatedMappings=null,Object.defineProperty(i.prototype,"_generatedMappings",{configurable:true,enumerable:true,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),i.prototype.__originalMappings=null,Object.defineProperty(i.prototype,"_originalMappings",{configurable:true,enumerable:true,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),i.prototype._charIsMappingSeparator=function(n,u){var d=n.charAt(u);return d===";"||d===","},i.prototype._parseMappings=function(n,u){throw new Error("Subclasses must implement _parseMappings")},i.GENERATED_ORDER=1,i.ORIGINAL_ORDER=2,i.GREATEST_LOWER_BOUND=1,i.LEAST_UPPER_BOUND=2,i.prototype.eachMapping=function(n,u,d){var o=u||null,f=d||i.GENERATED_ORDER,v;switch(f){case i.GENERATED_ORDER:v=this._generatedMappings;break;case i.ORIGINAL_ORDER:v=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var b=this.sourceRoot,T=n.bind(o),L=this._names,O=this._sources,R=this._sourceMapURL,p=0,g=v.length;p<g;p++){var E=v[p],_=E.source===null?null:O.at(E.source);_!==null&&(_=e.computeSourceURL(b,_,R)),T({source:_,generatedLine:E.generatedLine,generatedColumn:E.generatedColumn,originalLine:E.originalLine,originalColumn:E.originalColumn,name:E.name===null?null:L.at(E.name)});}},i.prototype.allGeneratedPositionsFor=function(n){var u=e.getArg(n,"line"),d={source:e.getArg(n,"source"),originalLine:u,originalColumn:e.getArg(n,"column",0)};if(d.source=this._findSourceIndex(d.source),d.source<0)return [];var o=[],f=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,s.LEAST_UPPER_BOUND);if(f>=0){var v=this._originalMappings[f];if(n.column===undefined)for(var b=v.originalLine;v&&v.originalLine===b;)o.push({line:e.getArg(v,"generatedLine",null),column:e.getArg(v,"generatedColumn",null),lastColumn:e.getArg(v,"lastGeneratedColumn",null)}),v=this._originalMappings[++f];else for(var T=v.originalColumn;v&&v.originalLine===u&&v.originalColumn==T;)o.push({line:e.getArg(v,"generatedLine",null),column:e.getArg(v,"generatedColumn",null),lastColumn:e.getArg(v,"lastGeneratedColumn",null)}),v=this._originalMappings[++f];}return o},t.SourceMapConsumer=i;function a(h,n){var u=h;typeof h=="string"&&(u=e.parseSourceMapInput(h));var d=e.getArg(u,"version"),o=e.getArg(u,"sources"),f=e.getArg(u,"names",[]),v=e.getArg(u,"sourceRoot",null),b=e.getArg(u,"sourcesContent",null),T=e.getArg(u,"mappings"),L=e.getArg(u,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);v&&(v=e.normalize(v)),o=o.map(String).map(e.normalize).map(function(O){return v&&e.isAbsolute(v)&&e.isAbsolute(O)?e.relative(v,O):O}),this._names=m.fromArray(f.map(String),true),this._sources=m.fromArray(o,true),this._absoluteSources=this._sources.toArray().map(function(O){return e.computeSourceURL(v,O,n)}),this.sourceRoot=v,this.sourcesContent=b,this._mappings=T,this._sourceMapURL=n,this.file=L;}a.prototype=Object.create(i.prototype),a.prototype.consumer=i,a.prototype._findSourceIndex=function(h){var n=h;if(this.sourceRoot!=null&&(n=e.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);var u;for(u=0;u<this._absoluteSources.length;++u)if(this._absoluteSources[u]==h)return u;return -1},a.fromSourceMap=function(n,u){var d=Object.create(a.prototype),o=d._names=m.fromArray(n._names.toArray(),true),f=d._sources=m.fromArray(n._sources.toArray(),true);d.sourceRoot=n._sourceRoot,d.sourcesContent=n._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=n._file,d._sourceMapURL=u,d._absoluteSources=d._sources.toArray().map(function(g){return e.computeSourceURL(d.sourceRoot,g,u)});for(var v=n._mappings.toArray().slice(),b=d.__generatedMappings=[],T=d.__originalMappings=[],L=0,O=v.length;L<O;L++){var R=v[L],p=new l;p.generatedLine=R.generatedLine,p.generatedColumn=R.generatedColumn,R.source&&(p.source=f.indexOf(R.source),p.originalLine=R.originalLine,p.originalColumn=R.originalColumn,R.name&&(p.name=o.indexOf(R.name)),T.push(p)),b.push(p);}return c(d.__originalMappings,e.compareByOriginalPositions),d},a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null;}let r=e.compareByGeneratedPositionsDeflatedNoLine;function C(h,n){let u=h.length,d=h.length-n;if(!(d<=1))if(d==2){let o=h[n],f=h[n+1];r(o,f)>0&&(h[n]=f,h[n+1]=o);}else if(d<20)for(let o=n;o<u;o++)for(let f=o;f>n;f--){let v=h[f-1],b=h[f];if(r(v,b)<=0)break;h[f-1]=b,h[f]=v;}else c(h,r,n);}a.prototype._parseMappings=function(n,u){var d=1,o=0,f=0,v=0,b=0,T=0,L=n.length,O=0,p={},g=[],E=[],_,w,M,F;let N=0;for(;O<L;)if(n.charAt(O)===";")d++,O++,o=0,C(E,N),N=E.length;else if(n.charAt(O)===",")O++;else {for(_=new l,_.generatedLine=d,M=O;M<L&&!this._charIsMappingSeparator(n,M);M++);for(n.slice(O,M),w=[];O<M;)S.decode(n,O,p),F=p.value,O=p.rest,w.push(F);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(_.generatedColumn=o+w[0],o=_.generatedColumn,w.length>1&&(_.source=b+w[1],b+=w[1],_.originalLine=f+w[2],f=_.originalLine,_.originalLine+=1,_.originalColumn=v+w[3],v=_.originalColumn,w.length>4&&(_.name=T+w[4],T+=w[4])),E.push(_),typeof _.originalLine=="number"){let x=_.source;for(;g.length<=x;)g.push(null);g[x]===null&&(g[x]=[]),g[x].push(_);}}C(E,N),this.__generatedMappings=E;for(var I=0;I<g.length;I++)g[I]!=null&&c(g[I],e.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...g);},a.prototype._findMapping=function(n,u,d,o,f,v){if(n[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+n[d]);if(n[o]<0)throw new TypeError("Column must be greater than or equal to 0, got "+n[o]);return s.search(n,u,f,v)},a.prototype.computeColumnSpans=function(){for(var n=0;n<this._generatedMappings.length;++n){var u=this._generatedMappings[n];if(n+1<this._generatedMappings.length){var d=this._generatedMappings[n+1];if(u.generatedLine===d.generatedLine){u.lastGeneratedColumn=d.generatedColumn-1;continue}}u.lastGeneratedColumn=1/0;}},a.prototype.originalPositionFor=function(n){var u={generatedLine:e.getArg(n,"line"),generatedColumn:e.getArg(n,"column")},d=this._findMapping(u,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(n,"bias",i.GREATEST_LOWER_BOUND));if(d>=0){var o=this._generatedMappings[d];if(o.generatedLine===u.generatedLine){var f=e.getArg(o,"source",null);f!==null&&(f=this._sources.at(f),f=e.computeSourceURL(this.sourceRoot,f,this._sourceMapURL));var v=e.getArg(o,"name",null);return v!==null&&(v=this._names.at(v)),{source:f,line:e.getArg(o,"originalLine",null),column:e.getArg(o,"originalColumn",null),name:v}}}return {source:null,line:null,column:null,name:null}},a.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(n){return n==null}):false},a.prototype.sourceContentFor=function(n,u){if(!this.sourcesContent)return null;var d=this._findSourceIndex(n);if(d>=0)return this.sourcesContent[d];var o=n;this.sourceRoot!=null&&(o=e.relative(this.sourceRoot,o));var f;if(this.sourceRoot!=null&&(f=e.urlParse(this.sourceRoot))){var v=o.replace(/^file:\/\//,"");if(f.scheme=="file"&&this._sources.has(v))return this.sourcesContent[this._sources.indexOf(v)];if((!f.path||f.path=="/")&&this._sources.has("/"+o))return this.sourcesContent[this._sources.indexOf("/"+o)]}if(u)return null;throw new Error('"'+o+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(n){var u=e.getArg(n,"source");if(u=this._findSourceIndex(u),u<0)return {line:null,column:null,lastColumn:null};var d={source:u,originalLine:e.getArg(n,"line"),originalColumn:e.getArg(n,"column")},o=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(n,"bias",i.GREATEST_LOWER_BOUND));if(o>=0){var f=this._originalMappings[o];if(f.source===d.source)return {line:e.getArg(f,"generatedLine",null),column:e.getArg(f,"generatedColumn",null),lastColumn:e.getArg(f,"lastGeneratedColumn",null)}}return {line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=a;function y(h,n){var u=h;typeof h=="string"&&(u=e.parseSourceMapInput(h));var d=e.getArg(u,"version"),o=e.getArg(u,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new m,this._names=new m;var f={line:-1,column:0};this._sections=o.map(function(v){if(v.url)throw new Error("Support for url field in sections not implemented.");var b=e.getArg(v,"offset"),T=e.getArg(b,"line"),L=e.getArg(b,"column");if(T<f.line||T===f.line&&L<f.column)throw new Error("Section offsets must be ordered and non-overlapping.");return f=b,{generatedOffset:{generatedLine:T+1,generatedColumn:L+1},consumer:new i(e.getArg(v,"map"),n)}});}y.prototype=Object.create(i.prototype),y.prototype.constructor=i,y.prototype._version=3,Object.defineProperty(y.prototype,"sources",{get:function(){for(var h=[],n=0;n<this._sections.length;n++)for(var u=0;u<this._sections[n].consumer.sources.length;u++)h.push(this._sections[n].consumer.sources[u]);return h}}),y.prototype.originalPositionFor=function(n){var u={generatedLine:e.getArg(n,"line"),generatedColumn:e.getArg(n,"column")},d=s.search(u,this._sections,function(f,v){var b=f.generatedLine-v.generatedOffset.generatedLine;return b||f.generatedColumn-v.generatedOffset.generatedColumn}),o=this._sections[d];return o?o.consumer.originalPositionFor({line:u.generatedLine-(o.generatedOffset.generatedLine-1),column:u.generatedColumn-(o.generatedOffset.generatedLine===u.generatedLine?o.generatedOffset.generatedColumn-1:0),bias:n.bias}):{source:null,line:null,column:null,name:null}},y.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(n){return n.consumer.hasContentsOfAllSources()})},y.prototype.sourceContentFor=function(n,u){for(var d=0;d<this._sections.length;d++){var o=this._sections[d],f=o.consumer.sourceContentFor(n,true);if(f||f==="")return f}if(u)return null;throw new Error('"'+n+'" is not in the SourceMap.')},y.prototype.generatedPositionFor=function(n){for(var u=0;u<this._sections.length;u++){var d=this._sections[u];if(d.consumer._findSourceIndex(e.getArg(n,"source"))!==-1){var o=d.consumer.generatedPositionFor(n);if(o){var f={line:o.line+(d.generatedOffset.generatedLine-1),column:o.column+(d.generatedOffset.generatedLine===o.line?d.generatedOffset.generatedColumn-1:0)};return f}}}return {line:null,column:null}},y.prototype._parseMappings=function(n,u){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var o=this._sections[d],f=o.consumer._generatedMappings,v=0;v<f.length;v++){var b=f[v],T=o.consumer._sources.at(b.source);T!==null&&(T=e.computeSourceURL(o.consumer.sourceRoot,T,this._sourceMapURL)),this._sources.add(T),T=this._sources.indexOf(T);var L=null;b.name&&(L=o.consumer._names.at(b.name),this._names.add(L),L=this._names.indexOf(L));var O={source:T,generatedLine:b.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:b.generatedColumn+(o.generatedOffset.generatedLine===b.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:b.originalLine,originalColumn:b.originalColumn,name:L};this.__generatedMappings.push(O),typeof O.originalLine=="number"&&this.__originalMappings.push(O);}c(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),c(this.__originalMappings,e.compareByOriginalPositions);},t.IndexedSourceMapConsumer=y;}}),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,s=H(),m=/(\r?\n)/,S=10,c="$$$isSourceNode$$$";function i(a,l,r,C,y){this.children=[],this.sourceContents={},this.line=a??null,this.column=l??null,this.source=r??null,this.name=y??null,this[c]=true,C!=null&&this.add(C);}i.fromStringWithSourceMap=function(l,r,C){var y=new i,h=l.split(m),n=0,u=function(){var b=L(),T=L()||"";return b+T;function L(){return n<h.length?h[n++]:undefined}},d=1,o=0,f=null;return r.eachMapping(function(b){if(f!==null)if(d<b.generatedLine)v(f,u()),d++,o=0;else {var T=h[n]||"",L=T.substr(0,b.generatedColumn-o);h[n]=T.substr(b.generatedColumn-o),o=b.generatedColumn,v(f,L),f=b;return}for(;d<b.generatedLine;)y.add(u()),d++;if(o<b.generatedColumn){var T=h[n]||"";y.add(T.substr(0,b.generatedColumn)),h[n]=T.substr(b.generatedColumn),o=b.generatedColumn;}f=b;},this),n<h.length&&(f&&v(f,u()),y.add(h.splice(n).join(""))),r.sources.forEach(function(b){var T=r.sourceContentFor(b);T!=null&&(C!=null&&(b=s.join(C,b)),y.setSourceContent(b,T));}),y;function v(b,T){if(b===null||b.source===undefined)y.add(T);else {var L=C?s.join(C,b.source):b.source;y.add(new i(b.originalLine,b.originalColumn,L,T,b.name));}}},i.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(r){this.add(r);},this);else if(l[c]||typeof l=="string")l&&this.children.push(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},i.prototype.prepend=function(l){if(Array.isArray(l))for(var r=l.length-1;r>=0;r--)this.prepend(l[r]);else if(l[c]||typeof l=="string")this.children.unshift(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},i.prototype.walk=function(l){for(var r,C=0,y=this.children.length;C<y;C++)r=this.children[C],r[c]?r.walk(l):r!==""&&l(r,{source:this.source,line:this.line,column:this.column,name:this.name});},i.prototype.join=function(l){var r,C,y=this.children.length;if(y>0){for(r=[],C=0;C<y-1;C++)r.push(this.children[C]),r.push(l);r.push(this.children[C]),this.children=r;}return this},i.prototype.replaceRight=function(l,r){var C=this.children[this.children.length-1];return C[c]?C.replaceRight(l,r):typeof C=="string"?this.children[this.children.length-1]=C.replace(l,r):this.children.push("".replace(l,r)),this},i.prototype.setSourceContent=function(l,r){this.sourceContents[s.toSetString(l)]=r;},i.prototype.walkSourceContents=function(l){for(var r=0,C=this.children.length;r<C;r++)this.children[r][c]&&this.children[r].walkSourceContents(l);for(var y=Object.keys(this.sourceContents),r=0,C=y.length;r<C;r++)l(s.fromSetString(y[r]),this.sourceContents[y[r]]);},i.prototype.toString=function(){var l="";return this.walk(function(r){l+=r;}),l},i.prototype.toStringWithSourceMap=function(l){var r={code:"",line:1,column:0},C=new e(l),y=false,h=null,n=null,u=null,d=null;return this.walk(function(o,f){r.code+=o,f.source!==null&&f.line!==null&&f.column!==null?((h!==f.source||n!==f.line||u!==f.column||d!==f.name)&&C.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name}),h=f.source,n=f.line,u=f.column,d=f.name,y=true):y&&(C.addMapping({generated:{line:r.line,column:r.column}}),h=null,y=false);for(var v=0,b=o.length;v<b;v++)o.charCodeAt(v)===S?(r.line++,r.column=0,v+1===b?(h=null,y=false):y&&C.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name})):r.column++;}),this.walkSourceContents(function(o,f){C.setSourceContent(o,f);}),{code:r.code,map:C}},t.SourceNode=i;}}),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 s=e.split(`
13
+ `),m;for(let i=s.length-1;i>=0&&!m;i--){let a=s[i].match(gt);a&&(m=a[1]);}if(!m)return null;if(!(ht.test(m)||m.startsWith("/"))){let i=t.split("/");i[i.length-1]=m,m=i.join("/");}let c=await(await fetch(m)).json();return new pt.SourceMapConsumer(c)},Fe=async(t,e)=>{let s=ot(t);if(!s.length)return [];let m=s.slice(0,e);return (await Promise.all(m.map(async({file:c,line:i,col:a=0})=>{if(!c||!i)return null;try{let l=await fetch(c);if(l.ok){let r=await l.text(),C=await Me(c,r);if(C){let y=C.originalPositionFor({line:i,column:a}),h=C.file||y.source;if(h&&!h.startsWith("/")&&!h.startsWith("file://")&&!h.startsWith("http")){let n=c.split("/");n[n.length-1]=h,h=n.join("/");}return {fileName:h.replace(/^file:\/\//,""),lineNumber:y.line,columnNumber:y.column}}}return {fileName:c.replace(/^file:\/\//,""),lineNumber:i,columnNumber:a}}catch{return {fileName:c.replace(/^file:\/\//,""),lineNumber:i,columnNumber:a}}}))).filter(c=>c!==null)},W=(t,e)=>{if(!t||ae)return "";let s=Error.prepareStackTrace;Error.prepareStackTrace=undefined,ae=true;let m=Ae();le(null);let S=console.error,c=console.warn;console.error=()=>{},console.warn=()=>{};try{let l={DetermineComponentFrameRoot(){let h;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(u){h=u;}Reflect.construct(t,[],n);}else {try{n.call();}catch(u){h=u;}t.call(n.prototype);}}else {try{throw Error()}catch(u){h=u;}let n=t();n&&typeof n.catch=="function"&&n.catch(()=>{});}}catch(n){if(n&&h&&typeof n.stack=="string")return [n.stack,h.stack]}return [null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot",Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name")?.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});let[C,y]=l.DetermineComponentFrameRoot();if(C&&y){let h=C.split(`
14
+ `),n=y.split(`
15
+ `),u=0,d=0;for(;u<h.length&&!h[u].includes("DetermineComponentFrameRoot");)u++;for(;d<n.length&&!n[d].includes("DetermineComponentFrameRoot");)d++;if(u===h.length||d===n.length)for(u=h.length-1,d=n.length-1;u>=1&&d>=0&&h[u]!==n[d];)d--;for(;u>=1&&d>=0;u--,d--)if(h[u]!==n[d]){if(u!==1||d!==1)do if(u--,d--,d<0||h[u]!==n[d]){let o=`
16
+ ${h[u].replace(" at new "," at ")}`,f=B(t);return f&&o.includes("<anonymous>")&&(o=o.replace("<anonymous>",f)),o}while(u>=1&&d>=0);break}}}finally{ae=false,Error.prepareStackTrace=s,le(m),console.error=S,console.warn=c;}let i=t?B(t):"";return i?D(i):""},Ae=()=>{let t=P();for(let e of [...Array.from(j),...Array.from(t.renderers.values())]){let s=e.currentDispatcherRef;if(s&&typeof s=="object")return "H"in s?s.H:s.current}return null},le=t=>{for(let e of j){let s=e.currentDispatcherRef;s&&typeof s=="object"&&("H"in s?s.H=t:s.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 W(t.type,false);case X:return W(t.type.render,false);case K:return W(t.type,true);case oe:return D("Activity");case ie:return D("ViewTransition");default:return ""}},Ie=(t,e,s)=>{let m=`
17
+ in ${t}`;return e&&(m+=` (at ${e})`),m},ue=t=>{try{let e="",s=t,m=null;do{e+=Ne(s,m);let S=s._debugInfo;if(S&&Array.isArray(S))for(let c=S.length-1;c>=0;c--){let i=S[c];typeof i.name=="string"&&(e+=Ie(i.name,i.env,i.debugLocation));}m=s,s=s.return;}while(s);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,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
- ${xe(L)}
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,s=[],m;for(m=e.exec(t);m!==null;){let S=m[1],c=m[2];if(!ke(S)){m=e.exec(t),s.push({name:S,source:undefined});continue}let i;if(c&&c!=="Server")try{let a=` at ${S} (${c})`,l=await Fe(a,1);l.length>0&&(i=l[0]);}catch{}s.push({name:S,source:i||undefined}),m=e.exec(t);}return s};var De=async t=>{let e=se(t);if(!e)return null;let s=ue(e);return (await ce(s)).map(c=>({componentName:c.name,fileName:c.source?.fileName}))},je=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 m=t[0].lastIndexOf("/");return m>0?t[0].substring(0,m+1):""}let e=t[0];for(let m=1;m<t.length;m++){let S=t[m],c=0;for(;c<e.length&&c<S.length&&e[c]===S[c];)c++;e=e.substring(0,c);}let s=e.lastIndexOf("/");return s>0?e.substring(0,s+1):""},Pe=t=>{let e=t.map(m=>m.fileName).filter(m=>!!m),s=vt(e);return t.map(m=>{let S=m.fileName;return S&&s&&(S=S.startsWith(s)?S.substring(s.length):S),`${m.componentName}${S?` (${S})`:""}`}).join(`
20
+ `)},xe=t=>{let e=new Set(["article","aside","footer","form","header","main","nav","section"]),s=o=>{let f=o.tagName.toLowerCase();if(e.has(f)||o.id)return true;if(o.className&&typeof o.className=="string"){let v=o.className.trim();if(v&&v.length>0)return true}return Array.from(o.attributes).some(v=>v.name.startsWith("data-"))},m=(o,f=10)=>{let v=[],b=o.parentElement,T=0;for(;b&&T<f&&b.tagName!=="BODY"&&!(s(b)&&(v.push(b),v.length>=3));)b=b.parentElement,T++;return v.reverse()},S=o=>{let f=[],v=o,b=0,T=5;for(;v&&b<T&&v.tagName!=="BODY";){let L=v.tagName.toLowerCase();if(v.id){L+=`#${v.id}`,f.unshift(L);break}else if(v.className&&typeof v.className=="string"&&v.className.trim()){let O=v.className.trim().split(/\s+/).slice(0,2);L+=`.${O.join(".")}`;}if(!v.id&&(!v.className||!v.className.trim())&&v.parentElement){let O=Array.from(v.parentElement.children),R=O.indexOf(v);R>=0&&O.length>1&&(L+=`:nth-child(${R+1})`);}f.unshift(L),v=v.parentElement,b++;}return f.join(" > ")},c=(o,f=false)=>{let v=o.tagName.toLowerCase(),b=[];if(o.id&&b.push(`id="${o.id}"`),o.className&&typeof o.className=="string"){let R=o.className.trim().split(/\s+/);if(R.length>0&&R[0]){let g=(f?R.slice(0,3):R).join(" ");g.length>30&&(g=g.substring(0,30)+"..."),b.push(`class="${g}"`);}}let T=Array.from(o.attributes).filter(R=>R.name.startsWith("data-")),L=f?T.slice(0,1):T;for(let R of L){let p=R.value;p.length>20&&(p=p.substring(0,20)+"..."),b.push(`${R.name}="${p}"`);}let O=o.getAttribute("aria-label");if(O&&!f){let R=O;R.length>20&&(R=R.substring(0,20)+"..."),b.push(`aria-label="${R}"`);}return b.length>0?`<${v} ${b.join(" ")}>`:`<${v}>`},i=o=>`</${o.tagName.toLowerCase()}>`,a=o=>{let f=o.textContent||"";f=f.trim().replace(/\s+/g," ");let v=60;return f.length>v&&(f=f.substring(0,v)+"..."),f},l=o=>{if(o.id)return `#${o.id}`;if(o.className&&typeof o.className=="string"){let f=o.className.trim().split(/\s+/);if(f.length>0&&f[0])return `.${f[0]}`}return null},r=[];r.push(`Path: ${S(t)}`),r.push("");let C=m(t);for(let o=0;o<C.length;o++){let f=" ".repeat(o);r.push(f+c(C[o],true));}let y=t.parentElement,h=-1;if(y){let o=Array.from(y.children);if(h=o.indexOf(t),h>0){let f=o[h-1];if(l(f)&&h<=2){let b=" ".repeat(C.length);r.push(`${b} ${c(f,true)}`),r.push(`${b} </${f.tagName.toLowerCase()}>`);}else if(h>0){let b=" ".repeat(C.length);r.push(`${b} ... (${h} element${h===1?"":"s"})`);}}}let n=" ".repeat(C.length);r.push(n+" <!-- SELECTED -->");let u=a(t),d=t.children.length;if(u&&d===0&&u.length<40?r.push(`${n} ${c(t)}${u}${i(t)}`):(r.push(n+" "+c(t)),u&&r.push(`${n} ${u}`),d>0&&r.push(`${n} ... (${d} element${d===1?"":"s"})`),r.push(n+" "+i(t))),y&&h>=0){let o=Array.from(y.children),f=o.length-h-1;if(f>0){let v=o[h+1];l(v)&&f<=2?(r.push(`${n} ${c(v,true)}`),r.push(`${n} </${v.tagName.toLowerCase()}>`)):r.push(`${n} ... (${f} element${f===1?"":"s"})`);}}for(let o=C.length-1;o>=0;o--){let f=" ".repeat(o);r.push(f+i(C[o]));}return r.join(`
21
+ `)};var _t=()=>{let t=null,e=null,s=false,m=false,S=null,c=null,i=null,a=async w=>{if(!document.hasFocus()){i=w;return}try{await navigator.clipboard.writeText(w),i=null,E();}catch{let M=document.createElement("textarea");M.value=w,M.style.position="fixed",M.style.left="-999999px",M.style.top="-999999px",document.body.appendChild(M),M.focus(),M.select();try{document.execCommand("copy"),i=null,E();}catch(F){console.error("Failed to copy to clipboard:",F),E();}document.body.removeChild(M);}},l=()=>{i&&a(i);},r=0,C=0,y=0,h=0,n=0,u=0,d=0,o=0,f="",v=()=>{let w=document.activeElement;return w instanceof HTMLInputElement||w instanceof HTMLTextAreaElement||w?.tagName==="INPUT"||w?.tagName==="TEXTAREA"},b=()=>{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,M,F)=>w+(M-w)*F,L=()=>{if(!e||!s)return;let w=.5;r=T(r,n,w),C=T(C,u,w),y=T(y,d,w),h=T(h,o,w),e.style.left=`${r}px`,e.style.top=`${C}px`,e.style.width=`${y}px`,e.style.height=`${h}px`,e.style.borderRadius=f,c=requestAnimationFrame(L);},O=w=>{if(m)return;let M=document.elementFromPoint(w.clientX,w.clientY);if(!M||M===e)return;S=M;let F=M.getBoundingClientRect(),N=window.getComputedStyle(M);n=F.left,u=F.top,d=F.width,o=F.height,f=N.borderRadius;},R=w=>{if(!s)return;w.preventDefault(),w.stopPropagation(),w.stopImmediatePropagation(),m=true;let M=S;M&&De(M).then(F=>{if(!F){E();return}let N=Pe(je(F)),x=`## Referenced element
22
+ ${xe(M)}
23
23
 
24
24
  Import traces:
25
25
  ${N}
26
26
 
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:
27
+ Page: ${window.location.href}`;a(x);});},p=w=>{s&&(w.preventDefault(),w.stopPropagation(),w.stopImmediatePropagation());},g=()=>{e||(e=b()),s=true,e.style.display="block",r=n,C=u,y=d,h=o,L();},E=()=>{s=false,m=false,e&&(e.style.display="none"),c&&(cancelAnimationFrame(c),c=null),S=null;},_=w=>{w.metaKey&&!t&&!s&&(t=setTimeout(()=>{v()||g(),t=null;},750));},A=w=>{w.metaKey||(t&&(clearTimeout(t),t=null),s&&!m&&E());};return document.addEventListener("keydown",_),document.addEventListener("keyup",A),document.addEventListener("mousemove",O),document.addEventListener("mousedown",p,true),document.addEventListener("click",R,true),window.addEventListener("focus",l),()=>{t&&clearTimeout(t),c&&cancelAnimationFrame(c),e&&e.parentNode&&e.parentNode.removeChild(e),document.removeEventListener("keydown",_),document.removeEventListener("keyup",A),document.removeEventListener("mousemove",O),document.removeEventListener("mousedown",p,true),document.removeEventListener("click",R,true),window.removeEventListener("focus",l);}};_t();/*! Bundled license information:
28
28
 
29
- bippy/dist/src-CqIv1vpl.js:
29
+ bippy/dist/src-Bn4Fcl24.js:
30
30
  (**
31
31
  * @license bippy
32
32
  *
@@ -46,7 +46,7 @@ bippy/dist/index.js:
46
46
  * LICENSE file in the root directory of this source tree.
47
47
  *)
48
48
 
49
- bippy/dist/source-BfkxIx1q.js:
49
+ bippy/dist/source-7rH6oRiA.js:
50
50
  (**
51
51
  * @license bippy
52
52
  *
package/dist/index.js CHANGED
@@ -56,86 +56,195 @@ var serializeStack = (stack) => {
56
56
  }).join("\n");
57
57
  };
58
58
  var getHTMLSnippet = (element) => {
59
- const getElementTag = (el) => {
59
+ const semanticTags = /* @__PURE__ */ new Set([
60
+ "article",
61
+ "aside",
62
+ "footer",
63
+ "form",
64
+ "header",
65
+ "main",
66
+ "nav",
67
+ "section"
68
+ ]);
69
+ const hasDistinguishingFeatures = (el) => {
60
70
  const tagName = el.tagName.toLowerCase();
61
- const importantAttrs = [
62
- "id",
63
- "class",
64
- "name",
65
- "type",
66
- "role",
67
- "aria-label"
68
- ];
69
- const maxValueLength = 50;
70
- const attrs = Array.from(el.attributes).filter((attr) => {
71
- return importantAttrs.includes(attr.name) || attr.name.startsWith("data-");
72
- }).map((attr) => {
71
+ if (semanticTags.has(tagName)) return true;
72
+ if (el.id) return true;
73
+ if (el.className && typeof el.className === "string") {
74
+ const classes = el.className.trim();
75
+ if (classes && classes.length > 0) return true;
76
+ }
77
+ return Array.from(el.attributes).some(
78
+ (attr) => attr.name.startsWith("data-")
79
+ );
80
+ };
81
+ const getAncestorChain = (el, maxDepth = 10) => {
82
+ const ancestors2 = [];
83
+ let current = el.parentElement;
84
+ let depth = 0;
85
+ while (current && depth < maxDepth && current.tagName !== "BODY") {
86
+ if (hasDistinguishingFeatures(current)) {
87
+ ancestors2.push(current);
88
+ if (ancestors2.length >= 3) break;
89
+ }
90
+ current = current.parentElement;
91
+ depth++;
92
+ }
93
+ return ancestors2.reverse();
94
+ };
95
+ const getCSSPath = (el) => {
96
+ const parts = [];
97
+ let current = el;
98
+ let depth = 0;
99
+ const maxDepth = 5;
100
+ while (current && depth < maxDepth && current.tagName !== "BODY") {
101
+ let selector = current.tagName.toLowerCase();
102
+ if (current.id) {
103
+ selector += `#${current.id}`;
104
+ parts.unshift(selector);
105
+ break;
106
+ } else if (current.className && typeof current.className === "string" && current.className.trim()) {
107
+ const classes = current.className.trim().split(/\s+/).slice(0, 2);
108
+ selector += `.${classes.join(".")}`;
109
+ }
110
+ if (!current.id && (!current.className || !current.className.trim()) && current.parentElement) {
111
+ const siblings = Array.from(current.parentElement.children);
112
+ const index = siblings.indexOf(current);
113
+ if (index >= 0 && siblings.length > 1) {
114
+ selector += `:nth-child(${index + 1})`;
115
+ }
116
+ }
117
+ parts.unshift(selector);
118
+ current = current.parentElement;
119
+ depth++;
120
+ }
121
+ return parts.join(" > ");
122
+ };
123
+ const getElementTag = (el, compact = false) => {
124
+ const tagName = el.tagName.toLowerCase();
125
+ const attrs = [];
126
+ if (el.id) {
127
+ attrs.push(`id="${el.id}"`);
128
+ }
129
+ if (el.className && typeof el.className === "string") {
130
+ const classes = el.className.trim().split(/\s+/);
131
+ if (classes.length > 0 && classes[0]) {
132
+ const displayClasses = compact ? classes.slice(0, 3) : classes;
133
+ let classStr = displayClasses.join(" ");
134
+ if (classStr.length > 30) {
135
+ classStr = classStr.substring(0, 30) + "...";
136
+ }
137
+ attrs.push(`class="${classStr}"`);
138
+ }
139
+ }
140
+ const dataAttrs = Array.from(el.attributes).filter(
141
+ (attr) => attr.name.startsWith("data-")
142
+ );
143
+ const displayDataAttrs = compact ? dataAttrs.slice(0, 1) : dataAttrs;
144
+ for (const attr of displayDataAttrs) {
73
145
  let value = attr.value;
74
- if (value.length > maxValueLength) {
75
- value = value.substring(0, maxValueLength) + "...";
146
+ if (value.length > 20) {
147
+ value = value.substring(0, 20) + "...";
76
148
  }
77
- return `${attr.name}="${value}"`;
78
- }).join(" ");
79
- return attrs ? `<${tagName} ${attrs}>` : `<${tagName}>`;
149
+ attrs.push(`${attr.name}="${value}"`);
150
+ }
151
+ const ariaLabel = el.getAttribute("aria-label");
152
+ if (ariaLabel && !compact) {
153
+ let value = ariaLabel;
154
+ if (value.length > 20) {
155
+ value = value.substring(0, 20) + "...";
156
+ }
157
+ attrs.push(`aria-label="${value}"`);
158
+ }
159
+ return attrs.length > 0 ? `<${tagName} ${attrs.join(" ")}>` : `<${tagName}>`;
80
160
  };
81
161
  const getClosingTag = (el) => {
82
162
  return `</${el.tagName.toLowerCase()}>`;
83
163
  };
84
- const getChildrenCount = (el) => {
85
- const children = Array.from(el.children);
86
- return children.length;
87
- };
88
164
  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;
165
+ let text = el.textContent || "";
166
+ text = text.trim().replace(/\s+/g, " ");
167
+ const maxLength = 60;
98
168
  if (text.length > maxLength) {
99
169
  text = text.substring(0, maxLength) + "...";
100
170
  }
101
171
  return text;
102
172
  };
173
+ const getSiblingIdentifier = (el) => {
174
+ if (el.id) return `#${el.id}`;
175
+ if (el.className && typeof el.className === "string") {
176
+ const classes = el.className.trim().split(/\s+/);
177
+ if (classes.length > 0 && classes[0]) {
178
+ return `.${classes[0]}`;
179
+ }
180
+ }
181
+ return null;
182
+ };
103
183
  const lines = [];
184
+ lines.push(`Path: ${getCSSPath(element)}`);
185
+ lines.push("");
186
+ const ancestors = getAncestorChain(element);
187
+ for (let i = 0; i < ancestors.length; i++) {
188
+ const indent2 = " ".repeat(i);
189
+ lines.push(indent2 + getElementTag(ancestors[i], true));
190
+ }
104
191
  const parent = element.parentElement;
192
+ let targetIndex = -1;
105
193
  if (parent) {
106
- lines.push(getElementTag(parent));
107
194
  const siblings = Array.from(parent.children);
108
- const targetIndex = siblings.indexOf(element);
195
+ targetIndex = siblings.indexOf(element);
109
196
  if (targetIndex > 0) {
110
- lines.push(
111
- ` ... (${targetIndex} element${targetIndex === 1 ? "" : "s"})`
112
- );
197
+ const prevSibling = siblings[targetIndex - 1];
198
+ const prevId = getSiblingIdentifier(prevSibling);
199
+ if (prevId && targetIndex <= 2) {
200
+ const indent2 = " ".repeat(ancestors.length);
201
+ lines.push(`${indent2} ${getElementTag(prevSibling, true)}`);
202
+ lines.push(`${indent2} </${prevSibling.tagName.toLowerCase()}>`);
203
+ } else if (targetIndex > 0) {
204
+ const indent2 = " ".repeat(ancestors.length);
205
+ lines.push(`${indent2} ... (${targetIndex} element${targetIndex === 1 ? "" : "s"})`);
206
+ }
113
207
  }
114
208
  }
115
- const indent = parent ? " " : "";
116
- lines.push(indent + "<!-- SELECTED -->");
117
- lines.push(indent + getElementTag(element));
209
+ const indent = " ".repeat(ancestors.length);
210
+ lines.push(indent + " <!-- SELECTED -->");
118
211
  const textContent = getTextContent(element);
119
- const childrenCount = getChildrenCount(element);
120
- if (textContent) {
121
- lines.push(`${indent} ${textContent}`);
122
- }
123
- if (childrenCount > 0) {
212
+ const childrenCount = element.children.length;
213
+ if (textContent && childrenCount === 0 && textContent.length < 40) {
124
214
  lines.push(
125
- `${indent} ... (${childrenCount} element${childrenCount === 1 ? "" : "s"})`
215
+ `${indent} ${getElementTag(element)}${textContent}${getClosingTag(element)}`
126
216
  );
217
+ } else {
218
+ lines.push(indent + " " + getElementTag(element));
219
+ if (textContent) {
220
+ lines.push(`${indent} ${textContent}`);
221
+ }
222
+ if (childrenCount > 0) {
223
+ lines.push(
224
+ `${indent} ... (${childrenCount} element${childrenCount === 1 ? "" : "s"})`
225
+ );
226
+ }
227
+ lines.push(indent + " " + getClosingTag(element));
127
228
  }
128
- lines.push(indent + getClosingTag(element));
129
- if (parent) {
229
+ if (parent && targetIndex >= 0) {
130
230
  const siblings = Array.from(parent.children);
131
- const targetIndex = siblings.indexOf(element);
132
231
  const siblingsAfter = siblings.length - targetIndex - 1;
133
232
  if (siblingsAfter > 0) {
134
- lines.push(
135
- ` ... (${siblingsAfter} element${siblingsAfter === 1 ? "" : "s"})`
136
- );
233
+ const nextSibling = siblings[targetIndex + 1];
234
+ const nextId = getSiblingIdentifier(nextSibling);
235
+ if (nextId && siblingsAfter <= 2) {
236
+ lines.push(`${indent} ${getElementTag(nextSibling, true)}`);
237
+ lines.push(`${indent} </${nextSibling.tagName.toLowerCase()}>`);
238
+ } else {
239
+ lines.push(
240
+ `${indent} ... (${siblingsAfter} element${siblingsAfter === 1 ? "" : "s"})`
241
+ );
242
+ }
137
243
  }
138
- lines.push(getClosingTag(parent));
244
+ }
245
+ for (let i = ancestors.length - 1; i >= 0; i--) {
246
+ const indent2 = " ".repeat(i);
247
+ lines.push(indent2 + getClosingTag(ancestors[i]));
139
248
  }
140
249
  return lines.join("\n");
141
250
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-grab",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/aidenybai/react-grab#readme",
@@ -70,6 +70,6 @@
70
70
  "access": "public"
71
71
  },
72
72
  "dependencies": {
73
- "bippy": "^0.3.28"
73
+ "bippy": "^0.3.29"
74
74
  }
75
75
  }