fumapress 0.1.21 → 0.1.22

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.
Files changed (69) hide show
  1. package/dist/lib/cli/index.mjs +1 -1
  2. package/dist/waku/public/assets/{Icon-D30p-2dq.js → Icon-CzRHlV7t.js} +1 -1
  3. package/dist/waku/public/assets/{Icon-C79MpmBL.js → Icon-D4jnmEig.js} +1 -1
  4. package/dist/waku/public/assets/_root-BNlQgf93.css +1 -0
  5. package/dist/waku/public/assets/{_root-BWh8XBln.js → _root-Brujdncx.js} +2 -2
  6. package/dist/waku/public/assets/{algolia-B1uhfuD6.js → algolia-B99nS-nG.js} +1 -1
  7. package/dist/waku/public/assets/{chevron-right-DmP6Xa1g.js → chevron-right-C8j2DxMu.js} +1 -1
  8. package/dist/waku/public/assets/{client-BSFjekJY.js → client-BJnu4nCQ.js} +1 -1
  9. package/dist/waku/public/assets/{collapsible-B2rvGry7.js → collapsible-xIcMRFdY.js} +1 -1
  10. package/dist/waku/public/assets/{core-C4jOG9I2.js → core-DyUNnBc9.js} +1 -1
  11. package/dist/waku/public/assets/{i18n-V4QzeUbV.js → i18n-3LIRVH83.js} +1 -1
  12. package/dist/waku/public/assets/{index-CBSxJfFU.js → index-B1CNS8yL.js} +1 -1
  13. package/dist/waku/public/assets/index-B4jb-YeS.js +1 -0
  14. package/dist/waku/public/assets/{index-B65N5043.js → index-BByRkXVE.js} +1 -1
  15. package/dist/waku/public/assets/{index-BQZmdbam.js → index-BDkLcF6O.js} +1 -1
  16. package/dist/waku/public/assets/{index-OFfnl8sH.js → index-BP1WY6Lo.js} +2 -2
  17. package/dist/waku/public/assets/{index-DW9Fo86a.js → index-Bjx2zPoC.js} +1 -1
  18. package/dist/waku/public/assets/{index-B-5ouVG_.js → index-C3s8rSzK.js} +1 -1
  19. package/dist/waku/public/assets/{index-2HLUYgxN.js → index-C9bf1JGP.js} +5 -5
  20. package/dist/waku/public/assets/{index-CYJW3hzB.js → index-CS08xFbq.js} +1 -1
  21. package/dist/waku/public/assets/{index-xXa72sZS.js → index-CjxkSobY.js} +1 -1
  22. package/dist/waku/public/assets/{index-NB9D4S1v.js → index-Co9YM64a.js} +1 -1
  23. package/dist/waku/public/assets/{index-DHENdpwd.js → index-DNUrMY9s.js} +1 -1
  24. package/dist/waku/public/assets/{index-Bojr-xLv.js → index-Dmso5wU0.js} +1 -1
  25. package/dist/waku/public/assets/{index-Bonlu0LX.js → index-jLLD7vSY.js} +1 -1
  26. package/dist/waku/public/assets/{link-item-BlYkot48.js → link-item-Cqzdqpkh.js} +1 -1
  27. package/dist/waku/public/assets/{merge-refs-BIez66Kl.js → merge-refs-CbdSzRBV.js} +1 -1
  28. package/dist/waku/public/assets/{orama-cloud-CazpSeQ0.js → orama-cloud-Dy192xXH.js} +1 -1
  29. package/dist/waku/public/assets/{orama-cloud-legacy-CINWERV2.js → orama-cloud-legacy-DfN2Ihs3.js} +1 -1
  30. package/dist/waku/public/assets/{orama-static-DwfVMMmc.js → orama-static-DlrzLbvZ.js} +1 -1
  31. package/dist/waku/public/assets/{page-actions--VStSULV.js → page-actions-D5R6x2EG.js} +1 -1
  32. package/dist/waku/public/assets/{proxy-CWSxKwWP.js → proxy-Dqy5zi5w.js} +1 -1
  33. package/dist/waku/public/assets/{search-default-B2jTK1EC.js → search-default-YX4fBBKq.js} +3 -3
  34. package/dist/waku/public/assets/{search-D1WUBd3N.js → search-pXfzPq1G.js} +1 -1
  35. package/dist/waku/public/assets/{use-copy-button-BO3GBlwZ.js → use-copy-button-CUBSgIa6.js} +1 -1
  36. package/dist/waku/public/assets/{x-CB1cQ-bo.js → x-DpD5OGBz.js} +1 -1
  37. package/dist/waku/server/__vite_rsc_assets_manifest.js +150 -150
  38. package/dist/waku/server/assets/{_...slugs_-8lFegkVB.js → _...slugs_-CgUUP3eF.js} +10 -10
  39. package/dist/waku/server/assets/_root-BNlQgf93.css +1 -0
  40. package/dist/waku/server/assets/{_root-B7AMftRI.js → _root-DEu9rGSt.js} +1 -1
  41. package/dist/waku/server/assets/{ai-C1Bf8DXZ.js → ai-DCNVfAwq.js} +2 -2
  42. package/dist/waku/server/assets/{chat-CN1qUeN-.js → chat-BjsQFRTR.js} +4 -4
  43. package/dist/waku/server/assets/{image.webp-PNGidV2r.js → image.webp-DJPJ0Uey.js} +1 -1
  44. package/dist/waku/server/assets/{img-C2Ne7ke5.js → img-BuyJk1aC.js} +1 -1
  45. package/dist/waku/server/assets/{index-6LQQnOj9.js → index-47GKCypM.js} +1 -1
  46. package/dist/waku/server/assets/{index-D6orYQqE.js → index-B7xdiwp5.js} +1 -1
  47. package/dist/waku/server/assets/{index-CtEJq0xW.js → index-Bb8CvExW.js} +5 -5
  48. package/dist/waku/server/assets/{index-DFPuXyRR.js → index-BkkzeniP.js} +1 -1
  49. package/dist/waku/server/assets/{index-dpJ5KyUl.js → index-Bv0lOgQ0.js} +1 -1
  50. package/dist/waku/server/assets/{index-AIo6cWfN.js → index-M7KOE8Pa.js} +1 -1
  51. package/dist/waku/server/assets/{index-QgPg52ej.js → index-WKo6xEjd.js} +1 -1
  52. package/dist/waku/server/assets/{index-BtnFj3IN.js → index-o1S-S6Ss.js} +1 -1
  53. package/dist/waku/server/assets/{search-BuYfcIgW.js → search-O98TdRSL.js} +2 -2
  54. package/dist/waku/server/assets/{server-entry-inner-DrYrCg3c.js → server-entry-inner-DKPA3uS5.js} +60 -12
  55. package/dist/waku/server/assets/{token-BJQ71htz.js → token-BpthfJxo.js} +3 -3
  56. package/dist/waku/server/assets/{token-util-BdUbceAe.js → token-util-3zsL8R5b.js} +1 -1
  57. package/dist/waku/server/assets/{token-util-WrcienE5.js → token-util-BaSHt7dT.js} +2 -2
  58. package/dist/waku/server/build.js +1 -1
  59. package/dist/waku/server/index.js +1 -1
  60. package/dist/waku/server/ssr/__vite_rsc_assets_manifest.js +150 -150
  61. package/dist/waku/server/ssr/assets/{core-CLB7CUo5.js → core-Ru16gShL.js} +3 -3
  62. package/dist/waku/server/ssr/assets/{index-CKMvBRnq.js → index-BFvm1zbH.js} +4 -4
  63. package/dist/waku/server/ssr/assets/{index-BggSP1CG.js → index-CTD5LS21.js} +3 -3
  64. package/dist/waku/server/ssr/assets/{index-F8Xj3Sj4.js → index-DR2zqaC5.js} +1 -1
  65. package/dist/waku/server/ssr/index.js +6 -6
  66. package/package.json +3 -3
  67. package/dist/waku/public/assets/_root-CzUOgPm2.css +0 -1
  68. package/dist/waku/public/assets/index-B7lX48CB.js +0 -1
  69. package/dist/waku/server/assets/_root-CzUOgPm2.css +0 -1
@@ -1 +1 @@
1
- import{r as p,j as D,R as Ee,a as Ye}from"./index-OFfnl8sH.js";import{I as Ze,m as qe}from"./Icon-D30p-2dq.js";const Ke=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Xe=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,r)=>r?r.toUpperCase():o.toLowerCase());const ve=e=>{const t=Xe(e);return t.charAt(0).toUpperCase()+t.slice(1)};const lo=(e,t)=>{const o=p.forwardRef(({className:r,...n},s)=>p.createElement(Ze,{ref:s,iconNode:t,className:qe(`lucide-${Ke(ve(e))}`,`lucide-${e}`,r),...n}));return o.displayName=ve(e),o},Je=(e,t)=>{const o=new Array(e.length+t.length);for(let r=0;r<e.length;r++)o[r]=e[r];for(let r=0;r<t.length;r++)o[e.length+r]=t[r];return o},Qe=(e,t)=>({classGroupId:e,validator:t}),Ie=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o}),ee="-",xe=[],et="arbitrary..",tt=e=>{const t=rt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return ot(i);const l=i.split(ee),a=l[0]===""&&l.length>1?1:0;return Me(l,a,t)},getConflictingClassGroupIds:(i,l)=>{if(l){const a=r[i],u=o[i];return a?u?Je(u,a):a:u||xe}return o[i]||xe}}},Me=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;const n=e[t],s=o.nextPart.get(n);if(s){const u=Me(e,t+1,s);if(u)return u}const i=o.validators;if(i===null)return;const l=t===0?e.join(ee):e.slice(t).join(ee),a=i.length;for(let u=0;u<a;u++){const b=i[u];if(b.validator(l))return b.classGroupId}},ot=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),o=t.indexOf(":"),r=t.slice(0,o);return r?et+r:void 0})(),rt=e=>{const{theme:t,classGroups:o}=e;return nt(o,t)},nt=(e,t)=>{const o=Ie();for(const r in e){const n=e[r];ce(n,o,r,t)}return o},ce=(e,t,o,r)=>{const n=e.length;for(let s=0;s<n;s++){const i=e[s];st(i,t,o,r)}},st=(e,t,o,r)=>{if(typeof e=="string"){it(e,t,o);return}if(typeof e=="function"){at(e,t,o,r);return}lt(e,t,o,r)},it=(e,t,o)=>{const r=e===""?t:Oe(t,e);r.classGroupId=o},at=(e,t,o,r)=>{if(ct(e)){ce(e(r),t,o,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Qe(o,e))},lt=(e,t,o,r)=>{const n=Object.entries(e),s=n.length;for(let i=0;i<s;i++){const[l,a]=n[i];ce(a,Oe(t,l),o,r)}},Oe=(e,t)=>{let o=e;const r=t.split(ee),n=r.length;for(let s=0;s<n;s++){const i=r[s];let l=o.nextPart.get(i);l||(l=Ie(),o.nextPart.set(i,l)),o=l}return o},ct=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,dt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),r=Object.create(null);const n=(s,i)=>{o[s]=i,t++,t>e&&(t=0,r=o,o=Object.create(null))};return{get(s){let i=o[s];if(i!==void 0)return i;if((i=r[s])!==void 0)return n(s,i),i},set(s,i){s in o?o[s]=i:n(s,i)}}},le="!",we=":",ut=[],ke=(e,t,o,r,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:r,isExternal:n}),mt=e=>{const{prefix:t,experimentalParseClassName:o}=e;let r=n=>{const s=[];let i=0,l=0,a=0,u;const b=n.length;for(let k=0;k<b;k++){const x=n[k];if(i===0&&l===0){if(x===we){s.push(n.slice(a,k)),a=k+1;continue}if(x==="/"){u=k;continue}}x==="["?i++:x==="]"?i--:x==="("?l++:x===")"&&l--}const h=s.length===0?n:n.slice(a);let y=h,v=!1;h.endsWith(le)?(y=h.slice(0,-1),v=!0):h.startsWith(le)&&(y=h.slice(1),v=!0);const S=u&&u>a?u-a:void 0;return ke(s,v,y,S)};if(t){const n=t+we,s=r;r=i=>i.startsWith(n)?s(i.slice(n.length)):ke(ut,!1,i,void 0,!0)}if(o){const n=r;r=s=>o({className:s,parseClassName:n})}return r},ft=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((o,r)=>{t.set(o,1e6+r)}),o=>{const r=[];let n=[];for(let s=0;s<o.length;s++){const i=o[s],l=i[0]==="[",a=t.has(i);l||a?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(i)):n.push(i)}return n.length>0&&(n.sort(),r.push(...n)),r}},pt=e=>({cache:dt(e.cacheSize),parseClassName:mt(e),sortModifiers:ft(e),...tt(e)}),bt=/\s+/,gt=(e,t)=>{const{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:s}=t,i=[],l=e.trim().split(bt);let a="";for(let u=l.length-1;u>=0;u-=1){const b=l[u],{isExternal:h,modifiers:y,hasImportantModifier:v,baseClassName:S,maybePostfixModifierPosition:k}=o(b);if(h){a=b+(a.length>0?" "+a:a);continue}let x=!!k,O=r(x?S.substring(0,k):S);if(!O){if(!x){a=b+(a.length>0?" "+a:a);continue}if(O=r(S),!O){a=b+(a.length>0?" "+a:a);continue}x=!1}const B=y.length===0?"":y.length===1?y[0]:s(y).join(":"),W=v?B+le:B,V=W+O;if(i.indexOf(V)>-1)continue;i.push(V);const G=n(O,x);for(let T=0;T<G.length;++T){const F=G[T];i.push(W+F)}a=b+(a.length>0?" "+a:a)}return a},ht=(...e)=>{let t=0,o,r,n="";for(;t<e.length;)(o=e[t++])&&(r=Te(o))&&(n&&(n+=" "),n+=r);return n},Te=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Te(e[r]))&&(o&&(o+=" "),o+=t);return o},yt=(e,...t)=>{let o,r,n,s;const i=a=>{const u=t.reduce((b,h)=>h(b),e());return o=pt(u),r=o.cache.get,n=o.cache.set,s=l,l(a)},l=a=>{const u=r(a);if(u)return u;const b=gt(a,o);return n(a,b),b};return s=i,(...a)=>s(ht(...a))},vt=[],w=e=>{const t=o=>o[e]||vt;return t.isThemeGetter=!0,t},je=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_e=/^\((?:(\w[\w-]*):)?(.+)\)$/i,xt=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,wt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ct=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,St=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,At=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,E=e=>xt.test(e),g=e=>!!e&&!Number.isNaN(Number(e)),I=e=>!!e&&Number.isInteger(Number(e)),ae=e=>e.endsWith("%")&&g(e.slice(0,-1)),P=e=>wt.test(e),Le=()=>!0,Rt=e=>kt.test(e)&&!Ct.test(e),de=()=>!1,zt=e=>St.test(e),Nt=e=>At.test(e),Pt=e=>!c(e)&&!d(e),Et=e=>M(e,$e,de),c=e=>je.test(e),_=e=>M(e,We,Rt),Ce=e=>M(e,Vt,g),It=e=>M(e,Ue,Le),Mt=e=>M(e,Fe,de),Se=e=>M(e,Ve,de),Ot=e=>M(e,Ge,Nt),X=e=>M(e,De,zt),d=e=>_e.test(e),U=e=>L(e,We),Tt=e=>L(e,Fe),Ae=e=>L(e,Ve),jt=e=>L(e,$e),_t=e=>L(e,Ge),J=e=>L(e,De,!0),Lt=e=>L(e,Ue,!0),M=(e,t,o)=>{const r=je.exec(e);return r?r[1]?t(r[1]):o(r[2]):!1},L=(e,t,o=!1)=>{const r=_e.exec(e);return r?r[1]?t(r[1]):o:!1},Ve=e=>e==="position"||e==="percentage",Ge=e=>e==="image"||e==="url",$e=e=>e==="length"||e==="size"||e==="bg-size",We=e=>e==="length",Vt=e=>e==="number",Fe=e=>e==="family-name",Ue=e=>e==="number"||e==="weight",De=e=>e==="shadow",Gt=()=>{const e=w("color"),t=w("font"),o=w("text"),r=w("font-weight"),n=w("tracking"),s=w("leading"),i=w("breakpoint"),l=w("container"),a=w("spacing"),u=w("radius"),b=w("shadow"),h=w("inset-shadow"),y=w("text-shadow"),v=w("drop-shadow"),S=w("blur"),k=w("perspective"),x=w("aspect"),O=w("ease"),B=w("animate"),W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...V(),d,c],T=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],m=()=>[d,c,a],z=()=>[E,"full","auto",...m()],ue=()=>[I,"none","subgrid",d,c],me=()=>["auto",{span:["full",I,d,c]},I,d,c],H=()=>[I,"auto",d,c],fe=()=>["auto","min","max","fr",d,c],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...m()],j=()=>[E,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...m()],re=()=>[E,"screen","full","dvw","lvw","svw","min","max","fit",...m()],ne=()=>[E,"screen","full","lh","dvh","lvh","svh","min","max","fit",...m()],f=()=>[e,d,c],pe=()=>[...V(),Ae,Se,{position:[d,c]}],be=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ge=()=>["auto","cover","contain",jt,Et,{size:[d,c]}],se=()=>[ae,U,_],A=()=>["","none","full",u,d,c],R=()=>["",g,U,_],Y=()=>["solid","dashed","dotted","double"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>[g,ae,Ae,Se],ye=()=>["","none",S,d,c],Z=()=>["none",g,d,c],q=()=>["none",g,d,c],ie=()=>[g,d,c],K=()=>[E,"full",...m()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[P],breakpoint:[P],color:[Le],container:[P],"drop-shadow":[P],ease:["in","out","in-out"],font:[Pt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[P],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[P],shadow:[P],spacing:["px",g],text:[P],"text-shadow":[P],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",E,c,d,x]}],container:["container"],columns:[{columns:[g,c,d,l]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:G()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[I,"auto",d,c]}],basis:[{basis:[E,"full","auto",l,...m()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[g,E,"auto","initial","none",c]}],grow:[{grow:["",g,d,c]}],shrink:[{shrink:["",g,d,c]}],order:[{order:[I,"first","last","none",d,c]}],"grid-cols":[{"grid-cols":ue()}],"col-start-end":[{col:me()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":ue()}],"row-start-end":[{row:me()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":fe()}],"auto-rows":[{"auto-rows":fe()}],gap:[{gap:m()}],"gap-x":[{"gap-x":m()}],"gap-y":[{"gap-y":m()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:m()}],px:[{px:m()}],py:[{py:m()}],ps:[{ps:m()}],pe:[{pe:m()}],pbs:[{pbs:m()}],pbe:[{pbe:m()}],pt:[{pt:m()}],pr:[{pr:m()}],pb:[{pb:m()}],pl:[{pl:m()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mbs:[{mbs:N()}],mbe:[{mbe:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":m()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":m()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],"inline-size":[{inline:["auto",...re()]}],"min-inline-size":[{"min-inline":["auto",...re()]}],"max-inline-size":[{"max-inline":["none",...re()]}],"block-size":[{block:["auto",...ne()]}],"min-block-size":[{"min-block":["auto",...ne()]}],"max-block-size":[{"max-block":["none",...ne()]}],w:[{w:[l,"screen",...j()]}],"min-w":[{"min-w":[l,"screen","none",...j()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",o,U,_]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Lt,It]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ae,c]}],"font-family":[{font:[Tt,Mt,t]}],"font-features":[{"font-features":[c]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,d,c]}],"line-clamp":[{"line-clamp":[g,"none",d,Ce]}],leading:[{leading:[s,...m()]}],"list-image":[{"list-image":["none",d,c]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",d,c]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:f()}],"text-color":[{text:f()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:[g,"from-font","auto",d,_]}],"text-decoration-color":[{decoration:f()}],"underline-offset":[{"underline-offset":[g,"auto",d,c]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d,c]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d,c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:pe()}],"bg-repeat":[{bg:be()}],"bg-size":[{bg:ge()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},I,d,c],radial:["",d,c],conic:[I,d,c]},_t,Ot]}],"bg-color":[{bg:f()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:f()}],"gradient-via":[{via:f()}],"gradient-to":[{to:f()}],rounded:[{rounded:A()}],"rounded-s":[{"rounded-s":A()}],"rounded-e":[{"rounded-e":A()}],"rounded-t":[{"rounded-t":A()}],"rounded-r":[{"rounded-r":A()}],"rounded-b":[{"rounded-b":A()}],"rounded-l":[{"rounded-l":A()}],"rounded-ss":[{"rounded-ss":A()}],"rounded-se":[{"rounded-se":A()}],"rounded-ee":[{"rounded-ee":A()}],"rounded-es":[{"rounded-es":A()}],"rounded-tl":[{"rounded-tl":A()}],"rounded-tr":[{"rounded-tr":A()}],"rounded-br":[{"rounded-br":A()}],"rounded-bl":[{"rounded-bl":A()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-bs":[{"border-bs":R()}],"border-w-be":[{"border-be":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":R()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Y(),"hidden","none"]}],"divide-style":[{divide:[...Y(),"hidden","none"]}],"border-color":[{border:f()}],"border-color-x":[{"border-x":f()}],"border-color-y":[{"border-y":f()}],"border-color-s":[{"border-s":f()}],"border-color-e":[{"border-e":f()}],"border-color-bs":[{"border-bs":f()}],"border-color-be":[{"border-be":f()}],"border-color-t":[{"border-t":f()}],"border-color-r":[{"border-r":f()}],"border-color-b":[{"border-b":f()}],"border-color-l":[{"border-l":f()}],"divide-color":[{divide:f()}],"outline-style":[{outline:[...Y(),"none","hidden"]}],"outline-offset":[{"outline-offset":[g,d,c]}],"outline-w":[{outline:["",g,U,_]}],"outline-color":[{outline:f()}],shadow:[{shadow:["","none",b,J,X]}],"shadow-color":[{shadow:f()}],"inset-shadow":[{"inset-shadow":["none",h,J,X]}],"inset-shadow-color":[{"inset-shadow":f()}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:f()}],"ring-offset-w":[{"ring-offset":[g,_]}],"ring-offset-color":[{"ring-offset":f()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":f()}],"text-shadow":[{"text-shadow":["none",y,J,X]}],"text-shadow-color":[{"text-shadow":f()}],opacity:[{opacity:[g,d,c]}],"mix-blend":[{"mix-blend":[...he(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":he()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[g]}],"mask-image-linear-from-pos":[{"mask-linear-from":C()}],"mask-image-linear-to-pos":[{"mask-linear-to":C()}],"mask-image-linear-from-color":[{"mask-linear-from":f()}],"mask-image-linear-to-color":[{"mask-linear-to":f()}],"mask-image-t-from-pos":[{"mask-t-from":C()}],"mask-image-t-to-pos":[{"mask-t-to":C()}],"mask-image-t-from-color":[{"mask-t-from":f()}],"mask-image-t-to-color":[{"mask-t-to":f()}],"mask-image-r-from-pos":[{"mask-r-from":C()}],"mask-image-r-to-pos":[{"mask-r-to":C()}],"mask-image-r-from-color":[{"mask-r-from":f()}],"mask-image-r-to-color":[{"mask-r-to":f()}],"mask-image-b-from-pos":[{"mask-b-from":C()}],"mask-image-b-to-pos":[{"mask-b-to":C()}],"mask-image-b-from-color":[{"mask-b-from":f()}],"mask-image-b-to-color":[{"mask-b-to":f()}],"mask-image-l-from-pos":[{"mask-l-from":C()}],"mask-image-l-to-pos":[{"mask-l-to":C()}],"mask-image-l-from-color":[{"mask-l-from":f()}],"mask-image-l-to-color":[{"mask-l-to":f()}],"mask-image-x-from-pos":[{"mask-x-from":C()}],"mask-image-x-to-pos":[{"mask-x-to":C()}],"mask-image-x-from-color":[{"mask-x-from":f()}],"mask-image-x-to-color":[{"mask-x-to":f()}],"mask-image-y-from-pos":[{"mask-y-from":C()}],"mask-image-y-to-pos":[{"mask-y-to":C()}],"mask-image-y-from-color":[{"mask-y-from":f()}],"mask-image-y-to-color":[{"mask-y-to":f()}],"mask-image-radial":[{"mask-radial":[d,c]}],"mask-image-radial-from-pos":[{"mask-radial-from":C()}],"mask-image-radial-to-pos":[{"mask-radial-to":C()}],"mask-image-radial-from-color":[{"mask-radial-from":f()}],"mask-image-radial-to-color":[{"mask-radial-to":f()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":V()}],"mask-image-conic-pos":[{"mask-conic":[g]}],"mask-image-conic-from-pos":[{"mask-conic-from":C()}],"mask-image-conic-to-pos":[{"mask-conic-to":C()}],"mask-image-conic-from-color":[{"mask-conic-from":f()}],"mask-image-conic-to-color":[{"mask-conic-to":f()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:pe()}],"mask-repeat":[{mask:be()}],"mask-size":[{mask:ge()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",d,c]}],filter:[{filter:["","none",d,c]}],blur:[{blur:ye()}],brightness:[{brightness:[g,d,c]}],contrast:[{contrast:[g,d,c]}],"drop-shadow":[{"drop-shadow":["","none",v,J,X]}],"drop-shadow-color":[{"drop-shadow":f()}],grayscale:[{grayscale:["",g,d,c]}],"hue-rotate":[{"hue-rotate":[g,d,c]}],invert:[{invert:["",g,d,c]}],saturate:[{saturate:[g,d,c]}],sepia:[{sepia:["",g,d,c]}],"backdrop-filter":[{"backdrop-filter":["","none",d,c]}],"backdrop-blur":[{"backdrop-blur":ye()}],"backdrop-brightness":[{"backdrop-brightness":[g,d,c]}],"backdrop-contrast":[{"backdrop-contrast":[g,d,c]}],"backdrop-grayscale":[{"backdrop-grayscale":["",g,d,c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g,d,c]}],"backdrop-invert":[{"backdrop-invert":["",g,d,c]}],"backdrop-opacity":[{"backdrop-opacity":[g,d,c]}],"backdrop-saturate":[{"backdrop-saturate":[g,d,c]}],"backdrop-sepia":[{"backdrop-sepia":["",g,d,c]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":m()}],"border-spacing-x":[{"border-spacing-x":m()}],"border-spacing-y":[{"border-spacing-y":m()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",d,c]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[g,"initial",d,c]}],ease:[{ease:["linear","initial",O,d,c]}],delay:[{delay:[g,d,c]}],animate:[{animate:["none",B,d,c]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,d,c]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:Z()}],"rotate-x":[{"rotate-x":Z()}],"rotate-y":[{"rotate-y":Z()}],"rotate-z":[{"rotate-z":Z()}],scale:[{scale:q()}],"scale-x":[{"scale-x":q()}],"scale-y":[{"scale-y":q()}],"scale-z":[{"scale-z":q()}],"scale-3d":["scale-3d"],skew:[{skew:ie()}],"skew-x":[{"skew-x":ie()}],"skew-y":[{"skew-y":ie()}],transform:[{transform:[d,c,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:K()}],"translate-x":[{"translate-x":K()}],"translate-y":[{"translate-y":K()}],"translate-z":[{"translate-z":K()}],"translate-none":["translate-none"],accent:[{accent:f()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:f()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d,c]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mbs":[{"scroll-mbs":m()}],"scroll-mbe":[{"scroll-mbe":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pbs":[{"scroll-pbs":m()}],"scroll-pbe":[{"scroll-pbe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d,c]}],fill:[{fill:["none",...f()]}],"stroke-w":[{stroke:[g,U,_,Ce]}],stroke:[{stroke:["none",...f()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},co=yt(Gt);function Be(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Be(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function $t(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Be(e))&&(r&&(r+=" "),r+=t);return r}const Re=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ze=$t,Wt=(e,t)=>o=>{var r;if(t?.variants==null)return ze(e,o?.class,o?.className);const{variants:n,defaultVariants:s}=t,i=Object.keys(n).map(u=>{const b=o?.[u],h=s?.[u];if(b===null)return null;const y=Re(b)||Re(h);return n[u][y]}),l=o&&Object.entries(o).reduce((u,b)=>{let[h,y]=b;return y===void 0||(u[h]=y),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,b)=>{let{class:h,className:y,...v}=b;return Object.entries(v).every(S=>{let[k,x]=S;return Array.isArray(x)?x.includes({...s,...l}[k]):{...s,...l}[k]===x})?[...u,h,y]:u},[]);return ze(e,i,a,o?.class,o?.className)},Ne={primary:"bg-fd-primary text-fd-primary-foreground hover:bg-fd-primary/80 disabled:bg-fd-secondary disabled:text-fd-secondary-foreground",outline:"border hover:bg-fd-accent hover:text-fd-accent-foreground",ghost:"hover:bg-fd-accent hover:text-fd-accent-foreground",secondary:"border bg-fd-secondary text-fd-secondary-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"},uo=Wt("inline-flex items-center justify-center rounded-md p-2 text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring",{variants:{variant:Ne,color:Ne,size:{sm:"gap-1 px-2 py-1.5 text-xs",icon:"p-1.5 [&_svg]:size-5","icon-sm":"p-1.5 [&_svg]:size-4.5","icon-xs":"p-1 [&_svg]:size-4"}}});function mo(e,t,{checkForDefaultPrevented:o=!0}={}){return function(n){if(e?.(n),o===!1||!n.defaultPrevented)return t?.(n)}}function fo(e,t){const o=p.createContext(t),r=s=>{const{children:i,...l}=s,a=p.useMemo(()=>l,Object.values(l));return D.jsx(o.Provider,{value:a,children:i})};r.displayName=e+"Provider";function n(s){const i=p.useContext(o);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,n]}function po(e,t=[]){let o=[];function r(s,i){const l=p.createContext(i),a=o.length;o=[...o,i];const u=h=>{const{scope:y,children:v,...S}=h,k=y?.[e]?.[a]||l,x=p.useMemo(()=>S,Object.values(S));return D.jsx(k.Provider,{value:x,children:v})};u.displayName=s+"Provider";function b(h,y){const v=y?.[e]?.[a]||l,S=p.useContext(v);if(S)return S;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[u,b]}const n=()=>{const s=o.map(i=>p.createContext(i));return function(l){const a=l?.[e]||s;return p.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return n.scopeName=e,[r,Ft(n,...t)]}function Ft(...e){const t=e[0];if(e.length===1)return t;const o=()=>{const r=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(s){const i=r.reduce((l,{useScope:a,scopeName:u})=>{const h=a(s)[`__scope${u}`];return{...l,...h}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return o.scopeName=t.scopeName,o}function Pe(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function He(...e){return t=>{let o=!1;const r=e.map(n=>{const s=Pe(n,t);return!o&&typeof s=="function"&&(o=!0),s});if(o)return()=>{for(let n=0;n<r.length;n++){const s=r[n];typeof s=="function"?s():Pe(e[n],null)}}}}function Ut(...e){return p.useCallback(He(...e),e)}function Dt(e){const t=Bt(e),o=p.forwardRef((r,n)=>{const{children:s,...i}=r,l=p.Children.toArray(s),a=l.find(Yt);if(a){const u=a.props.children,b=l.map(h=>h===a?p.Children.count(u)>1?p.Children.only(null):p.isValidElement(u)?u.props.children:null:h);return D.jsx(t,{...i,ref:n,children:p.isValidElement(u)?p.cloneElement(u,void 0,b):null})}return D.jsx(t,{...i,ref:n,children:s})});return o.displayName=`${e}.Slot`,o}function Bt(e){const t=p.forwardRef((o,r)=>{const{children:n,...s}=o;if(p.isValidElement(n)){const i=qt(n),l=Zt(s,n.props);return n.type!==p.Fragment&&(l.ref=r?He(r,i):i),p.cloneElement(n,l)}return p.Children.count(n)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ht=Symbol("radix.slottable");function Yt(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ht}function Zt(e,t){const o={...t};for(const r in t){const n=e[r],s=t[r];/^on[A-Z]/.test(r)?n&&s?o[r]=(...l)=>{const a=s(...l);return n(...l),a}:n&&(o[r]=n):r==="style"?o[r]={...n,...s}:r==="className"&&(o[r]=[n,s].filter(Boolean).join(" "))}return{...e,...o}}function qt(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var te=globalThis?.document?p.useLayoutEffect:()=>{},Kt=Ee[" useId ".trim().toString()]||(()=>{}),Xt=0;function bo(e){const[t,o]=p.useState(Kt());return te(()=>{o(r=>r??String(Xt++))},[e]),e||(t?`radix-${t}`:"")}var Jt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],go=Jt.reduce((e,t)=>{const o=Dt(`Primitive.${t}`),r=p.forwardRef((n,s)=>{const{asChild:i,...l}=n,a=i?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D.jsx(a,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ho(e,t){e&&Ye.flushSync(()=>e.dispatchEvent(t))}function yo(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...o)=>t.current?.(...o),[])}var Qt=Ee[" useInsertionEffect ".trim().toString()]||te;function vo({prop:e,defaultProp:t,onChange:o=()=>{},caller:r}){const[n,s,i]=eo({defaultProp:t,onChange:o}),l=e!==void 0,a=l?e:n;{const b=p.useRef(e!==void 0);p.useEffect(()=>{const h=b.current;h!==l&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),b.current=l},[l,r])}const u=p.useCallback(b=>{if(l){const h=to(b)?b(e):b;h!==e&&i.current?.(h)}else s(b)},[l,e,s,i]);return[a,u]}function eo({defaultProp:e,onChange:t}){const[o,r]=p.useState(e),n=p.useRef(o),s=p.useRef(t);return Qt(()=>{s.current=t},[t]),p.useEffect(()=>{n.current!==o&&(s.current?.(o),n.current=o)},[o,n]),[o,r,s]}function to(e){return typeof e=="function"}function oo(e,t){return p.useReducer((o,r)=>t[o][r]??o,e)}var ro=e=>{const{present:t,children:o}=e,r=no(t),n=typeof o=="function"?o({present:r.isPresent}):p.Children.only(o),s=Ut(r.ref,so(n));return typeof o=="function"||r.isPresent?p.cloneElement(n,{ref:s}):null};ro.displayName="Presence";function no(e){const[t,o]=p.useState(),r=p.useRef(null),n=p.useRef(e),s=p.useRef("none"),i=e?"mounted":"unmounted",[l,a]=oo(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const u=Q(r.current);s.current=l==="mounted"?u:"none"},[l]),te(()=>{const u=r.current,b=n.current;if(b!==e){const y=s.current,v=Q(u);e?a("MOUNT"):v==="none"||u?.display==="none"?a("UNMOUNT"):a(b&&y!==v?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,a]),te(()=>{if(t){let u;const b=t.ownerDocument.defaultView??window,h=v=>{const k=Q(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&k&&(a("ANIMATION_END"),!n.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=b.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},y=v=>{v.target===t&&(s.current=Q(r.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{b.clearTimeout(u),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:p.useCallback(u=>{r.current=u?getComputedStyle(u):null,o(u)},[])}}function Q(e){return e?.animationName||"none"}function so(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}export{go as P,Wt as a,uo as b,lo as c,ro as d,po as e,yo as f,te as g,mo as h,vo as i,bo as j,Dt as k,ho as l,fo as m,co as t,Ut as u};
1
+ import{r as p,j as D,R as Ee,a as Ye}from"./index-BP1WY6Lo.js";import{I as Ze,m as qe}from"./Icon-CzRHlV7t.js";const Ke=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Xe=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,r)=>r?r.toUpperCase():o.toLowerCase());const ve=e=>{const t=Xe(e);return t.charAt(0).toUpperCase()+t.slice(1)};const lo=(e,t)=>{const o=p.forwardRef(({className:r,...n},s)=>p.createElement(Ze,{ref:s,iconNode:t,className:qe(`lucide-${Ke(ve(e))}`,`lucide-${e}`,r),...n}));return o.displayName=ve(e),o},Je=(e,t)=>{const o=new Array(e.length+t.length);for(let r=0;r<e.length;r++)o[r]=e[r];for(let r=0;r<t.length;r++)o[e.length+r]=t[r];return o},Qe=(e,t)=>({classGroupId:e,validator:t}),Ie=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o}),ee="-",xe=[],et="arbitrary..",tt=e=>{const t=rt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return ot(i);const l=i.split(ee),a=l[0]===""&&l.length>1?1:0;return Me(l,a,t)},getConflictingClassGroupIds:(i,l)=>{if(l){const a=r[i],u=o[i];return a?u?Je(u,a):a:u||xe}return o[i]||xe}}},Me=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;const n=e[t],s=o.nextPart.get(n);if(s){const u=Me(e,t+1,s);if(u)return u}const i=o.validators;if(i===null)return;const l=t===0?e.join(ee):e.slice(t).join(ee),a=i.length;for(let u=0;u<a;u++){const b=i[u];if(b.validator(l))return b.classGroupId}},ot=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),o=t.indexOf(":"),r=t.slice(0,o);return r?et+r:void 0})(),rt=e=>{const{theme:t,classGroups:o}=e;return nt(o,t)},nt=(e,t)=>{const o=Ie();for(const r in e){const n=e[r];ce(n,o,r,t)}return o},ce=(e,t,o,r)=>{const n=e.length;for(let s=0;s<n;s++){const i=e[s];st(i,t,o,r)}},st=(e,t,o,r)=>{if(typeof e=="string"){it(e,t,o);return}if(typeof e=="function"){at(e,t,o,r);return}lt(e,t,o,r)},it=(e,t,o)=>{const r=e===""?t:Oe(t,e);r.classGroupId=o},at=(e,t,o,r)=>{if(ct(e)){ce(e(r),t,o,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Qe(o,e))},lt=(e,t,o,r)=>{const n=Object.entries(e),s=n.length;for(let i=0;i<s;i++){const[l,a]=n[i];ce(a,Oe(t,l),o,r)}},Oe=(e,t)=>{let o=e;const r=t.split(ee),n=r.length;for(let s=0;s<n;s++){const i=r[s];let l=o.nextPart.get(i);l||(l=Ie(),o.nextPart.set(i,l)),o=l}return o},ct=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,dt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),r=Object.create(null);const n=(s,i)=>{o[s]=i,t++,t>e&&(t=0,r=o,o=Object.create(null))};return{get(s){let i=o[s];if(i!==void 0)return i;if((i=r[s])!==void 0)return n(s,i),i},set(s,i){s in o?o[s]=i:n(s,i)}}},le="!",we=":",ut=[],ke=(e,t,o,r,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:r,isExternal:n}),mt=e=>{const{prefix:t,experimentalParseClassName:o}=e;let r=n=>{const s=[];let i=0,l=0,a=0,u;const b=n.length;for(let k=0;k<b;k++){const x=n[k];if(i===0&&l===0){if(x===we){s.push(n.slice(a,k)),a=k+1;continue}if(x==="/"){u=k;continue}}x==="["?i++:x==="]"?i--:x==="("?l++:x===")"&&l--}const h=s.length===0?n:n.slice(a);let y=h,v=!1;h.endsWith(le)?(y=h.slice(0,-1),v=!0):h.startsWith(le)&&(y=h.slice(1),v=!0);const S=u&&u>a?u-a:void 0;return ke(s,v,y,S)};if(t){const n=t+we,s=r;r=i=>i.startsWith(n)?s(i.slice(n.length)):ke(ut,!1,i,void 0,!0)}if(o){const n=r;r=s=>o({className:s,parseClassName:n})}return r},ft=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((o,r)=>{t.set(o,1e6+r)}),o=>{const r=[];let n=[];for(let s=0;s<o.length;s++){const i=o[s],l=i[0]==="[",a=t.has(i);l||a?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(i)):n.push(i)}return n.length>0&&(n.sort(),r.push(...n)),r}},pt=e=>({cache:dt(e.cacheSize),parseClassName:mt(e),sortModifiers:ft(e),...tt(e)}),bt=/\s+/,gt=(e,t)=>{const{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:s}=t,i=[],l=e.trim().split(bt);let a="";for(let u=l.length-1;u>=0;u-=1){const b=l[u],{isExternal:h,modifiers:y,hasImportantModifier:v,baseClassName:S,maybePostfixModifierPosition:k}=o(b);if(h){a=b+(a.length>0?" "+a:a);continue}let x=!!k,O=r(x?S.substring(0,k):S);if(!O){if(!x){a=b+(a.length>0?" "+a:a);continue}if(O=r(S),!O){a=b+(a.length>0?" "+a:a);continue}x=!1}const B=y.length===0?"":y.length===1?y[0]:s(y).join(":"),W=v?B+le:B,V=W+O;if(i.indexOf(V)>-1)continue;i.push(V);const G=n(O,x);for(let T=0;T<G.length;++T){const F=G[T];i.push(W+F)}a=b+(a.length>0?" "+a:a)}return a},ht=(...e)=>{let t=0,o,r,n="";for(;t<e.length;)(o=e[t++])&&(r=Te(o))&&(n&&(n+=" "),n+=r);return n},Te=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Te(e[r]))&&(o&&(o+=" "),o+=t);return o},yt=(e,...t)=>{let o,r,n,s;const i=a=>{const u=t.reduce((b,h)=>h(b),e());return o=pt(u),r=o.cache.get,n=o.cache.set,s=l,l(a)},l=a=>{const u=r(a);if(u)return u;const b=gt(a,o);return n(a,b),b};return s=i,(...a)=>s(ht(...a))},vt=[],w=e=>{const t=o=>o[e]||vt;return t.isThemeGetter=!0,t},je=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_e=/^\((?:(\w[\w-]*):)?(.+)\)$/i,xt=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,wt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ct=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,St=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,At=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,E=e=>xt.test(e),g=e=>!!e&&!Number.isNaN(Number(e)),I=e=>!!e&&Number.isInteger(Number(e)),ae=e=>e.endsWith("%")&&g(e.slice(0,-1)),P=e=>wt.test(e),Le=()=>!0,Rt=e=>kt.test(e)&&!Ct.test(e),de=()=>!1,zt=e=>St.test(e),Nt=e=>At.test(e),Pt=e=>!c(e)&&!d(e),Et=e=>M(e,$e,de),c=e=>je.test(e),_=e=>M(e,We,Rt),Ce=e=>M(e,Vt,g),It=e=>M(e,Ue,Le),Mt=e=>M(e,Fe,de),Se=e=>M(e,Ve,de),Ot=e=>M(e,Ge,Nt),X=e=>M(e,De,zt),d=e=>_e.test(e),U=e=>L(e,We),Tt=e=>L(e,Fe),Ae=e=>L(e,Ve),jt=e=>L(e,$e),_t=e=>L(e,Ge),J=e=>L(e,De,!0),Lt=e=>L(e,Ue,!0),M=(e,t,o)=>{const r=je.exec(e);return r?r[1]?t(r[1]):o(r[2]):!1},L=(e,t,o=!1)=>{const r=_e.exec(e);return r?r[1]?t(r[1]):o:!1},Ve=e=>e==="position"||e==="percentage",Ge=e=>e==="image"||e==="url",$e=e=>e==="length"||e==="size"||e==="bg-size",We=e=>e==="length",Vt=e=>e==="number",Fe=e=>e==="family-name",Ue=e=>e==="number"||e==="weight",De=e=>e==="shadow",Gt=()=>{const e=w("color"),t=w("font"),o=w("text"),r=w("font-weight"),n=w("tracking"),s=w("leading"),i=w("breakpoint"),l=w("container"),a=w("spacing"),u=w("radius"),b=w("shadow"),h=w("inset-shadow"),y=w("text-shadow"),v=w("drop-shadow"),S=w("blur"),k=w("perspective"),x=w("aspect"),O=w("ease"),B=w("animate"),W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...V(),d,c],T=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],m=()=>[d,c,a],z=()=>[E,"full","auto",...m()],ue=()=>[I,"none","subgrid",d,c],me=()=>["auto",{span:["full",I,d,c]},I,d,c],H=()=>[I,"auto",d,c],fe=()=>["auto","min","max","fr",d,c],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...m()],j=()=>[E,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...m()],re=()=>[E,"screen","full","dvw","lvw","svw","min","max","fit",...m()],ne=()=>[E,"screen","full","lh","dvh","lvh","svh","min","max","fit",...m()],f=()=>[e,d,c],pe=()=>[...V(),Ae,Se,{position:[d,c]}],be=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ge=()=>["auto","cover","contain",jt,Et,{size:[d,c]}],se=()=>[ae,U,_],A=()=>["","none","full",u,d,c],R=()=>["",g,U,_],Y=()=>["solid","dashed","dotted","double"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>[g,ae,Ae,Se],ye=()=>["","none",S,d,c],Z=()=>["none",g,d,c],q=()=>["none",g,d,c],ie=()=>[g,d,c],K=()=>[E,"full",...m()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[P],breakpoint:[P],color:[Le],container:[P],"drop-shadow":[P],ease:["in","out","in-out"],font:[Pt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[P],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[P],shadow:[P],spacing:["px",g],text:[P],"text-shadow":[P],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",E,c,d,x]}],container:["container"],columns:[{columns:[g,c,d,l]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:G()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[I,"auto",d,c]}],basis:[{basis:[E,"full","auto",l,...m()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[g,E,"auto","initial","none",c]}],grow:[{grow:["",g,d,c]}],shrink:[{shrink:["",g,d,c]}],order:[{order:[I,"first","last","none",d,c]}],"grid-cols":[{"grid-cols":ue()}],"col-start-end":[{col:me()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":ue()}],"row-start-end":[{row:me()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":fe()}],"auto-rows":[{"auto-rows":fe()}],gap:[{gap:m()}],"gap-x":[{"gap-x":m()}],"gap-y":[{"gap-y":m()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:m()}],px:[{px:m()}],py:[{py:m()}],ps:[{ps:m()}],pe:[{pe:m()}],pbs:[{pbs:m()}],pbe:[{pbe:m()}],pt:[{pt:m()}],pr:[{pr:m()}],pb:[{pb:m()}],pl:[{pl:m()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mbs:[{mbs:N()}],mbe:[{mbe:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":m()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":m()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],"inline-size":[{inline:["auto",...re()]}],"min-inline-size":[{"min-inline":["auto",...re()]}],"max-inline-size":[{"max-inline":["none",...re()]}],"block-size":[{block:["auto",...ne()]}],"min-block-size":[{"min-block":["auto",...ne()]}],"max-block-size":[{"max-block":["none",...ne()]}],w:[{w:[l,"screen",...j()]}],"min-w":[{"min-w":[l,"screen","none",...j()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",o,U,_]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Lt,It]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ae,c]}],"font-family":[{font:[Tt,Mt,t]}],"font-features":[{"font-features":[c]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,d,c]}],"line-clamp":[{"line-clamp":[g,"none",d,Ce]}],leading:[{leading:[s,...m()]}],"list-image":[{"list-image":["none",d,c]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",d,c]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:f()}],"text-color":[{text:f()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:[g,"from-font","auto",d,_]}],"text-decoration-color":[{decoration:f()}],"underline-offset":[{"underline-offset":[g,"auto",d,c]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d,c]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d,c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:pe()}],"bg-repeat":[{bg:be()}],"bg-size":[{bg:ge()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},I,d,c],radial:["",d,c],conic:[I,d,c]},_t,Ot]}],"bg-color":[{bg:f()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:f()}],"gradient-via":[{via:f()}],"gradient-to":[{to:f()}],rounded:[{rounded:A()}],"rounded-s":[{"rounded-s":A()}],"rounded-e":[{"rounded-e":A()}],"rounded-t":[{"rounded-t":A()}],"rounded-r":[{"rounded-r":A()}],"rounded-b":[{"rounded-b":A()}],"rounded-l":[{"rounded-l":A()}],"rounded-ss":[{"rounded-ss":A()}],"rounded-se":[{"rounded-se":A()}],"rounded-ee":[{"rounded-ee":A()}],"rounded-es":[{"rounded-es":A()}],"rounded-tl":[{"rounded-tl":A()}],"rounded-tr":[{"rounded-tr":A()}],"rounded-br":[{"rounded-br":A()}],"rounded-bl":[{"rounded-bl":A()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-bs":[{"border-bs":R()}],"border-w-be":[{"border-be":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":R()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Y(),"hidden","none"]}],"divide-style":[{divide:[...Y(),"hidden","none"]}],"border-color":[{border:f()}],"border-color-x":[{"border-x":f()}],"border-color-y":[{"border-y":f()}],"border-color-s":[{"border-s":f()}],"border-color-e":[{"border-e":f()}],"border-color-bs":[{"border-bs":f()}],"border-color-be":[{"border-be":f()}],"border-color-t":[{"border-t":f()}],"border-color-r":[{"border-r":f()}],"border-color-b":[{"border-b":f()}],"border-color-l":[{"border-l":f()}],"divide-color":[{divide:f()}],"outline-style":[{outline:[...Y(),"none","hidden"]}],"outline-offset":[{"outline-offset":[g,d,c]}],"outline-w":[{outline:["",g,U,_]}],"outline-color":[{outline:f()}],shadow:[{shadow:["","none",b,J,X]}],"shadow-color":[{shadow:f()}],"inset-shadow":[{"inset-shadow":["none",h,J,X]}],"inset-shadow-color":[{"inset-shadow":f()}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:f()}],"ring-offset-w":[{"ring-offset":[g,_]}],"ring-offset-color":[{"ring-offset":f()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":f()}],"text-shadow":[{"text-shadow":["none",y,J,X]}],"text-shadow-color":[{"text-shadow":f()}],opacity:[{opacity:[g,d,c]}],"mix-blend":[{"mix-blend":[...he(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":he()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[g]}],"mask-image-linear-from-pos":[{"mask-linear-from":C()}],"mask-image-linear-to-pos":[{"mask-linear-to":C()}],"mask-image-linear-from-color":[{"mask-linear-from":f()}],"mask-image-linear-to-color":[{"mask-linear-to":f()}],"mask-image-t-from-pos":[{"mask-t-from":C()}],"mask-image-t-to-pos":[{"mask-t-to":C()}],"mask-image-t-from-color":[{"mask-t-from":f()}],"mask-image-t-to-color":[{"mask-t-to":f()}],"mask-image-r-from-pos":[{"mask-r-from":C()}],"mask-image-r-to-pos":[{"mask-r-to":C()}],"mask-image-r-from-color":[{"mask-r-from":f()}],"mask-image-r-to-color":[{"mask-r-to":f()}],"mask-image-b-from-pos":[{"mask-b-from":C()}],"mask-image-b-to-pos":[{"mask-b-to":C()}],"mask-image-b-from-color":[{"mask-b-from":f()}],"mask-image-b-to-color":[{"mask-b-to":f()}],"mask-image-l-from-pos":[{"mask-l-from":C()}],"mask-image-l-to-pos":[{"mask-l-to":C()}],"mask-image-l-from-color":[{"mask-l-from":f()}],"mask-image-l-to-color":[{"mask-l-to":f()}],"mask-image-x-from-pos":[{"mask-x-from":C()}],"mask-image-x-to-pos":[{"mask-x-to":C()}],"mask-image-x-from-color":[{"mask-x-from":f()}],"mask-image-x-to-color":[{"mask-x-to":f()}],"mask-image-y-from-pos":[{"mask-y-from":C()}],"mask-image-y-to-pos":[{"mask-y-to":C()}],"mask-image-y-from-color":[{"mask-y-from":f()}],"mask-image-y-to-color":[{"mask-y-to":f()}],"mask-image-radial":[{"mask-radial":[d,c]}],"mask-image-radial-from-pos":[{"mask-radial-from":C()}],"mask-image-radial-to-pos":[{"mask-radial-to":C()}],"mask-image-radial-from-color":[{"mask-radial-from":f()}],"mask-image-radial-to-color":[{"mask-radial-to":f()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":V()}],"mask-image-conic-pos":[{"mask-conic":[g]}],"mask-image-conic-from-pos":[{"mask-conic-from":C()}],"mask-image-conic-to-pos":[{"mask-conic-to":C()}],"mask-image-conic-from-color":[{"mask-conic-from":f()}],"mask-image-conic-to-color":[{"mask-conic-to":f()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:pe()}],"mask-repeat":[{mask:be()}],"mask-size":[{mask:ge()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",d,c]}],filter:[{filter:["","none",d,c]}],blur:[{blur:ye()}],brightness:[{brightness:[g,d,c]}],contrast:[{contrast:[g,d,c]}],"drop-shadow":[{"drop-shadow":["","none",v,J,X]}],"drop-shadow-color":[{"drop-shadow":f()}],grayscale:[{grayscale:["",g,d,c]}],"hue-rotate":[{"hue-rotate":[g,d,c]}],invert:[{invert:["",g,d,c]}],saturate:[{saturate:[g,d,c]}],sepia:[{sepia:["",g,d,c]}],"backdrop-filter":[{"backdrop-filter":["","none",d,c]}],"backdrop-blur":[{"backdrop-blur":ye()}],"backdrop-brightness":[{"backdrop-brightness":[g,d,c]}],"backdrop-contrast":[{"backdrop-contrast":[g,d,c]}],"backdrop-grayscale":[{"backdrop-grayscale":["",g,d,c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g,d,c]}],"backdrop-invert":[{"backdrop-invert":["",g,d,c]}],"backdrop-opacity":[{"backdrop-opacity":[g,d,c]}],"backdrop-saturate":[{"backdrop-saturate":[g,d,c]}],"backdrop-sepia":[{"backdrop-sepia":["",g,d,c]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":m()}],"border-spacing-x":[{"border-spacing-x":m()}],"border-spacing-y":[{"border-spacing-y":m()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",d,c]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[g,"initial",d,c]}],ease:[{ease:["linear","initial",O,d,c]}],delay:[{delay:[g,d,c]}],animate:[{animate:["none",B,d,c]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,d,c]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:Z()}],"rotate-x":[{"rotate-x":Z()}],"rotate-y":[{"rotate-y":Z()}],"rotate-z":[{"rotate-z":Z()}],scale:[{scale:q()}],"scale-x":[{"scale-x":q()}],"scale-y":[{"scale-y":q()}],"scale-z":[{"scale-z":q()}],"scale-3d":["scale-3d"],skew:[{skew:ie()}],"skew-x":[{"skew-x":ie()}],"skew-y":[{"skew-y":ie()}],transform:[{transform:[d,c,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:K()}],"translate-x":[{"translate-x":K()}],"translate-y":[{"translate-y":K()}],"translate-z":[{"translate-z":K()}],"translate-none":["translate-none"],accent:[{accent:f()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:f()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d,c]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mbs":[{"scroll-mbs":m()}],"scroll-mbe":[{"scroll-mbe":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pbs":[{"scroll-pbs":m()}],"scroll-pbe":[{"scroll-pbe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d,c]}],fill:[{fill:["none",...f()]}],"stroke-w":[{stroke:[g,U,_,Ce]}],stroke:[{stroke:["none",...f()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},co=yt(Gt);function Be(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Be(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function $t(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Be(e))&&(r&&(r+=" "),r+=t);return r}const Re=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ze=$t,Wt=(e,t)=>o=>{var r;if(t?.variants==null)return ze(e,o?.class,o?.className);const{variants:n,defaultVariants:s}=t,i=Object.keys(n).map(u=>{const b=o?.[u],h=s?.[u];if(b===null)return null;const y=Re(b)||Re(h);return n[u][y]}),l=o&&Object.entries(o).reduce((u,b)=>{let[h,y]=b;return y===void 0||(u[h]=y),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,b)=>{let{class:h,className:y,...v}=b;return Object.entries(v).every(S=>{let[k,x]=S;return Array.isArray(x)?x.includes({...s,...l}[k]):{...s,...l}[k]===x})?[...u,h,y]:u},[]);return ze(e,i,a,o?.class,o?.className)},Ne={primary:"bg-fd-primary text-fd-primary-foreground hover:bg-fd-primary/80 disabled:bg-fd-secondary disabled:text-fd-secondary-foreground",outline:"border hover:bg-fd-accent hover:text-fd-accent-foreground",ghost:"hover:bg-fd-accent hover:text-fd-accent-foreground",secondary:"border bg-fd-secondary text-fd-secondary-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"},uo=Wt("inline-flex items-center justify-center rounded-md p-2 text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring",{variants:{variant:Ne,color:Ne,size:{sm:"gap-1 px-2 py-1.5 text-xs",icon:"p-1.5 [&_svg]:size-5","icon-sm":"p-1.5 [&_svg]:size-4.5","icon-xs":"p-1 [&_svg]:size-4"}}});function mo(e,t,{checkForDefaultPrevented:o=!0}={}){return function(n){if(e?.(n),o===!1||!n.defaultPrevented)return t?.(n)}}function fo(e,t){const o=p.createContext(t),r=s=>{const{children:i,...l}=s,a=p.useMemo(()=>l,Object.values(l));return D.jsx(o.Provider,{value:a,children:i})};r.displayName=e+"Provider";function n(s){const i=p.useContext(o);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,n]}function po(e,t=[]){let o=[];function r(s,i){const l=p.createContext(i),a=o.length;o=[...o,i];const u=h=>{const{scope:y,children:v,...S}=h,k=y?.[e]?.[a]||l,x=p.useMemo(()=>S,Object.values(S));return D.jsx(k.Provider,{value:x,children:v})};u.displayName=s+"Provider";function b(h,y){const v=y?.[e]?.[a]||l,S=p.useContext(v);if(S)return S;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[u,b]}const n=()=>{const s=o.map(i=>p.createContext(i));return function(l){const a=l?.[e]||s;return p.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return n.scopeName=e,[r,Ft(n,...t)]}function Ft(...e){const t=e[0];if(e.length===1)return t;const o=()=>{const r=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(s){const i=r.reduce((l,{useScope:a,scopeName:u})=>{const h=a(s)[`__scope${u}`];return{...l,...h}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return o.scopeName=t.scopeName,o}function Pe(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function He(...e){return t=>{let o=!1;const r=e.map(n=>{const s=Pe(n,t);return!o&&typeof s=="function"&&(o=!0),s});if(o)return()=>{for(let n=0;n<r.length;n++){const s=r[n];typeof s=="function"?s():Pe(e[n],null)}}}}function Ut(...e){return p.useCallback(He(...e),e)}function Dt(e){const t=Bt(e),o=p.forwardRef((r,n)=>{const{children:s,...i}=r,l=p.Children.toArray(s),a=l.find(Yt);if(a){const u=a.props.children,b=l.map(h=>h===a?p.Children.count(u)>1?p.Children.only(null):p.isValidElement(u)?u.props.children:null:h);return D.jsx(t,{...i,ref:n,children:p.isValidElement(u)?p.cloneElement(u,void 0,b):null})}return D.jsx(t,{...i,ref:n,children:s})});return o.displayName=`${e}.Slot`,o}function Bt(e){const t=p.forwardRef((o,r)=>{const{children:n,...s}=o;if(p.isValidElement(n)){const i=qt(n),l=Zt(s,n.props);return n.type!==p.Fragment&&(l.ref=r?He(r,i):i),p.cloneElement(n,l)}return p.Children.count(n)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ht=Symbol("radix.slottable");function Yt(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ht}function Zt(e,t){const o={...t};for(const r in t){const n=e[r],s=t[r];/^on[A-Z]/.test(r)?n&&s?o[r]=(...l)=>{const a=s(...l);return n(...l),a}:n&&(o[r]=n):r==="style"?o[r]={...n,...s}:r==="className"&&(o[r]=[n,s].filter(Boolean).join(" "))}return{...e,...o}}function qt(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var te=globalThis?.document?p.useLayoutEffect:()=>{},Kt=Ee[" useId ".trim().toString()]||(()=>{}),Xt=0;function bo(e){const[t,o]=p.useState(Kt());return te(()=>{o(r=>r??String(Xt++))},[e]),e||(t?`radix-${t}`:"")}var Jt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],go=Jt.reduce((e,t)=>{const o=Dt(`Primitive.${t}`),r=p.forwardRef((n,s)=>{const{asChild:i,...l}=n,a=i?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D.jsx(a,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ho(e,t){e&&Ye.flushSync(()=>e.dispatchEvent(t))}function yo(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...o)=>t.current?.(...o),[])}var Qt=Ee[" useInsertionEffect ".trim().toString()]||te;function vo({prop:e,defaultProp:t,onChange:o=()=>{},caller:r}){const[n,s,i]=eo({defaultProp:t,onChange:o}),l=e!==void 0,a=l?e:n;{const b=p.useRef(e!==void 0);p.useEffect(()=>{const h=b.current;h!==l&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),b.current=l},[l,r])}const u=p.useCallback(b=>{if(l){const h=to(b)?b(e):b;h!==e&&i.current?.(h)}else s(b)},[l,e,s,i]);return[a,u]}function eo({defaultProp:e,onChange:t}){const[o,r]=p.useState(e),n=p.useRef(o),s=p.useRef(t);return Qt(()=>{s.current=t},[t]),p.useEffect(()=>{n.current!==o&&(s.current?.(o),n.current=o)},[o,n]),[o,r,s]}function to(e){return typeof e=="function"}function oo(e,t){return p.useReducer((o,r)=>t[o][r]??o,e)}var ro=e=>{const{present:t,children:o}=e,r=no(t),n=typeof o=="function"?o({present:r.isPresent}):p.Children.only(o),s=Ut(r.ref,so(n));return typeof o=="function"||r.isPresent?p.cloneElement(n,{ref:s}):null};ro.displayName="Presence";function no(e){const[t,o]=p.useState(),r=p.useRef(null),n=p.useRef(e),s=p.useRef("none"),i=e?"mounted":"unmounted",[l,a]=oo(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const u=Q(r.current);s.current=l==="mounted"?u:"none"},[l]),te(()=>{const u=r.current,b=n.current;if(b!==e){const y=s.current,v=Q(u);e?a("MOUNT"):v==="none"||u?.display==="none"?a("UNMOUNT"):a(b&&y!==v?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,a]),te(()=>{if(t){let u;const b=t.ownerDocument.defaultView??window,h=v=>{const k=Q(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&k&&(a("ANIMATION_END"),!n.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=b.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},y=v=>{v.target===t&&(s.current=Q(r.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{b.clearTimeout(u),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:p.useCallback(u=>{r.current=u?getComputedStyle(u):null,o(u)},[])}}function Q(e){return e?.animationName||"none"}function so(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}export{go as P,Wt as a,uo as b,lo as c,ro as d,po as e,yo as f,te as g,mo as h,vo as i,bo as j,Dt as k,ho as l,fo as m,co as t,Ut as u};
@@ -1 +1 @@
1
- import{r as t,j as C}from"./index-OFfnl8sH.js";const I=t.createContext({enabled:!1,open:!1,hotKey:[],setOpenSearch:()=>{}});function Q(){return t.use(I)}function D(){const[e,r]=t.useState("⌘");return t.useEffect(()=>{window.navigator.userAgent.includes("Windows")&&r("Ctrl")},[]),e}function U({SearchDialog:e,children:r,preload:s=!0,options:f,hotKey:u=[{key:n=>n.metaKey||n.ctrlKey,display:C.jsx(D,{})},{key:"k",display:"K"}],links:o}){const[n,h]=t.useState(s?!1:void 0),a=t.useEffectEvent(y=>{u.every(d=>typeof d.key=="string"?y.key===d.key:d.key(y))&&(h(d=>!d),y.preventDefault())});return t.useEffect(()=>(window.addEventListener("keydown",a),()=>{window.removeEventListener("keydown",a)}),[u]),C.jsxs(I,{value:t.useMemo(()=>({enabled:!0,open:n??!1,hotKey:u,setOpenSearch:h}),[n,u]),children:[n!==void 0&&C.jsx(t.Suspense,{fallback:null,children:C.jsx(e,{open:n,onOpenChange:h,links:o,...f})}),r]})}var H=(e,r,s,f,u,o,n,h)=>{let a=document.documentElement,y=["light","dark"];function d(l){(Array.isArray(e)?e:[e]).forEach(p=>{let g=p==="class",T=g&&o?u.map(w=>o[w]||w):u;g?(a.classList.remove(...T),a.classList.add(o&&o[l]?o[l]:l)):a.setAttribute(p,l)}),x(l)}function x(l){h&&y.includes(l)&&(a.style.colorScheme=l)}function m(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(f)d(f);else try{let l=localStorage.getItem(r)||s,p=n&&l==="system"?m():l;d(p)}catch{}},j=["light","dark"],K="(prefers-color-scheme: dark)",N=typeof window>"u",A=t.createContext(void 0),V={setTheme:e=>{},themes:[]},q=()=>{var e;return(e=t.useContext(A))!=null?e:V},B=e=>t.useContext(A)?t.createElement(t.Fragment,null,e.children):t.createElement(z,{...e}),_=["light","dark"],z=({forcedTheme:e,disableTransitionOnChange:r=!1,enableSystem:s=!0,enableColorScheme:f=!0,storageKey:u="theme",themes:o=_,defaultTheme:n=s?"system":"light",attribute:h="data-theme",value:a,children:y,nonce:d,scriptProps:x})=>{let[m,l]=t.useState(()=>R(u,n)),[p,g]=t.useState(()=>m==="system"?L():m),T=a?Object.values(a):o,w=t.useCallback(i=>{let c=i;if(!c)return;i==="system"&&s&&(c=L());let S=a?a[c]:c,O=r?$(d):null,b=document.documentElement,M=v=>{v==="class"?(b.classList.remove(...T),S&&b.classList.add(S)):v.startsWith("data-")&&(S?b.setAttribute(v,S):b.removeAttribute(v))};if(Array.isArray(h)?h.forEach(M):M(h),f){let v=j.includes(n)?n:null,W=j.includes(c)?c:v;b.style.colorScheme=W}O?.()},[d]),k=t.useCallback(i=>{let c=typeof i=="function"?i(m):i;l(c);try{localStorage.setItem(u,c)}catch{}},[m]),E=t.useCallback(i=>{let c=L(i);g(c),m==="system"&&s&&!e&&w("system")},[m,e]);t.useEffect(()=>{let i=window.matchMedia(K);return i.addListener(E),E(i),()=>i.removeListener(E)},[E]),t.useEffect(()=>{let i=c=>{c.key===u&&(c.newValue?l(c.newValue):k(n))};return window.addEventListener("storage",i),()=>window.removeEventListener("storage",i)},[k]),t.useEffect(()=>{w(e??m)},[e,m]);let P=t.useMemo(()=>({theme:m,setTheme:k,forcedTheme:e,resolvedTheme:m==="system"?p:m,themes:s?[...o,"system"]:o,systemTheme:s?p:void 0}),[m,k,e,p,s,o]);return t.createElement(A.Provider,{value:P},t.createElement(J,{forcedTheme:e,storageKey:u,attribute:h,enableSystem:s,enableColorScheme:f,defaultTheme:n,value:a,themes:o,nonce:d,scriptProps:x}),y)},J=t.memo(({forcedTheme:e,storageKey:r,attribute:s,enableSystem:f,enableColorScheme:u,defaultTheme:o,value:n,themes:h,nonce:a,scriptProps:y})=>{let d=JSON.stringify([s,r,o,e,h,n,f,u]).slice(1,-1);return t.createElement("script",{...y,suppressHydrationWarning:!0,nonce:typeof window>"u"?a:"",dangerouslySetInnerHTML:{__html:`(${H.toString()})(${d})`}})}),R=(e,r)=>{if(N)return;let s;try{s=localStorage.getItem(e)||void 0}catch{}return s||r},$=e=>{let r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(r)},1)}},L=e=>(e||(e=window.matchMedia(K)),e.matches?"dark":"light");export{B as J,U as S,Q as u,q as z};
1
+ import{r as t,j as C}from"./index-BP1WY6Lo.js";const I=t.createContext({enabled:!1,open:!1,hotKey:[],setOpenSearch:()=>{}});function Q(){return t.use(I)}function D(){const[e,r]=t.useState("⌘");return t.useEffect(()=>{window.navigator.userAgent.includes("Windows")&&r("Ctrl")},[]),e}function U({SearchDialog:e,children:r,preload:s=!0,options:f,hotKey:u=[{key:n=>n.metaKey||n.ctrlKey,display:C.jsx(D,{})},{key:"k",display:"K"}],links:o}){const[n,h]=t.useState(s?!1:void 0),a=t.useEffectEvent(y=>{u.every(d=>typeof d.key=="string"?y.key===d.key:d.key(y))&&(h(d=>!d),y.preventDefault())});return t.useEffect(()=>(window.addEventListener("keydown",a),()=>{window.removeEventListener("keydown",a)}),[u]),C.jsxs(I,{value:t.useMemo(()=>({enabled:!0,open:n??!1,hotKey:u,setOpenSearch:h}),[n,u]),children:[n!==void 0&&C.jsx(t.Suspense,{fallback:null,children:C.jsx(e,{open:n,onOpenChange:h,links:o,...f})}),r]})}var H=(e,r,s,f,u,o,n,h)=>{let a=document.documentElement,y=["light","dark"];function d(l){(Array.isArray(e)?e:[e]).forEach(p=>{let g=p==="class",T=g&&o?u.map(w=>o[w]||w):u;g?(a.classList.remove(...T),a.classList.add(o&&o[l]?o[l]:l)):a.setAttribute(p,l)}),x(l)}function x(l){h&&y.includes(l)&&(a.style.colorScheme=l)}function m(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(f)d(f);else try{let l=localStorage.getItem(r)||s,p=n&&l==="system"?m():l;d(p)}catch{}},j=["light","dark"],K="(prefers-color-scheme: dark)",N=typeof window>"u",A=t.createContext(void 0),V={setTheme:e=>{},themes:[]},q=()=>{var e;return(e=t.useContext(A))!=null?e:V},B=e=>t.useContext(A)?t.createElement(t.Fragment,null,e.children):t.createElement(z,{...e}),_=["light","dark"],z=({forcedTheme:e,disableTransitionOnChange:r=!1,enableSystem:s=!0,enableColorScheme:f=!0,storageKey:u="theme",themes:o=_,defaultTheme:n=s?"system":"light",attribute:h="data-theme",value:a,children:y,nonce:d,scriptProps:x})=>{let[m,l]=t.useState(()=>R(u,n)),[p,g]=t.useState(()=>m==="system"?L():m),T=a?Object.values(a):o,w=t.useCallback(i=>{let c=i;if(!c)return;i==="system"&&s&&(c=L());let S=a?a[c]:c,O=r?$(d):null,b=document.documentElement,M=v=>{v==="class"?(b.classList.remove(...T),S&&b.classList.add(S)):v.startsWith("data-")&&(S?b.setAttribute(v,S):b.removeAttribute(v))};if(Array.isArray(h)?h.forEach(M):M(h),f){let v=j.includes(n)?n:null,W=j.includes(c)?c:v;b.style.colorScheme=W}O?.()},[d]),k=t.useCallback(i=>{let c=typeof i=="function"?i(m):i;l(c);try{localStorage.setItem(u,c)}catch{}},[m]),E=t.useCallback(i=>{let c=L(i);g(c),m==="system"&&s&&!e&&w("system")},[m,e]);t.useEffect(()=>{let i=window.matchMedia(K);return i.addListener(E),E(i),()=>i.removeListener(E)},[E]),t.useEffect(()=>{let i=c=>{c.key===u&&(c.newValue?l(c.newValue):k(n))};return window.addEventListener("storage",i),()=>window.removeEventListener("storage",i)},[k]),t.useEffect(()=>{w(e??m)},[e,m]);let P=t.useMemo(()=>({theme:m,setTheme:k,forcedTheme:e,resolvedTheme:m==="system"?p:m,themes:s?[...o,"system"]:o,systemTheme:s?p:void 0}),[m,k,e,p,s,o]);return t.createElement(A.Provider,{value:P},t.createElement(J,{forcedTheme:e,storageKey:u,attribute:h,enableSystem:s,enableColorScheme:f,defaultTheme:n,value:a,themes:o,nonce:d,scriptProps:x}),y)},J=t.memo(({forcedTheme:e,storageKey:r,attribute:s,enableSystem:f,enableColorScheme:u,defaultTheme:o,value:n,themes:h,nonce:a,scriptProps:y})=>{let d=JSON.stringify([s,r,o,e,h,n,f,u]).slice(1,-1);return t.createElement("script",{...y,suppressHydrationWarning:!0,nonce:typeof window>"u"?a:"",dangerouslySetInnerHTML:{__html:`(${H.toString()})(${d})`}})}),R=(e,r)=>{if(N)return;let s;try{s=localStorage.getItem(e)||void 0}catch{}return s||r},$=e=>{let r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(r)},1)}},L=e=>(e||(e=window.matchMedia(K)),e.matches?"dark":"light");export{B as J,U as S,Q as u,q as z};
@@ -1 +1 @@
1
- import{c as R,t as x,b as le,a as je,u as A,P as D,d as L,e as Pe,f as T,g as Ee,h as j}from"./index-Bojr-xLv.js";import{u as X}from"./i18n-V4QzeUbV.js";import{P as Re,a as Ae,b as Le,h as _e,n as ke,i as N,_ as Ne,E as De,c as Me,d as Oe,C as ae,e as Ie,f as ze,u as He}from"./collapsible-B2rvGry7.js";import{j as c,r as i}from"./index-OFfnl8sH.js";import{u as se,z as Fe}from"./index-Bonlu0LX.js";import{S as ce}from"./search-D1WUBd3N.js";import{a as Y}from"./index-B-5ouVG_.js";import{L as B}from"./merge-refs-BIez66Kl.js";import{u as We}from"./index-DHENdpwd.js";import{u as Q,e as Ve}from"./index-xXa72sZS.js";const Xe=[["path",{d:"M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1",key:"ns4c3b"}],["path",{d:"m12 15 5 6H7Z",key:"14qnn2"}]],Ye=R("airplay",Xe);const Be=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Qt=R("chevrons-up-down",Be);const Ue=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],Kt=R("languages",Ue);const $e=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],qe=R("moon",$e);const Ge=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Zt=R("panel-left",Ge);const Qe=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Ke=R("sun",Qe);function Ze({className:e,variant:t="ghost",children:r,...a}){const n=X();if(!n.locales)throw new Error("Missing `<I18nProvider />`");return c.jsxs(Re,{children:[c.jsx(Ae,{"aria-label":n.text.chooseLanguage,className:x(le({variant:t}),"gap-1.5 p-1.5 data-[state=open]:bg-fd-accent",e),...a,children:r}),c.jsxs(Le,{className:"flex flex-col gap-0.5 p-1",children:[c.jsx("p",{className:"p-2 text-xs font-medium text-fd-muted-foreground",children:n.text.chooseLanguage}),n.locales.map(l=>c.jsx("button",{type:"button",className:x("px-2 py-1.5 text-start text-sm rounded-lg transition-colors",l.locale===n.locale?"bg-fd-primary/10 text-fd-primary":"text-fd-muted-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"),onClick:()=>{n.onChange?.(l.locale)},children:l.name},l.locale))]})]})}function Je(e){const{locales:t,locale:r}=X(),a=t?.find(n=>n.locale===r)?.name;return c.jsx("span",{...e,children:a})}function et({hideIfDisabled:e,size:t="icon-sm",color:r="ghost",...a}){const{setOpenSearch:n,enabled:l}=se();return e&&!l?null:c.jsx("button",{type:"button",className:x(le({size:t,color:r}),a.className),"data-search":"","aria-label":"Open Search",onClick:()=>{n(!0)},children:c.jsx(ce,{})})}function tt({hideIfDisabled:e,...t}){const{enabled:r,hotKey:a,setOpenSearch:n}=se(),{text:l}=X();return e&&!r?null:c.jsxs("button",{type:"button","data-search-full":"",...t,className:x("inline-flex items-center gap-2 rounded-lg border bg-fd-secondary/50 p-1.5 ps-2 text-sm text-fd-muted-foreground transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground",t.className),onClick:()=>{n(!0)},children:[c.jsx(ce,{className:"size-4"}),l.search,c.jsx("div",{className:"ms-auto inline-flex gap-0.5",children:a.map((o,u)=>c.jsx("kbd",{className:"rounded-md border bg-fd-background px-1.5",children:o.display},u))})]})}const te=je("size-6.5 p-1.5 text-fd-muted-foreground",{variants:{active:{true:"bg-fd-accent text-fd-accent-foreground",false:"text-fd-muted-foreground"}}}),re=[["light",Ke],["dark",qe],["system",Ye]];function rt({className:e,mode:t="light-dark",...r}){const{setTheme:a,theme:n,resolvedTheme:l}=Fe(),[o,u]=i.useState(!1);i.useEffect(()=>{u(!0)},[]);const s=x("inline-flex items-center rounded-full border p-1 overflow-hidden *:rounded-full",e);if(t==="light-dark"){const d=o?l:null;return c.jsx("button",{className:s,"aria-label":"Toggle Theme",onClick:()=>a(d==="light"?"dark":"light"),"data-theme-toggle":"",children:re.map(([m,h])=>{if(m!=="system")return c.jsx(h,{fill:"currentColor",className:x(te({active:d===m}))},m)})})}const f=o?n:null;return c.jsx("div",{className:s,"data-theme-toggle":"",...r,children:re.map(([d,m])=>c.jsx("button",{"aria-label":d,className:x(te({active:f===d})),onClick:()=>a(d),children:c.jsx(m,{className:"size-full",fill:"currentColor"})},d))})}const nt=(e,t)=>t.icon?{...e,icon:c.jsx("div",{className:"size-full [&_svg]:size-full max-md:p-1.5 max-md:rounded-md max-md:border max-md:bg-fd-secondary",children:t.icon})}:e;function Jt(e,{transform:t=nt}={}){const r=[];function a(n,l){if("root"in n&&n.root){const o=n.index?.url??n.children.find(u=>u.type==="page")?.url;if(o){const u={title:n.name,icon:n.icon,description:n.description,url:o,unlisted:l,$folder:n},s=t?t(u,n):u;s&&r.push(s)}}for(const o of n.children)o.type==="folder"&&a(o,l)}return a(e),e.fallback&&a(e.fallback,!0),r}function er(e,t){return e.$folder?_e(e.$folder.children,r=>r.type==="page"&&N(r.url,t))!==null:e.urls?e.urls.has(ke(t)):N(e.url,t,!0)}function ot({links:e=[],githubUrl:t}){const r=[...e];return t&&r.push({type:"icon",url:t,text:"Github",label:"GitHub",icon:c.jsx("svg",{role:"img",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})}),external:!0}),r}function tr({githubUrl:e,links:t}){return i.useMemo(()=>{const r=ot({links:t,githubUrl:e}),a=[],n=[];for(const l of r)switch(l.on){case"menu":n.push(l);break;case"nav":a.push(l);break;default:a.push(l),n.push(l)}return{navItems:a,menuItems:n,all:r}},[t,e])}function ie(e,t){return e.type==="custom"||!e.url||e.active==="none"?!1:N(e.url,t,e.active==="nested-url")}function rr({ref:e,item:t,...r}){const a=ie(t,Y());return c.jsx(B,{ref:e,href:t.url,external:t.external,...r,"data-active":a,children:r.children})}function nr({useProps:e}){function t(l){const{themeSwitch:o}=e();return o.component?o.component:c.jsx(rt,{...l,...o})}function r(l){const{searchToggle:o}=e();return o.components?.sm?o.components.sm:c.jsx(et,{...l,...o.sm})}function a(l){const{searchToggle:o}=e();return o.components?.lg?o.components.lg:c.jsx(tt,{...l,...o.full})}function n({href:l="/",...o}){const{url:u=l,title:s}=e().nav??{};return typeof s=="function"?s({href:u,...o}):c.jsx(B,{href:u,...o,children:s})}return{useProvider(l){const{locales:o=[]}=X(),{nav:u,slots:s={},i18n:f=o.length>1,searchToggle:{enabled:d=!0,...m}={},themeSwitch:{enabled:h=!0,...p}={}}=l;return{baseSlots:{navTitle:s.navTitle??n,themeSwitch:h&&(s.themeSwitch??t),languageSelect:f?s.languageSelect??{root:Ze,text:Je}:!1,searchTrigger:d&&(s.searchTrigger??{sm:r,full:a})},baseProps:{nav:u,searchToggle:m,themeSwitch:p}}}}}function lt(e,[t,r]){return Math.min(r,Math.max(t,e))}function at(e,t){return i.useReducer((r,a)=>t[r][a]??r,e)}var K="ScrollArea",[ue]=Pe(K),[st,S]=ue(K),de=i.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:a="hover",dir:n,scrollHideDelay:l=600,...o}=e,[u,s]=i.useState(null),[f,d]=i.useState(null),[m,h]=i.useState(null),[p,g]=i.useState(null),[_,q]=i.useState(null),[y,O]=i.useState(0),[G,I]=i.useState(0),[z,k]=i.useState(!1),[H,F]=i.useState(!1),b=A(t,P=>s(P)),v=We(n);return c.jsx(st,{scope:r,type:a,dir:v,scrollHideDelay:l,scrollArea:u,viewport:f,onViewportChange:d,content:m,onContentChange:h,scrollbarX:p,onScrollbarXChange:g,scrollbarXEnabled:z,onScrollbarXEnabledChange:k,scrollbarY:_,onScrollbarYChange:q,scrollbarYEnabled:H,onScrollbarYEnabledChange:F,onCornerWidthChange:O,onCornerHeightChange:I,children:c.jsx(D.div,{dir:v,...o,ref:b,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":G+"px",...e.style}})})});de.displayName=K;var fe="ScrollAreaViewport",he=i.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:a,nonce:n,...l}=e,o=S(fe,r),u=i.useRef(null),s=A(t,u,o.onViewportChange);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),c.jsx(D.div,{"data-radix-scroll-area-viewport":"",...l,ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style},children:c.jsx("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"},children:a})})]})});he.displayName=fe;var w="ScrollAreaScrollbar",me=i.forwardRef((e,t)=>{const{forceMount:r,...a}=e,n=S(w,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:o}=n,u=e.orientation==="horizontal";return i.useEffect(()=>(u?l(!0):o(!0),()=>{u?l(!1):o(!1)}),[u,l,o]),n.type==="hover"?c.jsx(ct,{...a,ref:t,forceMount:r}):n.type==="scroll"?c.jsx(it,{...a,ref:t,forceMount:r}):n.type==="auto"?c.jsx(pe,{...a,ref:t,forceMount:r}):n.type==="always"?c.jsx(Z,{...a,ref:t}):null});me.displayName=w;var ct=i.forwardRef((e,t)=>{const{forceMount:r,...a}=e,n=S(w,e.__scopeScrollArea),[l,o]=i.useState(!1);return i.useEffect(()=>{const u=n.scrollArea;let s=0;if(u){const f=()=>{window.clearTimeout(s),o(!0)},d=()=>{s=window.setTimeout(()=>o(!1),n.scrollHideDelay)};return u.addEventListener("pointerenter",f),u.addEventListener("pointerleave",d),()=>{window.clearTimeout(s),u.removeEventListener("pointerenter",f),u.removeEventListener("pointerleave",d)}}},[n.scrollArea,n.scrollHideDelay]),c.jsx(L,{present:r||l,children:c.jsx(pe,{"data-state":l?"visible":"hidden",...a,ref:t})})}),it=i.forwardRef((e,t)=>{const{forceMount:r,...a}=e,n=S(w,e.__scopeScrollArea),l=e.orientation==="horizontal",o=$(()=>s("SCROLL_END"),100),[u,s]=at("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return i.useEffect(()=>{if(u==="idle"){const f=window.setTimeout(()=>s("HIDE"),n.scrollHideDelay);return()=>window.clearTimeout(f)}},[u,n.scrollHideDelay,s]),i.useEffect(()=>{const f=n.viewport,d=l?"scrollLeft":"scrollTop";if(f){let m=f[d];const h=()=>{const p=f[d];m!==p&&(s("SCROLL"),o()),m=p};return f.addEventListener("scroll",h),()=>f.removeEventListener("scroll",h)}},[n.viewport,l,s,o]),c.jsx(L,{present:r||u!=="hidden",children:c.jsx(Z,{"data-state":u==="hidden"?"hidden":"visible",...a,ref:t,onPointerEnter:j(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:j(e.onPointerLeave,()=>s("POINTER_LEAVE"))})})}),pe=i.forwardRef((e,t)=>{const r=S(w,e.__scopeScrollArea),{forceMount:a,...n}=e,[l,o]=i.useState(!1),u=e.orientation==="horizontal",s=$(()=>{if(r.viewport){const f=r.viewport.offsetWidth<r.viewport.scrollWidth,d=r.viewport.offsetHeight<r.viewport.scrollHeight;o(u?f:d)}},10);return E(r.viewport,s),E(r.content,s),c.jsx(L,{present:a||l,children:c.jsx(Z,{"data-state":l?"visible":"hidden",...n,ref:t})})}),Z=i.forwardRef((e,t)=>{const{orientation:r="vertical",...a}=e,n=S(w,e.__scopeScrollArea),l=i.useRef(null),o=i.useRef(0),[u,s]=i.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),f=ve(u.viewport,u.content),d={...a,sizes:u,onSizesChange:s,hasThumb:f>0&&f<1,onThumbChange:h=>l.current=h,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:h=>o.current=h};function m(h,p){return pt(h,o.current,u,p)}return r==="horizontal"?c.jsx(ut,{...d,ref:t,onThumbPositionChange:()=>{if(n.viewport&&l.current){const h=n.viewport.scrollLeft,p=ne(h,u,n.dir);l.current.style.transform=`translate3d(${p}px, 0, 0)`}},onWheelScroll:h=>{n.viewport&&(n.viewport.scrollLeft=h)},onDragScroll:h=>{n.viewport&&(n.viewport.scrollLeft=m(h,n.dir))}}):r==="vertical"?c.jsx(dt,{...d,ref:t,onThumbPositionChange:()=>{if(n.viewport&&l.current){const h=n.viewport.scrollTop,p=ne(h,u);l.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:h=>{n.viewport&&(n.viewport.scrollTop=h)},onDragScroll:h=>{n.viewport&&(n.viewport.scrollTop=m(h))}}):null}),ut=i.forwardRef((e,t)=>{const{sizes:r,onSizesChange:a,...n}=e,l=S(w,e.__scopeScrollArea),[o,u]=i.useState(),s=i.useRef(null),f=A(t,s,l.onScrollbarXChange);return i.useEffect(()=>{s.current&&u(getComputedStyle(s.current))},[s]),c.jsx(xe,{"data-orientation":"horizontal",...n,ref:f,sizes:r,style:{bottom:0,left:l.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:l.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":U(r)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,m)=>{if(l.viewport){const h=l.viewport.scrollLeft+d.deltaX;e.onWheelScroll(h),Ce(h,m)&&d.preventDefault()}},onResize:()=>{s.current&&l.viewport&&o&&a({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:V(o.paddingLeft),paddingEnd:V(o.paddingRight)}})}})}),dt=i.forwardRef((e,t)=>{const{sizes:r,onSizesChange:a,...n}=e,l=S(w,e.__scopeScrollArea),[o,u]=i.useState(),s=i.useRef(null),f=A(t,s,l.onScrollbarYChange);return i.useEffect(()=>{s.current&&u(getComputedStyle(s.current))},[s]),c.jsx(xe,{"data-orientation":"vertical",...n,ref:f,sizes:r,style:{top:0,right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":U(r)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,m)=>{if(l.viewport){const h=l.viewport.scrollTop+d.deltaY;e.onWheelScroll(h),Ce(h,m)&&d.preventDefault()}},onResize:()=>{s.current&&l.viewport&&o&&a({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:V(o.paddingTop),paddingEnd:V(o.paddingBottom)}})}})}),[ft,be]=ue(w),xe=i.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:a,hasThumb:n,onThumbChange:l,onThumbPointerUp:o,onThumbPointerDown:u,onThumbPositionChange:s,onDragScroll:f,onWheelScroll:d,onResize:m,...h}=e,p=S(w,r),[g,_]=i.useState(null),q=A(t,b=>_(b)),y=i.useRef(null),O=i.useRef(""),G=p.viewport,I=a.content-a.viewport,z=T(d),k=T(s),H=$(m,10);function F(b){if(y.current){const v=b.clientX-y.current.left,P=b.clientY-y.current.top;f({x:v,y:P})}}return i.useEffect(()=>{const b=v=>{const P=v.target;g?.contains(P)&&z(v,I)};return document.addEventListener("wheel",b,{passive:!1}),()=>document.removeEventListener("wheel",b,{passive:!1})},[G,g,I,z]),i.useEffect(k,[a,k]),E(g,H),E(p.content,H),c.jsx(ft,{scope:r,scrollbar:g,hasThumb:n,onThumbChange:T(l),onThumbPointerUp:T(o),onThumbPositionChange:k,onThumbPointerDown:T(u),children:c.jsx(D.div,{...h,ref:q,style:{position:"absolute",...h.style},onPointerDown:j(e.onPointerDown,b=>{b.button===0&&(b.target.setPointerCapture(b.pointerId),y.current=g.getBoundingClientRect(),O.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),F(b))}),onPointerMove:j(e.onPointerMove,F),onPointerUp:j(e.onPointerUp,b=>{const v=b.target;v.hasPointerCapture(b.pointerId)&&v.releasePointerCapture(b.pointerId),document.body.style.webkitUserSelect=O.current,p.viewport&&(p.viewport.style.scrollBehavior=""),y.current=null})})})}),W="ScrollAreaThumb",ge=i.forwardRef((e,t)=>{const{forceMount:r,...a}=e,n=be(W,e.__scopeScrollArea);return c.jsx(L,{present:r||n.hasThumb,children:c.jsx(ht,{ref:t,...a})})}),ht=i.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:a,...n}=e,l=S(W,r),o=be(W,r),{onThumbPositionChange:u}=o,s=A(t,m=>o.onThumbChange(m)),f=i.useRef(void 0),d=$(()=>{f.current&&(f.current(),f.current=void 0)},100);return i.useEffect(()=>{const m=l.viewport;if(m){const h=()=>{if(d(),!f.current){const p=bt(m,u);f.current=p,u()}};return u(),m.addEventListener("scroll",h),()=>m.removeEventListener("scroll",h)}},[l.viewport,d,u]),c.jsx(D.div,{"data-state":o.hasThumb?"visible":"hidden",...n,ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...a},onPointerDownCapture:j(e.onPointerDownCapture,m=>{const p=m.target.getBoundingClientRect(),g=m.clientX-p.left,_=m.clientY-p.top;o.onThumbPointerDown({x:g,y:_})}),onPointerUp:j(e.onPointerUp,o.onThumbPointerUp)})});ge.displayName=W;var J="ScrollAreaCorner",Se=i.forwardRef((e,t)=>{const r=S(J,e.__scopeScrollArea),a=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&a?c.jsx(mt,{...e,ref:t}):null});Se.displayName=J;var mt=i.forwardRef((e,t)=>{const{__scopeScrollArea:r,...a}=e,n=S(J,r),[l,o]=i.useState(0),[u,s]=i.useState(0),f=!!(l&&u);return E(n.scrollbarX,()=>{const d=n.scrollbarX?.offsetHeight||0;n.onCornerHeightChange(d),s(d)}),E(n.scrollbarY,()=>{const d=n.scrollbarY?.offsetWidth||0;n.onCornerWidthChange(d),o(d)}),f?c.jsx(D.div,{...a,ref:t,style:{width:l,height:u,position:"absolute",right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function V(e){return e?parseInt(e,10):0}function ve(e,t){const r=e/t;return isNaN(r)?0:r}function U(e){const t=ve(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,a=(e.scrollbar.size-r)*t;return Math.max(a,18)}function pt(e,t,r,a="ltr"){const n=U(r),l=n/2,o=t||l,u=n-o,s=r.scrollbar.paddingStart+o,f=r.scrollbar.size-r.scrollbar.paddingEnd-u,d=r.content-r.viewport,m=a==="ltr"?[0,d]:[d*-1,0];return we([s,f],m)(e)}function ne(e,t,r="ltr"){const a=U(t),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-n,o=t.content-t.viewport,u=l-a,s=r==="ltr"?[0,o]:[o*-1,0],f=lt(e,s);return we([0,o],[0,u])(f)}function we(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const a=(t[1]-t[0])/(e[1]-e[0]);return t[0]+a*(r-e[0])}}function Ce(e,t){return e>0&&e<t}var bt=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},a=0;return(function n(){const l={left:e.scrollLeft,top:e.scrollTop},o=r.left!==l.left,u=r.top!==l.top;(o||u)&&t(),r=l,a=window.requestAnimationFrame(n)})(),()=>window.cancelAnimationFrame(a)};function $(e,t){const r=T(e),a=i.useRef(0);return i.useEffect(()=>()=>window.clearTimeout(a.current),[]),i.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(r,t)},[r,t])}function E(e,t){const r=T(t);Ee(()=>{let a=0;if(e){const n=new ResizeObserver(()=>{cancelAnimationFrame(a),a=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(a),n.unobserve(e)}}},[e,r])}var xt=de,gt=he,St=me,vt=Se;function wt({className:e,children:t,...r}){return c.jsxs(xt,{type:"scroll",className:x("overflow-hidden",e),...r,children:[t,c.jsx(vt,{}),c.jsx(yt,{orientation:"vertical"})]})}function Ct({className:e,children:t,...r}){return c.jsx(gt,{className:x("size-full rounded-[inherit]",e),...r,children:t})}function yt({className:e,orientation:t="vertical",...r}){return c.jsx(St,{orientation:t,className:x("flex select-none data-[state=hidden]:animate-fd-fade-out",t==="vertical"&&"h-full w-1.5",t==="horizontal"&&"h-1.5 flex-col",e),...r,children:c.jsx(ge,{className:"relative flex-1 rounded-full bg-fd-border"})})}function Tt(e,t=!1){const[r,a]=i.useState(null);return i.useEffect(()=>{if(t)return;const n=window.matchMedia(e),l=()=>{a(n.matches)};return l(),n.addEventListener("change",l),()=>{n.removeEventListener("change",l)}},[t,e]),r}var or=Ne({SidebarCollapseTrigger:()=>zt,SidebarContent:()=>Et,SidebarDrawerContent:()=>Lt,SidebarDrawerOverlay:()=>At,SidebarFolder:()=>Nt,SidebarFolderContent:()=>Ot,SidebarFolderLink:()=>Mt,SidebarFolderTrigger:()=>Dt,SidebarItem:()=>kt,SidebarProvider:()=>jt,SidebarSeparator:()=>_t,SidebarTrigger:()=>It,SidebarViewport:()=>Rt,useAutoScroll:()=>ee,useFolder:()=>Pt,useFolderDepth:()=>Te,useSidebar:()=>C});const ye=i.createContext(null),M=i.createContext(null);function jt({defaultOpenLevel:e=0,prefetch:t,children:r}){const a=i.useRef(!0),[n,l]=i.useState(!1),[o,u]=i.useState(!1),s=Y(),f=Tt("(width < 768px)")?"drawer":"full";return Q(s,()=>{a.current&&l(!1),a.current=!0}),c.jsx(ye,{value:i.useMemo(()=>({open:n,setOpen:l,collapsed:o,setCollapsed:u,closeOnRedirect:a,defaultOpenLevel:e,prefetch:t,mode:f}),[n,o,e,t,f]),children:r})}function C(){const e=i.use(ye);if(!e)throw new Error("Missing SidebarContext, make sure you have wrapped the component in <DocsLayout /> and the context is available.");return e}function Pt(){return i.use(M)}function Te(){return i.use(M)?.depth??0}function Et({mode:e="full",children:t}){const{collapsed:r,mode:a}=C(),[n,l]=i.useState(!1),o=i.useRef(null),u=i.useRef(0);if(Q(r,()=>{r&&l(!1)}),e!==!0&&e!==a)return;function s(f){const d=o.current;return d?!r||f.pointerType==="touch"||d.getAnimations().length>0:!0}return t({ref:o,collapsed:r,hovered:n,onPointerEnter(f){s(f)||(window.clearTimeout(u.current),l(!0))},onPointerLeave(f){s(f)||(window.clearTimeout(u.current),u.current=window.setTimeout(()=>l(!1),Math.min(f.clientX,document.body.clientWidth-f.clientX)>100?0:500))}})}function Rt({area:e,viewport:t,children:r}){return c.jsx(wt,{...e,className:x("min-h-0 flex-1",e?.className),children:c.jsx(Ct,{...t,className:x("*:flex! *:flex-col! *:gap-0.5! p-4 overscroll-contain mask-[linear-gradient(to_bottom,transparent,white_12px,white_calc(100%-12px),transparent)]",t?.className),children:r})})}function At(e){const{open:t,setOpen:r,mode:a}=C();if(a==="drawer")return c.jsx(L,{present:t,children:c.jsx("div",{"data-state":t?"open":"closed",onClick:()=>r(!1),...e})})}function Lt({className:e,children:t,...r}){const{open:a,mode:n}=C(),l=a?"open":"closed";if(n==="drawer")return c.jsx(L,{present:a,children:({present:o})=>c.jsx("aside",{id:"nd-sidebar-mobile","data-state":l,className:x(!o&&"invisible",e),...r,children:t})})}function _t(e){return c.jsx("p",{...e})}function kt({icon:e,active:t=!1,children:r,...a}){const n=i.useRef(null),{prefetch:l}=C();return ee(t,n),c.jsxs(B,{ref:n,"data-active":t,prefetch:l,...a,children:[e??(a.external?c.jsx(De,{}):null),r]})}function Nt({defaultOpen:e,collapsible:t=!0,active:r=!1,children:a,...n}){const{defaultOpenLevel:l}=C(),o=Te()+1,u=t===!1||r||(e??l>=o),[s,f]=i.useState(u);return Q(u,d=>{d&&f(d)}),c.jsx(Me,{open:s,onOpenChange:f,disabled:!t,...n,children:c.jsx(M,{value:i.useMemo(()=>({open:s,setOpen:f,depth:o,collapsible:t}),[t,o,s]),children:a})})}function Dt({children:e,...t}){const{open:r,collapsible:a}=i.use(M);return a?c.jsxs(Oe,{...t,children:[e,c.jsx(ae,{"data-icon":!0,className:x("ms-auto transition-transform",!r&&"-rotate-90 rtl:rotate-90")})]}):c.jsx("div",{...t,children:e})}function Mt({children:e,active:t=!1,...r}){const a=i.useRef(null),{open:n,setOpen:l,collapsible:o}=i.use(M),{prefetch:u}=C();return ee(t,a),c.jsxs(B,{ref:a,"data-active":t,onClick:s=>{o&&(s.target instanceof Element&&s.target.matches("[data-icon], [data-icon] *")?(l(!n),s.preventDefault()):l(t?!n:!0))},prefetch:u,...r,children:[e,o&&c.jsx(ae,{"data-icon":!0,className:x("ms-auto transition-transform",!n&&"-rotate-90 rtl:rotate-90")})]})}function Ot(e){return c.jsx(Ie,{...e,children:e.children})}function It({children:e,...t}){const{setOpen:r}=C();return c.jsx("button",{"aria-label":"Open Sidebar",onClick:()=>r(a=>!a),...t,children:e})}function zt(e){const{collapsed:t,setCollapsed:r}=C();return c.jsx("button",{type:"button","aria-label":"Collapse Sidebar","data-collapsed":t,onClick:()=>{r(a=>!a)},...e,children:e.children})}function ee(e,t){const{mode:r}=C();i.useEffect(()=>{e&&t.current&&Ve(t.current,{boundary:document.getElementById(r==="drawer"?"nd-sidebar-mobile":"nd-sidebar"),scrollMode:"if-needed"})},[e,r,t])}const oe=i.createContext(null);function lr({SidebarFolder:e,SidebarFolderContent:t,SidebarFolderLink:r,SidebarFolderTrigger:a,SidebarSeparator:n,SidebarItem:l}){function o(s){return s.map((f,d)=>c.jsx(u,{node:f},d))}function u({node:s}){const{Separator:f,Item:d,Folder:m,pathname:h}=i.use(oe);if(s.type==="separator")return f?c.jsx(f,{item:s}):c.jsxs(n,{children:[s.icon,s.name]});if(s.type==="folder"){const p=He();return m?c.jsx(m,{item:s,children:o(s.children)}):c.jsxs(e,{collapsible:s.collapsible,active:p.includes(s),defaultOpen:s.defaultOpen,children:[s.index?c.jsxs(r,{href:s.index.url,active:N(s.index.url,h),external:s.index.external,children:[s.icon,s.name]}):c.jsxs(a,{children:[s.icon,s.name]}),c.jsx(t,{children:o(s.children)})]})}return d?c.jsx(d,{item:s}):c.jsx(l,{href:s.url,external:s.external,active:N(s.url,h),icon:s.icon,children:s.name})}return function(f){const{Folder:d,Item:m,Separator:h}=f,{root:p}=ze(),g=Y();return c.jsx(oe,{value:i.useMemo(()=>({Folder:d,Item:m,Separator:h,pathname:g}),[d,m,h,g]),children:c.jsx(i.Fragment,{children:o(p.children)},p.$id)})}}function ar({SidebarFolder:e,SidebarFolderContent:t,SidebarFolderLink:r,SidebarFolderTrigger:a,SidebarItem:n}){return function l({item:o,...u}){const s=ie(o,Y());return o.type==="custom"?c.jsx("div",{...u,children:o.children}):o.type==="menu"?c.jsxs(e,{...u,children:[o.url?c.jsxs(r,{href:o.url,active:s,external:o.external,children:[o.icon,o.text]}):c.jsxs(a,{children:[o.icon,o.text]}),c.jsx(t,{children:o.items.map((f,d)=>c.jsx(l,{item:f},d))})]}):c.jsx(n,{href:o.url,icon:o.icon,external:o.external,active:s,...u,children:o.text})}}export{Qt as C,Kt as L,Zt as P,It as S,Rt as a,or as b,rr as c,jt as d,ar as e,lr as f,Et as g,zt as h,et as i,er as j,At as k,Lt as l,Nt as m,Ot as n,Mt as o,Pt as p,Dt as q,_t as r,kt as s,tr as t,Te as u,nr as v,Jt as w};
1
+ import{c as R,t as x,b as le,a as je,u as A,P as D,d as L,e as Pe,f as T,g as Ee,h as j}from"./index-Dmso5wU0.js";import{u as X}from"./i18n-3LIRVH83.js";import{P as Re,a as Ae,b as Le,h as _e,n as ke,i as N,_ as Ne,E as De,c as Me,d as Oe,C as ae,e as Ie,f as ze,u as He}from"./collapsible-xIcMRFdY.js";import{j as c,r as i}from"./index-BP1WY6Lo.js";import{u as se,z as Fe}from"./index-jLLD7vSY.js";import{S as ce}from"./search-pXfzPq1G.js";import{a as Y}from"./index-C3s8rSzK.js";import{L as B}from"./merge-refs-CbdSzRBV.js";import{u as We}from"./index-DNUrMY9s.js";import{u as Q,e as Ve}from"./index-CjxkSobY.js";const Xe=[["path",{d:"M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1",key:"ns4c3b"}],["path",{d:"m12 15 5 6H7Z",key:"14qnn2"}]],Ye=R("airplay",Xe);const Be=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Qt=R("chevrons-up-down",Be);const Ue=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],Kt=R("languages",Ue);const $e=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],qe=R("moon",$e);const Ge=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Zt=R("panel-left",Ge);const Qe=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Ke=R("sun",Qe);function Ze({className:e,variant:t="ghost",children:r,...a}){const n=X();if(!n.locales)throw new Error("Missing `<I18nProvider />`");return c.jsxs(Re,{children:[c.jsx(Ae,{"aria-label":n.text.chooseLanguage,className:x(le({variant:t}),"gap-1.5 p-1.5 data-[state=open]:bg-fd-accent",e),...a,children:r}),c.jsxs(Le,{className:"flex flex-col gap-0.5 p-1",children:[c.jsx("p",{className:"p-2 text-xs font-medium text-fd-muted-foreground",children:n.text.chooseLanguage}),n.locales.map(l=>c.jsx("button",{type:"button",className:x("px-2 py-1.5 text-start text-sm rounded-lg transition-colors",l.locale===n.locale?"bg-fd-primary/10 text-fd-primary":"text-fd-muted-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"),onClick:()=>{n.onChange?.(l.locale)},children:l.name},l.locale))]})]})}function Je(e){const{locales:t,locale:r}=X(),a=t?.find(n=>n.locale===r)?.name;return c.jsx("span",{...e,children:a})}function et({hideIfDisabled:e,size:t="icon-sm",color:r="ghost",...a}){const{setOpenSearch:n,enabled:l}=se();return e&&!l?null:c.jsx("button",{type:"button",className:x(le({size:t,color:r}),a.className),"data-search":"","aria-label":"Open Search",onClick:()=>{n(!0)},children:c.jsx(ce,{})})}function tt({hideIfDisabled:e,...t}){const{enabled:r,hotKey:a,setOpenSearch:n}=se(),{text:l}=X();return e&&!r?null:c.jsxs("button",{type:"button","data-search-full":"",...t,className:x("inline-flex items-center gap-2 rounded-lg border bg-fd-secondary/50 p-1.5 ps-2 text-sm text-fd-muted-foreground transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground",t.className),onClick:()=>{n(!0)},children:[c.jsx(ce,{className:"size-4"}),l.search,c.jsx("div",{className:"ms-auto inline-flex gap-0.5",children:a.map((o,u)=>c.jsx("kbd",{className:"rounded-md border bg-fd-background px-1.5",children:o.display},u))})]})}const te=je("size-6.5 p-1.5 text-fd-muted-foreground",{variants:{active:{true:"bg-fd-accent text-fd-accent-foreground",false:"text-fd-muted-foreground"}}}),re=[["light",Ke],["dark",qe],["system",Ye]];function rt({className:e,mode:t="light-dark",...r}){const{setTheme:a,theme:n,resolvedTheme:l}=Fe(),[o,u]=i.useState(!1);i.useEffect(()=>{u(!0)},[]);const s=x("inline-flex items-center rounded-full border p-1 overflow-hidden *:rounded-full",e);if(t==="light-dark"){const d=o?l:null;return c.jsx("button",{className:s,"aria-label":"Toggle Theme",onClick:()=>a(d==="light"?"dark":"light"),"data-theme-toggle":"",children:re.map(([m,h])=>{if(m!=="system")return c.jsx(h,{fill:"currentColor",className:x(te({active:d===m}))},m)})})}const f=o?n:null;return c.jsx("div",{className:s,"data-theme-toggle":"",...r,children:re.map(([d,m])=>c.jsx("button",{"aria-label":d,className:x(te({active:f===d})),onClick:()=>a(d),children:c.jsx(m,{className:"size-full",fill:"currentColor"})},d))})}const nt=(e,t)=>t.icon?{...e,icon:c.jsx("div",{className:"size-full [&_svg]:size-full max-md:p-1.5 max-md:rounded-md max-md:border max-md:bg-fd-secondary",children:t.icon})}:e;function Jt(e,{transform:t=nt}={}){const r=[];function a(n,l){if("root"in n&&n.root){const o=n.index?.url??n.children.find(u=>u.type==="page")?.url;if(o){const u={title:n.name,icon:n.icon,description:n.description,url:o,unlisted:l,$folder:n},s=t?t(u,n):u;s&&r.push(s)}}for(const o of n.children)o.type==="folder"&&a(o,l)}return a(e),e.fallback&&a(e.fallback,!0),r}function er(e,t){return e.$folder?_e(e.$folder.children,r=>r.type==="page"&&N(r.url,t))!==null:e.urls?e.urls.has(ke(t)):N(e.url,t,!0)}function ot({links:e=[],githubUrl:t}){const r=[...e];return t&&r.push({type:"icon",url:t,text:"Github",label:"GitHub",icon:c.jsx("svg",{role:"img",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})}),external:!0}),r}function tr({githubUrl:e,links:t}){return i.useMemo(()=>{const r=ot({links:t,githubUrl:e}),a=[],n=[];for(const l of r)switch(l.on){case"menu":n.push(l);break;case"nav":a.push(l);break;default:a.push(l),n.push(l)}return{navItems:a,menuItems:n,all:r}},[t,e])}function ie(e,t){return e.type==="custom"||!e.url||e.active==="none"?!1:N(e.url,t,e.active==="nested-url")}function rr({ref:e,item:t,...r}){const a=ie(t,Y());return c.jsx(B,{ref:e,href:t.url,external:t.external,...r,"data-active":a,children:r.children})}function nr({useProps:e}){function t(l){const{themeSwitch:o}=e();return o.component?o.component:c.jsx(rt,{...l,...o})}function r(l){const{searchToggle:o}=e();return o.components?.sm?o.components.sm:c.jsx(et,{...l,...o.sm})}function a(l){const{searchToggle:o}=e();return o.components?.lg?o.components.lg:c.jsx(tt,{...l,...o.full})}function n({href:l="/",...o}){const{url:u=l,title:s}=e().nav??{};return typeof s=="function"?s({href:u,...o}):c.jsx(B,{href:u,...o,children:s})}return{useProvider(l){const{locales:o=[]}=X(),{nav:u,slots:s={},i18n:f=o.length>1,searchToggle:{enabled:d=!0,...m}={},themeSwitch:{enabled:h=!0,...p}={}}=l;return{baseSlots:{navTitle:s.navTitle??n,themeSwitch:h&&(s.themeSwitch??t),languageSelect:f?s.languageSelect??{root:Ze,text:Je}:!1,searchTrigger:d&&(s.searchTrigger??{sm:r,full:a})},baseProps:{nav:u,searchToggle:m,themeSwitch:p}}}}}function lt(e,[t,r]){return Math.min(r,Math.max(t,e))}function at(e,t){return i.useReducer((r,a)=>t[r][a]??r,e)}var K="ScrollArea",[ue]=Pe(K),[st,S]=ue(K),de=i.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:a="hover",dir:n,scrollHideDelay:l=600,...o}=e,[u,s]=i.useState(null),[f,d]=i.useState(null),[m,h]=i.useState(null),[p,g]=i.useState(null),[_,q]=i.useState(null),[y,O]=i.useState(0),[G,I]=i.useState(0),[z,k]=i.useState(!1),[H,F]=i.useState(!1),b=A(t,P=>s(P)),v=We(n);return c.jsx(st,{scope:r,type:a,dir:v,scrollHideDelay:l,scrollArea:u,viewport:f,onViewportChange:d,content:m,onContentChange:h,scrollbarX:p,onScrollbarXChange:g,scrollbarXEnabled:z,onScrollbarXEnabledChange:k,scrollbarY:_,onScrollbarYChange:q,scrollbarYEnabled:H,onScrollbarYEnabledChange:F,onCornerWidthChange:O,onCornerHeightChange:I,children:c.jsx(D.div,{dir:v,...o,ref:b,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":G+"px",...e.style}})})});de.displayName=K;var fe="ScrollAreaViewport",he=i.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:a,nonce:n,...l}=e,o=S(fe,r),u=i.useRef(null),s=A(t,u,o.onViewportChange);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),c.jsx(D.div,{"data-radix-scroll-area-viewport":"",...l,ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style},children:c.jsx("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"},children:a})})]})});he.displayName=fe;var w="ScrollAreaScrollbar",me=i.forwardRef((e,t)=>{const{forceMount:r,...a}=e,n=S(w,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:o}=n,u=e.orientation==="horizontal";return i.useEffect(()=>(u?l(!0):o(!0),()=>{u?l(!1):o(!1)}),[u,l,o]),n.type==="hover"?c.jsx(ct,{...a,ref:t,forceMount:r}):n.type==="scroll"?c.jsx(it,{...a,ref:t,forceMount:r}):n.type==="auto"?c.jsx(pe,{...a,ref:t,forceMount:r}):n.type==="always"?c.jsx(Z,{...a,ref:t}):null});me.displayName=w;var ct=i.forwardRef((e,t)=>{const{forceMount:r,...a}=e,n=S(w,e.__scopeScrollArea),[l,o]=i.useState(!1);return i.useEffect(()=>{const u=n.scrollArea;let s=0;if(u){const f=()=>{window.clearTimeout(s),o(!0)},d=()=>{s=window.setTimeout(()=>o(!1),n.scrollHideDelay)};return u.addEventListener("pointerenter",f),u.addEventListener("pointerleave",d),()=>{window.clearTimeout(s),u.removeEventListener("pointerenter",f),u.removeEventListener("pointerleave",d)}}},[n.scrollArea,n.scrollHideDelay]),c.jsx(L,{present:r||l,children:c.jsx(pe,{"data-state":l?"visible":"hidden",...a,ref:t})})}),it=i.forwardRef((e,t)=>{const{forceMount:r,...a}=e,n=S(w,e.__scopeScrollArea),l=e.orientation==="horizontal",o=$(()=>s("SCROLL_END"),100),[u,s]=at("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return i.useEffect(()=>{if(u==="idle"){const f=window.setTimeout(()=>s("HIDE"),n.scrollHideDelay);return()=>window.clearTimeout(f)}},[u,n.scrollHideDelay,s]),i.useEffect(()=>{const f=n.viewport,d=l?"scrollLeft":"scrollTop";if(f){let m=f[d];const h=()=>{const p=f[d];m!==p&&(s("SCROLL"),o()),m=p};return f.addEventListener("scroll",h),()=>f.removeEventListener("scroll",h)}},[n.viewport,l,s,o]),c.jsx(L,{present:r||u!=="hidden",children:c.jsx(Z,{"data-state":u==="hidden"?"hidden":"visible",...a,ref:t,onPointerEnter:j(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:j(e.onPointerLeave,()=>s("POINTER_LEAVE"))})})}),pe=i.forwardRef((e,t)=>{const r=S(w,e.__scopeScrollArea),{forceMount:a,...n}=e,[l,o]=i.useState(!1),u=e.orientation==="horizontal",s=$(()=>{if(r.viewport){const f=r.viewport.offsetWidth<r.viewport.scrollWidth,d=r.viewport.offsetHeight<r.viewport.scrollHeight;o(u?f:d)}},10);return E(r.viewport,s),E(r.content,s),c.jsx(L,{present:a||l,children:c.jsx(Z,{"data-state":l?"visible":"hidden",...n,ref:t})})}),Z=i.forwardRef((e,t)=>{const{orientation:r="vertical",...a}=e,n=S(w,e.__scopeScrollArea),l=i.useRef(null),o=i.useRef(0),[u,s]=i.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),f=ve(u.viewport,u.content),d={...a,sizes:u,onSizesChange:s,hasThumb:f>0&&f<1,onThumbChange:h=>l.current=h,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:h=>o.current=h};function m(h,p){return pt(h,o.current,u,p)}return r==="horizontal"?c.jsx(ut,{...d,ref:t,onThumbPositionChange:()=>{if(n.viewport&&l.current){const h=n.viewport.scrollLeft,p=ne(h,u,n.dir);l.current.style.transform=`translate3d(${p}px, 0, 0)`}},onWheelScroll:h=>{n.viewport&&(n.viewport.scrollLeft=h)},onDragScroll:h=>{n.viewport&&(n.viewport.scrollLeft=m(h,n.dir))}}):r==="vertical"?c.jsx(dt,{...d,ref:t,onThumbPositionChange:()=>{if(n.viewport&&l.current){const h=n.viewport.scrollTop,p=ne(h,u);l.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:h=>{n.viewport&&(n.viewport.scrollTop=h)},onDragScroll:h=>{n.viewport&&(n.viewport.scrollTop=m(h))}}):null}),ut=i.forwardRef((e,t)=>{const{sizes:r,onSizesChange:a,...n}=e,l=S(w,e.__scopeScrollArea),[o,u]=i.useState(),s=i.useRef(null),f=A(t,s,l.onScrollbarXChange);return i.useEffect(()=>{s.current&&u(getComputedStyle(s.current))},[s]),c.jsx(xe,{"data-orientation":"horizontal",...n,ref:f,sizes:r,style:{bottom:0,left:l.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:l.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":U(r)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,m)=>{if(l.viewport){const h=l.viewport.scrollLeft+d.deltaX;e.onWheelScroll(h),Ce(h,m)&&d.preventDefault()}},onResize:()=>{s.current&&l.viewport&&o&&a({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:V(o.paddingLeft),paddingEnd:V(o.paddingRight)}})}})}),dt=i.forwardRef((e,t)=>{const{sizes:r,onSizesChange:a,...n}=e,l=S(w,e.__scopeScrollArea),[o,u]=i.useState(),s=i.useRef(null),f=A(t,s,l.onScrollbarYChange);return i.useEffect(()=>{s.current&&u(getComputedStyle(s.current))},[s]),c.jsx(xe,{"data-orientation":"vertical",...n,ref:f,sizes:r,style:{top:0,right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":U(r)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,m)=>{if(l.viewport){const h=l.viewport.scrollTop+d.deltaY;e.onWheelScroll(h),Ce(h,m)&&d.preventDefault()}},onResize:()=>{s.current&&l.viewport&&o&&a({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:V(o.paddingTop),paddingEnd:V(o.paddingBottom)}})}})}),[ft,be]=ue(w),xe=i.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:a,hasThumb:n,onThumbChange:l,onThumbPointerUp:o,onThumbPointerDown:u,onThumbPositionChange:s,onDragScroll:f,onWheelScroll:d,onResize:m,...h}=e,p=S(w,r),[g,_]=i.useState(null),q=A(t,b=>_(b)),y=i.useRef(null),O=i.useRef(""),G=p.viewport,I=a.content-a.viewport,z=T(d),k=T(s),H=$(m,10);function F(b){if(y.current){const v=b.clientX-y.current.left,P=b.clientY-y.current.top;f({x:v,y:P})}}return i.useEffect(()=>{const b=v=>{const P=v.target;g?.contains(P)&&z(v,I)};return document.addEventListener("wheel",b,{passive:!1}),()=>document.removeEventListener("wheel",b,{passive:!1})},[G,g,I,z]),i.useEffect(k,[a,k]),E(g,H),E(p.content,H),c.jsx(ft,{scope:r,scrollbar:g,hasThumb:n,onThumbChange:T(l),onThumbPointerUp:T(o),onThumbPositionChange:k,onThumbPointerDown:T(u),children:c.jsx(D.div,{...h,ref:q,style:{position:"absolute",...h.style},onPointerDown:j(e.onPointerDown,b=>{b.button===0&&(b.target.setPointerCapture(b.pointerId),y.current=g.getBoundingClientRect(),O.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),F(b))}),onPointerMove:j(e.onPointerMove,F),onPointerUp:j(e.onPointerUp,b=>{const v=b.target;v.hasPointerCapture(b.pointerId)&&v.releasePointerCapture(b.pointerId),document.body.style.webkitUserSelect=O.current,p.viewport&&(p.viewport.style.scrollBehavior=""),y.current=null})})})}),W="ScrollAreaThumb",ge=i.forwardRef((e,t)=>{const{forceMount:r,...a}=e,n=be(W,e.__scopeScrollArea);return c.jsx(L,{present:r||n.hasThumb,children:c.jsx(ht,{ref:t,...a})})}),ht=i.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:a,...n}=e,l=S(W,r),o=be(W,r),{onThumbPositionChange:u}=o,s=A(t,m=>o.onThumbChange(m)),f=i.useRef(void 0),d=$(()=>{f.current&&(f.current(),f.current=void 0)},100);return i.useEffect(()=>{const m=l.viewport;if(m){const h=()=>{if(d(),!f.current){const p=bt(m,u);f.current=p,u()}};return u(),m.addEventListener("scroll",h),()=>m.removeEventListener("scroll",h)}},[l.viewport,d,u]),c.jsx(D.div,{"data-state":o.hasThumb?"visible":"hidden",...n,ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...a},onPointerDownCapture:j(e.onPointerDownCapture,m=>{const p=m.target.getBoundingClientRect(),g=m.clientX-p.left,_=m.clientY-p.top;o.onThumbPointerDown({x:g,y:_})}),onPointerUp:j(e.onPointerUp,o.onThumbPointerUp)})});ge.displayName=W;var J="ScrollAreaCorner",Se=i.forwardRef((e,t)=>{const r=S(J,e.__scopeScrollArea),a=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&a?c.jsx(mt,{...e,ref:t}):null});Se.displayName=J;var mt=i.forwardRef((e,t)=>{const{__scopeScrollArea:r,...a}=e,n=S(J,r),[l,o]=i.useState(0),[u,s]=i.useState(0),f=!!(l&&u);return E(n.scrollbarX,()=>{const d=n.scrollbarX?.offsetHeight||0;n.onCornerHeightChange(d),s(d)}),E(n.scrollbarY,()=>{const d=n.scrollbarY?.offsetWidth||0;n.onCornerWidthChange(d),o(d)}),f?c.jsx(D.div,{...a,ref:t,style:{width:l,height:u,position:"absolute",right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function V(e){return e?parseInt(e,10):0}function ve(e,t){const r=e/t;return isNaN(r)?0:r}function U(e){const t=ve(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,a=(e.scrollbar.size-r)*t;return Math.max(a,18)}function pt(e,t,r,a="ltr"){const n=U(r),l=n/2,o=t||l,u=n-o,s=r.scrollbar.paddingStart+o,f=r.scrollbar.size-r.scrollbar.paddingEnd-u,d=r.content-r.viewport,m=a==="ltr"?[0,d]:[d*-1,0];return we([s,f],m)(e)}function ne(e,t,r="ltr"){const a=U(t),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-n,o=t.content-t.viewport,u=l-a,s=r==="ltr"?[0,o]:[o*-1,0],f=lt(e,s);return we([0,o],[0,u])(f)}function we(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const a=(t[1]-t[0])/(e[1]-e[0]);return t[0]+a*(r-e[0])}}function Ce(e,t){return e>0&&e<t}var bt=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},a=0;return(function n(){const l={left:e.scrollLeft,top:e.scrollTop},o=r.left!==l.left,u=r.top!==l.top;(o||u)&&t(),r=l,a=window.requestAnimationFrame(n)})(),()=>window.cancelAnimationFrame(a)};function $(e,t){const r=T(e),a=i.useRef(0);return i.useEffect(()=>()=>window.clearTimeout(a.current),[]),i.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(r,t)},[r,t])}function E(e,t){const r=T(t);Ee(()=>{let a=0;if(e){const n=new ResizeObserver(()=>{cancelAnimationFrame(a),a=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(a),n.unobserve(e)}}},[e,r])}var xt=de,gt=he,St=me,vt=Se;function wt({className:e,children:t,...r}){return c.jsxs(xt,{type:"scroll",className:x("overflow-hidden",e),...r,children:[t,c.jsx(vt,{}),c.jsx(yt,{orientation:"vertical"})]})}function Ct({className:e,children:t,...r}){return c.jsx(gt,{className:x("size-full rounded-[inherit]",e),...r,children:t})}function yt({className:e,orientation:t="vertical",...r}){return c.jsx(St,{orientation:t,className:x("flex select-none data-[state=hidden]:animate-fd-fade-out",t==="vertical"&&"h-full w-1.5",t==="horizontal"&&"h-1.5 flex-col",e),...r,children:c.jsx(ge,{className:"relative flex-1 rounded-full bg-fd-border"})})}function Tt(e,t=!1){const[r,a]=i.useState(null);return i.useEffect(()=>{if(t)return;const n=window.matchMedia(e),l=()=>{a(n.matches)};return l(),n.addEventListener("change",l),()=>{n.removeEventListener("change",l)}},[t,e]),r}var or=Ne({SidebarCollapseTrigger:()=>zt,SidebarContent:()=>Et,SidebarDrawerContent:()=>Lt,SidebarDrawerOverlay:()=>At,SidebarFolder:()=>Nt,SidebarFolderContent:()=>Ot,SidebarFolderLink:()=>Mt,SidebarFolderTrigger:()=>Dt,SidebarItem:()=>kt,SidebarProvider:()=>jt,SidebarSeparator:()=>_t,SidebarTrigger:()=>It,SidebarViewport:()=>Rt,useAutoScroll:()=>ee,useFolder:()=>Pt,useFolderDepth:()=>Te,useSidebar:()=>C});const ye=i.createContext(null),M=i.createContext(null);function jt({defaultOpenLevel:e=0,prefetch:t,children:r}){const a=i.useRef(!0),[n,l]=i.useState(!1),[o,u]=i.useState(!1),s=Y(),f=Tt("(width < 768px)")?"drawer":"full";return Q(s,()=>{a.current&&l(!1),a.current=!0}),c.jsx(ye,{value:i.useMemo(()=>({open:n,setOpen:l,collapsed:o,setCollapsed:u,closeOnRedirect:a,defaultOpenLevel:e,prefetch:t,mode:f}),[n,o,e,t,f]),children:r})}function C(){const e=i.use(ye);if(!e)throw new Error("Missing SidebarContext, make sure you have wrapped the component in <DocsLayout /> and the context is available.");return e}function Pt(){return i.use(M)}function Te(){return i.use(M)?.depth??0}function Et({mode:e="full",children:t}){const{collapsed:r,mode:a}=C(),[n,l]=i.useState(!1),o=i.useRef(null),u=i.useRef(0);if(Q(r,()=>{r&&l(!1)}),e!==!0&&e!==a)return;function s(f){const d=o.current;return d?!r||f.pointerType==="touch"||d.getAnimations().length>0:!0}return t({ref:o,collapsed:r,hovered:n,onPointerEnter(f){s(f)||(window.clearTimeout(u.current),l(!0))},onPointerLeave(f){s(f)||(window.clearTimeout(u.current),u.current=window.setTimeout(()=>l(!1),Math.min(f.clientX,document.body.clientWidth-f.clientX)>100?0:500))}})}function Rt({area:e,viewport:t,children:r}){return c.jsx(wt,{...e,className:x("min-h-0 flex-1",e?.className),children:c.jsx(Ct,{...t,className:x("*:flex! *:flex-col! *:gap-0.5! p-4 overscroll-contain mask-[linear-gradient(to_bottom,transparent,white_12px,white_calc(100%-12px),transparent)]",t?.className),children:r})})}function At(e){const{open:t,setOpen:r,mode:a}=C();if(a==="drawer")return c.jsx(L,{present:t,children:c.jsx("div",{"data-state":t?"open":"closed",onClick:()=>r(!1),...e})})}function Lt({className:e,children:t,...r}){const{open:a,mode:n}=C(),l=a?"open":"closed";if(n==="drawer")return c.jsx(L,{present:a,children:({present:o})=>c.jsx("aside",{id:"nd-sidebar-mobile","data-state":l,className:x(!o&&"invisible",e),...r,children:t})})}function _t(e){return c.jsx("p",{...e})}function kt({icon:e,active:t=!1,children:r,...a}){const n=i.useRef(null),{prefetch:l}=C();return ee(t,n),c.jsxs(B,{ref:n,"data-active":t,prefetch:l,...a,children:[e??(a.external?c.jsx(De,{}):null),r]})}function Nt({defaultOpen:e,collapsible:t=!0,active:r=!1,children:a,...n}){const{defaultOpenLevel:l}=C(),o=Te()+1,u=t===!1||r||(e??l>=o),[s,f]=i.useState(u);return Q(u,d=>{d&&f(d)}),c.jsx(Me,{open:s,onOpenChange:f,disabled:!t,...n,children:c.jsx(M,{value:i.useMemo(()=>({open:s,setOpen:f,depth:o,collapsible:t}),[t,o,s]),children:a})})}function Dt({children:e,...t}){const{open:r,collapsible:a}=i.use(M);return a?c.jsxs(Oe,{...t,children:[e,c.jsx(ae,{"data-icon":!0,className:x("ms-auto transition-transform",!r&&"-rotate-90 rtl:rotate-90")})]}):c.jsx("div",{...t,children:e})}function Mt({children:e,active:t=!1,...r}){const a=i.useRef(null),{open:n,setOpen:l,collapsible:o}=i.use(M),{prefetch:u}=C();return ee(t,a),c.jsxs(B,{ref:a,"data-active":t,onClick:s=>{o&&(s.target instanceof Element&&s.target.matches("[data-icon], [data-icon] *")?(l(!n),s.preventDefault()):l(t?!n:!0))},prefetch:u,...r,children:[e,o&&c.jsx(ae,{"data-icon":!0,className:x("ms-auto transition-transform",!n&&"-rotate-90 rtl:rotate-90")})]})}function Ot(e){return c.jsx(Ie,{...e,children:e.children})}function It({children:e,...t}){const{setOpen:r}=C();return c.jsx("button",{"aria-label":"Open Sidebar",onClick:()=>r(a=>!a),...t,children:e})}function zt(e){const{collapsed:t,setCollapsed:r}=C();return c.jsx("button",{type:"button","aria-label":"Collapse Sidebar","data-collapsed":t,onClick:()=>{r(a=>!a)},...e,children:e.children})}function ee(e,t){const{mode:r}=C();i.useEffect(()=>{e&&t.current&&Ve(t.current,{boundary:document.getElementById(r==="drawer"?"nd-sidebar-mobile":"nd-sidebar"),scrollMode:"if-needed"})},[e,r,t])}const oe=i.createContext(null);function lr({SidebarFolder:e,SidebarFolderContent:t,SidebarFolderLink:r,SidebarFolderTrigger:a,SidebarSeparator:n,SidebarItem:l}){function o(s){return s.map((f,d)=>c.jsx(u,{node:f},d))}function u({node:s}){const{Separator:f,Item:d,Folder:m,pathname:h}=i.use(oe);if(s.type==="separator")return f?c.jsx(f,{item:s}):c.jsxs(n,{children:[s.icon,s.name]});if(s.type==="folder"){const p=He();return m?c.jsx(m,{item:s,children:o(s.children)}):c.jsxs(e,{collapsible:s.collapsible,active:p.includes(s),defaultOpen:s.defaultOpen,children:[s.index?c.jsxs(r,{href:s.index.url,active:N(s.index.url,h),external:s.index.external,children:[s.icon,s.name]}):c.jsxs(a,{children:[s.icon,s.name]}),c.jsx(t,{children:o(s.children)})]})}return d?c.jsx(d,{item:s}):c.jsx(l,{href:s.url,external:s.external,active:N(s.url,h),icon:s.icon,children:s.name})}return function(f){const{Folder:d,Item:m,Separator:h}=f,{root:p}=ze(),g=Y();return c.jsx(oe,{value:i.useMemo(()=>({Folder:d,Item:m,Separator:h,pathname:g}),[d,m,h,g]),children:c.jsx(i.Fragment,{children:o(p.children)},p.$id)})}}function ar({SidebarFolder:e,SidebarFolderContent:t,SidebarFolderLink:r,SidebarFolderTrigger:a,SidebarItem:n}){return function l({item:o,...u}){const s=ie(o,Y());return o.type==="custom"?c.jsx("div",{...u,children:o.children}):o.type==="menu"?c.jsxs(e,{...u,children:[o.url?c.jsxs(r,{href:o.url,active:s,external:o.external,children:[o.icon,o.text]}):c.jsxs(a,{children:[o.icon,o.text]}),c.jsx(t,{children:o.items.map((f,d)=>c.jsx(l,{item:f},d))})]}):c.jsx(n,{href:o.url,icon:o.icon,external:o.external,active:s,...u,children:o.text})}}export{Qt as C,Kt as L,Zt as P,It as S,Rt as a,or as b,rr as c,jt as d,ar as e,lr as f,Et as g,zt as h,et as i,er as j,At as k,Lt as l,Nt as m,Ot as n,Mt as o,Pt as p,Dt as q,_t as r,kt as s,tr as t,Te as u,nr as v,Jt as w};
@@ -1 +1 @@
1
- import{L as c}from"./index-B-5ouVG_.js";import{r as i,j as a}from"./index-OFfnl8sH.js";import{c as m}from"./index-Bojr-xLv.js";const f=i.forwardRef(({href:t="#",external:o=t.match(/^\w+:/)||t.startsWith("//"),prefetch:r,children:e,...n},s)=>o?a.jsx("a",{ref:s,href:t,rel:"noreferrer noopener",target:"_blank",...n,children:e}):a.jsx(c,{ref:s,href:t,prefetch:r,...n,children:e}));f.displayName="Link";const p=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],L=m("check",p);function d(...t){return o=>{t.forEach(r=>{typeof r=="function"?r(o):r&&(r.current=o)})}}export{L as C,f as L,d as m};
1
+ import{L as c}from"./index-C3s8rSzK.js";import{r as i,j as a}from"./index-BP1WY6Lo.js";import{c as m}from"./index-Dmso5wU0.js";const f=i.forwardRef(({href:t="#",external:o=t.match(/^\w+:/)||t.startsWith("//"),prefetch:r,children:e,...n},s)=>o?a.jsx("a",{ref:s,href:t,rel:"noreferrer noopener",target:"_blank",...n,children:e}):a.jsx(c,{ref:s,href:t,prefetch:r,...n,children:e}));f.displayName="Link";const p=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],L=m("check",p);function d(...t){return o=>{t.forEach(r=>{typeof r=="function"?r(o):r&&(r.current=o)})}}export{L as C,f as L,d as m};
@@ -1 +1 @@
1
- import{c as p}from"./index-NB9D4S1v.js";import{r as g}from"./remove-undefined-PK1FA5gc-oajMeTFk.js";import"./index-B65N5043.js";import"./index-OFfnl8sH.js";function y(u){const{index:l="default",client:c,params:o,tag:n}=u;return{deps:[l,c,n],async search(d){const s=p(d),e=[];if(l==="crawler"){const a=await c.search({datasources:[],...o,term:d,where:{category:n?{eq:n.slice(0,1).toUpperCase()+n.slice(1)}:void 0,...o?.where},limit:10});if(!a)return e;for(const r of a.hits){const i=r.document;e.push({id:r.id,type:"page",content:s.highlightMarkdown(i.title),url:i.path},{id:"page"+r.id,type:"text",content:s.highlightMarkdown(i.content),url:i.path})}return e}const h=await c.search({datasources:[],...o,term:d,limit:20,where:g({tag:n,...o?.where}),groupBy:{properties:["page_id"],max_results:7,...o?.groupBy}});if(!h||!h.groups)return e;for(const a of h.groups){let r=!1;for(const i of a.result){const t=i.document;r||(e.push({id:t.page_id,type:"page",content:s.highlightMarkdown(t.title),breadcrumbs:t.breadcrumbs,url:t.url}),r=!0),e.push({id:t.id,content:s.highlightMarkdown(t.content),type:t.content===t.section?"heading":"text",url:t.section_id?`${t.url}#${t.section_id}`:t.url})}}return e.length>80?e.slice(0,80):e}}}export{y as oramaCloudClient};
1
+ import{c as p}from"./index-Co9YM64a.js";import{r as g}from"./remove-undefined-PK1FA5gc-oajMeTFk.js";import"./index-BByRkXVE.js";import"./index-BP1WY6Lo.js";function y(u){const{index:l="default",client:c,params:o,tag:n}=u;return{deps:[l,c,n],async search(d){const s=p(d),e=[];if(l==="crawler"){const a=await c.search({datasources:[],...o,term:d,where:{category:n?{eq:n.slice(0,1).toUpperCase()+n.slice(1)}:void 0,...o?.where},limit:10});if(!a)return e;for(const r of a.hits){const i=r.document;e.push({id:r.id,type:"page",content:s.highlightMarkdown(i.title),url:i.path},{id:"page"+r.id,type:"text",content:s.highlightMarkdown(i.content),url:i.path})}return e}const h=await c.search({datasources:[],...o,term:d,limit:20,where:g({tag:n,...o?.where}),groupBy:{properties:["page_id"],max_results:7,...o?.groupBy}});if(!h||!h.groups)return e;for(const a of h.groups){let r=!1;for(const i of a.result){const t=i.document;r||(e.push({id:t.page_id,type:"page",content:s.highlightMarkdown(t.title),breadcrumbs:t.breadcrumbs,url:t.url}),r=!0),e.push({id:t.id,content:s.highlightMarkdown(t.content),type:t.content===t.section?"heading":"text",url:t.section_id?`${t.url}#${t.section_id}`:t.url})}}return e.length>80?e.slice(0,80):e}}}export{y as oramaCloudClient};
@@ -1 +1 @@
1
- import{c as g}from"./index-NB9D4S1v.js";import{r as m}from"./remove-undefined-PK1FA5gc-oajMeTFk.js";import"./index-B65N5043.js";import"./index-OFfnl8sH.js";function b(p){const{index:l="default",client:c,params:o={},tag:n}=p;return{deps:[l,c,n],async search(d){const a=g(d),e=[];if(l==="crawler"){const s=await c.search({...o,term:d,where:{category:n?{eq:n.slice(0,1).toUpperCase()+n.slice(1)}:void 0,...o.where},limit:10});if(!s)return e;for(const r of s.hits){const i=r.document;e.push({id:r.id,type:"page",content:a.highlightMarkdown(i.title),url:i.path},{id:"page"+r.id,type:"text",content:a.highlightMarkdown(i.content),url:i.path})}return e}const u={...o,term:d,where:m({tag:n,...o.where}),groupBy:{properties:["page_id"],maxResult:7,...o.groupBy}},h=await c.search(u);if(!h||!h.groups)return e;for(const s of h.groups){let r=!1;for(const i of s.result){const t=i.document;r||(e.push({id:t.page_id,type:"page",content:a.highlightMarkdown(t.title),breadcrumbs:t.breadcrumbs,url:t.url}),r=!0),e.push({id:t.id,content:a.highlightMarkdown(t.content),type:t.content===t.section?"heading":"text",url:t.section_id?`${t.url}#${t.section_id}`:t.url})}}return e}}}export{b as oramaCloudLegacyClient};
1
+ import{c as g}from"./index-Co9YM64a.js";import{r as m}from"./remove-undefined-PK1FA5gc-oajMeTFk.js";import"./index-BByRkXVE.js";import"./index-BP1WY6Lo.js";function b(p){const{index:l="default",client:c,params:o={},tag:n}=p;return{deps:[l,c,n],async search(d){const a=g(d),e=[];if(l==="crawler"){const s=await c.search({...o,term:d,where:{category:n?{eq:n.slice(0,1).toUpperCase()+n.slice(1)}:void 0,...o.where},limit:10});if(!s)return e;for(const r of s.hits){const i=r.document;e.push({id:r.id,type:"page",content:a.highlightMarkdown(i.title),url:i.path},{id:"page"+r.id,type:"text",content:a.highlightMarkdown(i.content),url:i.path})}return e}const u={...o,term:d,where:m({tag:n,...o.where}),groupBy:{properties:["page_id"],maxResult:7,...o.groupBy}},h=await c.search(u);if(!h||!h.groups)return e;for(const s of h.groups){let r=!1;for(const i of s.result){const t=i.document;r||(e.push({id:t.page_id,type:"page",content:a.highlightMarkdown(t.title),breadcrumbs:t.breadcrumbs,url:t.url}),r=!0),e.push({id:t.id,content:a.highlightMarkdown(t.content),type:t.content===t.section?"heading":"text",url:t.section_id?`${t.url}#${t.section_id}`:t.url})}}return e}}}export{b as oramaCloudLegacyClient};
@@ -1,4 +1,4 @@
1
- import{c as ze}from"./index-NB9D4S1v.js";import{r as it}from"./remove-undefined-PK1FA5gc-oajMeTFk.js";import"./index-B65N5043.js";import"./index-OFfnl8sH.js";const Be={arabic:"ar",armenian:"am",bulgarian:"bg",czech:"cz",danish:"dk",dutch:"nl",english:"en",finnish:"fi",french:"fr",german:"de",greek:"gr",hungarian:"hu",indian:"in",indonesian:"id",irish:"ie",italian:"it",lithuanian:"lt",nepali:"np",norwegian:"no",portuguese:"pt",romanian:"ro",russian:"ru",serbian:"rs",slovenian:"ru",spanish:"es",swedish:"se",tamil:"ta",turkish:"tr",ukrainian:"uk",sanskrit:"sk"},ct={dutch:/[^A-Za-zàèéìòóù0-9_'-]+/gim,english:/[^A-Za-zàèéìòóù0-9_'-]+/gim,french:/[^a-z0-9äâàéèëêïîöôùüûœç-]+/gim,italian:/[^A-Za-zàèéìòóù0-9_'-]+/gim,norwegian:/[^a-z0-9_æøåÆØÅäÄöÖüÜ]+/gim,portuguese:/[^a-z0-9à-úÀ-Ú]/gim,russian:/[^a-z0-9а-яА-ЯёЁ]+/gim,spanish:/[^a-z0-9A-Zá-úÁ-ÚñÑüÜ]+/gim,swedish:/[^a-z0-9_åÅäÄöÖüÜ-]+/gim,german:/[^a-z0-9A-ZäöüÄÖÜß]+/gim,finnish:/[^a-z0-9äöÄÖ]+/gim,danish:/[^a-z0-9æøåÆØÅ]+/gim,hungarian:/[^a-z0-9áéíóöőúüűÁÉÍÓÖŐÚÜŰ]+/gim,romanian:/[^a-z0-9ăâîșțĂÂÎȘȚ]+/gim,serbian:/[^a-z0-9čćžšđČĆŽŠĐ]+/gim,turkish:/[^a-z0-9çÇğĞıİöÖşŞüÜ]+/gim,lithuanian:/[^a-z0-9ąčęėįšųūžĄČĘĖĮŠŲŪŽ]+/gim,arabic:/[^a-z0-9أ-ي]+/gim,nepali:/[^a-z0-9अ-ह]+/gim,irish:/[^a-z0-9áéíóúÁÉÍÓÚ]+/gim,indian:/[^a-z0-9अ-ह]+/gim,armenian:/[^a-z0-9ա-ֆ]+/gim,greek:/[^a-z0-9α-ωά-ώ]+/gim,indonesian:/[^a-z0-9]+/gim,ukrainian:/[^a-z0-9а-яА-ЯіїєІЇЄ]+/gim,slovenian:/[^a-z0-9螚ȎŠ]+/gim,bulgarian:/[^a-z0-9а-яА-Я]+/gim,tamil:/[^a-z0-9அ-ஹ]+/gim,sanskrit:/[^a-z0-9A-Zāīūṛḷṃṁḥśṣṭḍṇṅñḻḹṝ]+/gim,czech:/[^A-Z0-9a-zěščřžýáíéúůóťďĚŠČŘŽÝÁÍÉÓÚŮŤĎ-]+/gim},se=Object.keys(Be);function at(t){return t!==void 0&&se.includes(t)?Be[t]:void 0}const lt=Date.now().toString().slice(5);let ut=0;const ge=BigInt(1e3),me=BigInt(1e6),ye=BigInt(1e9),ee=65535;function Fe(t,e){if(e.length<ee)Array.prototype.push.apply(t,e);else{const n=e.length;for(let r=0;r<n;r+=ee)Array.prototype.push.apply(t,e.slice(r,r+ee))}}function ft(t,...e){return t.replace(/%(?:(?<position>\d+)\$)?(?<width>-?\d*\.?\d*)(?<type>[dfs])/g,function(...n){const r=n[n.length-1],{width:o,type:s,position:i}=r,c=i?e[Number.parseInt(i)-1]:e.shift(),a=o===""?0:Number.parseInt(o);switch(s){case"d":return c.toString().padStart(a,"0");case"f":{let l=c;const[f,u]=o.split(".").map(d=>Number.parseFloat(d));return typeof u=="number"&&u>=0&&(l=l.toFixed(u)),typeof f=="number"&&f>=0?l.toString().padStart(a,"0"):l.toString()}case"s":return a<0?c.toString().padEnd(-a," "):c.toString().padStart(a," ");default:return c}})}function dt(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function ht(){return typeof process<"u"&&process.release&&process.release.name==="node"}function Se(){return BigInt(Math.floor(performance.now()*1e6))}function ie(t){return typeof t=="number"&&(t=BigInt(t)),t<ge?`${t}ns`:t<me?`${t/ge}μs`:t<ye?`${t/me}ms`:`${t/ye}s`}function C(){return dt()?Se():ht()||typeof process<"u"&&typeof process?.hrtime?.bigint=="function"?process.hrtime.bigint():typeof performance<"u"?Se():BigInt(0)}function Ve(){return`${lt}-${ut++}`}function te(t,e){return Object.hasOwn===void 0?Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0:Object.hasOwn(t,e)?t[e]:void 0}function We(t,e){return e[1]===t[1]?t[0]-e[0]:e[1]-t[1]}function pt(t){if(t.length===0)return[];if(t.length===1)return t[0];for(let n=1;n<t.length;n++)if(t[n].length<t[0].length){const r=t[0];t[0]=t[n],t[n]=r}const e=new Map;for(const n of t[0])e.set(n,1);for(let n=1;n<t.length;n++){let r=0;for(const o of t[n]){const s=e.get(o);s===n&&(e.set(o,s+1),r++)}if(r===0)return[]}return t[0].filter(n=>{const r=e.get(n);return r!==void 0&&e.set(n,0),r===t.length})}function $e(t,e){const n={},r=e.length;for(let o=0;o<r;o++){const s=e[o],i=s.split(".");let c=t;const a=i.length;for(let l=0;l<a;l++)if(c=c[i[l]],typeof c=="object"){if(c!==null&&"lat"in c&&"lon"in c&&typeof c.lat=="number"&&typeof c.lon=="number"){c=n[s]=c;break}else if(!Array.isArray(c)&&c!==null&&l===a-1){c=void 0;break}}else if((c===null||typeof c!="object")&&l<a-1){c=void 0;break}typeof c<"u"&&(n[s]=c)}return n}function ce(t,e){return $e(t,[e])[e]}const gt={cm:.01,m:1,km:1e3,ft:.3048,yd:.9144,mi:1609.344};function Ge(t,e){const n=gt[e];if(n===void 0)throw new Error(O("INVALID_DISTANCE_SUFFIX",t).message);return t*n}function je(t,e){t.hits=t.hits.map(n=>({...n,document:{...n.document,...e.reduce((r,o)=>{const s=o.split("."),i=s.pop();let c=r;for(const a of s)c[a]=c[a]??{},c=c[a];return c[i]=null,r},n.document)}}))}function j(t){return Array.isArray(t)?t.some(e=>j(e)):t?.constructor?.name==="AsyncFunction"}const be="intersection"in new Set;function Ie(...t){if(t.length===0)return new Set;if(t.length===1)return t[0];if(t.length===2){const r=t[0],o=t[1];if(be)return r.intersection(o);const s=new Set,i=r.size<o.size?r:o,c=i===r?o:r;for(const a of i)c.has(a)&&s.add(a);return s}const e={index:0,size:t[0].size};for(let r=1;r<t.length;r++)t[r].size<e.size&&(e.index=r,e.size=t[r].size);if(be){let r=t[e.index];for(let o=0;o<t.length;o++)o!==e.index&&(r=r.intersection(t[o]));return r}const n=t[e.index];for(let r=0;r<t.length;r++){if(r===e.index)continue;const o=t[r];for(const s of n)o.has(s)||n.delete(s)}return n}const mt="union"in new Set;function V(t,e){return mt?t?t.union(e):e:t?new Set([...t,...e]):new Set(e)}function yt(t,e){const n=new Set;for(const r of t)e.has(r)||n.add(r);return n}const St=se.join(`
1
+ import{c as ze}from"./index-Co9YM64a.js";import{r as it}from"./remove-undefined-PK1FA5gc-oajMeTFk.js";import"./index-BByRkXVE.js";import"./index-BP1WY6Lo.js";const Be={arabic:"ar",armenian:"am",bulgarian:"bg",czech:"cz",danish:"dk",dutch:"nl",english:"en",finnish:"fi",french:"fr",german:"de",greek:"gr",hungarian:"hu",indian:"in",indonesian:"id",irish:"ie",italian:"it",lithuanian:"lt",nepali:"np",norwegian:"no",portuguese:"pt",romanian:"ro",russian:"ru",serbian:"rs",slovenian:"ru",spanish:"es",swedish:"se",tamil:"ta",turkish:"tr",ukrainian:"uk",sanskrit:"sk"},ct={dutch:/[^A-Za-zàèéìòóù0-9_'-]+/gim,english:/[^A-Za-zàèéìòóù0-9_'-]+/gim,french:/[^a-z0-9äâàéèëêïîöôùüûœç-]+/gim,italian:/[^A-Za-zàèéìòóù0-9_'-]+/gim,norwegian:/[^a-z0-9_æøåÆØÅäÄöÖüÜ]+/gim,portuguese:/[^a-z0-9à-úÀ-Ú]/gim,russian:/[^a-z0-9а-яА-ЯёЁ]+/gim,spanish:/[^a-z0-9A-Zá-úÁ-ÚñÑüÜ]+/gim,swedish:/[^a-z0-9_åÅäÄöÖüÜ-]+/gim,german:/[^a-z0-9A-ZäöüÄÖÜß]+/gim,finnish:/[^a-z0-9äöÄÖ]+/gim,danish:/[^a-z0-9æøåÆØÅ]+/gim,hungarian:/[^a-z0-9áéíóöőúüűÁÉÍÓÖŐÚÜŰ]+/gim,romanian:/[^a-z0-9ăâîșțĂÂÎȘȚ]+/gim,serbian:/[^a-z0-9čćžšđČĆŽŠĐ]+/gim,turkish:/[^a-z0-9çÇğĞıİöÖşŞüÜ]+/gim,lithuanian:/[^a-z0-9ąčęėįšųūžĄČĘĖĮŠŲŪŽ]+/gim,arabic:/[^a-z0-9أ-ي]+/gim,nepali:/[^a-z0-9अ-ह]+/gim,irish:/[^a-z0-9áéíóúÁÉÍÓÚ]+/gim,indian:/[^a-z0-9अ-ह]+/gim,armenian:/[^a-z0-9ա-ֆ]+/gim,greek:/[^a-z0-9α-ωά-ώ]+/gim,indonesian:/[^a-z0-9]+/gim,ukrainian:/[^a-z0-9а-яА-ЯіїєІЇЄ]+/gim,slovenian:/[^a-z0-9螚ȎŠ]+/gim,bulgarian:/[^a-z0-9а-яА-Я]+/gim,tamil:/[^a-z0-9அ-ஹ]+/gim,sanskrit:/[^a-z0-9A-Zāīūṛḷṃṁḥśṣṭḍṇṅñḻḹṝ]+/gim,czech:/[^A-Z0-9a-zěščřžýáíéúůóťďĚŠČŘŽÝÁÍÉÓÚŮŤĎ-]+/gim},se=Object.keys(Be);function at(t){return t!==void 0&&se.includes(t)?Be[t]:void 0}const lt=Date.now().toString().slice(5);let ut=0;const ge=BigInt(1e3),me=BigInt(1e6),ye=BigInt(1e9),ee=65535;function Fe(t,e){if(e.length<ee)Array.prototype.push.apply(t,e);else{const n=e.length;for(let r=0;r<n;r+=ee)Array.prototype.push.apply(t,e.slice(r,r+ee))}}function ft(t,...e){return t.replace(/%(?:(?<position>\d+)\$)?(?<width>-?\d*\.?\d*)(?<type>[dfs])/g,function(...n){const r=n[n.length-1],{width:o,type:s,position:i}=r,c=i?e[Number.parseInt(i)-1]:e.shift(),a=o===""?0:Number.parseInt(o);switch(s){case"d":return c.toString().padStart(a,"0");case"f":{let l=c;const[f,u]=o.split(".").map(d=>Number.parseFloat(d));return typeof u=="number"&&u>=0&&(l=l.toFixed(u)),typeof f=="number"&&f>=0?l.toString().padStart(a,"0"):l.toString()}case"s":return a<0?c.toString().padEnd(-a," "):c.toString().padStart(a," ");default:return c}})}function dt(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function ht(){return typeof process<"u"&&process.release&&process.release.name==="node"}function Se(){return BigInt(Math.floor(performance.now()*1e6))}function ie(t){return typeof t=="number"&&(t=BigInt(t)),t<ge?`${t}ns`:t<me?`${t/ge}μs`:t<ye?`${t/me}ms`:`${t/ye}s`}function C(){return dt()?Se():ht()||typeof process<"u"&&typeof process?.hrtime?.bigint=="function"?process.hrtime.bigint():typeof performance<"u"?Se():BigInt(0)}function Ve(){return`${lt}-${ut++}`}function te(t,e){return Object.hasOwn===void 0?Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0:Object.hasOwn(t,e)?t[e]:void 0}function We(t,e){return e[1]===t[1]?t[0]-e[0]:e[1]-t[1]}function pt(t){if(t.length===0)return[];if(t.length===1)return t[0];for(let n=1;n<t.length;n++)if(t[n].length<t[0].length){const r=t[0];t[0]=t[n],t[n]=r}const e=new Map;for(const n of t[0])e.set(n,1);for(let n=1;n<t.length;n++){let r=0;for(const o of t[n]){const s=e.get(o);s===n&&(e.set(o,s+1),r++)}if(r===0)return[]}return t[0].filter(n=>{const r=e.get(n);return r!==void 0&&e.set(n,0),r===t.length})}function $e(t,e){const n={},r=e.length;for(let o=0;o<r;o++){const s=e[o],i=s.split(".");let c=t;const a=i.length;for(let l=0;l<a;l++)if(c=c[i[l]],typeof c=="object"){if(c!==null&&"lat"in c&&"lon"in c&&typeof c.lat=="number"&&typeof c.lon=="number"){c=n[s]=c;break}else if(!Array.isArray(c)&&c!==null&&l===a-1){c=void 0;break}}else if((c===null||typeof c!="object")&&l<a-1){c=void 0;break}typeof c<"u"&&(n[s]=c)}return n}function ce(t,e){return $e(t,[e])[e]}const gt={cm:.01,m:1,km:1e3,ft:.3048,yd:.9144,mi:1609.344};function Ge(t,e){const n=gt[e];if(n===void 0)throw new Error(O("INVALID_DISTANCE_SUFFIX",t).message);return t*n}function je(t,e){t.hits=t.hits.map(n=>({...n,document:{...n.document,...e.reduce((r,o)=>{const s=o.split("."),i=s.pop();let c=r;for(const a of s)c[a]=c[a]??{},c=c[a];return c[i]=null,r},n.document)}}))}function j(t){return Array.isArray(t)?t.some(e=>j(e)):t?.constructor?.name==="AsyncFunction"}const be="intersection"in new Set;function Ie(...t){if(t.length===0)return new Set;if(t.length===1)return t[0];if(t.length===2){const r=t[0],o=t[1];if(be)return r.intersection(o);const s=new Set,i=r.size<o.size?r:o,c=i===r?o:r;for(const a of i)c.has(a)&&s.add(a);return s}const e={index:0,size:t[0].size};for(let r=1;r<t.length;r++)t[r].size<e.size&&(e.index=r,e.size=t[r].size);if(be){let r=t[e.index];for(let o=0;o<t.length;o++)o!==e.index&&(r=r.intersection(t[o]));return r}const n=t[e.index];for(let r=0;r<t.length;r++){if(r===e.index)continue;const o=t[r];for(const s of n)o.has(s)||n.delete(s)}return n}const mt="union"in new Set;function V(t,e){return mt?t?t.union(e):e:t?new Set([...t,...e]):new Set(e)}function yt(t,e){const n=new Set;for(const r of t)e.has(r)||n.add(r);return n}const St=se.join(`
2
2
  - `),bt={NO_LANGUAGE_WITH_CUSTOM_TOKENIZER:"Do not pass the language option to create when using a custom tokenizer.",LANGUAGE_NOT_SUPPORTED:`Language "%s" is not supported.
3
3
  Supported languages are:
4
4
  - ${St}`,INVALID_STEMMER_FUNCTION_TYPE:"config.stemmer property must be a function.",MISSING_STEMMER:'As of version 1.0.0 @orama/orama does not ship non English stemmers by default. To solve this, please explicitly import and specify the "%s" stemmer from the package @orama/stemmers. See https://docs.orama.com/docs/orama-js/text-analysis/stemming for more information.',CUSTOM_STOP_WORDS_MUST_BE_FUNCTION_OR_ARRAY:"Custom stop words array must only contain strings.",UNSUPPORTED_COMPONENT:'Unsupported component "%s".',COMPONENT_MUST_BE_FUNCTION:'The component "%s" must be a function.',COMPONENT_MUST_BE_FUNCTION_OR_ARRAY_FUNCTIONS:'The component "%s" must be a function or an array of functions.',INVALID_SCHEMA_TYPE:'Unsupported schema type "%s" at "%s". Expected "string", "boolean" or "number" or array of them.',DOCUMENT_ID_MUST_BE_STRING:'Document id must be of type "string". Got "%s" instead.',DOCUMENT_ALREADY_EXISTS:'A document with id "%s" already exists.',DOCUMENT_DOES_NOT_EXIST:'A document with id "%s" does not exists.',MISSING_DOCUMENT_PROPERTY:'Missing searchable property "%s".',INVALID_DOCUMENT_PROPERTY:'Invalid document property "%s": expected "%s", got "%s"',UNKNOWN_INDEX:'Invalid property name "%s". Expected a wildcard string ("*") or array containing one of the following properties: %s',INVALID_BOOST_VALUE:"Boost value must be a number greater than, or less than 0.",INVALID_FILTER_OPERATION:"You can only use one operation per filter, you requested %d.",SCHEMA_VALIDATION_FAILURE:'Cannot insert document due schema validation failure on "%s" property.',INVALID_SORT_SCHEMA_TYPE:'Unsupported sort schema type "%s" at "%s". Expected "string" or "number".',CANNOT_SORT_BY_ARRAY:'Cannot configure sort for "%s" because it is an array (%s).',UNABLE_TO_SORT_ON_UNKNOWN_FIELD:'Unable to sort on unknown field "%s". Allowed fields: %s',SORT_DISABLED:"Sort is disabled. Please read the documentation at https://docs.orama.com/docs/orama-js for more information.",UNKNOWN_GROUP_BY_PROPERTY:'Unknown groupBy property "%s".',INVALID_GROUP_BY_PROPERTY:'Invalid groupBy property "%s". Allowed types: "%s", but given "%s".',UNKNOWN_FILTER_PROPERTY:'Unknown filter property "%s".',UNKNOWN_VECTOR_PROPERTY:'Unknown vector property "%s". Make sure the property exists in the schema and is configured as a vector.',INVALID_VECTOR_SIZE:'Vector size must be a number greater than 0. Got "%s" instead.',INVALID_VECTOR_VALUE:'Vector value must be a number greater than 0. Got "%s" instead.',INVALID_INPUT_VECTOR:`Property "%s" was declared as a %s-dimensional vector, but got a %s-dimensional vector instead.
@@ -1 +1 @@
1
- import{c as M,t as v,b as E}from"./index-Bojr-xLv.js";import{_ as O,f as G,P as U,a as X,C as J,b as K,E as Q}from"./collapsible-B2rvGry7.js";import{u as P}from"./i18n-V4QzeUbV.js";import{m as T,C as Y}from"./merge-refs-BIez66Kl.js";import{j as r,r as l}from"./index-OFfnl8sH.js";import{u as B,e as S}from"./index-xXa72sZS.js";import{u as ee}from"./use-copy-button-BO3GBlwZ.js";import{a as te}from"./index-B-5ouVG_.js";const ne=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],_e=M("chevron-left",ne);const re=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],se=M("copy",re);const oe=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Se=M("square-pen",oe);const ie=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],ae=M("text-align-start",ie);function ce(...e){return s=>{e.forEach(t=>{typeof t=="function"?t(s):t!=null&&(t.current=s)})}}const H=l.createContext(null),V=l.createContext(null);function W({containerRef:e,children:s}){return r.jsx(V,{value:e,children:s})}function Z({toc:e,single:s=!1,children:t}){const n=l.useMemo(()=>new de,[]),[o,i]=l.useState(n.items);return n.single=s,l.useEffect(()=>{n.setItems(e)},[n,e]),l.useEffect(()=>(n.watch({rootMargin:"0px",threshold:.98}),n.onChange=()=>i(n.items),()=>{n.unwatch()}),[n]),r.jsx(H,{value:o,children:t})}function N({ref:e,onActiveChange:s=()=>null,...t}){const n=k(),o=l.use(V),i=t.href?q(t.href):null,a=l.useRef(null),[c,d]=l.useState(()=>i&&n.some(u=>u.active&&u.id===i)),f=l.useRef(null);if(f.current===null){const u=n.findLast(h=>h.active);f.current=u!==void 0&&u.id===i}return B(n,()=>{if(i===null)return;const u=n.find(p=>p.id===i);if(!u||u.active===c)return;const h=a.current,m=o?.current;u.active&&n.every(p=>!p.active||p.t<=u.t)&&m&&h&&S(h,{behavior:"smooth",block:"center",inline:"center",scrollMode:"always",boundary:m}),d(u.active),s(u.active)}),l.useEffect(()=>{const u=a.current,h=o?.current;f.current&&h&&u&&S(u,{behavior:"instant",block:"center",inline:"center",scrollMode:"always",boundary:h})},[o]),r.jsx("a",{ref:ce(a,e),"data-active":c,...t})}function le(){const e=k();return l.useMemo(()=>{let s;for(const t of e)t.active&&(!s||t.t>s.t)&&(s=t);return s?.id},[e])}function ue(){const e=k();return l.useMemo(()=>{const s=[];for(const t of e)t.active&&s.push(t.id);return s},[e])}function k(){const e=l.use(H);if(!e)throw new Error("Component must be used under the <AnchorProvider /> component.");return e}function q(e){return e.startsWith("#")?e.slice(1):null}var de=class{constructor(){this.items=[],this.single=!1,this.observer=null}callback(e){if(e.length===0)return;let s=!1;if(this.items=this.items.map(t=>{const n=e.find(i=>i.target.id===t.id);let o=n?n.isIntersecting:t.active&&!t.fallback;return this.single&&s&&(o=!1),t.active!==o&&(t={...t,t:Date.now(),active:o,fallback:!1}),o&&(s=!0),t}),!s&&e[0].rootBounds){const t=e[0].rootBounds.top;let n=Number.MAX_VALUE,o=-1;for(let i=0;i<this.items.length;i++){const a=document.getElementById(this.items[i].id);if(!a)continue;const c=Math.abs(t-a.getBoundingClientRect().top);c<n&&(o=i,n=c)}o!==-1&&(this.items[o]={...this.items[o],active:!0,fallback:!0,t:Date.now()})}this.onChange?.()}setItems(e){const s=this.observer;if(s)for(const t of this.items){const n=document.getElementById(t.id);n&&s.unobserve(n)}this.items=[];for(const t of e){const n=q(t.url);n&&this.items.push({id:n,active:!1,fallback:!1,t:0,original:t})}this.watchItems()}watch(e){this.observer||(this.observer=new IntersectionObserver(this.callback.bind(this),e),this.watchItems())}watchItems(){if(this.observer)for(const e of this.items){const s=document.getElementById(e.id);s&&this.observer.observe(s)}}unwatch(){this.observer?.disconnect(),this.observer=null}};const fe=Object.freeze(Object.defineProperty({__proto__:null,AnchorProvider:Z,ScrollProvider:W,TOCItem:N,useActiveAnchor:le,useActiveAnchors:ue,useItems:k},Symbol.toStringTag,{value:"Module"}));var ze=O({TOCProvider:()=>pe,TOCScrollArea:()=>xe,TocThumb:()=>L,useActiveAnchor:()=>he,useActiveAnchors:()=>D,useItems:()=>me,useTOCItems:()=>A});const F=l.createContext([]);function A(){return l.use(F)}const{useActiveAnchor:he,useActiveAnchors:D,useItems:me}=fe;function pe({toc:e,children:s,...t}){return r.jsx(F,{value:e,children:r.jsx(Z,{toc:e,...t,children:s})})}function xe({ref:e,className:s,...t}){const n=l.useRef(null);return r.jsx("div",{ref:T(n,e),className:v("relative min-h-0 text-sm ms-px overflow-auto [scrollbar-width:none] mask-[linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)] py-3",s),...t,children:r.jsx(W,{containerRef:n,children:t.children})})}function L({containerRef:e,...s}){const t=l.useRef(null),n=D();function o(c){const d=t.current,f=e.current;!d||!f||(d.style.setProperty("--fd-top",`${c.top}px`),d.style.setProperty("--fd-height",`${c.height}px`))}function i(c){const d=e.current;if(!d||d.clientHeight===0)return null;if(c.length===0)return{height:0,top:0};let f=Number.MAX_VALUE,u=0;for(const h of c){const m=d.querySelector(`a[href="#${h}"]`);if(!m)continue;const p=getComputedStyle(m);f=Math.min(f,m.offsetTop+parseFloat(p.paddingTop)),u=Math.max(u,m.offsetTop+m.clientHeight-parseFloat(p.paddingBottom))}return{top:f,height:u-f}}const a=l.useEffectEvent(()=>{const c=i(n);c&&o(c)});return l.useEffect(()=>{if(!e.current)return;const c=e.current,d=new ResizeObserver(a);return d.observe(c),()=>{d.disconnect()}},[e]),B(n,()=>{const c=i(n);c&&o(c)}),r.jsx("div",{ref:t,"data-hidden":n.length===0,...s})}var Re=O({TOCEmpty:()=>ge,TOCItem:()=>Ce,TOCItems:()=>ve});function ve({ref:e,className:s,...t}){const n=l.useRef(null);return r.jsxs("div",{className:"relative",children:[r.jsx(L,{containerRef:n,className:"absolute inset-y-0 inset-s-0 bg-fd-primary w-px transition-[clip-path]",style:{clipPath:"polygon(0 var(--fd-top), 100% var(--fd-top), 100% calc(var(--fd-top) + var(--fd-height)), 0 calc(var(--fd-top) + var(--fd-height)))"}}),r.jsx("div",{ref:T(e,n),className:v("flex flex-col border-s border-fd-foreground/10",s),...t})]})}function ge(){const{text:e}=P();return r.jsx("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:e.tocNoHeadings})}function Ce({item:e,...s}){return r.jsx(N,{href:e.url,...s,className:v("prose py-1.5 text-sm text-fd-muted-foreground scroll-m-4 transition-colors wrap-anywhere first:pt-0 last:pb-0 data-[active=true]:text-fd-primary hover:text-fd-accent-foreground",e.depth<=2&&"ps-3",e.depth===3&&"ps-6",e.depth>=4&&"ps-8",s.className),children:e.title})}var Ee=O({TOCEmpty:()=>be,TOCItem:()=>ke,TOCItems:()=>we});function we({ref:e,className:s,...t}){const n=l.useRef(null),o=A(),[i,a]=l.useState(),c=l.useEffectEvent(()=>{const d=n.current;if(!d||d.clientHeight===0)return;let f=0,u=0,h=0,m=0,p="";const $=[];for(let g=0;g<o.length;g++){const I=o[g],b=d.querySelector(`a[href="#${I.url.slice(1)}"]`);if(!b)continue;const _=getComputedStyle(b),x=j(I.depth)+.5,y=b.offsetTop+parseFloat(_.paddingTop),C=b.offsetTop+b.clientHeight-parseFloat(_.paddingBottom);f=Math.max(x+8,f),u=Math.max(u,C),g===0?p+=` M${x} ${y} L${x} ${C}`:p+=` C ${m} ${y-4} ${x} ${h+4} ${x} ${y} L${x} ${C}`,I._step!==void 0&&$.push(r.jsx("circle",{cx:x,cy:(y+C)/2,r:"8",className:"fill-fd-primary"},`${g}-circle`),r.jsx("text",{x,y:(y+C)/2,textAnchor:"middle",alignmentBaseline:"central",dominantBaseline:"middle",className:"fill-fd-primary-foreground font-medium text-xs leading-none font-mono",children:I._step},`${g}-text`)),m=x,h=C}$.unshift(r.jsx("path",{d:p,className:"stroke-fd-primary",strokeWidth:"1",fill:"none"},"path")),a({content:$,width:f,height:u})});return l.useEffect(()=>{if(!n.current)return;const d=new ResizeObserver(c);return c(),d.observe(n.current),()=>{d.disconnect()}},[]),r.jsxs(r.Fragment,{children:[i&&r.jsxs(L,{containerRef:n,className:"absolute top-0 inset-s-0",style:{width:i.width,height:i.height},children:[r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${i.width} ${i.height}`,className:"absolute transition-[clip-path]",style:{width:i.width,height:i.height,clipPath:"polygon(0 var(--fd-top), 100% var(--fd-top), 100% calc(var(--fd-top) + var(--fd-height)), 0 calc(var(--fd-top) + var(--fd-height)))"},children:i.content}),r.jsx(ye,{})]}),r.jsx("div",{ref:T(n,e),className:v("flex flex-col",s),...t})]})}function be(){const{text:e}=P();return r.jsx("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:e.tocNoHeadings})}function ye(){const e=k(),s=l.useRef(null),t=e.findIndex(a=>a.active),n=e.findLastIndex(a=>a.active);if(t===-1)return;let o=!1;if(s.current){const a=s.current;o=a.startIdx>t||a.endIdx>n||a.startIdx===t&&a.endIdx===n&&a.isUp}s.current={startIdx:t,endIdx:n,isUp:o};const i=e[o?t:n].original;return r.jsx("div",{className:"absolute size-1 bg-fd-primary rounded-full transition-transform",style:{translate:`${j(i.depth)-1.5}px calc(${o?"var(--fd-top)":"var(--fd-top) + var(--fd-height)"} - 1.5px)`,scale:i._step!==void 0?"0":"1"}})}const w=8;function je(e){return e<=2?12+w:e===3?24+w:36+w}function j(e){return e<=2?w:e===3?8+w:16+w}function ke({item:e,...s}){const t=A(),{lowerOffset:n,offset:o,upperOffset:i}=l.useMemo(()=>{const a=t.indexOf(e),c=j(e.depth);return{offset:c,upperOffset:a>0?j(t[a-1].depth):c,lowerOffset:a+1<t.length?j(t[a+1].depth):c}},[t,e]);return r.jsxs(N,{href:e.url,...s,className:v("group prose relative py-1.5 text-sm scroll-m-4 text-fd-muted-foreground hover:text-fd-accent-foreground transition-colors wrap-anywhere first:pt-0 last:pb-0 data-[active=true]:text-fd-primary",s.className),style:{paddingInlineStart:je(e.depth),...s.style},children:[o!==i&&r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:`${Math.min(o,i)} 0 ${Math.abs(i-o)} 12`,className:"absolute -top-1.5 -z-1",style:{width:Math.abs(i-o)+1,height:12,insetInlineStart:Math.min(o,i)},children:r.jsx("path",{d:`M ${i} 0 C ${i} 8 ${o} 4 ${o} 12`,stroke:"black",strokeWidth:"1",fill:"none",className:"stroke-fd-foreground/10"})}),r.jsx("div",{className:v("absolute inset-y-0 w-px bg-fd-foreground/10 -z-1",o!==i&&"top-1.5",o!==n&&"bottom-1.5"),style:{insetInlineStart:o}}),e._step!==void 0&&r.jsx("div",{className:"absolute flex items-center justify-center -translate-1/2 -z-1 top-[calc(50%-var(--t,0px)+var(--b,0px))] size-4 font-mono font-medium text-xs bg-fd-muted text-fd-muted-foreground rounded-full leading-none group-first:[--t:--spacing(0.75)] group-last:[--b:--spacing(0.75)]",style:{insetInlineStart:o},children:e._step}),e.title]})}const z=new WeakMap;function Pe(){const{root:e}=G(),s=z.get(e);if(s)return s;const t=[];function n(o){if(o.type==="folder"){o.index&&n(o.index);for(const i of o.children)n(i)}else o.type==="page"&&!o.external&&t.push(o)}for(const o of e.children)n(o);return z.set(e,t),t}const R=new Map;function Be({markdownUrl:e,...s}){const[t,n]=l.useState(!1),[o,i]=ee(async()=>{const a=R.get(e);if(a)return navigator.clipboard.writeText(await a);n(!0);try{const c=fetch(e).then(d=>d.text());R.set(e,c),await navigator.clipboard.write([new ClipboardItem({"text/plain":c})])}finally{n(!1)}});return r.jsxs("button",{disabled:t,onClick:i,...s,className:v(E({color:"secondary",size:"sm",className:"gap-2 [&_svg]:size-3.5 [&_svg]:text-fd-muted-foreground"}),s.className),children:[o?r.jsx(Y,{}):r.jsx(se,{}),s.children??"Copy Markdown"]})}function He({markdownUrl:e,githubUrl:s,...t}){const n=te(),o=l.useMemo(()=>{const i=`Read ${typeof window>"u"?n:new URL(n,window.location.origin)}, I want to ask questions about it.`;return[s&&{title:"Open in GitHub",href:s,icon:r.jsxs("svg",{fill:"currentColor",role:"img",viewBox:"0 0 24 24",children:[r.jsx("title",{children:"GitHub"}),r.jsx("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})]})},e&&{title:"View as Markdown",href:e,icon:r.jsx(ae,{})},{title:"Open in Scira AI",href:`https://scira.ai/?${new URLSearchParams({q:i})}`,icon:r.jsxs("svg",{width:"910",height:"934",viewBox:"0 0 910 934",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("title",{children:"Scira AI"}),r.jsx("path",{d:"M647.664 197.775C569.13 189.049 525.5 145.419 516.774 66.8849C508.048 145.419 464.418 189.049 385.884 197.775C464.418 206.501 508.048 250.131 516.774 328.665C525.5 250.131 569.13 206.501 647.664 197.775Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"8",strokeLinejoin:"round"}),r.jsx("path",{d:"M516.774 304.217C510.299 275.491 498.208 252.087 480.335 234.214C462.462 216.341 439.058 204.251 410.333 197.775C439.059 191.3 462.462 179.209 480.335 161.336C498.208 143.463 510.299 120.06 516.774 91.334C523.25 120.059 535.34 143.463 553.213 161.336C571.086 179.209 594.49 191.3 623.216 197.775C594.49 204.251 571.086 216.341 553.213 234.214C535.34 252.087 523.25 275.491 516.774 304.217Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"8",strokeLinejoin:"round"}),r.jsx("path",{d:"M857.5 508.116C763.259 497.644 710.903 445.288 700.432 351.047C689.961 445.288 637.605 497.644 543.364 508.116C637.605 518.587 689.961 570.943 700.432 665.184C710.903 570.943 763.259 518.587 857.5 508.116Z",stroke:"currentColor",strokeWidth:"20",strokeLinejoin:"round"}),r.jsx("path",{d:"M700.432 615.957C691.848 589.05 678.575 566.357 660.383 548.165C642.191 529.973 619.499 516.7 592.593 508.116C619.499 499.533 642.191 486.258 660.383 468.066C678.575 449.874 691.848 427.181 700.432 400.274C709.015 427.181 722.289 449.874 740.481 468.066C758.673 486.258 781.365 499.533 808.271 508.116C781.365 516.7 758.673 529.973 740.481 548.165C722.289 566.357 709.015 589.05 700.432 615.957Z",stroke:"currentColor",strokeWidth:"20",strokeLinejoin:"round"}),r.jsx("path",{d:"M889.949 121.237C831.049 114.692 798.326 81.9698 791.782 23.0692C785.237 81.9698 752.515 114.692 693.614 121.237C752.515 127.781 785.237 160.504 791.782 219.404C798.326 160.504 831.049 127.781 889.949 121.237Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"8",strokeLinejoin:"round"}),r.jsx("path",{d:"M791.782 196.795C786.697 176.937 777.869 160.567 765.16 147.858C752.452 135.15 736.082 126.322 716.226 121.237C736.082 116.152 752.452 107.324 765.16 94.6152C777.869 81.9065 786.697 65.5368 791.782 45.6797C796.867 65.5367 805.695 81.9066 818.403 94.6152C831.112 107.324 847.481 116.152 867.338 121.237C847.481 126.322 831.112 135.15 818.403 147.858C805.694 160.567 796.867 176.937 791.782 196.795Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"8",strokeLinejoin:"round"}),r.jsx("path",{d:"M760.632 764.337C720.719 814.616 669.835 855.1 611.872 882.692C553.91 910.285 490.404 924.255 426.213 923.533C362.022 922.812 298.846 907.419 241.518 878.531C184.19 849.643 134.228 808.026 95.4548 756.863C56.6815 705.7 30.1238 646.346 17.8129 583.343C5.50207 520.339 7.76433 455.354 24.4266 393.359C41.089 331.364 71.7099 274.001 113.947 225.658C156.184 177.315 208.919 139.273 268.117 114.442",stroke:"currentColor",strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round"})]})},{title:"Open in ChatGPT",href:`https://chatgpt.com/?${new URLSearchParams({hints:"search",q:i})}`,icon:r.jsxs("svg",{role:"img",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("title",{children:"OpenAI"}),r.jsx("path",{d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"})]})},{title:"Open in Claude",href:`https://claude.ai/new?${new URLSearchParams({q:i})}`,icon:r.jsxs("svg",{fill:"currentColor",role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("title",{children:"Anthropic"}),r.jsx("path",{d:"M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"})]})},{title:"Open in Cursor",icon:r.jsxs("svg",{fill:"currentColor",role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("title",{children:"Cursor"}),r.jsx("path",{d:"M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23"})]}),href:`https://cursor.com/link/prompt?${new URLSearchParams({text:i})}`}].filter(a=>!!a)},[s,e,n]);return r.jsxs(U,{children:[r.jsxs(X,{...t,className:v(E({color:"secondary",size:"sm"}),"gap-2 data-[state=open]:bg-fd-accent data-[state=open]:text-fd-accent-foreground",t.className),children:[t.children??"Open",r.jsx(J,{className:"size-3.5 text-fd-muted-foreground"})]}),r.jsx(K,{className:"flex flex-col",children:o.map(i=>r.jsxs("a",{href:i.href,rel:"noreferrer noopener",target:"_blank",className:"text-sm p-2 rounded-lg inline-flex items-center gap-2 hover:text-fd-accent-foreground hover:bg-fd-accent [&_svg]:size-4",children:[i.icon,i.title,r.jsx(Q,{className:"text-fd-muted-foreground size-3.5 ms-auto"})]},i.href))})]})}export{_e as C,Be as M,Se as S,xe as T,He as V,ae as a,pe as b,Ee as c,Re as d,me as e,Pe as f,ze as t,A as u};
1
+ import{c as M,t as v,b as E}from"./index-Dmso5wU0.js";import{_ as O,f as G,P as U,a as X,C as J,b as K,E as Q}from"./collapsible-xIcMRFdY.js";import{u as P}from"./i18n-3LIRVH83.js";import{m as T,C as Y}from"./merge-refs-CbdSzRBV.js";import{j as r,r as l}from"./index-BP1WY6Lo.js";import{u as B,e as S}from"./index-CjxkSobY.js";import{u as ee}from"./use-copy-button-CUBSgIa6.js";import{a as te}from"./index-C3s8rSzK.js";const ne=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],_e=M("chevron-left",ne);const re=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],se=M("copy",re);const oe=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Se=M("square-pen",oe);const ie=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],ae=M("text-align-start",ie);function ce(...e){return s=>{e.forEach(t=>{typeof t=="function"?t(s):t!=null&&(t.current=s)})}}const H=l.createContext(null),V=l.createContext(null);function W({containerRef:e,children:s}){return r.jsx(V,{value:e,children:s})}function Z({toc:e,single:s=!1,children:t}){const n=l.useMemo(()=>new de,[]),[o,i]=l.useState(n.items);return n.single=s,l.useEffect(()=>{n.setItems(e)},[n,e]),l.useEffect(()=>(n.watch({rootMargin:"0px",threshold:.98}),n.onChange=()=>i(n.items),()=>{n.unwatch()}),[n]),r.jsx(H,{value:o,children:t})}function N({ref:e,onActiveChange:s=()=>null,...t}){const n=k(),o=l.use(V),i=t.href?q(t.href):null,a=l.useRef(null),[c,d]=l.useState(()=>i&&n.some(u=>u.active&&u.id===i)),f=l.useRef(null);if(f.current===null){const u=n.findLast(h=>h.active);f.current=u!==void 0&&u.id===i}return B(n,()=>{if(i===null)return;const u=n.find(p=>p.id===i);if(!u||u.active===c)return;const h=a.current,m=o?.current;u.active&&n.every(p=>!p.active||p.t<=u.t)&&m&&h&&S(h,{behavior:"smooth",block:"center",inline:"center",scrollMode:"always",boundary:m}),d(u.active),s(u.active)}),l.useEffect(()=>{const u=a.current,h=o?.current;f.current&&h&&u&&S(u,{behavior:"instant",block:"center",inline:"center",scrollMode:"always",boundary:h})},[o]),r.jsx("a",{ref:ce(a,e),"data-active":c,...t})}function le(){const e=k();return l.useMemo(()=>{let s;for(const t of e)t.active&&(!s||t.t>s.t)&&(s=t);return s?.id},[e])}function ue(){const e=k();return l.useMemo(()=>{const s=[];for(const t of e)t.active&&s.push(t.id);return s},[e])}function k(){const e=l.use(H);if(!e)throw new Error("Component must be used under the <AnchorProvider /> component.");return e}function q(e){return e.startsWith("#")?e.slice(1):null}var de=class{constructor(){this.items=[],this.single=!1,this.observer=null}callback(e){if(e.length===0)return;let s=!1;if(this.items=this.items.map(t=>{const n=e.find(i=>i.target.id===t.id);let o=n?n.isIntersecting:t.active&&!t.fallback;return this.single&&s&&(o=!1),t.active!==o&&(t={...t,t:Date.now(),active:o,fallback:!1}),o&&(s=!0),t}),!s&&e[0].rootBounds){const t=e[0].rootBounds.top;let n=Number.MAX_VALUE,o=-1;for(let i=0;i<this.items.length;i++){const a=document.getElementById(this.items[i].id);if(!a)continue;const c=Math.abs(t-a.getBoundingClientRect().top);c<n&&(o=i,n=c)}o!==-1&&(this.items[o]={...this.items[o],active:!0,fallback:!0,t:Date.now()})}this.onChange?.()}setItems(e){const s=this.observer;if(s)for(const t of this.items){const n=document.getElementById(t.id);n&&s.unobserve(n)}this.items=[];for(const t of e){const n=q(t.url);n&&this.items.push({id:n,active:!1,fallback:!1,t:0,original:t})}this.watchItems()}watch(e){this.observer||(this.observer=new IntersectionObserver(this.callback.bind(this),e),this.watchItems())}watchItems(){if(this.observer)for(const e of this.items){const s=document.getElementById(e.id);s&&this.observer.observe(s)}}unwatch(){this.observer?.disconnect(),this.observer=null}};const fe=Object.freeze(Object.defineProperty({__proto__:null,AnchorProvider:Z,ScrollProvider:W,TOCItem:N,useActiveAnchor:le,useActiveAnchors:ue,useItems:k},Symbol.toStringTag,{value:"Module"}));var ze=O({TOCProvider:()=>pe,TOCScrollArea:()=>xe,TocThumb:()=>L,useActiveAnchor:()=>he,useActiveAnchors:()=>D,useItems:()=>me,useTOCItems:()=>A});const F=l.createContext([]);function A(){return l.use(F)}const{useActiveAnchor:he,useActiveAnchors:D,useItems:me}=fe;function pe({toc:e,children:s,...t}){return r.jsx(F,{value:e,children:r.jsx(Z,{toc:e,...t,children:s})})}function xe({ref:e,className:s,...t}){const n=l.useRef(null);return r.jsx("div",{ref:T(n,e),className:v("relative min-h-0 text-sm ms-px overflow-auto [scrollbar-width:none] mask-[linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)] py-3",s),...t,children:r.jsx(W,{containerRef:n,children:t.children})})}function L({containerRef:e,...s}){const t=l.useRef(null),n=D();function o(c){const d=t.current,f=e.current;!d||!f||(d.style.setProperty("--fd-top",`${c.top}px`),d.style.setProperty("--fd-height",`${c.height}px`))}function i(c){const d=e.current;if(!d||d.clientHeight===0)return null;if(c.length===0)return{height:0,top:0};let f=Number.MAX_VALUE,u=0;for(const h of c){const m=d.querySelector(`a[href="#${h}"]`);if(!m)continue;const p=getComputedStyle(m);f=Math.min(f,m.offsetTop+parseFloat(p.paddingTop)),u=Math.max(u,m.offsetTop+m.clientHeight-parseFloat(p.paddingBottom))}return{top:f,height:u-f}}const a=l.useEffectEvent(()=>{const c=i(n);c&&o(c)});return l.useEffect(()=>{if(!e.current)return;const c=e.current,d=new ResizeObserver(a);return d.observe(c),()=>{d.disconnect()}},[e]),B(n,()=>{const c=i(n);c&&o(c)}),r.jsx("div",{ref:t,"data-hidden":n.length===0,...s})}var Re=O({TOCEmpty:()=>ge,TOCItem:()=>Ce,TOCItems:()=>ve});function ve({ref:e,className:s,...t}){const n=l.useRef(null);return r.jsxs("div",{className:"relative",children:[r.jsx(L,{containerRef:n,className:"absolute inset-y-0 inset-s-0 bg-fd-primary w-px transition-[clip-path]",style:{clipPath:"polygon(0 var(--fd-top), 100% var(--fd-top), 100% calc(var(--fd-top) + var(--fd-height)), 0 calc(var(--fd-top) + var(--fd-height)))"}}),r.jsx("div",{ref:T(e,n),className:v("flex flex-col border-s border-fd-foreground/10",s),...t})]})}function ge(){const{text:e}=P();return r.jsx("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:e.tocNoHeadings})}function Ce({item:e,...s}){return r.jsx(N,{href:e.url,...s,className:v("prose py-1.5 text-sm text-fd-muted-foreground scroll-m-4 transition-colors wrap-anywhere first:pt-0 last:pb-0 data-[active=true]:text-fd-primary hover:text-fd-accent-foreground",e.depth<=2&&"ps-3",e.depth===3&&"ps-6",e.depth>=4&&"ps-8",s.className),children:e.title})}var Ee=O({TOCEmpty:()=>be,TOCItem:()=>ke,TOCItems:()=>we});function we({ref:e,className:s,...t}){const n=l.useRef(null),o=A(),[i,a]=l.useState(),c=l.useEffectEvent(()=>{const d=n.current;if(!d||d.clientHeight===0)return;let f=0,u=0,h=0,m=0,p="";const $=[];for(let g=0;g<o.length;g++){const I=o[g],b=d.querySelector(`a[href="#${I.url.slice(1)}"]`);if(!b)continue;const _=getComputedStyle(b),x=j(I.depth)+.5,y=b.offsetTop+parseFloat(_.paddingTop),C=b.offsetTop+b.clientHeight-parseFloat(_.paddingBottom);f=Math.max(x+8,f),u=Math.max(u,C),g===0?p+=` M${x} ${y} L${x} ${C}`:p+=` C ${m} ${y-4} ${x} ${h+4} ${x} ${y} L${x} ${C}`,I._step!==void 0&&$.push(r.jsx("circle",{cx:x,cy:(y+C)/2,r:"8",className:"fill-fd-primary"},`${g}-circle`),r.jsx("text",{x,y:(y+C)/2,textAnchor:"middle",alignmentBaseline:"central",dominantBaseline:"middle",className:"fill-fd-primary-foreground font-medium text-xs leading-none font-mono",children:I._step},`${g}-text`)),m=x,h=C}$.unshift(r.jsx("path",{d:p,className:"stroke-fd-primary",strokeWidth:"1",fill:"none"},"path")),a({content:$,width:f,height:u})});return l.useEffect(()=>{if(!n.current)return;const d=new ResizeObserver(c);return c(),d.observe(n.current),()=>{d.disconnect()}},[]),r.jsxs(r.Fragment,{children:[i&&r.jsxs(L,{containerRef:n,className:"absolute top-0 inset-s-0",style:{width:i.width,height:i.height},children:[r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${i.width} ${i.height}`,className:"absolute transition-[clip-path]",style:{width:i.width,height:i.height,clipPath:"polygon(0 var(--fd-top), 100% var(--fd-top), 100% calc(var(--fd-top) + var(--fd-height)), 0 calc(var(--fd-top) + var(--fd-height)))"},children:i.content}),r.jsx(ye,{})]}),r.jsx("div",{ref:T(n,e),className:v("flex flex-col",s),...t})]})}function be(){const{text:e}=P();return r.jsx("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:e.tocNoHeadings})}function ye(){const e=k(),s=l.useRef(null),t=e.findIndex(a=>a.active),n=e.findLastIndex(a=>a.active);if(t===-1)return;let o=!1;if(s.current){const a=s.current;o=a.startIdx>t||a.endIdx>n||a.startIdx===t&&a.endIdx===n&&a.isUp}s.current={startIdx:t,endIdx:n,isUp:o};const i=e[o?t:n].original;return r.jsx("div",{className:"absolute size-1 bg-fd-primary rounded-full transition-transform",style:{translate:`${j(i.depth)-1.5}px calc(${o?"var(--fd-top)":"var(--fd-top) + var(--fd-height)"} - 1.5px)`,scale:i._step!==void 0?"0":"1"}})}const w=8;function je(e){return e<=2?12+w:e===3?24+w:36+w}function j(e){return e<=2?w:e===3?8+w:16+w}function ke({item:e,...s}){const t=A(),{lowerOffset:n,offset:o,upperOffset:i}=l.useMemo(()=>{const a=t.indexOf(e),c=j(e.depth);return{offset:c,upperOffset:a>0?j(t[a-1].depth):c,lowerOffset:a+1<t.length?j(t[a+1].depth):c}},[t,e]);return r.jsxs(N,{href:e.url,...s,className:v("group prose relative py-1.5 text-sm scroll-m-4 text-fd-muted-foreground hover:text-fd-accent-foreground transition-colors wrap-anywhere first:pt-0 last:pb-0 data-[active=true]:text-fd-primary",s.className),style:{paddingInlineStart:je(e.depth),...s.style},children:[o!==i&&r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:`${Math.min(o,i)} 0 ${Math.abs(i-o)} 12`,className:"absolute -top-1.5 -z-1",style:{width:Math.abs(i-o)+1,height:12,insetInlineStart:Math.min(o,i)},children:r.jsx("path",{d:`M ${i} 0 C ${i} 8 ${o} 4 ${o} 12`,stroke:"black",strokeWidth:"1",fill:"none",className:"stroke-fd-foreground/10"})}),r.jsx("div",{className:v("absolute inset-y-0 w-px bg-fd-foreground/10 -z-1",o!==i&&"top-1.5",o!==n&&"bottom-1.5"),style:{insetInlineStart:o}}),e._step!==void 0&&r.jsx("div",{className:"absolute flex items-center justify-center -translate-1/2 -z-1 top-[calc(50%-var(--t,0px)+var(--b,0px))] size-4 font-mono font-medium text-xs bg-fd-muted text-fd-muted-foreground rounded-full leading-none group-first:[--t:--spacing(0.75)] group-last:[--b:--spacing(0.75)]",style:{insetInlineStart:o},children:e._step}),e.title]})}const z=new WeakMap;function Pe(){const{root:e}=G(),s=z.get(e);if(s)return s;const t=[];function n(o){if(o.type==="folder"){o.index&&n(o.index);for(const i of o.children)n(i)}else o.type==="page"&&!o.external&&t.push(o)}for(const o of e.children)n(o);return z.set(e,t),t}const R=new Map;function Be({markdownUrl:e,...s}){const[t,n]=l.useState(!1),[o,i]=ee(async()=>{const a=R.get(e);if(a)return navigator.clipboard.writeText(await a);n(!0);try{const c=fetch(e).then(d=>d.text());R.set(e,c),await navigator.clipboard.write([new ClipboardItem({"text/plain":c})])}finally{n(!1)}});return r.jsxs("button",{disabled:t,onClick:i,...s,className:v(E({color:"secondary",size:"sm",className:"gap-2 [&_svg]:size-3.5 [&_svg]:text-fd-muted-foreground"}),s.className),children:[o?r.jsx(Y,{}):r.jsx(se,{}),s.children??"Copy Markdown"]})}function He({markdownUrl:e,githubUrl:s,...t}){const n=te(),o=l.useMemo(()=>{const i=`Read ${typeof window>"u"?n:new URL(n,window.location.origin)}, I want to ask questions about it.`;return[s&&{title:"Open in GitHub",href:s,icon:r.jsxs("svg",{fill:"currentColor",role:"img",viewBox:"0 0 24 24",children:[r.jsx("title",{children:"GitHub"}),r.jsx("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})]})},e&&{title:"View as Markdown",href:e,icon:r.jsx(ae,{})},{title:"Open in Scira AI",href:`https://scira.ai/?${new URLSearchParams({q:i})}`,icon:r.jsxs("svg",{width:"910",height:"934",viewBox:"0 0 910 934",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("title",{children:"Scira AI"}),r.jsx("path",{d:"M647.664 197.775C569.13 189.049 525.5 145.419 516.774 66.8849C508.048 145.419 464.418 189.049 385.884 197.775C464.418 206.501 508.048 250.131 516.774 328.665C525.5 250.131 569.13 206.501 647.664 197.775Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"8",strokeLinejoin:"round"}),r.jsx("path",{d:"M516.774 304.217C510.299 275.491 498.208 252.087 480.335 234.214C462.462 216.341 439.058 204.251 410.333 197.775C439.059 191.3 462.462 179.209 480.335 161.336C498.208 143.463 510.299 120.06 516.774 91.334C523.25 120.059 535.34 143.463 553.213 161.336C571.086 179.209 594.49 191.3 623.216 197.775C594.49 204.251 571.086 216.341 553.213 234.214C535.34 252.087 523.25 275.491 516.774 304.217Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"8",strokeLinejoin:"round"}),r.jsx("path",{d:"M857.5 508.116C763.259 497.644 710.903 445.288 700.432 351.047C689.961 445.288 637.605 497.644 543.364 508.116C637.605 518.587 689.961 570.943 700.432 665.184C710.903 570.943 763.259 518.587 857.5 508.116Z",stroke:"currentColor",strokeWidth:"20",strokeLinejoin:"round"}),r.jsx("path",{d:"M700.432 615.957C691.848 589.05 678.575 566.357 660.383 548.165C642.191 529.973 619.499 516.7 592.593 508.116C619.499 499.533 642.191 486.258 660.383 468.066C678.575 449.874 691.848 427.181 700.432 400.274C709.015 427.181 722.289 449.874 740.481 468.066C758.673 486.258 781.365 499.533 808.271 508.116C781.365 516.7 758.673 529.973 740.481 548.165C722.289 566.357 709.015 589.05 700.432 615.957Z",stroke:"currentColor",strokeWidth:"20",strokeLinejoin:"round"}),r.jsx("path",{d:"M889.949 121.237C831.049 114.692 798.326 81.9698 791.782 23.0692C785.237 81.9698 752.515 114.692 693.614 121.237C752.515 127.781 785.237 160.504 791.782 219.404C798.326 160.504 831.049 127.781 889.949 121.237Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"8",strokeLinejoin:"round"}),r.jsx("path",{d:"M791.782 196.795C786.697 176.937 777.869 160.567 765.16 147.858C752.452 135.15 736.082 126.322 716.226 121.237C736.082 116.152 752.452 107.324 765.16 94.6152C777.869 81.9065 786.697 65.5368 791.782 45.6797C796.867 65.5367 805.695 81.9066 818.403 94.6152C831.112 107.324 847.481 116.152 867.338 121.237C847.481 126.322 831.112 135.15 818.403 147.858C805.694 160.567 796.867 176.937 791.782 196.795Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"8",strokeLinejoin:"round"}),r.jsx("path",{d:"M760.632 764.337C720.719 814.616 669.835 855.1 611.872 882.692C553.91 910.285 490.404 924.255 426.213 923.533C362.022 922.812 298.846 907.419 241.518 878.531C184.19 849.643 134.228 808.026 95.4548 756.863C56.6815 705.7 30.1238 646.346 17.8129 583.343C5.50207 520.339 7.76433 455.354 24.4266 393.359C41.089 331.364 71.7099 274.001 113.947 225.658C156.184 177.315 208.919 139.273 268.117 114.442",stroke:"currentColor",strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round"})]})},{title:"Open in ChatGPT",href:`https://chatgpt.com/?${new URLSearchParams({hints:"search",q:i})}`,icon:r.jsxs("svg",{role:"img",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("title",{children:"OpenAI"}),r.jsx("path",{d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"})]})},{title:"Open in Claude",href:`https://claude.ai/new?${new URLSearchParams({q:i})}`,icon:r.jsxs("svg",{fill:"currentColor",role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("title",{children:"Anthropic"}),r.jsx("path",{d:"M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"})]})},{title:"Open in Cursor",icon:r.jsxs("svg",{fill:"currentColor",role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("title",{children:"Cursor"}),r.jsx("path",{d:"M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23"})]}),href:`https://cursor.com/link/prompt?${new URLSearchParams({text:i})}`}].filter(a=>!!a)},[s,e,n]);return r.jsxs(U,{children:[r.jsxs(X,{...t,className:v(E({color:"secondary",size:"sm"}),"gap-2 data-[state=open]:bg-fd-accent data-[state=open]:text-fd-accent-foreground",t.className),children:[t.children??"Open",r.jsx(J,{className:"size-3.5 text-fd-muted-foreground"})]}),r.jsx(K,{className:"flex flex-col",children:o.map(i=>r.jsxs("a",{href:i.href,rel:"noreferrer noopener",target:"_blank",className:"text-sm p-2 rounded-lg inline-flex items-center gap-2 hover:text-fd-accent-foreground hover:bg-fd-accent [&_svg]:size-4",children:[i.icon,i.title,r.jsx(Q,{className:"text-fd-muted-foreground size-3.5 ms-auto"})]},i.href))})]})}export{_e as C,Be as M,Se as S,xe as T,He as V,ae as a,pe as b,Ee as c,Re as d,me as e,Pe as f,ze as t,A as u};