Files
MonkeyTokiDownloadScript/Samples/주식회사 마지루미에 124.1화 _ 뉴토끼_files/53627-02cfd29b9066f86c.js
2026-06-13 18:33:22 +09:00

1 line
20 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[53627],{4760:(e,t,n)=>{n.d(t,{NavManhwaGroup:()=>s});var o=n(95155),i=n(12115),r=n(47650);function a(){return window.matchMedia("(max-width: 768px)").matches}let l="nav-group-manhwa";function s({active:e,children:t}){let[n,d]=(0,i.useState)(!1),[c,u]=(0,i.useState)(!1),[m,p]=(0,i.useState)(null),f=(0,i.useRef)(null),h=(0,i.useRef)(null),w=(0,i.useRef)(null);(0,i.useEffect)(()=>{u(!0)},[]),(0,i.useEffect)(()=>{let e=e=>{e.detail&&e.detail!==l&&d(!1)};return window.addEventListener("nav-group-open",e),()=>window.removeEventListener("nav-group-open",e)},[]),(0,i.useEffect)(()=>{n&&window.dispatchEvent(new CustomEvent("nav-group-open",{detail:l}))},[n]),(0,i.useEffect)(()=>{if(!n)return;let e=()=>{let e=h.current?.getBoundingClientRect();if(e)if(a()){let t=w.current?.offsetWidth??0,n=t>0?window.innerWidth-t-8:e.left;p({top:e.bottom+2,left:Math.max(8,Math.min(e.left,n))})}else p({top:e.bottom,left:e.left})};e();let t=a(),o=window.scrollY,i=t?80:8,r=e=>{let t=e.target;f.current?.contains(t)||w.current?.contains(t)||d(!1)},l=()=>{Math.abs(window.scrollY-o)>i?d(!1):e()},s=()=>e(),c=window.setTimeout(()=>{document.addEventListener("click",r),window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",s)},0);return()=>{window.clearTimeout(c),document.removeEventListener("click",r),window.removeEventListener("scroll",l),window.removeEventListener("resize",s)}},[n]);let v=n&&m?{position:"fixed",top:m.top,left:m.left,zIndex:1100}:void 0;return(0,o.jsxs)("div",{ref:f,className:`nav-group${n?" is-open":""}`,children:[(0,o.jsxs)("button",{ref:h,type:"button",className:"manhwa"===e||"manhwa-end"===e||"manhwa-updates"===e||"manga"===e?"active":"",onClick:e=>{e.stopPropagation(),d(e=>!e)},"aria-haspopup":"menu","aria-expanded":n,children:["만화",(0,o.jsx)("span",{className:"new",children:"N"}),(0,o.jsx)("svg",{className:"nav-caret",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,o.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),c&&n&&(0,r.createPortal)((0,o.jsx)("div",{ref:w,className:"nav-dropdown nav-dropdown--portal is-open",role:"menu",style:v,onClick:()=>d(!1),children:t}),document.body)]})}},7711:(e,t,n)=>{n.d(t,{SearchModal:()=>r});var o=n(95155),i=n(12115);function r(){return(0,i.useEffect)(()=>{let e=window;if(e.__searchBound)return;e.__searchBound=!0;let t=()=>{let e=document.getElementById("search-modal");e&&("function"==typeof e.close?e.close():e.removeAttribute("open"))},n=e=>{let n=e.target;if(!n||"function"!=typeof n.closest)return;if(n.closest("[data-search-open]")){e.preventDefault();let t=document.getElementById("search-modal");if(t){if("function"==typeof t.showModal)try{t.showModal()}catch{t.setAttribute("open","")}else t.setAttribute("open","");setTimeout(()=>{let e=document.getElementById("search-modal")?.querySelector('input[name="q"]');e?.focus()},50)}return}if(n.closest("[data-search-close]"))return void t();let o=document.getElementById("search-modal");o&&e.target===o&&t()};return document.addEventListener("click",n),()=>{document.removeEventListener("click",n),e.__searchBound=!1}},[]),(0,o.jsx)("dialog",{id:"search-modal",className:"search-modal",children:(0,o.jsxs)("div",{className:"search-modal-card",children:[(0,o.jsx)("button",{type:"button",className:"search-modal-close","aria-label":"닫기","data-search-close":!0,children:"✕"}),(0,o.jsxs)("form",{action:"/search",method:"get",className:"search-modal-form",children:[(0,o.jsxs)("svg",{className:"search-modal-icon",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,o.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,o.jsx)("path",{d:"m21 21-4.3-4.3"})]}),(0,o.jsx)("input",{name:"q",type:"search",placeholder:"작품명 검색",autoFocus:!0,autoComplete:"off",required:!0}),(0,o.jsx)("input",{type:"hidden",name:"field",value:"title"}),(0,o.jsx)("input",{type:"hidden",name:"match",value:"contains"}),(0,o.jsx)("button",{type:"submit",className:"btn btn--primary",children:"검색"})]})]})})}},11246:(e,t,n)=>{n.d(t,{NavAnimeGroup:()=>s});var o=n(95155),i=n(12115),r=n(47650);function a(){return window.matchMedia("(max-width: 768px)").matches}let l="nav-group-anime";function s({active:e,children:t}){let[n,d]=(0,i.useState)(!1),[c,u]=(0,i.useState)(!1),[m,p]=(0,i.useState)(null),f=(0,i.useRef)(null),h=(0,i.useRef)(null),w=(0,i.useRef)(null);(0,i.useEffect)(()=>{u(!0)},[]),(0,i.useEffect)(()=>{let e=e=>{e.detail&&e.detail!==l&&d(!1)};return window.addEventListener("nav-group-open",e),()=>window.removeEventListener("nav-group-open",e)},[]),(0,i.useEffect)(()=>{n&&window.dispatchEvent(new CustomEvent("nav-group-open",{detail:l}))},[n]),(0,i.useEffect)(()=>{if(!n)return;let e=()=>{let e=h.current?.getBoundingClientRect();if(e)if(a()){let t=w.current?.offsetWidth??0,n=t>0?window.innerWidth-t-8:e.left;p({top:e.bottom+2,left:Math.max(8,Math.min(e.left,n))})}else p({top:e.bottom,left:e.left})};e();let t=a(),o=window.scrollY,i=t?80:8,r=e=>{let t=e.target;f.current?.contains(t)||w.current?.contains(t)||d(!1)},l=()=>{Math.abs(window.scrollY-o)>i?d(!1):e()},s=()=>e(),c=window.setTimeout(()=>{document.addEventListener("click",r),window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",s)},0);return()=>{window.clearTimeout(c),document.removeEventListener("click",r),window.removeEventListener("scroll",l),window.removeEventListener("resize",s)}},[n]);let v=n&&m?{position:"fixed",top:m.top,left:m.left,zIndex:1100}:void 0;return(0,o.jsxs)("div",{ref:f,className:`nav-group${n?" is-open":""}`,children:[(0,o.jsxs)("button",{ref:h,type:"button",className:"anime"===e||"anime-updates"===e||"anime-adult"===e?"active":"",onClick:e=>{e.stopPropagation(),d(e=>!e)},"aria-haspopup":"menu","aria-expanded":n,children:["애니",(0,o.jsx)("span",{className:"new",children:"N"}),(0,o.jsx)("svg",{className:"nav-caret",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,o.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),c&&n&&(0,r.createPortal)((0,o.jsx)("div",{ref:w,className:"nav-dropdown nav-dropdown--portal is-open",role:"menu",style:v,onClick:()=>d(!1),children:t}),document.body)]})}},14019:(e,t,n)=>{n.d(t,{ThemeToggle:()=>r});var o=n(95155),i=n(12115);function r({initial:e,variant:t="text"}){let[n,a]=(0,i.useState)(e);(0,i.useEffect)(()=>{let e=function(e){if("u"<typeof document)return null;let t=document.cookie.match(RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null}("theme");("light"===e||"dark"===e)&&(e!==n&&a(e),document.documentElement.setAttribute("data-theme",e))},[]);let l=()=>{let e="dark"===n?"light":"dark";a(e),document.documentElement.setAttribute("data-theme",e),document.cookie=`theme=${e}; path=/; max-age=31536000; samesite=lax`};return"icon"===t?(0,o.jsxs)("button",{type:"button",onClick:l,className:"m-icon theme-mini","aria-label":"테마 전환",title:"dark"===n?"라이트 모드":"다크 모드",children:[(0,o.jsx)("span",{className:"theme-ic theme-ic-light",style:{fontSize:16},children:"\uD83C\uDF19"}),(0,o.jsx)("span",{className:"theme-ic theme-ic-dark",style:{fontSize:16},children:"☀️"})]}):(0,o.jsxs)("button",{type:"button",onClick:l,className:"theme-toggle",title:"dark"===n?"라이트 모드로 전환":"다크 모드로 전환","aria-label":"테마 전환",children:[(0,o.jsx)("span",{className:"theme-ic theme-ic-light",children:"\uD83C\uDF19"}),(0,o.jsx)("span",{className:"theme-ic theme-ic-dark",children:"☀️"}),(0,o.jsx)("span",{children:"dark"===n?"라이트":"다크"})]})}},21168:(e,t,n)=>{n.d(t,{ComingSoon:()=>r});var o=n(95155),i=n(12115);function r(){return(0,i.useEffect)(()=>{let e=window;if(e.__comingBound)return;e.__comingBound=!0;let t=()=>{if(document.getElementById("ntk_blk_overlay"))return!0;for(let e of Array.from(document.body.children)){if(!(e instanceof HTMLElement))continue;let t=e.style;if("fixed"===t.position&&"2147483647"===t.zIndex)return!0}return!1},n=n=>{let o=n.target;if(!o||"function"!=typeof o.closest)return;let i=o.closest("[data-coming-soon]");if(i){if(n.preventDefault(),t())return;(n=>{if(t())return;let o=document.getElementById("coming-toast");if(!o)return;let i=o.querySelector(".coming-text");i&&(i.textContent=(n||"준비 중인 기능")+" — 준비 중입니다"),o.classList.remove("show"),o.offsetWidth,o.classList.add("show"),e.__comingHideTimer&&clearTimeout(e.__comingHideTimer),e.__comingHideTimer=setTimeout(()=>{document.getElementById("coming-toast")?.classList.remove("show")},2e3)})(i.getAttribute("data-coming-soon"))}};return document.addEventListener("click",n),()=>{document.removeEventListener("click",n),e.__comingBound=!1,e.__comingHideTimer&&(clearTimeout(e.__comingHideTimer),e.__comingHideTimer=null)}},[]),(0,o.jsxs)("div",{id:"coming-toast",className:"coming-toast",role:"alert","aria-live":"polite",children:[(0,o.jsx)("span",{className:"coming-icon",children:"\uD83D\uDEE0"}),(0,o.jsx)("span",{className:"coming-text",children:"준비 중인 기능입니다"})]})}},43218:(e,t,n)=>{n.d(t,{NavGameGroup:()=>s});var o=n(95155),i=n(12115),r=n(47650);function a(){return window.matchMedia("(max-width: 768px)").matches}let l="nav-group-game";function s({active:e,children:t}){let[n,d]=(0,i.useState)(!1),[c,u]=(0,i.useState)(!1),[m,p]=(0,i.useState)(null),f=(0,i.useRef)(null),h=(0,i.useRef)(null),w=(0,i.useRef)(null);(0,i.useEffect)(()=>{u(!0)},[]),(0,i.useEffect)(()=>{let e=e=>{e.detail&&e.detail!==l&&d(!1)};return window.addEventListener("nav-group-open",e),()=>window.removeEventListener("nav-group-open",e)},[]),(0,i.useEffect)(()=>{n&&window.dispatchEvent(new CustomEvent("nav-group-open",{detail:l}))},[n]),(0,i.useEffect)(()=>{if(!n)return;let e=()=>{let e=h.current?.getBoundingClientRect();if(e)if(a()){let t=w.current?.offsetWidth??0,n=t>0?window.innerWidth-t-8:e.left;p({top:e.bottom+2,left:Math.max(8,Math.min(e.left,n))})}else p({top:e.bottom,left:e.left})};e();let t=a(),o=window.scrollY,i=t?80:8,r=e=>{let t=e.target;f.current?.contains(t)||w.current?.contains(t)||d(!1)},l=()=>{Math.abs(window.scrollY-o)>i?d(!1):e()},s=()=>e(),c=window.setTimeout(()=>{document.addEventListener("click",r),window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",s)},0);return()=>{window.clearTimeout(c),document.removeEventListener("click",r),window.removeEventListener("scroll",l),window.removeEventListener("resize",s)}},[n]);let v="game-crash"===e||"game-baccarat"===e||"game-cards"===e||"game-card-rpg"===e||"game-card-pvp"===e||"game-mining"===e||"ladder"===e||"lottery"===e,g=n&&m?{position:"fixed",top:m.top,left:m.left,zIndex:1100}:void 0;return(0,o.jsxs)("div",{ref:f,className:`nav-group${n?" is-open":""}`,children:[(0,o.jsxs)("button",{ref:h,type:"button",className:v?"active":"",onClick:e=>{e.stopPropagation(),d(e=>!e)},"aria-haspopup":"menu","aria-expanded":n,children:["게임",(0,o.jsx)("svg",{className:"nav-caret",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,o.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),c&&n&&(0,r.createPortal)((0,o.jsx)("div",{ref:w,className:"nav-dropdown nav-dropdown--portal is-open",role:"menu",style:g,onClick:()=>d(!1),children:t}),document.body)]})}},51728:(e,t,n)=>{n.d(t,{NavSwipeHint:()=>a});var o=n(95155),i=n(12115);let r="top-nav-swipe-hint-dismissed";function a(){let[e,t]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{if(window.matchMedia("(min-width: 768px)").matches||"1"===localStorage.getItem(r))return;t(!0);let e=()=>{localStorage.setItem(r,"1"),t(!1)},n=window.setTimeout(e,5e3),o=document.querySelector(".nav .row");return o?.addEventListener("scroll",e,{passive:!0,once:!0}),o?.addEventListener("touchstart",e,{passive:!0,once:!0}),()=>{window.clearTimeout(n),o?.removeEventListener("scroll",e),o?.removeEventListener("touchstart",e)}},[]),e)?(0,o.jsxs)("div",{className:"nav-swipe-hint",role:"status","aria-live":"polite",children:[(0,o.jsx)("span",{className:"nav-swipe-hint__arrow","aria-hidden":!0,children:"\uD83D\uDC48"}),(0,o.jsx)("span",{className:"nav-swipe-hint__text",children:"좌우로 스와이프하여 메뉴 더 보기"}),(0,o.jsx)("button",{type:"button",className:"nav-swipe-hint__close","aria-label":"안내 닫기",onClick:()=>{localStorage.setItem(r,"1"),t(!1)},children:"✕"})]}):null}},63656:(e,t,n)=>{n.d(t,{NavNovelGroup:()=>s});var o=n(95155),i=n(12115),r=n(47650);function a(){return window.matchMedia("(max-width: 768px)").matches}let l="nav-group-novel";function s({active:e,children:t}){let[n,d]=(0,i.useState)(!1),[c,u]=(0,i.useState)(!1),[m,p]=(0,i.useState)(null),f=(0,i.useRef)(null),h=(0,i.useRef)(null),w=(0,i.useRef)(null);(0,i.useEffect)(()=>{u(!0)},[]),(0,i.useEffect)(()=>{let e=e=>{e.detail&&e.detail!==l&&d(!1)};return window.addEventListener("nav-group-open",e),()=>window.removeEventListener("nav-group-open",e)},[]),(0,i.useEffect)(()=>{n&&window.dispatchEvent(new CustomEvent("nav-group-open",{detail:l}))},[n]),(0,i.useEffect)(()=>{if(!n)return;let e=()=>{let e=h.current?.getBoundingClientRect();if(e)if(a()){let t=w.current?.offsetWidth??0,n=t>0?window.innerWidth-t-8:e.left;p({top:e.bottom+2,left:Math.max(8,Math.min(e.left,n))})}else p({top:e.bottom,left:e.left})};e();let t=a(),o=window.scrollY,i=t?80:8,r=e=>{let t=e.target;f.current?.contains(t)||w.current?.contains(t)||d(!1)},l=()=>{Math.abs(window.scrollY-o)>i?d(!1):e()},s=()=>e(),c=window.setTimeout(()=>{document.addEventListener("click",r),window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",s)},0);return()=>{window.clearTimeout(c),document.removeEventListener("click",r),window.removeEventListener("scroll",l),window.removeEventListener("resize",s)}},[n]);let v=n&&m?{position:"fixed",top:m.top,left:m.left,zIndex:1100}:void 0;return(0,o.jsxs)("div",{ref:f,className:`nav-group${n?" is-open":""}`,children:[(0,o.jsxs)("button",{ref:h,type:"button",className:"novel"===e||"novel-updates"===e||"novel-end"===e?"active":"",onClick:e=>{e.stopPropagation(),d(e=>!e)},"aria-haspopup":"menu","aria-expanded":n,children:["소설",(0,o.jsx)("span",{className:"new",children:"N"}),(0,o.jsx)("svg",{className:"nav-caret",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,o.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),c&&n&&(0,r.createPortal)((0,o.jsx)("div",{ref:w,className:"nav-dropdown nav-dropdown--portal is-open",role:"menu",style:v,onClick:()=>d(!1),children:t}),document.body)]})}},75295:(e,t,n)=>{n.d(t,{BannerRow:()=>s});var o=n(95155),i=n(12115);let r={line1:"광고문의 텔레그램",line2:"@newtoki62",linkUrl:"https://t.me/newtoki62"};function a(e){try{let t=JSON.stringify({bannerId:e});if("u">typeof navigator&&navigator.sendBeacon){let e=new Blob([t],{type:"application/json"});navigator.sendBeacon("/api/banners/click",e)}else fetch("/api/banners/click",{method:"POST",headers:{"Content-Type":"application/json"},body:t,keepalive:!0}).catch(()=>{})}catch{}}function l(e,t){if(1===t.button||t.metaKey||t.ctrlKey||t.shiftKey){window.open(e,"_blank","noopener,noreferrer"),t.preventDefault();return}0===t.button&&(window.open(e,"_blank","noopener,noreferrer"),t.preventDefault())}function s({slot:e,banners:t,count:n,placeholder:d}){let c=n??("header"===e?24:2),u=t??[],m=d??r,[p,f]=(0,i.useState)(null),h=(0,i.useRef)(!1);(0,i.useEffect)(()=>{h.current||(h.current=!0,f(function(e){let t=e.slice();if("u">typeof crypto&&"function"==typeof crypto.getRandomValues){let e=new Uint32Array(t.length);crypto.getRandomValues(e);for(let n=t.length-1;n>0;n--){let o=e[n]%(n+1);[t[n],t[o]]=[t[o],t[n]]}}else for(let e=t.length-1;e>0;e--){let n=Math.floor(Math.random()*(e+1));[t[e],t[n]]=[t[n],t[e]]}return t}(u)))},[u]);let w=p??u,v=Array.from({length:c},(e,t)=>w[t]??null);return(0,o.jsxs)("section",{className:"","data-br":"1","data-brs":e,"data-br-n":c,children:[(0,o.jsx)("script",{dangerouslySetInnerHTML:{__html:"(function(){var w=window;var k1=document.documentElement.getAttribute('data-ab');var k2=document.documentElement.getAttribute('data-rb');if(k1){w[k1]=(w[k1]||0)+"+c+";}if(k2){w[k2]=(w[k2]||0)+"+c+";}try{Object.defineProperty(w,'__bSeen',{value:(w.__bSeen||0)+"+c+",writable:true,configurable:true});}catch(e){w.__bSeen=(w.__bSeen||0)+"+c+";}})();"}}),v.map((e,t)=>e?(0,o.jsx)("button",{type:"button",className:"",onClick:t=>{a(e.id),l(e.linkUrl,t)},onAuxClick:t=>{a(e.id),l(e.linkUrl,t)},"aria-label":e.title,"data-bs":"1",children:(0,o.jsx)("img",{src:e.imagePath,alt:e.title,width:e.width,height:e.height,loading:"lazy"})},e.id):(0,o.jsxs)("button",{type:"button",className:"",onClick:e=>l(m.linkUrl,e),onAuxClick:e=>l(m.linkUrl,e),"aria-label":`${m.line1} ${m.line2}`,"data-bp":"1",children:[(0,o.jsxs)("svg",{className:"",viewBox:"0 0 24 24","aria-hidden":!0,fill:"currentColor","data-bp-i":"1",children:[(0,o.jsx)("title",{children:`${m.line1} ${m.line2}`}),(0,o.jsx)("path",{d:"M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19l-9.5 6L3.62 12.05c-.89-.26-.89-.87.2-1.3l16.59-6.4c.74-.27 1.45.18 1.16 1.3l-2.83 13.33c-.2.91-.74 1.13-1.5.71l-4.13-3.06-1.99 1.93c-.23.23-.42.42-.84.42z"})]}),(0,o.jsxs)("span",{className:"","data-bp-t":"1",children:[(0,o.jsx)("span",{className:"","data-bp-l":"1",children:m.line1}),(0,o.jsx)("span",{className:"","data-bp-l":"2",children:m.line2})]})]},`ph-${t}`))]})}},88931:(e,t,n)=>{n.d(t,{NavCommunityGroup:()=>s});var o=n(95155),i=n(12115),r=n(47650);function a(){return window.matchMedia("(max-width: 768px)").matches}let l="nav-group-community";function s({active:e,children:t}){let[n,d]=(0,i.useState)(!1),[c,u]=(0,i.useState)(!1),[m,p]=(0,i.useState)(null),f=(0,i.useRef)(null),h=(0,i.useRef)(null),w=(0,i.useRef)(null);(0,i.useEffect)(()=>{u(!0)},[]),(0,i.useEffect)(()=>{let e=e=>{e.detail&&e.detail!==l&&d(!1)};return window.addEventListener("nav-group-open",e),()=>window.removeEventListener("nav-group-open",e)},[]),(0,i.useEffect)(()=>{n&&window.dispatchEvent(new CustomEvent("nav-group-open",{detail:l}))},[n]),(0,i.useEffect)(()=>{if(!n)return;let e=()=>{let e=h.current?.getBoundingClientRect();if(e)if(a()){let t=w.current?.offsetWidth??0,n=t>0?window.innerWidth-t-8:e.left;p({top:e.bottom+2,left:Math.max(8,Math.min(e.left,n))})}else p({top:e.bottom,left:e.left})};e();let t=a(),o=window.scrollY,i=t?80:8,r=e=>{let t=e.target;f.current?.contains(t)||w.current?.contains(t)||d(!1)},l=()=>{Math.abs(window.scrollY-o)>i?d(!1):e()},s=()=>e(),c=window.setTimeout(()=>{document.addEventListener("click",r),window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",s)},0);return()=>{window.clearTimeout(c),document.removeEventListener("click",r),window.removeEventListener("scroll",l),window.removeEventListener("resize",s)}},[n]);let v="board"===e||"game-board"===e||"manhwa-board"===e||"anime-board"===e||"humor-board"===e||"bl-board"===e||"rom-board"===e||"novel-board"===e||"trans-board"===e||"eunkkol-board"===e||"eunkkol-man-board"===e||"anonymous-board"===e||"request-board"===e||"suggest"===e||"shop"===e||"todos"===e,g=n&&m?{position:"fixed",top:m.top,left:m.left,zIndex:1100}:void 0;return(0,o.jsxs)("div",{ref:f,className:`nav-group${n?" is-open":""}`,children:[(0,o.jsxs)("button",{ref:h,type:"button",className:v?"active":"",onClick:e=>{e.stopPropagation(),d(e=>!e)},"aria-haspopup":"menu","aria-expanded":n,children:["커뮤니티",(0,o.jsx)("svg",{className:"nav-caret",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,o.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),c&&n&&(0,r.createPortal)((0,o.jsx)("div",{ref:w,className:"nav-dropdown nav-dropdown--community nav-dropdown--portal is-open",role:"menu",style:g,onClick:()=>d(!1),children:t}),document.body)]})}}}]);