1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[84996],{604:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/africa-capitals",function(){return a(80402)}])},1479:(e,t,a)=>{(e.exports=a(60335)).tz.load(a(6312))},60335:function(e,t,a){var n,i,o;!function(r,c){"use strict";e.exports?e.exports=c(a(10841)):(i=[a(10841)],void 0===(o="function"==typeof(n=c)?n.apply(t,i):n)||(e.exports=o))}(0,function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,a,n={},i={},o={},r={},c={};e&&"string"==typeof e.version||M("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var s=e.version.split("."),l=+s[0],u=+s[1];function f(e){return e>96?e-87:e>64?e-29:e-48}function m(e){var t,a=0,n=e.split("."),i=n[0],o=n[1]||"",r=1,c=0,s=1;for(45===e.charCodeAt(0)&&(a=1,s=-1);a<i.length;a++)c=60*c+(t=f(i.charCodeAt(a)));for(a=0;a<o.length;a++)r/=60,c+=(t=f(o.charCodeAt(a)))*r;return c*s}function p(e){for(var t=0;t<e.length;t++)e[t]=m(e[t])}function d(e,t){var a,n=[];for(a=0;a<t.length;a++)n[a]=e[t[a]];return n}function h(e){var t=e.split("|"),a=t[2].split(" "),n=t[3].split(""),i=t[4].split(" ");p(a),p(n),p(i);for(var o=n.length,r=0;r<o;r++)i[r]=Math.round((i[r-1]||0)+6e4*i[r]);return i[o-1]=1/0,{name:t[0],abbrs:d(t[1].split(" "),n),offsets:d(a,n),untils:i,population:0|t[5]}}function z(e){e&&this._set(h(e))}function b(e,t){this.name=e,this.zones=t}function y(e){var t=e.toTimeString(),a=t.match(/\([a-z ]+\)/i);"GMT"===(a=a&&a[0]?(a=a[0].match(/[A-Z]/g))?a.join(""):void 0:(a=t.match(/[A-Z]{3,5}/g))?a[0]:void 0)&&(a=void 0),this.at=+e,this.abbr=a,this.offset=e.getTimezoneOffset()}function v(e){this.zone=e,this.offsetScore=0,this.abbrScore=0}function A(e,t){return e.offsetScore!==t.offsetScore?e.offsetScore-t.offsetScore:e.abbrScore!==t.abbrScore?e.abbrScore-t.abbrScore:e.zone.population!==t.zone.population?t.zone.population-e.zone.population:t.zone.name.localeCompare(e.zone.name)}function g(e){return(e||"").toLowerCase().replace(/\//g,"_")}function x(e){var t,a,i,o;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)n[o=g(a=(i=e[t].split("|"))[0])]=e[t],r[o]=a,function(e,t){var a,n;for(p(t),a=0;a<t.length;a++)c[n=t[a]]=c[n]||{},c[n][e]=!0}(o,i[2].split(" "))}function j(e,t){var a,o=n[e=g(e)];return o instanceof z?o:"string"==typeof o?(o=new z(o),n[e]=o,o):i[e]&&t!==j&&(a=j(i[e],j))?((o=n[e]=new z)._set(a),o.name=r[e],o):null}function w(e){var t,a,n,o;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)n=g((a=e[t].split("|"))[0]),o=g(a[1]),i[n]=o,r[n]=a[0],i[o]=n,r[o]=a[1]}function _(e){return _.didShowError||(_.didShowError=!0,M("moment.tz.zoneExists('"+e+"') has been deprecated in favor of !moment.tz.zone('"+e+"')")),!!j(e)}function C(e){var t="X"===e._f||"x"===e._f;return!!(e._a&&void 0===e._tzm&&!t)}function M(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}function N(t){var a,n=Array.prototype.slice.call(arguments,0,-1),i=arguments[arguments.length-1],o=e.utc.apply(null,n);return!e.isMoment(t)&&C(o)&&(a=j(i))&&o.add(a.parse(o),"minutes"),o.tz(i),o}(l<2||2===l&&u<6)&&M("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),z.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t;if((t=function(e,t){var a,n=t.length;if(e<t[0])return 0;if(n>1&&t[n-1]===1/0&&e>=t[n-2])return n-1;if(e>=t[n-1])return -1;for(var i=0,o=n-1;o-i>1;)t[a=Math.floor((i+o)/2)]<=e?i=a:o=a;return o}(+e,this.untils))>=0)return t},countries:function(){var e=this.name;return Object.keys(o).filter(function(t){return -1!==o[t].zones.indexOf(e)})},parse:function(e){var t,a,n,i,o=+e,r=this.offsets,c=this.untils,s=c.length-1;for(i=0;i<s;i++)if(t=r[i],a=r[i+1],n=r[i?i-1:i],t<a&&N.moveAmbiguousForward?t=a:t>n&&N.moveInvalidForward&&(t=n),o<c[i]-6e4*t)return r[i];return r[s]},abbr:function(e){return this.abbrs[this._index(e)]},offset:function(e){return M("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(e)]},utcOffset:function(e){return this.offsets[this._index(e)]}},v.prototype.scoreOffsetAt=function(e){this.offsetScore+=Math.abs(this.zone.utcOffset(e.at)-e.offset),this.zone.abbr(e.at).replace(/[^A-Z]/g,"")!==e.abbr&&this.abbrScore++},N.version="0.6.0",N.dataVersion="",N._zones=n,N._links=i,N._names=r,N._countries=o,N.add=x,N.link=w,N.load=function(e){x(e.zones),w(e.links),function(e){var t,a,n,i;if(e&&e.length)for(t=0;t<e.length;t++)a=(i=e[t].split("|"))[0].toUpperCase(),n=i[1].split(" "),o[a]=new b(a,n)}(e.countries),N.dataVersion=e.version},N.zone=j,N.zoneExists=_,N.guess=function(e){return(!a||e)&&(a=function(){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e&&e.length>3){var t=r[g(e)];if(t)return t;M("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(e){}var a,n,i,o=function(){var e,t,a,n,i=new Date().getFullYear()-2,o=new y(new Date(i,0,1)),r=o.offset,c=[o];for(n=1;n<48;n++)(a=new Date(i,n,1).getTimezoneOffset())!==r&&(c.push(e=function(e,t){for(var a,n;n=((t.at-e.at)/12e4|0)*6e4;)(a=new y(new Date(e.at+n))).offset===e.offset?e=a:t=a;return e}(o,t=new y(new Date(i,n,1)))),c.push(new y(new Date(e.at+6e4))),o=t,r=a);for(n=0;n<4;n++)c.push(new y(new Date(i+n,0,1))),c.push(new y(new Date(i+n,6,1)));return c}(),s=o.length,l=function(e){var t,a,n,i,o=e.length,s={},l=[],u={};for(t=0;t<o;t++)if(n=e[t].offset,!u.hasOwnProperty(n)){for(a in i=c[n]||{})i.hasOwnProperty(a)&&(s[a]=!0);u[n]=!0}for(t in s)s.hasOwnProperty(t)&&l.push(r[t]);return l}(o),u=[];for(n=0;n<l.length;n++){for(i=0,a=new v(j(l[n]),s);i<s;i++)a.scoreOffsetAt(o[i]);u.push(a)}return u.sort(A),u.length>0?u[0].zone.name:void 0}()),a},N.names=function(){var e,t=[];for(e in r)r.hasOwnProperty(e)&&(n[e]||n[i[e]])&&r[e]&&t.push(r[e]);return t.sort()},N.Zone=z,N.unpack=h,N.unpackBase60=m,N.needsOffset=C,N.moveInvalidForward=!0,N.moveAmbiguousForward=!1,N.countries=function(){return Object.keys(o)},N.zonesForCountry=function(e,t){if(!(e=o[e.toUpperCase()]||null))return null;var a=e.zones.sort();return t?a.map(function(e){var t=j(e);return{name:e,offset:t.utcOffset(new Date)}}):a};var S=e.fn;function k(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function O(e){return function(){return this._z=null,e.apply(this,arguments)}}e.tz=N,e.defaultZone=null,e.updateOffset=function(t,a){var n,i=e.defaultZone;if(void 0===t._z&&(i&&C(t)&&!t._isUTC&&t.isValid()&&(t._d=e.utc(t._a)._d,t.utc().add(i.parse(t),"minutes")),t._z=i),t._z)if(16>Math.abs(n=t._z.utcOffset(t))&&(n/=60),void 0!==t.utcOffset){var o=t._z;t.utcOffset(-n,a),t._z=o}else t.zone(n,a)},S.tz=function(t,a){if(t){if("string"!=typeof t)throw Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=j(t),this._z?e.updateOffset(this,a):M("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},S.zoneName=k(S.zoneName),S.zoneAbbr=k(S.zoneAbbr),S.utc=O(S.utc),S.local=O(S.local),t=S.utcOffset,S.utcOffset=function(){return arguments.length>0&&(this._z=null),t.apply(this,arguments)},e.tz.setDefault=function(t){return(l<2||2===l&&u<9)&&M("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?j(t):null,e};var T=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(T)?(T.push("_z"),T.push("_a")):T&&(T._z=null),e})},74467:()=>{},80402:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var n=a(37876),i=a(14232),o=a(3830),r=a(1479),c=a.n(r);a(74467);let s=()=>{let e=[{country:"Algeria",capital:"Algiers",timezone:"Africa/Algiers"},{country:"Angola",capital:"Luanda",timezone:"Africa/Luanda"},{country:"Benin",capital:"Porto-Novo",timezone:"Africa/Porto-Novo"},{country:"Botswana",capital:"Gaborone",timezone:"Africa/Gaborone"},{country:"Burkina Faso",capital:"Ouagadougou",timezone:"Africa/Ouagadougou"},{country:"Burundi",capital:"Gitega",timezone:"Africa/Bujumbura"},{country:"Cameroon",capital:"Yaound\xe9",timezone:"Africa/Douala"},{country:"Cape Verde",capital:"Praia",timezone:"Atlantic/Cape_Verde"},{country:"Central African Republic",capital:"Bangui",timezone:"Africa/Bangui"}
1,{country:"Chad",capital:"N'Djamena",timezone:"Africa/Ndjamena"},{country:"Comoros",capital:"Moroni",timezone:"Indian/Comoro"},{country:"Democratic Republic of the Congo",capital:"Kinshasa",timezone:"Africa/Kinshasa"},{country:"Republic of the Congo",capital:"Brazzaville",timezone:"Africa/Brazzaville"},{country:"Djibouti",capital:"Djibouti",timezone:"Africa/Djibouti"},{country:"Egypt",capital:"Cairo",timezone:"Africa/Cairo"},{country:"Equatorial Guinea",capital:"Malabo",timezone:"Africa/Malabo"},{country:"Eritrea",capital:"Asmara",timezone:"Africa/Asmara"},{country:"Eswatini",capital:"Mbabane (administrative), Lobamba (legislative)",timezone:"Africa/Mbabane"},{country:"Ethiopia",capital:"Addis Ababa",timezone:"Africa/Addis_Ababa"},{country:"Gabon",capital:"Libreville",timezone:"Africa/Libreville"},{country:"Gambia",capital:"Banjul",timezone:"Africa/Banjul"},{country:"Ghana",capital:"Accra",timezone:"Africa/Accra"},{country:"Guinea",capital:"Conakry",timezone:"Africa/Conakry"},{country:"Guinea-Bissau",capital:"Bissau",timezone:"Africa/Bissau"},{country:"Ivory Coast",capital:"Yamoussoukro (political), Abidjan (economic)",timezone:"Africa/Abidjan"},{country:"Kenya",capital:"Nairobi",timezone:"Africa/Nairobi"},{country:"Lesotho",capital:"Maseru",timezone:"Africa/Maseru"},{country:"Liberia",capital:"Monrovia",timezone:"Africa/Monrovia"},{country:"Libya",capital:"Tripoli",timezone:"Africa/Tripoli"},{country:"Madagascar",capital:"Antananarivo",timezone:"Indian/Antananarivo"},{country:"Malawi",capital:"Lilongwe",timezone:"Africa/Blantyre"},{country:"Mali",capital:"Bamako",timezone:"Africa/Bamako"},{country:"Mauritania",capital:"Nouakchott",timezone:"Africa/Nouakchott"},{country:"Mauritius",capital:"Port Louis",timezone:"Indian/Mauritius"},{country:"Morocco",capital:"Rabat",timezone:"Africa/Casablanca"},{country:"Mozambique",capital:"Maputo",timezone:"Africa/Maputo"},{country:"Namibia",capital:"Windhoek",timezone:"Africa/Windhoek"},{country:"Niger",capital:"Niamey",timezone:"Africa/Niamey"},{country:"Nigeria",capital:"Abuja",timezone:"Africa/Lagos"},{country:"Rwanda",capital:"Kigali",timezone:"Africa/Kigali"},{country:"S\xe3o Tom\xe9 and Pr\xedncipe",capital:"S\xe3o Tom\xe9",timezone:"Africa/Sao_Tome"},{country:"Senegal",capital:"Dakar",timezone:"Africa/Dakar"},{country:"Seychelles",capital:"Victoria",timezone:"Indian/Mahe"},{country:"Sierra Leone",capital:"Freetown",timezone:"Africa/Freetown"},{country:"Somalia",capital:"Mogadishu",timezone:"Africa/Mogadishu"},{country:"South Africa",capital:"Pretoria (administrative), Cape Town (legislative), Bloemfontein (judicial)",timezone:"Africa/Johannesburg"},{country:"South Sudan",capital:"Juba",timezone:"Africa/Juba"},{country:"Sudan",capital:"Khartoum",timezone:"Africa/Khartoum"},{country:"Tanzania",capital:"Dodoma",timezone:"Africa/Dar_es_Salaam"},{country:"Togo",capital:"Lom\xe9",timezone:"Africa/Lome"},{country:"Tunisia",capital:"Tunis",timezone:"Africa/Tunis"},{country:"Uganda",capital:"Kampala",timezone:"Africa/Kampala"},{country:"Zambia",capital:"Lusaka",timezone:"Africa/Lusaka"},{country:"Zimbabwe",capital:"Harare",timezone:"Africa/Harare"}],[t,a]=(0,i.useState)(""),[o,r]=(0,i.useState)(""),[s,l]=(0,i.useState)(e),[u,f]=(0,i.useState)(null),[m,p]=(0,i.useState)("asc");(0,i.useEffect)(()=>{let e=()=>{a(c()().format("MMMM D, YYYY - hh:mm:ss A"))};e();let t=setInterval(e,1e3);return()=>clearInterval(t)},[]),(0,i.useEffect)(()=>
1{l(e.filter(e=>e.country.toLowerCase().includes(o.toLowerCase())||e.capital.toLowerCase().includes(o.toLowerCase())))},[o]);let d=t=>{let a="asc";u===t&&(a="asc"===m?"desc":"asc"),f(t),p(a),l([...s].sort((n,i)=>{let o,r;if("index"===t)o=e.indexOf(n)+1,r=e.indexOf(i)+1;else if("time"===t)o=c()().tz(n.timezone).format("HH:mm"),r=c()().tz(i.timezone).format("HH:mm");else{if("country"!==t&&"capital"!==t)return 0;o=n[t].toLowerCase(),r=i[t].toLowerCase()}return o<r?"asc"===a?-1:1:o>r?"asc"===a?1:-1:0}))};return(0,n.jsxs)("div",{style:{padding:"20px",backgroundColor:"#f8f9fa",minHeight:"100vh"},children:[(0,n.jsx)("style",{children:"\n .sortable {\n cursor: pointer;\n user-select: none;\n text-align: center;\n }\n .clock {\n font-size: 1.2rem;\n font-weight: bold;\n color: #0d6efd;\n }\n .table-container {\n background: white;\n padding: 20px;\n border-radius: 8px;\n box-shadow: 0 2px 4px rgba(0,0,0,0.1);\n }\n .table th {\n width: 33.33%;\n }\n .table th:first-child {\n width: auto;\n }\n "}),(0,n.jsxs)("div",{className:"container-fluid",children:[(0,n.jsx)("div",{className:"header-section mb-4",children:(0,n.jsxs)("div",{className:"row align-items-center",children:[(0,n.jsx)("div",{className:"col-md-8",children:(0,n.jsx)("h1",{className:"mb-0",children:"African Countries & Capitals"})}),(0,n.jsx)("div",{className:"col-md-4",children:(0,n.jsx)("input",{type:"text",className:"form-control",placeholder:"Search countries or capitals...",value:o,onChange:e=>r(e.target.value)})})]})}),(0,n.jsx)("div",{className:"",children:(0,n.jsx)("div",{className:"table-responsive",children:(0,n.jsxs)("table",{className:"table table-striped table-hover table-bordered",children:[(0,n.jsx)("thead",{className:"table-dark",children:(0,n.jsxs)("tr",{children:[(0,n.jsxs)("th",{className:"sortable",onClick:()=>d("index"),children:["# ","index"===u&&("asc"===m?"â":"â")]}),(0,n.jsxs)("th",{className:"sortable",onClick:()=>d("country"),children:["Country ","country"===u&&("asc"===m?"â":"â")]}),(0,n.jsxs)("th",{className:"sortable",onClick:()=>d("capital"),children:["Capital ","capital"===u&&("asc"===m?"â":"â")]}),(0,n.jsxs)("th",{className:"sortable",onClick:()=>d("time"),children:["Time ","time"===u&&("asc"===m?"â":"â")]})]})}),(0,n.jsx)("tbody",{children:s.map((e,t)=>{let a;return(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:t+1}),(0,n.jsx)("td",{children:e.country}),(0,n.jsx)("td",{children:e.capital}),(0,n.jsx)("td",{children:(a=e.timezone,c()().tz(a).format("hh:mm A"))})]},e.country)})})]})})})]})]})};class l extends o.A{body(){return(0,n.jsx)("div",{children:(0,n.jsx)("section",{className:"bg-light",children:(0,n.jsx)("div",{className:"container",children:(0,n.jsx)("div",{className:"container-flex",children:(0,n.jsxs)("div",{className:"row align-items-center",children:[(0,n.jsxs)("div",{className:"col-12 col-md-12",children:[(0,n.jsx)(s,{}),(0,n.jsxs)("p",{children:["Related: ",(0,n.jsx)("a",{href:"/african-flags/",children:"African Flags"})]}),(0,n.jsx)("p",{children:(0,n.jsx)("a",{href:"/countries-in-africa/",children:"African Countries"})}),(0,n.jsx)("p",{children:(0,n.jsx)("a",{href:"/africa-time/",children:"Time in Africa"})})]}),(0,n.jsx)("div",{className:"col-12 col-md-12 border-top pt-5"})]})})})})})}title(){return"Africa Capitals"}description(){return"On this page, you will find a list of all the capital cities of Africa with the times in each one of them."}keywords(){return"africa capital cities, africa capitals, capitals of africa, capital cities in africa, african countries and capitals, africa capitals, africa countries and capitals"}getUrl(){return"/africa-capitals/"}canonicalUrl(){return"https://arahr.com/africa-capitals/"}}}},e=>{e.O(0,[43716,30871,76988,45438,28992,3830,90636,46593,38792],()=>e(e.s=604)),_N_E=e.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.