import{n as e,s as t}from"./rolldown-runtime-BG2f4sTM.js";import{AW as n,Aut as r,DL as i,Dvt as a,Fpt as o,Mvt as s,Nut as c,Nvt as l,O_t as u,P_t as d,SL as f,TL as p,cW as m,hU as h,kW as g,mU as _,npt as v,oW as y,pU as b}from"./app-initial-BHB6SClA.js";var x,S=e((()=>{x=``+new URL(`worker-CqaGbKqD.js`,import.meta.url).href}));function C(){return new Worker(x,{type:`module`})}var w=e((()=>{S()}));function T(e){let t=(0,D.c)(13),{children:n}=e,r=h(_()),i=c(o.lightCodeThemeId),a=c(o.darkCodeThemeId),s=d(m),l;t[0]!==r||t[1]!==a||t[2]!==i?(l=r===`light`?g(i,`light`):g(a,`dark`),t[0]=r,t[1]=a,t[2]=i,t[3]=l):l=t[3];let u=l.name,f=s?`word-alt`:`none`,v;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(v={workerFactory:C,poolSize:A,totalASTLRUCacheSize:j},t[4]=v):v=t[4];let y,b;t[5]!==f||t[6]!==u?(y={theme:u,lineDiffType:f,langs:M},b=(0,k.jsx)(E,{lineDiffType:f,theme:u}),t[5]=f,t[6]=u,t[7]=y,t[8]=b):(y=t[7],b=t[8]);let x;return t[9]!==n||t[10]!==y||t[11]!==b?(x=(0,k.jsxs)(p,{poolOptions:v,highlighterOptions:y,children:[b,n]}),t[9]=n,t[10]=y,t[11]=b,t[12]=x):x=t[12],x}function E(e){let t=(0,D.c)(5),{lineDiffType:n,theme:r}=e,a=i(),o,s;return t[0]!==n||t[1]!==r||t[2]!==a?(o=()=>{a?.setRenderOptions({lineDiffType:n,theme:r})},s=[n,r,a],t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s):(o=t[3],s=t[4]),(0,O.useEffect)(o,s),null}var D,O,k,A,j,M;e((()=>{D=s(),f(),u(),v(),O=t(l(),1),r(),n(),b(),y(),w(),k=a(),A=4,j=100,M=[`typescript`,`javascript`,`css`,`html`,`python`]}))();export{T as ShikiHighlightProvider};
//# sourceMappingURL=shiki-highlight-provider-CUCmd88l.js.map