@sinytra/wiki-previewer 0.1.14 → 0.1.16

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 (34) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-build-manifest.json +21 -21
  3. package/.next/app-path-routes-manifest.json +1 -1
  4. package/.next/build-manifest.json +2 -2
  5. package/.next/prerender-manifest.json +11 -11
  6. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page_client-reference-manifest.js +1 -1
  7. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page_client-reference-manifest.js +1 -1
  8. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page_client-reference-manifest.js +1 -1
  9. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page_client-reference-manifest.js +1 -1
  10. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page_client-reference-manifest.js +1 -1
  11. package/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
  12. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  13. package/.next/server/app/_not-found.html +2 -2
  14. package/.next/server/app/_not-found.rsc +1 -1
  15. package/.next/server/app/opengraph-image/route_client-reference-manifest.js +1 -1
  16. package/.next/server/app/robots.txt/route_client-reference-manifest.js +1 -1
  17. package/.next/server/app/sitemap.xml/route.js +1 -1
  18. package/.next/server/app/sitemap.xml/route_client-reference-manifest.js +1 -1
  19. package/.next/server/app-paths-manifest.json +1 -1
  20. package/.next/server/chunks/298.js +3 -3
  21. package/.next/server/middleware-manifest.json +10 -10
  22. package/.next/server/pages/404.html +2 -2
  23. package/.next/server/pages/500.html +1 -1
  24. package/.next/server/server-reference-manifest.json +1 -1
  25. package/.next/server/src/middleware.js +1 -1
  26. package/.next/static/chunks/333-31fb6560528b6a4d.js +1 -0
  27. package/.next/static/chunks/app/[locale]/layout-d1564ab23593db61.js +1 -0
  28. package/bin/entrypoint.mjs +0 -0
  29. package/bin/watcher.mjs +5 -1
  30. package/package.json +2 -6
  31. package/.next/static/chunks/333-fa47758f92c52f20.js +0 -1
  32. package/.next/static/chunks/app/[locale]/layout-75c3b8f2d8625c73.js +0 -1
  33. /package/.next/static/{t6s6_DvBs4SgSjDDEB8vj → f3lJlhQEMwSDjKEvNVPeZ}/_buildManifest.js +0 -0
  34. /package/.next/static/{t6s6_DvBs4SgSjDDEB8vj → f3lJlhQEMwSDjKEvNVPeZ}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[333],{105:(e,t,s)=>{s.d(t,{Tabs:()=>l,TabsContent:()=>d,TabsList:()=>o,TabsTrigger:()=>c});var n=s(108),i=s(3616),r=s(104),a=s(7013);let l=r.bL,o=i.forwardRef((e,t)=>{let{className:s,...i}=e;return(0,n.jsx)(r.B8,{ref:t,className:(0,a.cn)("inline-flex h-10 items-center justify-center rounded-md bg-primary-alt p-1 text-secondary",s),...i})});o.displayName=r.B8.displayName;let c=i.forwardRef((e,t)=>{let{className:s,...i}=e;return(0,n.jsx)(r.l9,{ref:t,className:(0,a.cn)("\n inline-flex items-center justify-center rounded-xs px-3 py-1.5 text-sm font-medium whitespace-nowrap\n ring-offset-background transition-all focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\n focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary\n data-[state=active]:text-primary data-[state=active]:shadow-xs\n ",s),...i})});c.displayName=r.l9.displayName;let d=i.forwardRef((e,t)=>{let{className:s,...i}=e;return(0,n.jsx)(r.UC,{ref:t,className:(0,a.cn)("\n mt-2 ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\n focus-visible:outline-hidden\n ",s),...i})});d.displayName=r.UC.displayName},165:(e,t,s)=>{s.d(t,{GL:()=>c,ww:()=>o,YE:()=>d,default:()=>u});var n=s(108),i=s(3616);s(5756);var r=s(5788);s(3751);let a={userRequiresCookieConsent:function(){return!1}};var l=s(9837);let o=(0,i.createContext)(null),c="experience",d="yt_embeds";function u(e){let{children:t}=e,[s,u]=(0,i.useState)(!0),[p,h]=(0,i.useState)(!1),m=(0,l.c3)("CookieConsent");function f(){h(r.tj(d,c))}return(0,i.useEffect)(()=>{let e=a.userRequiresCookieConsent();u(e),e&&r.eF({revision:1,guiOptions:{consentModal:{layout:"box inline"}},onFirstConsent:()=>{f()},onChange:()=>{f()},categories:{necessary:{enabled:!0,readOnly:!0},[c]:{services:{[d]:{label:m("sections.experience.services.embeds"),onAccept:()=>h(!0),onReject:()=>h(!1)}}}},language:{default:"en",translations:{en:{consentModal:{title:m("popup.title"),description:m("popup.description"),acceptAllBtn:m("actions.accept_all"),acceptNecessaryBtn:m("actions.reject_all"),showPreferencesBtn:m("popup.show_preferences")},preferencesModal:{title:m("modal.title"),acceptAllBtn:m("actions.accept_all"),acceptNecessaryBtn:m("actions.reject_all"),savePreferencesBtn:m("modal.save"),closeIconLabel:m("modal.close"),sections:[{title:m("sections.summary.title"),description:m("sections.summary.description")},{title:m("sections.necessary.title"),description:m("sections.necessary.description"),linkedCategory:"necessary"},{title:m("sections.experience.title"),description:m("sections.experience.description"),linkedCategory:"experience"},{title:m("sections.more_info.title"),description:m.raw("sections.more_info.description")}]}}}}})},[]),(0,n.jsx)(o.Provider,{value:{enableCookieManagement:s,hasConsentToEmbeddedVideos:p},children:t})}},1495:(e,t,s)=>{s.d(t,{CopyButton:()=>u});var n=s(108),i=s(9300),r=s(7149),a=s(3616),l=s(7013),o=s(7045),c=s(6023),d=s(9837);function u(e){let{text:t,showToast:s,className:u}=e,[p,h]=(0,a.useState)(!1),m=(0,d.c3)("CopyButton");return(0,n.jsx)(o.$,{variant:"ghost",size:"icon",className:(0,l.cn)("\n text-secondary-alt opacity-0 transition-opacity duration-200 ease-in-out\n group-hover:opacity-100 hover:bg-gray-400/10 [&>svg]:animate-in [&>svg]:fade-in [&>svg]:fade-out\n ",u),"aria-label":"Copy to clipboard",onClick:()=>{navigator.clipboard.writeText(t),h(!0),setTimeout(()=>h(!1),2e3),s&&c.oR.success(m("copied"))},children:p?(0,n.jsx)(i.A,{size:16}):(0,n.jsx)(r.A,{size:16})})}},1874:(e,t,s)=>{s.d(t,{default:()=>l});var n=s(108),i=s(6686),r=s(3605);function a(e){if("string"==typeof e){let t=Number(e);return Number.isNaN(t)?void 0:t}return e}function l(e){var t;let{asset:s,width:l,height:o,alt:c,title:d,noTitle:u,...p}=e;return(0,n.jsx)(r.default,{width:a(l)||32,height:a(o)||32,src:s.src,alt:c||s.id,title:u?void 0:d||(null==(t=i.A.parse(s.id))?void 0:t.path),strokeWidth:1.5,...p})}},2310:(e,t,s)=>{s.d(t,{default:()=>o});var n=s(108),i=s(3616),r=s(7013),a=s(361),l=s(9837);function o(e){let{columns:t,rows:s,embedded:o,expandedBody:c}=e,[d,u]=(0,i.useState)(!1),p=(0,l.c3)("ResponsiveTable");return(0,n.jsxs)("table",{className:(0,r.cn)("[&_td]:bg-primary-alt/50",o&&"mb-0"),children:[(0,n.jsx)("thead",{className:"hidden sm:table-header-group",children:(0,n.jsx)("tr",{children:t.map(e=>(0,n.jsx)("th",{className:"",children:e.label},e.key))})}),(0,n.jsxs)("tbody",{children:[s.map((e,s)=>(0,n.jsx)("tr",{className:"block border-0 sm:table-row",children:t.map(t=>(0,n.jsxs)("td",{className:(0,r.cn)("block border-b sm:table-cell sm:border",e[t.key].className),"data-label":t.label,children:[(0,n.jsx)("div",{className:"mb-1 font-semibold text-primary-alt sm:hidden",children:t.label}),(0,n.jsx)("div",{children:e[t.key].data})]},t.key))},s)),(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:t.length,className:"no-table-bs group cursor-pointer bg-table-soft!",onClick:()=>u(!d),"data-open":d,children:(0,n.jsxs)("div",{className:"my-0.5 flex w-full flex-row items-center justify-end gap-4 text-secondary",children:[(0,n.jsx)("span",{className:"text-sm",children:p("expand")}),(0,n.jsx)("span",{children:(0,n.jsx)(a.A,{className:"size-4 group-data-[open=true]:rotate-180"})})]})})}),d&&(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:t.length,className:"no-table-bs no-table-padding",children:c})})]})]})}},2647:(e,t,s)=>{s.r(t),s.d(t,{default:()=>l});var n=s(108),i=s(3616),r=s(6686),a=s(7013);function l(e){var t;let{asset:s,width:l,height:o,alt:c,title:d,noTitle:u,...p}=e,h=(0,i.useRef)(null),[m,f]=(0,i.useState)(s.src);return(0,i.useEffect)(()=>{let e=h.current;if(!e)return;let t=()=>{f("/static/missing_item.png")};return e.addEventListener("error",t),e.complete&&0===e.naturalWidth&&t(),()=>{e.removeEventListener("error",t)}},[s.src]),(0,n.jsx)("div",{...p,className:(0,a.cn)("overflow-hidden",p.className),style:{width:"".concat(l||32,"px"),height:"".concat(o||32,"px")},children:(0,n.jsx)("img",{ref:h,width:l||32,height:o||32,src:m,alt:c||s.id,title:u?void 0:d||(null==(t=r.A.parse(s.id))?void 0:t.path),loading:"eager"})})}},3075:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});var n=s(108),i=s(6094),r=s(7013);function a(e){let t=e.id;return(0,n.jsxs)("h2",{...e,className:void 0,className:(0,r.cn)(e.className,"group"),children:[e.children,t&&(0,n.jsx)("a",{href:"#".concat(t),className:"\n inline-block pl-2 opacity-0 transition-opacity duration-200 group-hover:opacity-100 hover:opacity-100\n ",children:(0,n.jsx)(i.A,{className:"h-5 w-5 text-primary"})})]})}},3516:(e,t,s)=>{s.d(t,{M:()=>r,default:()=>a});var n=s(108),i=s(3616);let r=(0,i.createContext)(null);function a(e){let{children:t}=e,[s,a]=(0,i.useState)(!1),l=i.Children.map(t,e=>(0,i.isValidElement)(e)?(0,i.cloneElement)(e,{onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),...e.props}):e);return(0,n.jsx)(r.Provider,{value:{hover:s,setHover:a},children:(0,n.jsx)(n.Fragment,{children:l})})}},3538:(e,t,s)=>{s.d(t,{default:()=>u});var n=s(108),i=s(7843),r=s(7045),a=s(7013),l=s(3616),o=s(165),c=s(5788),d=s(9837);function u(e){let{id:t,children:s}=e,u=(0,d.c3)("VideoEmbedPlaceholder"),p=(0,l.useContext)(o.ww);if(!p||!p.enableCookieManagement||(null==p?void 0:p.hasConsentToEmbeddedVideos))return s;let h=t&&t.includes("?")?t.split("?")[0]:t,m="https://img.youtube.com/vi/".concat(t,"/maxresdefault.jpg");return(0,n.jsxs)("div",{className:(0,a.cn)("video-embed relative flex rounded-sm border border-tertiary bg-primary-alt text-center"),children:[(0,n.jsx)("img",{src:m,alt:"thumbnail",width:560}),(0,n.jsxs)("div",{className:"absolute-center flex h-full w-full flex-col items-center justify-center gap-5 bg-primary/80",children:[(0,n.jsx)(i.A,{className:"size-12 text-secondary-alt",strokeWidth:1.5}),(0,n.jsx)("div",{className:"text-xl",children:(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)("span",{children:u("title")}),(0,n.jsx)("span",{className:"text-sm text-secondary",children:u("description")})]})}),(0,n.jsxs)("div",{className:"mt-2 flex flex-row flex-wrap justify-center gap-3",children:[(0,n.jsx)(r.$,{onClick:()=>void c.gB(o.YE,o.GL),children:u("accept")}),h&&(0,n.jsx)("a",{href:"https://www.youtube.com/watch?v=".concat(h),target:"_blank",rel:"noreferrer",children:(0,n.jsx)(r.$,{variant:"outline",children:u("watch")})})]})]})]})}},3605:(e,t,s)=>{s.d(t,{default:()=>o});var n=s(108),i=s(3616),r=s(4099),a=s(7013),l=s(6466);function o(e){let{src:t,alt:s,width:o,height:c,fbWidth:d,fbHeight:u,className:p,title:h,strokeWidth:m=1,fixedSize:f,wrapper:v,fbIcon:x=r.A,fallback:b=(0,n.jsx)(x,{strokeWidth:m,className:(0,a.cn)(p,"text-secondary opacity-20"),width:d||o,height:u||c}),...g}=e,[y,j]=(0,i.useState)(!1);return(0,n.jsxs)("div",{className:"shrink-0 overflow-hidden",title:h,style:f?{width:"".concat(o,"px"),height:"".concat(c,"px")}:void 0,...v,children:[t&&!y&&(0,n.jsx)(l.default,{src:t,alt:s||"",width:o,height:c,className:p,unoptimized:!0,onError:()=>j(!0),...g}),(!t||y)&&b]})}},4454:(e,t,s)=>{s.r(t),s.d(t,{default:()=>p});var n=s(108),i=s(3616);class r extends i.Component{componentDidMount(){this.addListener()}componentDidUpdate(){!this.state.listenerActive&&this.props.visible&&this.addListener(),this.state.listenerActive&&!this.props.visible&&this.removeListener()}componentWillUnmount(){this.removeListener()}render(){return(0,n.jsx)("div",{className:"minetip-tooltip",style:{display:this.props.visible&&this.state.mouseMoved?"block":"none",top:this.state.yPosition+this.props.offsetY,left:this.state.xPosition+this.props.offsetX},children:(0,n.jsx)("span",{className:"font-minecraft",children:this.props.children})})}constructor(...e){super(...e),this.state={xPosition:0,yPosition:0,mouseMoved:!1,listenerActive:!1},this.onMouseMove=e=>{let{clientX:t,clientY:s}=e;this.setState({xPosition:t,yPosition:s,mouseMoved:!0})},this.addListener=()=>{document.addEventListener("mousemove",this.onMouseMove),this.setState({listenerActive:!0})},this.removeListener=()=>{document.removeEventListener("mousemove",this.onMouseMove),this.setState({xPosition:-100,yPosition:-100,listenerActive:!1})}}}function a(e){let[t,s]=(0,i.useState)(!1);return(0,n.jsxs)("div",{onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[(0,n.jsxs)(r,{visible:t,offsetX:15,offsetY:-33,children:[e.id,e.tag&&(0,n.jsxs)("p",{className:"m-0! mt-1! text-xs text-secondary text-shadow-none",children:["#",e.tag]})]}),e.children]})}var l=s(6686);function o(e){let t=l.A.parse(e);return(null==t?void 0:t.namespace)===l.o?"https://minecraft.wiki/w/".concat(t.path):null}var c=s(3516),d=s(2647),u=s(9028);function p(e){let{noTooltip:t,noLink:s,src:r,count:l,ctx:p,tag:h,...m}=e,[f,v]=(0,i.useState)(0),x=(0,i.useMemo)(()=>r[f],[f,r]),b=(0,i.useContext)(c.M);if((0,i.useEffect)(()=>{r.forEach(e=>{new Image().src=e.asset.src})},[r]),(0,i.useEffect)(()=>{if(0===r.length)return;let e=setInterval(()=>{b&&b.hover||v(e=>(e+1)%r.length)},2e3);return()=>clearInterval(e)},[r,b]),r.length<1)return null;let g=()=>{var e;let t=p?function(e,t){var s,n;let i="slug"in e?e.slug:e.id;return null!=(s=o(t.id))?s:t.has_page?"/".concat(e.locale,"/project/").concat(i,"/").concat(e.version,"/content/").concat((n=t.id).includes("/")?encodeURIComponent(n):n):null}(p,x):o(x.id),i=(0,n.jsx)("div",{...m,children:(0,n.jsxs)("div",{className:"relative shrink-0",children:[(0,n.jsx)(d.default,{noTitle:!0,asset:x.asset,alt:null!=(e=x.name)?e:x.id,className:"sharpRendering"}),l&&l>1&&(0,n.jsx)("span",{className:"\n sharpRendering absolute right-0 bottom-0 z-10 text-left font-minecraft text-base leading-1 text-white\n ",style:{textShadow:"2px 2px 0 #3F3F3F"},children:l})]})});return t&&!s?(0,n.jsx)(u.k,{href:t,rel:"noreferrer",children:i}):i};return t?(0,n.jsx)(g,{}):(0,n.jsx)(a,{id:x.name||x.id,tag:h,children:(0,n.jsx)(g,{})})}},6686:(e,t,s)=>{s.d(t,{A:()=>i,o:()=>n});let n="minecraft",i={toString:function(e){return"".concat(e.namespace,":").concat(e.path)},parse:function(e){if(0===e.length)return null;if(e.includes(":")){let t=e.split(":");return{namespace:t[0],path:t[1]}}return{namespace:"minecraft",path:e}}}},7013:(e,t,s)=>{s.d(t,{cn:()=>r});var n=s(2462),i=s(7679);function r(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return(0,i.QP)((0,n.$)(t))}},7045:(e,t,s)=>{s.d(t,{$:()=>c});var n=s(108),i=s(3616),r=s(5630),a=s(6512),l=s(7013);let o=(0,a.F)("\n inline-flex items-center justify-center rounded-md text-sm font-medium whitespace-nowrap ring-offset-background\n transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\n focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50\n ",{variants:{variant:{default:"border border-primary bg-primary text-primary hover:bg-secondary/90",destructive:"bg-secondary text-destructive hover:text-destructive/90",outline:"border border-quaternary bg-primary hover:bg-secondary hover:text-primary-alt",secondary:"bg-secondary text-secondary-alt hover:bg-secondary/80",ghost:"hover:bg-secondary hover:text-primary-alt",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=i.forwardRef((e,t)=>{let{className:s,variant:i,size:a,asChild:c=!1,...d}=e,u=c?r.DX:"button";return(0,n.jsx)(u,{className:(0,l.cn)(o({variant:i,size:a,className:s})),ref:t,...d})});c.displayName="Button"},7356:(e,t,s)=>{s.d(t,{default:()=>a});var n=s(108),i=s(3616),r=s(9837);function a(e){let{limit:t,content:s}=e,a=(0,r.c3)("UsageContentList"),[l,o]=(0,i.useState)(!1);return(0,n.jsxs)("ul",{className:"mt-0",children:[l?s:s.slice(0,Math.min(t,s.length)),!l&&s.length>t&&(0,n.jsx)("li",{className:"text-secondary",children:(0,n.jsx)("button",{className:"decoration-1 underline-offset-4 hover:underline",onClick:()=>o(!0),children:a("more")})})]})}},7818:(e,t,s)=>{s.r(t),s.d(t,{default:()=>n});let n={src:"/_next/static/media/crafting_background.158942b1.png",height:136,width:260,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAGFBMVEWampqnp6eioqLKysqLi4uSkpK+vr64uLgHQ3rrAAAAA3RSTlP+/v6VFoksAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAJElEQVR4nCXGsQEAMAzCMBNI+P/jDtUkBmRbkIy7+TkBu9MeDwXFAF/HY1pFAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4}},9028:(e,t,s)=>{s.d(t,{k:()=>l});var n=s(108),i=s(3616),r=s(2830),a=s.n(r);let l=(0,i.forwardRef)(function(e,t){let{prefetch:s=!1,...i}=e;return(0,n.jsx)(a(),{prefetch:s,...i,ref:t})})}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[450],{165:(e,t,r)=>{"use strict";r.d(t,{GL:()=>l,ww:()=>o,YE:()=>u,default:()=>d});var n=r(108),s=r(3616);r(5756);var i=r(5788);r(3751);let c={userRequiresCookieConsent:function(){return!1}};var a=r(9837);let o=(0,s.createContext)(null),l="experience",u="yt_embeds";function d(e){let{children:t}=e,[r,d]=(0,s.useState)(!0),[h,f]=(0,s.useState)(!1),m=(0,a.c3)("CookieConsent");function x(){f(i.tj(u,l))}return(0,s.useEffect)(()=>{let e=c.userRequiresCookieConsent();d(e),e&&i.eF({revision:1,guiOptions:{consentModal:{layout:"box inline"}},onFirstConsent:()=>{x()},onChange:()=>{x()},categories:{necessary:{enabled:!0,readOnly:!0},[l]:{services:{[u]:{label:m("sections.experience.services.embeds"),onAccept:()=>f(!0),onReject:()=>f(!1)}}}},language:{default:"en",translations:{en:{consentModal:{title:m("popup.title"),description:m("popup.description"),acceptAllBtn:m("actions.accept_all"),acceptNecessaryBtn:m("actions.reject_all"),showPreferencesBtn:m("popup.show_preferences")},preferencesModal:{title:m("modal.title"),acceptAllBtn:m("actions.accept_all"),acceptNecessaryBtn:m("actions.reject_all"),savePreferencesBtn:m("modal.save"),closeIconLabel:m("modal.close"),sections:[{title:m("sections.summary.title"),description:m("sections.summary.description")},{title:m("sections.necessary.title"),description:m("sections.necessary.description"),linkedCategory:"necessary"},{title:m("sections.experience.title"),description:m("sections.experience.description"),linkedCategory:"experience"},{title:m("sections.more_info.title"),description:m.raw("sections.more_info.description")}]}}}}})},[]),(0,n.jsx)(o.Provider,{value:{enableCookieManagement:r,hasConsentToEmbeddedVideos:h},children:t})}},757:(e,t,r)=>{Promise.resolve().then(r.bind(r,165)),Promise.resolve().then(r.bind(r,5037)),Promise.resolve().then(r.bind(r,7924)),Promise.resolve().then(r.bind(r,5449)),Promise.resolve().then(r.t.bind(r,8914,23)),Promise.resolve().then(r.bind(r,3132)),Promise.resolve().then(r.bind(r,1207)),Promise.resolve().then(r.bind(r,2228)),Promise.resolve().then(r.bind(r,6979)),Promise.resolve().then(r.bind(r,1305)),Promise.resolve().then(r.bind(r,2555)),Promise.resolve().then(r.t.bind(r,2830,23)),Promise.resolve().then(r.bind(r,1338))},1207:(e,t,r)=>{"use strict";r.d(t,{default:()=>g});var n=r(108),s=r(5904),i=r(3616),c=r(3605),a=r(5108),o=r(5964),l=r(7986),u=r(787),d=r(7013),h=r(9837),f=r(9028),m=r(3552);function x(e){let{result:t}=e,r=t.path?t.icon:t.mod_icon;return(0,n.jsxs)(f.k,{href:t.url,className:"\n z-50 flex cursor-pointer flex-row gap-2 bg-primary-alt px-1 py-1.5 text-primary first:rounded-t-sm\n last:rounded-b-sm hover:bg-tertiary\n ",children:[(0,n.jsx)("div",{className:"shrink-0 rounded-xs p-1",children:(0,n.jsx)(c.default,{src:r,width:48,height:48,alt:t.mod,fbIcon:a.A,fixedSize:!0})}),(0,n.jsxs)("div",{className:"\n flex w-full flex-col justify-between overflow-hidden py-0.5 text-ellipsis [&_span]:overflow-hidden\n [&_span]:text-ellipsis\n ",children:[(0,n.jsx)("span",{children:t.title||t.mod}),!t.path&&t.mod_desc?(0,n.jsx)("span",{className:"text-secondary",children:t.mod_desc}):(0,n.jsx)("div",{className:"flex flex-row gap-2",children:(0,n.jsx)("span",{className:"text-secondary",children:t.mod})})]})]})}function p(){let e=(0,h.c3)("DocsSearchBar");return(0,n.jsx)("div",{className:"\n z-50 flex h-16 flex-row items-center justify-center gap-2 bg-primary-alt px-1 py-1.5 font-light text-secondary\n first:rounded-t-sm last:rounded-b-sm\n ",children:e("no_results")})}function v(){let e=(0,h.c3)("DocsSearchBar");return(0,n.jsxs)("div",{className:"\n z-50 flex h-16 flex-row items-center justify-center gap-2 bg-primary-alt px-1 py-1.5 font-light text-secondary\n first:rounded-t-sm last:rounded-b-sm\n ",children:[(0,n.jsx)(o.A,{className:"mr-2 h-5 w-5 animate-spin"}),e("loading")]})}function y(e){let{visible:t,total:r}=e,s=(0,h.c3)("DocsSearchBar");return(0,n.jsxs)("div",{className:"flex w-full flex-row items-center justify-between rounded-b-sm bg-primary-alt p-2 text-secondary",children:[(0,n.jsx)("div",{className:"text-sm font-light",children:s.rich("results",{highlight:e=>(0,n.jsx)("span",{className:"font-normal",children:e}),count:t,total:r})}),(0,n.jsx)("span",{className:"text-sm",children:s.rich("close",{kbd:e=>(0,n.jsx)("kbd",{children:e})})})]})}function g(){let e=(0,h.c3)("DocsSearchBar"),[t,r]=(0,i.useState)(""),[c,a]=(0,i.useState)(null),[o,f]=(0,i.useState)(!1),g=(0,s.YQ)(async e=>{let r=!0;setTimeout(()=>{t&&r&&f(!0)},500),a(await m.A.searchWiki(e)),r=!1,f(!1)},200),[b,w]=(0,i.useState)(!1),j=(0,i.useRef)(null),_=(0,u.usePathname)();(0,i.useEffect)(()=>{var e;null==(e=j.current)||e.blur()},[_]);let[N,k]=(0,i.useState)(!0),E=()=>{"visible"===document.visibilityState?setTimeout(()=>k(!0),500):k(!1)};return(0,i.useLayoutEffect)(()=>(document.addEventListener("visibilitychange",E),()=>document.removeEventListener("visibilitychange",E)),[]),(0,n.jsxs)("div",{className:(0,d.cn)("relative mx-2 hidden w-full transition-none duration-200 ease-[cubic-bezier(.27,.17,.43,.98)]",N&&"md:focus-within:transition-[max-width] lg:transition-[max-width]","\n md:flex md:max-w-sm md:focus-within:fixed md:focus-within:left-1/2 md:focus-within:max-w-lg\n md:focus-within:-translate-x-1/2 md:focus-within:shadow-lg\n ","\n lg:max-w-[40rem] lg:focus-within:static lg:focus-within:flex lg:focus-within:max-w-2xl\n lg:focus-within:translate-x-0\n "),children:[(0,n.jsxs)("div",{className:"relative w-full",children:[(0,n.jsx)(l.A,{className:"inset absolute top-1/2 left-2 h-4 w-4 -translate-y-1/2 text-neutral-500"}),(0,n.jsx)("input",{type:"text",value:t,ref:j,className:"\n w-full cursor-pointer rounded-sm border border-secondary bg-primary-alt px-8 py-[0.2rem] text-center\n text-sm text-ellipsis placeholder:text-neutral-500 focus:cursor-text focus:border-secondary-alt\n focus:shadow-md focus:outline-none\n ",onChange:e=>(e=>{if(r(e),!e||0===e.length){a(null),f(!1);return}return g(e)})(e.target.value),placeholder:e("placeholder"),onFocus:()=>{w(!0),a(null),document.querySelectorAll("html, body").forEach(e=>e.classList.add("scrollLock"))},onBlur:()=>{w(!1),f(!1),r(""),document.querySelectorAll("html, body").forEach(e=>e.classList.remove("scrollLock"))},onKeyDown:e=>{"Escape"===e.key&&e.target.blur()}})]}),b&&t&&(o||!o&&c)&&(0,n.jsxs)("div",{onMouseDown:e=>e.preventDefault(),className:"\n absolute top-8 flex w-full flex-col divide-y divide-tertiary rounded-sm border border-secondary\n bg-primary-alt shadow-lg\n ",children:[o&&(0,n.jsx)(v,{}),!o&&c&&c.hits.map(e=>(0,n.jsx)(x,{result:e},e.url)),!o&&c&&0===c.hits.length&&(0,n.jsx)(p,{}),!o&&c&&(0,n.jsx)(y,{visible:c.hits.length,total:c.total})]})]})}},1338:(e,t,r)=>{"use strict";r.d(t,{Toaster:()=>i});var n=r(108),s=r(6023);let i=e=>{let{...t}=e;return(0,n.jsx)(s.l$,{theme:"dark",className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-primary group-[.toaster]:text-primary group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-secondary",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-inverse",cancelButton:"group-[.toast]:bg-primary-alt group-[.toast]:text-secondary"}},...t})}},2228:(e,t,r)=>{"use strict";r.d(t,{default:()=>w});var n=r(108),s=r(9837),i=r(5108),c=r(5964);let a=(0,r(6508).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);var o=r(7986),l=r(7045),u=r(3616),d=r(3605),h=r(5904),f=r(6414),m=r(787),x=r(9028),p=r(3552);function v(e){let{result:t}=e,r=t.path?t.icon:t.mod_icon;return(0,n.jsxs)(x.k,{href:t.url,className:"\n z-50 flex cursor-pointer flex-row gap-2 rounded-xs border border-neutral-700 bg-primary-alt px-1 py-1.5\n text-primary\n ",children:[(0,n.jsx)("div",{className:"shrink-0 rounded-xs p-1",children:(0,n.jsx)(d.default,{src:r,width:48,height:48,alt:t.mod,fbIcon:i.A,fixedSize:!0})}),(0,n.jsxs)("div",{className:"\n flex w-full flex-col justify-between overflow-hidden py-0.5 text-ellipsis [&_span]:overflow-hidden\n [&_span]:text-ellipsis\n ",children:[(0,n.jsx)("span",{children:t.title||t.mod}),!t.path&&t.mod_desc?(0,n.jsx)("span",{className:"text-secondary",children:t.mod_desc}):(0,n.jsx)("div",{className:"flex flex-col gap-1",children:(0,n.jsx)("span",{className:"text-secondary",children:t.mod})})]})]})}function y(){let e=(0,s.c3)("DocsSearchBar");return(0,n.jsxs)("div",{className:"\n z-50 flex h-16 flex-row items-center justify-center gap-2 rounded-xs border border-neutral-700 bg-primary-alt px-1\n py-1.5 text-secondary\n ",children:[(0,n.jsx)(c.A,{className:"mr-2 h-5 w-5 animate-spin"}),e("loading")]})}function g(){let e=(0,s.c3)("DocsSearchBar");return(0,n.jsx)("div",{className:"\n z-50 flex h-16 flex-row items-center justify-center gap-2 rounded-xs border border-neutral-700 bg-primary-alt px-1\n py-1.5 text-secondary\n ",children:e("no_results")})}function b(e){let{isOpen:t,setOpen:r}=e,i=(0,s.c3)("DocsSearchBar"),c=(0,u.useRef)(null),[o,l]=(0,u.useState)(""),[d,m]=(0,u.useState)(null),[x,b]=(0,u.useState)(!1);(0,u.useEffect)(()=>{l(""),m(null),b(!1)},[t]);let w=(0,h.YQ)(async e=>{let t=!0;setTimeout(()=>{o&&t&&b(!0)},500),m(await p.A.searchWiki(e)),t=!1,b(!1)},200);return(0,n.jsx)(f.A,{nodeRef:c,in:t,timeout:200,classNames:"fade",unmountOnExit:!0,children:(0,n.jsx)("div",{ref:c,className:"fixed top-0 right-0 bottom-0 left-0 z-50 h-[100vh] w-full overflow-hidden bg-primary",children:(0,n.jsxs)("div",{className:"innerFadeContainer flex flex-col gap-4 p-4",children:[(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("button",{onClick:()=>r(!1),children:(0,n.jsx)(a,{className:"absolute top-1/2 left-2 h-5 w-5 -translate-y-1/2 text-secondary"})}),(0,n.jsx)("input",{type:"text",value:o,onChange:e=>(e=>{if(l(e),!e||0===e.length){m(null),b(!1);return}return w(e)})(e.target.value),className:"\n w-full cursor-pointer rounded-xs border border-neutral-700 bg-primary-alt p-2 px-8 text-center\n text-sm text-ellipsis placeholder:text-neutral-500 focus:cursor-text focus:outline-1\n focus:outline-secondary\n ",placeholder:i("placeholder"),autoFocus:!0})]}),x&&(0,n.jsx)(y,{}),!x&&d&&(d.hits.length>0?(0,n.jsxs)("div",{className:"slim-scrollbar flex h-[90vh] flex-col gap-2 overflow-y-auto",children:[...d.hits.map(e=>(0,n.jsx)(v,{result:e},e.url))]}):(0,n.jsx)(g,{}))]})})})}function w(){let[e,t]=(0,u.useState)(!1),r=(0,m.usePathname)();return(0,u.useEffect)(()=>{t(!1)},[r]),(0,u.useEffect)(()=>{e?document.querySelectorAll("html, body").forEach(e=>e.classList.add("navScrollLock")):document.querySelectorAll("html, body").forEach(e=>e.classList.remove("navScrollLock"))},[e]),(0,n.jsxs)("div",{className:"sm:hidden",children:[(0,n.jsx)(l.$,{variant:"ghost",size:"icon",onClick:()=>t(!e),children:(0,n.jsx)(o.A,{className:"h-4 w-4 text-[var(--vp-c-text-1)]"})}),(0,n.jsx)(b,{isOpen:e,setOpen:t})]})}},2649:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(108);function s(e){let{width:t,height:r,className:s}=e;return(0,n.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:r,className:s,children:[(0,n.jsx)("title",{children:"GitHub"}),(0,n.jsx)("path",{fill:"currentColor",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"})]})}},3552:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(2969),s=r(2969);let i={searchWiki:async function(e){if(!s.env.NEXT_PUBLIC_SEARCH_ENDPOINT||!s.env.NEXT_PUBLIC_SEARCH_INDEX||!s.env.NEXT_PUBLIC_SEARCH_API_KEY)return{total:0,hits:[]};try{let r=await fetch("".concat(s.env.NEXT_PUBLIC_SEARCH_ENDPOINT,"/").concat(s.env.NEXT_PUBLIC_SEARCH_INDEX,"/_search?pretty"),{method:"POST",headers:{Authorization:"ApiKey ".concat(s.env.NEXT_PUBLIC_SEARCH_API_KEY),"Content-Type":"application/json"},body:JSON.stringify({query:{multi_match:{query:e,type:"bool_prefix",fields:["docs_source_mod_only^2","all_docs_content^1","all_docs_content._2gram^1","all_docs_content._3gram^1"]}},stored_fields:[],fields:["docs_title","docs_icon","docs_source_mod","docs_source_desc","docs_source_icon","url_path"],size:8,_source:!1}),cache:"no-store"});if(r.ok){var t;let e=await r.json();if(null==e||null==(t=e.hits)?void 0:t.hits){let t=e.hits.hits.map(e=>{var t,r;let s=e.fields.url_path[0],i=s.split("/").slice(5).join(" > "),c=(n.env.NEXT_PUBLIC_NEXT_APP_URL||"http://localhost:3000")+s;return{title:null==(t=e.fields.docs_title)?void 0:t[0],mod:null==(r=e.fields.docs_source_mod)?void 0:r[0],url:c,mod_icon:e.fields.docs_source_icon[0],mod_desc:e.fields.docs_source_desc?e.fields.docs_source_desc[0]:void 0,icon:e.fields.docs_icon?e.fields.docs_icon[0]:void 0,path:i}});return{total:e.hits.total.value||0,hits:t}}}else throw Error(r.status.toString())}catch(e){console.error("Error running search",e)}return{total:0,hits:[]}}}},3605:(e,t,r)=>{"use strict";r.d(t,{default:()=>o});var n=r(108),s=r(3616),i=r(4099),c=r(7013),a=r(6466);function o(e){let{src:t,alt:r,width:o,height:l,fbWidth:u,fbHeight:d,className:h,title:f,strokeWidth:m=1,fixedSize:x,wrapper:p,fbIcon:v=i.A,fallback:y=(0,n.jsx)(v,{strokeWidth:m,className:(0,c.cn)(h,"text-secondary opacity-20"),width:u||o,height:d||l}),...g}=e,[b,w]=(0,s.useState)(!1);return(0,n.jsxs)("div",{className:"shrink-0 overflow-hidden",title:f,style:x?{width:"".concat(o,"px"),height:"".concat(l,"px")}:void 0,...p,children:[t&&!b&&(0,n.jsx)(a.default,{src:t,alt:r||"",width:o,height:l,className:h,unoptimized:!0,onError:()=>w(!0),...g}),(!t||b)&&y]})}},5037:(e,t,r)=>{"use strict";r.d(t,{default:()=>a});var n=r(108),s=r(3616),i=r(165),c=r(9837);function a(){let e=(0,c.c3)("ManageCookiesButton"),t=(0,s.useContext)(i.ww);return t&&t.enableCookieManagement?(0,n.jsx)("button",{type:"button","data-cc":"show-preferencesModal",className:"text-sm",children:e("text")}):null}},5108:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(6508).A)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},5449:(e,t,r)=>{"use strict";r.d(t,{default:()=>o});var n=r(108),s=r(9034),i=r(1021),c=r(3616),a=r(787);function o(e){let{children:t}=e,[r,o]=(0,c.useState)(!1),l=(0,a.usePathname)();return(0,c.useEffect)(()=>{o(!1)},[l]),(0,n.jsxs)("div",{className:"sm:hidden",children:[(0,n.jsx)(s.A,{active:r,setOpen:o}),(0,n.jsx)(i.A,{className:"top-nav-height bg-primary",isVisible:r,children:t})]})}},5904:(e,t,r)=>{"use strict";r.d(t,{YQ:()=>s});var n=r(3616);function s(e,t,r,s){var i=this,c=(0,n.useRef)(null),a=(0,n.useRef)(0),o=(0,n.useRef)(0),l=(0,n.useRef)(null),u=(0,n.useRef)([]),d=(0,n.useRef)(),h=(0,n.useRef)(),f=(0,n.useRef)(e),m=(0,n.useRef)(!0);f.current=e;var x="undefined"!=typeof window,p=!t&&0!==t&&x;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var v=!!(r=r||{}).leading,y=!("trailing"in r)||!!r.trailing,g="maxWait"in r,b="debounceOnServer"in r&&!!r.debounceOnServer,w=g?Math.max(+r.maxWait||0,t):null;return(0,n.useEffect)(function(){return m.current=!0,function(){m.current=!1}},[]),(0,n.useMemo)(function(){var e=function(e){var t=u.current,r=d.current;return u.current=d.current=null,a.current=e,o.current=o.current||e,h.current=f.current.apply(r,t)},r=function(e,t){p&&cancelAnimationFrame(l.current),l.current=p?requestAnimationFrame(e):setTimeout(e,t)},n=function(e){if(!m.current)return!1;var r=e-c.current;return!c.current||r>=t||r<0||g&&e-a.current>=w},j=function(t){return l.current=null,y&&u.current?e(t):(u.current=d.current=null,h.current)},_=function e(){var s=Date.now();if(v&&o.current===a.current&&N(),n(s))return j(s);if(m.current){var i=t-(s-c.current);r(e,g?Math.min(i,w-(s-a.current)):i)}},N=function(){s&&s({})},k=function(){if(x||b){var s=Date.now(),o=n(s);if(u.current=[].slice.call(arguments),d.current=i,c.current=s,o){if(!l.current&&m.current)return a.current=c.current,r(_,t),v?e(c.current):h.current;if(g)return r(_,t),e(c.current)}return l.current||r(_,t),h.current}};return k.cancel=function(){l.current&&(p?cancelAnimationFrame(l.current):clearTimeout(l.current)),a.current=0,u.current=c.current=d.current=l.current=null},k.isPending=function(){return!!l.current},k.flush=function(){return l.current?j(Date.now()):h.current},k},[v,g,t,w,y,p,x,b,s])}},5964:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(6508).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},6979:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var n=r(108);let s=(0,r(6508).A)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);var i=r(7013),c=r(7045),a=r(2649);function o(e){let{width:t,height:r,className:s}=e;return(0,n.jsx)("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",width:t||24,height:r||24,className:s,viewBox:"0 0 24 24",children:(0,n.jsx)("path",{fill:"currentColor",d:"M19.27 5.33C17.94 4.71 16.5 4.26 15 4a.1.1 0 0 0-.07.03c-.18.33-.39.76-.53 1.09a16.1 16.1 0 0 0-4.8 0c-.14-.34-.35-.76-.54-1.09c-.01-.02-.04-.03-.07-.03c-1.5.26-2.93.71-4.27 1.33c-.01 0-.02.01-.03.02c-2.72 4.07-3.47 8.03-3.1 11.95c0 .02.01.04.03.05c1.8 1.32 3.53 2.12 5.24 2.65c.03.01.06 0 .07-.02c.4-.55.76-1.13 1.07-1.74c.02-.04 0-.08-.04-.09c-.57-.22-1.11-.48-1.64-.78c-.04-.02-.04-.08-.01-.11c.11-.08.22-.17.33-.25c.02-.02.05-.02.07-.01c3.44 1.57 7.15 1.57 10.55 0c.02-.01.05-.01.07.01c.11.09.22.17.33.26c.04.03.04.09-.01.11c-.52.31-1.07.56-1.64.78c-.04.01-.05.06-.04.09c.32.61.68 1.19 1.07 1.74c.03.01.06.02.09.01c1.72-.53 3.45-1.33 5.25-2.65c.02-.01.03-.03.03-.05c.44-4.53-.73-8.46-3.1-11.95c-.01-.01-.02-.02-.04-.02M8.52 14.91c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.84 2.12-1.89 2.12m6.97 0c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.83 2.12-1.89 2.12"})})}function l(e){let{enableSharing:t,shareData:r,large:i}=e,l="undefined"!=typeof navigator&&"function"==typeof navigator.share,d=i?"h-5 w-5":"h-4 w-4 sm:h-5 sm:w-5";return(0,n.jsxs)("div",{className:"flex flex-wrap gap-2 sm:gap-4",children:[(0,n.jsx)(u,{href:"https://github.com/Sinytra",large:i,icon:(0,n.jsx)(a.A,{className:d})}),(0,n.jsx)(u,{href:"https://discord.sinytra.org",large:i,icon:(0,n.jsx)(o,{className:d})}),t&&l&&(0,n.jsxs)(c.$,{onClick:()=>{navigator.share?navigator.share(r).catch(e=>{console.error("Error sharing:",e)}):alert("Sharing is not supported on this browser.")},size:"sm",className:"\n flex h-8 w-8 items-center justify-center gap-2 sm:h-10 sm:w-auto sm:justify-start sm:px-4\n ",children:[(0,n.jsx)(s,{className:"h-5 w-5"}),(0,n.jsx)("span",{className:"hidden sm:inline",children:"Share"})]})]})}function u(e){let{href:t,icon:r,large:s,className:a}=e;return(0,n.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)(c.$,{variant:"outline",size:"icon",className:(0,i.cn)(a,s?"h-10 w-10":"\n h-8 w-8 sm:h-10 sm:w-10\n "),children:r})})}},7013:(e,t,r)=>{"use strict";r.d(t,{cn:()=>i});var n=r(2462),s=r(7679);function i(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.QP)((0,n.$)(t))}},7045:(e,t,r)=>{"use strict";r.d(t,{$:()=>l});var n=r(108),s=r(3616),i=r(5630),c=r(6512),a=r(7013);let o=(0,c.F)("\n inline-flex items-center justify-center rounded-md text-sm font-medium whitespace-nowrap ring-offset-background\n transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\n focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50\n ",{variants:{variant:{default:"border border-primary bg-primary text-primary hover:bg-secondary/90",destructive:"bg-secondary text-destructive hover:text-destructive/90",outline:"border border-quaternary bg-primary hover:bg-secondary hover:text-primary-alt",secondary:"bg-secondary text-secondary-alt hover:bg-secondary/80",ghost:"hover:bg-secondary hover:text-primary-alt",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),l=s.forwardRef((e,t)=>{let{className:r,variant:s,size:c,asChild:l=!1,...u}=e,d=l?i.DX:"button";return(0,n.jsx)(d,{className:(0,a.cn)(o({variant:s,size:c,className:r})),ref:t,...u})});l.displayName="Button"},7924:(e,t,r)=>{"use strict";r.d(t,{default:()=>c});var n=r(108),s=r(3616),i=r(7013);function c(e){let{unfix:t,children:r}=e,c=(0,s.useRef)(null),[a,o]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=()=>{o(window.scrollY>0)};return document.addEventListener("scroll",e),()=>document.removeEventListener("scroll",e)},[a]),(0,n.jsx)("header",{className:(0,i.cn)(!t&&"fixed left-0 w-[100vw]","z-50 border-b border-tertiary bg-primary-alt",!t&&a&&"\n motion-reduce:transition-none\n "),ref:c,children:r})}},7986:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(6508).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},9028:(e,t,r)=>{"use strict";r.d(t,{k:()=>a});var n=r(108),s=r(3616),i=r(2830),c=r.n(i);let a=(0,s.forwardRef)(function(e,t){let{prefetch:r=!1,...s}=e;return(0,n.jsx)(c(),{prefetch:r,...s,ref:t})})}},e=>{e.O(0,[947,482,830,531,116,323,625,639,126,364,25,372,284,358],()=>e(e.s=757)),_N_E=e.O()}]);
File without changes
package/bin/watcher.mjs CHANGED
@@ -6,7 +6,9 @@ const wss = new WebSocketServer({ port: 3100 });
6
6
  console.log('WebSocket watcher started on ws://localhost:3100');
7
7
 
8
8
  const paths = (process.env.LOCAL_DOCS_ROOTS || '').split(',');
9
- if (paths.length > 0) {
9
+ const empty = paths.length === 0 || paths.length === 1 && paths[0].length === 0;
10
+
11
+ if (!empty) {
10
12
  console.debug('Watching paths', paths);
11
13
 
12
14
  chokidar.watch(paths).on('change', (event, path) => {
@@ -18,4 +20,6 @@ if (paths.length > 0) {
18
20
  }
19
21
  });
20
22
  });
23
+ } else {
24
+ console.debug('No patchs to watch found');
21
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinytra/wiki-previewer",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "wiki-previewer": "./bin/entrypoint.mjs"
@@ -10,10 +10,6 @@
10
10
  "url": "https://github.com/Sinytra/Wiki.git",
11
11
  "directory": "build/output"
12
12
  },
13
- "publishConfig": {
14
- "access": "public",
15
- "registry": "https://registry.npmjs.org"
16
- },
17
13
  "dependencies": {
18
14
  "import-in-the-middle": "^1.14.2",
19
15
  "next": "15.5.9",
@@ -24,4 +20,4 @@
24
20
  "concurrently": "^9.2.1",
25
21
  "ws": "^8.18.3"
26
22
  }
27
- }
23
+ }
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[333],{105:(e,t,s)=>{s.d(t,{Tabs:()=>l,TabsContent:()=>d,TabsList:()=>o,TabsTrigger:()=>c});var n=s(108),i=s(3616),r=s(104),a=s(7013);let l=r.bL,o=i.forwardRef((e,t)=>{let{className:s,...i}=e;return(0,n.jsx)(r.B8,{ref:t,className:(0,a.cn)("inline-flex h-10 items-center justify-center rounded-md bg-primary-alt p-1 text-secondary",s),...i})});o.displayName=r.B8.displayName;let c=i.forwardRef((e,t)=>{let{className:s,...i}=e;return(0,n.jsx)(r.l9,{ref:t,className:(0,a.cn)("\n inline-flex items-center justify-center rounded-xs px-3 py-1.5 text-sm font-medium whitespace-nowrap\n ring-offset-background transition-all focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\n focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary\n data-[state=active]:text-primary data-[state=active]:shadow-xs\n ",s),...i})});c.displayName=r.l9.displayName;let d=i.forwardRef((e,t)=>{let{className:s,...i}=e;return(0,n.jsx)(r.UC,{ref:t,className:(0,a.cn)("\n mt-2 ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\n focus-visible:outline-hidden\n ",s),...i})});d.displayName=r.UC.displayName},165:(e,t,s)=>{s.d(t,{GL:()=>p,ww:()=>u,YE:()=>h,default:()=>m});var n=s(108),i=s(3616);s(5756);var r=s(5788),a=s(3751),l=s(2969);let o=["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE"],c={userRequiresCookieConsent:function(){if("true"==l.env.NEXT_PUBLIC_DISABLE_COOKIE_CONSENT)return!1;let e=a.A.get("wiki-user-country");return!e||o.includes(e)}};var d=s(9837);let u=(0,i.createContext)(null),p="experience",h="yt_embeds";function m(e){let{children:t}=e,[s,a]=(0,i.useState)(!0),[l,o]=(0,i.useState)(!1),m=(0,d.c3)("CookieConsent");function f(){o(r.tj(h,p))}return(0,i.useEffect)(()=>{let e=c.userRequiresCookieConsent();a(e),e&&r.eF({revision:1,guiOptions:{consentModal:{layout:"box inline"}},onFirstConsent:()=>{f()},onChange:()=>{f()},categories:{necessary:{enabled:!0,readOnly:!0},[p]:{services:{[h]:{label:m("sections.experience.services.embeds"),onAccept:()=>o(!0),onReject:()=>o(!1)}}}},language:{default:"en",translations:{en:{consentModal:{title:m("popup.title"),description:m("popup.description"),acceptAllBtn:m("actions.accept_all"),acceptNecessaryBtn:m("actions.reject_all"),showPreferencesBtn:m("popup.show_preferences")},preferencesModal:{title:m("modal.title"),acceptAllBtn:m("actions.accept_all"),acceptNecessaryBtn:m("actions.reject_all"),savePreferencesBtn:m("modal.save"),closeIconLabel:m("modal.close"),sections:[{title:m("sections.summary.title"),description:m("sections.summary.description")},{title:m("sections.necessary.title"),description:m("sections.necessary.description"),linkedCategory:"necessary"},{title:m("sections.experience.title"),description:m("sections.experience.description"),linkedCategory:"experience"},{title:m("sections.more_info.title"),description:m.raw("sections.more_info.description")}]}}}}})},[]),(0,n.jsx)(u.Provider,{value:{enableCookieManagement:s,hasConsentToEmbeddedVideos:l},children:t})}},1495:(e,t,s)=>{s.d(t,{CopyButton:()=>u});var n=s(108),i=s(9300),r=s(7149),a=s(3616),l=s(7013),o=s(7045),c=s(6023),d=s(9837);function u(e){let{text:t,showToast:s,className:u}=e,[p,h]=(0,a.useState)(!1),m=(0,d.c3)("CopyButton");return(0,n.jsx)(o.$,{variant:"ghost",size:"icon",className:(0,l.cn)("\n text-secondary-alt opacity-0 transition-opacity duration-200 ease-in-out\n group-hover:opacity-100 hover:bg-gray-400/10 [&>svg]:animate-in [&>svg]:fade-in [&>svg]:fade-out\n ",u),"aria-label":"Copy to clipboard",onClick:()=>{navigator.clipboard.writeText(t),h(!0),setTimeout(()=>h(!1),2e3),s&&c.oR.success(m("copied"))},children:p?(0,n.jsx)(i.A,{size:16}):(0,n.jsx)(r.A,{size:16})})}},1874:(e,t,s)=>{s.d(t,{default:()=>l});var n=s(108),i=s(6686),r=s(3605);function a(e){if("string"==typeof e){let t=Number(e);return Number.isNaN(t)?void 0:t}return e}function l(e){var t;let{asset:s,width:l,height:o,alt:c,title:d,noTitle:u,...p}=e;return(0,n.jsx)(r.default,{width:a(l)||32,height:a(o)||32,src:s.src,alt:c||s.id,title:u?void 0:d||(null==(t=i.A.parse(s.id))?void 0:t.path),strokeWidth:1.5,...p})}},2310:(e,t,s)=>{s.d(t,{default:()=>o});var n=s(108),i=s(3616),r=s(7013),a=s(361),l=s(9837);function o(e){let{columns:t,rows:s,embedded:o,expandedBody:c}=e,[d,u]=(0,i.useState)(!1),p=(0,l.c3)("ResponsiveTable");return(0,n.jsxs)("table",{className:(0,r.cn)("[&_td]:bg-primary-alt/50",o&&"mb-0"),children:[(0,n.jsx)("thead",{className:"hidden sm:table-header-group",children:(0,n.jsx)("tr",{children:t.map(e=>(0,n.jsx)("th",{className:"",children:e.label},e.key))})}),(0,n.jsxs)("tbody",{children:[s.map((e,s)=>(0,n.jsx)("tr",{className:"block border-0 sm:table-row",children:t.map(t=>(0,n.jsxs)("td",{className:(0,r.cn)("block border-b sm:table-cell sm:border",e[t.key].className),"data-label":t.label,children:[(0,n.jsx)("div",{className:"mb-1 font-semibold text-primary-alt sm:hidden",children:t.label}),(0,n.jsx)("div",{children:e[t.key].data})]},t.key))},s)),(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:t.length,className:"no-table-bs group cursor-pointer bg-table-soft!",onClick:()=>u(!d),"data-open":d,children:(0,n.jsxs)("div",{className:"my-0.5 flex w-full flex-row items-center justify-end gap-4 text-secondary",children:[(0,n.jsx)("span",{className:"text-sm",children:p("expand")}),(0,n.jsx)("span",{children:(0,n.jsx)(a.A,{className:"size-4 group-data-[open=true]:rotate-180"})})]})})}),d&&(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:t.length,className:"no-table-bs no-table-padding",children:c})})]})]})}},2647:(e,t,s)=>{s.r(t),s.d(t,{default:()=>l});var n=s(108),i=s(3616),r=s(6686),a=s(7013);function l(e){var t;let{asset:s,width:l,height:o,alt:c,title:d,noTitle:u,...p}=e,h=(0,i.useRef)(null),[m,f]=(0,i.useState)(s.src);return(0,i.useEffect)(()=>{let e=h.current;if(!e)return;let t=()=>{f("/static/missing_item.png")};return e.addEventListener("error",t),e.complete&&0===e.naturalWidth&&t(),()=>{e.removeEventListener("error",t)}},[s.src]),(0,n.jsx)("div",{...p,className:(0,a.cn)("overflow-hidden",p.className),style:{width:"".concat(l||32,"px"),height:"".concat(o||32,"px")},children:(0,n.jsx)("img",{ref:h,width:l||32,height:o||32,src:m,alt:c||s.id,title:u?void 0:d||(null==(t=r.A.parse(s.id))?void 0:t.path),loading:"eager"})})}},3075:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});var n=s(108),i=s(6094),r=s(7013);function a(e){let t=e.id;return(0,n.jsxs)("h2",{...e,className:void 0,className:(0,r.cn)(e.className,"group"),children:[e.children,t&&(0,n.jsx)("a",{href:"#".concat(t),className:"\n inline-block pl-2 opacity-0 transition-opacity duration-200 group-hover:opacity-100 hover:opacity-100\n ",children:(0,n.jsx)(i.A,{className:"h-5 w-5 text-primary"})})]})}},3516:(e,t,s)=>{s.d(t,{M:()=>r,default:()=>a});var n=s(108),i=s(3616);let r=(0,i.createContext)(null);function a(e){let{children:t}=e,[s,a]=(0,i.useState)(!1),l=i.Children.map(t,e=>(0,i.isValidElement)(e)?(0,i.cloneElement)(e,{onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),...e.props}):e);return(0,n.jsx)(r.Provider,{value:{hover:s,setHover:a},children:(0,n.jsx)(n.Fragment,{children:l})})}},3538:(e,t,s)=>{s.d(t,{default:()=>u});var n=s(108),i=s(7843),r=s(7045),a=s(7013),l=s(3616),o=s(165),c=s(5788),d=s(9837);function u(e){let{id:t,children:s}=e,u=(0,d.c3)("VideoEmbedPlaceholder"),p=(0,l.useContext)(o.ww);if(!p||!p.enableCookieManagement||(null==p?void 0:p.hasConsentToEmbeddedVideos))return s;let h=t&&t.includes("?")?t.split("?")[0]:t,m="https://img.youtube.com/vi/".concat(t,"/maxresdefault.jpg");return(0,n.jsxs)("div",{className:(0,a.cn)("video-embed relative flex rounded-sm border border-tertiary bg-primary-alt text-center"),children:[(0,n.jsx)("img",{src:m,alt:"thumbnail",width:560}),(0,n.jsxs)("div",{className:"absolute-center flex h-full w-full flex-col items-center justify-center gap-5 bg-primary/80",children:[(0,n.jsx)(i.A,{className:"size-12 text-secondary-alt",strokeWidth:1.5}),(0,n.jsx)("div",{className:"text-xl",children:(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)("span",{children:u("title")}),(0,n.jsx)("span",{className:"text-sm text-secondary",children:u("description")})]})}),(0,n.jsxs)("div",{className:"mt-2 flex flex-row flex-wrap justify-center gap-3",children:[(0,n.jsx)(r.$,{onClick:()=>void c.gB(o.YE,o.GL),children:u("accept")}),h&&(0,n.jsx)("a",{href:"https://www.youtube.com/watch?v=".concat(h),target:"_blank",rel:"noreferrer",children:(0,n.jsx)(r.$,{variant:"outline",children:u("watch")})})]})]})]})}},3605:(e,t,s)=>{s.d(t,{default:()=>o});var n=s(108),i=s(3616),r=s(4099),a=s(7013),l=s(6466);function o(e){let{src:t,alt:s,width:o,height:c,fbWidth:d,fbHeight:u,className:p,title:h,strokeWidth:m=1,fixedSize:f,wrapper:v,fbIcon:x=r.A,fallback:g=(0,n.jsx)(x,{strokeWidth:m,className:(0,a.cn)(p,"text-secondary opacity-20"),width:d||o,height:u||c}),...b}=e,[y,j]=(0,i.useState)(!1);return(0,n.jsxs)("div",{className:"shrink-0 overflow-hidden",title:h,style:f?{width:"".concat(o,"px"),height:"".concat(c,"px")}:void 0,...v,children:[t&&!y&&(0,n.jsx)(l.default,{src:t,alt:s||"",width:o,height:c,className:p,unoptimized:!0,onError:()=>j(!0),...b}),(!t||y)&&g]})}},4454:(e,t,s)=>{s.r(t),s.d(t,{default:()=>p});var n=s(108),i=s(3616);class r extends i.Component{componentDidMount(){this.addListener()}componentDidUpdate(){!this.state.listenerActive&&this.props.visible&&this.addListener(),this.state.listenerActive&&!this.props.visible&&this.removeListener()}componentWillUnmount(){this.removeListener()}render(){return(0,n.jsx)("div",{className:"minetip-tooltip",style:{display:this.props.visible&&this.state.mouseMoved?"block":"none",top:this.state.yPosition+this.props.offsetY,left:this.state.xPosition+this.props.offsetX},children:(0,n.jsx)("span",{className:"font-minecraft",children:this.props.children})})}constructor(...e){super(...e),this.state={xPosition:0,yPosition:0,mouseMoved:!1,listenerActive:!1},this.onMouseMove=e=>{let{clientX:t,clientY:s}=e;this.setState({xPosition:t,yPosition:s,mouseMoved:!0})},this.addListener=()=>{document.addEventListener("mousemove",this.onMouseMove),this.setState({listenerActive:!0})},this.removeListener=()=>{document.removeEventListener("mousemove",this.onMouseMove),this.setState({xPosition:-100,yPosition:-100,listenerActive:!1})}}}function a(e){let[t,s]=(0,i.useState)(!1);return(0,n.jsxs)("div",{onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[(0,n.jsxs)(r,{visible:t,offsetX:15,offsetY:-33,children:[e.id,e.tag&&(0,n.jsxs)("p",{className:"m-0! mt-1! text-xs text-secondary text-shadow-none",children:["#",e.tag]})]}),e.children]})}var l=s(6686);function o(e){let t=l.A.parse(e);return(null==t?void 0:t.namespace)===l.o?"https://minecraft.wiki/w/".concat(t.path):null}var c=s(3516),d=s(2647),u=s(9028);function p(e){let{noTooltip:t,noLink:s,src:r,count:l,ctx:p,tag:h,...m}=e,[f,v]=(0,i.useState)(0),x=(0,i.useMemo)(()=>r[f],[f,r]),g=(0,i.useContext)(c.M);if((0,i.useEffect)(()=>{r.forEach(e=>{new Image().src=e.asset.src})},[r]),(0,i.useEffect)(()=>{if(0===r.length)return;let e=setInterval(()=>{g&&g.hover||v(e=>(e+1)%r.length)},2e3);return()=>clearInterval(e)},[r,g]),r.length<1)return null;let b=()=>{var e;let t=p?function(e,t){var s,n;let i="slug"in e?e.slug:e.id;return null!=(s=o(t.id))?s:t.has_page?"/".concat(e.locale,"/project/").concat(i,"/").concat(e.version,"/content/").concat((n=t.id).includes("/")?encodeURIComponent(n):n):null}(p,x):o(x.id),i=(0,n.jsx)("div",{...m,children:(0,n.jsxs)("div",{className:"relative shrink-0",children:[(0,n.jsx)(d.default,{noTitle:!0,asset:x.asset,alt:null!=(e=x.name)?e:x.id,className:"sharpRendering"}),l&&l>1&&(0,n.jsx)("span",{className:"\n sharpRendering absolute right-0 bottom-0 z-10 text-left font-minecraft text-base leading-1 text-white\n ",style:{textShadow:"2px 2px 0 #3F3F3F"},children:l})]})});return t&&!s?(0,n.jsx)(u.k,{href:t,rel:"noreferrer",children:i}):i};return t?(0,n.jsx)(b,{}):(0,n.jsx)(a,{id:x.name||x.id,tag:h,children:(0,n.jsx)(b,{})})}},6686:(e,t,s)=>{s.d(t,{A:()=>i,o:()=>n});let n="minecraft",i={toString:function(e){return"".concat(e.namespace,":").concat(e.path)},parse:function(e){if(0===e.length)return null;if(e.includes(":")){let t=e.split(":");return{namespace:t[0],path:t[1]}}return{namespace:"minecraft",path:e}}}},7013:(e,t,s)=>{s.d(t,{cn:()=>r});var n=s(2462),i=s(7679);function r(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return(0,i.QP)((0,n.$)(t))}},7045:(e,t,s)=>{s.d(t,{$:()=>c});var n=s(108),i=s(3616),r=s(5630),a=s(6512),l=s(7013);let o=(0,a.F)("\n inline-flex items-center justify-center rounded-md text-sm font-medium whitespace-nowrap ring-offset-background\n transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\n focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50\n ",{variants:{variant:{default:"border border-primary bg-primary text-primary hover:bg-secondary/90",destructive:"bg-secondary text-destructive hover:text-destructive/90",outline:"border border-quaternary bg-primary hover:bg-secondary hover:text-primary-alt",secondary:"bg-secondary text-secondary-alt hover:bg-secondary/80",ghost:"hover:bg-secondary hover:text-primary-alt",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=i.forwardRef((e,t)=>{let{className:s,variant:i,size:a,asChild:c=!1,...d}=e,u=c?r.DX:"button";return(0,n.jsx)(u,{className:(0,l.cn)(o({variant:i,size:a,className:s})),ref:t,...d})});c.displayName="Button"},7356:(e,t,s)=>{s.d(t,{default:()=>a});var n=s(108),i=s(3616),r=s(9837);function a(e){let{limit:t,content:s}=e,a=(0,r.c3)("UsageContentList"),[l,o]=(0,i.useState)(!1);return(0,n.jsxs)("ul",{className:"mt-0",children:[l?s:s.slice(0,Math.min(t,s.length)),!l&&s.length>t&&(0,n.jsx)("li",{className:"text-secondary",children:(0,n.jsx)("button",{className:"decoration-1 underline-offset-4 hover:underline",onClick:()=>o(!0),children:a("more")})})]})}},7818:(e,t,s)=>{s.r(t),s.d(t,{default:()=>n});let n={src:"/_next/static/media/crafting_background.158942b1.png",height:136,width:260,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAGFBMVEWampqnp6eioqLKysqLi4uSkpK+vr64uLgHQ3rrAAAAA3RSTlP+/v6VFoksAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAJElEQVR4nCXGsQEAMAzCMBNI+P/jDtUkBmRbkIy7+TkBu9MeDwXFAF/HY1pFAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4}},9028:(e,t,s)=>{s.d(t,{k:()=>l});var n=s(108),i=s(3616),r=s(2830),a=s.n(r);let l=(0,i.forwardRef)(function(e,t){let{prefetch:s=!1,...i}=e;return(0,n.jsx)(a(),{prefetch:s,...i,ref:t})})}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[450],{165:(e,t,r)=>{"use strict";r.d(t,{GL:()=>h,ww:()=>d,YE:()=>f,default:()=>m});var n=r(108),s=r(3616);r(5756);var i=r(5788),c=r(3751),a=r(2969);let o=["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE"],l={userRequiresCookieConsent:function(){if("true"==a.env.NEXT_PUBLIC_DISABLE_COOKIE_CONSENT)return!1;let e=c.A.get("wiki-user-country");return!e||o.includes(e)}};var u=r(9837);let d=(0,s.createContext)(null),h="experience",f="yt_embeds";function m(e){let{children:t}=e,[r,c]=(0,s.useState)(!0),[a,o]=(0,s.useState)(!1),m=(0,u.c3)("CookieConsent");function x(){o(i.tj(f,h))}return(0,s.useEffect)(()=>{let e=l.userRequiresCookieConsent();c(e),e&&i.eF({revision:1,guiOptions:{consentModal:{layout:"box inline"}},onFirstConsent:()=>{x()},onChange:()=>{x()},categories:{necessary:{enabled:!0,readOnly:!0},[h]:{services:{[f]:{label:m("sections.experience.services.embeds"),onAccept:()=>o(!0),onReject:()=>o(!1)}}}},language:{default:"en",translations:{en:{consentModal:{title:m("popup.title"),description:m("popup.description"),acceptAllBtn:m("actions.accept_all"),acceptNecessaryBtn:m("actions.reject_all"),showPreferencesBtn:m("popup.show_preferences")},preferencesModal:{title:m("modal.title"),acceptAllBtn:m("actions.accept_all"),acceptNecessaryBtn:m("actions.reject_all"),savePreferencesBtn:m("modal.save"),closeIconLabel:m("modal.close"),sections:[{title:m("sections.summary.title"),description:m("sections.summary.description")},{title:m("sections.necessary.title"),description:m("sections.necessary.description"),linkedCategory:"necessary"},{title:m("sections.experience.title"),description:m("sections.experience.description"),linkedCategory:"experience"},{title:m("sections.more_info.title"),description:m.raw("sections.more_info.description")}]}}}}})},[]),(0,n.jsx)(d.Provider,{value:{enableCookieManagement:r,hasConsentToEmbeddedVideos:a},children:t})}},757:(e,t,r)=>{Promise.resolve().then(r.bind(r,165)),Promise.resolve().then(r.bind(r,5037)),Promise.resolve().then(r.bind(r,7924)),Promise.resolve().then(r.bind(r,5449)),Promise.resolve().then(r.t.bind(r,8914,23)),Promise.resolve().then(r.bind(r,3132)),Promise.resolve().then(r.bind(r,1207)),Promise.resolve().then(r.bind(r,2228)),Promise.resolve().then(r.bind(r,6979)),Promise.resolve().then(r.bind(r,1305)),Promise.resolve().then(r.bind(r,2555)),Promise.resolve().then(r.t.bind(r,2830,23)),Promise.resolve().then(r.bind(r,1338))},1207:(e,t,r)=>{"use strict";r.d(t,{default:()=>g});var n=r(108),s=r(5904),i=r(3616),c=r(3605),a=r(5108),o=r(5964),l=r(7986),u=r(787),d=r(7013),h=r(9837),f=r(9028),m=r(3552);function x(e){let{result:t}=e,r=t.path?t.icon:t.mod_icon;return(0,n.jsxs)(f.k,{href:t.url,className:"\n z-50 flex cursor-pointer flex-row gap-2 bg-primary-alt px-1 py-1.5 text-primary first:rounded-t-sm\n last:rounded-b-sm hover:bg-tertiary\n ",children:[(0,n.jsx)("div",{className:"shrink-0 rounded-xs p-1",children:(0,n.jsx)(c.default,{src:r,width:48,height:48,alt:t.mod,fbIcon:a.A,fixedSize:!0})}),(0,n.jsxs)("div",{className:"\n flex w-full flex-col justify-between overflow-hidden py-0.5 text-ellipsis [&_span]:overflow-hidden\n [&_span]:text-ellipsis\n ",children:[(0,n.jsx)("span",{children:t.title||t.mod}),!t.path&&t.mod_desc?(0,n.jsx)("span",{className:"text-secondary",children:t.mod_desc}):(0,n.jsx)("div",{className:"flex flex-row gap-2",children:(0,n.jsx)("span",{className:"text-secondary",children:t.mod})})]})]})}function p(){let e=(0,h.c3)("DocsSearchBar");return(0,n.jsx)("div",{className:"\n z-50 flex h-16 flex-row items-center justify-center gap-2 bg-primary-alt px-1 py-1.5 font-light text-secondary\n first:rounded-t-sm last:rounded-b-sm\n ",children:e("no_results")})}function v(){let e=(0,h.c3)("DocsSearchBar");return(0,n.jsxs)("div",{className:"\n z-50 flex h-16 flex-row items-center justify-center gap-2 bg-primary-alt px-1 py-1.5 font-light text-secondary\n first:rounded-t-sm last:rounded-b-sm\n ",children:[(0,n.jsx)(o.A,{className:"mr-2 h-5 w-5 animate-spin"}),e("loading")]})}function y(e){let{visible:t,total:r}=e,s=(0,h.c3)("DocsSearchBar");return(0,n.jsxs)("div",{className:"flex w-full flex-row items-center justify-between rounded-b-sm bg-primary-alt p-2 text-secondary",children:[(0,n.jsx)("div",{className:"text-sm font-light",children:s.rich("results",{highlight:e=>(0,n.jsx)("span",{className:"font-normal",children:e}),count:t,total:r})}),(0,n.jsx)("span",{className:"text-sm",children:s.rich("close",{kbd:e=>(0,n.jsx)("kbd",{children:e})})})]})}function g(){let e=(0,h.c3)("DocsSearchBar"),[t,r]=(0,i.useState)(""),[c,a]=(0,i.useState)(null),[o,f]=(0,i.useState)(!1),g=(0,s.YQ)(async e=>{let r=!0;setTimeout(()=>{t&&r&&f(!0)},500),a(await m.A.searchWiki(e)),r=!1,f(!1)},200),[b,w]=(0,i.useState)(!1),j=(0,i.useRef)(null),_=(0,u.usePathname)();(0,i.useEffect)(()=>{var e;null==(e=j.current)||e.blur()},[_]);let[N,E]=(0,i.useState)(!0),k=()=>{"visible"===document.visibilityState?setTimeout(()=>E(!0),500):E(!1)};return(0,i.useLayoutEffect)(()=>(document.addEventListener("visibilitychange",k),()=>document.removeEventListener("visibilitychange",k)),[]),(0,n.jsxs)("div",{className:(0,d.cn)("relative mx-2 hidden w-full transition-none duration-200 ease-[cubic-bezier(.27,.17,.43,.98)]",N&&"md:focus-within:transition-[max-width] lg:transition-[max-width]","\n md:flex md:max-w-sm md:focus-within:fixed md:focus-within:left-1/2 md:focus-within:max-w-lg\n md:focus-within:-translate-x-1/2 md:focus-within:shadow-lg\n ","\n lg:max-w-[40rem] lg:focus-within:static lg:focus-within:flex lg:focus-within:max-w-2xl\n lg:focus-within:translate-x-0\n "),children:[(0,n.jsxs)("div",{className:"relative w-full",children:[(0,n.jsx)(l.A,{className:"inset absolute top-1/2 left-2 h-4 w-4 -translate-y-1/2 text-neutral-500"}),(0,n.jsx)("input",{type:"text",value:t,ref:j,className:"\n w-full cursor-pointer rounded-sm border border-secondary bg-primary-alt px-8 py-[0.2rem] text-center\n text-sm text-ellipsis placeholder:text-neutral-500 focus:cursor-text focus:border-secondary-alt\n focus:shadow-md focus:outline-none\n ",onChange:e=>(e=>{if(r(e),!e||0===e.length){a(null),f(!1);return}return g(e)})(e.target.value),placeholder:e("placeholder"),onFocus:()=>{w(!0),a(null),document.querySelectorAll("html, body").forEach(e=>e.classList.add("scrollLock"))},onBlur:()=>{w(!1),f(!1),r(""),document.querySelectorAll("html, body").forEach(e=>e.classList.remove("scrollLock"))},onKeyDown:e=>{"Escape"===e.key&&e.target.blur()}})]}),b&&t&&(o||!o&&c)&&(0,n.jsxs)("div",{onMouseDown:e=>e.preventDefault(),className:"\n absolute top-8 flex w-full flex-col divide-y divide-tertiary rounded-sm border border-secondary\n bg-primary-alt shadow-lg\n ",children:[o&&(0,n.jsx)(v,{}),!o&&c&&c.hits.map(e=>(0,n.jsx)(x,{result:e},e.url)),!o&&c&&0===c.hits.length&&(0,n.jsx)(p,{}),!o&&c&&(0,n.jsx)(y,{visible:c.hits.length,total:c.total})]})]})}},1338:(e,t,r)=>{"use strict";r.d(t,{Toaster:()=>i});var n=r(108),s=r(6023);let i=e=>{let{...t}=e;return(0,n.jsx)(s.l$,{theme:"dark",className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-primary group-[.toaster]:text-primary group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-secondary",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-inverse",cancelButton:"group-[.toast]:bg-primary-alt group-[.toast]:text-secondary"}},...t})}},2228:(e,t,r)=>{"use strict";r.d(t,{default:()=>w});var n=r(108),s=r(9837),i=r(5108),c=r(5964);let a=(0,r(6508).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);var o=r(7986),l=r(7045),u=r(3616),d=r(3605),h=r(5904),f=r(6414),m=r(787),x=r(9028),p=r(3552);function v(e){let{result:t}=e,r=t.path?t.icon:t.mod_icon;return(0,n.jsxs)(x.k,{href:t.url,className:"\n z-50 flex cursor-pointer flex-row gap-2 rounded-xs border border-neutral-700 bg-primary-alt px-1 py-1.5\n text-primary\n ",children:[(0,n.jsx)("div",{className:"shrink-0 rounded-xs p-1",children:(0,n.jsx)(d.default,{src:r,width:48,height:48,alt:t.mod,fbIcon:i.A,fixedSize:!0})}),(0,n.jsxs)("div",{className:"\n flex w-full flex-col justify-between overflow-hidden py-0.5 text-ellipsis [&_span]:overflow-hidden\n [&_span]:text-ellipsis\n ",children:[(0,n.jsx)("span",{children:t.title||t.mod}),!t.path&&t.mod_desc?(0,n.jsx)("span",{className:"text-secondary",children:t.mod_desc}):(0,n.jsx)("div",{className:"flex flex-col gap-1",children:(0,n.jsx)("span",{className:"text-secondary",children:t.mod})})]})]})}function y(){let e=(0,s.c3)("DocsSearchBar");return(0,n.jsxs)("div",{className:"\n z-50 flex h-16 flex-row items-center justify-center gap-2 rounded-xs border border-neutral-700 bg-primary-alt px-1\n py-1.5 text-secondary\n ",children:[(0,n.jsx)(c.A,{className:"mr-2 h-5 w-5 animate-spin"}),e("loading")]})}function g(){let e=(0,s.c3)("DocsSearchBar");return(0,n.jsx)("div",{className:"\n z-50 flex h-16 flex-row items-center justify-center gap-2 rounded-xs border border-neutral-700 bg-primary-alt px-1\n py-1.5 text-secondary\n ",children:e("no_results")})}function b(e){let{isOpen:t,setOpen:r}=e,i=(0,s.c3)("DocsSearchBar"),c=(0,u.useRef)(null),[o,l]=(0,u.useState)(""),[d,m]=(0,u.useState)(null),[x,b]=(0,u.useState)(!1);(0,u.useEffect)(()=>{l(""),m(null),b(!1)},[t]);let w=(0,h.YQ)(async e=>{let t=!0;setTimeout(()=>{o&&t&&b(!0)},500),m(await p.A.searchWiki(e)),t=!1,b(!1)},200);return(0,n.jsx)(f.A,{nodeRef:c,in:t,timeout:200,classNames:"fade",unmountOnExit:!0,children:(0,n.jsx)("div",{ref:c,className:"fixed top-0 right-0 bottom-0 left-0 z-50 h-[100vh] w-full overflow-hidden bg-primary",children:(0,n.jsxs)("div",{className:"innerFadeContainer flex flex-col gap-4 p-4",children:[(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("button",{onClick:()=>r(!1),children:(0,n.jsx)(a,{className:"absolute top-1/2 left-2 h-5 w-5 -translate-y-1/2 text-secondary"})}),(0,n.jsx)("input",{type:"text",value:o,onChange:e=>(e=>{if(l(e),!e||0===e.length){m(null),b(!1);return}return w(e)})(e.target.value),className:"\n w-full cursor-pointer rounded-xs border border-neutral-700 bg-primary-alt p-2 px-8 text-center\n text-sm text-ellipsis placeholder:text-neutral-500 focus:cursor-text focus:outline-1\n focus:outline-secondary\n ",placeholder:i("placeholder"),autoFocus:!0})]}),x&&(0,n.jsx)(y,{}),!x&&d&&(d.hits.length>0?(0,n.jsxs)("div",{className:"slim-scrollbar flex h-[90vh] flex-col gap-2 overflow-y-auto",children:[...d.hits.map(e=>(0,n.jsx)(v,{result:e},e.url))]}):(0,n.jsx)(g,{}))]})})})}function w(){let[e,t]=(0,u.useState)(!1),r=(0,m.usePathname)();return(0,u.useEffect)(()=>{t(!1)},[r]),(0,u.useEffect)(()=>{e?document.querySelectorAll("html, body").forEach(e=>e.classList.add("navScrollLock")):document.querySelectorAll("html, body").forEach(e=>e.classList.remove("navScrollLock"))},[e]),(0,n.jsxs)("div",{className:"sm:hidden",children:[(0,n.jsx)(l.$,{variant:"ghost",size:"icon",onClick:()=>t(!e),children:(0,n.jsx)(o.A,{className:"h-4 w-4 text-[var(--vp-c-text-1)]"})}),(0,n.jsx)(b,{isOpen:e,setOpen:t})]})}},2649:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(108);function s(e){let{width:t,height:r,className:s}=e;return(0,n.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:r,className:s,children:[(0,n.jsx)("title",{children:"GitHub"}),(0,n.jsx)("path",{fill:"currentColor",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"})]})}},3552:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(2969),s=r(2969);let i={searchWiki:async function(e){if(!s.env.NEXT_PUBLIC_SEARCH_ENDPOINT||!s.env.NEXT_PUBLIC_SEARCH_INDEX||!s.env.NEXT_PUBLIC_SEARCH_API_KEY)return{total:0,hits:[]};try{let r=await fetch("".concat(s.env.NEXT_PUBLIC_SEARCH_ENDPOINT,"/").concat(s.env.NEXT_PUBLIC_SEARCH_INDEX,"/_search?pretty"),{method:"POST",headers:{Authorization:"ApiKey ".concat(s.env.NEXT_PUBLIC_SEARCH_API_KEY),"Content-Type":"application/json"},body:JSON.stringify({query:{multi_match:{query:e,type:"bool_prefix",fields:["docs_source_mod_only^2","all_docs_content^1","all_docs_content._2gram^1","all_docs_content._3gram^1"]}},stored_fields:[],fields:["docs_title","docs_icon","docs_source_mod","docs_source_desc","docs_source_icon","url_path"],size:8,_source:!1}),cache:"no-store"});if(r.ok){var t;let e=await r.json();if(null==e||null==(t=e.hits)?void 0:t.hits){let t=e.hits.hits.map(e=>{var t,r;let s=e.fields.url_path[0],i=s.split("/").slice(5).join(" > "),c=(n.env.NEXT_PUBLIC_NEXT_APP_URL||"http://localhost:3000")+s;return{title:null==(t=e.fields.docs_title)?void 0:t[0],mod:null==(r=e.fields.docs_source_mod)?void 0:r[0],url:c,mod_icon:e.fields.docs_source_icon[0],mod_desc:e.fields.docs_source_desc?e.fields.docs_source_desc[0]:void 0,icon:e.fields.docs_icon?e.fields.docs_icon[0]:void 0,path:i}});return{total:e.hits.total.value||0,hits:t}}}else throw Error(r.status.toString())}catch(e){console.error("Error running search",e)}return{total:0,hits:[]}}}},3605:(e,t,r)=>{"use strict";r.d(t,{default:()=>o});var n=r(108),s=r(3616),i=r(4099),c=r(7013),a=r(6466);function o(e){let{src:t,alt:r,width:o,height:l,fbWidth:u,fbHeight:d,className:h,title:f,strokeWidth:m=1,fixedSize:x,wrapper:p,fbIcon:v=i.A,fallback:y=(0,n.jsx)(v,{strokeWidth:m,className:(0,c.cn)(h,"text-secondary opacity-20"),width:u||o,height:d||l}),...g}=e,[b,w]=(0,s.useState)(!1);return(0,n.jsxs)("div",{className:"shrink-0 overflow-hidden",title:f,style:x?{width:"".concat(o,"px"),height:"".concat(l,"px")}:void 0,...p,children:[t&&!b&&(0,n.jsx)(a.default,{src:t,alt:r||"",width:o,height:l,className:h,unoptimized:!0,onError:()=>w(!0),...g}),(!t||b)&&y]})}},5037:(e,t,r)=>{"use strict";r.d(t,{default:()=>a});var n=r(108),s=r(3616),i=r(165),c=r(9837);function a(){let e=(0,c.c3)("ManageCookiesButton"),t=(0,s.useContext)(i.ww);return t&&t.enableCookieManagement?(0,n.jsx)("button",{type:"button","data-cc":"show-preferencesModal",className:"text-sm",children:e("text")}):null}},5108:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(6508).A)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},5449:(e,t,r)=>{"use strict";r.d(t,{default:()=>o});var n=r(108),s=r(9034),i=r(1021),c=r(3616),a=r(787);function o(e){let{children:t}=e,[r,o]=(0,c.useState)(!1),l=(0,a.usePathname)();return(0,c.useEffect)(()=>{o(!1)},[l]),(0,n.jsxs)("div",{className:"sm:hidden",children:[(0,n.jsx)(s.A,{active:r,setOpen:o}),(0,n.jsx)(i.A,{className:"top-nav-height bg-primary",isVisible:r,children:t})]})}},5904:(e,t,r)=>{"use strict";r.d(t,{YQ:()=>s});var n=r(3616);function s(e,t,r,s){var i=this,c=(0,n.useRef)(null),a=(0,n.useRef)(0),o=(0,n.useRef)(0),l=(0,n.useRef)(null),u=(0,n.useRef)([]),d=(0,n.useRef)(),h=(0,n.useRef)(),f=(0,n.useRef)(e),m=(0,n.useRef)(!0);f.current=e;var x="undefined"!=typeof window,p=!t&&0!==t&&x;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var v=!!(r=r||{}).leading,y=!("trailing"in r)||!!r.trailing,g="maxWait"in r,b="debounceOnServer"in r&&!!r.debounceOnServer,w=g?Math.max(+r.maxWait||0,t):null;return(0,n.useEffect)(function(){return m.current=!0,function(){m.current=!1}},[]),(0,n.useMemo)(function(){var e=function(e){var t=u.current,r=d.current;return u.current=d.current=null,a.current=e,o.current=o.current||e,h.current=f.current.apply(r,t)},r=function(e,t){p&&cancelAnimationFrame(l.current),l.current=p?requestAnimationFrame(e):setTimeout(e,t)},n=function(e){if(!m.current)return!1;var r=e-c.current;return!c.current||r>=t||r<0||g&&e-a.current>=w},j=function(t){return l.current=null,y&&u.current?e(t):(u.current=d.current=null,h.current)},_=function e(){var s=Date.now();if(v&&o.current===a.current&&N(),n(s))return j(s);if(m.current){var i=t-(s-c.current);r(e,g?Math.min(i,w-(s-a.current)):i)}},N=function(){s&&s({})},E=function(){if(x||b){var s=Date.now(),o=n(s);if(u.current=[].slice.call(arguments),d.current=i,c.current=s,o){if(!l.current&&m.current)return a.current=c.current,r(_,t),v?e(c.current):h.current;if(g)return r(_,t),e(c.current)}return l.current||r(_,t),h.current}};return E.cancel=function(){l.current&&(p?cancelAnimationFrame(l.current):clearTimeout(l.current)),a.current=0,u.current=c.current=d.current=l.current=null},E.isPending=function(){return!!l.current},E.flush=function(){return l.current?j(Date.now()):h.current},E},[v,g,t,w,y,p,x,b,s])}},5964:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(6508).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},6979:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var n=r(108);let s=(0,r(6508).A)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);var i=r(7013),c=r(7045),a=r(2649);function o(e){let{width:t,height:r,className:s}=e;return(0,n.jsx)("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",width:t||24,height:r||24,className:s,viewBox:"0 0 24 24",children:(0,n.jsx)("path",{fill:"currentColor",d:"M19.27 5.33C17.94 4.71 16.5 4.26 15 4a.1.1 0 0 0-.07.03c-.18.33-.39.76-.53 1.09a16.1 16.1 0 0 0-4.8 0c-.14-.34-.35-.76-.54-1.09c-.01-.02-.04-.03-.07-.03c-1.5.26-2.93.71-4.27 1.33c-.01 0-.02.01-.03.02c-2.72 4.07-3.47 8.03-3.1 11.95c0 .02.01.04.03.05c1.8 1.32 3.53 2.12 5.24 2.65c.03.01.06 0 .07-.02c.4-.55.76-1.13 1.07-1.74c.02-.04 0-.08-.04-.09c-.57-.22-1.11-.48-1.64-.78c-.04-.02-.04-.08-.01-.11c.11-.08.22-.17.33-.25c.02-.02.05-.02.07-.01c3.44 1.57 7.15 1.57 10.55 0c.02-.01.05-.01.07.01c.11.09.22.17.33.26c.04.03.04.09-.01.11c-.52.31-1.07.56-1.64.78c-.04.01-.05.06-.04.09c.32.61.68 1.19 1.07 1.74c.03.01.06.02.09.01c1.72-.53 3.45-1.33 5.25-2.65c.02-.01.03-.03.03-.05c.44-4.53-.73-8.46-3.1-11.95c-.01-.01-.02-.02-.04-.02M8.52 14.91c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.84 2.12-1.89 2.12m6.97 0c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.83 2.12-1.89 2.12"})})}function l(e){let{enableSharing:t,shareData:r,large:i}=e,l="undefined"!=typeof navigator&&"function"==typeof navigator.share,d=i?"h-5 w-5":"h-4 w-4 sm:h-5 sm:w-5";return(0,n.jsxs)("div",{className:"flex flex-wrap gap-2 sm:gap-4",children:[(0,n.jsx)(u,{href:"https://github.com/Sinytra",large:i,icon:(0,n.jsx)(a.A,{className:d})}),(0,n.jsx)(u,{href:"https://discord.sinytra.org",large:i,icon:(0,n.jsx)(o,{className:d})}),t&&l&&(0,n.jsxs)(c.$,{onClick:()=>{navigator.share?navigator.share(r).catch(e=>{console.error("Error sharing:",e)}):alert("Sharing is not supported on this browser.")},size:"sm",className:"\n flex h-8 w-8 items-center justify-center gap-2 sm:h-10 sm:w-auto sm:justify-start sm:px-4\n ",children:[(0,n.jsx)(s,{className:"h-5 w-5"}),(0,n.jsx)("span",{className:"hidden sm:inline",children:"Share"})]})]})}function u(e){let{href:t,icon:r,large:s,className:a}=e;return(0,n.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)(c.$,{variant:"outline",size:"icon",className:(0,i.cn)(a,s?"h-10 w-10":"\n h-8 w-8 sm:h-10 sm:w-10\n "),children:r})})}},7013:(e,t,r)=>{"use strict";r.d(t,{cn:()=>i});var n=r(2462),s=r(7679);function i(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.QP)((0,n.$)(t))}},7045:(e,t,r)=>{"use strict";r.d(t,{$:()=>l});var n=r(108),s=r(3616),i=r(5630),c=r(6512),a=r(7013);let o=(0,c.F)("\n inline-flex items-center justify-center rounded-md text-sm font-medium whitespace-nowrap ring-offset-background\n transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\n focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50\n ",{variants:{variant:{default:"border border-primary bg-primary text-primary hover:bg-secondary/90",destructive:"bg-secondary text-destructive hover:text-destructive/90",outline:"border border-quaternary bg-primary hover:bg-secondary hover:text-primary-alt",secondary:"bg-secondary text-secondary-alt hover:bg-secondary/80",ghost:"hover:bg-secondary hover:text-primary-alt",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),l=s.forwardRef((e,t)=>{let{className:r,variant:s,size:c,asChild:l=!1,...u}=e,d=l?i.DX:"button";return(0,n.jsx)(d,{className:(0,a.cn)(o({variant:s,size:c,className:r})),ref:t,...u})});l.displayName="Button"},7924:(e,t,r)=>{"use strict";r.d(t,{default:()=>c});var n=r(108),s=r(3616),i=r(7013);function c(e){let{unfix:t,children:r}=e,c=(0,s.useRef)(null),[a,o]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=()=>{o(window.scrollY>0)};return document.addEventListener("scroll",e),()=>document.removeEventListener("scroll",e)},[a]),(0,n.jsx)("header",{className:(0,i.cn)(!t&&"fixed left-0 w-[100vw]","z-50 border-b border-tertiary bg-primary-alt",!t&&a&&"\n motion-reduce:transition-none\n "),ref:c,children:r})}},7986:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(6508).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},9028:(e,t,r)=>{"use strict";r.d(t,{k:()=>a});var n=r(108),s=r(3616),i=r(2830),c=r.n(i);let a=(0,s.forwardRef)(function(e,t){let{prefetch:r=!1,...s}=e;return(0,n.jsx)(c(),{prefetch:r,...s,ref:t})})}},e=>{e.O(0,[947,482,830,531,116,323,625,639,126,364,25,372,284,358],()=>e(e.s=757)),_N_E=e.O()}]);