PageSourceSearch

https://www.cava.tn/2567.85de104f5dcefd31.js

js cava.tn collected 2026-10-03 22:02:56 UTC 256,769 bytes, 1 lines download raw bytes

1(self.webpackChunkcava=self.webpackChunkcava||[]).push([[2567],{2567:(Ge,Tt,te)=>{"use strict";te.r(Tt),te.d(Tt,{StatisticsComponent:()=>pt});var y=te(4557),C=te(3828),Ye=te(4340),q=te(2653),E=te(853),I=te(3749),me=te(9223),de=te(344),se=te(8527),we=te(2325),Ot=te(3580),je=te(1510),Ve=te(293);let hr=(()=>{class ee{constructor(Y,U){this.http=Y,this.environment=U,this.env=this.environment.getEnvironment()}products(Y){return this.http.get(`${this.env.backendPrefix}/api/v1/user-stats/products`,{params:{page:Y.page,size:Y.size,sort:`${Y.property},${Y.sort}`}})}productTotal(){return this.http.get(`${this.env.backendPrefix}/api/v1/user-stats/products-total`)}shopCommentsCount(){return this.http.get(`${this.env.backendPrefix}/api/v1/user-stats/shop-comments-count`)}productViews(Y){return this.http.get(`${this.env.backendPrefix}/api/v1/user-stats/product-views/${Y}`)}shopViews(){return this.http.get(`${this.env.backendPrefix}/api/v1/user-stats/shop-views`)}static{this.\u0275fac=function(U){return new(U||ee)(y.KVO(je.Qq),y.KVO(Ve.H))}}static{this.\u0275prov=y.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}}return ee})();var W=te(1786),cr=te(6769);const vr=["prodStatsLineCanvas"],Ft=["shopStatsLineCanvas"],ea=()=>({width:"100vw",height:"100vh",maxWidth:"800px",maxHeight:"550px"});function gr(ee,Zt){1&ee&&(y.j41(0,"tr")(1,"th"),y.EFF(2),y.nI1(3,"translate"),y.k0s(),y.j41(4,"th"),y.EFF(5),y.nI1(6,"translate"),y.k0s(),y.j41(7,"th"),y.EFF(8),y.nI1(9,"translate"),y.k0s(),y.j41(10,"th"),y.EFF(11),y.nI1(12,"translate"),y.k0s(),y.j41(13,"th"),y.EFF(14),y.nI1(15,"translate"),y.k0s()()),2&ee&&(y.R7$(2),y.JRh(y.bMT(3,5,"product.product")),y.R7$(3),y.JRh(y.bMT(6,7,"global.likes")),y.R7$(3),y.JRh(y.bMT(9,9,"comment.comments")),y.R7$(3),y.JRh(y.bMT(12,11,"global.views")),y.R7$(3),y.JRh(y.bMT(15,13,"product.views_per_day")))}function qt(ee,Zt){if(1&ee){const Y=y.RV6();y.j41(0,"tr")(1,"td")(2,"div",21),y.nrm(3,"img",22),y.j41(4,"a",23),y.EFF(5),y.k0s()()(),y.j41(6,"td"),y.EFF(7),y.k0s(),y.j41(8,"td"),y.EFF(9),y.k0s(),y.j41(10,"td"),y.EFF(11),y.k0s(),y.j41(12,"td")(13,"button",24),y.bIt("click",function(){const N=y.eBV(Y).$implicit,le=y.XpG();return y.Njj(le.getProductStatsViews(N))}),y.EFF(14),y.nI1(15,"translate"),y.k0s()()()}if(2&ee){const Y=Zt.$implicit;y.R7$(3),y.FS9("src",null==Y||null==Y.thumbnail?null:Y.thumbnail.link,y.B4B),y.R7$(),y.Y8G("routerLink","/"+Y.url),y.R7$(),y.JRh(Y.name),y.R7$(2),y.JRh(Y.likeCount),y.R7$(2),y.JRh(Y.commentCount),y.R7$(2),y.JRh(Y.views),y.R7$(3),y.JRh(y.bMT(15,7,"global.show"))}}let pt=(()=>{class ee{constructor(Y,U,N,le,ft){this.userService=Y,this.userStatsService=U,this.alertService=N,this.spinner=le,this.platformId=ft,this.statistics=null,this.products=[],this.promotionProductsPageable={page:0,size:8,sort:"DESC",property:"id"},this.loading=!0,this.subscriptions=[],this.totalRecords=100,this.noProducts=!1,this.connectedUser=null,this.shopCommentCount=0,this.prodStatsName="",this.displayStatsChart=!1,this.displayStatsData=!1,this.dataCount=null,this.shopDataCount=null,(0,y.QZP)(()=>{this.connectedUser=this.userService.profileSignal(),this.connectedUser&&this.getData()})}ngOnInit(){}getData(){this.spinner.show();const Y=this.userStatsService.productTotal(),U=this.userStatsService.shopCommentsCount(),N=this.userStatsService.shopViews();(0,q.p)([Y,U,N]).subscribe({next:([le,ft,ce])=>{this.statistics=le,this.shopCommentCount=ft,this.shopDataCount=ce,this.lineChartMethod(this.shopDataCount,this.shopStatsLineCanvas.nativeElement),this.displayStatsData=!0},error:le=>{this.alertService.error("global.failed_operation"),console.error("Error fetching data:",le)},complete:()=>{this.spinner.hide()}})}loadLazy(Y){const U=Y.first;this.promotionProductsPageable.page=U/this.promotionProductsPageable.size,this.loading=!0,(0,Ye.UE)(this.platformId)&&setTimeout(()=>{this.fetchProducts(0==U),this.loading=!1},1e3*Math.random()+250)}fetchProducts(Y=!1){(0,E.s)(this.userStatsService.products(this.promotionProductsPageable)).then(U=>{this.products=Y?[...U.items]:U.items,this.totalRecords=U.itemsNumber,this.noProducts=!this.products.length})}getProductStatsViews(Y){this.spinner.show(),(0,E.s)(this.userStatsService.productViews(Y.id)).then(U=>{this.spinner.hide(),this.prodStatsName=Y.name,this.displayStatsChart=!0,this.dataCount=U,this.lineChartMethod(this.dataCount,this.prodStatsLineCanvas.nativeElement)}).catch(U=>{console.log(" productViews err : ",U),this.alertService.error("global.somthing_went_wrong"),this.spinner.hide()})}lineChartMethod(Y,U){this.lineChart=new I.Chart(U,{type:"line",data:{labels:Y.labels,datasets:[{label:"Vues",fill:!0,backgroundColor:"#ffe6f7",borderColor:"#ff99bb",borderCapStyle:"square",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",cubicInterpolationMode:"monotone",pointBorderColor:"#c41b53",pointBackgroun
1dColor:"#fff",pointBorderWidth:1,pointHoverRadius:5,pointHoverBackgroundColor:"#c41b53",pointHoverBorderColor:"#c41b53",pointHoverBorderWidth:2,pointRadius:1,pointHitRadius:10,data:Y.data,spanGaps:!1}]}})}static{this.\u0275fac=function(U){return new(U||ee)(y.rXU(Ot.D),y.rXU(hr),y.rXU(W.u),y.rXU(cr.ex),y.rXU(y.Agw))}}static{this.\u0275cmp=y.VBU({type:ee,selectors:[["app-statistics"]],viewQuery:function(U,N){if(1&U&&(y.GBs(vr,5),y.GBs(Ft,5)),2&U){let le;y.mGM(le=y.lsd())&&(N.prodStatsLineCanvas=le.first),y.mGM(le=y.lsd())&&(N.shopStatsLineCanvas=le.first)}},decls:105,vars:85,consts:[["shopStatsLineCanvas",""],["prodStatsLineCanvas",""],[1,"shop-statistics-data"],[1,"Apropos-vender","w-100","mb-2"],[1,"pb-2"],[1,"data-dashboard",3,"hidden"],[1,"shop-statistics","stats-section","mb-5"],[1,"my-4"],[1,"d-flex","justify-content-between","align-items-center"],[1,"stats-info"],[1,"mt-4","shop-views-per-day"],[1,"mt-4"],[2,"height","100%","width","100%"],[1,"products-statistics","stats-section","mb-5"],[1,"d-flex","justify-content-between","align-items-center","mb-4"],[1,"cv-box-shadow","mb-4","pt-2","stats-prods-table",3,"hidden"],[1,"font-p-r"],["responsiveLayout","scroll","dataKey","id","tableStyleClass","user-product-table-style",3,"onLazyLoad","value","lazy","totalRecords","paginator","rows","autoLayout","loading"],["pTemplate","header"],["pTemplate","body"],[1,"watch-video",3,"visibleChange","header","visible","modal","baseZIndex","draggable","resizable"],[1,"d-flex","justify-content-between","align-items-center","stats-prod-details"],["width","60px","height","60px",3,"src"],["target","_blank",3,"routerLink"],[1,"btn","btn-success","p-2","rounded",3,"click"]],template:function(U,N){if(1&U){const le=y.RV6();y.j41(0,"div",2)(1,"div",3)(2,"label",4),y.EFF(3),y.nI1(4,"translate"),y.k0s()(),y.j41(5,"div",5)(6,"div",6)(7,"h6",7),y.EFF(8),y.nI1(9,"translate"),y.k0s(),y.j41(10,"div",8)(11,"div",9)(12,"span"),y.EFF(13),y.nI1(14,"translate"),y.k0s(),y.j41(15,"span"),y.EFF(16),y.k0s()(),y.j41(17,"div",9)(18,"span"),y.EFF(19),y.nI1(20,"translate"),y.k0s(),y.j41(21,"span"),y.EFF(22),y.k0s()(),y.j41(23,"div",9)(24,"span"),y.EFF(25),y.nI1(26,"translate"),y.k0s(),y.j41(27,"span"),y.EFF(28),y.k0s()(),y.j41(29,"div",9)(30,"span"),y.EFF(31),y.nI1(32,"translate"),y.k0s(),y.j41(33,"span"),y.EFF(34),y.k0s()()(),y.j41(35,"div",10)(36,"p",11),y.EFF(37),y.nI1(38,"translate"),y.k0s(),y.nrm(39,"canvas",12,0),y.k0s()(),y.j41(41,"div",13)(42,"h6",7),y.EFF(43),y.nI1(44,"translate"),y.k0s(),y.j41(45,"div",14)(46,"div",9)(47,"span"),y.EFF(48),y.nI1(49,"translate"),y.k0s(),y.j41(50,"span"),y.EFF(51),y.k0s()(),y.j41(52,"div",9)(53,"span"),y.EFF(54),y.nI1(55,"translate"),y.k0s(),y.j41(56,"span"),y.EFF(57),y.k0s()(),y.j41(58,"div",9)(59,"span"),y.EFF(60),y.nI1(61,"translate"),y.k0s(),y.j41(62,"span"),y.EFF(63),y.k0s()(),y.j41(64,"div",9)(65,"span"),y.EFF(66),y.nI1(67,"translate"),y.k0s(),y.j41(68,"span"),y.EFF(69),y.k0s()(),y.j41(70,"div",9)(71,"span"),y.EFF(72),y.nI1(73,"translate"),y.k0s(),y.j41(74,"span"),y.EFF(75),y.k0s()(),y.j41(76,"div",9)(77,"span"),y.EFF(78),y.nI1(79,"translate"),y.k0s(),y.j41(80,"span"),y.EFF(81),y.k0s()(),y.j41(82,"div",9)(83,"span"),y.EFF(84),y.nI1(85,"translate"),y.k0s(),y.j41(86,"span"),y.EFF(87),y.k0s()(),y.j41(88,"div",9)(89,"span"),y.EFF(90),y.nI1(91,"translate"),y.k0s(),y.j41(92,"span"),y.EFF(93),y.k0s()()(),y.j41(94,"div",15)(95,"p",16),y.EFF(96),y.nI1(97,"translate"),y.k0s(),y.j41(98,"p-table",17),y.bIt("onLazyLoad",function(ce){return y.eBV(le),y.Njj(N.loadLazy(ce))}),y.DNE(99,gr,16,15,"ng-template",18)(100,qt,16,9,"ng-template",19),y.k0s()()()()(),y.j41(101,"p-dialog",20),y.nI1(102,"translate"),y.mxI("visibleChange",function(ce){return y.eBV(le),y.DH7(N.displayStatsChart,ce)||(N.displayStatsChart=ce),y.Njj(ce)}),y.nrm(103,"canvas",12,1),y.k0s()}2&U&&(y.R7$(3),y.JRh(y.bMT(4,48,"user.statistics")),y.R7$(2),y.Y8G("hidden",!N.displayStatsData),y.R7$(3),y.JRh(y.bMT(9,50,"user.shop_statistics")),y.R7$(5),y.SpI("",y.bMT(14,52,"shop.reviews")," "),y.R7$(3),y.JRh((null==N.connectedUser?null:N.connectedUser.shop.rating)>0?(null==N.connectedUser?null:N.connectedUser.shop.rating)+"/5":"0/0"),y.R7$(3),y.SpI("",y.bMT(20,54,"comment.comments")," "),y.R7$(3),y.JRh(N.shopCommentCount?N.shopCommentCount:0),y.R7$(3),y.SpI("",y.bMT(26,56,"user.Followers")," "),y.R7$(3),y.JRh(null!=N.connectedUser&&N.connectedUser.shop.followerCount?null==N.connectedUser?null:N.connectedUser.shop.followerCount:0),y.R7$(3),y.SpI("",y.bMT(32,58,"global.views")," "),y.R7$(3),y.JRh(null!=N.connectedUser&&N.connectedUser.shop.views?null==N.connectedUser?null:N.connectedUser.shop.views:0),y.R7$(3),y.JRh(y.bMT(38,60,"shop.views_per_day")),y.R7$(6),y.JRh(y.bMT(44,62,"user.products_statistics")),y.R7$(5),y.SpI("",y.bMT(49,64,"global.total")," "),y.R7$(3),y.JRh(null==N.statistics?null:N.statistics.total),y.R7$(3),y.SpI("",y.bMT(55,66,"product.sold")," "),y.R7$(3),y.JRh(null==N.statistics?null:N.statistics.sold),y.R7$(3),y.SpI("",y.bMT(61,68,"promotion.alaune")," "),y.R7$(3),y.JRh(null==N.statistics?null:N.statistics.alaune),y.R7$(3),y.SpI("",y.bMT(67,70,"promotion.sponsored")," "),y.R7$(3),y.JRh(null==N.statistics?null:N.statistics.sponsored),y.R7$(3),y.SpI("",y.bMT(73,72,"promotion.type.DIAMOND")," "),y.R7$(3),y.JRh(null==N.statistics?null:N.statistics.diamond),y.R7$(3),y.SpI("",y.bMT(79,74,"global.views")," "),y.R7$(3),y.JRh(null==N.statistics?null:N.statistics.views),y.R7$(3),y.SpI("",y.bMT(85,76,"comment.comments")," "),y.R7$(3),y.JRh(null==N.statistics?null:N.statistics.comments),y.R7$(3),y.SpI("",y.bMT(91,78,"global.likes")," "),y.R7$(3),y.JRh(null==N.statistics?null:N.statistics.likes),y.R7$(),y.Y8G("hidden",!N.products.length),y.R7$(2),y.SpI(" ",y.bMT(97,80,"product.detailed_stats")," "),y.R7$(2),y.Y8G("value",N.products)("lazy",!0)("totalRecords",N.totalRecords)("paginator",!0)("rows",8)("autoLayout",!0)("loading",N.loading),y.R7$(3),y.Aen(y.lJ4(84,ea)),y.FCK("header","",y.bMT(102,82,"product.views_per_day")," : ",N.prodStatsName,""),y.R50("visible",N.displayStatsChart),y.Y8G("modal",!0)("baseZIndex",1e4)("draggable",!1)("resizable",!1))},dependencies:[we.bG,we.XI,C.Ei,C.Gg,se.Wk,de.DialogModule,de.Dialog,me.h,me.D9],styles:[".shop-statistics-data[_ngcontent-%COMP%]   .Apropos-vender[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:22px}.stats-section[_ngcontent-%COMP%]   h6[_ngcontent-%COMP%]{border-radius:4px;color:#f56b2a;padding:4px;text-align:start}.stats-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{gap:4px;flex-wrap:wrap}.stats-section[_ngcontent-%COMP%]   .stats-info[_ngcontent-%COMP%]{flex:1;background-color:#fff;display:inline-block;padding:4px 11px;font-size:14px;box-shadow:0 0 4px #26262638;border-radius:6px}.stats-section[_ngcontent-%COMP%]   .stats-info[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;font-size:12px}.stats-section[_ngcontent-%COMP%]   .stats-info[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-of-type(1){font-weight:700;color:#f56b2a!important}.stats-section[_ngcontent-%COMP%]   .stats-info[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-of-type(2){font-weight:400;color:#383838!important}.stats-section[_ngcontent-%COMP%]   .stats-prods-table[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:5px}.shop-statistics[_ngcontent-%COMP%]   .stats-info[_ngcontent-%COMP%]{flex:1}@media (max-width: 600px){.products-statistics[_ngcontent-%COMP%]   .stats-info[_ngcontent-%COMP%]{min-width:75px}}.stats-prod-details[_ngcontent-%COMP%]{gap:7px}.shop-views-per-day[_ngcontent-%COMP%]{border-top:2px solid #dea0a0}"]})}}return ee})()},3749:function(Ge,Tt,te){Ge.exports=function(y){"use strict";y=y&&y.hasOwnProperty("default")?y.default:y;var q={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
vendor: 7,474 bytes, line 1
1ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},E=function C(e,t){return e(t={exports:{}},t.exports),t.exports}(function(e){var t={};for(var r in q)q.hasOwnProperty(r)&&(t[q[r]]=r);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in a)if(a.hasOwnProperty(i)){if(!("channels"in a[i]))throw new Error("missing channels property: "+i);if(!("labels"in a[i]))throw new Error("missing channel labels property: "+i);if(a[i].labels.length!==a[i].channels)throw new Error("channel and label counts mismatch: "+i);var o=a[i].channels,l=a[i].labels;delete a[i].channels,delete a[i].labels,Object.defineProperty(a[i],"channels",{value:o}),Object.defineProperty(a[i],"labels",{value:l})}function d(u,h){return Math.pow(u[0]-h[0],2)+Math.pow(u[1]-h[1],2)+Math.pow(u[2]-h[2],2)}a.rgb.hsl=function(u){var k,D,h=u[0]/255,v=u[1]/255,g=u[2]/255,b=Math.min(h,v,g),_=Math.max(h,v,g),x=_-b;return _===b?k=0:h===_?k=(v-g)/x:v===_?k=2+(g-h)/x:g===_&&(k=4+(h-v)/x),(k=Math.min(60*k,360))<0&&(k+=360),D=(b+_)/2,[k,100*(_===b?0:D<=.5?x/(_+b):x/(2-_-b)),100*D]},a.rgb.hsv=function(u){var h,v,g,b,_,x=u[0]/255,k=u[1]/255,M=u[2]/255,D=Math.max(x,k,M),F=D-Math.min(x,k,M),L=function(j){return(D-j)/6/F+.5};return 0===F?b=_=0:(_=F/D,h=L(x),v=L(k),g=L(M),x===D?b=g-v:k===D?b=1/3+h-g:M===D&&(b=2/3+v-h),b<0?b+=1:b>1&&(b-=1)),[360*b,100*_,100*D]},a.rgb.hwb=function(u){var h=u[0],v=u[1],g=u[2];return[a.rgb.hsl(u)[0],1/255*Math.min(h,Math.min(v,g))*100,100*(g=1-1/255*Math.max(h,Math.max(v,g)))]},a.rgb.cmyk=function(u){var k,h=u[0]/255,v=u[1]/255,g=u[2]/255;return[100*((1-h-(k=Math.min(1-h,1-v,1-g)))/(1-k)||0),100*((1-v-k)/(1-k)||0),100*((1-g-k)/(1-k)||0),100*k]},a.rgb.keyword=function(u){var h=t[u];if(h)return h;var g,v=1/0;for(var b in q)if(q.hasOwnProperty(b)){var x=d(u,q[b]);x<v&&(v=x,g=b)}return g},a.keyword.rgb=function(u){return q[u]},a.rgb.xyz=function(u){var h=u[0]/255,v=u[1]/255,g=u[2]/255;return[100*(.4124*(h=h>.04045?Math.pow((h+.055)/1.055,2.4):h/12.92)+.3576*(v=v>.04045?Math.pow((v+.055)/1.055,2.4):v/12.92)+.1805*(g=g>.04045?Math.pow((g+.055)/1.055,2.4):g/12.92)),100*(.2126*h+.7152*v+.0722*g),100*(.0193*h+.1192*v+.9505*g)]},a.rgb.lab=function(u){var h=a.rgb.xyz(u),v=h[0],g=h[1],b=h[2];return g/=100,b/=108.883,v=(v/=95.047)>.008856?Math.pow(v,1/3):7.787*v+16/116,[116*(g=g>.008856?Math.pow(g,1/3):7.787*g+16/116)-16,500*(v-g),200*(g-(b=b>.008856?Math.pow(b,1/3):7.787*b+16/116))]},a.hsl.rgb=function(u){var b,_,x,k,M,h=u[0]/360,v=u[1]/100,g=u[2]/100;if(0===v)return[M=255*g,M,M];b=2*g-(_=g<.5?g*(1+v):g+v-g*v),k=[0,0,0];for(var D=0;D<3;D++)(x=h+1/3*-(D-1))<0&&x++,x>1&&x--,k[D]=255*(M=6*x<1?b+6*(_-b)*x:2*x<1?_:3*x<2?b+(_-b)*(2/3-x)*6:b);return k},a.hsl.hsv=function(u){var h=u[0],v=u[1]/100,g=u[2]/100,b=v,_=Math.max(g,.01);return v*=(g*=2)<=1?g:2-g,b*=_<=1?_:2-_,[h,100*(0===g?2*b/(_+b):2*v/(g+v)),(g+v)/2*100]},a.hsv.rgb=function(u){var h=u[0]/60,v=u[1]/100,g=u[2]/100,b=Math.floor(h)%6,_=h-Math.floor(h),x=255*g*(1-v),k=255*g*(1-v*_),M=255*g*(1-v*(1-_));switch(g*=255,b){case 0:return[g,M,x];case 1:return[k,g,x];case 2:return[x,g,M];case 3:return[x,k,g];case 4:return[M,x,g];case 5:return[g,x,k]}},a.hsv.hsl=function(u){var _,x,k,h=u[0],v=u[1]/100,g=u[2]/100,b=Math.max(g,.01);return k=(2-v)*g,x=v*b,[h,100*(x=(x/=(_=(2-v)*b)<=1?_:2-_)||0),100*(k/=2)]},a.hwb.rgb=function(u){var _,x,k,M,D,F,L,h=u[0]/360,v=u[1]/100,g=u[2]/100,b=v+g;switch(b>1&&(v/=b,g/=b),k=6*h-(_=Math.floor(6*h)),1&_&&(k=1-k),M=v+k*((x=1-g)-v),_){default:case 6:case 0:D=x,F=M,L=v;break;case 1:D=M,F=x,L=v;break;case 2:D=v,F=x,L=M;break;case 3:D=v,F=M,L=x;break;case 4:D=M,F=v,L=x;break;case 5:D=x,F=v,L=M}return[255*D,255*F,255*L]},a.cmyk.rgb=function(u){var v=u[1]/100,g=u[2]/100,b=u[3]/100;return[255*(1-Math.min(1,u[0]/100*(1-b)+b)),255*(1-Math.min(1,v*(1-b)+b)),255*(1-Math.min(1,g*(1-b)+b))]},a.xyz.rgb=function(u){var b,_,x,h=u[0]/100,v=u[1]/100,g=u[2]/100;return _=-.9689*h+1.8758*v+.0415*g,x=.0557*h+-.204*v+1.057*g,b=(b=3.2406*h+-1.5372*v+-.4986*g)>.0031308?1.055*Math.pow(b,1/2.4)-.055:12.92*b,_=_>.0031308?1.055*Math.pow(_,1/2.4)-.055:12.92*_,x=x>.0031308?1.055*Math.pow(x,1/2.4)-.055:12.92*x,[255*(b=Math.min(Math.max(0,b),1)),255*(_=Math.min(Math.max(0,_),1)),255*(x=Math.min(Math.max(0,x),1))]},a.xyz.lab=function(u){var h=u[0],v=u[1],g=u[2];return v/=100,g/=108.883,h=(h/=95.047)>.008856?Math.pow(h,1/3):7.787*h+16/116,[116*(v=v>.008856?Math.pow(v,1/3):7.787*v+16/116)-16,500*(h-v),200*(v-(g=g>.008856?Math.pow(g,1/3):7.787*g+16/116))]},a.lab.xyz=function(u){var b,_,x;b=u[1]/500+(_=(u[0]+16)/116),x=_-u[2]/200;var k=Math.pow(_,3),M=Math.pow(b,3),D=Math.pow(x,3);return _=k>.008856?k:(_-16/116)/7.787,b=M>.008856?M:(b-16/116)/7.787,x=D>.008856?D:(x-16/116)/7.787,[b*=95.047,_*=100,x*=108.883]},a.lab.lch=function(u){var _,h=u[0],v=u[1],g=u[2];return(_=360*Math.atan2(g,v)/2/Math.PI)<0&&(_+=360),[h,Math.sqrt(v*v+g*g),_]},a.lch.lab=function(u){var x,v=u[1];return x=u[2]/360*2*Math.PI,[u[0],v*Math.cos(x),v*Math.sin(x)]},a.rgb.ansi16=function(u){var h=u[0],v=u[1],g=u[2],b=1 in arguments?arguments[1]:a.rgb.hsv(u)[2];if(0===(b=Math.round(b/50)))return 30;var _=30+(Math.round(g/255)<<2|Math.round(v/255)<<1|Math.round(h/255));return 2===b&&(_+=60),_},a.hsv.ansi16=function(u){return a.rgb.ansi16(a.hsv.rgb(u),u[2])},a.rgb.ansi256=function(u){var h=u[0],v=u[1],g=u[2];return h===v&&v===g?h<8?16:h>248?231:Math.round((h-8)/247*24)+232:16+36*Math.round(h/255*5)+6*Math.round(v/255*5)+Math.round(g/255*5)},a.ansi16.rgb=function(u){var h=u%10;if(0===h||7===h)return u>50&&(h+=3.5),[h=h/10.5*255,h,h];var v=.5*(1+~~(u>50));return[(1&h)*v*255,(h>>1&1)*v*255,(h>>2&1)*v*255]},a.ansi256.rgb=function(u){if(u>=232){var h=10*(u-232)+8;return[h,h,h]}var v;return u-=16,[Math.floor(u/36)/5*255,Math.floor((v=u%36)/6)/5*255,v%6/5*255]},a.rgb.hex=function(u){var v=(((255&Math.round(u[0]))<<16)+((255&Math.round(u[1]))<<8)+(255&Math.round(u[2]))).toString(16).toUpperCase();return"000000".substring(v.length)+v},a.hex.rgb=function(u){var h=u.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!h)return[0,0,0];var v=h[0];3===h[0].length&&(v=v.split("").map(function(k){return k+k}
vendor: 1,107 bytes, line 1
1).join(""));var g=parseInt(v,16);return[g>>16&255,g>>8&255,255&g]},a.rgb.hcg=function(u){var M,h=u[0]/255,v=u[1]/255,g=u[2]/255,b=Math.max(Math.max(h,v),g),_=Math.min(Math.min(h,v),g),x=b-_;return M=x<=0?0:b===h?(v-g)/x%6:b===v?2+(g-h)/x:4+(h-v)/x+4,M/=6,[360*(M%=1),100*x,100*(x<1?_/(1-x):0)]},a.hsl.hcg=function(u){var g,h=u[1]/100,v=u[2]/100,b=0;return(g=v<.5?2*h*v:2*h*(1-v))<1&&(b=(v-.5*g)/(1-g)),[u[0],100*g,100*b]},a.hsv.hcg=function(u){var v=u[2]/100,g=u[1]/100*v,b=0;return g<1&&(b=(v-g)/(1-g)),[u[0],100*g,100*b]},a.hcg.rgb=function(u){var v=u[1]/100,g=u[2]/100;if(0===v)return[255*g,255*g,255*g];var M,b=[0,0,0],_=u[0]/360%1*6,x=_%1,k=1-x;switch(Math.floor(_)){case 0:b[0]=1,b[1]=x,b[2]=0;break;case 1:b[0]=k,b[1]=1,b[2]=0;break;case 2:b[0]=0,b[1]=1,b[2]=x;break;case 3:b[0]=0,b[1]=k,b[2]=1;break;case 4:b[0]=x,b[1]=0,b[2]=1;break;default:b[0]=1,b[1]=0,b[2]=k}return[255*(v*b[0]+(M=(1-v)*g)),255*(v*b[1]+M),255*(v*b[2]+M)]},a.hcg.hsv=function(u){var h=u[1]/100,g=h+u[2]/100*(1-h),b=0;return g>0&&(b=h/g),[u[0],100*b,100*g]},a.hcg.hsl=function(u){var h=u[1]/100,g=u[2]/100*(1-h)+.5*h,b=0;return g>
vendor: 1,439 bytes, line 1
10&&g<.5?b=h/(2*g):g>=.5&&g<1&&(b=h/(2*(1-g))),[u[0],100*b,100*g]},a.hcg.hwb=function(u){var h=u[1]/100,g=h+u[2]/100*(1-h);return[u[0],100*(g-h),100*(1-g)]},a.hwb.hcg=function(u){var g=1-u[2]/100,b=g-u[1]/100,_=0;return b<1&&(_=(g-b)/(1-b)),[u[0],100*b,100*_]},a.apple.rgb=function(u){return[u[0]/65535*255,u[1]/65535*255,u[2]/65535*255]},a.rgb.apple=function(u){return[u[0]/255*65535,u[1]/255*65535,u[2]/255*65535]},a.gray.rgb=function(u){return[u[0]/100*255,u[0]/100*255,u[0]/100*255]},a.gray.hsl=a.gray.hsv=function(u){return[0,0,u[0]]},a.gray.hwb=function(u){return[0,100,u[0]]},a.gray.cmyk=function(u){return[0,0,0,u[0]]},a.gray.lab=function(u){return[u[0],0,0]},a.gray.hex=function(u){var h=255&Math.round(u[0]/100*255),g=((h<<16)+(h<<8)+h).toString(16).toUpperCase();return"000000".substring(g.length)+g},a.rgb.gray=function(u){return[(u[0]+u[1]+u[2])/3/255*100]}});function pt(e){var t=function qt(){for(var e={},t=Object.keys(E),r=t.length,a=0;a<r;a++)e[t[a]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;)for(var a=r.pop(),i=Object.keys(E[a]),o=i.length,l=0;l<o;l++){var d=i[l],u=t[d];-1===u.distance&&(u.distance=t[a].distance+1,u.parent=a,r.unshift(d))}return t}function ee(e,t){return function(r){return t(e(r))}}function Zt(e,t){for(var r=[t[e].parent,e],a=E[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),a=ee(E[t[i].parent][i],a),i=t[i].parent;return a.conversion=r,a}var U={};
1Object.keys(E).forEach(function(e){U[e]={},Object.defineProperty(U[e],"channels",{value:E[e].channels}),Object.defineProperty(U[e],"labels",{value:E[e].labels});var t=function(e){for(var t=pt(e),r={},a=Object.keys(t),i=a.length,o=0;o<i;o++){var l=a[o];null!==t[l].parent&&(r[l]=Zt(l,t))}return r}(e);Object.keys(t).forEach(function(a){var i=t[a];U[e][a]=function ft(e){var t=function(r){if(null==r)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var a=e(r);if("object"==typeof a)for(var i=a.length,o=0;o<i;o++)a[o]=Math.round(a[o]);return a};return"conversion"in e&&(t.conversion=e.conversion),t}(i),U[e][a].raw=function le(e){var t=function(r){return null==r?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}(i)})});var ce=U,Jt={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},qe={getRgba:ta,getHsla:De,getRgb:function pr(e){var t=ta(e);return t&&t.slice(0,3)},getHsl:function ra(e){var t=De(e);return t&&t.slice(0,3)},getHwb:mr,getAlpha:function Rt(e){var t=ta(e);return t||(t=De(e))||(t=mr(e))?t[3]:void 0},hexString:function A(e,r){return r=void 0!==r&&3===e.length?r:e[3],"#"+re(e[0])+re(e[1])+re(e[2])+(r>=0&&r<1?re(Math.round(255*r)):"")},rgbString:function Un(e,t){return t<1||e[3]&&e[3]<1?Wa(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"}
vendor: 18,252 bytes, line 1
1,rgbaString:Wa,percentString:function br(e,t){return t<1||e[3]&&e[3]<1?aa(e,t):"rgb("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%)"},percentaString:aa,hslString:function Ea(e,t){return t<1||e[3]&&e[3]<1?Ce(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:Ce,hwbString:function za(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function na(e){return ia[e.slice(0,3)]}};function ta(e){if(e){var l=[0,0,0],d=1,u=e.match(/^#([a-fA-F0-9]{3,4})$/i),h="";if(u){h=(u=u[1])[3];for(var v=0;v<l.length;v++)l[v]=parseInt(u[v]+u[v],16);h&&(d=Math.round(parseInt(h+h,16)/255*100)/100)}else if(u=e.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){for(h=u[2],u=u[1],v=0;v<l.length;v++)l[v]=parseInt(u.slice(2*v,2*v+2),16);h&&(d=Math.round(parseInt(h,16)/255*100)/100)}else if(u=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(v=0;v<l.length;v++)l[v]=parseInt(u[v+1]);d=parseFloat(u[4])}else if(u=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(v=0;v<l.length;v++)l[v]=Math.round(2.55*parseFloat(u[v+1]));d=parseFloat(u[4])}else if(u=e.match(/(\w+)/)){if("transparent"==u[1])return[0,0,0,0];if(!(l=Jt[u[1]]))return}for(v=0;v<l.length;v++)l[v]=We(l[v],0,255);return d=d||0==d?We(d,0,1):1,l[3]=d,l}}function De(e){if(e){var r=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(r){var a=parseFloat(r[4]);return[We(parseInt(r[1]),0,360),We(parseFloat(r[2]),0,100),We(parseFloat(r[3]),0,100),We(isNaN(a)?1:a,0,1)]}}}function mr(e){if(e){var r=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(r){var a=parseFloat(r[4]);return[We(parseInt(r[1]),0,360),We(parseFloat(r[2]),0,100),We(parseFloat(r[3]),0,100),We(isNaN(a)?1:a,0,1)]}}}function Wa(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function aa(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function Ce(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function We(e,t,r){return Math.min(Math.max(t,e),r)}function re(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var ia={};for(var yr in Jt)ia[Jt[yr]]=yr;var ke=function(e){return e instanceof ke?e:this instanceof ke?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof e?(t=qe.getRgba(e))?this.setValues("rgb",t):(t=qe.getHsla(e))?this.setValues("hsl",t):(t=qe.getHwb(e))&&this.setValues("hwb",t):"object"==typeof e&&(void 0!==(t=e).r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):(void 0!==t.c||void 0!==t.cyan)&&this.setValues("cmyk",t)))):new ke(e);var t};ke.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return qe.hexString(this.values.rgb)},rgbString:function(){return qe.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return qe.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return qe.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return qe.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return qe.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return qe.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return qe.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],r=0;r<e.length;r++){var a=e[r]/255;t[r]=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,r=(t[0]+e)%360;return t[0]=r<0?360+r:r,this.setValues("hsl",t),this},mix:function(e,t){var r=this,a=e,i=void 0===t?.5:t,o=2*i-1,l=r.alpha()-a.alpha(),d=((o*l==-1?o:(o+l)/(1+o*l))+1)/2,u=1-d;return this.rgb(d*r.red()+u*a.red(),d*r.green()+u*a.green(),d*r.blue()+u*a.blue()).alpha(r.alpha()*i+a.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var a,i,e=new ke,t=this.values,r=e.values;for(var o in t)t.hasOwnProperty(o)&&("[object Array]"===(i={}.toString.call(a=t[o]))?r[o]=a.slice(0):"[object Number]"===i?r[o]=a:console.error("unexpected color value:",a));return e}},ke.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},ke.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},ke.prototype.getValues=function(e){for(var t=this.values,r={},a=0;a<e.length;a++)r[e.charAt(a)]=t[e][a];return 1!==t.alpha&&(r.a=t.alpha),r},ke.prototype.setValues=function(e,t){var l,u,r=this.values,a=this.spaces,i=this.maxes,o=1;if(this.valid=!0,"alpha"===e)o=t;else if(t.length)r[e]=t.slice(0,e.length),o=t[e.length];else if(void 0!==t[e.charAt(0)]){for(l=0;l<e.length;l++)r[e][l]=t[e.charAt(l)];o=t.a}else if(void 0!==t[a[e][0]]){var d=a[e];for(l=0;l<e.length;l++)r[e][l]=t[d[l]];o=t.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===o?r.alpha:o)),"alpha"===e)return!1;for(l=0;l<e.length;l++)u=Math.max(0,Math.min(i[e][l],r[e][l])),r[e][l]=Math.round(u);for(var h in a)h!==e&&(r[h]=ce[e][h](r[e]));return!0},ke.prototype.setSpace=function(e,t){var r=t[0];return void 0===r?this.getValues(e):("number"==typeof r&&(r=Array.prototype.slice.call(t)),this.setValues(e,r),this)},ke.prototype.setChannel=function(e,t,r){var a=this.values[e];return void 0===r?a[t]:(r===a[t]||(a[t]=r,this.setValues(e,a)),this)},typeof window<"u"&&(window.Color=ke);var Lt=ke;function Xt(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}var $={noop:function(){},uid:function(){var e=0;return function(){return e++}}(),isNullOrUndef:function(e){return null===e||typeof e>"u"},isArray:function(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},isFinite:function(e){return("number"==typeof e||e instanceof Number)&&isFinite(e)},valueOrDefault:function(e,t){return typeof e>"u"?t:e},valueAtIndexOrDefault:function(e,t,r){return $.valueOrDefault($.isArray(e)?e[t]:e,r)},callback:function(e,t,r){if(e&&"function"==typeof e.call)return e.apply(r,t)},each:function(e,t,r,a){var i,o,l;if($.isArray(e))if(o=e.length,a)for(i=o-1;i>=0;i--)t.call(r,e[i],i);else for(i=0;i<o;i++)t.call(r,e[i],i);else if($.isObject(e))for(o=(l=Object.keys(e)).length,i=0;i<o;i++)t.call(r,e[l[i]],l[i])},arrayEquals:function(e,t){var r,a,i,o;if(!e||!t||e.length!==t.length)return!1;for(r=0,a=e.length;r<a;++r)if(o=t[r],(i=e[r])instanceof Array&&o instanceof Array){if(!$.arrayEquals(i,o))return!1}else if(i!==o)return!1;return!0},clone:function(e){if($.isArray(e))return e.map($.clone);if($.isObject(e)){for(var t=Object.create(e),r=Object.keys(e),a=r.length,i=0;i<a;++i)t[r[i]]=$.clone(e[r[i]]);return t}return e},_merger:function(e,t,r,a){if(Xt(e)){var i=t[e],o=r[e];$.isObject(i)&&$.isObject(o)?$.merge(i,o,a):t[e]=$.clone(o)}},_mergerIf:function(e,t,r){if(Xt(e)){var a=t[e],i=r[e];$.isObject(a)&&$.isObject(i)?$.mergeIf(a,i):t.hasOwnProperty(e)||(t[e]=$.clone(i))}},merge:function(e,t,r){var o,l,d,u,h,a=$.isArray(t)?t:[t],i=a.length;if(!$.isObject(e))return e;for(o=(r=r||{}).merger||$._merger,l=0;l<i;++l)if($.isObject(t=a[l]))for(h=0,u=(d=Object.keys(t)).length;h<u;++h)o(d[h],e,t,r);return e},mergeIf:function(e,t){return $.merge(e,t,{merger:$._mergerIf})},extend:Object.assign||function(e){return $.merge(e,[].slice.call(arguments,1),{merger:function(t,r,a){r[t]=a[t]}})},inherits:function(e){var t=this,r=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},a=function(){this.constructor=r};return a.prototype=t.prototype,r.prototype=new a,r.extend=$.inherits,e&&$.extend(r.prototype,e),r.__super__=t.prototype,r},_deprecated:function(e,t,r,a){void 0!==t&&console.warn(e+': "'+r+'" is deprecated. Please use "'+a+'" instead')}},Me=$;$.callCallback=$.callback,$.indexOf=function(e,t,r){return Array.prototype.indexOf.call(e,t,r)},$.getValueOrDefault=$.valueOrDefault,$.getValueAtIndexOrDefault=$.valueAtIndexOrDefault;var Kt={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,r=0,a=1;return 0===e?0:1===e?1:(r||(r=.3),a<1?(a=1,t=r/4):t=r/(2*Math.PI)*Math.asin(1/a),-a*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r))},easeOutElastic:function(e){var t=1.70158,r=0,a=1;return 0===e?0:1===e?1:(r||(r=.3),a<1?(a=1,t=r/4):t=r/(2*Math.PI)*Math.asin(1/a),a*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},easeInOutElastic:function(e){var t=1.70158,r=0,a=1;return 0===e?0:2==(e/=.5)?1:(r||(r=.45),a<1?(a=1,t=r/4):t=r/(2*Math.PI)*Math.asin(1/a),e<1?a*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:a*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-Kt.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*Kt.easeInBounce(2*e):.5*Kt.easeOutBounce(2*e-1)+.5}},_r={effects:Kt};Me.easingEffects=Kt;var Pe=Math.PI,Qt=Pe/180,It=2*Pe,Te=Pe/2,ht=Pe/4,O=2*Pe/3,xr={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,r,a,i,o){if(o){var l=Math.min(o,i/2,a/2),d=t+l,u=r+l,h=t+a-l,v=r+i-l;e.moveTo(t,u),d<h&&u<v?(e.arc(d,u,l,-Pe,-Te),e.arc(h,u,l,-Te,0),e.arc(h,v,l,0,Te),e.arc(d,v,l,Te,Pe)):d<h?(e.moveTo(d,r),e.arc(h,u,l,-Te,Te),e.arc(d,u,l,Te,Pe+Te)):u<v?(e.arc(d,u,l,-Pe,0),e.arc(d,v,l,0,Pe)):e.arc(d,u,l,-Pe,Pe),e.closePath(),e.moveTo(t,r)}else e.rect(t,r,a,i)},drawPoint:function(e,t,r,a,i,o){var l,d,u,h,v,g=(o||0)*Qt;if(t&&"object"==typeof t&&("[object HTMLImageElement]"===(l=t.toString())||"[object HTMLCanvasElement]"===l))return e.save(),e.translate(a,i),e.rotate(g),e.drawImage(t,-t.width/2,-t.height/2,t.width,t.height),void e.restore();if(!(isNaN(r)||r<=0)){switch(e.beginPath(),t){default:e.arc(a,i,r,0,It),e.closePath();break;case"triangle":e.moveTo(a+Math.sin(g)*r,i-Math.cos(g)*r),g+=O,e.lineTo(a+Math.sin(g)*r,i-Math.cos(g)*r),g+=O,e.lineTo(a+Math.sin(g)*r,i-Math.cos(g)*r),e.closePath();break;case"rectRounded":h=r-(v=.516*r),d=Math.cos(g+ht)*h,u=Math.sin(g+ht)*h,e.arc(a-d,i-u,v,g-Pe,g-Te),e.arc(a+u,i-d,v,g-Te,g),e.arc(a+d,i+u,v,g,g+Te),e.arc(a-u,i+d,v,g+Te,g+Pe),e.closePath();break;case"rect":if(!o){h=Math.SQRT1_2*r,e.rect(a-h,i-h,2*h,2*h);break}g+=ht;case"rectRot":d=Math.cos(g)*r,u=Math.sin(g)*r,e.moveTo(a-d,i-u),e.lineTo(a+u,i-d),e.lineTo(a+d,i+u),e.lineTo(a-u,i+d),e.closePath();break;case"crossRot":g+=ht;case"cross":d=Math.cos(g)*r,u=Math.sin(g)*r,e.moveTo(a-d,i-u),e.lineTo(a+d,i+u),e.moveTo(a+u,i-d),e.lineTo(a-u,i+d);break;case"star":d=Math.cos(g)*r,u=Math.sin(g)*r,e.moveTo(a-d,i-u),e.lineTo(a+d,i+u),e.moveTo(a+u,i-d),e.lineTo(a-u,i+d),g+=ht,d=Math.cos(g)*r,u=Math.sin(g)*r,e.moveTo(a-d,i-u),e.lineTo(a+d,i+u),e.moveTo(a+u,i-d),e.lineTo(a-u,i+d);break;case"line":d=Math.cos(g)*r,u=Math.sin(g)*r,e.moveTo(a-d,i-u),e.lineTo(a+d,i+u);break;case"dash":e.moveTo(a,i),e.lineTo(a+Math.cos(g)*r,i+Math.sin(g)*r)}e.fill(),e.stroke()}},_isPointInArea:function(e,t){var r=1e-6;return e.x>t.left-r&&e.x<t.right+r&&e.y>t.top-r&&e.y<t.bottom+r},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,r,a){var i=r.steppedLine;if(i){if("middle"===i){var o=(t.x+r.x)/2;e.lineTo(o,a?r.y:t.y),e.lineTo(o,a?t.y:r.y)}else"after"===i&&!a||"after"!==i&&a?e.lineTo(t.x,r.y):e.lineTo(r.x,t.y);e.lineTo(r.x,r.y)}else r.tension?e.bezierCurveTo(a?t.controlPointPreviousX:t.controlPointNextX,a?t.controlPointPreviousY:t.controlPointNextY,a?r.controlPointNextX:r.controlPointPreviousX,a?r.controlPointNextY:r.controlPointPreviousY,r.x,r.y):e.lineTo(r.x,r.y)}},$n=xr;Me.clear=xr.clear,Me.drawRoundedRectangle=function(e){e.beginPath(),xr.roundedRect.apply(xr,arguments)};var Qe={_set:function(e,t){return Me.merge(this[e]||(this[e]={}),t)}};Qe._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var R=Qe,B=Me.valueOrDefault;var ae={toLineHeight:function(e,t){var r=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!r||"normal"===r[1])return 1.2*t;switch(e=+r[2],r[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,r,a,i;return Me.isObject(e)?(t=+e.top||0,r=+e.right||0,a=+e.bottom||0,i=+e.left||0):t=r=a=i=+e||0,{top:t,right:r,bottom:a,left:i,height:t+a,width:i+r}},_parseFont:function(e){var t=R.global,r=B(e.fontSize,t.defaultFontSize),a={family:B(e.fontFamily,t.defaultFontFamily),lineHeight:Me.options.toLineHeight(B(e.lineHeight,t.defaultLineHeight),r),size:r,style:B(e.fontStyle,t.defaultFontStyle),weight:null,string:""};return a.string=function oa(e){return!e||Me.isNullOrUndef(e.size)||Me.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(a),a},resolve:function(e,t,r,a){var o,l,d,i=!0;for(o=0,l=e.length;o<l;++o)if(void 0!==(d=e[o])&&(void 0!==t&&"function"==typeof d&&(d=d(t),i=!1),void 0!==r&&Me.isArray(d)&&(d=d[r],i=!1),void 0!==d))return a&&!i&&(a.cacheable=!1),d}}
1,bt={_factorize:function(e){var a,t=[],r=Math.sqrt(e);for(a=1;a<r;a++)e%a==0&&(t.push(a),t.push(e/a));return r===(0|r)&&t.push(r),t.sort(function(i,o){return i-o}).pop(),t},log10:Math.log10||function(e){var t=Math.log(e)*Math.LOG10E,r=Math.round(t);return e===Math.pow(10,r)?r:t}},Gn=bt;Me.log10=bt.log10;var m=Me,qn=$n,Zn=ae,er=Gn,Ha={getRtlAdapter:function(e,t,r){return e?function(e,t){return{x:function(r){return e+e+t-r},setWidth:function(r){t=r},textAlign:function(r){return"center"===r?r:"right"===r?"left":"right"},xPlus:function(r,a){return r-a},leftForLtr:function(r,a){return r-a}}}(t,r):{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}},overrideTextDirection:function(e,t){var r,a;("ltr"===t||"rtl"===t)&&(a=[(r=e.canvas.style).getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",t,"important"),e.prevTextDirection=a)},restoreTextDirection:function(e){var t=e.prevTextDirection;void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}};m.easing=_r,m.canvas=qn,m.options=Zn,m.math=er,m.rtl=Ha;var ct=function(e){m.extend(this,e),this.initialize.apply(this,arguments)};m.extend(ct.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=m.extend({},e._model)),e._start={},e},transition:function(e){var t=this,r=t._model,a=t._start,i=t._view;return r&&1!==e?(i||(i=t._view={}),a||(a=t._start={}),function Jn(e,t,r,a){var o,l,d,u,h,v,g,b,_,i=Object.keys(r);for(o=0,l=i.length;o<l;++o)if(v=r[d=i[o]],t.hasOwnProperty(d)||(t[d]=v),(u=t[d])!==v&&"_"!==d[0]){if(e.hasOwnProperty(d)||(e[d]=u),(g=typeof v)==typeof(h=e[d]))if("string"===g){if((b=Lt(h)).valid&&(_=Lt(v)).valid){t[d]=_.mix(b,a).rgbString();continue}}else if(m.isFinite(h)&&m.isFinite(v)){t[d]=h+(v-h)*a;continue}t[d]=v}}(a,i,r,e),t):(t._view=m.extend({},r),t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return m.isNumber(this._model.x)&&m.isNumber(this._model.y)}}),ct.extend=m.inherits;var Fe=ct,kr=Fe.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),sa=kr;Object.defineProperty(kr.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(kr.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),R._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:m.noop,onComplete:m.noop}});var la={animations:[],request:null,addAnimation:function(e,t,r,a){var o,l,i=this.animations;for(t.chart=e,t.startTime=Date.now(),t.duration=r,a||(e.animating=!0),o=0,l=i.length;o<l;++o)if(i[o].chart===e)return void(i[o]=t);i.push(t),1===i.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=m.findIndex(this.animations,function(r){return r.chart===e});-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=m.requestAnimFrame.call(window,function(){e.request=null,e.startDigest()}))},startDigest:function(){var e=this;e.advance(),e.animations.length>0&&e.requestAnimationFrame()},advance:function(){for(var t,r,a,i,e=this.animations,o=0;o<e.length;)r=(t=e[o]).chart,a=t.numSteps,i=Math.floor((Date.now()-t.startTime)/t.duration*a)+1,t.currentStep=Math.min(i,a),m.callback(t.render,[r,t],r),m.callback(t.onAnimationProgress,[t],r),t.currentStep>=a?(m.callback(t.onAnimationComplete,[t],r),r.animating=!1,e.splice(o,1)):++o}},At=m.options.resolve,fe=["push","pop","shift","splice","unshift"];function Ba(e,t){var r=e._chartjs;if(r){var a=r.listeners,i=a.indexOf(t);-1!==i&&a.splice(i,1),!(a.length>0)&&(fe.forEach(function(o){delete e[o]}),delete e._chartjs)}}var Mr=function(e,t){this.initialize(e,t)};m.extend(Mr.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var r=this;r.chart=e,r.index=t,r.linkScales(),r.addElements(),r._type=r.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),r=e.chart,a=r.scales,i=e.getDataset(),o=r.options.scales;(null===t.xAxisID||!(t.xAxisID in a)||i.xAxisID)&&(t.xAxisID=i.xAxisID||o.xAxes[0].id),(null===t.yAxisID||!(t.yAxisID in a)||i.yAxisID)&&(t.yAxisID=i.yAxisID||o.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID}
1,_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&Ba(this._data,this)},createMetaDataset:function(){var e=this,t=e.datasetElementType;return t&&new t({_chart:e.chart,_datasetIndex:e.index})},createMetaData:function(e){var t=this,r=t.dataElementType;return r&&new r({_chart:t.chart,_datasetIndex:t.index,_index:e})},addElements:function(){var i,o,e=this,t=e.getMeta(),r=e.getDataset().data||[],a=t.data;for(i=0,o=r.length;i<o;++i)a[i]=a[i]||e.createMetaData(i);t.dataset=t.dataset||e.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e=this,t=e.getDataset(),r=t.data||(t.data=[]);e._data!==r&&(e._data&&Ba(e._data,e),r&&Object.isExtensible(r)&&function ua(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),fe.forEach(function(r){var a="onData"+r.charAt(0).toUpperCase()+r.slice(1),i=e[r];Object.defineProperty(e,r,{configurable:!0,enumerable:!1,value:function(){var o=Array.prototype.slice.call(arguments),l=i.apply(this,o);return m.each(e._chartjs.listeners,function(d){"function"==typeof d[a]&&d[a].apply(d,o)}),l}})}))}(r,e),e._data=r),e.resyncElements()},_configure:function(){var e=this;e._config=m.merge(Object.create(null),[e.chart.options.datasets[e._type],e.getDataset()],{merger:function(t,r,a){"_meta"!==t&&"data"!==t&&m._merger(t,r,a)}})},_update:function(e){var t=this;t._configure(),t._cachedDataOpts=null,t.update(e)},update:m.noop,transition:function(e){for(var t=this.getMeta(),r=t.data||[],a=r.length,i=0;i<a;++i)r[i].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],r=t.length,a=0;for(e.dataset&&e.dataset.draw();a<r;++a)t[a].draw()},getStyle:function(e){var i,t=this,r=t.getMeta(),a=r.dataset;return t._configure(),(!1===(i=a&&void 0===e?t._resolveDatasetElementOptions(a||{}):t._resolveDataElementOptions(r.data[e=e||0]||{},e)).fill||null===i.fill)&&(i.backgroundColor=i.borderColor),i},_resolveDatasetElementOptions:function(e,t){var h,v,g,b,r=this,a=r.chart,i=r._config,o=e.custom||{},l=a.options.elements[r.datasetElementType.prototype._type]||{},d=r._datasetElementOptions,u={},_={chart:a,dataset:r.getDataset(),datasetIndex:r.index,hover:t};for(h=0,v=d.length;h<v;++h)g=d[h],b=t?"hover"+g.charAt(0).toUpperCase()+g.slice(1):g,u[g]=At([o[b],i[b],l[b]],_);return u},_resolveDataElementOptions:function(e,t){var r=this,a=e&&e.custom,i=r._cachedDataOpts;if(i&&!a)return i;var b,_,x,k,o=r.chart,l=r._config,d=o.options.elements[r.dataElementType.prototype._type]||{},u=r._dataElementOptions,h={},v={chart:o,dataIndex:t,dataset:r.getDataset(),datasetIndex:r.index},g={cacheable:!a};if(a=a||{},m.isArray(u))for(_=0,x=u.length;_<x;++_)h[k=u[_]]=At([a[k],l[k],d[k]],v,t,g);else for(_=0,x=(b=Object.keys(u)).length;_<x;++_)h[k=b[_]]=At([a[k],l[u[k]],l[k],d[k]],v,t,g);return g.cacheable&&(r._cachedDataOpts=Object.freeze(h)),h},removeHoverStyle:function(e){m.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],r=e._index,a=e.custom||{},i=e._model,o=m.getHoverColor;e.$previousStyle={backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:i.borderWidth},i.backgroundColor=At([a.hoverBackgroundColor,t.hoverBackgroundColor,o(i.backgroundColor)],void 0,r),i.borderColor=At([a.hoverBorderColor,t.hoverBorderColor,o(i.borderColor)],void 0,r),i.borderWidth=At([a.hoverBorderWidth,t.hoverBorderWidth,i.borderWidth],void 0,r)},_removeDatasetHoverStyle:function(){var e=this.getMeta().dataset;e&&this.removeHoverStyle(e)},_setDatasetHoverStyle:function(){var r,a,i,o,l,d,e=this.getMeta().dataset,t={};if(e){for(d=e._model,l=this._resolveDatasetElementOptions(e,!0),r=0,a=(o=Object.keys(l)).length;r<a;++r)t[i=o[r]]=d[i],d[i]=l[i];e.$previousStyle=t}},resyncElements:function(){var e=this,t=e.getMeta(),r=e.getDataset().data,a=t.data.length,i=r.length;i<a?t.data.splice(i,a-i):i>a&&e.insertElements(a,i-a)},insertElements:function(e,t){for(var r=0;r<t;++r)this.addElementAndReset(e+r)},onDataPush:function(){var e=arguments.length;this.insertElements(this.getDataset().data.length-e,e)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),Mr.extend=m.inherits;var ze=Mr,et=2*Math.PI;function ja(e,t){var r=t.startAngle,a=t.endAngle,i=t.pixelMargin,o=i/t.outerRadius,l=t.x,d=t.y;e.beginPath(),e.arc(l,d,t.outerRadius,r-o,a+o),t.innerRadius>i?e.arc(l,d,t.innerRadius-i,a+(o=i/t.innerRadius),r-o,!0):e.arc(l,d,i,a+Math.PI/2,r-Math.PI/2),e.closePath(),e.clip()}function Xn(e,t,r){var a="inner"===t.borderAlign;a?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),r.fullCircles&&function Va(e,t,r,a){var o,i=r.endAngle;
vendor: 4,170 bytes, line 1
1for(a&&(r.endAngle=r.startAngle+et,ja(e,r),r.endAngle=i,r.endAngle===r.startAngle&&r.fullCircles&&(r.endAngle+=et,r.fullCircles--)),e.beginPath(),e.arc(r.x,r.y,r.innerRadius,r.startAngle+et,r.startAngle,!0),o=0;o<r.fullCircles;++o)e.stroke();for(e.beginPath(),e.arc(r.x,r.y,t.outerRadius,r.startAngle,r.startAngle+et),o=0;o<r.fullCircles;++o)e.stroke()}(e,t,r,a),a&&ja(e,r),e.beginPath(),e.arc(r.x,r.y,t.outerRadius,r.startAngle,r.endAngle),e.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),e.closePath(),e.stroke()}R._set("global",{elements:{arc:{backgroundColor:R.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var Kn=Fe.extend({_type:"arc",inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var r=this._view;if(r){for(var a=m.getAngleFromPoint(r,{x:e,y:t}),i=a.angle,o=a.distance,l=r.startAngle,d=r.endAngle;d<l;)d+=et;for(;i>d;)i-=et;for(;i<l;)i+=et;return i>=l&&i<=d&&o>=r.innerRadius&&o<=r.outerRadius}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,r=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*r,y:e.y+Math.sin(t)*r}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,r=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*r,y:e.y+Math.sin(t)*r}},draw:function(){var i,e=this._chart.ctx,t=this._view,r="inner"===t.borderAlign?.33:0,a={x:t.x,y:t.y,innerRadius:t.innerRadius,outerRadius:Math.max(t.outerRadius-r,0),pixelMargin:r,startAngle:t.startAngle,endAngle:t.endAngle,fullCircles:Math.floor(t.circumference/et)};if(e.save(),e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,a.fullCircles){for(a.endAngle=a.startAngle+et,e.beginPath(),e.arc(a.x,a.y,a.outerRadius,a.startAngle,a.endAngle),e.arc(a.x,a.y,a.innerRadius,a.endAngle,a.startAngle,!0),e.closePath(),i=0;i<a.fullCircles;++i)e.fill();a.endAngle=a.startAngle+t.circumference%et}e.beginPath(),e.arc(a.x,a.y,a.outerRadius,a.startAngle,a.endAngle),e.arc(a.x,a.y,a.innerRadius,a.endAngle,a.startAngle,!0),e.closePath(),e.fill(),t.borderWidth&&Xn(e,t,a),e.restore()}}),Ua=m.valueOrDefault,$a=R.global.defaultColor;R._set("global",{elements:{line:{tension:.4,backgroundColor:$a,borderWidth:3,borderColor:$a,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var Qn=Fe.extend({_type:"line",draw:function(){var h,v,g,e=this,t=e._view,r=e._chart.ctx,a=t.spanGaps,i=e._children.slice(),o=R.global,l=o.elements.line,d=-1,u=e._loop;if(i.length){if(e._loop){for(h=0;h<i.length;++h)if(v=m.previousItem(i,h),!i[h]._view.skip&&v._view.skip){i=i.slice(h).concat(i.slice(0,h)),u=a;break}u&&i.push(i[0])}for(r.save(),r.lineCap=t.borderCapStyle||l.borderCapStyle,r.setLineDash&&r.setLineDash(t.borderDash||l.borderDash),r.lineDashOffset=Ua(t.borderDashOffset,l.borderDashOffset),r.lineJoin=t.borderJoinStyle||l.borderJoinStyle,r.lineWidth=Ua(t.borderWidth,l.borderWidth),r.strokeStyle=t.borderColor||o.defaultColor,r.beginPath(),(g=i[0]._view).skip||(r.moveTo(g.x,g.y),d=0),h=1;h<i.length;++h)g=i[h]._view,v=-1===d?m.previousItem(i,h):i[d],g.skip||(d!==h-1&&!a||-1===d?r.moveTo(g.x,g.y):m.canvas.lineTo(r,v._view,g),d=h);u&&r.closePath(),r.stroke(),r.restore()}}}),Ga=m.valueOrDefault,da=R.global.defaultColor;function qa(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}R._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:da,borderColor:da,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var ti=Fe.extend({_type:"point",inRange:function(e,t){var r=this._view;return!!r&&Math.pow(e-r.x,2)+Math.pow(t-r.y,2)<Math.pow(r.hitRadius+r.radius,2)},inLabelRange:qa,inXRange:qa,inYRange:function ei(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius},getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;
vendor: 8,305 bytes, line 1
1return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,r=this._chart.ctx,a=t.pointStyle,i=t.rotation,o=t.radius,l=t.x,d=t.y,u=R.global,h=u.defaultColor;t.skip||(void 0===e||m.canvas._isPointInArea(t,e))&&(r.strokeStyle=t.borderColor||h,r.lineWidth=Ga(t.borderWidth,u.elements.point.borderWidth),r.fillStyle=t.backgroundColor||h,m.canvas.drawPoint(r,a,o,l,d,i))}}),fa=R.global.defaultColor;function Sr(e){return e&&void 0!==e.width}function Za(e){var t,r,a,i,o;return Sr(e)?(t=e.x-(o=e.width/2),r=e.x+o,a=Math.min(e.y,e.base),i=Math.max(e.y,e.base)):(o=e.height/2,t=Math.min(e.x,e.base),r=Math.max(e.x,e.base),a=e.y-o,i=e.y+o),{left:t,top:a,right:r,bottom:i}}function Dr(e,t,r){return e===t?r:e===r?t:e}function Ja(e,t,r){var o,l,d,u,a=e.borderWidth,i=function ri(e){var t=e.borderSkipped,r={};return t&&(e.horizontal?e.base>e.x&&(t=Dr(t,"left","right")):e.base<e.y&&(t=Dr(t,"bottom","top")),r[t]=!0),r}(e);return m.isObject(a)?(o=+a.top||0,l=+a.right||0,d=+a.bottom||0,u=+a.left||0):o=l=d=u=+a||0,{t:i.top||o<0?0:o>r?r:o,r:i.right||l<0?0:l>t?t:l,b:i.bottom||d<0?0:d>r?r:d,l:i.left||u<0?0:u>t?t:u}}function tr(e,t,r){var a=null===t,i=null===r,o=!(!e||a&&i)&&Za(e);return o&&(a||t>=o.left&&t<=o.right)&&(i||r>=o.top&&r<=o.bottom)}R._set("global",{elements:{rectangle:{backgroundColor:fa,borderColor:fa,borderSkipped:"bottom",borderWidth:0}}});var ni=Fe.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,r=function ai(e){var t=Za(e),r=t.right-t.left,a=t.bottom-t.top,i=Ja(e,r/2,a/2);return{outer:{x:t.left,y:t.top,w:r,h:a},inner:{x:t.left+i.l,y:t.top+i.t,w:r-i.l-i.r,h:a-i.t-i.b}}}(t),a=r.outer,i=r.inner;e.fillStyle=t.backgroundColor,e.fillRect(a.x,a.y,a.w,a.h),(a.w!==i.w||a.h!==i.h)&&(e.save(),e.beginPath(),e.rect(a.x,a.y,a.w,a.h),e.clip(),e.fillStyle=t.borderColor,e.rect(i.x,i.y,i.w,i.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return tr(this._view,e,t)},inLabelRange:function(e,t){var r=this._view;return Sr(r)?tr(r,e,null):tr(r,null,t)},inXRange:function(e){return tr(this._view,e,null)},inYRange:function(e){return tr(this._view,null,e)},getCenterPoint:function(){var t,r,e=this._view;return Sr(e)?(t=e.x,r=(e.y+e.base)/2):(t=(e.x+e.base)/2,r=e.y),{x:t,y:r}},getArea:function(){var e=this._view;return Sr(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),Re={},ii=Qn,oi=ti,si=ni;Re.Arc=Kn,Re.Line=ii,Re.Point=oi,Re.Rectangle=si;var rr=m._deprecated,Nt=m.valueOrDefault;function ui(e,t,r){var d,u,a=r.barThickness,i=t.stackCount,o=t.pixels[e],l=m.isNullOrUndef(a)?function li(e,t){var a,i,o,l,r=e._length;for(o=1,l=t.length;o<l;++o)r=Math.min(r,Math.abs(t[o]-t[o-1]));for(o=0,l=e.getTicks().length;o<l;++o)i=e.getPixelForTick(o),r=o>0?Math.min(r,Math.abs(i-a)):r,a=i;return r}(t.scale,t.pixels):-1;return m.isNullOrUndef(a)?(d=l*r.categoryPercentage,u=r.barPercentage):(d=a*i,u=1),{chunk:d/i,ratio:u,start:o-d/2}}R._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),R._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var Ka=ze.extend({dataElementType:Re.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var t,r,e=this;ze.prototype.initialize.apply(e,arguments),(t=e.getMeta()).stack=e.getDataset().stack,t.bar=!0,r=e._getIndexScale().options,rr("bar chart",r.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),rr("bar chart",r.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),rr("bar chart",r.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),rr("bar chart",e._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),rr("bar chart",r.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var a,i,t=this,r=t.getMeta().data;for(t._ruler=t.getRuler(),a=0,i=r.length;a<i;++a)t.updateElement(r[a],a,e)},updateElement:function(e,t,r){var a=this,i=a.getMeta(),o=a.getDataset(),l=a._resolveDataElementOptions(e,t);e._xScale=a.getScaleForId(i.xAxisID),e._yScale=a.getScaleForId(i.yAxisID),e._datasetIndex=a.index,e._index=t,e._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderSkipped:l.borderSkipped,borderWidth:l.borderWidth,datasetLabel:o.label,label:a.chart.data.labels[t]},m.isArray(o.data[t])&&(e._model.borderSkipped=null),a._updateElementGeometry(e,t,r,l),e.pivot()},_updateElementGeometry:function(e,t,r,a){var i=this,o=e._model,l=i._getValueScale(),d=l.getBasePixel(),u=l.isHorizontal(),h=i._ruler||i.getRuler(),v=i.calculateBarValuePixels(i.index,t,a),g=i.calculateBarIndexPixels(i.index,t,h,a);o.horizontal=u,o.base=r?d:v.base,o.x=u?r?d:v.head:g.center,o.y=u?g.center:r?d:v.head,o.height=u?g.size:void 0,o.width=u?void 0:g.size},_getStacks:function(e){var d,u,r=this._getIndexScale(),a=r._getMatchingVisibleMetas(this._type),i=r.options.stacked,o=a.length,l=[];for(d=0;d<o&&(u=a[d],(!1===i||-1===l.indexOf(u.stack)||void 0===i&&void 0===u.stack)&&l.push(u.stack),u.index!==e);++d);return l},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var r=this._getStacks(e),a=void 0!==t?r.indexOf(t):-1;return-1===a?r.length-1:a},getRuler:function(){var a,i,e=this,t=e._getIndexScale(),r=[];for(a=0,i=e.getMeta().data.length;a<i;++a)r.push(t.getPixelForValue(null,a,e.index));return{pixels:r,start:t._startPixel,end:t._endPixel,stackCount:e.getStackCount(),scale:t}},calculateBarValuePixels:function(e,t,r){var M,D,F,L,j,H,X,a=this,i=a.chart,o=a._getValueScale(),l=o.isHorizontal(),d=i.data.datasets,u=o._getMatchingVisibleMetas(a._type),h=o._parseValue(d[e].data[t]),v=r.minBarLength,g=o.options.stacked,b=a.getMeta().stack,_=void 0===h.start?0:h.max>=0&&h.min>=0?h.min:h.max,x=void 0===h.start?h.end:h.max>=0&&h.min>=0?h.max-h.min:h.min-h.max,k=u.length;if(g||void 0===g&&void 0!==b)for(M=0;M<k&&(D=u[M]).index!==e;++M)D.stack===b&&(F=void 0===(X=o._parseValue(d[D.index].data[t])).start?X.end:X.min>=0&&X.max>=0?X.max:X.min,(h.min<0&&F<0||h.max>=0&&F>0)&&(_+=F));return L=o.getPixelForValue(_),H=(j=o.getPixelForValue(_+x))-L,void 0!==v&&Math.abs(H)<v&&(H=v,j=x>=0&&!l||x<0&&l?L-v:L+v),{size:H,base:L,head:j,center:j+H/2}},calculateBarIndexPixels:function(e,t,r,a){var o="flex"===a.barThickness?function di(e,t,r){var u,a=t.pixels,i=a[e],o=e>0?a[e-1]:null,l=e<a.length-1?a[e+1]:null,d=r.categoryPercentage;return null===o&&(o=i-(null===l?t.end-t.start:l-i)),null===l&&(l=i+i-o),u=i-(i-Math.min(o,l))/2*d,{chunk:Math.abs(l-o)/2*d/t.stackCount,ratio:r.barPercentage,start:u}}(t,r,a):ui(t,r,a),l=this.getStackIndex(e,this.getMeta().stack),d=o.start+o.chunk*l+o.chunk/2,u=Math.min(Nt(a.maxBarThickness,1/0),o.chunk*o.ratio);return{base:d-u/2,head:d+u/2,center:d,size:u}},draw:function(){var e=this,t=e.chart,r=e._getValueScale(),a=e.getMeta().data,i=e.getDataset(),o=a.length,l=0;for(m.canvas.clipArea(t.ctx,t.chartArea);l<o;++l){var d=r._parseValue(i.data[l]);!isNaN(d.min)&&!isNaN(d.max)&&a[l].draw()}m.canvas.unclipArea(t.ctx)},_resolveDataElementOptions:function(){var e=this,t=m.extend({},ze.prototype._resolveDataElementOptions.apply(e,arguments)),r=e._getIndexScale().options,a=e._getValueScale().options;return t.barPercentage=Nt(r.barPercentage,t.barPercentage),t.barThickness=Nt(r.barThickness,t.barThickness),t.categoryPercentage=Nt(r.categoryPercentage,t.categoryPercentage),t.maxBarThickness=Nt(r.maxBarThickness,t.maxBarThickness),t.minBarLength=Nt(a.minBarLength,t.minBarLength),t}}),ha=m.valueOrDefault,fi=m.options.resolve;R._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return(t.datasets[e.datasetIndex].label||"")+": ("+e.xLabel+", "+e.yLabel+", "+t.datasets[e.datasetIndex].data[e.index].r+")"}}}});var hi=ze.extend({dataElementType:Re.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroun
1dColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(e){var t=this,r=t.getMeta();m.each(r.data,function(i,o){t.updateElement(i,o,e)})},updateElement:function(e,t,r){var a=this,i=a.getMeta(),o=e.custom||{},l=a.getScaleForId(i.xAxisID),d=a.getScaleForId(i.yAxisID),u=a._resolveDataElementOptions(e,t),h=a.getDataset().data[t],v=a.index,g=r?l.getPixelForDecimal(.5):l.getPixelForValue("object"==typeof h?h:NaN,t,v),b=r?d.getBasePixel():d.getPixelForValue(h,t,v);e._xScale=l,e._yScale=d,e._options=u,e._datasetIndex=v,e._index=t,e._model={backgroundColor:u.backgroundColor,borderColor:u.borderColor,borderWidth:u.borderWidth,hitRadius:u.hitRadius,pointStyle:u.pointStyle,rotation:u.rotation,radius:r?0:u.radius,skip:o.skip||isNaN(g)||isNaN(b),x:g,y:b},e.pivot()},setHoverStyle:function(e){var t=e._model,r=e._options,a=m.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=ha(r.hoverBackgroundColor,a(r.backgroundColor)),t.borderColor=ha(r.hoverBorderColor,a(r.borderColor)),t.borderWidth=ha(r.hoverBorderWidth,r.borderWidth),t.radius=r.radius+r.hoverRadius},_resolveDataElementOptions:function(e,t){var r=this,a=r.chart,i=r.getDataset(),o=e.custom||{},l=i.data[t]||{},d=ze.prototype._resolveDataElementOptions.apply(r,arguments),u={chart:a,dataIndex:t,dataset:i,datasetIndex:r.index};return r._cachedDataOpts===d&&(d=m.extend({},d)),d.radius=fi([o.radius,l.r,r._config.radius,a.options.elements.point.radius],u,t),d}}),Yt=m.valueOrDefault,_t=Math.PI,Ze=2*_t,nt=_t/2;R._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var o,l,d,t=document.createElement("ul"),r=e.data,a=r.datasets,i=r.labels;if(t.setAttribute("class",e.id+"-legend"),a.length)for(o=0,l=a[0].data.length;o<l;++o)(d=t.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[0].backgroundColor[o],i[o]&&d.appendChild(document.createTextNode(i[o]));return t.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(r,a){var i=e.getDatasetMeta(0),o=i.controller.getStyle(a);return{text:r,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,hidden:isNaN(t.datasets[0].data[a])||i.data[a].hidden,index:a}}):[]}},onClick:function(e,t){var i,o,l,r=t.index,a=this.chart;for(i=0,o=(a.data.datasets||[]).length;i<o;++i)(l=a.getDatasetMeta(i)).data[r]&&(l.data[r].hidden=!l.data[r].hidden);a.update()}},cutoutPercentage:50,rotation:-nt,circumference:Ze,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var r=t.labels[e.index],a=": "+t.datasets[e.datasetIndex].data[e.index];return m.isArray(r)?(r=r.slice())[0]+=a:r+=a,r}}}});var Cr=ze.extend({dataElementType:Re.Arc,linkScales:m.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(e){for(var t=0,r=0;r<e;++r)this.chart.isDatasetVisible(r)&&++t;return t},update:function(e){var M,D,t=this,r=t.chart,a=r.chartArea,i=r.options,o=1,l=1,d=0,u=0,h=t.getMeta(),v=h.data,g=i.cutoutPercentage/100||0,b=i.circumference,_=t._getRingWeight(t.index);if(b<Ze){var F=i.rotation%Ze,L=(F+=F>=_t?-Ze:F<-_t?Ze:0)+b,j=Math.cos(F),H=Math.sin(F),X=Math.cos(L),Z=Math.sin(L),oe=F<=0&&L>=0||L>=Ze,K=F<=nt&&L>=nt||L>=Ze+nt,be=F<=-nt&&L>=-nt||L>=_t+nt,ge=F===-_t||L>=_t?-1:Math.min(j,j*g,X,X*g),_e=be?-1:Math.min(H,H*g,Z,Z*g),Ut=oe?1:Math.max(j,j*g,X,X*g),$t=K?1:Math.max(H,H*g,Z,Z*g);o=(Ut-ge)/2,l=($t-_e)/2,d=-(Ut+ge)/2,u=-($t+_e)/2}for(M=0,D=v.length;M<D;++M)v[M]._options=t._resolveDataElementOptions(v[M],M);for(r.borderWidth=t.getMaxBorderWidth(),r.outerRadius=Math.max(Math.min((a.right-a.left-r.borderWidth)/o,(a.bottom-a.top-r.borderWidth)/l)/2,0),r.innerRadius=Math.max(r.outerRadius*g,0),r.radiusLength=(r.outerRadius-r.innerRadius)/(t._getVisibleDatasetWeightTotal()||1),r.offsetX=d*r.outerRadius,r.offsetY=u*r.outerRadius,h.total=t.calculateTotal(),t.outerRadius=r.outerRadius-r.radiusLength*t._getRingWeightOffset(t.index),t.innerRadius=Math.max(t.outerRadius-r.radiusLength*_,0),M=0,D=v.length;M<D;++M)t.updateElement(v[M],M,e)},updateElement:function(e,t,r){var a=this,i=a.chart,o=i.chartArea,l=i.options,d=l.animation,u=(o.left+o.right)/2,h=(o.top+o.bottom)/2,v=l.rotation,g=l.rotation,b=a.getDataset(),_=r&&d.animateRotate||e.hidden?0:a.calculateCircumference(b.data[t])*(l.circumference/
1Ze),M=e._options||{};m.extend(e,{_datasetIndex:a.index,_index:t,_model:{backgroundColor:M.backgroundColor,borderColor:M.borderColor,borderWidth:M.borderWidth,borderAlign:M.borderAlign,x:u+i.offsetX,y:h+i.offsetY,startAngle:v,endAngle:g,circumference:_,outerRadius:r&&d.animateScale?0:a.outerRadius,innerRadius:r&&d.animateScale?0:a.innerRadius,label:m.valueAtIndexOrDefault(b.label,t,i.data.labels[t])}});var D=e._model;(!r||!d.animateRotate)&&(D.startAngle=0===t?l.rotation:a.getMeta().data[t-1]._model.endAngle,D.endAngle=D.startAngle+D.circumference),e.pivot()},calculateTotal:function(){var a,e=this.getDataset(),t=this.getMeta(),r=0;return m.each(t.data,function(i,o){a=e.data[o],!isNaN(a)&&!i.hidden&&(r+=Math.abs(a))}),r},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?Ze*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var i,o,l,d,u,h,v,g,r=0,a=this.chart;if(!e)for(i=0,o=a.data.datasets.length;i<o;++i)if(a.isDatasetVisible(i)){e=(l=a.getDatasetMeta(i)).data,i!==this.index&&(u=l.controller);break}if(!e)return 0;for(i=0,o=e.length;i<o;++i)d=e[i],u?(u._configure(),h=u._resolveDataElementOptions(d,i)):h=d._options,"inner"!==h.borderAlign&&(r=(g=h.hoverBorderWidth)>(r=(v=h.borderWidth)>r?v:r)?g:r);return r},setHoverStyle:function(e){var t=e._model,r=e._options,a=m.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=Yt(r.hoverBackgroundColor,a(r.backgroundColor)),t.borderColor=Yt(r.hoverBorderColor,a(r.borderColor)),t.borderWidth=Yt(r.hoverBorderWidth,r.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(t+=this._getRingWeight(r));return t},_getRingWeight:function(e){return Math.max(Yt(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});R._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),R._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var ci=Ka.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),it=m.valueOrDefault,vi=m.options.resolve,ca=m.canvas._isPointInArea;function Qa(e,t){var r=e&&e.options.ticks||{},a=r.reverse,i=void 0===r.min?t:0,o=void 0===r.max?t:0;return{start:a?o:i,end:a?i:o}}R._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var en=ze.extend({datasetElementType:Re.Line,dataElementType:Re.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroun
1dColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(e){var u,h,t=this,r=t.getMeta(),a=r.dataset,i=r.data||[],l=t._config,d=t._showLine=it(l.showLine,t.chart.options.showLines);for(t._xScale=t.getScaleForId(r.xAxisID),t._yScale=t.getScaleForId(r.yAxisID),d&&(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),a._scale=t._yScale,a._datasetIndex=t.index,a._children=i,a._model=t._resolveDatasetElementOptions(a),a.pivot()),u=0,h=i.length;u<h;++u)t.updateElement(i[u],u,e);for(d&&0!==a._model.tension&&t.updateBezierControlPoints(),u=0,h=i.length;u<h;++u)i[u].pivot()},updateElement:function(e,t,r){var b,_,a=this,i=a.getMeta(),o=e.custom||{},l=a.getDataset(),d=a.index,u=l.data[t],h=a._xScale,v=a._yScale,g=i.dataset._model,x=a._resolveDataElementOptions(e,t);b=h.getPixelForValue("object"==typeof u?u:NaN,t,d),_=r?v.getBasePixel():a.calculatePointY(u,t,d),e._xScale=h,e._yScale=v,e._options=x,e._datasetIndex=d,e._index=t,e._model={x:b,y:_,skip:o.skip||isNaN(b)||isNaN(_),radius:x.radius,pointStyle:x.pointStyle,rotation:x.rotation,backgroundColor:x.backgroundColor,borderColor:x.borderColor,borderWidth:x.borderWidth,tension:it(o.tension,g?g.tension:0),steppedLine:!!g&&g.steppedLine,hitRadius:x.hitRadius}},_resolveDatasetElementOptions:function(e){var t=this,r=t._config,a=e.custom||{},i=t.chart.options,o=i.elements.line,l=ze.prototype._resolveDatasetElementOptions.apply(t,arguments);return l.spanGaps=it(r.spanGaps,i.spanGaps),l.tension=it(r.lineTension,o.tension),l.steppedLine=vi([a.steppedLine,r.steppedLine,o.stepped]),l.clip=function mi(e){var t,r,a,i;return m.isObject(e)?(t=e.top,r=e.right,a=e.bottom,i=e.left):t=r=a=i=e,{top:t,right:r,bottom:a,left:i}}(it(r.clip,function gi(e,t,r){var a=r/2,i=Qa(e,a),o=Qa(t,a);return{top:o.end,right:i.end,bottom:o.start,left:i.start}}(t._xScale,t._yScale,l.borderWidth))),l},calculatePointY:function(e,t,r){var u,v,g,b,_,x,i=this.chart,o=this._yScale,l=0,d=0;if(o.options.stacked){for(b=+o.getRightValue(e),x=(_=i._getSortedVisibleDatasetMetas()).length,u=0;u<x&&(v=_[u]).index!==r;++u)"line"===v.type&&v.yAxisID===o.id&&((g=+o.getRightValue(i.data.datasets[v.index].data[t]))<0?d+=g||0:l+=g||0);return o.getPixelForValue(b<0?d+b:l+b)}return o.getPixelForValue(e)},updateBezierControlPoints:function(){var l,d,u,h,t=this.chart,r=this.getMeta(),a=r.dataset._model,i=t.chartArea,o=r.data||[];function v(g,b,_){return Math.max(Math.min(g,_),b)}if(a.spanGaps&&(o=o.filter(function(g){return!g._model.skip})),"monotone"===a.cubicInterpolationMode)m.splineCurveMonotone(o);else for(l=0,d=o.length;l<d;++l)u=o[l]._model,h=m.splineCurve(m.previousItem(o,l)._model,u,m.nextItem(o,l)._model,a.tension),u.controlPointPreviousX=h.previous.x,u.controlPointPreviousY=h.previous.y,u.controlPointNextX=h.next.x,u.controlPointNextY=h.next.y;if(t.options.elements.line.capBezierPoints)for(l=0,d=o.length;l<d;++l)ca(u=o[l]._model,i)&&(l>0&&ca(o[l-1]._model,i)&&(u.controlPointPreviousX=v(u.controlPointPreviousX,i.left,i.right),u.controlPointPreviousY=v(u.controlPointPreviousY,i.top,i.bottom)),l<o.length-1&&ca(o[l+1]._model,i)&&(u.controlPointNextX=v(u.controlPointNextX,i.left,i.right),u.controlPointNextY=v(u.controlPointNextY,i.top,i.bottom)))},draw:function(){var u,e=this,t=e.chart,r=e.getMeta(),a=r.data||[],i=t.chartArea,o=t.canvas,l=0,d=a.length;for(e._showLine&&(m.canvas.clipArea(t.ctx,{left:!1===(u=r.dataset._model.clip).left?0:i.left-u.left,right:!1===u.right?o.width:i.right+u.right,top:!1===u.top?0:i.top-u.top,bottom:!1===u.bottom?o.height:i.bottom+u.bottom}),r.dataset.draw(),m.canvas.unclipArea(t.ctx));l<d;++l)a[l].draw(i)},setHoverStyle:function(e){var t=e._model,r=e._options,a=m.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius}
vendor: 8,279 bytes, line 1
1,t.backgroundColor=it(r.hoverBackgroundColor,a(r.backgroundColor)),t.borderColor=it(r.hoverBorderColor,a(r.borderColor)),t.borderWidth=it(r.hoverBorderWidth,r.borderWidth),t.radius=it(r.hoverRadius,r.radius)}}),pi=m.options.resolve;R._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var o,l,d,t=document.createElement("ul"),r=e.data,a=r.datasets,i=r.labels;if(t.setAttribute("class",e.id+"-legend"),a.length)for(o=0,l=a[0].data.length;o<l;++o)(d=t.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[0].backgroundColor[o],i[o]&&d.appendChild(document.createTextNode(i[o]));return t.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(r,a){var i=e.getDatasetMeta(0),o=i.controller.getStyle(a);return{text:r,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,hidden:isNaN(t.datasets[0].data[a])||i.data[a].hidden,index:a}}):[]}},onClick:function(e,t){var i,o,l,r=t.index,a=this.chart;for(i=0,o=(a.data.datasets||[]).length;i<o;++i)(l=a.getDatasetMeta(i)).data[r].hidden=!l.data[r].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}});var bi=ze.extend({dataElementType:Re.Arc,linkScales:m.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var u,h,v,t=this,r=t.getDataset(),a=t.getMeta(),i=t.chart.options.startAngle||0,o=t._starts=[],l=t._angles=[],d=a.data;for(t._updateRadius(),a.count=t.countVisibleElements(),u=0,h=r.data.length;u<h;u++)o[u]=i,v=t._computeAngle(u),l[u]=v,i+=v;for(u=0,h=d.length;u<h;++u)d[u]._options=t._resolveDataElementOptions(d[u],u),t.updateElement(d[u],u,e)},_updateRadius:function(){var e=this,t=e.chart,r=t.chartArea,a=t.options,i=Math.min(r.right-r.left,r.bottom-r.top);t.outerRadius=Math.max(i/2,0),t.innerRadius=Math.max(a.cutoutPercentage?t.outerRadius/100*a.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,r){var a=this,i=a.chart,o=a.getDataset(),l=i.options,d=l.animation,u=i.scale,h=i.data.labels,v=u.xCenter,g=u.yCenter,b=l.startAngle,_=e.hidden?0:u.getDistanceFromCenterForValue(o.data[t]),x=a._starts[t],k=x+(e.hidden?0:a._angles[t]),M=d.animateScale?0:u.getDistanceFromCenterForValue(o.data[t]),D=e._options||{};m.extend(e,{_datasetIndex:a.index,_index:t,_scale:u,_model:{backgroundColor:D.backgroundColor,borderColor:D.borderColor,borderWidth:D.borderWidth,borderAlign:D.borderAlign,x:v,y:g,innerRadius:0,outerRadius:r?M:_,startAngle:r&&d.animateRotate?b:x,endAngle:r&&d.animateRotate?b:k,label:m.valueAtIndexOrDefault(h,t,h[t])}}),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),r=0;return m.each(t.data,function(a,i){!isNaN(e.data[i])&&!a.hidden&&r++}),r},setHoverStyle:function(e){var t=e._model,r=e._options,a=m.getHoverColor,i=m.valueOrDefault;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=i(r.hoverBackgroundColor,a(r.backgroundColor)),t.borderColor=i(r.hoverBorderColor,a(r.borderColor)),t.borderWidth=i(r.hoverBorderWidth,r.borderWidth)},_computeAngle:function(e){var t=this,r=this.getMeta().count,a=t.getDataset(),i=t.getMeta();return isNaN(a.data[e])||i.data[e].hidden?0:pi([t.chart.options.elements.arc.angle,2*Math.PI/r],{chart:t.chart,dataIndex:e,dataset:a,datasetIndex:t.index},e)}});R._set("pie",m.clone(R.doughnut)),R._set("pie",{cutoutPercentage:0});var tn=Cr,xt=m.valueOrDefault;R._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var rn=ze.extend({datasetElementType:Re.Line,dataElementType:Re.Point,linkScales:m.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var d,u,t=this,r=t.getMeta(),a=r.dataset,i=r.data||[],o=t.chart.scale,l=t._config;for(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),a._scale=o,a._datasetIndex=t.index,a._children=i,a._loop=!0,a._model=t._resolveDatasetElementOptions(a),a.pivot(),d=0,u=i.length;d<u;++d)t.updateElement(i[d],d,e);for(t.updateBezierControlPoints(),d=0,u=i.length;d<u;++d)i[d].pivot()},updateElement:function(e,t,r){var a=this,i=e.custom||{},o=a.getDataset(),l=a.chart.scale,d=l.getPointPositionForValue(t,o.data[t]),u=a._resolveDataElementOptions(e,t),h=a.getMeta().dataset._model,v=r?l.xCenter:d.x,g=r?l.yCenter:d.y;e._scale=l,e._options=u,e._datasetIndex=a.index,e._index=t,e._model={x:v,y:g,skip:i.skip||isNaN(v)||isNaN(g),radius:u.radius,pointStyle:u.pointStyle,rotation:u.rotation,backgroundColor:u.backgroundColor,borderColor:u.borderColor,borderWidth:u.borderWidth,tension:xt(i.tension,h?h.tension:0),hitRadius:u.hitRadius}},_resolveDatasetElementOptions:function(){var e=this,t=e._config,r=e.chart.options,a=ze.prototype._resolveDatasetElementOptions.apply(e,arguments);return a.spanGaps=xt(t.spanGaps,r.spanGaps),a.tension=xt(t.lineTension,r.elements.line.tension),a},updateBezierControlPoints:function(){var i,o,l,d,t=this.getMeta(),r=this.chart.chartArea,a=t.data||[];function u(h,v,g){return Math.max(Math.min(h,g),v)}for(t.dataset._model.spanGaps&&(a=a.filter(function(h){return!h._model.skip})),i=0,o=a.length;i<o;++i)l=a[i]._model,d=m.splineCurve(m.previousItem(a,i,!0)._model,l,m.nextItem(a,i,!0)._model,l.tension),l.controlPointPreviousX=u(d.previous.x,r.left,r.right),l.controlPointPreviousY=u(d.previous.y,r.top,r.bottom),l.controlPointNextX=u(d.next.x,r.left,r.right),l.controlPointNextY=u(d.next.y,r.top,r.bottom)},setHoverStyle:function(e){var t=e._model,r=e._options,a=m.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=xt(r.hoverBackgroundColor,a(r.backgroundColor)),t.borderColor=xt(r.hoverBorderColor,a(r.borderColor)),t.borderWidth=xt(r.hoverBorderWidth,r.borderWidth),t.radius=xt(r.hoverRadius,r.radius)}});R._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),R._set("global",{datasets:{scatter:{showLine:!1}}});var an={bar:Ka,bubble:hi,doughnut:Cr,horizontalBar:ci,line:en,polarArea:bi,pie:tn,radar:rn,scatter:en};function He(e,t){return e.native?{x:e.x,y:e.y}:m.getRelativePosition(e,t)}function vt(e,t){var a,i,o,l,d,u,r=e._getSortedVisibleDatasetMetas();for(i=0,l=r.length;i<l;++i)for(o=0,d=(a=r[i].data).length;o<d;++o)(u=a[o])._view.skip||t(u)}function Pr(e,t){var r=[];return vt(e,function(a){a.inRange(t.x,t.y)&&r.push(a)}),r}function Tr(e,t,r,a){var i=Number.POSITIVE_INFINITY,o=[];return vt(e,function(l){if(!r||l.inRange(t.x,t.y)){var d=l.getCenterPoint(),u=a(t,d);u<i?(o=[l],i=u):u===i&&o.push(l)}}),o}function ar(e){var t=-1!==e.indexOf("x"),r=-1!==e.indexOf("y");return function(a,i){var o=t?Math.abs(a.x-i.x):0,l=r?Math.abs(a.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(l,2))}}function Or(e,t,r){var a=He(t,e);r.axis=r.axis||"x";var i=ar(r.axis),o=r.intersect?Pr(e,a):Tr(e,a,!1,i),l=[];
1return o.length?(e._getSortedVisibleDatasetMetas().forEach(function(d){var u=d.data[o[0]._index];u&&!u._view.skip&&l.push(u)}),l):[]}var Le={modes:{single:function(e,t){var r=He(t,e),a=[];return vt(e,function(i){if(i.inRange(r.x,r.y))return a.push(i),a}),a.slice(0,1)},label:Or,index:Or,dataset:function(e,t,r){var a=He(t,e);r.axis=r.axis||"xy";var i=ar(r.axis),o=r.intersect?Pr(e,a):Tr(e,a,!1,i);return o.length>0&&(o=e.getDatasetMeta(o[0]._datasetIndex).data),o},"x-axis":function(e,t){return Or(e,t,{intersect:!1})},point:function(e,t){return Pr(e,He(t,e))},nearest:function(e,t,r){var a=He(t,e);r.axis=r.axis||"xy";var i=ar(r.axis);return Tr(e,a,r.intersect,i)},x:function(e,t,r){var a=He(t,e),i=[],o=!1;return vt(e,function(l){l.inXRange(a.x)&&i.push(l),l.inRange(a.x,a.y)&&(o=!0)}),r.intersect&&!o&&(i=[]),i},y:function(e,t,r){var a=He(t,e),i=[],o=!1;return vt(e,function(l){l.inYRange(a.y)&&i.push(l),l.inRange(a.x,a.y)&&(o=!0)}),r.intersect&&!o&&(i=[]),i}}},va=m.extend;function nr(e,t){return m.where(e,function(r){return r.pos===t})}function Fr(e,t){return e.sort(function(r,a){var i=t?a:r,o=t?r:a;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function Rr(e,t,r,a){return Math.max(e[r],t[r])+Math.max(e[a],t[a])}function ki(e,t,r){var o,l,a=r.box,i=e.maxPadding;if(r.size&&(e[r.pos]-=r.size),r.size=r.horizontal?a.height:a.width,e[r.pos]+=r.size,a.getPadding){var d=a.getPadding();i.top=Math.max(i.top,d.top),i.left=Math.max(i.left,d.left),i.bottom=Math.max(i.bottom,d.bottom),i.right=Math.max(i.right,d.right)}if(o=t.outerWidth-Rr(i,e,"left","right"),l=t.outerHeight-Rr(i,e,"top","bottom"),o!==e.w||l!==e.h){e.w=o,e.h=l;var u=r.horizontal?[o,e.w]:[l,e.h];return!(u[0]===u[1]||isNaN(u[0])&&isNaN(u[1]))}}function on(e,t){var r=t.maxPadding;return function a(i){var o={left:0,top:0,right:0,bottom:0};return i.forEach(function(l){o[l]=Math.max(t[l],r[l])}),o}(e?["left","right"]:["top","bottom"])}function Lr(e,t,r){var i,o,l,d,u,h,a=[];for(i=0,o=e.length;i<o;++i)(d=(l=e[i]).box).update(l.width||t.w,l.height||t.h,on(l.horizontal,t)),ki(t,r,l)&&(h=!0,a.length&&(u=!0)),d.fullWidth||a.push(l);return u&&Lr(a,t,r)||h}function sn(e,t,r){var l,d,u,h,a=r.padding,i=t.x,o=t.y;for(l=0,d=e.length;l<d;++l)h=(u=e[l]).box,u.horizontal?(h.left=h.fullWidth?a.left:t.left,h.right=h.fullWidth?r.outerWidth-a.right:t.left+t.w,h.top=o,h.bottom=o+h.height,h.width=h.right-h.left,o=h.bottom):(h.left=i,h.right=i+h.width,h.top=t.top,h.bottom=t.top+t.h,h.height=h.bottom-h.top,i=h.right);t.x=i,t.y=o}R._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var $e={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(){t.draw.apply(t,arguments)}}]},e.boxes.push(t)},removeBox:function(e,t){var r=e.boxes?e.boxes.indexOf(t):-1;-1!==r&&e.boxes.splice(r,1)},configure:function(e,t,r){for(var l,a=["fullWidth","position","weight"],i=a.length,o=0;o<i;++o)r.hasOwnProperty(l=a[o])&&(t[l]=r[l])},update:function(e,t,r){if(e){var i=m.options.toPadding((e.options.layout||{}).padding),o=t-i.width,l=r-i.height,d=function wi(e){var t=function _i(e){var r,a,i,t=[];for(r=0,a=(e||[]).length;r<a;++r)t.push({index:r,box:i=e[r],pos:i.position,horizontal:i.isHorizontal(),weight:i.weight});return t}(e),r=Fr(nr(t,"left"),!0),a=Fr(nr(t,"right")),i=Fr(nr(t,"top"),!0),o=Fr(nr(t,"bottom"));return{leftAndTop:r.concat(i),rightAndBottom:a.concat(o),chartArea:nr(t,"chartArea"),vertical:r.concat(a),horizontal:i.concat(o)}}(e.boxes),u=d.vertical,h=d.horizontal,v=Object.freeze({outerWidth:t,outerHeight:r,padding:i,availableWidth:o,vBoxMaxWidth:o/2/u.length,hBoxMaxHeight:l/2}),g=va({maxPadding:va({},i),w:o,h:l,x:i.left,y:i.top},i);(function xi(e,t){var r,a,i;for(r=0,a=e.length;r<a;++r)(i=e[r]).width=i.horizontal?i.box.fullWidth&&t.availableWidth:t.vBoxMaxWidth,i.height=i.horizontal&&t.hBoxMaxHeight})(u.concat(h),v),Lr(u,g,v),Lr(h,g,v)&&Lr(u,g,v),function nn(e){var t=e.maxPadding;function r(a){var i=Math.max(t[a]-e[a],0);return e[a]+=i,i}e.y+=r("top"),e.x+=r("left"),r("right"),r("bottom")}(g),sn(d.leftAndTop,g,v),g.x+=g.w,g.y+=g.h,sn(d.rightAndBottom,g,v),e.chartArea={left:g.left,top:g.top,right:g.left+g.w,bottom:g.top+g.h},m.each(d.chartArea,function(b){var _=b.box;va(_,e.chartArea),_.update(g.w,g.h)})}}},ir=function Ye(e){return e&&e.default||e}(Object.freeze({__proto__:null,default:"/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n"})),pe="$chartjs",ga="chartjs-",or=ga+"size-monitor",un=ga+"render-monitor",Si=ga+"render-animation",sr=["animationstart","webkitAnimationStart"],gt={touchstart:"mousedown",touchmove:"mou
1semove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function Ir(e,t){var r=m.getStyle(e,t),a=r&&r.match(/^(\d+)(\.\d+)?px$/);return a?Number(a[1]):void 0}var dn=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch{}return e}()&&{passive:!0};function wt(e,t,r){e.addEventListener(t,r,dn)}function ma(e,t,r){e.removeEventListener(t,r,dn)}function pa(e,t,r,a,i){return{type:e,chart:t,native:i||null,x:void 0!==r?r:null,y:void 0!==a?a:null}}function kt(e){var t=document.createElement("div");return t.className=e||"",t}function fn(e,t,r){var a=e[pe]||(e[pe]={}),i=a.resizer=function Pi(e){var t=1e6,r=kt(or),a=kt(or+"-expand"),i=kt(or+"-shrink");a.appendChild(kt()),i.appendChild(kt()),r.appendChild(a),r.appendChild(i),r._reset=function(){a.scrollLeft=t,a.scrollTop=t,i.scrollLeft=t,i.scrollTop=t};var o=function(){r._reset(),e()};return wt(a,"scroll",o.bind(a,"expand")),wt(i,"scroll",o.bind(i,"shrink")),r}(function Ar(e,t){var r=!1,a=[];return function(){a=Array.prototype.slice.call(arguments),t=t||this,r||(r=!0,m.requestAnimFrame.call(window,function(){r=!1,e.apply(t,a)}))}}(function(){if(a.resizer){var o=r.options.maintainAspectRatio&&e.parentNode,l=o?o.clientWidth:0;t(pa("resize",r)),o&&o.clientWidth<l&&r.canvas&&t(pa("resize",r))}}));!function Ti(e,t){var r=e[pe]||(e[pe]={}),a=r.renderProxy=function(i){i.animationName===Si&&t()};m.each(sr,function(i){wt(e,i,a)}),r.reflow=!!e.offsetParent,e.classList.add(un)}(e,function(){if(a.resizer){var o=e.parentNode;o&&o!==i.parentNode&&o.insertBefore(i,o.firstChild),i._reset()}})}function Fi(e){var t=e[pe]||{},r=t.resizer;delete t.resizer,function Oi(e){var t=e[pe]||{},r=t.renderProxy;r&&(m.each(sr,function(a){ma(e,a,r)}),delete t.renderProxy),e.classList.remove(un)}(e),r&&r.parentNode&&r.parentNode.removeChild(r)}var hn={disableCSSInjection:!1,_enabled:typeof window<"u"&&typeof document<"u",_ensureLoaded:function(e){if(!this.disableCSSInjection){var t=e.getRootNode?e.getRootNode():document;!function Ri(e,t){var r=e[pe]||(e[pe]={});if(!r.containsStyles){r.containsStyles=!0,t="/* Chart.js */\n"+t;var a=document.createElement("style");a.setAttribute("type","text/css"),a.appendChild(document.createTextNode(t)),e.appendChild(a)}}(t.host?t:document.head,ir)}},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(this._ensureLoaded(e),function Di(e,t){var r=e.style,a=e.getAttribute("height"),i=e.getAttribute("width");if(e[pe]={initial:{height:a,width:i,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",null===i||""===i){var o=Ir(e,"width");void 0!==o&&(e.width=o)}if(null===a||""===a)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var l=Ir(e,"height");void 0!==o&&(e.height=l)}return e}(e,t),r):null},releaseContext:function(e){var t=e.canvas;if(t[pe]){var r=t[pe].initial;["height","width"].forEach(function(a){var i=r[a];m.isNullOrUndef(i)?t.removeAttribute(a):t.setAttribute(a,i)}),m.each(r.style||{},function(a,i){t.style[i]=a}),t.width=t.width,delete t[pe]}},addEventListener:function(e,t,r){var a=e.canvas;if("resize"!==t){var i=r[pe]||(r[pe]={});wt(a,t,(i.proxies||(i.proxies={}))[e.id+"_"+t]=function(d){r(function Ci(e,t){var r=gt[e.type]||e.type,a=m.getRelativePosition(e,t);return pa(r,t,a.x,a.y,e)}(d,e))})}else fn(a,r,e)},removeEventListener:function(e,t,r){var a=e.canvas;if("resize"!==t){var l=((r[pe]||{}).proxies||{})[e.id+"_"+t];l&&ma(a,t,l)}else Fi(a)}};m.addEvent=wt,m.removeEvent=ma;var Wt=m.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},hn._enabled?hn:{acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}});R._set("global",{plugins:{}});var ie={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach(function(r){-1===t.indexOf(r)&&t.push(r)}),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach(function(r){var a=t.indexOf(r);-1!==a&&t.splice(a,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,r){var o,l,d,u,h,a=this.descriptors(e),i=a.length;for(o=0;o<i;++o)if("function"==typeof(h=(d=(l=a[o]).plugin)[t])&&((u=[e].concat(r||[])).push(l.options),!1===h.apply(d,u)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var r=[],a=[],i=e&&e.config||{},o=i.options&&i.options.plugins||{};
vendor: 4,276 bytes, line 1
1return this._plugins.concat(i.plugins||[]).forEach(function(l){if(-1===r.indexOf(l)){var u=l.id,h=o[u];!1!==h&&(!0===h&&(h=m.clone(R.global.plugins[u])),r.push(l),a.push({plugin:l,options:h||{}}))}}),t.descriptors=a,t.id=this._cacheId,a},_invalidate:function(e){delete e.$plugins}},lr={constructors:{},defaults:{},registerScaleType:function(e,t,r){this.constructors[e]=t,this.defaults[e]=m.clone(r)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?m.merge(Object.create(null),[R.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){var r=this;r.defaults.hasOwnProperty(e)&&(r.defaults[e]=m.extend(r.defaults[e],t))},addScalesToLayout:function(e){m.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,$e.addBox(e,t)})}},Be=m.valueOrDefault,Nr=m.rtl.getRtlAdapter;R._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:m.noop,title:function(e,t){var r="",a=t.labels,i=a?a.length:0;if(e.length>0){var o=e[0];o.label?r=o.label:o.xLabel?r=o.xLabel:i>0&&o.index<i&&(r=a[o.index])}return r},afterTitle:m.noop,beforeBody:m.noop,beforeLabel:m.noop,label:function(e,t){var r=t.datasets[e.datasetIndex].label||"";return r&&(r+=": "),m.isNullOrUndef(e.value)?r+=e.yLabel:r+=e.value,r},labelColor:function(e,t){var i=t.getDatasetMeta(e.datasetIndex).data[e.index]._view;return{borderColor:i.borderColor,backgroundColor:i.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:m.noop,afterBody:m.noop,beforeFooter:m.noop,footer:m.noop,afterFooter:m.noop}}});var cn={average:function(e){if(!e.length)return!1;var t,r,a=0,i=0,o=0;for(t=0,r=e.length;t<r;++t){var l=e[t];if(l&&l.hasValue()){var d=l.tooltipPosition();a+=d.x,i+=d.y,++o}}return{x:a/o,y:i/o}},nearest:function(e,t){var o,l,d,r=t.x,a=t.y,i=Number.POSITIVE_INFINITY;for(o=0,l=e.length;o<l;++o){var u=e[o];if(u&&u.hasValue()){var h=u.getCenterPoint(),v=m.distanceBetweenPoints(t,h);v<i&&(i=v,d=u)}}if(d){var g=d.tooltipPosition();r=g.x,a=g.y}return{x:r,y:a}}};function tt(e,t){return t&&(m.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Je(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Ii(e){var t=e._xScale,r=e._yScale||e._scale,a=e._index,i=e._datasetIndex,o=e._chart.getDatasetMeta(i).controller,l=o._getIndexScale(),d=o._getValueScale();return{xLabel:t?t.getLabelForIndex(a,i):"",yLabel:r?r.getLabelForIndex(a,i):"",label:l?""+l.getLabelForIndex(a,i):"",value:d?""+d.getLabelForIndex(a,i):"",index:a,datasetIndex:i,x:e._model.x,y:e._model.y}}function Yr(e){var t=R.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Be(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Be(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Be(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Be(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Be(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Be(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Be(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Be(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Be(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackgroun
1d:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function Wr(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function ba(e){return tt([],Je(e))}var Wi=Fe.extend({initialize:function(){this._model=Yr(this._options),this._lastActive=[]},getTitle:function(){var e=this,r=e._options.callbacks,a=r.beforeTitle.apply(e,arguments),i=r.title.apply(e,arguments),o=r.afterTitle.apply(e,arguments),l=[];return l=tt(l,Je(a)),l=tt(l,Je(i)),tt(l,Je(o))},getBeforeBody:function(){return ba(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var r=this,a=r._options.callbacks,i=[];return m.each(e,function(o){var l={before:[],lines:[],after:[]};tt(l.before,Je(a.beforeLabel.call(r,o,t))),tt(l.lines,a.label.call(r,o,t)),tt(l.after,Je(a.afterLabel.call(r,o,t))),i.push(l)}),i},getAfterBody:function(){return ba(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,r=t.beforeFooter.apply(e,arguments),a=t.footer.apply(e,arguments),i=t.afterFooter.apply(e,arguments),o=[];return o=tt(o,Je(r)),o=tt(o,Je(a)),tt(o,Je(i))},update:function(e){var g,b,t=this,r=t._options,a=t._model,i=t._model=Yr(r),o=t._active,l=t._data,d={xAlign:a.xAlign,yAlign:a.yAlign},u={x:a.x,y:a.y},h={width:a.width,height:a.height},v={x:a.caretX,y:a.caretY};if(o.length){i.opacity=1;var _=[],x=[];v=cn[r.position].call(t,o,t._eventPosition);var k=[];for(g=0,b=o.length;g<b;++g)k.push(Ii(o[g]));r.filter&&(k=k.filter(function(M){return r.filter(M,l)})),r.itemSort&&(k=k.sort(function(M,D){return r.itemSort(M,D,l)})),m.each(k,function(M){_.push(r.callbacks.labelColor.call(t,M,t._chart)),x.push(r.callbacks.labelTextColor.call(t,M,t._chart))}),i.title=t.getTitle(k,l),i.beforeBody=t.getBeforeBody(k,l),i.body=t.getBody(k,l),i.afterBody=t.getAfterBody(k,l),i.footer=t.getFooter(k,l),i.x=v.x,i.y=v.y,i.caretPadding=r.caretPadding,i.labelColors=_,i.labelTextColors=x,i.dataPoints=k,u=function Yi(e,t,r,a){var i=e.x,o=e.y,d=e.caretPadding,h=r.xAlign,v=r.yAlign,g=e.caretSize+d,b=e.cornerRadius+d;return"right"===h?i-=t.width:"center"===h&&((i-=t.width/2)+t.width>a.width&&(i=a.width-t.width),i<0&&(i=0)),"top"===v?o+=g:o-="bottom"===v?t.height+g:t.height/2,"center"===v?"left"===h?i+=g:"right"===h&&(i-=g):"left"===h?i-=b:"right"===h&&(i+=b),{x:i,y:o}}(i,h=function Ai(e,t){var r=e._chart.ctx,a=2*t.yPadding,i=0,o=t.body,l=o.reduce(function(x,k){return x+k.before.length+k.lines.length+k.after.length},0),d=t.title.length,u=t.footer.length,h=t.titleFontSize,v=t.bodyFontSize,g=t.footerFontSize;a+=d*h,a+=d?(d-1)*t.titleSpacing:0,a+=d?t.titleMarginBottom:0,a+=(l+=t.beforeBody.length+t.afterBody.length)*v,a+=l?(l-1)*t.bodySpacing:0,a+=u?t.footerMarginTop:0,a+=u*g,a+=u?(u-1)*t.footerSpacing:0;var b=0,_=function(x){i=Math.max(i,r.measureText(x).width+b)};return r.font=m.fontString(h,t._titleFontStyle,t._titleFontFamily),m.each(t.title,_),r.font=m.fontString(v,t._bodyFontStyle,t._bodyFontFamily),m.each(t.beforeBody.concat(t.afterBody),_),b=t.displayColors?v+2:0,m.each(o,function(x){m.each(x.before,_),m.each(x.lines,_),m.each(x.after,_)}),b=0,r.font=m.fontString(g,t._footerFontStyle,t._footerFontFamily),m.each(t.footer,_),{width:i+=2*t.xPadding,height:a}}(this,i),d=function Ni(e,t){var r=e._model,a=e._chart,i=e._chart.chartArea,o="center",l="center";r.y<t.height?l="top":r.y>a.height-t.height&&(l="bottom");var d,u,h,v,g,b=(i.left+i.right)/2,_=(i.top+i.bottom)/2;"center"===l?(d=function(k){return k<=b},u=function(k){return k>b}):(d=function(k){return k<=t.width/2},u=function(k){return k>=a.width-t.width/2}),h=function(k){return k+t.width+r.caretSize+r.caretPadding>a.width},v=function(k){return k-t.width-r.caretSize-r.caretPadding<0},g=function(k){return k<=_?"top":"bottom"},d(r.x)?(o="left",h(r.x)&&(o="center",l=g(r.y))):u(r.x)&&(o="right",v(r.x)&&(o="center",l=g(r.y)));var x=e._options;return{xAlign:x.xAlign?x.xAlign:o,yAlign:x.yAlign?x.yAlign:l}}(this,h),t._chart)}else i.opacity=0;return i.xAlign=d.xAlign,i.yAlign=d.yAlign,i.x=u.x,i.y=u.y,i.width=h.width,i.height=h.height,i.caretX=v.x,i.caretY=v.y,t._model=i,e&&r.custom&&r.custom.call(t,i),t},drawCaret:function(e,t){var r=this._chart.ctx,i=this.getCaretPosition(e,t,this._view);r.lineTo(i.x1,i.y1),r.lineTo(i.x2,i.y2),r.lineTo(i.x3,i.y3)},getCaretPosition:function(e,t,r){var a,i,o,l,d,u,h=r.caretSize,v=r.cornerRadius,g=r.xAlign,b=r.yAlign,_=e.x,x=e.y,k=t.width,M=t.height;if("center"===b)d=x+M/2,"left"===g?(i=(a=_)-h,o=a,l=d+h,u=d-h):(i=(a=_+k)+
vendor: 5,267 bytes, line 1
1h,o=a,l=d-h,u=d+h);else if("left"===g?(a=(i=_+v+h)-h,o=i+h):"right"===g?(a=(i=_+k-v-h)-h,o=i+h):(a=(i=r.caretX)-h,o=i+h),"top"===b)d=(l=x)-h,u=l;else{d=(l=x+M)+h,u=l;var D=o;o=a,a=D}return{x1:a,x2:i,x3:o,y1:l,y2:d,y3:u}},drawTitle:function(e,t,r){var o,l,d,a=t.title,i=a.length;if(i){var u=Nr(t.rtl,t.x,t.width);for(e.x=Wr(t,t._titleAlign),r.textAlign=u.textAlign(t._titleAlign),r.textBaseline="middle",o=t.titleFontSize,l=t.titleSpacing,r.fillStyle=t.titleFontColor,r.font=m.fontString(o,t._titleFontStyle,t._titleFontFamily),d=0;d<i;++d)r.fillText(a[d],u.x(e.x),e.y+o/2),e.y+=o+l,d+1===i&&(e.y+=t.titleMarginBottom-l)}},drawBody:function(e,t,r){var b,_,x,k,M,D,F,L,a=t.bodyFontSize,i=t.bodySpacing,o=t._bodyAlign,l=t.body,d=t.displayColors,u=0,h=d?Wr(t,"left"):0,v=Nr(t.rtl,t.x,t.width),g=function(X){r.fillText(X,v.x(e.x+u),e.y+a/2),e.y+=a+i},j=v.textAlign(o);for(r.textAlign=o,r.textBaseline="middle",r.font=m.fontString(a,t._bodyFontStyle,t._bodyFontFamily),e.x=Wr(t,j),r.fillStyle=t.bodyFontColor,m.each(t.beforeBody,g),u=d&&"right"!==j?"center"===o?a/2+1:a+2:0,M=0,F=l.length;M<F;++M){for(b=l[M],x=t.labelColors[M],r.fillStyle=_=t.labelTextColors[M],m.each(b.before,g),D=0,L=(k=b.lines).length;D<L;++D){if(d){var H=v.x(h);r.fillStyle=t.legendColorBackground,r.fillRect(v.leftForLtr(H,a),e.y,a,a),r.lineWidth=1,r.strokeStyle=x.borderColor,r.strokeRect(v.leftForLtr(H,a),e.y,a,a),r.fillStyle=x.backgroundColor,r.fillRect(v.leftForLtr(v.xPlus(H,1),a-2),e.y+1,a-2,a-2),r.fillStyle=_}g(k[D])}m.each(b.after,g)}u=0,m.each(t.afterBody,g),e.y-=i},drawFooter:function(e,t,r){var o,l,a=t.footer,i=a.length;if(i){var d=Nr(t.rtl,t.x,t.width);for(e.x=Wr(t,t._footerAlign),e.y+=t.footerMarginTop,r.textAlign=d.textAlign(t._footerAlign),r.textBaseline="middle",o=t.footerFontSize,r.fillStyle=t.footerFontColor,r.font=m.fontString(o,t._footerFontStyle,t._footerFontFamily),l=0;l<i;++l)r.fillText(a[l],d.x(e.x),e.y+o/2),e.y+=o+t.footerSpacing}},drawBackground:function(e,t,r,a){r.fillStyle=t.backgroundColor,r.strokeStyle=t.borderColor,r.lineWidth=t.borderWidth;var i=t.xAlign,o=t.yAlign,l=e.x,d=e.y,u=a.width,h=a.height,v=t.cornerRadius;r.beginPath(),r.moveTo(l+v,d),"top"===o&&this.drawCaret(e,a),r.lineTo(l+u-v,d),r.quadraticCurveTo(l+u,d,l+u,d+v),"center"===o&&"right"===i&&this.drawCaret(e,a),r.lineTo(l+u,d+h-v),r.quadraticCurveTo(l+u,d+h,l+u-v,d+h),"bottom"===o&&this.drawCaret(e,a),r.lineTo(l+v,d+h),r.quadraticCurveTo(l,d+h,l,d+h-v),"center"===o&&"left"===i&&this.drawCaret(e,a),r.lineTo(l,d+v),r.quadraticCurveTo(l,d,l+v,d),r.closePath(),r.fill(),t.borderWidth>0&&r.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var r={width:t.width,height:t.height},a={x:t.x,y:t.y},i=Math.abs(t.opacity<.001)?0:t.opacity;this._options.enabled&&(t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length)&&(e.save(),e.globalAlpha=i,this.drawBackground(a,t,e,r),a.y+=t.yPadding,m.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(a,t,e),this.drawBody(a,t,e),this.drawFooter(a,t,e),m.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var a,t=this,r=t._options;return t._lastActive=t._lastActive||[],"mouseout"===e.type?t._active=[]:(t._active=t._chart.getElementsAtEventForMode(e,r.mode,r),r.reverse&&t._active.reverse()),(a=!m.arrayEquals(t._active,t._lastActive))&&(t._lastActive=t._active,(r.enabled||r.custom)&&(t._eventPosition={x:e.x,y:e.y},t.update(!0),t.pivot())),a}}),ue=Wi;ue.positioners=cn;var ya=m.valueOrDefault;function gn(){return m.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,r,a){if("xAxes"===e||"yAxes"===e){var o,l,d,i=r[e].length;for(t[e]||(t[e]=[]),o=0;o<i;++o)l=ya((d=r[e][o]).type,"xAxes"===e?"category":"linear"),o>=t[e].length&&t[e].push({}),m.merge(t[e][o],!t[e][o].type||d.type&&d.type!==t[e][o].type?[lr.getScaleDefaults(l),d]:d)}else m._merger(e,t,r,a)}})}function Er(){return m.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,r,a){var i=t[e]||Object.create(null),o=r[e];"scales"===e?t[e]=gn(i,o):"scale"===e?t[e]=m.merge(i,[lr.getScaleDefaults(o.type),o]):m._merger(e,t,r,a)}})}function mn(e,t,r){var a,i=function(o){return o.id===a};do{a=t+r++}while(m.findIndex(e,i)>=0);return a}function Et(e){return"top"===e||"bottom"===e}function pn(e,t){return function(r,a){return r[e]===a[e]?r[t]-a[t]:r[e]-a[e]}}R._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var mt=function(e,t){return this.construct(e,t),this};m.extend(mt.prototype,{construct:function(e,t){var r=this;t=function Ei(e){var t=(e=e||Object.create(null)).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Er(R.global,R[e.type],e.options||{}),e}(t);var a=Wt.acquireContext(e,t),i=a&&a.canvas,o=i&&i.height,l=i&&i.width;r.id=m.uid(),r.ctx=a,r.canvas=i,r.config=t,r.width=l,r.height=o,r.aspectRatio=o?l/o:null,r.options=t.options,r._bufferedRender=!1,r._layers=[],r.chart=r,r.controller=r,mt.instances[r.id]=r,Object.defineProperty(r,"data",{get:function(){return r.config.data},set:function(d){r.config.data=d}}
vendor: 4,501 bytes, line 1
1),a&&i?(r.initialize(),r.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return ie.notify(e,"beforeInit"),m.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),ie.notify(e,"afterInit"),e},clear:function(){return m.canvas.clear(this),this},stop:function(){return la.cancelAnimation(this),this},resize:function(e){var t=this,r=t.options,a=t.canvas,i=r.maintainAspectRatio&&t.aspectRatio||null,o=Math.max(0,Math.floor(m.getMaximumWidth(a))),l=Math.max(0,Math.floor(i?o/i:m.getMaximumHeight(a)));if((t.width!==o||t.height!==l)&&(a.width=t.width=o,a.height=t.height=l,a.style.width=o+"px",a.style.height=l+"px",m.retinaScale(t,r.devicePixelRatio),!e)){var d={width:o,height:l};ie.notify(t,"resize",[d]),r.onResize&&r.onResize(t,d),t.stop(),t.update({duration:r.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},r=e.scale;m.each(t.xAxes,function(a,i){a.id||(a.id=mn(t.xAxes,"x-axis-",i))}),m.each(t.yAxes,function(a,i){a.id||(a.id=mn(t.yAxes,"y-axis-",i))}),r&&(r.id=r.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,r=e.scales||{},a=[],i=Object.keys(r).reduce(function(o,l){return o[l]=!1,o},{});t.scales&&(a=a.concat((t.scales.xAxes||[]).map(function(o){return{options:o,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(o){return{options:o,dtype:"linear",dposition:"left"}}))),t.scale&&a.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),m.each(a,function(o){var l=o.options,d=l.id,u=ya(l.type,o.dtype);Et(l.position)!==Et(o.dposition)&&(l.position=o.dposition),i[d]=!0;var h=null;if(d in r&&r[d].type===u)(h=r[d]).options=l,h.ctx=e.ctx,h.chart=e;else{var v=lr.getScaleConstructor(u);if(!v)return;h=new v({id:d,type:u,options:l,ctx:e.ctx,chart:e}),r[h.id]=h}h.mergeTicksOptions(),o.isDefault&&(e.scale=h)}),m.each(i,function(o,l){o||delete r[l]}),e.scales=r,lr.addScalesToLayout(this)},buildOrUpdateControllers:function(){var a,i,e=this,t=[],r=e.data.datasets;for(a=0,i=r.length;a<i;a++){var o=r[a],l=e.getDatasetMeta(a),d=o.type||e.config.type;if(l.type&&l.type!==d&&(e.destroyDatasetMeta(a),l=e.getDatasetMeta(a)),l.type=d,l.order=o.order||0,l.index=a,l.controller)l.controller.updateIndex(a),l.controller.linkScales();else{var u=an[l.type];if(void 0===u)throw new Error('"'+l.type+'" is not a chart type.');l.controller=new u(e,a),t.push(l.controller)}}return t},resetElements:function(){var e=this;m.each(e.data.datasets,function(t,r){e.getDatasetMeta(r).controller.reset()},e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var r,a,t=this;if((!e||"object"!=typeof e)&&(e={duration:e,lazy:arguments[1]}),function zi(e){var t=e.options;m.each(e.scales,function(r){$e.removeBox(e,r)}),t=Er(R.global,R[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}(t),ie._invalidate(t),!1!==ie.notify(t,"beforeUpdate")){t.tooltip._data=t.data;var i=t.buildOrUpdateControllers();for(r=0,a=t.data.datasets.length;r<a;r++)t.getDatasetMeta(r).controller.buildOrUpdateElements();t.updateLayout(),t.options.animation&&t.options.animation.duration&&m.each(i,function(o){o.reset()}),t.updateDatasets(),t.tooltip.initialize(),t.lastActive=[],ie.notify(t,"afterUpdate"),t._layers.sort(pn("z","_idx")),t._bufferedRender?t._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:t.render(e)}},updateLayout:function(){var e=this;!1!==ie.notify(e,"beforeLayout")&&($e.update(this,this.width,this.height),e._layers=[],m.each(e.boxes,function(t){t._configure&&t._configure(),e._layers.push.apply(e._layers,t._layers())},e),e._layers.forEach(function(t,r){t._idx=r}),ie.notify(e,"afterScaleUpdate"),ie.notify(e,"afterLayout"))},updateDatasets:function(){var e=this;if(!1!==ie.notify(e,"beforeDatasetsUpdate")){for(var t=0,r=e.data.datasets.length;t<r;++t)e.updateDataset(t);ie.notify(e,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this,r=t.getDatasetMeta(e),a={meta:r,index:e};!1!==ie.notify(t,"beforeDatasetUpdate",[a])&&(r.controller._update(),ie.notify(t,"afterDatasetUpdate",[a]))},render:function(e){var t=this;(!e||"object"!=typeof e)&&(e={duration:e,lazy:arguments[1]});var r=t.options.animation,a=ya(e.duration,r&&r.duration),i=e.lazy;if(!1!==ie.notify(t,"beforeRender")){var o=function(d){ie.notify(t,"afterRe
1nder"),m.callback(r&&r.onComplete,[d],t)};if(r&&a){var l=new sa({numSteps:a/16.66,easing:e.easing||r.easing,render:function(d,u){var v=u.currentStep,g=v/u.numSteps;d.draw((0,m.easing.effects[u.easing])(g),g,v)},onAnimationProgress:r.onProgress,onAnimationComplete:o});la.addAnimation(t,l,a,i)}else t.draw(),o(new sa({numSteps:0,chart:t}));return t}},draw:function(e){var r,a,t=this;if(t.clear(),m.isNullOrUndef(e)&&(e=1),t.transition(e),!(t.width<=0||t.height<=0)&&!1!==ie.notify(t,"beforeDraw",[e])){for(a=t._layers,r=0;r<a.length&&a[r].z<=0;++r)a[r].draw(t.chartArea);for(t.drawDatasets(e);r<a.length;++r)a[r].draw(t.chartArea);t._drawTooltip(e),ie.notify(t,"afterDraw",[e])}},transition:function(e){for(var t=this,r=0,a=(t.data.datasets||[]).length;r<a;++r)t.isDatasetVisible(r)&&t.getDatasetMeta(r).controller.transition(e);t.tooltip.transition(e)},_getSortedDatasetMetas:function(e){var i,o,t=this,a=[];for(i=0,o=(t.data.datasets||[]).length;i<o;++i)(!e||t.isDatasetVisible(i))&&a.push(t.getDatasetMeta(i));return a.sort(pn("order","index")),a},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(e){var r,a,t=this;if(!1!==ie.notify(t,"beforeDatasetsDraw",[e])){for(a=(r=t._getSortedVisibleDatasetMetas()).length-1;a>=0;--a)t.drawDataset(r[a],e);ie.notify(t,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var a={meta:e,index:e.index,easingValue:t};!1!==ie.notify(this,"beforeDatasetDraw",[a])&&(e.controller.draw(t),ie.notify(this,"afterDatasetDraw",[a]))},_drawTooltip:function(e){var t=this,r=t.tooltip,a={tooltip:r,easingValue:e};!1!==ie.notify(t,"beforeTooltipDraw",[a])&&(r.draw(),ie.notify(t,"afterTooltipDraw",[a]))},getElementAtEvent:function(e){return Le.modes.single(this,e)},getElementsAtEvent:function(e){return Le.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return Le.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,r){var a=Le.modes[t];return"function"==typeof a?a(this,e,r):[]},getDatasetAtEvent:function(e){return Le.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this,r=t.data.datasets[e];r._meta||(r._meta={});var a=r._meta[t.id];return a||(a=r._meta[t.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:r.order||0,index:e}),a},getVisibleDatasetCount:function(){for(var e=0,t=0,r=this.data.datasets.length;t<r;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,r=this.data.datasets[e],a=r._meta&&r._meta[t];a&&(a.controller.destroy(),delete r._meta[t])},destroy:function(){var r,a,e=this,t=e.canvas;for(e.stop(),r=0,a=e.data.datasets.length;r<a;++r)e.destroyDatasetMeta(r);t&&(e.unbindEvents(),m.canvas.clear(e),Wt.releaseContext(e.ctx),e.canvas=null,e.ctx=null),ie.notify(e,"destroy"),delete mt.instances[e.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new ue({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},r=function(){e.eventHandler.apply(e,arguments)};m.each(e.options.events,function(a){Wt.addEventListener(e,a,r),t[a]=r}),e.options.responsive&&(r=function(){e.resize()},Wt.addEventListener(e,"resize",r),t.resize=r)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,m.each(t,function(r,a){Wt.removeEventListener(e,a,r)}))},updateHoverStyle:function(e,t,r){var i,o,l,a=r?"set":"remove";for(o=0,l=e.length;o<l;++o)(i=e[o])&&this.getDatasetMeta(i._datasetIndex).controller[a+"HoverStyle"](i);"dataset"===t&&this.getDatasetMeta(e[0]._datasetIndex).controller["_"+a+"DatasetHoverStyle"]()},eventHandler:function(e){var t=this,r=t.tooltip;if(!1!==ie.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var a=t.handleEvent(e);r&&(a=r._start?r.handleEvent(e):a|r.handleEvent(e)),ie.notify(t,"afterEvent",[e]);var i=t._bufferedRequest;return i?t.render(i):a&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var i,t=this,r=t.options||{},a=r.hover;return t.lastActive=t.lastActive||[],t.active="mouseout"===e.type?[]:t.getElementsAtEventForMode(e,a.mode,a),m.callback(r.onHover||r.hover.onHover,[e.native,t.active],t),("mouseup"===e.type||"click"===e.type)&&r.onClick&&r.onClick.call(t,e.native,t.active),t.lastActive.length&&t.updateHoverStyle(t.lastActive,a.mode,!1),t.active.length&&a.mode&&t.updateHoverStyle(t.active,a.mode,!0),i=!m.arrayEquals(t.active,t.lastActive),t.lastActive=t.active,i}}),mt.instances={};var V=mt;mt.Controller=mt,mt.types={},m.configMerge=Er,m.scaleMerge=gn;function rt(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function zt(e){this.options=e||{}}m.extend(zt.prototype,{formats:rt,parse:rt,format:rt,add:rt,diff:rt,startOf:rt,endOf:rt,_create:function(e){return e}}),zt.override=function(e){m.extend(zt.prototype,e)};var Hr={_date:zt},ur={formatters:{values:function(e){return m.isArray(e)?e:""+e},linear:function(e,t,r){var a=r.length>3?r[2]-r[1]:r[1]-r[0];Math.abs(a)>1&&e!==Math.floor(e)&&(a=e-Math.floor(e));
1var i=m.log10(Math.abs(a)),o="";if(0!==e)if(Math.max(Math.abs(r[0]),Math.abs(r[r.length-1]))<1e-4){var d=m.log10(Math.abs(e)),u=Math.floor(d)-Math.floor(i);u=Math.max(Math.min(u,20),0),o=e.toExponential(u)}else{var h=-1*Math.floor(i);h=Math.max(Math.min(h,20),0),o=e.toFixed(h)}else o="0";return o},logarithmic:function(e,t,r){var a=e/Math.pow(10,Math.floor(m.log10(e)));return 0===e?"0":1===a||2===a||5===a||0===t||t===r.length-1?e.toExponential():""}}},st=m.isArray,Mt=m.isNullOrUndef,lt=m.valueOrDefault,Ht=m.valueAtIndexOrDefault;function ji(e,t,r){var h,a=e.getTicks().length,i=Math.min(t,a-1),o=e.getPixelForTick(i),l=e._startPixel,d=e._endPixel,u=1e-6;if(!(r&&(h=1===a?Math.max(o-l,d-o):0===t?(e.getPixelForTick(1)-o)/2:(o-e.getPixelForTick(i-1))/2,o+=i<t?h:-h,o<l-u||o>d+u)))return o}function Ui(e,t,r,a){var v,g,b,_,x,k,M,D,F,L,j,H,X,i=r.length,o=[],l=[],d=[],u=0,h=0;for(v=0;v<i;++v){if(_=r[v].label,e.font=k=(x=r[v].major?t.major:t.minor).string,M=a[k]=a[k]||{data:{},gc:[]},D=x.lineHeight,F=L=0,Mt(_)||st(_)){if(st(_))for(g=0,b=_.length;g<b;++g)!Mt(j=_[g])&&!st(j)&&(F=m.measureText(e,M.data,M.gc,F,j),L+=D)}else F=m.measureText(e,M.data,M.gc,F,_),L=D;o.push(F),l.push(L),d.push(D/2),u=Math.max(F,u),h=Math.max(L,h)}function Z(oe){return{width:o[oe]||0,height:l[oe]||0,offset:d[oe]||0}}return function Vi(e,t){m.each(e,function(r){var o,a=r.gc,i=a.length/2;if(i>t){for(o=0;o<i;++o)delete r.data[a[o]];a.splice(0,i)}})}(a,i),H=o.indexOf(u),X=l.indexOf(h),{first:Z(0),last:Z(i-1),widest:Z(H),highest:Z(X)}}function dr(e){return e.drawTicks?e.tickMarkLength:0}function _a(e){var t,r;return e.display?(t=m.options._parseFont(e),r=m.options.toPadding(e.padding),t.lineHeight+r.height):0}function bn(e,t){return m.extend(m.options._parseFont({fontFamily:lt(t.fontFamily,e.fontFamily),fontSize:lt(t.fontSize,e.fontSize),fontStyle:lt(t.fontStyle,e.fontStyle),lineHeight:lt(t.lineHeight,e.lineHeight)}),{color:m.options.resolve([t.fontColor,e.fontColor,R.global.defaultFontColor])})}function xa(e){var t=bn(e,e.minor);return{minor:t,major:e.major.enabled?bn(e,e.major):t}}function wa(e){var r,a,i,t=[];for(a=0,i=e.length;a<i;++a)typeof(r=e[a])._index<"u"&&t.push(r);return t}function at(e,t,r,a){var d,u,h,v,i=lt(r,0),o=Math.min(lt(a,e.length),e.length),l=0;for(t=Math.ceil(t),a&&(t=(d=a-r)/Math.floor(d/t)),v=i;v<0;)l++,v=Math.round(i+l*t);for(u=Math.max(i,0);u<o;u++)h=e[u],u===v?(h._index=u,l++,v=Math.round(i+l*t)):delete h.label}R._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:ur.formatters.values,minor:{},major:{}}});var Br=Fe.extend({zeroLineIndex:0,getPadding:function(){var e=this;return{left:e.paddingLeft||0,top:e.paddingTop||0,right:e.paddingRight||0,bottom:e.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){m.callback(this.options.beforeUpdate,[this])},update:function(e,t,r){var l,d,u,h,v,a=this,i=a.options.ticks,o=i.sampleSize;if(a.beforeUpdate(),a.maxWidth=e,a.maxHeight=t,a.margins=m.extend({left:0,right:0,top:0,bottom:0},r),a._ticks=null,a.ticks=null,a._labelSizes=null,a._maxLabelLines=0,a.longestLabelWidth=0,a.longestTextCache=a.longestTextCache||{},a._gridLineItems=null,a._labelItems=null,a.beforeSetDimensions(),a.setDimensions(),a.afterSetDimensions(),a.beforeDataLimits(),a.determineDataLimits(),a.afterDataLimits(),a.beforeBuildTicks(),h=a.buildTicks()||[],(!(h=a.afterBuildTicks(h)||h)||!h.length)&&a.ticks)for(h=[],l=0,d=a.ticks.length;l<d;++l)h.push({value:a.ticks[l],major:!1});return a._ticks=h,u=a._convertTicksToLabels((v=o<h.length)?function Bi(e,t){for(var r=[],a=e.length/t,i=0,o=e.length;i<o;i+=a)r.push(e[Math.floor(i)]);return r}(h,o):h),a._configure(),a.beforeCalculateTickRotation(),a.calculateTickRotation(),a.afterCalculateTickRotation(),a.beforeFit(),a.fit(),a.afterFit(),a._ticksToDraw=i.display&&(i.autoSkip||"auto"===i.source)?a._autoSkip(h):h,v&&(u=a._convertTicksToLabels(a._ticksToDraw)),a.ticks=u,a.afterUpdate(),a.minSize},_configure:function(){var r,a,e=this,t=e.options.ticks.reverse;e.isHorizontal()?(r=e.left,a=e.right):(r=e.top,a=e.bottom,t=!t),e._startPixel=r,e._endPixel=a,e._reversePixels=t,e._length=a-r},afterUpdate:function(){m.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){m.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){m.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){m.callback(this.options.beforeDataLimits,[this])}
vendor: 4,521 bytes, line 1
1,determineDataLimits:m.noop,afterDataLimits:function(){m.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){m.callback(this.options.beforeBuildTicks,[this])},buildTicks:m.noop,afterBuildTicks:function(e){var t=this;return st(e)&&e.length?m.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=m.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){m.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this,t=e.options.ticks;e.ticks=e.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){m.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){m.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var d,u,h,v,g,b,_,e=this,t=e.options,r=t.ticks,a=e.getTicks().length,i=r.minRotation||0,o=r.maxRotation,l=i;!e._isVisible()||!r.display||i>=o||a<=1||!e.isHorizontal()?e.labelRotation=i:(u=(d=e._getLabelSizes()).widest.width,h=d.highest.height-d.highest.offset,v=Math.min(e.maxWidth,e.chart.width-u),u+6>(g=t.offset?e.maxWidth/a:v/(a-1))&&(g=v/(a-(t.offset?.5:1)),b=e.maxHeight-dr(t.gridLines)-r.padding-_a(t.scaleLabel),_=Math.sqrt(u*u+h*h),l=m.toDegrees(Math.min(Math.asin(Math.min((d.highest.height+6)/g,1)),Math.asin(Math.min(b/_,1))-Math.asin(h/_))),l=Math.max(i,Math.min(o,l))),e.labelRotation=l)},afterCalculateTickRotation:function(){m.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){m.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},r=e.chart,a=e.options,i=a.ticks,o=a.scaleLabel,l=a.gridLines,d=e._isVisible(),u="bottom"===a.position,h=e.isHorizontal();if(h?t.width=e.maxWidth:d&&(t.width=dr(l)+_a(o)),h?d&&(t.height=dr(l)+_a(o)):t.height=e.maxHeight,i.display&&d){var v=xa(i),g=e._getLabelSizes(),b=g.first,_=g.last,x=g.widest,k=g.highest,M=.4*v.minor.lineHeight,D=i.padding;if(h){var F=0!==e.labelRotation,L=m.toRadians(e.labelRotation),j=Math.cos(L),H=Math.sin(L);t.height=Math.min(e.maxHeight,t.height+(H*x.width+j*(k.height-(F?k.offset:0))+(F?0:M))+D);var K,ye,Z=e.getPixelForTick(0)-e.left,oe=e.right-e.getPixelForTick(e.getTicks().length-1);F?(K=u?j*b.width+H*b.offset:H*(b.height-b.offset),ye=u?H*(_.height-_.offset):j*_.width+H*_.offset):(K=b.width/2,ye=_.width/2),e.paddingLeft=Math.max((K-Z)*e.width/(e.width-Z),0)+3,e.paddingRight=Math.max((ye-oe)*e.width/(e.width-oe),0)+3}else t.width=Math.min(e.maxWidth,t.width+(i.mirror?0:x.width+D+M)),e.paddingTop=b.height/2,e.paddingBottom=_.height/2}e.handleMargins(),h?(e.width=e._length=r.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=r.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){m.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(Mt(e))return NaN;if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var r,a,i,t=this;for(t.ticks=e.map(function(o){return o.value}),t.beforeTickToLabelConversion(),r=t.convertTicksToLabels(e)||t.ticks,t.afterTickToLabelConversion(),a=0,i=e.length;a<i;++a)e[a].label=r[a];return r},_getLabelSizes:function(){var e=this,t=e._labelSizes;return t||(e._labelSizes=t=Ui(e.ctx,xa(e.options.ticks),e.getTicks(),e.longestTextCache),e.longestLabelWidth=t.widest.width),t},_parseValue:function(e){var t,r,a,i;return st(e)?(t=+this.getRightValue(e[0]),r=+this.getRightValue(e[1]),a=Math.min(t,r),i=Math.max(t,r)):(t=void 0,r=e=+this.getRightValue(e),a=e,i=e),{min:a,max:i,start:t,end:r}},_getScaleLabel:function(e){var t=this._parseValue(e);return void 0!==t.start?"["+t.start+", "+t.end+"]":+this.getRightValue(e)},getLabelForIndex:m.noop,getPixelForValue:m.noop,getValueForPixel:m.noop,getPixelForTick:function(e){var t=this,r=t.options.offset,a=t._ticks.length,i=1/Math.max(a-(r?0:1),1);return e<0||e>a-1?null:t.getPixelForDecimal(e*i+(r?i/2:0))}
1,getPixelForDecimal:function(e){var t=this;return t._reversePixels&&(e=1-e),t._startPixel+e*t._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this,t=e.min,r=e.max;return e.beginAtZero?0:t<0&&r<0?r:t>0&&r>0?t:0},_autoSkip:function(e){var h,v,g,b,t=this,r=t.options.ticks,a=t._length,i=r.maxTicksLimit||a/t._tickSize()+1,o=r.major.enabled?function Gi(e){var r,a,t=[];for(r=0,a=e.length;r<a;r++)e[r].major&&t.push(r);return t}(e):[],l=o.length,d=o[0],u=o[l-1];if(l>i)return function Xe(e,t,r){var o,l,a=0,i=t[0];for(r=Math.ceil(r),o=0;o<e.length;o++)l=e[o],o===i?(l._index=o,i=t[++a*r]):delete l.label}(e,o,l/i),wa(e);if(g=function $i(e,t,r,a){var l,d,u,h,i=function yn(e){var r,a,t=e.length;if(t<2)return!1;for(a=e[0],r=1;r<t;++r)if(e[r]-e[r-1]!==a)return!1;return a}(e),o=(t.length-1)/a;if(!i)return Math.max(o,1);for(u=0,h=(l=m.math._factorize(i)).length-1;u<h;u++)if((d=l[u])>o)return d;return Math.max(o,1)}(o,e,0,i),l>0){for(h=0,v=l-1;h<v;h++)at(e,g,o[h],o[h+1]);return at(e,g,m.isNullOrUndef(b=l>1?(u-d)/(l-1):null)?0:d-b,d),at(e,g,u,m.isNullOrUndef(b)?e.length:u+b),wa(e)}return at(e,g),wa(e)},_tickSize:function(){var e=this,t=e.options.ticks,r=m.toRadians(e.labelRotation),a=Math.abs(Math.cos(r)),i=Math.abs(Math.sin(r)),o=e._getLabelSizes(),l=t.autoSkipPadding||0,d=o?o.widest.width+l:0,u=o?o.highest.height+l:0;return e.isHorizontal()?u*a>d*i?d/a:u/i:u*i<d*a?u/a:d/i},_isVisible:function(){var a,i,o,e=this,t=e.chart,r=e.options.display;if("auto"!==r)return!!r;for(a=0,i=t.data.datasets.length;a<i;++a)if(t.isDatasetVisible(a)&&((o=t.getDatasetMeta(a)).xAxisID===e.id||o.yAxisID===e.id))return!0;return!1},_computeGridLineItems:function(e){var M,D,F,L,j,H,X,Z,oe,K,ye,be,ge,_e,Ut,$t,Ya,t=this,r=t.chart,a=t.options,i=a.gridLines,o=a.position,l=i.offsetGridLines,d=t.isHorizontal(),u=t._ticksToDraw,h=u.length+(l?1:0),v=dr(i),g=[],b=i.drawBorder?Ht(i.lineWidth,0,0):0,_=b/2,x=m._alignPixel,k=function(To){return x(r,To,b)};for("top"===o?(M=k(t.bottom),X=t.bottom-v,oe=M-_,ye=k(e.top)+_,ge=e.bottom):"bottom"===o?(M=k(t.top),ye=e.top,ge=k(e.bottom)-_,X=M+_,oe=t.top+v):"left"===o?(M=k(t.right),H=t.right-v,Z=M-_,K=k(e.left)+_,be=e.right):(M=k(t.left),K=e.left,be=k(e.right)-_,H=M+_,Z=t.left+v),D=0;D<h;++D)!(Mt((F=u[D]||{}).label)&&D<u.length)&&(D===t.zeroLineIndex&&a.offset===l?(_e=i.zeroLineWidth,Ut=i.zeroLineColor,$t=i.zeroLineBorderDash||[],Ya=i.zeroLineBorderDashOffset||0):(_e=Ht(i.lineWidth,D,1),Ut=Ht(i.color,D,"rgba(0,0,0,0.1)"),$t=i.borderDash||[],Ya=i.borderDashOffset||0),void 0!==(L=ji(t,F._index||D,l))&&(j=x(r,L,_e),d?H=Z=K=be=j:X=oe=ye=ge=j,g.push({tx1:H,ty1:X,tx2:Z,ty2:oe,x1:K,y1:ye,x2:be,y2:ge,width:_e,color:Ut,borderDash:$t,borderDashOffset:Ya})));return g.ticksLength=h,g.borderValue=M,g},_computeLabelItems:function(){var b,_,x,k,M,D,F,L,j,H,X,Z,e=this,t=e.options,r=t.ticks,a=t.position,i=r.mirror,o=e.isHorizontal(),l=e._ticksToDraw,d=xa(r),u=r.padding,h=dr(t.gridLines),v=-m.toRadians(e.labelRotation),g=[];for("top"===a?(D=e.bottom-h-u,F=v?"left":"center"):"bottom"===a?(D=e.top+h+u,F=v?"right":"center"):"left"===a?(M=e.right-(i?0:h)-u,F=i?"left":"right"):(M=e.left+(i?0:h)+u,F=i?"right":"left"),b=0,_=l.length;b<_;++b)!Mt(k=(x=l[b]).label)&&(L=e.getPixelForTick(x._index||b)+r.labelOffset,H=(j=x.major?d.major:d.minor).lineHeight,X=st(k)?k.length:1,o?(M=L,Z="top"===a?((v?1:.5)-X)*H:(v?0:.5)*H):(D=L,Z=(1-X)*H/2),g.push({x:M,y:D,rotation:v,label:k,font:j,textOffset:Z,textAlign:F}));return g},_drawGrid:function(e){var t=this,r=t.options.gridLines;if(r.display){var u,h,v,g,b,a=t.ctx,i=t.chart,o=m._alignPixel,l=r.drawBorder?Ht(r.lineWidth,0,0):0,d=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e));for(v=0,g=d.length;v<g;++v)h=(b=d[v]).color,(u=b.width)&&h&&(a.save(),a.lineWidth=u,a.strokeStyle=h,a.setLineDash&&(a.setLineDash(b.borderDash),a.lineDashOffset=b.borderDashOffset),a.beginPath(),r.drawTicks&&(a.moveTo(b.tx1,b.ty1),a.lineTo(b.tx2,b.ty2)),r.drawOnChartArea&&(a.moveTo(b.x1,b.y1),a.lineTo(b.x2,b.y2)),a.stroke(),a.restore(
vendor: 6,826 bytes, line 1
1));if(l){var M,D,F,L,_=l,x=Ht(r.lineWidth,d.ticksLength-1,1),k=d.borderValue;t.isHorizontal()?(M=o(i,t.left,_)-_/2,D=o(i,t.right,x)+x/2,F=L=k):(F=o(i,t.top,_)-_/2,L=o(i,t.bottom,x)+x/2,M=D=k),a.lineWidth=l,a.strokeStyle=Ht(r.color,0),a.beginPath(),a.moveTo(M,F),a.lineTo(D,L),a.stroke()}}},_drawLabels:function(){var e=this;if(e.options.ticks.display){var i,o,l,d,u,h,v,g,r=e.ctx,a=e._labelItems||(e._labelItems=e._computeLabelItems());for(i=0,l=a.length;i<l;++i){if(h=(u=a[i]).font,r.save(),r.translate(u.x,u.y),r.rotate(u.rotation),r.font=h.string,r.fillStyle=h.color,r.textBaseline="middle",r.textAlign=u.textAlign,g=u.textOffset,st(v=u.label))for(o=0,d=v.length;o<d;++o)r.fillText(""+v[o],0,g),g+=h.lineHeight;else r.fillText(v,0,g);r.restore()}}},_drawTitle:function(){var e=this,t=e.ctx,r=e.options,a=r.scaleLabel;if(a.display){var v,g,i=lt(a.fontColor,R.global.defaultFontColor),o=m.options._parseFont(a),l=m.options.toPadding(a.padding),d=o.lineHeight/2,u=r.position,h=0;if(e.isHorizontal())v=e.left+e.width/2,g="bottom"===u?e.bottom-d-l.bottom:e.top+d+l.top;else{var b="left"===u;v=b?e.left+d+l.top:e.right-d-l.top,g=e.top+e.height/2,h=b?-.5*Math.PI:.5*Math.PI}t.save(),t.translate(v,g),t.rotate(h),t.textAlign="center",t.textBaseline="middle",t.fillStyle=i,t.font=o.string,t.fillText(a.labelString,0,0),t.restore()}},draw:function(e){var t=this;t._isVisible()&&(t._drawGrid(e),t._drawTitle(),t._drawLabels())},_layers:function(){var e=this,t=e.options,r=t.ticks&&t.ticks.z||0,a=t.gridLines&&t.gridLines.z||0;return e._isVisible()&&r!==a&&e.draw===e._draw?[{z:a,draw:function(){e._drawGrid.apply(e,arguments),e._drawTitle.apply(e,arguments)}},{z:r,draw:function(){e._drawLabels.apply(e,arguments)}}]:[{z:r,draw:function(){e.draw.apply(e,arguments)}}]},_getMatchingVisibleMetas:function(e){var t=this,r=t.isHorizontal();return t.chart._getSortedVisibleDatasetMetas().filter(function(a){return(!e||a.type===e)&&(r?a.xAxisID===t.id:a.yAxisID===t.id)})}});Br.prototype._draw=Br.prototype.draw;var Ie=Br,jr=m.isNullOrUndef,xn=Ie.extend({determineDataLimits:function(){var d,e=this,t=e._getLabels(),r=e.options.ticks,a=r.min,i=r.max,o=0,l=t.length-1;void 0!==a&&(d=t.indexOf(a))>=0&&(o=d),void 0!==i&&(d=t.indexOf(i))>=0&&(l=d),e.minIndex=o,e.maxIndex=l,e.min=t[o],e.max=t[l]},buildTicks:function(){var e=this,t=e._getLabels(),r=e.minIndex,a=e.maxIndex;e.ticks=0===r&&a===t.length-1?t:t.slice(r,a+1)},getLabelForIndex:function(e,t){var r=this,a=r.chart;return a.getDatasetMeta(t).controller._getValueScaleId()===r.id?r.getRightValue(a.data.datasets[t].data[e]):r._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,r=e.ticks;Ie.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),r&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(r.length-(t?0:1),1))},getPixelForValue:function(e,t,r){var i,o,l,a=this;return!jr(t)&&!jr(r)&&(e=a.chart.data.datasets[r].data[t]),jr(e)||(i=a.isHorizontal()?e.x:e.y),(void 0!==i||void 0!==e&&isNaN(t))&&(o=a._getLabels(),e=m.valueOrDefault(i,e),t=-1!==(l=o.indexOf(e))?l:t,isNaN(t)&&(t=e)),a.getPixelForDecimal((t-a._startValue)/a._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=this,r=Math.round(t._startValue+t.getDecimalForPixel(e)*t._valueRange);return Math.min(Math.max(r,0),t.ticks.length-1)},getBasePixel:function(){return this.bottom}});xn._defaults={position:"bottom"};var St=m.isNullOrUndef;var Vr=Ie.extend({getRightValue:function(e){return"string"==typeof e?+e:Ie.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,r=e.options.ticks;if(r.beginAtZero){var a=m.sign(e.min),i=m.sign(e.max);a<0&&i<0?e.max=0:a>0&&i>0&&(e.min=0)}var o=void 0!==r.min||void 0!==r.suggestedMin,l=void 0!==r.max||void 0!==r.suggestedMax;void 0!==r.min?e.min=r.min:void 0!==r.suggestedMin&&(e.min=null===e.min?r.suggestedMin:Math.min(e.min,r.suggestedMin)),void 0!==r.max?e.max=r.max:void 0!==r.suggestedMax&&(e.max=null===e.max?r.suggestedMax:Math.max(e.max,r.suggestedMax)),o!==l&&e.min>=e.max&&(o?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,r.beginAtZero||e.min--)},getTickLimit:function(){var i,e=this,t=e.options.ticks,r=t.stepSize,a=t.maxTicksLimit;return r?i=Math.ceil(e.max/r)-Math.floor(e.min/r)+1:(i=e._computeTickLimit(),a=a||11),a&&(i=Math.min(a,i)),i},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:m.noop,buildTicks:function(){var e=this,r=e.options.ticks,a=e.getTickLimit(),i={maxTicks:a=Math.max(2,a),min:r.min,max:r.max,precision:r.precision,stepSize:m.valueOrDefault(r.fixedStepSize,r.stepSize)},o=e.ticks=function Zi(e,t){var _,x,k,M,r=[],i=e.stepSize,o=i||1,l=e.maxTicks-1,d=e.min,u=e.max,h=e.precision,v=t.min,g=t.max,b=m.niceNum((g-v)/l/o)*o;if(b<1e-14&&St(d)&&St(u))return[v,g];(M=Math.ceil(g/b)-Math.floor(v/b))>l&&(b=m.niceNum(M*b/l/o)*o),i||St(h)?_=Math.pow(10,m._decimalPlaces(b)):(_=Math.pow(10,h),b=Math.ceil(b*_)/_),x=Math.floor(v/b)*b,k=Math.ceil(g/b)*b,i&&(!St(d)&&m.almostWhole(d/b,b/1e3)&&(x=d),!St(u)&&m.almostWhole(u/b,b/1e3)&&(k=u)),M=m.almostEquals(M=(k-x)/b,Math.round(M),b/1e3)?Math.round(M):Math.ceil(M),x=Math.round(x*_)/_,k=Math.round(k*_)/_,r.push(St(d)?x:d);for(var D=1;D<M;++D)r.push(Math.round((x+D*b)*_)/_);return r.push(St(u)?k:u),r}(i,e);e.handleDirectionalChanges(),e.max=m.max(o),e.min=m.min(o),r.reverse?(o.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),Ie.prototype.convertTicksToLabels.call(e)},_configure:function(){var i,e=this,t=e.getTicks(),r=e.min,a=e.max;Ie.prototype._configure.call(e),e.options.offset&&t.length&&(r-=i=(a-r)/Math.max(t.length-1,1)/2,a+=i),e._startValue=r,e._endValue=a,e._valueRange=a-r}}),Ji={position:"left",ticks:{callback:ur.formatters.linear}};function eo(e,t,r,a){var v,g,i=e.options,l=function Qi(e,t,r){var a=[r.type,void 0===t&&void 0===r.stack?r.index:"",r.stack].join(".");return void 0===e[a]&&(e[a]={pos:[],neg:[]}),e[a]}(t,i.stacked,r),d=l.pos,u=l.neg,h=a.length;for(v=0;v<h;++v)g=e._parseValue(a[v]),!(isNaN(g.min)||isNaN(g.max)||r.data[v].hidden)&&(d[v]=d[v]||0,u[v]=u[v]||0,i.relativePoints?d[v]=100:g.min<0||g.max<0?u[v]+=g.min:d[v]+=g.max)}function to(e,t,r){var i,o,a=r.length;for(i=0;i<a;++i)o=e._parseValue(r[i]),!(isNaN(o.min)||isNaN(o.max)||t.data[i].hidden)&&(e.min=Math.min(e.min,o.min),e.max=Math.max(e.max,o.max))}var kn=Vr.extend({determineDataLimits:function(){var u,h,v,g,e=this,t=e.options,a=e.chart.data.datasets,i=e._getMatchingVisibleMetas(),o=t.stacked,l={},d=i.length;if(e.min=Number.POSITIVE_INFINITY,e.max=Number.NEGATIVE_INFINITY,void 0===o)for(u=0;!o&&u<d;++u)o=void 0!==(h=i[u]).stack;for(u=0;
1u<d;++u)v=a[(h=i[u]).index].data,o?eo(e,l,h,v):to(e,h,v);m.each(l,function(b){g=b.pos.concat(b.neg),e.min=Math.min(e.min,m.min(g)),e.max=Math.max(e.max,m.max(g))}),e.min=m.isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=m.isFinite(e.max)&&!isNaN(e.max)?e.max:1,e.handleTickRangeOptions()},_computeTickLimit:function(){var t,e=this;return e.isHorizontal()?Math.ceil(e.width/40):(t=m.options._parseFont(e.options.ticks),Math.ceil(e.height/t.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this;return t.getPixelForDecimal((+t.getRightValue(e)-t._startValue)/t._valueRange)},getValueForPixel:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange},getPixelForTick:function(e){var t=this.ticksAsNumbers;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])}});kn._defaults=Ji;var ka=m.valueOrDefault,Ae=m.math.log10;var Ur={position:"left",ticks:{callback:ur.formatters.logarithmic}};function $r(e,t){return m.isFinite(e)&&e>=0?e:t}var Mn=Ie.extend({determineDataLimits:function(){var l,d,u,h,v,g,e=this,t=e.options,r=e.chart,a=r.data.datasets,i=e.isHorizontal();function o(M){return i?M.xAxisID===e.id:M.yAxisID===e.id}e.min=Number.POSITIVE_INFINITY,e.max=Number.NEGATIVE_INFINITY,e.minNotZero=Number.POSITIVE_INFINITY;var b=t.stacked;if(void 0===b)for(l=0;l<a.length;l++)if(d=r.getDatasetMeta(l),r.isDatasetVisible(l)&&o(d)&&void 0!==d.stack){b=!0;break}if(t.stacked||b){var _={};for(l=0;l<a.length;l++){var x=[(d=r.getDatasetMeta(l)).type,void 0===t.stacked&&void 0===d.stack?l:"",d.stack].join(".");if(r.isDatasetVisible(l)&&o(d))for(void 0===_[x]&&(_[x]=[]),v=0,g=(h=a[l].data).length;v<g;v++){var k=_[x];u=e._parseValue(h[v]),!(isNaN(u.min)||isNaN(u.max)||d.data[v].hidden||u.min<0||u.max<0)&&(k[v]=k[v]||0,k[v]+=u.max)}}m.each(_,function(M){if(M.length>0){var D=m.min(M),F=m.max(M);e.min=Math.min(e.min,D),e.max=Math.max(e.max,F)}})}else for(l=0;l<a.length;l++)if(d=r.getDatasetMeta(l),r.isDatasetVisible(l)&&o(d))for(v=0,g=(h=a[l].data).length;v<g;v++)u=e._parseValue(h[v]),!(isNaN(u.min)||isNaN(u.max)||d.data[v].hidden||u.min<0||u.max<0)&&(e.min=Math.min(u.min,e.min),e.max=Math.max(u.max,e.max),0!==u.min&&(e.minNotZero=Math.min(u.min,e.minNotZero)));e.min=m.isFinite(e.min)?e.min:null,e.max=m.isFinite(e.max)?e.max:null,e.minNotZero=m.isFinite(e.minNotZero)?e.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;e.min=$r(t.min,e.min),e.max=$r(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(Ae(e.min))-1),e.max=Math.pow(10,Math.floor(Ae(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(Ae(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(Ae(e.min))+1):10),null===e.minNotZero&&(e.minNotZero=e.min>0?e.min:e.max<1?Math.pow(10,Math.floor(Ae(e.max))):1)},buildTicks:function(){var e=this,t=e.options.ticks,r=!e.isHorizontal(),a={min:$r(t.min),max:$r(t.max)},i=e.ticks=function ao(e,t){var l,d,r=[],a=ka(e.min,Math.pow(10,Math.floor(Ae(t.min)))),i=Math.floor(Ae(t.max)),o=Math.ceil(t.max/Math.pow(10,i));0===a?(l=Math.floor(Ae(t.minNotZero)),d=Math.floor(t.minNotZero/Math.pow(10,l)),r.push(a),a=d*Math.pow(10,l)):(l=Math.floor(Ae(a)),d=Math.floor(a/Math.pow(10,l)));var u=l<0?Math.pow(10,Math.abs(l)):1;do{r.push(a),10==++d&&(d=1,u=++l>=0?1:u),a=Math.round(d*Math.pow(10,l)*u)/u}while(l<i||l===i&&d<o);var h=ka(e.max,a);return r.push(h),r}(a,e);e.max=m.max(i),e.min=m.min(i),t.reverse?(r=!r,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),r&&i.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),Ie.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){var t=this.tickValues;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(Ae(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,r=0;Ie.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),r=ka(e.options.ticks.fontSize,R.global.defaultFontSize)/e._length),e._startValue=Ae(t),e._valueOffset=r,e._valueRange=(Ae(e.max)-Ae(t))/(1-r)},getPixelForValue:function(e){var t=this,r=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(r=(Ae(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(r)},getValueForPixel:function(e){var t=this,r=t.getDecimalForPixel(e);return 0===r&&0===t.min?0:Math.pow(10,t._startValue+(r-t._valueOffset)*t._valueRange)}});Mn._defaults=Ur;var Gr=m.valueOrDefault,Ma=m.valueAtIndexOrDefault,Sn=m.options.resolve,io={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:ur.formatters.linear}
vendor: 4,364 bytes, line 1
1,pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function Sa(e){var t=e.ticks;return t.display&&e.display?Gr(t.fontSize,R.global.defaultFontSize)+2*t.backdropPaddingY:0}function Dn(e,t,r){return m.isArray(r)?{w:m.longestText(e,e.font,r),h:r.length*t}:{w:e.measureText(r).width,h:t}}function Da(e,t,r,a,i){return e===a||e===i?{start:t-r/2,end:t+r/2}:e<a||e>i?{start:t-r,end:t}:{start:t,end:t+r}}function qr(e){return 0===e||180===e?"center":e<180?"left":"right"}function Bt(e,t,r,a){var o,l,i=r.y+a/2;if(m.isArray(t))for(o=0,l=t.length;o<l;++o)e.fillText(t[o],r.x,i),i+=a;else e.fillText(t,r.x,i)}function Zr(e,t,r){90===e||270===e?r.y-=t.h/2:(e>270||e<90)&&(r.y-=t.h)}function fr(e){return m.isNumber(e)?e:0}var Ca=Vr.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=Sa(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,r=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;m.each(t.data.datasets,function(i,o){if(t.isDatasetVisible(o)){var l=t.getDatasetMeta(o);m.each(i.data,function(d,u){var h=+e.getRightValue(d);isNaN(h)||l.data[u].hidden||(r=Math.min(h,r),a=Math.max(h,a))})}}),e.min=r===Number.POSITIVE_INFINITY?0:r,e.max=a===Number.NEGATIVE_INFINITY?0:a,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Sa(this.options))},convertTicksToLabels:function(){var e=this;Vr.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(function(){var t=m.callback(e.options.pointLabels.callback,arguments,e);return t||0===t?t:""})},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this,t=e.options;t.display&&t.pointLabels.display?function Cn(e){var i,o,l,t=m.options._parseFont(e.options.pointLabels),r={l:0,r:e.width,t:0,b:e.height-e.paddingTop},a={};e.ctx.font=t.string,e._pointLabelSizes=[];var d=e.chart.data.labels.length;for(i=0;i<d;i++){l=e.getPointPosition(i,e.drawingArea+5),o=Dn(e.ctx,t.lineHeight,e.pointLabels[i]),e._pointLabelSizes[i]=o;var u=e.getIndexAngle(i),h=m.toDegrees(u)%360,v=Da(h,l.x,o.w,0,180),g=Da(h,l.y,o.h,90,270);v.start<r.l&&(r.l=v.start,a.l=u),v.end>r.r&&(r.r=v.end,a.r=u),g.start<r.t&&(r.t=g.start,a.t=u),g.end>r.b&&(r.b=g.end,a.b=u)}e.setReductions(e.drawingArea,r,a)}(e):e.setCenterPoint(0,0,0,0)},setReductions:function(e,t,r){var a=this,i=t.l/Math.sin(r.l),o=Math.max(t.r-a.width,0)/Math.sin(r.r),l=-t.t/Math.cos(r.t),d=-Math.max(t.b-(a.height-a.paddingTop),0)/Math.cos(r.b);i=fr(i),o=fr(o),l=fr(l),d=fr(d),a.drawingArea=Math.min(Math.floor(e-(i+o)/2),Math.floor(e-(l+d)/2)),a.setCenterPoint(i,o,l,d)},setCenterPoint:function(e,t,r,a){var i=this,d=r+i.drawingArea,u=i.height-i.paddingTop-a-i.drawingArea;i.xCenter=Math.floor((e+i.drawingArea+(i.width-t-i.drawingArea))/2+i.left),i.yCenter=Math.floor((d+u)/2+i.top+i.paddingTop)},getIndexAngle:function(e){var t=this.chart,o=(e*(360/t.data.labels.length)+((t.options||{}).startAngle||0))%360;return(o<0?o+360:o)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(m.isNullOrUndef(e))return NaN;var r=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*r:(e-t.min)*r},getPointPosition:function(e,t){var r=this,a=r.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(a)*t+r.xCenter,y:Math.sin(a)*t+r.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this,r=t.min,a=t.max;return t.getPointPositionForValue(e||0,t.beginAtZero?0:r<0&&a<0?a:r>0&&a>0?r:0)},_drawGrid:function(){var d,u,h,e=this,t=e.ctx,r=e.options,a=r.gridLines,i=r.angleLines,o=Gr(i.lineWidth,a.lineWidth),l=Gr(i.color,a.color);if(r.pointLabels.display&&function Pn(e){var t=e.ctx,r=e.options,a=r.pointLabels,i=Sa(r),o=e.getDistanceFromCenterForValue(r.ticks.reverse?e.min:e.max),l=m.options._parseFont(a);t.save(),t.font=l.string,t.textBaseline="middle";for(var d=e.chart.data.labels.length-1;d>=0;d--){var h=e.getPointPosition(d,o+(0===d?i/2:0)+5),v=Ma(a.fontColor,d,R.global.defaultFontColor);t.fillStyle=v;var g=e.getIndexAngle(d),b=m.toDegrees(g);t.textAlign=qr(b),Zr(b,e._pointLabelSizes[d],h),Bt(t,e.pointLabels[d],h,l.lineHeight)}
1t.restore()}(e),a.display&&m.each(e.ticks,function(v,g){0!==g&&(u=e.getDistanceFromCenterForValue(e.ticksAsNumbers[g]),function jt(e,t,r,a){var h,i=e.ctx,o=t.circular,l=e.chart.data.labels.length,d=Ma(t.color,a-1),u=Ma(t.lineWidth,a-1);if((o||l)&&d&&u){if(i.save(),i.strokeStyle=d,i.lineWidth=u,i.setLineDash&&(i.setLineDash(t.borderDash||[]),i.lineDashOffset=t.borderDashOffset||0),i.beginPath(),o)i.arc(e.xCenter,e.yCenter,r,0,2*Math.PI);else{h=e.getPointPosition(0,r),i.moveTo(h.x,h.y);for(var v=1;v<l;v++)h=e.getPointPosition(v,r),i.lineTo(h.x,h.y)}i.closePath(),i.stroke(),i.restore()}}(e,a,u,g))}),i.display&&o&&l){for(t.save(),t.lineWidth=o,t.strokeStyle=l,t.setLineDash&&(t.setLineDash(Sn([i.borderDash,a.borderDash,[]])),t.lineDashOffset=Sn([i.borderDashOffset,a.borderDashOffset,0])),d=e.chart.data.labels.length-1;d>=0;d--)u=e.getDistanceFromCenterForValue(r.ticks.reverse?e.min:e.max),h=e.getPointPosition(d,u),t.beginPath(),t.moveTo(e.xCenter,e.yCenter),t.lineTo(h.x,h.y),t.stroke();t.restore()}},_drawLabels:function(){var e=this,t=e.ctx,a=e.options.ticks;if(a.display){var d,u,i=e.getIndexAngle(0),o=m.options._parseFont(a),l=Gr(a.fontColor,R.global.defaultFontColor);t.save(),t.font=o.string,t.translate(e.xCenter,e.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",m.each(e.ticks,function(h,v){0===v&&!a.reverse||(d=e.getDistanceFromCenterForValue(e.ticksAsNumbers[v]),a.showLabelBackdrop&&(u=t.measureText(h).width,t.fillStyle=a.backdropColor,t.fillRect(-u/2-a.backdropPaddingX,-d-o.size/2-a.backdropPaddingY,u+2*a.backdropPaddingX,o.size+2*a.backdropPaddingY)),t.fillStyle=l,t.fillText(h,0,-d))}),t.restore()}},_drawTitle:m.noop});Ca._defaults=io;var Pa=m._deprecated,Tn=m.options.resolve,so=m.valueOrDefault,On=Number.MIN_SAFE_INTEGER||-9007199254740991,Ta=Number.MAX_SAFE_INTEGER||9007199254740991,Jr={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Ne=Object.keys(Jr);function Fn(e,t){return e-t}function Rn(e){return m.valueOrDefault(e.time.min,e.ticks.min)}function Ln(e){return m.valueOrDefault(e.time.max,e.ticks.max)}function Vt(e,t,r,a){var i=function fo(e,t,r){for(var o,l,d,a=0,i=e.length-1;a>=0&&a<=i;){if(d=e[o=a+i>>1],!(l=e[o-1]||null))return{lo:null,hi:d};if(d[t]<r)a=o+1;else{if(!(l[t]>r))return{lo:l,hi:d};i=o-1}}return{lo:d,hi:null}}(e,t,r),o=i.lo?i.hi?i.lo:e[e.length-2]:e[0],l=i.lo?i.hi?i.hi:e[e.length-1]:e[1],d=l[t]-o[t];return o[a]+(l[a]-o[a])*(d?(r-o[t])/d:0)}function Oa(e,t){var r=e._adapter,a=e.options.time,i=a.parser,o=i||a.format,l=t;return"function"==typeof i&&(l=i(l)),m.isFinite(l)||(l="string"==typeof o?r.parse(l,o):r.parse(l)),null!==l?+l:(!i&&"function"==typeof o&&(l=o(t),m.isFinite(l)||(l=r.parse(l))),l)}function Dt(e,t){if(m.isNullOrUndef(t))return null;var r=e.options.time,a=Oa(e,e.getRightValue(t));return null===a||r.round&&(a=+e._adapter.startOf(a,r.round)),a}function In(e,t,r,a){var o,l,i=Ne.length;for(o=Ne.indexOf(e);o<i-1;++o)if((l=Jr[Ne[o]]).common&&Math.ceil((r-t)/((l.steps?l.steps:Ta)*l.size))<=a)return Ne[o];return Ne[i-1]}function An(e,t,r){var l,d,a=[],i={},o=t.length;for(l=0;l<o;++l)i[d=t[l]]=l,a.push({value:d,major:!1});return 0!==o&&r?function Fa(e,t,r,a){var d,u,i=e._adapter,o=+i.startOf(t[0].value,a),l=t[t.length-1].value;for(d=o;d<=l;d=+i.add(d,1,a))(u=r[d])>=0&&(t[u].major=!0);return t}(e,a,i,r):a}var Nn=Ie.extend({initialize:function(){this.mergeTicksOptions(),Ie.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,r=t.time||(t.time={}),a=e._adapter=new Hr._date(t.adapters.date);return Pa("time scale",r.format,"time.format","time.parser"),Pa("time scale",r.min,"time.min","ticks.min"),Pa("time scale",r.max,"time.max","ticks.max"),m.mergeIf(r.displayFormats,a.formats()),Ie.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),Ie.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var v,g,b,_,x,k,M,e=this,t=e.chart,r=e._adapter,a=e.options,i=a.time.unit||"day",o=Ta,l=On,d=[],u=[],h=[],D=e._getLabels();for(v=0,b=D.length;v<b;++v)h.push(Dt(e,D[v]));for(v=0,b=(t.data.datasets||[]).length;v<b;++v)if(t.isDatasetVisible(v))if(m.isObject((x=t.data.datasets[v].data)[0]))for(u[v]=[],g=0,_=x.length;g<_;++g)k=Dt(e,x[g]),d.push(k),u[v][g]=k;else u[v]=h.slice(0),M||(d=d.concat(h),M=!0);else u[v]=[];h.length&&(o=Math.min(o,h[0]),l=Math.max(l,h[h.length-1])),d.length&&(d=b>1?function lo(e){var a,i,o,t={},r=[];for(a=0,i=e.length;a<i;++a)t[o=e[a]]||(t[o]=!0,r.push(o));return r}(d).sort(Fn):d.sort(Fn),o=Math.min(o,d[0]),l=Math.max(l,d[d.length-1])),o=Dt(e,Rn(a))||o,l=Dt(e,Ln(a))||l,o=o===Ta?+r.startOf(Date.now(),i):o,l=l===On?+r.endOf(Date.now(),i)+1:l,e.min=Math.min(o,l),e.max=Math.max(o+1,l),e._table=[],e._timestamps={data:d,datasets:u,labels:h}},buildTicks:function(){var g,b,_,e=this,t=e.min,r=e.max,a=e.options,i=a.ticks,o=a.time,l=e._timestamps,d=[],u=e.getLabelCapacity(t),h=i.source,v=a.distribution;for(l="data"===h||"auto"===h&&"series"===v?l.data:"labels"===h?l.labels:function vo(e,t,r,a){var b,i=e._adapter,o=e.options,l=o.time,d=l.unit||In(l.minUnit,t,r,a),u=Tn([l.stepSize,l.unitStepSize,1]),h="week"===d&&l.isoWeekday,v=t,g=[];if(h&&(v=+i.startOf(v,"isoWeek",h)),v=+i.startOf(v,h?"day":d),i.diff(r,t,d)>1e5*u)throw t+" and "+r+" are too far apart with stepSize of "+u+" "+d;for(b=v;b<r;b=+i.add(b,u,d))g.push(b);return(b===r||"ticks"===o.bounds)&&g.push(b),g}(e,t,r,u),"ticks"===a.bounds&&l.length&&(t=l[0],r=l[l.length-1]),t=Dt(e,Rn(a))||t,r=Dt(e,Ln(a))||r,g=0,b=l.length;g<b;++g)(_=l[g])>=t&&_<=r&&d.push(_);return e.min=t,e.max=r,e._unit=o.unit||(i.autoSkip?In(o.minUnit,e.min,e.max,u):function ho(e,t,r,a,i){var o,l;for(o=Ne.length-1;o>=Ne.indexOf(r);o--)if(Jr[l=Ne[o]].common&&e._adapter.diff(i,a,l)>=t-1)return l;return Ne[r?Ne.indexOf(r):0]}(e,d.length,o.minUnit,e.min,e.max)),e._majorUnit=i.major.enabled&&"year"!==e._unit?function co(e){for(var t=Ne.indexOf(e)+1,r=Ne.length;t<r;++t)if(Jr[Ne[t]].common)return Ne[t]}(e._unit):void 0,e._table=function uo(e,t,r,a){if("linear"===a||!e.length)return[{time:t,pos:0},{time:r,pos:1}];var l,d,u,h,v,i=[],o=[t];for(l=0,d=e.length;l<d;++l)(h=e[l])>t&&h<r&&o.push(h);for(o.push(r),l=0,d=o.length;l<d;++l)v=o[l+1],h=o[l],(void 0===(u=o[l-1])||void 0===v||Math.round((v+u)/2)!==h)&&i.push({time:h,pos:l/(d-1)});return i}(e._timestamps.data,t,r,v),e._offsets=function go(e,t,r,a,i){var d,u,o=0,l=0;return i.offset&&t.length&&(d=Vt(e,"time",t[0],"pos"),o=1===t.length?1-d:(Vt(e,"time",t[1],"pos")-d)/2,u=Vt(e,"time",t[t.length-1],"pos"),l=1===t.length?u:(u-Vt(e,"time",t[t.length-2],"pos"))/2),{start:o,end:l,factor:1/(o+1+l)}}(e._table,d,0,0,a),i.reverse&&d.reverse(),An(e,d,e._majorUnit)},getLabelForIndex:function(e,t){var r=this,a=r._adapter,i=r.chart.data,o=r.options.time,l=i.labels&&e<i.labels.length?i.labels[e]:"",d=i.datasets[t].data[e];return m.isObject(d)&&(l=r.getRightValue(d)),o.tooltipFormat?a.format(Oa(r,l),o.tooltipFormat):"string"==typeof l?l:a.format(Oa(r,l),o.displayFormats.datetime)}
vendor: 9,992 bytes, line 1
1,tickFormatFunction:function(e,t,r,a){var i=this,l=i.options,d=l.time.displayFormats,h=i._majorUnit,v=d[h],g=r[t],b=l.ticks,_=h&&v&&g&&g.major,x=i._adapter.format(e,a||(_?v:d[i._unit])),k=_?b.major:b.minor,M=Tn([k.callback,k.userCallback,b.callback,b.userCallback]);return M?M(x,t,r):x},convertTicksToLabels:function(e){var r,a,t=[];for(r=0,a=e.length;r<a;++r)t.push(this.tickFormatFunction(e[r].value,r,e));return t},getPixelForOffset:function(e){var t=this,r=t._offsets,a=Vt(t._table,"time",e,"pos");return t.getPixelForDecimal((r.start+a)*r.factor)},getPixelForValue:function(e,t,r){var a=this,i=null;if(void 0!==t&&void 0!==r&&(i=a._timestamps.datasets[r][t]),null===i&&(i=Dt(a,e)),null!==i)return a.getPixelForOffset(i)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this,r=t._offsets,a=t.getDecimalForPixel(e)/r.factor-r.end,i=Vt(t._table,"pos",a,"time");return t._adapter._create(i)},_getLabelSize:function(e){var t=this,r=t.options.ticks,a=t.ctx.measureText(e).width,i=m.toRadians(t.isHorizontal()?r.maxRotation:r.minRotation),o=Math.cos(i),l=Math.sin(i),d=so(r.fontSize,R.global.defaultFontSize);return{w:a*o+d*l,h:a*l+d*o}},getLabelWidth:function(e){return this._getLabelSize(e).w},getLabelCapacity:function(e){var t=this,r=t.options.time,a=r.displayFormats,i=a[r.unit]||a.millisecond,o=t.tickFormatFunction(e,0,An(t,[e],t._majorUnit),i),l=t._getLabelSize(o),d=Math.floor(t.isHorizontal()?t.width/l.w:t.height/l.h);return t.options.offset&&d--,d>0?d:1}});Nn._defaults={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};var Xr={category:xn,linear:kn,logarithmic:Mn,radialLinear:Ca,time:Nn},po={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};Hr._date.override("function"==typeof y?{_id:"moment",formats:function(){return po},parse:function(e,t){return"string"==typeof e&&"string"==typeof t?e=y(e,t):e instanceof y||(e=y(e)),e.isValid()?e.valueOf():null},format:function(e,t){return y(e).format(t)},add:function(e,t,r){return y(e).add(t,r).valueOf()},diff:function(e,t,r){return y(e).diff(y(t),r)},startOf:function(e,t,r){return e=y(e),"isoWeek"===t?e.isoWeekday(r).valueOf():e.startOf(t).valueOf()},endOf:function(e,t){return y(e).endOf(t).valueOf()},_create:function(e){return y(e)}}:{}),R._set("global",{plugins:{filler:{propagate:!0}}});var bo={dataset:function(e){var t=e.fill,r=e.chart,a=r.getDatasetMeta(t),o=a&&r.isDatasetVisible(t)&&a.dataset._children||[],l=o.length||0;return l?function(d,u){return u<l&&o[u]._view||null}:null},boundary:function(e){var t=e.boundary,r=t?t.x:null,a=t?t.y:null;return m.isArray(t)?function(i,o){return t[o]}:function(i){return{x:null===r?i.x:r,y:null===a?i.y:a}}}};function yo(e,t,r){var o,a=e._model||{},i=a.fill;if(void 0===i&&(i=!!a.backgroundColor),!1===i||null===i)return!1;if(!0===i)return"origin";if(o=parseFloat(i,10),isFinite(o)&&Math.floor(o)===o)return("-"===i[0]||"+"===i[0])&&(o=t+o),!(o===t||o<0||o>=r)&&o;switch(i){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return i;default:return!1}}function wo(e){return(e.el._scale||{}).getPointPositionForValue?function xo(e){var l,d,u,h,v,t=e.el._scale,r=t.options,a=t.chart.data.labels.length,i=e.fill,o=[];if(!a)return null;for(d=r.ticks.reverse?t.min:t.max,u=t.getPointPositionForValue(0,l=r.ticks.reverse?t.max:t.min),h=0;h<a;++h)v="start"===i||"end"===i?t.getPointPositionForValue(h,"start"===i?l:d):t.getBasePosition(h),r.gridLines.circular&&(v.cx=u.x,v.cy=u.y,v.angle=t.getIndexAngle(h)-Math.PI/2),o.push(v);return o}(e):function _o(e){var o,t=e.el._model||{},r=e.el._scale||{},a=e.fill,i=null;if(isFinite(a))return null;if("start"===a?i=void 0===t.scaleBottom?r.bottom:t.scaleBottom:"end"===a?i=void 0===t.scaleTop?r.top:t.scaleTop:void 0!==t.scaleZero?i=t.scaleZero:r.getBasePixel&&(i=r.getBasePixel()),null!=i){if(void 0!==i.x&&void 0!==i.y)return i;if(m.isFinite(i))return{x:(o=r.isHorizontal())?i:null,y:o?null:i}}return null}(e)}function Yn(e,t,r){var l,i=e[t].fill,o=[t];if(!r)return i;for(;!1!==i&&-1===o.indexOf(i);){if(!isFinite(i))return i;if(!(l=e[i]))return!1;if(l.visible)return i;o.push(i),i=l.fill}return!1}function ko(e){var t=e.fill,r="dataset";return!1===t?null:(isFinite(t)||(r="boundary"),bo[r](e))}function Wn(e){return e&&!e.skip}function La(e,t,r,a,i){var o,l,d,u;if(a&&i){for(e.moveTo(t[0].x,t[0].y),o=1;o<a;++o)m.canvas.lineTo(e,t[o-1],t[o]);if(void 0!==r[0].angle){for(l=r[0].cx,d=r[0].cy,u=Math.sqrt(Math.pow(r[0].x-l,2)+Math.pow(r[0].y-d,2)),o=i-1;o>0;--o)e.arc(l,d,u,r[o].angle,r[o-1].angle,!0);return}for(e.lineTo(r[i-1].x,r[i-1].y),o=i-1;o>0;--o)m.canvas.lineTo(e,r[o],r[o-1],!0)}}function Mo(e,t,r,a,i,o){var b,_,x,k,M,D,F,L,l=t.length,d=a.spanGaps,u=[],h=[],v=0,g=0;for(e.beginPath(),b=0,_=l;b<_;++b)M=r(k=t[x=b%l]._view,x,a),D=Wn(k),F=Wn(M),o&&void 0===L&&D&&(_=l+(L=b+1)),D&&F?(v=u.push(k),g=h.push(M)):v&&g&&(d?(D&&u.push(k),F&&h.push(M)):(La(e,u,h,v,g),v=g=0,u=[],h=[]));La(e,u,h,v,g),e.closePath(),e.fillStyle=i,e.fill()}var So={id:"filler",afterDatasetsUpdate:function(e,t){var o,l,d,u,r=(e.data.datasets||[]).length,a=t.propagate,i=[];for(l=0;l<r;++l)u=null,(d=(o=e.getDatasetMeta(l)).dataset)&&d._model&&d instanceof Re.Line&&(u={visible:e.isDatasetVisible(l),fill:yo(d,l,r),chart:e,el:d}),o.$filler=u,i.push(u);for(l=0;l<r;++l)(u=i[l])&&(u.fill=Yn(i,l,a),u.boundary=wo(u),u.mapper=ko(u))},beforeDatasetsDraw:function(e){var a,i,o,l,d,u,h,t=e._getSortedVisibleDatasetMetas(),r=e.ctx;for(i=t.length-1;i>=0;--i)(a=t[i].$filler)&&a.visible&&(d=(o=a.el)._children||[],h=(l=o._view).backgroundColor||R.global.defaultColor,(u=a.mapper)&&h&&d.length&&(m.canvas.clipArea(r,e.chartArea),Mo(r,d,u,l,h,o._loop),m.canvas.unclipArea(r)))}},Do=m.rtl.getRtlAdapter,Se=m.noop,ut=m.valueOrDefault;function Ia(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}R._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var r=t.datasetIndex,a=this.chart,i=a.getDatasetMeta(r);i.hidden=null===i.hidden?!a.data.datasets[r].hidden:null,a.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,r=e.options.legend||{},a=r.labels&&r.labels.usePointStyle;return e._getSortedDatasetMetas().map(function(i){var o=i.controller.getStyle(a?0:void 0);return{text:t[i.index].label,fillStyle:o.backgroundColor,hidden:!e.isDatasetVisible(i.index),lineCap:o.borderCapStyle,lineDash:o.borderDash,lineDashOffset:o.borderDashOffset,lineJoin:o.borderJoinStyle,lineWidth:o.borderWidth,strokeStyle:o.borderColor,pointStyle:o.pointStyle,rotation:o.rotation,datasetIndex:i.index}},this)}}},legendCallback:function(e){var a,i,o,t=document.createElement("ul"),r=e.data.datasets;for(t.setAttribute("class",e.id+"-legend"),a=0,i=r.length;a<i;a++)(o=t.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=r[a].backgroundColor,r[a].label&&o.appendChild(document.createTextNode(r[a].label));return t.outerHTML}});var En=Fe.extend({initialize:function(e){var t=this;m.extend(t,e),t.legendHitBoxes=[],t._hoveredItem=null,t.doughnutMode=!1},beforeUpdate:Se,update:function(e,t,r){var a=this;return a.beforeUpdate(),a.maxWidth=e,a.maxHeight=t,a.margins=r,a.beforeSetDimensions(),a.setDimensions(),a.afterSetDimensions(),a.beforeBuildLabels(),a.buildLabels(),a.afterBuildLabels(),a.beforeFit(),a.fit(),a.afterFit(),a.afterUpdate(),a.minSize},afterUpdate:Se,beforeSetDimensions:Se,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Se,beforeBuildLabels:Se,buildLabels:function(){var e=this,t=e.options.labels||{},r=m.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(r=r.filter(function(a){return t.filter(a,e.chart.data)})),e.options.reverse&&r.reverse(),e.legendItems=r},afterBuildLabels:Se,beforeFit:Se,fit:function(){var e=this,t=e.options,r=t.labels,a=t.display,i=e.ctx,o=m.options._parseFont(r),l=o.size,d=e.legendHitBoxes=[],u=e.minSize,h=e.isHorizontal();if(h?(u.width=e.maxWidth,u.height=a?10:0):(u.width=a?10:0,u.height=e.maxHeight),a){if(i.font=o.string,h){var v=e.lineWidths=[0],g=0;i.textAlign="left",i.textBaseline="middle",m.each(e.legendItems,function(F,L){var H=Ia(r,l)+l/2+i.measureText(F.text).width;(0===L||v[v.length-1]+H+2*r.padding>u.width)&&(g+=l+r.padding,v[v.length-(L>0?0:1)]=0),d[L]={left:0,top:0,width:H,height:l},v[v.length-1]+=H+r.padding}),u.height+=g}else{var b=r.padding,_=e.columnWidths=[],x=e.columnHeights=[],k=r.padding,M=0,D=0;m.each(e.legendItems,function(F,L){var H=Ia(r,l)+l/2+i.measureText(F.text).width;L>0&&D+l+2*b>u.height&&(k+=M+r.padding,_.push(M),x.push(D),M=0,D=0),M=Math.max(M,H),D+=l+b,d[L]={left:0,top:0,width:H,height:l}}),k+=M,_.push(M),x.push(D),u.width+=k}e.width=u.width,e.height=u.height}else e.width=u.width=e.height=u.height=0},afterFit:Se,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,r=t.labels,a=R.global,i=a.defaultColor,o=a.elements.line,l=e.height,d=e.columnHeights,u=e.width,h=e.lineWidths;if(t.display){var k,v=Do(t.rtl,e.left,e.minSize.width),g=e.ctx,b=ut(r.fontColor,a.defaultFontColor),_=m.options._parseFont(r),x=_.size;g.textAlign=v.textAlign("left"),g.textBaseline="middle",g.lineWidth=.5,g.strokeStyle=b,g.fillStyle=b,g.font=_.string;var M=Ia(r,x),D=e.legendHitBoxes,j=function(Z,oe){switch(t.align){case"start":return r.padding;case"end":return Z-oe;
vendor: 4,152 bytes, line 1
1default:return(Z-oe+r.padding)/2}},H=e.isHorizontal();k=H?{x:e.left+j(u,h[0]),y:e.top+r.padding,line:0}:{x:e.left+r.padding,y:e.top+j(l,d[0]),line:0},m.rtl.overrideTextDirection(e.ctx,t.textDirection);var X=x+r.padding;m.each(e.legendItems,function(Z,oe){var K=g.measureText(Z.text).width,ye=M+x/2+K,be=k.x,ge=k.y;v.setWidth(e.minSize.width),H?oe>0&&be+ye+r.padding>e.left+e.minSize.width&&(ge=k.y+=X,k.line++,be=k.x=e.left+j(u,h[k.line])):oe>0&&ge+X>e.top+e.minSize.height&&(be=k.x=be+e.columnWidths[k.line]+r.padding,k.line++,ge=k.y=e.top+j(l,d[k.line]));var _e=v.x(be);(function(Z,oe,K){if(!(isNaN(M)||M<=0)){g.save();var ye=ut(K.lineWidth,o.borderWidth);if(g.fillStyle=ut(K.fillStyle,i),g.lineCap=ut(K.lineCap,o.borderCapStyle),g.lineDashOffset=ut(K.lineDashOffset,o.borderDashOffset),g.lineJoin=ut(K.lineJoin,o.borderJoinStyle),g.lineWidth=ye,g.strokeStyle=ut(K.strokeStyle,i),g.setLineDash&&g.setLineDash(ut(K.lineDash,o.borderDash)),r&&r.usePointStyle){var be=M*Math.SQRT2/2,ge=v.xPlus(Z,M/2);m.canvas.drawPoint(g,K.pointStyle,be,ge,oe+x/2,K.rotation)}else g.fillRect(v.leftForLtr(Z,M),oe,M,x),0!==ye&&g.strokeRect(v.leftForLtr(Z,M),oe,M,x);g.restore()}})(_e,ge,Z),D[oe].left=v.leftForLtr(_e,D[oe].width),D[oe].top=ge,function(Z,oe,K,ye){var be=x/2,ge=v.xPlus(Z,M+be),_e=oe+be;g.fillText(K.text,ge,_e),K.hidden&&(g.beginPath(),g.lineWidth=2,g.moveTo(ge,_e),g.lineTo(v.xPlus(ge,ye),_e),g.stroke())}(_e,ge,Z,K),H?k.x+=ye+r.padding:k.y+=X}),m.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var a,i,o,r=this;if(e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom)for(o=r.legendHitBoxes,a=0;a<o.length;++a)if(e>=(i=o[a]).left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height)return r.legendItems[a];return null},handleEvent:function(e){var i,t=this,r=t.options,a="mouseup"===e.type?"click":e.type;if("mousemove"===a){if(!r.onHover&&!r.onLeave)return}else{if("click"!==a)return;if(!r.onClick)return}i=t._getLegendItemAt(e.x,e.y),"click"===a?i&&r.onClick&&r.onClick.call(t,e.native,i):(r.onLeave&&i!==t._hoveredItem&&(t._hoveredItem&&r.onLeave.call(t,e.native,t._hoveredItem),t._hoveredItem=i),r.onHover&&i&&r.onHover.call(t,e.native,i))}});function zn(e,t){var r=new En({ctx:e.ctx,options:t,chart:e});$e.configure(e,r,t),$e.addBox(e,r),e.legend=r}var P={id:"legend",_element:En,beforeInit:function(e){var t=e.options.legend;t&&zn(e,t)},beforeUpdate:function(e){var t=e.options.legend,r=e.legend;t?(m.mergeIf(t,R.global.legend),r?($e.configure(e,r,t),r.options=t):zn(e,t)):r&&($e.removeBox(e,r),delete e.legend)},afterEvent:function(e,t){var r=e.legend;r&&r.handleEvent(t)}},dt=m.noop;R._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Hn=Fe.extend({initialize:function(e){m.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:dt,update:function(e,t,r){var a=this;return a.beforeUpdate(),a.maxWidth=e,a.maxHeight=t,a.margins=r,a.beforeSetDimensions(),a.setDimensions(),a.afterSetDimensions(),a.beforeBuildLabels(),a.buildLabels(),a.afterBuildLabels(),a.beforeFit(),a.fit(),a.afterFit(),a.afterUpdate(),a.minSize},afterUpdate:dt,beforeSetDimensions:dt,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:dt,beforeBuildLabels:dt,buildLabels:dt,afterBuildLabels:dt,beforeFit:dt,fit:function(){var o,e=this,t=e.options,r=e.minSize={},a=e.isHorizontal();t.display?(o=(m.isArray(t.text)?t.text.length:1)*m.options._parseFont(t).lineHeight+2*t.padding,e.width=r.width=a?e.maxWidth:o,e.height=r.height=a?o:e.maxHeight):e.width=r.width=e.height=r.height=0},afterFit:dt,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,r=e.options;if(r.display){var g,b,_,a=m.options._parseFont(r),i=a.lineHeight,o=i/2+r.padding,l=0,d=e.top,u=e.left,h=e.bottom,v=e.right;t.fillStyle=m.valueOrDefault(r.fontColor,R.global.defaultFontColor),t.font=a.string,e.isHorizontal()?(b=u+(v-u)/2,_=d+o,g=v-u):(b="left"
1===r.position?u+o:v-o,_=d+(h-d)/2,g=h-d,l=Math.PI*("left"===r.position?-.5:.5)),t.save(),t.translate(b,_),t.rotate(l),t.textAlign="center",t.textBaseline="middle";var x=r.text;if(m.isArray(x))for(var k=0,M=0;M<x.length;++M)t.fillText(x[M],0,k,g),k+=i;else t.fillText(x,0,0,g);t.restore()}}});function Aa(e,t){var r=new Hn({ctx:e.ctx,options:t,chart:e});$e.configure(e,r,t),$e.addBox(e,r),e.titleBlock=r}var Ke={},Bn=So,Na=P,Co={id:"title",_element:Hn,beforeInit:function(e){var t=e.options.title;t&&Aa(e,t)},beforeUpdate:function(e){var t=e.options.title,r=e.titleBlock;t?(m.mergeIf(t,R.global.title),r?($e.configure(e,r,t),r.options=t):Aa(e,t)):r&&($e.removeBox(e,r),delete e.titleBlock)}};for(var jn in Ke.filler=Bn,Ke.legend=Na,Ke.title=Co,V.helpers=m,function(){function e(a,i,o){var l;return"string"==typeof a?(l=parseInt(a,10),-1!==a.indexOf("%")&&(l=l/100*i.parentNode[o])):l=a,l}function t(a){return null!=a&&"none"!==a}function r(a,i,o){var l=document.defaultView,d=m._getParentNode(a),u=l.getComputedStyle(a)[i],h=l.getComputedStyle(d)[i],v=t(u),g=t(h),b=Number.POSITIVE_INFINITY;return v||g?Math.min(v?e(u,a,o):b,g?e(h,d,o):b):"none"}m.where=function(a,i){if(m.isArray(a)&&Array.prototype.filter)return a.filter(i);var o=[];return m.each(a,function(l){i(l)&&o.push(l)}),o},m.findIndex=Array.prototype.findIndex?function(a,i,o){return a.findIndex(i,o)}:function(a,i,o){o=void 0===o?a:o;for(var l=0,d=a.length;l<d;++l)if(i.call(o,a[l],l,a))return l;return-1},m.findNextWhere=function(a,i,o){m.isNullOrUndef(o)&&(o=-1);for(var l=o+1;l<a.length;l++){var d=a[l];if(i(d))return d}},m.findPreviousWhere=function(a,i,o){m.isNullOrUndef(o)&&(o=a.length);for(var l=o-1;l>=0;l--){var d=a[l];if(i(d))return d}},m.isNumber=function(a){return!isNaN(parseFloat(a))&&isFinite(a)},m.almostEquals=function(a,i,o){return Math.abs(a-i)<o},m.almostWhole=function(a,i){var o=Math.round(a);return o-i<=a&&o+i>=a},m.max=function(a){return a.reduce(function(i,o){return isNaN(o)?i:Math.max(i,o)},Number.NEGATIVE_INFINITY)},m.min=function(a){return a.reduce(function(i,o){return isNaN(o)?i:Math.min(i,o)},Number.POSITIVE_INFINITY)},m.sign=Math.sign?function(a){return Math.sign(a)}:function(a){return 0==(a=+a)||isNaN(a)?a:a>0?1:-1},m.toRadians=function(a){return a*(Math.PI/180)},m.toDegrees=function(a){return a*(180/Math.PI)},m._decimalPlaces=function(a){if(m.isFinite(a)){for(var i=1,o=0;Math.round(a*i)/i!==a;)i*=10,o++;return o}},m.getAngleFromPoint=function(a,i){var o=i.x-a.x,l=i.y-a.y,d=Math.sqrt(o*o+l*l),u=Math.atan2(l,o);return u<-.5*Math.PI&&(u+=2*Math.PI),{angle:u,distance:d}},m.distanceBetweenPoints=function(a,i){return Math.sqrt(Math.pow(i.x-a.x,2)+Math.pow(i.y-a.y,2))},m.aliasPixel=function(a){return a%2==0?0:.5},m._alignPixel=function(a,i,o){var l=a.currentDevicePixelRatio,d=o/2;return Math.round((i-d)*l)/l+d},m.splineCurve=function(a,i,o,l){var d=a.skip?i:a,u=i,h=o.skip?i:o,v=Math.sqrt(Math.pow(u.x-d.x,2)+Math.pow(u.y-d.y,2)),g=Math.sqrt(Math.pow(h.x-u.x,2)+Math.pow(h.y-u.y,2)),b=v/(v+g),_=g/(v+g),x=l*(b=isNaN(b)?0:b),k=l*(_=isNaN(_)?0:_);return{previous:{x:u.x-x*(h.x-d.x),y:u.y-x*(h.y-d.y)},next:{x:u.x+k*(h.x-d.x),y:u.y+k*(h.y-d.y)}}},m.EPSILON=Number.EPSILON||1e-14,m.splineCurveMonotone=function(a){var l,d,u,h,g,b,_,x,k,i=(a||[]).map(function(M){return{model:M._model,deltaK:0,mK:0}}),o=i.length;for(l=0;l<o;++l)if(!(u=i[l]).model.skip){if(d=l>0?i[l-1]:null,(h=l<o-1?i[l+1]:null)&&!h.model.skip){var v=h.model.x-u.model.x;u.deltaK=0!==v?(h.model.y-u.model.y)/v:0}u.mK=!d||d.model.skip?u.deltaK:!h||h.model.skip?d.deltaK:this.sign(d.deltaK)!==this.sign(u.deltaK)?0:(d.deltaK+u.deltaK)/2}for(l=0;l<o-1;++l)if(h=i[l+1],!(u=i[l]).model.skip&&!h.model.skip){if(m.almostEquals(u.deltaK,0,this.EPSILON)){u.mK=h.mK=0;continue}g=u.mK/u.deltaK,b=h.mK/u.deltaK,!((x=Math.pow(g,2)+Math.pow(b,2))<=9)&&(_=3/Math.sqrt(x),u.mK=g*_*u.deltaK,h.mK=b*_*u.deltaK)}for(l=0;l<o;++l)!(u=i[l]).model.skip&&(h=l<o-1?i[l+1]:null,(d=l>0?i[l-1]:null)&&!d.model.skip&&(u.model.controlPointPreviousX=u.model.x-(k=(u.model.x-d.model.x)/3),u.model.controlPointPreviousY=u.model.y-k*u.mK),h&&!h.model.skip&&(u.model.controlPointNextX=u.model.x+(k=(h.model.x-u.model.x)/3),u.model.controlPointNextY=u.model.y+k*u.mK)
vendor: 10,009 bytes, line 1
1)},m.nextItem=function(a,i,o){return o?i>=a.length-1?a[0]:a[i+1]:i>=a.length-1?a[a.length-1]:a[i+1]},m.previousItem=function(a,i,o){return o?i<=0?a[a.length-1]:a[i-1]:i<=0?a[0]:a[i-1]},m.niceNum=function(a,i){var o=Math.floor(m.log10(a)),l=a/Math.pow(10,o);return(i?l<1.5?1:l<3?2:l<7?5:10:l<=1?1:l<=2?2:l<=5?5:10)*Math.pow(10,o)},m.requestAnimFrame=typeof window>"u"?function(a){a()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){return window.setTimeout(a,1e3/60)},m.getRelativePosition=function(a,i){var o,l,d=a.originalEvent||a,u=a.target||a.srcElement,h=u.getBoundingClientRect(),v=d.touches;v&&v.length>0?(o=v[0].clientX,l=v[0].clientY):(o=d.clientX,l=d.clientY);var g=parseFloat(m.getStyle(u,"padding-left")),b=parseFloat(m.getStyle(u,"padding-top")),_=parseFloat(m.getStyle(u,"padding-right")),x=parseFloat(m.getStyle(u,"padding-bottom")),M=h.bottom-h.top-b-x;return{x:o=Math.round((o-h.left-g)/(h.right-h.left-g-_)*u.width/i.currentDevicePixelRatio),y:l=Math.round((l-h.top-b)/M*u.height/i.currentDevicePixelRatio)}},m.getConstraintWidth=function(a){return r(a,"max-width","clientWidth")},m.getConstraintHeight=function(a){return r(a,"max-height","clientHeight")},m._calculatePadding=function(a,i,o){return(i=m.getStyle(a,i)).indexOf("%")>-1?o*parseInt(i,10)/100:parseInt(i,10)},m._getParentNode=function(a){var i=a.parentNode;return i&&"[object ShadowRoot]"===i.toString()&&(i=i.host),i},m.getMaximumWidth=function(a){var i=m._getParentNode(a);if(!i)return a.clientWidth;var o=i.clientWidth,u=o-m._calculatePadding(i,"padding-left",o)-m._calculatePadding(i,"padding-right",o),h=m.getConstraintWidth(a);return isNaN(h)?u:Math.min(u,h)},m.getMaximumHeight=function(a){var i=m._getParentNode(a);if(!i)return a.clientHeight;var o=i.clientHeight,u=o-m._calculatePadding(i,"padding-top",o)-m._calculatePadding(i,"padding-bottom",o),h=m.getConstraintHeight(a);return isNaN(h)?u:Math.min(u,h)},m.getStyle=function(a,i){return a.currentStyle?a.currentStyle[i]:document.defaultView.getComputedStyle(a,null).getPropertyValue(i)},m.retinaScale=function(a,i){var o=a.currentDevicePixelRatio=i||typeof window<"u"&&window.devicePixelRatio||1;if(1!==o){var l=a.canvas,d=a.height,u=a.width;l.height=d*o,l.width=u*o,a.ctx.scale(o,o),!l.style.height&&!l.style.width&&(l.style.height=d+"px",l.style.width=u+"px")}},m.fontString=function(a,i,o){return i+" "+a+"px "+o},m.longestText=function(a,i,o,l){var d=(l=l||{}).data=l.data||{},u=l.garbageCollect=l.garbageCollect||[];l.font!==i&&(d=l.data={},u=l.garbageCollect=[],l.font=i),a.font=i;var g,b,_,x,k,h=0,v=o.length;for(g=0;g<v;g++)if(null!=(x=o[g])&&!0!==m.isArray(x))h=m.measureText(a,d,u,h,x);else if(m.isArray(x))for(b=0,_=x.length;b<_;b++)null!=(k=x[b])&&!m.isArray(k)&&(h=m.measureText(a,d,u,h,k));var M=u.length/2;if(M>o.length){for(g=0;g<M;g++)delete d[u[g]];u.splice(0,M)}return h},m.measureText=function(a,i,o,l,d){var u=i[d];return u||(u=i[d]=a.measureText(d).width,o.push(d)),u>l&&(l=u),l},m.numberOfLabelLines=function(a){var i=1;return m.each(a,function(o){m.isArray(o)&&o.length>i&&(i=o.length)}),i},m.color=Lt?function(a){return a instanceof CanvasGradient&&(a=R.global.defaultColor),Lt(a)}:function(a){return console.error("Color.js not found!"),a},m.getHoverColor=function(a){return a instanceof CanvasPattern||a instanceof CanvasGradient?a:m.color(a).saturate(.5).darken(.1).rgbString()}}(),V._adapters=Hr,V.Animation=sa,V.animationService=la,V.controllers=an,V.DatasetController=ze,V.defaults=R,V.Element=Fe,V.elements=Re,V.Interaction=Le,V.layouts=$e,V.platform=Wt,V.plugins=ie,V.Scale=Ie,V.scaleService=lr,V.Ticks=ur,V.Tooltip=ue,V.helpers.each(Xr,function(e,t){V.scaleService.registerScaleType(t,e,e._defaults)}),Ke)Ke.hasOwnProperty(jn)&&V.plugins.register(Ke[jn]);V.platform.initialize();var Po=V;return typeof window<"u"&&(window.Chart=V),V.Chart=V,V.Legend=Ke.legend._element,V.Title=Ke.title._element,V.pluginService=V.plugins,V.PluginBase=V.Element.extend({}),V.canvasHelpers=V.helpers.canvas,V.layoutService=V.layouts,V.LinearScaleBase=Vr,V.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(e){V[e]=function(t,r){return new V(t,V.helpers.merge(r||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}}),Po}(function(){try{return te(381)}catch{}}())},4989:function(Ge,Tt,te){!function(y){"use strict";var C={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},Ye={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},q=function(se){return 0===se?0:1===se?1:2===se?2:se%100>=3&&se%100<=10?3:se%100>=11?4:5},E={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},I=function(se){return function(we,Ot,je,Ve){var hr=q(we),W=E[se][q(we)];return 2===hr&&(W=W[Ot?0:1]),W.replace(/%d/i,we)}},me=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];y.defineLocale("ar",{months:me,monthsShort:me,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(se){return"\u0645"===se},meridiem:function(se,we,Ot){return se<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:I("s"),ss:I("s"),m:I("m"),mm:I("m"),h:I("h"),hh:I("h"),d:I("d"),dd:I("d"),M:I("M"),MM:I("M"),y:I("y"),yy:I("y")},preparse:function(se){return se.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(we){return Ye[we]}).replace(/\u060c/g,",")},postformat:function(se){return se.replace(/\d/g,function(we){return C[we]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(te(381))},1447:function(Ge,Tt,te){!function(y){"use strict";var C="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Ye="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),q=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],E=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;y.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(me,de){return me?/-MMM-/.test(de)?Ye[me.month()]:C[me.month()]:C},monthsRegex:E,monthsShortRegex:E,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:q,longMonthsParse:q,shortMonthsParse:q,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".
vendor: 4,122 bytes, line 1
1split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(te(381))},8178:function(Ge,Tt,te){!function(y){"use strict";var q=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,E=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];y.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:q,monthsShortRegex:q,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:E,longMonthsParse:E,shortMonthsParse:E,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(me,de){switch(de){case"D":return me+(1===me?"er":"");default:case"M":case"Q":case"DDD":case"d":return me+(1===me?"er":"e");case"w":case"W":return me+(1===me?"re":"e")}},week:{dow:1,doy:4}})}(te(381))},381:function(Ge,Tt,te){(Ge=te.nmd(Ge)).exports=function(){"use strict";var y,cr;function C(){return y.apply(null,arguments)}function q(n){return n instanceof Array||"[object Array]"===Object.prototype.toString.call(n)}function E(n){return null!=n&&"[object Object]"===Object.prototype.toString.call(n)}function I(n,s){return Object.prototype.hasOwnProperty.call(n,s)}function me(n){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(n).length;var s;for(s in n)if(I(n,s))return!1;return!0}function de(n){return void 0===n}function se(n){return"number"==typeof n||"[object Number]"===Object.prototype.toString.call(n)}function we(n){return n instanceof Date||"[object Date]"===Object.prototype.toString.call(n)}function Ot(n,s){var c,f=[],p=n.length;for(c=0;c<p;++c)f.push(s(n[c],c));return f}function je(n,s){for(var f in s)I(s,f)&&(n[f]=s[f]);return I(s,"toString")&&(n.toString=s.toString),I(s,"valueOf")&&(n.valueOf=s.valueOf),n}function Ve(n,s,f,c){return vn(n,s,f,c,!0).utc()}function W(n){return null==n._pf&&(n._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invali
vendor: 4,296 bytes, line 1
1dMonth:null,invalidOffset:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),n._pf}function vr(n){var s=null,f=!1,c=n._d&&!isNaN(n._d.getTime());return c&&(s=W(n),f=cr.call(s.parsedDateParts,function(p){return null!=p}),c=s.overflow<0&&!s.empty&&!s.invalidEra&&!s.invalidMonth&&!s.invalidOffset&&!s.invalidWeekday&&!s.weekdayMismatch&&!s.nullInput&&!s.invalidFormat&&!s.userInvalidated&&(!s.meridiem||s.meridiem&&f),n._strict&&(c=c&&0===s.charsLeftOver&&0===s.unusedTokens.length&&void 0===s.bigHour)),null!=Object.isFrozen&&Object.isFrozen(n)?c:(n._isValid=c,n._isValid)}function Ft(n){var s=Ve(NaN);return null!=n?je(W(s),n):W(s).userInvalidated=!0,s}cr=Array.prototype.some?Array.prototype.some:function(n){var c,s=Object(this),f=s.length>>>0;for(c=0;c<f;c++)if(c in s&&n.call(this,s[c],c,s))return!0;return!1};var ea=C.momentProperties=[],gr=!1;function qt(n,s){var f,c,p,w=ea.length;if(de(s._isAMomentObject)||(n._isAMomentObject=s._isAMomentObject),de(s._i)||(n._i=s._i),de(s._f)||(n._f=s._f),de(s._l)||(n._l=s._l),de(s._strict)||(n._strict=s._strict),de(s._tzm)||(n._tzm=s._tzm),de(s._isUTC)||(n._isUTC=s._isUTC),de(s._offset)||(n._offset=s._offset),de(s._pf)||(n._pf=W(s)),de(s._locale)||(n._locale=s._locale),w>0)for(f=0;f<w;f++)de(p=s[c=ea[f]])||(n[c]=p);return n}function pt(n){qt(this,n),this._d=new Date(null!=n._d?n._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===gr&&(gr=!0,C.updateOffset(this),gr=!1)}function ee(n){return n instanceof pt||null!=n&&null!=n._isAMomentObject}function Zt(n){!1===C.suppressDeprecationWarnings&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+n)}function Y(n,s){var f=!0;return je(function(){if(null!=C.deprecationHandler&&C.deprecationHandler(null,n),f){var p,w,S,c=[],T=arguments.length;for(w=0;w<T;w++){if(p="","object"==typeof arguments[w]){for(S in p+="\n["+w+"] ",arguments[0])I(arguments[0],S)&&(p+=S+": "+arguments[0][S]+", ");p=p.slice(0,-2)}else p=arguments[w];c.push(p)}Zt(n+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack),f=!1}return s.apply(this,arguments)},s)}var U={};function N(n,s){null!=C.deprecationHandler&&C.deprecationHandler(n,s),U[n]||(Zt(s+"\n"+(new Error).stack),U[n]=!0)}function le(n){return typeof Function<"u"&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n)}C.suppressDeprecationWarnings=!1,C.deprecationHandler=null;var ft={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ce(n){return"string"==typeof n?ft[n]||ft[n.toLowerCase()]:void 0}function Jt(n){var f,c,s={};for(c in n)I(n,c)&&(f=ce(c))&&(s[f]=n[c]);return s}var qe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function De(n,s,f){var c=""+Math.abs(n);return(n>=0?f?"+":"":"-")+Math.pow(10,Math.max(0,s-c.length)).toString().substr(1)+c}var mr=/(\[[^\[]*\])|(\\e)|(\\)?(eHHmm|[Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,pr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ra={},Rt={};function A(n,s,f,c){var p=c;"string"==typeof c&&(p=function(){return this[c]()}),n&&(Rt[n]=p),s&&(Rt[s[0]]=function(){return De(p.apply(this,arguments),s[1],s[2])}),f&&(Rt[f]=function(){return this.localeData().ordinal(p.apply(this,arguments),n)})}function Un(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}
vendor: 11,029 bytes, line 1
1function br(n,s){if(!n.isValid())return n.localeData().invalidDate();var f="$"+(s=aa(s,n.localeData()));return I(ra,f)||(ra[f]=function Wa(n){var f,c,s=n.match(mr);for(f=0,c=s.length;f<c;f++)s[f]=Rt[s[f]]?Rt[s[f]]:Un(s[f]);return function(p){var S,w="";for(S=0;S<c;S++)w+=le(s[S])?s[S].call(p,n):s[S];return w}}(s)),ra[f](n)}function aa(n,s){var f=5;function c(p){return s.longDateFormat(p)||p}for(pr.lastIndex=0;f>=0&&pr.test(n);)n=n.replace(pr,c),pr.lastIndex=0,f-=1;return n}var ht,Ea=/\d/,Ce=/\d\d/,za=/\d{3}/,na=/\d{4}/,We=/[+-]?\d{6}/,re=/\d\d?/,ia=/\d\d\d\d?/,yr=/\d\d\d\d\d\d?/,ke=/\d{1,3}/,Lt=/\d{1,4}/,Xt=/[+-]?\d{1,6}/,$=/\d+/,Me=/[+-]?\d+/,Kt=/Z|[+-]\d\d:?\d\d/gi,_r=/Z|[+-]\d\d(?::?\d\d)?/gi,Qt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,It=/^[1-9]\d?/,Te=/^([1-9]\d|\d)/;function O(n,s,f){ht[n]=le(s)?s:function(c,p){return c&&f?f:s}}function xr(n,s){return I(ht,n)?ht[n](s._strict,s._locale):new RegExp(function $n(n){return Qe(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(s,f,c,p,w){return f||c||p||w}))}(n))}function Qe(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function R(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function B(n){var s=+n,f=0;return 0!==s&&isFinite(s)&&(f=R(s)),f}ht={};var oa={};function ae(n,s){var f,p,c=s;for("string"==typeof n&&(n=[n]),se(s)&&(c=function(w,S){S[s]=B(w)}),p=n.length,f=0;f<p;f++)oa[n[f]]=c}function bt(n,s){ae(n,function(f,c,p,w){p._w=p._w||{},s(f,p._w,p,w)})}function Gn(n,s,f){null!=s&&I(oa,n)&&oa[n](s,f._a,f,n)}function wr(n){return n%4==0&&n%100!=0||n%400==0}var he=0,Ee=1,Oe=2,ve=3,Ue=4,m=5,yt=6,qn=7,Zn=8;function er(n){return wr(n)?366:365}A("Y",0,0,function(){var n=this.year();return n<=9999?De(n,4):"+"+n}),A(0,["YY",2],0,function(){return this.year()%100}),A(0,["YYYY",4],0,"year"),A(0,["YYYYY",5],0,"year"),A(0,["YYYYYY",6,!0],0,"year"),O("Y",Me),O("YY",re,Ce),O("YYYY",Lt,na),O("YYYYY",Xt,We),O("YYYYYY",Xt,We),ae(["YYYYY","YYYYYY"],he),ae("YYYY",function(n,s){s[he]=2===n.length?C.parseTwoDigitYear(n):B(n)}),ae("YY",function(n,s){s[he]=C.parseTwoDigitYear(n)}),ae("Y",function(n,s){s[he]=parseInt(n,10)}),C.parseTwoDigitYear=function(n){return B(n)+(B(n)>68?1900:2e3)};var fe,Ha=ct("FullYear",!0);function ct(n,s){return function(f){return null!=f?(kr(this,n,f),C.updateOffset(this,s),this):Fe(this,n)}}function Fe(n,s){if(!n.isValid())return NaN;var f=n._d,c=n._isUTC;switch(s){case"Milliseconds":return c?f.getUTCMilliseconds():f.getMilliseconds();case"Seconds":return c?f.getUTCSeconds():f.getSeconds();case"Minutes":return c?f.getUTCMinutes():f.getMinutes();case"Hours":return c?f.getUTCHours():f.getHours();case"Date":return c?f.getUTCDate():f.getDate();case"Day":return c?f.getUTCDay():f.getDay();case"Month":return c?f.getUTCMonth():f.getMonth();case"FullYear":return c?f.getUTCFullYear():f.getFullYear();default:return NaN}}function kr(n,s,f){var c,p,w,S,T;if(n.isValid()&&!isNaN(f)){switch(c=n._d,p=n._isUTC,s){case"Milliseconds":return void(p?c.setUTCMilliseconds(f):c.setMilliseconds(f));case"Seconds":return void(p?c.setUTCSeconds(f):c.setSeconds(f));case"Minutes":return void(p?c.setUTCMinutes(f):c.setMinutes(f));case"Hours":return void(p?c.setUTCHours(f):c.setHours(f));case"Date":return void(p?c.setUTCDate(f):c.setDate(f));case"FullYear":break;default:return}w=f,S=n.month(),T=29!==(T=n.date())||1!==S||wr(w)?T:28,p?c.setUTCFullYear(w,S,T):c.setFullYear(w,S,T)}}function ua(n,s){if(isNaN(n)||isNaN(s))return NaN;var f=function At(n,s){return(n%s+s)%s}(s,12);return n+=(s-f)/12,1===f?wr(n)?29:28:31-f%7%2}fe=Array.prototype.indexOf?Array.prototype.indexOf:function(n){var s;for(s=0;s<this.length;++s)if(this[s]===n)return s;return-1},A("M",["MM",2],"Mo",function(){return this.month()+1}),A("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)}),A("MMMM",0,0,function(n){return this.localeData().months(this,n)}),O("M",re,It),O("MM",re,Ce),O("MMM",function(n,s){return s.monthsShortRegex(n)}),O("MMMM",function(n,s){return s.monthsRegex(n)}),ae(["M","MM"],function(n,s){s[Ee]=B(n)-1}),ae(["MMM","MMMM"],function(n,s,f,c){var p=f._locale.monthsParse(n,c,f._strict);null!=p?s[Ee]=p:W(f).invalidMonth=n});var Ba="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Mr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ze=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,et=Qt,ja=Qt,Va=["monthsParse","longMonthsParse","shortMonthsParse","monthsRegex","monthsShortRegex","monthsStrictRegex","monthsShortStrictRegex"];function $a(n,s,f){var c,p,w,S=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],c=0;c<12;++c)w=Ve([2e3,c]),this._shortMonthsParse[c]=this.monthsShort(w,"").toLocaleLowerCase(),this._longMonthsParse[c]=this.months(w,"").toLocaleLowerCase();return f?"MMM"===s?-1!==(p=fe.call(this._shortMonthsParse,S))?p:null:-1!==(p=fe.call(this._longMonthsParse,S))?p:null:"MMM"===s?-1!==(p=fe.call(this._shortMonthsParse,S))||-1!==(p=fe.call(this._longMonthsParse,S))?p:null:-1!==(p=fe.call(this._longMonthsParse,S))||-1!==(p=fe.call(this._shortMonthsParse,S))?p:null}function Ga(n,s){if(!n.isValid())return n;if("string"==typeof s)if(/^\d+$/.test(s))s=B(s);else if(!se(s=n.localeData().monthsParse(s)))return n;var f=s,c=n.date();return c=c<29?c:Math.min(c,ua(n.year(),f)),n._isUTC?n._d.setUTCMonth(f,c):n._d.setMonth(f,c),n}function da(n){return null!=n?(Ga(this,n),C.updateOffset(this,!0),this):Fe(this,"Month")}function fa(){function n(z,G){return G.length-z.length}var p,w,S,T,s=[],f=[],c=[];for(p=0;p<12;p++)w=Ve([2e3,p]),S=Qe(this.monthsShort(w,"")),T=Qe(this.months(w,"")),s.push(S),f.push(T),c.push(T),c.push(S);s.sort(n),f.sort(n),c.sort(n),this._monthsRegex=new RegExp("^("+c.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+f.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Dr(n,s){return n.slice(s,7).concat(n.slice(0,s))}A("d",0,"do","day"),A("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)}),A("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)}),A("dddd",0,0,function(n){return this.localeData().weekdays(this,n)}),A("e",0,0,"weekday"),A("E",0,0,"isoWeekday"),A("eHHmm",0,0,function(){return""+this.weekday()+De(this.hours(),2)+De(this.minutes(),2)}),O("d",re),O("e",re),O("E",re),O("eHHmm",yr),O("dd",function(n,s){return s.weekdaysMinRegex(n)}),O("ddd",function(n,s){return s.weekdaysShortRegex(n)}),O("dddd",function(n,s){return s.weekdaysRegex(n)}),bt(["dd","ddd","dddd"],function(n,s,f,c){var p=f._locale.weekdaysParse(n,c,f._strict);null!=p?s.d=p:W(f).invalidWeekday=n}),bt(["d","e","E"],function(n,s,f,c){s[c]=B(n)}),bt("eHHmm",function(n,s,f){var c=n.length-4;s.e=B(n.substr(0,c)),f._a[ve]=B(n.substr(c,2)),f._a[Ue]=B(n.substr(c+2))});var Cr,ri="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ja="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ai="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),tr=Qt,ni=Qt,Re=Qt,Xa=["weekdaysParse","fullWeekdaysParse","shortWeekdaysParse","minWeekdaysParse","weekdaysRegex","weekdaysShortRegex","weekdaysMinRegex","weekdaysStrictRegex","weekdaysShortStrictRegex","weekdaysMinStrictRegex"];function Nt(n,s,f){var c,p,w,S=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],c=0;c<7;++c)w=Ve([2e3,1]).day(c),this._minWeekdaysParse[c]=this.weekdaysMin(w,"").toLocaleLowerCase(),this._shortWeekdaysParse[c]=this.weekdaysShort(w,"").toLocaleLowerCase(),this._weekdaysParse[c]=this.weekdays(w,"").toLocaleLowerCase();return f?"dddd"===s?-1!==(p=fe.call(this._weekdaysParse,S))?p:null:"ddd"===s?-1!==(p=fe.call(this._shortWeekdaysParse,S))?p:null:-1!==(p=fe.call(this._minWeekdaysParse,S))?p:null:"dddd"===s?-1!==(p=fe.call(this._weekdaysParse,S))||-1!==(p=fe.call(this._shortWeekdaysParse,S))||-1!==(p=fe.call(this._minWeekdaysParse,S))?p:null:"ddd"===s?-1!==(p=fe.call(this._shortWeekdaysParse,S))||-1!==(p=fe.call(this._weekdaysParse,S))||-1!==(p=fe.call(this._minWeekdaysParse,S))?p:null:-1!==(p=fe.call(this._minWeekdaysParse,S))||-1!==(p=fe.call(this._weekdaysParse,S))||-1!==(p=fe.call(this._shortWeekdaysParse,S))?p:null}function Yt(){function n(xe,Pt){return Pt.length-xe.length}var w,S,T,z,G,s=[],f=[],c=[],p=[];for(w=0;w<7;w++)S=Ve([2e3,1]).day(w),T=Qe(this.weekdaysMin(S,"")),z=Qe(this.weekdaysShort(S,"")),G=Qe(this.weekdays(S,"")),s.push(T),f.push(z),c.push(G),p.push(T),p.push(z),p.push(G);s.sort(n),f.sort(n),c.sort(n),p.sort(n),this._weekdaysRegex=new RegExp("^("+p.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+f.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Ze(n,s){var c,f=je({},n);for(c in s)I(s,c)&&(E(n[c])&&E(s[c])?(f[c]={},je(f[c],n[c]),je(f[c],s[c])):null!=s[c]?f[c]=s[c]:delete f[c]);for(c in n)I(n,c)&&!I(s,c)&&E(n[c])&&(f[c]=je({},f[c]));return f}function nt(n){null!=n&&this.set(n)}Cr=Object.keys?Object.keys:function(n){var s,f=[];for(s in n)I(n,s)&&f.push(s);return f};function tn(n,s,f,c){var p=this._relativeTime[f];return le(p)?p(n,s,f,c):p.replace(/%d/i,n)}function rn(n,s){var f=this._relativeTime[n>0?"future":"past"];return le(f)?f(s):f.replace(/%s/i,s)}function an(n,s,f,c,p,w,S){var T;return n<100&&n>=0?(T=new Date(n+400,s,f,c,p,w,S),isFinite(T.getFullYear())&&T.setFullYear(n)):T=new Date(n,s,f,c,p,w,S),T}function He(n){var s,f;return n<100&&n>=0?((f=Array.prototype.slice.call(arguments))[0]=n+400,s=new Date(Date.UTC.apply(null,f)),isFinite(s.getUTCFullYear())&&s.setUTCFullYear(n)):s=new Date(Date.UTC.apply(null,arguments)),s}function vt(n,s,f){var c=7+s-f;return-(7+He(n,0,c).getUTCDay()-s)%7+c-1}function Pr(n,s,f,c,p){var z,G,T=1+7*(s-1)+(7+f-c)%7+vt(n,c,p);return T<=0?G=er(z=n-1)+T:T>er(n)?(z=n+1,G=T-er(n)):(z=n,G=T),{year:z,dayOfYear:G}}function Tr(n,s,f,c){var S,T,p=vt(n,f,c),w=Math.floor((s-p-1)/7)+1;return w<1?S=w+Le(T=n-1,f,c):w>Le(n,f,c)?(S=w-Le(n,f,c),T=n+1):(T=n,S=w),{week:S,year:T}}function ar(n,s,f){return Tr(n.year(),n.dayOfYear(),s,f)}function Or(n,s,f,c,p){return Tr(n,Math.round((He(n,s,f)-He(n,0,1))/864e5)+1,c,p)}function Le(n,s,f){var c=vt(n,s,f),p=vt(n+1,s,f);return(er(n)-c+p)/7}A("w",["ww",2],"wo","week"),A("W",["WW",2],"Wo","isoWeek"),O("w",re,It),O("ww",re,Ce),O("W",re,It),O("WW",re,Ce),bt(["w","ww","W","WW"],function(n,s,f,c){s[c.substr(0,1)]=B(n)});function Rr(){return this.hours()%12||12}function nn(n,s){A(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),s)})}function on(n,s){return s._meridiemParse}A("H",["HH",2],0,"hour"),A("h",["hh",2],0,Rr),A("k",["kk",2],0,function ki(){return this.hours()||24}),A("hmm",0,0,function(){return""+Rr.apply(this)+De(this.minutes(),2)}
vendor: 9,891 bytes, line 1
1),A("hmmss",0,0,function(){return""+Rr.apply(this)+De(this.minutes(),2)+De(this.seconds(),2)}),A("Hmm",0,0,function(){return""+this.hours()+De(this.minutes(),2)}),A("Hmmss",0,0,function(){return""+this.hours()+De(this.minutes(),2)+De(this.seconds(),2)}),nn("a",!0),nn("A",!1),O("a",on),O("A",on),O("H",re,Te),O("h",re,It),O("k",re,It),O("HH",re,Ce),O("hh",re,Ce),O("kk",re,Ce),O("hmm",ia),O("hmmss",yr),O("Hmm",ia),O("Hmmss",yr),ae(["H","HH"],ve),ae(["k","kk"],function(n,s,f){var c=B(n);s[ve]=24===c?0:c}),ae(["a","A"],function(n,s,f){f._isPm=f._locale.isPM(n),f._meridiem=n}),ae(["h","hh"],function(n,s,f){s[ve]=B(n),W(f).bigHour=!0}),ae("hmm",function(n,s,f){var c=n.length-2;s[ve]=B(n.substr(0,c)),s[Ue]=B(n.substr(c)),W(f).bigHour=!0}),ae("hmmss",function(n,s,f){var c=n.length-4,p=n.length-2;s[ve]=B(n.substr(0,c)),s[Ue]=B(n.substr(c,2)),s[m]=B(n.substr(p)),W(f).bigHour=!0}),ae("Hmm",function(n,s,f){var c=n.length-2;s[ve]=B(n.substr(0,c)),s[Ue]=B(n.substr(c))}),ae("Hmmss",function(n,s,f){var c=n.length-4,p=n.length-2;s[ve]=B(n.substr(0,c)),s[Ue]=B(n.substr(c,2)),s[m]=B(n.substr(p))});var $e=ct("Hours",!0);var pe,ln={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ba,monthsShort:Mr,week:{dow:0,doy:6},weekdays:ri,weekdaysMin:ai,weekdaysShort:Ja,meridiemParse:/[ap]\.?m?\.?/i},ne={},ir={};function ga(n,s){var f,c=Math.min(n.length,s.length);for(f=0;f<c;f+=1)if(n[f]!==s[f])return f;return c}function or(n){return n&&n.toLowerCase().replace("_","-")}function sr(n){var c,s=null;if(I(ne,n))return ne[n];if(c=or(n),I(ne,c))return ne[c];if(Ge&&Ge.exports&&function Si(n){return"string"==typeof n&&/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(n)}(c))try{s=pe._abbr,te(4358)("./"+c),gt(s)}catch{ne[c]=null}return I(ne,c)?ne[c]:void 0}function gt(n,s){var f;return n&&((f=de(s)?ot(n):Ir(n,s))?pe=f:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),pe._abbr}function Ir(n,s){if(null!==s){var f,c=ln;if(s.abbr=n,null!=ne[n])N("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),c=ne[n]._config;else if(null!=s.parentLocale)if(null!=ne[s.parentLocale])c=ne[s.parentLocale]._config;else{if(null==(f=sr(s.parentLocale)))return ir[s.parentLocale]||(ir[s.parentLocale]=[]),ir[s.parentLocale].push({name:n,config:s}),null;c=f._config}return ne[n]=new nt(Ze(c,s)),ir[n]&&ir[n].forEach(function(p){Ir(p.name,p.config)}),gt(n),ne[n]}return delete ne[n],null}function ot(n){var s;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return pe;if(!q(n)){if(s=sr(n))return s;n=[n]}return function un(n){for(var f,c,p,w,s=0;s<n.length;){for(f=(w=or(n[s]).split("-")).length,c=(c=or(n[s+1]))?c.split("-"):null;f>0;){if(p=sr(w.slice(0,f).join("-")))return p;if(c&&c.length>=f&&ga(w,c)>=f-1)break;f--}s++}return pe}(n)}function wt(n){var s,f=n._a;return f&&-2===W(n).overflow&&(s=f[Ee]<0||f[Ee]>11?Ee:f[Oe]<1||f[Oe]>ua(f[he],f[Ee])?Oe:f[ve]<0||f[ve]>24||24===f[ve]&&(0!==f[Ue]||0!==f[m]||0!==f[yt])?ve:f[Ue]<0||f[Ue]>59?Ue:f[m]<0||f[m]>59?m:f[yt]<0||f[yt]>999?yt:-1,W(n)._overflowDayOfYear&&(s<he||s>Oe)&&(s=Oe),W(n)._overflowWeeks&&-1===s&&(s=qn),W(n)._overflowWeekday&&-1===s&&(s=Zn),W(n).overflow=s),n}var ma=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pa=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ci=/Z|[+-]\d\d(?::?\d\d)?/,Ar=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],kt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Pi=/^\/?Date\((-?\d+)/i,Ti=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Oi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function fn(n){var s,f,w,S,T,z,c=n._i,p=ma.exec(c)||pa.exec(c),G=Ar.length,xe=kt.length;if(p){for(W(n).iso=!0,s=0,f=G;s<f;s++)if(Ar[s][1].exec(p[1])){S=Ar[s][0],w=!1!==Ar[s][2];break}if(null==S)return void(n._isValid=!1);if(p[3]){for(s=0,f=xe;s<f;s++)if(kt[s][1].exec(p[3])){T=(p[2]||" ")+kt[s][0];break}if(null==T)return void(n._isValid=!1)}if(!w&&null!=T)return void(n._isValid=!1);if(p[4]){if(!Ci.exec(p[4]))return void(n._isValid=!1);z="Z"}n._f=S+(T||"")+(z||""),Yr(n)}else n._isValid=!1}function Ri(n){var s=parseInt(n,10);return s<=49?2e3+s:s<=999?1900+s:s}function ie(n){var f,s=Ti.exec(function hn(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(n._i));if(s){if(f=function Fi(n,s,f,c,p,w){var S=[Ri(n),Mr.indexOf(s),parseInt(f,10),parseInt(c,10),parseInt(p,10)];return w&&S.push(parseInt(w,10)),S}(s[4],s[3],s[2],s[5],s[6],s[7]),!function Li(n,s,f){return!n||Ja.indexOf(n)===new Date(s[0],s[1],s[2]).getDay()||(W(f).weekdayMismatch=!0,f._isValid=!1,!1)}(s[1],f,n))return;n._a=f,n._tzm=function Wt(n,s,f){if(n)return Oi[n];if(s)return 0;var c=parseInt(f,10),p=c%100;return(c-p)/100*60+p}(s[8],s[9],s[10]),n._d=He.apply(null,n._a),n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),W(n).rfc2822=!0}else n._isValid=!1}function Be(n,s,f){return n??s??f}function Nr(n,s,f){var c=Object.prototype.hasOwnProperty.call(n,"_isDefaultDatePartsForWeek"),p=n._isDefaultDatePartsForWeek;n._isDefaultDatePartsForWeek=!!f;try{return C._getDefaultDateParts(n,s,f)}finally{c?n._isDefaultDatePartsForWeek=p:delete n._isDefaultDatePartsForWeek}}function Je(n){var s,f,p,w,S,T,z,c=[];if(!n._d){for((null==n._a[he]||null==n._a[Ee]||null==n._a[Oe])&&(w=Nr(n,p=function cn(n){var s=n._defaultDatePartsNow;return s?(s.hasValue||(s.value=C.now(),s.hasValue=!0),s.value):C.now()}(n))),n._w&&null==n._a[Oe]&&null==n._a[Ee]&&function Ii(n,s){var f,c,p,w,S,T,z,G,xe;null!=(f=n._w).GG||null!=f.W||null!=f.E?(S=1,T=4,c=Be(f.GG,n._a[he],Or(s[he],s[Ee],s[Oe],1,4).year),p=Be(f.W,1),((w=Be(f.E,1))<1||w>7)&&(G=!0)):(xe=Or(s[he],s[Ee],s[Oe],S=n._locale._week.dow,T=n._locale._week.doy),c=Be(f.gg,n._a[he],xe.year),p=Be(f.w,xe.week),null!=f.d?((w=f.d)<0||w>6)&&(G=!0):null!=f.e?(w=f.e+S,(f.e<0||f.e>6)&&(G=!0)):w=S),p<1||p>Le(c,S,T)?W(n)._overflowWeeks=!0:null!=G?W(n)._overflowWeekday=!0:(z=Pr(c,p,w,S,T),n._a[he]=z.year,n._dayOfYear=z.dayOfYear)}(n,Nr(n,p,!0)),null!=n._dayOfYear&&((n._dayOfYear>er(T=null!=n._a[he]?n._a[he]:w[he])||0===n._dayOfYear)&&(W(n)._overflowDayOfYear=!0),f=He(T,0,n._dayOfYear),n._a[Ee]=f.getUTCMonth(),n._a[Oe]=f.getUTCDate()),z=null==n._a[he]||null==n._a[Ee]||null==n._a[Oe],s=0;s<3&&null==n._a[s];++s)n._a[s]=c[s]=w[s];for(;s<7;s++)n._a[s]=c[s]=null==n._a[s]?2===s?1:0:n._a[s];24===n._a[ve]&&0===n._a[Ue]&&0===n._a[m]&&0===n._a[yt]&&(n._nextDay=!0,n._a[ve]=0),n._d=(n._useUTC?He:an).apply(null,c),S=n._useUTC?n._d.getUTCDay():n._d.getDay(),null!=n._tzm&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[ve]=24),n._w&&typeof n._w.d<"u"&&!z&&n._w.d!==S&&(W(n).weekdayMismatch=!0)}}function Yr(n){if(n._f!==C.ISO_8601)if(n._f!==C.RFC_2822){n._a=[],W(n).empty=!0;var f,c,p,w,S,G,xe,s=""+n._i,T=s.length,z=0;for(xe=(p=aa(n._f,n._locale).match(mr)||[]).length,f=0;f<xe;f++)(c=(s.match(xr(w=p[f],n))||[])[0])&&((S=s.substr(0,s.indexOf(c))).length>0&&W(n).unusedInput.push(S),s=s.slice(s.indexOf(c)+c.length),z+=c.length),Rt[w]?(c?W(n).empty=!1:W(n).unusedTokens.push(w),Gn(w,c,n)):n._strict&&!c&&W(n).unusedTokens.push(w);W(n).charsLeftOver=T-z,s.length>0&&W(n).unusedInput.push(s),n._a[ve]<=12&&!0===W(n).bigHour&&n._a[ve]>0&&(W(n).bigHour=void 0),W(n).parsedDateParts=n._a.slice(0),W(n).meridiem=n._meridiem,n._a[ve]=function Ai(n,s,f){var c;return null==f?s:null!=n.meridiemHour?n.meridiemHour(s,f):(null!=n.isPM&&((c=n.isPM(f))&&s<12&&(s+=12),!c&&12===s&&(s=0)),s)}(n._locale,n._a[ve],n._meridiem),null!==(G=W(n).era)&&(n._a[he]=n._locale.erasConvertYear(G,n._a[he])),Je(n),wt(n)}else ie(n);else fn(n)}function ba(n){var s=n._i,f=n._f;return n._locale=n._locale||ot(n._l),null===s||void 0===f&&""===s?Ft({nullInput:!0}):("string"==typeof s&&(n._i=s=n._locale.preparse(s)),ee(s)?new pt(wt(s)):(we(s)?n._d=s:q(f)?function Ni(n){var s,f,c,p,w,S,T=!1,z={},G=n._f.length;if(0===G)return W(n).invalidFormat=!0,void(n._d=new Date(NaN));for(p=0;p<G;p++)w=0,S=!1,s=qt({},n),null!=n._useUTC&&(s._useUTC=n._useUTC),s._defaultDatePartsNow=z,s._f=n._f[p],Yr(s),vr(s)&&(S=!0),w+=W(s).charsLeftOver,w+=10*W(s).unusedTokens.length,W(s).score=w,T?w<c&&(c=w,f=s):(null==c||w<c||S)&&(c=w,f=s,S&&(T=!0));je(n,f||s)}(n):f?Yr(n):function Wi(n){var s=n._i;de(s)?n._d=new Date(C.now()):we(s)?n._d=new Date(s.valueOf()):"string"==typeof s?function lr(n){var s=Pi.exec(n._i);
1null===s?(fn(n),!1===n._isValid&&(delete n._isValid,ie(n),!1===n._isValid&&(delete n._isValid,n._strict?n._isValid=!1:C.createFromInputFallback(n)))):n._d=new Date(+s[1])}(n):q(s)?(n._a=Ot(s.slice(0),function(f){return parseInt(f,10)}),Je(n)):E(s)?function Yi(n){if(!n._d){var s=Jt(n._i);n._a=Ot([s.year,s.month,void 0===s.day?s.date:s.day,s.hour,s.minute,s.second,s.millisecond],function(c){return c&&parseInt(c,10)}),Je(n)}}(n):se(s)?n._d=new Date(s):C.createFromInputFallback(n)}(n),vr(n)||(n._d=null),n))}function vn(n,s,f,c,p){var w={};return(!0===s||!1===s)&&(c=s,s=void 0),(!0===f||!1===f)&&(c=f,f=void 0),(E(n)&&me(n)||q(n)&&0===n.length)&&(n=void 0),w._isAMomentObject=!0,w._useUTC=w._isUTC=p,w._l=f,w._i=n,w._f=s,w._strict=c,function Wr(n){var s=new pt(wt(ba(n)));return s._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}(w)}function ue(n,s,f,c){return vn(n,s,f,c,!1)}C.createFromInputFallback=Y("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))}),C._getDefaultDateParts=function tt(n,s,f){var c=f||n._isDefaultDatePartsForWeek,p=c?ue(s):new Date(s);return c?[p.year(),p.month(),p.date()]:n._useUTC?[p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()]:[p.getFullYear(),p.getMonth(),p.getDate()]},C.ISO_8601=function(){},C.RFC_2822=function(){};var ya=Y("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=ue.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:Ft()}),gn=Y("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=ue.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:Ft()});function Er(n,s){var f,c;if(1===s.length&&q(s[0])&&(s=s[0]),!s.length)return ue();for(c=0;c<s.length;++c)if(ee(s[c])){f=s[c];break}if(!f)return Ft();for(++c;c<s.length;++c)ee(s[c])&&(!s[c].isValid()||s[c][n](f))&&(f=s[c]);return f}var Et=["year","quarter","month","week","day","hour","minute","second","millisecond"];function zr(n){var s=Jt(n),f=s.year||0,c=s.quarter||0,p=s.month||0,w=s.week||s.isoWeek||0,S=s.day||0,T=s.hour||0,z=s.minute||0,G=s.second||0,xe=s.millisecond||0;this._isValid=function pn(n){var s,c,f=!1,p=Et.length;for(s in n)if(I(n,s)&&(-1===fe.call(Et,s)||null!=n[s]&&isNaN(n[s])))return!1;for(c=0;c<p;++c)if(n[Et[c]]){if(f)return!1;parseFloat(n[Et[c]])!==B(n[Et[c]])&&(f=!0)}return!0}(s),this._milliseconds=+xe+1e3*G+6e4*z+1e3*T*60*60,this._days=+S+7*w,this._months=+p+3*c+12*f,this._data={},this._locale=ot(),this._bubble()}function rt(n){return n instanceof zr}function zt(n){return n<0?-1*Math.round(-1*n):Math.round(n)}function Hr(n,s){A(n,0,0,function(){var f=this.utcOffset(),c="+";return f<0&&(f=-f,c="-"),c+De(~~(f/60),2)+s+De(~~f%60,2)})}Hr("Z",":"),Hr("ZZ",""),O("Z",_r),O("ZZ",_r),ae(["Z","ZZ"],function(n,s,f){var c=st(_r,n);f._useUTC=!0,f._tzm=c,null===c&&(W(f).invalidOffset=n)});var ur=/([\+\-]|\d\d)/gi;function st(n,s){var p,w,f=(s||"").match(n);return null===f||(w=60*(p=((f[f.length-1]||[])+"").match(ur)||["-",0,0])[1]+B(p[2]),B(p[2])>59||("+"===p[0]?w>840:w>720))?null:0===w?0:"+"===p[0]?w:-w}function Mt(n,s){var f,c;return s._isUTC?(f=s.clone(),c=(ee(n)||we(n)?n.valueOf():ue(n).valueOf())-f.valueOf(),f._d.setTime(f._d.valueOf()+c),C.updateOffset(f,!1),f):ue(n).local()}function lt(n){return-Math.round(n._d.getTimezoneOffset())}function yn(){return!!this.isValid()&&this._isUTC&&0===this._offset}C.updateOffset=function(){};var $i=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Gi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Xe(n,s){var p,w,S,f=n,c=null;return rt(n)?f={ms:n._milliseconds,d:n._days,M:n._months}:se(n)||!isNaN(+n)?(f={},s?f[s]=+n:f.milliseconds=+n):(c=$i.exec(n))?(p="-"===c[1]?-1:1,f={y:0,d:B(c[Oe])*p,h:B(c[ve])*p,m:B(c[Ue])*p,s:B(c[m])*p,ms:B(zt(1e3*c[yt]))*p}):(c=Gi.exec(n))?f={y:at(c[2],p="-"===c[1]?-1:1),M:at(c[3],p),w:at(c[4],p),d:at
vendor: 11,885 bytes, line 1
1(c[5],p),h:at(c[6],p),m:at(c[7],p),s:at(c[8],p)}:null==f?f={}:"object"==typeof f&&("from"in f||"to"in f)&&(S=function Ie(n,s){var f;return n.isValid()&&s.isValid()?(s=Mt(s,n),n.isBefore(s)?f=Br(n,s):((f=Br(s,n)).milliseconds=-f.milliseconds,f.months=-f.months),f):{milliseconds:0,months:0}}(ue(f.from),ue(f.to)),(f={}).ms=S.milliseconds,f.M=S.months),w=new zr(f),rt(n)&&I(n,"_locale")&&(w._locale=n._locale),rt(n)&&I(n,"_isValid")&&(w._isValid=n._isValid),w}function at(n,s){var f=n&&parseFloat(n.replace(",","."));return(isNaN(f)?0:f)*s}function Br(n,s){var f={};return f.months=s.month()-n.month()+12*(s.year()-n.year()),n.clone().add(f.months,"M").isAfter(s)&&--f.months,f.milliseconds=+s-+n.clone().add(f.months,"M"),f}function jr(n,s){return function(f,c){var w;return null!==c&&!isNaN(+c)&&(N(s,"moment()."+s+"(period, number) is deprecated. Please use moment()."+s+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),w=f,f=c,c=w),_n(this,Xe(f,c),n),this}}function _n(n,s,f,c){var p=s._milliseconds,w=zt(s._days),S=zt(s._months);n.isValid()&&(c=c??!0,S&&Ga(n,Fe(n,"Month")+S*f),w&&kr(n,"Date",Fe(n,"Date")+w*f),p&&n._d.setTime(n._d.valueOf()+p*f),c&&C.updateOffset(n,w||S))}Xe.fn=zr.prototype,Xe.invalid=function V(){return Xe(NaN)};var xn=jr(1,"add"),qi=jr(-1,"subtract");function wn(n){return"string"==typeof n||n instanceof String}function St(n){return ee(n)||we(n)||wn(n)||se(n)||function Vr(n){var s=q(n),f=!1;return s&&(f=0===n.filter(function(c){return!se(c)&&wn(n)}).length),s&&f}(n)||function Zi(n){var p,s=E(n)&&!me(n),f=!1,c=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],S=c.length;for(p=0;p<S;p+=1)f=f||I(n,c[p]);return s&&f}(n)||null==n}function Ur(n,s){if(n.date()<s.date())return-Ur(s,n);var f=12*(s.year()-n.year())+(s.month()-n.month()),c=n.clone().add(f,"months");return-(f+(s-c<0?(s-c)/(c-n.clone().add(f-1,"months")):(s-c)/(n.clone().add(f+1,"months")-c)))||0}function Dn(n){var s;return void 0===n?this._locale._abbr:(null!=(s=ot(n))&&(this._locale=s),this)}C.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",C.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Da=Y("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return void 0===n?this.localeData():this.locale(n)});function Cn(){return this._locale}var Bt=6e4,Zr=60*Bt,Pn=3506328*Zr;function jt(n,s){return(n%s+s)%s}function fr(n,s,f){return n<100&&n>=0?new Date(n+400,s,f)-Pn:new Date(n,s,f).valueOf()}function Ca(n,s,f){return n<100&&n>=0?Date.UTC(n+400,s,f)-Pn:Date.UTC(n,s,f)}function Fa(n,s){return s.erasAbbrRegex(n)}function Ra(){var p,w,S,T,z,n=[],s=[],f=[],c=[],G=this.eras();for(p=0,w=G.length;p<w;++p)S=Qe(G[p].name),T=Qe(G[p].abbr),z=Qe(G[p].narrow),s.push(S),n.push(T),f.push(z),c.push(S),c.push(T),c.push(z);this._erasRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+f.join("|")+")","i")}function Xr(n,s){A(0,[n,n.length],0,s)}function Yn(n,s,f,c,p){var w;return null==n?ar(this,c,p).year:(s>(w=Le(n,c,p))&&(s=w),ko.call(this,n,s,f,c,p))}function ko(n,s,f,c,p){var w=Pr(n,s,f,c,p),S=He(w.year,0,w.dayOfYear);return this.year(S.getUTCFullYear()),this.month(S.getUTCMonth()),this.date(S.getUTCDate()),this}A("N",0,0,"eraAbbr"),A("NN",0,0,"eraAbbr"),A("NNN",0,0,"eraAbbr"),A("NNNN",0,0,"eraName"),A("NNNNN",0,0,"eraNarrow"),A("y",["y",1],"yo","eraYear"),A("y",["yy",2],0,"eraYear"),A("y",["yyy",3],0,"eraYear"),A("y",["yyyy",4],0,"eraYear"),O("N",Fa),O("NN",Fa),O("NNN",Fa),O("NNNN",function An(n,s){return s.erasNameRegex(n)}),O("NNNNN",function mo(n,s){return s.erasNarrowRegex(n)}),ae(["N","NN","NNN","NNNN","NNNNN"],function(n,s,f,c){var p=f._locale.erasParse(n,c,f._strict);p?W(f).era=p:W(f).invalidEra=n}),O("y",$),O("yy",$),O("yyy",$),O("yyyy",$),O("yo",function Nn(n,s){return s._eraYearOrdinalRegex||$}),ae(["y","yy","yyy","yyyy"],he),ae(["yo"],function(n,s,f,c){var p;f._locale._eraYearOrdinalRegex&&(p=n.match(f._locale._eraYearOrdinalRegex)),s[he]=f._locale.eraYearOrdinalParse?f._locale.eraYearOrdinalParse(n,p):parseInt(n,10)}),A(0,["gg",2],0,function(){return this.weekYear()%100}),A(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Xr("gggg","weekYear"),Xr("ggggg","weekYear"),Xr("GGGG","isoWeekYear"),Xr("GGGGG","isoWeekYear"),O("G",Me),O("g",Me),O("GG",re,Ce),O("gg",re,Ce),O("GGGG",Lt,na),O("gggg",Lt,na),O("GGGGG",Xt,We),O("ggggg",Xt,We),bt(["gggg","ggggg","GGGG","GGGGG"],function(n,s,f,c){s[c.substr(0,2)]=B(n)}),bt(["gg","GG"],function(n,s,f,c){s[c]=C.parseTwoDigitYear(n)}),A("Q",0,"Qo","quarter"),O("Q",Ea),ae("Q",function(n,s){s[Ee]=3*(B(n)-1)}),A("D",["DD",2],"Do","date"),O("D",re,It),O("DD",re,Ce),O("Do",function(n,s){return n?s._dayOfMonthOrdinalParse||s._ordinalParse:s._dayOfMonthOrdinalParseLenient}),ae(["D","DD"],Oe),ae("Do",function(n,s){s[Oe]=B(n.match(re)[0])});var La=ct("Date",!0);A("DDD",["DDDD",3],"DDDo","dayOfYear"),O("DDD",ke),O("DDDD",za),ae(["DDD","DDDD"],function(n,s,f){f._dayOfYear=B(n)}),A("m",["mm",2],0,"minute"),O("m",re,Te),O("mm",re,Ce),ae(["m","mm"],Ue);var So=ct("Minutes",!1);A("s",["ss",2],0,"second"),O("s",re,Te),O("ss",re,Ce),ae(["s","ss"],m);var Se,ut,Do=ct("Seconds",!1);for(A("S",0,0,function(){return~~(this.millisecond()/100)}),A(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),A(0,["SSS",3],0,"millisecond"),A(0,["SSSS",4],0,function(){return 10*this.millisecond()}),A(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),A(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),A(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),A(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),A(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),O("S",ke,Ea),O("SS",ke,Ce),O("SSS",ke,za),Se="SSSS";Se.length<=9;Se+="S")O(Se,$);function Ia(n,s){s[yt]=B(1e3*("0."+n))}for(Se="S";Se.length<=9;Se+="S")ae(Se,Ia);ut=ct("Milliseconds",!1),A("z",0,0,"zoneAbbr"),A("zz",0,0,"zoneName");var P=pt.prototype;function Aa(n){return n}P.add=xn,P.calendar=function Ki(n,s){1===arguments.length&&(arguments[0]?St(arguments[0])?(n=arguments[0],s=void 0):function Ji(n){var p,s=E(n)&&!me(n),f=!1,c=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(p=0;p<c.length;p+=1)f=f||I(n,c[p]);return s&&f}(arguments[0])&&(s=arguments[0],n=void 0):(n=void 0,s=void 0));var f=n||ue(),c=Mt(f,this).startOf("day"),p=C.calendarFormat(this,c)||"sameElse",w=s&&(le(s[p])?s[p].call(this,f):s[p]);return this.format(w||this.localeData().calendar(p,this,ue(f)))},P.clone=function Qi(){return new pt(this)},P.diff=function ao(n,s,f){var c,p,w;if(!this.isValid())return NaN;if(!(c=Mt(n,this)).isValid())return NaN;switch(p=6e4*(c.utcOffset()-this.utcOffset()),s=ce(s)){case"year":w=Ur(this,c)/12;break;case"month":w=Ur(this,c);break;case"quarter":w=Ur(this,c)/3;break;case"second":w=(this-c)/1e3;break;case"minute":w=(this-c)/6e4;break;case"hour":w=(this-c)/36e5;break;case"day":w=(this-c-p)/864e5;break;case"week":w=(this-c-p)/6048e5;break;default:w=this-c}return f?w:R(w)},P.endOf=function Pa(n){var s,f;if(void 0===(n=ce(n))||"millisecond"===n||!this.isValid())return this;switch(f=this._isUTC?Ca:fr,n){case"year":s=f(this.year()+1,0,1)-1;break;case"quarter":s=f(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":s=f(this.year(),this.month()+1,1)-1;break;case"week":s=f(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":s=f(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":s=f(this.year(),this.month(),this.date()+1)-1;break;case"hour":s=this._d.valueOf(),s+=Zr-jt(s+(this._isUTC?0:this.utcOffset()*Bt),Zr)-1;break;case"minute":s=this._d.valueOf(),s+=Bt-jt(s,Bt)-1;break;case"second":s=this._d.valueOf(),s+=1e3-jt(s,1e3)-1}return this._d.setTime(s),C.updateOffset(this,!0),this},P.format=function Gr(n){n||(n=this.isUtc()?C.defaultFormatUtc:C.defaultFormat);var s=br(this,n);return this.localeData().postformat(s)},P.from=function Ma(n,s){return this.isValid()&&(ee(n)&&n.isValid()||ue(n).isValid())?Xe({to:this,from:n}).locale(this.locale()).humanize(!s):this.localeData().invalidDate()},P.fromNow=function Sn(n){return this.from(ue(),n)},P.to=function io(n,s){return this.isValid()&&(ee(n)&&n.isValid()||ue(n).isValid())?Xe({from:this,to:n}).locale(this.locale()).humanize(!s):this.localeData().invalidDate()},P.toNow=function Sa(n){return this.to(ue(),n)},P.get=function sa(n){return le(this[n=ce(n)])?this[n]():this},P.invalidAt=function Rn(){return W(this).overflow},P.isAfter=function eo(n,s){var f=ee(n)?n:ue(n);return!(!this.isValid()||!f.isValid())&&("millisecond"===(s=ce(s)||"millisecond")?this.valueOf()>f.valueOf():f.valueOf()<this.clone().startOf(s).valueOf())},P.isBefore=function to(n,s){var f=ee(n)?n:ue(n);return!(!this.isValid()||!f.isValid())&&("millisecond"===(s=ce(s)||"millisecond")?this.valueOf()<f.valueOf():this.clone().endOf(s).valueOf()<f.valueOf())},P.isBetween=function kn(n,s,f,c){var p=ee(n)?n:ue(n),w=ee(s)?s:ue(s);return!!(this.isValid()&&p.isValid()&&w.isValid())&&("("===(c=c||"()")[0]?this.isAfter(p,f):!this.isBefore(p,f))&&(")"===c[1]?this.isBefore(w,f):!this.isAfter(w,f))},P.isSame=function ro(n,s){var c,f=ee(n)?n:ue(n);return!(!this.isValid()||!f.isValid())&&("millisecond"===(s=ce(s)||"millisecond")?this.valueOf()===f.valueOf():(c=f.valueOf(),this.clone().startOf(s).valueOf()<=c&&c<=this.clone().endOf(s).valueOf()))},P.isSameOrAfter=function ka(n,s){return this.isSame(n,s)||this.isAfter(n,s)},P.isSameOrBefore=function Ae(n,s){return this.isSame(n,s)||this.isBefore(n,s)},P.isValid=function Fn(){return vr(this)},P.lang=Da,P.locale=Dn,P.localeData=Cn,P.max=gn,P.min=ya,P.parsingFlags=function lo(){return je({},W(this))},P.set=function la(n,s){if("object"==typeof n){var c,f=function ta(n){var f,s=[];for(f in n)I(n,f)&&s.push({unit:f,priority:qe[f]});return s.sort(function(c,p){return c.priority-p.priority}),s}(n=Jt(n)),p=f.length;for(c=0;c<p;c++)this[f[c].unit](n[f[c].unit])}else if(le(this[n=ce(n)]))return this[n](s);return this},P.startOf=function oo(n){var s,f;if(void 0===(n=ce(n))||"millisecond"===n||!this.isValid())return this;switch(f=this._isUTC?Ca:fr,n){case"year":s=f(this.year(),0,1);break;case"quarter":s=f(this.year(),this.month()-this.month()%3,1);break;case"month":s=f(this.year(),this.month(),1);break;case"week":s=f(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":s=f(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":s=f(this.year(),this.month(),this.date());break;case"hour":s=this._d.valueOf(),s-=jt(s+(this._isUTC?0:this.utcOffset()*Bt),Zr);break;case"minute":s=this._d.valueOf(),s-=jt(s,Bt);break;case"second":s=this._d.valueOf(),s-=jt(s,1e3)}return this._d.setTime(s),C.updateOffset(this,!0),this},P.subtract=qi,P.toArray=function Ta(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]},P.toObject=function Jr(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}},P.toDate=function On(){return new Date(this.valueOf())},P.toISOString=function Mn(n){if(!this.isValid())return null;var s=!0!==n,f=s?this.clone().utc():this;return f.year()<0||f.year()>9999?br(f,s?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):le(Date.prototype.toISOString)?s?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",br(f,"Z")):br(f,s?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},P.inspect=function no(){if(!this.isValid())return"moment.invali
1d(/* "+this._i+" */)";var f,c,n="moment",s="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),f="["+n+'("]',c=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(f+c+"-MM-DD[T]HH:mm:ss.SSS"+s+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(P[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),P.toJSON=function Ne(){return this.isValid()?this.toISOString():null},P.toString=function $r(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},P.unix=function so(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function Tn(){return this._d.valueOf()-6e4*(this._offset||0)},P.creationData=function Ln(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},P.eraName=function Oa(){var n,s,f,c=this.localeData().eras();for(n=0,s=c.length;n<s;++n)if(f=this.clone().startOf("day").valueOf(),c[n].since<=f&&f<=c[n].until||c[n].until<=f&&f<=c[n].since)return c[n].name;return""},P.eraNarrow=function Dt(){var n,s,f,c=this.localeData().eras();for(n=0,s=c.length;n<s;++n)if(f=this.clone().startOf("day").valueOf(),c[n].since<=f&&f<=c[n].until||c[n].until<=f&&f<=c[n].since)return c[n].narrow;return""},P.eraAbbr=function In(){var n,s,f,c=this.localeData().eras();for(n=0,s=c.length;n<s;++n)if(f=this.clone().startOf("day").valueOf(),c[n].since<=f&&f<=c[n].until||c[n].until<=f&&f<=c[n].since)return c[n].abbr;return""},P.eraYear=function ho(){var n,s,f,c,p=this.localeData().eras();for(n=0,s=p.length;n<s;++n)if(f=p[n].since<=p[n].until?1:-1,c=this.clone().startOf("day").valueOf(),p[n].since<=c&&c<=p[n].until||p[n].until<=c&&c<=p[n].since)return(this.year()-C(p[n].since).year())*f+p[n].offset;return this.year()},P.year=Ha,P.isLeapYear=function Jn(){return wr(this.year())},P.weekYear=function po(n){return Yn.call(this,n,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},P.isoWeekYear=function bo(n){return Yn.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)},P.quarter=P.quarters=function Wn(n){return null==n?Math.ceil((this.month()+1)/3):this.month(3*(n-1)+this.month()%3)},P.month=da,P.daysInMonth=function qa(){return ua(this.year(),this.month())},P.week=P.weeks=function xi(n){var s=this.localeData().week(this);return null==n?s:this.add(7*(n-s),"d")},P.isoWeek=P.isoWeeks=function wi(n){var s=ar(this,1,4).week;return null==n?s:this.add(7*(n-s),"d")},P.weeksInYear=function xo(){var n=this.localeData()._week;return Le(this.year(),n.dow,n.doy)},P.weeksInWeekYear=function wo(){var n=this.localeData()._week;return Le(this.weekYear(),n.dow,n.doy)},P.isoWeeksInYear=function yo(){return Le(this.year(),1,4)},P.isoWeeksInISOWeekYear=function _o(){return Le(this.isoWeekYear(),1,4)},P.date=La,P.day=P.days=function ui(n){if(!this.isValid())return null!=n?this:NaN;var s=Fe(this,"Day");return null!=n?(n=function Sr(n,s){return"string"!=typeof n?n:isNaN(n)?"number"==typeof(n=s.weekdaysParse(n))?n:null:parseInt(n,10)}(n,this.localeData()),this.add(n-s,"d")):s},P.weekday=function di(n){if(!this.isValid())return null!=n?this:NaN;var s=(this.day()+7-this.localeData()._week.dow)%7;return null==n?s:this.add(n-s,"d")},P.isoWeekday=function Ka(n){if(!this.isValid())return null!=n?this:NaN;if(null!=n){var s=function Za(n,s){return"string"==typeof n?s.weekdaysParse(n)%7||7:isNaN(n)?null:n}(n,this.localeData());return this.day(this.day()%7?s:s-7)}return this.day()||7},P.dayOfYear=function Mo(n){var s=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==n?s:this.add(n-s,"d")},P.hour=P.hours=$e,P.minute=P.minutes=So,P.second=P.seconds=Do,P.millisecond=P.milliseconds=ut,P.utcOffset=function Ht(n,s,f){var p,c=this._offset||0;if(!this.isValid())return null!=n?this:NaN;if(null!=n){if("string"==typeof n){if(null===(n=st(_r,n)))return this}else Math.abs(n)<16&&!f&&(n*=60);return!this._isUTC&&s&&(p=lt(this)),this._offset=n,this._isUTC=!0,null!=p&&this.add(p,"m"),c!==n&&(!s||this._changeInProgress?_n(this,Xe(n-c,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,C.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?c:lt(this)},P.utc=function ji(n){return this.utcOffset(0,n)},P.local=function Vi(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(lt(this),"m")),this},P.parseZone=function Ui(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var n=st(Kt,this._i);null!=n?this.utcOffset(n):this.utcOffset(0,!0)}return this},P.hasAlignedHourOffset=function dr(n){return!!this.isValid()&&(n=n?ue(n).utcOffset():0,(this.utcOffset()-n)%60==0)},P.isDST=function _a(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},P.isLocal=function xa(){return!!this.isValid()&&!this._isUTC},P.isUtcOffset=function wa(){return!!this.isValid()&&this._isUTC},P.isUtc=yn,P.isUTC=yn,P.zoneAbbr=function En(){return this._isUTC?"UTC":""},P.zoneName=function zn(){return this._isUTC?"Coordinated Universal Time":""},P.dates=Y("dates accessor is deprecated. Use date instead.",La),P.months=Y("months accessor is deprecated. Use month instead",da),P.years=Y("years accessor is deprecated. Use year instead",Ha),P.zone=Y("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function Bi(n,s){return null!=n?("string"!=typeof n&&(n=-n),this.utcOffset(n,s),this):-this.utcOffset()}),P.isDSTShifted=Y("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function bn(){if(!de(this._isDSTShifted))return this._isDSTShifted;var s,n={};return qt(n,this),(n=ba(n))._a?(s=n._isUTC?Ve(n._a):ue(n._a),this._isDSTShifted=this.isValid()&&function Hi(n,s,f){var S,c=Math.min(n.length,s.length),p=Math.abs(n.length-s.length),w=0;for(S=0;S<c;S++)B(n[S])!==B(s[S])&&w++;return w+p}(n._a,s.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var J=nt.prototype;function Ke(n,s,f,c){var p=ot(),w=Ve().set(c,s);return p[f](w,n)}function Bn(n,s,f){if(se(n)&&(s=n,n=void 0),n=n||"",null!=s)return Ke(n,s,f,"month");var c,p=[];for(c=0;c<12;c++)p[c]=Ke(n,c,f,"month");return p}function Na(n,s,f,c){"boolean"==typeof n?(se(s)&&(f=s,s=void 0),s=s||""):(f=s=n,n=!1,se(s)&&(f=s,s=void 0),s=s||"");var S,p=ot(),w=n?p._week.dow:0,T=[];
vendor: 11,475 bytes, line 1
1if(null!=f)return Ke(s,(f+w)%7,c,"day");for(S=0;S<7;S++)T[S]=Ke(s,(S+w)%7,c,"day");return T}J.calendar=function it(n,s,f){var c=this._calendar[n]||this._calendar.sameElse;return le(c)?c.call(s,f):c},J.longDateFormat=function ca(n){var s=this._longDateFormat[n],f=this._longDateFormat[n.toUpperCase()],c=this._longDateFormatCache;return s||!f?s:c&&c[n]&&c[n].formatUpper===f?c[n].format:(s=f.match(mr).map(function(p){return"MMMM"===p||"MM"===p||"DD"===p||"dddd"===p?p.slice(1):p}).join(""),c||(c=this._longDateFormatCache={}),c[n]={formatUpper:f,format:s},s)},J.invalidDate=function gi(){return this._invalidDate},J.ordinal=function pi(n){return this._ordinal.replace("%d",n)},J.preparse=Aa,J.postformat=Aa,J.relativeTime=function xt(n,s,f,c){return this.postformat(tn.call(this,n,s,f,c))},J.pastFuture=function yi(n,s){return this.postformat(rn.call(this,n,s))},J.set=function _t(n){var s,f;for(f in function Xn(n,s){var f,c;for(f=0;f<Va.length;f++)I(s,c=Va[f])||delete n["_"+c]}(this,n),function ii(n,s){var f,c;for(f=0;f<Xa.length;f++)I(s,c=Xa[f])||delete n["_"+c]}(this,n),n)I(n,f)&&(le(s=n[f])?this[f]=s:this["_"+f]=s);this._config=n,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},J.eras=function uo(n,s){var f,c,p,w=this._eras||ot("en")._eras;for(f=0,c=w.length;f<c;++f)switch("string"==typeof w[f].since&&(p=C(w[f].since).startOf("day"),w[f].since=p.valueOf()),typeof w[f].until){case"undefined":w[f].until=1/0;break;case"string":p=C(w[f].until).startOf("day").valueOf(),w[f].until=p.valueOf()}return w},J.erasParse=function fo(n,s,f){var c,p,S,T,z,w=this.eras();for(n=n.toUpperCase(),c=0,p=w.length;c<p;++c)if(S=w[c].name.toUpperCase(),T=w[c].abbr.toUpperCase(),z=w[c].narrow.toUpperCase(),f)switch(s){case"N":case"NN":case"NNN":if(T===n)return w[c];break;case"NNNN":if(S===n)return w[c];break;case"NNNNN":if(z===n)return w[c]}else if([S,T,z].indexOf(n)>=0)return w[c]},J.erasConvertYear=function Vt(n,s){var f=n.since<=n.until?1:-1;return void 0===s?C(n.since).year():C(n.since).year()+(s-n.offset)*f},J.erasAbbrRegex=function vo(n){return I(this,"_erasAbbrRegex")||Ra.call(this),n?this._erasAbbrRegex:this._erasRegex},J.erasNameRegex=function co(n){return I(this,"_erasNameRegex")||Ra.call(this),n?this._erasNameRegex:this._erasRegex},J.erasNarrowRegex=function go(n){return I(this,"_erasNarrowRegex")||Ra.call(this),n?this._erasNarrowRegex:this._erasRegex},J.months=function Kn(n,s){return n?q(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||ze).test(s)?"format":"standalone"][n.month()]:q(this._months)?this._months:this._months.standalone},J.monthsShort=function Ua(n,s){return n?q(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[ze.test(s)?"format":"standalone"][n.month()]:q(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},J.monthsParse=function Qn(n,s,f){var c,p,w;if(this._monthsParseExact)return $a.call(this,n,s,f);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),c=0;c<12;c++){if(p=Ve([2e3,c]),f&&!this._longMonthsParse[c]&&(this._longMonthsParse[c]=new RegExp("^"+this.months(p,"").replace(".","")+"$","i"),this._shortMonthsParse[c]=new RegExp("^"+this.monthsShort(p,"").replace(".","")+"$","i")),!f&&!this._monthsParse[c]&&(w="^"+this.months(p,"")+"|^"+this.monthsShort(p,""),this._monthsParse[c]=new RegExp(w.replace(".",""),"i")),f&&"MMMM"===s&&this._longMonthsParse[c].test(n))return c;if(f&&"MMM"===s&&this._shortMonthsParse[c].test(n))return c;if(!f&&this._monthsParse[c].test(n))return c}},J.monthsRegex=function ti(n){return this._monthsParseExact?(I(this,"_monthsRegex")||fa.call(this),n?this._monthsStrictRegex:this._monthsRegex):(I(this,"_monthsRegex")||(this._monthsRegex=ja),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)},J.monthsShortRegex=function ei(n){return this._monthsParseExact?(I(this,"_monthsRegex")||fa.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(I(this,"_monthsShortRegex")||(this._monthsShortRegex=et),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)},J.week=function va(n){return ar(n,this._week.dow,this._week.doy).week},J.firstDayOfYear=function _i(){return this._week.doy},J.firstDayOfWeek=function Fr(){return this._week.dow},J.weekdays=function oi(n,s){var f=q(this._weekdays)?this._weekdays:this._weekdays[n&&!0!==n&&this._weekdays.isFormat.test(s)?"format":"standalone"];return!0===n?Dr(f,this._week.dow):n?f[n.day()]:f},J.weekdaysMin=function rr(n){return!0===n?Dr(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin},J.weekdaysShort=function si(n){return!0===n?Dr(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort},J.weekdaysParse=function li(n,s,f){var c,p,w;if(this._weekdaysParseExact)return Nt.call(this,n,s,f);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),c=0;c<7;c++){if(p=Ve([2e3,1]).day(c),f&&!this._fullWeekdaysParse[c]&&(this._fullWeekdaysParse[c]=new RegExp("^"+this.weekdays(p,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[c]=new RegExp("^"+this.weekdaysShort(p,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[c]=new RegExp("^"+this.weekdaysMin(p,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[c]||(w="^"+this.weekdays(p,"")+"|^"+this.weekdaysShort(p,"")+"|^"+this.weekdaysMin(p,""),this._weekdaysParse[c]=new RegExp(w.replace(".",""),"i")),f&&"dddd"===s&&this._fullWeekdaysParse[c].test(n))return c;if(f&&"ddd"===s&&this._shortWeekdaysParse[c].test(n))return c;if(f&&"dd"===s&&this._minWeekdaysParse[c].test(n))return c;if(!f&&this._weekdaysParse[c].test(n))return c}},J.weekdaysRegex=function ha(n){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||Yt.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(I(this,"_weekdaysRegex")||(this._weekdaysRegex=tr),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)},J.weekdaysShortRegex=function fi(n){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||Yt.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(I(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ni),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},J.weekdaysMinRegex=function hi(n){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||Yt.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(I(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Re),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},J.isPM=function Lr(n){return"p"===(n+"").toLowerCase().charAt(0)},J.meridiem=function Mi(n,s,f){return n>11?f?"pm":"PM":f?"am":"AM"},gt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var s=n%10;return n+(1===B(n%100/10)?"th":1===s?"st":2===s?"nd":3===s?"rd":"th")}}),C.lang=Y("moment.lang is deprecated. Use moment.locale instead.",gt),C.langData=Y("moment.langData is deprecated. Use moment.localeData instead.",ot);var r=Math.abs;function i(n,s,f,c){var p=Xe(s,f);return n._milliseconds+=c*p._milliseconds,n._days+=c*p._days,n._months+=c*p._months,n._bubble()}function d(n){return n<0?Math.floor(n):Math.ceil(n)}function h(n){return 4800*n/146097}function v(n){return 146097*n/4800}function b(n){return function(){return this.as(n)}}var _=b("ms"),x=b("s"),k=b("m"),M=b("h"),D=b("d"),F=b("w"),L=b("M"),j=b("Q"),H=b("y"),X=_;function K(n){return function(){return this.isValid()?this._data[n]:NaN}}var ye=K("milliseconds"),be=K("seconds"),ge=K("minutes"),_e=K("hours"),Ut=K("days"),$t=K("months"),Ya=K("years");var Ct=Math.round,Kr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Fo(n,s,f,c,p){return tn.call(p,s||1,!!f,n,c)}function Ro(n,s,f,c){var p=Xe(n).abs(),w=Ct(p.as("s")),S=Ct(p.as("m")),T=Ct(p.as("h")),z=Ct(p.as("d")),G=Ct(p.as("M")),xe=Ct(p.as("w")),Pt=Ct(p.as("y")),Gt=w<=f.ss&&["s",w]||w<f.s&&["ss",w]||S<=1&&["m"]||S<f.m&&["mm",S]||T<=1&&["h"]||T<f.h&&["hh",T]||z<=1&&["d"]||z<f.d&&["dd",z];return null!=f.w&&(Gt=Gt||xe<=1&&["w"]||xe<f.w&&["ww",xe]),(Gt=Gt||G<=1&&["M"]||G<f.M&&["MM",G]||Pt<=1&&["y"]||["yy",Pt])[2]=s,Gt[3]=+n>0,Gt[4]=c,Fo.apply(null,Gt)}var Oo=Math.abs;function Qr(n){return(n>0)-(n<0)||+n}function Vn(){if(!this.isValid())return this.localeData().invalidDate();var c,p,w,S,z,G,xe,Pt,n=Oo(this._milliseconds)/1e3,s=Oo(this._days),f=Oo(this._months),T=this.asSeconds();return T?(c=R(n/60),p=R(c/60),n%=60,c%=60,w=R(f/12),f%=12,S=n?n.toFixed(3).replace(/\.?0+$/,""):"",z=T<0?"-":"",G=Qr(this._months)!==Qr(T)?"-":"",xe=Qr(this._days)!==Qr(T)?"-":"",Pt=Qr(this._milliseconds)!==Qr(T)?"-":"",z+"P"+(w?G+w+"Y":"")+(f?G+f+"M":"")+(s?xe+s+"D":"")+(p||c||n?"T":"")+(p?Pt+p+"H":"")+(c?Pt+c+"M":"")+(n?Pt+S+"S":"")):"P0D"}var Q=zr.prototype;return Q.isValid=function mt(){return this._isValid},Q.abs=function a(){var n=this._data;return this._milliseconds=r(this._milliseconds),this._days=r(this._days),this._months=r(this._months),n.milliseconds=r(n.milliseconds),n.seconds=r(n.seconds),n.minutes=r(n.minutes),n.hours=r(n.hours),n.months=r(n.months),n.years=r(n.years),this},Q.add=function o(n,s){return i(this,n,s,1)},Q.subtract=function l(n,s){return i(this,n,s,-1)},Q.as=function g(n){if(!this.isValid())return NaN;var s,f,c=this._milliseconds;if("month"===(n=ce(n))||"quarter"===n||"year"===n)switch(s=this._days+c/864e5,f=this._months+h(s),n){case"month":return f;case"quarter":return f/3;case"year":return f/12}else switch(s=this._days+Math.round(v(this._months)),n){case"week":return s/7+c/6048e5;case"day":return s+c/864e5;case"hour":return 24*s+c/36e5;case"minute":return 1440*s+c/6e4;case"second":return 86400*s+c/1e3;case"millisecond":return Math.floor(864e5*s)+c;default:throw new Error("Unknown unit "+n)}},Q.asMilliseconds=_,Q.asSeconds=x,Q.asMinutes=k,Q.asHours=M,Q.asDays=D,Q.asWeeks=F,Q.asMonths=L,Q.asQuarters=j,Q.asYears=H,Q.valueOf=X,Q._bubble=function u(){var p,w,S,T,z,n=this._milliseconds,s=this._days,f=this._months,c=this._data;return n>=0&&s>=0&&f>=0||n<=0&&s<=0&&f<=0||(n+=864e5*d(v(f)+s),s=0,f=0),c.milliseconds=n%1e3,p=R(n/1e3),c.seconds=p%60,w=R(p/60),c.minutes=w%60,S=R(w/60),c.hours=S%24,s+=R(S/24),f+=z=R(h(s)),s-=d(v(z)),T=R(f/12),f%=12,c.days=s,c.months=f,c.years=T,this},Q.clone=function Z(){return Xe(this)},Q.get=function oe(n){return n=ce(n),this.isValid()?this[n+"s"]():NaN},Q.milliseconds=ye,Q.seconds=be,Q.minutes=ge,Q.hours=_e,Q.days=Ut,Q.weeks=function To(){return R(this.days()/7)},Q.months=$t,Q.years=Ya,Q.humanize=function Ao(n,s){if(!this.isValid())return this.localeData().invalidDate();var p,w,f=!1,c=Kr;return"object"==typeof n&&(s=n,n=!1),"boolean"==typeof n&&(f=n),"object"==typeof s&&(c=je(je({},Kr),s||{}),null!=s.s&&null==s.ss&&(c.ss=s.s-1)),w=Ro(this,!f,c,p=this.localeData()),f&&(w=rn.call(p,+this,w)),p.postformat(w)},Q.toISOString=Vn,Q.toString=Vn,Q.toJSON=Vn,Q.locale=Dn,Q.localeData=Cn,Q.toIsoString=Y("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Vn),Q.lang=Da,A("X",0,0,"unix"),A("x",0,0,"valueOf"),O("x",Me),O("X",/[+-]?\d+(\.\d{1,3})?/),ae("X",function(n,s,f){f._d=new Date(1e3*parseFloat(n))}),ae("x",function(n,s,f){f._d=new Date(B(n))}
1),C.version="2.31.0",function Ye(n){y=n}(ue),C.fn=P,C.min=function Ei(){return Er("isBefore",[].slice.call(arguments,0))},C.max=function zi(){return Er("isAfter",[].slice.call(arguments,0))},C.now=function(){return Date.now?Date.now():+new Date},C.utc=Ve,C.unix=function dt(n){return ue(1e3*n)},C.months=function Co(n,s){return Bn(n,s,"months")},C.isDate=we,C.locale=gt,C.invalid=Ft,C.duration=Xe,C.isMoment=ee,C.weekdays=function Po(n,s,f){return Na(n,s,f,"weekdays")},C.parseZone=function Hn(){return ue.apply(null,arguments).parseZone()},C.localeData=ot,C.isDuration=rt,C.monthsShort=function jn(n,s){return Bn(n,s,"monthsShort")},C.weekdaysMin=function t(n,s,f){return Na(n,s,f,"weekdaysMin")},C.defineLocale=Ir,C.updateLocale=function Di(n,s){var f,c=sr(n),p=ln;return null!=c&&(n=c._abbr),null!=s?(null!=ne[n]&&null!=ne[n].parentLocale?ne[n].set(Ze(ne[n]._config,s)):(null!=c&&(p=c._config),s=Ze(p,s),null==c&&(s.abbr=n),(f=new nt(s)).parentLocale=ne[n],ne[n]=f),gt(n)):null!=ne[n]&&(null!=ne[n].parentLocale?(ne[n]=ne[n].parentLocale,n===gt()&&gt(n)):null!=ne[n]&&delete ne[n]),ne[n]},C.locales=function dn(){return Cr(ne)},C.weekdaysShort=function e(n,s,f){return Na(n,s,f,"weekdaysShort")},C.normalizeUnits=ce,C.relativeTimeRounding=function Lo(n){return void 0===n?Ct:"function"==typeof n&&(Ct=n,!0)},C.relativeTimeThreshold=function Io(n,s){return void 0!==Kr[n]&&(void 0===s?Kr[n]:(Kr[n]=s,"s"===n&&(Kr.ss=s-1),!0))},C.calendarFormat=function Xi(n,s){var f=n.diff(s,"days",!0);return f<-6?"sameElse":f<-1?"lastWeek":f<0?"lastDay":f<1?"sameDay":f<2?"nextDay":f<7?"nextWeek":"sameElse"},C.prototype=P,C.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},C}()},4358:(Ge,Tt,te)=>{var y={"./ar":4989,"./ar.js":4989,"./es-us":1447,"./es-us.js":1447,"./fr":8178,"./fr.js":8178,"node_modules/moment/locale/ar":4989,"node_modules/moment/locale/ar.js":4989,"node_modules/moment/locale/es-us":1447,"node_modules/moment/locale/es-us.js":1447,"node_modules/moment/locale/fr":8178,"node_modules/moment/locale/fr.js":8178};function C(q){var E=Ye(q);return te(E)}function Ye(q){if(!te.o(y,q)){var E=new Error("Cannot find module '"+q+"'");throw E.code="MODULE_NOT_FOUND",E}return y[q]}C.keys=function(){return Object.keys(y)},C.resolve=Ye,Ge.exports=C,C.id=4358}}]);

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.