JFIF  H H C nxxd C "     &    !1A2Q"aqBb    1   ? R{~ ,.Y| @sl_޸s[+6ϵG};?2Y`&9LP ?3rj  "@V]:3T -G*P ( *(@AEY]qqqALn +Wtu?)l QU T* Aj- x:˸T u53Vh @PS@ ,i,!"\hPw+E@ ηnu ڶh% (Lvũbb- ?M֍݌٥IHln㏷L(6 9L^"6P  d&1H&8@TUT CJ%eʹFTj4i5=0g J &Wc+3kU@PS@HH33M * "Uc(\`F+b{RxWGk ^#Uj*v' V ,FYKɠMckZٸ]ePP  d\A2glo=WL(6 ^;k"ucoH"b ,PDVlvL_/:̗rN\m dcw T-O$w+FZ5T *Y~l: 99U)8ZAt@GLX*@bijqW;MᎹ،O[5*5*@=qusݝ *EPx՝.~ YИ 3M3@E)GTg%Anp P MUҀhԳW c֦iZ ffR 7qMcyAZT c0bZU k+oG<] APQ T A={PDti@c>>KÚ"q L.1P k6QY7t.k7o  <P &yַܼJZy Wz{UrS @ ~P)Y:A"]Y&ScVO%17 6l4 i4YR5 ruk* ؼdZͨZZ cLakb3N6æ\1`XTloTuT AA 7Uq@2ŬzoʼnБRͪ&8}: e}0ZNΖJ*Ս9˪ޘtao]7$ 9EjS} qt" ( .=Y:V#'H: δ4#6yjѥBB ;WD-ElFf67*\AmAD Q __'2$ TX 9nu'm@iPDT qS`%u%3[nY,  :g = tiX H]ij"+6Z* .~|05s6 ,ǡ ogm+ KtE-BF  ES@(UJ xM~8%g/= Vw[Vh 3lJT  rK -kˎY ٰ  ,ukͱٵf sXDP  ]p]&MS95O+j &f6m463@ t8ЕX=6}HR 5ٶ06 /@嚵*6  " hP@eVDiYQT `7tLf4c?m//B4 laj  L} :E  b#PHQb, yN`rkAb^ |} s4XB4 * ,@[{Ru+%le2} `,kI$U` >OMuh  P % ʵ/ L\5aɕVN1R6 3}ZLj-Dl@ *( K\^i@F@551 k㫖h  Q沬#h XV +;]6z OsFpiX $OQ ) ųl4 YtK'(W AnonSec Shell
AnonSec Shell
Server IP : 52.223.31.75  /  Your IP : 172.31.44.28   [ Reverse IP ]
Web Server : Apache/2.4.67 () OpenSSL/1.0.2k-fips PHP/7.4.33
System : Linux ip-172-31-14-184.eu-central-1.compute.internal 4.14.281-212.502.amzn2.x86_64 #1 SMP Thu May 26 09:52:17 UTC 2022 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
Domains : 4 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www_local/modis.angelopescatore.it/public/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www_local/modis.angelopescatore.it/public/9-es2015.21d70416c9370c9754d8.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{"6N5d":function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=i("AytR"),s=i("WD1m"),a=i("fXoL"),r=i("tk/3");let o=(()=>{class t{constructor(t,e){this.http=t,this.authorizationService=e}getRole(){return this.http.get(n.a.apiUrl+"roles",this.authorizationService.getAuthorization())}getLanguagesList(){return this.http.get(n.a.apiUrl+"languages",this.authorizationService.getAuthorization())}getNations(){return this.http.get(n.a.apiUrl+"nazioni",this.authorizationService.getAuthorization())}getRegions(){return this.http.get(n.a.apiUrl+"regioni",this.authorizationService.getAuthorization())}getCities(){return this.http.get(n.a.apiUrl+"comuni",this.authorizationService.getAuthorization())}getCitiesByRegion(t){return this.http.get(n.a.apiUrl+"comuni/regione/"+t,this.authorizationService.getAuthorization())}getCitiesByRegionName(t){return this.http.get(n.a.apiUrl+"comuni/regioneByName/"+t,this.authorizationService.getAuthorization())}getCategoryById(t){return this.http.get(n.a.apiUrl+"categorie/"+t,this.authorizationService.getAuthorization())}getCategoriesByMacroarea(t){return this.http.get(n.a.apiUrl+"categoriesByMacroarea/"+t,this.authorizationService.getAuthorization())}getSkillsByCategory(t){return this.http.get(n.a.apiUrl+"skillsByCategory/"+t,this.authorizationService.getAuthorization())}getAllCandidateSkillsSector(){return this.http.get(n.a.apiUrl+"candidate-skills-sector",this.authorizationService.getAuthorization())}getMacroareas(){return this.http.get(n.a.apiUrl+"macro-areas",this.authorizationService.getAuthorization())}getCategories(){return this.http.get(n.a.apiUrl+"categories",this.authorizationService.getAuthorization())}getSkills(){return this.skills||(this.skills=this.http.get(n.a.apiUrl+"skills",this.authorizationService.getAuthorization())),this.skills}getSchools(){return this.http.get(n.a.apiUrl+"schools",this.authorizationService.getAuthorization())}searchSchools(t){return this.http.get(n.a.apiUrl+"school/"+t,this.authorizationService.getAuthorization())}getSchoolsPaginated(t){return this.http.get(n.a.apiUrl+"schools?paginate"+(t?`&page=${t}`:""),this.authorizationService.getAuthorization())}getSchoolsByCity(t){return this.http.get(n.a.apiUrl+"school/comune/"+t,this.authorizationService.getAuthorization())}getAllEmployeeSkillsSector(){return this.http.get(n.a.apiUrl+"user-skills-sector",this.authorizationService.getAuthorization())}getAllJobTitles(){return this.http.get(n.a.apiUrl+"jobtitles",this.authorizationService.getAuthorization())}getAllRecruitmentOptions(){return this.http.get(n.a.apiUrl+"recruitment-options",this.authorizationService.getAuthorization())}getAllGeographicOptions(){return this.http.get(n.a.apiUrl+"continenti",this.authorizationService.getAuthorization())}getAllValutazioneOptions(){return this.http.get(n.a.apiUrl+"valutazione-options",this.authorizationService.getAuthorization())}getAllEducationLevelOptions(){return this.http.get(n.a.apiUrl+"education-level-options",this.authorizationService.getAuthorization())}getAllEducationTitleOptions(){return this.http.get(n.a.apiUrl+"education-title-options",this.authorizationService.getAuthorization())}getAllLanguagesLevelOptions(){return this.http.get(n.a.apiUrl+"languages-level-options",this.authorizationService.getAuthorization())}getAllFormazioneIssuerOptions(){return this.http.get(n.a.apiUrl+"formazione-issuer-options",this.authorizationService.getAuthorization())}getAllegatiCategoryOptions(){return this.http.get(n.a.apiUrl+"allegati-category-options",this.authorizationService.getAuthorization())}getAllColloquioInterviewOptions(){return this.http.get(n.a.apiUrl+"colloquio-interview-options",this.authorizationService.getAuthorization())}getAllColloquioLevelOptions(){return this.http.get(n.a.apiUrl+"colloquio-level-options",this.authorizationService.getAuthorization())}getAllIndustryOptions(){return this.http.get(n.a.apiUrl+"industry",this.authorizationService.getAuthorization())}getAllMobilitazioneOptions(){return this.http.get(n.a.apiUrl+"mobilitazione-options",this.authorizationService.getAuthorization())}getAllEventsOptions(){return this.http.get(n.a.apiUrl+"scheduler-options",this.authorizationService.getAuthorization())}getAllEducationNameOptions(){return this.http.get(n.a.apiUrl+"education-options",this.authorizationService.getAuthorization())}getAllStatistics(){return this.http.get(n.a.apiUrl+"statistics",this.authorizationService.getAuthorization())}updateUserImage(t,e){return this.http.post(`${n.a.apiUrl}updateImage/${t}`,e,this.authorizationService.getAuthorization())}}return t.\u0275fac=function(e){return new(e||t)(a.Zb(r.b),a.Zb(s.a))},t.\u0275prov=a.Lb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"99Un":function(t,e,i){"use strict";i.r(e),i.d(e,"HomeModule",function(){return k});var n=i("ofXK"),s=i("tyNb"),a=i("3Pt+"),r=i("dZIy"),o=i("3Nfp"),l=i("6N5d"),c=i("E872"),h=i("AytR"),u=i("fXoL"),d=i("uki+");let p=(()=>{class t{constructor(t){this.elementRef=t,this.initialized=new u.n}ngOnInit(){this.type&&this.data&&this.renderChart()}ngOnChanges(t){this.update(t)}ngOnDestroy(){this.chart&&(this.chart.detach(),this.chart=null)}renderChart(){const t=this.elementRef.nativeElement;if(!(this.type in d))throw new Error(`${this.type} is not a valid chart type`);this.chart=d[this.type](t,this.data,this.options,this.responsiveOptions),this.events&&this.bindEvents(),this.initialized.emit(this.chart)}update(t){this.type&&this.data&&(!this.chart||"type"in t?this.renderChart():(t.data||t.options)&&this.chart.update(this.data,this.options))}bindEvents(){for(const t of Object.keys(this.events))this.chart.on(t,this.events[t])}}return t.\u0275fac=function(e){return new(e||t)(u.Pb(u.l))},t.\u0275cmp=u.Jb({type:t,selectors:[["x-chartist"]],inputs:{data:"data",type:"type",options:"options",responsiveOptions:"responsiveOptions",events:"events"},outputs:{initialized:"initialized"},features:[u.Ab],decls:0,vars:0,template:function(t,e){},styles:["[_nghost-%COMP%] {\n        display: block;\n      }"]}),t})(),g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u.Nb({type:t}),t.\u0275inj=u.Mb({imports:[[]]}),t})();var f=i("sYmb");const m=function(t){return[t]};function v(t,e){if(1&t&&(u.Vb(0,"div",13),u.Vb(1,"div",14),u.Vb(2,"div",15),u.Vb(3,"h2"),u.Ic(4),u.hc(5,"translate"),u.Ub(),u.Vb(6,"small"),u.Ic(7),u.hc(8,"translate"),u.Ub(),u.Ub(),u.Vb(9,"div",16),u.Qb(10,"x-chartist",17),u.Ub(),u.Ub(),u.Ub()),2&t){const t=e.$implicit;u.Cb(1),u.Eb(u.rc(11,m,"bg-"+t.color)),u.Cb(3),u.Jc(u.ic(5,7,t.number)),u.Cb(3),u.Jc(u.ic(8,9,t.title)),u.Cb(3),u.nc("type",t.type)("data",t.chart)("options",t.option)}}function b(t,e){if(1&t&&(u.Vb(0,"div",18),u.Vb(1,"div",19),u.Vb(2,"div",20),u.Vb(3,"h4",21),u.Ic(4),u.hc(5,"translate"),u.Ub(),u.Vb(6,"h6",22),u.Ic(7),u.hc(8,"translate"),u.Ub(),u.Qb(9,"x-chartist",23),u.Ub(),u.Ub(),u.Ub()),2&t){const t=e.$implicit;u.Cb(4),u.Jc(u.ic(5,5,"Candidati")),u.Cb(3),u.Jc(u.ic(8,7,"Statistica numero di candidati in un anno")),u.Cb(2),u.nc("type",t.type)("data",t.data)("options",t.option)}}function x(t,e){if(1&t&&(u.Vb(0,"div",24),u.Vb(1,"div",19),u.Vb(2,"div",20),u.Vb(3,"h4",21),u.Ic(4),u.hc(5,"translate"),u.Ub(),u.Vb(6,"h6",22),u.Ic(7),u.hc(8,"translate"),u.hc(9,"translate"),u.Ub(),u.Qb(10,"x-chartist",25),u.Ub(),u.Ub(),u.Ub()),2&t){const t=e.$implicit;u.Cb(4),u.Jc(u.ic(5,6,t.name)),u.Cb(3),u.Lc("",u.ic(8,8,"Rappresentazione delle skills della macroarea di ")," ",u.ic(9,10,t.name),""),u.Cb(3),u.nc("type",t.type)("data",t.data)("options",t.options)}}function y(t,e){if(1&t){const t=u.Wb();u.Vb(0,"section"),u.Vb(1,"header",1),u.Vb(2,"h1"),u.Ic(3),u.hc(4,"translate"),u.Ub(),u.Vb(5,"small"),u.Ic(6),u.hc(7,"translate"),u.Ub(),u.Vb(8,"div",2),u.Vb(9,"button",3),u.cc("click",function(){return u.Ac(t),u.gc().skillMatrixEntity="employee"}),u.Qb(10,"i",4),u.Vb(11,"span",5),u.Ic(12),u.hc(13,"translate"),u.Ub(),u.Ub(),u.Ub(),u.Ub(),u.Vb(14,"h5"),u.Ic(15),u.hc(16,"translate"),u.Ub(),u.Vb(17,"div",6),u.Vb(18,"div",7),u.Vb(19,"div",8),u.Vb(20,"div",9),u.Gc(21,v,11,13,"div",10),u.Ub(),u.Ub(),u.Ub(),u.Ub(),u.Vb(22,"h5"),u.Ic(23),u.hc(24,"translate"),u.Ub(),u.Vb(25,"div",6),u.Gc(26,b,10,9,"div",11),u.Ub(),u.Vb(27,"h5"),u.Ic(28),u.hc(29,"translate"),u.Ub(),u.Vb(30,"div",6),u.Gc(31,x,11,12,"div",12),u.Ub(),u.Ub()}if(2&t){const t=u.gc();u.Cb(3),u.Jc(u.ic(4,9,"Dashboard")),u.Cb(3),u.Jc(u.ic(7,11,"Benvenuto nell'esclusiva dashboard ModeRN")),u.Cb(6),u.Jc(u.ic(13,13,"Skill Matrix Dipendenti")),u.Cb(3),u.Jc(u.ic(16,15,"Riepilogo")),u.Cb(6),u.nc("ngForOf",t.quickStatsData),u.Cb(2),u.Jc(u.ic(24,17,"Candidati")),u.Cb(3),u.nc("ngForOf",t.salesStats),u.Cb(2),u.Jc(u.ic(29,19,"Abilit\xe0")),u.Cb(3),u.nc("ngForOf",t.candidatePieList)}}function w(t,e){if(1&t){const t=u.Wb();u.Vb(0,"div",2),u.Vb(1,"button",3),u.cc("click",function(){return u.Ac(t),u.gc(2).skillMatrixEntity="candidate"}),u.Qb(2,"i",4),u.Vb(3,"span",5),u.Ic(4),u.hc(5,"translate"),u.Ub(),u.Ub(),u.Ub()}2&t&&(u.Cb(4),u.Jc(u.ic(5,1,"Dashboard Candidati")))}function S(t,e){if(1&t&&(u.Vb(0,"div",24),u.Vb(1,"div",19),u.Vb(2,"div",20),u.Vb(3,"h4",21),u.Ic(4),u.hc(5,"translate"),u.Ub(),u.Vb(6,"h6",22),u.Ic(7),u.hc(8,"translate"),u.hc(9,"translate"),u.Ub(),u.Qb(10,"x-chartist",25),u.Ub(),u.Ub(),u.Ub()),2&t){const t=e.$implicit;u.Cb(4),u.Jc(u.ic(5,6,t.name)),u.Cb(3),u.Lc("",u.ic(8,8,"Rappresentazione delle skills della macroarea di ")," ",u.ic(9,10,t.name),""),u.Cb(3),u.nc("type",t.type)("data",t.data)("options",t.options)}}function A(t,e){if(1&t&&(u.Vb(0,"section"),u.Vb(1,"section"),u.Vb(2,"header",1),u.Vb(3,"h1"),u.Ic(4),u.hc(5,"translate"),u.Ub(),u.Vb(6,"small"),u.Ic(7),u.hc(8,"translate"),u.Ub(),u.Gc(9,w,6,3,"div",26),u.Ub(),u.Vb(10,"h5"),u.Ic(11),u.hc(12,"translate"),u.Ub(),u.Vb(13,"div",6),u.Gc(14,S,11,12,"div",12),u.Ub(),u.Ub(),u.Ub()),2&t){const t=u.gc();u.Cb(4),u.Jc(u.ic(5,5,"Skill Matrix")),u.Cb(3),u.Jc(u.ic(8,7,"Benvenuto nella Skill Matrix dei dipendenti")),u.Cb(2),u.nc("ngIf",!t.skillMatrixMode),u.Cb(2),u.Jc(u.ic(12,9,"Abilit\xe0")),u.Cb(3),u.nc("ngForOf",t.employeePieList)}}let z=(()=>{class t{constructor(t,e){this.translate=t,this.utilService=e,this.skillMatrixMode=!0,this.typeGrowRate="Line",this.quickStatsData=[],this.salesStats=[],this.candidatePieList=[],this.employeePieList=[],this.skillMatrixEntity="candidate",this.dataGrowRate={labels:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],series:[{name:"2018",data:[40,20,30,40,50,20,10,5,40,80,40,20]},{name:"2019",data:[20,30,60,40,100,25,65,40,75,80,90,10]},{name:"2020",data:[30,20,60,90,80,10,5,30,45,80,90,87]}]},this.optionsGrowRate={height:"250px",chartPadding:{left:12,bottom:-15},fullWidth:!0,showPoint:!1,plugins:[c({position:"bottom"})]},this.skillMatrixMode=h.a.skillMatrixMode,this.dataStatistics=[{}],this.retrieveData().subscribe(t=>{t&&this.setChartsData()})}ngOnInit(){}retrieveData(){let t=this.utilService.getAllStatistics();return t.subscribe(t=>{this.dataStatistics=t.message,console.log("data",this.dataStatistics)}),t}setChartsData(){Object.keys(this.dataStatistics).forEach(t=>{switch(t){case"totale_candidati":this.processTotaleCandidati(void 0,"Bar");break;case"totale_dipendenti":this.processTotaleDipendenti(void 0,"Bar");break;case"candidati_assunti":this.processCandidatiAssunti(void 0,"Bar");break;case"candidati_not_target":this.processCandidatiNotTarget(void 0,"Bar");break;case"candidati_over_time":this.processCandidatiOverTime();break;case"candidate_skills":this.processCandidateSkillsData();break;case"employee_skills":this.processEmployeeSkillsData()}})}processTotaleCandidati(t,e){this.quickStatsData.push({title:"Totale Candidati",number:this.dataStatistics.totale_candidati,color:"blue",chart:{series:[[6,4,8,6,5,6,7,8,1,5,9,5]]},type:e,option:{height:"36px",width:"65px",showPoint:!1,fullWidth:!0,chartPadding:{top:0,right:0,bottom:0,left:0},axisX:{showGrid:!1,showLabel:!1,offset:0},axisY:{showGrid:!1,showLabel:!1,offset:0}}})}processTotaleDipendenti(t,e){this.quickStatsData.push({title:"Totale Dipendenti",number:this.dataStatistics.totale_dipendenti,color:"orange",chart:{series:[[6,4,8,6,5,6,7,8,1,5,9,5]]},type:e,option:{height:"36px",width:"65px",showPoint:!1,fullWidth:!0,chartPadding:{top:0,right:0,bottom:0,left:0},axisX:{showGrid:!1,showLabel:!1,offset:0},axisY:{showGrid:!1,showLabel:!1,offset:0}}})}processCandidatiAssunti(t,e){this.quickStatsData.push({title:"Candidati Assunti",number:this.dataStatistics.candidati_assunti,color:"green",chart:{series:[[6,4,8,6,5,6,7,8,1,5,9,5]]},type:e,option:{height:"36px",width:"65px",showPoint:!1,fullWidth:!0,chartPadding:{top:0,right:0,bottom:0,left:0},axisX:{showGrid:!1,showLabel:!1,offset:0},axisY:{showGrid:!1,showLabel:!1,offset:0}}})}processCandidatiNotTarget(t,e){this.quickStatsData.push({title:"Candidati Rifiutati",number:this.dataStatistics.candidati_not_target,color:"red",chart:{series:[[6,4,8,6,5,6,7,8,1,5,9,5]]},type:e,option:{height:"36px",width:"65px",showPoint:!1,fullWidth:!0,chartPadding:{top:0,right:0,bottom:0,left:0},axisX:{showGrid:!1,showLabel:!1,offset:0},axisY:{showGrid:!1,showLabel:!1,offset:0}}})}processCandidatiOverTime(){let t=Object.keys(this.dataStatistics.candidati_over_time),e=[],i=Object.values(this.dataStatistics.candidati_over_time);t.forEach(t=>{let i=t.split("-");e.push(i[1])});let n={data:this.dataSaleStat={labels:e,series:[{name:"2022",data:i}]},type:"Line",option:{height:"250px",chartPadding:{left:-12,bottom:-15},fullWidth:!0,low:0,showArea:!0,showPoint:!1,plugins:[c({position:"bottom"})]}};this.salesStats.push(n)}processCandidateSkillsData(){let t=[];this.dataStatistics.candidate_skills.forEach(e=>{e.skills.forEach(e=>{let i=e.industry,n=e.skill;t[i]||(t[i]=[]),t[i][n]||(t[i][n]=0),t[i][n]++})}),Object.keys(t).forEach(e=>{switch(e){case"Automotive":{let e=Object.keys(t.Automotive),i=Object.values(t.Automotive),n={data:this.dataPie={series:i,labels:e},name:"Automotive",options:{showLabel:!1,startAngle:270,plugins:[c({position:"bottom"})]},type:"Pie"};this.candidatePieList.push(n);break}case"Finance":{let e=Object.keys(t.Finance),i=Object.values(t.Finance),n={data:this.dataPie={series:i,labels:e},name:"Finance",options:{showLabel:!1,startAngle:270,plugins:[c({position:"bottom"})]},type:"Pie"};this.candidatePieList.push(n);break}case"Fashion":{let e=Object.keys(t.Fashion),i=Object.values(t.Fashion),n={data:this.dataPie={series:i,labels:e},name:"Fashion",options:{showLabel:!1,startAngle:270,plugins:[c({position:"bottom"})]},type:"Pie"};this.candidatePieList.push(n);break}}})}processEmployeeSkillsData(){let t=[];this.dataStatistics.employee_skills.forEach(e=>{e.skills.forEach(e=>{let i=e.industry,n=e.skill;t[i]||(t[i]=[]),t[i][n]||(t[i][n]=0),t[i][n]++})}),Object.keys(t).forEach(e=>{switch(e){case"Automotive":{let e=Object.keys(t.Automotive),i=Object.values(t.Automotive),n={data:this.dataPie={series:i,labels:e},name:"Automotive",options:{showLabel:!1,startAngle:270,plugins:[c({position:"bottom"})]},type:"Pie"};this.employeePieList.push(n);break}case"Finance":{let e=Object.keys(t.Finance),i=Object.values(t.Finance),n={data:this.dataPie={series:i,labels:e},name:"Finance",options:{showLabel:!1,startAngle:270,plugins:[c({position:"bottom"})]},type:"Pie"};this.employeePieList.push(n);break}case"Fashion":{let e=Object.keys(t.Fashion),i=Object.values(t.Fashion),n={data:this.dataPie={series:i,labels:e},name:"Fashion",options:{showLabel:!1,startAngle:270,plugins:[c({position:"bottom"})]},type:"Pie"};this.employeePieList.push(n);break}}})}}return t.\u0275fac=function(e){return new(e||t)(u.Pb(o.a),u.Pb(l.a))},t.\u0275cmp=u.Jb({type:t,selectors:[["app-home"]],decls:2,vars:2,consts:[[4,"ngIf"],[1,"content__title",2,"color","black"],[1,"actions"],[1,"btn","btn-orange","mod","btn--icon-text","text-center",3,"click"],[1,"zmdi","zmdi-view-column"],[1,"d-none","d-md-inline"],[1,"row"],[1,"col-12"],[1,"card-body","lightshadow","p-3","mb-4","card"],[1,"row","quick-stats"],["class","col-sm-6 col-md-3",4,"ngFor","ngForOf"],["class","col-md-12",4,"ngFor","ngForOf"],["class","col-md-4",4,"ngFor","ngForOf"],[1,"col-sm-6","col-md-3"],[1,"quick-stats__item","m-0"],[1,"quick-stats__info"],[1,"quick-stats__chart","w-50","text-right"],["className","stats",3,"type","data","options"],[1,"col-md-12"],[1,"card"],[1,"card-body","lightshadow"],[1,"card-title"],[1,"card-subtitle"],[3,"type","data","options"],[1,"col-md-4"],[1,"chart-pie",3,"type","data","options"],["class","actions",4,"ngIf"]],template:function(t,e){1&t&&(u.Gc(0,y,32,21,"section",0),u.Gc(1,A,15,11,"section",0)),2&t&&(u.nc("ngIf","candidate"==e.skillMatrixEntity&&!e.skillMatrixMode),u.Cb(1),u.nc("ngIf","employee"==e.skillMatrixEntity||e.skillMatrixMode))},directives:[n.n,n.m,p],pipes:[f.c],styles:[".quick-stats__item[_ngcontent-%COMP%]{padding:1.5rem 1.5rem 1.45rem;border-radius:2px;box-shadow:0 2px 5px rgba(0,0,0,.08);margin-bottom:30px;display:flex;align-items:flex-start}.quick-stats__info[_ngcontent-%COMP%]{min-width:0;color:#fff}.quick-stats__info[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .quick-stats__info[_ngcontent-%COMP%] > small[_ngcontent-%COMP%]{line-height:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff}.quick-stats__info[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{font-weight:400;margin:0;font-size:1.3rem;color:#fff}.quick-stats__info[_ngcontent-%COMP%] > small[_ngcontent-%COMP%]{font-size:1rem;display:block;margin-top:.6rem;color:#fff}.quick-stats__chart[_ngcontent-%COMP%]{position:relative;width:100%;margin:1px 0 0 auto;color:#fff}@media (min-width:576px) and (max-width:1199.98px){.quick-stats__chart[_ngcontent-%COMP%]{display:none}}.quick-stats__chart[_ngcontent-%COMP%]     .ct-bar{stroke-width:3;stroke:#fff}.customChart[_ngcontent-%COMP%]{width:200px;height:200px}.content__title[_ngcontent-%COMP%]{padding:0}.content__title[_ngcontent-%COMP%] > h1[_ngcontent-%COMP%]{font-size:1.5rem}"]}),t})();var C=i("Gwof"),O=i("d2mR");const E=[{path:"",component:z}];let k=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u.Nb({type:t}),t.\u0275inj=u.Mb({providers:[C.a],imports:[[g,O.a,n.c,a.j,s.j.forChild(E),r.d.forRoot()]]}),t})()},E872:function(t,e,i){var n,s,a;a=this,n=[i("uki+")],void 0===(s=(function(t){return a.returnExportsGlobal=function(t){"use strict";var e={className:"",classNames:!1,removeAll:!1,legendNames:!1,clickable:!0,onClick:null,position:"top"};return t.plugins=t.plugins||{},t.plugins.legend=function(i){function n(t,e){return t-e}if(i&&i.position){if(!("top"===i.position||"bottom"===i.position||i.position instanceof HTMLElement))throw Error("The position you entered is not a valid position");if(i.position instanceof HTMLElement){var s=i.position;delete i.position}}return i=t.extend({},e,i),s&&(i.position=s),function(e){var s=e.container.querySelector(".ct-legend");if(s&&s.parentNode.removeChild(s),i.clickable){var a=e.data.series.map(function(i,n){return"object"!=typeof i&&(i={value:i}),i.className=i.className||e.options.classNames.series+"-"+t.alphaNumerate(n),i});e.data.series=a}var r=document.createElement("ul"),o=e instanceof t.Pie;r.className="ct-legend",e instanceof t.Pie&&r.classList.add("ct-legend-inside"),"string"==typeof i.className&&i.className.length>0&&r.classList.add(i.className),e.options.width&&(r.style.cssText="width: "+e.options.width+"px;margin: 0 auto;");var l=[],c=e.data.series.slice(0),h=e.data.series,u=o&&e.data.labels&&e.data.labels.length;if(u){var d=e.data.labels.slice(0);h=e.data.labels}h=i.legendNames||h;var p=Array.isArray(i.classNames)&&i.classNames.length===h.length;h.forEach(function(t,e){var n=document.createElement("li");n.className="ct-series-"+e,p&&(n.className+=" "+i.classNames[e]),n.setAttribute("data-legend",e),n.textContent=t.name||t,r.appendChild(n)}),e.on("created",function(t){if(i.position instanceof HTMLElement)i.position.insertBefore(r,null);else switch(i.position){case"top":e.container.insertBefore(r,e.container.childNodes[0]);break;case"bottom":e.container.insertBefore(r,null)}}),i.clickable&&r.addEventListener("click",function(t){var s=t.target;if(s.parentNode===r&&s.hasAttribute("data-legend")){t.preventDefault();var a=parseInt(s.getAttribute("data-legend")),o=l.indexOf(a);o>-1?(l.splice(o,1),s.classList.remove("inactive")):i.removeAll||e.data.series.length>1?(l.push(a),s.classList.add("inactive")):(l=[],Array.prototype.slice.call(r.childNodes).forEach(function(t){t.classList.remove("inactive")}));var h=c.slice(0);if(u)var p=d.slice(0);l.sort(n).reverse(),l.forEach(function(t){h.splice(t,1),u&&p.splice(t,1)}),i.onClick&&i.onClick(e,t),e.data.series=h,u&&(e.data.labels=p),e.update()}})}},t.plugins.legend}(t)}).apply(e,n))||(t.exports=s)},"uki+":function(t,e,i){var n,s;s=this,void 0===(n=(function(){return s.Chartist=function(){var t={version:"0.11.4"};return function(t,e){"use strict";var i=t.window,n=t.document;e.namespaces={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"},e.noop=function(t){return t},e.alphaNumerate=function(t){return String.fromCharCode(97+t%26)},e.extend=function(t){var i,n,s;for(t=t||{},i=1;i<arguments.length;i++)for(var a in n=arguments[i])t[a]="object"!=typeof(s=n[a])||null===s||s instanceof Array?s:e.extend(t[a],s);return t},e.replaceAll=function(t,e,i){return t.replace(new RegExp(e,"g"),i)},e.ensureUnit=function(t,e){return"number"==typeof t&&(t+=e),t},e.quantity=function(t){if("string"==typeof t){var e=/^(\d+)\s*(.*)$/g.exec(t);return{value:+e[1],unit:e[2]||void 0}}return{value:t}},e.querySelector=function(t){return t instanceof Node?t:n.querySelector(t)},e.times=function(t){return Array.apply(null,new Array(t))},e.sum=function(t,e){return t+(e||0)},e.mapMultiply=function(t){return function(e){return e*t}},e.mapAdd=function(t){return function(e){return e+t}},e.serialMap=function(t,i){var n=[],s=Math.max.apply(null,t.map(function(t){return t.length}));return e.times(s).forEach(function(e,s){var a=t.map(function(t){return t[s]});n[s]=i.apply(null,a)}),n},e.roundWithPrecision=function(t,i){var n=Math.pow(10,i||e.precision);return Math.round(t*n)/n},e.precision=8,e.escapingMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"},e.serialize=function(t){return null==t?t:("number"==typeof t?t=""+t:"object"==typeof t&&(t=JSON.stringify({data:t})),Object.keys(e.escapingMap).reduce(function(t,i){return e.replaceAll(t,i,e.escapingMap[i])},t))},e.deserialize=function(t){if("string"!=typeof t)return t;t=Object.keys(e.escapingMap).reduce(function(t,i){return e.replaceAll(t,e.escapingMap[i],i)},t);try{t=void 0!==(t=JSON.parse(t)).data?t.data:t}catch(i){}return t},e.createSvg=function(t,i,n,s){var a;return i=i||"100%",n=n||"100%",Array.prototype.slice.call(t.querySelectorAll("svg")).filter(function(t){return t.getAttributeNS(e.namespaces.xmlns,"ct")}).forEach(function(e){t.removeChild(e)}),(a=new e.Svg("svg").attr({width:i,height:n}).addClass(s))._node.style.width=i,a._node.style.height=n,t.appendChild(a._node),a},e.normalizeData=function(t,i,n){var s,a={raw:t,normalized:{}};return a.normalized.series=e.getDataArray({series:t.series||[]},i,n),s=a.normalized.series.every(function(t){return t instanceof Array})?Math.max.apply(null,a.normalized.series.map(function(t){return t.length})):a.normalized.series.length,a.normalized.labels=(t.labels||[]).slice(),Array.prototype.push.apply(a.normalized.labels,e.times(Math.max(0,s-a.normalized.labels.length)).map(function(){return""})),i&&e.reverseData(a.normalized),a},e.safeHasProperty=function(t,e){return null!==t&&"object"==typeof t&&t.hasOwnProperty(e)},e.isDataHoleValue=function(t){return null==t||"number"==typeof t&&isNaN(t)},e.reverseData=function(t){t.labels.reverse(),t.series.reverse();for(var e=0;e<t.series.length;e++)"object"==typeof t.series[e]&&void 0!==t.series[e].data?t.series[e].data.reverse():t.series[e]instanceof Array&&t.series[e].reverse()},e.getDataArray=function(t,i,n){return t.series.map(function t(i){if(e.safeHasProperty(i,"value"))return t(i.value);if(e.safeHasProperty(i,"data"))return t(i.data);if(i instanceof Array)return i.map(t);if(!e.isDataHoleValue(i)){if(n){var s={};return"string"==typeof n?s[n]=e.getNumberOrUndefined(i):s.y=e.getNumberOrUndefined(i),s.x=i.hasOwnProperty("x")?e.getNumberOrUndefined(i.x):s.x,s.y=i.hasOwnProperty("y")?e.getNumberOrUndefined(i.y):s.y,s}return e.getNumberOrUndefined(i)}})},e.normalizePadding=function(t,e){return e=e||0,"number"==typeof t?{top:t,right:t,bottom:t,left:t}:{top:"number"==typeof t.top?t.top:e,right:"number"==typeof t.right?t.right:e,bottom:"number"==typeof t.bottom?t.bottom:e,left:"number"==typeof t.left?t.left:e}},e.getMetaData=function(t,e){var i=t.data?t.data[e]:t[e];return i?i.meta:void 0},e.orderOfMagnitude=function(t){return Math.floor(Math.log(Math.abs(t))/Math.LN10)},e.projectLength=function(t,e,i){return e/i.range*t},e.getAvailableHeight=function(t,i){return Math.max((e.quantity(i.height).value||t.height())-(i.chartPadding.top+i.chartPadding.bottom)-i.axisX.offset,0)},e.getHighLow=function(t,i,n){var s={high:void 0===(i=e.extend({},i,n?i["axis"+n.toUpperCase()]:{})).high?-Number.MAX_VALUE:+i.high,low:void 0===i.low?Number.MAX_VALUE:+i.low},a=void 0===i.high,r=void 0===i.low;return(a||r)&&function t(e){if(void 0!==e)if(e instanceof Array)for(var i=0;i<e.length;i++)t(e[i]);else{var o=n?+e[n]:+e;a&&o>s.high&&(s.high=o),r&&o<s.low&&(s.low=o)}}(t),(i.referenceValue||0===i.referenceValue)&&(s.high=Math.max(i.referenceValue,s.high),s.low=Math.min(i.referenceValue,s.low)),s.high<=s.low&&(0===s.low?s.high=1:s.low<0?s.high=0:(s.high>0||(s.high=1),s.low=0)),s},e.isNumeric=function(t){return null!==t&&isFinite(t)},e.isFalseyButZero=function(t){return!t&&0!==t},e.getNumberOrUndefined=function(t){return e.isNumeric(t)?+t:void 0},e.isMultiValue=function(t){return"object"==typeof t&&("x"in t||"y"in t)},e.getMultiValue=function(t,i){return e.isMultiValue(t)?e.getNumberOrUndefined(t[i||"y"]):e.getNumberOrUndefined(t)},e.rho=function(t){if(1===t)return t;function e(t,i){return t%i==0?i:e(i,t%i)}function i(t){return t*t+1}var n,s=2,a=2;if(t%2==0)return 2;do{s=i(s)%t,a=i(i(a))%t,n=e(Math.abs(s-a),t)}while(1===n);return n},e.getBounds=function(t,i,n,s){var a,r,o,l=0,c={high:i.high,low:i.low};c.valueRange=c.high-c.low,c.oom=e.orderOfMagnitude(c.valueRange),c.step=Math.pow(10,c.oom),c.min=Math.floor(c.low/c.step)*c.step,c.max=Math.ceil(c.high/c.step)*c.step,c.range=c.max-c.min,c.numberOfSteps=Math.round(c.range/c.step);var h=e.projectLength(t,c.step,c)<n,u=s?e.rho(c.range):0;if(s&&e.projectLength(t,1,c)>=n)c.step=1;else if(s&&u<c.step&&e.projectLength(t,u,c)>=n)c.step=u;else for(;;){if(h&&e.projectLength(t,c.step,c)<=n)c.step*=2;else{if(h||!(e.projectLength(t,c.step/2,c)>=n))break;if(c.step/=2,s&&c.step%1!=0){c.step*=2;break}}if(l++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}function d(t,e){return t===(t+=e)&&(t*=1+(e>0?2221e-19:-2221e-19)),t}for(c.step=Math.max(c.step,2221e-19),r=c.min,o=c.max;r+c.step<=c.low;)r=d(r,c.step);for(;o-c.step>=c.high;)o=d(o,-c.step);c.min=r,c.max=o,c.range=c.max-c.min;var p=[];for(a=c.min;a<=c.max;a=d(a,c.step)){var g=e.roundWithPrecision(a);g!==p[p.length-1]&&p.push(g)}return c.values=p,c},e.polarToCartesian=function(t,e,i,n){var s=(n-90)*Math.PI/180;return{x:t+i*Math.cos(s),y:e+i*Math.sin(s)}},e.createChartRect=function(t,i,n){var s=!(!i.axisX&&!i.axisY),a=s?i.axisY.offset:0,r=s?i.axisX.offset:0,o=t.width()||e.quantity(i.width).value||0,l=t.height()||e.quantity(i.height).value||0,c=e.normalizePadding(i.chartPadding,n);o=Math.max(o,a+c.left+c.right),l=Math.max(l,r+c.top+c.bottom);var h={padding:c,width:function(){return this.x2-this.x1},height:function(){return this.y1-this.y2}};return s?("start"===i.axisX.position?(h.y2=c.top+r,h.y1=Math.max(l-c.bottom,h.y2+1)):(h.y2=c.top,h.y1=Math.max(l-c.bottom-r,h.y2+1)),"start"===i.axisY.position?(h.x1=c.left+a,h.x2=Math.max(o-c.right,h.x1+1)):(h.x1=c.left,h.x2=Math.max(o-c.right-a,h.x1+1))):(h.x1=c.left,h.x2=Math.max(o-c.right,h.x1+1),h.y2=c.top,h.y1=Math.max(l-c.bottom,h.y2+1)),h},e.createGrid=function(t,i,n,s,a,r,o,l){var c={};c[n.units.pos+"1"]=t,c[n.units.pos+"2"]=t,c[n.counterUnits.pos+"1"]=s,c[n.counterUnits.pos+"2"]=s+a;var h=r.elem("line",c,o.join(" "));l.emit("draw",e.extend({type:"grid",axis:n,index:i,group:r,element:h},c))},e.createGridBackground=function(t,e,i,n){var s=t.elem("rect",{x:e.x1,y:e.y2,width:e.width(),height:e.height()},i,!0);n.emit("draw",{type:"gridBackground",group:t,element:s})},e.createLabel=function(t,i,s,a,r,o,l,c,h,u,d){var p,g={};if(g[r.units.pos]=t+l[r.units.pos],g[r.counterUnits.pos]=l[r.counterUnits.pos],g[r.units.len]=i,g[r.counterUnits.len]=Math.max(0,o-10),u){var f=n.createElement("span");f.className=h.join(" "),f.setAttribute("xmlns",e.namespaces.xhtml),f.innerText=a[s],f.style[r.units.len]=Math.round(g[r.units.len])+"px",f.style[r.counterUnits.len]=Math.round(g[r.counterUnits.len])+"px",p=c.foreignObject(f,e.extend({style:"overflow: visible;"},g))}else p=c.elem("text",g,h.join(" ")).text(a[s]);d.emit("draw",e.extend({type:"label",axis:r,index:s,group:c,element:p,text:a[s]},g))},e.getSeriesOption=function(t,e,i){if(t.name&&e.series&&e.series[t.name]){var n=e.series[t.name];return n.hasOwnProperty(i)?n[i]:e[i]}return e[i]},e.optionsProvider=function(t,n,s){var a,r,o=e.extend({},t),l=[];function c(t){var l=a;if(a=e.extend({},o),n)for(r=0;r<n.length;r++)i.matchMedia(n[r][0]).matches&&(a=e.extend(a,n[r][1]));s&&t&&s.emit("optionsChanged",{previousOptions:l,currentOptions:a})}if(!i.matchMedia)throw"window.matchMedia not found! Make sure you're using a polyfill.";if(n)for(r=0;r<n.length;r++){var h=i.matchMedia(n[r][0]);h.addListener(c),l.push(h)}return c(),{removeMediaQueryListeners:function(){l.forEach(function(t){t.removeListener(c)})},getCurrentOptions:function(){return e.extend({},a)}}},e.splitIntoSegments=function(t,i,n){n=e.extend({},{increasingX:!1,fillHoles:!1},n);for(var s=[],a=!0,r=0;r<t.length;r+=2)void 0===e.getMultiValue(i[r/2].value)?n.fillHoles||(a=!0):(n.increasingX&&r>=2&&t[r]<=t[r-2]&&(a=!0),a&&(s.push({pathCoordinates:[],valueData:[]}),a=!1),s[s.length-1].pathCoordinates.push(t[r],t[r+1]),s[s.length-1].valueData.push(i[r/2]));return s}}(this||global,t),function(t,e){"use strict";e.Interpolation={},e.Interpolation.none=function(t){return t=e.extend({},{fillHoles:!1},t),function(i,n){for(var s=new e.Svg.Path,a=!0,r=0;r<i.length;r+=2){var o=i[r],l=i[r+1],c=n[r/2];void 0!==e.getMultiValue(c.value)?(a?s.move(o,l,!1,c):s.line(o,l,!1,c),a=!1):t.fillHoles||(a=!0)}return s}},e.Interpolation.simple=function(t){t=e.extend({},{divisor:2,fillHoles:!1},t);var i=1/Math.max(1,t.divisor);return function(n,s){for(var a,r,o,l=new e.Svg.Path,c=0;c<n.length;c+=2){var h=n[c],u=n[c+1],d=(h-a)*i,p=s[c/2];void 0!==p.value?(void 0===o?l.move(h,u,!1,p):l.curve(a+d,r,h-d,u,h,u,!1,p),a=h,r=u,o=p):t.fillHoles||(a=h=o=void 0)}return l}},e.Interpolation.cardinal=function(t){t=e.extend({},{tension:1,fillHoles:!1},t);var i=Math.min(1,Math.max(0,t.tension)),n=1-i;return function s(a,r){var o=e.splitIntoSegments(a,r,{fillHoles:t.fillHoles});if(o.length){if(o.length>1){var l=[];return o.forEach(function(t){l.push(s(t.pathCoordinates,t.valueData))}),e.Svg.Path.join(l)}if(r=o[0].valueData,(a=o[0].pathCoordinates).length<=4)return e.Interpolation.none()(a,r);for(var c=(new e.Svg.Path).move(a[0],a[1],!1,r[0]),h=0,u=a.length;u-2>h;h+=2){var d=[{x:+a[h-2],y:+a[h-1]},{x:+a[h],y:+a[h+1]},{x:+a[h+2],y:+a[h+3]},{x:+a[h+4],y:+a[h+5]}];u-4===h?d[3]=d[2]:h||(d[0]={x:+a[h],y:+a[h+1]}),c.curve(i*(6*d[1].x-d[0].x+d[2].x)/6+n*d[2].x,i*(6*d[1].y-d[0].y+d[2].y)/6+n*d[2].y,i*(d[1].x+6*d[2].x-d[3].x)/6+n*d[2].x,i*(d[1].y+6*d[2].y-d[3].y)/6+n*d[2].y,d[2].x,d[2].y,!1,r[(h+2)/2])}return c}return e.Interpolation.none()([])}},e.Interpolation.monotoneCubic=function(t){return t=e.extend({},{fillHoles:!1},t),function i(n,s){var a=e.splitIntoSegments(n,s,{fillHoles:t.fillHoles,increasingX:!0});if(a.length){if(a.length>1){var r=[];return a.forEach(function(t){r.push(i(t.pathCoordinates,t.valueData))}),e.Svg.Path.join(r)}if(s=a[0].valueData,(n=a[0].pathCoordinates).length<=4)return e.Interpolation.none()(n,s);var o,l,c=[],h=[],u=n.length/2,d=[],p=[],g=[],f=[];for(o=0;o<u;o++)c[o]=n[2*o],h[o]=n[2*o+1];for(o=0;o<u-1;o++)g[o]=h[o+1]-h[o],f[o]=c[o+1]-c[o],p[o]=g[o]/f[o];for(d[0]=p[0],d[u-1]=p[u-2],o=1;o<u-1;o++)0===p[o]||0===p[o-1]||p[o-1]>0!=p[o]>0?d[o]=0:(d[o]=3*(f[o-1]+f[o])/((2*f[o]+f[o-1])/p[o-1]+(f[o]+2*f[o-1])/p[o]),isFinite(d[o])||(d[o]=0));for(l=(new e.Svg.Path).move(c[0],h[0],!1,s[0]),o=0;o<u-1;o++)l.curve(c[o]+f[o]/3,h[o]+d[o]*f[o]/3,c[o+1]-f[o]/3,h[o+1]-d[o+1]*f[o]/3,c[o+1],h[o+1],!1,s[o+1]);return l}return e.Interpolation.none()([])}},e.Interpolation.step=function(t){return t=e.extend({},{postpone:!0,fillHoles:!1},t),function(i,n){for(var s,a,r,o=new e.Svg.Path,l=0;l<i.length;l+=2){var c=i[l],h=i[l+1],u=n[l/2];void 0!==u.value?(void 0===r?o.move(c,h,!1,u):(t.postpone?o.line(c,a,!1,r):o.line(s,h,!1,u),o.line(c,h,!1,u)),s=c,a=h,r=u):t.fillHoles||(s=a=r=void 0)}return o}}}(this||global,t),function(t,e){"use strict";e.EventEmitter=function(){var t=[];return{addEventHandler:function(e,i){t[e]=t[e]||[],t[e].push(i)},removeEventHandler:function(e,i){t[e]&&(i?(t[e].splice(t[e].indexOf(i),1),0===t[e].length&&delete t[e]):delete t[e])},emit:function(e,i){t[e]&&t[e].forEach(function(t){t(i)}),t["*"]&&t["*"].forEach(function(t){t(e,i)})}}}}(this||global,t),function(t,e){"use strict";function i(t){var e=[];if(t.length)for(var i=0;i<t.length;i++)e.push(t[i]);return e}e.Class={extend:function(t,i){var n=i||this.prototype||e.Class,s=Object.create(n);e.Class.cloneDefinitions(s,t);var a=function(){var t,i=s.constructor||function(){};return t=this===e?Object.create(s):this,i.apply(t,Array.prototype.slice.call(arguments,0)),t};return a.prototype=s,a.super=n,a.extend=this.extend,a},cloneDefinitions:function(){var t=i(arguments),e=t[0];return t.splice(1,t.length-1).forEach(function(t){Object.getOwnPropertyNames(t).forEach(function(i){delete e[i],Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}),e}}}(this||global,t),function(t,e){"use strict";var i=t.window;function n(){i.addEventListener("resize",this.resizeListener),this.optionsProvider=e.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.addEventHandler("optionsChanged",(function(){this.update()}).bind(this)),this.options.plugins&&this.options.plugins.forEach((function(t){t instanceof Array?t[0](this,t[1]):t(this)}).bind(this)),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=void 0}e.Base=e.Class.extend({constructor:function(t,i,s,a,r){this.container=e.querySelector(t),this.data=i||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.defaultOptions=s,this.options=a,this.responsiveOptions=r,this.eventEmitter=e.EventEmitter(),this.supportsForeignObject=e.Svg.isSupported("Extensibility"),this.supportsAnimations=e.Svg.isSupported("AnimationEventsAttribute"),this.resizeListener=(function(){this.update()}).bind(this),this.container&&(this.container.__chartist__&&this.container.__chartist__.detach(),this.container.__chartist__=this),this.initializeTimeoutId=setTimeout(n.bind(this),0)},optionsProvider:void 0,container:void 0,svg:void 0,eventEmitter:void 0,createChart:function(){throw new Error("Base chart type can't be instantiated!")},update:function(t,i,n){return t&&(this.data=t||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.eventEmitter.emit("data",{type:"update",data:this.data})),i&&(this.options=e.extend({},n?this.options:this.defaultOptions,i),this.initializeTimeoutId||(this.optionsProvider.removeMediaQueryListeners(),this.optionsProvider=e.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter))),this.initializeTimeoutId||this.createChart(this.optionsProvider.getCurrentOptions()),this},detach:function(){return this.initializeTimeoutId?i.clearTimeout(this.initializeTimeoutId):(i.removeEventListener("resize",this.resizeListener),this.optionsProvider.removeMediaQueryListeners()),this},on:function(t,e){return this.eventEmitter.addEventHandler(t,e),this},off:function(t,e){return this.eventEmitter.removeEventHandler(t,e),this},version:e.version,supportsForeignObject:!1})}(this||global,t),function(t,e){"use strict";var i=t.document;e.Svg=e.Class.extend({constructor:function(t,n,s,a,r){t instanceof Element?this._node=t:(this._node=i.createElementNS(e.namespaces.svg,t),"svg"===t&&this.attr({"xmlns:ct":e.namespaces.ct})),n&&this.attr(n),s&&this.addClass(s),a&&(r&&a._node.firstChild?a._node.insertBefore(this._node,a._node.firstChild):a._node.appendChild(this._node))},attr:function(t,i){return"string"==typeof t?i?this._node.getAttributeNS(i,t):this._node.getAttribute(t):(Object.keys(t).forEach((function(i){if(void 0!==t[i])if(-1!==i.indexOf(":")){var n=i.split(":");this._node.setAttributeNS(e.namespaces[n[0]],i,t[i])}else this._node.setAttribute(i,t[i])}).bind(this)),this)},elem:function(t,i,n,s){return new e.Svg(t,i,n,this,s)},parent:function(){return this._node.parentNode instanceof SVGElement?new e.Svg(this._node.parentNode):null},root:function(){for(var t=this._node;"svg"!==t.nodeName;)t=t.parentNode;return new e.Svg(t)},querySelector:function(t){var i=this._node.querySelector(t);return i?new e.Svg(i):null},querySelectorAll:function(t){var i=this._node.querySelectorAll(t);return i.length?new e.Svg.List(i):null},getNode:function(){return this._node},foreignObject:function(t,n,s,a){if("string"==typeof t){var r=i.createElement("div");r.innerHTML=t,t=r.firstChild}t.setAttribute("xmlns",e.namespaces.xmlns);var o=this.elem("foreignObject",n,s,a);return o._node.appendChild(t),o},text:function(t){return this._node.appendChild(i.createTextNode(t)),this},empty:function(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this},remove:function(){return this._node.parentNode.removeChild(this._node),this.parent()},replace:function(t){return this._node.parentNode.replaceChild(t._node,this._node),t},append:function(t,e){return e&&this._node.firstChild?this._node.insertBefore(t._node,this._node.firstChild):this._node.appendChild(t._node),this},classes:function(){return this._node.getAttribute("class")?this._node.getAttribute("class").trim().split(/\s+/):[]},addClass:function(t){return this._node.setAttribute("class",this.classes(this._node).concat(t.trim().split(/\s+/)).filter(function(t,e,i){return i.indexOf(t)===e}).join(" ")),this},removeClass:function(t){var e=t.trim().split(/\s+/);return this._node.setAttribute("class",this.classes(this._node).filter(function(t){return-1===e.indexOf(t)}).join(" ")),this},removeAllClasses:function(){return this._node.setAttribute("class",""),this},height:function(){return this._node.getBoundingClientRect().height},width:function(){return this._node.getBoundingClientRect().width},animate:function(t,i,n){return void 0===i&&(i=!0),Object.keys(t).forEach((function(s){function a(t,i){var a,r,o,l={};t.easing&&(o=t.easing instanceof Array?t.easing:e.Svg.Easing[t.easing],delete t.easing),t.begin=e.ensureUnit(t.begin,"ms"),t.dur=e.ensureUnit(t.dur,"ms"),o&&(t.calcMode="spline",t.keySplines=o.join(" "),t.keyTimes="0;1"),i&&(t.fill="freeze",l[s]=t.from,this.attr(l),r=e.quantity(t.begin||0).value,t.begin="indefinite"),a=this.elem("animate",e.extend({attributeName:s},t)),i&&setTimeout((function(){try{a._node.beginElement()}catch(e){l[s]=t.to,this.attr(l),a.remove()}}).bind(this),r),n&&a._node.addEventListener("beginEvent",(function(){n.emit("animationBegin",{element:this,animate:a._node,params:t})}).bind(this)),a._node.addEventListener("endEvent",(function(){n&&n.emit("animationEnd",{element:this,animate:a._node,params:t}),i&&(l[s]=t.to,this.attr(l),a.remove())}).bind(this))}t[s]instanceof Array?t[s].forEach((function(t){a.bind(this)(t,!1)}).bind(this)):a.bind(this)(t[s],i)}).bind(this)),this}}),e.Svg.isSupported=function(t){return i.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#"+t,"1.1")},e.Svg.Easing={easeInSine:[.47,0,.745,.715],easeOutSine:[.39,.575,.565,1],easeInOutSine:[.445,.05,.55,.95],easeInQuad:[.55,.085,.68,.53],easeOutQuad:[.25,.46,.45,.94],easeInOutQuad:[.455,.03,.515,.955],easeInCubic:[.55,.055,.675,.19],easeOutCubic:[.215,.61,.355,1],easeInOutCubic:[.645,.045,.355,1],easeInQuart:[.895,.03,.685,.22],easeOutQuart:[.165,.84,.44,1],easeInOutQuart:[.77,0,.175,1],easeInQuint:[.755,.05,.855,.06],easeOutQuint:[.23,1,.32,1],easeInOutQuint:[.86,0,.07,1],easeInExpo:[.95,.05,.795,.035],easeOutExpo:[.19,1,.22,1],easeInOutExpo:[1,0,0,1],easeInCirc:[.6,.04,.98,.335],easeOutCirc:[.075,.82,.165,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]},e.Svg.List=e.Class.extend({constructor:function(t){var i=this;this.svgElements=[];for(var n=0;n<t.length;n++)this.svgElements.push(new e.Svg(t[n]));Object.keys(e.Svg.prototype).filter(function(t){return-1===["constructor","parent","querySelector","querySelectorAll","replace","append","classes","height","width"].indexOf(t)}).forEach(function(t){i[t]=function(){var n=Array.prototype.slice.call(arguments,0);return i.svgElements.forEach(function(i){e.Svg.prototype[t].apply(i,n)}),i}})}})}(this||global,t),function(t,e){"use strict";var i={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},n={accuracy:3};function s(t,i,n,s,a,r){var o=e.extend({command:a?t.toLowerCase():t.toUpperCase()},i,r?{data:r}:{});n.splice(s,0,o)}function a(t,e){t.forEach(function(n,s){i[n.command.toLowerCase()].forEach(function(i,a){e(n,i,s,a,t)})})}e.Svg.Path=e.Class.extend({constructor:function(t,i){this.pathElements=[],this.pos=0,this.close=t,this.options=e.extend({},n,i)},position:function(t){return void 0!==t?(this.pos=Math.max(0,Math.min(this.pathElements.length,t)),this):this.pos},remove:function(t){return this.pathElements.splice(this.pos,t),this},move:function(t,e,i,n){return s("M",{x:+t,y:+e},this.pathElements,this.pos++,i,n),this},line:function(t,e,i,n){return s("L",{x:+t,y:+e},this.pathElements,this.pos++,i,n),this},curve:function(t,e,i,n,a,r,o,l){return s("C",{x1:+t,y1:+e,x2:+i,y2:+n,x:+a,y:+r},this.pathElements,this.pos++,o,l),this},arc:function(t,e,i,n,a,r,o,l,c){return s("A",{rx:+t,ry:+e,xAr:+i,lAf:+n,sf:+a,x:+r,y:+o},this.pathElements,this.pos++,l,c),this},scale:function(t,e){return a(this.pathElements,function(i,n){i[n]*="x"===n[0]?t:e}),this},translate:function(t,e){return a(this.pathElements,function(i,n){i[n]+="x"===n[0]?t:e}),this},transform:function(t){return a(this.pathElements,function(e,i,n,s,a){var r=t(e,i,n,s,a);(r||0===r)&&(e[i]=r)}),this},parse:function(t){var n=t.replace(/([A-Za-z])([0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce(function(t,e){return e.match(/[A-Za-z]/)&&t.push([]),t[t.length-1].push(e),t},[]);"Z"===n[n.length-1][0].toUpperCase()&&n.pop();var s=n.map(function(t){var n=t.shift(),s=i[n.toLowerCase()];return e.extend({command:n},s.reduce(function(e,i,n){return e[i]=+t[n],e},{}))}),a=[this.pos,0];return Array.prototype.push.apply(a,s),Array.prototype.splice.apply(this.pathElements,a),this.pos+=s.length,this},stringify:function(){var t=Math.pow(10,this.options.accuracy);return this.pathElements.reduce((function(e,n){var s=i[n.command.toLowerCase()].map((function(e){return this.options.accuracy?Math.round(n[e]*t)/t:n[e]}).bind(this));return e+n.command+s.join(",")}).bind(this),"")+(this.close?"Z":"")},clone:function(t){var i=new e.Svg.Path(t||this.close);return i.pos=this.pos,i.pathElements=this.pathElements.slice().map(function(t){return e.extend({},t)}),i.options=e.extend({},this.options),i},splitByCommand:function(t){var i=[new e.Svg.Path];return this.pathElements.forEach(function(n){n.command===t.toUpperCase()&&0!==i[i.length-1].pathElements.length&&i.push(new e.Svg.Path),i[i.length-1].pathElements.push(n)}),i}}),e.Svg.Path.elementDescriptions=i,e.Svg.Path.join=function(t,i,n){for(var s=new e.Svg.Path(i,n),a=0;a<t.length;a++)for(var r=t[a],o=0;o<r.pathElements.length;o++)s.pathElements.push(r.pathElements[o]);return s}}(this||global,t),function(t,e){"use strict";var i={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};e.Axis=e.Class.extend({constructor:function(t,e,n,s){this.units=t,this.counterUnits=t===i.x?i.y:i.x,this.chartRect=e,this.axisLength=e[t.rectEnd]-e[t.rectStart],this.gridOffset=e[t.rectOffset],this.ticks=n,this.options=s},createGridAndLabels:function(t,i,n,s,a){var r=s["axis"+this.units.pos.toUpperCase()],o=this.ticks.map(this.projectValue.bind(this)),l=this.ticks.map(r.labelInterpolationFnc);o.forEach((function(c,h){var u,d={x:0,y:0};u=o[h+1]?o[h+1]-c:Math.max(this.axisLength-c,30),e.isFalseyButZero(l[h])&&""!==l[h]||("x"===this.units.pos?(c=this.chartRect.x1+c,d.x=s.axisX.labelOffset.x,d.y="start"===s.axisX.position?this.chartRect.padding.top+s.axisX.labelOffset.y+(n?5:20):this.chartRect.y1+s.axisX.labelOffset.y+(n?5:20)):(c=this.chartRect.y1-c,d.y=s.axisY.labelOffset.y-(n?u:0),d.x="start"===s.axisY.position?n?this.chartRect.padding.left+s.axisY.labelOffset.x:this.chartRect.x1-10:this.chartRect.x2+s.axisY.labelOffset.x+10),r.showGrid&&e.createGrid(c,h,this,this.gridOffset,this.chartRect[this.counterUnits.len](),t,[s.classNames.grid,s.classNames[this.units.dir]],a),r.showLabel&&e.createLabel(c,u,h,l,this,r.offset,d,i,[s.classNames.label,s.classNames[this.units.dir],"start"===r.position?s.classNames[r.position]:s.classNames.end],n,a))}).bind(this))},projectValue:function(t,e,i){throw new Error("Base axis can't be instantiated!")}}),e.Axis.units=i}(this||global,t),function(t,e){"use strict";e.AutoScaleAxis=e.Axis.extend({constructor:function(t,i,n,s){var a=s.highLow||e.getHighLow(i,s,t.pos);this.bounds=e.getBounds(n[t.rectEnd]-n[t.rectStart],a,s.scaleMinSpace||20,s.onlyInteger),this.range={min:this.bounds.min,max:this.bounds.max},e.AutoScaleAxis.super.constructor.call(this,t,n,this.bounds.values,s)},projectValue:function(t){return this.axisLength*(+e.getMultiValue(t,this.units.pos)-this.bounds.min)/this.bounds.range}})}(this||global,t),function(t,e){"use strict";e.FixedScaleAxis=e.Axis.extend({constructor:function(t,i,n,s){var a=s.highLow||e.getHighLow(i,s,t.pos);this.divisor=s.divisor||1,this.ticks=s.ticks||e.times(this.divisor).map((function(t,e){return a.low+(a.high-a.low)/this.divisor*e}).bind(this)),this.ticks.sort(function(t,e){return t-e}),this.range={min:a.low,max:a.high},e.FixedScaleAxis.super.constructor.call(this,t,n,this.ticks,s),this.stepLength=this.axisLength/this.divisor},projectValue:function(t){return this.axisLength*(+e.getMultiValue(t,this.units.pos)-this.range.min)/(this.range.max-this.range.min)}})}(this||global,t),function(t,e){"use strict";e.StepAxis=e.Axis.extend({constructor:function(t,i,n,s){e.StepAxis.super.constructor.call(this,t,n,s.ticks,s);var a=Math.max(1,s.ticks.length-(s.stretch?1:0));this.stepLength=this.axisLength/a},projectValue:function(t,e){return this.stepLength*e}})}(this||global,t),function(t,e){"use strict";var i={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:e.noop,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:e.noop,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,showGridBackground:!1,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};e.Line=e.Base.extend({constructor:function(t,n,s,a){e.Line.super.constructor.call(this,t,n,i,e.extend({},i,s),a)},createChart:function(t){var n=e.normalizeData(this.data,t.reverseData,!0);this.svg=e.createSvg(this.container,t.width,t.height,t.classNames.chart);var s,a,r=this.svg.elem("g").addClass(t.classNames.gridGroup),o=this.svg.elem("g"),l=this.svg.elem("g").addClass(t.classNames.labelGroup),c=e.createChartRect(this.svg,t,i.padding);s=void 0===t.axisX.type?new e.StepAxis(e.Axis.units.x,n.normalized.series,c,e.extend({},t.axisX,{ticks:n.normalized.labels,stretch:t.fullWidth})):t.axisX.type.call(e,e.Axis.units.x,n.normalized.series,c,t.axisX),a=void 0===t.axisY.type?new e.AutoScaleAxis(e.Axis.units.y,n.normalized.series,c,e.extend({},t.axisY,{high:e.isNumeric(t.high)?t.high:t.axisY.high,low:e.isNumeric(t.low)?t.low:t.axisY.low})):t.axisY.type.call(e,e.Axis.units.y,n.normalized.series,c,t.axisY),s.createGridAndLabels(r,l,this.supportsForeignObject,t,this.eventEmitter),a.createGridAndLabels(r,l,this.supportsForeignObject,t,this.eventEmitter),t.showGridBackground&&e.createGridBackground(r,c,t.classNames.gridBackground,this.eventEmitter),n.raw.series.forEach((function(i,r){var l=o.elem("g");l.attr({"ct:series-name":i.name,"ct:meta":e.serialize(i.meta)}),l.addClass([t.classNames.series,i.className||t.classNames.series+"-"+e.alphaNumerate(r)].join(" "));var h=[],u=[];n.normalized.series[r].forEach((function(t,o){var l={x:c.x1+s.projectValue(t,o,n.normalized.series[r]),y:c.y1-a.projectValue(t,o,n.normalized.series[r])};h.push(l.x,l.y),u.push({value:t,valueIndex:o,meta:e.getMetaData(i,o)})}).bind(this));var d={lineSmooth:e.getSeriesOption(i,t,"lineSmooth"),showPoint:e.getSeriesOption(i,t,"showPoint"),showLine:e.getSeriesOption(i,t,"showLine"),showArea:e.getSeriesOption(i,t,"showArea"),areaBase:e.getSeriesOption(i,t,"areaBase")},p=("function"==typeof d.lineSmooth?d.lineSmooth:d.lineSmooth?e.Interpolation.monotoneCubic():e.Interpolation.none())(h,u);if(d.showPoint&&p.pathElements.forEach((function(n){var o=l.elem("line",{x1:n.x,y1:n.y,x2:n.x+.01,y2:n.y},t.classNames.point).attr({"ct:value":[n.data.value.x,n.data.value.y].filter(e.isNumeric).join(","),"ct:meta":e.serialize(n.data.meta)});this.eventEmitter.emit("draw",{type:"point",value:n.data.value,index:n.data.valueIndex,meta:n.data.meta,series:i,seriesIndex:r,axisX:s,axisY:a,group:l,element:o,x:n.x,y:n.y})}).bind(this)),d.showLine){var g=l.elem("path",{d:p.stringify()},t.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:n.normalized.series[r],path:p.clone(),chartRect:c,index:r,series:i,seriesIndex:r,seriesMeta:i.meta,axisX:s,axisY:a,group:l,element:g})}if(d.showArea&&a.range){var f=Math.max(Math.min(d.areaBase,a.range.max),a.range.min),m=c.y1-a.projectValue(f);p.splitByCommand("M").filter(function(t){return t.pathElements.length>1}).map(function(t){var e=t.pathElements[0],i=t.pathElements[t.pathElements.length-1];return t.clone(!0).position(0).remove(1).move(e.x,m).line(e.x,e.y).position(t.pathElements.length+1).line(i.x,m)}).forEach((function(e){var o=l.elem("path",{d:e.stringify()},t.classNames.area,!0);this.eventEmitter.emit("draw",{type:"area",values:n.normalized.series[r],path:e.clone(),series:i,seriesIndex:r,axisX:s,axisY:a,chartRect:c,index:r,group:l,element:o})}).bind(this))}}).bind(this)),this.eventEmitter.emit("created",{bounds:a.bounds,chartRect:c,axisX:s,axisY:a,svg:this.svg,options:t})}})}(this||global,t),function(t,e){"use strict";var i={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:e.noop,scaleMinSpace:30,onlyInteger:!1},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:e.noop,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,high:void 0,low:void 0,referenceValue:0,chartPadding:{top:15,right:15,bottom:5,left:10},seriesBarDistance:15,stackBars:!1,stackMode:"accumulate",horizontalBars:!1,distributeSeries:!1,reverseData:!1,showGridBackground:!1,classNames:{chart:"ct-chart-bar",horizontalBars:"ct-horizontal-bars",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",bar:"ct-bar",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};e.Bar=e.Base.extend({constructor:function(t,n,s,a){e.Bar.super.constructor.call(this,t,n,i,e.extend({},i,s),a)},createChart:function(t){var n,s;t.distributeSeries?(n=e.normalizeData(this.data,t.reverseData,t.horizontalBars?"x":"y")).normalized.series=n.normalized.series.map(function(t){return[t]}):n=e.normalizeData(this.data,t.reverseData,t.horizontalBars?"x":"y"),this.svg=e.createSvg(this.container,t.width,t.height,t.classNames.chart+(t.horizontalBars?" "+t.classNames.horizontalBars:""));var a=this.svg.elem("g").addClass(t.classNames.gridGroup),r=this.svg.elem("g"),o=this.svg.elem("g").addClass(t.classNames.labelGroup);if(t.stackBars&&0!==n.normalized.series.length){var l=e.serialMap(n.normalized.series,function(){return Array.prototype.slice.call(arguments).map(function(t){return t}).reduce(function(t,e){return{x:t.x+(e&&e.x)||0,y:t.y+(e&&e.y)||0}},{x:0,y:0})});s=e.getHighLow([l],t,t.horizontalBars?"x":"y")}else s=e.getHighLow(n.normalized.series,t,t.horizontalBars?"x":"y");s.high=+t.high||(0===t.high?0:s.high),s.low=+t.low||(0===t.low?0:s.low);var c,h,u,d,p,g=e.createChartRect(this.svg,t,i.padding);h=t.distributeSeries&&t.stackBars?n.normalized.labels.slice(0,1):n.normalized.labels,t.horizontalBars?(c=d=void 0===t.axisX.type?new e.AutoScaleAxis(e.Axis.units.x,n.normalized.series,g,e.extend({},t.axisX,{highLow:s,referenceValue:0})):t.axisX.type.call(e,e.Axis.units.x,n.normalized.series,g,e.extend({},t.axisX,{highLow:s,referenceValue:0})),u=p=void 0===t.axisY.type?new e.StepAxis(e.Axis.units.y,n.normalized.series,g,{ticks:h}):t.axisY.type.call(e,e.Axis.units.y,n.normalized.series,g,t.axisY)):(u=d=void 0===t.axisX.type?new e.StepAxis(e.Axis.units.x,n.normalized.series,g,{ticks:h}):t.axisX.type.call(e,e.Axis.units.x,n.normalized.series,g,t.axisX),c=p=void 0===t.axisY.type?new e.AutoScaleAxis(e.Axis.units.y,n.normalized.series,g,e.extend({},t.axisY,{highLow:s,referenceValue:0})):t.axisY.type.call(e,e.Axis.units.y,n.normalized.series,g,e.extend({},t.axisY,{highLow:s,referenceValue:0})));var f=t.horizontalBars?g.x1+c.projectValue(0):g.y1-c.projectValue(0),m=[];u.createGridAndLabels(a,o,this.supportsForeignObject,t,this.eventEmitter),c.createGridAndLabels(a,o,this.supportsForeignObject,t,this.eventEmitter),t.showGridBackground&&e.createGridBackground(a,g,t.classNames.gridBackground,this.eventEmitter),n.raw.series.forEach((function(i,s){var a,o,l=s-(n.raw.series.length-1)/2;a=t.distributeSeries&&!t.stackBars?u.axisLength/n.normalized.series.length/2:t.distributeSeries&&t.stackBars?u.axisLength/2:u.axisLength/n.normalized.series[s].length/2,(o=r.elem("g")).attr({"ct:series-name":i.name,"ct:meta":e.serialize(i.meta)}),o.addClass([t.classNames.series,i.className||t.classNames.series+"-"+e.alphaNumerate(s)].join(" ")),n.normalized.series[s].forEach((function(r,h){var v,b,x,y;if(y=t.distributeSeries&&!t.stackBars?s:t.distributeSeries&&t.stackBars?0:h,v=t.horizontalBars?{x:g.x1+c.projectValue(r&&r.x?r.x:0,h,n.normalized.series[s]),y:g.y1-u.projectValue(r&&r.y?r.y:0,y,n.normalized.series[s])}:{x:g.x1+u.projectValue(r&&r.x?r.x:0,y,n.normalized.series[s]),y:g.y1-c.projectValue(r&&r.y?r.y:0,h,n.normalized.series[s])},u instanceof e.StepAxis&&(u.options.stretch||(v[u.units.pos]+=a*(t.horizontalBars?-1:1)),v[u.units.pos]+=t.stackBars||t.distributeSeries?0:l*t.seriesBarDistance*(t.horizontalBars?-1:1)),m[h]=(x=m[h]||f)-(f-v[u.counterUnits.pos]),void 0!==r){var w={};w[u.units.pos+"1"]=v[u.units.pos],w[u.units.pos+"2"]=v[u.units.pos],!t.stackBars||"accumulate"!==t.stackMode&&t.stackMode?(w[u.counterUnits.pos+"1"]=f,w[u.counterUnits.pos+"2"]=v[u.counterUnits.pos]):(w[u.counterUnits.pos+"1"]=x,w[u.counterUnits.pos+"2"]=m[h]),w.x1=Math.min(Math.max(w.x1,g.x1),g.x2),w.x2=Math.min(Math.max(w.x2,g.x1),g.x2),w.y1=Math.min(Math.max(w.y1,g.y2),g.y1),w.y2=Math.min(Math.max(w.y2,g.y2),g.y1);var S=e.getMetaData(i,h);b=o.elem("line",w,t.classNames.bar).attr({"ct:value":[r.x,r.y].filter(e.isNumeric).join(","),"ct:meta":e.serialize(S)}),this.eventEmitter.emit("draw",e.extend({type:"bar",value:r,index:h,meta:S,series:i,seriesIndex:s,axisX:d,axisY:p,chartRect:g,group:o,element:b},w))}}).bind(this))}).bind(this)),this.eventEmitter.emit("created",{bounds:c.bounds,chartRect:g,axisX:d,axisY:p,svg:this.svg,options:t})}})}(this||global,t),function(t,e){"use strict";var i={width:void 0,height:void 0,chartPadding:5,classNames:{chartPie:"ct-chart-pie",chartDonut:"ct-chart-donut",series:"ct-series",slicePie:"ct-slice-pie",sliceDonut:"ct-slice-donut",sliceDonutSolid:"ct-slice-donut-solid",label:"ct-label"},startAngle:0,total:void 0,donut:!1,donutSolid:!1,donutWidth:60,showLabel:!0,labelOffset:0,labelPosition:"inside",labelInterpolationFnc:e.noop,labelDirection:"neutral",reverseData:!1,ignoreEmptyValues:!1};function n(t,e,i){var n=e.x>t.x;return n&&"explode"===i||!n&&"implode"===i?"start":n&&"implode"===i||!n&&"explode"===i?"end":"middle"}e.Pie=e.Base.extend({constructor:function(t,n,s,a){e.Pie.super.constructor.call(this,t,n,i,e.extend({},i,s),a)},createChart:function(t){var s,a,r,o,l,c=e.normalizeData(this.data),h=[],u=t.startAngle;this.svg=e.createSvg(this.container,t.width,t.height,t.donut?t.classNames.chartDonut:t.classNames.chartPie),a=e.createChartRect(this.svg,t,i.padding),r=Math.min(a.width()/2,a.height()/2),l=t.total||c.normalized.series.reduce(function(t,e){return t+e},0);var d=e.quantity(t.donutWidth);"%"===d.unit&&(d.value*=r/100),r-=t.donut&&!t.donutSolid?d.value/2:0,o="outside"===t.labelPosition||t.donut&&!t.donutSolid?r:"center"===t.labelPosition?0:t.donutSolid?r-d.value/2:r/2,o+=t.labelOffset;var p={x:a.x1+a.width()/2,y:a.y2+a.height()/2},g=1===c.raw.series.filter(function(t){return t.hasOwnProperty("value")?0!==t.value:0!==t}).length;c.raw.series.forEach((function(t,e){h[e]=this.svg.elem("g",null,null)}).bind(this)),t.showLabel&&(s=this.svg.elem("g",null,null)),c.raw.series.forEach((function(i,a){if(0!==c.normalized.series[a]||!t.ignoreEmptyValues){h[a].attr({"ct:series-name":i.name}),h[a].addClass([t.classNames.series,i.className||t.classNames.series+"-"+e.alphaNumerate(a)].join(" "));var f=l>0?u+c.normalized.series[a]/l*360:0,m=Math.max(0,u-(0===a||g?0:.2));f-m>=359.99&&(f=m+359.99);var v,b,x,y=e.polarToCartesian(p.x,p.y,r,m),w=e.polarToCartesian(p.x,p.y,r,f),S=new e.Svg.Path(!t.donut||t.donutSolid).move(w.x,w.y).arc(r,r,0,f-u>180,0,y.x,y.y);t.donut?t.donutSolid&&(v=e.polarToCartesian(p.x,p.y,x=r-d.value,u-(0===a||g?0:.2)),b=e.polarToCartesian(p.x,p.y,x,f),S.line(v.x,v.y),S.arc(x,x,0,f-u>180,1,b.x,b.y)):S.line(p.x,p.y);var A=t.classNames.slicePie;t.donut&&(A=t.classNames.sliceDonut,t.donutSolid&&(A=t.classNames.sliceDonutSolid));var z=h[a].elem("path",{d:S.stringify()},A);if(z.attr({"ct:value":c.normalized.series[a],"ct:meta":e.serialize(i.meta)}),t.donut&&!t.donutSolid&&(z._node.style.strokeWidth=d.value+"px"),this.eventEmitter.emit("draw",{type:"slice",value:c.normalized.series[a],totalDataSum:l,index:a,meta:i.meta,series:i,group:h[a],element:z,path:S.clone(),center:p,radius:r,startAngle:u,endAngle:f}),t.showLabel){var C,O;C=1===c.raw.series.length?{x:p.x,y:p.y}:e.polarToCartesian(p.x,p.y,o,u+(f-u)/2),O=c.normalized.labels&&!e.isFalseyButZero(c.normalized.labels[a])?c.normalized.labels[a]:c.normalized.series[a];var E=t.labelInterpolationFnc(O,a);if(E||0===E){var k=s.elem("text",{dx:C.x,dy:C.y,"text-anchor":n(p,C,t.labelDirection)},t.classNames.label).text(""+E);this.eventEmitter.emit("draw",{type:"label",index:a,group:s,element:k,text:""+E,x:C.x,y:C.y})}}u=f}}).bind(this)),this.eventEmitter.emit("created",{chartRect:a,svg:this.svg,options:t})},determineAnchorPosition:n})}(this||global,t),t}()}).apply(e,[]))||(t.exports=n)}}]);

Anon7 - 2022
AnonSec Team