text: (window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"./app/components/Country/style.scss":function(e,t,n){var o=n("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./app/components/Country/style.scss");"string"==typeof o&&(o=[[e.i,o,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("./node_modules/style-loader/lib/addStyles.js")(o,r);o.locals&&(e.exports=o.locals)},"./app/components/List/index.js":function(e,t,n){"use strict";var o;n("./node_modules/react/index.js"),n("./node_modules/prop-types/index.js"),n("./app/components/List/style.scss");function r(e,t,n,r){o||(o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var s=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),t&&s)for(var a in s)void 0===t[a]&&(t[a]=s[a]);else t||(t=s||{});if(1===i)t.children=r;else if(i>1){for(var c=new Array(i),l=0;l<i;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:o,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}var s=r("div",{}),i=function(e){var t=e.component,n=e.items,o=e.keyName,i=void 0===o?"id":o,a=t,c=s;return c=n?n.map(function(e){return r(a,{item:e},"item-".concat(e[i]))}):r(a,{}),r("div",{className:"list-wrapper"},void 0,r("ul",{},void 0,c))};n.d(t,"a",function(){return i})},"./app/components/List/style.scss":function(e,t,n){var o=n("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./app/components/List/style.scss");"string"==typeof o&&(o=[[e.i,o,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("./node_modules/style-loader/lib/addStyles.js")(o,r);o.locals&&(e.exports=o.locals)},"./app/components/ListItem/index.js":function(e,t,n){"use strict";var o;n("./node_modules/react/index.js"),n("./node_modules/prop-types/index.js"),n("./app/components/ListItem/style.scss");function r(e,t,n,r){o||(o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var s=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),t&&s)for(var a in s)void 0===t[a]&&(t[a]=s[a]);else t||(t=s||{});if(1===i)t.children=r;else if(i>1){for(var c=new Array(i),l=0;l<i;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:o,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}var s=function(e){return r("li",{className:"list-item-wrapper"},void 0,r("div",{className:"list-item"},void 0,e.item))};n.d(t,"a",function(){return s})},"./app/components/ListItem/style.scss":function(e,t,n){var o=n("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./app/components/ListItem/style.scss");"string"==typeof o&&(o=[[e.i,o,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("./node_modules/style-loader/lib/addStyles.js")(o,r);o.locals&&(e.exports=o.locals)},"./app/containers/CountriesPage/index.js":function(e,t,n){"use strict";n.r(t);var o=n("./node_modules/react-redux/lib/index.js"),r=n("./node_modules/redux/lib/redux.js"),s=n("./app/utils/injectReducer.js"),i=n("./app/utils/injectSaga.js"),a=Symbol(),c=Symbol(),l=Symbol(),u=Symbol(),d=Symbol(),p=Symbol(),f=Symbol(),m="nameDescending";function y(e){return{type:l,payload:e}}var v=n("./node_modules/reselect/es/index.js"),b=Object(v.a)(function(e){return e.countries},function(e){return e.countries});function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){g(e,t,n[t])})}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j={countries:[],country:{},pickedCountry:"",loading:!1,loadingCountry:!1,errorCountriesList:!1,errorCountry:!1,sortType:m};var _,x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j,t=arguments.length>1?arguments[1]:void 0,n=t.type,o=t.payload;switch(n){case l:return h({},e,{loading:!1,countries:o});case u:return h({},e,{loadingCountry:!1,country:o,pickedCountry:o.name});case d:return h({},e,{errorCountriesList:!0,loading:!1});case p:return h({},e,{errorCountry:!0,loadingCountry:!1});case a:return h({},e,{setCountriesError:!1,loading:!0});case c:return h({},e,{setCountryError:!1,loadingCountry:!0});case f:return h({},e,{sortType:o});default:return e}},w=n("./node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.cjs.js"),S=n("./node_modules/ramda/src/index.js"),O=n("./app/utils/request.js"),C=regeneratorRuntime.mark(L),k=regeneratorRuntime.mark(T),P=regeneratorRuntime.mark(A),N=regeneratorRuntime.mark(W);function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=(R(_={},m,function(e,t){return e.name.localeCompare(t.name)}),R(_,"nameAscending",function(e,t){return t.name.localeCompare(e.name)}),R(_,"populationDescending",function(e,t){return e.population/e.area-t.population/t.area}),R(_,"populationAscending",function(e,t){return t.population/t.area-e.population/e.area}),_);function L(e){var t,n;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.payload,o.next=3,Object(w.select)(b);case 3:return n=o.sent,o.next=6,Object(w.put)(y(Object(S.sort)(E[t],n)));case 6:case"end":return o.stop()}},C)}function T(e){var t,n;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return t="https://restcountries.eu/rest/v2/region/".concat(e.payload,"?fields=name;population;area"),o.prev=1,o.next=4,Object(w.call)(O.a,t);case 4:return n=o.sent,o.next=7,Object(w.put)(y(n));case 7:o.next=13;break;case 9:return o.prev=9,o.t0=o.catch(1),o.next=13,Object(w.put)({type:d});case 13:case"end":return o.stop()}},k,null,[[1,9]])}function A(e){var t,n,o;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.payload,n="https://restcountries.eu/rest/v2/name/".concat(t),r.prev=2,r.next=5,Object(w.call)(O.a,n);case 5:return o=r.sent,r.next=8,Object(w.put)((s=Object(S.head)(o),{type:u,payload:s}));case 8:r.next=14;break;case 10:return r.prev=10,r.t0=r.catch(2),r.next=14,Object(w.put)({type:p});case 14:case"end":return r.stop()}var s},P,null,[[2,10]])}function W(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(w.takeLatest)(a,T);case 2:return e.next=4,Object(w.takeLatest)(c,A);case 4:return e.next=6,Object(w.takeEvery)(f,L);case 6:case"end":return e.stop()}},N)}var $,I=n("./node_modules/react/index.js"),D=n.n(I),M=(n("./node_modules/prop-types/index.js"),n("./node_modules/react-helmet/lib/Helmet.js")),z=n("./node_modules/react-router-dom/index.js"),F=n("./app/helpers/ErrorWrapper/index.js"),q=n("./app/helpers/LoaderWrapper/index.js");n("./app/components/Country/style.scss");function H(e,t,n,o){$||($="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var r=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={children:void 0}),t&&r)for(var i in r)void 0===t[i]&&(t[i]=r[i]);else t||(t=r||{});if(1===s)t.children=o;else if(s>1){for(var a=new Array(s),c=0;c<s;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:$,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}var J,B=H("div",{className:"country"},void 0,H("div",{className:"country__preview"},void 0,H("h3",{className:"country__preview__title"},void 0,"Pick a country"))),U=function(e){var t=e.errorCountry,n=e.loadingCountry,o=e.country,r=e.country,s=r.name,i=r.nativeName,a=r.capital,c=r.area,l=r.population,u=r.subregion,d=r.flag;return!Object(S.isEmpty)(o)||n?H("div",{className:"country"},void 0,H(F.a,{error:t,errorMessage:"Something went wrong, please try another country!"},void 0,H(q.a,{loading:n},void 0,H("div",{className:"country__header"},void 0,H("img",{className:"country__img",src:d,alt:"Country flag"}),H("h3",{className:"country__name"},void 0,s)),H("ul",{className:"country__info"},void 0,i&&H("li",{className:"country__item"},void 0,"Native name: ",H("strong",{},void 0,i)),a&&H("li",{className:"country__item"},void 0,"Capital: ",H("strong",{},void 0,a)),c&&H("li",{className:"country__item"},void 0,"Area: ",H("strong",{},void 0,c," km²")),l&&H("li",{className:"country__item"},void 0,"Population: ",H("strong",{},void 0,l)),u&&H("li",{className:"country__item"},void 0,"Subregion: ",H("strong",{},void 0,u)))))):B},G=n("./app/components/List/index.js"),K=n("./node_modules/classnames/index.js"),Q=n.n(K),V=n("./app/components/ListItem/index.js");function X(e,t,n,o){J||(J="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var r=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={children:void 0}),t&&r)for(var i in r)void 0===t[i]&&(t[i]=r[i]);else t||(t=r||{});if(1===s)t.children=o;else if(s>1){for(var a=new Array(s),c=0;c<s;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:J,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}var Y,Z=function(e){var t=e.item,n=e.pickedCountry,o=e.getCountry,r=X("div",{className:Q()("country-list-item",{active:n===t.name}),onClick:o(t.name)},void 0,X("span",{},void 0,t.name));return X(V.a,{item:r},"country-list-item-".concat(t.name))},ee=Object(o.connect)(function(e){return{pickedCountry:e.countries.pickedCountry}},function(e){return{getCountry:function(t){return function(){return e(function(e){return{type:c,payload:e}}(t))}}}})(Z);n("./app/containers/CountriesPage/style.scss");function te(e){return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ne(e,t,n,o){Y||(Y="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var r=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={children:void 0}),t&&r)for(var i in r)void 0===t[i]&&(t[i]=r[i]);else t||(t=r||{});if(1===s)t.children=o;else if(s>1){for(var a=new Array(s),c=0;c<s;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:Y,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function oe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function re(e){return(re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function se(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ie(e,t){return(ie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ae=ne(M.Helmet,{},void 0,ne("title",{},void 0,"Country Page"),ne("meta",{name:"description",content:"List of countries"})),ce=ne("section",{className:"centered"},void 0,ne(z.Link,{className:"page-back",to:"/",title:"Back to regions"},void 0,"⟵"),ne("h1",{},void 0,"Countries")),le=ne("strong",{className:"sort-panel__title"},void 0,"Sort by:"),ue=ne("option",{value:m},void 0,"Name ⬇"),de=ne("option",{value:"nameAscending"},void 0,"Name ⬆"),pe=ne("option",{value:"populationDescending"},void 0,"Population density ⬇"),fe=ne("option",{value:"populationAscending"},void 0,"Population density ⬆"),me=function(e){function t(){var e,n,o,r,s,i,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];return o=this,r=(e=re(t)).call.apply(e,[this].concat(l)),n=!r||"object"!==te(r)&&"function"!=typeof r?se(o):r,s=se(n),a=function(e){(0,n.props.sortCountries)(e.target.value)},(i="sortCountries")in s?Object.defineProperty(s,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[i]=a,n}var n,o,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ie(e,t)}(t,D.a.Component),n=t,(o=[{key:"componentDidMount",value:function(){var e=this.props,t=e.getCountries,n=e.sortCountries;t(e.match.params.id),n()}},{key:"render",value:function(){var e=this.props,t=e.loading,n=e.errorCountriesList,o=e.errorCountry,r=e.loadingCountry,s=e.countries,i=e.country,a=e.sortType;return ne("div",{className:"country-page"},void 0,ae,ne("div",{className:"page"},void 0,ce,ne("section",{className:"content"},void 0,ne("div",{className:"countries-list"},void 0,ne("div",{className:"sort-panel"},void 0,le,ne("select",{className:"sort-panel__sort-list",onChange:this.sortCountries,value:a},void 0,ue,de,pe,fe)),ne(F.a,{error:n,errorMessage:"Something went wrong, please try another region!"},void 0,ne(q.a,{loading:t},void 0,!!s.length&&ne(G.a,{items:s,component:ee,keyName:"name"})))),ne(U,{errorCountry:o,loadingCountry:r,country:i}))))}}])&&oe(n.prototype,o),r&&oe(n,r),t}();n.d(t,"mapDispatchToProps",function(){return ye});var ye=function(e){return{sortCountries:function(t){return e(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m;return{type:f,payload:e}}(t))},getCountries:function(t){return e({type:a,payload:t})}}},ve=Object(o.connect)(function(e){var t=e.countries;return{countries:b(e),country:t.country,loading:t.loading,loadingCountry:t.loadingCountry,sortType:t.sortType,errorCountriesList:t.errorCountriesList,errorCountry:t.errorCountry}},ye),be=Object(s.a)({key:"countries",reducer:x}),he=Object(i.a)({key:"countries",saga:W});t.default=Object(r.compose)(be,he,ve)(me)},"./app/containers/CountriesPage/style.scss":function(e,t,n){var o=n("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./app/containers/CountriesPage/style.scss");"string"==typeof o&&(o=[[e.i,o,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("./node_modules/style-loader/lib/addStyles.js")(o,r);o.locals&&(e.exports=o.locals)},"./app/helpers/ErrorWrapper/index.js":function(e,t,n){"use strict";var o;n("./node_modules/react/index.js"),n("./node_modules/prop-types/index.js"),n("./app/helpers/ErrorWrapper/style.scss");function r(e,t,n,r){o||(o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var s=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),t&&s)for(var a in s)void 0===t[a]&&(t[a]=s[a]);else t||(t=s||{});if(1===i)t.children=r;else if(i>1){for(var c=new Array(i),l=0;l<i;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:o,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}var s=function(e){var t=e.error,n=e.errorMessage,o=void 0===n?"Something went wrong, please try again!":n,s=e.children;return t?r("div",{className:"error-wrapper"},void 0,r("strong",{},void 0,o)):s};s.defaultProps={error:!1};var i=s;n.d(t,"a",function(){return i})},"./app/helpers/ErrorWrapper/style.scss":function(e,t,n){var o=n("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./app/helpers/ErrorWrapper/style.scss");"string"==typeof o&&(o=[[e.i,o,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("./node_modules/style-loader/lib/addStyles.js")(o,r);o.locals&&(e.exports=o.locals)},"./app/helpers/LoaderWrapper/index.js":function(e,t,n){"use strict";n("./node_modules/react/index.js"),n("./node_modules/prop-types/index.js");var o,r=n("./app/components/LoadingIndicator/index.js");n("./app/helpers/LoaderWrapper/style.scss");function s(e,t,n,r){o||(o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var s=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),t&&s)for(var a in s)void 0===t[a]&&(t[a]=s[a]);else t||(t=s||{});if(1===i)t.children=r;else if(i>1){for(var c=new Array(i),l=0;l<i;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:o,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}var i=s("div",{className:"loader"},void 0,s(r.a,{})),a=function(e){var t=e.loading,n=e.children;return t?i:n};a.defaultProps={loading:!1};var c=a;n.d(t,"a",function(){return c})},"./app/helpers/LoaderWrapper/style.scss":function(e,t,n){var o=n("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./app/helpers/LoaderWrapper/style.scss");"string"==typeof o&&(o=[[e.i,o,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n("./node_modules/style-loader/lib/addStyles.js")(o,r);o.locals&&(e.exports=o.locals)},"./app/utils/checkStore.js":function(e,t,n){"use strict";n.d(t,"a",function(){return d});var o=n("./node_modules/lodash/conformsTo.js"),r=n.n(o),s=n("./node_modules/lodash/isFunction.js"),i=n.n(s),a=n("./node_modules/lodash/isObject.js"),c=n.n(a),l=n("./node_modules/invariant/browser.js"),u=n.n(l);function d(e){var t={dispatch:i.a,subscribe:i.a,getState:i.a,replaceReducer:i.a,runSaga:i.a,injectedReducers:c.a,injectedSagas:c.a};u()(r()(e,t),"(app/utils...) injectors: Expected a valid redux store")}},"./app/utils/injectReducer.js":function(e,t,n){"use strict";var o=n("./node_modules/react/index.js"),r=n.n(o),s=n("./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"),i=n.n(s),a=n("./node_modules/react-redux/lib/index.js"),c=n("./node_modules/invariant/browser.js"),l=n.n(c),u=n("./node_modules/lodash/isEmpty.js"),d=n.n(u),p=n("./node_modules/lodash/isFunction.js"),f=n.n(p),m=n("./node_modules/lodash/isString.js"),y=n.n(m),v=n("./app/utils/checkStore.js"),b=n("./app/reducers.js");function h(e,t){return function(n,o){t||Object(v.a)(e),l()(y()(n)&&!d()(n)&&f()(o),"(app/utils...) injectReducer: Expected `reducer` to be a reducer function"),Reflect.has(e.injectedReducers,n)&&e.injectedReducers[n]===o||(e.injectedReducers[n]=o,e.replaceReducer(Object(b.a)(e.injectedReducers)))}}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=function(e){var t=e.key,n=e.reducer;return function(e){var o=function(o){function s(e,o){var r,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),r=_(this,x(s).call(this,e,o)),(i=o.store,Object(v.a)(i),{injectReducer:h(i,!0)}).injectReducer(t,n),r}var i,a,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(s,r.a.Component),i=s,(a=[{key:"render",value:function(){return r.a.createElement(e,this.props)}}])&&j(i.prototype,a),c&&j(i,c),s}();return S(o,"WrappedComponent",e),S(o,"contextType",a.ReactReduxContext),S(o,"displayName","withReducer(".concat(e.displayName||e.name||"Component",")")),i()(o,e)}}},"./app/utils/injectSaga.js":function(e,t,n){"use strict";var o=n("./node_modules/react/index.js"),r=n.n(o),s=n("./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"),i=n.n(s),a=n("./node_modules/react-redux/lib/index.js"),c=n("./node_modules/lodash/isEmpty.js"),l=n.n(c),u=n("./node_modules/lodash/isFunction.js"),d=n.n(u),p=n("./node_modules/lodash/isString.js"),f=n.n(p),m=n("./node_modules/invariant/browser.js"),y=n.n(m),v=n("./node_modules/lodash/conformsTo.js"),b=n.n(v),h=n("./app/utils/checkStore.js"),g="@@saga-injector/restart-on-remount",j="@@saga-injector/daemon",_="@@saga-injector/once-till-unmount";function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){w(e,t,n[t])})}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=[g,j,_],O=function(e){return y()(f()(e)&&!l()(e),"(app/utils...) injectSaga: Expected `key` to be a non empty string")},C=function(e){var t={saga:d.a,mode:function(e){return f()(e)&&S.includes(e)}};y()(b()(e,t),"(app/utils...) injectSaga: Expected a valid saga descriptor")};function k(e,t){return function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;t||Object(h.a)(e);var s=x({},o,{mode:o.mode||g}),i=s.saga,a=s.mode;O(n),C(s);var c=Reflect.has(e.injectedSagas,n);(!c||c&&a!==j&&a!==_)&&(e.injectedSagas[n]=x({},s,{task:e.runSaga(i,r)}))}}function P(e,t){return function(n){if(t||Object(h.a)(e),O(n),Reflect.has(e.injectedSagas,n)){var o=e.injectedSagas[n];o.mode!==j&&(o.task.cancel(),e.injectedSagas[n]="done")}}}function N(e){return Object(h.a)(e),{injectSaga:k(e,!0),ejectSaga:P(e,!0)}}function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=function(e){var t=e.key,n=e.saga,o=e.mode;return function(e){var s=function(s){function i(e,r){var s,a,c;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),a=this,s=!(c=L(i).call(this,e,r))||"object"!==R(c)&&"function"!=typeof c?T(a):c,W(T(s),"injectors",N(s.context.store)),s.injectors=N(r.store),s.injectors.injectSaga(t,{saga:n,mode:o},s.props),s}var a,c,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(i,r.a.Component),a=i,(c=[{key:"componentWillUnmount",value:function(){this.injectors.ejectSaga(t)}},{key:"render",value:function(){return r.a.createElement(e,this.props)}}])&&E(a.prototype,c),l&&E(a,l),i}();return W(s,"WrappedComponent",e),W(s,"contextType",a.ReactReduxContext),W(s,"displayName","withSaga(".concat(e.displayName||e.name||"Component",")")),i()(s,e)}}},"./app/utils/request.js":function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return s});n("./node_modules/whatwg-fetch/dist/fetch.umd.js");function o(e){return 204===e.status||205===e.status?null:e.json()}function r(e){if(e.status>=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function s(t,n){return e(t,n).then(r).then(o)}}).call(this,n("./node_modules/exports-loader/index.js?self.fetch!./node_modules/whatwg-fetch/dist/fetch.umd.js"))},"./node_modules/classnames/index.js":function(e,t,n){var o;
  /*!
    Copyright (c) 2017 Jed Watson.
    Licensed under the MIT License (MIT), see
    http://jedwatson.github.io/classnames
  */
  /*!
    Copyright (c) 2017 Jed Watson.
    Licensed under the MIT License (MIT), see
    http://jedwatson.github.io/classnames
  */
  !function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var s=typeof o;if("string"===s||"number"===s)e.push(o);else if(Array.isArray(o)&&o.length){var i=r.apply(null,o);i&&e.push(i)}else if("object"===s)for(var a in o)n.call(o,a)&&o[a]&&e.push(a)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./app/components/Country/style.scss":function(e,t,n){(e.exports=n("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,".country{display:flex;flex-direction:column;min-height:30em;padding:15px;border:1px solid #ccc;box-shadow:inset 0 0 10px 0 #ccc;flex:2}.country__preview{display:flex;align-items:center;justify-content:center;height:100%}.country__preview__title{font-size:24px}@media (min-width: 667px){.country__preview__title{font-size:36px}}.country__header{margin-bottom:15px;border-bottom:1px solid #ccc}.country__name{margin-bottom:15px;font-size:24px}.country__img{width:100%;margin-bottom:15px;border:3px solid #ccc}@media (min-width: 768px){.country__img{width:500px}}.country__item{line-height:24px}\n",""])},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./app/components/List/style.scss":function(e,t,n){(e.exports=n("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,".list-wrapper{padding:0;margin:0;width:100%;background-color:white;border:1px solid #ccc;border-radius:3px;overflow:hidden}.list-wrapper ul{list-style:none;margin:0;width:100%;min-height:290px;max-height:calc(80vh - 157px);overflow-y:auto;padding:0 1em}@media (min-width: 767px){.list-wrapper ul{max-height:calc(80vh - 137px)}}\n",""])},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./app/components/ListItem/style.scss":function(e,t,n){(e.exports=n("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,".list-item-wrapper{position:relative;display:flex;flex-direction:row;align-items:stretch;width:100%;min-height:3em;border-top:1px solid #eee;word-break:normal}.list-item-wrapper:first-child{border-top:none}.list-item-wrapper .list-item{display:flex;justify-content:space-between;align-items:center;width:100%;height:100%}.list-item-wrapper .list-item:hover,.list-item-wrapper .list-item .active{background:#cccccc}.list-item-wrapper .list-item div,.list-item-wrapper .list-item a{display:flex;align-items:center;width:100%;height:3em;color:#282c34;text-decoration:none}\n",""])},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./app/containers/CountriesPage/style.scss":function(e,t,n){(e.exports=n("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,".country-page{position:relative}.country-page .page-back{position:absolute;top:34px;left:1em;padding:15px;border:1px solid #ccc;border-radius:3px}.country-page section.content{flex-direction:row;align-items:stretch}.country-page .countries-list{flex:2}@media (min-width: 768px){.country-page .countries-list{flex:1}}.country-page .sort-panel{padding-bottom:.5em;padding-left:1em}.country-page .sort-panel__title{display:inline-block;padding-bottom:.5em;padding-right:1em}.country-page .sort-panel__sort-list{padding:.25em .5em;background-color:#f0f0f0;box-shadow:inset 0 1px 0 0 #fff,inset 0 -1px 0 0 rgba(204,204,204,0.3);border-radius:3px}\n",""])},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./app/helpers/ErrorWrapper/style.scss":function(e,t,n){(e.exports=n("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,".error-wrapper{display:flex;flex:1;justify-content:center;align-items:center;height:100%;margin:1em 0;text-align:center;color:red;line-height:20px}\n",""])},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./app/helpers/LoaderWrapper/style.scss":function(e,t,n){(e.exports=n("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,".loader{display:flex;justify-content:center;align-items:center;height:100%}\n",""])}}]);