@elmethis/react 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.react.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));require(`@elmethis/core/tokens.css`);let c=require(`react/compiler-runtime`),l=require(`react`);l=s(l);let u=require(`clsx`);u=s(u);let d=require(`marked`),f=require(`dompurify`);f=s(f);let p=require(`@a2ui/react/v0_9`),m=require(`@a2ui/web_core/v0_9`),h=require(`@elmethis/core`),g=require(`katex`),_=require(`react/jsx-runtime`),v=require(`@mdi/js`),y=require(`shiki`),b=require(`@46ki75/ikuma-theme/dark`);b=s(b);let x=require(`@46ki75/ikuma-theme/light`);x=s(x);let S=require(`usehooks-ts`),C=require(`@radix-ui/react-use-controllable-state`),w=require(`@formkit/auto-animate/react`);require(`@formkit/auto-animate`);let T=require(`es-toolkit`);var E={text:`_text_zme4t_1`},D={"elm-katex":`_elm-katex_e25qs_5`},O=e=>{let t=(0,c.c)(17),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,expression:i,block:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=n??!1,s;t[5]!==i||t[6]!==o?(s=(0,g.renderToString)(i,{displayMode:o,output:`mathml`}),t[5]=i,t[6]=o,t[7]=s):s=t[7];let l=s,d=n?D[`elm-katex`]:void 0,f;t[8]!==r||t[9]!==d?(f=(0,u.clsx)(E.text,d,r),t[8]=r,t[9]=d,t[10]=f):f=t[10];let p;t[11]===l?p=t[12]:(p={__html:l},t[11]=l,t[12]=p);let m;return t[13]!==a||t[14]!==f||t[15]!==p?(m=(0,_.jsx)(`div`,{className:f,dangerouslySetInnerHTML:p,...a}),t[13]=a,t[14]=f,t[15]=p,t[16]=m):m=t[16],m},k={"elm-code-block":`_elm-code-block_6itf9_1`,"language-icon":`_language-icon_6itf9_16`,caption:`_caption_6itf9_21`,"copy-icon":`_copy-icon_6itf9_28`,divider:`_divider_6itf9_32`,code:`_code_6itf9_39`},A=e=>e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase()),j=(e,t,n)=>t===`id`?`${e}-${n}`:e.replace(/url\(#([^)]+)\)/g,`url(#$1-${n})`),M=(e,t,n)=>{let r={key:n};for(let[n,i]of Object.entries(e.attrs??{}))r[A(n)]=j(i,n,t);e.style&&(r.style=e.style);let i=e.children?.map((e,n)=>M(e,t,n));return(0,l.createElement)(e.tag,r,i)},N=e=>{let t=(0,c.c)(10),{icon:n,size:r,className:i,style:a}=e,o=r===void 0?24:r,s=(0,l.useId)(),u;if(t[0]!==i||t[1]!==n.attrs||t[2]!==n.children||t[3]!==n.viewBox||t[4]!==o||t[5]!==a||t[6]!==s){let e=s.replace(/:/g,``),r;if(t[8]!==n.attrs){r={};for(let[e,t]of Object.entries(n.attrs??{}))r[A(e)]=t;t[8]=n.attrs,t[9]=r}else r=t[9];u=(0,_.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:n.viewBox,width:o,height:o,className:i,style:a,...r,children:n.children.map((t,n)=>M(t,e,n))}),t[0]=i,t[1]=n.attrs,t[2]=n.children,t[3]=n.viewBox,t[4]=o,t[5]=a,t[6]=s,t[7]=u}else u=t[7];return u},P={"elm-mdi-icon":`_elm-mdi-icon_ihskx_1`},F=e=>{let t=(0,c.c)(24),n,r,i,a,o,s,l,d;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],d=t[8]):({className:n,style:s,d:r,size:l,color:d,lightColor:a,darkColor:i,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=d);let f=l===void 0?`1em`:l,p=d===void 0?`currentColor`:d,m;t[9]===n?m=t[10]:(m=(0,u.clsx)(P[`elm-mdi-icon`],n),t[9]=n,t[10]=m);let h=a??p,g=i??p,v;t[11]!==s||t[12]!==h||t[13]!==g?(v={"--elmethis-scoped-color":h,"--dark-color":g,...s},t[11]=s,t[12]=h,t[13]=g,t[14]=v):v=t[14];let y=v,b;t[15]===r?b=t[16]:(b=(0,_.jsx)(`path`,{d:r}),t[15]=r,t[16]=b);let x;return t[17]!==p||t[18]!==o||t[19]!==f||t[20]!==m||t[21]!==y||t[22]!==b?(x=(0,_.jsx)(`svg`,{className:m,style:y,width:f,height:f,viewBox:`0 0 24 24`,fill:p,xmlns:`http://www.w3.org/2000/svg`,focusable:`false`,role:`img`,...o,children:b}),t[17]=p,t[18]=o,t[19]=f,t[20]=m,t[21]=y,t[22]=b,t[23]=x):x=t[23],x},I=e=>{let t=(0,c.c)(7),{className:n,style:r,size:i,language:a}=e,o=i===void 0?24:i,s=(0,h.normalizeLanguage)(a);if(s===`file`){let e=String(o),n;return t[0]===e?n=t[1]:(n=(0,_.jsx)(F,{d:v.mdiCodeTags,size:e}),t[0]=e,t[1]=n),n}let l=h.languageIcons[s],u;return t[2]!==n||t[3]!==o||t[4]!==r||t[5]!==l?(u=(0,_.jsx)(N,{icon:l,size:o,className:n,style:r}),t[2]=n,t[3]=o,t[4]=r,t[5]=l,t[6]=u):u=t[6],u},L={"elm-inline-text":`_elm-inline-text_uf3sg_1`,code:`_code_uf3sg_13`,kbd:`_kbd_uf3sg_25`,link:`_link_uf3sg_58`,ogp:`_ogp_uf3sg_94`,"ogp-text":`_ogp-text_uf3sg_104`,"ogp-title":`_ogp-title_uf3sg_109`,"ogp-description":`_ogp-description_uf3sg_115`},R={"elm-inline-icon":`_elm-inline-icon_1qs0i_1`},z=e=>{let t=(0,c.c)(19),n,r,i,a,o,s,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7]):({className:r,src:o,alt:n,width:l,height:i,size:s,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l);let d=s===void 0?16:s,f;t[8]===r?f=t[9]:(f=(0,u.clsx)(R[`elm-inline-icon`],r),t[8]=r,t[9]=f);let p=l??d,m=i??d,h;t[10]!==n||t[11]!==o||t[12]!==p||t[13]!==m?(h=(0,_.jsx)(`img`,{src:o,alt:n,className:R[`elm-inline-icon`],width:p,height:m}),t[10]=n,t[11]=o,t[12]=p,t[13]=m,t[14]=h):h=t[14];let g;return t[15]!==a||t[16]!==f||t[17]!==h?(g=(0,_.jsx)(`span`,{className:f,...a,children:h}),t[15]=a,t[16]=f,t[17]=h,t[18]=g):g=t[18],g},B=e=>{let t=(0,c.c)(54),n,r,i,a,o,s,l,d,f,p,m,h,g,v,y,b;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],d=t[8],f=t[9],p=t[10],m=t[11],h=t[12],g=t[13],v=t[14],y=t[15],b=t[16]):({className:i,style:f,color:a,size:p,backgroundColor:n,bold:m,italic:h,underline:g,strikethrough:v,code:y,kbd:b,ruby:d,href:s,favicon:o,children:r,...l}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=d,t[9]=f,t[10]=p,t[11]=m,t[12]=h,t[13]=g,t[14]=v,t[15]=y,t[16]=b);let x=p===void 0?`1em`:p,S=m===void 0?!1:m,C=h===void 0?!1:h,w=g===void 0?!1:g,T=v===void 0?!1:v,D=y===void 0?!1:y,O=b===void 0?!1:b,k=r;if(s){let e;t[17]===o?e=t[18]:(e=o&&(0,_.jsx)(z,{src:o,alt:`favicon`}),t[17]=o,t[18]=e);let n;t[19]!==s||t[20]!==e||t[21]!==k?(n=(0,_.jsxs)(`a`,{className:L.link,href:s,target:`_blank`,rel:`noopener noreferrer`,children:[e,k]}),t[19]=s,t[20]=e,t[21]=k,t[22]=n):n=t[22],k=n}if(O){let e;t[23]===k?e=t[24]:(e=(0,_.jsx)(`kbd`,{className:L.kbd,children:k}),t[23]=k,t[24]=e),k=e}if(T){let e;t[25]===k?e=t[26]:(e=(0,_.jsx)(`del`,{children:k}),t[25]=k,t[26]=e),k=e}if(C){let e;t[27]===k?e=t[28]:(e=(0,_.jsx)(`em`,{children:k}),t[27]=k,t[28]=e),k=e}if(w){let e;t[29]===k?e=t[30]:(e=(0,_.jsx)(`ins`,{children:k}),t[29]=k,t[30]=e),k=e}if(S){let e;t[31]===k?e=t[32]:(e=(0,_.jsx)(`strong`,{children:k}),t[31]=k,t[32]=e),k=e}if(D){let e;t[33]===k?e=t[34]:(e=(0,_.jsx)(`code`,{className:L.code,children:k}),t[33]=k,t[34]=e),k=e}if(d){let e;t[35]===k?e=t[36]:(e=(0,_.jsx)(`span`,{children:k}),t[35]=k,t[36]=e);let n;t[37]===d?n=t[38]:(n=(0,_.jsx)(`rt`,{children:d}),t[37]=d,t[38]=n);let r;t[39]!==e||t[40]!==n?(r=(0,_.jsxs)(`ruby`,{className:L[`elm-inline-text`],children:[e,n]}),t[39]=e,t[40]=n,t[41]=r):r=t[41],k=r}let A;t[42]===i?A=t[43]:(A=(0,u.clsx)(L[`elm-inline-text`],E.text,i),t[42]=i,t[43]=A);let j;t[44]!==n||t[45]!==a||t[46]!==x||t[47]!==f?(j={...f,"--elmethis-scoped-color":a,"--elmethis-scoped-font-size":x,"--elmethis-scoped-background-color":n},t[44]=n,t[45]=a,t[46]=x,t[47]=f,t[48]=j):j=t[48];let M=j,N;return t[49]!==l||t[50]!==M||t[51]!==A||t[52]!==k?(N=(0,_.jsx)(`span`,{className:A,style:M,...l,children:k}),t[49]=l,t[50]=M,t[51]=A,t[52]=k,t[53]=N):N=t[53],N},V={"elm-shiki-highlighter":`_elm-shiki-highlighter_j5tas_1`},H=e=>{let t=(0,c.c)(17),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,code:r,language:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?`txt`:a,[s,d]=(0,l.useState)(``),f,p;t[5]!==r||t[6]!==o?(f=()=>{let e=!0;return(async()=>{if(!r){e&&d(``);return}try{let t=await(0,y.codeToHtml)(r,{lang:o,themes:{dark:b.default,light:x.default},defaultColor:!1,colorReplacements:{"#ffffff":`transparent`,"#121212":`transparent`}});e&&d(t)}catch{e&&d(`<pre>${r.replace(/</g,`<`)}</pre>`)}})(),()=>{e=!1}},p=[r,o],t[5]=r,t[6]=o,t[7]=f,t[8]=p):(f=t[7],p=t[8]),(0,l.useEffect)(f,p);let m;t[9]===n?m=t[10]:(m=(0,u.clsx)(V[`elm-shiki-highlighter`],n),t[9]=n,t[10]=m);let h;t[11]===s?h=t[12]:(h={__html:s},t[11]=s,t[12]=h);let g;return t[13]!==i||t[14]!==m||t[15]!==h?(g=(0,_.jsx)(`pre`,{className:m,dangerouslySetInnerHTML:h,...i}),t[13]=i,t[14]=m,t[15]=h,t[16]=g):g=t[16],g},U={"use-clipboard":`_use-clipboard_mb0qt_1`,"use-clipboard-icon-copied":`_use-clipboard-icon-copied_mb0qt_15`},W=e=>{let t=(0,c.c)(14),[n,r]=(0,l.useState)(!1),[,i]=(0,S.useCopyToClipboard)(),a=(0,l.useRef)(void 0),o=(0,l.useRef)(e),s;t[0]===e?s=t[1]:(s=()=>{o.current=e},t[0]=e,t[1]=s),(0,l.useEffect)(s);let d,f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=()=>()=>{a.current!==void 0&&clearTimeout(a.current)},f=[],t[2]=d,t[3]=f):(d=t[2],f=t[3]),(0,l.useEffect)(d,f);let p;t[4]===i?p=t[5]:(p=async()=>{let{content:e,delay:t}=o.current;typeof e==`string`?await i(e):await window.navigator.clipboard.write(e.map(G)),a.current!==void 0&&clearTimeout(a.current),r(!0),a.current=setTimeout(()=>{r(!1),a.current=void 0},t??1500)},t[4]=i,t[5]=p);let m=p,h;t[6]!==n||t[7]!==m||t[8]!==e.className||t[9]!==e.style?(h=()=>(0,_.jsx)(`span`,{className:(0,u.clsx)(U[`use-clipboard`],e.className),style:e.style,onClick:m,children:(0,_.jsx)(F,{className:(0,u.clsx)(n&&U[`use-clipboard-icon-copied`]),d:n?v.mdiClipboardCheckOutline:v.mdiClipboardOutline,size:`1.25rem`})}),t[6]=n,t[7]=m,t[8]=e.className,t[9]=e.style,t[10]=h):h=t[10];let g=h,y;return t[11]!==g||t[12]!==m?(y={CopyButton:g,copy:m},t[11]=g,t[12]=m,t[13]=y):y=t[13],y};function G(e){return new ClipboardItem(e)}var K=e=>{let t=(0,c.c)(29),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({className:i,code:a,language:s,caption:n,children:r,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let l=s===void 0?`txt`:s,d;t[7]===a?d=t[8]:(d={content:a},t[7]=a,t[8]=d);let{CopyButton:f}=W(d),p;t[9]===i?p=t[10]:(p=(0,u.clsx)(k[`elm-code-block`],i),t[9]=i,t[10]=p);let m;t[11]===l?m=t[12]:(m=(0,_.jsx)(`span`,{className:k[`language-icon`],children:(0,_.jsx)(I,{language:l})}),t[11]=l,t[12]=m);let h=n||l,g;t[13]!==r||t[14]!==h?(g=(0,_.jsx)(`span`,{className:k.caption,children:(0,_.jsxs)(B,{children:[h,r]})}),t[13]=r,t[14]=h,t[15]=g):g=t[15];let v;t[16]===f?v=t[17]:(v=(0,_.jsx)(`div`,{className:k[`copy-icon`],children:(0,_.jsx)(f,{})}),t[16]=f,t[17]=v);let y;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,_.jsx)(`hr`,{className:k.divider}),t[18]=y):y=t[18];let b;t[19]!==a||t[20]!==l?(b=(0,_.jsx)(`div`,{className:k.code,children:(0,_.jsx)(H,{code:a,language:l})}),t[19]=a,t[20]=l,t[21]=b):b=t[21];let x;return t[22]!==o||t[23]!==p||t[24]!==m||t[25]!==g||t[26]!==v||t[27]!==b?(x=(0,_.jsxs)(`figure`,{className:p,...o,children:[m,g,v,y,b]}),t[22]=o,t[23]=p,t[24]=m,t[25]=g,t[26]=v,t[27]=b,t[28]=x):x=t[28],x},q={"elm-html":`_elm-html_339tp_1`},J=e=>{let t=(0,c.c)(39),n,r,i,a,o,s,d,f;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],d=t[7],f=t[8]):({className:n,html:i,sandbox:o,style:s,height:r,autoHeight:d,title:f,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=d,t[8]=f);let p=d===void 0?!0:d,m=(0,l.useRef)(null),[h,g]=(0,l.useState)(),v;t[9]!==p||t[10]!==i?(v={html:i,autoHeight:p},t[9]=p,t[10]=i,t[11]=v):v=t[11];let[y,b]=(0,l.useState)(v);(y.html!==i||y.autoHeight!==p)&&(b({html:i,autoHeight:p}),p&&g(void 0));let x;if(t[12]!==p||t[13]!==o){if(x=new Set(o?.split(/\s+/).filter(Boolean)??[]),[...x].some(Y))for(let e of x)e.toLowerCase()===`allow-same-origin`&&x.delete(e);else p&&x.add(`allow-same-origin`);t[12]=p,t[13]=o,t[14]=x}else x=t[14];let S;t[15]===x?S=t[16]:(S=[...x],t[15]=x,t[16]=S);let C=S.join(` `),w;t[17]===p?w=t[18]:(w=()=>{let e=m.current;if(!e)return;let t,n=()=>{let t=e.contentDocument?.documentElement;t&&g(t.scrollHeight)},r=()=>{let r=e.contentDocument?.documentElement;r&&(t?.disconnect(),t=new ResizeObserver(n),t.observe(r))},i=()=>{p&&(n(),r())};return e.addEventListener(`load`,i),()=>{e.removeEventListener(`load`,i),t?.disconnect()}},t[17]=p,t[18]=w);let T;t[19]!==p||t[20]!==i?(T=[i,p],t[19]=p,t[20]=i,t[21]=T):T=t[21],(0,l.useEffect)(w,T);let E=a,D;if(t[22]!==E){let{src:e,srcDoc:n,srcdoc:r,...i}=E;D=i,t[22]=E,t[23]=D}else D=t[23];let O=String(p),k=f??`Embedded HTML content`,A;t[24]===n?A=t[25]:(A=(0,u.clsx)(q[`elm-html`],n),t[24]=n,t[25]=A);let j;t[26]!==p||t[27]!==h||t[28]!==s?(j=p?{...s,height:h??s?.height}:s,t[26]=p,t[27]=h,t[28]=s,t[29]=j):j=t[29];let M=p?h===void 0&&s?.height===void 0?r:void 0:r,N;return t[30]!==C||t[31]!==i||t[32]!==D||t[33]!==j||t[34]!==M||t[35]!==O||t[36]!==k||t[37]!==A?(N=(0,_.jsx)(`iframe`,{ref:m,title:k,className:A,style:j,height:M,...D,srcDoc:i,sandbox:C},O),t[30]=C,t[31]=i,t[32]=D,t[33]=j,t[34]=M,t[35]=O,t[36]=k,t[37]=A,t[38]=N):N=t[38],N};function Y(e){return e.toLowerCase()===`allow-scripts`}var X={"elm-audio-player":`_elm-audio-player_1b0m3_1`,loading:`_loading_1b0m3_33`,header:`_header_1b0m3_39`,artwork:`_artwork_1b0m3_45`,"artwork-error":`_artwork-error_1b0m3_62`,meta:`_meta_1b0m3_68`,title:`_title_1b0m3_76`,artist:`_artist_1b0m3_86`,equalizer:`_equalizer_1b0m3_98`,playing:`_playing_1b0m3_115`,"elm-eq":`_elm-eq_1b0m3_1`,seekbar:`_seekbar_1b0m3_150`,track:`_track_1b0m3_166`,fill:`_fill_1b0m3_175`,thumb:`_thumb_1b0m3_188`,"hover-thumb":`_hover-thumb_1b0m3_208`,"elm-pulse":`_elm-pulse_1b0m3_1`,controls:`_controls_1b0m3_247`,time:`_time_1b0m3_253`,"time-current":`_time-current_1b0m3_263`,"time-total":`_time-total_1b0m3_268`,transport:`_transport_1b0m3_272`,"icon-button":`_icon-button_1b0m3_280`,"play-button":`_play-button_1b0m3_311`,volume:`_volume_1b0m3_358`,"volume-slider":`_volume-slider_1b0m3_365`,errored:`_errored_1b0m3_411`,"error-notice":`_error-notice_1b0m3_420`,"error-message":`_error-message_1b0m3_430`},ee=e=>{(!Number.isFinite(e)||e<0)&&(e=0);let t=Math.floor(e),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60,a=`${n>0?String(r).padStart(2,`0`):String(r)}:${String(i).padStart(2,`0`)}`;return n>0?`${n}:${a}`:a},te=e=>{let t=e.split(/[?#]/)[0].split(`/`).filter(Boolean).pop()??e;try{return decodeURIComponent(t)}catch{return t}},Z=e=>{let t=(0,c.c)(98),n,r,i,a,o,s,d,f,p,m;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],d=t[7],f=t[8],p=t[9],m=t[10]):({className:i,style:d,src:s,title:m,artist:n,errorMessage:f,seekStep:p,loop:a,autoPlay:r,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=d,t[8]=f,t[9]=p,t[10]=m);let h=f===void 0?`This audio couldn't be loaded.`:f,g=p===void 0?10:p,y=(0,l.useRef)(null),b=(0,l.useRef)(null),x=(0,l.useRef)(null),[S,C]=(0,l.useState)(!1),[w,T]=(0,l.useState)(!0),[E,D]=(0,l.useState)(!1),[O,k]=(0,l.useState)(0),[A,j]=(0,l.useState)(0),[M,N]=(0,l.useState)(1),[P,I]=(0,l.useState)(!1),[L,R]=(0,l.useState)(null),z=O>0?Math.min(1,A/O):0,B;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(B=()=>{if(x.current!=null)return;let e=()=>{let t=y.current;t&&j(t.currentTime),x.current=requestAnimationFrame(e)};x.current=requestAnimationFrame(e)},t[11]=B):B=t[11];let V=B,H;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(H=()=>{x.current!=null&&(cancelAnimationFrame(x.current),x.current=null)},t[12]=H):H=t[12];let U=H,W,G;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(W=()=>U,G=[U],t[13]=W,t[14]=G):(W=t[13],G=t[14]),(0,l.useEffect)(W,G);let K;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(K=()=>{let e=y.current;e&&(e.paused?e.play().catch(()=>C(!1)):e.pause())},t[15]=K):K=t[15];let q=K,J;t[16]===O?J=t[17]:(J=e=>{let t=y.current;if(!t||!Number.isFinite(O)||O<=0)return;let n=Math.max(0,Math.min(O,e));t.currentTime=n,j(n)},t[16]=O,t[17]=J);let Y=J,Z;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(Z=e=>{let t=b.current;if(!t)return 0;let n=t.getBoundingClientRect();return n.width===0?0:Math.max(0,Math.min(1,(e-n.left)/n.width))},t[18]=Z):Z=t[18];let Q=Z,ne;t[19]!==O||t[20]!==Y?(ne=e=>{e.currentTarget.setPointerCapture(e.pointerId),Y(Q(e.clientX)*O)},t[19]=O,t[20]=Y,t[21]=ne):ne=t[21];let re=ne,ie;t[22]!==O||t[23]!==Y?(ie=e=>{let t=Q(e.clientX);R(t),e.currentTarget.hasPointerCapture(e.pointerId)&&Y(t*O)},t[22]=O,t[23]=Y,t[24]=ie):ie=t[24];let ae=ie,oe;t[25]!==A||t[26]!==O||t[27]!==g||t[28]!==Y?(oe=e=>{e.key===`ArrowRight`?(e.preventDefault(),Y(A+g)):e.key===`ArrowLeft`?(e.preventDefault(),Y(A-g)):e.key===`Home`?(e.preventDefault(),Y(0)):e.key===`End`&&(e.preventDefault(),Y(O))},t[25]=A,t[26]=O,t[27]=g,t[28]=Y,t[29]=oe):oe=t[29];let se=oe,ce;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(ce=e=>{let t=y.current,n=Math.max(0,Math.min(1,e));t&&(t.volume=n,t.muted=n===0),N(n),I(n===0)},t[30]=ce):ce=t[30];let le=ce,ue;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(ue=()=>{let e=y.current;if(!e)return;let t=!e.muted;e.muted=t,I(t)},t[31]=ue):ue=t[31];let de=ue,fe=P||M===0?v.mdiVolumeOff:M<.34?v.mdiVolumeLow:M<.67?v.mdiVolumeMedium:v.mdiVolumeHigh,pe;t[32]!==s||t[33]!==m?(pe=m??te(s),t[32]=s,t[33]=m,t[34]=pe):pe=t[34];let me=pe,he=S&&X.playing,ge=w&&X.loading,_e=E&&X.errored,ve;t[35]!==i||t[36]!==he||t[37]!==ge||t[38]!==_e?(ve=(0,u.clsx)(X[`elm-audio-player`],he,ge,_e,i),t[35]=i,t[36]=he,t[37]=ge,t[38]=_e,t[39]=ve):ve=t[39];let ye=L??0,be;t[40]!==z||t[41]!==d||t[42]!==ye?(be={"--elmethis-scoped-progress":z,"--elmethis-scoped-hover":ye,...d},t[40]=z,t[41]=d,t[42]=ye,t[43]=be):be=t[43];let xe=be,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me;t[44]===Symbol.for(`react.memo_cache_sentinel`)?(Se=e=>{k(e.currentTarget.duration),N(e.currentTarget.volume),I(e.currentTarget.muted),T(!1)},Ce=e=>k(e.currentTarget.duration),we=()=>T(!1),Te=()=>T(!0),Ee=()=>T(!1),De=e=>{x.current??j(e.currentTarget.currentTime)},Oe=()=>{C(!0),V()},ke=()=>{C(!1),U()},Ae=()=>{C(!1),U()},je=e=>{N(e.currentTarget.volume),I(e.currentTarget.muted)},Me=()=>{D(!0),T(!1)},t[44]=Se,t[45]=Ce,t[46]=we,t[47]=Te,t[48]=Ee,t[49]=De,t[50]=Oe,t[51]=ke,t[52]=Ae,t[53]=je,t[54]=Me):(Se=t[44],Ce=t[45],we=t[46],Te=t[47],Ee=t[48],De=t[49],Oe=t[50],ke=t[51],Ae=t[52],je=t[53],Me=t[54]);let Ne;t[55]!==r||t[56]!==a||t[57]!==s?(Ne=(0,_.jsx)(`audio`,{ref:y,src:s,loop:a,autoPlay:r,preload:`metadata`,onLoadedMetadata:Se,onDurationChange:Ce,onCanPlay:we,onWaiting:Te,onPlaying:Ee,onTimeUpdate:De,onPlay:Oe,onPause:ke,onEnded:Ae,onVolumeChange:je,onError:Me}),t[55]=r,t[56]=a,t[57]=s,t[58]=Ne):Ne=t[58];let Pe=E&&X[`artwork-error`],Fe;t[59]===Pe?Fe=t[60]:(Fe=(0,u.clsx)(X.artwork,Pe),t[59]=Pe,t[60]=Fe);let Ie=E?v.mdiAlertCircleOutline:v.mdiMusicNote,Le;t[61]===Ie?Le=t[62]:(Le=(0,_.jsx)(F,{d:Ie,size:`1.25rem`}),t[61]=Ie,t[62]=Le);let Re;t[63]!==Fe||t[64]!==Le?(Re=(0,_.jsx)(`span`,{className:Fe,"aria-hidden":`true`,children:Le}),t[63]=Fe,t[64]=Le,t[65]=Re):Re=t[65];let ze;t[66]===me?ze=t[67]:(ze=(0,_.jsx)(`span`,{className:X.title,title:me,children:me}),t[66]=me,t[67]=ze);let Be;t[68]===n?Be=t[69]:(Be=n&&(0,_.jsx)(`span`,{className:X.artist,children:n}),t[68]=n,t[69]=Be);let Ve;t[70]!==ze||t[71]!==Be?(Ve=(0,_.jsxs)(`div`,{className:X.meta,children:[ze,Be]}),t[70]=ze,t[71]=Be,t[72]=Ve):Ve=t[72];let He;t[73]===Symbol.for(`react.memo_cache_sentinel`)?(He=(0,_.jsxs)(`span`,{className:X.equalizer,"aria-hidden":`true`,children:[(0,_.jsx)(`i`,{}),(0,_.jsx)(`i`,{}),(0,_.jsx)(`i`,{}),(0,_.jsx)(`i`,{})]}),t[73]=He):He=t[73];let Ue;t[74]!==Re||t[75]!==Ve?(Ue=(0,_.jsxs)(`div`,{className:X.header,children:[Re,Ve,He]}),t[74]=Re,t[75]=Ve,t[76]=Ue):Ue=t[76];let We;t[77]!==A||t[78]!==O||t[79]!==h||t[80]!==se||t[81]!==re||t[82]!==ae||t[83]!==E||t[84]!==P||t[85]!==S||t[86]!==g||t[87]!==Y||t[88]!==M||t[89]!==fe?(We=E?(0,_.jsxs)(`div`,{className:X[`error-notice`],role:`alert`,children:[(0,_.jsx)(F,{d:v.mdiAlertCircleOutline,size:`1.25rem`}),(0,_.jsx)(`span`,{className:X[`error-message`],children:h})]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`div`,{ref:b,className:X.seekbar,role:`slider`,tabIndex:0,"aria-label":`Seek`,"aria-valuemin":0,"aria-valuemax":Math.round(O)||0,"aria-valuenow":Math.round(A),"aria-valuetext":`${ee(A)} of ${ee(O)}`,onPointerDown:re,onPointerMove:ae,onPointerLeave:()=>R(null),onKeyDown:se,children:[(0,_.jsx)(`div`,{className:X.track,"aria-hidden":`true`,children:(0,_.jsx)(`div`,{className:X.fill})}),(0,_.jsx)(`span`,{className:X[`hover-thumb`],"aria-hidden":`true`}),(0,_.jsx)(`span`,{className:X.thumb,"aria-hidden":`true`})]}),(0,_.jsxs)(`div`,{className:X.controls,children:[(0,_.jsx)(`span`,{className:(0,u.clsx)(X.time,X[`time-current`]),children:ee(A)}),(0,_.jsxs)(`div`,{className:X.transport,children:[(0,_.jsx)(`button`,{type:`button`,className:X[`icon-button`],onClick:()=>Y(A-g),"aria-label":`Back ${g} seconds`,children:(0,_.jsx)(F,{d:v.mdiRewind10,size:`1.25rem`})}),(0,_.jsx)(`button`,{type:`button`,className:X[`play-button`],onClick:q,"aria-label":S?`Pause`:`Play`,"aria-pressed":S,children:(0,_.jsx)(F,{d:S?v.mdiPause:v.mdiPlay,size:`1.5rem`})}),(0,_.jsx)(`button`,{type:`button`,className:X[`icon-button`],onClick:()=>Y(A+g),"aria-label":`Forward ${g} seconds`,children:(0,_.jsx)(F,{d:v.mdiFastForward10,size:`1.25rem`})})]}),(0,_.jsxs)(`div`,{className:X.volume,children:[(0,_.jsx)(`button`,{type:`button`,className:X[`icon-button`],onClick:de,"aria-label":P?`Unmute`:`Mute`,"aria-pressed":P,children:(0,_.jsx)(F,{d:fe,size:`1.25rem`})}),(0,_.jsx)(`input`,{className:X[`volume-slider`],type:`range`,min:0,max:1,step:.01,value:P?0:M,"aria-label":`Volume`,onChange:e=>le(e.currentTarget.valueAsNumber),style:{"--elmethis-scoped-volume":P?0:M}})]}),(0,_.jsx)(`span`,{className:(0,u.clsx)(X.time,X[`time-total`]),children:ee(O)})]})]}),t[77]=A,t[78]=O,t[79]=h,t[80]=se,t[81]=re,t[82]=ae,t[83]=E,t[84]=P,t[85]=S,t[86]=g,t[87]=Y,t[88]=M,t[89]=fe,t[90]=We):We=t[90];let Ge;return t[91]!==o||t[92]!==ve||t[93]!==xe||t[94]!==Ne||t[95]!==Ue||t[96]!==We?(Ge=(0,_.jsxs)(`div`,{className:ve,style:xe,...o,children:[Ne,Ue,We]}),t[91]=o,t[92]=ve,t[93]=xe,t[94]=Ne,t[95]=Ue,t[96]=We,t[97]=Ge):Ge=t[97],Ge},Q={"elm-block-image":`_elm-block-image_1cmrf_1`,"image-container":`_image-container_1cmrf_11`,image:`_image_1cmrf_11`,fallback:`_fallback_1cmrf_35`,"caption-box":`_caption-box_1cmrf_45`,"caption-icon":`_caption-icon_1cmrf_55`},ne={"elm-rectangle-wave":`_elm-rectangle-wave_70gad_21`,wave:`_wave_70gad_1`},re=e=>{let t=(0,c.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=(0,u.clsx)(ne[`elm-rectangle-wave`],n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,_.jsx)(`div`,{"aria-hidden":`true`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a},ie={"elm-modal":`_elm-modal_12j1m_1`,shown:`_shown_12j1m_18`},ae=({className:e,isOpen:t,delay:n=200,style:r,onClose:i,children:a,...o})=>{let s=(0,l.useRef)(null),[c,d]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let e=s.current;if(e)if(t)e.showModal(),d(!0);else{if(!c)return;d(!1);let e=setTimeout(()=>{s.current?.close()},n);return()=>{clearTimeout(e)}}},[t,n]),(0,_.jsx)(`dialog`,{ref:s,className:(0,u.clsx)(ie[`elm-modal`],c&&ie.shown,e),onClick:e=>{s.current&&i?.(e.nativeEvent,s.current)},style:{"--elmethis-scoped-modal-delay":`${n}ms`,...r},closedby:`none`,...o,children:(0,_.jsx)(`div`,{onClick:e=>e.stopPropagation(),children:a})})},oe=e=>{let t=(0,c.c)(10),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let r=n.delay,[i,a]=(0,l.useState)(!1),o=(0,l.useRef)(i),s;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{o.current=!0,a(!0)},t[2]=s):s=t[2];let u=s,d;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(d=()=>{o.current=!1,a(!1)},t[3]=d):d=t[3];let f=d,p;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>{o.current=!o.current,a(o.current)},t[4]=p):p=t[4];let m=p,h=(0,l.useRef)(r),g;t[5]===r?g=t[6]:(g=()=>{h.current=r},t[5]=r,t[6]=g),(0,l.useEffect)(g);let v;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(v=function(e){let{children:t}=e;return(0,_.jsx)(ae,{isOpen:o.current,delay:h.current,onClose:f,children:t})},t[7]=v):v=t[7];let y=v,b;return t[8]===i?b=t[9]:(b={Modal:y,isOpen:i,show:u,hide:f,toggle:m},t[8]=i,t[9]=b),b},se=e=>{let t=(0,c.c)(59),n,r,i,a,o,s,d,f,p,m;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],d=t[7],f=t[8],p=t[9],m=t[10]):({className:i,src:f,alt:n,caption:r,width:m,height:o,srcSet:p,sizes:d,enableModal:a,...s}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=d,t[8]=f,t[9]=p,t[10]=m);let[h,g]=(0,l.useState)(!0),{Modal:y,isOpen:b,show:x,hide:S}=oe(),C;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(C=()=>{g(!1)},t[11]=C):C=t[11];let w=C,T;t[12]!==a||t[13]!==h||t[14]!==x?(T=()=>{(a??!0)&&!h&&x()},t[12]=a,t[13]=h,t[14]=x,t[15]=T):T=t[15];let E=T,D;t[16]===S?D=t[17]:(D=()=>{S()},t[16]=S,t[17]=D);let O=D,k=(0,l.useRef)(null),A;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(A=()=>{k.current?.decode().then(()=>g(!1),ce)},t[18]=A):A=t[18];let j;t[19]===f?j=t[20]:(j=[f],t[19]=f,t[20]=j),(0,l.useEffect)(A,j);let M,N,P,I,L,R;if(t[21]!==y||t[22]!==n||t[23]!==r||t[24]!==i||t[25]!==a||t[26]!==O||t[27]!==E||t[28]!==o||t[29]!==h||t[30]!==b||t[31]!==s||t[32]!==d||t[33]!==f||t[34]!==p||t[35]!==m){let e=e=>(0,_.jsx)(`img`,{ref:e?void 0:k,className:Q.image,src:f,alt:n??r??`Image`,srcSet:e?void 0:p,sizes:e?void 0:d,width:m,height:o,loading:e?`lazy`:void 0,fetchPriority:e?`low`:`auto`,onLoad:w,onClick:e?O:void 0,style:{"--elmethis-scoped-opacity":h?.01:1,"--elmethis-scoped-cursor":a??!0?b?`zoom-out`:`zoom-in`:`default`,"--elmethis-scoped-aspect-ratio":m&&o?`${m} / ${o}`:`auto`}});t[42]===i?I=t[43]:(I=(0,u.clsx)(Q[`elm-block-image`],i),t[42]=i,t[43]=I),L=s;let c=h?1:.01,l;t[44]===c?l=t[45]:(l={"--elmethis-scoped-opacity":c},t[44]=c,t[45]=l);let g;t[46]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,_.jsx)(`div`,{className:Q.fallback,children:(0,_.jsx)(re,{})}),t[46]=g):g=t[46],R=(0,_.jsxs)(`div`,{className:Q[`image-container`],style:l,onClick:E,children:[e(!1),g]}),t[47]!==r||t[48]!==h?(N=r&&(0,_.jsxs)(`figcaption`,{className:Q[`caption-box`],style:{"--elmethis-scoped-opacity":h?.01:1},children:[(0,_.jsx)(`span`,{className:Q[`caption-icon`],children:(0,_.jsx)(F,{d:v.mdiMessageImageOutline,size:`1.25rem`})}),(0,_.jsx)(B,{size:`1rem`,children:r})]}),t[47]=r,t[48]=h,t[49]=N):N=t[49],M=y,P=b&&e(!0),t[21]=y,t[22]=n,t[23]=r,t[24]=i,t[25]=a,t[26]=O,t[27]=E,t[28]=o,t[29]=h,t[30]=b,t[31]=s,t[32]=d,t[33]=f,t[34]=p,t[35]=m,t[36]=M,t[37]=N,t[38]=P,t[39]=I,t[40]=L,t[41]=R}else M=t[36],N=t[37],P=t[38],I=t[39],L=t[40],R=t[41];let z;t[50]!==M||t[51]!==P?(z=(0,_.jsx)(M,{children:P}),t[50]=M,t[51]=P,t[52]=z):z=t[52];let V;return t[53]!==N||t[54]!==z||t[55]!==I||t[56]!==L||t[57]!==R?(V=(0,_.jsxs)(`figure`,{className:I,...L,children:[R,N,z]}),t[53]=N,t[54]=z,t[55]=I,t[56]=L,t[57]=R,t[58]=V):V=t[58],V};function ce(){}var le={"elm-file":`_elm-file_aoaqq_1`,"file-size":`_file-size_aoaqq_12`,"download-icon":`_download-icon_aoaqq_17`};function ue(e){let t=e.split(/[?#]/)[0].split(`/`).filter(Boolean);return t.length>0?t[t.length-1]:null}var de=({className:e,name:t,src:n,filesize:r,...i})=>{let a=async()=>{let e;try{let r=await fetch(n);if(!r.ok)throw Error(`Failed to download file`);let i=await r.blob();e=document.createElement(`a`),e.href=URL.createObjectURL(i),e.download=t??ue(n)??`file`,e.click()}catch(e){console.error(`ERROR:`,e)}finally{e&&URL.revokeObjectURL(e.href)}};return(0,_.jsxs)(`div`,{className:(0,u.clsx)(le[`elm-file`],e),...i,children:[(0,_.jsx)(`div`,{children:(0,_.jsx)(F,{d:v.mdiFile,size:`1.25rem`})}),(0,_.jsx)(`div`,{children:(0,_.jsx)(B,{children:t??ue(n)})}),(0,_.jsx)(`div`,{className:le[`file-size`],children:(0,_.jsx)(B,{children:r})}),(0,_.jsx)(`div`,{className:le[`download-icon`],onClick:a,children:(0,_.jsx)(F,{d:v.mdiDownload,size:`1.25rem`})})]})},fe={"elm-bookmark":`_elm-bookmark_cbkg4_1`,container:`_container_cbkg4_23`,image:`_image_cbkg4_35`,content:`_content_cbkg4_55`,title:`_title_cbkg4_71`,description:`_description_cbkg4_75`,link:`_link_cbkg4_80`},pe={visibility:`hidden`,width:`0`},me=e=>{let t=(0,c.c)(40),n,r,i,a,o,s,d;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],d=t[7]):({className:n,title:s,url:d,image:a,description:r,favicon:i,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=d);let[f,p]=(0,l.useState)(!1),m;t[8]===n?m=t[9]:(m=(0,u.clsx)(fe[`elm-bookmark`],n),t[8]=n,t[9]=m);let h;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(h=()=>p(!0),t[10]=h):h=t[10];let g;t[11]!==a||t[12]!==f?(g=f||a==null?pe:{},t[11]=a,t[12]=f,t[13]=g):g=t[13];let y;t[14]!==a||t[15]!==g?(y=(0,_.jsx)(`img`,{className:fe.image,src:a,alt:`OGP Image`,onError:h,style:g}),t[14]=a,t[15]=g,t[16]=y):y=t[16];let b;t[17]===s?b=t[18]:(b=(0,_.jsx)(`div`,{className:fe.title,children:(0,_.jsx)(B,{bold:!0,children:s})}),t[17]=s,t[18]=b);let x;t[19]===r?x=t[20]:(x=(0,_.jsx)(`div`,{className:fe.description,children:(0,_.jsx)(B,{size:`0.75rem`,children:r})}),t[19]=r,t[20]=x);let S;t[21]===i?S=t[22]:(S=i?(0,_.jsx)(z,{src:i}):(0,_.jsx)(F,{d:v.mdiLinkVariant,color:`var(--elmethis-color-accent-info)`}),t[21]=i,t[22]=S);let C;t[23]===d?C=t[24]:(C=(0,_.jsx)(B,{size:`0.75rem`,children:d}),t[23]=d,t[24]=C);let w;t[25]!==S||t[26]!==C?(w=(0,_.jsxs)(`div`,{className:fe.link,children:[S,C]}),t[25]=S,t[26]=C,t[27]=w):w=t[27];let T;t[28]!==b||t[29]!==x||t[30]!==w?(T=(0,_.jsxs)(`div`,{className:fe.content,children:[b,x,w]}),t[28]=b,t[29]=x,t[30]=w,t[31]=T):T=t[31];let E;t[32]!==T||t[33]!==y||t[34]!==d?(E=(0,_.jsxs)(`a`,{className:fe.container,href:d,target:`_blank`,rel:`noopener noreferrer`,children:[y,T]}),t[32]=T,t[33]=y,t[34]=d,t[35]=E):E=t[35];let D;return t[36]!==o||t[37]!==m||t[38]!==E?(D=(0,_.jsx)(`div`,{className:m,...o,children:E}),t[36]=o,t[37]=m,t[38]=E,t[39]=D):D=t[39],D},he={"elm-tabs":`_elm-tabs_whoym_1`,"tab-container":`_tab-container_whoym_13`,tab:`_tab_whoym_13`,active:`_active_whoym_41`,"tab-content":`_tab-content_whoym_52`,"tab-content-inner":`_tab-content-inner_whoym_57`},ge={"elm-collapse":`_elm-collapse_12wiu_1`,row:`_row_12wiu_5`,open:`_open_12wiu_11`,column:`_column_12wiu_16`,both:`_both_12wiu_27`,inner:`_inner_12wiu_44`},_e=e=>{let t=(0,c.c)(24),n,r,i,a,o,s,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7]):({className:r,style:o,isOpen:i,direction:s,transitionTimingFunction:l,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l);let d=s===void 0?`row`:s,f=l===void 0?`ease-in-out`:l,p=i&&ge.open,m=d===`row`&&ge.row,h=d===`column`&&ge.column,g=d===`both`&&ge.both,v;t[8]!==r||t[9]!==p||t[10]!==m||t[11]!==h||t[12]!==g?(v=(0,u.clsx)(ge[`elm-collapse`],p,m,h,g,r),t[8]=r,t[9]=p,t[10]=m,t[11]=h,t[12]=g,t[13]=v):v=t[13];let y;t[14]!==o||t[15]!==f?(y={...o,"--elmethis-scoped-transition-timing-function":f},t[14]=o,t[15]=f,t[16]=y):y=t[16];let b=y,x;t[17]===n?x=t[18]:(x=(0,_.jsx)(`div`,{className:ge.inner,children:n}),t[17]=n,t[18]=x);let S;return t[19]!==a||t[20]!==x||t[21]!==v||t[22]!==b?(S=(0,_.jsx)(`div`,{className:v,style:b,...a,children:x}),t[19]=a,t[20]=x,t[21]=v,t[22]=b,t[23]=S):S=t[23],S};function ve(e){let t=(0,c.c)(4),{value:n,defaultValue:r,onChange:i}=e,a;return t[0]!==r||t[1]!==i||t[2]!==n?(a={prop:n,defaultProp:r,onChange:i,caller:`useBindableSignal`},t[0]=r,t[1]=i,t[2]=n,t[3]=a):a=t[3],(0,C.useControllableState)(a)}var ye=(0,l.createContext)(null),be=()=>{let e=(0,l.useContext)(ye);if(e==null)throw Error(`ElmTabs subcomponents must be used within <ElmTabs>`);return e},xe=e=>{let t=(0,c.c)(25),n,r,i,a,o,s,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7]):({className:r,value:l,defaultValue:i,onValueChange:a,transitionTimingFunction:s,children:n,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l);let d=s===void 0?`linear`:s,f=i??``,p;t[8]!==a||t[9]!==f||t[10]!==l?(p={value:l,defaultValue:f,onChange:a},t[8]=a,t[9]=f,t[10]=l,t[11]=p):p=t[11];let[m,h]=ve(p),g;t[12]!==m||t[13]!==h||t[14]!==d?(g={selectedValue:m,setSelectedValue:h,transitionTimingFunction:d},t[12]=m,t[13]=h,t[14]=d,t[15]=g):g=t[15];let v;t[16]===r?v=t[17]:(v=(0,u.clsx)(he[`elm-tabs`],r),t[16]=r,t[17]=v);let y;t[18]!==n||t[19]!==o||t[20]!==v?(y=(0,_.jsx)(`div`,{className:v,...o,children:n}),t[18]=n,t[19]=o,t[20]=v,t[21]=y):y=t[21];let b;return t[22]!==g||t[23]!==y?(b=(0,_.jsx)(ye.Provider,{value:g,children:y}),t[22]=g,t[23]=y,t[24]=b):b=t[24],b},Se=e=>{let t=(0,c.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=(0,u.clsx)(he[`tab-container`],r),t[4]=r,t[5]=a);let o;return t[6]!==n||t[7]!==i||t[8]!==a?(o=(0,_.jsx)(`div`,{className:a,...i,children:n}),t[6]=n,t[7]=i,t[8]=a,t[9]=o):o=t[9],o},Ce=e=>{let t=(0,c.c)(18),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({value:o,className:r,children:n,onClick:i,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=be(),l=s.selectedValue===o&&he.active,d;t[6]!==r||t[7]!==l?(d=(0,u.clsx)(he.tab,l,r),t[6]=r,t[7]=l,t[8]=d):d=t[8];let f;t[9]!==s||t[10]!==i||t[11]!==o?(f=e=>{s.setSelectedValue(o),i?.(e)},t[9]=s,t[10]=i,t[11]=o,t[12]=f):f=t[12];let p;return t[13]!==n||t[14]!==a||t[15]!==d||t[16]!==f?(p=(0,_.jsx)(`div`,{className:d,onClick:f,...a,children:n}),t[13]=n,t[14]=a,t[15]=d,t[16]=f,t[17]=p):p=t[17],p},we=e=>{let t=(0,c.c)(17),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({value:a,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=be(),s;t[5]===r?s=t[6]:(s=(0,u.clsx)(he[`tab-content`],r),t[5]=r,t[6]=s);let l=o.selectedValue===a,d;t[7]===n?d=t[8]:(d=(0,_.jsx)(`div`,{className:he[`tab-content-inner`],children:n}),t[7]=n,t[8]=d);let f;t[9]!==o.transitionTimingFunction||t[10]!==l||t[11]!==d?(f=(0,_.jsx)(_e,{direction:`row`,isOpen:l,transitionTimingFunction:o.transitionTimingFunction,children:d}),t[9]=o.transitionTimingFunction,t[10]=l,t[11]=d,t[12]=f):f=t[12];let p;return t[13]!==i||t[14]!==s||t[15]!==f?(p=(0,_.jsx)(`div`,{className:s,...i,children:f}),t[13]=i,t[14]=s,t[15]=f,t[16]=p):p=t[16],p},Te={"elm-toggle":`_elm-toggle_qfazq_1`,open:`_open_qfazq_8`,summary:`_summary_qfazq_13`,"summary-left":`_summary-left_qfazq_28`,divider:`_divider_qfazq_35`,chevron:`_chevron_qfazq_49`,cross:`_cross_qfazq_62`,border:`_border_qfazq_76`,content:`_content_qfazq_84`},Ee=e=>{let t=(0,c.c)(57),n,r,i,a,o,s,l,d,f;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],d=t[8],f=t[9]):({className:r,summary:f,style:d,monochrome:o,isOpen:a,defaultIsOpen:i,onOpenChange:s,children:n,...l}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=d,t[9]=f);let p=i??!1,m;t[10]!==a||t[11]!==s||t[12]!==p?(m={value:a,defaultValue:p,onChange:s},t[10]=a,t[11]=s,t[12]=p,t[13]=m):m=t[13];let[h,g]=ve(m),y=h&&Te.open,b;t[14]!==r||t[15]!==y?(b=(0,u.clsx)(Te[`elm-toggle`],y,r),t[14]=r,t[15]=y,t[16]=b):b=t[16];let x=d,S;t[17]===g?S=t[18]:(S=e=>{e.preventDefault(),g(De)},t[17]=g,t[18]=S);let C=h&&Te.open,w;t[19]===C?w=t[20]:(w=(0,u.clsx)(Te.chevron,C),t[19]=C,t[20]=w);let T=o?`var(--elmethis-color-neutral-weak)`:`var(--elmethis-color-primary)`,E;t[21]===T?E=t[22]:(E=(0,_.jsx)(F,{d:v.mdiChevronRight,color:T,size:`1rem`}),t[21]=T,t[22]=E);let D;t[23]!==E||t[24]!==w?(D=(0,_.jsx)(`span`,{className:w,children:E}),t[23]=E,t[24]=w,t[25]=D):D=t[25];let O;t[26]===f?O=t[27]:(O=typeof f==`string`?(0,_.jsx)(B,{children:f}):f,t[26]=f,t[27]=O);let k;t[28]===O?k=t[29]:(k=(0,_.jsx)(`div`,{children:O}),t[28]=O,t[29]=k);let A;t[30]!==D||t[31]!==k?(A=(0,_.jsxs)(`div`,{className:Te[`summary-left`],children:[D,k]}),t[30]=D,t[31]=k,t[32]=A):A=t[32];let j;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,_.jsx)(`hr`,{className:Te.divider}),t[33]=j):j=t[33];let M=h&&Te.open,N;t[34]===M?N=t[35]:(N=(0,u.clsx)(Te.cross,M),t[34]=M,t[35]=N);let P=o?`var(--elmethis-color-neutral-weak)`:h?`var(--elmethis-color-accent-error)`:`var(--elmethis-color-primary)`,I;t[36]===P?I=t[37]:(I=(0,_.jsx)(F,{d:v.mdiPlus,size:`1rem`,color:P}),t[36]=P,t[37]=I);let L;t[38]!==N||t[39]!==I?(L=(0,_.jsx)(`span`,{className:N,children:I}),t[38]=N,t[39]=I,t[40]=L):L=t[40];let R;t[41]!==A||t[42]!==L||t[43]!==S?(R=(0,_.jsxs)(`div`,{className:Te.summary,onClick:S,children:[A,j,L]}),t[41]=A,t[42]=L,t[43]=S,t[44]=R):R=t[44];let z;t[45]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,_.jsx)(`div`,{className:Te.border}),t[45]=z):z=t[45];let V=h&&Te.open,H;t[46]===V?H=t[47]:(H=(0,u.clsx)(Te.content,V),t[46]=V,t[47]=H);let U;t[48]!==n||t[49]!==H?(U=(0,_.jsx)(`div`,{className:H,children:n}),t[48]=n,t[49]=H,t[50]=U):U=t[50];let W;return t[51]!==l||t[52]!==R||t[53]!==U||t[54]!==b||t[55]!==x?(W=(0,_.jsxs)(`div`,{className:b,style:x,...l,children:[R,z,U]}),t[51]=l,t[52]=R,t[53]=U,t[54]=b,t[55]=x,t[56]=W):W=t[56],W};function De(e){return!e}var Oe={"elm-block-quote":`_elm-block-quote_xzf6a_1`,body:`_body_xzf6a_19`,icon:`_icon_xzf6a_27`,"icon-top-left":`_icon-top-left_xzf6a_32`,"icon-bottom-right":`_icon-bottom-right_xzf6a_36`},ke=e=>{let t=(0,c.c)(14),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=(0,u.clsx)(Oe[`elm-block-quote`],E.text,r),t[4]=r,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,_.jsx)(`div`,{className:(0,u.clsx)(Oe.icon,Oe[`icon-top-left`]),children:(0,_.jsx)(F,{d:v.mdiFormatQuoteOpen})}),t[6]=o):o=t[6];let s;t[7]===n?s=t[8]:(s=(0,_.jsx)(`div`,{className:Oe.body,children:n}),t[7]=n,t[8]=s);let l;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,_.jsx)(`div`,{className:(0,u.clsx)(Oe.icon,Oe[`icon-bottom-right`]),children:(0,_.jsx)(F,{d:v.mdiFormatQuoteClose})}),t[9]=l):l=t[9];let d;return t[10]!==i||t[11]!==a||t[12]!==s?(d=(0,_.jsxs)(`blockquote`,{className:a,...i,children:[o,s,l]}),t[10]=i,t[11]=a,t[12]=s,t[13]=d):d=t[13],d},Ae={"elm-callout":`_elm-callout_1nsmp_1`,header:`_header_1nsmp_26`,content:`_content_1nsmp_35`,icon:`_icon_1nsmp_42`,note:`_note_1nsmp_47`,tip:`_tip_1nsmp_51`,important:`_important_1nsmp_55`,warning:`_warning_1nsmp_59`,caution:`_caution_1nsmp_63`},je=Object.freeze({note:v.mdiInformation,tip:v.mdiLightbulbOn,important:v.mdiShieldAlert,warning:v.mdiAlert,caution:v.mdiAlertOctagram}),Me=e=>{let t=(0,c.c)(24),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,type:o,style:a,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=o===void 0?`note`:o,l=Ae[s],d;t[6]!==r||t[7]!==l?(d=(0,u.clsx)(Ae[`elm-callout`],l,r),t[6]=r,t[7]=l,t[8]=d):d=t[8];let f=je[s],p;t[9]===f?p=t[10]:(p=(0,_.jsx)(F,{className:Ae.icon,d:f,size:`1.25rem`}),t[9]=f,t[10]=p);let m;t[11]===s?m=t[12]:(m=(0,_.jsx)(`span`,{children:s}),t[11]=s,t[12]=m);let h;t[13]!==p||t[14]!==m?(h=(0,_.jsxs)(`div`,{className:Ae.header,children:[p,m]}),t[13]=p,t[14]=m,t[15]=h):h=t[15];let g;t[16]===n?g=t[17]:(g=(0,_.jsx)(`div`,{className:Ae.content,children:n}),t[16]=n,t[17]=g);let v;return t[18]!==i||t[19]!==a||t[20]!==d||t[21]!==h||t[22]!==g?(v=(0,_.jsxs)(`aside`,{className:d,style:a,...i,children:[h,g]}),t[18]=i,t[19]=a,t[20]=d,t[21]=h,t[22]=g,t[23]=v):v=t[23],v},Ne={"elm-notion-callout":`_elm-notion-callout_15idh_1`,icon:`_icon_15idh_9`,content:`_content_15idh_15`,filled:`_filled_15idh_20`,outlined:`_outlined_15idh_24`,default:`_default_15idh_29`,gray:`_gray_15idh_38`,red:`_red_15idh_43`,orange:`_orange_15idh_48`,yellow:`_yellow_15idh_55`,green:`_green_15idh_62`,cyan:`_cyan_15idh_69`,blue:`_blue_15idh_74`,purple:`_purple_15idh_79`,magenta:`_magenta_15idh_86`},Pe=e=>{let t=(0,c.c)(22),n,r,i,a,o,s,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7]):({className:r,style:o,icon:i,color:s,variant:l,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l);let d=s===void 0?`gray`:s,f=l===void 0?`filled`:l,p=Ne[d],m=Ne[f],h;t[8]!==r||t[9]!==p||t[10]!==m?(h=(0,u.clsx)(Ne[`elm-notion-callout`],p,m,r),t[8]=r,t[9]=p,t[10]=m,t[11]=h):h=t[11];let g;t[12]===i?g=t[13]:(g=i!==void 0&&(i.kind===`emoji`?(0,_.jsx)(`span`,{className:Ne.icon,role:`img`,children:i.emoji}):(0,_.jsx)(z,{className:Ne.icon,src:i.src,alt:i.alt,size:20})),t[12]=i,t[13]=g);let v;t[14]===n?v=t[15]:(v=(0,_.jsx)(`div`,{className:Ne.content,children:n}),t[14]=n,t[15]=v);let y;return t[16]!==a||t[17]!==o||t[18]!==h||t[19]!==g||t[20]!==v?(y=(0,_.jsxs)(`div`,{className:h,style:o,...a,children:[g,v]}),t[16]=a,t[17]=o,t[18]=h,t[19]=g,t[20]=v,t[21]=y):y=t[21],y},Fe={"elm-divider":`_elm-divider_9m6gb_1`},Ie=e=>{let t=(0,c.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=(0,u.clsx)(Fe[`elm-divider`],n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,_.jsx)(`hr`,{className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a},Le={"elm-heading":`_elm-heading_1fuld_1`,h1:`_h1_1fuld_12`,h2:`_h2_1fuld_34`,"h2-underline":`_h2-underline_1fuld_60`,h3:`_h3_1fuld_71`,h4:`_h4_1fuld_86`,h5:`_h5_1fuld_90`,h6:`_h6_1fuld_94`},Re={"elm-fragment-identifier":`_elm-fragment-identifier_xb2v4_1`},ze=e=>{let t=(0,c.c)(12),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,id:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=Be,o;t[4]===n?o=t[5]:(o=(0,u.clsx)(Re[`elm-fragment-identifier`],n),t[4]=n,t[5]=o);let s;t[6]===r?s=t[7]:(s=()=>a(r),t[6]=r,t[7]=s);let l;return t[8]!==i||t[9]!==o||t[10]!==s?(l=(0,_.jsx)(`span`,{className:o,onClick:s,...i,children:`#`}),t[8]=i,t[9]=o,t[10]=s,t[11]=l):l=t[11],l};function Be(e){let t=new URL(window.location.href);t.hash=e,window.history.replaceState(null,``,t.toString()),document.getElementById(e)?.scrollIntoView({behavior:`smooth`})}var Ve=Object.freeze({1:1.5,2:1.4,3:1.3,4:1.2,5:1.15,6:1.1}),He=e=>{let t=(0,c.c)(30),n,r,i,a,o,s,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7]):({className:r,level:a,text:l,id:i,style:s,children:n,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l);let d=`h${a}`,f=Le[`h${a}`],p;t[8]!==r||t[9]!==f?(p=(0,u.clsx)(Le[`elm-heading`],E.text,f,r),t[8]=r,t[9]=f,t[10]=p):p=t[10];let m=`${Ve[a]}em`,h;t[11]!==s||t[12]!==m?(h={"--elmethis-scoped-font-size":m,...s},t[11]=s,t[12]=m,t[13]=h):h=t[13];let g=h,v;t[14]===l?v=t[15]:(v=(0,_.jsx)(`span`,{children:l}),t[14]=l,t[15]=v);let y;t[16]===i?y=t[17]:(y=i&&(0,_.jsx)(`span`,{style:{padding:`0.5rem`},children:(0,_.jsx)(ze,{id:i})}),t[16]=i,t[17]=y);let b;t[18]===a?b=t[19]:(b=a===2&&(0,_.jsx)(`span`,{className:Le[`h2-underline`],"aria-hidden":`true`}),t[18]=a,t[19]=b);let x;return t[20]!==d||t[21]!==n||t[22]!==i||t[23]!==o||t[24]!==p||t[25]!==g||t[26]!==v||t[27]!==y||t[28]!==b?(x=(0,_.jsxs)(d,{className:p,style:g,id:i,...o,children:[v,n,y,b]}),t[20]=d,t[21]=n,t[22]=i,t[23]=o,t[24]=p,t[25]=g,t[26]=v,t[27]=y,t[28]=b,t[29]=x):x=t[29],x},Ue={"elm-list":`_elm-list_brpi5_1`,bulleted:`_bulleted_brpi5_8`,numbered:`_numbered_brpi5_57`},We=e=>{let t=(0,c.c)(17),n,r,i,a;if(t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,listStyle:a,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a),(a===void 0?`unordered`:a)===`ordered`){let e;t[5]===r?e=t[6]:(e=(0,u.clsx)(E.text,Ue[`elm-list`],Ue.numbered,r),t[5]=r,t[6]=e);let a;return t[7]!==n||t[8]!==i||t[9]!==e?(a=(0,_.jsx)(`ol`,{className:e,...i,children:n}),t[7]=n,t[8]=i,t[9]=e,t[10]=a):a=t[10],a}let o;t[11]===r?o=t[12]:(o=(0,u.clsx)(E.text,Ue[`elm-list`],Ue.bulleted,r),t[11]=r,t[12]=o);let s;return t[13]!==n||t[14]!==i||t[15]!==o?(s=(0,_.jsx)(`ul`,{className:o,...i,children:n}),t[13]=n,t[14]=i,t[15]=o,t[16]=s):s=t[16],s},Ge={"elm-paragraph":`_elm-paragraph_y4o6n_1`},Ke=e=>{let t=(0,c.c)(18),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({className:i,style:s,color:a,backgroundColor:n,children:r,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let l;t[7]===i?l=t[8]:(l=(0,u.clsx)(Ge[`elm-paragraph`],E.text,i),t[7]=i,t[8]=l);let d;t[9]!==n||t[10]!==a||t[11]!==s?(d={...s,"--elmethis-scoped-color":a,"--elmethis-scoped-background-color":n},t[9]=n,t[10]=a,t[11]=s,t[12]=d):d=t[12];let f=d,p;return t[13]!==r||t[14]!==o||t[15]!==l||t[16]!==f?(p=(0,_.jsx)(`p`,{className:l,style:f,...o,children:r}),t[13]=r,t[14]=o,t[15]=l,t[16]=f,t[17]=p):p=t[17],p},qe={"elm-table-frame":`_elm-table-frame_1b7h2_3`,"elm-table-scroll":`_elm-table-scroll_1b7h2_49`,"elm-table":`_elm-table_1b7h2_3`,caption:`_caption_1b7h2_67`,"caption-inner":`_caption-inner_1b7h2_77`,spacing:`_spacing_1b7h2_84`,"sticky-row-header":`_sticky-row-header_1b7h2_95`},Je=(0,l.createContext)({value:!1}),Ye=(0,l.createContext)(`body`),Xe=()=>{let e=(0,c.c)(5),t=(0,l.useRef)(null),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={canScroll:!1,atStart:!0,atEnd:!0},e[0]=n):n=e[0];let[r,i]=(0,l.useState)(n),a,o;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(a=()=>{let e=t.current;if(e==null)return;let n=()=>{let t=e.scrollWidth-e.clientWidth,n={canScroll:t>1,atStart:e.scrollLeft<=1,atEnd:e.scrollLeft>=t-1};i(e=>e.canScroll===n.canScroll&&e.atStart===n.atStart&&e.atEnd===n.atEnd?e:n)};n(),e.addEventListener(`scroll`,n,{passive:!0});let r=new ResizeObserver(n);return r.observe(e),()=>{e.removeEventListener(`scroll`,n),r.disconnect()}},o=[],e[1]=a,e[2]=o):(a=e[1],o=e[2]),(0,l.useEffect)(a,o);let s;return e[3]===r?s=e[4]:(s={ref:t,...r},e[3]=r,e[4]=s),s},Ze=e=>{let t=(0,c.c)(31),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:i,caption:n,hasRowHeader:o,children:r,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=o===void 0?!1:o,l;t[6]===s?l=t[7]:(l={value:s},t[6]=s,t[7]=l);let d=l,{ref:f,canScroll:p,atStart:m,atEnd:h}=Xe(),g=p&&!m?``:void 0,v=p&&!h?``:void 0,y=p?0:void 0,b=p&&n!=null?`region`:void 0,x=p&&n!=null?n:void 0,S=s&&qe[`sticky-row-header`],C;t[8]!==i||t[9]!==S?(C=(0,u.clsx)(qe[`elm-table`],E.text,S,i),t[8]=i,t[9]=S,t[10]=C):C=t[10];let w;t[11]===n?w=t[12]:(w=n&&(0,_.jsx)(`caption`,{children:(0,_.jsxs)(`span`,{className:qe.caption,children:[(0,_.jsx)(`span`,{className:qe.spacing}),(0,_.jsx)(`span`,{className:qe[`caption-inner`],children:(0,_.jsx)(B,{children:n})}),(0,_.jsx)(`span`,{className:qe.spacing})]})}),t[11]=n,t[12]=w);let T;t[13]!==r||t[14]!==a||t[15]!==w||t[16]!==C?(T=(0,_.jsxs)(`table`,{className:C,...a,children:[w,r]}),t[13]=r,t[14]=a,t[15]=w,t[16]=C,t[17]=T):T=t[17];let D;t[18]!==f||t[19]!==T||t[20]!==y||t[21]!==b||t[22]!==x?(D=(0,_.jsx)(`div`,{ref:f,className:qe[`elm-table-scroll`],tabIndex:y,role:b,"aria-label":x,children:T}),t[18]=f,t[19]=T,t[20]=y,t[21]=b,t[22]=x,t[23]=D):D=t[23];let O;t[24]!==D||t[25]!==g||t[26]!==v?(O=(0,_.jsx)(`div`,{className:qe[`elm-table-frame`],"data-overflow-start":g,"data-overflow-end":v,children:D}),t[24]=D,t[25]=g,t[26]=v,t[27]=O):O=t[27];let k;return t[28]!==d||t[29]!==O?(k=(0,_.jsx)(Je.Provider,{value:d,children:O}),t[28]=d,t[29]=O,t[30]=k):k=t[30],k},Qe=e=>{let t=(0,c.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=(0,_.jsx)(Ye.Provider,{value:`body`,children:(0,_.jsx)(`tbody`,{...r,children:n})}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i},$e={"elm-table-cell":`_elm-table-cell_1a21f_1`,td:`_td_1a21f_20`,th:`_th_1a21f_25`},et=e=>{let t=(0,c.c)(16),n,r,i,a,o,s,d,f;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],d=t[7],f=t[8]):({className:r,style:s,isHeader:d,columnIndex:i,text:f,scope:o,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=d,t[8]=f);let p=d===void 0?!1:d,m=(0,l.useContext)(Ye),h=(0,l.useContext)(Je),g=m===`head`,v=!g&&!p&&i===0&&h.value,y=g||p||v,b=o??(g?`col`:v?`row`:void 0),x=f??n,S;return t[9]!==r||t[10]!==x||t[11]!==y||t[12]!==a||t[13]!==b||t[14]!==s?(S=y?(0,_.jsx)(`th`,{className:(0,u.clsx)($e[`elm-table-cell`],$e.th,r),style:s,scope:b,...a,children:x}):(0,_.jsx)(`td`,{className:(0,u.clsx)($e[`elm-table-cell`],$e.td,r),style:s,...a,children:x}),t[9]=r,t[10]=x,t[11]=y,t[12]=a,t[13]=b,t[14]=s,t[15]=S):S=t[15],S},tt={"elm-table-header":`_elm-table-header_jhft7_1`},nt=e=>{let t=(0,c.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=(0,u.clsx)(tt[`elm-table-header`],r),t[4]=r,t[5]=a);let o;return t[6]!==n||t[7]!==i||t[8]!==a?(o=(0,_.jsx)(Ye.Provider,{value:`head`,children:(0,_.jsx)(`thead`,{className:a,...i,children:n})}),t[6]=n,t[7]=i,t[8]=a,t[9]=o):o=t[9],o},rt={"elm-table-row":`_elm-table-row_mkm0q_1`},it=e=>{let t=(0,c.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=(0,u.clsx)(rt[`elm-table-row`],r),t[4]=r,t[5]=a);let o;return t[6]!==n||t[7]!==i||t[8]!==a?(o=(0,_.jsx)(`tr`,{className:a,...i,children:n}),t[6]=n,t[7]=i,t[8]=a,t[9]=o):o=t[9],o},at={"elm-unsupported-block":`_elm-unsupported-block_8bkk1_1`,message:`_message_8bkk1_13`,icon:`_icon_8bkk1_20`,details:`_details_8bkk1_24`},ot=e=>{let t=(0,c.c)(13),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,details:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=(0,u.clsx)(at[`elm-unsupported-block`],n),t[4]=n,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,_.jsxs)(`div`,{className:at.message,children:[(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.25rem`,height:`1.25rem`,className:at.icon,children:(0,_.jsx)(`path`,{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z`})}),(0,_.jsx)(B,{children:`UNSUPPORTED BLOCK`})]}),t[6]=o):o=t[6];let s;t[7]===r?s=t[8]:(s=r&&(0,_.jsx)(`div`,{className:at.details,children:(0,_.jsx)(B,{children:r})}),t[7]=r,t[8]=s);let l;return t[9]!==i||t[10]!==a||t[11]!==s?(l=(0,_.jsxs)(`div`,{className:a,...i,children:[o,s]}),t[9]=i,t[10]=a,t[11]=s,t[12]=l):l=t[12],l},st={start:`flex-start`,end:`flex-end`,center:`center`,spaceBetween:`space-between`,spaceAround:`space-around`,spaceEvenly:`space-evenly`,stretch:`stretch`},ct={start:`flex-start`,end:`flex-end`,center:`center`,stretch:`stretch`};function lt(e,t){return Array.isArray(e)?e.map((e,n)=>{if(e&&typeof e==`object`&&`id`in e){let r=e;return(0,_.jsx)(l.Fragment,{children:t(r.id,r.basePath)},`${r.id}-${n}`)}return typeof e==`string`?(0,_.jsx)(l.Fragment,{children:t(e)},`${e}-${n}`):null}):null}function ut(e){return Array.isArray(e)?e.flatMap(e=>{if(typeof e==`string`)return[{id:e}];if(e&&typeof e==`object`&&`id`in e){let t=e;return[{id:t.id,basePath:t.basePath}]}return[]}):[]}function dt(e){return Array.isArray(e)?e.map(e=>typeof e==`string`?e:e&&typeof e==`object`&&`id`in e?e.id:null).filter(e=>typeof e==`string`):[]}var ft=`https://a2ui.org/specification/v0_9/basic_catalog.json`,pt={boxSizing:`content-box`,paddingBlock:`0.25rem`,width:`100%`,display:`flex`,flexDirection:`row`,gap:`0.25rem`,justifyContent:`space-around`,overflowX:`auto`},mt=[(0,p.createComponentImplementation)(h.RichTextApi,({props:e})=>{let t=e.decoration??[];return t.includes(`katex`)?(0,_.jsx)(O,{expression:e.text,block:!1}):(0,_.jsx)(B,{bold:t.includes(`bold`),italic:t.includes(`italic`),underline:t.includes(`underline`),strikethrough:t.includes(`strikethrough`),code:t.includes(`code`),color:e.color,ruby:e.ruby,children:e.text})}),(0,p.createComponentImplementation)(h.LinkTextApi,({props:e})=>(0,_.jsx)(B,{href:e.href,favicon:e.favicon,children:e.text})),(0,p.createComponentImplementation)(h.IconApi,({props:e})=>(0,_.jsx)(z,{src:e.src,alt:e.alt})),(0,p.createComponentImplementation)(h.ColumnApi,({props:e,buildChild:t})=>(0,_.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,justifyContent:st[e.justify??`start`],alignItems:ct[e.align??`stretch`],flex:e.widthRatio==null?void 0:String(e.widthRatio),boxSizing:`border-box`,padding:`0.125rem`,gap:`var(--elmethis-stack-gap)`},children:lt(e.children,t)})),(0,p.createComponentImplementation)(h.ColumnListApi,({props:e,buildChild:t})=>(0,_.jsx)(`div`,{style:pt,children:lt(e.children,t)})),(0,p.createComponentImplementation)(h.HeadingApi,({props:e,buildChild:t})=>(0,_.jsx)(He,{level:e.level,children:lt(e.children,t)})),(0,p.createComponentImplementation)(h.ParagraphApi,({props:e,buildChild:t})=>(0,_.jsx)(Ke,{color:e.color,backgroundColor:e.backgroundColor,children:lt(e.children,t)})),(0,p.createComponentImplementation)(h.ListApi,({props:e,buildChild:t})=>(0,_.jsx)(We,{listStyle:e.style??`unordered`,children:ut(e.children).map(({id:e,basePath:n},r)=>(0,_.jsx)(`li`,{children:t(e,n)},`${e}:${r}`))})),(0,p.createComponentImplementation)(h.ListItemApi,({props:e,buildChild:t})=>(0,_.jsx)(_.Fragment,{children:lt(e.children,t)})),(0,p.createComponentImplementation)(h.BlockQuoteApi,({props:e,buildChild:t})=>(0,_.jsx)(ke,{cite:e.cite,children:lt(e.children,t)})),(0,p.createComponentImplementation)(h.CalloutApi,({props:e,buildChild:t})=>(0,_.jsx)(Me,{type:e.type,children:lt(e.children,t)})),(0,p.createComponentImplementation)(h.NotionCalloutApi,({props:e,buildChild:t})=>(0,_.jsx)(Pe,{icon:e.icon,color:e.color,variant:e.variant,children:lt(e.children,t)})),(0,p.createComponentImplementation)(h.DividerApi,()=>(0,_.jsx)(Ie,{})),(0,p.createComponentImplementation)(h.ToggleApi,({props:e,buildChild:t})=>(0,_.jsx)(Ee,{summary:lt(e.summary,t),children:lt(e.children,t)})),(0,p.createComponentImplementation)(h.BookmarkApi,({props:e})=>(0,_.jsx)(me,{url:e.url,title:e.title,description:e.description,image:e.image})),(0,p.createComponentImplementation)(h.FileApi,({props:e})=>(0,_.jsx)(de,{src:e.src,name:e.name})),(0,p.createComponentImplementation)(h.AudioApi,({props:e})=>(0,_.jsx)(Z,{src:e.src,title:e.title,artist:e.artist,seekStep:e.seekStep,loop:e.loop,autoPlay:e.autoPlay})),(0,p.createComponentImplementation)(h.VideoApi,({props:e})=>(0,_.jsxs)(`figure`,{style:{margin:0},children:[(0,_.jsx)(`video`,{src:e.src,poster:e.poster,title:e.title,width:e.width,height:e.height,loop:e.loop,autoPlay:e.autoPlay,muted:e.muted,controls:!0,style:{maxWidth:`100%`,height:`auto`}}),e.caption?(0,_.jsx)(`figcaption`,{children:e.caption}):null]})),(0,p.createComponentImplementation)(h.BlockImageApi,({props:e})=>(0,_.jsx)(se,{src:e.src,alt:e.alt,width:e.width,height:e.height,srcSet:e.srcset,sizes:e.sizes,caption:e.caption,enableModal:!0})),(0,p.createComponentImplementation)(h.HtmlApi,({props:e})=>(0,_.jsx)(J,{html:e.html,autoHeight:e.autoHeight})),(0,p.createComponentImplementation)(h.CodeBlockApi,({props:e})=>(0,_.jsx)(K,{code:e.code,language:e.language,caption:e.caption})),(0,p.createComponentImplementation)(h.KatexApi,({props:e})=>(0,_.jsx)(O,{expression:e.expression,block:!0})),(0,p.createComponentImplementation)(h.MermaidApi,({props:e})=>(0,_.jsx)(K,{code:e.code,language:`mermaid`})),(0,p.createComponentImplementation)(h.ContentTabApi,()=>null),(0,p.createComponentImplementation)(h.ContentTabsApi,({props:e,buildChild:t,context:n})=>{let r=dt(e.children).map(e=>{let t=n.surfaceComponents.get(e);return{tabId:e,labelIds:dt(t?.properties.label),contentIds:dt(t?.properties.content)}});return(0,_.jsxs)(xe,{defaultValue:`0`,children:[(0,_.jsx)(Se,{children:r.map(({tabId:e,labelIds:n},r)=>(0,_.jsx)(Ce,{value:String(r),children:n.map((e,n)=>(0,_.jsx)(l.Fragment,{children:t(e,`/`)},`${e}:${n}`))},e))}),r.map(({tabId:e,contentIds:n},r)=>(0,_.jsx)(we,{value:String(r),children:n.map((e,n)=>(0,_.jsx)(l.Fragment,{children:t(e,`/`)},`${e}:${n}`))},e))]})}),(0,p.createComponentImplementation)(h.TableApi,({props:e,buildChild:t})=>(0,_.jsxs)(Ze,{caption:e.caption?String(e.caption):void 0,hasRowHeader:e.hasRowHeader,children:[e.header&&e.header.length>0&&(0,_.jsx)(nt,{children:lt(e.header,t)}),(0,_.jsx)(Qe,{children:lt(e.body,t)})]})),(0,p.createComponentImplementation)(h.TableRowApi,({props:e,buildChild:t})=>(0,_.jsx)(it,{children:lt(e.children,t)})),(0,p.createComponentImplementation)(h.TableCellApi,({props:e,buildChild:t})=>(0,_.jsx)(et,{isHeader:e.isHeader,children:lt(e.children,t)})),(0,p.createComponentImplementation)(h.UnsupportedApi,({props:e})=>(0,_.jsx)(ot,{details:e.details?`Unsupported component type: ${String(e.details)}`:`Unsupported component type`}))],ht=[...p.basicCatalog.components.values(),...mt],gt=Array.from(p.basicCatalog.functions.values()),_t=new m.Catalog(ft,ht,gt);async function vt(e,{signal:t,onMessage:n,onError:r}){if(t?.aborted)return;let i=e.getReader(),a=new TextDecoder,o=``,s=()=>{i.cancel().catch(()=>{})};t?.addEventListener(`abort`,s,{once:!0});let c=e=>{let t=e.trim();if(t)try{n(JSON.parse(t))}catch(e){r?.(e,t)}};try{for(;;){let{done:e,value:t}=await i.read();if(e)break;o+=a.decode(t,{stream:!0});let n=o.split(`
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));require(`@elmethis/core/tokens.css`);let c=require(`react/compiler-runtime`),l=require(`react`);l=s(l);let u=require(`clsx`);u=s(u);let d=require(`marked`),f=require(`dompurify`);f=s(f);let p=require(`@a2ui/react/v0_9`),m=require(`@a2ui/web_core/v0_9`),h=require(`@elmethis/core`),g=require(`katex`),_=require(`react/jsx-runtime`),v=require(`@mdi/js`),y=require(`shiki`),b=require(`@46ki75/ikuma-theme/dark`);b=s(b);let x=require(`@46ki75/ikuma-theme/light`);x=s(x);let S=require(`usehooks-ts`),C=require(`@radix-ui/react-use-controllable-state`),w=require(`@formkit/auto-animate/react`);require(`@formkit/auto-animate`);let T=require(`es-toolkit`);var E={text:`_text_zme4t_1`},D={"elm-katex":`_elm-katex_e25qs_5`},O=e=>{let t=(0,c.c)(17),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,expression:i,block:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=n??!1,s;t[5]!==i||t[6]!==o?(s=(0,g.renderToString)(i,{displayMode:o,output:`mathml`}),t[5]=i,t[6]=o,t[7]=s):s=t[7];let l=s,d=n?D[`elm-katex`]:void 0,f;t[8]!==r||t[9]!==d?(f=(0,u.clsx)(E.text,d,r),t[8]=r,t[9]=d,t[10]=f):f=t[10];let p;t[11]===l?p=t[12]:(p={__html:l},t[11]=l,t[12]=p);let m;return t[13]!==a||t[14]!==f||t[15]!==p?(m=(0,_.jsx)(`div`,{className:f,dangerouslySetInnerHTML:p,...a}),t[13]=a,t[14]=f,t[15]=p,t[16]=m):m=t[16],m},k={"elm-code-block":`_elm-code-block_6itf9_1`,"language-icon":`_language-icon_6itf9_16`,caption:`_caption_6itf9_21`,"copy-icon":`_copy-icon_6itf9_28`,divider:`_divider_6itf9_32`,code:`_code_6itf9_39`},A=e=>e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase()),j=(e,t,n)=>t===`id`?`${e}-${n}`:e.replace(/url\(#([^)]+)\)/g,`url(#$1-${n})`),M=(e,t,n)=>{let r={key:n};for(let[n,i]of Object.entries(e.attrs??{}))r[A(n)]=j(i,n,t);e.style&&(r.style=e.style);let i=e.children?.map((e,n)=>M(e,t,n));return(0,l.createElement)(e.tag,r,i)},N=e=>{let t=(0,c.c)(10),{icon:n,size:r,className:i,style:a}=e,o=r===void 0?24:r,s=(0,l.useId)(),u;if(t[0]!==i||t[1]!==n.attrs||t[2]!==n.children||t[3]!==n.viewBox||t[4]!==o||t[5]!==a||t[6]!==s){let e=s.replace(/:/g,``),r;if(t[8]!==n.attrs){r={};for(let[e,t]of Object.entries(n.attrs??{}))r[A(e)]=t;t[8]=n.attrs,t[9]=r}else r=t[9];u=(0,_.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:n.viewBox,width:o,height:o,className:i,style:a,...r,children:n.children.map((t,n)=>M(t,e,n))}),t[0]=i,t[1]=n.attrs,t[2]=n.children,t[3]=n.viewBox,t[4]=o,t[5]=a,t[6]=s,t[7]=u}else u=t[7];return u},P={"elm-mdi-icon":`_elm-mdi-icon_ihskx_1`},F=e=>{let t=(0,c.c)(24),n,r,i,a,o,s,l,d;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],d=t[8]):({className:n,style:s,d:r,size:l,color:d,lightColor:a,darkColor:i,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=d);let f=l===void 0?`1em`:l,p=d===void 0?`currentColor`:d,m;t[9]===n?m=t[10]:(m=(0,u.clsx)(P[`elm-mdi-icon`],n),t[9]=n,t[10]=m);let h=a??p,g=i??p,v;t[11]!==s||t[12]!==h||t[13]!==g?(v={"--elmethis-scoped-color":h,"--dark-color":g,...s},t[11]=s,t[12]=h,t[13]=g,t[14]=v):v=t[14];let y=v,b;t[15]===r?b=t[16]:(b=(0,_.jsx)(`path`,{d:r}),t[15]=r,t[16]=b);let x;return t[17]!==p||t[18]!==o||t[19]!==f||t[20]!==m||t[21]!==y||t[22]!==b?(x=(0,_.jsx)(`svg`,{className:m,style:y,width:f,height:f,viewBox:`0 0 24 24`,fill:p,xmlns:`http://www.w3.org/2000/svg`,focusable:`false`,role:`img`,...o,children:b}),t[17]=p,t[18]=o,t[19]=f,t[20]=m,t[21]=y,t[22]=b,t[23]=x):x=t[23],x},I=e=>{let t=(0,c.c)(7),{className:n,style:r,size:i,language:a}=e,o=i===void 0?24:i,s=(0,h.normalizeLanguage)(a);if(s===`file`){let e=String(o),n;return t[0]===e?n=t[1]:(n=(0,_.jsx)(F,{d:v.mdiCodeTags,size:e}),t[0]=e,t[1]=n),n}let l=h.languageIcons[s],u;return t[2]!==n||t[3]!==o||t[4]!==r||t[5]!==l?(u=(0,_.jsx)(N,{icon:l,size:o,className:n,style:r}),t[2]=n,t[3]=o,t[4]=r,t[5]=l,t[6]=u):u=t[6],u},L={"elm-inline-text":`_elm-inline-text_uf3sg_1`,code:`_code_uf3sg_13`,kbd:`_kbd_uf3sg_25`,link:`_link_uf3sg_58`,ogp:`_ogp_uf3sg_94`,"ogp-text":`_ogp-text_uf3sg_104`,"ogp-title":`_ogp-title_uf3sg_109`,"ogp-description":`_ogp-description_uf3sg_115`},R={"elm-inline-icon":`_elm-inline-icon_1qs0i_1`},z=e=>{let t=(0,c.c)(19),n,r,i,a,o,s,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7]):({className:r,src:o,alt:n,width:l,height:i,size:s,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l);let d=s===void 0?16:s,f;t[8]===r?f=t[9]:(f=(0,u.clsx)(R[`elm-inline-icon`],r),t[8]=r,t[9]=f);let p=l??d,m=i??d,h;t[10]!==n||t[11]!==o||t[12]!==p||t[13]!==m?(h=(0,_.jsx)(`img`,{src:o,alt:n,className:R[`elm-inline-icon`],width:p,height:m}),t[10]=n,t[11]=o,t[12]=p,t[13]=m,t[14]=h):h=t[14];let g;return t[15]!==a||t[16]!==f||t[17]!==h?(g=(0,_.jsx)(`span`,{className:f,...a,children:h}),t[15]=a,t[16]=f,t[17]=h,t[18]=g):g=t[18],g},B=e=>{let t=(0,c.c)(54),n,r,i,a,o,s,l,d,f,p,m,h,g,v,y,b;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],d=t[8],f=t[9],p=t[10],m=t[11],h=t[12],g=t[13],v=t[14],y=t[15],b=t[16]):({className:i,style:f,color:a,size:p,backgroundColor:n,bold:m,italic:h,underline:g,strikethrough:v,code:y,kbd:b,ruby:d,href:s,favicon:o,children:r,...l}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=d,t[9]=f,t[10]=p,t[11]=m,t[12]=h,t[13]=g,t[14]=v,t[15]=y,t[16]=b);let x=p===void 0?`1em`:p,S=m===void 0?!1:m,C=h===void 0?!1:h,w=g===void 0?!1:g,T=v===void 0?!1:v,D=y===void 0?!1:y,O=b===void 0?!1:b,k=r;if(s){let e;t[17]===o?e=t[18]:(e=o&&(0,_.jsx)(z,{src:o,alt:`favicon`}),t[17]=o,t[18]=e);let n;t[19]!==s||t[20]!==e||t[21]!==k?(n=(0,_.jsxs)(`a`,{className:L.link,href:s,target:`_blank`,rel:`noopener noreferrer`,children:[e,k]}),t[19]=s,t[20]=e,t[21]=k,t[22]=n):n=t[22],k=n}if(O){let e;t[23]===k?e=t[24]:(e=(0,_.jsx)(`kbd`,{className:L.kbd,children:k}),t[23]=k,t[24]=e),k=e}if(T){let e;t[25]===k?e=t[26]:(e=(0,_.jsx)(`del`,{children:k}),t[25]=k,t[26]=e),k=e}if(C){let e;t[27]===k?e=t[28]:(e=(0,_.jsx)(`em`,{children:k}),t[27]=k,t[28]=e),k=e}if(w){let e;t[29]===k?e=t[30]:(e=(0,_.jsx)(`ins`,{children:k}),t[29]=k,t[30]=e),k=e}if(S){let e;t[31]===k?e=t[32]:(e=(0,_.jsx)(`strong`,{children:k}),t[31]=k,t[32]=e),k=e}if(D){let e;t[33]===k?e=t[34]:(e=(0,_.jsx)(`code`,{className:L.code,children:k}),t[33]=k,t[34]=e),k=e}if(d){let e;t[35]===k?e=t[36]:(e=(0,_.jsx)(`span`,{children:k}),t[35]=k,t[36]=e);let n;t[37]===d?n=t[38]:(n=(0,_.jsx)(`rt`,{children:d}),t[37]=d,t[38]=n);let r;t[39]!==e||t[40]!==n?(r=(0,_.jsxs)(`ruby`,{className:L[`elm-inline-text`],children:[e,n]}),t[39]=e,t[40]=n,t[41]=r):r=t[41],k=r}let A;t[42]===i?A=t[43]:(A=(0,u.clsx)(L[`elm-inline-text`],E.text,i),t[42]=i,t[43]=A);let j;t[44]!==n||t[45]!==a||t[46]!==x||t[47]!==f?(j={...f,"--elmethis-scoped-color":a,"--elmethis-scoped-font-size":x,"--elmethis-scoped-background-color":n},t[44]=n,t[45]=a,t[46]=x,t[47]=f,t[48]=j):j=t[48];let M=j,N;return t[49]!==l||t[50]!==M||t[51]!==A||t[52]!==k?(N=(0,_.jsx)(`span`,{className:A,style:M,...l,children:k}),t[49]=l,t[50]=M,t[51]=A,t[52]=k,t[53]=N):N=t[53],N},V={"elm-shiki-highlighter":`_elm-shiki-highlighter_j5tas_1`},H=e=>{let t=(0,c.c)(17),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,code:r,language:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?`txt`:a,[s,d]=(0,l.useState)(``),f,p;t[5]!==r||t[6]!==o?(f=()=>{let e=!0;return(async()=>{if(!r){e&&d(``);return}try{let t=await(0,y.codeToHtml)(r,{lang:o,themes:{dark:b.default,light:x.default},defaultColor:!1,colorReplacements:{"#ffffff":`transparent`,"#121212":`transparent`}});e&&d(t)}catch{e&&d(`<pre>${r.replace(/</g,`<`)}</pre>`)}})(),()=>{e=!1}},p=[r,o],t[5]=r,t[6]=o,t[7]=f,t[8]=p):(f=t[7],p=t[8]),(0,l.useEffect)(f,p);let m;t[9]===n?m=t[10]:(m=(0,u.clsx)(V[`elm-shiki-highlighter`],n),t[9]=n,t[10]=m);let h;t[11]===s?h=t[12]:(h={__html:s},t[11]=s,t[12]=h);let g;return t[13]!==i||t[14]!==m||t[15]!==h?(g=(0,_.jsx)(`pre`,{className:m,dangerouslySetInnerHTML:h,...i}),t[13]=i,t[14]=m,t[15]=h,t[16]=g):g=t[16],g},U={"use-clipboard":`_use-clipboard_mb0qt_1`,"use-clipboard-icon-copied":`_use-clipboard-icon-copied_mb0qt_15`},W=e=>{let t=(0,c.c)(14),[n,r]=(0,l.useState)(!1),[,i]=(0,S.useCopyToClipboard)(),a=(0,l.useRef)(void 0),o=(0,l.useRef)(e),s;t[0]===e?s=t[1]:(s=()=>{o.current=e},t[0]=e,t[1]=s),(0,l.useEffect)(s);let d,f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=()=>()=>{a.current!==void 0&&clearTimeout(a.current)},f=[],t[2]=d,t[3]=f):(d=t[2],f=t[3]),(0,l.useEffect)(d,f);let p;t[4]===i?p=t[5]:(p=async()=>{let{content:e,delay:t}=o.current;typeof e==`string`?await i(e):await window.navigator.clipboard.write(e.map(G)),a.current!==void 0&&clearTimeout(a.current),r(!0),a.current=setTimeout(()=>{r(!1),a.current=void 0},t??1500)},t[4]=i,t[5]=p);let m=p,h;t[6]!==n||t[7]!==m||t[8]!==e.className||t[9]!==e.style?(h=()=>(0,_.jsx)(`span`,{className:(0,u.clsx)(U[`use-clipboard`],e.className),style:e.style,onClick:m,children:(0,_.jsx)(F,{className:(0,u.clsx)(n&&U[`use-clipboard-icon-copied`]),d:n?v.mdiClipboardCheckOutline:v.mdiClipboardOutline,size:`1.25rem`})}),t[6]=n,t[7]=m,t[8]=e.className,t[9]=e.style,t[10]=h):h=t[10];let g=h,y;return t[11]!==g||t[12]!==m?(y={CopyButton:g,copy:m},t[11]=g,t[12]=m,t[13]=y):y=t[13],y};function G(e){return new ClipboardItem(e)}var K=e=>{let t=(0,c.c)(29),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({className:i,code:a,language:s,caption:n,children:r,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let l=s===void 0?`txt`:s,d;t[7]===a?d=t[8]:(d={content:a},t[7]=a,t[8]=d);let{CopyButton:f}=W(d),p;t[9]===i?p=t[10]:(p=(0,u.clsx)(k[`elm-code-block`],i),t[9]=i,t[10]=p);let m;t[11]===l?m=t[12]:(m=(0,_.jsx)(`span`,{className:k[`language-icon`],children:(0,_.jsx)(I,{language:l})}),t[11]=l,t[12]=m);let h=n||l,g;t[13]!==r||t[14]!==h?(g=(0,_.jsx)(`span`,{className:k.caption,children:(0,_.jsxs)(B,{children:[h,r]})}),t[13]=r,t[14]=h,t[15]=g):g=t[15];let v;t[16]===f?v=t[17]:(v=(0,_.jsx)(`div`,{className:k[`copy-icon`],children:(0,_.jsx)(f,{})}),t[16]=f,t[17]=v);let y;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,_.jsx)(`hr`,{className:k.divider}),t[18]=y):y=t[18];let b;t[19]!==a||t[20]!==l?(b=(0,_.jsx)(`div`,{className:k.code,children:(0,_.jsx)(H,{code:a,language:l})}),t[19]=a,t[20]=l,t[21]=b):b=t[21];let x;return t[22]!==o||t[23]!==p||t[24]!==m||t[25]!==g||t[26]!==v||t[27]!==b?(x=(0,_.jsxs)(`figure`,{className:p,...o,children:[m,g,v,y,b]}),t[22]=o,t[23]=p,t[24]=m,t[25]=g,t[26]=v,t[27]=b,t[28]=x):x=t[28],x},q={"elm-html":`_elm-html_339tp_1`},J=e=>{let t=(0,c.c)(48),n,r,i,a,o,s,d,f,p,m;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],d=t[7],f=t[8],p=t[9],m=t[10]):({className:n,html:i,src:s,sandbox:o,style:d,height:r,autoHeight:f,allowScripts:p,title:m,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=d,t[8]=f,t[9]=p,t[10]=m);let h=f===void 0?!0:f,g=p===void 0?!1:p,v=s!==void 0,y=(0,l.useRef)(null),[b,x]=(0,l.useState)(),S;t[11]!==h||t[12]!==i||t[13]!==s?(S={html:i,src:s,autoHeight:h},t[11]=h,t[12]=i,t[13]=s,t[14]=S):S=t[14];let[C,w]=(0,l.useState)(S);(C.html!==i||C.src!==s||C.autoHeight!==h)&&(w({html:i,src:s,autoHeight:h}),h&&x(void 0));let T;if(t[15]!==g||t[16]!==h||t[17]!==o||t[18]!==v){if(T=new Set(o?.split(/\s+/).filter(Boolean)??[]),g&&T.add(`allow-scripts`),[...T].some(Y))for(let e of T)e.toLowerCase()===`allow-same-origin`&&T.delete(e);else h&&!v&&T.add(`allow-same-origin`);t[15]=g,t[16]=h,t[17]=o,t[18]=v,t[19]=T}else T=t[19];let E;t[20]===T?E=t[21]:(E=[...T],t[20]=T,t[21]=E);let D=E.join(` `),O;t[22]!==h||t[23]!==v?(O=()=>{if(v)return;let e=y.current;if(!e)return;let t,n=()=>{let t=e.contentDocument?.documentElement;t&&x(t.scrollHeight)},r=()=>{let r=e.contentDocument?.documentElement;r&&(t?.disconnect(),t=new ResizeObserver(n),t.observe(r))},i=()=>{h&&(n(),r())};return e.addEventListener(`load`,i),()=>{e.removeEventListener(`load`,i),t?.disconnect()}},t[22]=h,t[23]=v,t[24]=O):O=t[24];let k;t[25]!==h||t[26]!==i||t[27]!==v?(k=[i,v,h],t[25]=h,t[26]=i,t[27]=v,t[28]=k):k=t[28],(0,l.useEffect)(O,k);let A=a,j;if(t[29]!==A){let{srcDoc:e,srcdoc:n,referrerPolicy:r,referrerpolicy:i,...a}=A;j=a,t[29]=A,t[30]=j}else j=t[30];let M=String(h),N=m??`Embedded HTML content`,P;t[31]===n?P=t[32]:(P=(0,u.clsx)(q[`elm-html`],n),t[31]=n,t[32]=P);let F;t[33]!==h||t[34]!==b||t[35]!==d?(F=h?{...d,height:b??d?.height}:d,t[33]=h,t[34]=b,t[35]=d,t[36]=F):F=t[36];let I=h?b===void 0&&d?.height===void 0?r:void 0:r,L=v?s:void 0,R=v?void 0:i??``,z=v?`no-referrer`:void 0,B;return t[37]!==D||t[38]!==j||t[39]!==P||t[40]!==F||t[41]!==I||t[42]!==L||t[43]!==R||t[44]!==z||t[45]!==M||t[46]!==N?(B=(0,_.jsx)(`iframe`,{ref:y,title:N,className:P,style:F,height:I,...j,src:L,srcDoc:R,sandbox:D,referrerPolicy:z},M),t[37]=D,t[38]=j,t[39]=P,t[40]=F,t[41]=I,t[42]=L,t[43]=R,t[44]=z,t[45]=M,t[46]=N,t[47]=B):B=t[47],B};function Y(e){return e.toLowerCase()===`allow-scripts`}var X={"elm-audio-player":`_elm-audio-player_1b0m3_1`,loading:`_loading_1b0m3_33`,header:`_header_1b0m3_39`,artwork:`_artwork_1b0m3_45`,"artwork-error":`_artwork-error_1b0m3_62`,meta:`_meta_1b0m3_68`,title:`_title_1b0m3_76`,artist:`_artist_1b0m3_86`,equalizer:`_equalizer_1b0m3_98`,playing:`_playing_1b0m3_115`,"elm-eq":`_elm-eq_1b0m3_1`,seekbar:`_seekbar_1b0m3_150`,track:`_track_1b0m3_166`,fill:`_fill_1b0m3_175`,thumb:`_thumb_1b0m3_188`,"hover-thumb":`_hover-thumb_1b0m3_208`,"elm-pulse":`_elm-pulse_1b0m3_1`,controls:`_controls_1b0m3_247`,time:`_time_1b0m3_253`,"time-current":`_time-current_1b0m3_263`,"time-total":`_time-total_1b0m3_268`,transport:`_transport_1b0m3_272`,"icon-button":`_icon-button_1b0m3_280`,"play-button":`_play-button_1b0m3_311`,volume:`_volume_1b0m3_358`,"volume-slider":`_volume-slider_1b0m3_365`,errored:`_errored_1b0m3_411`,"error-notice":`_error-notice_1b0m3_420`,"error-message":`_error-message_1b0m3_430`},ee=e=>{(!Number.isFinite(e)||e<0)&&(e=0);let t=Math.floor(e),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60,a=`${n>0?String(r).padStart(2,`0`):String(r)}:${String(i).padStart(2,`0`)}`;return n>0?`${n}:${a}`:a},te=e=>{let t=e.split(/[?#]/)[0].split(`/`).filter(Boolean).pop()??e;try{return decodeURIComponent(t)}catch{return t}},Z=e=>{let t=(0,c.c)(98),n,r,i,a,o,s,d,f,p,m;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],d=t[7],f=t[8],p=t[9],m=t[10]):({className:i,style:d,src:s,title:m,artist:n,errorMessage:f,seekStep:p,loop:a,autoPlay:r,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=d,t[8]=f,t[9]=p,t[10]=m);let h=f===void 0?`This audio couldn't be loaded.`:f,g=p===void 0?10:p,y=(0,l.useRef)(null),b=(0,l.useRef)(null),x=(0,l.useRef)(null),[S,C]=(0,l.useState)(!1),[w,T]=(0,l.useState)(!0),[E,D]=(0,l.useState)(!1),[O,k]=(0,l.useState)(0),[A,j]=(0,l.useState)(0),[M,N]=(0,l.useState)(1),[P,I]=(0,l.useState)(!1),[L,R]=(0,l.useState)(null),z=O>0?Math.min(1,A/O):0,B;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(B=()=>{if(x.current!=null)return;let e=()=>{let t=y.current;t&&j(t.currentTime),x.current=requestAnimationFrame(e)};x.current=requestAnimationFrame(e)},t[11]=B):B=t[11];let V=B,H;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(H=()=>{x.current!=null&&(cancelAnimationFrame(x.current),x.current=null)},t[12]=H):H=t[12];let U=H,W,G;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(W=()=>U,G=[U],t[13]=W,t[14]=G):(W=t[13],G=t[14]),(0,l.useEffect)(W,G);let K;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(K=()=>{let e=y.current;e&&(e.paused?e.play().catch(()=>C(!1)):e.pause())},t[15]=K):K=t[15];let q=K,J;t[16]===O?J=t[17]:(J=e=>{let t=y.current;if(!t||!Number.isFinite(O)||O<=0)return;let n=Math.max(0,Math.min(O,e));t.currentTime=n,j(n)},t[16]=O,t[17]=J);let Y=J,Z;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(Z=e=>{let t=b.current;if(!t)return 0;let n=t.getBoundingClientRect();return n.width===0?0:Math.max(0,Math.min(1,(e-n.left)/n.width))},t[18]=Z):Z=t[18];let Q=Z,ne;t[19]!==O||t[20]!==Y?(ne=e=>{e.currentTarget.setPointerCapture(e.pointerId),Y(Q(e.clientX)*O)},t[19]=O,t[20]=Y,t[21]=ne):ne=t[21];let re=ne,ie;t[22]!==O||t[23]!==Y?(ie=e=>{let t=Q(e.clientX);R(t),e.currentTarget.hasPointerCapture(e.pointerId)&&Y(t*O)},t[22]=O,t[23]=Y,t[24]=ie):ie=t[24];let ae=ie,oe;t[25]!==A||t[26]!==O||t[27]!==g||t[28]!==Y?(oe=e=>{e.key===`ArrowRight`?(e.preventDefault(),Y(A+g)):e.key===`ArrowLeft`?(e.preventDefault(),Y(A-g)):e.key===`Home`?(e.preventDefault(),Y(0)):e.key===`End`&&(e.preventDefault(),Y(O))},t[25]=A,t[26]=O,t[27]=g,t[28]=Y,t[29]=oe):oe=t[29];let se=oe,ce;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(ce=e=>{let t=y.current,n=Math.max(0,Math.min(1,e));t&&(t.volume=n,t.muted=n===0),N(n),I(n===0)},t[30]=ce):ce=t[30];let le=ce,ue;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(ue=()=>{let e=y.current;if(!e)return;let t=!e.muted;e.muted=t,I(t)},t[31]=ue):ue=t[31];let de=ue,fe=P||M===0?v.mdiVolumeOff:M<.34?v.mdiVolumeLow:M<.67?v.mdiVolumeMedium:v.mdiVolumeHigh,pe;t[32]!==s||t[33]!==m?(pe=m??te(s),t[32]=s,t[33]=m,t[34]=pe):pe=t[34];let me=pe,he=S&&X.playing,ge=w&&X.loading,_e=E&&X.errored,ve;t[35]!==i||t[36]!==he||t[37]!==ge||t[38]!==_e?(ve=(0,u.clsx)(X[`elm-audio-player`],he,ge,_e,i),t[35]=i,t[36]=he,t[37]=ge,t[38]=_e,t[39]=ve):ve=t[39];let ye=L??0,be;t[40]!==z||t[41]!==d||t[42]!==ye?(be={"--elmethis-scoped-progress":z,"--elmethis-scoped-hover":ye,...d},t[40]=z,t[41]=d,t[42]=ye,t[43]=be):be=t[43];let xe=be,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me;t[44]===Symbol.for(`react.memo_cache_sentinel`)?(Se=e=>{k(e.currentTarget.duration),N(e.currentTarget.volume),I(e.currentTarget.muted),T(!1)},Ce=e=>k(e.currentTarget.duration),we=()=>T(!1),Te=()=>T(!0),Ee=()=>T(!1),De=e=>{x.current??j(e.currentTarget.currentTime)},Oe=()=>{C(!0),V()},ke=()=>{C(!1),U()},Ae=()=>{C(!1),U()},je=e=>{N(e.currentTarget.volume),I(e.currentTarget.muted)},Me=()=>{D(!0),T(!1)},t[44]=Se,t[45]=Ce,t[46]=we,t[47]=Te,t[48]=Ee,t[49]=De,t[50]=Oe,t[51]=ke,t[52]=Ae,t[53]=je,t[54]=Me):(Se=t[44],Ce=t[45],we=t[46],Te=t[47],Ee=t[48],De=t[49],Oe=t[50],ke=t[51],Ae=t[52],je=t[53],Me=t[54]);let Ne;t[55]!==r||t[56]!==a||t[57]!==s?(Ne=(0,_.jsx)(`audio`,{ref:y,src:s,loop:a,autoPlay:r,preload:`metadata`,onLoadedMetadata:Se,onDurationChange:Ce,onCanPlay:we,onWaiting:Te,onPlaying:Ee,onTimeUpdate:De,onPlay:Oe,onPause:ke,onEnded:Ae,onVolumeChange:je,onError:Me}),t[55]=r,t[56]=a,t[57]=s,t[58]=Ne):Ne=t[58];let Pe=E&&X[`artwork-error`],Fe;t[59]===Pe?Fe=t[60]:(Fe=(0,u.clsx)(X.artwork,Pe),t[59]=Pe,t[60]=Fe);let Ie=E?v.mdiAlertCircleOutline:v.mdiMusicNote,Le;t[61]===Ie?Le=t[62]:(Le=(0,_.jsx)(F,{d:Ie,size:`1.25rem`}),t[61]=Ie,t[62]=Le);let Re;t[63]!==Fe||t[64]!==Le?(Re=(0,_.jsx)(`span`,{className:Fe,"aria-hidden":`true`,children:Le}),t[63]=Fe,t[64]=Le,t[65]=Re):Re=t[65];let ze;t[66]===me?ze=t[67]:(ze=(0,_.jsx)(`span`,{className:X.title,title:me,children:me}),t[66]=me,t[67]=ze);let Be;t[68]===n?Be=t[69]:(Be=n&&(0,_.jsx)(`span`,{className:X.artist,children:n}),t[68]=n,t[69]=Be);let Ve;t[70]!==ze||t[71]!==Be?(Ve=(0,_.jsxs)(`div`,{className:X.meta,children:[ze,Be]}),t[70]=ze,t[71]=Be,t[72]=Ve):Ve=t[72];let He;t[73]===Symbol.for(`react.memo_cache_sentinel`)?(He=(0,_.jsxs)(`span`,{className:X.equalizer,"aria-hidden":`true`,children:[(0,_.jsx)(`i`,{}),(0,_.jsx)(`i`,{}),(0,_.jsx)(`i`,{}),(0,_.jsx)(`i`,{})]}),t[73]=He):He=t[73];let Ue;t[74]!==Re||t[75]!==Ve?(Ue=(0,_.jsxs)(`div`,{className:X.header,children:[Re,Ve,He]}),t[74]=Re,t[75]=Ve,t[76]=Ue):Ue=t[76];let We;t[77]!==A||t[78]!==O||t[79]!==h||t[80]!==se||t[81]!==re||t[82]!==ae||t[83]!==E||t[84]!==P||t[85]!==S||t[86]!==g||t[87]!==Y||t[88]!==M||t[89]!==fe?(We=E?(0,_.jsxs)(`div`,{className:X[`error-notice`],role:`alert`,children:[(0,_.jsx)(F,{d:v.mdiAlertCircleOutline,size:`1.25rem`}),(0,_.jsx)(`span`,{className:X[`error-message`],children:h})]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`div`,{ref:b,className:X.seekbar,role:`slider`,tabIndex:0,"aria-label":`Seek`,"aria-valuemin":0,"aria-valuemax":Math.round(O)||0,"aria-valuenow":Math.round(A),"aria-valuetext":`${ee(A)} of ${ee(O)}`,onPointerDown:re,onPointerMove:ae,onPointerLeave:()=>R(null),onKeyDown:se,children:[(0,_.jsx)(`div`,{className:X.track,"aria-hidden":`true`,children:(0,_.jsx)(`div`,{className:X.fill})}),(0,_.jsx)(`span`,{className:X[`hover-thumb`],"aria-hidden":`true`}),(0,_.jsx)(`span`,{className:X.thumb,"aria-hidden":`true`})]}),(0,_.jsxs)(`div`,{className:X.controls,children:[(0,_.jsx)(`span`,{className:(0,u.clsx)(X.time,X[`time-current`]),children:ee(A)}),(0,_.jsxs)(`div`,{className:X.transport,children:[(0,_.jsx)(`button`,{type:`button`,className:X[`icon-button`],onClick:()=>Y(A-g),"aria-label":`Back ${g} seconds`,children:(0,_.jsx)(F,{d:v.mdiRewind10,size:`1.25rem`})}),(0,_.jsx)(`button`,{type:`button`,className:X[`play-button`],onClick:q,"aria-label":S?`Pause`:`Play`,"aria-pressed":S,children:(0,_.jsx)(F,{d:S?v.mdiPause:v.mdiPlay,size:`1.5rem`})}),(0,_.jsx)(`button`,{type:`button`,className:X[`icon-button`],onClick:()=>Y(A+g),"aria-label":`Forward ${g} seconds`,children:(0,_.jsx)(F,{d:v.mdiFastForward10,size:`1.25rem`})})]}),(0,_.jsxs)(`div`,{className:X.volume,children:[(0,_.jsx)(`button`,{type:`button`,className:X[`icon-button`],onClick:de,"aria-label":P?`Unmute`:`Mute`,"aria-pressed":P,children:(0,_.jsx)(F,{d:fe,size:`1.25rem`})}),(0,_.jsx)(`input`,{className:X[`volume-slider`],type:`range`,min:0,max:1,step:.01,value:P?0:M,"aria-label":`Volume`,onChange:e=>le(e.currentTarget.valueAsNumber),style:{"--elmethis-scoped-volume":P?0:M}})]}),(0,_.jsx)(`span`,{className:(0,u.clsx)(X.time,X[`time-total`]),children:ee(O)})]})]}),t[77]=A,t[78]=O,t[79]=h,t[80]=se,t[81]=re,t[82]=ae,t[83]=E,t[84]=P,t[85]=S,t[86]=g,t[87]=Y,t[88]=M,t[89]=fe,t[90]=We):We=t[90];let Ge;return t[91]!==o||t[92]!==ve||t[93]!==xe||t[94]!==Ne||t[95]!==Ue||t[96]!==We?(Ge=(0,_.jsxs)(`div`,{className:ve,style:xe,...o,children:[Ne,Ue,We]}),t[91]=o,t[92]=ve,t[93]=xe,t[94]=Ne,t[95]=Ue,t[96]=We,t[97]=Ge):Ge=t[97],Ge},Q={"elm-block-image":`_elm-block-image_1cmrf_1`,"image-container":`_image-container_1cmrf_11`,image:`_image_1cmrf_11`,fallback:`_fallback_1cmrf_35`,"caption-box":`_caption-box_1cmrf_45`,"caption-icon":`_caption-icon_1cmrf_55`},ne={"elm-rectangle-wave":`_elm-rectangle-wave_70gad_21`,wave:`_wave_70gad_1`},re=e=>{let t=(0,c.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=(0,u.clsx)(ne[`elm-rectangle-wave`],n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,_.jsx)(`div`,{"aria-hidden":`true`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a},ie={"elm-modal":`_elm-modal_12j1m_1`,shown:`_shown_12j1m_18`},ae=({className:e,isOpen:t,delay:n=200,style:r,onClose:i,children:a,...o})=>{let s=(0,l.useRef)(null),[c,d]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let e=s.current;if(e)if(t)e.showModal(),d(!0);else{if(!c)return;d(!1);let e=setTimeout(()=>{s.current?.close()},n);return()=>{clearTimeout(e)}}},[t,n]),(0,_.jsx)(`dialog`,{ref:s,className:(0,u.clsx)(ie[`elm-modal`],c&&ie.shown,e),onClick:e=>{s.current&&i?.(e.nativeEvent,s.current)},style:{"--elmethis-scoped-modal-delay":`${n}ms`,...r},closedby:`none`,...o,children:(0,_.jsx)(`div`,{onClick:e=>e.stopPropagation(),children:a})})},oe=e=>{let t=(0,c.c)(10),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let r=n.delay,[i,a]=(0,l.useState)(!1),o=(0,l.useRef)(i),s;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{o.current=!0,a(!0)},t[2]=s):s=t[2];let u=s,d;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(d=()=>{o.current=!1,a(!1)},t[3]=d):d=t[3];let f=d,p;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>{o.current=!o.current,a(o.current)},t[4]=p):p=t[4];let m=p,h=(0,l.useRef)(r),g;t[5]===r?g=t[6]:(g=()=>{h.current=r},t[5]=r,t[6]=g),(0,l.useEffect)(g);let v;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(v=function(e){let{children:t}=e;return(0,_.jsx)(ae,{isOpen:o.current,delay:h.current,onClose:f,children:t})},t[7]=v):v=t[7];let y=v,b;return t[8]===i?b=t[9]:(b={Modal:y,isOpen:i,show:u,hide:f,toggle:m},t[8]=i,t[9]=b),b},se=e=>{let t=(0,c.c)(59),n,r,i,a,o,s,d,f,p,m;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],d=t[7],f=t[8],p=t[9],m=t[10]):({className:i,src:f,alt:n,caption:r,width:m,height:o,srcSet:p,sizes:d,enableModal:a,...s}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=d,t[8]=f,t[9]=p,t[10]=m);let[h,g]=(0,l.useState)(!0),{Modal:y,isOpen:b,show:x,hide:S}=oe(),C;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(C=()=>{g(!1)},t[11]=C):C=t[11];let w=C,T;t[12]!==a||t[13]!==h||t[14]!==x?(T=()=>{(a??!0)&&!h&&x()},t[12]=a,t[13]=h,t[14]=x,t[15]=T):T=t[15];let E=T,D;t[16]===S?D=t[17]:(D=()=>{S()},t[16]=S,t[17]=D);let O=D,k=(0,l.useRef)(null),A;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(A=()=>{k.current?.decode().then(()=>g(!1),ce)},t[18]=A):A=t[18];let j;t[19]===f?j=t[20]:(j=[f],t[19]=f,t[20]=j),(0,l.useEffect)(A,j);let M,N,P,I,L,R;if(t[21]!==y||t[22]!==n||t[23]!==r||t[24]!==i||t[25]!==a||t[26]!==O||t[27]!==E||t[28]!==o||t[29]!==h||t[30]!==b||t[31]!==s||t[32]!==d||t[33]!==f||t[34]!==p||t[35]!==m){let e=e=>(0,_.jsx)(`img`,{ref:e?void 0:k,className:Q.image,src:f,alt:n??r??`Image`,srcSet:e?void 0:p,sizes:e?void 0:d,width:m,height:o,loading:e?`lazy`:void 0,fetchPriority:e?`low`:`auto`,onLoad:w,onClick:e?O:void 0,style:{"--elmethis-scoped-opacity":h?.01:1,"--elmethis-scoped-cursor":a??!0?b?`zoom-out`:`zoom-in`:`default`,"--elmethis-scoped-aspect-ratio":m&&o?`${m} / ${o}`:`auto`}});t[42]===i?I=t[43]:(I=(0,u.clsx)(Q[`elm-block-image`],i),t[42]=i,t[43]=I),L=s;let c=h?1:.01,l;t[44]===c?l=t[45]:(l={"--elmethis-scoped-opacity":c},t[44]=c,t[45]=l);let g;t[46]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,_.jsx)(`div`,{className:Q.fallback,children:(0,_.jsx)(re,{})}),t[46]=g):g=t[46],R=(0,_.jsxs)(`div`,{className:Q[`image-container`],style:l,onClick:E,children:[e(!1),g]}),t[47]!==r||t[48]!==h?(N=r&&(0,_.jsxs)(`figcaption`,{className:Q[`caption-box`],style:{"--elmethis-scoped-opacity":h?.01:1},children:[(0,_.jsx)(`span`,{className:Q[`caption-icon`],children:(0,_.jsx)(F,{d:v.mdiMessageImageOutline,size:`1.25rem`})}),(0,_.jsx)(B,{size:`1rem`,children:r})]}),t[47]=r,t[48]=h,t[49]=N):N=t[49],M=y,P=b&&e(!0),t[21]=y,t[22]=n,t[23]=r,t[24]=i,t[25]=a,t[26]=O,t[27]=E,t[28]=o,t[29]=h,t[30]=b,t[31]=s,t[32]=d,t[33]=f,t[34]=p,t[35]=m,t[36]=M,t[37]=N,t[38]=P,t[39]=I,t[40]=L,t[41]=R}else M=t[36],N=t[37],P=t[38],I=t[39],L=t[40],R=t[41];let z;t[50]!==M||t[51]!==P?(z=(0,_.jsx)(M,{children:P}),t[50]=M,t[51]=P,t[52]=z):z=t[52];let V;return t[53]!==N||t[54]!==z||t[55]!==I||t[56]!==L||t[57]!==R?(V=(0,_.jsxs)(`figure`,{className:I,...L,children:[R,N,z]}),t[53]=N,t[54]=z,t[55]=I,t[56]=L,t[57]=R,t[58]=V):V=t[58],V};function ce(){}var le={"elm-file":`_elm-file_aoaqq_1`,"file-size":`_file-size_aoaqq_12`,"download-icon":`_download-icon_aoaqq_17`};function ue(e){let t=e.split(/[?#]/)[0].split(`/`).filter(Boolean);return t.length>0?t[t.length-1]:null}var de=({className:e,name:t,src:n,filesize:r,...i})=>{let a=async()=>{let e;try{let r=await fetch(n);if(!r.ok)throw Error(`Failed to download file`);let i=await r.blob();e=document.createElement(`a`),e.href=URL.createObjectURL(i),e.download=t??ue(n)??`file`,e.click()}catch(e){console.error(`ERROR:`,e)}finally{e&&URL.revokeObjectURL(e.href)}};return(0,_.jsxs)(`div`,{className:(0,u.clsx)(le[`elm-file`],e),...i,children:[(0,_.jsx)(`div`,{children:(0,_.jsx)(F,{d:v.mdiFile,size:`1.25rem`})}),(0,_.jsx)(`div`,{children:(0,_.jsx)(B,{children:t??ue(n)})}),(0,_.jsx)(`div`,{className:le[`file-size`],children:(0,_.jsx)(B,{children:r})}),(0,_.jsx)(`div`,{className:le[`download-icon`],onClick:a,children:(0,_.jsx)(F,{d:v.mdiDownload,size:`1.25rem`})})]})},fe={"elm-bookmark":`_elm-bookmark_cbkg4_1`,container:`_container_cbkg4_23`,image:`_image_cbkg4_35`,content:`_content_cbkg4_55`,title:`_title_cbkg4_71`,description:`_description_cbkg4_75`,link:`_link_cbkg4_80`},pe={visibility:`hidden`,width:`0`},me=e=>{let t=(0,c.c)(40),n,r,i,a,o,s,d;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],d=t[7]):({className:n,title:s,url:d,image:a,description:r,favicon:i,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=d);let[f,p]=(0,l.useState)(!1),m;t[8]===n?m=t[9]:(m=(0,u.clsx)(fe[`elm-bookmark`],n),t[8]=n,t[9]=m);let h;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(h=()=>p(!0),t[10]=h):h=t[10];let g;t[11]!==a||t[12]!==f?(g=f||a==null?pe:{},t[11]=a,t[12]=f,t[13]=g):g=t[13];let y;t[14]!==a||t[15]!==g?(y=(0,_.jsx)(`img`,{className:fe.image,src:a,alt:`OGP Image`,onError:h,style:g}),t[14]=a,t[15]=g,t[16]=y):y=t[16];let b;t[17]===s?b=t[18]:(b=(0,_.jsx)(`div`,{className:fe.title,children:(0,_.jsx)(B,{bold:!0,children:s})}),t[17]=s,t[18]=b);let x;t[19]===r?x=t[20]:(x=(0,_.jsx)(`div`,{className:fe.description,children:(0,_.jsx)(B,{size:`0.75rem`,children:r})}),t[19]=r,t[20]=x);let S;t[21]===i?S=t[22]:(S=i?(0,_.jsx)(z,{src:i}):(0,_.jsx)(F,{d:v.mdiLinkVariant,color:`var(--elmethis-color-accent-info)`}),t[21]=i,t[22]=S);let C;t[23]===d?C=t[24]:(C=(0,_.jsx)(B,{size:`0.75rem`,children:d}),t[23]=d,t[24]=C);let w;t[25]!==S||t[26]!==C?(w=(0,_.jsxs)(`div`,{className:fe.link,children:[S,C]}),t[25]=S,t[26]=C,t[27]=w):w=t[27];let T;t[28]!==b||t[29]!==x||t[30]!==w?(T=(0,_.jsxs)(`div`,{className:fe.content,children:[b,x,w]}),t[28]=b,t[29]=x,t[30]=w,t[31]=T):T=t[31];let E;t[32]!==T||t[33]!==y||t[34]!==d?(E=(0,_.jsxs)(`a`,{className:fe.container,href:d,target:`_blank`,rel:`noopener noreferrer`,children:[y,T]}),t[32]=T,t[33]=y,t[34]=d,t[35]=E):E=t[35];let D;return t[36]!==o||t[37]!==m||t[38]!==E?(D=(0,_.jsx)(`div`,{className:m,...o,children:E}),t[36]=o,t[37]=m,t[38]=E,t[39]=D):D=t[39],D},he={"elm-tabs":`_elm-tabs_whoym_1`,"tab-container":`_tab-container_whoym_13`,tab:`_tab_whoym_13`,active:`_active_whoym_41`,"tab-content":`_tab-content_whoym_52`,"tab-content-inner":`_tab-content-inner_whoym_57`},ge={"elm-collapse":`_elm-collapse_12wiu_1`,row:`_row_12wiu_5`,open:`_open_12wiu_11`,column:`_column_12wiu_16`,both:`_both_12wiu_27`,inner:`_inner_12wiu_44`},_e=e=>{let t=(0,c.c)(24),n,r,i,a,o,s,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7]):({className:r,style:o,isOpen:i,direction:s,transitionTimingFunction:l,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l);let d=s===void 0?`row`:s,f=l===void 0?`ease-in-out`:l,p=i&&ge.open,m=d===`row`&&ge.row,h=d===`column`&&ge.column,g=d===`both`&&ge.both,v;t[8]!==r||t[9]!==p||t[10]!==m||t[11]!==h||t[12]!==g?(v=(0,u.clsx)(ge[`elm-collapse`],p,m,h,g,r),t[8]=r,t[9]=p,t[10]=m,t[11]=h,t[12]=g,t[13]=v):v=t[13];let y;t[14]!==o||t[15]!==f?(y={...o,"--elmethis-scoped-transition-timing-function":f},t[14]=o,t[15]=f,t[16]=y):y=t[16];let b=y,x;t[17]===n?x=t[18]:(x=(0,_.jsx)(`div`,{className:ge.inner,children:n}),t[17]=n,t[18]=x);let S;return t[19]!==a||t[20]!==x||t[21]!==v||t[22]!==b?(S=(0,_.jsx)(`div`,{className:v,style:b,...a,children:x}),t[19]=a,t[20]=x,t[21]=v,t[22]=b,t[23]=S):S=t[23],S};function ve(e){let t=(0,c.c)(4),{value:n,defaultValue:r,onChange:i}=e,a;return t[0]!==r||t[1]!==i||t[2]!==n?(a={prop:n,defaultProp:r,onChange:i,caller:`useBindableSignal`},t[0]=r,t[1]=i,t[2]=n,t[3]=a):a=t[3],(0,C.useControllableState)(a)}var ye=(0,l.createContext)(null),be=()=>{let e=(0,l.useContext)(ye);if(e==null)throw Error(`ElmTabs subcomponents must be used within <ElmTabs>`);return e},xe=e=>{let t=(0,c.c)(25),n,r,i,a,o,s,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7]):({className:r,value:l,defaultValue:i,onValueChange:a,transitionTimingFunction:s,children:n,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l);let d=s===void 0?`linear`:s,f=i??``,p;t[8]!==a||t[9]!==f||t[10]!==l?(p={value:l,defaultValue:f,onChange:a},t[8]=a,t[9]=f,t[10]=l,t[11]=p):p=t[11];let[m,h]=ve(p),g;t[12]!==m||t[13]!==h||t[14]!==d?(g={selectedValue:m,setSelectedValue:h,transitionTimingFunction:d},t[12]=m,t[13]=h,t[14]=d,t[15]=g):g=t[15];let v;t[16]===r?v=t[17]:(v=(0,u.clsx)(he[`elm-tabs`],r),t[16]=r,t[17]=v);let y;t[18]!==n||t[19]!==o||t[20]!==v?(y=(0,_.jsx)(`div`,{className:v,...o,children:n}),t[18]=n,t[19]=o,t[20]=v,t[21]=y):y=t[21];let b;return t[22]!==g||t[23]!==y?(b=(0,_.jsx)(ye.Provider,{value:g,children:y}),t[22]=g,t[23]=y,t[24]=b):b=t[24],b},Se=e=>{let t=(0,c.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=(0,u.clsx)(he[`tab-container`],r),t[4]=r,t[5]=a);let o;return t[6]!==n||t[7]!==i||t[8]!==a?(o=(0,_.jsx)(`div`,{className:a,...i,children:n}),t[6]=n,t[7]=i,t[8]=a,t[9]=o):o=t[9],o},Ce=e=>{let t=(0,c.c)(18),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({value:o,className:r,children:n,onClick:i,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=be(),l=s.selectedValue===o&&he.active,d;t[6]!==r||t[7]!==l?(d=(0,u.clsx)(he.tab,l,r),t[6]=r,t[7]=l,t[8]=d):d=t[8];let f;t[9]!==s||t[10]!==i||t[11]!==o?(f=e=>{s.setSelectedValue(o),i?.(e)},t[9]=s,t[10]=i,t[11]=o,t[12]=f):f=t[12];let p;return t[13]!==n||t[14]!==a||t[15]!==d||t[16]!==f?(p=(0,_.jsx)(`div`,{className:d,onClick:f,...a,children:n}),t[13]=n,t[14]=a,t[15]=d,t[16]=f,t[17]=p):p=t[17],p},we=e=>{let t=(0,c.c)(17),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({value:a,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=be(),s;t[5]===r?s=t[6]:(s=(0,u.clsx)(he[`tab-content`],r),t[5]=r,t[6]=s);let l=o.selectedValue===a,d;t[7]===n?d=t[8]:(d=(0,_.jsx)(`div`,{className:he[`tab-content-inner`],children:n}),t[7]=n,t[8]=d);let f;t[9]!==o.transitionTimingFunction||t[10]!==l||t[11]!==d?(f=(0,_.jsx)(_e,{direction:`row`,isOpen:l,transitionTimingFunction:o.transitionTimingFunction,children:d}),t[9]=o.transitionTimingFunction,t[10]=l,t[11]=d,t[12]=f):f=t[12];let p;return t[13]!==i||t[14]!==s||t[15]!==f?(p=(0,_.jsx)(`div`,{className:s,...i,children:f}),t[13]=i,t[14]=s,t[15]=f,t[16]=p):p=t[16],p},Te={"elm-toggle":`_elm-toggle_qfazq_1`,open:`_open_qfazq_8`,summary:`_summary_qfazq_13`,"summary-left":`_summary-left_qfazq_28`,divider:`_divider_qfazq_35`,chevron:`_chevron_qfazq_49`,cross:`_cross_qfazq_62`,border:`_border_qfazq_76`,content:`_content_qfazq_84`},Ee=e=>{let t=(0,c.c)(57),n,r,i,a,o,s,l,d,f;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],d=t[8],f=t[9]):({className:r,summary:f,style:d,monochrome:o,isOpen:a,defaultIsOpen:i,onOpenChange:s,children:n,...l}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=d,t[9]=f);let p=i??!1,m;t[10]!==a||t[11]!==s||t[12]!==p?(m={value:a,defaultValue:p,onChange:s},t[10]=a,t[11]=s,t[12]=p,t[13]=m):m=t[13];let[h,g]=ve(m),y=h&&Te.open,b;t[14]!==r||t[15]!==y?(b=(0,u.clsx)(Te[`elm-toggle`],y,r),t[14]=r,t[15]=y,t[16]=b):b=t[16];let x=d,S;t[17]===g?S=t[18]:(S=e=>{e.preventDefault(),g(De)},t[17]=g,t[18]=S);let C=h&&Te.open,w;t[19]===C?w=t[20]:(w=(0,u.clsx)(Te.chevron,C),t[19]=C,t[20]=w);let T=o?`var(--elmethis-color-neutral-weak)`:`var(--elmethis-color-primary)`,E;t[21]===T?E=t[22]:(E=(0,_.jsx)(F,{d:v.mdiChevronRight,color:T,size:`1rem`}),t[21]=T,t[22]=E);let D;t[23]!==E||t[24]!==w?(D=(0,_.jsx)(`span`,{className:w,children:E}),t[23]=E,t[24]=w,t[25]=D):D=t[25];let O;t[26]===f?O=t[27]:(O=typeof f==`string`?(0,_.jsx)(B,{children:f}):f,t[26]=f,t[27]=O);let k;t[28]===O?k=t[29]:(k=(0,_.jsx)(`div`,{children:O}),t[28]=O,t[29]=k);let A;t[30]!==D||t[31]!==k?(A=(0,_.jsxs)(`div`,{className:Te[`summary-left`],children:[D,k]}),t[30]=D,t[31]=k,t[32]=A):A=t[32];let j;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,_.jsx)(`hr`,{className:Te.divider}),t[33]=j):j=t[33];let M=h&&Te.open,N;t[34]===M?N=t[35]:(N=(0,u.clsx)(Te.cross,M),t[34]=M,t[35]=N);let P=o?`var(--elmethis-color-neutral-weak)`:h?`var(--elmethis-color-accent-error)`:`var(--elmethis-color-primary)`,I;t[36]===P?I=t[37]:(I=(0,_.jsx)(F,{d:v.mdiPlus,size:`1rem`,color:P}),t[36]=P,t[37]=I);let L;t[38]!==N||t[39]!==I?(L=(0,_.jsx)(`span`,{className:N,children:I}),t[38]=N,t[39]=I,t[40]=L):L=t[40];let R;t[41]!==A||t[42]!==L||t[43]!==S?(R=(0,_.jsxs)(`div`,{className:Te.summary,onClick:S,children:[A,j,L]}),t[41]=A,t[42]=L,t[43]=S,t[44]=R):R=t[44];let z;t[45]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,_.jsx)(`div`,{className:Te.border}),t[45]=z):z=t[45];let V=h&&Te.open,H;t[46]===V?H=t[47]:(H=(0,u.clsx)(Te.content,V),t[46]=V,t[47]=H);let U;t[48]!==n||t[49]!==H?(U=(0,_.jsx)(`div`,{className:H,children:n}),t[48]=n,t[49]=H,t[50]=U):U=t[50];let W;return t[51]!==l||t[52]!==R||t[53]!==U||t[54]!==b||t[55]!==x?(W=(0,_.jsxs)(`div`,{className:b,style:x,...l,children:[R,z,U]}),t[51]=l,t[52]=R,t[53]=U,t[54]=b,t[55]=x,t[56]=W):W=t[56],W};function De(e){return!e}var Oe={"elm-block-quote":`_elm-block-quote_xzf6a_1`,body:`_body_xzf6a_19`,icon:`_icon_xzf6a_27`,"icon-top-left":`_icon-top-left_xzf6a_32`,"icon-bottom-right":`_icon-bottom-right_xzf6a_36`},ke=e=>{let t=(0,c.c)(14),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=(0,u.clsx)(Oe[`elm-block-quote`],E.text,r),t[4]=r,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,_.jsx)(`div`,{className:(0,u.clsx)(Oe.icon,Oe[`icon-top-left`]),children:(0,_.jsx)(F,{d:v.mdiFormatQuoteOpen})}),t[6]=o):o=t[6];let s;t[7]===n?s=t[8]:(s=(0,_.jsx)(`div`,{className:Oe.body,children:n}),t[7]=n,t[8]=s);let l;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,_.jsx)(`div`,{className:(0,u.clsx)(Oe.icon,Oe[`icon-bottom-right`]),children:(0,_.jsx)(F,{d:v.mdiFormatQuoteClose})}),t[9]=l):l=t[9];let d;return t[10]!==i||t[11]!==a||t[12]!==s?(d=(0,_.jsxs)(`blockquote`,{className:a,...i,children:[o,s,l]}),t[10]=i,t[11]=a,t[12]=s,t[13]=d):d=t[13],d},Ae={"elm-callout":`_elm-callout_1nsmp_1`,header:`_header_1nsmp_26`,content:`_content_1nsmp_35`,icon:`_icon_1nsmp_42`,note:`_note_1nsmp_47`,tip:`_tip_1nsmp_51`,important:`_important_1nsmp_55`,warning:`_warning_1nsmp_59`,caution:`_caution_1nsmp_63`},je=Object.freeze({note:v.mdiInformation,tip:v.mdiLightbulbOn,important:v.mdiShieldAlert,warning:v.mdiAlert,caution:v.mdiAlertOctagram}),Me=e=>{let t=(0,c.c)(24),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,type:o,style:a,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=o===void 0?`note`:o,l=Ae[s],d;t[6]!==r||t[7]!==l?(d=(0,u.clsx)(Ae[`elm-callout`],l,r),t[6]=r,t[7]=l,t[8]=d):d=t[8];let f=je[s],p;t[9]===f?p=t[10]:(p=(0,_.jsx)(F,{className:Ae.icon,d:f,size:`1.25rem`}),t[9]=f,t[10]=p);let m;t[11]===s?m=t[12]:(m=(0,_.jsx)(`span`,{children:s}),t[11]=s,t[12]=m);let h;t[13]!==p||t[14]!==m?(h=(0,_.jsxs)(`div`,{className:Ae.header,children:[p,m]}),t[13]=p,t[14]=m,t[15]=h):h=t[15];let g;t[16]===n?g=t[17]:(g=(0,_.jsx)(`div`,{className:Ae.content,children:n}),t[16]=n,t[17]=g);let v;return t[18]!==i||t[19]!==a||t[20]!==d||t[21]!==h||t[22]!==g?(v=(0,_.jsxs)(`aside`,{className:d,style:a,...i,children:[h,g]}),t[18]=i,t[19]=a,t[20]=d,t[21]=h,t[22]=g,t[23]=v):v=t[23],v},Ne={"elm-notion-callout":`_elm-notion-callout_15idh_1`,icon:`_icon_15idh_9`,content:`_content_15idh_15`,filled:`_filled_15idh_20`,outlined:`_outlined_15idh_24`,default:`_default_15idh_29`,gray:`_gray_15idh_38`,red:`_red_15idh_43`,orange:`_orange_15idh_48`,yellow:`_yellow_15idh_55`,green:`_green_15idh_62`,cyan:`_cyan_15idh_69`,blue:`_blue_15idh_74`,purple:`_purple_15idh_79`,magenta:`_magenta_15idh_86`},Pe=e=>{let t=(0,c.c)(22),n,r,i,a,o,s,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7]):({className:r,style:o,icon:i,color:s,variant:l,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l);let d=s===void 0?`gray`:s,f=l===void 0?`filled`:l,p=Ne[d],m=Ne[f],h;t[8]!==r||t[9]!==p||t[10]!==m?(h=(0,u.clsx)(Ne[`elm-notion-callout`],p,m,r),t[8]=r,t[9]=p,t[10]=m,t[11]=h):h=t[11];let g;t[12]===i?g=t[13]:(g=i!==void 0&&(i.kind===`emoji`?(0,_.jsx)(`span`,{className:Ne.icon,role:`img`,children:i.emoji}):(0,_.jsx)(z,{className:Ne.icon,src:i.src,alt:i.alt,size:20})),t[12]=i,t[13]=g);let v;t[14]===n?v=t[15]:(v=(0,_.jsx)(`div`,{className:Ne.content,children:n}),t[14]=n,t[15]=v);let y;return t[16]!==a||t[17]!==o||t[18]!==h||t[19]!==g||t[20]!==v?(y=(0,_.jsxs)(`div`,{className:h,style:o,...a,children:[g,v]}),t[16]=a,t[17]=o,t[18]=h,t[19]=g,t[20]=v,t[21]=y):y=t[21],y},Fe={"elm-divider":`_elm-divider_9m6gb_1`},Ie=e=>{let t=(0,c.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=(0,u.clsx)(Fe[`elm-divider`],n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,_.jsx)(`hr`,{className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a},Le={"elm-heading":`_elm-heading_1fuld_1`,h1:`_h1_1fuld_12`,h2:`_h2_1fuld_34`,"h2-underline":`_h2-underline_1fuld_60`,h3:`_h3_1fuld_71`,h4:`_h4_1fuld_86`,h5:`_h5_1fuld_90`,h6:`_h6_1fuld_94`},Re={"elm-fragment-identifier":`_elm-fragment-identifier_xb2v4_1`},ze=e=>{let t=(0,c.c)(12),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,id:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=Be,o;t[4]===n?o=t[5]:(o=(0,u.clsx)(Re[`elm-fragment-identifier`],n),t[4]=n,t[5]=o);let s;t[6]===r?s=t[7]:(s=()=>a(r),t[6]=r,t[7]=s);let l;return t[8]!==i||t[9]!==o||t[10]!==s?(l=(0,_.jsx)(`span`,{className:o,onClick:s,...i,children:`#`}),t[8]=i,t[9]=o,t[10]=s,t[11]=l):l=t[11],l};function Be(e){let t=new URL(window.location.href);t.hash=e,window.history.replaceState(null,``,t.toString()),document.getElementById(e)?.scrollIntoView({behavior:`smooth`})}var Ve=Object.freeze({1:1.5,2:1.4,3:1.3,4:1.2,5:1.15,6:1.1}),He=e=>{let t=(0,c.c)(30),n,r,i,a,o,s,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7]):({className:r,level:a,text:l,id:i,style:s,children:n,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l);let d=`h${a}`,f=Le[`h${a}`],p;t[8]!==r||t[9]!==f?(p=(0,u.clsx)(Le[`elm-heading`],E.text,f,r),t[8]=r,t[9]=f,t[10]=p):p=t[10];let m=`${Ve[a]}em`,h;t[11]!==s||t[12]!==m?(h={"--elmethis-scoped-font-size":m,...s},t[11]=s,t[12]=m,t[13]=h):h=t[13];let g=h,v;t[14]===l?v=t[15]:(v=(0,_.jsx)(`span`,{children:l}),t[14]=l,t[15]=v);let y;t[16]===i?y=t[17]:(y=i&&(0,_.jsx)(`span`,{style:{padding:`0.5rem`},children:(0,_.jsx)(ze,{id:i})}),t[16]=i,t[17]=y);let b;t[18]===a?b=t[19]:(b=a===2&&(0,_.jsx)(`span`,{className:Le[`h2-underline`],"aria-hidden":`true`}),t[18]=a,t[19]=b);let x;return t[20]!==d||t[21]!==n||t[22]!==i||t[23]!==o||t[24]!==p||t[25]!==g||t[26]!==v||t[27]!==y||t[28]!==b?(x=(0,_.jsxs)(d,{className:p,style:g,id:i,...o,children:[v,n,y,b]}),t[20]=d,t[21]=n,t[22]=i,t[23]=o,t[24]=p,t[25]=g,t[26]=v,t[27]=y,t[28]=b,t[29]=x):x=t[29],x},Ue={"elm-list":`_elm-list_brpi5_1`,bulleted:`_bulleted_brpi5_8`,numbered:`_numbered_brpi5_57`},We=e=>{let t=(0,c.c)(17),n,r,i,a;if(t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,listStyle:a,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a),(a===void 0?`unordered`:a)===`ordered`){let e;t[5]===r?e=t[6]:(e=(0,u.clsx)(E.text,Ue[`elm-list`],Ue.numbered,r),t[5]=r,t[6]=e);let a;return t[7]!==n||t[8]!==i||t[9]!==e?(a=(0,_.jsx)(`ol`,{className:e,...i,children:n}),t[7]=n,t[8]=i,t[9]=e,t[10]=a):a=t[10],a}let o;t[11]===r?o=t[12]:(o=(0,u.clsx)(E.text,Ue[`elm-list`],Ue.bulleted,r),t[11]=r,t[12]=o);let s;return t[13]!==n||t[14]!==i||t[15]!==o?(s=(0,_.jsx)(`ul`,{className:o,...i,children:n}),t[13]=n,t[14]=i,t[15]=o,t[16]=s):s=t[16],s},Ge={"elm-paragraph":`_elm-paragraph_y4o6n_1`},Ke=e=>{let t=(0,c.c)(18),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({className:i,style:s,color:a,backgroundColor:n,children:r,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let l;t[7]===i?l=t[8]:(l=(0,u.clsx)(Ge[`elm-paragraph`],E.text,i),t[7]=i,t[8]=l);let d;t[9]!==n||t[10]!==a||t[11]!==s?(d={...s,"--elmethis-scoped-color":a,"--elmethis-scoped-background-color":n},t[9]=n,t[10]=a,t[11]=s,t[12]=d):d=t[12];let f=d,p;return t[13]!==r||t[14]!==o||t[15]!==l||t[16]!==f?(p=(0,_.jsx)(`p`,{className:l,style:f,...o,children:r}),t[13]=r,t[14]=o,t[15]=l,t[16]=f,t[17]=p):p=t[17],p},qe={"elm-table-frame":`_elm-table-frame_1b7h2_3`,"elm-table-scroll":`_elm-table-scroll_1b7h2_49`,"elm-table":`_elm-table_1b7h2_3`,caption:`_caption_1b7h2_67`,"caption-inner":`_caption-inner_1b7h2_77`,spacing:`_spacing_1b7h2_84`,"sticky-row-header":`_sticky-row-header_1b7h2_95`},Je=(0,l.createContext)({value:!1}),Ye=(0,l.createContext)(`body`),Xe=()=>{let e=(0,c.c)(5),t=(0,l.useRef)(null),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={canScroll:!1,atStart:!0,atEnd:!0},e[0]=n):n=e[0];let[r,i]=(0,l.useState)(n),a,o;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(a=()=>{let e=t.current;if(e==null)return;let n=()=>{let t=e.scrollWidth-e.clientWidth,n={canScroll:t>1,atStart:e.scrollLeft<=1,atEnd:e.scrollLeft>=t-1};i(e=>e.canScroll===n.canScroll&&e.atStart===n.atStart&&e.atEnd===n.atEnd?e:n)};n(),e.addEventListener(`scroll`,n,{passive:!0});let r=new ResizeObserver(n);return r.observe(e),()=>{e.removeEventListener(`scroll`,n),r.disconnect()}},o=[],e[1]=a,e[2]=o):(a=e[1],o=e[2]),(0,l.useEffect)(a,o);let s;return e[3]===r?s=e[4]:(s={ref:t,...r},e[3]=r,e[4]=s),s},Ze=e=>{let t=(0,c.c)(31),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:i,caption:n,hasRowHeader:o,children:r,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=o===void 0?!1:o,l;t[6]===s?l=t[7]:(l={value:s},t[6]=s,t[7]=l);let d=l,{ref:f,canScroll:p,atStart:m,atEnd:h}=Xe(),g=p&&!m?``:void 0,v=p&&!h?``:void 0,y=p?0:void 0,b=p&&n!=null?`region`:void 0,x=p&&n!=null?n:void 0,S=s&&qe[`sticky-row-header`],C;t[8]!==i||t[9]!==S?(C=(0,u.clsx)(qe[`elm-table`],E.text,S,i),t[8]=i,t[9]=S,t[10]=C):C=t[10];let w;t[11]===n?w=t[12]:(w=n&&(0,_.jsx)(`caption`,{children:(0,_.jsxs)(`span`,{className:qe.caption,children:[(0,_.jsx)(`span`,{className:qe.spacing}),(0,_.jsx)(`span`,{className:qe[`caption-inner`],children:(0,_.jsx)(B,{children:n})}),(0,_.jsx)(`span`,{className:qe.spacing})]})}),t[11]=n,t[12]=w);let T;t[13]!==r||t[14]!==a||t[15]!==w||t[16]!==C?(T=(0,_.jsxs)(`table`,{className:C,...a,children:[w,r]}),t[13]=r,t[14]=a,t[15]=w,t[16]=C,t[17]=T):T=t[17];let D;t[18]!==f||t[19]!==T||t[20]!==y||t[21]!==b||t[22]!==x?(D=(0,_.jsx)(`div`,{ref:f,className:qe[`elm-table-scroll`],tabIndex:y,role:b,"aria-label":x,children:T}),t[18]=f,t[19]=T,t[20]=y,t[21]=b,t[22]=x,t[23]=D):D=t[23];let O;t[24]!==D||t[25]!==g||t[26]!==v?(O=(0,_.jsx)(`div`,{className:qe[`elm-table-frame`],"data-overflow-start":g,"data-overflow-end":v,children:D}),t[24]=D,t[25]=g,t[26]=v,t[27]=O):O=t[27];let k;return t[28]!==d||t[29]!==O?(k=(0,_.jsx)(Je.Provider,{value:d,children:O}),t[28]=d,t[29]=O,t[30]=k):k=t[30],k},Qe=e=>{let t=(0,c.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=(0,_.jsx)(Ye.Provider,{value:`body`,children:(0,_.jsx)(`tbody`,{...r,children:n})}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i},$e={"elm-table-cell":`_elm-table-cell_1a21f_1`,td:`_td_1a21f_20`,th:`_th_1a21f_25`},et=e=>{let t=(0,c.c)(16),n,r,i,a,o,s,d,f;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],d=t[7],f=t[8]):({className:r,style:s,isHeader:d,columnIndex:i,text:f,scope:o,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=d,t[8]=f);let p=d===void 0?!1:d,m=(0,l.useContext)(Ye),h=(0,l.useContext)(Je),g=m===`head`,v=!g&&!p&&i===0&&h.value,y=g||p||v,b=o??(g?`col`:v?`row`:void 0),x=f??n,S;return t[9]!==r||t[10]!==x||t[11]!==y||t[12]!==a||t[13]!==b||t[14]!==s?(S=y?(0,_.jsx)(`th`,{className:(0,u.clsx)($e[`elm-table-cell`],$e.th,r),style:s,scope:b,...a,children:x}):(0,_.jsx)(`td`,{className:(0,u.clsx)($e[`elm-table-cell`],$e.td,r),style:s,...a,children:x}),t[9]=r,t[10]=x,t[11]=y,t[12]=a,t[13]=b,t[14]=s,t[15]=S):S=t[15],S},tt={"elm-table-header":`_elm-table-header_jhft7_1`},nt=e=>{let t=(0,c.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=(0,u.clsx)(tt[`elm-table-header`],r),t[4]=r,t[5]=a);let o;return t[6]!==n||t[7]!==i||t[8]!==a?(o=(0,_.jsx)(Ye.Provider,{value:`head`,children:(0,_.jsx)(`thead`,{className:a,...i,children:n})}),t[6]=n,t[7]=i,t[8]=a,t[9]=o):o=t[9],o},rt={"elm-table-row":`_elm-table-row_mkm0q_1`},it=e=>{let t=(0,c.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=(0,u.clsx)(rt[`elm-table-row`],r),t[4]=r,t[5]=a);let o;return t[6]!==n||t[7]!==i||t[8]!==a?(o=(0,_.jsx)(`tr`,{className:a,...i,children:n}),t[6]=n,t[7]=i,t[8]=a,t[9]=o):o=t[9],o},at={"elm-unsupported-block":`_elm-unsupported-block_8bkk1_1`,message:`_message_8bkk1_13`,icon:`_icon_8bkk1_20`,details:`_details_8bkk1_24`},ot=e=>{let t=(0,c.c)(13),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,details:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=(0,u.clsx)(at[`elm-unsupported-block`],n),t[4]=n,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,_.jsxs)(`div`,{className:at.message,children:[(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.25rem`,height:`1.25rem`,className:at.icon,children:(0,_.jsx)(`path`,{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z`})}),(0,_.jsx)(B,{children:`UNSUPPORTED BLOCK`})]}),t[6]=o):o=t[6];let s;t[7]===r?s=t[8]:(s=r&&(0,_.jsx)(`div`,{className:at.details,children:(0,_.jsx)(B,{children:r})}),t[7]=r,t[8]=s);let l;return t[9]!==i||t[10]!==a||t[11]!==s?(l=(0,_.jsxs)(`div`,{className:a,...i,children:[o,s]}),t[9]=i,t[10]=a,t[11]=s,t[12]=l):l=t[12],l},st={start:`flex-start`,end:`flex-end`,center:`center`,spaceBetween:`space-between`,spaceAround:`space-around`,spaceEvenly:`space-evenly`,stretch:`stretch`},ct={start:`flex-start`,end:`flex-end`,center:`center`,stretch:`stretch`};function lt(e,t){return Array.isArray(e)?e.map((e,n)=>{if(e&&typeof e==`object`&&`id`in e){let r=e;return(0,_.jsx)(l.Fragment,{children:t(r.id,r.basePath)},`${r.id}-${n}`)}return typeof e==`string`?(0,_.jsx)(l.Fragment,{children:t(e)},`${e}-${n}`):null}):null}function ut(e){return Array.isArray(e)?e.flatMap(e=>{if(typeof e==`string`)return[{id:e}];if(e&&typeof e==`object`&&`id`in e){let t=e;return[{id:t.id,basePath:t.basePath}]}return[]}):[]}function dt(e){return Array.isArray(e)?e.map(e=>typeof e==`string`?e:e&&typeof e==`object`&&`id`in e?e.id:null).filter(e=>typeof e==`string`):[]}var ft=`https://a2ui.org/specification/v0_9/basic_catalog.json`,pt={boxSizing:`content-box`,paddingBlock:`0.25rem`,width:`100%`,display:`flex`,flexDirection:`row`,gap:`0.25rem`,justifyContent:`space-around`,overflowX:`auto`},mt=[(0,p.createComponentImplementation)(h.RichTextApi,({props:e})=>{let t=e.decoration??[];return t.includes(`katex`)?(0,_.jsx)(O,{expression:e.text,block:!1}):(0,_.jsx)(B,{bold:t.includes(`bold`),italic:t.includes(`italic`),underline:t.includes(`underline`),strikethrough:t.includes(`strikethrough`),code:t.includes(`code`),color:e.color,ruby:e.ruby,children:e.text})}),(0,p.createComponentImplementation)(h.LinkTextApi,({props:e})=>(0,_.jsx)(B,{href:e.href,favicon:e.favicon,children:e.text})),(0,p.createComponentImplementation)(h.IconApi,({props:e})=>(0,_.jsx)(z,{src:e.src,alt:e.alt})),(0,p.createComponentImplementation)(h.ColumnApi,({props:e,buildChild:t})=>(0,_.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,justifyContent:st[e.justify??`start`],alignItems:ct[e.align??`stretch`],flex:e.widthRatio==null?void 0:String(e.widthRatio),boxSizing:`border-box`,padding:`0.125rem`,gap:`var(--elmethis-stack-gap)`},children:lt(e.children,t)})),(0,p.createComponentImplementation)(h.ColumnListApi,({props:e,buildChild:t})=>(0,_.jsx)(`div`,{style:pt,children:lt(e.children,t)})),(0,p.createComponentImplementation)(h.HeadingApi,({props:e,buildChild:t})=>(0,_.jsx)(He,{level:e.level,children:lt(e.children,t)})),(0,p.createComponentImplementation)(h.ParagraphApi,({props:e,buildChild:t})=>(0,_.jsx)(Ke,{color:e.color,backgroundColor:e.backgroundColor,children:lt(e.children,t)})),(0,p.createComponentImplementation)(h.ListApi,({props:e,buildChild:t})=>(0,_.jsx)(We,{listStyle:e.style??`unordered`,children:ut(e.children).map(({id:e,basePath:n},r)=>(0,_.jsx)(`li`,{children:t(e,n)},`${e}:${r}`))})),(0,p.createComponentImplementation)(h.ListItemApi,({props:e,buildChild:t})=>(0,_.jsx)(_.Fragment,{children:lt(e.children,t)})),(0,p.createComponentImplementation)(h.BlockQuoteApi,({props:e,buildChild:t})=>(0,_.jsx)(ke,{cite:e.cite,children:lt(e.children,t)})),(0,p.createComponentImplementation)(h.CalloutApi,({props:e,buildChild:t})=>(0,_.jsx)(Me,{type:e.type,children:lt(e.children,t)})),(0,p.createComponentImplementation)(h.NotionCalloutApi,({props:e,buildChild:t})=>(0,_.jsx)(Pe,{icon:e.icon,color:e.color,variant:e.variant,children:lt(e.children,t)})),(0,p.createComponentImplementation)(h.DividerApi,()=>(0,_.jsx)(Ie,{})),(0,p.createComponentImplementation)(h.ToggleApi,({props:e,buildChild:t})=>(0,_.jsx)(Ee,{summary:lt(e.summary,t),children:lt(e.children,t)})),(0,p.createComponentImplementation)(h.BookmarkApi,({props:e})=>(0,_.jsx)(me,{url:e.url,title:e.title,description:e.description,image:e.image})),(0,p.createComponentImplementation)(h.FileApi,({props:e})=>(0,_.jsx)(de,{src:e.src,name:e.name})),(0,p.createComponentImplementation)(h.AudioApi,({props:e})=>(0,_.jsx)(Z,{src:e.src,title:e.title,artist:e.artist,seekStep:e.seekStep,loop:e.loop,autoPlay:e.autoPlay})),(0,p.createComponentImplementation)(h.VideoApi,({props:e})=>(0,_.jsxs)(`figure`,{style:{margin:0},children:[(0,_.jsx)(`video`,{src:e.src,poster:e.poster,title:e.title,width:e.width,height:e.height,loop:e.loop,autoPlay:e.autoPlay,muted:e.muted,controls:!0,style:{maxWidth:`100%`,height:`auto`}}),e.caption?(0,_.jsx)(`figcaption`,{children:e.caption}):null]})),(0,p.createComponentImplementation)(h.BlockImageApi,({props:e})=>(0,_.jsx)(se,{src:e.src,alt:e.alt,width:e.width,height:e.height,srcSet:e.srcset,sizes:e.sizes,caption:e.caption,enableModal:!0})),(0,p.createComponentImplementation)(h.HtmlApi,({props:e})=>(0,_.jsx)(J,{html:e.html,src:e.src,autoHeight:e.autoHeight,allowScripts:e.allowScripts})),(0,p.createComponentImplementation)(h.CodeBlockApi,({props:e})=>(0,_.jsx)(K,{code:e.code,language:e.language,caption:e.caption})),(0,p.createComponentImplementation)(h.KatexApi,({props:e})=>(0,_.jsx)(O,{expression:e.expression,block:!0})),(0,p.createComponentImplementation)(h.MermaidApi,({props:e})=>(0,_.jsx)(K,{code:e.code,language:`mermaid`})),(0,p.createComponentImplementation)(h.ContentTabApi,()=>null),(0,p.createComponentImplementation)(h.ContentTabsApi,({props:e,buildChild:t,context:n})=>{let r=dt(e.children).map(e=>{let t=n.surfaceComponents.get(e);return{tabId:e,labelIds:dt(t?.properties.label),contentIds:dt(t?.properties.content)}});return(0,_.jsxs)(xe,{defaultValue:`0`,children:[(0,_.jsx)(Se,{children:r.map(({tabId:e,labelIds:n},r)=>(0,_.jsx)(Ce,{value:String(r),children:n.map((e,n)=>(0,_.jsx)(l.Fragment,{children:t(e,`/`)},`${e}:${n}`))},e))}),r.map(({tabId:e,contentIds:n},r)=>(0,_.jsx)(we,{value:String(r),children:n.map((e,n)=>(0,_.jsx)(l.Fragment,{children:t(e,`/`)},`${e}:${n}`))},e))]})}),(0,p.createComponentImplementation)(h.TableApi,({props:e,buildChild:t})=>(0,_.jsxs)(Ze,{caption:e.caption?String(e.caption):void 0,hasRowHeader:e.hasRowHeader,children:[e.header&&e.header.length>0&&(0,_.jsx)(nt,{children:lt(e.header,t)}),(0,_.jsx)(Qe,{children:lt(e.body,t)})]})),(0,p.createComponentImplementation)(h.TableRowApi,({props:e,buildChild:t})=>(0,_.jsx)(it,{children:lt(e.children,t)})),(0,p.createComponentImplementation)(h.TableCellApi,({props:e,buildChild:t})=>(0,_.jsx)(et,{isHeader:e.isHeader,children:lt(e.children,t)})),(0,p.createComponentImplementation)(h.UnsupportedApi,({props:e})=>(0,_.jsx)(ot,{details:e.details?`Unsupported component type: ${String(e.details)}`:`Unsupported component type`}))],ht=[...p.basicCatalog.components.values(),...mt],gt=Array.from(p.basicCatalog.functions.values()),_t=new m.Catalog(ft,ht,gt);async function vt(e,{signal:t,onMessage:n,onError:r}){if(t?.aborted)return;let i=e.getReader(),a=new TextDecoder,o=``,s=()=>{i.cancel().catch(()=>{})};t?.addEventListener(`abort`,s,{once:!0});let c=e=>{let t=e.trim();if(t)try{n(JSON.parse(t))}catch(e){r?.(e,t)}};try{for(;;){let{done:e,value:t}=await i.read();if(e)break;o+=a.decode(t,{stream:!0});let n=o.split(`
|
|
2
2
|
`);o=n.pop()??``;for(let e of n)c(e)}t?.aborted||c(o)}finally{t?.removeEventListener(`abort`,s);try{i.releaseLock()}catch{}}}var yt={"elm-a2ui":`_elm-a2ui_1yj0i_1`,surface:`_surface_1yj0i_14`},bt=`https://a2ui.org/specification/v0_9/basic_catalog.json`,xt=async e=>{let t=d.marked.parse(e,{async:!1,gfm:!0});return f.default.sanitize(t)},St=e=>{let t=(0,c.c)(34),n,r,i,a,o,s,d,f;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],d=t[7],f=t[8]):({className:r,style:s,url:f,headers:i,messages:a,catalogId:n,components:d,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=d,t[8]=f);let h=d===void 0?ht:d,g;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(g=[],t[9]=g):g=t[9];let[v,y]=(0,l.useState)(g),b;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(b=[],t[10]=b):b=t[10];let[x,S]=(0,l.useState)(b),C=(0,l.useRef)(null),w;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(w=new Map,t[11]=w):w=t[11];let T=(0,l.useRef)(w),E,D;t[12]!==i||t[13]!==f?(E=()=>{if(!f)return;let e=new AbortController;return y([]),fetch(f,{headers:i,signal:e.signal}).then(async t=>{t.body&&await vt(t.body,{signal:e.signal,onMessage:e=>{e&&typeof e==`object`&&y(t=>[...t,e])},onError:Ct})}).catch(wt),()=>e.abort()},D=[f,i],t[12]=i,t[13]=f,t[14]=E,t[15]=D):(E=t[14],D=t[15]),(0,l.useEffect)(E,D);let O=a||v,k,A;t[16]!==n||t[17]!==h||t[18]!==O?(k=()=>{let e=()=>S(Array.from(T.current.values())),t=C.current;if(t!==null&&t.catalogId===n&&O.length>=t.messages.length&&t.messages.every((e,t)=>e===O[t])&&t){let e=O.slice(t.processed);if(!e.length)return;for(let n of e)try{t.processor.processMessages([n])}catch(e){console.warn(`[ElmA2ui] skipped invalid A2UI message:`,n,e)}t.processed=O.length,t.messages=O;return}if(t){for(let e of t.subs)e.unsubscribe();t.processor.model.dispose()}let r=new Set([bt]);n&&r.add(n);for(let e of O)if(e&&typeof e==`object`&&`createSurface`in e){let t=e.createSurface?.catalogId;typeof t==`string`&&r.add(t)}let i=new m.MessageProcessor(Array.from(r).map(e=>new m.Catalog(e,h,gt))),a=T.current;a.clear();let o=[];o.push(i.model.onSurfaceCreated.subscribe(t=>{a.set(t.id,t),e()})),o.push(i.model.onSurfaceDeleted.subscribe(t=>{a.delete(t),e()}));for(let e of O)try{i.processMessages([e])}catch(t){console.warn(`[ElmA2ui] skipped invalid A2UI message:`,e,t)}C.current={processor:i,subs:o,processed:O.length,messages:O,catalogId:n},e()},A=[O,n,h],t[16]=n,t[17]=h,t[18]=O,t[19]=k,t[20]=A):(k=t[19],A=t[20]),(0,l.useEffect)(k,A);let j,M;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(M=()=>()=>{let e=C.current;if(e){for(let t of e.subs)t.unsubscribe();e.processor.model.dispose(),C.current=null}},j=[],t[21]=j,t[22]=M):(j=t[21],M=t[22]),(0,l.useEffect)(M,j);let N;t[23]===r?N=t[24]:(N=(0,u.default)(yt[`elm-a2ui`],r),t[23]=r,t[24]=N);let P;t[25]===x?P=t[26]:(P=x.map(Tt),t[25]=x,t[26]=P);let F;t[27]===P?F=t[28]:(F=(0,_.jsx)(p.MarkdownContext.Provider,{value:xt,children:P}),t[27]=P,t[28]=F);let I;return t[29]!==o||t[30]!==s||t[31]!==N||t[32]!==F?(I=(0,_.jsx)(`div`,{className:N,style:s,...o,children:F}),t[29]=o,t[30]=s,t[31]=N,t[32]=F,t[33]=I):I=t[33],I};function Ct(e,t){console.warn(`[ElmA2ui] skipped invalid JSON line:`,t,e)}function wt(e){e instanceof Error&&e.name!==`AbortError`&&console.error(`[ElmA2ui] stream error:`,e)}function Tt(e){return(0,_.jsx)(`div`,{className:yt.surface,children:(0,_.jsx)(p.A2uiSurface,{surface:e})},e.id)}var Et={"elm-html-viewer":`_elm-html-viewer_jde0x_1`,header:`_header_jde0x_15`,"icon-button":`_icon-button_jde0x_23`,divider:`_divider_jde0x_49`,content:`_content_jde0x_57`},Dt=({className:e,html:t,filename:n,sandbox:r,autoHeight:i,...a})=>{let o=(0,l.useCallback)(()=>{let e;try{let n=`<!doctype html>
|
|
3
3
|
<html lang="en">
|
|
4
4
|
<head>
|
package/lib/index.react.mjs
CHANGED
|
@@ -345,68 +345,77 @@ var Ct = (t) => {
|
|
|
345
345
|
]
|
|
346
346
|
}), n[22] = s, n[23] = f, n[24] = p, n[25] = g, n[26] = _, n[27] = y, n[28] = b) : b = n[28], b;
|
|
347
347
|
}, wt = { "elm-html": "_elm-html_339tp_1" }, Tt = (t) => {
|
|
348
|
-
let n = e(
|
|
349
|
-
n[0] === t ? (r = n[1], i = n[2], a = n[3], o = n[4], s = n[5], l = n[6], u = n[7], d = n[8]) : ({className: r, html: a, sandbox: s, style:
|
|
350
|
-
let
|
|
351
|
-
n[
|
|
348
|
+
let n = e(48), r, i, a, o, s, l, u, d, m, g;
|
|
349
|
+
n[0] === t ? (r = n[1], i = n[2], a = n[3], o = n[4], s = n[5], l = n[6], u = n[7], d = n[8], m = n[9], g = n[10]) : ({className: r, html: a, src: l, sandbox: s, style: u, height: i, autoHeight: d, allowScripts: m, title: g, ...o} = t, n[0] = t, n[1] = r, n[2] = i, n[3] = a, n[4] = o, n[5] = s, n[6] = l, n[7] = u, n[8] = d, n[9] = m, n[10] = g);
|
|
350
|
+
let _ = d === void 0 ? !0 : d, v = m === void 0 ? !1 : m, y = l !== void 0, b = f(null), [x, S] = p(), C;
|
|
351
|
+
n[11] !== _ || n[12] !== a || n[13] !== l ? (C = {
|
|
352
352
|
html: a,
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
353
|
+
src: l,
|
|
354
|
+
autoHeight: _
|
|
355
|
+
}, n[11] = _, n[12] = a, n[13] = l, n[14] = C) : C = n[14];
|
|
356
|
+
let [w, T] = p(C);
|
|
357
|
+
(w.html !== a || w.src !== l || w.autoHeight !== _) && (T({
|
|
357
358
|
html: a,
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
359
|
+
src: l,
|
|
360
|
+
autoHeight: _
|
|
361
|
+
}), _ && S(void 0));
|
|
362
|
+
let E;
|
|
363
|
+
if (n[15] !== v || n[16] !== _ || n[17] !== s || n[18] !== y) {
|
|
364
|
+
if (E = new Set(s?.split(/\s+/).filter(Boolean) ?? []), v && E.add("allow-scripts"), [...E].some(Et)) for (let e of E) e.toLowerCase() === "allow-same-origin" && E.delete(e);
|
|
365
|
+
else _ && !y && E.add("allow-same-origin");
|
|
366
|
+
n[15] = v, n[16] = _, n[17] = s, n[18] = y, n[19] = E;
|
|
367
|
+
} else E = n[19];
|
|
368
|
+
let D;
|
|
369
|
+
n[20] === E ? D = n[21] : (D = [...E], n[20] = E, n[21] = D);
|
|
370
|
+
let O = D.join(" "), k;
|
|
371
|
+
n[22] !== _ || n[23] !== y ? (k = () => {
|
|
372
|
+
if (y) return;
|
|
373
|
+
let e = b.current;
|
|
371
374
|
if (!e) return;
|
|
372
375
|
let t, n = () => {
|
|
373
376
|
let t = e.contentDocument?.documentElement;
|
|
374
|
-
t &&
|
|
377
|
+
t && S(t.scrollHeight);
|
|
375
378
|
}, r = () => {
|
|
376
379
|
let r = e.contentDocument?.documentElement;
|
|
377
380
|
r && (t?.disconnect(), t = new ResizeObserver(n), t.observe(r));
|
|
378
381
|
}, i = () => {
|
|
379
|
-
|
|
382
|
+
_ && (n(), r());
|
|
380
383
|
};
|
|
381
384
|
return e.addEventListener("load", i), () => {
|
|
382
385
|
e.removeEventListener("load", i), t?.disconnect();
|
|
383
386
|
};
|
|
384
|
-
}, n[
|
|
385
|
-
let
|
|
386
|
-
n[
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
387
|
+
}, n[22] = _, n[23] = y, n[24] = k) : k = n[24];
|
|
388
|
+
let A;
|
|
389
|
+
n[25] !== _ || n[26] !== a || n[27] !== y ? (A = [
|
|
390
|
+
a,
|
|
391
|
+
y,
|
|
392
|
+
_
|
|
393
|
+
], n[25] = _, n[26] = a, n[27] = y, n[28] = A) : A = n[28], c(k, A);
|
|
394
|
+
let j = o, M;
|
|
395
|
+
if (n[29] !== j) {
|
|
396
|
+
let { srcDoc: e, srcdoc: t, referrerPolicy: r, referrerpolicy: i, ...a } = j;
|
|
397
|
+
M = a, n[29] = j, n[30] = M;
|
|
398
|
+
} else M = n[30];
|
|
399
|
+
let N = String(_), P = g ?? "Embedded HTML content", F;
|
|
400
|
+
n[31] === r ? F = n[32] : (F = h(wt["elm-html"], r), n[31] = r, n[32] = F);
|
|
401
|
+
let I;
|
|
402
|
+
n[33] !== _ || n[34] !== x || n[35] !== u ? (I = _ ? {
|
|
403
|
+
...u,
|
|
404
|
+
height: x ?? u?.height
|
|
405
|
+
} : u, n[33] = _, n[34] = x, n[35] = u, n[36] = I) : I = n[36];
|
|
406
|
+
let L = _ ? x === void 0 && u?.height === void 0 ? i : void 0 : i, R = y ? l : void 0, z = y ? void 0 : a ?? "", B = y ? "no-referrer" : void 0, V;
|
|
407
|
+
return n[37] !== O || n[38] !== M || n[39] !== F || n[40] !== I || n[41] !== L || n[42] !== R || n[43] !== z || n[44] !== B || n[45] !== N || n[46] !== P ? (V = /* @__PURE__ */ J("iframe", {
|
|
408
|
+
ref: b,
|
|
409
|
+
title: P,
|
|
410
|
+
className: F,
|
|
411
|
+
style: I,
|
|
412
|
+
height: L,
|
|
413
|
+
...M,
|
|
414
|
+
src: R,
|
|
415
|
+
srcDoc: z,
|
|
416
|
+
sandbox: O,
|
|
417
|
+
referrerPolicy: B
|
|
418
|
+
}, N), n[37] = O, n[38] = M, n[39] = F, n[40] = I, n[41] = L, n[42] = R, n[43] = z, n[44] = B, n[45] = N, n[46] = P, n[47] = V) : V = n[47], V;
|
|
410
419
|
};
|
|
411
420
|
function Et(e) {
|
|
412
421
|
return e.toLowerCase() === "allow-scripts";
|
|
@@ -1864,7 +1873,9 @@ var Hn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Un = {
|
|
|
1864
1873
|
})),
|
|
1865
1874
|
x(L, ({ props: e }) => /* @__PURE__ */ J(Tt, {
|
|
1866
1875
|
html: e.html,
|
|
1867
|
-
|
|
1876
|
+
src: e.src,
|
|
1877
|
+
autoHeight: e.autoHeight,
|
|
1878
|
+
allowScripts: e.allowScripts
|
|
1868
1879
|
})),
|
|
1869
1880
|
x(k, ({ props: e }) => /* @__PURE__ */ J(Ct, {
|
|
1870
1881
|
code: e.code,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-catalog.d.ts","sourceRoot":"","sources":["../../../../src/components/a2ui/catalog/block-catalog.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAGL,KAAK,4BAA4B,EAClC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"block-catalog.d.ts","sourceRoot":"","sources":["../../../../src/components/a2ui/catalog/block-catalog.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAGL,KAAK,4BAA4B,EAClC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAmX9C;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,4BAA4B,EAGzD,CAAC;AAEF,kEAAkE;AAClE,eAAO,MAAM,cAAc,wDAA8C,CAAC;AAE1E;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,4BAA4B,CAI9D,CAAC"}
|
|
@@ -1,13 +1,43 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
-
export interface ElmHtmlProps extends Omit<ComponentPropsWithoutRef<"iframe">, "src" | "srcDoc"> {
|
|
3
|
-
/**
|
|
4
|
-
|
|
2
|
+
export interface ElmHtmlProps extends Omit<ComponentPropsWithoutRef<"iframe">, "src" | "srcDoc" | "referrerPolicy"> {
|
|
3
|
+
/**
|
|
4
|
+
* Raw HTML markup to render, e.g. a Claude-authored artifact or a Notion
|
|
5
|
+
* page export. Mutually exclusive with `src` — provide exactly one of the
|
|
6
|
+
* two.
|
|
7
|
+
*/
|
|
8
|
+
html?: string;
|
|
9
|
+
/**
|
|
10
|
+
* URL of a remote document to load in place of inline `html` (e.g. a
|
|
11
|
+
* presigned, time-limited link). Mutually exclusive with `html` — provide
|
|
12
|
+
* exactly one of the two.
|
|
13
|
+
*
|
|
14
|
+
* The framed document always gets `referrerPolicy="no-referrer"` so a
|
|
15
|
+
* token embedded in the URL's query string (as presigned links often
|
|
16
|
+
* carry) can't leak via the `Referer` header on requests the framed page
|
|
17
|
+
* itself makes. `autoHeight` has no effect in this mode — the browser
|
|
18
|
+
* blocks `contentDocument` access across origins regardless of sandbox
|
|
19
|
+
* flags, so cross-origin content can never be measured; size it with
|
|
20
|
+
* `height`/`style` instead. If the URL is time-limited, refreshing it
|
|
21
|
+
* before it expires is the caller's responsibility — this component never
|
|
22
|
+
* retries or reloads on its own.
|
|
23
|
+
*/
|
|
24
|
+
src?: string;
|
|
5
25
|
/**
|
|
6
26
|
* Stretch the iframe to fit its content height. Set to false to size it
|
|
7
|
-
* yourself instead (via `style`, `height`, or a CSS class).
|
|
27
|
+
* yourself instead (via `style`, `height`, or a CSS class). Only takes
|
|
28
|
+
* effect in `html` mode — see `src` for why.
|
|
8
29
|
* @default true
|
|
9
30
|
*/
|
|
10
31
|
autoHeight?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Allow the embedded content to run JavaScript by adding `allow-scripts`
|
|
34
|
+
* to the iframe's `sandbox` attribute. Defaults to false. `allow-same-origin`
|
|
35
|
+
* is never granted together with this — see the sandbox-token logic below
|
|
36
|
+
* for why combining the two would let the embedded document escape the
|
|
37
|
+
* sandbox entirely.
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
40
|
+
allowScripts?: boolean;
|
|
11
41
|
}
|
|
12
|
-
export declare const ElmHtml: ({ className, html, sandbox, style, height, autoHeight, title, ...rest }: ElmHtmlProps) => import("react").JSX.Element;
|
|
42
|
+
export declare const ElmHtml: ({ className, html, src, sandbox, style, height, autoHeight, allowScripts, title, ...rest }: ElmHtmlProps) => import("react").JSX.Element;
|
|
13
43
|
//# sourceMappingURL=elm-html.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elm-html.d.ts","sourceRoot":"","sources":["../../../src/components/code/elm-html.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,wBAAwB,EAC9B,MAAM,OAAO,CAAC;AAKf,MAAM,WAAW,YAAa,SAAQ,IAAI,CACxC,wBAAwB,CAAC,QAAQ,CAAC,EAClC,KAAK,GAAG,QAAQ,
|
|
1
|
+
{"version":3,"file":"elm-html.d.ts","sourceRoot":"","sources":["../../../src/components/code/elm-html.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,wBAAwB,EAC9B,MAAM,OAAO,CAAC;AAKf,MAAM,WAAW,YAAa,SAAQ,IAAI,CACxC,wBAAwB,CAAC,QAAQ,CAAC,EAClC,KAAK,GAAG,QAAQ,GAAG,gBAAgB,CACpC;IACC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;;;;;;;;;;OAcG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,OAAO,GAAI,4FAWrB,YAAY,gCA2Kd,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elmethis/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "React component library for elmethis.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"shiki": "^4.3.0",
|
|
56
56
|
"usehooks-ts": "^3.1.1",
|
|
57
57
|
"zod": "^3",
|
|
58
|
-
"@elmethis/core": "^0.
|
|
58
|
+
"@elmethis/core": "^0.19.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@babel/core": "^7.29.7",
|