text: !function(){function n(n){return function(n){if(Array.isArray(n))return l(n)}(n)||function(n){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(n))return Array.from(n)}(n)||function(n,t){if(!n)return;if("string"==typeof n)return l(n,t);var u=Object.prototype.toString.call(n).slice(8,-1);"Object"===u&&n.constructor&&(u=n.constructor.name);if("Map"===u||"Set"===u)return Array.from(n);if("Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return l(n,t)}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(n,l){(null==l||l>n.length)&&(l=n.length);for(var t=0,u=new Array(l);t<l;t++)u[t]=n[t];return u}function t(n,l){return(t=Object.setPrototypeOf||function(n,l){return n.__proto__=l,n})(n,l)}function u(n){var l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(n){return!1}}();return function(){var t,u=i(n);if(l){var o=i(this).constructor;t=Reflect.construct(u,arguments,o)}else t=u.apply(this,arguments);return e(this,t)}}function e(n,l){return!l||"object"!=typeof l&&"function"!=typeof l?function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n):l}function i(n){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function o(n,l){if(!(n instanceof l))throw new TypeError("Cannot call a class as a function")}function r(n,l){for(var t=0;t<l.length;t++){var u=l[t];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(n,u.key,u)}}function a(n,l,t){return l&&r(n.prototype,l),t&&r(n,t),n}(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{Ckxb:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var u=t("LRne"),e=function(){function n(){o(this,n)}return a(n,[{key:"canActivate",value:function(){return Object(u.a)(!0)}}]),n}()},"Q+db":function(n,l,t){"use strict";t.d(l,"a",function(){return u});var u=function n(){o(this,n)}},ZM6g:function(n,l,t){"use strict";t.d(l,"a",function(){return y}),t.d(l,"b",function(){return k});var u=t("8Y7J"),e=t("fNgX"),i=t("Nv++"),r=t("cUpR"),c=t("SVse"),s=function(){function n(){o(this,n)}return a(n,[{key:"ngOnInit",value:function(){}}]),n}(),b=u.sb({encapsulation:0,styles:[[".sort-icon[_ngcontent-%COMP%]{height:.9rem;width:.9rem;margin-left:.25rem;margin-top:-.125rem;vertical-align:middle}"]],data:{}});function g(n){return u.Vb(0,[(n()(),u.ub(0,0,null,null,3,null,null,null,null,null,null,null)),(n()(),u.ub(1,0,null,null,2,"fa-icon",[["class","sort-icon ng-fa-icon"]],[[1,"title",0],[8,"innerHTML",1]],null,null,e.b,e.a)),u.tb(2,573440,null,0,i.c,[r.b,i.a,i.d,[2,i.i]],{icon:[0,"icon"]},null),u.Jb(3,2)],function(n,l){var t=n(l,3,0,"fas","chevron-up");n(l,2,0,t)},function(n,l){n(l,1,0,u.Ib(l,2).title,u.Ib(l,2).renderedIconHTML)})}function f(n){return u.Vb(0,[(n()(),u.ub(0,0,null,null,3,null,null,null,null,null,null,null)),(n()(),u.ub(1,0,null,null,2,"fa-icon",[["class","sort-icon ng-fa-icon"]],[[1,"title",0],[8,"innerHTML",1]],null,null,e.b,e.a)),u.tb(2,573440,null,0,i.c,[r.b,i.a,i.d,[2,i.i]],{icon:[0,"icon"]},null),u.Jb(3,2)],function(n,l){var t=n(l,3,0,"fas","chevron-down");n(l,2,0,t)},function(n,l){n(l,1,0,u.Ib(l,2).title,u.Ib(l,2).renderedIconHTML)})}function d(n){return u.Vb(2,[(n()(),u.db(16777216,null,null,1,null,g)),u.tb(1,16384,null,0,c.m,[u.O,u.L],{ngIf:[0,"ngIf"]},null),(n()(),u.db(16777216,null,null,1,null,f)),u.tb(3,16384,null,0,c.m,[u.O,u.L],{ngIf:[0,"ngIf"]},null)],function(n,l){var t=l.component;n(l,1,0,"asc"===t.direction),n(l,3,0,"desc"===t.direction)},null)}var p=t("9AJC"),h=t("G0yt"),m=t("s7LF"),v=t("w56N"),y=(t("a3Jv"),t("a/MW"),u.sb({encapsulation:0,styles:[["thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{cursor:pointer}"]],data:{}}));function I(n){return u.Vb(0,[(n()(),u.ub(0,0,null,null,1,"span",[["class","ml-3"]],null,null,null,null,null)),(n()(),u.Sb(-1,null,["Loading..."]))],null,null)}function _(n){return u.Vb(0,[(n()(),u.ub(0,0,null,null,1,"sb-sort-icon",[],null,null,null,d,b)),u.tb(1,114688,null,0,s,[],{direction:[0,"direction"]},null)],function(n,l){n(l,1,0,l.component.sortedDirection)},null)}function S(n){return u.Vb(0,[(n()(),u.ub(0,0,null,null,1,"sb-sort-icon",[],null,null,null,d,b)),u.tb(1,114688,null,0,s,[],{direction:[0,"direction"]},null)],function(n,l){n(l,1,0,l.component.sortedDirection)},null)}function C(n){return u.Vb(0,[(n()(),u.ub(0,0,null,null,1,"sb-sort-icon",[],null,null,null,d,b)),u.tb(1,114688,null,0,s,[],{direction:[0,"direction"]},null)],function(n,l){n(l,1,0,l.component.sortedDirection)},null)}function O(n){return u.Vb(0,[(n()(),u.ub(0,0,null,null,14,"tr",[],null,null,null,null,null)),(n()(),u.ub(1,0,null,null,1,"th",[["scope","row"]],null,null,null,null,null)),(n()(),u.Sb(2,null,["",""])),(n()(),u.ub(3,0,null,null,3,"td",[],null,null,null,null,null)),(n()(),u.ub(4,0,null,null,0,"img",[["class","mr-2"],["style","width: 20px"]],[[8,"src",4]],null,null,null,null)),(n()(),u.ub(5,0,null,null,1,"ngb-highlight",[],null,null,null,p.e,p.c)),u.tb(6,573440,null,0,h.z,[],{result:[0,"result"],term:[1,"term"]},null),(n()(),u.ub(7,0,null,null,3,"td",[],null,null,null,null,null)),(n()(),u.ub(8,0,null,null,2,"ngb-highlight",[],null,null,null,p.e,p.c)),u.tb(9,573440,null,0,h.z,[],{result:[0,"result"],term:[1,"term"]},null),u.Mb(10,1),(n()(),u.ub(11,0,null,null,3,"td",[],null,null,null,null,null)),(n()(),u.ub(12,0,null,null,2,"ngb-highlight",[],null,null,null,p.e,p.c)),u.tb(13,573440,null,0,h.z,[],{result:[0,"result"],term:[1,"term"]},null),u.Mb(14,1)],function(n,l){var t=l.component;n(l,6,0,l.context.$implicit.name,t.countryService.searchTerm);var e=u.Tb(l,9,0,n(l,10,0,u.Ib(l.parent,0),l.context.$implicit.area));n(l,9,0,e,t.countryService.searchTerm);var i=u.Tb(l,13,0,n(l,14,0,u.Ib(l.parent,0),l.context.$implicit.population));n(l,13,0,i,t.countryService.searchTerm)},function(n,l){n(l,2,0,l.context.$implicit.id),n(l,4,0,"https://upload.wikimedia.org/wikipedia/commons/"+l.context.$implicit.flag)})}function k(n){return u.Vb(2,[u.Kb(0,c.e,[u.u]),u.Ob(671088640,1,{headers:1}),(n()(),u.ub(2,0,null,null,70,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(n,l,t){var e=!0;return"submit"===l&&(e=!1!==u.Ib(n,4).onSubmit(t)&&e),"reset"===l&&(e=!1!==u.Ib(n,4).onReset()&&e),e},null,null)),u.tb(3,16384,null,0,m.s,[],null,null),u.tb(4,4210688,null,0,m.k,[[8,null],[8,null]],null,null),u.Nb(2048,null,m.b,null,[m.k]),u.tb(6,16384,null,0,m.j,[[4,m.b]],null,null),(n()(),u.ub(7,0,null,null,10,"div",[["class","form-group form-inline"]],null,null,null,null,null)),(n()(),u.Sb(-1,null,["Full text search: "])),(n()(),u.ub(9,0,null,null,5,"input",[["class","form-control ml-2"],["name","searchTerm"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,l,t){var e=!0,i=n.component;return"input"===l&&(e=!1!==u.Ib(n,10)._handleInput(t.target.value)&&e),"blur"===l&&(e=!1!==u.Ib(n,10).onTouched()&&e),"compositionstart"===l&&(e=!1!==u.Ib(n,10)._compositionStart()&&e),"compositionend"===l&&(e=!1!==u.Ib(n,10)._compositionEnd(t.target.value)&&e),"ngModelChange"===l&&(e=!1!==(i.countryService.searchTerm=t)&&e),e},null,null)),u.tb(10,16384,null,0,m.c,[u.D,u.l,[2,m.a]],null,null),u.Nb(1024,null,m.g,function(n){return[n]},[m.c]),u.tb(12,671744,null,0,m.l,[[2,m.b],[8,null],[8,null],[6,m.g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),u.Nb(2048,null,m.h,null,[m.l]),u.tb(14,16384,null,0,m.i,[[4,m.h]],null,null),(n()(),u.db(16777216,null,null,2,null,I)),u.tb(16,16384,null,0,c.m,[u.O,u.L],{ngIf:[0,"ngIf"]},null),u.Kb(131072,c.b,[u.h]),(n()(),u.ub(18,0,null,null,26,"table",[["class","table table-striped"]],null,null,null,null,null)),(n()(),u.ub(19,0,null,null,21,"thead",[],null,null,null,null,null)),(n()(),u.ub(20,0,null,null,20,"tr",[],null,null,null,null,null)),(n()(),u.ub(21,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(n()(),u.Sb(-1,null,["#"])),(n()(),u.ub(23,0,null,null,5,"th",[["sbSortable","name"],["scope","col"]],[[2,"asc",null],[2,"desc",null]],[[null,"sort"],[null,"click"]],function(n,l,t){var e=!0,i=n.component;return"click"===l&&(e=!1!==u.Ib(n,24).rotate()&&e),"sort"===l&&(e=!1!==i.onSort(t)&&e),e},null,null)),u.tb(24,16384,[[1,4]],0,v.a,[],{sbSortable:[0,"sbSortable"]},{sort:"sort"}),(n()(),u.ub(25,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),u.Sb(-1,null,["Country"])),(n()(),u.db(16777216,null,null,1,null,_)),u.tb(28,16384,null,0,c.m,[u.O,u.L],{ngIf:[0,"ngIf"]},null),(n()(),u.ub(29,0,null,null,5,"th",[["sbSortable","area"],["scope","col"]],[[2,"asc",null],[2,"desc",null]],[[null,"sort"],[null,"click"]],function(n,l,t){var e=!0,i=n.component;return"click"===l&&(e=!1!==u.Ib(n,30).rotate()&&e),"sort"===l&&(e=!1!==i.onSort(t)&&e),e},null,null)),u.tb(30,16384,[[1,4]],0,v.a,[],{sbSortable:[0,"sbSortable"]},{sort:"sort"}),(n()(),u.ub(31,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),u.Sb(-1,null,["Area"])),(n()(),u.db(16777216,null,null,1,null,S)),u.tb(34,16384,null,0,c.m,[u.O,u.L],{ngIf:[0,"ngIf"]},null),(n()(),u.ub(35,0,null,null,5,"th",[["sbSortable","population"],["scope","col"]],[[2,"asc",null],[2,"desc",null]],[[null,"sort"],[null,"click"]],function(n,l,t){var e=!0,i=n.component;return"click"===l&&(e=!1!==u.Ib(n,36).rotate()&&e),"sort"===l&&(e=!1!==i.onSort(t)&&e),e},null,null)),u.tb(36,16384,[[1,4]],0,v.a,[],{sbSortable:[0,"sbSortable"]},{sort:"sort"}),(n()(),u.ub(37,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),u.Sb(-1,null,["Population"])),(n()(),u.db(16777216,null,null,1,null,C)),u.tb(40,16384,null,0,c.m,[u.O,u.L],{ngIf:[0,"ngIf"]},null),(n()(),u.ub(41,0,null,null,3,"tbody",[],null,null,null,null,null)),(n()(),u.db(16777216,null,null,2,null,O)),u.tb(43,278528,null,0,c.l,[u.O,u.L,u.s],{ngForOf:[0,"ngForOf"]},null),u.Kb(131072,c.b,[u.h]),(n()(),u.ub(45,0,null,null,27,"div",[["class","d-flex justify-content-between p-2"]],null,null,null,null,null)),(n()(),u.ub(46,0,null,null,8,"ngb-pagination",[["role","navigation"]],null,[[null,"pageChange"]],function(n,l,t){var u=!0;return"pageChange"===l&&(u=!1!==(n.component.countryService.page=t)&&u),u},p.f,p.d)),u.tb(47,573440,null,6,h.I,[h.J],{collectionSize:[0,"collectionSize"],page:[1,"page"],pageSize:[2,"pageSize"]},{pageChange:"pageChange"}),u.Ob(603979776,2,{tplEllipsis:0}),u.Ob(603979776,3,{tplFirst:0}),u.Ob(603979776,4,{tplLast:0}),u.Ob(603979776,5,{tplNext:0}),u.Ob(603979776,6,{tplNumber:0}),u.Ob(603979776,7,{tplPrevious:0}),u.Kb(131072,c.b,[u.h]),(n()(),u.ub(55,0,null,null,17,"select",[["class","custom-select"],["name","pageSize"],["style","width: auto"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,l,t){var e=!0,i=n.component;return"change"===l&&(e=!1!==u.Ib(n,56).onChange(t.target.value)&&e),"blur"===l&&(e=!1!==u.Ib(n,56).onTouched()&&e),"ngModelChange"===l&&(e=!1!==(i.countryService.pageSize=t)&&e),e},null,null)),u.tb(56,16384,null,0,m.o,[u.D,u.l],null,null),u.Nb(1024,null,m.g,function(n){return[n]},[m.o]),u.tb(58,671744,null,0,m.l,[[2,m.b],[8,null],[8,null],[6,m.g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),u.Nb(2048,null,m.h,null,[m.l]),u.tb(60,16384,null,0,m.i,[[4,m.h]],null,null),(n()(),u.ub(61,0,null,null,3,"option",[],null,null,null,null,null)),u.tb(62,147456,null,0,m.m,[u.l,u.D,[2,m.o]],{ngValue:[0,"ngValue"]},null),u.tb(63,147456,null,0,m.r,[u.l,u.D,[8,null]],{ngValue:[0,"ngValue"]},null),(n()(),u.Sb(-1,null,["2 items per page"])),(n()(),u.ub(65,0,null,null,3,"option",[],null,null,null,null,null)),u.tb(66,147456,null,0,m.m,[u.l,u.D,[2,m.o]],{ngValue:[0,"ngValue"]},null),u.tb(67,147456,null,0,m.r,[u.l,u.D,[8,null]],{ngValue:[0,"ngValue"]},null),(n()(),u.Sb(-1,null,["4 items per page"])),(n()(),u.ub(69,0,null,null,3,"option",[],null,null,null,null,null)),u.tb(70,147456,null,0,m.m,[u.l,u.D,[2,m.o]],{ngValue:[0,"ngValue"]},null),u.tb(71,147456,null,0,m.r,[u.l,u.D,[8,null]],{ngValue:[0,"ngValue"]},null),(n()(),u.Sb(-1,null,["6 items per page"]))],function(n,l){var t=l.component;n(l,12,0,"searchTerm",t.countryService.searchTerm),n(l,16,0,u.Tb(l,16,0,u.Ib(l,17).transform(t.countryService.loading$))),n(l,24,0,"name"),n(l,28,0,"name"===t.sortedColumn),n(l,30,0,"area"),n(l,34,0,"area"===t.sortedColumn),n(l,36,0,"population"),n(l,40,0,"population"===t.sortedColumn),n(l,43,0,u.Tb(l,43,0,u.Ib(l,44).transform(t.countries$))),n(l,47,0,u.Tb(l,47,0,u.Ib(l,54).transform(t.total$)),t.countryService.page,t.countryService.pageSize),n(l,58,0,"pageSize",t.countryService.pageSize),n(l,62,0,2),n(l,63,0,2),n(l,66,0,4),n(l,67,0,4),n(l,70,0,6),n(l,71,0,6)},function(n,l){n(l,2,0,u.Ib(l,6).ngClassUntouched,u.Ib(l,6).ngClassTouched,u.Ib(l,6).ngClassPristine,u.Ib(l,6).ngClassDirty,u.Ib(l,6).ngClassValid,u.Ib(l,6).ngClassInvalid,u.Ib(l,6).ngClassPending),n(l,9,0,u.Ib(l,14).ngClassUntouched,u.Ib(l,14).ngClassTouched,u.Ib(l,14).ngClassPristine,u.Ib(l,14).ngClassDirty,u.Ib(l,14).ngClassValid,u.Ib(l,14).ngClassInvalid,u.Ib(l,14).ngClassPending),n(l,23,0,u.Ib(l,24).isAscending,u.Ib(l,24).isDescending),n(l,29,0,u.Ib(l,30).isAscending,u.Ib(l,30).isDescending),n(l,35,0,u.Ib(l,36).isAscending,u.Ib(l,36).isDescending),n(l,55,0,u.Ib(l,60).ngClassUntouched,u.Ib(l,60).ngClassTouched,u.Ib(l,60).ngClassPristine,u.Ib(l,60).ngClassDirty,u.Ib(l,60).ngClassValid,u.Ib(l,60).ngClassInvalid,u.Ib(l,60).ngClassPending)})}},"a/MW":function(l,e,i){"use strict";i.d(e,"a",function(){return C});var r=[{id:1,name:"Russia",flag:"f/f3/Flag_of_Russia.svg",area:17075200,population:146989754},{id:2,name:"France",flag:"c/c3/Flag_of_France.svg",area:640679,population:64979548},{id:3,name:"Germany",flag:"b/ba/Flag_of_Germany.svg",area:357114,population:82114224},{id:4,name:"Portugal",flag:"5/5c/Flag_of_Portugal.svg",area:92090,population:10329506},{id:5,name:"Canada",flag:"c/cf/Flag_of_Canada.svg",area:9976140,population:36624199},{id:6,name:"Vietnam",flag:"2/21/Flag_of_Vietnam.svg",area:331212,population:95540800},{id:7,name:"Brazil",flag:"0/05/Flag_of_Brazil.svg",area:8515767,population:209288278},{id:8,name:"Mexico",flag:"f/fc/Flag_of_Mexico.svg",area:1964375,population:129163276},{id:9,name:"United States",flag:"a/a4/Flag_of_the_United_States.svg",area:9629091,population:324459463},{id:10,name:"India",flag:"4/41/Flag_of_India.svg",area:3287263,population:1324171354},{id:11,name:"Indonesia",flag:"9/9f/Flag_of_Indonesia.svg",area:1910931,population:263991379},{id:12,name:"Tuvalu",flag:"3/38/Flag_of_Tuvalu.svg",area:26,population:11097},{id:13,name:"China",flag:"f/fa/Flag_of_the_People%27s_Republic_of_China.svg",area:9596960,population:1409517397}],c=i("2Vo4"),s=i("XNiG"),b=i("LRne"),g=i("vkgz"),f=i("7o/Q"),d=i("D0XW"),p=function(){function n(l,t){o(this,n),this.dueTime=l,this.scheduler=t}return a(n,[{key:"call",value:function(n,l){return l.subscribe(new h(n,this.dueTime,this.scheduler))}}]),n}(),h=function(n){!function(n,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(l&&l.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),l&&t(n,l)}(e,n);var l=u(e);function e(n,t,u){var i;return o(this,e),(i=l.call(this,n)).dueTime=t,i.scheduler=u,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return a(e,[{key:"_next",value:function(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(m,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var n=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}}},{key:"clearDebounce",value:function(){var n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)}}]),e}(f.a);function m(n){n.debouncedNext()}var v,y=i("eIep"),I=i("3E0/"),_=i("8Y7J"),S=i("SVse"),C=((v=function(){function l(n){var t=this;o(this,l),this.pipe=n,this._loading$=new c.a(!0),this._search$=new s.a,this._countries$=new c.a([]),this._total$=new c.a(0),this._state={page:1,pageSize:4,searchTerm:"",sortColumn:"",sortDirection:""},this._search$.pipe(Object(g.a)(function(){return t._loading$.next(!0)}),function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.a;return function(t){return t.lift(new p(n,l))}}(120),Object(y.a)(function(){return t._search()}),Object(I.a)(120),Object(g.a)(function(){return t._loading$.next(!1)})).subscribe(function(n){t._countries$.next(n.countries),t._total$.next(n.total)}),this._search$.next()}return a(l,[{key:"_set",value:function(n){Object.assign(this._state,n),this._search$.next()}},{key:"_search",value:function(){var l=this,t=this._state,u=t.sortColumn,e=t.sortDirection,i=t.pageSize,o=t.page,a=t.searchTerm,c=function(l,t,u){return""===u?l:n(l).sort(function(n,l){var e,i,o=(e=n[t])<(i=l[t])?-1:e>i?1:0;return"asc"===u?o:-o})}(r,u,e),s=(c=c.filter(function(n){return function(n,l,t){return n.name.toLowerCase().includes(l.toLowerCase())||t.transform(n.area).includes(l)||t.transform(n.population).includes(l)}(n,a,l.pipe)})).length;return c=c.slice((o-1)*i,(o-1)*i+i),Object(b.a)({countries:c,total:s})}},{key:"countries$",get:function(){return this._countries$.asObservable()}},{key:"total$",get:function(){return this._total$.asObservable()}},{key:"loading$",get:function(){return this._loading$.asObservable()}},{key:"page",get:function(){return this._state.page},set:function(n){this._set({page:n})}},{key:"pageSize",get:function(){return this._state.pageSize},set:function(n){this._set({pageSize:n})}},{key:"searchTerm",get:function(){return this._state.searchTerm},set:function(n){this._set({searchTerm:n})}},{key:"sortColumn",set:function(n){this._set({sortColumn:n})}},{key:"sortDirection",set:function(n){this._set({sortDirection:n})}}]),l}()).\u0275prov=_.Wb({factory:function(){return new v(_.Xb(S.e))},token:v,providedIn:"root"}),v)},a3Jv:function(n,l,t){"use strict";t.d(l,"a",function(){return u}),t("w56N"),t("a/MW"),t("vxhn");var u=function(){function n(l,t){o(this,n),this.countryService=l,this.changeDetectorRef=t,this.pageSize=4}return a(n,[{key:"ngOnInit",value:function(){this.countryService.pageSize=this.pageSize,this.countries$=this.countryService.countries$,this.total$=this.countryService.total$}},{key:"onSort",value:function(n){var l=n.column,t=n.direction;this.sortedColumn=l,this.sortedDirection=t,this.countryService.sortColumn=l,this.countryService.sortDirection=t,this.changeDetectorRef.detectChanges()}}]),n}()},vxhn:function(n,l,t){"use strict";t.d(l,"a",function(){return e});var u=t("LRne"),e=function(){function n(){o(this,n)}return a(n,[{key:"getTables$",value:function(){return Object(u.a)({})}}]),n}()},w56N:function(n,l,t){"use strict";t.d(l,"a",function(){return i});var u=t("8Y7J"),e={asc:"desc",desc:"","":"asc"},i=function(){function n(){o(this,n),this.direction="",this.sort=new u.n}return a(n,[{key:"rotate",value:function(){this.direction=e[this.direction],this.sort.emit({column:this.sbSortable,direction:this.direction})}},{key:"isAscending",get:function(){return"asc"===this.direction}},{key:"isDescending",get:function(){return"desc"===this.direction}}]),n}()}}])}();