@clueprint/mcp 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +113 -0
- package/assets/logo.png +0 -0
- package/cli/commands/setup.d.ts +7 -0
- package/cli/commands/setup.d.ts.map +1 -0
- package/cli/commands/setup.js +248 -0
- package/cli/commands/setup.js.map +1 -0
- package/cli/commands/start.d.ts +6 -0
- package/cli/commands/start.d.ts.map +1 -0
- package/cli/commands/start.js +115 -0
- package/cli/commands/start.js.map +1 -0
- package/cli/commands/status.d.ts +2 -0
- package/cli/commands/status.d.ts.map +1 -0
- package/cli/commands/status.js +186 -0
- package/cli/commands/status.js.map +1 -0
- package/cli/index.d.ts +3 -0
- package/cli/index.d.ts.map +1 -0
- package/cli/index.js +53 -0
- package/cli/index.js.map +1 -0
- package/cli/ui/banner.d.ts +8 -0
- package/cli/ui/banner.d.ts.map +1 -0
- package/cli/ui/banner.js +41 -0
- package/cli/ui/banner.js.map +1 -0
- package/extension/background/index.js +2 -0
- package/extension/content/index.js +986 -0
- package/extension/devtools/devtools.html +10 -0
- package/extension/devtools/devtools.js +1 -0
- package/extension/devtools/panel.css +1584 -0
- package/extension/devtools/panel.html +16 -0
- package/extension/devtools/panel.js +40 -0
- package/extension/icons/clueprint.png +0 -0
- package/extension/manifest.json +70 -0
- package/extension/popup/popup.css +1584 -0
- package/extension/popup/popup.html +16 -0
- package/extension/popup/popup.js +122 -0
- package/extension/styles/overlay.css +111 -0
- package/package.json +41 -0
- package/server/analysis/format.d.ts +21 -0
- package/server/analysis/format.d.ts.map +1 -0
- package/server/analysis/format.js +583 -0
- package/server/analysis/format.js.map +1 -0
- package/server/index.d.ts +7 -0
- package/server/index.d.ts.map +1 -0
- package/server/index.js +14 -0
- package/server/index.js.map +1 -0
- package/server/server.d.ts +8 -0
- package/server/server.d.ts.map +1 -0
- package/server/server.js +417 -0
- package/server/server.js.map +1 -0
- package/server/shared-state.d.ts +14 -0
- package/server/shared-state.d.ts.map +1 -0
- package/server/shared-state.js +131 -0
- package/server/shared-state.js.map +1 -0
- package/server/types/index.d.ts +239 -0
- package/server/types/index.d.ts.map +1 -0
- package/server/types/index.js +7 -0
- package/server/types/index.js.map +1 -0
- package/server/websocket.d.ts +55 -0
- package/server/websocket.d.ts.map +1 -0
- package/server/websocket.js +355 -0
- package/server/websocket.js.map +1 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>Clueprint</title>
|
|
7
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
8
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
9
|
+
<link href="https://fonts.googleapis.com/css2?family=Stack+Sans+Notch:wght@400&family=Inter:wght@400;500&display=swap" rel="stylesheet">
|
|
10
|
+
<link rel="stylesheet" href="popup.css">
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
<div id="app"></div>
|
|
14
|
+
<script src="popup.js"></script>
|
|
15
|
+
</body>
|
|
16
|
+
</html>
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";(()=>{var Xa="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Xa);var vr="[",Qe="[!",Pt="]",dt={};var F=Symbol(),Pe=Symbol("filename"),Ka=Symbol("hmr"),Za="http://www.w3.org/1999/xhtml",qr="http://www.w3.org/2000/svg";var Oo="@attach";var Ja=globalThis.process?.env?.NODE_ENV,d=Ja&&!Ja.toLowerCase().startsWith("prod");var We=Array.isArray,Qa=Array.prototype.indexOf,Kt=Array.from,Lo=Object.keys,se=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,Ur=Object.getOwnPropertyDescriptors,Fo=Object.prototype,en=Array.prototype,Nt=Object.getPrototypeOf,Io=Object.isExtensible;function Ot(e){return typeof e=="function"}function tn(e){return e()}function Zt(e){for(var t=0;t<e.length;t++)e[t]()}function Hr(){var e,t,r=new Promise((o,a)=>{e=o,t=a});return{promise:r,resolve:e,reject:t}}function Bo(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let r=[];for(let o of e)if(r.push(o),r.length===t)break;return r}var ne=Symbol("$state"),Jt=Symbol("legacy props"),rn=Symbol(""),Vr=Symbol("proxy path"),et=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Gr=1,gr=3,Ce=8;function zr(e){if(d){let t=new Error(`lifecycle_outside_component
|
|
2
|
+
\`${e}(...)\` can only be used during component initialisation
|
|
3
|
+
https://svelte.dev/e/lifecycle_outside_component`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function on(){if(d){let e=new Error("async_derived_orphan\nCannot create a `$derived(...)` with an `await` expression outside of an effect tree\nhttps://svelte.dev/e/async_derived_orphan");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/async_derived_orphan")}function an(){if(d){let e=new Error(`derived_references_self
|
|
4
|
+
A derived value cannot reference itself recursively
|
|
5
|
+
https://svelte.dev/e/derived_references_self`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/derived_references_self")}function nn(e){if(d){let t=new Error(`effect_in_teardown
|
|
6
|
+
\`${e}\` cannot be used inside an effect cleanup function
|
|
7
|
+
https://svelte.dev/e/effect_in_teardown`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function fn(){if(d){let e=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function sn(e){if(d){let t=new Error(`effect_orphan
|
|
8
|
+
\`${e}\` can only be used inside an effect (e.g. during component initialisation)
|
|
9
|
+
https://svelte.dev/e/effect_orphan`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_orphan")}function ln(){if(d){let e=new Error(`effect_update_depth_exceeded
|
|
10
|
+
Maximum update depth exceeded. This typically indicates that an effect reads and writes the same piece of state
|
|
11
|
+
https://svelte.dev/e/effect_update_depth_exceeded`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function un(){if(d){let e=new Error(`hydration_failed
|
|
12
|
+
Failed to hydrate the application
|
|
13
|
+
https://svelte.dev/e/hydration_failed`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/hydration_failed")}function pn(e){if(d){let t=new Error(`props_invalid_value
|
|
14
|
+
Cannot do \`bind:${e}={undefined}\` when \`${e}\` has a fallback value
|
|
15
|
+
https://svelte.dev/e/props_invalid_value`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/props_invalid_value")}function dn(e){if(d){let t=new Error(`rune_outside_svelte
|
|
16
|
+
The \`${e}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
|
|
17
|
+
https://svelte.dev/e/rune_outside_svelte`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function cn(){if(d){let e=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function mn(){if(d){let e=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function _n(){if(d){let e=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function xn(){if(d){let e=new Error("svelte_boundary_reset_onerror\nA `<svelte:boundary>` `reset` function cannot be called while an error is still being handled\nhttps://svelte.dev/e/svelte_boundary_reset_onerror");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}var bt="font-weight: bold",yt="font-weight: normal";function hn(e,t){d?console.warn(`%c[svelte] await_waterfall
|
|
18
|
+
%cAn async derived, \`${e}\` (${t}) was not read immediately after it resolved. This often indicates an unnecessary waterfall, which can slow down your app
|
|
19
|
+
https://svelte.dev/e/await_waterfall`,bt,yt):console.warn("https://svelte.dev/e/await_waterfall")}function vn(e,t,r){d?console.warn(`%c[svelte] hydration_attribute_changed
|
|
20
|
+
%cThe \`${e}\` attribute on \`${t}\` changed its value between server and client renders. The client value, \`${r}\`, will be ignored in favour of the server value
|
|
21
|
+
https://svelte.dev/e/hydration_attribute_changed`,bt,yt):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Lt(e){d?console.warn(`%c[svelte] hydration_mismatch
|
|
22
|
+
%c${e?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${e}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
|
|
23
|
+
https://svelte.dev/e/hydration_mismatch`,bt,yt):console.warn("https://svelte.dev/e/hydration_mismatch")}function gn(){d?console.warn(`%c[svelte] lifecycle_double_unmount
|
|
24
|
+
%cTried to unmount a component that was not mounted
|
|
25
|
+
https://svelte.dev/e/lifecycle_double_unmount`,bt,yt):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function wn(){d?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",bt,yt):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Wr(e){d?console.warn(`%c[svelte] state_proxy_equality_mismatch
|
|
26
|
+
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${e}\` will produce unexpected results
|
|
27
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`,bt,yt):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}function bn(){d?console.warn(`%c[svelte] state_proxy_unmount
|
|
28
|
+
%cTried to unmount a state proxy, rather than a component
|
|
29
|
+
https://svelte.dev/e/state_proxy_unmount`,bt,yt):console.warn("https://svelte.dev/e/state_proxy_unmount")}function yn(){d?console.warn("%c[svelte] svelte_boundary_reset_noop\n%cA `<svelte:boundary>` `reset` function only resets the boundary the first time it is called\nhttps://svelte.dev/e/svelte_boundary_reset_noop",bt,yt):console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}var h=!1;function W(e){h=e}var E;function O(e){if(e===null)throw Lt(),dt;return E=e}function te(){return O(le(E))}function S(e){if(h){if(le(E)!==null)throw Lt(),dt;E=e}}function tt(e=1){if(h){for(var t=e,r=E;t--;)r=le(r);E=r}}function ct(e=!0){for(var t=0,r=E;;){if(r.nodeType===Ce){var o=r.data;if(o===Pt){if(t===0)return r;t-=1}else(o===vr||o===Qe)&&(t+=1)}var a=le(r);e&&r.remove(),r=a}}function Yr(e){if(!e||e.nodeType!==Ce)throw Lt(),dt;return e.data}function jr(e){return e===this.v}function qo(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Xr(e){return!qo(e,this.v)}var we=!1,rt=!1,Ye=!1;function En(){rt=!0}var wr=null;function Se(e,t){return e.label=t,Kr(e.v,t),e}function Kr(e,t){return e?.[Vr]?.(t),e}function ot(e){let t=new Error,r=Xf();return r.length===0?null:(r.unshift(`
|
|
30
|
+
`),se(t,"stack",{value:r.join(`
|
|
31
|
+
`)}),se(t,"name",{value:e}),t)}function Xf(){let e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;let t=new Error().stack;if(Error.stackTraceLimit=e,!t)return[];let r=t.split(`
|
|
32
|
+
`),o=[];for(let a=0;a<r.length;a++){let n=r[a],f=n.replaceAll("\\","/");if(n.trim()!=="Error"){if(n.includes("validate_each_keys"))return[];f.includes("svelte/src/internal")||f.includes("node_modules/.vite")||o.push(n)}}return o}var k=null;function mt(e){k=e}var Ue=null;function Qt(e){Ue=e}var je=null;function Zr(e){je=e}function Ft(e,t=!1,r){k={p:k,i:!1,c:null,e:null,s:e,x:null,l:rt&&!t?{s:null,u:null,$:[]}:null},d&&(k.function=r,je=r)}function It(e){var t=k,r=t.e;if(r!==null){t.e=null;for(var o of r)Ho(o)}return e!==void 0&&(t.x=e),t.i=!0,k=t.p,d&&(je=k?.function??null),e??{}}function at(){return!rt||k!==null&&k.l===null}var Bt=[];function Cn(){var e=Bt;Bt=[],Zt(e)}function fe(e){if(Bt.length===0&&!qt){var t=Bt;queueMicrotask(()=>{t===Bt&&Cn()})}Bt.push(e)}function Sn(){for(;Bt.length>0;)Cn()}var Vo=new WeakMap;function Jr(e){var t=w;if(t===null)return y.f|=8388608,e;if(d&&e instanceof Error&&!Vo.has(e)&&Vo.set(e,Kf(e,t)),t.f&32768)nt(e,t);else{if(!(t.f&128))throw d&&!t.parent&&e instanceof Error&&Tn(e),e;t.b.error(e)}}function nt(e,t){for(;t!==null;){if(t.f&128)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw d&&e instanceof Error&&Tn(e),e}function Kf(e,t){let r=ve(e,"message");if(!(r&&!r.configurable)){for(var o=br?" ":" ",a=`
|
|
33
|
+
${o}in ${t.fn?.name||"<unknown>"}`,n=t.ctx;n!==null;)a+=`
|
|
34
|
+
${o}in ${n.function?.[Pe].split("/").pop()}`,n=n.p;return{message:e.message+`
|
|
35
|
+
${a}
|
|
36
|
+
`,stack:e.stack?.split(`
|
|
37
|
+
`).filter(f=>!f.includes("svelte/src/internal")).join(`
|
|
38
|
+
`)}}}function Tn(e){let t=Vo.get(e);t&&(se(e,"message",{value:t.message}),se(e,"stack",{value:t.stack}))}var Zf=-7169;function I(e,t){e.f=e.f&Zf|t}function tr(e){e.f&512||e.deps===null?I(e,1024):I(e,4096)}function An(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&32768)||(t.f^=32768,An(t.deps))}function Qr(e,t,r){e.f&2048?t.add(e):e.f&4096&&r.add(e),An(e.deps),I(e,1024)}var rr=new Set,P=null,yr=null,pe=null,He=[],to=null,Go=!1,qt=!1,Ee=class e{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#r=0;#n=0;#f=null;#a=new Set;#o=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){He=[],yr=null,this.apply();var r=[],o=[];for(let a of t)this.#s(a,r,o);this.is_fork||this.#l(),this.is_deferred()?(this.#i(o),this.#i(r)):(yr=this,P=null,kn(o),kn(r),yr=null,this.#f?.resolve()),pe=null}#s(t,r,o){t.f^=1024;for(var a=t.first,n=null;a!==null;){var f=a.f,s=(f&96)!==0,i=s&&(f&1024)!==0,u=i||(f&8192)!==0||this.skipped_effects.has(a);if(we&&n===null&&f&128&&a.b?.is_pending&&(n=a),!u&&a.fn!==null){s?a.f^=1024:n!==null&&f&16777228?n.b.defer_effect(a):f&4?r.push(a):we&&f&16777224?o.push(a):St(a)&&(f&16&&this.#a.add(a),Ct(a));var _=a.first;if(_!==null){a=_;continue}}var c=a.parent;for(a=a.next;a===null&&c!==null;)c===n&&(n=null),a=c.next,c=c.parent}}#i(t){for(var r=0;r<t.length;r+=1)Qr(t[r],this.#a,this.#o)}capture(t,r){r!==F&&!this.previous.has(t)&&this.previous.set(t,r),t.f&8388608||(this.current.set(t,t.v),pe?.set(t,t.v))}activate(){P=this,this.apply()}deactivate(){P===this&&(P=null,pe=null)}flush(){if(this.activate(),He.length>0){if(zo(),P!==null&&P!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(let t of this.#t)t(this);this.#t.clear()}#l(){if(this.#n===0){for(let t of this.#e)t();this.#e.clear()}this.#r===0&&this.#u()}#u(){if(rr.size>1){this.previous.clear();var t=pe,r=!0;for(let a of rr){if(a===this){r=!1;continue}let n=[];for(let[s,i]of this.current){if(a.current.has(s))if(r&&i!==a.current.get(s))a.current.set(s,i);else continue;n.push(s)}if(n.length===0)continue;let f=[...a.current.keys()].filter(s=>!this.current.has(s));if(f.length>0){var o=He;He=[];let s=new Set,i=new Map;for(let u of n)Rn(u,f,s,i);if(He.length>0){P=a,a.apply();for(let u of He)a.#s(u,[],[]);a.deactivate()}He=o}}P=null,pe=t}this.committed=!0,rr.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(let t of this.#a)this.#o.delete(t),I(t,2048),Oe(t);for(let t of this.#o)I(t,4096),Oe(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#f??=Hr()).promise}static ensure(){if(P===null){let t=P=new e;rr.add(P),qt||e.enqueue(()=>{P===t&&t.flush()})}return P}static enqueue(t){fe(t)}apply(){if(!(!we||!this.is_fork&&rr.size===1)){pe=new Map(this.current);for(let t of rr)if(t!==this)for(let[r,o]of t.previous)pe.has(r)||pe.set(r,o)}}};function fr(e){var t=qt;qt=!0;try{var r;for(e&&(P!==null&&zo(),r=e());;){if(Sn(),He.length===0&&(P?.flush(),He.length===0))return to=null,r;zo()}}finally{qt=t}}function zo(){var e=xt;Go=!0;var t=d?new Set:null;try{var r=0;for(ar(!0);He.length>0;){var o=Ee.ensure();if(r++>1e3){if(d){var a=new Map;for(let f of o.current.keys())for(let[s,i]of f.updated??[]){var n=a.get(s);n||(n={error:i.error,count:0},a.set(s,n)),n.count+=i.count}for(let f of a.values())f.error&&console.error(f.error)}Qf()}if(o.process(He),ft.clear(),d)for(let f of o.current.keys())t.add(f)}}finally{if(Go=!1,ar(e),to=null,d)for(let f of t)f.updated=null}}function Qf(){try{ln()}catch(e){d&&se(e,"stack",{value:""}),nt(e,to)}}var Ve=null;function kn(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var o=e[r++];if(!(o.f&24576)&&St(o)&&(Ve=new Set,Ct(o),o.deps===null&&o.first===null&&o.nodes===null&&(o.teardown===null&&o.ac===null?Wo(o):o.fn=null),Ve?.size>0)){ft.clear();for(let a of Ve){if(a.f&24576)continue;let n=[a],f=a.parent;for(;f!==null;)Ve.has(f)&&(Ve.delete(f),n.push(f)),f=f.parent;for(let s=n.length-1;s>=0;s--){let i=n[s];i.f&24576||Ct(i)}}Ve.clear()}}Ve=null}}function Rn(e,t,r,o){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(let a of e.reactions){let n=a.f;n&2?Rn(a,t,r,o):n&4194320&&!(n&2048)&&Mn(a,t,o)&&(I(a,2048),Oe(a))}}function Mn(e,t,r){let o=r.get(e);if(o!==void 0)return o;if(e.deps!==null)for(let a of e.deps){if(t.includes(a))return!0;if(a.f&2&&Mn(a,t,r))return r.set(a,!0),!0}return r.set(e,!1),!1}function Oe(e){for(var t=to=e;t.parent!==null;){t=t.parent;var r=t.f;if(Go&&t===w&&r&16&&!(r&262144))return;if(r&96){if(!(r&1024))return;t.f^=1024}}He.push(t)}function Dn(e){let t=0,r=de(0),o;return d&&Se(r,"createSubscriber version"),()=>{$t()&&(b(r),$e(()=>(t===0&&(o=L(()=>e(()=>Ht(r)))),t+=1,()=>{fe(()=>{t-=1,t===0&&(o?.(),o=void 0,Ht(r))})})))}}var ts=589952;function jo(e,t,r){new Yo(e,t,r)}var Yo=class{parent;is_pending=!1;#e;#t=h?E:null;#r;#n;#f;#a=null;#o=null;#s=null;#i=null;#l=null;#u=0;#p=0;#c=!1;#m=new Set;#_=new Set;#d=null;#w=Dn(()=>(this.#d=de(this.#u),d&&Se(this.#d,"$effect.pending()"),()=>{this.#d=null}));constructor(t,r,o){this.#e=t,this.#r=r,this.#n=o,this.parent=w.b,this.is_pending=!!this.#r.pending,this.#f=ke(()=>{if(w.b=this,h){let n=this.#t;te(),n.nodeType===Ce&&n.data===Qe?this.#y():(this.#b(),this.#p===0&&(this.is_pending=!1))}else{var a=this.#v();try{this.#a=K(()=>o(a))}catch(n){this.error(n)}this.#p>0?this.#h():this.is_pending=!1}return()=>{this.#l?.remove()}},ts),h&&(this.#e=E)}#b(){try{this.#a=K(()=>this.#n(this.#e))}catch(t){this.error(t)}}#y(){let t=this.#r.pending;t&&(this.#o=K(()=>t(this.#e)),Ee.enqueue(()=>{var r=this.#v();this.#a=this.#x(()=>(Ee.ensure(),K(()=>this.#n(r)))),this.#p>0?this.#h():(st(this.#o,()=>{this.#o=null}),this.is_pending=!1)}))}#v(){var t=this.#e;return this.is_pending&&(this.#l=J(),this.#e.before(this.#l),t=this.#l),t}defer_effect(t){Qr(t,this.#m,this.#_)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#r.pending}#x(t){var r=w,o=y,a=k;Z(this.#f),X(this.#f),mt(this.#f.ctx);try{return t()}catch(n){return Jr(n),null}finally{Z(r),X(o),mt(a)}}#h(){let t=this.#r.pending;this.#a!==null&&(this.#i=document.createDocumentFragment(),this.#i.append(this.#l),ao(this.#a,this.#i)),this.#o===null&&(this.#o=K(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}if(this.#p+=t,this.#p===0){this.is_pending=!1;for(let r of this.#m)I(r,2048),Oe(r);for(let r of this.#_)I(r,4096),Oe(r);this.#m.clear(),this.#_.clear(),this.#o&&st(this.#o,()=>{this.#o=null}),this.#i&&(this.#e.before(this.#i),this.#i=null)}}update_pending_count(t){this.#g(t),this.#u+=t,this.#d&&Je(this.#d,this.#u)}get_effect_pending(){return this.#w(),b(this.#d)}error(t){var r=this.#r.onerror;let o=this.#r.failed;if(this.#c||!r&&!o)throw t;this.#a&&(U(this.#a),this.#a=null),this.#o&&(U(this.#o),this.#o=null),this.#s&&(U(this.#s),this.#s=null),h&&(O(this.#t),tt(),O(ct()));var a=!1,n=!1;let f=()=>{if(a){yn();return}a=!0,n&&xn(),Ee.ensure(),this.#u=0,this.#s!==null&&st(this.#s,()=>{this.#s=null}),this.is_pending=this.has_pending_snippet(),this.#a=this.#x(()=>(this.#c=!1,K(()=>this.#n(this.#e)))),this.#p>0?this.#h():this.is_pending=!1};var s=y;try{X(null),n=!0,r?.(t,f),n=!1}catch(i){nt(i,this.#f&&this.#f.parent)}finally{X(s)}o&&fe(()=>{this.#s=this.#x(()=>{Ee.ensure(),this.#c=!0;try{return K(()=>{o(this.#e,()=>t,()=>f)})}catch(i){return nt(i,this.#f.parent),null}finally{this.#c=!1}})})}};function Cr(e,t,r,o){let a=at()?Tt:Vt;if(r.length===0&&e.length===0){o(t.map(a));return}var n=P,f=w,s=Pn();function i(){Promise.all(r.map(u=>Ko(u))).then(u=>{s();try{o([...t.map(a),...u])}catch(_){f.f&16384||nt(_,f)}n?.deactivate(),ir()}).catch(u=>{nt(u,f)})}e.length>0?Promise.all(e).then(()=>{s();try{return i()}finally{n?.deactivate(),ir()}}):i()}function Pn(){var e=w,t=y,r=k,o=P;if(d)var a=Ue;return function(f=!0){Z(e),X(t),mt(r),f&&o?.activate(),d&&(Xo(null),Qt(a))}}function ir(){Z(null),X(null),mt(null),d&&(Xo(null),Qt(null))}var Sr=null;function Xo(e){Sr=e}var Tr=new Set;function Tt(e){var t=2050,r=y!==null&&y.f&2?y:null;w!==null&&(w.f|=524288);let o={ctx:k,deps:null,effects:null,equals:jr,f:t,fn:e,reactions:null,rv:0,v:F,wv:0,parent:r??w,ac:null};return d&&Ye&&(o.created=ot("created at")),o}function Ko(e,t,r){let o=w;o===null&&on();var a=o.b,n=void 0,f=de(F);d&&(f.label=t);var s=!y,i=new Map;return Nn(()=>{d&&(Sr=w);var u=Hr();n=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).then(()=>{_===P&&_.committed&&_.deactivate(),ir()})}catch(p){u.reject(p),ir()}d&&(Sr=null);var _=P;if(s){var c=a.is_rendered();a.update_pending_count(1),_.increment(c),i.get(_)?.reject(et),i.delete(_),i.set(_,u)}let l=(p,x=void 0)=>{if(Sr=null,_.activate(),x)x!==et&&(f.f|=8388608,Je(f,x));else{f.f&8388608&&(f.f^=8388608),Je(f,p);for(let[g,m]of i){if(i.delete(g),g===_)break;m.reject(et)}d&&r!==void 0&&(Tr.add(f),setTimeout(()=>{Tr.has(f)&&(hn(f.label,r),Tr.delete(f))}))}s&&(a.update_pending_count(-1),_.decrement(c))};u.promise.then(l,p=>l(null,p||"unknown"))}),ce(()=>{for(let u of i.values())u.reject(et)}),d&&(f.f|=4194304),new Promise(u=>{function _(c){function l(){c===n?u(f):_(n)}c.then(l,l)}_(n)})}function Ar(e){let t=Tt(e);return we||so(t),t}function Vt(e){let t=Tt(e);return t.equals=Xr,t}function no(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)U(t[r])}}var Zo=[];function as(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function kr(e){var t,r=w;if(Z(as(e)),d){let o=Gt;ro(new Set);try{Zo.includes(e)&&an(),Zo.push(e),e.f&=-32769,no(e),t=fo(e)}finally{Z(r),ro(o),Zo.pop()}}else try{e.f&=-32769,no(e),t=fo(e)}finally{Z(r)}return t}function Jo(e){var t=kr(e);if(!e.equals(t)&&(e.wv=sr(),(!P?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){I(e,1024);return}Ge||(pe!==null?($t()||P?.is_fork)&&pe.set(e,t):tr(e))}var Gt=new Set,ft=new Map;function ro(e){Gt=e}var Qo=!1;function On(){Qo=!0}function de(e,t){var r={f:0,v:e,reactions:null,equals:jr,rv:0,wv:0};return d&&Ye&&(r.created=t??ot("created at"),r.updated=null,r.set_during_effect=!1,r.trace=null),r}function me(e,t){let r=de(e,t);return so(r),r}function zt(e,t=!1,r=!0){let o=de(e);return t||(o.equals=Xr),rt&&r&&k!==null&&k.l!==null&&(k.l.s??=[]).push(o),o}function N(e,t,r=!1){y!==null&&(!Re||y.f&131072)&&at()&&y.f&4325394&&!it?.includes(e)&&_n();let o=r?vt(t):t;return d&&Kr(o,e.label),Je(e,o)}function Je(e,t){if(!e.equals(t)){var r=e.v;Ge?ft.set(e,t):ft.set(e,r),e.v=t;var o=Ee.ensure();if(o.capture(e,r),d){if(Ye||w!==null){e.updated??=new Map;let a=(e.updated.get("")?.count??0)+1;if(e.updated.set("",{error:null,count:a}),Ye||a>5){let n=ot("updated at");if(n!==null){let f=e.updated.get(n.stack);f||(f={error:n,count:0},e.updated.set(n.stack,f)),f.count++}}}w!==null&&(e.set_during_effect=!0)}if(e.f&2){let a=e;e.f&2048&&kr(a),tr(a)}e.wv=sr(),Ln(e,2048),at()&&w!==null&&w.f&1024&&!(w.f&96)&&(Fe===null?Fn([e]):Fe.push(e)),!o.is_fork&&Gt.size>0&&!Qo&&oo()}return t}function oo(){Qo=!1;var e=xt;ar(!0);let t=Array.from(Gt);try{for(let r of t)r.f&1024&&I(r,4096),St(r)&&Ct(r)}finally{ar(e)}Gt.clear()}function $r(e,t=1){var r=b(e),o=t===1?r++:r--;return N(e,r),o}function Ht(e){N(e,e.v+1)}function Ln(e,t){var r=e.reactions;if(r!==null)for(var o=at(),a=r.length,n=0;n<a;n++){var f=r[n],s=f.f;if(!(!o&&f===w)){if(d&&s&131072){Gt.add(f);continue}var i=(s&2048)===0;if(i&&I(f,t),s&2){var u=f;pe?.delete(u),s&32768||(s&512&&(f.f|=32768),Ln(u,4096))}else i&&(s&16&&Ve!==null&&Ve.add(f),Oe(f))}}}var ns=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function vt(e){if(typeof e!="object"||e===null||ne in e)return e;let t=Nt(e);if(t!==Fo&&t!==en)return e;var r=new Map,o=We(e),a=me(0),n=d&&Ye?ot("created at"):null,f=At,s=c=>{if(At===f)return c();var l=y,p=At;X(null),ea(f);var x=c();return X(l),ea(p),x};o&&(r.set("length",me(e.length,n)),d&&(e=ss(e)));var i="";let u=!1;function _(c){if(!u){u=!0,i=c,Se(a,`${i} version`);for(let[l,p]of r)Se(p,Wt(i,l));u=!1}}return new Proxy(e,{defineProperty(c,l,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&cn();var x=r.get(l);return x===void 0?x=s(()=>{var g=me(p.value,n);return r.set(l,g),d&&typeof l=="string"&&Se(g,Wt(i,l)),g}):N(x,p.value,!0),!0},deleteProperty(c,l){var p=r.get(l);if(p===void 0){if(l in c){let x=s(()=>me(F,n));r.set(l,x),Ht(a),d&&Se(x,Wt(i,l))}}else N(p,F),Ht(a);return!0},get(c,l,p){if(l===ne)return e;if(d&&l===Vr)return _;var x=r.get(l),g=l in c;if(x===void 0&&(!g||ve(c,l)?.writable)&&(x=s(()=>{var v=vt(g?c[l]:F),B=me(v,n);return d&&Se(B,Wt(i,l)),B}),r.set(l,x)),x!==void 0){var m=b(x);return m===F?void 0:m}return Reflect.get(c,l,p)},getOwnPropertyDescriptor(c,l){var p=Reflect.getOwnPropertyDescriptor(c,l);if(p&&"value"in p){var x=r.get(l);x&&(p.value=b(x))}else if(p===void 0){var g=r.get(l),m=g?.v;if(g!==void 0&&m!==F)return{enumerable:!0,configurable:!0,value:m,writable:!0}}return p},has(c,l){if(l===ne)return!0;var p=r.get(l),x=p!==void 0&&p.v!==F||Reflect.has(c,l);if(p!==void 0||w!==null&&(!x||ve(c,l)?.writable)){p===void 0&&(p=s(()=>{var m=x?vt(c[l]):F,v=me(m,n);return d&&Se(v,Wt(i,l)),v}),r.set(l,p));var g=b(p);if(g===F)return!1}return x},set(c,l,p,x){var g=r.get(l),m=l in c;if(o&&l==="length")for(var v=p;v<g.v;v+=1){var B=r.get(v+"");B!==void 0?N(B,F):v in c&&(B=s(()=>me(F,n)),r.set(v+"",B),d&&Se(B,Wt(i,v)))}if(g===void 0)(!m||ve(c,l)?.writable)&&(g=s(()=>me(void 0,n)),d&&Se(g,Wt(i,l)),N(g,vt(p)),r.set(l,g));else{m=g.v!==F;var M=s(()=>vt(p));N(g,M)}var $=Reflect.getOwnPropertyDescriptor(c,l);if($?.set&&$.set.call(x,p),!m){if(o&&typeof l=="string"){var j=r.get("length"),C=Number(l);Number.isInteger(C)&&C>=j.v&&N(j,C+1)}Ht(a)}return!0},ownKeys(c){b(a);var l=Reflect.ownKeys(c).filter(g=>{var m=r.get(g);return m===void 0||m.v!==F});for(var[p,x]of r)x.v!==F&&!(p in c)&&l.push(p);return l},setPrototypeOf(){mn()}})}function Wt(e,t){return typeof t=="symbol"?`${e}[Symbol(${t.description??""})]`:ns.test(t)?`${e}.${t}`:/^\d+$/.test(t)?`${e}[${t}]`:`${e}['${t}']`}function lr(e){try{if(e!==null&&typeof e=="object"&&ne in e)return e[ne]}catch{}return e}function ta(e,t){return Object.is(lr(e),lr(t))}var fs=new Set(["copyWithin","fill","pop","push","reverse","shift","sort","splice","unshift"]);function ss(e){return new Proxy(e,{get(t,r,o){var a=Reflect.get(t,r,o);return fs.has(r)?function(...n){On();var f=a.apply(this,n);return oo(),f}:a}})}function In(){let e=Array.prototype,t=Array.__svelte_cleanup;t&&t();let{indexOf:r,lastIndexOf:o,includes:a}=e;e.indexOf=function(n,f){let s=r.call(this,n,f);if(s===-1){for(let i=f??0;i<this.length;i+=1)if(lr(this[i])===n){Wr("array.indexOf(...)");break}}return s},e.lastIndexOf=function(n,f){let s=o.call(this,n,f??this.length-1);if(s===-1){for(let i=0;i<=(f??this.length-1);i+=1)if(lr(this[i])===n){Wr("array.lastIndexOf(...)");break}}return s},e.includes=function(n,f){let s=a.call(this,n,f);if(!s){for(let i=0;i<this.length;i+=1)if(lr(this[i])===n){Wr("array.includes(...)");break}}return s},Array.__svelte_cleanup=()=>{e.indexOf=r,e.lastIndexOf=o,e.includes=a}}var ra,Bn,br,qn,Un;function io(){if(ra===void 0){ra=window,Bn=document,br=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;qn=ve(t,"firstChild").get,Un=ve(t,"nextSibling").get,Io(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Io(r)&&(r.__t=void 0),d&&(e.__svelte_meta=null,In())}}function J(e=""){return document.createTextNode(e)}function Y(e){return qn.call(e)}function le(e){return Un.call(e)}function A(e,t){if(!h)return Y(e);var r=Y(E);if(r===null)r=E.appendChild(J());else if(t&&r.nodeType!==gr){var o=J();return r?.before(o),O(o),o}return O(r),r}function re(e,t=!1){if(!h){var r=Y(e);return r instanceof Comment&&r.data===""?le(r):r}if(t&&E?.nodeType!==gr){var o=J();return E?.before(o),O(o),o}return E}function Q(e,t=1,r=!1){let o=h?E:e;for(var a;t--;)a=o,o=le(o);if(!h)return o;if(r&&o?.nodeType!==gr){var n=J();return o===null?a?.after(n):o.before(n),O(n),n}return O(o),o}function Rr(e){e.textContent=""}function lo(){if(!we||Ve!==null)return!1;var e=w.f;return(e&32768)!==0}function oa(e,t){if(t){let r=document.body;e.autofocus=!0,fe(()=>{document.activeElement===r&&e.focus()})}}var Hn=!1;function aa(){Hn||(Hn=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function kt(e){var t=y,r=w;X(null),Z(null);try{return e()}finally{X(t),Z(r)}}function fa(e){w===null&&(y===null&&sn(e),fn()),Ge&&nn(e)}function is(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ze(e,t,r){var o=w;if(d)for(;o!==null&&o.f&131072;)o=o.parent;o!==null&&o.f&8192&&(e|=8192);var a={ctx:k,deps:null,nodes:null,f:e|2048|512,first:null,fn:t,last:null,next:null,parent:o,b:o&&o.b,prev:null,teardown:null,wv:0,ac:null};if(d&&(a.component_function=je),r)try{Ct(a),a.f|=32768}catch(s){throw U(a),s}else t!==null&&Oe(a);var n=a;if(r&&n.deps===null&&n.teardown===null&&n.nodes===null&&n.first===n.last&&!(n.f&524288)&&(n=n.first,e&16&&e&65536&&n!==null&&(n.f|=65536)),n!==null&&(n.parent=o,o!==null&&is(n,o),y!==null&&y.f&2&&!(e&64))){var f=y;(f.effects??=[]).push(n)}return a}function $t(){return y!==null&&!Re}function ce(e){let t=ze(8,null,!1);return I(t,1024),t.teardown=e,t}function ur(e){fa("$effect"),d&&se(e,"name",{value:"$effect"});var t=w.f,r=!y&&(t&32)!==0&&(t&32768)===0;if(r){var o=k;(o.e??=[]).push(e)}else return Ho(e)}function Ho(e){return ze(1048580,e,!1)}function Mr(e){return fa("$effect.pre"),d&&se(e,"name",{value:"$effect.pre"}),ze(1048584,e,!0)}function sa(e){Ee.ensure();let t=ze(524352,e,!0);return()=>{U(t)}}function Gn(e){Ee.ensure();let t=ze(524352,e,!0);return(r={})=>new Promise(o=>{r.outro?st(t,()=>{U(t),o(void 0)}):(U(t),o(void 0))})}function Ie(e){return ze(4,e,!1)}function Nn(e){return ze(4718592,e,!0)}function $e(e,t=0){return ze(8|t,e,!0)}function uo(e,t=[],r=[],o=[]){Cr(o,t,r,a=>{ze(8,()=>e(...a.map(b)),!0)})}function ke(e,t=0){var r=ze(16|t,e,!0);return d&&(r.dev_stack=Ue),r}function po(e,t=0){var r=ze(16777216|t,e,!0);return d&&(r.dev_stack=Ue),r}function K(e){return ze(524320,e,!0)}function ia(e){var t=e.teardown;if(t!==null){let r=Ge,o=y;na(!0),X(null);try{t.call(null)}finally{na(r),X(o)}}}function la(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){let a=r.ac;a!==null&&kt(()=>{a.abort(et)});var o=r.next;r.f&64?r.parent=null:U(r,t),r=o}}function zn(e){for(var t=e.first;t!==null;){var r=t.next;t.f&32||U(t),t=r}}function U(e,t=!0){var r=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Wn(e.nodes.start,e.nodes.end),r=!0),la(e,t&&!r),Pr(e,0),I(e,16384);var o=e.nodes&&e.nodes.t;if(o!==null)for(let n of o)n.stop();ia(e);var a=e.parent;a!==null&&a.first!==null&&Wo(e),d&&(e.component_function=null),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Wn(e,t){for(;e!==null;){var r=e===t?null:le(e);e.remove(),e=r}}function Wo(e){var t=e.parent,r=e.prev,o=e.next;r!==null&&(r.next=o),o!==null&&(o.prev=r),t!==null&&(t.first===e&&(t.first=o),t.last===e&&(t.last=r))}function st(e,t,r=!0){var o=[];Yn(e,o,!0);var a=()=>{r&&U(e),t&&t()},n=o.length;if(n>0){var f=()=>--n||a();for(var s of o)s.out(f)}else a()}function Yn(e,t,r){if(!(e.f&8192)){e.f^=8192;var o=e.nodes&&e.nodes.t;if(o!==null)for(let s of o)(s.is_global||r)&&t.push(s);for(var a=e.first;a!==null;){var n=a.next,f=(a.f&65536)!==0||(a.f&32)!==0&&(e.f&16)!==0;Yn(a,t,f?r:!1),a=n}}}function Dr(e){jn(e,!0)}function jn(e,t){if(e.f&8192){e.f^=8192,e.f&1024||(I(e,2048),Oe(e));for(var r=e.first;r!==null;){var o=r.next,a=(r.f&65536)!==0||(r.f&32)!==0;jn(r,a?t:!1),r=o}var n=e.nodes&&e.nodes.t;if(n!==null)for(let f of n)(f.is_global||t)&&f.in()}}function ao(e,t){if(e.nodes)for(var r=e.nodes.start,o=e.nodes.end;r!==null;){var a=r===o?null:le(r);t.append(r),r=a}}var Xn=null;var xt=!1;function ar(e){xt=e}var Ge=!1;function na(e){Ge=e}var y=null,Re=!1;function X(e){y=e}var w=null;function Z(e){w=e}var it=null;function so(e){y!==null&&(!we||y.f&2)&&(it===null?it=[e]:it.push(e))}var Me=null,Be=0,Fe=null;function Fn(e){Fe=e}var Kn=1,Yt=0,At=Yt;function ea(e){At=e}function sr(){return++Kn}function St(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=-32769),t&4096){for(var r=e.deps,o=r.length,a=0;a<o;a++){var n=r[a];if(St(n)&&Jo(n),n.wv>e.wv)return!0}t&512&&pe===null&&I(e,1024)}return!1}function Zn(e,t,r=!0){var o=e.reactions;if(o!==null&&!(!we&&it?.includes(e)))for(var a=0;a<o.length;a++){var n=o[a];n.f&2?Zn(n,t,!1):t===n&&(r?I(n,2048):n.f&1024&&I(n,4096),Oe(n))}}function fo(e){var t=Me,r=Be,o=Fe,a=y,n=it,f=k,s=Re,i=At,u=e.f;Me=null,Be=0,Fe=null,y=u&96?null:e,it=null,mt(e.ctx),Re=!1,At=++Yt,e.ac!==null&&(kt(()=>{e.ac.abort(et)}),e.ac=null);try{e.f|=2097152;var _=e.fn,c=_(),l=e.deps;if(Me!==null){var p;if(Pr(e,Be),l!==null&&Be>0)for(l.length=Be+Me.length,p=0;p<Me.length;p++)l[Be+p]=Me[p];else e.deps=l=Me;if($t()&&e.f&512)for(p=Be;p<l.length;p++)(l[p].reactions??=[]).push(e)}else l!==null&&Be<l.length&&(Pr(e,Be),l.length=Be);if(at()&&Fe!==null&&!Re&&l!==null&&!(e.f&6146))for(p=0;p<Fe.length;p++)Zn(Fe[p],e);if(a!==null&&a!==e){if(Yt++,a.deps!==null)for(let x=0;x<r;x+=1)a.deps[x].rv=Yt;if(t!==null)for(let x of t)x.rv=Yt;Fe!==null&&(o===null?o=Fe:o.push(...Fe))}return e.f&8388608&&(e.f^=8388608),c}catch(x){return Jr(x)}finally{e.f^=2097152,Me=t,Be=r,Fe=o,y=a,it=n,mt(f),Re=s,At=i}}function ls(e,t){let r=t.reactions;if(r!==null){var o=Qa.call(r,e);if(o!==-1){var a=r.length-1;a===0?r=t.reactions=null:(r[o]=r[a],r.pop())}}if(r===null&&t.f&2&&(Me===null||!Me.includes(t))){var n=t;n.f&512&&(n.f^=512,n.f&=-32769),tr(n),no(n),Pr(n,0)}}function Pr(e,t){var r=e.deps;if(r!==null)for(var o=t;o<r.length;o++)ls(e,r[o])}function Ct(e){var t=e.f;if(!(t&16384)){I(e,1024);var r=w,o=xt;if(w=e,xt=!0,d){var a=je;Zr(e.component_function);var n=Ue;Qt(e.dev_stack??Ue)}try{t&16777232?zn(e):la(e),ia(e);var f=fo(e);if(e.teardown=typeof f=="function"?f:null,e.wv=Kn,d&&Ye&&e.f&2048&&e.deps!==null)for(var s of e.deps)s.set_during_effect&&(s.wv=sr(),s.set_during_effect=!1)}finally{xt=o,w=r,d&&(Zr(a),Qt(n))}}}function b(e){var t=e.f,r=(t&2)!==0;if(Xn?.add(e),y!==null&&!Re){var o=w!==null&&(w.f&16384)!==0;if(!o&&!it?.includes(e)){var a=y.deps;if(y.f&2097152)e.rv<Yt&&(e.rv=Yt,Me===null&&a!==null&&a[Be]===e?Be++:Me===null?Me=[e]:Me.push(e));else{(y.deps??=[]).push(e);var n=e.reactions;n===null?e.reactions=[y]:n.includes(y)||n.push(y)}}}if(d&&(Tr.delete(e),Ye&&!Re&&wr!==null&&y!==null&&wr.reaction===y))if(e.trace)e.trace();else{var f=ot("traced at");if(f){var s=wr.entries.get(e);s===void 0&&(s={traces:[]},wr.entries.set(e,s));var i=s.traces[s.traces.length-1];f.stack!==i?.stack&&s.traces.push(f)}}if(Ge&&ft.has(e))return ft.get(e);if(r){var u=e;if(Ge){var _=u.v;return(!(u.f&1024)&&u.reactions!==null||Qn(u))&&(_=kr(u)),ft.set(u,_),_}var c=(u.f&512)===0&&!Re&&y!==null&&(xt||(y.f&512)!==0),l=u.deps===null;St(u)&&(c&&(u.f|=512),Jo(u)),c&&!l&&Jn(u)}if(pe?.has(e))return pe.get(e);if(e.f&8388608)throw e.v;return e.v}function Jn(e){if(e.deps!==null){e.f|=512;for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&Jn(t)}}function Qn(e){if(e.v===F)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(ft.has(t)||t.f&2&&Qn(t))return!0;return!1}function L(e){var t=Re;try{return Re=!0,e()}finally{Re=t}}function lt(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(ne in e)co(e);else if(!Array.isArray(e))for(let t in e){let r=e[t];typeof r=="object"&&r&&ne in r&&co(r)}}}function co(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let o in e)try{co(e[o],t)}catch{}let r=Nt(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){let o=Ur(r);for(let a in o){let n=o[a].get;if(n)try{n.call(e)}catch{}}}}}var pa=new Set,mo=new Set;function tf(e,t,r,o={}){function a(n){if(o.capture||pr.call(t,n),!n.cancelBubble)return kt(()=>r?.call(this,n))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?fe(()=>{t.addEventListener(e,a,o)}):t.addEventListener(e,a,o),a}function Nr(e){for(var t=0;t<e.length;t++)pa.add(e[t]);for(var r of mo)r(e)}var ef=null;function pr(e){var t=this,r=t.ownerDocument,o=e.type,a=e.composedPath?.()||[],n=a[0]||e.target;ef=e;var f=0,s=ef===e&&e.__root;if(s){var i=a.indexOf(s);if(i!==-1&&(t===document||t===window)){e.__root=t;return}var u=a.indexOf(t);if(u===-1)return;i<=u&&(f=i)}if(n=a[f]||e.target,n!==t){se(e,"currentTarget",{configurable:!0,get(){return n||r}});var _=y,c=w;X(null),Z(null);try{for(var l,p=[];n!==null;){var x=n.assignedSlot||n.parentNode||n.host||null;try{var g=n["__"+o];g!=null&&(!n.disabled||e.target===n)&&g.call(n,e)}catch(m){l?p.push(m):l=m}if(e.cancelBubble||x===t||x===null)break;n=x}if(l){for(let m of p)queueMicrotask(()=>{throw m});throw l}}finally{e.__root=t,delete e.currentTarget,X(_),Z(c)}}}function Or(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function De(e,t){var r=w;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function da(e,t){var r=(t&1)!==0,o=(t&2)!==0,a,n=!e.startsWith("<!>");return()=>{if(h)return De(E,null),E;a===void 0&&(a=Or(n?e:"<!>"+e),r||(a=Y(a)));var f=o||br?document.importNode(a,!0):a.cloneNode(!0);if(r){var s=Y(f),i=f.lastChild;De(s,i)}else De(f,f);return f}}function cs(e,t,r="svg"){var o=!e.startsWith("<!>"),a=(t&1)!==0,n=`<${r}>${o?e:"<!>"+e}</${r}>`,f;return()=>{if(h)return De(E,null),E;if(!f){var s=Or(n),i=Y(s);if(a)for(f=document.createDocumentFragment();Y(i);)f.appendChild(Y(i));else f=Y(i)}var u=f.cloneNode(!0);if(a){var _=Y(u),c=u.lastChild;De(_,c)}else De(u,u);return u}}function ca(e,t){return cs(e,t,"svg")}function oe(){if(h)return De(E,null),E;var e=document.createDocumentFragment(),t=document.createComment(""),r=J();return e.append(t,r),De(t,r),e}function G(e,t){if(h){var r=w;(!(r.f&32768)||r.nodes.end===null)&&(r.nodes.end=E),te();return}e!==null&&e.before(t)}function of(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}var ms=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function af(e){return ms.includes(e)}var _s=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var xs={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function nf(e){return e=e.toLowerCase(),xs[e]??e}var bd=[..._s,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var hs=["touchstart","touchmove"];function ff(e){return hs.includes(e)}var vs=["$state","$state.raw","$derived","$derived.by"],yd=[...vs,"$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];var gs=["textarea","script","style","title"];function sf(e){return gs.includes(e)}var _o=!0;function cr(e){_o=e}function Rt(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function mr(e,t){return lf(e,t)}function _a(e,t){io(),t.intro=t.intro??!1;let r=t.target,o=h,a=E;try{for(var n=Y(r);n&&(n.nodeType!==Ce||n.data!==vr);)n=le(n);if(!n)throw dt;W(!0),O(n);let f=lf(e,{...t,anchor:n});return W(!1),f}catch(f){if(f instanceof Error&&f.message.split(`
|
|
39
|
+
`).some(s=>s.startsWith("https://svelte.dev/e/")))throw f;return f!==dt&&console.warn("Failed to hydrate: ",f),t.recover===!1&&un(),io(),Rr(r),W(!1),mr(e,t)}finally{W(o),O(a)}}var dr=new Map;function lf(e,{target:t,anchor:r,props:o={},events:a,context:n,intro:f=!0}){io();var s=new Set,i=c=>{for(var l=0;l<c.length;l++){var p=c[l];if(!s.has(p)){s.add(p);var x=ff(p);t.addEventListener(p,pr,{passive:x});var g=dr.get(p);g===void 0?(document.addEventListener(p,pr,{passive:x}),dr.set(p,1)):dr.set(p,g+1)}}};i(Kt(pa)),mo.add(i);var u=void 0,_=Gn(()=>{var c=r??t.appendChild(J());return jo(c,{pending:()=>{}},l=>{if(n){Ft({});var p=k;p.c=n}if(a&&(o.$$events=a),h&&De(l,null),_o=f,u=e(l,o)||{},_o=!0,h&&(w.nodes.end=E,E===null||E.nodeType!==Ce||E.data!==Pt))throw Lt(),dt;n&&It()}),()=>{for(var l of s){t.removeEventListener(l,pr);var p=dr.get(l);--p===0?(document.removeEventListener(l,pr),dr.delete(l)):dr.set(l,p)}mo.delete(i),c!==r&&c.parentNode?.removeChild(c)}});return ma.set(u,_),u}var ma=new WeakMap;function xa(e,t){let r=ma.get(e);return r?(ma.delete(e),r(t)):(d&&(ne in e?bn():gn()),Promise.resolve())}var ut=class{anchor;#e=new Map;#t=new Map;#r=new Map;#n=new Set;#f=!0;constructor(t,r=!0){this.anchor=t,this.#f=r}#a=()=>{var t=P;if(this.#e.has(t)){var r=this.#e.get(t),o=this.#t.get(r);if(o)Dr(o),this.#n.delete(r);else{var a=this.#r.get(r);a&&(this.#t.set(r,a.effect),this.#r.delete(r),a.fragment.lastChild.remove(),this.anchor.before(a.fragment),o=a.effect)}for(let[n,f]of this.#e){if(this.#e.delete(n),n===t)break;let s=this.#r.get(f);s&&(U(s.effect),this.#r.delete(f))}for(let[n,f]of this.#t){if(n===r||this.#n.has(n))continue;let s=()=>{if(Array.from(this.#e.values()).includes(n)){var u=document.createDocumentFragment();ao(f,u),u.append(J()),this.#r.set(n,{effect:f,fragment:u})}else U(f);this.#n.delete(n),this.#t.delete(n)};this.#f||!o?(this.#n.add(n),st(f,s,!1)):s()}}};#o=t=>{this.#e.delete(t);let r=Array.from(this.#e.values());for(let[o,a]of this.#r)r.includes(o)||(U(a.effect),this.#r.delete(o))};ensure(t,r){var o=P,a=lo();if(r&&!this.#t.has(t)&&!this.#r.has(t))if(a){var n=document.createDocumentFragment(),f=J();n.append(f),this.#r.set(t,{effect:K(()=>r(f)),fragment:n})}else this.#t.set(t,K(()=>r(this.anchor)));if(this.#e.set(o,t),a){for(let[s,i]of this.#t)s===t?o.skipped_effects.delete(i):o.skipped_effects.add(i);for(let[s,i]of this.#r)s===t?o.skipped_effects.delete(i.effect):o.skipped_effects.add(i.effect);o.oncommit(this.#a),o.ondiscard(this.#o)}else h&&(this.anchor=E),this.#a()}};if(d){let e=function(t){if(!(t in globalThis)){let r;Object.defineProperty(globalThis,t,{configurable:!0,get:()=>{if(r!==void 0)return r;dn(t)},set:o=>{r=o}})}};e("$state"),e("$effect"),e("$derived"),e("$inspect"),e("$props"),e("$bindable")}function pf(e){k===null&&zr("onMount"),rt&&k.l!==null?ys(k).m.push(e):ur(()=>{let t=L(e);if(typeof t=="function")return t})}function ys(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}function ha(e,t,r=!1){h&&te();var o=new ut(e),a=r?65536:0;function n(f,s){if(h){let u=Yr(e)===Qe;if(f===u){var i=ct();O(i),o.anchor=i,W(!1),o.ensure(f,s),W(!0);return}}o.ensure(f,s)}ke(()=>{var f=!1;t((s,i=!0)=>{f=!0,n(i,s)}),f||n(!1,null)},a)}function ga(e,t){return t}function Ts(e,t,r){for(var o=[],a=t.length,n,f=t.length,s=0;s<a;s++){let c=t[s];st(c,()=>{if(n){if(n.pending.delete(c),n.done.add(c),n.pending.size===0){var l=e.outrogroups;va(Kt(n.done)),l.delete(n),l.size===0&&(e.outrogroups=null)}}else f-=1},!1)}if(f===0){var i=o.length===0&&r!==null;if(i){var u=r,_=u.parentNode;Rr(_),_.append(u),e.items.clear()}va(t,!i)}else n={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(n)}function va(e,t=!0){for(var r=0;r<e.length;r++)U(e[r],t)}var cf;function wa(e,t,r,o,a,n=null){var f=e,s=new Map,i=(t&4)!==0;if(i){var u=e;f=h?O(Y(u)):u.appendChild(J())}h&&te();var _=null,c=Vt(()=>{var v=r();return We(v)?v:v==null?[]:Kt(v)}),l,p=!0;function x(){m.fallback=_,As(m,l,f,t,o),_!==null&&(l.length===0?_.f&33554432?(_.f^=33554432,Lr(_,null,f)):Dr(_):st(_,()=>{_=null}))}var g=ke(()=>{l=b(c);var v=l.length;let B=!1;if(h){var M=Yr(f)===Qe;M!==(v===0)&&(f=ct(),O(f),W(!1),B=!0)}for(var $=new Set,j=P,C=lo(),T=0;T<v;T+=1){h&&E.nodeType===Ce&&E.data===Pt&&(f=E,B=!0,W(!1));var q=l[T],he=o(q,T),R=p?null:s.get(he);R?(R.v&&Je(R.v,q),R.i&&Je(R.i,T),C&&j.skipped_effects.delete(R.e)):(R=ks(s,p?f:cf??=J(),q,he,T,a,t,r),p||(R.e.f|=33554432),s.set(he,R)),$.add(he)}if(v===0&&n&&!_&&(p?_=K(()=>n(f)):(_=K(()=>n(cf??=J())),_.f|=33554432)),h&&v>0&&O(ct()),!p)if(C){for(let[Dt,Xt]of s)$.has(Dt)||j.skipped_effects.add(Xt.e);j.oncommit(x),j.ondiscard(()=>{})}else x();B&&W(!0),b(c)}),m={effect:g,flags:t,items:s,outrogroups:null,fallback:_};p=!1,h&&(f=E)}function As(e,t,r,o,a){var n=(o&8)!==0,f=t.length,s=e.items,i=e.effect.first,u,_=null,c,l=[],p=[],x,g,m,v;if(n)for(v=0;v<f;v+=1)x=t[v],g=a(x,v),m=s.get(g).e,m.f&33554432||(m.nodes?.a?.measure(),(c??=new Set).add(m));for(v=0;v<f;v+=1){if(x=t[v],g=a(x,v),m=s.get(g).e,e.outrogroups!==null)for(let R of e.outrogroups)R.pending.delete(m),R.done.delete(m);if(m.f&33554432)if(m.f^=33554432,m===i)Lr(m,null,r);else{var B=_?_.next:i;m===e.effect.last&&(e.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),Mt(e,_,m),Mt(e,m,B),Lr(m,B,r),_=m,l=[],p=[],i=_.next;continue}if(m.f&8192&&(Dr(m),n&&(m.nodes?.a?.unfix(),(c??=new Set).delete(m))),m!==i){if(u!==void 0&&u.has(m)){if(l.length<p.length){var M=p[0],$;_=M.prev;var j=l[0],C=l[l.length-1];for($=0;$<l.length;$+=1)Lr(l[$],M,r);for($=0;$<p.length;$+=1)u.delete(p[$]);Mt(e,j.prev,C.next),Mt(e,_,j),Mt(e,C,M),i=M,_=C,v-=1,l=[],p=[]}else u.delete(m),Lr(m,i,r),Mt(e,m.prev,m.next),Mt(e,m,_===null?e.effect.first:_.next),Mt(e,_,m),_=m;continue}for(l=[],p=[];i!==null&&i!==m;)(u??=new Set).add(i),p.push(i),i=i.next;if(i===null)continue}m.f&33554432||l.push(m),_=m,i=m.next}if(e.outrogroups!==null){for(let R of e.outrogroups)R.pending.size===0&&(va(Kt(R.done)),e.outrogroups?.delete(R));e.outrogroups.size===0&&(e.outrogroups=null)}if(i!==null||u!==void 0){var T=[];if(u!==void 0)for(m of u)m.f&8192||T.push(m);for(;i!==null;)!(i.f&8192)&&i!==e.fallback&&T.push(i),i=i.next;var q=T.length;if(q>0){var he=o&4&&f===0?r:null;if(n){for(v=0;v<q;v+=1)T[v].nodes?.a?.measure();for(v=0;v<q;v+=1)T[v].nodes?.a?.fix()}Ts(e,T,he)}}n&&fe(()=>{if(c!==void 0)for(m of c)m.nodes?.a?.apply()})}function ks(e,t,r,o,a,n,f,s){var i=f&1?f&16?de(r):zt(r,!1,!1):null,u=f&2?de(a):null;return d&&i&&(i.trace=()=>{s()[u?.v??a]}),{v:i,i:u,e:K(()=>(n(t,i??r,u??a,s),()=>{e.delete(o)}))}}function Lr(e,t,r){if(e.nodes)for(var o=e.nodes.start,a=e.nodes.end,n=t&&!(t.f&33554432)?t.nodes.start:r;o!==null;){var f=le(o);if(n.before(o),o===a)return;o=f}}function Mt(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function ae(e,t,r,o,a){h&&te();var n=t.$$slots?.[r],f=!1;n===!0&&(n=t[r==="default"?"children":r],f=!0),n===void 0?a!==null&&a(e):n(e,f?()=>o:o)}var Ms=null;function ba(e){Ms=e}function ya(e,t,r,o,a,n){let f=h;h&&te();var s=d&&n&&k?.function[Pe],i=null;h&&E.nodeType===Gr&&(i=E,te());var u=h?E:e,_=w,c=new ut(u,!1);ke(()=>{let l=t()||null;var p=a?a():r||l==="svg"?qr:null;if(l===null){c.ensure(null,null),cr(!0);return}return c.ensure(l,x=>{if(l){if(i=h?i:p?document.createElementNS(p,l):document.createElement(l),d&&n&&(i.__svelte_meta={parent:Ue,loc:{file:s,line:n[0],column:n[1]}}),De(i,i),o){h&&sf(l)&&i.append(document.createComment(""));var g=h?Y(i):i.appendChild(J());h&&(g===null?W(!1):O(g)),ba(_),o(i,g),ba(null)}w.nodes.end=i,x.before(i)}h&&O(x)}),cr(!0),()=>{l&&cr(!1)}},65536),ce(()=>{cr(!0)}),f&&(W(!0),O(u))}function xo(e,t){var r=void 0,o;po(()=>{r!==(r=t())&&(o&&(U(o),o=null),r&&(o=K(()=>{Ie(()=>r(e))})))})}function _f(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=_f(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function xf(){for(var e,t,r=0,o="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=_f(e))&&(o&&(o+=" "),o+=t);return o}function $a(e){return typeof e=="object"?xf(e):e??""}var hf=[...`
|
|
40
|
+
\r\f\xA0\v\uFEFF`];function gf(e,t,r){var o=e==null?"":""+e;if(t&&(o=o?o+" "+t:t),r){for(var a in r)if(r[a])o=o?o+" "+a:a;else if(o.length)for(var n=a.length,f=0;(f=o.indexOf(a,f))>=0;){var s=f+n;(f===0||hf.includes(o[f-1]))&&(s===o.length||hf.includes(o[s]))?o=(f===0?"":o.substring(0,f))+o.substring(s+1):f=s}}return o===""?null:o}function vf(e,t=!1){var r=t?" !important;":";",o="";for(var a in e){var n=e[a];n!=null&&n!==""&&(o+=" "+a+": "+n+r)}return o}function Ea(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function wf(e,t){if(t){var r="",o,a;if(Array.isArray(t)?(o=t[0],a=t[1]):o=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var n=!1,f=0,s=!1,i=[];o&&i.push(...Object.keys(o).map(Ea)),a&&i.push(...Object.keys(a).map(Ea));var u=0,_=-1;let g=e.length;for(var c=0;c<g;c++){var l=e[c];if(s?l==="/"&&e[c-1]==="*"&&(s=!1):n?n===l&&(n=!1):l==="/"&&e[c+1]==="*"?s=!0:l==='"'||l==="'"?n=l:l==="("?f++:l===")"&&f--,!s&&n===!1&&f===0){if(l===":"&&_===-1)_=c;else if(l===";"||c===g-1){if(_!==-1){var p=Ea(e.substring(u,_).trim());if(!i.includes(p)){l!==";"&&c++;var x=e.substring(u,c).trim();r+=" "+x+";"}}u=c+1,_=-1}}}}return o&&(r+=vf(o)),a&&(r+=vf(a,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function _r(e,t,r,o,a,n){var f=e.__className;if(h||f!==r||f===void 0){var s=gf(r,o,n);(!h||s!==e.getAttribute("class"))&&(s==null?e.removeAttribute("class"):t?e.className=s:e.setAttribute("class",s)),e.__className=r}else if(n&&a!==n)for(var i in n){var u=!!n[i];(a==null||u!==!!a[i])&&e.classList.toggle(i,u)}return n}function Ca(e,t={},r,o){for(var a in r){var n=r[a];t[a]!==n&&(r[a]==null?e.style.removeProperty(a):e.style.setProperty(a,n,o))}}function Sa(e,t,r,o){var a=e.__style;if(h||a!==t){var n=wf(t,o);(!h||n!==e.getAttribute("style"))&&(n==null?e.removeAttribute("style"):e.style.cssText=n),e.__style=t}else o&&(Array.isArray(o)?(Ca(e,r?.[0],o[0]),Ca(e,r?.[1],o[1],"important")):Ca(e,r,o));return o}function Fr(e,t,r=!1){if(e.multiple){if(t==null)return;if(!We(t))return wn();for(var o of e.options)o.selected=t.includes(bf(o));return}for(o of e.options){var a=bf(o);if(ta(a,t)){o.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function Ta(e){var t=new MutationObserver(()=>{Fr(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),ce(()=>{t.disconnect()})}function bf(e){return"__value"in e?e.__value:e.value}var xr=Symbol("class"),hr=Symbol("style"),$f=Symbol("is custom element"),Cf=Symbol("is html");function Sf(e){if(h){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var o=e.value;Ir(e,"value",null),e.value=o}if(e.hasAttribute("checked")){var a=e.checked;Ir(e,"checked",null),e.checked=a}}};e.__on_r=r,fe(r),aa()}}function Tf(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function Ir(e,t,r,o){var a=Af(e);if(h&&(a[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")){o||Ns(e,t,r??"");return}a[t]!==(a[t]=r)&&(t==="loading"&&(e[rn]=r),r==null?e.removeAttribute(t):typeof r!="string"&&kf(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ps(e,t,r,o,a=!1,n=!1){if(h&&a&&e.tagName==="INPUT"){var f=e,s=f.type==="checkbox"?"defaultChecked":"defaultValue";s in r||Sf(f)}var i=Af(e),u=i[$f],_=!i[Cf];let c=h&&u;c&&W(!1);var l=t||{},p=e.tagName==="OPTION";for(var x in t)x in r||(r[x]=null);r.class?r.class=$a(r.class):(o||r[xr])&&(r.class=null),r[hr]&&(r.style??=null);var g=kf(e);for(let C in r){let T=r[C];if(p&&C==="value"&&T==null){e.value=e.__value="",l[C]=T;continue}if(C==="class"){var m=e.namespaceURI==="http://www.w3.org/1999/xhtml";_r(e,m,T,o,t?.[xr],r[xr]),l[C]=T,l[xr]=r[xr];continue}if(C==="style"){Sa(e,T,t?.[hr],r[hr]),l[C]=T,l[hr]=r[hr];continue}var v=l[C];if(!(T===v&&!(T===void 0&&e.hasAttribute(C)))){l[C]=T;var B=C[0]+C[1];if(B!=="$$")if(B==="on"){let q={},he="$$"+C,R=C.slice(2);var M=af(R);if(of(R)&&(R=R.slice(0,-7),q.capture=!0),!M&&v){if(T!=null)continue;e.removeEventListener(R,l[he],q),l[he]=null}if(T!=null)if(M)e[`__${R}`]=T,Nr([R]);else{let Dt=function(Xt){l[C].call(this,Xt)};l[he]=tf(R,e,Dt,q)}else M&&(e[`__${R}`]=void 0)}else if(C==="style")Ir(e,C,T);else if(C==="autofocus")oa(e,!!T);else if(!u&&(C==="__value"||C==="value"&&T!=null))e.value=e.__value=T;else if(C==="selected"&&p)Tf(e,T);else{var $=C;_||($=nf($));var j=$==="defaultValue"||$==="defaultChecked";if(T==null&&!u&&!j)if(i[C]=null,$==="value"||$==="checked"){let q=e,he=t===void 0;if($==="value"){let R=q.defaultValue;q.removeAttribute($),q.defaultValue=R,q.value=q.__value=he?R:null}else{let R=q.defaultChecked;q.removeAttribute($),q.defaultChecked=R,q.checked=he?R:!1}}else e.removeAttribute(C);else j||g.includes($)&&(u||typeof T!="string")?(e[$]=T,$ in i&&(i[$]=F)):typeof T!="function"&&Ir(e,$,T,n)}}}return c&&W(!0),l}function ho(e,t,r=[],o=[],a=[],n,f=!1,s=!1){Cr(a,r,o,i=>{var u=void 0,_={},c=e.nodeName==="SELECT",l=!1;if(po(()=>{var x=t(...i.map(b)),g=Ps(e,u,x,n,f,s);l&&c&&"value"in x&&Fr(e,x.value);for(let v of Object.getOwnPropertySymbols(_))x[v]||U(_[v]);for(let v of Object.getOwnPropertySymbols(x)){var m=x[v];v.description===Oo&&(!u||m!==u[v])&&(_[v]&&U(_[v]),_[v]=K(()=>xo(e,()=>m))),g[v]=m}u=g}),c){var p=e;Ie(()=>{Fr(p,u.value,!0),Ta(p)})}l=!0})}function Af(e){return e.__attributes??={[$f]:e.nodeName.includes("-"),[Cf]:e.namespaceURI===Za}}var yf=new Map;function kf(e){var t=e.getAttribute("is")||e.nodeName,r=yf.get(t);if(r)return r;yf.set(t,r=[]);for(var o,a=e,n=Element.prototype;n!==a;){o=Ur(a);for(var f in o)o[f].set&&r.push(f);a=Nt(a)}return r}function Ns(e,t,r){d&&(t==="srcset"&&Os(e,r)||Aa(e.getAttribute(t)??"",r)||vn(t,e.outerHTML.replace(e.innerHTML,e.innerHTML&&"..."),String(r)))}function Aa(e,t){return e===t?!0:new URL(e,document.baseURI).href===new URL(t,document.baseURI).href}function Ef(e){return e.split(",").map(t=>t.trim().split(" ").filter(Boolean))}function Os(e,t){var r=Ef(e.srcset),o=Ef(t);return o.length===r.length&&o.every(([a,n],f)=>n===r[f][1]&&(Aa(r[f][0],a)||Aa(a,r[f][0])))}function ka(e=!1){let t=k,r=t.l.u;if(!r)return;let o=()=>lt(t.s);if(e){let a=0,n={},f=Tt(()=>{let s=!1,i=t.s;for(let u in i)i[u]!==n[u]&&(n[u]=i[u],s=!0);return s&&a++,a});o=()=>b(f)}r.b.length&&Mr(()=>{Rf(t,o),Zt(r.b)}),ur(()=>{let a=L(()=>r.m.map(tn));return()=>{for(let n of a)typeof n=="function"&&n()}}),r.a.length&&ur(()=>{Rf(t,o),Zt(r.a)})}function Rf(e,t){if(e.l.s)for(let r of e.l.s)b(r);t()}var go=!1,Pv=Symbol();function Ra(e){var t=go;try{return go=!1,[e(),go]}finally{go=t}}var Us={get(e,t){if(!e.exclude.includes(t))return b(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,r){if(!(t in e.special)){var o=w;try{Z(e.parent_effect),e.special[t]=wt({get[t](){return e.props[t]}},t,4)}finally{Z(o)}}return e.special[t](r),$r(e.version),!0},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},deleteProperty(e,t){return e.exclude.includes(t)||(e.exclude.push(t),$r(e.version)),!0},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function ee(e,t){return new Proxy({props:e,exclude:t,special:{},version:de(0),parent_effect:w},Us)}var Hs={get(e,t){let r=e.props.length;for(;r--;){let o=e.props[r];if(Ot(o)&&(o=o()),typeof o=="object"&&o!==null&&t in o)return o[t]}},set(e,t,r){let o=e.props.length;for(;o--;){let a=e.props[o];Ot(a)&&(a=a());let n=ve(a,t);if(n&&n.set)return n.set(r),!0}return!1},getOwnPropertyDescriptor(e,t){let r=e.props.length;for(;r--;){let o=e.props[r];if(Ot(o)&&(o=o()),typeof o=="object"&&o!==null&&t in o){let a=ve(o,t);return a&&!a.configurable&&(a.configurable=!0),a}}},has(e,t){if(t===ne||t===Jt)return!1;for(let r of e.props)if(Ot(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){let t=[];for(let r of e.props)if(Ot(r)&&(r=r()),!!r){for(let o in r)t.includes(o)||t.push(o);for(let o of Object.getOwnPropertySymbols(r))t.includes(o)||t.push(o)}return t}};function _e(...e){return new Proxy({props:e},Hs)}function wt(e,t,r,o){var a=!rt||(r&2)!==0,n=(r&8)!==0,f=(r&16)!==0,s=o,i=!0,u=()=>(i&&(i=!1,s=f?L(o):o),s),_;if(n){var c=ne in e||Jt in e;_=ve(e,t)?.set??(c&&t in e?M=>e[t]=M:void 0)}var l,p=!1;n?[l,p]=Ra(()=>e[t]):l=e[t],l===void 0&&o!==void 0&&(l=u(),_&&(a&&pn(t),_(l)));var x;if(a?x=()=>{var M=e[t];return M===void 0?u():(i=!0,M)}:x=()=>{var M=e[t];return M!==void 0&&(s=void 0),M===void 0?s:M},a&&!(r&4))return x;if(_){var g=e.$$legacy;return function(M,$){return arguments.length>0?((!a||!$||g||p)&&_($?x():M),M):x()}}var m=!1,v=(r&1?Tt:Vt)(()=>(m=!1,x()));d&&(v.label=t),n&&b(v);var B=w;return function(M,$){if(arguments.length>0){let j=$?b(v):a&&n?vt(M):M;return N(v,j),m=!0,s!==void 0&&(s=j),M}return Ge&&m||B.f&16384?v.v:b(v)}}function Df(e){return new Ma(e)}var Ma=class{#e;#t;constructor(t){var r=new Map,o=(n,f)=>{var s=zt(f,!1,!1);return r.set(n,s),s};let a=new Proxy({...t.props||{},$$events:{}},{get(n,f){return b(r.get(f)??o(f,Reflect.get(n,f)))},has(n,f){return f===Jt?!0:(b(r.get(f)??o(f,Reflect.get(n,f))),Reflect.has(n,f))},set(n,f,s){return N(r.get(f)??o(f,s),s),Reflect.set(n,f,s)}});this.#t=(t.hydrate?_a:mr)(t.component,{target:t.target,anchor:t.anchor,props:a,context:t.context,intro:t.intro??!1,recover:t.recover}),!we&&(!t?.props?.$$host||t.sync===!1)&&fr(),this.#e=a.$$events;for(let n of Object.keys(this.#t))n==="$set"||n==="$destroy"||n==="$on"||se(this,n,{get(){return this.#t[n]},set(f){this.#t[n]=f},enumerable:!0});this.#t.$set=n=>{Object.assign(a,n)},this.#t.$destroy=()=>{xa(this.#t)}}$set(t){this.#t.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];let o=(...a)=>r.call(this,...a);return this.#e[t].push(o),()=>{this.#e[t]=this.#e[t].filter(a=>a!==o)}}$destroy(){this.#t.$destroy()}};var Ks;typeof HTMLElement=="function"&&(Ks=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(o){return a=>{let n=document.createElement("slot");o!=="default"&&(n.name=o),G(a,n)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},r=Zs(this);for(let o of this.$$s)o in r&&(o==="default"&&!this.$$d.children?(this.$$d.children=e(o),t.default=!0):t[o]=e(o));for(let o of this.attributes){let a=this.$$g_p(o.name);a in this.$$d||(this.$$d[a]=Da(a,o.value,this.$$p_d,"toProp"))}for(let o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=Df({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=sa(()=>{$e(()=>{this.$$r=!0;for(let o of Lo(this.$$c)){if(!this.$$p_d[o]?.reflect)continue;this.$$d[o]=this.$$c[o];let a=Da(o,this.$$d[o],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,a)}this.$$r=!1})});for(let o in this.$$l)for(let a of this.$$l[o]){let n=this.$$c.$on(o,a);this.$$l_u.set(a,n)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Da(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Lo(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Da(e,t,r,o){let a=r[e]?.type;if(t=a==="Boolean"&&typeof t!="boolean"?t!=null:t,!o||!r[e])return t;if(o==="toAttribute")switch(a){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(a){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Zs(e){let t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}En();var Js={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},Pf=Js;var Qs=ca("<svg><!><!></svg>");function xe(e,t){let r=ee(t,["children","$$slots","$$events","$$legacy"]),o=ee(r,["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"]);Ft(t,!1);let a=wt(t,"name",8,void 0),n=wt(t,"color",8,"currentColor"),f=wt(t,"size",8,24),s=wt(t,"strokeWidth",8,2),i=wt(t,"absoluteStrokeWidth",8,!1),u=wt(t,"iconNode",24,()=>[]),_=(...x)=>x.filter((g,m,v)=>!!g&&v.indexOf(g)===m).join(" ");ka();var c=Qs();ho(c,(x,g)=>({...Pf,...o,width:f(),height:f(),stroke:n(),"stroke-width":x,class:g}),[()=>(lt(i()),lt(s()),lt(f()),L(()=>i()?Number(s())*24/Number(f()):s())),()=>(lt(a()),lt(r),L(()=>_("lucide-icon","lucide",a()?`lucide-${a()}`:"",r.class)))]);var l=A(c);wa(l,1,u,ga,(x,g)=>{var m=Ar(()=>Bo(b(g),2));let v=()=>b(m)[0],B=()=>b(m)[1];var M=oe(),$=re(M);ya($,v,!0,(j,C)=>{ho(j,()=>({...B()}))}),G(x,M)});var p=Q(l);ae(p,t,"default",{},null),S(c),G(e,c),It()}function wo(e,t){let r=ee(t,["children","$$slots","$$events","$$legacy"]);let o=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"}]];xe(e,_e({name:"activity"},()=>r,{get iconNode(){return o},children:(a,n)=>{var f=oe(),s=re(f);ae(s,t,"default",{},null),G(a,f)},$$slots:{default:!0}}))}function bo(e,t){let r=ee(t,["children","$$slots","$$events","$$legacy"]);let o=[["circle",{cx:"12",cy:"12",r:"10"}]];xe(e,_e({name:"circle"},()=>r,{get iconNode(){return o},children:(a,n)=>{var f=oe(),s=re(f);ae(s,t,"default",{},null),G(a,f)},$$slots:{default:!0}}))}function yo(e,t){let r=ee(t,["children","$$slots","$$events","$$legacy"]);let o=[["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3Z"}],["path",{d:"m6.2 5.3 3.1 3.9"}],["path",{d:"m12.4 3.4 3.1 4"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z"}]];xe(e,_e({name:"clapperboard"},()=>r,{get iconNode(){return o},children:(a,n)=>{var f=oe(),s=re(f);ae(s,t,"default",{},null),G(a,f)},$$slots:{default:!0}}))}function Eo(e,t){let r=ee(t,["children","$$slots","$$events","$$legacy"]);let o=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"}],["path",{d:"m2 2 20 20"}]];xe(e,_e({name:"eye-off"},()=>r,{get iconNode(){return o},children:(a,n)=>{var f=oe(),s=re(f);ae(s,t,"default",{},null),G(a,f)},$$slots:{default:!0}}))}function $o(e,t){let r=ee(t,["children","$$slots","$$events","$$legacy"]);let o=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"}],["circle",{cx:"12",cy:"12",r:"3"}]];xe(e,_e({name:"eye"},()=>r,{get iconNode(){return o},children:(a,n)=>{var f=oe(),s=re(f);ae(s,t,"default",{},null),G(a,f)},$$slots:{default:!0}}))}function Co(e,t){let r=ee(t,["children","$$slots","$$events","$$legacy"]);let o=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"}]];xe(e,_e({name:"layers"},()=>r,{get iconNode(){return o},children:(a,n)=>{var f=oe(),s=re(f);ae(s,t,"default",{},null),G(a,f)},$$slots:{default:!0}}))}function So(e,t){let r=ee(t,["children","$$slots","$$events","$$legacy"]);let o=[["path",{d:"M14 4.1 12 6"}],["path",{d:"m5.1 8-2.9-.8"}],["path",{d:"m6 12-1.9 2"}],["path",{d:"M7.2 2.2 8 5.1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z"}]];xe(e,_e({name:"mouse-pointer-click"},()=>r,{get iconNode(){return o},children:(a,n)=>{var f=oe(),s=re(f);ae(s,t,"default",{},null),G(a,f)},$$slots:{default:!0}}))}function To(e,t){let r=ee(t,["children","$$slots","$$events","$$legacy"]);let o=[["path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z"}],["path",{d:"M5 3a2 2 0 0 0-2 2"}],["path",{d:"M19 3a2 2 0 0 1 2 2"}],["path",{d:"M5 21a2 2 0 0 1-2-2"}],["path",{d:"M9 3h1"}],["path",{d:"M9 21h2"}],["path",{d:"M14 3h1"}],["path",{d:"M3 9v1"}],["path",{d:"M21 9v2"}],["path",{d:"M3 14v1"}]];xe(e,_e({name:"square-dashed-mouse-pointer"},()=>r,{get iconNode(){return o},children:(a,n)=>{var f=oe(),s=re(f);ae(s,t,"default",{},null),G(a,f)},$$slots:{default:!0}}))}var ei=da(`<div class="w-[320px] flex flex-col px-5 pt-6 pb-5 bg-black text-white font-sans text-[13px]"><header class="text-center mb-5"><h1 class="text-[28px] font-normal tracking-tight text-white mb-1" style="font-family: 'Stack Sans Notch', sans-serif;">clueprint</h1> <p class="text-xs font-normal text-white/40 tracking-wide">From clueless to flawless</p></header> <div class="flex justify-center gap-5 py-3 mb-5 bg-white/[0.03] border border-white/[0.06] rounded-xl backdrop-blur-[20px]"><div class="flex items-center gap-2 text-xs text-white/50"><span></span> <span> </span></div> <div class="flex items-center gap-2 text-xs text-white/50"><span></span> <span> </span></div></div> <div class="mb-4"><h2 class="text-[11px] font-medium text-white/30 uppercase tracking-wider mb-3">Ask your AI about</h2> <div class="flex flex-col gap-1"><div class="flex items-center justify-between py-2.5 px-3 rounded-lg hover:bg-white/[0.03] transition-colors"><div class="flex items-center gap-2.5"><span class="flex items-center justify-center w-5 text-white/40"><!></span> <span class="text-white/70">Any element</span></div> <kbd class="py-0.5 px-1.5 bg-white/[0.06] border border-white/10 rounded text-[10px] text-white/40 font-sans"> </kbd></div> <div class="flex items-center justify-between py-2.5 px-3 rounded-lg hover:bg-white/[0.03] transition-colors"><div class="flex items-center gap-2.5"><span class="flex items-center justify-center w-5 text-white/40"><!></span> <span class="text-white/70">A screen region</span></div> <kbd class="py-0.5 px-1.5 bg-white/[0.06] border border-white/10 rounded text-[10px] text-white/40 font-sans"> </kbd></div> <div class="flex items-center justify-between py-2.5 px-3 rounded-lg hover:bg-white/[0.03] transition-colors"><div class="flex items-center gap-2.5"><span class="flex items-center justify-center w-5 text-white/40"><!></span> <span class="text-white/70">Page health & diagnostics</span></div></div> <div class="flex items-center justify-between py-2.5 px-3 rounded-lg hover:bg-white/[0.03] transition-colors"><div class="flex items-center gap-2.5"><span class="flex items-center justify-center w-5 text-white/40"><!></span> <span class="text-white/70">A recorded user flow</span></div></div> <div class="flex items-center justify-between py-2.5 px-3 rounded-lg hover:bg-white/[0.03] transition-colors"><div class="flex items-center gap-2.5"><span class="flex items-center justify-center w-5 text-white/40"><!></span> <span class="text-white/70">DOM changes over time</span></div></div></div></div> <div class="pt-3 border-t border-white/[0.06]"><button class="flex items-center justify-between w-full py-2.5 px-3 rounded-lg bg-transparent border-none text-white cursor-pointer transition-colors hover:bg-white/[0.05]"><div class="flex items-center gap-2.5"><span class="flex items-center justify-center w-5 text-white/40"><!></span> <span class="text-[13px] text-white/70"> </span></div></button> <button class="flex items-center justify-between w-full py-2.5 px-3 rounded-lg bg-transparent border-none text-white cursor-pointer transition-colors hover:bg-white/[0.05]"><div class="flex items-center gap-2.5"><span class="flex items-center justify-center w-5 text-white/40"><!></span> <span class="text-[13px] text-white/70"> </span></div></button></div> <footer class="text-center pt-3 mt-3 border-t border-white/[0.06]"><p class="text-[11px] text-white/25 italic">Select something, then tell your AI about it</p></footer></div>`);function Pa(e,t){Ft(t,!0);let r=me(!1),o=me(!1),a=me(!1),n=me(!1),f=me(!0),s=me(!0);async function i(){try{let D=await chrome.runtime.sendMessage({type:"GET_STATUS"});D&&(N(r,D.isActive,!0),N(o,D.isRecording,!0),N(a,D.isBuffering,!0),N(n,D.mcpConnected,!0))}catch(D){console.warn("Failed to get status:",D)}}async function u(D){try{let[qe]=await chrome.tabs.query({active:!0,currentWindow:!0});if(qe?.id)return await chrome.tabs.sendMessage(qe.id,D)}catch(qe){console.warn("Failed to send message to tab:",qe)}}async function _(){let D=await u({type:"TOGGLE_WIDGET"});D?N(f,D.visible,!0):N(f,!b(f))}async function c(){let D=await chrome.runtime.sendMessage({type:"TOGGLE_BUFFER"});D&&N(a,D.isBuffering,!0)}function l(){return b(s)?"\u2318":"Ctrl+"}async function p(){let D=await u({type:"GET_WIDGET_STATE"});D&&typeof D.visible=="boolean"&&N(f,D.visible,!0)}pf(()=>{N(s,navigator.platform.startsWith("Mac"),!0),i(),p();let D=qe=>{qe.type==="STATUS_UPDATE"&&(N(r,qe.isActive,!0),N(o,qe.isRecording,!0),N(a,qe.isBuffering,!0),N(n,qe.mcpConnected,!0))};return chrome.runtime.onMessage.addListener(D),()=>chrome.runtime.onMessage.removeListener(D)});var x=ei(),g=Q(A(x),2),m=A(g),v=A(m),B=Q(v,2),M=A(B,!0);S(B),S(m);var $=Q(m,2),j=A($),C=Q(j,2),T=A(C);S(C),S($),S(g);var q=Q(g,2),he=Q(A(q),2),R=A(he),Dt=A(R),Xt=A(Dt),Nf=A(Xt);So(Nf,{size:14,strokeWidth:1.5}),S(Xt),tt(2),S(Dt);var Na=Q(Dt,2),Of=A(Na);S(Na),S(R);var Ao=Q(R,2),ko=A(Ao),Oa=A(ko),Lf=A(Oa);To(Lf,{size:14,strokeWidth:1.5}),S(Oa),tt(2),S(ko);var La=Q(ko,2),Ff=A(La);S(La),S(Ao);var Ro=Q(Ao,2),Fa=A(Ro),Ia=A(Fa),If=A(Ia);wo(If,{size:14,strokeWidth:1.5}),S(Ia),tt(2),S(Fa),S(Ro);var Mo=Q(Ro,2),Ba=A(Mo),qa=A(Ba),Bf=A(qa);yo(Bf,{size:14,strokeWidth:1.5}),S(qa),tt(2),S(Ba),S(Mo);var Ua=Q(Mo,2),Ha=A(Ua),Va=A(Ha),qf=A(Va);Co(qf,{size:14,strokeWidth:1.5}),S(Va),tt(2),S(Ha),S(Ua),S(he),S(q);var Ga=Q(q,2),Br=A(Ga);Br.__click=_;var za=A(Br),Do=A(za),Uf=A(Do);{var Hf=D=>{Eo(D,{size:14,strokeWidth:1.5})},Vf=D=>{$o(D,{size:14,strokeWidth:1.5})};ha(Uf,D=>{b(f)?D(Hf):D(Vf,!1)})}S(Do);var Wa=Q(Do,2),Gf=A(Wa);S(Wa),S(za),S(Br);var Po=Q(Br,2);Po.__click=c;var Ya=A(Po),No=A(Ya),zf=A(No);{let D=Ar(()=>b(a)?"#4ade80":"none");bo(zf,{size:12,get fill(){return b(D)},strokeWidth:1.5})}S(No);var ja=Q(No,2),Wf=A(ja);S(ja),S(Ya),S(Po),S(Ga),tt(2),S(x),uo((D,qe)=>{_r(v,1,`w-1.5 h-1.5 rounded-full transition-all duration-300 ${b(o)?"bg-red-400 shadow-[0_0_8px_rgba(248,113,113,0.5)] animate-pulse":b(r)?"bg-green-400 shadow-[0_0_8px_rgba(74,222,128,0.5)]":"bg-white/20"}`),Rt(M,b(o)?"Recording":b(r)?"Active":"Ready"),_r(j,1,`w-1.5 h-1.5 rounded-full transition-all duration-300 ${b(n)?"bg-green-400 shadow-[0_0_8px_rgba(74,222,128,0.5)]":"bg-white/20"}`),Rt(T,`MCP ${b(n)?"connected":"waiting"}`),Rt(Of,`${D??""}\u21E7S`),Rt(Ff,`${qe??""}\u21E7X`),Rt(Gf,`${b(f)?"Hide":"Show"} floating toolbar`),Rt(Wf,`${b(a)?"Disable":"Enable"} background capture`)},[l,l]),G(e,x),It()}Nr(["click"]);var ti=mr(Pa,{target:document.getElementById("app")}),e$=ti;})();
|
|
41
|
+
/*! Bundled license information:
|
|
42
|
+
|
|
43
|
+
lucide-svelte/dist/defaultAttributes.js:
|
|
44
|
+
(**
|
|
45
|
+
* @license lucide-svelte v0.469.0 - ISC
|
|
46
|
+
*
|
|
47
|
+
* This source code is licensed under the ISC license.
|
|
48
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
49
|
+
*)
|
|
50
|
+
|
|
51
|
+
lucide-svelte/dist/icons/activity.svelte:
|
|
52
|
+
(**
|
|
53
|
+
* @license lucide-svelte v0.469.0 - ISC
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the ISC license.
|
|
56
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
57
|
+
*)
|
|
58
|
+
|
|
59
|
+
lucide-svelte/dist/icons/circle.svelte:
|
|
60
|
+
(**
|
|
61
|
+
* @license lucide-svelte v0.469.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*)
|
|
66
|
+
|
|
67
|
+
lucide-svelte/dist/icons/clapperboard.svelte:
|
|
68
|
+
(**
|
|
69
|
+
* @license lucide-svelte v0.469.0 - ISC
|
|
70
|
+
*
|
|
71
|
+
* This source code is licensed under the ISC license.
|
|
72
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
+
*)
|
|
74
|
+
|
|
75
|
+
lucide-svelte/dist/icons/eye-off.svelte:
|
|
76
|
+
(**
|
|
77
|
+
* @license lucide-svelte v0.469.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*)
|
|
82
|
+
|
|
83
|
+
lucide-svelte/dist/icons/eye.svelte:
|
|
84
|
+
(**
|
|
85
|
+
* @license lucide-svelte v0.469.0 - ISC
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the ISC license.
|
|
88
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
+
*)
|
|
90
|
+
|
|
91
|
+
lucide-svelte/dist/icons/layers.svelte:
|
|
92
|
+
(**
|
|
93
|
+
* @license lucide-svelte v0.469.0 - ISC
|
|
94
|
+
*
|
|
95
|
+
* This source code is licensed under the ISC license.
|
|
96
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
+
*)
|
|
98
|
+
|
|
99
|
+
lucide-svelte/dist/icons/mouse-pointer-click.svelte:
|
|
100
|
+
(**
|
|
101
|
+
* @license lucide-svelte v0.469.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*)
|
|
106
|
+
|
|
107
|
+
lucide-svelte/dist/icons/square-dashed-mouse-pointer.svelte:
|
|
108
|
+
(**
|
|
109
|
+
* @license lucide-svelte v0.469.0 - ISC
|
|
110
|
+
*
|
|
111
|
+
* This source code is licensed under the ISC license.
|
|
112
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
+
*)
|
|
114
|
+
|
|
115
|
+
lucide-svelte/dist/icons/index.js:
|
|
116
|
+
(**
|
|
117
|
+
* @license lucide-svelte v0.469.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the ISC license.
|
|
120
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
+
*)
|
|
122
|
+
*/
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clueprint - Overlay Styles
|
|
3
|
+
* Only for elements that are NOT using Shadow DOM
|
|
4
|
+
* Intent pickers and confirmations now use Shadow DOM for isolation
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* Highlight overlay for inspect mode */
|
|
8
|
+
#ai-devtools-highlight {
|
|
9
|
+
position: fixed !important;
|
|
10
|
+
pointer-events: none !important;
|
|
11
|
+
border: 2px solid #0066ff !important;
|
|
12
|
+
background: rgba(0, 102, 255, 0.1) !important;
|
|
13
|
+
z-index: 2147483647 !important;
|
|
14
|
+
transition: all 0.1s ease !important;
|
|
15
|
+
border-radius: 4px !important;
|
|
16
|
+
box-sizing: border-box !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Element label tooltip */
|
|
20
|
+
#ai-devtools-element-label {
|
|
21
|
+
position: fixed !important;
|
|
22
|
+
pointer-events: none !important;
|
|
23
|
+
background: #0066ff !important;
|
|
24
|
+
color: white !important;
|
|
25
|
+
padding: 4px 8px !important;
|
|
26
|
+
border-radius: 4px !important;
|
|
27
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Monaco, monospace !important;
|
|
28
|
+
font-size: 11px !important;
|
|
29
|
+
z-index: 2147483647 !important;
|
|
30
|
+
white-space: nowrap !important;
|
|
31
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
|
|
32
|
+
box-sizing: border-box !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Selection rectangle for free-select mode */
|
|
36
|
+
#ai-devtools-selection {
|
|
37
|
+
position: fixed !important;
|
|
38
|
+
border: 2px dashed #0066ff !important;
|
|
39
|
+
background: rgba(0, 102, 255, 0.08) !important;
|
|
40
|
+
z-index: 2147483647 !important;
|
|
41
|
+
pointer-events: none !important;
|
|
42
|
+
box-sizing: border-box !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Recording indicator */
|
|
46
|
+
#ai-devtools-recording-indicator {
|
|
47
|
+
position: fixed !important;
|
|
48
|
+
top: 10px !important;
|
|
49
|
+
right: 10px !important;
|
|
50
|
+
background: #f44336 !important;
|
|
51
|
+
color: white !important;
|
|
52
|
+
padding: 8px 16px !important;
|
|
53
|
+
border-radius: 20px !important;
|
|
54
|
+
font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
|
|
55
|
+
font-size: 12px !important;
|
|
56
|
+
font-weight: 500 !important;
|
|
57
|
+
z-index: 2147483647 !important;
|
|
58
|
+
display: flex !important;
|
|
59
|
+
align-items: center !important;
|
|
60
|
+
gap: 8px !important;
|
|
61
|
+
box-shadow: 0 2px 8px rgba(244, 67, 54, 0.4) !important;
|
|
62
|
+
animation: ai-devtools-pulse 2s infinite !important;
|
|
63
|
+
box-sizing: border-box !important;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
#ai-devtools-recording-indicator::before {
|
|
67
|
+
content: '' !important;
|
|
68
|
+
width: 8px !important;
|
|
69
|
+
height: 8px !important;
|
|
70
|
+
background: white !important;
|
|
71
|
+
border-radius: 50% !important;
|
|
72
|
+
animation: ai-devtools-blink 1s infinite !important;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@keyframes ai-devtools-pulse {
|
|
76
|
+
0%, 100% { box-shadow: 0 2px 8px rgba(244, 67, 54, 0.4); }
|
|
77
|
+
50% { box-shadow: 0 2px 16px rgba(244, 67, 54, 0.6); }
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@keyframes ai-devtools-blink {
|
|
81
|
+
0%, 100% { opacity: 1; }
|
|
82
|
+
50% { opacity: 0.5; }
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* High-contrast mode support */
|
|
86
|
+
@media (prefers-contrast: high) {
|
|
87
|
+
#ai-devtools-highlight {
|
|
88
|
+
border-width: 3px !important;
|
|
89
|
+
background: rgba(0, 102, 255, 0.2) !important;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
#ai-devtools-selection {
|
|
93
|
+
border-width: 3px !important;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Reduced motion support */
|
|
98
|
+
@media (prefers-reduced-motion: reduce) {
|
|
99
|
+
#ai-devtools-highlight,
|
|
100
|
+
#ai-devtools-selection,
|
|
101
|
+
#ai-devtools-recording-indicator {
|
|
102
|
+
transition: none !important;
|
|
103
|
+
animation: none !important;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Timer in recording indicator */
|
|
108
|
+
.ai-devtools-timer {
|
|
109
|
+
font-variant-numeric: tabular-nums !important;
|
|
110
|
+
font-weight: 500 !important;
|
|
111
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@clueprint/mcp",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Browser visibility for AI assistants — MCP server + Chrome extension",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"clueprint": "./cli/index.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"cli/",
|
|
11
|
+
"server/",
|
|
12
|
+
"extension/",
|
|
13
|
+
"assets/"
|
|
14
|
+
],
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@clack/prompts": "^0.10.0",
|
|
17
|
+
"chalk": "^5.3.0",
|
|
18
|
+
"commander": "^12.1.0",
|
|
19
|
+
"gradient-string": "^3.0.0",
|
|
20
|
+
"picocolors": "^1.1.1",
|
|
21
|
+
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
22
|
+
"ws": "^8.16.0"
|
|
23
|
+
},
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=18"
|
|
26
|
+
},
|
|
27
|
+
"keywords": [
|
|
28
|
+
"mcp",
|
|
29
|
+
"browser",
|
|
30
|
+
"devtools",
|
|
31
|
+
"chrome",
|
|
32
|
+
"claude",
|
|
33
|
+
"ai",
|
|
34
|
+
"debugging"
|
|
35
|
+
],
|
|
36
|
+
"license": "MIT",
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "https://github.com/mariojankovic/clueprint.git"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Output formatting for token-efficient reports
|
|
3
|
+
*/
|
|
4
|
+
import type { InspectCapture, FreeSelectCapture, FlowRecording, PageDiagnostics } from '../types/index.js';
|
|
5
|
+
/**
|
|
6
|
+
* Format element capture as text report
|
|
7
|
+
*/
|
|
8
|
+
export declare function formatElementReport(capture: InspectCapture): string;
|
|
9
|
+
/**
|
|
10
|
+
* Format region capture as text report
|
|
11
|
+
*/
|
|
12
|
+
export declare function formatRegionReport(capture: FreeSelectCapture): string;
|
|
13
|
+
/**
|
|
14
|
+
* Format flow recording as text report (verbose mode for AI debugging)
|
|
15
|
+
*/
|
|
16
|
+
export declare function formatFlowReport(recording: FlowRecording): string;
|
|
17
|
+
/**
|
|
18
|
+
* Format page diagnostics as text report
|
|
19
|
+
*/
|
|
20
|
+
export declare function formatDiagnosticsReport(diagnostics: PageDiagnostics): string;
|
|
21
|
+
//# sourceMappingURL=format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/analysis/format.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAE3B;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAsInE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM,CA+DrE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,aAAa,GAAG,MAAM,CA6JjE;AAsGD;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,eAAe,GAAG,MAAM,CA6E5E"}
|