10 lines
169 KiB
JavaScript
10 lines
169 KiB
JavaScript
|
import{A as Da}from"./vendor.38e754a4.js";function Ta(Re,Gt){return Gt.forEach(function(B){B&&typeof B!="string"&&!Array.isArray(B)&&Object.keys(B).forEach(function(j){if(j!=="default"&&!(j in Re)){var z=Object.getOwnPropertyDescriptor(B,j);Object.defineProperty(Re,j,z.get?z:{enumerable:!0,get:function(){return B[j]}})}})}),Object.freeze(Re)}var Yt={exports:{}};/*!
|
||
|
* Chart.js v2.9.4
|
||
|
* https://www.chartjs.org
|
||
|
* (c) 2020 Chart.js Contributors
|
||
|
* Released under the MIT License
|
||
|
*/(function(Re,Gt){(function(B,j){Re.exports=j(function(){try{return require("moment")}catch{}}())})(Da,function(B){B=B&&B.hasOwnProperty("default")?B.default:B;var j={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]},z=function(e,t){return e(t={exports:{}},t.exports),t.exports}(function(e){var t={};for(var n in j)j.hasOwnProperty(n)&&(t[j[n]]=n);var i=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:["an
|
||
|
`+i;var r=document.createElement("style");r.setAttribute("type","text/css"),r.appendChild(document.createTextNode(i)),n.appendChild(r)}})(t.host?t:document.head,Hi)}},acquireContext:function(e,t){typeof e=="string"?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(this._ensureLoaded(e),function(i,a){var r=i.style,o=i.getAttribute("height"),s=i.getAttribute("width");if(i[q]={initial:{height:o,width:s,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",s===null||s===""){var l=Sn(i,"width");l!==void 0&&(i.width=l)}if(o===null||o==="")if(i.style.height==="")i.height=i.width/(a.options.aspectRatio||2);else{var u=Sn(i,"height");l!==void 0&&(i.height=u)}}(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t[q]){var n=t[q].initial;["height","width"].forEach(function(i){var a=n[i];c.isNullOrUndef(a)?t.removeAttribute(i):t.setAttribute(i,a)}),c.each(n.style||{},function(i,a){t.style[a]=i}),t.width=t.width,delete t[q]}},addEventListener:function(e,t,n){var i=e.canvas;if(t!=="resize"){var a=n[q]||(n[q]={});He(i,t,(a.proxies||(a.proxies={}))[e.id+"_"+t]=function(r){n(function(o,s){var l=qi[o.type]||o.type,u=c.getRelativePosition(o,s);return At(l,s,u.x,u.y,o)}(r,e))})}else Ui(i,n,e)},removeEventListener:function(e,t,n){var i=e.canvas;if(t!=="resize"){var a=((n[q]||{}).proxies||{})[e.id+"_"+t];a&&Pt(i,t,a)}else Yi(i)}};c.addEvent=He,c.removeEvent=Pt;var Gi=Pn._enabled?Pn:{acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}},Fe=c.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},Gi);S._set("global",{plugins:{}});var R={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach(function(n){t.indexOf(n)===-1&&t.push(n)}),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach(function(n){var i=t.indexOf(n);i!==-1&&t.splice(i,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var i,a,r,o,s,l=this.descriptors(e),u=l.length;for(i=0;i<u;++i)if(typeof(s=(r=(a=l[i]).plugin)[t])=="function"&&((o=[e].concat(n||[])).push(a.options),s.apply(r,o)===!1))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var n=[],i=[],a=e&&e.config||{},r=a.options&&a.options.plugins||{};return this._plugins.concat(a.plugins||[]).forEach(function(o){if(n.indexOf(o)===-1){var s=o.id,l=r[s];l!==!1&&(l===!0&&(l=c.clone(S.global.plugins[s])),n.push(o),i.push({plugin:o,options:l||{}}))}}),t.descriptors=i,t.id=this._cacheId,i},_invalidate:function(e){delete e.$plugins}},qe={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=c.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?c.merge(Object.create(null),[S.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){this.defaults.hasOwnProperty(e)&&(this.defaults[e]=c.extend(this.defaults[e],t))},addScalesToLayout:function(e){c.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,te.addBox(e,t)})}},de=c.valueOrDefault,Dt=c.rtl.getRtlAdapter;S._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:
|
||
|
`)>-1?e.split(`
|
||
|
`):e}function Dn(e){var t=S.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:de(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:de(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:de(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:de(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:de(e.titleFontStyle,t.defaultFontStyle),titleFontSize:de(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:de(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:de(e.footerFontStyle,t.defaultFontStyle),footerFontSize:de(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function nt(e,t){return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-e.xPadding:e.x+e.xPadding}function Tn(e){return se([],he(e))}var Xi=re.extend({initialize:function(){this._model=Dn(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options,n=t.callbacks,i=n.beforeTitle.apply(e,arguments),a=n.title.apply(e,arguments),r=n.afterTitle.apply(e,arguments),o=[];return o=se(o,he(i)),o=se(o,he(a)),o=se(o,he(r))},getBeforeBody:function(){return Tn(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,i=n._options.callbacks,a=[];return c.each(e,function(r){var o={before:[],lines:[],after:[]};se(o.before,he(i.beforeLabel.call(n,r,t))),se(o.lines,i.label.call(n,r,t)),se(o.after,he(i.afterLabel.call(n,r,t))),a.push(o)}),a},getAfterBody:function(){return Tn(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,n=t.beforeFooter.apply(e,arguments),i=t.footer.apply(e,arguments),a=t.afterFooter.apply(e,arguments),r=[];return r=se(r,he(n)),r=se(r,he(i)),r=se(r,he(a))},update:function(e){var t,n,i,a,r,o,s,l,u,d,h=this,f=h._options,g=h._model,p=h._model=Dn(f),m=h._active,v=h._data,x={xAlign:g.xAlign,yAlign:g.yAlign},b={x:g.x,y:g.y},y={width:g.width,height:g.height},_={x:g.caretX,y:g.caretY};if(m.length){p.opacity=1;var k=[],M=[];_=An[f.position].call(h,m,h._eventPosition);var C=[];for(t=0,n=m.length;t<n;++t)C.push((i=m[t],a=void 0,r=void 0,o=void 0,s=void 0,l=void 0,u=void 0,d=void 0,a=i._xScale,r=i._yScale||i._scale,o=i._index,s=i._datasetIndex,l=i._chart.getDatasetMeta(s).controller,u=l._getIndexScale(),d=l._getValueScale(),{xLabel:a?a.getLabelForIndex(o,s):"",yLabel:r?r.getLabelForIndex(o,s):"",label:u?""+u.getLabelForIndex(o,s):"",value:d?""+d.getLabelForIndex(o,s):"",index:o,datasetIndex:s,x:i._model.x,y:i._model.y}));f.filter&&(C=C.filter(function(P){return f.filter(P,v)})),f.itemSort&&(C=C.sort(function(P,w){return f.itemSort(P,w,v)})),c.each(C,function(P){k.push(f.callbacks.labelColor.call(h,P,h._chart)),M.push(f.callbacks.labelTextColor.call(h,P,h._chart))}),p.title=h.getTitle(C,v),p.beforeBody=h.getBeforeBody(C,v),p.body=h.getBody(C,v),p.afterBody=h.getAfterBody(C,v),p.footer=h.getFooter(C,v),p.x=_.x,p.y=_.y,p.caretPadding=f.caretPadding,p.labelColors=k,p.labelTextColors=M,p.dataPoints=C,y=function(P,w){var O=P._chart.ctx,D=2*w.yPadding,T=0,N=w.body,I=N.reduce(function(ne,H){return ne+H.before.length+H.lines.length+H.after.length},0);I+=w.beforeBody.length+w.afterBody.length;var L=w.title.length,E=w.footer.length,W=w.titleFontSize,V=w.bodyFontSize,$=w.footerFontSize;D+=L*W,D+=L?(L-1)*w.titleSpacing:0,D+=L?w.titleMarginBottom:0,D+=I*V,D+=I?(I-1)*w.bodySpacing:0,D+=E?w.footerMarginTop:0,D+=E*$,D+=E?(E-1)*w.footerSpacing:0;var fe=0,be=function(ne){T=Math.max(T,O.measureText(ne).width+fe)};return O.font=c.fontString(W,w._titleFontS
|