1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7148],{1202:(t,r,e)=>{"use strict";e.d(r,{A:()=>n});var i=e(4542),s=e(2615);let n=({children:t,...r})=>(0,i.Y)(s.az,{mx:[3,3],...r,children:t})},2263:(t,r,e)=>{"use strict";e.r(r),e.d(r,{__N_SSG:()=>A,default:()=>h});var i=e(4542),s=e(2615),n=e(9854),l=e(1202),a=e(1912),o=e(1198),d=e(4742),c=e(7819),A=!0;let h=t=>{let{dictators:r,country:e}=t,A=`Diktaattorit, ${e.name}`,h=(0,c.VF)(r||[]);return(0,i.FD)(a.A,{children:[(0,i.Y)(d.A,{title:A}),(0,i.FD)(l.A,{children:[(0,i.Y)(o.A,{children:A}),(0,i.Y)(s.az,{children:(0,i.Y)(n.A,{dictators:h})})]})]})}},2977:(t,r,e)=>{"use strict";e.d(r,{A:()=>n});var i=e(7002),s=e(8543);let n=({reign:t})=>{let{start:r,end:e}=t;return r&&!e?(0,i.jsx)("span",{children:`${(0,s.Y)(r)} -`}):r&&e?(0,i.jsx)("span",{children:`${(0,s.Y)(r)} - ${(0,s.Y)(e)}`}):(0,i.jsx)("span",{children:"ei tiedossa"})}},5324:(t,r,e)=>{"use strict";e.d(r,{A:()=>n});var i=e(7002),s=e(5632);let n=({country:t})=>{let r=`/diktaattorit/${t.continent.slug}/${t.slug}`;return(0,i.jsx)(s.A,{to:r,children:t.name})}},5913:(t,r,e)=>{"use strict";e.d(r,{A:()=>n});var i=e(4542),s=e(2615);let n=({data:t,alt:r,styles:e,config:n={},loading:l="lazy"})=>{let a=(t=>{let r=new URLSearchParams;if(t.width&&(r.set("w",t.width.toString()),t.aspectRatio)){let e=Math.round(t.width/t.aspectRatio);r.set("h",e.toString())}return t.fit&&r.set("fit",t.fit),t.focus&&r.set("f",t.focus),t.quality&&r.set("q",t.quality.toString()),r})(n),o=`${t.url}?${a.toString()}`;return(0,i.Y)(s.az,{sx:e,children:(0,i.Y)("picture",{sx:{display:"block",maxWidth:"100%"},children:(0,i.Y)("img",{loading:l,sx:{display:"block",maxWidth:"100%"},src:o,title:t.description,alt:r})})})}},7370:(t,r,e)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/diktaattorit/[continent]/[country]",function(){return e(2263)}])},7534:(t,r,e)=>{"use strict";e.d(r,{A:()=>h});var i=e(7002),s=e(3716),n=e(1366),l=e(5632),a=e(8603),o=e(1198),d=e(8399);let c=[{from:/^https?:\/\/(www|beta)\.?diktaattoriporssi.com/,to:""}],A={h3:t=>(0,i.jsx)(d.A,{children:t.children}),h2:t=>(0,i.jsx)(o.A,{children:t.children}),p:t=>(0,i.jsx)(a.A,{children:t.children}),a:t=>{let r=c.reduce((t,r)=>t.replace(r.from,r.to),t.href);return!r.includes("diktaattoriporssi")&&/^https?/.test(r)?(0,i.jsx)(n.A,{to:r,children:t.children}):(0,i.jsx)(l.A,{to:r,children:t.children})}},h=t=>{let{children:r}=t;return(0,i.jsx)(s.oz,{components:A,children:r})}},7819:(t,r,e)=>{"use strict";e.d(r,{AL:()=>A,EL:()=>p,Jy:()=>m,QO:()=>h,VF:()=>S,Xw:()=>f,c6:()=>w,mG:()=>Y,nE:()=>g,oK:()=>u,tG:()=>y});var i=e(1890),s=e(2221),n=e(1141),l=e(1707),a=e(8586),o=e(8320),d=e(708),c=e(6976);let A=t=>t.reignsCollection.items.reduce((t,r)=>{let e=i.c9.fromISO(r.start);return t+(r.end?i.c9.fromISO(r.end):i.c9.utc()).diff(e,["days"]).days},0),h=(t,r)=>{if(!t.lifespan)throw Error("No lifespan");let e=i.c9.fromISO(t.lifespan.start);return(t.lifespan.end?i.c9.fromISO(t.lifespan.end):i.c9.utc()).diff(e,r)},u=(t,r)=>{if(!t.reignsCollection.items[0])throw Error("No first reign");if(!t.lifespan)throw Error("No lifespan");let e=i.c9.fromISO(t.lifespan.start);return i.c9.fromISO(t.reignsCollection.items[0].start).diff(e,r)},m=(0,s.A)([(0,n.A)(A),(0,l.A)((0,a.A)((0,o.A)("sortName"),d.A))]),f=(0,c.A)((0,a.A)((0,o.A)("sortName"),d.A)),p=(0,s.A)([(0,l.A)(t=>t.canonicalRanking||999999),(0,l.A)((0,a.A)((0,o.A)("sortName"),d.A))]),g=(0,s.A)([(0,n.A)(t=>h(t,["years"]).years),(0,l.A)((0,a.A)((0,o.A)("sortName"),d.A))]),y=(0,s.A)([(0,l.A)(t=>u(t,["years"]).years),(0,l.A)((0,a.A)((0,o.A)("sortName"),d.A))]),S=(0,s.A)([(0,l.A)(t=>t.reignsCollection.items[0].start),(0,l.A)((0,a.A)((0,o.A)("sortName"),d.A))]),Y=(0,s.A)([(0,n.A)(t=>t.listedAt?i.c9.fromISO(t.listedAt):i.c9.fromISO("1899-01-01")),(0,l.A)((0,a.A)((0,o.A)("sortName"),d.A))]),w=(0,s.A)([(0,n.A)(t=>t.majorStoryUpdateAt?i.c9.fromISO(t.majorStoryUpdateAt):i.c9.fromISO("1899-01-01")),(0,l.A)((0,a.A)((0,o.A)("sortName"),d.A))]);i.c9.local().year},8399:(t,r,e)=>{"use strict";e.d(r,{A:()=>n});var i=e(4542),s=e(2615);let n=({children:t})=>(0,i.Y)(s.DZ,{as:"h3",mb:3,mt:3,children:t})},8543:(t,r,e)=>{"use strict";e.d(r,{J:()=>n,Y:()=>s});var i=e(1890);let s=t=>
1n(t).setLocale("fi").toLocaleString(),n=t=>t instanceof i.c9?t:i.c9.fromISO(t).setLocale("fi").setZone("Europe/Helsinki")},9854:(t,r,e)=>{"use strict";e.d(r,{A:()=>A});var i=e(4542),s=e(2615),n=e(5632),l=e(7534),a=e(5324),o=e(2977),d=e(8399),c=e(5913);let A=({showRanking:t=!1,dictators:r})=>0===r.length?null:(0,i.Y)(s.az,{children:r.map(r=>(0,i.FD)(s.az,{sx:{display:"grid",gridTemplateColumns:"100px auto",gap:2},my:4,children:[(0,i.Y)(s.az,{sx:{gridRowStart:1,gridColumnStart:1,gridRowEnd:2},children:(0,i.Y)(c.A,{data:r.primaryImage,config:{width:150,aspectRatio:.75,fit:"fill",focus:"face"},styles:{borderStyle:"solid",borderColor:"link",borderWidth:"1px",borderRadius:1,display:"block"},alt:r.name})}),(0,i.FD)(s.az,{sx:{gridRowStart:1,gridRowEnd:2,gridColumnStart:2},children:[(0,i.Y)(d.A,{children:(0,i.FD)(n.A,{to:`/diktaattori/${r.slug}`,children:[t&&(0,i.FD)("strong",{children:[r.canonicalRanking,". "]}),r.name]})}),(0,i.Y)("table",{sx:{th:{textAlign:"left",verticalAlign:"top"}},children:(0,i.FD)("tbody",{children:[(0,i.FD)("tr",{children:[(0,i.Y)("th",{children:"Vallassa"}),(0,i.Y)("td",{children:r.reignsCollection.items.map((t,r)=>(0,i.Y)(s.az,{children:(0,i.Y)(o.A,{reign:t})},r))})]}),(0,i.FD)("tr",{children:[(0,i.Y)("th",{children:"Maa"}),(0,i.Y)("td",{children:(0,i.Y)(a.A,{country:r.country})})]})]})})]}),r.synopsis&&(0,i.Y)(s.az,{sx:{gridRowStart:2,gridColumnStart:1,gridColumnEnd:3},children:(0,i.Y)(l.A,{children:r.synopsis})})]},r.sys.id))})}},t=>{t.O(0,[509,8495,5707,5504,4081,475,3716,1085,863,636,6593,8792],()=>t(t.s=7370)),_N_E=t.O()}]);
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.