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A,EAAAA,YAAAA,EAAaJ,EAAKF,KACnB,GAECN,GAAY,CAACG,GAAmBF,EACX7B,CAAAA,EAAAA,EAAAA,IAAAA,EAAK,MAAO,CAAE,GAAGiC,GAAiB,CAAEnE,SAAU,CACnE,IACA8D,EAAWS,EAASD,EACrB,GAEIA,CACT,EACA9B,CAAAA,EAAMmC,WAAW,CAAG,eACpB,IAAIC,EAAgBpC,6FC1ChBqC,EAAQ,GAAAC,SAAAC,EAAA,EAAE,CACdpB,MAAA,CACAqB,QAAA,0BACAR,cAAA,2CACAF,IAAA,wEACAW,WAAA,CACA,WACA,MACA,UACA,SACA,SACA,eACA,SACA,UACA,YACA,eACA,aACA,gBACA,EAEAC,SAAA,CACAC,OAAA,CACAC,KAAA,GACAC,GAAA,GACAC,GAAA,GACAC,GAAA,GACAC,KAAA,EACA,EACAC,OAAA,CACAL,KAAA,CACAJ,QAAA,cACAV,IAAA,aACA,EACAe,GAAA,CACAL,QAAA,eACAV,IAAA,cACA,EACAgB,GAAA,CACAN,QAAA,gBACAV,IAAA,eACA,EACAiB,GAAA,CACAP,QAAA,eACAV,IAAA,cACA,CACA,EACAR,SAAA,CACA4B,KAAA,CACApB,IAAA,+CAEA,EACAqB,aAAA,CACAD,KAAA,CACAV,QAAA,sEACAV,IAAA,WACA,CACA,EACAsB,iBAAA,CACAF,KAAA,CACApB,IAAA,iBACA,EACAuB,MAAA,CACAvB,IAAA,0EACA,CACA,CACA,EACAwB,gBAAA,CACAX,OAAA,KACAM,OAAA,OACA3B,SAAA,GACAD,UAAA,GACA8B,aAAA,EACA,EACAI,iBAAA,CACA,CACAJ,aAAA,GACAC,iBAAA,GACAnB,MAAA,CACAO,QAAA,CAEA,qBACA,kBACA,iBACA,2BACA,uCACA,kBACA,4BACA,0BACA,0BACA,sBACA,iCACA,wBAEA,oBACA,iBACA,gBACA,cACA,oBACA,yBACA,CAEA,EACA,CACAgB,cAAA,CACA,CACArC,MAAA,+CACAwB,OAAA,OACAV,MAAA,cACA,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F,EAAAD,EAAAH,EAAA,EAMH,MALE,GAAA+C,EAAAC,CAAA,EAAmB,KACrBnB,GACAM,EAAAQ,IAEA,EAAG,CAAAd,EAAAc,EAAA,EACHhC,EAAA,SAAAuB,CACA,uEChDAe,EAAAC,CAAAC,MAAAA,WAAA,OAAAA,WAAAnI,QAAA,EAAuFoI,EAAAC,eAAe,CAAGD,EAAAtI,SAAS","sources":["webpack://_N_E/./node_modules/next/dist/api/link.js","webpack://_N_E/./src/components/CustomMarkdown.tsx","webpack://_N_E/./src/components/ShareButtons.tsx","webpack://_N_E/./src/components/icons.tsx","webpack://_N_E/./node_modules/@heroui/image/dist/chunk-3TCFMHK3.mjs","webpack://_N_E/./node_modules/@heroui/theme/dist/chunk-I6PH2IXK.mjs","webpack://_N_E/./node_modules/@heroui/image/dist/chunk-Q3TXVV4U.mjs","webpack://_N_E/./node_modules/@heroui/react-utils/dist/chunk-6UBKM7F3.mjs","webpack://_N_E/./node_modules/@heroui/use-image/dist/index.mjs","webpack://_N_E/./node_modules/@heroui/use-safe-layout-effect/dist/index.mjs"],"sourcesContent":["export { default } from \"../client/link\";\nexport * from \"../client/link\";\n\n//# sourceMappingURL=link.js.map","\"use client\"\n\nimport { ReactNode } from \"react\"\nimport MarkdownBase from \"react-markdown\"\nimport rehypeRaw from \"rehype-raw\"\nimport remarkBreaks from \"remark-breaks\"\nimport remarkGfm from \"remark-gfm\"\n\nimport type { ClassAttributes, HTMLAttributes } from \"react\"\nimport type { ExtraProps } from \"react-markdown\"\n\ntype Props = {\n children: ReactNode\n}\n\nconst H2 = ({\n node,\n children,\n}: ClassAttributes &\n HTMLAttributes &\n ExtraProps) => {\n const title =\n node && Boolean(node?.children[0]) && \"value\" in node.children[0]\n ? node.children[0].value\n : \"\"\n return (\n

\n \n {children}\n \n

\n )\n}\n\nexport const CustomMarkdown = ({ children }: Props) => {\n if (children === undefined || children === null) return <>a\n return (\n \n {children.toString()}\n \n )\n}\n","\"use client\"\n\nimport { Image } from \"@heroui/image\"\nimport Link from \"next/link\"\nimport React, { useEffect } from \"react\"\n\nimport { TwitterIcon } from \"./icons\"\n\ntype ShareButtonsProps = {\n shareUrl: string\n twitterText: string\n}\n\nconst ShareButtons: React.FC = ({\n shareUrl,\n twitterText,\n}) => {\n useEffect(() => {\n // はてなブックマークのスクリプトを動的に読み込む\n const hatenaScript = document.createElement(\"script\")\n hatenaScript.src = \"https://b.st-hatena.com/js/bookmark_button.js\"\n hatenaScript.async = true\n document.body.appendChild(hatenaScript)\n\n // コンポーネントがアンマウントされる時にスクリプトを削除\n return () => {\n document.body.removeChild(hatenaScript)\n }\n }, [])\n\n return (\n
\n \n \n \n\n \n \n \n
\n )\n}\n\nexport default ShareButtons\n","import * as React from \"react\"\n\nimport { IconSvgProps } from \"@/types\"\n\nexport const Logo: React.FC = ({\n size = 48,\n width,\n height,\n fill = \"currentColor\",\n ...props\n}) => (\n \n \n \n \n)\n\nexport const LogoWithText: React.FC = ({\n size = 227,\n width,\n height,\n ...props\n}) => (\n \n \n \n \n \n)\n\nexport const LogoAuth: React.FC = (props) => (\n \n \n \n \n)\n\nexport const DiscordIcon: React.FC = ({\n size = 24,\n width,\n height,\n ...props\n}) => {\n return (\n \n \n \n )\n}\n\nexport const TwitterIcon: React.FC = ({\n size = 24,\n width,\n height,\n ...props\n}) => {\n return (\n \n \n \n )\n}\n\nexport const GithubIcon: React.FC = ({\n size = 24,\n width,\n height,\n ...props\n}) => {\n return (\n \n \n \n )\n}\n\nexport const MoonFilledIcon = ({\n size = 24,\n width,\n height,\n ...props\n}: IconSvgProps) => (\n \n \n \n)\n\nexport const SunFilledIcon = ({\n size = 24,\n width,\n height,\n ...props\n}: IconSvgProps) => (\n \n \n \n \n \n \n)\n\nexport const XRoundIcon = ({\n size = 48,\n width,\n height,\n ...props\n}: IconSvgProps) => (\n \n \n \n \n \n \n \n \n \n \n \n)\n\nexport const DiscordRoundIcon = ({ ...props }: IconSvgProps) => (\n \n \n \n \n)\n\nexport const ArrowDownsLineIcon = ({ ...props }: IconSvgProps) => (\n \n \n \n)\n","\"use client\";\nimport {\n useImage\n} from \"./chunk-Q3TXVV4U.mjs\";\n\n// src/image.tsx\nimport { cloneElement } from \"react\";\nimport { forwardRef } from \"@heroui/system\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar Image = forwardRef((props, ref) => {\n const {\n Component,\n domRef,\n slots,\n classNames,\n isBlurred,\n isZoomed,\n fallbackSrc,\n removeWrapper,\n disableSkeleton,\n getImgProps,\n getWrapperProps,\n getBlurredImgProps\n } = useImage({\n ...props,\n ref\n });\n const img = /* @__PURE__ */ jsx(Component, { ref: domRef, ...getImgProps() });\n if (removeWrapper) {\n return img;\n }\n const zoomed = /* @__PURE__ */ jsx(\"div\", { className: slots.zoomedWrapper({ class: classNames == null ? void 0 : classNames.zoomedWrapper }), children: img });\n if (isBlurred) {\n return /* @__PURE__ */ jsxs(\"div\", { ...getWrapperProps(), children: [\n isZoomed ? zoomed : img,\n cloneElement(img, getBlurredImgProps())\n ] });\n }\n if (isZoomed || !disableSkeleton || fallbackSrc) {\n return /* @__PURE__ */ jsxs(\"div\", { ...getWrapperProps(), children: [\n \" \",\n isZoomed ? zoomed : img\n ] });\n }\n return img;\n});\nImage.displayName = \"HeroUI.Image\";\nvar image_default = Image;\n\nexport {\n image_default\n};\n","import {\n tv\n} from \"./chunk-UWE6H66T.mjs\";\n\n// src/components/image.ts\nvar image = tv({\n slots: {\n wrapper: \"relative shadow-black/5\",\n zoomedWrapper: \"relative overflow-hidden rounded-inherit\",\n img: \"relative z-10 opacity-0 shadow-black/5 data-[loaded=true]:opacity-100\",\n blurredImg: [\n \"absolute\",\n \"z-0\",\n \"inset-0\",\n \"w-full\",\n \"h-full\",\n \"object-cover\",\n \"filter\",\n \"blur-lg\",\n \"scale-105\",\n \"saturate-150\",\n \"opacity-30\",\n \"translate-y-1\"\n ]\n },\n variants: {\n radius: {\n none: {},\n sm: {},\n md: {},\n lg: {},\n full: {}\n },\n shadow: {\n none: {\n wrapper: \"shadow-none\",\n img: \"shadow-none\"\n },\n sm: {\n wrapper: \"shadow-small\",\n img: \"shadow-small\"\n },\n md: {\n wrapper: \"shadow-medium\",\n img: \"shadow-medium\"\n },\n lg: {\n wrapper: \"shadow-large\",\n img: \"shadow-large\"\n }\n },\n isZoomed: {\n true: {\n img: [\"object-cover\", \"transform\", \"hover:scale-125\"]\n }\n },\n showSkeleton: {\n true: {\n wrapper: [\"group\", \"relative\", \"overflow-hidden\", \"bg-content3 dark:bg-content2\"],\n img: \"opacity-0\"\n }\n },\n disableAnimation: {\n true: {\n img: \"transition-none\"\n },\n false: {\n img: \"transition-transform-opacity motion-reduce:transition-none !duration-300\"\n }\n }\n },\n defaultVariants: {\n radius: \"lg\",\n shadow: \"none\",\n isZoomed: false,\n isBlurred: false,\n showSkeleton: false\n },\n compoundVariants: [\n {\n showSkeleton: true,\n disableAnimation: false,\n class: {\n wrapper: [\n // before\n \"before:opacity-100\",\n \"before:absolute\",\n \"before:inset-0\",\n \"before:-translate-x-full\",\n \"before:animate-[shimmer_2s_infinite]\",\n \"before:border-t\",\n \"before:border-content4/30\",\n \"before:bg-gradient-to-r\",\n \"before:from-transparent\",\n \"before:via-content4\",\n \"dark:before:via-default-700/10\",\n \"before:to-transparent\",\n //after\n \"after:opacity-100\",\n \"after:absolute\",\n \"after:inset-0\",\n \"after:-z-10\",\n \"after:bg-content3\",\n \"dark:after:bg-content2\"\n ]\n }\n }\n ],\n compoundSlots: [\n {\n slots: [\"wrapper\", \"img\", \"blurredImg\", \"zoomedWrapper\"],\n radius: \"none\",\n class: \"rounded-none\"\n },\n {\n slots: [\"wrapper\", \"img\", \"blurredImg\", \"zoomedWrapper\"],\n radius: \"full\",\n class: \"rounded-full\"\n },\n {\n slots: [\"wrapper\", \"img\", \"blurredImg\", \"zoomedWrapper\"],\n radius: \"sm\",\n class: \"rounded-small\"\n },\n {\n slots: [\"wrapper\", \"img\", \"blurredImg\", \"zoomedWrapper\"],\n radius: \"md\",\n class: \"rounded-md\"\n },\n {\n slots: [\"wrapper\", \"img\", \"blurredImg\", \"zoomedWrapper\"],\n radius: \"lg\",\n class: \"rounded-large\"\n }\n ]\n});\n\nexport {\n image\n};\n","\"use client\";\n\n// src/use-image.ts\nimport { useCallback } from \"react\";\nimport { mapPropsVariants, useProviderContext } from \"@heroui/system\";\nimport { image } from \"@heroui/theme\";\nimport { useDOMRef } from \"@heroui/react-utils\";\nimport { clsx, dataAttr, objectToDeps } from \"@heroui/shared-utils\";\nimport { useImage as useImageBase } from \"@heroui/use-image\";\nimport { useMemo } from \"react\";\nfunction useImage(originalProps) {\n var _a, _b;\n const globalContext = useProviderContext();\n const [props, variantProps] = mapPropsVariants(originalProps, image.variantKeys);\n const {\n ref,\n as,\n src,\n className,\n classNames,\n loading,\n isBlurred,\n fallbackSrc,\n isLoading: isLoadingProp,\n disableSkeleton = !!fallbackSrc,\n removeWrapper = false,\n onError,\n onLoad,\n srcSet,\n sizes,\n crossOrigin,\n ...otherProps\n } = props;\n const imageStatus = useImageBase({\n src,\n loading,\n onError,\n onLoad,\n ignoreFallback: false,\n srcSet,\n sizes,\n crossOrigin\n });\n const disableAnimation = (_b = (_a = originalProps.disableAnimation) != null ? _a : globalContext == null ? void 0 : globalContext.disableAnimation) != null ? _b : false;\n const isImgLoaded = imageStatus === \"loaded\" && !isLoadingProp;\n const isLoading = imageStatus === \"loading\" || isLoadingProp;\n const isZoomed = originalProps.isZoomed;\n const Component = as || \"img\";\n const domRef = useDOMRef(ref);\n const { w, h } = useMemo(() => {\n return {\n w: props.width ? typeof props.width === \"number\" ? `${props.width}px` : props.width : \"fit-content\",\n h: props.height ? typeof props.height === \"number\" ? `${props.height}px` : props.height : \"auto\"\n };\n }, [props == null ? void 0 : props.width, props == null ? void 0 : props.height]);\n const showFallback = (!src || !isImgLoaded) && !!fallbackSrc;\n const showSkeleton = isLoading && !disableSkeleton;\n const slots = useMemo(\n () => image({\n ...variantProps,\n disableAnimation,\n showSkeleton\n }),\n [objectToDeps(variantProps), disableAnimation, showSkeleton]\n );\n const baseStyles = clsx(className, classNames == null ? void 0 : classNames.img);\n const getImgProps = (props2 = {}) => {\n const imgStyles = clsx(baseStyles, props2 == null ? void 0 : props2.className);\n return {\n src,\n ref: domRef,\n \"data-loaded\": dataAttr(isImgLoaded),\n className: slots.img({ class: imgStyles }),\n loading,\n srcSet,\n sizes,\n crossOrigin,\n ...otherProps,\n style: {\n // img has `height: auto` by default\n // passing the custom height here to override if it is specified\n ...(otherProps == null ? void 0 : otherProps.height) && { height: h },\n ...props2.style,\n ...otherProps.style\n }\n };\n };\n const getWrapperProps = useCallback(() => {\n const fallbackStyle = showFallback ? {\n backgroundImage: `url(${fallbackSrc})`\n } : {};\n return {\n className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }),\n style: {\n ...fallbackStyle,\n maxWidth: w\n }\n };\n }, [slots, showFallback, fallbackSrc, classNames == null ? void 0 : classNames.wrapper, w]);\n const getBlurredImgProps = useCallback(() => {\n return {\n src,\n \"aria-hidden\": dataAttr(true),\n className: slots.blurredImg({ class: classNames == null ? void 0 : classNames.blurredImg })\n };\n }, [slots, src, classNames == null ? void 0 : classNames.blurredImg]);\n return {\n Component,\n domRef,\n slots,\n classNames,\n isBlurred,\n disableSkeleton,\n fallbackSrc,\n removeWrapper,\n isZoomed,\n isLoading,\n getImgProps,\n getWrapperProps,\n getBlurredImgProps\n };\n}\n\nexport {\n useImage\n};\n","\"use client\";\n\n// src/use-is-hydrated.ts\nimport * as React from \"react\";\nfunction useIsHydrated() {\n const subscribe = () => () => {\n };\n return React.useSyncExternalStore(\n subscribe,\n () => true,\n () => false\n );\n}\n\nexport {\n useIsHydrated\n};\n","// src/index.ts\nimport { useRef, useState, useEffect, useCallback } from \"react\";\nimport { useIsHydrated } from \"@heroui/react-utils\";\nimport { useSafeLayoutEffect } from \"@heroui/use-safe-layout-effect\";\nfunction useImage(props = {}) {\n const { onLoad, onError, ignoreFallback, src, crossOrigin, srcSet, sizes, loading } = props;\n const isHydrated = useIsHydrated();\n const imageRef = useRef(isHydrated ? new Image() : null);\n const [status, setStatus] = useState(\"pending\");\n useEffect(() => {\n if (!imageRef.current) return;\n imageRef.current.onload = (event) => {\n flush();\n setStatus(\"loaded\");\n onLoad == null ? void 0 : onLoad(event);\n };\n imageRef.current.onerror = (error) => {\n flush();\n setStatus(\"failed\");\n onError == null ? void 0 : onError(error);\n };\n }, [imageRef.current]);\n const flush = () => {\n if (imageRef.current) {\n imageRef.current.onload = null;\n imageRef.current.onerror = null;\n imageRef.current = null;\n }\n };\n const load = useCallback(() => {\n if (!src) return \"pending\";\n if (ignoreFallback) return \"loaded\";\n const img = new Image();\n img.src = src;\n if (crossOrigin) img.crossOrigin = crossOrigin;\n if (srcSet) img.srcset = srcSet;\n if (sizes) img.sizes = sizes;\n if (loading) img.loading = loading;\n imageRef.current = img;\n if (img.complete && img.naturalWidth) {\n return \"loaded\";\n }\n return \"loading\";\n }, [src, crossOrigin, srcSet, sizes, onLoad, onError, loading]);\n useSafeLayoutEffect(() => {\n if (isHydrated) {\n setStatus(load());\n }\n }, [isHydrated, load]);\n return ignoreFallback ? \"loaded\" : status;\n}\nvar shouldShowFallbackImage = (status, fallbackStrategy) => status !== \"loaded\" && fallbackStrategy === \"beforeLoadOrError\" || status === \"failed\" && fallbackStrategy === \"onError\";\nexport {\n shouldShowFallbackImage,\n useImage\n};\n","// src/index.ts\nimport { useEffect, useLayoutEffect } from \"react\";\nvar useSafeLayoutEffect = Boolean(globalThis == null ? void 0 : globalThis.document) ? useLayoutEffect : useEffect;\nexport {\n useSafeLayoutEffect\n};\n"],"names":["H2","node","children","param","title","value","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","h2","a","id","href","concat","CustomMarkdown","Fragment","MarkdownBase","className","remarkPlugins","remarkGfm","remarkBreaks","rehypePlugins","rehypeRaw","components","toString","__webpack_exports__","shareUrl","twitterText","useEffect","hatenaScript","document","createElement","src","async","body","appendChild","removeChild","jsxs","div","Link","target","rel","TwitterIcon","Image","alt","width","height","Logo","size","fill","props","svg","viewBox","path","d","DiscordIcon","ArrowDownsLineIcon","xmlns","forwardRef","ref","Component","domRef","slots","classNames","isBlurred","isZoomed","fallbackSrc","removeWrapper","disableSkeleton","getImgProps","getWrapperProps","getBlurredImgProps","useImage","img","zoomed","zoomedWrapper","class","cloneElement","displayName","image_default","chunk_I6PH2IXK_image","chunk_UWE6H66T","tv","wrapper","blurredImg","variants","radius","none","sm","md","lg","full","shadow","true","showSkeleton","disableAnimation","false","defaultVariants","compoundVariants","compoundSlots","originalProps","_a","_b","globalContext","useProviderContext","variantProps","mapPropsVariants","image","variantKeys","as","loading","isLoading","isLoadingProp","onError","onLoad","srcSet","sizes","crossOrigin","otherProps","imageStatus","useImageBase","ignoreFallback","isImgLoaded","useDOMRef","w","h","useMemo","showFallback","objectToDeps","baseStyles","clsx","useCallback","fallbackStyle","backgroundImage","style","maxWidth","dataAttr","props2","imgStyles","isHydrated","React","imageRef","react","useRef","status","setStatus","useState","current","onload","flush","event","onerror","error","load","srcset","complete","naturalWidth","dist","G","useSafeLayoutEffect","Boolean","globalThis","react__WEBPACK_IMPORTED_MODULE_0__","useLayoutEffect"],"sourceRoot":""}