!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="05edc47f-3eb1-421c-9701-ea1eff28ac9a",e._sentryDebugIdIdentifier="sentry-dbid-05edc47f-3eb1-421c-9701-ea1eff28ac9a")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[10607,46621],{6984:function(e,t,i){"use strict";i.d(t,{V:function(){return s}});let s={bannerListSectionClick:"banner_list_section_click",bannerCarouselSectionClick:"banner_carousel_section_click",topicCarouselSectionClick:"topic_carousel_section_click",chatCarouselSectionClick:"chat_carousel_section_click",storeCarouselSectionClick:"store_carousel_section_click",liveStreamingCarouselSectionClick:"live_streaming_carousel_section_click",homePostCarouselItemClick:"home_post_carousel_item_click",homePostCardCarouselItemClick:"home_post_card_carousel_item_click",homeChatCarouselSectionListClick:"home_chat_carousel_section_list_click",postTileSectionItemClick:"post_tile_section_item_click",postSpotlightSectionItemClick:"post_spotlight_section_item_click",eventCarouselSectionItemClick:"event_carousel_section_item_click",eventCarouselItemClick:"event_carousel_on_post_template_item_click"}},14802:function(e,t,i){"use strict";i.d(t,{HQ:function(){return N},ZY:function(){return _},l4:function(){return k}});var s=i(34223),n=i(95551),r=i(63940),a=i(74655),o=i(3398),l=i(36918),c=i(9249),d=i(96030),u=i(1167),m=i(2363),p=i(6984),h=i(92749),x=i(28136),g=i(70517),f=i(51479),v=i(4954),j=i(72644),b=i(31746),y=i(48931),C=i.n(y);let _=(0,v.BX)(`
  fragment BannerCarouselItemFragment on Banner {
    id
    image
    onClick {
      url
    }
  }
`),N=(0,v.BX)(`
    fragment BannerCarouselSectionFragment on BannerSection {
      id
      title
      bannerDescription: description
      items {
        id
        ...BannerCarouselItemFragment
      }
    }
  `,[_]),k=e=>{let{section:t,sectionIndex:i,useNewDesign:x}=e,v=(0,j.vz)(N,t),y=v.items.length,C=v.items.slice(0,5),{asPath:_,query:k,push:R}=(0,u.useRouter)(),S=(0,m.useCallback)(e=>()=>{(0,b.$)(p.V.bannerCarouselSectionClick,{target_url:e,url:_,...k})},[_,k]),I=(0,m.useCallback)(e=>{e.stopPropagation()},[]),M=(0,m.useCallback)(async()=>{await R(f.V.banner_list._section_id(v.id).$url())},[R,v.id]);return 0===C.length?null:(0,s.jsxs)("div",{onTouchStart:I,children:[x?(0,s.jsx)(a.A,{variant:"large",layout:"iconButton",title:v.title,subText:v.bannerDescription??"",trailing:{onClick:M}}):(0,s.jsxs)(o.D,{children:[(0,s.jsx)(l.M,{children:(0,s.jsx)("div",{className:"flex flex-col justify-items-start",children:(0,s.jsx)(n.Z,{variant:"subtitleLg",className:"truncate",children:v.title})})}),y>5&&(0,s.jsx)(c.h,{children:(0,s.jsx)(g.r,{href:f.V.banner_list._section_id(v.id).$url(),children:(0,s.jsx)(r.C,{className:"ml-4 text-secondary",size:"small"})})})]}),(0,s.jsx)(h.l,{className:(0,d.Z)("px-16 py-8 pb-16",x&&"bg-surface-plain pb-20 pt-4"),children:C.map((e,t)=>(0,s.jsx)("li",{className:"mr-12",children:(0,s.jsx)(w,{item:e,onClick:S,priority:5>Number(i)&&t<3})},`navigate-section-${e.id}`))})]})},w=e=>{let{item:t,onClick:i,priority:n}=e,r=(0,j.vz)(_,t),a=(0,m.useMemo)(()=>(0,s.jsxs)("div",{className:(0,d.Z)("relative aspect-horizontal-image cursor-pointer",C().item),children:[(0,s.jsx)(x.E,{src:r.image,alt:"banner-image",fill:!0,sizes:"50vw, (max-width: 1020px): 33vw",rounded:"md",className:"aspect-horizontal-image",priority:n}),(0,s.jsx)("div",{className:"absolute inset-0 rounded-md hover:bg-overlay-subtle"})]}),[r.image,n]),o=r.onClick?.url;return o?(0,s.jsx)(g.r,{href:o,onClick:i(o),children:a}):a}},53476:function(e,t,i){"use strict";i.d(t,{UR:function(){return tv},Pn:function(){return tf}});var s=i(34223),n=i(96030),r=i(33444),a=i.n(r),o=i(14802),l=i(95551),c=i(74655),d=i(34930),u=i(1167),m=i(2363),p=i(6984),h=i(92749),x=i(28136),g=i(70517),f=i(51479),v=i(4954),j=i(72644),b=i(31746),y=i(93203),C=i(36939),_=i.n(C);let N=(0,v.BX)(`
  fragment EventCarouselSectionItemFragment on Event {
    id
    title
    eventImageUrl: imageUrl # NOTE: Fields "items" conflict because subfields "imageUrl" conflict because they return conflicting types "String" and "String!"
    startAt
    endAt
    linkUrl
  }
`),k=(0,v.BX)(`
    fragment EventCarouselSectionFragment on EventCarouselSection {
      title
      description
      items {
        id
        ...EventCarouselSectionItemFragment
      }
    }
  `,[N]),w=e=>{let{data:t,sectionIndex:i}=e,{items:n,title:r,description:a}=(0,j.vz)(k,t),{push:o,asPath:l,query:d}=(0,u.useRouter)(),x=(0,m.useCallback)(e=>t=>{(0,b.$)(p.V.eventCarouselSectionItemClick,{index:e,eventId:t,...d,fromUrl:l})},[l,d]),g=(0,m.useCallback)(async()=>{await o(f.V.events.$url())},[o]);return 0===n.length?null:(0,s.jsxs)("div",{children:[(0,s.jsx)(c.A,{variant:"large",layout:"iconButton",title:r,subText:a??"",trailing:{onClick:g}}),(0,s.jsx)(h.l,{className:"p-16 pt-0",children:n.map((e,t)=>(0,s.jsx)("li",{className:"mr-12",children:(0,s.jsx)(R,{item:e,onClick:()=>x(t)(e.id),priority:i<5&&t<4})},`event-section-${e.id}`))})]})},R=e=>{let{item:t,onClick:i,priority:r}=e,{t:a}=(0,d.Z)("shared"),o=(0,j.vz)(N,t);return(0,s.jsx)(g.r,{href:o.linkUrl??"",onClick:i,children:(0,s.jsxs)("div",{className:(0,n.Z)(_().item,"flex h-80 gap-12 overflow-hidden rounded-md bg-object-neutral"),children:[(0,s.jsx)(x.E,{className:"shrink-0",src:o.eventImageUrl,alt:o.title,width:142,height:80,priority:r}),(0,s.jsxs)("div",{className:"flex flex-col justify-center gap-4 py-12 pr-16",children:[(0,s.jsx)(l.Z,{variant:"subtitleSm",className:"line-clamp-2",children:o.title}),(0,s.jsx)(l.Z,{variant:"bodySm",color:"accent",className:"truncate",children:`${a("{{endAt}}まで",{endAt:(0,y.vc)(a)(o.endAt,"PLAIN_DATE")})}`})]})]})})};var S=i(98376),I=i(57799),M=i(50344),P=i(44976);let T=(0,v.BX)(`
  fragment CircularProgressbarFragment on OnboardingMissionStatus {
    id
    isCompleted
    totalMissionCount
    completeMissionCount
  }
`),Z=e=>{let{data:t}=e,i=(0,j.vz)(T,t),n=(0,m.useMemo)(()=>i?.completeMissionCount==null||null==i.totalMissionCount?0:i.completeMissionCount/i.totalMissionCount,[i]),r=(0,m.useMemo)(()=>({hidden:{pathLength:0,opacity:0},visible:()=>({pathLength:n,opacity:1,transition:{pathLength:{delay:.5,type:"spring",duration:1.5,bounce:0},opacity:{delay:.5,duration:.01}}})}),[n]),a=(0,m.useMemo)(()=>Math.floor(100*n),[n]);return(0,s.jsxs)("div",{className:"relative my-auto w-fit",children:[(0,s.jsxs)(P.E.svg,{width:"82",height:"82",viewBox:"0 0 82 82",initial:"hidden",animate:"visible",style:{rotate:"-90deg"},children:[(0,s.jsx)("circle",{cx:"41",cy:"41",r:"36",fill:"#FFFFFF",strokeWidth:"5px",className:"stroke-current text-disabled"}),(0,s.jsx)(P.E.circle,{cx:"41",cy:"41",r:"36",variants:r,custom:1,style:{strokeWidth:"5px",strokeLinecap:n?"round":"initial",fill:"none"},className:"stroke-current text-accent"},n)]}),(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:i?.isCompleted?(0,s.jsx)(l.Z,{variant:"headingXl",color:"accent",children:"CLEAR"}):(0,s.jsxs)("div",{className:"flex items-baseline",children:[(0,s.jsx)(l.Z,{variant:"heading3xl",color:"accent",children:a}),(0,s.jsx)(l.Z,{variant:"subtitleLg",color:"accent",children:"%"})]})})]})};var O=i(75676),L=i(60868);let E=(0,v.BX)(`
  fragment OnboardingMissionItemFragment on MissionBase {
    id
    name
    routingURL
    reward {
      ... on BaseNFT {
        id
      }
      ... on MissionRewardCoin {
        amount
      }
    }
  }
`),B=e=>{let{data:t}=e,i=(0,j.vz)(E,t),{push:n}=(0,u.useRouter)(),{t:r}=(0,d.Z)("features/mission");if(!i)return null;let{routingURL:a,reward:o,name:c}=i;return(0,s.jsxs)("div",{className:"flex grow items-center justify-between rounded-lg border border-accent bg-surface-plain px-16 py-12",children:[(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)(l.Z,{variant:"bodyMd",children:c}),(0,s.jsxs)("div",{className:"mt-4 flex items-center gap-2",children:[(0,s.jsxs)(l.Z,{variant:"bodySm",color:"tertiary",children:[r("報酬"),"："]}),o?.__typename==="MissionRewardCoin"&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(O.t,{size:"small"}),(0,s.jsx)(l.Z,{variant:"subtitleSm",children:o?.amount})]}),o?.__typename==="BaseNFT"&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(L.t,{size:"small",className:"text-object-accent"}),(0,s.jsx)(l.Z,{variant:"subtitleSm",children:"\xd71"})]})]})]}),a&&(0,s.jsx)(I.z,{type:"button",variant:"primary",size:"small",rounded:!0,onClick:()=>n(a),children:r("トライ")})]})};var A=i(44444),z=i(71904);let $=(0,v.BX)(`
    fragment OnboardingMissionFragment on OnboardingMissionStatus {
      id
      isCompleted
      isReceivedAllRewards
      completeMissionCount
      ...CircularProgressbarFragment
      nextMission {
        ... on PostMission {
          id
          description
          ...OnboardingMissionItemFragment
        }
        ... on QuizCreateMission {
          id
          description
          ...OnboardingMissionItemFragment
        }
        ... on PushNotificationMission {
          id
          description
          ...OnboardingMissionItemFragment
        }
        ... on PwaMission {
          id
          description
          ...OnboardingMissionItemFragment
        }
        ... on CommunityRegistrationMission {
          id
          description
          ...OnboardingMissionItemFragment
        }
        ... on LoggedInMission {
          id
          description
          ...OnboardingMissionItemFragment
        }
        ... on PostLikeMission {
          id
          description
          ...OnboardingMissionItemFragment
        }
        ... on ChatRoomPostMission {
          id
          description
          ...OnboardingMissionItemFragment
        }
        ... on QuizAnswerMission {
          id
          description
          ...OnboardingMissionItemFragment
        }
        ... on CommentMission {
          id
          description
          ...OnboardingMissionItemFragment
        }
        ... on UserFollowMission {
          id
          description
          ...OnboardingMissionItemFragment
        }
        ... on NftCollectionMission {
          id
          description
          ...OnboardingMissionItemFragment
        }
        ... on TalkToAvatarMission {
          id
          description
          ...OnboardingMissionItemFragment
        }
        ... on CasualGamePlayMission {
          id
          description
          ...OnboardingMissionItemFragment
        }
        ... on NftGetMission {
          id
          description
          ...OnboardingMissionItemFragment
        }
        ... on ProbabilityTreasureMachineDrawMission {
          id
          description
          ...OnboardingMissionItemFragment
        }
        ... on PassiveCommentMission {
          id
          description
          ...OnboardingMissionItemFragment
        }
        ... on PassivePostLikeMission {
          id
          description
          ...OnboardingMissionItemFragment
        }
      }
    }
  `,[T,E]),F=e=>{let{data:t,refetch:i}=e,n=(0,j.vz)($,t),{t:r}=(0,d.Z)("features/mission"),{push:a}=(0,u.useRouter)(),o=(0,m.useRef)(null),{isIntersecting:c}=(0,A.i)(o);(0,m.useEffect)(()=>{c&&i()},[c,i]);let{value:p,setValue:h}=(0,z._)({key:"IS_ONBOARDING_MISSION_TOOLTIP_SHOWN"}),x=(0,m.useCallback)(()=>{h(!0)},[h]);return(0,m.useEffect)(()=>(window.addEventListener("beforeunload",()=>{x()}),()=>{window.removeEventListener("beforeunload",x)}),[x]),(0,s.jsxs)("div",{ref:o,className:"flex flex-col gap-8 rounded-lg bg-surface-info p-16",children:[(0,s.jsxs)("div",{className:"grid gap-4",children:[(0,s.jsx)(l.Z,{variant:"subtitleLg",children:r("ウェルカムミッション")}),n.isCompleted?(0,s.jsx)(l.Z,{variant:"bodyMd",color:"primary",children:r("すべてのミッションをクリアしました。未受け取りの報酬をすべて受け取りましょう！")}):(0,s.jsx)(l.Z,{variant:"bodySm",children:n?.nextMission?.description})]}),(0,s.jsxs)("div",{className:"mb-8 flex gap-16",children:[(0,s.jsx)(Z,{data:n}),(0,s.jsx)("div",{className:"flex grow items-center lg:max-w-343",children:n.isCompleted?(0,s.jsxs)("div",{className:"flex max-h-64 grow items-center justify-between rounded-lg border border-accent bg-surface-plain px-16 py-12",children:[(0,s.jsx)(l.Z,{variant:"bodySm",color:"info",children:r("報酬を受け取る")}),(0,s.jsx)(I.z,{variant:"primary",size:"small",onClick:()=>a(f.V.missions.$url()),rounded:!0,children:r("受取")})]}):(0,s.jsx)(M.u,{text:r("「ウェルカムミッション」にトライしてみましょう！"),color:"accent",disabled:p??!1,onChange:x,initialOpen:!0,children:(0,s.jsx)("div",{className:"flex grow items-center",children:(0,s.jsx)(B,{data:n.nextMission})})})})]}),n.isCompleted||n?.isReceivedAllRewards||!n.completeMissionCount?null:(0,s.jsx)(g.r,{href:f.V.missions.$url(),children:(0,s.jsx)(l.Z,{variant:"bodySm",color:"info",children:r("未受け取りの報酬を受け取る")})})]})};var U=i(86415),V=i(13120);let D=(0,v.BX)(`
    query OnboardingMissionSectionQuery($userId: String!) {
      user(userId: $userId) {
        id
        onboardingMissionStatus {
          isCompleted
          isReceivedAllRewards
          ...OnboardingMissionFragment
        }
      }
    }
  `,[$]),X=()=>(0,s.jsx)("div",{className:"p-16",children:(0,s.jsx)(V.p,{height:165,radius:"lg"})}),q=()=>{let e=(0,U.II)(),t=(0,U.WA)(),{data:i,refetch:n,loading:r}=(0,S.a)(D,{variables:{userId:e??""},skip:!e});return r||!t?(0,s.jsx)(X,{}):!i?.user?.onboardingMissionStatus||i.user.onboardingMissionStatus.isCompleted&&i.user.onboardingMissionStatus.isReceivedAllRewards?null:(0,s.jsx)("div",{className:"p-16",children:(0,s.jsx)(F,{data:i.user.onboardingMissionStatus,refetch:n})})};var H=i(89454);let K=(0,v.BX)(`
    fragment PostCardCarouselSectionFragment on PostCardCarouselSection {
      title
      description
      topicId
      items {
        id
        ...PostMediaCardFragment
      }
    }
  `,[H.Z]),W=e=>{let{data:t,sectionIndex:i}=e,n=(0,u.useRouter)(),r=(0,j.vz)(K,t),a=(0,m.useCallback)(e=>t=>{(0,b.$)(p.V.homePostCardCarouselItemClick,{index:e,topicId:r.topicId??"",postId:t??"",...n.query,fromUrl:n.asPath,type:"home"})},[n.asPath,n.query,r.topicId]),o=(0,m.useCallback)(async()=>{await n.push(f.V.topics._topic_id(r.topicId).$url())},[n,r.topicId]);return 0===r.items.length?null:(0,s.jsxs)("div",{children:[(0,s.jsx)(c.A,{variant:"large",layout:"iconButton",title:r.title,subText:r.description??"",trailing:{onClick:o}}),(0,s.jsx)(h.l,{className:"bg-surface-plain p-16 pt-8",children:r.items.map((e,t)=>(0,s.jsx)("li",{className:"mr-12 lg:mr-24",children:(0,s.jsx)(H.V,{onClick:a(t),data:e,type:"horizontal-rectangle",priority:i<5&&t<4})},`post-carousel-${e.id}`))})]})};var G=i(51207),Y=i.n(G);let Q=(0,v.BX)(`
  fragment PostCarouselSectionV2Fragment on PostCarouselSection {
    title
    description
    topicId
    items {
      id
      posterId
      title
      images
    }
  }
`),J=(0,m.memo)(e=>{let{data:t,sectionIndex:i}=e,{push:r,query:a,asPath:o}=(0,u.useRouter)(),l=(0,j.vz)(Q,t),d=(0,m.useCallback)(e=>t=>{(0,b.$)(p.V.homePostCarouselItemClick,{index:e,topicId:l.topicId,postId:t??"",...a,fromUrl:o})},[o,a,l.topicId]),v=(0,m.useCallback)(async()=>{await r(f.V.topics._topic_id(l.topicId).$url())},[r,l.topicId]);return 0===l.items.length?null:(0,s.jsxs)("div",{children:[(0,s.jsx)(c.A,{variant:"large",layout:"iconButton",title:l.title,subText:l.description??"",trailing:{onClick:v}}),(0,s.jsx)(h.l,{className:"bg-surface-plain p-16 pt-8",children:l.items.map((e,t)=>(0,s.jsx)("li",{className:"mr-12 lg:mr-24",children:(0,s.jsx)(g.r,{href:f.V.posts._post_id(e.id).$url(),onClick:()=>d(t)(e.id),children:(0,s.jsx)("div",{className:(0,n.Z)("relative aspect-horizontal-image",Y().item),children:(0,s.jsx)(x.E,{src:e.images[0],alt:e.title,fill:!0,sizes:"50vw, (max-width: 1020px): 33vw",rounded:"md",className:"aspect-horizontal-image",priority:i<5&&t<4})})})},`post-carousel-${e.id}`))})]})});var ee=i(26390),et=i(21170),ei=i(5283),es=i(11224),en=i(86753),er=i(34108),ea=i(49294),eo=i(16964),el=i(8966),ec=i.n(el);let ed=(0,v.BX)(`
  fragment PostSpotlightSectionItemFragment on Post {
    id
    title
    description
    likesTotalCount
    images
    poster {
      id
      displayName
      photoURL
    }
  }
`),eu=e=>{let{data:t,sectionTitle:i,desktop:r}=e,a=(0,j.vz)(ed,t);return(0,s.jsxs)("div",{className:(0,n.Z)(ec()["spot-item"],"relative w-full overflow-hidden"),children:[(0,s.jsx)(x.E,{fill:!0,src:a.images[0],alt:a.title,sizes:"512px",priority:!0,className:(0,n.Z)(ec().image,"w-full object-cover transition-transform lg:rounded-lg")}),(0,s.jsx)("div",{className:(0,n.Z)(ec().shadow,"absolute top-0 size-full")}),(0,s.jsx)("div",{className:(0,n.Z)(ec()["section-item"],"absolute flex size-full flex-col justify-end px-12 lg:py-12"),children:(0,s.jsx)("div",{className:"flex gap-12",children:(0,s.jsxs)("div",{className:"flex w-full grow flex-col overflow-x-hidden",children:[(0,s.jsx)("div",{className:"w-fit rounded bg-object-white px-4 py-2",children:(0,s.jsx)(l.Z,{variant:"captionXs",color:"primary-black",children:i})}),(0,s.jsx)(l.Z,{variant:r?"subtitleMd":"headingXl",className:"truncate pb-4 lg:py-4",color:"primary-white",children:a.title}),(0,s.jsxs)("div",{className:"flex items-center gap-16",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(ea.I,{size:"xxsmall",className:(0,n.Z)(ec()["text-secondary"])}),(0,s.jsx)(l.Z,{variant:"bodySm",className:(0,n.Z)(ec()["text-secondary"]),children:a.likesTotalCount})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 overflow-x-hidden",children:[(0,s.jsx)(eo.H,{size:"xxsmall",className:(0,n.Z)(ec()["text-secondary"])}),(0,s.jsx)(l.Z,{variant:"bodySm",className:(0,n.Z)(ec()["text-secondary"],"truncate"),children:a.poster?.displayName})]})]})]})})})]},`SpotlightItem-${a.id}`)},em=(e,t)=>{if(!(t>=0&&Number.isInteger(t)))throw Error("perN must be natural number");let i=[];for(let s=0;s<e.length;s+=t)i.push(e.slice(s,s+t));return i};var ep=i(14640),eh=i(12772),ex=i(82654),eg=i.n(ex),ef=i(35260);let ev=()=>!!ef.env.IS_SCREENSHOT,ej=(0,er.bH)((0,er.p6)(es.ZP)),eb=(0,v.BX)(`
    fragment PostSpotlightSectionFragment on PostSpotlightSection {
      title
      description
      items {
        id
        ...PostSpotlightSectionItemFragment
      }
    }
  `,[ed]),ey={initial:{opacity:0},animate:{opacity:.4},exit:{opacity:0},transition:{duration:.3,ease:"linear"}},eC=(0,m.memo)(e=>{let{maxSize:t,activeIndex:i}=e,r=(i%t+t)%t;return(0,s.jsx)("div",{className:(0,n.Z)("flex items-center",eg()["dots-container"]),children:(0,ep.w)(t).map(e=>(0,s.jsx)("div",{className:(0,n.Z)("rounded-lg bg-object-accent",e===r?eg()["active-dot"]:"size-4 bg-object-secondary")},`banner-dots/${e}`))})}),e_=e=>{let{data:t}=e;return(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"hidden lg:block",children:(0,s.jsx)(eN,{data:t})}),(0,s.jsx)("div",{className:"lg:hidden",children:(0,s.jsx)(ek,{data:t})})]})},eN=e=>{let{data:t}=e,[i,r]=(0,m.useState)(0),[a,o]=(0,m.useState)(!1),l=(0,m.useCallback)(()=>{a||o(!0)},[a]),c=(0,m.useCallback)(()=>{o(!1)},[]),{query:d,asPath:h}=(0,u.useRouter)(),x=(0,m.useCallback)(e=>t=>{(0,b.$)(p.V.postSpotlightSectionItemClick,{index:e,postId:t,...d,fromUrl:h})},[h,d]),v=(0,j.vz)(eb,t),y=em(v.items,3),C=(0,m.useCallback)(e=>{let{index:t,key:i}=e,r=y[(0,en.mod)(t,y.length)];return r?(0,s.jsx)("div",{className:"grid grid-cols-3 gap-12",children:r.map(e=>(0,s.jsx)(g.r,{href:f.V.posts._post_id(e.id).$url(),onClick:()=>x(t)(e.id),className:(0,n.Z)(a?"pointer-events-none":"pointer-events-auto","flex-1 overflow-hidden rounded-lg"),children:(0,s.jsx)(eu,{data:e,desktop:!0,sectionTitle:v.title},e.id)},e.id))},i):null},[x,y,v.title,a]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"group relative",children:[(0,s.jsx)(ej,{enableMouseEvents:!0,index:i,onChangeIndex:r,slideRenderer:C,onTouchStart:eh.U,springConfig:ew,onSwitching:l,onTransitionEnd:c,autoPlay:!0,interval:8e3,className:"relative",disabled:ev()}),(0,s.jsx)("button",{type:"button","aria-label":"previous",onClick:()=>r(i-1),className:(0,n.Z)(eg()["left-hover"],"absolute left-0 top-0 grid h-full w-64 place-content-center opacity-0 group-hover:opacity-100"),children:(0,s.jsx)(ee.Z,{className:(0,n.Z)(eg().transition,"text-primary-white opacity-0 group-hover:opacity-100")})}),(0,s.jsx)("button",{type:"button","aria-label":"next",onClick:()=>r(i+1),className:(0,n.Z)(eg()["right-hover"],"absolute right-0 top-0 grid h-full w-64 place-content-center opacity-0 group-hover:opacity-100"),children:(0,s.jsx)(et.G,{className:(0,n.Z)(eg().transition,"text-primary-white opacity-0 group-hover:opacity-100")})})]}),y.length>0&&(0,s.jsx)("div",{className:"grid w-full place-items-center pb-24 pt-16 empty:p-0",children:(0,s.jsx)(eC,{maxSize:y.length,activeIndex:i})})]})},ek=e=>{let{data:t}=e,[i,n]=(0,m.useState)(0),r=(0,j.vz)(eb,t),a=r.items,{query:o,asPath:l}=(0,u.useRouter)(),c=(0,m.useCallback)(e=>t=>{(0,b.$)(p.V.postSpotlightSectionItemClick,{index:e,postId:t,...o,fromUrl:l})},[l,o]),d=(0,m.useCallback)(e=>{let{index:t,key:n}=e,o=a[(0,en.mod)(t,a.length)],l=t===i;return o?(0,s.jsx)("div",{className:"relative",children:(0,s.jsxs)(g.r,{href:f.V.posts._post_id(o.id).$url(),onClick:()=>c(t)(o.id),children:[(0,s.jsx)(eu,{data:o,sectionTitle:r.title},o.id),(0,s.jsx)(ei.M,{initial:!1,children:!l&&(0,s.jsx)(P.E.div,{className:"absolute inset-0 rounded-md bg-overlay",...ey})})]})},n):null},[i,c,a,r.title]);return(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(ej,{enableMouseEvents:!0,index:i,onChangeIndex:n,slideRenderer:d,onTouchEnd:eh.U,springConfig:eR,autoPlay:!0,interval:4e3}),(0,s.jsx)("div",{className:"absolute bottom-16 flex w-full justify-center lg:hidden",children:(0,s.jsx)(eC,{maxSize:a.length,activeIndex:i})})]})},ew={duration:"0.5s",easeFunction:"linear",delay:"0s"},eR={duration:"0.15s",easeFunction:"linear",delay:"0s"};var eS=i(3316),eI=i(16839),eM=i(49238),eP=i(9249),eT=i(33800),eZ=i(82574);let eO=(0,v.BX)(`
  fragment PostMediaCardV2Fragment on Post {
    id
    title
    images
    likesTotalCount
    commentsTotalCount
    poster {
      id
      photoURL
      displayName
    }
    defaultImage
    isSpoiler
    spoilerReason
  }
`),eL=e=>{let{data:t,onClick:i}=e,n=(0,j.vz)(eO,t),r=(0,m.useCallback)(()=>{i?.(n.id)},[n.id,i]),a=n.images.length-1;return(0,s.jsxs)("div",{className:"w-full overflow-hidden transition-colors",children:[(0,s.jsxs)(g.r,{className:"group flex w-full flex-col justify-start gap-8",onClick:r,href:f.V.posts._post_id(n.id).$url(),children:[(0,s.jsx)("div",{className:"overflow-hidden rounded-lg",children:(0,s.jsx)(eT.d,{isSpoiler:n.isSpoiler,message:n.spoilerReason??void 0,posterUserId:n.poster?.id,type:"responsive",disableFlag:!0,children:(0,s.jsxs)("div",{className:"relative aspect-square",children:[(0,s.jsx)(x.E,{src:n.images[0]??n.defaultImage,alt:n.title,fill:!0,className:"rounded-lg transition-transform group-hover:scale-110 group-hover:rounded-lg"}),a>0&&(0,s.jsxs)("span",{className:"absolute right-8 top-8 inline-flex items-center gap-4 rounded-lg bg-overlay px-4 py-2 text-primary-white",children:[(0,s.jsx)(eS.d,{size:"xxsmall"}),(0,s.jsx)(l.Z,{variant:"captionXs",color:"primary-white",children:a})]})]})})}),(0,s.jsx)(l.Z,{variant:"subtitleMd",className:"mb-auto line-clamp-2 min-h-40 group-hover:text-accent",color:"primary",children:n.title})]}),(0,s.jsxs)("div",{className:"mt-8 flex",children:[(0,s.jsx)("div",{className:"w-full overflow-hidden",children:(0,s.jsx)(g.r,{href:f.V.profile._user_id(n.poster?.id??"").$url(),children:(0,s.jsxs)("div",{className:"flex w-full grow items-center",children:[(0,s.jsx)(eZ.q,{src:n.poster?.photoURL??"",size:"mini",alt:n.poster?.displayName??""}),(0,s.jsx)(l.Z,{variant:"bodySm",color:"secondary",className:"ml-8 w-full truncate hover:text-accent",children:n.poster?.displayName})]})})}),(0,s.jsx)(g.r,{className:"flex items-center pl-8",onClick:r,href:f.V.posts._post_id(n.id).$url(),children:(0,s.jsxs)(eP.h,{children:[(0,s.jsx)(eI.G,{size:"xsmall",className:"mr-2 text-object-secondary"}),(0,s.jsx)(l.Z,{variant:"captionXs",color:"secondary",align:"center",children:n.commentsTotalCount}),(0,s.jsx)(eM.t,{size:"xsmall",className:"ml-8 mr-2 text-object-secondary"}),(0,s.jsx)(l.Z,{variant:"captionXs",color:"secondary",align:"center",children:n.likesTotalCount})]})})]})]})};var eE=i(5624),eB=i(37274),eA=i.n(eB);let ez=(0,v.BX)(`
    fragment PostTileSectionFragment on PostTileSection {
      title
      description
      topicId
      items {
        id
        title
        images
        poster {
          id
        }
        isSpoiler
        spoilerReason
        defaultImage
        ...PostMediaCardV2Fragment
      }
    }
  `,[eO]),e$=(0,m.memo)(e=>{let{section:t,sectionIndex:i}=e,{asPath:n,query:r,push:a}=(0,u.useRouter)(),o=(0,j.vz)(ez,t),l=o.items.slice(0,6),d=(0,m.useCallback)(e=>t=>{(0,b.$)(p.V.postTileSectionItemClick,{index:e,topicId:o.topicId,postId:t,...r,fromUrl:n})},[n,r,o.topicId]),h=(0,m.useCallback)(async()=>{await a(f.V.topics._topic_id(o.topicId).$url())},[a,o.topicId]),v=(0,m.useMemo)(()=>(0,eE.C)(o.description),[o.description]);return null===o.topicId||0===o.items.length?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"pb-16 lg:hidden",children:[(0,s.jsx)(c.A,{variant:"large",layout:"iconButton",title:o.title,subText:v??"",trailing:{onClick:h}}),(0,s.jsx)("div",{className:"grid grid-cols-3 grid-rows-2 gap-2 bg-surface-plain",children:l.map((e,t)=>(0,s.jsx)("div",{className:0===t?"col-span-2 row-span-2":"",children:(0,s.jsx)(g.r,{href:f.V.posts._post_id(e.id).$url(),onClick:()=>d(t)(e.id),children:(0,s.jsx)(eT.d,{isSpoiler:e.isSpoiler,message:e.spoilerReason??void 0,posterUserId:e.poster?.id,type:"responsive",disableFlag:!0,children:(0,s.jsx)("div",{className:"relative aspect-square",children:(0,s.jsx)(x.E,{src:e.images[0]??e.defaultImage,alt:e.title,fill:!0,sizes:"256px",priority:i<5&&t<4})})})})},`PostTileSection/${e.id}`))})]}),(0,s.jsx)(eF,{className:"hidden lg:block",section:t,handleClick:h,handleClickItem:d})]})}),eF=e=>{let{section:t,handleClick:i,handleClickItem:r,className:a}=e,o=(0,j.vz)(ez,t),l=(0,m.useMemo)(()=>(0,eE.C)(o.description),[o.description]);return(0,s.jsxs)("div",{className:a,children:[(0,s.jsx)(c.A,{variant:"large",layout:"iconButton",title:o.title,subText:l??"",trailing:{onClick:i}}),(0,s.jsx)("div",{className:"flex flex-wrap gap-24 bg-surface-plain px-16 pb-24 pt-8",children:o.items.map((e,t)=>(0,s.jsx)("div",{className:(0,n.Z)("grow",eA().item),children:(0,s.jsx)(eL,{onClick:r(t),data:e})},`post-carousel-${e.id}`))})]})};var eU=i(98256),eV=i(94448),eD=i(88849),eX=i(37896);let eq=(0,v.BX)(`
  query CharacterAgentSectionQuery($userId: String) {
    publiclyTalkableAgents(userId: $userId) {
      id
      name
      thumbnailImageUrl
    }
  }
`),eH=e=>{let{sectionIndex:t}=e,{t:i}=(0,d.Z)("features/community"),n=(0,U.II)()??null,r=(0,U.nu)(),a=(0,U.WA)(),o=(0,eX.so)(),l=(0,m.useCallback)(()=>{o({loginStep:"login"})},[o]),{data:u,error:p}=(0,S.a)(eq,{variables:{userId:n},skip:!a,fetchPolicy:"cache-and-network"});return p?null:a&&u?0===u.publiclyTalkableAgents.length?null:(0,s.jsxs)("div",{children:[(0,s.jsx)(c.A,{layout:"simple",variant:"large",title:i("フレンズ一覧")}),(0,s.jsx)(h.l,{className:"px-16 py-8 pb-16",children:u.publiclyTalkableAgents.map((e,i)=>(0,s.jsx)("li",{className:"mr-12",children:(0,s.jsx)(eK,{id:e.id,name:e.name,thumbnailImageUrl:e.thumbnailImageUrl,isLoggedIn:r,openLoginModal:l,priority:t<5&&i<4})},`character-agent-section-${e.id}`))})]}):(0,s.jsx)(eG,{})},eK=e=>{let{id:t,name:i,thumbnailImageUrl:n,isLoggedIn:r,openLoginModal:a,priority:o}=e,l=(0,m.useMemo)(()=>(0,s.jsx)(eV.P,{src:n,title:i,alt:i,type:"square",size:"large",priority:o}),[i,o,n]);return r?(0,s.jsx)(g.r,{prefetch:!0,href:f.V.character_agent.talk_room._character_agent_id(t).$url(),children:l}):(0,s.jsx)(eU.P,{onClick:a,children:l})},eW=()=>(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(V.p,{radius:"md",width:210,height:210}),(0,s.jsx)(eD.Q,{variant:"captionXs"})]}),eG=()=>(0,s.jsxs)("div",{className:"py-16",children:[(0,s.jsx)("div",{className:"mb-16 px-16",children:(0,s.jsx)(eD.Q,{variant:"bodyLg"})}),(0,s.jsx)(h.l,{className:(0,n.Z)("px-16"),children:(0,s.jsxs)("div",{className:"flex gap-12",children:[(0,s.jsx)(eW,{}),(0,s.jsx)(eW,{}),(0,s.jsx)(eW,{}),(0,s.jsx)(eW,{})]})})]});var eY=i(63940),eQ=i(80029),eJ=i(3398),e0=i(36918),e1=i(53918);let e2=e=>e1.q.getItem(e),e3=(e,t)=>{e1.q.setItem(e,t)},e4=e=>{e1.q.removeItem(e)},e6=(e,t)=>((0,m.useEffect)(()=>{if(!t?.current)return;let{current:i}=t,s=e2(e);s&&(i?.scroll(s??0,0),e4(e))},[e,t]),{saveScrollXPosition:(0,m.useCallback)(()=>{if(!t?.current)return;let{current:i}=t;e3(e,i.scrollLeft)},[t,e])});var e5=i(60242),e8=i.n(e5);let e7=(0,v.BX)(`
  fragment TopicCarouselSectionFragment on TopicSection {
    title
    items {
      id
      communityTopicLabel
      imageUrl
      postCount
    }
    hasNavigation
  }
`),e9=e=>{let{section:t,useNewDesign:i=!1,sectionIndex:r}=e,{t:a}=(0,d.Z)("features/community"),{saveScrollXPosition:o}=e6("TopicSection"),v=(0,j.vz)(e7,t),{asPath:y,query:C,push:_}=(0,u.useRouter)(),N=(0,m.useCallback)(e=>()=>{(0,b.$)(p.V.topicCarouselSectionClick,{topic_id:e,url:y,...C}),o()},[y,C,o]),k=(0,m.useMemo)(()=>em(v.items.slice(0,9),3),[v.items]),w=(0,m.useCallback)(async()=>{await _(f.V.topics.$url())},[_]);return 0===v.items.length?null:(0,s.jsxs)("div",{children:[i?(0,s.jsx)(c.A,{variant:"large",layout:"iconButton",title:v.title,trailing:{onClick:w}}):(0,s.jsxs)(eJ.D,{children:[(0,s.jsx)(e0.M,{children:(0,s.jsx)(l.Z,{variant:"subtitleLg",children:v.title})}),v.hasNavigation&&(0,s.jsx)(eP.h,{children:(0,s.jsx)(g.r,{className:"flex items-center",href:f.V.topics.$url(),children:(0,s.jsx)(eY.C,{className:"ml-4 text-secondary",size:"small"})})})]}),(0,s.jsx)(h.l,{className:"pb-16 pt-8",children:k.map((e,t)=>(0,s.jsx)("li",{className:(0,n.Z)("flex",e8()["topic-card"]),children:(0,s.jsx)("div",{className:(0,n.Z)("flex w-full flex-col gap-16 px-16",t>0&&"border-l-2 border-object-neutral"),children:e.map(e=>(0,s.jsx)(g.r,{href:f.V.topics._topic_id(e.id).$url(),onClick:N(e.id),className:"group",children:(0,s.jsxs)("div",{className:(0,n.Z)("flex gap-8"),children:[(0,s.jsx)("div",{className:"flex size-48 shrink-0 items-center justify-center overflow-hidden rounded-md bg-object-neutral",children:e.imageUrl?(0,s.jsx)(x.E,{src:e.imageUrl,width:48,height:48,alt:`${e.communityTopicLabel}-thumbnail`,priority:5>Number(r)&&t<3}):(0,s.jsx)(eQ.w,{width:"24px",height:"24px"})}),(0,s.jsxs)("div",{className:"flex flex-col justify-center overflow-hidden",children:[(0,s.jsx)(l.Z,{className:"truncate group-hover:text-interactive",variant:"subtitleMd",color:"primary",children:e.communityTopicLabel}),(0,s.jsx)(l.Z,{variant:"captionXs",color:"tertiary",children:a("{{postCount}} 投稿",{postCount:e.postCount})})]})]})},`topic-carousel-${e.id}`))})},`topic-carousel-col-${t}`))})]})};var te=i(46621),tt=i(66716),ti=i(75390),ts=i(8313),tn=i(41865),tr=i(64728),ta=i(3459);let to=a()(()=>Promise.all([i.e(95181),i.e(96985)]).then(i.bind(i,31262)).then(e=>e.ActivityBalanceAmountDialog),{loadableGenerated:{webpack:()=>[31262]}}),tl=a()(()=>i.e(53651).then(i.bind(i,53651)).then(e=>e.CommunityCoinHistoryDialog),{loadableGenerated:{webpack:()=>[53651]}}),tc=(0,v.BX)(`
    query UserInformationSectionQuery($userId: String!) {
      user(userId: $userId) {
        id
        paidCommunityCoinInfo {
          id
          balance
        }
        freeCommunityCoinInfo {
          id
          balance
        }
        seasons {
          id
        }
        ...MyCommunityCoinHistoriesFragment
        ...UserSupporterRankFragment
      }
    }
  `,[te.W,tt.H]),td=()=>(0,s.jsx)("div",{className:"w-full px-16 pb-8 pt-16",children:(0,s.jsx)(V.p,{height:127,radius:"lg"})}),tu=()=>{let{t:e}=(0,d.Z)("features/community"),{locale:t}=(0,u.useRouter)(),{paidCommunityCoinActivationFlag:i}=(0,tr.V)(),n=(0,U.II)(),r=(0,U.nu)(),a=(0,U.WA)(),o=(0,tn.R)(),{isUnread:c,handleClick:p}=(0,ts.u)(),h=(0,m.useCallback)(e=>new Intl.NumberFormat(t).format(e),[t]),x=n&&i,{communityId:g}=(0,ta.U)(),{data:f,loading:v}=(0,S.a)(tc,{variables:{userId:n??""},skip:!g||!n,fetchPolicy:"cache-and-network"});if((!a||v)&&!f)return(0,s.jsx)(td,{});if(!r||!f||!f.user?.seasons)return null;let j=f.user.seasons[0];return(0,s.jsx)("div",{children:j&&(0,s.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,s.jsx)(tt.G,{data:f.user}),(0,s.jsxs)("div",{className:"flex items-center gap-8 px-16 pb-8",children:[(0,s.jsx)(I.z,{size:"small",rounded:!0,variant:"basic",onClick:o.onOpen,startIcon:(0,s.jsx)(O.t,{size:"small"}),children:(0,s.jsx)(l.Z,{variant:"subtitleMd",color:"primary",children:h(x?(f?.user?.freeCommunityCoinInfo?.balance??0)+(f?.user?.paidCommunityCoinInfo?.balance??0):f?.user?.freeCommunityCoinInfo?.balance??0)})}),(0,s.jsxs)(I.z,{rounded:!0,variant:"basic",size:"small",onClick:p,children:[(0,s.jsx)(l.Z,{variant:"subtitleMd",color:"primary",children:e("ミッション")}),(0,s.jsx)(ti.C,{size:"small",visible:c,className:"absolute right-2 top-2"})]})]}),x&&o.openConstant&&(0,s.jsx)(tl,{open:o.open,onClose:o.onClose,paidCommunityCoinBalance:f?.user?.paidCommunityCoinInfo?.balance??0,freeCommunityCoinBalance:f?.user?.freeCommunityCoinInfo?.balance??0,communityCoinHistoriesData:f?.user}),!x&&o.openConstant&&(0,s.jsx)(to,{open:o.open,onClose:o.onClose})]})})};var tm=i(24338),tp=i(58627),th=i.n(tp);let tx=a()(async()=>(await i.e(95172).then(i.bind(i,95172))).BannerCarouselSection,{loadableGenerated:{webpack:()=>[95172]}}),tg=(0,v.BX)(`
    fragment LayoutFragment on ScreenLayout {
      id
      sections {
        ... on BannerSection {
          id
          ...BannerCarouselSectionFragment
        }
        ... on PostTileSection {
          id
          ...PostTileSectionFragment
        }
        ... on PostCarouselSection {
          id
          ...PostCarouselSectionV2Fragment
        }
        ... on PostCardCarouselSection {
          id
          ...PostCardCarouselSectionFragment
        }
        ... on PostSpotlightSection {
          id
          ...PostSpotlightSectionFragment
        }
        ... on EventCarouselSection {
          id
          ...EventCarouselSectionFragment
        }
        ... on TopicSection {
          id
          ...TopicCarouselSectionFragment
        }
        ... on UserInformationSection {
          id
          sectionType
        }
      }
    }
  `,[o.HQ,ez,Q,K,eb,k,e7]),tf=(0,v.BX)(`
    fragment TrendFragment on ScreenWithLayouts {
      id
      topLayout {
        ...LayoutFragment
      }
      mainLayout {
        ...LayoutFragment
      }
    }
  `,[tg]),tv=e=>{let{data:t}=e,i=(0,j.vz)(tf,t),{postActivationFlag:r}=(0,tr.V)();return(0,s.jsxs)("div",{className:(0,n.Z)("w-full",th().content),children:[(0,s.jsxs)("div",{children:[i?.topLayout&&(0,s.jsx)(tj,{data:i.topLayout}),i?.mainLayout&&(0,s.jsx)(tb,{data:i.mainLayout})]}),r&&(0,s.jsx)("div",{className:"lg:hidden",children:(0,s.jsx)(tm.o,{})})]})},tj=e=>{let{data:t}=e,i=(0,j.vz)(tg,t);return(0,s.jsx)("div",{children:i.sections.map(e=>"PostSpotlightSection"===e.__typename?(0,s.jsx)(e_,{data:e},`section-${e.id}`):null)})},tb=e=>{let{data:t}=e,i=(0,j.vz)(tg,t);return(0,s.jsx)("div",{className:"overflow-hidden bg-surface-plain lg:rounded-lg",children:i.sections.map((e,t)=>{switch(e.__typename){case"BannerSection":return(0,s.jsx)(tx,{sectionIndex:t,section:e,useNewDesign:!0},`section-${e.id}`);case"PostTileSection":return(0,s.jsx)(e$,{sectionIndex:t,section:e},`section-${e.id}`);case"PostCarouselSection":return(0,s.jsx)(J,{sectionIndex:t,data:e},`section-${e.id}`);case"PostCardCarouselSection":return(0,s.jsx)(W,{sectionIndex:t,data:e},`section-${e.id}`);case"EventCarouselSection":return(0,s.jsx)(w,{sectionIndex:t,data:e},`section-${e.id}`);case"TopicSection":return(0,s.jsx)(e9,{sectionIndex:t,section:e,useNewDesign:!0},`section-${e.id}`);case"UserInformationSection":switch(e.sectionType){case"ONBOARDING_MISSION_SECTION":return(0,s.jsx)(q,{},`section-${e.id}`);case"SUPPORTER_RANK_SECTION":return(0,s.jsx)(tu,{},`section-${e.id}`);case"STORY_SECTION":throw Error("STORY_SECTION not supported yet");case"TALKABLE_CHARACTER_AGENTS_SECTION":return(0,s.jsx)(eH,{sectionIndex:t},`section-${e.id}`);default:throw Error(e.sectionType)}default:return null}})},`layout-${i.id}`)}},46062:function(e,t,i){"use strict";i.d(t,{y:function(){return I}});var s=i(34223),n=i(98376),r=i(93656),a=i(2363),o=i(4954),l=i(26e3),c=i(96030),d=i(34930),u=i(1167),m=i(93730),p=i(28136),h=i(51479),x=i(72644),g=i(49082),f=i(3459),v=i(89405),j=i(30785),b=i(30443),y=i.n(b);let C=(0,o.BX)(`
  fragment SpotlightAchievementModalFragment on Post {
    id
    title
    images
  }
`),_=520/347,N=e=>{let{data:t,open:i,onClose:n}=e,r=(0,x.vz)(C,t),{push:o}=(0,u.useRouter)(),{t:b}=(0,d.Z)("features/information"),{communityId:N}=(0,f.U)(),{community:k}=(0,m.x)(N),w=k?.name||"",R=[w],S=b("「{{postTitle}}」が、{{communityName}}の人気の投稿に選ばれました\uD83C\uDF89",{postTitle:r.title.length>16?`${r.title.slice(0,16)}...`:r.title,communityName:w}),I=b("人気の投稿に選ばれました\uD83C\uDF89\n「{{postTitle}}」",{postTitle:r.title}),M=(0,a.useMemo)(()=>{let e=window.location.href.split("/")[2];return`https://${e}${(0,j.I)(h.V.posts._post_id(r.id).$url())}`},[r.id]),P=(0,g.s)(M,void 0,R,I),T=(0,a.useCallback)(()=>{(0,v.q)("spotlight_achievement_share_click",{postId:r.id}),P()},[r.id,P]),Z=(0,a.useCallback)(async()=>{let e=h.V.posts._post_id(r.id).$url();await o(e),n()},[o,r.id,n]);return(0,s.jsx)(l.N,{open:i,size:"small",onClose:n,imageNode:(0,s.jsxs)("div",{className:"relative flex w-full",style:{aspectRatio:_},children:[(0,s.jsx)(p.E,{fill:!0,priority:!0,src:"/static/spotlight-achievement-background.png",alt:"spotlight-achievement-background"}),(0,s.jsx)("div",{className:"mx-auto flex w-full px-56 py-32 lg:px-88 lg:py-44",children:(0,s.jsx)("div",{className:(0,c.Z)(y()["image-container"],"relative w-full overflow-hidden shadow-medium"),children:(0,s.jsx)(p.E,{fill:!0,priority:!0,src:r.images[0],alt:r.title,className:(0,c.Z)(y().image,"object-cover")})})})]}),displayTitle:b("おめでとうございます！"),description:S,primaryButton:{variant:"thirdpartyX",label:b("Xにシェア"),onClick:T},secondaryButton:{label:b("投稿を見る"),onClick:Z}})};var k=i(86415),w=i(41865);let R=(0,o.BX)(`
    query WithSpotlightAchievementQuery($userId: String!) {
      achievedPost(userId: $userId) {
        id
        post {
          id
          ...SpotlightAchievementModalFragment
        }
      }
    }
  `,[C]),S=(0,o.BX)(`
  mutation MarkAsReadAchievementMutation($activityAchievementId: String!, $userId: String!) {
    markAsReadAchievement(activityAchievementId: $activityAchievementId, userId: $userId)
  }
`),I=e=>{let{children:t}=e,i=(0,k.II)(),{open:o,onOpen:l,onClose:c}=(0,w.R)(),{data:d}=(0,n.a)(R,{variables:{userId:i||""},onCompleted:e=>{let{achievedPost:t}=e;t&&l()},skip:!i}),[u]=(0,r.D)(S),m=(0,a.useCallback)(async()=>{d?.achievedPost&&i&&await u({variables:{activityAchievementId:d.achievedPost.id,userId:i},update:e=>{e.evict({id:e.identify({__typename:"AchievedPost",id:d.achievedPost?.id})})}}),c()},[d?.achievedPost,i,c,u]);return(0,s.jsxs)(s.Fragment,{children:[t,d?.achievedPost?.post&&(0,s.jsx)(N,{data:d.achievedPost.post,open:o,onClose:m})]})}},14102:function(e,t,i){"use strict";i.d(t,{h:function(){return c}});var s=i(34223),n=i(96030),r=i(26647),a=i(92749),o=i(85728),l=i.n(o);let c=()=>(0,s.jsx)("div",{className:"w-full pb-80",children:(0,s.jsx)("div",{className:"mx-auto max-w-grid-xl",children:(0,s.jsxs)("div",{className:"bg-surface-plain lg:rounded-lg ",children:[(0,s.jsx)(d,{}),(0,s.jsx)(u,{}),(0,s.jsx)(m,{}),(0,s.jsx)(p,{}),(0,s.jsx)(p,{})]})})}),d=()=>(0,s.jsx)("div",{className:"px-16 pb-8 pt-16",children:(0,s.jsxs)("div",{className:"flex flex-row gap-12 overflow-hidden",children:[(0,s.jsx)(r.Z,{className:"aspect-horizontal-image rounded-md",height:180}),(0,s.jsx)(r.Z,{className:"aspect-horizontal-image rounded-md",height:180}),(0,s.jsx)(r.Z,{className:"aspect-horizontal-image rounded-md",height:180})]})}),u=()=>(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"px-16 pb-8 pt-16",children:(0,s.jsx)(r.Z,{className:"rounded-md",height:24,width:"40%"})}),(0,s.jsxs)(a.l,{className:"p-16 pt-0",children:[(0,s.jsx)(r.Z,{className:"mr-12 rounded-md",height:80,width:343}),(0,s.jsx)(r.Z,{className:"mr-12 rounded-md",height:80,width:343})]})]}),m=()=>(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"px-16 pb-8 pt-16",children:(0,s.jsx)(r.Z,{className:"rounded-md",height:24,width:"65%"})}),(0,s.jsxs)(a.l,{className:"p-16 pt-0",children:[(0,s.jsx)(r.Z,{className:(0,n.Z)("mr-12 aspect-horizontal-image rounded-md",l()["banner-item"])}),(0,s.jsx)(r.Z,{className:(0,n.Z)("mr-12 aspect-horizontal-image rounded-md",l()["banner-item"])}),(0,s.jsx)(r.Z,{className:(0,n.Z)("mr-12 aspect-horizontal-image rounded-md",l()["banner-item"])})]})]}),p=()=>(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"hidden lg:block",children:[(0,s.jsx)("div",{className:"px-16 pt-16",children:(0,s.jsx)(r.Z,{className:"rounded-md",height:24,width:"25%"})}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-24 bg-surface-plain px-16 pb-24 pt-8",children:[(0,s.jsx)(r.Z,{className:"aspect-square rounded-lg",width:158}),(0,s.jsx)(r.Z,{className:"aspect-square rounded-lg",width:158}),(0,s.jsx)(r.Z,{className:"aspect-square rounded-lg",width:158}),(0,s.jsx)(r.Z,{className:"aspect-square rounded-lg",width:158}),(0,s.jsx)(r.Z,{className:"aspect-square rounded-lg",width:158})]})]}),(0,s.jsxs)("div",{className:"lg:hidden",children:[(0,s.jsx)("div",{className:"px-16 pb-8 pt-16",children:(0,s.jsx)(r.Z,{className:"rounded-md",height:24,width:"50%"})}),(0,s.jsxs)("div",{className:"grid grid-cols-3 grid-rows-2 gap-2 bg-surface-plain",children:[(0,s.jsx)("div",{className:"col-span-2 row-span-2 aspect-square",children:(0,s.jsx)(r.Z,{height:"100%"})}),(0,s.jsx)(r.Z,{className:"aspect-square"}),(0,s.jsx)(r.Z,{className:"aspect-square"}),(0,s.jsx)(r.Z,{className:"aspect-square"}),(0,s.jsx)(r.Z,{className:"aspect-square"}),(0,s.jsx)(r.Z,{className:"aspect-square"})]})]})]})},46621:function(e,t,i){"use strict";i.d(t,{k:function(){return T},W:function(){return M}});var s=i(34223),n=i(73432),r=i(33188),a=i(95551),o=i(57799),l=i(45752),c=i(24337),d=i(75676),u=i(36918),m=i(9249),p=i(34930),h=i(1167),x=i(2363),g=i(3398),f=i(19298),v=i(93203),j=i(4954),b=i(72644),y=i(61161);let C=(0,j.BX)(`
  fragment CoinHistoryItemFragment on CoinHistory {
    id
    changedAmount
    historyLabel
    createdAt
  }
`),_=e=>{let{data:t}=e,{t:i}=(0,p.Z)("shared"),{t:n}=(0,p.Z)("features/mypage"),r=(0,b.vz)(C,t),o=(0,x.useMemo)(()=>{if(0===r.length)return[];let e={};for(let t of r){let s=(0,v.fP)(i)(t.createdAt);e[s]||(e[s]={date:s,groupedHistories:[]}),e[s].groupedHistories.push(t)}return Object.values(e).sort((e,t)=>new Date(t.date).getTime()-new Date(e.date).getTime())},[r,i]);return 0===o.length?(0,s.jsx)(y.u,{disableBackground:!0,icon:(0,s.jsx)("div",{}),text:n("履歴がありません。")}):(0,s.jsx)("div",{children:o.map(e=>(0,s.jsxs)("div",{children:[(0,s.jsx)(g.D,{children:(0,s.jsx)(a.Z,{variant:"subtitleMd",children:e.date})}),e.groupedHistories.map(e=>(0,s.jsx)(N,{historyItem:e},e.id))]},e.date))})},N=e=>{let{historyItem:t}=e,i=t.changedAmount>0;return(0,s.jsxs)(f.H,{className:"p-0",children:[(0,s.jsx)(u.M,{children:(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)(a.Z,{variant:"bodySm",color:"primary",className:"line-clamp-2 max-h-48 min-h-24",children:t.historyLabel})})}),(0,s.jsx)(m.h,{children:(0,s.jsx)(a.Z,{variant:"subtitleMd",color:i?"success":"dangerous",children:t.changedAmount>0?`+${t.changedAmount}`:`${t.changedAmount}`})})]},t.id)};var k=i(77316),w=i(44751),R=i(70517),S=i(51479),I=i(64728);let M=(0,j.BX)(`
    fragment MyCommunityCoinHistoriesFragment on User {
      freeCommunityCoinInfo {
        id
        histories {
          ...CoinHistoryItemFragment
        }
      }
      paidCommunityCoinInfo {
        id
        histories {
          ...CoinHistoryItemFragment
        }
      }
    }
  `,[C]),P={free:"free",paid:"paid"},T=e=>{let{open:t,onClose:i,paidCommunityCoinBalance:g,freeCommunityCoinBalance:f,communityCoinHistoriesData:v}=e,{locale:j,asPath:y,query:C,replace:N,pathname:T}=(0,h.useRouter)(),{t:Z}=(0,p.Z)("features/mypage"),O=(0,w.zJ)(),{storeActivationFlag:L}=(0,I.V)(),E=(0,x.useCallback)(e=>new Intl.NumberFormat(j).format(e),[j]),B=(0,x.useMemo)(()=>[{value:P.free,label:Z("無償コイン")},{value:P.paid,label:Z("有償コイン")}],[Z]),A=(0,x.useMemo)(()=>{let e=C.coin_history||P.free;return B.findIndex(t=>t.value===e)},[C.coin_history,B]),z=(0,x.useCallback)((e,t)=>{let i=B[t].value;N({pathname:T,query:{...C,coin_history:i}},void 0,{shallow:!0})},[N,T,B,C]),$=(0,x.useMemo)(()=>(0,s.jsx)(n.h,{size:"small",onClick:i,children:(0,s.jsx)(c.v,{})}),[i]),F=(0,b.vz)(M,v),U=0===A,V=T===S.V.missions.$url().pathname,D=(0,x.useCallback)(()=>{(0,k.O7)(y)},[y]);return(0,s.jsxs)(r.u_,{open:t,fixedSize:!0,onClose:i,...O?{type:"popup",size:"medium"}:{type:"sheet",size:"medium"},children:[(0,s.jsx)(r.xB,{title:Z("コイン履歴"),startNode:$}),(0,s.jsxs)("div",{className:"flex h-full flex-col",children:[(0,s.jsxs)("div",{className:"mt-16 flex w-full items-center justify-around px-16 pb-24 pt-8",children:[(0,s.jsx)(u.M,{children:(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)(a.Z,{variant:"subtitleSm",color:"primary",children:Z("所持コイン")}),(0,s.jsxs)("div",{className:"flex items-center gap-8",children:[(0,s.jsx)(d.t,{size:"medium"}),(0,s.jsxs)("div",{className:"my-4 flex-col items-center gap-8",children:[(0,s.jsx)(a.Z,{variant:"heading2xl",color:"primary",children:E(g+f)}),(0,s.jsx)(a.Z,{variant:"bodySm",color:"secondary",children:Z("無償: {{freeCommunityCoinBalance}} / 有償: {{paidCommunityCoinBalance}}",{paidCommunityCoinBalance:E(g),freeCommunityCoinBalance:E(f)})})]})]})]})}),(0,s.jsx)(m.h,{children:(0,s.jsx)(o.z,{component:R.r,href:S.V.store.community_coins.paid.$url(),variant:"primary",size:"small",rounded:!0,onClick:D,children:Z("コインを購入")})})]}),(0,s.jsxs)("div",{className:"flex w-full justify-between gap-8 px-16 pb-16",children:[!V&&(0,s.jsx)(o.z,{component:R.r,href:S.V.missions.$url(),size:"small",fullWidth:!0,children:Z("ミッションでためる")}),L&&(0,s.jsx)(o.z,{component:R.r,href:S.V.store.$url(),size:"small",fullWidth:!0,children:Z("ストアで使う")})]}),(0,s.jsx)(l.m,{value:A,onChange:z,className:"min-h-44",children:B.map(e=>(0,s.jsx)(l.O,{children:e.label},e.value))}),(0,s.jsxs)("div",{className:"overflow-auto border-t pb-60",children:[U&&(0,s.jsx)(_,{data:F.freeCommunityCoinInfo?.histories??[]}),!U&&(0,s.jsx)(_,{data:F.paidCommunityCoinInfo?.histories??[]})]})]})]})}},24338:function(e,t,i){"use strict";i.d(t,{o:function(){return b}});var s=i(34223),n=i(73432),r=i(84831),a=i(96030),o=i(33444),l=i.n(o),c=i(1167),d=i(2363),u=i(89252),m=i(41865),p=i(18103),h=i(239),x=i(15437),g=i(31746),f=i(98511),v=i.n(f);let j=l()(()=>Promise.all([i.e(58035),i.e(72108),i.e(93989),i.e(68259),i.e(42525),i.e(89712),i.e(58650),i.e(64367),i.e(53979),i.e(76656),i.e(8092),i.e(75097),i.e(31140)]).then(i.bind(i,37617)).then(e=>e.PostDialog),{loadableGenerated:{webpack:()=>[37617]}}),b=()=>{let{asPath:e,query:t}=(0,c.useRouter)(),{open:i,onOpen:o,onClose:l,openConstant:f}=(0,m.R)(),[b,y]=(0,x.a)(o),{isRestricted:C,restrictionDialog:_,openRestrictionDialog:N}=(0,p.s)(),{isSmsVerificationRequired:k,openSmsVerificationModal:w}=(0,h.a)(),R=(0,d.useCallback)(()=>{if((0,g.$)(u.V.postButtonClick,{fromUrl:e,...t}),C){N();return}if(k){w();return}y(null)},[e,C,y,N,t,k,w]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:(0,a.Z)("z-10",v().button),children:(0,s.jsx)(n.h,{variant:"primary",size:"large",onClick:R,float:!0,children:(0,s.jsx)(r.v,{})})}),f&&(0,s.jsx)(j,{open:i,onClose:l,isHideCreateChatRoom:!1}),b,_]})}},89454:function(e,t,i){"use strict";i.d(t,{V:function(){return C},Z:function(){return y}});var s=i(34223),n=i(95551),r=i(3316),a=i(16839),o=i(49238),l=i(9249),c=i(96030),d=i(1167),u=i(2363),m=i(33800),p=i(89252),h=i(82574),x=i(28136),g=i(70517),f=i(51479),v=i(4954),j=i(72644),b=i(31746);let y=(0,v.BX)(`
  fragment PostMediaCardFragment on Post {
    id
    title
    images
    likesTotalCount
    commentsTotalCount
    poster {
      id
      photoURL
      displayName
    }
    defaultImage
    isSpoiler
    spoilerReason
  }
`),C=e=>{let{data:t,onClick:i,type:v,priority:C}=e,_=(0,j.vz)(y,t),{asPath:N,query:k}=(0,d.useRouter)(),w=(0,u.useCallback)(()=>{(0,b.$)(p.V.postItemClick,{url:N,postId:_.id,...k}),i?.(_.id)},[N,_.id,k,i]),R="square"===v?150:210,S="square"===v?R:R/(16/9),I=_.images.length-1;return(0,s.jsx)(g.r,{className:"grow",onClick:w,href:f.V.posts._post_id(_.id).$url(),children:(0,s.jsxs)("div",{className:"group overflow-hidden transition-colors",style:{width:R},children:[(0,s.jsx)("div",{className:"overflow-hidden rounded-lg",children:(0,s.jsx)(m.d,{isSpoiler:_.isSpoiler,message:_.spoilerReason??void 0,posterUserId:_.poster?.id,type:"responsive",disableFlag:!0,children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(x.E,{src:_.images[0]??_.defaultImage,height:S,width:R,alt:_.title,className:(0,c.Z)("rounded-lg transition-transform group-hover:scale-110 group-hover:rounded-lg","square"===v?"aspect-square":"aspect-horizontal-image"),priority:C}),I>0&&(0,s.jsxs)("span",{className:(0,c.Z)("absolute right-8 top-8 inline-flex items-center gap-4 rounded-lg bg-overlay px-4 py-2 text-primary-white"),children:[(0,s.jsx)(r.d,{size:"xxsmall"}),(0,s.jsx)(n.Z,{variant:"captionXs",color:"primary-white",children:I})]})]})})}),(0,s.jsxs)("div",{className:"flex flex-col justify-start gap-8 py-8",children:[(0,s.jsx)(n.Z,{variant:"subtitleMd",className:"mb-auto line-clamp-2 min-h-40 group-hover:text-accent",color:"primary",children:_.title}),(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsxs)("div",{className:"flex w-full grow items-center overflow-hidden pr-8",children:[(0,s.jsx)(h.q,{src:_.poster?.photoURL??"",size:"mini",alt:_.poster?.displayName??""}),(0,s.jsx)(n.Z,{variant:"bodySm",color:"secondary",className:"ml-8 truncate",children:_.poster?.displayName})]}),(0,s.jsxs)(l.h,{children:[(0,s.jsx)(a.G,{size:"xsmall",className:"mr-2 text-object-secondary"}),(0,s.jsx)(n.Z,{variant:"captionXs",color:"secondary",align:"center",children:_.commentsTotalCount}),(0,s.jsx)(o.t,{size:"xsmall",className:"ml-8 mr-2 text-object-secondary"}),(0,s.jsx)(n.Z,{variant:"captionXs",color:"secondary",align:"center",children:_.likesTotalCount})]})]})]})]})})}},33800:function(e,t,i){"use strict";i.d(t,{d:function(){return m}});var s=i(34223),n=i(95551),r=i(86854),a=i(96030),o=i(34930),l=i(2363),c=i(86415),d=i(61661),u=i.n(d);let m=e=>{let{isSpoiler:t,message:i,posterUserId:d,children:m,type:p="fixed",disableFlag:h,rounded:x}=e,{t:g}=(0,o.Z)("features/post"),[f,v]=(0,l.useState)(!1),j=(0,c.II)(),b=(0,l.useCallback)(e=>{e.preventDefault(),v(!0)},[]),y=(0,l.useMemo)(()=>!!j&&!!d&&j===d,[j,d]),C=(0,l.useMemo)(()=>null==i?"":g("「{{message}}」の",{message:i}),[i,g]);return!t||f||y?(0,s.jsxs)("div",{children:[!h&&t&&(0,s.jsxs)("div",{className:"mb-16 flex items-center",children:[(0,s.jsx)(r.O,{size:"xsmall",color:"textSecondary"}),(0,s.jsx)(n.Z,{variant:"bodyLg",className:" ml-8",color:"secondary",children:g("ネタバレを含む")})]}),m]}):"text"===p?(0,s.jsx)(n.Z,{variant:"bodyMd",color:"secondary",className:x?"rounded-md":"",children:g("ネタバレを含む投稿です")}):"responsive"===p?(0,s.jsxs)("div",{className:"relative h-auto",children:[(0,s.jsx)("div",{className:"opacity-0",children:m}),(0,s.jsx)("div",{className:(0,a.Z)("absolute inset-0 flex items-center justify-center bg-object-neutral px-16 sm:px-32",x?"rounded-md":""),children:(0,s.jsxs)("p",{className:"text-variant-subtitleMd text-secondary",children:[C,g("ネタバレ注意")]})})]}):(0,s.jsx)("div",{className:(0,a.Z)("relative aspect-horizontal-image w-full",u().content),children:(0,s.jsxs)("div",{className:(0,a.Z)("absolute inset-0  flex flex-col items-center justify-center bg-object-neutral px-16 sm:px-32",x?"rounded-md":""),children:[(0,s.jsxs)("p",{className:"text-variant-subtitleMd text-secondary",children:[C,g("ネタバレを含む")]}),(0,s.jsx)("button",{type:"button",className:"text-variant-bodyMd ml-4 text-interactive underline",onClick:b,children:g("表示する")})]})})}},77316:function(e,t,i){"use strict";i.d(t,{AA:function(){return o},Ij:function(){return a},O7:function(){return r}});var s=i(53918);let n="paymentCompleteCallbackPath",r=e=>{s.q.setItem(n,e)},a=()=>s.q.getItem(n),o=()=>{s.q.removeItem(n)}},66716:function(e,t,i){"use strict";i.d(t,{G:function(){return g},H:function(){return x}});var s=i(34223),n=i(95551),r=i(74655),a=i(34930),o=i(1167),l=i(2363),c=i(84231),d=i(28136),u=i(70517),m=i(51479),p=i(4954),h=i(72644);let x=(0,p.BX)(`
  fragment UserSupporterRankFragment on User {
    seasons {
      id
      userSeasonPoint(userId: $userId)
      userSupporterRankInformation(userId: $userId) {
        userCurrentSupporterRank {
          supporterRank {
            id
            name
            threshold
            iconUrl
            supporterRankTier {
              id
              color
            }
          }
          nextSupporterRank {
            id
            name
            threshold
          }
        }
      }
    }
  }
`),g=e=>{let{data:t}=e,{t:i}=(0,a.Z)("features/supporterRank"),p=(0,h.vz)(x,t),{locale:g,push:f}=(0,o.useRouter)(),v=(0,l.useCallback)(e=>new Intl.NumberFormat(g).format(e),[g]),j=(0,l.useCallback)(e=>{e&&f(m.V.supporter_rank._season_id(e).$url())},[f]);if(!p||!p.seasons)return null;let b=p.seasons[0];if(!b)return null;let y=b?.userSupporterRankInformation?.userCurrentSupporterRank?.nextSupporterRank,C=y?.threshold??0,_=y?C-Number(b?.userSeasonPoint??0):0,N=y?Math.floor((C-_)/C*100):100,k=(0,c.U1)(b.userSupporterRankInformation?.userCurrentSupporterRank?.supporterRank?.supporterRankTier?.color);return(0,s.jsxs)("div",{children:[(0,s.jsx)(r.A,{title:i("サポーターランク"),variant:"standard",layout:"labelTrailing",trailing:{variant:"plain",children:i("ランク詳細を確認"),onClick:()=>j(b.id)}}),(0,s.jsxs)("div",{className:"flex gap-20 rounded-t-lg px-16",children:[(0,s.jsx)(u.r,{href:m.V.supporter_rank._season_id(b.id).$url(),children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(d.E,{src:b.userSupporterRankInformation?.userCurrentSupporterRank?.supporterRank?.iconUrl??"",width:24,height:24,alt:"supporter rank tier icon",className:"mr-4"}),(0,s.jsx)(n.Z,{variant:"subtitleLg",align:"center",style:{color:k},children:b.userSupporterRankInformation?.userCurrentSupporterRank?.supporterRank?.name??"-"})]}),(0,s.jsx)("div",{className:"flex items-center justify-center",children:(0,s.jsx)(n.Z,{variant:"bodySm",color:"secondary",children:i("現在のランク")})})]})}),(0,s.jsx)("div",{className:"border-r border-dashed border-specific-grey-100"}),(0,s.jsxs)("div",{className:"flex flex-1 flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-4",children:[(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)(n.Z,{variant:"bodySm",color:"primary",children:i(`{{rank}}まで {{point}}P`,{rank:b.userSupporterRankInformation?.userCurrentSupporterRank?.nextSupporterRank?.name??i("ランク上限"),point:v(_)})})}),(0,s.jsx)("span",{className:"inline-flex h-8 w-full justify-start overflow-hidden rounded bg-object-neutral",children:(0,s.jsx)("span",{className:"w-1/2 rounded",style:{width:`${N}%`,backgroundColor:k}})})]}),(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)(n.Z,{variant:"bodySm",className:"text-secondary",children:"0"}),(0,s.jsx)(n.Z,{variant:"bodySm",className:"text-secondary",children:"100"})]})]})]})]})}},84231:function(e,t,i){"use strict";i.d(t,{U1:function(){return l},w9:function(){return a},yq:function(){return o}});var s=i(96030),n=i(34716),r=i.n(n);let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?t?({SUPPORTER_RANK_TIER_COLOR_REGULAR:r()["regular-gradient-light"],SUPPORTER_RANK_TIER_COLOR_BRONZE:r()["bronze-gradient-light"],SUPPORTER_RANK_TIER_COLOR_SILVER:r()["silver-gradient-light"],SUPPORTER_RANK_TIER_COLOR_GOLD:r()["gold-gradient-light"],SUPPORTER_RANK_TIER_COLOR_PLATINUM:r()["platinum-gradient-light"],SUPPORTER_RANK_TIER_COLOR_DIAMOND:r()["diamond-gradient-light"]})[e]:({SUPPORTER_RANK_TIER_COLOR_REGULAR:r()["regular-gradient"],SUPPORTER_RANK_TIER_COLOR_BRONZE:r()["bronze-gradient"],SUPPORTER_RANK_TIER_COLOR_SILVER:r()["silver-gradient"],SUPPORTER_RANK_TIER_COLOR_GOLD:r()["gold-gradient"],SUPPORTER_RANK_TIER_COLOR_PLATINUM:r()["platinum-gradient"],SUPPORTER_RANK_TIER_COLOR_DIAMOND:r()["diamond-gradient"]})[e]:void 0},o=e=>{if(!e)return;let t={SUPPORTER_RANK_TIER_COLOR_REGULAR:r()["regular-gradient-border"],SUPPORTER_RANK_TIER_COLOR_BRONZE:r()["bronze-gradient-border"],SUPPORTER_RANK_TIER_COLOR_SILVER:r()["silver-gradient-border"],SUPPORTER_RANK_TIER_COLOR_GOLD:r()["gold-gradient-border"],SUPPORTER_RANK_TIER_COLOR_PLATINUM:r()["platinum-gradient-border"],SUPPORTER_RANK_TIER_COLOR_DIAMOND:r()["diamond-gradient-border"]}[e];return(0,s.Z)(t,r()["gradient-border"])},l=e=>{if(e)return({SUPPORTER_RANK_TIER_COLOR_REGULAR:"#D9D9D9",SUPPORTER_RANK_TIER_COLOR_BRONZE:"#BC8A58",SUPPORTER_RANK_TIER_COLOR_SILVER:"#6D7281",SUPPORTER_RANK_TIER_COLOR_GOLD:"#FFCC00",SUPPORTER_RANK_TIER_COLOR_PLATINUM:"#F360A1",SUPPORTER_RANK_TIER_COLOR_DIAMOND:"#55176E"})[e]}},79389:function(e,t,i){"use strict";var s=i(34223),n=i(95551),r=i(2363);let a=e=>{let t=e.split("\xa5n"),i=t.length-1;return t.map((e,t)=>(0,s.jsxs)(r.Fragment,{children:[e,t!==i&&(0,s.jsx)("br",{})]},`RenderMultiLines/${t}`))};t.Z=e=>{let{children:t,variant:i="subtitleMd",...o}=e;return t?"string"==typeof t?(0,s.jsx)(n.Z,{variant:i,...o,children:a(t)}):(0,s.jsx)(n.Z,{variant:i,...o,children:t.map(e=>(0,r.isValidElement)(e)?(0,r.cloneElement)(e):"string"==typeof e?a(e):null)}):null}},44751:function(e,t,i){"use strict";i.d(t,{Rz:function(){return l},jU:function(){return o},jb:function(){return n},or:function(){return r},zJ:function(){return a}});var s=i(94840);let n=()=>(0,s.a)("(min-width: 768px)"),r=()=>n(),a=()=>(0,s.a)("(min-width: 1020px)"),o=()=>a(),l=()=>(0,s.a)("(min-width: 1280px)")},44444:function(e,t,i){"use strict";let s;i.d(t,{i:function(){return a}});var n=i(2363);let r=(e,t,i)=>{n.useEffect(()=>{"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&(s=new IntersectionObserver(e=>{let[i]=e;return t(i)},i));let n=e.current;return n&&s&&s.observe(n),()=>{n&&s&&s.unobserve(n)}},[t,i,e])},a=(e,t,i)=>{let[s,a]=n.useState(t||!1);return r(e,e=>a(e.isIntersecting),i),{isIntersecting:s}}},93730:function(e,t,i){"use strict";i.d(t,{x:function(){return r}});var s=i(98376);let n=(0,i(4954).BX)(`
  query UseCommunityQueryCommunityQuery($communityId: String!) {
    community(communityId: $communityId) {
      id
      logoImage
      loginLogoImage
      topImage
      name
      icon
    }
  }
`),r=(e,t)=>{let{data:i,...r}=(0,s.a)(n,{variables:{communityId:e||""},skip:t||!e});return{community:i?.community,...r}}},92749:function(e,t,i){"use strict";i.d(t,{l:function(){return r}});var s=i(34223),n=i(96030);let r=(0,i(2363).forwardRef)((e,t)=>{let{children:i,className:r}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.Z)("overflow-y-hidden overflow-x-scroll hide-scrollbar",r),children:(0,s.jsx)("ul",{className:"flex w-fit flex-row",children:i})})});r.displayName="Carousel"},94448:function(e,t,i){"use strict";i.d(t,{P:function(){return l}});var s=i(34223),n=i(96030),r=i(28136);let a={rectangle:{xsmall:100,small:160,medium:180,large:210},square:{xsmall:80,small:100,medium:150,large:210}},o={rectangle:"aspect-horizontal-image",square:"aspect-square"},l=e=>{let{src:t,alt:i="media card image",title:l,type:c="rectangle",size:d="medium",subText:u="",alignCenter:m,onClick:p,priority:h,unoptimized:x}=e,g="full"===d?void 0:a[c][d];return(0,s.jsxs)("button",{type:"button",onClick:p,className:(0,n.Z)("block cursor-pointer","group","full"===d&&"w-full"),style:{width:g},children:[(0,s.jsxs)("div",{className:(0,n.Z)("relative flex rounded-md border border-strong bg-object-neutral",o[c]),children:[(0,s.jsx)(r.E,{alt:i,unoptimized:x,fill:!0,src:t,rounded:"md",className:"select-none",sizes:"full"===d?"100vw":`${g}px`,priority:h}),(0,s.jsx)("div",{className:"absolute top-0 size-full rounded-md group-hover:bg-overlay-subtle"})]}),(0,s.jsx)("p",{className:(0,n.Z)("mt-8 text-justify text-primary",...(e=>{let{alignCenter:t,size:i}=e;return[t?"text-center truncate":"line-clamp-2","xsmall"===i?"text-variant-bodySm":"text-variant-bodyMd"]})({alignCenter:m,size:d})),children:l}),(0,s.jsx)("p",{className:(0,n.Z)("truncate text-secondary","xsmall"===d?"text-variant-bodySm":"text-variant-bodyMd"),children:u})]})}},13120:function(e,t,i){"use strict";i.d(t,{p:function(){return o}});var s=i(34223),n=i(26647);let r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"100%",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"100%";return{width:t,height:e}},a={xs:2,sm:4,md:8,lg:12,xl:16},o=e=>{let{height:t,width:i,radius:o,className:l}=e;return(0,s.jsx)(n.Z,{borderRadius:o?a[o]:0,style:r(t,i),className:l})}},61161:function(e,t,i){"use strict";i.d(t,{u:function(){return u}});var s=i(34223),n=i(57799),r=i(96030),a=i(2363),o=i(14640),l=i(79389);let c=e=>{switch(e){case 1:return"grid-cols-1";case 3:return"grid-cols-3";case 4:return"grid-cols-4";default:return"grid-cols-2"}},d=()=>(0,s.jsxs)("svg",{width:"145",height:"136",viewBox:"0 0 145 136",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M133 26.3349V35.6726",stroke:"#B1B2B5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M128.333 31.0037H137.666",stroke:"#B1B2B5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M18 101.335V110.673",stroke:"#B1B2B5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M13.333 106.004H22.6663",stroke:"#B1B2B5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M122.92 111.026L113.021 120.93",stroke:"#B1B2B5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M113.021 111.026L122.92 120.93",stroke:"#B1B2B5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M41.9255 15.0237L32.0237 24.9255",stroke:"#B1B2B5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M32.0236 15.0237L41.9254 24.9255",stroke:"#B1B2B5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M11.25 43.0019C11.25 44.7982 9.79459 46.2537 8 46.2537C6.20541 46.2537 4.75 44.7982 4.75 43.0019C4.75 41.2056 6.20541 39.75 8 39.75C9.79459 39.75 11.25 41.2056 11.25 43.0019Z",stroke:"#B1B2B5",strokeWidth:"1.5"}),(0,s.jsx)("path",{d:"M108.25 23.0014C108.25 24.2452 107.242 25.2528 106 25.2528C104.758 25.2528 103.75 24.2452 103.75 23.0014C103.75 21.7577 104.758 20.75 106 20.75C107.242 20.75 108.25 21.7577 108.25 23.0014Z",stroke:"#B1B2B5",strokeWidth:"1.5"}),(0,s.jsx)("path",{d:"M43.25 116.001C43.25 117.245 42.2423 118.253 41 118.253C39.7577 118.253 38.75 117.245 38.75 116.001C38.75 114.758 39.7577 113.75 41 113.75C42.2423 113.75 43.25 114.758 43.25 116.001Z",stroke:"#B1B2B5",strokeWidth:"1.5"}),(0,s.jsx)("path",{d:"M135.25 85.037C135.25 86.8333 133.795 88.2889 132 88.2889C130.205 88.2889 128.75 86.8333 128.75 85.037C128.75 83.2407 130.205 81.7852 132 81.7852C133.795 81.7852 135.25 83.2407 135.25 85.037Z",stroke:"#B1B2B5",strokeWidth:"1.5"})]}),u=e=>{let{text:t,buttonLabel:i,onClick:u,icon:m,skelton:p,skeltonCols:h=2,skeltonLength:x=6,className:g,disableBackground:f}=e;return(0,s.jsxs)("div",{className:(0,r.Z)("relative",g),children:[p&&(0,s.jsx)("div",{className:(0,r.Z)("grid w-full grid-cols-2 gap-x-12 gap-y-16",c(h)),children:(0,o.w)(x).map(e=>(0,s.jsx)(a.Fragment,{children:p},`skelton/${e}`))}),(0,s.jsxs)("div",{className:(0,r.Z)("inset-0 flex flex-col items-center justify-center p-40 text-center",!!p&&"absolute"),children:[(0,s.jsx)("div",{className:"relative",children:f&&m?m:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d,{}),(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:m&&m})]})}),t&&(0,s.jsx)(l.Z,{className:"mt-24",color:"secondary",children:t}),i&&(0,s.jsx)(n.z,{className:"mt-40",variant:"primary",onClick:u,children:i})]})]})}},49082:function(e,t,i){"use strict";i.d(t,{s:function(){return l},b:function(){return c}});var s=i(2363);let n=e=>`?${Object.keys(e).filter(t=>!!e[t]).map(t=>`${t}=${encodeURIComponent(e[t])}`).join("&")}`;var r=i(62851);let a=e=>{if(!e)return"";let t=new URL(e);return t.searchParams.append("utm_source","twitter"),t.href},o=(e,t,i,s)=>{let r=i.length>0?"#".concat(i.join(" #")):void 0;return`https://twitter.com/intent/tweet${n({url:a(e),text:r?s?.concat("\n").concat(r):s,via:t})}`},l=(e,t,i,n)=>(0,s.useCallback)(async()=>{let s="string"==typeof e?e:await e();(0,r.R)(o(s,t,i,n),"_top")},[i,n,e,t]),c=()=>(0,s.useCallback)((e,t,i,s)=>{(0,r.R)(o(e,t,i,s),"_top")},[])},62851:function(e,t,i){"use strict";i.d(t,{R:function(){return a},w:function(){return n}});var s=i(97357);let n=e=>{if(void 0===window)return;let t=window.open(e,"_blank");t&&t.focus()},r=(e,t)=>({left:window.outerWidth/2+(window.screenX||window.screenLeft||0)-e/2,top:window.outerHeight/2+(window.screenY||window.screenTop||0)-t/2}),a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_blank";if(void 0===window)return;let i={location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes",height:400,width:550,...r(400,550)};if(s.gn){let i=window.open(e,t);i&&i.focus();return}let n=window.open(e,"",Object.keys(i).map(e=>`${e}=${i[e]}`).join(", "));n||(window.location.href=e),n&&n.focus()}},14640:function(e,t,i){"use strict";i.d(t,{w:function(){return s}});let s=e=>Array.from({length:e}).map((e,t)=>t)},30785:function(e,t,i){"use strict";i.d(t,{I:function(){return s}});let s=e=>{if(!e.pathname)throw Error("invalid Url");let t=e.pathname,i=[],s="object"==typeof e.query&&null!==e.query?{...e.query}:{};if(Object.keys(s).length>0)for(let n of(t=Object.entries(s).map(e=>{let[t,i]=e;return{key:t,value:i}}).reduce((e,t)=>{let{key:s,value:n}=t;return Array.isArray(n)&&1===n.length&&e.includes(`[[...${s}]]`)?(i.push(s),e.replace(`[[...${s}]]`,n[0])):"string"==typeof n&&e.includes(`[${s}]`)?(i.push(s),e.replace(`[${s}]`,n)):e},e.pathname),i))delete s[n];let n=new URLSearchParams(s).toString();return n?`${t}?${n}`:t}},12772:function(e,t,i){"use strict";i.d(t,{U:function(){return s}}),i(2363);let s=e=>{e.stopPropagation()}},93203:function(e,t,i){"use strict";i.d(t,{Mq:function(){return a},PA:function(){return f},PX:function(){return l},Ph:function(){return o},SA:function(){return g},cP:function(){return x},fP:function(){return h},vc:function(){return p}});var s=i(6872),n=i.n(s);let r=e=>e>1e10?Math.floor(e/1e3):e,a=60,o=3600,l=86400,c=e=>1e3*e,d=e=>{let t=e("秒前"),i=e("分前");return{second:t,minute:i,hour:e("時間前"),day:e("日前"),yesterday:e("昨日")}},u=e=>t=>{let i=d(e);return({second:i.second,minute:i.minute,hour:i.hour,day:i.day,yesterday:i.yesterday})[t]},m=e=>(t,i)=>{let s=n()().diff(t,i);return s<0?`0${u(e)(i)}`:`${s}${u(e)(i)}`},p=e=>function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"PLAIN_MONTH_DAY";if(!t)return"";let s=c(r(t));switch(i){case"PLAIN_MONTH_DAY":default:return n()(s).format(e("M月D日"));case"PLAIN_DATE":return n()(s).format(e("YYYY年M月D日"));case"PLAIN_DATE_TIME":return n()(s).format(e("YYYY年M月D日 HH:mm"));case"PLAIN_TIME":return n()(s).format(e("HH:mm"))}},h=e=>function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"PLAIN_MONTH_DAY";if(!t)return"";let s=r(t),d=n()().unix()-Math.floor(s),h=c(s);return Math.abs(d)<a?m(e)(h,"second"):d<o?m(e)(h,"minute"):d<l?m(e)(h,"hour"):d<2*l?`${u(e)("yesterday")}`:d<3*l||d<4*l?m(e)(h,"day"):p(e)(t,i)},x=e=>n()(e).format("YYYY-MM-DD HH:mm"),g=e=>{let t=Number(e.toFixed(0)),i=Math.floor(t/60).toString().padStart(2,"0"),s=(t%60).toString().padStart(2,"0");return`${i}:${s}`},f=e=>t=>{let i=r(t),s=n()(),c=Math.floor(i)-s.unix(),d=n().unix(i);if(c<=0)return h(e)(t);let m=e("公開");return Math.abs(c)<a?m+Math.ceil(d.diff(s,"second",!0))+u(e)("second"):c<o?m+Math.ceil(d.diff(s,"minute",!0))+u(e)("minute"):c<l?m+Math.ceil(d.diff(s,"hour",!0))+u(e)("hour"):m+Math.ceil(d.diff(s,"day",!0))+u(e)("day")}},48931:function(e){e.exports={item:"BannerCarouselSection_item__ZkSy9"}},36939:function(e){e.exports={item:"EventCarouselSection_item__FHPmV"}},51207:function(e){e.exports={item:"PostCarouselSectionV2_item__eM_Vv"}},82654:function(e){e.exports={"dots-container":"PostSpotlightSection_dots-container__oAQt0","active-dot":"PostSpotlightSection_active-dot__N2fmw","left-hover":"PostSpotlightSection_left-hover__wRe3Z","right-hover":"PostSpotlightSection_right-hover__PmTd9",transition:"PostSpotlightSection_transition__v8QO8"}},8966:function(e){e.exports={"spot-item":"PostSpotlightSectionItem_spot-item__PlCst",shadow:"PostSpotlightSectionItem_shadow__OJ5bg",image:"PostSpotlightSectionItem_image__yQbji","text-secondary":"PostSpotlightSectionItem_text-secondary__Hg6xQ","section-item":"PostSpotlightSectionItem_section-item__c6GYC"}},37274:function(e){e.exports={item:"PostTileSection_item__Bcd_4"}},30443:function(e){e.exports={"image-container":"SpotlightAchievementModal_image-container__22Xq9",image:"SpotlightAchievementModal_image__KktJR"}},60242:function(e){e.exports={"topic-card":"TopicCarouselSection_topic-card__WEbBP"}},58627:function(e){e.exports={content:"Trend_content__o7hPv"}},85728:function(e){e.exports={"banner-item":"TrendSkeletons_banner-item__uA_J8"}},98511:function(e){e.exports={button:"FloatPostAction_button__gAgYe"}},61661:function(e){e.exports={content:"SpoilerItem_content__u4bJr"}},34716:function(e){e.exports={"gradient-border":"supporterRankColors_gradient-border__bZCw6","regular-gradient":"supporterRankColors_regular-gradient__hxxXD","regular-gradient-border":"supporterRankColors_regular-gradient-border__07HQ_","regular-gradient-light":"supporterRankColors_regular-gradient-light__TClYw","bronze-gradient":"supporterRankColors_bronze-gradient__CfHQU","bronze-gradient-border":"supporterRankColors_bronze-gradient-border__eYdBc","bronze-gradient-light":"supporterRankColors_bronze-gradient-light__ApelG","silver-gradient":"supporterRankColors_silver-gradient__fpp3e","silver-gradient-border":"supporterRankColors_silver-gradient-border__fkkZl","silver-gradient-light":"supporterRankColors_silver-gradient-light__OeUiQ","gold-gradient":"supporterRankColors_gold-gradient__cq57U","gold-gradient-border":"supporterRankColors_gold-gradient-border__XKOFE","gold-gradient-light":"supporterRankColors_gold-gradient-light__ELqaV","platinum-gradient":"supporterRankColors_platinum-gradient__xkfN8","platinum-gradient-border":"supporterRankColors_platinum-gradient-border__lZzDF","platinum-gradient-light":"supporterRankColors_platinum-gradient-light__aBO5E","diamond-gradient":"supporterRankColors_diamond-gradient__eBRzW","diamond-gradient-border":"supporterRankColors_diamond-gradient-border__w0XSa","diamond-gradient-light":"supporterRankColors_diamond-gradient-light__h_nYk"}},60467:function(e,t,i){"use strict";i.d(t,{X:function(){return r}});var s=i(34223),n=i(40211);let r=(0,i(98745).B)(({children:e,disabled:t,tabIndex:i,component:r,className:a,...o},l)=>(0,s.jsx)(r??"button",{ref:l,className:(0,n.cx)("relative overflow-hidden cursor-pointer appearance-none outline-none select-none m-0 p-0 text-variant-buttonLg text-primary inline-flex items-center text-left bg-surface-plain hover:bg-surface-plain-hover disabled:bg-surface-plain-disabled disabled:cursor-default",a),disabled:t,tabIndex:t?-1:i,...o,children:e}))},94840:function(e,t,i){"use strict";i.d(t,{a:function(){return r}});var s=i(2363);let n=e=>"undefined"!=typeof window&&window.matchMedia(e).matches,r=e=>{let[t,i]=(0,s.useState)(n(e));return(0,s.useEffect)(()=>{let t=()=>{i(n(e))},s=window.matchMedia(e);return t(),s.addListener?s.addListener(t):s.addEventListener("change",t),()=>{s.removeListener?s.removeListener(t):s.removeEventListener("change",t)}},[e]),t}},75881:function(e,t,i){"use strict";i.d(t,{P:function(){return s}});let s=e=>e?.ownerDocument??document},26390:function(e,t,i){"use strict";i.d(t,{Z:function(){return o}});var s=i(34223),n=i(40211),r=i(67841);let a=e=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,s.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M20 12H4m0 0 6 6m-6-6 6-6"})}),o=({size:e="medium",className:t,...i})=>(0,s.jsx)(a,{focusable:"false",className:(0,n.cx)((0,r.k)(e),t),...i})},21170:function(e,t,i){"use strict";i.d(t,{G:function(){return o}});var s=i(34223),n=i(40211),r=i(67841);let a=e=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,s.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14m0 0-7-7m7 7-7 7"})}),o=({size:e="medium",className:t,...i})=>(0,s.jsx)(a,{focusable:"false",className:(0,n.cx)((0,r.k)(e),t),...i})},63940:function(e,t,i){"use strict";i.d(t,{C:function(){return o}});var s=i(34223),n=i(40211),r=i(67841);let a=e=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,s.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m9 18 6-6-6-6"})}),o=({size:e="medium",className:t,...i})=>(0,s.jsx)(a,{focusable:"false",className:(0,n.cx)((0,r.k)(e),t),...i})},86854:function(e,t,i){"use strict";i.d(t,{O:function(){return o}});var s=i(34223),n=i(40211),r=i(67841);let a=e=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,s.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v4m0 4h.01M10.615 3.892 2.39 18.098c-.456.788-.684 1.182-.65 1.506a1 1 0 0 0 .406.705c.263.191.718.191 1.629.191h16.45c.91 0 1.365 0 1.628-.191a1 1 0 0 0 .407-.705c.034-.324-.195-.718-.65-1.506L13.383 3.892c-.454-.785-.681-1.178-.978-1.31a1 1 0 0 0-.812 0c-.297.132-.524.525-.979 1.31"})}),o=({size:e="medium",className:t,...i})=>(0,s.jsx)(a,{focusable:"false",className:(0,n.cx)((0,r.k)(e),t),...i})},80029:function(e,t,i){"use strict";i.d(t,{w:function(){return o}});var s=i(34223),n=i(40211),r=i(67841);let a=e=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,s.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m9.5 3-3 18m11-18-3 18m6-13h-17m16 8h-17"})}),o=({size:e="medium",className:t,...i})=>(0,s.jsx)(a,{focusable:"false",className:(0,n.cx)((0,r.k)(e),t),...i})},3316:function(e,t,i){"use strict";i.d(t,{d:function(){return o}});var s=i(34223),n=i(40211),r=i(67841);let a=e=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[(0,s.jsx)("path",{fill:"currentColor",d:"M9.09 12.25c0-1.243 1.039-2.25 2.32-2.25s2.317 1.007 2.317 2.25c0 1.242-1.038 2.25-2.318 2.25s-2.318-1.008-2.318-2.25"}),(0,s.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.09 12.25c0-1.243 1.039-2.25 2.32-2.25s2.317 1.007 2.317 2.25c0 1.242-1.038 2.25-2.318 2.25s-2.318-1.008-2.318-2.25",clipRule:"evenodd"}),(0,s.jsx)("path",{fill:"currentColor",d:"M10.093 2H5.116c-.527 0-.982 0-1.356.03-.396.033-.789.104-1.167.297a3 3 0 0 0-1.311 1.311c-.193.378-.264.61-.296 1.006C.955 5.018.955 5.473.955 6L1 11.461c0 .527 0 .982.03 1.357.033.395.104.788.297 1.167.287.564 1.207 1.023 1.772 1.31.378.193.466.173.862.205.374.03.494.03.494.03v-3.88c0-.489 0-1.456.037-1.914.043-.52.138-1.234.508-1.912C5.507 6.896 6.054 6.47 7 6c.692-.344 1.393-.465 1.912-.508a19 19 0 0 1 1.477-.037h6.027s.039-.437.008-.811c-.032-.396-.103-.628-.296-1.006a3 3 0 0 0-1.311-1.311c-.379-.193-.772-.264-1.167-.296C13.275 2 10.62 2 10.093 2"}),(0,s.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.896 7.033C9.315 7 9.828 7 10.45 7h7.555c.621 0 1.68 0 2.099.033.434.034.833.108 1.208.294a3.05 3.05 0 0 1 1.351 1.31c.191.365.267.752.303 1.174.034.406.034.904.034 1.508v6.362c0 .604 0 1.102-.034 1.508-.036.421-.112.809-.303 1.173a3.05 3.05 0 0 1-1.35 1.31c-.376.186-.775.26-1.21.295a8 8 0 0 1-.288.017l-.017.002c-.165.014-.37.014-.58.014H9.782c-.209 0-.414 0-.58-.014l-.017-.002a8 8 0 0 1-.289-.017c-.434-.035-.833-.109-1.208-.294a3.05 3.05 0 0 1-1.351-1.311c-.191-.364-.267-.752-.303-1.173C6 18.783 6 18.285 6 17.68v-6.362c0-.604 0-1.102.034-1.508.036-.422.112-.81.303-1.173a3.05 3.05 0 0 1 1.35-1.311c.376-.186.775-.26 1.21-.294m12.558 4.317v3.59l-.914-.889-.026-.025a7 7 0 0 0-.37-.34 1.6 1.6 0 0 0-.53-.302 1.6 1.6 0 0 0-.955 0c-.224.07-.395.19-.53.301a7 7 0 0 0-.396.366l-1.687 1.638-.143-.138a7 7 0 0 0-.395-.366 1.6 1.6 0 0 0-.53-.301 1.6 1.6 0 0 0-.955 0c-.224.07-.396.19-.531.301a7 7 0 0 0-.395.366l-4.29 4.164a7 7 0 0 0-.4.408c-.033.038-.077.09-.122.157a1.5 1.5 0 0 1-.571-.6c-.062-.116-.112-.285-.14-.613-.028-.338-.029-.775-.029-1.417v-6.3c0-.643.001-1.08.03-1.417.027-.329.077-.497.139-.614.148-.282.384-.512.675-.656.121-.06.294-.108.633-.135.348-.028.798-.028 1.46-.028h8.036c.662 0 1.112 0 1.46.028.339.027.512.076.633.135.29.144.527.374.675.656.062.117.112.285.14.614.028.338.029.774.029 1.417",clipRule:"evenodd"}),(0,s.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.09 12.25c0-1.243 1.039-2.25 2.32-2.25s2.317 1.007 2.317 2.25c0 1.242-1.038 2.25-2.318 2.25s-2.318-1.008-2.318-2.25",clipRule:"evenodd"})]}),o=({size:e="medium",className:t,...i})=>(0,s.jsx)(a,{focusable:"false",className:(0,n.cx)((0,r.k)(e),t),...i})},84831:function(e,t,i){"use strict";i.d(t,{v:function(){return o}});var s=i(34223),n=i(40211),r=i(67841);let a=e=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,s.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M12 5v14m-7-7h14"})}),o=({size:e="medium",className:t,...i})=>(0,s.jsx)(a,{focusable:"false",className:(0,n.cx)((0,r.k)(e),t),...i})},68150:function(e,t,i){"use strict";i.d(t,{V:function(){return o}});var s=i(34223),n=i(40211),r=i(67841);let a=e=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,s.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M20 21c0-1.396 0-2.093-.172-2.661a4 4 0 0 0-2.667-2.667c-.568-.172-1.265-.172-2.661-.172h-5c-1.396 0-2.093 0-2.661.172a4 4 0 0 0-2.667 2.667C4 18.907 4 19.604 4 21M16.5 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0"})}),o=({size:e="medium",className:t,...i})=>(0,s.jsx)(a,{focusable:"false",className:(0,n.cx)((0,r.k)(e),t),...i})},74655:function(e,t,i){"use strict";i.d(t,{A:function(){return u}});var s=i(34223),n=i(40211),r=i(63940),a=i(95551),o=i(73432),l=i(57799);let c=(0,n.j)("flex flex-row items-center gap-8 bg-surface-plain ps-16 pt-16",{variants:{layout:{simple:"",iconButton:"",labelTrailing:""},withSubText:{true:"",false:""}},compoundVariants:[{layout:"simple",withSubText:[!0,!1],className:"pb-8 pe-16"},{layout:"iconButton",withSubText:!1,className:"pb-4 pe-8"},{layout:"iconButton",withSubText:!0,className:"pb-8 pe-8"},{layout:"labelTrailing",withSubText:!1,className:"pb-0 pe-8"},{layout:"labelTrailing",withSubText:!0,className:"pb-8 pe-8"}]}),d=(0,n.j)("flex",{variants:{layout:{iconButton:"p-8",labelTrailing:"py-4"}}}),u=({title:e,variant:t,icon:i,subText:n,layout:u,trailing:m})=>(0,s.jsxs)("div",{className:c({layout:u,withSubText:!!n}),children:[i&&(0,s.jsx)("span",{children:i}),(0,s.jsxs)("div",{className:"flex w-full flex-col gap-0 overflow-hidden",children:[(0,s.jsx)(a.Z,{variant:{large:"headingXl",standard:"subtitleLg",compact:"subtitleMd"}[t],className:"truncate",children:e}),n&&(0,s.jsx)(a.Z,{variant:"bodySm",color:"tertiary",className:"truncate",children:n})]}),m&&"simple"!==u&&(0,s.jsx)("span",{className:d({layout:u}),children:{iconButton:(0,s.jsx)(o.h,{...m,variant:"basic",size:"xsmall",children:(0,s.jsx)(r.C,{"aria-hidden":!0})}),labelTrailing:(0,s.jsx)(l.z,{...m,variant:"plain",size:"mini",children:m.children})}[u]})]})},3398:function(e,t,i){"use strict";i.d(t,{D:function(){return r}});var s=i(34223),n=i(40211);let r=({children:e,className:t,...i})=>(0,s.jsx)("div",{className:(0,n.cx)("pt-16 pb-8 px-16 flex",t),...i,children:e})}}]);