1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7077,7835,40055],{7835:function(e,t,a){var r=a(85893),s=a(41664),n=a.n(s),c=a(21384);let i=e=>{let{passHref:t,legacyBehavior:a,placeholderSrc:r,fallbackSrc:s,...n}=e;return n},l=e=>{let{placeholderSrc:t,fallbackSrc:a,src:r,alt:s,width:n,height:c,loading:i,decoding:l,onLoad:h,onError:f,...o}=e;return o};t.Z=e=>{let{href:t,children:a,...s}=e,h=(0,c.JA)("LINK"),f="";"string"==typeof t?f=t:"object"==typeof t&&null!==t&&"string"==typeof t.pathname&&(f=t.pathname);let o=f.startsWith("http")&&!f.startsWith(h),p=()=>{var e;let t=new URLSearchParams((null===(e=window.location.search)||void 0===e?void 0:e.slice(1))||""),a={};for(let[e,r]of t.entries())""!==r&&(a[e]=r);return a};if(o){let e="string"==typeof t?t:new URL(t.pathname,h).toString();return(0,r.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",...i(s),children:a})}let u="string"==typeof t?(e=>{if("string"!=typeof e||!e||e.startsWith("#"))return e;let t=p();if(0===Object.keys(t).length)return e;let a=e.startsWith("http://")||e.startsWith("https://"),r=new URL(e,h);return(Object.entries(t).forEach(e=>{let[t,a]=e;r.searchParams.has(t)||r.searchParams.set(t,a)}),a)?r.toString():"".concat(r.pathname).concat(r.search).concat(r.hash)})(t):(e=>{if(!e||"object"!=typeof e)return e;let t=p();return 0===Object.keys(t).length?e:{...e,query:{...t,...e.query||{}}}})(t);return(0,r.jsx)(n(),{href:u,...l(s),children:a})}},7077:function(e,t,a){a.r(t);var r=a(85893),s=a(7835),n=a(21384),c=a(76966),i=a(11163);t.default=e=>{let{page:t=1,postCount:a=0}=e,l=(0,i.useRouter)(),{NOTION_CONFIG:h}=(0,c.Og)(),f=Math.ceil((a||0)/parseInt((0,n.JA)("POSTS_PER_PAGE",12,h),10)),o=parseInt(t,10)||1;if(!f||f<=1)return null;let p=l.asPath.split("?")[0].replace(/\/page\/[1-9]\d*/,"").replace(/\/$/,""),u=function(e,t){let a=[],r=Math.max(1,e-2),s=Math.min(t,e+2);for(;s-r<4&&(r>1||s<t);)if(r>1)r--;else if(s<t)s++;else break;r>1&&a.push(1),r>2&&a.push(-1);for(let e=r;e<=s;e++)a.push(e);return s<t-1&&a.push(-1),s<t&&a.push(t),a}(o,f),g=o<=2?"".concat(p||"","/"):"".concat(p,"/page/").concat(o-1),m="".concat(p,"/page/").concat(o+1);return(0,r.jsxs)("div",{className:"fuwari-pagination mt-8 mb-4 flex items-center justify-center gap-3",children:[(0,r.jsx)(s.Z,{href:o>1?g:"#","aria-label":"Previous Page",className:"fuwari-page-btn ".concat(o>1?"":"fuwari-page-btn-disabled"),children:(0,r.jsx)("i",{className:"fas fa-chevron-left"})}),(0,r.jsx)("div",{className:"fuwari-page-box flex items-center gap-1",children:u.map((e,t)=>-1===e?(0,r.jsx)("span",{className:"fuwari-page-ellipsis",children:(0,r.jsx)("i",{className:"fas fa-ellipsis-h"})},"h-".concat(t)):(0,r.jsx)(s.Z,{href:1===e?"".concat(p||"","/"):"".concat(p,"/page/").concat(e),className:"fuwari-page-num ".concat(e===o?"fuwari-page-num-active":""),children:e},"p-".concat(e)))}),(0,r.jsx)(s.Z,{href:o<f?m:"#","aria-label":"Next Page",className:"fuwari-page-btn ".concat(o<f?"":"fuwari-page-btn-disabled"),children:(0,r.jsx)("i",{className:"fas fa-chevron-right"})})]})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.