@gsa-tts/graymatter-ui 0.3.8 → 0.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/graymatter-ui.js +1840 -1897
- package/dist/graymatter-ui.umd.cjs +6 -6
- package/package.json +1 -1
- package/src/component-options/componentOptions.ts +10 -0
- package/src/components/Button.svelte +3 -5
- package/src/components/Button.webcomponent.svelte +0 -2
- package/src/components/DesktopSideNav.svelte +1 -2
- package/src/components/DesktopSideNav.webcomponent.svelte +0 -2
- package/src/components/MobileSideMenu.svelte +2 -2
- package/src/components/MobileSideMenu.webcomponent.svelte +4 -2
- package/src/utils/index.ts +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(U,Z){typeof exports=="object"&&typeof module<"u"?Z(exports):typeof define=="function"&&define.amd?define(["exports"],Z):(U=typeof globalThis<"u"?globalThis:U||self,Z(U.graymatter={}))})(this,function(U){"use strict";var Tl=Object.defineProperty;var vo=U=>{throw TypeError(U)};var Al=(U,Z,le)=>Z in U?Tl(U,Z,{enumerable:!0,configurable:!0,writable:!0,value:le}):U[Z]=le;var Ie=(U,Z,le)=>Al(U,typeof Z!="symbol"?Z+"":Z,le),fo=(U,Z,le)=>Z.has(U)||vo("Cannot "+le);var ye=(U,Z,le)=>(fo(U,Z,"read from private field"),le?le.call(U):Z.get(U)),pn=(U,Z,le)=>Z.has(U)?vo("Cannot add the same private member more than once"):Z instanceof WeakSet?Z.add(U):Z.set(U,le),mn=(U,Z,le,wt)=>(fo(U,Z,"write to private field"),wt?wt.call(U,le):Z.set(U,le),le);var Qi,ot,Ue;typeof window<"u"&&((Qi=window.__svelte??(window.__svelte={})).v??(Qi.v=new Set)).add("5");const le=1,wt=2,wn=4,ho=8,bo=16,go=1,po=2,_n=4,mo=8,wo=16,yn=1,_o=2,Ir="[",Nr="[!",Mr="]",_t={},we=Symbol(),yo="http://www.w3.org/1999/xhtml",ko="@attach",kn=!1;var ir=Array.isArray,xo=Array.prototype.indexOf,Tr=Array.from,or=Object.keys,At=Object.defineProperty,We=Object.getOwnPropertyDescriptor,xn=Object.getOwnPropertyDescriptors,Co=Object.prototype,Eo=Array.prototype,Ar=Object.getPrototypeOf,Cn=Object.isExtensible;function Ut(e){return typeof e=="function"}const ke=()=>{};function So(e){return e()}function jt(e){for(var t=0;t<e.length;t++)e[t]()}const Ne=2,Ur=4,$t=8,jr=16,Ge=32,vt=64,$r=128,xe=256,ar=512,Ce=1024,Xe=2048,at=4096,Qe=8192,Dr=16384,En=32768,Dt=65536,Sn=1<<17,zo=1<<18,zn=1<<19,Or=1<<20,Hr=1<<21,Fe=Symbol("$state"),qr=Symbol("legacy props"),Lo=Symbol(""),Ln=new class extends Error{constructor(){super(...arguments);Ie(this,"name","StaleReactionError");Ie(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},In=3,Ot=8;function Nn(e){return e===this.v}function Mn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Tn(e){return!Mn(e,this.v)}function Io(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function No(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Mo(e){throw new Error("https://svelte.dev/e/effect_orphan")}function To(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ao(){throw new Error("https://svelte.dev/e/hydration_failed")}function Uo(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function jo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function $o(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Do(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let yt=!1,Oo=!1;function Ho(){yt=!0}function qo(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let J=null;function An(e){J=e}function Q(e,t=!1,r){var n=J={p:J,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};yt&&!t&&(J.l={s:null,u:null,r1:[],r2:Ct(!1)}),ur(()=>{n.d=!0})}function ee(e){const t=J;if(t!==null){e!==void 0&&(t.x=e);const s=t.e;if(s!==null){var r=P,n=H;t.e=null;try{for(var i=0;i<s.length;i++){var o=s[i];st(o.effect),Je(o.reaction),Jn(o.fn)}}finally{st(r),Je(n)}}J=t.p,t.m=!0}return e||{}}function sr(){return!yt||J!==null&&J.l===null}function kt(e){if(typeof e!="object"||e===null||Fe in e)return e;const t=Ar(e);if(t!==Co&&t!==Eo)return e;var r=new Map,n=ir(e),i=ge(0),o=H,s=a=>{var u=H;Je(o);var c=a();return Je(u),c};return n&&r.set("length",ge(e.length)),new Proxy(e,{defineProperty(a,u,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&jo();var f=r.get(u);return f===void 0?f=s(()=>{var v=ge(c.value);return r.set(u,v),v}):$(f,c.value,!0),!0},deleteProperty(a,u){var c=r.get(u);if(c===void 0){if(u in a){const l=s(()=>ge(we));r.set(u,l),Vr(i)}}else{if(n&&typeof u=="string"){var f=r.get("length"),v=Number(u);Number.isInteger(v)&&v<f.v&&$(f,v)}$(c,we),Vr(i)}return!0},get(a,u,c){var d;if(u===Fe)return e;var f=r.get(u),v=u in a;if(f===void 0&&(!v||(d=We(a,u))!=null&&d.writable)&&(f=s(()=>{var b=kt(v?a[u]:we),y=ge(b);return y}),r.set(u,f)),f!==void 0){var l=w(f);return l===we?void 0:l}return Reflect.get(a,u,c)},getOwnPropertyDescriptor(a,u){var c=Reflect.getOwnPropertyDescriptor(a,u);if(c&&"value"in c){var f=r.get(u);f&&(c.value=w(f))}else if(c===void 0){var v=r.get(u),l=v==null?void 0:v.v;if(v!==void 0&&l!==we)return{enumerable:!0,configurable:!0,value:l,writable:!0}}return c},has(a,u){var l;if(u===Fe)return!0;var c=r.get(u),f=c!==void 0&&c.v!==we||Reflect.has(a,u);if(c!==void 0||P!==null&&(!f||(l=We(a,u))!=null&&l.writable)){c===void 0&&(c=s(()=>{var d=f?kt(a[u]):we,b=ge(d);return b}),r.set(u,c));var v=w(c);if(v===we)return!1}return f},set(a,u,c,f){var g;var v=r.get(u),l=u in a;if(n&&u==="length")for(var d=c;d<v.v;d+=1){var b=r.get(d+"");b!==void 0?$(b,we):d in a&&(b=s(()=>ge(we)),r.set(d+"",b))}if(v===void 0)(!l||(g=We(a,u))!=null&&g.writable)&&(v=s(()=>ge(void 0)),$(v,kt(c)),r.set(u,v));else{l=v.v!==we;var y=s(()=>kt(c));$(v,y)}var x=Reflect.getOwnPropertyDescriptor(a,u);if(x!=null&&x.set&&x.set.call(f,c),!l){if(n&&typeof u=="string"){var N=r.get("length"),k=Number(u);Number.isInteger(k)&&k>=N.v&&$(N,k+1)}Vr(i)}return!0},ownKeys(a){w(i);var u=Reflect.ownKeys(a).filter(v=>{var l=r.get(v);return l===void 0||l.v!==we});for(var[c,f]of r)f.v!==we&&!(c in a)&&u.push(c);return u},setPrototypeOf(){$o()}})}function Vr(e,t=1){$(e,e.v+t)}function Un(e){try{if(e!==null&&typeof e=="object"&&Fe in e)return e[Fe]}catch{}return e}function Vo(e,t){return Object.is(Un(e),Un(t))}function xt(e){var t=Ne|Xe,r=H!==null&&(H.f&Ne)!==0?H:null;return P===null||r!==null&&(r.f&xe)!==0?t|=xe:P.f|=zn,{ctx:J,deps:null,effects:null,equals:Nn,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??P,ac:null}}function ie(e){const t=xt(e);return ni(t),t}function jn(e){const t=xt(e);return t.equals=Tn,t}function $n(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Ee(t[r])}}function Po(e){for(var t=e.parent;t!==null;){if((t.f&Ne)===0)return t;t=t.parent}return null}function Dn(e){var t,r=P;st(Po(e));try{$n(e),t=ai(e)}finally{st(r)}return t}function On(e){var t=Dn(e);if(e.equals(t)||(e.v=t,e.wv=ii()),!zt){var r=(lt||(e.f&xe)!==0)&&e.deps!==null?at:Ce;Oe(e,r)}}const Ht=new Map;function Ct(e,t){var r={f:0,v:e,reactions:null,equals:Nn,rv:0,wv:0};return r}function ge(e,t){const r=Ct(e);return ni(r),r}function ft(e,t=!1,r=!0){var i;const n=Ct(e);return t||(n.equals=Tn),yt&&r&&J!==null&&J.l!==null&&((i=J.l).s??(i.s=[])).push(n),n}function Ro(e,t){return $(e,De(()=>w(e))),t}function $(e,t,r=!1){H!==null&&(!Ze||(H.f&Sn)!==0)&&sr()&&(H.f&(Ne|jr|Sn))!==0&&!((oe==null?void 0:oe.reaction)===H&&oe.sources.includes(e))&&Do();let n=r?kt(t):t;return Pr(e,n)}function Pr(e,t){if(!e.equals(t)){var r=e.v;zt?Ht.set(e,t):Ht.set(e,r),e.v=t,(e.f&Ne)!==0&&((e.f&Xe)!==0&&Dn(e),Oe(e,(e.f&xe)===0?Ce:at)),e.wv=ii(),qn(e,Xe),sr()&&P!==null&&(P.f&Ce)!==0&&(P.f&(Ge|vt))===0&&(Te===null?ra([e]):Te.push(e))}return t}function Hn(e,t=1){var r=w(e),n=t===1?r++:r--;return $(e,r),n}function qn(e,t){var r=e.reactions;if(r!==null)for(var n=sr(),i=r.length,o=0;o<i;o++){var s=r[o],a=s.f;(a&Xe)===0&&(!n&&s===P||(Oe(s,t),(a&(Ce|xe))!==0&&((a&Ne)!==0?qn(s,at):gr(s))))}}function lr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Bo(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let D=!1;function je(e){D=e}let V;function $e(e){if(e===null)throw lr(),_t;return V=e}function Et(){return $e(et(V))}function z(e){if(D){if(et(V)!==null)throw lr(),_t;V=e}}function Ye(e=1){if(D){for(var t=e,r=V;t--;)r=et(r);V=r}}function Rr(){for(var e=0,t=V;;){if(t.nodeType===Ot){var r=t.data;if(r===Mr){if(e===0)return t;e-=1}else(r===Ir||r===Nr)&&(e+=1)}var n=et(t);t.remove(),t=n}}function Vn(e){if(!e||e.nodeType!==Ot)throw lr(),_t;return e.data}var Pn,Rn,Bn,Fn;function Br(){if(Pn===void 0){Pn=window,Rn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Bn=We(t,"firstChild").get,Fn=We(t,"nextSibling").get,Cn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Cn(r)&&(r.__t=void 0)}}function St(e=""){return document.createTextNode(e)}function Me(e){return Bn.call(e)}function et(e){return Fn.call(e)}function I(e,t){if(!D)return Me(e);var r=Me(V);if(r===null)r=V.appendChild(St());else if(t&&r.nodeType!==In){var n=St();return r==null||r.before(n),$e(n),n}return $e(r),r}function tt(e,t){if(!D){var r=Me(e);return r instanceof Comment&&r.data===""?et(r):r}return V}function de(e,t=1,r=!1){let n=D?V:e;for(var i;t--;)i=n,n=et(n);if(!D)return n;if(r&&(n==null?void 0:n.nodeType)!==In){var o=St();return n===null?i==null||i.after(o):n.before(o),$e(o),o}return $e(n),n}function Yn(e){e.textContent=""}function Zn(e){P===null&&H===null&&Mo(),H!==null&&(H.f&xe)!==0&&P===null&&No(),zt&&Io()}function Fo(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function rt(e,t,r,n=!0){var i=P,o={ctx:J,deps:null,nodes_start:null,nodes_end:null,f:e|Xe,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{br(o),o.f|=En}catch(u){throw Ee(o),u}else t!==null&&gr(o);var s=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&(zn|$r))===0;if(!s&&n&&(i!==null&&Fo(o,i),H!==null&&(H.f&Ne)!==0)){var a=H;(a.effects??(a.effects=[])).push(o)}return o}function ur(e){const t=rt($t,null,!1);return Oe(t,Ce),t.teardown=e,t}function Fr(e){Zn();var t=P!==null&&(P.f&Ge)!==0&&J!==null&&!J.m;if(t){var r=J;(r.e??(r.e=[])).push({fn:e,effect:P,reaction:H})}else return Jn(e)}function Jn(e){return rt(Ur|Hr,e,!1)}function Yo(e){return Zn(),rt($t|Hr,e,!0)}function Zo(e){const t=rt(vt,e,!0);return()=>{Ee(t)}}function Jo(e){const t=rt(vt,e,!0);return(r={})=>new Promise(n=>{r.outro?qt(t,()=>{Ee(t),n(void 0)}):(Ee(t),n(void 0))})}function Yr(e){return rt(Ur,e,!1)}function Ko(e,t){var r=J,n={effect:null,ran:!1};r.l.r1.push(n),n.effect=cr(()=>{e(),!n.ran&&(n.ran=!0,$(r.l.r2,!0),De(t))})}function Wo(){var e=J;cr(()=>{if(w(e.l.r2)){for(var t of e.l.r1){var r=t.effect;(r.f&Ce)!==0&&Oe(r,at),Yt(r)&&br(r),t.ran=!1}e.l.r2.v=!1}})}function cr(e){return rt($t,e,!0)}function _e(e,t=[],r=xt){const n=t.map(r);return ht(()=>e(...n.map(w)))}function ht(e,t=0){var r=rt($t|jr|t,e,!0);return r}function nt(e,t=!0){return rt($t|Ge,e,!0,t)}function Kn(e){var t=e.teardown;if(t!==null){const r=zt,n=H;ri(!0),Je(null);try{t.call(null)}finally{ri(r),Je(n)}}}function Wn(e,t=!1){var i;var r=e.first;for(e.first=e.last=null;r!==null;){(i=r.ac)==null||i.abort(Ln);var n=r.next;(r.f&vt)!==0?r.parent=null:Ee(r,t),r=n}}function Go(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Ge)===0&&Ee(t),t=r}}function Ee(e,t=!0){var r=!1;(t||(e.f&zo)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Xo(e.nodes_start,e.nodes_end),r=!0),Wn(e,t&&!r),hr(e,0),Oe(e,Dr);var n=e.transitions;if(n!==null)for(const o of n)o.stop();Kn(e);var i=e.parent;i!==null&&i.first!==null&&Gn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Xo(e,t){for(;e!==null;){var r=e===t?null:et(e);e.remove(),e=r}}function Gn(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 qt(e,t){var r=[];Zr(e,r,!0),Xn(r,()=>{Ee(e),t&&t()})}function Xn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Zr(e,t,r){if((e.f&Qe)===0){if(e.f^=Qe,e.transitions!==null)for(const s of e.transitions)(s.is_global||r)&&t.push(s);for(var n=e.first;n!==null;){var i=n.next,o=(n.f&Dt)!==0||(n.f&Ge)!==0;Zr(n,t,o?r:!1),n=i}}}function dr(e){Qn(e,!0)}function Qn(e,t){if((e.f&Qe)!==0){e.f^=Qe;for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Dt)!==0||(r.f&Ge)!==0;Qn(r,i?t:!1),r=n}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}let Vt=[],Jr=[];function ei(){var e=Vt;Vt=[],jt(e)}function Qo(){var e=Jr;Jr=[],jt(e)}function Pt(e){Vt.length===0&&queueMicrotask(ei),Vt.push(e)}function ea(){Vt.length>0&&ei(),Jr.length>0&&Qo()}function ta(e){var t=P;if((t.f&En)===0){if((t.f&$r)===0)throw e;t.fn(e)}else ti(e,t)}function ti(e,t){for(;t!==null;){if((t.f&$r)!==0)try{t.b.error(e);return}catch{}t=t.parent}throw e}let Rt=!1,Bt=null,bt=!1,zt=!1;function ri(e){zt=e}let Ft=[],Ul=[],H=null,Ze=!1;function Je(e){H=e}let P=null;function st(e){P=e}let oe=null;function ni(e){H!==null&&H.f&Or&&(oe===null?oe={reaction:H,sources:[e]}:oe.sources.push(e))}let pe=null,Se=0,Te=null;function ra(e){Te=e}let vr=1,fr=0,lt=!1;function ii(){return++vr}function Yt(e){var v;var t=e.f;if((t&Xe)!==0)return!0;if((t&at)!==0){var r=e.deps,n=(t&xe)!==0;if(r!==null){var i,o,s=(t&ar)!==0,a=n&&P!==null&&!lt,u=r.length;if(s||a){var c=e,f=c.parent;for(i=0;i<u;i++)o=r[i],(s||!((v=o==null?void 0:o.reactions)!=null&&v.includes(c)))&&(o.reactions??(o.reactions=[])).push(c);s&&(c.f^=ar),a&&f!==null&&(f.f&xe)===0&&(c.f^=xe)}for(i=0;i<u;i++)if(o=r[i],Yt(o)&&On(o),o.wv>e.wv)return!0}(!n||P!==null&&!lt)&&Oe(e,Ce)}return!1}function oi(e,t,r=!0){var n=e.reactions;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];(oe==null?void 0:oe.reaction)===H&&oe.sources.includes(e)||((o.f&Ne)!==0?oi(o,t,!1):t===o&&(r?Oe(o,Xe):(o.f&Ce)!==0&&Oe(o,at),gr(o)))}}function ai(e){var d;var t=pe,r=Se,n=Te,i=H,o=lt,s=oe,a=J,u=Ze,c=e.f;pe=null,Se=0,Te=null,lt=(c&xe)!==0&&(Ze||!bt||H===null),H=(c&(Ge|vt))===0?e:null,oe=null,An(e.ctx),Ze=!1,fr++,e.f|=Or,e.ac!==null&&(e.ac.abort(Ln),e.ac=null);try{var f=(0,e.fn)(),v=e.deps;if(pe!==null){var l;if(hr(e,Se),v!==null&&Se>0)for(v.length=Se+pe.length,l=0;l<pe.length;l++)v[Se+l]=pe[l];else e.deps=v=pe;if(!lt||(c&Ne)!==0&&e.reactions!==null)for(l=Se;l<v.length;l++)((d=v[l]).reactions??(d.reactions=[])).push(e)}else v!==null&&Se<v.length&&(hr(e,Se),v.length=Se);if(sr()&&Te!==null&&!Ze&&v!==null&&(e.f&(Ne|at|Xe))===0)for(l=0;l<Te.length;l++)oi(Te[l],e);return i!==null&&i!==e&&(fr++,Te!==null&&(n===null?n=Te:n.push(...Te))),f}catch(b){ta(b)}finally{pe=t,Se=r,Te=n,H=i,lt=o,oe=s,An(a),Ze=u,e.f^=Or}}function na(e,t){let r=t.reactions;if(r!==null){var n=xo.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&Ne)!==0&&(pe===null||!pe.includes(t))&&(Oe(t,at),(t.f&(xe|ar))===0&&(t.f^=ar),$n(t),hr(t,0))}function hr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)na(e,r[n])}function br(e){var t=e.f;if((t&Dr)===0){Oe(e,Ce);var r=P,n=bt;P=e,bt=!0;try{(t&jr)!==0?Go(e):Wn(e),Kn(e);var i=ai(e);e.teardown=typeof i=="function"?i:null,e.wv=vr;var o;kn&&Oo&&(e.f&Xe)!==0&&e.deps}finally{bt=n,P=r}}}function ia(){try{To()}catch(e){if(Bt!==null)ti(e,Bt);else throw e}}function si(){var e=bt;try{var t=0;for(bt=!0;Ft.length>0;){t++>1e3&&ia();var r=Ft,n=r.length;Ft=[];for(var i=0;i<n;i++){var o=aa(r[i]);oa(o)}Ht.clear()}}finally{Rt=!1,bt=e,Bt=null}}function oa(e){var t=e.length;if(t!==0){for(var r=0;r<t;r++){var n=e[r];if((n.f&(Dr|Qe))===0&&Yt(n)){var i=vr;if(br(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Gn(n):n.fn=null),vr>i&&(n.f&Hr)!==0)break}}for(;r<t;r+=1)gr(e[r])}}function gr(e){Rt||(Rt=!0,queueMicrotask(si));for(var t=Bt=e;t.parent!==null;){t=t.parent;var r=t.f;if((r&(vt|Ge))!==0){if((r&Ce)===0)return;t.f^=Ce}}Ft.push(t)}function aa(e){for(var t=[],r=e;r!==null;){var n=r.f,i=(n&(Ge|vt))!==0,o=i&&(n&Ce)!==0;if(!o&&(n&Qe)===0){(n&Ur)!==0?t.push(r):i?r.f^=Ce:Yt(r)&&br(r);var s=r.first;if(s!==null){r=s;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)r=a.next,a=a.parent}return t}function p(e){for(var t;;){if(ea(),Ft.length===0)return Rt=!1,Bt=null,t;Rt=!0,si()}}function w(e){var t=e.f,r=(t&Ne)!==0;if(H!==null&&!Ze){if((oe==null?void 0:oe.reaction)!==H||!(oe!=null&&oe.sources.includes(e))){var n=H.deps;e.rv<fr&&(e.rv=fr,pe===null&&n!==null&&n[Se]===e?Se++:pe===null?pe=[e]:(!lt||!pe.includes(e))&&pe.push(e))}}else if(r&&e.deps===null&&e.effects===null){var i=e,o=i.parent;o!==null&&(o.f&xe)===0&&(i.f^=xe)}return r&&(i=e,Yt(i)&&On(i)),zt&&Ht.has(e)?Ht.get(e):e.v}function De(e){var t=Ze;try{return Ze=!0,e()}finally{Ze=t}}const sa=-7169;function Oe(e,t){e.f=e.f&sa|t}function li(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Fe in e)Kr(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&Fe in r&&Kr(r)}}}function Kr(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Kr(e[n],t)}catch{}const r=Ar(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=xn(r);for(let i in n){const o=n[i].get;if(o)try{o.call(e)}catch{}}}}}function la(e,t){if(t){const r=document.body;e.autofocus=!0,Pt(()=>{document.activeElement===r&&e.focus()})}}function ua(e){var t=H,r=P;Je(null),st(null);try{return e()}finally{Je(t),st(r)}}const ui=new Set,Wr=new Set;function ci(e,t,r,n={}){function i(o){if(n.capture||Jt.call(t,o),!o.cancelBubble)return ua(()=>r==null?void 0:r.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Pt(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function he(e,t,r,n,i){var o={capture:n,passive:i},s=ci(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ur(()=>{t.removeEventListener(e,s,o)})}function Zt(e){for(var t=0;t<e.length;t++)ui.add(e[t]);for(var r of Wr)r(e)}function Jt(e){var k;var t=this,r=t.ownerDocument,n=e.type,i=((k=e.composedPath)==null?void 0:k.call(e))||[],o=i[0]||e.target,s=0,a=e.__root;if(a){var u=i.indexOf(a);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var c=i.indexOf(t);if(c===-1)return;u<=c&&(s=u)}if(o=i[s]||e.target,o!==t){At(e,"currentTarget",{configurable:!0,get(){return o||r}});var f=H,v=P;Je(null),st(null);try{for(var l,d=[];o!==null;){var b=o.assignedSlot||o.parentNode||o.host||null;try{var y=o["__"+n];if(y!=null&&(!o.disabled||e.target===o))if(ir(y)){var[x,...N]=y;x.apply(o,[e,...N])}else y.call(o,e)}catch(g){l?d.push(g):l=g}if(e.cancelBubble||b===t||b===null)break;o=b}if(l){for(let g of d)queueMicrotask(()=>{throw g});throw l}}finally{e.__root=t,delete e.currentTarget,Je(f),st(v)}}}function di(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function it(e,t){var r=P;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function te(e,t){var r=(t&yn)!==0,n=(t&_o)!==0,i,o=!e.startsWith("<!>");return()=>{if(D)return it(V,null),V;i===void 0&&(i=di(o?e:"<!>"+e),r||(i=Me(i)));var s=n||Rn?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=Me(s),u=s.lastChild;it(a,u)}else it(s,s);return s}}function ca(e,t,r="svg"){var n=!e.startsWith("<!>"),i=(t&yn)!==0,o=`<${r}>${n?e:"<!>"+e}</${r}>`,s;return()=>{if(D)return it(V,null),V;if(!s){var a=di(o),u=Me(a);if(i)for(s=document.createDocumentFragment();Me(u);)s.appendChild(Me(u));else s=Me(u)}var c=s.cloneNode(!0);if(i){var f=Me(c),v=c.lastChild;it(f,v)}else it(c,c);return c}}function re(e,t){return ca(e,t,"svg")}function Lt(){if(D)return it(V,null),V;var e=document.createDocumentFragment(),t=document.createComment(""),r=St();return e.append(t,r),it(t,r),e}function T(e,t){if(D){P.nodes_end=V,Et();return}e!==null&&e.before(t)}function da(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const va=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function fa(e){return va.includes(e)}const ha={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 ba(e){return e=e.toLowerCase(),ha[e]??e}const ga=["touchstart","touchmove"];function pa(e){return ga.includes(e)}function Kt(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=r+"")}function vi(e,t){return fi(e,t)}function ma(e,t){Br(),t.intro=t.intro??!1;const r=t.target,n=D,i=V;try{for(var o=Me(r);o&&(o.nodeType!==Ot||o.data!==Ir);)o=et(o);if(!o)throw _t;je(!0),$e(o),Et();const s=fi(e,{...t,anchor:o});if(V===null||V.nodeType!==Ot||V.data!==Mr)throw lr(),_t;return je(!1),s}catch(s){if(s===_t)return t.recover===!1&&Ao(),Br(),Yn(r),je(!1),vi(e,t);throw s}finally{je(n),$e(i)}}const It=new Map;function fi(e,{target:t,anchor:r,props:n={},events:i,context:o,intro:s=!0}){Br();var a=new Set,u=v=>{for(var l=0;l<v.length;l++){var d=v[l];if(!a.has(d)){a.add(d);var b=pa(d);t.addEventListener(d,Jt,{passive:b});var y=It.get(d);y===void 0?(document.addEventListener(d,Jt,{passive:b}),It.set(d,1)):It.set(d,y+1)}}};u(Tr(ui)),Wr.add(u);var c=void 0,f=Jo(()=>{var v=r??t.appendChild(St());return nt(()=>{if(o){Q({});var l=J;l.c=o}i&&(n.$$events=i),D&&it(v,null),c=e(v,n)||{},D&&(P.nodes_end=V),o&&ee()}),()=>{var b;for(var l of a){t.removeEventListener(l,Jt);var d=It.get(l);--d===0?(document.removeEventListener(l,Jt),It.delete(l)):It.set(l,d)}Wr.delete(u),v!==r&&((b=v.parentNode)==null||b.removeChild(v))}});return Gr.set(c,f),c}let Gr=new WeakMap;function wa(e,t){const r=Gr.get(e);return r?(Gr.delete(e),r(t)):Promise.resolve()}function pr(e,t,...r){var n=e,i=ke,o;ht(()=>{i!==(i=t())&&(o&&(Ee(o),o=null),o=nt(()=>i(n,...r)))},Dt),D&&(n=V)}function Wt(e){J===null&&qo(),yt&&J.l!==null?_a(J).m.push(e):Fr(()=>{const t=De(e);if(typeof t=="function")return t})}function _a(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function X(e,t,[r,n]=[0,0]){D&&r===0&&Et();var i=e,o=null,s=null,a=we,u=r>0?Dt:0,c=!1;const f=(l,d=!0)=>{c=!0,v(d,l)},v=(l,d)=>{if(a===(a=l))return;let b=!1;if(D&&n!==-1){if(r===0){const x=Vn(i);x===Ir?n=0:x===Nr?n=1/0:(n=parseInt(x.substring(1)),n!==n&&(n=a?1/0:-1))}const y=n>r;!!a===y&&(i=Rr(),$e(i),je(!1),b=!0,n=-1)}a?(o?dr(o):d&&(o=nt(()=>d(i))),s&&qt(s,()=>{s=null})):(s?dr(s):d&&(s=nt(()=>d(i,[r+1,n]))),o&&qt(o,()=>{o=null})),b&&je(!0)};ht(()=>{c=!1,t(f),c||v(null,null)},u),D&&(i=V)}function ya(e,t){return t}function ka(e,t,r,n){for(var i=[],o=t.length,s=0;s<o;s++)Zr(t[s].e,i,!0);var a=o>0&&i.length===0&&r!==null;if(a){var u=r.parentNode;Yn(u),u.append(r),n.clear(),ut(e,t[0].prev,t[o-1].next)}Xn(i,()=>{for(var c=0;c<o;c++){var f=t[c];a||(n.delete(f.k),ut(e,f.prev,f.next)),Ee(f.e,!a)}})}function hi(e,t,r,n,i,o=null){var s=e,a={flags:t,items:new Map,first:null},u=(t&wn)!==0;if(u){var c=e;s=D?$e(Me(c)):c.appendChild(St())}D&&Et();var f=null,v=!1,l=jn(()=>{var d=r();return ir(d)?d:d==null?[]:Tr(d)});ht(()=>{var d=w(l),b=d.length;if(v&&b===0)return;v=b===0;let y=!1;if(D){var x=Vn(s)===Nr;x!==(b===0)&&(s=Rr(),$e(s),je(!1),y=!0)}if(D){for(var N=null,k,g=0;g<b;g++){if(V.nodeType===Ot&&V.data===Mr){s=V,y=!0,je(!1);break}var h=d[g],_=n(h,g);k=bi(V,a,N,null,h,_,g,i,t,r),a.items.set(_,k),N=k}b>0&&$e(Rr())}D||xa(d,a,s,i,t,n,r),o!==null&&(b===0?f?dr(f):f=nt(()=>o(s)):f!==null&&qt(f,()=>{f=null})),y&&je(!0),w(l)}),D&&(s=V)}function xa(e,t,r,n,i,o,s){var S,O,B,ne;var a=(i&ho)!==0,u=(i&(le|wt))!==0,c=e.length,f=t.items,v=t.first,l=v,d,b=null,y,x=[],N=[],k,g,h,_;if(a)for(_=0;_<c;_+=1)k=e[_],g=o(k,_),h=f.get(g),h!==void 0&&((S=h.a)==null||S.measure(),(y??(y=new Set)).add(h));for(_=0;_<c;_+=1){if(k=e[_],g=o(k,_),h=f.get(g),h===void 0){var C=l?l.e.nodes_start:r;b=bi(C,t,b,b===null?t.first:b.next,k,g,_,n,i,s),f.set(g,b),x=[],N=[],l=b.next;continue}if(u&&Ca(h,k,_,i),(h.e.f&Qe)!==0&&(dr(h.e),a&&((O=h.a)==null||O.unfix(),(y??(y=new Set)).delete(h))),h!==l){if(d!==void 0&&d.has(h)){if(x.length<N.length){var M=N[0],j;b=M.prev;var L=x[0],A=x[x.length-1];for(j=0;j<x.length;j+=1)gi(x[j],M,r);for(j=0;j<N.length;j+=1)d.delete(N[j]);ut(t,L.prev,A.next),ut(t,b,L),ut(t,A,M),l=M,b=A,_-=1,x=[],N=[]}else d.delete(h),gi(h,l,r),ut(t,h.prev,h.next),ut(t,h,b===null?t.first:b.next),ut(t,b,h),b=h;continue}for(x=[],N=[];l!==null&&l.k!==g;)(l.e.f&Qe)===0&&(d??(d=new Set)).add(l),N.push(l),l=l.next;if(l===null)continue;h=l}x.push(h),b=h,l=h.next}if(l!==null||d!==void 0){for(var F=d===void 0?[]:Tr(d);l!==null;)(l.e.f&Qe)===0&&F.push(l),l=l.next;var W=F.length;if(W>0){var ve=(i&wn)!==0&&c===0?r:null;if(a){for(_=0;_<W;_+=1)(B=F[_].a)==null||B.measure();for(_=0;_<W;_+=1)(ne=F[_].a)==null||ne.fix()}ka(t,F,ve,f)}}a&&Pt(()=>{var be;if(y!==void 0)for(h of y)(be=h.a)==null||be.apply()}),P.first=t.first&&t.first.e,P.last=b&&b.e}function Ca(e,t,r,n){(n&le)!==0&&Pr(e.v,t),(n&wt)!==0?Pr(e.i,r):e.i=r}function bi(e,t,r,n,i,o,s,a,u,c){var f=(u&le)!==0,v=(u&bo)===0,l=f?v?ft(i,!1,!1):Ct(i):i,d=(u&wt)===0?s:Ct(s),b={i:d,v:l,k:o,a:null,e:null,prev:r,next:n};try{return b.e=nt(()=>a(e,l,d,c),D),b.e.prev=r&&r.e,b.e.next=n&&n.e,r===null?t.first=b:(r.next=b,r.e.next=b.e),n!==null&&(n.prev=b,n.e.prev=b.e),b}finally{}}function gi(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,o=e.e.nodes_start;o!==n;){var s=et(o);i.before(o),o=s}}function ut(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function pi(e,t,r,n,i){var a;D&&Et();var o=(a=t.$$slots)==null?void 0:a[r],s=!1;o===!0&&(o=t.children,s=!0),o===void 0||o(e,s?()=>n:n)}function Ea(e,t,r){D&&Et();var n=e,i,o;ht(()=>{i!==(i=t())&&(o&&(qt(o),o=null),i&&(o=nt(()=>r(n,i))))},Dt),D&&(n=V)}function ct(e,t){Pt(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function Sa(e,t){var r=void 0,n;ht(()=>{r!==(r=t())&&(n&&(Ee(n),n=null),r&&(n=nt(()=>{Yr(()=>r(e))})))})}function mi(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=mi(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function za(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=mi(e))&&(n&&(n+=" "),n+=t);return n}function La(e){return typeof e=="object"?za(e):e??""}const wi=[...`
|
|
2
|
-
\r\f \v\uFEFF`];function Ia(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var i in r)if(r[i])n=n?n+" "+i:i;else if(n.length)for(var o=i.length,s=0;(s=n.indexOf(i,s))>=0;){var a=s+o;(s===0||wi.includes(n[s-1]))&&(a===n.length||wi.includes(n[a]))?n=(s===0?"":n.substring(0,s))+n.substring(a+1):s=a}}return n===""?null:n}function _i(e,t=!1){var r=t?" !important;":";",n="";for(var i in e){var o=e[i];o!=null&&o!==""&&(n+=" "+i+": "+o+r)}return n}function Xr(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Na(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,s=0,a=!1,u=[];n&&u.push(...Object.keys(n).map(Xr)),i&&u.push(...Object.keys(i).map(Xr));var c=0,f=-1;const y=e.length;for(var v=0;v<y;v++){var l=e[v];if(a?l==="/"&&e[v-1]==="*"&&(a=!1):o?o===l&&(o=!1):l==="/"&&e[v+1]==="*"?a=!0:l==='"'||l==="'"?o=l:l==="("?s++:l===")"&&s--,!a&&o===!1&&s===0){if(l===":"&&f===-1)f=v;else if(l===";"||v===y-1){if(f!==-1){var d=Xr(e.substring(c,f).trim());if(!u.includes(d)){l!==";"&&v++;var b=e.substring(c,v).trim();r+=" "+b+";"}}c=v+1,f=-1}}}}return n&&(r+=_i(n)),i&&(r+=_i(i,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function ze(e,t,r,n,i,o){var s=e.__className;if(D||s!==r||s===void 0){var a=Ia(r,n,o);(!D||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):t?e.className=a:e.setAttribute("class",a)),e.__className=r}else if(o&&i!==o)for(var u in o){var c=!!o[u];(i==null||c!==!!i[u])&&e.classList.toggle(u,c)}return o}function Qr(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 Ma(e,t,r,n){var i=e.__style;if(D||i!==t){var o=Na(t,n);(!D||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else n&&(Array.isArray(n)?(Qr(e,r==null?void 0:r[0],n[0]),Qr(e,r==null?void 0:r[1],n[1],"important")):Qr(e,r,n));return n}function en(e,t,r=!1){if(e.multiple){if(t==null)return;if(!ir(t))return Bo();for(var n of e.options)n.selected=t.includes(yi(n));return}for(n of e.options){var i=yi(n);if(Vo(i,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function Ta(e){var t=new MutationObserver(()=>{en(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),ur(()=>{t.disconnect()})}function yi(e){return"__value"in e?e.__value:e.value}const Nt=Symbol("class"),Gt=Symbol("style"),ki=Symbol("is custom element"),xi=Symbol("is html");function Aa(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function K(e,t,r,n){var i=Ci(e);D&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Lo]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Si(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ua(e,t,r,n,i=!1){var o=Ci(e),s=o[ki],a=!o[xi];let u=D&&s;u&&je(!1);var c=t||{},f=e.tagName==="OPTION";for(var v in t)v in r||(r[v]=null);r.class?r.class=La(r.class):(n||r[Nt])&&(r.class=null),r[Gt]&&(r.style??(r.style=null));var l=Si(e);for(const g in r){let h=r[g];if(f&&g==="value"&&h==null){e.value=e.__value="",c[g]=h;continue}if(g==="class"){var d=e.namespaceURI==="http://www.w3.org/1999/xhtml";ze(e,d,h,n,t==null?void 0:t[Nt],r[Nt]),c[g]=h,c[Nt]=r[Nt];continue}if(g==="style"){Ma(e,h,t==null?void 0:t[Gt],r[Gt]),c[g]=h,c[Gt]=r[Gt];continue}var b=c[g];if(!(h===b&&!(h===void 0&&e.hasAttribute(g)))){c[g]=h;var y=g[0]+g[1];if(y!=="$$")if(y==="on"){const _={},C="$$"+g;let M=g.slice(2);var x=fa(M);if(da(M)&&(M=M.slice(0,-7),_.capture=!0),!x&&b){if(h!=null)continue;e.removeEventListener(M,c[C],_),c[C]=null}if(h!=null)if(x)e[`__${M}`]=h,Zt([M]);else{let j=function(L){c[g].call(this,L)};c[C]=ci(M,e,j,_)}else x&&(e[`__${M}`]=void 0)}else if(g==="style")K(e,g,h);else if(g==="autofocus")la(e,!!h);else if(!s&&(g==="__value"||g==="value"&&h!=null))e.value=e.__value=h;else if(g==="selected"&&f)Aa(e,h);else{var N=g;a||(N=ba(N));var k=N==="defaultValue"||N==="defaultChecked";if(h==null&&!s&&!k)if(o[g]=null,N==="value"||N==="checked"){let _=e;const C=t===void 0;if(N==="value"){let M=_.defaultValue;_.removeAttribute(N),_.defaultValue=M,_.value=_.__value=C?M:null}else{let M=_.defaultChecked;_.removeAttribute(N),_.defaultChecked=M,_.checked=C?M:!1}}else e.removeAttribute(g);else k||l.includes(N)&&(s||typeof h!="string")?e[N]=h:typeof h!="function"&&K(e,N,h)}}}return u&&je(!0),c}function Xt(e,t,r=[],n,i=!1,o=xt){const s=r.map(o);var a=void 0,u={},c=e.nodeName==="SELECT",f=!1;if(ht(()=>{var l=t(...s.map(w)),d=Ua(e,a,l,n,i);f&&c&&"value"in l&&en(e,l.value);for(let y of Object.getOwnPropertySymbols(u))l[y]||Ee(u[y]);for(let y of Object.getOwnPropertySymbols(l)){var b=l[y];y.description===ko&&(!a||b!==a[y])&&(u[y]&&Ee(u[y]),u[y]=nt(()=>Sa(e,()=>b))),d[y]=b}a=d}),c){var v=e;Yr(()=>{en(v,a.value,!0),Ta(v)})}f=!0}function Ci(e){return e.__attributes??(e.__attributes={[ki]:e.nodeName.includes("-"),[xi]:e.namespaceURI===yo})}var Ei=new Map;function Si(e){var t=Ei.get(e.nodeName);if(t)return t;Ei.set(e.nodeName,t=[]);for(var r,n=e,i=Element.prototype;i!==n;){r=xn(n);for(var o in r)r[o].set&&t.push(o);n=Ar(n)}return t}function zi(e,t){return e===t||(e==null?void 0:e[Fe])===t}function dt(e={},t,r,n){return Yr(()=>{var i,o;return cr(()=>{i=o,o=(n==null?void 0:n())||[],De(()=>{e!==r(...o)&&(t(e,...o),i&&zi(r(...i),e)&&t(null,...i))})}),()=>{Pt(()=>{o&&zi(r(...o),e)&&t(null,...o)})}}),e}function ja(e=!1){const t=J,r=t.l.u;if(!r)return;let n=()=>li(t.s);if(e){let i=0,o={};const s=xt(()=>{let a=!1;const u=t.s;for(const c in u)u[c]!==o[c]&&(o[c]=u[c],a=!0);return a&&i++,i});n=()=>w(s)}r.b.length&&Yo(()=>{Li(t,n),jt(r.b)}),Fr(()=>{const i=De(()=>r.m.map(So));return()=>{for(const o of i)typeof o=="function"&&o()}}),r.a.length&&Fr(()=>{Li(t,n),jt(r.a)})}function Li(e,t){if(e.l.s)for(const r of e.l.s)w(r);t()}function tn(e,t,r){if(e==null)return t(void 0),r&&r(void 0),ke;const n=De(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const Mt=[];function $a(e,t){return{subscribe:mr(e,t).subscribe}}function mr(e,t=ke){let r=null;const n=new Set;function i(a){if(Mn(e,a)&&(e=a,r)){const u=!Mt.length;for(const c of n)c[1](),Mt.push(c,e);if(u){for(let c=0;c<Mt.length;c+=2)Mt[c][0](Mt[c+1]);Mt.length=0}}}function o(a){i(a(e))}function s(a,u=ke){const c=[a,u];return n.add(c),n.size===1&&(r=t(i,o)||ke),a(e),()=>{n.delete(c),n.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:s}}function Da(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 $a(r,(s,a)=>{let u=!1;const c=[];let f=0,v=ke;const l=()=>{if(f)return;v();const b=t(n?c[0]:c,s,a);o?s(b):v=typeof b=="function"?b:ke},d=i.map((b,y)=>tn(b,x=>{c[y]=x,f&=~(1<<y),u&&l()},()=>{f|=1<<y}));return u=!0,l(),function(){jt(d),v(),u=!1}})}function Oa(e){let t;return tn(e,r=>t=r)(),t}let wr=!1,rn=Symbol();function Ae(e,t,r){const n=r[t]??(r[t]={store:null,source:ft(void 0),unsubscribe:ke});if(n.store!==e&&!(rn in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=ke;else{var i=!0;n.unsubscribe=tn(e,o=>{i?n.source.v=o:$(n.source,o)}),i=!1}return e&&rn in r?Oa(e):w(n.source)}function Qt(){const e={};function t(){ur(()=>{for(var r in e)e[r].unsubscribe();At(e,rn,{enumerable:!1,value:!0})})}return[e,t]}function Ha(e){var t=wr;try{return wr=!1,[e(),wr]}finally{wr=t}}const qa={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 _r(e,t,r){return new Proxy({props:e,exclude:t},qa)}const Va={get(e,t){if(!e.exclude.includes(t))return w(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,r){return t in e.special||(e.special[t]=m({get[t](){return e.props[t]}},t,_n)),e.special[t](r),Hn(e.version),!0},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},deleteProperty(e,t){return e.exclude.includes(t)||(e.exclude.push(t),Hn(e.version)),!0},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function Ii(e,t){return new Proxy({props:e,exclude:t,special:{},version:Ct(0)},Va)}const Pa={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Ut(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];Ut(i)&&(i=i());const o=We(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(Ut(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const i=We(n,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===Fe||t===qr)return!1;for(let r of e.props)if(Ut(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){const t=[];for(let r of e.props)if(Ut(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 Ni(...e){return new Proxy({props:e},Pa)}function Ra(e){var t;return((t=e.ctx)==null?void 0:t.d)??!1}function m(e,t,r,n){var N;var i=!yt||(r&po)!==0,o=(r&mo)!==0,s=(r&wo)!==0,a=n,u=!0,c=()=>(u&&(u=!1,a=s?De(n):n),a),f;if(o){var v=Fe in e||qr in e;f=((N=We(e,t))==null?void 0:N.set)??(v&&t in e?k=>e[t]=k:void 0)}var l,d=!1;o?[l,d]=Ha(()=>e[t]):l=e[t],l===void 0&&n!==void 0&&(l=c(),f&&(i&&Uo(),f(l)));var b;if(i?b=()=>{var k=e[t];return k===void 0?c():(u=!0,k)}:b=()=>{var k=e[t];return k!==void 0&&(a=void 0),k===void 0?a:k},i&&(r&_n)===0)return b;if(f){var y=e.$$legacy;return function(k,g){return arguments.length>0?((!i||!g||y||d)&&f(g?b():k),k):b()}}var x=((r&go)!==0?xt:jn)(b);return o&&w(x),function(k,g){if(arguments.length>0){const h=g?w(x):i&&o?kt(k):k;return $(x,h),a!==void 0&&(a=h),k}return Ra(x)?x.v:w(x)}}function Ba(e){return new Fa(e)}class Fa{constructor(t){pn(this,ot);pn(this,Ue);var o;var r=new Map,n=(s,a)=>{var u=ft(a,!1,!1);return r.set(s,u),u};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return w(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===qr?!0:(w(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,u){return $(r.get(a)??n(a,u),u),Reflect.set(s,a,u)}});mn(this,Ue,(t.hydrate?ma:vi)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((o=t==null?void 0:t.props)!=null&&o.$$host)||t.sync===!1)&&p(),mn(this,ot,i.$$events);for(const s of Object.keys(ye(this,Ue)))s==="$set"||s==="$destroy"||s==="$on"||At(this,s,{get(){return ye(this,Ue)[s]},set(a){ye(this,Ue)[s]=a},enumerable:!0});ye(this,Ue).$set=s=>{Object.assign(i,s)},ye(this,Ue).$destroy=()=>{wa(ye(this,Ue))}}$set(t){ye(this,Ue).$set(t)}$on(t,r){ye(this,ot)[t]=ye(this,ot)[t]||[];const n=(...i)=>r.call(this,...i);return ye(this,ot)[t].push(n),()=>{ye(this,ot)[t]=ye(this,ot)[t].filter(i=>i!==n)}}$destroy(){ye(this,Ue).$destroy()}}ot=new WeakMap,Ue=new WeakMap;let Mi;typeof HTMLElement=="function"&&(Mi=class extends HTMLElement{constructor(t,r,n){super();Ie(this,"$$ctor");Ie(this,"$$s");Ie(this,"$$c");Ie(this,"$$cn",!1);Ie(this,"$$d",{});Ie(this,"$$r",!1);Ie(this,"$$p_d",{});Ie(this,"$$l",{});Ie(this,"$$l_u",new Map);Ie(this,"$$me");this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return o=>{const s=document.createElement("slot");i!=="default"&&(s.name=i),T(o,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=Ya(this);for(const i of this.$$s)i in n&&(i==="default"&&!this.$$d.children?(this.$$d.children=t(i),r.default=!0):r[i]=t(i));for(const i of this.attributes){const o=this.$$g_p(i.name);o in this.$$d||(this.$$d[o]=yr(o,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=Ba({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Zo(()=>{cr(()=>{var i;this.$$r=!0;for(const o of or(this.$$c)){if(!((i=this.$$p_d[o])!=null&&i.reflect))continue;this.$$d[o]=this.$$c[o];const s=yr(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1})});for(const i in this.$$l)for(const o of this.$$l[i]){const s=this.$$c.$on(i,o);this.$$l_u.set(o,s)}this.$$l={}}}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=yr(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return or(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function yr(e,t,r,n){var o;const i=(o=r[e])==null?void 0:o.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 Ya(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ae(e,t,r,n,i,o){let s=class extends Mi{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return or(t).map(a=>(t[a].attribute||a).toLowerCase())}};return or(t).forEach(a=>{At(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){var v;u=yr(a,u,t),this.$$d[a]=u;var c=this.$$c;if(c){var f=(v=We(c,a))==null?void 0:v.get;f?c[a]=u:c.$set({[a]:u})}}})}),n.forEach(a=>{At(s.prototype,a,{get(){var u;return(u=this.$$c)==null?void 0:u[a]}})}),e.element=s,s}var Za=te("<a><!></a>"),Ja=te("<button><!></button>");const Ka={hash:"svelte-zsrcxo",code:`
|
|
1
|
+
(function($,Z){typeof exports=="object"&&typeof module<"u"?Z(exports):typeof define=="function"&&define.amd?define(["exports"],Z):($=typeof globalThis<"u"?globalThis:$||self,Z($.graymatter={}))})(this,function($){"use strict";var Nl=Object.defineProperty;var uo=$=>{throw TypeError($)};var Ml=($,Z,se)=>Z in $?Nl($,Z,{enumerable:!0,configurable:!0,writable:!0,value:se}):$[Z]=se;var ze=($,Z,se)=>Ml($,typeof Z!="symbol"?Z+"":Z,se),co=($,Z,se)=>Z.has($)||uo("Cannot "+se);var ye=($,Z,se)=>(co($,Z,"read from private field"),se?se.call($):Z.get($)),gn=($,Z,se)=>Z.has($)?uo("Cannot add the same private member more than once"):Z instanceof WeakSet?Z.add($):Z.set($,se),pn=($,Z,se,wt)=>(co($,Z,"write to private field"),wt?wt.call($,se):Z.set($,se),se);var Gi,rt,Ae;typeof window<"u"&&((Gi=window.__svelte??(window.__svelte={})).v??(Gi.v=new Set)).add("5");const se=1,wt=2,mn=4,vo=8,fo=16,ho=1,bo=2,wn=4,go=8,po=16,_n=1,mo=2,Lr="[",Ir="[!",Nr="]",_t={},we=Symbol(),wo="http://www.w3.org/1999/xhtml",_o="@attach",yn=!1;var nr=Array.isArray,yo=Array.prototype.indexOf,Mr=Array.from,ir=Object.keys,At=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,kn=Object.getOwnPropertyDescriptors,ko=Object.prototype,xo=Array.prototype,Tr=Object.getPrototypeOf,xn=Object.isExtensible;function Ut(e){return typeof e=="function"}const it=()=>{};function Co(e){return e()}function $t(e){for(var t=0;t<e.length;t++)e[t]()}const Le=2,Ar=4,jt=8,Ur=16,We=32,vt=64,$r=128,ke=256,or=512,xe=1024,Ge=2048,ot=4096,Xe=8192,jr=16384,Cn=32768,ar=65536,En=1<<17,Eo=1<<18,Sn=1<<19,Dr=1<<20,Or=1<<21,Re=Symbol("$state"),Hr=Symbol("legacy props"),So=Symbol(""),zn=new class extends Error{constructor(){super(...arguments);ze(this,"name","StaleReactionError");ze(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},Ln=3,Dt=8;function In(e){return e===this.v}function Nn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Mn(e){return!Nn(e,this.v)}function zo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Lo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Io(e){throw new Error("https://svelte.dev/e/effect_orphan")}function No(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Mo(){throw new Error("https://svelte.dev/e/hydration_failed")}function To(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ao(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Uo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function $o(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let yt=!1,jo=!1;function Do(){yt=!0}function Oo(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let J=null;function Tn(e){J=e}function Q(e,t=!1,r){var n=J={p:J,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};yt&&!t&&(J.l={s:null,u:null,r1:[],r2:Ct(!1)}),ur(()=>{n.d=!0})}function ee(e){const t=J;if(t!==null){e!==void 0&&(t.x=e);const s=t.e;if(s!==null){var r=P,n=H;t.e=null;try{for(var i=0;i<s.length;i++){var o=s[i];st(o.effect),Ze(o.reaction),Zn(o.fn)}}finally{st(r),Ze(n)}}J=t.p,t.m=!0}return e||{}}function sr(){return!yt||J!==null&&J.l===null}function kt(e){if(typeof e!="object"||e===null||Re in e)return e;const t=Tr(e);if(t!==ko&&t!==xo)return e;var r=new Map,n=nr(e),i=ge(0),o=H,s=a=>{var l=H;Ze(o);var c=a();return Ze(l),c};return n&&r.set("length",ge(e.length)),new Proxy(e,{defineProperty(a,l,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&Ao();var v=r.get(l);return v===void 0?v=s(()=>{var d=ge(c.value);return r.set(l,d),d}):D(v,c.value,!0),!0},deleteProperty(a,l){var c=r.get(l);if(c===void 0){if(l in a){const u=s(()=>ge(we));r.set(l,u),qr(i)}}else{if(n&&typeof l=="string"){var v=r.get("length"),d=Number(l);Number.isInteger(d)&&d<v.v&&D(v,d)}D(c,we),qr(i)}return!0},get(a,l,c){var h;if(l===Re)return e;var v=r.get(l),d=l in a;if(v===void 0&&(!d||(h=Ke(a,l))!=null&&h.writable)&&(v=s(()=>{var b=kt(d?a[l]:we),k=ge(b);return k}),r.set(l,v)),v!==void 0){var u=p(v);return u===we?void 0:u}return Reflect.get(a,l,c)},getOwnPropertyDescriptor(a,l){var c=Reflect.getOwnPropertyDescriptor(a,l);if(c&&"value"in c){var v=r.get(l);v&&(c.value=p(v))}else if(c===void 0){var d=r.get(l),u=d==null?void 0:d.v;if(d!==void 0&&u!==we)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return c},has(a,l){var u;if(l===Re)return!0;var c=r.get(l),v=c!==void 0&&c.v!==we||Reflect.has(a,l);if(c!==void 0||P!==null&&(!v||(u=Ke(a,l))!=null&&u.writable)){c===void 0&&(c=s(()=>{var h=v?kt(a[l]):we,b=ge(h);return b}),r.set(l,c));var d=p(c);if(d===we)return!1}return v},set(a,l,c,v){var m;var d=r.get(l),u=l in a;if(n&&l==="length")for(var h=c;h<d.v;h+=1){var b=r.get(h+"");b!==void 0?D(b,we):h in a&&(b=s(()=>ge(we)),r.set(h+"",b))}if(d===void 0)(!u||(m=Ke(a,l))!=null&&m.writable)&&(d=s(()=>ge(void 0)),D(d,kt(c)),r.set(l,d));else{u=d.v!==we;var k=s(()=>kt(c));D(d,k)}var C=Reflect.getOwnPropertyDescriptor(a,l);if(C!=null&&C.set&&C.set.call(v,c),!u){if(n&&typeof l=="string"){var L=r.get("length"),g=Number(l);Number.isInteger(g)&&g>=L.v&&D(L,g+1)}qr(i)}return!0},ownKeys(a){p(i);var l=Reflect.ownKeys(a).filter(d=>{var u=r.get(d);return u===void 0||u.v!==we});for(var[c,v]of r)v.v!==we&&!(c in a)&&l.push(c);return l},setPrototypeOf(){Uo()}})}function qr(e,t=1){D(e,e.v+t)}function An(e){try{if(e!==null&&typeof e=="object"&&Re in e)return e[Re]}catch{}return e}function Ho(e,t){return Object.is(An(e),An(t))}function xt(e){var t=Le|Ge,r=H!==null&&(H.f&Le)!==0?H:null;return P===null||r!==null&&(r.f&ke)!==0?t|=ke:P.f|=Sn,{ctx:J,deps:null,effects:null,equals:In,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??P,ac:null}}function ie(e){const t=xt(e);return ri(t),t}function Un(e){const t=xt(e);return t.equals=Mn,t}function $n(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Ne(t[r])}}function qo(e){for(var t=e.parent;t!==null;){if((t.f&Le)===0)return t;t=t.parent}return null}function jn(e){var t,r=P;st(qo(e));try{$n(e),t=oi(e)}finally{st(r)}return t}function Dn(e){var t=jn(e);if(e.equals(t)||(e.v=t,e.wv=ni()),!Lt){var r=(lt||(e.f&ke)!==0)&&e.deps!==null?ot:xe;De(e,r)}}const Ot=new Map;function Ct(e,t){var r={f:0,v:e,reactions:null,equals:In,rv:0,wv:0};return r}function ge(e,t){const r=Ct(e);return ri(r),r}function ft(e,t=!1,r=!0){var i;const n=Ct(e);return t||(n.equals=Mn),yt&&r&&J!==null&&J.l!==null&&((i=J.l).s??(i.s=[])).push(n),n}function Vo(e,t){return D(e,je(()=>p(e))),t}function D(e,t,r=!1){H!==null&&(!Ye||(H.f&En)!==0)&&sr()&&(H.f&(Le|Ur|En))!==0&&!((oe==null?void 0:oe.reaction)===H&&oe.sources.includes(e))&&$o();let n=r?kt(t):t;return Vr(e,n)}function Vr(e,t){if(!e.equals(t)){var r=e.v;Lt?Ot.set(e,t):Ot.set(e,r),e.v=t,(e.f&Le)!==0&&((e.f&Ge)!==0&&jn(e),De(e,(e.f&ke)===0?xe:ot)),e.wv=ni(),Hn(e,Ge),sr()&&P!==null&&(P.f&xe)!==0&&(P.f&(We|vt))===0&&(Me===null?ea([e]):Me.push(e))}return t}function On(e,t=1){var r=p(e),n=t===1?r++:r--;return D(e,r),n}function Hn(e,t){var r=e.reactions;if(r!==null)for(var n=sr(),i=r.length,o=0;o<i;o++){var s=r[o],a=s.f;(a&Ge)===0&&(!n&&s===P||(De(s,t),(a&(xe|ke))!==0&&((a&Le)!==0?Hn(s,ot):gr(s))))}}function lr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Po(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let O=!1;function Ue(e){O=e}let V;function $e(e){if(e===null)throw lr(),_t;return V=e}function Et(){return $e(Qe(V))}function S(e){if(O){if(Qe(V)!==null)throw lr(),_t;V=e}}function Be(e=1){if(O){for(var t=e,r=V;t--;)r=Qe(r);V=r}}function Pr(){for(var e=0,t=V;;){if(t.nodeType===Dt){var r=t.data;if(r===Nr){if(e===0)return t;e-=1}else(r===Lr||r===Ir)&&(e+=1)}var n=Qe(t);t.remove(),t=n}}function qn(e){if(!e||e.nodeType!==Dt)throw lr(),_t;return e.data}var Vn,Pn,Rn,Bn;function Rr(){if(Vn===void 0){Vn=window,Pn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Rn=Ke(t,"firstChild").get,Bn=Ke(t,"nextSibling").get,xn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),xn(r)&&(r.__t=void 0)}}function St(e=""){return document.createTextNode(e)}function Ie(e){return Rn.call(e)}function Qe(e){return Bn.call(e)}function z(e,t){if(!O)return Ie(e);var r=Ie(V);if(r===null)r=V.appendChild(St());else if(t&&r.nodeType!==Ln){var n=St();return r==null||r.before(n),$e(n),n}return $e(r),r}function Fe(e,t){if(!O){var r=Ie(e);return r instanceof Comment&&r.data===""?Qe(r):r}return V}function fe(e,t=1,r=!1){let n=O?V:e;for(var i;t--;)i=n,n=Qe(n);if(!O)return n;if(r&&(n==null?void 0:n.nodeType)!==Ln){var o=St();return n===null?i==null||i.after(o):n.before(o),$e(o),o}return $e(n),n}function Fn(e){e.textContent=""}function Yn(e){P===null&&H===null&&Io(),H!==null&&(H.f&ke)!==0&&P===null&&Lo(),Lt&&zo()}function Ro(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function et(e,t,r,n=!0){var i=P,o={ctx:J,deps:null,nodes_start:null,nodes_end:null,f:e|Ge,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{br(o),o.f|=Cn}catch(l){throw Ne(o),l}else t!==null&&gr(o);var s=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&(Sn|$r))===0;if(!s&&n&&(i!==null&&Ro(o,i),H!==null&&(H.f&Le)!==0)){var a=H;(a.effects??(a.effects=[])).push(o)}return o}function ur(e){const t=et(jt,null,!1);return De(t,xe),t.teardown=e,t}function Br(e){Yn();var t=P!==null&&(P.f&We)!==0&&J!==null&&!J.m;if(t){var r=J;(r.e??(r.e=[])).push({fn:e,effect:P,reaction:H})}else return Zn(e)}function Zn(e){return et(Ar|Or,e,!1)}function Bo(e){return Yn(),et(jt|Or,e,!0)}function Fo(e){const t=et(vt,e,!0);return()=>{Ne(t)}}function Yo(e){const t=et(vt,e,!0);return(r={})=>new Promise(n=>{r.outro?Ht(t,()=>{Ne(t),n(void 0)}):(Ne(t),n(void 0))})}function Fr(e){return et(Ar,e,!1)}function Zo(e,t){var r=J,n={effect:null,ran:!1};r.l.r1.push(n),n.effect=cr(()=>{e(),!n.ran&&(n.ran=!0,D(r.l.r2,!0),je(t))})}function Jo(){var e=J;cr(()=>{if(p(e.l.r2)){for(var t of e.l.r1){var r=t.effect;(r.f&xe)!==0&&De(r,ot),Ft(r)&&br(r),t.ran=!1}e.l.r2.v=!1}})}function cr(e){return et(jt,e,!0)}function _e(e,t=[],r=xt){const n=t.map(r);return zt(()=>e(...n.map(p)))}function zt(e,t=0){var r=et(jt|Ur|t,e,!0);return r}function at(e,t=!0){return et(jt|We,e,!0,t)}function Jn(e){var t=e.teardown;if(t!==null){const r=Lt,n=H;ti(!0),Ze(null);try{t.call(null)}finally{ti(r),Ze(n)}}}function Kn(e,t=!1){var i;var r=e.first;for(e.first=e.last=null;r!==null;){(i=r.ac)==null||i.abort(zn);var n=r.next;(r.f&vt)!==0?r.parent=null:Ne(r,t),r=n}}function Ko(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&We)===0&&Ne(t),t=r}}function Ne(e,t=!0){var r=!1;(t||(e.f&Eo)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Wo(e.nodes_start,e.nodes_end),r=!0),Kn(e,t&&!r),hr(e,0),De(e,jr);var n=e.transitions;if(n!==null)for(const o of n)o.stop();Jn(e);var i=e.parent;i!==null&&i.first!==null&&Wn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Wo(e,t){for(;e!==null;){var r=e===t?null:Qe(e);e.remove(),e=r}}function Wn(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 Ht(e,t){var r=[];Yr(e,r,!0),Gn(r,()=>{Ne(e),t&&t()})}function Gn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Yr(e,t,r){if((e.f&Xe)===0){if(e.f^=Xe,e.transitions!==null)for(const s of e.transitions)(s.is_global||r)&&t.push(s);for(var n=e.first;n!==null;){var i=n.next,o=(n.f&ar)!==0||(n.f&We)!==0;Yr(n,t,o?r:!1),n=i}}}function dr(e){Xn(e,!0)}function Xn(e,t){if((e.f&Xe)!==0){e.f^=Xe;for(var r=e.first;r!==null;){var n=r.next,i=(r.f&ar)!==0||(r.f&We)!==0;Xn(r,i?t:!1),r=n}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}let qt=[],Zr=[];function Qn(){var e=qt;qt=[],$t(e)}function Go(){var e=Zr;Zr=[],$t(e)}function Vt(e){qt.length===0&&queueMicrotask(Qn),qt.push(e)}function Xo(){qt.length>0&&Qn(),Zr.length>0&&Go()}function Qo(e){var t=P;if((t.f&Cn)===0){if((t.f&$r)===0)throw e;t.fn(e)}else ei(e,t)}function ei(e,t){for(;t!==null;){if((t.f&$r)!==0)try{t.b.error(e);return}catch{}t=t.parent}throw e}let Pt=!1,Rt=null,ht=!1,Lt=!1;function ti(e){Lt=e}let Bt=[],Tl=[],H=null,Ye=!1;function Ze(e){H=e}let P=null;function st(e){P=e}let oe=null;function ri(e){H!==null&&H.f&Dr&&(oe===null?oe={reaction:H,sources:[e]}:oe.sources.push(e))}let pe=null,Ce=0,Me=null;function ea(e){Me=e}let vr=1,fr=0,lt=!1;function ni(){return++vr}function Ft(e){var d;var t=e.f;if((t&Ge)!==0)return!0;if((t&ot)!==0){var r=e.deps,n=(t&ke)!==0;if(r!==null){var i,o,s=(t&or)!==0,a=n&&P!==null&&!lt,l=r.length;if(s||a){var c=e,v=c.parent;for(i=0;i<l;i++)o=r[i],(s||!((d=o==null?void 0:o.reactions)!=null&&d.includes(c)))&&(o.reactions??(o.reactions=[])).push(c);s&&(c.f^=or),a&&v!==null&&(v.f&ke)===0&&(c.f^=ke)}for(i=0;i<l;i++)if(o=r[i],Ft(o)&&Dn(o),o.wv>e.wv)return!0}(!n||P!==null&&!lt)&&De(e,xe)}return!1}function ii(e,t,r=!0){var n=e.reactions;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];(oe==null?void 0:oe.reaction)===H&&oe.sources.includes(e)||((o.f&Le)!==0?ii(o,t,!1):t===o&&(r?De(o,Ge):(o.f&xe)!==0&&De(o,ot),gr(o)))}}function oi(e){var h;var t=pe,r=Ce,n=Me,i=H,o=lt,s=oe,a=J,l=Ye,c=e.f;pe=null,Ce=0,Me=null,lt=(c&ke)!==0&&(Ye||!ht||H===null),H=(c&(We|vt))===0?e:null,oe=null,Tn(e.ctx),Ye=!1,fr++,e.f|=Dr,e.ac!==null&&(e.ac.abort(zn),e.ac=null);try{var v=(0,e.fn)(),d=e.deps;if(pe!==null){var u;if(hr(e,Ce),d!==null&&Ce>0)for(d.length=Ce+pe.length,u=0;u<pe.length;u++)d[Ce+u]=pe[u];else e.deps=d=pe;if(!lt||(c&Le)!==0&&e.reactions!==null)for(u=Ce;u<d.length;u++)((h=d[u]).reactions??(h.reactions=[])).push(e)}else d!==null&&Ce<d.length&&(hr(e,Ce),d.length=Ce);if(sr()&&Me!==null&&!Ye&&d!==null&&(e.f&(Le|ot|Ge))===0)for(u=0;u<Me.length;u++)ii(Me[u],e);return i!==null&&i!==e&&(fr++,Me!==null&&(n===null?n=Me:n.push(...Me))),v}catch(b){Qo(b)}finally{pe=t,Ce=r,Me=n,H=i,lt=o,oe=s,Tn(a),Ye=l,e.f^=Dr}}function ta(e,t){let r=t.reactions;if(r!==null){var n=yo.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&Le)!==0&&(pe===null||!pe.includes(t))&&(De(t,ot),(t.f&(ke|or))===0&&(t.f^=or),$n(t),hr(t,0))}function hr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)ta(e,r[n])}function br(e){var t=e.f;if((t&jr)===0){De(e,xe);var r=P,n=ht;P=e,ht=!0;try{(t&Ur)!==0?Ko(e):Kn(e),Jn(e);var i=oi(e);e.teardown=typeof i=="function"?i:null,e.wv=vr;var o;yn&&jo&&(e.f&Ge)!==0&&e.deps}finally{ht=n,P=r}}}function ra(){try{No()}catch(e){if(Rt!==null)ei(e,Rt);else throw e}}function ai(){var e=ht;try{var t=0;for(ht=!0;Bt.length>0;){t++>1e3&&ra();var r=Bt,n=r.length;Bt=[];for(var i=0;i<n;i++){var o=ia(r[i]);na(o)}Ot.clear()}}finally{Pt=!1,ht=e,Rt=null}}function na(e){var t=e.length;if(t!==0){for(var r=0;r<t;r++){var n=e[r];if((n.f&(jr|Xe))===0&&Ft(n)){var i=vr;if(br(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Wn(n):n.fn=null),vr>i&&(n.f&Or)!==0)break}}for(;r<t;r+=1)gr(e[r])}}function gr(e){Pt||(Pt=!0,queueMicrotask(ai));for(var t=Rt=e;t.parent!==null;){t=t.parent;var r=t.f;if((r&(vt|We))!==0){if((r&xe)===0)return;t.f^=xe}}Bt.push(t)}function ia(e){for(var t=[],r=e;r!==null;){var n=r.f,i=(n&(We|vt))!==0,o=i&&(n&xe)!==0;if(!o&&(n&Xe)===0){(n&Ar)!==0?t.push(r):i?r.f^=xe:Ft(r)&&br(r);var s=r.first;if(s!==null){r=s;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)r=a.next,a=a.parent}return t}function w(e){for(var t;;){if(Xo(),Bt.length===0)return Pt=!1,Rt=null,t;Pt=!0,ai()}}function p(e){var t=e.f,r=(t&Le)!==0;if(H!==null&&!Ye){if((oe==null?void 0:oe.reaction)!==H||!(oe!=null&&oe.sources.includes(e))){var n=H.deps;e.rv<fr&&(e.rv=fr,pe===null&&n!==null&&n[Ce]===e?Ce++:pe===null?pe=[e]:(!lt||!pe.includes(e))&&pe.push(e))}}else if(r&&e.deps===null&&e.effects===null){var i=e,o=i.parent;o!==null&&(o.f&ke)===0&&(i.f^=ke)}return r&&(i=e,Ft(i)&&Dn(i)),Lt&&Ot.has(e)?Ot.get(e):e.v}function je(e){var t=Ye;try{return Ye=!0,e()}finally{Ye=t}}const oa=-7169;function De(e,t){e.f=e.f&oa|t}function si(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Re in e)Jr(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&Re in r&&Jr(r)}}}function Jr(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Jr(e[n],t)}catch{}const r=Tr(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=kn(r);for(let i in n){const o=n[i].get;if(o)try{o.call(e)}catch{}}}}}function aa(e,t){if(t){const r=document.body;e.autofocus=!0,Vt(()=>{document.activeElement===r&&e.focus()})}}function sa(e){var t=H,r=P;Ze(null),st(null);try{return e()}finally{Ze(t),st(r)}}const li=new Set,Kr=new Set;function ui(e,t,r,n={}){function i(o){if(n.capture||Zt.call(t,o),!o.cancelBubble)return sa(()=>r==null?void 0:r.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Vt(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function be(e,t,r,n,i){var o={capture:n,passive:i},s=ui(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ur(()=>{t.removeEventListener(e,s,o)})}function Yt(e){for(var t=0;t<e.length;t++)li.add(e[t]);for(var r of Kr)r(e)}function Zt(e){var g;var t=this,r=t.ownerDocument,n=e.type,i=((g=e.composedPath)==null?void 0:g.call(e))||[],o=i[0]||e.target,s=0,a=e.__root;if(a){var l=i.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var c=i.indexOf(t);if(c===-1)return;l<=c&&(s=l)}if(o=i[s]||e.target,o!==t){At(e,"currentTarget",{configurable:!0,get(){return o||r}});var v=H,d=P;Ze(null),st(null);try{for(var u,h=[];o!==null;){var b=o.assignedSlot||o.parentNode||o.host||null;try{var k=o["__"+n];if(k!=null&&(!o.disabled||e.target===o))if(nr(k)){var[C,...L]=k;C.apply(o,[e,...L])}else k.call(o,e)}catch(m){u?h.push(m):u=m}if(e.cancelBubble||b===t||b===null)break;o=b}if(u){for(let m of h)queueMicrotask(()=>{throw m});throw u}}finally{e.__root=t,delete e.currentTarget,Ze(v),st(d)}}}function ci(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function tt(e,t){var r=P;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function te(e,t){var r=(t&_n)!==0,n=(t&mo)!==0,i,o=!e.startsWith("<!>");return()=>{if(O)return tt(V,null),V;i===void 0&&(i=ci(o?e:"<!>"+e),r||(i=Ie(i)));var s=n||Pn?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=Ie(s),l=s.lastChild;tt(a,l)}else tt(s,s);return s}}function la(e,t,r="svg"){var n=!e.startsWith("<!>"),i=(t&_n)!==0,o=`<${r}>${n?e:"<!>"+e}</${r}>`,s;return()=>{if(O)return tt(V,null),V;if(!s){var a=ci(o),l=Ie(a);if(i)for(s=document.createDocumentFragment();Ie(l);)s.appendChild(Ie(l));else s=Ie(l)}var c=s.cloneNode(!0);if(i){var v=Ie(c),d=c.lastChild;tt(v,d)}else tt(c,c);return c}}function re(e,t){return la(e,t,"svg")}function bt(){if(O)return tt(V,null),V;var e=document.createDocumentFragment(),t=document.createComment(""),r=St();return e.append(t,r),tt(t,r),e}function M(e,t){if(O){P.nodes_end=V,Et();return}e!==null&&e.before(t)}function ua(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const ca=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function da(e){return ca.includes(e)}const va={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 fa(e){return e=e.toLowerCase(),va[e]??e}const ha=["touchstart","touchmove"];function ba(e){return ha.includes(e)}function Jt(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=r+"")}function di(e,t){return vi(e,t)}function ga(e,t){Rr(),t.intro=t.intro??!1;const r=t.target,n=O,i=V;try{for(var o=Ie(r);o&&(o.nodeType!==Dt||o.data!==Lr);)o=Qe(o);if(!o)throw _t;Ue(!0),$e(o),Et();const s=vi(e,{...t,anchor:o});if(V===null||V.nodeType!==Dt||V.data!==Nr)throw lr(),_t;return Ue(!1),s}catch(s){if(s===_t)return t.recover===!1&&Mo(),Rr(),Fn(r),Ue(!1),di(e,t);throw s}finally{Ue(n),$e(i)}}const It=new Map;function vi(e,{target:t,anchor:r,props:n={},events:i,context:o,intro:s=!0}){Rr();var a=new Set,l=d=>{for(var u=0;u<d.length;u++){var h=d[u];if(!a.has(h)){a.add(h);var b=ba(h);t.addEventListener(h,Zt,{passive:b});var k=It.get(h);k===void 0?(document.addEventListener(h,Zt,{passive:b}),It.set(h,1)):It.set(h,k+1)}}};l(Mr(li)),Kr.add(l);var c=void 0,v=Yo(()=>{var d=r??t.appendChild(St());return at(()=>{if(o){Q({});var u=J;u.c=o}i&&(n.$$events=i),O&&tt(d,null),c=e(d,n)||{},O&&(P.nodes_end=V),o&&ee()}),()=>{var b;for(var u of a){t.removeEventListener(u,Zt);var h=It.get(u);--h===0?(document.removeEventListener(u,Zt),It.delete(u)):It.set(u,h)}Kr.delete(l),d!==r&&((b=d.parentNode)==null||b.removeChild(d))}});return Wr.set(c,v),c}let Wr=new WeakMap;function pa(e,t){const r=Wr.get(e);return r?(Wr.delete(e),r(t)):Promise.resolve()}function Kt(e){J===null&&Oo(),yt&&J.l!==null?ma(J).m.push(e):Br(()=>{const t=je(e);if(typeof t=="function")return t})}function ma(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function G(e,t,[r,n]=[0,0]){O&&r===0&&Et();var i=e,o=null,s=null,a=we,l=r>0?ar:0,c=!1;const v=(u,h=!0)=>{c=!0,d(h,u)},d=(u,h)=>{if(a===(a=u))return;let b=!1;if(O&&n!==-1){if(r===0){const C=qn(i);C===Lr?n=0:C===Ir?n=1/0:(n=parseInt(C.substring(1)),n!==n&&(n=a?1/0:-1))}const k=n>r;!!a===k&&(i=Pr(),$e(i),Ue(!1),b=!0,n=-1)}a?(o?dr(o):h&&(o=at(()=>h(i))),s&&Ht(s,()=>{s=null})):(s?dr(s):h&&(s=at(()=>h(i,[r+1,n]))),o&&Ht(o,()=>{o=null})),b&&Ue(!0)};zt(()=>{c=!1,t(v),c||d(null,null)},l),O&&(i=V)}function wa(e,t){return t}function _a(e,t,r,n){for(var i=[],o=t.length,s=0;s<o;s++)Yr(t[s].e,i,!0);var a=o>0&&i.length===0&&r!==null;if(a){var l=r.parentNode;Fn(l),l.append(r),n.clear(),ut(e,t[0].prev,t[o-1].next)}Gn(i,()=>{for(var c=0;c<o;c++){var v=t[c];a||(n.delete(v.k),ut(e,v.prev,v.next)),Ne(v.e,!a)}})}function fi(e,t,r,n,i,o=null){var s=e,a={flags:t,items:new Map,first:null},l=(t&mn)!==0;if(l){var c=e;s=O?$e(Ie(c)):c.appendChild(St())}O&&Et();var v=null,d=!1,u=Un(()=>{var h=r();return nr(h)?h:h==null?[]:Mr(h)});zt(()=>{var h=p(u),b=h.length;if(d&&b===0)return;d=b===0;let k=!1;if(O){var C=qn(s)===Ir;C!==(b===0)&&(s=Pr(),$e(s),Ue(!1),k=!0)}if(O){for(var L=null,g,m=0;m<b;m++){if(V.nodeType===Dt&&V.data===Nr){s=V,k=!0,Ue(!1);break}var f=h[m],y=n(f,m);g=hi(V,a,L,null,f,y,m,i,t,r),a.items.set(y,g),L=g}b>0&&$e(Pr())}O||ya(h,a,s,i,t,n,r),o!==null&&(b===0?v?dr(v):v=at(()=>o(s)):v!==null&&Ht(v,()=>{v=null})),k&&Ue(!0),p(u)}),O&&(s=V)}function ya(e,t,r,n,i,o,s){var U,R,X,le;var a=(i&vo)!==0,l=(i&(se|wt))!==0,c=e.length,v=t.items,d=t.first,u=d,h,b=null,k,C=[],L=[],g,m,f,y;if(a)for(y=0;y<c;y+=1)g=e[y],m=o(g,y),f=v.get(m),f!==void 0&&((U=f.a)==null||U.measure(),(k??(k=new Set)).add(f));for(y=0;y<c;y+=1){if(g=e[y],m=o(g,y),f=v.get(m),f===void 0){var E=u?u.e.nodes_start:r;b=hi(E,t,b,b===null?t.first:b.next,g,m,y,n,i,s),v.set(m,b),C=[],L=[],u=b.next;continue}if(l&&ka(f,g,y,i),(f.e.f&Xe)!==0&&(dr(f.e),a&&((R=f.a)==null||R.unfix(),(k??(k=new Set)).delete(f))),f!==u){if(h!==void 0&&h.has(f)){if(C.length<L.length){var T=L[0],j;b=T.prev;var I=C[0],A=C[C.length-1];for(j=0;j<C.length;j+=1)bi(C[j],T,r);for(j=0;j<L.length;j+=1)h.delete(L[j]);ut(t,I.prev,A.next),ut(t,b,I),ut(t,A,T),u=T,b=A,y-=1,C=[],L=[]}else h.delete(f),bi(f,u,r),ut(t,f.prev,f.next),ut(t,f,b===null?t.first:b.next),ut(t,b,f),b=f;continue}for(C=[],L=[];u!==null&&u.k!==m;)(u.e.f&Xe)===0&&(h??(h=new Set)).add(u),L.push(u),u=u.next;if(u===null)continue;f=u}C.push(f),b=f,u=f.next}if(u!==null||h!==void 0){for(var F=h===void 0?[]:Mr(h);u!==null;)(u.e.f&Xe)===0&&F.push(u),u=u.next;var W=F.length;if(W>0){var N=(i&mn)!==0&&c===0?r:null;if(a){for(y=0;y<W;y+=1)(X=F[y].a)==null||X.measure();for(y=0;y<W;y+=1)(le=F[y].a)==null||le.fix()}_a(t,F,N,v)}}a&&Vt(()=>{var ce;if(k!==void 0)for(f of k)(ce=f.a)==null||ce.apply()}),P.first=t.first&&t.first.e,P.last=b&&b.e}function ka(e,t,r,n){(n&se)!==0&&Vr(e.v,t),(n&wt)!==0?Vr(e.i,r):e.i=r}function hi(e,t,r,n,i,o,s,a,l,c){var v=(l&se)!==0,d=(l&fo)===0,u=v?d?ft(i,!1,!1):Ct(i):i,h=(l&wt)===0?s:Ct(s),b={i:h,v:u,k:o,a:null,e:null,prev:r,next:n};try{return b.e=at(()=>a(e,u,h,c),O),b.e.prev=r&&r.e,b.e.next=n&&n.e,r===null?t.first=b:(r.next=b,r.e.next=b.e),n!==null&&(n.prev=b,n.e.prev=b.e),b}finally{}}function bi(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,o=e.e.nodes_start;o!==n;){var s=Qe(o);i.before(o),o=s}}function ut(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function gt(e,t,r,n,i){var a;O&&Et();var o=(a=t.$$slots)==null?void 0:a[r],s=!1;o===!0&&(o=t.children,s=!0),o===void 0||o(e,s?()=>n:n)}function xa(e,t,r){O&&Et();var n=e,i,o;zt(()=>{i!==(i=t())&&(o&&(Ht(o),o=null),i&&(o=at(()=>r(n,i))))},ar),O&&(n=V)}function ct(e,t){Vt(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function Ca(e,t){var r=void 0,n;zt(()=>{r!==(r=t())&&(n&&(Ne(n),n=null),r&&(n=at(()=>{Fr(()=>r(e))})))})}function gi(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=gi(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ea(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=gi(e))&&(n&&(n+=" "),n+=t);return n}function Sa(e){return typeof e=="object"?Ea(e):e??""}const pi=[...`
|
|
2
|
+
\r\f \v\uFEFF`];function za(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var i in r)if(r[i])n=n?n+" "+i:i;else if(n.length)for(var o=i.length,s=0;(s=n.indexOf(i,s))>=0;){var a=s+o;(s===0||pi.includes(n[s-1]))&&(a===n.length||pi.includes(n[a]))?n=(s===0?"":n.substring(0,s))+n.substring(a+1):s=a}}return n===""?null:n}function mi(e,t=!1){var r=t?" !important;":";",n="";for(var i in e){var o=e[i];o!=null&&o!==""&&(n+=" "+i+": "+o+r)}return n}function Gr(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function La(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,s=0,a=!1,l=[];n&&l.push(...Object.keys(n).map(Gr)),i&&l.push(...Object.keys(i).map(Gr));var c=0,v=-1;const k=e.length;for(var d=0;d<k;d++){var u=e[d];if(a?u==="/"&&e[d-1]==="*"&&(a=!1):o?o===u&&(o=!1):u==="/"&&e[d+1]==="*"?a=!0:u==='"'||u==="'"?o=u:u==="("?s++:u===")"&&s--,!a&&o===!1&&s===0){if(u===":"&&v===-1)v=d;else if(u===";"||d===k-1){if(v!==-1){var h=Gr(e.substring(c,v).trim());if(!l.includes(h)){u!==";"&&d++;var b=e.substring(c,d).trim();r+=" "+b+";"}}c=d+1,v=-1}}}}return n&&(r+=mi(n)),i&&(r+=mi(i,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function Ee(e,t,r,n,i,o){var s=e.__className;if(O||s!==r||s===void 0){var a=za(r,n,o);(!O||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):t?e.className=a:e.setAttribute("class",a)),e.__className=r}else if(o&&i!==o)for(var l in o){var c=!!o[l];(i==null||c!==!!i[l])&&e.classList.toggle(l,c)}return o}function Xr(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 Ia(e,t,r,n){var i=e.__style;if(O||i!==t){var o=La(t,n);(!O||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else n&&(Array.isArray(n)?(Xr(e,r==null?void 0:r[0],n[0]),Xr(e,r==null?void 0:r[1],n[1],"important")):Xr(e,r,n));return n}function Qr(e,t,r=!1){if(e.multiple){if(t==null)return;if(!nr(t))return Po();for(var n of e.options)n.selected=t.includes(wi(n));return}for(n of e.options){var i=wi(n);if(Ho(i,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function Na(e){var t=new MutationObserver(()=>{Qr(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),ur(()=>{t.disconnect()})}function wi(e){return"__value"in e?e.__value:e.value}const Nt=Symbol("class"),Wt=Symbol("style"),_i=Symbol("is custom element"),yi=Symbol("is html");function Ma(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function K(e,t,r,n){var i=ki(e);O&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[So]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Ci(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ta(e,t,r,n,i=!1){var o=ki(e),s=o[_i],a=!o[yi];let l=O&&s;l&&Ue(!1);var c=t||{},v=e.tagName==="OPTION";for(var d in t)d in r||(r[d]=null);r.class?r.class=Sa(r.class):(n||r[Nt])&&(r.class=null),r[Wt]&&(r.style??(r.style=null));var u=Ci(e);for(const m in r){let f=r[m];if(v&&m==="value"&&f==null){e.value=e.__value="",c[m]=f;continue}if(m==="class"){var h=e.namespaceURI==="http://www.w3.org/1999/xhtml";Ee(e,h,f,n,t==null?void 0:t[Nt],r[Nt]),c[m]=f,c[Nt]=r[Nt];continue}if(m==="style"){Ia(e,f,t==null?void 0:t[Wt],r[Wt]),c[m]=f,c[Wt]=r[Wt];continue}var b=c[m];if(!(f===b&&!(f===void 0&&e.hasAttribute(m)))){c[m]=f;var k=m[0]+m[1];if(k!=="$$")if(k==="on"){const y={},E="$$"+m;let T=m.slice(2);var C=da(T);if(ua(T)&&(T=T.slice(0,-7),y.capture=!0),!C&&b){if(f!=null)continue;e.removeEventListener(T,c[E],y),c[E]=null}if(f!=null)if(C)e[`__${T}`]=f,Yt([T]);else{let j=function(I){c[m].call(this,I)};c[E]=ui(T,e,j,y)}else C&&(e[`__${T}`]=void 0)}else if(m==="style")K(e,m,f);else if(m==="autofocus")aa(e,!!f);else if(!s&&(m==="__value"||m==="value"&&f!=null))e.value=e.__value=f;else if(m==="selected"&&v)Ma(e,f);else{var L=m;a||(L=fa(L));var g=L==="defaultValue"||L==="defaultChecked";if(f==null&&!s&&!g)if(o[m]=null,L==="value"||L==="checked"){let y=e;const E=t===void 0;if(L==="value"){let T=y.defaultValue;y.removeAttribute(L),y.defaultValue=T,y.value=y.__value=E?T:null}else{let T=y.defaultChecked;y.removeAttribute(L),y.defaultChecked=T,y.checked=E?T:!1}}else e.removeAttribute(m);else g||u.includes(L)&&(s||typeof f!="string")?e[L]=f:typeof f!="function"&&K(e,L,f)}}}return l&&Ue(!0),c}function Gt(e,t,r=[],n,i=!1,o=xt){const s=r.map(o);var a=void 0,l={},c=e.nodeName==="SELECT",v=!1;if(zt(()=>{var u=t(...s.map(p)),h=Ta(e,a,u,n,i);v&&c&&"value"in u&&Qr(e,u.value);for(let k of Object.getOwnPropertySymbols(l))u[k]||Ne(l[k]);for(let k of Object.getOwnPropertySymbols(u)){var b=u[k];k.description===_o&&(!a||b!==a[k])&&(l[k]&&Ne(l[k]),l[k]=at(()=>Ca(e,()=>b))),h[k]=b}a=h}),c){var d=e;Fr(()=>{Qr(d,a.value,!0),Na(d)})}v=!0}function ki(e){return e.__attributes??(e.__attributes={[_i]:e.nodeName.includes("-"),[yi]:e.namespaceURI===wo})}var xi=new Map;function Ci(e){var t=xi.get(e.nodeName);if(t)return t;xi.set(e.nodeName,t=[]);for(var r,n=e,i=Element.prototype;i!==n;){r=kn(n);for(var o in r)r[o].set&&t.push(o);n=Tr(n)}return t}function Ei(e,t){return e===t||(e==null?void 0:e[Re])===t}function dt(e={},t,r,n){return Fr(()=>{var i,o;return cr(()=>{i=o,o=(n==null?void 0:n())||[],je(()=>{e!==r(...o)&&(t(e,...o),i&&Ei(r(...i),e)&&t(null,...i))})}),()=>{Vt(()=>{o&&Ei(r(...o),e)&&t(null,...o)})}}),e}function Aa(e=!1){const t=J,r=t.l.u;if(!r)return;let n=()=>si(t.s);if(e){let i=0,o={};const s=xt(()=>{let a=!1;const l=t.s;for(const c in l)l[c]!==o[c]&&(o[c]=l[c],a=!0);return a&&i++,i});n=()=>p(s)}r.b.length&&Bo(()=>{Si(t,n),$t(r.b)}),Br(()=>{const i=je(()=>r.m.map(Co));return()=>{for(const o of i)typeof o=="function"&&o()}}),r.a.length&&Br(()=>{Si(t,n),$t(r.a)})}function Si(e,t){if(e.l.s)for(const r of e.l.s)p(r);t()}function en(e,t,r){if(e==null)return t(void 0),r&&r(void 0),it;const n=je(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const Mt=[];function Ua(e,t){return{subscribe:pr(e,t).subscribe}}function pr(e,t=it){let r=null;const n=new Set;function i(a){if(Nn(e,a)&&(e=a,r)){const l=!Mt.length;for(const c of n)c[1](),Mt.push(c,e);if(l){for(let c=0;c<Mt.length;c+=2)Mt[c][0](Mt[c+1]);Mt.length=0}}}function o(a){i(a(e))}function s(a,l=it){const c=[a,l];return n.add(c),n.size===1&&(r=t(i,o)||it),a(e),()=>{n.delete(c),n.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:s}}function $a(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 Ua(r,(s,a)=>{let l=!1;const c=[];let v=0,d=it;const u=()=>{if(v)return;d();const b=t(n?c[0]:c,s,a);o?s(b):d=typeof b=="function"?b:it},h=i.map((b,k)=>en(b,C=>{c[k]=C,v&=~(1<<k),l&&u()},()=>{v|=1<<k}));return l=!0,u(),function(){$t(h),d(),l=!1}})}function ja(e){let t;return en(e,r=>t=r)(),t}let mr=!1,tn=Symbol();function Te(e,t,r){const n=r[t]??(r[t]={store:null,source:ft(void 0),unsubscribe:it});if(n.store!==e&&!(tn in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=it;else{var i=!0;n.unsubscribe=en(e,o=>{i?n.source.v=o:D(n.source,o)}),i=!1}return e&&tn in r?ja(e):p(n.source)}function Xt(){const e={};function t(){ur(()=>{for(var r in e)e[r].unsubscribe();At(e,tn,{enumerable:!1,value:!0})})}return[e,t]}function Da(e){var t=mr;try{return mr=!1,[e(),mr]}finally{mr=t}}const Oa={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},Oa)}const Ha={get(e,t){if(!e.exclude.includes(t))return p(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,r){return t in e.special||(e.special[t]=_({get[t](){return e.props[t]}},t,wn)),e.special[t](r),On(e.version),!0},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},deleteProperty(e,t){return e.exclude.includes(t)||(e.exclude.push(t),On(e.version)),!0},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function zi(e,t){return new Proxy({props:e,exclude:t,special:{},version:Ct(0)},Ha)}const qa={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Ut(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];Ut(i)&&(i=i());const o=Ke(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(Ut(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const i=Ke(n,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===Re||t===Hr)return!1;for(let r of e.props)if(Ut(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){const t=[];for(let r of e.props)if(Ut(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 Li(...e){return new Proxy({props:e},qa)}function Va(e){var t;return((t=e.ctx)==null?void 0:t.d)??!1}function _(e,t,r,n){var L;var i=!yt||(r&bo)!==0,o=(r&go)!==0,s=(r&po)!==0,a=n,l=!0,c=()=>(l&&(l=!1,a=s?je(n):n),a),v;if(o){var d=Re in e||Hr in e;v=((L=Ke(e,t))==null?void 0:L.set)??(d&&t in e?g=>e[t]=g:void 0)}var u,h=!1;o?[u,h]=Da(()=>e[t]):u=e[t],u===void 0&&n!==void 0&&(u=c(),v&&(i&&To(),v(u)));var b;if(i?b=()=>{var g=e[t];return g===void 0?c():(l=!0,g)}:b=()=>{var g=e[t];return g!==void 0&&(a=void 0),g===void 0?a:g},i&&(r&wn)===0)return b;if(v){var k=e.$$legacy;return function(g,m){return arguments.length>0?((!i||!m||k||h)&&v(m?b():g),g):b()}}var C=((r&ho)!==0?xt:Un)(b);return o&&p(C),function(g,m){if(arguments.length>0){const f=m?p(C):i&&o?kt(g):g;return D(C,f),a!==void 0&&(a=f),g}return Va(C)?C.v:p(C)}}function Pa(e){return new Ra(e)}class Ra{constructor(t){gn(this,rt);gn(this,Ae);var o;var r=new Map,n=(s,a)=>{var l=ft(a,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return p(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===Hr?!0:(p(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return D(r.get(a)??n(a,l),l),Reflect.set(s,a,l)}});pn(this,Ae,(t.hydrate?ga:di)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((o=t==null?void 0:t.props)!=null&&o.$$host)||t.sync===!1)&&w(),pn(this,rt,i.$$events);for(const s of Object.keys(ye(this,Ae)))s==="$set"||s==="$destroy"||s==="$on"||At(this,s,{get(){return ye(this,Ae)[s]},set(a){ye(this,Ae)[s]=a},enumerable:!0});ye(this,Ae).$set=s=>{Object.assign(i,s)},ye(this,Ae).$destroy=()=>{pa(ye(this,Ae))}}$set(t){ye(this,Ae).$set(t)}$on(t,r){ye(this,rt)[t]=ye(this,rt)[t]||[];const n=(...i)=>r.call(this,...i);return ye(this,rt)[t].push(n),()=>{ye(this,rt)[t]=ye(this,rt)[t].filter(i=>i!==n)}}$destroy(){ye(this,Ae).$destroy()}}rt=new WeakMap,Ae=new WeakMap;let Ii;typeof HTMLElement=="function"&&(Ii=class extends HTMLElement{constructor(t,r,n){super();ze(this,"$$ctor");ze(this,"$$s");ze(this,"$$c");ze(this,"$$cn",!1);ze(this,"$$d",{});ze(this,"$$r",!1);ze(this,"$$p_d",{});ze(this,"$$l",{});ze(this,"$$l_u",new Map);ze(this,"$$me");this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return o=>{const s=document.createElement("slot");i!=="default"&&(s.name=i),M(o,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=Ba(this);for(const i of this.$$s)i in n&&(i==="default"&&!this.$$d.children?(this.$$d.children=t(i),r.default=!0):r[i]=t(i));for(const i of this.attributes){const o=this.$$g_p(i.name);o in this.$$d||(this.$$d[o]=_r(o,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=Pa({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Fo(()=>{cr(()=>{var i;this.$$r=!0;for(const o of ir(this.$$c)){if(!((i=this.$$p_d[o])!=null&&i.reflect))continue;this.$$d[o]=this.$$c[o];const s=_r(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1})});for(const i in this.$$l)for(const o of this.$$l[i]){const s=this.$$c.$on(i,o);this.$$l_u.set(o,s)}this.$$l={}}}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=_r(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return ir(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function _r(e,t,r,n){var o;const i=(o=r[e])==null?void 0:o.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 Ba(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ae(e,t,r,n,i,o){let s=class extends Ii{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return ir(t).map(a=>(t[a].attribute||a).toLowerCase())}};return ir(t).forEach(a=>{At(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var d;l=_r(a,l,t),this.$$d[a]=l;var c=this.$$c;if(c){var v=(d=Ke(c,a))==null?void 0:d.get;v?c[a]=l:c.$set({[a]:l})}}})}),n.forEach(a=>{At(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),e.element=s,s}var Fa=te("<a><!></a>"),Ya=te("<button><!></button>");const Za={hash:"svelte-zsrcxo",code:`
|
|
3
3
|
/*! purgecss start ignore */:root,
|
|
4
4
|
:host {
|
|
5
5
|
/* 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;
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
[disabled]:where(.svelte-zsrcxo),
|
|
45
45
|
[aria-disabled='true']:where(.svelte-zsrcxo)
|
|
46
46
|
) {box-shadow:var(--ai-button-box-shadow) var(--ai-color-neutral-200);color:var(--ai-color-neutral-600);}.ai-button--unstyled.svelte-zsrcxo:is(.disabled:where(.svelte-zsrcxo), [disabled]:where(.svelte-zsrcxo), [aria-disabled='true']:where(.svelte-zsrcxo)) {background:none;color:inherit;opacity:0.75;}
|
|
47
|
-
/*! purgecss end ignore */`};function Ti(e,t){Q(t,!0),ct(e,Ka);let r=m(t,"variant",7,"primary"),n=m(t,"theme",7,"default"),i=m(t,"shape",7,"round"),o=m(t,"href",7,void 0),s=m(t,"disabled",7,!1),a=m(t,"onclick",7),u=m(t,"children",7,null),c=m(t,"size",7,"medium"),f=m(t,"type",7,"button"),v=m(t,"class",7,""),l=_r(t,["$$slots","$$events","$$legacy","$$host","variant","theme","shape","href","disabled","onclick","children","size","type","class"]);const d=ie(()=>()=>["usa-button","ai-button",c()==="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":""].filter(Boolean).join(" ")),b=ie(()=>()=>`${w(d)()} ${v()}`.trim());var y=Lt(),x=tt(y);{var N=g=>{var h=Za();Xt(h,(C,M)=>({class:C,href:o(),onclick:a(),...l,[Nt]:M}),[()=>w(b)(),()=>({disabled:s()})],"svelte-zsrcxo");var _=I(h);pr(_,()=>u()??ke),z(h),T(g,h)},k=g=>{var h=Ja();Xt(h,C=>({class:C,type:f(),disabled:s(),onclick:a(),...l}),[()=>w(b)()],"svelte-zsrcxo");var _=I(h);pr(_,()=>u()??ke),z(h),T(g,h)};X(x,g=>{o()?g(N):g(k,!1)})}return T(e,y),ee({get variant(){return r()},set variant(g="primary"){r(g),p()},get theme(){return n()},set theme(g="default"){n(g),p()},get shape(){return i()},set shape(g="round"){i(g),p()},get href(){return o()},set href(g=void 0){o(g),p()},get disabled(){return s()},set disabled(g=!1){s(g),p()},get onclick(){return a()},set onclick(g){a(g),p()},get children(){return u()},set children(g=null){u(g),p()},get size(){return c()},set size(g="medium"){c(g),p()},get type(){return f()},set type(g="button"){f(g),p()},get class(){return v()},set class(g=""){v(g),p()}})}ae(Ti,{variant:{},theme:{},shape:{},href:{},disabled:{},onclick:{},children:{},size:{},type:{},class:{}},[],[],!0);function Ai(e,t){Q(t,!0);let r=m(t,"variant",7,"primary"),n=m(t,"theme",7,"default"),i=m(t,"href",7,null),o=m(t,"disabled",7,!1),s=m(t,"size",7,"medium"),a=m(t,"type",7,"button"),u=m(t,"onclick",7),c=m(t,"children",7,null),f=m(t,"class",7,""),v=_r(t,["$$slots","$$events","$$legacy","$$host","variant","theme","href","disabled","size","type","onclick","children","class"]);return Ti(e,Ni({get variant(){return r()},get theme(){return n()},get href(){return i()},get disabled(){return o()},get size(){return s()},get type(){return a()},get onclick(){return u()},get children(){return c()},get class(){return f()}},()=>v,{$$slots:{default:(l,d)=>{var b=Lt(),y=tt(b);pi(y,t,"default",{}),T(l,b)}}})),ee({get variant(){return r()},set variant(l="primary"){r(l),p()},get theme(){return n()},set theme(l="default"){n(l),p()},get href(){return i()},set href(l=null){i(l),p()},get disabled(){return o()},set disabled(l=!1){o(l),p()},get size(){return s()},set size(l="medium"){s(l),p()},get type(){return a()},set type(l="button"){a(l),p()},get onclick(){return u()},set onclick(l){u(l),p()},get children(){return c()},set children(l=null){c(l),p()},get class(){return f()},set class(l=""){f(l),p()}})}customElements.define("graymatter-button",ae(Ai,{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:{},children:{},class:{}},["default"],[],!0));const er=typeof window<"u";function Wa(e,t){if(er&&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 Ui(e,t){const r=Wa(e,t),n=mr(r);return er&&n.subscribe(i=>{try{sessionStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to sessionStorage:`,o)}}),n}Ui("subNav-selectedId",null);const gt=Ui("subNav-selectedTitle","");function ji(e,t){if(er&&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 $i(e,t){const r=ji(e,t),n=mr(r);return er&&n.subscribe(i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to localStorage:`,o)}}),n}const He=$i("globalSideNav-isExpanded",!1),pt=$i("globalSideNav-selectedItem",null),nn=Da(pt,e=>e==="discover"),me={toggleExpanded:()=>{He.update(e=>!e)},setExpanded:e=>{He.set(e)},setSelectedItem:e=>{pt.set(e),e==="discover"?He.set(!1):er&&window.innerWidth>640&&He.set(!0)},handleLayoutTransition:e=>{if(e)He.set(!1);else{const t=ji("globalSideNav-selectedItem",null);t&&t!=="discover"?(console.log("[NavigationStore] Opening navigation for desktop (non-discover page)"),He.set(!0)):He.set(!1)}}},kr=Object.freeze(Object.defineProperty({__proto__:null,isExpanded:He,isMenuButtonDisabled:nn,navigationStore:me,selectedItem:pt,selectedSubNavItemTitle:gt},Symbol.toStringTag,{value:"Module"})),Ga=mr(!1);var Xa=te('<div part="global-header"><div class="header-content svelte-1e8dq3f" part="header-content"><span class="header-text svelte-1e8dq3f"> </span></div></div>');const Qa={hash:"svelte-1e8dq3f",code:".global-header.svelte-1e8dq3f {opacity:0;transition:opacity var(--ai-duration-fast);}.global-header.visible.svelte-1e8dq3f {opacity:1;transition:opacity var(--ai-duration-fast);}.header-content.svelte-1e8dq3f {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-1e8dq3f {display:flex;align-items:center;gap:var(--ai-size-16);align-self:stretch;}.header-text.svelte-1e8dq3f {color:var(--ai-color-black);font-size:var(--ai-size-16);font-weight:400;line-height:1.3;}"};function Di(e,t){Q(t,!0),ct(e,Qa);const[r,n]=Qt(),i=()=>Ae(pt,"$selectedItem",r),o=()=>Ae(He,"$isExpanded",r),s=()=>Ae(Ga,"$subNavReady",r),a=()=>Ae(gt,"$selectedSubNavItemTitle",r),u=m(t,"customHeaderText",7,"");let c=!1;const f=ie(()=>()=>i()&&i()!=="discover"&&!o()&&!c&&s()),v=ie(()=>()=>u()||a());Wt(()=>{const k=h=>{if(typeof window<"u"&&window.innerWidth<=640)return;let _=null;if(typeof window<"u"&&(_=sessionStorage.getItem("subNav-topLevelTitle"),_))try{_=JSON.parse(_)}catch{}if(typeof _=="string"&&_.trim()!=="")gt.set(_),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(_));else{const C=h;C.detail&&C.detail.title&&(gt.set(C.detail.title),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(C.detail.title)))}},g=h=>{const _=h,{isMobile:C}=_.detail;C||(c=!0,setTimeout(()=>{c=!1},300))};return window.addEventListener("sectionVisible",k),window.addEventListener("layoutTransition",g),()=>{window.removeEventListener("sectionVisible",k),window.removeEventListener("layoutTransition",g)}});var l=Xa();let d;var b=I(l),y=I(b),x=I(y,!0);z(y),z(b),z(l),_e((k,g)=>{d=ze(l,1,"global-header svelte-1e8dq3f",null,d,k),Kt(x,g)},[()=>({visible:w(f)()}),()=>w(v)()]),T(e,l);var N=ee({get customHeaderText(){return u()},set customHeaderText(k=""){u(k),p()}});return n(),N}ae(Di,{customHeaderText:{}},[],[],!0);function Oi(e,t){Q(t,!0);let r=m(t,"customHeaderText",7,"");return Di(e,{get customHeaderText(){return r()}}),ee({get customHeaderText(){return r()},set customHeaderText(n=""){r(n),p()}})}customElements.define("graymatter-desktop-header",ae(Oi,{customHeaderText:{attribute:"custom-header-text",reflect:!0,type:"String"}},[],[],!0)),Ho();var es=re('<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>'),ts=re('<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>'),rs=re('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function on(e,t){Q(t,!1);let r=m(t,"isSelected",12,!1);var n=rs(),i=I(n);{var o=a=>{var u=es();T(a,u)},s=a=>{var u=ts();T(a,u)};X(i,a=>{r()?a(o):a(s,!1)})}return z(n),T(e,n),ee({get isSelected(){return r()},set isSelected(a){r(a),p()}})}ae(on,{isSelected:{}},[],[],!0);var ns=re('<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>'),is=re('<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>'),os=re('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function an(e,t){Q(t,!1);let r=m(t,"isSelected",12,!1);var n=os(),i=I(n);{var o=a=>{var u=ns();T(a,u)},s=a=>{var u=is();T(a,u)};X(i,a=>{r()?a(o):a(s,!1)})}return z(n),T(e,n),ee({get isSelected(){return r()},set isSelected(a){r(a),p()}})}ae(an,{isSelected:{}},[],[],!0);var as=re('<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),ss=re('<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),ls=re('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function sn(e,t){Q(t,!1);let r=m(t,"isSelected",12,!1);var n=ls(),i=I(n);{var o=a=>{var u=as();Ye(3),T(a,u)},s=a=>{var u=ss();Ye(3),T(a,u)};X(i,a=>{r()?a(o):a(s,!1)})}return z(n),T(e,n),ee({get isSelected(){return r()},set isSelected(a){r(a),p()}})}ae(sn,{isSelected:{}},[],[],!0);var us=re('<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),cs=re('<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),ds=re('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function ln(e,t){Q(t,!1);let r=m(t,"isSelected",12,!1);var n=ds(),i=I(n);{var o=a=>{var u=us();Ye(2),T(a,u)},s=a=>{var u=cs();Ye(2),T(a,u)};X(i,a=>{r()?a(o):a(s,!1)})}return z(n),T(e,n),ee({get isSelected(){return r()},set isSelected(a){r(a),p()}})}ae(ln,{isSelected:{}},[],[],!0);var vs=re('<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),fs=re('<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),hs=re('<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),bs=re('<path d="M8.18018 5.45068V18.5208" stroke="#585C63" stroke-width="1.5"></path>'),gs=re('<path d="M9.18018 3.27222V20.9203" stroke="#585C63" stroke-width="1.5"></path>'),ps=re('<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),ms=re("<svg><!></svg>");function xr(e,t){const r=Ii(t,["children","$$slots","$$events","$$legacy","$$host"]),n=Ii(r,["isDisabled","isHovered","isOpen"]);Q(t,!1);let i=m(t,"isDisabled",12,!1),o=m(t,"isHovered",12,!1),s=m(t,"isOpen",12,!1);var a=ms();Xt(a,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...n}));var u=I(a);{var c=v=>{var l=vs(),d=de(tt(l));_e(()=>K(d,"d",`M${s()?"8.18018":"9.18018"} ${s()?"5.45068":"3.27222"}V${s()?"18.5208":"20.9203"}`)),T(v,l)},f=(v,l)=>{{var d=y=>{var x=Lt(),N=tt(x);{var k=h=>{var _=fs();Ye(),T(h,_)},g=h=>{var _=hs();Ye(),T(h,_)};X(N,h=>{s()?h(k):h(g,!1)})}T(y,x)},b=y=>{var x=ps(),N=de(tt(x));{var k=h=>{var _=bs();T(h,_)},g=h=>{var _=gs();T(h,_)};X(N,h=>{s()?h(k):h(g,!1)})}T(y,x)};X(v,y=>{o()?y(d):y(b,!1)},l)}};X(u,v=>{i()?v(c):v(f,!1)})}return z(a),T(e,a),ee({get isDisabled(){return i()},set isDisabled(v){i(v),p()},get isHovered(){return o()},set isHovered(v){o(v),p()},get isOpen(){return s()},set isOpen(v){s(v),p()}})}ae(xr,{isDisabled:{},isHovered:{},isOpen:{}},[],[],!0);var ws=te('<span class="icon svelte-1ybo61g"><img alt="" aria-hidden="true" width="20" height="20"/></span>'),_s=te('<button type="button" class="menu-item svelte-1ybo61g" role="menuitem"><!> <div class="menu-text svelte-1ybo61g"> </div></button>'),ys=te('<div tabindex="-1" role="menu"></div>'),ks=te('<div style="position: relative; display: inline-block;" data-profile-menu=""><button class="user-profile-button svelte-1ybo61g" tabindex="0" aria-haspopup="menu"><div class="user-profile-container svelte-1ybo61g"><div class="user-profile-icon svelte-1ybo61g" part="user-profile-icon"><span class="user-initials svelte-1ybo61g"> </span></div></div></button> <!></div>');const xs={hash:"svelte-1ybo61g",code:`.user-profile-container.svelte-1ybo61g,
|
|
47
|
+
/*! purgecss end ignore */`};function Ni(e,t){Q(t,!0),ct(e,Za);let r=_(t,"variant",7,"primary"),n=_(t,"theme",7,"default"),i=_(t,"shape",7,"round"),o=_(t,"href",7,void 0),s=_(t,"disabled",7,!1),a=_(t,"onclick",7),l=_(t,"size",7,"medium"),c=_(t,"type",7,"button"),v=_(t,"class",7,""),d=wr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","shape","href","disabled","onclick","size","type","class"]);const u=ie(()=>()=>["usa-button","ai-button",l()==="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":""].filter(Boolean).join(" ")),h=ie(()=>()=>`${p(u)()} ${v()}`.trim());var b=bt(),k=Fe(b);{var C=g=>{var m=Fa();Gt(m,(y,E)=>({class:y,href:o(),onclick:a(),...d,[Nt]:E}),[()=>p(h)(),()=>({disabled:s()})],"svelte-zsrcxo");var f=z(m);gt(f,t,"default",{}),S(m),M(g,m)},L=g=>{var m=Ya();Gt(m,y=>({class:y,type:c(),disabled:s(),onclick:a(),...d}),[()=>p(h)()],"svelte-zsrcxo");var f=z(m);gt(f,t,"default",{}),S(m),M(g,m)};G(k,g=>{o()?g(C):g(L,!1)})}return M(e,b),ee({get variant(){return r()},set variant(g="primary"){r(g),w()},get theme(){return n()},set theme(g="default"){n(g),w()},get shape(){return i()},set shape(g="round"){i(g),w()},get href(){return o()},set href(g=void 0){o(g),w()},get disabled(){return s()},set disabled(g=!1){s(g),w()},get onclick(){return a()},set onclick(g){a(g),w()},get size(){return l()},set size(g="medium"){l(g),w()},get type(){return c()},set type(g="button"){c(g),w()},get class(){return v()},set class(g=""){v(g),w()}})}ae(Ni,{variant:{},theme:{},shape:{},href:{},disabled:{},onclick:{},size:{},type:{},class:{}},["default"],[],!0);function Mi(e,t){Q(t,!0);let r=_(t,"variant",7,"primary"),n=_(t,"theme",7,"default"),i=_(t,"href",7,null),o=_(t,"disabled",7,!1),s=_(t,"size",7,"medium"),a=_(t,"type",7,"button"),l=_(t,"onclick",7),c=_(t,"class",7,""),v=wr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","href","disabled","size","type","onclick","class"]);return Ni(e,Li({get variant(){return r()},get theme(){return n()},get href(){return i()},get disabled(){return o()},get size(){return s()},get type(){return a()},get onclick(){return l()},get class(){return c()}},()=>v,{children:(d,u)=>{var h=bt(),b=Fe(h);gt(b,t,"default",{}),M(d,h)},$$slots:{default:!0}})),ee({get variant(){return r()},set variant(d="primary"){r(d),w()},get theme(){return n()},set theme(d="default"){n(d),w()},get href(){return i()},set href(d=null){i(d),w()},get disabled(){return o()},set disabled(d=!1){o(d),w()},get size(){return s()},set size(d="medium"){s(d),w()},get type(){return a()},set type(d="button"){a(d),w()},get onclick(){return l()},set onclick(d){l(d),w()},get class(){return c()},set class(d=""){c(d),w()}})}customElements.define("graymatter-button",ae(Mi,{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:{}},["default"],[],!0));const Qt=typeof window<"u";function Ja(e,t){if(Qt&&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 Ti(e,t){const r=Ja(e,t),n=pr(r);return Qt&&n.subscribe(i=>{try{sessionStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to sessionStorage:`,o)}}),n}Ti("subNav-selectedId",null);const pt=Ti("subNav-selectedTitle","");function Ai(e,t){if(Qt&&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 Ui(e,t){const r=Ai(e,t),n=pr(r);return Qt&&n.subscribe(i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to localStorage:`,o)}}),n}const Oe=Ui("globalSideNav-isExpanded",!1),mt=Ui("globalSideNav-selectedItem",null),rn=$a(mt,e=>e==="discover"),me={toggleExpanded:()=>{Oe.update(e=>!e)},setExpanded:e=>{Oe.set(e)},setSelectedItem:e=>{mt.set(e),e==="discover"?Oe.set(!1):Qt&&window.innerWidth>640&&Oe.set(!0)},handleLayoutTransition:e=>{if(e)Oe.set(!1);else{const t=Ai("globalSideNav-selectedItem",null);t&&t!=="discover"?(console.log("[NavigationStore] Opening navigation for desktop (non-discover page)"),Oe.set(!0)):Oe.set(!1)}}},yr=Object.freeze(Object.defineProperty({__proto__:null,isExpanded:Oe,isMenuButtonDisabled:rn,navigationStore:me,selectedItem:mt,selectedSubNavItemTitle:pt},Symbol.toStringTag,{value:"Module"})),Ka=pr(!1);var Wa=te('<div part="global-header"><div class="header-content svelte-1e8dq3f" part="header-content"><span class="header-text svelte-1e8dq3f"> </span></div></div>');const Ga={hash:"svelte-1e8dq3f",code:".global-header.svelte-1e8dq3f {opacity:0;transition:opacity var(--ai-duration-fast);}.global-header.visible.svelte-1e8dq3f {opacity:1;transition:opacity var(--ai-duration-fast);}.header-content.svelte-1e8dq3f {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-1e8dq3f {display:flex;align-items:center;gap:var(--ai-size-16);align-self:stretch;}.header-text.svelte-1e8dq3f {color:var(--ai-color-black);font-size:var(--ai-size-16);font-weight:400;line-height:1.3;}"};function $i(e,t){Q(t,!0),ct(e,Ga);const[r,n]=Xt(),i=()=>Te(mt,"$selectedItem",r),o=()=>Te(Oe,"$isExpanded",r),s=()=>Te(Ka,"$subNavReady",r),a=()=>Te(pt,"$selectedSubNavItemTitle",r),l=_(t,"customHeaderText",7,"");let c=!1;const v=ie(()=>()=>i()&&i()!=="discover"&&!o()&&!c&&s()),d=ie(()=>()=>l()||a());Kt(()=>{const g=f=>{if(typeof window<"u"&&window.innerWidth<=640)return;let y=null;if(typeof window<"u"&&(y=sessionStorage.getItem("subNav-topLevelTitle"),y))try{y=JSON.parse(y)}catch{}if(typeof y=="string"&&y.trim()!=="")pt.set(y),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(y));else{const E=f;E.detail&&E.detail.title&&(pt.set(E.detail.title),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(E.detail.title)))}},m=f=>{const y=f,{isMobile:E}=y.detail;E||(c=!0,setTimeout(()=>{c=!1},300))};return window.addEventListener("sectionVisible",g),window.addEventListener("layoutTransition",m),()=>{window.removeEventListener("sectionVisible",g),window.removeEventListener("layoutTransition",m)}});var u=Wa();let h;var b=z(u),k=z(b),C=z(k,!0);S(k),S(b),S(u),_e((g,m)=>{h=Ee(u,1,"global-header svelte-1e8dq3f",null,h,g),Jt(C,m)},[()=>({visible:p(v)()}),()=>p(d)()]),M(e,u);var L=ee({get customHeaderText(){return l()},set customHeaderText(g=""){l(g),w()}});return n(),L}ae($i,{customHeaderText:{}},[],[],!0);function ji(e,t){Q(t,!0);let r=_(t,"customHeaderText",7,"");return $i(e,{get customHeaderText(){return r()}}),ee({get customHeaderText(){return r()},set customHeaderText(n=""){r(n),w()}})}customElements.define("graymatter-desktop-header",ae(ji,{customHeaderText:{attribute:"custom-header-text",reflect:!0,type:"String"}},[],[],!0)),Do();var Xa=re('<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>'),Qa=re('<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>'),es=re('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function nn(e,t){Q(t,!1);let r=_(t,"isSelected",12,!1);var n=es(),i=z(n);{var o=a=>{var l=Xa();M(a,l)},s=a=>{var l=Qa();M(a,l)};G(i,a=>{r()?a(o):a(s,!1)})}return S(n),M(e,n),ee({get isSelected(){return r()},set isSelected(a){r(a),w()}})}ae(nn,{isSelected:{}},[],[],!0);var ts=re('<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>'),rs=re('<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>'),ns=re('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function on(e,t){Q(t,!1);let r=_(t,"isSelected",12,!1);var n=ns(),i=z(n);{var o=a=>{var l=ts();M(a,l)},s=a=>{var l=rs();M(a,l)};G(i,a=>{r()?a(o):a(s,!1)})}return S(n),M(e,n),ee({get isSelected(){return r()},set isSelected(a){r(a),w()}})}ae(on,{isSelected:{}},[],[],!0);var is=re('<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),os=re('<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),as=re('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function an(e,t){Q(t,!1);let r=_(t,"isSelected",12,!1);var n=as(),i=z(n);{var o=a=>{var l=is();Be(3),M(a,l)},s=a=>{var l=os();Be(3),M(a,l)};G(i,a=>{r()?a(o):a(s,!1)})}return S(n),M(e,n),ee({get isSelected(){return r()},set isSelected(a){r(a),w()}})}ae(an,{isSelected:{}},[],[],!0);var ss=re('<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),ls=re('<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),us=re('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function sn(e,t){Q(t,!1);let r=_(t,"isSelected",12,!1);var n=us(),i=z(n);{var o=a=>{var l=ss();Be(2),M(a,l)},s=a=>{var l=ls();Be(2),M(a,l)};G(i,a=>{r()?a(o):a(s,!1)})}return S(n),M(e,n),ee({get isSelected(){return r()},set isSelected(a){r(a),w()}})}ae(sn,{isSelected:{}},[],[],!0);var cs=re('<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),ds=re('<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),vs=re('<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),fs=re('<path d="M8.18018 5.45068V18.5208" stroke="#585C63" stroke-width="1.5"></path>'),hs=re('<path d="M9.18018 3.27222V20.9203" stroke="#585C63" stroke-width="1.5"></path>'),bs=re('<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),gs=re("<svg><!></svg>");function kr(e,t){const r=zi(t,["children","$$slots","$$events","$$legacy","$$host"]),n=zi(r,["isDisabled","isHovered","isOpen"]);Q(t,!1);let i=_(t,"isDisabled",12,!1),o=_(t,"isHovered",12,!1),s=_(t,"isOpen",12,!1);var a=gs();Gt(a,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...n}));var l=z(a);{var c=d=>{var u=cs(),h=fe(Fe(u));_e(()=>K(h,"d",`M${s()?"8.18018":"9.18018"} ${s()?"5.45068":"3.27222"}V${s()?"18.5208":"20.9203"}`)),M(d,u)},v=(d,u)=>{{var h=k=>{var C=bt(),L=Fe(C);{var g=f=>{var y=ds();Be(),M(f,y)},m=f=>{var y=vs();Be(),M(f,y)};G(L,f=>{s()?f(g):f(m,!1)})}M(k,C)},b=k=>{var C=bs(),L=fe(Fe(C));{var g=f=>{var y=fs();M(f,y)},m=f=>{var y=hs();M(f,y)};G(L,f=>{s()?f(g):f(m,!1)})}M(k,C)};G(d,k=>{o()?k(h):k(b,!1)},u)}};G(l,d=>{i()?d(c):d(v,!1)})}return S(a),M(e,a),ee({get isDisabled(){return i()},set isDisabled(d){i(d),w()},get isHovered(){return o()},set isHovered(d){o(d),w()},get isOpen(){return s()},set isOpen(d){s(d),w()}})}ae(kr,{isDisabled:{},isHovered:{},isOpen:{}},[],[],!0);var ps=te('<span class="icon svelte-1ybo61g"><img alt="" aria-hidden="true" width="20" height="20"/></span>'),ms=te('<button type="button" class="menu-item svelte-1ybo61g" role="menuitem"><!> <div class="menu-text svelte-1ybo61g"> </div></button>'),ws=te('<div tabindex="-1" role="menu"></div>'),_s=te('<div style="position: relative; display: inline-block;" data-profile-menu=""><button class="user-profile-button svelte-1ybo61g" tabindex="0" aria-haspopup="menu"><div class="user-profile-container svelte-1ybo61g"><div class="user-profile-icon svelte-1ybo61g" part="user-profile-icon"><span class="user-initials svelte-1ybo61g"> </span></div></div></button> <!></div>');const ys={hash:"svelte-1ybo61g",code:`.user-profile-container.svelte-1ybo61g,
|
|
48
48
|
.user-profile-icon.svelte-1ybo61g {display:flex;align-items:center;justify-content:center;}.user-profile-container.svelte-1ybo61g,
|
|
49
49
|
.user-profile-icon.svelte-1ybo61g {display:flex;align-items:center;justify-content:center;}.user-profile-icon.svelte-1ybo61g {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-1ybo61g {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-1ybo61g {background:none;border:none;padding:0;cursor:pointer;display:flex;justify-content:center;align-items:center;}.user-profile-button.svelte-1ybo61g: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-1ybo61g:focus:not(:focus-visible) {outline:none;}.user-profile-container.svelte-1ybo61g {width:var(--ai-size-40);height:var(--ai-size-40);aspect-ratio:1/1;}.profile-context-menu.svelte-1ybo61g {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-1ybo61g {left:100%;top:auto;bottom:0;margin-left:var(--ai-size-8);
|
|
50
|
-
/* aligns bottom of menu with bottom of button */transform:translateY(0);}.profile-context-menu.mobile-align.svelte-1ybo61g {top:110%;right:0;left:auto;bottom:auto;margin-left:0;transform:none;}.menu-item.svelte-1ybo61g {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-1ybo61g: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-1ybo61g:focus:not(:focus-visible) {outline:none;}.menu-item.svelte-1ybo61g:hover {background:var(--ai-color-steel-200);border-radius:var(--ai-size-4);}.icon.svelte-1ybo61g {width:var(--ai-size-20);height:var(--ai-size-20);display:flex;align-items:center;justify-content:center;}.menu-text.svelte-1ybo61g {color:var(--ai-color-black);font-size:var(--ai-size-14);font-style:normal;font-weight:400;line-height:130%;}`};function
|
|
50
|
+
/* aligns bottom of menu with bottom of button */transform:translateY(0);}.profile-context-menu.mobile-align.svelte-1ybo61g {top:110%;right:0;left:auto;bottom:auto;margin-left:0;transform:none;}.menu-item.svelte-1ybo61g {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-1ybo61g: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-1ybo61g:focus:not(:focus-visible) {outline:none;}.menu-item.svelte-1ybo61g:hover {background:var(--ai-color-steel-200);border-radius:var(--ai-size-4);}.icon.svelte-1ybo61g {width:var(--ai-size-20);height:var(--ai-size-20);display:flex;align-items:center;justify-content:center;}.menu-text.svelte-1ybo61g {color:var(--ai-color-black);font-size:var(--ai-size-14);font-style:normal;font-weight:400;line-height:130%;}`};function ln(e,t){Q(t,!1),ct(e,ys);let r=_(t,"menuItems",28,()=>[]),n=_(t,"userMeta",12),i=_(t,"ariaLabel",12,"Open profile menu"),o=_(t,"menuAlign",12,"desktop"),s=`profile-menu-${Math.random().toString(36).slice(2,10)}`,a=ft(!1);function l(){D(a,!p(a))}function c(){D(a,!1)}function v(I){var A;try{const F=new CustomEvent("profileMenuAction",{detail:{action:I,timestamp:Date.now(),userMeta:n()},bubbles:!0,composed:!0});(((A=document.querySelector(".profile-context-menu"))==null?void 0:A.closest("[data-profile-menu]"))||window).dispatchEvent(F)}catch(F){console.error("Error dispatching profile menu action:",F)}}function d(I){const A=I.relatedTarget;(!A||!A.closest(".profile-context-menu"))&&c()}let u=ft(),h=ft([]),b=ft([]);function k(I,A){var F,W,N;if(I.key==="ArrowDown"){I.preventDefault();const U=(A+1)%r().length;(F=p(h)[U])==null||F.focus()}else if(I.key==="ArrowUp"){I.preventDefault();const U=(A-1+r().length)%r().length;(W=p(h)[U])==null||W.focus()}else I.key==="Escape"&&(c(),(N=p(u))==null||N.focus(),I.stopPropagation())}function C(I){var A;p(a)&&I.key==="Escape"&&(c(),(A=p(u))==null||A.focus(),I.stopPropagation())}Kt(()=>(window.addEventListener("keydown",C,!0),()=>{window.removeEventListener("keydown",C,!0)})),Zo(()=>p(b),()=>{D(h,p(b).filter(Boolean))}),Jo(),Aa();var L=_s(),g=z(L),m=z(g),f=z(m),y=z(f),E=z(y,!0);S(y),S(f),S(m),S(g),dt(g,I=>D(u,I),()=>p(u));var T=fe(g,2);{var j=I=>{var A=ws();fi(A,7,r,F=>F.label,(F,W,N)=>{var U=ms(),R=z(U);{var X=ne=>{var de=ps(),nt=z(de);S(de),_e(()=>K(nt,"src",(p(W),je(()=>p(W).icon)))),M(ne,de)};G(R,ne=>{p(W),je(()=>p(W).icon)&&ne(X)})}var le=fe(R,2),ce=z(le,!0);S(le),S(U),dt(U,(ne,de)=>Vo(b,p(b)[de]=ne),ne=>{var de;return(de=p(b))==null?void 0:de[ne]},()=>[p(N)]),_e(()=>Jt(ce,(p(W),je(()=>p(W).label)))),be("click",U,()=>{v(p(W).action),c()}),be("keydown",U,ne=>k(ne,p(N))),M(F,U)}),S(A),_e(()=>{Ee(A,1,`profile-context-menu ${o()==="desktop"?"desktop-align":"mobile-align"}`,"svelte-1ybo61g"),K(A,"id",s)}),M(I,A)};G(T,I=>{p(a)&&I(j)})}return S(L),_e(()=>{K(g,"aria-label",i()),K(g,"aria-expanded",p(a)),K(g,"aria-controls",s),Jt(E,(si(n()),je(()=>{var I;return(I=n())==null?void 0:I.initials})))}),be("click",g,l),be("blur",g,d),M(e,L),ee({get menuItems(){return r()},set menuItems(I){r(I),w()},get userMeta(){return n()},set userMeta(I){n(I),w()},get ariaLabel(){return i()},set ariaLabel(I){i(I),w()},get menuAlign(){return o()},set menuAlign(I){o(I),w()}})}ae(ln,{menuItems:{},userMeta:{},ariaLabel:{},menuAlign:{}},[],[],!0);const Di=e=>typeof e!="string"||!e?"/":e.replace(/\/+$/,"")+"/",ks=()=>{if(typeof window<"u")return"/";if(typeof process<"u"&&process.env){const{BASEURL:e}=process.env;return e?Di(e):"/"}return"/"},Oi=e=>{const t=Di(ks());return typeof e!="string"||!e?t:`${t}${e.replace(/^\/+/,"")}`},xs={};function un(e,t){t||console.warn(`[getAppUrls] Environment variable for ${e} is missing!`)}function Cs(e){try{return new URL(e),!0}catch{return!1}}function xr(e,t){return e?Cs(e)?e:Oi(e):t}function Hi(e){const t=xs,r="#",n=t.PUBLIC_CHAT_URL,i=t.PUBLIC_CONSOLE_URL,o=t.PUBLIC_API_URL,s=t.PUBLIC_DISCOVER_URL;return un("chat",n),un("console",i),un("api",o),{chat:xr(n,r),console:xr(i,r),api:xr(o,Oi("/api/documentation")),discover:xr(s,"#")}}function Es(e,t,r,n){var i;t()||(me.toggleExpanded(),(i=r())==null||i({expanded:n()}))}var Ss=(e,t)=>t("discover"),zs=(e,t,r)=>{t(e,"discover"),r(e,0)},Ls=te('<a part="discover-item"><div class="icon-container svelte-6rrvhj" part="discover-icon-container"><div class="icon-wrapper svelte-6rrvhj"><!></div></div> <span class="nav-text svelte-6rrvhj">Discover</span></a>'),Is=(e,t)=>t("chat"),Ns=(e,t,r)=>{t(e,"chat"),r(e,1)},Ms=(e,t)=>t("console"),Ts=(e,t,r)=>{t(e,"console"),r(e,2)},As=(e,t)=>t("api"),Us=(e,t,r)=>{t(e,"api"),r(e,3)},$s=te('<div class="nav-items svelte-6rrvhj" part="nav-items"><!> <a part="chat-item"><div class="icon-container svelte-6rrvhj" part="chat-icon-container"><div class="icon-wrapper svelte-6rrvhj"><!></div></div> <span class="nav-text svelte-6rrvhj">Chat</span></a> <a part="console-item"><div class="icon-container svelte-6rrvhj" part="console-icon-container"><div class="icon-wrapper svelte-6rrvhj"><!></div></div> <span class="nav-text svelte-6rrvhj">Console</span></a> <a part="api-item"><div class="icon-container svelte-6rrvhj" part="api-icon-container"><div class="icon-wrapper svelte-6rrvhj"><!></div></div> <span class="nav-text svelte-6rrvhj">API</span></a></div>'),js=te('<div class="nav-footer svelte-6rrvhj" part="nav-footer"><div class="nav-footer-profile-container svelte-6rrvhj"><!></div></div>'),Ds=te('<div class="drawer-content svelte-6rrvhj" part="drawer-content"><nav aria-label="Sub navigation" part="sub-navigation" class="svelte-6rrvhj"><!></nav></div>'),Os=te('<div part="side-nav-container" data-testid="side-nav-container"><div class="nav-content svelte-6rrvhj" part="nav-content"><div class="nav-main svelte-6rrvhj" part="nav-main"><div class="menu-section svelte-6rrvhj" part="menu-section"><button><div class="icon-container svelte-6rrvhj" part="icon-container"><div class="icon-wrapper svelte-6rrvhj"><!></div></div></button></div> <!></div> <!></div> <div part="expanded-content"><!></div></div>');const Hs={hash:"svelte-6rrvhj",code:`.expanded-content.drawer-anim.svelte-6rrvhj {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-6rrvhj {max-width:12.5rem;pointer-events:auto;}.drawer-content.svelte-6rrvhj {width:12.5rem;height:100%;display:flex;flex-direction:column;padding-top:var(--ai-size-72);}.drawer-content.svelte-6rrvhj nav:where(.svelte-6rrvhj) {flex:1;overflow-y:auto;overflow-x:hidden;}.menu-button.svelte-6rrvhj {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-6rrvhj:disabled,
|
|
51
51
|
.menu-button.disabled.svelte-6rrvhj {cursor:not-allowed;opacity:0.5;background-color:transparent;}.side-nav-container.svelte-6rrvhj {display:flex;flex-shrink:0;position:relative;z-index:var(--ai-layer-2);height:100%;}.side-nav-container.expanded.svelte-6rrvhj {width:16.875rem;min-width:12.5rem;max-width:16.875rem;height:100%;}.expanded-content.svelte-6rrvhj {display:flex;width:12.5rem;opacity:1;flex:none;height:100%;background:var(--ai-color-steel-100);border-right:0.0625rem solid var(--ai-color-steel-100);overflow:hidden;flex-direction:column;}.side-nav-container.expanded.svelte-6rrvhj .expanded-content:where(.svelte-6rrvhj) {width:12.5rem;opacity:1;overflow:hidden;}.side-nav-container.svelte-6rrvhj:not(.expanded) .expanded-content:where(.svelte-6rrvhj) {width:0;opacity:0;}.nav-content.svelte-6rrvhj {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-200);border-right:0.0625rem solid var(--ai-color-steel-200);}.nav-main.svelte-6rrvhj {display:flex;flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);flex:1 0 0;align-self:stretch;}.nav-footer.svelte-6rrvhj {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-6rrvhj {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;align-self:stretch;}.menu-button.svelte-6rrvhj {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-6rrvhj {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-6rrvhj:focus,
|
|
52
52
|
.nav-item.svelte-6rrvhj:focus {outline:none;}.menu-button.svelte-6rrvhj:focus .icon-container:where(.svelte-6rrvhj),
|
|
53
53
|
.nav-item.svelte-6rrvhj:focus .icon-container:where(.svelte-6rrvhj) {outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);border-radius:var(--ai-size-4);}
|
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
display: flex;
|
|
107
107
|
align-items: center;
|
|
108
108
|
justify-content: center;
|
|
109
|
-
} */`};function Pi(e,t){Q(t,!0),ct(e,Vs);const[r,n]=Qt(),i=()=>Ae(pt,"$selectedItem",r),o=()=>Ae(He,"$isExpanded",r),s=()=>Ae(nn,"$isMenuButtonDisabled",r),a=m(t,"ssrSelectedItem",7,void 0),u=m(t,"onNavToggle",7,void 0),c=m(t,"onNavItemClick",7,void 0),f=m(t,"children",7),v=m(t,"showAppIcons",7,!0),l=m(t,"hideDiscover",7,!0),d=m(t,"profileMenuData",7),b=m(t,"apiUrl",7),y=m(t,"chatUrl",7),x=m(t,"consoleUrl",7),N=m(t,"discoverUrl",7),k=b()&&y()&&x()&&N()?{api:"#",chat:"#",console:"#",discover:"#"}:Vi();let g=!1,h,_=ge(null),C=ge(!1),M=ge(!1),j=ge(null),L=ge(null),A=ge(null),F=ge(null),W=null;function ve(E,Y){return g?E:Y}function S(E){return ve(i()===E,a()===E)}function O(E){return w(_)===E}const B=ie(()=>()=>ve(o(),a()?a()!=="discover":!0)),ne=ie(()=>()=>ve(s(),a()?a()==="discover":!1)),be=ie(()=>()=>ve(o(),a()?a()!=="discover":!0)),G=ie(()=>()=>w(M)&&w(C)&&!w(ne)());Wt(()=>{if(g=!0,document.documentElement.classList.remove("nav-initially-expanded"),document.documentElement.style.removeProperty("--initial-main-top-padding"),h&&h.classList.add("hydrated"),typeof window<"u"){const E=window.matchMedia("(hover: hover)");$(M,E.matches,!0),E.addEventListener("change",R=>{$(M,R.matches,!0)});const Y=R=>{const fe=R,{isMobile:ce}=fe.detail;if(ce)me.setExpanded(!1);else{const Pe=i();Pe&&Pe!=="discover"?me.setExpanded(!0):me.setExpanded(!1)}};window.addEventListener("layoutTransition",Y);const q=R=>{const fe=document.activeElement;R.key==="Escape"&&o()&&!(fe&&fe.closest(".profile-context-menu"))&&me.setExpanded(!1)};window.addEventListener("keydown",q);const ue=R=>{const fe=R,{action:ce,isOpen:Pe}=fe.detail;ce==="toggle"?me.toggleExpanded():ce==="open"?me.setExpanded(!0):ce==="close"?me.setExpanded(!1):ce==="set"&&typeof Pe=="boolean"&&me.setExpanded(Pe)};return window.addEventListener("graymatter-desktop-nav-control",ue),W=()=>{window.removeEventListener("graymatter-desktop-nav-control",ue)},()=>{window.removeEventListener("layoutTransition",Y),window.removeEventListener("keydown",q),W&&W()}}});function se(E){var Y;if(E!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),me.setSelectedItem(E),E!=="discover")try{Promise.resolve().then(()=>kr).then(({selectedSubNavItemTitle:q})=>{q.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{if(typeof document<"u"){const ue=document.getElementById("main-content");if(ue){const R=ue.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(R&&R.textContent){const fe=R.textContent.trim();q.set(fe),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(fe))}}}},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(()=>kr).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)}(Y=c())==null||Y({item:E,expanded:o()})}function qe(E,Y){(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),se(Y))}function mt(E,Y){var R,fe,ce,Pe;const q=[w(j),w(L),w(A),w(F)],ue=q.length;if(ue)if(E.key==="ArrowDown"){E.preventDefault();const nr=(Y+1)%ue;(R=q[nr])==null||R.focus()}else if(E.key==="ArrowUp"){E.preventDefault();const nr=(Y-1+ue)%ue;(fe=q[nr])==null||fe.focus()}else E.key==="Home"?(E.preventDefault(),(ce=q[0])==null||ce.focus()):E.key==="End"&&(E.preventDefault(),(Pe=q[ue-1])==null||Pe.focus())}var rr=qs();let eo;var dn=I(rr),vn=I(dn),fn=I(vn),Ve=I(fn);let to;Ve.__click=[zs,s,u,o];var ro=I(Ve),no=I(ro),hl=I(no);const bl=ie(()=>w(G)()),gl=ie(()=>w(ne)()),pl=ie(()=>w(be)());xr(hl,{get isHovered(){return w(bl)},get isDisabled(){return w(gl)},get isOpen(){return w(pl)}}),z(no),z(ro),z(Ve),z(fn);var ml=de(fn,2);{var wl=E=>{var Y=Ds(),q=I(Y);{var ue=Be=>{var Le=Ns();let Sr;Le.__click=[Ls,se],Le.__keydown=[Is,qe,mt];var zr=I(Le),Lr=I(zr),bn=I(Lr);const Nl=ie(()=>S("discover"));on(bn,{get isSelected(){return w(Nl)}}),z(Lr),z(zr),Ye(2),z(Le),dt(Le,gn=>$(j,gn),()=>w(j)),_e((gn,Ml)=>{K(Le,"href",N()||k.discover),Sr=ze(Le,1,"nav-item discover-item svelte-6rrvhj",null,Sr,gn),K(Le,"aria-current",Ml)},[()=>({selected:S("discover"),hovered:O("discover")}),()=>S("discover")?"page":void 0]),he("mouseenter",Le,()=>$(_,"discover")),he("mouseleave",Le,()=>$(_,null)),T(Be,Le)};X(q,Be=>{l()||Be(ue)})}var R=de(q,2);let fe;R.__click=[Ms,se],R.__keydown=[Ts,qe,mt];var ce=I(R),Pe=I(ce),nr=I(Pe);const El=ie(()=>S("chat"));an(nr,{get isSelected(){return w(El)}}),z(Pe),z(ce),Ye(2),z(R),dt(R,Be=>$(L,Be),()=>w(L));var Re=de(R,2);let oo;Re.__click=[As,se],Re.__keydown=[Us,qe,mt];var ao=I(Re),so=I(ao),Sl=I(so);const zl=ie(()=>S("console"));sn(Sl,{get isSelected(){return w(zl)}}),z(so),z(ao),Ye(2),z(Re),dt(Re,Be=>$(A,Be),()=>w(A));var Ke=de(Re,2);let lo;Ke.__click=[js,se],Ke.__keydown=[$s,qe,mt];var uo=I(Ke),co=I(uo),Ll=I(co);const Il=ie(()=>S("api"));ln(Ll,{get isSelected(){return w(Il)}}),z(co),z(uo),Ye(2),z(Ke),dt(Ke,Be=>$(F,Be),()=>w(F)),z(Y),_e((Be,Le,Sr,zr,Lr,bn)=>{K(R,"href",y()||k.chat),fe=ze(R,1,"nav-item chat-item svelte-6rrvhj",null,fe,Be),K(R,"aria-current",Le),K(Re,"href",x()||k.console),oo=ze(Re,1,"nav-item console-item svelte-6rrvhj",null,oo,Sr),K(Re,"aria-current",zr),K(Ke,"href",b()||k.api),lo=ze(Ke,1,"nav-item api-item svelte-6rrvhj",null,lo,Lr),K(Ke,"aria-current",bn)},[()=>({selected:S("chat"),hovered:O("chat")}),()=>S("chat")?"page":void 0,()=>({selected:S("console"),hovered:O("console")}),()=>S("console")?"page":void 0,()=>({selected:S("api"),hovered:O("api")}),()=>S("api")?"page":void 0]),he("mouseenter",R,()=>$(_,"chat")),he("mouseleave",R,()=>$(_,null)),he("mouseenter",Re,()=>$(_,"console")),he("mouseleave",Re,()=>$(_,null)),he("mouseenter",Ke,()=>$(_,"api")),he("mouseleave",Ke,()=>$(_,null)),T(E,Y)};X(ml,E=>{v()&&E(wl)})}z(vn);var _l=de(vn,2);{var yl=E=>{var Y=Os(),q=I(Y),ue=I(q);const R=ie(()=>{var ce;return(ce=d())==null?void 0:ce.userMeta}),fe=ie(()=>{var ce;return(ce=d())==null?void 0:ce.menuItems});un(ue,{get userMeta(){return w(R)},get menuItems(){return w(fe)},ariaLabel:"Open profile menu",menuAlign:"desktop"}),z(q),z(Y),T(E,Y)};X(_l,E=>{d()&&E(yl)})}z(dn);var hn=de(dn,2);let io;var kl=I(hn);{var xl=E=>{var Y=Hs(),q=I(Y),ue=I(q);pr(ue,()=>f()??ke),z(q),z(Y),T(E,Y)};X(kl,E=>{w(B)()&&E(xl)})}z(hn),z(rr),dt(rr,E=>h=E,()=>h),_e((E,Y,q,ue,R)=>{eo=ze(rr,1,"side-nav-container svelte-6rrvhj",null,eo,E),to=ze(Ve,1,"menu-button svelte-6rrvhj",null,to,Y),Ve.disabled=s(),K(Ve,"aria-label",q),K(Ve,"aria-expanded",ue),io=ze(hn,1,"expanded-content drawer-anim svelte-6rrvhj",null,io,R)},[()=>({expanded:w(B)()}),()=>({disabled:s()}),()=>w(B)()?"Close navigation menu":"Open navigation menu",()=>w(B)()?"true":"false",()=>({open:w(B)()})]),he("mouseenter",Ve,()=>$(C,!0)),he("mouseleave",Ve,()=>$(C,!1)),he("focus",Ve,()=>$(C,!0)),he("blur",Ve,()=>$(C,!1)),T(e,rr);var Cl=ee({get ssrSelectedItem(){return a()},set ssrSelectedItem(E=void 0){a(E),p()},get onNavToggle(){return u()},set onNavToggle(E=void 0){u(E),p()},get onNavItemClick(){return c()},set onNavItemClick(E=void 0){c(E),p()},get children(){return f()},set children(E){f(E),p()},get showAppIcons(){return v()},set showAppIcons(E=!0){v(E),p()},get hideDiscover(){return l()},set hideDiscover(E=!0){l(E),p()},get profileMenuData(){return d()},set profileMenuData(E){d(E),p()},get apiUrl(){return b()},set apiUrl(E){b(E),p()},get chatUrl(){return y()},set chatUrl(E){y(E),p()},get consoleUrl(){return x()},set consoleUrl(E){x(E),p()},get discoverUrl(){return N()},set discoverUrl(E){N(E),p()}});return n(),Cl}Zt(["click","keydown"]),ae(Pi,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},children:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0);function Ri(e,t){Q(t,!0);let r=m(t,"ssrSelectedItem",7),n=m(t,"onNavToggle",7),i=m(t,"onNavItemClick",7),o=m(t,"showAppIcons",7,!0),s=m(t,"hideDiscover",7,!0),a=m(t,"profileMenuData",7),u=m(t,"apiUrl",7),c=m(t,"chatUrl",7),f=m(t,"consoleUrl",7),v=m(t,"discoverUrl",7),l=m(t,"children",7);return Pi(e,{get ssrSelectedItem(){return r()},get onNavToggle(){return n()},get onNavItemClick(){return i()},get showAppIcons(){return o()},get hideDiscover(){return s()},get profileMenuData(){return a()},get apiUrl(){return u()},get chatUrl(){return c()},get consoleUrl(){return f()},get discoverUrl(){return v()},get children(){return l()},$$slots:{default:(d,b)=>{var y=Lt(),x=tt(y);pi(x,t,"default",{}),T(d,y)}}}),ee({get ssrSelectedItem(){return r()},set ssrSelectedItem(d){r(d),p()},get onNavToggle(){return n()},set onNavToggle(d){n(d),p()},get onNavItemClick(){return i()},set onNavItemClick(d){i(d),p()},get showAppIcons(){return o()},set showAppIcons(d=!0){o(d),p()},get hideDiscover(){return s()},set hideDiscover(d=!0){s(d),p()},get profileMenuData(){return a()},set profileMenuData(d){a(d),p()},get apiUrl(){return u()},set apiUrl(d){u(d),p()},get chatUrl(){return c()},set chatUrl(d){c(d),p()},get consoleUrl(){return f()},set consoleUrl(d){f(d),p()},get discoverUrl(){return v()},set discoverUrl(d){v(d),p()},get children(){return l()},set children(d){l(d),p()}})}customElements.define("graymatter-desktop-side-nav",ae(Ri,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},children:{}},["default"],[],!0));var Ps=re('<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>'),Rs=re('<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 Bs={hash:"svelte-ieg5x",code:"svg.svelte-ieg5x {display:block;}"};function Tt(e,t){Q(t,!0),ct(e,Bs);const r=m(t,"isInverted",7,!1),n=m(t,"width",7,102),i=m(t,"height",7,30),o=m(t,"showServiceMark",7,!1),s=_r(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]),a=r()?"var(--ai-color-white)":"var(--ai-color-black)";var u=Lt(),c=tt(u);{var f=l=>{var d=Ps();Xt(d,()=>({width:n(),height:i(),viewBox:"0 0 102 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${a};`,...s}),void 0,"svelte-ieg5x"),T(l,d)},v=l=>{var d=Rs();Xt(d,()=>({width:n(),height:i(),viewBox:"0 0 75 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${a};`,...s}),void 0,"svelte-ieg5x"),T(l,d)};X(c,l=>{o()?l(v,!1):l(f)})}return T(e,u),ee({get isInverted(){return r()},set isInverted(l=!1){r(l),p()},get width(){return n()},set width(l=102){n(l),p()},get height(){return i()},set height(l=30){i(l),p()},get showServiceMark(){return o()},set showServiceMark(l=!1){o(l),p()}})}ae(Tt,{isInverted:{},width:{},height:{},showServiceMark:{}},[],[],!0);function Bi(e,t){Q(t,!0);let r=m(t,"isInverted",7,!1),n=m(t,"width",7,void 0),i=m(t,"height",7,void 0),o=m(t,"showServiceMark",7,!1),s=_r(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]);return Tt(e,Ni({get isInverted(){return r()},get width(){return n()},get height(){return i()},get showServiceMark(){return o()}},()=>s)),ee({get isInverted(){return r()},set isInverted(a=!1){r(a),p()},get width(){return n()},set width(a=void 0){n(a),p()},get height(){return i()},set height(a=void 0){i(a),p()},get showServiceMark(){return o()},set showServiceMark(a=!1){o(a),p()}})}customElements.define("graymatter-logo",ae(Bi,{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"}},[],[],!0));function Fs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Er={exports:{}},Ys=Er.exports,Fi;function Zs(){return Fi||(Fi=1,function(e,t){(function(r,n,i){e.exports=i(),e.exports.default=i()})("slugify",Ys,function(){var r=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),n=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function i(o,s){if(typeof o!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var a=n[s.locale]||{},u=s.replacement===void 0?"-":s.replacement,c=s.trim===void 0?!0:s.trim,f=o.normalize().split("").reduce(function(v,l){var d=a[l];return d===void 0&&(d=r[l]),d===void 0&&(d=l),d===u&&(d=" "),v+d.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(f=f.replace(/[^A-Za-z0-9\s]/g,"")),c&&(f=f.trim()),f=f.replace(/\s+/g,u),s.lower&&(f=f.toLowerCase()),f}return i.extend=function(o){Object.assign(r,o)},i})}(Er)),Er.exports}var Js=Zs();const Yi=Fs(Js);var Ks=(e,t,r)=>t(w(r).id),Ws=te('<a><div class="icon svelte-gdyha2"><!></div> <span class="label svelte-gdyha2"> </span></a>'),Gs=te('<nav class="mobile-bottom-nav" part="mobile-bottom-nav"></nav>');const Xs={hash:"svelte-gdyha2",code:".nav-item.svelte-gdyha2 {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-gdyha2 {color:var(--ai-color-neutral-900);}.nav-item.active.svelte-gdyha2 .icon:where(.svelte-gdyha2) {background-color:var(--ai-color-neutral-200);border-radius:var(--ai-size-8);}.nav-item.svelte-gdyha2:hover {color:var(--ai-color-neutral-700);}.icon.svelte-gdyha2 {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-gdyha2 {font-size:0.6875rem; /* 11px */font-weight:500;line-height:1;text-align:center;}"};function Zi(e,t){Q(t,!0),ct(e,Xs);const[r,n]=Qt(),i=()=>Ae(pt,"$selectedItem",r);let o=m(t,"onNavItemClick",7),s=m(t,"showAppIcons",7,!0),a=m(t,"hideDiscover",7,!0),u=m(t,"apiUrl",7),c=m(t,"chatUrl",7),f=m(t,"consoleUrl",7),v=m(t,"discoverUrl",7);const l=u()&&c()&&f()&&v()?{api:"#",chat:"#",console:"#",discover:"#"}:Vi(),d=[{id:"discover",label:"Discover",icon:on,href:v()||l.discover},{id:"chat",label:"Chat",icon:an,href:c()||l.chat},{id:"console",label:"Console",icon:sn,href:f()||l.console},{id:"api",label:"API",icon:ln,href:u()||l.api}],b=a()?d.filter(h=>h.id!=="discover"):d;function y(h){var _;if(h!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),me.setSelectedItem(h),h!=="discover")try{Promise.resolve().then(()=>kr).then(({selectedSubNavItemTitle:C})=>{C.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{const M=document.getElementById("main-content");if(M){const j=M.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(j&&j.textContent){const L=j.textContent.trim();C.set(L),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(L))}}},200)}).catch(C=>{console.log("[MobileBottomNav] Error clearing header state:",C)})}catch(C){console.log("[MobileBottomNav] Import failed for clearing state:",C)}else try{Promise.resolve().then(()=>kr).then(({selectedSubNavItemTitle:C})=>{C.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(C=>{console.log("[MobileBottomNav] Error clearing header state for Discover:",C)})}catch(C){console.log("[MobileBottomNav] Import failed for clearing Discover state:",C)}(_=o())==null||_({item:h,expanded:!1})}var x=Lt(),N=tt(x);{var k=h=>{var _=Gs();hi(_,21,()=>b,ya,(C,M)=>{var j=Ws();let L;j.__click=[Ks,y,M];var A=I(j),F=I(A);const W=ie(()=>i()===w(M).id);Ea(F,()=>w(M).icon,(O,B)=>{B(O,{get isSelected(){return w(W)}})}),z(A);var ve=de(A,2),S=I(ve,!0);z(ve),z(j),_e((O,B,ne)=>{K(j,"href",w(M).href),L=ze(j,1,O,"svelte-gdyha2",L,B),K(j,"part",ne),Kt(S,w(M).label)},[()=>`nav-item ${Yi(w(M).id)}-item`,()=>({active:i()===w(M).id}),()=>`${Yi(w(M).id)}-item`]),T(C,j)}),z(_),T(h,_)};X(N,h=>{s()&&h(k)})}T(e,x);var g=ee({get onNavItemClick(){return o()},set onNavItemClick(h){o(h),p()},get showAppIcons(){return s()},set showAppIcons(h=!0){s(h),p()},get hideDiscover(){return a()},set hideDiscover(h=!0){a(h),p()},get apiUrl(){return u()},set apiUrl(h){u(h),p()},get chatUrl(){return c()},set chatUrl(h){c(h),p()},get consoleUrl(){return f()},set consoleUrl(h){f(h),p()},get discoverUrl(){return v()},set discoverUrl(h){v(h),p()}});return n(),g}Zt(["click"]),ae(Zi,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0);function Ji(e,t){Q(t,!0);let r=m(t,"onNavItemClick",7),n=m(t,"showAppIcons",7,!0),i=m(t,"hideDiscover",7,!0),o=m(t,"apiUrl",7),s=m(t,"chatUrl",7),a=m(t,"consoleUrl",7),u=m(t,"discoverUrl",7);return Zi(e,{get onNavItemClick(){return r()},get showAppIcons(){return n()},get hideDiscover(){return i()},get apiUrl(){return o()},get chatUrl(){return s()},get consoleUrl(){return a()},get discoverUrl(){return u()}}),ee({get onNavItemClick(){return r()},set onNavItemClick(c){r(c),p()},get showAppIcons(){return n()},set showAppIcons(c=!0){n(c),p()},get hideDiscover(){return i()},set hideDiscover(c=!0){i(c),p()},get apiUrl(){return o()},set apiUrl(c){o(c),p()},get chatUrl(){return s()},set chatUrl(c){s(c),p()},get consoleUrl(){return a()},set consoleUrl(c){a(c),p()},get discoverUrl(){return u()},set discoverUrl(c){u(c),p()}})}customElements.define("graymatter-mobile-bottom-nav",ae(Ji,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0));var Qs=(e,t)=>{(e.key==="Enter"||e.key===" ")&&t()},el=te('<div class="mobile-overlay" role="button" tabindex="0" aria-label="Close navigation menu (Escape key supported)" part="mobile-overlay"></div>'),tl=te('<a part="logo-link" class="logo-link svelte-1anbrit"><!></a>'),rl=te('<div class="subnav-section svelte-1anbrit" part="subnav-section"><!></div>'),nl=te('<div class="no-subnav-message svelte-1anbrit" part="no-subnav-message"><p class="svelte-1anbrit">Select a section from the bottom navigation</p></div>'),il=te('<!> <div part="mobile-side-menu"><div class="menu-header svelte-1anbrit" part="menu-header"><button class="close-button svelte-1anbrit" aria-label="Close navigation menu" part="close-button"><!></button> <div class="logo-container svelte-1anbrit" part="logo-container"><!></div></div> <div class="menu-content svelte-1anbrit" part="menu-content"><!></div></div>',1);const ol={hash:"svelte-1anbrit",code:".no-subnav-message.svelte-1anbrit {padding:var(--ai-size-16);text-align:center;color:var(--ai-color-steel-600);font-size:var(--ai-size-14);}.no-subnav-message.svelte-1anbrit p:where(.svelte-1anbrit) {margin:0;}.mobile-side-menu.svelte-1anbrit {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-1anbrit {transform:translateX(0);}.menu-header.svelte-1anbrit {display:flex;align-items:center;padding:var(--ai-size-16);gap:var(--ai-size-16);}.mobile-side-menu.svelte-1anbrit .logo-container:where(.svelte-1anbrit) {display:flex;}.logo-link.svelte-1anbrit {display:flex;}.close-button.svelte-1anbrit {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-1anbrit:hover {background-color:var(--ai-color-neutral-100);}.menu-content.svelte-1anbrit {flex:1;overflow-y:auto;padding:0;}.subnav-section.svelte-1anbrit {overflow-y:auto;max-height:calc(100vh - 4rem); /* leave space for header/close */}"};function Ki(e,t){Q(t,!0),ct(e,ol);const[r,n]=Qt(),i=()=>Ae(He,"$isExpanded",r),o=()=>Ae(pt,"$selectedItem",r);let s,a=null,u=m(t,"logoLinkUrl",7),c=m(t,"logoLinkLabel",7),f=m(t,"children",7);function v(S){if(a=S.detail.hash,l(),a){const B=document.getElementById(a);if(B){const ne=document.getElementById("main-content-mobile"),be=ne?ne.querySelector(`[id="${a}"]`):null;if(be&&ne){const G=be.getBoundingClientRect(),se=ne.getBoundingClientRect(),qe=ne.scrollTop+G.top-se.top;ne.scrollTo({top:qe,behavior:"auto"}),setTimeout(()=>{var mt;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(mt=be.textContent)==null?void 0:mt.trim(),id:be.id}}))},100)}else{let G=B.parentElement;for(;G&&G!==document.body;){const se=window.getComputedStyle(G);if(se.overflowY==="auto"||se.overflowY==="scroll")break;G=G.parentElement}G&&G!==document.body?document.getElementById("main-content")?(B.scrollIntoView({behavior:"auto",block:"start"}),setTimeout(()=>{var qe;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(qe=B.textContent)==null?void 0:qe.trim(),id:B.id}}))},100)):B.scrollIntoView({behavior:"auto",block:"start"}):B.scrollIntoView({behavior:"auto",block:"start"})}}a=null}}Wt(()=>{window.addEventListener("mobileAnchorNavigate",v);const S=()=>{l()};window.addEventListener("closeMobileMenu",S);const O=ne=>{const be=ne,{isMobile:G}=be.detail;G&&me.setExpanded(!1)};window.addEventListener("layoutTransition",O);const B=ne=>{const be=document.activeElement;ne.key==="Escape"&&i()&&!(be&&be.closest(".profile-context-menu"))&&l()};return window.addEventListener("keydown",B),()=>{window.removeEventListener("mobileAnchorNavigate",v),window.removeEventListener("closeMobileMenu",S),window.removeEventListener("layoutTransition",O),window.removeEventListener("keydown",B)}});function l(){me.setExpanded(!1)}var d=il(),b=tt(d);{var y=S=>{var O=el();O.__click=l,O.__keydown=[Qs,l],T(S,O)};X(b,S=>{i()&&S(y)})}var x=de(b,2);let N;var k=I(x),g=I(k);g.__click=l;var h=I(g);xr(h,{isOpen:!0}),z(g);var _=de(g,2),C=I(_);{var M=S=>{var O=tl(),B=I(O);Tt(B,{width:75,height:22}),z(O),_e(()=>{K(O,"href",u()),K(O,"aria-label",c())}),T(S,O)},j=S=>{Tt(S,{width:75,height:22})};X(C,S=>{u()?S(M):S(j,!1)})}z(_),z(k);var L=de(k,2),A=I(L);{var F=S=>{var O=rl(),B=I(O);pr(B,()=>f()??ke),z(O),T(S,O)},W=S=>{var O=nl();T(S,O)};X(A,S=>{o()&&o()!=="discover"?S(F):S(W,!1)})}z(L),z(x),dt(x,S=>s=S,()=>s),_e(S=>N=ze(x,1,"mobile-side-menu svelte-1anbrit",null,N,S),[()=>({open:i()})]),T(e,d);var ve=ee({get logoLinkUrl(){return u()},set logoLinkUrl(S){u(S),p()},get logoLinkLabel(){return c()},set logoLinkLabel(S){c(S),p()},get children(){return f()},set children(S){f(S),p()}});return n(),ve}Zt(["click","keydown"]),ae(Ki,{logoLinkUrl:{},logoLinkLabel:{},children:{}},[],[],!0);function Wi(e,t){Q(t,!0);let r=m(t,"logoLinkUrl",7),n=m(t,"logoLinkLabel",7),i=m(t,"children",7);return Ki(e,{get logoLinkUrl(){return r()},get logoLinkLabel(){return n()},get children(){return i()}}),ee({get logoLinkUrl(){return r()},set logoLinkUrl(o){r(o),p()},get logoLinkLabel(){return n()},set logoLinkLabel(o){n(o),p()},get children(){return i()},set children(o){i(o),p()}})}customElements.define("graymatter-mobile-side-menu",ae(Wi,{logoLinkUrl:{},logoLinkLabel:{},children:{}},[],[],!0));function al(){me.toggleExpanded()}var sl=te('<a class="display-flex"><!></a>'),ll=te('<nav class="mobile-top-nav svelte-g1zhvs" part="mobile-top-nav"><button aria-label="Open navigation menu" part="menu-button"><!></button> <div class="brand svelte-g1zhvs"><!> <span class="brand-text svelte-g1zhvs"> </span></div> <!></nav>');const ul={hash:"svelte-g1zhvs",code:`.menu-button.svelte-g1zhvs {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-g1zhvs:disabled,
|
|
109
|
+
} */`};function qi(e,t){Q(t,!0),ct(e,Hs);const[r,n]=Xt(),i=()=>Te(mt,"$selectedItem",r),o=()=>Te(Oe,"$isExpanded",r),s=()=>Te(rn,"$isMenuButtonDisabled",r),a=_(t,"ssrSelectedItem",7,void 0),l=_(t,"onNavToggle",7,void 0),c=_(t,"onNavItemClick",7,void 0),v=_(t,"showAppIcons",7,!0),d=_(t,"hideDiscover",7,!0),u=_(t,"profileMenuData",7),h=_(t,"apiUrl",7),b=_(t,"chatUrl",7),k=_(t,"consoleUrl",7),C=_(t,"discoverUrl",7),L=h()&&b()&&k()&&C()?{api:"#",chat:"#",console:"#",discover:"#"}:Hi();let g=!1,m,f=ge(null),y=ge(!1),E=ge(!1),T=ge(null),j=ge(null),I=ge(null),A=ge(null),F=null;function W(x,Y){return g?x:Y}function N(x){return W(i()===x,a()===x)}function U(x){return p(f)===x}const R=ie(()=>()=>W(o(),a()?a()!=="discover":!0)),X=ie(()=>()=>W(s(),a()?a()==="discover":!1)),le=ie(()=>()=>W(o(),a()?a()!=="discover":!0)),ce=ie(()=>()=>p(E)&&p(y)&&!p(X)());Kt(()=>{if(g=!0,document.documentElement.classList.remove("nav-initially-expanded"),document.documentElement.style.removeProperty("--initial-main-top-padding"),m&&m.classList.add("hydrated"),typeof window<"u"){const x=window.matchMedia("(hover: hover)");D(E,x.matches,!0),x.addEventListener("change",B=>{D(E,B.matches,!0)});const Y=B=>{const he=B,{isMobile:ve}=he.detail;if(ve)me.setExpanded(!1);else{const qe=i();qe&&qe!=="discover"?me.setExpanded(!0):me.setExpanded(!1)}};window.addEventListener("layoutTransition",Y);const q=B=>{const he=document.activeElement;B.key==="Escape"&&o()&&!(he&&he.closest(".profile-context-menu"))&&me.setExpanded(!1)};window.addEventListener("keydown",q);const ue=B=>{const he=B,{action:ve,isOpen:qe}=he.detail;ve==="toggle"?me.toggleExpanded():ve==="open"?me.setExpanded(!0):ve==="close"?me.setExpanded(!1):ve==="set"&&typeof qe=="boolean"&&me.setExpanded(qe)};return window.addEventListener("graymatter-desktop-nav-control",ue),F=()=>{window.removeEventListener("graymatter-desktop-nav-control",ue)},()=>{window.removeEventListener("layoutTransition",Y),window.removeEventListener("keydown",q),F&&F()}}});function ne(x){var Y;if(x!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),me.setSelectedItem(x),x!=="discover")try{Promise.resolve().then(()=>yr).then(({selectedSubNavItemTitle:q})=>{q.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{if(typeof document<"u"){const ue=document.getElementById("main-content");if(ue){const B=ue.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(B&&B.textContent){const he=B.textContent.trim();q.set(he),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(he))}}}},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(()=>yr).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)}(Y=c())==null||Y({item:x,expanded:o()})}function de(x,Y){(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),ne(Y))}function nt(x,Y){var B,he,ve,qe;const q=[p(T),p(j),p(I),p(A)],ue=q.length;if(ue)if(x.key==="ArrowDown"){x.preventDefault();const rr=(Y+1)%ue;(B=q[rr])==null||B.focus()}else if(x.key==="ArrowUp"){x.preventDefault();const rr=(Y-1+ue)%ue;(he=q[rr])==null||he.focus()}else x.key==="Home"?(x.preventDefault(),(ve=q[0])==null||ve.focus()):x.key==="End"&&(x.preventDefault(),(qe=q[ue-1])==null||qe.focus())}var tr=Os();let Xi;var cn=z(tr),dn=z(cn),vn=z(dn),He=z(vn);let Qi;He.__click=[Es,s,l,o];var eo=z(He),to=z(eo),vl=z(to);const fl=ie(()=>p(ce)()),hl=ie(()=>p(X)()),bl=ie(()=>p(le)());kr(vl,{get isHovered(){return p(fl)},get isDisabled(){return p(hl)},get isOpen(){return p(bl)}}),S(to),S(eo),S(He),S(vn);var gl=fe(vn,2);{var pl=x=>{var Y=$s(),q=z(Y);{var ue=Pe=>{var Se=Ls();let Er;Se.__click=[Ss,ne],Se.__keydown=[zs,de,nt];var Sr=z(Se),zr=z(Sr),hn=z(zr);const Ll=ie(()=>N("discover"));nn(hn,{get isSelected(){return p(Ll)}}),S(zr),S(Sr),Be(2),S(Se),dt(Se,bn=>D(T,bn),()=>p(T)),_e((bn,Il)=>{K(Se,"href",C()||L.discover),Er=Ee(Se,1,"nav-item discover-item svelte-6rrvhj",null,Er,bn),K(Se,"aria-current",Il)},[()=>({selected:N("discover"),hovered:U("discover")}),()=>N("discover")?"page":void 0]),be("mouseenter",Se,()=>D(f,"discover")),be("mouseleave",Se,()=>D(f,null)),M(Pe,Se)};G(q,Pe=>{d()||Pe(ue)})}var B=fe(q,2);let he;B.__click=[Is,ne],B.__keydown=[Ns,de,nt];var ve=z(B),qe=z(ve),rr=z(qe);const xl=ie(()=>N("chat"));on(rr,{get isSelected(){return p(xl)}}),S(qe),S(ve),Be(2),S(B),dt(B,Pe=>D(j,Pe),()=>p(j));var Ve=fe(B,2);let no;Ve.__click=[Ms,ne],Ve.__keydown=[Ts,de,nt];var io=z(Ve),oo=z(io),Cl=z(oo);const El=ie(()=>N("console"));an(Cl,{get isSelected(){return p(El)}}),S(oo),S(io),Be(2),S(Ve),dt(Ve,Pe=>D(I,Pe),()=>p(I));var Je=fe(Ve,2);let ao;Je.__click=[As,ne],Je.__keydown=[Us,de,nt];var so=z(Je),lo=z(so),Sl=z(lo);const zl=ie(()=>N("api"));sn(Sl,{get isSelected(){return p(zl)}}),S(lo),S(so),Be(2),S(Je),dt(Je,Pe=>D(A,Pe),()=>p(A)),S(Y),_e((Pe,Se,Er,Sr,zr,hn)=>{K(B,"href",b()||L.chat),he=Ee(B,1,"nav-item chat-item svelte-6rrvhj",null,he,Pe),K(B,"aria-current",Se),K(Ve,"href",k()||L.console),no=Ee(Ve,1,"nav-item console-item svelte-6rrvhj",null,no,Er),K(Ve,"aria-current",Sr),K(Je,"href",h()||L.api),ao=Ee(Je,1,"nav-item api-item svelte-6rrvhj",null,ao,zr),K(Je,"aria-current",hn)},[()=>({selected:N("chat"),hovered:U("chat")}),()=>N("chat")?"page":void 0,()=>({selected:N("console"),hovered:U("console")}),()=>N("console")?"page":void 0,()=>({selected:N("api"),hovered:U("api")}),()=>N("api")?"page":void 0]),be("mouseenter",B,()=>D(f,"chat")),be("mouseleave",B,()=>D(f,null)),be("mouseenter",Ve,()=>D(f,"console")),be("mouseleave",Ve,()=>D(f,null)),be("mouseenter",Je,()=>D(f,"api")),be("mouseleave",Je,()=>D(f,null)),M(x,Y)};G(gl,x=>{v()&&x(pl)})}S(dn);var ml=fe(dn,2);{var wl=x=>{var Y=js(),q=z(Y),ue=z(q);const B=ie(()=>{var ve;return(ve=u())==null?void 0:ve.userMeta}),he=ie(()=>{var ve;return(ve=u())==null?void 0:ve.menuItems});ln(ue,{get userMeta(){return p(B)},get menuItems(){return p(he)},ariaLabel:"Open profile menu",menuAlign:"desktop"}),S(q),S(Y),M(x,Y)};G(ml,x=>{u()&&x(wl)})}S(cn);var fn=fe(cn,2);let ro;var _l=z(fn);{var yl=x=>{var Y=Ds(),q=z(Y),ue=z(q);gt(ue,t,"default",{}),S(q),S(Y),M(x,Y)};G(_l,x=>{p(R)()&&x(yl)})}S(fn),S(tr),dt(tr,x=>m=x,()=>m),_e((x,Y,q,ue,B)=>{Xi=Ee(tr,1,"side-nav-container svelte-6rrvhj",null,Xi,x),Qi=Ee(He,1,"menu-button svelte-6rrvhj",null,Qi,Y),He.disabled=s(),K(He,"aria-label",q),K(He,"aria-expanded",ue),ro=Ee(fn,1,"expanded-content drawer-anim svelte-6rrvhj",null,ro,B)},[()=>({expanded:p(R)()}),()=>({disabled:s()}),()=>p(R)()?"Close navigation menu":"Open navigation menu",()=>p(R)()?"true":"false",()=>({open:p(R)()})]),be("mouseenter",He,()=>D(y,!0)),be("mouseleave",He,()=>D(y,!1)),be("focus",He,()=>D(y,!0)),be("blur",He,()=>D(y,!1)),M(e,tr);var kl=ee({get ssrSelectedItem(){return a()},set ssrSelectedItem(x=void 0){a(x),w()},get onNavToggle(){return l()},set onNavToggle(x=void 0){l(x),w()},get onNavItemClick(){return c()},set onNavItemClick(x=void 0){c(x),w()},get showAppIcons(){return v()},set showAppIcons(x=!0){v(x),w()},get hideDiscover(){return d()},set hideDiscover(x=!0){d(x),w()},get profileMenuData(){return u()},set profileMenuData(x){u(x),w()},get apiUrl(){return h()},set apiUrl(x){h(x),w()},get chatUrl(){return b()},set chatUrl(x){b(x),w()},get consoleUrl(){return k()},set consoleUrl(x){k(x),w()},get discoverUrl(){return C()},set discoverUrl(x){C(x),w()}});return n(),kl}Yt(["click","keydown"]),ae(qi,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},["default"],[],!0);function Vi(e,t){Q(t,!0);let r=_(t,"ssrSelectedItem",7),n=_(t,"onNavToggle",7),i=_(t,"onNavItemClick",7),o=_(t,"showAppIcons",7,!0),s=_(t,"hideDiscover",7,!0),a=_(t,"profileMenuData",7),l=_(t,"apiUrl",7),c=_(t,"chatUrl",7),v=_(t,"consoleUrl",7),d=_(t,"discoverUrl",7);return qi(e,{get ssrSelectedItem(){return r()},get onNavToggle(){return n()},get onNavItemClick(){return i()},get showAppIcons(){return o()},get hideDiscover(){return s()},get profileMenuData(){return a()},get apiUrl(){return l()},get chatUrl(){return c()},get consoleUrl(){return v()},get discoverUrl(){return d()},children:(u,h)=>{var b=bt(),k=Fe(b);gt(k,t,"default",{}),M(u,b)},$$slots:{default:!0}}),ee({get ssrSelectedItem(){return r()},set ssrSelectedItem(u){r(u),w()},get onNavToggle(){return n()},set onNavToggle(u){n(u),w()},get onNavItemClick(){return i()},set onNavItemClick(u){i(u),w()},get showAppIcons(){return o()},set showAppIcons(u=!0){o(u),w()},get hideDiscover(){return s()},set hideDiscover(u=!0){s(u),w()},get profileMenuData(){return a()},set profileMenuData(u){a(u),w()},get apiUrl(){return l()},set apiUrl(u){l(u),w()},get chatUrl(){return c()},set chatUrl(u){c(u),w()},get consoleUrl(){return v()},set consoleUrl(u){v(u),w()},get discoverUrl(){return d()},set discoverUrl(u){d(u),w()}})}customElements.define("graymatter-desktop-side-nav",ae(Vi,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},["default"],[],!0));var qs=re('<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>'),Vs=re('<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 Ps={hash:"svelte-ieg5x",code:"svg.svelte-ieg5x {display:block;}"};function Tt(e,t){Q(t,!0),ct(e,Ps);const r=_(t,"isInverted",7,!1),n=_(t,"width",7,102),i=_(t,"height",7,30),o=_(t,"showServiceMark",7,!1),s=wr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]),a=r()?"var(--ai-color-white)":"var(--ai-color-black)";var l=bt(),c=Fe(l);{var v=u=>{var h=qs();Gt(h,()=>({width:n(),height:i(),viewBox:"0 0 102 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${a};`,...s}),void 0,"svelte-ieg5x"),M(u,h)},d=u=>{var h=Vs();Gt(h,()=>({width:n(),height:i(),viewBox:"0 0 75 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${a};`,...s}),void 0,"svelte-ieg5x"),M(u,h)};G(c,u=>{o()?u(d,!1):u(v)})}return M(e,l),ee({get isInverted(){return r()},set isInverted(u=!1){r(u),w()},get width(){return n()},set width(u=102){n(u),w()},get height(){return i()},set height(u=30){i(u),w()},get showServiceMark(){return o()},set showServiceMark(u=!1){o(u),w()}})}ae(Tt,{isInverted:{},width:{},height:{},showServiceMark:{}},[],[],!0);function Pi(e,t){Q(t,!0);let r=_(t,"isInverted",7,!1),n=_(t,"width",7,void 0),i=_(t,"height",7,void 0),o=_(t,"showServiceMark",7,!1),s=wr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]);return Tt(e,Li({get isInverted(){return r()},get width(){return n()},get height(){return i()},get showServiceMark(){return o()}},()=>s)),ee({get isInverted(){return r()},set isInverted(a=!1){r(a),w()},get width(){return n()},set width(a=void 0){n(a),w()},get height(){return i()},set height(a=void 0){i(a),w()},get showServiceMark(){return o()},set showServiceMark(a=!1){o(a),w()}})}customElements.define("graymatter-logo",ae(Pi,{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"}},[],[],!0));function Rs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cr={exports:{}},Bs=Cr.exports,Ri;function Fs(){return Ri||(Ri=1,function(e,t){(function(r,n,i){e.exports=i(),e.exports.default=i()})("slugify",Bs,function(){var r=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),n=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function i(o,s){if(typeof o!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var a=n[s.locale]||{},l=s.replacement===void 0?"-":s.replacement,c=s.trim===void 0?!0:s.trim,v=o.normalize().split("").reduce(function(d,u){var h=a[u];return h===void 0&&(h=r[u]),h===void 0&&(h=u),h===l&&(h=" "),d+h.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(v=v.replace(/[^A-Za-z0-9\s]/g,"")),c&&(v=v.trim()),v=v.replace(/\s+/g,l),s.lower&&(v=v.toLowerCase()),v}return i.extend=function(o){Object.assign(r,o)},i})}(Cr)),Cr.exports}var Ys=Fs();const Bi=Rs(Ys);var Zs=(e,t,r)=>t(p(r).id),Js=te('<a><div class="icon svelte-gdyha2"><!></div> <span class="label svelte-gdyha2"> </span></a>'),Ks=te('<nav class="mobile-bottom-nav" part="mobile-bottom-nav"></nav>');const Ws={hash:"svelte-gdyha2",code:".nav-item.svelte-gdyha2 {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-gdyha2 {color:var(--ai-color-neutral-900);}.nav-item.active.svelte-gdyha2 .icon:where(.svelte-gdyha2) {background-color:var(--ai-color-neutral-200);border-radius:var(--ai-size-8);}.nav-item.svelte-gdyha2:hover {color:var(--ai-color-neutral-700);}.icon.svelte-gdyha2 {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-gdyha2 {font-size:0.6875rem; /* 11px */font-weight:500;line-height:1;text-align:center;}"};function Fi(e,t){Q(t,!0),ct(e,Ws);const[r,n]=Xt(),i=()=>Te(mt,"$selectedItem",r);let o=_(t,"onNavItemClick",7),s=_(t,"showAppIcons",7,!0),a=_(t,"hideDiscover",7,!0),l=_(t,"apiUrl",7),c=_(t,"chatUrl",7),v=_(t,"consoleUrl",7),d=_(t,"discoverUrl",7);const u=l()&&c()&&v()&&d()?{api:"#",chat:"#",console:"#",discover:"#"}:Hi(),h=[{id:"discover",label:"Discover",icon:nn,href:d()||u.discover},{id:"chat",label:"Chat",icon:on,href:c()||u.chat},{id:"console",label:"Console",icon:an,href:v()||u.console},{id:"api",label:"API",icon:sn,href:l()||u.api}],b=a()?h.filter(f=>f.id!=="discover"):h;function k(f){var y;if(f!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),me.setSelectedItem(f),f!=="discover")try{Promise.resolve().then(()=>yr).then(({selectedSubNavItemTitle:E})=>{E.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{const T=document.getElementById("main-content");if(T){const j=T.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(j&&j.textContent){const I=j.textContent.trim();E.set(I),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(I))}}},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(()=>yr).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)}(y=o())==null||y({item:f,expanded:!1})}var C=bt(),L=Fe(C);{var g=f=>{var y=Ks();fi(y,21,()=>b,wa,(E,T)=>{var j=Js();let I;j.__click=[Zs,k,T];var A=z(j),F=z(A);const W=ie(()=>i()===p(T).id);xa(F,()=>p(T).icon,(R,X)=>{X(R,{get isSelected(){return p(W)}})}),S(A);var N=fe(A,2),U=z(N,!0);S(N),S(j),_e((R,X,le)=>{K(j,"href",p(T).href),I=Ee(j,1,R,"svelte-gdyha2",I,X),K(j,"part",le),Jt(U,p(T).label)},[()=>`nav-item ${Bi(p(T).id)}-item`,()=>({active:i()===p(T).id}),()=>`${Bi(p(T).id)}-item`]),M(E,j)}),S(y),M(f,y)};G(L,f=>{s()&&f(g)})}M(e,C);var m=ee({get onNavItemClick(){return o()},set onNavItemClick(f){o(f),w()},get showAppIcons(){return s()},set showAppIcons(f=!0){s(f),w()},get hideDiscover(){return a()},set hideDiscover(f=!0){a(f),w()},get apiUrl(){return l()},set apiUrl(f){l(f),w()},get chatUrl(){return c()},set chatUrl(f){c(f),w()},get consoleUrl(){return v()},set consoleUrl(f){v(f),w()},get discoverUrl(){return d()},set discoverUrl(f){d(f),w()}});return n(),m}Yt(["click"]),ae(Fi,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0);function Yi(e,t){Q(t,!0);let r=_(t,"onNavItemClick",7),n=_(t,"showAppIcons",7,!0),i=_(t,"hideDiscover",7,!0),o=_(t,"apiUrl",7),s=_(t,"chatUrl",7),a=_(t,"consoleUrl",7),l=_(t,"discoverUrl",7);return Fi(e,{get onNavItemClick(){return r()},get showAppIcons(){return n()},get hideDiscover(){return i()},get apiUrl(){return o()},get chatUrl(){return s()},get consoleUrl(){return a()},get discoverUrl(){return l()}}),ee({get onNavItemClick(){return r()},set onNavItemClick(c){r(c),w()},get showAppIcons(){return n()},set showAppIcons(c=!0){n(c),w()},get hideDiscover(){return i()},set hideDiscover(c=!0){i(c),w()},get apiUrl(){return o()},set apiUrl(c){o(c),w()},get chatUrl(){return s()},set chatUrl(c){s(c),w()},get consoleUrl(){return a()},set consoleUrl(c){a(c),w()},get discoverUrl(){return l()},set discoverUrl(c){l(c),w()}})}customElements.define("graymatter-mobile-bottom-nav",ae(Yi,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0));var Gs=(e,t)=>{(e.key==="Enter"||e.key===" ")&&t()},Xs=te('<div class="mobile-overlay" role="button" tabindex="0" aria-label="Close navigation menu (Escape key supported)" part="mobile-overlay"></div>'),Qs=te('<a part="logo-link" class="logo-link svelte-1anbrit"><!></a>'),el=te('<div class="subnav-section svelte-1anbrit" part="subnav-section"><!></div>'),tl=te('<div class="no-subnav-message svelte-1anbrit" part="no-subnav-message"><p class="svelte-1anbrit">Select a section from the bottom navigation</p></div>'),rl=te('<!> <div part="mobile-side-menu"><div class="menu-header svelte-1anbrit" part="menu-header"><button class="close-button svelte-1anbrit" aria-label="Close navigation menu" part="close-button"><!></button> <div class="logo-container svelte-1anbrit" part="logo-container"><!></div></div> <div class="menu-content svelte-1anbrit" part="menu-content"><!></div></div>',1);const nl={hash:"svelte-1anbrit",code:".no-subnav-message.svelte-1anbrit {padding:var(--ai-size-16);text-align:center;color:var(--ai-color-steel-600);font-size:var(--ai-size-14);}.no-subnav-message.svelte-1anbrit p:where(.svelte-1anbrit) {margin:0;}.mobile-side-menu.svelte-1anbrit {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-1anbrit {transform:translateX(0);}.menu-header.svelte-1anbrit {display:flex;align-items:center;padding:var(--ai-size-16);gap:var(--ai-size-16);}.mobile-side-menu.svelte-1anbrit .logo-container:where(.svelte-1anbrit) {display:flex;}.logo-link.svelte-1anbrit {display:flex;}.close-button.svelte-1anbrit {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-1anbrit:hover {background-color:var(--ai-color-neutral-100);}.menu-content.svelte-1anbrit {flex:1;overflow-y:auto;padding:0;}.subnav-section.svelte-1anbrit {overflow-y:auto;max-height:calc(100vh - 4rem); /* leave space for header/close */}"};function Zi(e,t){Q(t,!0),ct(e,nl);const[r,n]=Xt(),i=()=>Te(Oe,"$isExpanded",r),o=()=>Te(mt,"$selectedItem",r);let s,a=null,l=_(t,"logoLinkUrl",7),c=_(t,"logoLinkLabel",7);function v(N){if(a=N.detail.hash,d(),a){const R=document.getElementById(a);if(R){const X=document.getElementById("main-content-mobile"),le=X?X.querySelector(`[id="${a}"]`):null;if(le&&X){const ce=le.getBoundingClientRect(),ne=X.getBoundingClientRect(),de=X.scrollTop+ce.top-ne.top;X.scrollTo({top:de,behavior:"auto"}),setTimeout(()=>{var nt;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(nt=le.textContent)==null?void 0:nt.trim(),id:le.id}}))},100)}else{let ce=R.parentElement;for(;ce&&ce!==document.body;){const ne=window.getComputedStyle(ce);if(ne.overflowY==="auto"||ne.overflowY==="scroll")break;ce=ce.parentElement}ce&&ce!==document.body?document.getElementById("main-content")?(R.scrollIntoView({behavior:"auto",block:"start"}),setTimeout(()=>{var de;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(de=R.textContent)==null?void 0:de.trim(),id:R.id}}))},100)):R.scrollIntoView({behavior:"auto",block:"start"}):R.scrollIntoView({behavior:"auto",block:"start"})}}a=null}}Kt(()=>{window.addEventListener("mobileAnchorNavigate",v);const N=()=>{d()};window.addEventListener("closeMobileMenu",N);const U=X=>{const le=X,{isMobile:ce}=le.detail;ce&&me.setExpanded(!1)};window.addEventListener("layoutTransition",U);const R=X=>{const le=document.activeElement;X.key==="Escape"&&i()&&!(le&&le.closest(".profile-context-menu"))&&d()};return window.addEventListener("keydown",R),()=>{window.removeEventListener("mobileAnchorNavigate",v),window.removeEventListener("closeMobileMenu",N),window.removeEventListener("layoutTransition",U),window.removeEventListener("keydown",R)}});function d(){me.setExpanded(!1)}var u=rl(),h=Fe(u);{var b=N=>{var U=Xs();U.__click=d,U.__keydown=[Gs,d],M(N,U)};G(h,N=>{i()&&N(b)})}var k=fe(h,2);let C;var L=z(k),g=z(L);g.__click=d;var m=z(g);kr(m,{isOpen:!0}),S(g);var f=fe(g,2),y=z(f);{var E=N=>{var U=Qs(),R=z(U);Tt(R,{width:75,height:22}),S(U),_e(()=>{K(U,"href",l()),K(U,"aria-label",c())}),M(N,U)},T=N=>{Tt(N,{width:75,height:22})};G(y,N=>{l()?N(E):N(T,!1)})}S(f),S(L);var j=fe(L,2),I=z(j);{var A=N=>{var U=el(),R=z(U);gt(R,t,"default",{}),S(U),M(N,U)},F=N=>{var U=tl();M(N,U)};G(I,N=>{o()&&o()!=="discover"?N(A):N(F,!1)})}S(j),S(k),dt(k,N=>s=N,()=>s),_e(N=>C=Ee(k,1,"mobile-side-menu svelte-1anbrit",null,C,N),[()=>({open:i()})]),M(e,u);var W=ee({get logoLinkUrl(){return l()},set logoLinkUrl(N){l(N),w()},get logoLinkLabel(){return c()},set logoLinkLabel(N){c(N),w()}});return n(),W}Yt(["click","keydown"]),ae(Zi,{logoLinkUrl:{},logoLinkLabel:{}},["default"],[],!0);function Ji(e,t){Q(t,!0);let r=_(t,"logoLinkUrl",7),n=_(t,"logoLinkLabel",7);return Zi(e,{get logoLinkUrl(){return r()},get logoLinkLabel(){return n()},children:(i,o)=>{var s=bt(),a=Fe(s);gt(a,t,"default",{}),M(i,s)},$$slots:{default:!0}}),ee({get logoLinkUrl(){return r()},set logoLinkUrl(i){r(i),w()},get logoLinkLabel(){return n()},set logoLinkLabel(i){n(i),w()}})}customElements.define("graymatter-mobile-side-menu",ae(Ji,{logoLinkUrl:{},logoLinkLabel:{}},["default"],[],!0));function il(){me.toggleExpanded()}var ol=te('<a class="display-flex"><!></a>'),al=te('<nav class="mobile-top-nav svelte-g1zhvs" part="mobile-top-nav"><button aria-label="Open navigation menu" part="menu-button"><!></button> <div class="brand svelte-g1zhvs"><!> <span class="brand-text svelte-g1zhvs"> </span></div> <!></nav>');const sl={hash:"svelte-g1zhvs",code:`.menu-button.svelte-g1zhvs {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-g1zhvs:disabled,
|
|
110
110
|
.menu-button.disabled.svelte-g1zhvs {cursor:not-allowed;opacity:0.5;background-color:transparent;}.mobile-top-nav.svelte-g1zhvs .menu-button:where(.svelte-g1zhvs) {padding:0;height:var(--ai-size-40);color:var(--ai-color-neutral-700);}.menu-button.svelte-g1zhvs:hover {background-color:var(--ai-color-neutral-100);}
|
|
111
111
|
|
|
112
112
|
/* MobileTopNav specific disabled state */.mobile-top-nav.svelte-g1zhvs .menu-button.disabled:where(.svelte-g1zhvs),
|
|
113
|
-
.mobile-top-nav.svelte-g1zhvs .menu-button:where(.svelte-g1zhvs):disabled {cursor:not-allowed;opacity:0.5;background-color:transparent;}.brand.svelte-g1zhvs {display:flex;align-items:center;gap:var(--ai-size-12);flex:1;margin-left:var(--ai-size-8);}.brand-text.svelte-g1zhvs {color:var(--ai-color-neutral-900);font-size:var(--ai-size-16);font-weight:600;line-height:1;}.menu-button.svelte-g1zhvs {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-g1zhvs {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-g1zhvs:focus {outline:none;}`};function
|
|
113
|
+
.mobile-top-nav.svelte-g1zhvs .menu-button:where(.svelte-g1zhvs):disabled {cursor:not-allowed;opacity:0.5;background-color:transparent;}.brand.svelte-g1zhvs {display:flex;align-items:center;gap:var(--ai-size-12);flex:1;margin-left:var(--ai-size-8);}.brand-text.svelte-g1zhvs {color:var(--ai-color-neutral-900);font-size:var(--ai-size-16);font-weight:600;line-height:1;}.menu-button.svelte-g1zhvs {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-g1zhvs {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-g1zhvs:focus {outline:none;}`};function Ki(e,t){Q(t,!0),ct(e,sl);const[r,n]=Xt(),i=()=>Te(pt,"$selectedSubNavItemTitle",r),o=()=>Te(rn,"$isMenuButtonDisabled",r);let s=_(t,"profileMenuData",7),a=_(t,"logoLinkUrl",7),l=_(t,"logoLinkLabel",7);Kt(()=>{const E=I=>{if(window.innerWidth<=640)return;const A=I;A.detail&&A.detail.title&&(pt.set(A.detail.title),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(A.detail.title)))},T=()=>{if(typeof window>"u")return;const I=document.getElementById("main-content");if(!I)return;const A=I.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(A&&A.textContent){const F=A.textContent.trim();i()||(pt.set(F),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(F)))}};window.addEventListener("sectionVisible",E);const j=sessionStorage.getItem("subNav-selectedTitle");return(!j||j==='""'||j==="null")&&setTimeout(()=>{T()},100),()=>{window.removeEventListener("sectionVisible",E)}});var c=al(),v=z(c);let d;v.__click=[il];var u=z(v);kr(u,{}),S(v);var h=fe(v,2),b=z(h);{var k=E=>{var T=ol(),j=z(T);Tt(j,{width:75,height:22}),S(T),_e(()=>{K(T,"href",a()),K(T,"aria-label",l())}),M(E,T)},C=E=>{Tt(E,{width:75,height:22})};G(b,E=>{a()?E(k):E(C,!1)})}var L=fe(b,2),g=z(L,!0);S(L),S(h);var m=fe(h,2);{var f=E=>{const T=ie(()=>{var I;return(I=s())==null?void 0:I.userMeta}),j=ie(()=>{var I;return(I=s())==null?void 0:I.menuItems});ln(E,{get userMeta(){return p(T)},get menuItems(){return p(j)},ariaLabel:"Open profile menu",menuAlign:"mobile"})};G(m,E=>{s()&&E(f)})}S(c),_e(E=>{d=Ee(v,1,"menu-button svelte-g1zhvs",null,d,E),v.disabled=o(),Jt(g,i()||"")},[()=>({disabled:o()})]),M(e,c);var y=ee({get profileMenuData(){return s()},set profileMenuData(E){s(E),w()},get logoLinkUrl(){return a()},set logoLinkUrl(E){a(E),w()},get logoLinkLabel(){return l()},set logoLinkLabel(E){l(E),w()}});return n(),y}Yt(["click"]),ae(Ki,{profileMenuData:{},logoLinkUrl:{},logoLinkLabel:{}},[],[],!0);function Wi(e,t){Q(t,!0);let r=_(t,"profileMenuData",7),n=_(t,"logoLinkUrl",7),i=_(t,"logoLinkLabel",7);return Ki(e,{get profileMenuData(){return r()},get logoLinkUrl(){return n()},get logoLinkLabel(){return i()}}),ee({get profileMenuData(){return r()},set profileMenuData(o){r(o),w()},get logoLinkUrl(){return n()},set logoLinkUrl(o){n(o),w()},get logoLinkLabel(){return i()},set logoLinkLabel(o){i(o),w()}})}customElements.define("graymatter-mobile-top-nav",ae(Wi,{profileMenuData:{},logoLinkUrl:{},logoLinkLabel:{}},[],[],!0));function er(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 ll(){er("toggle")}function ul(){er("open")}function cl(){er("close")}function dl(e){er("set",e)}$.Button=Mi,$.DesktopHeader=ji,$.DesktopSideNav=Vi,$.Logo=Pi,$.MobileBottomNav=Yi,$.MobileSideMenu=Ji,$.MobileTopNav=Wi,$.closeNavigation=cl,$.controlDesktopNavigation=er,$.openNavigation=ul,$.setNavigationState=dl,$.toggleNavigation=ll,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})});
|