@gsa-tts/graymatter-ui 1.2.0 → 1.3.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.
@@ -1,6 +1,6 @@
1
- (function(be,Cr){typeof exports=="object"&&typeof module<"u"?Cr(exports):typeof define=="function"&&define.amd?define(["exports"],Cr):(be=typeof globalThis<"u"?globalThis:be||self,Cr(be.graymatter={}))})(this,(function(be){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Pa=1,ja=2,Xn=4,Ra=8,Ba=16,Fa=1,Za=4,Ya=8,Wa=16,Qn=1,Ja=2,Qr="[",en="[!",ei="[?",tn="]",qt={},he=Symbol(),ti="http://www.w3.org/1999/xhtml",Ka="@attach",Ga=!1;var rn=Array.isArray,Xa=Array.prototype.indexOf,Ot=Array.prototype.includes,Sr=Array.from,Er=Object.keys,Gt=Object.defineProperty,lt=Object.getOwnPropertyDescriptor,Qa=Object.getOwnPropertyDescriptors,eo=Object.prototype,to=Array.prototype,ri=Object.getPrototypeOf,ni=Object.isExtensible;function Xt(e){return typeof e=="function"}const $e=()=>{};function ii(e){for(var t=0;t<e.length;t++)e[t]()}function ai(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const pe=2,Vt=4,Mr=8,nn=1<<24,vt=16,Je=32,ht=64,an=128,Oe=512,ce=1024,_e=2048,nt=4096,De=8192,Ve=16384,pt=32768,on=1<<25,gt=65536,oi=1<<17,ro=1<<18,It=1<<19,no=1<<20,it=1<<25,Lt=65536,sn=1<<21,ln=1<<22,bt=1<<23,mt=Symbol("$state"),un=Symbol("legacy props"),io=Symbol(""),ut=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ir=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Lr=3,Qt=8;function ao(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function oo(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function so(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function lo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function uo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function co(e){throw new Error("https://svelte.dev/e/effect_orphan")}function fo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function vo(){throw new Error("https://svelte.dev/e/hydration_failed")}function ho(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function po(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function go(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function bo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function mo(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function zr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function wo(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function _o(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let V=!1;function Ae(e){V=e}let B;function xe(e){if(e===null)throw zr(),qt;return B=e}function er(){return xe(ot(B))}function C(e){if(V){if(ot(B)!==null)throw zr(),qt;B=e}}function Ke(e=1){if(V){for(var t=e,r=B;t--;)r=ot(r);B=r}}function tr(e=!0){for(var t=0,r=B;;){if(r.nodeType===Qt){var n=r.data;if(n===tn){if(t===0)return r;t-=1}else(n===Qr||n===en||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=ot(r);e&&r.remove(),r=i}}function cn(e){if(!e||e.nodeType!==Qt)throw zr(),qt;return e.data}function si(e){return e===this.v}function li(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function ui(e){return!li(e,this.v)}let ko=!1,Ie=null;function Pt(e){Ie=e}function te(e,t=!1,r){Ie={p:Ie,i:!1,c:null,e:null,s:e,x:null,r:j,l:null}}function re(e){var t=Ie,r=t.e;if(r!==null){t.e=null;for(var n of r)Ui(n)}return e!==void 0&&(t.x=e),t.i=!0,Ie=t.p,e??{}}function ci(){return!0}let zt=[];function di(){var e=zt;zt=[],ii(e)}function at(e){if(zt.length===0&&!nr){var t=zt;queueMicrotask(()=>{t===zt&&di()})}zt.push(e)}function yo(){for(;zt.length>0;)di()}function fi(e){var t=j;if(t===null)return P.f|=bt,e;if((t.f&pt)===0&&(t.f&Vt)===0)throw e;wt(e,t)}function wt(e,t){for(;t!==null;){if((t.f&an)!==0){if((t.f&pt)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const xo=-7169;function se(e,t){e.f=e.f&xo|t}function dn(e){(e.f&Oe)!==0||e.deps===null?se(e,ce):se(e,nt)}function vi(e){if(e!==null)for(const t of e)(t.f&pe)===0||(t.f&Lt)===0||(t.f^=Lt,vi(t.deps))}function hi(e,t,r){(e.f&_e)!==0?t.add(e):(e.f&nt)!==0&&r.add(e),vi(e.deps),se(e,ce)}function fn(e,t,r){if(e==null)return t(void 0),r&&r(void 0),$e;const n=lr(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const jt=[];function Co(e,t){return{subscribe:vn(e,t).subscribe}}function vn(e,t=$e){let r=null;const n=new Set;function i(s){if(li(e,s)&&(e=s,r)){const o=!jt.length;for(const u of n)u[1](),jt.push(u,e);if(o){for(let u=0;u<jt.length;u+=2)jt[u][0](jt[u+1]);jt.length=0}}}function a(s){i(s(e))}function l(s,o=$e){const u=[s,o];return n.add(u),n.size===1&&(r=t(i,a)||$e),s(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:a,subscribe:l}}function So(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=t.length<2;return Co(r,(l,s)=>{let o=!1;const u=[];let c=0,h=$e;const d=()=>{if(c)return;h();const g=t(n?u[0]:u,l,s);a?l(g):h=typeof g=="function"?g:$e},f=i.map((g,x)=>fn(g,p=>{u[x]=p,c&=~(1<<x),o&&d()},()=>{c|=1<<x}));return o=!0,d(),function(){ii(f),h(),o=!1}})}function Eo(e){let t;return fn(e,r=>t=r)(),t}let Nr=!1,hn=Symbol();function Ge(e,t,r){const n=r[t]??={store:null,source:_n(void 0),unsubscribe:$e};if(n.store!==e&&!(hn in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=$e;else{var i=!0;n.unsubscribe=fn(e,a=>{i?n.source.v=a:q(n.source,a)}),i=!1}return e&&hn in r?Eo(e):v(n.source)}function rr(){const e={};function t(){Ar(()=>{for(var r in e)e[r].unsubscribe();Gt(e,hn,{enumerable:!1,value:!0})})}return[e,t]}function Mo(e){var t=Nr;try{return Nr=!1,[e(),Nr]}finally{Nr=t}}const _t=new Set;let K=null,Xe=null,pn=null,nr=!1,gn=!1,Rt=null,Tr=null;var pi=0;let Io=1;class ct{id=Io++;current=new Map;previous=new Map;#e=new Set;#r=new Set;#t=new Map;#i=new Map;#a=null;#n=[];#o=new Set;#s=new Set;#l=new Map;is_fork=!1;#d=!1;#u=new Set;#f(){return this.is_fork||this.#i.size>0}#h(){for(const n of this.#u)for(const i of n.#i.keys()){for(var t=!1,r=i;r.parent!==null;){if(this.#l.has(r)){t=!0;break}r=r.parent}if(!t)return!0}return!1}skip_effect(t){this.#l.has(t)||this.#l.set(t,{d:[],m:[]})}unskip_effect(t){var r=this.#l.get(t);if(r){this.#l.delete(t);for(var n of r.d)se(n,_e),this.schedule(n);for(n of r.m)se(n,nt),this.schedule(n)}}#v(){if(pi++>1e3&&(_t.delete(this),Lo()),!this.#f()){for(const s of this.#o)this.#s.delete(s),se(s,_e),this.schedule(s);for(const s of this.#s)se(s,nt),this.schedule(s)}const t=this.#n;this.#n=[],this.apply();var r=Rt=[],n=[],i=Tr=[];for(const s of t)try{this.#c(s,r,n)}catch(o){throw _i(s),o}if(K=null,i.length>0){var a=ct.ensure();for(const s of i)a.schedule(s)}if(Rt=null,Tr=null,this.#f()||this.#h()){this.#p(n),this.#p(r);for(const[s,o]of this.#l)wi(s,o)}else{this.#t.size===0&&_t.delete(this),this.#o.clear(),this.#s.clear();for(const s of this.#e)s(this);this.#e.clear(),gi(n),gi(r),this.#a?.resolve()}var l=K;if(this.#n.length>0){const s=l??=this;s.#n.push(...this.#n.filter(o=>!s.#n.includes(o)))}l!==null&&(_t.add(l),l.#v()),_t.has(this)||this.#g()}#c(t,r,n){t.f^=ce;for(var i=t.first;i!==null;){var a=i.f,l=(a&(Je|ht))!==0,s=l&&(a&ce)!==0,o=s||(a&De)!==0||this.#l.has(i);if(!o&&i.fn!==null){l?i.f^=ce:(a&Vt)!==0?r.push(i):or(i)&&((a&vt)!==0&&this.#s.add(i),Zt(i));var u=i.first;if(u!==null){i=u;continue}}for(;i!==null;){var c=i.next;if(c!==null){i=c;break}i=i.parent}}}#p(t){for(var r=0;r<t.length;r+=1)hi(t[r],this.#o,this.#s)}capture(t,r,n=!1){r!==he&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&bt)===0&&(this.current.set(t,[t.v,n]),Xe?.set(t,t.v))}activate(){K=this}deactivate(){K=null,Xe=null}flush(){try{gn=!0,K=this,this.#v()}finally{pi=0,pn=null,Rt=null,Tr=null,gn=!1,K=null,Xe=null,kt.clear()}}discard(){for(const t of this.#r)t(this);this.#r.clear(),_t.delete(this)}#g(){for(const u of _t){var t=u.id<this.id,r=[];for(const[c,[h,d]]of this.current){if(u.current.has(c)){var n=u.current.get(c)[0];if(t&&h!==n)u.current.set(c,[h,d]);else continue}r.push(c)}var i=[...u.current.keys()].filter(c=>!this.current.has(c));if(i.length===0)t&&u.discard();else if(r.length>0){u.activate();var a=new Set,l=new Map;for(var s of r)bi(s,i,a,l);if(u.#n.length>0){u.apply();for(var o of u.#n)u.#c(o,[],[]);u.#n=[]}u.deactivate()}}for(const u of _t)u.#u.has(this)&&(u.#u.delete(this),u.#u.size===0&&!u.#f()&&(u.activate(),u.#v()))}increment(t,r){let n=this.#t.get(r)??0;if(this.#t.set(r,n+1),t){let i=this.#i.get(r)??0;this.#i.set(r,i+1)}}decrement(t,r,n){let i=this.#t.get(r)??0;if(i===1?this.#t.delete(r):this.#t.set(r,i-1),t){let a=this.#i.get(r)??0;a===1?this.#i.delete(r):this.#i.set(r,a-1)}this.#d||n||(this.#d=!0,at(()=>{this.#d=!1,this.flush()}))}transfer_effects(t,r){for(const n of t)this.#o.add(n);for(const n of r)this.#s.add(n);t.clear(),r.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#r.add(t)}settled(){return(this.#a??=ai()).promise}static ensure(){if(K===null){const t=K=new ct;gn||(_t.add(K),nr||at(()=>{K===t&&t.flush()}))}return K}apply(){{Xe=null;return}}schedule(t){if(pn=t,t.b?.is_pending&&(t.f&(Vt|Mr|nn))!==0&&(t.f&pt)===0){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if(Rt!==null&&r===j&&(P===null||(P.f&pe)===0))return;if((n&(ht|Je))!==0){if((n&ce)===0)return;r.f^=ce}}this.#n.push(r)}}function b(e){var t=nr;nr=!0;try{for(var r;;){if(yo(),K===null)return r;K.flush()}}finally{nr=t}}function Lo(){try{fo()}catch(e){wt(e,pn)}}let dt=null;function gi(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Ve|De))===0&&or(n)&&(dt=new Set,Zt(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&Oi(n),dt?.size>0)){kt.clear();for(const i of dt){if((i.f&(Ve|De))!==0)continue;const a=[i];let l=i.parent;for(;l!==null;)dt.has(l)&&(dt.delete(l),a.push(l)),l=l.parent;for(let s=a.length-1;s>=0;s--){const o=a[s];(o.f&(Ve|De))===0&&Zt(o)}}dt.clear()}}dt=null}}function bi(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const a=i.f;(a&pe)!==0?bi(i,t,r,n):(a&(ln|vt))!==0&&(a&_e)===0&&mi(i,t,n)&&(se(i,_e),bn(i))}}function mi(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(Ot.call(t,i))return!0;if((i.f&pe)!==0&&mi(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function bn(e){K.schedule(e)}function wi(e,t){if(!((e.f&Je)!==0&&(e.f&ce)!==0)){(e.f&_e)!==0?t.d.push(e):(e.f&nt)!==0&&t.m.push(e),se(e,ce);for(var r=e.first;r!==null;)wi(r,t),r=r.next}}function _i(e){se(e,ce);for(var t=e.first;t!==null;)_i(t),t=t.next}function zo(e){let t=0,r=Nt(0),n;return()=>{Sn()&&(v(r),En(()=>(t===0&&(n=lr(()=>e(()=>ir(r)))),t+=1,()=>{at(()=>{t-=1,t===0&&(n?.(),n=void 0,ir(r))})})))}}var No=gt|It;function To(e,t,r,n){new $o(e,t,r,n)}class $o{parent;is_pending=!1;transform_error;#e;#r=V?B:null;#t;#i;#a;#n=null;#o=null;#s=null;#l=null;#d=0;#u=0;#f=!1;#h=new Set;#v=new Set;#c=null;#p=zo(()=>(this.#c=Nt(this.#d),()=>{this.#c=null}));constructor(t,r,n,i){this.#e=t,this.#t=r,this.#i=a=>{var l=j;l.b=this,l.f|=an,n(a)},this.parent=j.b,this.transform_error=i??this.parent?.transform_error??(a=>a),this.#a=ar(()=>{if(V){const a=this.#r;er();const l=a.data===en;if(a.data.startsWith(ei)){const o=JSON.parse(a.data.slice(ei.length));this.#k(o)}else l?this.#y():this.#g()}else this.#w()},No),V&&(this.#e=B)}#g(){try{this.#n=Le(()=>this.#i(this.#e))}catch(t){this.error(t)}}#k(t){const r=this.#t.failed;r&&(this.#s=Le(()=>{r(this.#e,()=>t,()=>()=>{})}))}#y(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#o=Le(()=>t(this.#e)),at(()=>{var r=this.#l=document.createDocumentFragment(),n=Pe();r.append(n),this.#n=this.#m(()=>Le(()=>this.#i(n))),this.#u===0&&(this.#e.before(r),this.#l=null,$t(this.#o,()=>{this.#o=null}),this.#b(K))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#d=0,this.#n=Le(()=>{this.#i(this.#e)}),this.#u>0){var t=this.#l=document.createDocumentFragment();Ln(this.#n,t);const r=this.#t.pending;this.#o=Le(()=>r(this.#e))}else this.#b(K)}catch(r){this.error(r)}}#b(t){this.is_pending=!1,t.transfer_effects(this.#h,this.#v)}defer_effect(t){hi(t,this.#h,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var r=j,n=P,i=Ie;st(this.#a),Re(this.#a),Pt(this.#a.ctx);try{return ct.ensure(),t()}catch(a){return fi(a),null}finally{st(r),Re(n),Pt(i)}}#_(t,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#_(t,r);return}this.#u+=t,this.#u===0&&(this.#b(r),this.#o&&$t(this.#o,()=>{this.#o=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t,r){this.#_(t,r),this.#d+=t,!(!this.#c||this.#f)&&(this.#f=!0,at(()=>{this.#f=!1,this.#c&&Bt(this.#c,this.#d)}))}get_effect_pending(){return this.#p(),v(this.#c)}error(t){var r=this.#t.onerror;let n=this.#t.failed;if(!r&&!n)throw t;this.#n&&(ge(this.#n),this.#n=null),this.#o&&(ge(this.#o),this.#o=null),this.#s&&(ge(this.#s),this.#s=null),V&&(xe(this.#r),Ke(),xe(tr()));var i=!1,a=!1;const l=()=>{if(i){_o();return}i=!0,a&&mo(),this.#s!==null&&$t(this.#s,()=>{this.#s=null}),this.#m(()=>{this.#w()})},s=o=>{try{a=!0,r?.(o,l),a=!1}catch(u){wt(u,this.#a&&this.#a.parent)}n&&(this.#s=this.#m(()=>{try{return Le(()=>{var u=j;u.b=this,u.f|=an,n(this.#e,()=>o,()=>l)})}catch(u){return wt(u,this.#a.parent),null}}))};at(()=>{var o;try{o=this.transform_error(t)}catch(u){wt(u,this.#a&&this.#a.parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(s,u=>wt(u,this.#a&&this.#a.parent)):s(o)})}}function ki(e,t,r,n){const i=Dr;var a=e.filter(d=>!d.settled);if(r.length===0&&a.length===0){n(t.map(i));return}var l=j,s=Do(),o=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(d=>d.promise)):null;function u(d){s();try{n(d)}catch(f){(l.f&Ve)===0&&wt(f,l)}$r()}if(r.length===0){o.then(()=>u(t.map(i)));return}var c=yi();function h(){Promise.all(r.map(d=>Ao(d))).then(d=>u([...t.map(i),...d])).catch(d=>wt(d,l)).finally(()=>c())}o?o.then(()=>{s(),h(),$r()}):h()}function Do(){var e=j,t=P,r=Ie,n=K;return function(a=!0){st(e),Re(t),Pt(r),a&&(e.f&Ve)===0&&(n?.activate(),n?.apply())}}function $r(e=!0){st(null),Re(null),Pt(null),e&&K?.deactivate()}function yi(){var e=j,t=e.b,r=K,n=t.is_rendered();return t.update_pending_count(1,r),r.increment(n,e),(i=!1)=>{t.update_pending_count(-1,r),r.decrement(n,e,i)}}function Dr(e){var t=pe|_e,r=P!==null&&(P.f&pe)!==0?P:null;return j!==null&&(j.f|=It),{ctx:Ie,deps:null,effects:null,equals:si,f:t,fn:e,reactions:null,rv:0,v:he,wv:0,parent:r??j,ac:null}}function Ao(e,t,r){let n=j;n===null&&oo();var i=void 0,a=Nt(he),l=!P,s=new Map;return Yo(()=>{var o=j,u=ai();i=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).finally($r)}catch(f){u.reject(f),$r()}var c=K;if(l){if((o.f&pt)!==0)var h=yi();if(n.b.is_rendered())s.get(c)?.reject(ut),s.delete(c);else{for(const f of s.values())f.reject(ut);s.clear()}s.set(c,u)}const d=(f,g=void 0)=>{if(h){var x=g===ut;h(x)}if(!(g===ut||(o.f&Ve)!==0)){if(c.activate(),g)a.f|=bt,Bt(a,g);else{(a.f&bt)!==0&&(a.f^=bt),Bt(a,f);for(const[p,_]of s){if(s.delete(p),p===c)break;_.reject(ut)}}c.deactivate()}};u.promise.then(d,f=>d(null,f||"unknown"))}),Ar(()=>{for(const o of s.values())o.reject(ut)}),new Promise(o=>{function u(c){function h(){c===i?o(a):u(i)}c.then(h,h)}u(i)})}function H(e){const t=Dr(e);return Ri(t),t}function xi(e){const t=Dr(e);return t.equals=ui,t}function Uo(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ge(t[r])}}function Ho(e){for(var t=e.parent;t!==null;){if((t.f&pe)===0)return(t.f&Ve)===0?t:null;t=t.parent}return null}function mn(e){var t,r=j;st(Ho(e));try{e.f&=~Lt,Uo(e),t=Wi(e)}finally{st(r)}return t}function Ci(e){var t=e.v,r=mn(e);if(!e.equals(r)&&(e.wv=Zi(),(!K?.is_fork||e.deps===null)&&(e.v=r,K?.capture(e,t,!0),e.deps===null))){se(e,ce);return}xt||(Xe!==null?(Sn()||K?.is_fork)&&Xe.set(e,r):dn(e))}function qo(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(ut),t.teardown=$e,t.ac=null,sr(t,0),Mn(t))}function Si(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Zt(t)}let wn=new Set;const kt=new Map;let Ei=!1;function Nt(e,t){var r={f:0,v:e,reactions:null,equals:si,rv:0,wv:0};return r}function Q(e,t){const r=Nt(e);return Ri(r),r}function _n(e,t=!1,r=!0){const n=Nt(e);return t||(n.equals=ui),n}function q(e,t,r=!1){P!==null&&(!et||(P.f&oi)!==0)&&ci()&&(P.f&(pe|vt|ln|oi))!==0&&(Be===null||!Ot.call(Be,e))&&bo();let n=r?yt(t):t;return Bt(e,n,Tr)}function Bt(e,t,r=null){if(!e.equals(t)){var n=e.v;xt?kt.set(e,t):kt.set(e,n),e.v=t;var i=ct.ensure();if(i.capture(e,n),(e.f&pe)!==0){const a=e;(e.f&_e)!==0&&mn(a),Xe===null&&dn(a)}e.wv=Zi(),Mi(e,_e,r),j!==null&&(j.f&ce)!==0&&(j.f&(Je|ht))===0&&(Fe===null?Ko([e]):Fe.push(e)),!i.is_fork&&wn.size>0&&!Ei&&Oo()}return t}function Oo(){Ei=!1;for(const e of wn)(e.f&ce)!==0&&se(e,nt),or(e)&&Zt(e);wn.clear()}function ir(e){q(e,e.v+1)}function Mi(e,t,r){var n=e.reactions;if(n!==null)for(var i=n.length,a=0;a<i;a++){var l=n[a],s=l.f,o=(s&_e)===0;if(o&&se(l,t),(s&pe)!==0){var u=l;Xe?.delete(u),(s&Lt)===0&&(s&Oe&&(l.f|=Lt),Mi(u,nt,r))}else if(o){var c=l;(s&vt)!==0&&dt!==null&&dt.add(c),r!==null?r.push(c):bn(c)}}}function yt(e){if(typeof e!="object"||e===null||mt in e)return e;const t=ri(e);if(t!==eo&&t!==to)return e;var r=new Map,n=rn(e),i=Q(0),a=At,l=s=>{if(At===a)return s();var o=P,u=At;Re(null),Fi(a);var c=s();return Re(o),Fi(u),c};return n&&r.set("length",Q(e.length)),new Proxy(e,{defineProperty(s,o,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&po();var c=r.get(o);return c===void 0?l(()=>{var h=Q(u.value);return r.set(o,h),h}):q(c,u.value,!0),!0},deleteProperty(s,o){var u=r.get(o);if(u===void 0){if(o in s){const c=l(()=>Q(he));r.set(o,c),ir(i)}}else q(u,he),ir(i);return!0},get(s,o,u){if(o===mt)return e;var c=r.get(o),h=o in s;if(c===void 0&&(!h||lt(s,o)?.writable)&&(c=l(()=>{var f=yt(h?s[o]:he),g=Q(f);return g}),r.set(o,c)),c!==void 0){var d=v(c);return d===he?void 0:d}return Reflect.get(s,o,u)},getOwnPropertyDescriptor(s,o){var u=Reflect.getOwnPropertyDescriptor(s,o);if(u&&"value"in u){var c=r.get(o);c&&(u.value=v(c))}else if(u===void 0){var h=r.get(o),d=h?.v;if(h!==void 0&&d!==he)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return u},has(s,o){if(o===mt)return!0;var u=r.get(o),c=u!==void 0&&u.v!==he||Reflect.has(s,o);if(u!==void 0||j!==null&&(!c||lt(s,o)?.writable)){u===void 0&&(u=l(()=>{var d=c?yt(s[o]):he,f=Q(d);return f}),r.set(o,u));var h=v(u);if(h===he)return!1}return c},set(s,o,u,c){var h=r.get(o),d=o in s;if(n&&o==="length")for(var f=u;f<h.v;f+=1){var g=r.get(f+"");g!==void 0?q(g,he):f in s&&(g=l(()=>Q(he)),r.set(f+"",g))}if(h===void 0)(!d||lt(s,o)?.writable)&&(h=l(()=>Q(void 0)),q(h,yt(u)),r.set(o,h));else{d=h.v!==he;var x=l(()=>yt(u));q(h,x)}var p=Reflect.getOwnPropertyDescriptor(s,o);if(p?.set&&p.set.call(c,u),!d){if(n&&typeof o=="string"){var _=r.get("length"),S=Number(o);Number.isInteger(S)&&S>=_.v&&q(_,S+1)}ir(i)}return!0},ownKeys(s){v(i);var o=Reflect.ownKeys(s).filter(h=>{var d=r.get(h);return d===void 0||d.v!==he});for(var[u,c]of r)c.v!==he&&!(u in s)&&o.push(u);return o},setPrototypeOf(){go()}})}function Ii(e){try{if(e!==null&&typeof e=="object"&&mt in e)return e[mt]}catch{}return e}function Vo(e,t){return Object.is(Ii(e),Ii(t))}var Li,zi,Ni,Ti;function kn(){if(Li===void 0){Li=window,zi=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ni=lt(t,"firstChild").get,Ti=lt(t,"nextSibling").get,ni(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ni(r)&&(r.__t=void 0)}}function Pe(e=""){return document.createTextNode(e)}function je(e){return Ni.call(e)}function ot(e){return Ti.call(e)}function M(e,t){if(!V)return je(e);var r=je(B);if(r===null)r=B.appendChild(Pe());else if(t&&r.nodeType!==Lr){var n=Pe();return r?.before(n),xe(n),n}return t&&xn(r),xe(r),r}function Tt(e,t=!1){if(!V){var r=je(e);return r instanceof Comment&&r.data===""?ot(r):r}if(t){if(B?.nodeType!==Lr){var n=Pe();return B?.before(n),xe(n),n}xn(B)}return B}function de(e,t=1,r=!1){let n=V?B:e;for(var i;t--;)i=n,n=ot(n);if(!V)return n;if(r){if(n?.nodeType!==Lr){var a=Pe();return n===null?i?.after(a):n.before(a),xe(a),a}xn(n)}return xe(n),n}function $i(e){e.textContent=""}function Di(){return!1}function yn(e,t,r){return document.createElementNS(ti,e,void 0)}function xn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Lr;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Po(e,t){if(t){const r=document.body;e.autofocus=!0,at(()=>{document.activeElement===r&&e.focus()})}}let Ai=!1;function jo(){Ai||(Ai=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Cn(e){var t=P,r=j;Re(null),st(null);try{return e()}finally{Re(t),st(r)}}function Ro(e){j===null&&(P===null&&co(),uo()),xt&&lo()}function Bo(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Qe(e,t){var r=j;r!==null&&(r.f&De)!==0&&(e|=De);var n={ctx:Ie,deps:null,nodes:null,f:e|_e|Oe,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null},i=n;if((e&Vt)!==0)Rt!==null?Rt.push(n):ct.ensure().schedule(n);else if(t!==null){try{Zt(n)}catch(l){throw ge(n),l}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&It)===0&&(i=i.first,(e&vt)!==0&&(e&gt)!==0&&i!==null&&(i.f|=gt))}if(i!==null&&(i.parent=r,r!==null&&Bo(i,r),P!==null&&(P.f&pe)!==0&&(e&ht)===0)){var a=P;(a.effects??=[]).push(i)}return n}function Sn(){return P!==null&&!et}function Ar(e){const t=Qe(Mr,null);return se(t,ce),t.teardown=e,t}function Ft(e){Ro();var t=j.f,r=!P&&(t&Je)!==0&&(t&pt)===0;if(r){var n=Ie;(n.e??=[]).push(e)}else return Ui(e)}function Ui(e){return Qe(Vt|no,e)}function Fo(e){ct.ensure();const t=Qe(ht|It,e);return()=>{ge(t)}}function Zo(e){ct.ensure();const t=Qe(ht|It,e);return(r={})=>new Promise(n=>{r.outro?$t(t,()=>{ge(t),n(void 0)}):(ge(t),n(void 0))})}function Ur(e){return Qe(Vt,e)}function Yo(e){return Qe(ln|It,e)}function En(e,t=0){return Qe(Mr|t,e)}function me(e,t=[],r=[],n=[]){ki(n,t,r,i=>{Qe(Mr,()=>e(...i.map(v)))})}function ar(e,t=0){var r=Qe(vt|t,e);return r}function Hi(e,t=0){var r=Qe(nn|t,e);return r}function Le(e){return Qe(Je|It,e)}function qi(e){var t=e.teardown;if(t!==null){const r=xt,n=P;ji(!0),Re(null);try{t.call(null)}finally{ji(r),Re(n)}}}function Mn(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Cn(()=>{i.abort(ut)});var n=r.next;(r.f&ht)!==0?r.parent=null:ge(r,t),r=n}}function Wo(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Je)===0&&ge(t),t=r}}function ge(e,t=!0){var r=!1;(t||(e.f&ro)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Jo(e.nodes.start,e.nodes.end),r=!0),se(e,on),Mn(e,t&&!r),sr(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const a of n)a.stop();qi(e),e.f^=on,e.f|=Ve;var i=e.parent;i!==null&&i.first!==null&&Oi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Jo(e,t){for(;e!==null;){var r=e===t?null:ot(e);e.remove(),e=r}}function Oi(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function $t(e,t,r=!0){var n=[];Vi(e,n,!0);var i=()=>{r&&ge(e),t&&t()},a=n.length;if(a>0){var l=()=>--a||i();for(var s of n)s.out(l)}else i()}function Vi(e,t,r){if((e.f&De)===0){e.f^=De;var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)(s.is_global||r)&&t.push(s);for(var i=e.first;i!==null;){var a=i.next,l=(i.f&gt)!==0||(i.f&Je)!==0&&(e.f&vt)!==0;Vi(i,t,l?r:!1),i=a}}}function In(e){Pi(e,!0)}function Pi(e,t){if((e.f&De)!==0){e.f^=De,(e.f&ce)===0&&(se(e,_e),ct.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&gt)!==0||(r.f&Je)!==0;Pi(r,i?t:!1),r=n}var a=e.nodes&&e.nodes.t;if(a!==null)for(const l of a)(l.is_global||t)&&l.in()}}function Ln(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:ot(r);t.append(r),r=i}}let Hr=!1,xt=!1;function ji(e){xt=e}let P=null,et=!1;function Re(e){P=e}let j=null;function st(e){j=e}let Be=null;function Ri(e){P!==null&&(Be===null?Be=[e]:Be.push(e))}let ze=null,Ue=0,Fe=null;function Ko(e){Fe=e}let Bi=1,Dt=0,At=Dt;function Fi(e){At=e}function Zi(){return++Bi}function or(e){var t=e.f;if((t&_e)!==0)return!0;if(t&pe&&(e.f&=~Lt),(t&nt)!==0){for(var r=e.deps,n=r.length,i=0;i<n;i++){var a=r[i];if(or(a)&&Ci(a),a.wv>e.wv)return!0}(t&Oe)!==0&&Xe===null&&se(e,ce)}return!1}function Yi(e,t,r=!0){var n=e.reactions;if(n!==null&&!(Be!==null&&Ot.call(Be,e)))for(var i=0;i<n.length;i++){var a=n[i];(a.f&pe)!==0?Yi(a,t,!1):t===a&&(r?se(a,_e):(a.f&ce)!==0&&se(a,nt),bn(a))}}function Wi(e){var t=ze,r=Ue,n=Fe,i=P,a=Be,l=Ie,s=et,o=At,u=e.f;ze=null,Ue=0,Fe=null,P=(u&(Je|ht))===0?e:null,Be=null,Pt(e.ctx),et=!1,At=++Dt,e.ac!==null&&(Cn(()=>{e.ac.abort(ut)}),e.ac=null);try{e.f|=sn;var c=e.fn,h=c();e.f|=pt;var d=e.deps,f=K?.is_fork;if(ze!==null){var g;if(f||sr(e,Ue),d!==null&&Ue>0)for(d.length=Ue+ze.length,g=0;g<ze.length;g++)d[Ue+g]=ze[g];else e.deps=d=ze;if(Sn()&&(e.f&Oe)!==0)for(g=Ue;g<d.length;g++)(d[g].reactions??=[]).push(e)}else!f&&d!==null&&Ue<d.length&&(sr(e,Ue),d.length=Ue);if(ci()&&Fe!==null&&!et&&d!==null&&(e.f&(pe|nt|_e))===0)for(g=0;g<Fe.length;g++)Yi(Fe[g],e);if(i!==null&&i!==e){if(Dt++,i.deps!==null)for(let x=0;x<r;x+=1)i.deps[x].rv=Dt;if(t!==null)for(const x of t)x.rv=Dt;Fe!==null&&(n===null?n=Fe:n.push(...Fe))}return(e.f&bt)!==0&&(e.f^=bt),h}catch(x){return fi(x)}finally{e.f^=sn,ze=t,Ue=r,Fe=n,P=i,Be=a,Pt(l),et=s,At=o}}function Go(e,t){let r=t.reactions;if(r!==null){var n=Xa.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&(t.f&pe)!==0&&(ze===null||!Ot.call(ze,t))){var a=t;(a.f&Oe)!==0&&(a.f^=Oe,a.f&=~Lt),dn(a),qo(a),sr(a,0)}}function sr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Go(e,r[n])}function Zt(e){var t=e.f;if((t&Ve)===0){se(e,ce);var r=j,n=Hr;j=e,Hr=!0;try{(t&(vt|nn))!==0?Wo(e):Mn(e),qi(e);var i=Wi(e);e.teardown=typeof i=="function"?i:null,e.wv=Bi;var a;Ga&&ko&&(e.f&_e)!==0&&e.deps}finally{Hr=n,j=r}}}function v(e){var t=e.f,r=(t&pe)!==0;if(P!==null&&!et){var n=j!==null&&(j.f&Ve)!==0;if(!n&&(Be===null||!Ot.call(Be,e))){var i=P.deps;if((P.f&sn)!==0)e.rv<Dt&&(e.rv=Dt,ze===null&&i!==null&&i[Ue]===e?Ue++:ze===null?ze=[e]:ze.push(e));else{(P.deps??=[]).push(e);var a=e.reactions;a===null?e.reactions=[P]:Ot.call(a,P)||a.push(P)}}}if(xt&&kt.has(e))return kt.get(e);if(r){var l=e;if(xt){var s=l.v;return((l.f&ce)===0&&l.reactions!==null||Ki(l))&&(s=mn(l)),kt.set(l,s),s}var o=(l.f&Oe)===0&&!et&&P!==null&&(Hr||(P.f&Oe)!==0),u=(l.f&pt)===0;or(l)&&(o&&(l.f|=Oe),Ci(l)),o&&!u&&(Si(l),Ji(l))}if(Xe?.has(e))return Xe.get(e);if((e.f&bt)!==0)throw e.v;return e.v}function Ji(e){if(e.f|=Oe,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&pe)!==0&&(t.f&Oe)===0&&(Si(t),Ji(t))}function Ki(e){if(e.v===he)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(kt.has(t)||(t.f&pe)!==0&&Ki(t))return!0;return!1}function lr(e){var t=et;try{return et=!0,e()}finally{et=t}}const ur=Symbol("events"),Gi=new Set,zn=new Set;function Xi(e,t,r,n={}){function i(a){if(n.capture||Nn.call(t,a),!a.cancelBubble)return Cn(()=>r?.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?at(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function He(e,t,r,n,i){var a={capture:n,passive:i},l=Xi(e,t,r,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Ar(()=>{t.removeEventListener(e,l,a)})}function le(e,t,r){(t[ur]??={})[e]=r}function Yt(e){for(var t=0;t<e.length;t++)Gi.add(e[t]);for(var r of zn)r(e)}let Qi=null;function Nn(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Qi=e;var l=0,s=Qi===e&&e[ur];if(s){var o=i.indexOf(s);if(o!==-1&&(t===document||t===window)){e[ur]=t;return}var u=i.indexOf(t);if(u===-1)return;o<=u&&(l=o)}if(a=i[l]||e.target,a!==t){Gt(e,"currentTarget",{configurable:!0,get(){return a||r}});var c=P,h=j;Re(null),st(null);try{for(var d,f=[];a!==null;){var g=a.assignedSlot||a.parentNode||a.host||null;try{var x=a[ur]?.[n];x!=null&&(!a.disabled||e.target===a)&&x.call(a,e)}catch(p){d?f.push(p):d=p}if(e.cancelBubble||g===t||g===null)break;a=g}if(d){for(let p of f)queueMicrotask(()=>{throw p});throw d}}finally{e[ur]=t,delete e.currentTarget,Re(c),st(h)}}}const Xo=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Qo(e){return Xo?.createHTML(e)??e}function ea(e){var t=yn("template");return t.innerHTML=Qo(e.replaceAll("<!>","<!---->")),t.content}function ft(e,t){var r=j;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function ne(e,t){var r=(t&Qn)!==0,n=(t&Ja)!==0,i,a=!e.startsWith("<!>");return()=>{if(V)return ft(B,null),B;i===void 0&&(i=ea(a?e:"<!>"+e),r||(i=je(i)));var l=n||zi?document.importNode(i,!0):i.cloneNode(!0);if(r){var s=je(l),o=l.lastChild;ft(s,o)}else ft(l,l);return l}}function es(e,t,r="svg"){var n=!e.startsWith("<!>"),i=(t&Qn)!==0,a=`<${r}>${n?e:"<!>"+e}</${r}>`,l;return()=>{if(V)return ft(B,null),B;if(!l){var s=ea(a),o=je(s);if(i)for(l=document.createDocumentFragment();je(o);)l.appendChild(je(o));else l=je(o)}var u=l.cloneNode(!0);if(i){var c=je(u),h=u.lastChild;ft(c,h)}else ft(u,u);return u}}function ie(e,t){return es(e,t,"svg")}function qr(){if(V)return ft(B,null),B;var e=document.createDocumentFragment(),t=document.createComment(""),r=Pe();return e.append(t,r),ft(t,r),e}function T(e,t){if(V){var r=j;((r.f&pt)===0||r.nodes.end===null)&&(r.nodes.end=B),er();return}e!==null&&e.before(t)}function ts(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const rs=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function ns(e){return rs.includes(e)}const is={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 as(e){return e=e.toLowerCase(),is[e]??e}const os=["touchstart","touchmove"];function ss(e){return os.includes(e)}function cr(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=`${r}`)}function ta(e,t){return ra(e,t)}function ls(e,t){kn(),t.intro=t.intro??!1;const r=t.target,n=V,i=B;try{for(var a=je(r);a&&(a.nodeType!==Qt||a.data!==Qr);)a=ot(a);if(!a)throw qt;Ae(!0),xe(a);const l=ra(e,{...t,anchor:a});return Ae(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
- `).some(s=>s.startsWith("https://svelte.dev/e/")))throw l;return l!==qt&&console.warn("Failed to hydrate: ",l),t.recover===!1&&vo(),kn(),$i(r),Ae(!1),ta(e,t)}finally{Ae(n),xe(i)}}const Or=new Map;function ra(e,{target:t,anchor:r,props:n={},events:i,context:a,intro:l=!0,transformError:s}){kn();var o=void 0,u=Zo(()=>{var c=r??t.appendChild(Pe());To(c,{pending:()=>{}},f=>{te({});var g=Ie;if(a&&(g.c=a),i&&(n.$$events=i),V&&ft(f,null),o=e(f,n)||{},V&&(j.nodes.end=B,B===null||B.nodeType!==Qt||B.data!==tn))throw zr(),qt;re()},s);var h=new Set,d=f=>{for(var g=0;g<f.length;g++){var x=f[g];if(!h.has(x)){h.add(x);var p=ss(x);for(const I of[t,document]){var _=Or.get(I);_===void 0&&(_=new Map,Or.set(I,_));var S=_.get(x);S===void 0?(I.addEventListener(x,Nn,{passive:p}),_.set(x,1)):_.set(x,S+1)}}}};return d(Sr(Gi)),zn.add(d),()=>{for(var f of h)for(const p of[t,document]){var g=Or.get(p),x=g.get(f);--x==0?(p.removeEventListener(f,Nn),g.delete(f),g.size===0&&Or.delete(p)):g.set(f,x)}zn.delete(d),c!==r&&c.parentNode?.removeChild(c)}});return Tn.set(o,u),o}let Tn=new WeakMap;function us(e,t){const r=Tn.get(e);return r?(Tn.delete(e),r(t)):Promise.resolve()}class $n{anchor;#e=new Map;#r=new Map;#t=new Map;#i=new Set;#a=!0;constructor(t,r=!0){this.anchor=t,this.#a=r}#n=t=>{if(this.#e.has(t)){var r=this.#e.get(t),n=this.#r.get(r);if(n)In(n),this.#i.delete(r);else{var i=this.#t.get(r);i&&(this.#r.set(r,i.effect),this.#t.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[a,l]of this.#e){if(this.#e.delete(a),a===t)break;const s=this.#t.get(l);s&&(ge(s.effect),this.#t.delete(l))}for(const[a,l]of this.#r){if(a===r||this.#i.has(a))continue;const s=()=>{if(Array.from(this.#e.values()).includes(a)){var u=document.createDocumentFragment();Ln(l,u),u.append(Pe()),this.#t.set(a,{effect:l,fragment:u})}else ge(l);this.#i.delete(a),this.#r.delete(a)};this.#a||!n?(this.#i.add(a),$t(l,s,!1)):s()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[n,i]of this.#t)r.includes(n)||(ge(i.effect),this.#t.delete(n))};ensure(t,r){var n=K,i=Di();if(r&&!this.#r.has(t)&&!this.#t.has(t))if(i){var a=document.createDocumentFragment(),l=Pe();a.append(l),this.#t.set(t,{effect:Le(()=>r(l)),fragment:a})}else this.#r.set(t,Le(()=>r(this.anchor)));if(this.#e.set(n,t),i){for(const[s,o]of this.#r)s===t?n.unskip_effect(o):n.skip_effect(o);for(const[s,o]of this.#t)s===t?n.unskip_effect(o.effect):n.skip_effect(o.effect);n.oncommit(this.#n),n.ondiscard(this.#o)}else V&&(this.anchor=B),this.#n(n)}}function Vr(e,t,...r){var n=new $n(e);ar(()=>{const i=t()??null;n.ensure(i,i&&(a=>i(a,...r)))},gt)}function cs(e){Ie===null&&ao(),Ft(()=>{const t=lr(e);if(typeof t=="function")return t})}function ae(e,t,r=!1){var n;V&&(n=B,er());var i=new $n(e),a=r?gt:0;function l(s,o){if(V){var u=cn(n);if(s!==parseInt(u.substring(1))){var c=tr();xe(c),i.anchor=c,Ae(!1),i.ensure(s,o),Ae(!0);return}}i.ensure(s,o)}ar(()=>{var s=!1;t((o,u=0)=>{s=!0,l(u,o)}),s||l(-1,null)},a)}function ds(e,t){return t}function fs(e,t,r){for(var n=[],i=t.length,a,l=t.length,s=0;s<i;s++){let h=t[s];$t(h,()=>{if(a){if(a.pending.delete(h),a.done.add(h),a.pending.size===0){var d=e.outrogroups;Dn(e,Sr(a.done)),d.delete(a),d.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var o=n.length===0&&r!==null;if(o){var u=r,c=u.parentNode;$i(c),c.append(u),e.items.clear()}Dn(e,t,!o)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Dn(e,t,r=!0){var n;if(e.pending.size>0){n=new Set;for(const l of e.pending.values())for(const s of l)n.add(e.items.get(s).e)}for(var i=0;i<t.length;i++){var a=t[i];if(n?.has(a)){a.f|=it;const l=document.createDocumentFragment();Ln(a,l)}else ge(t[i],r)}}var na;function ia(e,t,r,n,i,a=null){var l=e,s=new Map,o=(t&Xn)!==0;if(o){var u=e;l=V?xe(je(u)):u.appendChild(Pe())}V&&er();var c=null,h=xi(()=>{var I=r();return rn(I)?I:I==null?[]:Sr(I)}),d,f=new Map,g=!0;function x(I){(S.effect.f&Ve)===0&&(S.pending.delete(I),S.fallback=c,vs(S,d,l,t,n),c!==null&&(d.length===0?(c.f&it)===0?In(c):(c.f^=it,fr(c,null,l)):$t(c,()=>{c=null})))}function p(I){S.pending.delete(I)}var _=ar(()=>{d=v(h);var I=d.length;let N=!1;if(V){var L=cn(l)===en;L!==(I===0)&&(l=tr(),xe(l),Ae(!1),N=!0)}for(var w=new Set,E=K,O=Di(),U=0;U<I;U+=1){V&&B.nodeType===Qt&&B.data===tn&&(l=B,N=!0,Ae(!1));var y=d[U],R=n(y,U),Z=g?null:s.get(R);Z?(Z.v&&Bt(Z.v,y),Z.i&&Bt(Z.i,U),O&&E.unskip_effect(Z.e)):(Z=hs(s,g?l:na??=Pe(),y,R,U,i,t,r),g||(Z.e.f|=it),s.set(R,Z)),w.add(R)}if(I===0&&a&&!c&&(g?c=Le(()=>a(l)):(c=Le(()=>a(na??=Pe())),c.f|=it)),I>w.size&&so(),V&&I>0&&xe(tr()),!g)if(f.set(E,w),O){for(const[ye,Se]of s)w.has(ye)||E.skip_effect(Se.e);E.oncommit(x),E.ondiscard(p)}else x(E);N&&Ae(!0),v(h)}),S={effect:_,items:s,pending:f,outrogroups:null,fallback:c};g=!1,V&&(l=B)}function dr(e){for(;e!==null&&(e.f&Je)===0;)e=e.next;return e}function vs(e,t,r,n,i){var a=(n&Ra)!==0,l=t.length,s=e.items,o=dr(e.effect.first),u,c=null,h,d=[],f=[],g,x,p,_;if(a)for(_=0;_<l;_+=1)g=t[_],x=i(g,_),p=s.get(x).e,(p.f&it)===0&&(p.nodes?.a?.measure(),(h??=new Set).add(p));for(_=0;_<l;_+=1){if(g=t[_],x=i(g,_),p=s.get(x).e,e.outrogroups!==null)for(const y of e.outrogroups)y.pending.delete(p),y.done.delete(p);if((p.f&De)!==0&&(In(p),a&&(p.nodes?.a?.unfix(),(h??=new Set).delete(p))),(p.f&it)!==0)if(p.f^=it,p===o)fr(p,null,r);else{var S=c?c.next:o;p===e.effect.last&&(e.effect.last=p.prev),p.prev&&(p.prev.next=p.next),p.next&&(p.next.prev=p.prev),Ct(e,c,p),Ct(e,p,S),fr(p,S,r),c=p,d=[],f=[],o=dr(c.next);continue}if(p!==o){if(u!==void 0&&u.has(p)){if(d.length<f.length){var I=f[0],N;c=I.prev;var L=d[0],w=d[d.length-1];for(N=0;N<d.length;N+=1)fr(d[N],I,r);for(N=0;N<f.length;N+=1)u.delete(f[N]);Ct(e,L.prev,w.next),Ct(e,c,L),Ct(e,w,I),o=I,c=w,_-=1,d=[],f=[]}else u.delete(p),fr(p,o,r),Ct(e,p.prev,p.next),Ct(e,p,c===null?e.effect.first:c.next),Ct(e,c,p),c=p;continue}for(d=[],f=[];o!==null&&o!==p;)(u??=new Set).add(o),f.push(o),o=dr(o.next);if(o===null)continue}(p.f&it)===0&&d.push(p),c=p,o=dr(p.next)}if(e.outrogroups!==null){for(const y of e.outrogroups)y.pending.size===0&&(Dn(e,Sr(y.done)),e.outrogroups?.delete(y));e.outrogroups.size===0&&(e.outrogroups=null)}if(o!==null||u!==void 0){var E=[];if(u!==void 0)for(p of u)(p.f&De)===0&&E.push(p);for(;o!==null;)(o.f&De)===0&&o!==e.fallback&&E.push(o),o=dr(o.next);var O=E.length;if(O>0){var U=(n&Xn)!==0&&l===0?r:null;if(a){for(_=0;_<O;_+=1)E[_].nodes?.a?.measure();for(_=0;_<O;_+=1)E[_].nodes?.a?.fix()}fs(e,E,U)}}a&&at(()=>{if(h!==void 0)for(p of h)p.nodes?.a?.apply()})}function hs(e,t,r,n,i,a,l,s){var o=(l&Pa)!==0?(l&Ba)===0?_n(r,!1,!1):Nt(r):null,u=(l&ja)!==0?Nt(i):null;return{v:o,i:u,e:Le(()=>(a(t,o??r,u??i,s),()=>{e.delete(n)}))}}function fr(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,a=t&&(t.f&it)===0?t.nodes.start:r;n!==null;){var l=ot(n);if(a.before(n),n===i)return;n=l}}function Ct(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function ps(e,t,r){var n;V&&(n=B,er());var i=new $n(e);ar(()=>{var a=t()??null;if(V){var l=cn(n),s=l===Qr,o=a!==null;if(s!==o){var u=tr();xe(u),i.anchor=u,Ae(!1),i.ensure(a,a&&(c=>r(c,a))),Ae(!0);return}}i.ensure(a,a&&(c=>r(c,a)))},gt)}function St(e,t){Ur(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=yn("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function gs(e,t){var r=void 0,n;Hi(()=>{r!==(r=t())&&(n&&(ge(n),n=null),r&&(n=Le(()=>{Ur(()=>r(e))})))})}function aa(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=aa(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function bs(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=aa(e))&&(n&&(n+=" "),n+=t);return n}function ms(e){return typeof e=="object"?bs(e):e??""}const oa=[...`
3
- \r\f \v\uFEFF`];function ws(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var i of Object.keys(r))if(r[i])n=n?n+" "+i:i;else if(n.length)for(var a=i.length,l=0;(l=n.indexOf(i,l))>=0;){var s=l+a;(l===0||oa.includes(n[l-1]))&&(s===n.length||oa.includes(n[s]))?n=(l===0?"":n.substring(0,l))+n.substring(s+1):l=s}}return n===""?null:n}function sa(e,t=!1){var r=t?" !important;":";",n="";for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==""&&(n+=" "+i+": "+a+r)}return n}function An(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function _s(e,t){if(t){var r="",n,i;if(Array.isArray(t)?(n=t[0],i=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,l=0,s=!1,o=[];n&&o.push(...Object.keys(n).map(An)),i&&o.push(...Object.keys(i).map(An));var u=0,c=-1;const x=e.length;for(var h=0;h<x;h++){var d=e[h];if(s?d==="/"&&e[h-1]==="*"&&(s=!1):a?a===d&&(a=!1):d==="/"&&e[h+1]==="*"?s=!0:d==='"'||d==="'"?a=d:d==="("?l++:d===")"&&l--,!s&&a===!1&&l===0){if(d===":"&&c===-1)c=h;else if(d===";"||h===x-1){if(c!==-1){var f=An(e.substring(u,c).trim());if(!o.includes(f)){d!==";"&&h++;var g=e.substring(u,h).trim();r+=" "+g+";"}}u=h+1,c=-1}}}}return n&&(r+=sa(n)),i&&(r+=sa(i,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function Ce(e,t,r,n,i,a){var l=e.__className;if(V||l!==r||l===void 0){var s=ws(r,n,a);(!V||s!==e.getAttribute("class"))&&(s==null?e.removeAttribute("class"):t?e.className=s:e.setAttribute("class",s)),e.__className=r}else if(a&&i!==a)for(var o in a){var u=!!a[o];(i==null||u!==!!i[o])&&e.classList.toggle(o,u)}return a}function Un(e,t={},r,n){for(var i in r){var a=r[i];t[i]!==a&&(r[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,n))}}function ks(e,t,r,n){var i=e.__style;if(V||i!==t){var a=_s(t,n);(!V||a!==e.getAttribute("style"))&&(a==null?e.removeAttribute("style"):e.style.cssText=a),e.__style=t}else n&&(Array.isArray(n)?(Un(e,r?.[0],n[0]),Un(e,r?.[1],n[1],"important")):Un(e,r,n));return n}function Hn(e,t,r=!1){if(e.multiple){if(t==null)return;if(!rn(t))return wo();for(var n of e.options)n.selected=t.includes(la(n));return}for(n of e.options){var i=la(n);if(Vo(i,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function ys(e){var t=new MutationObserver(()=>{Hn(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Ar(()=>{t.disconnect()})}function la(e){return"__value"in e?e.__value:e.value}const Wt=Symbol("class"),vr=Symbol("style"),ua=Symbol("is custom element"),ca=Symbol("is html"),xs=Ir?"link":"LINK",Cs=Ir?"input":"INPUT",Ss=Ir?"option":"OPTION",Es=Ir?"select":"SELECT";function Ms(e){if(V){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;F(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var i=e.checked;F(e,"checked",null),e.checked=i}}};e.__on_r=r,at(r),jo()}}function Is(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function F(e,t,r,n){var i=da(e);V&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===xs)||i[t]!==(i[t]=r)&&(t==="loading"&&(e[io]=r),r==null?e.removeAttribute(t):typeof r!="string"&&va(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ls(e,t,r,n,i=!1,a=!1){if(V&&i&&e.nodeName===Cs){var l=e,s=l.type==="checkbox"?"defaultChecked":"defaultValue";s in r||Ms(l)}var o=da(e),u=o[ua],c=!o[ca];let h=V&&u;h&&Ae(!1);var d=t||{},f=e.nodeName===Ss;for(var g in t)g in r||(r[g]=null);r.class?r.class=ms(r.class):(n||r[Wt])&&(r.class=null),r[vr]&&(r.style??=null);var x=va(e);for(const w in r){let E=r[w];if(f&&w==="value"&&E==null){e.value=e.__value="",d[w]=E;continue}if(w==="class"){var p=e.namespaceURI==="http://www.w3.org/1999/xhtml";Ce(e,p,E,n,t?.[Wt],r[Wt]),d[w]=E,d[Wt]=r[Wt];continue}if(w==="style"){ks(e,E,t?.[vr],r[vr]),d[w]=E,d[vr]=r[vr];continue}var _=d[w];if(!(E===_&&!(E===void 0&&e.hasAttribute(w)))){d[w]=E;var S=w[0]+w[1];if(S!=="$$")if(S==="on"){const O={},U="$$"+w;let y=w.slice(2);var I=ns(y);if(ts(y)&&(y=y.slice(0,-7),O.capture=!0),!I&&_){if(E!=null)continue;e.removeEventListener(y,d[U],O),d[U]=null}if(I)le(y,e,E),Yt([y]);else if(E!=null){let R=function(Z){d[w].call(this,Z)};d[U]=Xi(y,e,R,O)}}else if(w==="style")F(e,w,E);else if(w==="autofocus")Po(e,!!E);else if(!u&&(w==="__value"||w==="value"&&E!=null))e.value=e.__value=E;else if(w==="selected"&&f)Is(e,E);else{var N=w;c||(N=as(N));var L=N==="defaultValue"||N==="defaultChecked";if(E==null&&!u&&!L)if(o[w]=null,N==="value"||N==="checked"){let O=e;const U=t===void 0;if(N==="value"){let y=O.defaultValue;O.removeAttribute(N),O.defaultValue=y,O.value=O.__value=U?y:null}else{let y=O.defaultChecked;O.removeAttribute(N),O.defaultChecked=y,O.checked=U?y:!1}}else e.removeAttribute(w);else L||x.includes(N)&&(u||typeof E!="string")?(e[N]=E,N in o&&(o[N]=he)):typeof E!="function"&&F(e,N,E)}}}return h&&Ae(!0),d}function hr(e,t,r=[],n=[],i=[],a,l=!1,s=!1){ki(i,r,n,o=>{var u=void 0,c={},h=e.nodeName===Es,d=!1;if(Hi(()=>{var g=t(...o.map(v)),x=Ls(e,u,g,a,l,s);d&&h&&"value"in g&&Hn(e,g.value);for(let _ of Object.getOwnPropertySymbols(c))g[_]||ge(c[_]);for(let _ of Object.getOwnPropertySymbols(g)){var p=g[_];_.description===Ka&&(!u||p!==u[_])&&(c[_]&&ge(c[_]),c[_]=Le(()=>gs(e,()=>p))),x[_]=p}u=x}),h){var f=e;Ur(()=>{Hn(f,u.value,!0),ys(f)})}d=!0})}function da(e){return e.__attributes??={[ua]:e.nodeName.includes("-"),[ca]:e.namespaceURI===ti}}var fa=new Map;function va(e){var t=e.getAttribute("is")||e.nodeName,r=fa.get(t);if(r)return r;fa.set(t,r=[]);for(var n,i=e,a=Element.prototype;a!==i;){n=Qa(i);for(var l in n)n[l].set&&r.push(l);i=ri(i)}return r}function ha(e,t){return e===t||e?.[mt]===t}function Et(e={},t,r,n){var i=Ie.r,a=j;return Ur(()=>{var l,s;return En(()=>{l=s,s=n?.()||[],lr(()=>{e!==r(...s)&&(t(e,...s),l&&ha(r(...l),e)&&t(null,...l))})}),()=>{let o=a;for(;o!==i&&o.parent!==null&&o.parent.f&on;)o=o.parent;const u=()=>{s&&ha(r(...s),e)&&t(null,...s)},c=o.teardown;o.teardown=()=>{u(),c?.()}}}),e}const zs={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},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 pr(e,t,r){return new Proxy({props:e,exclude:t},zs)}const Ns={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Xt(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n)return n[t]}},set(e,t,r){let n=e.props.length;for(;n--;){let i=e.props[n];Xt(i)&&(i=i());const a=lt(i,t);if(a&&a.set)return a.set(r),!0}return!1},getOwnPropertyDescriptor(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Xt(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const i=lt(n,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===mt||t===un)return!1;for(let r of e.props)if(Xt(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){const t=[];for(let r of e.props)if(Xt(r)&&(r=r()),!!r){for(const n in r)t.includes(n)||t.push(n);for(const n of Object.getOwnPropertySymbols(r))t.includes(n)||t.push(n)}return t}};function pa(...e){return new Proxy({props:e},Ns)}function m(e,t,r,n){var i=(r&Ya)!==0,a=(r&Wa)!==0,l=n,s=!0,o=()=>(s&&(s=!1,l=a?lr(n):n),l);let u;if(i){var c=mt in e||un in e;u=lt(e,t)?.set??(c&&t in e?S=>e[t]=S:void 0)}var h,d=!1;i?[h,d]=Mo(()=>e[t]):h=e[t],h===void 0&&n!==void 0&&(h=o(),u&&(ho(),u(h)));var f;if(f=()=>{var S=e[t];return S===void 0?o():(s=!0,S)},(r&Za)===0)return f;if(u){var g=e.$$legacy;return(function(S,I){return arguments.length>0?((!I||g||d)&&u(I?f():S),S):f()})}var x=!1,p=((r&Fa)!==0?Dr:xi)(()=>(x=!1,f()));i&&v(p);var _=j;return(function(S,I){if(arguments.length>0){const N=I?v(p):i?yt(S):S;return q(p,N),x=!0,l!==void 0&&(l=N),S}return xt&&x||(_.f&Ve)!==0?p.v:v(p)})}function Ts(e){return new $s(e)}class $s{#e;#r;constructor(t){var r=new Map,n=(a,l)=>{var s=_n(l,!1,!1);return r.set(a,s),s};const i=new Proxy({...t.props||{},$$events:{}},{get(a,l){return v(r.get(l)??n(l,Reflect.get(a,l)))},has(a,l){return l===un?!0:(v(r.get(l)??n(l,Reflect.get(a,l))),Reflect.has(a,l))},set(a,l,s){return q(r.get(l)??n(l,s),s),Reflect.set(a,l,s)}});this.#r=(t.hydrate?ls:ta)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&b(),this.#e=i.$$events;for(const a of Object.keys(this.#r))a==="$set"||a==="$destroy"||a==="$on"||Gt(this,a,{get(){return this.#r[a]},set(l){this.#r[a]=l},enumerable:!0});this.#r.$set=a=>{Object.assign(i,a)},this.#r.$destroy=()=>{us(this.#r)}}$set(t){this.#r.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];const n=(...i)=>r.call(this,...i);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(i=>i!==n)}}$destroy(){this.#r.$destroy()}}let ga;typeof HTMLElement=="function"&&(ga=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&(this.$$shadowRoot=this.attachShadow(r))}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const a=yn("slot");n!=="default"&&(a.name=n),T(i,a)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Ds(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Pr(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Ts({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Fo(()=>{En(()=>{this.$$r=!0;for(const n of Er(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Pr(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const a=this.$$c.$on(n,i);this.$$l_u.set(i,a)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Pr(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 Er(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Pr(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){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(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ds(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function oe(e,t,r,n,i,a){let l=class extends ga{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Er(t).map(s=>(t[s].attribute||s).toLowerCase())}};return Er(t).forEach(s=>{Gt(l.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(o){o=Pr(s,o,t),this.$$d[s]=o;var u=this.$$c;if(u){var c=lt(u,s)?.get;c?u[s]=o:u.$set({[s]:o})}}})}),n.forEach(s=>{Gt(l.prototype,s,{get(){return this.$$c?.[s]}})}),e.element=l,l}var As=ne("<a><!></a>"),Us=ne("<button><!></button>");const Hs={hash:"svelte-1klcfz0",code:`
1
+ (function(we,Mr){typeof exports=="object"&&typeof module<"u"?Mr(exports):typeof define=="function"&&define.amd?define(["exports"],Mr):(we=typeof globalThis<"u"?globalThis:we||self,Mr(we.graymatter={}))})(this,(function(we){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Wo=1,Yo=2,ni=4,Go=8,Jo=16,Ko=1,Xo=4,Qo=8,ea=16,ii=1,ta=2,rn="[",nn="[!",oi="[?",on="]",jt={},he=Symbol(),ai="http://www.w3.org/1999/xhtml",ra="@attach",na=!1;var an=Array.isArray,ia=Array.prototype.indexOf,Pt=Array.prototype.includes,Ir=Array.from,Lr=Object.keys,rr=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,oa=Object.getOwnPropertyDescriptors,aa=Object.prototype,sa=Array.prototype,si=Object.getPrototypeOf,li=Object.isExtensible;function nr(e){return typeof e=="function"}const ze=()=>{};function ui(e){for(var t=0;t<e.length;t++)e[t]()}function ci(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const pe=2,Rt=4,zr=8,sn=1<<24,gt=16,Ye=32,bt=64,ln=128,Ve=512,ce=1024,xe=2048,nt=4096,De=8192,je=16384,mt=32768,un=1<<25,wt=65536,di=1<<17,la=1<<18,zt=1<<19,ua=1<<20,it=1<<25,Nt=65536,cn=1<<21,dn=1<<22,_t=1<<23,kt=Symbol("$state"),fn=Symbol("legacy props"),ca=Symbol(""),ct=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Nr=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Tr=3,ir=8;function fi(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function da(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function fa(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function va(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ha(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function pa(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ga(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ba(){throw new Error("https://svelte.dev/e/hydration_failed")}function ma(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function wa(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function _a(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ka(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ya(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function $r(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function xa(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Ca(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let j=!1;function Ae(e){j=e}let F;function Se(e){if(e===null)throw $r(),jt;return F=e}function or(){return Se(at(F))}function E(e){if(j){if(at(F)!==null)throw $r(),jt;F=e}}function Ge(e=1){if(j){for(var t=e,r=F;t--;)r=at(r);F=r}}function ar(e=!0){for(var t=0,r=F;;){if(r.nodeType===ir){var n=r.data;if(n===on){if(t===0)return r;t-=1}else(n===rn||n===nn||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=at(r);e&&r.remove(),r=i}}function vn(e){if(!e||e.nodeType!==ir)throw $r(),jt;return e.data}function vi(e){return e===this.v}function hi(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function pi(e){return!hi(e,this.v)}let Sa=!1,Ee=null;function Bt(e){Ee=e}function re(e,t=!1,r){Ee={p:Ee,i:!1,c:null,e:null,s:e,x:null,r:B,l:null}}function ne(e){var t=Ee,r=t.e;if(r!==null){t.e=null;for(var n of r)Pi(n)}return e!==void 0&&(t.x=e),t.i=!0,Ee=t.p,e??{}}function gi(){return!0}let Tt=[];function bi(){var e=Tt;Tt=[],ui(e)}function ot(e){if(Tt.length===0&&!lr){var t=Tt;queueMicrotask(()=>{t===Tt&&bi()})}Tt.push(e)}function Ea(){for(;Tt.length>0;)bi()}function mi(e){var t=B;if(t===null)return R.f|=_t,e;if((t.f&mt)===0&&(t.f&Rt)===0)throw e;yt(e,t)}function yt(e,t){for(;t!==null;){if((t.f&ln)!==0){if((t.f&mt)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const Ma=-7169;function ue(e,t){e.f=e.f&Ma|t}function hn(e){(e.f&Ve)!==0||e.deps===null?ue(e,ce):ue(e,nt)}function wi(e){if(e!==null)for(const t of e)(t.f&pe)===0||(t.f&Nt)===0||(t.f^=Nt,wi(t.deps))}function _i(e,t,r){(e.f&xe)!==0?t.add(e):(e.f&nt)!==0&&r.add(e),wi(e.deps),ue(e,ce)}function pn(e,t,r){if(e==null)return t(void 0),r&&r(void 0),ze;const n=Gt(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const Ft=[];function Ia(e,t){return{subscribe:gn(e,t).subscribe}}function gn(e,t=ze){let r=null;const n=new Set;function i(s){if(hi(e,s)&&(e=s,r)){const a=!Ft.length;for(const u of n)u[1](),Ft.push(u,e);if(a){for(let u=0;u<Ft.length;u+=2)Ft[u][0](Ft[u+1]);Ft.length=0}}}function o(s){i(s(e))}function l(s,a=ze){const u=[s,a];return n.add(u),n.size===1&&(r=t(i,o)||ze),s(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:l}}function La(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Ia(r,(l,s)=>{let a=!1;const u=[];let c=0,h=ze;const d=()=>{if(c)return;h();const g=t(n?u[0]:u,l,s);o?l(g):h=typeof g=="function"?g:ze},v=i.map((g,y)=>pn(g,p=>{u[y]=p,c&=~(1<<y),a&&d()},()=>{c|=1<<y}));return a=!0,d(),function(){ui(v),h(),a=!1}})}function za(e){let t;return pn(e,r=>t=r)(),t}let Dr=!1,bn=Symbol();function Je(e,t,r){const n=r[t]??={store:null,source:xn(void 0),unsubscribe:ze};if(n.store!==e&&!(bn in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=ze;else{var i=!0;n.unsubscribe=pn(e,o=>{i?n.source.v=o:V(n.source,o)}),i=!1}return e&&bn in r?za(e):f(n.source)}function sr(){const e={};function t(){Hr(()=>{for(var r in e)e[r].unsubscribe();rr(e,bn,{enumerable:!1,value:!0})})}return[e,t]}function Na(e){var t=Dr;try{return Dr=!1,[e(),Dr]}finally{Dr=t}}const xt=new Set;let J=null,Ke=null,mn=null,lr=!1,wn=!1,Zt=null,Ar=null;var ki=0;let Ta=1;class dt{id=Ta++;current=new Map;previous=new Map;#e=new Set;#r=new Set;#t=new Map;#i=new Map;#o=null;#n=[];#a=new Set;#s=new Set;#l=new Map;is_fork=!1;#d=!1;#u=new Set;#f(){return this.is_fork||this.#i.size>0}#h(){for(const n of this.#u)for(const i of n.#i.keys()){for(var t=!1,r=i;r.parent!==null;){if(this.#l.has(r)){t=!0;break}r=r.parent}if(!t)return!0}return!1}skip_effect(t){this.#l.has(t)||this.#l.set(t,{d:[],m:[]})}unskip_effect(t){var r=this.#l.get(t);if(r){this.#l.delete(t);for(var n of r.d)ue(n,xe),this.schedule(n);for(n of r.m)ue(n,nt),this.schedule(n)}}#v(){if(ki++>1e3&&(xt.delete(this),$a()),!this.#f()){for(const s of this.#a)this.#s.delete(s),ue(s,xe),this.schedule(s);for(const s of this.#s)ue(s,nt),this.schedule(s)}const t=this.#n;this.#n=[],this.apply();var r=Zt=[],n=[],i=Ar=[];for(const s of t)try{this.#c(s,r,n)}catch(a){throw Ei(s),a}if(J=null,i.length>0){var o=dt.ensure();for(const s of i)o.schedule(s)}if(Zt=null,Ar=null,this.#f()||this.#h()){this.#p(n),this.#p(r);for(const[s,a]of this.#l)Si(s,a)}else{this.#t.size===0&&xt.delete(this),this.#a.clear(),this.#s.clear();for(const s of this.#e)s(this);this.#e.clear(),yi(n),yi(r),this.#o?.resolve()}var l=J;if(this.#n.length>0){const s=l??=this;s.#n.push(...this.#n.filter(a=>!s.#n.includes(a)))}l!==null&&(xt.add(l),l.#v()),xt.has(this)||this.#g()}#c(t,r,n){t.f^=ce;for(var i=t.first;i!==null;){var o=i.f,l=(o&(Ye|bt))!==0,s=l&&(o&ce)!==0,a=s||(o&De)!==0||this.#l.has(i);if(!a&&i.fn!==null){l?i.f^=ce:(o&Rt)!==0?r.push(i):dr(i)&&((o&gt)!==0&&this.#s.add(i),Yt(i));var u=i.first;if(u!==null){i=u;continue}}for(;i!==null;){var c=i.next;if(c!==null){i=c;break}i=i.parent}}}#p(t){for(var r=0;r<t.length;r+=1)_i(t[r],this.#a,this.#s)}capture(t,r,n=!1){r!==he&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&_t)===0&&(this.current.set(t,[t.v,n]),Ke?.set(t,t.v))}activate(){J=this}deactivate(){J=null,Ke=null}flush(){try{wn=!0,J=this,this.#v()}finally{ki=0,mn=null,Zt=null,Ar=null,wn=!1,J=null,Ke=null,Ct.clear()}}discard(){for(const t of this.#r)t(this);this.#r.clear(),xt.delete(this)}#g(){for(const u of xt){var t=u.id<this.id,r=[];for(const[c,[h,d]]of this.current){if(u.current.has(c)){var n=u.current.get(c)[0];if(t&&h!==n)u.current.set(c,[h,d]);else continue}r.push(c)}var i=[...u.current.keys()].filter(c=>!this.current.has(c));if(i.length===0)t&&u.discard();else if(r.length>0){u.activate();var o=new Set,l=new Map;for(var s of r)xi(s,i,o,l);if(u.#n.length>0){u.apply();for(var a of u.#n)u.#c(a,[],[]);u.#n=[]}u.deactivate()}}for(const u of xt)u.#u.has(this)&&(u.#u.delete(this),u.#u.size===0&&!u.#f()&&(u.activate(),u.#v()))}increment(t,r){let n=this.#t.get(r)??0;if(this.#t.set(r,n+1),t){let i=this.#i.get(r)??0;this.#i.set(r,i+1)}}decrement(t,r,n){let i=this.#t.get(r)??0;if(i===1?this.#t.delete(r):this.#t.set(r,i-1),t){let o=this.#i.get(r)??0;o===1?this.#i.delete(r):this.#i.set(r,o-1)}this.#d||n||(this.#d=!0,ot(()=>{this.#d=!1,this.flush()}))}transfer_effects(t,r){for(const n of t)this.#a.add(n);for(const n of r)this.#s.add(n);t.clear(),r.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#r.add(t)}settled(){return(this.#o??=ci()).promise}static ensure(){if(J===null){const t=J=new dt;wn||(xt.add(J),lr||ot(()=>{J===t&&t.flush()}))}return J}apply(){{Ke=null;return}}schedule(t){if(mn=t,t.b?.is_pending&&(t.f&(Rt|zr|sn))!==0&&(t.f&mt)===0){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if(Zt!==null&&r===B&&(R===null||(R.f&pe)===0))return;if((n&(bt|Ye))!==0){if((n&ce)===0)return;r.f^=ce}}this.#n.push(r)}}function m(e){var t=lr;lr=!0;try{for(var r;;){if(Ea(),J===null)return r;J.flush()}}finally{lr=t}}function $a(){try{ga()}catch(e){yt(e,mn)}}let ft=null;function yi(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(je|De))===0&&dr(n)&&(ft=new Set,Yt(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&Fi(n),ft?.size>0)){Ct.clear();for(const i of ft){if((i.f&(je|De))!==0)continue;const o=[i];let l=i.parent;for(;l!==null;)ft.has(l)&&(ft.delete(l),o.push(l)),l=l.parent;for(let s=o.length-1;s>=0;s--){const a=o[s];(a.f&(je|De))===0&&Yt(a)}}ft.clear()}}ft=null}}function xi(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const o=i.f;(o&pe)!==0?xi(i,t,r,n):(o&(dn|gt))!==0&&(o&xe)===0&&Ci(i,t,n)&&(ue(i,xe),_n(i))}}function Ci(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(Pt.call(t,i))return!0;if((i.f&pe)!==0&&Ci(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function _n(e){J.schedule(e)}function Si(e,t){if(!((e.f&Ye)!==0&&(e.f&ce)!==0)){(e.f&xe)!==0?t.d.push(e):(e.f&nt)!==0&&t.m.push(e),ue(e,ce);for(var r=e.first;r!==null;)Si(r,t),r=r.next}}function Ei(e){ue(e,ce);for(var t=e.first;t!==null;)Ei(t),t=t.next}function Da(e){let t=0,r=$t(0),n;return()=>{In()&&(f(r),Ln(()=>(t===0&&(n=Gt(()=>e(()=>ur(r)))),t+=1,()=>{ot(()=>{t-=1,t===0&&(n?.(),n=void 0,ur(r))})})))}}var Aa=wt|zt;function Ua(e,t,r,n){new qa(e,t,r,n)}class qa{parent;is_pending=!1;transform_error;#e;#r=j?F:null;#t;#i;#o;#n=null;#a=null;#s=null;#l=null;#d=0;#u=0;#f=!1;#h=new Set;#v=new Set;#c=null;#p=Da(()=>(this.#c=$t(this.#d),()=>{this.#c=null}));constructor(t,r,n,i){this.#e=t,this.#t=r,this.#i=o=>{var l=B;l.b=this,l.f|=ln,n(o)},this.parent=B.b,this.transform_error=i??this.parent?.transform_error??(o=>o),this.#o=cr(()=>{if(j){const o=this.#r;or();const l=o.data===nn;if(o.data.startsWith(oi)){const a=JSON.parse(o.data.slice(oi.length));this.#k(a)}else l?this.#y():this.#g()}else this.#w()},Aa),j&&(this.#e=F)}#g(){try{this.#n=Ne(()=>this.#i(this.#e))}catch(t){this.error(t)}}#k(t){const r=this.#t.failed;r&&(this.#s=Ne(()=>{r(this.#e,()=>t,()=>()=>{})}))}#y(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#a=Ne(()=>t(this.#e)),ot(()=>{var r=this.#l=document.createDocumentFragment(),n=Pe();r.append(n),this.#n=this.#m(()=>Ne(()=>this.#i(n))),this.#u===0&&(this.#e.before(r),this.#l=null,At(this.#a,()=>{this.#a=null}),this.#b(J))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#d=0,this.#n=Ne(()=>{this.#i(this.#e)}),this.#u>0){var t=this.#l=document.createDocumentFragment();Tn(this.#n,t);const r=this.#t.pending;this.#a=Ne(()=>r(this.#e))}else this.#b(J)}catch(r){this.error(r)}}#b(t){this.is_pending=!1,t.transfer_effects(this.#h,this.#v)}defer_effect(t){_i(t,this.#h,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var r=B,n=R,i=Ee;st(this.#o),Be(this.#o),Bt(this.#o.ctx);try{return dt.ensure(),t()}catch(o){return mi(o),null}finally{st(r),Be(n),Bt(i)}}#_(t,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#_(t,r);return}this.#u+=t,this.#u===0&&(this.#b(r),this.#a&&At(this.#a,()=>{this.#a=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t,r){this.#_(t,r),this.#d+=t,!(!this.#c||this.#f)&&(this.#f=!0,ot(()=>{this.#f=!1,this.#c&&Wt(this.#c,this.#d)}))}get_effect_pending(){return this.#p(),f(this.#c)}error(t){var r=this.#t.onerror;let n=this.#t.failed;if(!r&&!n)throw t;this.#n&&(be(this.#n),this.#n=null),this.#a&&(be(this.#a),this.#a=null),this.#s&&(be(this.#s),this.#s=null),j&&(Se(this.#r),Ge(),Se(ar()));var i=!1,o=!1;const l=()=>{if(i){Ca();return}i=!0,o&&ya(),this.#s!==null&&At(this.#s,()=>{this.#s=null}),this.#m(()=>{this.#w()})},s=a=>{try{o=!0,r?.(a,l),o=!1}catch(u){yt(u,this.#o&&this.#o.parent)}n&&(this.#s=this.#m(()=>{try{return Ne(()=>{var u=B;u.b=this,u.f|=ln,n(this.#e,()=>a,()=>l)})}catch(u){return yt(u,this.#o.parent),null}}))};ot(()=>{var a;try{a=this.transform_error(t)}catch(u){yt(u,this.#o&&this.#o.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(s,u=>yt(u,this.#o&&this.#o.parent)):s(a)})}}function Mi(e,t,r,n){const i=qr;var o=e.filter(d=>!d.settled);if(r.length===0&&o.length===0){n(t.map(i));return}var l=B,s=Ha(),a=o.length===1?o[0].promise:o.length>1?Promise.all(o.map(d=>d.promise)):null;function u(d){s();try{n(d)}catch(v){(l.f&je)===0&&yt(v,l)}Ur()}if(r.length===0){a.then(()=>u(t.map(i)));return}var c=Ii();function h(){Promise.all(r.map(d=>Oa(d))).then(d=>u([...t.map(i),...d])).catch(d=>yt(d,l)).finally(()=>c())}a?a.then(()=>{s(),h(),Ur()}):h()}function Ha(){var e=B,t=R,r=Ee,n=J;return function(o=!0){st(e),Be(t),Bt(r),o&&(e.f&je)===0&&(n?.activate(),n?.apply())}}function Ur(e=!0){st(null),Be(null),Bt(null),e&&J?.deactivate()}function Ii(){var e=B,t=e.b,r=J,n=t.is_rendered();return t.update_pending_count(1,r),r.increment(n,e),(i=!1)=>{t.update_pending_count(-1,r),r.decrement(n,e,i)}}function qr(e){var t=pe|xe,r=R!==null&&(R.f&pe)!==0?R:null;return B!==null&&(B.f|=zt),{ctx:Ee,deps:null,effects:null,equals:vi,f:t,fn:e,reactions:null,rv:0,v:he,wv:0,parent:r??B,ac:null}}function Oa(e,t,r){let n=B;n===null&&da();var i=void 0,o=$t(he),l=!R,s=new Map;return Ka(()=>{var a=B,u=ci();i=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).finally(Ur)}catch(v){u.reject(v),Ur()}var c=J;if(l){if((a.f&mt)!==0)var h=Ii();if(n.b.is_rendered())s.get(c)?.reject(ct),s.delete(c);else{for(const v of s.values())v.reject(ct);s.clear()}s.set(c,u)}const d=(v,g=void 0)=>{if(h){var y=g===ct;h(y)}if(!(g===ct||(a.f&je)!==0)){if(c.activate(),g)o.f|=_t,Wt(o,g);else{(o.f&_t)!==0&&(o.f^=_t),Wt(o,v);for(const[p,_]of s){if(s.delete(p),p===c)break;_.reject(ct)}}c.deactivate()}};u.promise.then(d,v=>d(null,v||"unknown"))}),Hr(()=>{for(const a of s.values())a.reject(ct)}),new Promise(a=>{function u(c){function h(){c===i?a(o):u(i)}c.then(h,h)}u(i)})}function O(e){const t=qr(e);return Gi(t),t}function Li(e){const t=qr(e);return t.equals=pi,t}function Va(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)be(t[r])}}function ja(e){for(var t=e.parent;t!==null;){if((t.f&pe)===0)return(t.f&je)===0?t:null;t=t.parent}return null}function kn(e){var t,r=B;st(ja(e));try{e.f&=~Nt,Va(e),t=eo(e)}finally{st(r)}return t}function zi(e){var t=e.v,r=kn(e);if(!e.equals(r)&&(e.wv=Xi(),(!J?.is_fork||e.deps===null)&&(e.v=r,J?.capture(e,t,!0),e.deps===null))){ue(e,ce);return}Mt||(Ke!==null?(In()||J?.is_fork)&&Ke.set(e,r):hn(e))}function Pa(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(ct),t.teardown=ze,t.ac=null,fr(t,0),zn(t))}function Ni(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Yt(t)}let yn=new Set;const Ct=new Map;let Ti=!1;function $t(e,t){var r={f:0,v:e,reactions:null,equals:vi,rv:0,wv:0};return r}function Q(e,t){const r=$t(e);return Gi(r),r}function xn(e,t=!1,r=!0){const n=$t(e);return t||(n.equals=pi),n}function V(e,t,r=!1){R!==null&&(!Qe||(R.f&di)!==0)&&gi()&&(R.f&(pe|gt|dn|di))!==0&&(Fe===null||!Pt.call(Fe,e))&&ka();let n=r?St(t):t;return Wt(e,n,Ar)}function Wt(e,t,r=null){if(!e.equals(t)){var n=e.v;Mt?Ct.set(e,t):Ct.set(e,n),e.v=t;var i=dt.ensure();if(i.capture(e,n),(e.f&pe)!==0){const o=e;(e.f&xe)!==0&&kn(o),Ke===null&&hn(o)}e.wv=Xi(),$i(e,xe,r),B!==null&&(B.f&ce)!==0&&(B.f&(Ye|bt))===0&&(Ze===null?es([e]):Ze.push(e)),!i.is_fork&&yn.size>0&&!Ti&&Ra()}return t}function Ra(){Ti=!1;for(const e of yn)(e.f&ce)!==0&&ue(e,nt),dr(e)&&Yt(e);yn.clear()}function ur(e){V(e,e.v+1)}function $i(e,t,r){var n=e.reactions;if(n!==null)for(var i=n.length,o=0;o<i;o++){var l=n[o],s=l.f,a=(s&xe)===0;if(a&&ue(l,t),(s&pe)!==0){var u=l;Ke?.delete(u),(s&Nt)===0&&(s&Ve&&(l.f|=Nt),$i(u,nt,r))}else if(a){var c=l;(s&gt)!==0&&ft!==null&&ft.add(c),r!==null?r.push(c):_n(c)}}}function St(e){if(typeof e!="object"||e===null||kt in e)return e;const t=si(e);if(t!==aa&&t!==sa)return e;var r=new Map,n=an(e),i=Q(0),o=qt,l=s=>{if(qt===o)return s();var a=R,u=qt;Be(null),Ki(o);var c=s();return Be(a),Ki(u),c};return n&&r.set("length",Q(e.length)),new Proxy(e,{defineProperty(s,a,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&wa();var c=r.get(a);return c===void 0?l(()=>{var h=Q(u.value);return r.set(a,h),h}):V(c,u.value,!0),!0},deleteProperty(s,a){var u=r.get(a);if(u===void 0){if(a in s){const c=l(()=>Q(he));r.set(a,c),ur(i)}}else V(u,he),ur(i);return!0},get(s,a,u){if(a===kt)return e;var c=r.get(a),h=a in s;if(c===void 0&&(!h||ut(s,a)?.writable)&&(c=l(()=>{var v=St(h?s[a]:he),g=Q(v);return g}),r.set(a,c)),c!==void 0){var d=f(c);return d===he?void 0:d}return Reflect.get(s,a,u)},getOwnPropertyDescriptor(s,a){var u=Reflect.getOwnPropertyDescriptor(s,a);if(u&&"value"in u){var c=r.get(a);c&&(u.value=f(c))}else if(u===void 0){var h=r.get(a),d=h?.v;if(h!==void 0&&d!==he)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return u},has(s,a){if(a===kt)return!0;var u=r.get(a),c=u!==void 0&&u.v!==he||Reflect.has(s,a);if(u!==void 0||B!==null&&(!c||ut(s,a)?.writable)){u===void 0&&(u=l(()=>{var d=c?St(s[a]):he,v=Q(d);return v}),r.set(a,u));var h=f(u);if(h===he)return!1}return c},set(s,a,u,c){var h=r.get(a),d=a in s;if(n&&a==="length")for(var v=u;v<h.v;v+=1){var g=r.get(v+"");g!==void 0?V(g,he):v in s&&(g=l(()=>Q(he)),r.set(v+"",g))}if(h===void 0)(!d||ut(s,a)?.writable)&&(h=l(()=>Q(void 0)),V(h,St(u)),r.set(a,h));else{d=h.v!==he;var y=l(()=>St(u));V(h,y)}var p=Reflect.getOwnPropertyDescriptor(s,a);if(p?.set&&p.set.call(c,u),!d){if(n&&typeof a=="string"){var _=r.get("length"),M=Number(a);Number.isInteger(M)&&M>=_.v&&V(_,M+1)}ur(i)}return!0},ownKeys(s){f(i);var a=Reflect.ownKeys(s).filter(h=>{var d=r.get(h);return d===void 0||d.v!==he});for(var[u,c]of r)c.v!==he&&!(u in s)&&a.push(u);return a},setPrototypeOf(){_a()}})}function Di(e){try{if(e!==null&&typeof e=="object"&&kt in e)return e[kt]}catch{}return e}function Ba(e,t){return Object.is(Di(e),Di(t))}var Ai,Ui,qi,Hi;function Cn(){if(Ai===void 0){Ai=window,Ui=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;qi=ut(t,"firstChild").get,Hi=ut(t,"nextSibling").get,li(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),li(r)&&(r.__t=void 0)}}function Pe(e=""){return document.createTextNode(e)}function Re(e){return qi.call(e)}function at(e){return Hi.call(e)}function I(e,t){if(!j)return Re(e);var r=Re(F);if(r===null)r=F.appendChild(Pe());else if(t&&r.nodeType!==Tr){var n=Pe();return r?.before(n),Se(n),n}return t&&En(r),Se(r),r}function Et(e,t=!1){if(!j){var r=Re(e);return r instanceof Comment&&r.data===""?at(r):r}if(t){if(F?.nodeType!==Tr){var n=Pe();return F?.before(n),Se(n),n}En(F)}return F}function le(e,t=1,r=!1){let n=j?F:e;for(var i;t--;)i=n,n=at(n);if(!j)return n;if(r){if(n?.nodeType!==Tr){var o=Pe();return n===null?i?.after(o):n.before(o),Se(o),o}En(n)}return Se(n),n}function Oi(e){e.textContent=""}function Vi(){return!1}function Sn(e,t,r){return document.createElementNS(ai,e,void 0)}function En(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Tr;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Fa(e,t){if(t){const r=document.body;e.autofocus=!0,ot(()=>{document.activeElement===r&&e.focus()})}}let ji=!1;function Za(){ji||(ji=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Mn(e){var t=R,r=B;Be(null),st(null);try{return e()}finally{Be(t),st(r)}}function Wa(e){B===null&&(R===null&&pa(),ha()),Mt&&va()}function Ya(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Xe(e,t){var r=B;r!==null&&(r.f&De)!==0&&(e|=De);var n={ctx:Ee,deps:null,nodes:null,f:e|xe|Ve,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null},i=n;if((e&Rt)!==0)Zt!==null?Zt.push(n):dt.ensure().schedule(n);else if(t!==null){try{Yt(n)}catch(l){throw be(n),l}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&zt)===0&&(i=i.first,(e&gt)!==0&&(e&wt)!==0&&i!==null&&(i.f|=wt))}if(i!==null&&(i.parent=r,r!==null&&Ya(i,r),R!==null&&(R.f&pe)!==0&&(e&bt)===0)){var o=R;(o.effects??=[]).push(i)}return n}function In(){return R!==null&&!Qe}function Hr(e){const t=Xe(zr,null);return ue(t,ce),t.teardown=e,t}function Dt(e){Wa();var t=B.f,r=!R&&(t&Ye)!==0&&(t&mt)===0;if(r){var n=Ee;(n.e??=[]).push(e)}else return Pi(e)}function Pi(e){return Xe(Rt|ua,e)}function Ga(e){dt.ensure();const t=Xe(bt|zt,e);return()=>{be(t)}}function Ja(e){dt.ensure();const t=Xe(bt|zt,e);return(r={})=>new Promise(n=>{r.outro?At(t,()=>{be(t),n(void 0)}):(be(t),n(void 0))})}function Or(e){return Xe(Rt,e)}function Ka(e){return Xe(dn|zt,e)}function Ln(e,t=0){return Xe(zr|t,e)}function ge(e,t=[],r=[],n=[]){Mi(n,t,r,i=>{Xe(zr,()=>e(...i.map(f)))})}function cr(e,t=0){var r=Xe(gt|t,e);return r}function Ri(e,t=0){var r=Xe(sn|t,e);return r}function Ne(e){return Xe(Ye|zt,e)}function Bi(e){var t=e.teardown;if(t!==null){const r=Mt,n=R;Yi(!0),Be(null);try{t.call(null)}finally{Yi(r),Be(n)}}}function zn(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Mn(()=>{i.abort(ct)});var n=r.next;(r.f&bt)!==0?r.parent=null:be(r,t),r=n}}function Xa(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Ye)===0&&be(t),t=r}}function be(e,t=!0){var r=!1;(t||(e.f&la)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Qa(e.nodes.start,e.nodes.end),r=!0),ue(e,un),zn(e,t&&!r),fr(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const o of n)o.stop();Bi(e),e.f^=un,e.f|=je;var i=e.parent;i!==null&&i.first!==null&&Fi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Qa(e,t){for(;e!==null;){var r=e===t?null:at(e);e.remove(),e=r}}function Fi(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function At(e,t,r=!0){var n=[];Zi(e,n,!0);var i=()=>{r&&be(e),t&&t()},o=n.length;if(o>0){var l=()=>--o||i();for(var s of n)s.out(l)}else i()}function Zi(e,t,r){if((e.f&De)===0){e.f^=De;var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)(s.is_global||r)&&t.push(s);for(var i=e.first;i!==null;){var o=i.next,l=(i.f&wt)!==0||(i.f&Ye)!==0&&(e.f&gt)!==0;Zi(i,t,l?r:!1),i=o}}}function Nn(e){Wi(e,!0)}function Wi(e,t){if((e.f&De)!==0){e.f^=De,(e.f&ce)===0&&(ue(e,xe),dt.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&wt)!==0||(r.f&Ye)!==0;Wi(r,i?t:!1),r=n}var o=e.nodes&&e.nodes.t;if(o!==null)for(const l of o)(l.is_global||t)&&l.in()}}function Tn(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:at(r);t.append(r),r=i}}let Vr=!1,Mt=!1;function Yi(e){Mt=e}let R=null,Qe=!1;function Be(e){R=e}let B=null;function st(e){B=e}let Fe=null;function Gi(e){R!==null&&(Fe===null?Fe=[e]:Fe.push(e))}let Te=null,Ue=0,Ze=null;function es(e){Ze=e}let Ji=1,Ut=0,qt=Ut;function Ki(e){qt=e}function Xi(){return++Ji}function dr(e){var t=e.f;if((t&xe)!==0)return!0;if(t&pe&&(e.f&=~Nt),(t&nt)!==0){for(var r=e.deps,n=r.length,i=0;i<n;i++){var o=r[i];if(dr(o)&&zi(o),o.wv>e.wv)return!0}(t&Ve)!==0&&Ke===null&&ue(e,ce)}return!1}function Qi(e,t,r=!0){var n=e.reactions;if(n!==null&&!(Fe!==null&&Pt.call(Fe,e)))for(var i=0;i<n.length;i++){var o=n[i];(o.f&pe)!==0?Qi(o,t,!1):t===o&&(r?ue(o,xe):(o.f&ce)!==0&&ue(o,nt),_n(o))}}function eo(e){var t=Te,r=Ue,n=Ze,i=R,o=Fe,l=Ee,s=Qe,a=qt,u=e.f;Te=null,Ue=0,Ze=null,R=(u&(Ye|bt))===0?e:null,Fe=null,Bt(e.ctx),Qe=!1,qt=++Ut,e.ac!==null&&(Mn(()=>{e.ac.abort(ct)}),e.ac=null);try{e.f|=cn;var c=e.fn,h=c();e.f|=mt;var d=e.deps,v=J?.is_fork;if(Te!==null){var g;if(v||fr(e,Ue),d!==null&&Ue>0)for(d.length=Ue+Te.length,g=0;g<Te.length;g++)d[Ue+g]=Te[g];else e.deps=d=Te;if(In()&&(e.f&Ve)!==0)for(g=Ue;g<d.length;g++)(d[g].reactions??=[]).push(e)}else!v&&d!==null&&Ue<d.length&&(fr(e,Ue),d.length=Ue);if(gi()&&Ze!==null&&!Qe&&d!==null&&(e.f&(pe|nt|xe))===0)for(g=0;g<Ze.length;g++)Qi(Ze[g],e);if(i!==null&&i!==e){if(Ut++,i.deps!==null)for(let y=0;y<r;y+=1)i.deps[y].rv=Ut;if(t!==null)for(const y of t)y.rv=Ut;Ze!==null&&(n===null?n=Ze:n.push(...Ze))}return(e.f&_t)!==0&&(e.f^=_t),h}catch(y){return mi(y)}finally{e.f^=cn,Te=t,Ue=r,Ze=n,R=i,Fe=o,Bt(l),Qe=s,qt=a}}function ts(e,t){let r=t.reactions;if(r!==null){var n=ia.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&(t.f&pe)!==0&&(Te===null||!Pt.call(Te,t))){var o=t;(o.f&Ve)!==0&&(o.f^=Ve,o.f&=~Nt),hn(o),Pa(o),fr(o,0)}}function fr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)ts(e,r[n])}function Yt(e){var t=e.f;if((t&je)===0){ue(e,ce);var r=B,n=Vr;B=e,Vr=!0;try{(t&(gt|sn))!==0?Xa(e):zn(e),Bi(e);var i=eo(e);e.teardown=typeof i=="function"?i:null,e.wv=Ji;var o;na&&Sa&&(e.f&xe)!==0&&e.deps}finally{Vr=n,B=r}}}function f(e){var t=e.f,r=(t&pe)!==0;if(R!==null&&!Qe){var n=B!==null&&(B.f&je)!==0;if(!n&&(Fe===null||!Pt.call(Fe,e))){var i=R.deps;if((R.f&cn)!==0)e.rv<Ut&&(e.rv=Ut,Te===null&&i!==null&&i[Ue]===e?Ue++:Te===null?Te=[e]:Te.push(e));else{(R.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[R]:Pt.call(o,R)||o.push(R)}}}if(Mt&&Ct.has(e))return Ct.get(e);if(r){var l=e;if(Mt){var s=l.v;return((l.f&ce)===0&&l.reactions!==null||ro(l))&&(s=kn(l)),Ct.set(l,s),s}var a=(l.f&Ve)===0&&!Qe&&R!==null&&(Vr||(R.f&Ve)!==0),u=(l.f&mt)===0;dr(l)&&(a&&(l.f|=Ve),zi(l)),a&&!u&&(Ni(l),to(l))}if(Ke?.has(e))return Ke.get(e);if((e.f&_t)!==0)throw e.v;return e.v}function to(e){if(e.f|=Ve,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&pe)!==0&&(t.f&Ve)===0&&(Ni(t),to(t))}function ro(e){if(e.v===he)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ct.has(t)||(t.f&pe)!==0&&ro(t))return!0;return!1}function Gt(e){var t=Qe;try{return Qe=!0,e()}finally{Qe=t}}const vr=Symbol("events"),no=new Set,$n=new Set;function io(e,t,r,n={}){function i(o){if(n.capture||Dn.call(t,o),!o.cancelBubble)return Mn(()=>r?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ot(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function Me(e,t,r,n,i){var o={capture:n,passive:i},l=io(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Hr(()=>{t.removeEventListener(e,l,o)})}function oe(e,t,r){(t[vr]??={})[e]=r}function Ht(e){for(var t=0;t<e.length;t++)no.add(e[t]);for(var r of $n)r(e)}let oo=null;function Dn(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],o=i[0]||e.target;oo=e;var l=0,s=oo===e&&e[vr];if(s){var a=i.indexOf(s);if(a!==-1&&(t===document||t===window)){e[vr]=t;return}var u=i.indexOf(t);if(u===-1)return;a<=u&&(l=a)}if(o=i[l]||e.target,o!==t){rr(e,"currentTarget",{configurable:!0,get(){return o||r}});var c=R,h=B;Be(null),st(null);try{for(var d,v=[];o!==null;){var g=o.assignedSlot||o.parentNode||o.host||null;try{var y=o[vr]?.[n];y!=null&&(!o.disabled||e.target===o)&&y.call(o,e)}catch(p){d?v.push(p):d=p}if(e.cancelBubble||g===t||g===null)break;o=g}if(d){for(let p of v)queueMicrotask(()=>{throw p});throw d}}finally{e[vr]=t,delete e.currentTarget,Be(c),st(h)}}}const rs=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ns(e){return rs?.createHTML(e)??e}function ao(e){var t=Sn("template");return t.innerHTML=ns(e.replaceAll("<!>","<!---->")),t.content}function vt(e,t){var r=B;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function K(e,t){var r=(t&ii)!==0,n=(t&ta)!==0,i,o=!e.startsWith("<!>");return()=>{if(j)return vt(F,null),F;i===void 0&&(i=ao(o?e:"<!>"+e),r||(i=Re(i)));var l=n||Ui?document.importNode(i,!0):i.cloneNode(!0);if(r){var s=Re(l),a=l.lastChild;vt(s,a)}else vt(l,l);return l}}function is(e,t,r="svg"){var n=!e.startsWith("<!>"),i=(t&ii)!==0,o=`<${r}>${n?e:"<!>"+e}</${r}>`,l;return()=>{if(j)return vt(F,null),F;if(!l){var s=ao(o),a=Re(s);if(i)for(l=document.createDocumentFragment();Re(a);)l.appendChild(Re(a));else l=Re(a)}var u=l.cloneNode(!0);if(i){var c=Re(u),h=u.lastChild;vt(c,h)}else vt(u,u);return u}}function ae(e,t){return is(e,t,"svg")}function jr(){if(j)return vt(F,null),F;var e=document.createDocumentFragment(),t=document.createComment(""),r=Pe();return e.append(t,r),vt(t,r),e}function D(e,t){if(j){var r=B;((r.f&mt)===0||r.nodes.end===null)&&(r.nodes.end=F),or();return}e!==null&&e.before(t)}function os(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const as=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function ss(e){return as.includes(e)}const ls={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 us(e){return e=e.toLowerCase(),ls[e]??e}const cs=["touchstart","touchmove"];function ds(e){return cs.includes(e)}function Jt(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=`${r}`)}function so(e,t){return lo(e,t)}function fs(e,t){Cn(),t.intro=t.intro??!1;const r=t.target,n=j,i=F;try{for(var o=Re(r);o&&(o.nodeType!==ir||o.data!==rn);)o=at(o);if(!o)throw jt;Ae(!0),Se(o);const l=lo(e,{...t,anchor:o});return Ae(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
+ `).some(s=>s.startsWith("https://svelte.dev/e/")))throw l;return l!==jt&&console.warn("Failed to hydrate: ",l),t.recover===!1&&ba(),Cn(),Oi(r),Ae(!1),so(e,t)}finally{Ae(n),Se(i)}}const Pr=new Map;function lo(e,{target:t,anchor:r,props:n={},events:i,context:o,intro:l=!0,transformError:s}){Cn();var a=void 0,u=Ja(()=>{var c=r??t.appendChild(Pe());Ua(c,{pending:()=>{}},v=>{re({});var g=Ee;if(o&&(g.c=o),i&&(n.$$events=i),j&&vt(v,null),a=e(v,n)||{},j&&(B.nodes.end=F,F===null||F.nodeType!==ir||F.data!==on))throw $r(),jt;ne()},s);var h=new Set,d=v=>{for(var g=0;g<v.length;g++){var y=v[g];if(!h.has(y)){h.add(y);var p=ds(y);for(const $ of[t,document]){var _=Pr.get($);_===void 0&&(_=new Map,Pr.set($,_));var M=_.get(y);M===void 0?($.addEventListener(y,Dn,{passive:p}),_.set(y,1)):_.set(y,M+1)}}}};return d(Ir(no)),$n.add(d),()=>{for(var v of h)for(const p of[t,document]){var g=Pr.get(p),y=g.get(v);--y==0?(p.removeEventListener(v,Dn),g.delete(v),g.size===0&&Pr.delete(p)):g.set(v,y)}$n.delete(d),c!==r&&c.parentNode?.removeChild(c)}});return An.set(a,u),a}let An=new WeakMap;function vs(e,t){const r=An.get(e);return r?(An.delete(e),r(t)):Promise.resolve()}class Un{anchor;#e=new Map;#r=new Map;#t=new Map;#i=new Set;#o=!0;constructor(t,r=!0){this.anchor=t,this.#o=r}#n=t=>{if(this.#e.has(t)){var r=this.#e.get(t),n=this.#r.get(r);if(n)Nn(n),this.#i.delete(r);else{var i=this.#t.get(r);i&&(this.#r.set(r,i.effect),this.#t.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[o,l]of this.#e){if(this.#e.delete(o),o===t)break;const s=this.#t.get(l);s&&(be(s.effect),this.#t.delete(l))}for(const[o,l]of this.#r){if(o===r||this.#i.has(o))continue;const s=()=>{if(Array.from(this.#e.values()).includes(o)){var u=document.createDocumentFragment();Tn(l,u),u.append(Pe()),this.#t.set(o,{effect:l,fragment:u})}else be(l);this.#i.delete(o),this.#r.delete(o)};this.#o||!n?(this.#i.add(o),At(l,s,!1)):s()}}};#a=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[n,i]of this.#t)r.includes(n)||(be(i.effect),this.#t.delete(n))};ensure(t,r){var n=J,i=Vi();if(r&&!this.#r.has(t)&&!this.#t.has(t))if(i){var o=document.createDocumentFragment(),l=Pe();o.append(l),this.#t.set(t,{effect:Ne(()=>r(l)),fragment:o})}else this.#r.set(t,Ne(()=>r(this.anchor)));if(this.#e.set(n,t),i){for(const[s,a]of this.#r)s===t?n.unskip_effect(a):n.skip_effect(a);for(const[s,a]of this.#t)s===t?n.unskip_effect(a.effect):n.skip_effect(a.effect);n.oncommit(this.#n),n.ondiscard(this.#a)}else j&&(this.anchor=F),this.#n(n)}}function hr(e,t,...r){var n=new Un(e);cr(()=>{const i=t()??null;n.ensure(i,i&&(o=>i(o,...r)))},wt)}function qn(e){Ee===null&&fi(),Dt(()=>{const t=Gt(e);if(typeof t=="function")return t})}function hs(e){Ee===null&&fi(),qn(()=>()=>Gt(e))}function ie(e,t,r=!1){var n;j&&(n=F,or());var i=new Un(e),o=r?wt:0;function l(s,a){if(j){var u=vn(n);if(s!==parseInt(u.substring(1))){var c=ar();Se(c),i.anchor=c,Ae(!1),i.ensure(s,a),Ae(!0);return}}i.ensure(s,a)}cr(()=>{var s=!1;t((a,u=0)=>{s=!0,l(u,a)}),s||l(-1,null)},o)}function ps(e,t){return t}function gs(e,t,r){for(var n=[],i=t.length,o,l=t.length,s=0;s<i;s++){let h=t[s];At(h,()=>{if(o){if(o.pending.delete(h),o.done.add(h),o.pending.size===0){var d=e.outrogroups;Hn(e,Ir(o.done)),d.delete(o),d.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var a=n.length===0&&r!==null;if(a){var u=r,c=u.parentNode;Oi(c),c.append(u),e.items.clear()}Hn(e,t,!a)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Hn(e,t,r=!0){var n;if(e.pending.size>0){n=new Set;for(const l of e.pending.values())for(const s of l)n.add(e.items.get(s).e)}for(var i=0;i<t.length;i++){var o=t[i];if(n?.has(o)){o.f|=it;const l=document.createDocumentFragment();Tn(o,l)}else be(t[i],r)}}var uo;function co(e,t,r,n,i,o=null){var l=e,s=new Map,a=(t&ni)!==0;if(a){var u=e;l=j?Se(Re(u)):u.appendChild(Pe())}j&&or();var c=null,h=Li(()=>{var $=r();return an($)?$:$==null?[]:Ir($)}),d,v=new Map,g=!0;function y($){(M.effect.f&je)===0&&(M.pending.delete($),M.fallback=c,bs(M,d,l,t,n),c!==null&&(d.length===0?(c.f&it)===0?Nn(c):(c.f^=it,gr(c,null,l)):At(c,()=>{c=null})))}function p($){M.pending.delete($)}var _=cr(()=>{d=f(h);var $=d.length;let N=!1;if(j){var z=vn(l)===nn;z!==($===0)&&(l=ar(),Se(l),Ae(!1),N=!0)}for(var b=new Set,k=J,A=Vi(),L=0;L<$;L+=1){j&&F.nodeType===ir&&F.data===on&&(l=F,N=!0,Ae(!1));var T=d[L],P=n(T,L),W=g?null:s.get(P);W?(W.v&&Wt(W.v,T),W.i&&Wt(W.i,L),A&&k.unskip_effect(W.e)):(W=ms(s,g?l:uo??=Pe(),T,P,L,i,t,r),g||(W.e.f|=it),s.set(P,W)),b.add(P)}if($===0&&o&&!c&&(g?c=Ne(()=>o(l)):(c=Ne(()=>o(uo??=Pe())),c.f|=it)),$>b.size&&fa(),j&&$>0&&Se(ar()),!g)if(v.set(k,b),A){for(const[me,de]of s)b.has(me)||k.skip_effect(de.e);k.oncommit(y),k.ondiscard(p)}else y(k);N&&Ae(!0),f(h)}),M={effect:_,items:s,pending:v,outrogroups:null,fallback:c};g=!1,j&&(l=F)}function pr(e){for(;e!==null&&(e.f&Ye)===0;)e=e.next;return e}function bs(e,t,r,n,i){var o=(n&Go)!==0,l=t.length,s=e.items,a=pr(e.effect.first),u,c=null,h,d=[],v=[],g,y,p,_;if(o)for(_=0;_<l;_+=1)g=t[_],y=i(g,_),p=s.get(y).e,(p.f&it)===0&&(p.nodes?.a?.measure(),(h??=new Set).add(p));for(_=0;_<l;_+=1){if(g=t[_],y=i(g,_),p=s.get(y).e,e.outrogroups!==null)for(const T of e.outrogroups)T.pending.delete(p),T.done.delete(p);if((p.f&De)!==0&&(Nn(p),o&&(p.nodes?.a?.unfix(),(h??=new Set).delete(p))),(p.f&it)!==0)if(p.f^=it,p===a)gr(p,null,r);else{var M=c?c.next:a;p===e.effect.last&&(e.effect.last=p.prev),p.prev&&(p.prev.next=p.next),p.next&&(p.next.prev=p.prev),It(e,c,p),It(e,p,M),gr(p,M,r),c=p,d=[],v=[],a=pr(c.next);continue}if(p!==a){if(u!==void 0&&u.has(p)){if(d.length<v.length){var $=v[0],N;c=$.prev;var z=d[0],b=d[d.length-1];for(N=0;N<d.length;N+=1)gr(d[N],$,r);for(N=0;N<v.length;N+=1)u.delete(v[N]);It(e,z.prev,b.next),It(e,c,z),It(e,b,$),a=$,c=b,_-=1,d=[],v=[]}else u.delete(p),gr(p,a,r),It(e,p.prev,p.next),It(e,p,c===null?e.effect.first:c.next),It(e,c,p),c=p;continue}for(d=[],v=[];a!==null&&a!==p;)(u??=new Set).add(a),v.push(a),a=pr(a.next);if(a===null)continue}(p.f&it)===0&&d.push(p),c=p,a=pr(p.next)}if(e.outrogroups!==null){for(const T of e.outrogroups)T.pending.size===0&&(Hn(e,Ir(T.done)),e.outrogroups?.delete(T));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||u!==void 0){var k=[];if(u!==void 0)for(p of u)(p.f&De)===0&&k.push(p);for(;a!==null;)(a.f&De)===0&&a!==e.fallback&&k.push(a),a=pr(a.next);var A=k.length;if(A>0){var L=(n&ni)!==0&&l===0?r:null;if(o){for(_=0;_<A;_+=1)k[_].nodes?.a?.measure();for(_=0;_<A;_+=1)k[_].nodes?.a?.fix()}gs(e,k,L)}}o&&ot(()=>{if(h!==void 0)for(p of h)p.nodes?.a?.apply()})}function ms(e,t,r,n,i,o,l,s){var a=(l&Wo)!==0?(l&Jo)===0?xn(r,!1,!1):$t(r):null,u=(l&Yo)!==0?$t(i):null;return{v:a,i:u,e:Ne(()=>(o(t,a??r,u??i,s),()=>{e.delete(n)}))}}function gr(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,o=t&&(t.f&it)===0?t.nodes.start:r;n!==null;){var l=at(n);if(o.before(n),n===i)return;n=l}}function It(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function ws(e,t,r){var n;j&&(n=F,or());var i=new Un(e);cr(()=>{var o=t()??null;if(j){var l=vn(n),s=l===rn,a=o!==null;if(s!==a){var u=ar();Se(u),i.anchor=u,Ae(!1),i.ensure(o,o&&(c=>r(c,o))),Ae(!0);return}}i.ensure(o,o&&(c=>r(c,o)))},wt)}function ht(e,t){Or(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=Sn("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function _s(e,t){var r=void 0,n;Ri(()=>{r!==(r=t())&&(n&&(be(n),n=null),r&&(n=Ne(()=>{Or(()=>r(e))})))})}function fo(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=fo(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ks(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=fo(e))&&(n&&(n+=" "),n+=t);return n}function ys(e){return typeof e=="object"?ks(e):e??""}const vo=[...`
3
+ \r\f \v\uFEFF`];function xs(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var i of Object.keys(r))if(r[i])n=n?n+" "+i:i;else if(n.length)for(var o=i.length,l=0;(l=n.indexOf(i,l))>=0;){var s=l+o;(l===0||vo.includes(n[l-1]))&&(s===n.length||vo.includes(n[s]))?n=(l===0?"":n.substring(0,l))+n.substring(s+1):l=s}}return n===""?null:n}function ho(e,t=!1){var r=t?" !important;":";",n="";for(var i of Object.keys(e)){var o=e[i];o!=null&&o!==""&&(n+=" "+i+": "+o+r)}return n}function On(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Cs(e,t){if(t){var r="",n,i;if(Array.isArray(t)?(n=t[0],i=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,l=0,s=!1,a=[];n&&a.push(...Object.keys(n).map(On)),i&&a.push(...Object.keys(i).map(On));var u=0,c=-1;const y=e.length;for(var h=0;h<y;h++){var d=e[h];if(s?d==="/"&&e[h-1]==="*"&&(s=!1):o?o===d&&(o=!1):d==="/"&&e[h+1]==="*"?s=!0:d==='"'||d==="'"?o=d:d==="("?l++:d===")"&&l--,!s&&o===!1&&l===0){if(d===":"&&c===-1)c=h;else if(d===";"||h===y-1){if(c!==-1){var v=On(e.substring(u,c).trim());if(!a.includes(v)){d!==";"&&h++;var g=e.substring(u,h).trim();r+=" "+g+";"}}u=h+1,c=-1}}}}return n&&(r+=ho(n)),i&&(r+=ho(i,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function _e(e,t,r,n,i,o){var l=e.__className;if(j||l!==r||l===void 0){var s=xs(r,n,o);(!j||s!==e.getAttribute("class"))&&(s==null?e.removeAttribute("class"):t?e.className=s:e.setAttribute("class",s)),e.__className=r}else if(o&&i!==o)for(var a in o){var u=!!o[a];(i==null||u!==!!i[a])&&e.classList.toggle(a,u)}return o}function Vn(e,t={},r,n){for(var i in r){var o=r[i];t[i]!==o&&(r[i]==null?e.style.removeProperty(i):e.style.setProperty(i,o,n))}}function po(e,t,r,n){var i=e.__style;if(j||i!==t){var o=Cs(t,n);(!j||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else n&&(Array.isArray(n)?(Vn(e,r?.[0],n[0]),Vn(e,r?.[1],n[1],"important")):Vn(e,r,n));return n}function jn(e,t,r=!1){if(e.multiple){if(t==null)return;if(!an(t))return xa();for(var n of e.options)n.selected=t.includes(go(n));return}for(n of e.options){var i=go(n);if(Ba(i,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function Ss(e){var t=new MutationObserver(()=>{jn(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Hr(()=>{t.disconnect()})}function go(e){return"__value"in e?e.__value:e.value}const Kt=Symbol("class"),br=Symbol("style"),bo=Symbol("is custom element"),mo=Symbol("is html"),Es=Nr?"link":"LINK",Ms=Nr?"input":"INPUT",Is=Nr?"option":"OPTION",Ls=Nr?"select":"SELECT";function zs(e){if(j){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;Z(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var i=e.checked;Z(e,"checked",null),e.checked=i}}};e.__on_r=r,ot(r),Za()}}function Ns(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function Z(e,t,r,n){var i=wo(e);j&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Es)||i[t]!==(i[t]=r)&&(t==="loading"&&(e[ca]=r),r==null?e.removeAttribute(t):typeof r!="string"&&ko(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ts(e,t,r,n,i=!1,o=!1){if(j&&i&&e.nodeName===Ms){var l=e,s=l.type==="checkbox"?"defaultChecked":"defaultValue";s in r||zs(l)}var a=wo(e),u=a[bo],c=!a[mo];let h=j&&u;h&&Ae(!1);var d=t||{},v=e.nodeName===Is;for(var g in t)g in r||(r[g]=null);r.class?r.class=ys(r.class):(n||r[Kt])&&(r.class=null),r[br]&&(r.style??=null);var y=ko(e);for(const b in r){let k=r[b];if(v&&b==="value"&&k==null){e.value=e.__value="",d[b]=k;continue}if(b==="class"){var p=e.namespaceURI==="http://www.w3.org/1999/xhtml";_e(e,p,k,n,t?.[Kt],r[Kt]),d[b]=k,d[Kt]=r[Kt];continue}if(b==="style"){po(e,k,t?.[br],r[br]),d[b]=k,d[br]=r[br];continue}var _=d[b];if(!(k===_&&!(k===void 0&&e.hasAttribute(b)))){d[b]=k;var M=b[0]+b[1];if(M!=="$$")if(M==="on"){const A={},L="$$"+b;let T=b.slice(2);var $=ss(T);if(os(T)&&(T=T.slice(0,-7),A.capture=!0),!$&&_){if(k!=null)continue;e.removeEventListener(T,d[L],A),d[L]=null}if($)oe(T,e,k),Ht([T]);else if(k!=null){let P=function(W){d[b].call(this,W)};d[L]=io(T,e,P,A)}}else if(b==="style")Z(e,b,k);else if(b==="autofocus")Fa(e,!!k);else if(!u&&(b==="__value"||b==="value"&&k!=null))e.value=e.__value=k;else if(b==="selected"&&v)Ns(e,k);else{var N=b;c||(N=us(N));var z=N==="defaultValue"||N==="defaultChecked";if(k==null&&!u&&!z)if(a[b]=null,N==="value"||N==="checked"){let A=e;const L=t===void 0;if(N==="value"){let T=A.defaultValue;A.removeAttribute(N),A.defaultValue=T,A.value=A.__value=L?T:null}else{let T=A.defaultChecked;A.removeAttribute(N),A.defaultChecked=T,A.checked=L?T:!1}}else e.removeAttribute(b);else z||y.includes(N)&&(u||typeof k!="string")?(e[N]=k,N in a&&(a[N]=he)):typeof k!="function"&&Z(e,N,k)}}}return h&&Ae(!0),d}function mr(e,t,r=[],n=[],i=[],o,l=!1,s=!1){Mi(i,r,n,a=>{var u=void 0,c={},h=e.nodeName===Ls,d=!1;if(Ri(()=>{var g=t(...a.map(f)),y=Ts(e,u,g,o,l,s);d&&h&&"value"in g&&jn(e,g.value);for(let _ of Object.getOwnPropertySymbols(c))g[_]||be(c[_]);for(let _ of Object.getOwnPropertySymbols(g)){var p=g[_];_.description===ra&&(!u||p!==u[_])&&(c[_]&&be(c[_]),c[_]=Ne(()=>_s(e,()=>p))),y[_]=p}u=y}),h){var v=e;Or(()=>{jn(v,u.value,!0),Ss(v)})}d=!0})}function wo(e){return e.__attributes??={[bo]:e.nodeName.includes("-"),[mo]:e.namespaceURI===ai}}var _o=new Map;function ko(e){var t=e.getAttribute("is")||e.nodeName,r=_o.get(t);if(r)return r;_o.set(t,r=[]);for(var n,i=e,o=Element.prototype;o!==i;){n=oa(i);for(var l in n)n[l].set&&r.push(l);i=si(i)}return r}function yo(e,t){return e===t||e?.[kt]===t}function et(e={},t,r,n){var i=Ee.r,o=B;return Or(()=>{var l,s;return Ln(()=>{l=s,s=n?.()||[],Gt(()=>{e!==r(...s)&&(t(e,...s),l&&yo(r(...l),e)&&t(null,...l))})}),()=>{let a=o;for(;a!==i&&a.parent!==null&&a.parent.f&un;)a=a.parent;const u=()=>{s&&yo(r(...s),e)&&t(null,...s)},c=a.teardown;a.teardown=()=>{u(),c?.()}}}),e}const $s={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},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 wr(e,t,r){return new Proxy({props:e,exclude:t},$s)}const Ds={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(nr(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n)return n[t]}},set(e,t,r){let n=e.props.length;for(;n--;){let i=e.props[n];nr(i)&&(i=i());const o=ut(i,t);if(o&&o.set)return o.set(r),!0}return!1},getOwnPropertyDescriptor(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(nr(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const i=ut(n,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===kt||t===fn)return!1;for(let r of e.props)if(nr(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){const t=[];for(let r of e.props)if(nr(r)&&(r=r()),!!r){for(const n in r)t.includes(n)||t.push(n);for(const n of Object.getOwnPropertySymbols(r))t.includes(n)||t.push(n)}return t}};function xo(...e){return new Proxy({props:e},Ds)}function w(e,t,r,n){var i=(r&Qo)!==0,o=(r&ea)!==0,l=n,s=!0,a=()=>(s&&(s=!1,l=o?Gt(n):n),l);let u;if(i){var c=kt in e||fn in e;u=ut(e,t)?.set??(c&&t in e?M=>e[t]=M:void 0)}var h,d=!1;i?[h,d]=Na(()=>e[t]):h=e[t],h===void 0&&n!==void 0&&(h=a(),u&&(ma(),u(h)));var v;if(v=()=>{var M=e[t];return M===void 0?a():(s=!0,M)},(r&Xo)===0)return v;if(u){var g=e.$$legacy;return(function(M,$){return arguments.length>0?((!$||g||d)&&u($?v():M),M):v()})}var y=!1,p=((r&Ko)!==0?qr:Li)(()=>(y=!1,v()));i&&f(p);var _=B;return(function(M,$){if(arguments.length>0){const N=$?f(p):i?St(M):M;return V(p,N),y=!0,l!==void 0&&(l=N),M}return Mt&&y||(_.f&je)!==0?p.v:f(p)})}function As(e){return new Us(e)}class Us{#e;#r;constructor(t){var r=new Map,n=(o,l)=>{var s=xn(l,!1,!1);return r.set(o,s),s};const i=new Proxy({...t.props||{},$$events:{}},{get(o,l){return f(r.get(l)??n(l,Reflect.get(o,l)))},has(o,l){return l===fn?!0:(f(r.get(l)??n(l,Reflect.get(o,l))),Reflect.has(o,l))},set(o,l,s){return V(r.get(l)??n(l,s),s),Reflect.set(o,l,s)}});this.#r=(t.hydrate?fs:so)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&m(),this.#e=i.$$events;for(const o of Object.keys(this.#r))o==="$set"||o==="$destroy"||o==="$on"||rr(this,o,{get(){return this.#r[o]},set(l){this.#r[o]=l},enumerable:!0});this.#r.$set=o=>{Object.assign(i,o)},this.#r.$destroy=()=>{vs(this.#r)}}$set(t){this.#r.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];const n=(...i)=>r.call(this,...i);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(i=>i!==n)}}$destroy(){this.#r.$destroy()}}let Co;typeof HTMLElement=="function"&&(Co=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&(this.$$shadowRoot=this.attachShadow(r))}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const o=Sn("slot");n!=="default"&&(o.name=n),D(i,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=qs(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Rr(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=As({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Ga(()=>{Ln(()=>{this.$$r=!0;for(const n of Lr(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Rr(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const o=this.$$c.$on(n,i);this.$$l_u.set(i,o)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Rr(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 Lr(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Rr(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){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(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function qs(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function se(e,t,r,n,i,o){let l=class extends Co{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Lr(t).map(s=>(t[s].attribute||s).toLowerCase())}};return Lr(t).forEach(s=>{rr(l.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(a){a=Rr(s,a,t),this.$$d[s]=a;var u=this.$$c;if(u){var c=ut(u,s)?.get;c?u[s]=a:u.$set({[s]:a})}}})}),n.forEach(s=>{rr(l.prototype,s,{get(){return this.$$c?.[s]}})}),e.element=l,l}var Hs=K("<a><!></a>"),Os=K("<button><!></button>");const Vs={hash:"svelte-1klcfz0",code:`
4
4
  /*! purgecss start ignore */:root,
5
5
  :host {
6
6
  /* global button */--ai-button-radius: var(--ai-radius-round);--ai-button-padding-x: 2rem;--ai-button-padding-y: 0.75rem;--ai-button-height: 2.5rem;--ai-button-box-shadow: inset 0 0 0 1px;
@@ -47,10 +47,20 @@
47
47
  ) {box-shadow:var(--ai-button-box-shadow) var(--ai-color-neutral-200);color:var(--ai-color-neutral-600);}.ai-button--unstyled.svelte-1klcfz0:is(.disabled:where(.svelte-1klcfz0), [disabled]:where(.svelte-1klcfz0), [aria-disabled='true']:where(.svelte-1klcfz0)) {background:none;color:inherit;opacity:0.75;}
48
48
 
49
49
  /* No shadow modifier */.ai-button--no-shadow.svelte-1klcfz0 {box-shadow:none !important;}.ai-button--no-shadow.svelte-1klcfz0:is(:where(.svelte-1klcfz0):hover, :where(.svelte-1klcfz0):focus) {box-shadow:none !important;}
50
- /*! purgecss end ignore */`};function ba(e,t){te(t,!0),St(e,Hs);let r=m(t,"variant",7,"primary"),n=m(t,"theme",7,"default"),i=m(t,"shape",7,"round"),a=m(t,"href",7,void 0),l=m(t,"disabled",7,!1),s=m(t,"onclick",7),o=m(t,"size",7,"medium"),u=m(t,"type",7,"button"),c=m(t,"hasBoxShadow",7,!0),h=m(t,"class",7,""),d=m(t,"children",7),f=pr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","shape","href","disabled","onclick","size","type","hasBoxShadow","class","children"]);const g=H(()=>()=>["usa-button","ai-button",o()==="small"?"ai-button--small":"",n()==="inverted"&&r()==="primary"?"ai-button--inverted":"",n()==="inverted"&&r()==="secondary"?"ai-button--outline-inverted":"",r()==="primary"?"usa-button--primary":"",r()==="secondary"?"usa-button--outline ai-button--outline":"",r()==="unstyled"?"ai-button--unstyled":"",i()==="square"?"ai-button--square":"",c()?"":"ai-button--no-shadow"].filter(Boolean).join(" ")),x=H(()=>()=>`${v(g)()} ${h()}`.trim());var p={get variant(){return r()},set variant(L="primary"){r(L),b()},get theme(){return n()},set theme(L="default"){n(L),b()},get shape(){return i()},set shape(L="round"){i(L),b()},get href(){return a()},set href(L=void 0){a(L),b()},get disabled(){return l()},set disabled(L=!1){l(L),b()},get onclick(){return s()},set onclick(L){s(L),b()},get size(){return o()},set size(L="medium"){o(L),b()},get type(){return u()},set type(L="button"){u(L),b()},get hasBoxShadow(){return c()},set hasBoxShadow(L=!0){c(L),b()},get class(){return h()},set class(L=""){h(L),b()},get children(){return d()},set children(L){d(L),b()}},_=qr(),S=Tt(_);{var I=L=>{var w=As();hr(w,O=>({class:O,href:a(),onclick:s(),...f,[Wt]:{disabled:l()}}),[()=>v(x)()],void 0,void 0,"svelte-1klcfz0");var E=M(w);Vr(E,()=>d()??$e),C(w),T(L,w)},N=L=>{var w=Us();hr(w,O=>({class:O,type:u(),disabled:l(),onclick:s(),...f}),[()=>v(x)()],void 0,void 0,"svelte-1klcfz0");var E=M(w);Vr(E,()=>d()??$e),C(w),T(L,w)};ae(S,L=>{a()?L(I):L(N,-1)})}return T(e,_),re(p)}oe(ba,{variant:{},theme:{},shape:{},href:{},disabled:{},onclick:{},size:{},type:{},hasBoxShadow:{},class:{},children:{}},[],[],{mode:"open"});function ma(e,t){te(t,!0);let r=m(t,"variant",7,"primary"),n=m(t,"theme",7,"default"),i=m(t,"href",7,void 0),a=m(t,"disabled",7,!1),l=m(t,"size",7,"medium"),s=m(t,"type",7,"button"),o=m(t,"onclick",7),u=m(t,"class",7,""),c=m(t,"children",7),h=pr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","href","disabled","size","type","onclick","class","children"]);var d={get variant(){return r()},set variant(f="primary"){r(f),b()},get theme(){return n()},set theme(f="default"){n(f),b()},get href(){return i()},set href(f=void 0){i(f),b()},get disabled(){return a()},set disabled(f=!1){a(f),b()},get size(){return l()},set size(f="medium"){l(f),b()},get type(){return s()},set type(f="button"){s(f),b()},get onclick(){return o()},set onclick(f){o(f),b()},get class(){return u()},set class(f=""){u(f),b()},get children(){return c()},set children(f){c(f),b()}};return ba(e,pa({get variant(){return r()},get theme(){return n()},get href(){return i()},get disabled(){return a()},get size(){return l()},get type(){return s()},get onclick(){return o()},get children(){return c()},get class(){return u()}},()=>h)),re(d)}customElements.define("graymatter-button",oe(ma,{variant:{attribute:"variant",reflect:!0,type:"String"},theme:{attribute:"theme",reflect:!0,type:"String"},href:{attribute:"href",reflect:!0,type:"String"},disabled:{attribute:"disabled",reflect:!0,type:"Boolean"},size:{attribute:"size",reflect:!0,type:"String"},type:{attribute:"type",reflect:!0,type:"String"},onclick:{},class:{},children:{}},[],[],{mode:"open"}));const gr=typeof window<"u";function qs(e,t){if(gr&&typeof sessionStorage<"u"){const r=sessionStorage.getItem(e);if(r!==null)try{return JSON.parse(r)}catch(n){return console.warn(`Failed to parse stored value for ${e}:`,n),t}}return t}function wa(e,t){const r=qs(e,t),n=vn(r);return gr&&n.subscribe(i=>{try{sessionStorage.setItem(e,JSON.stringify(i))}catch(a){console.warn(`Failed to persist ${e} to sessionStorage:`,a)}}),n}const Os=wa("subNav-selectedId",null),Ut=wa("subNav-selectedTitle","");function _a(e,t){if(gr&&typeof localStorage<"u"){const r=localStorage.getItem(e);if(r!==null)try{return JSON.parse(r)}catch(n){return console.warn(`Failed to parse stored value for ${e}:`,n),t}}return t}function ka(e,t){const r=_a(e,t),n=vn(r);return gr&&n.subscribe(i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(a){console.warn(`Failed to persist ${e} to localStorage:`,a)}}),n}const tt=ka("globalSideNav-isExpanded",!1),Ht=ka("globalSideNav-selectedItem",null),qn=So(Ht,e=>e==="discover"),ke={toggleExpanded:()=>{tt.update(e=>!e)},setExpanded:e=>{tt.set(e)},setSelectedItem:e=>{Ht.set(e),e==="discover"?tt.set(!1):gr&&window.innerWidth>640&&tt.set(!0)},handleLayoutTransition:e=>{if(e)tt.set(!1);else{const t=_a("globalSideNav-selectedItem",null);t&&t!=="discover"?(console.log("[NavigationStore] Opening navigation for desktop (non-discover page)"),tt.set(!0)):tt.set(!1)}}},jr=Object.freeze(Object.defineProperty({__proto__:null,isExpanded:tt,isMenuButtonDisabled:qn,navigationStore:ke,selectedItem:Ht,selectedSubNavItemId:Os,selectedSubNavItemTitle:Ut},Symbol.toStringTag,{value:"Module"}));var Vs=ne('<div part="global-header"><div class="header-content svelte-k73g25" part="header-content"><span class="header-text svelte-k73g25"> </span></div></div>');const Ps={hash:"svelte-k73g25",code:".global-header.svelte-k73g25 {opacity:0;transition:opacity var(--ai-duration-fast);}.global-header.visible.svelte-k73g25 {opacity:1;transition:opacity var(--ai-duration-fast);}.header-content.svelte-k73g25 {display:flex;align-items:center;gap:var(--ai-size-16);background:var(--ai-color-white);height:var(--ai-size-56);padding:0 5.8rem;}.header-content.svelte-k73g25 {display:flex;align-items:center;gap:var(--ai-size-16);align-self:stretch;}.header-text.svelte-k73g25 {color:var(--ai-color-black);font-size:var(--ai-size-16);font-weight:400;line-height:1.3;}"};function ya(e,t){te(t,!0),St(e,Ps);const r=()=>Ge(Ht,"$selectedItem",a),n=()=>Ge(tt,"$isExpanded",a),i=()=>Ge(Ut,"$selectedSubNavItemTitle",a),[a,l]=rr();let s=m(t,"customHeaderText",7,""),o=Q(!1);const u=H(()=>()=>r()&&r()!=="discover"&&!n()&&!v(o)),c=H(()=>()=>s()||i());Ft(()=>{if(typeof window>"u")return;const S=N=>{if(window.innerWidth<=640)return;let L=null;if(L=sessionStorage.getItem("subNav-topLevelTitle"),L)try{L=JSON.parse(L)}catch{}if(typeof L=="string"&&L.trim()!=="")Ut.set(L),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(L));else{const w=N;w.detail&&w.detail.title&&(Ut.set(w.detail.title),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(w.detail.title)))}},I=N=>{const L=N,{isMobile:w}=L.detail;w||(q(o,!0),setTimeout(()=>{q(o,!1)},300))};return window.addEventListener("sectionVisible",S),window.addEventListener("layoutTransition",I),()=>{window.removeEventListener("sectionVisible",S),window.removeEventListener("layoutTransition",I)}});var h={get customHeaderText(){return s()},set customHeaderText(S=""){s(S),b()}},d=Vs();let f;var g=M(d),x=M(g),p=M(x,!0);C(x),C(g),C(d),me((S,I)=>{f=Ce(d,1,"global-header svelte-k73g25",null,f,S),cr(p,I)},[()=>({visible:v(u)()}),()=>v(c)()]),T(e,d);var _=re(h);return l(),_}oe(ya,{customHeaderText:{}},[],[],{mode:"open"});function xa(e,t){te(t,!0);let r=m(t,"customHeaderText",7,"");var n={get customHeaderText(){return r()},set customHeaderText(i=""){r(i),b()}};return ya(e,{get customHeaderText(){return r()}}),re(n)}customElements.define("graymatter-desktop-header",oe(xa,{customHeaderText:{attribute:"custom-header-text",reflect:!0,type:"String"}},[],[],{mode:"open"}));var js=ie('<path fill-rule="evenodd" clip-rule="evenodd" d="M10.7883 3.2108C11.2367 2.13286 12.7637 2.13286 13.212 3.2108L15.294 8.21652L20.6981 8.64976C21.8619 8.74306 22.3337 10.1953 21.4471 10.9549L17.3298 14.4818L18.5877 19.7553C18.8585 20.8909 17.6232 21.7884 16.6268 21.1799L12.0002 18.354L7.37353 21.1799C6.37721 21.7884 5.14182 20.8909 5.4127 19.7553L6.67062 14.4818L2.55328 10.9549C1.66664 10.1953 2.13851 8.74306 3.30224 8.64976L8.70633 8.21652L10.7883 3.2108Z" fill="black"></path>'),Rs=ie('<path d="M11.4807 3.49883C11.6729 3.03685 12.3273 3.03685 12.5195 3.49883L14.6454 8.61028C14.7264 8.80504 14.9096 8.93811 15.1199 8.95497L20.6381 9.39736C21.1369 9.43735 21.3391 10.0598 20.9591 10.3853L16.7548 13.9867C16.5946 14.1239 16.5246 14.3392 16.5736 14.5444L17.858 19.9293C17.9741 20.416 17.4447 20.8007 17.0177 20.5398L12.2933 17.6542C12.1133 17.5443 11.8869 17.5443 11.7069 17.6542L6.98251 20.5398C6.55551 20.8007 6.02606 20.416 6.14215 19.9293L7.42664 14.5444C7.47558 14.3392 7.40562 14.1239 7.24543 13.9867L3.04111 10.3853C2.66112 10.0598 2.86335 9.43735 3.36209 9.39736L8.88034 8.95497C9.0906 8.93811 9.27375 8.80504 9.35476 8.61028L11.4807 3.49883Z" stroke="#585C63" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>'),Bs=ie('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function On(e,t){te(t,!0);let r=m(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(o=!1){r(o),b()}},i=Bs(),a=M(i);{var l=o=>{var u=js();T(o,u)},s=o=>{var u=Rs();T(o,u)};ae(a,o=>{r()?o(l):o(s,-1)})}return C(i),T(e,i),re(n)}oe(On,{isSelected:{}},[],[],{mode:"open"});var Fs=ie('<path fill-rule="evenodd" clip-rule="evenodd" d="M17.0508 3C19.6009 3.00039 21.6688 5.06802 21.6689 7.61816V13.2832C21.6688 15.8333 19.6009 17.901 17.0508 17.9014H13.2686L9.23926 21.7168C8.58852 22.3323 7.5166 21.8705 7.5166 20.9746V17.8984C5.01299 17.8445 3.00011 15.7997 3 13.2832V7.61816C3.00012 5.06785 5.06785 3.00012 7.61816 3H17.0508Z" fill="black"></path>'),Zs=ie('<path d="M17.0508 3C19.6009 3.00039 21.6688 5.06802 21.6689 7.61816V13.2832C21.6688 15.8333 19.6009 17.901 17.0508 17.9014H13.2686L9.23926 21.7168C8.58852 22.3323 7.5166 21.8705 7.5166 20.9746V17.8984C5.01299 17.8445 3.00011 15.7997 3 13.2832V7.61816C3.00012 5.06785 5.06785 3.00012 7.61816 3H17.0508ZM7.61816 4.45898C5.87327 4.4591 4.4591 5.87327 4.45898 7.61816V13.2832C4.4591 15.0281 5.87327 16.4432 7.61816 16.4434L8.24609 16.4424C8.64868 16.4424 8.97539 16.7693 8.97559 17.1719V19.958L12.4775 16.6426C12.6186 16.5091 12.7994 16.4443 12.9795 16.4443V16.4434H17.0508C18.7954 16.443 20.2099 15.0279 20.21 13.2832V7.61816C20.2098 5.87344 18.7954 4.45938 17.0508 4.45898H7.61816Z" fill="#585C63"></path>'),Ys=ie('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Vn(e,t){te(t,!0);let r=m(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(o=!1){r(o),b()}},i=Ys(),a=M(i);{var l=o=>{var u=Fs();T(o,u)},s=o=>{var u=Zs();T(o,u)};ae(a,o=>{r()?o(l):o(s,-1)})}return C(i),T(e,i),re(n)}oe(Vn,{isSelected:{}},[],[],{mode:"open"});var Ws=ie('<rect x="2.75" y="6.02856" width="3.7459" height="12.9262" fill="black" stroke="black" stroke-width="1.5"></rect><rect x="9.96338" y="9.96313" width="3.7459" height="8.9918" fill="black" stroke="black" stroke-width="1.5"></rect><rect x="17.1763" y="2.75" width="3.7459" height="16.2049" fill="black" stroke="black" stroke-width="1.5"></rect><path d="M2.32764 22H21.344" stroke="black" stroke-width="1.5" stroke-linecap="square"></path>',1),Js=ie('<rect x="2.75" y="6.02856" width="3.7459" height="12.9262" stroke="#585C63" stroke-width="1.5"></rect><rect x="9.96338" y="9.96313" width="3.7459" height="8.9918" stroke="#585C63" stroke-width="1.5"></rect><rect x="17.1763" y="2.75" width="3.7459" height="16.2049" stroke="#585C63" stroke-width="1.5"></rect><path d="M2.32764 22H21.344" stroke="#585C63" stroke-width="1.5" stroke-linecap="square"></path>',1),Ks=ie('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Pn(e,t){te(t,!0);let r=m(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(o=!1){r(o),b()}},i=Ks(),a=M(i);{var l=o=>{var u=Ws();Ke(3),T(o,u)},s=o=>{var u=Js();Ke(3),T(o,u)};ae(a,o=>{r()?o(l):o(s,-1)})}return C(i),T(e,i),re(n)}oe(Pn,{isSelected:{}},[],[],{mode:"open"});var Gs=ie('<rect x="4.41699" y="4.62451" width="15.1664" height="15.1664" rx="1.75" stroke="black" stroke-width="1.5"></rect><g><path d="M9.5 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 14.4998L2 14.4998" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 14.4998L20.3335 14.4998" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M9.5 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 12.0005L2 12.0005" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 12.0005L20.3335 12.0005" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 9.5L2 9.5" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 9.5L20.3335 9.5" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path></g><path d="M10.5 8.52856H13.7559C14.7224 8.52856 15.5059 9.31207 15.5059 10.2786V13.5344C15.5059 14.5009 14.7224 15.2844 13.7559 15.2844H10.5C9.5335 15.2844 8.75 14.5009 8.75 13.5344V10.2786C8.75 9.31207 9.5335 8.52856 10.5 8.52856Z" fill="black" stroke="black" stroke-width="1.5"></path>',1),Xs=ie('<rect x="4.41699" y="4.62451" width="15.1664" height="15.1664" rx="1.75" stroke="#585C63" stroke-width="1.5"></rect><g><path d="M9.5 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 14.4995L2 14.4995" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 14.4995L20.3335 14.4995" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M9.5 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 12.0002L2 12.0002" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 12.0002L20.3335 12.0002" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 9.49976L2 9.49976" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 9.49976L20.3335 9.49976" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path></g><rect x="8.52881" y="8.52856" width="6.75594" height="6.75594" rx="1.75" stroke="#585C63" stroke-width="1.5"></rect>',1),Qs=ie('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function jn(e,t){te(t,!0);let r=m(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(o=!1){r(o),b()}},i=Qs(),a=M(i);{var l=o=>{var u=Gs();Ke(2),T(o,u)},s=o=>{var u=Xs();Ke(2),T(o,u)};ae(a,o=>{r()?o(l):o(s,-1)})}return C(i),T(e,i),re(n)}oe(jn,{isSelected:{}},[],[],{mode:"open"});var el=ie('<path d="M18.75 3H5.25C4.00736 3 3 4.09719 3 5.45064V7.90129V18.5207C3 19.8742 4.00736 20.9714 5.25 20.9714H18.75C19.9926 20.9714 21 19.8742 21 18.5207V7.90129V5.45064C21 4.09719 19.9926 3 18.75 3Z" stroke="#C7CDD6" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path stroke="#C7CDD6" stroke-width="1.5"></path>',1),tl=ie('<path d="M12.25 18L6 12M6 12L12.25 6M6 12L21 12" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3 3V21" stroke="black" stroke-width="1.5" stroke-linecap="round"></path>',1),rl=ie('<path d="M11.75 18.25L18 12M18 12L11.75 5.75M18 12L3 12" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M21 3V21" stroke="black" stroke-width="1.5" stroke-linecap="round"></path>',1),nl=ie('<path d="M8.18018 5.45068V18.5208" stroke="#585C63" stroke-width="1.5"></path>'),il=ie('<path d="M9.18018 3.27222V20.9203" stroke="#585C63" stroke-width="1.5"></path>'),al=ie('<path d="M18.75 3H5.25C4.00736 3 3 4.09719 3 5.45064V7.90129V18.5207C3 19.8742 4.00736 20.9714 5.25 20.9714H18.75C19.9926 20.9714 21 19.8742 21 18.5207V7.90129V5.45064C21 4.09719 19.9926 3 18.75 3Z" stroke="#585C63" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><!>',1),ol=ie("<svg><!></svg>");function Rr(e,t){te(t,!0);let r=m(t,"isDisabled",7,!1),n=m(t,"isHovered",7,!1),i=m(t,"isOpen",7,!1),a=pr(t,["$$slots","$$events","$$legacy","$$host","isDisabled","isHovered","isOpen"]);var l={get isDisabled(){return r()},set isDisabled(d=!1){r(d),b()},get isHovered(){return n()},set isHovered(d=!1){n(d),b()},get isOpen(){return i()},set isOpen(d=!1){i(d),b()}},s=ol();hr(s,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...a}));var o=M(s);{var u=d=>{var f=el(),g=de(Tt(f));me(()=>F(g,"d",`M${i()?"8.18018":"9.18018"} ${i()?"5.45068":"3.27222"}V${i()?"18.5208":"20.9203"}`)),T(d,f)},c=d=>{var f=qr(),g=Tt(f);{var x=_=>{var S=tl();Ke(),T(_,S)},p=_=>{var S=rl();Ke(),T(_,S)};ae(g,_=>{i()?_(x):_(p,-1)})}T(d,f)},h=d=>{var f=al(),g=de(Tt(f));{var x=_=>{var S=nl();T(_,S)},p=_=>{var S=il();T(_,S)};ae(g,_=>{i()?_(x):_(p,-1)})}T(d,f)};ae(o,d=>{r()?d(u):n()?d(c,1):d(h,-1)})}return C(s),T(e,s),re(l)}oe(Rr,{isDisabled:{},isHovered:{},isOpen:{}},[],[],{mode:"open"});var sl=ne('<span class="icon svelte-4ebv1u"><img alt="" aria-hidden="true" width="20" height="20"/></span>'),ll=ne('<button type="button" class="menu-item svelte-4ebv1u" role="menuitem"><!> <div class="menu-text svelte-4ebv1u"> </div></button>'),ul=ne('<div tabindex="-1" role="menu"></div>'),cl=ne('<div style="position: relative; display: inline-block;" data-profile-menu=""><button class="user-profile-button svelte-4ebv1u" tabindex="0" aria-haspopup="menu"><div class="user-profile-container svelte-4ebv1u"><div class="user-profile-icon svelte-4ebv1u" part="user-profile-icon"><span class="user-initials svelte-4ebv1u"> </span></div></div></button> <!></div>');const dl={hash:"svelte-4ebv1u",code:`.user-profile-container.svelte-4ebv1u,
50
+ /*! purgecss end ignore */`};function So(e,t){re(t,!0),ht(e,Vs);let r=w(t,"variant",7,"primary"),n=w(t,"theme",7,"default"),i=w(t,"shape",7,"round"),o=w(t,"href",7,void 0),l=w(t,"disabled",7,!1),s=w(t,"onclick",7),a=w(t,"size",7,"medium"),u=w(t,"type",7,"button"),c=w(t,"hasBoxShadow",7,!0),h=w(t,"class",7,""),d=w(t,"children",7),v=wr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","shape","href","disabled","onclick","size","type","hasBoxShadow","class","children"]);const g=O(()=>()=>["usa-button","ai-button",a()==="small"?"ai-button--small":"",n()==="inverted"&&r()==="primary"?"ai-button--inverted":"",n()==="inverted"&&r()==="secondary"?"ai-button--outline-inverted":"",r()==="primary"?"usa-button--primary":"",r()==="secondary"?"usa-button--outline ai-button--outline":"",r()==="unstyled"?"ai-button--unstyled":"",i()==="square"?"ai-button--square":"",c()?"":"ai-button--no-shadow"].filter(Boolean).join(" ")),y=O(()=>()=>`${f(g)()} ${h()}`.trim());var p={get variant(){return r()},set variant(z="primary"){r(z),m()},get theme(){return n()},set theme(z="default"){n(z),m()},get shape(){return i()},set shape(z="round"){i(z),m()},get href(){return o()},set href(z=void 0){o(z),m()},get disabled(){return l()},set disabled(z=!1){l(z),m()},get onclick(){return s()},set onclick(z){s(z),m()},get size(){return a()},set size(z="medium"){a(z),m()},get type(){return u()},set type(z="button"){u(z),m()},get hasBoxShadow(){return c()},set hasBoxShadow(z=!0){c(z),m()},get class(){return h()},set class(z=""){h(z),m()},get children(){return d()},set children(z){d(z),m()}},_=jr(),M=Et(_);{var $=z=>{var b=Hs();mr(b,A=>({class:A,href:o(),onclick:s(),...v,[Kt]:{disabled:l()}}),[()=>f(y)()],void 0,void 0,"svelte-1klcfz0");var k=I(b);hr(k,()=>d()??ze),E(b),D(z,b)},N=z=>{var b=Os();mr(b,A=>({class:A,type:u(),disabled:l(),onclick:s(),...v}),[()=>f(y)()],void 0,void 0,"svelte-1klcfz0");var k=I(b);hr(k,()=>d()??ze),E(b),D(z,b)};ie(M,z=>{o()?z($):z(N,-1)})}return D(e,_),ne(p)}se(So,{variant:{},theme:{},shape:{},href:{},disabled:{},onclick:{},size:{},type:{},hasBoxShadow:{},class:{},children:{}},[],[],{mode:"open"});function Eo(e,t){re(t,!0);let r=w(t,"variant",7,"primary"),n=w(t,"theme",7,"default"),i=w(t,"href",7,void 0),o=w(t,"disabled",7,!1),l=w(t,"size",7,"medium"),s=w(t,"type",7,"button"),a=w(t,"onclick",7),u=w(t,"class",7,""),c=w(t,"children",7),h=wr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","href","disabled","size","type","onclick","class","children"]);var d={get variant(){return r()},set variant(v="primary"){r(v),m()},get theme(){return n()},set theme(v="default"){n(v),m()},get href(){return i()},set href(v=void 0){i(v),m()},get disabled(){return o()},set disabled(v=!1){o(v),m()},get size(){return l()},set size(v="medium"){l(v),m()},get type(){return s()},set type(v="button"){s(v),m()},get onclick(){return a()},set onclick(v){a(v),m()},get class(){return u()},set class(v=""){u(v),m()},get children(){return c()},set children(v){c(v),m()}};return So(e,xo({get variant(){return r()},get theme(){return n()},get href(){return i()},get disabled(){return o()},get size(){return l()},get type(){return s()},get onclick(){return a()},get children(){return c()},get class(){return u()}},()=>h)),ne(d)}customElements.define("graymatter-button",se(Eo,{variant:{attribute:"variant",reflect:!0,type:"String"},theme:{attribute:"theme",reflect:!0,type:"String"},href:{attribute:"href",reflect:!0,type:"String"},disabled:{attribute:"disabled",reflect:!0,type:"Boolean"},size:{attribute:"size",reflect:!0,type:"String"},type:{attribute:"type",reflect:!0,type:"String"},onclick:{},class:{},children:{}},[],[],{mode:"open"}));const _r=typeof window<"u";function js(e,t){if(_r&&typeof sessionStorage<"u"){const r=sessionStorage.getItem(e);if(r!==null)try{return JSON.parse(r)}catch(n){return console.warn(`Failed to parse stored value for ${e}:`,n),t}}return t}function Mo(e,t){const r=js(e,t),n=gn(r);return _r&&n.subscribe(i=>{try{sessionStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to sessionStorage:`,o)}}),n}const Ps=Mo("subNav-selectedId",null),Ot=Mo("subNav-selectedTitle","");function Io(e,t){if(_r&&typeof localStorage<"u"){const r=localStorage.getItem(e);if(r!==null)try{return JSON.parse(r)}catch(n){return console.warn(`Failed to parse stored value for ${e}:`,n),t}}return t}function Lo(e,t){const r=Io(e,t),n=gn(r);return _r&&n.subscribe(i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to localStorage:`,o)}}),n}const tt=Lo("globalSideNav-isExpanded",!1),Vt=Lo("globalSideNav-selectedItem",null),Pn=La(Vt,e=>e==="discover"),Ce={toggleExpanded:()=>{tt.update(e=>!e)},setExpanded:e=>{tt.set(e)},setSelectedItem:e=>{Vt.set(e),e==="discover"?tt.set(!1):_r&&window.innerWidth>640&&tt.set(!0)},handleLayoutTransition:e=>{if(e)tt.set(!1);else{const t=Io("globalSideNav-selectedItem",null);t&&t!=="discover"?(console.log("[NavigationStore] Opening navigation for desktop (non-discover page)"),tt.set(!0)):tt.set(!1)}}},Br=Object.freeze(Object.defineProperty({__proto__:null,isExpanded:tt,isMenuButtonDisabled:Pn,navigationStore:Ce,selectedItem:Vt,selectedSubNavItemId:Ps,selectedSubNavItemTitle:Ot},Symbol.toStringTag,{value:"Module"}));var Rs=K('<div part="global-header"><div class="header-content svelte-k73g25" part="header-content"><span class="header-text svelte-k73g25"> </span></div></div>');const Bs={hash:"svelte-k73g25",code:".global-header.svelte-k73g25 {opacity:0;transition:opacity var(--ai-duration-fast);}.global-header.visible.svelte-k73g25 {opacity:1;transition:opacity var(--ai-duration-fast);}.header-content.svelte-k73g25 {display:flex;align-items:center;gap:var(--ai-size-16);background:var(--ai-color-white);height:var(--ai-size-56);padding:0 5.8rem;}.header-content.svelte-k73g25 {display:flex;align-items:center;gap:var(--ai-size-16);align-self:stretch;}.header-text.svelte-k73g25 {color:var(--ai-color-black);font-size:var(--ai-size-16);font-weight:400;line-height:1.3;}"};function zo(e,t){re(t,!0),ht(e,Bs);const r=()=>Je(Vt,"$selectedItem",o),n=()=>Je(tt,"$isExpanded",o),i=()=>Je(Ot,"$selectedSubNavItemTitle",o),[o,l]=sr();let s=w(t,"customHeaderText",7,""),a=Q(!1);const u=O(()=>()=>r()&&r()!=="discover"&&!n()&&!f(a)),c=O(()=>()=>s()||i());Dt(()=>{if(typeof window>"u")return;const M=N=>{if(window.innerWidth<=640)return;let z=null;if(z=sessionStorage.getItem("subNav-topLevelTitle"),z)try{z=JSON.parse(z)}catch{}if(typeof z=="string"&&z.trim()!=="")Ot.set(z),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(z));else{const b=N;b.detail&&b.detail.title&&(Ot.set(b.detail.title),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(b.detail.title)))}},$=N=>{const z=N,{isMobile:b}=z.detail;b||(V(a,!0),setTimeout(()=>{V(a,!1)},300))};return window.addEventListener("sectionVisible",M),window.addEventListener("layoutTransition",$),()=>{window.removeEventListener("sectionVisible",M),window.removeEventListener("layoutTransition",$)}});var h={get customHeaderText(){return s()},set customHeaderText(M=""){s(M),m()}},d=Rs();let v;var g=I(d),y=I(g),p=I(y,!0);E(y),E(g),E(d),ge((M,$)=>{v=_e(d,1,"global-header svelte-k73g25",null,v,M),Jt(p,$)},[()=>({visible:f(u)()}),()=>f(c)()]),D(e,d);var _=ne(h);return l(),_}se(zo,{customHeaderText:{}},[],[],{mode:"open"});function No(e,t){re(t,!0);let r=w(t,"customHeaderText",7,"");var n={get customHeaderText(){return r()},set customHeaderText(i=""){r(i),m()}};return zo(e,{get customHeaderText(){return r()}}),ne(n)}customElements.define("graymatter-desktop-header",se(No,{customHeaderText:{attribute:"custom-header-text",reflect:!0,type:"String"}},[],[],{mode:"open"}));var Fs=ae('<path fill-rule="evenodd" clip-rule="evenodd" d="M10.7883 3.2108C11.2367 2.13286 12.7637 2.13286 13.212 3.2108L15.294 8.21652L20.6981 8.64976C21.8619 8.74306 22.3337 10.1953 21.4471 10.9549L17.3298 14.4818L18.5877 19.7553C18.8585 20.8909 17.6232 21.7884 16.6268 21.1799L12.0002 18.354L7.37353 21.1799C6.37721 21.7884 5.14182 20.8909 5.4127 19.7553L6.67062 14.4818L2.55328 10.9549C1.66664 10.1953 2.13851 8.74306 3.30224 8.64976L8.70633 8.21652L10.7883 3.2108Z" fill="black"></path>'),Zs=ae('<path d="M11.4807 3.49883C11.6729 3.03685 12.3273 3.03685 12.5195 3.49883L14.6454 8.61028C14.7264 8.80504 14.9096 8.93811 15.1199 8.95497L20.6381 9.39736C21.1369 9.43735 21.3391 10.0598 20.9591 10.3853L16.7548 13.9867C16.5946 14.1239 16.5246 14.3392 16.5736 14.5444L17.858 19.9293C17.9741 20.416 17.4447 20.8007 17.0177 20.5398L12.2933 17.6542C12.1133 17.5443 11.8869 17.5443 11.7069 17.6542L6.98251 20.5398C6.55551 20.8007 6.02606 20.416 6.14215 19.9293L7.42664 14.5444C7.47558 14.3392 7.40562 14.1239 7.24543 13.9867L3.04111 10.3853C2.66112 10.0598 2.86335 9.43735 3.36209 9.39736L8.88034 8.95497C9.0906 8.93811 9.27375 8.80504 9.35476 8.61028L11.4807 3.49883Z" stroke="#585C63" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>'),Ws=ae('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Rn(e,t){re(t,!0);let r=w(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(a=!1){r(a),m()}},i=Ws(),o=I(i);{var l=a=>{var u=Fs();D(a,u)},s=a=>{var u=Zs();D(a,u)};ie(o,a=>{r()?a(l):a(s,-1)})}return E(i),D(e,i),ne(n)}se(Rn,{isSelected:{}},[],[],{mode:"open"});var Ys=ae('<path fill-rule="evenodd" clip-rule="evenodd" d="M17.0508 3C19.6009 3.00039 21.6688 5.06802 21.6689 7.61816V13.2832C21.6688 15.8333 19.6009 17.901 17.0508 17.9014H13.2686L9.23926 21.7168C8.58852 22.3323 7.5166 21.8705 7.5166 20.9746V17.8984C5.01299 17.8445 3.00011 15.7997 3 13.2832V7.61816C3.00012 5.06785 5.06785 3.00012 7.61816 3H17.0508Z" fill="black"></path>'),Gs=ae('<path d="M17.0508 3C19.6009 3.00039 21.6688 5.06802 21.6689 7.61816V13.2832C21.6688 15.8333 19.6009 17.901 17.0508 17.9014H13.2686L9.23926 21.7168C8.58852 22.3323 7.5166 21.8705 7.5166 20.9746V17.8984C5.01299 17.8445 3.00011 15.7997 3 13.2832V7.61816C3.00012 5.06785 5.06785 3.00012 7.61816 3H17.0508ZM7.61816 4.45898C5.87327 4.4591 4.4591 5.87327 4.45898 7.61816V13.2832C4.4591 15.0281 5.87327 16.4432 7.61816 16.4434L8.24609 16.4424C8.64868 16.4424 8.97539 16.7693 8.97559 17.1719V19.958L12.4775 16.6426C12.6186 16.5091 12.7994 16.4443 12.9795 16.4443V16.4434H17.0508C18.7954 16.443 20.2099 15.0279 20.21 13.2832V7.61816C20.2098 5.87344 18.7954 4.45938 17.0508 4.45898H7.61816Z" fill="#585C63"></path>'),Js=ae('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Bn(e,t){re(t,!0);let r=w(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(a=!1){r(a),m()}},i=Js(),o=I(i);{var l=a=>{var u=Ys();D(a,u)},s=a=>{var u=Gs();D(a,u)};ie(o,a=>{r()?a(l):a(s,-1)})}return E(i),D(e,i),ne(n)}se(Bn,{isSelected:{}},[],[],{mode:"open"});var Ks=ae('<rect x="2.75" y="6.02856" width="3.7459" height="12.9262" fill="black" stroke="black" stroke-width="1.5"></rect><rect x="9.96338" y="9.96313" width="3.7459" height="8.9918" fill="black" stroke="black" stroke-width="1.5"></rect><rect x="17.1763" y="2.75" width="3.7459" height="16.2049" fill="black" stroke="black" stroke-width="1.5"></rect><path d="M2.32764 22H21.344" stroke="black" stroke-width="1.5" stroke-linecap="square"></path>',1),Xs=ae('<rect x="2.75" y="6.02856" width="3.7459" height="12.9262" stroke="#585C63" stroke-width="1.5"></rect><rect x="9.96338" y="9.96313" width="3.7459" height="8.9918" stroke="#585C63" stroke-width="1.5"></rect><rect x="17.1763" y="2.75" width="3.7459" height="16.2049" stroke="#585C63" stroke-width="1.5"></rect><path d="M2.32764 22H21.344" stroke="#585C63" stroke-width="1.5" stroke-linecap="square"></path>',1),Qs=ae('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Fn(e,t){re(t,!0);let r=w(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(a=!1){r(a),m()}},i=Qs(),o=I(i);{var l=a=>{var u=Ks();Ge(3),D(a,u)},s=a=>{var u=Xs();Ge(3),D(a,u)};ie(o,a=>{r()?a(l):a(s,-1)})}return E(i),D(e,i),ne(n)}se(Fn,{isSelected:{}},[],[],{mode:"open"});var el=ae('<rect x="4.41699" y="4.62451" width="15.1664" height="15.1664" rx="1.75" stroke="black" stroke-width="1.5"></rect><g><path d="M9.5 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 14.4998L2 14.4998" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 14.4998L20.3335 14.4998" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M9.5 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 12.0005L2 12.0005" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 12.0005L20.3335 12.0005" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 9.5L2 9.5" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 9.5L20.3335 9.5" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path></g><path d="M10.5 8.52856H13.7559C14.7224 8.52856 15.5059 9.31207 15.5059 10.2786V13.5344C15.5059 14.5009 14.7224 15.2844 13.7559 15.2844H10.5C9.5335 15.2844 8.75 14.5009 8.75 13.5344V10.2786C8.75 9.31207 9.5335 8.52856 10.5 8.52856Z" fill="black" stroke="black" stroke-width="1.5"></path>',1),tl=ae('<rect x="4.41699" y="4.62451" width="15.1664" height="15.1664" rx="1.75" stroke="#585C63" stroke-width="1.5"></rect><g><path d="M9.5 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 14.4995L2 14.4995" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 14.4995L20.3335 14.4995" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M9.5 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 12.0002L2 12.0002" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 12.0002L20.3335 12.0002" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 9.49976L2 9.49976" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 9.49976L20.3335 9.49976" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path></g><rect x="8.52881" y="8.52856" width="6.75594" height="6.75594" rx="1.75" stroke="#585C63" stroke-width="1.5"></rect>',1),rl=ae('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Zn(e,t){re(t,!0);let r=w(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(a=!1){r(a),m()}},i=rl(),o=I(i);{var l=a=>{var u=el();Ge(2),D(a,u)},s=a=>{var u=tl();Ge(2),D(a,u)};ie(o,a=>{r()?a(l):a(s,-1)})}return E(i),D(e,i),ne(n)}se(Zn,{isSelected:{}},[],[],{mode:"open"});var nl=ae('<path d="M18.75 3H5.25C4.00736 3 3 4.09719 3 5.45064V7.90129V18.5207C3 19.8742 4.00736 20.9714 5.25 20.9714H18.75C19.9926 20.9714 21 19.8742 21 18.5207V7.90129V5.45064C21 4.09719 19.9926 3 18.75 3Z" stroke="#C7CDD6" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path stroke="#C7CDD6" stroke-width="1.5"></path>',1),il=ae('<path d="M12.25 18L6 12M6 12L12.25 6M6 12L21 12" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3 3V21" stroke="black" stroke-width="1.5" stroke-linecap="round"></path>',1),ol=ae('<path d="M11.75 18.25L18 12M18 12L11.75 5.75M18 12L3 12" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M21 3V21" stroke="black" stroke-width="1.5" stroke-linecap="round"></path>',1),al=ae('<path d="M8.18018 5.45068V18.5208" stroke="#585C63" stroke-width="1.5"></path>'),sl=ae('<path d="M9.18018 3.27222V20.9203" stroke="#585C63" stroke-width="1.5"></path>'),ll=ae('<path d="M18.75 3H5.25C4.00736 3 3 4.09719 3 5.45064V7.90129V18.5207C3 19.8742 4.00736 20.9714 5.25 20.9714H18.75C19.9926 20.9714 21 19.8742 21 18.5207V7.90129V5.45064C21 4.09719 19.9926 3 18.75 3Z" stroke="#585C63" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><!>',1),ul=ae("<svg><!></svg>");function Fr(e,t){re(t,!0);let r=w(t,"isDisabled",7,!1),n=w(t,"isHovered",7,!1),i=w(t,"isOpen",7,!1),o=wr(t,["$$slots","$$events","$$legacy","$$host","isDisabled","isHovered","isOpen"]);var l={get isDisabled(){return r()},set isDisabled(d=!1){r(d),m()},get isHovered(){return n()},set isHovered(d=!1){n(d),m()},get isOpen(){return i()},set isOpen(d=!1){i(d),m()}},s=ul();mr(s,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...o}));var a=I(s);{var u=d=>{var v=nl(),g=le(Et(v));ge(()=>Z(g,"d",`M${i()?"8.18018":"9.18018"} ${i()?"5.45068":"3.27222"}V${i()?"18.5208":"20.9203"}`)),D(d,v)},c=d=>{var v=jr(),g=Et(v);{var y=_=>{var M=il();Ge(),D(_,M)},p=_=>{var M=ol();Ge(),D(_,M)};ie(g,_=>{i()?_(y):_(p,-1)})}D(d,v)},h=d=>{var v=ll(),g=le(Et(v));{var y=_=>{var M=al();D(_,M)},p=_=>{var M=sl();D(_,M)};ie(g,_=>{i()?_(y):_(p,-1)})}D(d,v)};ie(a,d=>{r()?d(u):n()?d(c,1):d(h,-1)})}return E(s),D(e,s),ne(l)}se(Fr,{isDisabled:{},isHovered:{},isOpen:{}},[],[],{mode:"open"});var cl=K('<div class="ai-tooltip-arrow svelte-sj99h3" aria-hidden="true"></div>'),dl=K('<div role="none"><!></div> <div role="tooltip" aria-live="polite"> <!></div>',1);const fl={hash:"svelte-sj99h3",code:`
51
+ /*! purgecss start ignore */:root,
52
+ :host {--ai-tooltip-bg: var(--ai-color-black);--ai-tooltip-fg: var(--ai-color-white);--ai-tooltip-radius: var(--ai-size-8, 0.625rem);--ai-tooltip-padding: var(--ai-size-8, 0.5rem);--ai-tooltip-font-size: 0.8125rem;--ai-tooltip-font-weight: 500;--ai-tooltip-line-height: 1.4;--ai-tooltip-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.3);--ai-tooltip-max-width: 21.875rem;--ai-tooltip-max-width-mobile: 18rem;--ai-tooltip-arrow-size: 0.3125rem;}.ai-tooltip-trigger.svelte-sj99h3 {position:relative;display:inline-block;}.ai-tooltip.svelte-sj99h3 {position:fixed;top:0;left:0;z-index:var(--ai-layer-100);display:none;max-width:var(--ai-tooltip-max-width);padding:var(--ai-tooltip-padding);border-radius:var(--ai-tooltip-radius);background-color:var(--ai-tooltip-bg);box-shadow:var(--ai-tooltip-shadow);color:var(--ai-tooltip-fg);font-size:var(--ai-tooltip-font-size);font-weight:var(--ai-tooltip-font-weight);line-height:var(--ai-tooltip-line-height);pointer-events:none;white-space:normal;word-wrap:break-word;overflow-wrap:break-word;}.ai-tooltip.visible.svelte-sj99h3 {display:block;}
53
+
54
+ /* Arrow — JS positions it along the trigger-facing edge; here we only place
55
+ * it on the correct side and point it in the right direction. */.ai-tooltip-arrow.svelte-sj99h3 {position:absolute;width:0;height:0;border:var(--ai-tooltip-arrow-size) solid transparent;}.ai-tooltip.pos-top.svelte-sj99h3 .ai-tooltip-arrow:where(.svelte-sj99h3) {top:100%;transform:translateX(-50%);border-top-color:var(--ai-tooltip-bg);}.ai-tooltip.pos-bottom.svelte-sj99h3 .ai-tooltip-arrow:where(.svelte-sj99h3) {bottom:100%;transform:translateX(-50%);border-bottom-color:var(--ai-tooltip-bg);}.ai-tooltip.pos-left.svelte-sj99h3 .ai-tooltip-arrow:where(.svelte-sj99h3) {left:100%;transform:translateY(-50%);border-left-color:var(--ai-tooltip-bg);}.ai-tooltip.pos-right.svelte-sj99h3 .ai-tooltip-arrow:where(.svelte-sj99h3) {right:100%;transform:translateY(-50%);border-right-color:var(--ai-tooltip-bg);}
56
+
57
+ /* Mobile: cap width so long messages stay readable. */
58
+ @media (max-width: 48rem) {.ai-tooltip.svelte-sj99h3 {max-width:var(--ai-tooltip-max-width-mobile);}
59
+ }
60
+ /*! purgecss end ignore */`};function Zr(e,t){re(t,!0),ht(e,fl);let r=w(t,"text",7),n=w(t,"position",7,"top"),i=w(t,"align",7,"center"),o=w(t,"showOn",7,"hover"),l=w(t,"disabled",7,!1),s=w(t,"showArrow",7,!1),a=w(t,"minWidth",7),u=w(t,"maxWidth",7),c=w(t,"tooltipId",23,()=>`tooltip-${Math.random().toString(36).substring(2,9)}`),h=w(t,"wrapperClass",7,""),d=w(t,"children",7),v=Q(!1),g,y;const p=6;let _=O(()=>o()==="hover"||o()==="disabled"&&l()),M=O(()=>[a()&&`min-width: ${a()}`,u()&&`max-width: ${u()}`].filter(Boolean).join("; ")||void 0);function $(){if(!g||!y||typeof window>"u")return;const x=y.getBoundingClientRect(),S=g.getBoundingClientRect(),U=x.left+x.width/2,G=x.top+x.height/2;g.style.top="",g.style.left="",g.style.transform="none";let Y=0,ee=0;n()==="top"||n()==="bottom"?(Y=n()==="top"?x.top-S.height-p:x.bottom+p,i()==="left"?ee=x.left:i()==="right"?ee=x.right-S.width:ee=U-S.width/2):(ee=n()==="left"?x.left-S.width-p:x.right+p,Y=G-S.height/2),g.style.top=`${Y}px`,g.style.left=`${ee}px`,s()&&f(N)&&(n()==="top"||n()==="bottom"?(f(N).style.left=`${U-ee}px`,f(N).style.top=""):(f(N).style.top=`${G-Y}px`,f(N).style.left=""))}let N=Q(void 0);Dt(()=>{f(v)&&g&&requestAnimationFrame($)}),qn(()=>{typeof window<"u"&&g&&document.body.appendChild(g)}),hs(()=>{typeof window<"u"&&g?.parentNode&&g.parentNode.removeChild(g)});function z(){f(_)&&V(v,!0)}function b(){V(v,!1)}var k={get text(){return r()},set text(x){r(x),m()},get position(){return n()},set position(x="top"){n(x),m()},get align(){return i()},set align(x="center"){i(x),m()},get showOn(){return o()},set showOn(x="hover"){o(x),m()},get disabled(){return l()},set disabled(x=!1){l(x),m()},get showArrow(){return s()},set showArrow(x=!1){s(x),m()},get minWidth(){return a()},set minWidth(x){a(x),m()},get maxWidth(){return u()},set maxWidth(x){u(x),m()},get tooltipId(){return c()},set tooltipId(x=`tooltip-${Math.random().toString(36).substring(2,9)}`){c(x),m()},get wrapperClass(){return h()},set wrapperClass(x=""){h(x),m()},get children(){return d()},set children(x){d(x),m()}},A=dl(),L=Et(A),T=I(L);hr(T,()=>d()??ze,()=>({disabled:l(),tooltipId:c(),ariaDisabled:l()?"true":"false",ariaDescribedby:f(_)?c():""})),E(L),et(L,x=>y=x,()=>y);var P=le(L,2);let W;var me=I(P,!0),de=le(me);{var H=x=>{var S=cl();et(S,U=>V(N,U),()=>f(N)),D(x,S)};ie(de,x=>{s()&&x(H)})}return E(P),et(P,x=>g=x,()=>g),ge(()=>{_e(L,1,`ai-tooltip-trigger ${h()}`,"svelte-sj99h3"),Z(P,"id",c()),W=_e(P,1,`ai-tooltip pos-${n()}`,"svelte-sj99h3",W,{visible:f(v)&&f(_)}),po(P,f(M)),Jt(me,r())}),Me("mouseenter",L,z),Me("mouseleave",L,b),oe("focusin",L,z),oe("focusout",L,b),D(e,A),ne(k)}Ht(["focusin","focusout"]),se(Zr,{text:{},position:{},align:{},showOn:{},disabled:{},showArrow:{},minWidth:{},maxWidth:{},tooltipId:{},wrapperClass:{},children:{}},[],[],{mode:"open"});var vl=K('<button class="user-profile-button svelte-4ebv1u" tabindex="0" aria-haspopup="menu"><div class="user-profile-container svelte-4ebv1u"><div class="user-profile-icon svelte-4ebv1u" part="user-profile-icon"><span class="user-initials svelte-4ebv1u"> </span></div></div></button>'),hl=K('<span class="icon svelte-4ebv1u"><img alt="" aria-hidden="true" width="20" height="20"/></span>'),pl=K('<button type="button" class="menu-item svelte-4ebv1u" role="menuitem"><!> <div class="menu-text svelte-4ebv1u"> </div></button>'),gl=K('<div tabindex="-1" role="menu"></div>'),bl=K('<div style="position: relative; display: inline-block;" data-profile-menu=""><!> <!></div>');const ml={hash:"svelte-4ebv1u",code:`.user-profile-container.svelte-4ebv1u,
51
61
  .user-profile-icon.svelte-4ebv1u {display:flex;align-items:center;justify-content:center;}.user-profile-container.svelte-4ebv1u,
52
62
  .user-profile-icon.svelte-4ebv1u {display:flex;align-items:center;justify-content:center;}.user-profile-icon.svelte-4ebv1u {background:var(--ai-color-blue-800);border-radius:var(--ai-size-4);box-sizing:border-box;height:var(--ai-size-40);padding:var(--ai-size-4);white-space:nowrap;width:var(--ai-size-40);}.user-initials.svelte-4ebv1u {color:var(--ai-color-white);font-size:var(--ai-size-16);font-style:normal;font-weight:400;line-height:1;overflow:hidden;text-align:center;text-overflow:ellipsis;}.user-profile-button.svelte-4ebv1u {background:none;border:none;padding:0;cursor:pointer;display:flex;justify-content:center;align-items:center;}.user-profile-button.svelte-4ebv1u:focus {outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);border-radius:var(--ai-size-4);}.user-profile-button.svelte-4ebv1u:focus:not(:focus-visible) {outline:none;}.user-profile-container.svelte-4ebv1u {width:var(--ai-size-40);height:var(--ai-size-40);aspect-ratio:1/1;}.profile-context-menu.svelte-4ebv1u {display:flex;width:13.75rem;padding:var(--ai-size-12);flex-direction:column;align-items:flex-start;gap:var(--ai-size-2);border-radius:var(--ai-size-8);border:0.0625rem solid var(--ai-color-steel-200);background:var(--ai-color-white);box-shadow:0 0.1875rem var(--ai-size-6) 0 rgba(50, 54, 61, 0.2);position:absolute;z-index:var(--ai-layer-50);}.profile-context-menu.desktop-align.svelte-4ebv1u {left:100%;top:auto;bottom:0;margin-left:var(--ai-size-8);
53
- /* aligns bottom of menu with bottom of button */transform:translateY(0);}.profile-context-menu.mobile-align.svelte-4ebv1u {top:110%;right:0;left:auto;bottom:auto;margin-left:0;transform:none;}.menu-item.svelte-4ebv1u {display:flex;align-items:center;gap:var(--ai-size-10);flex:1 0 0;width:100%;cursor:pointer;padding:var(--ai-size-8);background:none;border:none;box-shadow:none;outline:none;}.menu-item.svelte-4ebv1u:focus {background:var(--ai-color-steel-200);border-radius:var(--ai-size-4);outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);}.menu-item.svelte-4ebv1u:focus:not(:focus-visible) {outline:none;}.menu-item.svelte-4ebv1u:hover {background:var(--ai-color-steel-200);border-radius:var(--ai-size-4);}.icon.svelte-4ebv1u {width:var(--ai-size-20);height:var(--ai-size-20);display:flex;align-items:center;justify-content:center;}.menu-text.svelte-4ebv1u {color:var(--ai-color-black);font-size:var(--ai-size-14);font-style:normal;font-weight:400;line-height:130%;}`};function Rn(e,t){te(t,!0),St(e,dl);let r=m(t,"menuItems",23,()=>[]),n=m(t,"userMeta",7),i=m(t,"ariaLabel",7,"Open profile menu"),a=m(t,"menuAlign",7,"desktop");const l=`profile-menu-${Math.random().toString(36).slice(2,10)}`;let s=Q(!1);function o(){q(s,!v(s))}function u(){q(s,!1)}function c(y){try{const R=new CustomEvent("profileMenuAction",{detail:{action:y,timestamp:Date.now(),userMeta:n()},bubbles:!0,composed:!0});(document.querySelector(".profile-context-menu")?.closest("[data-profile-menu]")||window).dispatchEvent(R)}catch(R){console.error("Error dispatching profile menu action:",R)}}function h(y){const R=y.relatedTarget;(!R||!R.closest(".profile-context-menu"))&&u()}let d=Q(null),f=Q(yt([])),g=Q(yt([]));Ft(()=>{q(f,v(g).filter(Boolean),!0)});function x(y,R){if(y.key==="ArrowDown"){y.preventDefault();const Z=(R+1)%r().length;v(f)[Z]?.focus()}else if(y.key==="ArrowUp"){y.preventDefault();const Z=(R-1+r().length)%r().length;v(f)[Z]?.focus()}else y.key==="Escape"&&(u(),v(d)?.focus(),y.stopPropagation())}function p(y){v(s)&&y.key==="Escape"&&(u(),v(d)?.focus(),y.stopPropagation())}Ft(()=>{if(!(typeof window>"u"))return window.addEventListener("keydown",p,!0),()=>{window.removeEventListener("keydown",p,!0)}});var _={get menuItems(){return r()},set menuItems(y=[]){r(y),b()},get userMeta(){return n()},set userMeta(y){n(y),b()},get ariaLabel(){return i()},set ariaLabel(y="Open profile menu"){i(y),b()},get menuAlign(){return a()},set menuAlign(y="desktop"){a(y),b()}},S=cl(),I=M(S),N=M(I),L=M(N),w=M(L),E=M(w,!0);C(w),C(L),C(N),C(I),Et(I,y=>q(d,y),()=>v(d));var O=de(I,2);{var U=y=>{var R=ul();ia(R,23,r,Z=>Z.label,(Z,ye,Se)=>{var D=ll(),Y=M(D);{var z=W=>{var ee=sl(),ue=M(ee);C(ee),me(()=>F(ue,"src",v(ye).icon)),T(W,ee)};ae(Y,W=>{v(ye).icon&&W(z)})}var $=de(Y,2),J=M($,!0);C($),C(D),Et(D,(W,ee)=>v(g)[ee]=W,W=>v(g)?.[W],()=>[v(Se)]),me(()=>cr(J,v(ye).label)),le("click",D,()=>{c(v(ye).action),u()}),le("keydown",D,W=>x(W,v(Se))),T(Z,D)}),C(R),me(()=>{Ce(R,1,`profile-context-menu ${a()==="desktop"?"desktop-align":"mobile-align"}`,"svelte-4ebv1u"),F(R,"id",l)}),T(y,R)};ae(O,y=>{v(s)&&y(U)})}return C(S),me(()=>{F(I,"aria-label",i()),F(I,"aria-expanded",v(s)),F(I,"aria-controls",l),cr(E,n()?.initials)}),le("click",I,o),He("blur",I,h),T(e,S),re(_)}Yt(["click","keydown"]),oe(Rn,{menuItems:{},userMeta:{},ariaLabel:{},menuAlign:{}},[],[],{mode:"open"});var fl=ie('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M9.87891 7.51884C11.0505 6.49372 12.95 6.49372 14.1215 7.51884C15.2931 8.54397 15.2931 10.206 14.1215 11.2312C13.9176 11.4096 13.6917 11.5569 13.4513 11.6733C12.7056 12.0341 12.0002 12.6716 12.0002 13.5V14.25M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM12 17.25H12.0075V17.2575H12V17.25Z" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Bn(e,t){te(t,!0);let r=m(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(l=!1){r(l),b()}},i=fl(),a=M(i);return C(i),me(()=>F(a,"stroke",r()?"#000":"#585C63")),T(e,i),re(n)}oe(Bn,{isSelected:{}},[],[],{mode:"open"});var vl=ne('<a part="discover-item"><div class="icon-container svelte-1cca2eg" part="discover-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div> <span class="nav-text svelte-1cca2eg">Discover</span></a>'),hl=ne('<nav aria-label="USAi application" part="app-navigation"><div class="nav-items svelte-1cca2eg" part="nav-items"><!> <a part="chat-item"><div class="icon-container svelte-1cca2eg" part="chat-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div> <span class="nav-text svelte-1cca2eg">Chat</span></a> <a part="console-item"><div class="icon-container svelte-1cca2eg" part="console-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div> <span class="nav-text svelte-1cca2eg">Console</span></a> <a part="api-item"><div class="icon-container svelte-1cca2eg" part="api-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div> <span class="nav-text svelte-1cca2eg">API</span></a></div></nav>'),pl=ne('<div class="nav-footer-icon-container svelte-1cca2eg" part="nav-footer-icon-container"><a part="help-link" title="Help" aria-label="Help"><div class="icon-container svelte-1cca2eg" part="help-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div></a></div>'),gl=ne('<div class="nav-footer svelte-1cca2eg" part="nav-footer"><!> <div class="nav-footer-profile-container svelte-1cca2eg"><!></div></div>'),bl=ne('<div part="side-nav-container" data-testid="side-nav-container"><div class="nav-content svelte-1cca2eg" part="nav-content"><div class="nav-main svelte-1cca2eg" part="nav-main"><div class="menu-section svelte-1cca2eg" part="menu-section"><button><div class="icon-container svelte-1cca2eg" part="icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div></button></div> <!></div> <!></div> <div part="expanded-content"><div class="drawer-content svelte-1cca2eg" part="drawer-content"><nav part="sub-navigation" class="svelte-1cca2eg"><!></nav></div></div></div>');const ml={hash:"svelte-1cca2eg",code:`.expanded-content.drawer-anim.svelte-1cca2eg {max-width:0;overflow:hidden;pointer-events:none;transition:max-width var(--ai-duration-fast) cubic-bezier(0.4, 0, 0.2, 1);}.expanded-content.drawer-anim.open.svelte-1cca2eg {max-width:var(--sidenav-drawer-width);pointer-events:auto;}.drawer-content.svelte-1cca2eg {width:var(--sidenav-drawer-width);height:100%;display:flex;flex-direction:column;padding-top:var(--ai-size-72);}.drawer-content.svelte-1cca2eg nav:where(.svelte-1cca2eg) {flex:1;overflow-y:auto;overflow-x:hidden;}.menu-button.svelte-1cca2eg {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color var(--ai-transition-ease-fast);}.menu-button.svelte-1cca2eg:disabled,
63
+ /* aligns bottom of menu with bottom of button */transform:translateY(0);}.profile-context-menu.mobile-align.svelte-4ebv1u {top:110%;right:0;left:auto;bottom:auto;margin-left:0;transform:none;}.menu-item.svelte-4ebv1u {display:flex;align-items:center;gap:var(--ai-size-10);flex:1 0 0;width:100%;cursor:pointer;padding:var(--ai-size-8);background:none;border:none;box-shadow:none;outline:none;}.menu-item.svelte-4ebv1u:focus {background:var(--ai-color-steel-200);border-radius:var(--ai-size-4);outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);}.menu-item.svelte-4ebv1u:focus:not(:focus-visible) {outline:none;}.menu-item.svelte-4ebv1u:hover {background:var(--ai-color-steel-200);border-radius:var(--ai-size-4);}.icon.svelte-4ebv1u {width:var(--ai-size-20);height:var(--ai-size-20);display:flex;align-items:center;justify-content:center;}.menu-text.svelte-4ebv1u {color:var(--ai-color-black);font-size:var(--ai-size-14);font-style:normal;font-weight:400;line-height:130%;}`};function Wn(e,t){re(t,!0),ht(e,ml);let r=w(t,"menuItems",23,()=>[]),n=w(t,"userMeta",7),i=w(t,"ariaLabel",7,"Open profile menu"),o=w(t,"menuAlign",7,"desktop");const l=`profile-menu-${Math.random().toString(36).slice(2,10)}`;let s=Q(!1);function a(){V(s,!f(s))}function u(){V(s,!1)}function c(b){try{const k=new CustomEvent("profileMenuAction",{detail:{action:b,timestamp:Date.now(),userMeta:n()},bubbles:!0,composed:!0});(document.querySelector(".profile-context-menu")?.closest("[data-profile-menu]")||window).dispatchEvent(k)}catch(k){console.error("Error dispatching profile menu action:",k)}}function h(b){const k=b.relatedTarget;(!k||!k.closest(".profile-context-menu"))&&u()}let d=Q(null),v=Q(St([])),g=Q(St([]));Dt(()=>{V(v,f(g).filter(Boolean),!0)});function y(b,k){if(b.key==="ArrowDown"){b.preventDefault();const A=(k+1)%r().length;f(v)[A]?.focus()}else if(b.key==="ArrowUp"){b.preventDefault();const A=(k-1+r().length)%r().length;f(v)[A]?.focus()}else b.key==="Escape"&&(u(),f(d)?.focus(),b.stopPropagation())}function p(b){f(s)&&b.key==="Escape"&&(u(),f(d)?.focus(),b.stopPropagation())}Dt(()=>{if(!(typeof window>"u"))return window.addEventListener("keydown",p,!0),()=>{window.removeEventListener("keydown",p,!0)}});var _={get menuItems(){return r()},set menuItems(b=[]){r(b),m()},get userMeta(){return n()},set userMeta(b){n(b),m()},get ariaLabel(){return i()},set ariaLabel(b="Open profile menu"){i(b),m()},get menuAlign(){return o()},set menuAlign(b="desktop"){o(b),m()}},M=bl(),$=I(M);{let b=O(()=>o()==="desktop"?"right":"bottom");Zr($,{text:"Account",get position(){return f(b)},children:(k,A)=>{var L=vl(),T=I(L),P=I(T),W=I(P),me=I(W,!0);E(W),E(P),E(T),E(L),et(L,de=>V(d,de),()=>f(d)),ge(()=>{Z(L,"aria-label",i()),Z(L,"aria-expanded",f(s)),Z(L,"aria-controls",l),Jt(me,n()?.initials)}),oe("click",L,a),Me("blur",L,h),D(k,L)},$$slots:{default:!0}})}var N=le($,2);{var z=b=>{var k=gl();co(k,23,r,A=>A.label,(A,L,T)=>{var P=pl(),W=I(P);{var me=x=>{var S=hl(),U=I(S);E(S),ge(()=>Z(U,"src",f(L).icon)),D(x,S)};ie(W,x=>{f(L).icon&&x(me)})}var de=le(W,2),H=I(de,!0);E(de),E(P),et(P,(x,S)=>f(g)[S]=x,x=>f(g)?.[x],()=>[f(T)]),ge(()=>Jt(H,f(L).label)),oe("click",P,()=>{c(f(L).action),u()}),oe("keydown",P,x=>y(x,f(T))),D(A,P)}),E(k),ge(()=>{_e(k,1,`profile-context-menu ${o()==="desktop"?"desktop-align":"mobile-align"}`,"svelte-4ebv1u"),Z(k,"id",l)}),D(b,k)};ie(N,b=>{f(s)&&b(z)})}return E(M),D(e,M),ne(_)}Ht(["click","keydown"]),se(Wn,{menuItems:{},userMeta:{},ariaLabel:{},menuAlign:{}},[],[],{mode:"open"});var wl=ae('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M9.87891 7.51884C11.0505 6.49372 12.95 6.49372 14.1215 7.51884C15.2931 8.54397 15.2931 10.206 14.1215 11.2312C13.9176 11.4096 13.6917 11.5569 13.4513 11.6733C12.7056 12.0341 12.0002 12.6716 12.0002 13.5V14.25M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM12 17.25H12.0075V17.2575H12V17.25Z" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Yn(e,t){re(t,!0);let r=w(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(l=!1){r(l),m()}},i=wl(),o=I(i);return E(i),ge(()=>Z(o,"stroke",r()?"#000":"#585C63")),D(e,i),ne(n)}se(Yn,{isSelected:{}},[],[],{mode:"open"});var _l=K('<a part="discover-item"><div class="icon-container svelte-1cca2eg" part="discover-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div> <span class="nav-text svelte-1cca2eg">Discover</span></a>'),kl=K('<nav aria-label="USAi application" part="app-navigation"><div class="nav-items svelte-1cca2eg" part="nav-items"><!> <a part="chat-item"><div class="icon-container svelte-1cca2eg" part="chat-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div> <span class="nav-text svelte-1cca2eg">Chat</span></a> <a part="console-item"><div class="icon-container svelte-1cca2eg" part="console-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div> <span class="nav-text svelte-1cca2eg">Console</span></a> <a part="api-item"><div class="icon-container svelte-1cca2eg" part="api-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div> <span class="nav-text svelte-1cca2eg">API</span></a></div></nav>'),yl=K('<a part="help-link" aria-label="User Guide"><div class="icon-container svelte-1cca2eg" part="help-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div></a>'),xl=K('<div class="nav-footer-icon-container svelte-1cca2eg" part="nav-footer-icon-container"><!></div>'),Cl=K('<div class="nav-footer svelte-1cca2eg" part="nav-footer"><!> <div class="nav-footer-profile-container svelte-1cca2eg"><!></div></div>'),Sl=K('<div part="side-nav-container" data-testid="side-nav-container"><div class="nav-content svelte-1cca2eg" part="nav-content"><div class="nav-main svelte-1cca2eg" part="nav-main"><div class="menu-section svelte-1cca2eg" part="menu-section"><button><div class="icon-container svelte-1cca2eg" part="icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div></button></div> <!></div> <!></div> <div part="expanded-content"><div class="drawer-content svelte-1cca2eg" part="drawer-content"><nav part="sub-navigation" class="svelte-1cca2eg"><!></nav></div></div></div>');const El={hash:"svelte-1cca2eg",code:`.expanded-content.drawer-anim.svelte-1cca2eg {max-width:0;overflow:hidden;pointer-events:none;transition:max-width var(--ai-duration-fast) cubic-bezier(0.4, 0, 0.2, 1);}.expanded-content.drawer-anim.open.svelte-1cca2eg {max-width:var(--sidenav-drawer-width);pointer-events:auto;}.drawer-content.svelte-1cca2eg {width:var(--sidenav-drawer-width);height:100%;display:flex;flex-direction:column;padding-top:var(--ai-size-72);}.drawer-content.svelte-1cca2eg nav:where(.svelte-1cca2eg) {flex:1;overflow-y:auto;overflow-x:hidden;}.menu-button.svelte-1cca2eg {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color var(--ai-transition-ease-fast);}.menu-button.svelte-1cca2eg:disabled,
54
64
  .menu-button.disabled.svelte-1cca2eg {cursor:not-allowed;opacity:0.5;background-color:transparent;}.side-nav-container.svelte-1cca2eg {--sidenav-drawer-width: 15rem;--sidenav-expanded-width: 19.375rem;display:flex;flex-shrink:0;position:relative;z-index:var(--ai-layer-1);height:100%;}.side-nav-container.expanded.svelte-1cca2eg {width:var(--sidenav-expanded-width);min-width:var(--sidenav-drawer-width);max-width:var(--sidenav-expanded-width);height:100%;}.expanded-content.svelte-1cca2eg {display:flex;width:var(--sidenav-drawer-width);opacity:1;flex:none;height:100%;background:var(--ai-color-steel-50);border-right:0.0625rem solid var(--ai-color-steel-100);overflow:hidden;flex-direction:column;}.side-nav-container.expanded.svelte-1cca2eg .expanded-content:where(.svelte-1cca2eg) {width:var(--sidenav-drawer-width);opacity:1;overflow:hidden;}.side-nav-container.svelte-1cca2eg:not(.expanded) .expanded-content:where(.svelte-1cca2eg) {width:0;opacity:0;}.nav-content.svelte-1cca2eg {display:flex;width:var(--ai-size-72);height:100%;padding-bottom:var(--ai-size-16);flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);flex:none;background:var(--ai-color-steel-100);border-right:0.0625rem solid var(--ai-color-steel-200);}.nav-main.svelte-1cca2eg {display:flex;flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);flex:1 0 0;align-self:stretch;}.nav-footer.svelte-1cca2eg {display:flex;padding:var(--ai-size-8) var(--ai-size-4);flex-direction:column;justify-content:center;align-items:center;gap:var(--ai-size-4);align-self:stretch;margin-top:auto;}.menu-section.svelte-1cca2eg {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;align-self:stretch;}.menu-button.svelte-1cca2eg {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;background:none;border:none;cursor:pointer;opacity:1;transition:opacity var(--ai-transition-ease-fast);will-change:opacity;}.menu-button.disabled.svelte-1cca2eg {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-1cca2eg:focus,
55
65
  .nav-item.svelte-1cca2eg:focus,
56
66
  .help-link.svelte-1cca2eg:focus {outline:none;}.menu-button.svelte-1cca2eg:focus .icon-container:where(.svelte-1cca2eg),
@@ -70,9 +80,9 @@
70
80
  .menu-button.svelte-1cca2eg:hover .icon-container:where(.svelte-1cca2eg),
71
81
  .menu-button.svelte-1cca2eg:active .icon-container:where(.svelte-1cca2eg),
72
82
  .help-link.svelte-1cca2eg:hover .icon-container:where(.svelte-1cca2eg),
73
- .help-link.selected.svelte-1cca2eg .icon-container:where(.svelte-1cca2eg) {background-color:var(--ai-color-steel-300);border-radius:var(--ai-size-4);}.nav-item.svelte-1cca2eg {flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--ai-size-4);text-decoration:none;color:var(--ai-color-neutral-600);transition:color var(--ai-transition-ease-fast);height:100%;}.nav-item.svelte-1cca2eg:hover {color:var(--ai-color-neutral-700);}.nav-footer-icon-container.svelte-1cca2eg {align-items:center;display:flex;flex-direction:column;justify-content:center;margin-block-end:var(--ai-size-4);}.nav-footer-profile-container.svelte-1cca2eg {display:flex;padding:var(--ai-size-8) var(--ai-size-4);flex-direction:column;justify-content:center;align-items:center;gap:var(--ai-size-4);align-self:stretch;}.help-link.svelte-1cca2eg {display:flex;align-items:center;justify-content:center;text-decoration:none;color:inherit;}.help-link.svelte-1cca2eg svg {display:block;}`};function Ca(e,t){te(t,!0),St(e,ml);const r=()=>Ge(Ht,"$selectedItem",a),n=()=>Ge(tt,"$isExpanded",a),i=()=>Ge(qn,"$isMenuButtonDisabled",a),[a,l]=rr();let s=m(t,"ssrSelectedItem",7,void 0),o=m(t,"controlledSelectedItem",7,void 0),u=m(t,"onNavToggle",7,void 0),c=m(t,"onNavItemClick",7,void 0),h=m(t,"showAppIcons",7,!0),d=m(t,"hideDiscover",7,!0),f=m(t,"profileMenuData",7),g=m(t,"apiUrl",7),x=m(t,"chatUrl",7),p=m(t,"consoleUrl",7),_=m(t,"discoverUrl",7),S=m(t,"supplementalMenuData",7),I=m(t,"children",7);const N=H(()=>()=>S()?.help?.url?.trim());function L(k,A){try{return new URL(k,A).pathname}catch{return null}}function w(){const k=v(N)();if(!k||k==="#"||k.startsWith("#"))return!1;const A=globalThis.location;if(A?.origin&&A?.pathname){const X=L(k,A.origin);return X!==null&&A.pathname===X}return!1}const E=H(()=>()=>w());let O=Q(!1),U=Q(null),y=Q(null),R=Q(!1),Z=Q(!1),ye=Q(null),Se=Q(null),D=Q(null),Y=Q(null),z=null;function $(k,A){return v(O)?k:A}const J=H(()=>()=>o()??r()),W=H(()=>()=>o()??s()),ee=H(()=>()=>v(W)()),ue=H(()=>()=>v(ee)()==="discover"),Kt=H(()=>()=>v(J)()==="discover"),Fn=H(()=>()=>{switch($(v(J)(),v(W)())){case"chat":return"Chats";case"console":return"Console menu";case"api":return"API documentation menu";case"discover":return"Discover menu";default:return"Page menu"}});function Ze(k){return $(v(J)()===k,v(W)()===k)}function Br(k){return v(y)===k}const mr=H(()=>()=>$(n(),v(ee)()?!v(ue)():!0)),Zn=H(()=>()=>$(v(Kt)(),v(ee)()?v(ue)():!1)),Ol=H(()=>()=>$(n(),v(ee)()?!v(ue)():!0)),Vl=H(()=>()=>v(Z)&&v(R)&&!v(Zn)());cs(()=>{if(typeof window>"u")return;q(O,!0),o()===void 0&&s()&&r()===null&&ke.setSelectedItem(s()),document.documentElement.classList.remove("nav-initially-expanded"),document.documentElement.style.removeProperty("--initial-main-top-padding"),v(U)&&v(U).classList.add("hydrated");const k=typeof window.matchMedia=="function"?window.matchMedia("(hover: hover)"):null,A=Ye=>{q(Z,Ye.matches,!0)};k?(q(Z,k.matches,!0),k.addEventListener("change",A)):q(Z,!1);const X=Ye=>{const Me=Ye,{isMobile:we}=Me.detail;if(we)ke.setExpanded(!1);else{const Ne=v(J)();Ne&&Ne!=="discover"?ke.setExpanded(!0):ke.setExpanded(!1)}};window.addEventListener("layoutTransition",X);const fe=Ye=>{const Me=document.activeElement,we=!!document.querySelector(".profile-context-menu");Ye.key==="Escape"&&n()&&!we&&!(Me&&Me.closest(".profile-context-menu"))&&ke.setExpanded(!1)};window.addEventListener("keydown",fe);const Ee=Ye=>{const Me=Ye,{action:we,isOpen:Ne}=Me.detail;we==="toggle"?ke.toggleExpanded():we==="open"?ke.setExpanded(!0):we==="close"?ke.setExpanded(!1):we==="set"&&typeof Ne=="boolean"&&ke.setExpanded(Ne)};window.addEventListener("graymatter-desktop-nav-control",Ee),z=()=>{window.removeEventListener("graymatter-desktop-nav-control",Ee)};const ve=()=>{v(E)()};return window.addEventListener("popstate",ve),()=>{window.removeEventListener("layoutTransition",X),window.removeEventListener("keydown",fe),window.removeEventListener("popstate",ve),k&&k.removeEventListener("change",A),z&&z()}});function Pl(k){const A=v(N)();(A==="#"||A?.startsWith("#"))&&k.preventDefault()}function jl(){v(Zn)()||(ke.toggleExpanded(),u()?.({expanded:n()}))}function wr(k){if(k!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),o()===void 0&&ke.setSelectedItem(k),k!=="discover")try{Promise.resolve().then(()=>jr).then(({selectedSubNavItemTitle:A})=>{A.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{if(typeof document<"u"){const X=document.getElementById("main-content");if(X){const fe=X.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(fe&&fe.textContent){const Ee=fe.textContent.trim();A.set(Ee),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(Ee))}}}},200)}).catch(A=>{console.log("[DesktopSideNav] Error clearing header state:",A)})}catch(A){console.log("[DesktopSideNav] Import failed for clearing state:",A)}else try{Promise.resolve().then(()=>jr).then(({selectedSubNavItemTitle:A})=>{A.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(A=>{console.log("[DesktopSideNav] Error clearing header state for Discover:",A)})}catch(A){console.log("[DesktopSideNav] Import failed for clearing Discover state:",A)}c()?.({item:k,expanded:n()})}function Fr(k,A){(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),wr(A))}function Zr(k,A){const X=[v(ye),v(Se),v(D),v(Y)],fe=X.length;if(fe)if(k.key==="ArrowDown"){k.preventDefault();const Ee=(A+1)%fe;X[Ee]?.focus()}else if(k.key==="ArrowUp"){k.preventDefault();const Ee=(A-1+fe)%fe;X[Ee]?.focus()}else k.key==="Home"?(k.preventDefault(),X[0]?.focus()):k.key==="End"&&(k.preventDefault(),X[fe-1]?.focus())}var Rl={get ssrSelectedItem(){return s()},set ssrSelectedItem(k=void 0){s(k),b()},get controlledSelectedItem(){return o()},set controlledSelectedItem(k=void 0){o(k),b()},get onNavToggle(){return u()},set onNavToggle(k=void 0){u(k),b()},get onNavItemClick(){return c()},set onNavItemClick(k=void 0){c(k),b()},get showAppIcons(){return h()},set showAppIcons(k=!0){h(k),b()},get hideDiscover(){return d()},set hideDiscover(k=!0){d(k),b()},get profileMenuData(){return f()},set profileMenuData(k){f(k),b()},get apiUrl(){return g()},set apiUrl(k){g(k),b()},get chatUrl(){return x()},set chatUrl(k){x(k),b()},get consoleUrl(){return p()},set consoleUrl(k){p(k),b()},get discoverUrl(){return _()},set discoverUrl(k){_(k),b()},get supplementalMenuData(){return S()},set supplementalMenuData(k){S(k),b()},get children(){return I()},set children(k){I(k),b()}},_r=bl();let $a;var Yn=M(_r),Wn=M(Yn),Jn=M(Wn),rt=M(Jn);let Da;var Aa=M(rt),Ua=M(Aa),Bl=M(Ua);{let k=H(()=>v(Vl)()),A=H(()=>v(Zn)()),X=H(()=>v(Ol)());Rr(Bl,{get isHovered(){return v(k)},get isDisabled(){return v(A)},get isOpen(){return v(X)}})}C(Ua),C(Aa),C(rt),C(Jn);var Fl=de(Jn,2);{var Zl=k=>{var A=hl(),X=M(A),fe=M(X);{var Ee=G=>{var qe=vl();let Kr;var Gr=M(qe),Xr=M(Gr),Gn=M(Xr);{let Mt=H(()=>Ze("discover"));On(Gn,{get isSelected(){return v(Mt)}})}C(Xr),C(Gr),Ke(2),C(qe),Et(qe,Mt=>q(ye,Mt),()=>v(ye)),me((Mt,Xl)=>{F(qe,"href",_()||"#"),Kr=Ce(qe,1,"nav-item discover-item svelte-1cca2eg",null,Kr,Mt),F(qe,"aria-current",Xl)},[()=>({selected:Ze("discover"),hovered:Br("discover")}),()=>Ze("discover")?"page":void 0]),le("click",qe,()=>wr("discover")),le("keydown",qe,Mt=>{Fr(Mt,"discover"),Zr(Mt,0)}),He("mouseenter",qe,()=>q(y,"discover")),He("mouseleave",qe,()=>q(y,null)),T(G,qe)};ae(fe,G=>{d()||G(Ee)})}var ve=de(fe,2);let Ye;var Me=M(ve),we=M(Me),Ne=M(we);{let G=H(()=>Ze("chat"));Vn(Ne,{get isSelected(){return v(G)}})}C(we),C(Me),Ke(2),C(ve),Et(ve,G=>q(Se,G),()=>v(Se));var Te=de(ve,2);let kr;var yr=M(Te),Wr=M(yr),xr=M(Wr);{let G=H(()=>Ze("console"));Pn(xr,{get isSelected(){return v(G)}})}C(Wr),C(yr),Ke(2),C(Te),Et(Te,G=>q(D,G),()=>v(D));var We=de(Te,2);let Jr;var Oa=M(We),Va=M(Oa),Gl=M(Va);{let G=H(()=>Ze("api"));jn(Gl,{get isSelected(){return v(G)}})}C(Va),C(Oa),Ke(2),C(We),Et(We,G=>q(Y,G),()=>v(Y)),C(X),C(A),me((G,qe,Kr,Gr,Xr,Gn)=>{F(ve,"href",x()||"#"),Ye=Ce(ve,1,"nav-item chat-item svelte-1cca2eg",null,Ye,G),F(ve,"aria-current",qe),F(Te,"href",p()||"#"),kr=Ce(Te,1,"nav-item console-item svelte-1cca2eg",null,kr,Kr),F(Te,"aria-current",Gr),F(We,"href",g()||"#"),Jr=Ce(We,1,"nav-item api-item svelte-1cca2eg",null,Jr,Xr),F(We,"aria-current",Gn)},[()=>({selected:Ze("chat"),hovered:Br("chat")}),()=>Ze("chat")?"page":void 0,()=>({selected:Ze("console"),hovered:Br("console")}),()=>Ze("console")?"page":void 0,()=>({selected:Ze("api"),hovered:Br("api")}),()=>Ze("api")?"page":void 0]),le("click",ve,()=>wr("chat")),le("keydown",ve,G=>{Fr(G,"chat"),Zr(G,1)}),He("mouseenter",ve,()=>q(y,"chat")),He("mouseleave",ve,()=>q(y,null)),le("click",Te,()=>wr("console")),le("keydown",Te,G=>{Fr(G,"console"),Zr(G,2)}),He("mouseenter",Te,()=>q(y,"console")),He("mouseleave",Te,()=>q(y,null)),le("click",We,()=>wr("api")),le("keydown",We,G=>{Fr(G,"api"),Zr(G,3)}),He("mouseenter",We,()=>q(y,"api")),He("mouseleave",We,()=>q(y,null)),T(k,A)};ae(Fl,k=>{h()&&k(Zl)})}C(Wn);var Yl=de(Wn,2);{var Wl=k=>{var A=gl(),X=M(A);{var fe=Me=>{var we=pl(),Ne=M(we);let Te;var kr=M(Ne),yr=M(kr),Wr=M(yr);{let xr=H(()=>v(E)());Bn(Wr,{get isSelected(){return v(xr)}})}C(yr),C(kr),C(Ne),C(we),me((xr,We,Jr)=>{Te=Ce(Ne,1,"help-link svelte-1cca2eg",null,Te,xr),F(Ne,"aria-current",We),F(Ne,"href",Jr)},[()=>({selected:v(E)()}),()=>v(E)()?"page":void 0,()=>v(N)()]),le("click",Ne,Pl),T(Me,we)},Ee=H(()=>v(N)());ae(X,Me=>{v(Ee)&&Me(fe)})}var ve=de(X,2),Ye=M(ve);{let Me=H(()=>f()?.userMeta),we=H(()=>f()?.menuItems);Rn(Ye,{get userMeta(){return v(Me)},get menuItems(){return v(we)},ariaLabel:"Open profile menu",menuAlign:"desktop"})}C(ve),C(A),T(k,A)};ae(Yl,k=>{f()&&k(Wl)})}C(Yn);var Yr=de(Yn,2);let Ha;var qa=M(Yr),Kn=M(qa),Jl=M(Kn);Vr(Jl,()=>I()??$e),C(Kn),C(qa),C(Yr),C(_r),Et(_r,k=>q(U,k),()=>v(U)),me((k,A,X,fe,Ee,ve)=>{$a=Ce(_r,1,"side-nav-container svelte-1cca2eg",null,$a,k),Da=Ce(rt,1,"menu-button svelte-1cca2eg",null,Da,{disabled:i()}),rt.disabled=i(),F(rt,"aria-label",A),F(rt,"aria-expanded",X),Ha=Ce(Yr,1,"expanded-content drawer-anim svelte-1cca2eg",null,Ha,fe),F(Yr,"aria-hidden",Ee),F(Kn,"aria-label",ve)},[()=>({expanded:v(mr)()}),()=>v(mr)()?"Close navigation menu":"Open navigation menu",()=>v(mr)()?"true":"false",()=>({open:v(mr)()}),()=>!v(mr)(),()=>v(Fn)()]),le("click",rt,jl),He("mouseenter",rt,()=>q(R,!0)),He("mouseleave",rt,()=>q(R,!1)),He("focus",rt,()=>q(R,!0)),He("blur",rt,()=>q(R,!1)),T(e,_r);var Kl=re(Rl);return l(),Kl}Yt(["click","keydown"]),oe(Ca,{ssrSelectedItem:{},controlledSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},supplementalMenuData:{},children:{}},[],[],{mode:"open"});function Sa(e,t){te(t,!0);let r=m(t,"ssrSelectedItem",7),n=m(t,"controlledSelectedItem",7),i=m(t,"onNavToggle",7),a=m(t,"onNavItemClick",7),l=m(t,"showAppIcons",7,!0),s=m(t,"hideDiscover",7,!0),o=m(t,"profileMenuData",7),u=m(t,"apiUrl",7),c=m(t,"chatUrl",7),h=m(t,"consoleUrl",7),d=m(t,"discoverUrl",7),f=m(t,"supplementalMenuData",7),g=m(t,"children",7);var x={get ssrSelectedItem(){return r()},set ssrSelectedItem(p){r(p),b()},get controlledSelectedItem(){return n()},set controlledSelectedItem(p){n(p),b()},get onNavToggle(){return i()},set onNavToggle(p){i(p),b()},get onNavItemClick(){return a()},set onNavItemClick(p){a(p),b()},get showAppIcons(){return l()},set showAppIcons(p=!0){l(p),b()},get hideDiscover(){return s()},set hideDiscover(p=!0){s(p),b()},get profileMenuData(){return o()},set profileMenuData(p){o(p),b()},get apiUrl(){return u()},set apiUrl(p){u(p),b()},get chatUrl(){return c()},set chatUrl(p){c(p),b()},get consoleUrl(){return h()},set consoleUrl(p){h(p),b()},get discoverUrl(){return d()},set discoverUrl(p){d(p),b()},get supplementalMenuData(){return f()},set supplementalMenuData(p){f(p),b()},get children(){return g()},set children(p){g(p),b()}};return Ca(e,{get ssrSelectedItem(){return r()},get controlledSelectedItem(){return n()},get onNavToggle(){return i()},get onNavItemClick(){return a()},get showAppIcons(){return l()},get hideDiscover(){return s()},get profileMenuData(){return o()},get apiUrl(){return u()},get chatUrl(){return c()},get consoleUrl(){return h()},get discoverUrl(){return d()},get supplementalMenuData(){return f()},get children(){return g()}}),re(x)}customElements.define("graymatter-desktop-side-nav",oe(Sa,{ssrSelectedItem:{},controlledSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},supplementalMenuData:{},children:{}},[],[],{mode:"open"}));var wl=ie('<svg><g><path d="M57.5791 20.4177C57.5791 15.5645 53.7309 11.6187 48.9988 11.6187H40.188C38.6688 11.6187 37.4304 10.3567 37.4304 8.80197C37.4304 7.24729 38.6658 5.98522 40.188 5.98522H56.2373V0H38.8757C34.1466 0 30.2983 3.94877 30.2983 8.80197C30.2983 13.6552 34.1466 17.6039 38.8757 17.6039H47.6865C49.2057 17.6039 50.4442 18.866 50.4442 20.4207C50.4442 21.9754 49.2087 23.2374 47.6865 23.2374H31.0284V29.2197H48.9988C53.7309 29.2197 57.5791 25.2709 57.5791 20.4207V20.4177Z"></path><path d="M82.1466 24.7153L82.188 24.7685L83.6747 29.2197H90.6914L80.917 0H68.3525L58.5781 29.2167H65.5949L67.0993 24.7153H82.1466ZM69.186 18.4818L73.3653 5.98522H75.9013L75.919 6.03547L80.1161 18.5793H69.1535L69.186 18.4818Z"></path><path d="M27.198 0H20.5626V15.8158C20.5626 21.4345 16.9626 23.4355 13.5961 23.4355C9.03842 23.4355 6.62956 20.799 6.62956 15.8158V0H0V17.0069C0 20.6985 1.46305 24.0532 4.11724 26.4532C6.64729 28.7409 10.0138 30 13.599 30C20.3586 30 27.198 25.5369 27.198 17.0039V0Z"></path><path d="M101.708 9.78915H93.8662V29.2197H101.708V9.78915Z"></path><path d="M101.823 0H93.8662V5.98227H101.823V0Z"></path></g></svg>'),_l=ie('<svg><path d="M38.1538 13.6118C38.1538 10.3764 35.6038 7.74581 32.4682 7.74581H26.6298C25.6231 7.74581 24.8025 6.90443 24.8025 5.86798C24.8025 4.83153 25.6211 3.99015 26.6298 3.99015H37.2646V0H25.7602C22.6266 0 20.0765 2.63251 20.0765 5.86798C20.0765 9.10345 22.6266 11.736 25.7602 11.736H31.5986C32.6053 11.736 33.4259 12.5773 33.4259 13.6138C33.4259 14.6502 32.6072 15.4916 31.5986 15.4916H20.5603V19.4798H32.4682C35.6038 19.4798 38.1538 16.8473 38.1538 13.6138V13.6118Z"></path><path d="M54.4317 16.4768L54.4591 16.5123L55.4442 19.4798H60.0938L53.6169 0H45.2912L38.8143 19.4778H43.4639L44.4608 16.4768H54.4317ZM48.6129 3.99015H50.2933L50.305 4.02365L53.0861 12.3862H45.822L48.6129 3.99015Z"></path><path d="M18.0224 0H13.6255V10.5438C13.6255 14.2897 11.24 15.6236 9.00924 15.6236C5.98918 15.6236 4.39298 13.866 4.39298 10.5438V0H0V11.3379C0 13.799 0.969472 16.0355 2.72823 17.6355C4.40473 19.1606 6.6355 20 9.01119 20C13.4903 20 18.0224 17.0246 18.0224 11.336V0Z"></path><path d="M67.3965 6.52612H62.2005V19.4798H67.3965V6.52612Z"></path><path d="M70.6978 2.72727C70.5495 2.72727 70.4078 2.71191 70.2726 2.68118C70.1374 2.64789 70.0178 2.59795 69.9138 2.53137C69.8097 2.46223 69.7278 2.37772 69.668 2.27785C69.6082 2.17542 69.5783 2.05506 69.5783 1.91677C69.5783 1.90141 69.5783 1.88604 69.5783 1.87068C69.5809 1.85531 69.5822 1.84379 69.5822 1.83611H70.0932C70.0932 1.84123 70.0919 1.85147 70.0893 1.86684C70.0893 1.87964 70.0893 1.89117 70.0893 1.90141C70.0893 1.98592 70.114 2.0589 70.1634 2.12036C70.2128 2.17926 70.2843 2.22535 70.3779 2.25864C70.4715 2.28937 70.582 2.30474 70.7095 2.30474C70.7953 2.30474 70.8707 2.29962 70.9357 2.28937C71.0033 2.27913 71.0605 2.26504 71.1073 2.24712C71.1567 2.22663 71.197 2.20359 71.2282 2.17798C71.2594 2.14981 71.2815 2.11908 71.2945 2.08579C71.3101 2.0525 71.3179 2.01665 71.3179 1.97823C71.3179 1.90397 71.2945 1.84251 71.2477 1.79385C71.2009 1.7452 71.1372 1.70423 71.0566 1.67093C70.9786 1.63764 70.8889 1.60819 70.7875 1.58259C70.6887 1.55442 70.586 1.52625 70.4793 1.49808C70.3753 1.46991 70.2726 1.43662 70.1712 1.39821C70.0724 1.35723 69.9827 1.30858 69.9021 1.25224C69.824 1.1959 69.7616 1.12548 69.7148 1.04097C69.668 0.953905 69.6446 0.850192 69.6446 0.729833C69.6446 0.606914 69.6706 0.49936 69.7226 0.40717C69.7772 0.314981 69.8526 0.239437 69.9489 0.180538C70.0477 0.119078 70.1621 0.0742637 70.2921 0.0460946C70.4221 0.0153649 70.5638 0 70.7173 0C70.8603 0 70.9942 0.0153649 71.119 0.0460946C71.2464 0.0742637 71.3582 0.120358 71.4545 0.184379C71.5507 0.245839 71.6261 0.325224 71.6807 0.422535C71.7353 0.517286 71.7626 0.631242 71.7626 0.764405V0.810499H71.2594V0.772087C71.2594 0.697823 71.236 0.635083 71.1892 0.583867C71.145 0.53265 71.0813 0.492958 70.9981 0.464789C70.9175 0.43662 70.8226 0.422535 70.7134 0.422535C70.5963 0.422535 70.4962 0.434059 70.413 0.457106C70.3298 0.477593 70.2661 0.509603 70.2219 0.553137C70.1777 0.59411 70.1556 0.645326 70.1556 0.706786C70.1556 0.770807 70.179 0.824584 70.2258 0.868118C70.2726 0.911652 70.335 0.948784 70.413 0.979513C70.4936 1.01024 70.5833 1.03841 70.6822 1.06402C70.7836 1.08963 70.8863 1.1178 70.9903 1.14853C71.0969 1.1767 71.1996 1.20999 71.2984 1.2484C71.3999 1.28681 71.4896 1.33547 71.5676 1.39437C71.6482 1.4507 71.7119 1.52113 71.7587 1.60563C71.8055 1.69014 71.8289 1.79129 71.8289 1.90909C71.8289 2.10627 71.7795 2.26504 71.6807 2.3854C71.5845 2.50576 71.4506 2.59283 71.2789 2.64661C71.1099 2.70038 70.9162 2.72727 70.6978 2.72727Z"></path><path d="M72.3008 2.68118V0.0460946H73.1004L73.5217 1.51344C73.5373 1.56466 73.5529 1.62228 73.5685 1.6863C73.5841 1.75032 73.5984 1.81178 73.6114 1.87068C73.627 1.92958 73.6387 1.98079 73.6465 2.02433H73.6777C73.6829 1.98592 73.6907 1.93854 73.7011 1.8822C73.7115 1.82586 73.7232 1.76568 73.7362 1.70166C73.7518 1.63508 73.7687 1.57106 73.7869 1.5096L74.2082 0.0460946H75V2.68118H74.4929V1.34827C74.4929 1.23047 74.4942 1.11268 74.4968 0.994878C74.4994 0.877081 74.502 0.775928 74.5046 0.691421C74.5098 0.606914 74.5124 0.556978 74.5124 0.541613H74.4812C74.476 0.564661 74.463 0.614597 74.4422 0.691421C74.4214 0.768246 74.3993 0.851472 74.3759 0.941101C74.3525 1.03073 74.3317 1.10755 74.3135 1.17157L73.8727 2.68118H73.4047L72.9639 1.17542C72.9483 1.12164 72.9301 1.05762 72.9093 0.983355C72.8911 0.90653 72.8716 0.828425 72.8508 0.74904C72.8326 0.669654 72.8157 0.600512 72.8001 0.541613H72.7689C72.7715 0.610755 72.7741 0.693982 72.7767 0.791293C72.7793 0.886043 72.7819 0.983355 72.7845 1.08323C72.7871 1.18054 72.7884 1.26889 72.7884 1.34827V2.68118H72.3008Z"></path><path d="M67.4728 0H62.2005V3.98818H67.4728V0Z"></path></svg>');const kl={hash:"svelte-tssf2h",code:"svg.svelte-tssf2h {display:block;}"};function Jt(e,t){te(t,!0),St(e,kl);const r=m(t,"isInverted",7,!1),n=m(t,"width",7,102),i=m(t,"height",7,30),a=m(t,"showServiceMark",7,!1),l=pr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]),s=H(()=>()=>r()?"var(--ai-color-white)":"var(--ai-color-black)");var o={get isInverted(){return r()},set isInverted(f=!1){r(f),b()},get width(){return n()},set width(f=102){n(f),b()},get height(){return i()},set height(f=30){i(f),b()},get showServiceMark(){return a()},set showServiceMark(f=!1){a(f),b()}},u=qr(),c=Tt(u);{var h=f=>{var g=wl();hr(g,x=>({width:n(),height:i(),viewBox:"0 0 102 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${x??""};`,...l}),[()=>v(s)()],void 0,void 0,"svelte-tssf2h"),T(f,g)},d=f=>{var g=_l();hr(g,x=>({width:n(),height:i(),viewBox:"0 0 75 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${x??""};`,...l}),[()=>v(s)()],void 0,void 0,"svelte-tssf2h"),T(f,g)};ae(c,f=>{a()?f(d,-1):f(h)})}return T(e,u),re(o)}oe(Jt,{isInverted:{},width:{},height:{},showServiceMark:{}},[],[],{mode:"open"});function Ea(e,t){te(t,!0);let r=m(t,"isInverted",7,!1),n=m(t,"width",7,void 0),i=m(t,"height",7,void 0),a=m(t,"showServiceMark",7,!1),l=pr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]);var s={get isInverted(){return r()},set isInverted(o=!1){r(o),b()},get width(){return n()},set width(o=void 0){n(o),b()},get height(){return i()},set height(o=void 0){i(o),b()},get showServiceMark(){return a()},set showServiceMark(o=!1){a(o),b()}};return Jt(e,pa({get isInverted(){return r()},get width(){return n()},get height(){return i()},get showServiceMark(){return a()}},()=>l)),re(s)}customElements.define("graymatter-logo",oe(Ea,{isInverted:{attribute:"is-inverted",reflect:!0,type:"Boolean"},width:{attribute:"width",reflect:!0,type:"Number"},height:{attribute:"height",reflect:!0,type:"Number"},showServiceMark:{attribute:"show-service-mark",reflect:!0,type:"Boolean"}},[],[],{mode:"open"}));var yl=ne('<a><div class="icon svelte-1ya5jgu"><!></div> <span class="label svelte-1ya5jgu"> </span></a>'),xl=ne('<nav class="mobile-bottom-nav" part="mobile-bottom-nav"></nav>');const Cl={hash:"svelte-1ya5jgu",code:".nav-item.svelte-1ya5jgu {flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--ai-size-4);text-decoration:none;color:var(--ai-color-neutral-600);transition:color var(--ai-transition-ease-fast);height:100%;}.nav-item.active.svelte-1ya5jgu {color:var(--ai-color-neutral-900);}.nav-item.active.svelte-1ya5jgu .icon:where(.svelte-1ya5jgu) {background-color:var(--ai-color-steel-300);border-radius:var(--ai-size-8);}.nav-item.svelte-1ya5jgu:hover {color:var(--ai-color-neutral-700);}.icon.svelte-1ya5jgu {width:var(--ai-size-24);height:var(--ai-size-24);margin-bottom:var(--ai-size-2);display:flex;align-items:center;justify-content:center;padding:var(--ai-size-2);transition:background-color var(--ai-transition-ease-fast);}.label.svelte-1ya5jgu {font-size:0.6875rem; /* 11px */font-weight:500;line-height:1;text-align:center;}"};function Ma(e,t){te(t,!0),St(e,Cl);const r=()=>Ge(Ht,"$selectedItem",n),[n,i]=rr();let a=m(t,"onNavItemClick",7),l=m(t,"showAppIcons",7,!0),s=m(t,"hideDiscover",7,!0),o=m(t,"apiUrl",7),u=m(t,"chatUrl",7),c=m(t,"consoleUrl",7),h=m(t,"discoverUrl",7),d=m(t,"controlledSelectedItem",7,void 0);const f=H(()=>()=>d()??r()),g=H(()=>()=>[{id:"discover",label:"Discover",icon:On,href:h()||"#"},{id:"chat",label:"Chat",icon:Vn,href:u()||"#"},{id:"console",label:"Console",icon:Pn,href:c()||"#"},{id:"api",label:"API",icon:jn,href:o()||"#"}]),x=H(()=>()=>s()?v(g)().filter(w=>w.id!=="discover"):v(g)());function p(w){if(w!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),d()===void 0&&ke.setSelectedItem(w),w!=="discover")try{Promise.resolve().then(()=>jr).then(({selectedSubNavItemTitle:E})=>{E.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{if(typeof document>"u")return;const O=document.getElementById("main-content");if(O){const U=O.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(U&&U.textContent){const y=U.textContent.trim();E.set(y),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(y))}}},200)}).catch(E=>{console.log("[MobileBottomNav] Error clearing header state:",E)})}catch(E){console.log("[MobileBottomNav] Import failed for clearing state:",E)}else try{Promise.resolve().then(()=>jr).then(({selectedSubNavItemTitle:E})=>{E.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(E=>{console.log("[MobileBottomNav] Error clearing header state for Discover:",E)})}catch(E){console.log("[MobileBottomNav] Import failed for clearing Discover state:",E)}a()?.({item:w,expanded:!1})}var _={get onNavItemClick(){return a()},set onNavItemClick(w){a(w),b()},get showAppIcons(){return l()},set showAppIcons(w=!0){l(w),b()},get hideDiscover(){return s()},set hideDiscover(w=!0){s(w),b()},get apiUrl(){return o()},set apiUrl(w){o(w),b()},get chatUrl(){return u()},set chatUrl(w){u(w),b()},get consoleUrl(){return c()},set consoleUrl(w){c(w),b()},get discoverUrl(){return h()},set discoverUrl(w){h(w),b()},get controlledSelectedItem(){return d()},set controlledSelectedItem(w=void 0){d(w),b()}},S=qr(),I=Tt(S);{var N=w=>{var E=xl();ia(E,21,()=>v(x)(),ds,(O,U)=>{var y=yl();let R;var Z=M(y),ye=M(Z);{let Y=H(()=>v(f)()===v(U).id);ps(ye,()=>v(U).icon,(z,$)=>{$(z,{get isSelected(){return v(Y)}})})}C(Z);var Se=de(Z,2),D=M(Se,!0);C(Se),C(y),me(Y=>{F(y,"href",v(U).href),R=Ce(y,1,`nav-item ${v(U).id}-item`,"svelte-1ya5jgu",R,Y),F(y,"part",`${v(U).id}-item`),cr(D,v(U).label)},[()=>({active:v(f)()===v(U).id})]),le("click",y,()=>p(v(U).id)),T(O,y)}),C(E),T(w,E)};ae(I,w=>{l()&&w(N)})}T(e,S);var L=re(_);return i(),L}Yt(["click"]),oe(Ma,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},controlledSelectedItem:{}},[],[],{mode:"open"});function Ia(e,t){te(t,!0);let r=m(t,"onNavItemClick",7),n=m(t,"showAppIcons",7,!0),i=m(t,"hideDiscover",7,!0),a=m(t,"apiUrl",7),l=m(t,"chatUrl",7),s=m(t,"consoleUrl",7),o=m(t,"discoverUrl",7),u=m(t,"controlledSelectedItem",7);var c={get onNavItemClick(){return r()},set onNavItemClick(h){r(h),b()},get showAppIcons(){return n()},set showAppIcons(h=!0){n(h),b()},get hideDiscover(){return i()},set hideDiscover(h=!0){i(h),b()},get apiUrl(){return a()},set apiUrl(h){a(h),b()},get chatUrl(){return l()},set chatUrl(h){l(h),b()},get consoleUrl(){return s()},set consoleUrl(h){s(h),b()},get discoverUrl(){return o()},set discoverUrl(h){o(h),b()},get controlledSelectedItem(){return u()},set controlledSelectedItem(h){u(h),b()}};return Ma(e,{get onNavItemClick(){return r()},get showAppIcons(){return n()},get hideDiscover(){return i()},get apiUrl(){return a()},get chatUrl(){return l()},get consoleUrl(){return s()},get discoverUrl(){return o()},get controlledSelectedItem(){return u()}}),re(c)}customElements.define("graymatter-mobile-bottom-nav",oe(Ia,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},controlledSelectedItem:{}},[],[],{mode:"open"}));var Sl=ne('<div class="mobile-overlay" role="button" tabindex="0" aria-label="Close navigation menu (Escape key supported)" part="mobile-overlay"></div>'),El=ne('<a part="logo-link" class="logo-link svelte-otdehu"><!></a>'),Ml=ne('<div class="subnav-section svelte-otdehu" part="subnav-section"><!></div>'),Il=ne('<div class="no-subnav-message svelte-otdehu" part="no-subnav-message"><p class="svelte-otdehu">Select a section from the bottom navigation</p></div>'),Ll=ne('<!> <div part="mobile-side-menu"><div class="menu-header svelte-otdehu" part="menu-header"><button class="close-button svelte-otdehu" aria-label="Close navigation menu" part="close-button"><!></button> <div class="logo-container svelte-otdehu" part="logo-container"><!></div></div> <div class="menu-content svelte-otdehu" part="menu-content"><!></div></div>',1);const zl={hash:"svelte-otdehu",code:".no-subnav-message.svelte-otdehu {padding:var(--ai-size-16);text-align:center;color:var(--ai-color-steel-600);font-size:var(--ai-size-14);}.no-subnav-message.svelte-otdehu p:where(.svelte-otdehu) {margin:0;}.mobile-side-menu.svelte-otdehu {position:fixed;top:0;left:0;bottom:0;width:80%;max-width:85vw;background:var(--ai-color-steel-50);transform:translateX(-100%);transition:transform var(--ai-transition-ease-medium);z-index:var(--ai-layer-50);flex-direction:column;box-shadow:var(--ai-size-2) 0 var(--ai-size-10) #0000001a;}.mobile-side-menu.open.svelte-otdehu {transform:translateX(0);}.menu-header.svelte-otdehu {display:flex;align-items:center;padding:var(--ai-size-16);gap:var(--ai-size-16);}.mobile-side-menu.svelte-otdehu .logo-container:where(.svelte-otdehu) {display:flex;}.logo-link.svelte-otdehu {display:flex;}.close-button.svelte-otdehu {display:flex;align-items:center;justify-content:center;padding:0;border:none;background:none;color:var(--ai-color-neutral-700);cursor:pointer;border-radius:var(--ai-size-2);transition:background-color var(--ai-transition-ease-fast);}.close-button.svelte-otdehu:hover {background-color:var(--ai-color-neutral-100);}.menu-content.svelte-otdehu {flex:1;overflow-y:auto;padding:0;}.subnav-section.svelte-otdehu {overflow-y:auto;max-height:calc(100vh - 4rem); /* leave space for header/close */}"};function La(e,t){te(t,!0),St(e,zl);const r=()=>Ge(tt,"$isExpanded",i),n=()=>Ge(Ht,"$selectedItem",i),[i,a]=rr();let l=Q(null),s=null,o=m(t,"logoLinkUrl",7),u=m(t,"logoLinkLabel",7),c=m(t,"children",7);function h(D){if(s=D.detail.hash,d(),s){const z=document.getElementById(s);if(z){const $=document.getElementById("main-content-mobile"),J=$?$.querySelector(`[id="${s}"]`):null;if(J&&$){const W=J.getBoundingClientRect(),ee=$.getBoundingClientRect(),ue=$.scrollTop+W.top-ee.top;$.scrollTo({top:ue,behavior:"auto"}),setTimeout(()=>{window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:J.textContent?.trim(),id:J.id}}))},100)}else{let W=z.parentElement;for(;W&&W!==document.body;){const ee=window.getComputedStyle(W);if(ee.overflowY==="auto"||ee.overflowY==="scroll")break;W=W.parentElement}W&&W!==document.body?document.getElementById("main-content")?(z.scrollIntoView({behavior:"auto",block:"start"}),setTimeout(()=>{window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:z.textContent?.trim(),id:z.id}}))},100)):z.scrollIntoView({behavior:"auto",block:"start"}):z.scrollIntoView({behavior:"auto",block:"start"})}}s=null}}Ft(()=>{if(typeof window>"u")return;window.addEventListener("mobileAnchorNavigate",h);const D=()=>{d()};window.addEventListener("closeMobileMenu",D);const Y=$=>{const J=$,{isMobile:W}=J.detail;W&&ke.setExpanded(!1)};window.addEventListener("layoutTransition",Y);const z=$=>{const J=document.activeElement;$.key==="Escape"&&r()&&!(J&&J.closest(".profile-context-menu"))&&d()};return window.addEventListener("keydown",z),()=>{window.removeEventListener("mobileAnchorNavigate",h),window.removeEventListener("closeMobileMenu",D),window.removeEventListener("layoutTransition",Y),window.removeEventListener("keydown",z)}});function d(){ke.setExpanded(!1)}var f={get logoLinkUrl(){return o()},set logoLinkUrl(D){o(D),b()},get logoLinkLabel(){return u()},set logoLinkLabel(D){u(D),b()},get children(){return c()},set children(D){c(D),b()}},g=Ll(),x=Tt(g);{var p=D=>{var Y=Sl();le("click",Y,d),le("keydown",Y,z=>{(z.key==="Enter"||z.key===" ")&&d()}),T(D,Y)};ae(x,D=>{r()&&D(p)})}var _=de(x,2);let S;var I=M(_),N=M(I),L=M(N);Rr(L,{isOpen:!0}),C(N);var w=de(N,2),E=M(w);{var O=D=>{var Y=El(),z=M(Y);Jt(z,{width:75,height:22}),C(Y),me(()=>{F(Y,"href",o()),F(Y,"aria-label",u())}),T(D,Y)},U=D=>{Jt(D,{width:75,height:22})};ae(E,D=>{o()?D(O):D(U,-1)})}C(w),C(I);var y=de(I,2),R=M(y);{var Z=D=>{var Y=Ml(),z=M(Y);Vr(z,()=>c()??$e),C(Y),T(D,Y)},ye=D=>{var Y=Il();T(D,Y)};ae(R,D=>{n()&&n()!=="discover"?D(Z):D(ye,-1)})}C(y),C(_),Et(_,D=>q(l,D),()=>v(l)),me(()=>S=Ce(_,1,"mobile-side-menu svelte-otdehu",null,S,{open:r()})),le("click",N,d),T(e,g);var Se=re(f);return a(),Se}Yt(["click","keydown"]),oe(La,{logoLinkUrl:{},logoLinkLabel:{},children:{}},[],[],{mode:"open"});function za(e,t){te(t,!0);let r=m(t,"logoLinkUrl",7),n=m(t,"logoLinkLabel",7),i=m(t,"children",7);var a={get logoLinkUrl(){return r()},set logoLinkUrl(l){r(l),b()},get logoLinkLabel(){return n()},set logoLinkLabel(l){n(l),b()},get children(){return i()},set children(l){i(l),b()}};return La(e,{get logoLinkUrl(){return r()},get logoLinkLabel(){return n()},get children(){return i()}}),re(a)}customElements.define("graymatter-mobile-side-menu",oe(za,{logoLinkUrl:{},logoLinkLabel:{},children:{}},[],[],{mode:"open"}));var Nl=ne('<a class="display-flex"><!></a>'),Tl=ne('<a title="Help" aria-label="Help"><span class="icon-container svelte-1iraudq"><!></span></a>'),$l=ne('<nav class="mobile-top-nav svelte-1iraudq" part="mobile-top-nav"><button aria-label="Open navigation menu" part="menu-button"><!></button> <div class="brand svelte-1iraudq"><!> <span class="brand-text svelte-1iraudq"> </span></div> <!> <!></nav>');const Dl={hash:"svelte-1iraudq",code:`.menu-button.svelte-1iraudq {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color var(--ai-transition-ease-fast);}.menu-button.svelte-1iraudq:disabled,
83
+ .help-link.selected.svelte-1cca2eg .icon-container:where(.svelte-1cca2eg) {background-color:var(--ai-color-steel-300);border-radius:var(--ai-size-4);}.nav-item.svelte-1cca2eg {flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--ai-size-4);text-decoration:none;color:var(--ai-color-neutral-600);transition:color var(--ai-transition-ease-fast);height:100%;}.nav-item.svelte-1cca2eg:hover {color:var(--ai-color-neutral-700);}.nav-footer-icon-container.svelte-1cca2eg {align-items:center;display:flex;flex-direction:column;justify-content:center;margin-block-end:var(--ai-size-4);}.nav-footer-profile-container.svelte-1cca2eg {display:flex;padding:var(--ai-size-8) var(--ai-size-4);flex-direction:column;justify-content:center;align-items:center;gap:var(--ai-size-4);align-self:stretch;}.help-link.svelte-1cca2eg {display:flex;align-items:center;justify-content:center;text-decoration:none;color:inherit;}.help-link.svelte-1cca2eg svg {display:block;}`};function To(e,t){re(t,!0),ht(e,El);const r=()=>Je(Vt,"$selectedItem",o),n=()=>Je(tt,"$isExpanded",o),i=()=>Je(Pn,"$isMenuButtonDisabled",o),[o,l]=sr();let s=w(t,"ssrSelectedItem",7,void 0),a=w(t,"controlledSelectedItem",7,void 0),u=w(t,"onNavToggle",7,void 0),c=w(t,"onNavItemClick",7,void 0),h=w(t,"showAppIcons",7,!0),d=w(t,"hideDiscover",7,!0),v=w(t,"profileMenuData",7),g=w(t,"apiUrl",7),y=w(t,"chatUrl",7),p=w(t,"consoleUrl",7),_=w(t,"discoverUrl",7),M=w(t,"supplementalMenuData",7),$=w(t,"children",7);const N=O(()=>()=>M()?.help?.url?.trim());function z(C,q){try{return new URL(C,q).pathname}catch{return null}}function b(){const C=f(N)();if(!C||C==="#"||C.startsWith("#"))return!1;const q=globalThis.location;if(q?.origin&&q?.pathname){const te=z(C,q.origin);return te!==null&&q.pathname===te}return!1}const k=O(()=>()=>b());let A=Q(!1),L=Q(null),T=Q(null),P=Q(!1),W=Q(!1),me=Q(null),de=Q(null),H=Q(null),x=Q(null),S=null;function U(C,q){return f(A)?C:q}const G=O(()=>()=>a()??r()),Y=O(()=>()=>a()??s()),ee=O(()=>()=>f(Y)()),ke=O(()=>()=>f(ee)()==="discover"),Qt=O(()=>()=>f(G)()==="discover"),yr=O(()=>()=>{switch(U(f(G)(),f(Y)())){case"chat":return"Chats";case"console":return"Console menu";case"api":return"API documentation menu";case"discover":return"Discover menu";default:return"Page menu"}});function $e(C){return U(f(G)()===C,f(Y)()===C)}function er(C){return f(T)===C}const xr=O(()=>()=>U(n(),f(ee)()?!f(ke)():!0)),Gn=O(()=>()=>U(f(Qt)(),f(ee)()?f(ke)():!1)),Wl=O(()=>()=>U(n(),f(ee)()?!f(ke)():!0)),Yl=O(()=>()=>f(W)&&f(P)&&!f(Gn)());qn(()=>{if(typeof window>"u")return;V(A,!0),a()===void 0&&s()&&r()===null&&Ce.setSelectedItem(s()),document.documentElement.classList.remove("nav-initially-expanded"),document.documentElement.style.removeProperty("--initial-main-top-padding"),f(L)&&f(L).classList.add("hydrated");const C=typeof window.matchMedia=="function"?window.matchMedia("(hover: hover)"):null,q=We=>{V(W,We.matches,!0)};C?(V(W,C.matches,!0),C.addEventListener("change",q)):V(W,!1);const te=We=>{const Le=We,{isMobile:ye}=Le.detail;if(ye)Ce.setExpanded(!1);else{const pt=f(G)();pt&&pt!=="discover"?Ce.setExpanded(!0):Ce.setExpanded(!1)}};window.addEventListener("layoutTransition",te);const fe=We=>{const Le=document.activeElement,ye=!!document.querySelector(".profile-context-menu");We.key==="Escape"&&n()&&!ye&&!(Le&&Le.closest(".profile-context-menu"))&&Ce.setExpanded(!1)};window.addEventListener("keydown",fe);const Ie=We=>{const Le=We,{action:ye,isOpen:pt}=Le.detail;ye==="toggle"?Ce.toggleExpanded():ye==="open"?Ce.setExpanded(!0):ye==="close"?Ce.setExpanded(!1):ye==="set"&&typeof pt=="boolean"&&Ce.setExpanded(pt)};window.addEventListener("graymatter-desktop-nav-control",Ie),S=()=>{window.removeEventListener("graymatter-desktop-nav-control",Ie)};const ve=()=>{f(k)()};return window.addEventListener("popstate",ve),()=>{window.removeEventListener("layoutTransition",te),window.removeEventListener("keydown",fe),window.removeEventListener("popstate",ve),C&&C.removeEventListener("change",q),S&&S()}});function Gl(C){const q=f(N)();(q==="#"||q?.startsWith("#"))&&C.preventDefault()}function Jl(){f(Gn)()||(Ce.toggleExpanded(),u()?.({expanded:n()}))}function Cr(C){if(C!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),a()===void 0&&Ce.setSelectedItem(C),C!=="discover")try{Promise.resolve().then(()=>Br).then(({selectedSubNavItemTitle:q})=>{q.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{if(typeof document<"u"){const te=document.getElementById("main-content");if(te){const fe=te.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(fe&&fe.textContent){const Ie=fe.textContent.trim();q.set(Ie),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(Ie))}}}},200)}).catch(q=>{console.log("[DesktopSideNav] Error clearing header state:",q)})}catch(q){console.log("[DesktopSideNav] Import failed for clearing state:",q)}else try{Promise.resolve().then(()=>Br).then(({selectedSubNavItemTitle:q})=>{q.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(q=>{console.log("[DesktopSideNav] Error clearing header state for Discover:",q)})}catch(q){console.log("[DesktopSideNav] Import failed for clearing Discover state:",q)}c()?.({item:C,expanded:n()})}function Wr(C,q){(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),Cr(q))}function Yr(C,q){const te=[f(me),f(de),f(H),f(x)],fe=te.length;if(fe)if(C.key==="ArrowDown"){C.preventDefault();const Ie=(q+1)%fe;te[Ie]?.focus()}else if(C.key==="ArrowUp"){C.preventDefault();const Ie=(q-1+fe)%fe;te[Ie]?.focus()}else C.key==="Home"?(C.preventDefault(),te[0]?.focus()):C.key==="End"&&(C.preventDefault(),te[fe-1]?.focus())}var Kl={get ssrSelectedItem(){return s()},set ssrSelectedItem(C=void 0){s(C),m()},get controlledSelectedItem(){return a()},set controlledSelectedItem(C=void 0){a(C),m()},get onNavToggle(){return u()},set onNavToggle(C=void 0){u(C),m()},get onNavItemClick(){return c()},set onNavItemClick(C=void 0){c(C),m()},get showAppIcons(){return h()},set showAppIcons(C=!0){h(C),m()},get hideDiscover(){return d()},set hideDiscover(C=!0){d(C),m()},get profileMenuData(){return v()},set profileMenuData(C){v(C),m()},get apiUrl(){return g()},set apiUrl(C){g(C),m()},get chatUrl(){return y()},set chatUrl(C){y(C),m()},get consoleUrl(){return p()},set consoleUrl(C){p(C),m()},get discoverUrl(){return _()},set discoverUrl(C){_(C),m()},get supplementalMenuData(){return M()},set supplementalMenuData(C){M(C),m()},get children(){return $()},set children(C){$(C),m()}},Sr=Sl();let jo;var Jn=I(Sr),Kn=I(Jn),Xn=I(Kn),rt=I(Xn);let Po;var Ro=I(rt),Bo=I(Ro),Xl=I(Bo);{let C=O(()=>f(Yl)()),q=O(()=>f(Gn)()),te=O(()=>f(Wl)());Fr(Xl,{get isHovered(){return f(C)},get isDisabled(){return f(q)},get isOpen(){return f(te)}})}E(Bo),E(Ro),E(rt),E(Xn);var Ql=le(Xn,2);{var eu=C=>{var q=kl(),te=I(q),fe=I(te);{var Ie=X=>{var Oe=_l();let Qr;var en=I(Oe),tn=I(en),ri=I(tn);{let Lt=O(()=>$e("discover"));Rn(ri,{get isSelected(){return f(Lt)}})}E(tn),E(en),Ge(2),E(Oe),et(Oe,Lt=>V(me,Lt),()=>f(me)),ge((Lt,ou)=>{Z(Oe,"href",_()||"#"),Qr=_e(Oe,1,"nav-item discover-item svelte-1cca2eg",null,Qr,Lt),Z(Oe,"aria-current",ou)},[()=>({selected:$e("discover"),hovered:er("discover")}),()=>$e("discover")?"page":void 0]),oe("click",Oe,()=>Cr("discover")),oe("keydown",Oe,Lt=>{Wr(Lt,"discover"),Yr(Lt,0)}),Me("mouseenter",Oe,()=>V(T,"discover")),Me("mouseleave",Oe,()=>V(T,null)),D(X,Oe)};ie(fe,X=>{d()||X(Ie)})}var ve=le(fe,2);let We;var Le=I(ve),ye=I(Le),pt=I(ye);{let X=O(()=>$e("chat"));Bn(pt,{get isSelected(){return f(X)}})}E(ye),E(Le),Ge(2),E(ve),et(ve,X=>V(de,X),()=>f(de));var qe=le(ve,2);let ei;var lt=I(qe),Er=I(lt),Jr=I(Er);{let X=O(()=>$e("console"));Fn(Jr,{get isSelected(){return f(X)}})}E(Er),E(lt),Ge(2),E(qe),et(qe,X=>V(H,X),()=>f(H));var He=le(qe,2);let Kr;var tr=I(He),Xr=I(tr),ti=I(Xr);{let X=O(()=>$e("api"));Zn(ti,{get isSelected(){return f(X)}})}E(Xr),E(tr),Ge(2),E(He),et(He,X=>V(x,X),()=>f(x)),E(te),E(q),ge((X,Oe,Qr,en,tn,ri)=>{Z(ve,"href",y()||"#"),We=_e(ve,1,"nav-item chat-item svelte-1cca2eg",null,We,X),Z(ve,"aria-current",Oe),Z(qe,"href",p()||"#"),ei=_e(qe,1,"nav-item console-item svelte-1cca2eg",null,ei,Qr),Z(qe,"aria-current",en),Z(He,"href",g()||"#"),Kr=_e(He,1,"nav-item api-item svelte-1cca2eg",null,Kr,tn),Z(He,"aria-current",ri)},[()=>({selected:$e("chat"),hovered:er("chat")}),()=>$e("chat")?"page":void 0,()=>({selected:$e("console"),hovered:er("console")}),()=>$e("console")?"page":void 0,()=>({selected:$e("api"),hovered:er("api")}),()=>$e("api")?"page":void 0]),oe("click",ve,()=>Cr("chat")),oe("keydown",ve,X=>{Wr(X,"chat"),Yr(X,1)}),Me("mouseenter",ve,()=>V(T,"chat")),Me("mouseleave",ve,()=>V(T,null)),oe("click",qe,()=>Cr("console")),oe("keydown",qe,X=>{Wr(X,"console"),Yr(X,2)}),Me("mouseenter",qe,()=>V(T,"console")),Me("mouseleave",qe,()=>V(T,null)),oe("click",He,()=>Cr("api")),oe("keydown",He,X=>{Wr(X,"api"),Yr(X,3)}),Me("mouseenter",He,()=>V(T,"api")),Me("mouseleave",He,()=>V(T,null)),D(C,q)};ie(Ql,C=>{h()&&C(eu)})}E(Kn);var tu=le(Kn,2);{var ru=C=>{var q=Cl(),te=I(q);{var fe=Le=>{var ye=xl(),pt=I(ye);Zr(pt,{text:"User Guide",position:"right",children:(qe,ei)=>{var lt=yl();let Er;var Jr=I(lt),He=I(Jr),Kr=I(He);{let tr=O(()=>f(k)());Yn(Kr,{get isSelected(){return f(tr)}})}E(He),E(Jr),E(lt),ge((tr,Xr,ti)=>{Er=_e(lt,1,"help-link svelte-1cca2eg",null,Er,tr),Z(lt,"aria-current",Xr),Z(lt,"href",ti)},[()=>({selected:f(k)()}),()=>f(k)()?"page":void 0,()=>f(N)()]),oe("click",lt,Gl),D(qe,lt)},$$slots:{default:!0}}),E(ye),D(Le,ye)},Ie=O(()=>f(N)());ie(te,Le=>{f(Ie)&&Le(fe)})}var ve=le(te,2),We=I(ve);{let Le=O(()=>v()?.userMeta),ye=O(()=>v()?.menuItems);Wn(We,{get userMeta(){return f(Le)},get menuItems(){return f(ye)},ariaLabel:"Open profile menu",menuAlign:"desktop"})}E(ve),E(q),D(C,q)};ie(tu,C=>{v()&&C(ru)})}E(Jn);var Gr=le(Jn,2);let Fo;var Zo=I(Gr),Qn=I(Zo),nu=I(Qn);hr(nu,()=>$()??ze),E(Qn),E(Zo),E(Gr),E(Sr),et(Sr,C=>V(L,C),()=>f(L)),ge((C,q,te,fe,Ie,ve)=>{jo=_e(Sr,1,"side-nav-container svelte-1cca2eg",null,jo,C),Po=_e(rt,1,"menu-button svelte-1cca2eg",null,Po,{disabled:i()}),rt.disabled=i(),Z(rt,"aria-label",q),Z(rt,"aria-expanded",te),Fo=_e(Gr,1,"expanded-content drawer-anim svelte-1cca2eg",null,Fo,fe),Z(Gr,"aria-hidden",Ie),Z(Qn,"aria-label",ve)},[()=>({expanded:f(xr)()}),()=>f(xr)()?"Close navigation menu":"Open navigation menu",()=>f(xr)()?"true":"false",()=>({open:f(xr)()}),()=>!f(xr)(),()=>f(yr)()]),oe("click",rt,Jl),Me("mouseenter",rt,()=>V(P,!0)),Me("mouseleave",rt,()=>V(P,!1)),Me("focus",rt,()=>V(P,!0)),Me("blur",rt,()=>V(P,!1)),D(e,Sr);var iu=ne(Kl);return l(),iu}Ht(["click","keydown"]),se(To,{ssrSelectedItem:{},controlledSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},supplementalMenuData:{},children:{}},[],[],{mode:"open"});function $o(e,t){re(t,!0);let r=w(t,"ssrSelectedItem",7),n=w(t,"controlledSelectedItem",7),i=w(t,"onNavToggle",7),o=w(t,"onNavItemClick",7),l=w(t,"showAppIcons",7,!0),s=w(t,"hideDiscover",7,!0),a=w(t,"profileMenuData",7),u=w(t,"apiUrl",7),c=w(t,"chatUrl",7),h=w(t,"consoleUrl",7),d=w(t,"discoverUrl",7),v=w(t,"supplementalMenuData",7),g=w(t,"children",7);var y={get ssrSelectedItem(){return r()},set ssrSelectedItem(p){r(p),m()},get controlledSelectedItem(){return n()},set controlledSelectedItem(p){n(p),m()},get onNavToggle(){return i()},set onNavToggle(p){i(p),m()},get onNavItemClick(){return o()},set onNavItemClick(p){o(p),m()},get showAppIcons(){return l()},set showAppIcons(p=!0){l(p),m()},get hideDiscover(){return s()},set hideDiscover(p=!0){s(p),m()},get profileMenuData(){return a()},set profileMenuData(p){a(p),m()},get apiUrl(){return u()},set apiUrl(p){u(p),m()},get chatUrl(){return c()},set chatUrl(p){c(p),m()},get consoleUrl(){return h()},set consoleUrl(p){h(p),m()},get discoverUrl(){return d()},set discoverUrl(p){d(p),m()},get supplementalMenuData(){return v()},set supplementalMenuData(p){v(p),m()},get children(){return g()},set children(p){g(p),m()}};return To(e,{get ssrSelectedItem(){return r()},get controlledSelectedItem(){return n()},get onNavToggle(){return i()},get onNavItemClick(){return o()},get showAppIcons(){return l()},get hideDiscover(){return s()},get profileMenuData(){return a()},get apiUrl(){return u()},get chatUrl(){return c()},get consoleUrl(){return h()},get discoverUrl(){return d()},get supplementalMenuData(){return v()},get children(){return g()}}),ne(y)}customElements.define("graymatter-desktop-side-nav",se($o,{ssrSelectedItem:{},controlledSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},supplementalMenuData:{},children:{}},[],[],{mode:"open"}));var Ml=ae('<svg><g><path d="M57.5791 20.4177C57.5791 15.5645 53.7309 11.6187 48.9988 11.6187H40.188C38.6688 11.6187 37.4304 10.3567 37.4304 8.80197C37.4304 7.24729 38.6658 5.98522 40.188 5.98522H56.2373V0H38.8757C34.1466 0 30.2983 3.94877 30.2983 8.80197C30.2983 13.6552 34.1466 17.6039 38.8757 17.6039H47.6865C49.2057 17.6039 50.4442 18.866 50.4442 20.4207C50.4442 21.9754 49.2087 23.2374 47.6865 23.2374H31.0284V29.2197H48.9988C53.7309 29.2197 57.5791 25.2709 57.5791 20.4207V20.4177Z"></path><path d="M82.1466 24.7153L82.188 24.7685L83.6747 29.2197H90.6914L80.917 0H68.3525L58.5781 29.2167H65.5949L67.0993 24.7153H82.1466ZM69.186 18.4818L73.3653 5.98522H75.9013L75.919 6.03547L80.1161 18.5793H69.1535L69.186 18.4818Z"></path><path d="M27.198 0H20.5626V15.8158C20.5626 21.4345 16.9626 23.4355 13.5961 23.4355C9.03842 23.4355 6.62956 20.799 6.62956 15.8158V0H0V17.0069C0 20.6985 1.46305 24.0532 4.11724 26.4532C6.64729 28.7409 10.0138 30 13.599 30C20.3586 30 27.198 25.5369 27.198 17.0039V0Z"></path><path d="M101.708 9.78915H93.8662V29.2197H101.708V9.78915Z"></path><path d="M101.823 0H93.8662V5.98227H101.823V0Z"></path></g></svg>'),Il=ae('<svg><path d="M38.1538 13.6118C38.1538 10.3764 35.6038 7.74581 32.4682 7.74581H26.6298C25.6231 7.74581 24.8025 6.90443 24.8025 5.86798C24.8025 4.83153 25.6211 3.99015 26.6298 3.99015H37.2646V0H25.7602C22.6266 0 20.0765 2.63251 20.0765 5.86798C20.0765 9.10345 22.6266 11.736 25.7602 11.736H31.5986C32.6053 11.736 33.4259 12.5773 33.4259 13.6138C33.4259 14.6502 32.6072 15.4916 31.5986 15.4916H20.5603V19.4798H32.4682C35.6038 19.4798 38.1538 16.8473 38.1538 13.6138V13.6118Z"></path><path d="M54.4317 16.4768L54.4591 16.5123L55.4442 19.4798H60.0938L53.6169 0H45.2912L38.8143 19.4778H43.4639L44.4608 16.4768H54.4317ZM48.6129 3.99015H50.2933L50.305 4.02365L53.0861 12.3862H45.822L48.6129 3.99015Z"></path><path d="M18.0224 0H13.6255V10.5438C13.6255 14.2897 11.24 15.6236 9.00924 15.6236C5.98918 15.6236 4.39298 13.866 4.39298 10.5438V0H0V11.3379C0 13.799 0.969472 16.0355 2.72823 17.6355C4.40473 19.1606 6.6355 20 9.01119 20C13.4903 20 18.0224 17.0246 18.0224 11.336V0Z"></path><path d="M67.3965 6.52612H62.2005V19.4798H67.3965V6.52612Z"></path><path d="M70.6978 2.72727C70.5495 2.72727 70.4078 2.71191 70.2726 2.68118C70.1374 2.64789 70.0178 2.59795 69.9138 2.53137C69.8097 2.46223 69.7278 2.37772 69.668 2.27785C69.6082 2.17542 69.5783 2.05506 69.5783 1.91677C69.5783 1.90141 69.5783 1.88604 69.5783 1.87068C69.5809 1.85531 69.5822 1.84379 69.5822 1.83611H70.0932C70.0932 1.84123 70.0919 1.85147 70.0893 1.86684C70.0893 1.87964 70.0893 1.89117 70.0893 1.90141C70.0893 1.98592 70.114 2.0589 70.1634 2.12036C70.2128 2.17926 70.2843 2.22535 70.3779 2.25864C70.4715 2.28937 70.582 2.30474 70.7095 2.30474C70.7953 2.30474 70.8707 2.29962 70.9357 2.28937C71.0033 2.27913 71.0605 2.26504 71.1073 2.24712C71.1567 2.22663 71.197 2.20359 71.2282 2.17798C71.2594 2.14981 71.2815 2.11908 71.2945 2.08579C71.3101 2.0525 71.3179 2.01665 71.3179 1.97823C71.3179 1.90397 71.2945 1.84251 71.2477 1.79385C71.2009 1.7452 71.1372 1.70423 71.0566 1.67093C70.9786 1.63764 70.8889 1.60819 70.7875 1.58259C70.6887 1.55442 70.586 1.52625 70.4793 1.49808C70.3753 1.46991 70.2726 1.43662 70.1712 1.39821C70.0724 1.35723 69.9827 1.30858 69.9021 1.25224C69.824 1.1959 69.7616 1.12548 69.7148 1.04097C69.668 0.953905 69.6446 0.850192 69.6446 0.729833C69.6446 0.606914 69.6706 0.49936 69.7226 0.40717C69.7772 0.314981 69.8526 0.239437 69.9489 0.180538C70.0477 0.119078 70.1621 0.0742637 70.2921 0.0460946C70.4221 0.0153649 70.5638 0 70.7173 0C70.8603 0 70.9942 0.0153649 71.119 0.0460946C71.2464 0.0742637 71.3582 0.120358 71.4545 0.184379C71.5507 0.245839 71.6261 0.325224 71.6807 0.422535C71.7353 0.517286 71.7626 0.631242 71.7626 0.764405V0.810499H71.2594V0.772087C71.2594 0.697823 71.236 0.635083 71.1892 0.583867C71.145 0.53265 71.0813 0.492958 70.9981 0.464789C70.9175 0.43662 70.8226 0.422535 70.7134 0.422535C70.5963 0.422535 70.4962 0.434059 70.413 0.457106C70.3298 0.477593 70.2661 0.509603 70.2219 0.553137C70.1777 0.59411 70.1556 0.645326 70.1556 0.706786C70.1556 0.770807 70.179 0.824584 70.2258 0.868118C70.2726 0.911652 70.335 0.948784 70.413 0.979513C70.4936 1.01024 70.5833 1.03841 70.6822 1.06402C70.7836 1.08963 70.8863 1.1178 70.9903 1.14853C71.0969 1.1767 71.1996 1.20999 71.2984 1.2484C71.3999 1.28681 71.4896 1.33547 71.5676 1.39437C71.6482 1.4507 71.7119 1.52113 71.7587 1.60563C71.8055 1.69014 71.8289 1.79129 71.8289 1.90909C71.8289 2.10627 71.7795 2.26504 71.6807 2.3854C71.5845 2.50576 71.4506 2.59283 71.2789 2.64661C71.1099 2.70038 70.9162 2.72727 70.6978 2.72727Z"></path><path d="M72.3008 2.68118V0.0460946H73.1004L73.5217 1.51344C73.5373 1.56466 73.5529 1.62228 73.5685 1.6863C73.5841 1.75032 73.5984 1.81178 73.6114 1.87068C73.627 1.92958 73.6387 1.98079 73.6465 2.02433H73.6777C73.6829 1.98592 73.6907 1.93854 73.7011 1.8822C73.7115 1.82586 73.7232 1.76568 73.7362 1.70166C73.7518 1.63508 73.7687 1.57106 73.7869 1.5096L74.2082 0.0460946H75V2.68118H74.4929V1.34827C74.4929 1.23047 74.4942 1.11268 74.4968 0.994878C74.4994 0.877081 74.502 0.775928 74.5046 0.691421C74.5098 0.606914 74.5124 0.556978 74.5124 0.541613H74.4812C74.476 0.564661 74.463 0.614597 74.4422 0.691421C74.4214 0.768246 74.3993 0.851472 74.3759 0.941101C74.3525 1.03073 74.3317 1.10755 74.3135 1.17157L73.8727 2.68118H73.4047L72.9639 1.17542C72.9483 1.12164 72.9301 1.05762 72.9093 0.983355C72.8911 0.90653 72.8716 0.828425 72.8508 0.74904C72.8326 0.669654 72.8157 0.600512 72.8001 0.541613H72.7689C72.7715 0.610755 72.7741 0.693982 72.7767 0.791293C72.7793 0.886043 72.7819 0.983355 72.7845 1.08323C72.7871 1.18054 72.7884 1.26889 72.7884 1.34827V2.68118H72.3008Z"></path><path d="M67.4728 0H62.2005V3.98818H67.4728V0Z"></path></svg>');const Ll={hash:"svelte-tssf2h",code:"svg.svelte-tssf2h {display:block;}"};function Xt(e,t){re(t,!0),ht(e,Ll);const r=w(t,"isInverted",7,!1),n=w(t,"width",7,102),i=w(t,"height",7,30),o=w(t,"showServiceMark",7,!1),l=wr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]),s=O(()=>()=>r()?"var(--ai-color-white)":"var(--ai-color-black)");var a={get isInverted(){return r()},set isInverted(v=!1){r(v),m()},get width(){return n()},set width(v=102){n(v),m()},get height(){return i()},set height(v=30){i(v),m()},get showServiceMark(){return o()},set showServiceMark(v=!1){o(v),m()}},u=jr(),c=Et(u);{var h=v=>{var g=Ml();mr(g,y=>({width:n(),height:i(),viewBox:"0 0 102 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${y??""};`,...l}),[()=>f(s)()],void 0,void 0,"svelte-tssf2h"),D(v,g)},d=v=>{var g=Il();mr(g,y=>({width:n(),height:i(),viewBox:"0 0 75 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${y??""};`,...l}),[()=>f(s)()],void 0,void 0,"svelte-tssf2h"),D(v,g)};ie(c,v=>{o()?v(d,-1):v(h)})}return D(e,u),ne(a)}se(Xt,{isInverted:{},width:{},height:{},showServiceMark:{}},[],[],{mode:"open"});function Do(e,t){re(t,!0);let r=w(t,"isInverted",7,!1),n=w(t,"width",7,void 0),i=w(t,"height",7,void 0),o=w(t,"showServiceMark",7,!1),l=wr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]);var s={get isInverted(){return r()},set isInverted(a=!1){r(a),m()},get width(){return n()},set width(a=void 0){n(a),m()},get height(){return i()},set height(a=void 0){i(a),m()},get showServiceMark(){return o()},set showServiceMark(a=!1){o(a),m()}};return Xt(e,xo({get isInverted(){return r()},get width(){return n()},get height(){return i()},get showServiceMark(){return o()}},()=>l)),ne(s)}customElements.define("graymatter-logo",se(Do,{isInverted:{attribute:"is-inverted",reflect:!0,type:"Boolean"},width:{attribute:"width",reflect:!0,type:"Number"},height:{attribute:"height",reflect:!0,type:"Number"},showServiceMark:{attribute:"show-service-mark",reflect:!0,type:"Boolean"}},[],[],{mode:"open"}));var zl=K('<a><div class="icon svelte-1ya5jgu"><!></div> <span class="label svelte-1ya5jgu"> </span></a>'),Nl=K('<nav class="mobile-bottom-nav" part="mobile-bottom-nav"></nav>');const Tl={hash:"svelte-1ya5jgu",code:".nav-item.svelte-1ya5jgu {flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--ai-size-4);text-decoration:none;color:var(--ai-color-neutral-600);transition:color var(--ai-transition-ease-fast);height:100%;}.nav-item.active.svelte-1ya5jgu {color:var(--ai-color-neutral-900);}.nav-item.active.svelte-1ya5jgu .icon:where(.svelte-1ya5jgu) {background-color:var(--ai-color-steel-300);border-radius:var(--ai-size-8);}.nav-item.svelte-1ya5jgu:hover {color:var(--ai-color-neutral-700);}.icon.svelte-1ya5jgu {width:var(--ai-size-24);height:var(--ai-size-24);margin-bottom:var(--ai-size-2);display:flex;align-items:center;justify-content:center;padding:var(--ai-size-2);transition:background-color var(--ai-transition-ease-fast);}.label.svelte-1ya5jgu {font-size:0.6875rem; /* 11px */font-weight:500;line-height:1;text-align:center;}"};function Ao(e,t){re(t,!0),ht(e,Tl);const r=()=>Je(Vt,"$selectedItem",n),[n,i]=sr();let o=w(t,"onNavItemClick",7),l=w(t,"showAppIcons",7,!0),s=w(t,"hideDiscover",7,!0),a=w(t,"apiUrl",7),u=w(t,"chatUrl",7),c=w(t,"consoleUrl",7),h=w(t,"discoverUrl",7),d=w(t,"controlledSelectedItem",7,void 0);const v=O(()=>()=>d()??r()),g=O(()=>()=>[{id:"discover",label:"Discover",icon:Rn,href:h()||"#"},{id:"chat",label:"Chat",icon:Bn,href:u()||"#"},{id:"console",label:"Console",icon:Fn,href:c()||"#"},{id:"api",label:"API",icon:Zn,href:a()||"#"}]),y=O(()=>()=>s()?f(g)().filter(b=>b.id!=="discover"):f(g)());function p(b){if(b!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),d()===void 0&&Ce.setSelectedItem(b),b!=="discover")try{Promise.resolve().then(()=>Br).then(({selectedSubNavItemTitle:k})=>{k.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{if(typeof document>"u")return;const A=document.getElementById("main-content");if(A){const L=A.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(L&&L.textContent){const T=L.textContent.trim();k.set(T),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(T))}}},200)}).catch(k=>{console.log("[MobileBottomNav] Error clearing header state:",k)})}catch(k){console.log("[MobileBottomNav] Import failed for clearing state:",k)}else try{Promise.resolve().then(()=>Br).then(({selectedSubNavItemTitle:k})=>{k.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(k=>{console.log("[MobileBottomNav] Error clearing header state for Discover:",k)})}catch(k){console.log("[MobileBottomNav] Import failed for clearing Discover state:",k)}o()?.({item:b,expanded:!1})}var _={get onNavItemClick(){return o()},set onNavItemClick(b){o(b),m()},get showAppIcons(){return l()},set showAppIcons(b=!0){l(b),m()},get hideDiscover(){return s()},set hideDiscover(b=!0){s(b),m()},get apiUrl(){return a()},set apiUrl(b){a(b),m()},get chatUrl(){return u()},set chatUrl(b){u(b),m()},get consoleUrl(){return c()},set consoleUrl(b){c(b),m()},get discoverUrl(){return h()},set discoverUrl(b){h(b),m()},get controlledSelectedItem(){return d()},set controlledSelectedItem(b=void 0){d(b),m()}},M=jr(),$=Et(M);{var N=b=>{var k=Nl();co(k,21,()=>f(y)(),ps,(A,L)=>{var T=zl();let P;var W=I(T),me=I(W);{let x=O(()=>f(v)()===f(L).id);ws(me,()=>f(L).icon,(S,U)=>{U(S,{get isSelected(){return f(x)}})})}E(W);var de=le(W,2),H=I(de,!0);E(de),E(T),ge(x=>{Z(T,"href",f(L).href),P=_e(T,1,`nav-item ${f(L).id}-item`,"svelte-1ya5jgu",P,x),Z(T,"part",`${f(L).id}-item`),Jt(H,f(L).label)},[()=>({active:f(v)()===f(L).id})]),oe("click",T,()=>p(f(L).id)),D(A,T)}),E(k),D(b,k)};ie($,b=>{l()&&b(N)})}D(e,M);var z=ne(_);return i(),z}Ht(["click"]),se(Ao,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},controlledSelectedItem:{}},[],[],{mode:"open"});function Uo(e,t){re(t,!0);let r=w(t,"onNavItemClick",7),n=w(t,"showAppIcons",7,!0),i=w(t,"hideDiscover",7,!0),o=w(t,"apiUrl",7),l=w(t,"chatUrl",7),s=w(t,"consoleUrl",7),a=w(t,"discoverUrl",7),u=w(t,"controlledSelectedItem",7);var c={get onNavItemClick(){return r()},set onNavItemClick(h){r(h),m()},get showAppIcons(){return n()},set showAppIcons(h=!0){n(h),m()},get hideDiscover(){return i()},set hideDiscover(h=!0){i(h),m()},get apiUrl(){return o()},set apiUrl(h){o(h),m()},get chatUrl(){return l()},set chatUrl(h){l(h),m()},get consoleUrl(){return s()},set consoleUrl(h){s(h),m()},get discoverUrl(){return a()},set discoverUrl(h){a(h),m()},get controlledSelectedItem(){return u()},set controlledSelectedItem(h){u(h),m()}};return Ao(e,{get onNavItemClick(){return r()},get showAppIcons(){return n()},get hideDiscover(){return i()},get apiUrl(){return o()},get chatUrl(){return l()},get consoleUrl(){return s()},get discoverUrl(){return a()},get controlledSelectedItem(){return u()}}),ne(c)}customElements.define("graymatter-mobile-bottom-nav",se(Uo,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},controlledSelectedItem:{}},[],[],{mode:"open"}));var $l=K('<div class="mobile-overlay" role="button" tabindex="0" aria-label="Close navigation menu (Escape key supported)" part="mobile-overlay"></div>'),Dl=K('<a part="logo-link" class="logo-link svelte-otdehu"><!></a>'),Al=K('<div class="subnav-section svelte-otdehu" part="subnav-section"><!></div>'),Ul=K('<div class="no-subnav-message svelte-otdehu" part="no-subnav-message"><p class="svelte-otdehu">Select a section from the bottom navigation</p></div>'),ql=K('<!> <div part="mobile-side-menu"><div class="menu-header svelte-otdehu" part="menu-header"><button class="close-button svelte-otdehu" aria-label="Close navigation menu" part="close-button"><!></button> <div class="logo-container svelte-otdehu" part="logo-container"><!></div></div> <div class="menu-content svelte-otdehu" part="menu-content"><!></div></div>',1);const Hl={hash:"svelte-otdehu",code:".no-subnav-message.svelte-otdehu {padding:var(--ai-size-16);text-align:center;color:var(--ai-color-steel-600);font-size:var(--ai-size-14);}.no-subnav-message.svelte-otdehu p:where(.svelte-otdehu) {margin:0;}.mobile-side-menu.svelte-otdehu {position:fixed;top:0;left:0;bottom:0;width:80%;max-width:85vw;background:var(--ai-color-steel-50);transform:translateX(-100%);transition:transform var(--ai-transition-ease-medium);z-index:var(--ai-layer-50);flex-direction:column;box-shadow:var(--ai-size-2) 0 var(--ai-size-10) #0000001a;}.mobile-side-menu.open.svelte-otdehu {transform:translateX(0);}.menu-header.svelte-otdehu {display:flex;align-items:center;padding:var(--ai-size-16);gap:var(--ai-size-16);}.mobile-side-menu.svelte-otdehu .logo-container:where(.svelte-otdehu) {display:flex;}.logo-link.svelte-otdehu {display:flex;}.close-button.svelte-otdehu {display:flex;align-items:center;justify-content:center;padding:0;border:none;background:none;color:var(--ai-color-neutral-700);cursor:pointer;border-radius:var(--ai-size-2);transition:background-color var(--ai-transition-ease-fast);}.close-button.svelte-otdehu:hover {background-color:var(--ai-color-neutral-100);}.menu-content.svelte-otdehu {flex:1;overflow-y:auto;padding:0;}.subnav-section.svelte-otdehu {overflow-y:auto;max-height:calc(100vh - 4rem); /* leave space for header/close */}"};function qo(e,t){re(t,!0),ht(e,Hl);const r=()=>Je(tt,"$isExpanded",i),n=()=>Je(Vt,"$selectedItem",i),[i,o]=sr();let l=Q(null),s=null,a=w(t,"logoLinkUrl",7),u=w(t,"logoLinkLabel",7),c=w(t,"children",7);function h(H){if(s=H.detail.hash,d(),s){const S=document.getElementById(s);if(S){const U=document.getElementById("main-content-mobile"),G=U?U.querySelector(`[id="${s}"]`):null;if(G&&U){const Y=G.getBoundingClientRect(),ee=U.getBoundingClientRect(),ke=U.scrollTop+Y.top-ee.top;U.scrollTo({top:ke,behavior:"auto"}),setTimeout(()=>{window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:G.textContent?.trim(),id:G.id}}))},100)}else{let Y=S.parentElement;for(;Y&&Y!==document.body;){const ee=window.getComputedStyle(Y);if(ee.overflowY==="auto"||ee.overflowY==="scroll")break;Y=Y.parentElement}Y&&Y!==document.body?document.getElementById("main-content")?(S.scrollIntoView({behavior:"auto",block:"start"}),setTimeout(()=>{window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:S.textContent?.trim(),id:S.id}}))},100)):S.scrollIntoView({behavior:"auto",block:"start"}):S.scrollIntoView({behavior:"auto",block:"start"})}}s=null}}Dt(()=>{if(typeof window>"u")return;window.addEventListener("mobileAnchorNavigate",h);const H=()=>{d()};window.addEventListener("closeMobileMenu",H);const x=U=>{const G=U,{isMobile:Y}=G.detail;Y&&Ce.setExpanded(!1)};window.addEventListener("layoutTransition",x);const S=U=>{const G=document.activeElement;U.key==="Escape"&&r()&&!(G&&G.closest(".profile-context-menu"))&&d()};return window.addEventListener("keydown",S),()=>{window.removeEventListener("mobileAnchorNavigate",h),window.removeEventListener("closeMobileMenu",H),window.removeEventListener("layoutTransition",x),window.removeEventListener("keydown",S)}});function d(){Ce.setExpanded(!1)}var v={get logoLinkUrl(){return a()},set logoLinkUrl(H){a(H),m()},get logoLinkLabel(){return u()},set logoLinkLabel(H){u(H),m()},get children(){return c()},set children(H){c(H),m()}},g=ql(),y=Et(g);{var p=H=>{var x=$l();oe("click",x,d),oe("keydown",x,S=>{(S.key==="Enter"||S.key===" ")&&d()}),D(H,x)};ie(y,H=>{r()&&H(p)})}var _=le(y,2);let M;var $=I(_),N=I($),z=I(N);Fr(z,{isOpen:!0}),E(N);var b=le(N,2),k=I(b);{var A=H=>{var x=Dl(),S=I(x);Xt(S,{width:75,height:22}),E(x),ge(()=>{Z(x,"href",a()),Z(x,"aria-label",u())}),D(H,x)},L=H=>{Xt(H,{width:75,height:22})};ie(k,H=>{a()?H(A):H(L,-1)})}E(b),E($);var T=le($,2),P=I(T);{var W=H=>{var x=Al(),S=I(x);hr(S,()=>c()??ze),E(x),D(H,x)},me=H=>{var x=Ul();D(H,x)};ie(P,H=>{n()&&n()!=="discover"?H(W):H(me,-1)})}E(T),E(_),et(_,H=>V(l,H),()=>f(l)),ge(()=>M=_e(_,1,"mobile-side-menu svelte-otdehu",null,M,{open:r()})),oe("click",N,d),D(e,g);var de=ne(v);return o(),de}Ht(["click","keydown"]),se(qo,{logoLinkUrl:{},logoLinkLabel:{},children:{}},[],[],{mode:"open"});function Ho(e,t){re(t,!0);let r=w(t,"logoLinkUrl",7),n=w(t,"logoLinkLabel",7),i=w(t,"children",7);var o={get logoLinkUrl(){return r()},set logoLinkUrl(l){r(l),m()},get logoLinkLabel(){return n()},set logoLinkLabel(l){n(l),m()},get children(){return i()},set children(l){i(l),m()}};return qo(e,{get logoLinkUrl(){return r()},get logoLinkLabel(){return n()},get children(){return i()}}),ne(o)}customElements.define("graymatter-mobile-side-menu",se(Ho,{logoLinkUrl:{},logoLinkLabel:{},children:{}},[],[],{mode:"open"}));var Ol=K('<a class="display-flex"><!></a>'),Vl=K('<a aria-label="User Guide"><span class="icon-container svelte-1iraudq"><!></span></a>'),jl=K('<nav class="mobile-top-nav svelte-1iraudq" part="mobile-top-nav"><button aria-label="Open navigation menu" part="menu-button"><!></button> <div class="brand svelte-1iraudq"><!> <span class="brand-text svelte-1iraudq"> </span></div> <!> <!></nav>');const Pl={hash:"svelte-1iraudq",code:`.menu-button.svelte-1iraudq {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color var(--ai-transition-ease-fast);}.menu-button.svelte-1iraudq:disabled,
74
84
  .menu-button.disabled.svelte-1iraudq {cursor:not-allowed;opacity:0.5;background-color:transparent;}.mobile-top-nav.svelte-1iraudq .menu-button:where(.svelte-1iraudq) {padding:0;height:var(--ai-size-40);color:var(--ai-color-neutral-700);}.menu-button.svelte-1iraudq:hover {background-color:var(--ai-color-neutral-100);}
75
85
 
76
86
  /* MobileTopNav specific disabled state */.mobile-top-nav.svelte-1iraudq .menu-button.disabled:where(.svelte-1iraudq),
77
87
  .mobile-top-nav.svelte-1iraudq .menu-button:where(.svelte-1iraudq):disabled {cursor:not-allowed;opacity:0.5;background-color:transparent;}.brand.svelte-1iraudq {display:flex;align-items:center;gap:var(--ai-size-12);flex:1;margin-left:var(--ai-size-8);}.brand-text.svelte-1iraudq {color:var(--ai-color-neutral-900);font-size:var(--ai-size-16);font-weight:600;line-height:1;}.menu-button.svelte-1iraudq {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;background:none;border:none;cursor:pointer;opacity:1;transition:opacity var(--ai-transition-ease-fast);will-change:opacity;}.menu-button.disabled.svelte-1iraudq {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-1iraudq:focus {outline:none;}.help-button.svelte-1iraudq:focus {outline:none;}.help-button.svelte-1iraudq:focus .icon-container:where(.svelte-1iraudq) {outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);}.help-button.svelte-1iraudq:focus:not(:focus-visible) .icon-container:where(.svelte-1iraudq) {outline:none;}.help-button.svelte-1iraudq {display:flex;align-items:center;justify-content:center;margin-right:var(--ai-size-4);text-decoration:none;color:inherit;}.help-button.svelte-1iraudq .icon-container:where(.svelte-1iraudq) {display:flex;align-items:center;justify-content:center;width:var(--ai-size-40);height:var(--ai-size-40);border-radius:var(--ai-size-4);transition:background-color var(--ai-transition-ease-fast);}.help-button.svelte-1iraudq:hover .icon-container:where(.svelte-1iraudq),
78
- .help-button.selected.svelte-1iraudq .icon-container:where(.svelte-1iraudq) {background-color:var(--ai-color-steel-300);}`};function Na(e,t){te(t,!0),St(e,Dl);const r=()=>Ge(Ut,"$selectedSubNavItemTitle",i),n=()=>Ge(qn,"$isMenuButtonDisabled",i),[i,a]=rr();let l=m(t,"profileMenuData",7),s=m(t,"logoLinkUrl",7),o=m(t,"logoLinkLabel",7),u=m(t,"supplementalMenuData",7);const c=H(()=>()=>u()?.help?.url?.trim());function h(z,$){try{return new URL(z,$).pathname}catch{return null}}function d(){const z=v(c)();if(!z||z==="#"||z.startsWith("#"))return!1;const $=globalThis.location;if($?.origin&&$?.pathname){const J=h(z,$.origin);return J!==null&&$.pathname===J}return!1}const f=H(()=>()=>d());Ft(()=>{if(typeof window>"u")return;const z=ee=>{const ue=ee;ue.detail&&ue.detail.title&&(Ut.set(ue.detail.title),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(ue.detail.title)))},$=()=>{const ee=document.getElementById("main-content");if(!ee)return;const ue=ee.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(ue&&ue.textContent){const Kt=ue.textContent.trim();r()||(Ut.set(Kt),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(Kt)))}};window.addEventListener("sectionVisible",z);const J=sessionStorage.getItem("subNav-selectedTitle");(!J||J==='""'||J==="null")&&setTimeout(()=>{$()},100);const W=()=>{v(f)()};return window.addEventListener("popstate",W),()=>{window.removeEventListener("sectionVisible",z),window.removeEventListener("popstate",W)}});function g(){ke.toggleExpanded()}function x(z){(v(c)()==="#"||v(c)()?.startsWith("#"))&&z.preventDefault()}var p={get profileMenuData(){return l()},set profileMenuData(z){l(z),b()},get logoLinkUrl(){return s()},set logoLinkUrl(z){s(z),b()},get logoLinkLabel(){return o()},set logoLinkLabel(z){o(z),b()},get supplementalMenuData(){return u()},set supplementalMenuData(z){u(z),b()}},_=$l(),S=M(_);let I;var N=M(S);Rr(N,{}),C(S);var L=de(S,2),w=M(L);{var E=z=>{var $=Nl(),J=M($);Jt(J,{width:75,height:22}),C($),me(()=>{F($,"href",s()),F($,"aria-label",o())}),T(z,$)},O=z=>{Jt(z,{width:75,height:22})};ae(w,z=>{s()?z(E):z(O,-1)})}var U=de(w,2),y=M(U,!0);C(U),C(L);var R=de(L,2);{var Z=z=>{var $=Tl();let J;var W=M($),ee=M(W);{let ue=H(()=>v(f)());Bn(ee,{get isSelected(){return v(ue)}})}C(W),C($),me((ue,Kt,Fn)=>{J=Ce($,1,"help-button svelte-1iraudq",null,J,ue),F($,"aria-current",Kt),F($,"href",Fn)},[()=>({selected:v(f)()}),()=>v(f)()?"page":void 0,()=>v(c)()]),le("click",$,x),T(z,$)},ye=H(()=>v(c)());ae(R,z=>{v(ye)&&z(Z)})}var Se=de(R,2);{var D=z=>{{let $=H(()=>l()?.userMeta),J=H(()=>l()?.menuItems);Rn(z,{get userMeta(){return v($)},get menuItems(){return v(J)},ariaLabel:"Open profile menu",menuAlign:"mobile"})}};ae(Se,z=>{l()&&z(D)})}C(_),me(()=>{I=Ce(S,1,"menu-button svelte-1iraudq",null,I,{disabled:n()}),S.disabled=n(),cr(y,r()||"")}),le("click",S,g),T(e,_);var Y=re(p);return a(),Y}Yt(["click"]),oe(Na,{profileMenuData:{},logoLinkUrl:{},logoLinkLabel:{},supplementalMenuData:{}},[],[],{mode:"open"});function Ta(e,t){te(t,!0);let r=m(t,"profileMenuData",7),n=m(t,"logoLinkUrl",7),i=m(t,"logoLinkLabel",7),a=m(t,"supplementalMenuData",7);var l={get profileMenuData(){return r()},set profileMenuData(s){r(s),b()},get logoLinkUrl(){return n()},set logoLinkUrl(s){n(s),b()},get logoLinkLabel(){return i()},set logoLinkLabel(s){i(s),b()},get supplementalMenuData(){return a()},set supplementalMenuData(s){a(s),b()}};return Na(e,{get profileMenuData(){return r()},get logoLinkUrl(){return n()},get logoLinkLabel(){return i()},get supplementalMenuData(){return a()}}),re(l)}customElements.define("graymatter-mobile-top-nav",oe(Ta,{profileMenuData:{},logoLinkUrl:{},logoLinkLabel:{},supplementalMenuData:{}},[],[],{mode:"open"}));function br(e,t){if(typeof window>"u"){console.warn("[DesktopNavControl] Cannot control desktop navigation on server side");return}if(e==="set"&&typeof t!="boolean"){console.error('[DesktopNavControl] isOpen parameter is required when action is "set"');return}const r=new CustomEvent("graymatter-desktop-nav-control",{detail:{action:e,isOpen:t},bubbles:!0,cancelable:!1});window.dispatchEvent(r)}function Al(){br("toggle")}function Ul(){br("open")}function Hl(){br("close")}function ql(e){br("set",e)}be.Button=ma,be.DesktopHeader=xa,be.DesktopSideNav=Sa,be.Logo=Ea,be.MobileBottomNav=Ia,be.MobileSideMenu=za,be.MobileTopNav=Ta,be.closeNavigation=Hl,be.controlDesktopNavigation=br,be.openNavigation=Ul,be.setNavigationState=ql,be.toggleNavigation=Al,Object.defineProperty(be,Symbol.toStringTag,{value:"Module"})}));
88
+ .help-button.selected.svelte-1iraudq .icon-container:where(.svelte-1iraudq) {background-color:var(--ai-color-steel-300);}`};function Oo(e,t){re(t,!0),ht(e,Pl);const r=()=>Je(Ot,"$selectedSubNavItemTitle",i),n=()=>Je(Pn,"$isMenuButtonDisabled",i),[i,o]=sr();let l=w(t,"profileMenuData",7),s=w(t,"logoLinkUrl",7),a=w(t,"logoLinkLabel",7),u=w(t,"supplementalMenuData",7);const c=O(()=>()=>u()?.help?.url?.trim());function h(S,U){try{return new URL(S,U).pathname}catch{return null}}function d(){const S=f(c)();if(!S||S==="#"||S.startsWith("#"))return!1;const U=globalThis.location;if(U?.origin&&U?.pathname){const G=h(S,U.origin);return G!==null&&U.pathname===G}return!1}const v=O(()=>()=>d());Dt(()=>{if(typeof window>"u")return;const S=ee=>{const ke=ee;ke.detail&&ke.detail.title&&(Ot.set(ke.detail.title),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(ke.detail.title)))},U=()=>{const ee=document.getElementById("main-content");if(!ee)return;const ke=ee.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(ke&&ke.textContent){const Qt=ke.textContent.trim();r()||(Ot.set(Qt),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(Qt)))}};window.addEventListener("sectionVisible",S);const G=sessionStorage.getItem("subNav-selectedTitle");(!G||G==='""'||G==="null")&&setTimeout(()=>{U()},100);const Y=()=>{f(v)()};return window.addEventListener("popstate",Y),()=>{window.removeEventListener("sectionVisible",S),window.removeEventListener("popstate",Y)}});function g(){Ce.toggleExpanded()}function y(S){(f(c)()==="#"||f(c)()?.startsWith("#"))&&S.preventDefault()}var p={get profileMenuData(){return l()},set profileMenuData(S){l(S),m()},get logoLinkUrl(){return s()},set logoLinkUrl(S){s(S),m()},get logoLinkLabel(){return a()},set logoLinkLabel(S){a(S),m()},get supplementalMenuData(){return u()},set supplementalMenuData(S){u(S),m()}},_=jl(),M=I(_);let $;var N=I(M);Fr(N,{}),E(M);var z=le(M,2),b=I(z);{var k=S=>{var U=Ol(),G=I(U);Xt(G,{width:75,height:22}),E(U),ge(()=>{Z(U,"href",s()),Z(U,"aria-label",a())}),D(S,U)},A=S=>{Xt(S,{width:75,height:22})};ie(b,S=>{s()?S(k):S(A,-1)})}var L=le(b,2),T=I(L,!0);E(L),E(z);var P=le(z,2);{var W=S=>{Zr(S,{text:"User Guide",position:"bottom",children:(U,G)=>{var Y=Vl();let ee;var ke=I(Y),Qt=I(ke);{let yr=O(()=>f(v)());Yn(Qt,{get isSelected(){return f(yr)}})}E(ke),E(Y),ge((yr,$e,er)=>{ee=_e(Y,1,"help-button svelte-1iraudq",null,ee,yr),Z(Y,"aria-current",$e),Z(Y,"href",er)},[()=>({selected:f(v)()}),()=>f(v)()?"page":void 0,()=>f(c)()]),oe("click",Y,y),D(U,Y)},$$slots:{default:!0}})},me=O(()=>f(c)());ie(P,S=>{f(me)&&S(W)})}var de=le(P,2);{var H=S=>{{let U=O(()=>l()?.userMeta),G=O(()=>l()?.menuItems);Wn(S,{get userMeta(){return f(U)},get menuItems(){return f(G)},ariaLabel:"Open profile menu",menuAlign:"mobile"})}};ie(de,S=>{l()&&S(H)})}E(_),ge(()=>{$=_e(M,1,"menu-button svelte-1iraudq",null,$,{disabled:n()}),M.disabled=n(),Jt(T,r()||"")}),oe("click",M,g),D(e,_);var x=ne(p);return o(),x}Ht(["click"]),se(Oo,{profileMenuData:{},logoLinkUrl:{},logoLinkLabel:{},supplementalMenuData:{}},[],[],{mode:"open"});function Vo(e,t){re(t,!0);let r=w(t,"profileMenuData",7),n=w(t,"logoLinkUrl",7),i=w(t,"logoLinkLabel",7),o=w(t,"supplementalMenuData",7);var l={get profileMenuData(){return r()},set profileMenuData(s){r(s),m()},get logoLinkUrl(){return n()},set logoLinkUrl(s){n(s),m()},get logoLinkLabel(){return i()},set logoLinkLabel(s){i(s),m()},get supplementalMenuData(){return o()},set supplementalMenuData(s){o(s),m()}};return Oo(e,{get profileMenuData(){return r()},get logoLinkUrl(){return n()},get logoLinkLabel(){return i()},get supplementalMenuData(){return o()}}),ne(l)}customElements.define("graymatter-mobile-top-nav",se(Vo,{profileMenuData:{},logoLinkUrl:{},logoLinkLabel:{},supplementalMenuData:{}},[],[],{mode:"open"}));function kr(e,t){if(typeof window>"u"){console.warn("[DesktopNavControl] Cannot control desktop navigation on server side");return}if(e==="set"&&typeof t!="boolean"){console.error('[DesktopNavControl] isOpen parameter is required when action is "set"');return}const r=new CustomEvent("graymatter-desktop-nav-control",{detail:{action:e,isOpen:t},bubbles:!0,cancelable:!1});window.dispatchEvent(r)}function Rl(){kr("toggle")}function Bl(){kr("open")}function Fl(){kr("close")}function Zl(e){kr("set",e)}we.Button=Eo,we.DesktopHeader=No,we.DesktopSideNav=$o,we.Logo=Do,we.MobileBottomNav=Uo,we.MobileSideMenu=Ho,we.MobileTopNav=Vo,we.closeNavigation=Fl,we.controlDesktopNavigation=kr,we.openNavigation=Bl,we.setNavigationState=Zl,we.toggleNavigation=Rl,Object.defineProperty(we,Symbol.toStringTag,{value:"Module"})}));