1(self.webpackChunknice=self.webpackChunknice||[]).push([[990],{7990:(ya,ur,Ue)=>{"use strict";Ue.r(ur),Ue.d(ur,{AppsModule:()=>y1});class D{constructor(_,i,d,p){this.chatClass=_,this.imagePath=i,this.time=d,this.messages=p}}class Ae{constructor(){this.chat1=[new D("odd","assets/images/users/user4.jpg","9.30 am",["Hi, How are you ?"]),new D("even","assets/images/users/user1.jpg","9.30 am",["Hey Bruce, I am Fine"]),new D("odd","assets/images/users/user4.jpg","9.31 am",["What are you doing nowadays ?"]),new D("even","assets/images/users/user1.jpg","9.31 am",["Nothing Much."]),new D("odd","assets/images/users/user4.jpg","9.32 am",["yes"]),new D("even","assets/images/users/user1.jpg","9.32 am",["Do you have interest in IOS ?"]),new D("odd","assets/images/users/user4.jpg","9.33 am",["Yes, not more."])],this.chat2=[new D("odd","assets/images/users/user4.jpg","9.32 am",["Hi ram .."]),new D("even","assets/images/users/user2.jpg","9.32 am",["Hi, Bruce"]),new D("odd","assets/images/users/user4.jpg","9.32 am",["Have a knowledge about Cordova ram ..?"]),new D("even","assets/images/users/user2.jpg","9.34 am",["Yes, You also have interest in that ?"]),new D("odd","assets/images/users/user4.jpg","9.34 am",["Yeah, I have also develop a mobile app on that ram .."]),new D("even","assets/images/users/user2.jpg","9.34 am",["Do you upload that on play store ?"]),new D("odd","assets/images/users/user4.jpg","9.34 am",["Nope ram .."]),new D("even","assets/images/users/user2.jpg","9.35 am",["Then Upload it, you will get money."]),new D("odd","assets/images/users/user4.jpg","9.35 am",["Okay ram ..."])],this.chat3=[new D("odd","assets/images/users/user4.jpg","9.37 am",["Hey, How are you ?"]),new D("even","assets/images/users/user3.jpg","9.37 am",["Hi, I am fine."]),new D("odd","assets/images/users/user4.jpg","9.37 am",["okay"]),new D("even","assets/images/users/user3.jpg","9.37 am",["Lets go for tea."]),new D("odd","assets/images/users/user4.jpg","9.39 am",["Yeah, Sure"]),new D("even","assets/images/users/user3.jpg","9.39 am",["What about time?"]),new D("odd","assets/images/users/user4.jpg","9.39 am",["I will ask you after"]),new D("even","assets/images/users/user3.jpg","9.39 am",["Okay, let me know. Once you decide."]),new D("odd","assets/images/users/user4.jpg","9.41 am",["Yeah"]),new D("even","assets/images/users/user3.jpg","9.41 am",["Bye"])],this.chat4=[new D("odd","assets/images/users/user4.jpg","9.21 am",["Hi, How are you ?"]),new D("even","assets/images/users/user4.jpg","9.21 am",["Hey Bruce, I am Fine"]),new D("odd","assets/images/users/user4.jpg","9.21 am",["What are you doing nowadays ?"]),new D("even","assets/images/users/user4.jpg","9.21 am",["Nothing Much."]),new D("odd","assets/images/users/user4.jpg","9.21 am",["yes"]),new D("even","assets/images/users/user4.jpg","9.22 am",["Do you have interest in IOS ?"]),new D("odd","assets/images/users/user4.jpg","9.23 am",["Yes, not more."]),new D("even","assets/images/users/user4.jpg","9.24 am",["Okay."]),new D("odd","assets/images/users/user4.jpg","9.24 am",["I have join Android Classes."]),new D("even","assets/images/users/user4.jpg","9.24 am",["Okay, Great."])],this.chat5=[new D("odd","assets/images/users/user4.jpg","9.14 am",["Hi"]),new D("even","assets/images/users/user5.jpg","9.14 am",["Hi, Bruce"]),new D("odd","assets/images/users/user4.jpg","9.14 am",["Have a knowledge about Cordova ?"]),new D("even","assets/images/users/user5.jpg","9.15 am",["Yes, You also have interest in that ?"]),new D("odd","assets/images/users/user4.jpg","9.15 am",["Yeah, I have also develop a mobile app on that"]),new D("even","assets/images/users/user5.jpg","9.15 am",["Do you upload that on play store ?"]),new D("odd","assets/images/users/user4.jpg","9.16 am",["Nope"]),new D("even","assets/images/users/user5.jpg","9.16 am",["Then Upload it, you will get money."]),new D("odd","assets/images/users/user4.jpg","9.16 am",["Okay."])]}}var cn=Ue(5803),ce=Ue(6814),Et=Ue(9101),e=Ue(9212);const Vs=["messageInput"],fi=(c,_)=>_.id,_u=(c,_)=>_.imagePath;function xa(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"a",31),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw();return e.KtG(k.setActive(w.id))}),e.TgZ(1,"span",32),e._UZ(2,"img",33)(3,"span",34),e.qZA(),e.TgZ(4,"div",35)(5,"h5",36),e._uU(6),e.qZA(),e.TgZ(7,"span",37),e._uU(8),e.qZA(),e.TgZ(9,"p",38),e._uU(10),e.qZA()()()}if(2&c){const i=_.$implicit,d=e.oxw();e.ekj("active",d.activeChatUserId===i.id),e.xp6(2),e.s9C("src",i.imagePath,e.LSH),e.xp6(4),e.Oqu(i.name),e.xp6(2),e.Oqu(i.signature),e.xp6(2),e.Oqu(i.time)}}function Kt(c,_){if(1&c&&(e.TgZ(0,"div",43)(1,"div",44),e._uU(2),e.qZA()()),2&c){const i=_.$implicit;e.xp6(2),e.hij(" ",i," ")}}function go(c,_){if(1&c&&(e.TgZ(0,"div",45),e._uU(1),e.qZA()),2&c){const i=e.oxw().$implicit;e.xp6(),e.hij(" ",i.time," ")}}const on=c=>[c];function zs(c,_){if(1&c&&(e.TgZ(0,"li",39)(1,"div",40),e._UZ(2,"img",41),e.qZA(),e.SjG(3,Kt,3,1,"div",46,e.x6l),e.YNc(5,go,2,1,"div",42),e.qZA()),2&c){const i=_.$implicit;e.Q6J("ngClass",e.VKq(3,on,i.chatClass)),e.xp6(2),e.Q6J("src",e.VKq(5,on,i.imagePath),e.LSH),e.xp6(),e.wJu(i.messages),e.xp6(2),e.um2(5,""!=i.time?5:-1)}}function un(c,_){if(1&c&&(e.TgZ(0,"div",43)(1,"div",44),e._uU(2),e.qZA()()),2&c){const i=_.$implicit;e.xp6(2),e.Oqu(i)}}function Pn(c,_){if(1&c&&(e.TgZ(0,"li",47)(1,"div",48),e._UZ(2,"img",49),e.qZA(),e.TgZ(3,"div",50),e.SjG(4,un,3,1,"div",46,e.x6l),e.qZA(),e.TgZ(6,"div",51),e._uU(7),e.ALo(8,"date"),e.qZA()()),2&c){const i=e.oxw();e.xp6(4),e.wJu(i.messages),e.xp6(3),e.hij(" ",e.xi3(8,1,i.now,"hh.mm a")," ")}}const rt=c=>({"show-panel":c});let hn=(()=>{class c{constructor(){this.showSidebar=!1,this.now=null,this.activeChatUserId=1,this.activeChatUser="",this.activeChatUserImg="",this.activeChatUserStatus="",this.messageInputRef=null,this.messages=new Array,this.contactList=null,this.savedMessages=null;const i=new Ae;this.contactList=[{id:1,imagePath:"assets/images/users/user1.jpg",name:"Steve Rogers",signature:"Hey Banner, where are you?",time:"9:30AM",chats:i.chat1},{id:2,imagePath:"assets/images/users/user2.jpg",name:"Ram",signature:"ram ram ram .....",time:"10:30AM",chats:i.chat2},{id:3,imagePath:"assets/images/users/user3.jpg",name:"Shyam",signature:"shyam shyam .....",time:"11:30AM",chats:i.chat3},{id:4,imagePath:"assets/images/users/user4.jpg",name:"Mark",signature:"mark mark ......",time:"8:30AM",chats:i.chat4},{id:5,imagePath:"assets/images/users/user5.jpg",name:"Robin",signature:"robin robin ......",time:"6:30AM",chats:i.chat5}],this.activeChatUser=this.contactList.find(d=>1===d.id)?.name,this.activeChatUserImg=this.contactList.find(d=>1===d.id).imagePath,this.savedMessages=this.contactList.find(d=>1===d.id).chats,this.activeChatUserStatus="Online"}ngOnInit(){}setActive(i){if(this.savedMessages=new Array,this.messages=[],null!==this.contactList)for(let d=0;d<this.contactList.length;d++)this.contactList[d].id===i&&(this.activeChatUserId=this.contactList[d].id,this.activeChatUser=this.contactList[d].name,this.activeChatUserImg=this.contactList[d].imagePath,this.savedMessages=this.contactList[d].chats,this.activeChatUserStatus="Online")}onAddMessage(){""!==this.messageInputRef?.nativeElement.value&&this.messages.push(this.messageInputRef?.nativeElement.value),null!==this.messageInputRef&&(this.messageInputRef.nativeElement.value="",this.messageInputRef.nativeElement.focus()),this.now=new Date}mobileSidebar(){this.showSidebar=!this.showSidebar}static#e=this.\u0275fac=function(d){return new(d||c)};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["app-chat"]],viewQuery:function(d,p){
1if(1&d&&e.Gf(Vs,7),2&d){let w;e.iGM(w=e.CRH())&&(p.messageInputRef=w.first)}},standalone:!0,features:[e.jDz],decls:43,vars:10,consts:[["href","javascript:void(0)",1,"btn","btn-success","show-left-part","d-block","d-md-none",3,"ngClass","click"],[1,"main-part"],[1,"left-part","bg-white","fixed-left-part",3,"ngClass"],[1,"position-relative",2,"height","100%"],[1,"ps-3","pe-4","py-3","d-flex","align-items-center","mt-1","border-bottom"],["src","assets/images/users/user4.jpg","width","45","alt","user",1,"rounded-circle"],[1,"text-dark","mb-0","ms-3","fs-5"],[1,"mb-0","fs-2"],[1,"fa","fa-circle","text-success","font-10","me-2"],[1,"mailbox","list-style-none"],[1,"message-center",2,"height","calc(100vh - 267px)"],[1,"right-part","border-start"],[1,"card","mb-0"],[1,"p-3","d-flex","align-items-center","border-bottom","bg-info"],[1,"me-3"],["alt","user","width","50",1,"rounded-circle",3,"src"],[1,"text-white","mb-0"],[1,"mb-0","text-white"],[1,"chat-box","pe-3",2,"height","calc(100vh - 352px)","overflow-y","auto"],["scrollMe",""],[1,"card-body","py-0"],[1,"chat-list","with-img","list-unstyled"],["class","chat-item mt-4 odd type-msg"],[1,"card-body","border-top"],[1,"chat-app-input","row"],[1,"col-9"],["type","text","id","iconLeft4","placeholder","Type your message and enter",1,"form-control","border-0",3,"keydown.enter"],["messageInput",""],[1,"col-3"],["type","button",1,"btn-circle","rounded-circle","btn-lg","btn","btn-info","float-end","text-white",3,"click"],[1,"fas","fa-paper-plane"],[1,"message-item","border-bottom","d-block","text-decoration-none",3,"click"],[1,"user-img","position-relative","d-inline-block"],["alt","user","width","100",1,"rounded-circle",3,"src"],[1,"profile-status","rounded-circle","d-inline-block","online","float-end"],[1,"mail-contnet","d-inline-block","w-75","ps-3","align-middle"],[1,"message-title"],[1,"mail-desc","fs-2","d-block","text-muted","text-truncate"],[1,"time","text-uppercase"],[1,"chat-item","mt-4",3,"ngClass"],[1,"chat-img","d-inline-block","align-top"],["alt","avatar",1,"rounded-circle",3,"src"],["class","chat-time d-block fs-1 text-lowercase"],[1,"chat-content","d-inline-block","ps-3","mb-1"],[1,"box","d-inline-block","p-2"],[1,"chat-time","d-block","fs-1","text-lowercase"],["class","chat-content d-inline-block ps-3 mb-1"],[1,"chat-item","mt-4","odd","type-msg"],["data-toggle","tooltip","data-placement","right","title","","data-original-title","",1,"chat-img","d-inline-block","align-top"],["src","assets/images/users/user5.jpg","alt","user-images",1,"rounded-circle"],[1,"chat-messages"],[1,"chat-time","d-block","fs-1"],["class","message-item border-bottom d-block text-decoration-none",3,"active"],["class","chat-item mt-4",3,"ngClass"]],template:function(d,p){1&d&&(e.TgZ(0,"a",0),e.NdJ("click",function(){return p.mobileSidebar()}),e.qZA(),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div"),e._UZ(6,"img",5),e.qZA(),e.TgZ(7,"div",6),e._uU(8," Bruce Banner "),e.TgZ(9,"p",7),e._UZ(10,"i",8),e.TgZ(11,"span"),e._uU(12,"Online"),e.qZA()()()(),e.TgZ(13,"ul",9)(14,"li")(15,"ng-scrollbar",10),e.SjG(16,xa,11,6,"a",52,fi),e.qZA()()()()(),e.TgZ(18,"div",11)(19,"div",12)(20,"div",13)(21,"div",14),e._UZ(22,"img",15),e.qZA(),e.TgZ(23,"div")(24,"h5",16),e._uU(25),e.qZA(),e.TgZ(26,"p",17),e._uU(27),e.qZA()()(),e.TgZ(28,"ng-scrollbar",18,19)(30,"div",20)(31,"ul",21),e.SjG(32,zs,6,7,"li",53,_u),e.YNc(34,Pn,9,4,"li",22),e.qZA()()(),e.TgZ(35,"div",23)(36,"form",24)(37,"div",25)(38,"input",26,27),e.NdJ("keydown.enter",function(k){return p.onAddMessage(),k.preventDefault()}),e.qZA()(),e.TgZ(40,"div",28)(41,"button",29),e.NdJ("click",function(){return p.onAddMessage()}),e._UZ(42,"i",30),e.qZA()()()()()()()),2&d&&(e.Q6J("ngClass",p.showSidebar?"ti-close":"ti-menu"),e.xp6(2),e.Q6J("ngClass",e.VKq(6,rt,p.showSidebar)),e.xp6(14),e.wJu(p.contactList),e.xp6(6),e.Q6J("src",e.VKq(8,on,p.activeChatUserImg),e.LSH),e.xp6(3),e.Oqu(p.activeChatUser),e.xp6(2),e.Oqu(p.activeChatUserStatus),e.xp6(5),e.wJu(p.savedMessages),e.xp6(2),e.um2(34,p.messages.length>0?34:-1))},dependencies:[cn.kb,cn.KC,ce.ez,ce.mk,ce.uU,Et.p],encapsulation:2,changeDetection:0})}return c})();class Ri{constructor(){this.Id=0,this.Status=null,this.Label=null,this.ticketTitle=null,this.ticketDescription=null,this.AgentName=null,this.Date=null}}var V=Ue(6223),nt=Ue(1086);
1const Ys=[{Id:1,ticketTitle:"Sed ut perspiciatis unde omnis iste",ticketDescription:"ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos",Status:"Closed",Label:"danger",AgentName:"Liam",Date:new Date("02-15-2023")},{Id:2,ticketTitle:"Consequuntur magni dolores eos qui ratione",ticketDescription:"ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos",Status:"Pending",Label:"warning",AgentName:"Steve",Date:new Date("06-15-2023")},{Id:3,ticketTitle:"Exercitationem ullam corporis",ticketDescription:"ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos",Status:"Open",Label:"success",AgentName:"Jack",Date:new Date("02-15-2023")},{Id:4,ticketTitle:"Sed ut perspiciatis unde omnis iste",ticketDescription:"ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos",Status:"Closed",Label:"danger",AgentName:"Steve",Date:new Date("06-17-2021")},{Id:5,ticketTitle:"Exercitationem ullam corporis",ticketDescription:"ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos",Status:"Closed",Label:"danger",AgentName:"Liam",Date:new Date("02-21-2023")},{Id:6,ticketTitle:"Consequuntur magni dolores eos qui ratione",ticketDescription:"ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos",Status:"Pending",Label:"warning",AgentName:"Jack",Date:new Date("09-15-2022")},{Id:7,ticketTitle:"Sed ut perspiciatis unde omnis iste",ticketDescription:"ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos",Status:"Open",Label:"success",AgentName:"Steve",Date:new Date("11-09-2023")},{Id:8,ticketTitle:"Consequuntur magni dolores eos qui ratione",ticketDescription:"ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos",Status:"Closed",Label:"danger",AgentName:"John",Date:new Date("07-01-2023")}];let Xn=(()=>{class c{constructor(){this.tickets=Ys}getTickets(){return this.tickets}static#e=this.\u0275fac=function(d){return new(d||c)};static#t=this.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac})}return c})();function Ht(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"tr")(1,"td",23),e._uU(2),e.qZA(),e.TgZ(3,"td",24)(4,"span"),e._uU(5),e.qZA()(),e.TgZ(6,"td",25)(7,"p",26),e._UZ(8,"ngb-highlight",27),e.qZA(),e.TgZ(9,"small",28),e._UZ(10,"ngb-highlight",27),e.qZA()(),e.TgZ(11,"td")(12,"small",29),e._uU(13,"Assign to:"),e.qZA(),e._UZ(14,"br"),e.TgZ(15,"strong"),e._uU(16),e.qZA()(),e.TgZ(17,"td",30),e._uU(18),e.ALo(19,"date"),e.qZA(),e.TgZ(20,"td")(21,"a",31),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw(),I=e.MAs(49);return e.KtG(k.openModal(I,w))}),e._UZ(22,"i-feather",32),e.qZA(),e.TgZ(23,"a",33),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw();return e.KtG(k.deleteTicket(w.Id))}),e._UZ(24,"i-feather",34),e.qZA()()()}if(2&c){const i=_.$implicit,d=e.oxw();e.xp6(2),e.Oqu(i.Id),e.xp6(2),e.Gre("badge bg-",i.Label,""),e.xp6(),e.Oqu(i.Status),e.xp6(3),e.Q6J("result",i.ticketTitle)("term",d.searchTerm),e.xp6(2),e.Q6J("result",i.ticketDescription)("term",d.searchTerm),e.xp6(6),e.Oqu(i.AgentName),e.xp6(2),e.Oqu(e.lcZ(19,11,i.Date))}}function H(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1," Title is required "),e.qZA())}function ba(c,_){if(1&c&&(e.TgZ(0,"div",59),e.YNc(1,H,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.ticketTitle.errors.required?1:-1)}}function Ke(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1," Description is required "),e.qZA())}function hi(c,_){if(1&c&&(e.TgZ(0,"div",59),e.YNc(1,Ke,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.ticketDescription.errors.required?1:-1)}}function wa(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1," Date is required "),e.qZA())}function mo(c,_){if(1&c&&(e.TgZ(0,"div",59),e.YNc(1,wa,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.Date.errors.required?1:-1)}}function _o(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1," Fullname is required "),e.qZA())}function vo(c,_){if(1&c&&(e.TgZ(0,"div",59),e.YNc(1,_o,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.Status.errors.required?1:-1)}}function $s(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1," Agent Name is required "),e.qZA())}function a(c,_){if(1&c&&(e.TgZ(0,"div",59),e.YNc(1,$s,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.AgentName.errors.required?1:-1)}}const l=c=>
1({"is-invalid":c});function f(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",35)(1,"h5",36),e._uU(2,"Edit Ticket"),e.qZA(),e.TgZ(3,"button",37),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.closeBtnClick())}),e.qZA()(),e.TgZ(4,"div",38)(5,"form",39),e.NdJ("ngSubmit",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.onSubmit())}),e.TgZ(6,"div",40)(7,"label",41),e._uU(8,"Title"),e.qZA(),e.TgZ(9,"div",42),e._UZ(10,"input",43),e.YNc(11,ba,2,1,"div",44),e.qZA()(),e.TgZ(12,"div",40)(13,"label",45),e._uU(14,"Ticket Description"),e.qZA(),e.TgZ(15,"div",42),e._UZ(16,"input",46),e.YNc(17,hi,2,1,"div",44),e.qZA()(),e.TgZ(18,"div",40)(19,"label",47),e._uU(20,"Date"),e.qZA(),e.TgZ(21,"div",42)(22,"input",48),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.ticketDate=p)}),e.qZA(),e.YNc(23,mo,2,1,"div",44),e.qZA()(),e.TgZ(24,"div",40)(25,"label",49),e._uU(26,"Status"),e.qZA(),e.TgZ(27,"div",42)(28,"select",50)(29,"option",51),e._uU(30,"Closed"),e.qZA(),e.TgZ(31,"option"),e._uU(32,"Open"),e.qZA(),e.TgZ(33,"option"),e._uU(34,"In Process"),e.qZA()(),e.YNc(35,vo,2,1,"div",44),e.qZA()(),e.TgZ(36,"div",40)(37,"label",52),e._uU(38,"Assign To"),e.qZA(),e.TgZ(39,"div",42)(40,"select",53)(41,"option"),e._uU(42,"Steve"),e.qZA(),e.TgZ(43,"option"),e._uU(44,"Jack"),e.qZA(),e.TgZ(45,"option"),e._uU(46,"John"),e.qZA(),e.TgZ(47,"option"),e._uU(48,"Liam"),e.qZA()(),e.YNc(49,a,2,1,"div",44),e.qZA()(),e.TgZ(50,"div",54),e._UZ(51,"span",55),e.TgZ(52,"div",42)(53,"button",56),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.closeBtnClick())}),e._uU(54," Close "),e.qZA(),e.TgZ(55,"button",57),e._uU(56," Save "),e.qZA()()(),e.TgZ(57,"div",58)(58,"small"),e._uU(59,"New ticket will be shown on second page."),e.qZA()()()()}if(2&c){const i=e.oxw();e.xp6(5),e.Q6J("formGroup",i.editTicket),e.xp6(5),e.Q6J("ngClass",e.VKq(13,l,i.submitted&&i.f.ticketTitle.errors)),e.xp6(),e.um2(11,i.submitted&&i.f.ticketTitle.errors?11:-1),e.xp6(5),e.Q6J("ngClass",e.VKq(15,l,i.submitted&&i.f.ticketDescription.errors)),e.xp6(),e.um2(17,i.submitted&&i.f.ticketDescription.errors?17:-1),e.xp6(5),e.Q6J("ngModel",i.ticketDate)("ngClass",e.VKq(17,l,i.submitted&&i.f.Date.errors)),e.xp6(),e.um2(23,i.submitted&&i.f.Date.errors?23:-1),e.xp6(5),e.Q6J("ngClass",e.VKq(19,l,i.submitted&&i.f.Status.errors)),e.xp6(7),e.um2(35,i.submitted&&i.f.Status.errors?35:-1),e.xp6(5),e.Q6J("ngClass",e.VKq(21,l,i.submitted&&i.f.AgentName.errors)),e.xp6(9),e.um2(49,i.submitted&&i.f.AgentName.errors?49:-1),e.xp6(6),e.Q6J("disabled",i.editTicket.invalid)}}let m=(()=>{class c{constructor(i,d,p,w){this.ticketService=i,this.fb=d,this.modalService=p,this.datePipe=w,this.closed=0,this.open=0,this.pending=0,this.ticketsList=this.ticketService.getTickets(),this.ticketDate=null,this.ticketDetail=null,this.submitted=!1,this.editTicket=Object.create(null),this.page=1,this.pageSize=5,this.createButtonClick=!0,this.totalLengthOfCollection=0,this._searchTerm="",this.filterTickets=this.ticketsList,this.totalLengthOfCollection=this.filterTickets.length}ngOnInit(){this.editTicket=this.fb.group({ticketTitle:["",V.kI.required],ticketDescription:["",V.kI.required],Date:["",V.kI.required],Status:["",V.kI.required],AgentName:["",V.kI.required]}),this.filterTickets=this.ticketsList,this.ticketService&&(this.open=this.ticketService.getTickets().filter(i=>"Open"===i.Status).length,this.pending=this.ticketService.getTickets().filter(i=>"Pending"===i.Status).length,this.closed=this.ticketService.getTickets().filter(i=>"Closed"===i.Status).length),this.editTicket=this.fb.group({Id:[""],Status:["",V.kI.required],ticketTitle:["",V.kI.required],ticketDescription:["",V.kI.required],AgentName:["",V.kI.required],Date:[""]})}get f(){return this.editTicket.controls}get searchTerm(){return this._searchTerm}set searchTerm(i){this._searchTerm=i,this.filterTickets=this.filter(i),this.totalLengthOfCollection=this.filterTickets.length}filter(i){return this.ticketService.getTickets().filter(d=>-1!==d.AgentName?.toLowerCase().indexOf(i.toLowerCase())||-1!==d.ticketTitle?.toLowerCase().indexOf(i.toLowerCase())||-1!==d.Status?.toLowerCase().indexOf(i.toLowerCase()))}openModal(i,d){this.modalService.open(i,{centered:!0,backdrop:"static"}),null==d&&(this.createButtonClick=!1),null!=d&&(this.ticketDetail=d,this.editTicket.patchValue({Id:d.Id,Status:d.Status,ticketTitle:d.ticketTitle,ticketDescription:d.ticketDescription,AgentName:d.AgentName,Date:d.Date}))}onSubmit(){if(null!=this.ticketDetail){const i=this.ticketService.getTickets().indexOf(this.ticketDetail);switch(this.ticketDetail.Status=this.editTicket?.get("Status")?.value,this.ticketDetail.ticketTitle=this.editTicket?.get("ticketTitle")?.value,this.ticketDetail.ticketDescription=this.editTicket?.get("ticketDescription")?.value,this.ticketDetail.AgentName=this.editTicket?.get("AgentName")?.value,this.ticketDetail.Date=this.editTicket?.get("Date")?.value,this.ticketDetail.Status){case"Pending":this.ticketDetail.Label="warning";break;case"Open":this.ticketDetail.Label="success";break;case"Closed":this.ticketDetail.Label="danger"}this.ticketService.getTickets()[i]=this.ticketDetail}else{switch(this.ticketDetail=new Ri,this.ticketDetail.Id=Math.max.apply(Math,this.ticketService.getTickets().map(function(i){return i.Id}))+1,this.ticketDetail.Status=this.editTicket?.get("Status")?.value,this.ticketDetail.ticketTitle=this.editTicket?.get("ticketTitle")?.value,this.ticketDetail.ticketDescription=this.editTicket?.get("ticketDescription")?.value,this.ticketDetail.AgentName=this.editTicket?.get("AgentName")?.value,this.ticketDetail.Date=new Date,this.ticketDetail.Status){case"Pending":this.ticketDetail.Label="warning";break;case"Open":this.ticketDetail.Label="success";break;case"Closed":this.ticketDetail.Label="danger"}this.ticketService.getTickets().push(this.ticketDetail)}this.modalService.dismissAll(),this.ticketDate="",this.ticketDetail=null,this.ngOnInit()}closeBtnClick(){this.modalService.dismissAll(),this.ngOnInit()}deleteTicket(i){this.filterTickets=this.filterTickets.filter(d=>d.Id!==i),this.ticketsList=this.ticketsList.filter(d=>d.Id!==i),this.ticketService&&(this.open=this.filterTickets.filter(d=>"Open"===d.Status).length,this.pending=this.filterTickets.filter(d=>"Pending"===d.Status).length,this.closed=this.filterTickets.filter(d=>"Closed"===d.Status).length),this.totalLengthOfCollection=this.filterTickets.length}filterByStatus(i){return this.filterTickets=this.ticketService.getTickets(),this.searchTerm="","All"===i?(this.filterTickets=this.ticketsList,this.totalLengthOfCollection=this.ticketsList.length,this.filterTickets):(this.filterTickets=this.filterTickets.filter(d=>d.Status===i),this.totalLengthOfCollection=this.filterTickets.length,this.filterTickets)}static#e=this.\u0275fac=function(d){return new(d||c)(e.Y36(Xn),e.Y36(V.qu),e.Y36(nt.FF),e.Y36(ce.uU))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["app-tickets"]],standalone:!0,features:[e.jDz],decls:50,vars:12,consts:[[1,"row"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"col-md-6","col-lg-3","col-xlg-3"],[1,"card","card-hover"],[1,"box","bg-info","cursor-pointer","text-center",3,"click"],[1,"fw-light","text-white"],[1,"text-white"],[1,"box","bg-warning","cursor-pointer","text-center",3,"click"],[1,"box","bg-success","cursor-pointer","text-center",3,"click"],[1,"box","bg-danger","cursor-pointer","text-center",3,"click"],[1,"row","mb-4"],[1,"col-md-6","col-lg-3","col-xl-2"],["type","text","type","text","name","search","autocomplete","off","placeholder","Search here...",1,"form-control",3,"ngModel","ngModelChange"],[1,"col-md-6","col-lg-9","col-xl-10","text-md-end","mt-4","mt-md-0"],[1,"btn","btn-cyan","text-white",3,"click"],[1,"fa","fa-plus-square","me-2"],[1,"table-responsive"],[1,"table","mb-0","text-nowrap","align-middle"],[1,"d-flex","justify-content-center","mt-5"],[3,"page","pageSize","collectionSize","pageChange"],["editTicketModal",""],["width","50",1,"text-center"],["width","150",1,"text-center"],[1,"ticket-desc"],[1,"mb-1"],[3,"result","term"],[1,"text-truncate","fw-normal","text-muted"],[1,"fw-normal","text-muted"],[1,"fw-normal"],["href","javascript: void(0);","placement","top","ngbTooltip","Edit",1,"link","me-2",3,"click"],["name","edit",1,"feather-sm"],["href","javascript: void(0);","placement","top","ngbTooltip","Delete",1,"link",3,"click"],["name","trash-2",1,"feather-sm","text-danger"],[1,"modal-header"],["id","editUserLabel",1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[3,"formGroup","ngSubmit"],[1,"mb-3","row"],["for","title",1,"col-sm-4","col-form-label"],[1,"col-sm-8"],["type","text","formControlName","ticketTitle","id","title",1,"form-control",3,"ngClass"],["class","invali
1d-feedback"],["for","description",1,"col-sm-4","col-form-label"],["type","text","formControlName","ticketDescription","id","description",1,"form-control",3,"ngClass"],["for","date",1,"col-sm-4","col-form-label"],["type","date","formControlName","Date","id","date",1,"form-control",3,"ngModel","ngClass","ngModelChange"],["for","status",1,"col-sm-4","col-form-label"],["formControlName","Status",1,"form-select",3,"ngClass"],["selected",""],["for","agent",1,"col-sm-4","col-form-label"],["formControlName","AgentName",1,"form-select",3,"ngClass"],[1,"mb-3","row","mt-4"],[1,"col-sm-4","col-form-label"],["type","button",1,"btn","btn-secondary","me-2",3,"click"],["type","submit",1,"btn","btn-primary",3,"disabled"],[1,"text-center"],[1,"invalid-feedback"]],template:function(d,p){if(1&d){const w=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",0)(5,"div",4)(6,"div",5)(7,"div",6),e.NdJ("click",function(){return p.filterByStatus("All")}),e.TgZ(8,"h1",7),e._uU(9),e.qZA(),e.TgZ(10,"h6",8),e._uU(11,"Total Tickets"),e.qZA()()()(),e.TgZ(12,"div",4)(13,"div",5)(14,"div",9),e.NdJ("click",function(){return p.filterByStatus("Pending")}),e.TgZ(15,"h1",7),e._uU(16),e.qZA(),e.TgZ(17,"h6",8),e._uU(18,"Pending"),e.qZA()()()(),e.TgZ(19,"div",4)(20,"div",5)(21,"div",10),e.NdJ("click",function(){return p.filterByStatus("Open")}),e.TgZ(22,"h1",7),e._uU(23),e.qZA(),e.TgZ(24,"h6",8),e._uU(25,"Open"),e.qZA()()()(),e.TgZ(26,"div",4)(27,"div",5)(28,"div",11),e.NdJ("click",function(){return p.filterByStatus("Closed")}),e.TgZ(29,"h1",7),e._uU(30),e.qZA(),e.TgZ(31,"h6",8),e._uU(32,"Closed"),e.qZA()()()()(),e.TgZ(33,"div",12)(34,"div",13)(35,"input",14),e.NdJ("ngModelChange",function(I){return p.searchTerm=I}),e.qZA()(),e.TgZ(36,"div",15)(37,"button",16),e.NdJ("click",function(){e.CHM(w);const I=e.MAs(49);return e.KtG(p.openModal(I,null))}),e._UZ(38,"i",17),e._uU(39,"Add Ticket "),e.qZA()()()(),e.TgZ(40,"div",18)(41,"table",19)(42,"tbody"),e.SjG(43,Ht,25,13,"tr",null,e.x6l),e.ALo(45,"slice"),e.qZA()()(),e.TgZ(46,"div",20)(47,"ngb-pagination",21),e.NdJ("pageChange",function(I){return p.page=I}),e.qZA()()()()(),e.YNc(48,f,60,23,"ng-template",null,22,e.W1O)}2&d&&(e.xp6(9),e.Oqu(p.ticketsList.length),e.xp6(7),e.Oqu(p.pending),e.xp6(7),e.Oqu(p.open),e.xp6(7),e.Oqu(p.closed),e.xp6(5),e.Q6J("ngModel",p.searchTerm),e.xp6(8),e.wJu(e.Dn7(45,8,p.filterTickets,(p.page-1)*p.pageSize,(p.page-1)*p.pageSize+p.pageSize)),e.xp6(4),e.Q6J("page",p.page)("pageSize",p.pageSize)("collectionSize",p.totalLengthOfCollection))},dependencies:[ce.ez,ce.mk,ce.OU,ce.uU,V.u5,V._Y,V.YN,V.Kr,V.Fj,V.EJ,V.JJ,V.JL,V.On,V.UX,V.sg,V.u,nt.jF,nt.N9,Et.p,Et.u,nt._h],styles:[".ticket-desc[_ngcontent-%COMP%]{width:500px}.ticket-desc[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-weight:500;font-size:16px}.ticket-desc[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{width:400px;display:block}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]})}return c})();var C=Ue(5294),S=Ue(3360);const E=()=>({height:"200px"});let L=(()=>{class c{constructor(){this.html=""}ngOnInit(){this.editor=new S.ML}ngOnDestroy(){this.editor.destroy()}ngAfterViewInit(){C.generate({bindto:"#visitor",data:{columns:[["Open",4],["Closed",2],["In progress",2],["Other",0]],type:"donut"},donut:{label:{show:!1},title:"Tickets",width:35},legend:{hide:!0},color:{pattern:["#40c4ff","#2961ff","#ff821c","#7e74fb"]}})}static#e=this.\u0275fac=function(d){return new(d||c)};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["ng-component"]],standalone:!0,features:[e.jDz],decls:131,vars:8,consts:[[1,"row"],[1,"col-lg-8"],[1,"card"],[1,"card-body"],[1,"card-title"],[1,"list-unstyled","mt-4","pt-3"],[1,"d-flex","align-items-start"],["src","assets/images/users/user2.jpg","width","60","alt","Generic placeholder image",1,"me-3","flex-shrink-0"],[1,"mt-0","mb-1"],[1,"d-flex","align-items-start","my-4"],["src","assets/images/users/user1.jpg","width","60","alt","Generic placeholder image",1,"me-3","flex-shrink-0"],[1,"mb-4"],["method","post"],[1,"NgxEditor__Wrapper"],[3,"editor"],[3,"editor","ngModel","disabled","placeholder"],[1,"button-group"],["type","button",1,"mt-3","btn","waves-effect","waves-light","btn-success"],["type","button",1,"mt-3","btn","waves-effect","waves-light","btn-info"],[1,"col-lg-4"],[1,"card-body","bg-light"],[1,"row","text-center"],[1,"col-6","mt-2","mb-2"],[1,"badge","bg-warning"],[1,"pt-3"],[1,"mt-4"],[1,"card-body","text-center"],[1,"profile-pic","mb-4","mt-3"],["src","assets/images/users/user5.jpg","width","150","alt","user",1,"rounded-circle"],[1,"mt-3","mb-0"],["href","mailto:[email protected]"],[1,"row","text-center","mt-4","pt-3"],[1,"col-4"],[1,"fw-bold"],[1,"p-4","border-top","mt-3"],[1,"col-6","border-end"],["href","#",1,"link","d-flex","align-items-center","justify-content-center","font-medium"],[1,"mdi","mdi-message","fs-6","me-2"],[1,"col-6"],[1,"mdi","mdi-developer-board","fs-6","me-2"],["id","visitor",1,"mt-3",2,"height","290px","width","100%"]],template:function(d,p){1&d&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h4",4),e._uU(5,"Ticket"),e.qZA(),e._uU(6," Hi There, i was wondering, do you provide a service to build custom pages. I need some pages for a ticket system similar to the one you have. Please advise if you provide this service and i will send through my requirements. Regards. "),e.qZA()(),e.TgZ(7,"div",2)(8,"div",3)(9,"h4",4),e._uU(10,"Ticket Replies"),e.qZA(),e.TgZ(11,"ul",5)(12,"li",6),e._UZ(13,"img",7),e.TgZ(14,"div")(15,"h5",8),e._uU(16,"User Name"),e.qZA(),e._uU(17," Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus. "),e.qZA()(),e._UZ(18,"hr"),e.TgZ(19,"li",9),e._UZ(20,"img",10),e.TgZ(21,"div")(22,"h5",8),e._uU(23,"Agent Name"),e.qZA(),e._uU(24," Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus. "),e.qZA()(),e._UZ(25,"hr"),e.TgZ(26,"li",6),e._UZ(27,"img",7),e.TgZ(28,"div")(29,"h5",8),e._uU(30,"User Name"),e.qZA(),e._uU(31," Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus. "),e.qZA()(),e._UZ(32,"hr"),e.TgZ(33,"li",6),e._UZ(34,"img",7),e.TgZ(35,"div")(36,"h5",8),e._uU(37,"User Name"),e.qZA(),e._uU(38," Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus. "),e.qZA()(),e._UZ(39,"hr"),e.TgZ(40,"li",9),e._UZ(41,"img",10),e.TgZ(42,"div")(43,"h5",8),e._uU(44,"Agent Name"),e.qZA(),e._uU(45," Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus. "),e.qZA()(),e._UZ(46,"hr"),e.TgZ(47,"li",6),e._UZ(48,"img",7),e.TgZ(49,"div")(50,"h5",8),e._uU(51,"User Name"),e.qZA(),e._uU(52," Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus. "),e.qZA()()()()(),e.TgZ(53,"div",2)(54,"div",3)(55,"h4",11),e._uU(56,"Write a reply"),e.qZA(),e.TgZ(57,"form",12)(58,"div",13),e._UZ(59,"ngx-editor-menu",14)(60,"ngx-editor",15),e.qZA(),e.TgZ(61,"div",16)(62,"button",17),e._uU(63," Reply "),e.qZA(),e.TgZ(64,"button",18),e._uU(65," Reply & close "),e.qZA()()()()()(),e.TgZ(66,"div",19)(67,"div",2)(68,"div",3)(69,"h4",4),e._uU(70,"Ticket Info"),e.qZA()(),e.TgZ(71,"div",20)(72,"div",21)(73,"div",22)(74,"span",23),e._uU(75,"In Progress"),e.qZA()(),e.TgZ(76,"div",22),e._uU(77,"May 2, 2018 9:49"),e.qZA()()(),e.TgZ(78,"div",3)(79,"h5",24),e._uU(80,"Ticket Creator"),e.qZA(),e.TgZ(81,"span"),e._uU(82,"User Name"),e.qZA(),e.TgZ(83,"h5",25),e._uU(84,"Support Staff"),e.qZA(),e.TgZ(85,"span"),e._uU(86,"Agent Name"),e.qZA(),e._UZ(87,"br"),e.TgZ(88,"button",17),e._uU(89," Update "),e.qZA()()(),e.TgZ(90,"div",2)(91,"div",26)(92,"h4",4),e._uU(93,"User Info"),e.qZA(),e.TgZ(94,"div",27),e._UZ(95,"img",28),e.TgZ(96,"h4",29),e._uU(97,"Daniel Kristeen"),e.qZA(),e.TgZ(98,"a",30),e._uU(99,"[email protected]"),e.qZA()(),e.TgZ(100,"div",31)(101,"div",32)(102,"h3",33),e._uU(103,"4"),e.qZA(),e.TgZ(104,"h6"),e._uU(105,"Total"),e.qZA()(),e.TgZ(106,"div",32)(107,"h3",33),e._uU(108,"2"),e.qZA(),e.TgZ(109,"h6"),e._uU(110,"Open"),e.qZA()(),e.TgZ(111,"div",32)(112,"h3",33),e._uU(113,"3"),e.qZA(),e.TgZ(114,"h6"),e._uU(115,"Closed"),e.qZA()()()(),e.TgZ(116,"div",34)(117,"div",21)(118,"div",35)(119,"a",36),e._UZ(120,"i",37),e._uU(121,"Message"),e.qZA()(),e.TgZ(122,"div",38)(123,"a",36),e._UZ(124,"i",39),e._uU(125,"Portfolio"),e.qZA()()()()(),e.TgZ(126,"div",2)(127,"div",3)(128,"h4",4),e._uU(129,"Ticket Statestics"),e.qZA(),e._UZ(130,"div",40),e.qZA()()()()),2&d&&(e.xp6(59),e.Q6J("editor",p.editor),e.xp6(),e.Akn(e.DdM(7,E)
1),e.Q6J("editor",p.editor)("ngModel",p.html)("disabled",!1)("placeholder","Type here..."))},dependencies:[S.FP,S.tP,S.Mn,V.u5,V._Y,V.JJ,V.JL,V.On,V.F,ce.ez,V.UX],encapsulation:2})}return c})();var U=Ue(7120);const O=(c,_)=>_.title;function J(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",16)(1,"div",17),e._uU(2),e.qZA(),e.TgZ(3,"small",18),e._uU(4),e.qZA(),e.TgZ(5,"div",19)(6,"a",20),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw(),I=e.MAs(35);return e.KtG(k.openModal(I,w))}),e._UZ(7,"i-feather",21),e.qZA(),e.TgZ(8,"a",22),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw();return e.KtG(k.deleteTask(w.id))}),e._UZ(9,"i-feather",23),e.qZA()()()}if(2&c){const i=_.$implicit;e.xp6(2),e.hij(" ",i.title," "),e.xp6(2),e.Oqu(i.desc)}}function $(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",16)(1,"div",17),e._uU(2),e.qZA(),e.TgZ(3,"small",18),e._uU(4),e.qZA(),e.TgZ(5,"div",19)(6,"a",20),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw(),I=e.MAs(35);return e.KtG(k.openModal(I,w))}),e._UZ(7,"i-feather",21),e.qZA(),e.TgZ(8,"a",22),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw();return e.KtG(k.deleteTask(w.id))}),e._UZ(9,"i-feather",23),e.qZA()()()}if(2&c){const i=_.$implicit;e.xp6(2),e.hij(" ",i.title," "),e.xp6(2),e.Oqu(i.desc)}}function ie(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",16)(1,"div",17),e._uU(2),e.qZA(),e.TgZ(3,"small",18),e._uU(4),e.qZA(),e.TgZ(5,"div",19)(6,"a",20),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw(),I=e.MAs(35);return e.KtG(k.openModal(I,w))}),e._UZ(7,"i-feather",21),e.qZA(),e.TgZ(8,"a",22),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw();return e.KtG(k.deleteTask(w.id))}),e._UZ(9,"i-feather",23),e.qZA()()()}if(2&c){const i=_.$implicit;e.xp6(2),e.hij(" ",i.title," "),e.xp6(2),e.Oqu(i.desc)}}function ne(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",16)(1,"div",17),e._uU(2),e.qZA(),e.TgZ(3,"small",18),e._uU(4),e.qZA(),e.TgZ(5,"div",19)(6,"a",20),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw(),I=e.MAs(35);return e.KtG(k.openModal(I,w))}),e._UZ(7,"i-feather",21),e.qZA(),e.TgZ(8,"a",22),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw();return e.KtG(k.deleteTask(w.id))}),e._UZ(9,"i-feather",23),e.qZA()()()}if(2&c){const i=_.$implicit;e.xp6(2),e.hij(" ",i.title," "),e.xp6(2),e.Oqu(i.desc)}}function ae(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",24)(1,"h3",25),e._uU(2,"Task"),e.qZA(),e.TgZ(3,"button",26),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.closeBtnClick())}),e.qZA()(),e.TgZ(4,"form",27),e.NdJ("ngSubmit",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.onSubmit())}),e.TgZ(5,"div",28)(6,"div",29)(7,"label",30),e._uU(8,"Task Title"),e.qZA(),e.TgZ(9,"div",31),e._UZ(10,"input",32),e.qZA()(),e.TgZ(11,"div",33)(12,"label",34),e._uU(13,"Description"),e.qZA(),e.TgZ(14,"div",31),e._UZ(15,"input",35),e.qZA()()(),e.TgZ(16,"div",36)(17,"button",37),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.closeBtnClick())}),e._uU(18," Close "),e.qZA(),e.TgZ(19,"button",38),e._uU(20," Save "),e.qZA()()()}if(2&c){const i=e.oxw();e.xp6(4),e.Q6J("formGroup",i.task),e.xp6(15),e.Q6J("disabled",i.task.invalid)}}let fe=(()=>{class c{constructor(i,d){this.fb=i,this.modalService=d,this.todoToEdit=null,this.todos=[{id:101,title:"QA Testing",desc:"Etiam porta sem malesuada magna mollis euismod.",class:""},{id:102,title:"Layout design",desc:"Sed posuere consectetur est at lobortis. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.",class:"task-status-danger"},{id:103,title:"Fix navigation menu",desc:"Donec sed odio dui.",class:"task-status-info"},{id:104,title:"Update bootstrap 4",desc:"Aenean lacinia bibendum nulla sed consectetur.",class:""},{id:105,title:"Run build tools",desc:"Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.",class:""},{id:106,title:"List article ideas",desc:"Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.",class:"task-status-success"},{id:107,title:"Reactjs fixes",desc:"Lorem ipsum dolor sit amet, consectetur adipiscing elit.",class:""},{id:108,title:"Implement SSL",desc:"Etiam porta sem malesuada magna mollis euismod.",class:"task-status-warning"}],this.process=[{id:201,title:"QOS Assessment",desc:"Maecenas sed diam eget risus varius blandit sit amet non magna.",class:""},{id:202,title:"Schedule new tasks",desc:"Sed posuere consectetur est at lobortis.",class:"task-status-warning"},{id:203,title:"Add dashboard variants",desc:"Nulla vitae elit libero, a pharetra augue.",class:""},{id:204,title:"Extended color scheme support",desc:"Morbi leo risus, porta ac consectetur ac, vestibulum ateros.",class:""},{id:205,title:"Merge unit tests",desc:"Maecenas sed diam eget risus varius blandit sit amet non magna.",class:"task-status-info"},{id:206,title:"Test final version",desc:"Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.",class:""}],this.pendings=[{id:301,title:"Integrate Angular 4",desc:"Nulla vitae elit libero, a pharetra augue.",class:""},{id:302,title:"Additional fields",desc:"Donec id elit non mi porta gravida at eget metus.",class:""},{id:303,title:"Draggable task board",desc:"Sed posuere consectetur est at lobortis.",class:"task-status-danger"},{id:304,title:"Setup CI server",desc:"Maecenas faucibus mollis interdum.",class:"task-status-danger"},{id:305,title:"Assign new tasks",desc:"Nullam quis risus eget urna mollis ornare vel eu leo.",class:""},{id:306,title:"Contact administrator",desc:"Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.",class:""},{id:307,title:"Commit changes",desc:"Aenean lacinia bibendum nulla sed consectetur.",class:""}],this.done=[{id:401,title:"Store new files",desc:"Sed posuere consectetur est at lobortis.",class:"task-status-info"},{id:402,title:"Build landing page",desc:"Maecenas sed diam eget risus varius blandit sit amet non magna.",class:""},{id:403,title:"Setup basic layout",desc:"Vestibulum id ligula porta felis euismod semper.",class:""},{id:404,title:"Graphical fixes",desc:"Morbi leo risus, porta ac consectetur ac, vestibulum at eros.",class:""},{id:405,title:"Email alerts",desc:"Donec sed odio dui.",class:"task-status-warning"}]}ngOnInit(){this.task=this.fb.group({Title:["",V.kI.required],Description:["",V.kI.required]})}drop(i){i.previousContainer===i.container?(0,U.bA)(i.container.data,i.previousIndex,i.currentIndex):(0,U.EA)(i.previousContainer.data,i.container.data,i.previousIndex,i.currentIndex)}openModal(i,d){this.modalService.open(i,{centered:!0,backdrop:"static"}),null!=d&&(this.todoToEdit=d,this.task?.patchValue({Title:d.title,Description:d.desc}))}onSubmit(){if(null===this.todoToEdit)this.todos.push({id:this.todos.length+1,title:this.task?.get("Title")?.value,desc:this.task?.get("Description")?.value,class:""}),alert("Task added !");else{let i=-5;-1!==this.todos.indexOf(this.todoToEdit)?i=this.todos.indexOf(this.todoToEdit):-1!==this.process.indexOf(this.todoToEdit)?i=this.process.indexOf(this.todoToEdit):-1!==this.pendings.indexOf(this.todoToEdit)?i=this.pendings.indexOf(this.todoToEdit):-1!==this.done.indexOf(this.todoToEdit)&&(i=this.done.indexOf(this.todoToEdit)),-5!==i&&(this.todoToEdit.t
1itle=this.task?.get("Title")?.value,this.todoToEdit.desc=this.task?.get("Description")?.value,this.todos[i]=this.todoToEdit)}this.closeBtnClick()}deleteTask(i){confirm("Are you sure to delete it ?")&&(this.todos=this.todos.filter(d=>d.id!==i),this.process=this.process.filter(d=>d.id!==i),this.pendings=this.pendings.filter(d=>d.id!==i),this.done=this.done.filter(d=>d.id!==i))}closeBtnClick(){this.todoToEdit=null,this.modalService.dismissAll(),this.ngOnInit()}static#e=this.\u0275fac=function(d){return new(d||c)(e.Y36(V.QS),e.Y36(nt.FF))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["app-taskboard"]],standalone:!0,features:[e.jDz],decls:36,vars:4,consts:[[1,"card"],["cdkDropListGroup","",1,"card-body"],[1,"mb-3"],[1,"btn","btn-primary",3,"click"],[1,"taskboard","page-height","text-nowrap","overflow-auto"],[1,"taskboard-wrapper","px-2","d-inline-block","align-top","h-100","todos"],[1,"taskboard-list","d-flex","flex-column","rounded-0"],[1,"taskboard-header","position-relative","d-flex","flex-row","align-items-center","text-uppercase","p-2","pb-0","fw-bold","mt-2","text-primary","fw-bold","mt-2"],["cdkDropList","",1,"taskboard-cards","p-2",3,"cdkDropListData","cdkDropListDropped"],[1,"taskboard-wrapper","px-2","d-inline-block","align-top","h-100","inprocess"],[1,"taskboard-header","position-relative","d-flex","flex-row","align-items-center","text-uppercase","p-2","pb-0","fw-bold","mt-2","text-warning","fw-bold","mt-2"],[1,"taskboard-wrapper","px-2","d-inline-block","align-top","h-100","pending"],[1,"taskboard-header","position-relative","d-flex","flex-row","align-items-center","text-uppercase","p-2","pb-0","fw-bold","mt-2","text-danger","fw-bold","mt-2"],[1,"taskboard-wrapper","px-2","d-inline-block","align-top","h-100","taskdone"],[1,"taskboard-header","position-relative","d-flex","flex-row","align-items-center","text-uppercase","p-2","pb-0","fw-bold","mt-2","text-success","fw-bold","mt-2"],["taskModal",""],["cdkDrag","",1,"taskboard-task","p-2","mb-2","cursor-pointer"],[1,"taskboard-task-title","mb-2","font-medium"],[1,"card-text","text-muted"],[1,"mt-2","d-flex","justify-content-start","align-items-center"],["href","javascript:void(0)",1,"link",3,"click"],["name","eye",1,"feather-xs"],["href","javascript:void(0)",1,"text-danger","ms-2",3,"click"],["name","trash-2",1,"feather-xs"],[1,"modal-header"],["id","taskLabel",1,"modal-title","fw-bold"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[3,"formGroup","ngSubmit"],[1,"modal-body"],[1,"form-group","mb-2","row"],["for","name",1,"col-sm-4","col-form-label"],[1,"col-sm-8"],["type","text","formControlName","Title","id","title",1,"form-control"],[1,"form-group","row"],["for","position",1,"col-sm-4","col-form-label"],["type","text","formControlName","Description","id","description",1,"form-control"],[1,"modal-footer"],["type","button",1,"btn","btn-dark",3,"click"],["type","submit",1,"btn","btn-primary",3,"disabled"],["class","taskboard-task p-2 mb-2 cursor-pointer","cdkDrag",""]],template:function(d,p){if(1&d){const w=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),e.NdJ("click",function(){e.CHM(w);const I=e.MAs(35);return e.KtG(p.openModal(I,null))}),e._uU(4," Create Task "),e.qZA()(),e.TgZ(5,"div",4)(6,"div",5)(7,"div",6)(8,"h6",7),e._uU(9," Todos "),e.qZA(),e.TgZ(10,"div",8),e.NdJ("cdkDropListDropped",function(I){return p.drop(I)}),e.SjG(11,J,10,2,"div",39,O),e.qZA()()(),e.TgZ(13,"div",9)(14,"div",6)(15,"h6",10),e._uU(16," In Process "),e.qZA(),e.TgZ(17,"div",8),e.NdJ("cdkDropListDropped",function(I){return p.drop(I)}),e.SjG(18,$,10,2,"div",39,O),e.qZA()()(),e.TgZ(20,"div",11)(21,"div",6)(22,"h6",12),e._uU(23," Pending todos "),e.qZA(),e.TgZ(24,"div",8),e.NdJ("cdkDropListDropped",function(I){return p.drop(I)}),e.SjG(25,ie,10,2,"div",39,O),e.qZA()()(),e.TgZ(27,"div",13)(28,"div",6)(29,"h6",14),e._uU(30," Task Done "),e.qZA(),e.TgZ(31,"div",8),e.NdJ("cdkDropListDropped",function(I){return p.drop(I)}),e.SjG(32,ne,10,2,"div",39,e.x6l),e.qZA()()()()()(),e.YNc(34,ae,21,2,"ng-template",null,15,e.W1O)}2&d&&(e.xp6(10),e.Q6J("cdkDropListData",p.todos),e.xp6(),e.wJu(p.todos),e.xp6(6),e.Q6J("cdkDropListData",p.process),e.xp6(),e.wJu(p.process),e.xp6(6),e.Q6J("cdkDropListData",p.pendings),e.xp6(),e.wJu(p.pendings),e.xp6(6),e.Q6J("cdkDropListData",p.done),e.xp6(),e.wJu(p.done))}
1,dependencies:[V.u5,V._Y,V.Fj,V.JJ,V.JL,V.UX,V.sg,V.u,Et.p,Et.u,U._t,U.Wj,U.Fd,U.Zt],styles:["[_nghost-%COMP%]{padding:0!important;height:100%}.cursor-pointer[_ngcontent-%COMP%]{cursor:move}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;background-color:#fff;padding:10px 15px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.gu-mirror[_ngcontent-%COMP%]{background-color:#fff;border-radius:.125rem;padding:.5rem;opacity:1}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging[_ngcontent-%COMP%] .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.feather-xs[_ngcontent-%COMP%]{width:17px!important;height:17px!important}.taskboard[_ngcontent-%COMP%] .todos[_ngcontent-%COMP%] .taskboard-list[_ngcontent-%COMP%]{background-color:#e3f3fd}.taskboard[_ngcontent-%COMP%] .inprocess[_ngcontent-%COMP%] .taskboard-list[_ngcontent-%COMP%]{background-color:#fff8ec}.taskboard[_ngcontent-%COMP%] .pending[_ngcontent-%COMP%] .taskboard-list[_ngcontent-%COMP%]{background-color:#f9e7eb}.taskboard[_ngcontent-%COMP%] .taskdone[_ngcontent-%COMP%] .taskboard-list[_ngcontent-%COMP%]{background-color:#e8fdf8}"]})}return c})();function pe(c){if(null===c||!0===c||!1===c)return NaN;var _=Number(c);return isNaN(_)?_:_<0?Math.ceil(_):Math.floor(_)}function we(c){return(we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(_){return typeof _}:function(_){return _&&"function"==typeof Symbol&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(c)}function be(c,_){if(_.length<c)throw new TypeError(c+" argument"+(c>1?"s":"")+" required, but only "+_.length+" present")}function Ze(c){be(1,arguments);var _=Object.prototype.toString.call(c);return c instanceof Date||"object"===we(c)&&"[object Date]"===_?new Date(c.getTime()):"number"==typeof c||"[object Number]"===_?new Date(c):(("string"==typeof c||"[object String]"===_)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function mt(c,_){be(2,arguments);var i=Ze(c),d=pe(_);return isNaN(d)?new Date(NaN):(d&&i.setDate(i.getDate()+d),i)}function lt(c,_){return be(2,arguments),mt(c,-pe(_))}function dt(c){be(1,arguments);var _=Ze(c);return _.setHours(0,0,0,0),_}function pt(c){be(1,arguments);var _=Ze(c),i=_.getMonth();return _.setFullYear(_.getFullYear(),i+1,0),_.setHours(23,59,59,999),_}function Be(c,_){be(2,arguments);var i=Ze(c).getTime(),d=pe(_);return new Date(i+d)}var Ut=36e5;function $e(c,_){return be(2,arguments),Be(c,pe(_)*Ut)}function Ee(c,_){be(2,arguments);var i=Ze(c),d=Ze(_);return i.getFullYear()===d.getFullYear()&&i.getMonth()===d.getMonth()}function Re(c,_){be(2,arguments);var i=dt(c),d=dt(_);return i.getTime()===d.getTime()}var yt=Ue(8645),Jt=Ue(5592),sn=Ue(2096),Wt=Ue(4825),tn=Ue(5619),pn=Ue(1687),Tt=Ue(9773),xe=Ue(4664),Xe=Ue(7921),Vn=Ue(4674),nn=Ue(7398),gi=function(){function c(){}return c.prototype.getAllStyles=function(_){return window.getComputedStyle(_)},c.prototype.getStyle=function(_,i){return this.getAllStyles(_)[i]},c.prototype.isStaticPositioned=function(_){return"static"===(this.getStyle(_,"position")||"static")},c.prototype.offsetParent=function(_){for(var i=_.offsetParent||document.documentElement;i&&i!==document.documentElement&&this.isStaticPositioned(i);)i=i.offsetParent;return i||document.documentElement},c.prototype.position=function(_,i){void 0===i&&(i=!0);var d,p={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(_,"position"))d={top:(d=_.getBoundingClientRect()).top,bottom:d.bottom,left:d.left,right:d.right,height:d.height,width:d.width};else{var w=this.offsetParent(_);d=this.offset(_,!1),w!==document.documentElement&&(p=this.offset(w,!1)),p.top+=w.clientTop,p.left+=w.clientLeft}return d.top-=p.top,d.bottom-=p.top,d.left-=p.left,d.right-=p.left,i&&(d.top=Math.round(d.top),d.bottom=Math.round(d.bottom),d.left
1=Math.round(d.left),d.right=Math.round(d.right)),d},c.prototype.offset=function(_,i){void 0===i&&(i=!0);var d=_.getBoundingClientRect(),p_top=window.pageYOffset-document.documentElement.clientTop,p_left=window.pageXOffset-document.documentElement.clientLeft,w={height:d.height||_.offsetHeight,width:d.width||_.offsetWidth,top:d.top+p_top,bottom:d.bottom+p_top,left:d.left+p_left,right:d.right+p_left};return i&&(w.height=Math.round(w.height),w.width=Math.round(w.width),w.top=Math.round(w.top),w.bottom=Math.round(w.bottom),w.left=Math.round(w.left),w.right=Math.round(w.right)),w},c.prototype.positionElements=function(_,i,d,p){var w=d.split("-"),k=w[0],I=void 0===k?"top":k,te=w[1],B=void 0===te?"center":te,re=p?this.offset(_,!1):this.position(_,!1),ge=this.getAllStyles(i),Se=parseFloat(ge.marginTop),he=parseFloat(ge.marginBottom),ke=parseFloat(ge.marginLeft),Te=parseFloat(ge.marginRight),Ie=0,Oe=0;switch(I){case"top":Ie=re.top-(i.offsetHeight+Se+he);break;case"bottom":Ie=re.top+re.height;break;case"left":Oe=re.left-(i.offsetWidth+ke+Te);break;case"right":Oe=re.left+re.width}switch(B){case"top":Ie=re.top;break;case"bottom":Ie=re.top+re.height-i.offsetHeight;break;case"left":Oe=re.left;break;case"right":Oe=re.left+re.width-i.offsetWidth;break;case"center":"top"===I||"bottom"===I?Oe=re.left+re.width/2-i.offsetWidth/2:Ie=re.top+re.height/2-i.offsetHeight/2}i.style.transform="translate("+Math.round(Oe)+"px, "+Math.round(Ie)+"px)";var Je=i.getBoundingClientRect(),Ve=document.documentElement,Qe=window.innerHeight||Ve.clientHeight,gt=window.innerWidth||Ve.clientWidth;return Je.left>=0&&Je.top>=0&&Je.right<=gt&&Je.bottom<=Qe},c}(),zn=/\s+/,vn=new gi,yn=function(){return yn=Object.assign||function(c){for(var _,i=1,d=arguments.length;i<d;i++)for(var p in _=arguments[i])Object.prototype.hasOwnProperty.call(_,p)&&(c[p]=_[p]);return c},yn.apply(this,arguments)},Qn=function(c,_,i){if(i||2===arguments.length)for(var w,d=0,p=_.length;d<p;d++)(w||!(d in _))&&(w||(w=Array.prototype.slice.call(_,0,d)),w[d]=_[d]);return c.concat(w||Array.prototype.slice.call(_))},Fr=function(c){return c[c.SUNDAY=0]="SUNDAY",c[c.MONDAY=1]="MONDAY",c[c.TUESDAY=2]="TUESDAY",c[c.WEDNESDAY=3]="WEDNESDAY",c[c.THURSDAY=4]="THURSDAY",c[c.FRIDAY=5]="FRIDAY",c[c.SATURDAY=6]="SATURDAY",c}(Fr||{}),Ca=[Fr.SUNDAY,Fr.SATURDAY],Yn=7,Gi=86400;function Js(c,_){var i=_.startDate,p=_.excluded,w=_.precision;if(p.length<1)return 0;for(var I=c.getDay,te=c.addDays,B=(0,c.addSeconds)(i,_.seconds-1),re=I(i),ge=I(B),Se=0,he=i,ke=function(){var Te=I(he);p.some(function(Ie){return Ie===Te})&&(Se+=function dp(c,_){var d=_.day,w=_.dayEnd,k=_.startDate,I=_.endDate,te=c.differenceInSeconds,re=c.startOfDay;if("minutes"===_.precision){if(d===_.dayStart)return te((0,c.endOfDay)(k),k)+1;if(d===w)return te(I,re(I))+1}return Gi}(c,{dayStart:re,dayEnd:ge,day:Te,precision:w,startDate:i,endDate:B})),he=te(he,1)};he<B;)ke();return Se}function Sa(c,_){var d=_.periodStart,p=_.periodEnd;return _.events.filter(function(w){return function vu(c,_){var i=_.event,d=_.periodStart,p=_.periodEnd,w=c.isSameSecond,k=i.start,I=i.end||i.start;return!!(k>d&&k<p||I>d&&I<p||k<d&&I>p||w(k,d)||w(k,p)||w(I,d)||w(I,p))}(c,{event:w,periodStart:d,periodEnd:p})})}function yu(c,_){var i=_.date,d=_.weekendDays,p=void 0===d?Ca:d,k=c.isSameDay,I=c.getDay,te=(0,c.startOfDay)(new Date),B=I(i);return{date:i,day:B,isPast:i<te,isToday:k(i,te),isFuture:i>te,isWeekend:p.indexOf(B)>-1}}function js(c,_){for(var p=_.excluded,w=void 0===p?[]:p,k=_.weekendDays,I=_.viewStart,te=void 0===I?c.startOfWeek(_.viewDate,{weekStartsOn:_.weekStartsOn}):I,B=_.viewEnd,re=void 0===B?c.addDays(te,Yn):B,ge=c.addDays,Se=c.getDay,he=[],ke=te;ke<re;)w.some(function(Te){return Se(ke)===Te})||he.push(yu(c,{date:ke,weekendDays:k})),ke=ge(ke,1);return he}function pp(c,_){var i=_.events,d=void 0===i?[]:i,p=_.excluded,w=void 0===p?[]:p,k=_.precision,I=void 0===k?"days":k,te=_.absolutePositionedEvents,B=void 0!==te&&te,re=_.viewStart,ge=_.viewEnd;re=c.startOfDay(re),ge=c.endOfDay(ge);var Se=c.differenceInSeconds,he=c.differenceInDays,ke=function hp(c,_){for(var d=_.date2,p=_.excluded,w=_.date1,k=0;w<d;
1)-1===p.indexOf(c.getDay(w))&&k++,w=c.addDays(w,1);return k}(c,{date1:re,date2:ge,excluded:w}),Te=he(ge,re)+1,Ie=d.filter(function(Ve){return Ve.allDay}).map(function(Ve){var Qe=function fp(c,_){var i=_.event,d=_.startOfWeek,p=_.excluded,w=_.precision,k=c.differenceInDays,I=c.startOfDay,te=c.differenceInSeconds;if(i.start<d)return 0;var B=0;switch(w){case"days":B=k(I(i.start),d)*Gi;break;case"minutes":B=te(i.start,d)}return B-=Js(c,{startDate:d,seconds:B,excluded:p,precision:w}),Math.abs(B/Gi)}(c,{event:Ve,startOfWeek:re,excluded:w,precision:I}),gt=function xo(c,_){var i=_.event,d=_.offset,w=_.excluded,k=_.precision,I=_.totalDaysInView,B=c.differenceInSeconds,re=c.addDays,ge=c.endOfDay,Se=c.differenceInDays,he=Gi,ke=(0,c.max)([i.start,_.startOfWeekDate]);i.end&&(he="minutes"===k?B(i.end,ke):Se(re(ge(i.end),1),ke)*Gi);var Te=d*Gi,Oe=I*Gi;return Te+he>Oe&&(he=Oe-Te),(he-=Js(c,{startDate:ke,seconds:he,excluded:w,precision:k}))/Gi}(c,{event:Ve,offset:Qe,startOfWeekDate:re,excluded:w,precision:I,totalDaysInView:Te});return{event:Ve,offset:Qe,span:gt}}).filter(function(Ve){return Ve.offset<ke}).filter(function(Ve){return Ve.span>0}).map(function(Ve){return{event:Ve.event,offset:Ve.offset,span:Ve.span,startsBeforeWeek:Ve.event.start<re,endsAfterWeek:(Ve.event.end||Ve.event.start)>ge}}).sort(function(Ve,Qe){var gt=Se(Ve.event.start,Qe.event.start);return 0===gt?Se(Qe.event.end||Qe.event.start,Ve.event.end||Ve.event.start):gt}),Oe=[],Je=[];return Ie.forEach(function(Ve,Qe){if(-1===Je.indexOf(Ve)){Je.push(Ve);var gt=Ve.span+Ve.offset,St=Ie.slice(Qe+1).filter(function(et){if(et.offset>=gt&>+et.span<=Te&&-1===Je.indexOf(et)){var it=et.offset-gt;return B||(et.offset=it),gt+=et.span+it,Je.push(et),!0}}),Rt=Qn([Ve],St,!0),at=Rt.filter(function(et){return et.event.id}).map(function(et){return et.event.id}).join("-");Oe.push(yn({row:Rt},at?{id:at}:{}))}}),Oe}function gp(c,_){var i=_.events,d=_.viewDate,p=_.hourSegments,w=_.hourDuration,k=_.dayStart,I=_.dayEnd,te=_.weekStartsOn,B=_.excluded,re=_.weekendDays,ge=_.segmentHeight,Se=_.viewStart,he=_.viewEnd,ke=_.minimumEventHeight,Te=function yp(c,_){var i=_.viewDate,d=_.hourSegments,p=_.hourDuration,w=_.dayStart,k=_.dayEnd,I=c.setMinutes,te=c.setHours,B=c.startOfDay,re=c.startOfMinute,ge=c.endOfDay,Se=c.addMinutes,he=c.addDays,ke=[],Te=I(te(B(i),wo(w.hour)),Co(w.minute)),Ie=I(te(re(ge(i)),wo(k.hour)),Co(k.minute)),Oe=(p||60)/d,Je=B(i),Ve=ge(i),Qe=function(it){return it};c.getTimezoneOffset(Je)!==c.getTimezoneOffset(Ve)&&(Je=he(Je,1),Te=he(Te,1),Ie=he(Ie,1),Qe=function(it){return he(it,-1)});for(var gt=p?1440/p:60,St=0;St<gt;St++){for(var Rt=[],at=0;at<d;at++){var et=Se(Se(Te,St*(p||60)),at*Oe);et>=Te&&et<Ie&&Rt.push({date:Qe(et),displayDate:et,isStart:0===at})}Rt.length>0&&ke.push({segments:Rt})}return ke}(c,{viewDate:d,hourSegments:p,hourDuration:w,dayStart:k,dayEnd:I}),Ie=js(c,{viewDate:d,weekStartsOn:te,excluded:B,weekendDays:re,viewStart:Se,viewEnd:he}),Oe=c.setHours,Je=c.setMinutes,Ve=c.getHours,Qe=c.getMinutes;return Ie.map(function(gt){var St=function vp(c,_){var i=_.events,d=_.viewDate,p=_.hourSegments,w=_.dayStart,k=_.dayEnd,I=_.eventWidth,te=_.segmentHeight,B=_.hourDuration,re=_.minimumEventHeight,ge=c.setMinutes,Se=c.setHours,he=c.startOfDay,ke=c.startOfMinute,Te=c.endOfDay,Ie=c.differenceInMinutes,Oe=ge(Se(he(d),wo(w.hour)),Co(w.minute)),Je=ge(Se(ke(Te(d)),wo(k.hour)),Co(k.minute));Je.setSeconds(59,999);var Ve=[],Qe=Sa(c,{events:i.filter(function(at){return!at.allDay}),periodStart:Oe,periodEnd:Je}),gt=Qe.sort(function(at,et){return at.start.valueOf()-et.start.valueOf()}).map(function(at){var et=at.start,it=at.end||et,De=et<Oe,Me=it>Je,kt=p*te/(B||60),Lt=0;if(et>Oe){var na=c.getTimezoneOffset(et),ia=c.getTimezoneOffset(Oe)-na;Lt+=Ie(et,Oe)+ia}Lt*=kt,Lt=Math.floor(Lt);var Li=De?Oe:et,Vt=Me?Je:it,Bi=c.getTimezoneOffset(Li)-c.getTimezoneOffset(Vt),bn=Ie(Vt,Li)+Bi;at.end?bn*=kt:bn=te,re&&bn<re&&(bn=re),bn=Math.floor(bn);for(var Mr=bo(Ve,Lt,Lt+bn),Wi=0;Mr.some(function(ra){return ra.left===Wi});)Wi+=I;var Xi={event:at,height:bn,width:I,top:Lt,left:Wi,startsBeforeDay:De,endsAfterDay:Me};
1return Ve.push(Xi),Xi}),St=Math.max.apply(Math,gt.map(function(at){return at.left+at.width})),Rt=Sa(c,{events:i.filter(function(at){return at.allDay}),periodStart:he(Oe),periodEnd:Te(Je)});return{events:gt,width:St,allDayEvents:Rt,period:{events:Qe,start:Oe,end:Je}}}(c,{events:i,viewDate:gt.date,hourSegments:p,dayStart:k,dayEnd:I,segmentHeight:ge,eventWidth:1,hourDuration:w,minimumEventHeight:ke}),Rt=Te.map(function(it){var De=it.segments.map(function(Me){var kt=Je(Oe(gt.date,Ve(Me.date)),Qe(Me.date));return yn(yn({},Me),{date:kt})});return yn(yn({},it),{segments:De})});function at(it,De){var Me=Math.max.apply(Math,De.map(function(Lt){return Lt.left+1})),kt=it.filter(function(Lt){return Lt.left>=Me}).filter(function(Lt){return bo(De,Lt.top,Lt.top+Lt.height).length>0});return kt.length>0?at(it,kt):Me}var et=St.events.map(function(it){var Me=100/at(St.events,bo(St.events,it.top,it.top+it.height));return yn(yn({},it),{left:it.left*Me,width:Me})});return{hours:Rt,date:gt.date,events:et.map(function(it){var De=bo(et.filter(function(Me){return Me.left>it.left}),it.top,it.top+it.height);return De.length>0?yn(yn({},it),{width:Math.min.apply(Math,De.map(function(Me){return Me.left}))-it.left}):it})}})}function bo(c,_,i){return c.filter(function(d){var p=d.top,w=d.top+d.height;return _<w&&w<i||_<p&&p<i||p<=_&&i<=w})}function wo(c){return Math.max(Math.min(23,c),0)}function Co(c){return Math.max(Math.min(59,c),0)}var qr=function(c){return c.NotArray="Events must be an array",c.StartPropertyMissing="Event is missing the `start` property",c.StartPropertyNotDate="Event `start` property should be a javascript date object. Do `new Date(event.start)` to fix it.",c.EndPropertyNotDate="Event `end` property should be a javascript date object. Do `new Date(event.end)` to fix it.",c.EndsBeforeStart="Event `start` property occurs after the `end`",c}(qr||{}),Bs=Ue(7328),mi=Ue(3019),xu=Ue(2572),Ws=Ue(2438),Kn=Ue(2181),Xs=Ue(9769),Si=Ue(3020),Aa=Ue(8180),bp=Ue(4418),wp=Ue(9732),bu=Ue(9360);var Qs=Ue(9384),Sp=Ue(3997);function Ks(c,_){return c=function Ap(c,_){return typeof c>"u"?typeof _>"u"?c:_:c}(c,_),"function"==typeof c?function(){for(var d=arguments,p=arguments.length,w=Array(p),k=0;k<p;k++)w[k]=d[k];return!!c.apply(this,w)}:c?function(){return!0}:function(){return!1}}var el="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(c){return typeof c}:function(c){return c&&"function"==typeof Symbol&&c.constructor===Symbol?"symbol":typeof c},wu=function(c){return null!=c&&"object"===(typeof c>"u"?"undefined":el(c))&&1===c.nodeType&&"object"===el(c.style)&&"object"===el(c.ownerDocument)};function Cu(c,_){if(_=So(_,!0),!wu(_))return-1;for(var i=0;i<c.length;i++)if(c[i]===_)return i;return-1}function To(c,_){return-1!==Cu(c,_)}function Tu(c){for(var _=arguments,i=[],d=arguments.length-1;d-- >0;)i[d]=_[d+1];return function tl(c,_){for(var i=0;i<_.length;i++)To(c,_[i])||c.push(_[i]);return _}(c,i=i.map(So))}function Su(c){for(var _=arguments,i=[],d=arguments.length-1;d-- >0;)i[d]=_[d+1];return i.map(So).reduce(function(p,w){var k=Cu(c,w);return-1!==k?p.concat(c.splice(k,1)):p},[])}function So(c,_){if("string"==typeof c)try{return document.querySelector(c)}catch(i){throw i}if(!wu(c)&&!_)throw new TypeError(c+" is not a DOM element.");return c}function Au(c){if(c===window)return function Mp(){var c={top:{value:0,enumerable:!0},left:{value:0,enumerable:!0},right:{value:window.innerWidth,enumerable:!0},bottom:{value:window.innerHeight,enumerable:!0},width:{value:window.innerWidth,enumerable:!0},height:{value:window.innerHeight,enumerable:!0},x:{value:0,enumerable:!0},y:{value:0,enumerable:!0}};if(Object.create)return Object.create({},c);var _={};return Object.defineProperties(_,c),_}();try{var _=c.getBoundingClientRect();return void 0===_.x&&(_.x=_.left,_.y=_.top),_}catch{throw new TypeError("Can't call getBoundingClientRect on "+c)}}var Zp="function"!=typeof Object.create?function(c){var _=function(){};return function(i,d){if(i!==Object(i)&&null!==i)throw TypeError("Argument must be an object, or null");_.prototype=i||{};var p=new _;return _.prototype=null,void 0!==d&&Object.defineProperties(p,d),null===i&&(p.__proto__=null),p}}():Object.create,dr=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","regi
1on","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function il(c,_){_=_||{};for(var i=Zp(c),d=0;d<dr.length;d++)void 0!==_[dr[d]]&&(i[dr[d]]=_[dr[d]]);return i}function rl(c,_){console.log("data ",_),c.data=_||{},c.dispatched="mousemove"}var ka=["webkit","moz","ms","o"],Ma=function(){if(typeof window>"u")return function(){};for(var c=0,_=ka.length;c<_&&!window.requestAnimationFrame;++c)window.requestAnimationFrame=window[ka[c]+"RequestAnimationFrame"];if(!window.requestAnimationFrame){var i=0;window.requestAnimationFrame=function(d){var p=(new Date).getTime(),w=Math.max(0,16-p-i),k=window.setTimeout(function(){return d(p+w)},w);return i=p+w,k}}return window.requestAnimationFrame.bind(window)}(),Ur=function(){if(typeof window>"u")return function(){};for(var c=0,_=ka.length;c<_&&!window.cancelAnimationFrame;++c)window.cancelAnimationFrame=window[ka[c]+"CancelAnimationFrame"]||window[ka[c]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(i){window.clearTimeout(i)}),window.cancelAnimationFrame.bind(window)}();function Pp(c,_){void 0===_&&(_={});var i=this,d=4,p=!1;if("object"!=typeof _.margin){var w=_.margin||-1;this.margin={left:w,right:w,top:w,bottom:w}}else this.margin=_.margin;this.scrollWhenOutside=_.scrollWhenOutside||!1;var k={},I=function kp(c,_){var i=Ks((_=_||{}).allowUpdate,!0);return function(p){if(p=p||window.event,c.target=p.target||p.srcElement||p.originalTarget,c.element=this,c.type=p.type,i(p)){if(p.targetTouches)c.x=p.targetTouches[0].clientX,c.y=p.targetTouches[0].clientY,c.pageX=p.targetTouches[0].pageX,c.pageY=p.targetTouches[0].pageY,c.screenX=p.targetTouches[0].screenX,c.screenY=p.targetTouches[0].screenY;else{if(null===p.pageX&&null!==p.clientX){var w=p.target&&p.target.ownerDocument||document,k=w.documentElement,I=w.body;c.pageX=p.clientX+(k&&k.scrollLeft||I&&I.scrollLeft||0)-(k&&k.clientLeft||I&&I.clientLeft||0),c.pageY=p.clientY+(k&&k.scrollTop||I&&I.scrollTop||0)-(k&&k.clientTop||I&&I.clientTop||0)}else c.pageX=p.pageX,c.pageY=p.pageY;c.x=p.clientX,c.y=p.clientY,c.screenX=p.screenX,c.screenY=p.screenY}c.clientX=c.x,c.clientY=c.y}}}(k),te=function Ep(c){var _={screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1,button:0,buttons:1,relatedTarget:null,region:null};function i(w){for(var k=0;k<dr.length;k++)_[dr[k]]=w[dr[k]]}return void 0!==c&&c.addEventListener("mousemove",i),{destroy:function p(){c&&c.removeEventListener("mousemove",i,!1),_=null},dispatch:MouseEvent?function(k,I,te){var B=new MouseEvent("mousemove",il(_,I));return rl(B,te),k.dispatchEvent(B)}:"function"==typeof document.createEvent?function(k,I,te){var B=il(_,I),re=document.createEvent("MouseEvents");return re.initMouseEvent("mousemove",!0,!0,window,0,B.screenX,B.screenY,B.clientX,B.clientY,B.ctrlKey,B.altKey,B.shiftKey,B.metaKey,B.button,B.relatedTarget),rl(re,te),k.dispatchEvent(re)}:"function"==typeof document.createEventObject?function(k,I,te){var B=document.createEventObject(),re=il(_,I);for(var ge in re)B[ge]=re[ge];return rl(B,te),k.dispatchEvent(B)}:void 0}}(),B=!1;window.addEventListener("mousemove",I,!1),window.addEventListener("touchmove",I,!1),isNaN(_.maxSpeed)||(d=_.maxSpeed),"object"!=typeof d&&(d={left:d,right:d,top:d,bottom:d}),this.autoScroll=Ks(_.autoScroll),this.syncMove=Ks(_.syncMove,!1),this.destroy=function(De){window.removeEventListener("mousemove",I,!1),window.removeEventListener("touchmove",I,!1),window.removeEventListener("mousedown",Te,!1),window.removeEventListener("touchstart",Te,!1),window.removeEventListener("mouseup",Ie,!1),window.removeEventListener("touchend",Ie,!1),window.removeEventListener("pointerup",Ie,!1),window.removeEventListener("mouseleave",Je,!1),window.removeEventListener("mousemove",gt,!1),window.removeEventListener("touchmove",gt,!1),window.removeEventListener("scroll",ke,!0),c=[],De&&Oe()},this.add=function(){for(var De=[],Me=arguments.length;Me--;)De[Me]=arguments[Me];return Tu.apply(void 0,[c].concat(De)),this},this.remove=function(){for(var De=[],Me=arguments.length;Me--;)De[Me]=arguments[Me];return Su.apply(void 0,[c].concat(De))};var ge,De,re=null;"[object Array]"!==Object.prototype.toString.call(c)&&(c=[c]),De=c,c=[],De.forEach(function(Me){Me===window?re=window:i.add(Me)}),Object.defineProperties(this,{down:{get:function(){return B}},maxSpeed:{get:function(){return d}},point:{get:function(){return k}},scrolling:{get:function(){return p}}});var he,Se=null;function ke(De){for(var Me=0;Me<c.length;Me++)if(c[Me]===De.target){p=!0;break}p&&Ma(function(){return p=!1})}function Te(){B=!0}function Ie(){B=!1,Oe()}function Oe(){Ur(he),Ur(ge)}function Je(){B=!1}function Qe(){for(var De=null,Me=0;Me<c.length;Me++)ku(k,c[Me])&&(De=c[Me]);return De}
1function gt(De){if(i.autoScroll()&&!De.dispatched){var Me=De.target,kt=document.body;Se&&!ku(k,Se)&&(i.scrollWhenOutside||(Se=null)),Me&&Me.parentNode===kt?Me=Qe():(Me=function Ve(De){if(!De)return null;if(Se===De||To(c,De))return De;for(;De=De.parentNode;)if(To(c,De))return De;return null}(Me),Me||(Me=Qe())),Me&&Me!==Se&&(Se=Me),re&&(Ur(ge),ge=Ma(St)),Se&&(Ur(he),he=Ma(Rt))}}function St(){at(re),Ur(ge),ge=Ma(St)}function Rt(){Se&&(at(Se),Ur(he),he=Ma(Rt))}function at(De){var kt,Lt,Me=Au(De);kt=k.x<Me.left+i.margin.left?Math.floor(Math.max(-1,(k.x-Me.left)/i.margin.left-1)*i.maxSpeed.left):k.x>Me.right-i.margin.right?Math.ceil(Math.min(1,(k.x-Me.right)/i.margin.right+1)*i.maxSpeed.right):0,Lt=k.y<Me.top+i.margin.top?Math.floor(Math.max(-1,(k.y-Me.top)/i.margin.top-1)*i.maxSpeed.top):k.y>Me.bottom-i.margin.bottom?Math.ceil(Math.min(1,(k.y-Me.bottom)/i.margin.bottom+1)*i.maxSpeed.bottom):0,i.syncMove()&&te.dispatch(De,{pageX:k.pageX+kt,pageY:k.pageY+Lt,clientX:k.x+kt,clientY:k.y+Lt}),setTimeout(function(){Lt&&function et(De,Me){De===window?window.scrollTo(De.pageXOffset,De.pageYOffset+Me):De.scrollTop+=Me}(De,Lt),kt&&function it(De,Me){De===window?window.scrollTo(De.pageXOffset+Me,De.pageYOffset):De.scrollLeft+=Me}(De,kt)})}window.addEventListener("mousedown",Te,!1),window.addEventListener("touchstart",Te,!1),window.addEventListener("mouseup",Ie,!1),window.addEventListener("touchend",Ie,!1),window.addEventListener("pointerup",Ie,!1),window.addEventListener("mousemove",gt,!1),window.addEventListener("touchmove",gt,!1),window.addEventListener("mouseleave",Je,!1),window.addEventListener("scroll",ke,!0)}function ku(c,_,i){return i?c.y>i.top&&c.y<i.bottom&&c.x>i.left&&c.x<i.right:function Dp(c,_){var i=Au(_);return c.y>i.top&&c.y<i.bottom&&c.x>i.left&&c.x<i.right}(c,_)}function al(c,_,i){i&&i.split(" ").forEach(d=>c.addClass(_.nativeElement,d))}function Da(c,_,i){i&&i.split(" ").forEach(d=>c.removeClass(_.nativeElement,d))}let Mu=(()=>{class c{constructor(){this.currentDrag=new yt.x}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),Du=(()=>{class c{constructor(i){this.elementRef=i}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.SBq))},c.\u0275dir=e.lG2({type:c,selectors:[["","mwlDraggableScrollContainer",""]]}),c})(),ol=(()=>{class c{constructor(i,d,p,w,k,I,te){this.element=i,this.renderer=d,this.draggableHelper=p,this.zone=w,this.vcr=k,this.scrollContainer=I,this.document=te,this.dragAxis={x:!0,y:!0},this.dragSnapGrid={},this.ghostDragEnabled=!0,this.showOriginalElementWhileDragging=!1,this.dragCursor="",this.autoScroll={margin:20},this.dragPointerDown=new e.vpe,this.dragStart=new e.vpe,this.ghostElementCreated=new e.vpe,this.dragging=new e.vpe,this.dragEnd=new e.vpe,this.pointerDown$=new yt.x,this.pointerMove$=new yt.x,this.pointerUp$=new yt.x,this.eventListenerSubscriptions={},this.destroy$=new yt.x,this.timeLongPress={timerBegin:0,timerEnd:0}}ngOnInit(){this.checkEventListeners();const i=this.pointerDown$.pipe((0,Kn.h)(()=>this.canDrag()),(0,Xs.z)(d=>{d.event.stopPropagation&&!this.scrollContainer&&d.event.stopPropagation();const p=this.renderer.createElement("style");this.renderer.setAttribute(p,"type","text/css"),this.renderer.appendChild(p,this.renderer.createText("\n body * {\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n }\n ")),requestAnimationFrame(()=>{this.document.head.appendChild(p)});const w=this.getScrollPosition(),k=new Jt.y(he=>this.renderer.listen(this.scrollContainer?this.scrollContainer.elementRef.nativeElement:"window","scroll",Te=>he.next(Te))).pipe((0,Xe.O)(w),(0,nn.U)(()=>this.getScrollPosition())),I=new yt.x,te=new Bs.t;this.dragPointerDown.observers.length>0&&this.zone.run(()=>{this.dragPointerDown.next({x:0,y:0})});const B=(0,mi.T)(this.pointerUp$,this.pointerDown$,te,this.destroy$).pipe((0,Si.B)()),re=(0,xu.a)([this.pointerMove$,k]).pipe((0,nn.U)(([he,ke])=>({currentDrag$:I,transformX:he.clientX-d.clientX,transformY:he.clientY-d.clientY,clientX:he.clientX,clientY:he.clientY,scrollLeft:ke.left,scrollTop:ke.top,target:he.event.target})),(0,nn.U)(he=>(this.dragSnapGrid.x&&(he.transformX=Math.round(he.transformX/this.dragSnapGrid.x)*this.dragSnapGrid.x),this.dragSnapGrid.y&&(he.transformY=Math.round(he.transformY/this.dragSnapGrid.y)*this.dragSnapGrid.y),he)),(0,nn.U)(he=>(this.dragAxis.x||(he.transformX=0),this.dragAxis.y||(he.transformY=0),he)),(0,nn.U)(he=>{const ke=he.scrollLeft-w.left,Te=he.scrollTop-w.top;return{...he,x:he.transformX+ke,y:he.transformY+Te}}),(0,Kn.h)(({x:he,y:ke,transformX:Te,transformY:Ie})=>!this.validateDrag||this.validateDrag({x:he,y:ke,transform:{x:Te,y:Ie}})),(0,Tt.R)(B),(0,Si.B)()),ge=re.pipe((0,Aa.q)(1),(0,Si.B)()),Se=re.pipe((0,bp.h)(1),(0,Si.B)());return ge.subscribe(({clientX:he,clientY:ke,x:Te,y:Ie})=>
1{if(this.dragStart.observers.length>0&&this.zone.run(()=>{this.dragStart.next({cancelDrag$:te})}),this.scroller=function Lp(c,_){return new Pp(c,_)}([this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.defaultView],{...this.autoScroll,autoScroll:()=>!0}),al(this.renderer,this.element,this.dragActiveClass),this.ghostDragEnabled){const Oe=this.element.nativeElement.getBoundingClientRect(),Je=this.element.nativeElement.cloneNode(!0);if(this.showOriginalElementWhileDragging||this.renderer.setStyle(this.element.nativeElement,"visibility","hidden"),this.ghostElementAppendTo?this.ghostElementAppendTo.appendChild(Je):this.element.nativeElement.parentNode.insertBefore(Je,this.element.nativeElement.nextSibling),this.ghostElement=Je,this.document.body.style.cursor=this.dragCursor,this.setElementStyles(Je,{position:"fixed",top:`${Oe.top}px`,left:`${Oe.left}px`,width:`${Oe.width}px`,height:`${Oe.height}px`,cursor:this.dragCursor,margin:"0",willChange:"transform",pointerEvents:"none"}),this.ghostElementTemplate){const Ve=this.vcr.createEmbeddedView(this.ghostElementTemplate);Je.innerHTML="",Ve.rootNodes.filter(Qe=>Qe instanceof Node).forEach(Qe=>{Je.appendChild(Qe)}),Se.subscribe(()=>{this.vcr.remove(this.vcr.indexOf(Ve))})}this.ghostElementCreated.observers.length>0&&this.zone.run(()=>{this.ghostElementCreated.emit({clientX:he-Te,clientY:ke-Ie,element:Je})}),Se.subscribe(()=>{Je.parentElement.removeChild(Je),this.ghostElement=null,this.renderer.setStyle(this.element.nativeElement,"visibility","")})}this.draggableHelper.currentDrag.next(I)}),Se.pipe((0,Xs.z)(he=>{const ke=te.pipe(function Tp(c){return function Cp(c,_){return(0,bu.e)((0,wp.U)(c,_,arguments.length>=2,!1,!0))}((_,i,d)=>!c||c(i,d)?_+1:_,0)}(),(0,Aa.q)(1),(0,nn.U)(Te=>({...he,dragCancelled:Te>0})));return te.complete(),ke})).subscribe(({x:he,y:ke,dragCancelled:Te})=>{this.scroller.destroy(),this.dragEnd.observers.length>0&&this.zone.run(()=>{this.dragEnd.next({x:he,y:ke,dragCancelled:Te})}),Da(this.renderer,this.element,this.dragActiveClass),I.complete()}),(0,mi.T)(B,Se).pipe((0,Aa.q)(1)).subscribe(()=>{requestAnimationFrame(()=>{this.document.head.removeChild(p)})}),re}),(0,Si.B)());(0,mi.T)(i.pipe((0,Aa.q)(1),(0,nn.U)(d=>[,d])),i.pipe((0,Qs.G)())).pipe((0,Kn.h)(([d,p])=>!d||d.x!==p.x||d.y!==p.y),(0,nn.U)(([d,p])=>p)).subscribe(({x:d,y:p,currentDrag$:w,clientX:k,clientY:I,transformX:te,transformY:B,target:re})=>{this.dragging.observers.length>0&&this.zone.run(()=>{this.dragging.next({x:d,y:p})}),requestAnimationFrame(()=>{if(this.ghostElement){const ge=`translate3d(${te}px, ${B}px, 0px)`;this.setElementStyles(this.ghostElement,{transform:ge,"-webkit-transform":ge,"-ms-transform":ge,"-moz-transform":ge,"-o-transform":ge})}}),w.next({clientX:k,clientY:I,dropData:this.dropData,target:re})})}ngOnChanges(i){i.dragAxis&&this.checkEventListeners()}ngOnDestroy(){this.unsubscribeEventListeners(),this.pointerDown$.complete(),this.pointerMove$.complete(),this.pointerUp$.complete(),this.destroy$.next()}checkEventListeners(){const i=this.canDrag(),d=Object.keys(this.eventListenerSubscriptions).length>0;i&&!d?this.zone.runOutsideAngular(()=>{this.eventListenerSubscriptions.mousedown=this.renderer.listen(this.element.nativeElement,"mousedown",p=>{this.onMouseDown(p)}),this.eventListenerSubscriptions.mouseup=this.renderer.listen("document","mouseup",p=>{this.onMouseUp(p)}),this.eventListenerSubscriptions.touchstart=this.renderer.listen(this.element.nativeElement,"touchstart",p=>{this.onTouchStart(p)}),this.eventListenerSubscriptions.touchend=this.renderer.listen("document","touchend",p=>{this.onTouchEnd(p)}),this.eventListenerSubscriptions.touchcancel=this.renderer.listen("document","touchcancel",p=>{this.onTouchEnd(p)}),this.eventListenerSubscriptions.mouseenter=this.renderer.listen(this.element.nativeElement,"mouseenter",()=>{this.onMouseEnter()}),this.eventListenerSubscriptions.mouseleave=this.renderer.listen(this.element.nativeElement,"mouseleave",()=>{this.onMouseLeave()})}):!i&&d&&this.unsubscribeEventListeners()}onMouseDown(i){0===i.button&&(this.eventListenerSubscriptions.mousemove||(this.eventListenerSubscriptions.mousemove=this.renderer.listen("document","mousemove",d=>{this.pointerMove$.next({event:d,clientX:d.clientX,clientY:d.clientY})}
1)),this.pointerDown$.next({event:i,clientX:i.clientX,clientY:i.clientY}))}onMouseUp(i){0===i.button&&(this.eventListenerSubscriptions.mousemove&&(this.eventListenerSubscriptions.mousemove(),delete this.eventListenerSubscriptions.mousemove),this.pointerUp$.next({event:i,clientX:i.clientX,clientY:i.clientY}))}onTouchStart(i){let d,p,w;if(this.touchStartLongPress&&(this.timeLongPress.timerBegin=Date.now(),p=!1,w=this.hasScrollbar(),d=this.getScrollPosition()),!this.eventListenerSubscriptions.touchmove){const k=(0,Ws.R)(this.document,"contextmenu").subscribe(te=>{te.preventDefault()}),I=(0,Ws.R)(this.document,"touchmove",{passive:!1}).subscribe(te=>{this.touchStartLongPress&&!p&&w&&(p=this.shouldBeginDrag(i,te,d)),(!this.touchStartLongPress||!w||p)&&(te.preventDefault(),this.pointerMove$.next({event:te,clientX:te.targetTouches[0].clientX,clientY:te.targetTouches[0].clientY}))});this.eventListenerSubscriptions.touchmove=()=>{k.unsubscribe(),I.unsubscribe()}}this.pointerDown$.next({event:i,clientX:i.touches[0].clientX,clientY:i.touches[0].clientY})}onTouchEnd(i){this.eventListenerSubscriptions.touchmove&&(this.eventListenerSubscriptions.touchmove(),delete this.eventListenerSubscriptions.touchmove,this.touchStartLongPress&&this.enableScroll()),this.pointerUp$.next({event:i,clientX:i.changedTouches[0].clientX,clientY:i.changedTouches[0].clientY})}onMouseEnter(){this.setCursor(this.dragCursor)}onMouseLeave(){this.setCursor("")}canDrag(){return this.dragAxis.x||this.dragAxis.y}setCursor(i){this.eventListenerSubscriptions.mousemove||this.renderer.setStyle(this.element.nativeElement,"cursor",i)}unsubscribeEventListeners(){Object.keys(this.eventListenerSubscriptions).forEach(i=>{this.eventListenerSubscriptions[i](),delete this.eventListenerSubscriptions[i]})}setElementStyles(i,d){Object.keys(d).forEach(p=>{this.renderer.setStyle(i,p,d[p])})}getScrollElement(){return this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.body}getScrollPosition(){return this.scrollContainer?{top:this.scrollContainer.elementRef.nativeElement.scrollTop,left:this.scrollContainer.elementRef.nativeElement.scrollLeft}:{top:window.pageYOffset||this.document.documentElement.scrollTop,left:window.pageXOffset||this.document.documentElement.scrollLeft}}shouldBeginDrag(i,d,p){const w=this.getScrollPosition(),k_top=Math.abs(w.top-p.top),k_left=Math.abs(w.left-p.left),I=Math.abs(d.targetTouches[0].clientX-i.touches[0].clientX)-k_left,te=Math.abs(d.targetTouches[0].clientY-i.touches[0].clientY)-k_top,re=this.touchStartLongPress;return(I+te>re.delta||k_top>0||k_left>0)&&(this.timeLongPress.timerBegin=Date.now()),this.timeLongPress.timerEnd=Date.now(),this.timeLongPress.timerEnd-this.timeLongPress.timerBegin>=re.delay&&(this.disableScroll(),!0)}enableScroll(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow",""),this.renderer.setStyle(this.document.body,"overflow","")}disableScroll(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow","hidden"),this.renderer.setStyle(this.document.body,"overflow","hidden")}hasScrollbar(){const i=this.getScrollElement();return i.scrollWidth>i.clientWidth||i.scrollHeight>i.clientHeight}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Mu),e.Y36(e.R0b),e.Y36(e.s_b),e.Y36(Du,8),e.Y36(ce.K0))},c.\u0275dir=e.lG2({type:c,selectors:[["","mwlDraggable",""]],inputs:{dropData:"dropData",dragAxis:"dragAxis",dragSnapGrid:"dragSnapGrid",ghostDragEnabled:"ghostDragEnabled",showOriginalElementWhileDragging:"showOriginalElementWhileDragging",validateDrag:"validateDrag",dragCursor:"dragCursor",dragActiveClass:"dragActiveClass",ghostElementAppendTo:"ghostElementAppendTo",ghostElementTemplate:"ghostElementTemplate",touchStartLongPress:"touchStartLongPress",autoScroll:"autoScroll"},outputs:{dragPointerDown:"dragPointerDown",dragStart:"dragStart",ghostElementCreated:"ghostElementCreated",dragging:"dragging",dragEnd:"dragEnd"},features:[e.TTD]}),c})();function Zu(c,_,i){return c>=i.left&&c<=i.right&&_>=i.top&&_<=i.bottom}let sl=(()=>{class c{constructor(i,d,p,w,k){this.element=i,this.draggableHelper=d,this.zone=p,this.renderer=w,this.scrollContainer=k,this.dragEnter=new e.vpe,this.dragLeave=new e.vpe,this.dragOver=new e.vpe,this.drop=new e.vpe}ngOnInit(){this.currentDragSubscription=this.draggableHelper.currentDrag.subscribe(i=>{al(this.renderer,this.element,this.dragActiveClass);const d={updateCache:!0},p=this.renderer.listen(this.scrollContainer?this.scrollContainer.elementRef.nativeElement:"window","
1scroll",()=>{d.updateCache=!0});let w;const k=i.pipe((0,nn.U)(({clientX:B,clientY:re,dropData:ge,target:Se})=>{w={clientX:B,clientY:re,dropData:ge,target:Se},d.updateCache&&(d.rect=this.element.nativeElement.getBoundingClientRect(),this.scrollContainer&&(d.scrollContainerRect=this.scrollContainer.elementRef.nativeElement.getBoundingClientRect()),d.updateCache=!1);const he=Zu(B,re,d.rect),ke=!this.validateDrop||this.validateDrop({clientX:B,clientY:re,target:Se,dropData:ge});return d.scrollContainerRect?he&&ke&&Zu(B,re,d.scrollContainerRect):he&&ke})),I=k.pipe((0,Sp.x)());let te;I.pipe((0,Kn.h)(B=>B)).subscribe(()=>{te=!0,al(this.renderer,this.element,this.dragOverClass),this.dragEnter.observers.length>0&&this.zone.run(()=>{this.dragEnter.next(w)})}),k.pipe((0,Kn.h)(B=>B)).subscribe(()=>{this.dragOver.observers.length>0&&this.zone.run(()=>{this.dragOver.next(w)})}),I.pipe((0,Qs.G)(),(0,Kn.h)(([B,re])=>B&&!re)).subscribe(()=>{te=!1,Da(this.renderer,this.element,this.dragOverClass),this.dragLeave.observers.length>0&&this.zone.run(()=>{this.dragLeave.next(w)})}),i.subscribe({complete:()=>{p(),Da(this.renderer,this.element,this.dragActiveClass),te&&(Da(this.renderer,this.element,this.dragOverClass),this.drop.observers.length>0&&this.zone.run(()=>{this.drop.next(w)}))}})})}ngOnDestroy(){this.currentDragSubscription&&this.currentDragSubscription.unsubscribe()}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.SBq),e.Y36(Mu),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(Du,8))},c.\u0275dir=e.lG2({type:c,selectors:[["","mwlDroppable",""]],inputs:{dragOverClass:"dragOverClass",dragActiveClass:"dragActiveClass",validateDrop:"validateDrop"},outputs:{dragEnter:"dragEnter",dragLeave:"dragLeave",dragOver:"dragOver",drop:"drop"}}),c})(),Ao=(()=>{class c{}return c.\u0275fac=function(i){return new(i||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({}),c})();var Ai=Ue(6825),Op=Ue(9397);const fr=!(typeof window>"u")&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);function Pt(c,_,i,d){const p=_.querySelectorAll(c);if(p.length){const w=i.querySelectorAll(c);for(let k=0;k<p.length;k++)d(p[k],w[k])}}let Ip=0;function Pu(c,_){"file"!==_.type&&(_.value=c.value),"radio"===_.type&&_.name&&(_.name=`mat-clone-${_.name}-${Ip++}`)}function ll(c,_){const i=_.getContext("2d");if(i)try{i.drawImage(c,0,0)}catch{}}function Lu(c,_,i,d){const p={top:c.top,bottom:c.bottom,left:c.left,right:c.right};return _.top&&(p.top+=d),_.bottom&&(p.bottom+=d),_.left&&(p.left+=i),_.right&&(p.right+=i),p.height=p.bottom-p.top,p.width=p.right-p.left,p}const Nu=Object.freeze({topLeft:"nw-resize",topRight:"ne-resize",bottomLeft:"sw-resize",bottomRight:"se-resize",leftOrRight:"col-resize",topOrBottom:"row-resize"});function Ou(c,_){return c.left&&c.top?_.topLeft:c.right&&c.top?_.topRight:c.left&&c.bottom?_.bottomLeft:c.right&&c.bottom?_.bottomRight:c.left||c.right?_.leftOrRight:c.top||c.bottom?_.topOrBottom:""}function Za({edges:c,initialRectangle:_,newRectangle:i}){const d={};return Object.keys(c).forEach(p=>{d[p]=(i[p]||0)-(_[p]||0)}),d}const cl="resize-active";let Iu=(()=>{class c{constructor(i,d,p,w){this.platformId=i,this.renderer=d,this.elm=p,this.zone=w,this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=Nu,this.ghostElementPositioning="fixed",this.allowNegativeResizes=!1,this.mouseMoveThrottleMS=50,this.resizeStart=new e.vpe,this.resizing=new e.vpe,this.resizeEnd=new e.vpe,this.mouseup=new yt.x,this.mousedown=new yt.x,this.mousemove=new yt.x,this.destroy$=new yt.x,this.pointerEventListeners=hr.getInstance(d,w)}ngOnInit(){const i=(0,mi.T)(this.pointerEventListeners.pointerDown,this.mousedown),d=(0,mi.T)(this.pointerEventListeners.pointerMove,this.mousemove).pipe((0,Op.b)(({event:B})=>{w&&B.cancelable&&B.preventDefault()}),(0,Si.B)()),p=(0,mi.T)(this.pointerEventListeners.pointerUp,this.mouseup);let w;const k=()=>{w&&w.clonedNode&&(this.elm.nativeElement.parentElement.removeChild(w.clonedNode),this.renderer.setStyle(this.elm.nativeElement,"visibility","inherit"))},I=()=>({...Nu,...this.resizeCursors});i.pipe((0,Xs.z)(B=>{function re(he){return{clientX:he.clientX-B.clientX,clientY:he.clientY-B.clientY}}const ge=()=>{const he={x:1,y:1};return w&&(this.resizeSnapGrid.left&&w.edges.left?he.x=+this.resizeSnapGrid.left:this.resizeSnapGrid.right&&w.edges.right&&(he.x=+this.resizeSnapGrid.right),this.resizeSnapGrid.top&&w.edges.top?he.y=+this.resizeSnapGrid.top:this.resizeSnapGrid.bottom&&w.edges.bottom&&(he.y=+this.resizeSnapGrid.bottom)),he};function Se(he,ke){return{x:Math.ceil(he.clientX/ke.x),y:Math.ceil(he.clientY/ke.y)}}return(0,mi.T)(d.pipe((0,Aa.q)(1)).pipe((0,nn.U)(he=>[,he])),d.pipe((0,Qs.G)())).pipe((0,nn.U)(([he,ke])=>[he&&re(he),re(ke)])).pipe((0,Kn.h)(([he,ke])=>
1{if(!he)return!0;const Te=ge(),Ie=Se(he,Te),Oe=Se(ke,Te);return Ie.x!==Oe.x||Ie.y!==Oe.y})).pipe((0,nn.U)(([,he])=>{const ke=ge();return{clientX:Math.round(he.clientX/ke.x)*ke.x,clientY:Math.round(he.clientY/ke.y)*ke.y}})).pipe((0,Tt.R)((0,mi.T)(p,i)))})).pipe((0,Kn.h)(()=>!!w)).pipe((0,nn.U)(({clientX:B,clientY:re})=>Lu(w.startingRect,w.edges,B,re))).pipe((0,Kn.h)(B=>this.allowNegativeResizes||!!(B.height&&B.width&&B.height>0&&B.width>0))).pipe((0,Kn.h)(B=>!this.validateResize||this.validateResize({rectangle:B,edges:Za({edges:w.edges,initialRectangle:w.startingRect,newRectangle:B})})),(0,Tt.R)(this.destroy$)).subscribe(B=>{w&&w.clonedNode&&(this.renderer.setStyle(w.clonedNode,"height",`${B.height}px`),this.renderer.setStyle(w.clonedNode,"width",`${B.width}px`),this.renderer.setStyle(w.clonedNode,"top",`${B.top}px`),this.renderer.setStyle(w.clonedNode,"left",`${B.left}px`)),this.resizing.observers.length>0&&this.zone.run(()=>{this.resizing.emit({edges:Za({edges:w.edges,initialRectangle:w.startingRect,newRectangle:B}),rectangle:B})}),w.currentRect=B}),i.pipe((0,nn.U)(({edges:B})=>B||{}),(0,Kn.h)(B=>Object.keys(B).length>0),(0,Tt.R)(this.destroy$)).subscribe(B=>{w&&k();const re=function Fp(c,_){let i=0,d=0;const p=c.nativeElement.style,k=["transform","-ms-transform","-moz-transform","-o-transform"].map(I=>p[I]).find(I=>!!I);if(k&&k.includes("translate")&&(i=k.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),d=k.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$2")),"absolute"===_)return{height:c.nativeElement.offsetHeight,width:c.nativeElement.offsetWidth,top:c.nativeElement.offsetTop-d,bottom:c.nativeElement.offsetHeight+c.nativeElement.offsetTop-d,left:c.nativeElement.offsetLeft-i,right:c.nativeElement.offsetWidth+c.nativeElement.offsetLeft-i};{const I=c.nativeElement.getBoundingClientRect();return{height:I.height,width:I.width,top:I.top-d,bottom:I.bottom-d,left:I.left-i,right:I.right-i,scrollTop:c.nativeElement.scrollTop,scrollLeft:c.nativeElement.scrollLeft}}}(this.elm,this.ghostElementPositioning);w={edges:B,startingRect:re,currentRect:re};const ge=I(),Se=Ou(w.edges,ge);this.renderer.setStyle(document.body,"cursor",Se),this.setElementClass(this.elm,cl,!0),this.enableGhostResize&&(w.clonedNode=function Eu(c){const _=c.cloneNode(!0),i=_.querySelectorAll("[id]"),d=c.nodeName.toLowerCase();return _.removeAttribute("id"),i.forEach(p=>{p.removeAttribute("id")}),"canvas"===d?ll(c,_):("input"===d||"select"===d||"textarea"===d)&&Pu(c,_),Pt("canvas",c,_,ll),Pt("input, textarea, select",c,_,Pu),_}(this.elm.nativeElement),this.elm.nativeElement.parentElement.appendChild(w.clonedNode),this.renderer.setStyle(this.elm.nativeElement,"visibility","hidden"),this.renderer.setStyle(w.clonedNode,"position",this.ghostElementPositioning),this.renderer.setStyle(w.clonedNode,"left",`${w.startingRect.left}px`),this.renderer.setStyle(w.clonedNode,"top",`${w.startingRect.top}px`),this.renderer.setStyle(w.clonedNode,"height",`${w.startingRect.height}px`),this.renderer.setStyle(w.clonedNode,"width",`${w.startingRect.width}px`),this.renderer.setStyle(w.clonedNode,"cursor",Ou(w.edges,ge)),this.renderer.addClass(w.clonedNode,"resize-ghost-element"),w.clonedNode.scrollTop=w.startingRect.scrollTop,w.clonedNode.scrollLeft=w.startingRect.scrollLeft),this.resizeStart.observers.length>0&&this.zone.run(()=>{this.resizeStart.emit({edges:Za({edges:B,initialRectangle:re,newRectangle:re}),rectangle:Lu(re,{},0,0)})})}),p.pipe((0,Tt.R)(this.destroy$)).subscribe(()=>{w&&(this.renderer.removeClass(this.elm.nativeElement,cl),this.renderer.setStyle(document.body,"cursor",""),this.renderer.setStyle(this.elm.nativeElement,"cursor",""),this.resizeEnd.observers.length>0&&this.zone.run(()=>{this.resizeEnd.emit({edges:Za({edges:w.edges,initialRectangle:w.startingRect,newRectangle:w.currentRect}),rectangle:w.currentRect})}),k(),w=null)})}ngOnDestroy(){(0,ce.NF)(this.platformId)&&this.renderer.setStyle(document.body,"cursor",""),this.mousedown.complete(),this.mouseup.complete(),this.mousemove.complete(),this.destroy$.next()}setElementClass(i,d,p){p?this.renderer.addClass(i.nativeElement,d):this.renderer.removeClass(i.nativeElement,d)}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.Lbi),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.R0b))},c.\u0275dir=e.lG2({type:c,selectors:[["","mwlResizable",""]],inputs:{validateResize:"validateResize",enableGhostResize:"enableGhostResize",resizeSnapGrid:"resizeSnapGrid",resizeCursors:"resizeCursors",ghostElementPositioning:"ghostElementPositioning",allowNegativeResizes:"allowNegativeResizes",mouseMoveThrottleMS:"mouseMoveThrottleMS"},outputs:{resizeStart:"resizeStart",resizing:"resizing",resizeEnd:"resizeEnd"},exportAs:["mwlResizable"]}),c})();class hr{constructor(_,i){this.pointerDown=new Jt.y(d=>{let p,w;return i.runOutsideAngular(()=>{p=_.listen("document","mousedown",k=>{d.next({clientX:k.clientX,clientY:k.clientY,event:k})}),fr&&(w=_.listen("document","touchstart",k=>{d.next({clientX:k.touches[0].clientX,clientY:k.touches[0].clientY,event:k})}))}),()=>{p(),fr&&w()}}).pipe((0,Si.B)()),this.pointerMove=new Jt.y(d=>{let p,w;return i.runOutsideAngular(()=>{p=_.listen("document","mousemove",k=>{d.next({clientX:k.clientX,clientY:k.clientY,event:k})}),fr&&(w=_.listen("document","touchmove",k=>{d.next({clientX:k.targetTouches[0].clientX,clientY:k.targetTouches[0].clientY,event:k})}))}),()=>{p(),fr&&w()}}).pipe((0,Si.B)()),this.pointerUp=new Jt.y(d=>{let p,w,k;return i.runOutsideAngular(()=>{p=_.listen("document","mouseup",I=>{d.next({clientX:I.clientX,clientY:I.clientY,event:I})}),fr&&(w=_.listen("document","touchend",I=>{d.next({clientX:I.changedTouches[0].clientX,clientY:I.changedTouches[0].clientY,event:I})}),k=_.listen("document","touchcancel",I=>{d.next({clientX:I.changedTouches[0].clientX,clientY:I.changedTouches[0].clientY,event:I})}))}),()=>{p(),fr&&(w(),k())}}).pipe((0,Si.B)())}
1static getInstance(_,i){return hr.instance||(hr.instance=new hr(_,i)),hr.instance}}let Ln=(()=>{class c{constructor(i,d,p,w){this.renderer=i,this.element=d,this.zone=p,this.resizableDirective=w,this.resizeEdges={},this.eventListeners={},this.destroy$=new yt.x}ngOnInit(){this.zone.runOutsideAngular(()=>{this.listenOnTheHost("mousedown").subscribe(i=>{this.onMousedown(i,i.clientX,i.clientY)}),this.listenOnTheHost("mouseup").subscribe(i=>{this.onMouseup(i.clientX,i.clientY)}),fr&&(this.listenOnTheHost("touchstart").subscribe(i=>{this.onMousedown(i,i.touches[0].clientX,i.touches[0].clientY)}),(0,mi.T)(this.listenOnTheHost("touchend"),this.listenOnTheHost("touchcancel")).subscribe(i=>{this.onMouseup(i.changedTouches[0].clientX,i.changedTouches[0].clientY)}))})}ngOnDestroy(){this.destroy$.next(),this.unsubscribeEventListeners()}onMousedown(i,d,p){i.cancelable&&i.preventDefault(),this.eventListeners.touchmove||(this.eventListeners.touchmove=this.renderer.listen(this.element.nativeElement,"touchmove",w=>{this.onMousemove(w,w.targetTouches[0].clientX,w.targetTouches[0].clientY)})),this.eventListeners.mousemove||(this.eventListeners.mousemove=this.renderer.listen(this.element.nativeElement,"mousemove",w=>{this.onMousemove(w,w.clientX,w.clientY)})),this.resizable.mousedown.next({clientX:d,clientY:p,edges:this.resizeEdges})}onMouseup(i,d){this.unsubscribeEventListeners(),this.resizable.mouseup.next({clientX:i,clientY:d,edges:this.resizeEdges})}get resizable(){return this.resizableDirective||this.resizableContainer}onMousemove(i,d,p){this.resizable.mousemove.next({clientX:d,clientY:p,edges:this.resizeEdges,event:i})}unsubscribeEventListeners(){Object.keys(this.eventListeners).forEach(i=>{this.eventListeners[i](),delete this.eventListeners[i]})}listenOnTheHost(i){return(0,Ws.R)(this.element.nativeElement,i).pipe((0,Tt.R)(this.destroy$))}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(Iu,8))},c.\u0275dir=e.lG2({type:c,selectors:[["","mwlResizeHandle",""]],inputs:{resizeEdges:"resizeEdges",resizableContainer:"resizableContainer"}}),c})(),Fu=(()=>{class c{}return c.\u0275fac=function(i){return new(i||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({}),c})();const Mv=c=>({action:c});function ko(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"a",5),e.NdJ("mwlClick",function(p){const k=e.CHM(i).$implicit,I=e.oxw(2).event;return e.KtG(k.onClick({event:I,sourceEvent:p}))})("mwlKeydownEnter",function(p){const k=e.CHM(i).$implicit,I=e.oxw(2).event;return e.KtG(k.onClick({event:I,sourceEvent:p}))}),e.ALo(1,"calendarA11y"),e.qZA()}if(2&c){const i=_.$implicit;e.Q6J("ngClass",i.cssClass)("innerHtml",i.label,e.oJD),e.uIk("aria-label",e.xi3(1,3,e.VKq(6,Mv,i),"actionButtonLabel"))}}function ul(c,_){if(1&c&&(e.TgZ(0,"span",3),e.YNc(1,ko,2,8,"a",4),e.qZA()),2&c){const i=e.oxw(),d=i.event,p=i.trackByActionId;e.xp6(),e.Q6J("ngForOf",d.actions)("ngForTrackBy",p)}}function Rr(c,_){1&c&&e.YNc(0,ul,2,2,"span",2),2&c&&e.Q6J("ngIf",_.event.actions)}function Mo(c,_){}const Do=(c,_)=>({event:c,trackByActionId:_}),ei=()=>({});function Ea(c,_){if(1&c&&(e._UZ(0,"span",2),e.ALo(1,"calendarEventTitle"),e.ALo(2,"calendarA11y")),2&c){const i=_.event;e.Q6J("innerHTML",e.Dn7(1,2,i.title,_.view,i),e.oJD),e.uIk("aria-hidden",e.xi3(2,6,e.DdM(9,ei),"hideEventTitle"))}}function Hi(c,_){}const pr=(c,_)=>({event:c,view:_});function Gr(c,_){if(1&c&&(e.TgZ(0,"div",2),e._UZ(1,"div",3)(2,"div",4),e.qZA()),2&c){const i=_.contents;e.Q6J("ngClass","cal-tooltip-"+_.placement),e.xp6(2),e.Q6J("innerHtml",i,e.oJD)}}function Hr(c,_){}const Pa=(c,_,i)=>({contents:c,placement:_,event:i});function _i(c,_){if(1&c&&(e.TgZ(0,"span",7),e._uU(1),e.qZA()),2&c){const i=e.oxw().day;e.xp6(),e.Oqu(i.badgeTotal)}}const dl=c=>({backgroundColor:c}),Rp=(c,_)=>({event:c,draggedFrom:_}),La=(c,_)=>({x:c,y:_}),Zo=()=>({delay:300,delta:30});function Gp(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",10),e.NdJ("mouseenter",function(){const w=e.CHM(i).$implicit,k=e.oxw(2).highlightDay;return e.KtG(k.emit({event:w}))})("mouseleave",function(){const w=e.CHM(i).$implicit,k=e.oxw(2).unhighlightDay;
1return e.KtG(k.emit({event:w}))})("mwlClick",function(p){const k=e.CHM(i).$implicit,I=e.oxw(2).eventClicked;return e.KtG(I.emit({event:k,sourceEvent:p}))}),e.ALo(1,"calendarEventTitle"),e.ALo(2,"calendarA11y"),e.qZA()}if(2&c){const i=_.$implicit,d=e.oxw(2),p=d.tooltipPlacement,w=d.tooltipTemplate,k=d.tooltipAppendToBody,I=d.tooltipDelay,te=d.day,B=d.validateDrag;e.ekj("cal-draggable",i.draggable),e.Q6J("ngStyle",e.VKq(22,dl,null==i.color?null:i.color.primary))("ngClass",null==i?null:i.cssClass)("mwlCalendarTooltip",e.Dn7(1,15,i.title,"monthTooltip",i))("tooltipPlacement",p)("tooltipEvent",i)("tooltipTemplate",w)("tooltipAppendToBody",k)("tooltipDelay",I)("dropData",e.WLB(24,Rp,i,te))("dragAxis",e.WLB(27,La,i.draggable,i.draggable))("validateDrag",B)("touchStartLongPress",e.DdM(30,Zo)),e.uIk("aria-hidden",e.xi3(2,19,e.DdM(31,ei),"hideMonthCellEvents"))}}function Hp(c,_){if(1&c&&(e.TgZ(0,"div",8),e.YNc(1,Gp,3,32,"div",9),e.qZA()),2&c){const i=e.oxw(),d=i.day,p=i.trackByEventId;e.xp6(),e.Q6J("ngForOf",d.events)("ngForTrackBy",p)}}const Vp=(c,_)=>({day:c,locale:_});function qu(c,_){if(1&c&&(e.TgZ(0,"div",2),e.ALo(1,"calendarA11y"),e.TgZ(2,"span",3),e.YNc(3,_i,2,1,"span",4),e.TgZ(4,"span",5),e._uU(5),e.ALo(6,"calendarDate"),e.qZA()()(),e.YNc(7,Hp,2,2,"div",6)),2&c){const i=_.day,d=_.locale;e.uIk("aria-label",e.xi3(1,4,e.WLB(11,Vp,i,d),"monthCell")),e.xp6(3),e.Q6J("ngIf",i.badgeTotal>0),e.xp6(2),e.Oqu(e.Dn7(6,7,i.date,"monthViewDayNumber",d)),e.xp6(2),e.Q6J("ngIf",i.events.length>0)}}function Uu(c,_){}const zp=(c,_,i,d,p,w,k,I,te,B,re,ge)=>({day:c,openDay:_,locale:i,tooltipPlacement:d,highlightDay:p,unhighlightDay:w,eventClicked:k,tooltipTemplate:I,tooltipAppendToBody:te,tooltipDelay:B,trackByEventId:re,validateDrag:ge}),Ru=c=>({event:c}),ki=(c,_)=>({event:c,locale:_});function Gu(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",7),e._UZ(1,"span",8),e._uU(2," "),e.TgZ(3,"mwl-calendar-event-title",9),e.NdJ("mwlClick",function(p){const k=e.CHM(i).$implicit,I=e.oxw(2).eventClicked;return e.KtG(I.emit({event:k,sourceEvent:p}))})("mwlKeydownEnter",function(p){const k=e.CHM(i).$implicit,I=e.oxw(2).eventClicked;return e.KtG(I.emit({event:k,sourceEvent:p}))}),e.ALo(4,"calendarA11y"),e.qZA(),e._uU(5," "),e._UZ(6,"mwl-calendar-event-actions",10),e.qZA()}if(2&c){const i=_.$implicit,d=e.oxw(2).validateDrag,p=e.oxw();e.ekj("cal-draggable",i.draggable),e.Q6J("ngClass",null==i?null:i.cssClass)("dropData",e.VKq(16,Ru,i))("dragAxis",e.WLB(18,La,i.draggable,i.draggable))("validateDrag",d)("touchStartLongPress",e.DdM(21,Zo)),e.xp6(),e.Q6J("ngStyle",e.VKq(22,dl,null==i.color?null:i.color.primary)),e.xp6(2),e.Q6J("event",i)("customTemplate",p.eventTitleTemplate),e.uIk("aria-label",e.xi3(4,13,e.WLB(24,ki,i,p.locale),"eventDescription")),e.xp6(3),e.Q6J("event",i)("customTemplate",p.eventActionsTemplate)}}const Na=(c,_)=>({date:c,locale:_});function fl(c,_){if(1&c&&(e.TgZ(0,"div",3),e._UZ(1,"span",4),e.ALo(2,"calendarA11y"),e._UZ(3,"span",5),e.ALo(4,"calendarA11y"),e.YNc(5,Gu,7,27,"div",6),e.qZA()),2&c){const i=e.oxw(),d=i.events,p=i.trackByEventId,w=e.oxw();e.Q6J("@collapse",void 0),e.xp6(),e.uIk("aria-label",e.xi3(2,5,e.WLB(11,Na,w.date,w.locale),"openDayEventsAlert")),e.xp6(2),e.uIk("aria-label",e.xi3(4,8,e.WLB(14,Na,w.date,w.locale),"openDayEventsLandmark")),e.xp6(2),e.Q6J("ngForOf",d)("ngForTrackBy",p)}}function Oa(c,_){1&c&&e.YNc(0,fl,6,17,"div",2),2&c&&e.Q6J("ngIf",_.isOpen)}function dn(c,_){}const Hu=(c,_,i,d,p)=>({events:c,eventClicked:_,isOpen:i,trackByEventId:d,validateDrag:p});function Vu(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",4),e.NdJ("click",function(p){const k=e.CHM(i).$implicit,I=e.oxw(2);return e.KtG(I.columnHeaderClicked.emit({isoDayNumber:k.day,sourceEvent:p}))}),e._uU(1),e.ALo(2,"calendarDate"),e.qZA()}if(2&c){const i=_.$implicit,d=e.oxw().locale;e.ekj("cal-past",i.isPast)("cal-today",i.isToday)("cal-future",i.isFuture)("cal-weekend",i.isWeekend),e.Q6J("ngClass",i.cssClass),e.xp6(),e.hij(" ",e.Dn7(2,10,i.date,"monthViewColumnHeader",d)," ")}}function hl(c,_){if(1&c&&(e.TgZ(0,"div",2),e.YNc(1,Vu,3,14,"div",3),e.qZA()),2&c){const i=_.days,d=_.trackByWeekDayHeaderDate;e.xp6(),e.Q6J("ngForOf",i)("ngForTrackBy",d)}}function zu(c,_){}const Yu=(c,_,i)=>({days:c,locale:_,trackByWeekDayHeaderDate:i});function Eo(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"mwl-calendar-month-cell",7),e.NdJ("mwlClick",function(p){const k=e.CHM(i).$implicit,I=e.oxw(2);
1return e.KtG(I.dayClicked.emit({day:k,sourceEvent:p}))})("mwlKeydownEnter",function(p){const k=e.CHM(i).$implicit,I=e.oxw(2);return e.KtG(I.dayClicked.emit({day:k,sourceEvent:p}))})("highlightDay",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.toggleDayHighlight(p.event,!0))})("unhighlightDay",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.toggleDayHighlight(p.event,!1))})("drop",function(p){const k=e.CHM(i).$implicit,I=e.oxw(2);return e.KtG(I.eventDropped(k,p.dropData.event,p.dropData.draggedFrom))})("eventClicked",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.eventClicked.emit({event:p.event,sourceEvent:p.sourceEvent}))}),e.ALo(1,"calendarA11y"),e.qZA()}if(2&c){const i=_.$implicit,d=e.oxw(2);e.Q6J("ngClass",null==i?null:i.cssClass)("day",i)("openDay",d.openDay)("locale",d.locale)("tooltipPlacement",d.tooltipPlacement)("tooltipAppendToBody",d.tooltipAppendToBody)("tooltipTemplate",d.tooltipTemplate)("tooltipDelay",d.tooltipDelay)("customTemplate",d.cellTemplate)("ngStyle",e.VKq(15,dl,i.backgroundColor))("clickListenerDisabled",0===d.dayClicked.observers.length),e.uIk("tabindex",e.xi3(1,12,e.DdM(17,ei),"monthCellTabIndex"))}}function vi(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div")(1,"div",4),e.YNc(2,Eo,2,18,"mwl-calendar-month-cell",5),e.ALo(3,"slice"),e.qZA(),e.TgZ(4,"mwl-calendar-open-day-events",6),e.NdJ("eventClicked",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.eventClicked.emit({event:p.event,sourceEvent:p.sourceEvent}))})("drop",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.eventDropped(w.openDay,p.dropData.event,p.dropData.draggedFrom))}),e.qZA()()}if(2&c){const i=_.$implicit,d=e.oxw();e.xp6(2),e.Q6J("ngForOf",e.Dn7(3,9,d.view.days,i,i+d.view.totalDaysVisibleInWeek))("ngForTrackBy",d.trackByDate),e.xp6(2),e.Q6J("locale",d.locale)("isOpen",d.openRowIndex===i)("events",null==d.openDay?null:d.openDay.events)("date",null==d.openDay?null:d.openDay.date)("customTemplate",d.openDayEventsTemplate)("eventTitleTemplate",d.eventTitleTemplate)("eventActionsTemplate",d.eventActionsTemplate)}}function pl(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",4),e.NdJ("mwlClick",function(p){const k=e.CHM(i).$implicit,I=e.oxw().dayHeaderClicked;return e.KtG(I.emit({day:k,sourceEvent:p}))})("drop",function(p){const k=e.CHM(i).$implicit,I=e.oxw().eventDropped;return e.KtG(I.emit({event:p.dropData.event,newStart:k.date}))})("dragEnter",function(){const w=e.CHM(i).$implicit,k=e.oxw().dragEnter;return e.KtG(k.emit({date:w.date}))}),e.TgZ(1,"b"),e._uU(2),e.ALo(3,"calendarDate"),e.qZA(),e._UZ(4,"br"),e.TgZ(5,"span"),e._uU(6),e.ALo(7,"calendarDate"),e.qZA()()}if(2&c){const i=_.$implicit,d=e.oxw().locale;e.ekj("cal-past",i.isPast)("cal-today",i.isToday)("cal-future",i.isFuture)("cal-weekend",i.isWeekend),e.Q6J("ngClass",i.cssClass),e.xp6(2),e.Oqu(e.Dn7(3,11,i.date,"weekViewColumnHeader",d)),e.xp6(4),e.Oqu(e.Dn7(7,15,i.date,"weekViewColumnSubHeader",d))}}function $u(c,_){if(1&c&&(e.TgZ(0,"div",2),e.YNc(1,pl,8,19,"div",3),e.qZA()),2&c){const i=_.days,d=_.trackByWeekDayHeaderDate;e.xp6(),e.Q6J("ngForOf",i)("ngForTrackBy",d)}}function Ju(c,_){}const ju=(c,_,i,d,p,w)=>({days:c,locale:_,dayHeaderClicked:i,eventDropped:d,dragEnter:p,trackByWeekDayHeaderDate:w}),Po=(c,_,i)=>({color:c,backgroundColor:_,borderColor:i});function Bu(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",2),e.NdJ("mwlClick",function(p){const k=e.CHM(i).eventClicked;return e.KtG(k.emit({sourceEvent:p}))})("mwlKeydownEnter",function(p){const k=e.CHM(i).eventClicked;return e.KtG(k.emit({sourceEvent:p}))}),e.ALo(1,"calendarEventTitle"),e.ALo(2,"calendarA11y"),e._UZ(3,"mwl-calendar-event-actions",3),e._uU(4," "),e._UZ(5,"mwl-calendar-event-title",4),e.qZA()}if(2&c){const i=_.weekEvent,d=_.tooltipPlacement,p=_.tooltipTemplate,w=_.tooltipAppendToBody,k=_.tooltipDisabled,I=_.tooltipDelay,te=_.daysInWeek,B=e.oxw();e.Q6J("ngStyle",e.kEZ(20,Po,null==i.event.color?null:i.event.color.secondaryText,null==i.event.color?null:i.event.color.secondary,null==i.event.color?null:i.event.color.primary))("mwlCalendarTooltip",k?"":e.Dn7(1,13,i.event.title,1===te?"dayTooltip":"weekTooltip",i.tempEvent||i.event))("tooltipPlacement",d)("tooltipEvent",i.tempEvent||i.event)("tooltipTemplate",p)("tooltipAppendToBody",w)("tooltipDelay",I),e.uIk("aria-label",e.xi3(2,17,e.WLB(24,ki,i.tempEvent||i.event,B.locale),"eventDescription")),e.xp6(3),e.Q6J("event",i.tempEvent||i.event)("customTemplate",B.eventActionsTemplate),e.xp6(2),e.Q6J("event",i.tempEvent||i.event)("customTemplate",B.eventTitleTemplate)("view",1===te?"day":"week")}}function Yp(c,_){}const Lo=(c,_,i,d,p,w,k,I,te)=>({weekEvent:c,tooltipPlacement:_,eventClicked:i,tooltipTemplate:d,tooltipAppendToBody:p,tooltipDisabled:w,tooltipDelay:k,column:I,daysInWeek:te});function $p(c,_){if(1&c&&(e.TgZ(0,"div",4),e._uU(1),e.ALo(2,"calendarDate"),e.qZA()),2&c){const i=e.oxw(),d=i.segment,p=i.daysInWeek,w=i.locale;e.xp6(),e.hij(" ",e.Dn7(2,1,d.displayDate,1===p?"dayViewHour":"weekViewHour",w)," ")}}function ln(c,_){if(1&c&&(e.TgZ(0,"div",2),e.ALo(1,"calendarA11y"),e.YNc(2,$p,3,5,"div",3),e.qZA()),2&c){const i=_.segment,p=_.isTimeLabel,w=_.daysInWeek;e.Udp("height",_.segmentHeight,"px"),e.ekj("cal-hour-start",i.isStart)("cal-after-hour-start",!i.isStart),e.Q6J("ngClass",i.cssClass),e.uIk("aria-hidden",e.xi3(1,9,e.DdM(12,ei),1===w?"hideDayHourSegment":"hideWeekHourSegment")),e.xp6(2),e.Q6J("ngIf",p)}}function Ia(c,_){}const Wu=(c,_,i,d,p)=>({segment:c,locale:_,segmentHeight:i,isTimeLabel:d,daysInWeek:p});function Jp(c,_){if(1&c&&e._UZ(0,"div",3),2&c){const i=e.oxw().topPx;e.Udp("top",i,"px")}}function jp(c,_){1&c&&e.YNc(0,Jp,1,2,"div",2),2&c&&e.Q6J("ngIf",_.isVisible)}function gl(c,_){}const Xu=(c,_,i,d,p,w,k)=>({columnDate:c,dayStartHour:_,dayStartMinute:i,dayEndHour:d,dayEndMinute:p,isVisible:w,topPx:k});function Bp(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",13),e.NdJ("drop",function(p){const k=e.CHM(i).$implicit,I=e.oxw(2);return e.KtG(I.eventDropped(p,k.date,!0))})("dragEnter",function(){const w=e.CHM(i).$implicit,k=e.oxw(2);return e.KtG(k.dateDragEnter(w.date))}),e.qZA()}}const Qu=()=>({left:!0});function Ku(c,_){1&c&&e._UZ(0,"div",22),2&c&&e.Q6J("resizeEdges",e.DdM(1,Qu))}const $n=()=>({right:!0});function ed(c,_){1&c&&e._UZ(0,"div",23),2&c&&e.Q6J("resizeEdges",e.DdM(1,$n))}const ml=(c,_)=>({left:c,right:_}),No=(c,_)=>({event:c,calendarId:_}),Wp=c=>({x:c});function Xp(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",17,18),e.NdJ("resizeStart",function(p){const k=e.CHM(i).$implicit;e.oxw();const I=e.MAs(1),te=e.oxw(2);return e.KtG(te.allDayEventResizeStarted(I,k,p))})("resizing",function(p){const k=e.CHM(i).$implicit,I=e.oxw(3);return e.KtG(I.allDayEventResizing(k,p,I.dayColumnWidth))})("resizeEnd",function(){const w=e.CHM(i).$implicit,k=e.oxw(3);return e.KtG(k.allDayEventResizeEnded(w))})("dragStart",function(){const w=e.CHM(i).$implicit,k=e.MAs(1);e.oxw();const I=e.MAs(1),te=e.oxw(2);return e.KtG(te.dragStarted(I,k,w,!1))})("dragging",function(){e.CHM(i);const p=e.oxw(3);return e.KtG(p.allDayEventDragMove())})("dragEnd",function(p){const k=e.CHM(i).$implicit,I=e.oxw(3);return e.KtG(I.dragEnded(k,p,I.dayColumnWidth))}),e.YNc(2,Ku,1,2,"div",19),e.TgZ(3,"mwl-calendar-week-view-event",20),e.NdJ("eventClicked",function(p){const k=e.CHM(i).$implicit,I=e.oxw(3);
1return e.KtG(I.eventClicked.emit({event:k.event,sourceEvent:p.sourceEvent}))}),e.qZA(),e.YNc(4,ed,1,2,"div",21),e.qZA()}if(2&c){const i=_.$implicit,d=e.oxw(3);e.Udp("width",100/d.days.length*i.span,"%")("margin-left",d.rtl?null:100/d.days.length*i.offset,"%")("margin-right",d.rtl?100/d.days.length*i.offset:null,"%"),e.ekj("cal-draggable",i.event.draggable&&0===d.allDayEventResizes.size)("cal-starts-within-week",!i.startsBeforeWeek)("cal-ends-within-week",!i.endsAfterWeek),e.Q6J("ngClass",null==i.event?null:i.event.cssClass)("resizeCursors",d.resizeCursors)("resizeSnapGrid",e.WLB(33,ml,d.dayColumnWidth,d.dayColumnWidth))("validateResize",d.validateResize)("dropData",e.WLB(36,No,i.event,d.calendarId))("dragAxis",e.WLB(39,La,i.event.draggable&&0===d.allDayEventResizes.size,!d.snapDraggedEvents&&i.event.draggable&&0===d.allDayEventResizes.size))("dragSnapGrid",d.snapDraggedEvents?e.VKq(42,Wp,d.dayColumnWidth):e.DdM(44,ei))("validateDrag",d.validateDrag)("touchStartLongPress",e.DdM(45,Zo)),e.xp6(2),e.Q6J("ngIf",(null==i.event||null==i.event.resizable?null:i.event.resizable.beforeStart)&&!i.startsBeforeWeek),e.xp6(),e.Q6J("locale",d.locale)("weekEvent",i)("tooltipPlacement",d.tooltipPlacement)("tooltipTemplate",d.tooltipTemplate)("tooltipAppendToBody",d.tooltipAppendToBody)("tooltipDelay",d.tooltipDelay)("customTemplate",d.eventTemplate)("eventTitleTemplate",d.eventTitleTemplate)("eventActionsTemplate",d.eventActionsTemplate)("daysInWeek",d.daysInWeek),e.xp6(),e.Q6J("ngIf",(null==i.event||null==i.event.resizable?null:i.event.resizable.afterEnd)&&!i.endsAfterWeek)}}function _l(c,_){if(1&c&&(e.TgZ(0,"div",14,15),e.YNc(2,Xp,5,46,"div",16),e.qZA()),2&c){const i=_.$implicit,d=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",i.row)("ngForTrackBy",d.trackByWeekAllDayEvent)}}function Fa(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",8,9),e.NdJ("dragEnter",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.dragEnter("allDay"))})("dragLeave",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.dragLeave("allDay"))}),e.TgZ(2,"div",5),e._UZ(3,"div",10),e.YNc(4,Bp,1,0,"div",11),e.qZA(),e.YNc(5,_l,3,2,"div",12),e.qZA()}if(2&c){const i=e.oxw();e.xp6(3),e.Q6J("ngTemplateOutlet",i.allDayEventsLabelTemplate),e.xp6(),e.Q6J("ngForOf",i.days)("ngForTrackBy",i.trackByWeekDayHeaderDate),e.xp6(),e.Q6J("ngForOf",i.view.allDayEventRows)("ngForTrackBy",i.trackById)}}function td(c,_){if(1&c&&e._UZ(0,"mwl-calendar-week-view-hour-segment",28),2&c){const i=_.$implicit,d=e.oxw(3);e.Udp("height",d.hourSegmentHeight,"px"),e.Q6J("segment",i)("segmentHeight",d.hourSegmentHeight)("locale",d.locale)("customTemplate",d.hourSegmentTemplate)("isTimeLabel",!0)("daysInWeek",d.daysInWeek)}}function At(c,_){if(1&c&&(e.TgZ(0,"div",26),e.YNc(1,td,1,8,"mwl-calendar-week-view-hour-segment",27),e.qZA()),2&c){const i=_.$implicit,d=_.odd,p=e.oxw(2);e.ekj("cal-hour-odd",d),e.xp6(),e.Q6J("ngForOf",i.segments)("ngForTrackBy",p.trackByHourSegment)}}function Qp(c,_){if(1&c&&(e.TgZ(0,"div",24),e.YNc(1,At,2,4,"div",25),e.qZA()),2&c){const i=e.oxw();e.xp6(),e.Q6J("ngForOf",i.view.hourColumns[0].hours)("ngForTrackBy",i.trackByHour)}}const Kp=()=>({left:!0,top:!0});function nd(c,_){1&c&&e._UZ(0,"div",22),2&c&&e.Q6J("resizeEdges",e.DdM(1,Kp))}function eg(c,_){}function tg(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"mwl-calendar-week-view-event",36),e.NdJ("eventClicked",function(p){e.CHM(i);const w=e.oxw().$implicit,k=e.oxw(2);return e.KtG(k.eventClicked.emit({event:w.event,sourceEvent:p.sourceEvent}))}),e.qZA()}if(2&c){const i=e.oxw().$implicit,d=e.oxw().$implicit,p=e.oxw();e.Q6J("locale",p.locale)("weekEvent",i)("tooltipPlacement",p.tooltipPlacement)("tooltipTemplate",p.tooltipTemplate)("tooltipAppendToBody",p.tooltipAppendToBody)("tooltipDisabled",p.dragActive||p.timeEventResizes.size>0)("tooltipDelay",p.tooltipDelay)("customTemplate",p.eventTemplate)("eventTitleTemplate",p.eventTitleTemplate)("eventActionsTemplate",p.eventActionsTemplate)("column",d)("daysInWeek",p.daysInWeek)}}const ng=()=>({right:!0,bottom:!0});function ig(c,_){1&c&&e._UZ(0,"div",23),2&c&&e.Q6J("resizeEdges",e.DdM(1,ng))}const id=(c,_,i,d)=>({left:c,right:_,top:i,bottom:d});function vl(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",33,18),e.NdJ("resizeStart",function(p){const k=e.CHM(i).$implicit,I=e.oxw(2),te=e.MAs(6);return e.KtG(I.timeEventResizeStarted(te,k,p))})("resizing",function(p){const k=e.CHM(i).$implicit,I=e.oxw(2);return e.KtG(I.timeEventResizing(k,p))})("resizeEnd",function(){const w=e.CHM(i).$implicit,k=e.oxw(2);return e.KtG(k.timeEventResizeEnded(w))})("dragStart",function(){const w=e.CHM(i).$implicit,k=e.MAs(1),I=e.oxw(2),te=e.MAs(6);return e.KtG(I.dragStarted(te,k,w,!0))})("dragging",function(p){const k=e.CHM(i).$implicit,I=e.oxw(2);return e.KtG(I.dragMove(k,p))})("dragEnd",function(p){const k=e.CHM(i).$implicit,I=e.oxw(2);return e.KtG(I.dragEnded(k,p,I.dayColumnWidth,!0))}),e.YNc(2,nd,1,2,"div",19)(3,eg,0,0,"ng-template",34)(4,tg,1,12,"ng-template",null,35,e.W1O)(6,ig,1,2,"div",21),e.qZA()}if(2&c){const i=_.$implicit,d=e.MAs(5),p=e.oxw(2);e.Udp("top",i.top,"px")("height",i.height,"px")("left",i.left,"%")("width",i.width,"%"),e.ekj("cal-draggable",i.event.draggable&&0===p.timeEventResizes.size)("cal-starts-within-day",!i.startsBeforeDay)("cal-ends-within-day",!i.endsAfterDay),e.Q6J("ngClass",i.event.cssClass)("hidden",0===i.height&&0===i.width)("resizeCursors",p.resizeCursors)("resizeSnapGrid",e.l5B(30,id,p.dayColumnWidth,p.dayColumnWidth,p.eventSnapSize||p.hourSegmentHeight,p.eventSnapSize||p.hourSegmentHeight))("validateResize",p.validateResize)("allowNegativeResizes",!0)("dropData",e.WLB(35,No,i.event,p.calendarId))("dragAxis",e.WLB(38,La,i.event.draggable&&0===p.timeEventResizes.size,i.event.draggable&&0===p.timeEventResizes.size))("dragSnapGrid",p.snapDraggedEvents?e.WLB(41,La,p.dayColumnWidth,p.eventSnapSize||p.hourSegmentHeight):e.DdM(44,ei))("touchStartLongPress",e.DdM(45,Zo)
1)("ghostDragEnabled",!p.snapDraggedEvents)("ghostElementTemplate",d)("validateDrag",p.validateDrag),e.xp6(2),e.Q6J("ngIf",(null==i.event||null==i.event.resizable?null:i.event.resizable.beforeStart)&&!i.startsBeforeDay),e.xp6(),e.Q6J("ngTemplateOutlet",d),e.xp6(3),e.Q6J("ngIf",(null==i.event||null==i.event.resizable?null:i.event.resizable.afterEnd)&&!i.endsAfterDay)}}function Oo(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"mwl-calendar-week-view-hour-segment",38),e.NdJ("mwlClick",function(p){const k=e.CHM(i).$implicit,I=e.oxw(3);return e.KtG(I.hourSegmentClicked.emit({date:k.date,sourceEvent:p}))})("drop",function(p){const k=e.CHM(i).$implicit,I=e.oxw(3);return e.KtG(I.eventDropped(p,k.date,!1))})("dragEnter",function(){const w=e.CHM(i).$implicit,k=e.oxw(3);return e.KtG(k.dateDragEnter(w.date))}),e.qZA()}if(2&c){const i=_.$implicit,d=e.oxw(3);e.Udp("height",d.hourSegmentHeight,"px"),e.Q6J("segment",i)("segmentHeight",d.hourSegmentHeight)("locale",d.locale)("customTemplate",d.hourSegmentTemplate)("daysInWeek",d.daysInWeek)("clickListenerDisabled",0===d.hourSegmentClicked.observers.length)("dragOverClass",d.dragActive&&d.snapDraggedEvents?null:"cal-drag-over")("isTimeLabel",1===d.daysInWeek)}}function rd(c,_){if(1&c&&(e.TgZ(0,"div",26),e.YNc(1,Oo,1,10,"mwl-calendar-week-view-hour-segment",37),e.qZA()),2&c){const i=_.$implicit,d=_.odd,p=e.oxw(2);e.ekj("cal-hour-odd",d),e.xp6(),e.Q6J("ngForOf",i.segments)("ngForTrackBy",p.trackByHourSegment)}}function rg(c,_){if(1&c&&(e.TgZ(0,"div",29),e._UZ(1,"mwl-calendar-week-view-current-time-marker",30),e.TgZ(2,"div",31),e.YNc(3,vl,7,46,"div",32),e.qZA(),e.YNc(4,rd,2,4,"div",25),e.qZA()),2&c){const i=_.$implicit,d=e.oxw();e.xp6(),e.Q6J("columnDate",i.date)("dayStartHour",d.dayStartHour)("dayStartMinute",d.dayStartMinute)("dayEndHour",d.dayEndHour)("dayEndMinute",d.dayEndMinute)("hourSegments",d.hourSegments)("hourDuration",d.hourDuration)("hourSegmentHeight",d.hourSegmentHeight)("customTemplate",d.currentTimeMarkerTemplate),e.xp6(2),e.Q6J("ngForOf",i.events)("ngForTrackBy",d.trackByWeekTimeEvent),e.xp6(),e.Q6J("ngForOf",i.hours)("ngForTrackBy",d.trackByHour)}}let yi=(()=>{class c{constructor(i,d,p){this.renderer=i,this.elm=d,this.document=p,this.clickListenerDisabled=!1,this.click=new e.vpe,this.destroy$=new yt.x}ngOnInit(){this.clickListenerDisabled||this.listen().pipe((0,Tt.R)(this.destroy$)).subscribe(i=>{i.stopPropagation(),this.click.emit(i)})}ngOnDestroy(){this.destroy$.next()}listen(){return new Jt.y(i=>this.renderer.listen(this.elm.nativeElement,"click",d=>{i.next(d)}))}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(ce.K0))},c.\u0275dir=e.lG2({type:c,selectors:[["","mwlClick",""]],inputs:{clickListenerDisabled:"clickListenerDisabled"},outputs:{click:"mwlClick"}}),c})(),Io=(()=>{class c{constructor(i,d,p){this.host=i,this.ngZone=d,this.renderer=p,this.keydown=new e.vpe,this.keydownListener=null}ngOnInit(){this.ngZone.runOutsideAngular(()=>{this.keydownListener=this.renderer.listen(this.host.nativeElement,"keydown",i=>{(13===i.keyCode||13===i.which||"Enter"===i.key)&&(i.preventDefault(),i.stopPropagation(),this.ngZone.run(()=>{this.keydown.emit(i)}))})})}ngOnDestroy(){null!==this.keydownListener&&(this.keydownListener(),this.keydownListener=null)}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.Qsj))},c.\u0275dir=e.lG2({type:c,selectors:[["","mwlKeydownEnter",""]],outputs:{keydown:"mwlKeydownEnter"}}),c})(),Fo=(()=>{class c{constructor(i){this.i18nPlural=i}monthCell({day:i,locale:d}){return i.badgeTotal>0?`\n ${(0,ce.p6)(i.date,"EEEE MMMM d",d)},\n ${this.i18nPlural.transform(i.badgeTotal,{"=0":"No events","=1":"One event",other:"# events"})},\n click to expand\n `:`${(0,ce.p6)(i.date,"EEEE MMMM d",d)}`}openDayEventsLandmark({date:i,locale:d}){return`\n Beginning of expanded view for ${(0,ce.p6)(i,"EEEE MMMM dd",d)}\n `}openDayEventsAlert({date:i,locale:d}){return`${(0,ce.p6)(i,"EEEE MMMM dd",d)} expanded`}eventDescription({event:i,locale:d}){if(!0===i.allDay)return this.allDayEventDescription({event:i,locale:d});const p=`\n ${(0,ce.p6)(i.start,"EEEE MMMM dd",d)},\n ${i.title}, from ${(0,ce.p6)(i.start,"hh:mm a",d)}\n `;return i.end?p+` to ${(0,ce.p6)(i.end,"hh:mm a",d)}`:p}allDayEventDescription({event:i,locale:d}){const p=`\n ${i.title}, event spans multiple days:\n start time ${(0,ce.p6)(i.start,"MMMM dd hh:mm a",d)}\n `;return i.end?p+`, stop time ${(0,ce.p6)(i.end,"MMMM d hh:mm a",d)}`:p+", no stop time"}actionButtonLabel({action:i}){return i.a11yLabel}monthCellTabIndex(){return 0}hideMonthCellEvents(){return!0}hideEventTitle(){return!0}hideWeekHourSegment(){return!0}hideDayHourSegment(){return!0}}return c.\u0275fac=function(i){return new(i||c)(e.LFG(ce.Gx))},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})(),Mi=(()=>{class c{constructor(i,d){this.calendarA11y=i,this.locale=d}transform(i,d){if(i.locale=i.locale||this.locale,typeof this.calendarA11y[d]>"u"){const p=Object.getOwnPropertyNames(Object.getPrototypeOf(Fo.prototype)).filter(w=>"constructor"!==w);throw new Error(`${d} is not a valid a11y method. Can only be one of ${p.join(", ")}`)}return this.calendarA11y[d](i)}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(Fo,16),e.Y36(e.soG,16))},c.\u0275pipe=e.Yjl({name:"calendarA11y",type:c,pure:!0}),c})(),ad=(()=>{class c{constructor(){this.trackByActionId=(i,d)=>d.id?d.id:d}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["mwl-calendar-event-actions"]],inputs:{event:"event",customTemplate:"customTemplate"},decls:3,vars:5,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","cal-event-actions",4,"ngIf"],[1,"cal
1-event-actions"],["class","cal-event-action","href","javascript:;","tabindex","0","role","button",3,"ngClass","innerHtml","mwlClick","mwlKeydownEnter",4,"ngFor","ngForOf","ngForTrackBy"],["href","javascript:;","tabindex","0","role","button",1,"cal-event-action",3,"ngClass","innerHtml","mwlClick","mwlKeydownEnter"]],template:function(i,d){if(1&i&&e.YNc(0,Rr,1,1,"ng-template",null,0,e.W1O)(2,Mo,0,0,"ng-template",1),2&i){const p=e.MAs(1);e.xp6(2),e.Q6J("ngTemplateOutlet",d.customTemplate||p)("ngTemplateOutletContext",e.WLB(2,Do,d.event,d.trackByActionId))}},dependencies:[ce.mk,ce.sg,ce.O5,ce.tP,yi,Io,Mi],encapsulation:2}),c})();class qa{month(_,i){return _.title}monthTooltip(_,i){return _.title}week(_,i){return _.title}weekTooltip(_,i){return _.title}day(_,i){return _.title}dayTooltip(_,i){return _.title}}let yl=(()=>{class c{constructor(i){this.calendarEventTitle=i}transform(i,d,p){return this.calendarEventTitle[d](p,i)}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(qa,16))},c.\u0275pipe=e.Yjl({name:"calendarEventTitle",type:c,pure:!0}),c})(),xl=(()=>{class c{}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["mwl-calendar-event-title"]],inputs:{event:"event",customTemplate:"customTemplate",view:"view"},decls:3,vars:5,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-event-title",3,"innerHTML"]],template:function(i,d){if(1&i&&e.YNc(0,Ea,3,10,"ng-template",null,0,e.W1O)(2,Hi,0,0,"ng-template",1),2&i){const p=e.MAs(1);e.xp6(2),e.Q6J("ngTemplateOutlet",d.customTemplate||p)("ngTemplateOutletContext",e.WLB(2,pr,d.event,d.view))}},dependencies:[ce.tP,yl,Mi],encapsulation:2}),c})(),ag=(()=>{class c{}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["mwl-calendar-tooltip-window"]],inputs:{contents:"contents",placement:"placement",event:"event",customTemplate:"customTemplate"},decls:3,vars:6,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-tooltip",3,"ngClass"],[1,"cal-tooltip-arrow"],[1,"cal-tooltip-inner",3,"innerHtml"]],template:function(i,d){if(1&i&&e.YNc(0,Gr,3,2,"ng-template",null,0,e.W1O)(2,Hr,0,0,"ng-template",1),2&i){const p=e.MAs(1);e.xp6(2),e.Q6J("ngTemplateOutlet",d.customTemplate||p)("ngTemplateOutletContext",e.kEZ(2,Pa,d.contents,d.placement,d.event))}},dependencies:[ce.mk,ce.tP],encapsulation:2}),c})(),Ua=(()=>{class c{constructor(i,d,p,w,k,I){this.elementRef=i,this.injector=d,this.renderer=p,this.viewContainerRef=k,this.document=I,this.placement="auto",this.delay=null,this.cancelTooltipDelay$=new yt.x,this.tooltipFactory=w.resolveComponentFactory(ag)}ngOnChanges(i){this.tooltipRef&&(i.contents||i.customTemplate||i.event)&&(this.tooltipRef.instance.contents=this.contents,this.tooltipRef.instance.customTemplate=this.customTemplate,this.tooltipRef.instance.event=this.event,this.tooltipRef.changeDetectorRef.markForCheck(),this.contents||this.hide())}ngOnDestroy(){this.hide()}onMouseOver(){(null===this.delay?(0,sn.of)("now"):(0,Wt.H)(this.delay)).pipe((0,Tt.R)(this.cancelTooltipDelay$)).subscribe(()=>{this.show()})}onMouseOut(){this.hide()}show(){!this.tooltipRef&&this.contents&&(this.tooltipRef=this.viewContainerRef.createComponent(this.tooltipFactory,0,this.injector,[]),this.tooltipRef.instance.contents=this.contents,this.tooltipRef.instance.customTemplate=this.customTemplate,this.tooltipRef.instance.event=this.event,this.appendToBody&&this.document.body.appendChild(this.tooltipRef.location.nativeElement),requestAnimationFrame(()=>{this.positionTooltip()}))}hide(){this.tooltipRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.tooltipRef.hostView)),this.tooltipRef=null),this.cancelTooltipDelay$.next()}positionTooltip(i=[]){this.tooltipRef&&(this.tooltipRef.changeDetectorRef.detectChanges(),this.tooltipRef.instance.placement=function gn(c,_,i,d,p){var w=Array.isArray(i)?i:i.split(zn),k=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],I=_.classList,te=function(Ie){var Oe=Ie.split("-"),Je=Oe[0],Ve=Oe[1],Qe=[];return p&&(Qe.push(p+"-"+Je),Ve&&Qe.push(p+"-"+Je+"-"+Ve),Qe.forEach(function(gt){I.add(gt)})),Qe};
1p&&k.forEach(function(Ie){I.remove(p+"-"+Ie)});var B=w.findIndex(function(Ie){return"auto"===Ie});B>=0&&k.forEach(function(Ie){null==w.find(function(Oe){return-1!==Oe.search("^"+Ie)})&&w.splice(B++,1,Ie)});var re=_.style;re.position="absolute",re.top="0",re.left="0",re["will-change"]="transform";for(var ge,Se=!1,he=0,ke=w;he<ke.length;he++){var Te=te(ge=ke[he]);if(vn.positionElements(c,_,ge,d)){Se=!0;break}p&&Te.forEach(function(Ie){I.remove(Ie)})}return Se||(te(ge=w[0]),vn.positionElements(c,_,ge,d)),ge}(this.elementRef.nativeElement,this.tooltipRef.location.nativeElement.children[0],this.placement,this.appendToBody),-1===i.indexOf(this.tooltipRef.instance.placement)&&this.positionTooltip([...i,this.tooltipRef.instance.placement]))}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.SBq),e.Y36(e.zs3),e.Y36(e.Qsj),e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(ce.K0))},c.\u0275dir=e.lG2({type:c,selectors:[["","mwlCalendarTooltip",""]],hostBindings:function(i,d){1&i&&e.NdJ("mouseenter",function(){return d.onMouseOver()})("mouseleave",function(){return d.onMouseOut()})},inputs:{contents:[e.lbL.None,"mwlCalendarTooltip","contents"],placement:[e.lbL.None,"tooltipPlacement","placement"],customTemplate:[e.lbL.None,"tooltipTemplate","customTemplate"],event:[e.lbL.None,"tooltipEvent","event"],appendToBody:[e.lbL.None,"tooltipAppendToBody","appendToBody"],delay:[e.lbL.None,"tooltipDelay","delay"]},features:[e.TTD]}),c})();var gr=function(c){return c.Month="month",c.Week="week",c.Day="day",c}(gr||{});const bl=c=>function xp(c,_){var i=!0;function d(p,w){_(p,w),i=!1}return Array.isArray(c)?(c.forEach(function(p){p.start?p.start instanceof Date||d(qr.StartPropertyNotDate,p):d(qr.StartPropertyMissing,p),p.end&&(p.end instanceof Date||d(qr.EndPropertyNotDate,p),p.start>p.end&&d(qr.EndsBeforeStart,p))}),i):(_(qr.NotArray,c),!1)}(c,(...i)=>console.warn("angular-calendar",...i));function od(c,_){return Math.floor(c.left)<=Math.ceil(_.left)&&Math.floor(_.left)<=Math.ceil(c.right)&&Math.floor(c.left)<=Math.ceil(_.right)&&Math.floor(_.right)<=Math.ceil(c.right)}function sd(c,_){return Math.round(c/_)*_}const ld=(c,_)=>_.id?_.id:_,wl=(c,_)=>_.date.toISOString(),lg=(c,_)=>_.date.toISOString(),cg=(c,_)=>_.segments[0].date.toISOString(),ug=(c,_)=>_.event.id?_.event.id:_.event,dg=(c,_)=>_.event.id?_.event.id:_.event;function Cl(c,_,i,d,p){const w=sd(c,d||i),k=function hg(c,_,i){return(i||60)/(c*_)}(_,i,p);return w*k}function cd(c,_,i){return _.end?_.end:c.addMinutes(_.start,i)}function ti(c,_,i,d){let p=0,w=0;const k=i<0?c.subDays:c.addDays;let I=_;for(;w<=Math.abs(i);){I=k(_,p);const te=c.getDay(I);-1===d.indexOf(te)&&w++,p++}return I}function mr(c,_,i,d=[],p){let w=p?c.startOfDay(_):c.startOfWeek(_,{weekStartsOn:i});const k=c.endOfWeek(_,{weekStartsOn:i});for(;d.indexOf(c.getDay(w))>-1&&w<k;)w=c.addDays(w,1);if(p)return{viewStart:w,viewEnd:c.endOfDay(ti(c,w,p-1,d))};{let I=k;for(;d.indexOf(c.getDay(I))>-1&&I>w;)I=c.subDays(I,1);return{viewStart:w,viewEnd:I}}}function Al({x:c,y:_}){return Math.abs(c)>1||Math.abs(_)>1}class Di{}let pg=(()=>{class c{constructor(i){this.dateAdapter=i,this.excludeDays=[],this.viewDateChange=new e.vpe}onClick(){const i={day:this.dateAdapter.subDays,week:this.dateAdapter.subWeeks,month:this.dateAdapter.subMonths}[this.view];this.viewDateChange.emit(this.view===gr.Day?ti(this.dateAdapter,this.viewDate,-1,this.excludeDays):this.view===gr.Week&&this.daysInWeek?ti(this.dateAdapter,this.viewDate,-this.daysInWeek,this.excludeDays):i(this.viewDate,1))}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(Di))},c.\u0275dir=e.lG2({type:c,selectors:[["","mwlCalendarPreviousView",""]],hostBindings:function(i,d){1&i&&e.NdJ("click",function(){return d.onClick()})},inputs:{view:"view",viewDate:"viewDate",excludeDays:"excludeDays",daysInWeek:"daysInWeek"},outputs:{viewDateChange:"viewDateChange"}}),c})(),gg=(()=>{class c{constructor(i){this.dateAdapter=i,this.excludeDays=[],this.viewDateChange=new e.vpe}onClick(){const i={day:this.dateAdapter.addDays,week:this.dateAdapter.addWeeks,month:this.dateAdapter.addMonths}[this.view];this.viewDateChange.emit(this.view===gr.Day?ti(this.dateAdapter,this.viewDate,1,this.excludeDays):this.view===gr.Week&&this.daysInWeek?ti(this.dateAdapter,this.viewDate,this.daysInWeek,this.excludeDays):i(this.viewDate,1))}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(Di))},c.\u0275dir=e.lG2({type:c,selectors:[["","mwlCalendarNextView",""]],hostBindings:function(i,d){1&i&&e.NdJ("click",function(){return d.onClick()})},inputs:{view:"view",viewDate:"viewDate",excludeDays:"excludeDays",daysInWeek:"daysInWeek"},outputs:{viewDateChange:"viewDateChange"}}),c})(),mg=(()=>{class c{constructor(i){this.dateAdapter=i,this.viewDateChange=new e.vpe}onClick(){this.viewDateChange.emit(this.dateAdapter.startOfDay(new Date))}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(Di))},c.\u0275dir=e.lG2({type:c,selectors:[["","mwlCalendarToday",""]],hostBindings:function(i,d){1&i&&e.NdJ("click",function(){return d.onClick()})},inputs:{viewDate:"viewDate"},outputs:{viewDateChange:"viewDateChange"}}),c})(),_g=(()=>{class c{constructor(i){this.dateAdapter=i}monthViewColumnHeader({date:i,locale:d}){return(0,ce.p6)(i,"EEEE",d)}monthViewDayNumber({date:i,locale:d}){return(0,ce.p6)(i,"d",d)}monthViewTitle({date:i,locale:d}){return(0,ce.p6)(i,"LLLL y",d)}weekViewColumnHeader({date:i,locale:d}){return(0,ce.p6)(i,"EEEE",d)}weekViewColumnSubHeader({date:i,locale:d}){return(0,ce.p6)(i,"MMM d",d)}weekViewTitle({date:i,locale:d,weekStartsOn:p,excludeDays:w,daysInWeek:k}){const{viewStart:I,viewEnd:te}=mr(this.dateAdapter,i,p,w,k),B=(re,ge)=>(0,ce.p6)(re,"MMM d"+(ge?", yyyy":""),d);return`${B(I,I.getUTCFullYear()!==te.getUTCFullYear())} - ${B(te,!0)}`}weekViewHour({date:i,locale:d}){return(0,ce.p6)(i,"h a",d)}dayViewHour({date:i,locale:d}){return(0,ce.p6)(i,"h a",d)}dayViewTitle({date:i,locale:d}){return(0,ce.p6)(i,"EEEE, MMMM d, y",d)}}return c.\u0275fac=function(i){return new(i||c)(e.LFG(Di))},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})(),qo=(()=>{class c extends _g{}return c.\u0275fac=(()=>{let _;return function(d){return(_||(_=e.n5z(c)))(d||c)}})(),c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})(),_r=(()=>{class c{constructor(i,d){this.dateFormatter=i,this.locale=d}transform(i,d,p=this.locale,w=0,k=[],I){if(typeof this.dateFormatter[d]>"u"){const te=Object.getOwnPropertyNames(Object.getPrototypeOf(qo.prototype)).filter(
1B=>"constructor"!==B);throw new Error(`${d} is not a valid date formatter. Can only be one of ${te.join(", ")}`)}return this.dateFormatter[d]({date:i,locale:p,weekStartsOn:w,excludeDays:k,daysInWeek:I})}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(qo,16),e.Y36(e.soG,16))},c.\u0275pipe=e.Yjl({name:"calendarDate",type:c,pure:!0}),c})(),Uo=(()=>{class c{constructor(i){this.dateAdapter=i}getMonthView(i){return function _p(c,_){var i=_.events,d=void 0===i?[]:i,p=_.viewDate,w=_.weekStartsOn,k=_.excluded,I=void 0===k?[]:k,te=_.viewStart,B=void 0===te?c.startOfMonth(p):te,re=_.viewEnd,ge=void 0===re?c.endOfMonth(p):re,Se=_.weekendDays;d||(d=[]);for(var et,ke=c.endOfWeek,Te=c.differenceInDays,Ie=c.startOfDay,Oe=c.addHours,Je=c.endOfDay,Ve=c.isSameMonth,Qe=c.getDay,gt=(0,c.startOfWeek)(B,{weekStartsOn:w}),St=ke(ge,{weekStartsOn:w}),Rt=Sa(c,{events:d,periodStart:gt,periodEnd:St}),at=[],it=function(Li){var Vt;if(et?(Vt=Ie(Oe(et,24)),et.getTime()===Vt.getTime()&&(Vt=Ie(Oe(et,25))),et=Vt):Vt=et=gt,!I.some(function(Xa){return Qe(Vt)===Xa})){var Bi=yu(c,{date:Vt,weekendDays:Se}),bn=Sa(c,{events:Rt,periodStart:Ie(Vt),periodEnd:Je(Vt)});Bi.inMonth=Ve(Vt,p),Bi.events=bn,Bi.badgeTotal=bn.length,at.push(Bi)}},De=0;De<Te(St,gt)+1;De++)it();var Me=[],kt=Yn-I.length;if(kt<Yn)for(De=0;De<at.length;De+=kt){var Lt=at.slice(De,De+kt);Lt.some(function(Vt){return B<=Vt.date&&Vt.date<ge})&&(Me=Qn(Qn([],Me,!0),Lt,!0))}else Me=at;var Wa=Math.floor(Me.length/kt),ia=[];for(De=0;De<Wa;De++)ia.push(De*kt);return{rowOffsets:ia,totalDaysVisibleInWeek:kt,days:Me,period:{start:Me[0].date,end:Je(Me[Me.length-1].date),events:Rt}}}(this.dateAdapter,i)}getWeekViewHeader(i){return js(this.dateAdapter,i)}getWeekView(i){return function mp(c,_){var i=_.events,d=void 0===i?[]:i,p=_.viewDate,w=_.weekStartsOn,k=_.excluded,I=void 0===k?[]:k,te=_.precision,B=void 0===te?"days":te,re=_.absolutePositionedEvents,ge=void 0!==re&&re,Se=_.hourSegments,he=_.hourDuration,ke=_.dayStart,Te=_.dayEnd,Ie=_.weekendDays,Oe=_.segmentHeight,Je=_.minimumEventHeight,Ve=_.viewStart,Qe=void 0===Ve?c.startOfWeek(p,{weekStartsOn:w}):Ve,gt=_.viewEnd,St=void 0===gt?c.endOfWeek(p,{weekStartsOn:w}):gt;d||(d=[]);var at=c.endOfDay,et=Sa(c,{events:d,periodStart:Qe=(0,c.startOfDay)(Qe),periodEnd:St=at(St)}),it=js(c,{viewDate:p,weekStartsOn:w,excluded:I,weekendDays:Ie,viewStart:Qe,viewEnd:St});return{allDayEventRows:pp(c,{events:et,excluded:I,precision:B,absolutePositionedEvents:ge,viewStart:Qe,viewEnd:St}),period:{events:et,start:it[0].date,end:at(it[it.length-1].date)},hourColumns:gp(c,{events:d,viewDate:p,hourSegments:Se,hourDuration:he,dayStart:ke,dayEnd:Te,weekStartsOn:w,excluded:I,weekendDays:Ie,segmentHeight:Oe,viewStart:Qe,viewEnd:St,minimumEventHeight:Je})}}(this.dateAdapter,i)}}return c.\u0275fac=function(i){return new(i||c)(e.LFG(Di))},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})();new e.OlP("Moment");var Sn=function(c){return c.Drag="drag",c.Drop="drop",c.Resize="resize",c}(Sn||{});let Ra=(()=>{class c{static forRoot(i,d={}){return{ngModule:c,providers:[i,d.eventTitleFormatter||qa,d.dateFormatter||qo,d.utils||Uo,d.a11y||Fo]}}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({providers:[ce.Gx],imports:[ce.ez]}),c})(),vg=(()=>{class c{constructor(){this.highlightDay=new e.vpe,this.unhighlightDay=new e.vpe,this.eventClicked=new e.vpe,this.trackByEventId=ld,this.validateDrag=Al}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["mwl-calendar-month-cell"]],hostAttrs:[1,"cal-cell","cal-day-cell"],hostVars:18,hostBindings:function(i,d){2&i&&e.ekj("cal-past",d.day.isPast)("cal-today",d.day.isToday)("cal-future",d.day.isFuture)("cal-weekend",d.day.isWeekend)("cal-in-month",d.day.inMonth)("cal-out-month",!d.day.inMonth)("cal-has-events",d.day.events.length>0)("cal-open",d.day===d.openDay)("cal-event-highlight",!!d.day.backgroundColor)},inputs:{day:"day",openDay:"openDay",locale:"locale",tooltipPlacement:"tooltipPlacement",tooltipAppendToBody:"tooltipAppendToBody",customTemplate:"customTemplate",tooltipTemplate:"tooltipTemplate",tooltipDelay:"tooltipDelay"},outputs:{highlightDay:"highlightDay",unhighlightDay:"unhighlightDay",eventClicked:"eventClicked"},decls:3,vars:15,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal
1-cell-top"],["aria-hidden","true"],["class","cal-day-badge",4,"ngIf"],[1,"cal-day-number"],["class","cal-events",4,"ngIf"],[1,"cal-day-badge"],[1,"cal-events"],["class","cal-event","mwlDraggable","","dragActiveClass","cal-drag-active",3,"ngStyle","ngClass","mwlCalendarTooltip","tooltipPlacement","tooltipEvent","tooltipTemplate","tooltipAppendToBody","tooltipDelay","cal-draggable","dropData","dragAxis","validateDrag","touchStartLongPress","mouseenter","mouseleave","mwlClick",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDraggable","","dragActiveClass","cal-drag-active",1,"cal-event",3,"ngStyle","ngClass","mwlCalendarTooltip","tooltipPlacement","tooltipEvent","tooltipTemplate","tooltipAppendToBody","tooltipDelay","dropData","dragAxis","validateDrag","touchStartLongPress","mouseenter","mouseleave","mwlClick"]],template:function(i,d){if(1&i&&e.YNc(0,qu,8,14,"ng-template",null,0,e.W1O)(2,Uu,0,0,"ng-template",1),2&i){const p=e.MAs(1);e.xp6(2),e.Q6J("ngTemplateOutlet",d.customTemplate||p)("ngTemplateOutletContext",e.rFY(2,zp,[d.day,d.openDay,d.locale,d.tooltipPlacement,d.highlightDay,d.unhighlightDay,d.eventClicked,d.tooltipTemplate,d.tooltipAppendToBody,d.tooltipDelay,d.trackByEventId,d.validateDrag]))}},dependencies:[ce.mk,ce.sg,ce.O5,ce.tP,ce.PC,ol,Ua,yi,_r,yl,Mi],encapsulation:2}),c})();const yg=(0,Ai.X$)("collapse",[(0,Ai.SB)("void",(0,Ai.oB)({height:0,overflow:"hidden","padding-top":0,"padding-bottom":0})),(0,Ai.SB)("*",(0,Ai.oB)({height:"*",overflow:"hidden","padding-top":"*","padding-bottom":"*"})),(0,Ai.eR)("* => void",(0,Ai.jt)("150ms ease-out")),(0,Ai.eR)("void => *",(0,Ai.jt)("150ms ease-in"))]);let xg=(()=>{class c{constructor(){this.isOpen=!1,this.eventClicked=new e.vpe,this.trackByEventId=ld,this.validateDrag=Al}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["mwl-calendar-open-day-events"]],inputs:{locale:"locale",isOpen:"isOpen",events:"events",customTemplate:"customTemplate",eventTitleTemplate:"eventTitleTemplate",eventActionsTemplate:"eventActionsTemplate",date:"date"},outputs:{eventClicked:"eventClicked"},decls:3,vars:8,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","cal-open-day-events","role","application",4,"ngIf"],["role","application",1,"cal-open-day-events"],["tabindex","-1","role","alert"],["tabindex","0","role","landmark"],["mwlDraggable","","dragActiveClass","cal-drag-active",3,"ngClass","cal-draggable","dropData","dragAxis","validateDrag","touchStartLongPress",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDraggable","","dragActiveClass","cal-drag-active",3,"ngClass","dropData","dragAxis","validateDrag","touchStartLongPress"],[1,"cal-event",3,"ngStyle"],["view","month","tabindex","0",3,"event","customTemplate","mwlClick","mwlKeydownEnter"],[3,"event","customTemplate"]],template:function(i,d){if(1&i&&e.YNc(0,Oa,1,1,"ng-template",null,0,e.W1O)(2,dn,0,0,"ng-template",1),2&i){const p=e.MAs(1);e.xp6(2),e.Q6J("ngTemplateOutlet",d.customTemplate||p)("ngTemplateOutletContext",e.qbA(2,Hu,d.events,d.eventClicked,d.isOpen,d.trackByEventId,d.validateDrag))}},dependencies:[ce.mk,ce.sg,ce.O5,ce.tP,ce.PC,ol,ad,xl,yi,Io,Mi],encapsulation:2,data:{animation:[yg]}}),c})(),ud=(()=>{class c{constructor(){this.columnHeaderClicked=new e.vpe,this.trackByWeekDayHeaderDate=wl}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["mwl-calendar-month-view-header"]],inputs:{days:"days",locale:"locale",customTemplate:"customTemplate"},outputs:{columnHeaderClicked:"columnHeaderClicked"},decls:3,vars:6,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","row",1,"cal-cell-row","cal-header"],["class","cal-cell","tabindex","0","role","columnheader",3,"cal-past","cal-today","cal-future","cal-weekend","ngClass","click",4,"ngFor","ngForOf","ngForTrackBy"],["tabindex","0","role","columnheader",1,"cal-cell",3,"ngClass","click"]],template:function(i,d){if(1&i&&e.YNc(0,hl,2,2,"ng-template",null,0,e.W1O)(2,zu,0,0,"ng-template",1),2&i){const p=e.MAs(1);e.xp6(2),e.Q6J("ngTemplateOutlet",d.customTemplate||p)("ngTemplateOutletContext",e.kEZ(2,Yu,d.days,d.locale,d.trackByWeekDayHeaderDate))}},dependencies:[ce.mk,ce.sg,ce.tP,_r],encapsulation:2}),c})(),kl=(()=>{class c{constructor(i,d,p,w){this.cdr=i,this.utils=d,this.dateAdapter=w,this.events=[],this.excludeDays=[],this.activeDayIsOpen=!1,this.tooltipPlacement="auto",this.tooltipAppendToBody=!0,this.tooltipDelay=null,this.beforeViewRender=new e.vpe,this.dayClicked=new e.vpe,this.eventClicked=new e.vpe,this.columnHeaderClicked=new e.vpe,this.eventTimesChanged=new e.vpe,this.trackByRowOffset=(k,I)=>this.view.days.slice(I,this.view.totalDaysVisibleInWeek).map(te=>te.date.toISOString()).join("-"),this.trackByDate=(k,I)=>I.date.toISOString(),this.locale=p}ngOnInit(){this.refresh&&(this.refreshSubscription=this.refresh.subscribe(()=>{this.refreshAll(),this.cdr.markForCheck()}))}ngOnChanges(i){const d=i.viewDate||i.excludeDays||i.weekendDays,p=i.viewDate||i.events||i.excludeDays||i.weekendDays;d&&this.refreshHeader(),i.events&&bl(this.events),p&&this.refreshBody(),(d||p)&&this.emitBeforeViewRender(),(i.activeDayIsOpen||i.viewDate||i.events||i.excludeDays||i.activeDay)&&this.checkActiveDayIsOpen()}ngOnDestroy(){this.refreshSubscription&&this.refreshSubscription.unsubscribe()}toggleDayHighlight(i,d){this.view.days.forEach(p=>{d&&p.events.indexOf(i)>-1?p.backgroundColor=i.color&&i.color.secondary||"#D1E8FF":delete p.backgroundColor})}eventDropped(i,d,p){if(i!==p){const w=this.dateAdapter.getYear(i.date),k=this.dateAdapter.getMonth(i.date),I=this.dateAdapter.getDate(i.date),te=this.dateAdapter.setDate(this.dateAdapter.setMonth(this.dateAdapter.setYear(d.start,w),k),I);let B;if(d.end){const re=this.dateAdapter.differenceInSeconds(te,d.start);B=this.dateAdapter.addSeconds(d.end,re)}this.eventTimesChanged.emit({event:d,newStart:te,newEnd:B,day:i,type:Sn.Drop})}}refreshHeader(){this.columnHeaders=this.utils.getWeekViewHeader({viewDate:this.viewDate,weekStartsOn:this.weekStartsOn,excluded:this.excludeDays,weekendDays:this.weekendDays}
1)}refreshBody(){this.view=this.utils.getMonthView({events:this.events,viewDate:this.viewDate,weekStartsOn:this.weekStartsOn,excluded:this.excludeDays,weekendDays:this.weekendDays})}checkActiveDayIsOpen(){if(!0===this.activeDayIsOpen){const i=this.activeDay||this.viewDate;this.openDay=this.view.days.find(p=>this.dateAdapter.isSameDay(p.date,i));const d=this.view.days.indexOf(this.openDay);this.openRowIndex=Math.floor(d/this.view.totalDaysVisibleInWeek)*this.view.totalDaysVisibleInWeek}else this.openRowIndex=null,this.openDay=null}refreshAll(){this.refreshHeader(),this.refreshBody(),this.emitBeforeViewRender(),this.checkActiveDayIsOpen()}emitBeforeViewRender(){this.columnHeaders&&this.view&&this.beforeViewRender.emit({header:this.columnHeaders,body:this.view.days,period:this.view.period})}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.sBO),e.Y36(Uo),e.Y36(e.soG),e.Y36(Di))},c.\u0275cmp=e.Xpm({type:c,selectors:[["mwl-calendar-month-view"]],inputs:{viewDate:"viewDate",events:"events",excludeDays:"excludeDays",activeDayIsOpen:"activeDayIsOpen",activeDay:"activeDay",refresh:"refresh",locale:"locale",tooltipPlacement:"tooltipPlacement",tooltipTemplate:"tooltipTemplate",tooltipAppendToBody:"tooltipAppendToBody",tooltipDelay:"tooltipDelay",weekStartsOn:"weekStartsOn",headerTemplate:"headerTemplate",cellTemplate:"cellTemplate",openDayEventsTemplate:"openDayEventsTemplate",eventTitleTemplate:"eventTitleTemplate",eventActionsTemplate:"eventActionsTemplate",weekendDays:"weekendDays"},outputs:{beforeViewRender:"beforeViewRender",dayClicked:"dayClicked",eventClicked:"eventClicked",columnHeaderClicked:"columnHeaderClicked",eventTimesChanged:"eventTimesChanged"},features:[e.TTD],decls:4,vars:5,consts:[["role","grid",1,"cal-month-view"],[3,"days","locale","customTemplate","columnHeaderClicked"],[1,"cal-days"],[4,"ngFor","ngForOf","ngForTrackBy"],["role","row",1,"cal-cell-row"],["role","gridcell","mwlDroppable","","dragOverClass","cal-drag-over",3,"ngClass","day","openDay","locale","tooltipPlacement","tooltipAppendToBody","tooltipTemplate","tooltipDelay","customTemplate","ngStyle","clickListenerDisabled","mwlClick","mwlKeydownEnter","highlightDay","unhighlightDay","drop","eventClicked",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDroppable","","dragOverClass","cal-drag-over",3,"locale","isOpen","events","date","customTemplate","eventTitleTemplate","eventActionsTemplate","eventClicked","drop"],["role","gridcell","mwlDroppable","","dragOverClass","cal-drag-over",3,"ngClass","day","openDay","locale","tooltipPlacement","tooltipAppendToBody","tooltipTemplate","tooltipDelay","customTemplate","ngStyle","clickListenerDisabled","mwlClick","mwlKeydownEnter","highlightDay","unhighlightDay","drop","eventClicked"]],template:function(i,d){1&i&&(e.TgZ(0,"div",0)(1,"mwl-calendar-month-view-header",1),e.NdJ("columnHeaderClicked",function(w){return d.columnHeaderClicked.emit(w)}),e.qZA(),e.TgZ(2,"div",2),e.YNc(3,vi,5,13,"div",3),e.qZA()()),2&i&&(e.xp6(),e.Q6J("days",d.columnHeaders)("locale",d.locale)("customTemplate",d.headerTemplate),e.xp6(2),e.Q6J("ngForOf",d.view.rowOffsets)("ngForTrackBy",d.trackByRowOffset))},dependencies:[ce.mk,ce.sg,ce.PC,sl,yi,Io,vg,xg,ud,ce.OU,Mi],encapsulation:2}),c})(),Ml=(()=>{class c{}return c.\u0275fac=function(i){return new(i||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({imports:[ce.ez,Ao,Ra,Ao]}),c})();class dd{constructor(_,i){this.dragContainerElement=_,this.startPosition=i.getBoundingClientRect()}validateDrag({x:_,y:i,snapDraggedEvents:d,dragAlreadyMoved:p,transform:w}){const k=Al({x:_,y:i})||p;if(d){const I=Object.assign({},this.startPosition,{left:this.startPosition.left+w.x,right:this.startPosition.right+w.x,top:this.startPosition.top+w.y,bottom:this.startPosition.bottom+w.y});if(k){const te=this.dragContainerElement.getBoundingClientRect(),B=te.top<I.top&&I.top<te.bottom,re=te.top<I.bottom&&I.bottom<te.bottom;return od(te,I)&&(B||re)}return!1}return k}}class fd{constructor(_,i,d){this.resizeContainerElement=_,this.minWidth=i,this.rtl=d}validateResize({rectangle:_,edges:i}){return this.rtl&&(typeof i.left<"u"?(_.left-=i.left,_.right+=i.left):typeof i.right<"u"&&(_.left+=i.right,_.right-=i.right),_.width=_.right-_.left),
1!(this.minWidth&&Math.ceil(_.width)<Math.ceil(this.minWidth))&&function sg(c,_){return od(c,_)&&function og(c,_){return Math.floor(c.top)<=Math.ceil(_.top)&&Math.floor(_.top)<=Math.ceil(c.bottom)&&Math.floor(c.top)<=Math.ceil(_.bottom)&&Math.floor(_.bottom)<=Math.ceil(c.bottom)}(c,_)}(this.resizeContainerElement.getBoundingClientRect(),_)}}let bg=(()=>{class c{constructor(){this.dayHeaderClicked=new e.vpe,this.eventDropped=new e.vpe,this.dragEnter=new e.vpe,this.trackByWeekDayHeaderDate=wl}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["mwl-calendar-week-view-header"]],inputs:{days:"days",locale:"locale",customTemplate:"customTemplate"},outputs:{dayHeaderClicked:"dayHeaderClicked",eventDropped:"eventDropped",dragEnter:"dragEnter"},decls:3,vars:9,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","row",1,"cal-day-headers"],["class","cal-header","mwlDroppable","","dragOverClass","cal-drag-over","tabindex","0","role","columnheader",3,"cal-past","cal-today","cal-future","cal-weekend","ngClass","mwlClick","drop","dragEnter",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDroppable","","dragOverClass","cal-drag-over","tabindex","0","role","columnheader",1,"cal-header",3,"ngClass","mwlClick","drop","dragEnter"]],template:function(i,d){if(1&i&&e.YNc(0,$u,2,2,"ng-template",null,0,e.W1O)(2,Ju,0,0,"ng-template",1),2&i){const p=e.MAs(1);e.xp6(2),e.Q6J("ngTemplateOutlet",d.customTemplate||p)("ngTemplateOutletContext",e.HTZ(2,ju,d.days,d.locale,d.dayHeaderClicked,d.eventDropped,d.dragEnter,d.trackByWeekDayHeaderDate))}},dependencies:[ce.mk,ce.sg,ce.tP,sl,yi,_r],encapsulation:2}),c})(),wg=(()=>{class c{constructor(){this.eventClicked=new e.vpe}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["mwl-calendar-week-view-event"]],inputs:{locale:"locale",weekEvent:"weekEvent",tooltipPlacement:"tooltipPlacement",tooltipAppendToBody:"tooltipAppendToBody",tooltipDisabled:"tooltipDisabled",tooltipDelay:"tooltipDelay",customTemplate:"customTemplate",eventTitleTemplate:"eventTitleTemplate",eventActionsTemplate:"eventActionsTemplate",tooltipTemplate:"tooltipTemplate",column:"column",daysInWeek:"daysInWeek"},outputs:{eventClicked:"eventClicked"},decls:3,vars:12,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["tabindex","0","role","application",1,"cal-event",3,"ngStyle","mwlCalendarTooltip","tooltipPlacement","tooltipEvent","tooltipTemplate","tooltipAppendToBody","tooltipDelay","mwlClick","mwlKeydownEnter"],[3,"event","customTemplate"],[3,"event","customTemplate","view"]],template:function(i,d){if(1&i&&e.YNc(0,Bu,6,27,"ng-template",null,0,e.W1O)(2,Yp,0,0,"ng-template",1),2&i){const p=e.MAs(1);e.xp6(2),e.Q6J("ngTemplateOutlet",d.customTemplate||p)("ngTemplateOutletContext",e.rFY(2,Lo,[d.weekEvent,d.tooltipPlacement,d.eventClicked,d.tooltipTemplate,d.tooltipAppendToBody,d.tooltipDisabled,d.tooltipDelay,d.column,d.daysInWeek]))}},dependencies:[ce.tP,ce.PC,ad,xl,Ua,yi,Io,yl,Mi],encapsulation:2}),c})(),Cg=(()=>{class c{}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["mwl-calendar-week-view-hour-segment"]],inputs:{segment:"segment",segmentHeight:"segmentHeight",locale:"locale",isTimeLabel:"isTimeLabel",daysInWeek:"daysInWeek",customTemplate:"customTemplate"},decls:3,vars:8,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-hour-segment",3,"ngClass"],["class","cal-time",4,"ngIf"],[1,"cal-time"]],template:function(i,d){if(1&i&&e.YNc(0,ln,3,13,"ng-template",null,0,e.W1O)(2,Ia,0,0,"ng-template",1),2&i){const p=e.MAs(1);e.xp6(2),e.Q6J("ngTemplateOutlet",d.customTemplate||p)("ngTemplateOutletContext",e.qbA(2,Wu,d.segment,d.locale,d.segmentHeight,d.isTimeLabel,d.daysInWeek))}},dependencies:[ce.mk,ce.O5,ce.tP,_r,Mi],encapsulation:2}),c})(),Tg=(()=>{class c{constructor(i,d){this.dateAdapter=i,this.zone=d,this.columnDate$=new tn.X(void 0),this.marker$=this.zone.onStable.pipe((0,xe.w)(()=>(0,pn.F)(6e4)),(0,Xe.O)(0),function pi(c,_){return(0,Vn.m)(_)?(0,xe.w)(()=>c,_):(0,xe.w)(()=>c)}(this.columnDate$),(0,nn.U)(p=>{const w=this.dateAdapter.setMinutes(this.dateAdapter.setHours(p,this.dayStartHour),this.dayStartMinute),k=this.dateAdapter.setMinutes(this.dateAdapter.setHours(p,this.dayEndHour),this.dayEndMinute),I=this.hourSegments*this.hourSegmentHeight/(this.hourDuration||60),te=new Date;return{isVisible:this.dateAdapter.isSameDay(p,te)&&te>=w&&te<=k,top:this.dateAdapter.differenceInMinutes(te,w)*I}}))}
1ngOnChanges(i){i.columnDate&&this.columnDate$.next(i.columnDate.currentValue)}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(Di),e.Y36(e.R0b))},c.\u0275cmp=e.Xpm({type:c,selectors:[["mwl-calendar-week-view-current-time-marker"]],inputs:{columnDate:"columnDate",dayStartHour:"dayStartHour",dayStartMinute:"dayStartMinute",dayEndHour:"dayEndHour",dayEndMinute:"dayEndMinute",hourSegments:"hourSegments",hourDuration:"hourDuration",hourSegmentHeight:"hourSegmentHeight",customTemplate:"customTemplate"},features:[e.TTD],decls:5,vars:14,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","cal-current-time-marker",3,"top",4,"ngIf"],[1,"cal-current-time-marker"]],template:function(i,d){if(1&i&&(e.YNc(0,jp,1,1,"ng-template",null,0,e.W1O)(2,gl,0,0,"ng-template",1),e.ALo(3,"async"),e.ALo(4,"async")),2&i){const p=e.MAs(1);let w;e.xp6(2),e.Q6J("ngTemplateOutlet",d.customTemplate||p)("ngTemplateOutletContext",e.Hh0(6,Xu,d.columnDate,d.dayStartHour,d.dayStartMinute,d.dayEndHour,d.dayEndMinute,null==(w=e.lcZ(3,2,d.marker$))?null:w.isVisible,null==(w=e.lcZ(4,4,d.marker$))?null:w.top))}},dependencies:[ce.O5,ce.tP,ce.Ov],encapsulation:2}),c})(),hd=(()=>{class c{constructor(i,d,p,w,k){this.cdr=i,this.utils=d,this.dateAdapter=w,this.element=k,this.events=[],this.excludeDays=[],this.tooltipPlacement="auto",this.tooltipAppendToBody=!0,this.tooltipDelay=null,this.precision="days",this.snapDraggedEvents=!0,this.hourSegments=2,this.hourSegmentHeight=30,this.minimumEventHeight=30,this.dayStartHour=0,this.dayStartMinute=0,this.dayEndHour=23,this.dayEndMinute=59,this.dayHeaderClicked=new e.vpe,this.eventClicked=new e.vpe,this.eventTimesChanged=new e.vpe,this.beforeViewRender=new e.vpe,this.hourSegmentClicked=new e.vpe,this.allDayEventResizes=new Map,this.timeEventResizes=new Map,this.eventDragEnterByType={allDay:0,time:0},this.dragActive=!1,this.dragAlreadyMoved=!1,this.calendarId=Symbol("angular calendar week view id"),this.rtl=!1,this.trackByWeekDayHeaderDate=wl,this.trackByHourSegment=lg,this.trackByHour=cg,this.trackByWeekAllDayEvent=ug,this.trackByWeekTimeEvent=dg,this.trackByHourColumn=(I,te)=>te.hours[0]?te.hours[0].segments[0].date.toISOString():te,this.trackById=(I,te)=>te.id,this.locale=p}ngOnInit(){this.refresh&&(this.refreshSubscription=this.refresh.subscribe(()=>{this.refreshAll(),this.cdr.markForCheck()}))}ngOnChanges(i){const d=i.viewDate||i.excludeDays||i.weekendDays||i.daysInWeek||i.weekStartsOn,p=i.viewDate||i.dayStartHour||i.dayStartMinute||i.dayEndHour||i.dayEndMinute||i.hourSegments||i.hourDuration||i.weekStartsOn||i.weekendDays||i.excludeDays||i.hourSegmentHeight||i.events||i.daysInWeek||i.minimumEventHeight;d&&this.refreshHeader(),i.events&&bl(this.events),p&&this.refreshBody(),(d||p)&&this.emitBeforeViewRender()}ngOnDestroy(){this.refreshSubscription&&this.refreshSubscription.unsubscribe()}ngAfterViewInit(){this.rtl=typeof window<"u"&&"rtl"===getComputedStyle(this.element.nativeElement).direction,this.cdr.detectChanges()}timeEventResizeStarted(i,d,p){this.timeEventResizes.set(d.event,p),this.resizeStarted(i,d)}timeEventResizing(i,d){this.timeEventResizes.set(i.event,d);const p=new Map,w=[...this.events];
1this.timeEventResizes.forEach((k,I)=>{const te=this.getTimeEventResizedDates(I,k),B={...I,...te};p.set(B,I);const re=w.indexOf(I);w[re]=B}),this.restoreOriginalEvents(w,p,!0)}timeEventResizeEnded(i){this.view=this.getWeekView(this.events);const d=this.timeEventResizes.get(i.event);if(d){this.timeEventResizes.delete(i.event);const p=this.getTimeEventResizedDates(i.event,d);this.eventTimesChanged.emit({newStart:p.start,newEnd:p.end,event:i.event,type:Sn.Resize})}}allDayEventResizeStarted(i,d,p){this.allDayEventResizes.set(d,{originalOffset:d.offset,originalSpan:d.span,edge:typeof p.edges.left<"u"?"left":"right"}),this.resizeStarted(i,d,this.getDayColumnWidth(i))}allDayEventResizing(i,d,p){const w=this.allDayEventResizes.get(i),k=this.rtl?-1:1;if(typeof d.edges.left<"u"){const I=Math.round(+d.edges.left/p)*k;i.offset=w.originalOffset+I,i.span=w.originalSpan-I}else if(typeof d.edges.right<"u"){const I=Math.round(+d.edges.right/p)*k;i.span=w.originalSpan+I}}allDayEventResizeEnded(i){const d=this.allDayEventResizes.get(i);if(d){const p="left"===d.edge;let w;w=p?i.offset-d.originalOffset:i.span-d.originalSpan,i.offset=d.originalOffset,i.span=d.originalSpan;const k=this.getAllDayEventResizedDates(i.event,w,p);this.eventTimesChanged.emit({newStart:k.start,newEnd:k.end,event:i.event,type:Sn.Resize}),this.allDayEventResizes.delete(i)}}getDayColumnWidth(i){return Math.floor(i.offsetWidth/this.days.length)}dateDragEnter(i){this.lastDragEnterDate=i}eventDropped(i,d,p){(function Sl(c,_,i,d){return c.dropData&&c.dropData.event&&(c.dropData.calendarId!==d||c.dropData.event.allDay&&!i||!c.dropData.event.allDay&&i)})(i,0,p,this.calendarId)&&this.lastDragEnterDate.getTime()===d.getTime()&&(!this.snapDraggedEvents||i.dropData.event!==this.lastDraggedEvent)&&this.eventTimesChanged.emit({type:Sn.Drop,event:i.dropData.event,newStart:d,allDay:p}),this.lastDraggedEvent=null}dragEnter(i){this.eventDragEnterByType[i]++}dragLeave(i){this.eventDragEnterByType[i]--}dragStarted(i,d,p,w){this.dayColumnWidth=this.getDayColumnWidth(i);const k=new dd(i,d);this.validateDrag=({x:I,y:te,transform:B})=>{const re=0===this.allDayEventResizes.size&&0===this.timeEventResizes.size&&k.validateDrag({x:I,y:te,snapDraggedEvents:this.snapDraggedEvents,dragAlreadyMoved:this.dragAlreadyMoved,transform:B});if(re&&this.validateEventTimesChanged){const ge=this.getDragMovedEventTimes(p,{x:I,y:te},this.dayColumnWidth,w);return this.validateEventTimesChanged({type:Sn.Drag,event:p.event,newStart:ge.start,newEnd:ge.end})}return re},this.dragActive=!0,this.dragAlreadyMoved=!1,this.lastDraggedEvent=null,this.eventDragEnterByType={allDay:0,time:0},!this.snapDraggedEvents&&w&&this.view.hourColumns.forEach(I=>{const te=I.events.find(B=>B.event===p.event&&B!==p);te&&(te.width=0,te.height=0)}),this.cdr.markForCheck()}dragMove(i,d){const p=this.getDragMovedEventTimes(i,d,this.dayColumnWidth,!0),w=i.event,k={...w,...p},I=this.events.map(te=>te===w?k:te);this.restoreOriginalEvents(I,new Map([[k,w]]),this.snapDraggedEvents),this.dragAlreadyMoved=!0}allDayEventDragMove(){this.dragAlreadyMoved=!0}dragEnded(i,d,p,w=!1){this.view=this.getWeekView(this.events),this.dragActive=!1,this.validateDrag=null;const{start:k,end:I}=this.getDragMovedEventTimes(i,d,p,w);(this.snapDraggedEvents||this.eventDragEnterByType[w?"time":"allDay"]>0)&&function Tl(c,_,i){const d=_||c;return i.start<=c&&c<=i.end||i.start<=d&&d<=i.end}(k,I,this.view.period)&&(this.lastDraggedEvent=i.event,this.eventTimesChanged.emit({newStart:k,newEnd:I,event:i.event,type:Sn.Drag,allDay:!w}))}refreshHeader(){this.days=this.utils.getWeekViewHeader({viewDate:this.viewDate,weekStartsOn:this.weekStartsOn,excluded:this.excludeDays,weekendDays:this.weekendDays,...mr(this.dateAdapter,this.viewDate,this.weekStartsOn,this.excludeDays,this.daysInWeek)})}refreshBody(){this.view=this.getWeekView(this.events)}refreshAll(){this.refreshHeader(),this.refreshBody(),this.emitBeforeViewRender()}emitBeforeViewRender(){this.days&&this.view&&this.beforeViewRender.emit({header:this.days,...this.view})}getWeekView(i){return this.utils.getWeekView({events:i,viewDate:this.viewDate,weekStartsOn:this.weekStartsOn,excluded:this.excludeDays,precision:this.precision,absolutePositionedEvents:!0,hourSegments:this.hourSegments,hourDuration:this.hourDuration,dayStart:{hour:this.dayStartHour,minute:this.dayStartMinute},dayEnd:{hour:this.dayEndHour,minute:this.dayEndMinute},segmentHeight:this.hourSegmentHeight,weekendDays:this.weekendDays,minimumEventHeight:this.minimumEventHeight,...mr(this.dateAdapter,this.viewDate,this.weekStartsOn,this.excludeDays,this.daysInWeek)})}
1getDragMovedEventTimes(i,d,p,w){const k=sd(d.x,p)/p*(this.rtl?-1:1),I=w?Cl(d.y,this.hourSegments,this.hourSegmentHeight,this.eventSnapSize,this.hourDuration):0,te=this.dateAdapter.addMinutes(ti(this.dateAdapter,i.event.start,k,this.excludeDays),I);let B;return i.event.end&&(B=this.dateAdapter.addMinutes(ti(this.dateAdapter,i.event.end,k,this.excludeDays),I)),{start:te,end:B}}restoreOriginalEvents(i,d,p=!0){const w=this.view;p&&(this.view=this.getWeekView(i));const k=i.filter(I=>d.has(I));this.view.hourColumns.forEach((I,te)=>{w.hourColumns[te].hours.forEach((B,re)=>{B.segments.forEach((ge,Se)=>{I.hours[re].segments[Se].cssClass=ge.cssClass})}),k.forEach(B=>{const re=d.get(B),ge=I.events.find(Se=>Se.event===(p?B:re));ge?(ge.event=re,ge.tempEvent=B,p||(ge.height=0,ge.width=0)):I.events.push({event:re,left:0,top:0,height:0,width:0,startsBeforeDay:!1,endsAfterDay:!1,tempEvent:B})})}),d.clear()}getTimeEventResizedDates(i,d){const p={start:i.start,end:cd(this.dateAdapter,i,this.minimumEventHeight)},{end:w,...k}=i,I={start:this.dateAdapter.addMinutes(p.end,-1*this.minimumEventHeight),end:cd(this.dateAdapter,k,this.minimumEventHeight)},te=this.rtl?-1:1;if(typeof d.edges.left<"u"){const B=Math.round(+d.edges.left/this.dayColumnWidth)*te,re=ti(this.dateAdapter,p.start,B,this.excludeDays);p.start=re<I.start?re:I.start}else if(typeof d.edges.right<"u"){const B=Math.round(+d.edges.right/this.dayColumnWidth)*te,re=ti(this.dateAdapter,p.end,B,this.excludeDays);p.end=re>I.end?re:I.end}if(typeof d.edges.top<"u"){const B=Cl(d.edges.top,this.hourSegments,this.hourSegmentHeight,this.eventSnapSize,this.hourDuration),re=this.dateAdapter.addMinutes(p.start,B);p.start=re<I.start?re:I.start}else if(typeof d.edges.bottom<"u"){const B=Cl(d.edges.bottom,this.hourSegments,this.hourSegmentHeight,this.eventSnapSize,this.hourDuration),re=this.dateAdapter.addMinutes(p.end,B);p.end=re>I.end?re:I.end}return p}resizeStarted(i,d,p){this.dayColumnWidth=this.getDayColumnWidth(i);const w=new fd(i,p,this.rtl);this.validateResize=({rectangle:k,edges:I})=>{const te=w.validateResize({rectangle:{...k},edges:I});if(te&&this.validateEventTimesChanged){let B;if(p){const re=this.rtl?-1:1;if(typeof I.left<"u"){const ge=Math.round(+I.left/p)*re;B=this.getAllDayEventResizedDates(d.event,ge,!this.rtl)}else{const ge=Math.round(+I.right/p)*re;B=this.getAllDayEventResizedDates(d.event,ge,this.rtl)}}else B=this.getTimeEventResizedDates(d.event,{rectangle:k,edges:I});return this.validateEventTimesChanged({type:Sn.Resize,event:d.event,newStart:B.start,newEnd:B.end})}return te},this.cdr.markForCheck()}getAllDayEventResizedDates(i,d,p){let w=i.start,k=i.end||i.start;return p?w=ti(this.dateAdapter,w,d,this.excludeDays):k=ti(this.dateAdapter,k,d,this.excludeDays),{start:w,end:k}}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.sBO),e.Y36(Uo),e.Y36(e.soG),e.Y36(Di),e.Y36(e.SBq))},c.\u0275cmp=e.Xpm({type:c,selectors:[["mwl-calendar-week-view"]],inputs:{viewDate:"viewDate",events:"events",excludeDays:"excludeDays",refresh:"refresh",locale:"locale",tooltipPlacement:"tooltipPlacement",tooltipTemplate:"tooltipTemplate",tooltipAppendToBody:"tooltipAppendToBody",tooltipDelay:"tooltipDelay",weekStartsOn:"weekStartsOn",headerTemplate:"headerTemplate",eventTemplate:"eventTemplate",eventTitleTemplate:"eventTitleTemplate",eventActionsTemplate:"eventActionsTemplate",precision:"precision",weekendDays:"weekendDays",snapDraggedEvents:"snapDraggedEvents",hourSegments:"hourSegments",hourDuration:"hourDuration",hourSegmentHeight:"hourSegmentHeight",minimumEventHeight:"minimumEventHeight",dayStartHour:"dayStartHour",dayStartMinute:"dayStartMinute",dayEndHour:"dayEndHour",dayEndMinute:"dayEndMinute",hourSegmentTemplate:"hourSegmentTemplate",eventSnapSize:"eventSnapSize",allDayEventsLabelTemplate:"allDayEventsLabelTemplate",daysInWeek:"daysInWeek",currentTimeMarkerTemplate:"currentTimeMarkerTemplate",validateEventTimesChanged:"validateEventTimesChanged",resizeCursors:"resizeCursors"},outputs:{dayHeaderClicked:"dayHeaderClicked",eventClicked:"eventClicked",eventTimesChanged:"eventTimesChanged",beforeViewRender:"beforeViewRender",hourSegmentClicked:"hourSegmentClicked"},features:[e.TTD],decls:8,vars:9,consts:[["role","grid",1,"cal-week-view"],[3,"days","locale","customTemplate","dayHeaderClicked","eventDropped","dragEnter"],["class","cal-all-day-events","mwlDroppable","",3,"dragEnter","dragLeave",4,"ngIf"],["mwlDroppable","",1,"cal
1-time-events",3,"dragEnter","dragLeave"],["class","cal-time-label-column",4,"ngIf"],[1,"cal-day-columns"],["dayColumns",""],["class","cal-day-column",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDroppable","",1,"cal-all-day-events",3,"dragEnter","dragLeave"],["allDayEventsContainer",""],[1,"cal-time-label-column",3,"ngTemplateOutlet"],["class","cal-day-column","mwlDroppable","","dragOverClass","cal-drag-over",3,"drop","dragEnter",4,"ngFor","ngForOf","ngForTrackBy"],["class","cal-events-row",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDroppable","","dragOverClass","cal-drag-over",1,"cal-day-column",3,"drop","dragEnter"],[1,"cal-events-row"],["eventRowContainer",""],["class","cal-event-container","mwlResizable","","mwlDraggable","","dragActiveClass","cal-drag-active",3,"cal-draggable","cal-starts-within-week","cal-ends-within-week","ngClass","width","marginLeft","marginRight","resizeCursors","resizeSnapGrid","validateResize","dropData","dragAxis","dragSnapGrid","validateDrag","touchStartLongPress","resizeStart","resizing","resizeEnd","dragStart","dragging","dragEnd",4,"ngFor","ngForOf","ngForTrackBy"],["mwlResizable","","mwlDraggable","","dragActiveClass","cal-drag-active",1,"cal-event-container",3,"ngClass","resizeCursors","resizeSnapGrid","validateResize","dropData","dragAxis","dragSnapGrid","validateDrag","touchStartLongPress","resizeStart","resizing","resizeEnd","dragStart","dragging","dragEnd"],["event",""],["class","cal-resize-handle cal-resize-handle-before-start","mwlResizeHandle","",3,"resizeEdges",4,"ngIf"],[3,"locale","weekEvent","tooltipPlacement","tooltipTemplate","tooltipAppendToBody","tooltipDelay","customTemplate","eventTitleTemplate","eventActionsTemplate","daysInWeek","eventClicked"],["class","cal-resize-handle cal-resize-handle-after-end","mwlResizeHandle","",3,"resizeEdges",4,"ngIf"],["mwlResizeHandle","",1,"cal-resize-handle","cal-resize-handle-before-start",3,"resizeEdges"],["mwlResizeHandle","",1,"cal-resize-handle","cal-resize-handle-after-end",3,"resizeEdges"],[1,"cal-time-label-column"],["class","cal-hour",3,"cal-hour-odd",4,"ngFor","ngForOf","ngForTrackBy"],[1,"cal-hour"],[3,"height","segment","segmentHeight","locale","customTemplate","isTimeLabel","daysInWeek",4,"ngFor","ngForOf","ngForTrackBy"],[3,"segment","segmentHeight","locale","customTemplate","isTimeLabel","daysInWeek"],[1,"cal-day-column"],[3,"columnDate","dayStartHour","dayStartMinute","dayEndHour","dayEndMinute","hourSegments","hourDuration","hourSegmentHeight","customTemplate"],[1,"cal-events-container"],["class","cal-event-container","mwlResizable","","mwlDraggable","","dragActiveClass","cal-drag-active",3,"cal-draggable","cal-starts-within-day","cal-ends-within-day","ngClass","hidden","top","height","left","width","resizeCursors","resizeSnapGrid","validateResize","allowNegativeResizes","dropData","dragAxis","dragSnapGrid","touchStartLongPress","ghostDragEnabled","ghostElementTemplate","validateDrag","resizeStart","resizing","resizeEnd","dragStart","dragging","dragEnd",4,"ngFor","ngForOf","ngForTrackBy"],["mwlResizable","","mwlDraggable","","dragActiveClass","cal-drag-active",1,"cal-event-container",3,"ngClass","hidden","resizeCursors","resizeSnapGrid","validateResize","allowNegativeResizes","dropData","dragAxis","dragSnapGrid","touchStartLongPress","ghostDragEnabled","ghostElementTemplate","validateDrag","resizeStart","resizing","resizeEnd","dragStart","dragging","dragEnd"],[3,"ngTemplateOutlet"],["weekEventTemplate",""],[3,"locale","weekEvent","tooltipPlacement","tooltipTemplate","tooltipAppendToBody","tooltipDisabled","tooltipDelay","customTemplate","eventTitleTemplate","eventActionsTemplate","column","daysInWeek","eventClicked"],["mwlDroppable","","dragActiveClass","cal-drag-active",3,"height","segment","segmentHeight","locale","customTemplate","daysInWeek","clickListenerDisabled","dragOverClass","isTimeLabel","mwlClick","drop","dragEnter",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDroppable","","dragActiveClass","cal-drag-active",3,"segment","segmentHeight","locale","customTemplate","daysInWeek","clickListenerDisabled","dragOverClass","isTimeLabel","mwlClick","drop","dragEnter"]],template:function(i,d){1&i&&(e.TgZ(0,"div",0)(1,"mwl-calendar-week-view-header",1),e.NdJ("dayHeaderClicked",function(w){return d.dayHeaderClicked.emit
1(w)})("eventDropped",function(w){return d.eventDropped({dropData:w},w.newStart,!0)})("dragEnter",function(w){return d.dateDragEnter(w.date)}),e.qZA(),e.YNc(2,Fa,6,5,"div",2),e.TgZ(3,"div",3),e.NdJ("dragEnter",function(){return d.dragEnter("time")})("dragLeave",function(){return d.dragLeave("time")}),e.YNc(4,Qp,2,2,"div",4),e.TgZ(5,"div",5,6),e.YNc(7,rg,5,13,"div",7),e.qZA()()()),2&i&&(e.xp6(),e.Q6J("days",d.days)("locale",d.locale)("customTemplate",d.headerTemplate),e.xp6(),e.Q6J("ngIf",d.view.allDayEventRows.length>0),e.xp6(2),e.Q6J("ngIf",d.view.hourColumns.length>0&&1!==d.daysInWeek),e.xp6(),e.ekj("cal-resize-active",d.timeEventResizes.size>0),e.xp6(2),e.Q6J("ngForOf",d.view.hourColumns)("ngForTrackBy",d.trackByHourColumn))},dependencies:[ce.mk,ce.sg,ce.O5,ce.tP,Iu,Ln,ol,sl,yi,bg,wg,Cg,Tg],encapsulation:2}),c})(),Dl=(()=>{class c{}return c.\u0275fac=function(i){return new(i||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({imports:[ce.ez,Fu,Ao,Ra,Fu,Ao]}),c})(),Sg=(()=>{class c{constructor(){this.events=[],this.hourSegments=2,this.hourSegmentHeight=30,this.minimumEventHeight=30,this.dayStartHour=0,this.dayStartMinute=0,this.dayEndHour=23,this.dayEndMinute=59,this.tooltipPlacement="auto",this.tooltipAppendToBody=!0,this.tooltipDelay=null,this.snapDraggedEvents=!0,this.eventClicked=new e.vpe,this.hourSegmentClicked=new e.vpe,this.eventTimesChanged=new e.vpe,this.beforeViewRender=new e.vpe}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["mwl-calendar-day-view"]],inputs:{viewDate:"viewDate",events:"events",hourSegments:"hourSegments",hourSegmentHeight:"hourSegmentHeight",hourDuration:"hourDuration",minimumEventHeight:"minimumEventHeight",dayStartHour:"dayStartHour",dayStartMinute:"dayStartMinute",dayEndHour:"dayEndHour",dayEndMinute:"dayEndMinute",refresh:"refresh",locale:"locale",eventSnapSize:"eventSnapSize",tooltipPlacement:"tooltipPlacement",tooltipTemplate:"tooltipTemplate",tooltipAppendToBody:"tooltipAppendToBody",tooltipDelay:"tooltipDelay",hourSegmentTemplate:"hourSegmentTemplate",eventTemplate:"eventTemplate",eventTitleTemplate:"eventTitleTemplate",eventActionsTemplate:"eventActionsTemplate",snapDraggedEvents:"snapDraggedEvents",allDayEventsLabelTemplate:"allDayEventsLabelTemplate",currentTimeMarkerTemplate:"currentTimeMarkerTemplate",validateEventTimesChanged:"validateEventTimesChanged",resizeCursors:"resizeCursors"},outputs:{eventClicked:"eventClicked",hourSegmentClicked:"hourSegmentClicked",eventTimesChanged:"eventTimesChanged",beforeViewRender:"beforeViewRender"},decls:1,vars:27,consts:[[1,"cal-day-view",3,"daysInWeek","viewDate","events","hourSegments","hourDuration","hourSegmentHeight","minimumEventHeight","dayStartHour","dayStartMinute","dayEndHour","dayEndMinute","refresh","locale","eventSnapSize","tooltipPlacement","tooltipTemplate","tooltipAppendToBody","tooltipDelay","resizeCursors","hourSegmentTemplate","eventTemplate","eventTitleTemplate","eventActionsTemplate","snapDraggedEvents","allDayEventsLabelTemplate","currentTimeMarkerTemplate","validateEventTimesChanged","eventClicked","hourSegmentClicked","eventTimesChanged","beforeViewRender"]],template:function(i,d){1&i&&(e.TgZ(0,"mwl-calendar-week-view",0),e.NdJ("eventClicked",function(w){return d.eventClicked.emit(w)})("hourSegmentClicked",function(w){return d.hourSegmentClicked.emit(w)})("eventTimesChanged",function(w){return d.eventTimesChanged.emit(w)})("beforeViewRender",function(w){return d.beforeViewRender.emit(w)}),e.qZA()),2&i&&e.Q6J("daysInWeek",1)("viewDate",d.viewDate)("events",d.events)("hourSegments",d.hourSegments)("hourDuration",d.hourDuration)("hourSegmentHeight",d.hourSegmentHeight)("minimumEventHeight",d.minimumEventHeight)("dayStartHour",d.dayStartHour)("dayStartMinute",d.dayStartMinute)("dayEndHour",d.dayEndHour)("dayEndMinute",d.dayEndMinute)("refresh",d.refresh)("locale",d.locale)("eventSnapSize",d.eventSnapSize)("tooltipPlacement",d.tooltipPlacement)("tooltipTemplate",d.tooltipTemplate)("tooltipAppendToBody",d.tooltipAppendToBody)("tooltipDelay",d.tooltipDelay)("resizeCursors",d.resizeCursors)("hourSegmentTemplate",d.hourSegmentTemplate)("eventTemplate",d.eventTemplate)("eventTitleTemplate",d.eventTitleTemplate)("eventActionsTemplate",d.eventActionsTemplate)("snapDraggedEvents",d.snapDraggedEvents)("allDayEventsLabelTemplate",d.allDayEventsLabelTemplate)("currentTimeMarkerTemplate",d.currentTimeMarkerTemplate)("validateEventTimesChanged",d.validateEventTimesChanged)},dependencies:[hd],encapsulation:2}),c})(),pd=(()=>{class c{}return c.\u0275fac=function(i){return new(i||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({imports:[ce.ez,Ra,Dl]}),c})(),gd=(()=>{class c{static forRoot(i,d={}){return{ngModule:c,providers:[i,d.eventTitleFormatter||qa,d.dateFormatter||qo,d.utils||Uo,d.a11y||Fo]}}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({imports:[Ra,Ml,Dl,pd,Ra,Ml,Dl,pd]}),c})();
vendor: 5,043 bytes, line 1
1var Zl=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],Vr={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(c){return typeof console<"u"&&console.warn(c)},getWeek:function(c){var _=new Date(c.getTime());_.setHours(0,0,0,0),_.setDate(_.getDate()+3-(_.getDay()+6)%7);var i=new Date(_.getFullYear(),0,4);return 1+Math.round(((_.getTime()-i.getTime())/864e5-3+(i.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},El={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(c){var _=c%100;if(_>3&&_<21)return"th";switch(_%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1};const Pl=El;var An=function(c,_){return void 0===_&&(_=2),("000"+c).slice(-1*_)},Jn=function(c){return!0===c?1:0};function md(c,_){var i;return function(){var d=this,p=arguments;clearTimeout(i),i=setTimeout(function(){return c.apply(d,p)},_)}}var Ll=function(c){return c instanceof Array?c:[c]};function xn(c,_,i){if(!0===i)return c.classList.add(_);c.classList.remove(_)}function Ct(c,_,i){var d=window.document.createElement(c);return i=i||"",d.className=_=_||"",void 0!==i&&(d.textContent=i),d}function Ro(c){for(;c.firstChild;)c.removeChild(c.firstChild)}function _d(c,_){return _(c)?c:c.parentNode?_d(c.parentNode,_):void 0}function Go(c,_){var i=Ct("div","numInputWrapper"),d=Ct("input","numInput "+c),p=Ct("span","arrowUp"),w=Ct("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?d.type="number":(d.type="text",d.pattern="\\d*"),void 0!==_)for(var k in _)d.setAttribute(k,_[k]);return i.appendChild(d),i.appendChild(p),i.appendChild(w),i}function Nn(c){try{return"function"==typeof c.composedPath?c.composedPath()[0]:c.target}catch{return c.target}}var Nl=function(){},Ho=function(c,_,i){return i.months[_?"shorthand":"longhand"][c]},Ag={D:Nl,F:function(c,_,i){c.setMonth(i.months.longhand.indexOf(_))},G:function(c,_){c.setHours((c.getHours()>=12?12:0)+parseFloat(_))},H:function(c,_){c.setHours(parseFloat(_))},J:function(c,_){c.setDate(parseFloat(_))},K:function(c,_,i){c.setHours(c.getHours()%12+12*Jn(new RegExp(i.amPM[1],"i").test(_)))},M:function(c,_,i){c.setMonth(i.months.shorthand.indexOf(_))},S:function(c,_){c.setSeconds(parseFloat(_))},U:function(c,_){return new Date(1e3*parseFloat(_))},W:function(c,_,i){var d=parseInt(_),p=new Date(c.getFullYear(),0,2+7*(d-1),0,0,0,0);return p.setDate(p.getDate()-p.getDay()+i.firstDayOfWeek),p},Y:function(c,_){c.setFullYear(parseFloat(_))},Z:function(c,_){return new Date(_)},d:function(c,_){c.setDate(parseFloat(_))},h:function(c,_){c.setHours((c.getHours()>=12?12:0)+parseFloat(_))},i:function(c,_){c.setMinutes(parseFloat(_))},j:function(c,_){c.setDate(parseFloat(_))},l:Nl,m:function(c,_){c.setMonth(parseFloat(_)-1)},n:function(c,_){c.setMonth(parseFloat(_)-1)},s:function(c,_){c.setSeconds(parseFloat(_))},u:function(c,_){return new Date(parseFloat(_))},w:Nl,y:function(c,_){c.setFullYear(2e3+parseFloat(_))}},vr={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"
1(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},Ga={Z:function(c){return c.toISOString()},D:function(c,_,i){return _.weekdays.shorthand[Ga.w(c,_,i)]},F:function(c,_,i){return Ho(Ga.n(c,_,i)-1,!1,_)},G:function(c,_,i){return An(Ga.h(c,_,i))},H:function(c){return An(c.getHours())},J:function(c,_){return void 0!==_.ordinal?c.getDate()+_.ordinal(c.getDate()):c.getDate()},K:function(c,_){return _.amPM[Jn(c.getHours()>11)]},M:function(c,_){return Ho(c.getMonth(),!0,_)},S:function(c){return An(c.getSeconds())},U:function(c){return c.getTime()/1e3},W:function(c,_,i){return i.getWeek(c)},Y:function(c){return An(c.getFullYear(),4)},d:function(c){return An(c.getDate())},h:function(c){return c.getHours()%12?c.getHours()%12:12},i:function(c){return An(c.getMinutes())},j:function(c){return c.getDate()},l:function(c,_){return _.weekdays.longhand[c.getDay()]},m:function(c){return An(c.getMonth()+1)},n:function(c){return c.getMonth()+1},s:function(c){return c.getSeconds()},u:function(c){return c.getTime()},w:function(c){return c.getDay()},y:function(c){return String(c.getFullYear()).substring(2)}},Ol=function(c){var _=c.config,i=void 0===_?Vr:_,d=c.l10n,p=void 0===d?El:d,w=c.isMobile,k=void 0!==w&&w;return function(I,te,B){var re=B||p;return void 0===i.formatDate||k?te.split("").map(function(ge,Se,he){return Ga[ge]&&"\\"!==he[Se-1]?Ga[ge](I,re,i):"\\"!==ge?ge:""}).join(""):i.formatDate(I,te,re)}},Il=function(c){var _=c.config,i=void 0===_?Vr:_,d=c.l10n,p=void 0===d?El:d;return function(w,k,I,te){if(0===w||w){var re,B=te||p,ge=w;if(w instanceof Date)re=new Date(w.getTime());else if("string"!=typeof w&&void 0!==w.toFixed)re=new Date(w);else if("string"==typeof w){var Se=k||(i||Vr).dateFormat,he=String(w).trim();if("today"===he)re=new Date,I=!0;else if(i&&i.parseDate)re=i.parseDate(w,Se);else if(/Z$/.test(he)||/GMT$/.test(he))re=new Date(w);else{for(var ke=void 0,Te=[],Ie=0,Oe=0,Je="";Ie<Se.length;Ie++){var Ve=Se[Ie],Qe="\\"===Ve;if(vr[Ve]&&"\\"!==Se[Ie-1]&&!Qe){Je+=vr[Ve];var St=new RegExp(Je).exec(w);St&&(ke=!0)&&Te["Y"!==Ve?"push":"unshift"]({fn:Ag[Ve],val:St[++Oe]})}else Qe||(Je+=".")}re=i&&i.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),Te.forEach(function(Rt){return re=(0,Rt.fn)(re,Rt.val,B)||re}),re=ke?re:void 0}}return re instanceof Date&&!isNaN(re.getTime())?(!0===I&&re.setHours(0,0,0,0),re):void i.errorHandler(new Error("Invalid date provided: "+ge))}}};function On(c,_,i){return void 0===i&&(i=!0),!1!==i?new Date(c.getTime()).setHours(0,0,0,0)-new Date(_.getTime()).setHours(0,0,0,0):c.getTime()-_.getTime()}var Fl=function(c,_,i){return c>Math.min(_,i)&&c<Math.max(_,i)},fn=function(c,_,i){return 3600*c+60*_+i},vd=function(c){var _=Math.floor(c/3600),i=(c-3600*_)/60;return[_,i,c-3600*_-60*i]},zr={DAY:864e5};function Vi(c){var _=c.defaultHour,i=c.defaultMinute,d=c.defaultSeconds;if(void 0!==c.minDate){var p=c.minDate.getHours(),w=c.minDate.getMinutes(),k=c.minDate.getSeconds();_<p&&(_=p),_===p&&i<w&&(i=w),_===p&&i===w&&d<k&&(d=c.minDate.getSeconds())}if(void 0!==c.maxDate){var I=c.maxDate.getHours(),te=c.maxDate.getMinutes();(_=Math.min(_,I))===I&&(i=Math.min(te,i)),_===I&&i===te&&(d=c.maxDate.getSeconds())}return{hours:_,minutes:i,seconds:d}}Ue(9706);var Nt=function(){return Nt=Object.assign||function(c){for(var _,i=1,d=arguments.length;i<d;i++)for(var p in _=arguments[i])Object.prototype.hasOwnProperty.call(_,p)&&(c[p]=_[p]);return c},Nt.apply(this,arguments)},Yr=function(){for(var c=0,_=0,i=arguments.length;_<i;_++)c+=arguments[_].length;var d=Array(c),p=0;for(_=0;_<i;_++)for(var w=arguments[_],k=0,I=w.length;k<I;k++,p++)d[p]=w[k];return d},Mg=300;function Dg(c,_){var i={config:Nt(Nt({},Vr),jt.defaultConfig),l10n:Pl};function w(){var q;return(null===(q=i.calendarContainer)||void 0===q?void 0:q.getRootNode()).activeElement||document.activeElement}function k(q){return q.bind(i)}function I(){var q=i.config;!1===q.weekNumbers&&1===q.showMonths||!0!==q.noCalendar&&window.requestAnimationFrame(function(){if(void 0!==i.calendarContainer&&(i.calendarContainer.style.visibility="hidden",i.calendarContainer.style.display="block"),void 0!==i.daysContainer){var Y=(i.days.offsetWidth+1)*q.showMonths;i.daysContainer.style.width=Y+"px",i.calendarContainer.style.width=Y+(void 0!==i.weekWrapper?i.weekWrapper.offsetWidth:0)+"px",i.calendarContainer.style.removeProperty("visibility"),i.calendarContainer.style.removeProperty("display")}})}function te(q){if(0===i.selectedDates.length){var Y=void 0===i.config.minDate||On(new Date,i.config.minDate)>=0?new Date:new Date(i.config.minDate.getTime()),W=Vi(i.config);Y.setHours(W.hours,W.minutes,W.seconds,Y.getMilliseconds()),i.selectedDates=[Y],i.latestSelectedDateObj=Y}void 0!==q&&"blur"!==q.type&&function Bn(q){q.preventDefault();var Y="keydown"===q.type,W=Nn(q),le=W;void 0!==i.amPM&&W===i.amPM&&(i.amPM.textContent=i.l10n.amPM[Jn(i.amPM.textContent===i.l10n.amPM[0])]);var Ce=parseFloat(le.getAttribute("min")),ve=parseFloat(le.getAttribute("max")),tt=parseFloat(le.getAttribute("step")),He=parseInt(le.value,10),Fe=He+tt*(q.delta||(Y?38===q.which?1:-1:0));if(typeof le.value<"u"&&2===le.value.length){var We=le===i.hourElement,vt=le===i.minuteElement;Fe<Ce?(Fe=ve+Fe+Jn(!We)+(Jn(We)&&Jn(!i.amPM)),vt&&Qe(void 0,-1,i.hourElement)):Fe>ve&&(Fe=le===i.hourElement?Fe-ve-Jn(!i.amPM):Ce,vt&&Qe(void 0,1,i.hourElement)),i.amPM&&We&&(1===tt?Fe+He===23:Math.abs(Fe-He)>tt)&&(i.amPM.textContent=i.l10n.amPM[Jn(i.amPM.textContent===i.l10n.amPM[0])]),le.value=An(Fe)}}(q);var le=i._input.value;ge(),ai(),i._input.value!==le&&i._debouncedChange()}function ge(){if(void 0!==i.hourElement&&void 0!==i.minuteElement){var q=(parseInt(i.hourElement.value.slice(-2),10)||0)%24,Y=(parseInt(i.minuteElement.value,10)||0)%60,W=void 0!==i.secondElement?(parseInt(i.secondElement.value,10)||0)%60:0;void 0!==i.amPM&&(q=function B(q,Y){return q%12+12*Jn(Y===i.l10n.amPM[1])}(q,i.amPM.textContent));var le=void 0!==i.config.minTime||i.config.minDate&&i.minDateHasTime&&i.latestSelectedDateObj&&0===On(i.latestSelectedDateObj,i.config.minDate,!0),Ce=void 0!==i.config.maxTime||i.config.maxDate&&i.maxDateHasTime&&i.latestSelectedDateObj&&0===On(i.latestSelectedDateObj,i.config.maxDate,!0);if(void 0!==i.config.maxTime&&void 0!==i.config.minTime&&i.config.minTime>i.config.maxTime){var ve=fn(i.config.minTime.getHours(),i.config.minTime.getMinutes(),i.config.minTime.getSeconds()),tt=fn(i.config.maxTime.getHours(),i.config.maxTime.getMinutes(),i.config.maxTime.getSeconds()),He
vendor: 4,846 bytes, line 1
1=fn(q,Y,W);if(He>tt&&He<ve){var ft=vd(ve);q=ft[0],Y=ft[1],W=ft[2]}}else{if(Ce){var Fe=void 0!==i.config.maxTime?i.config.maxTime:i.config.maxDate;(q=Math.min(q,Fe.getHours()))===Fe.getHours()&&(Y=Math.min(Y,Fe.getMinutes())),Y===Fe.getMinutes()&&(W=Math.min(W,Fe.getSeconds()))}if(le){var We=void 0!==i.config.minTime?i.config.minTime:i.config.minDate;(q=Math.max(q,We.getHours()))===We.getHours()&&Y<We.getMinutes()&&(Y=We.getMinutes()),Y===We.getMinutes()&&(W=Math.max(W,We.getSeconds()))}}he(q,Y,W)}}function Se(q){var Y=q||i.latestSelectedDateObj;Y&&Y instanceof Date&&he(Y.getHours(),Y.getMinutes(),Y.getSeconds())}function he(q,Y,W){void 0!==i.latestSelectedDateObj&&i.latestSelectedDateObj.setHours(q%24,Y,W||0,0),i.hourElement&&i.minuteElement&&!i.isMobile&&(i.hourElement.value=An(i.config.time_24hr?q:(12+q)%12+12*Jn(q%12==0)),i.minuteElement.value=An(Y),void 0!==i.amPM&&(i.amPM.textContent=i.l10n.amPM[Jn(q>=12)]),void 0!==i.secondElement&&(i.secondElement.value=An(W)))}function ke(q){var Y=Nn(q),W=parseInt(Y.value)+(q.delta||0);(W/1e3>1||"Enter"===q.key&&!/[^\d]/.test(W.toString()))&&gs(W)}function Te(q,Y,W,le){return Y instanceof Array?Y.forEach(function(Ce){return Te(q,Ce,W,le)}):q instanceof Array?q.forEach(function(Ce){return Te(Ce,Y,W,le)}):(q.addEventListener(Y,W,le),void i._handlers.push({remove:function(){return q.removeEventListener(Y,W,le)}}))}function Ie(){_t("onChange")}function Je(q,Y){var W=void 0!==q?i.parseDate(q):i.latestSelectedDateObj||(i.config.minDate&&i.config.minDate>i.now?i.config.minDate:i.config.maxDate&&i.config.maxDate<i.now?i.config.maxDate:i.now),le=i.currentYear,Ce=i.currentMonth;try{void 0!==W&&(i.currentYear=W.getFullYear(),i.currentMonth=W.getMonth())}catch(ve){ve.message="Invalid date supplied: "+W,i.config.errorHandler(ve)}Y&&i.currentYear!==le&&(_t("onYearChange"),kt()),Y&&(i.currentYear!==le||i.currentMonth!==Ce)&&_t("onMonthChange"),i.redraw()}function Ve(q){var Y=Nn(q);~Y.className.indexOf("arrow")&&Qe(q,Y.classList.contains("arrowUp")?1:-1)}function Qe(q,Y,W){var le=q&&Nn(q),Ce=W||le&&le.parentNode&&le.parentNode.firstChild,ve=Ge("increment");ve.delta=Y,Ce&&Ce.dispatchEvent(ve)}function St(q,Y,W,le){var Ce=Qi(Y,!0),ve=Ct("span",q,Y.getDate().toString());return ve.dateObj=Y,ve.$i=le,ve.setAttribute("aria-label",i.formatDate(Y,i.config.ariaDateFormat)),-1===q.indexOf("hidden")&&0===On(Y,i.now)&&(i.todayDateElem=ve,ve.classList.add("today"),ve.setAttribute("aria-current","date")),Ce?(ve.tabIndex=-1,sa(Y)&&(ve.classList.add("selected"),i.selectedDateElem=ve,"range"===i.config.mode&&(xn(ve,"startRange",i.selectedDates[0]&&0===On(Y,i.selectedDates[0],!0)),xn(ve,"endRange",i.selectedDates[1]&&0===On(Y,i.selectedDates[1],!0)),"nextMonthDay"===q&&ve.classList.add("inRange")))):ve.classList.add("flatpickr-disabled"),"range"===i.config.mode&&function $f(q){return!("range"!==i.config.mode||i.selectedDates.length<2)&&On(q,i.selectedDates[0])>=0&&On(q,i.selectedDates[1])<=0}(Y)&&!sa(Y)&&ve.classList.add("inRange"),i.weekNumbers&&1===i.config.showMonths&&"prevMonthDay"!==q&&le%7==6&&i.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+i.config.getWeek(Y)+"</span>"),_t("onDayCreate",ve),ve}function Rt(q){q.focus(),"range"===i.config.mode&&Ka(q)}function at(q){for(var W=q>0?i.config.showMonths:-1,le=q>0?0:i.config.showMonths-1;le!=W;le+=q)for(var Ce=i.daysContainer.children[le],tt=q>0?Ce.children.length:-1,He=q>0?0:Ce.children.length-1;He!=tt;He+=q){var ft=Ce.children[He];if(-1===ft.className.indexOf("hidden")&&Qi(ft.dateObj))return ft}}function it(q,Y){var W=w(),le=Qa(W||document.body),Ce=void 0!==q?q:le?W:void 0!==i.selectedDateElem&&Qa(i.selectedDateElem)?i.selectedDateElem:void 0!==i.todayDateElem&&Qa(i.todayDateElem)?i.todayDateElem:at(Y>0?1:-1);void 0===Ce?i._input.focus():le?function et(q,Y){for(var W=-1===q.className.indexOf("Month")?q.dateObj.getMonth():i.currentMonth,le=Y>0?i.config.showMonths:-1,Ce=Y>0?1:-1,ve=W-i.currentMonth;ve!=le;ve+=Ce)for(var tt=i.daysContainer.children[ve],ft=tt.children.length,Fe=W-i.currentMonth===ve?q.$i+Y:Y<0?tt.children.length-1:0;Fe>=0&&Fe<ft&&Fe!=(Y>0?ft:-1);Fe+=Ce){var We=tt.children[Fe];if(-1===We.className.indexOf("hidden")&&Qi(We.dateObj)&&Math.abs(q.$i-Fe)>=Math.abs(Y))return Rt(We)}i.changeMonth(Ce),it(at(Ce),0)}(Ce,Y):Rt(Ce)}function De(q,Y){for(var W=(new Date(q,Y,1).getDay()-i.l10n.firstDayOfWeek+7)%7,le=i.utils.getDaysInMonth((Y-1+12)%12,q),Ce=i.utils.getDaysInMonth(Y,q),ve=window.document.createDocumentFragment(),tt=i.config.showMonths>1,He=tt?"prevMonthDay hidden":"prevMonthDay",ft=tt?"nextMonthDay hidden":"nextMonthDay",Fe=le+1-W,We=0;Fe<=le;Fe++,We++)ve.appendChild(St("flatpickr-day "+He,new Date(q,Y-1,Fe),0,We));for(Fe=1;Fe<=Ce;Fe++,We++)ve.appendChild(St("flatpickr-day",new Date(q,Y,Fe),0,We));for(var vt=Ce+1;vt<=42-W&&(1===i.config.showMonths||We%7!=0);
vendor: 4,314 bytes, line 1
1vt++,We++)ve.appendChild(St("flatpickr-day "+ft,new Date(q,Y+1,vt%Ce),0,We));var In=Ct("div","dayContainer");return In.appendChild(ve),In}function Me(){if(void 0!==i.daysContainer){Ro(i.daysContainer),i.weekNumbers&&Ro(i.weekNumbers);for(var q=document.createDocumentFragment(),Y=0;Y<i.config.showMonths;Y++){var W=new Date(i.currentYear,i.currentMonth,1);W.setMonth(i.currentMonth+Y),q.appendChild(De(W.getFullYear(),W.getMonth()))}i.daysContainer.appendChild(q),i.days=i.daysContainer.firstChild,"range"===i.config.mode&&1===i.selectedDates.length&&Ka()}}function kt(){if(!(i.config.showMonths>1||"dropdown"!==i.config.monthSelectorType)){i.monthsDropdownContainer.tabIndex=-1,i.monthsDropdownContainer.innerHTML="";for(var Y=0;Y<12;Y++)if(le=Y,!(void 0!==i.config.minDate&&i.currentYear===i.config.minDate.getFullYear()&&le<i.config.minDate.getMonth()||void 0!==i.config.maxDate&&i.currentYear===i.config.maxDate.getFullYear()&&le>i.config.maxDate.getMonth())){var W=Ct("option","flatpickr-monthDropdown-month");W.value=new Date(i.currentYear,Y).getMonth().toString(),W.textContent=Ho(Y,i.config.shorthandCurrentMonth,i.l10n),W.tabIndex=-1,i.currentMonth===Y&&(W.selected=!0),i.monthsDropdownContainer.appendChild(W)}}var le}function Lt(){var W,q=Ct("div","flatpickr-month"),Y=window.document.createDocumentFragment();i.config.showMonths>1||"static"===i.config.monthSelectorType?W=Ct("span","cur-month"):(i.monthsDropdownContainer=Ct("select","flatpickr-monthDropdown-months"),i.monthsDropdownContainer.setAttribute("aria-label",i.l10n.monthAriaLabel),Te(i.monthsDropdownContainer,"change",function(tt){var He=Nn(tt),ft=parseInt(He.value,10);i.changeMonth(ft-i.currentMonth),_t("onMonthChange")}),kt(),W=i.monthsDropdownContainer);var le=Go("cur-year",{tabindex:"-1"}),Ce=le.getElementsByTagName("input")[0];Ce.setAttribute("aria-label",i.l10n.yearAriaLabel),i.config.minDate&&Ce.setAttribute("min",i.config.minDate.getFullYear().toString()),i.config.maxDate&&(Ce.setAttribute("max",i.config.maxDate.getFullYear().toString()),Ce.disabled=!!i.config.minDate&&i.config.minDate.getFullYear()===i.config.maxDate.getFullYear());var ve=Ct("div","flatpickr-current-month");return ve.appendChild(W),ve.appendChild(le),Y.appendChild(ve),q.appendChild(Y),{container:q,yearElement:Ce,monthElement:W}}function na(){Ro(i.monthNav),i.monthNav.appendChild(i.prevMonthNav),i.config.showMonths&&(i.yearElements=[],i.monthElements=[]);for(var q=i.config.showMonths;q--;){var Y=Lt();i.yearElements.push(Y.yearElement),i.monthElements.push(Y.monthElement),i.monthNav.appendChild(Y.container)}i.monthNav.appendChild(i.nextMonthNav)}function Li(){i.weekdayContainer?Ro(i.weekdayContainer):i.weekdayContainer=Ct("div","flatpickr-weekdays");for(var q=i.config.showMonths;q--;){var Y=Ct("div","flatpickr-weekdaycontainer");i.weekdayContainer.appendChild(Y)}return Vt(),i.weekdayContainer}function Vt(){if(i.weekdayContainer){var q=i.l10n.firstDayOfWeek,Y=Yr(i.l10n.weekdays.shorthand);q>0&&q<Y.length&&(Y=Yr(Y.splice(q,Y.length),Y.splice(0,q)));for(var W=i.config.showMonths;W--;)i.weekdayContainer.children[W].innerHTML="\n <span class='flatpickr-weekday'>\n "+Y.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function bn(q,Y){void 0===Y&&(Y=!0);var W=Y?q:q-i.currentMonth;W<0&&!0===i._hidePrevMonthArrow||W>0&&!0===i._hideNextMonthArrow||(i.currentMonth+=W,(i.currentMonth<0||i.currentMonth>11)&&(i.currentYear+=i.currentMonth>11?1:-1,i.currentMonth=(i.currentMonth+12)%12,_t("onYearChange"),kt()),Me(),_t("onMonthChange"),yc())}function Xi(q){return i.calendarContainer.contains(q)}function ra(q){if(i.isOpen&&!i.config.inline){var Y=Nn(q),W=Xi(Y),Ce=!(Y===i.input||Y===i.altInput||i.element.contains(Y)||q.path&&q.path.indexOf&&(~q.path.indexOf(i.input)||~q.path.indexOf(i.altInput))||W||Xi(q.relatedTarget)),ve=!i.config.ignoredFocusElements.some(function(tt){return tt.contains(Y)});Ce&&ve&&(i.config.allowInput&&i.setDate(i._input.value,!1,i.config.altInput?i.config.altFormat:i.config.dateFormat),void 0!==i.timeContainer&&void 0!==i.minuteElement&&void 0!==i.hourElement&&""!==i.input.value&&void 0!==i.input.value&&te(),i.close(),i.config&&"range"===i.config.mode&&1===i.selectedDates.length&&i.clear(!1))}}function gs(q){if(!(!q||i.config.minDate&&q<i.config.minDate.getFullYear()||i.c
vendor: 11,608 bytes, line 1
1onfig.maxDate&&q>i.config.maxDate.getFullYear())){var W=i.currentYear!==q;i.currentYear=q||i.currentYear,i.config.maxDate&&i.currentYear===i.config.maxDate.getFullYear()?i.currentMonth=Math.min(i.config.maxDate.getMonth(),i.currentMonth):i.config.minDate&&i.currentYear===i.config.minDate.getFullYear()&&(i.currentMonth=Math.max(i.config.minDate.getMonth(),i.currentMonth)),W&&(i.redraw(),_t("onYearChange"),kt())}}function Qi(q,Y){var W;void 0===Y&&(Y=!0);var le=i.parseDate(q,void 0,Y);if(i.config.minDate&&le&&On(le,i.config.minDate,void 0!==Y?Y:!i.minDateHasTime)<0||i.config.maxDate&&le&&On(le,i.config.maxDate,void 0!==Y?Y:!i.maxDateHasTime)>0)return!1;if(!i.config.enable&&0===i.config.disable.length)return!0;if(void 0===le)return!1;for(var Ce=!!i.config.enable,ve=null!==(W=i.config.enable)&&void 0!==W?W:i.config.disable,tt=0,He=void 0;tt<ve.length;tt++){if("function"==typeof(He=ve[tt])&&He(le))return Ce;if(He instanceof Date&&void 0!==le&&He.getTime()===le.getTime())return Ce;if("string"==typeof He){var ft=i.parseDate(He,void 0,!0);return ft&&ft.getTime()===le.getTime()?Ce:!Ce}if("object"==typeof He&&void 0!==le&&He.from&&He.to&&le.getTime()>=He.from.getTime()&&le.getTime()<=He.to.getTime())return Ce}return!Ce}function Qa(q){return void 0!==i.daysContainer&&-1===q.className.indexOf("hidden")&&-1===q.className.indexOf("flatpickr-disabled")&&i.daysContainer.contains(q)}function Vf(q){var Y=q.target===i._input,W=i._input.value.trimEnd()!==la();Y&&W&&(!q.relatedTarget||!Xi(q.relatedTarget))&&i.setDate(i._input.value,!0,q.target===i.altInput?i.config.altFormat:i.config.dateFormat)}function pc(q){var Y=Nn(q),W=i.config.wrap?c.contains(Y):Y===i._input,le=i.config.allowInput,Ce=i.isOpen&&(!le||!W),ve=i.config.inline&&W&&!le;if(13===q.keyCode&&W){if(le)return i.setDate(i._input.value,!0,Y===i.altInput?i.config.altFormat:i.config.dateFormat),i.close(),Y.blur();i.open()}else if(Xi(Y)||Ce||ve){var tt=!!i.timeContainer&&i.timeContainer.contains(Y);switch(q.keyCode){case 13:tt?(q.preventDefault(),te(),aa()):vc(q);break;case 27:q.preventDefault(),aa();break;case 8:case 46:W&&!i.config.allowInput&&(q.preventDefault(),i.clear());break;case 37:case 39:if(tt||W)i.hourElement&&i.hourElement.focus();else{q.preventDefault();var He=w();if(void 0!==i.daysContainer&&(!1===le||He&&Qa(He))){var ft=39===q.keyCode?1:-1;q.ctrlKey?(q.stopPropagation(),bn(ft),it(at(1),0)):it(void 0,ft)}}break;case 38:case 40:q.preventDefault();var Fe=40===q.keyCode?1:-1;i.daysContainer&&void 0!==Y.$i||Y===i.input||Y===i.altInput?q.ctrlKey?(q.stopPropagation(),gs(i.currentYear-Fe),it(at(1),0)):tt||it(void 0,7*Fe):Y===i.currentYearElement?gs(i.currentYear-Fe):i.config.enableTime&&(!tt&&i.hourElement&&i.hourElement.focus(),te(q),i._debouncedChange());break;case 9:if(tt){var We=[i.hourElement,i.minuteElement,i.secondElement,i.amPM].concat(i.pluginElements).filter(function(mn){return mn}),vt=We.indexOf(Y);if(-1!==vt){var In=We[vt+(q.shiftKey?-1:1)];q.preventDefault(),(In||i._input).focus()}}else!i.config.noCalendar&&i.daysContainer&&i.daysContainer.contains(Y)&&q.shiftKey&&(q.preventDefault(),i._input.focus())}}if(void 0!==i.amPM&&Y===i.amPM)switch(q.key){case i.l10n.amPM[0].charAt(0):case i.l10n.amPM[0].charAt(0).toLowerCase():i.amPM.textContent=i.l10n.amPM[0],ge(),ai();break;case i.l10n.amPM[1].charAt(0):case i.l10n.amPM[1].charAt(0).toLowerCase():i.amPM.textContent=i.l10n.amPM[1],ge(),ai()}(W||Xi(Y))&&_t("onKeyDown",q)}function Ka(q,Y){if(void 0===Y&&(Y="flatpickr-day"),1===i.selectedDates.length&&(!q||q.classList.contains(Y)&&!q.classList.contains("flatpickr-disabled"))){for(var W=q?q.dateObj.getTime():i.days.firstElementChild.dateObj.getTime(),le=i.parseDate(i.selectedDates[0],void 0,!0).getTime(),Ce=Math.min(W,i.selectedDates[0].getTime()),ve=Math.max(W,i.selectedDates[0].getTime()),tt=!1,He=0,ft=0,Fe=Ce;Fe<ve;Fe+=zr.DAY)Qi(new Date(Fe),!0)||(tt=tt||Fe>Ce&&Fe<ve,Fe<le&&(!He||Fe>He)?He=Fe:Fe>le&&(!ft||Fe<ft)&&(ft=Fe));Array.from(i.rContainer.querySelectorAll("*:nth-child(-n+"+i.config.showMonths+") > ."+Y)).forEach(function(vt){var mn=vt.dateObj.getTime(),ca=He>0&&mn<He||ft>0&&mn>ft;if(ca)return vt.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach(function(Dr){vt.classList.remove(Dr)});tt&&!ca||(["startRange","inRange","endRange","notAllowed"].forEach(function(Dr){vt.classList.remove(Dr)}),void 0!==q&&(q.classList.add(W<=i.selectedDates[0].getTime()?"startRange":"endRange"),le<W&&mn===le?vt.classList.add("startRange"):le>W&&mn===le&&vt.classList.add("endRange"),mn>=He&&(0===ft||mn<=ft)&&Fl(mn,le,W)&&vt.classList.add("inRange")))})}}function zf(){i.isOpen&&!i.config.static&&!i.config.inline&&to()}function eo(q){return function(Y){var W=i.config["_"+q+"Date"]=i.parseDate(Y,i.config.dateFormat),le=i.config["_"+("min"===q?"max":"min")+"Date"];void 0!==W&&(i["min"===q?"minDateHasTime":"maxDateHasTime"]=W.getHours()>0||W.getMinutes()>0||W.getSeconds()>0),i.selectedDates&&(i.selectedDates=i.selectedDates.filter(function(Ce){return Qi(Ce)}),!i.selectedDates.length&&"min"===q&&Se(W),ai()),i.daysContainer&&(no(),void 0!==W?i.currentYearElement[q]=W.getFullYear().toString():i.currentYearElement.removeAttribute(q),i.currentYearElement.disabled=!!le&&void 0!==W&&le.getFullYear()===W.getFullYear())}}function mc(){return i.config.wrap?c.querySelector("[data-input]"):c}function _c(){"object"!=typeof i.config.locale&&typeof jt.l10ns[i.config.locale]>"u"&&i.config.errorHandler(new Error("flatpickr: invalid locale "+i.config.locale)),i.l10n=Nt(Nt({},jt.l10ns.default),"object"==typeof i.config.locale?i.config.locale:"default"!==i.config.locale?jt.l10ns[i.config.locale]:void 0),vr.D="("+i.l10n.weekdays.shorthand.join("|")+")",vr.l="("+i.l10n.weekdays.longhand.join("|")+")",vr.M="("+i.l10n.months.shorthand.join("|")+")",vr.F="("+i.l10n.months.longhand.join("|")+")",vr.K="("+i.l10n.amPM[0]+"|"+i.l10n.amPM[1]+"|"+i.l10n.amPM[0].toLowerCase()+"|"+i.l10n.amPM[1].toLowerCase()+")",void 0===Nt(Nt({},_),JSON.parse(JSON.stringify(c.dataset||{}))).time_24hr&&void 0===jt.defaultConfig.time_24hr&&(i.config.time_24hr=i.l10n.time_24hr),i.formatDate=Ol(i),i.parseDate=Il({config:i.config,l10n:i.l10n})}function to(q){if("function"!=typeof i.config.position){if(void 0!==i.calendarContainer){_t("onPreCalendarPosition");var Y=q||i._positionElement,W=Array.prototype.reduce.call(i.calendarContainer.children,function(C1,vs){return C1+vs.offsetHeight},0),le=i.calendarContainer.offsetWidth,Ce=i.config.position.split(" "),ve=Ce[0],tt=Ce.length>1?Ce[1]:null,He=Y.getBoundingClientRect(),ft=window.innerHeight-He.bottom,Fe="above"===ve||"below"!==ve&&ft<W&&He.top>W,We=window.pageYOffset+He.top+(Fe?-W-2:Y.offsetHeight+2);if(xn(i.calendarContainer,"arrowTop",!Fe),xn(i.calendarContainer,"arrowBottom",Fe),!i.config.inline){var vt=window.pageXOffset+He.left,In=!1,mn=!1;"center"===tt?(vt-=(le-He.width)/2,In=!0):"right"===tt&&(vt-=le-He.width,mn=!0),xn(i.calendarContainer,"arrowLeft",!In&&!mn),xn(i.calendarContainer,"arrowCenter",In),xn(i.calendarContainer,"arrowRight",mn);var ca=window.document.body.offsetWidth-(window.pageXOffset+He.right),Dr=vt+le>window.document.body.offsetWidth,xc=ca+le>window.document.body.offsetWidth;if(xn(i.calendarContainer,"rightMost",Dr),!i.config.static)if(i.calendarContainer.style.top=We+"px",Dr)if(xc){var ro=function Yf(){for(var q=null,Y=0;Y<document.styleSheets.length;Y++){var W=document.styleSheets[Y];if(W.cssRules){q=W;break}}return q??function Ki(){var q=document.createElement("style");return document.head.appendChild(q),q.sheet}()}();if(void 0===ro)return;var bc=window.document.body.offsetWidth,bi=Math.max(0,bc/2-le/2),w1=ro.cssRules.length,Jf="{left:"+He.left+"px;right:auto;}";xn(i.calendarContainer,"rightMost",!1),xn(i.calendarContainer,"centerMost",!0),ro.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+Jf,w1),i.calendarContainer.style.left=bi+"px",i.calendarContainer.style.right="auto"}else i.calendarContainer.style.left="auto",i.calendarContainer.style.right=ca+"px";else i.calendarContainer.style.left=vt+"px",i.calendarContainer.style.right="auto"}}}else i.config.position(i,q)}function no(){i.config.noCalendar||i.isMobile||(kt(),yc(),Me())}function aa(){i._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(i.close,0):i.close()}function vc(q){q.preventDefault(),q.stopPropagation();var W=_d(Nn(q),function(We){return We.classList&&We.classList.contains("flatpickr-day")&&!We.classList.contains("flatpickr-disabled")&&!We.classList.contains("notAllowed")});if(void 0!==W){var le=W,Ce=i.latestSelectedDateObj=new Date(le.dateObj.getTime()),ve=(Ce.getMonth()<i.currentMonth||Ce.getMonth()>i.currentMonth+i.config.showMonths-1)&&"range"!==i.config.mode;if(i.selectedDateElem=le,"single"===i.config.mode)i.selectedDates=[Ce];else if("multiple"===i.config.mode){var tt=sa(Ce);tt?i.selectedDates.splice(parseInt(tt),1):i.selectedDates.push(Ce)}else"range"===i.config.mode&&(2===i.selectedDates.length&&i.clear(!1,!1),i.latestSelectedDateObj=Ce,i.selectedDates.push(Ce),0!==On(Ce,i.selectedDates[0],!0)&&i.selectedDates.sort(function(We,vt){return We.getTime()-vt.getTime()}));if(ge(),ve){var He=i.currentYear!==Ce.getFullYear();i.currentYear=Ce.getFullYear(),i.currentMonth=Ce.getMonth(),He&&(_t("onYearChange"),kt()),_t("onMonthChange")}yc(),Me(),ai(),ve||"range"===i.config.mode||1!==i.config.showMonths?void 0!==i.selectedDateElem&&void 0===i.hourElement&&i.selectedDateElem&&i.selectedDateElem.focus():Rt(le),void 0!==i.hourElement&&void 0!==i.hourElement&&i.hourElement.focus(),i.config.closeOnSelect&&("single"===i.config.mode&&!i.config.enableTime||"range"===i.config.mode&&2===i.selectedDates.length&&!i.config.enableTime)&&aa(),Ie()}}i.parseDate=Il({config:i.config,l10n:i.l10n}),i._handlers=[],i.pluginElements=[],i.loadedPlugins=[],i._bind=Te,i._setHoursFromDate=Se,i._positionCalendar=to,i.changeMonth=bn,i.changeYear=gs,i.clear=function Xa(q,Y){if(void 0===q&&(q=!0),void 0===Y&&(Y=!0),i.input.value="",void 0!==i.altInput&&(i.altInput.value=""),void 0!==i.mobileInput&&(i.mobileInput.value=""),i.selectedDates=[],i.latestSelectedDateObj=void 0,!0===Y&&(i.currentYear=i._initialDate.getFullYear(),i.currentMonth=i._initialDate.getMonth()),!0===i.config.enableTime){var W=Vi(i.config);he(W.hours,W.minutes,W.seconds)}i.redraw(),q&&_t("onChange")},i.close=function Mr(){i.isOpen=!1,i.isMobile||(void 0!==i.calendarContainer&&i.calendarContainer.classList.remove("open"),void 0!==i._input&&i._input.classList.remove("active")),_t("onClose")},i.onMouseOver=Ka,i._createElement=Ct,i.createDay=St,i.destroy=function Wi(){void 0!==i.config&&_t("onDestroy");for(var q=i._handlers.length;q--;)i._handlers[q].remove();if(i._handlers=[],i.mobileInput)i.mobileInput.parentNode&&i.mobileInput.parentNode.removeChild(i.mobileInput),i.mobileInput=void 0;else if(i.calendarContainer&&i.calendarContainer.parentNode)if(i.config.static&&i.calendarContainer.parentNode){var Y=i.calendarContainer.parentNode;if(Y.lastChild&&Y.removeChild(Y.lastChild),Y.parentNode){for(;Y.firstChild;)Y.parentNode.insertBefore(Y.firstChild,Y);Y.parentNode.removeChild(Y)}}else i.calendarContainer.parentNode.removeChild(i.calendarContainer);i.altInput&&(i.input.type="text",i.altInput.parentNode&&i.altInput.parentNode.removeChild(i.altInput),delete i.altInput),i.input&&(i.input.type=i.input._type,i.input.classList.remove("flatpickr-input"),i.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","
1isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(W){try{delete i[W]}catch{}})},i.isEnabled=Qi,i.jumpToDate=Je,i.updateValue=ai,i.open=function ms(q,Y){if(void 0===Y&&(Y=i._positionElement),!0===i.isMobile){if(q){q.preventDefault();var W=Nn(q);W&&W.blur()}return void 0!==i.mobileInput&&(i.mobileInput.focus(),i.mobileInput.click()),void _t("onOpen")}if(!i._input.disabled&&!i.config.inline){var le=i.isOpen;i.isOpen=!0,le||(i.calendarContainer.classList.add("open"),i._input.classList.add("active"),_t("onOpen"),to(Y)),!0===i.config.enableTime&&!0===i.config.noCalendar&&!1===i.config.allowInput&&(void 0===q||!i.timeContainer.contains(q.relatedTarget))&&setTimeout(function(){return i.hourElement.select()},50)}},i.redraw=no,i.set=function _s(q,Y){if(null!==q&&"object"==typeof q)for(var W in Object.assign(i.config,q),q)void 0!==Ye[W]&&Ye[W].forEach(function(le){return le()});else i.config[q]=Y,void 0!==Ye[q]?Ye[q].forEach(function(le){return le()}):Zl.indexOf(q)>-1&&(i.config[q]=Ll(Y));i.redraw(),ai(!0)},i.setDate=function Bt(q,Y,W){if(void 0===Y&&(Y=!1),void 0===W&&(W=i.config.dateFormat),0!==q&&!q||q instanceof Array&&0===q.length)return i.clear(Y);ct(q,W),i.latestSelectedDateObj=i.selectedDates[i.selectedDates.length-1],i.redraw(),Je(void 0,Y),Se(),0===i.selectedDates.length&&i.clear(!1),ai(Y),Y&&_t("onChange")},i.toggle=function oa(q){if(!0===i.isOpen)return i.close();i.open(q)};var Ye={locale:[_c,Vt],showMonths:[na,I,Li],minDate:[Je],maxDate:[Je],positionElement:[je],clickOpens:[function(){!0===i.config.clickOpens?(Te(i._input,"focus",i.open),Te(i._input,"click",i.open)):(i._input.removeEventListener("focus",i.open),i._input.removeEventListener("click",i.open))}]};function ct(q,Y){var W=[];if(q instanceof Array)W=q.map(function(le){return i.parseDate(le,Y)});else if(q instanceof Date||"number"==typeof q)W=[i.parseDate(q,Y)];else if("string"==typeof q)switch(i.config.mode){case"single":case"time":W=[i.parseDate(q,Y)];break;case"multiple":W=q.split(i.config.conjunction).map(function(le){return i.parseDate(le,Y)});break;case"range":W=q.split(i.l10n.rangeSeparator).map(function(le){return i.parseDate(le,Y)})}else i.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(q)));i.selectedDates=i.config.allowInvalidPreload?W:W.filter(function(le){return le instanceof Date&&Qi(le,!1)}),"range"===i.config.mode&&i.selectedDates.sort(function(le,Ce){return le.getTime()-Ce.getTime()})}function io(q){return q.slice().map(function(Y){return"string"==typeof Y||"number"==typeof Y||Y instanceof Date?i.parseDate(Y,void 0,!0):Y&&"object"==typeof Y&&Y.from&&Y.to?{from:i.parseDate(Y.from,void 0),to:i.parseDate(Y.to,void 0)}:Y}).filter(function(Y){return Y})}function je(){i._positionElement=i.config.positionElement||i._input}function _t(q,Y){if(void 0!==i.config){var W=i.config[q];if(void 0!==W&&W.length>0)for(var le=0;W[le]&&le<W.length;le++)W[le](i.selectedDates,i.input.value,i,Y);"onChange"===q&&(i.input.dispatchEvent(Ge("change")),i.input.dispatchEvent(Ge("input")))}}function Ge(q){var Y=document.createEvent("Event");return Y.initEvent(q,!0,!0),Y}function sa(q){for(var Y=0;Y<i.selectedDates.length;Y++){var W=i.selectedDates[Y];if(W instanceof Date&&0===On(W,q))return""+Y}return!1}function yc(){i.config.noCalendar||i.isMobile||!i.monthNav||(i.yearElements.forEach(function(q,Y){var W=new Date(i.currentYear,i.currentMonth,1);W.setMonth(i.currentMonth+Y),i.config.showMonths>1||"static"===i.config.monthSelectorType?i.monthElements[Y].textContent=Ho(W.getMonth(),i.config.shorthandCurrentMonth,i.l10n)+" ":i.monthsDropdownContainer.value=W.getMonth().toString(),q.value=W.getFullYear().toString()}),i._hidePrevMonthArrow=void 0!==i.config.minDate&&(i.currentYear===i.config.minDate.getFullYear()?i.currentMonth<=i.config.minDate.getMonth():i.currentYear<i.config.minDate.getFullYear()),i._hideNextMonthArrow=void 0!==i.config.maxDate&&(i.currentYear===i.config.maxDate.getFullYear()?i.currentMonth+1>i.config.maxDate.getMonth():i.currentYear>i.config.maxDate.getFullYear()))}function la(q){var Y=q||(i.config.altInput?i.config.altFormat:i.config.dateFormat);return i.selectedDates.map(function(W){return i.formatDate(W,Y)}).filter(function(W,le,Ce){return"range"!==i.config.mode||i.config.enableTime||Ce.indexOf(W)===le}).join("range"!==i.config.mode?i.config.conjunction:i.l10n.rangeSeparator)}function ai(q){void 0===q&&(q=!0),void 0!==i.mobileInput&&i.mobileFormatStr&&(i.mobileInput.value=void 0!==i.latestSelectedDateObj?i.formatDate(i.latestSelectedDateObj,i.mobileFormatStr):""),i.input.value=la(i.config.dateFormat),void 0!==i.altInput&&(i.altInput.value=la(i.config.altFormat)),!1!==q&&_t("onValueUpdate")}function Le(q){var Y=Nn(q),W=i.prevMonthNav.contains(Y),le=i.nextMonthNav.contains(Y);W||le?bn(W?-1:1):i.yearElements.indexOf(Y)>=0?Y.select():Y.classList.contains("arrowUp")?i.changeYear(i.currentYear+1):Y.classList.contains("arrowDown")&&i.changeYear(i.currentYear-1)}return function p(){i.element=i.input=c,i.isOpen=!1,function gc(){var q=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],Y=Nt(Nt({},JSON.parse(JSON.stringify(c.dataset||{}))),_),W={};i.config.parseDate=Y.parseDate,i.config.formatDate=Y.formatDate,Object.defineProperty(i.config,"enable",{get:function(){return i.config._enable},set:function(We){i.config._enable=io(We)}}),Object.defineProperty(i.config,"disable",{get:function(){return i.config._disable},set:function(We){i.config._disable=io(We)}});var le="time"===Y.mode;Y.dateFormat||!Y.enableTime&&!le||(W.dateFormat=Y.noCalendar||le?"H:i"+(Y.enableSeconds?":S":""):(jt.defaultConfig.dateFormat||Vr.dateFormat)+" H:i"+(Y.enableSeconds?":S":"")),Y.altInput&&(Y.enableTime||le)&&!Y.altFormat&&(W.altFormat=Y.noCalendar||le?"h:i"+(Y.enableSeconds?":S K":" K"):(jt.defaultConfig.altFormat||Vr.altFormat)+" h:i"+(Y.enableSeconds?":S":"")+" K"),Object.defineProperty(i.config,"minDate",{get:function(){return i.config._minDate},set:eo("min")}),Object.defineProperty(i.config,"maxDate",{get:function(){return i.config._maxDate},set:eo("max")});var tt=function(We){return function(vt){i.config["min"===We?"_minTime":"_maxTime"]=i.parseDate(vt,"H:i:S")}};Object.defineProperty(i.config,"minTime",{get:function(){return i.config._minTime},set:tt("min")}),Object.defineProperty(i.config,"maxTime",{get:function(){return i.config._maxTime},set:tt("max")}
vendor: 9,443 bytes, line 1
1),"time"===Y.mode&&(i.config.noCalendar=!0,i.config.enableTime=!0),Object.assign(i.config,W,Y);for(var He=0;He<q.length;He++)i.config[q[He]]=!0===i.config[q[He]]||"true"===i.config[q[He]];for(Zl.filter(function(We){return void 0!==i.config[We]}).forEach(function(We){i.config[We]=Ll(i.config[We]||[]).map(k)}),i.isMobile=!i.config.disableMobile&&!i.config.inline&&"single"===i.config.mode&&!i.config.disable.length&&!i.config.enable&&!i.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),He=0;He<i.config.plugins.length;He++){var ft=i.config.plugins[He](i)||{};for(var Fe in ft)Zl.indexOf(Fe)>-1?i.config[Fe]=Ll(ft[Fe]).map(k).concat(i.config[Fe]):typeof Y[Fe]>"u"&&(i.config[Fe]=ft[Fe])}Y.altInputClass||(i.config.altInputClass=mc().className+" "+i.config.altInputClass),_t("onParseConfig")}(),_c(),function Ot(){i.input=mc(),i.input?(i.input._type=i.input.type,i.input.type="text",i.input.classList.add("flatpickr-input"),i._input=i.input,i.config.altInput&&(i.altInput=Ct(i.input.nodeName,i.config.altInputClass),i._input=i.altInput,i.altInput.placeholder=i.input.placeholder,i.altInput.disabled=i.input.disabled,i.altInput.required=i.input.required,i.altInput.tabIndex=i.input.tabIndex,i.altInput.type="text",i.input.setAttribute("type","hidden"),!i.config.static&&i.input.parentNode&&i.input.parentNode.insertBefore(i.altInput,i.input.nextSibling)),i.config.allowInput||i._input.setAttribute("readonly","readonly"),je()):i.config.errorHandler(new Error("Invalid input element specified"))}(),function wn(){i.selectedDates=[],i.now=i.parseDate(i.config.now)||new Date;var q=i.config.defaultDate||("INPUT"!==i.input.nodeName&&"TEXTAREA"!==i.input.nodeName||!i.input.placeholder||i.input.value!==i.input.placeholder?i.input.value:null);q&&ct(q,i.config.dateFormat),i._initialDate=i.selectedDates.length>0?i.selectedDates[0]:i.config.minDate&&i.config.minDate.getTime()>i.now.getTime()?i.config.minDate:i.config.maxDate&&i.config.maxDate.getTime()<i.now.getTime()?i.config.maxDate:i.now,i.currentYear=i._initialDate.getFullYear(),i.currentMonth=i._initialDate.getMonth(),i.selectedDates.length>0&&(i.latestSelectedDateObj=i.selectedDates[0]),void 0!==i.config.minTime&&(i.config.minTime=i.parseDate(i.config.minTime,"H:i")),void 0!==i.config.maxTime&&(i.config.maxTime=i.parseDate(i.config.maxTime,"H:i")),i.minDateHasTime=!!i.config.minDate&&(i.config.minDate.getHours()>0||i.config.minDate.getMinutes()>0||i.config.minDate.getSeconds()>0),i.maxDateHasTime=!!i.config.maxDate&&(i.config.maxDate.getHours()>0||i.config.maxDate.getMinutes()>0||i.config.maxDate.getSeconds()>0)}(),function d(){i.utils={getDaysInMonth:function(q,Y){return void 0===q&&(q=i.currentMonth),void 0===Y&&(Y=i.currentYear),1===q&&(Y%4==0&&Y%100!=0||Y%400==0)?29:i.l10n.daysInMonth[q]}}}(),i.isMobile||function gt(){var q=window.document.createDocumentFragment();if(i.calendarContainer=Ct("div","flatpickr-calendar"),i.calendarContainer.tabIndex=-1,!i.config.noCalendar){if(q.appendChild(function Wa(){return i.monthNav=Ct("div","flatpickr-months"),i.yearElements=[],i.monthElements=[],i.prevMonthNav=Ct("span","flatpickr-prev-month"),i.prevMonthNav.innerHTML=i.config.prevArrow,i.nextMonthNav=Ct("span","flatpickr-next-month"),i.nextMonthNav.innerHTML=i.config.nextArrow,na(),Object.defineProperty(i,"_hidePrevMonthArrow",{get:function(){return i.__hidePrevMonthArrow},set:function(q){i.__hidePrevMonthArrow!==q&&(xn(i.prevMonthNav,"flatpickr-disabled",q),i.__hidePrevMonthArrow=q)}}),Object.defineProperty(i,"_hideNextMonthArrow",{get:function(){return i.__hideNextMonthArrow},set:function(q){i.__hideNextMonthArrow!==q&&(xn(i.nextMonthNav,"flatpickr-disabled",q),i.__hideNextMonthArrow=q)}}),i.currentYearElement=i.yearElements[0],yc(),i.monthNav}()),i.innerContainer=Ct("div","flatpickr-innerContainer"),i.config.weekNumbers){var Y=function Bi(){i.calendarContainer.classList.add("hasWeeks");var q=Ct("div","flatpickr-weekwrapper");q.appendChild(Ct("span","flatpickr-weekday",i.l10n.weekAbbreviation));var Y=Ct("div","flatpickr-weeks");return q.appendChild(Y),{weekWrapper:q,weekNumbers:Y}}(),W=Y.weekWrapper,le=Y.weekNumbers;i.innerContainer.appendChild(W),i.weekNumbers=le,i.weekWrapper=W}i.rContainer=Ct("div","flatpickr-rContainer"),i.rContainer.appendChild(Li()),i.daysContainer||(i.daysContainer=Ct("div","flatpickr-days"),i.daysContainer.tabIndex=-1),Me(),i.rContainer.appendChild(i.daysContainer),i.innerContainer.appendChild(i.rContainer),q.appendChild(i.innerContainer)}i.config.enableTime&&q.appendChild(function ia(){i.calendarContainer.classList.add("hasTime"),i.config.noCalendar&&i.calendarContainer.classList.add("noCalendar");var q=Vi(i.config);i.timeContainer=Ct("div","flatpickr-time"),i.timeContainer.tabIndex=-1;var Y=Ct("span","flatpickr-time-separator",":"),W=Go("flatpickr-hour",{"aria-label":i.l10n.hourAriaLabel});i.hourElement=W.getElementsByTagName("input")[0];var le=Go("flatpickr-minute",{"aria-label":i.l10n.minuteAriaLabel});if(i.minuteElement=le.getElementsByTagName("input")[0],i.hourElement.tabIndex=i.minuteElement.tabIndex=-1,i.hourElement.value=An(i.latestSelectedDateObj?i.latestSelectedDateObj.getHours():i.config.time_24hr?q.hours:function re(q){switch(q%24){case 0:case 12:return 12;default:return q%12}}(q.hours)),i.minuteElement.value=An(i.latestSelectedDateObj?i.latestSelectedDateObj.getMinutes():q.minutes),i.hourElement.setAttribute("step",i.config.hourIncrement.toString()),i.minuteElement.setAttribute("step",i.config.minuteIncrement.toString()),i.hourElement.setAttribute("min",i.config.time_24hr?"0":"1"),i.hourElement.setAttribute("max",i.config.time_24hr?"23":"12"),i.hourElement.setAttribute("maxlength","2"),i.minuteElement.setAttribute("min","0"),i.minuteElement.setAttribute("max","59"),i.minuteElement.setAttribute("maxlength","2"),i.timeContainer.appendChild(W),i.timeContainer.appendChild(Y),i.timeContainer.appendChild(le),i.config.time_24hr&&i.timeContainer.classList.add("time24hr"),i.config.enableSeconds){i.timeContainer.classList.add("hasSeconds");var Ce=Go("flatpickr-second");i.secondElement=Ce.getElementsByTagName("input")[0],i.secondElement.value=An(i.latestSelectedDateObj?i.latestSelectedDateObj.getSeconds():q.seconds),i.secondElement.setAttribute("step",i.minuteElement.getAttribute("step")),i.secondElement.setAttribute("min","0"),i.secondElement.setAttribute("max","59"),i.secondElement.setAttribute("maxlength","2"),i.timeContainer.appendChild(Ct("span","flatpickr-time-separator",":")),i.timeContainer.appendChild(Ce)}return i.config.time_24hr||(i.amPM=Ct("span","flatpickr-am-pm",i.l10n.amPM[Jn((i.latestSelectedDateObj?i.hourElement.value:i.config.defaultHour)>11)]),i.amPM.title=i.l10n.toggleTitle,i.amPM.tabIndex=-1,i.timeContainer.appendChild(i.amPM)),i.timeContainer}()),xn(i.calendarContainer,"rangeMode","range"===i.config.mode),xn(i.calendarContainer,"animate",!0===i.config.animate),xn(i.calendarContainer,"multiMonth",i.config.showMonths>1),i.calendarContainer.appendChild(q);var Ce=void 0!==i.config.appendTo&&void 0!==i.config.appendTo.nodeType;if((i.config.inline||i.config.static)&&(i.calendarContainer.classList.add(i.config.inline?"inline":"static"),i.config.inline&&(!Ce&&i.element.parentNode?i.element.parentNode.insertBefore(i.calendarContainer,i._input.nextSibling):void 0!==i.config.appendTo&&i.config.appendTo.appendChild(i.calendarContainer)),i.config.static)){var ve=Ct("div","flatpickr-wrapper");i.element.parentNode&&i.element.parentNode.insertBefore(ve,i.element),ve.appendChild(i.element),i.altInput&&ve.appendChild(i.altInput),ve.appendChild(i.calendarContainer)}!i.config.static&&!i.config.inline&&(void 0!==i.config.appendTo?i.config.appendTo:window.document.body).appendChild(i.calendarContainer)}(),function Oe(){if(i.config.wrap&&["open","close","toggle","clear"].forEach(function(W){Array.prototype.forEach.call(i.element.querySelectorAll("[data-"+W+"]"),function(le){return Te(le,"click",i[W])})}),i.isMobile)!function wt(){var q=i.config.enableTime?i.config.noCalendar?"time":"datetime-local":"date";i.mobileInput=Ct("input",i.input.className+" flatpickr-mobile"),i.mobileInput.tabIndex=1,i.mobileInput.type=q,i.mobileInput.disabled=i.input.disabled,i.mobileInput.required=i.input.required,i.mobileInput.placeholder=i.input.placeholder,i.mobileFormatStr="datetime-local"===q?"Y-m-d\\TH:i:S":"date"===q?"Y-m-d":"H:i:S",i.selectedDates.length>0&&(i.mobileInput.defaultValue=i.mobileInput.value=i.formatDate(i.selectedDates[0],i.mobileFormatStr)),i.config.minDate&&(i.mobileInput.min=i.formatDate(i.config.minDate,"Y-m-d")),i.config.maxDate&&(i.mobileInput.max=i.formatDate(i.config.maxDate,"Y-m-d")),i.input.getAttribute("step")&&(i.mobileInput.step=String(i.input.getAttribute("step"))),i.input.type="hidden",void 0!==i.altInput&&(i.altInput.type="hidden");try{i.input.parentNode&&i.input.parentNode.insertBefore(i.mobileInput,i.input.nextSibling)}catch{}Te(i.mobileInput,"change",function(Y){i.setDate(Nn(Y).value,!1,i.mobileFormatStr),_t("onChange"),_t("onClose")})}();else{var q=md(zf,50);if(i._debouncedChange=md(Ie,Mg),i.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&Te(i.daysContainer,"mouseover",function(W){"range"===i.config.mode&&Ka(Nn(W))}),Te(i._input,"keydown",pc),void 0!==i.calendarContainer&&Te(i.calendarContainer,"keydown",pc),!i.config.inline&&!i.config.static&&Te(window,"resize",q),void 0!==window.ontouchstart?Te(window.document,"touchstart",ra):Te
1(window.document,"mousedown",ra),Te(window.document,"focus",ra,{capture:!0}),!0===i.config.clickOpens&&(Te(i._input,"focus",i.open),Te(i._input,"click",i.open)),void 0!==i.daysContainer&&(Te(i.monthNav,"click",Le),Te(i.monthNav,["keyup","increment"],ke),Te(i.daysContainer,"click",vc)),void 0!==i.timeContainer&&void 0!==i.minuteElement&&void 0!==i.hourElement){Te(i.timeContainer,["increment"],te),Te(i.timeContainer,"blur",te,{capture:!0}),Te(i.timeContainer,"click",Ve),Te([i.hourElement,i.minuteElement],["focus","click"],function(W){return Nn(W).select()}),void 0!==i.secondElement&&Te(i.secondElement,"focus",function(){return i.secondElement&&i.secondElement.select()}),void 0!==i.amPM&&Te(i.amPM,"click",function(W){te(W)})}i.config.allowInput&&Te(i._input,"blur",Vf)}}(),(i.selectedDates.length||i.config.noCalendar)&&(i.config.enableTime&&Se(i.config.noCalendar?i.latestSelectedDateObj:void 0),ai(!1)),I();var q=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!i.isMobile&&q&&to(),_t("onReady")}(),i}function yr(c,_){for(var i=Array.prototype.slice.call(c).filter(function(k){return k instanceof HTMLElement}),d=[],p=0;p<i.length;p++){var w=i[p];try{if(null!==w.getAttribute("data-fp-omit"))continue;void 0!==w._flatpickr&&(w._flatpickr.destroy(),w._flatpickr=void 0),w._flatpickr=Dg(w,_||{}),d.push(w._flatpickr)}catch(k){console.error(k)}}return 1===d.length?d[0]:d}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(c){return yr(this,c)},HTMLElement.prototype.flatpickr=function(c){return yr([this],c)});var jt=function(c,_){return"string"==typeof c?yr(window.document.querySelectorAll(c),_):c instanceof Node?yr([c],_):yr(c,_)};jt.defaultConfig={},jt.l10ns={en:Nt({},Pl),default:Nt({},Pl)},jt.localize=function(c){jt.l10ns.default=Nt(Nt({},jt.l10ns.default),c)},jt.setDefaults=function(c){jt.defaultConfig=Nt(Nt({},jt.defaultConfig),c)},jt.parseDate=Il({}),jt.formatDate=Ol({}),jt.compareDates=On,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(c){return yr(this,c)}),Date.prototype.fp_incr=function(c){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof c?parseInt(c,10):c))},typeof window<"u"&&(window.flatpickr=jt);const ql=jt;let $r=(()=>{class c{constructor(){this.altFormat="F j, Y",this.altInput=!1,this.altInputClass="",this.allowInput=!1,this.allowInvalidPreload=!1,this.appendTo=void 0,this.ariaDateFormat="F j, Y",this.clickOpens=!0,this.dateFormat="Y-m-d",this.defaultHour=12,this.defaultMinute=0,this.defaultSeconds=0,this.disable=[],this.disableMobile=!1,this.enableTime=!1,this.enableSeconds=!1,this.formatDate=void 0,this.hourIncrement=1,this.inline=!1,this.maxDate=void 0,this.minDate=void 0,this.maxTime=void 0,this.minTime=void 0,this.minuteIncrement=5,this.mode="single",this.nextArrow=">",this.noCalendar=!1,this.now=new Date,this.prevArrow="<",this.shorthandCurrentMonth=!1,this.static=!1,this.time24hr=!1,this.utc=!1,this.weekNumbers=!1,this.wrap=!1,this.plugins=[],this.locale="default",this.convertModelValue=!1,this.showMonths=1,this.monthSelectorType="static",this.ignoredFocusElements=[]}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})();const yd={provide:V.JU,useExisting:(0,e.Gpc)(()=>Vo),multi:!0};let Vo=(()=>{class c{constructor(i,d,p){this.elm=i,this.defaults=d,this.renderer=p,this.options={},this.ignoredFocusElements=[],this.flatpickrReady=new e.vpe,this.flatpickrChange=new e.vpe,this.flatpickrValueUpdate=new e.vpe,this.flatpickrOpen=new e.vpe,this.flatpickrClose=new e.vpe,this.flatpickrMonthChange=new e.vpe,this.flatpickrYearChange=new e.vpe,this.flatpickrDayCreate=new e.vpe,this.isDisabled=!1,this.onChangeFn=()=>{},this.onTouchedFn=()=>{}}ngAfterViewInit(){const i={altFormat:this.altFormat,altInput:this.altInput,altInputClass:this.altInputClass,allowInput:this.allowInput,allowInvalidPreload:this.allowInvalidPreload,appendTo:this.appendTo,ariaDateFormat:this.ariaDateFormat,clickOpens:this.clickOpens,dateFormat:this.dateFormat,defaultHour:this.defaultHour,defaultMinute:this.defaultMinute,defaultSeconds:this.defaultSeconds,disable:this.disable,disableMobile:this.disableMobile,enable:this.enable,enableTime:this.enableTime,enableSeconds:this.enableSeconds,formatDate:this.formatDate,hourIncrement:this.hourIncrement,defaultDate:this.initialValue,inline:this.inl
1ine,maxDate:this.maxDate,minDate:this.minDate,maxTime:this.maxTime,minTime:this.minTime,minuteIncrement:this.minuteIncrement,mode:this.mode,nextArrow:this.nextArrow,noCalendar:this.noCalendar,now:this.now,parseDate:this.parseDate,prevArrow:this.prevArrow,shorthandCurrentMonth:this.shorthandCurrentMonth,showMonths:this.showMonths,monthSelectorType:this.monthSelectorType,static:this.static,time24hr:this.time24hr,weekNumbers:this.weekNumbers,getWeek:this.getWeek,wrap:this.wrap,plugins:this.plugins,locale:this.locale,ignoredFocusElements:this.ignoredFocusElements,onChange:(d,p,w)=>{this.flatpickrChange.emit({selectedDates:d,dateString:p,instance:w})},onOpen:(d,p,w)=>{this.flatpickrOpen.emit({selectedDates:d,dateString:p,instance:w})},onClose:(d,p,w)=>{this.flatpickrClose.emit({selectedDates:d,dateString:p,instance:w})},onMonthChange:(d,p,w)=>{this.flatpickrMonthChange.emit({selectedDates:d,dateString:p,instance:w})},onYearChange:(d,p,w)=>{this.flatpickrYearChange.emit({selectedDates:d,dateString:p,instance:w})},onReady:(d,p,w)=>{this.flatpickrReady.emit({selectedDates:d,dateString:p,instance:w})},onValueUpdate:(d,p,w)=>{this.flatpickrValueUpdate.emit({selectedDates:d,dateString:p,instance:w})},onDayCreate:(d,p,w,k)=>{this.flatpickrDayCreate.emit({selectedDates:d,dateString:p,instance:w,dayElement:k})}};
1Object.keys(i).forEach(d=>{typeof i[d]>"u"&&(i[d]=typeof this.options[d]<"u"?this.options[d]:this.defaults[d])}),i.time_24hr=i.time24hr,i.altInputClass=(i.altInputClass||"")+" "+this.elm.nativeElement.className,i.enable||delete i.enable,this.instance=ql(this.elm.nativeElement,i),this.setDisabledState(this.isDisabled)}ngOnChanges(i){this.instance&&Object.keys(i).forEach(d=>{this.instance.set(d,this[d])})}ngOnDestroy(){this.instance&&this.instance.destroy()}writeValue(i){let d=i;this.convertModelValue&&"range"===this.mode&&i&&(d=[i.from,i.to]),this.instance?this.instance.setDate(d):this.initialValue=d}registerOnChange(i){this.onChangeFn=i}registerOnTouched(i){this.onTouchedFn=i}setDisabledState(i){this.isDisabled=i,this.instance&&(this.isDisabled?this.renderer.setProperty(this.instance._input,"disabled","disabled"):this.renderer.removeAttribute(this.instance._input,"disabled"))}inputChanged(){const i=this.elm.nativeElement.value;if(this.convertModelValue&&"string"==typeof i)switch(this.mode){case"multiple":const d=i.split("; ").map(k=>this.instance.parseDate(k,this.instance.config.dateFormat,!this.instance.config.enableTime));this.onChangeFn(d);break;case"range":const[p,w]=i.split(this.instance.l10n.rangeSeparator).map(k=>this.instance.parseDate(k,this.instance.config.dateFormat,!this.instance.config.enableTime));this.onChangeFn({from:p,to:w});break;default:this.onChangeFn(this.instance.parseDate(i,this.instance.config.dateFormat,!this.instance.config.enableTime))}else this.onChangeFn(i)}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.SBq),e.Y36($r),e.Y36(e.Qsj))},c.\u0275dir=e.lG2({type:c,selectors:[["","mwlFlatpickr",""]],hostBindings:function(i,d){1&i&&e.NdJ("blur",function(){return d.onTouchedFn()})("input",function(){return d.inputChanged()})},inputs:{options:"options",altFormat:"altFormat",altInput:"altInput",altInputClass:"altInputClass",allowInput:"allowInput",allowInvalidPreload:"allowInvalidPreload",appendTo:"appendTo",ariaDateFormat:"ariaDateFormat",clickOpens:"clickOpens",dateFormat:"dateFormat",defaultHour:"defaultHour",defaultMinute:"defaultMinute",defaultSeconds:"defaultSeconds",disable:"disable",disableMobile:"disableMobile",enable:"enable",enableTime:"enableTime",enableSeconds:"enableSeconds",formatDate:"formatDate",hourIncrement:"hourIncrement",inline:"inline",maxDate:"maxDate",minDate:"minDate",maxTime:"maxTime",minTime:"minTime",minuteIncrement:"minuteIncrement",mode:"mode",nextArrow:"nextArrow",noCalendar:"noCalendar",now:"now",parseDate:"parseDate",prevArrow:"prevArrow",shorthandCurrentMonth:"shorthandCurrentMonth",showMonths:"showMonths",static:"static",time24hr:"time24hr",weekNumbers:"weekNumbers",getWeek:"getWeek",wrap:"wrap",plugins:"plugins",locale:"locale",convertModelValue:"convertModelValue",monthSelectorType:"monthSelectorType",ignoredFocusElements:"ignoredFocusElements"},outputs:{flatpickrReady:"flatpickrReady",flatpickrChange:"flatpickrChange",flatpickrValueUpdate:"flatpickrValueUpdate",flatpickrOpen:"flatpickrOpen",flatpickrClose:"flatpickrClose",flatpickrMonthChange:"flatpickrMonthChange",flatpickrYearChange:"flatpickrYearChange",flatpickrDayCreate:"flatpickrDayCreate"},exportAs:["mwlFlatpickr"],features:[e._Bn([yd]),e.TTD]}),c})();const Ha=new e.OlP("flatpickr defaults");function zo(c){const _=new $r;return Object.assign(_,c),_}let Yo=(()=>{class c{static forRoot(i={}){return{ngModule:c,providers:[{provide:Ha,useValue:i},{provide:$r,useFactory:zo,deps:[Ha]}]}}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({}),c})();const Zi=["modalContent"],ni=["modalContentAdd"],Zg=(c,_)=>_.title;function $o(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"mwl-calendar-month-view",22),e.NdJ("dayClicked",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.dayClicked(p.day))})("eventClicked",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.handleEvent("Clicked",p.event))})("eventTimesChanged",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.eventTimesChanged(p))}),e.qZA()}if(2&c){const i=e.oxw();e.Q6J("viewDate",i.viewDate)("events",i.events)("refresh",i.refresh)("activeDayIsOpen",i.activeDayIsOpen)}}function Eg(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"mwl-calendar-week-view",23),e.NdJ("eventClicked",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.handleEvent("Clicked",p.event))})("eventTimesChanged",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.eventTimesChanged(p))}),e.qZA()}if(2&c){const i=e.oxw();e.Q6J("viewDate",i.viewDate)("events",i.events)("refresh",i.refresh)}}function xd(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"mwl-calendar-day-view",23),e.NdJ("eventClicked",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.handleEvent("Clicked",p.event))})("eventTimesChanged",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.eventTimesChanged(p))}),e.qZA()}if(2&c){const i=e.oxw();e.Q6J("viewDate",i.viewDate)("events",i.events)("refresh",i.refresh)}}function Ul(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"tr")(1,"td")(2,"input",24),e.NdJ("ngModelChange",function(p){const k=e.CHM(i).$implicit;return e.KtG(k.title=p)})("keyup",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.refresh.next())}),e.qZA()(),e.TgZ(3,"td")(4,"input",25),e.NdJ("ngModelChange",function(p){const k=e.CHM(i).$implicit;return e.KtG(k.color.primary=p)})("change",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.refresh.next())}),e.qZA()(),e.TgZ(5,"td")(6,"input",25),e.NdJ("ngModelChange",function(p){const k=e.CHM(i).$implicit;return e.KtG(k.color.secondary=p)})("change",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.refresh.next())}),e.qZA()(),e.TgZ(7,"td")(8,"input",26),e.NdJ("ngModelChange",function(p){const k=e.CHM(i).$implicit;return e.KtG(k.start=p)})("ngModelChange",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.refresh.next())}),e.qZA()(),e.TgZ(9,"td")(10,"input",26),e.NdJ("ngModelChange",function(p){const k=e.CHM(i).$implicit;return e.KtG(k.end=p)})("ngModelChange",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.refresh.next())}),e.qZA()(),e.TgZ(11,"td")(12,"button",27),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw();return e.KtG(k.deleteEvent(w))}),e._uU(13," Delete "),e.qZA()()()}if(2&c){const i=_.$implicit;e.xp6(2),e.Q6J("ngModel",i.title),e.xp6(2),e.Q6J("ngModel",i.color.primary),e.xp6(2),e.Q6J("ngModel",i.color.secondary),e.xp6(2),e.Q6J("ngModel",i.start)("altInput",!0)("convertModelValue",!0)("enableTime",!0),e.xp6(2),e.Q6J("ngModel",i.end)("altInput",!0)("convertModelValue",!0)("enableTime",!0)}}function bd(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div")(1,"h5"),e._uU(2,"Event Title"),e.qZA(),e.TgZ(3,"input",24),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.modalData.event.title=p)})("keyup",function(){e.CHM(i);const p=e.oxw(2);return e.KtG(p.refresh.next())}),e.qZA(),e.TgZ(4,"div",32)(5,"div",33)(6,"h5",34),e._uU(7,"Event Color"),e.qZA(),e.TgZ(8,"input",35),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.modalData.event.color.primary=p)})("change",function(){e.CHM(i);const p=e.oxw(2);return e.KtG(p.refresh.next())}),e.qZA()()(),e.TgZ(9,"div",32)(10,"div",36)(11,"h5",34),e._uU(12,"Event Start"),e.qZA(),e.TgZ(13,"input",26),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.modalData.event.start=p)})("ngModelChange",function(){e.CHM(i);const p=e.oxw(2);return e.KtG(p.refresh.next())}),e.qZA()(),e.TgZ(14,"div",36)(15,"h5",34),e._uU(16,"Event End"),e.qZA(),e.TgZ(17,"input",26),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.modalData.event.end=p)})("ngModelChange",function(){e.CHM(i);const p=e.oxw(2);return e.KtG(p.refresh.next())}),e.qZA()(),e.TgZ(18,"button",37),e.NdJ("click",function(){e.CHM(i);const p=e.oxw().close;return e.KtG(p())}),e._uU(19," Add Event "),e.qZA()()()}if(2&c){const i=e.oxw(2);e.xp6(3),e.Q6J("ngModel",i.modalData.event.title),e.xp6(5),e.Q6J("ngModel",i.modalData.event.color.primary),e.xp6(
15),e.Q6J("ngModel",i.modalData.event.start)("altInput",!0)("convertModelValue",!0)("enableTime",!0),e.xp6(4),e.Q6J("ngModel",i.modalData.event.end)("altInput",!0)("convertModelValue",!0)("enableTime",!0)}}function Va(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",28)(1,"h5",29),e._uU(2),e.qZA(),e.TgZ(3,"button",30),e.NdJ("click",function(){const w=e.CHM(i).close;return e.KtG(w())}),e.qZA()(),e.TgZ(4,"div",31),e._uU(5),e.YNc(6,bd,20,10,"div"),e.qZA()}if(2&c){const i=e.oxw();e.xp6(2),e.hij("Event ",i.modalData.action,""),e.xp6(3),e.hij(" ",i.modalData.action," "),e.xp6(),e.um2(6,"Edit"===i.modalData.action?6:-1)}}function Rl(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",28)(1,"h5",29),e._uU(2,"Add Event"),e.qZA(),e.TgZ(3,"button",30),e.NdJ("click",function(){const w=e.CHM(i).close;return e.KtG(w())}),e.qZA()(),e.TgZ(4,"form",38,39),e.NdJ("ngSubmit",function(){e.CHM(i);const p=e.MAs(5),w=e.oxw();return e.KtG(w.onSubmit(p))}),e.TgZ(6,"div",31)(7,"h5"),e._uU(8,"Event Title"),e.qZA(),e.TgZ(9,"input",40),e.NdJ("keyup",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.refresh.next())}),e.qZA(),e.TgZ(10,"h5",34),e._uU(11,"Event Color"),e.qZA(),e.TgZ(12,"input",41),e.NdJ("change",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.refresh.next())}),e.qZA(),e.TgZ(13,"div",32)(14,"div",36)(15,"h5",34),e._uU(16,"Event Start"),e.qZA(),e.TgZ(17,"input",42),e.NdJ("ngModelChange",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.refresh.next())}),e.qZA()(),e.TgZ(18,"div",36)(19,"h5",34),e._uU(20,"Event End"),e.qZA(),e.TgZ(21,"input",43),e.NdJ("ngModelChange",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.refresh.next())}),e.qZA()(),e.TgZ(22,"button",44),e._uU(23," Add Event "),e.qZA()()()()}if(2&c){const i=e.MAs(5);e.xp6(17),e.Q6J("altInput",!0)("convertModelValue",!0)("enableTime",!0),e.xp6(4),e.Q6J("altInput",!0)("convertModelValue",!0)("enableTime",!0),e.xp6(),e.Q6J("disabled",i.invalid)}}const za={red:{primary:"#ff5c6c",secondary:"#FAE3E3"},blue:{primary:"#1e90ff",secondary:"#D1E8FF"},yellow:{primary:"#24d2b5",secondary:"#FDF1BA"}};let Jo=(()=>{class c{constructor(i){this.modal=i,this.view=gr.Month,this.CalendarView=gr,this.viewDate=new Date,this.actions=[{label:'<span class="badge bg-info ms-1"><i class="ti-pencil"></i></span>',a11yLabel:"Edit",onClick:({event:d})=>{this.handleEvent("Edit",d)}},{label:'<span class="badge bg-danger ms-1"><i class="ti-trash"></i></span>',a11yLabel:"Delete",onClick:({event:d})=>{this.events=this.events.filter(p=>p!==d),this.handleEvent("Deleted",d)}}],this.refresh=new yt.x,this.events=[{start:lt(dt(new Date),1),end:mt(new Date,1),title:"A 3 day event",color:za.red,actions:this.actions,allDay:!0,resizable:{beforeStart:!0,afterEnd:!0},draggable:!0},{start:dt(new Date),title:"An event with no end date",color:za.yellow,actions:this.actions},{start:lt(pt(new Date),3),end:mt(pt(new Date),3),title:"A long event that spans 2 months",color:za.blue,allDay:!0},{start:$e(dt(new Date),2),end:$e(new Date,2),title:"A draggable and resizable event",color:za.yellow,actions:this.actions,resizable:{beforeStart:!0,afterEnd:!0},draggable:!0}],this.activeDayIsOpen=!0}dayClicked({date:i,events:d}){Ee(i,this.viewDate)&&(this.activeDayIsOpen=!(Re(this.viewDate,i)&&!0===this.activeDayIsOpen||0===d.length),this.viewDate=i)}eventTimesChanged({event:i,newStart:d,newEnd:p}){this.events=this.events.map(w=>w===i?{...i,start:d,end:p}:w),this.handleEvent("Dropped or resized",i)}handleEvent(i,d){this.modalData={event:d,action:i},this.modal.open(this.modalContent,{size:"lg"})}addEvent(){this.modal.open(this.modalContentAdd,{size:"lg"})}deleteEvent(i){this.events=this.events.filter(d=>d!==i)}setView(i){this.view=i}closeOpenMonthViewDay(){this.activeDayIsOpen=!1}onSubmit(i){this.events=[...this.events,{title:i.value.title,start:i.value.startDate,end:i.value.endDate,color:i.value.color,actions:this.actions,allDay:!0,resizable:{beforeStart:!0,afterEnd:!0},draggable:!0}],this.modal.dismissAll()}static#e=this.\u0275fac=function(d){return new(d||c)(e.Y36(nt.FF))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["app-fullcalendar"]],viewQuery:function(d,p){
1if(1&d&&(e.Gf(Zi,7),e.Gf(ni,7)),2&d){let w;e.iGM(w=e.CRH())&&(p.modalContent=w.first),e.iGM(w=e.CRH())&&(p.modalContentAdd=w.first)}},standalone:!0,features:[e.jDz],decls:66,vars:20,consts:[[1,"card"],[1,"card-body"],[1,"btn","btn-primary","float-end",3,"click"],[1,"clearfix"],[1,"pt-3","row"],[1,"col-md-4"],[1,"btn-group"],["mwlCalendarPreviousView","",1,"btn","btn-primary",3,"view","viewDate","viewDateChange"],["mwlCalendarToday","",1,"btn","btn-outline-secondary",3,"viewDate","viewDateChange"],["mwlCalendarNextView","",1,"btn","btn-primary",3,"view","viewDate","viewDateChange"],[1,"col-md-4","text-center"],[1,"col-md-4","text-end"],[1,"btn","btn-info",3,"click"],[1,"btn","btn-success",3,"click"],[1,"btn","btn-warning",3,"click"],[3,"ngSwitch"],[3,"viewDate","events","refresh","activeDayIsOpen","dayClicked","eventClicked","eventTimesChanged",4,"ngSwitchCase"],[3,"viewDate","events","refresh","eventClicked","eventTimesChanged",4,"ngSwitchCase"],[1,"table-responsive"],[1,"table","table-bordered"],["modalContent",""],["modalContentAdd",""],[3,"viewDate","events","refresh","activeDayIsOpen","dayClicked","eventClicked","eventTimesChanged"],[3,"viewDate","events","refresh","eventClicked","eventTimesChanged"],["type","text",1,"form-control",3,"ngModel","ngModelChange","keyup"],["type","color",3,"ngModel","ngModelChange","change"],["type","text","mwlFlatpickr","","dateFormat","Y-m-dTH:i","altFormat","F j, Y H:i","placeholder","Not set",1,"form-control","bg-white",3,"ngModel","altInput","convertModelValue","enableTime","ngModelChange"],[1,"btn","btn-danger",3,"click"],[1,"modal-header"],[1,"modal-title"],["type","button",1,"btn-close",3,"click"],[1,"modal-body"],[1,"row"],[1,"col-md-12"],[1,"mt-3"],["type","color","width","500px",3,"ngModel","ngModelChange","change"],[1,"col-md-6"],["type","button",1,"btn","btn-primary","mt-4",3,"click"],[3,"ngSubmit"],["add","ngForm"],["type","text","required","","name","title","ngModel","",1,"form-control",3,"keyup"],["type","color","name","color","ngModel","",3,"change"],["type","text","name","startDate","ngModel","","mwlFlatpickr","","dateFormat","Y-m-dTH:i","altFormat","F j, Y H:i","placeholder","Not set","required","",1,"form-control","bg-white",3,"altInput","convertModelValue","enableTime","ngModelChange"],["type","text","name","endDate","ngModel","","mwlFlatpickr","","dateFormat","Y-m-dTH:i","altFormat","F j, Y H:i","placeholder","Not set",1,"form-control","bg-white",3,"altInput","convertModelValue","enableTime","ngModelChange"],["type","submit",1,"btn","btn-primary","mt-4",3,"disabled"]],template:function(d,p){1&d&&(e.TgZ(0,"div",0)(1,"div",1)(2,"h3"),e._uU(3," Angular Calendar "),e.TgZ(4,"button",2),e.NdJ("click",function(){return p.addEvent()}),e._uU(5," Add New Event "),e.qZA(),e._UZ(6,"div",3),e.qZA(),e._UZ(7,"hr"),e.TgZ(8,"div",4)(9,"div",5)(10,"div",6)(11,"div",7),e.NdJ("viewDateChange",function(k){return p.viewDate=k})("viewDateChange",function(){return p.closeOpenMonthViewDay()}),e._uU(12," Previous "),e.qZA(),e.TgZ(13,"div",8),e.NdJ("viewDateChange",function(k){return p.viewDate=k}),e._uU(14," Today "),e.qZA(),e.TgZ(15,"div",9),e.NdJ("viewDateChange",function(k){return p.viewDate=k})("viewDateChange",function(){return p.closeOpenMonthViewDay()}),e._uU(16," Next "),e.qZA()()(),e.TgZ(17,"div",10)(18,"h3"),e._uU(19),e.ALo(20,"calendarDate"),e.qZA()(),e.TgZ(21,"div",11)(22,"div",6)(23,"div",12),e.NdJ("click",function(){return p.setView(p.CalendarView.Month)}),e._uU(24," Month "),e.qZA(),e.TgZ(25,"div",13),e.NdJ("click",function(){return p.setView(p.CalendarView.Week)}),e._uU(26," Week "),e.qZA(),e.TgZ(27,"div",14),e.NdJ("click",function(){return p.setView(p.CalendarView.Day)}),e._uU(28," Day "),e.qZA()()()(),e._UZ(29,"br"),e.TgZ(30,"div",15),e.YNc(31,$o,1,4,"mwl-calendar-month-view",16)(32,Eg,1,3,"mwl-calendar-week-view",17)(33,xd,1,3,"mwl-calendar-day-view",17),e.qZA(),e._UZ(34,"br")(35,"br")(36,"hr")(37,"br"),e.TgZ(38,"h3"),e._uU(39," Edit events "),e.TgZ(40,"button",2),e.NdJ("click",function(){return p.addEvent()}),e._uU(41," Add new "),e.qZA(),e._UZ(42,"div",3),e.qZA(),e.TgZ(43,"div",18)(44,"table",19)(45,"thead")(46,"tr")(47,"th"),e._uU(48,"Title"),e.qZA(),e.TgZ(49,"th"),e._uU(50,"Primary color"),e.qZA(),e.TgZ(51,"th"),e._uU(52,"Secondary color"),e.qZA(),e.TgZ(53,"th"),e._uU(54,"Starts at"),e.qZA(),e.TgZ(55,"th"),e._uU(56,"Ends at"),e.qZA(),e.TgZ(57,"th"),e._uU(58,"Remove"),e.qZA()()(),e.TgZ(59,"tbody"),e.SjG(60,Ul,14,11,"tr",null,Zg),e.qZA()()(),e.YNc(62,Va,7,3,"ng-template",null,20,e.W1O)(64,Rl,24,7,"ng-template",null,21,e.W1O),e.qZA()()),2&d&&(e.xp6(11),e.Q6J("view",p.view)("viewDate",p.viewDate),e.xp6(2),e.Q6J("viewDate",p.viewDate),e.xp6(2),e.Q6J("view",p.view)("viewDate",p.viewDate),e.xp6(4),e.Oqu(e.Dn7(20,16,p.viewDate,p.view+"ViewTitle","en")),e.xp6(4),e.ekj("active",p.view===p.CalendarView.Month),e.xp6(2),e.ekj("active",p.view===p.CalendarView.Week),e.xp6(2),e.ekj("active",p.view===p.CalendarView.Day),e.xp6(3),e.Q6J("ngSwitch",p.view),e.xp6(),e.Q6J("ngSwitchCase",p.CalendarView.Month),e.xp6(),e.Q6J("ngSwitchCase",p.CalendarView.Week),e.xp6(),e.Q6J("ngSwitchCase",p.CalendarView.Day),e.xp6(27),e.wJu(p.events))},dependencies:[gd,pg,gg,mg,_r,kl,hd,Sg,V.u5,V._Y,V.Fj,V.JJ,V.JL,V.Q7,V.On,V.F,
1V.UX,ce.ez,ce.RF,ce.n9,Yo,Vo],styles:["input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;width:100%}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}"],changeDetection:0})}return c})();const Pg=[{id:1,message:"I have to go office.",completionStatus:!0,edit:!1,date:new Date("02-06-2020")},{id:2,message:"let us work hard this time ! ",completionStatus:!1,edit:!1,date:new Date("02-08-2020")},{id:3,message:"We will win if we give our best.",completionStatus:!0,edit:!1,date:new Date("02-10-2020")},{id:4,message:"We will leave soon.",completionStatus:!1,edit:!1,date:new Date("02-12-2020")},{id:5,message:"I am doing my best.",completionStatus:!1,edit:!1,date:new Date("02-15-2020")}];let wd=(()=>{class c{constructor(){this.todos=Pg}getTodos(){return this.todos}static#e=this.\u0275fac=function(d){return new(d||c)};static#t=this.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac})}return c})();function Cd(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"span",30),e.NdJ("click",function(){e.CHM(i);const p=e.oxw().$implicit,w=e.oxw();return e.KtG(w.editTodo(p.id,"edit"))}),e.TgZ(1,"div")(2,"p",31),e._uU(3),e.qZA(),e.TgZ(4,"p",32),e._uU(5),e.ALo(6,"date"),e.qZA()(),e.TgZ(7,"div",33)(8,"a",34),e.NdJ("click",function(){e.CHM(i);const p=e.oxw().$implicit,w=e.oxw();return e.KtG(w.editTodo(p.id,"edit"))}),e._UZ(9,"i-feather",35),e.qZA(),e.TgZ(10,"a",36),e.NdJ("click",function(){e.CHM(i);const p=e.oxw().$index,w=e.oxw();return e.KtG(w.deleteTodo(p))}),e._UZ(11,"i-feather",37),e.qZA()()()}if(2&c){const i=e.oxw().$implicit;e.xp6(3),e.Oqu(i.message),e.xp6(2),e.Oqu(e.lcZ(6,2,i.date))}}function Td(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"span",38)(1,"input",39),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw().$implicit;return e.KtG(w.message=p)}),e.qZA(),e.TgZ(2,"div",40)(3,"a",41),e.NdJ("click",function(){e.CHM(i);const p=e.oxw().$implicit,w=e.oxw();return e.KtG(w.editTodo(p.id,"save"))}),e._UZ(4,"i-feather",42),e.qZA(),e.TgZ(5,"a",36),e.NdJ("click",function(){e.CHM(i);const p=e.oxw().$index,w=e.oxw();return e.KtG(w.deleteTodo(p))}),e._UZ(6,"i-feather",37),e.qZA()()()}if(2&c){const i=e.oxw().$implicit;e.xp6(),e.Q6J("ngModel",i.message)}}function Sd(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",23)(1,"div",24)(2,"div",25)(3,"input",26),e.NdJ("ngModelChange",function(p){const k=e.CHM(i).$implicit;return e.KtG(k.completionStatus=p)}),e.qZA(),e._UZ(4,"label",27),e.qZA(),e.TgZ(5,"div",28),e.YNc(6,Cd,12,4,"span",29)(7,Td,7,1,"span",29),e.qZA()()()}if(2&c){const i=_.$implicit;e.xp6(3),e.s9C("id",i.id),e.Q6J("ngModel",i.completionStatus),e.xp6(),e.s9C("for",i.id),e.xp6(2),e.um2(6,i.edit?-1:6),e.xp6(),e.um2(7,i.edit?7:-1)}}const Lg=c=>({"show-panel":c});let Ng=(()=>{class c{constructor(i,d){this.fb=i,this.todoService=d,this.showSidebar=!1,this.inputFg=Object.create(null),this.todoId=6,this.selectedCategory="all",this.searchText=null,this.editSave="Edit",this.todos=this.todoService.getTodos(),this.copyTodos=this.todos}mobileSidebar(){this.showSidebar=!this.showSidebar}ngOnInit(){this.inputFg=this.fb.group({mess:[]})}addTodo(i){0!==this.inputFg?.get("mess")?.value.trim().length&&(this.todos.push({id:this.todoId,message:this.inputFg?.get("mess")?.value,completionStatus:!1,edit:!1,date:new Date}),this.copyTodos=this.todos,this.todoId++,this.inputFg.patchValue({mess:""}))}allTodos(){this.todos.forEach(i=>i.completionStatus=event.target.checked)}selectionlblClick(i){"all"===i?(this.copyTodos=this.todos,this.selectedCategory="all"):"uncomplete"===i?(this.copyTodos=this.todos.filter(d=>!d.completionStatus),this.selectedCategory="uncomplete"):"complete"===i&&(this.copyTodos=this.todos.filter(d=>d.completionStatus),this.selectedCategory="complete")}editTodo(i,d){this.copyTodos&&(this.copyTodos.find(p=>p.id===i).edit="edit"===d)}deleteTodo(i){console.log(i),this.todos.splice(i,1)}remainingList(){return this.todos.filter(i=>!i.completionStatus).length}static#e=this.\u0275fac=function(d){return new(d||c)(e.Y36(V.QS),e.Y36(wd))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["app-todos"]],standalone:!0,features:[e.jDz],decls:35,vars:17,consts:[["href","javascript:void(0)",1,"btn","btn-success","show-left-part","d-block","d-md-none",3,"ngClass","click"],[1,"main-part"],[1,"left-part","bg-white","fixed-left-part","border-end",3,"ngClass"],[1,"position-relative"],[1,"px-3","py-3","d-flex","align-items-center","border-bottom"],[1,"mb-0","py-1","text-center","fs-5","fw-bold"],[1,"tasklist","list-style-none"],[1,"task-item","d-flex","all","border-bottom",3,"click"],[1,"badge","bg-primary","ms-auto","pt-1"],[1,"task-item","d-flex","incomplete","border-bottom",3,"click"],[1,"badge","bg-danger","ms-auto","pt-1"],[1,"task-item","d-flex","complete","border-bottom",3,"click"],[1,"badge","bg-success","ms-auto","pt-1"],[1,"right-part","bg-white"],[1,"card"],[1,"px-3","py-3","d-flex","align-items-center","border-bottom","bg-light"],[1,"form-check","flex-shrink-0"],["type","checkbox","id","all",1,"form-check-input",3,"change"],["for","all",1,"form-check-label"],[1,"d-flex","align-items-center","ms-auto",3,"formGroup"],["type","text","placeholder","Type here to add new todo...","formControlName","mess",1,"todo-input","form-control","mb-0","mx-2",3,"ngModel","ngModelChange","keyup.enter"],["inputData",""],["type","button","id","btnAddTodo",1,"btn","btn-info","flex-shrink-0",3,"disabled","click"],[1,"todo-item","py-3","ps-3","border-bottom"],[1,"todo-item-left","d-flex","w-100"],[1,"form-check"],["type","checkbox",1,"form-check-input",3,"id","ngModel","ngModelChange"],[1,"form-check-label",3,"for"],[1,"todo-item-label","w-100"],["class","d-flex align-items-start"],[1,"d-flex","align-items-start",3,"click"],[1,"mb-1"],[1,"mb-0","fs-2"],[1,"ms-auto","px-3","me-2"],["href","javascript: void(0);","placement","top","ngbTooltip","Edit",1,"link","me-3",3,"click"],["name","edit-3",1,"feather-sm"],["href","javascript: void(0);","placement","top","ngbTooltip","Delete",1,"link",3,"click"],["name","trash-2",1,"feather-sm"],[1,"d-flex","align-items-start"],["type","text",1,"form-control",3,"ngModel","ngModelChange"],[1,"ms-auto","d-flex","px-3","me-2"],["href","javascript: void(0);","placement","top","ngbTooltip","Save",1,"link","me-3",3,"click"],["name","save",1,"feather-sm"],["class","todo-item py-3 ps-3 border-bottom"]],template:function(d,p){
1if(1&d){const w=e.EpF();e.TgZ(0,"a",0),e.NdJ("click",function(){return p.mobileSidebar()}),e.qZA(),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"p",5),e._uU(6),e.qZA()(),e.TgZ(7,"ul",6)(8,"li",7),e.NdJ("click",function(){return p.selectionlblClick("all")}),e._uU(9," All "),e.TgZ(10,"span",8),e._uU(11),e.qZA()(),e.TgZ(12,"li",9),e.NdJ("click",function(){return p.selectionlblClick("uncomplete")}),e._uU(13," Incompleted "),e.TgZ(14,"span",10),e._uU(15),e.qZA()(),e.TgZ(16,"li",11),e.NdJ("click",function(){return p.selectionlblClick("complete")}),e._uU(17," Completed "),e.TgZ(18,"span",12),e._uU(19),e.qZA()()()()(),e.TgZ(20,"div",13)(21,"div",14)(22,"div",15)(23,"div",16)(24,"input",17),e.NdJ("change",function(){return p.allTodos()}),e.qZA(),e.TgZ(25,"label",18),e._uU(26,"Mark All"),e.qZA()(),e.TgZ(27,"form",19)(28,"input",20,21),e.NdJ("ngModelChange",function(I){return p.searchText=I})("keyup.enter",function(){e.CHM(w);const I=e.MAs(29);return e.KtG(p.addTodo(I.value))}),e.qZA(),e.TgZ(30,"button",22),e.NdJ("click",function(){e.CHM(w);const I=e.MAs(29);return e.KtG(p.addTodo(I.value))}),e._uU(31,"Add Todo"),e.qZA()()(),e.TgZ(32,"div"),e.SjG(33,Sd,8,5,"div",43,e.x6l),e.qZA()()()()}2&d&&(e.Q6J("ngClass",p.showSidebar?"ti-close":"ti-menu"),e.xp6(2),e.Q6J("ngClass",e.VKq(15,Lg,p.showSidebar)),e.xp6(4),e.hij("",p.remainingList()," tasks left"),e.xp6(2),e.ekj("active","all"===p.selectedCategory),e.xp6(3),e.Oqu(p.todos.length),e.xp6(),e.ekj("active","uncomplete"===p.selectedCategory),e.xp6(3),e.Oqu(p.remainingList()),e.xp6(),e.ekj("active","complete"===p.selectedCategory),e.xp6(3),e.Oqu(p.todos.length-p.remainingList()),e.xp6(8),e.Q6J("formGroup",p.inputFg),e.xp6(),e.Q6J("ngModel",p.searchText),e.xp6(2),e.Q6J("disabled",!p.searchText),e.xp6(3),e.wJu(p.copyTodos))},dependencies:[Et.p,Et.u,V.u5,V._Y,V.Fj,V.Wl,V.JJ,V.JL,V.On,V.UX,V.sg,V.u,ce.ez,ce.mk,ce.uU],styles:[".tasklist[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%]{padding:16.5px;cursor:pointer}.tasklist[_ngcontent-%COMP%] .task-item.active[_ngcontent-%COMP%]{background-color:#e9ecef}button[_ngcontent-%COMP%]:focus{outline:none}"]})}return c})();const Og=[{color:"info",title:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",datef:new Date("1/3/2020")},{color:"danger",title:"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit,",datef:new Date("1/2/2020")},{color:"warning",title:"consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur?",datef:new Date("1/1/2020")}];let jo=(()=>{class c{constructor(){this.notes=Og}getNotes(){return this.notes}static#e=this.\u0275fac=function(d){return new(d||c)};static#t=this.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac})}return c})();const Ad=(c,_)=>_.title;function Ig(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",15),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw(2);return e.KtG(k.onSelect(w))}),e.TgZ(1,"div",16)(2,"div"),e._UZ(3,"span"),e.TgZ(4,"span",17),e._uU(5),e.qZA(),e.TgZ(6,"small",18),e._uU(7),e.ALo(8,"date"),e.qZA()(),e.TgZ(9,"span",19),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw(2);return e.KtG(k.removenote(w))}),e._uU(10,"x"),e.qZA()()()}if(2&c){const i=_.$implicit,d=e.oxw(2);e.ekj("selected",i===d.selectedNote),e.xp6(3),e.Gre("note-color bg-",i.color,""),e.xp6(2),e.Oqu(i.title),e.xp6(2),e.Oqu(e.l
1cZ(8,7,i.datef))}}function Fg(c,_){if(1&c&&(e.TgZ(0,"div",14),e.SjG(1,Ig,11,9,"div",20,Ad),e.qZA()),2&c){const i=e.oxw();e.xp6(),e.wJu(i.notes)}}function qg(c,_){1&c&&(e.TgZ(0,"p",21),e._uU(1,"No Notes Found"),e.qZA())}function Ug(c,_){if(1&c&&(e.TgZ(0,"div",22),e._UZ(1,"button",23),e.TgZ(2,"span"),e._uU(3,"Choose color for note"),e.qZA()()),2&c){const i=e.oxw(),d=e.MAs(14);e.xp6(),e.Gre("btn btn-",i.clrName," me-2"),e.Q6J("ngbPopover",d)("autoClose","outside")}}function Rg(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"li",25),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw(2);return e.KtG(k.onSelectColor(w.colorName))}),e._uU(1," \xa0 "),e.qZA()}2&c&&e.Gre("btn btn-sm rounded btn-",_.$implicit.colorName," me-2")}function Gg(c,_){if(1&c&&(e.TgZ(0,"ul",24),e.SjG(1,Rg,2,3,"li",26,e.x6l),e.qZA()),2&c){const i=e.oxw();e.xp6(),e.wJu(i.colors)}}function Hg(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div")(1,"textarea",27),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.selectedNote.title=p)}),e._uU(2," "),e.qZA()()}if(2&c){const i=e.oxw();e.xp6(),e.Q6J("ngModel",i.selectedNote.title)}}const Vg=c=>({"show-panel":c});let zg=(()=>{class c{constructor(i){this.noteService=i,this.showSidebar=!1,this.notes=this.noteService.getNotes(),this.selectedNote=Object.create(null),this.searchText="",this.clrName="warning",this.colors=[{colorName:"info"},{colorName:"warning"},{colorName:"danger"},{colorName:"success"}],this.notes=this.noteService.getNotes()}mobileSidebar(){this.showSidebar=!this.showSidebar}ngOnInit(){this.onLoad()}onLoad(){this.selectedNote=this.notes[0]}onSelect(i){this.selectedNote=i,this.clrName=this.selectedNote.color}onSelectColor(i){this.clrName=i,this.selectedNote.color=this.clrName}removenote(i){const d=this.notes.indexOf(i);-1!==d&&(this.notes.splice(d,1),this.selectedNote=this.notes[0])}addNoteClick(){this.notes.push({color:this.clrName,title:"this is New notes",datef:new Date})}applyFilter(i){this.notes=this.filter(i.target.value)}filter(i){return this.noteService.getNotes().filter(d=>-1!==d.title.toLowerCase().indexOf(i.toLowerCase()))}static#e=this.\u0275fac=function(d){return new(d||c)(e.Y36(jo))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["app-notes"]],standalone:!0,features:[e.jDz],decls:20,vars:7,consts:[["href","javascript:void(0)",1,"btn","btn-success","show-left-part","d-block","d-md-none",3,"ngClass","click"],[1,"main-part"],[1,"left-part","bg-white","overflow-auto","fixed-left-part",3,"ngClass"],[1,"position-relative"],[1,"p-3","d-flex","align-items-center","border-bottom"],["type","text","name","search","placeholder","Search Notes",1,"form-control",3,"keyup"],["class","notes-list"],[1,"right-part","bg-white","overflow-auto"],[1,"card","mb-0"],["class","w-50"],["popContent",""],[1,"ms-auto"],["type","button","id","btnAddNote",1,"btn","btn-primary",3,"click"],[1,"bg-white"],[1,"notes-list"],[1,"notes-item",3,"click"],[1,"d-flex","py-3","border-bottom","pe-3","position-relative"],[1,"note-title","text-truncate"],[1,"note-time"],[1,"ms-auto","remove-note",3,"click"],["class","notes-item",3,"selected"],[1,"mb-0","text-center","fs-5","fw-bold","mt-5"],[1,"w-50"],["type","button","placement","bottom-start","popoverTitle","Choose colors",3,"ngbPopover","autoClose"],[1,"ps-0","mb-0"],[3,"click"],[3,"class"],["rows","5","placeholder","name",1,"form-control","note-content",3,"ngModel","ngModelChange"]],template:function(d,p){1&d&&(e.TgZ(0,"a",0),e.NdJ("click",function(){return p.mobileSidebar()}),e.qZA(),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"input",5),e.NdJ("keyup",function(k){return p.applyFilter(k)}),e.qZA()(),e.TgZ(6,"div"),e.YNc(7,Fg,3,0,"div",6)(8,qg,2,0),e.qZA()()(),e.TgZ(9,"div",7)(10,"div",8)(11,"div",4),e.YNc(12,Ug,4,5,"div",9)(13,Gg,3,0,"ng-template",null,10,e.W1O),e.TgZ(15,"div",11)(16,"button",12),e.NdJ("click",function(){return p.addNoteClick()}),e._uU(17," Add Notes "),e.qZA()()(),e.TgZ(18,"div",13),e.YNc(19,Hg,3,1,"div"),e.qZA()()()()),2&d&&(e.Q6J("ngClass",p.showSidebar?"mdi mdi-close":"mdi mdi-menu"),e.xp6(2),e.Q6J("ngClass",e.VKq(5,Vg,p.showSidebar)),e.xp6(
15),e.um2(7,p.notes.length>0?7:8),e.xp6(5),e.um2(12,p.selectedNote?12:-1),e.xp6(7),e.um2(19,p.notes.length>0?19:-1))},dependencies:[nt.dT,nt.o8,V.u5,V.Fj,V.JJ,V.On,V.UX,ce.ez,ce.mk,ce.uU],styles:[".note-color[_ngcontent-%COMP%]{position:absolute;width:5px;height:100%;left:0;top:0}.notes-item.selected[_ngcontent-%COMP%]{background-color:#e9ecef}.note-title[_ngcontent-%COMP%]{width:200px;font-size:16px}.note-title[_ngcontent-%COMP%], .note-time[_ngcontent-%COMP%]{margin-left:15px;display:block}.note-content[_ngcontent-%COMP%]{border:none;resize:none;padding-top:15px;padding-left:15px;height:100%}.remove-note[_ngcontent-%COMP%], .notes-item[_ngcontent-%COMP%]{cursor:pointer}"]})}return c})();class Yg{constructor(){this.img="",this.name="",this.post="",this.address="",this.contactno=0,this.insta=0,this.linkedin=0,this.facebook=0}}const $g=(c,_)=>_.name;function Jg(c,_){if(1&c&&(e.TgZ(0,"div",12)(1,"div",2)(2,"div",13),e._UZ(3,"img",14),e.TgZ(4,"h4",15),e._uU(5),e.qZA(),e.TgZ(6,"small",16),e._uU(7),e.qZA(),e.TgZ(8,"div",17)(9,"button",18),e._uU(10,"Chat"),e.qZA(),e.TgZ(11,"button",19),e._uU(12,"Follow"),e.qZA()(),e.TgZ(13,"div",20)(14,"address"),e._uU(15),e._UZ(16,"br")(17,"br")(18,"i",21),e._uU(19),e.qZA()()(),e.TgZ(20,"div",22)(21,"div",23)(22,"a",24),e._UZ(23,"i",25),e._uU(24),e.qZA()(),e.TgZ(25,"div",23)(26,"a",24),e._UZ(27,"i",26),e._uU(28),e.qZA()(),e.TgZ(29,"div",27)(30,"a",24),e._UZ(31,"i",28),e._uU(32),e.qZA()()()()()),2&c){const i=_.$implicit;e.xp6(3),e.s9C("src",i.img,e.LSH),e.xp6(2),e.Oqu(i.name),e.xp6(2),e.Oqu(i.post),e.xp6(8),e.hij(" ",i.address," "),e.xp6(4),e.hij("",i.contactno," "),e.xp6(5),e.hij(" ",i.insta," "),e.xp6(4),e.hij(" ",i.linkedin," "),e.xp6(4),e.hij(" ",i.facebook," ")}}function jg(c,_){if(1&c&&(e.TgZ(0,"div",11),e.SjG(1,Jg,33,8,"div",29,$g),e.qZA()),2&c){const i=e.oxw();e.xp6(),e.wJu(i.contact)}}function Bg(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1,"Name is required"),e.qZA())}function Wg(c,_){if(1&c&&(e.TgZ(0,"div",52),e.YNc(1,Bg,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.name.errors.required?1:-1)}}function Xg(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1,"Post is required"),e.qZA())}function Qg(c,_){if(1&c&&(e.TgZ(0,"div",52),e.YNc(1,Xg,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.post.errors.required?1:-1)}}function Kg(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1,"Name is required"),e.qZA())}function em(c,_){if(1&c&&(e.TgZ(0,"div",52),e.YNc(1,Kg,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.address.errors.required?1:-1)}}function tm(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1,"Name is required"),e.qZA())}function nm(c,_){if(1&c&&(e.TgZ(0,"div",52),e.YNc(1,tm,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.contactno.errors.required?1:-1)}}function im(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1,"Name is required"),e.qZA())}function rm(c,_){if(1&c&&(e.TgZ(0,"div",52),e.YNc(1,im,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.insta.errors.required?1:-1)}}function am(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1,"Name is required"),e.qZA())}function om(c,_){if(1&c&&(e.TgZ(0,"div",52),e.YNc(1,am,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.linkedin.errors.required?1:-1)}}function sm(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1,"Name is required"),e.qZA())}function lm(c,_){if(1&c&&(e.TgZ(0,"div",52),e.YNc(1,sm,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.facebook.errors.required?1:-1)}}const xr=c=>({"is-invalid":c});function cm(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",30)(1,"h4",31),e._uU(2,"Profile update"),e.qZA(),e.TgZ(3,"button",32),e.NdJ("click",function(){const w=e.CHM(i).$implicit;return e.KtG(w.dismiss("Cross click"))}),e.qZA()(),e.TgZ(4,"div",33)(5,"form",34),e.NdJ("ngSubmit",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.onSubmit())}),e.TgZ(6,"div",35)(7,"label",36),e._uU(8,"Enter Name Here"),e.qZA(),e._UZ(9,"input",37),e.YNc(10,Wg,2,1,"div",38),e.qZA(),e.TgZ(11,"div",35)(12,"label",39),e._uU(13,"Enter Post Here"),e.qZA(),e._UZ(14,"input",40),e.YNc(15,Qg,2,1,"div",38),e.qZA(),e.TgZ(16,"div",35)(17,"label",41),e._uU(18,"Enter Address Here"),e.qZA(),e._UZ(19,"input",42),e.YNc(20,em,2,1,"div",38),e.qZA(),e.TgZ(21,"div",35)(22,"label",43),e._uU(23,"Enter Number Here"),e.qZA(),e._UZ(24,"input",44),e.YNc(25,nm,2,1,"div",38),e.qZA(),e.TgZ(26,"div",35)(27,"label",45),e._uU(28,"Enter Instagram Follower Here"),e.qZA(),e._UZ(29,"input",46),e.YNc(30,rm,2,1,"div",38),e.qZA(),e.TgZ(31,"div",35)(32,"label",47),e._uU(33,"Enter Linkedin Follower Here"),e.qZA(),e._UZ(34,"input",48),e.YNc(35,om,2,1,"div",38),e.qZA(),e.TgZ(36,"div",35)(37,"label",49),e._uU(38,"Enter Facebook Follower Here"),e.qZA(),e._UZ(39,"input",50),e.YNc(40,lm,2,1,"div",38),e.qZA(),e.TgZ(41,"div",35)(42,"button",51),e.NdJ("click",function(){const w=e.CHM(i).$implicit;return e.oxw().addContact(),e.KtG(w.dismiss("Cross click"))}),e._uU(43," Add Contact "),e.qZA()()()()}if(2&c){const i=e.oxw();e.xp6(5),e.Q6J("formGroup",i.contacts),e.xp6(4),e.Q6J("ngClass",e.VKq(16,xr,i.submitted&&i.f.n
1ame.errors)),e.xp6(),e.um2(10,i.submitted&&i.f.name.errors?10:-1),e.xp6(4),e.Q6J("ngClass",e.VKq(18,xr,i.submitted&&i.f.post.errors)),e.xp6(),e.um2(15,i.submitted&&i.f.post.errors?15:-1),e.xp6(4),e.Q6J("ngClass",e.VKq(20,xr,i.submitted&&i.f.address.errors)),e.xp6(),e.um2(20,i.submitted&&i.f.address.errors?20:-1),e.xp6(4),e.Q6J("ngClass",e.VKq(22,xr,i.submitted&&i.f.contactno.errors)),e.xp6(),e.um2(25,i.submitted&&i.f.contactno.errors?25:-1),e.xp6(4),e.Q6J("ngClass",e.VKq(24,xr,i.submitted&&i.f.insta.errors)),e.xp6(),e.um2(30,i.submitted&&i.f.insta.errors?30:-1),e.xp6(4),e.Q6J("ngClass",e.VKq(26,xr,i.submitted&&i.f.linkedin.errors)),e.xp6(),e.um2(35,i.submitted&&i.f.linkedin.errors?35:-1),e.xp6(4),e.Q6J("ngClass",e.VKq(28,xr,i.submitted&&i.f.facebook.errors)),e.xp6(),e.um2(40,i.submitted&&i.f.facebook.errors?40:-1),e.xp6(2),e.Q6J("disabled",i.contacts.invalid)}}let um=(()=>{class c{constructor(i,d,p){this.modalService=i,this.fb=d,this.formBuilder=p,this.closeResult="",this.contact=new Array,this.contacts=Object.create(null)}open(i){this.modalService.open(i,{size:"lg",centered:!0})}ngOnInit(){this.contacts=this.formBuilder.group({name:["",V.kI.required],post:["",V.kI.required],address:["",V.kI.required],contactno:["",[V.kI.required,V.kI.maxLength(10),V.kI.pattern("^[0-9]*$")]],insta:["",[V.kI.required,V.kI.maxLength(5),V.kI.pattern("^[0-9]*$")]],linkedin:["",[V.kI.required,V.kI.maxLength(5),V.kI.pattern("^[0-9]*$")]],facebook:["",[V.kI.required,V.kI.maxLength(5),V.kI.pattern("^[0-9]*$")]]}),this.contact=[{img:"assets/images/users/user1.jpg",name:"Johnathan Doe",post:"Web Designer",address:"795 Folsom Ave, Suite 600 San Francisco, CADGE 94107",contactno:1234567890,insta:254,linkedin:54,facebook:154},{img:"assets/images/users/user2.jpg",name:"Oliver Smith",post:"Theme Designer",address:"55 E 11th St #1OTH, Suite 600 New York, NY, 10003 ",contactno:2122288403,insta:150,linkedin:14,facebook:165},{img:"assets/images/users/user3.jpg",name:"George Johnson",post:"Front End Developer",address:"36 W 138th St, San Francisco New York, NY, 10037",contactno:2122341783,insta:300,linkedin:65,facebook:130},{img:"assets/images/users/user4.jpg",name:"Harry Potter",post:"Hacker",address:"2289 5th Ave, Suite 600 San Francisco New York, NY, 10037",contactno:2124568403,insta:220,linkedin:38,facebook:178},{img:"assets/images/users/user5.jpg",name:"Jack Williams",post:"Back End Developer",address:"425 5th Ave, San Francisco New York, NY, 10016",contactno:1544568745,insta:650,linkedin:150,facebook:195},{img:"assets/images/users/user1.jpg",name:"Jacob Jones",post:"Graphics Designer",address:"17 Stuyvesant Walk, Suite 600 New York, NY, 10009",contactno:1507847890,insta:151,linkedin:29,facebook:160}]}applyFilter(i){this.contact=this.filter(i.target.value)}filter(i){return this.contact.filter(d=>-1!==d.name.toLowerCase().indexOf(i.toLowerCase()))}get f(){return this.contacts.controls}onSubmit(){this.submitted=!0,!this.contacts.invalid&&console.log(JSON.stringify(this.contacts.value,null,2))}addContact(){const i=new Yg;i.img="assets/images/users/user1.jpg",null!=this.contacts&&(i.name=this.contacts?.get("name")?.value),i.post=this.contacts?.get("post")?.value,i.address=this.contacts?.get("address")?.value,i.contactno=this.contacts?.get("contactno")?.value,i.insta=this.contacts?.get("insta")?.value,i.linkedin=this.contacts?.get("linkedin")?.value,i.facebook=this.contacts?.get("facebook")?.value,this.contact.push(i)}static#e=this.\u0275fac=function(d){return new(d||c)(e.Y36(nt.FF),e.Y36(V.QS),e.Y36(V.qu))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["ng-component"]],standalone:!0,features:[e.jDz],decls:14,vars:1,consts:[[1,"row"],[1,"col-md-12"],[1,"card"],[1,"card-body"],[1,"col-md-6","col-lg-3","col-xl-2"],["type","text","type","text","name","search","autocomplete","off","placeholder","Search here...",1,"form-control","form-control-lg",3,"keyup"],[1,"col-md-6","col-lg-9","col-xl-10","text-md-end","mt-4","mt-md-0"],[1,"btn","btn-lg","btn-primary","text-white",3,"click"],[1,"fa","fa-plus-square","me-2"],["class","row justify-content-center"],["addContactModal",""],[1,"row","justify-content-center"],[1,"col-md-4"],[1,"card-body","text-center"],["width","100",1,"rounded-circle","border","p-1",3,"src"],[1,"card-title","mt-3","mb-0"],[1,"text-muted"],[1,"mt-3","button-group"],[1,"btn","btn-info"],[1,"btn","btn-light"],[1,"mt-3","pt-3"],[1,"fas","fa-mobile-alt","me-2"],[1,"d-flex","text-center","justify-content-md-center","bg-light","border-top"],[1,"col-4","border-end","border-bottom","py-2"],["href","javascript:void(0)",1,"link"],[1,"icon-social-instagram","me-2"],[1,"icon-social-linkedin","me-2"],[1,"col-4","py-2","border-bottom"],[1,"icon-social-facebook","me-2"],["class","col-md-4"],[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[3,"formGroup","ngSubmit"],[1,"mb-3"],["for","contactname"],["type","text","required","","id","contactname","formControlName","name","placeholder","name here",1,"form-control",3,"ngClass"],["class","invali
1d-feedback"],["for","contactpost"],["type","text","required","","id","contactpost","formControlName","post","placeholder","post here",1,"form-control",3,"ngClass"],["for","contactadd"],["type","text","required","","id","contactadd","formControlName","address","placeholder","address here",1,"form-control",3,"ngClass"],["for","contactno"],["type","text","required","","id","contactno","formControlName","contactno","placeholder","Number here",1,"form-control",3,"ngClass"],["for","contactinsta"],["type","text","required","","id","contactinsta","formControlName","insta","placeholder","Instagram Follower here",1,"form-control",3,"ngClass"],["for","contactlinked"],["type","text","required","","id","contactlinked","formControlName","linkedin","placeholder","Linkedin Follower here",1,"form-control",3,"ngClass"],["for","contactfacebook"],["type","text","required","","id","contactfacebook","formControlName","facebook","placeholder","Facebook Follower here",1,"form-control",3,"ngClass"],["type","submit",1,"btn","btn-primary",3,"disabled","click"],[1,"invalid-feedback"]],template:function(d,p){if(1&d){const w=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",0)(5,"div",4)(6,"input",5),e.NdJ("keyup",function(I){return p.applyFilter(I)}),e.qZA()(),e.TgZ(7,"div",6)(8,"button",7),e.NdJ("click",function(){e.CHM(w);const I=e.MAs(13);return e.KtG(p.open(I))}),e._UZ(9,"i",8),e._uU(10,"Add Contact "),e.qZA()()()()()()(),e.YNc(11,jg,3,0,"div",9)(12,cm,44,30,"ng-template",null,10,e.W1O)}2&d&&(e.xp6(11),e.um2(11,p.contact&&p.contact.length?11:-1))},dependencies:[ce.ez,ce.mk,Et.p,V.u5,V._Y,V.Fj,V.JJ,V.JL,V.Q7,V.UX,V.sg,V.u],encapsulation:2})}return c})();const dm=[{firstName:"Raj",lastName:"Dev",mobile:"979797992",home:"jodhpur",company:" F creation",work:"AD",notes:" i qb inujjbw.",imagePath:"assets/images/users/user1.jpg"},{firstName:"Mark",lastName:"Smith",mobile:"989797772",home:"Rajasthan",company:" F creation",work:"Designer",notes:" noyes kns nal sjj s slhjal.",imagePath:"assets/images/users/user2.jpg"},{firstName:"Jony",lastName:"Deep",mobile:"9234567563",home:"LA",company:" F creation",work:"Admin",notes:" admin : baun ja ayu gsiko iaij sikioa...",imagePath:"assets/images/users/user3.jpg"},{firstName:"Leonardo",lastName:"Caprio",mobile:"7837937777",home:"NJ",company:" F creation",work:"ADMIN",notes:"Leo nah ujhakj jjj akkak asdkfga an a .",imagePath:"assets/images/users/user4.jpg"}];let kd=(()=>{class c{constructor(){this.contacts=dm}getContacts(){return this.contacts}static#e=this.\u0275fac=function(d){return new(d||c)};static#t=this.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac})}return c})();const Md=(c,_)=>_.firstName;function fm(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"li",11),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw();return e.KtG(k.onSelect(w))}),e._UZ(1,"img",12),e.TgZ(2,"span",13),e._uU(3),e.qZA()()}if(2&c){const i=_.$implicit,d=e.oxw();e.ekj("active",i===d.selectedContact),e.xp6(),e.Q6J("src",i.imagePath,e.LSH),e.xp6(2),e.AsE("",i.firstName,"\xa0",i.lastName,"")}}function hm(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",19),e.NdJ("click",function(){e.CHM(i);const p=e.oxw(2);return e.KtG(p.editContact())}),e.TgZ(1,"div",20),e._UZ(2,"img",21),e.qZA(),e.TgZ(3,"div",22)(4,"table",23)(5,"tbody")(6,"tr")(7,"td",24),e._uU(8,"Name"),e.qZA(),e.TgZ(9,"td",25),e._uU(10),e.qZA()(),e.TgZ(11,"tr")(12,"td",24),e._uU(13,"Company"),e.qZA(),e.TgZ(14,"td",25),e._uU(15),e.qZA()(),e.TgZ(16,"tr")(17,"td",24),e._uU(18,"Work"),e.qZA(),e.TgZ(19,"td",25),e._uU(20),e.qZA()(),e.TgZ(21,"tr")(22,"td",24),e._uU(23,"Phone"),e.qZA(),e.TgZ(24,"td",25),e._uU(25),e.qZA()(),e.TgZ(26,"tr")(27,"td",24),e._uU(28,"Address"),e.qZA(),e.TgZ(29,"td",25),e._uU(30),e.qZA()(),e.TgZ(31,"tr")(32,"td",24),e._uU(33,"Note"),e.qZA(),e.TgZ(34,"td",25),e._uU(35),e.qZA()()()()()()}if(2&c){const i=e.oxw(2);e.xp6(2),e.Q6J("src",i.selectedContact.imagePath,e.LSH),e.xp6(8),e.AsE(" ",i.selectedContact.firstName,"\xa0",i.selectedContact.lastName,""),e.xp6(5),e.Oqu(i.selectedContact.company),e.xp6(5),e.Oqu(i.selectedContact.work),e.xp6(5),e.Oqu(i.selectedContact.mobile),e.xp6(5),e.Oqu(i.selectedContact.home),e.xp6(5),e.Oqu(i.selectedContact.notes)}}function pm(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",26)(1,"div",20),e._UZ(2,"img",27),e.qZA(),e.TgZ(3,"div",22)(4,"table",28)(5,"tbody")(6,"tr")(7,"td",24),e._uU(8,"Name"),e.qZA(),e.TgZ(9,"td",29)(10,"input",30),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.selectedContact.firstName=p)}),e.qZA(),e.TgZ(11,"input",31),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.selectedContact.lastName=p)}),e.qZA()()(),e.TgZ(12,"tr")(13,"td",24),e._uU(14,"Company"),e.qZA(),e.TgZ(15,"td")(16,"input",30),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.selectedContact.company=p)}),e.qZA()()(),e.TgZ(17,"tr")(18,"td",24),e._uU(19,"Work"),e.qZA(),e.TgZ(20,"td")(21,"input",30),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.selectedContact.work=p)}),e.qZA()()(),e.TgZ(22,"tr")(23,"td",24),e._uU(24,"Phone"),e.qZA(),e.TgZ(25,"td")(26,"input",32),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.selectedContact.mobile=p)}),e.qZA()()(),e.TgZ(27,"tr")(28,"td",24),e._uU(29,"Address"),e.qZA(),e.TgZ(30,"td")(31,"input",30),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.selectedContact.home=p)}),e.qZA()()(),e.TgZ(32,"tr")(33,"td",24),e._uU(34,"Note"),e.qZA(),e.TgZ(35,"td")(36,"textarea",33),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.selectedContact.notes=p)}),e.qZA()()()()()()()}if(2&c){const i=e.oxw(2);e.xp6(2),e.Q6J("src",i.selectedContact.imagePath,e.LSH),e.xp6(8),e.Q6J("ngModel",i.selectedContact.firstName),e.xp6(),e.Q6J("ngModel",i.selectedContact.lastName),e.xp6(5),e.Q6J("ngModel",i.selectedContact.company),e.xp6(
15),e.Q6J("ngModel",i.selectedContact.work),e.xp6(5),e.Q6J("ngModel",i.selectedContact.mobile),e.xp6(5),e.Q6J("ngModel",i.selectedContact.home),e.xp6(5),e.Q6J("ngModel",i.selectedContact.notes)}}function gm(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div")(1,"div",14)(2,"a",15),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.editContact())}),e._uU(3),e.qZA(),e.TgZ(4,"a",16),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.deleteContact(p.selectedContact))}),e._uU(5," Delete "),e.qZA()(),e.TgZ(6,"div",17),e.YNc(7,hm,36,8,"div",18)(8,pm,37,8),e.qZA()()}if(2&c){const i=e.oxw();e.xp6(3),e.hij(" ",i.editSave," "),e.xp6(4),e.um2(7,i.show?7:8)}}const mm=c=>({"show-panel":c});let _m=(()=>{class c{mobileSidebar(){this.showSidebar=!this.showSidebar}get searchTerm(){return this._searchTerm}set searchTerm(i){this._searchTerm=i,this.filterArray=this.filter(i)}filter(i){return this.contacts.filter(d=>-1!==d.firstName.toLowerCase().indexOf(i.toLowerCase())||-1!==d.lastName.toLowerCase().indexOf(i.toLowerCase()))}constructor(i){this.contactService=i,this.showSidebar=!1,this.contacts=this.contactService.getContacts(),this.selectedContact=null,this.show=!0,this.editSave="Edit",this.filterArray=[],this._searchTerm=""}ngOnInit(){this.filterArray=this.contacts,this.contacts.length>0&&this.onSelect(this.contacts[0])}onSelect(i){this.selectedContact=i}editContact(){"Save"===this.editSave?(this.show=!0,this.editSave="Edit"):(this.show=!1,this.editSave="Save")}
1addContact(){this.contacts.push({firstName:"Enter",lastName:"Name",mobile:"",home:"",company:"",work:"",notes:"",imagePath:"assets/images/users/user1.jpg"}),this.filterArray=this.contacts,this.selectedContact=this.filterArray[this.filterArray.length-1],this.editContact()}deleteContact(i){this.contacts=this.contacts.filter(d=>d.firstName!==i.firstName),this.filterArray=this.contacts.filter(d=>d.firstName!==i.firstName),this.selectedContact=null}static#e=this.\u0275fac=function(d){return new(d||c)(e.Y36(kd))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["app-contacts"]],standalone:!0,features:[e.jDz],decls:15,vars:6,consts:[["href","javascript:void(0)",1,"btn","btn-success","show-left-part","d-block","d-md-none",3,"ngClass","click"],[1,"main-part"],[1,"left-part","bg-white","fixed-left-part",3,"ngClass"],[1,"position-relative"],[1,"p-3","d-flex","align-items-center","border-bottom"],["type","text","placeholder","Search Contact",1,"form-control",3,"ngModel","ngModelChange"],[1,"contact-list","list-style-none"],[1,"right-part","bg-white"],[1,"card"],[1,""],["type","button","id","btnAddContact",1,"btn","btn-primary",3,"click"],[1,"contact-item","border-bottom","p-3",3,"click"],["height","40","width","40",1,"rounded-circle",3,"src"],[1,"ms-3","font-medium"],[1,"px-3","py-3","d-flex","align-items-center","border-bottom"],["href","javascript: void(0);",1,"btn","btn-success","me-2",3,"click"],["href","javascript: void(0);",1,"btn","btn-danger",3,"click"],[1,"px-3"],["class","row"],[1,"row",3,"click"],[1,"col-md-2","text-center","col-xl-1"],["height","100","width","100",1,"rounded-circle","mt-4",3,"src"],[1,"col-md-8"],[1,"table","mt-3","table-lg","table-borderless","align-middle","ms-4"],[1,"fw-bold","detail-title"],[1,"pl-2"],[1,"mt-4","row"],["height","100","width","100",1,"rounded-circle","mt-4","flex-shrink-0",3,"src"],[1,"ms-4","table","table-borderless","align-middle","ms-4"],[1,"d-flex"],["type","text",1,"form-control",3,"ngModel","ngModelChange"],["type","text",1,"form-control","ms-2",3,"ngModel","ngModelChange"],["type","text","maxlength","10",1,"form-control",3,"ngModel","ngModelChange"],[1,"form-control",3,"ngModel","ngModelChange"],["class","contact-item border-bottom p-3",3,"active"]],template:function(d,p){1&d&&(e.TgZ(0,"a",0),e.NdJ("click",function(){return p.mobileSidebar()}),e.qZA(),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"input",5),e.NdJ("ngModelChange",function(k){return p.searchTerm=k}),e.qZA()(),e.TgZ(6,"ul",6),e.SjG(7,fm,4,5,"li",34,Md),e.qZA()()(),e.TgZ(9,"div",7)(10,"div",8)(11,"div",9)(12,"button",10),e.NdJ("click",function(){return p.addContact()}),e._uU(13,"Add New Contact"),e.qZA(),e.YNc(14,gm,9,2,"div"),e.qZA()()()()),2&d&&(e.Q6J("ngClass",p.showSidebar?"ti-close":"ti-menu"),e.xp6(2),e.Q6J("ngClass",e.VKq(4,mm,p.showSidebar)),e.xp6(3),e.Q6J("ngModel",p.searchTerm),e.xp6(2),e.wJu(p.filterArray),e.xp6(7),e.um2(14,p.selectedContact?14:-1))},dependencies:[ce.ez,ce.mk,V.u5,V.Fj,V.JJ,V.nD,V.On,V.UX],styles:['.detail-title[_ngcontent-%COMP%]{width:80px;position:relative}.detail-title[_ngcontent-%COMP%]:after{content:":";position:absolute;right:0}.contact-list[_ngcontent-%COMP%] .contact-item[_ngcontent-%COMP%]:hover{cursor:pointer}.contact-list[_ngcontent-%COMP%] .contact-item.active[_ngcontent-%COMP%]{background-color:#e9ecef}#btnAddContact[_ngcontent-%COMP%]{position:absolute;right:15px;top:15px}']})}return c})();class Dd{constructor(){this.Id=202,this.status=!1,this.title="",this.priority="",this.dueDate="",this.notes="",this.border=!1,this.sectionTaskType=""}}let vm=(()=>{class c extends nt.DO{constructor(){super(...arguments),this.DELIMITER="-"}fromModel(i){if(i){const d=i.split(this.DELIMITER);return{day:parseInt(d[0],10),month:parseInt(d[1],10),year:parseInt(d[2],10)}}return null}toModel(i){return i?i.day+this.DELIMITER+i.month+this.DELIMITER+i.year:null}static#e=this.\u0275fac=(()=>{let i;return function(p){return(i||(i=e.n5z(c)))(p||c)}})();static#t=this.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac})}return c})(),ym=(()=>{class c extends nt.NG{constructor(){super(...arguments),this.DELIMITER="/"}parse(i){if(i){const d=i.split(this.DELIMITER);return{day:parseInt(d[0],10),month:parseInt(d[1],10),year:parseInt(d[2],10)}}return null}format(i){return i?i.day+this.DELIMITER+i.month+this.DELIMITER+i.year:""}static#e=this.\u0275fac=(()=>{let i;return function(p){return(i||(i=e.n5z(c)))(p||c)}})();static#t=this.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac})}return c})();const xm=[{Id:101,status:!1,title:"Design the solution",priority:"normal",dueDate:"25-05-2020",notes:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.",sectionTaskType:"section",border:!1},{Id:102,status:!0,title:"Identify resources to be monitored.",priority:"low",dueDate:"25-05-2020",notes:"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using.",sectionTaskType:"task",border:!1},{Id:103,status:!1,title:"Define users and workflow",priority:"low",dueDate:"25-05-2020",notes:"Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).",sectionTaskType:"task",border:!1},{Id:104,status:!1,title:"Identify event sources by resource type.",priority:"high",dueDate:"25-05-2020",notes:"Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words",sectionTaskType:"task",border:!1},{Id:105,status:!1,title:"Define the relationship between resources and business systems.",priority:"normal",dueDate:"25-05-2020",notes:"If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet.",sectionTaskType:"task",border:!1},{Id:106,status:!0,title:"Identify tasks and URLs by resource type.",priority:"high",dueDate:"25-05-2020",notes:"It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.",sectionTaskType:"task",border:!1},{Id:107,status:!1,title:"Prepare for implementation",priority:"normal",dueDate:"31-05-2015",notes:"The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33.",sectionTaskType:"section",border:!1},{Id:108,status:!0,title:"Identify the implementation team.",priority:"low",dueDate:"14-01-2018",notes:"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using.",sectionTaskType:"task",border:!1},{Id:109,status:!1,title:"Order the server hardware for production assurance (QA).",priority:"low",dueDate:"15-11-2019",notes:"Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.",sectionTaskType:"task",border:!1},{Id:110,status:!1,title:"Order console machines.",priority:"low",dueDate:"09-01-2015",notes:"Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?",sectionTaskType:"task",border:!1},{Id:111,status:!0,title:"Order prerequisite software.",priority:"normal",dueDate:"21-12-2016",notes:"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness.",sectionTaskType:"task",border:!1},{Id:112,status:!0,title:"Identify production LPARs.",priority:"high",dueDate:"19-01-2019",notes:"Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise",sectionTaskType:"task",border:!1}];let Zd=(()=>{class c{constructor(){this.sidebarShow=!1}getSectionWiseTask(){return xm}static#e=this.\u0275fac=function(d){return new(d||c)};static#t=this.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})();function bm(c,_){1&c&&(e.TgZ(0,"label",23),e._uU(1,"MARK AS INCOMPLETE"),e.qZA())}function wm(c,_){1&c&&(e.TgZ(0,"label",23),e._uU(1,"MARK AS COMPLETE"),e.qZA())}function Cm(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",20)(1,"input",21),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.selectedST.status=p)})("change",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.checkboxValue(p,w.selectedST))}),e.qZA(),e.YNc(2,bm,2,0,"label",22)(3,wm,2,0,"label",22),e.qZA()}if(2&c){const i=e.oxw(2);e.xp6(),e.Q6J("ngModel",i.selectedST.status),e.xp6(),e.um2(2,i.selectedST.status?2:-1),e.xp6(),e.um2(3,i.selectedST.status?-1:3)}}function Tm(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"form")(1,"div",24)(2,"label"),e._uU(3),e.qZA(),e.TgZ(4,"textarea",25),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.selectedST.title=p)}),e.qZA()(),e.TgZ(5,"div",26)(6,"div",27)(7,"label"),e._uU(8," Priority"),e.qZA(),e.TgZ(9,"select",28),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.selectedST.priority=p)}),e.TgZ(10,"option",29),e._uU(11,"Low"),e.qZA(),e.TgZ(12,"option",30),e._uU(13,"Normal"),e.qZA(),e.TgZ(14,"option",31),e._uU(15,"High"),e.qZA()()(),e.TgZ(16,"div",27)(17,"label"),e._uU(18,"Due Date"),e.qZA(),e.TgZ(19,"div",24)(20,"div",32)(21,"input",33,34),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.selectedST.dueDate=p)}),e.qZA(),e.TgZ(24,"div",35)(25,"button",36),e.NdJ("click",function(){e.CHM(i);const p=e.MAs(23);return e.KtG(p.toggle())}),e._UZ(26,"i-feather",37),e.qZA()()()()()(),e.TgZ(27,"div",24)(28,"label"),e._uU(29,"Notes"),e.qZA(),e.TgZ(30,"textarea",38),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.selectedST.notes=p)}),e.qZA()(),e.TgZ(31,"div",24)(32,"button",39),e.NdJ("click",function(){e.CHM(i);const p=e.oxw(2);return e.KtG(p.closeRightMenu())}),e._UZ(33,"i-feather",40),e._uU(34),e.qZA()(),e.TgZ(35,"div",24)(36,"button",41),e.NdJ("click",function(){e.CHM(i);const p=e.oxw(2);return e.KtG(p.deleteClick(p.selectedST))}),e._UZ(37,"i-feather",42),e._uU(38),e.qZA()()()}if(2&c){const i=e.oxw(2);e.xp6(3),e.hij("",i.titleTaskSection," Title"),e.xp6(),e.Q6J("ngModel",i.selectedST.title),e.xp6(5),e.Q6J("ngModel",i.selectedST.priority),e.xp6(12),e.Q6J("ngModel",i.selectedST.dueDate),e.xp6(9),e.Q6J("ngModel",i.selectedST.notes),e.xp6(4),e.hij(" Save ",i.titleTaskSection," "),e.xp6(4),e.hij(" Delete ",i.titleTaskSection," ")}}function Sm(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div")(1,"div",15),e.YNc(2,Cm,4,3,"div",16),e.TgZ(3,"div",3)(4,"a",17),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.closeRightMenu())}),e._UZ(5,"i-feather",18),e.qZA()()(),e.TgZ(6,"div",19),e.YNc(7,Tm,39,7,"form"),e.qZA()()}if(2&c){const i=e.oxw();
1e.xp6(2),e.um2(2,i.selectedST?2:-1),e.xp6(5),e.um2(7,i.selectedST?7:-1)}}const ii=c=>({"border-start":c});function Ed(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div")(1,"div",45),e.NdJ("click",function(){e.CHM(i);const p=e.oxw().$implicit,w=e.oxw();return e.KtG(w.sectionTaskSelected(p))}),e._UZ(2,"i",46),e.TgZ(3,"div",47),e._uU(4),e.qZA()()()}if(2&c){const i=e.oxw().$implicit;e.xp6(),e.Q6J("ngStyle",e.VKq(2,ii,i.border?"3px solid #2962ff":"none")),e.xp6(3),e.Oqu(i.title)}}function Pd(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"span",62),e.NdJ("click",function(){e.CHM(i);const p=e.oxw(2).$implicit,w=e.oxw();return e.KtG(w.sectionTaskSelected(p))}),e.TgZ(1,"span",63),e._uU(2),e.qZA()()}if(2&c){const i=e.oxw(2).$implicit;e.xp6(2),e.Oqu(i.title)}}function Jr(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",62),e.NdJ("click",function(){e.CHM(i);const p=e.oxw(2).$implicit,w=e.oxw();return e.KtG(w.sectionTaskSelected(p))}),e.TgZ(1,"span",64),e._uU(2),e.qZA()()}if(2&c){const i=e.oxw(2).$implicit;e.xp6(2),e.hij(" ",i.title,"")}}function jr(c,_){1&c&&(e.TgZ(0,"span",65),e._UZ(1,"i",66),e._uU(2," low "),e.qZA())}function Gl(c,_){1&c&&(e.TgZ(0,"span",67),e._UZ(1,"i",68),e._uU(2," high "),e.qZA())}function Am(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",48)(1,"div",49)(2,"div",50),e._UZ(3,"i",46),e.TgZ(4,"span",51)(5,"input",52),e.NdJ("change",function(p){e.CHM(i);const w=e.oxw().$implicit,k=e.oxw();return e.KtG(k.checkboxValue(p,w))}),e.qZA(),e._UZ(6,"label",53),e.qZA()(),e.YNc(7,Pd,3,1,"span")(8,Jr,3,1,"div"),e.qZA(),e.TgZ(9,"div",54),e.NdJ("click",function(){e.CHM(i);const p=e.oxw().$implicit,w=e.oxw();return e.KtG(w.sectionTaskSelected(p))}),e.TgZ(10,"div",55),e.YNc(11,jr,3,0,"span",56)(12,Gl,3,0,"span",57),e.TgZ(13,"div",58)(14,"div",59),e._UZ(15,"i-feather",60),e.qZA(),e.TgZ(16,"span",61),e._uU(17),e.qZA()()()()()}if(2&c){const i=e.oxw(),d=i.$implicit,p=i.$index;e.Q6J("ngStyle",e.VKq(9,ii,d.border?"3px solid #2962ff":"none")),e.xp6(5),e.MGl("id","check",p,""),e.Q6J("checked",d.status),e.xp6(),e.MGl("for","check",p,""),e.xp6(),e.um2(7,d.status?7:-1),e.xp6(),e.um2(8,d.status?-1:8),e.xp6(3),e.um2(11,"low"===d.priority?11:-1),e.xp6(),e.um2(12,"high"===d.priority?12:-1),e.xp6(5),e.Oqu(d.dueDate)}}function km(c,_){if(1&c&&(e.TgZ(0,"div",43),e.YNc(1,Ed,5,4,"div")(2,Am,18,11,"div",44),e.qZA()),2&c){const i=_.$implicit;e.xp6(),e.um2(1,"section"===i.sectionTaskType?1:-1),e.xp6(),e.um2(2,"task"===i.sectionTaskType?2:-1)}}let Mm=(()=>{class c{constructor(i){this.ts=i,this.sectionTask=null,this.selectedST=Object.create(null),this.count=0,this.totalcount=0,this.completedcount=0,this.titleTaskSection="",this.borderClass=!1,this.sectionTask=i.getSectionWiseTask(),this.remainingTasks(),this.totalcount=this.sectionTask.filter(d=>"task"===d.sectionTaskType).length,this.completedcount=this.sectionTask.filter(d=>"task"===d.sectionTaskType&&d.status).length}ngOnInit(){}addTaskSection(i){if("300px"!==document.getElementById("rightMenu").style.width){if(document.getElementById("rightMenu").style.width="300px","task"===i){this.titleTaskSection="Task";const d=new Dd;d.status=!1,d.sectionTaskType="task",d.title="Task",d.priority="normal",this.sectionTask?.splice(0,0,d),this.sectionTask?.push(d),this.selectedST=this.sectionTask?.find(p=>p===d)}else{this.titleTaskSection="Section";const d=new Dd;d.status=!1,d.sectionTaskType="section",d.title="Section",d.priority="normal",this.sectionTask?.splice(0,0,d),this.sectionTask?.push(d),this.selectedST=this.sectionTask?.find(p=>p===d)}this.remainingTasks()}else this.closeRightMenu()}sectionTaskSelected(i){"300px"!==document.getElementById("rightMenu").style.width?(document.getElementById("rightMenu").style.width="300px",this.titleTaskSection="section"===i.sectionTaskType?"Section":"Task",this.selectedST=i,this.selectedST.border=!0):this.closeRightMenu()}closeRightMenu(){document.getElementById("rightMenu").style.width="0",void 0!==this.selectedST&&(this.selectedST.border=!1),this.selectedST=void 0}remainingTasks(){if(this.count=0,this.sectionTask)for(const i of this.sectionTask)"task"===i.sectionTaskType&&(i.status||this.count++)}checkboxValue(i,d){d.status=i.currentTarget.checked,this.remainingTasks()}deleteClick(i){null!==this.sectionTask&&(this.sectionTask=this.sectionTask.filter(d=>d!==i)),this.remainingTasks(),this.closeRightMenu()}drop(i){null!==this.sectionTask&&(0,U.bA)(this.sectionTask,i.previousIndex,i.currentIndex)}static#e=this.\u0275fac=function(d){return new(d||c)(e.Y36(Zd))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["app-tasks"]],standalone:!0,features:[e._Bn([{provide:nt.DO,useClass:vm},{provide:nt.NG,useClass:ym}]),e.jDz],decls:32,vars:4,consts:[["id","rightMenu",1,"app-sidebar","card"],[1,"d-md-flex","align-items-center","mt-2","bg-white","p-3"],[1,"mb-0"],[1,"ms-auto"],["type","button",1,"btn","btn-cyan","text-white",3,"click"],["name","plus",1,"feather-sm","me-2"],["type","button",1,"btn","btn-dark","ms-3",3,"click"],[1,"d-md-flex","align-items-center","justify-content-between","border-top","border-bottom","bg-white","p-2"],["href","javascript:void(0)",1,"d-flex","align-items-center","p-2","rounded-pill","bg-light"],[1,"badge","bg-danger","badge-pill","px-3","fw-bold","fs-3"],[1,"mb-0","ms-1","text-dark"],["href","javascript:void(0)",1,"d-flex","align-items-center","p-2","rounded-pill","bg-light","mt-3","mt-md-0"],[1,"badge","bg-success","badge-pill","px-3","fw-bold","fs-3"],[1,"badge","bg-info","badge-pill","px-3","fw-bold","fs-3"],["cdkDropList","",1,"bg-white",3,"cdkDropListDropped"],[1,"d-flex","p-3","border-bottom","card-header"],["class","d-flex align-items-center"],["href","javascript:void(0)",1,"text-danger",3,"click"],["name","x",1,"feather-sm"],[1,"p-4"],[1,"d-flex","align-items-center"],["type","checkbox",1,"custom-checkbox-width",3,"ngModel","ngModelChange","change"],["class","ms-3 mb-0 text-dark font-medium"],[1,"ms-3","mb-0","text-dark","font-medium"],[1,"mb-3"],["name","title","rows","3",1,"form-control",3,"ngModel","ngModelChange"],[1,"mb-3","row"],[1,"col"],["name","priority",1,"form-select",3,"ngModel","ngModelChange"],["value","low"],["value","normal"],["value","high"],[1,"input-group"],["placeholder","Due Date","name","d2","ngbDatepicker","",1,"form-control",3,"ngModel","ngModelChange"],["c2","ngModel","d2","ngbDatepicker"],[1,"input-group-append"],["type","button",1,"btn","btn-outline-secondary","calendar",3,"click"],["name","calendar",1,"feather-sm"],["name","notes","rows","5",1,"form-control",3,"ngModel","ngModelChange"],["type","button",1,"btn","btn-success","d-block","w-100",3,"click"],["name","save",1,"feather-sm","me-2"],["type","button",1,"btn","btn-danger","d-block","w-100",3,"click"],["name","trash-2",1,"feather-sm","me-2"],["cdkDrag","",1,"drag-list"],["class","d-md-flex align-items-center p-3 cursor border-bottom",3,"ngStyle"],[1,"bg-light","text-dark","cursor","p-3","d-flex","align-items-center",3,"ngStyle","click"],[1,"mdi","mdi-drag-vertical","fs-6","drag-icon","my-n2"],[1,"fw-bold","fs-5"],[1,"d-md-flex","align-items-center","p-3","cursor","border-bottom",3,"ngStyle"],[1,"curs
1or","d-flex","align-items-center"],[1,"flex-shrink-0","d-flex","align-items-center"],[1,"form-check"],["type","checkbox",1,"form-check-input",3,"id","checked","change"],[1,"form-check-label",3,"for"],[1,"ms-auto","mt-3","mt-md-0",3,"click"],[1,"d-flex","align-items-center","justify-content-center"],["class","me-3 text-success font-medium text-center"],["class","me-3 text-danger font-medium text-center"],[1,"ms-auto","text-center","border-start","ps-3"],[1,"text-center"],["name","calendar",1,"feather-sm","me-1"],[1,"fw-normal","text-muted"],[3,"click"],[1,"text-muted","fs-4","text-decoration-linethrougth"],[1,"fs-4"],[1,"me-3","text-success","font-medium","text-center"],[1,"fas","fa-caret-down","me-1","fs-5","d-block"],[1,"me-3","text-danger","font-medium","text-center"],[1,"fas","fa-caret-up","me-1","fs-5","d-block"],["cdkDrag","","class","drag-list"]],template:function(d,p){1&d&&(e.TgZ(0,"div",0),e.YNc(1,Sm,8,2,"div"),e.qZA(),e.TgZ(2,"div",1)(3,"div")(4,"h3",2),e._uU(5,"Tasks"),e.qZA()(),e.TgZ(6,"div",3)(7,"button",4),e.NdJ("click",function(){return p.addTaskSection("task")}),e._UZ(8,"i-feather",5),e._uU(9," Add Task "),e.qZA(),e.TgZ(10,"button",6),e.NdJ("click",function(){return p.addTaskSection("section")}),e._UZ(11,"i-feather",5),e._uU(12," Add Section "),e.qZA()()(),e.TgZ(13,"div",7)(14,"a",8)(15,"span",9),e._uU(16),e.qZA(),e.TgZ(17,"h5",10),e._uU(18," Incomplete Task(s) "),e.qZA()(),e.TgZ(19,"a",11)(20,"span",12),e._uU(21),e.qZA(),e.TgZ(22,"h5",10),e._uU(23," Complete Task(s) "),e.qZA()(),e.TgZ(24,"a",11)(25,"span",13),e._uU(26),e.qZA(),e.TgZ(27,"h5",10),e._uU(28," Total Task(s) "),e.qZA()()(),e.TgZ(29,"div",14),e.NdJ("cdkDropListDropped",function(k){return p.drop(k)}),e.SjG(30,km,3,2,"div",69,e.x6l),e.qZA()),2&d&&(e.xp6(),e.um2(1,null!==p.selectedST?1:-1),e.xp6(15),e.Oqu(p.count),e.xp6(5),e.Oqu(p.completedcount),e.xp6(5),e.Oqu(p.totalcount),e.xp6(4),e.wJu(p.sectionTask))},dependencies:[Et.p,Et.u,ce.ez,ce.PC,V.u5,V._Y,V.YN,V.Kr,V.Fj,V.Wl,V.EJ,V.JJ,V.JL,V.On,V.F,V.UX,nt.M,nt.J4],styles:[".cursor[_ngcontent-%COMP%]{cursor:pointer}.custom-checkbox-width[_ngcontent-%COMP%]{width:16px;height:16px}.text-decoration-linethrougth[_ngcontent-%COMP%]{text-decoration:line-through}.border-md-left[_ngcontent-%COMP%]{border-start:3px solid blue}.border-md-left-none[_ngcontent-%COMP%]{border-start:0}.drag-list[_ngcontent-%COMP%] .drag-icon[_ngcontent-%COMP%]{visibility:hidden}.drag-list[_ngcontent-%COMP%]:hover .drag-icon[_ngcontent-%COMP%]{visibility:visible}@media (max-width: 767px){.drag-list[_ngcontent-%COMP%] .drag-icon[_ngcontent-%COMP%]{visibility:visible}}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging[_ngcontent-%COMP%] .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"]})}return c})();const Dm=[{Id:1,Imagepath:"assets/images/users/user1.jpg",Name:"Emma Adams",Tags:"Friend",Jobtitle:"Web Developer",Company:"Wrappixel",Email:"[email protected]",Phonenumber:1548462031,Address:"Boston, USA",DOB:new Date,Description:"Felis bibendum ut tristique et egestas quis. In cursus turpis massa tincidunt dui ut."},{Id:2,Imagepath:"assets/images/users/user2.jpg",Name:"Olivia Allen",Tags:"Family",Jobtitle:"Ethical Hacker",Company:"Infosys",Email:"[email protected]",Phonenumber:9478021640,Address:"Sydney, Australia",DOB:new Date,Description:"Est ante in nibh mauris cursus mattis molestie a iaculis."},{Id:3,Imagepath:"assets/images/users/user3.jpg",Name:"Emily Atkinson",Tags:"Friend",Jobtitle:"UX/UI Designer",Company:"Google",Email:"[email protected]",Phonenumber:6302154203,Address:"Edinburgh, UK",DOB:new Date,Description:"Orci nulla pellentesque dignissim enim."},{Id:4,Imagepath:"assets/images/users/user4.jpg",Name:"Isabella Anderson",Tags:"Friend",Jobtitle:"UX/UI Designer",Company:"Tesala",Email:"[email protected]",Phonenumber:1503201502,Address:"Miami, USA",DOB:new Date,Description:"Gravida cum sociis natoque penatibus et magnis dis parturient."},{Id:5,Imagepath:"assets/images/users/user5.jpg",Name:"Amelia Armstrong",Tags:"Office",Jobtitle:"Ethical Hacker",Company:"Infosys",Email:"[email protected]",Phonenumber:8124502316,Address:"Tokyo, Japan",DOB:new Date,Description:"Sit amet luctus venenatis lectus magna fringilla urna porttitor."},{Id:6,Imagepath:"assets/images/users/user1.jpg",Name:"Sofia Bailey",Tags:"Family",Jobtitle:"Theme Designer",Company:"Google",Email:"[email protected]",Phonenumber:7080642130,Address:"New York, USA",DOB:new Date,Description:"Sapien et ligula ullamcorper malesuada proin libero nunc."},{Id:7,Imagepath:"assets/images/users/user2.jpg",Name:"Victoria Sharma",Tags:"Friend",Jobtitle:"Project Manager",Company:"Wrappixel",Email:"[email protected]",Phonenumber:9040263102,Address:"Miami, USA",DOB:new Date,Description:"Id venenatis a condimentum vitae sapien pellentesque habitant morbi."},{Id:8,Imagepath:"assets/images/users/user3.jpg",Name:"Olivia Allen",Tags:"Friend",Jobtitle:"Ethical Hacker",Company:"Infosys",Email:"[email protected]",Phonenumber:7800245169,Address:"Sydney, Australia",DOB:new Date,Description:"Elit at imperdiet dui accumsan sit amet nulla facilisi morbi. Porta lorem mollis aliquam ut porttitor leo a diam."},{Id:9,Imagepath:"assets/images/users/user4.jpg",Name:"Emily Atkinson",Tags:"Office",Jobtitle:"UX/UI Designer",Company:"Google",Email:"[email protected]",Phonenumber:9874560213,Address:"Edinburgh, UK",DOB:new Date,Description:"Vivamus arcu felis bibendum ut tristique."},{Id:10,Imagepath:"assets/images/users/user5.jpg",Name:"Emma Adams",Tags:"Office",Jobtitle:"Web Developer",Company:"Wrappixel",Email:"[email protected]",Phonenumber:4500231620,Address:"Boston, USA",DOB:new Date,Description:"Habitasse platea dictumst vestibulum rhoncus."},{Id:11,Imagepath:"assets/images/users/user1.jpg",Name:"Olivia Allen",Tags:"Friend",Jobtitle:"Ethical Hacker",Company:"Infosys",Email:"[email protected]",Phonenumber:9748020130,Address:"Sydney, Australia",DOB:new Date,Description:"Aliquet porttitor lacus luctus accumsan tortor posuere."},{Id:12,Imagepath:"assets/images/users/user2.jpg",Name:"Emily Atkinson",Tags:"Friend",Jobtitle:"UX/UI Designer",Company:"Google",Email:"[email protected]",Phonenumber:8200154212,Address:"Edinburgh, UK",DOB:new Date,Description:"Elit at imperdiet dui accumsan sit amet nulla."}];class Hl{constructor(){this.Id=0,this.Imagepath="",this.Name="",this.Tags="",this.Jobtitle="",this.Company="",this.Email="",this.Phonenumber=0,this.Address="",this.DOB=null,this.Description=""}}const br=[{MailId:"bb428c03-1bc6-4f3d-9d5e-268ec44eebc3",fromId:"899d0e31-b71e-4d95-a8a0-6a8bceb314bd",Subject:"Lorem ipsum dolor sit amet, consectetuer adipiscing elit.",date:new Date,Message:"1.The phrase Lorem ipsum dolor sit amet consectetuer appears in Microsoft Word online Help. This phrase has the appearance of an intelligent Latin idiom. Actually, it is nonsense.",readStatus:!0,seen:!0,mailbox:"Inbox",filter:["Star"],label:["Account","Personal"]},{MailId:"a19bf9fc-e877-49e7-a75a-b089a2c35f18",fromId:"3782c174-1f2c-4dc4-b75d-0bedf400e023",Subject:"Lorem ipsum dolor sit amet, consectetuer adipiscing elit.",date:new Date,Message:"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.",readStatus:!0,seen:!0,mailbox:"Inbox",filter:["Important"],label:[]},{MailId:"910d7e0a-f3b0-47a7-bb53-9036ed717298",fromId:"eef93cb1-7766-4413-a5cf-ecbf71fa3674",Subject:"consectetuer adipiscing elit.",date:new Date,Message:"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.",readStatus:!1,seen:!1,mailbox:"Inbox",filter:[],label:["Invoice"]},{MailId:"c79cb60a-baf8-4349-b9c3-88d567b965a2",fromId:"899d0e31-b71e-4d95-a8a0-6a8bceb314bd",Subject:"Aenean commodo ligula eget dolor. Aenean massa.",date:new Date,Message:"The phrase Lorem ipsum dolor sit amet consectetuer appears. This phrase has the appearance of an intelligent Latin idiom. Actually, it is nonsense.",readStatus:!1,seen:!1,mailbox:"Inbox",filter:[],label:["Personal"]},{MailId:"910d7e0a-f3b0-47a7-bb53-9036ed717298",fromId:"a41c6c4a-9cb1-45d1-8c6f-091044ba51ff",Subject:"Lorem ipsum dolor sit amet, consectetuer adipiscing elit.Aenean commodo ligula eget dolor. Aenean massa.",date:new Date,Message:"The phrase Lorem ipsum dolor sit amet consectetuer appears in Microsoft Word online Help. This phrase has the appearance of an intelligent Latin idiom. Actually, it is nonsense.",readStatus:!1,seen:!1,mailbox:"Inbox",filter:["Star","Important"],label:[]},{MailId:"35bddac1-1046-4c96-a1ac-ffd75def7f5a",fromId:"a41c6c4a-9cb1-45d1-8c6f-091044ba51ff",Subject:"Lorem ipsum dolor sit amet,Aenean commodo ligula eget dolor. Aenean massa.",date:new Date,Message:"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.",readStatus:!0,seen:!0,mailbox:"Inbox",filter:[],label:[]},{MailId:"0c914dfd-be0d-4d46-b963-47bcb064154f",fromId:"3782c174-1f2c-4dc4-b75d-0bedf400e023",Subject:"Lorem ipsum dolor sit amet, consectetuer adipiscing elit.Aenean commodo ligula eget dolor. Aenean massa.",date:new Date,Message:"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.",readStatus:!1,seen:!1,mailbox:"Draft",filter:[],label:["Work"]},{MailId:"11538c3a-f2a7-4a7c-a237-4e61aa96423b",fromId:"a41c6c4a-9cb1-45d1-8c6f-091044ba51ff",Subject:"Lorem ipsum dolor sit amet,Aenean commodo ligula eget dolor. Aenean massa.",date:new Date,Message:"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.",readStatus:!1,seen:!1,mailbox:"Inbox",filter:[],label:["Personal","Invoice"]},{MailId:"0f0a5482-8e4f-42a0-b3bb-1f96bc04d85a",fromId:"a41c6c4a-9cb1-45d1-8c6f-091044ba51ff",Subject:"Aenean commodo ligula eget dolor,Aenean commodo ligula eget dolor. Aenean massa.",date:new Date,Message:"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.",readStatus:!1,seen:!1,mailbox:"Inbox",filter:[],label:["Account"]},{MailId:"2b0e4083-00e4-48fd-9cb3-05434767ca66",fromId:"36a1ead7-57a0-4275-8a21-956194ab7cdf",Subject:"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.",date:new Date,Message:"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.",readStatus:!1,seen:!1,mailbox:"Sent",filter:[],label:["Work"]},{MailId:"bf7ab76b-c076-4992-a580-13b1859cd395",fromId:"eef93cb1-7766-4413-a5cf-ecbf71fa3674",Subject:"Lorem ipsum dolor sit amet, consectetuer adipiscing elit.Aenean commodo ligula eget dolor. Aenean massa.",date:new Date,Message:"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa..",readStatus:!1,seen:!1,mailbox:"Sent",filter:[],label:["Payment"]}];let Br=(()=>{class c{constructor(){this.page=1,this.pageSize=6,this.collectionSize=0,this.topLable="",this.mailList=[],this.selectedMail=null,this.selectedUser=null,this.users=[],this.inboxList=[],this.sentList=[],this.draftList=[],this.spamList=[],this.trashList=[],this.isShow=!1,this.inboxCount=0,this.spamCount=0,this.draftCount=0,this.replyShow=!1,this.addClass=!0,this.type=""}static#e=this.\u0275fac=function(d){return new(d||c)};static#t=this.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac})}return c})();const Nd=(c,_)=>_.Name;function Vl(c,_){if(1&c&&(e.TgZ(0,"div",31)(1,"button",32),e._UZ(2,"i-feather",33),e.qZA(),e.TgZ(3,"div",34),e._uU(4),e.qZA()()),2&c){const i=e.oxw(2);e.xp6(4),e.AsE("",i.selectedContact.Jobtitle," , ",i.selectedContact.Company,"")}}function Wr(c,_){if(1&c&&(e.TgZ(0,"div",31)(1,"button",35),e._UZ(2,"i-feather",36),e.qZA(),e.TgZ(3,"div",34),e._uU(4),e.qZA()()),2&c){const i=e.oxw(2);e.xp6(4),e.Oqu(i.selectedContact.Email)}}function Xr(c,_){if(1&c&&(e.TgZ(0,"div",31)(1,"button",37),e._UZ(2,"i-feather",38),e.qZA(),e.TgZ(3,"div",34),e._uU(4),e.qZA()()),2&c){const i=e.oxw(2);e.xp6(4),e.Oqu(i.selectedContact.Phonenumber)}}function Od(c,_){if(1&c&&(e.TgZ(0,"div",31)(1,"button",39),e._UZ(2,"i-feather",40),e.qZA(),e.TgZ(3,"div",34),e._uU(4),e.qZA()()),2&c){const i=e.oxw(2);e.xp6(4),e.Oqu(i.selectedContact.Address)}}function zl(c,_){if(1&c&&(e.TgZ(0,"div",31)(1,"button",41),e._UZ(2,"i-feather",42),e.qZA(),e.TgZ(3,"div",34),e._uU(4),e.ALo(5,"date"),e.qZA()()),2&c){const i=e.oxw(2);
1e.xp6(4),e.Oqu(e.lcZ(5,1,i.selectedContact.DOB))}}function Zm(c,_){if(1&c&&(e.TgZ(0,"div",43)(1,"button",44),e._UZ(2,"i-feather",45),e.qZA(),e.TgZ(3,"div",34),e._uU(4),e.qZA()()),2&c){const i=e.oxw(2);e.xp6(4),e.Oqu(i.selectedContact.Description)}}function Bo(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div"),e._UZ(1,"img",17),e.TgZ(2,"div",18)(3,"div",19)(4,"a",20),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.editContact())}),e._UZ(5,"i-feather",21),e.qZA(),e.TgZ(6,"a",22),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.closeRightMenu())}),e._UZ(7,"i-feather",23),e.qZA()()(),e.TgZ(8,"div",24),e._UZ(9,"img",25),e.TgZ(10,"h4",26),e._uU(11),e.qZA(),e.TgZ(12,"span",27),e._uU(13),e.qZA()(),e.TgZ(14,"ng-scrollbar",28),e.YNc(15,Vl,5,2,"div",29)(16,Wr,5,1,"div",29)(17,Xr,5,1,"div",29)(18,Od,5,1,"div",29)(19,zl,6,3,"div",29)(20,Zm,5,1,"div",30),e.qZA()()}if(2&c){const i=e.oxw();e.xp6(9),e.Q6J("src",i.selectedContact.Imagepath,e.LSH),e.xp6(2),e.Oqu(i.selectedContact.Name),e.xp6(2),e.Oqu(i.selectedContact.Tags),e.xp6(2),e.um2(15,null!=i.selectedContact.Jobtitle&&null!=i.selectedContact.Company?15:-1),e.xp6(),e.um2(16,null!=i.selectedContact.Email?16:-1),e.xp6(),e.um2(17,null!=i.selectedContact.Phonenumber?17:-1),e.xp6(),e.um2(18,null!=i.selectedContact.Address?18:-1),e.xp6(),e.um2(19,null!=i.selectedContact.DOB?19:-1),e.xp6(),e.um2(20,null!=i.selectedContact.Description?20:-1)}}function Wo(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div"),e._UZ(1,"img",17),e.TgZ(2,"div",46)(3,"div",19)(4,"a",47),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.saveClick(p.selectedContact.Id))}),e._UZ(5,"i-feather",48),e.qZA(),e.TgZ(6,"a",49),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.deleteClick(p.selectedContact.Id))}),e._UZ(7,"i-feather",50),e.qZA(),e.TgZ(8,"a",22),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.cancelClick())}),e._UZ(9,"i-feather",23),e.qZA()()(),e.TgZ(10,"div")(11,"form")(12,"div",51)(13,"input",52,53),e.NdJ("change",function(){e.CHM(i);const p=e.MAs(14),w=e.oxw();return e.KtG(w.preview(p.files))}),e.qZA(),e.TgZ(15,"img",54),e.NdJ("click",function(){e.CHM(i);const p=e.MAs(14);return e.KtG(p.click())}),e.qZA(),e.TgZ(16,"div",24)(17,"span",55),e._uU(18,"Change Image"),e.qZA()()(),e.TgZ(19,"ng-scrollbar",28)(20,"div",56)(21,"div",57)(22,"label",58),e._uU(23,"Name"),e.qZA(),e.TgZ(24,"input",59),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.selectedContactCopy.Name=p)}),e.qZA()(),e.TgZ(25,"div",57)(26,"label",58),e._uU(27,"Job Title"),e.qZA(),e.TgZ(28,"input",60),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.selectedContactCopy.Jobtitle=p)}),e.qZA()(),e.TgZ(29,"div",57)(30,"label",58),e._uU(31,"Company name"),e.qZA(),e.TgZ(32,"input",61),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.selectedContactCopy.Company=p)}),e.qZA()(),e.TgZ(33,"div",57)(34,"label",58),e._uU(35,"Email"),e.qZA(),e.TgZ(36,"input",62),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.selectedContactCopy.Email=p)}),e.qZA()(),e.TgZ(37,"div",57)(38,"label",58),e._uU(39,"Phone Number"),e.qZA(),e.TgZ(40,"input",63),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.selectedContactCopy.Phonenumber=p)}),e.qZA()(),e.TgZ(41,"div",57)(42,"label",58),e._uU(43,"Location"),e.qZA(),e.TgZ(44,"input",64),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.selectedContactCopy.Address=p)}),e.qZA()(),e.TgZ(45,"div",57)(46,"label",58),e._uU(47,"Birthdate"),e.qZA(),e.TgZ(48,"input",65),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.selectedContactCopy.DOB=p)}),e.qZA()(),e.TgZ(49,"div",57)(50,"label",58),e._uU(51,"Description"),e.qZA(),e.TgZ(52,"textarea",66),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.selectedContactCopy.Description=p)}),e.qZA()()()()()()()}if(2&c){const i=e.oxw();e.xp6(15),e.Q6J("src",i.selectedContactCopy.Imagepath,e.LSH),e.xp6(9),e.Q6J("ngModel",i.selectedContactCopy.Name),e.xp6(4),e.Q6J("ngModel",i.selectedContactCopy.Jobtitle),e.xp6(4),e.Q6J("ngModel",i.selectedContactCopy.Company),e.xp6(4),e.Q6J("ngModel",i.selectedContactCopy.Email),e.xp6(4),e.Q6J("ngModel",i.selectedContactCopy.Phonenumber),e.xp6(4),e.Q6J("ngModel",i.selectedContactCopy.Address),e.xp6(4),e.Q6J("ngModel",i.selectedContactCopy.DOB),e.xp6(4),e.Q6J("ngModel",i.selectedContactCopy.Description)}}function Em(c,_){if(1&c&&(e.TgZ(0,"span",67),e._uU(1),e.qZA()),2&c){const i=e.oxw();e.xp6(),e.Oqu(i.contactFilter.length)}}function Ei(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"tr")(1,"td"),e._UZ(2,"img",68),e.TgZ(3,"span",69),e._uU(4),e.qZA()(),e.TgZ(5,"td",70)(6,"span")(7,"span",71),e._UZ(8,"i-feather",36),e.qZA(),e._uU(9),e.qZA()(),e.TgZ(10,"td",70)(11,"span")(12,"span",71),e._UZ(13,"i-feather",72),e.qZA(),e._uU(14),e.qZA()(),e.TgZ(15,"td",73)(16,"span")(17,"span",71),e._UZ(18,"i-feather",33),e.qZA(),e._uU(19),e.qZA()(),e.TgZ(20,"td",70)(21,"a",74),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw();return e.KtG(k.tableRowClicked(w))}),e._UZ(22,"i-feather",75),e.qZA(),e.TgZ(23,"a",76),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw();return e.KtG(k.viewClicked(w))}),e._UZ(24,"i-feather",77),e.qZA()()()}if(2&c){const i=_.$implicit;e.xp6(2),e.Q6J("src",i.Imagepath,e.LSH),e.xp6(2),e.Oqu(i.Name),e.xp6(5),e.hij(" ",i.Email," "),e.xp6(5),e.hij(" ",i.Phonenumber," "),e.xp6(5),e.AsE(" ",i.Jobtitle," , ",i.Company," ")}}let Id=(()=>{class c{constructor(i){this.ms=i,this.contacts=Dm,this.contactFilter=null,this.selectedContact=null,this.selectedContactCopy=null,this.editable=!1,this.page=1,this.pageSize=5,this.collectionSize=0,this._searchTerm="",this.imagePath=null,this.imgURL=null,this.message="",this.ms.selectedMail=null}ngOnInit(){this.contactFilter=this.contacts,this.collectionSize=this.contactFilter.length,this.selectedContact=null}get searchTerm(){return this._searchTerm}set searchTerm(i){this._searchTerm=i,this.contactFilter=this.filter(i)}filter(i){return this.contacts.filter(d=>-1!==d.Name.toLowerCase().indexOf(i.toLowerCase()))}tableRowClicked(i){this.selectedContact=i,document.getElementById("rightMenu").style.width="300px",this.editContact()}viewClicked(i){this.selectedContact=i,document.getElementById("rightMenu").style.width="300px"}closeRightMenu(){this.editable=!1,this.selectedContact=null,this.selectedContactCopy=null,document.getElementById("rightMenu").style.width="0"}editContact(){this.selectedContactCopy=Object.assign({},this.selectedContact),this.editable=!0}cancelClick(){this.selectedContact=null,this.selectedContactCopy=null,this.closeRightMenu()}saveClick(i){if(this.contactFilter){const d=this.contactFilter.find(p=>p.Id===i);void 0!==d&&this.selectedContactCopy&&(d.Imagepath=this.selectedContactCopy.Imagepath,d.Name=this.selectedContactCopy.Name,d.Tags=this.selectedContactCopy.Tags,d.Jobtitle=this.selectedContactCopy.Jobtitle,d.Company=this.selectedContactCopy.Company,d.Email=this.selectedContactCopy.Email,d.Phonenumber=this.selectedContactCopy.Phonenumber,d.Address=this.selectedContactCopy.Address,d.DOB=this.selectedContactCopy.DOB,d.Description=this.selectedContactCopy.Description,this.closeRightMenu())}}deleteClick(i){this.contactFilter&&(this.contactFilter=this.contactFilter.filter(d=>d.Id!==i)),this.collectionSize--,this.selectedContact=null,this.closeRightMenu()}addContact(){const i=new Hl;if(this.contactFilter){const d=Math.max.apply(Math,this.contactFilter.map(function(p){return p.Id}))+1;i.Id=d}i.Imagepath="/assets/images/users/user1.jpg",i.Name="New Contact",i.Tags="Test",i.Jobtitle="Job Title",i.Company="Company",i.Email="[email protected]",i.Phonenumber=1111111111,i.Address="City, Country",i.DOB=new Date,i.Description="Add a Description",this.contactFilter?.splice(0,0,i),this.collectionSize++,this.tableRowClicked(i),this.editContact()}preview(i){if(0===i.length)return;if(null==i[0].type.match(/image\/*/))return void(this.message="Only images are supported.");const p=new FileReader;this.imagePath=i,p.readAsDataURL(i[0]),p.onload=w=>{this.selectedContactCopy.Imagepath=p.result}}static#e=this.\u0275fac=function(d){return new(d||c)(e.Y36(Br))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["app-contact-list"]],standalone:!0,features:[e.jDz],decls:39,vars:11,consts:[["id","rightMenu",1,"app-sidebar","card"],[1,"d-md-flex","align-items-center","bg-white","p-3"],[1,"mb-0"],[1,"ms-auto","mt-3","mt-md-0"],["type","button",1,"btn","btn-info","py-2",3,"click"],[1,"fas","fa-plus","f
1s-3","me-1","text-white"],[1,"ms-1","text-white"],[1,"d-md-flex","align-items-center","border-top","bg-white","p-3"],["type","text","placeholder","Search by Name",1,"form-control","rounded-pill",3,"ngModel","ngModelChange"],["href","javascript:void(0)",1,"d-flex","align-items-center","px-3","py-2","rounded-pill","bg-light"],[1,"mb-0","me-1","text-dark","fs-3"],["class","badge bg-danger badge-pill px-3 fs-3"],[1,"table-responsive"],[1,"table","bg-white","table-hover","align-middle","mb-0","text-nowrap"],["scope","col"],[1,"d-flex","justify-content-center","p-2","pt-3","bg-white","border-top"],[3,"collectionSize","page","pageSize","pageChange"],["src","assets/images/background/profile-bg.jpg",1,"card-img","cursor-pointer"],[1,"card-img-overlay"],[1,"d-flex","justify-content-end"],["href","javascript:void(0)","placement","bottom","ngbTooltip","Edit Contact",1,"btn","bg-white","text-info","py-1","px-2","link",3,"click"],["name","edit-2",1,"feather-sm"],["href","javascript:void(0)",1,"btn","bg-white","text-danger","py-1","px-2","link","ms-3",3,"click"],["name","x",1,"feather-sm"],[1,"text-center"],["alt","Cinque Terre","height","100px","width","100px",1,"rounded-circle","mt-n5","shadow",3,"src"],[1,"text-dark","mt-2","mb-0"],[1,"badge","bg-info","badge-pill","font-medium","px-2"],[1,"position-relative",2,"height","350px"],["class","d-flex align-items-center py-2 px-3 border-bottom"],["class","d-flex align-items-start py-2 px-3 border-bottom"],[1,"d-flex","align-items-center","py-2","px-3","border-bottom"],[1,"btn","btn-success","btn-circle","rounded-circle","me-2","d-flex","align-items-center","btn-sm","justify-content-center"],["name","Briefcase",1,"feather-sm"],[1,"text-dark","font-medium"],[1,"btn","btn-danger","btn-circle","rounded-circle","me-2","d-flex","align-items-center","btn-sm","justify-content-center"],["name","Mail",1,"feather-sm"],[1,"btn","btn-warning","btn-circle","rounded-circle","me-2","d-flex","align-items-center","btn-sm","justify-content-center"],["name","Phone",1,"feather-sm"],[1,"btn","btn-primary","btn-circle","rounded-circle","me-2","d-flex","align-items-center","btn-sm","justify-content-center"],["name","Map",1,"feather-sm"],[1,"btn","btn-dark","btn-circle","rounded-circle","me-2","d-flex","align-items-center","btn-sm","justify-content-center"],["name","Gift",1,"feather-sm"],[1,"d-flex","align-items-start","py-2","px-3","border-bottom"],[1,"btn","btn-info","btn-circle","rounded-circle","me-2","d-flex","align-items-center","btn-sm","justify-content-center"],["name","file-text",1,"feather-sm"],[1,"card-img-overlay",2,"height","95px"],["href","javascript:void(0)","placement","bottom","ngbTooltip","Save Contact",1,"btn","bg-white","text-success","py-1","px-2","link",3,"click"],["name","save",1,"feather-sm"],["href","javascript:void(0)","placement","bottom","ngbTooltip","Delete Contact",1,"btn","bg-white","text-danger","py-1","px-2","link","ms-3",3,"click"],["name","trash-2",1,"feather-sm"],[1,"mb-3","mt-n5","text-center"],["type","file",2,"display","none",3,"change"],["filevar",""],["alt","","height","100px","width","100px",1,"rounded-circle","image","cursor-pointer",3,"src","click"],[1,"fw-normal"],[1,"row","p-3"],[1,"col-12","mb-3"],[1,"mb-0","text-dark"],["type","text","name","name",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Jobtitle",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","company",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","email",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","phone",1,"form-control",3,"ngModel","ngModelChange"],["name","address","type","text",1,"form-control",3,"ngModel","ngModelChange"],["name","dob","type","date",1,"form-control",3,"ngModel","ngModelChange"],["name","description","type","text",1,"form-control",3,"ngModel","ngModelChange"],[1,"badge","bg-danger","badge-pill","px-3","fs-3"],["alt","","height","45","width","45",1,"rounded-circle","me-3",3,"src"],[1,"text-dark","font-medium","fs-4"],[1,"align-middle"],[1,"badge","badge-light","text-dark","rounded-pill","fs-4","me-1"],["name","phone",1,"feather-sm"],[1,"align-middle","position-relative"],["href","javascript:void(0)",1,"link","fs-4","font-medium","me-2",3,"click"],["name","edit-3",1,"feather-sm"],["href","javascript:void(0)",1,"link","fs-4","fw-bold",3,"click"],["name","eye",1,"feather-sm"]],template:function(d,p){1&d&&(e.TgZ(0,"div",0),e.YNc(1,Bo,21,9,"div")(2,Wo,53,9,"div"),e.qZA(),e.TgZ(3,"div",1)(4,"h3",2),e._uU(5,"Contact List"),e.qZA(),e.TgZ(6,"div",3)(7,"button",4),e.NdJ("click",function(){return p.addContact()}),e._UZ(8,"i",5),e.TgZ(9,"span",6),e._uU(10,"Add Contact"),e.qZA()()()(),e.TgZ(11,"div",7)(12,"div")(13,"input",8),e.NdJ("ngModelChange",function(k){return p.searchTerm=k}),e.qZA()(),e.TgZ(14,"div",3)(15,"a",9)(16,"h5",10),e._uU(17," Total Contacts "),e.qZA(),e.YNc(18,Em,2,1,"span",11),e.qZA()()(),e.TgZ(19,"div",12)(20,"table",13)(21,"thead")(22,"tr")(23,"th"),e._uU(24,"Name"),e.qZA(),e.TgZ(25,"th",14),e._uU(26,"Email"),e.qZA(),e.TgZ(27,"th",14),e._uU(28,"Phone Number"),e.qZA(),e.TgZ(29,"th",14),e._uU(30,"Job title & company"),e.qZA(),e.TgZ(31,"th",14),e._uU(32,"Action"),e.qZA()()(),e.TgZ(33,"tbody"),e.SjG(34,Ei,25,6,"tr",null,Nd),e.ALo(36,"slice"),e.qZA()()(),e.TgZ(37,"div",15)(38,"ngb-pagination",16),e.NdJ("pageChange",function(k){return p.page=k}),e.qZA()()),2&d&&(e.xp6(),e.um2(1,null==p.selectedContact||p.editable?-1:1),e.xp6(),e.um2(2,null!=p.selectedContact&&p.editable?2:-1),e.xp6(11),e.Q6J("ngModel",p.searchTerm),e.xp6(5),e.um2(18,p.contactFilter?18:-1),e.xp6(16),e.
1wJu(e.Dn7(36,7,p.contactFilter,(p.page-1)*p.pageSize,(p.page-1)*p.pageSize+p.pageSize)),e.xp6(4),e.Q6J("collectionSize",p.collectionSize)("page",p.page)("pageSize",p.pageSize))},dependencies:[V.u5,V._Y,V.Fj,V.JJ,V.JL,V.On,V.F,V.UX,ce.ez,ce.OU,ce.uU,nt.jF,nt.N9,Et.p,Et.u,cn.kb,cn.KC],styles:[".image[_ngcontent-%COMP%]{display:block;margin-left:auto;margin-right:auto}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]})}return c})();const Lm=[{id:1,name:"Inbox",icon:"fas fa-inbox",count:5},{id:2,name:"Sent",icon:"fas fa-paper-plane",count:0},{id:3,name:"Draft",icon:"fas fa-box",count:5},{id:4,name:"Spam",icon:"fas fa-history",count:0},{id:5,name:"Trash",icon:"fas fa-trash",count:5}],Nm=[{id:501,name:"Star",icon:"fas fa-star",count:0},{id:502,name:"Important",icon:"fas fa-bookmark",count:0}],Ya=[{id:701,name:"Personal",icon:"fas fa-tags",count:0,color:"#f62d51"},{id:702,name:"Work",icon:"fas fa-tags",count:0,color:"#2962ff"},{id:703,name:"Payment",icon:"fas fa-tags",count:0,color:"#7460ee"},{id:704,name:"Invoice",icon:"fas fa-tags",count:0,color:"#ffbc34"},{id:705,name:"Account",icon:"fas fa-tags",count:0,color:"#4fc3f7"}],Om=[{userId:"65a6eb21-67b5-45c3-9af7-faca2d9b60d4",name:"Dessie",email:"[email protected]",username:"Dessie79",jobTitle:"Web Developer",phone:"1-360-812-9380 x511",imagePath:"/assets/images/users/user1.jpg",address:""},{userId:"ee272550-36e8-4fe2-889d-c1ee701c5863",name:"Hortense",email:"[email protected]",jobTitle:"Project Manager",username:"Hortense99",phone:"712.916.2569 x0663",imagePath:"/assets/images/users/user3.jpg",address:{street:"9046 Allen Ferry",suite:"Suite 429",city:"Angushaven",state:"Michigan",country:"Costa Rica",zipcode:"92378-7065",geo:{lat:"78.1292",lng:"-134.6632"}}},{userId:"77f4b102-9df5-43ba-966a-6f816806c5e2",name:"Pat",jobTitle:"Product Manager",email:"[email protected]",username:"Pat_Zulauf81",phone:"(058) 200-7342",imagePath:"/assets/images/users/user4.jpg",address:{street:"62268 Favian Coves",suite:"Suite 993",city:"Baumbachstad",state:"New Mexico",country:"Montserrat",zipcode:"44440",geo:{lat:"-34.7835",lng:"148.8907"}}},{userId:"36a1ead7-57a0-4275-8a21-956194ab7cdf",name:"Solon",jobTitle:"Web Developer",email:"[email protected]",username:"Solon.Bauch4",phone:"789-914-4904 x173",imagePath:"/assets/images/users/user5.jpg",address:{street:"8153 Favian Walk",suite:"Apt. 495",city:"East Preston",state:"Idaho",country:"Iceland",zipcode:"24555",geo:{lat:"-42.5691",lng:"-2.5791"}}},{userId:"b5899bef-d01e-42d8-af2d-edfb16b6b21e",name:"Calista",jobTitle:"Programmer",email:"[email protected]",username:"Calista_Mertz17",phone:"961-703-4134",imagePath:"/assets/images/users/user1.jpg",address:{street:"886 Wendy Circles",suite:"Apt. 933",city:"Lake Loy",state:"Rhode Island",country:"South Africa",zipcode:"65261",geo:{lat:"-58.9245",lng:"-43.6330"}}},{userId:"7d910620-84e1-49fc-951e-d375587b8189",name:"Jackeline",jobTitle:"Sales Executive",email:"[email protected]",username:"Jackeline.Abshire",phone:"(326) 903-5706 x6854",imagePath:"/assets/images/users/user2.jpg",address:{street:"416 Cathy Spur",suite:"Apt. 431",city:"North Camila",state:"Pennsylvania",country:"Libyan Arab Jamahiriya",zipcode:"31751",geo:{lat:"64.0673",lng:"154.7671"}}},{userId:"afdb5033-5bcc-4cec-b932-353a83410b44",name:"Jamey",jobTitle:"PHP Developer",email:"[email protected]",username:"Jamey_Grant",phone:"545-939-2404 x32373",imagePath:"/assets/images/users/user3.jpg",address:{street:"38372 Mante Glen",suite:"Suite 090",city:"Robertsside",state:"Texas",country:"Equatorial Guinea",zipcode:"86558-7214",geo:{lat:"-55.0222",lng:"-100.5977"}}},{userId:"60d07662-bfec-42c7-b044-c81bc4ff8c7a",name:"Barton",email:"[email protected]",jobTitle:"Web Developer",username:"Barton85",phone:"(979) 560-8322 x174",imagePath:"/assets/images/users/user4.jpg",address:{street:"185 Florine Spurs",suite:"Suite 178",city:"Port Carrollburgh",state:"Alaska",country:"Saint Barthelemy",zipcode:"30126",geo:{lat:"24.0545",lng:"-88.8499"}}},{userId:"5c44b666-baca-4f18-a3cb-23068c6edc14",name:"Gloria",jobTitle:"Assets",email:"[email protected]",username:"Gloria78",phone:"188.890.3246",imagePath:"/assets/images/users/user5.jpg",address:{street:"643 Arch Mews",
1suite:"Apt. 171",city:"Wymanland",state:"Indiana",country:"Jersey",zipcode:"73594-9840",geo:{lat:"-70.9980",lng:"-151.6234"}}},{userId:"46d6f992-5729-4588-b7f8-ce74f21157ba",name:"Olin",jobTitle:"Finaice",email:"[email protected]",username:"Olin.Robel49",phone:"1-982-234-7756",imagePath:"/assets/images/users/user1.jpg",address:{street:"0813 Mayer Greens",suite:"Apt. 551",city:"Bergstromburgh",state:"Ohio",country:"Anguilla",zipcode:"42502-9731",geo:{lat:"-48.2520",lng:"60.6556"}}},{userId:"bd30e201-cceb-410e-8497-a4072bc399f5",name:"Rollin",jobTitle:"Supporting",email:"[email protected]",username:"Rollin43",phone:"477-651-5715 x502",imagePath:"/assets/images/users/user2.jpg",address:{street:"5704 Spinka Causeway",suite:"Suite 388",city:"Pollyburgh",state:"Arizona",country:"Virgin Islands, U.S.",zipcode:"45048",geo:{lat:"55.3046",lng:"3.8129"}}},{userId:"da95e977-cd54-4077-a767-1b7f33ef6919",name:"Murl",email:"[email protected]",username:"Murl_Abshire41",jobTitle:"Web Developer",phone:"107-733-1219 x0615",imagePath:"/assets/images/users/user3.jpg",address:{street:"4880 Tanner Circles",suite:"Apt. 994",city:"Bauchside",state:"Ohio",country:"Uganda",zipcode:"11259",geo:{lat:"11.6209",lng:"-45.1766"}}},{userId:"6124d4e8-77ed-4b34-868d-d312bfab5de2",name:"Breanna",jobTitle:"Web Developer",email:"[email protected]",username:"Breanna.Bartoletti",phone:"645.045.0876 x35882",imagePath:"/assets/images/users/user4.jpg",address:{street:"431 Grimes Common",suite:"Apt. 530",city:"East Lunahaven",state:"Virginia",country:"Hungary",zipcode:"12012-3038",geo:{lat:"29.7991",lng:"-70.4033"}}},{userId:"eef93cb1-7766-4413-a5cf-ecbf71fa3674",name:"Maya",email:"[email protected]",username:"Maya55",jobTitle:"Web Developer",phone:"199.260.3770 x2815",imagePath:"assets/images/users/user5.jpg",address:{street:"58581 Guillermo Springs",suite:"Suite 574",city:"Cloydville",state:"Delaware",country:"Saint Barthelemy",zipcode:"95633-3394",geo:{lat:"-57.5740",lng:"104.5634"}}},{userId:"899d0e31-b71e-4d95-a8a0-6a8bceb314bd",name:"Santiago",jobTitle:"Web Developer",email:"[email protected]",username:"Santiago41",phone:"1-489-921-2159 x8655",imagePath:"assets/images/users/user1.jpg",address:{street:"7868 Windler Dam",suite:"Suite 876",city:"Port Emmetfurt",state:"Alabama",country:"Belarus",zipcode:"63739-4581",geo:{lat:"-28.7166",lng:"-167.7070"}}},{userId:"a41c6c4a-9cb1-45d1-8c6f-091044ba51ff",name:"Leonardo",jobTitle:"Web Developer",email:"[email protected]",username:"Leonardo10",phone:"445-761-1519",imagePath:"assets/images/users/user2.jpg",address:{street:"146 Lemke Mountains",suite:"Apt. 407",city:"North Toyfort",state:"Connecticut",country:"Senegal",zipcode:"90211-1855",geo:{lat:"-56.3849",lng:"-167.1372"}}},{userId:"3782c174-1f2c-4dc4-b75d-0bedf400e023",name:"Lora",jobTitle:"Web Developer",email:"[email protected]",username:"Lora_Kessler5",phone:"315-215-2852 x69280",imagePath:"assets/images/users/user3.jpg",address:{street:"4018 Willms Turnpike",suite:"Suite 573",city:"Leuschkemouth",state:"Kentucky",country:"Dominican Republic",zipcode:"70964",geo:{lat:"80.2384",lng:"38.1323"}}}];function Qr(c){return Om.find(_=>_.userId===c)}var Xt=Ue(737);let Yl=(()=>{class c{getInbox(){return br.filter(i=>"Inbox"===i.mailbox)}getSent(){return br.filter(i=>"Sent"===i.mailbox)}getDraft(){return br.filter(i=>"Draft"===i.mailbox)}getSpam(){return br.filter(i=>"Spam"===i.mailbox)}getTrash(){return br.filter(i=>"Trash"===i.mailbox)}static#e=this.\u0275fac=function(d){return new(d||c)};static#t=this.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac})}return c})();const Im=(c,_)=>_.name,Fd=(c,_)=>_.icon;function Fm(c,_){if(1&c&&(e.TgZ(0,"span",33),e._uU(1),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.Oqu(i.ms.inboxCount)}}function qm(c,_){if(1&c&&(e.TgZ(0,"span",34),e._uU(1),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.Oqu(i.ms.draftCount)}}function $l(c,_){if(1&c&&(e.TgZ(0,"span",35),e._uU(1),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.Oqu(i.ms.spamCount)}}function qd(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div")(1,"a",27),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw();return e.KtG(k.mailboxesChanged(w.name))}),e.TgZ(2,"span"),e._UZ(3,"i"),e.qZA(),e.TgZ(4,"h5",28),e._uU(5),e.qZA(),e.TgZ(6,"div",29),e.YNc(7,Fm,2,1,"span",30)(8,qm,2,1,"span",31)(9,$l,2,1,"span",32),e.qZA()()()}if(2&c){const i=_.$implicit;e.xp6(3),e.Tol(i.icon),e.xp6(2),e.Oqu(i.name),e.xp6(2),e.um2(7,"Inbox"===i.name?7:-1),e.xp6(),e.um2(8,"Draft"===i.name?8:-1),e.xp6(),e.um2(9,"Spam"===i.name?9:-1)}}function Um(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div")(1,"a",27),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw();return e.KtG(k.filtersClick(w.name))}),e.TgZ(2,"span"),e._UZ(3,"i"),e.qZA(),e.TgZ(4,"h5",36),e._uU(5),e.qZA()()()}if(2&c){const i=_.$implicit;e.xp6(3),e.Tol(i.icon),e.xp6(2),e.Oqu(i.name)}}function Rm(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div")(1,"a",27),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw();return e.KtG(k.labelChange(w.name))}),e.TgZ(2,"span"),e._UZ(3,"i"),e.qZA(),e.TgZ(4,"h5",36),e._uU(5),e.qZA()()()}if(2&c){const i=_.$implicit;e.xp6(3),e.Tol(i.icon),e.Udp("color",i.color),e.xp6(2),e.Oqu(i.name)}}function Ud(c,_){1&c&&(e.TgZ(0,"span",49),e._UZ(1,"i",50),e.qZA())}function Nv(c,_){1&c&&(e.TgZ(0,"span",49),e._UZ(1,"i",51),e.qZA())}function Ov(c,_){if(1&c&&(e.TgZ(0,"span",52),e._uU(1),e.ALo(2,"slice"),e.qZA()),2&c){const i=e.oxw().$implicit;e.xp6(),e.hij(" ",e.Dn7(2,1,i.Message,0,200),".. ")}}function Iv(c,_){if(1&c&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"slice"),e.qZA()),2&c){const i=e.oxw().$implicit;e.xp6(),e.hij(" ",e.Dn7(2,1,i.Message,0,200),".. ")}}function Rd(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",37),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw();return e.KtG(k.mailSelected(w))}),e.TgZ(1,"div",38)(2,"div",39),e._UZ(3,"img",40),e.TgZ(4,"div",41)(5,"div",42)(6,"h5",43),e._uU(7),e.qZA(),e.YNc(8,Ud,2,0,"span",44)(9,Nv,2,0,"span",44),e.qZA(),e.TgZ(10,"p",45),e._uU(11),e.ALo(12,"slice"),e.qZA()(),e.TgZ(13,"div",29)(14,"div",46)(15,"span",47),e._uU(16),e.ALo(17,"date"),e.qZA()()()(),e.TgZ(18,"p",43),e.YNc(19,Ov,3,5,"span",48)(20,Iv,3,5,"span"),e.qZA()()()}if(2&c){const i=_.$implicit,d=_.$index,p=e.oxw();e.xp6(3),e.Q6J("src",p.ms.users[d].imagePath,e.LSH),e.xp6(4),e.Oqu(p.ms.users[d].name),e.xp6(),e.um2(8,-1!==i.filter.indexOf("Important")?8:-1),e.xp6(),e.um2(9,-1!==i.filter.indexOf("Star")?9:-1),e.xp6(2),e.hij(" ",e.Dn7(12,8,i.Subject,0,25),".. "),e.xp6(5),e.Oqu(e.xi3(17,12,i.date,"dd-MMMM")),e.xp6(3),e.um2(19,i.seen?-1:19),e.xp6(),e.um2(20,i.seen?20:-1)}}function Fv(c,_){1&c&&(e.TgZ(0,"div",53)(1,"div",54)(2,"div",55),e._UZ(3,"i",56),e.TgZ(4,"h3"),e._uU(5,"Select to read."),e.qZA()()()())}function qv(c,_){1&c&&(e.TgZ(0,"div")(1,"ng-scrollbar",57),e._UZ(2,"router-outlet"),e.qZA()())}function Jl(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",58)(1,"h4",59),e._uU(2,"New Message"),e.qZA(),e.TgZ(3,"button",60),e.NdJ("click",function(){const w=e.CHM(i).$implicit;return e.KtG(w.dismiss("Cross click"))}),e.qZA()(),e.TgZ(4,"div",61)(5,"form",62)(6,"div",63)(7,"label",64),e._uU(8,"To"),e.qZA(),e._UZ(9,"
1input",65),e.qZA(),e.TgZ(10,"div",63)(11,"label",66),e._uU(12,"Subject"),e.qZA(),e._UZ(13,"input",67),e.qZA(),e.TgZ(14,"div",63),e._UZ(15,"textarea",68),e.qZA(),e.TgZ(16,"div",69)(17,"div")(18,"a",70),e._UZ(19,"i",71),e.qZA(),e.TgZ(20,"a",70),e._UZ(21,"i",72),e.qZA(),e.TgZ(22,"a",70),e._UZ(23,"i",73),e.qZA()(),e.TgZ(24,"div")(25,"button",74),e._UZ(26,"i",75),e._uU(27,"Discard "),e.qZA(),e.TgZ(28,"button",76),e._UZ(29,"i",77),e._uU(30,"Save as draft "),e.qZA(),e.TgZ(31,"button",78),e._uU(32," Send "),e.qZA()()()()()}}const jl=c=>({"show-panel":c});let Bl=(()=>{class c{constructor(i,d,p,w){this.ms=i,this.mailService=d,this.router=p,this.modal=w,this.mailboxes=Lm,this.filters=Nm,this.labels=Ya,this.showSidebar=!1,(null===this.ms.type||""===this.ms.type||void 0===this.ms.type)&&this.router.navigate(["apps/mail/inbox"]),this.ms.type="inbox"}ngOnInit(){this.ms.mailList=this.mailService.getInbox(),this.ms.collectionSize=this.ms.mailList.length;for(const i of this.mailService.getInbox())this.ms.users.push(Qr(i.fromId));this.ms.topLable="Inbox",this.global()}global(){this.ms.inboxCount=this.mailService.getInbox().filter(i=>"Inbox"===i.mailbox&&!1===i.seen).length,this.ms.spamCount=this.mailService.getSpam().length,this.ms.draftCount=this.mailService.getDraft().length}mailboxesChanged(i){"Inbox"===i?(this.ms.mailList=this.mailService.getInbox(),this.ms.collectionSize=this.mailService.getInbox().length,this.changeCaterories(i),this.ms.type="inbox",this.router.navigate(["apps/mail/inbox"])):"Sent"===i?(this.ms.mailList=this.mailService.getSent(),this.ms.collectionSize=this.mailService.getSent().length,this.changeCaterories(i),this.ms.type="sent",this.router.navigate(["apps/mail/sent"])):"Draft"===i?(this.ms.mailList=this.mailService.getDraft(),this.ms.collectionSize=this.mailService.getDraft().length,this.changeCaterories(i),this.ms.type="draft",this.router.navigate(["apps/mail/draft"])):"Spam"===i?(this.ms.mailList=this.mailService.getSpam(),this.ms.collectionSize=this.mailService.getSpam().length,this.changeCaterories(i),this.ms.type="spam",this.router.navigate(["apps/mail/spam"])):"Tras
1h"===i&&(this.ms.mailList=this.mailService.getTrash(),this.ms.collectionSize=this.mailService.getTrash().length,this.changeCaterories(i),this.ms.type="trash",this.router.navigate(["apps/mail/trash"]))}changeCaterories(i){this.ms.users=[];for(const d of this.ms.mailList)this.ms.users.push(Qr(d.fromId));this.ms.selectedMail=null,this.ms.topLable=i}mailSelected(i){this.ms.selectedMail=null,this.ms.selectedMail=i,this.ms.selectedMail.seen=!0,i.seen=!0,this.ms.addClass=!0,this.ms.selectedUser=Qr(i.fromId),this.global(),"inbox"===this.ms.type&&this.router.navigate(["apps/mail/inbox",i.MailId]),"sent"===this.ms.type&&this.router.navigate(["apps/mail/sent",i.MailId]),"draft"===this.ms.type&&this.router.navigate(["apps/mail/draft",i.MailId]),"spam"===this.ms.type&&this.router.navigate(["apps/mail/spam",i.MailId]),"trash"===this.ms.type&&this.router.navigate(["apps/mail/trash",i.MailId]),"star"===this.ms.type&&this.router.navigate(["apps/mail/star",i.MailId]),"important"===this.ms.type&&this.router.navigate(["apps/mail/important",i.MailId]),"Personal"===this.ms.type&&this.router.navigate(["apps/mail/
1personal",i.MailId]),"Work"===this.ms.type&&this.router.navigate(["apps/mail/work",i.MailId]),"Payment"===this.ms.type&&this.router.navigate(["apps/mail/payment",i.MailId]),"Invoice"===this.ms.type&&this.router.navigate(["apps/mail/invoice",i.MailId]),"Account"===this.ms.type&&this.router.navigate(["apps/mail/account",i.MailId])}filtersClick(i){"Star"===i?(this.filterss(i),this.ms.type="star",this.router.navigate(["apps/mail/star"])):"Important"===i&&(this.filterss(i),this.ms.type="important",this.router.navigate(["apps/mail/important"]))}filterss(i){this.ms.mailList=[];for(const d of br)for(const p of d.filter)p===i&&this.ms.mailList.push(d);this.ms.users=[];for(const d of this.ms.mailList)this.ms.users.push(Qr(d.fromId));this.ms.collectionSize=this.ms.mailList.length,this.ms.topLable=i,this.ms.selectedMail=null}labelChange(i){"Personal"===i?(this.labelss(i),this.router.navigate(["apps/mail/personal"])):"Work"===i?(this.labelss(i),this.router.navigate(["apps/mail/work"])):"Payment"===i?(this.labelss(i),this.router.navigate(["apps/mail/
1payments"])):"Account"===i?(this.labelss(i),this.router.navigate(["apps/mail/accounts"])):"Invoice"===i?(this.labelss(i),this.router.navigate(["apps/mail/invoices"])):"Forum"===i&&(this.labelss(i),this.router.navigate(["apps/mail/forum"]))}labelss(i){this.ms.mailList=[];for(const d of br)for(const p of d.label)p===i&&this.ms.mailList.push(d);this.ms.users=[];for(const d of this.ms.mailList)this.ms.users.push(Qr(d.fromId));this.ms.collectionSize=this.ms.mailList.length,this.ms.selectedMail=null,this.ms.topLable=i,this.ms.type=i}openModal(i){this.modal.open(i,{size:"lg"})}mobileSidebar(){this.showSidebar=!this.showSidebar}static#e=this.\u0275fac=function(d){return new(d||c)(e.Y36(Br),e.Y36(Yl),e.Y36(Xt.F0),e.Y36(nt.FF))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["app-listing"]],standalone:!0,features:[e.jDz],decls:54,vars:16,consts:[["href","javascript:void(0)",1,"btn","btn-success","show-left-part","d-block","d-lg-none",3,"ngClass","click"],[1,"main-part",2,"height","calc(100vh - 175px)"],[1,"left-part","bg-white","fixed-left-part","border-end",3,"ngClass"],[1,"position-relative",2,"height","100%"],[1,"ps-3","pe-4","py-3","d-flex","align-items-center","mt-1","border-bottom"],["src","assets/images/users/user4.jpg","width","45","alt","user",1,"rounded-circle"],[1,"text-dark","mb-0","ms-3","fs-5"],[1,"mb-0","fs-2"],[1,"fa","fa-circle","text-success","font-10","me-2"],[1,"p-3"],["type","button",1,"btn","btn-info","d-block","w-100",3,"click"],[1,"mailbox","list-style-none"],[1,"message-center",2,"height","calc(100vh - 340px)"],[1,"fw-normal","text-muted","text-uppercase","mb-0"],[1,"p-3","border-top"],[1,"right-part"],[1,"card","mb-0"],[1,"row","gx-0"],[1,"col-lg-6","col-md-12","col-xl-4","border-end"],[1,"d-flex","align-items-center","justify-content-between","px-3","py-4","border-bottom"],[1,"fs-4","font-medium"],[1,"mail-pagination"],[3,"collectionSize","page","pageSize","pageChange"],[1,"position-relative",2,"height","calc(100vh - 261px)"],[1,"col-lg-6","col-md-12","col-xl-8","detail-part"],["class","h-100 d-none d-lg-block"],["content",""],[1,"message-item","border-0","d-flex","align-items-center","py-3",3,"click"],[1,"ms-3","mb-0","fw-normal"],[1,"ms-auto"],["class","badge bg-info badge-pill font-medium px-3 d-flex align-items-center"],["class","badge bg-danger font-medium badge-pill px-3 d-flex align-items-center"],["class","badge bg-warning text-white font-medium badge-pill px-3 d-flex align-items-center"],[1,"badge","bg-info","badge-pill","font-medium","px-3","d-flex","align-items-center"],[1,"badge","bg-danger","font-medium","badge-pill","px-3","d-flex","align-items-center"],[1,"badge","bg-warning","text-white","font-medium","badge-pill","px-3","d-flex","align-items-center"],[1,"ms-3","mb-0"],[3,"click"],[1,"p-3","border-bottom","cursor-pointer"],[1,"d-flex","align-items-start"],["alt","* *","width","35","height","35",1,"rounded-circle",3,"src"],[1,"ms-3"],[1,"d-flex","align-items-center"],[1,"mb-0"],["class","ms-2"],[1,"text-muted"],[1,"text-end"],[1,"text-muted","d-block"],["class","fw-bold"],[1,"ms-2"],[1,"fas","fa-bookmark","fs-2","text-warning"],[1,"fas","fa-star","fs-2","text-warning"],[1,"fw-bold"],[1,"h-100","d-none","d-lg-block"],[1,"d-flex","align-items-center","justify-content-center","h-100"],[1,"text-center"],[1,"far","fa-envelope","display-5"],[1,"position-relative",2,"height","calc(100vh - 180px)"],[1,"modal-header","bg-info"],[1,"modal-title","text-white"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],["action",""],[1,"mb-3"],["for","toEmail"],["type","text","id","toEmail","name","toEmail",1,"form-control"],["for","subject"],["type","text","id","subject","name","subject",1,"form-control"],["rows","5","id","comment","placeholder","Insert text here...",1,"form-control"],[1,"d-flex","align-items-center","justify-content-between","py-2","px-3","bg-light"],["href","javascript:void(0)",1,"link"],[1,"icon-link","fs-4"],[1,"fas","fa-smile","fs-4","ms-3"],[1,"fas","fa-camera","fs-4","ms-3"],["type","button",1,"btn","btn-danger","ms-3"],[1,"fas","fa-trash","me-1"],["type","button",1,"btn","btn-warning","ms-3"],[1,"fa-box","fas","me-1"],["type","button","disabled","",1,"btn","btn-secondary","ms-3"]],template:function(d,p){
1if(1&d){const w=e.EpF();e.TgZ(0,"a",0),e.NdJ("click",function(){return p.mobileSidebar()}),e.qZA(),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div"),e._UZ(6,"img",5),e.qZA(),e.TgZ(7,"div",6),e._uU(8," Bruce Banner "),e.TgZ(9,"p",7),e._UZ(10,"i",8),e.TgZ(11,"span"),e._uU(12,"Online"),e.qZA()()()(),e.TgZ(13,"div",9)(14,"button",10),e.NdJ("click",function(){e.CHM(w);const I=e.MAs(53);return e.KtG(p.openModal(I))}),e._uU(15," Compose "),e.qZA()(),e.TgZ(16,"ul",11)(17,"li")(18,"ng-scrollbar",12)(19,"div",9)(20,"h6",13),e._uU(21," Mailbox "),e.qZA()(),e.SjG(22,qd,10,6,"div",null,Im),e.TgZ(24,"div",14)(25,"h6",13),e._uU(26," FILTERS "),e.qZA()(),e.SjG(27,Um,6,3,"div",null,Fd),e.TgZ(29,"div",14)(30,"h6",13),e._uU(31," LABELS "),e.qZA()(),e.SjG(32,Rm,6,5,"div",null,Fd),e.qZA()()()()(),e.TgZ(34,"div",15)(35,"div",16)(36,"div",17)(37,"div",18)(38,"div",3)(39,"div",19)(40,"div")(41,"span",20),e._uU(42),e.qZA()(),e.TgZ(43,"div",21)(44,"ngb-pagination",22),e.NdJ("pageChange",function(I){return p.ms.page=I}),e.qZA()()(),e.TgZ(45,"ng-scrollbar",23),e.SjG(46,Rd,21,15,"div",null,e.x6l),e.ALo(48,"slice"),e.qZA()()(),e.TgZ(49,"div",24),e.YNc(50,Fv,6,0,"div",25)(51,qv,3,0,"div"),e.qZA()()()()(),e.YNc(52,Jl,33,0,"ng-template",null,26,e.W1O)}2&d&&(e.Q6J("ngClass",p.showSidebar?"mdi mdi-close":"mdi mdi-menu"),e.xp6(2),e.Q6J("ngClass",e.VKq(14,jl,p.showSidebar)),e.xp6(20),e.wJu(p.mailboxes),e.xp6(5),e.wJu(p.filters),e.xp6(5),e.wJu(p.labels),e.xp6(10),e.Oqu(p.ms.topLable),e.xp6(2),e.Q6J("collectionSize",p.ms.collectionSize)("page",p.ms.page)("pageSize",p.ms.pageSize),e.xp6(2),e.wJu(e.Dn7(48,10,p.ms.mailList,(p.ms.page-1)*p.ms.pageSize,(p.ms.page-1)*p.ms.pageSize+p.ms.pageSize)),e.xp6(3),e.ekj("movetodetail",p.ms.addClass),e.xp6(),e.um2(50,null===p.ms.selectedMail?50:-1),e.xp6(),e.um2(51,null!=p.ms.selectedMail?51:-1))},dependencies:[Xt.Bz,Xt.lC,cn.kb,cn.KC,ce.ez,ce.mk,ce.OU,ce.uU,nt.jF,nt.N9]})}return c})(),Uv=(()=>{class c{constructor(i){this.ms=i}ngOnInit(){}static#e=this.\u0275fac=function(d){return new(d||c)(e.Y36(Br))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["app-mailbox"]],standalone:!0,features:[e.jDz],decls:2,vars:0,consts:[["id","main"]],template:function(d,p){1&d&&(e.TgZ(0,"div",0),e._UZ(1,"app-listing"),e.qZA())},dependencies:[Bl],styles:[".pointerCursor[_ngcontent-%COMP%]{cursor:pointer}.pointerCursor[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:hover{color:#00f}"]})}return c})();function Gm(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"span")(1,"div",22)(2,"input",23),e.NdJ("click",function(){e.CHM(i);const p=e.oxw(2);return e.KtG(p.labelClick("Personal"))}),e.qZA(),e.TgZ(3,"label",24),e._uU(4,"Personal"),e.qZA()()()}}function Rv(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"span")(1,"div",22)(2,"input",25),e.NdJ("click",function(){e.CHM(i);const p=e.oxw(2);return e.KtG(p.labelClick("Personal"))}),e.qZA(),e.TgZ(3,"label",24),e._uU(4,"Personal"),e.qZA()()()}}function Gv(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"span")(1,"div",22)(2,"input",26),e.NdJ("click",function(){e.CHM(i);const p=e.oxw(2);return e.KtG(p.labelClick("Work"))}),e.qZA(),e.TgZ(3,"label",27),e._uU(4,"Work"),e.qZA()()()}}function Hv(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"span")(1,"div",22)(2,"input",28),e.NdJ("click",function(){e.CHM(i);const p=e.oxw(2);return e.KtG(p.labelClick("Work"))}),e.qZA(),e.TgZ(3,"label",27),e._uU(4,"Work"),e.qZA()()()}}function Gd(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"span")(1,"div",22)(2,"input",29),e.NdJ("click",function(){e.CHM(i);const p=e.oxw(2);return e.KtG(p.labelClick("Payment"))}),e.qZA(),e.TgZ(3,"label",30),e._uU(4,"Payment"),e.qZA()()()}}function Hd(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"span")(1,"div",22)(2,"input",31),e.NdJ("click",function(){e.CHM(i);const p=e.oxw(2);return e.KtG(p.labelClick("Payment"))}),e.qZA(),e.TgZ(3,"label",30),e._uU(4,"Payment"),e.qZA()()()}}function Vd(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"span")(1,"div",22)(2,"input",32),e.NdJ("click",function(){e.CHM(i);const p=e.oxw(2);return e.KtG(p.labelClick("Invoice"))}),e.qZA(),e.TgZ(3,"label",33),e._uU(4,"Invoice"),e.qZA()()()}}function zd(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"span")(1,"div",22)(2,"input",34),e.NdJ("click",function(){e.CHM(i);const p=e.oxw(2);return e.KtG(p.labelClick("Invoice"))}),e.qZA(),e.TgZ(3,"label",33),e._uU(4,"Invoice"),e.qZA()()()}}function Xo(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"span")(1,"div",22)(2,"input",35),e.NdJ("click",function(){e.CHM(i);const p=e.oxw(2);return e.KtG(p.labelClick("Account"))}),e.qZA(),e.TgZ(3,"label",36),e._uU(4,"Accounts"),e.qZA()()()}}function Yd(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"span")(1,"div",22)(2,"input",37),e.NdJ("click",function(){e.CHM(i);const p=e.oxw(2);return e.KtG(p.labelClick("Account"))}),e.qZA(),e.TgZ(3,"label",36),e._uU(4,"Accounts"),e.qZA()()()}}function $d(c,_){1&c&&(e.TgZ(0,"span"),e._uU(1,"Mark as unread"),e.qZA())}function Hm(c,_){1&c&&(e.TgZ(0,"span"),e._uU(1,"Mark as read"),e.qZA())}const Jd=c=>({color:c});function Vm(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",1)(1,"div",2)(2,"button",3)(3,"i",4),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.removeClass())}),e.qZA()(),e.TgZ(4,"span")(5,"i",5),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.iconsClick("Important"))}),e.qZA()(),e.TgZ(6,"span",6)(7,"i",7),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.iconsClick("Star"))}),e.qZA()()(),e.TgZ(8,"div",8)(9,"div",9)(10,"button",10),e._UZ(11,"i",11)(12,"i",12),e.qZA(),e.TgZ(13,"div",13)(14,"label",14),e.YNc(15,Gm,5,0,"span")(16,Rv,5,0,"span"),e.qZA(),e.TgZ(17,"label",14),e.YNc(18,Gv,5,0,"span")(19,Hv,5,0,"span"),e.qZA(),e.TgZ(20,"label",14),e.YNc(21,Gd,5,0,"span")(22,Hd,5,0,"span"),e.qZA(),e.TgZ(23,"label",14),e.YNc(24,Vd,5,0,"span")(25,zd,5,0,"span"),e.qZA(),e.TgZ(26,"label",14),e.YNc(27,Xo,5,0,"span")(28,Yd,5,0,"span"),e.qZA()()(),e.TgZ(29,"div",15)(30,"button",16),e._UZ(31,"i",17),e.qZA(),e.TgZ(32,"div",13)(33,"button",18),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.ddlRemoveClick("Read"))}),e._UZ(34,"i",19),e.YNc(35,$d,2,0,"span")(36,Hm,2,0,"span"),e.qZA(),e.TgZ(37,"button",18),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.ddlRemoveClick("Spam"))}),e._UZ(38,"i",20),e._uU(39," Spam"),e.qZA(),e.TgZ(40,"button",18),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();
1return e.KtG(p.ddlRemoveClick("Trash"))}),e._UZ(41,"i",21),e._uU(42,"Trash"),e.qZA()()()()()}if(2&c){const i=e.oxw();e.xp6(5),e.Q6J("ngStyle",e.VKq(14,Jd,-1!=i.ms.selectedMail.filter.indexOf("Important")?"#ffbc34":"")),e.xp6(2),e.Q6J("ngStyle",e.VKq(16,Jd,-1!=i.ms.selectedMail.filter.indexOf("Star")?"#ffbc34":"")),e.xp6(8),e.um2(15,-1!=i.ms.selectedMail.label.indexOf("Personal")?15:-1),e.xp6(),e.um2(16,-1===i.ms.selectedMail.label.indexOf("Personal")?16:-1),e.xp6(2),e.um2(18,-1!=i.ms.selectedMail.label.indexOf("Work")?18:-1),e.xp6(),e.um2(19,-1===i.ms.selectedMail.label.indexOf("Work")?19:-1),e.xp6(2),e.um2(21,-1!=i.ms.selectedMail.label.indexOf("Payment")?21:-1),e.xp6(),e.um2(22,-1===i.ms.selectedMail.label.indexOf("Payment")?22:-1),e.xp6(2),e.um2(24,-1!=i.ms.selectedMail.label.indexOf("Invoice")?24:-1),e.xp6(),e.um2(25,-1==i.ms.selectedMail.label.indexOf("Invoice")?25:-1),e.xp6(2),e.um2(27,-1!=i.ms.selectedMail.label.indexOf("Account")?27:-1),e.xp6(),e.um2(28,-1==i.ms.selectedMail.label.indexOf("Account")?28:-1),e.xp6(7),e.um2(35,i.ms.selectedMail.seen?35:-1),e.xp6(),e.um2(36,i.ms.selectedMail.seen?-1:36)}}function Wl(c,_){1&c&&(e.TgZ(0,"span",52),e._uU(1," PERSONAL "),e.qZA())}function wr(c,_){1&c&&(e.TgZ(0,"span",53),e._uU(1," WORK "),e.qZA())}function zm(c,_){1&c&&(e.TgZ(0,"span",54),e._uU(1," PAYMENTS "),e.qZA())}function Ym(c,_){1&c&&(e.TgZ(0,"span",55),e._uU(1," INVOICES "),e.qZA())}function $m(c,_){1&c&&(e.TgZ(0,"span",56),e._uU(1," ACCOUNTS "),e.qZA())}function Jm(c,_){if(1&c&&(e.TgZ(0,"span",43),e.YNc(1,Wl,2,0,"span",47)(2,wr,2,0,"span",48)(3,zm,2,0,"span",49)(4,Ym,2,0,"span",50)(5,$m,2,0,"span",51),e.qZA()),2&c){const i=_.$implicit;e.xp6(),e.um2(1,"Personal"===i?1:-1),e.xp6(),e.um2(2,"Work"===i?2:-1),e.xp6(),e.um2(3,"Payment"===i?3:-1),e.xp6(),e.um2(4,"Invoice"===i?4:-1),e.xp6(),e.um2(5,"Account"===i?5:-1)}}function jm(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div")(1,"textarea",57),e._uU(2," "),e.qZA(),e.TgZ(3,"div",58)(4,"div")(5,"a",59),e._UZ(6,"i",60),e.qZA(),e.TgZ(7,"a",59),e._UZ(8,"i",61),e.qZA(),e.TgZ(9,"a",59),e._UZ(10,"i",62),e.qZA()(),e.TgZ(11,"div")(12,"button",63),e.NdJ("click",function(){e.CHM(i);const p=e.oxw(2);return e.KtG(p.sendButtonClick())}),e._UZ(13,"i",64),e.qZA(),e.TgZ(14,"button",65),e._UZ(15,"i",66),e.qZA(),e.TgZ(16,"button",67),e._UZ(17,"i",68),e._uU(18,"Send"),e.qZA()()()()}}function Bm(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div")(1,"button",69),e.NdJ("click",function(){e.CHM(i);const p=e.oxw(2);return e.KtG(p.reply())}),e._UZ(2,"i",70),e._uU(3," Reply "),e.qZA(),e.TgZ(4,"button",71),e.NdJ("click",function(){e.CHM(i);const p=e.oxw(2);return e.KtG(p.reply())}),e._UZ(5,"i",72),e._uU(6," Reply All "),e.qZA(),e.TgZ(7,"button",71),e.NdJ("click",function(){e.CHM(i);const p=e.oxw(2);return e.KtG(p.reply())}),e._UZ(8,"i",73),e._uU(9," Forward "),e.qZA()()}}function jn(c,_){if(1&c&&(e.TgZ(0,"span")(1,"div",38)(2,"h4",39),e._uU(3),e.SjG(4,Jm,6,5,"span",74,e.x6l),e.qZA()(),e.TgZ(6,"div",40)(7,"div",41),e._UZ(8,"img",42),e.TgZ(9,"div",43)(10,"h5",39),e._uU(11),e.qZA(),e.TgZ(12,"span",44),e._uU(13,"To me,"),e.qZA()()(),e.TgZ(14,"div",45),e._uU(15),e.qZA(),e.TgZ(16,"div",46),e.YNc(17,jm,19,0,"div")(18,Bm,10,0,"div"),e.qZA()()()),2&c){const i=e.oxw();e.xp6(3),e.hij("",null==i.ms.selectedMail?null:i.ms.selectedMail.Subject," "),e.xp6(),e.wJu(i.ms.selectedMail.label),e.xp6(4),e.Q6J("src",null==i.ms.selectedUser?null:i.ms.selectedUser.imagePath,e.LSH),e.xp6(3),e.Oqu(null==i.ms.selectedUser?null:i.ms.selectedUser.name),e.xp6(4),e.hij(" ",null==i.ms.selectedMail?null:i.ms.selectedMail.Message," "),e.xp6(2),e.um2(17,i.ms.replyShow?17:-1),e.xp6(),e.um2(18,i.ms.replyShow?-1:18)}}let Qo=(()=>{class c{constructor(i,d,p){this.ms=i,this.mailService=d,this.router=p}ngOnInit(){}labelClick(i){this.labels(i)}labels(i){this.ms.selectedMail&&(-1===this.ms.selectedMail.label.indexOf(i)?this.ms.selectedMail.label.push(i):this.ms.selectedMail.label=this.ms.selectedMail.label.filter(d=>d!==i))}iconsClick(i){this.icons(i)}icons(i){this.ms.selectedMail&&(-1!==this.ms.selectedMail.filter.indexOf(i)?this.ms.selectedMail.filter=this.ms.selectedMail.filter.filter(d=>d!==i):this.ms.selectedMail.filter.push(i))}ddlRemoveClick(i){"Spam"===i&&this.ms.selectedMail?(this.ms.selectedMail.mailbox="Spam",this.ms.selectedMail&&this.ms.spamList.push(this.ms.selectedMail),this.ms.selectedMail=Object.create(null),this.resetCount()):"Tras
1h"===i&&this.ms.selectedMail?(this.ms.selectedMail.mailbox="Trash",this.ms.selectedMail&&this.ms.trashList.push(this.ms.selectedMail),this.ms.selectedMail=Object.create(null),this.resetCount()):"Read"===i&&this.ms.selectedMail&&(this.ms.selectedMail.seen?(this.ms.selectedMail.seen=!1,this.global()):this.ms.selectedMail?.seen&&(this.ms.selectedMail.seen=!0,this.global()))}resetCount(){this.ms.inboxList=this.mailService.getInbox(),this.ms.sentList=this.mailService.getSent(),this.ms.draftList=this.mailService.getDraft(),this.ms.spamList=this.mailService.getSpam(),this.ms.trashList=this.mailService.getTrash(),this.ms.mailList=this.ms.inboxList,this.ms.users=[];for(const i of this.ms.mailList)this.ms.users.push(Qr(i.fromId));this.ms.collectionSize=this.ms.inboxList.length,this.ms.selectedMail=null,this.ms.topLable="Inbox",this.ms.type="inbox",this.global()}global(){this.ms.inboxCount=this.mailService.getInbox().filter(i=>"Inbox"===i.mailbox&&!1===i.seen).length,this.ms.spamCount=this.mailService.getSpam().length,this.ms.draftCount=this.mailService.getDraft().length}reply(){this.ms.replyShow=!0}sendButtonClick(){this.ms.replyShow=!1}removeClass(){this.ms.addClass=!1}static#e=this.\u0275fac=function(d){return new(d||c)(e.Y36(Br),e.Y36(Yl),e.Y36(Xt.F0))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["app-detail"]],standalone:!0,features:[e.jDz],decls:2,vars:2,consts:[["class","d-flex align-items-center px-3 py-2 border-bottom bg-light"],[1,"d-flex","align-items-center","px-3","py-2","border-bottom","bg-light"],[1,"d-flex","align-items-center"],[1,"me-3","d-block","d-lg-none","btn","btn-info","btn-sm"],[1,"fas","fa-arrow-left",3,"click"],[1,"fas","fa-bookmark",3,"ngStyle","click"],[1,"ms-3"],[1,"fas","fa-star",3,"ngStyle","click"],[1,"ms-auto"],["ngbDropdown","",1,"d-inline-block"],["id","dropdownBasic1","ngbDropdownToggle","",1,"btn","btn-secondary","btn-sm"],[1,"mdi","mdi-tag"],[1,"fas","fa-caret-down","ms-1"],["ngbDropdownMenu","","aria-labelledby","dropdownBasic1"],["ngbDropdownItem",""],["ngbDropdown","",1,"d-inline-block","ms-1"],["id","dropdownBasic1","ngbDropdownToggle","",1,"btn","btn-sm"],[1,"fa","fa-ellipsis-v"],["ngbDropdownItem","",3,"click"],[1,"far","fa-envelope","me-1","text-info","fs-3"],[1,"fas","fa-history","text-primary","me-1","fs-3"],[1,"ti-trash","fas","text-danger","me-1","fs-3"],[1,"form-check"],["type","checkbox","id","customCheck1","checked","",1,"form-check-input",3,"click"],["for","customCheck1",1,"form-check-label"],["type","checkbox","id","customCheck1",1,"form-check-input",3,"click"],["type","checkbox","id","customCheck2","checked","",1,"form-check-input",3,"click"],["for","customCheck2",1,"form-check-label"],["type","checkbox","id","customCheck2",1,"form-check-input",3,"click"],["type","checkbox","id","customCheck3","checked","",1,"form-check-input",3,"click"],["for","customCheck3",1,"form-check-label"],["type","checkbox","id","customCheck3",1,"form-check-input",3,"click"],["type","checkbox","id","customCheck4","checked","",1,"form-check-input",3,"click"],["for","customCheck4",1,"form-check-label"],["type","checkbox","id","customCheck4",1,"form-check-input",3,"click"],["type","checkbox","id","customCheck5","checked","",1,"form-check-input",3,"click"],["for","customCheck5",1,"form-check-label"],["type","checkbox","id","customCheck5",1,"form-check-input",3,"click"],[1,"d-flex","align-items-center","p-3","border-bottom"],[1,"mb-0"],[1,"p-3"],[1,"mb-3","d-flex","align-items-center"],["alt","userimg","width","35","height","35",1,"rounded-circle",3,"src"],[1,"ms-2"],[1,"text-muted"],[1,"mb-4"],[1,"mb-3"],["class","badge badge-pill bg-danger ms-1 fs-2 font-medium"],["class","badge badge-pill bg-info ms-1 fs-2 font-medium"],["class","badge badge-pill bg-primary ms-1 fs-2 font-medium"],["class","badge badge-pill bg-warning text-white ms-1 fs-2 font-medium"],["class","badge badge-pill badge-cyan text-white ms-1 fs-2 font-medium"],[1,"badge","badge-pill","bg-danger","ms-1","fs-2","font-medium"],[1,"badge","badge-pill","bg-info","ms-1","fs-2","font-medium"],[1,"badge","badge-pill","bg-primary","ms-1","fs-2","font-medium"],[1,"badge","badge-pill","bg-warning","text-white","ms-1","fs-2","font-medium"],[1,"badge","badge-pill","badge-cyan","text-white","ms-1","fs-2","font-medium"],["id","w3mission","rows","4","placeholder","Type your reply here",1,"form-control"],[1,"d-flex","align-items-center","justify-content-between","py-2","px-3","bg-light"],["href","javascript:void(0)",1,"link"],[1,"icon-link","fs-4"],[1,"fas","fa-smile","fs-4","ms-3"],[1,"fas","fa-camera","fs-4","ms-3"],["type","button",1,"btn","btn-info",3,"click"],[1,"fas","fa-arrow-left"],["type","button",1,"btn","btn-danger","ms-2"],[1,"fas","fa-tras
1h","me-1"],["type","button",1,"btn","btn-secondary","ms-2"],[1,"fas","fa-share","me-1"],["type","button",1,"btn","btn-outline-info","btn-sm",3,"click"],[1,"fas","fa-reply"],["type","button",1,"btn","btn-outline-info","ms-1","btn-sm",3,"click"],[1,"fas","fa-reply-all"],[1,"fas","fa-share"],["class","ms-2"]],template:function(d,p){1&d&&e.YNc(0,Vm,43,18,"div",0)(1,jn,19,6,"span"),2&d&&(e.um2(0,p.ms.selectedMail?0:-1),e.xp6(),e.um2(1,p.ms.selectedMail?1:-1))},dependencies:[V.u5,V.UX,ce.ez,ce.PC,nt.XC,nt.jt,nt.iD,nt.Vi,nt.TH,nt.oY]})}return c})();function jd(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",1)(1,"h4",2),e._uU(2,"Product"),e.qZA(),e.TgZ(3,"button",3),e.NdJ("click",function(){const w=e.CHM(i).$implicit;return e.KtG(w.dismiss("Cross click"))}),e.TgZ(4,"span",4),e._uU(5,"\xd7"),e.qZA()()(),e._UZ(6,"div",5)}}let zi=(()=>{class c{constructor(i){this.modal=i,this.content=Object.create(null)}ngOnInit(){this.openModal(this.content)}openModal(i){this.modal.open(i,{size:"lg"})}closeModal(){this.modal.dismissAll()}static#e=this.\u0275fac=function(d){return new(d||c)(e.Y36(nt.FF))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["app-compose"]],standalone:!0,features:[e.jDz],decls:2,vars:0,consts:[["content",""],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"]],template:function(d,p){1&d&&e.YNc(0,jd,7,0,"ng-template",null,0,e.W1O)}})}return c})();class Wm{constructor(){this.id=0,this.Name="",this.Position="",this.Email="",this.Mobile=0,this.DateOfJoining=null,this.Salary=0,this.Projects=0,this.imagePath=""}}var Bd=Ue(7919);const Xm=[{id:1,Name:"Johnathan Deo",Position:"Seo Expert",Email:"[email protected]",Mobile:9786838,DateOfJoining:new Date("01-2-2020"),Salary:12e3,Projects:10,imagePath:"assets/images/users/user1.jpg"},{id:2,Name:"Mark Zukerburg",Position:"Web Developer",Email:"[email protected]",Mobile:8786838,DateOfJoining:new Date("04-2-2020"),Salary:12e3,Projects:10,imagePath:"assets/images/users/user2.jpg"},{id:3,Name:"Sam smith",Position:"Web Designer",Email:"[email protected]",Mobile:7788838,DateOfJoining:new Date("02-2-2020"),Salary:12e3,Projects:10,imagePath:"assets/images/users/user3.jpg"},{id:4,Name:"John Deo",Position:"Tester",Email:"[email protected]",Mobile:8786838,DateOfJoining:new Date("03-2-2020"),Salary:12e3,Projects:11,imagePath:"assets/images/users/user4.jpg"},{id:5,Name:"Genilia",Position:"Actor",Email:"[email protected]",Mobile:8786838,DateOfJoining:new Date("05-2-2020"),Salary:12e3,Projects:19,imagePath:"assets/images/users/user5.jpg"},{id:6,Name:"Jack Sparrow",Position:"Content Writer",Email:"[email protected]",Mobile:8786838,DateOfJoining:new Date("05-21-2020"),Salary:12e3,Projects:5,imagePath:"assets/images/users/user1.jpg"},{id:7,Name:"Tom Cruise",Position:"Actor",Email:"[email protected]",Mobile:8786838,DateOfJoining:new Date("02-15-2019"),Salary:12e3,Projects:9,imagePath:"assets/images/users/user2.jpg"},{id:8,Name:"Hary Porter",Position:"Actor",Email:"[email protected]",Mobile:8786838,DateOfJoining:new Date("07-3-2019"),Salary:12e3,Projects:7,imagePath:"assets/images/users/user3.jpg"},{id:9,Name:"Kristen Ronaldo",Position:"Player",Email:"[email protected]",Mobile:8786838,DateOfJoining:new Date("01-15-2019"),Salary:12e3,Projects:1,imagePath:"assets/images/users/user4.jpg"}];let Xl=(()=>{class c{constructor(){this.users=Xm}getUser(){return this.users}static#e=this.\u0275fac=function(d){return new(d||c)};static#t=this.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac})}return c})();const Wd=(c,_)=>_.Name;function Ko(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"tr")(1,"td",15),e._uU(2),e.qZA(),e.TgZ(3,"td")(4,"div",16),e._UZ(5,"img",17),e.TgZ(6,"div",18)(7,"p",19),e._uU(8),e.qZA(),e.TgZ(9,"small"),e._uU(10),e.qZA()()()(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td"),e._uU(14),e.qZA(),e.TgZ(15,"td"),e._uU(16),e.ALo(17,"date"),e.qZA(),e.TgZ(18,"td"),e._uU(19),e.qZA(),e.TgZ(20,"td"),e._uU(21),e.qZA(),e.TgZ(22,"td")(23,"a",20),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw(),I=e.MAs(38);return e.KtG(k.openModal(I,w))}),e._UZ(24,"i-feather",21),e.qZA(),e.TgZ(25,"a",22),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw();return e.KtG(k.deleteUser(w.id))}),e._UZ(26,"i-feather",23),e.qZA()()()}if(2&c){const i=_.$implicit;e.xp6(2),e.hij(" ",i.id," "),e.xp6(3),e.Q6J("src",i.imagePath,e.LSH),e.xp6(3),e.Oqu(i.Name),e.xp6(2),e.Oqu(i.Position),e.xp6(2),e.Oqu(i.Email),e.xp6(2),e.Oqu(i.Mobile),e.xp6(2),e.Oqu(e.xi3(17,9,i.DateOfJoining,"fullDate")),e.xp6(3),e.Oqu(i.Salary),e.xp6(2),e.Oqu(i.Projects)}}function Cr(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1,"Name is required"),e.qZA())}function Xd(c,_){if(1&c&&(e.TgZ(0,"div",49),e.YNc(1,Cr,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.Name.errors.required?1:-1)}}function Qm(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1," Position is required "),e.qZA())}function Km(c,_){if(1&c&&(e.TgZ(0,"div",49),e.YNc(1,Qm,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.Position.errors.required?1:-1)}}function e_(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1,"Email is required"),e.qZA())}
1function t_(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1,"Email is invalid"),e.qZA())}function Qd(c,_){if(1&c&&(e.TgZ(0,"div",49),e.YNc(1,e_,2,0,"div")(2,t_,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.Email.errors.required?1:-1),e.xp6(),e.um2(2,i.f.Email.errors.Email?2:-1)}}function Kd(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1,"Mobile is required"),e.qZA())}function es(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1,"Mobile is invalid"),e.qZA())}function ef(c,_){if(1&c&&(e.TgZ(0,"div",49),e.YNc(1,Kd,2,0,"div")(2,es,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.Mobile.errors.required?1:-1),e.xp6(),e.um2(2,i.f.Mobile.errors.Mobile?2:-1)}}function tf(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1," Date Of Joining is required "),e.qZA())}function nf(c,_){if(1&c&&(e.TgZ(0,"div",49),e.YNc(1,tf,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.DateOfJoining.errors.required?1:-1)}}function rf(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1," Salary is required "),e.qZA())}function Kr(c,_){if(1&c&&(e.TgZ(0,"div",49),e.YNc(1,rf,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.Salary.errors.required?1:-1)}}function af(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1," Projects is required "),e.qZA())}function n_(c,_){if(1&c&&(e.TgZ(0,"div",49),e.YNc(1,af,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.Projects.errors.required?1:-1)}}const Yi=c=>({"is-invalid":c});function i_(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",24)(1,"h5",25),e._uU(2,"User"),e.qZA(),e.TgZ(3,"button",26),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.closeBtnClick())}),e.qZA()(),e.TgZ(4,"div",27)(5,"form",28),e.NdJ("ngSubmit",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.onSubmit())}),e.TgZ(6,"div",29)(7,"label",30),e._uU(8,"Name"),e.qZA(),e.TgZ(9,"div",31),e._UZ(10,"input",32),e.YNc(11,Xd,2,1,"div",33),e.qZA()(),e.TgZ(12,"div",29)(13,"label",34),e._uU(14,"Position"),e.qZA(),e.TgZ(15,"div",31),e._UZ(16,"input",35),e.YNc(17,Km,2,1,"div",33),e.qZA()(),e.TgZ(18,"div",29)(19,"label",36),e._uU(20,"Email"),e.qZA(),e.TgZ(21,"div",31),e._UZ(22,"input",37),e.YNc(23,Qd,3,2,"div",33),e.qZA()(),e.TgZ(24,"div",29)(25,"label",38),e._uU(26,"Mobile"),e.qZA(),e.TgZ(27,"div",31),e._UZ(28,"input",39),e.YNc(29,ef,3,2,"div",33),e.qZA()(),e.TgZ(30,"div",29)(31,"label",40),e._uU(32,"Date Of Joining"),e.qZA(),e.TgZ(33,"div",31)(34,"input",41),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.joiningDate=p)}),e.qZA(),e.YNc(35,nf,2,1,"div",33),e.qZA()(),e.TgZ(36,"div",29)(37,"label",42),e._uU(38,"Salary"),e.qZA(),e.TgZ(39,"div",31),e._UZ(40,"input",43),e.YNc(41,Kr,2,1,"div",33),e.qZA()(),e.TgZ(42,"div",29)(43,"label",44),e._uU(44,"Projects"),e.qZA(),e.TgZ(45,"div",31),e._UZ(46,"input",45),e.YNc(47,n_,2,1,"div",33),e.qZA()(),e.TgZ(48,"div",46)(49,"button",47),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.closeBtnClick())}),e._uU(50," Close "),e.qZA(),e.TgZ(51,"button",48),e._uU(52," Save "),e.qZA()()()()}if(2&c){const i=e.oxw();e.xp6(5),e.Q6J("formGroup",i.editUser),e.xp6(5),e.Q6J("ngClass",e.VKq(17,Yi,i.submitted&&i.f.Name.errors)),e.xp6(),e.um2(11,i.submitted&&i.f.Name.errors?11:-1),e.xp6(5),e.Q6J("ngClass",e.VKq(19,Yi,i.submitted&&i.f.Position.errors)),e.xp6(),e.um2(17,i.submitted&&i.f.Position.errors?17:-1),e.xp6(5),e.Q6J("ngClass",e.VKq(21,Yi,i.submitted&&i.f.Email.errors)),e.xp6(),e.um2(23,i.submitted&&i.f.Email.errors?23:-1),e.xp6(5),e.Q6J("ngClass",e.VKq(23,Yi,i.submitted&&i.f.Mobile.errors)),e.xp6(),e.um2(29,i.submitted&&i.f.Mobile.errors?29:-1),e.xp6(5),e.Q6J("ngModel",i.joiningDate)("ngClass",e.VKq(25,Yi,i.submitted&&i.f.DateOfJoining.errors)),e.xp6(),e.um2(35,i.submitted&&i.f.DateOfJoining.errors?35:-1),e.xp6(5),e.Q6J("ngClass",e.VKq(27,Yi,i.submitted&&i.f.Salary.errors)),e.xp6(),e.um2(41,i.submitted&&i.f.Salary.errors?41:-1),e.xp6(5),e.Q6J("ngClass",e.VKq(29,Yi,i.submitted&&i.f.Projects.errors)),e.xp6(),e.um2(47,i.submitted&&i.f.Projects.errors?47:-1),e.xp6(4),e.Q6J("disabled",null==i.editUser?null:i.editUser.invalid)}}let ts=(()=>{class c{constructor(i,d,p,w,k){this.userService=i,this.fb=d,this.modalService=p,this.datePipe=w,this.formBuilder=k,this.form=new V.cw({Name:new V.NI(""),Position:new V.NI(""),Email:new V.NI(""),Mobile:new V.NI(""),DateOfJoining:new V.NI(""),Salary:new V.NI(""),Projects:new V.NI("")}),this.submitted=!1,this.page=1,this.pageSize=7,this.userList=this.userService.getUser(),this.userDetail=null,this.filterArray=null,this.joiningDate=null,this._searchTerm="",this.filterArray=this.userList}get searchTerm(){return this._searchTerm}set searchTerm(i){this._searchTerm=i,this.filterArray=this.filter(i)}ngOnInit(){this.form=this.formBuilder.group({Name:["",V.kI.required],Position:["",V.kI.required],DateOfJoining:["",V.kI.required],Salary:["",V.kI.required],Projects:["",V.kI.required],Mobile:["",[V.kI.required,V.kI.minLength(10),V.kI.maxLength(10)]],Email:["",[V.kI.required,V.kI.email]]},{validators:[Bd.Z.match("password","confirmPassword")]}),this.editUser=this.fb.group({id:[""],Name:["",V.kI.required],Position:["",V.kI.required],Email:["",V.kI.required],Mobile:["",V.kI.required],DateOfJoining:["",V.kI.required],Salary:["",V.kI.required],Projects:["",V.kI.required]})}get f(){return this.form.controls}filter(i){return this.userList.filter(d=>-1!==d.Name.toLowerCase().indexOf(i.toLowerCase())||-1!==d.Email.toLowerCase().indexOf(i.toLowerCase()))}deleteUser(i){this.filterArray&&(this.filterArray=this.filterArray.filter(d=>d.id!==i))}openModal(i,d){this.modalService.open(i,{centered:!0,backdrop:"static"}),null!=d&&(d.DateOfJoining&&(this.joiningDate=this.datePipe.transform(new Date(d.DateOfJoining),"yyyy-MM-dd")),this.userDetail=d,this.editUser?.patchValue({Name:d.Name,Position:d.Position,Email:d.Email,Mobile:d.Mobile,DateOfJoining:d.DateOfJoining,Salary:d.Salary,Projects:d.Projects}))}onSubmit(){if(null!=this.userDetail){const i=this.userService.getUser().indexOf(this.userDetail);null!=this.editUser&&(this.userDetail.Name=this.editUser.get("Name")?.value,this.userDetail.Position=this.editUser.get("Position")?.value,this.userDetail.Email=this.editUser.get("Email")?.value,this.userDetail.Mobile=this.editUser.get("Mobile")?.value,this.userDetail.DateOfJoining=this.editUser.get("DateOfJoining")?.value,this.userDetail.Salary=this.editUser.get("Salary")?.value,this.userDetail.Projects=this.editUser.get("Projects")?.value),this.userService.getUser()[i]=this.userDetail}else this.userDetail=new Wm,this.userDetail.id=Math.max.apply(Math,this.userService.getUser().map(function(i){return i.id}))+1,this.userDetail.Name=this.editUser?.get("Name")?.value,this.userDetail.Position=this.editUser?.get("Position")?.value,this.userDetail.Email=this.editUser?.get("Email")?.value,this.userDetail.Mobile=this.editUser?.get("Mobile")?.value,this.userDetail.DateOfJoining=new Date,this.userDetail.Salary=this.editUser?.get("Salary")?.value,this.userDetail.Projects=this.editUser?.get("Projects")?.value,this.userDetail.imagePath="assets/images/users/user3.jpg",this.filterArray?.push(this.userDetail);this.modalService.dismissAll(),this.userDetail=null,this.joiningDate="",this.ngOnInit()}closeBtnClick(){this.modalService.dismissAll(),this.ngOnInit()}static#e=this.\u0275fac=function(d){return new(d||c)(e.Y36(Xl),e.Y36(V.QS),e.Y36(nt.FF),e.Y36(ce.uU),e.Y36(V.qu))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["app-list-users"]],standalone:!0,features:[e.jDz],decls:39,vars:8,consts:[[1,"row"],[1,"col-12"],[1,"card","card-body"],[1,"card-title"],[1,"card-subtitle"],[1,"d-flex","mb-3","mt-3"],["type","text","placeholder","Search by Name or Email",1,"form-control","w-25",3,"ngModel","ngModelChange"],[1,"btn","btn-primary","ms-auto",3,"click"],[1,"table-responsive","table-bordered"],[1,"table","table-striped","mb-0","no-wrap","align-middle"],["scope","col",1,"text-center"],["scope","col"],[1,"d-flex","justify-content-center","mt-5"],[3,"page","pageSize","collectionSize","pageChange"],["editUserModal",""],[1,"text-center"],[1,"d-flex","align-items-center"],["height"," 50px","width","50px",1,"rounded-circle",3,"src"],[1,"ms-3"],[1,"font-medium","mb-0"],["href","javascript: void(0);","placement","top","ngbTooltip","Edit",1,"link","me-2",3,"click"],["name","edit-2",1,"feather-sm"],["href","javascript: void(0);","placement","top","ngbTooltip","Delete",1,"link",3,"click"],["name","trash-2",1,"feather-sm"],[1,"modal-header"],["id","editUserLabel",1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[3,"formGroup","ngSubmit"],[1,"mb-3","row"],["for","name",1,"col-sm-4","col-form-label"],[1,"col-sm-8"],["type","text","formControlName","Name","id","name",1,"form-control",3,"ngClass"],["class","invali
1d-feedback"],["for","position",1,"col-sm-4","col-form-label"],["type","text","formControlName","Position","id","position",1,"form-control",3,"ngClass"],["for","email",1,"col-sm-4","col-form-label"],["type","email","formControlName","Email","id","email",1,"form-control",3,"ngClass"],["for","mobile",1,"col-sm-4","col-form-label"],["type","text","formControlName","Mobile","id","mobile",1,"form-control",3,"ngClass"],["for","doj",1,"col-sm-4","col-form-label"],["type","date","formControlName","DateOfJoining","id","doj",1,"form-control",3,"ngModel","ngClass","ngModelChange"],["for","salary",1,"col-sm-4","col-form-label"],["type","text","formControlName","Salary","id","salary",1,"form-control",3,"ngClass"],["for","projects",1,"col-sm-4","col-form-label"],["type","text","formControlName","Projects","id","projects",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["type","submit",1,"btn","btn-primary",3,"disabled"],[1,"invalid-feedback"]],template:function(d,p){if(1&d){const w=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),e._uU(4,"Employee Table"),e.qZA(),e.TgZ(5,"h5",4),e._uU(6," Here is the employee list you can add, edit or delet the emplyee "),e.qZA(),e.TgZ(7,"div",5)(8,"input",6),e.NdJ("ngModelChange",function(I){return p.searchTerm=I}),e.qZA(),e.TgZ(9,"button",7),e.NdJ("click",function(){e.CHM(w);const I=e.MAs(38);return e.KtG(p.openModal(I,null))}),e._uU(10," Add User "),e.qZA()(),e.TgZ(11,"div",8)(12,"table",9)(13,"thead")(14,"tr")(15,"th",10),e._uU(16,"#"),e.qZA(),e.TgZ(17,"th",11),e._uU(18,"Name"),e.qZA(),e.TgZ(19,"th",11),e._uU(20,"Email"),e.qZA(),e.TgZ(21,"th",11),e._uU(22,"Mobile"),e.qZA(),e.TgZ(23,"th",11),e._uU(24,"Date of Joining"),e.qZA(),e.TgZ(25,"th",11),e._uU(26,"Salary"),e.qZA(),e.TgZ(27,"th",11),e._uU(28,"Projects"),e.qZA(),e.TgZ(29,"th",11),e._uU(30,"Action"),e.qZA()()(),e.TgZ(31,"tbody"),e.SjG(32,Ko,27,12,"tr",null,Wd),e.ALo(34,"slice"),e.qZA()()(),e.TgZ(35,"div",12)(36,"ngb-pagination",13),e.NdJ("pageChange",function(I){return p.page=I}),e.qZA()()()()(),e.YNc(37,i_,53,31,"ng-template",null,14,e.W1O)}2&d&&(e.xp6(8),e.Q6J("ngModel",p.searchTerm),e.xp6(24),e.wJu(e.Dn7(34,4,p.filterArray,(p.page-1)*p.pageSize,(p.page-1)*p.pageSize+p.pageSize)),e.xp6(4),e.Q6J("page",p.page)("pageSize",p.pageSize)("collectionSize",p.userList.length))},dependencies:[ce.ez,ce.mk,ce.OU,ce.uU,V.u5,V._Y,V.Fj,V.JJ,V.JL,V.On,V.UX,V.sg,V.u,nt.jF,nt.N9,Et.p,Et.u]})}return c})();class ri{constructor(){this.id=0,this.Name="",this.Position="",this.Email="",this.Mobile=0,this.DateOfJoining=null,this.Salary=0,this.Projects=0,this.imagePath=""}}var ea=Ue(7715);const Ql=[{id:1,Name:"Johnathan Deo",Position:"Seo Expert",Email:"[email protected]",Mobile:9786838,DateOfJoining:new Date("01-2-2020"),Salary:12e3,Projects:10,imagePath:"assets/images/users/user1.jpg"},{id:2,Name:"Mark Zukerburg",Position:"Web Developer",Email:"[email protected]",Mobile:8786838,DateOfJoining:new Date("04-2-2020"),Salary:12e3,Projects:10,imagePath:"assets/images/users/user2.jpg"},{id:3,Name:"Sam smith",Position:"Web Designer",Email:"[email protected]",Mobile:7788838,DateOfJoining:new Date("02-2-2020"),Salary:12e3,Projects:10,imagePath:"assets/images/users/user3.jpg"},{id:4,Name:"John Deo",Position:"Tester",Email:"[email protected]",Mobile:8786838,DateOfJoining:new Date("03-2-2020"),Salary:12e3,Projects:11,imagePath:"assets/images/users/user4.jpg"},{id:5,Name:"Genilia",Position:"Actor",Email:"[email protected]",Mobile:8786838,DateOfJoining:new Date("05-2-2020"),Salary:12e3,Projects:19,imagePath:"assets/images/users/user5.jpg"},{id:6,Name:"Jack Sparrow",Position:"Content Writer",Email:"[email protected]",Mobile:8786838,DateOfJoining:new Date("05-21-2020"),Salary:12e3,Projects:5,imagePath:"assets/images/users/user1.jpg"},{id:7,Name:"Tom Cruise",Position:"Actor",Email:"[email protected]",Mobile:8786838,DateOfJoining:new Date("02-15-2019"),Salary:12e3,Projects:9,imagePath:"assets/images/users/user2.jpg"},{id:8,Name:"Hary Porter",Position:"Actor",Email:"[email protected]",Mobile:8786838,DateOfJoining:new Date("07-3-2019"),Salary:12e3,Projects:7,imagePath:"assets/images/users/user3.jpg"},{id:9,Name:"Kristen Ronaldo",Position:"Player",Email:"[email protected]",Mobile:8786838,DateOfJoining:new Date("01-15-2019"),Salary:12e3,Projects:1,imagePath:"assets/images/users/user4.jpg"}];let ns=(()=>{class c{constructor(){this.users=Ql}getUsers(){return(0,ea.D)(this.users)}deleteUser(i){this.users=this.users.filter(d=>d.id!==i)}addUser(i){this.users?.push(i)}updateUser(i,d){this.users[i]=d}static#e=this.\u0275fac=function(d){return new(d||c)};static#t=this.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})();function Kl(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"tr")(1,"td",15),e._uU(2),e.qZA(),e.TgZ(3,"td")(4,"div",16),e._UZ(5,"img",17),e.TgZ(6,"div",18)(7,"p",19),e._uU(8),e.qZA(),e.TgZ(9,"small"),e._uU(10),e.qZA()()()(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td"),e._uU(14),e.qZA(),e.TgZ(15,"td"),e._uU(16),e.ALo(17,"date"),e.qZA(),e.TgZ(18,"td"),e._uU(19),e.qZA(),e.TgZ(20,"td"),e._uU(21),e.qZA(),e.TgZ(22,"td")(23,"a",20),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw(),I=e.MAs(38);return e.KtG(k.openModal(I,w))}),e._UZ(24,"i-feather",21),e.qZA(),e.TgZ(25,"a",22),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw();return e.KtG(k.deleteUser(w.id))}),e._UZ(26,"i-feather",23),e.qZA()()()}if(2&c){const i=_.$implicit;e.xp6(2),e.hij(" ",i.id," "),e.xp6(3),e.Q6J("src",i.imagePath,e.LSH),e.xp6(3),e.Oqu(i.Name),e.xp6(2),e.Oqu(i.Position),e.xp6(2),e.Oqu(i.Email),e.xp6(2),e.Oqu(i.Mobile),e.xp6(2),e.Oqu(e.xi3(17,9,i.DateOfJoining,"fullDate")),e.xp6(3),e.Oqu(i.Salary),e.xp6(2),e.Oqu(i.Projects)}}function of(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1,"Name is required"),e.qZA())}function r_(c,_){if(1&c&&(e.TgZ(0,"div",49),e.YNc(1,of,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.Name.errors.required?1:-1)}}function is(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1," Position is required "),e.qZA())}function xi(c,_){if(1&c&&(e.TgZ(0,"div",49),e.YNc(1,is,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.Position.errors.required?1:-1)}}function sf(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1,"Email is required"),e.qZA())}
1function lf(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1,"Email is invalid"),e.qZA())}function ec(c,_){if(1&c&&(e.TgZ(0,"div",49),e.YNc(1,sf,2,0,"div")(2,lf,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.Email.errors.required?1:-1),e.xp6(),e.um2(2,i.f.Email.errors.Email?2:-1)}}function tc(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1,"Mobile is required"),e.qZA())}function rs(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1,"Mobile is invalid"),e.qZA())}function $a(c,_){if(1&c&&(e.TgZ(0,"div",49),e.YNc(1,tc,2,0,"div")(2,rs,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.Mobile.errors.required?1:-1),e.xp6(),e.um2(2,i.f.Mobile.errors.Mobile?2:-1)}}function cf(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1," Date Of Joining is required "),e.qZA())}function uf(c,_){if(1&c&&(e.TgZ(0,"div",49),e.YNc(1,cf,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.DateOfJoining.errors.required?1:-1)}}function df(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1," Salary is required "),e.qZA())}function a_(c,_){if(1&c&&(e.TgZ(0,"div",49),e.YNc(1,df,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.Salary.errors.required?1:-1)}}function as(c,_){1&c&&(e.TgZ(0,"div"),e._uU(1," Projects is required "),e.qZA())}function Tr(c,_){if(1&c&&(e.TgZ(0,"div",49),e.YNc(1,as,2,0,"div"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(),e.um2(1,i.f.Projects.errors.required?1:-1)}}const $i=c=>({"is-invalid":c});function o_(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",24)(1,"h5",25),e._uU(2,"Edit User"),e.qZA(),e.TgZ(3,"button",26),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.closeBtnClick())}),e.qZA()(),e.TgZ(4,"div",27)(5,"form",28),e.NdJ("ngSubmit",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.onSubmit())}),e.TgZ(6,"div",29)(7,"label",30),e._uU(8,"Name"),e.qZA(),e.TgZ(9,"div",31),e._UZ(10,"input",32),e.YNc(11,r_,2,1,"div",33),e.qZA()(),e.TgZ(12,"div",29)(13,"label",34),e._uU(14,"Position"),e.qZA(),e.TgZ(15,"div",31),e._UZ(16,"input",35),e.YNc(17,xi,2,1,"div",33),e.qZA()(),e.TgZ(18,"div",29)(19,"label",36),e._uU(20,"Email"),e.qZA(),e.TgZ(21,"div",31),e._UZ(22,"input",37),e.YNc(23,ec,3,2,"div",33),e.qZA()(),e.TgZ(24,"div",29)(25,"label",38),e._uU(26,"Mobile"),e.qZA(),e.TgZ(27,"div",31),e._UZ(28,"input",39),e.YNc(29,$a,3,2,"div",33),e.qZA()(),e.TgZ(30,"div",29)(31,"label",40),e._uU(32,"Date Of Joining"),e.qZA(),e.TgZ(33,"div",31)(34,"input",41),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.joiningDate=p)}),e.qZA(),e.YNc(35,uf,2,1,"div",33),e.qZA()(),e.TgZ(36,"div",29)(37,"label",42),e._uU(38,"Salary"),e.qZA(),e.TgZ(39,"div",31),e._UZ(40,"input",43),e.YNc(41,a_,2,1,"div",33),e.qZA()(),e.TgZ(42,"div",29)(43,"label",44),e._uU(44,"Projects"),e.qZA(),e.TgZ(45,"div",31),e._UZ(46,"input",45),e.YNc(47,Tr,2,1,"div",33),e.qZA()(),e.TgZ(48,"div",46)(49,"button",47),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.closeBtnClick())}),e._uU(50," Close "),e.qZA(),e.TgZ(51,"button",48),e._uU(52," Save "),e.qZA()()()()}if(2&c){const i=e.oxw();e.xp6(5),e.Q6J("formGroup",i.editUser),e.xp6(5),e.Q6J("ngClass",e.VKq(17,$i,i.submitted&&i.f.Name.errors)),e.xp6(),e.um2(11,i.submitted&&i.f.Name.errors?11:-1),e.xp6(5),e.Q6J("ngClass",e.VKq(19,$i,i.submitted&&i.f.Position.errors)),e.xp6(),e.um2(17,i.submitted&&i.f.Position.errors?17:-1),e.xp6(5),e.Q6J("ngClass",e.VKq(21,$i,i.submitted&&i.f.Email.errors)),e.xp6(),e.um2(23,i.submitted&&i.f.Email.errors?23:-1),e.xp6(5),e.Q6J("ngClass",e.VKq(23,$i,i.submitted&&i.f.Mobile.errors)),e.xp6(),e.um2(29,i.submitted&&i.f.Mobile.errors?29:-1),e.xp6(5),e.Q6J("ngModel",i.joiningDate)("ngClass",e.VKq(25,$i,i.submitted&&i.f.DateOfJoining.errors)),e.xp6(),e.um2(35,i.submitted&&i.f.DateOfJoining.errors?35:-1),e.xp6(5),e.Q6J("ngClass",e.VKq(27,$i,i.submitted&&i.f.Salary.errors)),e.xp6(),e.um2(41,i.submitted&&i.f.Salary.errors?41:-1),e.xp6(5),e.Q6J("ngClass",e.VKq(29,$i,i.submitted&&i.f.Projects.errors)),e.xp6(),e.um2(47,i.submitted&&i.f.Projects.errors?47:-1),e.xp6(4),e.Q6J("disabled",i.editUser.invalid)}}let s_=(()=>{class c{constructor(i,d,p,w,k){this.userService=i,this.fb=d,this.modalService=p,this.datePipe=w,this.formBuilder=k,this.form=new V.cw({Name:new V.NI(""),Position:new V.NI(""),Email:new V.NI(""),Mobile:new V.NI(""),DateOfJoining:new V.NI(""),Salary:new V.NI(""),Projects:new V.NI("")}),this.submitted=!1,this.userList=[],this.filterArray=[],this.userDetail=null,this.joiningDate=null,this.page=1,this.pageSize=7,this._searchTerm="",this.userService.getUsers().subscribe(I=>{this.userList.push(I)}),this.filterArray=this.userList}ngOnInit(){this.form=this.formBuilder.group({Name:["",V.kI.required],Position:["",V.kI.required],DateOfJoining:["",V.kI.required],Salary:["",V.kI.required],Projects:["",V.kI.required],Mobile:["",[V.kI.required,V.kI.minLength(10),V.kI.maxLength(10)]],Email:["",[V.kI.required,V.kI.email]]},{validators:[Bd.Z.match("password","confirmPassword")]}),this.editUser=this.fb.group({id:[""],Name:["",V.kI.required],Position:["",V.kI.required],Email:["",V.kI.required],Mobile:["",V.kI.required],DateOfJoining:["",V.kI.required],Salary:["",V.kI.required],Projects:["",V.kI.required]})}get f(){return this.form.controls}get searchTerm(){return this._searchTerm}set searchTerm(i){this._searchTerm=i,this.filterArray=this.filter(i)}filter(i){return this.userList.filter(d=>-1!==d.Name.toLowerCase().indexOf(i.toLowerCase())||-1!==d.Email.toLowerCase().indexOf(i.toLowerCase()))}deleteUser(i){this.filterArray&&(this.filterArray=this.filterArray.filter(d=>d.id!==i),this.userService.deleteUser(i))}openModal(i,d){this.modalService.open(i,{centered:!0,backdrop:"static"}),null!=d&&(d.DateOfJoining&&(this.joiningDate=this.datePipe.transform(new Date(d.DateOfJoining),"yyyy-MM-dd")),this.userDetail=d,this.editUser?.patchValue({Name:d.Name,Position:d.Position,Email:d.Email,Mobile:d.Mobile,DateOfJoining:d.DateOfJoining,Salary:d.Salary,Projects:d.Projects}))}onSubmit(){if(null!=this.filterArray&&this.userDetail){const i=this.filterArray.indexOf(this.userDetail);null!=this.editUser&&(this.userDetail.Name=this.editUser.get("Name")?.value,this.userDetail.Position=this.editUser.get("Position")?.value,this.userDetail.Email=this.editUser.get("Email")?.value,this.userDetail.Mobile=this.editUser.get("Mobile")?.value,this.userDetail.DateOfJoining=this.editUser.get("DateOfJoining")?.value,this.userDetail.Salary=this.editUser.get("Salary")?.value,this.userDetail.Projects=this.editUser.get("Projects")?.value),this.filterArray[i]=this.userDetail,this.userService.updateUser(i,this.userDetail)}else this.userDetail=new ri,this.filterArray&&(this.userDetail.id=Math.max.apply(Math,this.filterArray.map(function(i){return i.id}))+1),this.userDetail.Name=this.editUser?.get("Name")?.value,this.userDetail.Position=this.editUser?.get("Position")?.value,this.userDetail.Email=this.editUser?.get("Email")?.value,this.userDetail.Mobile=this.editUser?.get("Mobile")?.value,this.userDetail.DateOfJoining=new Date,this.userDetail.Salary=this.editUser?.get("Salary")?.value,this.userDetail.Projects=this.editUser?.get("Projects")?.value,this.userDetail.imagePath="assets/images/users/user3.jpg",this.userService.addUser(this.userDetail),this.filterArray.splice(0,0,this.userDetail);this.modalService.dismissAll(),this.userDetail=null,this.joiningDate="",this.ngOnInit()}closeBtnClick(){this.modalService.dismissAll(),this.ngOnInit()}static#e=this.\u0275fac=function(d){return new(d||c)(e.Y36(ns),e.Y36(V.QS),e.Y36(nt.FF),e.Y36(ce.uU),e.Y36(V.qu))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["app-user-rxjs"]],standalone:!0,features:[e.jDz],decls:39,vars:8,consts:[[1,"row"],[1,"col-12"],[1,"card","card-body"],[1,"card-title"],[1,"card-subtitle"],[1,"d-flex","mb-3","mt-3"],["type","text","placeholder","Search by Name or Email",1,"form-control","w-25",3,"ngModel","ngModelChange"],[1,"btn","btn-primary","ms-auto",3,"click"],[1,"table-responsive","table-bordered"],[1,"table","table-striped","mb-0","no-wrap","align-middle"],["scope","col",1,"text-center"],["scope","col"],[1,"d-flex","justify-content-center","mt-5"],[3,"page","pageSize","collectionSize","pageChange"],["editUserModal",""],[1,"text-center"],[1,"d-flex","align-items-center"],["height"," 50px","width","50px",1,"rounded-circle",3,"src"],[1,"ms-3"],[1,"font-medium","mb-0"],["href","javascript: void(0);","placement","top","ngbTooltip","Edit",1,"link","me-2",3,"click"],["name","edit-2",1,"feather-sm"],["href","javascript: void(0);","placement","top","ngbTooltip","Delete",1,"link",3,"click"],["name","trash-2",1,"feather-sm"],[1,"modal-header"],["id","editUserLabel",1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],[1,"modal-body"],[3,"formGroup","ngSubmit"],[1,"mb-3","row"],["for","name",1,"col-sm-4","col-form-label"],[1,"col-sm-8"],["type","text","formControlName","Name","id","name",1,"form-control",3,"ngClass"],["class","invali
1d-feedback"],["for","position",1,"col-sm-4","col-form-label"],["type","text","formControlName","Position","id","position",1,"form-control",3,"ngClass"],["for","email",1,"col-sm-4","col-form-label"],["type","email","formControlName","Email","id","email",1,"form-control",3,"ngClass"],["for","mobile",1,"col-sm-4","col-form-label"],["type","text","formControlName","Mobile","id","mobile",1,"form-control",3,"ngClass"],["for","doj",1,"col-sm-4","col-form-label"],["type","date","formControlName","DateOfJoining","id","doj",1,"form-control",3,"ngModel","ngClass","ngModelChange"],["for","salary",1,"col-sm-4","col-form-label"],["type","text","formControlName","Salary","id","salary",1,"form-control",3,"ngClass"],["for","projects",1,"col-sm-4","col-form-label"],["type","text","formControlName","Projects","id","projects",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["type","submit",1,"btn","btn-primary",3,"disabled"],[1,"invalid-feedback"]],template:function(d,p){if(1&d){const w=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),e._uU(4,"Employee Table"),e.qZA(),e.TgZ(5,"h5",4),e._uU(6,"Here is the employee list you can add, edit or delet the emplyee"),e.qZA(),e.TgZ(7,"div",5)(8,"input",6),e.NdJ("ngModelChange",function(I){return p.searchTerm=I}),e.qZA(),e.TgZ(9,"button",7),e.NdJ("click",function(){e.CHM(w);const I=e.MAs(38);return e.KtG(p.openModal(I,null))}),e._uU(10,"Add User"),e.qZA()(),e.TgZ(11,"div",8)(12,"table",9)(13,"thead")(14,"tr")(15,"th",10),e._uU(16,"#"),e.qZA(),e.TgZ(17,"th",11),e._uU(18,"Name"),e.qZA(),e.TgZ(19,"th",11),e._uU(20,"Email"),e.qZA(),e.TgZ(21,"th",11),e._uU(22,"Mobile"),e.qZA(),e.TgZ(23,"th",11),e._uU(24,"Date of Joining"),e.qZA(),e.TgZ(25,"th",11),e._uU(26,"Salary"),e.qZA(),e.TgZ(27,"th",11),e._uU(28,"Projects"),e.qZA(),e.TgZ(29,"th",11),e._uU(30,"Action"),e.qZA()()(),e.TgZ(31,"tbody"),e.SjG(32,Kl,27,12,"tr",null,e.x6l),e.ALo(34,"slice"),e.qZA()()(),e.TgZ(35,"div",12)(36,"ngb-pagination",13),e.NdJ("pageChange",function(I){return p.page=I}),e.qZA()()()()(),e.YNc(37,o_,53,31,"ng-template",null,14,e.W1O)}2&d&&(e.xp6(8),e.Q6J("ngModel",p.searchTerm),e.xp6(24),e.wJu(e.Dn7(34,4,p.filterArray,(p.page-1)*p.pageSize,(p.page-1)*p.pageSize+p.pageSize)),e.xp6(4),e.Q6J("page",p.page)("pageSize",p.pageSize)("collectionSize",p.filterArray.length))},dependencies:[ce.ez,ce.mk,ce.OU,ce.uU,Et.p,Et.u,V.u5,V._Y,V.Fj,V.JJ,V.JL,V.On,V.UX,V.sg,V.u,nt.jF,nt.N9]})}return c})();class ff{constructor(){this.id=0,this.firstName="",this.lastName="",this.mobile="",this.home="",this.company="",this.work="",this.notes="",this.imagePath=""}}const Vv=[{id:1,firstName:"Raj",lastName:"Dev",mobile:"979797992",home:"jodhpur",company:" F creation",work:"AD",notes:" i qb inujjbw.",imagePath:"assets/images/users/user5.jpg"},{id:2,firstName:"Mark",lastName:"Smith",mobile:"989797772",home:"Rajasthan",company:" F creation",work:"Designer",notes:" noyes kns nal sjj s slhjal.",imagePath:"assets/images/users/user2.jpg"},{id:3,firstName:"Jony",lastName:"Deep",mobile:"9234567563",home:"LA",company:" F creation",work:"Admin",notes:" admin : baun ja ayu gsiko iaij sikioa...",imagePath:"assets/images/users/user3.jpg"},{id:4,firstName:"Leonardo",lastName:"Caprio",mobile:"7837937777",home:"NJ",company:" F creation",work:"ADMIN",notes:"Leo nah ujhakj jjj akkak asdkfga an a .",imagePath:"assets/images/users/user4.jpg"}];let l_=(()=>{class c{constructor(){this.contacts=Vv}getContacts(){return(0,ea.D)(this.contacts)}deleteContact(i){this.contacts=this.contacts.filter(d=>d.firstName!==i.firstName&&d.lastName!==i.lastName)}addContact(i){this.contacts?.push(i)}static#e=this.\u0275fac=function(d){return new(d||c)};static#t=this.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})();const zv=(c,_)=>_.firstName;function c_(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"li",12),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw();return e.KtG(k.onSelect(w))}),e._UZ(1,"img",13),e.TgZ(2,"span",14),e._uU(3),e.qZA()()}if(2&c){const i=_.$implicit,d=e.oxw();e.ekj("active",i===d.selectedContact),e.xp6(),e.Q6J("src",i.imagePath,e.LSH),e.xp6(2),e.AsE("",i.firstName,"\xa0",i.lastName,"")}}function hf(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",20),e.NdJ("click",function(){e.CHM(i);const p=e.oxw(2);return e.KtG(p.editContact())}),e.TgZ(1,"div",21),e._UZ(2,"img",22),e.qZA(),e.TgZ(3,"div",23)(4,"table",24)(5,"tbody")(6,"tr")(7,"td",25),e._uU(8,"Name"),e.qZA(),e.TgZ(9,"td",26),e._uU(10),e.qZA()(),e.TgZ(11,"tr")(12,"td",25),e._uU(13,"Company"),e.qZA(),e.TgZ(14,"td",26),e._uU(15),e.qZA()(),e.TgZ(16,"tr")(17,"td",25),e._uU(18,"Work"),e.qZA(),e.TgZ(19,"td",26),e._uU(20),e.qZA()(),e.TgZ(21,"tr")(22,"td",25),e._uU(23,"Phone"),e.qZA(),e.TgZ(24,"td",26),e._uU(25),e.qZA()(),e.TgZ(26,"tr")(27,"td",25),e._uU(28,"Address"),e.qZA(),e.TgZ(29,"td",26),e._uU(30),e.qZA()(),e.TgZ(31,"tr")(32,"td",25),e._uU(33,"Note"),e.qZA(),e.TgZ(34,"td",26),e._uU(35),e.qZA()()()()()()}if(2&c){const i=e.oxw(2);e.xp6(2),e.Q6J("src",i.selectedContact.imagePath,e.LSH),e.xp6(8),e.AsE(" ",i.selectedContact.firstName,"\xa0",i.selectedContact.lastName,""),e.xp6(5),e.Oqu(i.selectedContact.company),e.xp6(
15),e.Oqu(i.selectedContact.work),e.xp6(5),e.Oqu(i.selectedContact.mobile),e.xp6(5),e.Oqu(i.selectedContact.home),e.xp6(5),e.Oqu(i.selectedContact.notes)}}function Yv(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",27)(1,"div",21),e._UZ(2,"img",28),e.qZA(),e.TgZ(3,"div",23)(4,"table",29)(5,"tbody")(6,"tr")(7,"td",25),e._uU(8,"Name"),e.qZA(),e.TgZ(9,"td",30)(10,"input",31),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.selectedContact.firstName=p)}),e.qZA(),e.TgZ(11,"input",32),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.selectedContact.lastName=p)}),e.qZA()()(),e.TgZ(12,"tr")(13,"td",25),e._uU(14,"Company"),e.qZA(),e.TgZ(15,"td")(16,"input",31),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.selectedContact.company=p)}),e.qZA()()(),e.TgZ(17,"tr")(18,"td",25),e._uU(19,"Work"),e.qZA(),e.TgZ(20,"td")(21,"input",31),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.selectedContact.work=p)}),e.qZA()()(),e.TgZ(22,"tr")(23,"td",25),e._uU(24,"Phone"),e.qZA(),e.TgZ(25,"td")(26,"input",33),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.selectedContact.mobile=p)}),e.qZA()()(),e.TgZ(27,"tr")(28,"td",25),e._uU(29,"Address"),e.qZA(),e.TgZ(30,"td")(31,"input",31),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.selectedContact.home=p)}),e.qZA()()(),e.TgZ(32,"tr")(33,"td",25),e._uU(34,"Note"),e.qZA(),e.TgZ(35,"td")(36,"textarea",34),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw(2);return e.KtG(w.selectedContact.notes=p)}),e.qZA()()()()()()()}if(2&c){const i=e.oxw(2);e.xp6(2),e.Q6J("src",i.selectedContact.imagePath,e.LSH),e.xp6(8),e.Q6J("ngModel",i.selectedContact.firstName),e.xp6(),e.Q6J("ngModel",i.selectedContact.lastName),e.xp6(5),e.Q6J("ngModel",i.selectedContact.company),e.xp6(5),e.Q6J("ngModel",i.selectedContact.work),e.xp6(5),e.Q6J("ngModel",i.selectedContact.mobile),e.xp6(5),e.Q6J("ngModel",i.selectedContact.home),e.xp6(5),e.Q6J("ngModel",i.selectedContact.notes)}}function $v(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div")(1,"div",15)(2,"a",16),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.editContact())}),e._uU(3),e.qZA(),e.TgZ(4,"a",17),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.deleteContact(p.selectedContact))}),e._uU(5," Delete "),e.qZA()(),e.TgZ(6,"div",18),e.YNc(7,hf,36,8,"div",19)(8,Yv,37,8),e.qZA()()}if(2&c){const i=e.oxw();e.xp6(3),e.hij(" ",i.editSave," "),e.xp6(4),e.um2(7,i.show?7:8)}}const nc=c=>({"show-panel":c});let ic=(()=>{class c{constructor(i){this.contactService=i,this.showSidebar=!1,this.contacts=[],this.filterArray=[],this.selectedContact=null,this.show=!0,this.editSave="Edit",this._searchTerm="",this.contactService.getContacts().subscribe(d=>{this.contacts.push(d)})}ngOnInit(){this.filterArray=this.contacts,this.contacts.length>0&&this.onSelect(this.contacts[0])}mobileSidebar(){this.showSidebar=!this.showSidebar}get searchTerm(){return this._searchTerm}set searchTerm(i){this._searchTerm=i,this.filterArray=this.filter(i)}filter(i){return this.contacts.filter(d=>-1!==d.firstName.toLowerCase().indexOf(i.toLowerCase())||-1!==d.lastName.toLowerCase().indexOf(i.toLowerCase()))}onSelect(i){this.selectedContact=i}editContact(){"Save"===this.editSave?(this.show=!0,this.editSave="Edit"):(this.show=!1,this.editSave="Save")}addContact(){let i=new ff;i.id=Math.max.apply(Math,this.filterArray.map(function(d){return d.id}))+1,i.firstName="First Name",i.lastName="Last Name",i.mobile="",i.home="",i.company="",i.work="",i.notes="",i.imagePath="assets/images/users/user1.jpg",this.contactService.addContact(i),this.filterArray.splice(0,0,i),this.selectedContact=this.filterArray[0],this.editContact()}deleteContact(i){this.contactService.deleteContact(i),this.filterArray=this.filterArray.filter(d=>d.firstName!==i.firstName&&d.lastName!==i.lastName),this.selectedContact=null}static#e=this.\u0275fac=function(d){return new(d||c)(e.Y36(l_))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["app-contact-rxjs"]],standalone:!0,features:[e.jDz],decls:16,vars:6,consts:[["href","javascript:void(0)",1,"btn","btn-success","show-left-part","d-block","d-md-none",3,"ngClass","click"],[1,"main-part"],[1,"left-part","bg-white","fixed-left-part",3,"ngClass"],[1,"position-relative"],[1,"p-3","d-flex","align-items-center","border-bottom"],["type","text","placeholder","Search Contact",1,"form-control",3,"ngModel","ngModelChange"],[1,"contact-list","list-style-none"],[1,"right-part","bg-white"],[1,"card"],[1,""],[1,"text-end"],["type","button","id","btnAddContact",1,"btn","btn-primary",3,"click"],[1,"contact-item","border-bottom","p-3",3,"click"],["height","40","width","40",1,"rounded-circle",3,"src"],[1,"ms-3","font-medium"],[1,"px-3","py-3","d-flex","align-items-center","border-bottom"],["href","javascript: void(0);",1,"btn","btn-success","me-2",3,"click"],["href","javascript: void(0);",1,"btn","btn-danger",3,"click"],[1,"px-3"],["class","row"],[1,"row",3,"click"],[1,"col-md-2","text-center","col-xl-1"],["height","100","width","100",1,"rounded-circle","mt-4",3,"src"],[1,"col-md-8"],[1,"table","ms-4","mt-3","table-lg","table-borderless","align-middle"],[1,"fw-bold","detail-title"],[1,"pl-2"],[1,"mt-4","row"],["height","100","width","100",1,"rounded-circle","mt-4","flex-shrink-0",3,"src"],[1,"ms-4","table","table-borderless","align-middle"],[1,"d-flex"],["type","text",1,"form-control",3,"ngModel","ngModelChange"],["type","text",1,"form-control","ms-2",3,"ngModel","ngModelChange"],["type","text","maxlength","10",1,"form-control",3,"ngModel","ngModelChange"],[1,"form-control",3,"ngModel","ngModelChange"],["class","contact-item border-bottom p-3",3,"active"]],template:function(d,p){1&d&&(e.TgZ(0,"a",0),e.NdJ("click",function(){return p.mobileSidebar()}),e.qZA(),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"input",5),e.NdJ("ngModelChange",function(k){return p.searchTerm=k}),e.qZA()(),e.TgZ(6,"ul",6),e.SjG(7,c_,4,5,"li",35,zv),e.qZA()()(),e.TgZ(9,"div",7)(10,"div",8)(11,"div",9)(12,"div",10)(13,"button",11),e.NdJ("click",function(){return p.addContact()}),e._uU(14,"Add New Contact"),e.qZA()(),e.YNc(15,$v,9,2,"div"),e.qZA()()()()),2&d&&(e.Q6J("ngClass",p.showSidebar?"ti-close":"ti-menu"),e.xp6(2),e.Q6J("ngClass",e.VKq(4,nc,p.showSidebar)),e.xp6(3),e.Q6J("ngModel",p.searchTerm),e.xp6(2),e.wJu(p.filterArray),e.xp6(8),e.um2(15,p.selectedContact?15:-1))}
1,dependencies:[V.u5,V.Fj,V.JJ,V.nD,V.On,V.UX,ce.ez,ce.mk],styles:['.detail-title[_ngcontent-%COMP%]{width:80px;position:relative}.detail-title[_ngcontent-%COMP%]:after{content:":";position:absolute;right:0}.contact-list[_ngcontent-%COMP%] .contact-item[_ngcontent-%COMP%]:hover{cursor:pointer}.contact-list[_ngcontent-%COMP%] .contact-item.active[_ngcontent-%COMP%]{background-color:#e9ecef}#btnAddContact[_ngcontent-%COMP%]{position:absolute;right:15px;top:15px}']})}return c})();class rc{constructor(){this.Id=0,this.Imagepath="",this.Name="",this.Tags="",this.Jobtitle="",this.Company="",this.Email="",this.Phonenumber=0,this.Address="",this.DOB=null,this.Description=""}}const Jv=[{Id:1,Imagepath:"assets/images/users/user1.jpg",Name:"Emma Adams",Tags:"Friend",Jobtitle:"Web Developer",Company:"Wrappixel",Email:"[email protected]",Phonenumber:1548462031,Address:"Boston, USA",DOB:new Date,Description:"Felis bibendum ut tristique et egestas quis. In cursus turpis massa tincidunt dui ut."},{Id:2,Imagepath:"assets/images/users/user2.jpg",Name:"Olivia Allen",Tags:"Family",Jobtitle:"Ethical Hacker",Company:"Infosys",Email:"[email protected]",Phonenumber:9478021640,Address:"Sydney, Australia",DOB:new Date,Description:"Est ante in nibh mauris cursus mattis molestie a iaculis."},{Id:3,Imagepath:"assets/images/users/user3.jpg",Name:"Emily Atkinson",Tags:"Friend",Jobtitle:"UX/UI Designer",Company:"Google",Email:"[email protected]",Phonenumber:6302154203,Address:"Edinburgh, UK",DOB:new Date,Description:"Orci nulla pellentesque dignissim enim."},{Id:4,Imagepath:"assets/images/users/user4.jpg",Name:"Isabella Anderson",Tags:"Friend",Jobtitle:"UX/UI Designer",Company:"Tesala",Email:"[email protected]",Phonenumber:1503201502,Address:"Miami, USA",DOB:new Date,Description:"Gravida cum sociis natoque penatibus et magnis dis parturient."},{Id:5,Imagepath:"assets/images/users/user5.jpg",Name:"Amelia Armstrong",Tags:"Office",Jobtitle:"Ethical Hacker",Company:"Infosys",Email:"[email protected]",Phonenumber:8124502316,Address:"Tokyo, Japan",DOB:new Date,Description:"Sit amet luctus venenatis lectus magna fringilla urna porttitor."},{Id:6,Imagepath:"assets/images/users/user1.jpg",Name:"Sofia Bailey",Tags:"Family",Jobtitle:"Theme Designer",Company:"Google",Email:"[email protected]",Phonenumber:7080642130,Address:"New York, USA",DOB:new Date,Description:"Sapien et ligula ullamcorper malesuada proin libero nunc."},{Id:7,Imagepath:"assets/images/users/user2.jpg",Name:"Victoria Sharma",Tags:"Friend",Jobtitle:"Project Manager",Company:"Wrappixel",Email:"[email protected]",Phonenumber:9040263102,Address:"Miami, USA",DOB:new Date,Description:"Id venenatis a condimentum vitae sapien pellentesque habitant morbi."},{Id:8,Imagepath:"assets/images/users/user3.jpg",Name:"Olivia Allen",Tags:"Friend",Jobtitle:"Ethical Hacker",Company:"Infosys",Email:"[email protected]",Phonenumber:7800245169,Address:"Sydney, Australia",DOB:new Date,Description:"Elit at imperdiet dui accumsan sit amet nulla facilisi morbi. Porta lorem mollis aliquam ut porttitor leo a diam."},{Id:9,Imagepath:"assets/images/users/user4.jpg",Name:"Emily Atkinson",Tags:"Office",Jobtitle:"UX/UI Designer",Company:"Google",Email:"[email protected]",Phonenumber:9874560213,Address:"Edinburgh, UK",DOB:new Date,Description:"Vivamus arcu felis bibendum ut tristique."},{Id:10,Imagepath:"assets/images/users/user5.jpg",Name:"Emma Adams",Tags:"Office",Jobtitle:"Web Developer",Company:"Wrappixel",Email:"[email protected]",Phonenumber:4500231620,Address:"Boston, USA",DOB:new Date,Description:"Habitasse platea dictumst vestibulum rhoncus."},{Id:11,Imagepath:"assets/images/users/user1.jpg",Name:"Olivia Allen",Tags:"Friend",Jobtitle:"Ethical Hacker",Company:"Infosys",Email:"[email protected]",Phonenumber:9748020130,Address:"Sydney, Australia",DOB:new Date,Description:"Aliquet porttitor lacus luctus accumsan tortor posuere."},{Id:12,Imagepath:"assets/images/users/user2.jpg",Name:"Emily Atkinson",Tags:"Friend",Jobtitle:"UX/UI Designer",Company:"Google",Email:"[email protected]",Phonenumber:8200154212,Address:"Edinburgh, UK",DOB:new Date,Description:"Elit at imperdiet dui accumsan sit amet nulla."}];let pf=(()=>{class c{constructor(){this.contactList=Jv}
1getContactList(){return(0,ea.D)(this.contactList)}deleteContactList(i){this.contactList=this.contactList.filter(d=>d.Id!==i)}addContactList(i){this.contactList?.push(i)}updateContactList(i,d){this.contactList[i]=d}static#e=this.\u0275fac=function(d){return new(d||c)};static#t=this.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})();const gf=(c,_)=>_.Name;function jv(c,_){if(1&c&&(e.TgZ(0,"div",31)(1,"button",32),e._UZ(2,"i-feather",33),e.qZA(),e.TgZ(3,"div",34),e._uU(4),e.qZA()()),2&c){const i=e.oxw(2);e.xp6(4),e.AsE("",null==i.selectedContact?null:i.selectedContact.Jobtitle," , ",null==i.selectedContact?null:i.selectedContact.Company,"")}}function Bv(c,_){if(1&c&&(e.TgZ(0,"div",31)(1,"button",35),e._UZ(2,"i-feather",36),e.qZA(),e.TgZ(3,"div",34),e._uU(4),e.qZA()()),2&c){const i=e.oxw(2);e.xp6(4),e.Oqu(null==i.selectedContact?null:i.selectedContact.Email)}}function u_(c,_){if(1&c&&(e.TgZ(0,"div",31)(1,"button",37),e._UZ(2,"i-feather",38),e.qZA(),e.TgZ(3,"div",34),e._uU(4),e.qZA()()),2&c){const i=e.oxw(2);e.xp6(4),e.Oqu(null==i.selectedContact?null:i.selectedContact.Phonenumber)}}function d_(c,_){if(1&c&&(e.TgZ(0,"div",31)(1,"button",39),e._UZ(2,"i-feather",40),e.qZA(),e.TgZ(3,"div",34),e._uU(4),e.qZA()()),2&c){const i=e.oxw(2);e.xp6(4),e.Oqu(null==i.selectedContact?null:i.selectedContact.Address)}}function mf(c,_){if(1&c&&(e.TgZ(0,"div",31)(1,"button",41),e._UZ(2,"i-feather",42),e.qZA(),e.TgZ(3,"div",34),e._uU(4),e.ALo(5,"date"),e.qZA()()),2&c){const i=e.oxw(2);e.xp6(4),e.Oqu(e.lcZ(5,1,null==i.selectedContact?null:i.selectedContact.DOB))}}function f_(c,_){if(1&c&&(e.TgZ(0,"div",43)(1,"button",44),e._UZ(2,"i-feather",45),e.qZA(),e.TgZ(3,"div",34),e._uU(4),e.qZA()()),2&c){const i=e.oxw(2);e.xp6(4),e.Oqu(null==i.selectedContact?null:i.selectedContact.Description)}}function _f(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div"),e._UZ(1,"img",17),e.TgZ(2,"div",18)(3,"div",19)(4,"a",20),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.editContact())}),e._UZ(5,"i-feather",21),e.qZA(),e.TgZ(6,"a",22),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.closeRightMenu())}),e._UZ(7,"i-feather",23),e.qZA()()(),e.TgZ(8,"div",24),e._UZ(9,"img",25),e.TgZ(10,"h4",26),e._uU(11),e.qZA(),e.TgZ(12,"span",27),e._uU(13),e.qZA()(),e.TgZ(14,"ng-scrollbar",28),e.YNc(15,jv,5,2,"div",29)(16,Bv,5,1,"div",29)(17,u_,5,1,"div",29)(18,d_,5,1,"div",29)(19,mf,6,3,"div",29)(20,f_,5,1,"div",30),e.qZA()()}if(2&c){const i=e.oxw();e.xp6(9),e.Q6J("src",i.selectedContact.Imagepath,e.LSH),e.xp6(2),e.Oqu(null==i.selectedContact?null:i.selectedContact.Name),e.xp6(2),e.Oqu(null==i.selectedContact?null:i.selectedContact.Tags),e.xp6(2),e.um2(15,null!=i.selectedContact.Jobtitle&&null!=i.selectedContact.Company?15:-1),e.xp6(),e.um2(16,null!=i.selectedContact.Email?16:-1),e.xp6(),e.um2(17,null!=i.selectedContact.Phonenumber?17:-1),e.xp6(),e.um2(18,null!=i.selectedContact.Address?18:-1),e.xp6(),e.um2(19,null!=i.selectedContact.DOB?19:-1),e.xp6(),e.um2(20,null!=i.selectedContact.Description?20:-1)}}function h_(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div"),e._UZ(1,"img",17),e.TgZ(2,"div",46)(3,"div",19)(4,"a",47),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.saveClick(p.selectedContact.Id))}),e._UZ(5,"i-feather",48),e.qZA(),e.TgZ(6,"a",49),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.deleteClick(p.selectedContact.Id))}),e._UZ(7,"i-feather",50),e.qZA(),e.TgZ(8,"a",22),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.cancelClick())}),e._UZ(9,"i-feather",23),e.qZA()()(),e.TgZ(10,"div")(11,"form")(12,"div",51)(13,"input",52,53),e.NdJ("change",function(){e.CHM(i);const p=e.MAs(14),w=e.oxw();return e.KtG(w.preview(p.files))}),e.qZA(),e.TgZ(15,"img",54),e.NdJ("click",function(){e.CHM(i);const p=e.MAs(14);return e.KtG(p.click())}),e.qZA(),e.TgZ(16,"div",24)(17,"span",55),e._uU(18,"Change Image"),e.qZA()()(),e.TgZ(19,"ng-scrollbar",28)(20,"div",56)(21,"div",57)(22,"label",58),e._uU(23,"Name"),e.qZA(),e.TgZ(24,"input",59),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.selectedContactCopy.Name=p)}),e.qZA()(),e.TgZ(25,"div",57)(26,"label",58),e._uU(27,"Job Title"),e.qZA(),e.TgZ(28,"input",60),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.selectedContactCopy.Jobtitle=p)}),e.qZA()(),e.TgZ(29,"div",57)(30,"label",58),e._uU(31,"Company name"),e.qZA(),e.TgZ(32,"input",61),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.selectedContactCopy.Company=p)}),e.qZA()(),e.TgZ(33,"div",57)(34,"label",58),e._uU(35,"Email"),e.qZA(),e.TgZ(36,"input",62),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.selectedContactCopy.Email=p)}),e.qZA()(),e.TgZ(37,"div",57)(38,"label",58),e._uU(39,"Phone Number"),e.qZA(),e.TgZ(40,"input",63),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.selectedContactCopy.Phonenumber=p)}),e.qZA()(),e.TgZ(41,"div",57)(42,"label",58),e._uU(43,"Location"),e.qZA(),e.TgZ(44,"input",64),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.selectedContactCopy.Address=p)}),e.qZA()(),e.TgZ(45,"div",57)(46,"label",58),e._uU(47,"Birthdate"),e.qZA(),e.TgZ(48,"input",65),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.selectedContactCopy.DOB=p)}),e.qZA()(),e.TgZ(49,"div",57)(50,"label",58),e._uU(51,"Description"),e.qZA(),e.TgZ(52,"textarea",66),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.selectedContactCopy.Description=p)}),e.qZA()()()()()()()}if(2&c){const i=e.oxw();e.xp6(15),e.Q6J("src",i.selectedContactCopy.Imagepath,e.LSH),e.xp6(9),e.Q6J("ngModel",i.selectedContactCopy.Name),e.xp6(4),e.Q6J("ngModel",i.selectedContactCopy.Jobtitle),e.xp6(4),e.Q6J("ngModel",i.selectedContactCopy.Company),e.xp6(4),e.Q6J("ngModel",i.selectedContactCopy.Email),e.xp6(4),e.Q6J("ngModel",i.selectedContactCopy.Phonenumber),e.xp6(4),e.Q6J("ngModel",i.selectedContactCopy.Address),e.xp6(4),e.Q6J("ngModel",i.selectedContactCopy.DOB),e.xp6(4),e.Q6J("ngModel",i.selectedContactCopy.Description)}}function p_(c,_){if(1&c&&(e.TgZ(0,"span",67),e._uU(1),e.qZA()),2&c){const i=e.oxw();e.xp6(),e.Oqu(i.contactFilter.length)}}function Ji(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"tr")(1,"td"),e._UZ(2,"img",68),e.TgZ(3,"span",69),e._uU(4),e.qZA()(),e.TgZ(5,"td",70)(6,"span")(7,"span",71),e._UZ(8,"i-feather",36),e.qZA(),e._uU(9),e.qZA()(),e.TgZ(10,"td",70)(11,"span")(12,"span",71),e._UZ(13,"i-feather",72),e.qZA(),e._uU(14),e.qZA()(),e.TgZ(15,"td",73)(16,"span")(17,"span",71),e._UZ(18,"i-feather",33),e.qZA(),e._uU(19),e.qZA()(),e.TgZ(20,"td",70)(21,"a",74),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw();return e.KtG(k.tableRowClicked(w))}),e._UZ(22,"i-feather",75),e.qZA(),e.TgZ(23,"a",76),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw();return e.KtG(k.viewClicked(w))}),e._UZ(24,"i-feather",77),e.qZA(),e.TgZ(25,"a",78),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw();return e.KtG(k.deleteClick(w.Id))}),e._UZ(26,"i-feather",50),e.qZA()()()}if(2&c){const i=_.$implicit;e.xp6(2),e.Q6J("src",i.Imagepath,e.LSH),e.xp6(2),e.Oqu(i.Name),e.xp6(5),e.hij(" ",i.Email," "),e.xp6(5),e.hij(" ",i.Phonenumber," "),e.xp6(5),e.AsE(" ",i.Jobtitle," , ",i.Company," ")}}let g_=(()=>{class c{constructor(i){this.contactListservice=i,this.contacts=[],this.contactFilter=null,this.selectedContact=null,this.selectedContactCopy=null,this.editable=!1,this.page=1,this.pageSize=5,this.collectionSize=0,this._searchTerm="",this.imagePath=null,this.imgURL=null,this.message="",this.contactListservice.getContactList(
1).subscribe(d=>{this.contacts.push(d)})}ngOnInit(){this.contactFilter=this.contacts,this.collectionSize=this.contactFilter.length,this.selectedContact=null}get searchTerm(){return this._searchTerm}set searchTerm(i){this._searchTerm=i,this.contactFilter=this.filter(i)}filter(i){return this.contacts.filter(d=>-1!==d.Name.toLowerCase().indexOf(i.toLowerCase()))}tableRowClicked(i){this.selectedContact=i,document.getElementById("rightMenu").style.width="300px",this.editContact()}viewClicked(i){this.selectedContact=i,document.getElementById("rightMenu").style.width="300px"}closeRightMenu(){this.editable=!1,this.selectedContact=null,this.selectedContactCopy=null,document.getElementById("rightMenu").style.width="0"}editContact(){this.selectedContactCopy=Object.assign({},this.selectedContact),this.editable=!0}cancelClick(){this.selectedContact=null,this.selectedContactCopy=null,this.closeRightMenu()}saveClick(i){if(this.contactFilter){const d=this.contactFilter.find(p=>p.Id===i);void 0!==d&&this.selectedContactCopy&&(d.Imagepath=this.selectedContactCopy.Imagepath,d.Name=this.selectedContactCopy.Name,d.Tags=this.selectedContactCopy.Tags,d.Jobtitle=this.selectedContactCopy.Jobtitle,d.Company=this.selectedContactCopy.Company,d.Email=this.selectedContactCopy.Email,d.Phonenumber=this.selectedContactCopy.Phonenumber,d.Address=this.selectedContactCopy.Address,d.DOB=this.selectedContactCopy.DOB,d.Description=this.selectedContactCopy.Description,this.contactListservice.updateContactList(i,d),this.closeRightMenu())}}deleteClick(i){this.contactFilter&&(this.contactListservice.deleteContactList(i),this.contactFilter=this.contactFilter.filter(d=>d.Id!==i)),this.collectionSize--,this.selectedContact=null,this.closeRightMenu()}addContact(){const i=new rc;if(this.contactFilter){const d=Math.max.apply(Math,this.contactFilter.map(function(p){return p.Id}))+1;i.Id=d}i.Imagepath="/assets/images/users/user1.jpg",i.Name="New Contact",i.Tags="Test",i.Jobtitle="Web Designer",i.Company="Wrappixel",i.Email="[email protected]",i.Phonenumber=9405123015,i.Address="Bhavnagar, India",i.DOB=new Date,i.Description="Add a Description",this.contactListservice.addContactList(i),this.contactFilter?.splice(0,0,i),this.collectionSize++,this.tableRowClicked(i),this.editContact()}preview(i){if(0===i.length)return;if(null==i[0].type.match(/image\/*/))return void(this.message="Only images are supported.");const p=new FileReader;this.imagePath=i,p.readAsDataURL(i[0]),p.onload=w=>{this.selectedContactCopy.Imagepath=p.result}}static#e=this.\u0275fac=function(d){return new(d||c)(e.Y36(pf))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["app-contact-list-rxjs"]],standalone:!0,features:[e.jDz],decls:39,vars:11,consts:[["id","rightMenu",1,"app-sidebar","card"],[1,"d-md-flex","align-items-center","bg-white","p-3"],[1,"mb-0"],[1,"ms-auto","mt-3","mt-md-0"],["type","button",1,"btn","btn-cyan","rounded-pill","py-2",3,"click"],[1,"fas","fa-plus","fs-3","me-1","text-white"],[1,"ms-1","text-white","fw-bold"],[1,"d-md-flex","align-items-center","border-top","bg-white","p-3"],["type","text","placeholder","Search by Name",1,"form-control","rounded-pill",3,"ngModel","ngModelChange"],["href","javascript:void(0)",1,"d-flex","align-items-center","p-2","rounded-pill","bg-light"],[1,"mb-0","me-1","text-dark","fw-bold","fs-3"],["class","badge bg-danger badge-pill px-3 fw-bold fs-3"],[1,"table-responsive"],[1,"table","bg-white","table-hover","align-middle","mb-0","text-nowrap"],["scope","col"],[1,"d-flex","justify-content-center","p-2","pt-3","bg-white","border-top"],[3,"collectionSize","page","pageSize","pageChange"],["src","assets/images/background/profile-bg.jpg",1,"card-img"],[1,"card-img-overlay"],[1,"d-flex","justify-content-end"],["href","javascript:void(0)","placement","bottom","ngbTooltip","Edit Contact",1,"btn","bg-white","text-info","py-1","px-2","link",3,"click"],["name","edit-2",1,"feather-sm"],["href","javascript:void(0)",1,"btn","bg-white","text-danger","py-1","px-2","link","ms-3",3,"click"],["name","x",1,"feather-sm"],[1,"text-center"],["alt","Cinque Terre","height","100px","width","100px",1,"rounded-circle","mt-n5","shadow",3,"src"],[1,"text-dark","mt-2","mb-0"],[1,"badge","bg-info","px-2"],[1,"position-relative",2,"height","350px"],["class","d-flex align-items-center py-2 px-3 border-bottom"],["class","d-flex align-items-start py-2 px-3 border-bottom"],[1,"d-flex","align-items-center","py-2","px-3","border-bottom"],[1,"btn","btn-success","btn-circle","rounded-circle","me-2","d-flex","align-items-center","btn-sm","justify-content-center"],["name","Briefcase",1,"feather-sm"],[1,"text-dark","font-medium"],[1,"btn","btn-danger","btn-circle","rounded-circle","me-2","d-flex","align-items-center","btn-sm","justify-content-center"],["name","Mail",1,"feather-sm"],[1,"btn","btn-warning","btn-circle","rounded-circle","me-2","d-flex","align-items-center","btn-sm","justify-content-center"],["name","Phone",1,"feather-sm"],[1,"btn","btn-primary","btn-circle","rounded-circle","me-2","d-flex","align-items-center","btn-sm","justify-content-center"],["name","Map",1,"feather-sm"],[1,"btn","btn-dark","btn-circle","rounded-circle","me-2","d-flex","align-items-center","btn-sm","justify-content-center"],["name","Gift",1,"feather-sm"],[1,"d-flex","align-items-start","py-2","px-3","border-bottom"],[1,"btn","btn-info","btn-circle","rounded-circle","me-2","d-flex","align-items-center","btn-sm","justify-content-center"],["name","file-text",1,"feather-sm"],[1,"card-img-
1overlay",2,"height","95px"],["href","javascript:void(0)","placement","bottom","ngbTooltip","Save Contact",1,"btn","bg-white","text-success","py-1","px-2","link",3,"click"],["name","save",1,"feather-sm"],["href","javascript:void(0)","placement","bottom","ngbTooltip","Delete Contact",1,"btn","bg-white","text-danger","py-1","px-2","link","ms-3",3,"click"],["name","trash-2",1,"feather-sm"],[1,"mb-3","mt-n5","text-center"],["type","file",2,"display","none",3,"change"],["filevar",""],["alt","","height","100px","width","100px",1,"rounded-circle","image",3,"src","click"],[1,"fw-normal"],[1,"row","p-3"],[1,"col-12","mb-3"],[1,"mb-0","text-dark"],["type","text","name","name",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","Jobtitle",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","company",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","email",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","phone",1,"form-control",3,"ngModel","ngModelChange"],["name","address","type","text",1,"form-control",3,"ngModel","ngModelChange"],["name","dob","type","date",1,"form-control",3,"ngModel","ngModelChange"],["name","description","type","text",1,"form-control",3,"ngModel","ngModelChange"],[1,"badge","bg-danger","badge-pill","px-3","fw-bold","fs-3"],["alt","","height","45","width","45",1,"rounded-circle","me-3",3,"src"],[1,"text-dark","font-medium","fs-4"],[1,"align-middle"],[1,"text-dark","rounded-pill","fs-4","me-1"],["name","phone",1,"feather-sm"],[1,"align-middle","position-relative"],["href","javascript:void(0)",1,"link","fs-4","me-2","font-medium",3,"click"],["name","edit-3",1,"feather-sm"],["href","javascript:void(0)",1,"link","fs-4","me-2","fw-bold",3,"click"],["name","eye",1,"feather-sm"],["href","javascript:void(0)",1,"link","fs-4","fw-bold",3,"click"]],template:function(d,p){1&d&&(e.TgZ(0,"div",0),e.YNc(1,_f,21,9,"div")(2,h_,53,9,"div"),e.qZA(),e.TgZ(3,"div",1)(4,"h3",2),e._uU(5,"Contact List"),e.qZA(),e.TgZ(6,"div",3)(7,"button",4),e.NdJ("click",function(){return p.addContact()}),e._UZ(8,"i",5),e.TgZ(9,"span",6),e._uU(10,"Add Contact"),e.qZA()()()(),e.TgZ(11,"div",7)(12,"div")(13,"input",8),e.NdJ("ngModelChange",function(k){return p.searchTerm=k}),e.qZA()(),e.TgZ(14,"div",3)(15,"a",9)(16,"h5",10),e._uU(17," Total Contacts "),e.qZA(),e.YNc(18,p_,2,1,"span",11),e.qZA()()(),e.TgZ(19,"div",12)(20,"table",13)(21,"thead")(22,"tr")(23,"th"),e._uU(24,"Name"),e.qZA(),e.TgZ(25,"th",14),e._uU(26,"Email"),e.qZA(),e.TgZ(27,"th",14),e._uU(28,"Phone Number"),e.qZA(),e.TgZ(29,"th",14),e._uU(30,"Job title & company"),e.qZA(),e.TgZ(31,"th",14),e._uU(32,"Action"),e.qZA()()(),e.TgZ(33,"tbody"),e.SjG(34,Ji,27,6,"tr",null,gf),e.ALo(36,"slice"),e.qZA()()(),e.TgZ(37,"div",15)(38,"ngb-pagination",16),e.NdJ("pageChange",function(k){return p.page=k}),e.qZA()()),2&d&&(e.xp6(),e.um2(1,null==p.selectedContact||p.editable?-1:1),e.xp6(),e.um2(2,null!=p.selectedContact&&p.editable?2:-1),e.xp6(11),e.Q6J("ngModel",p.searchTerm),e.xp6(5),e.um2(18,p.contactFilter?18:-1),e.xp6(16),e.wJu(e.Dn7(36,7,p.contactFilter,(p.page-1)*p.pageSize,(p.page-1)*p.pageSize+p.pageSize)),e.xp6(4),e.Q6J("collectionSize",p.collectionSize)("page",p.page)("pageSize",p.pageSize))},dependencies:[Et.p,Et.u,V.u5,V._Y,V.Fj,V.JJ,V.JL,V.On,V.F,nt.jF,nt.N9,cn.kb,cn.KC,ce.ez,ce.OU,ce.uU],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]})}return c})();const m_=[{id:101,billFrom:"Pineapple Inc.",billFromEmail:"[email protected]",billFromAddress:"Ganesh glory,Godrej garden city,Ahmedabad.",billFromPhone:979796786,billFromFax:13,billTo:"Redq Inc.",billToEmail:"[email protected]",billToAddress:"Godrej garden city,Ahmedabad.",billToPhone:757575233,billToFax:76,orders:[{itemName:"Courge",unitPrice:10,units:9,unitTotalPrice:90}],orderDate:new Date,totalCost:90,vat:9,grandTotal:99,status:"Shipped",completed:!1,isSelected:!1},{id:102,billFrom:"Pineapple.",billFromEmail:"[email protected]",billFromAddress:"Ganesh glory,Godrej garden city,Ahmedabad.",billFromPhone:979796786,billFromFax:13,billTo:"ME Inc.",billToEmail:"[email protected]",billToAddress:"Godrej garden city,Ahmedabad.",billToPhone:757575233,billToFax:76,orders:[{itemName:"Courge",unitPrice:10,units:9,unitTotalPrice:90}],orderDate:new Date,totalCost:90,vat:9,grandTotal:99,status:"Delivered",completed:!1,isSelected:!1},{id:103,billFrom:"Incorporation.",billFromEmail:"[email protected]",billFromAddress:"Ahmedabad.",billFromPhone:979796786,billFromFax:13,billTo:"Redirwed.",billToEmail:"[email protected]",billToAddress:"Godrej garden city,Ahmedabad.",billToPhone:757575233,billToFax:76,orders:[{itemName:"Courge",unitPrice:10,units:9,unitTotalPrice:90}],orderDate:new Date,totalCost:90,vat:9,grandTotal:99,status:"Pending",completed:!1,isSelected:!1},{id:104,billFrom:"PineappleTimes .",billFromEmail:"[email protected]",billFromAddress:"Ganesh glory,Godrej garden city,Ahmedabad.",billFromPhone:979796786,billFromFax:13,billTo:"RFc.",billToEmail:"[email protected]",billToAddress:"Godrej garden city,Ahmedabad.",billToPhone:757575233,billToFax:76,orders:[{itemName:"Courge",unitPrice:10,units:9,unitTotalPrice:90}],orderDate:new Date,totalCost:90,vat:9,grandTotal:99,status:"Shipped",completed:!1,isSelected:!1},{id:105,billFrom:"Fortune Creation",billFromEmail:"[email protected]",billFromAddress:"Ganesh glory,Godrej garden city,Ahmedabad.",billFromPhone:979796786,billFromFax:13,billTo:"Soft solution.",billToEmail:"[email protected]",billToAddress:"Godrej garden city,Ahmedabad.",billToPhone:757575233,billToFax:76,orders:[{itemName:"Courge",unitPrice:10,units:9,unitTotalPrice:90}],orderDate:new Date("2020-10-15"),totalCost:90,vat:9,grandTotal:99,status:"Delivered",completed:!1,isSelected:!1},{id:106,billFrom:"PineappleTimes .",billFromEmail:"[email protected]",billFromAddress:"Ganesh glory,Godrej garden city,Ahmedabad.",billFromPhone:979796786,billFromFax:13,billTo:"RFc.",billToEmail:"[email protected]",billToAddress:"Godrej garden city,Ahmedabad.",billToPhone:757575233,billToFax:76,orders:[{itemName:"Courge",unitPrice:10,units:9,unitTotalPrice:90}],orderDate:new Date,totalCost:90,vat:9,grandTotal:99,status:"Shipped",completed:!1,isSelected:!1},{id:107,billFrom:"Fortune Creation",billFromEmail:"[email protected]",billFromAddress:"Ganesh glory,Godrej garden city,Ahmedabad.",billFromPhone:979796786,billFromFax:13,billTo:"Soft solution.",billToEmail:"[email protected]",billToAddress:"Godrej garden city,Ahmedabad.",billToPhone:757575233,billToFax:76,orders:[{itemName:"Courge",unitPrice:10,units:9,unitTotalPrice:90}],orderDate:new Date("2020-10-15"),totalCost:90,vat:9,grandTotal:99,status:"Delivered",completed:!1,isSelected:!1}];let Ja=(()=>{class c{getInvoice(){return(0,ea.D)(m_)}constructor(){this.invoiceList=[],this.getInvoice().subscribe(i=>this.invoiceList.push(i))}getInvoiceList(){return this.invoiceList}deleteInvoice(i){this.invoiceList=this.invoiceList.filter(d=>d.id!==i)}addInvoice(i){this.invoiceList.splice(0,0,i)}updateInvoice(i,d){let p=this.getInvoiceList().filter(w=>w.id===i)[0];p=d}static#e=this.\u0275fac=function(d){return new(d||c)};static#t=this.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac})}return c})();function __(c,_){if(1&c&&(e.TgZ(0,"span",27),e._UZ(1,"ngb-highlight",19),e.qZA()),2&c){const i=e.oxw().$implicit,d=e.oxw();e.xp6(),e.Q6J("result",i.status)("term",d.searchTerm)}}function v_(c,_){if(1&c&&(e.TgZ(0,"span",28),e._UZ(1,"ngb-highlight",19),e.qZA()),2&c){const i=e.oxw().$implicit,d=e.oxw();e.xp6(),e.Q6J("result",i.status)("term",d.searchTerm)}}function y_(c,_){if(1&c&&(e.TgZ(0,"span",29),e._UZ(1,"ngb-highlight",19),e.qZA()),2&c){const i=e.oxw().$implicit,d=e.oxw();e.xp6(),e.Q6J("result",i.status)("term",d.searchTerm)}}const Pi=c=>["/apps/viewinvoice/",c];function vf(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"tr",12)(1,"td",17)(2,"input",18),e.NdJ("ngModelChange",function(p){const k=e.CHM(i).$implicit;return e.KtG(k.isSelected=p)})("change",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.isAllSelected())}),e.qZA()(),e.TgZ(3,"td",17),e._uU(4),e.qZA(),e.TgZ(5,"td",17),e._UZ(6,"ngb-highlight",19),e.qZA(),e.TgZ(7,"td",17),e._UZ(8,"ngb-highlight",19),e.qZA(),e.TgZ(9,"td",17),e._UZ(10,"ngb-highlight",19),e.ALo(11,"number"),e.qZA(),e.TgZ(12,"td",17),e.YNc(13,__,2,2,"span",20)(14,v_,2,2,"span",21)(15,y_,2,2,"span",22),e.qZA(),e.TgZ(16,"td",17)(17,"a",23),e._UZ(18,"i-feather",24),e.qZA(),e.TgZ(19,"a",25),e.NdJ("click",function(){const w=e.CHM(i).$implicit,k=e.oxw();return e.KtG(k.deleteInvoice(w.id))}),e._UZ(20,"i-feather",26),e.qZA()()()}if(2&c){const i=_.$implicit,d=e.oxw();e.xp6(2),e.s9C("value",i.id),e.Q6J("ngModel",i.isSelected),e.xp6(2),e.hij("",i.id," "),e.xp6(2),e.Q6J("result",i.billFrom)("term",d.searchTerm),e.xp6(2),e.Q6J("result",i.billTo)("term",d.searchTerm),e.xp6(2),e.Q6J("result",e.lcZ(11,13,i.grandTotal))("term",d.searchTerm),e.xp6(3),e.um2(13,"Shipped"===i.status?13:-1),e.xp6(),e.um2(14,"Pending"===i.status?14:-1),e.xp6(),e.um2(15,"Delivered"===i.status?15:-1),e.xp6(2),e.Q6J("routerLink",e.VKq(15,Pi,i.id))}}let ac=(()=>{class c{constructor(i){this.invoiceService=i,this.page=1,this.pageSize=5,this._searchTerm="",this.compInvoice=this.invoiceService.getInvoiceList(),this.totalLengthOfCollection=this.invoiceService.getInvoiceList().length,this.isMasterSel=!1,this.getCheckedItemList()}deleteInvoice(i){confirm("Are you sure to delete this ! ")&&(this.compInvoice=this.compInvoice.filter(d=>d.id!==i),this.totalLengthOfCollection=this.compInvoice.length,this.invoiceService.deleteInvoice(i))}checkUncheckAll(){for(var i=0;i<this.compInvoice.length;i++)this.compInvoice[i].isSelected=this.isMasterSel;this.getCheckedItemList()}isAllSelected(){this.isMasterSel=this.compInvoice.every(function(i){return 1==i.isSelected}),this.getCheckedItemList()}getCheckedItemList(){this.checkedCategoryList=[];for(var i=0;i<this.compInvoice.length;i++)this.compInvoice[i].isSelected&&this.checkedCategoryList.push(this.compInvoice[i]);this.checkedCategoryList=JSON.stringify(this.checkedCategoryList)}get searchTerm(){return this._searchTerm}set searchTerm(i){this._searchTerm=i,this.compInvoice=this.filter(i),this.totalLengthOfCollection=this.compInvoice.length}filter(i){return this.invoiceService.getInvoiceList().filter(d=>-1!==d.billTo.toLowerCase().indexOf(i.toLowerCase())||-1!==d.billFrom.toLowerCase().indexOf(i.toLowerCase())||-1!==d.status.toLowerCase().indexOf(i.toLowerCase())||-1!==d.totalCost)}static#e=this.\u0275fac=function(d){return new(d||c)(e.Y36(Ja))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["app-list-invoices"]],standalone:!0,features:[e.jDz],decls:36,vars:9,consts:[[1,"card","mb-0"],[1,"card-body"],[1,"d-md-flex","align-items-center"],[1,"form-group","mb-0"],["type","text","placeholder","Search Invoice",1,"form-control",3,"ngModel","ngModelChange"],[1,"ms-auto","mt-4","mt-md-0"],["routerLink","/apps/addinvoice"],["type","button",1,"btn","btn-info"],[1,"me-2","mdi","mdi-plus"],[1,"card","pt-3"],[1,"table-responsive"],[1,"table","table-borderless","table-hover","align-middle","no-wrap"],[1,"border-bottom"],["scope","col"],["type","checkbox","name","list_name","value","h1",3,"ngModel","ngModelChange","change"],[1,"d-flex","justify-content-center"],[3,"page","pageSize","collectionSize","pageChange"],[1,"py-4"],["type","checkbox","name","list_name",3,"ngModel","value","ngModelChange","change"],[3,"result","term"],["class","badge bg-info px-3 font-medium"],["class","badge bg-danger px-3 font-medium"],["class","badge bg-success px-3 font-medium"],[1,"text-info","mx-2",3,"routerLink"],["name","eye",1,"feather-sm"],["href","javascript:void(0)",1,"text-danger","mx-2","ps-3","border-start",3,"click"],["name","trash-2",1,"feather-sm"],[1,"badge","bg-info","px-3","font-medium"],[1,"badge","bg-danger","px-3","font-medium"],[1,"badge","bg-success","px-3","font-medium"],["class","border-bottom "]],template:function(d,p){1&d&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"input",4),e.NdJ("ngModelChange",function(k){return p.searchTerm=k}),e.qZA()(),e.TgZ(5,"div",5)(6,"a",6)(7,"button",7),e._UZ(8,"i",8),e._uU(9," Add Invoice"),e.qZA()()()()()(),e.TgZ(10,"div",9)(11,"div",10)(12,"table",11)(13,"thead")(14,"tr",12)(15,"th",13)(16,"input",14),e.NdJ("ngModelChange",function(k){return p.isMasterSel=k})("change",function(){return p.checkUncheckAll()}),e.qZA()(),e.TgZ(17,"th",13),e._uU(18,"Id"),e.qZA(),e.TgZ(19,"th",13),e._uU(20,"Bill From"),e.qZA(),e.TgZ(21,"th",13),e._uU(22,"Bill To"),e.qZA(),e.TgZ(23,"th",13),e._uU(24,"Total Cost"),e.qZA(),e.TgZ(25,"th",13),e._uU(26,"Status"),e.qZA(),e.TgZ(27,"th",13),e._uU(28,"A
1ction"),e.qZA()()(),e.TgZ(29,"tbody"),e.SjG(30,vf,21,17,"tr",30,e.x6l),e.ALo(32,"slice"),e.qZA()()(),e.TgZ(33,"div",1)(34,"div",15)(35,"ngb-pagination",16),e.NdJ("pageChange",function(k){return p.page=k}),e.qZA()()()()),2&d&&(e.xp6(4),e.Q6J("ngModel",p.searchTerm),e.xp6(12),e.Q6J("ngModel",p.isMasterSel),e.xp6(14),e.wJu(e.Dn7(32,5,p.compInvoice,(p.page-1)*p.pageSize,(p.page-1)*p.pageSize+p.pageSize)),e.xp6(5),e.Q6J("page",p.page)("pageSize",p.pageSize)("collectionSize",p.totalLengthOfCollection))},dependencies:[nt.jF,nt.N9,Et.p,Et.u,Xt.Bz,Xt.rH,nt._h,ce.ez,ce.OU,ce.JJ,V.u5,V.Fj,V.Wl,V.JJ,V.On,V.UX]})}return c})();class os{constructor(_="",i=0,d=0,p=0){this.itemName=_,this.unitPrice=i,this.units=d,this.unitTotalPrice=p}}class x_{constructor(_=0,i="",d="[email protected]",p="",w=758269842,k=0,I="",te="[email protected]",B="",re=58258855,ge=0,Se=[],he=new Date,ke=0,Te=0,Ie=0,Oe="",Je=!1,Ve=!1){this.id=_,this.billFrom=i,this.billFromEmail=d,this.billFromAddress=p,this.billFromPhone=w,this.billFromFax=k,this.billTo=I,this.billToEmail=te,this.billToAddress=B,this.billToPhone=re,this.billToFax=ge,this.orders=Se,this.orderDate=he,this.totalCost=ke,this.vat=Te,this.grandTotal=Ie,this.status=Oe,this.completed=Je,this.isSelected=Ve}}function b_(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"span")(1,"button",42),e.NdJ("click",function(){e.CHM(i);const p=e.oxw().$index,w=e.oxw();return e.KtG(w.onRemoveRow(p))}),e._uU(2," Remove "),e.qZA()()}}function w_(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td")(4,"input",39),e.NdJ("input",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.itemsChanged())}),e.qZA()(),e.TgZ(5,"td")(6,"input",40),e.NdJ("input",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.itemsChanged())}),e.qZA()(),e.TgZ(7,"td")(8,"input",40),e.NdJ("input",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.itemsChanged())}),e.qZA()(),e.TgZ(9,"td"),e._UZ(10,"input",41),e.qZA(),e.TgZ(11,"td"),e.YNc(12,b_,3,0,"span"),e.qZA()()}if(2&c){const i=_.$implicit,d=_.$index;e.xp6(2),e.hij(" ",d+1," "),e.xp6(2),e.Q6J("formControl",i.get("itemName")),e.xp6(2),e.Q6J("formControl",i.get("unitPrice")),e.xp6(2),e.Q6J("formControl",i.get("units")),e.xp6(2),e.Q6J("formControl",i.get("itemTotal"))("value",i.get("unitPrice").value*i.get("units").value),e.xp6(2),e.um2(12,d>0?12:-1)}}function C_(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"button",43),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.onAddRow())}),e._uU(1," Add row "),e.qZA()}if(2&c){const i=e.oxw();e.Q6J("disabled",i.addForm.invalid)}}let yf=(()=>{class c{constructor(i,d,p){this.fb=i,this.invoiceService=d,this.router=p,this.invoice=new x_,this.subTotal=0,this.vat=0,this.grandTotal=0,this.invoice.id=Math.max.apply(Math,this.invoiceService.getInvoiceList().map(function(w){return w.id}))+1,this.invoice.status="Pending",this.addForm=this.fb.group({}),this.rows=this.fb.array([]),this.addForm.addControl("rows",this.rows),this.rows.push(this.createItemFormGroup())}ngOnInit(){}onAddRow(){this.rows.push(this.createItemFormGroup())}onRemoveRow(i){let d=this.addForm.get("rows")?.value[i].unitPrice*this.addForm.get("rows")?.value[i].units;this.subTotal=this.subTotal-d,this.vat=this.subTotal/10,this.grandTotal=this.subTotal+this.vat,this.rows.removeAt(i)}createItemFormGroup(){return this.fb.group({itemName:["",V.kI.required],units:["",V.kI.required],unitPrice:["",V.kI.required],itemTotal:["0"]})}itemsChanged(){let i=0;for(let d=0;d<this.addForm.get("rows").length;d++)""!=this.addForm.get("rows")?.value[d].unitPrice&&this.addForm.get("rows")?.value[d].units&&(i=this.addForm.get("rows")?.value[d].unitPrice*this.addForm.get("rows")?.value[d].units+i);this.subTotal=i,this.vat=this.subTotal/10,this.grandTotal=this.subTotal+this.vat}saveDetail(){this.invoice.grandTotal=this.grandTotal,this.invoice.totalCost=this.subTotal,this.invoice.vat=this.vat;for(let i=0;i<this.addForm.get("rows").length;i++){let d=new os;d.itemName=this.addForm.get("rows")?.value[i].itemName,d.unitPrice=this.addForm.get("rows")?.value[i].unitPrice,d.units=this.addForm.get("rows")?.value[i].units,d.unitTotalPrice=d.units*d.unitPrice,this.invoice.orders.push(d)}this.invoiceService.addInvoice(this.invoice),alert("New Invoice Added !!"),this.router.navigate(["/apps/invoice"])}static#e=this.\u0275fac=function(d){return new(d||c)(e.Y36(V.QS),e.Y36(Ja),e.Y36(Xt.F0))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["app-add-invoice"]],standalone:!0,features:[e.jDz],decls:91,vars:18,consts:[[1,"card"],[1,"card-body"],["invoiceForm","ngForm"],[1,"row","mb-3"],[1,"col-md-6"],[1,"mb-0"],["name","id","ngDefaultControl","",3,"ngModel","ngModelChange"],[1,"col-md-6","mt-3","mt-md-0"],[1,"row","justify-content-end"],[1,"col-lg-3","col-md-4","col-6"],["routerLink","/apps/invoice",1,"btn","btn-outline-danger","shadow-sm","font-medium","d-block","w-100"],["type","button",1,"btn","btn-outline-success","shadow-sm","font-medium","d-block","w-100",3,"disabled","click"],[1,"d-flex","align-items-center","border-top","pt-3","pb-3","border-bottom"],["name","satus",1,"form-select","mt-2",3,"ngModel","ngModelChange"],["value","Pending"],["value","Shipped"],["value","Delivered"],[1,"ms-auto"],["name","date","ngDefaultControl","",3,"ngModel","ngModelChange"],[1,"row","mt-4"],[1,"mb-3"],["type","text","placeholder","Bill From","name","from",1,"form-control",3,"ngModel","ngModelChange"],["type","text","placeholder","Bill To","name","to",1,"form-control",3,"ngModel","ngModelChange"],[1,"row"],["rows","3","placeholder","Enter From Address","name","fromAddress",1,"form-control",3,"ngModel","ngModelChange"],["rows","3","placeholder","Enter To Address","name","toAddress",1,"form-control",3,"ngModel","ngModelChange"],[3,"formGroup"],[1,"table-responsive"],[1,"table","table-hover","table-bordered","no-wrap","align-middle"],[1,"border-bottom-0"],[1,"text-end"],["type","button","class","btn btn-info",3,"disabled"],[1,"border-top","mt-3","pt-3"],[1,"col-lg-2","col-md-4"],[1,"input-group","mb-3"],["type","number","value","10",1,"form-control"],[1,"input-group-text"],[1,"input-group-text","bg-white","font-medium"],[1,"fw-bold","me-2"],["type","text",1,"form-control",3,"formControl","input"],["type","number","min","1",1,"form-control",3,"formControl","input"],[1,"form-control",3,"formControl","value"],["type","button",1,"btn","btn-danger",3,"click"],["type","button",1,"btn","btn-info",3,"disabled","click"]],template:function(d,p){
1if(1&d&&(e.TgZ(0,"div",0)(1,"div",1)(2,"form",null,2)(4,"div",3)(5,"div",4)(6,"h4",5),e._uU(7," Invoice Id : # "),e.TgZ(8,"span",6),e.NdJ("ngModelChange",function(k){return p.invoice.id=k}),e._uU(9),e.qZA()()(),e.TgZ(10,"div",7)(11,"div",8)(12,"div",9)(13,"a",10),e._uU(14," Cancel "),e.qZA()(),e.TgZ(15,"div",9)(16,"button",11),e.NdJ("click",function(){return p.saveDetail()}),e._uU(17," Save "),e.qZA()()()()(),e.TgZ(18,"div",12)(19,"div")(20,"h5"),e._uU(21,"Order Status :"),e.qZA(),e.TgZ(22,"select",13),e.NdJ("ngModelChange",function(k){return p.invoice.status=k}),e.TgZ(23,"option",14),e._uU(24,"Pending"),e.qZA(),e.TgZ(25,"option",15),e._uU(26,"Shipped"),e.qZA(),e.TgZ(27,"option",16),e._uU(28,"Delivered"),e.qZA()()(),e.TgZ(29,"div",17)(30,"h5"),e._uU(31,"Order Date"),e.qZA(),e.TgZ(32,"span",18),e.NdJ("ngModelChange",function(k){return p.invoice.orderDate=k}),e._uU(33),e.ALo(34,"date"),e.qZA()()(),e.TgZ(35,"div",19)(36,"div",4)(37,"div",20)(38,"input",21),e.NdJ("ngModelChange",function(k){return p.invoice.billFrom=k}),e.qZA()()(),e.TgZ(39,"div",4)(40,"div",20)(41,"input",22),e.NdJ("ngModelChange",function(k){return p.invoice.billTo=k}),e.qZA()()()(),e.TgZ(42,"div",23)(43,"div",4)(44,"div",20)(45,"textarea",24),e.NdJ("ngModelChange",function(k){return p.invoice.billFromAddress=k}),e.qZA()()(),e.TgZ(46,"div",4)(47,"div",20)(48,"textarea",25),e.NdJ("ngModelChange",function(k){return p.invoice.billToAddress=k}),e.qZA()()()()(),e.TgZ(49,"div",26)(50,"div",27)(51,"table",28)(52,"thead")(53,"tr")(54,"th",29),e._uU(55,"#"),e.qZA(),e.TgZ(56,"th",29),e._uU(57,"Item Name"),e.qZA(),e.TgZ(58,"th",29),e._uU(59,"Unit Price"),e.qZA(),e.TgZ(60,"th",29),e._uU(61,"Units"),e.qZA(),e.TgZ(62,"th",29),e._uU(63,"Unit Total Price"),e.qZA(),e._UZ(64,"th",29),e.qZA()(),e.TgZ(65,"tbody"),e.SjG(66,w_,13,7,"tr",null,e.x6l),e.qZA()()(),e.TgZ(68,"div",30),e.YNc(69,C_,2,1,"button",31),e.TgZ(70,"div",32)(71,"h5")(72,"span"),e._uU(73,"Sub total "),e.qZA(),e._uU(74),e.qZA()(),e.TgZ(75,"div",32)(76,"h5"),e._uU(77,"Total Vat:"),e.qZA(),e.TgZ(78,"div",8)(79,"div",33)(80,"div",34),e._UZ(81,"input",35),e.TgZ(82,"span",36),e._uU(83,"%"),e.qZA(),e.TgZ(84,"span",37),e._uU(85),e.qZA()()()()(),e._UZ(86,"hr"),e.TgZ(87,"h3")(88,"span",38),e._uU(89,"Total:"),e.qZA(),e._uU(90),e.qZA()()()()()),2&d){let w;e.xp6(8),e.Q6J("ngModel",p.invoice.id),e.xp6(),e.hij(" ",p.invoice.id,""),e.xp6(7),e.Q6J("disabled",p.addForm.invalid),e.xp6(6),e.Q6J("ngModel",p.invoice.status),e.xp6(10),e.Q6J("ngModel",p.invoice.orderDate),e.xp6(),e.Oqu(e.xi3(34,15,p.invoice.orderDate,"dd-MM-yyyy")),e.xp6(5),e.Q6J("ngModel",p.invoice.billFrom),e.xp6(3),e.Q6J("ngModel",p.invoice.billTo),e.xp6(4),e.Q6J("ngModel",p.invoice.billFromAddress),e.xp6(3),e.Q6J("ngModel",p.invoice.billToAddress),e.xp6(),e.Q6J("formGroup",p.addForm),e.xp6(17),e.wJu(null==(w=p.addForm.get("rows"))?null:w.controls),e.xp6(3),e.um2(69,p.addForm.get("rows")?69:-1),e.xp6(5),e.hij(" : ",p.subTotal,""),e.xp6(11),e.hij(": ",p.vat,""),e.xp6(5),e.hij("$",p.grandTotal,"")}},dependencies:[V.u5,V._Y,V.YN,V.Kr,V.Fj,V.wV,V.EJ,V.JJ,V.JL,V.qQ,V.On,V.F,V.UX,V.oH,V.sg,ce.ez,ce.uU]})}return c})();const xf=(c,_)=>_.units;function T_(c,_){if(1&c&&(e.TgZ(0,"tbody")(1,"tr")(2,"td"),e._uU(3),e.qZA(),e.TgZ(4,"td",28),e._uU(5),e.qZA(),e.TgZ(6,"td",28),e._uU(7),e.qZA(),e.TgZ(8,"td",28),e._uU(9),e.qZA()()()),2&c){const i=_.$implicit;e.xp6(3),e.hij("",i.itemName," "),e.xp6(2),e.hij("",i.unitPrice," "),e.xp6(2),e.Oqu(i.units),e.xp6(2),e.Oqu(i.unitTotalPrice)}}const S_=c=>["/apps/editinvoice/",c];let ss=(()=>{class c{constructor(i,d){this.invoiceService=d,this.id=i.snapshot.paramMap.get("id"),this.invoiceDetail=this.invoiceService.getInvoiceList().filter(p=>p.id===+this.id)[0]}ngOnInit(){}static#e=this.\u0275fac=function(d){return new(d||c)(e.Y36(Xt.gz),e.Y36(Ja))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["app-view-invoice"]],standalone:!0,features:[e.jDz],decls:82,vars:20,consts:[[1,"card"],[1,"p-3"],[1,"d-md-flex","align-items-center"],[1,"btn-group"],["routerLink","/apps/invoice",1,"btn","btn-default","bg-white","text-info","d-flex","align-items-center","shadow-sm","me-2"],[1,"mdi","mdi-chevron-left","fs-6","me-1"],[1,"btn","btn-default","bg-white","text-info","d-flex","align-items-center","shadow-sm","me-2",3,"routerLink"],[1,"mdi","mdi-note-plus-outline","fs-6"],[1,"ms-2"],[1,"ms-auto","mt-3","mt-md-0"],[1,"mb-0"],[1,"card-body"],[1,"row"],[1,"col-md-6","text-start"],[1,"badge","bg-info","font-medium","px-3"],[1,"col-md-6","text-start","text-md-right"],[1,"mt-2"],[1,"mdi","mdi-calendar","me-1","text-dark","fs-5"],[1,"d-block"],[1,"col-md-6","text-end"],[1,"mt-4"],[1,"table-responsive"],[1,"table","table-bordered","table-hover","no-wrap","align-middle"],[1,"border-bottom-0"],[1,"border-bottom-0","text-center"],[1,"border-bottom-0","text-info","text-center"],[1,"text-end","mt-4"],[1,"fw-bold","me-2"],[1,"text-center"]],template:function(d,p){1&d&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),e._UZ(5,"i",5),e.TgZ(6,"span"),e._uU(7,"Back"),e.qZA()(),e.TgZ(8,"a",6),e._UZ(9,"
1i",7),e.TgZ(10,"span",8),e._uU(11,"Edit"),e.qZA()()(),e.TgZ(12,"div",9)(13,"h4",10),e._uU(14),e.qZA()()()(),e.TgZ(15,"div",11)(16,"div",12)(17,"div",13)(18,"h5"),e._uU(19,"Order Status:"),e.qZA(),e.TgZ(20,"span",14),e._uU(21),e.qZA()(),e.TgZ(22,"div",15)(23,"h5",16),e._uU(24,"Order Date:"),e.qZA(),e.TgZ(25,"span"),e._UZ(26,"i",17),e._uU(27),e.ALo(28,"date"),e.qZA()()(),e._UZ(29,"hr"),e.TgZ(30,"div",12)(31,"div",13)(32,"h5"),e._uU(33,"Bill From:"),e.qZA(),e.TgZ(34,"span"),e._uU(35),e.qZA(),e.TgZ(36,"span",18),e._uU(37),e.qZA(),e.TgZ(38,"span",18),e._uU(39),e.qZA(),e.TgZ(40,"span",18),e._uU(41),e.qZA()(),e.TgZ(42,"div",19)(43,"h5"),e._uU(44,"Bill To:"),e.qZA(),e.TgZ(45,"span",18),e._uU(46),e.qZA(),e.TgZ(47,"span",18),e._uU(48),e.qZA(),e.TgZ(49,"span",18),e._uU(50),e.qZA(),e.TgZ(51,"span",18),e._uU(52),e.qZA()()(),e.TgZ(53,"div",20)(54,"div",21)(55,"table",22)(56,"thead")(57,"tr")(58,"th",23),e._uU(59,"Item Name"),e.qZA(),e.TgZ(60,"th",24),e._uU(61,"Unit Price"),e.qZA(),e.TgZ(62,"th",24),e._uU(63,"Unit"),e.qZA(),e.TgZ(64,"th",25),e._uU(65,"Total Price"),e.qZA()()(),e.SjG(66,T_,10,4,"tbody",null,xf),e.qZA()()(),e.TgZ(68,"div",26)(69,"h5")(70,"span"),e._uU(71,"Subtotal amount: $"),e.qZA(),e._uU(72),e.qZA(),e.TgZ(73,"h5")(74,"span"),e._uU(75,"Vat: $"),e.qZA(),e._uU(76),e.qZA(),e._UZ(77,"hr"),e.TgZ(78,"h3")(79,"span",27),e._uU(80,"Total:"),e.qZA(),e._uU(81),e.qZA()()()()),2&d&&(e.xp6(8),e.Q6J("routerLink",e.VKq(18,S_,p.invoiceDetail.id)),e.xp6(6),e.hij("Invoice Id : #",p.invoiceDetail.id,""),e.xp6(7),e.Oqu(p.invoiceDetail.status),e.xp6(6),e.hij(" ",e.xi3(28,15,p.invoiceDetail.orderDate,"fullDate")," "),e.xp6(8),e.Oqu(p.invoiceDetail.billFrom),e.xp6(2),e.Oqu(p.invoiceDetail.billFromEmail),e.xp6(2),e.Oqu(p.invoiceDetail.billFromAddress),e.xp6(2),e.Oqu(p.invoiceDetail.billFromPhone),e.xp6(5),e.Oqu(p.invoiceDetail.billTo),e.xp6(2),e.hij(" ",p.invoiceDetail.billToEmail," "),e.xp6(2),e.hij(" ",p.invoiceDetail.billToAddress," "),e.xp6(2),e.Oqu(p.invoiceDetail.billToPhone),e.xp6(14),e.wJu(p.invoiceDetail.orders),e.xp6(6),e.hij(" ",p.invoiceDetail.totalCost,""),e.xp6(4),e.Oqu(p.invoiceDetail.vat),e.xp6(5),e.hij("$",p.invoiceDetail.grandTotal," "))},dependencies:[ce.ez,ce.uU,Xt.Bz,Xt.rH]})}return c})();function oc(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"button",44),e.NdJ("click",function(){e.CHM(i);const p=e.oxw().$index,w=e.oxw();return e.KtG(w.btnRemoveClick(p))}),e.TgZ(1,"span",45),e._uU(2,"Delete"),e.qZA()()}}function A_(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"tbody",37)(1,"tr",38)(2,"td"),e._uU(3),e.qZA(),e.TgZ(4,"td")(5,"input",39),e.NdJ("input",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.itemsChanged())}),e.qZA()(),e.TgZ(6,"td")(7,"input",40),e.NdJ("input",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.itemsChanged())}),e.qZA()(),e.TgZ(8,"td")(9,"input",41),e.NdJ("input",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.itemsChanged())}),e.qZA()(),e.TgZ(10,"td"),e._UZ(11,"input",42),e.qZA(),e.TgZ(12,"td"),e.YNc(13,oc,3,0,"button",43),e.qZA()()()}if(2&c){const i=_.$index,d=e.oxw();let p;e.xp6(),e.Q6J("formGroupName",i),e.xp6(2),e.hij(" ",i+1," "),e.xp6(2),e.Q6J("id","txtNameControl"+i),e.xp6(2),e.Q6J("id","txtCostControl"+i),e.xp6(2),e.Q6J("id","txtTotalControl"+i),e.xp6(2),e.Q6J("id","txtitemTotalControl"+i)("value",d.addForm.get("item").value[i].itemCost*d.addForm.get("item").value[i].itemSold),e.xp6(2),e.um2(13,(null==(p=d.addForm.get("item"))?null:p.length)>1?13:-1)}}let k_=(()=>{class c{constructor(i,d,p,w){this.invoiceService=d,this.router=p,this.fb=w,this.subTotal=0,this.vat=0,this.grandTotal=0,this.id=i.snapshot.paramMap.get("id"),this.invoice=this.invoiceService.getInvoiceList().filter(k=>k.id===+this.id)[0],this.subTotal=this.invoice.totalCost,this.vat=this.invoice.vat,this.grandTotal=this.invoice.grandTotal,this.addForm=this.fb.group({item:this.fb.array([this.itemControl()])}),this.fillAddControls()}ngOnInit(){}itemControl(){return this.fb.group({itemName:["",V.kI.required],itemCost:["",V.kI.required],itemSold:["",V.kI.required],itemTotal:["0"]})}fillAddControls(){this.addForm.setControl("item",this.setItem(this.invoice.orders))}setItem(i){const d=new V.vC([]);
1return i.forEach(p=>{d.push(this.fb.group({itemName:p.itemName,itemCost:p.unitPrice,itemSold:p.units,itemTotal:p.unitTotalPrice}))}),d}btnAddItemClick(){this.addForm.get("item").push(this.itemControl())}btnRemoveClick(i){let d=this.addForm.get("item")?.value[i].itemCost*this.addForm.get("item")?.value[i].itemSold;this.subTotal=this.subTotal-d,this.vat=this.subTotal/10,this.grandTotal=this.subTotal+this.vat,this.addForm.get("item").removeAt(i)}itemsChanged(){let i=0;for(let d=0;d<this.addForm.get("item").length;d++)""!=this.addForm.get("item")?.value[d].itemCost&&this.addForm.get("item")?.value[d].itemSold&&(i=this.addForm.get("item")?.value[d].itemCost*this.addForm.get("item")?.value[d].itemSold+i);this.subTotal=i,this.vat=this.subTotal/10,this.grandTotal=this.subTotal+this.vat}saveDetail(){this.invoice.grandTotal=this.grandTotal,this.invoice.totalCost=this.subTotal,this.invoice.vat=this.vat,this.invoice.orders=[];for(let i=0;i<this.addForm.get("item").length;i++){let d=new os;d.itemName=this.addForm.get("item")?.value[i].itemName,d.unitPrice=this.addForm.get("item")?.value[i].itemCost,d.units=this.addForm.get("item")?.value[i].itemSold,d.unitTotalPrice=d.units*d.unitPrice,this.invoice.orders.push(d)}this.invoiceService.updateInvoice(this.invoice.id,this.invoice),alert("Invoice Updated !!"),this.router.navigate(["/apps/invoice"])}static#e=this.\u0275fac=function(d){return new(d||c)(e.Y36(Xt.gz),e.Y36(Ja),e.Y36(Xt.F0),e.Y36(V.qu))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["app-edit-invoice"]],standalone:!0,features:[e.jDz],decls:89,vars:17,consts:[[1,"card","card-body"],["invoiceForm","ngForm"],[1,"row","mb-3"],[1,"col-md-6"],[1,"mb-0"],["name","id","ngDefaultControl","",3,"ngModel","ngModelChange"],[1,"col-md-6","mt-3","mt-md-0"],[1,"row","justify-content-end"],[1,"col-lg-3","col-md-4","col-6"],["routerLink","/apps/invoice",1,"btn","btn-outline-danger","shadow-sm","font-medium","d-block","w-100"],["type","button",1,"btn","btn-outline-success","shadow-sm","font-medium","d-block","w-100",3,"click"],[1,"d-flex","align-items-center","border-top","pt-3","pb-3","border-bottom"],["name","satus",1,"form-select","mt-2",3,"ngModel","ngModelChange"],["value","Pending"],["value","Shipped"],["value","Delivered"],[1,"ms-auto"],["name","date","ngDefaultControl","",3,"ngModel","ngModelChange"],[1,"row","mt-4"],[1,"mb-3"],["type","text","placeholder","Bill From","name","from",1,"form-control",3,"ngModel","ngModelChange"],["type","text","placeholder","Bill To","name","to",1,"form-control",3,"ngModel","ngModelChange"],["rows","3","placeholder","Enter From Address","name","fromAddress",1,"form-control",3,"ngModel","ngModelChange"],["rows","3","placeholder","Enter To Address","name","toAddress",1,"form-control",3,"ngModel","ngModelChange"],[3,"formGroup"],[1,"table-responsive"],["id","tblAdd",1,"table","table-hover","table-bordered","no-wrap","align-middle"],[1,"border-bottom-0"],[1,"text-end"],["type","button",1,"btn","btn-info",3,"disabled","click"],[1,"border-top","mt-3","pt-3"],[1,"col-lg-2","col-md-4"],[1,"input-group","mb-3"],["type","number","value","10",1,"form-control"],[1,"input-group-text"],[1,"input-group-text","bg-white","font-medium"],[1,"fw-bold","me-2"],["formArrayName","item"],[3,"formGroupName"],["type","text","placeholder","Enter Item Name","formControlName","itemName",1,"form-control",3,"id","input"],["type","number","placeholder","Enter Item Price","formControlName","itemCost",1,"form-control",3,"id","input"],["type","number","placeholder","Enter Item","formControlName","itemSold",1,"form-control",3,"id","input"],["type","number","formControlName","itemTotal",1,"form-control",3,"id","value"],["type","button","class","btn btn-danger btn-sm"],["type","button",1,"btn","btn-danger","btn-sm",3,"click"],[1,"glyphicon","glyphicon-remove"]],template:function(d,p){if(1&d&&(e.TgZ(0,"div",0)(1,"form",null,1)(3,"div",2)(4,"div",3)(5,"h4",4),e._uU(6," Invoice Id : # "),e.TgZ(7,"span",5),e.NdJ("ngModelChange",function(k){return p.invoice.id=k}),e._uU(8),e.qZA()()(),e.TgZ(9,"div",6)(10,"div",7)(11,"div",8)(12,"a",9),e._uU(13," Cancel "),e.qZA()(),e.TgZ(14,"div",8)(15,"button",10),e.NdJ("click",function(){return p.saveDetail()}),e._uU(16," Save "),e.qZA()()()()(),e.TgZ(17,"div",11)(18,"div")(19,"h5"),e._uU(20,"Order Status :"),e.qZA(),e.TgZ(21,"select",12),e.NdJ("ngModelChange",function(k){return p.invoice.status=k}),e.TgZ(22,"option",13),e._uU(23,"Pending"),e.qZA(),e.TgZ(24,"option",14),e._uU(25,"Shipped"),e.qZA(),e.TgZ(26,"option",15),e._uU(27,"Delivered"),e.qZA()()(),e.TgZ(28,"div",16)(29,"h5"),e._uU(30,"Order Date"),e.qZA(),e.TgZ(31,"span",17),e.NdJ("ngModelChange",function(k){return p.invoice.orderDate=k}),e._uU(32),e.ALo(33,"date"),e.qZA()()(),e.TgZ(34,"div",18)(35,"div",3)(36,"div",19)(37,"input",20),e.NdJ("ngModelChange",function(k){return p.invoice.b
1illFrom=k}),e.qZA()()(),e.TgZ(38,"div",3)(39,"div",19)(40,"input",21),e.NdJ("ngModelChange",function(k){return p.invoice.billTo=k}),e.qZA()()(),e.TgZ(41,"div",3)(42,"div",19)(43,"textarea",22),e.NdJ("ngModelChange",function(k){return p.invoice.billFromAddress=k}),e.qZA()()(),e.TgZ(44,"div",3)(45,"div",19)(46,"textarea",23),e.NdJ("ngModelChange",function(k){return p.invoice.billToAddress=k}),e.qZA()()()()(),e.TgZ(47,"form",24)(48,"div",25)(49,"table",26)(50,"thead")(51,"tr")(52,"th",27),e._uU(53,"#"),e.qZA(),e.TgZ(54,"th",27),e._uU(55,"Item Name"),e.qZA(),e.TgZ(56,"th",27),e._uU(57,"Unit Price"),e.qZA(),e.TgZ(58,"th",27),e._uU(59,"Units"),e.qZA(),e.TgZ(60,"th",27),e._uU(61,"Unit Total Price"),e.qZA(),e._UZ(62,"th",27),e.qZA()(),e.SjG(63,A_,14,8,"tbody",37,e.x6l),e.qZA()(),e.TgZ(65,"div",28)(66,"button",29),e.NdJ("click",function(){return p.btnAddItemClick()}),e._uU(67," Add Item "),e.qZA(),e.TgZ(68,"div",30)(69,"h5")(70,"span"),e._uU(71,"Sub total "),e.qZA(),e._uU(72),e.qZA()(),e.TgZ(73,"div",30)(74,"h5"),e._uU(75,"Total Vat:"),e.qZA(),e.TgZ(76,"div",7)(77,"div",31)(78,"div",32),e._UZ(79,"input",33),e.TgZ(80,"span",34),e._uU(81,"%"),e.qZA(),e.TgZ(82,"span",35),e._uU(83),e.qZA()()()()(),e._UZ(84,"hr"),e.TgZ(85,"h3")(86,"span",36),e._uU(87,"Total:"),e.qZA(),e._uU(88),e.qZA()()()()),2&d){let w,k;e.xp6(7),e.Q6J("ngModel",p.invoice.id),e.xp6(),e.hij(" ",p.invoice.id,""),e.xp6(13),e.Q6J("ngModel",p.invoice.status),e.xp6(10),e.Q6J("ngModel",p.invoice.orderDate),e.xp6(),e.Oqu(e.xi3(33,14,p.invoice.orderDate,"dd-MM-yyyy")),e.xp6(5),e.Q6J("ngModel",p.invoice.billFrom),e.xp6(3),e.Q6J("ngModel",p.invoice.billTo),e.xp6(3),e.Q6J("ngModel",p.invoice.billFromAddress),e.xp6(3),e.Q6J("ngModel",p.invoice.billToAddress),e.xp6(),e.Q6J("formGroup",p.addForm),e.xp6(16),e.wJu(null==(w=p.addForm.get("item"))?null:w.controls),e.xp6(3),e.Q6J("disabled",null==(k=p.addForm.get("item"))?null:k.invalid),e.xp6(6),e.hij(" : ",p.subTotal,""),e.xp6(11),e.hij(": ",p.vat,""),e.xp6(5),e.hij("$",p.grandTotal,"")}},dependencies:[V.u5,V._Y,V.YN,V.Kr,V.Fj,V.wV,V.EJ,V.JJ,V.JL,V.On,V.F,V.UX,V.sg,V.u,V.x0,V.CE,ce.ez,ce.uU]})}return c})();class M_{constructor(){this.id=0,this.image="",this.title="",this.location="",this.description="",this.qualification=[],this.jobType="",this.icon="",this.featured=!1,this.jobNature=""}}const D_=[{id:101,image:"assets/images/job/ui-ux-job.png",title:"UI/UX IT Frontend Developer",location:"Salt Lake City, UT",description:"We are looking for an experienced and creative designer and/or frontend engineer with expertise in accessibility to join our team , 3+ years of experience working in as a Frontend Engineer or comparable role",qualification:["Have shipped multiple iOS, Android, and/or web products.","5+ years UI/UX experience.","Ability to autonomously pursue elegant solutions to open-ended problems.","Proven ability to create interactive prototypes.","Ability to create and maintain flow charts, wire frames, prototypes, and mockups.","Ability to effectively work on more than one project at a time."],jobType:"Full time",icon:"",featured:!1,jobNature:"Designer"},{id:102,image:"assets/images/job/react-job.png",title:"React/React Native Developer",location:"San Diego, CA",description:"We are looking for an experienced and creative designer and/or frontend engineer with expertise in accessibility to join our team , 3+ years of experience working in as a Frontend Engineer or comparable role",qualification:["Have shipped multiple iOS, Android, and/or web products.","5+ years UI/UX experience.","Ability to autonomously pursue elegant solutions to open-ended problems.","Proven ability to create interactive prototypes.","Ability to create and maintain flow charts, wire frames, prototypes, and mockups.","Ability to effectively work on more than one project at a time."],jobType:"Full time",icon:"",featured:!0,jobNature:"React"},{id:103,image:"assets/images/job/senior-job.png",title:"Senior UX designer",location:"Minneapolis, MN",description:"We are looking for an experienced and creative designer and/or frontend engineer with expertise in accessibility to join our team , 3+ years of experience working in as a Frontend Engineer or comparable role",qualification:["Have shipped multiple iOS, Android, and/or web products.","5+ years UI/UX experience.","Ability to autonomously pursue elegant solutions to open-ended problems.","Proven ability to create interactive prototypes.","Ability to create and maintain flow charts, wire frames, prototypes, and mockups.","Ability to effectively work on more than one project at a time."],jobType:"Part time",icon:"",featured:!1,jobNature:"Senior designer"},{id:104,image:"assets/images/job/design-job.png",title:"Front end web developer",location:"Cisco, Lelystad, Netherlands",description:"We are looking for an experienced and creative designer and/or frontend engineer with expertise in accessibility to join our team , 3+ years of experience working in as a Frontend Engineer or comparable role",qualification:["Have shipped multiple iOS, Android, and/or web products.","5+ years UI/UX experience.","Ability to autonomously pursue elegant solutions to open-ended problems.","Proven ability to create interactive prototypes.","Ability to create and maintain flow charts, wire frames, prototypes, and mockups.","Ability to effectively work on more than one project at a time."],jobType:"Full time",icon:"",featured:!0,jobNature:"Designer"},{id:105,image:"assets/images/job/ui-ux-job.png",title:"Graphic designer",location:"Infosys, Lelystad, Netherlands",description:"We are looking for an experienced and creative designer and/or frontend engineer with expertise in accessibility to join our team , 3+ years of experience working in as a Frontend Engineer or comparable role",qualification:["Have shipped multiple iOS, Android, and/or web products.","5+ years UI/UX experience.","Ability to autonomously pursue elegant solutions to open-ended problems.","Proven ability to create interactive prototypes.","Ability to create and maintain flow charts, wire frames, prototypes, and mockups.","Ability to effectively work on more than one project at a time."],jobType:"Internship",icon:"",featured:!1,jobNature:"Designer"},{id:106,image:"assets/images/job/ang-job.png",title:"Angular Developer",location:"(L6) Salt Lake City, UT",description:"We are looking for an experienced and creative designer and/or frontend engineer with expertise in accessibility to join our team , 3+ years of experience working in as a Frontend Engineer or comparable role",qualification:["Have shipped multiple iOS, Android, and/or web products.","5+ years UI/UX experience.","Ability to autonomously pursue elegant solutions to open-ended problems.","Proven ability to create interactive prototypes.","Ability to create and maintain flow charts, wire frames, prototypes, and mockups.","Ability to effectively work on more than one project at a time."],jobType:"Internship",icon:"",featured:!1,jobNature:"Angular"},{id:107,image:"assets/images/job/senior-job.png",title:"JAVA Developer",location:"(L6) Salt Lake City, UT",description:"We are looking for an experienced and creative designer and/or frontend engineer with expertise in accessibility to join our team , 3+ years of experience working in as a Frontend Engineer or comparable role",qualification:["Have shipped multiple iOS, Android, and/or web products.","5+ years UI/UX experience.","Ability to autonomously pursue elegant solutions to open-ended problems.","Proven ability to create interactive prototypes.","Ability to create and maintain flow charts, wire frames, prototypes, and mockups.","Ability to effectively work on more than one project at a time."],jobType:"Internship",icon:"",featured:!1,jobNature:"java"},{id:108,image:"assets/images/job/react-job.png",title:"React devoloper",location:"Infosys, Lelystad, Netherlands",description:"We are looking for an experienced and creative designer and/or frontend engineer with expertise in accessibility to join our team , 3+ years of experience working in as a Frontend Engineer or comparable role",qualification:["Have shipped multiple iOS, Android, and/or web products.","5+ years UI/UX experience.","Ability to autonomously pursue elegant solutions to open-ended problems.","Proven ability to create interactive prototypes.","Ability to create and maintain flow charts, wire frames, prototypes, and mockups.","Ability to effectively work on more than one project at a time."],jobType:"Part time",icon:"",featured:!1,jobNature:"React"},{id:109,image:"assets/images/job/ui-ux-job.png",title:"Business Managment",location:"Infosys, Lelystad, Netherlands",description:"We are looking for an experienced and creative designer and/or frontend engineer with expertise in accessibility to join our team , 3+ years of experience working in as a Frontend Engineer or comparable role",qualification:["Have shipped multiple iOS, Android, and/or web products.","5+ years UI/UX experience.","Ability to autonomously pursue elegant solutions to open-ended problems.","Proven ability to create interactive prototypes.","Ability to create and maintain flow charts, wire frames, prototypes, and mockups.","Ability to effectively work on more than one project at a time."],jobType:"Part time",icon:"",featured:!1,jobNature:"Business"},{id:110,image:"assets/images/job/senior-job.png",title:"Market Analysis",location:"Infosys, Lelystad, Netherlands",description:"We are looking for an experienced and creative designer and/or frontend engineer with expertise in accessibility to join our team , 3+ years of experience working in as a Frontend Engineer or comparable role",qualification:["Have shipped multiple iOS, Android, and/or web products.","5+ years UI/UX experience.","Ability to autonomously pursue elegant solutions to open-ended problems.","Proven ability to create interactive prototypes.","Ability to create and maintain flow charts, wire frames, prototypes, and mockups.","Ability to effectively work on more than one project at a time."],jobType:"Internship",icon:"",featured:!1,jobNature:"Marketing"},{id:111,image:"assets/images/job/ang-job.png",title:"Senior Angular Developer",location:"Infosys, Lelystad, Netherlands",description:"We are looking for an experienced and creative designer and/or frontend engineer with expertise in accessibility to join our team , 3+ years of experience working in as a Frontend Engineer or comparable role",qualification:["Have shipped multiple iOS, Android, and/or web products.","5+ years UI/UX experience.","Ability to autonomously pursue elegant solutions to open-ended problems.","Proven ability to create interactive prototypes.","Ability to create and maintain flow charts, wire frames, prototypes, and mockups.","Ability to effectively work on more than one project at a time."],jobType:"Internship",icon:"",featured:!1,jobNature:"Designer"}];let sc=(()=>{class c{constructor(){this.jobs=D_}getJobs(){return this.jobs}static#e=this.\u0275fac=function(d){return new(d||c)};static#t=this.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac})}return c})();const bf=(c,_)=>_.value;function lc(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div")(1,"a",26)(2,"div",27)(3,"input",28),e.NdJ("ngModelChange",function(p){e.CHM(i);const w=e.oxw();return e.KtG(w.radioSelected=p)})("change",function(){const w=e.CHM(i).$implicit,k=e.oxw();return e.KtG(k.onItemChange(w))}),e.qZA(),e.TgZ(4,"label",29),e._uU(5),e.qZA()()()()}if(2&c){const i=_.$implicit,d=e.oxw();e.xp6(3),e.s9C("value",i.value),e.Q6J("ngModel",d.radioSelected),e.xp6(2),e.Oqu(i.name)}}function cc(c,_){1&c&&(e.TgZ(0,"div")(1,"button",41),e._UZ(2,"i",42),e.qZA()())}function ja(c,_){1&c&&(e.TgZ(0,"span",43),e._UZ(1,"i",44),e._uU(2,"Full time"),e.qZA())}function uc(c,_){1&c&&(e.TgZ(0,"span",45),e._UZ(1,"i",44),e._uU(2,"Part time"),e.qZA())}function wf(c,_){1&c&&(e.TgZ(0,"span",46),e._UZ(1,"i",44),e._uU(2,"Internship"),e.qZA())}const Z_=c=>["/apps/job-detail/",c];function Cf(c,_){if(1&c&&(e.TgZ(0,"div")(1,"div",30)(2,"div",31),e.YNc(3,cc,3,0,"div"),e.TgZ(4,"div",32)(5,"div",33),e._UZ(6,"img",34),e.qZA(),e.TgZ(7,"div",35)(8,"a",36),e._uU(9),e.qZA(),e.TgZ(10,"p",37),e._uU(11),e.qZA(),e.TgZ(12,"p"),e.YNc(13,ja,3,0,"span",38)(14,uc,3,0,"span",39)(15,wf,3,0,"span",40),e.qZA(),e._uU(16),e.qZA()()()()()),2&c){const i=_.$implicit;e.xp6(3),e.um2(3,i.featured?3:-1),e.xp6(3),e.Q6J("src",i.image,e.LSH),e.xp6(2),e.Q6J("routerLink",e.VKq(9,Z_,i.id)),e.xp6(),e.hij(" ",i.title," "),e.xp6(2),e.Oqu(i.location),e.xp6(2),e.um2(13,"Full time"===i.jobType?13:-1),e.xp6(),e.um2(14,"Part time"===i.jobType?14:-1),e.xp6(),e.um2(15,"Internship"===i.jobType?15:-1),e.xp6(),e.hij(" ",i.description," ")}}function kn(c,_){if(1&c&&(e.TgZ(0,"option",71),e._uU(1),e.qZA()),2&c){const i=_.$implicit;e.Q6J("ngValue",i),e.xp6(),e.hij(" ",i," ")}}function E_(c,_){if(1&c&&(e.TgZ(0,"option",71),e._uU(1),e.qZA()),2&c){const i=_.$implicit;e.Q6J("ngValue",i),e.xp6(),e.Oqu(i)}}function P_(c,_){if(1&c&&(e.TgZ(0,"option",71),e._uU(1),e.qZA()),2&c){const i=_.$implicit;e.Q6J("ngValue",i),e.xp6(),e.Oqu(i)}}function ls(c,_){if(1&c){const i=e.EpF();e.TgZ(0,"div",47)(1,"h5",48),e._uU(2,"Add Jobs"),e.qZA(),e.TgZ(3,"button",49),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.closeBtnClick())}),e.TgZ(4,"span",50),e._uU(5,"\xd7"),e.qZA()()(),e.TgZ(6,"div",51)(7,"form",52),e.NdJ("ngSubmit",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.onSubmit())}),e.TgZ(8,"div",53)(9,"label",54),e._uU(10,"Job Image"),e.qZA(),e.TgZ(11,"div",55)(12,"input",56,57),e.NdJ("change",function(){e.CHM(i);const p=e.MAs(13),w=e.oxw();return e.KtG(w.preview(p.files))}),e.qZA(),e.TgZ(14,"img",58),e.NdJ("click",function(){e.CHM(i);const p=e.MAs(13);return e.KtG(p.click())}),e.qZA()()(),e.TgZ(15,"div",53)(16,"label",59),e._uU(17,"Job Title"),e.qZA(),e.TgZ(18,"div",55),e._UZ(19,"input",60),e.qZA()(),e.TgZ(20,"div",53)(21,"label",59),e._uU(22,"Job Loction"),e.qZA(),e.TgZ(23,"div",55)(24,"select",61)(25,"option",62),e._uU(26,"Choose location"),e.qZA(),e.SjG(27,kn,2,2,"option",71,e.x6l),e.qZA()()(),e.TgZ(29,"div",53)(30,"label",59),e._uU(31,"Description"),e.qZA(),e.TgZ(32,"div",55),e._UZ(33,"input",63),e.qZA()(),e.TgZ(34,"div",53)(35,"label",59),e._uU(36,"Qualification"),e.qZA(),e.TgZ(37,"div",55)(38,"textarea",64),e._uU(39," "),e.qZA()()(),e.TgZ(40,"div",53)(41,"label",59),e._uU(42,"Job Type"),e.qZA(),e.TgZ(43,"div",55)(44,"select",65)(45,"option",62),e._uU(46,"Choose type of job"),e.qZA(),e.SjG(47,E_,2,2,"option",71,e.x6l),e.qZA()()(),e.TgZ(49,"div",53)(50,"label",59),e._uU(51,"Job In"),e.qZA(),e.TgZ(52,"div",55)(53,"select",66)(54,"option",62),e._uU(55,"Choose job in"),e.qZA(),e.SjG(56,P_,2,2,"option",71,e.x6l),e.qZA()()(),e.TgZ(58,"div",53)(59,"label",59),e._uU(60,"Job Icon"),e.qZA(),e.TgZ(61,"div",55),e._UZ(62,"input",67),e.qZA()(),e.TgZ(63,"div",68)(64,"button",69),e.NdJ("click",function(){e.CHM(i);const p=e.oxw();return e.KtG(p.closeBtnClick())}),e._uU(65," Close "),e.qZA(),e.TgZ(66,"button",70),e._uU(67," Save "),e.qZA()()()()}if(2&c){const i=e.oxw();e.xp6(7),e.Q6J("formGroup",i.jobAdd),e.xp6(7),e.Q6J("src",i.selectedImage,e.LSH),e.xp6(13),e.wJu(i.location),e.xp6(20
1),e.wJu(i.jobtype),e.xp6(9),e.wJu(i.jobin),e.xp6(10),e.Q6J("disabled",i.jobAdd.invalid)}}const Sr=c=>({"show-panel":c}),Tf=[{name:"All",value:"all"},{name:"Part Time",value:"Part time"},{name:"Full Time",value:"Full time"},{name:"Internship",value:"Internship"}],O_=(c,_)=>_.featured;function I_(c,_){if(1&c&&(e.TgZ(0,"li",16),e._UZ(1,"i",17),e._uU(2),e.qZA()),2&c){const i=_.$implicit;e.xp6(2),e.hij(" ",i," ")}}function F_(c,_){1&c&&(e.TgZ(0,"div")(1,"div",0)(2,"div",1)(3,"span"),e._uU(4,"No matching job found !!"),e.qZA()()()())}function q_(c,_){1&c&&(e.TgZ(0,"div")(1,"button",28),e._UZ(2,"i",29),e.qZA()())}function Ar(c,_){1&c&&(e.TgZ(0,"span",30),e._UZ(1,"i",31),e._uU(2,"Full time"),e.qZA())}function Sf(c,_){1&c&&(e.TgZ(0,"span",32),e._UZ(1,"i",31),e._uU(2,"Part time"),e.qZA())}function U_(c,_){1&c&&(e.TgZ(0,"span",33),e._UZ(1,"i",31),e._uU(2,"Internship"),e.qZA())}const R_=c=>["/apps/job-detail/",c];function G_(c,_){if(1&c&&(e.TgZ(0,"div",18)(1,"div",19)(2,"div",1),e.YNc(3,q_,3,0,"div"),e.TgZ(4,"div",20),e._UZ(5,"img",21),e.TgZ(6,"div",22)(7,"a",23),e._uU(8),e.qZA(),e.TgZ(9,"p",24),e._uU(10),e.qZA(),e.TgZ(11,"p"),e.YNc(12,Ar,3,0,"span",25)(13,Sf,3,0,"span",26)(14,U_,3,0,"span",27),e.qZA()()(),e._uU(15),e.qZA()()()),2&c){const i=_.$implicit;e.xp6(3),e.um2(3,i.featured?3:-1),e.xp6(2),e.Q6J("src",i.image,e.LSH),e.xp6(2),e.Q6J("routerLink",e.VKq(9,R_,i.id)),e.xp6(),e.hij(" ",i.title," "),e.xp6(2),e.Oqu(i.location),e.xp6(2),e.um2(12,"Full time"===i.jobType?12:-1),e.xp6(),e.um2(13,"Part time"===i.jobType?13:-1),e.xp6(),e.um2(14,"Internship"===i.jobType?14:-1),e.xp6(),e.hij(" ",i.description," ")}}const H_=[{path:"",children:[{path:"chat",component:hn,data:{title:"",urls:[]}},{path:"mail/:type",component:Uv,children:[{path:":id",component:Qo},{path:"compose",component:zi}],data:{title:"",urls:[]}},{path:"ticket/ticketlist",component:m,data:{title:"Ticket List",urls:[{title:"Dashboard",url:"/dashboard"},{title:"Ticket List"}]}},{path:"ticket/ticketdetails",component:L,data:{title:"Ticket Details",urls:[{title:"Dashboard",url:"/dashboard"},{title:"Ticket Details"}]}},{path:"taskboard",component:fe,data:{title:"Taskboard",urls:[{title:"Dashboard",url:"/dashboard"},{title:"Taskboard"}]}},{path:"fullcalendar",component:Jo,data:{title:"Full-Calendar",urls:[{title:"Dashboard",url:"/dashboard"},{title:"Full-Calendar"}]}},{path:"todo",component:Ng,data:{title:"",urls:[]}},{path:"tasks",component:Mm,data:{title:"",urls:[]}},{path:"contact-list",component:Id,data:{title:"",urls:[]}},{path:"contact-list-rxjs",component:g_,data:{title:"",urls:[]}},{path:"notes",component:zg,data:{title:"",urls:[]}},{path:"users",component:ts,data:{title:"Users App",urls:[{title:"Dashboard",url:"/dashboard"},{title:"Users App"}]}},{path:"usersrxjs",component:s_,data:{title:"Users-Rxjs App",urls:[{title:"Apps",url:"/dashboard"},{title:"Users-Rxjs App"}]}},{path:"contact-grid",component:um,data:{title:"Contact Grid",urls:[{title:"Dashboard",url:"/dashboard"},{title:"Contact Grid"}]}},{path:"contact",component:_m,data:{title:"",urls:[]}},{path:"contactrxjs",component:ic,data:{title:"",urls:[]}},{path:"invoice",component:ac,data:{title:"Invoice",urls:[]}},{path:"addinvoice",component:yf,data:{title:"Add Invoice",urls:[]}},{path:"viewinvoice/:id",component:ss,data:{title:"View Invoice",urls:[]}},{path:"editinvoice/:id",component:k_,data:{title:"",urls:[]}},{path:"jobs",component:(()=>{class c{mobileSidebar(){this.showSidebar=!this.showSidebar}constructor(i,d,p){this.service=i,this.fb=d,this.modalService=p,this.showSidebar=!1,this._searchTerm="",this._locationsearch="",this.page=1,this.pageSize=4,this.itemsList=Tf,this.radioSelected="",this.selectedImage="assets/images/job/noimage.png",this.jobtype=["Full time","Part time","Internship"],this.location=["Netherlands","Salt Lake City","San Diego","Minneapolis","Banglore","New Jerssy"],this.jobin=["Designer","Marketing","Business","React","java","Angular"],this.jobs=i.getJobs(),this.filjobs=this.jobs,this.itemsList=Tf,this.radioSelected="all",this.jobAdd=this.fb.group({Title:["",V.kI.required],Location:["",V.kI.required],Description:["",V.kI.required],Qualification:["",V.kI.required],Icon:["",V.kI.required],JobType:["",V.kI.required],Nature:["",V.kI.required]})}ngOnInit(){this.selectedImage="assets/images/job/noimage.png"}get searchTerm(){return this._searchTerm}set searchTerm(i){this.radioSelected="all",this._searchTerm=i,this.filjobs=this.filter(i)}filter(i){return this.jobs.filter(d=>-1!==d.title.toLowerCase().indexOf(i.toLowerCase()))}get locationsearch(){return this._locationsearch}set locationsearch(i){this.radioSelected="all",this._locationsearch=i,this.filjobs=this.filterLoc(i)}filterLoc(i){return this.jobs.filter(d=>-1!==d.location.toLowerCase().indexOf(i.toLowerCase()))}onItemChange(i){this.filjobs="all"===i.value?this.jobs:this.jobs.filter(d=>d.jobType===i.value)}openModal(i){this.modalService.open(i,{centered:!0,backdrop:"static"})}closeBtnClick(){this.modalService.dismissAll(),this.ngOnInit()}onSubmit(){let i=new M_;i.id=Math.max.apply(Math,this.service.getJobs().map(function(d){return d.id}))+1,i.title=this.jobAdd?.get("Title")?.value,i.location=this.jobAdd?.get("Location")?.value,i.description=this.jobAdd?.get("Description")?.value,i.qualification=this.jobAdd?.get("Qualification")?.value,i.image=this.selectedImage,i.jobType=this.jobAdd?.get("JobType")?.value,i.icon=this.jobAdd?.get("Icon")?.value,i.jobNature=this.jobAdd?.get("Nature")?.value,this.jobs?.splice(0,0,i),this.modalService.dismissAll(),this.ngOnInit()}preview(i){if(0===i.length||null==i[0].type.match(/image\/*/))return;const p=new FileReader;p.readAsDataURL(i[0]),p.onload=w=>{this.selectedImage=p.result}}static#e=this.\u0275fac=function(d){return new(d||c)(e.Y36(sc),e.Y36(V.QS),e.Y36(nt.FF))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["app-jobs-list"]],standalone:!0,features:[e.jDz],decls:41,vars:13,consts:[["href","javascript:void(0)",1,"btn","btn-success","show-left-part","d-block","d-lg-none",3,"ngClass","click"],[1,"main-part",2,"height","calc(100vh - 175px)"],[1,"left-part","bg-white","fixed-left-part","border-end",3,"ngClass"],[1,"position-relative",2,"height","100%"],[1,"ps-3","pe-4","py-3","d-flex","align-items-center","mt-1","border-bottom"],["src","assets/images/users/user4.jpg","width","45","alt","user",1,"rounded-circle"],[1,"text-dark","mb-0","ms-3","fs-5"],[1,"mb-0","fs-2"],[1,"fa","fa-circle","text-success","font-10","me-2"],[1,"p-3"],["type","button",1,"btn","btn-info","d-block","w-100",3,"click"],[1,"mb-3","mt-4"],["type","text","placeholder","Search",1,"form-control",3,"ngModel","ngModelChange"],[1,"mb-3"],["type","text","placeholder","Location",1,"form-control",3,"ngModel","ngModelChange"],[1,"mailbox","list-style-none"],[1,"message-center",2,"height","calc(100vh - 450px)"],[1,"px-3","pb-3"],[1,"fw-normal","text-muted","text-uppercase","mb-0"],[1,"right-part","bg-white"],[1,"d-md-flex","align-items-center","p-4","border-bottom","mail-pagination"],[1,"card-title","mb-0"],[1,"ms-auto","mt-3","mt-md-0"],[3,"page","pageSize","collectionSize","pageChange"],[1,"position-relative",2,"height","calc(100vh - 260px)"],["AddJobItem",""],[1,"message-item","border-0","d-flex","align-items-center","py-3"],[1,"form-check"],["type","radio","name","list_name",1,"form-check-input",3,"ngModel","value","ngModelChange","change"],[1,"form-check-label"],[1,"card","border-bottom"],[1,"card-body"],[1,"row"],[1,"col-md-2","col-xl-1","col-4","mb-3","mb-md-0","d-flex","align-items-center","justify-content-start"],["alt","pic",1,"img-fluid","rounded-lg",3,"src"],[1,"col-md-10","col-xl-11"],[1,"card-title","fs-4",3,"routerLink"],[1,"mb-0"],["class","badge bg-danger px-2"],["class","badge bg-success px-2"],["class","badge bg-primary px-2"],[1,"btn","btn-circle","rounded-circle","btn-warning","featured-btn","d-flex","align-items-center","justify-content-center"],[1,"mdi","mdi-star","fs-5"],[1,"badge","bg-danger","px-2"],[1,"fas","fa-circle","font-10","me-1"],[1,"badge","bg-success","px-2"],[1,"badge","bg-primary","px-2"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[3,"formGroup","ngSubmit"],[1,"form-group","row"],["for","name",1,"col-sm-4","col-form-label"],[1,"col-sm-8"],["type","file",2,"display","none",3,"change"],["filevar",""],["alt","","height","100px","width","100px",1,"rounded-circle","image","cursor-pointer",3,"src","click"],[1,"col-sm-4","col-form-label"],["type","text","formControlName","Title",1,"form-control"],["formControlName","Location",1,"form-control"],["value","","disabled",""],["type","email","formControlName","Description",1,"form-control"],["formControlName","Qualification","rows","4","cols","50",1,"form-control"],["formControlName","JobType",1,"form-control"],["formControlName","Nature",1,"form-control"],["type","text","formControlName","Icon",1,"form-control"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["type","submit",1,"btn","btn-primary",3,"disabled"],[3,"ngValue"]],template:function(d,p){
1if(1&d){const w=e.EpF();e.TgZ(0,"a",0),e.NdJ("click",function(){return p.mobileSidebar()}),e.qZA(),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div"),e._UZ(6,"img",5),e.qZA(),e.TgZ(7,"div",6),e._uU(8," Bruce Banner "),e.TgZ(9,"p",7),e._UZ(10,"i",8),e.TgZ(11,"span"),e._uU(12,"Online"),e.qZA()()()(),e.TgZ(13,"div",9)(14,"button",10),e.NdJ("click",function(){e.CHM(w);const I=e.MAs(40);return e.KtG(p.openModal(I))}),e._uU(15," Add Job "),e.qZA(),e.TgZ(16,"div",11)(17,"input",12),e.NdJ("ngModelChange",function(I){return p.searchTerm=I}),e.qZA()(),e.TgZ(18,"div",13)(19,"input",14),e.NdJ("ngModelChange",function(I){return p.locationsearch=I}),e.qZA()()(),e.TgZ(20,"ul",15)(21,"li")(22,"ng-scrollbar",16)(23,"div",17)(24,"h6",18),e._uU(25,"Filter"),e.qZA()(),e.SjG(26,lc,6,3,"div",null,bf),e.qZA()()()()(),e.TgZ(28,"div",19)(29,"div",3)(30,"div",20)(31,"h4",21),e._uU(32,"Jobs"),e.qZA(),e.TgZ(33,"div",22)(34,"ngb-pagination",23),e.NdJ("pageChange",function(I){return p.page=I}),e.qZA()()(),e.TgZ(35,"ng-scrollbar",24),e.SjG(36,Cf,17,11,"div",null,e.x6l),e.ALo(38,"slice"),e.qZA()()()(),e.YNc(39,ls,68,3,"ng-template",null,25,e.W1O)}2&d&&(e.Q6J("ngClass",p.showSidebar?"mdi mdi-close":"mdi mdi-menu"),e.xp6(2),e.Q6J("ngClass",e.VKq(11,Sr,p.showSidebar)),e.xp6(15),e.Q6J("ngModel",p.searchTerm),e.xp6(2),e.Q6J("ngModel",p.locationsearch),e.xp6(7),e.wJu(p.itemsList),e.xp6(8),e.Q6J("page",p.page)("pageSize",p.pageSize)("collectionSize",p.filjobs.length),e.xp6(2),e.wJu(e.Dn7(38,7,p.filjobs,(p.page-1)*p.pageSize,(p.page-1)*p.pageSize+p.pageSize)))},dependencies:[ce.ez,ce.mk,ce.OU,V.u5,V._Y,V.YN,V.Kr,V.Fj,V.EJ,V._,V.JJ,V.JL,V.On,V.UX,V.sg,V.u,Xt.Bz,Xt.rH,cn.kb,cn.KC,nt.N9],styles:[".pagination[_ngcontent-%COMP%]{margin-bottom:0}"]})}return c})(),data:{title:"Jobs",urls:[]}},{path:"job-detail/:id",component:(()=>{class c{constructor(i,d,p){this.service=d,this.router=p,this.similarJobs=[],this.id=i.snapshot.paramMap.get("id"),this.jobDetail=this.service.getJobs().filter(w=>w.id===+this.id)[0],this.similarJobs=this.service.getJobs().filter(w=>w.id===+this.id)}ngOnInit(){this.similarJobs=this.service.getJobs().filter(i=>i.jobNature===this.jobDetail.jobNature),this.similarJobs=this.similarJobs.filter(i=>i!==this.jobDetail)}static#e=this.\u0275fac=function(d){return new(d||c)(e.Y36(Xt.gz),e.Y36(sc),e.Y36(Xt.F0))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["app-job-detail"]],standalone:!0,features:[e.jDz],decls:31,vars:5,consts:[[1,"card"],[1,"card-body"],[1,"d-md-flex","align-items-center","pb-3","border-bottom"],[1,"d-flex","align-items-center"],["alt","pic","width","50",1,"img-fluid","rounded-lg","flex-shrink-0",3,"src"],[1,"ms-3"],[1,"card-title"],[1,"card-subtitle","mb-0"],[1,"ms-auto","mt-2","mt-md-0"],["routerLink","/apps/jobs",1,"btn","btn-primary","me-2"],["routerLink","/apps/apply-job",1,"btn","btn-success"],[1,"mt-4","card-title"],[1,"card-title","pt-2","border-top"],[1,"list-unstyled"],[1,"card-title","mt-4","pb-2","border-bottom"],[1,"row","justify-content-center"],[1,"py-1"],[1,"mdi","mdi-radiobox-marked","text-info"],[1,"col-md-6","d-flex","align-items-stretch"],[1,"card","w-100"],[1,"d-md-flex","align-items-start","mb-3"],["alt","pic","width","80",1,"rounded-lg","flex-shrink-0",3,"src"],[1,"ms-md-3","ms-0","mt-2","mt-md-0"],[1,"card-title","fs-4",3,"routerLink"],[1,"mb-1"],["class","badge bg-danger px-2"],["class","badge bg-success px-2"],["class","badge bg-primary px-2"],[1,"btn","btn-circle","rounded-circle","btn-warning","featured-btn","d-flex","align-items-center","justify-content-center"],[1,"mdi","mdi-star","fs-5"],[1,"badge","bg-danger","px-2"],[1,"fas","fa-circle","font-10","me-1"],[1,"badge","bg-success","px-2"],[1,"badge","bg-primary","px-2"],["class","py-1"],["class","col-md-6 d-flex align-items-stretch"]],template:function(d,p){1&d&&(e.TgZ(0,"div")(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3),e._UZ(5,"img",4),e.TgZ(6,"div",5)(7,"h4",6),e._uU(8),e.qZA(),e.TgZ(9,"h6",7),e._uU(10),e.qZA()()(),e.TgZ(11,"div",8)(12,"a",9),e._uU(13," Back to Jobs "),e.qZA(),e.TgZ(14,"a",10),e._uU(15," Apply for Job "),e.qZA()()(),e.TgZ(16,"h4",11),e._uU(17,"Job Description"),e.qZA(),e.TgZ(18,"p"),e._uU(19),e.qZA(),e.TgZ(20,"h4",12),e._uU(21,"Qualifications"),e.qZA(),e.TgZ(22,"ul",13),e.SjG(23,I_,3,1,"li",34,e.x6l),e.qZA()()(),e.TgZ(25,"h4",14),e._uU(26,"Related Jobs"),e.qZA(),e.YNc(27,F_,5,0,"div"),e.TgZ(28,"div",15),e.SjG(29,G_,16,11,"div",35,O_),e.qZA()()),2&d&&(e.xp6(5),e.Q6J("src",p.jobDetail.image,e.LSH),e.xp6(3),e.Oqu(p.jobDetail.title),e.xp6(2),e.Oqu(p.jobDetail.location),e.xp6(9),e.Oqu(p.jobDetail.description),e.xp6(4),e.wJu(p.jobDetail.qualification),e.xp6(4),e.um2(27,0===p.similarJobs.length?27:-1),e.xp6(2),e.wJu(p.similarJobs))},dependencies:[Xt.Bz,Xt.rH,V.u5,V.UX]})}return c})(),data:{title:"Jobs Details",urls:[]}},{path:"apply-job",component:(()=>{class c{constructor(i){this.fb=i,this.applyDetail=this.fb.group({fullName:["",V.kI.required],email:["",V.kI.required],phone:["",V.kI.required],address:["",V.kI.required]})}ngOnInit(){}onSubmit(){}static#e=this.\u0275fac=function(d){return new(d||c)(e.Y36(V.QS))};static#t=this.\u0275cmp=e.Xpm({type:c,selectors:[["app-job-apply"]],standalone:!0,features:[e.jDz],decls:28,vars:2,consts:[[1,"card","card-body"],[1,"modal-header","mb-2"],["routerLink","/apps/jobs/",1,"btn","btn-primary"],[1,"modal-body"],[3,"formGroup","ngSubmit"],[1,"mb-3"],[1,"card-title"],[1,"col-sm-4","col-form-label"],["type","text","formControlName","fullName",1,"form-control"],["type","text","formControlName","email",1,"form-control"],["type","text","formControlName","phone",1,"form-control"],["type","text","formControlName","address",1,"form-control"],[1,"modal-footer"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(d,p){1&d&&(e.TgZ(0,"div",0)(1,"div",1)(2,"a",2),e._uU(3," Back to Jobs "),e.qZA()(),e.TgZ(4,"div",3)(5,"form",4),e.NdJ("ngSubmit",function(){return p.onSubmit()}),e.TgZ(6,"div",5)(7,"h4",6),e._uU(8,"Personal Detail"),e.qZA()(),e.TgZ(9,"div",5)(10,"label",7),e._uU(11,"Full Name"),e.qZA(),e._UZ(12,"input",8),e.qZA(),e.TgZ(13,"div",5)(14,"label",7),e._uU(15,"Email"),e.qZA(),e._UZ(16,"input",9),e.qZA(),e.TgZ(17,"div",5)(18,"label",7),e._uU(19,"Phone Number"),e.qZA(),e._UZ(20,"input",10),e.qZA(),e.TgZ(21,"div",5)(22,"label",7),e._uU(23,"Address"),e.qZA(),e._UZ(24,"input",11),e.qZA(),e.TgZ(25,"div",12)(26,"button",13),e._uU(27," Save "),e.qZA()()()()()),2&d&&(e.xp6(5),e.Q6J("formGroup",p.applyDetail),e.xp6(21),e.Q6J("disabled",p.applyDetail.invalid))},dependencies:[ce.ez,V.u5,V._Y,V.Fj,V.JJ,V.JL,V.UX,V.sg,V.u]})}return c}
1)(),data:{title:"Apply Job",urls:[]}}]}];var Af=Ue(655),V_=6e4;function z_(c,_){return be(2,arguments),Be(c,pe(_)*V_)}function Y_(c,_){return be(2,arguments),Be(c,1e3*pe(_))}function kf(c){var _=new Date(Date.UTC(c.getFullYear(),c.getMonth(),c.getDate(),c.getHours(),c.getMinutes(),c.getSeconds(),c.getMilliseconds()));return _.setUTCFullYear(c.getFullYear()),c.getTime()-_.getTime()}var Mf=864e5;function Df(c,_){var i=c.getFullYear()-_.getFullYear()||c.getMonth()-_.getMonth()||c.getDate()-_.getDate()||c.getHours()-_.getHours()||c.getMinutes()-_.getMinutes()||c.getSeconds()-_.getSeconds()||c.getMilliseconds()-_.getMilliseconds();return i<0?-1:i>0?1:i}function $_(c,_){be(2,arguments);var i=Ze(c),d=Ze(_),p=Df(i,d),w=Math.abs(function dc(c,_){be(2,arguments);var i=dt(c),d=dt(_),p=i.getTime()-kf(i),w=d.getTime()-kf(d);return Math.round((p-w)/Mf)}(i,d));i.setDate(i.getDate()-p*w);var I=p*(w-+(Df(i,d)===-p));return 0===I?0:I}Math.pow(10,8);var j_=6e4;function Pf(c,_){return be(2,arguments),Ze(c).getTime()-Ze(_).getTime()}var Lf={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(_){return _<0?Math.ceil(_):Math.floor(_)}},t1="trunc";function Nf(c){return c?Lf[c]:Lf[t1]}function us(c,_,i){be(2,arguments);var d=Pf(c,_)/j_;return Nf(i?.roundingMethod)(d)}function n1(c,_,i){be(2,arguments);var d=Pf(c,_)/1e3;return Nf(i?.roundingMethod)(d)}function Ba(c){be(1,arguments);var _=Ze(c);return _.setHours(23,59,59,999),_}var Of={};function ds(){return Of}function i1(c,_){var i,d,p,w,k,I,te,B;be(1,arguments);var re=ds(),ge=pe(null!==(i=null!==(d=null!==(p=null!==(w=_?.weekStartsOn)&&void 0!==w?w:null==_||null===(k=_.locale)||void 0===k||null===(I=k.options)||void 0===I?void 0:I.weekStartsOn)&&void 0!==p?p:re.weekStartsOn)&&void 0!==d?d:null===(te=re.locale)||void 0===te||null===(B=te.options)||void 0===B?void 0:B.weekStartsOn)&&void 0!==i?i:0);if(!(ge>=0&&ge<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var Se=Ze(c),he=Se.getDay(),ke=6+(he<ge?-7:0)-(he-ge);return Se.setDate(Se.getDate()+ke),Se.setHours(23,59,59,999),Se}function If(c){return be(1,arguments),Ze(c).getDay()}function ta(c){return be(1,arguments),Ze(c).getMonth()}function fs(c){be(1,arguments);var _=Ze(c);return _.setMilliseconds(0),_}function fc(c,_){be(2,arguments);var i=fs(c),d=fs(_);return i.getTime()===d.getTime()}function r1(c){var _,i;if(be(1,arguments),c&&"function"==typeof c.forEach)_=c;else{if("object"!==we(c)||null===c)return new Date(NaN);_=Array.prototype.slice.call(c)}return _.forEach(function(d){var p=Ze(d);(void 0===i||i<p||isNaN(Number(p)))&&(i=p)}),i||new Date(NaN)}function Ff(c,_){be(2,arguments);var i=Ze(c),d=pe(_);return i.setHours(d),i}function a1(c,_){be(2,arguments);var i=Ze(c),d=pe(_);return i.setMinutes(d),i}function o1(c){be(1,arguments);var _=Ze(c);return _.setSeconds(0,0),_}function s1(c){be(1,arguments);var _=Ze(c);return _.setDate(1),_.setHours(0,0,0,0),_}function qf(c,_){var i,d,p,w,k,I,te,B;be(1,arguments);var re=ds(),ge=pe(null!==(i=null!==(d=null!==(p=null!==(w=_?.weekStartsOn)&&void 0!==w?w:null==_||null===(k=_.locale)||void 0===k||null===(I=k.options)||void 0===I?void 0:I.weekStartsOn)&&void 0!==p?p:re.weekStartsOn)&&void 0!==d?d:null===(te=re.locale)||void 0===te||null===(B=te.options)||void 0===B?void 0:B.weekStartsOn)&&void 0!==i?i:0);if(!(ge>=0&&ge<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var Se=Ze(c),he=Se.getDay(),ke=(he<ge?7:0)+he-ge;return Se.setDate(Se.getDate()-ke),Se.setHours(0,0,0,0),Se}function l1(c){return be(1,arguments),Ze(c).getHours()}function c1(c){return be(1,arguments),Ze(c).getMinutes()}function hs(c){return new Date(c).getTimezoneOffset()}function Rf(c,_){return be(2,arguments),mt(c,7*pe(_))}function Gf(c,_){be(2,arguments);var i=Ze(c),d=pe(_);if(isNaN(d))return new Date(NaN);if(!d)return i;var p=i.getDate(),w=new Date(i.getTime());return w.setMonth(i.getMonth()+d+1,0),p>=w.getDate()?w:(i.setFullYear(w.getFullYear(),w.getMonth(),p),i)}function u1(c,_){return be(2,arguments),Rf(c,-pe(_))}function d1(c,_){return be(2,arguments),Gf(c,-pe(_))}function ps(c){return be(1,arguments),qf(c,{weekStartsOn:1}
1)}var h1=6048e5;function p1(c){be(1,arguments);var _=Ze(c),i=ps(_).getTime()-function hc(c){be(1,arguments);var _=function f1(c){be(1,arguments);var _=Ze(c),i=_.getFullYear(),d=new Date(0);d.setFullYear(i+1,0,4),d.setHours(0,0,0,0);var p=ps(d),w=new Date(0);w.setFullYear(i,0,4),w.setHours(0,0,0,0);var k=ps(w);return _.getTime()>=p.getTime()?i+1:_.getTime()>=k.getTime()?i:i-1}(c),i=new Date(0);return i.setFullYear(_,0,4),i.setHours(0,0,0,0),ps(i)}(_).getTime();return Math.round(i/h1)+1}function g1(c,_){be(2,arguments);var i=Ze(c),d=pe(_);return i.setDate(d),i}function rn(c,_){be(2,arguments);var i=Ze(c),d=pe(_),p=i.getFullYear(),w=i.getDate(),k=new Date(0);k.setFullYear(p,d,15),k.setHours(0,0,0,0);var I=function m1(c){be(1,arguments);var _=Ze(c),i=_.getFullYear(),d=_.getMonth(),p=new Date(0);return p.setFullYear(i,d+1,0),p.setHours(0,0,0,0),p.getDate()}(k);return i.setMonth(d,Math.min(w,I)),i}function ji(c,_){be(2,arguments);var i=Ze(c),d=pe(_);return isNaN(i.getTime())?new Date(NaN):(i.setFullYear(d),i)}function _1(c){return be(1,arguments),Ze(c).getDate()}function Hf(c){return be(1,arguments),Ze(c).getFullYear()}function v1(){return(0,Af.pi)((0,Af.pi)({},function Uf(){return{addDays:mt,addHours:$e,addMinutes:z_,addSeconds:Y_,differenceInDays:$_,differenceInMinutes:us,differenceInSeconds:n1,endOfDay:Ba,endOfMonth:pt,endOfWeek:i1,getDay:If,getMonth:ta,isSameDay:Re,isSameMonth:Ee,isSameSecond:fc,max:r1,setHours:Ff,setMinutes:a1,startOfDay:dt,startOfMinute:o1,startOfMonth:s1,startOfWeek:qf,getHours:l1,getMinutes:c1,getTimezoneOffset:hs}}()),{addWeeks:Rf,addMonths:Gf,subDays:lt,subWeeks:u1,subMonths:d1,getISOWeek:p1,setDate:g1,setMonth:rn,setYear:ji,getDate:_1,getYear:Hf})}let y1=(()=>{class c{static#e=this.\u0275fac=function(d){return new(d||c)};static#t=this.\u0275mod=e.oAB({type:c});static#n=this.\u0275inj=e.cJS({providers:[kd,jo,wd,Xl,ce.uU,Xn,ce.JJ,Zd,Yl,Br,ns,l_,pf,Ja,sc],imports:[ce.ez,V.u5,V.UX,Xt.Bz.forChild(H_),gd.forRoot({provide:Di,useFactory:v1}),Yo.forRoot()]})}return c})()},5294:function(ya,ur,Ue){ya.exports=function(){"use strict";function D(a){var l=this;l.d3=window.d3?window.d3:Ue(1078),l.api=a,l.config=l.getDefaultConfig(),l.data={},l.cache={},l.axes={}}function Ae(a){this.internal=new D(this),this.internal.loadConfig(a),this.internal.beforeInit(a),this.internal.init(),this.internal.afterInit(a),function l(f,m,C){Object.keys(f).forEach(function(S){m[S]=f[S].bind(C),Object.keys(f[S]).length>0&&l(f[S],m[S],C)})}(Ae.prototype,this,this)}var cn=function(a){return Math.ceil(a)+.5},ce=function(a){return 10*Math.ceil(a/10)},Et=function(a){return a[1]-a[0]},e=function(a,l,f){return Kt(a[l])?a[l]:f},Vs=function(a){var l=fi(a),f=[a.pathSegList.getItem(0),a.pathSegList.getItem(1)];return{x:f[0].x,y:Math.min(f[0].y,f[1].y),width:l.width,height:l.height}},fi=function(a){try{return a.getBBox()}catch{return{x:0,y:0,width:0,height:0}}},xa=function(a){return Array.isArray(a)},Kt=function(a){return typeof a<"u"},go=function(a){return typeof a>"u"||null===a||un(a)&&0===a.length||"object"==typeof a&&0===Object.keys(a).length},on=function(a){return"function"==typeof a},zs=function(a){return"number"==typeof a},un=function(a){return"string"==typeof a},Pn=function(a){return typeof a>"u"},rt=function(a){return a||0===a},hn=function(a){return!go(a)},Ri=function(a){return"string"==typeof a?a.replace(/</g,"<").replace(/>/g,">"):a},Xn=function(a){var l=function(a){typeof a>"u"&&(a=window.navigator.userAgent);var l=a.indexOf("MSIE ");return l>0?parseInt(a.substring(l+5,a.indexOf(".",l)),10):(l=a.indexOf("Trident/"))>0&&(l=a.indexOf("rv:"),parseInt(a.substring(l+3,a.indexOf(".",l)),10))}();return typeof a>"u"?!!l:a===l};function Ht(a,l){var f=this;f.component=a,f.params=l||{},f.d3=a.d3,f.scale=f.d3.scaleLinear(),f.orient="bottom",f.innerTickSize=6,f.outerTickSize=this.params.withOuterTick?6:0,f.tickPadding=3,f.tickValues=null,f.tickOffset=0,f.tickCulling=!0,f.tickTextRotate=f.params.tickTextRotate,f.axis=f.generateAxis()}Ht.prototype.axisX=function(a,l,f){a.attr("transform",function(m){return"translate("+Math.ceil(l(m)+f)+", 0)"})},Ht.prototype.axisY=function(a,l){a.attr("transform",function(f){return"translate(0,"+Math.ceil(l(f))+")"})},Ht.prototype.scaleExtent=function(a){var l=a[0],f=a[a.length-1];return l<f?[l,f]:[f,l]},Ht.prototype.generateTicks=function(a){var f,m,C=[];if(a.ticks)return a.ticks.apply(a,this.tickArguments);for(m=a.domain(),f=Math.ceil(m[0]);f<m[1];f++)C.push(f);return C.length>0&&C[0]>0&&C.unshift(C[0]-(C[1]-C[0])),C},Ht.prototype.copyScale=function(){var f,a=this,l=a.scale.copy();return a.params.isCategory&&(f=a.scale.domain(),l.domain([f[0],f[1]-1])),l},Ht.prototype.textFormatted=function(a){var f=this.tickFormat?this.tickFormat(a):a;return typeof f<"u"?f:""},Ht.prototype.updateRange=function(){var a=this;return a.range=a.scale.rangeExtent?a.scale.rangeExtent():a.scaleExtent(a.scale.range()),a.range},Ht.prototype.updateTickTextCharSize=function(a){var l=this;if(l.tickTextCharSize)return l.tickTextCharSize;var f={h:11.5,w:5.5};return a.select("text").text(function(m){return l.textFormatted(m)}
1).each(function(m){var C=fi(this),S=l.textFormatted(m),E=C.height,L=S?C.width/S.length:void 0;E&&L&&(f.h=E,f.w=L)}).text(""),l.tickTextCharSize=f,f},Ht.prototype.isVertical=function(){return"left"===this.orient||"right"===this.orient},Ht.prototype.tspanData=function(a,l,f){var m=this,C=m.params.tickMultiline?m.splitTickText(a,f):[].concat(m.textFormatted(a));return m.params.tickMultiline&&m.params.tickMultilineMax>0&&(C=m.ellipsify(C,m.params.tickMultilineMax)),C.map(function(S){return{index:l,splitted:S,length:C.length}})},Ht.prototype.splitTickText=function(a,l){var S,E,f=this,m=f.textFormatted(a),C=f.params.tickWidth;if("[object Array]"===Object.prototype.toString.call(m))return m;return(!C||C<=0)&&(C=f.isVertical()?95:f.params.isCategory?Math.ceil(l(1)-l(0))-12:110),function O(J,$){E=void 0;for(var ie=1;ie<$.length;ie++)if(" "===$.charAt(ie)&&(E=ie),S=$.substr(0,ie+1),C<f.tickTextCharSize.w*S.length)return O(J.concat($.substr(0,E||ie)),$.slice(E?E+1:ie));return J.concat($)}([],m+"")},Ht.prototype.ellipsify=function(a,l){if(a.length<=l)return a;for(var f=a.slice(0,l),m=3,C=l-1;C>=0;C--){var S=f[C].length;if(f[C]=f[C].substr(0,S-m).padEnd(S,"."),(m-=S)<=0)break}return f},Ht.prototype.updateTickLength=function(){var a=this;a.tickLength=Math.max(a.innerTickSize,0)+a.tickPadding},Ht.prototype.lineY2=function(a){var l=this,f=l.scale(a)+(l.tickCentered?0:l.tickOffset);return l.range[0]<f&&f<l.range[1]?l.innerTickSize:0},Ht.prototype.textY=function(){var l=this.tickTextRotate;return l?11.5-l/15*2.5*(l>0?1:-1):this.tickLength},Ht.prototype.textTransform=function(){var l=this.tickTextRotate;return l?"rotate("+l+")":""},Ht.prototype.textTextAnchor=function(){var l=this.tickTextRotate;return l?l>0?"start":"end":"middle"},Ht.prototype.tspanDx=function(){var l=this.tickTextRotate;return l?8*Math.sin(Math.PI*(l/180)):0},Ht.prototype.tspanDy=function(a,l){var f=this,m=f.tickTextCharSize.h;return 0===l&&(m=f.isVertical()?-(f.tickTextCharSize.h/2*(a.length-1)-3):".71em"),m},Ht.prototype.generateAxis=function(){var a=this,l=a.d3,f=a.params;function m(C,S){var E;return C.each(function(){var fe,pe,we,L=m.g=l.select(this),U=this.__chart__||a.scale,O=this.__chart__=a.copyScale(),J=a.tickValues?a.tickValues:a.generateTicks(O),$=L.selectAll(".tick").data(J,O),ie=$.enter().insert("g",".domain").attr("class","tick").style("opacity",1e-6),ne=$.exit().remove(),ae=$.merge(ie);f.isCategory?(a.tickOffset=Math.ceil((O(1)-O(0))/2),pe=a.tickCentered?0:a.tickOffset,we=a.tickCentered?a.tickOffset:0):a.tickOffset=pe=0,a.updateRange(),a.updateTickLength(),a.updateTickTextCharSize(L.select(".tick"));
vendor: 33,599 bytes, line 1
1var be=ae.select("line").merge(ie.append("line")),Ze=ae.select("text").merge(ie.append("text")),mt=ae.selectAll("text").selectAll("tspan").data(function(Ee,Re){return a.tspanData(Ee,Re,O)}),dt=mt.enter().append("tspan").merge(mt).text(function(Ee){return Ee.splitted});mt.exit().remove();var pt=L.selectAll(".domain").data([0]),Be=pt.enter().append("path").merge(pt).attr("class","domain");switch(a.orient){case"bottom":fe=a.axisX,be.attr("x1",pe).attr("x2",pe).attr("y2",function(Ee,Re){return a.lineY2(Ee,Re)}),Ze.attr("x",0).attr("y",function(Ee,Re){return a.textY(Ee,Re)}).attr("transform",function(Ee,Re){return a.textTransform(Ee,Re)}).style("text-anchor",function(Ee,Re){return a.textTextAnchor(Ee,Re)}),dt.attr("x",0).attr("dy",function(Ee,Re){return a.tspanDy(Ee,Re)}).attr("dx",function(Ee,Re){return a.tspanDx(Ee,Re)}),Be.attr("d","M"+a.range[0]+","+a.outerTickSize+"V0H"+a.range[1]+"V"+a.outerTickSize);break;case"top":fe=a.axisX,be.attr("x1",pe).attr("x2",pe).attr("y2",function(Ee,Re){return-1*a.lineY2(Ee,Re)}),Ze.attr("x",0).attr("y",function(Ee,Re){return-1*a.textY(Ee,Re)-(f.isCategory?2:a.tickLength-2)}).attr("transform",function(Ee,Re){return a.textTransform(Ee,Re)}).style("text-anchor",function(Ee,Re){return a.textTextAnchor(Ee,Re)}),dt.attr("x",0).attr("dy",function(Ee,Re){return a.tspanDy(Ee,Re)}).attr("dx",function(Ee,Re){return a.tspanDx(Ee,Re)}),Be.attr("d","M"+a.range[0]+","+-a.outerTickSize+"V0H"+a.range[1]+"V"+-a.outerTickSize);break;case"left":fe=a.axisY,be.attr("x2",-a.innerTickSize).attr("y1",we).attr("y2",we),Ze.attr("x",-a.tickLength).attr("y",a.tickOffset).style("text-anchor","end"),dt.attr("x",-a.tickLength).attr("dy",function(Ee,Re){return a.tspanDy(Ee,Re)}),Be.attr("d","M"+-a.outerTickSize+","+a.range[0]+"H0V"+a.range[1]+"H"+-a.outerTickSize);break;case"right":fe=a.axisY,be.attr("x2",a.innerTickSize).attr("y1",we).attr("y2",we),Ze.attr("x",a.tickLength).attr("y",a.tickOffset).style("text-anchor","start"),dt.attr("x",a.tickLength).attr("dy",function(Ee,Re){return a.tspanDy(Ee,Re)}),Be.attr("d","M"+a.outerTickSize+","+a.range[0]+"H0V"+a.range[1]+"H"+a.outerTickSize)}if(O.rangeBand){var Ut=O,$e=Ut.rangeBand()/2;U=O=function(Ee){return Ut(Ee)+$e}}else U.rangeBand?U=O:ne.call(fe,O,a.tickOffset);ie.call(fe,U,a.tickOffset),E=(S?ae.transition(S):ae).style("opacity",1).call(fe,O,a.tickOffset)}),E}return m.scale=function(C){return arguments.length?(a.scale=C,m):a.scale},m.orient=function(C){return arguments.length?(a.orient=C in{top:1,right:1,bottom:1,left:1}?C+"":"bottom",m):a.orient},m.tickFormat=function(C){return arguments.length?(a.tickFormat=C,m):a.tickFormat},m.tickCentered=function(C){return arguments.length?(a.tickCentered=C,m):a.tickCentered},m.tickOffset=function(){return a.tickOffset},m.tickInterval=function(){var C;return(C=f.isCategory?2*a.tickOffset:(m.g.select("path.domain").node().getTotalLength()-2*a.outerTickSize)/m.g.selectAll("line").size())==1/0?0:C},m.ticks=function(){return arguments.length?(a.tickArguments=arguments,m):a.tickArguments},m.tickCulling=function(C){return arguments.length?(a.tickCulling=C,m):a.tickCulling},m.tickValues=function(C){if("function"==typeof C)a.tickValues=function(){return C(a.scale.domain())};else{if(!arguments.length)return a.tickValues;a.tickValues=C}return m},m};var H={target:"c3-target",chart:"c3-chart",chartLine:"c3-chart-line",chartLines:"c3-chart-lines",chartBar:"c3-chart-bar",chartBars:"c3-chart-bars",chartText:"c3-chart-text",chartTexts:"c3-chart-texts",chartArc:"c3-chart-arc",chartArcs:"c3-chart-arcs",chartArcsTitle:"c3-chart-arcs-title",chartArcsBackground:"c3-chart-arcs-background",chartArcsGaugeUnit:"c3-chart-arcs-gauge-unit",chartArcsGaugeMax:"c3-chart-arcs-gauge-max",chartArcsGaugeMin:"c3-chart-arcs-gauge-min",selectedCircle:"c3-selected-circle",selectedCircles:"c3-selected-circles",eventRect:"c3-event-rect",eventRects:"c3-event-rects",eventRectsSingle:"c3-event-rects-single",eventRectsMultiple:"c3-event-rects-multiple",zoomRect:"c3-zoom-rect",brush:"c3-brush",dragZoom:"c3-drag-zoom",focused:"c3-focused",defocused:"c3-defocused",region:"c3-region",regions:"c3-regions",title:"c3-title",tooltipContainer:"c3-tooltip-container",tooltip:"c3-tooltip",tooltipName:"c3-tooltip-name",shape:"c3-shape",shapes:"c3-shapes",line:"c3-line",lines:"c3-lines",bar:"c3-bar",bars:"c3-bars",circle:"c3-circle",circles:"c3-circles",arc:"c3-arc",arcLabelLine:"c3-arc-label-line",arcs:"c3-arcs",area:"c3-area",areas:"c3-areas",empty:"c3-empty",text:"c3-text",texts:"c3-texts",gaugeValue:"c3-gauge-value",grid:"c3-grid",gridLines:"c3-grid-lines",xgrid:"c3-xgrid",xgrids:"c3-xgrids",xgridLine:"c3-xgrid-line",xgridLines:"c3-xgrid-lines",xgridFocus:"c3-xgrid-focus",ygrid:"c3-ygrid",ygrids:"c3-ygrids",ygridLine:"c3-ygrid-line",ygridLines:"c3-ygrid-lines",colorScale:"c3-colorscale",stanfordElements:"c3-stanford-elements",stanfordLine:"c3-stanford-line",stanfordLines:"c3-stanford-lines",stanfordRegion:"c3-stanford-region",stanfordRegions:"c3-stanford-regions",stanfordText:"c3-stanford-text",stanfordTexts:"c3-stanford-texts",axis:"c3-axis",axisX:"c3-axis-x",axisXLabel:"c3-axis-x-label",axisY:"c3-axis-y",axisYLabel:"c3-axis-y-label",axisY2:"c3-axis-y2",axisY2Label:"c3-axis-y2-label",legendBackground:"c3-legend-background",legendItem:"c3-legend-item",legendItemEvent:"c3-legend-item-event",legendItemTile:"c3-legend-item-tile",legendItemHidden:"c3-legend-item-hidden",legendItemFocused:"c3-legend-item-focused",dragarea:"c3-dragarea",EXPANDED:"_expanded_",SELECTED:"_selected_",INCLUDED:"_included_"},ba=function(){return function a(l){this.owner=l,this.d3=l.d3,this.internal=Ht}}(),Ke=ba;Ke.prototype.init=function(){var l=this.owner,f=l.config,m=l.main;l.axes.x=m.append("g").attr("class",H.axis+" "+H.axisX).attr("clip-path",f.axis_x_inner?"":l.clipPathForXAxis).attr("transform",l.getTranslate("x")).style("visibility",f.axis_x_show?"visible":"hidden"),l.axes.x.append("text").attr("class",H.axisXLabel).attr("transform",f.axis_rotated?"rotate(-90)":"").style("text-anchor",this.textAnchorForXAxisLabel.bind(this)),l.axes.y=m.append("g").attr("class",H.axis+" "+H.axisY).attr("clip-path",f.axis_y_inner?"":l.clipPathForYAxis).attr("transform",l.getTranslate("y")).style("visibility",f.axis_y_show?"visible":"hidden"),l.axes.y.append("text").attr("class",H.axisYLabel).attr("transform",f.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForYAxisLabel.bind(this)),l.axes.y2=m.append("g").attr("class",H.axis+" "+H.axisY2).attr("transform",l.getTranslate("y2")).style("visibility",f.axis_y2_show?"visible":"hidden"),l.axes.y2.append("text").attr("class",H.axisY2Label).attr("transform",f.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForY2AxisLabel.bind(this))},Ke.prototype.getXAxis=function(l,f,m,C,S,E,L){var U=this.owner,O=U.config,J={isCategory:U.isCategorized(),withOuterTick:S,tickMultiline:O.axis_x_tick_multiline,tickMultilineMax:O.axis_x_tick_multiline?Number(O.axis_x_tick_multilineMax):0,tickWidth:O.axis_x_tick_width,tickTextRotate:L?0:O.axis_x_tick_rotate,withoutTransition:E},$=new this.internal(this,J).axis.scale(l).orient(f);return U.isTimeSeries()&&C&&"function"!=typeof C&&(C=C.map(function(ie){return U.parseDate(ie)})),$.tickFormat(m).tickValues(C),U.isCategorized()&&($.tickCentered(O.axis_x_tick_centered),go(O.axis_x_tick_culling)&&(O.axis_x_tick_culling=!1)),$},Ke.prototype.updateXAxisTickValues=function(l,f){var S,m=this.owner,C=m.config;return(C.axis_x_tick_fit||C.axis_x_tick_count)&&(S=this.generateTickValues(m.mapTargetsToUniqueXs(l),C.axis_x_tick_count,m.isTimeSeries())),f?f.tickValues(S):(m.xAxis.tickValues(S),m.subXAxis.tickValues(S)),S},Ke.prototype.getYAxis=function(l,f,m,C,S,E,L){var U=this.owner,O=U.config,J=O["axis_"+l+"_tick_format"];!J&&U.isAxisNormalized(l)&&(J=function(ie){return ie+"%"});var $=new this.internal(this,{withOuterTick:S,withoutTransition:E,tickTextRotate:L?0:O.axis_y_tick_rotate}).axis.scale(f).orient(m);return J&&$.tickFormat(J),U.isTimeSeriesY()?$.ticks(O.axis_y_tick_time_type,O.axis_y_tick_time_interval):$.tickValues(C),$},Ke.prototype.getId=function(l){var f=this.owner.config;return l in f.data_axes?f.data_axes[l]:"y"},Ke.prototype.getXAxisTickFormat=function(){var l=this.owner,f=l.config,m=l.isTimeSeries()?l.defaultAxisTimeFormat:l.isCategorized()?l.categoryName:function(C){return C};return f.axis_x_tick_format&&(on(f.axis_x_tick_format)?m=f.axis_x_tick_format:l.isTimeSeries()&&(m=function(C){return C?l.axisTimeFormat(f.axis_x_tick_format)(C):""})),on(m)?function(C){return m.call(l,C)}:m},Ke.prototype.getTickValues=function(l,f){return l||(f?f.tickValues():void 0)},Ke.prototype.getXAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_x_tick_values,this.owner.xAxis)},Ke.prototype.getYAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y_tick_values,this.owner.yAxis)},Ke.prototype.getY2AxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y2_tick_values,this.owner.y2Axis)},Ke.prototype.getLabelOptionByAxisId=function(l){var C,m=this.owner.config;return"y"===l?C=m.axis_y_label:"y2"===l?C=m.axis_y2_label:"x"===l&&(C=m.axis_x_label),C},Ke.prototype.getLabelText=function(l){var f=this.getLabelOptionByAxisId(l);return un(f)?f:f?f.text:null},Ke.prototype.setLabelText=function(l,f){var C=this.owner.config,S=this.getLabelOptionByAxisId(l);un(S)?"y"===l?C.axis_y_label=f:"y2"===l?C.axis_y2_label=f:"x"===l&&(C.axis_x_label=f):S&&(S.text=f)},Ke.prototype.getLabelPosition=function(l,f){var m=this.getLabelOptionByAxisId(l),C=m&&"object"==typeof m&&m.position?m.position:f;return{isInner:C.indexOf("inner")>=0,isOuter:C.indexOf("outer")>=0,isLeft:C.indexOf("left")>=0,isCenter:C.indexOf("center")>=0,isRight:C.indexOf("right")>=0,isTop:C.indexOf("top")>=0,isMiddle:C.indexOf("middle")>=0,isBottom:C.indexOf("bottom")>=0}},Ke.prototype.getXAxisLabelPosition=function(){return this.getLabelPosition("x",this.owner.config.axis_rotated?"inner-top":"inner-right")},Ke.prototype.getYAxisLabelPosition=function(){return this.getLabelPosition("y",this.owner.config.axis_rotated?"inner-right":"inner-top")},Ke.prototype.getY2AxisLabelPosition=function(){return this.getLabelPosition("y2",this.owner.config.axis_rotated?"inner-right":"inner-top")},Ke.prototype.getLabelPositionById=function(l){return"y2"===l?this.getY2AxisLabelPosition():"y"===l?this.getYAxisLabelPosition():this.getXAxisLabelPosition()},Ke.prototype.textForXAxisLabel=function(){return this.getLabelText("x")},Ke.prototype.textForYAxisLabel=function(){return this.getLabelText("y")},Ke.prototype.textForY2AxisLabel=function(){return this.getLabelText("y2")},Ke.prototype.xForAxisLabel=function(l,f){var m=this.owner;return l?f.isLeft?0:f.isCenter?m.width/2:m.width:f.isBottom?-m.height:f.isMiddle?-m.height/2:0},Ke.prototype.dxForAxisLabel=function(l,f){return l?f.isLeft?"0.5em":f.isRight?"-0.5em":"0":f.isTop?"-0.5em":f.isBottom?"0.5em":"0"},Ke.prototype.textAnchorForAxisLabel=function(l,f){return l?f.isLeft?"start":f.isCenter?"middle":"end":f.isBottom?"start":f.isMiddle?"middle":"end"},Ke.prototype.xForXAxisLabel=function(){return this.xForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},Ke.prototype.xForYAxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},Ke.prototype.xForY2AxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},Ke.prototype.dxForXAxisLabel=function(){return this.dxForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},Ke.prototype.dxForYAxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},Ke.prototype.dxForY2AxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},Ke.prototype.dyForXAxisLabel=function(){var l=this.owner,f=l.config,m=this.getXAxisLabelPosition();return f.axis_rotated?m.isInner?"1.2em":-25-(l.config.axis_x_inner?0:this.getMaxTickWidth("x")):m.isInner?"-0.5em":l.getHorizontalAxisHeight("x")-10},Ke.prototype.dyForYAxisLabel=function(){var l=this.owner,f=this.getYAxisLabelPosition();return l.config.axis_rotated?f.isInner?"-0.5em":"3em":f.isInner?"1.2em":-10-(l.config.axis_y_inner?0:this.getMaxTickWidth("y")+10)},Ke.prototype.dyForY2AxisLabel=function(){var l=this.owner,f=this.getY2AxisLabelPosition();return l.config.axis_rotated?f.isInner?"1.2em":"-2.2em":f.isInner?"-0.5em":15+(l.config.axis_y2_inner?0:this.getMaxTickWidth("y2")+15)},Ke.prototype.textAnchorForXAxisLabel=function(){return this.textAnchorForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},Ke.prototype.textAnchorForYAxisLabel=function(){return this.textAnchorForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},Ke.prototype.textAnchorForY2AxisLabel=function(){return this.textAnchorForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},Ke.prototype.getMaxTickWidth=function(l,f){var S,E,L,U,m=this.owner,C=0;return f&&m.currentMaxTickWidths[l]||(m.svg&&(S=m.filterTargetsToShow(m.data.targets),"y"===l?(E=m.y.copy().domain(m.getYDomain(S,"y")),L=this.getYAxis(l,E,m.yOrient,m.yAxisTickValues,!1,!0,!0)):"y2"===l?(E=m.y2.copy().domain(m.getYDomain(S,"y2")),L=this.getYAxis(l,E,m.y2Orient,m.y2AxisTickValues,!1,!0,!0)):(E=m.x.copy().domain(m.getXDomain(S)),L=this.getXAxis(E,m.xOrient,m.xAxisTickFormat,m.xAxisTickValues,!1,!0,!0),this.updateXAxisTickValues(S,L)),(U=m.d3.select("body").append("div").classed("c3",!0)).append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0).append("g").call(L).each(function(){m.d3.select(this).selectAll("text").each(function(){var J=fi(this);C<J.width&&(C=J.width)}),U.remove()})),m.currentMaxTickWidths[l]=C<=0?m.currentMaxTickWidths[l]:C),m.currentMaxTickWidths[l]},Ke.prototype.updateLabels=function(l){var f=this.owner,m=f.main.select("."+H.axisX+" ."+H.axisXLabel),C=f.main.select("."+H.axisY+" ."+H.axisYLabel),S=f.main.select("."+H.axisY2+" ."+H.axisY2Label);(l?m.transition():m).attr("x",this.xForXAxisLabel.bind(this)).attr("dx",this.dxForXAxisLabel.bind(this)).attr("dy",this.dyForXAxisLabel.bind(this)).text(this.textForXAxisLabel.bind(this)),(l?C.transition():C).attr("x",this.xForYAxisLabel.bind(this)).attr("dx",this.dxForYAxisLabel.bind(this)).attr("dy",this.dyForYAxisLabel.bind(this)).text(this.textForYAxisLabel.bind(this)),(l?S.transition():S).attr("x",this.xForY2AxisLabel.bind(this)).attr("dx",this.dxForY2AxisLabel.bind(this)).attr("dy",this.dyForY2AxisLabel.bind(this)).text(this.textForY2AxisLabel.bind(this))},Ke.prototype.getPadding=function(l,f,m,C){var S="number"==typeof l?l:l[f];return rt(S)?"ratio"===l.unit?l[f]*C:this.convertPixelsToAxisPadding(S,C):m},Ke.prototype.convertPixelsToAxisPadding=function(l,f){var m=this.owner;return f*(l/(m.config.axis_rotated?m.width:m.height))},Ke.prototype.generateTickValues=function(l,f,m){var S,E,L,U,O,J,$,C=l;if(f)if(1===(S=on(f)?f():f))C=[l[0]];else if(2===S)C=[l[0],l[l.length-1]];else if(S>2){for(O=((L=l[l.length-1])-(E=l[0]))/(1+(U=S-2)),C=[E],J=0;J<U;J++)$=+E+O*(J+1),C.push(m?new Date($):$);C.push(L)}return m||(C=C.sort(function(ie,ne){return ie-ne})),C},Ke.prototype.generateTransitions=function(l){var m=this.owner.axes;return{axisX:l?m.x.transition().duration(l):m.x,axisY:l?m.y.transition().duration(l):m.y,axisY2:l?m.y2.transition().duration(l):m.y2,axisSubX:l?m.subx.transition().duration(l):m.subx}},Ke.prototype.redraw=function(l,f){var m=this.owner,C=l?m.d3.transition().duration(l):null;m.axes.x.style("opacity",f?0:1).call(m.xAxis,C),m.axes.y.style("opacity",f?0:1).call(m.yAxis,C),m.axes.y2.style("opacity",f?0:1).call(m.y2Axis,C),m.axes.subx.style("opacity",f?0:1).call(m.subXAxis,C)};var hi={version:"0.7.20",chart:{fn:Ae.prototype,internal:{fn:D.prototype,axis:{fn:ba.prototype,internal:{fn:Ht.prototype}}}},generate:function(a){return new Ae(a)}};function wa(a,l,f){var m=[.01,10];function S(E){return f(l(E))}return l||(l=a.scaleLinear()).range(m),f||((f=a.scaleLog()).domain(m),f.nice()),S.domain=function(E){return arguments.length?(l.domain(E),S):l.domain()},S.range=function(E){return arguments.length?(f.range(E),S):f.range()},S.ticks=function(E){return function C(E,L,U){var O,J,$,ie;if(arguments.length<3)U=10;else if(0===U)return[];ie=(L-E)/(J=U-1),$=E,(O=new Array(U))[0]=Math.pow(10,$);for(var ne=1;ne<J;ne++)$+=ie,O[ne]=Math.pow(10,$);return O[J]=Math.pow(10,L),O}(-2,1,E||10).map(function(L){return l.invert(L)})},S.copy=function(){return wa(a,l.copy(),f.copy())},S}function mo(a){return a/Math.pow(10,Math.ceil(Math.log(a)/Math.LN10-1e-12))==1}D.prototype.beforeInit=function(){},D.prototype.afterInit=function(){},D.prototype.init=function(){var a=this,l=a.config;if(a.initParams(),l.data_url)a.convertUrlToData(l.data_url,l.data_mimeType,l.data_headers,l.data_keys,a.initWithData);else if(l.data_json)a.initWithData(a.convertJsonToData(l.data_json,l.data_keys));else if(l.data_rows)a.initWithData(a.convertRowsToData(l.data_rows));else{if(!l.data_columns)throw Error("url or json or rows or columns is required.");a.initWithData(a.convertColumnsToData(l.data_columns))}},D.prototype.initParams=function(){var a=this,l=a.d3,f=a.config;a.clipId="c3-"+(new Date).valueOf()+"-clip",a.clipIdForXAxis=a.clipId+"-xaxis",a.clipIdForYAxis=a.clipId+"-yaxis",a.clipIdForGrid=a.clipId+"-grid",a.clipIdForSubchart=a.clipId+"-subchart",a.clipPath=a.getClipPath(a.clipId),a.clipPathForXAxis=a.getClipPath(a.clipIdForXAxis),a.clipPathForYAxis=a.getClipPath(a.clipIdForYAxis),a.clipPathForGrid=a.getClipPath(a.clipIdForGrid),a.clipPathForSubchart=a.getClipPath(a.clipIdForSubchart),a.dragStart=null,a.dragging=!1,a.flowing=!1,a.cancelClick=!1,a.mouseover=void 0,a.transiting=!1,a.color=a.generateColor(),a.levelColor=a.generateLevelColor(),a.dataTimeParse=(f.data_xLocaltime?l.timeParse:l.utcParse)(a.config.data_xFormat),a.axisTimeFormat=f.axis_x_localtime?l.timeFormat:l.utcFormat,a.defaultAxisTimeFormat=function(m){return m.getMilliseconds()?l.timeFormat(".%L")(m):m.getSeconds()?l.timeFormat(":%S")(m):m.getMinutes()?l.timeFormat("%I:%M")(m):m.getHours()?l.timeFormat("%I %p")(m):m.getDay()&&1!==m.getDate()||1!==m.getDate()||m.getMonth()?l.timeFormat("%-m/%-d")(m):l.timeFormat("%Y/%-m/%-d")(m)},a.hiddenTargetIds=[],a.hiddenLegendIds=[],a.focusedTargetIds=[],a.defocusedTargetIds=[],a.xOrient=f.axis_rotated?f.axis_x_inner?"right":"left":f.axis_x_inner?"top":"bottom",a.yOrient=f.axis_rotated?f.axis_y_inner?"top":"bottom":f.axis_y_inner?"right":"left",a.y2Orient=f.axis_rotated?f.axis_y2_inner?"bottom":"top":f.axis_y2_inner?"left":"right",a.subXOrient=f.axis_rotated?"left":"bottom",a.isLegendRight="right"===f.legend_position,a.isLegendInset="inset"===f.legend_position,a.isLegendTop="top-left"===f.legend_inset_anchor||"top-right"===f.legend_inset_anchor,a.isLegendLeft="top-left"===f.legend_inset_anchor||"bottom-left"===f.legend_inset_anchor,a.legendStep=0,a.legendItemWidth=0,a.legendItemHeight=0,a.currentMaxTickWidths={x:0,y:0,y2:0},a.rotated_padding_left=30,a.rotated_padding_right=f.axis_rotated&&!f.axis_x_show?0:30,a.rotated_padding_top=5,a.withoutFadeIn={},a.intervalForObserveInserted=void 0,a.axes.subx=l.selectAll([])},D.prototype.initChartElements=function(){this.initBar&&this.initBar(),this.initLine&&this.initLine(),this.initArc&&this.initArc(),this.initGauge&&this.initGauge(),this.initText&&this.initText()},D.prototype.initWithData=function(a){var C,S,l=this,f=l.d3,m=l.config,E=!0;l.axis=new ba(l),l.selectChart=m.bindto?"function"==typeof m.bindto.node?m.bindto:f.select(m.bindto):f.selectAll([]),l.selectChart.empty()&&(l.selectChart=f.select(document.createElement("div")).style("opacity",0),l.observeInserted(l.selectChart),E=!1),l.selectChart.html("").classed("c3",!0),l.data.xs={},l.data.targets=l.convertDataToTargets(a),m.data_filter&&(l.data.targets=l.data.targets.filter(m.data_filter)),m.data_hide&&l.addHiddenTargetIds(!0===m.data_hide?l.mapToIds(l.data.targets):m.data_hide),m.legend_hide&&l.addHiddenLegendIds(!0===m.legend_hide?l.mapToIds(l.data.targets):m.legend_hide),l.isStanfordGraphType()&&l.initStanfordData(),l.updateSizes(),l.updateScales(),l.x.domain(f.extent(l.getXDomain(l.data.targets))),l.y.domain(l.getYDomain(l.data.targets,"y")),l.y2.domain(l.getYDomain(l.data.targets,"y2")),l.subX.domain(l.x.domain()),l.subY.domain(l.y.domain()),l.subY2.domain(l.y2.domain()),l.orgXDomain=l.x.domain(),l.svg=l.selectChart.append("svg").style("overflow","hidden").on("mouseenter",function(){return m.onmouseover.call(l)}).on("mouseleave",function(){return m.onmouseout.call(l)}),l.config.svg_classname&&l.svg.attr("class",l.config.svg_classname),C=l.svg.append("defs"),l.clipChart=l.appendClip(C,l.clipId),l.clipXAxis=l.appendClip(C,l.clipIdForXAxis),l.clipYAxis=l.appendClip(C,l.clipIdForYAxis),l.clipGrid=l.appendClip(C,l.clipIdForGrid),l.clipSubchart=l.appendClip(C,l.clipIdForSubchart),l.updateSvgSize(),S=l.main=l.svg.append("g").attr("transform",l.getTranslate("main")),l.initPie&&l.initPie(),l.initDragZoom&&l.initDragZoom(),m.subchart_show&&l.initSubchart&&l.initSubchart(),l.initTooltip&&l.initTooltip(),l.initLegend&&l.initLegend(),l.initTitle&&l.initTitle(),l.initZoom&&l.initZoom(),l.isStanfordGraphType()&&l.drawColorScale(),m.subchart_show&&l.initSubchartBrush&&l.initSubchartBrush(),S.append("text").attr("class",H.text+" "+H.empty).attr("text-anchor","middle").attr("dominant-baseline","middle"),l.initRegion(),l.initGrid(),S.append("g").attr("clip-path",l.clipPath).attr("class",H.chart),m.grid_lines_front&&l.initGridLines(),l.initStanfordElements(),l.initEventRect(),l.initChartElements(),l.axis.init(),l.updateTargets(l.data.targets),m.axis_x_selection&&l.brush.selectionAsValue(l.getDefaultSelection()),E&&(l.updateDimension(),l.config.oninit.call(l),l.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1})),l.bindResize(),l.bindWindowFocus(),l.api.element=l.selectChart.node()},D.prototype.smoothLines=function(a,l){var f=this;"grid"===l&&a.each(function(){var m=f.d3.select(this),C=m.attr("x1"),S=m.attr("x2"),E=m.attr("y1"),L=m.attr("y2");m.attr({x1:Math.ceil(C),x2:Math.ceil(S),y1:Math.ceil(E),y2:Math.ceil(L)})})},D.prototype.updateSizes=function(){var a=this,l=a.config,f=a.legend?a.getLegendHeight():0,m=a.legend?a.getLegendWidth():0,C=a.isLegendRight||a.isLegendInset?0:f,S=a.hasArcType(),E=l.axis_rotated||S?0:a.getHorizontalAxisHeight("x"),L=l.axis_rotated||S?0:a.getHorizontalAxisHeight("x",!0),U=l.subchart_show&&!S?l.subchart_size_height+L:0;a.currentWidth=a.getCurrentWidth(),a.currentHeight=a.getCurrentHeight(),a.margin=l.axis_rotated?{top:a.getHorizontalAxisHeight("y2")+a.getCurrentPaddingTop(),right:S?0:a.getCurrentPaddingRight(),bottom:a.getHorizontalAxisHeight("y")+C+a.getCurrentPaddingBottom(),left:U+(S?0:a.getCurrentPaddingLeft())}:{top:4+a.getCurrentPaddingTop(),right:S?0:a.getCurrentPaddingRight(),bottom:E+U+C+a.getCurrentPaddingBottom(),left:S?0:a.getCurrentPaddingLeft()},a.margin2=l.axis_rotated?{top:a.margin.top,right:NaN,bottom:20+C,left:a.rotated_padding_left}:{top:a.currentHeight-U-C,right:NaN,bottom:L+C,left:a.margin.left},a.margin3={top:0,right:NaN,bottom:0,left:0},a.updateSizeForLegend&&a.updateSizeForLegend(f,m),a.width=a.currentWidth-a.margin.left-a.margin.right,a.height=a.currentHeight-a.margin.top-a.margin.bottom,a.width<0&&(a.width=0),a.height<0&&(a.height=0),a.width2=l.axis_rotated?a.margin.left-a.rotated_padding_left-a.rotated_padding_right:a.width,a.height2=l.axis_rotated?a.height:a.currentHeight-a.margin2.top-a.margin2.bottom,a.width2<0&&(a.width2=0),a.height2<0&&(a.height2=0),a.arcWidth=a.width-(a.isLegendRight?m+10:0),a.arcHeight=a.height-(a.isLegendRight?0:10),a.hasType("gauge")&&!l.gauge_fullCircle&&(a.arcHeight+=a.height-a.getGaugeLabelHeight()),a.updateRadius&&a.updateRadius(),a.isLegendRight&&S&&(a.margin3.left=a.arcWidth/2+1.1*a.radiusExpanded)},D.prototype.updateTargets=function(a){var l=this,f=l.config;l.updateTargetsForText(a),l.updateTargetsForBar(a),l.updateTargetsForLine(a),l.hasArcType()&&l.updateTargetsForArc&&l.updateTargetsForArc(a),f.subchart_show&&l.updateTargetsForSubchart&&l.updateTargetsForSubchart(a),l.showTargets()},D.prototype.showTargets=function(){var a=this;a.svg.selectAll("."+H.target).filter(function(l){return a.isTargetToShow(l.id)}).transition().duration(a.config.transition_duration).style("opacity",1)},D.prototype.redraw=function(a,l){var O,J,$,ie,ne,ae,fe,pe,we,be,Ze,mt,lt,pt,Be,Ut,$e,Ee,Re,yt,Jt,sn,Wt,tn,pn,xe,Xe,Vn,pi,gi,zn,f=this,m=f.main,C=f.d3,S=f.config,E=f.getShapeIndices(f.isAreaType),L=f.getShapeIndices(f.isBarType),U=f.getShapeIndices(f.isLineType),dt=f.hasArcType(),Tt=f.filterTargetsToShow(f.data.targets),nn=f.xv.bind(f);if(O=e(a=a||{},"withY",!0),J=e(a,"withSubchart",!0),$=e(a,"withTransition",!0),ae=e(a,"withTransform",!1),fe=e(a,"withUpdateXDomain",!1),pe=e(a,"withUpdateOrgXDomain",!1),we=e(a,"withTrimXDomain",!0),lt=e(a,"withUpdateXAxis",fe),be=e(a,"withLegend",!1),Ze=e(a,"withEventRect",!0),mt=e(a,"withDimension",!0),ie=e(a,"withTransitionForExit",$),ne=e(a,"withTransitionForAxis",$),Re=$?S.transition_duration:0,yt=ie?Re:0,Jt=ne?Re:0,l=l||f.axis.generateTransitions(Jt),be&&S.legend_show?f.updateLegend(f.mapToIds(f.data.targets),a,l):mt&&f.updateDimension(!0),f.isCategorized()&&0===Tt.length&&f.x.domain([0,f.axes.x.selectAll(".tick").size()]),Tt.length?(f.updateXDomain(Tt,fe,pe,we),S.axis_x_tick_values||(xe=f.axis.updateXAxisTickValues(Tt))):(f.xAxis.tickValues([]),f.subXAxis.tickValues([])),S.zoom_rescale&&!a.flow&&(pi=f.x.orgDomain()),f.y.domain(f.getYDomain(Tt,"y",pi)),f.y2.domain(f.getYDomain(Tt,"y2",pi)),!S.axis_y_tick_values&&S.axis_y_tick_count&&f.yAxis.tickValues(f.axis.generateTickValues(f.y.domain(),S.axis_y_tick_count)),!S.axis_y2_tick_values&&S.axis_y2_tick_count&&f.y2Axis.tickValues(f.axis.generateTickValues(f.y2.domain(),S.axis_y2_tick_count)),f.axis.redraw(Jt,dt),f.axis.updateLabels($),(fe||lt)&&Tt.length)if(S.axis_x_tick_culling&&xe){for(Xe=1;Xe<xe.length;Xe++)if(xe.length/Xe<S.axis_x_tick_culling_max){Vn=Xe;break}f.svg.selectAll("."+H.axisX+" .tick text").each(function(vn){var gn=xe.indexOf(vn);gn>=0&&C.select(this).style("display",gn%Vn?"none":"block")})}else f.svg.selectAll("."+H.axisX+" .tick text").style("display","block");pt=f.generateDrawArea?f.generateDrawArea(E,!1):void 0,Be=f.generateDrawBar?f.generateDrawBar(L):void 0,Ut=f.generateDrawLine?f.generateDrawLine(U,!1):void 0,$e=f.generateXYForText(E,L,U,!0),Ee=f.generateXYForText(E,L,U,!1),f.updateCircleY(),gi=(f.config.axis_rotated?f.circleY:f.circleX).bind(f),zn=(f.config.axis_rotated?f.circleX:f.circleY).bind(f),O&&(f.subY.domain(f.getYDomain(Tt,"y")),f.subY2.domain(f.getYDomain(Tt,"y2"))),f.updateXgridFocus(),m.select("text."+H.text+"."+H.empty).attr("x",f.width/2).attr("y",f.height/2).text(S.data_empty_label_text).transition().style("opacity",Tt.length?0:1),Ze&&f.redrawEventRect(),f.updateGrid(Re),f.updateStanfordElements(Re),f.updateRegion(Re),f.updateBar(yt),f.updateLine(yt),f.updateArea(yt),f.updateCircle(gi,zn),f.hasDataLabel()&&f.updateText($e,Ee,yt),f.redrawTitle&&f.redrawTitle(),f.redrawArc&&f.redrawArc(Re,yt,ae),S.subchart_show&&f.redrawSubchart&&f.redrawSubchart(J,l,Re,yt,E,L,U),f.isStanfordGraphType()&&f.drawColorScale(),m.selectAll("."+H.selectedCircles).filter(f.isBarType.bind(f)).selectAll("circle").remove(),a.flow&&(tn=f.generateFlow({targets:Tt,flow:a.flow,duration:a.flow.duration,drawBar:Be,drawLine:Ut,drawArea:pt,cx:gi,cy:zn,xv:nn,xForText:$e,yForText:Ee})),Re&&f.isTabVisible()?(pn=C.transition().duration(Re),sn=[],[f.redrawBar(Be,!0,pn),f.redrawLine(Ut,!0,pn),f.redrawArea(pt,!0,pn),f.redrawCircle(gi,zn,!0,pn),f.redrawText($e,Ee,a.flow,!0,pn),f.redrawRegion(!0,pn),f.redrawGrid(!0,pn)].forEach(function(vn){vn.forEach(function(gn){sn.push(gn)})}),Wt=f.generateWait(),sn.forEach(function(vn){Wt.add(vn)}),Wt(function(){tn&&tn(),S.onrendered&&S.onrendered.call(f)})):(f.redrawBar(Be),f.redrawLine(Ut),f.redrawArea(pt),f.redrawCircle(gi,zn),f.redrawText($e,Ee,a.flow),f.redrawRegion(),f.redrawGrid(),tn&&tn(),S.onrendered&&S.onrendered.call(f)),f.mapToIds(f.data.targets).forEach(function(vn){f.withoutFadeIn[vn]=!0})},D.prototype.updateAndRedraw=function(a){var m,l=this,f=l.config;(a=a||{}).withTransition=e(a,"withTransition",!0),a.withTransform=e(a,"withTransform",!1),a.withLegend=e(a,"withLegend",!1),a.withUpdateXDomain=e(a,"withUpdateXDomain",!0),a.withUpdateOrgXDomain=e(a,"withUpdateOrgXDomain",!0),a.withTransitionForExit=!1,a.withTransitionForTransform=e(a,"withTransitionForTransform",a.withTransition),l.updateSizes(),a.withLegend&&f.legend_show||(m=l.axis.generateTransitions(a.withTransitionForAxis?f.transition_duration:0),l.updateScales(),l.updateSvgSize(),l.transformAll(a.withTransitionForTransform,m)),l.redraw(a,m)},D.prototype.redrawWithoutRescale=function(){this.redraw({withY:!1,withSubchart:!1,withEventRect:!1,withTransitionForAxis:!1})},D.prototype.isTimeSeries=function(){return"timeseries"===this.config.axis_x_type},D.prototype.isCategorized=function(){return this.config.axis_x_type.indexOf("categor")>=0},D.prototype.isCustomX=function(){var l=this.config;return!this.isTimeSeries()&&(l.data_x||hn(l.data_xs))},D.prototype.isTimeSeriesY=function(){return"timeseries"===this.config.axis_y_type},D.prototype.getTranslate=function(a){var m,C,l=this,f=l.config;return"main"===a?(m=cn(l.margin.left),C=cn(l.margin.top)):"context"===a?(m=cn(l.margin2.left),C=cn(l.margin2.top)):"legend"===a?(m=l.margin3.left,C=l.margin3.top):"x"===a?(m=0,C=f.axis_rotated?0:l.height):"y"===a?(m=0,C=f.axis_rotated?l.height:0):"y2"===a?(m=f.axis_rotated?0:l.width,C=f.axis_rotated?1:0):"subx"===a?(m=0,C=f.axis_rotated?0:l.height2):"arc"===a&&(m=l.arcWidth/2,C=l.arcHeight/2-(l.hasType("gauge")?6:0)),"translate("+m+","+C+")"},D.prototype.initialOpacity=function(a){return null!==a.value&&this.withoutFadeIn[a.id]?1:0},D.prototype.initialOpacityForCircle=function(a){return null!==a.value&&this.withoutFadeIn[a.id]?this.opacityForCircle(a):0},D.prototype.opacityForCircle=function(a){var f=(on(this.config.point_show)?this.config.point_show(a):this.config.point_show)||this.isStanfordType(a)?1:0;return rt(a.value)?this.isScatterType(a)?.5:f:0},D.prototype.opacityForText=function(){return this.hasDataLabel()?1:0},D.prototype.xx=function(a){return a?this.x(a.x):null},D.prototype.xvCustom=function(a,l){var f=this,m=l?a[l]:a.value;return f.isTimeSeries()?m=f.parseDate(a.value):f.isCategorized()&&"string"==typeof a.value&&(m=f.config.axis_x_categories.indexOf(a.value)),Math.ceil(f.x(m))},D.prototype.yvCustom=function(a,l){return Math.ceil((a.axis&&"y2"===a.axis?this.y2:this.y)(l?a[l]:a.value))},D.prototype.xv=function(a){var l=this,f=a.value;return l.isTimeSeries()?f=l.parseDate(a.value):l.isCategorized()&&"string"==typeof a.value&&(f=l.config.axis_x_categories.indexOf(a.value)),Math.ceil(l.x(f))},D.prototype.yv=function(a){return Math.ceil((a.axis&&"y2"===a.axis?this.y2:this.y)(a.value))},D.prototype.subxx=function(a){return a?this.subX(a.x):null},D.prototype.transformMain=function(a,l){var m,C,S,f=this;l&&l.axisX?m=l.axisX:(m=f.main.select("."+H.axisX),a&&(m=m.transition())),l&&l.axisY?C=l.axisY:(C=f.main.select("."+H.axisY),a&&(C=C.transition())),l&&l.axisY2?S=l.axisY2:(S=f.main.select("."+H.axisY2),a&&(S=S.transition())),(a?f.main.transition():f.main).attr("transform",f.getTranslate("main")),m.attr("transform",f.getTranslate("x")),C.attr("transform",f.getTranslate("y")),S.attr("transform",f.getTranslate("y2")),f.main.select("."+H.chartArcs).attr("transform",f.getTranslate("arc"))},D.prototype.transformAll=function(a,l){var f=this;f.transformMain(a,l),f.config.subchart_show&&f.transformContext(a,l),f.legend&&f.transformLegend(a)},D.prototype.updateSvgSize=function(){var a=this,l=a.svg.select("."+H.brush+" .overlay");a.svg.attr("width",a.currentWidth).attr("height",a.currentHeight),a.svg.selectAll(["#"+a.clipId,"#"+a.clipIdForGrid]).select("rect").attr("width",a.width).attr("height",a.height),a.svg.select("#"+a.clipIdForXAxis).select("rect").attr("x",a.getXAxisClipX.bind(a)).attr("y",a.getXAxisClipY.bind(a)).attr("width",a.getXAxisClipWidth.bind(a)).attr("height",a.getXAxisClipHeight.bind(a)),a.svg.select("#"+a.clipIdForYAxis).select("rect").attr("x",a.getYAxisClipX.bind(a)).attr("y",a.getYAxisClipY.bind(a)).attr("width",a.getYAxisClipWidth.bind(a)).attr("height",a.getYAxisClipHeight.bind(a)),a.svg.select("#"+a.clipIdForSubchart).select("rect").attr("width",a.width).attr("height",l.size()&&l.attr("height")||0),a.selectChart.style("max-height",a.currentHeight+"px")},D.prototype.updateDimension=function(a){var l=this;a||(l.config.axis_rotated?(l.axes.x.call(l.xAxis),l.axes.subx.call(l.subXAxis)):(l.axes.y.call(l.yAxis),l.axes.y2.call(l.y2Axis))),l.updateSizes(),l.updateScales(),l.updateSvgSize(),l.transformAll(!1)},D.prototype.observeInserted=function(a){var f,l=this;typeof MutationObserver>"u"?window.console.error("MutationObserver not defined."):(f=new MutationObserver(function(m){m.forEach(function(C){"childList"===C.type&&C.previousSibling&&(f.disconnect(),l.intervalForObserveInserted=window.setInterval(function(){a.node().parentNode&&(window.clearInterval(l.intervalForObserveInserted),l.updateDimension(),l.brush&&l.brush.update(),l.config.oninit.call(l),l.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransition:!1,withTransitionForTransform:!1,withLegend:!0}),a.transition().style("opacity",1))},10))})})).observe(a.node(),{attributes:!0,childList:!0,characterData:!0}
1)},D.prototype.bindResize=function(){var a=this,l=a.config;a.resizeFunction=a.generateResize(),a.resizeFunction.add(function(){l.onresize.call(a)}),l.resize_auto&&a.resizeFunction.add(function(){void 0!==a.resizeTimeout&&window.clearTimeout(a.resizeTimeout),a.resizeTimeout=window.setTimeout(function(){delete a.resizeTimeout,a.updateAndRedraw({withUpdateXDomain:!1,withUpdateOrgXDomain:!1,withTransition:!1,withTransitionForTransform:!1,withLegend:!0}),a.brush&&a.brush.update()},100)}),a.resizeFunction.add(function(){l.onresized.call(a)}),a.resizeIfElementDisplayed=function(){null==a.api||!a.api.element.offsetParent||a.resizeFunction()},window.addEventListener("resize",a.resizeIfElementDisplayed,!1)},D.prototype.bindWindowFocus=function(){var a=this;this.windowFocusHandler||(this.windowFocusHandler=function(){a.redraw()},window.addEventListener("focus",this.windowFocusHandler))},D.prototype.unbindWindowFocus=function(){window.removeEventListener("focus",this.windowFocusHandler),delete this.windowFocusHandler},D.prototype.generateResize=function(){var a=[];function l(){a.forEach(function(f){f()})}return l.add=function(f){a.push(f)},l.remove=function(f){for(var m=0;m<a.length;m++)if(a[m]===f){a.splice(m,1);break}},l},D.prototype.endall=function(a,l){var f=0;a.each(function(){++f}).on("end",function(){--f||l.apply(this,arguments)})},D.prototype.generateWait=function(){var a=this,l=[],f=function(m){var C=setInterval(function(){if(a.isTabVisible()){var S=0;l.forEach(function(E){if(E.empty())S+=1;else try{E.transition()}catch{S+=1}}),S===l.length&&(clearInterval(C),m&&m())}},50)};return f.add=function(m){l.push(m)},f},D.prototype.parseDate=function(a){var f;return a instanceof Date?f=a:"string"==typeof a?f=this.dataTimeParse(a):("object"==typeof a||"number"==typeof a&&!isNaN(a))&&(f=new Date(+a)),(!f||isNaN(+f))&&window.console.error("Failed to parse x '"+a+"' to Date object"),f},D.prototype.isTabVisible=function(){return!document.hidden},D.prototype.getPathBox=Vs,D.prototype.CLASS=H,"SVGPathSeg"in window||(window.SVGPathSeg=function(a,l,f){this.pathSegType=a,this.pathSegTypeAsLetter=l,this._owningPathSegList=f},window.SVGPathSeg.prototype.classname="SVGPathSeg",window.SVGPathSeg.PATHSEG_UNKNOWN=0,window.SVGPathSeg.PATHSEG_CLOSEPATH=1,window.SVGPathSeg.PATHSEG_MOVETO_ABS=2,window.SVGPathSeg.PATHSEG_MOVETO_REL=3,window.SVGPathSeg.PATHSEG_LINETO_ABS=4,window.SVGPathSeg.PATHSEG_LINETO_REL=5,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS=6,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL=7,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS=8,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL=9,window.SVGPathSeg.PATHSEG_ARC_ABS=10,window.SVGPathSeg.PATHSEG_ARC_REL=11,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS=12,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL=13,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS=14,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL=15,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19,window.SVGPathSeg.prototype._segmentChanged=function(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)},window.SVGPathSegClosePath=function(a){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CLOSEPATH,"z",a)},window.SVGPathSegClosePath.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegClosePath.prototype.toString=function(){return"[object SVGPathSegClosePath]"},window.SVGPathSegClosePath.prototype._asPathString=function(){return this.pathSegTypeAsLetter},window.SVGPathSegClosePath.prototype.clone=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathSegMovetoAbs=function(a,l,f){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_ABS,"M",a),this._x=l,this._y=f},window.SVGPathSegMovetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoAbs.prototype.toString=function(){return"[object SVGPathSegMovetoAbs]"},window.SVGPathSegMovetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoAbs.prototype.clone=function(){return new window.SVGPathSegMovetoAbs(void 0,this._x,this._y)}
vendor: 23,820 bytes, line 1
1,Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),window.SVGPathSegMovetoRel=function(a,l,f){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_REL,"m",a),this._x=l,this._y=f},window.SVGPathSegMovetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoRel.prototype.toString=function(){return"[object SVGPathSegMovetoRel]"},window.SVGPathSegMovetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoRel.prototype.clone=function(){return new window.SVGPathSegMovetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoAbs=function(a,l,f){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_ABS,"L",a),this._x=l,this._y=f},window.SVGPathSegLinetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoAbs.prototype.toString=function(){return"[object SVGPathSegLinetoAbs]"},window.SVGPathSegLinetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegLinetoAbs.prototype.clone=function(){return new window.SVGPathSegLinetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoRel=function(a,l,f){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_REL,"l",a),this._x=l,this._y=f},window.SVGPathSegLinetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoRel.prototype.toString=function(){return"[object SVGPathSegLinetoRel]"},window.SVGPathSegLinetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegLinetoRel.prototype.clone=function(){return new window.SVGPathSegLinetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicAbs=function(a,l,f,m,C,S,E){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS,"C",a),this._x=l,this._y=f,this._x1=m,this._y1=C,this._x2=S,this._y2=E},window.SVGPathSegCurvetoCubicAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicAbs]"},window.SVGPathSegCurvetoCubicAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicAbs(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x1",{get:function(){return this._x1},set:function(a){this._x1=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y1",{get:function(){return this._y1},set:function(a){this._y1=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x2",{get:function(){return this._x2},set:function(a){this._x2=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y2",{get:function(){return this._y2},set:function(a){this._y2=a,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicRel=function(a,l,f,m,C,S,E){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL,"c",a),this._x=l,this._y=f,this._x1=m,this._y1=C,this._x2=S,this._y2=E},window.SVGPathSegCurvetoCubicRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicRel]"},window.SVGPathSegCurvetoCubicRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicRel(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x1",{get:function(){return this._x1},set:function(a){this._x1=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y1",{get:function(){return this._y1},set:function(a){this._y1=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x2",{get:function(){return this._x2},set:function(a){this._x2=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y2",{get:function(){return this._y2},set:function(a){this._y2=a,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticAbs=function(a,l,f,m,C){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",a),this._x=l,this._y=f,this._x1=m,this._y1=C},window.SVGPathSegCurvetoQuadraticAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticAbs]"},window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x1",{get:function(){return this._x1},set:function(a){this._x1=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y1",{get:function(){return this._y1},set:function(a){this._y1=a,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticRel=function(a,l,f,m,C){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL,"q",a),this._x=l,this._y=f,this._x1=m,this._y1=C},window.SVGPathSegCurvetoQuadraticRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticRel]"},window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticRel(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x1",{get:function(){return this._x1},set:function(a){this._x1=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y1",{get:function(){return this._y1},set:function(a){this._y1=a,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcAbs=function(a,l,f,m,C,S,E,L){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_ABS,"A",a),this._x=l,this._y=f,this._r1=m,this._r2=C,this._angle=S,this._largeArcFlag=E,this._sweepFlag=L},window.SVGPathSegArcAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcAbs.prototype.toString=function(){return"[object SVGPathSegArcAbs]"},window.SVGPathSegArcAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},window.SVGPathSegArcAbs.prototype.clone=function(){return new window.SVGPathSegArcAbs(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcAbs.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r1",{get:function(){return this._r1},set:function(a){this._r1=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r2",{get:function(){return this._r2},set:function(a){this._r2=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"angle",{get:function(){return this._angle},set:function(a){this._angle=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(a){this._largeArcFlag=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(a){this._sweepFlag=a,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcRel=function(a,l,f,m,C,S,E,L){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_REL,"a",a),this._x=l,this._y=f,this._r1=m,this._r2=C,this._angle=S,this._largeArcFlag=E,this._sweepFlag=L},window.SVGPathSegArcRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcRel.prototype.toString=function(){return"[object SVGPathSegArcRel]"},window.SVGPathSegArcRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},window.SVGPathSegArcRel.prototype.clone=function(){return new window.SVGPathSegArcRel(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcRel.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r1",{get:function(){return this._r1},set:function(a){this._r1=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r2",{get:function(){return this._r2},set:function(a){this._r2=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"angle",{get:function(){return this._angle},set:function(a){this._angle=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(a){this._largeArcFlag=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(a){this._sweepFlag=a,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalAbs=function(a,l){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS,"H",a),this._x=l},window.SVGPathSegLinetoHorizontalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalAbs]"},window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},window.SVGPathSegLinetoHorizontalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalAbs(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalAbs.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalRel=function(a,l){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL,"h",a),this._x=l},window.SVGPathSegLinetoHorizontalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalRel.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalRel]"},window.SVGPathSegLinetoHorizontalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},window.SVGPathSegLinetoHorizontalRel.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalRel(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalRel.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalAbs=function(a,l){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS,"V",a),this._y=l},window.SVGPathSegLinetoVerticalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalAbs]"},window.SVGPathSegLinetoVerticalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},window.SVGPathSegLinetoVerticalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalAbs(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalAbs.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalRel=function(a,l){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL,"v",a),this._y=l},window.SVGPathSegLinetoVerticalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalRel.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalRel]"},window.SVGPathSegLinetoVerticalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},window.SVGPathSegLinetoVerticalRel.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalRel(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalRel.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothAbs=function(a,l,f,m,C){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",a),this._x=l,this._y=f,this._x2=m,this._y2=C},window.SVGPathSegCurvetoCubicSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothAbs]"},window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x2",{get:function(){return this._x2},set:function(a){this._x2=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y2",{get:function(){return this._y2},set:function(a){this._y2=a,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothRel=function(a,l,f,m,C){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",a),this._x=l,this._y=f,this._x2=m,this._y2=C},window.SVGPathSegCurvetoCubicSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothRel]"},window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x2",{get:function(){return this._x2},set:function(a){this._x2=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y2",{get:function(){return this._y2},set:function(a){this._y2=a,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothAbs=function(a,l,f){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",a),this._x=l,this._y=f},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothAbs]"},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothRel=function(a,l,f){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",a),this._x=l,this._y=f},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothRel]"},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),window.SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(a,l){return new window.SVGPathSegMovetoAbs(void 0,a,l)},window.SVGPathElement.prototype.createSVGPathSegMovetoRel=function(a,l){return new window.SVGPathSegMovetoRel(void 0,a,l)},window.SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(a,l){return new window.SVGPathSegLinetoAbs(void 0,a,l)},window.SVGPathElement.prototype.createSVGPathSegLinetoRel=function(a,l){return new window.SVGPathSegLinetoRel(void 0,a,l)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(a,l,f,m,C,S){return new window.SVGPathSegCurvetoCubicAbs(void 0,a,l,f,m,C,S)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(a,l,f,m,C,S){return new window.SVGPathSegCurvetoCubicRel(void 0,a,l,f,m,C,S)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(a,l,f,m){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,a,l,f,m)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(a,l,f,m){return new window.SVGPathSegCurvetoQuadraticRel(void 0,a,l,f,m)},window.SVGPathElement.prototype.createSVGPathSegArcAbs=function(a,l,f,m,C,S,E){return new window.SVGPathSegArcAbs(void 0,a,l,f,m,C,S,E)},window.SVGPathElement.prototype.createSVGPathSegArcRel=function(a,l,f,m,C,S,E){return new window.SVGPathSegArcRel(void 0,a,l,f,m,C,S,E)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(a){return new window.SVGPathSegLinetoHorizontalAbs(void 0,a)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(a){return new window.SVGPathSegLinetoHorizontalRel(void 0,a)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(a){return new window.SVGPathSegLinetoVerticalAbs(void 0,a)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(a){return new window.SVGPathSegLinetoVerticalRel(void 0,a)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(a,l,f,m){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,a,l,f,m)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(a,l,f,m){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,a,l,f,m)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(a,l){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,a,l)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(a,l){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,a,l)},"getPathSegAtLength"in window.SVGPathElement.prototype||(window.SVGPathElement.prototype.getPathSegAtLength=function(a){if
1(void 0===a||!isFinite(a))throw"Invalid arguments.";var l=document.createElementNS("http://www.w3.org/2000/svg","path");l.setAttribute("d",this.getAttribute("d"));var f=l.pathSegList.numberOfItems-1;if(f<=0)return 0;do{if(l.pathSegList.removeItem(f),a>l.getTotalLength())break;f--}while(f>0);return f})),"SVGPathSegList"in window||(window.SVGPathSegList=function(a){this._pathElement=a,this._list=this._parsePath(this._pathElement.getAttribute("d")),this._mutationObserverConfig={attributes:!0,attributeFilter:["d"]},this._pathElementMutationObserver=new MutationObserver(this._updateListFromPathMutations.bind(this)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.classname="SVGPathSegList",Object.defineProperty(window.SVGPathSegList.prototype,"numberOfItems",{get:function(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"pathSegList",{get:function(){return this._pathSegList||(this._pathSegList=new window.SVGPathSegList(this)),this._pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"normalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedNormalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),window.SVGPathSegList.prototype._checkPathSynchronizedToList=function(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())},window.SVGPathSegList.prototype._updateListFromPathMutations=function(a){if(this._pathElement){var l=!1;a.forEach(function(f){"d"==f.attributeName&&(l=!0)}),l&&(this._list=this._parsePath(this._pathElement.getAttribute("d")))}},window.SVGPathSegList.prototype._writeListToPath=function(){this._pathElementMutationObserver.disconnect(),this._pathElement.setAttribute("d",window.SVGPathSegList._pathSegArrayAsString(this._list)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.segmentChanged=function(a){this._writeListToPath()},window.SVGPathSegList.prototype.clear=function(){this._checkPathSynchronizedToList(),this._list.forEach(function(a){a._owningPathSegList=null}),this._list=[],this._writeListToPath()},window.SVGPathSegList.prototype.initialize=function(a){return this._checkPathSynchronizedToList(),this._list=[a],a._owningPathSegList=this,this._writeListToPath(),a},window.SVGPathSegList.prototype._checkValidIndex=function(a){if(isNaN(a)||a<0||a>=this.numberOfItems)throw"INDEX_SIZE_ERR"},window.SVGPathSegList.prototype.getItem=function(a){return this._checkPathSynchronizedToList(),this._checkValidIndex(a),this._list[a]},window.SVGPathSegList.prototype.insertItemBefore=function(a,l){return this._checkPathSynchronizedToList(),l>this.numberOfItems&&(l=this.numberOfItems),a._owningPathSegList&&(a=a.clone()),this._list.splice(l,0,a),a._owningPathSegList=this,this._writeListToPath(),a},window.SVGPathSegList.prototype.replaceItem=function(a,l){return this._checkPathSynchronizedToList(),a._owningPathSegList&&(a=a.clone()),this._checkValidIndex(l),this._list[l]=a,a._owningPathSegList=this,this._writeListToPath(),a},window.SVGPathSegList.prototype.removeItem=function(a){this._checkPathSynchronizedToList(),this._checkValidIndex(a);var l=this._list[a];return this._list.splice(a,1),this._writeListToPath(),l},window.SVGPathSegList.prototype.appendItem=function(a){return this._checkPathSynchronizedToList(),a._owningPathSegList&&(a=a.clone()),this._list.push(a),a._owningPathSegList=this,this._writeListToPath(),a},window.SVGPathSegList._pathSegArrayAsString=function(a){var l="",f=!0;return a.forEach(function(m){f?(f=!1,l+=m._asPathString()):l+=" "+m._asPathString()}),l},window.SVGPathSegList.prototype._parsePath=function(a){if(!a||0==a.length)return[];var l=this,f=function(){this.pathSegList=[]};f.prototype.appendSegment=function(L){this.pathSegList.push(L)};var m=function(L){this._string=L,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=window.SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()};
vendor: 23,692 bytes, line 1
1m.prototype._isCurrentSpace=function(){var L=this._string[this._currentIndex];return L<=" "&&(" "==L||"\n"==L||"\t"==L||"\r"==L||"\f"==L)},m.prototype._skipOptionalSpaces=function(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex++;return this._currentIndex<this._endIndex},m.prototype._skipOptionalSpacesOrDelimiter=function(){return!(this._currentIndex<this._endIndex&&!this._isCurrentSpace()&&","!=this._string.charAt(this._currentIndex))&&(this._skipOptionalSpaces()&&this._currentIndex<this._endIndex&&","==this._string.charAt(this._currentIndex)&&(this._currentIndex++,this._skipOptionalSpaces()),this._currentIndex<this._endIndex)},m.prototype.hasMoreData=function(){return this._currentIndex<this._endIndex},m.prototype.peekSegmentType=function(){return this._pathSegTypeFromChar(this._string[this._currentIndex])},m.prototype._pathSegTypeFromChar=function(L){switch(L){case"Z":case"z":return window.SVGPathSeg.PATHSEG_CLOSEPATH;case"M":return window.SVGPathSeg.PATHSEG_MOVETO_ABS;case"m":return window.SVGPathSeg.PATHSEG_MOVETO_REL;case"L":return window.SVGPathSeg.PATHSEG_LINETO_ABS;case"l":return window.SVGPathSeg.PATHSEG_LINETO_REL;case"C":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS;case"c":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL;case"Q":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS;case"q":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL;case"A":return window.SVGPathSeg.PATHSEG_ARC_ABS;case"a":return window.SVGPathSeg.PATHSEG_ARC_REL;case"H":return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS;case"h":return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL;case"V":return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS;case"v":return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL;case"S":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS;case"s":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL;case"T":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS;case"t":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL;default:return window.SVGPathSeg.PATHSEG_UNKNOWN}},m.prototype._nextCommandHelper=function(L,U){return("+"==L||"-"==L||"."==L||L>="0"&&L<="9")&&U!=window.SVGPathSeg.PATHSEG_CLOSEPATH?U==window.SVGPathSeg.PATHSEG_MOVETO_ABS?window.SVGPathSeg.PATHSEG_LINETO_ABS:U==window.SVGPathSeg.PATHSEG_MOVETO_REL?window.SVGPathSeg.PATHSEG_LINETO_REL:U:window.SVGPathSeg.PATHSEG_UNKNOWN},m.prototype.initialCommandIsMoveTo=function(){if(!this.hasMoreData())return!0;var L=this.peekSegmentType();return L==window.SVGPathSeg.PATHSEG_MOVETO_ABS||L==window.SVGPathSeg.PATHSEG_MOVETO_REL},m.prototype._parseNumber=function(){var L=0,U=0,O=1,J=0,$=1,ie=1,ne=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex<this._endIndex&&"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:this._currentIndex<this._endIndex&&"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,$=-1),!(this._currentIndex==this._endIndex||(this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")&&"."!=this._string.charAt(this._currentIndex))){for(var ae=this._currentIndex;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)this._currentIndex++;if(this._currentIndex!=ae)for(var fe=this._currentIndex-1,pe=1;fe>=ae;)U+=pe*(this._string.charAt(fe--)-"0"),pe*=10;if(this._currentIndex<this._endIndex&&"."==this._string.charAt(this._currentIndex)){if(this._currentIndex++,this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)O*=10,J+=(this._string.charAt(this._currentIndex)-"0")/O,this._currentIndex+=1}if(this._currentIndex!=ne&&this._currentIndex+1<this._endIndex&&("e"==this._string.charAt(this._currentIndex)||"E"==this._string.charAt(this._currentIndex))&&"x"!=this._string.charAt(this._currentIndex+1)&&"m"!=this._string.charAt(this._currentIndex+1)){if(this._currentIndex++,"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,ie=-1),this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)L*=10,L+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}var we=U+J;if(we*=$,L&&(we*=Math.pow(10,ie*L)),ne!=this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),we}},m.prototype._parseArcFlag=function(){if(!(this._currentIndex>=this._endIndex)){var L=!1,U=this._string.charAt(this._currentIndex++);if("0"==U)L=!1;else{if("1"!=U)return;L=!0}return this._skipOptionalSpacesOrDelimiter(),L}},m.prototype.parseSegment=function(){var L=this._string[this._currentIndex],U=this._pathSegTypeFromChar(L);if(U==window.SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand==window.SVGPathSeg.PATHSEG_UNKNOWN||(U=this._nextCommandHelper(L,this._previousCommand))==window.SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=U,U){case window.SVGPathSeg.PATHSEG_MOVETO_REL:return new window.SVGPathSegMovetoRel(l,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_MOVETO_ABS:return new window.SVGPathSegMovetoAbs(l,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_REL:return new window.SVGPathSegLinetoRel(l,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_ABS:return new window.SVGPathSegLinetoAbs(l,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new window.SVGPathSegLinetoHorizontalRel(l,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new window.SVGPathSegLinetoHorizontalAbs(l,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new window.SVGPathSegLinetoVerticalRel(l,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new window.SVGPathSegLinetoVerticalAbs(l,this._parseNumber());case window.SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new window.SVGPathSegClosePath(l);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:var O={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegCurvetoCubicRel(l,O.x,O.y,O.x1,O.y1,O.x2,O.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:return O={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicAbs(l,O.x,O.y,O.x1,O.y1,O.x2,O.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:return O={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothRel(l,O.x,O.y,O.x2,O.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:return O={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothAbs(l,O.x,O.y,O.x2,O.y2);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:return O={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticRel(l,O.x,O.y,O.x1,O.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:return O={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticAbs(l,O.x,O.y,O.x1,O.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new window.SVGPathSegCurvetoQuadraticSmoothRel(l,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new window.SVGPathSegCurvetoQuadraticSmoothAbs(l,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_ARC_REL:return O={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcRel(l,O.x,O.y,O.x1,O.y1,O.arcAngle,O.arcLarge,O.arcSweep);case window.SVGPathSeg.PATHSEG_ARC_ABS:return O={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcAbs(l,O.x,O.y,O.x1,O.y1,O.arcAngle,O.arcLarge,O.arcSweep);default:throw"Unknown path seg type."}};var C=new f,S=new m(a);if(!S.initialCommandIsMoveTo())return[];for(;S.hasMoreData();){var E=S.parseSegment();if(!E)return[];C.appendSegment(E)}return C.pathSegList}),String.prototype.padEnd||(String.prototype.padEnd=function(l,f){return l>>=0,f=String(typeof f<"u"?f:" "),this.length>l?String(this):((l-=this.length)>f.length&&(f+=f.repeat(l/f.length)),String(this)+f.slice(0,l))}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(l,f){if(null==l)throw new TypeError("Cannot convert undefined or null to object");for(var m=Object(l),C=1;C<arguments.length;C++){var S=arguments[C];if(null!=S)for(var E in S)Object.prototype.hasOwnProperty.call(S,E)&&(m[E]=S[E])}return m},writable:!0,configurable:!0}),(Ae.prototype.axis=function(){}).labels=function(a){var l=this.internal;arguments.length&&(Object.keys(a).forEach(function(f){l.axis.setLabelText(f,a[f])}),l.axis.updateLabels())},Ae.prototype.axis.max=function(a){var l=this.internal,f=l.config;if(!arguments.length)return{x:f.axis_x_max,y:f.axis_y_max,y2:f.axis_y2_max};"object"==typeof a?(rt(a.x)&&(f.axis_x_max=a.x),rt(a.y)&&(f.axis_y_max=a.y),rt(a.y2)&&(f.axis_y2_max=a.y2)):f.axis_y_max=f.axis_y2_max=a,l.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})},Ae.prototype.axis.min=function(a){var l=this.internal,f=l.config;if(!arguments.length)return{x:f.axis_x_min,y:f.axis_y_min,y2:f.axis_y2_min};"object"==typeof a?(rt(a.x)&&(f.axis_x_min=a.x),rt(a.y)&&(f.axis_y_min=a.y),rt(a.y2)&&(f.axis_y2_min=a.y2)):f.axis_y_min=f.axis_y2_min=a,l.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})},Ae.prototype.axis.range=function(a){if(!arguments.length)return{max:this.axis.max(),min:this.axis.min()};Kt(a.max)&&this.axis.max(a.max),Kt(a.min)&&this.axis.min(a.min)},Ae.prototype.axis.types=function(a){var l=this.internal;if(void 0===a)return{y:l.config.axis_y_type,y2:l.config.axis_y2_type};Kt(a.y)&&(l.config.axis_y_type=a.y),Kt(a.y2)&&(l.config.axis_y2_type=a.y2),l.updateScales(),l.redraw()},Ae.prototype.category=function(a,l){var f=this.internal,m=f.config;return arguments.length>1&&(m.axis_x_categories[a]=l,f.redraw()),m.axis_x_categories[a]},Ae.prototype.categories=function(a){var l=this.internal,f=l.config;return arguments.length&&(f.axis_x_categories=a,l.redraw()),f.axis_x_categories},Ae.prototype.resize=function(a){var f=this.internal.config;f.size_width=a?a.width:null,f.size_height=a?a.height:null,this.flush()},Ae.prototype.flush=function(){this.internal.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1})},Ae.prototype.destroy=function(){var a=this.internal;return window.clearInterval(a.intervalForObserveInserted),void 0!==a.resizeTimeout&&window.clearTimeout(a.resizeTimeout),window.removeEventListener("resize",a.resizeIfElementDisplayed),a.resizeFunction.remove(),a.unbindWindowFocus(),a.selectChart.classed("c3",!1).html(""),Object.keys(a).forEach(function(l){a[l]=null}),null},Ae.prototype.color=function(a){return this.internal.color(a)},(Ae.prototype.data=function(a){var l=this.internal.data.targets;return typeof a>"u"?l:l.filter(function(f){return[].concat(a).indexOf(f.id)>=0})}).shown=function(a){return this.internal.filterTargetsToShow(this.data(a))},Ae.prototype.data.values=function(a,l){void 0===l&&(l=!0);var f=null;if(a){var m=this.data(a);m&&xa(m)&&(f=m.reduce(function(C,S){var E=S.values.map(function(L){return L.value});return l?C=C.concat(E):C.push(E),C},[]))}return f},Ae.prototype.data.names=function(a){return this.internal.clearLegendItemTextBoxCache(),this.internal.updateDataAttributes("names",a)},Ae.prototype.data.colors=function(a){return this.internal.updateDataAttributes("colors",a)},Ae.prototype.data.axes=function(a){return this.internal.updateDataAttributes("axes",a)},Ae.prototype.data.stackNormalized=function(a){if(void 0===a)return this.internal.isStackNormalized();this.internal.config.data_stack_normalize=!!a,this.internal.redraw()},(Ae.prototype.donut=function(){}).padAngle=function(a){if(void 0===a)return this.internal.config.donut_padAngle;this.internal.config.donut_padAngle=a,this.flush()},Ae.prototype.flow=function(a){var f,m,L,U,O,ie,ne,l=this.internal,C=[],S=l.getMaxDataCount(),J=0,$=0;if(a.json)m=l.convertJsonToData(a.json,a.keys);else if(a.rows)m=l.convertRowsToData(a.rows);else{if(!a.columns)return;m=l.convertColumnsToData(a.columns)}f=l.convertDataToTargets(m,!0),l.data.targets.forEach(function(ae){var pe,we,fe=!1;for(pe=0;pe<f.length;pe++)if(ae.id===f[pe].id){for(fe=!0,ae.values[ae.values.length-1]&&($=ae.values[ae.values.length-1].index+1),J=f[pe].values.length,we=0;we<J;we++)f[pe].values[we].index=$+we,l.isTimeSeries()||(f[pe].values[we].x=$+we);ae.values=ae.values.concat(f[pe].values),f.splice(pe,1);break}fe||C.push(ae.id)}),l.data.targets.forEach(function(ae){var fe,pe;for(fe=0;fe<C.length;fe++)if(ae.id===C[fe])for($=ae.values[ae.values.length-1].index+1,pe=0;pe<J;pe++)ae.values.push({id:ae.id,index:$+pe,x:l.isTimeSeries()?l.getOtherTargetX($+pe):$+pe,value:null})}),l.data.targets.length&&f.forEach(function(ae){var fe,pe=[];for(fe=l.data.targets[0].values[0].index;fe<$;fe++)pe.push({id:ae.id,index:fe,x:l.isTimeSeries()?l.getOtherTargetX(fe):fe,value:null});ae.values.forEach(function(we){we.index+=$,l.isTimeSeries()||(we.x+=$)}),ae.values=pe.concat(ae.values)}),l.data.targets=l.data.targets.concat(f),l.getMaxDataCount(),O=(U=l.data.targets[0]).values[0],Kt(a.to)?(J=0,ne=l.isTimeSeries()?l.parseDate(a.to):a.to,U.values.forEach(function(ae){ae.x<ne&&J++})):Kt(a.length)&&(J=a.length),S?1===S&&l.isTimeSeries()&&(ie=(U.values[U.values.length-1].x-O.x)/2,L=[new Date(+O.x-ie),new Date(+O.x+ie)],l.updateXDomain(null,!0,!0,!1,L)):(ie=l.isTimeSeries()?U.values.length>1?U.values[U.values.length-1].x-O.x:O.x-l.getXDomain(l.data.targets)[0]:1,l.updateXDomain(null,!0,!0,!1,L=[O.x-ie,O.x])),l.updateTargets(l.data.targets),l.redraw({flow:{index:O.index,length:J,duration:rt(a.duration)?a.duration:l.config.transition_duration,done:a.done,orgDataCount:S},withLegend:!0,withTransition:S>1,withTrimXDomain:!1,withUpdateXAxis:!0})},D.prototype.generateFlow=function(a){var l=this,f=l.config,m=l.d3;return function(){var fe,we,pt,Ee,Re,yt,Jt,sn,Wt,tn,pn,C=a.targets,S=a.flow,E=a.drawBar,L=a.drawLine,U=a.drawArea,O=a.cx,J=a.cy,$=a.xv,ie=a.xForText,ne=a.yForText,ae=a.duration,be=S.index,Ze=S.length,mt=l.getValueOnIndex(l.data.targets[0].values,be),lt=l.getValueOnIndex(l.data.targets[0].values,be+Ze),dt=l.x.domain(),Be=S.duration||ae,Ut=S.done||function(){},$e=l.generateWait();l.flowing=!0,l.data.targets.forEach(function(xe){xe.values.splice(0,Ze)}),pt=l.updateXDomain(C,!0,!0),l.updateXGrid&&l.updateXGrid(!0),Ee=l.xgrid||m.selectAll([]),Re=l.xgridLines||m.selectAll([]),yt=l.mainRegion||m.selectAll([]),Jt=l.mainText||m.selectAll([]),sn=l.mainBar||m.selectAll([]),Wt=l.mainLine||m.selectAll([]),tn=l.mainArea||m.selectAll([]),pn=l.mainCircle||m.selectAll([]),S.orgDataCount?fe=1===S.orgDataCount||(mt&&mt.x)===(lt&<.x)||l.isTimeSeries()?l.x(dt[0])-l.x(pt[0]):l.x(mt.x)-l.x(lt.x):1!==l.data.targets[0].values.length?fe=l.x(dt[0])-l.x(pt[0]):l.isTimeSeries()?(mt=l.getValueOnIndex(l.data.targets[0].values,0),lt=l.getValueOnIndex(l.data.targets[0].values,l.data.targets[0].values.length-1),fe=l.x(mt.x)-l.x(lt.x)):fe=Et(pt)/2,we="translate("+fe+",0) scale("+Et(dt)/Et(pt)+",1)",l.hideXGridFocus();var Tt=m.transition().ease(m.easeLinear).duration(Be);$e.add(l.xAxis(l.axes.x,Tt)),$e.add(sn.transition(Tt).attr("transform",we)),$e.add(Wt.transition(Tt).attr("transform",we)),$e.add(tn.transition(Tt).attr("transform",we)),$e.add(pn.transition(Tt).attr("transform",we)),$e.add(Jt.transition(Tt).attr("transform",we)),$e.add(yt.filter(l.isRegionOnX).transition(Tt).attr("transform",we)),$e.add(Ee.transition(Tt).attr("transform",we)),$e.add(Re.transition(Tt).attr("transform",we)),$e(function(){var xe,Xe=[],Vn=[];if(Ze){for(xe=0;xe<Ze;xe++)Xe.push("."+H.shape+"-"+(be+xe)),Vn.push("."+H.text+"-"+(be+xe));l.svg.selectAll("."+H.shapes).selectAll(Xe).remove(),l.svg.selectAll("."+H.texts).selectAll(Vn).remove(),l.svg.select("."+H.xgrid).remove()}Ee.attr("transform",null).attr("x1",l.xgridAttr.x1).attr("x2",l.xgridAttr.x2).attr("y1",l.xgridAttr.y1).attr("y2",l.xgridAttr.y2).style("opacity",l.xgridAttr.opacity),Re.attr("transform",null),Re.select("line").attr("x1",f.axis_rotated?0:$).attr("x2",f.axis_rotated?l.width:$),Re.select("text").attr("x",f.axis_rotated?l.width:0).attr("y",$),sn.attr("transform",null).attr("d",E),Wt.attr("transform",null).attr("d",L),tn.attr("transform",null).attr("d",U),pn.attr("transform",null).attr("cx",O).attr("cy",J),Jt.attr("transform",null).attr("x",ie).attr("y",ne).style("fill-opacity",l.opacityForText.bind(l)),yt.attr("transform",null),yt.filter(l.isRegionOnX).attr("x",l.regionX.bind(l)).attr("width",l.regionWidth.bind(l)),Ut(),l.flowing=!1})}},Ae.prototype.focus=function(a){var f,l=this.internal;a=l.mapToTargetIds(a),f=l.svg.selectAll(l.selectorTargets(a.filter(l.isTargetToShow,l))),this.revert(),this.defocus(),f.classed(H.focused,!0).classed(H.defocused,!1),l.hasArcType()&&l.expandArc(a),l.toggleFocusLegend(a,!0),l.focusedTargetIds=a,l.defocusedTargetIds=l.defocusedTargetIds.filter(function(m){return a.indexOf(m)<0})},Ae.prototype.defocus=function(a){var l=this.internal;a=l.mapToTargetIds(a),l.svg.selectAll(l.selectorTargets(a.filter(l.isTargetToShow,l))).classed(H.focused,!1).classed(H.defocused,!0),l.hasArcType()&&l.unexpandArc(a),l.toggleFocusLegend(a,!1),l.focusedTargetIds=l.focusedTargetIds.filter(function(m){return a.indexOf(m)<0}),l.defocusedTargetIds=a},Ae.prototype.revert=function(a){var l=this.internal;a=l.mapToTargetIds(a),l.svg.selectAll(l.selectorTargets(a)).classed(H.focused,!1).classed(H.defocused,!1),l.hasArcType()&&l.unexpandArc(a),l.config.legend_show&&(l.showLegend(a.filter(l.isLegendToShow.bind(l))),l.legend.selectAll(l.selectorLegends(a)).filter(function(){return l.d3.select(this).classed(H.legendItemFocused)}).classed(H.legendItemFocused,!1)),l.focusedTargetIds=[],l.defocusedTargetIds=[]},(Ae.prototype.xgrids=function(a){var l=this.internal,f=l.config;return a&&(f.grid_x_lines=a,l.redrawWithoutRescale()),f.grid_x_lines}).add=function(a){return this.xgrids(this.internal.config.grid_x_lines.concat(a||[]))},Ae.prototype.xgrids.remove=function(a){this.internal.removeGridLines(a,!0)},(Ae.prototype.ygrids=function(a){var l=this.internal,f=l.config;return a&&(f.grid_y_lines=a,l.redrawWithoutRescale()),f.grid_y_lines}).add=function(a){return this.ygrids(this.internal.config.grid_y_lines.concat(a||[]))},Ae.prototype.ygrids.remove=function(a){this.internal.removeGridLines(a,!1)},Ae.prototype.groups=function(a){var l=this.internal,f=l.config;return Pn(a)||(f.data_groups=a,l.redraw()),f.data_groups},(Ae.prototype.legend=function(){}).show=function(a){var l=this.internal;l.showLegend(l.mapToTargetIds(a)),l.updateAndRedraw({withLegend:!0})},Ae.prototype.legend.hide=function(a){var l=this.internal;l.hideLegend(l.mapToTargetIds(a)),l.updateAndRedraw({withLegend:!1})},Ae.prototype.load=function(a){var l=this.internal,f=l.config;a.xs&&l.addXs(a.xs),"names"in a&&Ae.prototype.data.names.bind(this)(a.names),"classes"in a&&Object.keys(a.classes).forEach(function(m){f.data_classes[m]=a.classes[m]}),"categories"in a&&l.isCategorized()&&(f.axis_x_categories=a.categories),"axes"in a&&Object.keys(a.axes).forEach(function(m){f.data_axes[m]=a.axes[m]}),"colors"in a&&Object.keys(a.colors).forEach(function(m){f.data_colors[m]=a.colors[m]}),"cacheIds"in a&&l.hasCaches(a.cacheIds)?l.load(l.getCaches(a.cacheIds),a.done):a.unload?l.unload(l.mapToTargetIds(!0===a.unload?null:a.unload),function(){l.loadFromArgs(a)}):l.loadFromArgs(a)},Ae.prototype.unload=function(a){var l=this.internal;(a=a||{})instanceof Array?a={ids:a}:"string"==typeof a&&(a={ids:[a]}),l.unload(l.mapToTargetIds(a.ids),function(){l.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),a.done&&a.done()})},(Ae.prototype.pie=function(){}).padAngle=function(a){if(void 0===a)return this.internal.config.pie_padAngle;this.internal.config.pie_padAngle=a,this.flush()},(Ae.prototype.regions=function(a){var l=this.internal,f=l.config;return a&&(f.regions=a,l.redrawWithoutRescale()),f.regions}).add=function(a){var l=this.internal,f=l.config;return a&&(f.regions=f.regions.concat(a),l.redrawWithoutRescale()),f.regions},Ae.prototype.regions.remove=function(a){var m,C,S,l=this.internal,f=l.config;return m=e(a=a||{},"duration",f.transition_duration),C=e(a,"classes",[H.region]),S=l.main.select("."+H.regions).selectAll(C.map(function(E){return"."+E})),(m?S.transition().duration(m):S).style("opacity",0).remove(),f.regions=f.regions.filter(function(E){var L=!1;return!E.class||(E.class.split(" ").forEach(function(U){C.indexOf(U)>=0&&(L=!0)}),!L)}),f.regions},Ae.prototype.selected=function(a){var l=this.internal,f=l.d3;return l.main.selectAll("."+H.shapes+l.getTargetSelectorSuffix(a)).selectAll("."+H.shape).filter(function(){return f.select(this).classed(H.SELECTED)}).nodes().map(function(m){var C=m.__data__;return C.data?C.data:C})},Ae.prototype.select=function(a,l,f){var m=this.internal,C=m.d3,S=m.config;S.data_selection_enabled&&m.main.selectAll("."+H.shapes).selectAll("."+H.shape).each(function(E,L){var U=C.select(this),O=E.data?E.data.id:E.id,J=m.getToggle(this,E).bind(m),$=S.data_selection_grouped||!a||a.indexOf(O)>=0,ie=!l||l.indexOf(L)>=0,ne=U.classed(H.SELECTED);U.classed(H.line)||U.classed(H.area)||($&&ie?S.data_selection_isselectable(E)&&!ne&&J(!0,U.classed(H.SELECTED,!0),E,L):Kt(f)&&f&&ne&&J(!1,U.classed(H.SELECTED,!1),E,L))})},Ae.prototype.unselect=function(a,l){var f=this.internal,m=f.d3,C=f.config;C.data_selection_enabled&&f.main.selectAll("."+H.shapes).selectAll("."+H.shape).each(function(S,E){var L=m.select(this),U=S.data?S.data.id:S.id,O=f.getToggle(this,S).bind(f),J=C.data_selection_grouped||!a||a.indexOf(U)>=0,$=!l||l.indexOf(E)>=0,ie=L.classed(H.SELECTED);L.classed(H.line)||L.classed(H.area)||J&&$&&C.data_selection_isselectable(S)&&ie&&O(!1,L.classed(H.SELECTED,!1),S,E)})},Ae.prototype.show=function(a,l){var m,f=this.internal;a=f.mapToTargetIds(a),l=l||{},f.removeHiddenTargetIds(a),(m=f.svg.selectAll(f.selectorTargets(a))).transition().style("display",Xn()?"block":"initial","important").style("opacity",1,"important").call(f.endall,function(){m.style("opacity",null).style("opacity",1)}),l.withLegend&&f.showLegend(a),f.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},Ae.prototype.hide=function(a,l){var m,f=this.internal;a=f.mapToTargetIds(a),l=l||{},f.addHiddenTargetIds(a),(m=f.svg.selectAll(f.selectorTargets(a))).transition().style("opacity",0,"important").call(f.endall,function(){m.style("opacity",null).style("opacity",0),m.style("display","none")}),l.withLegend&&f.hideLegend(a),f.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},Ae.prototype.toggle=function(a,l){var f=this,m=this.internal;
1m.mapToTargetIds(a).forEach(function(C){m.isTargetToShow(C)?f.hide(C,l):f.show(C,l)})},(Ae.prototype.subchart=function(){}).isShown=function(){return this.internal.config.subchart_show},Ae.prototype.subchart.show=function(){var a=this.internal;a.config.subchart_show||(a.config.subchart_show=!0,a.initSubchart(),a.updateDimension(),a.initSubchartBrush(),a.updateTargetsForSubchart(a.getTargets()),a.mapToIds(a.data.targets).forEach(function(l){a.withoutFadeIn[l]=!1}),a.updateAndRedraw(),a.showTargets())},Ae.prototype.subchart.hide=function(){var a=this.internal;a.config.subchart_show&&(a.config.subchart_show=!1,a.removeSubchart(),a.redraw())},(Ae.prototype.tooltip=function(){}).show=function(a){var f,m,l=this.internal,C={};a.mouse?C=a.mouse:(a.data?m=a.data:typeof a.x<"u"&&(f=a.id?l.data.targets.filter(function(S){return S.id===a.id}):l.data.targets,m=l.filterByX(f,a.x).slice(0,1)[0]),C=m?l.getMousePosition(m):null),l.dispatchEvent("mousemove",C),l.config.tooltip_onshow.call(l,m)},Ae.prototype.tooltip.hide=function(){this.internal.dispatchEvent("mouseout",0),this.internal.config.tooltip_onhide.call(this)},Ae.prototype.transform=function(a,l){var f=this.internal,m=["pie","donut"].indexOf(a)>=0?{withTransform:!0}:null;f.transformTo(l,a,m)},D.prototype.transformTo=function(a,l,f){var m=this,C=!m.hasArcType(),S=f||{withTransitionForAxis:C};S.withTransitionForTransform=!1,m.transiting=!1,m.setTargetType(a,l),m.updateTargets(m.data.targets),m.updateAndRedraw(S)},Ae.prototype.x=function(a){var l=this.internal;return arguments.length&&(l.updateTargetX(l.data.targets,a),l.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),l.data.xs},Ae.prototype.xs=function(a){var l=this.internal;return arguments.length&&(l.updateTargetXs(l.data.targets,a),l.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),l.data.xs},(Ae.prototype.zoom=function(a){var l=this.internal;return a?(l.isTimeSeries()&&(a=a.map(function(f){return l.parseDate(f)})),l.config.subchart_show?l.brush.selectionAsValue(a,!0):(l.updateXDomain(null,!0,!1,!1,a),l.redraw({withY:l.config.zoom_rescale,withSubchart:!1})),l.config.zoom_onzoom.call(this,l.x.orgDomain()),a):l.x.domain()}).enable=function(a){var l=this.internal;l.config.zoom_enabled=a,l.updateAndRedraw()},Ae.prototype.unzoom=function(){var a=this.internal;a.config.subchart_show?a.brush.clear():(a.updateXDomain(null,!0,!1,!1,a.subX.domain()),a.redraw({withY:a.config.zoom_rescale,withSubchart:!1}))},Ae.prototype.zoom.max=function(a){var l=this.internal,f=l.config;if(0!==a&&!a)return f.zoom_x_max;f.zoom_x_max=l.d3.max([l.orgXDomain[1],a])},Ae.prototype.zoom.min=function(a){var l=this.internal,f=l.config;if(0!==a&&!a)return f.zoom_x_min;f.zoom_x_min=l.d3.min([l.orgXDomain[0],a])},Ae.prototype.zoom.range=function(a){if(!arguments.length)return{max:this.domain.max(),min:this.domain.min()};Kt(a.max)&&this.domain.max(a.max),Kt(a.min)&&this.domain.min(a.min)},D.prototype.initPie=function(){var a=this;a.pie=a.d3.pie().padAngle(this.getPadAngle.bind(this)).value(function(C){return C.values.reduce(function(S,E){return S+E.value},0)});var f=a.getOrderFunction();if(f&&(a.isOrderAsc()||a.isOrderDesc())){var m=f;f=function(C,S){return-1*m(C,S)}}a.pie.sort(f||null)},D.prototype.updateRadius=function(){var a=this,l=a.config,f=l.gauge_width||l.donut_width,m=a.filterTargetsToShow(a.data.targets).length*a.config.gauge_arcs_minWidth;a.radiusExpanded=Math.min(a.arcWidth,a.arcHeight)/2*(a.hasType("gauge")?.85:1),a.radius=.95*a.radiusExpanded,a.innerRadiusRatio=f?(a.radius-f)/a.radius:.6,a.innerRadius=a.hasType("donut")||a.hasType("gauge")?a.radius*a.innerRadiusRatio:0,a.gaugeArcWidth=f||(m<=a.radius-a.innerRadius?a.radius-a.innerRadius:m<=a.radius?m:a.radius)},D.prototype.getPadAngle=function(){return this.hasType("pie")?this.config.pie_padAngle||0:this.hasType("donut")&&this.config.donut_padAngle||0},D.prototype.updateArc=function(){var a=this;a.svgArc=a.getSvgArc(),a.svgArcExpanded=a.getSvgArcExpanded(),a.svgArcExpandedSub=a.getSvgArcExpanded(.98)},D.prototype.updateAngle=function(a){var S,E,L,U,l=this,f=l.config,m=!1,C=0;
1return f?(l.pie(l.filterTargetsToShow(l.data.targets)).forEach(function(O){!m&&O.data.id===a.data.id&&(m=!0,(a=O).index=C),C++}),isNaN(a.startAngle)&&(a.startAngle=0),isNaN(a.endAngle)&&(a.endAngle=a.startAngle),l.isGaugeType(a.data)&&(S=f.gauge_min,E=f.gauge_max,L=Math.PI*(f.gauge_fullCircle?2:1)/(E-S),U=a.value<S?0:a.value<E?a.value-S:E-S,a.startAngle=f.gauge_startingAngle,a.endAngle=a.startAngle+L*U),m?a:null):null},D.prototype.getSvgArc=function(){var a=this,l=a.hasType("gauge"),f=a.gaugeArcWidth/a.filterTargetsToShow(a.data.targets).length,m=a.d3.arc().outerRadius(function(S){return l?a.radius-f*S.index:a.radius}).innerRadius(function(S){return l?a.radius-f*(S.index+1):a.innerRadius}),C=function(S,E){var L;return E?m(S):(L=a.updateAngle(S))?m(L):"M 0 0"};return C.centroid=m.centroid,C},D.prototype.getSvgArcExpanded=function(a){a=a||1;var l=this,f=l.hasType("gauge"),m=l.gaugeArcWidth/l.filterTargetsToShow(l.data.targets).length,C=Math.min(l.radiusExpanded*a-l.radius,.8*m-100*(1-a)),S=l.d3.arc().outerRadius(function(E){return f?l.radius-m*E.index+C:l.radiusExpanded*a}).innerRadius(function(E){return f?l.radius-m*(E.index+1):l.innerRadius});return function(E){var L=l.updateAngle(E);return L?S(L):"M 0 0"}},D.prototype.getArc=function(a,l,f){return f||this.isArcType(a.data)?this.svgArc(a,l):"M 0 0"},D.prototype.transformForArcLabel=function(a){var C,S,E,L,U,l=this,f=l.config,m=l.updateAngle(a),O="",J=l.hasType("gauge");if(m&&!J)C=this.svgArc.centroid(m),S=isNaN(C[0])?0:C[0],E=isNaN(C[1])?0:C[1],L=Math.sqrt(S*S+E*E),O="translate("+S*(U=l.hasType("donut")&&f.donut_label_ratio?on(f.donut_label_ratio)?f.donut_label_ratio(a,l.radius,L):f.donut_label_ratio:l.hasType("pie")&&f.pie_label_ratio?on(f.pie_label_ratio)?f.pie_label_ratio(a,l.radius,L):f.pie_label_ratio:l.radius&&L?(36/l.radius>.375?1.175-36/l.radius:.8)*l.radius/L:0)+","+E*U+")";else if(m&&J&&l.filterTargetsToShow(l.data.targets).length>1){var $=Math.sin(m.endAngle-Math.PI/2);O="translate("+(S=Math.cos(m.endAngle-Math.PI/2)*(l.radiusExpanded+25))+","+(E=$*(l.radiusExpanded+15-Math.abs(10*$))+3)+")"}return O},D.prototype.getArcRatio=function(a){return this.getRatio("arc",a)},D.prototype.convertToArcData=function(a){return this.addName({id:a.data.id,value:a.value,ratio:this.getRatio("arc",a),index:a.index})},D.prototype.textForArcLabel=function(a){var f,m,C,S,E,l=this;return l.shouldShowArcLabel()&&(m=(f=l.updateAngle(a))?f.value:null,C=l.getRatio("arc",f),S=a.data.id,l.hasType("gauge")||l.meetsArcLabelThreshold(C))?(E=l.getArcLabelFormat())?E(m,C,S):l.defaultArcValueFormat(m,C):""},D.prototype.textForGaugeMinMax=function(a,l){var m=this.getGaugeLabelExtents();return m?m(a,l):a},D.prototype.expandArc=function(a){var f,l=this;l.transiting?f=window.setInterval(function(){l.transiting||(window.clearInterval(f),l.legend.selectAll(".c3-legend-item-focused").size()>0&&l.expandArc(a))},10):(a=l.mapToTargetIds(a),l.svg.selectAll(l.selectorTargets(a,"."+H.chartArc)).each(function(m){l.shouldExpand(m.data.id)&&l.d3.select(this).selectAll("path").transition().duration(l.expandDuration(m.data.id)).attr("d",l.svgArcExpanded).transition().duration(2*l.expandDuration(m.data.id)).attr("d",l.svgArcExpandedSub).each(function(C){l.isDonutType(C.data)})}))},D.prototype.unexpandArc=function(a){var l=this;l.transiting||(a=l.mapToTargetIds(a),l.svg.selectAll(l.selectorTargets(a,"."+H.chartArc)).selectAll("path").transition().duration(function(f){return l.expandDuration(f.data.id)}).attr("d",l.svgArc),l.svg.selectAll("."+H.arc))},D.prototype.expandDuration=function(a){var l=this,f=l.config;return l.isDonutType(a)?f.donut_expand_duration:l.isGaugeType(a)?f.gauge_expand_duration:l.isPieType(a)?f.pie_expand_duration:50},D.prototype.shouldExpand=function(a){var l=this,f=l.config;return l.isDonutType(a)&&f.donut_expand||l.isGaugeType(a)&&f.gauge_expand||l.isPieType(a)&&f.pie_expand},D.prototype.shouldShowArcLabel=function(){var a=this,l=a.config,f=!0;return a.hasType("donut")?f=l.donut_label_show:a.hasType("pie")&&(f=l.pie_label_show),f},D.prototype.meetsArcLabelThreshold=function(a){var f=this.config;return a>=(this.hasType("donut")?f.donut_label_threshold:f.pie_label_threshold)},D.prototype.getArcLabelFormat=function(){var a=this,l=a.config,f=l.pie_label_format;return a.hasType("gauge")?f=l.gauge_label_format:a.hasType("donut")&&(f=l.donut_label_format),f},D.prototype.getGaugeLabelExtents=function(){return this.config.gauge_label_extents},D.prototype.getArcTitle=function(){return this.hasType("donut")?this.config.donut_title:""},D.prototype.updateTargetsForArc=function(a){var C,l=this,f=l.main,S=l.classChartArc.bind(l),E=l.classArcs.bind(l),L=l.classFocus.bind(l);(C=f.select("."+H.chartArcs).selectAll("."+H.chartArc).data(l.pie(a)).attr("class",function(U){return S(U)+L(U.data)}).enter().append("g").attr("class",S)).append("g").attr("class",E),C.append("text").attr("dy",l.hasType("gauge")?"-.1em":".35em").style("opacity",0).style("text-anchor","middle").style("pointer-events","none")},D.prototype.initArc=function(){var a=this;a.arcs=a.main.select("."+H.chart).append("g").attr("class",H.chartArcs).attr("transform",a.getTranslate("arc")),a.arcs.append("text").attr("class",H.chartArcsTitle).style("text-anchor","middle").text(a.getArcTitle())},D.prototype.redrawArc=function(a,l,f){var L,U,O,J,m=this,C=m.d3,S=m.config,E=m.main,$=m.hasType("gauge");
vendor: 27,827 bytes, line 1
1if(U=(L=E.selectAll("."+H.arcs).selectAll("."+H.arc).data(m.arcData.bind(m))).enter().append("path").attr("class",m.classArc.bind(m)).style("fill",function(ae){return m.color(ae.data)}).style("cursor",function(ae){return S.interaction_enabled&&S.data_selection_isselectable(ae)?"pointer":null}).each(function(ae){m.isGaugeType(ae.data)&&(ae.startAngle=ae.endAngle=S.gauge_startingAngle),this._current=ae}).merge(L),$&&(J=(O=E.selectAll("."+H.arcs).selectAll("."+H.arcLabelLine).data(m.arcData.bind(m))).enter().append("rect").attr("class",function(ae){return H.arcLabelLine+" "+H.target+" "+H.target+"-"+ae.data.id}).merge(O),1===m.filterTargetsToShow(m.data.targets).length?J.style("display","none"):J.style("fill",function(ae){return m.levelColor?m.levelColor(ae.data.values.reduce(function(fe,pe){return fe+pe.value},0)):m.color(ae.data)}).style("display",S.gauge_labelLine_show?"":"none").each(function(ae){var fe=0,we=0,be=0,Ze="";if(m.hiddenTargetIds.indexOf(ae.data.id)<0){var mt=m.updateAngle(ae),lt=m.gaugeArcWidth/m.filterTargetsToShow(m.data.targets).length*(mt.index+1),dt=mt.endAngle-Math.PI/2,pt=m.radius-lt,Be=dt-(0===pt?0:1/pt);fe=m.radiusExpanded-m.radius+lt,we=Math.cos(Be)*pt,be=Math.sin(Be)*pt,Ze="rotate("+180*dt/Math.PI+", "+we+", "+be+")"}C.select(this).attr("x",we).attr("y",be).attr("width",fe).attr("height",2).attr("transform",Ze).style("stroke-dasharray","0, "+(fe+2)+", 0")})),U.attr("transform",function(ae){return!m.isGaugeType(ae.data)&&f?"scale(0)":""}).on("mouseover",S.interaction_enabled?function(ae){var fe,pe;m.transiting||(fe=m.updateAngle(ae))&&(pe=m.convertToArcData(fe),m.expandArc(fe.data.id),m.api.focus(fe.data.id),m.toggleFocusLegend(fe.data.id,!0),m.config.data_onmouseover(pe,this))}:null).on("mousemove",S.interaction_enabled?function(ae){var pe,fe=m.updateAngle(ae);fe&&(pe=m.convertToArcData(fe),m.showTooltip([pe],this))}:null).on("mouseout",S.interaction_enabled?function(ae){var fe,pe;m.transiting||(fe=m.updateAngle(ae))&&(pe=m.convertToArcData(fe),m.unexpandArc(fe.data.id),m.api.revert(),m.revertLegend(),m.hideTooltip(),m.config.data_onmouseout(pe,this))}:null).on("click",S.interaction_enabled?function(ae,fe){var we,pe=m.updateAngle(ae);pe&&(we=m.convertToArcData(pe),m.toggleShape&&m.toggleShape(this,we,fe),m.config.data_onclick.call(m.api,we,this))}:null).each(function(){m.transiting=!0}).transition().duration(a).attrTween("d",function(ae){var pe,fe=m.updateAngle(ae);return fe?(isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle),pe=C.interpolate(this._current,fe),this._current=pe(0),function(we){if(null===m.config)return"M 0 0";var be=pe(we);return be.data=ae.data,m.getArc(be,!0)}):function(){return"M 0 0"}}).attr("transform",f?"scale(1)":"").style("fill",function(ae){return m.levelColor?m.levelColor(ae.data.values.reduce(function(fe,pe){return fe+pe.value},0)):m.color(ae.data.id)}).call(m.endall,function(){m.transiting=!1}),L.exit().transition().duration(l).style("opacity",0).remove(),E.selectAll("."+H.chartArc).select("text").style("opacity",0).attr("class",function(ae){return m.isGaugeType(ae.data)?H.gaugeValue:""}).text(m.textForArcLabel.bind(m)).attr("transform",m.transformForArcLabel.bind(m)).style("font-size",function(ae){return m.isGaugeType(ae.data)&&1===m.filterTargetsToShow(m.data.targets).length?Math.round(m.radius/5)+"px":""}).transition().duration(a).style("opacity",function(ae){return m.isTargetToShow(ae.data.id)&&m.isArcType(ae.data)?1:0}),E.select("."+H.chartArcsTitle).style("opacity",m.hasType("donut")||$?1:0),$){var ie=0,ne=m.arcs.select("g."+H.chartArcsBackground).selectAll("path."+H.chartArcsBackground).data(m.data.targets);ne.enter().append("path").attr("class",function(ae,fe){return H.chartArcsBackground+" "+H.chartArcsBackground+"-"+fe}).merge(ne).attr("d",function(ae){if(m.hiddenTargetIds.indexOf(ae.id)>=0)return"M 0 0";var fe={data:[{value:S.gauge_max}],startAngle:S.gauge_startingAngle,endAngle:-1*S.gauge_startingAngle*(S.gauge_fullCircle?Math.PI:1),index:ie++};return m.getArc(fe,!0,!0)}),ne.exit().remove(),m.arcs.select("."+H.chartArcsGaugeUnit).attr("dy",".75em").text(S.gauge_label_show?S.gauge_units:""),m.arcs.select("."+H.chartArcsGaugeMin).attr("dx",-1*(m.innerRadius+(m.radius-m.innerRadius)/(S.gauge_fullCircle?1:2))+"px").attr("dy","1.2em").text(S.gauge_label_show?m.textForGaugeMinMax(S.gauge_min,!1):""),m.arcs.select("."+H.chartArcsGaugeMax).attr("dx",m.innerRadius+(m.radius-m.innerRadius)/(S.gauge_fullCircle?1:2)+"px").attr("dy","1.2em").text(S.gauge_label_show?m.textForGaugeMinMax(S.gauge_max,!0):"")}},D.prototype.initGauge=function(){var a=this.arcs;this.hasType("gauge")&&(a.append("g").attr("class",H.chartArcsBackground),a.append("text").attr("class",H.chartArcsGaugeUnit).style("text-anchor","middle").style("pointer-events","none"),a.append("text").attr("class",H.chartArcsGaugeMin).style("text-anchor","middle").style("pointer-events","none"),a.append("text").attr("class",H.chartArcsGaugeMax).style("text-anchor","middle").style("pointer-events","none"))},D.prototype.getGaugeLabelHeight=function(){return this.config.gauge_label_show?20:0},D.prototype.addToCache=function(a,l){this.cache["$"+a]=l},D.prototype.getFromCache=function(a){return this.cache["$"+a]},D.prototype.resetCache=function(){var a=this;Object.keys(this.cache).filter(function(l){return/^\$/.test(l)}).forEach(function(l){delete a.cache[l]})},D.prototype.hasCaches=function(a){for(var l=0;l<a.length;l++)if(!(a[l]in this.cache))return!1;return!0},D.prototype.addCache=function(a,l){this.cache[a]=this.cloneTarget(l)},D.prototype.getCaches=function(a){var f,l=[];for(f=0;f<a.length;f++)a[f]in this.cache&&l.push(this.cloneTarget(this.cache[a[f]]));return l},D.prototype.categoryName=function(a){var l=this.config;return a<l.axis_x_categories.length?l.axis_x_categories[a]:a},D.prototype.generateTargetClass=function(a){return a||0===a?("-"+a).replace(/\s/g,"-"):""},D.prototype.generateClass=function(a,l){return" "+a+" "+a+this.generateTargetClass(l)},D.prototype.classText=function(a){return this.generateClass(H.text,a.index)},D.prototype.classTexts=function(a){return this.generateClass(H.texts,a.id)},D.prototype.classShape=function(a){return this.generateClass(H.shape,a.index)},D.prototype.classShapes=function(a){return this.generateClass(H.shapes,a.id)},D.prototype.classLine=function(a){return this.classShape(a)+this.generateClass(H.line,a.id)},D.prototype.classLines=function(a){return this.classShapes(a)+this.generateClass(H.lines,a.id)},D.prototype.classCircle=function(a){return this.classShape(a)+this.generateClass(H.circle,a.index)},D.prototype.classCircles=function(a){return this.classShapes(a)+this.generateClass(H.circles,a.id)},D.prototype.classBar=function(a){return this.classShape(a)+this.generateClass(H.bar,a.index)},D.prototype.classBars=function(a){return this.classShapes(a)+this.generateClass(H.bars,a.id)},D.prototype.classArc=function(a){return this.classShape(a.data)+this.generateClass(H.arc,a.data.id)},D.prototype.classArcs=function(a){return this.classShapes(a.data)+this.generateClass(H.arcs,a.data.id)},D.prototype.classArea=function(a){return this.classShape(a)+this.generateClass(H.area,a.id)},D.prototype.classAreas=function(a){return this.classShapes(a)+this.generateClass(H.areas,a.id)},D.prototype.classRegion=function(a,l){return this.generateClass(H.region,l)+" "+("class"in a?a.class:"")},D.prototype.classEvent=function(a){return this.generateClass(H.eventRect,a.index)},D.prototype.classTarget=function(a){var f=this.config.data_classes[a],m="";return f&&(m=" "+H.target+"-"+f),this.generateClass(H.target,a)+m},D.prototype.classFocus=function(a){return this.classFocused(a)+this.classDefocused(a)},D.prototype.classFocused=function(a){return" "+(this.focusedTargetIds.indexOf(a.id)>=0?H.focused:"")},D.prototype.classDefocused=function(a){return" "+(this.defocusedTargetIds.indexOf(a.id)>=0?H.defocused:"")},D.prototype.classChartText=function(a){return H.chartText+this.classTarget(a.id)},D.prototype.classChartLine=function(a){return H.chartLine+this.classTarget(a.id)},D.prototype.classChartBar=function(a){return H.chartBar+this.classTarget(a.id)},D.prototype.classChartArc=function(a){return H.chartArc+this.classTarget(a.data.id)},D.prototype.getTargetSelectorSuffix=function(a){var l=this.generateTargetClass(a);return window.CSS&&window.CSS.escape?window.CSS.escape(l):l.replace(/([?!@#$%^&*()=+,.<>'":;\[\]\/|~`{}\\])/g,"\\$1")},D.prototype.selectorTarget=function(a,l){return(l||"")+"."+H.target+this.getTargetSelectorSuffix(a)},D.prototype.selectorTargets=function(a,l){var f=this;return(a=a||[]).length?a.map(function(m){return f.selectorTarget(m,l)}):null},D.prototype.selectorLegend=function(a){return"."+H.legendItem+this.getTargetSelectorSuffix(a)},D.prototype.selectorLegends=function(a){var l=this;return a&&a.length?a.map(function(f){return l.selectorLegend(f)}):null},D.prototype.getClipPath=function(a){return"url("+(Xn(9)?"":document.URL.split("#")[0])+"#"+a+")"},D.prototype.appendClip=function(a,l){return a.append("clipPath").attr("id",l).append("rect")},D.prototype.getAxisClipX=function(a){var l=Math.max(30,this.margin.left);return a?-(1+l):-(l-1)},D.prototype.getAxisClipY=function(a){return a?-20:-this.margin.top},D.prototype.getXAxisClipX=function(){return this.getAxisClipX(!this.config.axis_rotated)},D.prototype.getXAxisClipY=function(){return this.getAxisClipY(!this.config.axis_rotated)},D.prototype.getYAxisClipX=function(){var a=this;return a.config.axis_y_inner?-1:a.getAxisClipX(a.config.axis_rotated)},D.prototype.getYAxisClipY=function(){return this.getAxisClipY(this.config.axis_rotated)},D.prototype.getAxisClipWidth=function(a){var l=this,f=Math.max(30,l.margin.left),m=Math.max(30,l.margin.right);return a?l.width+2+f+m:l.margin.left+20},D.prototype.getAxisClipHeight=function(a){return(a?this.margin.bottom:this.margin.top+this.height)+20},D.prototype.getXAxisClipWidth=function(){return this.getAxisClipWidth(!this.config.axis_rotated)},D.prototype.getXAxisClipHeight=function(){return this.getAxisClipHeight(!this.config.axis_rotated)},D.prototype.getYAxisClipWidth=function(){var a=this;return a.getAxisClipWidth(a.config.axis_rotated)+(a.config.axis_y_inner?20:0)},D.prototype.getYAxisClipHeight=function(){return this.getAxisClipHeight(this.config.axis_rotated)},D.prototype.generateColor=function(){var l=this.config,f=this.d3,m=l.data_colors,C=hn(l.color_pattern)?l.color_pattern:f.schemeCategory10,S=l.data_color,E=[];return function(L){var O,U=L.id||L.data&&L.data.id||L;return m[U]instanceof Function?O=m[U](L):m[U]?O=m[U]:(E.indexOf(U)<0&&E.push(U),O=C[E.indexOf(U)%C.length],m[U]=O),S instanceof Function?S(O,L):O}},D.prototype.generateLevelColor=function(){var l=this.config,f=l.color_pattern,m=l.color_threshold,C="value"===m.unit,S=m.values&&m.values.length?m.values:[],E=m.max||100;return hn(m)&&hn(f)?function(L){var U,J=f[f.length-1];for(U=0;U<S.length;U++)if((C?L:100*L/E)<S[U]){J=f[U];break}return J}:null},D.prototype.getDefaultConfig=function(){var a={bindto:"#chart",svg_classname:void 0,size_width:void 0,size_height:void 0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,resize_auto:!0,zoom_enabled:!1,zoom_initialRange:void 0,zoom_type:"scroll",zoom_disableDefaultBehavior:!1,zoom_privileged:!1,zoom_rescale:!1,zoom_onzoom:function(){},zoom_onzoomstart:function(){},zoom_onzoomend:function(){},zoom_x_min:void 0,zoom_x_max:void 0,interaction_brighten:!0,interaction_enabled:!0,onmouseover:function(){},onmouseout:function(){},onresize:function(){},onresized:function(){},oninit:function(){},onrendered:function(){},transition_duration:350,data_epochs:"epochs",data_x:void 0,data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_idConverter:function(l){return l},data_names:{},data_classes:{},data_groups:[],data_axes:{},data_type:void 0,data_types:{},data_labels:{},data_order:"desc",data_regions:{},data_color:void 0,data_colors:{},data_hide:!1,data_filter:void 0,data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:function(){return!0},data_selection_multiple:!0,data_selection_draggable:!1,data_stack_normalize:!1,data_onclick:function(){},data_onmouseover:function(){},data_onmouseout:function(){},data_onselected:function(){},data_onunselected:function(){},data_url:void 0,data_headers:void 0,data_json:void 0,data_rows:void 0,data_columns:void 0,data_mimeType:void 0,data_keys:void 0,data_empty_label_text:"",subchart_show:!1,subchart_size_height:60,subchart_axis_x_show:!0,subchart_onbrush:function(){},color_pattern:[],color_threshold:{},legend_show:!0,legend_hide:!1,legend_position:"bottom",legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_onclick:void 0,legend_item_onmouseover:void 0,legend_item_onmouseout:void 0,legend_equally:!1,legend_padding:0,legend_item_tile_width:10,legend_item_tile_height:10,axis_rotated:!1,axis_x_show:!0,axis_x_type:"indexed",axis_x_localtime:!0,axis_x_categories:[],axis_x_tick_centered:!1,axis_x_tick_format:void 0,axis_x_tick_culling:{},axis_x_tick_culling_max:10,axis_x_tick_count:void 0,axis_x_tick_fit:!0,axis_x_tick_values:null,axis_x_tick_rotate:0,axis_x_tick_outer:!0,axis_x_tick_multiline:!0,axis_x_tick_multilineMax:0,axis_x_tick_width:null,axis_x_max:void 0,axis_x_min:void 0,axis_x_padding:{},axis_x_height:void 0,axis_x_selection:void 0,axis_x_label:{},axis_x_inner:void 0,axis_y_show:!0,axis_y_type:"linear",axis_y_max:void 0,axis_y_min:void 0,axis_y_inverted:!1,axis_y_center:void 0,axis_y_inner:void 0,axis_y_label:{},axis_y_tick_format:void 0,axis_y_tick_outer:!0,axis_y_tick_values:null,axis_y_tick_rotate:0,axis_y_tick_count:void 0,axis_y_tick_time_type:void 0,axis_y_tick_time_interval:void 0,axis_y_padding:{},axis_y_default:void 0,axis_y2_show:!1,axis_y2_type:"linear",axis_y2_max:void 0,axis_y2_min:void 0,axis_y2_inverted:!1,axis_y2_center:void 0,axis_y2_inner:void 0,axis_y2_label:{},axis_y2_tick_format:void 0,axis_y2_tick_outer:!0,axis_y2_tick_values:null,axis_y2_tick_count:void 0,axis_y2_padding:{},axis_y2_default:void 0,grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:10,grid_focus_show:!0,grid_lines_front:!0,point_show:!0,point_r:2.5,point_sensitivity:10,point_focus_expand_enabled:!0,point_focus_expand_r:void 0,point_select_r:void 0,line_connectNull:!1,line_step_type:"step",bar_width:void 0,bar_width_ratio:.6,bar_width_max:void 0,bar_zerobased:!0,bar_space:0,area_zerobased:!0,area_above:!1,pie_label_show:!0,pie_label_format:void 0,pie_label_threshold:.05,pie_label_ratio:void 0,pie_expand:{},pie_expand_duration:50,pie_padAngle:0,gauge_fullCircle:!1,gauge_label_show:!0,gauge_labelLine_show:!0,gauge_label_format:void 0,gauge_min:0,gauge_max:100,gauge_startingAngle:-1*Math.PI/2,gauge_label_extents:void 0,gauge_units:void 0,gauge_width:void 0,gauge_arcs_minWidth:5,gauge_expand:{},gauge_expand_duration:50,donut_label_show:!0,donut_label_format:void 0,donut_label_threshold:.05,donut_label_ratio:void 0,donut_width:void 0,donut_title:"",donut_expand:{},donut_expand_duration:50,donut_padAngle:0,spline_interpolation_type:"cardinal",stanford_lines:[],stanford_regions:[],stanford_texts:[],stanford_scaleMin:void 0,stanford_scaleMax:void 0,stanford_scaleWidth:void 0,stanford_scaleFormat:void 0,stanford_scaleValues:void 0,stanford_colors:void 0,stanford_padding:{top:0,right:0,bottom:0,left:0},regions:[],tooltip_show:!0,tooltip_grouped:!0,tooltip_order:void 0,tooltip_format_title:void 0,tooltip_format_name:void 0,tooltip_format_value:void 0,tooltip_horizontal:void 0,tooltip_position:void 0,tooltip_contents:function(l,f,m,C){return this.getTooltipContent?this.getTooltipContent(l,f,m,C):""},tooltip_init_show:!1,tooltip_init_x:0,tooltip_init_position:{top:"0px",left:"50px"},tooltip_onshow:function(){},tooltip_onhide:function(){},title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"top-center"};return Object.keys(this.additionalConfig).forEach(function(l){a[l]=this.additionalConfig[l]},this),a},D.prototype.additionalConfig={},D.prototype.loadConfig=function(a){var f,m,C,l=this.config;function S(){var E=m.shift();return E&&f&&"object"==typeof f&&E in f?(f=f[E],S()):E?void 0:f}Object.keys(l).forEach(function(E){f=a,m=E.split("_"),C=S(),Kt(C)&&(l[E]=C)})},D.prototype.convertUrlToData=function(a,l,f,m,C){var L,U,S=this,E=l||"csv";"json"===E?(L=S.d3.json,U=S.convertJsonToData):"tsv"===E?(L=S.d3.tsv,U=S.convertXsvToData):(L=S.d3.csv,U=S.convertXsvToData),L(a,f).then(function(O){C.call(S,U.call(S,O,m))}).catch(function(O){throw O})},D.prototype.convertXsvToData=function(a){var l=a.columns;return 0===a.length?{keys:l,rows:[l.reduce(function(m,C){var S;return Object.assign(m,((S={})[C]=null,S))},{})]}:{keys:l,rows:[].concat(a)}},D.prototype.convertJsonToData=function(a,l){var C,S,f=this,m=[];return l?(l.x?(C=l.value.concat(l.x),f.config.data_x=l.x):C=l.value,m.push(C),a.forEach(function(E){var L=[];C.forEach(function(U){var O=f.findValueInJson(E,U);Pn(O)&&(O=null),L.push(O)}),m.push(L)}),S=f.convertRowsToData(m)):(Object.keys(a).forEach(function(E){m.push([E].concat(a[E]))}),S=f.convertColumnsToData(m)),S},D.prototype.findValueInJson=function(a,l){if(l in a)return a[l];for(var f=(l=(l=l.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),m=0;m<f.length;++m){var C=f[m];if(!(C in a))return;a=a[C]}return a},D.prototype.convertRowsToData=function(a){for(var l=[],f=a[0],m=1;m<a.length;m++){for(var C={},S=0;S<a[m].length;S++){if(Pn(a[m][S]))throw new Error("Source data is missing a component at ("+m+","+S+")!");C[f[S]]=a[m][S]}l.push(C)}return{keys:f,rows:l}},D.prototype.convertColumnsToData=function(a){for(var l=[],f=[],m=0;m<a.length;m++){for(var C=a[m][0],S=1;S<a[m].length;S++){if(Pn(l[S-1])&&(l[S-1]={}),Pn(a[m][S]))throw new Error("Source data is missing a component at ("+m+","+S+")!");l[S-1][C]=a[m][S]}f.push(C)}return{keys:f,rows:l}},D.prototype.convertDataToTargets=function(a,l){var C,S,E,L,U,f=this,m=f.config;if(xa(a)?L=Object.keys(a[0]):(L=a.keys,a=a.rows),E=L.filter(f.isX,f),f.isStanfordGraphType()){if(U=L.filter(f.isEpochs,f),S=L.filter(f.isNotXAndNotEpochs,f),1!==E.length||1!==U.length||1!==S.length)throw new Error("You must define the 'x' key name and the 'epochs' for Stanford Diagrams")}else S=L.filter(f.isNotX,f);return S.forEach(function(O){var J=f.getXKey(O);f.isCustomX()||f.isTimeSeries()?E.indexOf(J)>=0?f.data.xs[O]=(l&&f.data.xs[O]?f.data.xs[O]:[]).concat(a.map(function($){return $[J]}).filter(rt).map(function($,ie){return f.generateTargetX($,O,ie)})):m.data_x?f.data.xs[O]=f.getOtherTargetXs():hn(m.data_xs)&&(f.data.xs[O]=f.getXValuesOfXKey(J,f.data.targets)):f.data.xs[O]=a.map(function($,ie){return ie})}),S.forEach(function(O){if(!f.data.xs[O])throw new Error('x is not defined for id = "'+O+'".')}),(C=S.map(function(O,J){var $=m.data_idConverter(O);return{id:$,id_org:O,values:a.map(function(ie,ne){var we,be,fe=ie[f.getXKey(O)],pe=null===ie[O]||isNaN(ie[O])?null:+ie[O];return f.isCustomX()&&f.isCategorized()&&!Pn(fe)?(0===J&&0===ne&&(m.axis_x_categories=[]),-1===(we=m.axis_x_categories.indexOf(fe))&&(we=m.axis_x_categories.length,m.axis_x_categories.push(fe))):we=f.generateTargetX(fe,O,ne),(Pn(ie[O])||f.data.xs[O].length<=ne)&&(we=void 0),be={x:we,value:pe,id:$},f.isStanfordGraphType()&&(be.epochs=ie[U]),be}).filter(function(ie){return Kt(ie.x)})}})).forEach(function(O){var J;m.data_xSort&&(O.values=O.values.sort(function($,ie){return($.x||0===$.x?$.x:1/0)-(ie.x||0===ie.x?ie.x:1/0)})),J=0,O.values.forEach(function($){$.index=J++}),f.data.xs[O.id].sort(function($,ie){return $-ie})}),f.hasNegativeValue=f.hasNegativeValueInTargets(C),f.hasPositiveValue=f.hasPositiveValueInTargets(C),m.data_type&&f.setTargetType(f.mapToIds(C).filter(function(O){return!(O in m.data_types)}),m.data_type),C.forEach(function(O){f.addCache(O.id_org,O)}),C},D.prototype.isEpochs=function(a){var f=this.config;return f.data_epochs&&a===f.data_epochs},D.prototype.isX=function(a){var f=this.config;return f.data_x&&a===f.data_x||hn(f.data_xs)&&function(a,l){var f=!1;return Object.keys(a).forEach(function(m){a[m]===l&&(f=!0)}),f}(f.data_xs,a)},D.prototype.isNotX=function(a){return!this.isX(a)},D.prototype.isNotXAndNotEpochs=function(a){return!this.isX(a)&&!this.isEpochs(a)},D.prototype.isStackNormalized=function(){return this.config.data_stack_normalize&&this.config.data_groups.length>0},D.prototype.isAxisNormalized=function(a){var l=this;return!!l.isStackNormalized()&&l.data.targets.filter(function(f){return l.axis.getId(f.id)===a}).some(function(f){return l.isTargetNormalized(f.id)})},D.prototype.isTargetNormalized=function(a){return this.isStackNormalized()&&this.config.data_groups.some(function(f){return f.includes(a)})},D.prototype.getXKey=function(a){var f=this.config;return f.data_x?f.data_x:hn(f.data_xs)?f.data_xs[a]:null},D.prototype.getTotalPerIndex=function(a){var l=this;if(!l.isStackNormalized())return null;var f=l.getFromCache("getTotalPerIndex");if(void 0!==f)return f[a];var m={y:[],y2:[]};return l.data.targets.filter(function(C){return l.isTargetNormalized(C.id)}).filter(function(C){return l.isTargetToShow(C.id)}).forEach(function(C){var S=m[l.axis.getId(C.id)];C.values.forEach(function(E,L){S[L]||(S[L]=0),S[L]+=zs(E.value)?E.value:0})}),l.addToCache("getTotalPerIndex",m),m[a]},D.prototype.getTotalDataSum=function(){var a=this,l=a.getFromCache("getTotalDataSum");if(void 0!==l)return l;var f=function(a){return Array.isArray(a)?[].concat.apply([],a):[]}(a.data.targets.filter(function(m){return a.isTargetToShow(m.id)}).map(function(m){return m.values})).map(function(m){return m.value}).reduce(function(m,C){return m+C},0);return a.addToCache("getTotalDataSum",f),f},D.prototype.getXValuesOfXKey=function(a,l){var m,f=this;return(l&&hn(l)?f.mapToIds(l):[]).forEach(function(S){f.getXKey(S)===a&&(m=f.data.xs[S])}),m},D.prototype.getXValue=function(a,l){var f=this;return a in f.data.xs&&f.data.xs[a]&&rt(f.data.xs[a][l])?f.data.xs[a][l]:l},D.prototype.getOtherTargetXs=function(){var l=Object.keys(this.data.xs);return l.length?this.data.xs[l[0]]:null},D.prototype.getOtherTargetX=function(a){var l=this.getOtherTargetXs();return l&&a<l.length?l[a]:null},D.prototype.addXs=function(a){var l=this;Object.keys(a).forEach(function(f){l.config.data_xs[f]=a[f]})},D.prototype.addName=function(a){var f;return a&&(a.name=void 0!==(f=this.config.data_names[a.id])?f:a.id),a},D.prototype.getValueOnIndex=function(a,l){var f=a.filter(function(m){return m.index===l});return f.length?f[0]:null},D.prototype.updateTargetX=function(a,l){var f=this;a.forEach(function(m){m.values.forEach(function(C,S){C.x=f.generateTargetX(l[S],m.id,S)}),f.data.xs[m.id]=l})},D.prototype.updateTargetXs=function(a,l){var f=this;a.forEach(function(m){l[m.id]&&f.updateTargetX([m],l[m.id])})},D.prototype.generateTargetX=function(a,l,f){var m=this;return m.isTimeSeries()?m.parseDate(a||m.getXValue(l,f)):m.isCustomX()&&!m.isCategorized()?rt(a)?+a:m.getXValue(l,f):f},D.prototype.cloneTarget=function(a){return{id:a.id,id_org:a.id_org,values:a.values.map(function(l){return{x:l.x,value:l.value,id:l.id}})}},D.prototype.getMaxDataCount=function(){return this.d3.max(this.data.targets,function(l){return l.values.length})},D.prototype.mapToIds=function(a){return a.map(function(l){return l.id})},D.prototype.mapToTargetIds=function(a){return a?[].concat(a):this.mapToIds(this.data.targets)},D.prototype.hasTarget=function(a,l){var m,f=this.mapToIds(a);for(m=0;m<f.length;m++)if(f[m]===l)return!0;return!1},D.prototype.isTargetToShow=function(a){return this.hiddenTargetIds.indexOf(a)<0},D.prototype.isLegendToShow=function(a){return this.hiddenLegendIds.indexOf(a)<0},D.prototype.getTargetsToShow=function(){return this.filterTargetsToShow(this.data.targets)},D.prototype.filterTargetsToShow=function(a){var l=this;return a.filter(function(f){return l.isTargetToShow(f.id)})},D.prototype.getTargets=function(){return this.data.targets},D.prototype.mapTargetsToUniqueXs=function(a){var l=this,f=l.d3.set(l.d3.merge(a.map(function(m){return m.values.map(function(C){return+C.x})}))).values();return(f=l.isTimeSeries()?f.map(function(m){return new Date(+m)}):f.map(function(m){return+m})).sort(function(m,C){return m<C?-1:m>C?1:m>=C?0:NaN})},D.prototype.addHiddenTargetIds=function(a){a=a instanceof Array?a:new Array(a);for(var l=0;l<a.length;l++)this.hiddenTargetIds.indexOf(a[l])<0&&(this.hiddenTargetIds=this.hiddenTargetIds.concat(a[l]));this.resetCache()},D.prototype.removeHiddenTargetIds=function(a){this.hiddenTargetIds=this.hiddenTargetIds.filter(function(l){return a.indexOf(l)<0}),this.resetCache()},D.prototype.addHiddenLegendIds=function(a){a=a instanceof Array?a:new Array(a);for(var l=0;l<a.length;l++)this.hiddenLegendIds.indexOf(a[l])<0&&(this.hiddenLegendIds=this.hiddenLegendIds.concat(a[l]))},D.prototype.removeHiddenLegendIds=function(a){this.hiddenLegendIds=this.hiddenLegendIds.filter(function(l){return a.indexOf(l)<0})},D.prototype.getValuesAsIdKeyed=function(a){var l={};return a.forEach(function(f){l[f.id]=[],f.values.forEach(function(m){l[f.id].push(m.value)})}),l},D.prototype.checkValueInTargets=function(a,l){var m,C,S,f=Object.keys(a);for(m=0;m<f.length;m++)for(S=a[f[m]].values,C=0;C<S.length;C++)if(l(S[C].value))return!0;return!1},D.prototype.hasNegativeValueInTargets=function(a){return this.checkValueInTargets(a,function(l){return l<0})},D.prototype.hasPositiveValueInTargets=function(a){return this.checkValueInTargets(a,function(l){return l>0})},D.prototype.isOrderDesc=function(){var a=this.config;return"string"==typeof a.data_order&&"desc"===a.data_order.toLowerCase()},D.prototype.isOrderAsc=function(){var a=this.config;return"string"==typeof a.data_order&&"asc"===a.data_order.toLowerCase()},D.prototype.getOrderFunction=function(){var a=this,l=a.config,f=a.isOrderAsc(),m=a.isOrderDesc();if(f||m){var C=function(E,L){return E+Math.abs(L.value)};return function(E,L){var U=E.values.reduce(C,0),O=L.values.reduce(C,0);return f?O-U:U-O}}if(on(l.data_order))return l.data_order;if(xa(l.data_order)){var S=l.data_order;return function(E,L){return S.indexOf(E.id)-S.indexOf(L.id)}}},D.prototype.orderTargets=function(a){var l=this.getOrderFunction();return l&&a.sort(l),a},D.prototype.filterByIndex=function(a,l){return this.d3.merge(a.map(function(f){return f.values.filter(function(m){return m.index===l})}))},D.prototype.filterByX=function(a,l){return this.d3.merge(a.map(function(f){return f.values})).filter(function(f){return f.x-l==0})},D.prototype.filterRemoveNull=function(a){return a.filter(function(l){return rt(l.value)})},D.prototype.filterByXDomain=function(a,l){return a.map(function(f){return{id:f.id,id_org:f.id_org,values:f.values.filter(function(m){return l[0]<=m.x&&m.x<=l[1]})}})},D.prototype.hasDataLabel=function(){var a=this.config;return!("boolean"!=typeof a.data_labels||!a.data_labels)||!("object"!=typeof a.data_labels||!hn(a.data_labels))},D.prototype.getDataLabelLength=function(a,l,f){var m=this,C=[0,0];return m.selectChart.select("svg").selectAll(".dummy").data([a,l]).enter().append("text").text(function(E){return m.dataLabelFormat(E.id)(E)}).each(function(E,L){C[L]=1.3*fi(this)[f]}).remove(),C},D.prototype.isNoneArc=function(a){return this.hasTarget(this.data.targets,a.id)},D.prototype.isArc=function(a){return"data"in a&&this.hasTarget(this.data.targets,a.data.id)},D.prototype.findClosestFromTargets=function(a,l){var f=this,m=a.map(function(C){return f.findClosest(C.values,l,f.config.tooltip_horizontal?f.horizontalDistance.bind(f):f.dist.bind(f),f.config.point_sensitivity)}).filter(function(C){return C});if(0!==m.length)return 1===m.length?m[0]:f.findClosest(m,l,f.dist.bind(f))},D.prototype.findClosestFromTargetsByX=function(a,l){var f,m;
1return a.forEach(function(C){C.values.forEach(function(S){var E=Math.abs(l-S.x);(void 0===m||E<m)&&(f=S,m=E)})}),f},D.prototype.findClosest=function(a,l,f,m){void 0===m&&(m=1/0);var S,C=this;return a.filter(function(E){return E&&C.isBarType(E.id)}).forEach(function(E){if(!S){var L=C.main.select("."+H.bars+C.getTargetSelectorSuffix(E.id)+" ."+H.bar+"-"+E.index).node();C.isWithinBar(l,L)&&(S=E)}}),a.filter(function(E){return E&&!C.isBarType(E.id)}).forEach(function(E){var L=f(E,l);L<m&&(m=L,S=E)}),S},D.prototype.dist=function(a,l){var f=this,m=f.config,C=m.axis_rotated?1:0,S=m.axis_rotated?0:1,E=f.circleY(a,a.index),L=f.x(a.x);return Math.sqrt(Math.pow(L-l[C],2)+Math.pow(E-l[S],2))},D.prototype.horizontalDistance=function(a,l){var C=this.config.axis_rotated?1:0,S=this.x(a.x);return Math.abs(S-l[C])},D.prototype.convertValuesToStep=function(a){var f,l=[].concat(a);if(!this.isCategorized())return a;for(f=a.length+1;0<f;f--)l[f]=l[f-1];return l[0]={x:l[0].x-1,value:l[0].value,id:l[0].id},l[a.length+1]={x:l[a.length].x+1,value:l[a.length].value,id:l[a.length].id},l},D.prototype.getRatio=function(a,l,f){void 0===f&&(f=!1);var m=this,C=m.api,S=0;if(l&&C.data.shown.call(C).length)if(S=l.ratio||l.value,"arc"===a)if(m.hasType("gauge"))S=(l.endAngle-l.startAngle)/(Math.PI*(m.config.gauge_fullCircle?2:1));else{var E=m.getTotalDataSum();S=l.value/E}else"index"===a&&(E=m.getTotalPerIndex(m.axis.getId(l.id)),l.ratio=zs(l.value)&&E&&E[l.index]>0?l.value/E[l.index]:0,S=l.ratio);return f&&S?100*S:S},D.prototype.updateDataAttributes=function(a,l){var C=this.config["data_"+a];return typeof l>"u"||(Object.keys(l).forEach(function(S){C[S]=l[S]}),this.redraw({withLegend:!0})),C},D.prototype.load=function(a,l){var f=this;a&&(l.filter&&(a=a.filter(l.filter)),(l.type||l.types)&&a.forEach(function(m){f.setTargetType(m.id,l.types&&l.types[m.id]?l.types[m.id]:l.type)}),f.data.targets.forEach(function(m){for(var C=0;C<a.length;C++)if(m.id===a[C].id){m.values=a[C].values,a.splice(C,1);break}}),f.data.targets=f.data.targets.concat(a)),f.updateTargets(f.data.targets),f.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),l.done&&l.done()},D.prototype.loadFromArgs=function(a){var l=this;l.resetCache(),a.data?l.load(l.convertDataToTargets(a.data),a):a.url?l.convertUrlToData(a.url,a.mimeType,a.headers,a.keys,function(f){l.load(l.convertDataToTargets(f),a)}):l.load(a.json?l.convertDataToTargets(l.convertJsonToData(a.json,a.keys)):a.rows?l.convertDataToTargets(l.convertRowsToData(a.rows)):a.columns?l.convertDataToTargets(l.convertColumnsToData(a.columns)):null,a)},D.prototype.unload=function(a,l){var f=this;f.resetCache(),l||(l=function(){}),(a=a.filter(function(m){return f.hasTarget(f.data.targets,m)}))&&0!==a.length?(f.svg.selectAll(a.map(function(m){return f.selectorTarget(m)})).transition().style("opacity",0).remove().call(f.endall,l),a.forEach(function(m){f.withoutFadeIn[m]=!1,f.legend&&f.legend.selectAll("."+H.legendItem+f.getTargetSelectorSuffix(m)).remove(),f.data.targets=f.data.targets.filter(function(C){return C.id!==m})})):l()},D.prototype.getYDomainMin=function(a){var S,E,L,U,O,J,l=this,f=l.config,m=l.mapToIds(a),C=l.getValuesAsIdKeyed(a);if(f.data_groups.length>0)for(J=l.hasNegativeValueInTargets(a),S=0;S<f.data_groups.length;S++)if(0!==(U=f.data_groups[S].filter(function($){return m.indexOf($)>=0})).length)for(L=U[0],J&&C[L]&&C[L].forEach(function($,ie){C[L][ie]=$<0?$:0}),E=1;E<U.length;E++)C[O=U[E]]&&C[O].forEach(function($,ie){l.axis.getId(O)===l.axis.getId(L)&&C[L]&&!(J&&+$>0)&&(C[L][ie]+=+$)});return l.d3.min(Object.keys(C).map(function($){return l.d3.min(C[$])}))},D.prototype.getYDomainMax=function(a){var S,E,L,U,O,J,l=this,f=l.config,m=l.mapToIds(a),C=l.getValuesAsIdKeyed(a);if(f.data_groups.length>0)for(J=l.hasPositiveValueInTargets(a),S=0;S<f.data_groups.length;S++)if(0!==(U=f.data_groups[S].filter(function($){return m.indexOf($)>=0})).length)for(L=U[0],J&&C[L]&&C[L].forEach(function($,ie){C[L][ie]=$>0?$:0}),E=1;E<U.length;E++)C[O=U[E]]&&C[O].forEach(function($,ie){l.axis.getId(O)===l.axis.getId(L)&&C[L]&&!(J&&+$<0)&&(C[L][ie]+=+$)});return l.d3.max(Object.keys(C).map(function($){return l.d3.max(C[$])}))},D.prototype.getYDomain=function(a,l,f){var m=this,C=m.config;if(m.isAxisNormalized(l))return[0,100];var $,ie,ne,ae,pe,we,be,Ze,mt,lt,S=a.filter(function(Ee){return m.axis.getId(Ee.id)===l}),E=f?m.filterByXDomain(S,f):S,L="y2"===l?C.axis_y2_min:C.axis_y_min,U="y2"===l?C.axis_y2_max:C.axis_y_max,O=m.getYDomainMin(E),J=m.getYDomainMax(E),fe="y2"===l?C.axis_y2_center:C.axis_y_center,dt=m.hasType("bar",E
1)&&C.bar_zerobased||m.hasType("area",E)&&C.area_zerobased,pt="y2"===l?C.axis_y2_inverted:C.axis_y_inverted,Be=m.hasDataLabel()&&C.axis_rotated,Ut=m.hasDataLabel()&&!C.axis_rotated;if(O=rt(L)?L:rt(U)?O<U?O:U-10:O,J=rt(U)?U:rt(L)?L<J?J:L+10:J,0===E.length)return"y2"===l?m.y2.domain():m.y.domain();if(isNaN(O)&&(O=0),isNaN(J)&&(J=O),O===J&&(O<0?J=0:O=0),mt=O>=0&&J>=0,lt=O<=0&&J<=0,(rt(L)&&mt||rt(U)&<)&&(dt=!1),dt&&(mt&&(O=0),lt&&(J=0)),ne=ae=.1*(ie=Math.abs(J-O)),typeof fe<"u"&&(J=fe+(pe=Math.max(Math.abs(O),Math.abs(J))),O=fe-pe),Be)we=m.getDataLabelLength(O,J,"width"),be=Et(m.y.range()),ne+=ie*((Ze=[we[0]/be,we[1]/be])[1]/(1-Ze[0]-Ze[1])),ae+=ie*(Ze[0]/(1-Ze[0]-Ze[1]));else if(Ut){we=m.getDataLabelLength(O,J,"height");var $e=m.getY(C["axis_"+l+"_type"],[0,C.axis_rotated?m.width:m.height],[0,ie]);ne+=$e(we[1]),ae+=$e(we[0])}return"y"===l&&hn(C.axis_y_padding)&&(ne=m.axis.getPadding(C.axis_y_padding,"top",ne,ie),ae=m.axis.getPadding(C.axis_y_padding,"bottom",ae,ie)),"y2"===l&&hn(C.axis_y2_padding)&&(ne=m.axis.getPadding(C.axis_y2_padding,"top",ne,ie),ae=m.axis.getPadding(C.axis_y2_padding,"bottom",ae,ie)),dt&&(mt&&(ae=O),lt&&(ne=-J)),$=[O-ae,J+ne],pt?$.reverse():$},D.prototype.getXDomainMin=function(a){var l=this,f=l.config;return Kt(f.axis_x_min)?l.isTimeSeries()?this.parseDate(f.axis_x_min):f.axis_x_min:l.d3.min(a,function(m){return l.d3.min(m.values,function(C){return C.x})})},D.prototype.getXDomainMax=function(a){var l=this,f=l.config;return Kt(f.axis_x_max)?l.isTimeSeries()?this.parseDate(f.axis_x_max):f.axis_x_max:l.d3.max(a,function(m){return l.d3.max(m.values,function(C){return C.x})})},D.prototype.getXDomainPadding=function(a){var C,S,E,L,l=this,f=l.config,m=a[1]-a[0];return S=l.isCategorized()?0:l.hasType("bar")?(C=l.getMaxDataCount())>1?m/(C-1)/2:.5:.01*m,"object"==typeof f.axis_x_padding&&hn(f.axis_x_padding)?(E=rt(f.axis_x_padding.left)?f.axis_x_padding.left:S,L=rt(f.axis_x_padding.right)?f.axis_x_padding.right:S):E=L="number"==typeof f.axis_x_padding?f.axis_x_padding:S,{left:E,right:L}},D.prototype.getXDomain=function(a){var l=this,f=[l.getXDomainMin(a),l.getXDomainMax(a)],m=f[0],C=f[1],S=l.getXDomainPadding(f),E=0,L=0;return m-C==0&&!l.isCategorized()&&(l.isTimeSeries()?(m=new Date(.5*m.getTime()),C=new Date(1.5*C.getTime())):(m=0===m?1:.5*m,C=0===C?-1:1.5*C)),(m||0===m)&&(E=l.isTimeSeries()?new Date(m.getTime()-S.left):m-S.left),(C||0===C)&&(L=l.isTimeSeries()?new Date(C.getTime()+S.right):C+S.right),[E,L]},D.prototype.updateXDomain=function(a,l,f,m,C){var S=this,E=S.config;return f&&(S.x.domain(C||S.d3.extent(S.getXDomain(a))),S.orgXDomain=S.x.domain(),E.zoom_enabled&&S.zoom.update(),S.subX.domain(S.x.domain()),S.brush&&S.brush.updateScale(S.subX)),l&&S.x.domain(C||(!S.brush||S.brush.empty()?S.orgXDomain:S.brush.selectionAsValue())),m&&S.x.domain(S.trimXDomain(S.x.orgDomain())),S.x.domain()},D.prototype.trimXDomain=function(a){var l=this.getZoomDomain(),f=l[0],m=l[1];return a[0]<=f&&(a[1]=f-a[0]+ +a[1],a[0]=f),m<=a[1]&&(a[0]=+a[0]-(a[1]-m),a[1]=m),a},D.prototype.drag=function(a){var S,E,L,U,O,J,$,ie,l=this,f=l.config,m=l.main,C=l.d3;l.hasArcType()||f.data_selection_enabled&&f.data_selection_multiple&&(S=l.dragStart[0],E=l.dragStart[1],L=a[0],U=a[1],O=Math.min(S,L),J=Math.max(S,L),$=f.data_selection_grouped?l.margin.top:Math.min(E,U),ie=f.data_selection_grouped?l.height:Math.max(E,U),m.select("."+H.dragarea).attr("x",O).attr("y",$).attr("width",J-O).attr("height",ie-$),m.selectAll("."+H.shapes).selectAll("."+H.shape).each(function(ne,ae){if(f.data_selection_isselectable(ne)){var be,Ze,dt,Be,fe=C.select(this),pe=fe.classed(H.SELECTED),we=fe.classed(H.INCLUDED),pt=!1;if(fe.classed(H.circle))be=1*fe.attr("cx"),Ze=1*fe.attr("cy"),dt=l.togglePoint,pt=O<be&&be<J&&$<Ze&&Ze<ie;else{if(!fe.classed(H.bar))return;Ze=(Be=Vs(this)).y,dt=l.togglePath,pt=!(J<(be=Be.x)||be+Be.width<O||ie<Ze||Ze+Be.height<$)}pt^we&&(fe.classed(H.INCLUDED,!we),fe.classed(H.SELECTED,!pe),dt.call(l,!pe,fe,ne,ae))}}))},D.prototype.dragstart=function(a){var l=this,f=l.config;l.hasArcType()||f.data_selection_enabled&&(l.dragStart=a,l.main.select("."+H.chart).append("rect").attr("class",H.dragarea).style("opacity",.1),l.dragging=!0)},D.prototype.dragend=function(){var a=this,l=a.config;a.hasArcType()||l.data_selection_enabled&&(a.main.select("."+H.dragarea).transition().duration(100).style("opacity",0).remove(),a.main.selectAll("."+H.shape).classed(H.INCLUDED,!1),a.dragging=!1)},D.prototype.getYFormat=function(a){var l=this,f=a&&!l.hasType("gauge")?l.defaultArcValueFormat:l.yFormat,m=a&&!l.hasType("gauge")?l.defaultArcValueFormat:l.y2Format;return function(C,S,E){return("y2"===l.axis.getId(E)?m:f).call(l,C,S)}},D.prototype.yFormat=function(a){var f=this.config;return(f.axis_y_tick_format?f.axis_y_tick_format:this.defaultValueFormat)(a)},D.prototype.y2Format=function(a){var f=this.config;return(f.axis_y2_tick_format?f.axis_y2_tick_format:this.defaultValueFormat)(a)},D.prototype.defaultValueFormat=function(a){return rt(a)?+a:""},D.prototype.defaultArcValueFormat=function(a,l){return(100*l).toFixed(1)+"%"},D.prototype.dataLabelFormat=function(a){var f=this.config.data_labels,C=function(S){return rt(S)?+S:""};return"function"==typeof f.format?f.format:"object"==typeof f.format?f.format[a]?!0===f.format[a]?C:f.format[a]:function(){return""}:C},D.prototype.initGrid=function(){var a=this,l=a.config,f=a.d3;a.grid=a.main.append("g").attr("clip-path",a.clipPathForGrid).attr("class",H.grid),l.grid_x_show&&a.grid.append("g").attr("class",H.xgrids),l.grid_y_show&&a.grid.append("g").attr("class",H.ygrids),l.grid_focus_show&&a.grid.append("g").attr("class",H.xgridFocus).append("line").attr("class",H.xgridFocus),a.xgrid=f.selectAll([]),l.grid_lines_front||a.initGridLines()},D.prototype.initGridLines=function(){var a=this,l=a.d3;a.gridLines=a.main.append("g").attr("clip-path",a.clipPathForGrid).attr("class",H.grid+" "+H.gridLines),a.gridLines.append("g").attr("class",H.xgridLines),a.gridLines.append("g").attr("class",H.ygridLines),a.xgridLines=l.selectAll([])},D.prototype.updateXGrid=function(a){var l=this,f=l.config,m=l.d3,C=l.generateGridData(f.grid_x_type,l.x),S=l.isCategorized()?l.xAxis.tickOffset():0;l.xgridAttr=f.axis_rotated?{x1:0,x2:l.width,y1:function(U){return l.x(U)-S},y2:function(U){return l.x(U)-S}}:{x1:function(U){return l.x(U)+S},x2:function(U){return l.x(U)+S},y1:0,y2:l.height},l.xgridAttr.opacity=function(){return+m.select(this).attr(f.axis_rotated?"y1":"x1")===(f.axis_rotated?l.height:0)?0:1};var E=l.main.select("."+H.xgrids).selectAll("."+H.xgrid).data(C),L=E.enter().append("line").attr("class",H.xgrid).attr("x1",l.xgridAttr.x1).attr("x2",l.xgridAttr.x2).attr("y1",l.xgridAttr.y1).attr("y2",l.xgridAttr.y2).style("opacity",0);
vendor: 26,264 bytes, line 1
1l.xgrid=L.merge(E),a||l.xgrid.attr("x1",l.xgridAttr.x1).attr("x2",l.xgridAttr.x2).attr("y1",l.xgridAttr.y1).attr("y2",l.xgridAttr.y2).style("opacity",l.xgridAttr.opacity),E.exit().remove()},D.prototype.updateYGrid=function(){var a=this,l=a.config,f=a.yAxis.tickValues()||a.y.ticks(l.grid_y_ticks),m=a.main.select("."+H.ygrids).selectAll("."+H.ygrid).data(f),C=m.enter().append("line").attr("class",H.ygrid);a.ygrid=C.merge(m),a.ygrid.attr("x1",l.axis_rotated?a.y:0).attr("x2",l.axis_rotated?a.y:a.width).attr("y1",l.axis_rotated?0:a.y).attr("y2",l.axis_rotated?a.height:a.y),m.exit().remove(),a.smoothLines(a.ygrid,"grid")},D.prototype.gridTextAnchor=function(a){return a.position?a.position:"end"},D.prototype.gridTextDx=function(a){return"start"===a.position?4:"middle"===a.position?0:-4},D.prototype.xGridTextX=function(a){return"start"===a.position?-this.height:"middle"===a.position?-this.height/2:0},D.prototype.yGridTextX=function(a){return"start"===a.position?0:"middle"===a.position?this.width/2:this.width},D.prototype.updateGrid=function(a){var C,S,E,L,l=this,f=l.main,m=l.config,U=l.xv.bind(l),O=l.yv.bind(l),J=l.xGridTextX.bind(l),$=l.yGridTextX.bind(l);l.grid.style("visibility",l.hasArcType()?"hidden":"visible"),f.select("line."+H.xgridFocus).style("visibility","hidden"),m.grid_x_show&&l.updateXGrid(),(S=(C=f.select("."+H.xgridLines).selectAll("."+H.xgridLine).data(m.grid_x_lines)).enter().append("g").attr("class",function(ie){return H.xgridLine+(ie.class?" "+ie.class:"")})).append("line").attr("x1",m.axis_rotated?0:U).attr("x2",m.axis_rotated?l.width:U).attr("y1",m.axis_rotated?U:0).attr("y2",m.axis_rotated?U:l.height).style("opacity",0),S.append("text").attr("text-anchor",l.gridTextAnchor).attr("transform",m.axis_rotated?"":"rotate(-90)").attr("x",m.axis_rotated?$:J).attr("y",U).attr("dx",l.gridTextDx).attr("dy",-5).style("opacity",0),l.xgridLines=S.merge(C),C.exit().transition().duration(a).style("opacity",0).remove(),m.grid_y_show&&l.updateYGrid(),(L=(E=f.select("."+H.ygridLines).selectAll("."+H.ygridLine).data(m.grid_y_lines)).enter().append("g").attr("class",function(ie){return H.ygridLine+(ie.class?" "+ie.class:"")})).append("line").attr("x1",m.axis_rotated?O:0).attr("x2",m.axis_rotated?O:l.width).attr("y1",m.axis_rotated?0:O).attr("y2",m.axis_rotated?l.height:O).style("opacity",0),L.append("text").attr("text-anchor",l.gridTextAnchor).attr("transform",m.axis_rotated?"rotate(-90)":"").attr("x",m.axis_rotated?J:$).attr("y",O).attr("dx",l.gridTextDx).attr("dy",-5).style("opacity",0),l.ygridLines=L.merge(E),l.ygridLines.select("line").transition().duration(a).attr("x1",m.axis_rotated?O:0).attr("x2",m.axis_rotated?O:l.width).attr("y1",m.axis_rotated?0:O).attr("y2",m.axis_rotated?l.height:O).style("opacity",1),l.ygridLines.select("text").transition().duration(a).attr("x",m.axis_rotated?l.xGridTextX.bind(l):l.yGridTextX.bind(l)).attr("y",O).text(function(ie){return ie.text}).style("opacity",1),E.exit().transition().duration(a).style("opacity",0).remove()},D.prototype.redrawGrid=function(a,l){var f=this,m=f.config,C=f.xv.bind(f),S=f.xgridLines.select("line"),E=f.xgridLines.select("text");return[(a?S.transition(l):S).attr("x1",m.axis_rotated?0:C).attr("x2",m.axis_rotated?f.width:C).attr("y1",m.axis_rotated?C:0).attr("y2",m.axis_rotated?C:f.height).style("opacity",1),(a?E.transition(l):E).attr("x",m.axis_rotated?f.yGridTextX.bind(f):f.xGridTextX.bind(f)).attr("y",C).text(function(L){return L.text}).style("opacity",1)]},D.prototype.showXGridFocus=function(a){var l=this,f=l.config,m=a.filter(function(E){return E&&rt(E.value)}),C=l.main.selectAll("line."+H.xgridFocus),S=l.xx.bind(l);f.tooltip_show&&(l.hasType("stanford")||l.hasArcType()||(C.style("visibility","visible").data([m[0]]).attr(f.axis_rotated?"y1":"x1",S).attr(f.axis_rotated?"y2":"x2",S),l.smoothLines(C,"grid")))},D.prototype.hideXGridFocus=function(){this.main.select("line."+H.xgridFocus).style("visibility","hidden")},D.prototype.updateXgridFocus=function(){var a=this,l=a.config;a.main.select("line."+H.xgridFocus).attr("x1",l.axis_rotated?0:-10).attr("x2",l.axis_rotated?a.width:-10).attr("y1",l.axis_rotated?-10:0).attr("y2",l.axis_rotated?-10:a.height)},D.prototype.generateGridData=function(a,l){var C,S,E,L,m=[],U=this.main.select("."+H.axisX).selectAll(".tick").size();if("year"===a)for(S=(C=this.getXDomain())[0].getFullYear(),E=C[1].getFullYear(),L=S;L<=E;L++)m.push(new Date(L+"-01-01 00:00:00"));else(m=l.ticks(10)).length>U&&(m=m.filter(function(O){return(""+O).indexOf(".")<0}));return m},D.prototype.getGridFilterToRemove=function(a){return a?function(l){var f=!1;return[].concat(a).forEach(function(m){("value"in m&&l.value===m.value||"class"in m&&l.class===m.class)&&(f=!0)}),f}:function(){return!0}},D.prototype.removeGridLines=function(a,l){var f=this,m=f.config,C=f.getGridFilterToRemove(a),S=function(U){return!C(U)},L=l?H.xgridLine:H.ygridLine;f.main.select("."+(l?H.xgridLines:H.ygridLines)).selectAll("."+L).filter(C).transition().duration(m.transition_duration).style("opacity",0).remove(),l?m.grid_x_lines=m.grid_x_lines.filter(S):m.grid_y_lines=m.grid_y_lines.filter(S)},D.prototype.initEventRect=function(){var a=this,l=a.config;a.main.select("."+H.chart).append("g").attr("class",H.eventRects).style("fill-opacity",0),a.eventRect=a.main.select("."+H.eventRects).append("rect").attr("class",H.eventRect),l.zoom_enabled&&a.zoom&&(a.eventRect.call(a.zoom).on("dblclick.zoom",null),l.zoom_initialRange&&a.eventRect.transition().duration(0).call(a.zoom.transform,a.zoomTransform(l.zoom_initialRange)))},D.prototype.redrawEventRect=function(){var a=this,l=a.d3,f=a.config;function m(){a.svg.select("."+H.eventRect).style("cursor",null),a.hideXGridFocus(),a.hideTooltip(),a.unexpandCircles(),a.unexpandBars()}var C=function(E,L){return L&&(a.isBarType(L.id)||a.dist(L,E)<f.point_sensitivity)},S=function(E){return E?a.addName(Object.assign({},E)):null};a.main.select("."+H.eventRects).style("cursor",f.zoom_enabled?f.axis_rotated?"ns-resize":"ew-resize":null),a.eventRect.attr("x",0).attr("y",0).attr("width",a.width).attr("height",a.height).on("mouseout",f.interaction_enabled?function(){f&&(a.hasArcType()||(a.mouseover&&(f.data_onmouseout.call(a.api,a.mouseover),a.mouseover=void 0),m()))}:null).on("mousemove",f.interaction_enabled?function(){if(!a.dragging){var E=a.getTargetsToShow();if(!a.hasArcType(E)){var $,L=l.mouse(this),U=S(a.findClosestFromTargets(E,L)),O=C(L,U);if(a.mouseover&&(!U||U.id!==a.mouseover.id||U.index!==a.mouseover.index)&&(f.data_onmouseout.call(a.api,a.mouseover),a.mouseover=void 0),U&&!a.mouseover&&(f.data_onmouseover.call(a.api,U),a.mouseover=U),a.svg.select("."+H.eventRect).style("cursor",O?"pointer":null),!f.tooltip_grouped||a.hasType("stanford",E))U&&($=[U]);else{var ie;(ie=U||a.findClosestFromTargetsByX(E,a.x.invert(f.axis_rotated?L[1]:L[0])))&&($=a.filterByX(E,ie.x))}if(!$||0===$.length)return m();$=$.map(S),a.showTooltip($,this),f.point_focus_expand_enabled&&(a.unexpandCircles(),$.forEach(function(ae){a.expandCircles(ae.index,ae.id,!1)})),a.unexpandBars(),$.forEach(function(ae){a.expandBars(ae.index,ae.id,!1)}),a.showXGridFocus($)}}}:null).on("click",f.interaction_enabled?function(){var E=a.getTargetsToShow();if(!a.hasArcType(E)){var L=l.mouse(this),U=S(a.findClosestFromTargets(E,L));if(C(L,U)&&((!f.data_selection_grouped||a.isStanfordType(U)?[U]:a.filterByX(E,U.x)).forEach(function($){a.main.selectAll("."+H.shapes+a.getTargetSelectorSuffix($.id)).selectAll("."+H.shape+"-"+$.index).each(function(){(f.data_selection_grouped||a.isWithinShape(this,$))&&a.toggleShape(this,$,$.index)})}),U)){var J=a.main.selectAll("."+H.shapes+a.getTargetSelectorSuffix(U.id)).select("."+H.shape+"-"+U.index);f.data_onclick.call(a.api,U,J.node())}}}:null).call(f.interaction_enabled&&f.data_selection_draggable&&a.drag?l.drag().on("drag",function(){a.drag(l.mouse(this))}).on("start",function(){a.dragstart(l.mouse(this))}).on("end",function(){a.dragend()}):function(){})},D.prototype.getMousePosition=function(a){return[this.x(a.x),this.getYScale(a.id)(a.value)]},D.prototype.dispatchEvent=function(a,l){var C=this.main.select("."+H.eventRect).node(),S=C.getBoundingClientRect(),E=S.left+(l?l[0]:0),L=S.top+(l?l[1]:0),U=document.createEvent("MouseEvents");U.initMouseEvent(a,!0,!0,window,0,E,L,E,L,!1,!1,!1,!1,0,null),C.dispatchEvent(U)},D.prototype.initLegend=function(){var a=this;if(a.legendItemTextBox={},a.legendHasRendered=!1,a.legend=a.svg.append("g").attr("transform",a.getTranslate("legend")),!a.config.legend_show)return a.legend.style("visibility","hidden"),void(a.hiddenLegendIds=a.mapToIds(a.data.targets));a.updateLegendWithDefaults()},D.prototype.updateLegendWithDefaults=function(){var a=this;a.updateLegend(a.mapToIds(a.data.targets),{withTransform:!1,withTransitionForTransform:!1,withTransition:!1})},D.prototype.updateSizeForLegend=function(a,l){var f=this,m=f.config,C={top:f.isLegendTop?f.getCurrentPaddingTop()+m.legend_inset_y+5.5:f.currentHeight-a-f.getCurrentPaddingBottom()-m.legend_inset_y,left:f.isLegendLeft?f.getCurrentPaddingLeft()+m.legend_inset_x+.5:f.currentWidth-l-f.getCurrentPaddingRight()-m.legend_inset_x+.5};f.margin3={top:f.isLegendRight?0:f.isLegendInset?C.top:f.currentHeight-a,right:NaN,bottom:0,left:f.isLegendRight?f.currentWidth-l:f.isLegendInset?C.left:0}},D.prototype.transformLegend=function(a){var l=this;(a?l.legend.transition():l.legend).attr("transform",l.getTranslate("legend"))},D.prototype.updateLegendStep=function(a){this.legendStep=a},D.prototype.updateLegendItemWidth=function(a){this.legendItemWidth=a},D.prototype.updateLegendItemHeight=function(a){this.legendItemHeight=a},D.prototype.getLegendWidth=function(){var a=this;return a.config.legend_show?a.isLegendRight||a.isLegendInset?a.legendItemWidth*(a.legendStep+1):a.currentWidth:0},D.prototype.getLegendHeight=function(){var a=this,l=0;return a.config.legend_show&&(l=a.isLegendRight?a.currentHeight:Math.max(20,a.legendItemHeight)*(a.legendStep+1)),l},D.prototype.opacityForLegend=function(a){return a.classed(H.legendItemHidden)?null:1},D.prototype.opacityForUnfocusedLegend=function(a){return a.classed(H.legendItemHidden)?null:.3},D.prototype.toggleFocusLegend=function(a,l){var f=this;a=f.mapToTargetIds(a),f.legend.selectAll("."+H.legendItem).filter(function(m){return a.indexOf(m)>=0}).classed(H.legendItemFocused,l).transition().duration(100).style("opacity",function(){return(l?f.opacityForLegend:f.opacityForUnfocusedLegend).call(f,f.d3.select(this))})},D.prototype.revertLegend=function(){var a=this,l=a.d3;a.legend.selectAll("."+H.legendItem).classed(H.legendItemFocused,!1).transition().duration(100).style("opacity",function(){return a.opacityForLegend(l.select(this))})},D.prototype.showLegend=function(a){var l=this,f=l.config;f.legend_show||(f.legend_show=!0,l.legend.style("visibility","visible"),l.legendHasRendered||l.updateLegendWithDefaults()),l.removeHiddenLegendIds(a),l.legend.selectAll(l.selectorLegends(a)).style("visibility","visible").transition().style("opacity",function(){return l.opacityForLegend(l.d3.select(this))})},D.prototype.hideLegend=function(a){var l=this,f=l.config;f.legend_show&&go(a)&&(f.legend_show=!1,l.legend.style("visibility","hidden")),l.addHiddenLegendIds(a),l.legend.selectAll(l.selectorLegends(a)).style("opacity",0).style("visibility","hidden")},D.prototype.clearLegendItemTextBoxCache=function(){this.legendItemTextBox={}},D.prototype.updateLegend=function(a,l,f){var S,E,L,U,O,J,$,ie,ne,mt,Re,yt,Jt,sn,Wt,tn,m=this,C=m.config,pe=0,we=0,Ze=C.legend_item_tile_width+5,lt=0,dt={},pt={},Be={},Ut=[0],$e={},Ee=0;function Tt(xe,Xe,Vn){var Qn,Fr,pi=0===Vn,nn=Vn===a.length-1,gi=function pn(xe,Xe){return m.legendItemTextBox[Xe]||(m.legendItemTextBox[Xe]=m.getTextRect(xe.textContent,H.legendItem,xe)),m.legendItemTextBox[Xe]}(xe,Xe),zn=gi.width+Ze+(!nn||m.isLegendRight||m.isLegendInset?10:0)+C.legend_padding,vn=gi.height+4,gn=m.isLegendRight||m.isLegendInset?vn:zn,yn=m.isLegendRight||m.isLegendInset?m.getLegendHeight():m.getLegendWidth();function Ca(Yn,Ta){Ta||(Qn=(yn-lt-gn)/2)<10&&(Qn=(yn-gn)/2,lt=0,Ee++),$e[Yn]=Ee,Ut[Ee]=m.isLegendInset?10:Qn,dt[Yn]=lt,lt+=gn}pi&&(lt=0,Ee=0,pe=0,we=0),!C.legend_show||m.isLegendToShow(Xe)?(pt[Xe]=zn,Be[Xe]=vn,(!pe||zn>=pe)&&(pe=zn),(!we||vn>=we)&&(we=vn),Fr=m.isLegendRight||m.isLegendInset?we:pe,C.legend_equally?(Object.keys(pt).forEach(function(Yn){pt[Yn]=pe}),Object.keys(Be).forEach(function(Yn){Be[Yn]=we}),(Qn=(yn-Fr*a.length)/2)<10?(lt=0,Ee=0,a.forEach(function(Yn){Ca(Yn)})):Ca(Xe,!0)):Ca(Xe)):pt[Xe]=Be[Xe]=$e[Xe]=dt[Xe]=0}a=a.filter(function(xe){return!Kt(C.data_names[xe])||null!==C.data_names[xe]}),Re=e(l=l||{},"withTransition",!0),yt=e(l,"withTransitionForTransform",!0),m.isLegendInset&&m.updateLegendStep(Ee=C.legend_inset_step?C.legend_inset_step:a.length),m.isLegendRight?(S=function(xe){return pe*$e[xe]},U=function(xe){return Ut[$e[xe]]+dt[xe]}):m.isLegendInset?(S=function(xe){return pe*$e[xe]+10},U=function(xe){return Ut[$e[xe]]+dt[xe]}):(S=function(xe){return Ut[$e[xe]]+dt[xe]},U=function(xe){return we*$e[xe]}),E=function(xe,Xe){return S(xe,Xe)+4+C.legend_item_tile_width},O=function(xe,Xe){return U(xe,Xe)+9},L=function(xe,Xe){return S(xe,Xe)},J=function(xe,Xe){return U(xe,Xe)-5},$=function(xe,Xe){return S(xe,Xe)-2},ie=function(xe,Xe){return S(xe,Xe)-2+C.legend_item_tile_width},ne=function(xe,Xe){return U(xe,Xe)+4},(mt=m.legend.selectAll("."+H.legendItem).data(a).enter().append("g").attr("class",function(xe){return m.generateClass(H.legendItem,xe)}).style("visibility",function(xe){return m.isLegendToShow(xe)?"visible":"hidden"}).style("cursor",function(){return C.interaction_enabled?"pointer":"auto"}).on("click",C.interaction_enabled?function(xe){C.legend_item_onclick?C.legend_item_onclick.call(m,xe):m.d3.event.altKey?(m.api.hide(),m.api.show(xe)):(m.api.toggle(xe),m.isTargetToShow(xe)?m.api.focus(xe):m.api.revert())}:null).on("mouseover",C.interaction_enabled?function(xe){C.legend_item_onmouseover?C.legend_item_onmouseover.call(m,xe):(m.d3.select(this).classed(H.legendItemFocused,!0),!m.transiting&&m.isTargetToShow(xe)&&m.api.focus(xe))}:null).on("mouseout",C.interaction_enabled?function(xe){C.legend_item_onmouseout?C.legend_item_onmouseout.call(m,xe):(m.d3.select(this).classed(H.legendItemFocused,!1),m.api.revert())}:null)).append("text").text(function(xe){return Kt(C.data_names[xe])?C.data_names[xe]:xe}).each(function(xe,Xe){Tt(this,xe,Xe)}).style("pointer-events","none").attr("x",m.isLegendRight||m.isLegendInset?E:-200).attr("y",m.isLegendRight||m.isLegendInset?-200:O),mt.append("rect").attr("class",H.legendItemEvent).style("fill-opacity",0).attr("x",m.isLegendRight||m.isLegendInset?L:-200).attr("y",m.isLegendRight||m.isLegendInset?-200:J),mt.append("line").attr("class",H.legendItemTile).style("stroke",m.color).style("pointer-events","none").attr("x1",m.isLegendRight||m.isLegendInset?$:-200).attr("y1",m.isLegendRight||m.isLegendInset?-200:ne).attr("x2",m.isLegendRight||m.isLegendInset?ie:-200).attr("y2",m.isLegendRight||m.isLegendInset?-200:ne).attr("stroke-width",C.legend_item_tile_height),tn=m.legend.select("."+H.legendBackground+" rect"),m.isLegendInset&&pe>0&&0===tn.size()&&(tn=m.legend.insert("g","."+H.legendItem).attr("class",H.legendBackground).append("rect")),Jt=m.legend.selectAll("text").data(a).text(function(xe){return Kt(C.data_names[xe])?C.data_names[xe]:xe}).each(function(xe,Xe){Tt(this,xe,Xe)}),(Re?Jt.transition():Jt).attr("x",E).attr("y",O),sn=m.legend.selectAll("rect."+H.legendItemEvent).data(a),(Re?sn.transition():sn).attr("width",function(xe){return pt[xe]}).attr("height",function(xe){return Be[xe]}).attr("x",L).attr("y",J),Wt=m.legend.selectAll("line."+H.legendItemTile).data(a),(Re?Wt.transition():Wt).style("stroke",m.levelColor?function(xe){return m.levelColor(m.cache[xe].values.reduce(function(Xe,Vn){return Xe+Vn.value},0))}:m.color).attr("x1",$).attr("y1",ne).attr("x2",ie).attr("y2",ne),tn&&(Re?tn.transition():tn).attr("height",m.getLegendHeight()-12).attr("width",pe*(Ee+1)+10),m.legend.selectAll("."+H.legendItem).classed(H.legendItemHidden,function(xe){return!m.isTargetToShow(xe)}),m.updateLegendItemWidth(pe),m.updateLegendItemHeight(we),m.updateLegendStep(Ee),m.updateSizes(),m.updateScales(),m.updateSvgSize(),m.transformAll(yt,f),m.legendHasRendered=!0},D.prototype.initRegion=function(){var a=this;a.region=a.main.append("g").attr("clip-path",a.clipPath).attr("class",H.regions)},D.prototype.updateRegion=function(a){var l=this,f=l.config;l.region.style("visibility",l.hasArcType()?"hidden":"visible");var m=l.main.select("."+H.regions).selectAll("."+H.region).data(f.regions),C=m.enter().append("g");C.append("rect").attr("x",l.regionX.bind(l)).attr("y",l.regionY.bind(l)).attr("width",l.regionWidth.bind(l)).attr("height",l.regionHeight.bind(l)).style("fill-opacity",function(S){return rt(S.opacity)?S.opacity:.1}),C.append("text").text(l.labelRegion.bind(l)),l.mainRegion=C.merge(m).attr("class",l.classRegion.bind(l)),m.exit().transition().duration(a).style("opacity",0).remove()},D.prototype.redrawRegion=function(a,l){var f=this,m=f.mainRegion,C=f.mainRegion.selectAll("text");return[(a?m.transition(l):m).attr("x",f.regionX.bind(f)).attr("y",f.regionY.bind(f)).attr("width",f.regionWidth.bind(f)).attr("height",f.regionHeight.bind(f)).style("fill-opacity",function(S){return rt(S.opacity)?S.opacity:.1}),(a?C.transition(l):C).attr("x",f.labelOffsetX.bind(f)).attr("y",f.labelOffsetY.bind(f)).attr("transform",f.labelTransform.bind(f)).attr("style","text-anchor: left;")]},D.prototype.regionX=function(a){var l=this,f=l.config;return"y"===a.axis||"y2"===a.axis?f.axis_rotated&&"start"in a?("y"===a.axis?l.y:l.y2)(a.start):0:f.axis_rotated?0:"start"in a?l.x(l.isTimeSeries()?l.parseDate(a.start):a.start):0},D.prototype.regionY=function(a){var l=this,f=l.config;return"y"===a.axis||"y2"===a.axis?f.axis_rotated?0:"end"in a?("y"===a.axis?l.y:l.y2)(a.end):0:f.axis_rotated&&"start"in a?l.x(l.isTimeSeries()?l.parseDate(a.start):a.start):0},D.prototype.regionWidth=function(a){var C,l=this,f=l.config,m=l.regionX(a);return(C="y"===a.axis||"y2"===a.axis?f.axis_rotated&&"end"in a?("y"===a.axis?l.y:l.y2)(a.end):l.width:f.axis_rotated?l.width:"end"in a?l.x(l.isTimeSeries()?l.parseDate(a.end):a.end):l.width)<m?0:C-m},D.prototype.regionHeight=function(a){var C,l=this,f=l.config,m=this.regionY(a);return(C="y"===a.axis||"y2"===a.axis?f.axis_rotated?l.height:"start"in a?("y"===a.axis?l.y:l.y2)(a.start):l.height:f.axis_rotated&&"end"in a?l.x(l.isTimeSeries()?l.parseDate(a.end):a.end):l.height)<m?0:C-m},D.prototype.isRegionOnX=function(a){return!a.axis||"x"===a.axis},D.prototype.labelRegion=function(a){return"label"in a?a.label:""},D.prototype.labelTransform=function(a){return"vertical"in a&&a.vertical?"rotate(90)":""},D.prototype.labelOffsetX=function(a){var l="paddingX"in a?a.paddingX:3,f="paddingY"in a?a.paddingY:3;return"vertical"in a&&a.vertical?this.regionY(a)+f:this.regionX(a)+l},D.prototype.labelOffsetY=function(a){var l="paddingX"in a?a.paddingX:3,f="paddingY"in a?a.paddingY:3;return"vertical"in a&&a.vertical?-(this.regionX(a)+l):this.regionY(a)+10+f},D.prototype.getScale=function(a,l,f){return(f?this.d3.scaleTime():this.d3.scaleLinear()).range([a,l])},D.prototype.getX=function(a,l,f,m){var L,C=this,S=C.getScale(a,l,C.isTimeSeries()),E=f?S.domain(f):S;for(L in C.isCategorized()?(m=m||function(){return 0},S=function(U,O){var J=E(U)+m(U);return O?J:Math.ceil(J)}):S=function(U,O){var J=E(U);return O?J:Math.ceil(J)},E)S[L]=E[L];return S.orgDomain=function(){return E.domain()},C.isCategorized()&&(S.domain=function(U){return arguments.length?(E.domain(U),S):[(U=this.orgDomain())[0],U[1]+1]}),S},D.prototype.getY=function(a,l,f){var m;if("timeseries"===a||"time"===a)m=this.d3.scaleTime();else if("log"===a)m=wa(this.d3);else{if("linear"!==a&&void 0!==a)throw new Error('Invalid Y axis type: "'+a+'"');m=this.d3.scaleLinear()}return l&&m.domain(l),f&&m.range(f),m},D.prototype.getYScale=function(a){return"y2"===this.axis.getId(a)?this.y2:this.y},D.prototype.getSubYScale=function(a){return"y2"===this.axis.getId(a)?this.subY2:this.subY},D.prototype.updateScales=function(){var a=this,l=a.config,f=!a.x;a.xMin=l.axis_rotated?1:0,a.xMax=l.axis_rotated?a.height:a.width,a.yMin=l.axis_rotated?0:a.height,a.yMax=l.axis_rotated?a.width:1,a.subXMin=a.xMin,a.subXMax=a.xMax,a.subYMin=l.axis_rotated?0:a.height2,a.subYMax=l.axis_rotated?a.width2:1,a.x=a.getX(a.xMin,a.xMax,f?void 0:a.x.orgDomain(),function(){return a.xAxis.tickOffset()}),a.y=a.getY(l.axis_y_type,f?l.axis_y_default:a.y.domain(),[a.yMin,a.yMax]),a.y2=a.getY(l.axis_y2_type,f?l.axis_y2_default:a.y2.domain(),[a.yMin,a.yMax]),a.subX=a.getX(a.xMin,a.xMax,a.orgXDomain,function(m){return m%1?0:a.subXAxis.tickOffset()}),a.subY=a.getY(l.axis_y_type,f?l.axis_y_default:a.subY.domain(),[a.subYMin,a.subYMax]),a.subY2=a.getY(l.axis_y2_type,f?l.axis_y2_default:a.subY2.domain(),[a.subYMin,a.subYMax]),a.xAxisTickFormat=a.axis.getXAxisTickFormat(),a.xAxisTickValues=a.axis.getXAxisTickValues(),a.yAxisTickValues=a.axis.getYAxisTickValues(),a.y2AxisTickValues=a.axis.getY2AxisTickValues(),a.xAxis=a.axis.getXAxis(a.x,a.xOrient,a.xAxisTickFormat,a.xAxisTickValues,l.axis_x_tick_outer),a.subXAxis=a.axis.getXAxis(a.subX,a.subXOrient,a.xAxisTickFormat,a.xAxisTickValues,l.axis_x_tick_outer),a.yAxis=a.axis.getYAxis("y",a.y,a.yOrient,a.yAxisTickValues,l.axis_y_tick_outer),a.y2Axis=a.axis.getYAxis("y2",a.y2,a.y2Orient,a.y2AxisTickValues,l.axis_y2_tick_outer),f||a.brush&&a.brush.updateScale(a.subX),a.updateArc&&a.updateArc()},D.prototype.selectPoint=function(a,l,f){var m=this,C=m.config,S=(C.axis_rotated?m.circleY:m.circleX).bind(m),E=(C.axis_rotated?m.circleX:m.circleY).bind(m),L=m.pointSelectR.bind(m);C.data_onselected.call(m.api,l,a.node()),m.main.select("."+H.selectedCircles+m.getTargetSelectorSuffix(l.id)).selectAll("."+H.selectedCircle+"-"+f).data([l]).enter().append("circle").attr("class",function(){return m.generateClass(H.selectedCircle,f)}).attr("cx",S).attr("cy",E).attr("stroke",function(){return m.color(l)}).attr("r",function(U){return 1.4*m.pointSelectR(U)}).transition().duration(100).attr("r",L)},D.prototype.unselectPoint=function(a,l,f){var m=this;m.config.data_onunselected.call(m.api,l,a.node()),m.main.select("."+H.selectedCircles+m.getTargetSelectorSuffix(l.id)).selectAll("."+H.selectedCircle+"-"+f).transition().duration(100).attr("r",0).remove()},D.prototype.togglePoint=function(a,l,f,m){a?this.selectPoint(l,f,m):this.unselectPoint(l,f,m)},D.prototype.selectPath=function(a,l){var f=this;f.config.data_onselected.call(f,l,a.node()),f.config.interaction_brighten&&a.transition().duration(100).style("fill",function(){return f.d3.rgb(f.color(l)).brighter(.75)})},D.prototype.unselectPath=function(a,l){var f=this;f.config.data_onunselected.call(f,l,a.node()),f.config.interaction_brighten&&a.transition().duration(100).style("fill",function(){return f.color(l)})},D.prototype.togglePath=function(a,l,f,m){a?this.selectPath(l,f,m):this.unselectPath(l,f,m)},D.prototype.getToggle=function(a,l){var m,f=this;return"circle"===a.nodeName?m=f.isStepType(l)?function(){}:f.togglePoint:"path"===a.nodeName&&(m=f.togglePath),m},D.prototype.toggleShape=function(a,l,f){var m=this,C=m.d3,S=m.config,E=C.select(a),L=E.classed(H.SELECTED),U=m.getToggle(a,l).bind(m);S.data_selection_enabled&&S.data_selection_isselectable(l)&&(S.data_selection_multiple||m.main.selectAll("."+H.shapes+(S.data_selection_grouped?m.getTargetSelectorSuffix(l.id):"")).selectAll("."+H.shape).each(function(O,J){var $=C.select(this);$.classed(H.SELECTED)&&U(!1,$.classed(H.SELECTED,!1),O,J)}),E.classed(H.SELECTED,!L),U(!L,E,l,f))},D.prototype.initBar=function(){this.main.select("."+H.chart).append("g").attr("class",H.chartBars)},D.prototype.updateTargetsForBar=function(a){var l=this,f=l.config,S=l.classChartBar.bind(l),E=l.classBars.bind(l),L=l.classFocus.bind(l);l.main.select("."+H.chartBars).selectAll("."+H.chartBar).data(a).attr("class",function(U){return S(U)+L(U)}).enter().append("g").attr("class",S).style("pointer-events","none").append("g").attr("class",E).style("cursor",function(U){return f.data_selection_isselectable(U)?"pointer":null})},D.prototype.updateBar=function(a){var l=this,f=l.barData.bind(l),m=l.classBar.bind(l),C=l.initialOpacity.bind(l),S=function(U){return l.color(U.id)},E=l.main.selectAll("."+H.bars).selectAll("."+H.bar).data(f),L=E.enter().append("path").attr("class",m).style("stroke",S).style("fill",S);l.mainBar=L.merge(E).style("opacity",C),E.exit().transition().duration(a).style("opacity",0)},D.prototype.redrawBar=function(a,l,f){var m=this;return[(l?this.mainBar.transition(f):this.mainBar).attr("d",a).style("stroke",this.color).style("fill",this.color).style("opacity",function(C){return m.isTargetToShow(C.id)?1:0})]},D.prototype.getBarW=function(a,l){var m=this.config,C="number"==typeof m.bar_width?m.bar_width:l?a.tickInterval()*m.bar_width_ratio/l:0;return m.bar_width_max&&C>m.bar_width_max?m.bar_width_max:C},D.prototype.getBars=function(a,l){var f=this;return(l?f.main.selectAll("."+H.bars+f.getTargetSelectorSuffix(l)):f.main).selectAll("."+H.bar+(rt(a)?"-"+a:""))},D.prototype.expandBars=function(a,l,f){f&&this.unexpandBars(),this.getBars(a,l).classed(H.EXPANDED,!0)},D.prototype.unexpandBars=function(a){this.getBars(a).classed(H.EXPANDED,!1)},D.prototype.generateDrawBar=function(a,l){var m=this.config,C=this.generateGetBarPoints(a,l);return function(S,E){var L=C(S,E),U=m.axis_rotated?1:0,O=m.axis_rotated?0:1;return"M "+L[0][U]+","+L[0][O]+" L"+L[1][U]+","+L[1][O]+" L"+L[2][U]+","+L[2][O]+" L"+L[3][U]+","+L[3][O]+" z"}},D.prototype.generateGetBarPoints=function(a,l){var f=this,C=a.__max__+1,S=f.getBarW(l?f.subXAxis:f.xAxis,C),E=f.getShapeX(S,C,a,!!l),L=f.getShapeY(!!l),U=f.getShapeOffset(f.isBarType,a,!!l),O=S*(f.config.bar_space/2),J=l?f.getSubYScale:f.getYScale;return function($,ie){var ne=J.call(f,$.id)(0),ae=U($,ie)||ne,fe=E($),pe=L($);return f.config.axis_rotated&&(0<$.value&&pe<ne||$.value<0&&ne<pe)&&(pe=ne),[[fe+O,ae],[fe+O,pe-=ne-ae],[fe+S-O,pe],[fe+S-O,ae]]}},D.prototype.isWithinBar=function(a,l){return function(a,l,f){return void 0===f&&(f=0),l.x-f<a[0]&&a[0]<l.x+l.width+f&&l.y-f<a[1]&&a[1]<l.y+l.height+f}(a,fi(l),2)},D.prototype.getShapeIndices=function(a){var S,E,l=this,f=l.config,m={},C=0;
1return l.filterTargetsToShow(l.data.targets.filter(a,l)).forEach(function(L){for(S=0;S<f.data_groups.length;S++)if(!(f.data_groups[S].indexOf(L.id)<0))for(E=0;E<f.data_groups[S].length;E++)if(f.data_groups[S][E]in m){m[L.id]=m[f.data_groups[S][E]];break}Pn(m[L.id])&&(m[L.id]=C++)}),m.__max__=C-1,m},D.prototype.getShapeX=function(a,l,f,m){var S=m?this.subX:this.x;return function(E){var L=E.id in f?f[E.id]:0;return E.x||0===E.x?S(E.x)-a*(l/2-L):0}},D.prototype.getShapeY=function(a){var l=this;return function(f){return(a?l.getSubYScale(f.id):l.getYScale(f.id))(l.isTargetNormalized(f.id)?l.getRatio("index",f,!0):f.value)}},D.prototype.getShapeOffset=function(a,l,f){var m=this,C=m.orderTargets(m.filterTargetsToShow(m.data.targets.filter(a,m))),S=C.map(function(E){return E.id});return function(E,L){var U=f?m.getSubYScale(E.id):m.getYScale(E.id),O=U(0),J=O;return C.forEach(function($){var ie=m.isStepType(E)?m.convertValuesToStep($.values):$.values,ne=m.isTargetNormalized(E.id),ae=ie.map(function(fe){return ne?m.getRatio("index",fe,!0):fe.value});$.id===E.id||l[$.id]!==l[E.id]||S.indexOf($.id)<S.indexOf(E.id)&&((Pn(ie[L])||+ie[L].x!=+E.x)&&(L=-1,ie.forEach(function(fe,pe){(fe.x.constructor===Date?+fe.x:fe.x)===(E.x.constructor===Date?+E.x:E.x)&&(L=pe)})),L in ie&&ie[L].value*E.value>=0&&(J+=U(ae[L])-O))}),J}},D.prototype.isWithinShape=function(a,l){var C,f=this,m=f.d3.select(a);return f.isTargetToShow(l.id)?"circle"===a.nodeName?C=f.isStepType(l)?f.isWithinStep(a,f.getYScale(l.id)(l.value)):f.isWithinCircle(a,1.5*f.pointSelectR(l)):"path"===a.nodeName&&(C=!m.classed(H.bar)||f.isWithinBar(f.d3.mouse(a),a)):C=!1,C},D.prototype.getInterpolate=function(a){var l=this,f=l.d3,m={linear:f.curveLinear,"linear-closed":f.curveLinearClosed,basis:f.curveBasis,"basis-open":f.curveBasisOpen,"basis-closed":f.curveBasisClosed,bundle:f.curveBundle,cardinal:f.curveCardinal,"cardinal-open":f.curveCardinalOpen,"cardinal-closed":f.curveCardinalClosed,monotone:f.curveMonotoneX,step:f.curveStep,"step-before":f.curveStepBefore,"step-after":f.curveStepAfter};return l.isSplineType(a)?m[l.config.spline_interpolation_type]||m.cardinal:l.isStepType(a)?m[l.config.line_step_type]:m.linear},D.prototype.initLine=function(){this.main.select("."+H.chart).append("g").attr("class",H.chartLines)},D.prototype.updateTargetsForLine=function(a){var C,l=this,f=l.config,S=l.classChartLine.bind(l),E=l.classLines.bind(l),L=l.classAreas.bind(l),U=l.classCircles.bind(l),O=l.classFocus.bind(l);(C=l.main.select("."+H.chartLines).selectAll("."+H.chartLine).data(a).attr("class",function(J){return S(J)+O(J)}).enter().append("g").attr("class",S).style("opacity",0).style("pointer-events","none")).append("g").attr("class",E),C.append("g").attr("class",L),C.append("g").attr("class",function(J){return l.generateClass(H.selectedCircles,J.id)}),C.append("g").attr("class",U).style("cursor",function(J){return f.data_selection_isselectable(J)?"pointer":null}),a.forEach(function(J){l.main.selectAll("."+H.selectedCircles+l.getTargetSelectorSuffix(J.id)).selectAll("."+H.selectedCircle).each(function($){$.value=J.values[$.index].value})})},D.prototype.updateLine=function(a){var l=this,f=l.main.selectAll("."+H.lines).selectAll("."+H.line).data(l.lineData.bind(l)),m=f.enter().append("path").attr("class",l.classLine.bind(l)).style("stroke",l.color);l.mainLine=m.merge(f).style("opacity",l.initialOpacity.bind(l)).style("shape-rendering",function(C){return l.isStepType(C)?"crispEdges":""}).attr("transform",null),f.exit().transition().duration(a).style("opacity",0)},D.prototype.redrawLine=function(a,l,f){return[(l?this.mainLine.transition(f):this.mainLine).attr("d",a).style("stroke",this.color).style("opacity",1)]},D.prototype.generateDrawLine=function(a,l){var f=this,m=f.config,C=f.d3.line(),S=f.generateGetLinePoints(a,l),E=l?f.getSubYScale:f.getYScale,L=function(O){return(l?f.subxx:f.xx).call(f,O)},U=function(O,J){return m.data_groups.length>0?S(O,J)[0][1]:E.call(f,O.id)(O.value)};return C=m.axis_rotated?C.x(U).y(L):C.x(L).y(U),m.line_connectNull||(C=C.defined(function(O){return null!=O.value})),function(O){var fe,J=m.line_connectNull?f.filterRemoveNull(O.values):O.values,$=l?f.subX:f.x,ie=E.call(f,O.id),ne=0,ae=0;return f.isLineType(O)?m.data_regions[O.id]?fe=f.lineWithRegions(J,$,ie,m.data_regions[O.id]):(f.isStepType(O)&&(J=f.convertValuesToStep(J)),fe=C.curve(f.getInterpolate(O))(J)):(J[0]&&(ne=$(J[0].x),ae=ie(J[0].value)),fe=m.axis_rotated?"M "+ae+" "+ne:"M "+ne+" "+ae),fe||"M 0 0"}},D.prototype.generateGetLinePoints=function(a,l){var f=this,m=f.config,S=f.getShapeX(0,a.__max__+1,a,!!l),E=f.getShapeY(!!l),L=f.getShapeOffset(f.isLineType,a,!!l),U=l?f.getSubYScale:f.getYScale;return function(O,J){var $=U.call(f,O.id)(0),ie=L(O,J)||$,ne=S(O),ae=E(O);return m.axis_rotated&&(0<O.value&&ae<$||O.value<0&&$<ae)&&(ae=$),[[ne,ae-($-ie)],[ne,ae-($-ie)],[ne,ae-($-ie)],[ne,ae-($-ie)]]}},D.prototype.lineWithRegions=function(a,l,f,m){var L,U,J,$,ie,ne,ae,pe,we,Ze,mt,C=this,S=C.config,O="M",be=C.isCategorized()?.5:0,lt=[];function dt(Be,Ut){var $e;for($e=0;$e<Ut.length;$e++)if(Ut[$e].start<Be&&Be<=Ut[$e].end)return!0;return!1}if(Kt(m))for(L=0;L<m.length;L++)lt[L]={},lt[L].start=Pn(m[L].start)?a[0].x:C.isTimeSeries()?C.parseDate(m[L].start):m[L].start,lt[L].end=Pn(m[L].end)?a[a.length-1].x:C.isTimeSeries()?C.parseDate(m[L].end):m[L].end;function pt(Be){return"M"+Be[0][0]+" "+Be[0][1]+" "+Be[1][0]+" "+Be[1][1]}for(Ze=S.axis_rotated?function(Be){return f(Be.value)}:function(Be){return l(Be.x)},mt=S.axis_rotated?function(Be){return l(Be.x)}:function(Be){return f(Be.value)},J=C.isTimeSeries()?function(Be,Ut,$e,Ee){var Re=Be.x.getTime(),yt=Ut.x-Be.x,Jt=new Date(Re+yt*$e),sn=new Date(Re+yt*($e+Ee));return pt(S.axis_rotated?[[f(ie($e)),l(Jt)],[f(ie($e+Ee)),l(sn)]]:[[l(Jt),f(ie($e))],[l(sn),f(ie($e+Ee))]])}:function(Be,Ut,$e,Ee){return pt(S.axis_rotated?[[f(ie($e),!0),l($($e))],[f(ie($e+Ee),!0),l($($e+Ee))]]:[[l($($e),!0),f(ie($e))],[l($($e+Ee),!0),f(ie($e+Ee))]])},L=0;L<a.length;L++)if(Pn(lt)||!dt(a[L].x,lt))O+=" "+Ze(a[L])+" "+mt(a[L]);else for($=C.getScale(a[L-1].x+be,a[L].x+be,C.isTimeSeries()),ie=C.getScale(a[L-1].value,a[L].value),ne=l(a[L].x)-l(a[L-1].x),ae=f
vendor: 14,548 bytes, line 1
1(a[L].value)-f(a[L-1].value),we=2*(pe=2/Math.sqrt(Math.pow(ne,2)+Math.pow(ae,2))),U=pe;U<=1;U+=we)O+=J(a[L-1],a[L],U,pe);return O},D.prototype.updateArea=function(a){var l=this,f=l.d3,m=l.main.selectAll("."+H.areas).selectAll("."+H.area).data(l.lineData.bind(l)),C=m.enter().append("path").attr("class",l.classArea.bind(l)).style("fill",l.color).style("opacity",function(){return l.orgAreaOpacity=+f.select(this).style("opacity"),0});l.mainArea=C.merge(m).style("opacity",l.orgAreaOpacity),m.exit().transition().duration(a).style("opacity",0)},D.prototype.redrawArea=function(a,l,f){return[(l?this.mainArea.transition(f):this.mainArea).attr("d",a).style("fill",this.color).style("opacity",this.orgAreaOpacity)]},D.prototype.generateDrawArea=function(a,l){var f=this,m=f.config,C=f.d3.area(),S=f.generateGetAreaPoints(a,l),E=l?f.getSubYScale:f.getYScale,L=function(J){return(l?f.subxx:f.xx).call(f,J)},U=function(J,$){return m.data_groups.length>0?S(J,$)[0][1]:E.call(f,J.id)(f.getAreaBaseValue(J.id))},O=function(J,$){return m.data_groups.length>0?S(J,$)[1][1]:E.call(f,J.id)(J.value)};return C=m.axis_rotated?C.x0(U).x1(O).y(L):C.x(L).y0(m.area_above?0:U).y1(O),m.line_connectNull||(C=C.defined(function(J){return null!==J.value})),function(J){var ae,$=m.line_connectNull?f.filterRemoveNull(J.values):J.values,ie=0,ne=0;return f.isAreaType(J)?(f.isStepType(J)&&($=f.convertValuesToStep($)),ae=C.curve(f.getInterpolate(J))($)):($[0]&&(ie=f.x($[0].x),ne=f.getYScale(J.id)($[0].value)),ae=m.axis_rotated?"M "+ne+" "+ie:"M "+ie+" "+ne),ae||"M 0 0"}},D.prototype.getAreaBaseValue=function(){return 0},D.prototype.generateGetAreaPoints=function(a,l){var f=this,m=f.config,S=f.getShapeX(0,a.__max__+1,a,!!l),E=f.getShapeY(!!l),L=f.getShapeOffset(f.isAreaType,a,!!l),U=l?f.getSubYScale:f.getYScale;return function(O,J){var $=U.call(f,O.id)(0),ie=L(O,J)||$,ne=S(O),ae=E(O);return m.axis_rotated&&(0<O.value&&ae<$||O.value<0&&$<ae)&&(ae=$),[[ne,ie],[ne,ae-($-ie)],[ne,ae-($-ie)],[ne,ie]]}},D.prototype.updateCircle=function(a,l){var f=this,m=f.main.selectAll("."+H.circles).selectAll("."+H.circle).data(f.lineOrScatterOrStanfordData.bind(f)),C=m.enter().append("circle").attr("shape-rendering",f.isStanfordGraphType()?"crispEdges":"").attr("class",f.classCircle.bind(f)).attr("cx",a).attr("cy",l).attr("r",f.pointR.bind(f)).style("color",f.isStanfordGraphType()?f.getStanfordPointColor.bind(f):f.color);f.mainCircle=C.merge(m).style("opacity",f.isStanfordGraphType()?1:f.initialOpacityForCircle.bind(f)),m.exit().style("opacity",0)},D.prototype.redrawCircle=function(a,l,f,m){var C=this,S=C.main.selectAll("."+H.selectedCircle);return[(f?C.mainCircle.transition(m):C.mainCircle).style("opacity",this.opacityForCircle.bind(C)).style("color",C.isStanfordGraphType()?C.getStanfordPointColor.bind(C):C.color).attr("cx",a).attr("cy",l),(f?S.transition(m):S).attr("cx",a).attr("cy",l)]},D.prototype.circleX=function(a){return a.x||0===a.x?this.x(a.x):null},D.prototype.updateCircleY=function(){var l,f,a=this;a.config.data_groups.length>0?(l=a.getShapeIndices(a.isLineType),f=a.generateGetLinePoints(l),a.circleY=function(m,C){return f(m,C)[0][1]}):a.circleY=function(m){return a.getYScale(m.id)(m.value)}},D.prototype.getCircles=function(a,l){var f=this;return(l?f.main.selectAll("."+H.circles+f.getTargetSelectorSuffix(l)):f.main).selectAll("."+H.circle+(rt(a)?"-"+a:""))},D.prototype.expandCircles=function(a,l,f){var m=this,C=m.pointExpandedR.bind(m);f&&m.unexpandCircles(),m.getCircles(a,l).classed(H.EXPANDED,!0).attr("r",C)},D.prototype.unexpandCircles=function(a){var l=this,f=l.pointR.bind(l);l.getCircles(a).filter(function(){return l.d3.select(this).classed(H.EXPANDED)}).classed(H.EXPANDED,!1).attr("r",f)},D.prototype.pointR=function(a){var f=this.config;return this.isStepType(a)?0:on(f.point_r)?f.point_r(a):f.point_r},D.prototype.pointExpandedR=function(a){var l=this,f=l.config;return f.point_focus_expand_enabled?on(f.point_focus_expand_r)?f.point_focus_expand_r(a):f.point_focus_expand_r?f.point_focus_expand_r:1.75*l.pointR(a):l.pointR(a)},D.prototype.pointSelectR=function(a){var f=this.config;return on(f.point_select_r)?f.point_select_r(a):f.point_select_r?f.point_select_r:4*this.pointR(a)},D.prototype.isWithinCircle=function(a,l){var f=this.d3,m=f.mouse(a),C=f.select(a),S=+C.attr("cx"),E=+C.attr("cy");return Math.sqrt(Math.pow(S-m[0],2)+Math.pow(E-m[1],2))<l},D.prototype.isWithinStep=function(a,l){return Math.abs(l-this.d3.mouse(a)[1])<30},D.prototype.getCurrentWidth=function(){var l=this.config;return l.size_width?l.size_width:this.getParentWidth()},D.prototype.getCurrentHeight=function(){var a=this,l=a.config,f=l.size_height?l.size_height:a.getParentHeight();return f>0?f:320/(a.hasType("gauge")&&!l.gauge_fullCircle?2:1)},D.prototype.getCurrentPaddingTop=function(){var a=this,l=a.config,f=rt(l.padding_top)?l.padding_top:0;return a.title&&a.title.node()&&(f+=a.getTitlePadding()),f},D.prototype.getCurrentPaddingBottom=function(){var a=this.config;return rt(a.padding_bottom)?a.padding_bottom:0},D.prototype.getCurrentPaddingLeft=function(a){var l=this,f=l.config;return rt(f.padding_left)?f.padding_left:f.axis_rotated?!f.axis_x_show||f.axis_x_inner?1:Math.max(ce(l.getAxisWidthByAxisId("x",a)),40):!f.axis_y_show||f.axis_y_inner?l.axis.getYAxisLabelPosition().isOuter?30:1:ce(l.getAxisWidthByAxisId("y",a))},D.prototype.getCurrentPaddingRight=function(){var a=this,l=a.config,f=0,C=a.isLegendRight?a.getLegendWidth()+20:0;return f=rt(l.padding_right)?l.padding_right+1:l.axis_rotated?10+C:!l.axis_y2_show||l.axis_y2_inner?2+C+(a.axis.getY2AxisLabelPosition().isOuter?20:0):ce(a.getAxisWidthByAxisId("y2"))+C,a.colorScale&&a.colorScale.node()&&(f+=a.getColorScalePadding()),f},D.prototype.getParentRectValue=function(a){for(var f,l=this.selectChart.node();l&&"BODY"!==l.tagName;){try{f=l.getBoundingClientRect()[a]}catch{"width"===a&&(f=l.offsetWidth)}if(f)break;l=l.parentNode}return f},D.prototype.getParentWidth=function(){return this.getParentRectValue("width")},D.prototype.getParentHeight=function(){var a=this.selectChart.style("height");return a.indexOf("px")>0?+a.replace("px",""):0},D.prototype.getSvgLeft=function(a){var l=this,f=l.config,m=f.axis_rotated||!f.axis_rotated&&!f.axis_y_inner,S=l.main.select("."+(f.axis_rotated?H.axisX:H.axisY)).node(),E=S&&m?S.getBoundingClientRect():{right:0},L=l.selectChart.node().getBoundingClientRect(),U=l.hasArcType(),O=E.right-L.left-(U?0:l.getCurrentPaddingLeft(a));return O>0?O:0},D.prototype.getAxisWidthByAxisId=function(a,l){var m=this.axis.getLabelPositionById(a);return this.axis.getMaxTickWidth(a,l)+(m.isInner?20:40)},D.prototype.getHorizontalAxisHeight=function(a,l){var f=this,m=f.config,C=30;return"x"!==a||(Kt(l)&&l?m.subchart_axis_x_show:m.axis_x_show)?"x"===a&&m.axis_x_height?m.axis_x_height:"y"!==a||m.axis_y_show?"y2"!==a||m.axis_y2_show?("x"===a&&!m.axis_rotated&&m.axis_x_tick_rotate&&(C=30+f.axis.getMaxTickWidth(a)*Math.cos(Math.PI*(90-Math.abs(m.axis_x_tick_rotate))/180)),"y"===a&&m.axis_rotated&&m.axis_y_tick_rotate&&(C=30+f.axis.getMaxTickWidth(a)*Math.cos(Math.PI*(90-Math.abs(m.axis_y_tick_rotate))/180)),C+(f.axis.getLabelPositionById(a).isInner?0:10)+("y2"===a?-10:0)):f.rotated_padding_top:!m.legend_show||f.isLegendRight||f.isLegendInset?1:10:8},D.prototype.initBrush=function(a){var l=this,f=l.d3;return l.brush=(l.config.axis_rotated?f.brushY():f.brushX()).on("brush",function(){var m=f.event.sourceEvent;m&&"zoom"===m.type||l.redrawForBrush()}).on("end",function(){var m=f.event.sourceEvent;m&&"zoom"===m.type||l.brush.empty()&&m&&"end"!==m.type&&l.brush.clear()}),l.brush.updateExtent=function(){var m=this.scale.range();return this.extent(l.config.axis_rotated?[[0,m[0]],[l.width2,m[1]]]:[[m[0],0],[m[1],l.height2]]),this},l.brush.updateScale=function(m){return this.scale=m,this},l.brush.update=function(m){this.updateScale(m||l.subX).updateExtent(),l.context.select("."+H.brush).call(this)},l.brush.clear=function(){l.context.select("."+H.brush).call(l.brush.move,null)},l.brush.selection=function(){return f.brushSelection(l.context.select("."+H.brush).node())},l.brush.selectionAsValue=function(m,C){var S,E;return m?(l.context&&(S=[this.scale(m[0]),this.scale(m[1])],E=l.context.select("."+H.brush),C&&(E=E.transition()),l.brush.move(E,S)),[]):(S=l.brush.selection()||[0,0],[this.scale.invert(S[0]),this.scale.invert(S[1])])},l.brush.empty=function(){var m=l.brush.selection();return!m||m[0]===m[1]},l.brush.updateScale(a)},D.prototype.initSubchart=function(){var a=this,l=a.config,f=a.context=a.svg.append("g").attr("transform",a.getTranslate("context"));f.style("visibility","visible"),f.append("g").attr("clip-path",a.clipPathForSubchart).attr("class",H.chart),f.select("."+H.chart).append("g").attr("class",H.chartBars),f.select("."+H.chart).append("g").attr("class",H.chartLines),f.append("g").attr("clip-path",a.clipPath).attr("class",H.brush),a.axes.subx=f.append("g").attr("class",H.axisX).attr("transform",a.getTranslate("subx")).attr("clip-path",l.axis_rotated?"":a.clipPathForXAxis).style("visibility",l.subchart_axis_x_show?"visible":"hidden")},D.prototype.initSubchartBrush=function(){var a=this;a.initBrush(a.subX).updateExtent(),a.context.select("."+H.brush).call(a.brush)},D.prototype.updateTargetsForSubchart=function(a){var C,S,E,L,l=this,f=l.context,m=l.config,U=l.classChartBar.bind(l),O=l.classBars.bind(l),J=l.classChartLine.bind(l),$=l.classLines.bind(l),ie=l.classAreas.bind(l);(E=(L=f.select("."+H.chartBars).selectAll("."+H.chartBar).data(a)).enter().append("g").style("opacity",0)).merge(L).attr("class",U),E.append("g").attr("class",O),(C=(S=f.select("."+H.chartLines).selectAll("."+H.chartLine).data(a)).enter().append("g").style("opacity",0)).merge(S).attr("class",J),C.append("g").attr("class",$),C.append("g").attr("class",ie),f.selectAll("."+H.brush+" rect").attr(m.axis_rotated?"width":"height",m.axis_rotated?l.width2:l.height2)},D.prototype.updateBarForSubchart=function(a){var l=this,f=l.context.selectAll("."+H.bars).selectAll("."+H.bar).data(l.barData.bind(l)),m=f.enter().append("path").attr("class",l.classBar.bind(l)).style("stroke","none").style("fill",l.color);f.exit().transition().duration(a).style("opacity",0).remove(),l.contextBar=m.merge(f).style("opacity",l.initialOpacity.bind(l))},D.prototype.redrawBarForSubchart=function(a,l,f){(l?this.contextBar.transition(Math.random().toString()).duration(f):this.contextBar).attr("d",a).style("opacity",1)},D.prototype.updateLineForSubchart=function(a){var l=this,f=l.context.selectAll("."+H.lines).selectAll("."+H.line).data(l.lineData.bind(l)),m=f.enter().append("path").attr("class",l.classLine.bind(l)).style("stroke",l.color);f.exit().transition().duration(a).style("opacity",0).remove(),l.contextLine=m.merge(f).style("opacity",l.initialOpacity.bind(l))},D.prototype.redrawLineForSubchart=function(a,l,f){(l?this.contextLine.transition(Math.random().toString()).duration(f):this.contextLine).attr("d",a).style("opacity",1)},D.prototype.updateAreaForSubchart=function(a){var l=this,f=l.d3,m=l.context.selectAll("."+H.areas).selectAll("."+H.area).data(l.lineData.bind(l)),C=m.enter().append("path").attr("class",l.classArea.bind(l)).style("fill",l.color).style("opacity",function(){return l.orgAreaOpacity=+f.select(this).style("opacity"),0});m.exit().transition().duration(a).style("opacity",0).remove(),l.contextArea=C.merge(m).style("opacity",0)},D.prototype.redrawAreaForSubchart=function(a,l,f){(l?this.contextArea.transition(Math.random().toString()).duration(f):this.contextArea).attr("d",a).style("fill",this.color).style("opacity",this.orgAreaOpacity)},D.prototype.redrawSubchart=function(a,l,f,m,C,S,E){var O,J,$,L=this,U=L.d3;U.event&&"zoom"===U.event.type&&L.brush.selectionAsValue(L.x.orgDomain()),a&&(L.brush.empty()||L.brush.selectionAsValue(L.x.orgDomain()),O=L.generateDrawArea(C,!0),J=L.generateDrawBar(S,!0),$=L.generateDrawLine(E,!0),L.updateBarForSubchart(f),L.updateLineForSubchart(f),L.updateAreaForSubchart(f),L.redrawBarForSubchart(J,f,f),L.redrawLineForSubchart($,f,f),L.redrawAreaForSubchart(O,f,f))},D.prototype.redrawForBrush=function(){var m,a=this,l=a.x,f=a.d3;a.redraw({withTransition:!1,withY:a.config.zoom_rescale,withSubchart:!1,withUpdateXDomain:!0,withEventRect:!1,withDimension:!1}),m=f.event.selection||a.brush.scale.range(),a.main.select("."+H.eventRect).call(a.zoom.transform,f.zoomIdentity.scale(a.width/(m[1]-m[0])).translate(-m[0],0)),a.config.subchart_onbrush.call(a.api,l.orgDomain())},D.prototype.transformContext=function(a,l){var m,f=this;l&&l.axisSubX?m=l.axisSubX:(m=f.context.select("."+H.axisX),a&&(m=m.transition())),f.context.attr("transform",f.getTranslate("context")),m.attr("transform",f.getTranslate("subx"))},D.prototype.getDefaultSelection=function(){var a=this,l=a.config,f=on(l.axis_x_selection)?l.axis_x_selection(a.getXDomain(a.data.targets)):l.axis_x_selection;return a.isTimeSeries()&&(f=[a.parseDate(f[0]),a.parseDate(f[1])]),f},D.prototype.removeSubchart=function(){var a=this;a.brush=null,a.context.remove(),a.context=null},D.prototype.initText=function(){var a=this;a.main.select("."+H.chart).append("g").attr("class",H.chartTexts),a.mainText=a.d3.selectAll([])},D.prototype.updateTargetsForText=function(a){var l=this,f=l.classChartText.bind(l),m=l.classTexts.bind(l),C=l.classFocus.bind(l),S=l.main.select("."+H.chartTexts).selectAll("."+H.chartText).data(a),E=S.enter().append("g").attr("class",f).style("opacity",0).style("pointer-events","none");E.append("g").attr("class",m),E.merge(S).attr("class",function(L){return f(L)+C(L)})},D.prototype.updateText=function(a,l,f){var m=this,C=m.config,S=m.barOrLineData.bind(m),E=m.classText.bind(m),L=m.main.selectAll("."+H.texts).selectAll("."+H.text).data(S),U=L.enter().append("text").attr("class",E).attr("text-anchor",function(O){return C.axis_rotated?O.value<0?"end":"start":"middle"}).style("stroke","none").attr("x",a).attr("y",l).style("fill",function(O){return m.color(O)}).style("fill-opacity",0);m.mainText=U.merge(L).text(function(O,J,$){return m.dataLabelFormat(O.id)(O.value,O.id,J,$)}),L.exit().transition().duration(f).style("fill-opacity",0).remove()},D.prototype.redrawText=function(a,l,f,m,C){return[(m?this.mainText.transition(C):this.mainText).attr("x",a).attr("y",l).style("fill",this.color).style("fill-opacity",f?0:this.opacityForText.bind(this))]},D.prototype.getTextRect=function(a,l,f){var E,m=this.d3.select("body").append("div").classed("c3",!0),C=m.append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0),S=this.d3.select(f).style("font");
1return C.selectAll(".dummy").data([a]).enter().append("text").classed(l||"",!0).style("font",S).text(a).each(function(){E=fi(this)}),m.remove(),E},D.prototype.generateXYForText=function(a,l,f,m){var C=this,S=C.generateGetAreaPoints(a,!1),E=C.generateGetBarPoints(l,!1),L=C.generateGetLinePoints(f,!1),U=m?C.getXForText:C.getYForText;return function(O,J){var $=C.isAreaType(O)?S:C.isBarType(O)?E:L;return U.call(C,$(O,J),O,this)}},D.prototype.getXForText=function(a,l,f){var S,E,m=this,C=fi(f);return m.config.axis_rotated?(E=m.isBarType(l)?4:6,S=a[2][1]+E*(l.value<0?-1:1)):S=m.hasType("bar")?(a[2][0]+a[0][0])/2:a[0][0],null===l.value&&(S>m.width?S=m.width-C.width:S<0&&(S=4)),S},D.prototype.getYForText=function(a,l,f){var S,m=this,C=fi(f);return m.config.axis_rotated?S=(a[0][0]+a[2][0]+.6*C.height)/2:(S=a[2][1],l.value<0||0===l.value&&!m.hasPositiveValue?(S+=C.height,m.isBarType(l)&&m.isSafari()?S-=3:!m.isBarType(l)&&m.isChrome()&&(S+=3)):S+=m.isBarType(l)?-3:-6),null===l.value&&!m.config.axis_rotated&&(S<C.height?S=C.height:S>this.height&&(S=this.height-4)),S},D.prototype.initTitle=function(){var a=this;a.title=a.svg.append("text").text(a.config.title_text).attr("class",a.CLASS.title)},D.prototype.redrawTitle=function(){var a=this;a.title.attr("x",a.xForTitle.bind(a)).attr("y",a.yForTitle.bind(a))},D.prototype.xForTitle=function(){var a=this,l=a.config,f=l.title_position||"left";return f.indexOf("right")>=0?a.currentWidth-a.getTextRect(a.title.node().textContent,a.CLASS.title,a.title.node()).width-l.title_padding.right:f.indexOf("center")>=0?Math.max((a.currentWidth-a.getTextRect(a.title.node().textContent,a.CLASS.title,a.title.node()).width)/2,0):l.title_padding.left},D.prototype.yForTitle=function(){var a=this;return a.config.title_padding.top+a.getTextRect(a.title.node().textContent,a.CLASS.title,a.title.node()).height},D.prototype.getTitlePadding=function(){return this.yForTitle()+this.config.title_padding.bottom},D.prototype.drawColorScale=function(){var C,E,L,U,O,J,$,a=this,l=a.d3,f=a.config,m=a.data.targets[0];if(C=isNaN(f.stanford_scaleWidth)?20:f.stanford_scaleWidth,5<0||C<0)throw Error("Colorscale's barheight and barwidth must be greater than 0.");L=l.range(f.stanford_padding.bottom,$=a.height-f.stanford_padding.bottom-f.stanford_padding.top,5),J=l.scaleSequential(m.colors).domain([L[L.length-1],L[0]]),a.colorScale&&a.colorScale.remove(),a.colorScale=a.svg.append("g").attr("width",50).attr("height",$).attr("class",H.colorScale),a.colorScale.append("g").attr("transform","translate(0, "+f.stanford_padding.top+")").selectAll("bars").data(L).enter().append("rect").attr("y",function(ie,ne){return 5*ne}).attr("x",0).attr("width",C).attr("height",5).attr("fill",function(ie){return J(ie)}),O=l.scaleLog().domain([m.minEpochs,m.maxEpochs]).range([L[0]+f.stanford_padding.top+L[L.length-1]+5-1,L[0]+f.stanford_padding.top]),U=l.axisRight(O),"pow10"===f.stanford_scaleFormat?U.tickValues([1,10,100,1e3,1e4,1e5,1e6,1e7]):on(f.stanford_scaleFormat)?U.tickFormat(f.stanford_scaleFormat):U.tickFormat(l.format("d")),on(f.stanford_scaleValues)&&U.tickValues(f.stanford_scaleValues(m.minEpochs,m.maxEpochs)),E=a.colorScale.append("g").attr("class","legend axis").attr("transform","translate("+C+",0)").call(U),"pow10"===f.stanford_scaleFormat&&E.selectAll(".tick text").text(null).filter(mo).text(10).append("tspan").attr("dy","-.7em").text(function(ie){return Math.round(Math.log(ie)/Math.LN10)}),a.colorScale.attr("transform","translate("+(a.currentWidth-a.xForColorScale())+", 0)")},D.prototype.xForColorScale=function(){return this.config.stanford_padding.right+fi(this.colorScale.node()).width},D.prototype.getColorScalePadding=function(){return this.xForColorScale()+this.config.stanford_padding.left+20},D.prototype.isStanfordGraphType=function(){return"stanford"===this.config.data_type},D.prototype.initStanfordData=function(){var C,S,E,a=this,l=a.d3,f=a.config,m=a.data.targets[0];if(m.values.sort($s),C=m.values.map(function(L){return L.epochs}),(E=isNaN(f.stanford_scaleMin)?l.min(C):f.stanford_scaleMin)>(S=isNaN(f.stanford_scaleMax)?l.max(C):f.stanford_scaleMax))throw Error("Number of minEpochs has to be smaller than maxEpochs");m.colors=on(f.stanford_colors)?f.stanford_colors:l.interpolateHslLong(l.hsl(250,1,.5),l.hsl(0,1,.5)),m.colorscale=l.scaleSequentialLog(m.colors).domain([E,S]),m.minEpochs=E,m.maxEpochs=S},D.prototype.getStanfordPointColor=function(a){return this.data.targets[0].c
vendor: 8,680 bytes, line 1
1olorscale(a.epochs)},D.prototype.getCentroid=function(a){var C,S,E,L,U,l=_o(a),f=0,m=0;for(C=0,S=a.length-1;C<a.length;S=C,C+=1)f+=((L=a[C]).x+(U=a[S]).x)*(E=L.x*U.y-U.x*L.y),m+=(L.y+U.y)*E;return{x:f/(E=6*l),y:m/E}},D.prototype.getStanfordTooltipTitle=function(a){var f=this.axis.getLabelText("x"),m=this.axis.getLabelText("y");return"\n <tr><th>"+(f?Ri(f):"x")+"</th><th class='value'>"+a.x+"</th></tr>\n <tr><th>"+(m?Ri(m):"y")+"</th><th class='value'>"+a.value+"</th></tr>\n "},D.prototype.countEpochsInRegion=function(a){var m,C,f=this.data.targets[0];return m=f.values.reduce(function(S,E){return S+Number(E.epochs)},0),{value:C=f.values.reduce(function(S,E){return vo(E,a)?S+Number(E.epochs):S},0),percentage:0!==C?(C/m*100).toFixed(1):0}};var _o=function(a){var f,m,C,S,l=0;for(f=0,m=a.length-1;f<a.length;m=f,f+=1)l+=(C=a[f]).x*(S=a[m]).y,l-=C.y*S.x;return l/2},vo=function(a,l){for(var f,m,C,L=a.x,U=a.value,O=!1,J=0,$=l.length-1;J<l.length;$=J++)f=l[J].x,(m=l[J].y)>U!=(C=l[$].y)>U&&L<(l[$].x-f)*(U-m)/(C-m)+f&&(O=!O);return O},$s=function(a,l){return a.epochs<l.epochs?-1:a.epochs>l.epochs?1:0};return D.prototype.initStanfordElements=function(){var a=this;a.stanfordElements=a.main.select("."+H.chart).append("g").attr("class",H.stanfordElements),a.stanfordElements.append("g").attr("class",H.stanfordLines),a.stanfordElements.append("g").attr("class",H.stanfordTexts),a.stanfordElements.append("g").attr("class",H.stanfordRegions)},D.prototype.updateStanfordElements=function(a){var C,S,E,L,U,O,l=this,f=l.main,m=l.config,J=l.xvCustom.bind(l),$=l.yvCustom.bind(l),ie=l.countEpochsInRegion.bind(l);(S=(C=f.select("."+H.stanfordLines).style("shape-rendering","geometricprecision").selectAll("."+H.stanfordLine).data(m.stanford_lines)).enter().append("g").attr("class",function(ne){return H.stanfordLine+(ne.class?" "+ne.class:"")})).append("line").attr("x1",function(ne){return m.axis_rotated?$(ne,"value_y1"):J(ne,"value_x1")}).attr("x2",function(ne){return m.axis_rotated?$(ne,"value_y2"):J(ne,"value_x2")}).attr("y1",function(ne){return m.axis_rotated?J(ne,"value_x1"):$(ne,"value_y1")}).attr("y2",function(ne){return m.axis_rotated?J(ne,"value_x2"):$(ne,"value_y2")}).style("opacity",0),l.stanfordLines=S.merge(C),l.stanfordLines.select("line").transition().duration(a).attr("x1",function(ne){return m.axis_rotated?$(ne,"value_y1"):J(ne,"value_x1")}).attr("x2",function(ne){return m.axis_rotated?$(ne,"value_y2"):J(ne,"value_x2")}).attr("y1",function(ne){return m.axis_rotated?J(ne,"value_x1"):$(ne,"value_y1")}).attr("y2",function(ne){return m.axis_rotated?J(ne,"value_x2"):$(ne,"value_y2")}).style("opacity",1),C.exit().transition().duration(a).style("opacity",0).remove(),(O=(U=f.select("."+H.stanfordTexts).selectAll("."+H.stanfordText).data(m.stanford_texts)).enter().append("g").attr("class",function(ne){return H.stanfordText+(ne.class?" "+ne.class:"")})).append("text").attr("x",function(ne){return m.axis_rotated?$(ne,"y"):J(ne,"x")}).attr("y",function(ne){return m.axis_rotated?J(ne,"x"):$(ne,"y")}).style("opacity",0),l.stanfordTexts=O.merge(U),l.stanfordTexts.select("text").transition().duration(a).attr("x",function(ne){return m.axis_rotated?$(ne,"y"):J(ne,"x")}).attr("y",function(ne){return m.axis_rotated?J(ne,"x"):$(ne,"y")}).text(function(ne){return ne.content}).style("opacity",1),U.exit().transition().duration(a).style("opacity",0).remove(),(L=(E=f.select("."+H.stanfordRegions).selectAll("."+H.stanfordRegion).data(m.stanford_regions)).enter().append("g").attr("class",function(ne){return H.stanfordRegion+(ne.class?" "+ne.class:"")})).append("polygon").attr("points",function(ne){return ne.points.map(function(ae){return[m.axis_rotated?$(ae,"y"):J(ae,"x"),m.axis_rotated?J(ae,"x"):$(ae,"y")].join(",")}).join(" ")}).style("opacity",0),L.append("text").attr("x",function(ne){return l.getCentroid(ne.points).x}).attr("y",function(ne){return l.getCentroid(ne.points).y}).style("opacity",0),l.stanfordRegions=L.merge(E),l.stanfordRegions.select("polygon").transition().duration(a).attr("points",function(ne){return ne.points.map(function(ae){return[m.axis_rotated?$(ae,"y"):J(ae,"x"),m.axis_rotated?J(ae,"x"):$(ae,"y")].join(",")}).join(" ")}).style("opacity",function(ne){return ne.opacity?ne.opacity:.2}),l.stanfordRegions.select("text").transition().duration(a).attr("x",function(ne){return m.axis_rotated?$(l.getCentroid(ne.points),"y"):J(l.getCentroid(ne.points),"x")}).attr("y",function(ne){return m.axis_rotated?J(l.getCentroid(ne.points),"x"):$(l.getCentroid(ne.points),"y")}).text(function(ne){var ae,fe,pe;return ne.text?(l.isStanfordGraphType()&&(ae=(pe=ie(ne.points)).value,fe=pe.percentage),ne.text(ae,fe)):""}).attr("text-anchor","middle").attr("dominant-baseline","middle").style("opacity",1),E.exit().transition().duration(a).style("opacity",0).remove()},D.prototype.initTooltip=function(){var f,a=this,l=a.config;if(a.tooltip=a.selectChart.style("position","relative").append("div").attr("class",H.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none"),l.tooltip_init_show){if(a.isTimeSeries()&&un(l.tooltip_init_x)){for(l.tooltip_init_x=a.parseDate(l.tooltip_init_x),f=0;f<a.data.targets[0].values.length&&a.data.targets[0].values[f].x-l.tooltip_init_x!=0;f++);l.tooltip_init_x=f}a.tooltip.html(l.tooltip_contents.call(a,a.data.targets.map(function(m){return a.addName(m.values[l.tooltip_init_x])}),a.axis.getXAxisTickFormat(),a.getYFormat(a.hasArcType()),a.color)),a.tooltip.style("top",l.tooltip_init_position.top).style("left",l.tooltip_init_position.left).style("display","block")}},D.prototype.getTooltipSortFunction=function(){var a=this,l=a.config;if(0!==l.data_groups.length&&void 0===l.tooltip_order){var S=a.orderTargets(a.data.targets).map(function(E){return E.id});return(a.isOrderAsc()||a.isOrderDesc())&&(S=S.reverse()),function(E,L){return S.indexOf(E.id)-S.indexOf(L.id)}}var f=l.tooltip_order;void 0===f&&(f=l.data_order);var m=function(E){return E?E.value:null};if(un(f)&&"asc"===f.toLowerCase())return function(E,L){return m(E)-m(L)};if(un(f)&&"desc"===f.toLowerCase())return function(E,L){return m(L)-m(E)};if(on(f)){var C=f;return void 0===l.tooltip_order&&(C=function(E,L){return f(E?{id:E.id,values:[E]}:null,L?{id:L.id,values:[L]}:null)}),C}return xa(f)?function(E,L){return f.indexOf(E.id)-f.indexOf(L.id)}:void 0},D.prototype.getTooltipContent=function(a,l,f,m){var U,O,J,$,ie,ne,C=this,S=C.config,E=S.tooltip_format_title||l,L=S.tooltip_format_name||function(pe){return pe},ae=S.tooltip_format_value;ae||(ae=C.isTargetNormalized(a.id)?function(pe,we){return(100*we).toFixed(2)+"%"}:f);var fe=this.getTooltipSortFunction();for(fe&&a.sort(fe),O=0;O<a.length;O++)if(a[O]&&(a[O].value||0===a[O].value)){if(C.isStanfordGraphType())U||(J=C.getStanfordTooltipTitle(a[O]),U="<table class='"+C.CLASS.tooltip+"'>"+J),ne=C.getStanfordPointColor(a[O]),ie=Ri(S.data_epochs),$=a[O].epochs;else if(U||(J=Ri(E?E(a[O].x,a[O].index):a[O].x),U="<table class='"+C.CLASS.tooltip+"'>"+(J||0===J?"<tr><th colspan='2'>"+J+"</th></tr>":"")),void 0!==($=Ri(ae(a[O].value,a[O].ratio,a[O].id,a[O].index,a)))){if(null===a[O].name)continue;ie=Ri(L(a[O].name,a[O].ratio,a[O].id,a[O].index)),ne=C.levelColor?C.levelColor(a[O].value):m(a[O].id)}void 0!==$&&(U+="<tr class='"+C.CLASS.tooltipName+"-"+C.getTargetSelectorSuffix(a[O].id)+"'>",U+="<td class='name'><span style='background-color:"+ne+"'></span>"+ie+"</td>",U+="<td class='value'>"+$+"</td>",U+="</tr>")}return U+"</table>"},D.prototype.tooltipPosition=function(a,l,f,m){var L,U,O,J,$,C=this,S=C.config,E=C.d3,ie=C.hasArcType(),ne=E.mouse(m);return ie?(U=(C.width-(C.isLegendRight?C.getLegendWidth():0))/2+ne[0],J=(C.hasType("gauge")?C.height:C.height/2)+ne[1]+20):(L=C.getSvgLeft(!0),S.axis_rotated?(O=(U=L+ne[0]+100)+l,$=C.currentWidth-C.getCurrentPaddingRight(),J=C.x(a[0].x)+20):(O=(U=L+C.getCurrentPaddingLeft(!0)+C.x(a[0].x)+20)+l,$=L+C.currentWidth-C.getCurrentPaddingRight(),J=ne[1]+15),O>$&&(U-=O-$+20),J+f>C.currentHeight&&(J-=f+30)),J<0&&(J=0),{top:J,left:U}},D.prototype.showTooltip=function(a,l){var C,S,E,f=this,m=f.config,L=f.hasArcType(),U=a.filter(function(J){return J&&rt(J.value)}),O=m.tooltip_position||D.prototype.tooltipPosition;0!==U.length&&m.tooltip_show?(f.tooltip.html(m.tooltip_contents.call(f,a,f.axis.getXAxisTickFormat(),f.getYFormat(L),f.color)).style("display","block"),C=f.tooltip.property("offsetWidth"),S=f.tooltip.property("offsetHeight"),E=O.call(this,U,C,S,l),f.tooltip.style("top",E.top+"px").style("left",E.left+"px")):f.hideTooltip()},D.prototype.hideTooltip=function(){this.tooltip.style("display","none")},D.prototype.setTargetType=function(a,l){var f=this,m=f.config;
1f.mapToTargetIds(a).forEach(function(C){f.withoutFadeIn[C]=l===m.data_types[C],m.data_types[C]=l}),a||(m.data_type=l)},D.prototype.hasType=function(a,l){var f=this,m=f.config.data_types,C=!1;return(l=l||f.data.targets)&&l.length?l.forEach(function(S){var E=m[S.id];(E&&E.indexOf(a)>=0||!E&&"line"===a)&&(C=!0)}):Object.keys(m).length?Object.keys(m).forEach(function(S){m[S]===a&&(C=!0)}):C=f.config.data_type===a,C},D.prototype.hasArcType=function(a){return this.hasType("pie",a)||this.hasType("donut",a)||this.hasType("gauge",a)},D.prototype.isLineType=function(a){var l=this.config,f=un(a)?a:a.id;return!l.data_types[f]||["line","spline","area","area-spline","step","area-step"].indexOf(l.data_types[f])>=0},D.prototype.isStepType=function(a){var l=un(a)?a:a.id;return["step","area-step"].indexOf(this.config.data_types[l])>=0},D.prototype.isSplineType=function(a){var l=un(a)?a:a.id;return["spline","area-spline"].indexOf(this.config.data_types[l])>=0},D.prototype.isAreaType=function(a){var l=un(a)?a:a.id;return["area","area-spline","area-step"].indexOf(this.config.data_types[l])>=0},D.prototype.isBarType=function(a){var l=un(a)?a:a.id;return"bar"===this.config.data_types[l]},D.prototype.isScatterType=function(a){var l=un(a)?a:a.id;return"scatter"===this.config.data_types[l]},D.prototype.isStanfordType=function(a){var l=un(a)?a:a.id;return"stanford"===this.config.data_types[l]},D.prototype.isPieType=function(a){var l=un(a)?a:a.id;return"pie"===this.config.data_types[l]},D.prototype.isGaugeType=function(a){var l=un(a)?a:a.id;return"gauge"===this.config.data_types[l]},D.prototype.isDonutType=function(a){var l=un(a)?a:a.id;return"donut"===this.config.data_types[l]},D.prototype.isArcType=function(a){return this.isPieType(a)||this.isDonutType(a)||this.isGaugeType(a)},D.prototype.lineData=function(a){return this.isLineType(a)?[a]:[]},D.prototype.arcData=function(a){return this.isArcType(a.data)?[a]:[]},D.prototype.barData=function(a){return this.isBarType(a)?a.values:[]},D.prototype.lineOrScatterOrStanfordData=function(a){return this.isLineType(a)||this.isScatterType(a)||this.isStanfordType(a)?a.values:[]},D.prototype.barOrLineData=function(a){return this.isBarType(a)||this.isLineType(a)?a.values:[]},D.prototype.isSafari=function(){var a=window.navigator.userAgent;return a.indexOf("Safari")>=0&&a.indexOf("Chrome")<0},D.prototype.isChrome=function(){return window.navigator.userAgent.indexOf("Chrome")>=0},D.prototype.initZoom=function(){var m,a=this,l=a.d3,f=a.config;return a.zoom=l.zoom().on("start",function(){if("scroll"===f.zoom_type){var C=l.event.sourceEvent;C&&"brush"===C.type||(m=C,f.zoom_onzoomstart.call(a.api,C))}}).on("zoom",function(){if("scroll"===f.zoom_type){var C=l.event.sourceEvent;C&&"brush"===C.type||(a.redrawForZoom(),f.zoom_onzoom.call(a.api,a.x.orgDomain()))}}).on("end",function(){if("scroll"===f.zoom_type){var C=l.event.sourceEvent;C&&"brush"===C.type||C&&m.clientX===C.clientX&&m.clientY===C.clientY||f.zoom_onzoomend.call(a.api,a.x.orgDomain())}}),a.zoom.updateDomain=function(){return l.event&&l.event.transform&&a.x.domain(f.axis_rotated&&"scroll"===f.zoom_type&&"mousemove"===l.event.sourceEvent.type?l.event.transform.rescaleY(a.subX).domain():l.event.transform.rescaleX(a.subX).domain()),this},a.zoom.updateExtent=function(){return this.scaleExtent([1,1/0]).translateExtent([[0,0],[a.width,a.height]]).extent([[0,0],[a.width,a.height]]),this},a.zoom.update=function(){return this.updateExtent().updateDomain()},a.zoom.updateExtent()},D.prototype.zoomTransform=function(a){var l=this,f=[l.x(a[0]),l.x(a[1])];return l.d3.zoomIdentity.scale(l.width/(f[1]-f[0])).translate(-f[0],0)},D.prototype.initDragZoom=function(){var a=this,l=a.d3,f=a.config,m=a.context=a.svg,C=a.margin.left+20.5,S=a.margin.top+.5;if("drag"===f.zoom_type&&f.zoom_enabled){var E=function(U){return U&&U.map(function(O){return a.x.invert(O)})},L=a.dragZoomBrush=l.brushX().on("start",function(){a.api.unzoom(),a.svg.select("."+H.dragZoom).classed("disabled",!1),f.zoom_onzoomstart.call(a.api,l.event.sourceEvent)}).on("brush",function(){f.zoom_onzoom.call(a.api,E(l.event.selection))}).on("end",function(){if(null!=l.event.selection){var U=E(l.event.selection);f.zoom_disableDefaultBehavior||a.api.zoom(U),a.svg.select("."+H.dragZoom).
1classed("disabled",!0),f.zoom_onzoomend.call(a.api,U)}});m.append("g").classed(H.dragZoom,!0).attr("clip-path",a.clipPath).attr("transform","translate("+C+","+S+")").call(L)}},D.prototype.getZoomDomain=function(){var a=this,l=a.config,f=a.d3;return[f.min([a.orgXDomain[0],l.zoom_x_min]),f.max([a.orgXDomain[1],l.zoom_x_max])]},D.prototype.redrawForZoom=function(){var a=this,l=a.d3,f=a.config,m=a.zoom,C=a.x;f.zoom_enabled&&0!==a.filterTargetsToShow(a.data.targets).length&&(m.update(),!f.zoom_disableDefaultBehavior&&(a.isCategorized()&&C.orgDomain()[0]===a.orgXDomain[0]&&C.domain([a.orgXDomain[0]-1e-10,C.orgDomain()[1]]),a.redraw({withTransition:!1,withY:f.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),l.event.sourceEvent&&"mousemove"===l.event.sourceEvent.type&&(a.cancelClick=!0)))},hi}()},1078:(ya,ur,Ue)=>{"use strict";Ue.r(ur),Ue.d(ur,{FormatSpecifier:()=>Wi,active:()=>Dm,arc:()=>Jk,area:()=>Rw,areaRadial:()=>zw,ascending:()=>rt,autoType:()=>Af,axisBottom:()=>zn,axisLeft:()=>vn,axisRight:()=>gi,axisTop:()=>nn,bisect:()=>Xn,bisectLeft:()=>Ys,bisectRight:()=>nt,bisector:()=>hn,blob:()=>s1,brush:()=>qm,brushSelection:()=>Im,brushX:()=>Fd,brushY:()=>Fm,buffer:()=>l1,chord:()=>Jd,clientPoint:()=>Oo,cluster:()=>qT,color:()=>ki,contourDensity:()=>C_,contours:()=>vf,create:()=>Ok,creator:()=>Ct,cross:()=>ba,csv:()=>Gf,csvFormat:()=>N_,csvFormatBody:()=>O_,csvFormatRow:()=>F_,csvFormatRows:()=>I_,csvFormatValue:()=>q_,csvParse:()=>L_,csvParseRows:()=>Tf,cubehelix:()=>as,curveBasis:()=>f6,curveBasisClosed:()=>h6,curveBasisOpen:()=>p6,curveBundle:()=>g6,curveCardinal:()=>m6,curveCardinalClosed:()=>_6,curveCardinalOpen:()=>v6,curveCatmullRom:()=>y6,curveCatmullRomClosed:()=>x6,curveCatmullRomOpen:()=>b6,curveLinear:()=>Vh,curveLinearClosed:()=>w6,curveMonotoneX:()=>C6,curveMonotoneY:()=>T6,curveNatural:()=>S6,curveStep:()=>A6,curveStepAfter:()=>M6,curveStepBefore:()=>k6,customEvent:()=>id,descending:()=>Ke,deviation:()=>mo,dispatch:()=>gn.Z,drag:()=>sc,dragDisable:()=>Mo,dragEnable:()=>Do,dsv:()=>Rf,dsvFormat:()=>ls,easeBack:()=>If,easeBackIn:()=>ry,easeBackInOut:()=>If,easeBackOut:()=>i1,easeBounce:()=>Ba,easeBounceIn:()=>n1,easeBounceInOut:()=>Of,easeBounceOut:()=>Ba,easeCircle:()=>Q_,easeCircleIn:()=>ty,easeCircleInOut:()=>Q_,easeCircleOut:()=>X_,easeCubic:()=>jr.tw,easeCubicIn:()=>jr.yD,easeCubicInOut:()=>jr.tw,easeCubicOut:()=>jr._e,easeElastic:()=>Ff,easeElasticIn:()=>r1,easeElasticInOut:()=>a1,easeElasticOut:()=>Ff,easeExp:()=>W_,easeExpIn:()=>Kv,easeExpInOut:()=>W_,easeExpOut:()=>ey,easeLinear:()=>z_,easePoly:()=>J_,easePolyIn:()=>Df,easePolyInOut:()=>J_,easePolyOut:()=>$_,easeQuad:()=>Mf,easeQuadIn:()=>Y_,easeQuadInOut:()=>Mf,easeQuadOut:()=>kf,easeSin:()=>B_,easeSinIn:()=>j_,easeSinInOut:()=>B_,easeSinOut:()=>Qv,entries:()=>t_,event:()=>At,extent:()=>_o,forceCenter:()=>m1,forceCollide:()=>Qe,forceLink:()=>Rt,forceManyBody:()=>kt,forceRadial:()=>Lt,forceSimulation:()=>Me,forceX:()=>na,forceY:()=>Wa,format:()=>eo,formatDefaultLocale:()=>mc,formatLocale:()=>zf,formatPrefix:()=>gc,formatSpecifier:()=>Mr,geoAlbers:()=>ux,geoAlbersUsa:()=>mT,geoArea:()=>C1,geoAzimuthalEqualArea:()=>_T,geoAzimuthalEqualAreaRaw:()=>o0,geoAzimuthalEquidistant:()=>vT,geoAzimuthalEquidistantRaw:()=>s0,geoBounds:()=>wC,geoCentroid:()=>MC,geoCircle:()=>DC,geoClipAntimeridian:()=>q1,geoClipCircle:()=>Py,geoClipExtent:()=>UC,geoClipRectangle:()=>sh,geoConicConformal:()=>xT,geoConicConformalRaw:()=>hx,geoConicEqualArea:()=>yh,geoConicEqualAreaRaw:()=>cx,geoConicEquidistant:()=>wT,geoConicEquidistantRaw:()=>px,geoContains:()=>$C,geoDistance:()=>uh,geoEqualEarth:()=>TT,geoEqualEarthRaw:()=>l0,geoEquirectangular:()=>bT,geoEquirectangularRaw:()=>Oc,geoGnomonic:()=>ST,geoGnomonicRaw:()=>c0,geoGraticule:()=>Hy,geoGraticule10:()=>JC,geoIdentity:()=>AT,geoInterpolate:()=>jC,geoLength:()=>Ly,geoMercator:()=>yT,geoMercatorRaw:()=>Nc,geoNaturalEarth1:()=>kT,geoNaturalEarth1Raw:()=>u0,geoOrthographic:()=>MT,geoOrthographicRaw:()=>d0,geoPath:()=>oT,geoProjection:()=>nr,geoProjectionMutator:()=>r0,geoRotation:()=>xy,geoStereographic:()=>DT,geoStereographicRaw:()=>f0,geoStream:()=>vt,geoTransform:()=>sT,geoTransverseMercator:()=>ZT,geoTransverseMercatorRaw:()=>h0,gray:()=>i_,hcl:()=>is,hierarchy:()=>p0,histogram:()=>$,hsl:()=>Eo,html:()=>p1,image:()=>d1,interpolate:()=>Fa,interpolateArray:()=>Bp,interpolateBasis:()=>Ju,interpolateBasisClosed:()=>ju,interpolateBlues:()=>hk,interpolateBrBG:()=>$A,interpolateBuGn:()=>tk,interpolateBuPu:()=>nk,interpolateCividis:()=>yk,interpolateCool:()=>Sk,interpolateCubehelix:()=>I3,interpolateCubehelixDefault:()=>Ck,interpolateCubehelixLong:()=>F3,interpolateDate:()=>Ku,interpolateDiscrete:()=>S3,interpolateGnBu:()=>ik,interpolateGreens:()=>pk,interpolateGreys:()=>gk,interpolateHcl:()=>N3,interpolateHclLong:()=>O3,interpolateHsl:()=>E3,interpolateHslLong:()=>P3,interpolateHue:()=>A3,interpolateInferno:()=>Lk,interpolateLab:()=>L3,interpolateMagma:()=>Pk,interpolateNumber:()=>$n,interpolateNumberArray:()=>gl,interpolateObject:()=>ed,interpolateOrRd:()=>rk,interpolateOranges:()=>vk,interpolatePRGn:()=>JA,interpolatePiYG:()=>jA,interpolatePlasma:()=>Nk,interpolatePuBu:()=>ok,interpolatePuBuGn:()=>ak,interpolatePuOr:()=>BA,interpolatePuRd:()=>sk,interpolatePurples:()=>mk,interpolateRainbow:()=>Ak,interpolateRdBu:()=>WA,interpolateRdGy:()=>XA,interpolateRdPu:()=>lk,interpolateRdYlBu:()=>QA,interpolateRdYlGn:()=>KA,interpolateReds:()=>_k,interpolateRgb:()=>Ia,interpolateRgbBasis:()=>Jp,interpolateRgbBasisClosed:()=>jp,interpolateRound:()=>Ex,interpolateSinebow:()=>Dk,interpolateSpectral:()=>ek,interpolateString:()=>_l,interpolateTransformCss:()=>Td,interpolateTransformSvg:()=>Sd,interpolateTurbo:()=>Zk,interpolateViridis:()=>Ek,interpolateWarm:()=>Tk,interpolateYlGn:()=>uk,interpolateYlGnBu:()=>ck,interpolateYlOrBr:()=>dk,interpolateYlOrRd:()=>fk,interpolateZoom:()=>Z3,interrupt:()=>$o,interval:()=>Y6,isoFormat:()=>G6,isoParse:()=>z6,json:()=>f1,keys:()=>Km,lab:()=>ts,lch:()=>r_,line:()=>B0,lineRadial:()=>Vw,linkHorizontal:()=>n6,linkRadial:()=>r6,linkVertical:()=>i6,local:()=>Iw,map:()=>zi,matcher:()=>qa,max:()=>fe,mean:()=>pe,median:()=>we,merge:()=>be,min:()=>Ze,mouse:()=>kg,namespace:()=>mr,namespaces:()=>Sl,nest:()=>Wm,now:()=>Nt.zO,pack:()=>c3,packEnclose:()=>mx,packSiblings:()=>o3,pairs:()=>Ht,partition:()=>u3,path:()=>wr.Z,permute:()=>mt,pie:()=>Wk,piecewise:()=>q3,pointRadial:()=>iu,polygonArea:()=>R3,polygonCentroid:()=>G3,polygonContains:()=>
vendor: 10,202 bytes, line 1
1Y3,polygonHull:()=>z3,polygonLength:()=>$3,precisionFixed:()=>_c,precisionPrefix:()=>to,precisionRound:()=>Yf,quadtree:()=>ke,quantile:()=>ie,quantize:()=>U3,radialArea:()=>zw,radialLine:()=>Vw,randomBates:()=>B3,randomExponential:()=>W3,randomIrwinHall:()=>Ux,randomLogNormal:()=>j3,randomNormal:()=>qx,randomUniform:()=>J3,range:()=>m,rgb:()=>Oa,ribbon:()=>Bm,scaleBand:()=>w0,scaleDiverging:()=>Vb,scaleDivergingLog:()=>zb,scaleDivergingPow:()=>I0,scaleDivergingSqrt:()=>xA,scaleDivergingSymlog:()=>Yb,scaleIdentity:()=>Jx,scaleImplicit:()=>x0,scaleLinear:()=>$x,scaleLog:()=>Qx,scaleOrdinal:()=>b0,scalePoint:()=>X3,scalePow:()=>M0,scaleQuantile:()=>ib,scaleQuantize:()=>rb,scaleSequential:()=>Ub,scaleSequentialLog:()=>Rb,scaleSequentialPow:()=>O0,scaleSequentialQuantile:()=>Hb,scaleSequentialSqrt:()=>yA,scaleSequentialSymlog:()=>Gb,scaleSqrt:()=>lS,scaleSymlog:()=>tb,scaleThreshold:()=>ab,scaleTime:()=>pA,scaleUtc:()=>vA,scan:()=>lt,schemeAccent:()=>wA,schemeBlues:()=>Sw,schemeBrBG:()=>rw,schemeBuGn:()=>hw,schemeBuPu:()=>pw,schemeCategory10:()=>bA,schemeDark2:()=>CA,schemeGnBu:()=>gw,schemeGreens:()=>Aw,schemeGreys:()=>kw,schemeOrRd:()=>mw,schemeOranges:()=>Zw,schemePRGn:()=>aw,schemePaired:()=>TA,schemePastel1:()=>SA,schemePastel2:()=>AA,schemePiYG:()=>ow,schemePuBu:()=>vw,schemePuBuGn:()=>_w,schemePuOr:()=>sw,schemePuRd:()=>yw,schemePurples:()=>Mw,schemeRdBu:()=>lw,schemeRdGy:()=>cw,schemeRdPu:()=>xw,schemeRdYlBu:()=>uw,schemeRdYlGn:()=>dw,schemeReds:()=>Dw,schemeSet1:()=>kA,schemeSet2:()=>MA,schemeSet3:()=>DA,schemeSpectral:()=>fw,schemeTableau10:()=>ZA,schemeYlGn:()=>ww,schemeYlGnBu:()=>bw,schemeYlOrBr:()=>Cw,schemeYlOrRd:()=>Tw,select:()=>Vi,selectAll:()=>Fk,selection:()=>zr,selector:()=>yi,selectorAll:()=>Mi,set:()=>Qm,shuffle:()=>dt,stack:()=>Z6,stackOffsetDiverging:()=>P6,stackOffsetExpand:()=>E6,stackOffsetNone:()=>Os,stackOffsetSilhouette:()=>L6,stackOffsetWiggle:()=>N6,stackOrderAppearance:()=>h2,stackOrderAscending:()=>p2,stackOrderDescending:()=>I6,stackOrderInsideOut:()=>F6,stackOrderNone:()=>Is,stackOrderReverse:()=>q6,stratify:()=>p3,style:()=>Sn,sum:()=>pt,svg:()=>g1,symbol:()=>d6,symbolCircle:()=>K0,symbolCross:()=>Yw,symbolDiamond:()=>Jw,symbolSquare:()=>Ww,symbolStar:()=>Bw,symbolTriangle:()=>Xw,symbolWye:()=>Qw,symbols:()=>u6,text:()=>hs,thresholdFreedmanDiaconis:()=>ne,thresholdScott:()=>ae,thresholdSturges:()=>J,tickFormat:()=>Yx,tickIncrement:()=>U,tickStep:()=>O,ticks:()=>L,timeDay:()=>zc.Z,timeDays:()=>zc.a,timeFormat:()=>E0,timeFormatDefaultLocale:()=>Eb,timeFormatLocale:()=>gb,timeFriday:()=>zt.mC,timeFridays:()=>zt.b$,timeHour:()=>cb,timeHours:()=>uS,timeInterval:()=>ir.Z,timeMillisecond:()=>Eh,timeMilliseconds:()=>pb,timeMinute:()=>db,timeMinutes:()=>dS,timeMonday:()=>zt.wA,timeMondays:()=>zt.bJ,timeMonth:()=>sb,timeMonths:()=>cS,timeParse:()=>Zb,timeSaturday:()=>zt.EY,timeSaturdays:()=>zt.Ff,timeSecond:()=>Dh,timeSeconds:()=>hb,timeSunday:()=>zt.OM,timeSundays:()=>zt.vm,timeThursday:()=>zt.bL,timeThursdays:()=>zt.$t,timeTuesday:()=>zt.sy,timeTuesdays:()=>zt.aU,timeWednesday:()=>zt.zg,timeWednesdays:()=>zt.Ld,timeWeek:()=>zt.OM,timeWeeks:()=>zt.vm,timeYear:()=>fa.Z,timeYears:()=>fa.g,timeout:()=>Yr.Z,timer:()=>Nt.HT,timerFlush:()=>Nt.R8,touch:()=>rd,touches:()=>qk,transition:()=>Ed,transpose:()=>Be,tree:()=>x3,treemap:()=>b3,treemapBinary:()=>w3,treemapDice:()=>Gc,treemapResquarify:()=>T3,treemapSlice:()=>Ah,treemapSliceDice:()=>C3,treemapSquarify:()=>Zx,tsv:()=>u1,tsvFormat:()=>R_,tsvFormatBody:()=>G_,tsvFormatRow:()=>Xv,tsvFormatRows:()=>Wv,tsvFormatValue:()=>H_,tsvParse:()=>Sf,tsvParseRows:()=>U_,utcDay:()=>Yc.Z,utcDays:()=>Yc.y,utcFormat:()=>Ph,utcFriday:()=>Yt.QQ,utcFridays:()=>Yt.fz,utcHour:()=>Ib,utcHours:()=>mA,utcMillisecond:()=>Eh,utcMilliseconds:()=>pb,utcMinute:()=>qb,utcMinutes:()=>_A,utcMonday:()=>Yt.l6,utcMondays:()=>Yt.$3,utcMonth:()=>Nb,utcMonths:()=>gA,utcParse:()=>P0,utcSaturday:()=>Yt.g4,utcSaturdays:()=>Yt.Q_,utcSecond:()=>Dh,utcSeconds:()=>hb,utcSunday:()=>Yt.Ox,utcSundays:()=>Yt.SU,utcThursday:()=>Yt.hB,utcThursdays:()=>Yt.xj,utcTuesday:()=>Yt.J1,utcTuesdays:()=>Yt.DK,utcWednesday:()=>Yt.b3,utcWednesdays:()=>Yt.uy,utcWeek:()=>Yt.Ox,utcWeeks:()=>Yt.SU,utcYear:()=>ha.Z,utcYears:()=>ha.D,values:()=>e_,variance:()=>wa,version:()=>Ae,voronoi:()=>uM,window:()=>_r,xml:()=>h1,zip:()=>$e,zoom:()=>h5,zoomIdentity:()=>up,zoomTransform:()=>_C});var Ae="5.16.0";function rt(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function hn(t){return 1===t.length&&(t=function Ri(t){return function(n,r){return rt(t(n),r)}}(t)),{left:function(n,r,o,s){for(null==o&&(o=0),null==s&&(s=n.length);o<s;){var u=o+s>>>1;t(n[u],r)<0?o=u+1:s=u}return o},right:function(n,r,o,s){for(null==o&&(o=0),null==s&&(s=n.length);o<s;){var u=o+s>>>1;t(n[u],r)>0?s=u:o=u+1}return o}}}var V=hn(rt),nt=V.right,Ys=V.left;const Xn=nt;function Ht(t,n){null==n&&(n=H);for(var r=0,o=t.length-1,s=t[0],u=new Array(o<0?0:o);r<o;)u[r]=n(s,s=t[++r]);return u}function H(t,n){return[t,n]}function ba(t,n,r){var h,g,v,y,o=t.length,s=n.length,u=new Array(o*s);for(null==r&&(r=H),h=v=0;h<o;++h)for(y=t[h],g=0;g<s;++g,++v)u[v]=r(y,n[g]);return u}function Ke(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function hi(t){return null===t?NaN:+t}function wa(t,n){var h,g,r=t.length,o=0,s=-1,u=0,v=0;if(null==n)for(;++s<r;)isNaN(h=hi(t[s]))||(v+=(g=h-u)*(h-(u+=g/++o)));else for(;++s<r;)isNaN(h=hi(n(t[s],s,t)))||(v+=(g=h-u)*(h-(u+=g/++o)));if(o>1)return v/(o-1)}function mo(t,n){var r=wa(t,n);return r&&Math.sqrt(r)}function _o(t,n){var s,u,h,r=t.length,o=-1;if(null==n){for(;++o<r;)if(null!=(s=t[o])&&s>=s)for(u=h=s;++o<r;)null!=(s=t[o])&&(u>s&&(u=s),h<s&&(h=s))}else for(;++o<r;)if(null!=(s=n(t[o],o,t))&&s>=s)for(u=h=s;++o<r;)null!=(s=n(t[o],o,t))&&(u>s&&(u=s),h<s&&(h=s));return[u,h]}var vo=Array.prototype,$s=vo.slice,a=vo.map;function l(t){return function(){return t}}function f(t){return t}function m(t,n,r){t=+t,n=+n,r=(s=arguments.length)<2?(n=t,t=0,1):s<3?1:+r;for(var o=-1,s=0|Math.max(0,Math.ceil((n-t)/r)),u=new Array(s);++o<s;)u[o]=t+o*r;return u}var C=Math.sqrt(50),S=Math.sqrt(10),E=Math.sqrt(2);function L(t,n,r){var o,u,h,g,s=-1;if(r=+r,(t=+t)==(n=+n)&&r>0)return[t];if((o=n<t)&&(u=t,t=n,n=u),0===(g=U(t,n,r))||!isFinite(g))return[];if(g>0)for(t=Math.ceil(t/g),n=Math.floor(n/g),h=new Array(u=Math.ceil(n-t+1));++s<u;)h[s]=(t+s)*g;else for(t=Math.floor(t*g),n=Math.ceil(n*g),h=new Array(u=Math.ceil(t-n+1));++s<u;)h[s]=(t-s)/g;return o&&h.reverse(),h}function U(t,n,r){var o=(n-t)/Math.max(0,r),s=Math.floor(Math.log(o)/Math.LN10),u=o/Math.pow(10,s);return s>=0?(u>=C?10:u>=S?5:u>=E?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(u>=C?10:u>=S?5:u>=E?2:1)}function O(t,n,r){var o=Math.abs(n-t)/Math.max(0,r),s=Math.pow(10,Math.floor(Math.log(o)/Math.LN10)),u=o/s;return u>=C?s*=10:u>=S?s*=5:u>=E&&(s*=2),n<t?-s:s}function J(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function $(){var t=f,n=_o,r=J;function o(s){var u,g,h=s.length,v=new Array(h);for(u=0;u<h;++u)v[u]=t(s[u],u,s);var y=n(v),x=y[0],T=y[1],b=r(v,x,T);Array.isArray(b)||(b=O(x,T,b),b=m(Math.ceil(x/b)*b,T,b));for(var A=b.length;b[0]<=x;)b.shift(),--A;for(;b[A-1]>T;)b.pop(),--A;var M,Z=new Array(A+1);for(u=0;u<=A;++u)(M=Z[u]=[]).x0=u>0?b[u-1]:x,M.x1=u<A?b[u]:T;for(u=0;u<h;++u)x<=(g=v[u])&&g<=T&&Z[Xn(b,g,0,A)].push(s[u]);return Z}return o.value=function(s){return arguments.length?(t="function"==typeof s?s:l(s),o):t},o.domain=function(s){return arguments.length?(n="function"==typeof s?s:l([s[0],s[1]]),o):n},o.thresholds=function(s){return arguments.length?(r="function"==typeof s?s:Array.isArray(s)?l($s.call(s)):l(s),o):r},o}function ie(t,n,r){if(null==r&&(r=hi),o=t.length){if((n=+n)<=0||o<2)return+r(t[0],0,t);if(n>=1)return+r(t[o-1],o-1,t);var o,s=(o-1)*n,u=Math.floor(s),h=+r(t[u],u,t);return h+(+r(t[u+1],u+1,t)-h)*(s-u)}}function ne(t,n,r){return t=a.call(t,hi).sort(rt),Math.ceil((r-n)/(2*(ie(t,.75)-ie(t,.25))*Math.pow(t.length,-1/3)))}function ae(t,n,r){return Math.ceil((r-n)/(3.5*mo(t)*Math.pow(t.length,-1/3)))}function fe(t,n){var s,u,r=t.length,o=-1;if(null==n){for(;++o<r;)if(null!=(s=t[o])&&s>=s)for(u=s;++o<r;)null!=(s=t[o])&&s>u&&(u=s)}else for(;++o<r;)if(null!=(s=n(t[o],o,t))&&s>=s)for(u=s;++o<r;)null!=(s=n(t[o],o,t))&&s>u&&(u=s);return u}function pe(t,n){var u,r=t.length,o=r,s=-1,h=0;if(null==n)for(;++s<r;)isNaN(u=hi(t[s]))?--o:h+=u;else for(;++s<r;)isNaN(u=hi(n(t[s],s,t)))?--o:h+=u;if(o)return h/o}function we(t,n){var s,r=t.length,o=-1,u=[];if(null==n)for(;++o<r;)isNaN(s=hi(t[o]))||u.push(s);else for(;++o<r;)isNaN(s=hi(n(t[o],o,t)))||u.push(s);return ie(u.sort(rt),.5)}function be(t){for(var r,u,h,n=t.length,o=-1,s=0;++o<n;)s+=t[o].length;for(u=new Array(s);--n>=0;)for(r=(h=t[n]).length;--r>=0;)u[--s]=h[r];return u}function Ze(t,n){var s,u,r=t.length,o=-1;if(null==n){for(;++o<r;)if(null!=(s=t[o])&&s>=s)for(u=s;++o<r;)null!=(s=t[o])&&u>s&&(u=s)}else for(;++o<r;)if(null!=(s=n(t[o],o,t))&&s>=s)for(u=s;++o<r;)null!=(s=n(t[o],o,t))&&u>s&&(u=s);return u}function mt(t,n){for(var r=n.length,o=new Array(r);r--;)o[r]=t[n[r]];return o}function lt(t,n){if(r=t.length){var r,u,o=0,s=0,h=t[s];for(null==n&&(n=rt);++o<r;)(n(u=t[o],h)<0||0!==n(h,h))&&(h=u,s=o);if(0===n(h,h))return s}}function dt(t,n,r){for(var s,u,o=(r??t.length)-(n=null==n?0:+n);o;)u=Math.random()*o--|0,s=t[o+n],t[o+n]=t[u+n],t[u+n]=s;return t}function pt(t,n){var s,r=t.length,o=-1,u=0;if(null==n)for(;++o<r;)(s=+t[o])&&(u+=s);else for(;++o<r;)(s=+n(t[o],o,t))&&(u+=s);return u}function Be(t){if(!(u=t.length))return[];for(var n=-1,r=Ze(t,Ut),o=new Array(r);++n<r;)for(var u,s=-1,h=o[n]=new Array(u);++s<u;)h[s]=t[s][n];return o}function Ut(t){return t.length}function $e(){return Be(arguments)}var Ee=Array.prototype.slice;function Re(t){return t}var yt=1,Jt=2,sn=3,Wt=4,tn=1e-6;function pn(t){return"translate("+(t+.5)+",0)"}function Tt(t){return"translate(0,"+(t+.5)+")"}function xe(t){return function(n){return+t(n)}}function Xe(t){var n=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(n=Math.round(n)),function(r){return+t(r)+n}}function Vn(){return!this.__axis}function pi(t,n){var r=[],o=null,s=null,u=6,h=6,g=3,v=t===yt||t===Wt?-1:1,y=t===Wt||t===Jt?"x":"y",x=t===yt||t===sn?pn:Tt;function T(b){var A=o??(n.ticks?n.ticks.apply(n,r):n.domain()),Z=s??(n.tickFormat?n.tick
1Format.apply(n,r):Re),M=Math.max(u,0)+g,P=n.range(),N=+P[0]+.5,R=+P[P.length-1]+.5,F=(n.bandwidth?Xe:xe)(n.copy()),G=b.selection?b.selection():b,j=G.selectAll(".domain").data([null]),Q=G.selectAll(".tick").data(A,n).order(),X=Q.exit(),de=Q.enter().append("g").attr("class","tick"),se=Q.select("line"),ue=Q.select("text");j=j.merge(j.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Q=Q.merge(de),se=se.merge(de.append("line").attr("stroke","currentColor").attr(y+"2",v*u)),ue=ue.merge(de.append("text").attr("fill","currentColor").attr(y,v*M).attr("dy",t===yt?"0em":t===sn?"0.71em":"0.32em")),b!==G&&(j=j.transition(b),Q=Q.transition(b),se=se.transition(b),ue=ue.transition(b),X=X.transition(b).attr("opacity",tn).attr("transform",function(oe){return isFinite(oe=F(oe))?x(oe):this.getAttribute("transform")}),de.attr("opacity",tn).attr("transform",function(oe){var z=this.parentNode.__axis;return x(z&&isFinite(z=z(oe))?z:F(oe))})),X.remove(),j.attr("d",t===Wt||t==Jt?h?"M"+v*h+","+N+"H0.5V"+R+"H"+v*h:"M0.5,"+N+"V"+R:h?"M"+N+","+v*h+"V0.5H"+R+"V"+v*h:"M"+N+",0.5H"+R),Q.attr("opacity",1).attr("transform",function(oe){return x(F(oe))}),se.attr(y+"2",v*u),ue.attr(y,v*M).text(Z),G.filter(Vn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Jt?"start":t===Wt?"end":"middle"),G.each(function(){this.__axis=F})}
vendor: 6,447 bytes, line 1
1return T.scale=function(b){return arguments.length?(n=b,T):n},T.ticks=function(){return r=Ee.call(arguments),T},T.tickArguments=function(b){return arguments.length?(r=null==b?[]:Ee.call(b),T):r.slice()},T.tickValues=function(b){return arguments.length?(o=null==b?null:Ee.call(b),T):o&&o.slice()},T.tickFormat=function(b){return arguments.length?(s=b,T):s},T.tickSize=function(b){return arguments.length?(u=h=+b,T):u},T.tickSizeInner=function(b){return arguments.length?(u=+b,T):u},T.tickSizeOuter=function(b){return arguments.length?(h=+b,T):h},T.tickPadding=function(b){return arguments.length?(g=+b,T):g},T}function nn(t){return pi(yt,t)}function gi(t){return pi(Jt,t)}function zn(t){return pi(sn,t)}function vn(t){return pi(Wt,t)}var gn=Ue(6655);function yn(){}function Qn(t){return null==t?yn:function(){return this.querySelector(t)}}function Ca(){return[]}function Js(t){return new Array(t.length)}function xo(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}xo.prototype={constructor:xo,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Sa(t,n,r,o,s,u){for(var g,h=0,v=n.length,y=u.length;h<y;++h)(g=n[h])?(g.__data__=u[h],o[h]=g):r[h]=new xo(t,u[h]);for(;h<v;++h)(g=n[h])&&(s[h]=g)}function yu(t,n,r,o,s,u,h){var g,v,A,y={},x=n.length,T=u.length,b=new Array(x);for(g=0;g<x;++g)(v=n[g])&&(b[g]=A="$"+h.call(v,v.__data__,g,n),A in y?s[g]=v:y[A]=v);for(g=0;g<T;++g)(v=y[A="$"+h.call(t,u[g],g,u)])?(o[g]=v,v.__data__=u[g],y[A]=null):r[g]=new xo(t,u[g]);for(g=0;g<x;++g)(v=n[g])&&y[b[g]]===v&&(s[g]=v)}function bo(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}var Bs="http://www.w3.org/1999/xhtml";const mi={svg:"http://www.w3.org/2000/svg",xhtml:Bs,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function xu(t){var n=t+="",r=n.indexOf(":");return r>=0&&"xmlns"!==(n=t.slice(0,r))&&(t=t.slice(r+1)),mi.hasOwnProperty(n)?{space:mi[n],local:t}:t}function Ws(t){return function(){this.removeAttribute(t)}}function Kn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Xs(t,n){return function(){this.setAttribute(t,n)}}function Si(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Aa(t,n){return function(){var r=n.apply(this,arguments);null==r?this.removeAttribute(t):this.setAttribute(t,r)}}function bp(t,n){return function(){var r=n.apply(this,arguments);null==r?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function bu(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Cp(t){return function(){this.style.removeProperty(t)}}function Tp(t,n,r){return function(){this.style.setProperty(t,n,r)}}function Qs(t,n,r){return function(){var o=n.apply(this,arguments);null==o?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function Ks(t){return function(){delete this[t]}}function el(t,n){return function(){this[t]=n}}function wu(t,n){return function(){var r=n.apply(this,arguments);null==r?delete this[t]:this[t]=r}}function To(t){return t.trim().split(/^|\s+/)}function tl(t){return t.classList||new Tu(t)}function Tu(t){this._node=t,this._names=To(t.getAttribute("class")||"")}function Su(t,n){for(var r=tl(t),o=-1,s=n.length;++o<s;)r.add(n[o])}function So(t,n){for(var r=tl(t),o=-1,s=n.length;++o<s;)r.remove(n[o])}function kp(t){return function(){Su(this,t)}}function Mp(t){return function(){So(this,t)}}function Au(t,n){return function(){(n.apply(this,arguments)?Su:So)(this,t)}}function nl(){this.textContent=""}function Zp(t){return function(){this.textContent=t}}function dr(t){return function(){var n=t.apply(this,arguments);this.textContent=n??""}}function il(){this.innerHTML=""}function rl(t){return function(){this.innerHTML=t}}function ka(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n??""}}function Ur(){this.nextSibling&&this.parentNode.appendChild(this)}function Lp(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Np(t){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===Bs&&n.documentElement.namespaceURI===Bs?n.createElement(t):n.createElementNS(r,t)}}function al(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Da(t){var n=xu(t);return(n.local?al:Np)(n)}function Du(){return null}function Zu(){var t=this.parentNode;t&&t.removeChild(this)}function Ao(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Ai(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}Tu.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Eu={},Pt=null;function Pu(t,n,r){return t=ll(t,n,r),function(o){var s=o.relatedTarget;(!s||s!==this&&!(8&s.compareDocumentPosition(this)))&&t.call(this,o)}}function ll(t,n,r){return function(o){var s=Pt;Pt=o;try{t.call(this,this.__data__,n,r)}finally{Pt=s}}}function Fp(t){return function(){var n=this.__on;if(n){for(var u,r=0,o=-1,s=n.length;r<s;++r)u=n[r],t.type&&u.type!==t.type||u.name!==t.name?n[++o]=u:this.removeEventListener(u.type,u.listener,u.capture);++o?n.length=o:delete this.__on}}}function Nu(t,n,r){var o=Eu.hasOwnProperty(t.type)?Pu:ll;return function(s,u,h){var v,g=this.__on,y=o(n,u,h);if(g)for(var x=0,T=g.length;x<T;++x)if((v=g[x]).type===t.type&&v.name===t.name)return this.removeEventListener(v.type,v.listener,v.capture),this.addEventListener(v.type,v.listener=y,v.capture=r),void(v.value=n);this.addEventListener(t.type,y,r),v={type:t.type,name:t.name,value:n,listener:y,capture:r},g?g.push(v):this.__on=[v]}}function Za(t,n,r,o){var s=Pt;t.sourceEvent=Pt,Pt=t;try{return n.apply(r,o)}finally{Pt=s}}function cl(t,n,r){var o=bu(t),s=o.CustomEvent;"function"==typeof s?s=new s(n,r):(s=o.document.createEvent("Event"),r?(s.initEvent(n,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(n,!1,!1)),t.dis
1patchEvent(s)}function qp(t,n){return function(){return cl(this,t,n)}}function Up(t,n){return function(){return cl(this,t,n.apply(this,arguments))}}typeof document<"u"&&("onmouseenter"in document.documentElement||(Eu={mouseenter:"mouseover",mouseleave:"mouseout"}));var hr=[null];function Ln(t,n){this._groups=t,this._parents=n}function ko(t){return"string"==typeof t?new Ln([[document.querySelector(t)]],[document.documentElement]):new Ln([[t]],hr)}function ul(){Pt.stopImmediatePropagation()}function Rr(){Pt.preventDefault(),Pt.stopImmediatePropagation()}function Mo(t){var n=t.document.documentElement,r=ko(t).on("dragstart.drag",Rr,!0);"onselectstart"in n?r.on("selectstart.drag",Rr,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function Do(t,n){var r=t.document.documentElement,o=ko(t).on("dragstart.drag",null);n&&(o.on("click.drag",Rr,!0),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in r?o.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}function ei(t,n,r){t.prototype=n.prototype=r,r.constructor=t}function Ea(t,n){var r=Object.create(t.prototype);for(var o in n)r[o]=n[o];return r}function Hi(){}Ln.prototype=function Fu(){return new Ln([[document.documentElement]],hr)}.prototype={constructor:Ln,select:function Fr(t){"function"!=typeof t&&(t=Qn(t));for(var n=this._groups,r=n.length,o=new Array(r),s=0;s<r;++s)for(var v,y,u=n[s],h=u.length,g=o[s]=new Array(h),x=0;x<h;++x)(v=u[x])&&(y=t.call(v,v.__data__,x,u))&&("__data__"in v&&(y.__data__=v.__data__),g[x]=y);return new Ln(o,this._parents)},selectAll:function Ta(t){"function"!=typeof t&&(t=function Yn(t){return null==t?Ca:function(){return this.querySelectorAll(t)}}(t));for(var n=this._groups,r=n.length,o=[],s=[],u=0;u<r;++u)for(var v,h=n[u],g=h.length,y=0;y<g;++y)(v=h[y])&&(o.push(t.call(v,v.__data__,y,h)),s.push(v));return new Ln(o,s)},filter:function Gi(t){"function"!=typeof t&&(t=function yo(t){return function(){return this.matches(t)}}(t));for(var n=this._groups,r=n.length,o=new Array(r),s=0;s<r;++s)for(var v,u=n[s],h=u.length,g=o[s]=[],y=0;y<h;++y)(v=u[y])&&t.call(v,v.__data__,y,u)&&g.push(v);return new Ln(o,this._parents)},data:function js(t,n){if(!t)return A=new Array(this.size()),y=-1,this.each(function(Q){A[++y]=Q}),A;var r=n?yu:Sa,o=this._parents,s=this._groups;"function"!=typeof t&&(t=function fp(t){return function(){return t}}(t));for(var u=s.length,h=new Array(u),g=new Array(u),v=new Array(u),y=0;y<u;++y){var x=o[y],T=s[y],b=T.length,A=t.call(x,x&&x.__data__,y,o),Z=A.length,M=g[y]=new Array(Z),P=h[y]=new Array(Z);r(x,T,M,P,v[y]=new Array(b),A,n);for(var G,j,R=0,F=0;R<Z;++R)if(G=M[R]){for(R>=F&&(F=R+1);!(j=P[F])&&++F<Z;);G._next=j||null}}return(h=new Ln(h,o))._enter=g,h._exit=v,h},enter:function dp(){return new Ln(this._enter||this._groups.map(Js),this._parents)},exit:function hp(){return new Ln(this._exit||this._groups.map(Js),this._parents)},join:function pp(t,n,r){var o=this.enter(),s=this,u=this.exit();return o="function"==typeof t?t(o):o.append(t+""),null!=n&&(s=n(s)),null==r?u.remove():r(u),o&&s?o.merge(s).order():s},merge:function gp(t){for(var n=this._groups,r=t._groups,o=n.length,u=Math.min(o,r.length),h=new Array(o),g=0;g<u;++g)for(var b,v=n[g],y=r[g],x=v.length,T=h[g]=new Array(x),A=0;A<x;++A)(b=v[A]||y[A])&&(T[A]=b);for(;g<o;++g)h[g]=n[g];return new Ln(h,this._parents)},order:function mp(){for(var t=this._groups,n=-1,r=t.length;++n<r;)for(var h,o=t[n],s=o.length-1,u=o[s];--s>=0;)(h=o[s])&&(u&&4^h.compareDocumentPosition(u)&&u.parentNode.insertBefore(h,u),u=h);return this},sort:function _p(t){function n(T,b){return T&&b?t(T.__data__,b.__data__):!T-!b}t||(t=bo);for(var r=this._groups,o=r.length,s=new Array(o),u=0;u<o;++u){for(var y,h=r[u],g=h.length,v=s[u]=new Array(g),x=0;x<g;++x)(y=h[x])&&(v[x]=y);v.sort(n)}return new Ln(s,this._parents).order()},call:function vp(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function wo(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t},node:function Co(){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],s=0,u=o.length;s<u;++s){var h=o[s];if(h)return h}return null},size:function yp(){var t=0;return this.each(function(){++t}),t},empty:function qr(){return!this.node()},each:function xp(t){for(var n=this._groups,r=0,o=n.length;r<o;++r)for(var g,s=n[r],u=0,h=s.length;u<h;++u)(g=s[u])&&t.call(g,g.__data__,u,s);return this},attr:function wp(t,n){var r=xu(t);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((null==n?r.local?Kn:Ws:"function"==typeof n?r.local?bp:Aa:r.local?Si:Xs)(r,n))},style:function Sp(t,n,r){return arguments.length>1?this.each((null==n?Cp:"function"==typeof n?Qs:Tp)(t,n,r??"")):function Ap(t,n){return t.style.getPropertyValue(n)||bu(t).getComputedStyle(t,null).getPropertyValue(n)}(this.node(),t)},property:function Cu(t,n){return arguments.length>1?this.each((null==n?Ks:"function"==typeof n?wu:el)(t,n)):this.node()[t]},classed:function Dp(t,n){var r=To(t+"");
1if(arguments.length<2){for(var o=tl(this.node()),s=-1,u=r.length;++s<u;)if(!o.contains(r[s]))return!1;return!0}return this.each(("function"==typeof n?Au:n?kp:Mp)(r,n))},text:function Ep(t){return arguments.length?this.each(null==t?nl:("function"==typeof t?dr:Zp)(t)):this.node().textContent},html:function Ma(t){return arguments.length?this.each(null==t?il:("function"==typeof t?ka:rl)(t)):this.node().innerHTML},raise:function Pp(){return this.each(Ur)},lower:function ku(){return this.each(Lp)},append:function Mu(t){var n="function"==typeof t?t:Da(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function ol(t,n){var r="function"==typeof t?t:Da(t),o=null==n?Du:"function"==typeof n?n:Qn(n);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})},remove:function sl(){return this.each(Zu)},clone:function Op(t){return this.select(t?Ai:Ao)},datum:function fr(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function Ou(t,n,r){var s,h,o=function Lu(t){return t.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");return o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),{type:n,name:r}})}(t+""),u=o.length;if(!(arguments.length<2)){for(g=n?Nu:Fp,null==r&&(r=!1),s=0;s<u;++s)this.each(g(o[s],n,r));return this}var g=this.node().__on;if(g)for(var x,v=0,y=g.length;v<y;++v)for(s=0,x=g[v];s<u;++s)if((h=o[s]).type===x.type&&h.name===x.name)return x.value},dispatch:function Iu(t,n){return this.each(("function"==typeof n?Up:qp)(t,n))}};var Gr=1/.7,Hr="\\s*([+-]?\\d+)\\s*",Pa="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",_i="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",dl=/^#([0-9a-f]{3,8})$/,Rp=new RegExp("^rgb\\("+[Hr,Hr,Hr]+"\\)$"),La=new RegExp("^rgb\\("+[_i,_i,_i]+"\\)$"),Zo=new RegExp("^rgba\\("+[Hr,Hr,Hr,Pa]+"\\)$"),Gp=new RegExp("^rgba\\("+[_i,_i,_i,Pa]+"\\)$"),Hp=new RegExp("^hsl\\("+[Pa,_i,_i]+"\\)$"),Vp=new RegExp("^hsla\\("+[Pa,_i,_i,Pa]+"\\)$"),qu={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Uu(){return this.rgb().formatHex()}function Ru(){return this.rgb().formatRgb()}function ki(t){var n,r;return t=(t+"").trim().toLowerCase(),(n=dl.exec(t))?(r=n[1].length,n=parseInt(n[1],16),6===r?Gu(n):3===r?new dn(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===r?Na(n>
vendor: 6,666 bytes, line 1
1>24&255,n>>16&255,n>>8&255,(255&n)/255):4===r?Na(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=Rp.exec(t))?new dn(n[1],n[2],n[3],1):(n=La.exec(t))?new dn(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Zo.exec(t))?Na(n[1],n[2],n[3],n[4]):(n=Gp.exec(t))?Na(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Hp.exec(t))?zu(n[1],n[2]/100,n[3]/100,1):(n=Vp.exec(t))?zu(n[1],n[2]/100,n[3]/100,n[4]):qu.hasOwnProperty(t)?Gu(qu[t]):"transparent"===t?new dn(NaN,NaN,NaN,0):null}function Gu(t){return new dn(t>>16&255,t>>8&255,255&t,1)}function Na(t,n,r,o){return o<=0&&(t=n=r=NaN),new dn(t,n,r,o)}function fl(t){return t instanceof Hi||(t=ki(t)),t?new dn((t=t.rgb()).r,t.g,t.b,t.opacity):new dn}function Oa(t,n,r,o){return 1===arguments.length?fl(t):new dn(t,n,r,o??1)}function dn(t,n,r,o){this.r=+t,this.g=+n,this.b=+r,this.opacity=+o}function Hu(){return"#"+hl(this.r)+hl(this.g)+hl(this.b)}function Vu(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function hl(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function zu(t,n,r,o){return o<=0?t=n=r=NaN:r<=0||r>=1?t=n=NaN:n<=0&&(t=NaN),new vi(t,n,r,o)}function Yu(t){if(t instanceof vi)return new vi(t.h,t.s,t.l,t.opacity);if(t instanceof Hi||(t=ki(t)),!t)return new vi;if(t instanceof vi)return t;var n=(t=t.rgb()).r/255,r=t.g/255,o=t.b/255,s=Math.min(n,r,o),u=Math.max(n,r,o),h=NaN,g=u-s,v=(u+s)/2;return g?(h=n===u?(r-o)/g+6*(r<o):r===u?(o-n)/g+2:(n-r)/g+4,g/=v<.5?u+s:2-u-s,h*=60):g=v>0&&v<1?0:h,new vi(h,g,v,t.opacity)}function Eo(t,n,r,o){return 1===arguments.length?Yu(t):new vi(t,n,r,o??1)}function vi(t,n,r,o){this.h=+t,this.s=+n,this.l=+r,this.opacity=+o}function pl(t,n,r){return 255*(t<60?n+(r-n)*t/60:t<180?r:t<240?n+(r-n)*(240-t)/60:n)}function $u(t,n,r,o,s){var u=t*t,h=u*t;return((1-3*t+3*u-h)*n+(4-6*u+3*h)*r+(1+3*t+3*u-3*h)*o+h*s)/6}function Ju(t){var n=t.length-1;return function(r){var o=r<=0?r=0:r>=1?(r=1,n-1):Math.floor(r*n),s=t[o],u=t[o+1];return $u((r-o/n)*n,o>0?t[o-1]:2*s-u,s,u,o<n-1?t[o+2]:2*u-s)}}function ju(t){var n=t.length;return function(r){var o=Math.floor(((r%=1)<0?++r:r)*n);return $u((r-o/n)*n,t[(o+n-1)%n],t[o%n],t[(o+1)%n],t[(o+2)%n])}}function Po(t){return function(){return t}}function Bu(t,n){return function(r){return t+r*n}}function Lo(t,n){var r=n-t;return r?Bu(t,r>180||r<-180?r-360*Math.round(r/360):r):Po(isNaN(t)?n:t)}function ln(t,n){var r=n-t;return r?Bu(t,r):Po(isNaN(t)?n:t)}ei(Hi,ki,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Uu,formatHex:Uu,formatHsl:function zp(){return Yu(this).formatHsl()},formatRgb:Ru,toString:Ru}),ei(dn,Oa,Ea(Hi,{brighter:function(t){return t=null==t?Gr:Math.pow(Gr,t),new dn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new dn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Hu,formatHex:Hu,formatRgb:Vu,toString:Vu})),ei(vi,Eo,Ea(Hi,{brighter:function(t){return t=null==t?Gr:Math.pow(Gr,t),new vi(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new vi(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*n,s=2*r-o;return new dn(pl(t>=240?t-240:t+120,s,o),pl(t,s,o),pl(t<120?t+240:t-120,s,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const Ia=function t(n){var r=function $p(t){return 1==(t=+t)?ln:function(n,r){return r-n?function Yp(t,n,r){return t=Math.pow(t,r),n=Math.pow(n,r)-t,r=1/r,function(o){return Math.pow(t+o*n,r)}}(n,r,t):Po(isNaN(n)?r:n)}}(n);function o(s,u){var h=r((s=Oa(s)).r,(u=Oa(u)).r),g=r(s.g,u.g),v=r(s.b,u.b),y=ln(s.opacity,u.opacity);return function(x){return s.r=h(x),s.g=g(x),s.b=v(x),s.opacity=y(x),s+""}}return o.gamma=t,o}(1);function Wu(t){return function(n){var h,g,r=n.length,o=new Array(r),s=new Array(r),u=new Array(r);for(h=0;h<r;++h)g=Oa(n[h]),o[h]=g.r||0,s[h]=g.g||0,u[h]=g.b||0;return o=t(o),s=t(s),u=t(u),g.opacity=1,function(v){return g.r=o(v),g.g=s(v),g.b=u(v),g+""}}}var Jp=Wu(Ju),jp=Wu(ju);function gl(t,n){n||(n=[]);var s,r=t?Math.min(n.length,t.length):0,o=n.slice();return function(u){for(s=0;s<r;++s)o[s]=t[s]*(1-u)+n[s]*u;return o}}function Xu(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Bp(t,n){return(Xu(n)?gl:Qu)(t,n)}function Qu(t,n){var h,r=n?n.length:0,o=t?Math.min(r,t.length):0,s=new Array(o),u=new Array(r);for(h=0;h<o;++h)s[h]=Fa(t[h],n[h]);for(;h<r;++h)u[h]=n[h];return function(g){for(h=0;h<o;++h)u[h]=s[h](g);return u}}function Ku(t,n){var r=new Date;return t=+t,n=+n,function(o){return r.setTime(t*(1-o)+n*o),r}}function $n(t,n){return t=+t,n=+n,function(r){return t*(1-r)+n*r}}function ed(t,n){var s,r={},o={};for(s in(null===t||"object"!=typeof t)&&(t={}),(null===n||"object"!=typeof n)&&(n={}),n)s in t?r[s]=Fa(t[s],n[s]):o[s]=n[s];return function(u){for(s in r)o[s]=r[s](u);return o}}var ml=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,No=new RegExp(ml.source,"g");function _l(t,n){var o,s,u,r=ml.lastIndex=No.lastIndex=0,h=-1,g=[],v=[];for(t+="",n+="";(o=ml.exec(t))&&(s=No.exec(n));)(u=s.index)>r&&(u=n.slice(r,u),g[h]?g[h]+=u:g[++h]=u),(o=o[0])===(s=s[0])?g[h]?g[h]+=s:g[++h]=s:(g[++h]=null,v.push({i:h,x:$n(o,s)})),r=No.lastIndex;return r<n.length&&(u=n.slice(r),g[h]?g[h]+=u:g[++h]=u),g.length<2?v[0]?function Xp(t){return function(n){return t(n)+""}}(v[0].x):function Wp(t){return function(){return t}}(n):(n=v.length,function(y){for(var T,x=0;x<n;++x)g[(T=v[x]).i]=T.x(y);return g.join("")})}function Fa(t,n){var o,r=typeof n;return null==n||"boolean"===r?Po(n):("number"===r?$n:"string"===r?(o=ki(n))?(n=o,Ia):_l:n instanceof ki?Ia:n instanceof Date?Ku:Xu(n)?gl:Array.isArray(n)?Qu:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?ed:$n)(t,n)}var td={},At=null;function Kp(t,n,r){return t=nd(t,n,r),function(o){var s=o.relatedTarget;(!s||s!==this&&!(8&s.compareDocumentPosition(this)))&&t.call(this,o)}}
vendor: 1,894 bytes, line 1
1function nd(t,n,r){return function(o){var s=At;At=o;try{t.call(this,this.__data__,n,r)}finally{At=s}}}function tg(t){return function(){var n=this.__on;if(n){for(var u,r=0,o=-1,s=n.length;r<s;++r)u=n[r],t.type&&u.type!==t.type||u.name!==t.name?n[++o]=u:this.removeEventListener(u.type,u.listener,u.capture);++o?n.length=o:delete this.__on}}}function ng(t,n,r){var o=td.hasOwnProperty(t.type)?Kp:nd;return function(s,u,h){var v,g=this.__on,y=o(n,u,h);if(g)for(var x=0,T=g.length;x<T;++x)if((v=g[x]).type===t.type&&v.name===t.name)return this.removeEventListener(v.type,v.listener,v.capture),this.addEventListener(v.type,v.listener=y,v.capture=r),void(v.value=n);this.addEventListener(t.type,y,r),v={type:t.type,name:t.name,value:n,listener:y,capture:r},g?g.push(v):this.__on=[v]}}function id(t,n,r,o){var s=At;t.sourceEvent=At,At=t;try{return n.apply(r,o)}finally{At=s}}function vl(){for(var n,t=At;n=t.sourceEvent;)t=n;return t}function Oo(t,n){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=n.clientX,o.y=n.clientY,[(o=o.matrixTransform(t.getScreenCTM().inverse())).x,o.y]}var s=t.getBoundingClientRect();return[n.clientX-s.left-t.clientLeft,n.clientY-s.top-t.clientTop]}function rd(t,n,r){arguments.length<3&&(r=n,n=vl().changedTouches);for(var u,o=0,s=n?n.length:0;o<s;++o)if((u=n[o]).identifier===r)return Oo(t,u);return null}function rg(){}function yi(t){return null==t?rg:function(){return this.querySelector(t)}}function Fo(){return[]}function Mi(t){return null==t?Fo:function(){return this.querySelectorAll(t)}}function qa(t){return function(){return this.matches(t)}}function xl(t){return new Array(t.length)}function Ua(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}typeof document<"u"&&("onmouseenter"in document.documentElement||(td={mouseenter:"mouseover",mouseleave:"mou
1seout"})),Ua.prototype={constructor:Ua,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function od(t,n,r,o,s,u){for(var g,h=0,v=n.length,y=u.length;h<y;++h)(g=n[h])?(g.__data__=u[h],o[h]=g):r[h]=new Ua(t,u[h]);for(;h<v;++h)(g=n[h])&&(s[h]=g)}function og(t,n,r,o,s,u,h){var g,v,A,y={},x=n.length,T=u.length,b=new Array(x);for(g=0;g<x;++g)(v=n[g])&&(b[g]=A="$"+h.call(v,v.__data__,g,n),A in y?s[g]=v:y[A]=v);for(g=0;g<T;++g)(v=y[A="$"+h.call(t,u[g],g,u)])?(o[g]=v,v.__data__=u[g],y[A]=null):r[g]=new Ua(t,u[g]);for(g=0;g<x;++g)(v=n[g])&&y[b[g]]===v&&(s[g]=v)}function ug(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}var Tl="http://www.w3.org/1999/xhtml";const Sl={svg:"http://www.w3.org/2000/svg",xhtml:Tl,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function mr(t){var n=t+="",r=n.indexOf(":");return r>=0&&"xmlns"!==(n=t.slice(0,r))&&(t=t.slice(r+1)),Sl.hasOwnProperty(n)?{space:Sl[n],local:t}:t}function Al(t){return function(){this.removeAttribute(t)}}function Di(t){return function(){this.removeAttributeNS(t.space,t.local)}}function pg(t,n){return function(){this.setAttribute(t,n)}}function gg(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function mg(t,n){return function(){var r=n.apply(this,arguments);null==r?this.removeAttribute(t):this.setAttribute(t,r)}}function _g(t,n){return function(){var r=n.apply(this,arguments);null==r?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function _r(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Uo(t){return function(){this.style.removeProperty(t)}}function Dv(t,n,r){return function(){this.style.setProperty(t,n,r)}}function Zv(t,n,r){return function(){var o=n.apply(this,arguments);null==o?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function Sn(t,n){return t.style.getPropertyValue(n)||_r(t).getComputedStyle(t,null).getPropertyValue(n)}function Ra(t){return function(){delete this[t]}}function vg(t,n){return function(){this[t]=n}}function yg(t,n){return function(){var r=n.apply(this,arguments);null==r?delete this[t]:this[t]=r}}function ud(t){return t.trim().split(/^|\s+/)}function kl(t){return t.classList||new Ml(t)}function Ml(t){this._node=t,this._names=ud(t.getAttribute("class")||"")}function dd(t,n){for(var r=kl(t),o=-1,s=n.length;++o<s;)r.add(n[o])}function fd(t,n){for(var r=kl(t),o=-1,s=n.length;++o<s;)r.remove(n[o])}function bg(t){return function(){dd(this,t)}}function wg(t){return function(){fd(this,t)}}function Cg(t,n){return function(){(n.apply(this,arguments)?dd:fd)(this,t)}}function hd(){this.textContent=""}function Dl(t){return function(){this.textContent=t}}function Sg(t){return function(){var n=t.apply(this,arguments);this.textContent=n??""}}function gd(){this.innerHTML=""}function Zl(t){return function(){this.innerHTML=t}}function Vr(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n??""}}function Pl(){this.nextSibling&&this.parentNode.appendChild(this)}function Jn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ll(t){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===Tl&&n.documentElement.namespaceURI===Tl?n.createElement(t):n.createElementNS(r,t)}}function xn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ct(t){var n=mr(t);return(n.local?xn:Ll)(n)}function _d(){return null}function Nn(){var t=this.parentNode;t&&t.removeChild(this)}function Ho(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Ag(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Ol(t,n,r){var o=_r(t),s=o.CustomEvent;"function"==typeof s?s=new s(n,r):(s=o.document.createEvent("Event"),r?(s.initEvent(n,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(n,!1,!1)),t.dis
1patchEvent(s)}function Il(t,n){return function(){return Ol(this,t,n)}}function On(t,n){return function(){return Ol(this,t,n.apply(this,arguments))}}Ml.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Fl=[null];function fn(t,n){this._groups=t,this._parents=n}function vd(){return new fn([[document.documentElement]],Fl)}fn.prototype=vd.prototype={constructor:fn,select:function Io(t){"function"!=typeof t&&(t=yi(t));for(var n=this._groups,r=n.length,o=new Array(r),s=0;s<r;++s)for(var v,y,u=n[s],h=u.length,g=o[s]=new Array(h),x=0;x<h;++x)(v=u[x])&&(y=t.call(v,v.__data__,x,u))&&("__data__"in v&&(y.__data__=v.__data__),g[x]=y);return new fn(o,this._parents)},selectAll:function ad(t){"function"!=typeof t&&(t=Mi(t));for(var n=this._groups,r=n.length,o=[],s=[],u=0;u<r;++u)for(var v,h=n[u],g=h.length,y=0;y<g;++y)(v=h[y])&&(o.push(t.call(v,v.__data__,y,h)),s.push(v));return new fn(o,s)},filter:function yl(t){"function"!=typeof t&&(t=qa(t));for(var n=this._groups,r=n.length,o=new Array(r),s=0;s<r;++s)for(var v,u=n[s],h=u.length,g=o[s]=[],y=0;y<h;++y)(v=u[y])&&t.call(v,v.__data__,y,u)&&g.push(v);return new fn(o,this._parents)},data:function sg(t,n){if(!t)return A=new Array(this.size()),y=-1,this.each(function(Q){A[++y]=Q}),A;var r=n?og:od,o=this._parents,s=this._groups;"function"!=typeof t&&(t=function gr(t){return function(){return t}}(t));for(var u=s.length,h=new Array(u),g=new Array(u),v=new Array(u),y=0;y<u;++y){var x=o[y],T=s[y],b=T.length,A=t.call(x,x&&x.__data__,y,o),Z=A.length,M=g[y]=new Array(Z),P=h[y]=new Array(Z);r(x,T,M,P,v[y]=new Array(b),A,n);for(var G,j,R=0,F=0;R<Z;++R)if(G=M[R]){for(R>=F&&(F=R+1);!(j=P[F])&&++F<Z;);G._next=j||null}}return(h=new fn(h,o))._enter=g,h._exit=v,h},enter:function ag(){return new fn(this._enter||this._groups.map(xl),this._parents)},exit:function sd(){return new fn(this._exit||this._groups.map(xl),this._parents)},join:function ld(t,n,r){var o=this.enter(),s=this,u=this.exit();return o="function"==typeof t?t(o):o.append(t+""),null!=n&&(s=n(s)),null==r?u.remove():r(u),o&&s?o.merge(s).order():s},merge:function wl(t){for(var n=this._groups,r=t._groups,o=n.length,u=Math.min(o,r.length),h=new Array(o),g=0;g<u;++g)for(var b,v=n[g],y=r[g],x=v.length,T=h[g]=new Array(x),A=0;A<x;++A)(b=v[A]||y[A])&&(T[A]=b);for(;g<o;++g)h[g]=n[g];return new fn(h,this._parents)},order:function lg(){for(var t=this._groups,n=-1,r=t.length;++n<r;)for(var h,o=t[n],s=o.length-1,u=o[s];--s>=0;)(h=o[s])&&(u&&4^h.compareDocumentPosition(u)&&u.parentNode.insertBefore(h,u),u=h);return this},sort:function cg(t){function n(T,b){return T&&b?t(T.__data__,b.__data__):!T-!b}t||(t=ug);for(var r=this._groups,o=r.length,s=new Array(o),u=0;u<o;++u){for(var y,h=r[u],g=h.length,v=s[u]=new Array(g),x=0;x<g;++x)(y=h[x])&&(v[x]=y);v.sort(n)}return new fn(s,this._parents).order()},call:function dg(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function fg(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t},node:function hg(){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],s=0,u=o.length;s<u;++s){var h=o[s];if(h)return h}return null},size:function Cl(){var t=0;return this.each(function(){++t}),t},empty:function cd(){return!this.node()},each:function ti(t){for(var n=this._groups,r=0,o=n.length;r<o;++r)for(var g,s=n[r],u=0,h=s.length;u<h;++u)(g=s[u])&&t.call(g,g.__data__,u,s);return this},attr:function qo(t,n){var r=mr(t);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((null==n?r.local?Di:Al:"function"==typeof n?r.local?_g:mg:r.local?gg:pg)(r,n))},style:function Ev(t,n,r){return arguments.length>1?this.each((null==n?Uo:"function"==typeof n?Zv:Dv)(t,n,r??"")):Sn(this.node(),t)},property:function xg(t,n){return arguments.length>1?this.each((null==n?Ra:"function"==typeof n?yg:vg)(t,n)):this.node()[t]}
1,classed:function Tg(t,n){var r=ud(t+"");if(arguments.length<2){for(var o=kl(this.node()),s=-1,u=r.length;++s<u;)if(!o.contains(r[s]))return!1;return!0}return this.each(("function"==typeof n?Cg:n?bg:wg)(r,n))},text:function pd(t){return arguments.length?this.each(null==t?hd:("function"==typeof t?Sg:Dl)(t)):this.node().textContent},html:function El(t){return arguments.length?this.each(null==t?gd:("function"==typeof t?Vr:Zl)(t)):this.node().innerHTML},raise:function An(){return this.each(Pl)},lower:function md(){return this.each(Jn)},append:function Ro(t){var n="function"==typeof t?t:Ct(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function Go(t,n){var r="function"==typeof t?t:Ct(t),o=null==n?_d:"function"==typeof n?n:yi(n);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})},remove:function Nl(){return this.each(Nn)},clone:function vr(t){return this.select(t?Ag:Ho)},datum:function Ga(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function ig(t,n,r){var s,h,o=function eg(t){return t.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");return o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),{type:n,name:r}})}(t+""),u=o.length;if(!(arguments.length<2)){for(g=n?ng:tg,null==r&&(r=!1),s=0;s<u;++s)this.each(g(o[s],n,r));return this}var g=this.node().__on;if(g)for(var x,v=0,y=g.length;v<y;++v)for(s=0,x=g[v];s<u;++s)if((h=o[s]).type===x.type&&h.name===x.name)return x.value},dispatch:function Pv(t,n){return this.each(("function"==typeof n?On:Il)(t,n))}};const zr=vd;function Vi(t){return"string"==typeof t?new fn([[document.querySelector(t)]],[document.documentElement]):new fn([[t]],Fl)}function kg(t){var n=vl();return n.changedTouches&&(n=n.changedTouches[0]),Oo(t,n)}var Nt=Ue(423),Yr=Ue(7125),Mg=(0,gn.Z)("start","end","cancel","interrupt"),Dg=[],yr=0,jt=1,ql=2,$r=3,Vo=5,Ha=6;function zo(t,n,r,o,s,u){var h=t.__transition;if(h){if(r in h)return}else t.__transition={};!function Zg(t,n,r){var s,o=t.__transition;function h(y){var x,T,b,A;if(r.state!==jt)return v();for(x in o)if((A=o[x]).name===r.name){if(A.state===$r)return(0,Yr.Z)(h);4===A.state?(A.state=Ha,A.timer.stop(),A.on.call("interrupt",t,t.__data__,A.index,A.group),delete o[x]):+x<n&&(A.state=Ha,A.timer.stop(),A.on.call("cancel",t,t.__data__,A.index,A.group),delete o[x])}if((0,Yr.Z)(function(){r.state===$r&&(r.state=4,r.timer.restart(g,r.delay,r.time),g(y))}),r.state=ql,r.on.call("start",t,t.__data__,r.index,r.group),r.state===ql){for(r.state=$r,s=new Array(b=r.tween.length),x=0,T=-1;x<b;++x)(A=r.tween[x].value.call(t,t.__data__,r.index,r.group))&&(s[++T]=A);s.length=T+1}}function g(y){for(var x=y<r.duration?r.ease.call(null,y/r.duration):(r.timer.restart(v),r.state=Vo,1),T=-1,b=s.length;++T<b;)s[T].call(t,x);r.state===Vo&&(r.on.call("end",t,t.__data__,r.index,r.group),v())}function v(){for(var y in r.state=Ha,r.timer.stop(),delete o[n],o)return;delete t.__transition}o[n]=r,r.timer=(0,Nt.HT)(function u(y){r.state=jt,r.timer.restart(h,r.delay,r.time),r.delay<=y&&h(y-r.delay)},0,r.time)}(t,r,{name:n,index:o,group:s,on:Mg,tween:Dg,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:yr})}function Yo(t,n){var r=ni(t,n);if(r.state>yr)throw new Error("too late; already scheduled");return r}function Zi(t,n){var r=ni(t,n);if(r.state>$r)throw new Error("too late; already running");return r}function ni(t,n){var r=t.__transition;if(!r||!(r=r[n]))throw new Error("transition not found");return r}function $o(t,n){var o,s,h,r=t.__transition,u=!0;if(r){for(h in n=null==n?null:n+"",r)(o=r[h]).name===n?(s=o.state>ql&&o.state<Vo,o.state=Ha,o.timer.stop(),o.on.call(s?"interrupt":"cancel",t,t.__data__,o.index,o.group),delete r[h]):u=!1;u&&delete t.__transition}}var Va,Rl,za,Jo,xd=180/Math.PI,Ul={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function bd(t,n,r,o,s,u){var h,g,v;return(h=Math.sqrt(t*t+n*n))&&(t/=h,n/=h),(v=t*r+n*o)&&(r-=t*v,o-=n*v),(g=Math.sqrt(r*r+o*o))&&(r/=g,o/=g,v/=g),t*o<n*r&&(t=-t,n=-n,v=-v,h=-h),{translateX:s,translateY:u,rotate:Math.atan2(n,t)*xd,skewX:Math.atan(v)*xd,scaleX:h,scaleY:g}}function Cd(t,n,r,o){function s(y){return y.length?y.pop()+" ":""}return function(y,x){var T=[],b=[];return y=t(y),x=t(x),function u(y,x,T,b,A,Z){if(y!==T||x!==b){var M=A.push("translate(",null,n,null,r);Z.push({i:M-4,x:$n(y,T)},{i:M-2,x:$n(x,b)})}else(T||b)&&A.push("translate("+T+n+b+r)}(y.translateX,y.translateY,x.translateX,x.translateY,T,b),function h(y,x,T,b){y!==x?(y-x>180?x+=360:x-y>180&&(y+=360),b.push({i:T.push(s(T)+"rotate(",null,o)-2,x:$n(y,x)})):x&&T.push(s(T)+"rotate("+x+o)}(y.rotate,x.rotate,T,b),function g(y,x,T,b){y!==x?b.push({i:T.push(s(T)+"skewX(",
1null,o)-2,x:$n(y,x)}):x&&T.push(s(T)+"skewX("+x+o)}(y.skewX,x.skewX,T,b),function v(y,x,T,b,A,Z){if(y!==T||x!==b){var M=A.push(s(A)+"scale(",null,",",null,")");Z.push({i:M-4,x:$n(y,T)},{i:M-2,x:$n(x,b)})}else(1!==T||1!==b)&&A.push(s(A)+"scale("+T+","+b+")")}(y.scaleX,y.scaleY,x.scaleX,x.scaleY,T,b),y=x=null,function(A){for(var P,Z=-1,M=b.length;++Z<M;)T[(P=b[Z]).i]=P.x(A);return T.join("")}}}var Td=Cd(function Pg(t){return"none"===t?Ul:(Va||(Va=document.createElement("DIV"),Rl=document.documentElement,za=document.defaultView),Va.style.transform=t,t=za.getComputedStyle(Rl.appendChild(Va),null).getPropertyValue("transform"),Rl.removeChild(Va),bd(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),Sd=Cd(function wd(t){return null!=t&&(Jo||(Jo=document.createElementNS("http://www.w3.org/2000/svg","g")),Jo.setAttribute("transform",t),t=Jo.transform.baseVal.consolidate())?bd((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Ul},", ",")",")");function Lg(t,n){var r,o;return function(){var s=Zi(this,t),u=s.tween;if(u!==r)for(var h=0,g=(o=r=u).length;h<g;++h)if(o[h].name===n){(o=o.slice()).splice(h,1);break}s.tween=o}}function Ng(t,n,r){var o,s;if("function"!=typeof r)throw new Error;return function(){var u=Zi(this,t),h=u.tween;if(h!==o){s=(o=h).slice();for(var g={name:n,value:r},v=0,y=s.length;v<y;++v)if(s[v].name===n){s[v]=g;break}v===y&&s.push(g)}u.tween=s}}function jo(t,n,r){var o=t._id;return t.each(function(){var s=Zi(this,o);(s.value||(s.value={}))[n]=r.apply(this,arguments)}),function(s){return ni(s,o).value[n]}}function Ad(t,n){var r;return("number"==typeof n?$n:n instanceof ki?Ia:(r=ki(n))?(n=r,Ia):_l)(t,n)}function Ig(t){return function(){this.removeAttribute(t)}}function Fg(t){return function(){this.removeAttributeNS(t.space,t.local)}}function qg(t,n,r){var o,u,s=r+"";return function(){var h=this.getAttribute(t);return h===s?null:h===o?u:u=n(o=h,r)}}function Ug(t,n,r){var o,u,s=r+"";return function(){var h=this.getAttributeNS(t.space,t.local);return h===s?null:h===o?u:u=n(o=h,r)}}function Rg(t,n,r){var o,s,u;return function(){var h,v,g=r(this);return null==g?void this.removeAttribute(t):(h=this.getAttribute(t))===(v=g+"")?null:h===o&&v===s?u:(s=v,u=n(o=h,g))}}function Gg(t,n,r){var o,s,u;return function(){var h,v,g=r(this);return null==g?void this.removeAttributeNS(t.space,t.local):(h=this.getAttributeNS(t.space,t.local))===(v=g+"")?null:h===o&&v===s?u:(s=v,u=n(o=h,g))}}function Yg(t,n){var r,o;function s(){var u=n.apply(this,arguments);return u!==o&&(r=(o=u)&&function zg(t,n){return function(r){this.setAttributeNS(t.space,t.local,n.call(this,r))}}(t,u)),r}return s._value=n,s}function $g(t,n){var r,o;function s(){var u=n.apply(this,arguments);return u!==o&&(r=(o=u)&&function Vg(t,n){return function(r){this.setAttribute(t,n.call(this,r))}}(t,u)),r}return s._value=n,s}function jg(t,n){return function(){Yo(this,t).delay=+n.apply(this,arguments)}}function Bg(t,n){return n=+n,function(){Yo(this,t).delay=n}}function Xg(t,n){return function(){Zi(this,t).duration=+n.apply(this,arguments)}}function Qg(t,n){return n=+n,function(){Zi(this,t).duration=n}}var um=zr.prototype.constructor;function Md(t){return function(){this.style.removeProperty(t)}}var Sm=0;function ii(t,n,r,o){this._groups=t,this._parents=n,this._name=r,this._id=o}function Ed(t){return zr().transition(t)}function Pd(){return++Sm}var Jr=zr.prototype;ii.prototype=Ed.prototype={constructor:ii,select:function xr(t){var n=this._name,r=this._id;"function"!=typeof t&&(t=yi(t));for(var o=this._groups,s=o.length,u=new Array(s),h=0;h<s;++h)for(var x,T,g=o[h],v=g.length,y=u[h]=new Array(v),b=0;b<v;++b)(x=g[b])&&(T=t.call(x,x.__data__,b,g))&&("__data__"in x&&(T.__data__=x.__data__),y[b]=T,zo(y[b],n,r,b,y,ni(x,r)));return new ii(u,this._parents,n,r)},selectAll:function cm(t){var n=this._name,r=this._id;"function"!=typeof t&&(t=Mi(t));for(var o=this._groups,s=o.length,u=[],h=[],g=0;g<s;++g)for(var x,v=o[g],y=v.length,T=0;T<y;++T)if(x=v[T]){for(var A,b=t.call(x,x.__data__,T,v),Z=ni(x,r),M=0,P=b.length;M<P;++M)(A=b[M])&&zo(A,n,r,M,b,Z);u.push(b),h.push(x)}return new ii(u,h,n,r)},filter:function nm(t){"function"!=typeof t&&(t=qa(t));for(var n=this._groups,r=n.length,o=new Array(r),s=0;s<r;++s)for(var v,u=n[s],h=u.length,g=o[s]=[],y=0;y<h;++y)(v=u[y])&&t.call(v,v.__data__,y,u)&&g.push(v);return new ii(o,this._parents,this._name,this._id)},merge:function im(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,r=t._groups,o=n.length,u=Math.min(o,r.length),h=new Array(o),g=0;g<u;++g)for(var b,v=n[g],y=r[g],x=v.length,T=h[g]=new Array(x),A=0;A<x;++A)(b=v[A]||y[A])&&(T[A]=b);for(;g<o;++g)h[g]=n[g];return new ii(h,this._parents,this._name,this._id)},selection:function dm(){return new um(this._groups,this._parents)}
1,transition:function Cm(){for(var t=this._name,n=this._id,r=Pd(),o=this._groups,s=o.length,u=0;u<s;++u)for(var v,h=o[u],g=h.length,y=0;y<g;++y)if(v=h[y]){var x=ni(v,n);zo(v,t,r,y,h,{time:x.time+x.delay+x.duration,delay:0,duration:x.duration,ease:x.ease})}return new ii(o,this._parents,t,r)},call:Jr.call,nodes:Jr.nodes,node:Jr.node,size:Jr.size,empty:Jr.empty,each:Jr.each,on:function om(t,n){var r=this._id;return arguments.length<2?ni(this.node(),r).on.on(t):this.each(function am(t,n,r){var o,s,u=function rm(t){return(t+"").trim().split(/^|\s+/).every(function(n){var r=n.indexOf(".");return r>=0&&(n=n.slice(0,r)),!n||"start"===n})}(n)?Yo:Zi;return function(){var h=u(this,t),g=h.on;g!==o&&(s=(o=g).copy()).on(n,r),h.on=s}}(r,t,n))},attr:function Hg(t,n){var r=mr(t),o="transform"===r?Sd:Ad;return this.attrTween(t,"function"==typeof n?(r.local?Gg:Rg)(r,o,jo(this,"attr."+t,n)):null==n?(r.local?Fg:Ig)(r):(r.local?Ug:qg)(r,o,n))},attrTween:function Jg(t,n){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;var o=mr(t);return this.tween(r,(o.local?Yg:$g)(o,n))},style:function gm(t,n,r){var o="transform"==(t+="")?Td:Ad;return null==n?this.styleTween(t,function kd(t,n){var r,o,s;return function(){var u=Sn(this,t),h=(this.style.removeProperty(t),Sn(this,t));return u===h?null:u===r&&h===o?s:s=n(r=u,o=h)}}(t,o)).on("end.style."+t,Md(t)):"function"==typeof n?this.styleTween(t,function hm(t,n,r){var o,s,u;return function(){var h=Sn(this,t),g=r(this),v=g+"";return null==g&&(this.style.removeProperty(t),v=g=Sn(this,t)),h===v?null:h===o&&v===s?u:(s=v,u=n(o=h,g))}}(t,o,jo(this,"style."+t,n))).each(function pm(t,n){var r,o,s,g,u="style."+n,h="end."+u;return function(){var v=Zi(this,t),y=v.on,x=null==v.value[u]?g||(g=Md(n)):void 0;(y!==r||s!==x)&&(o=(r=y).copy()).on(h,s=x),v.on=o}}(this._id,t)):this.styleTween(t,function fm(t,n,r){var o,u,s=r+"";return function(){var h=Sn(this,t);return h===s?null:h===o?u:u=n(o=h,r)}}(t,o,n),r).on("end.style."+t,null)},styleTween:function Dd(t,n,r){var o="style."+(t+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(null==n)return this.tween(o,null);if("function"!=typeof n)throw new Error;return this.tween(o,function _m(t,n,r){var o,s;function u(){var h=n.apply(this,arguments);return h!==s&&(o=(s=h)&&function mm(t,n,r){return function(o){this.style.setProperty(t,n.call(this,o),r)}}(t,h,r)),o}return u._value=n,u}(t,n,r??""))},text:function xm(t){return this.tween("text","function"==typeof t?function ym(t){return function(){var n=t(this);this.textContent=n??""}}(jo(this,"text",t)):function vm(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function wm(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function bm(t){var n,r;function o(){var s=t.apply(this,arguments);return s!==r&&(n=(r=s)&&function Zd(t){return function(n){this.textContent=t.call(this,n)}}(s)),n}return o._value=t,o}(t))},remove:function lm(){return this.on("end.remove",function sm(t){return function(){var n=this.parentNode;for(var r in this.__transition)if(+r!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function Og(t,n){var r=this._id;if(t+="",arguments.length<2){for(var h,o=ni(this.node(),r).tween,s=0,u=o.length;s<u;++s)if((h=o[s]).name===t)return h.value;return null}return this.each((null==n?Lg:Ng)(r,t,n))},delay:function Wg(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?jg:Bg)(n,t)):ni(this.node(),n).delay},duration:function Kg(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Xg:Qg)(n,t)):ni(this.node(),n).duration},ease:function tm(t){var n=this._id;return arguments.length?this.each(function em(t,n){if("function"!=typeof n)throw new Error;return function(){Zi(this,t).ease=n}}(n,t)):ni(this.node(),n).ease},end:function Tm(){var t,n,r=this,o=r._id,s=r.size();return new Promise(function(u,h){var g={value:h},v={value:function(){0==--s&&u()}};r.each(function(){var y=Zi(this,o),x=y.on;x!==t&&((n=(t=x).copy())._.cancel.push(g),n._.interrupt.push(g),n._.end.push(v)),y.on=n})})}};var jr=Ue(8117),Gl={time:null,delay:0,duration:250,ease:jr.tw};function Am(t,n){for(var r;!(r=t.__transition)||!(r=r[n]);)if(!(t=t.parentNode))return Gl.time=(0,Nt.zO)(),Gl;return r}zr.prototype.interrupt=function Eg(t){return this.each(function(){$o(this,t)})},zr.prototype.transition=function km(t){var n,r;t instanceof ii?(n=t._id,t=t._name):(n=Pd(),(r=Gl).time=(0,Nt.zO)(),t=null==t?null:t+"");for(var o=this._groups,s=o.length,u=0;u<s;++u)for(var v,h=o[u],g=h.length,y=0;y<g;++y)(v=h[y])&&zo(v,t,n,y,h,r||Am(v,n));return new ii(o,this._parents,t,n)};var Mm=[null];function Dm(t,n){var o,s,r=t.__transition;if(r)for(s in n=null==n?null:n+"",r)if((o=r[s]).state>jt&&o.name===n)return new ii([[t]],Mm,n,+s);return null}function Hl(t){return function(){return t}}function br(t,n,r){this.target=t,this.type=n,this.selection=r}function Br(){At.stopImmediatePropagation()}function Ld(){At.preventDefault(),At.stopImmediatePropagation()}var Nd={name:"drag"},Vl={name:"space"},Wr={name:"handle"},Xr={name:"center"};function Od(t){return[+t[0],+t[1]]}function zl(t){return[Od(t[0]),Od(t[1])]}var Bo={name:"x",handles:["w","e"].map(Ya),input:function(t,n){return null==t?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Wo={name:"y",handles:["n","s"].map(Ya),input:function(t,n){return null==t?null:[[n[0][0],+t[0]],[n[
vendor: 1,100 bytes, line 1
11][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Em={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Ya),input:function(t){return null==t?null:zl(t)},output:function(t){return t}},Ei={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Id={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Pm={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Lm={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Nm={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Ya(t){return{type:t}}function Lv(){return!At.ctrlKey&&!At.button}function Om(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Qr(){return navigator.maxTouchPoints||"ontouchstart"in this}function Xt(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Im(t){var n=t.__brush;return n?n.dim.output(n.selection):null}
1function Fd(){return $l(Bo)}function Fm(){return $l(Wo)}function qm(){return $l(Em)}function $l(t){var g,n=Om,r=Lv,o=Qr,s=!0,u=(0,gn.Z)("start","brush","end"),h=6;function v(P){var N=P.property("__brush",M).selectAll(".overlay").data([Ya("overlay")]);N.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Ei.overlay).merge(N).each(function(){var F=Xt(this).extent;Vi(this).attr("x",F[0][0]).attr("y",F[0][1]).attr("width",F[1][0]-F[0][0]).attr("height",F[1][1]-F[0][1])}),P.selectAll(".selection").data([Ya("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Ei.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var R=P.selectAll(".handle").data(t.handles,function(F){return F.type});R.exit().remove(),R.enter().append("rect").attr("class",function(F){return"handle handle--"+F.type}).attr("cursor",function(F){return Ei[F.type]}),P.each(y).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",b).filter(o).on("touchstart.brush",b).on("touchmove.brush",A).on("touchend.brush touchcancel.brush",Z).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(){var P=Vi(this),N=Xt(this).selection;N?(P.selectAll(".selection").style("display",null).attr("x",N[0][0]).attr("y",N[0][1]).attr("width",N[1][0]-N[0][0]).attr("height",N[1][1]-N[0][1]),P.selectAll(".handle").style("display",null).attr("x",function(R){return"e"===R.type[R.type.length-1]?N[1][0]-h/2:N[0][0]-h/2}).attr("y",function(R){return"s"===R.type[0]?N[1][1]-h/2:N[0][1]-h/2}).attr("width",function(R){return"n"===R.type||"s"===R.type?N[1][0]-N[0][0]+h:h}).attr("height",function(R){return"e"===R.type||"w"===R.type?N[1][1]-N[0][1]+h:h})):P.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function x(P,N,R){var F=P.__brush.emitter;return!F||R&&F.clean?new T(P,N,R):F}function T(P,N,R){this.that=P,this.args=N,this.state=P.__brush,this.active=0,this.clean=R}function b(){if((!g||At.touches)&&r.apply(this,arguments)){var se,ue,z,ee,K,me,Ne,ze,$t,Mt,an,P=this,N=At.target.__data__.type,R="selection"===(s&&At.metaKey?N="overlay":N)?Nd:s&&At.altKey?Xr:Wr,F=t===Wo?null:Lm[N],G=t===Bo?null:Nm[N],j=Xt(P),Q=j.extent,X=j.selection,de=Q[0][0],oe=Q[0][1],_e=Q[1][0],qe=Q[1][1],ot=0,st=0,qt=F&&G&&s&&At.shiftKey,Ti=At.touches?function Zm(t){return function(n){return rd(n,At.touches,t)}}(At.changedTouches[0].identifier):kg,qi=Ti(P),Ui=qi,Pe=x(P,arguments,!0).beforestart();"overlay"===N?(X&&($t=!0),j.selection=X=[[se=t===Wo?de:qi[0],z=t===Bo?oe:qi[1]],[K=t===Wo?_e:se,Ne=t===Bo?qe:z]]):(se=X[0][0],z=X[0][1],K=X[1][0],Ne=X[1][1]),ue=se,ee=z,me=K,ze=Ne;var ut=Vi(P).attr("pointer-events","none"),bt=ut.selectAll(".overlay").attr("cursor",Ei[N]);if(At.touches)Pe.moved=Tn,Pe.ended=En;else{var ye=Vi(At.view).on("mousemove.brush",Tn,!0).on("mouseup.brush",En,!0);s&&ye.on("keydown.brush",function Gn(){switch(At.keyCode){case 16:qt=F&&G;break;case 18:R===Wr&&(F&&(K=me-ot*F,se=ue+ot*F),G&&(Ne=ze-st*G,z=ee+st*G),R=Xr,Dt());break;case 32:(R===Wr||R===Xr)&&(F<0?K=me-ot:F>0&&(se=ue-ot),G<0?Ne=ze-st:G>0&&(z=ee-st),R=Vl,bt.attr("cursor",Ei.selection),Dt());break;default:return}Ld()},!0).on("keyup.brush",function Ir(){switch(At.keyCode){case 16:qt&&(Mt=an=qt=!1,Dt());break;case 18:R===Xr&&(F<0?K=me:F>0&&(se=ue),G<0?Ne=ze:G>0&&(z=ee),R=Wr,Dt());break;case 32:R===Vl&&(At.altKey?(F&&(K=me-ot*F,se=ue+ot*F),G&&(Ne=ze-st*G,z=ee+st*G),R=Xr):(F<0?K=me:F>0&&(se=ue),G<0?Ne=ze:G>0&&(z=ee),R=Wr),bt.attr("cursor",Ei[N]),Dt());break;default:return}Ld()},!0),Mo(At.view)}Br(),$o(P),y.call(P),Pe.start()}function Tn(){var Hn=Ti(P);qt&&!Mt&&!an&&(Math.abs(Hn[0]-Ui[0])>Math.abs(Hn[1]-Ui[1])?an=!0:Mt=!0),Ui=Hn,$t=!0,Ld(),Dt()}function Dt(){var Hn;switch(ot=Ui[0]-qi[0],st=Ui[1]-qi[1],R){case Vl:case Nd:F&&(ot=Math.max(de-se,Math.min(_e-K,ot)),ue=se+ot,me=K+ot),G&&(st=Math.max(oe-z,Math.min(qe-Ne,st)),ee=z+st,ze=Ne+st);break;case Wr:F<0?(ot=Math.max(de-se,Math.min(_e-se,ot)),ue=se+ot,me=K):F>0&&(ot=Math.max(de-K,Math.min(_e-K,ot)),ue=se,me=K+ot),G<0?(st=Math.max(oe-z,Math.min(qe-z,st)),ee=z+st,ze=Ne):G>0&&(st=Math.max(oe-Ne,Math.min(qe-Ne,st)),ee=z,ze=Ne+st);break;case Xr:F&&(ue=Math.max(de,Math.min(_e,se-ot*F)),me=Math.max(de,Math.min(_e,K+ot*F))),G&&(ee=Math.max(oe,Math.min(qe,z-st*G)),ze=Math.max(oe,Math.min(qe,Ne+st*G)))}me<ue&&(F*=-1,Hn=se,se=K,K=Hn,Hn=ue,ue=me,me=Hn,N in Id&&bt.attr("cursor",Ei[N=Id[N]])),ze<ee&&(G*=-1,Hn=z,z=Ne,Ne=Hn,Hn=ee,ee=ze,ze=Hn,N in Pm&&bt.attr("cursor",Ei[N=Pm[N]])),j.selection&&(X=j.selection),Mt&&(ue=X[0][0],me=X[1][0]),an&&(ee=X[0][1],ze=X[1][1]),(X[0][0]!==ue||X[0][1]!==ee||X[1][0]!==me||X[1][1]!==ze)&&(j.selection=[[ue,ee],[me,ze]],y.call(P),Pe.brush())}function En(){if(Br(),At.touches){if(At.touches.length)return;g&&clearTimeout(g),g=setTimeout(function(){g=null},500)}
1else Do(At.view,$t),ye.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);ut.attr("pointer-events","all"),bt.attr("cursor",Ei.overlay),j.selection&&(X=j.selection),function Yl(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}(X)&&(j.selection=null,y.call(P)),Pe.end()}}function A(){x(this,arguments).moved()}function Z(){x(this,arguments).ended()}function M(){var P=this.__brush||{selection:null};return P.extent=zl(n.apply(this,arguments)),P.dim=t,P}return v.move=function(P,N){P.selection?P.on("start.brush",function(){x(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){x(this,arguments).end()}).tween("brush",function(){var R=this,F=R.__brush,G=x(R,arguments),j=F.selection,Q=t.input("function"==typeof N?N.apply(this,arguments):N,F.extent),X=Fa(j,Q);function de(se){F.selection=1===se&&null===Q?null:X(se),y.call(R),G.brush()}return null!==j&&null!==Q?de:de(1)}):P.each(function(){var R=this,F=arguments,G=R.__brush,j=t.input("function"==typeof N?N.apply(R,F):N,G.extent),Q=x(R,F).beforestart();$o(R),G.selection=null===j?null:j,y.call(R),Q.start().brush().end()})},v.clear=function(P){v.move(P,null)},T.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(P){id(new br(v,P,t.output(this.state.selection)),u.apply,u,[P,this.that,this.args])}},v.extent=function(P){return arguments.length?(n="function"==typeof P?P:Hl(zl(P)),v):n},v.filter=function(P){return arguments.length?(r="function"==typeof P?P:Hl(!!P),v):r},v.touchable=function(P){return arguments.length?(o="function"==typeof P?P:Hl(!!P),v):o},v.handleSize=function(P){return arguments.length?(h=+P,v):h},v.keyModifiers=function(P){return arguments.length?(s=!!P,v):s},v.on=function(){var P=u.on.apply(u,arguments);return P===u?v:P},v}function qd(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function Gd(t,n,r){t=+t,n=+n,r=(s=arguments.length)<2?(n=t,t=0,1):s<3?1:+r;for(var o=-1,s=0|Math.max(0,Math.ceil((n-t)/r)),u=new Array(s);++o<s;)u[o]=t+o*r;return u}!function Um(t){1===t.length&&(t=function Rm(t){return function(n,r){return qd(t(n),r)}}(t))}(qd),Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var Hd=Math.cos,Vd=Math.sin,zd=Math.PI,Xo=zd/2,Yd=2*zd,$d=Math.max;function Jd(){var t=0,n=null,r=null,o=null;function s(u){var A,Z,M,P,N,R,h=u.length,g=[],v=Gd(h),y=[],x=[],T=x.groups=new Array(h),b=new Array(h*h);for(A=0,N=-1;++N<h;){for(Z=0,R=-1;++R<h;)Z+=u[N][R];g.push(Z),y.push(Gd(h)),A+=Z}for(n&&v.sort(function(ue,oe){return n(g[ue],g[oe])}),r&&y.forEach(function(ue,oe){ue.sort(function(z,ee){return r(u[oe][z],u[oe][ee])})}),P=(A=$d(0,Yd-t*h)/A)?t:Yd/h,Z=0,N=-1;++N<h;){for(M=Z,R=-1;++R<h;){var F=v[N],G=y[F][R],j=u[F][G],Q=Z,X=Z+=j*A;b[G*h+F]={index:F,subindex:G,startAngle:Q,endAngle:X,value:j}}T[F]={index:F,startAngle:M,endAngle:Z,value:g[F]},Z+=P}for(N=-1;++N<h;)for(R=N-1;++R<h;){var de=b[R*h+N],se=b[N*h+R];(de.value||se.value)&&x.push(de.value<se.value?{source:se,target:de}:{source:de,target:se})}return o?x.sort(o):x}return s.padAngle=function(u){return arguments.length?(t=$d(0,u),s):t},s.sortGroups=function(u){return arguments.length?(n=u,s):n},s.sortSubgroups=function(u){return arguments.length?(r=u,s):r},s.sortChords=function(u){return arguments.length?(null==u?o=null:(o=function Hm(t){return function(n,r){return t(n.source.value+n.target.value,r.source.value+r.target.value)}}(u))._=u,s):o&&o._},s}var Vm=Array.prototype.slice;function Wl(t){return function(){return t}}var wr=Ue(5818);function zm(t){return t.source}function Ym(t){return t.target}function $m(t){return t.radius}function Jm(t){return t.startAngle}function jm(t){return t.endAngle}function Bm(){var t=zm,n=Ym,r=$m,o=Jm,s=jm,u=null;function h(){var g,v=Vm.call(arguments),y=t.apply(this,v),x=n.apply(this,v),T=+r.apply(this,(v[0]=y,v)),b=o.apply(this,v)-Xo,A=s.apply(this,v)-Xo,Z=T*
1Hd(b),M=T*Vd(b),P=+r.apply(this,(v[0]=x,v)),N=o.apply(this,v)-Xo,R=s.apply(this,v)-Xo;if(u||(u=g=(0,wr.Z)()),u.moveTo(Z,M),u.arc(0,0,T,b,A),(b!==N||A!==R)&&(u.quadraticCurveTo(0,0,P*Hd(N),P*Vd(N)),u.arc(0,0,P,N,R)),u.quadraticCurveTo(0,0,Z,M),u.closePath(),g)return u=null,g+""||null}return h.radius=function(g){return arguments.length?(r="function"==typeof g?g:Wl(+g),h):r},h.startAngle=function(g){return arguments.length?(o="function"==typeof g?g:Wl(+g),h):o},h.endAngle=function(g){return arguments.length?(s="function"==typeof g?g:Wl(+g),h):s},h.source=function(g){return arguments.length?(t=g,h):t},h.target=function(g){return arguments.length?(n=g,h):n},h.context=function(g){return arguments.length?(u=g??null,h):u},h}var jn="$";function Qo(){}function jd(t,n){var r=new Qo;if(t instanceof Qo)t.each(function(g,v){r.set(v,g)});else if(Array.isArray(t)){var u,o=-1,s=t.length;if(null==n)for(;++o<s;)r.set(o,t[o]);else for(;++o<s;)r.set(n(u=t[o],o,t),u)}else if(t)for(var h in t)r.set(h,t[h]);return r}Qo.prototype=jd.prototype={constructor:Qo,has:function(t){return jn+t in this},get:function(t){return this[jn+t]},set:function(t,n){return this[jn+t]=n,this},remove:function(t){var n=jn+t;return n in this&&delete this[n]},clear:function(){for(var t in this)t[0]===jn&&delete this[t]},keys:function(){var t=[];for(var n in this)n[0]===jn&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)n[0]===jn&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)n[0]===jn&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)n[0]===jn&&++t;return t},empty:function(){for(var t in this)if(t[0]===jn)return!1;return!0},each:function(t){for(var n in this)n[0]===jn&&t(this[n],n.slice(1),this)}};const zi=jd;function Wm(){var r,o,s,t=[],n=[];function u(g,v,y,x){if(v>=t.length)return null!=r&&g.sort(r),null!=o?o(g):g;for(var Z,M,N,T=-1,b=g.length,A=t[v++],P=zi(),R=y();++T<b;)(N=P.get(Z=A(M=g[T])+""))?N.push(M):P.set(Z,[M]);return P.each(function(F,G){x(R,G,u(F,v,y,x))}),R}function h(g,v){if(++v>t.length)return g;var y,x=n[v-1];return null!=o&&v>=t.length?y=g.entries():(y=[],g.each(function(T,b){y.push({key:b,values:h(T,v)})})),null!=x?y.sort(function(T,b){return x(T.key,b.key)}):y}return s={object:function(g){return u(g,0,Bd,Xm)},map:function(g){return u(g,0,Xl,Wd)},entries:function(g){return h(u(g,0,Xl,Wd),0)},key:function(g){return t.push(g),s},sortKeys:function(g){return n[t.length-1]=g,s},sortValues:function(g){return r=g,s},rollup:function(g){return o=g,s}}}function Bd(){return{}}function Xm(t,n,r){t[n]=r}function Xl(){return zi()}function Wd(t,n,r){t.set(n,r)}function Ko(){}var Cr=zi.prototype;function Xd(t,n){var r=new Ko;if(t instanceof Ko)t.each(function(u){r.add(u)});else if(t){var o=-1,s=t.length;if(null==n)for(;++o<s;)r.add(t[o]);else for(;++o<s;)r.add(n(t[o],o,t))}return r}Ko.prototype=Xd.prototype={constructor:Ko,has:Cr.has,add:function(t){return this[jn+(t+="")]=t,this},remove:Cr.remove,clear:Cr.clear,values:Cr.keys,size:Cr.size,empty:Cr.empty,each:Cr.each};const Qm=Xd;function Km(t){var n=[];for(var r in t)n.push(r);return n}function e_(t){var n=[];for(var r in t)n.push(t[r]);return n}function t_(t){var n=[];for(var r in t)n.push({key:r,value:t[r]});return n}var Qd=Math.PI/180,Kd=180/Math.PI,ef=.96422,tf=1,nf=.82521,rf=4/29,Kr=6/29,af=3*Kr*Kr,n_=Kr*Kr*Kr;function Yi(t){if(t instanceof ri)return new ri(t.l,t.a,t.b,t.opacity);if(t instanceof xi)return sf(t);t instanceof dn||(t=fl(t));var u,h,n=Kl(t.r),r=Kl(t.g),o=Kl(t.b),s=ea((.2225045*n+.7168786*r+.0606169*o)/tf);return n===r&&r===o?u=h=s:(u=ea((.4360747*n+.3850649*r+.1430804*o)/ef),h=ea((.0139322*n+.0971045*r+.7141733*o)/nf)),new ri(116*s-16,500*(u-s),200*(s-h),t.opacity)}function i_(t,n){return new ri(t,0,0,n??1)}function ts(t,n,r,o){return 1===arguments.length?Yi(t):new ri(t,n,r,o??1)}function ri(t,n,r,o){this.l=+t,this.a=+n,this.b=+r,this.opacity=+o}function ea(t){return t>n_?Math.pow(t,1/3):t/af+rf}function Ql(t){return t>Kr?t*t*t:af*(t-rf)}
1function ns(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Kl(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function of(t){if(t instanceof xi)return new xi(t.h,t.c,t.l,t.opacity);if(t instanceof ri||(t=Yi(t)),0===t.a&&0===t.b)return new xi(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*Kd;return new xi(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function r_(t,n,r,o){return 1===arguments.length?of(t):new xi(r,n,t,o??1)}function is(t,n,r,o){return 1===arguments.length?of(t):new xi(t,n,r,o??1)}function xi(t,n,r,o){this.h=+t,this.c=+n,this.l=+r,this.opacity=+o}function sf(t){if(isNaN(t.h))return new ri(t.l,0,0,t.opacity);var n=t.h*Qd;return new ri(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}ei(ri,ts,Ea(Hi,{brighter:function(t){return new ri(this.l+18*(t??1),this.a,this.b,this.opacity)},darker:function(t){return new ri(this.l-18*(t??1),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return new dn(ns(3.1338561*(n=ef*Ql(n))-1.6168667*(t=tf*Ql(t))-.4906146*(r=nf*Ql(r))),ns(-.9787684*n+1.9161415*t+.033454*r),ns(.0719453*n-.2289914*t+1.4052427*r),this.opacity)}})),ei(xi,is,Ea(Hi,{brighter:function(t){return new xi(this.h,this.c,this.l+18*(t??1),this.opacity)},darker:function(t){return new xi(this.h,this.c,this.l-18*(t??1),this.opacity)},rgb:function(){return sf(this).rgb()}}));var ec=1.78277,tc=-.29227,rs=-.90649,$a=1.97294,cf=$a*rs,uf=$a*ec,df=ec*tc- -.14861*rs;function as(t,n,r,o){return 1===arguments.length?function a_(t){if(t instanceof Tr)return new Tr(t.h,t.s,t.l,t.opacity);t instanceof dn||(t=fl(t));var r=t.g/255,o=t.b/255,s=(df*o+cf*(t.r/255)-uf*r)/(df+cf-uf),u=o-s,h=($a*(r-s)-tc*u)/rs,g=Math.sqrt(h*h+u*u)/($a*s*(1-s)),v=g?Math.atan2(h,u)*Kd-120:NaN;return new Tr(v<0?v+360:v,g,s,t.opacity)}(t):new Tr(t,n,r,o??1)}function Tr(t,n,r,o){this.h=+t,this.s=+n,this.l=+r,this.opacity=+o}function $i(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}ei(Tr,as,Ea(Hi,{brighter:function(t){return t=null==t?Gr:Math.pow(Gr,t),new Tr(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Tr(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Qd,n=+this.l,r=isNaN(this.s)?0:this.s*n*(1-n),o=Math.cos(t),s=Math.sin(t);return new dn(255*(n+r*(-.14861*o+ec*s)),255*(n+r*(tc*o+rs*s)),255*(n+r*($a*o)),this.opacity)}})),function o_(t){1===t.length&&(t=function s_(t){return function(n,r){return $i(t(n),r)}}(t))}($i);var nc=Math.sqrt(50),ic=Math.sqrt(10),rc=Math.sqrt(2);function gf(t,n,r){var o=Math.abs(n-t)/Math.max(0,r),s=Math.pow(10,Math.floor(Math.log(o)/Math.LN10)),u=o/s;return u>=nc?s*=10:u>=ic?s*=5:u>=rc&&(s*=2),n<t?-s:s}function u_(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function mf(t,n,r){t=+t,n=+n,r=(s=arguments.length)<2?(n=t,t=0,1):s<3?1:+r;for(var o=-1,s=0|Math.max(0,Math.ceil((n-t)/r)),u=new Array(s);++o<s;)u[o]=t+o*r;return u}var _f=Array.prototype.slice;function h_(t,n){return t-n}function Ji(t){return function(){return t}}function g_(t,n){for(var s,r=-1,o=n.length;++r<o;)if(s=m_(t,n[r]))return s;return 0}function m_(t,n){for(var r=n[0],o=n[1],s=-1,u=0,h=t.length,g=h-1;u<h;g=u++){var v=t[u],y=v[0],x=v[1],T=t[g],b=T[0],A=T[1];if(Ja(v,T,n))return 0;x>o!=A>o&&r<(b-y)*(o-x)/(A-x)+y&&(s=-s)}return s}function Ja(t,n,r){var o;return function __(t,n,r){return(n[0]-t[0])*(r[1]-t[1])==(r[0]-t[0])*(n[1]-t[1])}(t,n,r)&&function v_(t,n,r){return t<=n&&n<=r||r<=n&&n<=t}(t[o=+(t[0]===n[0])],r[o],n[o])}function y_(){}var Pi=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function vf(){var t=1,n=1,r=u_,o=v;function s(y){var x=r(y);if(Array.isArray(x))x=x.slice().sort(h_);else{var T=function c_(t,n){var s,u,h,r=t.length,o=-1;if(null==n){for(;++o<r;)if(null!=(s=t[o])&&s>=s)for(u=h=s;++o<r;
1)null!=(s=t[o])&&(u>s&&(u=s),h<s&&(h=s))}else for(;++o<r;)if(null!=(s=n(t[o],o,t))&&s>=s)for(u=h=s;++o<r;)null!=(s=n(t[o],o,t))&&(u>s&&(u=s),h<s&&(h=s));return[u,h]}(y),b=T[0],A=T[1];x=gf(b,A,x),x=mf(Math.floor(b/x)*x,Math.floor(A/x)*x,x)}return x.map(function(Z){return u(y,Z)})}function u(y,x){var T=[],b=[];return function h(y,x,T){var Z,M,N,R,F,b=new Array,A=new Array;for(Z=M=-1,Pi[(N=y[0]>=x)<<1].forEach(G);++Z<t-1;)Pi[N|(N=y[Z+1]>=x)<<1].forEach(G);for(Pi[N<<0].forEach(G);++M<n-1;){for(Z=-1,Pi[(N=y[M*t+t]>=x)<<1|(R=y[M*t]>=x)<<2].forEach(G);++Z<t-1;)F=R,Pi[N|(N=y[M*t+t+Z+1]>=x)<<1|(R=y[M*t+Z+1]>=x)<<2|F<<3].forEach(G);Pi[N|R<<3].forEach(G)}for(Z=-1,Pi[(R=y[M*t]>=x)<<2].forEach(G);++Z<t-1;)F=R,Pi[(R=y[M*t+Z+1]>=x)<<2|F<<3].forEach(G);function G(j){var ue,oe,Q=[j[0][0]+Z,j[0][1]+M],X=[j[1][0]+Z,j[1][1]+M],de=g(Q),se=g(X);(ue=A[de])?(oe=b[se])?(delete A[ue.end],delete b[oe.start],ue===oe?(ue.ring.push(X),T(ue.ring)):b[ue.start]=A[oe.end]={start:ue.start,end:oe.end,ring:ue.ring.concat(oe.ring)}):(delete A[ue.end],ue.ring.push(X),A[ue.end=se]=ue):(ue=b[se])?(oe=A[de])?(delete b[ue.start],delete A[oe.end],ue===oe?(ue.ring.push(X),T(ue.ring)):b[oe.start]=A[ue.end]={start:oe.start,end:ue.end,ring:oe.ring.concat(ue.ring)}):(delete b[ue.start],ue.ring.unshift(Q),b[ue.start=de]=ue):b[de]=A[se]={start:de,end:se,ring:[Q,X]}}Pi[R<<3].forEach(G)}(y,x,function(A){o(A,y,x),function p_(t){for(var n=0,r=t.length,o=t[r-1][1]*t[0][0]-t[r-1][0]*t[0][1];++n<r;)o+=t[n-1][1]*t[n][0]-t[n-1][0]*t[n][1];return o}(A)>0?T.push([A]):b.push(A)}),b.forEach(function(A){for(var P,Z=0,M=T.length;Z<M;++Z)if(-1!==g_((P=T[Z])[0],A))return void P.push(A)}),{type:"MultiPolygon",value:x,coordinates:T}}function g(y){return 2*y[0]+y[1]*(t+1)*4}function v(y,x,T){y.forEach(function(b){var N,A=b[0],Z=b[1],M=0|A,P=0|Z,R=x[P*t+M];A>0&&A<t&&M===A&&(b[0]=A+(T-(N=x[P*t+M-1]))/(R-N)-.5),Z>0&&Z<n&&P===Z&&(b[1]=Z+(T-(N=x[(P-1)*t+M]))/(R-N)-.5)})}return s.contour=u,s.size=function(y){if(!arguments.length)return[t,n];var x=Math.ceil(y[0]),T=Math.ceil(y[1]);if(!(x>0&&T>0))throw new Error("invalid size");return t=x,n=T,s},s.thresholds=function(y){return arguments.length?(r="function"==typeof y?y:Array.isArray(y)?Ji(_f.call(y)):Ji(y),s):r},s.smooth=function(y){return arguments.length?(o=y?v:y_,s):o===v},s}function ac(t,n,r){for(var o=t.width,s=t.height,u=1+(r<<1),h=0;h<s;++h)for(var g=0,v=0;g<o+r;++g)g<o&&(v+=t.data[g+h*o]),g>=r&&(g>=u&&(v-=t.data[g-u+h*o]),n.data[g-r+h*o]=v/Math.min(g+1,o-1+u-g,u))}function os(t,n,r){for(var o=t.width,s=t.height,u=1+(r<<1),h=0;h<o;++h)for(var g=0,v=0;g<s+r;++g)g<s&&(v+=t.data[h+g*o]),g>=r&&(g>=u&&(v-=t.data[h+(g-u)*o]),n.data[h+(g-r)*o]=v/Math.min(g+1,s-1+u-g,u))}function x_(t){return t[0]}function b_(t){return t[1]}function w_(){return 1}function C_(){var t=x_,n=b_,r=w_,o=960,s=500,u=20,h=2,g=3*u,v=o+2*g>>h,y=s+2*g>>h,x=Ji(20);function T(N){var R=new Float32Array(v*y),F=new Float32Array(v*y);N.forEach(function(Q,X,de){var se=+t(Q,X,de)+g>>h,ue=+n(Q,X,de)+g>>h,oe=+r(Q,X,de);se>=0&&se<v&&ue>=0&&ue<y&&(R[se+ue*v]+=oe)}),ac({width:v,height:y,data:R},{width:v,height:y,data:F},u>>h),os({width:v,height:y,data:F},{width:v,height:y,data:R},u>>h),ac({width:v,height:y,data:R},{width:v,height:y,data:F},u>>h),os({width:v,height:y,data:F},{width:v,height:y,data:R},u>>h),ac({width:v,height:y,data:R},{width:v,height:y,data:F},u>>h),os({width:v,height:y,data:F},{width:v,height:y,data:R},u>>h);var G=x(R);if(!Array.isArray(G)){var j=function d_(t,n){var s,u,r=t.length,o=-1;if(null==n){for(;++o<r;)if(null!=(s=t[o])&&s>=s)for(u=s;++o<r;)null!=(s=t[o])&&s>u&&(u=s)}else for(;++o<r;)if(null!=(s=n(t[o],o,t))&&s>=s)for(u=s;++o<r;)null!=(s=n(t[o],o,t))&&s>u&&(u=s);return u}(R);G=gf(0,j,G),(G=mf(0,Math.floor(j/G)*G,G)).shift()}return vf().thresholds(G).size([v,y])(R).map(b)}function b(N){return N.value*=Math.pow(2,-2*h),N.coordinates.forEach(A),N}function A(N){N.forEach(Z)}function Z(N){N.forEach(M)}function M(N){N[0]=N[0]*Math.pow(2,h)-g,N[1]=N[1]*Math.pow(2,h)-g}function P(){return v=o+2*(g=3*u)>>h,y=s+2*g>>h,T}return T.x=function(N){return arguments.length?(t="function"==typeof N?N:Ji(+N),T):t},T.y=function(N){return arguments.length?(n="function"==typeof N?N:Ji(+N),T):n},T.weight=function(N){return arguments.length?(r="function"==typeof N?N:Ji(+N),T):r},T.size=function(N){if(!arguments.length)return[o,s];var R=Math.ceil(N[0]),F=Math.ceil(N[1]);if(!(R>=0||R>=0))throw new Error("invalid size");return o=R,s=F,P()},T.cellSize=function(N){if(!arguments.length)return 1<<h;if(!((N=+N)>=1))throw new Error("invalid cell size");return h=Math.floor(Math.log(N)/Math.LN2),P()},T.thresholds=function(N){return arguments.length?(x="function"==typeof N?N:Array.isArray(N)?Ji(_f.call(N)):Ji(N),T):x},T.bandwidth=function(N){if(!arguments.length)return Math.sqrt(u*(u+1));if(!((N=+N)>=0))throw new Error("invalid bandwidth");return u=Math.round((Math.sqrt(4*N*N+1)-1)/2),P()},T}function yf(){for(var n,t=Pt;n=t.sourceEvent;)t=n;return t}function xf(t,n){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=n.clientX,o.y=n.clientY,[(o=o.matrixTransform(t.getScreenCTM().inverse())).x,o.y]}var s=t.getBoundingClientRect();return[n.clientX-s.left-t.clientLeft,n.clientY-s.top-t.clientTop]}function T_(t){var n=yf();return n.changedTouches&&(n=n.changedTouches[0]),xf(t,n)}function S_(t,n,r){arguments.length<3&&(r=n,n=yf().changedTouches);for(var u,o=0,s=n?n.length:0;o<s;++o)if((u=n[o]).identifier===r)return xf(t,u);return null}function ss(t){return function(){return t}}function oc(t,n,r,o,s,u,h,g,v,y){this.target=t,this.type=n,this.subject=r,this.identifier=o,this.active=s,this.x=u,this.y=h,this.dx=g,this.dy=v,this._=y}
1function A_(){return!Pt.ctrlKey&&!Pt.button}function k_(){return this.parentNode}function M_(t){return t??{x:Pt.x,y:Pt.y}}function D_(){return navigator.maxTouchPoints||"ontouchstart"in this}function sc(){var g,v,y,x,t=A_,n=k_,r=M_,o=D_,s={},u=(0,gn.Z)("start","drag","end"),h=0,T=0;function b(G){G.on("mousedown.drag",A).filter(o).on("touchstart.drag",P).on("touchmove.drag",N).on("touchend.drag touchcancel.drag",R).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function A(){if(!x&&t.apply(this,arguments)){var G=F("mouse",n.apply(this,arguments),T_,this,arguments);G&&(ko(Pt.view).on("mousemove.drag",Z,!0).on("mouseup.drag",M,!0),Mo(Pt.view),ul(),y=!1,g=Pt.clientX,v=Pt.clientY,G("start"))}}function Z(){if(Rr(),!y){var G=Pt.clientX-g,j=Pt.clientY-v;y=G*G+j*j>T}s.mouse("drag")}function M(){ko(Pt.view).on("mousemove.drag mouseup.drag",null),Do(Pt.view,y),Rr(),s.mouse("end")}function P(){if(t.apply(this,arguments)){var X,de,G=Pt.changedTouches,j=n.apply(this,arguments),Q=G.length;for(X=0;X<Q;++X)(de=F(G[X].identifier,j,S_,this,arguments))&&(ul(),de("start"))}}function N(){var Q,X,G=Pt.changedTouches,j=G.length;for(Q=0;Q<j;++Q)(X=s[G[Q].identifier])&&(Rr(),X("drag"))}function R(){var Q,X,G=Pt.changedTouches,j=G.length;for(x&&clearTimeout(x),x=setTimeout(function(){x=null},500),Q=0;Q<j;++Q)(X=s[G[Q].identifier])&&(ul(),X("end"))}function F(G,j,Q,X,de){var ue,oe,z,se=Q(j,G),ee=u.copy();if(Za(new oc(b,"beforestart",ue,G,h,se[0],se[1],0,0,ee),function(){return null!=(Pt.subject=ue=r.apply(X,de))&&(oe=ue.x-se[0]||0,z=ue.y-se[1]||0,!0)}))return function _e(K){var qe,me=se;switch(K){case"start":s[G]=_e,qe=h++;break;case"end":delete s[G],--h;case"drag":se=Q(j,G),qe=h}Za(new oc(b,K,ue,G,qe,se[0]+oe,se[1]+z,se[0]-me[0],se[1]-me[1],ee),ee.apply,ee,[K,X,de])}}return b.filter=function(G){return arguments.length?(t="function"==typeof G?G:ss(!!G),b):t},b.container=function(G){return arguments.length?(n="function"==typeof G?G:ss(G),b):n},b.subject=function(G){return arguments.length?(r="function"==typeof G?G:ss(G),b):r},b.touchable=function(G){return arguments.length?(o="function"==typeof G?G:ss(!!G),b):o},b.on=function(){var G=u.on.apply(u,arguments);return G===u?b:G},b.clickDistance=function(G){return arguments.length?(T=(G=+G)*G,b):Math.sqrt(T)},b}oc.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var bf={},lc={},cc=34,ja=10,uc=13;function wf(t){return new Function("d","return {"+t.map(function(n,r){return JSON.stringify(n)+": d["+r+'] || ""'}).join(",")+"}")}function Cf(t){var n=Object.create(null),r=[];return t.forEach(function(o){for(var s in o)s in n||r.push(n[s]=s)}),r}function kn(t,n){var r=t+"",o=r.length;return o<n?new Array(n-o+1).join(0)+r:r}function ls(t){var n=new RegExp('["'+t+"\n\r]"),r=t.charCodeAt(0);function s(T,b){var N,A=[],Z=T.length,M=0,P=0,R=Z<=0,F=!1;function G(){if(R)return lc;if(F)return F=!1,bf;var Q,de,X=M;if(T.charCodeAt(X)===cc){for(;M++<Z&&T.charCodeAt(M)!==cc||T.charCodeAt(++M)===cc;);return(Q=M)>=Z?R=!0:(de=T.charCodeAt(M++))===ja?F=!0:de===uc&&(F=!0,T.charCodeAt(M)===ja&&++M),T.slice(X+1,Q-1).replace(/""/g,'"')}for(;M<Z;){if((de=T.charCodeAt(Q=M++))===ja)F=!0;else if(de===uc)F=!0,T.charCodeAt(M)===ja&&++M;else if(de!==r)continue;return T.slice(X,Q)}return R=!0,T.slice(X,Z)}for(T.charCodeAt(Z-1)===ja&&--Z,T.charCodeAt(Z-1)===uc&&--Z;(N=G())!==lc;){for(var j=[];N!==bf&&N!==lc;)j.push(N),N=G();b&&null==(j=b(j,P++))||A.push(j)}return A}function u(T,b){return T.map(function(A){return b.map(function(Z){return x(A[Z])}).join(t)})}function y(T){return T.map(x).join(t)}function x(T){return null==T?"":T instanceof Date?function P_(t){var n=t.getUTCHours(),r=t.getUTCMinutes(),o=t.getUTCSeconds(),s=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":function E_(t){return t<0?"-"+kn(-t,6):t>9999?"+"+kn(t,6):kn(t,4)}(t.getUTCFullYear())+"-"+kn(t.getUTCMonth()+1,2)+"-"+kn(t.getUTCDate(),2)+(s?"T"+kn(n,2)+":"+kn(r,2)+":"+kn(o,2)+"."+kn(s,3)+"Z":o?"T"+kn(n,2)+":"+kn(r,2)+":"+kn(o,2)+"Z":r||n?"T"+kn(n,2)+":"+kn(r,2)+"Z":"")}(T):n.test(T+="")?'"'+T.replace(/"/g,'""')+'"':T}return{parse:function o(T,b){var A,Z,M=s(T,function(P,N){if(A)return A(P,N-1);Z=P,A=b?function Z_(t,n){var r=wf(t);return function(o,s){return n(r(o),s,t)}}(P,b):wf(P)});return M.columns=Z||[],M},parseRows:s,format:function h(T,b){return null==b&&(b=Cf(T)),[b.map(x).join(t)].concat(u(T,b)).join("\n")},formatBody:function g(T,b){return null==b&&(b=Cf(T)),u(T,b).join("\n")},formatRows:function v(T){return T.map(y).join("\n")},formatRow:y,formatValue:x}}var Sr=ls(","),L_=Sr.parse,Tf=Sr.parseRows,N_=Sr.format,O_=Sr.formatBody,I_=Sr.formatRows,F_=Sr.formatRow,q_=Sr.formatValue,Ar=ls("\t"),Sf=Ar.parse,U_=Ar.parseRows,R_=Ar.format,G_=Ar.formatBody,Wv=Ar.formatRows,Xv=Ar.formatRow,H_=Ar.formatValue;function Af(t){for(var n in t){var o,s,r=t[n].trim();if(r)if("true"===r)r=!0;else if("false"===r)r=!1;else if("NaN"===r)r=NaN;else if(isNaN(o=+r)){if(!(s=r.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;V_&&s[4]&&!s[7]&&(r=r.replace(/-/g,"/").replace(/T/," ")),r=new Date(r)}else r=o;else r=null;t[n]=r}return t}var V_=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function z_(t){return+t}function Y_(t){return t*t}function kf(t){return t*(2-t)}function Mf(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var Df=function t(n){function r(o){return Math.pow(o,n)}return n=+n,r.exponent=t,r}(3),$_=function t(n){function r(o){return 1-Math.pow(1-o,n)}return n=+n,r.exponent=t,r}(3),J_=function t(n){function r(o){return((o*=2)<=1?Math.pow(o,n):2-Math.pow(2-o,n))
vendor: 18,906 bytes, line 1
1/2}return n=+n,r.exponent=t,r}(3),Zf=Math.PI,Ef=Zf/2;function j_(t){return 1==+t?1:1-Math.cos(t*Ef)}function Qv(t){return Math.sin(t*Ef)}function B_(t){return(1-Math.cos(Zf*t))/2}function kr(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function Kv(t){return kr(1-+t)}function ey(t){return 1-kr(t)}function W_(t){return((t*=2)<=1?kr(1-t):2-kr(t-1))/2}function ty(t){return 1-Math.sqrt(1-t*t)}function X_(t){return Math.sqrt(1- --t*t)}function Q_(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var cs=4/11,ny=6/11,K_=8/11,e1=3/4,iy=9/11,Pf=10/11,Lf=15/16,t1=21/22,Nf=63/64,us=1/cs/cs;function n1(t){return 1-Ba(1-t)}function Ba(t){return(t=+t)<cs?us*t*t:t<K_?us*(t-=ny)*t+e1:t<Pf?us*(t-=iy)*t+Lf:us*(t-=t1)*t+Nf}function Of(t){return((t*=2)<=1?1-Ba(1-t):Ba(t-1)+1)/2}var ds=1.70158,ry=function t(n){function r(o){return(o=+o)*o*(n*(o-1)+o)}return n=+n,r.overshoot=t,r}(ds),i1=function t(n){function r(o){return--o*o*((o+1)*n+o)+1}return n=+n,r.overshoot=t,r}(ds),If=function t(n){function r(o){return((o*=2)<1?o*o*((n+1)*o-n):(o-=2)*o*((n+1)*o+n)+2)/2}return n=+n,r.overshoot=t,r}(ds),ta=2*Math.PI,r1=function t(n,r){var o=Math.asin(1/(n=Math.max(1,n)))*(r/=ta);function s(u){return n*kr(- --u)*Math.sin((o-u)/r)}return s.amplitude=function(u){return t(u,r*ta)},s.period=function(u){return t(n,u)},s}(1,.3),Ff=function t(n,r){var o=Math.asin(1/(n=Math.max(1,n)))*(r/=ta);function s(u){return 1-n*kr(u=+u)*Math.sin((u+o)/r)}return s.amplitude=function(u){return t(u,r*ta)},s.period=function(u){return t(n,u)},s}(1,.3),a1=function t(n,r){var o=Math.asin(1/(n=Math.max(1,n)))*(r/=ta);function s(u){return((u=2*u-1)<0?n*kr(-u)*Math.sin((o-u)/r):2-n*kr(u)*Math.sin((o+u)/r))/2}return s.amplitude=function(u){return t(u,r*ta)},s.period=function(u){return t(n,u)},s}(1,.3);function o1(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function s1(t,n){return fetch(t,n).then(o1)}function qf(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function l1(t,n){return fetch(t,n).then(qf)}function c1(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function hs(t,n){return fetch(t,n).then(c1)}function Uf(t){return function(n,r,o){return 2===arguments.length&&"function"==typeof r&&(o=r,r=void 0),hs(n,r).then(function(s){return t(s,o)})}}function Rf(t,n,r,o){3===arguments.length&&"function"==typeof r&&(o=r,r=void 0);var s=ls(t);return hs(n,r).then(function(u){return s.parse(u,o)})}var Gf=Uf(L_),u1=Uf(Sf);function d1(t,n){return new Promise(function(r,o){var s=new Image;for(var u in n)s[u]=n[u];s.onerror=o,s.onload=function(){r(s)},s.src=t})}function ps(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}function f1(t,n){return fetch(t,n).then(ps)}function hc(t){return function(n,r){return hs(n,r).then(function(o){return(new DOMParser).parseFromString(o,t)})}}const h1=hc("application/xml");var p1=hc("text/html"),g1=hc("image/svg+xml");function m1(t,n){var r;function o(){var s,h,u=r.length,g=0,v=0;for(s=0;s<u;++s)g+=(h=r[s]).x,v+=h.y;for(g=g/u-t,v=v/u-n,s=0;s<u;++s)(h=r[s]).x-=g,h.y-=v}return null==t&&(t=0),null==n&&(n=0),o.initialize=function(s){r=s},o.x=function(s){return arguments.length?(t=+s,o):t},o.y=function(s){return arguments.length?(n=+s,o):n},o}function rn(t){return function(){return t}}function ji(){return 1e-6*(Math.random()-.5)}function Hf(t,n,r,o){if(isNaN(n)||isNaN(r))return t;var s,T,b,A,Z,M,P,N,R,u=t._root,h={data:o},g=t._x0,v=t._y0,y=t._x1,x=t._y1;if(!u)return t._root=h,t;for(;u.length;)if((M=n>=(T=(g+y)/2))?g=T:y=T,(P=r>=(b=(v+x)/2))?v=b:x=b,s=u,!(u=u[N=P<<1|M]))return s[N]=h,t;if(A=+t._x.call(null,u.data),Z=+t._y.call(null,u.data),n===A&&r===Z)return h.next=u,s?s[N]=h:t._root=h,t;do{s=s?s[N]=new Array(4):t._root=new Array(4),(M=n>=(T=(g+y)/2))?g=T:y=T,(P=r>=(b=(v+x)/2))?v=b:x=b}while((N=P<<1|M)==(R=(Z>=b)<<1|A>=T));return s[R]=u,s[N]=h,t}function i(t,n,r,o,s){this.node=t,this.x0=n,this.y0=r,this.x1=o,this.y1=s}function re(t){return t[0]}function Se(t){return t[1]}function ke(t,n,r){var o=new Te(n??re,r??Se,NaN,NaN,NaN,NaN);return null==t?o:o.addAll(t)}function Te(t,n,r,o,s,u){this._x=t,this._y=n,this._x0=r,this._y0=o,this._x1=s,this._y1=u,this._root=void 0}function Ie(t){for(var n={data:t.data},r=n;t=t.next;)r=r.next={data:t.data};return n}var Oe=ke.prototype=Te.prototype;function Je(t){return t.x+t.vx}function Ve(t){return t.y+t.vy}function Qe(t){var n,r,o=1,s=1;function u(){for(var v,x,T,b,A,Z,M,y=n.length,P=0;P<s;++P)for(x=ke(n,Je,Ve).visitAfter(h),v=0;v<y;++v)M=(Z=r[(T=n[v]).index])*Z,b=T.x+T.vx,A=T.y+T.vy,x.visit(N);function N(R,F,G,j,Q){var X=R.data,de=R.r,se=Z+de;if(!X)return F>b+se||j<b-se||G>A+se||Q<A-se;if(X.index>T.index){var ue=b-X.x-X.vx,oe=A-X.y-X.vy,z=ue*ue+oe*oe;z<se*se&&(0===ue&&(z+=(ue=ji())*ue),0===oe&&(z+=(oe=ji())*oe),z=(se-(z=Math.sqrt(z)))/z*o,T.vx+=(ue*=z)*(se=(de*=de)/(M+de)),T.vy+=(oe*=z)*se,X.vx-=ue*(se=1-se),X.vy-=oe*se)}}}function h(v){if(v.data)return v.r=r[v.data.index];for(var y=v.r=0;y<4;++y)v[y]&&v[y].r>v.r&&(v.r=v[y].r)}function g(){if(n){var v,x,y=n.length;for(r=new Array(y),v=0;v<y;++v)r[(x=n[v]).index]=+t(x,v,n)}}return"function"!=typeof t&&(t=rn(null==t?1:+t)),u.initialize=function(v){n=v,g()},u.iterations=function(v){return arguments.length?(s=+v,u):s},u.strength=function(v){return arguments.length?(o=+v,u):o},u.radius=function(v){return arguments.length?(t="function"==typeof v?v:rn(+v),g(),u):t},u}function gt(t){return t.index}function St(t,n){var r=t.get(n);if(!r)throw new Error("missing: "+n);return r}function Rt(t){var o,u,h,g,v,n=gt,r=function x(M){return 1/Math.min(g[M.source.index],g[M.target.index])},s=rn(30),y=1;function T(M){for(var P=0,N=t.length;P<y;++P)for(var F,G,j,Q,X,de,se,R=0;R<N;++R)Q=(j=(F=t[R]).target).x+j.vx-(G=F.source).x-G.vx||ji(),X=j.y+j.vy-G.y-G.vy||ji(),X*=de=((de=Math.sqrt(Q*Q+X*X))-u[R])/de*M*o[R],j.vx-=(Q*=de)*(se=v[R]),j.vy-=X*se,G.vx+=Q*(se=1-se),G.vy+=X*se}function b(){if(h){var M,F,P=h.length,N=t.length,R=zi(h,n);for(M=0,g=new Array(P);M<N;++M)(F=t[M]).index=M,"object"!=typeof F.source&&(F.source=St(R,F.source)),"object"!=typeof F.target&&(F.target=St(R,F.target)),g[F.source.index]=(g[F.source.index]||0)+1,g[F.target.index]=(g[F.target.index]||0)+1;for(M=0,v=new Array(N);M<N;++M)v[M]=g[(F=t[M]).source.index]/(g[F.source.index]+g[F.target.index]);o=new Array(N),A(),u=new Array(N),Z()}}function A(){if(h)for(var M=0,P=t.length;M<P;++M)o[M]=+r(t[M],M,t)}function Z(){if(h)for(var M=0,P=t.length;M<P;++M)u[M]=+s(t[M],M,t)}return null==t&&(t=[]),T.initialize=function(M){h=M,b()},T.links=function(M){return arguments.length?(t=M,b(),T):t},T.id=function(M){return arguments.length?(n=M,T):n},T.iterations=function(M){return arguments.length?(y=+M,T):y},T.strength=function(M){return arguments.length?(r="function"==typeof M?M:rn(+M),A(),T):r},T.distance=function(M){return arguments.length?(s="function"==typeof M?M:rn(+M),Z(),T):s},T}function at(t){return t.x}function et(t){return t.y}Oe.copy=function(){var r,o,t=new Te(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return t;if(!n.length)return t._root=Ie(n),t;for(r=[{source:n,target:t._root=new Array(4)}];n=r.pop();)for(var s=0;s<4;++s)(o=n.source[s])&&(o.length?r.push({source:o,target:n.target[s]=new Array(4)}):n.target[s]=Ie(o));return t},Oe.add=function _1(t){var n=+this._x.call(null,t),r=+this._y.call(null,t);return Hf(this.cover(n,r),n,r,t)},Oe.addAll=function v1(t){var n,r,s,u,o=t.length,h=new Array(o),g=new Array(o),v=1/0,y=1/0,x=-1/0,T=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,n=t[r]))||isNaN(u=+this._y.call(null,n))||(h[r]=s,g[r]=u,s<v&&(v=s),s>x&&(x=s),u<y&&(y=u),u>T&&(T=u));if(v>x||y>T)return this;for(this.cover(v,y).cover(x,T),r=0;r<o;++r)Hf(this,h[r],g[r],t[r]);return this},Oe.cover=function y1(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var r=this._x0,o=this._y0,s=this._x1,u=this._y1;if(isNaN(r))s=(r=Math.floor(t))+1,u=(o=Math.floor(n))+1;else{for(var v,y,h=s-r,g=this._root;r>t||t>=s||o>n||n>=u;)switch(y=(n<o)<<1|t<r,v=new Array(4),v[y]=g,g=v,h*=2,y){case 0:s=r+h,u=o+h;break;case 1:r=s-h,u=o+h;break;case 2:s=r+h,o=u-h;break;case 3:r=s-h,o=u-h}this._root&&this._root.length&&(this._root=g)}return this._x0=r,this._y0=o,this._x1=s,this._y1=u,this},Oe.data=function c(){var t=[];return this.visit(function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)}),t},Oe.extent=function _(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Oe.find=function d(t,n,r){var o,h,g,v,y,Z,M,s=this._x0,u=this._y0,x=this._x1,T=this._y1,b=[],A=this._root;for(A&&b.push(new i(A,s,u,x,T)),null==r?r=1/0:(s=t-r,u=n-r,x=t+r,T=n+r,r*=r);Z=b.pop();)if(!(!(A=Z.node)||(h=Z.x0)>x||(g=Z.y0)>T||(v=Z.x1)<s||(y=Z.y1)<u))if(A.length){var P=(h+v)/2,N=(g+y)/2;b.push(new i(A[3],P,N,v,y),new i(A[2],h,N,P,y),new i(A[1],P,g,v,N),new i(A[0],h,g,P,N)),(M=(n>=N)<<1|t>=P)&&(Z=b[b.length-1],b[b.length-1]=b[b.length-1-M],b[b.length-1-M]=Z)}else{var R=t-+this._x.call(null,A.data),F=n-+this._y.call(null,A.data),G=R*R+F*F;if(G<r){var j=Math.sqrt(r=G);s=t-j,u=n-j,x=t+j,T=n+j,o=A.data}}return o},Oe.remove=function p(t){if(isNaN(x=+this._x.call(null,t))||isNaN(T=+this._y.call(null,t)))return this;var n,o,s,u,x,T,b,A,Z,M,P,N,r=this._root,h=this._x0,g=this._y0,v=this._x1,y=this._y1;if(!r)return this;if(r.length)for(;;){if((Z=x>=(b=(h+v)/2))?h=b:v=b,(M=T>=(A=(g+y)/2))?g=A:y=A,n=r,!(r=r[P=M<<1|Z]))return this;if(!r.length)break;(n[P+1&3]||n[P+2&3]||n[P+3&3])&&(o=n,N=P)}for(;r.data!==t;)if(s=r,!(r=r.next))return this;return(u=r.next)&&delete r.next,s?(u?s.next=u:delete s.next,this):n?(u?n[P]=u:delete n[P],(r=n[0]||n[1]||n[2]||n[3])&&r===(n[3]||n[2]||n[1]||n[0])&&!r.length&&(o?o[N]=r:this._root=r),this):(this._root=u,this)},Oe.removeAll=function w(t){for(var n=0,r=t.length;n<r;++n)this.remove(t[n]);return this},Oe.root=function k(){return this._root},Oe.size=function I(){var t=0;return this.visit(function(n){if(!n.length)do{++t}while(n=n.next)}),t},Oe.visit=function te(t){var r,s,u,h,g,v,n=[],o=this._root;for(o&&n.push(new i(o,this._x0,this._y0,this._x1,this._y1));r=n.pop();)if(!t(o=r.node,u=r.x0,h=r.y0,g=r.x1,v=r.y1)&&o.length){var y=(u+g)/2,x=(h+v)/2;(s=o[3])&&n.push(new i(s,y,x,g,v)),(s=o[2])&&n.push(new i(s,u,x,y,v)),(s=o[1])&&n.push(new i(s,y,h,g,x)),(s=o[0])&&n.push(new i(s,u,h,y,x))}return this},Oe.visitAfter=function B(t){var o,n=[],r=[];for(this._root&&n.push(new i(this._root,this._x0,this._y0,this._x1,this._y1));o=n.pop();){var s=o.node;if(s.length){var u,h=o.x0,g=o.y0,v=o.x1,y=o.y1,x=(h+v)/2,T=(g+y)/2;(u=s[0])&&n.push(new i(u,h,g,x,T)),(u=s[1])&&n.push(new i(u,x,g,v,T)),(u=s[2])&&n.push(new i(u,h,T,x,y)),(u=s[3])&&n.push(new i(u,x,T,v,y))}r.push(o)}for(;o=r.pop();)t(o.node,o.x0,o.y0,o.x1,o.y1);return this},Oe.x=function ge(t){return arguments.length?(this._x=t,this):this._x},Oe.y=function he(t){return arguments.length?(this._y=t,this):this._y};var it=10,De=Math.PI*(3-Math.sqrt(5));function Me(t){var n,r=1,o=.001,s=1-Math.pow(o,1/300),u=0,h=.6,g=zi(),v=(0,Nt.HT)(x),y=(0,gn.Z)("tick","end");function x(){T(),y.call("tick",n),r<o&&(v.stop(),y.call("end",n))}function T(Z){var M,N,P=t.length;void 0===Z&&(Z=1);for(var R=0;R<Z;++R)for(r+=(u-r)*s,g.each(function(F){F(r)}),M=0;M<P;++M)null==(N=t[M]).fx?N.x+=N.vx*=h:(N.x=N.fx,N.vx=0),null==N.fy?N.y+=N.vy*=h:(N.y=N.fy,N.vy=0);return n}function b(){for(var P,Z=0,M=t.length;Z<M;++Z){if((P=t[Z]).index=Z,null!=P.fx&&(P.x=P.fx),null!=P.fy&&(P.y=P.fy),isNaN(P.x)||isNaN(P.y)){var N=it*Math.sqrt(Z),R=Z*De;P.x=N*Math.cos(R),P.y=N*Math.sin(R)}(isNaN(P.vx)||isNaN(P.vy))&&(P.vx=P.vy=0)}}function A(Z){return Z.initialize&&Z.initialize(t),Z}return null==t&&(t=[]),b(),n={tick:T,restart:function(){return v.restart(x),n},stop:function(){return v.stop(),n},nodes:function(Z){return arguments.length?(t=Z,b(),g.each(A),n):t},alpha:function(Z){return arguments.length?(r=+Z,n):r},alphaMin:function(Z){return arguments.length?(o=+Z,n):o},alphaDecay:function(Z){return arguments.length?(s=+Z,n):+s},alphaTarget:function(Z){return arguments.length?(u=+Z,n):u},velocityDecay:function(Z){return arguments.length?(h=1-Z,n):1-h},force:function(Z,M){return arguments.length>1?(null==M?g.remove(Z):g.set(Z,A(M)),n):g.get(Z)},find:function(Z,M,P){var F,G,j,Q,X,N=0,R=t.length;for(null==P?P=1/0:P*=P,N=0;N<R;++N)(j=(F=Z-(Q=t[N]).x)*F+(G=M-Q.y)*G)<P&&(X=Q,P=j);return X},on:function(Z,M){return arguments.length>1?(y.on(Z,M),n):y.on(Z)}}}function kt(){var t,n,r,s,o=rn(-30),u=1,h=1/0,g=.81;function v(b){var A,Z=t.length,M=ke(t,at,et).visitAfter(x);for(r=b,A=0;A<Z;++A)n=t[A],M.visit(T)}function y(){if(t){var b,Z,A=t.length;for(s=new Array(A),b=0;b<A;++b)s[(Z=t[b]).index]=+o(Z,b,t)}}function x(b){var Z,M,N,R,F,A=0,P=0;if(b.length){for(N=R=F=0;F<4;++F)(Z=b[F])&&(M=Math.abs(Z.value))&&(A+=Z.value,P+=M,N+=M*Z.x,R+=M*Z.y);b.x=N/P,b.y=R/P}else{(Z=b).x=Z.data.x,Z.y=Z.data.y;do{A+=s[Z.data.index]}while(Z=Z.next)}b.value=A}function T(b,A,Z,M){if(!b.value)return!0;var P=b.x-n.x,N=b.y-n.y,R=M-A,F=P*P+N*N;if(R*R/g<F)return F<h&&(0===P&&(F+=(P=ji())*P),0===N&&(F+=(N=ji())*N),F<u&&(F=Math.sqrt(u*F)),n.vx+=P*b.value*r/F,n.vy+=N*b.value*r/F),!0;if(!(b.length||F>=h)){(b.data!==n||b.next)&&(0===P&&(F+=(P=ji())*P),0===N&&(F+=(N=ji())*N),F<u&&(F=Math.sqrt(u*F)));do{b.data!==n&&(n.vx+=P*(R=s[b.data.index]*r/F),n.vy+=N*R)}while(b=b.next)}}return v.initialize=function(b){t=b,y()},v.strength=function(b){return arguments.length?(o="function"==typeof b?b:rn(+b),y(),v):o},v.distanceMin=function(b){return arguments.length?(u=b*b,v):Math.sqrt(u)},v.distanceMax=function(b){return arguments.length?(h=b*b,v):Math.sqrt(h)},v.theta=function(b){return arguments.length?(g=b*b,v):Math.sqrt(g)},v}function Lt(t,n,r){var o,u,h,s=rn(.1);function g(y){for(var x=0,T=o.length;x<T;++x){var b=o[x],A=b.x-n||1e-6,Z=b.y-r||1e-6,M=Math.sqrt(A*A+Z*Z),P=(h[x]-M)*u[x]*y/M;b.vx+=A*P,b.vy+=Z*P}}function v(){if(o){var y,x=o.length;for(u=new Array(x),h=new Array(x),y=0;y<x;++y)h[y]=+t(o[y],y,o),u[y]=isNaN(h[y])?0:+s(o[y],y,o)}}return"function"!=typeof t&&(t=rn(+t)),null==n&&(n=0),null==r&&(r=0),g.initialize=function(y){o=y,v()},g.strength=function(y){return arguments.length?(s="function"==typeof y?y:rn(+y),v(),g):s},g.radius=function(y){return arguments.length?(t="function"==typeof y?y:rn(+y),v(),g):t},g.x=function(y){return arguments.length?(n=+y,g):n},g.y=function(y){return arguments.length?(r=+y,g):r},g}function na(t){var r,o,s,n=rn(.1);function u(g){for(var x,v=0,y=r.length;v<y;++v)(x=r[v]).vx+=(s[v]-x.x)*o[v]*g}function h(){if(r){var g,v=r.length;for(o=new Array(v),s=new Array(v),g=0;g<v;++g)o[g]=isNaN(s[g]=+t(r[g],g,r))?0:+n(r[g],g,r)}}return"function"!=typeof t&&(t=rn(null==t?0:+t)),u.initialize=function(g){r=g,h()},u.strength=function(g){return arguments.length?(n="function"==typeof g?g:rn(+g),h(),u):n},u.x=function(g){return arguments.length?(t="function"==typeof g?g:rn(+g),h(),u):t},u}function Wa(t){var r,o,s,n=rn(.1);function u(g){for(var x,v=0,y=r.length;v<y;++v)(x=r[v]).vy+=(s[v]-x.y)*o[v]*g}function h(){if(r){var g,v=r.length;for(o=new Array(v),s=new Array(v),g=0;g<v;++g)o[g]=isNaN(s[g]=+t(r[g],g,r))?0:+n(r[g],g,r)}}return"function"!=typeof t&&(t=rn(null==t?0:+t)),u.initialize=function(g){r=g,h()},u.strength=function(g){return arguments.length?(n="function"==typeof g?g:rn(+g),h(),u):n},u.y=function(g){return arguments.length?(t="function"==typeof g?g:rn(+g),h(),u):t},u}function Li(t,n){if((r=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var r,o=t.slice(0,r);return[o.length>1?o[0]+o.slice(2):o,+t.slice(r+1)]}function Vt(t){return(t=Li(Math.abs(t)))?t[1]:NaN}var ra,Xa=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Mr(t){if(!(n=Xa.exec(t)))throw new Error("invalid format: "+t);var n;return new Wi({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function Wi(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Qi(t,n){var r=Li(t,n);if(!r)return t+"";var o=r[0],s=r[1];return s<0?"0."+new Array(-s).join("0")+o:o.length>s+1?o.slice(0,s+1)+"."+o.slice(s+1):o+new Array(s-o.length+2).join("0")}Mr.prototype=Wi.prototype,Wi.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Qa={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function ia(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return Qi(100*t,n)},r:Qi,s:function gs(t,n){var r=Li(t,n);if(!r)return t+"";var o=r[0],s=r[1],u=s-(ra=3*Math.max(-8,Math.min(8,Math.floor(s/3))))+1,h=o.length;return u===h?o:u>h?o+new Array(u-h+1).join("0"):u>0?o.slice(0,u)+"."+o.slice(u):"0."+new Array(1-u).join("0")+Li(t,Math.max(0,n+u-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function Vf(t){return t}var ms,eo,gc,pc=Array.prototype.map,Ka=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function zf(t){var n=void 0===t.grouping||void 0===t.thousands?Vf:function Bi(t,n){return function(r,o){for(var s=r.length,u=[],h=0,g=t[0],v=0;s>0&&g>0&&(v+g+1>o&&(g=Math.max(1,o-v)),u.push(r.substring(s-=g,s+g)),!((v+=g+1)>o));)g=t[h=(h+1)%t.length];return u.reverse().join(n)}}(pc.call(t.grouping,Number),t.thousands+""),r=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?Vf:function bn(t){return function(n){return n.replace(/[0-9]/g,function(r){return t[+r]})}}(pc.call(t.numerals,String)),h=void 0===t.percent?"%":t.percent+"",g=void 0===t.minus?"-":t.minus+"",v=void 0===t.nan?"NaN":t.nan+"";function y(T){var b=(T=Mr(T)).fill,A=T.align,Z=T.sign,M=T.symbol,P=T.zero,N=T.width,R=T.comma,F=T.precision,G=T.trim,j=T.type;"n"===j?(R=!0,j="g"):Qa[j]||(void 0===F&&(F=12),G=!0,j="g"),(P||"0"===b&&"="===A)&&(P=!0,b="0",A="=");var Q="$"===M?r:"#"===M&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",X="$"===M?o:/[%p]/.test(j)?h:"",de=Qa[j],se=/[defgprs%]/.test(j);function ue(oe){var _e,K,me,z=Q,ee=X;if("c"===j)ee=de(oe)+ee,oe="";
1else{var qe=(oe=+oe)<0||1/oe<0;if(oe=isNaN(oe)?v:de(Math.abs(oe),F),G&&(oe=function Xi(t){e:for(var s,n=t.length,r=1,o=-1;r<n;++r)switch(t[r]){case".":o=s=r;break;case"0":0===o&&(o=r),s=r;break;default:if(!+t[r])break e;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(s+1):t}(oe)),qe&&0==+oe&&"+"!==Z&&(qe=!1),z=(qe?"("===Z?Z:g:"-"===Z||"("===Z?"":Z)+z,ee=("s"===j?Ka[8+ra/3]:"")+ee+(qe&&"("===Z?")":""),se)for(_e=-1,K=oe.length;++_e<K;)if(48>(me=oe.charCodeAt(_e))||me>57){ee=(46===me?s+oe.slice(_e+1):oe.slice(_e))+ee,oe=oe.slice(0,_e);break}}R&&!P&&(oe=n(oe,1/0));var Ne=z.length+oe.length+ee.length,ze=Ne<N?new Array(N-Ne+1).join(b):"";switch(R&&P&&(oe=n(ze+oe,ze.length?N-ee.length:1/0),ze=""),A){case"<":oe=z+oe+ee+ze;break;case"=":oe=z+ze+oe+ee;break;case"^":oe=ze.slice(0,Ne=ze.length>>1)+z+oe+ee+ze.slice(Ne);break;default:oe=ze+z+oe+ee}return u(oe)}return F=void 0===F?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,F)):Math.max(0,Math.min(20,F)),ue.toString=function(){return T+""},ue}return{format:y,formatPrefix:function x(T,b){var A=y(((T=Mr(T)).type="f",T)),Z=3*Math.max(-8,Math.min(8,Math.floor(Vt(b)/3))),M=Math.pow(10,-Z),P=Ka[8+Z/3];return function(N){return A(M*N)+P}}}}function mc(t){return ms=zf(t),eo=ms.format,gc=ms.formatPrefix,ms}function _c(t){return Math.max(0,-Vt(Math.abs(t)))}function to(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Vt(n)/3)))-Vt(Math.abs(t)))}function Yf(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Vt(n)-Vt(t))+1}function Ki(){return new no}function no(){this.reset()}mc({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),no.prototype={constructor:no,reset:function(){this.s=this.t=0},add:function(t){vc(aa,t,this.t),vc(this,aa.s,this.s),this.s?this.t+=aa.t:this.s=aa.t},valueOf:function(){return this.s}};var aa=new no;function vc(t,n,r){var o=t.s=n+r,s=o-n;t.t=n-(o-s)+(r-s)}var Ye=1e-6,_s=1e-12,ct=Math.PI,Bt=ct/2,io=ct/4,wn=2*ct,Ot=180/ct,je=ct/180,wt=Math.abs,oa=Math.atan,_t=Math.atan2,Ge=Math.cos,sa=Math.ceil,$f=Math.exp,la=(Math,Math.log),ai=Math.pow,Le=Math.sin,Bn=Math.sign||function(t){return t>0?1:t<0?-1:0},q=Math.sqrt,Y=Math.tan;function W(t){return t>1?0:t<-1?ct:Math.acos(t)}function le(t){return t>1?Bt:t<-1?-Bt:Math.asin(t)}function Ce(t){return(t=Le(t/2))*t}function ve(){}function tt(t,n){t&&ft.hasOwnProperty(t.type)&&ft[t.type](t,n)}
vendor: 5,822 bytes, line 1
1var He={Feature:function(t,n){tt(t.geometry,n)},FeatureCollection:function(t,n){for(var r=t.features,o=-1,s=r.length;++o<s;)tt(r[o].geometry,n)}},ft={Sphere:function(t,n){n.sphere()},Point:function(t,n){n.point((t=t.coordinates)[0],t[1],t[2])},MultiPoint:function(t,n){for(var r=t.coordinates,o=-1,s=r.length;++o<s;)n.point((t=r[o])[0],t[1],t[2])},LineString:function(t,n){Fe(t.coordinates,n,0)},MultiLineString:function(t,n){for(var r=t.coordinates,o=-1,s=r.length;++o<s;)Fe(r[o],n,0)},Polygon:function(t,n){We(t.coordinates,n)},MultiPolygon:function(t,n){for(var r=t.coordinates,o=-1,s=r.length;++o<s;)We(r[o],n)},GeometryCollection:function(t,n){for(var r=t.geometries,o=-1,s=r.length;++o<s;)tt(r[o],n)}};function Fe(t,n,r){var u,o=-1,s=t.length-r;for(n.lineStart();++o<s;)n.point((u=t[o])[0],u[1],u[2]);n.lineEnd()}function We(t,n){var r=-1,o=t.length;for(n.polygonStart();++r<o;)Fe(t[r],n,1);n.polygonEnd()}function vt(t,n){t&&He.hasOwnProperty(t.type)?He[t.type](t,n):tt(t,n)}var ca,Dr,xc,ro,bc,In=Ki(),mn=Ki(),bi={point:ve,lineStart:ve,lineEnd:ve,polygonStart:function(){In.reset(),bi.lineStart=x1,bi.lineEnd=b1},polygonEnd:function(){var t=+In;mn.add(t<0?wn+t:t),this.lineStart=this.lineEnd=this.point=ve},sphere:function(){mn.add(wn)}};function x1(){bi.point=w1}function b1(){Jf(ca,Dr)}function w1(t,n){bi.point=Jf,ca=t,Dr=n,xc=t*=je,ro=Ge(n=(n*=je)/2+io),bc=Le(n)}function Jf(t,n){var r=(t*=je)-xc,o=r>=0?1:-1,s=o*r,u=Ge(n=(n*=je)/2+io),h=Le(n),g=bc*h,v=ro*u+g*Ge(s),y=g*o*Le(s);In.add(_t(y,v)),xc=t,ro=u,bc=h}function C1(t){return mn.reset(),vt(t,bi),2*mn}function vs(t){return[_t(t[1],t[0]),le(t[2])]}function ao(t){var n=t[0],r=t[1],o=Ge(r);return[o*Ge(n),o*Le(n),Le(r)]}function jf(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function ys(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function T1(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function Bf(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function Wf(t){var n=q(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var Qt,Wn,en,oi,oo,ay,oy,xs,ua,Zr,wc=Ki(),Er={point:S1,lineStart:ly,lineEnd:cy,polygonStart:function(){Er.point=uy,Er.lineStart=yC,Er.lineEnd=xC,wc.reset(),bi.polygonStart()},polygonEnd:function(){bi.polygonEnd(),Er.point=S1,Er.lineStart=ly,Er.lineEnd=cy,In<0?(Qt=-(en=180),Wn=-(oi=90)):wc>Ye?oi=90:wc<-Ye&&(Wn=-90),Zr[0]=Qt,Zr[1]=en},sphere:function(){Qt=-(en=180),Wn=-(oi=90)}};function S1(t,n){ua.push(Zr=[Qt=t,en=t]),n<Wn&&(Wn=n),n>oi&&(oi=n)}function sy(t,n){var r=ao([t*je,n*je]);if(xs){var o=ys(xs,r),u=ys([o[1],-o[0],0],o);Wf(u),u=vs(u);var y,h=t-oo,g=h>0?1:-1,v=u[0]*Ot*g,x=wt(h)>180;x^(g*oo<v&&v<g*t)?(y=u[1]*Ot)>oi&&(oi=y):x^(g*oo<(v=(v+360)%360-180)&&v<g*t)?(y=-u[1]*Ot)<Wn&&(Wn=y):(n<Wn&&(Wn=n),n>oi&&(oi=n)),x?t<oo?si(Qt,t)>si(Qt,en)&&(en=t):si(t,en)>si(Qt,en)&&(Qt=t):en>=Qt?(t<Qt&&(Qt=t),t>en&&(en=t)):t>oo?si(Qt,t)>si(Qt,en)&&(en=t):si(t,en)>si(Qt,en)&&(Qt=t)}else ua.push(Zr=[Qt=t,en=t]);n<Wn&&(Wn=n),n>oi&&(oi=n),xs=r,oo=t}function ly(){Er.point=sy}function cy(){Zr[0]=Qt,Zr[1]=en,Er.point=S1,xs=null}function uy(t,n){if(xs){var r=t-oo;wc.add(wt(r)>180?r+(r>0?360:-360):r)}else ay=t,oy=n;bi.point(t,n),sy(t,n)}function yC(){bi.lineStart()}function xC(){uy(ay,oy),bi.lineEnd(),wt(wc)>Ye&&(Qt=-(en=180)),Zr[0]=Qt,Zr[1]=en,xs=null}function si(t,n){return(n-=t)<0?n+360:n}function bC(t,n){return t[0]-n[0]}function dy(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}function wC(t){var n,r,o,s,u,h,g;if(oi=en=-(Qt=Wn=1/0),ua=[],vt(t,Er),r=ua.length){for(ua.sort(bC),n=1,u=[o=ua[0]];n<r;++n)dy(o,(s=ua[n])[0])||dy(o,s[1])?(si(o[0],s[1])>si(o[0],o[1])&&(o[1]=s[1]),si(s[0],o[1])>si(o[0],o[1])&&(o[0]=s[0])):u.push(o=s);for(h=-1/0,n=0,o=u[r=u.length-1];n<=r;o=s,++n)(g=si(o[1],(s=u[n])[0]))>h&&(h=g,Qt=s[0],en=o[1])}return ua=Zr=null,Qt===1/0||Wn===1/0?[[NaN,NaN],[NaN,NaN]]:[[Qt,Wn],[en,oi]]}var Cc,Xf,Qf,Kf,eh,th,nh,ih,A1,k1,M1,fy,hy,Fn,qn,Un,Ni={sphere:ve,point:D1,lineStart:py,lineEnd:gy,polygonStart:function(){Ni.lineStart=SC,Ni.lineEnd=AC},polygonEnd:function(){Ni.lineStart=py,Ni.lineEnd=gy}};function D1(t,n){t*=je;var r=Ge(n*=je);Tc(r*Ge(t),r*Le(t),Le(n))}function Tc(t,n,r){++Cc,Qf+=(t-Qf)/Cc,Kf+=(n-Kf)/Cc,eh+=(r-eh)/Cc}function py(){Ni.point=CC}function CC(t,n){t*=je;var r=Ge(n*=je);Fn=r*Ge(t),qn=r*Le(t),Un=Le(n),Ni.point=TC,Tc(Fn,qn,Un)}function TC(t,n){t*=je;var r=Ge(n*=je),o=r*Ge(t),s=r*Le(t),u=Le(n),h=_t(q((h=qn*u-Un*s)*h+(h=Un*o-Fn*u)*h+(h=Fn*s-qn*o)*h),Fn*o+qn*s+Un*u);Xf+=h,th+=h*(Fn+(Fn=o)),nh+=h*(qn+(qn=s)),ih+=h*(Un+(Un=u)),Tc(Fn,qn,Un)}function gy(){Ni.point=D1}function SC(){Ni.point=kC}function AC(){my(fy,hy),Ni.point=D1}function kC(t,n){fy=t,hy=n,t*=je,n*=je,Ni.point=my;var r=Ge(n);Fn=r*Ge(t),qn=r*Le(t),Un=Le(n),Tc(Fn,qn,Un)}function my(t,n){t*=je;var r=Ge(n*=je),o=r*Ge(t),s=r*Le(t),u=Le(n),h=qn*u-Un*s,g=Un*o-Fn*u,v=Fn*s-qn*o,y=q(h*h+g*g+v*v),x=le(y),T=y&&-x/y;A1+=T*h,k1+=T*g,M1+=T*v,Xf+=x,th+=x*(Fn+(Fn=o)),nh+=x*(qn+(qn=s)),ih+=x*(Un+(Un=u)),Tc(Fn,qn,Un)}function MC(t){Cc=Xf=Qf=Kf=eh=th=nh=ih=A1=k1=M1=0,vt(t,Ni);var n=A1,r=k1,o=M1,s=n*n+r*r+o*o;return s<_s&&(n=th,r=nh,o=ih,Xf<Ye&&(n=Qf,r=Kf,o=eh),(s=n*n+r*r+o*o)<_s)?[NaN,NaN]:[_t(r,n)*Ot,le(o/q(s))*Ot]}function bs(t){return function(){return t}}function Z1(t,n){function r(o,s){return o=t(o,s),n(o[0],o[1])}return t.invert&&n.invert&&(r.invert=function(o,s){return(o=n.invert(o,s))&&t.invert(o[0],o[1])}),r}function E1(t,n){return[wt(t)>ct?t+Math.round(-t/wn)*wn:t,n]}function P1(t,n,r){return(t%=wn)?n||r?Z1(vy(t),yy(n,r)):vy(t):n||r?yy(n,r):E1}function _y(t){return function(n,r){return[(n+=t)>ct?n-wn:n<-ct?n+wn:n,r]}}function vy(t){var n=_y(t);return n.invert=_y(-t),n}function yy(t,n){var r=Ge(t),o=Le(t),s=Ge(n),u=Le(n);function h(g,v){var y=Ge(v),x=Ge(g)*y,T=Le(g)*y,b=Le(v),A=b*r+x*o;return[_t(T*s-A*u,x*r-b*o),le(A*s+T*u)]}return h.invert=function(g,v){var y=Ge(v),x=Ge(g)*y,T=Le(g)*y,b=Le(v),A=b*s-T*u;
vendor: 16,686 bytes, line 1
1return[_t(T*s+b*u,x*r+A*o),le(A*r-x*o)]},h}function xy(t){function n(r){return(r=t(r[0]*je,r[1]*je))[0]*=Ot,r[1]*=Ot,r}return t=P1(t[0]*je,t[1]*je,t.length>2?t[2]*je:0),n.invert=function(r){return(r=t.invert(r[0]*je,r[1]*je))[0]*=Ot,r[1]*=Ot,r},n}function by(t,n,r,o,s,u){if(r){var h=Ge(n),g=Le(n),v=o*r;null==s?(s=n+o*wn,u=n-v/2):(s=wy(h,s),u=wy(h,u),(o>0?s<u:s>u)&&(s+=o*wn));for(var y,x=s;o>0?x>u:x<u;x-=v)y=vs([h,-g*Ge(x),-g*Le(x)]),t.point(y[0],y[1])}}function wy(t,n){(n=ao(n))[0]-=t,Wf(n);var r=W(-n[1]);return((-n[2]<0?-r:r)+wn-Ye)%wn}function DC(){var o,s,t=bs([0,0]),n=bs(90),r=bs(6),u={point:function h(v,y){o.push(v=s(v,y)),v[0]*=Ot,v[1]*=Ot}};function g(){var v=t.apply(this,arguments),y=n.apply(this,arguments)*je,x=r.apply(this,arguments)*je;return o=[],s=P1(-v[0]*je,-v[1]*je,0).invert,by(u,y,x,1),v={type:"Polygon",coordinates:[o]},o=s=null,v}return g.center=function(v){return arguments.length?(t="function"==typeof v?v:bs([+v[0],+v[1]]),g):t},g.radius=function(v){return arguments.length?(n="function"==typeof v?v:bs(+v),g):n},g.precision=function(v){return arguments.length?(r="function"==typeof v?v:bs(+v),g):r},g}function Cy(){var n,t=[];return{point:function(r,o,s){n.push([r,o,s])},lineStart:function(){t.push(n=[])},lineEnd:ve,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var r=t;return t=[],n=null,r}}}function rh(t,n){return wt(t[0]-n[0])<Ye&&wt(t[1]-n[1])<Ye}function ah(t,n,r,o){this.x=t,this.z=n,this.o=r,this.e=o,this.v=!1,this.n=this.p=null}function Ty(t,n,r,o,s){var g,v,u=[],h=[];if(t.forEach(function(Z){if(!((M=Z.length-1)<=0)){var M,R,P=Z[0],N=Z[M];if(rh(P,N)){if(!P[2]&&!N[2]){for(s.lineStart(),g=0;g<M;++g)s.point((P=Z[g])[0],P[1]);return void s.lineEnd()}N[0]+=2*Ye}u.push(R=new ah(P,Z,null,!0)),h.push(R.o=new ah(P,null,R,!1)),u.push(R=new ah(N,Z,null,!1)),h.push(R.o=new ah(N,null,R,!0))}}),u.length){for(h.sort(n),Sy(u),Sy(h),g=0,v=h.length;g<v;++g)h[g].e=r=!r;for(var x,T,y=u[0];;){for(var b=y,A=!0;b.v;)if((b=b.n)===y)return;x=b.z,s.lineStart();do{if(b.v=b.o.v=!0,b.e){if(A)for(g=0,v=x.length;g<v;++g)s.point((T=x[g])[0],T[1]);else o(b.x,b.n.x,1,s);b=b.n}else{if(A)for(g=(x=b.p.z).length-1;g>=0;--g)s.point((T=x[g])[0],T[1]);else o(b.x,b.p.x,-1,s);b=b.p}x=(b=b.o).z,A=!A}while(!b.v);s.lineEnd()}}}function Sy(t){if(n=t.length){for(var n,s,r=0,o=t[0];++r<n;)o.n=s=t[r],s.p=o,o=s;o.n=s=t[0],s.p=o}}E1.invert=E1;var L1=Ki();function N1(t){return wt(t[0])<=ct?t[0]:Bn(t[0])*((wt(t[0])+ct)%wn-ct)}function Ay(t,n){var r=N1(n),o=n[1],s=Le(o),u=[Le(r),-Ge(r),0],h=0,g=0;L1.reset(),1===s?o=Bt+Ye:-1===s&&(o=-Bt-Ye);for(var v=0,y=t.length;v<y;++v)if(T=(x=t[v]).length)for(var x,T,b=x[T-1],A=N1(b),Z=b[1]/2+io,M=Le(Z),P=Ge(Z),N=0;N<T;++N,A=F,M=j,P=Q,b=R){var R=x[N],F=N1(R),G=R[1]/2+io,j=Le(G),Q=Ge(G),X=F-A,de=X>=0?1:-1,se=de*X,ue=se>ct,oe=M*j;if(L1.add(_t(oe*de*Le(se),P*Q+oe*Ge(se))),h+=ue?X+de*wn:X,ue^A>=r^F>=r){var z=ys(ao(b),ao(R));Wf(z);var ee=ys(u,z);Wf(ee);var _e=(ue^X>=0?-1:1)*le(ee[2]);(o>_e||o===_e&&(z[0]||z[1]))&&(g+=ue^X>=0?1:-1)}}return(h<-Ye||h<Ye&&L1<-Ye)^1&g}function ky(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function Zy(t){for(var r,u,h,n=t.length,o=-1,s=0;++o<n;)s+=t[o].length;for(u=new Array(s);--n>=0;)for(r=(h=t[n]).length;--r>=0;)u[--s]=h[r];return u}function ws(t,n,r){t=+t,n=+n,r=(s=arguments.length)<2?(n=t,t=0,1):s<3?1:+r;for(var o=-1,s=0|Math.max(0,Math.ceil((n-t)/r)),u=new Array(s);++o<s;)u[o]=t+o*r;return u}function Ey(t,n,r,o){return function(s){var y,x,T,u=n(s),h=Cy(),g=n(h),v=!1,b={point:A,lineStart:M,lineEnd:P,polygonStart:function(){b.point=N,b.lineStart=R,b.lineEnd=F,x=[],y=[]},polygonEnd:function(){b.point=A,b.lineStart=M,b.lineEnd=P,x=Zy(x);var G=Ay(y,o);x.length?(v||(s.polygonStart(),v=!0),Ty(x,NC,G,r,s)):G&&(v||(s.polygonStart(),v=!0),s.lineStart(),r(null,null,1,s),s.lineEnd()),v&&(s.polygonEnd(),v=!1),x=y=null},sphere:function(){s.polygonStart(),s.lineStart(),r(null,null,1,s),s.lineEnd(),s.polygonEnd()}};function A(G,j){t(G,j)&&s.point(G,j)}function Z(G,j){u.point(G,j)}function M(){b.point=Z,u.lineStart()}function P(){b.point=A,u.lineEnd()}function N(G,j){T.push([G,j]),g.point(G,j)}function R(){g.lineStart(),T=[]}function F(){N(T[0][0],T[0][1]),g.lineEnd();var Q,de,se,ue,G=g.clean(),j=h.result(),X=j.length;if(T.pop(),y.push(T),T=null,X){if(1&G){if((de=(se=j[0]).length-1)>0){for(v||(s.polygonStart(),v=!0),s.lineStart(),Q=0;Q<de;++Q)s.point((ue=se[Q])[0],ue[1]);s.lineEnd()}return}X>1&&2&G&&j.push(j.pop().concat(j.shift())),x.push(j.filter(LC))}}return b}}function LC(t){return t.length>1}function NC(t,n){return((t=t.x)[0]<0?t[1]-Bt-Ye:Bt-t[1])-((n=n.x)[0]<0?n[1]-Bt-Ye:Bt-n[1])}!function ZC(t){1===t.length&&(t=function EC(t){return function(n,r){return ky(t(n),r)}}(t))}(ky),Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);const q1=Ey(function(){return!0},function OC(t){var s,n=NaN,r=NaN,o=NaN;return{lineStart:function(){t.lineStart(),s=1},point:function(u,h){var g=u>0?ct:-ct,v=wt(u-n);wt(v-ct)<Ye?(t.point(n,r=(r+h)/2>0?Bt:-Bt),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(g,r),t.point(u,r),s=0):o!==g&&v>=ct&&(wt(n-o)<Ye&&(n-=o*Ye),wt(u-g)<Ye&&(u-=g*Ye),r=function IC(t,n,r,o){var s,u,h=Le(t-r);return wt(h)>Ye?oa((Le(n)*(u=Ge(o))*Le(r)-Le(o)*(s=Ge(n))*Le(t))/(s*u*h)):(n+o)/2}(n,r,u,h),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(g,r),s=0),t.point(n=u,r=h),o=g},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-s}}},function FC(t,n,r,o){var s;if(null==t)o.point(-ct,s=r*Bt),o.point(0,s),o.point(ct,s),o.point(ct,0),o.point(ct,-s),o.point(0,-s),o.point(-ct,-s),o.point(-ct,0),o.point(-ct,s);else if(wt(t[0]-n[0])>Ye){var u=t[0]<n[0]?ct:-ct;o.point(-u,s=r*u/2),o.point(0,s),o.point(u,s)}else o.point(n[0],n[1])},[-ct,-Bt]);function Py(t){var n=Ge(t),r=6*je,o=n>0,s=wt(n)>Ye;function h(x,T){return Ge(x)*Ge(T)>n}function v(x,T,b){var M=[1,0,0],P=ys(ao(x),ao(T)),N=jf(P,P),R=P[0],F=N-R*R;if(!F)return!b&&x;var G=n*N/F,j=-n*R/F,Q=ys(M,P),X=Bf(M,G);T1(X,Bf(P,j));var se=Q,ue=jf(X,se),oe=jf(se,se),z=ue*ue-oe*(jf(X,X)-1);if(!(z<0)){var ee=q(z),_e=Bf(se,(-ue-ee)/oe);if(T1(_e,X),_e=vs(_e),!b)return _e;var ze,K=x[0],me=T[0],qe=x[1],Ne=T[1];me<K&&(ze=K,K=me,me=ze);var ot=me-K,st=wt(ot-ct)<Ye;if(!st&&Ne<qe&&(ze=qe,qe=Ne,Ne=ze),st||ot<Ye?st?qe+Ne>0^_e[1]<(wt(_e[0]-K)<Ye?qe:Ne):qe<=_e[1]&&_e[1]<=Ne:ot>ct^(K<=_e[0]&&_e[0]<=me)){var qt=Bf(se,(-ue+ee)/oe);return T1(qt,X),[_e,vs(qt)]}}}function y(x,T){var b=o?t:ct-t,A=0;return x<-b?A|=1:x>b&&(A|=2),T<-b?A|=4:T>b&&(A|=8),A}return Ey(h,function g(x){var T,b,A,Z,M;return{lineStart:function(){Z=A=!1,M=1},point:function(P,N){var F,R=[P,N],G=h(P,N),j=o?G?0:y(P,N):G?y(P+(P<0?ct:-ct),N):0;if(!T&&(Z=A=G)&&x.lineStart(),G!==A&&(!(F=v(T,R))||rh(T,F)||rh(R,F))&&(R[2]=1),G!==A)M=0,G?(x.lineStart(),F=v(R,T),x.point(F[0],F[1])):(F=v(T,R),x.point(F[0],F[1],2),x.lineEnd()),T=F;else if(s&&T&&o^G){var Q;!(j&b)&&(Q=v(R,T,!0))&&(M=0,o?(x.lineStart(),x.point(Q[0][0],Q[0][1]),x.point(Q[1][0],Q[1][1]),x.lineEnd()):(x.point(Q[1][0],Q[1][1]),x.lineEnd(),x.lineStart(),x.point(Q[0][0],Q[0][1],3)))}G&&(!T||!rh(T,R))&&x.point(R[0],R[1]),T=R,A=G,b=j},lineEnd:function(){A&&x.lineEnd(),T=null},clean:function(){return M|(Z&&A)<<1}}},function u(x,T,b,A){by(A,t,r,b,x,T)},o?[0,-t]:[-ct,t-ct])}var Sc=1e9,oh=-Sc;function sh(t,n,r,o){function s(y,x){return t<=y&&y<=r&&n<=x&&x<=o}function u(y,x,T,b){var A=0,Z=0;if(null==y||(A=h(y,T))!==(Z=h(x,T))||v(y,x)<0^T>0)do{b.point(0===A||3===A?t:r,A>1?o:n)}while((A=(A+T+4)%4)!==Z);else b.point(x[0],x[1])}function h(y,x){return wt(y[0]-t)<Ye?x>0?0:3:wt(y[0]-r)<Ye?x>0?2:1:wt(y[1]-n)<Ye?x>0?1:0:x>0?3:2}function g(y,x){return v(y.x,x.x)}function v(y,x){var T=h(y,1),b=h(x,1);return T!==b?T-b:0===T?x[1]-y[1]:1===T?y[0]-x[0]:2===T?y[1]-x[1]:x[0]-y[0]}return function(y){var b,A,Z,M,P,N,R,F,G,j,Q,x=y,T=Cy(),X={point:de,lineStart:function z(){X.point=_e,A&&A.push(Z=[]),j=!0,G=!1,R=F=NaN},lineEnd:function ee(){b&&(_e(M,P),N&&G&&T.rejoin(),b.push(T.result())),X.point=de,G&&x.lineEnd()},polygonStart:function ue(){x=T,b=[],A=[],Q=!0},polygonEnd:function oe(){var K=function se(){for(var K=0,me=0,qe=A.length;me<qe;++me)for(var $t,qt,Ne=A[me],ze=1,ot=Ne.length,st=Ne[0],Mt=st[0],an=st[1];ze<ot;++ze)$t=Mt,qt=an,Mt=(st=Ne[ze])[0],an=st[1],qt<=o?an>o&&(Mt-$t)*(o-qt)>(an-qt)*(t-$t)&&++K:an<=o&&(Mt-$t)*(o-qt)<(an-qt)*(t-$t)&&--K;return K}(),me=Q&&K,qe=(b=Zy(b)).length;(me||qe)&&(y.polygonStart(),me&&(y.lineStart(),u(null,null,1,y),y.lineEnd()),qe&&Ty(b,g,K,u,y),y.polygonEnd()),x=y,b=A=Z=null}};function de(K,me){s(K,me)&&x.point(K,me)}function _e(K,me){var qe=s(K,me);if(A&&Z.push([K,me]),j)M=K,P=me,N=qe,j=!1,qe&&(x.lineStart(),x.point(K,me));else if(qe&&G)x.point(K,me);else{var Ne=[R=Math.max(oh,Math.min(Sc,R)),F=Math.max(oh,Math.min(Sc,F))],ze=[K=Math.max(oh,Math.min(Sc,K)),me=Math.max(oh,Math.min(Sc,me))];!function qC(t,n,r,o,s,u){var Z,h=t[0],g=t[1],x=0,T=1,b=n[0]-h,A=n[1]-g;if(Z=r-h,b||!(Z>0)){if(Z/=b,b<0){if(Z<x)return;Z<T&&(T=Z)}else if(b>0){if(Z>T)return;Z>x&&(x=Z)}if(Z=s-h,b||!(Z<0)){if(Z/=b,b<0){if(Z>T)return;Z>x&&(x=Z)}else if(b>0){if(Z<x)return;Z<T&&(T=Z)}if(Z=o-g,A||!(Z>0)){if(Z/=A,A<0){if(Z<x)return;Z<T&&(T=Z)}else if(A>0){if(Z>T)return;Z>x&&(x=Z)}if(Z=u-g,A||!(Z<0)){if(Z/=A,A<0){if(Z>T)return;Z>x&&(x=Z)}else if(A>0){if(Z<x)return;Z<T&&(T=Z)}return x>0&&(t[0]=h+x*b,t[1]=g+x*A),T<1&&(n[0]=h+T*b,n[1]=g+T*A),!0}}}}}(Ne,ze,t,n,r,o)?qe&&(x.lineStart(),x.point(K,me),Q=!1):(G||(x.lineStart(),x.point(Ne[0],Ne[1])),x.point(ze[0],ze[1]),qe||x.lineEnd(),Q=!1)}R=K,F=me,G=qe}return X}}function UC(){var s,u,h,t=0,n=0,r=960,o=500;return h={stream:function(g){return s&&u===g?s:s=sh(t,n,r,o)(u=g)},extent:function(g){return arguments.length?(t=+g[0][0],n=+g[0][1],r=+g[1][0],o=+g[1][1],s=u=null,h):[[t,n],[r,o]]}}}var R1,lh,ch,U1=Ki(),Cs={sphere:ve,point:ve,lineStart:function RC(){Cs.point=HC,Cs.lineEnd=GC},lineEnd:ve,polygonStart:ve,polygonEnd:ve};function GC(){Cs.point=Cs.lineEnd=ve}function HC(t,n){R1=t*=je,lh=Le(n*=je),ch=Ge(n),Cs.point=VC}function VC(t,n){t*=je;var r=Le(n*=je),o=Ge(n),s=wt(t-R1),u=Ge(s),g=o*Le(s),v=ch*r-lh*o*u,y=lh*r+ch*o*u;U1.add(_t(q(g*g+v*v),y)),R1=t,lh=r,ch=o}function Ly(t){return U1.reset(),vt(t,Cs),+U1}var G1=[null,null],zC={type:"LineString",coordinates:G1};function uh(t,n){return G1[0]=t,G1[1]=n,Ly(zC)}var Ny={Feature:function(t,n){return dh(t.geometry,n)},FeatureCollection:function(t,n){for(var r=t.features,o=-1,s=r.length;++o<s;)if(dh(r[o].geometry,n))return!0;return!1}},Oy={Sphere:function(){return!0},Point:function(t,n){return Iy(t.coordinates,n)},MultiPoint:function(t,n){for(var r=t.coordinates,o=-1,s=r.length;++o<s;)if(Iy(r[o],n))return!0;return!1},LineString:function(t,n){return Fy(t.coordinates,n)},MultiLineString:function(t,n){for(var r=t.coordinates,o=-1,s=r.length;++o<s;)if(Fy(r[o],n))return!0;return!1},Polygon:function(t,n){return qy(t.coordinates,n)},MultiPolygon:function(t,n){for(var r=t.coordinates,o=-1,s=r.length;++o<s;)if(qy(r[o],n))return!0;return!1},GeometryCollection:function(t,n){for(var r=t.geometries,o=-1,s=r.length;++o<s;)if(dh(r[o],n))return!0;return!1}};function dh(t,n){return!(!t||!Oy.hasOwnProperty(t.type))&&Oy[t.type](t,n)}function Iy(t,n){return 0===uh(t,n)}function Fy(t,n){for(var r,o,s,u=0,h=t.length;u<h;u++){if(0===(o=uh(t[u],n))||u>0&&(s=uh(t[u],t[u-1]))>0&&r<=s&&o<=s&&(r+o-s)*(1-Math.pow((r-o)/s,2))<_s*s)return!0;r=o}return!1}function qy(t,n){return!!Ay(t.map(YC),Uy(n))}function YC(t){return(t=t.map(Uy)).pop(),t}function Uy(t){return[t[0]*je,t[1]*je]}function $C(t,n){return(t&&Ny.hasOwnProperty(t.type)?Ny[t.type]:dh)(t,n)}function Ry(t,n,r){var o=ws(t,n-Ye,r).concat(n);return function(s){return o.map(function(u){return[s,u]})}}function Gy(t,n,r){var o=ws(t,n-Ye,r).concat(n);return function(s){return o.map(function(u){return[u,s]})}}function Hy(){var t,n,r,o,s,u,h,g,b,A,Z,M,v=10,y=v,x=90,T=360,P=2.5;function N(){return{type:"MultiLineString",coordinates:R()}}function R(){return ws(sa(o/x)*x,r,x).map(Z).concat(ws(sa(g/T)*T,h,T).map(M)).concat(ws(sa(n/v)*v,t,v).filter(function(F){return wt(F%x)>Ye}).map(b)).concat(ws(sa(u/y)*y,s,y).filter(function(F){return wt(F%T)>Ye}).map(A))}return N.lines=function(){return R().map(function(F){return{type:"LineString",coordinates:F}})},N.outline=function(){return{type:"Polygon",coordinates:[Z(o).concat(M(h).slice(1),Z(r).reverse().slice(1),M(g).reverse().slice(1))]}},N.extent=function(F){return arguments.length?N.extentMajor(F).extentMinor(F):N.extentMinor()},N.extentMajor=function(F){return arguments.length?(g=+F[0][1],h=+F[1][1],(o=+F[0][0])>(r=+F[1][0])&&(F=o,o=r,r=F),g>h&&(F=g,g=h,h=F),N.precision(P)):[[o,g],[r,h]]},N.extentMinor=function(F){return arguments.length?(u=+F[0][1],s=+F[1][1],(n=+F[0][0])>(t=+F[1][0])&&(F=n,n=t,t=F),u>s&&(F=u,u=s,s=F),N.precision(P)):[[n,u],[t,s]]},N.step=function(F){return arguments.length?N.stepMajor(F).stepMinor(F):N.stepMinor()},N.stepMajor=function(F){return arguments.length?(x=+F[0],T=+F[1],N):[x,T]},N.stepMinor=function(F){return arguments.length?(v=+F[0],y=+F[1],N):[v,y]},N.precision=function(F){return arguments.length?(P=+F,b=Ry(u,s,90),A=Gy(n,t,P),Z=Ry(g,h,90),M=Gy(o,r,P),N):P},N.extentMajor([[-180,-90+Ye],[180,90-Ye]]).extentMinor([[-180,-80-Ye],[180,80+Ye]])}function JC(){return Hy()()}function jC(t,n){var r=t[0]*je,o=t[1]*je,s=n[0]*je,u=n[1]*je,h=Ge(o),g=Le(o),v=Ge(u),y=Le(u),x=h*Ge(r),T=h*Le(r),b=v*Ge(s),A=v*Le(s),Z=2*le(q(Ce(u-o)+h*v*Ce(s-r))),M=Le(Z),P=Z?function(N){var R=Le(N*=Z)/M,F=Le(Z-N)/M,G=F*x+R*b,j=F*T+R*A,Q=F*g+R*y;return[_t(j,G)*Ot,_t(Q,q(G*G+j*j))*Ot]}:function(){return[r*Ot,o*Ot]};return P.distance=Z,P}function Ac(t){return t}var Vy,zy,z1,Y1,H1=Ki(),V1=Ki(),da={point:ve,lineStart:ve,lineEnd:ve,polygonStart:function(){da.lineStart=BC,da.lineEnd=XC},polygonEnd:function(){da.lineStart=da.lineEnd=da.point=ve,H1.add(wt(V1)),V1.reset()},result:function(){var t=H1/2;return H1.reset(),t}};function BC(){da.point=WC}function WC(t,n){da.point=Yy,Vy=z1=t,zy=Y1=n}function Yy(t,n){V1.add(Y1*t-z1*n),z1=t,Y1=n}function XC(){Yy(Vy,zy)}const $y=da;var Ts=1/0,fh=Ts,kc=-Ts,hh=kc;const ph={point:function KC(t,n){t<Ts&&(Ts=t),t>kc&&(kc=t),n<fh&&(fh=n),n>hh&&(hh=n)},lineStart:ve,lineEnd:ve,polygonStart:ve,polygonEnd:ve,result:function(){var t=[[Ts,fh],[kc,hh]];return kc=hh=-(fh=Ts=1/0),t}};var Jy,jy,er,tr,$1=0,J1=0,Mc=0,gh=0,mh=0,Ss=0,j1=0,B1=0,Dc=0,Oi={point:so,lineStart:By,lineEnd:Wy,polygonStart:function(){Oi.lineStart=nT,Oi.lineEnd=iT},polygonEnd:function(){Oi.point=so,Oi.lineStart=By,Oi.lineEnd=Wy},result:function(){var t=Dc?[j1/Dc,B1/Dc]:Ss?[gh/Ss,mh/Ss]:Mc?[$1/Mc,J1/Mc]:[NaN,NaN];return $1=J1=Mc=gh=mh=Ss=j1=B1=Dc=0,t}};function so(t,n){$1+=t,J1+=n,++Mc}function By(){Oi.point=eT}function eT(t,n){Oi.point=tT,so(er=t,tr=n)}function tT(t,n){var r=t-er,o=n-tr,s=q(r*r+o*o);gh+=s*(er+t)/2,mh+=s*(tr+n)/2,Ss+=s,so(er=t,tr=n)}function Wy(){Oi.point=so}function nT(){Oi.point=rT}function iT(){Xy(Jy,jy)}function rT(t,n){Oi.point=Xy,so(Jy=er=t,jy=tr=n)}function Xy(t,n){var r=t-er,o=n-tr,s=q(r*r+o*o);gh+=s*(er+t)/2,mh+=s*(tr+n)/2,Ss+=s,j1+=(s=tr*t-er*n)*(er+t),B1+=s*(tr+n),Dc+=3*s,so(er=t,tr=n)}const Qy=Oi;function Ky(t){this._context=t}Ky.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,wn)}},result:ve};var X1,ex,tx,Zc,Ec,W1=Ki(),_h={point:ve,lineStart:function(){_h.point=aT},lineEnd:function(){X1&&nx(ex,tx),_h.point=ve},polygonStart:function(){X1=!0},polygonEnd:function(){X1=null},result:function(){var t=+W1;return W1.reset(),t}};function aT(t,n){_h.point=nx,ex=Zc=t,tx=Ec=n}function nx(t,n){W1.add(q((Zc-=t)*Zc+(Ec-=n)*Ec)),Zc=t,Ec=n}const ix=_h;function rx(){this._string=[]}function ax(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function oT(t,n){var o,s,r=4.5;function u(h){return h&&("function"==typeof r&&s.pointRadius(+r.apply(this,arguments)),vt(h,o(s))),s.result()}return u.area=function(h){return vt(h,o($y)),$y.result()},u.measure=function(h){return vt(h,o(ix)),ix.result()},u.bounds=function(h){return vt(h,o(ph)),ph.result()},u.centroid=function(h){return vt(h,o(Qy)),Qy.result()},u.projection=function(h){return arguments.length?(o=null==h?(t=null,Ac):(t=h).stream,u):t},u.context=function(h){return arguments.length?(s=null==h?(n=null,new rx):new Ky(n=h),"function"!=typeof r&&s.pointRadius(r),u):n},u.pointRadius=function(h){return arguments.length?(r="function"==typeof h?h:(s.pointRadius(+h),+h),u):r},u.projection(t).context(n)}
vendor: 4,406 bytes, line 1
1function sT(t){return{stream:Pc(t)}}function Pc(t){return function(n){var r=new Q1;for(var o in t)r[o]=t[o];return r.stream=n,r}}function Q1(){}function K1(t,n,r){var o=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=o&&t.clipExtent(null),vt(r,t.stream(ph)),n(ph.result()),null!=o&&t.clipExtent(o),t}function vh(t,n,r){return K1(t,function(o){var s=n[1][0]-n[0][0],u=n[1][1]-n[0][1],h=Math.min(s/(o[1][0]-o[0][0]),u/(o[1][1]-o[0][1])),g=+n[0][0]+(s-h*(o[1][0]+o[0][0]))/2,v=+n[0][1]+(u-h*(o[1][1]+o[0][1]))/2;t.scale(150*h).translate([g,v])},r)}function e0(t,n,r){return vh(t,[[0,0],n],r)}function t0(t,n,r){return K1(t,function(o){var s=+n,u=s/(o[1][0]-o[0][0]),h=(s-u*(o[1][0]+o[0][0]))/2,g=-u*o[0][1];t.scale(150*u).translate([h,g])},r)}function n0(t,n,r){return K1(t,function(o){var s=+n,u=s/(o[1][1]-o[0][1]),h=-u*o[0][0],g=(s-u*(o[1][1]+o[0][1]))/2;t.scale(150*u).translate([h,g])},r)}rx.prototype={_radius:4.5,_circle:ax(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=ax(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},Q1.prototype={constructor:Q1,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var ox=16,lT=Ge(30*je);function sx(t,n){return+n?function uT(t,n){function r(o,s,u,h,g,v,y,x,T,b,A,Z,M,P){var N=y-o,R=x-s,F=N*N+R*R;if(F>4*n&&M--){var G=h+b,j=g+A,Q=v+Z,X=q(G*G+j*j+Q*Q),de=le(Q/=X),se=wt(wt(Q)-1)<Ye||wt(u-T)<Ye?(u+T)/2:_t(j,G),ue=t(se,de),oe=ue[0],z=ue[1],ee=oe-o,_e=z-s,K=R*ee-N*_e;(K*K/F>n||wt((N*ee+R*_e)/F-.5)>.3||h*b+g*A+v*Z<lT)&&(r(o,s,u,h,g,v,oe,z,se,G/=X,j/=X,Q,M,P),P.point(oe,z),r(oe,z,se,G,j,Q,y,x,T,b,A,Z,M,P))}}return function(o){var s,u,h,g,v,y,x,T,b,A,Z,M,P={point:N,lineStart:R,lineEnd:G,polygonStart:function(){o.polygonStart(),P.lineStart=j},polygonEnd:function(){o.polygonEnd(),P.lineStart=R}};function N(de,se){de=t(de,se),o.point(de[0],de[1])}function R(){T=NaN,P.point=F,o.lineStart()}function F(de,se){var ue=ao([de,se]),oe=t(de,se);r(T,b,x,A,Z,M,T=oe[0],b=oe[1],x=de,A=ue[0],Z=ue[1],M=ue[2],ox,o),o.point(T,b)}function G(){P.point=N,o.lineEnd()}function j(){R(),P.point=Q,P.lineEnd=X}function Q(de,se){F(s=de,se),u=T,h=b,g=A,v=Z,y=M,P.point=F}function X(){r(T,b,x,A,Z,M,u,h,s,g,v,y,ox,o),P.lineEnd=G,G()}return P}}(t,n):function cT(t){return Pc({point:function(n,r){n=t(n,r),this.stream.point(n[0],n[1])}})}(t)}var dT=Pc({point:function(t,n){this.stream.point(t*je,n*je)}});function hT(t,n,r,o,s){function u(h,g){return[n+t*(h*=o),r-t*(g*=s)]}return u.invert=function(h,g){return[(h-n)/t*o,(r-g)/t*s]},u}function lx(t,n,r,o,s,u){var h=Ge(u),g=Le(u),v=h*t,y=g*t,x=h/t,T=g/t,b=(g*r-h*n)/t,A=(g*n+h*r)/t;function Z(M,P){return[v*(M*=o)-y*(P*=s)+n,r-y*M-v*P]}return Z.invert=function(M,P){return[o*(x*M-T*P+b),s*(A-T*M-x*P)]},Z}function nr(t){return r0(function(){return t})()}function r0(t){var n,x,N,R,F,Q,X,de,se,ue,r=150,o=480,s=250,u=0,h=0,g=0,v=0,y=0,T=0,b=1,A=1,Z=null,M=q1,P=null,G=Ac,j=.5;function oe(K){return de(K[0]*je,K[1]*je)}function z(K){return(K=de.invert(K[0],K[1]))&&[K[0]*Ot,K[1]*Ot]}function ee(){var K=lx(r,0,0,b,A,T).apply(null,n(u,h)),me=(T?lx:hT)(r,o-K[0],s-K[1],b,A,T);return x=P1(g,v,y),X=Z1(n,me),de=Z1(x,X),Q=sx(X,j),_e()}function _e(){return se=ue=null,oe}return oe.stream=function(K){return se&&ue===K?se:se=dT(function fT(t){return Pc({point:function(n,r){var o=t(n,r);return this.stream.point(o[0],o[1])}})}(x)(M(Q(G(ue=K)))))},oe.preclip=function(K){return arguments.length?(M=K,Z=void 0,_e()):M},oe.postclip=function(K){return arguments.length?(G=K,P=N=R=F=null,_e()):G},oe.clipAngle=function(K){return arguments.length?(M=+K?Py(Z=K*je):(Z=null,q1),_e()):Z*Ot},oe.clipExtent=function(K){return arguments.length?(G=null==K?(P=N=R=F=null,A
vendor: 8,929 bytes, line 1
1c):sh(P=+K[0][0],N=+K[0][1],R=+K[1][0],F=+K[1][1]),_e()):null==P?null:[[P,N],[R,F]]},oe.scale=function(K){return arguments.length?(r=+K,ee()):r},oe.translate=function(K){return arguments.length?(o=+K[0],s=+K[1],ee()):[o,s]},oe.center=function(K){return arguments.length?(u=K[0]%360*je,h=K[1]%360*je,ee()):[u*Ot,h*Ot]},oe.rotate=function(K){return arguments.length?(g=K[0]%360*je,v=K[1]%360*je,y=K.length>2?K[2]%360*je:0,ee()):[g*Ot,v*Ot,y*Ot]},oe.angle=function(K){return arguments.length?(T=K%360*je,ee()):T*Ot},oe.reflectX=function(K){return arguments.length?(b=K?-1:1,ee()):b<0},oe.reflectY=function(K){return arguments.length?(A=K?-1:1,ee()):A<0},oe.precision=function(K){return arguments.length?(Q=sx(X,j=K*K),_e()):q(j)},oe.fitExtent=function(K,me){return vh(oe,K,me)},oe.fitSize=function(K,me){return e0(oe,K,me)},oe.fitWidth=function(K,me){return t0(oe,K,me)},oe.fitHeight=function(K,me){return n0(oe,K,me)},function(){return n=t.apply(this,arguments),oe.invert=n.invert&&z,ee()}}function a0(t){var n=0,r=ct/3,o=r0(t),s=o(n,r);return s.parallels=function(u){return arguments.length?o(n=u[0]*je,r=u[1]*je):[n*Ot,r*Ot]},s}function cx(t,n){var r=Le(t),o=(r+Le(n))/2;if(wt(o)<Ye)return function pT(t){var n=Ge(t);function r(o,s){return[o*n,Le(s)/n]}return r.invert=function(o,s){return[o/n,le(s*n)]},r}(t);var s=1+r*(2*o-r),u=q(s)/o;function h(g,v){var y=q(s-2*o*Le(v))/o;return[y*Le(g*=o),u-y*Ge(g)]}return h.invert=function(g,v){var y=u-v,x=_t(g,wt(y))*Bn(y);return y*o<0&&(x-=ct*Bn(g)*Bn(y)),[x/o,le((s-(g*g+y*y)*o*o)/(2*o))]},h}function yh(){return a0(cx).scale(155.424).center([0,33.6442])}function ux(){return yh().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function mT(){var t,n,o,u,g,v,r=ux(),s=yh().rotate([154,0]).center([-2,58.5]).parallels([55,65]),h=yh().rotate([157,0]).center([-3,19.9]).parallels([8,18]),y={point:function(b,A){v=[b,A]}};function x(b){var A=b[0],Z=b[1];return v=null,o.point(A,Z),v||(u.point(A,Z),v)||(g.point(A,Z),v)}function T(){return t=n=null,x}return x.invert=function(b){var A=r.scale(),Z=r.translate(),M=(b[0]-Z[0])/A,P=(b[1]-Z[1])/A;return(P>=.12&&P<.234&&M>=-.425&&M<-.214?s:P>=.166&&P<.234&&M>=-.214&&M<-.115?h:r).invert(b)},x.stream=function(b){return t&&n===b?t:t=function gT(t){var n=t.length;return{point:function(r,o){for(var s=-1;++s<n;)t[s].point(r,o)},sphere:function(){for(var r=-1;++r<n;)t[r].sphere()},lineStart:function(){for(var r=-1;++r<n;)t[r].lineStart()},lineEnd:function(){for(var r=-1;++r<n;)t[r].lineEnd()},polygonStart:function(){for(var r=-1;++r<n;)t[r].polygonStart()},polygonEnd:function(){for(var r=-1;++r<n;)t[r].polygonEnd()}}}([r.stream(n=b),s.stream(b),h.stream(b)])},x.precision=function(b){return arguments.length?(r.precision(b),s.precision(b),h.precision(b),T()):r.precision()},x.scale=function(b){return arguments.length?(r.scale(b),s.scale(.35*b),h.scale(b),x.translate(r.translate())):r.scale()},x.translate=function(b){if(!arguments.length)return r.translate();var A=r.scale(),Z=+b[0],M=+b[1];return o=r.translate(b).clipExtent([[Z-.455*A,M-.238*A],[Z+.455*A,M+.238*A]]).stream(y),u=s.translate([Z-.307*A,M+.201*A]).clipExtent([[Z-.425*A+Ye,M+.12*A+Ye],[Z-.214*A-Ye,M+.234*A-Ye]]).stream(y),g=h.translate([Z-.205*A,M+.212*A]).clipExtent([[Z-.214*A+Ye,M+.166*A+Ye],[Z-.115*A-Ye,M+.234*A-Ye]]).stream(y),T()},x.fitExtent=function(b,A){return vh(x,b,A)},x.fitSize=function(b,A){return e0(x,b,A)},x.fitWidth=function(b,A){return t0(x,b,A)},x.fitHeight=function(b,A){return n0(x,b,A)},x.scale(1070)}function dx(t){return function(n,r){var o=Ge(n),s=Ge(r),u=t(o*s);return[u*s*Le(n),u*Le(r)]}}function Lc(t){return function(n,r){var o=q(n*n+r*r),s=t(o),u=Le(s),h=Ge(s);return[_t(n*u,o*h),le(o&&r*u/o)]}}var o0=dx(function(t){return q(2/(1+t))});function _T(){return nr(o0).scale(124.75).clipAngle(179.999)}o0.invert=Lc(function(t){return 2*le(t/2)});var s0=dx(function(t){return(t=W(t))&&t/Le(t)});function vT(){return nr(s0).scale(79.4188).clipAngle(179.999)}function Nc(t,n){return[t,la(Y((Bt+n)/2))]}function yT(){return fx(Nc).scale(961/wn)}function fx(t){var g,v,y,n=nr(t),r=n.center,o=n.scale,s=n.translate,u=n.clipExtent,h=null;function x(){var T=ct*o(),b=n(xy(n.rotate()).invert([0,0]));return u(null==h?[[b[0]-T,b[1]-T],[b[0]+T,b[1]+T]]:t===Nc?[[Math.max(b[0]-T,h),g],[Math.min(b[0]+T,v),y]]:[[h,Math.max(b[1]-T,g)],[v,Math.min(b[1]+T,y)]])}return n.scale=function(T){return arguments.length?(o(T),x()):o()},n.translate=function(T){return arguments.length?(s(T),x()):s()},n.center=function(T){return arguments.length?(r(T),x()):r()},n.clipExtent=function(T){return arguments.length?(null==T?h=g=v=y=null:(h=+T[0][0],g=+T[0][1],v=+T[1][0],y=+T[1][1]),x()):null==h?null:[[h,g],[v,y]]},x()}function xh(t){return Y((Bt+t)/2)}function hx(t,n){var r=Ge(t),o=t===n?Le(t):la(r/Ge(n))/la(xh(n)/xh(t)),s=r*ai(xh(t),o)/o;if(!o)return Nc;function u(h,g){s>0?g<-Bt+Ye&&(g=-Bt+Ye):g>Bt-Ye&&(g=Bt-Ye);var v=s/ai(xh(g),o);return[v*Le(o*h),s-v*Ge(o*h)]}return u.invert=function(h,g){var v=s-g,y=Bn(o)*q(h*h+v*v),x=_t(h,wt(v))*Bn(v);return v*o<0&&(x-=ct*Bn(h)*Bn(v)),[x/o,2*oa(ai(s/y,1/o))-Bt]},u}function xT(){return a0(hx).scale(109.5).parallels([30,30])}function Oc(t,n){return[t,n]}function bT(){return nr(Oc).scale(152.63)}function px(t,n){var r=Ge(t),o=t===n?Le(t):(r-Ge(n))/(n-t),s=r/o+t;if(wt(o)<Ye)return Oc;function u(h,g){var v=s-g,y=o*h;return[v*Le(y),s-v*Ge(y)]}return u.invert=function(h,g){var v=s-g,y=_t(h,wt(v))*Bn(v);return v*o<0&&(y-=ct*Bn(h)*Bn(v)),[y/o,s-Bn(o)*q(h*h+v*v)]},u}function wT(){return a0(px).scale(131.154).center([0,13.9389])}s0.invert=Lc(function(t){return t}),Nc.invert=function(t,n){return[t,2*oa($f(n))-Bt]},Oc.invert=Oc;var Ic=1.340264,Fc=-.081106,qc=893e-6,Uc=.003796,bh=q(3)/2;function l0(t,n){var r=le(bh*Le(n)),o=r*r,s=o*o*o;return[t*Ge(r)/(bh*(Ic+3*Fc*o+s*(7*qc+9*Uc*o))),r*(Ic+Fc*o+s*(qc+Uc*o))]}function TT(){return nr(l0).scale(177.158)}function c0(t,n){var r=Ge(n),o=Ge(t)*r;return[r*Le(t)/o,Le(n)/o]}function ST(){return nr(c0).scale(144.049).clipAngle(60)}function AT(){var h,g,y,x,T,P,N,t=1,n=0,r=0,o=1,s=1,u=0,v=null,b=1,A=1,Z=Pc({point:function(G,j){var Q=F([G,j]);this.stream.point(Q[0],Q[1])}}),M=Ac;function R(){return b=t*o,A=t*s,P=N=null,F}function F(G){var j=G[0]*b,Q=G[1]*A;if(u){var X=Q*h-j*g;j=j*h+Q*g,Q=X}return[j+n,Q+r]}return F.invert=function(G){var j=G[0]-n,Q=G[1]-r;if(u){var X=Q*h+j*g;j=j*h-Q*g,Q=X}return[j/b,Q/A]},F.stream=function(G){return P&&N===G?P:P=Z(M(N=G))},F.postclip=function(G){return arguments.length?(M=G,v=y=x=T=null,R()):M},F.clipExtent=function(G){return arguments.length?(M=null==G?(v=y=x=T=null,Ac):sh(v=+G[0][0],y=+G[0][1],x=+G[1][0],T=+G[1][1]),R()):null==v?null:[[v,y],[x,T]]},F.scale=function(G){return arguments.length?(t=+G,R()):t},F.translate=function(G){return arguments.length?(n=+G[0],r=+G[1],R()):[n,r]},F.angle=function(G){return arguments.length?(g=Le(u=G%360*je),h=Ge(u),R()):u*Ot},F.reflectX=function(G){return arguments.length?(o=G?-1:1,R()):o<0},F.reflectY=function(G){return arguments.length?(s=G?-1:1,R()):s<0},F.fitExtent=function(G,j){return vh(F,G,j)},F.fitSize=function(G,j){return e0(F,G,j)},F.fitWidth=function(G,j){return t0(F,G,j)},F.fitHeight=function(G,j){return n0(F,G,j)},F}function u0(t,n){var r=n*n,o=r*r;return[t*(.8707-.131979*r+o*(o*(.003971*r-.001529*o)-.013791)),n*(1.007226+r*(.015085+o*(.028874*r-.044475-.005916*o)))]}function kT(){return nr(u0).scale(175.295)}function d0(t,n){return[Ge(n)*Le(t),Le(n)]}function MT(){return nr(d0).scale(249.5).clipAngle(90+Ye)}function f0(t,n){var r=Ge(n),o=1+Ge(t)*r;return[r*Le(t)/o,Le(n)/o]}function DT(){return nr(f0).scale(250).clipAngle(142)}function h0(t,n){return[la(Y((Bt+n)/2)),-t]}function ZT(){var t=fx(h0),n=t.center,r=t.rotate;return t.center=function(o){return arguments.length?n([-o[1],o[0]]):[(o=n())[1],-o[0]]},t.rotate=function(o){return arguments.length?r([o[0],o[1],o.length>2?o[2]+90:90]):[(o=r())[0],o[1],o[2]-90]},r([0,0,90]).scale(159.155)}function ET(t,n){return t.parent===n.parent?1:2}function LT(t,n){return t+n.x}function OT(t,n){return Math.max(t,n.y)}function qT(){var t=ET,n=1,r=1,o=!1;function s(u){var h,g=0;u.eachAfter(function(b){var A=b.children;A?(b.x=function PT(t){return t.reduce(LT,0)/t.length}(A),b.y=function NT(t){return 1+t.reduce(OT,0)}(A)):(b.x=h?g+=t(b,h):0,b.y=0,h=b)});var v=function IT(t){for(var n;n=t.children;)t=n[0];return t}(u),y=function FT(t){for(var n;n=t.children;)t=n[n.length-1];return t}(u),x=v.x-t(v,y)/2,T=y.x+t(y,v)/2;return u.eachAfter(o?function(b){b.x=(b.x-u.x)*n,b.y=(u.y-b.y)*r}:function(b){b.x=(b.x-x)/(T-x)*n,b.y=(1-(u.y?b.y/u.y:1))*r})}return s.separation=function(u){return arguments.length?(t=u,s):t},s.size=function(u){return arguments.length?(o=!1,n=+u[0],r=+u[1],s):o?null:[n,r]},s.nodeSize=function(u){return arguments.length?(o=!0,n=+u[0],r=+u[1],s):o?[n,r]:null},s}function UT(t){var n=0,r=t.children,o=r&&r.length;if(o)for(;--o>=0;)n+=r[o].value;else n=1;t.value=n}
vendor: 6,882 bytes, line 1
1function p0(t,n){var s,h,g,v,y,r=new As(t),o=+t.value&&(r.value=t.value),u=[r];for(null==n&&(n=KT);s=u.pop();)if(o&&(s.value=+s.data.value),(g=n(s.data))&&(y=g.length))for(s.children=new Array(y),v=y-1;v>=0;--v)u.push(h=s.children[v]=new As(g[v])),h.parent=s,h.depth=s.depth+1;return r.eachBefore(gx)}function KT(t){return t.children}function e3(t){t.data=t.data.data}function gx(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function As(t){this.data=t,this.depth=this.height=0,this.parent=null}l0.invert=function(t,n){for(var h,r=n,o=r*r,s=o*o*o,u=0;u<12&&(s=(o=(r-=h=(r*(Ic+Fc*o+s*(qc+Uc*o))-n)/(Ic+3*Fc*o+s*(7*qc+9*Uc*o)))*r)*o*o,!(wt(h)<_s));++u);return[bh*t*(Ic+3*Fc*o+s*(7*qc+9*Uc*o))/Ge(r),le(Le(r)/bh)]},c0.invert=Lc(oa),u0.invert=function(t,n){var s,r=n,o=25;do{var u=r*r,h=u*u;r-=s=(r*(1.007226+u*(.015085+h*(.028874*u-.044475-.005916*h)))-n)/(1.007226+u*(.045255+h*(.259866*u-.311325-.005916*11*h)))}while(wt(s)>Ye&&--o>0);return[t/(.8707+(u=r*r)*(u*(u*u*u*(.003971-.001529*u)-.013791)-.131979)),r]},d0.invert=Lc(le),f0.invert=Lc(function(t){return 2*oa(t)}),h0.invert=function(t,n){return[-n,2*oa($f(t))-Bt]},As.prototype=p0.prototype={constructor:As,count:function RT(){return this.eachAfter(UT)},each:function GT(t){var r,s,u,h,n=this,o=[n];do{for(r=o.reverse(),o=[];n=r.pop();)if(t(n),s=n.children)for(u=0,h=s.length;u<h;++u)o.push(s[u])}while(o.length);return this},eachAfter:function VT(t){for(var s,u,h,n=this,r=[n],o=[];n=r.pop();)if(o.push(n),s=n.children)for(u=0,h=s.length;u<h;++u)r.push(s[u]);for(;n=o.pop();)t(n);return this},eachBefore:function HT(t){for(var o,s,n=this,r=[n];n=r.pop();)if(t(n),o=n.children)for(s=o.length-1;s>=0;--s)r.push(o[s]);return this},sum:function zT(t){return this.eachAfter(function(n){for(var r=+t(n.data)||0,o=n.children,s=o&&o.length;--s>=0;)r+=o[s].value;n.value=r})},sort:function YT(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function $T(t){for(var n=this,r=function JT(t,n){if(t===n)return t;var r=t.ancestors(),o=n.ancestors(),s=null;for(t=r.pop(),n=o.pop();t===n;)s=t,t=r.pop(),n=o.pop();return s}(n,t),o=[n];n!==r;)o.push(n=n.parent);for(var s=o.length;t!==r;)o.splice(s,0,t),t=t.parent;return o},ancestors:function jT(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function BT(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function WT(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function XT(){var t=this,n=[];return t.each(function(r){r!==t&&n.push({source:r.parent,target:r})}),n},copy:function QT(){return p0(this).eachBefore(e3)}};var t3=Array.prototype.slice;function mx(t){for(var s,u,n=0,r=(t=function n3(t){for(var r,o,n=t.length;n;)o=Math.random()*n--|0,r=t[n],t[n]=t[o],t[o]=r;return t}(t3.call(t))).length,o=[];n<r;)s=t[n],u&&_x(u,s)?++n:(u=r3(o=i3(o,s)),n=0);return u}function i3(t,n){var r,o;if(g0(n,t))return[n];for(r=0;r<t.length;++r)if(wh(n,t[r])&&g0(Rc(t[r],n),t))return[t[r],n];for(r=0;r<t.length-1;++r)for(o=r+1;o<t.length;++o)if(wh(Rc(t[r],t[o]),n)&&wh(Rc(t[r],n),t[o])&&wh(Rc(t[o],n),t[r])&&g0(vx(t[r],t[o],n),t))return[t[r],t[o],n];throw new Error}function wh(t,n){var r=t.r-n.r,o=n.x-t.x,s=n.y-t.y;return r<0||r*r<o*o+s*s}function _x(t,n){var r=t.r-n.r+1e-6,o=n.x-t.x,s=n.y-t.y;return r>0&&r*r>o*o+s*s}function g0(t,n){for(var r=0;r<n.length;++r)if(!_x(t,n[r]))return!1;return!0}function r3(t){switch(t.length){case 1:return function a3(t){return{x:t.x,y:t.y,r:t.r}}(t[0]);case 2:return Rc(t[0],t[1]);case 3:return vx(t[0],t[1],t[2])}}function Rc(t,n){var r=t.x,o=t.y,s=t.r,u=n.x,h=n.y,g=n.r,v=u-r,y=h-o,x=g-s,T=Math.sqrt(v*v+y*y);return{x:(r+u+v/T*x)/2,y:(o+h+y/T*x)/2,r:(T+s+g)/2}}function vx(t,n,r){var o=t.x,s=t.y,u=t.r,h=n.x,g=n.y,v=n.r,y=r.x,x=r.y,T=r.r,b=o-h,A=o-y,Z=s-g,M=s-x,P=v-u,N=T-u,R=o*o+s*s-u*u,F=R-h*h-g*g+v*v,G=R-y*y-x*x+T*T,j=A*Z-b*M,Q=(Z*G-M*F)/(2*j)-o,X=(M*P-Z*N)/j,de=(A*F-b*G)/(2*j)-s,se=(b*N-A*P)/j,ue=X*X+se*se-1,oe=2*(u+Q*X+de*se),z=Q*Q+de*de-u*u,ee=-(ue?(oe+Math.sqrt(oe*oe-4*ue*z))/(2*ue):z/oe);return{x:o+Q+X*ee,y:s+de+se*ee,r:ee}}function yx(t,n,r){var s,u,g,v,o=t.x-n.x,h=t.y-n.y,y=o*o+h*h;y?(u=n.r+r.r,v=t.r+r.r,(u*=u)>(v*=v)?(s=(y+v-u)/(2*y),g=Math.sqrt(Math.max(0,v/y-s*s)),r.x=t.x-s*o-g*h,r.y=t.y-s*h+g*o):(s=(y+u-v)/(2*y),g=Math.sqrt(Math.max(0,u/y-s*s)),r.x=n.x+s*o-g*h,r.y=n.y+s*h+g*o)):(r.x=n.x+r.r,r.y=n.y)}function xx(t,n){var r=t.r+n.r-1e-6,o=n.x-t.x,s=n.y-t.y;return r>0&&r*r>o*o+s*s}function bx(t){var n=t._,r=t.next._,o=n.r+r.r,s=(n.x*r.r+r.x*n.r)/o,u=(n.y*r.r+r.y*n.r)/o;return s*s+u*u}function Ch(t){this._=t,this.next=null,this.previous=null}function wx(t){if(!(s=t.length))return 0;var n,r,o,s,u,h,g,v,y,x,T;if((n=t[0]).x=0,n.y=0,!(s>1))return n.r;if(n.x=-(r=t[1]).r,r.x=n.r,r.y=0,!(s>2))return n.r+r.r;yx(r,n,o=t[2]),n=new Ch(n),r=new Ch(r),o=new Ch(o),n.next=o.previous=r,r.next=n.previous=o,o.next=r.previous=n;e:for(g=3;g<s;++g){yx(n._,r._,o=t[g]),o=new Ch(o),v=r.next,y=n.previous,x=r._.r,T=n._.r;do{if(x<=T){if(xx(v._,o._)){n.next=r=v,r.previous=n,--g;continue e}x+=v._.r,v=v.next}else{if(xx(y._,o._)){(n=y).next=r,r.previous=n,--g;continue e}T+=y._.r,y=y.previous}}while(v!==y.next);for(o.previous=n,o.next=r,n.next=r.previous=r=o,u=bx(n);(o=o.next)!==r;)(h=bx(o))<u&&(n=o,u=h);r=n.next}for(n=[r._],o=r;(o=o.next)!==r;)n.push(o._);for(o=mx(n),g=0;g<s;++g)(n=t[g]).x-=o.x,n.y-=o.y;return o.r}function o3(t){return wx(t),t}function Th(t){if("function"!=typeof t)throw new Error;return t}function lo(){return 0}function ks(t){return function(){return t}}function l3(t){return Math.sqrt(t.value)}function c3(){var t=null,n=1,r=1,o=lo;function s(u){return u.x=n/2,u.y=r/2,t?u.eachBefore(Cx(t)).eachAfter(m0(o,.5)).eachBefore(Tx(1)):u.eachBefore(Cx(l3)).eachAfter(m0(lo,1)).eachAfter(m0(o,u.r/Math.min(n,r))).eachBefore(Tx(Math.min(n,r)/(2*u.r))),u}return s.radius=function(u){return arguments.length?(t=function s3(t){return null==t?null:Th(t)}(u),s):t},s.size=function(u){return arguments.length?(n=+u[0],r=+u[1],s):[n,r]},s.padding=function(u){return arguments.length?(o="function"==typeof u?u:ks(+u),s):o},s}function Cx(t){return function(n){n.children||(n.r=Math.max(0,+t(n)||0))}}function m0(t,n){return function(r){if(o=r.children){var o,s,g,u=o.length,h=t(r)*n||0;if(h)for(s=0;s<u;++s)o[s].r+=h;if(g=wx(o),h)for(s=0;s<u;++s)o[s].r-=h;r.r=g+h}}}function Tx(t){return function(n){var r=n.parent;n.r*=t,r&&(n.x=r.x+t*n.x,n.y=r.y+t*n.y)}}function Sx(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Gc(t,n,r,o,s){for(var h,u=t.children,g=-1,v=u.length,y=t.value&&(o-n)/t.value;++g<v;)(h=u[g]).y0=r,h.y1=s,h.x0=n,h.x1=n+=h.value*y}function u3(){var t=1,n=1,r=0,o=!1;function s(h){var g=h.height+1;return h.x0=h.y0=r,h.x1=t,h.y1=n/g,h.eachBefore(function u(h,g){return function(v){v.children&&Gc(v,v.x0,h*(v.depth+1)/g,v.x1,h*(v.depth+2)/g);var y=v.x0,x=v.y0,T=v.x1-r,b=v.y1-r;
vendor: 8,730 bytes, line 1
1T<y&&(y=T=(y+T)/2),b<x&&(x=b=(x+b)/2),v.x0=y,v.y0=x,v.x1=T,v.y1=b}}(n,g)),o&&h.eachBefore(Sx),h}return s.round=function(h){return arguments.length?(o=!!h,s):o},s.size=function(h){return arguments.length?(t=+h[0],n=+h[1],s):[t,n]},s.padding=function(h){return arguments.length?(r=+h,s):r},s}var Ax="$",d3={depth:-1},kx={};function f3(t){return t.id}function h3(t){return t.parentId}function p3(){var t=f3,n=h3;function r(o){var s,u,g,v,y,T,b,h=o.length,x=new Array(h),A={};for(u=0;u<h;++u)y=x[u]=new As(s=o[u]),null!=(T=t(s,u,o))&&(T+="")&&(A[b=Ax+(y.id=T)]=b in A?kx:y);for(u=0;u<h;++u)if(y=x[u],null!=(T=n(o[u],u,o))&&(T+="")){if(!(v=A[Ax+T]))throw new Error("missing: "+T);if(v===kx)throw new Error("ambiguous: "+T);v.children?v.children.push(y):v.children=[y],y.parent=v}else{if(g)throw new Error("multiple roots");g=y}if(!g)throw new Error("no root");if(g.parent=d3,g.eachBefore(function(Z){Z.depth=Z.parent.depth+1,--h}).eachBefore(gx),g.parent=null,h>0)throw new Error("cycle");return g}return r.id=function(o){return arguments.length?(t=Th(o),r):t},r.parentId=function(o){return arguments.length?(n=Th(o),r):n},r}function g3(t,n){return t.parent===n.parent?1:2}function _0(t){var n=t.children;return n?n[0]:t.t}function v0(t){var n=t.children;return n?n[n.length-1]:t.t}function m3(t,n,r){var o=r/(n.i-t.i);n.c-=o,n.s+=r,t.c+=o,n.z+=r,n.m+=r}function v3(t,n,r){return t.a.parent===n.parent?t.a:r}function Sh(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}function x3(){var t=g3,n=1,r=1,o=null;function s(y){var x=function y3(t){for(var r,s,u,h,g,n=new Sh(t,0),o=[n];r=o.pop();)if(u=r._.children)for(r.children=new Array(g=u.length),h=g-1;h>=0;--h)o.push(s=r.children[h]=new Sh(u[h],h)),s.parent=r;return(n.parent=new Sh(null,0)).children=[n],n}(y);if(x.eachAfter(u),x.parent.m=-x.z,x.eachBefore(h),o)y.eachBefore(v);else{var T=y,b=y,A=y;y.eachBefore(function(R){R.x<T.x&&(T=R),R.x>b.x&&(b=R),R.depth>A.depth&&(A=R)});var Z=T===b?1:t(T,b)/2,M=Z-T.x,P=n/(b.x+Z+M),N=r/(A.depth||1);y.eachBefore(function(R){R.x=(R.x+M)*P,R.y=R.depth*N})}return y}function u(y){var x=y.children,T=y.parent.children,b=y.i?T[y.i-1]:null;if(x){!function _3(t){for(var u,n=0,r=0,o=t.children,s=o.length;--s>=0;)(u=o[s]).z+=n,u.m+=n,n+=u.s+(r+=u.c)}(y);var A=(x[0].z+x[x.length-1].z)/2;b?(y.z=b.z+t(y._,b._),y.m=y.z-A):y.z=A}else b&&(y.z=b.z+t(y._,b._));y.parent.A=function g(y,x,T){if(x){for(var G,b=y,A=y,Z=x,M=b.parent.children[0],P=b.m,N=A.m,R=Z.m,F=M.m;Z=v0(Z),b=_0(b),Z&&b;)M=_0(M),(A=v0(A)).a=y,(G=Z.z+R-b.z-P+t(Z._,b._))>0&&(m3(v3(Z,y,T),y,G),P+=G,N+=G),R+=Z.m,P+=b.m,F+=M.m,N+=A.m;Z&&!v0(A)&&(A.t=Z,A.m+=R-N),b&&!_0(M)&&(M.t=b,M.m+=P-F,T=y)}return T}(y,b,y.parent.A||T[0])}function h(y){y._.x=y.z+y.parent.m,y.m+=y.parent.m}function v(y){y.x*=n,y.y=y.depth*r}return s.separation=function(y){return arguments.length?(t=y,s):t},s.size=function(y){return arguments.length?(o=!1,n=+y[0],r=+y[1],s):o?null:[n,r]},s.nodeSize=function(y){return arguments.length?(o=!0,n=+y[0],r=+y[1],s):o?[n,r]:null},s}function Ah(t,n,r,o,s){for(var h,u=t.children,g=-1,v=u.length,y=t.value&&(s-r)/t.value;++g<v;)(h=u[g]).x0=n,h.x1=o,h.y0=r,h.y1=r+=h.value*y}Sh.prototype=Object.create(As.prototype);var Mx=(1+Math.sqrt(5))/2;function Dx(t,n,r,o,s,u){for(var v,y,A,Z,P,N,R,F,G,j,Q,h=[],g=n.children,x=0,T=0,b=g.length,M=n.value;x<b;){A=s-r,Z=u-o;do{P=g[T++].value}while(!P&&T<b);for(N=R=P,Q=P*P*(j=Math.max(Z/A,A/Z)/(M*t)),G=Math.max(R/Q,Q/N);T<b;++T){if(P+=y=g[T].value,y<N&&(N=y),y>R&&(R=y),Q=P*P*j,(F=Math.max(R/Q,Q/N))>G){P-=y;break}G=F}h.push(v={value:P,dice:A<Z,children:g.slice(x,T)}),v.dice?Gc(v,r,o,s,M?o+=Z*P/M:u):Ah(v,r,o,M?r+=A*P/M:s,u),M-=P,x=T}return h}const Zx=function t(n){function r(o,s,u,h,g){Dx(n,o,s,u,h,g)}return r.ratio=function(o){return t((o=+o)>1?o:1)},r}(Mx);function b3(){var t=Zx,n=!1,r=1,o=1,s=[0],u=lo,h=lo,g=lo,v=lo,y=lo;function x(b){return b.x0=b.y0=0,b.x1=r,b.y1=o,b.eachBefore(T),s=[0],n&&b.eachBefore(Sx),b}function T(b){var A=s[b.depth],Z=b.x0+A,M=b.y0+A,P=b.x1-A,N=b.y1-A;P<Z&&(Z=P=(Z+P)/2),N<M&&(M=N=(M+N)/2),b.x0=Z,b.y0=M,b.x1=P,b.y1=N,b.children&&(A=s[b.depth+1]=u(b)/2,Z+=y(b)-A,M+=h(b)-A,(P-=g(b)-A)<Z&&(Z=P=(Z+P)/2),(N-=v(b)-A)<M&&(M=N=(M+N)/2),t(b,Z,M,P,N))}return x.round=function(b){return arguments.length?(n=!!b,x):n},x.size=function(b){return arguments.length?(r=+b[0],o=+b[1],x):[r,o]},x.tile=function(b){return arguments.length?(t=Th(b),x):t},x.padding=function(b){return arguments.length?x.paddingInner(b).paddingOuter(b):x.paddingInner()},x.paddingInner=function(b){return arguments.length?(u="function"==typeof b?b:ks(+b),x):u},x.paddingOuter=function(b){return arguments.length?x.paddingTop(b).paddingRight(b).paddingBottom(b).paddingLeft(b):x.paddingTop()},x.paddingTop=function(b){return arguments.length?(h="function"==typeof b?b:ks(+b),x):h},x.paddingRight=function(b){return arguments.length?(g="function"==typeof b?b:ks(+b),x):g},x.paddingBottom=function(b){return arguments.length?(v="function"==typeof b?b:ks(+b),x):v},x.paddingLeft=function(b){return arguments.length?(y="function"==typeof b?b:ks(+b),x):y},x}function w3(t,n,r,o,s){var h,v,u=t.children,g=u.length,y=new Array(g+1);for(y[0]=v=h=0;h<g;++h)y[h+1]=v+=u[h].value;!function x(T,b,A,Z,M,P,N){if(T>=b-1){var R=u[T];return R.x0=Z,R.y0=M,R.x1=P,void(R.y1=N)}for(var F=y[T],G=A/2+F,j=T+1,Q=b-1;j<Q;){var X=j+Q>>>1;y[X]<G?j=X+1:Q=X}G-y[j-1]<y[j]-G&&T+1<j&&--j;var de=y[j]-F,se=A-de;if(P-Z>N-M){var ue=(Z*se+P*de)/A;x(T,j,de,Z,M,ue,N),x(j,b,se,ue,M,P,N)}else{var oe=(M*se+N*de)/A;x(T,j,de,Z,M,P,oe),x(j,b,se,Z,oe,P,N)}}(0,g,t.value,n,r,o,s)}function C3(t,n,r,o,s){(1&t.depth?Ah:Gc)(t,n,r,o,s)}const T3=function t(n){function r(o,s,u,h,g){if((v=o._squarify)&&v.ratio===n)for(var v,y,x,T,A,b=-1,Z=v.length,M=o.value;++b<Z;){for(x=(y=v[b]).children,T=y.value=0,A=x.length;T<A;++T)y.value+=x[T].value;y.dice?Gc(y,s,u,h,u+=(g-u)*y.value/M):Ah(y,s,u,s+=(h-s)*y.value/M,g),M-=y.value}else o._squarify=v=Dx(n,o,s,u,h,g),v.ratio=n}return r.ratio=function(o){return t((o=+o)>1?o:1)},r}(Mx);function S3(t){var n=t.length;return function(r){return t[Math.max(0,Math.min(n-1,Math.floor(r*n)))]}}function A3(t,n){var r=Lo(+t,+n);return function(o){var s=r(o);return s-360*Math.floor(s/360)}}function Ex(t,n){return t=+t,n=+n,function(r){return Math.round(t*(1-r)+n*r)}}var Hc=Math.SQRT2,y0=2,Px=4,k3=1e-12;function Lx(t){return((t=Math.exp(t))+1/t)/2}function Z3(t,n){var T,b,r=t[0],o=t[1],s=t[2],g=n[2],v=n[0]-r,y=n[1]-o,x=v*v+y*y;if(x<k3)b=Math.log(g/s)/Hc,T=function(R){return[r+R*v,o+R*y,s*Math.exp(Hc*R*b)]};else{var A=Math.sqrt(x),Z=(g*g-s*s+Px*x)/(2*s*y0*A),M=(g*g-s*s-Px*x)/(2*g*y0*A),P=Math.log(Math.sqrt(Z*Z+1)-Z),N=Math.log(Math.sqrt(M*M+1)-M);b=(N-P)/Hc,T=function(R){var F=R*b,G=Lx(P),j=s/(y0*A)*(G*function D3(t){return((t=Math.exp(2*t))-1)/(t+1)}(Hc*F+P)-function M3(t){return((t=Math.exp(t))-1/t)/2}(P));return[r+j*v,o+j*y,s*G/Lx(Hc*F+P)]}}return T.duration=1e3*b,T}function Nx(t){return function(n,r){var o=t((n=Eo(n)).h,(r=Eo(r)).h),s=ln(n.s,r.s),u=ln(n.l,r.l),h=ln(n.opacity,r.opacity);return function(g){return n.h=o(g),n.s=s(g),n.l=u(g),n.opacity=h(g),n+""}}}const E3=Nx(Lo);var P3=Nx(ln);function L3(t,n){var r=ln((t=ts(t)).l,(n=ts(n)).l),o=ln(t.a,n.a),s=ln(t.b,n.b),u=ln(t.opacity,n.opacity);return function(h){return t.l=r(h),t.a=o(h),t.b=s(h),t.opacity=u(h),t+""}}function Ox(t){return function(n,r){var o=t((n=is(n)).h,(r=is(r)).h),s=ln(n.c,r.c),u=ln(n.l,r.l),h=ln(n.opacity,r.opacity);return function(g){return n.h=o(g),n.c=s(g),n.l=u(g),n.opacity=h(g),n+""}}}const N3=Ox(Lo);var O3=Ox(ln);function Ix(t){return function n(r){function o(s,u){var h=t((s=as(s)).h,(u=as(u)).h),g=ln(s.s,u.s),v=ln(s.l,u.l),y=ln(s.opacity,u.opacity);return function(x){return s.h=h(x),s.s=g(x),s.l=v(Math.pow(x,r)),s.opacity=y(x),s+""}}return r=+r,o.gamma=n,o}(1)}const I3=Ix(Lo);var F3=Ix(ln);function q3(t,n){for(var r=0,o=n.length-1,s=n[0],u=new Array(o<0?0:o);r<o;)u[r]=t(s,s=n[++r]);return function(h){var g=Math.max(0,Math.min(o-1,Math.floor(h*=o)));return u[g](h-g)}}function U3(t,n){for(var r=new Array(n),o=0;o<n;++o)r[o]=t(o/(n-1));return r}function R3(t){for(var o,n=-1,r=t.length,s=t[r-1],u=0;++n<r;)u+=(o=s)[1]*(s=t[n])[0]-o[0]*s[1];return u/2}function G3(t){for(var u,g,n=-1,r=t.length,o=0,s=0,h=t[r-1],v=0;++n<r;)v+=g=(u=h)[0]*(h=t[n])[1]-h[0]*u[1],o+=(u[0]+h[0])*g,s+=(u[1]+h[1])*g;return[o/(v*=3),s/v]}function H3(t,n,r){return(n[0]-t[0])*(r[1]-t[1])-(n[1]-t[1])*(r[0]-t[0])}function V3(t,n){return t[0]-n[0]||t[1]-n[1]}function Fx(t){for(var n=t.length,r=[0,1],o=2,s=2;s<n;++s){for(;o>1&&H3(t[r[o-2]],t[r[o-1]],t[s])<=0;)--o;r[o++]=s}return r.slice(0,o)}function z3(t){if((r=t.length)<3)return null;var n,r,o=new Array(r),s=new Array(r);for(n=0;n<r;
1++n)o[n]=[+t[n][0],+t[n][1],n];for(o.sort(V3),n=0;n<r;++n)s[n]=[o[n][0],-o[n][1]];var u=Fx(o),h=Fx(s),g=h[0]===u[0],v=h[h.length-1]===u[u.length-1],y=[];for(n=u.length-1;n>=0;--n)y.push(t[o[u[n]][2]]);for(n=+g;n<h.length-v;++n)y.push(t[o[h[n]][2]]);return y}function Y3(t,n){for(var v,y,r=t.length,o=t[r-1],s=n[0],u=n[1],h=o[0],g=o[1],x=!1,T=0;T<r;++T)v=(o=t[T])[0],(y=o[1])>u!=g>u&&s<(h-v)*(u-y)/(g-y)+v&&(x=!x),h=v,g=y;return x}function $3(t){for(var s,u,n=-1,r=t.length,o=t[r-1],h=o[0],g=o[1],v=0;++n<r;)s=h,u=g,s-=h=(o=t[n])[0],u-=g=o[1],v+=Math.sqrt(s*s+u*u);return v}function Ms(){return Math.random()}const J3=function t(n){function r(o,s){return o=null==o?0:+o,s=null==s?1:+s,1===arguments.length?(s=o,o=0):s-=o,function(){return n()*s+o}}return r.source=t,r}(Ms),qx=function t(n){function r(o,s){var u,h;return o=null==o?0:+o,s=null==s?1:+s,function(){var g;if(null!=u)g=u,u=null;else do{u=2*n()-1,g=2*n()-1,h=u*u+g*g}while(!h||h>1);return o+s*g*Math.sqrt(-2*Math.log(h)/h)}}return r.source=t,r}(Ms),j3=function t(n){function r(){var o=qx.source(n).apply(this,arguments);return function(){return Math.exp(o())}}return r.source=t,r}(Ms),Ux=function t(n){function r(o){return function(){for(var s=0,u=0;u<o;++u)s+=n();return s}}return r.source=t,r}(Ms),B3=function t(n){function r(o){var s=Ux.source(n)(o);return function(){return s()/o}}return r.source=t,r}(Ms),W3=function t(n){function r(o){return function(){return-Math.log(1-n())/o}}return r.source=t,r}(Ms);function Ii(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function Pr(t,n){switch(arguments.length){case 0:break;case 1:this.interpolator(t);break;default:this.interpolator(n).domain(t)}return this}var Rx=Array.prototype,kh=Rx.map,co=Rx.slice,x0={name:"implicit"};function b0(){var t=zi(),n=[],r=[],o=x0;function s(u){var h=u+"",g=t.get(h);if(!g){if(o!==x0)return o;t.set(h,g=n.push(u))}return r[(g-1)%r.length]}return s.domain=function(u){if(!arguments.length)return n.slice();n=[],t=zi();for(var v,y,h=-1,g=u.length;++h<g;)t.has(y=(v=u[h])+"")||t.set(y,n.push(v));return s},s.range=function(u){return arguments.length?(r=co.call(u),s):r.slice()},s.unknown=function(u){return arguments.length?(o=u,s):o},s.copy=function(){return b0(n,r).unknown(o)},Ii.apply(s,arguments),s}function w0(){var s,u,t=b0().unknown(void 0),n=t.domain,r=t.range,o=[0,1],h=!1,g=0,v=0,y=.5;function x(){var T=n().length,b=o[1]<o[0],A=o[b-0],Z=o[1-b];s=(Z-A)/Math.max(1,T-g+2*v),h&&(s=Math.floor(s)),A+=(Z-A-s*(T-g))*y,u=s*(1-g),h&&(A=Math.round(A),u=Math.round(u));var M=m(T).map(function(P){return A+s*P});return r(b?M.reverse():M)}return delete t.unknown,t.domain=function(T){return arguments.length?(n(T),x()):n()},t.range=function(T){return arguments.length?(o=[+T[0],+T[1]],x()):o.slice()},t.rangeRound=function(T){return o=[+T[0],+T[1]],h=!0,x()},t.bandwidth=function(){return u},t.step=function(){return s},t.round=function(T){return arguments.length?(h=!!T,x()):h},t.padding=function(T){return arguments.length?(g=Math.min(1,v=+T),x()):g},t.paddingInner=function(T){return arguments.length?(g=Math.min(1,T),x()):g},t.paddingOuter=function(T){return arguments.length?(v=+T,x()):v},t.align=function(T){return arguments.length?(y=Math.max(0,Math.min(1,T)),x()):y},t.copy=function(){return w0(n(),o).round(h).paddingInner(g).paddingOuter(v).align(y)},Ii.apply(x(),arguments)}function Gx(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Gx(n())},t}function X3(){return Gx(w0.apply(null,arguments).paddingInner(1))}function C0(t){return+t}var Hx=[0,1];function Cn(t){return t}function T0(t,n){return(n-=t=+t)?function(r){return(r-t)/n}:function Q3(t){return function(){return t}}(isNaN(n)?NaN:.5)}function Vx(t){var o,n=t[0],r=t[t.length-1];return n>r&&(o=n,n=r,r=o),function(s){return Math.max(n,Math.min(r,s))}}function K3(t,n,r){var o=t[0],s=t[1],u=n[0],h=n[1];return s<o?(o=T0(s,o),u=r(h,u)):(o=T0(o,s),u=r(u,h)),function(g){return u(o(g))}}function eS(t,n,r){var o=Math.min(t.length,n.length)-1,s=new Array(o),u=new Array(o),h=-1;for(t[o]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++h<o;)s[h]=T0(t[h],t[h+1]),u[h]=r(n[h],n[h+1]);return function(g){var v=Xn(t,g,1,o)-1;return u[v](s[v](g))}}function Vc(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}
1function Mh(){var o,s,u,g,v,y,t=Hx,n=Hx,r=Fa,h=Cn;function x(){return g=Math.min(t.length,n.length)>2?eS:K3,v=y=null,T}function T(b){return isNaN(b=+b)?u:(v||(v=g(t.map(o),n,r)))(o(h(b)))}return T.invert=function(b){return h(s((y||(y=g(n,t.map(o),$n)))(b)))},T.domain=function(b){return arguments.length?(t=kh.call(b,C0),h===Cn||(h=Vx(t)),x()):t.slice()},T.range=function(b){return arguments.length?(n=co.call(b),x()):n.slice()},T.rangeRound=function(b){return n=co.call(b),r=Ex,x()},T.clamp=function(b){return arguments.length?(h=b?Vx(t):Cn,T):h!==Cn},T.interpolate=function(b){return arguments.length?(r=b,x()):r},T.unknown=function(b){return arguments.length?(u=b,T):u},function(b,A){return o=b,s=A,x()}}function zx(t,n){return Mh()(t,n)}function Yx(t,n,r,o){var u,s=O(t,n,r);switch((o=Mr(o??",f")).type){case"s":var h=Math.max(Math.abs(t),Math.abs(n));return null==o.precision&&!isNaN(u=to(s,h))&&(o.precision=u),gc(o,h);case"":case"e":case"g":case"p":case"r":null==o.precision&&!isNaN(u=Yf(s,Math.max(Math.abs(t),Math.abs(n))))&&(o.precision=u-("e"===o.type));break;case"f":case"%":null==o.precision&&!isNaN(u=_c(s))&&(o.precision=u-2*("%"===o.type))}return eo(o)}function uo(t){var n=t.domain;return t.ticks=function(r){var o=n();return L(o[0],o[o.length-1],r??10)},t.tickFormat=function(r,o){var s=n();return Yx(s[0],s[s.length-1],r??10,o)},t.nice=function(r){null==r&&(r=10);var v,o=n(),s=0,u=o.length-1,h=o[s],g=o[u];return g<h&&(v=h,h=g,g=v,v=s,s=u,u=v),(v=U(h,g,r))>0?v=U(h=Math.floor(h/v)*v,g=Math.ceil(g/v)*v,r):v<0&&(v=U(h=Math.ceil(h*v)/v,g=Math.floor(g*v)/v,r)),v>0?(o[s]=Math.floor(h/v)*v,o[u]=Math.ceil(g/v)*v,n(o)):v<0&&(o[s]=Math.ceil(h*v)/v,o[u]=Math.floor(g*v)/v,n(o)),t},t}function $x(){var t=zx(Cn,Cn);return t.copy=function(){return Vc(t,$x())},Ii.apply(t,arguments),uo(t)}function Jx(t){var n;function r(o){return isNaN(o=+o)?n:o}return r.invert=r,r.domain=r.range=function(o){return arguments.length?(t=kh.call(o,C0),r):t.slice()},r.unknown=function(o){return arguments.length?(n=o,r):n},r.copy=function(){return Jx(t).unknown(n)},t=arguments.length?kh.call(t,C0):[0,1],uo(r)}function jx(t,n){var h,r=0,o=(t=t.slice()).length-1,s=t[r],u=t[o];return u<s&&(h=r,r=o,o=h,h=s,s=u,u=h),t[r]=n.floor(s),t[o]=n.ceil(u),t}function Bx(t){return Math.log(t)}function Wx(t){return Math.exp(t)}function tS(t){return-Math.log(-t)}function nS(t){return-Math.exp(-t)}function iS(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Xx(t){return function(n){return-t(-n)}}function S0(t){var s,u,n=t(Bx,Wx),r=n.domain,o=10;function h(){return s=function aS(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(n){return Math.log(n)/t})}(o),u=function rS(t){return 10===t?iS:t===Math.E?Math.exp:function(n){return Math.pow(t,n)}}(o),r()[0]<0?(s=Xx(s),u=Xx(u),t(tS,nS)):t(Bx,Wx),n}return n.base=function(g){return arguments.length?(o=+g,h()):o},n.domain=function(g){return arguments.length?(r(g),h()):r()},n.ticks=function(g){var T,v=r(),y=v[0],x=v[v.length-1];(T=x<y)&&(b=y,y=x,x=b);var Z,M,P,b=s(y),A=s(x),N=null==g?10:+g,R=[];if(!(o%1)&&A-b<N){if(b=Math.round(b)-1,A=Math.round(A)+1,y>0){for(;b<A;++b)for(M=1,Z=u(b);M<o;++M)if(!((P=Z*M)<y)){if(P>x)break;R.push(P)}}else for(;b<A;++b)for(M=o-1,Z=u(b);M>=1;--M)if(!((P=Z*M)<y)){if(P>x)break;R.push(P)}}else R=L(b,A,Math.min(A-b,N)).map(u);return T?R.reverse():R},n.tickFormat=function(g,v){if(null==v&&(v=10===o?".0e":","),"function"!=typeof v&&(v=eo(v)),g===1/0)return v;null==g&&(g=10);var y=Math.max(1,o*g/n.ticks().length);return function(x){var T=x/u(Math.round(s(x)));return T*o<o-.5&&(T*=o),T<=y?v(x):""}},n.nice=function(){return r(jx(r(),{floor:function(g){return u(Math.floor(s(g)))},ceil:function(g){return u(Math.ceil(s(g)))}}))},n}function Qx(){var t=S0(Mh()).domain([1,10]);return t.copy=function(){return Vc(t,Qx()).base(t.base())},Ii.apply(t,arguments),t}function Kx(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function eb(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function A0(t){var n=1,r=t(Kx(n),eb(n));return r.constant=function(o){return arguments.length?t(Kx(n=+o),eb(n)):n},uo(r)}function tb(){var t=A0(Mh());return t.copy=function(){return Vc(t,tb()).constant(t.constant())},Ii.apply(t,arguments)}function nb(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function oS(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function sS(t){return t<0?-t*t:t*t}function k0(t){var n=t(Cn,Cn),r=1;return n.exponent=function(s){return arguments.length?(r=+s,function o(){return 1===r?t(Cn,Cn):.5===r?t(oS,sS):t(nb(r),nb(1/r))}()):r},uo(n)}function M0(){var t=k0(Mh());return t.copy=function(){return Vc(t,M0()).exponent(t.exponent())},Ii.apply(t,arguments),t}function lS(){return M0.apply(null,arguments).exponent(.5)}function ib(){var o,t=[],n=[],r=[];function s(){var h=0,g=Math.max(1,n.length);for(r=new Array(g-1);++h<g;)r[h-1]=ie(t,h/g);return u}function u(h){return isNaN(h=+h)?o:n[Xn(r,h)]}return u.invertExtent=function(h){var g=n.indexOf(h);return g<0?[NaN,NaN]:[g>0?r[g-1]:t[0],g<r.length?r[g]:t[t.length-1]]},u.domain=function(h){if(!arguments.length)return t.slice();t=[];for(var y,g=0,v=h.length;g<v;++g)null!=(y=h[g])&&!isNaN(y=+y)&&t.push(y);return t.sort(rt),s()},u.range=function(h){return arguments.length?(n=co.call(h),s()):n.slice()},u.unknown=function(h){return arguments.length?(o=h,u):o},u.quantiles=function(){return r.slice()},u.copy=function(){return ib().domain(t).range(n).unknown(o)},Ii.apply(u,arguments)}function rb(){var u,t=0,n=1,r=1,o=[.5],s=[0,1];function h(v){return v<=v?s[Xn(o,v,0,r)]:u}function g(){var v=-1;for(o=new Array(r);++v<r;)o[v]=((v+1)*n-(v-r)*t)/(r+1);return h}return h.domain=function(v){return arguments.length?(t=+v[0],n=+v[1],g()):[t,n]},h.range=function(v){return arguments.length?(r=(s=co.call(v)).length-1,g()):s.slice()},h.invertExtent=function(v){var y=s.indexOf(v);return y<0?[NaN,NaN]:y<1?[t,o[0]]:y>=r?[o[r-1],n]:[o[y-1],o[y]]},h.unknown=function(v){return arguments.length&&(u=v),h},h.thresholds=function(){return o.slice()},h.copy=function(){return rb().domain([t,n]).range(s).unknown(u)},Ii.apply(uo(h),arguments)}function ab(){var r,t=[.5],n=[0,1],o=1;function s(u){return u<=u?n[Xn(t,u,0,o)]:r}return s.domain=function(u){return arguments.length?(t=co.call(u),o=Math.min(t.length,n.length-1),s):t.slice()},s.range=function(u){return arguments.length?(n=co.call(u),o=Math.min(t.length,n.length-1),s):n.slice()},s.invertExtent=function(u){var h=n.indexOf(u);return[t[h-1],t[h]]},s.unknown=function(u){return arguments.length?(r=u,s):r},s.copy=function(){return ab().domain(t).range(n).unknown(r)},Ii.apply(s,arguments)}var fa=Ue(3581),ir=Ue(5626),ob=(0,ir.Z)(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});const sb=ob;var cS=ob.range,zt=Ue(4314),zc=Ue(3060),li=Ue(1759),lb=(0,ir.Z)(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*li.Ym-t.getMinutes()*li.yB)},function(t,n){t.setTime(+t+n*li.Y2)},function(t,n){return(n-t)/li.Y2},function(t){return t.getHours()});const cb=lb;var uS=lb.range,ub=(0,ir.Z)(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*li.Ym)},function(t,n){t.setTime(+t+n*li.yB)},function(t,n){return(n-t)/li.yB},function(t){return t.getMinutes()});const db=ub;var dS=ub.range,fb=(0,ir.Z)(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+n*li.Ym)},function(t,n){return(n-t)/li.Ym},function(t){return t.getUTCSeconds()});const Dh=fb;var hb=fb.range,Zh=(0,ir.Z)(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});Zh.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?(0,ir.Z)(function(n){n.setTime(Math.floor(n/t)*t)},function(n,r){n.setTime(+n+r*t)},function(n,r){return(r-n)/t}):Zh:null};const Eh=Zh;var pb=Zh.range,Yt=Ue(7691),Yc=Ue(9123),ha=Ue(4961);function D0(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Z0(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function $c(t,n,r){return{y:t,m:n,d:r,H:0,M:0,S:0,L:0}}function gb(t){var n=t.dateTime,r=t.date,o=t.time,s=t.periods,u=t.days,h=t.shortDays,g=t.months,v=t.shortMonths,y=Jc(s),x=jc(s),T=Jc(u),b=jc(u),A=Jc(h),Z=jc(h
1),M=Jc(g),P=jc(g),N=Jc(v),R=jc(v),F={a:function qe(Pe){return h[Pe.getDay()]},A:function Ne(Pe){return u[Pe.getDay()]},b:function ze(Pe){return v[Pe.getMonth()]},B:function ot(Pe){return g[Pe.getMonth()]},c:null,d:bb,e:bb,f:NS,g:zS,G:$S,H:ES,I:PS,j:LS,L:wb,m:OS,M:IS,p:function st(Pe){return s[+(Pe.getHours()>=12)]},q:function $t(Pe){return 1+~~(Pe.getMonth()/3)},Q:Mb,s:Db,S:FS,u:qS,U:US,V:RS,w:GS,W:HS,x:null,X:null,y:VS,Y:YS,Z:JS,"%":kb},G={a:function qt(Pe){return h[Pe.getUTCDay()]},A:function Mt(Pe){return u[Pe.getUTCDay()]},b:function an(Pe){return v[Pe.getUTCMonth()]},B:function Ti(Pe){return g[Pe.getUTCMonth()]},c:null,d:Tb,e:Tb,f:XS,g:sA,G:cA,H:jS,I:BS,j:WS,L:Sb,m:QS,M:KS,p:function qi(Pe){return s[+(Pe.getUTCHours()>=12)]},q:function Ui(Pe){return 1+~~(Pe.getUTCMonth()/3)},Q:Mb,s:Db,S:eA,u:tA,U:nA,V:iA,w:rA,W:aA,x:null,X:null,y:oA,Y:lA,Z:uA,"%":kb},j={a:function ue(Pe,ut,bt){var ye=A.exec(ut.slice(bt));return ye?(Pe.w=Z[ye[0].toLowerCase()],bt+ye[0].length):-1},A:function oe(Pe,ut,bt){var ye=T.exec(ut.slice(bt));return ye?(Pe.w=b[ye[0].toLowerCase()],bt+ye[0].length):-1},b:function z(Pe,ut,bt){var ye=N.exec(ut.slice(bt));return ye?(Pe.m=R[ye[0].toLowerCase()],bt+ye[0].length):-1},B:function ee(Pe,ut,bt){var ye=M.exec(ut.slice(bt));return ye?(Pe.m=P[ye[0].toLowerCase()],bt+ye[0].length):-1},c:function _e(Pe,ut,bt){return de(Pe,n,ut,bt)},d:yb,e:yb,f:kS,g:vb,G:_b,H:xb,I:xb,j:CS,L:AS,m:wS,M:TS,p:function se(Pe,ut,bt){var ye=y.exec(ut.slice(bt));return ye?(Pe.p=x[ye[0].toLowerCase()],bt+ye[0].length):-1},q:bS,Q:DS,s:ZS,S:SS,u:mS,U:_S,V:vS,w:gS,W:yS,x:function K(Pe,ut,bt){return de(Pe,r,ut,bt)},X:function me(Pe,ut,bt){return de(Pe,o,ut,bt)},y:vb,Y:_b,Z:xS,"%":MS};function Q(Pe,ut){return function(bt){var Gn,Ir,Hn,ye=[],Tn=-1,Dt=0,En=Pe.length;for(bt instanceof Date||(bt=new Date(+bt));++Tn<En;)37===Pe.charCodeAt(Tn)&&(ye.push(Pe.slice(Dt,Tn)),null!=(Ir=mb[Gn=Pe.charAt(++Tn)])?Gn=Pe.charAt(++Tn):Ir="e"===Gn?" ":"0",(Hn=ut[Gn])&&(Gn=Hn(bt,Ir)),ye.push(Gn),Dt=Tn+1);return ye.push(Pe.slice(Dt,Tn)),ye.join("")}}function X(Pe,ut){return function(bt){var Dt,En,ye=$c(1900,void 0,1);if(de(ye,Pe,bt+="",0)!=bt.length)return null;if("Q"in ye)return new Date(ye.Q);if("s"in ye)return new Date(1e3*ye.s+("L"in ye?ye.L:0));if(ut&&!("Z"in ye)&&(ye.Z=0),"p"in ye&&(ye.H=ye.H%12+12*ye.p),void 0===ye.m&&(ye.m="q"in ye?ye.q:0),"V"in ye){if(ye.V<1||ye.V>53)return null;"w"in ye||(ye.w=1),"Z"in ye?(En=(Dt=Z0($c(ye.y,0,1))).getUTCDay(),Dt=En>4||0===En?Yt.l6.ceil(Dt):(0,Yt.l6)(Dt),Dt=Yc.Z.offset(Dt,7*(ye.V-1)),ye.y=Dt.getUTCFullYear(),ye.m=Dt.getUTCMonth(),ye.d=Dt.getUTCDate()+(ye.w+6)%7):(En=(Dt=D0($c(ye.y,0,1))).getDay(),Dt=En>4||0===En?zt.wA.ceil(Dt):(0,zt.wA)(Dt),Dt=zc.Z.offset(Dt,7*(ye.V-1)),ye.y=Dt.getFullYear(),ye.m=Dt.getMonth(),ye.d=Dt.getDate()+(ye.w+6)%7)}else("W"in ye||"U"in ye)&&("w"in ye||(ye.w="u"in ye?ye.u%7:"W"in ye?1:0),En="Z"in ye?Z0($c(ye.y,0,1)).getUTCDay():D0($c(ye.y,0,1)).getDay(),ye.m=0,ye.d="W"
vendor: 5,676 bytes, line 1
1in ye?(ye.w+6)%7+7*ye.W-(En+5)%7:ye.w+7*ye.U-(En+6)%7);return"Z"in ye?(ye.H+=ye.Z/100|0,ye.M+=ye.Z%100,Z0(ye)):D0(ye)}}function de(Pe,ut,bt,ye){for(var Gn,Ir,Tn=0,Dt=ut.length,En=bt.length;Tn<Dt;){if(ye>=En)return-1;if(37===(Gn=ut.charCodeAt(Tn++))){if(Gn=ut.charAt(Tn++),!(Ir=j[Gn in mb?ut.charAt(Tn++):Gn])||(ye=Ir(Pe,bt,ye))<0)return-1}else if(Gn!=bt.charCodeAt(ye++))return-1}return ye}return F.x=Q(r,F),F.X=Q(o,F),F.c=Q(n,F),G.x=Q(r,G),G.X=Q(o,G),G.c=Q(n,G),{format:function(Pe){var ut=Q(Pe+="",F);return ut.toString=function(){return Pe},ut},parse:function(Pe){var ut=X(Pe+="",!1);return ut.toString=function(){return Pe},ut},utcFormat:function(Pe){var ut=Q(Pe+="",G);return ut.toString=function(){return Pe},ut},utcParse:function(Pe){var ut=X(Pe+="",!0);return ut.toString=function(){return Pe},ut}}}var Ds,E0,Zb,Ph,P0,mb={"-":"",_:" ",0:"0"},_n=/^\s*\d+/,fS=/^%/,hS=/[\\^$*+?|[\]().{}]/g;function Zt(t,n,r){var o=t<0?"-":"",s=(o?-t:t)+"",u=s.length;return o+(u<r?new Array(r-u+1).join(n)+s:s)}function pS(t){return t.replace(hS,"\\$&")}function Jc(t){return new RegExp("^(?:"+t.map(pS).join("|")+")","i")}function jc(t){for(var n={},r=-1,o=t.length;++r<o;)n[t[r].toLowerCase()]=r;return n}function gS(t,n,r){var o=_n.exec(n.slice(r,r+1));return o?(t.w=+o[0],r+o[0].length):-1}function mS(t,n,r){var o=_n.exec(n.slice(r,r+1));return o?(t.u=+o[0],r+o[0].length):-1}function _S(t,n,r){var o=_n.exec(n.slice(r,r+2));return o?(t.U=+o[0],r+o[0].length):-1}function vS(t,n,r){var o=_n.exec(n.slice(r,r+2));return o?(t.V=+o[0],r+o[0].length):-1}function yS(t,n,r){var o=_n.exec(n.slice(r,r+2));return o?(t.W=+o[0],r+o[0].length):-1}function _b(t,n,r){var o=_n.exec(n.slice(r,r+4));return o?(t.y=+o[0],r+o[0].length):-1}function vb(t,n,r){var o=_n.exec(n.slice(r,r+2));return o?(t.y=+o[0]+(+o[0]>68?1900:2e3),r+o[0].length):-1}function xS(t,n,r){var o=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(r,r+6));return o?(t.Z=o[1]?0:-(o[2]+(o[3]||"00")),r+o[0].length):-1}function bS(t,n,r){var o=_n.exec(n.slice(r,r+1));return o?(t.q=3*o[0]-3,r+o[0].length):-1}function wS(t,n,r){var o=_n.exec(n.slice(r,r+2));return o?(t.m=o[0]-1,r+o[0].length):-1}function yb(t,n,r){var o=_n.exec(n.slice(r,r+2));return o?(t.d=+o[0],r+o[0].length):-1}function CS(t,n,r){var o=_n.exec(n.slice(r,r+3));return o?(t.m=0,t.d=+o[0],r+o[0].length):-1}function xb(t,n,r){var o=_n.exec(n.slice(r,r+2));return o?(t.H=+o[0],r+o[0].length):-1}function TS(t,n,r){var o=_n.exec(n.slice(r,r+2));return o?(t.M=+o[0],r+o[0].length):-1}function SS(t,n,r){var o=_n.exec(n.slice(r,r+2));return o?(t.S=+o[0],r+o[0].length):-1}function AS(t,n,r){var o=_n.exec(n.slice(r,r+3));return o?(t.L=+o[0],r+o[0].length):-1}function kS(t,n,r){var o=_n.exec(n.slice(r,r+6));return o?(t.L=Math.floor(o[0]/1e3),r+o[0].length):-1}function MS(t,n,r){var o=fS.exec(n.slice(r,r+1));return o?r+o[0].length:-1}function DS(t,n,r){var o=_n.exec(n.slice(r));return o?(t.Q=+o[0],r+o[0].length):-1}function ZS(t,n,r){var o=_n.exec(n.slice(r));return o?(t.s=+o[0],r+o[0].length):-1}function bb(t,n){return Zt(t.getDate(),n,2)}function ES(t,n){return Zt(t.getHours(),n,2)}function PS(t,n){return Zt(t.getHours()%12||12,n,2)}function LS(t,n){return Zt(1+zc.Z.count((0,fa.Z)(t),t),n,3)}function wb(t,n){return Zt(t.getMilliseconds(),n,3)}function NS(t,n){return wb(t,n)+"000"}function OS(t,n){return Zt(t.getMonth()+1,n,2)}function IS(t,n){return Zt(t.getMinutes(),n,2)}function FS(t,n){return Zt(t.getSeconds(),n,2)}function qS(t){var n=t.getDay();return 0===n?7:n}function US(t,n){return Zt(zt.OM.count((0,fa.Z)(t)-1,t),n,2)}function Cb(t){var n=t.getDay();return n>=4||0===n?(0,zt.bL)(t):zt.bL.ceil(t)}function RS(t,n){return t=Cb(t),Zt(zt.bL.count((0,fa.Z)(t),t)+(4===(0,fa.Z)(t).getDay()),n,2)}function GS(t){return t.getDay()}function HS(t,n){return Zt(zt.wA.count((0,fa.Z)(t)-1,t),n,2)}function VS(t,n){return Zt(t.getFullYear()%100,n,2)}function zS(t,n){return Zt((t=Cb(t)).getFullYear()%100,n,2)}function YS(t,n){return Zt(t.getFullYear()%1e4,n,4)}function $S(t,n){var r=t.getDay();return Zt((t=r>=4||0===r?(0,zt.bL)(t):zt.bL.ceil(t)).getFullYear()%1e4,n,4)}function JS(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Zt(n/60|0,"0",2)+Zt(n%60,"0",2)}function Tb(t,n){return Zt(t.getUTCDate(),n,2)}function jS(t,n){return Zt(t.getUTCHours(),n,2)}function BS(t,n){return Zt(t.getUTCHours()%12||12,n,2)}function WS(t,n){return Zt(1+Yc.Z.count((0,ha.Z)(t),t),n,3)}function Sb(t,n){return Zt(t.getUTCMilliseconds(),n,3)}function XS(t,n){return Sb(t,n)+"000"}function QS(t,n){return Zt(t.getUTCMonth()+1,n,2)}function KS(t,n){return Zt(t.getUTCMinutes(),n,2)}function eA(t,n){return Zt(t.getUTCSeconds(),n,2)}function tA(t){var n=t.getUTCDay();return 0===n?7:n}function nA(t,n){return Zt(Yt.Ox.count((0,ha.Z)(t)-1,t),n,2)}function Ab(t){var n=t.getUTCDay();return n>=4||0===n?(0,Yt.hB)(t):Yt.hB.ceil(t)}function iA(t,n){return t=Ab(t),Zt(Yt.hB.count((0,ha.Z)(t),t)+(4===(0,ha.Z)(t).getUTCDay()),n,2)}function rA(t){return t.getUTCDay()}function aA(t,n){return Zt(Yt.l6.count((0,ha.Z)(t)-1,t),n,2)}function oA(t,n){return Zt(t.getUTCFullYear()%100,n,2)}function sA(t,n){return Zt((t=Ab(t)).getUTCFullYear()%100,n,2)}function lA(t,n){return Zt(t.getUTCFullYear()%1e4,n,4)}function cA(t,n){var r=t.getUTCDay();return Zt((t=r>=4||0===r?(0,Yt.hB)(t):Yt.hB.ceil(t)).getUTCFullYear()%1e4,n,4)}function uA(){return"+0000"}function kb(){return"%"}function Mb(t){return+t}function Db(t){return Math.floor(+t/1e3)}function Eb(t){return Ds=gb(t),E0=Ds.format,Zb=Ds.parse,Ph=Ds.utcFormat,P0=Ds.utcParse,Ds}Eb({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Bc=1e3,Wc=60*Bc,Xc=60*Wc,Qc=24*Xc,dA=7*Qc,Pb=30*Qc,L0=365*Qc;function fA(t){return new Date(t)}function hA(t){return t instanceof Date?+t:+new Date(+t)}function N0(t,n,r,o,s,u,h,g,v){var y=zx(Cn,Cn),x=y.invert,T=y.domain,b=v(".%L"),A=v(":%S"),Z=v("%I:%M"),M=v("%I %p"),P=v("%a %d"),N=v("%b %d"),R=v("%B"),F=v("%Y"),G=[[h,1,Bc],[h,5,5*Bc],[h,15,15*Bc],[h,30,30*Bc],[u,1,Wc],[u,5,5*Wc],[u,15,15*Wc],[u,30,30*Wc],[s,1,Xc],[s,3,3*Xc],[s,6,6*Xc],[s,12,12*Xc],[o,1,Qc],[o,2,2*Qc],[r,1,dA],[n,1,Pb],[n,3,3*Pb],[t,1,L0]];function j(X){return(h(X)<X?b:u(X)<X?A:s(X)<X?Z:o(X)<X?M:n(X)<X?r(X)<X?P:N:t(X)<X?R:F)(X)}function Q(X,de,se,ue){if(null==X&&(X=10),"number"==typeof X){var oe=Math.abs(se-de)/X,z=hn(function(ee){return ee[2]}).right(G,oe);z===G.length?(ue=O(de/L0,se/L0,X),X=t):z?(ue=(z=G[oe/G[z-1][2]<G[z][2]/oe?z-1:z])[1],X=z[0]):(ue=Math.max(O(de,se,X),1),X=g)}return null==ue?X:X.every(ue)}return y.invert=function(X){return new Date(x(X))},y.domain=function(X){return arguments.length?T(kh.call(X,hA)):T().map(fA)},y.ticks=function(X,de){var ee,se=T(),ue=se[0],oe=se[se.length-1],z=oe<ue;return z&&(ee=ue,ue=oe,oe=ee),ee=(ee=Q(X,ue,oe,de))?ee.range(ue,oe+1):[],z?ee.reverse():ee},y.tickFormat=function(X,de){return null==de?j:v(de)},y.nice=function(X,de){var se=T();return(X=Q(X,se[0],se[se.length-1],de))?T(jx(se,X)):y},y.copy=function(){return Vc(y,N0(t,n,r,o,s,u,h,g,v))},y}function pA(){return Ii.apply(N0(fa.Z,sb,zt.OM,zc.Z,cb,db,Dh,Eh,E0).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Lb=(0,ir.Z)(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()});const Nb=Lb;var gA=Lb.range,Ob=(0,ir.Z)(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*li.Y2)},function(t,n){return(n-t)/li.Y2},function(t){return t.getUTCHours()});const Ib=Ob;var mA=Ob.range,Fb=(0,ir.Z)(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*li.yB)},function(t,n){return(n-t)/li.yB},function(t){return t.getUTCMinutes()});const qb=Fb;var _A=Fb.range;function vA(){return Ii.apply(N0(ha.Z,Nb,Yt.Ox,Yc.Z,Ib,qb,Dh,Eh,Ph).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Lh(){var r,o,s,u,v,t=0,n=1,h=Cn,g=!1;function y(x){return isNaN(x=+x)?v:h(0===s?.5:(x=(u(x)-r)*s,g?Math.max(0,Math.min(1,x)):x))}return y.domain=function(x){return arguments.length?(r=u(t=+x[0]),o=u(n=+x[1]),s=r===o?0:1/(o-r),y):[t,n]},y.clamp=function(x){return arguments.length?(g=!!x,y):g},y.interpolator=function(x){return arguments.length?(h=x,y):h},y.unknown=function(x){return arguments.length?(v=x,y):v},function(x){return u=x,r=x(t),o=x(n),s=r===o?0:1/(o-r),y}}function pa(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Ub(){var t=uo(Lh()(Cn));return t.copy=function(){return pa(t,Ub())},Pr.apply(t,arguments)}function Rb(){var t=S0(Lh()).domain([1,10]);return t.copy=function(){return pa(t,Rb()).base(t.base())},Pr.apply(t,arguments)}function Gb(){var t=A0(Lh());return t.copy=function(){return pa(t,Gb()).constant(t.constant())},Pr.apply(t,arguments)}function O0(){var t=k0(Lh());return t.copy=function(){return pa(t,O0()).exponent(t.exponent())},Pr.apply(t,arguments)}function yA(){return O0.apply(null,arguments).exponent(.5)}function Hb(){var t=[],n=Cn;function r(o){if(!isNaN(o=+o))return n((Xn(t,o)-1)/(t.length-1))}return r.domain=function(o){if(!arguments.length)return t.slice();t=[];for(var h,s=0,u=o.length;s<u;++s)null!=(h=o[s])&&!isNaN(h=+h)&&t.push(h);return t.sort(rt),r},r.interpolator=function(o){return arguments.length?(n=o,r):n},r.copy=function(){return Hb(n).domain(t)},Pr.apply(r,arguments)}function Nh(){var o,s,u,h,g,y,T,t=0,n=.5,r=1,v=Cn,x=!1;function b(A){return isNaN(A=+A)?T:(A=.5+((A=+y(A))-s)*(A<s?h:g),v(x?Math.max(0,Math.min(1,A)):A))}return b.domain=function(A){return arguments.length?(o=y(t=+A[0]),s=y(n=+A[1]),u=y(r=+A[2]),h=o===s?0:.5/(s-o),g=s===u?0:.5/(u-s),b):[t,n,r]},b.clamp=function(A){return arguments.length?(x=!!A,b):x},b.interpolator=function(A){return arguments.length?(v=A,b):v},b.unknown=function(A){return arguments.length?(T=A,b):T},function(A){return y=A,o=A(t),s=A(n),u=A(r),h=o===s?0:.5/(s-o),g=s===u?0:.5/(u-s),b}}function Vb(){var t=uo(Nh()(Cn));return t.copy=function(){return pa(t,Vb())},Pr.apply(t,arguments)}function zb(){var t=S0(Nh()).domain([.1,1,10]);return t.copy=function(){return pa(t,zb()).base(t.base())},Pr.apply(t,arguments)}function Yb(){var t=A0(Nh());return t.copy=function(){return pa(t,Yb()).constant(t.constant())},Pr.apply(t,arguments)}function I0(){var t=k0(Nh());return t.copy=function(){return pa(t,I0()).exponent(t.exponent())},Pr.apply(t,arguments)}function xA(){return I0.apply(null,arguments).exponent(.5)}function ht(t){for(var n=t.length/6|0,r=new Array(n),o=0;o<n;)r[o]="#"+t.slice(6*o,6*++o);return r}const bA=ht("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),wA=ht("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),CA=ht("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),TA=ht("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),SA=ht("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),AA=ht("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),kA=ht("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),MA=ht("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),DA=ht("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),ZA=ht("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function Oh(t,n,r){t.prototype=n.prototype=r,r.constructor=t}function F0(t,n){var r=Object.create(t.prototype);for(var o in n)r[o]=n[o];return r}function Zs(){}var Es=1/.7,Ps="\\s*([+-]?\\d+)\\s*",Kc="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",rr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",EA=/^#([0-9a-f]{3,8})$/,PA=new RegExp("^rgb\\("+[Ps,Ps,Ps]+"\\)$"),LA=new RegExp("^rgb\\("+[rr,rr,rr]+"\\)$"),NA=new RegExp("^rgba\\("+[Ps,Ps,Ps,Kc]+"\\)$"),OA=new RegExp("^rgba\\("+[rr,rr,rr,Kc]+"\\)$"),IA
vendor: 4,130 bytes, line 1
1=new RegExp("^hsl\\("+[Kc,rr,rr]+"\\)$"),FA=new RegExp("^hsla\\("+[Kc,rr,rr,Kc]+"\\)$"),$b={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Jb(){return this.rgb().formatHex()}function jb(){return this.rgb().formatRgb()}function q0(t){var n,r;return t=(t+"").trim().toLowerCase(),(n=EA.exec(t))?(r=n[1].length,n=parseInt(n[1],16),6===r?Bb(n):3===r?new Rn(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===r?Ih(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===r?Ih(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=PA.exec(t))?new Rn(n[1],n[2],n[3],1):(n=LA.exec(t))?new Rn(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=NA.exec(t))?Ih(n[1],n[2],n[3],n[4]):(n=OA.exec(t))?Ih(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=IA.exec(t))?Kb(n[1],n[2]/100,n[3]/100,1):(n=FA.exec(t))?Kb(n[1],n[2]/100,n[3]/100,n[4]):$b.hasOwnProperty(t)?Bb($b[t]):"transparent"===t?new Rn(NaN,NaN,NaN,0):null}function Bb(t){return new Rn(t>>16&255,t>>8&255,255&t,1)}function Ih(t,n,r,o){return o<=0&&(t=n=r=NaN),new Rn(t,n,r,o)}function Wb(t){return t instanceof Zs||(t=q0(t)),t?new Rn((t=t.rgb()).r,t.g,t.b,t.opacity):new Rn}function eu(t,n,r,o){return 1===arguments.length?Wb(t):new Rn(t,n,r,o??1)}function Rn(t,n,r,o){this.r=+t,this.g=+n,this.b=+r,this.opacity=+o}function Xb(){return"#"+U0(this.r)+U0(this.g)+U0(this.b)}function Qb(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||
vendor: 6,917 bytes, line 1
10))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function U0(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Kb(t,n,r,o){return o<=0?t=n=r=NaN:r<=0||r>=1?t=n=NaN:n<=0&&(t=NaN),new ar(t,n,r,o)}function ew(t){if(t instanceof ar)return new ar(t.h,t.s,t.l,t.opacity);if(t instanceof Zs||(t=q0(t)),!t)return new ar;if(t instanceof ar)return t;var n=(t=t.rgb()).r/255,r=t.g/255,o=t.b/255,s=Math.min(n,r,o),u=Math.max(n,r,o),h=NaN,g=u-s,v=(u+s)/2;return g?(h=n===u?(r-o)/g+6*(r<o):r===u?(o-n)/g+2:(n-r)/g+4,g/=v<.5?u+s:2-u-s,h*=60):g=v>0&&v<1?0:h,new ar(h,g,v,t.opacity)}function ar(t,n,r,o){this.h=+t,this.s=+n,this.l=+r,this.opacity=+o}function R0(t,n,r){return 255*(t<60?n+(r-n)*t/60:t<180?r:t<240?n+(r-n)*(240-t)/60:n)}function tw(t,n,r,o,s){var u=t*t,h=u*t;return((1-3*t+3*u-h)*n+(4-6*u+3*h)*r+(1+3*t+3*u-3*h)*o+h*s)/6}function G0(t){return function(){return t}}function nw(t,n){return function(r){return t+r*n}}function Ls(t,n){var r=n-t;return r?nw(t,r):G0(isNaN(t)?n:t)}function iw(t){return function(n){var h,g,r=n.length,o=new Array(r),s=new Array(r),u=new Array(r);for(h=0;h<r;++h)g=eu(n[h]),o[h]=g.r||0,s[h]=g.g||0,u[h]=g.b||0;return o=t(o),s=t(s),u=t(u),g.opacity=1,function(v){return g.r=o(v),g.g=s(v),g.b=u(v),g+""}}}Oh(Zs,q0,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Jb,formatHex:Jb,formatHsl:function qA(){return ew(this).formatHsl()},formatRgb:jb,toString:jb}),Oh(Rn,eu,F0(Zs,{brighter:function(t){return t=null==t?Es:Math.pow(Es,t),new Rn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Rn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Xb,formatHex:Xb,formatRgb:Qb,toString:Qb})),Oh(ar,function UA(t,n,r,o){return 1===arguments.length?ew(t):new ar(t,n,r,o??1)},F0(Zs,{brighter:function(t){return t=null==t?Es:Math.pow(Es,t),new ar(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ar(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*n,s=2*r-o;return new Rn(R0(t>=240?t-240:t+120,s,o),R0(t,s,o),R0(t<120?t+240:t-120,s,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}})),function t(n){var r=function zA(t){return 1==(t=+t)?Ls:function(n,r){return r-n?function HA(t,n,r){return t=Math.pow(t,r),n=Math.pow(n,r)-t,r=1/r,function(o){return Math.pow(t+o*n,r)}}(n,r,t):G0(isNaN(n)?r:n)}}(n);function o(s,u){var h=r((s=eu(s)).r,(u=eu(u)).r),g=r(s.g,u.g),v=r(s.b,u.b),y=Ls(s.opacity,u.opacity);return function(x){return s.r=h(x),s.g=g(x),s.b=v(x),s.opacity=y(x),s+""}}return o.gamma=t,o}(1);var YA=iw(function RA(t){var n=t.length-1;return function(r){var o=r<=0?r=0:r>=1?(r=1,n-1):Math.floor(r*n),s=t[o],u=t[o+1];return tw((r-o/n)*n,o>0?t[o-1]:2*s-u,s,u,o<n-1?t[o+2]:2*u-s)}});function Gt(t){return YA(t[t.length-1])}iw(function GA(t){var n=t.length;return function(r){var o=Math.floor(((r%=1)<0?++r:r)*n);return tw((r-o/n)*n,t[(o+n-1)%n],t[o%n],t[(o+1)%n],t[(o+2)%n])}});var rw=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(ht);const $A=Gt(rw);var aw=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(ht);const JA=Gt(aw);var ow=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(ht);const jA=Gt(ow);var sw=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(ht);const BA=Gt(sw);var lw=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(ht);const WA=Gt(lw);var cw=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(ht);const XA=Gt(cw);var uw=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(ht);const QA=Gt(uw);var dw=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d
17191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(ht);const KA=Gt(dw);var fw=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(ht);const ek=Gt(fw);var hw=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(ht);const tk=Gt(hw);var pw=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(ht);const nk=Gt(pw);var gw=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(ht);const ik=Gt(gw);var mw=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(ht);const rk=Gt(mw);var _w=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(ht);const ak=Gt(_w);var vw=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(ht);const ok=Gt(vw);var yw=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(ht);const sk=Gt(yw);var xw=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(ht);const lk=Gt(xw);var bw=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(ht);const ck=Gt(bw);var ww=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(ht);const uk=Gt(ww);var Cw=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(ht);const dk=Gt(Cw);var Tw=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(ht);const fk=Gt(Tw);var Sw=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ec
1ae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(ht);const hk=Gt(Sw);var Aw=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(ht);const pk=Gt(Aw);var kw=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(ht);const gk=Gt(kw);var Mw=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(ht);const mk=Gt(Mw);var Dw=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(ht);const _k=Gt(Dw);var Zw=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(ht);const vk=Gt(Zw);function yk(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"}var xk=Math.PI/180,bk=180/Math.PI,H0=1.78277,V0=-.29227,Fh=-.90649,tu=1.97294,Pw=tu*Fh,Lw=tu*H0,Nw=H0*V0- -.14861*Fh;function or(t,n,r,o){return 1===arguments.length?function wk(t){if(t instanceof ho)return new ho(t.h,t.s,t.l,t.opacity);t instanceof Rn||(t=Wb(t));var r=t.g/255,o=t.b/255,s=(Nw*o+Pw*(t.r/255)-Lw*r)/(Nw+Pw-Lw),u=o-s,h=(tu*(r-s)-V0*u)/Fh,g=Math.sqrt(h*h+u*u)/(tu*s*(1-s)),v=g?Math.atan2(h,u)*bk-120:NaN;return new ho(v<0?v+360:v,g,s,t.opacity)}(t):new ho(t,n,r,o??1)}function ho(t,n,r,o){this.h=+t,this.s=+n,this.l=+r,this.opacity=+o}function Ow(t){return function n(r){function o(s,u){var h=t((s=or(s)).h,(u=or(u)).h),g=Ls(s.s,u.s),v=Ls(s.l,u.l),y=Ls(s.opacity,u.opacity);return function(x){return s.h=h(x),s.s=g(x),s.l=v(Math.pow(x,r)),s.opacity=y(x),s+""}}return r=+r,o.gamma=n,o}(1)}Oh(ho,or,F0(Zs,{brighter:function(t){return t=null==t?Es:Math.pow(Es,t),new ho(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ho(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*xk,n=+this.l,r=isNaN(this.s)?0:this.s*n*(1-n),o=Math.cos(t),s=Math.sin(t);return new Rn(255*(n+r*(-.14861*o+H0*s)),255*(n+r*(V0*o+Fh*s)),255*(n+r*(tu*o)),this.opacity)}})),Ow(function VA(t,n){var r=n-t;return r?nw(t,r>180||r<-180?r-360*Math.round(r/360):r):G0(isNaN(t)?n:t)});var z0=Ow(Ls);const Ck=z0(or(300,.5,0),or(-240,.5,1));var Tk=z0(or(-100,.75,.35),or(80,1.5,.8)),Sk=z0(or(260,.75,.35),or(80,1.5,.8)),qh=or();function Ak(t){(t<0||t>1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return qh.h=360*t-100,qh.s=1.5-1.5*n,qh.l=.8-.9*n,qh+""}var Uh=eu(),kk=Math.PI/3,Mk=2*Math.PI/3;function Dk(t){var n;return t=(.5-t)*Math.PI,Uh.r=255*(n=Math.sin(t))*n,Uh.g=255*(n=Math.sin(t+kk))*n,Uh.b=255*(n=Math.sin(t+Mk))*n,Uh+""}function Zk(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+
vendor: 5,423 bytes, line 1
1Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}function Rh(t){var n=t.length;return function(r){return t[Math.max(0,Math.min(n-1,Math.floor(r*n)))]}}const Ek=Rh(ht("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var Pk=Rh(ht("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Lk=Rh(ht("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Nk=Rh(ht("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0a
1a58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Ok(t){return Vi(Ct(t).call(document.documentElement))}var Ik=0;function Iw(){return new Y0}function Y0(){this._="@"+(++Ik).toString(36)}function Fk(t){return"string"==typeof t?new fn([document.querySelectorAll(t)],[document.documentElement]):new fn([t??[]],Fl)}function qk(t,n){null==n&&(n=vl().touches);for(var r=0,o=n?n.length:0,s=new Array(o);r<o;++r)s[r]=Oo(t,n[r]);return s}function xt(t){return function(){return t}}Y0.prototype=Iw.prototype={constructor:Y0,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var Fw=Math.abs,Mn=Math.atan2,po=Math.cos,Uk=Math.max,$0=Math.min,sr=Math.sin,Ns=Math.sqrt,Dn=1e-12,ga=Math.PI,Gh=ga/2,ma=2*ga;function qw(t){return t>=1?Gh:t<=-1?-Gh:Math.asin(t)}function Gk(t){return t.innerRadius}function Hk(t){return t.outerRadius}function Vk(t){return t.startAngle}function zk(t){return t.endAngle}function Yk(t){return t&&t.padAngle}function Hh(t,n,r,o,s,u,h){var g=t-r,v=n-o,y=(h?u:-u)/Ns(g*g+v*v),x=y*v,T=-y*g,b=t+x,A=n+T,Z=r+x,M=o+T,P=(b+Z)/2,N=(A+M)/2,R=Z-b,F=M-A,G=R*R+F*F,j=s-u,Q=b*M-Z*A,X=(F<0?-1:1)*Ns(Uk(0,j*j*G-Q*Q)),de=(Q*F-R*X)/G,se=(-Q*R-F*X)/G,ue=(Q*F+R*X)/G,oe=(-Q*R+F*X)/G,z=de-P,ee=se-N,_e=ue-P,K=oe-N;return z*z+ee*ee>_e*_e+K*K&&(de=ue,se=oe),{cx:de,cy:se,x01:-x,y01:-T,x11:de*(s/j-1),y11:se*(s/j-1)}}function Jk(){var t=Gk,n=Hk,r=xt(0),o=null,s=Vk,u=zk,h=Yk,g=null;function v(){var y,x,T=+t.apply(this,arguments),b=+n.apply(this,arguments),A=s.apply(this,arguments)-Gh,Z=u.apply(this,arguments)-Gh,M=Fw(Z-A),P=Z>A;if(g||(g=y=(0,wr.Z)()),b<T&&(x=b,b=T,T=x),b>Dn)if(M>ma-Dn)g.moveTo(b*po(A),b*sr(A)),g.arc(0,0,b,A,Z,!P),T>Dn&&(g.moveTo(T*po(Z),T*sr(Z)),g.arc(0,0,T,Z,A,P));else{var z,ee,N=A,R=Z,F=A,G=Z,j=M,Q=M,X=h.apply(this,arguments)/2,de=X>Dn&&(o?+o.apply(this,arguments):Ns(T*T+b*b)),se=$0(Fw(b-T)/2,+r.apply(this,arguments)),ue=se,oe=se;if(de>Dn){var _e=qw(de/T*sr(X)),K=qw(de/b*sr(X));(j-=2*_e)>Dn?(F+=_e*=P?1:-1,G-=_e):(j=0,F=G=(A+Z)/2),(Q-=2*K)>Dn?(N+=K*=P?1:-1,R-=K):(Q=0,N=R=(A+Z)/2)}var me=b*po(N),qe=b*sr(N),Ne=T*po(G),ze=T*sr(G);if(se>Dn){var Mt,ot=b*po(R),st=b*sr(R),$t=T*po(F),qt=T*sr(F);if(M<ga&&(Mt=function $k(t,n,r,o,s,u,h,g){var v=r-t,y=o-n,x=h-s,T=g-u,b=T*v-x*y;if(!(b*b<Dn))return[t+(b=(x*(n-u)-T*(t-s))/b)*v,n+b*y]}(me,qe,$t,qt,ot,st,Ne,ze))){var an=me-Mt[0],Ti=qe-Mt[1],qi=ot-Mt[0],Ui=st-Mt[1],Pe=1/sr(function Rk(t){return t>1?0:t<-1?ga:Math.acos(t)}((an*qi+Ti*Ui)/(Ns(an*an+Ti*Ti)*Ns(qi*qi+Ui*Ui)))/2),ut=Ns(Mt[0]*Mt[0]+Mt[1]*Mt[1]);ue=$0(se,(T-ut)/(Pe-1)),oe=$0(se,(b-ut)/(Pe+1))}}Q>Dn?oe>Dn?(z=Hh($t,qt,me,qe,b,oe,P),ee=Hh(ot,st,Ne,ze,b,oe,P),g.moveTo(z.cx+z.x01,z.cy+z.y01),oe<se?g.arc(z.cx,z.cy,oe,Mn(z.y01,z.x01),Mn(ee.y01,ee.x01),!P):(g.arc(z.cx,z.cy,oe,Mn(z.y01,z.x01),Mn(z.y11,z.x11),!P),g.arc(0,0,b,Mn(z.cy+z.y11,z.cx+z.x11),Mn(ee.cy+ee.y11,ee.cx+ee.x11),!P),g.arc(ee.cx,ee.cy,oe,Mn(ee.y11,ee.x11),Mn(ee.y01,ee.x01),!P))):(g.moveTo(me,qe),g.arc(0,0,b,N,R,!P)):g.moveTo(me,qe),T>Dn&&j>Dn?ue>Dn?(z=Hh(Ne,ze,ot,st,T,-ue,P),ee=Hh(me,qe,$t,qt,T,-ue,P),g.lineTo(z.cx+z.x01,z.cy+z.y01),ue<se?g.arc(z.cx,z.cy,ue,Mn(z.y01,z.x01),Mn(ee.y01,ee.x01),!P):(g.arc(z.cx,z.cy,ue,Mn(z.y01,z.x01),Mn(z.y11,z.x11),!P),g.arc(0,0,T,Mn(z.cy+z.y11,z.cx+z.x11),Mn(ee.cy+ee.y11,ee.cx+ee.x11),P),g.arc(ee.cx,ee.cy,ue,Mn(ee.y11,ee.x11),Mn(ee.y01,ee.x01),!P))):g.arc(0,0,T,G,F,P):g.lineTo(Ne,ze)}else g.moveTo(0,0);if(g.closePath(),y)return g=null,y+""||null}return v.centroid=function(){var y=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,x=(+s.apply(this,arguments)+ +u.apply(this,arguments))/2-ga/2;return[po(x)*y,sr(x)*y]},v.innerRadius=function(y){return arguments.length?(t="function"==typeof y?y:xt(+y),v):t},v.outerRadius=function(y){return arguments.length?(n="function"==typeof y?y:xt(+y),v):n},v.cornerRadius=function(y){return arguments.length?(r="function"==typeof y?y:xt(+y),v):r},v.padRadius=function(y){return arguments.length?(o=null==y?null:"function"==typeof y?y:xt(+y),v):o},v.startAngle=function(y){return arguments.length?(s="function"==typeof y?y:xt(+y),v):s},v.endAngle=function(y){return arguments.length?(u="function"==typeof y?y:xt(+y),v):u},v.padAngle=function(y){return arguments.length?(h="function"==typeof y?y:xt(+y),v):h},v.context=function(y){return arguments.length?(g=y??null,v):g},v}function Uw(t){this._context=t}function Vh(t){return new Uw(t)}function J0(t){return t[0]}function j0(t){return t[1]}function B0(){var t=J0,n=j0,r=xt(!0),o=null,s=Vh,u=null;function h(g){var v,x,b,y=g.length,T=!1;for(null==o&&(u=s(b=(0,wr.Z)())),v=0;v<=y;++v)!(v<y&&r(x=g[v],v,g))===T&&((T=!T)?u.lineStart():u.lineEnd()),T&&u.point(+t(x,v,g),+n(x,v,g));if(b)return u=null,b+""||null}return h.x=function(g){return arguments.length?(t="function"==typeof g?g:xt(+g),h):t},h.y=function(g){return arguments.length?(n="function"==typeof g?g:xt(+g),h):n},h.defined=function(g){return arguments.length?(r="function"==typeof g?g:xt(!!g),h):r},h.curve=function(g){return arguments.length?(s=g,null!=o&&(u=s(o)),h):s},h.context=function(g){return arguments.length?(null==g?o=u=null:u=s(o=g),h):o},h}function Rw(){var t=J0,n=null,r=xt(0),o=j0,s=xt(!0),u=null,h=Vh,g=null;function v(x){var T,b,A,M,N,Z=x.length,P=!1,R=new Array(Z),F=new Array(Z);for(null==u&&(g=h(N=(0,wr.Z)())),T=0;T<=Z;++T){if(!(T<Z&&s(M=x[T],T,x))===P)if(P=!P)b=T,g.areaStart(),g.lineStart();else{for(g.lineEnd(),g.lineStart(),A=T-1;A>=b;--A)g.point(R[A],F[A]);g.lineEnd(),g.areaEnd()}P&&(R[T]=+t(M,T,x),F[T]=+r(M,T,x),g.point(n?+n(M,T,x):R[T],o?+o(M,T,x):F[T]))}if(N)return g=null,N+""||null}function y(){return B0().defined(s).curve(h).context(u)}return v.x=function(x){return arguments.length?(t="function"==typeof x?x:xt(+x),n=null,v):t},v.x0=function(x){return arguments.length?(t="function"==typeof x?x:xt(+x),v):t},v.x1=function(x){return arguments.length?(n=null==x?null:"function"==typeof x?x:xt(+x),v):n},v.y=function(x){return arguments.length?(r="function"==typeof x?x:xt(+x),o=null,v):r},v.y0=function(x){return arguments.length?(r="function"==typeof x?x:xt(+x),v):r},v.y1=function(x){return arguments.length?(o=null==x?null:"function"==typeof x?x:xt(+x),v):o},v.lineX0=v.lineY0=function(){return y().x(t).y(r)},v.lineY1=function(){return y().x(t).y(o)},v.lineX1=function(){return y().x(n).y(r)},v.defined=function(x){return arguments.length?(s="function"==typeof x?x:xt(!!x),v):s},v.curve=function(x){return arguments.length?(h=x,null!=u&&(g=h(u)),v):h},v.context=function(x){return arguments.length?(null==x?u=g=null:g=h(u=x),v):u},v}function jk(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function Bk(t){return t}function Wk(){var t=Bk,n=jk,r=null,o=xt(0),s=xt(ma),u=xt(0);function h(g){var v,x,T,N,G,y=g.length,b=0,A=new Array(y),Z=new Array(y),M=+o.apply(this,arguments),P=Math.min(ma,Math.max(-ma,s.apply(this,arguments)-M)),R=Math.min(Math.abs(P)/y,u.apply(this,arguments)),F=R*(P<0?-1:1);for(v=0;v<y;++v)(G=Z[A[v]=v]=+t(g[v],v,g))>0&&(b+=G);for(null!=n?A.sort(function(j,Q){return n(Z[j],Z[Q])}):null!=r&&A.sort(function(j,Q){return r(g[j],g[Q])}),v=0,T=b?(P-y*F)/b:0;v<y;++v,M=N)Z[x=A[v]]={data:g[x],index:v,value:G=Z[x],startAngle:M,endAngle:N=M+(G>0?G*T:0)+F,padAngle:R};return Z}return h.value=function(g){return arguments.length?(t="function"==typeof g?g:xt(+g),h):t},h.sortValues=function(g){return arguments.length?(n=g,r=null,h):n},h.sort=function(g){return arguments.length?(r=g,n=null,h):r},h.startAngle=function(g){return arguments.length?(o="function"==typeof g?g:xt(+g),h):o},h.endAngle=function(g){return arguments.length?(s="function"==typeof g?g:xt(+g),h):s},h.padAngle=function(g){return arguments.length?(u="function"==typeof g?g:xt(+g),h):u},h}Uw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Gw=W0(Vh);function Hw(t){this._curve=t}function W0(t){function n(r){return new Hw(t(r))}return n._curve=t,n}function nu(t){var n=t.curve;
vendor: 14,262 bytes, line 1
1return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(r){return arguments.length?n(W0(r)):n()._curve},t}function Vw(){return nu(B0().curve(Gw))}function zw(){var t=Rw().curve(Gw),n=t.curve,r=t.lineX0,o=t.lineX1,s=t.lineY0,u=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return nu(r())},delete t.lineX0,t.lineEndAngle=function(){return nu(o())},delete t.lineX1,t.lineInnerRadius=function(){return nu(s())},delete t.lineY0,t.lineOuterRadius=function(){return nu(u())},delete t.lineY1,t.curve=function(h){return arguments.length?n(W0(h)):n()._curve},t}function iu(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}Hw.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var X0=Array.prototype.slice;function Xk(t){return t.source}function Qk(t){return t.target}function Q0(t){var n=Xk,r=Qk,o=J0,s=j0,u=null;function h(){var g,v=X0.call(arguments),y=n.apply(this,v),x=r.apply(this,v);if(u||(u=g=(0,wr.Z)()),t(u,+o.apply(this,(v[0]=y,v)),+s.apply(this,v),+o.apply(this,(v[0]=x,v)),+s.apply(this,v)),g)return u=null,g+""||null}return h.source=function(g){return arguments.length?(n=g,h):n},h.target=function(g){return arguments.length?(r=g,h):r},h.x=function(g){return arguments.length?(o="function"==typeof g?g:xt(+g),h):o},h.y=function(g){return arguments.length?(s="function"==typeof g?g:xt(+g),h):s},h.context=function(g){return arguments.length?(u=g??null,h):u},h}function Kk(t,n,r,o,s){t.moveTo(n,r),t.bezierCurveTo(n=(n+o)/2,r,n,s,o,s)}function e6(t,n,r,o,s){t.moveTo(n,r),t.bezierCurveTo(n,r=(r+s)/2,o,r,o,s)}function t6(t,n,r,o,s){var u=iu(n,r),h=iu(n,r=(r+s)/2),g=iu(o,r),v=iu(o,s);t.moveTo(u[0],u[1]),t.bezierCurveTo(h[0],h[1],g[0],g[1],v[0],v[1])}function n6(){return Q0(Kk)}function i6(){return Q0(e6)}function r6(){var t=Q0(t6);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const K0={draw:function(t,n){var r=Math.sqrt(n/ga);t.moveTo(r,0),t.arc(0,0,r,0,ma)}},Yw={draw:function(t,n){var r=Math.sqrt(n/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}};var $w=Math.sqrt(1/3),a6=2*$w;const Jw={draw:function(t,n){var r=Math.sqrt(n/a6),o=r*$w;t.moveTo(0,-r),t.lineTo(o,0),t.lineTo(0,r),t.lineTo(-o,0),t.closePath()}};var jw=Math.sin(ga/10)/Math.sin(7*ga/10),s6=Math.sin(ma/10)*jw,l6=-Math.cos(ma/10)*jw;const Bw={draw:function(t,n){var r=Math.sqrt(.8908130915292852*n),o=s6*r,s=l6*r;t.moveTo(0,-r),t.lineTo(o,s);for(var u=1;u<5;++u){var h=ma*u/5,g=Math.cos(h),v=Math.sin(h);t.lineTo(v*r,-g*r),t.lineTo(g*o-v*s,v*o+g*s)}t.closePath()}},Ww={draw:function(t,n){var r=Math.sqrt(n),o=-r/2;t.rect(o,o,r,r)}};var ev=Math.sqrt(3);const Xw={draw:function(t,n){var r=-Math.sqrt(n/(3*ev));t.moveTo(0,2*r),t.lineTo(-ev*r,-r),t.lineTo(ev*r,-r),t.closePath()}};var wi=-.5,Ci=Math.sqrt(3)/2,tv=1/Math.sqrt(12),c6=3*(tv/2+1);const Qw={draw:function(t,n){var r=Math.sqrt(n/c6),o=r/2,s=r*tv,u=o,h=r*tv+r,g=-u,v=h;t.moveTo(o,s),t.lineTo(u,h),t.lineTo(g,v),t.lineTo(wi*o-Ci*s,Ci*o+wi*s),t.lineTo(wi*u-Ci*h,Ci*u+wi*h),t.lineTo(wi*g-Ci*v,Ci*g+wi*v),t.lineTo(wi*o+Ci*s,wi*s-Ci*o),t.lineTo(wi*u+Ci*h,wi*h-Ci*u),t.lineTo(wi*g+Ci*v,wi*v-Ci*g),t.closePath()}};var u6=[K0,Yw,Jw,Ww,Bw,Xw,Qw];function d6(){var t=xt(K0),n=xt(64),r=null;function o(){var s;if(r||(r=s=(0,wr.Z)()),t.apply(this,arguments).draw(r,+n.apply(this,arguments)),s)return r=null,s+""||null}return o.type=function(s){return arguments.length?(t="function"==typeof s?s:xt(s),o):t},o.size=function(s){return arguments.length?(n="function"==typeof s?s:xt(+s),o):n},o.context=function(s){return arguments.length?(r=s??null,o):r},o}function _a(){}function zh(t,n,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+r)/6)}function Yh(t){this._context=t}function f6(t){return new Yh(t)}function Kw(t){this._context=t}function h6(t){return new Kw(t)}function e2(t){this._context=t}function p6(t){return new e2(t)}function t2(t,n){this._basis=new Yh(t),this._beta=n}Yh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:zh(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:zh(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Kw.prototype={areaStart:_a,areaEnd:_a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:zh(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},e2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,o=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(r,o):this._context.moveTo(r,o);break;case 3:this._point=4;default:zh(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},t2.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,r=t.length-1;if(r>0)for(var v,o=t[0],s=n[0],u=t[r]-o,h=n[r]-s,g=-1;++g<=r;)this._basis.point(this._beta*t[g]+(1-this._beta)*(o+(v=g/r)*u),this._beta*n[g]+(1-this._beta)*(s+v*h));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};const g6=function t(n){function r(o){return 1===n?new Yh(o):new t2(o,n)}return r.beta=function(o){return t(+o)},r}(.85);function $h(t,n,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function nv(t,n){this._context=t,this._k=(1-n)/6}nv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:$h(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:$h(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const m6=function t(n){function r(o){return new nv(o,n)}return r.tension=function(o){return t(+o)},r}(0);function iv(t,n){this._context=t,this._k=(1-n)/6}iv.prototype={areaStart:_a,areaEnd:_a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:$h(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const _6=function t(n){function r(o){return new iv(o,n)}return r.tension=function(o){return t(+o)},r}(0);function rv(t,n){this._context=t,this._k=(1-n)/6}rv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:$h(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const v6=function t(n){function r(o){return new rv(o,n)}return r.tension=function(o){return t(+o)},r}(0);function av(t,n,r){var o=t._x1,s=t._y1,u=t._x2,h=t._y2;if(t._l01_a>Dn){var g=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,v=3*t._l01_a*(t._l01_a+t._l12_a);o=(o*g-t._x0*t._l12_2a+t._x2*t._l01_2a)/v,s=(s*g-t._y0*t._l12_2a+t._y2*t._l01_2a)/v}if(t._l23_a>Dn){var y=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,x=3*t._l23_a*(t._l23_a+t._l12_a);u=(u*y+t._x1*t._l23_2a-n*t._l12_2a)/x,h=(h*y+t._y1*t._l23_2a-r*t._l12_2a)/x}t._context.bezierCurveTo(o,s,u,h,t._x2,t._y2)}function n2(t,n){this._context=t,this._alpha=n}n2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var r=this._x2-t,o=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:av(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const y6=function t(n){function r(o){return n?new n2(o,n):new nv(o,0)}return r.alpha=function(o){return t(+o)},r}(.5);function i2(t,n){this._context=t,this._alpha=n}i2.prototype={areaStart:_a,areaEnd:_a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var r=this._x2-t,o=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:av(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const x6=function t(n){function r(o){return n?new i2(o,n):new iv(o,0)}return r.alpha=function(o){return t(+o)},r}(.5);function r2(t,n){this._context=t,this._alpha=n}r2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var r=this._x2-t,o=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+o*o,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:av(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const b6=function t(n){function r(o){return n?new r2(o,n):new rv(o,0)}return r.alpha=function(o){return t(+o)},r}(.5);function a2(t){this._context=t}function w6(t){return new a2(t)}function o2(t){return t<0?-1:1}function s2(t,n,r){var o=t._x1-t._x0,s=n-t._x1,u=(t._y1-t._y0)/(o||s<0&&-0),h=(r-t._y1)/(s||o<0&&-0),g=(u*s+h*o)/(o+s);
vendor: 3,995 bytes, line 1
1return(o2(u)+o2(h))*Math.min(Math.abs(u),Math.abs(h),.5*Math.abs(g))||0}function l2(t,n){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-n)/2:n}function ov(t,n,r){var o=t._x0,u=t._x1,h=t._y1,g=(u-o)/3;t._context.bezierCurveTo(o+g,t._y0+g*n,u-g,h-g*r,u,h)}function Jh(t){this._context=t}function c2(t){this._context=new u2(t)}function u2(t){this._context=t}function C6(t){return new Jh(t)}function T6(t){return new c2(t)}function d2(t){this._context=t}function f2(t){var n,o,r=t.length-1,s=new Array(r),u=new Array(r),h=new Array(r);for(s[0]=0,u[0]=2,h[0]=t[0]+2*t[1],n=1;n<r-1;++n)s[n]=1,u[n]=4,h[n]=4*t[n]+2*t[n+1];for(s[r-1]=2,u[r-1]=7,h[r-1]=8*t[r-1]+t[r],n=1;n<r;++n)u[n]-=o=s[n]/u[n-1],h[n]-=o*h[n-1];for(s[r-1]=h[r-1]/u[r-1],n=r-2;n>=0;--n)s[n]=(h[n]-s[n+1])/u[n];for(u[r-1]=(t[r]+s[r-1])/2,n=0;n<r-1;++n)u[n]=2*t[n+1]-s[n+1];return[s,u]}function S6(t){return new d2(t)}function jh(t,n){this._context=t,this._t=n}function A6(t){return new jh(t,.5)}function k6(t){return new jh(t,0)}function M6(t){return new jh(t,1)}function Os(t,n){if((h=t.length)>1)for(var o,s,h,r=1,u=t[n[0]],g=u.length;r<h;++r)for(s=u,u=t[n[r]],o=0;o<g;++o)u[o][1]+=u[o][0]=isNaN(s[o][1])?s[o][0]:s[o][1]}function Is(t){for(var n=t.length,r=new Array(n);--n>=0;)r[n]=n;return r}function D6(t,n){return t[n]}function Z6(){var t=xt([]),n=Is,r=Os,o=D6;function s(u){var g,T,h=t.apply(this,arguments),v=u.length,y=h.length,x=new Array(y);for(g=0;g<y;++g){for(var M,b=h[g],A=x[g]=new Array(v),Z=0;Z<v;++Z)A[Z]=M=[0,+o(u[Z],b,Z,u)],M.data=u[Z];A.key=b}for(g=0,T=n(x);g<y;++g)x[T[g]].index=g;return r(x,T),x}return s.keys=function(u){return arguments.length?(t="function"==typeof u?u:xt(X0.call(u)),s):t},s.value=function(u){return arguments.length?(o="function"==typeof u?u:xt(+u),s):o},s.order=function(u){return arguments.length?(n=null==u?Is:"function"==typeof u?u:xt(X0.call(u)),s):n},s.offset=function(u){return arguments.length?(r=u??Os,s):r},s}function E6(t,n){if((o=t.length)>0){for(var r,o,h,s=0,u=t[0].length;s<u;++s){for(h=r=0;r<o;++r)h+=t[r][s][1]||0;if(h)for(r=0;r<o;++r)t[r][s][1]/=h}Os(t,n)}}function P6(t,n){if((v=t.length)>0)for(var r,s,u,h,g,v,o=0,y=t[n[0]].length;o<y;++o)for(h=g=0,r=0;r<v;++r)(u=(s=t[n[r]][o])[1]-s[0])>0?(s[0]=h,s[1]=h+=u):u<0?(s[1]=g,s[0]=g+=u):(s[0]=0,s[1]=u)}function L6(t,n){if((s=t.length)>0){for(var s,r=0,o=t[n[0]],u=o.length;r<u;++r){for(var h=0,g=0;h<s;++h)g+=t[h][r][1]||0;o[r][1]+=o[r][0]=-g/2}Os(t,n)}}function N6(t,n){if((h=t.length)>0&&(u=(s=t[n[0]]).length)>0){for(var s,u,h,r=0,o=1;o<u;++o){for(var g=0,v=0,y=0;g<h;++g){for(var x=t[n[g]],T=x[o][1]||0,A=(T-(x[o-1][1]||0))/2,Z=0;Z<g;++Z){var M=t[n[Z]];A+=(M[o][1]||0)-(M[o-1][1]||0)}v+=T,y+=A*T}s[o-1][1]+=s[o-1][0]=r,v&&(r-=y/v)}s[o-1][1]+=s[o-1][0]=r,Os(t,n)}}function h2(t){var n=t.map(O6);return Is(t).sort(function(r,o){return n[r]-n[o]})}function O6(t){for(var s,n=-1,r=0,o=t.length,u=-1/0;++n<o;)(s=+t[n][1])>u&&(u=s,r=n);return r}function p2(t){var n=t.map(g2);return Is(t).sort(function(r,o){return n[r]-n[o]})}function g2(t){for(var s,n=0,r=-1,o=t.length;++r<o;)(s=+t[r][1])&&(n+=s);return n}function I6(t){return p2(t).reverse()}function F6(t){var r,o,n=t.length,s=t.map(g2),u=h2(t),h=0,g=0,v=[],y=[];for(r=0;r<n;++r)o=u[r],h<g?(h+=s[o],v.push(o)):(g+=s[o],y.push(o));return y.reverse().concat(v)}function q6(t){return Is(t).reverse()}a2.prototype={areaStart:_a,areaEnd:_a,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}},Jh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ov(this,this._t0,l2(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var r=NaN;
vendor: 5,026 bytes, line 1
1if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,ov(this,l2(this,r=s2(this,t,n)),r);break;default:ov(this,this._t0,r=s2(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=r}}},(c2.prototype=Object.create(Jh.prototype)).point=function(t,n){Jh.prototype.point.call(this,n,t)},u2.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,r,o,s,u){this._context.bezierCurveTo(n,t,o,r,u,s)}},d2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===r)this._context.lineTo(t[1],n[1]);else for(var o=f2(t),s=f2(n),u=0,h=1;h<r;++u,++h)this._context.bezierCurveTo(o[0][u],s[0][u],o[1][u],s[1][u],t[h],n[h]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}},jh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,n)}}this._x=t,this._y=n}};var m2="%Y-%m-%dT%H:%M:%S.%LZ";const G6=Date.prototype.toISOString?function U6(t){return t.toISOString()}:Ph(m2),z6=+new Date("2000-01-01T00:00:00.000Z")?function H6(t){var n=new Date(t);return isNaN(n)?null:n}:P0(m2);function Y6(t,n,r){var o=new Nt.B7,s=n;return null==n?(o.restart(t,n,r),o):(n=+n,r=null==r?(0,Nt.zO)():+r,o.restart(function u(h){h+=s,o.restart(u,s+=n,r),t(h)},n,r),o)}function _2(t){return function(){return t}}function $6(t){return t[0]}function J6(t){return t[1]}function sv(){this._=null}function Bh(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function ru(t,n){var r=n,o=n.R,s=r.U;s?s.L===r?s.L=o:s.R=o:t._=o,o.U=s,r.U=o,r.R=o.L,r.R&&(r.R.U=r),o.L=r}function au(t,n){var r=n,o=n.L,s=r.U;s?s.L===r?s.L=o:s.R=o:t._=o,o.U=s,r.U=o,r.L=o.R,r.L&&(r.L.U=r),o.R=r}function v2(t){for(;t.L;)t=t.L;return t}sv.prototype={constructor:sv,insert:function(t,n){var r,o,s;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;r=t}else this._?(t=v2(this._),n.P=null,n.N=t,t.P=t.L=n,r=t):(n.P=n.N=null,this._=n,r=null);for(n.L=n.R=null,n.U=r,n.C=!0,t=n;r&&r.C;)r===(o=r.U).L?(s=o.R)&&s.C?(r.C=s.C=!1,o.C=!0,t=o):(t===r.R&&(ru(this,r),r=(t=r).U),r.C=!1,o.C=!0,au(this,o)):(s=o.L)&&s.C?(r.C=s.C=!1,o.C=!0,t=o):(t===r.L&&(au(this,r),r=(t=r).U),r.C=!1,o.C=!0,ru(this,o)),r=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var r,u,h,n=t.U,o=t.L,s=t.R;if(u=o?s?v2(s):o:s,n?n.L===t?n.L=u:n.R=u:this._=u,o&&s?(h=u.C,u.C=t.C,u.L=o,o.U=u,u!==s?(n=u.U,u.U=t.U,n.L=t=u.R,u.R=s,s.U=u):(u.U=n,n=u,t=u.R)):(h=t.C,t=u),t&&(t.U=n),!h){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===n.L){if((r=n.R).C&&(r.C=!1,n.C=!0,ru(this,n),r=n.R),r.L&&r.L.C||r.R&&r.R.C){(!r.R||!r.R.C)&&(r.L.C=!1,r.C=!0,au(this,r),r=n.R),r.C=n.C,n.C=r.R.C=!1,ru(this,n),t=this._;break}}else if((r=n.L).C&&(r.C=!1,n.C=!0,au(this,n),r=n.L),r.L&&r.L.C||r.R&&r.R.C){(!r.L||!r.L.C)&&(r.R.C=!1,r.C=!0,ru(this,r),r=n.L),r.C=n.C,n.C=r.L.C=!1,au(this,n),t=this._;break}r.C=!0,t=n,n=n.U}while(!t.C);t&&(t.C=!1)}}};const y2=sv;function ou(t,n,r,o){var s=[null,null],u=Zn.push(s)-1;return s.left=t,s.right=n,r&&Wh(s,t,n,r),o&&Wh(s,n,t,o),ci[t.index].halfedges.push(u),ci[n.index].halfedges.push(u),s}function su(t,n,r){var o=[n,r];return o.left=t,o}function Wh(t,n,r,o){t[0]||t[1]?t.left===r?t[1]=o:t[0]=o:(t[0]=o,t.left=n,t.right=r)}function j6(t,n,r,o,s){var M,u=t[0],h=t[1],g=u[0],v=u[1],T=0,b=1,A=h[0]-g,Z=h[1]-v;if(M=n-g,A||!(M>0)){if(M/=A,A<0){if(M<T)return;M<b&&(b=M)}else if(A>0){if(M>b)return;M>T&&(T=M)}if(M=o-g,A||!(M<0)){if(M/=A,A<0){if(M>b)return;M>T&&(T=M)}else if(A>0){if(M<T)return;M<b&&(b=M)}if(M=r-v,Z||!(M>0)){if(M/=Z,Z<0){if(M<T)return;M<b&&(b=M)}else if(Z>0){if(M>b)return;M>T&&(T=M)}if(M=s-v,Z||!(M<0)){if(M/=Z,Z<0){if(M>b)return;M>T&&(T=M)}else if(Z>0){if(M<T)return;M<b&&(b=M)}return!(T>0)&&!(b<1)||(T>0&&(t[0]=[g+T*A,v+T*Z]),b<1&&(t[1]=[g+b*A,v+b*Z])),!0}}}}}function B6(t,n,r,o,s){var u=t[1];if(u)return!0;var M,P,h=t[0],g=t.left,v=t.right,y=g[0],x=g[1],T=v[0],b=v[1],A=(y+T)/2;
vendor: 4,633 bytes, line 1
1if(b===x){if(A<n||A>=o)return;if(y>T){if(h){if(h[1]>=s)return}else h=[A,r];u=[A,s]}else{if(h){if(h[1]<r)return}else h=[A,s];u=[A,r]}}else if(P=(x+b)/2-(M=(y-T)/(b-x))*A,M<-1||M>1)if(y>T){if(h){if(h[1]>=s)return}else h=[(r-P)/M,r];u=[(s-P)/M,s]}else{if(h){if(h[1]<r)return}else h=[(s-P)/M,s];u=[(r-P)/M,r]}else if(x<b){if(h){if(h[0]>=o)return}else h=[n,M*n+P];u=[o,M*o+P]}else{if(h){if(h[0]<n)return}else h=[o,M*o+P];u=[n,M*n+P]}return t[0]=h,t[1]=u,!0}function Q6(t,n){var r=t.site,o=n.left,s=n.right;return r===s&&(s=o,o=r),s?Math.atan2(s[1]-o[1],s[0]-o[0]):(r===o?(o=n[1],s=n[0]):(o=n[0],s=n[1]),Math.atan2(o[0]-s[0],s[1]-o[1]))}function x2(t,n){return n[+(n.left!==t.site)]}function K6(t,n){return n[+(n.left===t.site)]}var lv,b2=[];function nM(){Bh(this),this.x=this.y=this.arc=this.site=this.cy=null}function Fs(t){var n=t.P,r=t.N;if(n&&r){var o=n.site,s=t.site,u=r.site;if(o!==u){var h=s[0],g=s[1],v=o[0]-h,y=o[1]-g,x=u[0]-h,T=u[1]-g,b=2*(v*T-y*x);if(!(b>=-sM)){var A=v*v+y*y,Z=x*x+T*T,M=(T*A-y*Z)/b,P=(v*Z-x*A)/b,N=b2.pop()||new nM;N.arc=t,N.site=s,N.x=M+h,N.y=(N.cy=P+g)+Math.sqrt(M*M+P*P),t.circle=N;for(var R=null,F=lu._;F;)if(N.y<F.y||N.y===F.y&&N.x<=F.x){if(!F.L){R=F.P;break}F=F.L}else{if(!F.R){R=F;break}F=F.R}lu.insert(R,N),R||(lv=N)}}}}function qs(t){var n=t.circle;n&&(n.P||(lv=n.N),lu.remove(n),b2.push(n),Bh(n),t.circle=null)}var w2=[];function iM(){Bh(this),this.edge=this.site=this.circle=null}function C2(t){var n=w2.pop()||new iM;return n.site=t,n}function cv(t){qs(t),Us.remove(t),w2.push(t),Bh(t)}function rM(t){var n=t.circle,r=n.x,o=n.cy,s=[r,o],u=t.P,h=t.N,g=[t];cv(t);for(var v=u;v.circle&&Math.abs(r-v.circle.x)<It&&Math.abs(o-v.circle.cy)<It;)u=v.P,g.unshift(v),cv(v),v=u;g.unshift(v),qs(v);for(var y=h;y.circle&&Math.abs(r-y.circle.x)<It&&Math.abs(o-y.circle.cy)<It;)h=y.N,g.push(y),cv(y),y=h;g.push(y),qs(y);var T,x=g.length;for(T=1;T<x;++T)Wh((y=g[T]).edge,(v=g[T-1]).site,y.site,s);(y=g[x-1]).edge=ou((v=g[0]).site,y.site,null,s),Fs(v),Fs(y)}function aM(t){for(var o,s,u,h,n=t[0],r=t[1],g=Us._;g;)if((u=T2(g,r)-n)>It)g=g.L;else{if(!((h=n-oM(g,r))>It)){u>-It?(o=g.P,s=g):h>-It?(o=g,s=g.N):o=s=g;break}if(!g.R){o=g;break}g=g.R}!function X6(t){ci[t.index]={site:t,halfedges:[]}}(t);var v=C2(t);if(Us.insert(o,v),o||s){if(o===s)return qs(o),s=C2(o.site),Us.insert(v,s),v.edge=s.edge=ou(o.site,v.site),Fs(o),void Fs(s);if(!s)return void(v.edge=ou(o.site,v.site));qs(o),qs(s);var y=o.site,x=y[0],T=y[1],b=t[0]-x,A=t[1]-T,Z=s.site,M=Z[0]-x,P=Z[1]-T,N=2*(b*P-A*M),R=b*b+A*A,F=M*M+P*P,G=[(P*R-A*F)/N+x,(b*F-M*R)/N+T];Wh(s.edge,y,Z,G),v.edge=ou(y,t,null,G),s.edge=ou(t,Z,null,G),Fs(o),Fs(s)}}function T2(t,n){var r=t.site,o=r[0],s=r[1],u=s-n;if(!u)return o;var h=t.P;if(!h)return-1/0;var g=(r=h.site)[0],v=r[1],y=v-n;if(!y)return g;var x=g-o,T=1/u-1/y,b=x/y;return T?(-b+Math.sqrt(b*b-2*T*(x*x/(-2*y)-v+y/2+s-u/2)))/T+o:(o+g)/2}function oM(t,n){var r=t.N;if(r)return T2(r,n);var o=t.site;return o[1]===n?o[0]:1/0}var Us,ci,lu,Zn,It=1e-6,sM=1e-12;function lM(t,n,r){return(t[0]-r[0])*(n[1]-t[1])-(t[0]-n[0])*(r[1]-t[1])}function cM(t,n){return n[1]-t[1]||n[0]-t[0]}function uv(t,n){var o,s,u,r=t.sort(cM).pop();for(Zn=[],ci=new Array(t.length),Us=new y2,lu=new y2;;)if(u=lv,r&&(!u||r[1]<u.y||r[1]===u.y&&r[0]<u.x))(r[0]!==o||r[1]!==s)&&(aM(r),o=r[0],s=r[1]),r=t.pop();else{if(!u)break;rM(u.arc)}if(function eM(){for(var r,o,s,u,t=0,n=ci.length;t<n;++t)if((r=ci[t])&&(u=(o=r.halfedges).length)){var h=new Array(u),g=new Array(u);for(s=0;s<u;++s)h[s]=s,g[s]=Q6(r,Zn[o[s]]);for(h.sort(function(v,y){return g[y]-g[v]}),s=0;s<u;++s)g[s]=o[h[s]];for(s=0;s<u;++s)o[s]=g[s]}}(),n){var h=+n[0][0],g=+n[0][1],v=+n[1][0],y=+n[1][1];(function W6(t,n,r,o){for(var u,s=Zn.length;s--;)B6(u=Zn[s],t,n,r,o)&&j6(u,t,n,r,o)&&(Math.abs(u[0][0]-u[1][0])>It||Math.abs(u[0][1]-u[1][1])>It)||delete Zn[s]})(h,g,v,y),function tM(t,n,r,o){var u,h,g,v,y,x,T,b,A,Z,M,P,s=ci.length,N=!0;for(u=0;u<s;++u)if(h=ci[u]){for(g=h.site,v=(y=h.halfedges).length;v--;)Zn[y[v]]||y.splice(v,1);for(v=0,x=y.length;v<x;)M=(Z=K6(h,Zn[y[v]]))[0],P=Z[1],b=(T=x2(h,Zn[y[++v%x]]))[0],A=T[1],(Math.abs(M-b)>It||Math.abs(P-A)>It)&&(y.splice(v,0,Zn.push(su(g,Z,Math.abs(M-t)<It&&o-P>It?[t,Math.abs(b-t)<It?A:o]:Math.abs(P-o)<It&&r-M>It?[Math.abs(A-o)<It?b:r,o]:Math.abs(M-r)<It&&P-n>It?[r,Math.abs(b-r)<It?A:n]:Math.abs(P-n)<It&&M-t>It?[Math.abs(A-n)<It?b:t,n]:null))-1),++x);x&&(N=!1)}if(N){var R,F,G,j=1/0;for(u=0,N=null;u<s;++u)(h=ci[u])&&(G=(R=(g=h.site)[0]-t)*R+(F=g[1]-n)*F)<j&&(j=G,N=h);if(N){var Q=[t,n],X=[t,o],de=[r,o],se=[r,n];N.halfedges.push(Zn.push(su(g=N.site,Q,X))-1,Zn.push(su(g,X,de))-1,Zn.push(su(g,de,se))-1,Zn.push(su(g,se,Q))-1)}}for(u=0;
vendor: 1,640 bytes, line 1
1u<s;++u)(h=ci[u])&&(h.halfedges.length||delete ci[u])}(h,g,v,y)}this.edges=Zn,this.cells=ci,Us=lu=Zn=ci=null}function uM(){var t=$6,n=J6,r=null;function o(s){return new uv(s.map(function(u,h){var g=[Math.round(t(u,h,s)/It)*It,Math.round(n(u,h,s)/It)*It];return g.index=h,g.data=u,g}),r)}return o.polygons=function(s){return o(s).polygons()},o.links=function(s){return o(s).links()},o.triangles=function(s){return o(s).triangles()},o.x=function(s){return arguments.length?(t="function"==typeof s?s:_2(+s),o):t},o.y=function(s){return arguments.length?(n="function"==typeof s?s:_2(+s),o):n},o.extent=function(s){return arguments.length?(r=null==s?null:[[+s[0][0],+s[0][1]],[+s[1][0],+s[1][1]]],o):r&&[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},o.size=function(s){return arguments.length?(r=null==s?null:[[0,0],[+s[0],+s[1]]],o):r&&[r[1][0]-r[0][0],r[1][1]-r[0][1]]},o}uv.prototype={constructor:uv,polygons:function(){var t=this.edges;return this.cells.map(function(n){var r=n.halfedges.map(function(o){return x2(n,t[o])});return r.data=n.site.data,r})},triangles:function(){var t=[],n=this.edges;return this.cells.forEach(function(r,o){if(g=(u=r.halfedges).length)for(var u,g,v,s=r.site,h=-1,y=n[u[g-1]],x=y.left===s?y.right:y.left;++h<g;)v=x,x=(y=n[u[h]]).left===s?y.right:y.left,v&&x&&o<v.index&&o<x.index&&lM(s,v,x)<0&&t.push([s.data,v.data,x.data])}),t},links:function(){return this.edges.filter(function(t){return t.right}).map(function(t){return{source:t.left.data,target:t.right.data}})},find:function(t,n,r){for(var s,g,o=this,u=o._found||0,h=o.cells.length;!(g=o.cells[u]);)if(++u>=h)return null;var v=t-g.site[0],y=n-g.site[1],x=v*v+y*y;
1do{g=o.cells[s=u],u=null,g.halfedges.forEach(function(T){var b=o.edges[T],A=b.left;if(A!==g.site&&A||(A=b.right)){var Z=t-A[0],M=n-A[1],P=Z*Z+M*M;P<x&&(x=P,u=A.index)}})}while(null!==u);return o._found=s,null==r||x<=r*r?g.site:null}};var cu=Math.SQRT2,dv=2,S2=4,dM=1e-12;function A2(t){return((t=Math.exp(t))+1/t)/2}function pM(t,n){var T,b,r=t[0],o=t[1],s=t[2],g=n[2],v=n[0]-r,y=n[1]-o,x=v*v+y*y;if(x<dM)b=Math.log(g/s)/cu,T=function(R){return[r+R*v,o+R*y,s*Math.exp(cu*R*b)]};else{var A=Math.sqrt(x),Z=(g*g-s*s+S2*x)/(2*s*dv*A),M=(g*g-s*s-S2*x)/(2*g*dv*A),P=Math.log(Math.sqrt(Z*Z+1)-Z),N=Math.log(Math.sqrt(M*M+1)-M);b=(N-P)/cu,T=function(R){var F=R*b,G=A2(P),j=s/(dv*A)*(G*function hM(t){return((t=Math.exp(2*t))-1)/(t+1)}(cu*F+P)-function fM(t){return((t=Math.exp(t))-1/t)/2}(P));return[r+j*v,o+j*y,s*G/A2(cu*F+P)]}}return T.duration=1e3*b,T}var k2={},Ft=null;function mM(t,n,r){return t=M2(t,n,r),function(o){var s=o.relatedTarget;(!s||s!==this&&!(8&s.compareDocumentPosition(this)))&&t.call(this,o)}}function M2(t,n,r){return function(o){var s=Ft;Ft=o;try{t.call(this,this.__data__,n,r)}finally{Ft=s}}}function vM(t){return function(){var n=this.__on;if(n){for(var u,r=0,o=-1,s=n.length;r<s;++r)u=n[r],t.type&&u.type!==t.type||u.name!==t.name?n[++o]=u:this.removeEventListener(u.type,u.listener,u.capture);++o?n.length=o:delete this.__on}}}function yM(t,n,r){var o=k2.hasOwnProperty(t.type)?mM:M2;return function(s,u,h){var v,g=this.__on,y=o(n,u,h);if(g)for(var x=0,T=g.length;x<T;++x)if((v=g[x]).type===t.type&&v.name===t.name)return this.removeEventListener(v.type,v.listener,v.capture),this.addEventListener(v.type,v.listener=y,v.capture=r),void(v.value=n);this.addEventListener(t.type,y,r),v={type:t.type,name:t.name,value:n,listener:y,capture:r},g?g.push(v):this.__on=[v]}}function D2(){for(var n,t=Ft;n=t.sourceEvent;)t=n;return t}function Z2(t,n){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=n.clientX,o.y=n.clientY,[(o=o.matrixTransform(t.getScreenCTM().inverse())).x,o.y]}var s=t.getBoundingClientRect();return[n.clientX-s.left-t.clientLeft,n.clientY-s.top-t.clientTop]}function Xh(t){var n=D2();return n.changedTouches&&(n=n.changedTouches[0]),Z2(t,n)}function wM(){}function fv(t){return null==t?wM:function(){return this.querySelector(t)}}function TM(){return[]}function E2(t){return null==t?TM:function(){return this.querySelectorAll(t)}}function P2(t){return function(){return this.matches(t)}}function L2(t){return new Array(t.length)}function Qh(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}typeof document<"u"&&("onmouseenter"in document.documentElement||(k2={mouseenter:"mouseover",mouseleave:"mou
1seout"})),Qh.prototype={constructor:Qh,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function DM(t,n,r,o,s,u){for(var g,h=0,v=n.length,y=u.length;h<y;++h)(g=n[h])?(g.__data__=u[h],o[h]=g):r[h]=new Qh(t,u[h]);for(;h<v;++h)(g=n[h])&&(s[h]=g)}function ZM(t,n,r,o,s,u,h){var g,v,A,y={},x=n.length,T=u.length,b=new Array(x);for(g=0;g<x;++g)(v=n[g])&&(b[g]=A="$"+h.call(v,v.__data__,g,n),A in y?s[g]=v:y[A]=v);for(g=0;g<T;++g)(v=y[A="$"+h.call(t,u[g],g,u)])?(o[g]=v,v.__data__=u[g],y[A]=null):r[g]=new Qh(t,u[g]);for(g=0;g<x;++g)(v=n[g])&&y[b[g]]===v&&(s[g]=v)}function FM(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}var hv="http://www.w3.org/1999/xhtml";const O2={svg:"http://www.w3.org/2000/svg",xhtml:hv,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Kh(t){var n=t+="",r=n.indexOf(":");return r>=0&&"xmlns"!==(n=t.slice(0,r))&&(t=t.slice(r+1)),O2.hasOwnProperty(n)?{space:O2[n],local:t}:t}function zM(t){return function(){this.removeAttribute(t)}}function YM(t){return function(){this.removeAttributeNS(t.space,t.local)}}function $M(t,n){return function(){this.setAttribute(t,n)}}function JM(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function jM(t,n){return function(){var r=n.apply(this,arguments);null==r?this.removeAttribute(t):this.setAttribute(t,r)}}function BM(t,n){return function(){var r=n.apply(this,arguments);null==r?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function I2(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function XM(t){return function(){this.style.removeProperty(t)}}function QM(t,n,r){return function(){this.style.setProperty(t,n,r)}}function KM(t,n,r){return function(){var o=n.apply(this,arguments);null==o?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function Rs(t,n){return t.style.getPropertyValue(n)||I2(t).getComputedStyle(t,null).getPropertyValue(n)}function tD(t){return function(){delete this[t]}}function nD(t,n){return function(){this[t]=n}}function iD(t,n){return function(){var r=n.apply(this,arguments);null==r?delete this[t]:this[t]=r}}function F2(t){return t.trim().split(/^|\s+/)}function pv(t){return t.classList||new q2(t)}function q2(t){this._node=t,this._names=F2(t.getAttribute("class")||"")}function U2(t,n){for(var r=pv(t),o=-1,s=n.length;++o<s;)r.add(n[o])}function R2(t,n){for(var r=pv(t),o=-1,s=n.length;++o<s;)r.remove(n[o])}function aD(t){return function(){U2(this,t)}}function oD(t){return function(){R2(this,t)}}function sD(t,n){return function(){(n.apply(this,arguments)?U2:R2)(this,t)}}function cD(){this.textContent=""}function uD(t){return function(){this.textContent=t}}function dD(t){return function(){var n=t.apply(this,arguments);this.textContent=n??""}}function hD(){this.innerHTML=""}function pD(t){return function(){this.innerHTML=t}}function gD(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n??""}}function _D(){this.nextSibling&&this.parentNode.appendChild(this)}function yD(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function bD(t){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===hv&&n.documentElement.namespaceURI===hv?n.createElement(t):n.createElementNS(r,t)}}function wD(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function G2(t){var n=Kh(t);return(n.local?wD:bD)(n)}function TD(){return null}function AD(){var t=this.parentNode;t&&t.removeChild(this)}function MD(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function DD(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function H2(t,n,r){var o=I2(t),s=o.CustomEvent;"function"==typeof s?s=new s(n,r):(s=o.document.createEvent("Event"),r?(s.initEvent(n,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(n,!1,!1)),t.dis
1patchEvent(s)}function PD(t,n){return function(){return H2(this,t,n)}}function LD(t,n){return function(){return H2(this,t,n.apply(this,arguments))}}q2.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var V2=[null];function ui(t,n){this._groups=t,this._parents=n}function z2(){return new ui([[document.documentElement]],V2)}ui.prototype=z2.prototype={constructor:ui,select:function CM(t){"function"!=typeof t&&(t=fv(t));for(var n=this._groups,r=n.length,o=new Array(r),s=0;s<r;++s)for(var v,y,u=n[s],h=u.length,g=o[s]=new Array(h),x=0;x<h;++x)(v=u[x])&&(y=t.call(v,v.__data__,x,u))&&("__data__"in v&&(y.__data__=v.__data__),g[x]=y);return new ui(o,this._parents)},selectAll:function SM(t){"function"!=typeof t&&(t=E2(t));for(var n=this._groups,r=n.length,o=[],s=[],u=0;u<r;++u)for(var v,h=n[u],g=h.length,y=0;y<g;++y)(v=h[y])&&(o.push(t.call(v,v.__data__,y,h)),s.push(v));return new ui(o,s)},filter:function AM(t){"function"!=typeof t&&(t=P2(t));for(var n=this._groups,r=n.length,o=new Array(r),s=0;s<r;++s)for(var v,u=n[s],h=u.length,g=o[s]=[],y=0;y<h;++y)(v=u[y])&&t.call(v,v.__data__,y,u)&&g.push(v);return new ui(o,this._parents)},data:function EM(t,n){if(!t)return A=new Array(this.size()),y=-1,this.each(function(Q){A[++y]=Q}),A;var r=n?ZM:DM,o=this._parents,s=this._groups;"function"!=typeof t&&(t=function MM(t){return function(){return t}}(t));for(var u=s.length,h=new Array(u),g=new Array(u),v=new Array(u),y=0;y<u;++y){var x=o[y],T=s[y],b=T.length,A=t.call(x,x&&x.__data__,y,o),Z=A.length,M=g[y]=new Array(Z),P=h[y]=new Array(Z);r(x,T,M,P,v[y]=new Array(b),A,n);for(var G,j,R=0,F=0;R<Z;++R)if(G=M[R]){for(R>=F&&(F=R+1);!(j=P[F])&&++F<Z;);G._next=j||null}}return(h=new ui(h,o))._enter=g,h._exit=v,h},enter:function kM(){return new ui(this._enter||this._groups.map(L2),this._parents)},exit:function PM(){return new ui(this._exit||this._groups.map(L2),this._parents)},join:function LM(t,n,r){var o=this.enter(),s=this,u=this.exit();return o="function"==typeof t?t(o):o.append(t+""),null!=n&&(s=n(s)),null==r?u.remove():r(u),o&&s?o.merge(s).order():s},merge:function NM(t){for(var n=this._groups,r=t._groups,o=n.length,u=Math.min(o,r.length),h=new Array(o),g=0;g<u;++g)for(var b,v=n[g],y=r[g],x=v.length,T=h[g]=new Array(x),A=0;A<x;++A)(b=v[A]||y[A])&&(T[A]=b);for(;g<o;++g)h[g]=n[g];return new ui(h,this._parents)},order:function OM(){for(var t=this._groups,n=-1,r=t.length;++n<r;)for(var h,o=t[n],s=o.length-1,u=o[s];--s>=0;)(h=o[s])&&(u&&4^h.compareDocumentPosition(u)&&u.parentNode.insertBefore(h,u),u=h);return this},sort:function IM(t){function n(T,b){return T&&b?t(T.__data__,b.__data__):!T-!b}t||(t=FM);for(var r=this._groups,o=r.length,s=new Array(o),u=0;u<o;++u){for(var y,h=r[u],g=h.length,v=s[u]=new Array(g),x=0;x<g;++x)(y=h[x])&&(v[x]=y);v.sort(n)}return new ui(s,this._parents).order()},call:function qM(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function UM(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t},node:function RM(){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],s=0,u=o.length;s<u;++s){var h=o[s];if(h)return h}return null},size:function GM(){var t=0;return this.each(function(){++t}),t},empty:function HM(){return!this.node()},each:function VM(t){for(var n=this._groups,r=0,o=n.length;r<o;++r)for(var g,s=n[r],u=0,h=s.length;u<h;++u)(g=s[u])&&t.call(g,g.__data__,u,s);return this},attr:function WM(t,n){var r=Kh(t);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((null==n?r.local?YM:zM:"function"==typeof n?r.local?BM:jM:r.local?JM:$M)(r,n))},style:function eD(t,n,r){return arguments.length>1?this.each((null==n?XM:"function"==typeof n?KM:QM)(t,n,r??"")):Rs(this.node(),t)},property:function rD(t,n){return arguments.length>1?this.each((null==n?tD:"function"==typeof n?iD:nD)(t,n)):this.node()[t]},classed:function lD(t,n){var r=F2(t+"");
1if(arguments.length<2){for(var o=pv(this.node()),s=-1,u=r.length;++s<u;)if(!o.contains(r[s]))return!1;return!0}return this.each(("function"==typeof n?sD:n?aD:oD)(r,n))},text:function fD(t){return arguments.length?this.each(null==t?cD:("function"==typeof t?dD:uD)(t)):this.node().textContent},html:function mD(t){return arguments.length?this.each(null==t?hD:("function"==typeof t?gD:pD)(t)):this.node().innerHTML},raise:function vD(){return this.each(_D)},lower:function xD(){return this.each(yD)},append:function CD(t){var n="function"==typeof t?t:G2(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function SD(t,n){var r="function"==typeof t?t:G2(t),o=null==n?TD:"function"==typeof n?n:fv(n);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})},remove:function kD(){return this.each(AD)},clone:function ZD(t){return this.select(t?DD:MD)},datum:function ED(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function xM(t,n,r){var s,h,o=function _M(t){return t.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");return o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),{type:n,name:r}})}(t+""),u=o.length;if(!(arguments.length<2)){for(g=n?yM:vM,null==r&&(r=!1),s=0;s<u;++s)this.each(g(o[s],n,r));return this}var g=this.node().__on;if(g)for(var x,v=0,y=g.length;v<y;++v)for(s=0,x=g[v];s<u;++s)if((h=o[s]).type===x.type&&h.name===x.name)return x.value},dispatch:function ND(t,n){return this.each(("function"==typeof n?LD:PD)(t,n))}};const uu=z2;function ep(t){return"string"==typeof t?new ui([[document.querySelector(t)]],[document.documentElement]):new ui([[t]],V2)}function Y2(t,n,r){arguments.length<3&&(r=n,n=D2().changedTouches);for(var u,o=0,s=n?n.length:0;o<s;++o)if((u=n[o]).identifier===r)return Z2(t,u);return null}var OD=(0,gn.Z)("start","end","cancel","interrupt"),ID=[],$2=0,gv=2,tp=3,mv=5,np=6;function ip(t,n,r,o,s,u){var h=t.__transition;if(h){if(r in h)return}else t.__transition={};!function FD(t,n,r){var s,o=t.__transition;function h(y){var x,T,b,A;if(1!==r.state)return v();for(x in o)if((A=o[x]).name===r.name){if(A.state===tp)return(0,Yr.Z)(h);4===A.state?(A.state=np,A.timer.stop(),A.on.call("interrupt",t,t.__data__,A.index,A.group),delete o[x]):+x<n&&(A.state=np,A.timer.stop(),A.on.call("cancel",t,t.__data__,A.index,A.group),delete o[x])}if((0,Yr.Z)(function(){r.state===tp&&(r.state=4,r.timer.restart(g,r.delay,r.time),g(y))}),r.state=gv,r.on.call("start",t,t.__data__,r.index,r.group),r.state===gv){for(r.state=tp,s=new Array(b=r.tween.length),x=0,T=-1;x<b;++x)(A=r.tween[x].value.call(t,t.__data__,r.index,r.group))&&(s[++T]=A);s.length=T+1}}function g(y){for(var x=y<r.duration?r.ease.call(null,y/r.duration):(r.timer.restart(v),r.state=mv,1),T=-1,b=s.length;++T<b;)s[T].call(t,x);r.state===mv&&(r.on.call("end",t,t.__data__,r.index,r.group),v())}function v(){for(var y in r.state=np,r.timer.stop(),delete o[n],o)return;delete t.__transition}o[n]=r,r.timer=(0,Nt.HT)(function u(y){r.state=1,r.timer.restart(h,r.delay,r.time),r.delay<=y&&h(y-r.delay)},0,r.time)}(t,r,{name:n,index:o,group:s,on:OD,tween:ID,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:$2})}function _v(t,n){var r=Fi(t,n);if(r.state>$2)throw new Error("too late; already scheduled");return r}function Lr(t,n){var r=Fi(t,n);if(r.state>tp)throw new Error("too late; already running");return r}function Fi(t,n){var r=t.__transition;if(!r||!(r=r[n]))throw new Error("transition not found");return r}function rp(t,n){var o,s,h,r=t.__transition,u=!0;if(r){for(h in n=null==n?null:n+"",r)(o=r[h]).name===n?(s=o.state>gv&&o.state<mv,o.state=np,o.timer.stop(),o.on.call(s?"interrupt":"cancel",t,t.__data__,o.index,o.group),delete r[h]):u=!1;u&&delete t.__transition}}function va(t,n){return t=+t,n=+n,function(r){return t*(1-r)+n*r}}var du,yv,X2,ap,B2=180/Math.PI,vv={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function W2(t,n,r,o,s,u){var h,g,v;return(h=Math.sqrt(t*t+n*n))&&(t/=h,n/=h),(v=t*r+n*o)&&(r-=t*v,o-=n*v),(g=Math.sqrt(r*r+o*o))&&(r/=g,o/=g,v/=g),t*o<n*r&&(t=-t,n=-n,v=-v,h=-h),{translateX:s,translateY:u,rotate:Math.atan2(n,t)*B2,skewX:Math.atan(v)*B2,scaleX:h,scaleY:g}}function Q2(t,n,r,o){function s(y){return y.length?y.pop()+" ":""}return function(y,x){var T=[],b=[];return y=t(y),x=t(x),function u(y,x,T,b,A,Z){if(y!==T||x!==b){var M=A.push("translate(",null,n,null,r);Z.push({i:M-4,x:va(y,T)},{i:M-2,x:va(x,b)})}else(T||b)&&A.push("translate("+T+n+b+r)}(y.translateX,y.translateY,x.translateX,x.translateY,T,b),function h(y,x,T,b){y!==x?(y-x>180?x+=360:x-y>180&&(y+=360),b.push({i:T.push(s(T)+"rotate(",null,o)-2,x:va(y,x)})):x&&T.push(s(T)+"rotate("+x+o)}(y.rotate,x.rotate,T,b),function g(y,x,T,b){y!==x?b.push({i:T.push(s(T)+"skewX(",
vendor: 6,192 bytes, line 1
1null,o)-2,x:va(y,x)}):x&&T.push(s(T)+"skewX("+x+o)}(y.skewX,x.skewX,T,b),function v(y,x,T,b,A,Z){if(y!==T||x!==b){var M=A.push(s(A)+"scale(",null,",",null,")");Z.push({i:M-4,x:va(y,T)},{i:M-2,x:va(x,b)})}else(1!==T||1!==b)&&A.push(s(A)+"scale("+T+","+b+")")}(y.scaleX,y.scaleY,x.scaleX,x.scaleY,T,b),y=x=null,function(A){for(var P,Z=-1,M=b.length;++Z<M;)T[(P=b[Z]).i]=P.x(A);return T.join("")}}}var GD=Q2(function UD(t){return"none"===t?vv:(du||(du=document.createElement("DIV"),yv=document.documentElement,X2=document.defaultView),du.style.transform=t,t=X2.getComputedStyle(yv.appendChild(du),null).getPropertyValue("transform"),yv.removeChild(du),W2(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),HD=Q2(function RD(t){return null!=t&&(ap||(ap=document.createElementNS("http://www.w3.org/2000/svg","g")),ap.setAttribute("transform",t),t=ap.transform.baseVal.consolidate())?W2((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):vv},", ",")",")");function VD(t,n){var r,o;return function(){var s=Lr(this,t),u=s.tween;if(u!==r)for(var h=0,g=(o=r=u).length;h<g;++h)if(o[h].name===n){(o=o.slice()).splice(h,1);break}s.tween=o}}function zD(t,n,r){var o,s;if("function"!=typeof r)throw new Error;return function(){var u=Lr(this,t),h=u.tween;if(h!==o){s=(o=h).slice();for(var g={name:n,value:r},v=0,y=s.length;v<y;++v)if(s[v].name===n){s[v]=g;break}v===y&&s.push(g)}u.tween=s}}function xv(t,n,r){var o=t._id;return t.each(function(){var s=Lr(this,o);(s.value||(s.value={}))[n]=r.apply(this,arguments)}),function(s){return Fi(s,o).value[n]}}function bv(t,n,r){t.prototype=n.prototype=r,r.constructor=t}function K2(t,n){var r=Object.create(t.prototype);for(var o in n)r[o]=n[o];return r}function fu(){}var op=1/.7,Gs="\\s*([+-]?\\d+)\\s*",pu="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",lr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$D=/^#([0-9a-f]{3,8})$/,JD=new RegExp("^rgb\\("+[Gs,Gs,Gs]+"\\)$"),jD=new RegExp("^rgb\\("+[lr,lr,lr]+"\\)$"),BD=new RegExp("^rgba\\("+[Gs,Gs,Gs,pu]+"\\)$"),WD=new RegExp("^rgba\\("+[lr,lr,lr,pu]+"\\)$"),XD=new RegExp("^hsl\\("+[pu,lr,lr]+"\\)$"),QD=new RegExp("^hsla\\("+[pu,lr,lr,pu]+"\\)$"),eC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function tC(){return this.rgb().formatHex()}function nC(){return this.rgb().formatRgb()}function gu(t){var n,r;return t=(t+"").trim().toLowerCase(),(n=$D.exec(t))?(r=n[1].length,n=parseInt(n[1],16),6===r?iC(n):3===r?new di(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===r?sp(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===r?sp(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=JD.exec(t))?new di(n[1],n[2],n[3],1):(n=jD.exec(t))?new di(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=BD.exec(t))?sp(n[1],n[2],n[3],n[4]):(n=WD.exec(t))?sp(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=XD.exec(t))?oC(n[1],n[2]/100,n[3]/100,1):(n=QD.exec(t))?oC(n[1],n[2]/100,n[3]/100,n[4]):eC.hasOwnProperty(t)?iC(eC[t]):"transparent"===t?new di(NaN,NaN,NaN,0):null}function iC(t){return new di(t>>16&255,t>>8&255,255&t,1)}function sp(t,n,r,o){return o<=0&&(t=n=r=NaN),new di(t,n,r,o)}function lp(t,n,r,o){return 1===arguments.length?function e4(t){return t instanceof fu||(t=gu(t)),t?new di((t=t.rgb()).r,t.g,t.b,t.opacity):new di}(t):new di(t,n,r,o??1)}function di(t,n,r,o){this.r=+t,this.g=+n,this.b=+r,this.opacity=+o}function rC(){return"#"+wv(this.r)+wv(this.g)+wv(this.b)}function aC(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||
vendor: 6,442 bytes, line 1
10))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function wv(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function oC(t,n,r,o){return o<=0?t=n=r=NaN:r<=0||r>=1?t=n=NaN:n<=0&&(t=NaN),new cr(t,n,r,o)}function sC(t){if(t instanceof cr)return new cr(t.h,t.s,t.l,t.opacity);if(t instanceof fu||(t=gu(t)),!t)return new cr;if(t instanceof cr)return t;var n=(t=t.rgb()).r/255,r=t.g/255,o=t.b/255,s=Math.min(n,r,o),u=Math.max(n,r,o),h=NaN,g=u-s,v=(u+s)/2;return g?(h=n===u?(r-o)/g+6*(r<o):r===u?(o-n)/g+2:(n-r)/g+4,g/=v<.5?u+s:2-u-s,h*=60):g=v>0&&v<1?0:h,new cr(h,g,v,t.opacity)}function cr(t,n,r,o){this.h=+t,this.s=+n,this.l=+r,this.opacity=+o}function Cv(t,n,r){return 255*(t<60?n+(r-n)*t/60:t<180?r:t<240?n+(r-n)*(240-t)/60:n)}function lC(t,n,r,o,s){var u=t*t,h=u*t;return((1-3*t+3*u-h)*n+(4-6*u+3*h)*r+(1+3*t+3*u-3*h)*o+h*s)/6}function cC(t){return function(){return t}}function dC(t,n){var r=n-t;return r?function uC(t,n){return function(r){return t+r*n}}(t,r):cC(isNaN(t)?n:t)}bv(fu,gu,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:tC,formatHex:tC,formatHsl:function KD(){return sC(this).formatHsl()},formatRgb:nC,toString:nC}),bv(di,lp,K2(fu,{brighter:function(t){return t=null==t?op:Math.pow(op,t),new di(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new di(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rC,formatHex:rC,formatRgb:aC,toString:aC})),bv(cr,function t4(t,n,r,o){return 1===arguments.length?sC(t):new cr(t,n,r,o??1)},K2(fu,{brighter:function(t){return t=null==t?op:Math.pow(op,t),new cr(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new cr(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*n,s=2*r-o;return new di(Cv(t>=240?t-240:t+120,s,o),Cv(t,s,o),Cv(t<120?t+240:t-120,s,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const fC=function t(n){var r=function a4(t){return 1==(t=+t)?dC:function(n,r){return r-n?function r4(t,n,r){return t=Math.pow(t,r),n=Math.pow(n,r)-t,r=1/r,function(o){return Math.pow(t+o*n,r)}}(n,r,t):cC(isNaN(n)?r:n)}}(n);function o(s,u){var h=r((s=lp(s)).r,(u=lp(u)).r),g=r(s.g,u.g),v=r(s.b,u.b),y=dC(s.opacity,u.opacity);return function(x){return s.r=h(x),s.g=g(x),s.b=v(x),s.opacity=y(x),s+""}}return o.gamma=t,o}(1);function hC(t){return function(n){var h,g,r=n.length,o=new Array(r),s=new Array(r),u=new Array(r);for(h=0;h<r;++h)g=lp(n[h]),o[h]=g.r||0,s[h]=g.g||0,u[h]=g.b||0;return o=t(o),s=t(s),u=t(u),g.opacity=1,function(v){return g.r=o(v),g.g=s(v),g.b=u(v),g+""}}}hC(function n4(t){var n=t.length-1;return function(r){var o=r<=0?r=0:r>=1?(r=1,n-1):Math.floor(r*n),s=t[o],u=t[o+1];return lC((r-o/n)*n,o>0?t[o-1]:2*s-u,s,u,o<n-1?t[o+2]:2*u-s)}}),hC(function i4(t){var n=t.length;return function(r){var o=Math.floor(((r%=1)<0?++r:r)*n);return lC((r-o/n)*n,t[(o+n-1)%n],t[o%n],t[(o+1)%n],t[(o+2)%n])}});var Tv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Sv=new RegExp(Tv.source,"g");function l4(t,n){var o,s,u,r=Tv.lastIndex=Sv.lastIndex=0,h=-1,g=[],v=[];for(t+="",n+="";(o=Tv.exec(t))&&(s=Sv.exec(n));)(u=s.index)>r&&(u=n.slice(r,u),g[h]?g[h]+=u:g[++h]=u),(o=o[0])===(s=s[0])?g[h]?g[h]+=s:g[++h]=s:(g[++h]=null,v.push({i:h,x:va(o,s)})),r=Sv.lastIndex;return r<n.length&&(u=n.slice(r),g[h]?g[h]+=u:g[++h]=u),g.length<2?v[0]?function s4(t){return function(n){return t(n)+""}}(v[0].x):function o4(t){return function(){return t}}(n):(n=v.length,function(y){for(var T,x=0;x<n;++x)g[(T=v[x]).i]=T.x(y);return g.join("")})}function pC(t,n){var r;return("number"==typeof n?va:n instanceof gu?fC:(r=gu(n))?(n=r,fC):l4)(t,n)}function c4(t){return function(){this.removeAttribute(t)}}function u4(t){return function(){this.removeAttributeNS(t.space,t.local)}}function d4(t,n,r){var o,u,s=r+"";return function(){var h=this.getAttribute(t);return h===s?null:h===o?u:u=n(o=h,r)}}function f4(t,n,r){var o,u,s=r+"";return function(){var h=this.getAttributeNS(t.space,t.local);return h===s?null:h===o?u:u=n(o=h,r)}}function h4(t,n,r){var o,s,u;return function(){var h,v,g=r(this);return null==g?void this.removeAttribute(t):(h=this.getAttribute(t))===(v=g+"")?null:h===o&&v===s?u:(s=v,u=n(o=h,g))}}function p4(t,n,r){var o,s,u;return function(){var h,v,g=r(this);return null==g?void this.removeAttributeNS(t.space,t.local):(h=this.getAttributeNS(t.space,t.local))===(v=g+"")?null:h===o&&v===s?u:(s=v,u=n(o=h,g))}}function v4(t,n){var r,o;function s(){var u=n.apply(this,arguments);return u!==o&&(r=(o=u)&&function _4(t,n){return function(r){this.setAttributeNS(t.space,t.local,n.call(this,r))}}(t,u)),r}return s._value=n,s}function y4(t,n){var r,o;function s(){var u=n.apply(this,arguments);return u!==o&&(r=(o=u)&&function m4(t,n){return function(r){this.setAttribute(t,n.call(this,r))}}(t,u)),r}return s._value=n,s}function b4(t,n){return function(){_v(this,t).delay=+n.apply(this,arguments)}}function w4(t,n){return n=+n,function(){_v(this,t).delay=n}}function T4(t,n){return function(){Lr(this,t).duration=+n.apply(this,arguments)}}function S4(t,n){return n=+n,function(){Lr(this,t).duration=n}}var q4=uu.prototype.constructor;function gC(t){return function(){this.style.removeProperty(t)}}var n5=0;function Nr(t,n,r,o){this._groups=t,this._parents=n,this._name=r,this._id=o}function mC(){return++n5}var Hs=uu.prototype;Nr.prototype=function i5(t){return uu().transition(t)}.prototype={constructor:Nr,select:function I4(t){var n=this._name,r=this._id;"function"!=typeof t&&(t=fv(t));for(var o=this._groups,s=o.length,u=new Array(s),h=0;h<s;++h)for(var x,T,g=o[h],v=g.length,y=u[h]=new Array(v),b=0;b<v;++b)(x=g[b])&&(T=t.call(x,x.__data__,b,g))&&("__data__"in x&&(T.__data__=x.__data__),y[b]=T,ip(y[b],n,r,b,y,Fi(x,r)));return new Nr(u,this._parents,n,r)}
1,selectAll:function F4(t){var n=this._name,r=this._id;"function"!=typeof t&&(t=E2(t));for(var o=this._groups,s=o.length,u=[],h=[],g=0;g<s;++g)for(var x,v=o[g],y=v.length,T=0;T<y;++T)if(x=v[T]){for(var A,b=t.call(x,x.__data__,T,v),Z=Fi(x,r),M=0,P=b.length;M<P;++M)(A=b[M])&&ip(A,n,r,M,b,Z);u.push(b),h.push(x)}return new Nr(u,h,n,r)},filter:function D4(t){"function"!=typeof t&&(t=P2(t));for(var n=this._groups,r=n.length,o=new Array(r),s=0;s<r;++s)for(var v,u=n[s],h=u.length,g=o[s]=[],y=0;y<h;++y)(v=u[y])&&t.call(v,v.__data__,y,u)&&g.push(v);return new Nr(o,this._parents,this._name,this._id)},merge:function Z4(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,r=t._groups,o=n.length,u=Math.min(o,r.length),h=new Array(o),g=0;g<u;++g)for(var b,v=n[g],y=r[g],x=v.length,T=h[g]=new Array(x),A=0;A<x;++A)(b=v[A]||y[A])&&(T[A]=b);for(;g<o;++g)h[g]=n[g];return new Nr(h,this._parents,this._name,this._id)},selection:function U4(){return new q4(this._groups,this._parents)},transition:function e5(){for(var t=this._name,n=this._id,r=mC(),o=this._groups,s=o.length,u=0;u<s;++u)for(var v,h=o[u],g=h.length,y=0;y<g;++y)if(v=h[y]){var x=Fi(v,n);ip(v,t,r,y,h,{time:x.time+x.delay+x.duration,delay:0,duration:x.duration,ease:x.ease})}return new Nr(o,this._parents,t,r)},call:Hs.call,nodes:Hs.nodes,node:Hs.node,size:Hs.size,empty:Hs.empty,each:Hs.each,on:function L4(t,n){var r=this._id;return arguments.length<2?Fi(this.node(),r).on.on(t):this.each(function P4(t,n,r){var o,s,u=function E4(t){return(t+"").trim().split(/^|\s+/).every(function(n){var r=n.indexOf(".");return r>=0&&(n=n.slice(0,r)),!n||"start"===n})}(n)?_v:Lr;return function(){var h=u(this,t),g=h.on;g!==o&&(s=(o=g).copy()).on(n,r),h.on=s}}(r,t,n))},attr:function g4(t,n){var r=Kh(t),o="transform"===r?HD:pC;return this.attrTween(t,"function"==typeof n?(r.local?p4:h4)(r,o,xv(this,"attr."+t,n)):null==n?(r.local?u4:c4)(r):(r.local?f4:d4)(r,o,n))},attrTween:function x4(t,n){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;var o=Kh(t);return this.tween(r,(o.local?v4:y4)(o,n))},style:function z4(t,n,r){var o="transform"==(t+="")?GD:pC;return null==n?this.styleTween(t,function R4(t,n){var r,o,s;return function(){var u=Rs(this,t),h=(this.style.removeProperty(t),Rs(this,t));return u===h?null:u===r&&h===o?s:s=n(r=u,o=h)}}(t,o)).on("end.style."+t,gC(t)):"function"==typeof n?this.styleTween(t,function H4(t,n,r){var o,s,u;return function(){var h=Rs(this,t),g=r(this),v=g+"";return null==g&&(this.style.removeProperty(t),v=g=Rs(this,t)),h===v?null:h===o&&v===s?u:(s=v,u=n(o=h,g))}}(t,o,xv(this,"style."+t,n))).each(function V4(t,n){var r,o,s,g,u="style."+n,h="end."+u;return function(){var v=Lr(this,t),y=v.on,x=null==v.value[u]?g||(g=gC(n)):void 0;(y!==r||s!==x)&&(o=(r=y).copy()).on(h,s=x),v.on=o}}(this._id,t)):this.styleTween(t,function G4(t,n,r){var o,u,s=r+"";return function(){var h=Rs(this,t);return h===s?null:h===o?u:u=n(o=h,r)}}(t,o,n),r).on("end.style."+t,null)},styleTween:function J4(t,n,r){var o="style."+(t+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(null==n)return this.tween(o,null);if("function"!=typeof n)throw new Error;return this.tween(o,function $4(t,n,r){var o,s;function u(){var h=n.apply(this,arguments);return h!==s&&(o=(s=h)&&function Y4(t,n,r){return function(o){this.style.setProperty(t,n.call(this,o),r)}}(t,h,r)),o}return u._value=n,u}(t,n,r??""))},text:function W4(t){return this.tween("text","function"==typeof t?function B4(t){return function(){var n=t(this);this.textContent=n??""}}(xv(this,"text",t)):function j4(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function K4(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function Q4(t){var n,r;function o(){var s=t.apply(this,arguments);return s!==r&&(n=(r=s)&&function X4(t){return function(n){this.textContent=t.call(this,n)}}(s)),n}return o._value=t,o}(t))},remove:function O4(){return this.on("end.remove",function N4(t){return function(){var n=this.parentNode;for(var r in this.__transition)if(+r!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function YD(t,n){var r=this._id;if(t+="",arguments.length<2){for(var h,o=Fi(this.node(),r).tween,s=0,u=o.length;s<u;++s)if((h=o[s]).name===t)return h.value;return null}return this.each((null==n?VD:zD)(r,t,n))},delay:function C4(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?b4:w4)(n,t)):Fi(this.node(),n).delay},duration:function A4(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?T4:S4)(n,t)):Fi(this.node(),n).duration},ease:function M4(t){var n=this._id;return arguments.length?this.each(function k4(t,n){if("function"!=typeof n)throw new Error;return function(){Lr(this,t).ease=n}}(n,t)):Fi(this.node(),n).ease},end:function t5(){var t,n,r=this,o=r._id,s=r.size();return new Promise(function(u,h){var g={value:h},v={value:function(){0==--s&&u()}};r.each(function(){var y=Lr(this,o),x=y.on;x!==t&&((n=(t=x).copy())._.cancel.push(g),n._.interrupt.push(g),n._.end.push(v)),y.on=n})})}};var Av={time:null,delay:0,duration:250,ease:jr.tw};function r5(t,n){for(var r;!(r=t.__transition)||!(r=r[n]);)if(!(t=t.parentNode))return Av.time=(0,Nt.zO)(),Av;return r}function cp(t){return function(){return t}}
1function s5(t,n,r){this.target=t,this.type=n,this.transform=r}function Or(t,n,r){this.k=t,this.x=n,this.y=r}uu.prototype.interrupt=function qD(t){return this.each(function(){rp(this,t)})},uu.prototype.transition=function a5(t){var n,r;t instanceof Nr?(n=t._id,t=t._name):(n=mC(),(r=Av).time=(0,Nt.zO)(),t=null==t?null:t+"");for(var o=this._groups,s=o.length,u=0;u<s;++u)for(var v,h=o[u],g=h.length,y=0;y<g;++y)(v=h[y])&&ip(v,t,n,y,h,r||r5(v,n));return new Nr(o,this._parents,t,n)},Or.prototype={constructor:Or,scale:function(t){return 1===t?this:new Or(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new Or(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var up=new Or(1,0,0);function _C(t){for(;!t.__zoom;)if(!(t=t.parentNode))return up;return t.__zoom}function kv(){Ft.stopImmediatePropagation()}function mu(){Ft.preventDefault(),Ft.stopImmediatePropagation()}function l5(){return!Ft.ctrlKey&&!Ft.button}function c5(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function vC(){return this.__zoom||up}function u5(){return-Ft.deltaY*(1===Ft.deltaMode?.05:Ft.deltaMode?1:.002)}function d5(){return navigator.maxTouchPoints||"ontouchstart"in this}function f5(t,n,r){var o=t.invertX(n[0][0])-r[0][0],s=t.invertX(n[1][0])-r[1][0],u=t.invertY(n[0][1])-r[0][1],h=t.invertY(n[1][1])-r[1][1];return t.translate(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),h>u?(u+h)/2:Math.min(0,u)||Math.max(0,h))}function h5(){var x,T,t=l5,n=c5,r=f5,o=u5,s=d5,u=[0,1/0],h=[[-1/0,-1/0],[1/0,1/0]],g=250,v=pM,y=(0,gn.Z)("start","zoom","end"),b=500,A=150,Z=0;function M(z){z.property("__zoom",vC).on("wheel.zoom",Q).on("mousedown.zoom",X).on("dblclick.zoom",de).filter(s).on("touchstart.zoom",se).on("touchmove.zoom",ue).on("touchend.zoom touchcancel.zoom",oe).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function P(z,ee){return(ee=Math.max(u[0],Math.min(u[1],ee)))===z.k?z:new Or(ee,z.x,z.y)}function N(z,ee,_e){var K=ee[0]-_e[0]*z.k,me=ee[1]-_e[1]*z.k;return K===z.x&&me===z.y?z:new Or(z.k,K,me)}function R(z){return[(+z[0][0]+ +z[1][0])/2,(+z[0][1]+ +z[1][1])/2]}function F(z,ee,_e){z.on("start.zoom",function(){G(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){G(this,arguments).end()}).tween("zoom",function(){var K=this,me=arguments,qe=G(K,me),Ne=n.apply(K,me),ze=null==_e?R(Ne):"function"==typeof _e?_e.apply(K,me):_e,ot=Math.max(Ne[1][0]-Ne[0][0],Ne[1][1]-Ne[0][1]),st=K.__zoom,$t="function"==typeof ee?ee.apply(K,me):ee,qt=v(st.invert(ze).concat(ot/st.k),$t.invert(ze).concat(ot/$t.k));return function(Mt){if(1===Mt)Mt=$t;else{var an=qt(Mt),Ti=ot/an[2];Mt=new Or(Ti,ze[0]-an[0]*Ti,ze[1]-an[1]*Ti)}qe.zoom(null,Mt)}})}function G(z,ee,_e){return!_e&&z.__zooming||new j(z,ee)}function j(z,ee){this.that=z,this.args=ee,this.active=0,this.extent=n.apply(z,ee),this.taps=0}function Q(){if(t.apply(this,arguments)){var z=G(this,arguments),ee=this.__zoom,_e=Math.max(u[0],Math.min(u[1],ee.k*Math.pow(2,o.apply(this,arguments)))),K=Xh(this);if(z.wheel)(z.mouse[0][0]!==K[0]||z.mouse[0][1]!==K[1])&&(z.mouse[1]=ee.invert(z.mouse[0]=K)),clearTimeout(z.wheel);else{if(ee.k===_e)return;z.mouse=[K,ee.invert(K)],rp(this),z.start()}mu(),z.wheel=setTimeout(function me(){z.wheel=null,z.end()},A),z.zoom("mouse",r(N(P(ee,_e),z.mouse[0],z.mouse[1]),z.extent,h))}}function X(){if(!T&&t.apply(this,arguments)){var z=G(this,arguments,!0),ee=ep(Ft.view).on("mousemove.zoom",function qe(){if(mu(),!z.moved){var ze=Ft.clientX-K,ot=Ft.clientY-me;z.moved=ze*ze+ot*ot>Z}
1z.zoom("mouse",r(N(z.that.__zoom,z.mouse[0]=Xh(z.that),z.mouse[1]),z.extent,h))},!0).on("mouseup.zoom",function Ne(){ee.on("mousemove.zoom mouseup.zoom",null),Do(Ft.view,z.moved),mu(),z.end()},!0),_e=Xh(this),K=Ft.clientX,me=Ft.clientY;Mo(Ft.view),kv(),z.mouse=[_e,this.__zoom.invert(_e)],rp(this),z.start()}}function de(){if(t.apply(this,arguments)){var z=this.__zoom,ee=Xh(this),_e=z.invert(ee),me=r(N(P(z,z.k*(Ft.shiftKey?.5:2)),ee,_e),n.apply(this,arguments),h);mu(),g>0?ep(this).transition().duration(g).call(F,me,ee):ep(this).call(M.transform,me)}}function se(){if(t.apply(this,arguments)){var K,me,qe,Ne,z=Ft.touches,ee=z.length,_e=G(this,arguments,Ft.changedTouches.length===ee);for(kv(),me=0;me<ee;++me)Ne=[Ne=Y2(this,z,(qe=z[me]).identifier),this.__zoom.invert(Ne),qe.identifier],_e.touch0?!_e.touch1&&_e.touch0[2]!==Ne[2]&&(_e.touch1=Ne,_e.taps=0):(_e.touch0=Ne,K=!0,_e.taps=1+!!x);x&&(x=clearTimeout(x)),K&&(_e.taps<2&&(x=setTimeout(function(){x=null},b)),rp(this),_e.start())}}function ue(){if(this.__zooming){var K,me,qe,Ne,z=G(this,arguments),ee=Ft.changedTouches,_e=ee.length;for(mu(),x&&(x=clearTimeout(x)),z.taps=0,K=0;K<_e;++K)qe=Y2(this,ee,(me=ee[K]).identifier),z.touch0&&z.touch0[2]===me.identifier?z.touch0[0]=qe:z.touch1&&z.touch1[2]===me.identifier&&(z.touch1[0]=qe);if(me=z.that.__zoom,z.touch1){var ze=z.touch0[0],ot=z.touch0[1],st=z.touch1[0],$t=z.touch1[1],qt=(qt=st[0]-ze[0])*qt+(qt=st[1]-ze[1])*qt,Mt=(Mt=$t[0]-ot[0])*Mt+(Mt=$t[1]-ot[1])*Mt;me=P(me,Math.sqrt(qt/Mt)),qe=[(ze[0]+st[0])/2,(ze[1]+st[1])/2],Ne=[(ot[0]+$t[0])/2,(ot[1]+$t[1])/2]}else{if(!z.touch0)return;qe=z.touch0[0],Ne=z.touch0[1]}z.zoom("touch",r(N(me,qe,Ne),z.extent,h))}}function oe(){if(this.__zooming){var K,me,z=G(this,arguments),ee=Ft.changedTouches,_e=ee.length;for(kv(),T&&clearTimeout(T),T=setTimeout(function(){T=null},b),K=0;K<_e;++K)me=ee[K],z.touch0&&z.touch0[2]===me.identifier?delete z.touch0:z.touch1&&z.touch1[2]===me.identifier&&delete z.touch1;if(z.touch1&&!z.touch0&&(z.touch0=z.touch1,delete z.touch1),z.touch0)z.touch0[1]=this.__zoom.invert(z.touch0[0]);else if(z.end(),2===z.taps){var qe=ep(this).on("dblclick.zoom");qe&&qe.apply(this,arguments)}}}return M.transform=function(z,ee,_e){var K=z.selection?z.selection():z;K.property("__zoom",vC),z!==K?F(z,ee,_e):K.interrupt().each(function(){G(this,arguments).start().zoom(null,"function"==typeof ee?ee.apply(this,arguments):ee).end()})},M.scaleBy=function(z,ee,_e){M.scaleTo(z,function(){return this.__zoom.k*("function"==typeof ee?ee.apply(this,arguments):ee)},_e)},M.scaleTo=function(z,ee,_e){M.transform(z,function(){var K=n.apply(this,arguments),me=this.__zoom,qe=null==_e?R(K):"function"==typeof _e?_e.apply(this,arguments):_e,Ne=me.invert(qe),ze="function"==typeof ee?ee.apply(this,arguments):ee;return r(N(P(me,ze),qe,Ne),K,h)},_e)},M.translateBy=function(z,ee,_e){M.transform(z,function(){return r(this.__zoom.translate("function"==typeof ee?ee.apply(this,arguments):ee,"function"==typeof _e?_e.apply(this,arguments):_e),n.apply(this,arguments),h)})},M.translateTo=function(z,ee,_e,K){M.transform(z,function(){var me=n.apply(this,arguments),qe=this.__zoom,Ne=null==K?R(me):"function"==typeof K?K.apply(this,arguments):K;return r(up.translate(Ne[0],Ne[1]).scale(qe.k).translate("function"==typeof ee?-ee.apply(this,arguments):-ee,"function"==typeof _e?-_e.apply(this,arguments):-_e),me,h)},K)},j.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(z,ee){return this.mouse&&"mouse"!==z&&(this.mouse[1]=ee.invert(this.mouse[0])),this.touch0&&"touch"!==z&&(this.touch0[1]=ee.invert(this.touch0[0])),this.touch1&&"touch"!==z&&(this.touch1[1]=ee.invert(this.touch1[0])),this.that.__zoom=ee,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(z){!function bM(t,n,r,o){var s=Ft;t.sourceEvent=Ft,Ft=t;try{return n.apply(r,o)}finally{Ft=s}}(new s5(M,z,this.that.__zoom),y.apply,y,[z,this.that,this.args])}},M.wheelDelta=function(z){return arguments.length?(o="function"==typeof z?z:cp(+z),M):o},M.filter=function(z){return arguments.length?(t="function"==typeof z?z:cp(!!z),M):t},M.touchable=function(z){return arguments.length?(s="function"==typeof z?z:cp(!!z),M):s},M.extent=function(z){return arguments.length?(n="function"==typeof z?z:cp([[+z[0][0],+z[0][1]],[+z[1][0],+z[1][1]]]),M):n},M.scaleExtent=function(z){return arguments.length?(u[0]=+z[0],u[1]=+z[1],M):[u[0],u[1]]},M.translateExtent=function(z){return arguments.length?(h[0][0]=+z[0][0],h[1][0]=+z[1][0],h[0][1]=+z[0][1],h[1][1]=+z[1][1],M):[[h[0][0],h[0][1]],[h[1][0],h[1][1]]]},M.constrain=function(z){return arguments.length?(r=z,M):r},M.duration=function(z){return arguments.length?(g=+z,M):g},M.interpolate=function(z){return arguments.length?(v=z,M):v},M.on=function(){var z=y.on.apply(y,arguments);return z===y?M:z},M.clickDistance=function(z){return arguments.length?(Z=(z=+z)*z,M):Math.sqrt(Z)},M}_C.prototype=Or.prototype},9706:()=>{"use strict";"function"!=typeof Object.assign&&(Object.assign=function(ya){for(var ur=[],Ue=1;Ue<arguments.length;Ue++)ur[Ue-1]=arguments[Ue];if(!ya)throw TypeError("Cannot convert undefined or null to object");for(var D=function(Et){Et&&Object.keys(Et).forEach(function(e){return ya[e]=Et[e]})},Ae=0,cn=ur;Ae<cn.length;Ae++)D(cn[Ae]);return ya})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.