PageSourceSearch

https://lf.edu.uy/combine/5391bc14755b71d9502293fe4dbe8866-1771939832

js lf.edu.uy collected 2026-09-26 20:09:00 UTC 283,655 bytes, 319 lines download raw bytes

1/**
2 * MENU 2026 - Off-Canvas Navigation
3 * Liceo Francés Jules Supervielle
4 * Vanilla JavaScript - No Dependencies
5 */
6
7(function() {
8  'use strict';
9
10  // ==========================================
11  // CONFIGURATION
12  // ==========================================
13  
14  const CONFIG = {
15    toggle: 'menu-toggle',
16    panel: 'menu-panel',
17    overlay: 'menu-overlay',
18    close: 'menu-close',
19    submenuToggle: 'data-toggle',
20    submenuClass: 'active',
21    bodyClass: 'menu-open',
22    focusTrap: true,
23    escapeClose: true,
24    overlayClose: true,
25    animationDuration: 300
26  };
27
28  // ==========================================
29  // STATE
30  // ==========================================
31  
32  let state = {
33    isOpen: false,
34    lastFocusedElement: null,
35    previousFocus: null
36  };
37
38  // ==========================================
39  // DOM ELEMENTS
40  // ==========================================
41  
42  const elements = {
43    toggle: null,
44    panel: null,
45    overlay: null,
46    close: null,
47    submenus: null,
48    links: null
49  };
50
51  // ==========================================
52  // INITIALIZATION
53  // ==========================================
54  
55  function init() {
56    cacheElements();
57    bindEvents();
58    
59    // Check for reduced motion preference
60    if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
61      document.documentElement.style.setProperty('--transition-speed', '0ms');
62    }
63  }
64
65  function cacheElements() {
66    elements.toggle = document.getElementById(CONFIG.toggle);
67    elements.panel = document.getElementById(CONFIG.panel);
68    elements.overlay = document.getElementById(CONFIG.overlay);
69    elements.close = document.getElementById(CONFIG.close);
70    elements.submenus = document.querySelectorAll('[data-toggle="submenu"]');
71    elements.links = document.querySelectorAll('.menu-link, .submenu-link');
72  }
73
74  function bindEvents() {
75    // Toggle button
76    if (elements.toggle) {
77      elements.toggle.addEventListener('click', handleToggleClick);
78    }
79
80    // Close button
81    if (elements.close) {
82      elements.close.addEventListener('click', handleCloseClick);
83    }
84
85    // Overlay click
86    if (elements.overlay) {
87      elements.overlay.addEventListener('click', handleOverlayClick);
88    }
89
90    // Submenu toggles
91    elements.submenus.forEach(function(link) {
92      link.addEventListener('click', handleSubmenuClick);
93    });
94
95    // Keyboard events
96    document.addEventListener('keydown', handleKeyDown);
97
98    // Handle escape key
99    if (CONFIG.escapeClose) {
100      document.addEventListener('keydown', handleEscapeKey);
101    }
102
103    // Link clicks - close menu on navigation
104    elements.links.forEach(function(link) {
105      link.addEventListener('click', function(e) {
106        // Don't close if it's a parent with submenu
107        if (!this.hasAttribute('data-toggle')) {
108          closeMenu();
109        }
110      });
111    });
112
113    // Prevent scroll when menu is open
114    elements.panel?.addEventListener('touchmove', function(e) {
115      if (state.isOpen) {
116        e.preventDefault();
117      }
118    }, { passive: false });
119  }
120
121  // ==========================================
122  // EVENT HANDLERS
123  // ==========================================
124  
125  function handleToggleClick(e) {
126    e.preventDefault();
127    state.isOpen ? closeMenu() : openMenu();
128  }
129
130  function handleCloseClick(e) {
131    e.preventDefault();
132    closeMenu();
133  }
134
135  function handleOverlayClick(e) {
136    e.preventDefault();
137    closeMenu();
138  }
139
140  function handleSubmenuClick(e) {
141    e.preventDefault();
142    const parent = e.currentTarget.closest('.has-submenu');
143    
144    if (parent) {
145      // Close other submenus at same level
146      const siblings = parent.parentElement.querySelectorAll('.has-submenu');
147      siblings.forEach(function(sibling) {
148        if (sibling !== parent && sibling.classList.contains(CONFIG.submenuClass)) {
149          sibling.classList.remove(CONFIG.submenuClass);
150        }
151      });
152      
153      // Toggle current submenu
154      parent.classList.toggle(CONFIG.submenuClass);
155    }
156  }
157
158  function handleKeyDown(e) {
159    if (!state.isOpen) return;
160
161    // Tab key - focus trap
162    if (e.key === 'Tab') {
163      handleFocusTrap(e);
164    }
165  }
166
167  function handleEscapeKey(e) {
168    if (e.key === 'Escape' && state.isOpen) {
169      closeMenu();
170      // Return focus to toggle button
171      if (elements.toggle) {
172        elements.toggle.focus();
173      }
174    }
175  }
176
177  // ==========================================
178  // MENU FUNCTIONS
179  // ==========================================
180  
181  function openMenu() {
182    if (state.isOpen) return;
183
184    // Store last focused element
185    state.lastFocusedElement = document.activeElement;
186    state.previousFocus = document.activeElement;
187
188    // Add open state
189    state.isOpen = true;
190    document.body.classList.add(CONFIG.bodyClass);
191    
192    if (elements.toggle) {
193      elements.toggle.setAttribute('aria-expanded', 'true');
194    }
195    
196    if (elements.panel) {
197      elements.panel.classList.add('is-open');
198      elements.panel.setAttribute('aria-hidden', 'false');
199    }
200    
201    if (elements.overlay) {
202      elements.overlay.classList.add('is-open');
203    }
204
205    // Focus management
206    setTimeout(function() {
207      if (elements.close) {
208        elements.close.focus();
209      }
210    }, 100);
211
212    // Prevent body scroll
213    document.body.style.overflow = 'hidden';
214  }
215
216  function closeMenu() {
217    if (!state.isOpen) return;
218
219    // Remove open state
220    state.isOpen = false;
221    document.body.classList.remove(CONFIG.bodyClass);
222    
223    if (elements.toggle) {
224      elements.toggle.setAttribute('aria-expanded', 'false');
225    }
226    
227    if (elements.panel) {
228      elements.panel.classList.remove('is-open');
229      elements.panel.setAttribute('aria-hidden', 'true');
230    }
231    
232    if (elements.overlay) {
233      elements.overlay.classList.remove('is-open');
234    }
235
236    // Restore body scroll
237    document.body.style.overflow = '';
238
239    // Return focus to toggle button
240    if (state.lastFocusedElement) {
241      state.lastFocusedElement.focus();
242      state.lastFocusedElement = null;
243    }
244  }
245
246  // ==========================================
247  // ACCESSIBILITY - FOCUS TRAP
248  // ==========================================
249  
250  function handleFocusTrap(e) {
251    if (!CONFIG.focusTrap || !elements.panel) return;
252
253    const focusableElements = elements.panel.querySelectorAll(
254      'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
255    );
256    
257    const firstElement = focusableElements[0];
258    const lastElement = focusableElements[focusableElements.length - 1];
259
260    if (e.shiftKey) {
261      // Shift + Tab
262      if (document.activeElement === firstElement) {
263        e.preventDefault();
264        lastElement.focus();
265      }
266    } else {
267      // Tab
268      if (document.activeElement === lastElement) {
269        e.preventDefault();
270        firstElement.focus();
271      }
272    }
273  }
274
275  // ==========================================
276  // PUBLIC API
277  // ==========================================
278  
279  window.Menu2026 = {
280    open: openMenu,
281    close: closeMenu,
282    toggle: function() {
283      state.isOpen ? closeMenu() : openMenu();
284    },
285    isOpen: function() {
286      return state.isOpen;
287    }
288  };
289
290  // ==========================================
291  // INITIALIZE ON DOM READY
292  // ==========================================
293  
294  if (document.readyState === 'loading') {
295    document.addEventListener('DOMContentLoaded', init);
296  } else {
297    init();
298  }
299
300})();
301
302var _Mathfloor=Math.floor,_Mathmin=Math.min,_Mathround=Math.round,_Mathmax=Math.max;const nativeHints=['native code','[object MutationObserverConstructor]'];var isNative=(e)=>nativeHints.some((t)=>-1<(e||'').toString().indexOf(t));const isBrowser='undefined'!=typeof window,longerTimeoutBrowsers=['Edge','Trident','Firefox'];let timeoutDuration=0;for(let e=0;e<longerTimeoutBrowsers.length;e+=1)if(isBrowser&&0<=navigator.userAgent.indexOf(longerTimeoutBrowsers[e])){timeoutDuration=1;break}function microtaskDebounce(e){let t=!1,o=0;const r=document.createElement('span'),p=new MutationObserver(()=>{e(),t=!1});return p.observe(r,{attributes:!0}),()=>{t||(t=!0,r.setAttribute('x-index',o),++o)}}function taskDebounce(e){let t=!1;return()=>{t||(t=!0,setTimeout(()=>{t=!1,e()},timeoutDuration))}}const supportsNativeMutationObserver=isBrowser&&isNative(window.MutationObserver);var debounce=supportsNativeMutationObserver?microtaskDebounce:taskDebounce;function isNumeric(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function setStyles(e,t){Object.keys(t).forEach((o)=>{let r='';-1!==['width','height','top','right','bottom','left'].indexOf(o)&&isNumeric(t[o])&&(r='px'),e.style[o]=t[o]+r})}function isFunction(e){return e&&'[object Function]'==={}.toString.call(e)}function getStyleComputedProperty(e,t){if(1!==e.nodeType)return[];const o=window.getComputedStyle(e,null);return t?o[t]:o}
302function getParentNode(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function getScrollParent(e){if(!e||-1!==['HTML','BODY','#document'].indexOf(e.nodeName))return window.document.body;const{overflow:t,overflowX:o,overflowY:r}=getStyleComputedProperty(e);return /(auto|scroll)/.test(t+r+o)?e:getScrollParent(getParentNode(e))}function isOffsetContainer(e){const{nodeName:t}=e;return'BODY'!==t&&('HTML'===t||e.firstElementChild.offsetParent===e)}function getRoot(e){return null===e.parentNode?e:getRoot(e.parentNode)}function getOffsetParent(e){const t=e&&e.offsetParent,o=t&&t.nodeName;return o&&'BODY'!==o&&'HTML'!==o?t:window.document.documentElement}function findCommonOffsetParent(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return window.document.documentElement;const o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=o?e:t,p=o?t:e,s=document.createRange();s.setStart(r,0),s.setEnd(p,0);const{commonAncestorContainer:d}=s;if(e!==d&&t!==d||r.contains(p))return isOffsetContainer(d)?d:getOffsetParent(d);const f=getRoot(e);return f.host?findCommonOffsetParent(f.host,t):findCommonOffsetParent(e,getRoot(t).host)}function getScroll(e,t='top'){const o='top'===t?'scrollTop':'scrollLeft',r=e.nodeName;if('BODY'===r||'HTML'===r){const p=window.document.documentElement,s=window.document.scrollingElement||p;return s[o]}return e[o]}function includeScroll(e,t,o=!1){const r=getScroll(t,'top'),p=getScroll(t,'left'),s=o?-1:1;return e.top+=r*s,e.bottom+=r*s,e.left+=p*s,e.right+=p*s,e}function getBordersSize(e,t){const o='x'===t?'Left':'Top',r='Left'==o?'Right':'Bottom';return+e[`border${o}Width`].split('px')[0]+ +e[`border${r}Width`].split('px')[0]}let isIE10;var isIE10$1=function(){return void 0==isIE10&&(isIE10=-1!==navigator.appVersion.indexOf('MSIE 10')),isIE10};function getSize(e,t,o,r){return _Mathmax(t[`offset${e}`],o[`client${e}`],o[`offset${e}`],isIE10$1()?o[`offset${e}`]+r[`margin${'Height'===e?'Top':'Left'}`]+r[`margin${'Height'===e?'Bottom':'Right'}`]:0)}function getWindowSizes(){const e=window.document.body,t=window.document.documentElement,o=isIE10$1()&&window.getComputedStyle(t);return{height:getSize('Height',e,t,o),width:getSize('Width',e,t,o)}}var _extends=Object.assign||function(e){for(var o,t=1;t<arguments.length;t++)for(var r in o=arguments[t],o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r]);return e};function getClientRect(e){return _extends({},e,{right:e.left+e.width,bottom:e.top+e.height})}function getBoundingClientRect(e){let t={};if(isIE10$1())try{t=e.getBoundingClientRect();const l=getScroll(e,'top'),m=getScroll(e,'left');t.top+=l,t.left+=m,t.bottom+=l,t.right+=m}catch(l){}else t=e.getBoundingClientRect();const o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top}
302,r='HTML'===e.nodeName?getWindowSizes():{},p=r.width||e.clientWidth||o.right-o.left,s=r.height||e.clientHeight||o.bottom-o.top;let d=e.offsetWidth-p,f=e.offsetHeight-s;if(d||f){const l=getStyleComputedProperty(e);d-=getBordersSize(l,'x'),f-=getBordersSize(l,'y'),o.width-=d,o.height-=f}return getClientRect(o)}function getOffsetRectRelativeToArbitraryNode(e,t){const o=isIE10$1(),r='HTML'===t.nodeName,p=getBoundingClientRect(e),s=getBoundingClientRect(t),d=getScrollParent(e);let f=getClientRect({top:p.top-s.top,left:p.left-s.left,width:p.width,height:p.height});if(r||'BODY'===t.nodeName){const l=getStyleComputedProperty(t),m=o&&r?0:+l.borderTopWidth.split('px')[0],h=o&&r?0:+l.borderLeftWidth.split('px')[0],c=o&&r?0:+l.marginTop.split('px')[0],u=o&&r?0:+l.marginLeft.split('px')[0];f.top-=m-c,f.bottom-=m-c,f.left-=h-u,f.right-=h-u,f.marginTop=c,f.marginLeft=u}return(o?t.contains(d):t===d&&'BODY'!==d.nodeName)&&(f=includeScroll(f,t)),f}function getViewportOffsetRectRelativeToArtbitraryNode(e){const t=window.document.documentElement,o=getOffsetRectRelativeToArbitraryNode(e,t),r=_Mathmax(t.clientWidth,window.innerWidth||0),p=_Mathmax(t.clientHeight,window.innerHeight||0),s=getScroll(t),d=getScroll(t,'left'),f={top:s-o.top+o.marginTop,left:d-o.left+o.marginLeft,width:r,height:p};return getClientRect(f)}function isFixed(e){const t=e.nodeName;return'BODY'===t||'HTML'===t?!1:!('fixed'!==getStyleComputedProperty(e,'position'))||isFixed(getParentNode(e))}function getBoundaries(e,t,o,r){let p={top:0,left:0};const s=findCommonOffsetParent(e,t);if('viewport'===r)p=getViewportOffsetRectRelativeToArtbitraryNode(s);else{let d;'scrollParent'===r?(d=getScrollParent(getParentNode(e)),'BODY'===d.nodeName&&(d=window.document.documentElement)):'window'===r?d=window.document.documentElement:d=r;const f=getOffsetRectRelativeToArbitraryNode(d,s);if('HTML'===d.nodeName&&!isFixed(s)){const{height:l,width:m}=getWindowSizes();p.top+=f.top-f.marginTop,p.bottom=l+f.top,p.left+=f.left-f.marginLeft,p.right=m+f.left}else p=f}return p.left+=o,p.top+=o,p.right-=o,p.bottom-=o,p}function getArea({width:e,height:t}){return e*t}function computeAutoPlacement(e,t,o,r,p,s=0){if(-1===e.indexOf('auto'))return e;const d=getBoundaries(o,r,s,p),f={top:{width:d.width,height:t.top-d.top},right:{width:d.right-t.right,height:d.height},bottom:{width:d.width,height:d.bottom-t.bottom},left:{width:t.left-d.left,height:d.height}},l=Object.keys(f).map((u)=>_extends({key:u},f[u],{area:getArea(f[u])})).sort((u,g)=>g.area-u.area),m=l.filter(({width:u,height:g})=>u>=o.clientWidth&&g>=o.clientHeight),h=0<m.length?m[0].key:l[0].key,c=e.split('-')[1];return h+(c?`-${c}`:'')}function getReferenceOffsets(e,t,o){const r=findCommonOffsetParent(t,o);return getOffsetRectRelativeToArbitraryNode(o,r)}function getOuterSizes(e){const t=window.getComputedStyle(e),o=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight),p={width:e.offsetWidth+r,height:e.offsetHeight+o};return p}function getOppositePlacement(e){const t={left:'right',right:'left',bottom:'top',top:'bottom'};return e.replace(/left|right|bottom|top/g,(o)=>t[o])}function getPopperOffsets(e,t,o){o=o.split('-')[0];const r=getOuterSizes(e),p={width:r.width,height:r.height},s=-1!==['right','left'].indexOf(o),d=s?'top':'left',f=s?'left':'top',l=s?'height':'width',m=s?'width':'height';return p[d]=t[d]+t[l]/2-r[l]/2,p[f]=o===f?t[f]-r[m]:t[getOppositePlacement(f)],p}function find(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function findIndex(e,t,o){if(Array.prototype.findIndex)return e.findIndex((p)=>p[t]===o);const r=find(e,(p)=>p[t]===o);return e.indexOf(r)}function runModifiers(e,t,o){const r=void 0===o?e:e.slice(0,findIndex(e,'name',o));return r.forEach((p)=>{p.function&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');const s=p.function||p.fn;p.enabled&&isFunction(s)&&(t=s(t,p))}),t}function update(){if(this.state.isDestroyed)return;let e={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=getReferenceOffsets(this.state,this.popper,this.reference),e.placement=computeAutoPlacement(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.offsets.popper=getPopperOffsets(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position='absolute',e=runModifiers(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}function isModifierEnabled(e,t){return e.some(({name:o,enabled:r})=>r&&o===t)}
302function getSupportedPropertyName(e){const t=[!1,'ms','webkit','moz','o'],o=e.charAt(0).toUpperCase()+e.slice(1);for(let r=0;r<t.length-1;r++){const p=t[r],s=p?`${p}${o}`:e;if('undefined'!=typeof window.document.body.style[s])return s}return null}function destroy(){return this.state.isDestroyed=!0,isModifierEnabled(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.left='',this.popper.style.position='',this.popper.style.top='',this.popper.style[getSupportedPropertyName('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function attachToScrollParents(e,t,o,r){const p='BODY'===e.nodeName,s=p?window:e;s.addEventListener(t,o,{passive:!0}),p||attachToScrollParents(getScrollParent(s.parentNode),t,o,r),r.push(s)}function setupEventListeners(e,t,o,r){o.updateBound=r,window.addEventListener('resize',o.updateBound,{passive:!0});const p=getScrollParent(e);return attachToScrollParents(p,'scroll',o.updateBound,o.scrollParents),o.scrollElement=p,o.eventsEnabled=!0,o}function enableEventListeners(){this.state.eventsEnabled||(this.state=setupEventListeners(this.reference,this.options,this.state,this.scheduleUpdate))}function removeEventListeners(e,t){return window.removeEventListener('resize',t.updateBound),t.scrollParents.forEach((o)=>{o.removeEventListener('scroll',t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function disableEventListeners(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=removeEventListeners(this.reference,this.state))}function setAttributes(e,t){Object.keys(t).forEach(function(o){const r=t[o];!1===r?e.removeAttribute(o):e.setAttribute(o,t[o])})}function applyStyle(e,t){const o={position:e.offsets.popper.position},r={'x-placement':e.placement},p=_Mathround(e.offsets.popper.left),s=_Mathround(e.offsets.popper.top),d=getSupportedPropertyName('transform');return t.gpuAcceleration&&d?(o[d]='translate3d('+p+'px, '+s+'px, 0)',o.top=0,o.left=0,o.willChange='transform'):(o.left=p,o.top=s,o.willChange='top, left'),setStyles(e.instance.popper,_extends({},o,e.styles)),setAttributes(e.instance.popper,_extends({},r,e.attributes)),e.offsets.arrow&&setStyles(e.arrowElement,e.offsets.arrow),e}function applyStyleOnLoad(e,t,o,r,p){const s=getReferenceOffsets(p,t,e),d=computeAutoPlacement(o.placement,s,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',d),o}function isModifierRequired(e,t,o){const r=find(e,({name:s})=>s===t),p=!!r&&e.some((s)=>{return s.name===o&&s.enabled&&s.order<r.order});if(!p){const s=`\`${t}\``,d=`\`${o}\``;console.warn(`${d} modifier is required by ${s} modifier in order to work, be sure to include it before ${s}!`)}return p}function arrow(e,t){if(!isModifierRequired(e.instance.modifiers,'arrow','keepTogether'))return e;let o=t.element;if('string'==typeof o){if(o=e.instance.popper.querySelector(o),!o)return e;}else if(!e.instance.popper.contains(o))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;const r=e.placement.split('-')[0],p=getClientRect(e.offsets.popper),s=e.offsets.reference,d=-1!==['left','right'].indexOf(r),f=d?'height':'width',l=d?'top':'left',m=d?'left':'top',h=d?'bottom':'right',c=getOuterSizes(o)[f];s[h]-c<p[l]&&(e.offsets.popper[l]-=p[l]-(s[h]-c)),s[l]+c>p[h]&&(e.offsets.popper[l]+=s[l]+c-p[h]);const u=s[l]+s[f]/2-c/2;let g=u-getClientRect(e.offsets.popper)[l];return g=_Mathmax(_Mathmin(p[f]-c,g),0),e.arrowElement=o,e.offsets.arrow={},e.offsets.arrow[l]=_Mathfloor(g),e.offsets.arrow[m]='',e}function getOppositeVariation(e){if('end'===e)return'start';return'start'===e?'end':e}var placements=['auto-start','auto','auto-end','top-start','top','top-end','right-start','right','right-end','bottom-end','bottom','bottom-start','left-end','left','left-start'];const validPlacements=placements.slice(3);function clockwise(e,t=!1){const o=validPlacements.indexOf(e),r=validPlacements.slice(o+1).concat(validPlacements.slice(0,o));return t?r.reverse():r}const BEHAVIORS={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'};function flip(e,t){if(isModifierEnabled(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;const o=getBoundaries(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement);let r=e.placement.split('-')[0],p=getOppositePlacement(r),s=e.placement.split('-')[1]||'',d=[];switch(t.behavior){case BEHAVIORS.FLIP:d=[r,p];break;case BEHAVIORS.CLOCKWISE:d=clockwise(r);break;case BEHAVIORS.COUNTERCLOCKWISE:d=clockwise(r,!0);break;default:d=t.behavior;}return d.forEach((f,l)=>{if(r!==f||d.length===l+1)return e;r=e.placement.split('-')[0],p=getOppositePlacement(r);const m=getClientRect(e.offsets.popper),h=e.offsets.reference,c=_Mathfloor,u='left'===r&&c(m.right)>c(h.left)||'right'===r&&c(m.left)<c(h.right)||'top'===r&&c(m.bottom)>c(h.top)||'bottom'===r&&c(m.top)<c(h.bottom),g=c(m.left)<c(o.left),w=c(m.right)>c(o.right),E=c(m.top)<c(o.top),O=c(m.bottom)>c(o.bottom),v='left'===r&&g||'right'===r&&w||'top'===r&&E||'bottom'===r&&O,L=-1!==['top','bottom'].indexOf(r),S=!!t.flipVariations&&(L&&'start'===s&&g||L&&'end'===s&&w||!L&&'start'===s&&E||!L&&'end'===s&&O);(u||v||S)&&(e.flipped=!0,(u||v)&&(r=d[l+1]),S&&(s=getOppositeVariation(s)),e.placement=r+(s?'-'+s:''),e.offsets.popper=_extends({},e.offsets.popper,getPopperOffsets(e.instance.popper,e.offsets.reference,e.placement)),e=run
302Modifiers(e.instance.modifiers,e,'flip'))}),e}function keepTogether(e){const t=getClientRect(e.offsets.popper),o=e.offsets.reference,r=e.placement.split('-')[0],p=_Mathfloor,s=-1!==['top','bottom'].indexOf(r),d=s?'right':'bottom',f=s?'left':'top',l=s?'width':'height';return t[d]<p(o[f])&&(e.offsets.popper[f]=p(o[f])-t[l]),t[f]>p(o[d])&&(e.offsets.popper[f]=p(o[d])),e}function toValue(e,t,o,r){const p=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+p[1],d=p[2];if(!s)return e;if(0===d.indexOf('%')){let f;switch(d){case'%p':f=o;break;case'%':case'%r':default:f=r;}const l=getClientRect(f);return l[t]/100*s}if('vh'===d||'vw'===d){let f;return f='vh'===d?_Mathmax(document.documentElement.clientHeight,window.innerHeight||0):_Mathmax(document.documentElement.clientWidth,window.innerWidth||0),f/100*s}return s}function parseOffset(e,t,o,r){const p=[0,0],s=-1!==['right','left'].indexOf(r),d=e.split(/(\+|\-)/).map((h)=>h.trim()),f=d.indexOf(find(d,(h)=>-1!==h.search(/,|\s/)));d[f]&&-1===d[f].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');const l=/\s*,\s*|\s+/;let m=-1===f?[d]:[d.slice(0,f).concat([d[f].split(l)[0]]),[d[f].split(l)[1]].concat(d.slice(f+1))];return m=m.map((h,c)=>{const u=(1===c?!s:s)?'height':'width';let g=!1;return h.reduce((w,E)=>{return''===w[w.length-1]&&-1!==['+','-'].indexOf(E)?(w[w.length-1]=E,g=!0,w):g?(w[w.length-1]+=E,g=!1,w):w.concat(E)},[]).map((w)=>toValue(w,u,t,o))}),m.forEach((h,c)=>{h.forEach((u,g)=>{isNumeric(u)&&(p[c]+=u*('-'===h[g-1]?-1:1))})}),p}function offset(e,{offset:t}){const{placement:o,offsets:{popper:r,reference:p}}=e,s=o.split('-')[0];let d;return d=isNumeric(+t)?[+t,0]:parseOffset(t,r,p,s),'left'===s?(r.top+=d[0],r.left-=d[1]):'right'===s?(r.top+=d[0],r.left+=d[1]):'top'===s?(r.left+=d[0],r.top-=d[1]):'bottom'===s&&(r.left+=d[0],r.top+=d[1]),e.popper=r,e}function preventOverflow(e,t){const o=t.boundariesElement||getOffsetParent(e.instance.popper),r=getBoundaries(e.instance.popper,e.instance.reference,t.padding,o);t.boundaries=r;const p=t.priority;let s=getClientRect(e.offsets.popper);const d={primary(f){let l=s[f];return s[f]<r[f]&&!t.escapeWithReference&&(l=_Mathmax(s[f],r[f])),{[f]:l}},secondary(f){const l='right'===f?'left':'top';let m=s[l];return s[f]>r[f]&&!t.escapeWithReference&&(m=_Mathmin(s[l],r[f]-('right'===f?s.width:s.height))),{[l]:m}}};return p.forEach((f)=>{const l=-1===['left','top'].indexOf(f)?'secondary':'primary';s=_extends({},s,d[l](f))}),e.offsets.popper=s,e}function shift(e){const t=e.placement,o=t.split('-')[0],r=t.split('-')[1];if(r){const p=e.offsets.reference,s=getClientRect(e.offsets.popper),d=-1!==['bottom','top'].indexOf(o),f=d?'left':'top',l=d?'width':'height',m={start:{[f]:p[f]},end:{[f]:p[f]+p[l]-s[l]}};e.offsets.popper=_extends({},s,m[r])}return e}function hide(e){if(!isModifierRequired(e.instance.modifiers,'hide','preventOverflow'))return e;const t=e.offsets.reference,o=find(e.instance.modifiers,(r)=>
302'preventOverflow'===r.name).boundaries;if(t.bottom<o.top||t.left>o.right||t.top>o.bottom||t.right<o.left){if(!0===e.hide)return e;e.hide=!0,e.attributes['x-out-of-boundaries']=''}else{if(!1===e.hide)return e;e.hide=!1,e.attributes['x-out-of-boundaries']=!1}return e}function inner(e){const t=e.placement,o=t.split('-')[0],r=getClientRect(e.offsets.popper),p=getClientRect(e.offsets.reference),s=-1!==['left','right'].indexOf(o),d=-1===['top','left'].indexOf(o);return r[s?'left':'top']=p[t]-(d?r[s?'width':'height']:0),e.placement=getOppositePlacement(t),e.offsets.popper=getClientRect(r),e}var modifiers={shift:{order:100,enabled:!0,fn:shift},offset:{order:200,enabled:!0,fn:offset,offset:0},preventOverflow:{order:300,enabled:!0,fn:preventOverflow,priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:keepTogether},arrow:{order:500,enabled:!0,fn:arrow,element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:flip,behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:inner},hide:{order:800,enabled:!0,fn:hide},applyStyle:{order:900,enabled:!0,fn:applyStyle,onLoad:applyStyleOnLoad,gpuAcceleration:!0}},DEFAULTS={placement:'bottom',eventsEnabled:!0,removeOnDestroy:!1,onCreate:()=>{},onUpdate:()=>{},modifiers};class Popper{constructor(e,t,o={}){this.scheduleUpdate=()=>requestAnimationFrame(this.update),this.update=debounce(this.update.bind(this)),this.options=_extends({},Popper.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e.jquery?e[0]:e,this.popper=t.jquery?t[0]:t,setStyles(this.popper,{position:'absolute'}),this.options.modifiers={},Object.keys(_extends({},Popper.Defaults.modifiers,o.modifiers)).forEach((p)=>{this.options.modifiers[p]=_extends({},Popper.Defaults.modifiers[p]||{},o.modifiers?o.modifiers[p]:{})}),this.modifiers=Object.keys(this.options.modifiers).map((p)=>_extends({name:p},this.options.modifiers[p])).sort((p,s)=>p.order-s.order),this.modifiers.forEach((p)=>{p.enabled&&isFunction(p.onLoad)&&p.onLoad(this.reference,this.popper,this.options,p,this.state)}),this.update();const r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}update(){return update.call(this)}destroy(){return destroy.call(this)}enableEventListeners(){return enableEventListeners.call(this)}disableEventListeners(){return disableEventListeners.call(this)}}Popper.Utils=('undefined'==typeof window?global:window).PopperUtils,Popper.placements=placements,Popper.Defaults=DEFAULTS;
303//export default Popper;
304
305//# sourceMappingURL=popper.min.js.map
306/*!
307 * Bootstrap v4.0.0-alpha.6 (https://getbootstrap.com)
308 * Copyright 2011-2017 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
309 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
310 */
311if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");!function(t){var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),function(){function t(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function e(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(t){function e(t){return{}.toString.call(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function n(t){return(t[0]||t).nodeType}function i(){return{bindType:s.end,delegateType:s.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}}function o(){if(window.QUnit)return!1;var t=document.createElement("bootstrap");for(var e in a)if(void 0!==t.style[e])return{end:a[e]};return!1}function r(e){var n=this,i=!1;return t(this).one(l.TRANSITION_END,function(){i=!0}),setTimeout(function(){i||l.triggerTransitionEnd(n)},e),this}var s=!1,a={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},l={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(e){var n=e.getAttribute("data-target");n&&"#"!==n||(n=e.getAttribute("href")||"");try{return t(n).length>0?n:null}catch(t){return null}},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(e){t(e).trigger(s.end)},supportsTransitionEnd:function(){return Boolean(s)},typeCheckConfig:function(t,i,o){for(var r in o)if(o.hasOwnProperty(r)){var s=o[r],a=i[r],l=a&&n(a)?"element":e(a);if(!new RegExp(s).test(l))throw new Error(t.toUpperCase()+': Option "'+r+'" provided type "'+l+'" but expected type "'+s+'".')}}};
vendor: 4,393 bytes, line 311
311return s=o(),t.fn.emulateTransitionEnd=r,l.supportsTransitionEnd()&&(t.event.special[l.TRANSITION_END]=i()),l}(jQuery),s=(function(t){var e="alert",i=t.fn[e],s={DISMISS:'[data-dismiss="alert"]'},a={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},l={ALERT:"alert",FADE:"fade",SHOW:"show"},h=function(){function e(t){n(this,e),this._element=t}return e.prototype.close=function(t){t=t||this._element;var e=this._getRootElement(t);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.prototype.dispose=function(){t.removeData(this._element,"bs.alert"),this._element=null},e.prototype._getRootElement=function(e){var n=r.getSelectorFromElement(e),i=!1;return n&&(i=t(n)[0]),i||(i=t(e).closest("."+l.ALERT)[0]),i},e.prototype._triggerCloseEvent=function(e){var n=t.Event(a.CLOSE);return t(e).trigger(n),n},e.prototype._removeElement=function(e){var n=this;t(e).removeClass(l.SHOW),r.supportsTransitionEnd()&&t(e).hasClass(l.FADE)?t(e).one(r.TRANSITION_END,function(t){return n._destroyElement(e,t)}).emulateTransitionEnd(150):this._destroyElement(e)},e.prototype._destroyElement=function(e){t(e).detach().trigger(a.CLOSED).remove()},e._jQueryInterface=function(n){return this.each(function(){var i=t(this),o=i.data("bs.alert");o||(o=new e(this),i.data("bs.alert",o)),"close"===n&&o[n](this)})},e._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},o(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}}]),e}();t(document).on(a.CLICK_DATA_API,s.DISMISS,h._handleDismiss(new h)),t.fn[e]=h._jQueryInterface,t.fn[e].Constructor=h,t.fn[e].noConflict=function(){return t.fn[e]=i,h._jQueryInterface}}(jQuery),function(t){var e="button",i=t.fn[e],r={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},s={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},a={CLICK_DATA_API:"click.bs.button.data-api",FOCUS_BLUR_DATA_API:"focus.bs.button.data-api blur.bs.button.data-api"},l=function(){function e(t){n(this,e),this._element=t}return e.prototype.toggle=function(){var e=!0,n=!0,i=t(this._element).closest(s.DATA_TOGGLE)[0];if(i){var o=t(this._element).find(s.INPUT)[0];if(o){if("radio"===o.type)if(o.checked&&t(this._element).hasClass(r.ACTIVE))e=!1;else{var a=t(i).find(s.ACTIVE)[0];a&&t(a).removeClass(r.ACTIVE)}if(e){if(o.hasAttribute("disabled")||i.hasAttribute("disabled")||o.classList.contains("disabled")||i.classList.contains("disabled"))return;o.checked=!t(this._element).hasClass(r.ACTIVE),t(o).trigger("change")}o.focus(),n=!1}}n&&this._element.setAttribute("aria-pressed",!t(this._element).hasClass(r.ACTIVE)),e&&t(this._element).toggleClass(r.ACTIVE)},e.prototype.dispose=function(){t.removeData(this._element,"bs.button"),this._element=null},e._jQueryInterface=function(n){return this.each(function(){var i=t(this).data("bs.button");i||(i=new e(this),t(this).data("bs.button",i)),"toggle"===n&&i[n]()})},o(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}}]),e}();t(document).on(a.CLICK_DATA_API,s.DATA_TOGGLE_CARROT,function(e){e.preventDefault();var n=e.target;t(n).hasClass(r.BUTTON)||(n=t(n).closest(s.BUTTON)),l._jQueryInterface.call(t(n),"toggle")}).on(a.FOCUS_BLUR_DATA_API,s.DATA_TOGGLE_CARROT,function(e){var n=t(e.target).closest(s.BUTTON)[0];t(n).toggleClass(r.FOCUS,/^focus(in)?$/.test(e.type))}),t.fn[e]=l._jQueryInterface,t.fn[e].Constructor=l,t.fn[e].noConflict=function(){return t.fn[e]=i,l._jQueryInterface}}(jQuery),function(t){var e="carousel",s="bs.carousel",a="."+s,l=t.fn[e],h={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},c={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},u={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},d={SLIDE:"slide"+a,SLID:"slid"+a,KEYDOWN:"keydown"+a,MOUSEENTER:"mouseenter"+a,MOUSELEAVE:"mouseleave"+a,TOUCHEND:"touchend"+a,LOAD_DATA_API:"load.bs.carousel.data-api",CLICK_DATA_API:"click.bs.carousel.data-api"},f={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},p={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-sli
311de], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},_=function(){function l(e,i){n(this,l),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(i),this._element=t(e)[0],this._indicatorsElement=t(this._element).find(p.INDICATORS)[0],this._addEventListeners()}return l.prototype.next=function(){this._isSliding||this._slide(u.NEXT)},l.prototype.nextWhenVisible=function(){document.hidden||this.next()},l.prototype.prev=function(){this._isSliding||this._slide(u.PREV)},l.prototype.pause=function(e){e||(this._isPaused=!0),t(this._element).find(p.NEXT_PREV)[0]&&r.supportsTransitionEnd()&&(r.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},l.prototype.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},l.prototype.to=function(e){var n=this;this._activeElement=t(this._element).find(p.ACTIVE_ITEM)[0];var i=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)t(this._element).one(d.SLID,function(){return n.to(e)});else{if(i===e)return this.pause(),void this.cycle();var o=e>i?u.NEXT:u.PREV;this._slide(o,this._items[e])}},l.prototype.dispose=function(){t(this._element).off(a),t.removeData(this._element,s),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},l.prototype._getConfig=function(n){return n=t.extend({},h,n),r.typeCheckConfig(e,n,c),n},l.prototype._addEventListeners=function(){var e=this;this._config.keyboard&&t(this._element).on(d.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&(t(this._element).on(d.MOUSEENTER,function(t){return e.pause(t)}).on(d.MOUSELEAVE,function(t){return e.cycle(t)}),"ontouchstart"in document.documentElement&&t(this._element).on(d.TOUCHEND,function(){e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},500+e._config.interval)}))},l.prototype._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next();break;default:return}},l.prototype._getItemIndex=function(e){return this._items=t.makeArray(t(e).parent().find(p.ITEM)),this._items.indexOf(e)},l.prototype._getItemByDirection=function(t,e){var n=t===u.NEXT,i=t===u.PREV,o=this._getItemIndex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;var s=(o+(t===u.PREV?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},l.prototype._triggerSlideEvent=function(e,n){var i=this._getItemIndex(e),o=this._getItemIndex(t(this._element).find(p.ACTIVE_ITEM)[0]),r=t.Event(d.SLIDE,{relatedTarget:e,direction:n,from:o,to:i});return t(this._element).trigger(r),r},l.prototype._setActiveIndicatorElement=function(e){if(this._indicatorsElement){t(this._indicatorsElement).find(p.ACTIVE).removeClass(f.ACTIVE);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&t(n).addClass(f.ACTIVE)}},l.prototype._slide=function(e,n){var i=this,o=t(this._element).find(p.ACTIVE_ITEM)[0],s=this._getItemIndex(o),a=n||o&&this._getItemByDirection(e,o),l=this._getItemIndex(a),h=Boolean(this._interval),c=void 0,_=void 0,g=void 0;if(e===u.NEXT?(c=f.LEFT,_=f.NEXT,g=u.LEFT):(c=f.RIGHT,_=f.PREV,g=u.RIGHT),a&&t(a).hasClass(f.ACTIVE))this._isSliding=!1;else if(!this._triggerSlideEvent(a,g).isDefaultPrevented()&&o&&a){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(a);var m=t.Event(d.SLID,{relatedTarget:a,direction:g,from:s,to:l});r.supportsTransitionEnd()&&t(this._element).hasClass(f.SLIDE)?(t(a).addClass(_),r.reflow(a),t(o).addClass(c),t(a).addClass(c),t(o).one(r.TRANSITION_END,function(){t(a).removeClass(c+" "+_).addClass(f.ACTIVE),t(o).removeClass(f.ACTIVE+" "+_+" "+c),i._isSli
vendor: 9,715 bytes, line 311
311ding=!1,setTimeout(function(){return t(i._element).trigger(m)},0)}).emulateTransitionEnd(600)):(t(o).removeClass(f.ACTIVE),t(a).addClass(f.ACTIVE),this._isSliding=!1,t(this._element).trigger(m)),h&&this.cycle()}},l._jQueryInterface=function(e){return this.each(function(){var n=t(this).data(s),o=t.extend({},h,t(this).data());"object"===(void 0===e?"undefined":i(e))&&t.extend(o,e);var r="string"==typeof e?e:o.slide;if(n||(n=new l(this,o),t(this).data(s,n)),"number"==typeof e)n.to(e);else if("string"==typeof r){if(void 0===n[r])throw new Error('No method named "'+r+'"');n[r]()}else o.interval&&(n.pause(),n.cycle())})},l._dataApiClickHandler=function(e){var n=r.getSelectorFromElement(this);if(n){var i=t(n)[0];if(i&&t(i).hasClass(f.CAROUSEL)){var o=t.extend({},t(i).data(),t(this).data()),a=this.getAttribute("data-slide-to");a&&(o.interval=!1),l._jQueryInterface.call(t(i),o),a&&t(i).data(s).to(a),e.preventDefault()}}},o(l,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return h}}]),l}();t(document).on(d.CLICK_DATA_API,p.DATA_SLIDE,_._dataApiClickHandler),t(window).on(d.LOAD_DATA_API,function(){t(p.DATA_RIDE).each(function(){var e=t(this);_._jQueryInterface.call(e,e.data())})}),t.fn[e]=_._jQueryInterface,t.fn[e].Constructor=_,t.fn[e].noConflict=function(){return t.fn[e]=l,_._jQueryInterface}}(jQuery),function(t){var e="collapse",s="bs.collapse",a=t.fn[e],l={toggle:!0,parent:""},h={toggle:"boolean",parent:"string"},c={SHOW:"show.bs.collapse",SHOWN:"shown.bs.collapse",HIDE:"hide.bs.collapse",HIDDEN:"hidden.bs.collapse",CLICK_DATA_API:"click.bs.collapse.data-api"},u={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},d={WIDTH:"width",HEIGHT:"height"},f={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},p=function(){function a(e,i){n(this,a),this._isTransitioning=!1,this._element=e,this._config=this._getConfig(i),this._triggerArray=t.makeArray(t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var o=t(f.DATA_TOGGLE),s=0;s<o.length;s++){var l=o[s],h=r.getSelectorFromElement(l);null!==h&&t(h).filter(e).length>0&&this._triggerArray.push(l)}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}return a.prototype.toggle=function(){t(this._element).hasClass(u.SHOW)?this.hide():this.show()},a.prototype.show=function(){var e=this;if(!this._isTransitioning&&!t(this._element).hasClass(u.SHOW)){var n=void 0,i=void 0;if(this._parent&&((n=t.makeArray(t(this._parent).children().children(f.ACTIVES))).length||(n=null)),!(n&&(i=t(n).data(s))&&i._isTransitioning)){var o=t.Event(c.SHOW);if(t(this._element).trigger(o),!o.isDefaultPrevented()){n&&(a._jQueryInterface.call(t(n),"hide"),i||t(n).data(s,null));var l=this._getDimension();t(this._element).removeClass(u.COLLAPSE).addClass(u.COLLAPSING),this._element.style[l]=0,this._triggerArray.length&&t(this._triggerArray).removeClass(u.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var h=function(){t(e._element).removeClass(u.COLLAPSING).addClass(u.COLLAPSE).addClass(u.SHOW),e._element.style[l]="",e.setTransitioning(!1),t(e._element).trigger(c.SHOWN)};if(r.supportsTransitionEnd()){var d="scroll"+(l[0].toUpperCase()+l.slice(1));t(this._element).one(r.TRANSITION_END,h).emulateTransitionEnd(600),this._element.style[l]=this._element[d]+"px"}else h()}}}},a.prototype.hide=function(){var e=this;if(!this._isTransitioning&&t(this._element).hasClass(u.SHOW)){var n=t.Event(c.HIDE);if(t(this._element).trigger(n),!n.isDefaultPrevented()){var i=this._getDimension();if(this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",r.reflow(this._element),t(this._element).addClass(u.COLLAPSING).removeClass(u.COLLAPSE).removeClass(u.SHOW),this._triggerArray.length)for(var o=0;o<this._triggerArray.length;o++){var s=this._triggerArray[o],a=r.getSelectorFromElement(s);null!==a&&(t(a).hasClass(u.SHOW)||t(s).addClass(u.COLLAPSED).attr("aria-expanded",!1))}this.setTransitioning(!0);var l=function(){e.setTransitioning(!1),t(e._element).removeClass(u.COLLAPSING).addClass(u.COLLAPSE).trigger(c.HIDDEN)};this._element.style[i]="",r.supportsTransitionEnd()?t(this._element).one(r.TRANSITION_END,l).emulateTransitionEnd(600):l()}}},a.prototype.setTransitioning=function(t){this._isTransitioning=t},a.prototype.dispose=function(){t.removeData(this._element,s),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},a.prototype._getConfig=function(n){return n=t.extend({},l,n),n.toggle=Boolean(n.toggle),r.typeCheckConfig(e,n,h),n},a.prototype._getDimension=function(){return t(this._element).hasClass(d.WIDTH)?d.WIDTH:d.HEIGHT},a.prototype._getParent=function(){var e=this,n=t(this._config.parent)[0],i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return t(n).find(i).each(function(t,n){e._addAriaAndCollapsedClass(a._getTargetFromElement(n),[n])}),n},a.prototype._addAriaAndCollapsedClass=function(e,n){if(e){var i=t(e).hasClass(u.SHOW);n.length&&t(n).toggleClass(u.COLLAPSED,!i).attr("aria-expanded",i)}},a._getTargetFromElement=function(e){var n=r.getSelectorFromElement(e);return n?t(n)[0]:null},a._jQueryInterface=function(e){return this.each(function(){var n=t(this),o=n.data(s),r=t.extend({},l,n.data(),"object"===(void 0===e?"undefined":i(e))&&e);if(!o&&r.toggle&&/show|hide/.test(e)&&(r.toggle=!1),o||(o=new a(this,r),n.data(s,o)),"string"==typeof e){if(void 0===o[e])throw new Error('No method named "'+e+'"');o[e]()}})},o(a,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return l}}]),a}();t(document).on(c.CLICK_DATA_API,f.DATA_TOGGLE,function(e){/input|textarea/i.test(e.target.tagName)||e.preventDefault();var n=t(this),i=r.getSelectorFromElement(this);t(i).each(function(){var e=t(this),i=e.data(s)?"toggle":n.data();p._jQueryInterface.call(e,i)})}),t.fn[e]=p._jQueryInterface,t.fn[e].Constructor=p,t.fn[e].noConflict=function(){return t.fn[e]=a,p._jQueryInterface}}(jQuery),function(t){if("undefined"==typeof Popper)throw new Error("Bootstrap dropdown require Popper.js (https://popper.js.org)");var e="dropdown",s="bs.dropdown",a="."+s,l=t.fn[e],h=new RegExp("38|40|27"),c={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,CLICK:"click"+a,CLICK_DATA_API:"click.bs.dropdown.data-api",KEYDOWN_DATA_API:"keydown.bs.dropdown.data-api",KEYUP_DATA_API:"keyup.bs.dropdown.data-api"},u={DISABLED:"disabled",SHOW:"show",DROPUP:"dropup",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left"},d={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",MENU:".dropdown-menu",NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:".dropdown-menu .dropdown-item:not(.disabled)"},f={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end"},p={placement:f.BOTTOM,offset:0,flip:!0},_={placement:"string",offset:"(number|string)",flip:"boolean"},g=function(){function l(t,e){n(this,l),this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}return l.prototype.toggle=function(){if(!this._element.disabled&&!t(this._element).hasClass(u.DISABLED)){var e=l._getParentFromElement(this._element),n=t(this._menu).hasClass(u.SHOW);if(l._clearMenus(),!n){var i={relatedTarget:this._element},o=t.Event(c.SHOW,i);if(t(e).trigger(o),!o.isDefaultPrevented()){var r=this._element;t(e).hasClass(u.DROPUP)&&(t(this._menu).hasClass(u.MENULEFT)||t(this._menu).hasClass(u.MENURIGHT))&&(r=e),this._popper=new Popper(r,this._menu,this._getPopperConfig()),"ontouchstart"in document.documentElement&&!t(e).closest(d.NAVBAR_NAV).length&&t("body").children().on("mouseover",null,t.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),t(this._menu).toggleClass(u.SHOW),t(e).toggleClass(u.SHOW).trigger(t.Event(c.SHOWN,i))}}}},l.prototype.dispose=function(){t.removeData(this._element,s),t(this._element).off(a),this._element=null,this._menu=null,null!==this._popper&&this._popper.destroy(),this._popper=null},l.prototype.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},l.prototype._addEventListeners=function(){var e=this;t(this._element).on(c.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},l.prototype._getConfig=function(n){var i=t(this._element).data();return void 0!==i.placement&&(i.placement=f[i.placement.toUpperCase()]),n=t.extend({},this.constructor.Default,t(this._element).data(),n),r.typeCheckConfig(e,n,this.constructor.DefaultType),n},l.prototype._getMenuElement=function(){if(!this._menu){var e=l._getParentFromElement(this._element);this._menu=t(e).find(d.MENU)[0]}return this._menu},l.prototype._getPlacement=function(){var e=t(this._element).parent(),n=this._config.placement;return e.hasClass(u.DROPUP)||this._config.placement===f.TOP?(n=f.TOP,t(this._menu).hasClass(u.MENURIGHT)&&(n=f.TOPEND)):t(this._menu).hasClass(u.MENURIGHT)&&(n=f.BOTTOMEND),n},l.prototype._detectNavbar=function(){return t(this._element).closest(".navbar").length>0},l.prototype._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:{offset:this._config.offset},flip:{enabled:this._config.flip}}};return this._inNavbar&&(t.modifiers.applyStyle={enabled:!this._inNavbar}),t},l._jQueryInterface=function(e){return this.each(function(){var n=t(this).data(s),o="object"===(void 0===e?"undefined":i(e))?e:null;if(n||(n=new l(this,o),t(this).data(s,n)),"string"==typeof e){if(void 0===n[e])throw new Error('No method n
311amed "'+e+'"');n[e]()}})},l._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var n=t.makeArray(t(d.DATA_TOGGLE)),i=0;i<n.length;i++){var o=l._getParentFromElement(n[i]),r=t(n[i]).data(s),a={relatedTarget:n[i]};if(r){var h=r._menu;if(t(o).hasClass(u.SHOW)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&t.contains(o,e.target))){var f=t.Event(c.HIDE,a);t(o).trigger(f),f.isDefaultPrevented()||("ontouchstart"in document.documentElement&&t("body").children().off("mouseover",null,t.noop),n[i].setAttribute("aria-expanded","false"),t(h).removeClass(u.SHOW),t(o).removeClass(u.SHOW).trigger(t.Event(c.HIDDEN,a)))}}}},l._getParentFromElement=function(e){var n=void 0,i=r.getSelectorFromElement(e);return i&&(n=t(i)[0]),n||e.parentNode},l._dataApiKeydownHandler=function(e){if(!(!h.test(e.which)||/button/i.test(e.target.tagName)&&32===e.which||/input|textarea/i.test(e.target.tagName)||(e.preventDefault(),e.stopPropagation(),this.disabled||t(this).hasClass(u.DISABLED)))){var n=l._getParentFromElement(this),i=t(n).hasClass(u.SHOW);if((i||27===e.which&&32===e.which)&&(!i||27!==e.which&&32!==e.which)){var o=t(n).find(d.VISIBLE_ITEMS).get();if(o.length){var r=o.indexOf(e.target);38===e.which&&r>0&&r--,40===e.which&&r<o.length-1&&r++,r<0&&(r=0),o[r].focus()}}else{if(27===e.which){var s=t(n).find(d.DATA_TOGGLE)[0];t(s).trigger("focus")}t(this).trigger("click")}}},o(l,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return p}},{key:"DefaultType",get:function(){return _}}]),l}();t(document).on(c.KEYDOWN_DATA_API,d.DATA_TOGGLE,g._dataApiKeydownHandler).on(c.KEYDOWN_DATA_API,d.MENU,g._dataApiKeydownHandler).on(c.CLICK_DATA_API+" "+c.KEYUP_DATA_API,g._clearMenus).on(c.CLICK_DATA_API,d.DATA_TOGGLE,function(e){e.preventDefault(),e.stopPropagation(),g._jQueryInterface.call(t(this),"toggle")}).on(c.CLICK_DATA_API,d.FORM_CHILD,function(t){t.stopPropagation()}),t.fn[e]=g._jQueryInterface,t.fn[e].Constructor=g,t.fn[e].noConflict=function(){return t.fn[e]=l,g._jQueryInterface}}(jQuery),function(t){var e="modal",s=".bs.modal",a=t.fn[e],l={backdrop:!0,keyboard:!0,focus:!0,show:!0},h={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},c={HIDE:"hide.bs.modal",HIDDEN:"hidden.bs.modal",SHOW:"show.bs.modal",SHOWN:"shown.bs.modal",FOCUSIN:"focusin.bs.modal",RESIZE:"resize.bs.modal",CLICK_DISMISS:"click.dismiss.bs.modal",KEYDOWN_DISMISS:"keydown.dismiss.bs.modal",MOUSEUP_DISMISS:"mouseup.dismiss.bs.modal",MOUSEDOWN_DISMISS:"mousedown.dismiss.bs.modal",CLICK_DATA_API:"click.bs.modal.data-api"},u={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},d={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},f=function(){function a(e,i){n(this,a),this._config=this._getConfig(i),this._element=e,this._dialog=t(e).find(d.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}return a.prototype.toggle=function(t){return this._isShown?this.hide():this.show(t)},a.prototype.show=function(e){var n=this;if(!this._isTransitioning){r.supportsTransitionEnd()&&t(this._element).hasClass(u.FADE)&&(this._isTransitioning=!0);var i=t.Event(c.SHOW,{relatedTarget:e});t(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),t(document.body).addClass(u.OPEN),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on(c.CLICK_DISMISS,d.DATA_DISMISS,function(t){return n.hide(t)}),t(this._dialog).on(c.MOUSEDOWN_DISMISS,function(){t(n._element).one(c.MOUSEUP_DISMISS,function(e){t(e.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return n._showElement(e)}))}},a.prototype.hide=function(e){var n=this;if(e&&e.preventDefault(),!this._isTransitioning&&this._isShown){var i=r.supp
vendor: 5,679 bytes, line 311
311ortsTransitionEnd()&&t(this._element).hasClass(u.FADE);i&&(this._isTransitioning=!0);var o=t.Event(c.HIDE);t(this._element).trigger(o),this._isShown&&!o.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),this._setResizeEvent(),t(document).off(c.FOCUSIN),t(this._element).removeClass(u.SHOW),t(this._element).off(c.CLICK_DISMISS),t(this._dialog).off(c.MOUSEDOWN_DISMISS),i?t(this._element).one(r.TRANSITION_END,function(t){return n._hideModal(t)}).emulateTransitionEnd(300):this._hideModal())}},a.prototype.dispose=function(){t.removeData(this._element,"bs.modal"),t(window,document,this._element,this._backdrop).off(s),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},a.prototype.handleUpdate=function(){this._adjustDialog()},a.prototype._getConfig=function(n){return n=t.extend({},l,n),r.typeCheckConfig(e,n,h),n},a.prototype._showElement=function(e){var n=this,i=r.supportsTransitionEnd()&&t(this._element).hasClass(u.FADE);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,i&&r.reflow(this._element),t(this._element).addClass(u.SHOW),this._config.focus&&this._enforceFocus();var o=t.Event(c.SHOWN,{relatedTarget:e}),s=function(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,t(n._element).trigger(o)};i?t(this._dialog).one(r.TRANSITION_END,s).emulateTransitionEnd(300):s()},a.prototype._enforceFocus=function(){var e=this;t(document).off(c.FOCUSIN).on(c.FOCUSIN,function(n){document===n.target||e._element===n.target||t(e._element).has(n.target).length||e._element.focus()})},a.prototype._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?t(this._element).on(c.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||t(this._element).off(c.KEYDOWN_DISMISS)},a.prototype._setResizeEvent=function(){var e=this;this._isShown?t(window).on(c.RESIZE,function(t){return e.handleUpdate(t)}):t(window).off(c.RESIZE)},a.prototype._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){t(document.body).removeClass(u.OPEN),e._resetAdjustments(),e._resetScrollbar(),t(e._element).trigger(c.HIDDEN)})},a.prototype._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},a.prototype._showBackdrop=function(e){var n=this,i=t(this._element).hasClass(u.FADE)?u.FADE:"";if(this._isShown&&this._config.backdrop){var o=r.supportsTransitionEnd()&&i;if(this._backdrop=document.createElement("div"),this._backdrop.className=u.BACKDROP,i&&t(this._backdrop).addClass(i),t(this._backdrop).appendTo(document.body),t(this._element).on(c.CLICK_DISMISS,function(t){n._ignoreBackdropClick?n._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===n._config.backdrop?n._element.focus():n.hide())}),o&&r.reflow(this._backdrop),t(this._backdrop).addClass(u.SHOW),!e)return;if(!o)return void e();t(this._backdrop).one(r.TRANSITION_END,e).emulateTransitionEnd(150)}else if(!this._isShown&&this._backdrop){t(this._backdrop).removeClass(u.SHOW);var s=function(){n._removeBackdrop(),e&&e()};r.supportsTransitionEnd()&&t(this._element).hasClass(u.FADE)?t(this._backdrop).one(r.TRANSITION_END,s).emulateTransitionEnd(150):s()}else e&&e()},a.prototype._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},a.prototype._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},a.prototype._checkScrollbar=function(){this._isBodyOverflowing=document.body.clientWidth<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},a.prototype._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){t(d.FIXED_CONTENT).each(function(n,i){var o=t(i)[0].style.paddingRight,r=t(i).css("padding-right");t(i).data("padding-right",o).css("padding-right",parseFloat(r)+e._scrollbarWidth+"px")}),t(d.NAVBAR_TOGGLER).each(function(n,i){var o=t(i)[0].style.marginRight,r=t(i).css("margin-right");t(i).data("margin-right",o).css("margin-right",parseFloat(r)+e._scrollbarWidth+"px")});var n=document.body.style.paddingRight,i=t("body").css("padding-right");t("body").data("padding-right",n).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}},a.prototype._resetScrollbar=function(){t(d.FIXED_CONTENT).each(function(e,n){var i=t(n).data("padding-right");void 0!==i&&t(n).css("padding-right",i).removeData("padding-right")}),t(d.NAVBAR_TOGGLER).each(function(e,n){var i=t(n).data("margin-right");void 0!==i&&t(n).css("margin-right",i).removeData("margin-right")});var e=t("body").data("padding-right");void 0!==e&&t("body").css("padding-right",e).removeData("padding-right")},a.prototype._getScrollbarWidth=function(){var t=document.createElement("div");t.className=u.SCROLLBAR_MEASURER,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},a._jQueryInterface=function(e,n){return this.each(function(){var o=t(this).data("bs.modal"),r=t.extend({},a.Default,t(this).data(),"object"===(void 0===e?"undefined":i(e))&&e);if(o||(o=new a(this,r),t(this).data("bs.modal",o)),"string"==typeof e){if(void 0===o[e])throw new Error('No method n
311amed "'+e+'"');o[e](n)}else r.show&&o.show(n)})},o(a,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return l}}]),a}();t(document).on(c.CLICK_DATA_API,d.DATA_TOGGLE,function(e){var n=this,i=void 0,o=r.getSelectorFromElement(this);o&&(i=t(o)[0]);var s=t(i).data("bs.modal")?"toggle":t.extend({},t(i).data(),t(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var a=t(i).one(c.SHOW,function(e){e.isDefaultPrevented()||a.one(c.HIDDEN,function(){t(n).is(":visible")&&n.focus()})});f._jQueryInterface.call(t(i),s,this)}),t.fn[e]=f._jQueryInterface,t.fn[e].Constructor=f,t.fn[e].noConflict=function(){return t.fn[e]=a,f._jQueryInterface}}(jQuery),function(t){var e="scrollspy",s=t.fn[e],a={offset:10,method:"auto",target:""},l={offset:"number",method:"string",target:"(string|element)"},h={ACTIVATE:"activate.bs.scrollspy",SCROLL:"scroll.bs.scrollspy",LOAD_DATA_API:"load.bs.scrollspy.data-api"},c={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},u={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},d={OFFSET:"offset",POSITION:"position"},f=function(){function s(e,i){var o=this;n(this,s),this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(i),this._selector=this._config.target+" "+u.NAV_LINKS+","+this._config.target+" "+u.LIST_ITEMS+","+this._config.target+" "+u.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(h.SCROLL,function(t){return o._process(t)}),this.refresh(),this._process()}return s.prototype.refresh=function(){var e=this,n=this._scrollElement!==this._scrollElement.window?d.POSITION:d.OFFSET,i="auto"===this._config.method?n:this._config.method,o=i===d.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),t.makeArray(t(this._selector)).map(function(e){var n=void 0,s=r.getSelectorFromElement(e);if(s&&(n=t(s)[0]),n){var a=n.getBoundingClientRect();if(a.width||a.height)return[t(n)[i]().top+o,s]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},s.prototype.dispose=function(){t.removeData(this._element,"bs.scrollspy"),t(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},s.prototype._getConfig=function(n){if("string"!=typeof(n=t.extend({},a,n)).target){var i=t(n.target).attr("id");i||(i=r.getUID(e),t(n.target).attr("id",i)),n.target="#"+i}return r.typeCheckConfig(e,n,l),n},s.prototype._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},s.prototype._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},s.prototype._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},s.prototype._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;)this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(void 0===this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}},s.prototype._activate=function(e){this._activeTarget=e,this._clear();var n=this._selector.split(",");n=n.map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'});var i=t(n.join(","));
vendor: 3,542 bytes, line 311
311i.hasClass(c.DROPDOWN_ITEM)?(i.closest(u.DROPDOWN).find(u.DROPDOWN_TOGGLE).addClass(c.ACTIVE),i.addClass(c.ACTIVE)):(i.addClass(c.ACTIVE),i.parents(u.NAV_LIST_GROUP).prev(u.NAV_LINKS+", "+u.LIST_ITEMS).addClass(c.ACTIVE)),t(this._scrollElement).trigger(h.ACTIVATE,{relatedTarget:e})},s.prototype._clear=function(){t(this._selector).filter(u.ACTIVE).removeClass(c.ACTIVE)},s._jQueryInterface=function(e){return this.each(function(){var n=t(this).data("bs.scrollspy"),o="object"===(void 0===e?"undefined":i(e))&&e;if(n||(n=new s(this,o),t(this).data("bs.scrollspy",n)),"string"==typeof e){if(void 0===n[e])throw new Error('No method named "'+e+'"');n[e]()}})},o(s,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return a}}]),s}();t(window).on(h.LOAD_DATA_API,function(){for(var e=t.makeArray(t(u.DATA_SPY)),n=e.length;n--;){var i=t(e[n]);f._jQueryInterface.call(i,i.data())}}),t.fn[e]=f._jQueryInterface,t.fn[e].Constructor=f,t.fn[e].noConflict=function(){return t.fn[e]=s,f._jQueryInterface}}(jQuery),function(t){var e=t.fn.tab,i={HIDE:"hide.bs.tab",HIDDEN:"hidden.bs.tab",SHOW:"show.bs.tab",SHOWN:"shown.bs.tab",CLICK_DATA_API:"click.bs.tab.data-api"},s={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},a={DROPDOWN:".dropdown",NAV_LIST_GROUP:".nav, .list-group",ACTIVE:".active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},l=function(){function e(t){n(this,e),this._element=t}return e.prototype.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass(s.ACTIVE)||t(this._element).hasClass(s.DISABLED))){var n=void 0,o=void 0,l=t(this._element).closest(a.NAV_LIST_GROUP)[0],h=r.getSelectorFromElement(this._element);l&&(o=t.makeArray(t(l).find(a.ACTIVE)),o=o[o.length-1]);var c=t.Event(i.HIDE,{relatedTarget:this._element}),u=t.Event(i.SHOW,{relatedTarget:o});if(o&&t(o).trigger(c),t(this._element).trigger(u),!u.isDefaultPrevented()&&!c.isDefaultPrevented()){h&&(n=t(h)[0]),this._activate(this._element,l);var d=function(){var n=t.Event(i.HIDDEN,{relatedTarget:e._element}),r=t.Event(i.SHOWN,{relatedTarget:o});t(o).trigger(n),t(e._element).trigger(r)};n?this._activate(n,n.parentNode,d):d()}}},e.prototype.dispose=function(){t.removeData(this._element,"bs.tab"),this._element=null},e.prototype._activate=function(e,n,i){var o=this,l=t(n).find(a.ACTIVE)[0],h=i&&r.supportsTransitionEnd()&&l&&t(l).hasClass(s.FADE),c=function(){return o._transitionComplete(e,l,h,i)};l&&h?t(l).one(r.TRANSITION_END,c).emulateTransitionEnd(150):c(),l&&t(l).removeClass(s.SHOW)},e.prototype._transitionComplete=function(e,n,i,o){if(n){t(n).removeClass(s.ACTIVE);var l=t(n.parentNode).find(a.DROPDOWN_ACTIVE_CHILD)[0];l&&t(l).removeClass(s.ACTIVE),n.setAttribute("aria-expanded",!1)}if(t(e).addClass(s.ACTIVE),e.setAttribute("aria-expanded",!0),i?(r.reflow(e),t(e).addClass(s.SHOW)):t(e).removeClass(s.FADE),e.parentNode&&t(e.parentNode).hasClass(s.DROPDOWN_MENU)){var h=t(e).closest(a.DROPDOWN)[0];h&&t(h).find(a.DROPDOWN_TOGGLE).addClass(s.ACTIVE),e.setAttribute("aria-expanded",!0)}o&&o()},e._jQueryInterface=function(n){return this.each(function(){var i=t(this),o=i.data("bs.tab");if(o||(o=new e(this),i.data("bs.tab",o)),"string"==typeof n){if(void 0===o[n])throw new Error('No method named "'+n+'"');o[n]()}})},o(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6
vendor: 9,641 bytes, line 311
311"}}]),e}();t(document).on(i.CLICK_DATA_API,a.DATA_TOGGLE,function(e){e.preventDefault(),l._jQueryInterface.call(t(this),"show")}),t.fn.tab=l._jQueryInterface,t.fn.tab.Constructor=l,t.fn.tab.noConflict=function(){return t.fn.tab=e,l._jQueryInterface}}(jQuery),function(t){if("undefined"==typeof Popper)throw new Error("Bootstrap tooltips require Popper.js (https://popper.js.org)");var e="tooltip",s=".bs.tooltip",a=t.fn[e],l=new RegExp("(^|\\s)bs-tooltip\\S+","g"),h={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)"},c={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},u={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip"},d={SHOW:"show",OUT:"out"},f={HIDE:"hide"+s,HIDDEN:"hidden"+s,SHOW:"show"+s,SHOWN:"shown"+s,INSERTED:"inserted"+s,CLICK:"click"+s,FOCUSIN:"focusin"+s,FOCUSOUT:"focusout"+s,MOUSEENTER:"mouseenter"+s,MOUSELEAVE:"mouseleave"+s},p={FADE:"fade",SHOW:"show"},_={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},g={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},m=function(){function a(t,e){n(this,a),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}return a.prototype.enable=function(){this._isEnabled=!0},a.prototype.disable=function(){this._isEnabled=!1},a.prototype.toggleEnabled=function(){this._isEnabled=!this._isEnabled},a.prototype.toggle=function(e){if(e){var n=this.constructor.DATA_KEY,i=t(e.currentTarget).data(n);i||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(t(this.getTipElement()).hasClass(p.SHOW))return void this._leave(null,this);this._enter(null,this)}},a.prototype.dispose=function(){clearTimeout(this._timeout),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},a.prototype.show=function(){var e=this;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");var n=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(n);var i=t.contains(this.element.ownerDocument.documentElement,this.element);if(n.isDefaultPrevented()||!i)return;var o=this.getTipElement(),s=r.getUID(this.constructor.NAME);o.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&t(o).addClass(p.FADE);var l="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,h=this._getAttachment(l);this.addAttachmentClass(h);var c=!1===this.config.container?document.body:t(this.config.container);t(o).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(o).appendTo(c),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Popper(this.element,o,{placement:h,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:_.ARROW}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),t(o).addClass(p.SHOW),"ontouchstart"in document.documentElement&&t("body").children().on("mouseover",null,t.noop);var u=function(){e.config.animation&&e._fixTransition();var n=e._hoverState;e._hoverState=null,t(e.element).trigger(e.constructor.Event.SHOWN),n===d.OUT&&e._leave(null,e)};r.supportsTransitionEnd()&&t(this.tip).hasClass(p.FADE)?t(this.tip).one(r.TRANSITION_END,u).emulateTransitionEnd(a._TRANSITION_DURATION):u()}},a.prototype.hide=function(e){var n=this,i=this.getTipElement(),o=t.Event(this.constructor.Event.HIDE),s=function(){n._hoverState!==d.SHOW&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()};t(this.element).trigger(o),o.isDefaultPrevented()||(t(i).removeClass(p.SHOW),"ontouchstart"in document.documentElement&&t("body").children().off("mouseover",null,t.noop),this._activeTrigger[g.CLICK]=!1,this._activeTrigger[g.FOCUS]=!1,this._activeTrigger[g.HOVER]=!1,r.supportsTransitionEnd()&&t(this.tip).hasClass(p.FADE)?t(i).one(r.TRANSITION_END,s).emulateTransitionEnd(150):s(),this._hoverState="")},a.prototype.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},a.prototype.isWithContent=function(){return Boolean(this.getTitle())},a.prototype.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-tooltip-"+e)},a.prototype.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0]},a.prototype.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(_.TOOLTIP_INNER),this.getTitle()),e.removeClass(p.FADE+" "+p.SHOW)},a.prototype.setElementContent=function(e,n){var o=this.config.html;"object"===(void 0===n?"undefined":i(n))&&(n.nodeType||n.jquery)?o?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text()):e[o?"html":"text"](n)},a.prototype.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},a.prototype._getAttachment=function(t){return c[t.toUpperCase()]},a.prototype._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach(function(n){if("click"===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){return e.toggle(t)});else if(n!==g.MANUAL){var i=n===g.HOVER?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,o=n===g.HOVER?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(i,e.config.selector,function(t){return e._enter(t)}).on(o,e.config.selector,function(t){return e._leave(t)})}t(e.element).closest(".modal").on("hide.bs.modal",function(){return e.hide()})}),this.config.selector?this.config=t.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},a.prototype._fixTitle=function(){var t=i(this.element.getAttribute("data-original-title"));(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},a.prototype._enter=function(e,n){var i=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(i))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusin"===e.type?g.FOCUS:g.HOVER]=!0),t(n.getTipElement()).hasClass(p.SHOW)||n._hoverState===d.SHOW?n._hoverState=d.SHOW:(clearTimeout(n._timeout),n._hoverState=d.SHOW,n.config.delay&&n.config.delay.show?n._timeout=setTimeout(function(){n._hoverState===d.SHOW&&n.show()},n.config.delay.show):n.show())},a.prototype._leave=function(e,n){var i=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(i))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusout"===e.type?g.FOCUS:g.HOVER]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=d.OUT,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout(function(){n._hoverState===d.OUT&&n.hide()},n.config.delay.hide):n.hide())},a.prototype._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},a.prototype._getConfig=function(n){return(n=t.extend({},this.constructor.Default,t(this.element).data(),n)).delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),n.title&&"number"==typeof n.title&&(n.title=n.title.toString()),n.content&&"number"==typeof n.content&&(n.content=n.content.toString()),r.typeCheckConfig(e,n,this.constructor.DefaultType),n},a.prototype._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},a.prototype._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(l);null!==n&&n.length>0&&e.removeClass(n.join(""))},a.prototype._handlePopperPlacementChange=function(t){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},a.prototype._fixTransition=function(){var e=this.getTipElement(),n=this.config.animation;null===e.getAttribute("x-placement")&&(t(e).removeClass(p.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},a._jQueryInterface=function(e){return this.each(function(){var n=t(this).data("bs.tooltip"),o="object"===(void 0===e?"undefined":i(e))&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new a(this,o),t(this).data("bs.tooltip",n)),"string"==typeof e)){if(void 0===n[e])throw new Error('No method named "'+e+'"');n[e]()}})},o(a,null,[{key:"VERSION",get:function(){return"4.0.0-
311alpha.6"}},{key:"Default",get:function(){return u}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return f}},{key:"EVENT_KEY",get:function(){return s}},{key:"DefaultType",get:function(){return h}}]),a}();return t.fn[e]=m._jQueryInterface,t.fn[e].Constructor=m,t.fn[e].noConflict=function(){return t.fn[e]=a,m._jQueryInterface},m}(jQuery));!function(r){var a="popover",l=".bs.popover",h=r.fn[a],c=new RegExp("(^|\\s)bs-popover\\S+","g"),u=r.extend({},s.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),d=r.extend({},s.DefaultType,{content:"(string|element|function)"}),f={FADE:"fade",SHOW:"show"},p={TITLE:".popover-header",CONTENT:".popover-body"},_={HIDE:"hide"+l,HIDDEN:"hidden"+l,SHOW:"show"+l,SHOWN:"shown"+l,INSERTED:"inserted"+l,CLICK:"click"+l,FOCUSIN:"focusin"+l,FOCUSOUT:"focusout"+l,MOUSEENTER:"mouseenter"+l,MOUSELEAVE:"mouseleave"+l},g=function(s){function h(){return n(this,h),t(this,s.apply(this,arguments))}return e(h,s),h.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},h.prototype.addAttachmentClass=function(t){r(this.getTipElement()).addClass("bs-popover-"+t)},h.prototype.getTipElement=function(){return this.tip=this.tip||r(this.config.template)[0]},h.prototype.setContent=function(){var t=r(this.getTipElement());this.setElementContent(t.find(p.TITLE),this.getTitle()),this.setElementContent(t.find(p.CONTENT),this._getContent()),t.removeClass(f.FADE+" "+f.SHOW)},h.prototype._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},h.prototype._cleanTipClass=function(){var t=r(this.getTipElement()),e=t.attr("class").match(c);null!==e&&e.length>0&&t.removeClass(e.join(""))},h._jQueryInterface=function(t){return this.each(function(){var e=r(this).data("bs.popover"),n="object"===(void 0===t?"undefined":i(t))?t:null;if((e||!/destroy|hide/.test(t))&&(e||(e=new h(this,n),r(this).data("bs.popover",e)),"string"==typeof t)){if(void 0===e[t])throw new Error('No method named "'+t+'"');e[t]()}})},o(h,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return u}},{key:"NAME",get:function(){return a}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return _}},{key:"EVENT_KEY",get:function(){return l}},{key:"DefaultType",get:function(){return d}}]),h}(s);r.fn[a]=g._jQueryInterface,r.fn[a].Constructor=g,r.fn[a].noConflict=function(){return r.fn[a]=h,g._jQueryInterface}}(jQuery)}();
312jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,t,a,r,i){return jQuery.easing[jQuery.easing.def](e,t,a,r,i)},easeInQuad:function(e,t,a,r,i){return r*(t/=i)*t+a},easeOutQuad:function(e,t,a,r,i){return-r*(t/=i)*(t-2)+a},easeInOutQuad:function(e,t,a,r,i){return(t/=i/2)<1?r/2*t*t+a:-r/2*(--t*(t-2)-1)+a},easeInCubic:function(e,t,a,r,i){return r*(t/=i)*t*t+a},easeOutCubic:function(e,t,a,r,i){return r*((t=t/i-1)*t*t+1)+a},easeInOutCubic:function(e,t,a,r,i){return(t/=i/2)<1?r/2*t*t*t+a:r/2*((t-=2)*t*t+2)+a},easeInQuart:function(e,t,a,r,i){return r*(t/=i)*t*t*t+a},easeOutQuart:function(e,t,a,r,i){return-r*((t=t/i-1)*t*t*t-1)+a},easeInOutQuart:function(e,t,a,r,i){return(t/=i/2)<1?r/2*t*t*t*t+a:-r/2*((t-=2)*t*t*t-2)+a},easeInQuint:function(e,t,a,r,i){return r*(t/=i)*t*t*t*t+a},easeOutQuint:function(e,t,a,r,i){return r*((t=t/i-1)*t*t*t*t+1)+a},easeInOutQuint:function(e,t,a,r,i){return(t/=i/2)<1?r/2*t*t*t*t*t+a:r/2*((t-=2)*t*t*t*t+2)+a},easeInSine:function(e,t,a,r,i){return-r*Math.cos(t/i*(Math.PI/2))+r+a},easeOutSine:function(e,t,a,r,i){return r*Math.sin(t/i*(Math.PI/2))+a},easeInOutSine:function(e,t,a,r,i){return-r/2*(Math.cos(Math.PI*t/i)-1)+a},easeInExpo:function(e,t,a,r,i){return 0==t?a:r*Math.pow(2,10*(t/i-1))+a},easeOutExpo:function(e,t,a,r,i){return t==i?a+r:r*(-Math.pow(2,-10*t/i)+1)+a},easeInOutExpo:function(e,t,a,r,i){return 0==t?a:t==i?a+r:(t/=i/2)<1?r/2*Math.pow(2,10*(t-1))+a:r/2*(-Math.pow(2,-10*--t)+2)+a},easeInCirc:function(e,t,a,r,i){return-r*(Math.sqrt(1-(t/=i)*t)-1)+a},easeOutCirc:function(e,t,a,r,i){return r*Math.sqrt(1-(t=t/i-1)*t)+a},easeInOutCirc:function(e,t,a,r,i){return(t/=i/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+a:r/2*(Math.sqrt(1-(t-=2)*t)+1)+a},easeInElastic:function(e,t,a,r,i){var n=1.70158,o=0,s=r;if(0==t)return a;
312if(1==(t/=i))return a+r;if(o||(o=.3*i),s<Math.abs(r)){s=r;var n=o/4}else var n=o/(2*Math.PI)*Math.asin(r/s);return-(s*Math.pow(2,10*(t-=1))*Math.sin((t*i-n)*(2*Math.PI)/o))+a},easeOutElastic:function(e,t,a,r,i){var n=1.70158,o=0,s=r;if(0==t)return a;if(1==(t/=i))return a+r;if(o||(o=.3*i),s<Math.abs(r)){s=r;var n=o/4}else var n=o/(2*Math.PI)*Math.asin(r/s);return s*Math.pow(2,-10*t)*Math.sin((t*i-n)*(2*Math.PI)/o)+r+a},easeInOutElastic:function(e,t,a,r,i){var n=1.70158,o=0,s=r;if(0==t)return a;if(2==(t/=i/2))return a+r;if(o||(o=i*(.3*1.5)),s<Math.abs(r)){s=r;var n=o/4}else var n=o/(2*Math.PI)*Math.asin(r/s);return 1>t?-.5*(s*Math.pow(2,10*(t-=1))*Math.sin((t*i-n)*(2*Math.PI)/o))+a:s*Math.pow(2,-10*(t-=1))*Math.sin((t*i-n)*(2*Math.PI)/o)*.5+r+a},easeInBack:function(e,t,a,r,i,n){return void 0==n&&(n=1.70158),r*(t/=i)*t*((n+1)*t-n)+a},easeOutBack:function(e,t,a,r,i,n){return void 0==n&&(n=1.70158),r*((t=t/i-1)*t*((n+1)*t+n)+1)+a},easeInOutBack:function(e,t,a,r,i,n){return void 0==n&&(n=1.70158),(t/=i/2)<1?r/2*(t*t*(((n*=1.525)+1)*t-n))+a:r/2*((t-=2)*t*(((n*=1.525)+1)*t+n)+2)+a},easeInBounce:function(e,t,a,r,i){return r-jQuery.easing.easeOutBounce(e,i-t,0,r,i)+a},easeOutBounce:function(e,t,a,r,i){return(t/=i)<1/2.75?r*(7.5625*t*t)+a:2/2.75>t?r*(7.5625*(t-=1.5/2.75)*t+.75)+a:2.5/2.75>t?r*(7.5625*(t-=2.25/2.75)*t+.9375)+a:r*(7.5625*(t-=2.625/2.75)*t+.984375)+a},easeInOutBounce:function(e,t,a,r,i){return i/2>t?.5*jQuery.easing.easeInBounce(e,2*t,0,r,i)+a:.5*jQuery.easing.easeOutBounce(e,2*t-i,0,r,i)+.5*r+a}}),jQuery.Velocity?console.log("Velocity is already loaded. You may be needlessly importing Velocity again; note that Materialize includes Velocity."):(!function(e){function t(e){var t=e.length,r=a.type(e);return"function"===r||a.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in e}if(!e.jQuery){var a=function(e,t){return new a.fn.init(e,t)};a.isWindow=function(e){return null!=e&&e==e.window},a.type=function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?i[o.call(e)]||"object":typeof e},a.isArray=Array.isArray||function(e){return"array"===a.type(e)},a.isPlainObject=function(e){var t;if(!e||"object"!==a.type(e)||e.nodeType||a.isWindow(e))return!1;try{if(e.constructor&&!n.call(e,"constructor")&&!n.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}for(t in e);return void 0===t||n.call(e,t)},a.each=function(e,a,r){var i,n=0,o=e.length,s=t(e);if(r){if(s)for(;o>n&&(i=a.apply(e[n],r),i!==!1);n++);else for(n in e)if(i=a.apply(e[n],r),i===!1)break}else if(s)for(;o>n&&(i=a.call(e[n],n,e[n]),i!==!1);n++);else for(n in e)if(i=a.call(e[n],n,e[n]),i===!1)break;return e},a.data=function(e,t,i){if(void 0===i){var n=e[a.expando],o=n&&r[n];if(void 0===t)return o;if(o&&t in o)return o[t]}else if(void 0!==t){var n=e[a.expando]||(e[a.expando]=++a.uuid);return r[n]=r[n]||{},r[n][t]=i,i}},a.removeData=function(e,t){var i=e[a.expando],n=i&&r[i];n&&a.each(t,function(e,t){delete n[t]})},a.extend=function(){var e,t,r,i,n,o,s=arguments[0]||{},l=1,u=arguments.length,d=!1;for("boolean"==typeof s&&(d=s,s=arguments[l]||{},l++),"object"!=typeof s&&"function"!==a.type(s)&&(s={}),l===u&&(s=this,l--);u>l;l++)if(null!=(n=arguments[l]))for(i in n)e=s[i],r=n[i],s!==r&&(d&&r&&(a.isPlainObject(r)||(t=a.isArray(r)))?(t?(t=!1,o=e&&a.isArray(e)?e:[]):o=e&&a.isPlainObject(e)?e:{},s[i]=a.extend(d,o,r)):void 0!==r&&(s[i]=r));return s},a.queue=function(e,r,i){function n(e,a){var r=a||[];return null!=e&&(t(Object(e))?!function(e,t){for(var a=+t.length,r=0,i=e.length;a>r;)e[i++]=t[r++];if(a!==a)for(;void 0!==t[r];)e[i++]=t[r++];return e.length=i,e}(r,"string"==typeof e?[e]:e):[].push.call(r,e)),r}if(e){r=(r||"fx")+"queue";var o=a.data(e,r);return i?(!o||a.isArray(i)?o=a.data(e,r,n(i)):o.push(i),o):o||[]}},a.dequeue=function(e,t){a.each(e.nodeType?[e]:e,function(e,r){t=t||"fx";var i=a.queue(r,t),n=i.shift();"inprogress"===n&&(n=i.shift()),n&&("fx"===t&&i.unshift("inprogress"),n.call(r,function(){a.dequeue(r,t)}))})},a.fn=a.prototype={init:function(e){if(e.nodeType)return this[0]=e,this;throw new Error("Not a DOM node.")},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(e.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left
vendor: 28,696 bytes, lines 312-313
312:t.left+(e.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function e(){for(var e=this.offsetParent||document;e&&"html"===!e.nodeType.toLowerCase&&"static"===e.style.position;)e=e.offsetParent;return e||document}var t=this[0],e=e.apply(t),r=this.offset(),i=/^(?:body|html)$/i.test(e.nodeName)?{top:0,left:0}:a(e).offset();return r.top-=parseFloat(t.style.marginTop)||0,r.left-=parseFloat(t.style.marginLeft)||0,e.style&&(i.top+=parseFloat(e.style.borderTopWidth)||0,i.left+=parseFloat(e.style.borderLeftWidth)||0),{top:r.top-i.top,left:r.left-i.left}}};var r={};a.expando="velocity"+(new Date).getTime(),a.uuid=0;for(var i={},n=i.hasOwnProperty,o=i.toString,s="Boolean Number String Function Array Date RegExp Object Error".split(" "),l=0;l<s.length;l++)i["[object "+s[l]+"]"]=s[l].toLowerCase();a.fn.init.prototype=a.fn,e.Velocity={Utilities:a}}}(window),function(e){"object"==typeof module&&"object"==typeof module.exports?module.exports=e():"function"==typeof define&&define.amd?define(e):e()}(function(){return function(e,t,a,r){function i(e){for(var t=-1,a=e?e.length:0,r=[];++t<a;){var i=e[t];i&&r.push(i)}return r}function n(e){return p.isWrapped(e)?e=[].slice.call(e):p.isNode(e)&&(e=[e]),e}function o(e){var t=f.data(e,"velocity");return null===t?r:t}function s(e){return function(t){return Math.round(t*e)*(1/e)}}function l(e,a,r,i){function n(e,t){return 1-3*t+3*e}function o(e,t){return 3*t-6*e}function s(e){return 3*e}function l(e,t,a){return((n(t,a)*e+o(t,a))*e+s(t))*e}function u(e,t,a){return 3*n(t,a)*e*e+2*o(t,a)*e+s(t)}function d(t,a){for(var i=0;p>i;++i){var n=u(a,e,r);if(0===n)return a;var o=l(a,e,r)-t;a-=o/n}return a}function c(){for(var t=0;y>t;++t)S[t]=l(t*x,e,r)}function f(t,a,i){var n,o,s=0;do o=a+(i-a)/2,n=l(o,e,r)-t,n>0?i=o:a=o;while(Math.abs(n)>m&&++s<b);return o}function h(t){for(var a=0,i=1,n=y-1;i!=n&&S[i]<=t;++i)a+=x;--i;var o=(t-S[i])/(S[i+1]-S[i]),s=a+o*x,l=u(s,e,r);return l>=g?d(t,s):0==l?s:f(t,a,a+x)}function v(){C=!0,(e!=a||r!=i)&&c()}var p=4,g=.001,m=1e-7,b=10,y=11,x=1/(y-1),w="Float32Array"in t;if(4!==arguments.length)return!1;for(var k=0;4>k;++k)if("number"!=typeof arguments[k]||isNaN(arguments[k])||!isFinite(arguments[k]))return!1;e=Math.min(e,1),r=Math.min(r,1),e=Math.max(e,0),r=Math.max(r,0);var S=w?new Float32Array(y):new Array(y),C=!1,M=function(t){return C||v(),e===a&&r===i?t:0===t?0:1===t?1:l(h(t),a,i)};M.getControlPoints=function(){return[{x:e,y:a},{x:r,y:i}]};var P="generateBezier("+[e,a,r,i]+")";return M.toString=function(){return P},M}function u(e,t){var a=e;return p.isString(e)?y.Easings[e]||(a=!1):a=p.isArray(e)&&1===e.length?s.apply(null,e):p.isArray(e)&&2===e.length?x.apply(null,e.concat([t])):p.isArray(e)&&4===e.length?l.apply(null,e):!1,a===!1&&(a=y.Easings[y.defaults.easing]?y.defaults.easing:b),a}function d(e){if(e){var t=(new Date).getTime(),a=y.State.calls.length;a>1e4&&(y.State.calls=i(y.State.calls));for(var n=0;a>n;n++)if(y.State.calls[n]){var s=y.State.calls[n],l=s[0],u=s[2],h=s[3],v=!!h,g=null;h||(h=y.State.calls[n][3]=t-16);for(var m=Math.min((t-h)/u.duration,1),b=0,x=l.length;x>b;b++){var k=l[b],C=k.element;if(o(C)){var M=!1;if(u.display!==r&&null!==u.display&&"none"!==u.display){if("flex"===u.display){var P=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];f.each(P,function(e,t){w.setPropertyValue(C,"display",t)})}w.setPropertyValue(C,"display",u.display)}u.visibility!==r&&"hidden"!==u.visibility&&w.setPropertyValue(C,"visibility",u.visibility);for(var A in k)if("element"!==A){var I,_=k[A],T=p.isString(_.easing)?y.Easings[_.easing]:_.easing;if(1===m)I=_.endValue;else{var D=_.endValue-_.startValue;if(I=_.startValue+D*T(m,u,D),!v&&I===_.currentValue)continue}if(_.currentValue=I,"tween"===A)g=I;else{if(w.Hooks.registered[A]){var V=w.Hooks.getRoot(A),F=o(C).rootPropertyValueCache[V];F&&(_.rootPropertyValue=F)}var L=w.setPropertyValue(C,A,_.currentValue+(0===parseFloat(I)?"":_.unitType),_.rootPropertyValue,_.scrollData);w.Hooks.registered[A]&&(o(C).rootPropertyValueCache[V]=w.Normalizations.registered[V]?w.Normalizations.registered[V]("extract",null,L[1]):L[1]),"transform"===L[0]&&(M=!0)}}u.mobileHA&&o(C).transformCache.translate3d===r&&(o(C).transformCache.translate3d="(0px, 0px, 0px)",M=!0),M&&w.flushTransformCache(C)}}u.display!==r&&"none"!==u.display&&(y.State.calls[n][2].display=!1),u.visibility!==r&&"hidden"!==u.visibility&&(y.State.calls[n][2].visibility=!1),u.progress&&u.progress.call(s[1],s[1],m,Math.max(0,h+u.duration-t),h,g),1===m&&c(n)}}y.State.isTicking&&S(d)}function c(e,t){if(!y.State.calls[e])return!1;for(var a=y.State.calls[e][0],i=y.State.calls[e][1],n=y.State.calls[e][2],s=y.State.calls[e][4],l=!1,u=0,d=a.length;d>u;u++){var c=a[u].element;if(t||n.loop||("none"===n.display&&w.setPropertyValue(c,"display",n.display),"hidden"===n.visibility&&w.setPropertyValue(c,"visibility",n.visibility)),n.loop!==!0&&(f.queue(c)[1]===r||!/\.velocityQueueEntryFlag/i.test(f.queue(c)[1]))&&o(c)){o(c).isAnimating=!1,o(c).rootPropertyValueCache={};var h=!1;f.each(w.Lists.transforms3D,function(e,t){var a=/^scale/.test(t)?1:0,i=o(c).transformCache[t];o(c).transformCache[t]!==r&&new RegExp("^\\("+a+"[^.]").test(i)&&(h=!0,delete o(c).transformCache[t])}),n.mobileHA&&(h=!0,delete o(c).transformCache.translate3d),h&&w.flushTransformCache(c),w.Values.removeClass(c,"velocity-animating")}if(!t&&n.complete&&!n.loop&&u===d-1)try{n.complete.call(i,i)}catch(v){setTimeout(function(){throw v},1)}s&&n.loop!==!0&&s(i),o(c)&&n.loop===!0&&!t&&(f.each(o(c).tweensContainer,function(e,t){/^rotate/.test(e)&&360===parseFloat(t.endValue)&&(t.endValue=0,t.startValue=360),/^backgroundPosition/.test(e)&&100===parseFloat(t.endValue)&&"%"===t.unitType&&(t.endValue=0,t.startValue=100)}),y(c,"reverse",{loop:!0,delay:n.delay})),n.queue!==!1&&f.dequeue(c,n.queue)}y.State.calls[e]=!1;for(var p=0,g=y.State.calls.length;g>p;p++)if(y.State.calls[p]!==!1){l=!0;break}l===!1&&(y.State.isTicking=!1,delete y.State.calls,y.State.calls=[])}var f,h=function(){if(a.documentMode)return a.documentMode;for(var e=7;e>4;e--){var t=a.createElement("div");if(t.innerHTML="<!--[if IE "+e+"]><span></span><![endif]-->",t.getElementsByTagName("span").length)return t=null,e}return r}(),v=function(){var e=0;return t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(t){var a,r=(new Date).getTime();return a=Math.max(0,16-(r-e)),e=r+a,setTimeout(function(){t(r+a)},a)}}(),p={isString:function(e){return"string"==typeof e},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},isNode:function(e){return e&&e.nodeType},isNodeList:function(e){return"object"==typeof e&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(e))&&e.length!==r&&(0===e.length||"object"==typeof e[0]&&e[0].nodeType>0)},isWrapped:function(e){return e&&(e.jquery||t.Zepto&&t.Zepto.zepto.isZ(e))},isSVG:function(e){return t.SVGElement&&e instanceof t.SVGElement},isEmptyObject:function(e){for(var t in e)return!1;return!0}},g=!1;if(e.fn&&e.fn.jquery?(f=e,g=!0):f=t.Velocity.Utilities,8>=h&&!g)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(7>=h)return void(jQuery.fn.velocity=jQuery.fn.animate);var m=400,b="swing",y={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:t.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:a.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:f,Redirects:{},Easings:{},Promise:t.Promise,defaults:{queue:"",duration:m,easing:b,begin:r,complete:r,progress:r,display:r,visibility:r,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(e){f.data(e,"velocity",{isSVG:p.isSVG(e),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};t.pageYOffset!==r?(y.State.scrollAnchor=t,y.State.scrollPropertyLeft="pageXOffset",y.State.scrollPropertyTop="pageYOffset"):(y.State.scrollAnchor=a.documentElement||a.body.parentNode||a.body,y.State.scrollPropertyLeft="scrollLeft",y.State.scrollPropertyTop="scrollTop");var x=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,a,r){var i={x:t.x+r.dx*a,v:t.v+r.dv*a,tension:t.tension,friction:t.friction};return{dx:i.v,dv:e(i)}}function a(a,r){var i={dx:a.v,dv:e(a)},n=t(a,.5*r,i),o=t(a,.5*r,n),s=t(a,r,o),l=1/6*(i.dx+2*(n.dx+o.dx)+s.dx),u=1/6*(i.dv+2*(n.dv+o.dv)+s.dv);return a.x=a.x+l*r,a.v=a.v+u*r,a}return function r(e,t,i){var n,o,s,l={x:-1,v:0,tension:null,friction:null},u=[0],d=0,c=1e-4,f=.016;for(e=parseFloat(e)||500,t=parseFloat(t)||20,i=i||null,l.tension=e,l.friction=t,n=null!==i,n?(d=r(e,t),o=d/i*f):o=f;s=a(s||l,o),u.push(1+s.x),d+=16,Math.abs(s.x)>c&&Math.abs(s.v)>c;);return n?function(e){return u[e*(u.length-1)|0]}:d}}();y.Easings={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)}},f.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(e,t){y.Easings[t[0]]=l.apply(null,t[1])});var w=y.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var e=0;e<w.Lists.colors.length;e++){var t="color"===w.Lists.colors[e]?"0 0 0 1":"255 255 255 1";w.Hooks.templates[w.Lists.colors[e]]=["Red Green Blue Alpha",t]}var a,r,i;if(h)for(a in w.Hooks.templates){r=w.Hooks.templates[a],i=r[0].split(" ");var n=r[1].match(w.RegEx.valueSplit);"Color"===i[0]&&(i.push(i.shift()),n.push(n.shift()),w.Hooks.templates[a]=[i.join(" "),n.join(" ")])}for(a in w.Hooks.templates){r=w.Hooks.templates[a],i=r[0].split(" ");for(var e in i){var o=a+i[e],s=e;w.Hooks.registered[o]=[a,s]}}},getRoot:function(e){var t=w.Hooks.registered[e];return t?t[0]:e},cleanRootPropertyValue:function(e,t){return w.RegEx.valueUnwrap.test(t)&&(t=t.match(w.RegEx.valueUnwrap)[1]),w.Values.isCSSNullValue(t)&&(t=w.Hooks.templates[e][1]),t},extractValue:function(e,t){var a=w.Hooks.registered[e];if(a){var r=a[0],i=a[1];return t=w.Hooks.cleanRootPropertyValue(r,t),t.toString().match(w.RegEx.valueSplit)[i]}return t},injectValue:function(e,t,a){var r=w.Hooks.registered[e];if(r){var i,n,o=r[0],s=r[1];return a=w.Hooks.cleanRootPropertyValue(o,a),i=a.toString().match(w.RegEx.valueSplit),i[s]=t,n=i.join(" ")}return a}},Normalizations:{registered:{clip:function(e,t,a){switch(e){case"name":return"clip";case"extract":var r;return w.RegEx.wrappedValueAlreadyExtracted.test(a)?r=a:(r=a.toString().match(w.RegEx.valueUnwrap),r=r?r[1].replace(/,(\s+)?/g," "):a),r;case"inject":return"rect("+a+")"}},blur:function(e,t,a){switch(e){case"name":return y.State.isFirefox?"filter":"-webkit-filter";case"extract":var r=parseFloat(a);if(!r&&0!==r){var i=a.toString().match(/blur\(([0-9]+[A-z]+)\)/i);r=i?i[1]:0}return r;case"inject":return parseFloat(a)?"blur("+a+")":"none"}},opacity:function(e,t,a){if(8>=h)switch(e){case"name":return"filter";case"extract":var r=a.toString().match(/alpha\(opacity=(.*)\)/i);return a=r?r[1]/100:1;case"inject":return t.style.zoom=1,parseFloat(a)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(a),10)+")"}else switch(e){case"name":return"opacity";case"extract":return a;case"inject":return a}}},register:function(){9>=h||y.State.isGingerbread||(w.Lists.transformsBase=w.Lists.transformsBase.concat(w.Lists.transforms3D));for(var e=0;e<w.Lists.transformsBase.length;e++)!function(){var t=w.Lists.transformsBase[e];w.Normalizations.registered[t]=function(e,a,i){switch(e){case"name":return"transform";case"extract":return o(a)===r||o(a).transformCache[t]===r?/^scale/i.test(t)?1:0:o(a).transformCache[t].replace(/[()]/g,"");case"inject":var n=!1;switch(t.substr(0,t.length-1)){case"translate":n=!/(%|px|em|rem|vw|vh|\d)$/i.test(i);break;case"scal":case"scale":y.State.isAndroid&&o(a).transformCache[t]===r&&1>i&&(i=1),n=!/(\d)$/i.test(i);break;case"skew":n=!/(deg|\d)$/i.test(i);break;case"rotate":n=!/(deg|\d)$/i.test(i)}return n||(o(a).transformCache[t]="("+i+")"),o(a).transformCache[t]}}}();for(var e=0;e<w.Lists.colors.length;e++)!function(){var t=w.Lists.colors[e];w.Normalizations.registered[t]=function(e,a,i){switch(e){case"name":return t;case"extract":var n;if(w.RegEx.wrappedValueAlreadyExtracted.test(i))n=i;else{var o,s={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(i)?o=s[i]!==r?s[i]:s.black:w.RegEx.isHex.test(i)?o="rgb("+w.Values.hexToRgb(i).join(" ")+")":/^rgba?\(/i.test(i)||(o=s.black),n=(o||i).toString().match(w.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return 8>=h||3!==n.split(" ").length||(n+=" 1"),n;case"inject":return 8>=h?4===i.split(" ").length&&(i=i.split(/\s+/).slice(0,3).join(" ")):3===i.split(" ").length&&(i+=" 1"),(8>=h?"rgb":"rgba")+"("+i.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})},SVGAttribute:function(e){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(h||y.State.isAndroid&&!y.State.isChrome)&&(t+="|transform"),new RegExp("^("+t+")$","i").test(e)},prefixCheck:function(e){if(y.State.prefixMatches[e])return[y.State.prefixMatches[e],!0];for(var t=["","Webkit","Moz","ms","O"],a=0,r=t.length;r>a;a++){var i;if(i=0===a?e:t[a]+e.replace(/^\w/,function(e){return e.toUpperCase()}),p.isString(y.State.prefixElement.style[i]))return y.State.prefixMatches[e]=i,[i,!0]}return[e,!1]}},Values:{hexToRgb:function(e){var t,a=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;return e=e.replace(a,function(e,t,a,r){return t+t+a+a+r+r}),t=r.exec(e),t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]},isCSSNullValue:function(e){return 0==e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getDisplayType:function(e){var t=e&&e.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addClass:function(e,t){e.classList?e.classList.add(t):e.className+=(e.className.length?" ":"")+t},removeClass:function(e,t){e.classList?e.classList.remove(t):e.className=e.className.toString().replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(e,a,i,n){function s(e,a){function i(){u&&w.setPropertyValue(e,"display","none")}var l=0;if(8>=h)l=f.css(e,a);else{var u=!1;if(/^(width|height)$/.test(a)&&0===w.getPropertyValue(e,"display")&&(u=!0,w.setPropertyValue(e,"display",w.Values.getDisplayType(e))),!n){if("height"===a&&"border-box"!==w.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var d=e.offsetHeight-(parseFloat(w.getPropertyValue(e,"borderTopWidth"))||0)-(parseFloat(w.getPropertyValue(e,"borderBottomWidth"))||0)-(parseFloat(w.getPropertyValue(e,"paddingTop"))||0)-(parseFloat(w.getPropertyValue(e,"paddingBottom"))||0);return i(),d}if("width"===a&&"border-box"!==w.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var c=e.offsetWidth-(parseFloat(w.getPropertyValue(e,"borderLeftWidth"))||0)-(parseFloat(w.getPropertyValue(e,"borderRightWidth"))||0)-(parseFloat(w.getPropertyValue(e,"paddingLeft"))||0)-(parseFloat(w.getPropertyValue(e,"paddingRight"))||0);return i(),c}}var v;v=o(e)===r?t.getComputedStyle(e,null):o(e).computedStyle?o(e).computedStyle:o(e).computedStyle=t.getComputedStyle(e,null),"borderColor"===a&&(a="borderTopColor"),l=9===h&&"filter"===a?v.getPropertyValue(a):v[a],(""===l||null===l)&&(l=e.style[a]),i()}if("auto"===l&&/^(top|right|bottom|left)$/i.test(a)){var p=s(e,"position");("fixed"===p||"absolute"===p&&/top|left/i.test(a))&&(l=f(e).position()[a]+"px")}return l}var l;if(w.Hooks.registered[a]){var u=a,d=w.Hooks.getRoot(u);i===r&&(i=w.getPropertyValue(e,w.Names.prefixCheck(d)[0])),w.Normalizations.registered[d]&&(i=w.Normalizations.registered[d]("extract",e,i)),l=w.Hooks.extractValue(u,i)}else if(w.Normalizations.registered[a]){var c,v;c=w.Normalizations.registered[a]("name",e),"transform"!==c&&(v=s(e,w.Names.prefixCheck(c)[0]),w.Values.isCSSNullValue(v)&&w.Hooks.templates[a]&&(v=w.Hooks.templates[a][1])),l=w.Normalizations.registered[a]("extract",e,v)}if(!/^[\d-]/.test(l))if(o(e)&&o(e).isSVG&&w.Names.SVGAttribute(a))if(/^(height|width)$/i.test(a))try{l=e.getBBox()[a]}catch(p){l=0}else l=e.getAttribute(a);else l=s(e,w.Names.prefixCheck(a)[0]);return w.Values.isCSSNullValue(l)&&(l=0),y.debug>=2&&console.log("Get "+a+": "+l),l},setPropertyValue:function(e,a,r,i,n){var s=a;if("scroll"===a)n.container?n.container["scroll"+n.direction]=r:"Left"===n.direction?t.scrollTo(r,n.alternateValue):t.scrollTo(n.alternateValue,r);else if(w.Normalizations.registered[a]&&"transform"===w.Normalizations.registered[a]("name",e))w.Normalizations.registered[a]("inject",e,r),s="transform",r=o(e).transformCache[a];else{if(w.Hooks.registered[a]){var l=a,u=w.Hooks.getRoot(a);i=i||w.getPropertyValue(e,u),r=w.Hooks.injectValue(l,r,i),a=u}if(w.Normalizations.registered[a]&&(r=w.Normalizations.registered[a]("inject",e,r),a=w.Normalizations.registered[a]("name",e)),s=w.Names.prefixCheck(a)[0],8>=h)try{e.style[s]=r}catch(d){y.debug&&console.log("Browser does not support ["+r+"] for ["+s+"]")}else o(e)&&o(e).isSVG&&w.Names.SVGAttribute(a)?e.setAttribute(a,r):e.style[s]=r;y.debug>=2&&console.log("Set "+a+" ("+s+"): "+r)}return[s,r]},flushTransformCache:function(e){function t(t){return parseFloat(w.getPropertyValue(e,t))}var a="";if((h||y.State.isAndroid&&!y.State.isChrome)&&o(e).isSVG){var r={translate:[t("translateX"),t("translateY")],skewX:[t("skewX")],skewY:[t("skewY")],scale:1!==t("scale")?[t("scale"),t("scale")]:[t("scaleX"),t("scaleY")],rotate:[t("rotateZ"),0,0]};f.each(o(e).transformCache,function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),r[e]&&(a+=e+"("+r[e].join(" ")+") ",delete r[e])})}else{var i,n;f.each(o(e).transformCache,function(t){return i=o(e).transformCache[t],"transformPerspective"===t?(n=i,!0):(9===h&&"rotateZ"===t&&(t="rotate"),void(a+=t+i+" "))}),n&&(a="perspective"+n+" "+a)}w.setPropertyValue(e,"transform",a)}};w.Hooks.register(),w.Normalizations.register(),y.hook=function(e,t,a){var i=r;return e=n(e),f.each(e,function(e,n){if(o(n)===r&&y.init(n),a===r)i===r&&(i=y.CSS.getPropertyValue(n,t));else{var s=y.CSS.setPropertyValue(n,t,a);"transform"===s[0]&&y.CSS.flushTransformCache(n),i=s}}),i};var k=function(){function e(){return s?A.promise||null:l}function i(){function e(e){function c(e,t){var a=r,i=r,o=r;return p.isArray(e)?(a=e[0],!p.isArray(e[1])&&/^[\d-]/.test(e[1])||p.isFunction(e[1])||w.RegEx.isHex.test(e[1])?o=e[1]:(p.isString(e[1])&&!w.RegEx.isHex.test(e[1])||p.isArray(e[1]))&&(i=t?e[1]:u(e[1],s.duration),e[2]!==r&&(o=e[2]))):a=e,t||(i=i||s.easing),p.isFunction(a)&&(a=a.call(n,C,S)),p.isFunction(o)&&(o=o.call(n,C,S)),[a||0,i,o]}function h(e,t){var a,r;return r=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(e){return a=e,""}),a||(a=w.Values.getUnitType(e)),[r,a]}function m(){var e={myParent:n.parentNode||a.body,position:w.getPropertyValue(n,"position"),fontSize:w.getPropertyValue(n,"fontSize")},r=e.position===L.lastPosition&&e.myParent===L.lastParent,i=e.fontSize===L.lastFontSize;L.lastParent=e.myParent,L.lastPosition=e.position,L.lastFontSize=e.fontSize;var s=100,l={};if(i&&r)l.emToPx=L.lastEmToPx,l.percentToPxWidth=L.lastPercentToPxWidth,l.percentToPxHeight=L.lastPercentToPxHeight;else{var u=o(n).isSVG?a.createElementNS("http://www.w3.org/2000/svg","rect"):a.createElement("div");y.init(u),e.myParent.appendChild(u),f.each(["overflow","overflowX","overflowY"],function(e,t){y.CSS.setPropertyValue(u,t,"hidden")}),y.CSS.setPropertyValue(u,"position",e.position),y.CSS.setPropertyValue(u,"fontSize",e.fontSize),y.CSS.setPropertyValue(u,"boxSizing","content-box"),f.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(e,t){y.CSS.setPropertyValue(u,t,s+"%")}),y.CSS.setPropertyValue(u,"paddingLeft",s+"em"),l.percentToPxWidth=L.lastPercentToPxWidth=(parseFloat(w.getPropertyValue(u,"width",null,!0))||1)/s,l.percentToPxHeight=L.lastPercentToPxHeight=(parseFloat(w.getPropertyValue(u,"height",null,!0))||1)/s,l.emToPx=L.lastEmToPx=(parseFloat(w.getPropertyValue(u,"paddingLeft"))||1)/s,e.myParent.removeChild(u)}return null===L.remToPx&&(L.remToPx=parseFloat(w.getPropertyValue(a.body,"fontSize"))||16),null===L.vwToPx&&(L.vwToPx=parseFloat(t.innerWidth)/100,L.vhToPx=parseFloat(t.innerHeight)/100),l.remToPx=L.remToPx,l.vwToPx=L.vwToPx,l.vhToPx=L.vhToPx,y.debug>=1&&console.log("Unit ratios: "+JSON.stringify(l),n),l}if(s.begin&&0===C)try{s.begin.call(v,v)}catch(x){setTimeout(function(){throw x},1)}if("scroll"===I){var k,M,P,_=/^x$/i.test(s.axis)?"Left":"Top",T=parseFloat(s.offset)||0;s.container?p.isWrapped(s.container)||p.isNode(s.container)?(s.container=s.container[0]||s.container,k=s.container["scroll"+_],P=k+f(n).position()[_.toLowerCase()]+T):s.container=null:(k=y.State.scrollAnchor[y.State["scrollProperty"+_]],M=y.State.scrollAnchor[y.State["scrollProperty"+("Left"===_?"Top":"Left")]],P=f(n).offset()[_.toLowerCase()]+T),l={scroll:{rootPropertyValue:!1,startValue:k,currentValue:k,endValue:P,unitType:"",easing:s.easing,scrollData:{container:s.container,direction:_,alternateValue:M}},element:n},y.debug&&console.log("tweensContainer (scroll): ",l.scroll,n)}else if("reverse"===I){if(!o(n).tweensContainer)return void f.dequeue(n,s.queue);"none"===o(n).opts.display&&(o(n).opts.display="auto"),"hidden"===o(n).opts.visibility&&(o(n).opts.visibility="visible"),o(n).opts.loop=!1,o(n).opts.begin=null,o(n).opts.complete=null,b.easing||delete s.easing,b.duration||delete s.duration,s=f.extend({},o(n).opts,s);var D=f.extend(!0,{},o(n).tweensContainer);for(var V in D)if("element"!==V){var F=D[V].startValue;D[V].startValue=D[V].currentValue=D[V].endValue,D[V].endValue=F,p.isEmptyObject(b)||(D[V].easing=s.easing),y.debug&&console.log("reverse tweensContainer ("+V+"): "+JSON.stringify(D[V]),n)}l=D}else if("start"===I){var D;o(n).tweensContainer&&o(n).isAnimating===!0&&(D=o(n).tweensContainer),f.each(g,function(e,t){if(RegExp("^"+w.Lists.colors.join("$|^")+"$").test(e)){var a=c(t,!0),i=a[0],n=a[1],o=a[2];if(w.RegEx.isHex.test(i)){for(var s=["Red","Green","Blue"],l=w.Values.hexToRgb(i),u=o?w.Values.hexToRgb(o):r,d=0;d<s.length;d++){var f=[l[d]];n&&f.push(n),u!==r&&f.push(u[d]),g[e+s[d]]=f}delete g[e]}}});for(var R in g){var W=c(g[R]),E=W[0],B=W[1],z=W[2];R=w.Names.camelCase(R);var N=w.Hooks.getRoot(R),H=!1;if(o(n).isSVG||"tween"===N||w.Names.prefixCheck(N)[1]!==!1||w.Normalizations.registered[N]!==r){(s.display!==r&&null!==s.display&&"none"!==s.display||s.visibility!==r&&"hidden"!==s.visibility)&&/opacity|filter/.test(R)&&!z&&0!==E&&(z=0),s._cacheValues&&D&&D[R]?(z===r&&(z=D[R].endValue+D[R].unitType),H=o(n).rootPropertyValueCache[N]):w.Hooks.registered[R]?z===r?(H=w.getPropertyValue(n,N),z=w.getPropertyValue(n,R,H)):H=w.Hooks.templates[N][1]:z===r&&(z=w.getPropertyValue(n,R));var j,q,Y,Q=!1;if(j=h(R,z),z=j[0],Y=j[1],j=h(R,E),E=j[0].replace(/^([+-\/*])=/,function(e,t){return Q=t,""}),q=j[1],z=parseFloat(z)||0,E=parseFloat(E)||0,"%"===q&&(/^(fontSize|lineHeight)$/.test(R)?(E/=100,q="em"):/^scale/.test(R)?(E/=100,q=""):/(Red|Green|Blue)$/i.test(R)&&(E=E/100*255,q="")),/[\/*]/.test(Q))q=Y;else if(Y!==q&&0!==z)if(0===E)q=Y;else{i=i||m();var X=/margin|padding|left|right|width|text|word|letter/i.test(R)||/X$/.test(R)||"x"===R?"x":"y";switch(Y){case"%":z*="x"===X?i.percentToPxWidth:i.percentToPxHeight;break;case"px":break;default:z*=i[Y+"ToPx"]}switch(q){case"%":z*=1/("x"===X?i.percentToPxWidth:i.percentToPxHeight);
313break;case"px":break;default:z*=1/i[q+"ToPx"]}}switch(Q){case"+":E=z+E;break;case"-":E=z-E;break;case"*":E=z*E;break;case"/":E=z/E}l[R]={rootPropertyValue:H,startValue:z,currentValue:z,endValue:E,unitType:q,easing:B},y.debug&&console.log("tweensContainer ("+R+"): "+JSON.stringify(l[R]),n)}else y.debug&&console.log("Skipping ["+N+"] due to a lack of browser support.")}l.element=n}l.element&&(w.Values.addClass(n,"velocity-animating"),O.push(l),""===s.queue&&(o(n).tweensContainer=l,o(n).opts=s),o(n).isAnimating=!0,C===S-1?(y.State.calls.push([O,v,s,null,A.resolver]),y.State.isTicking===!1&&(y.State.isTicking=!0,d())):C++)}var i,n=this,s=f.extend({},y.defaults,b),l={};switch(o(n)===r&&y.init(n),parseFloat(s.delay)&&s.queue!==!1&&f.queue(n,s.queue,function(e){y.velocityQueueEntryFlag=!0,o(n).delayTimer={setTimeout:setTimeout(e,parseFloat(s.delay)),next:e}}),s.duration.toString().toLowerCase()){case"fast":s.duration=200;break;case"normal":s.duration=m;break;case"slow":s.duration=600;break;default:s.duration=parseFloat(s.duration)||1}y.mock!==!1&&(y.mock===!0?s.duration=s.delay=1:(s.duration*=parseFloat(y.mock)||1,s.delay*=parseFloat(y.mock)||1)),s.easing=u(s.easing,s.duration),s.begin&&!p.isFunction(s.begin)&&(s.begin=null),s.progress&&!p.isFunction(s.progress)&&(s.progress=null),s.complete&&!p.isFunction(s.complete)&&(s.complete=null),s.display!==r&&null!==s.display&&(s.display=s.display.toString().toLowerCase(),"auto"===s.display&&(s.display=y.CSS.Values.getDisplayType(n))),s.visibility!==r&&null!==s.visibility&&(s.visibility=s.visibility.toString().toLowerCase()),s.mobileHA=s.mobileHA&&y.State.isMobile&&!y.State.isGingerbread,s.queue===!1?s.delay?setTimeout(e,s.delay):e():f.queue(n,s.queue,function(t,a){return a===!0?(A.promise&&A.resolver(v),!0):(y.velocityQueueEntryFlag=!0,void e(t))}),""!==s.queue&&"fx"!==s.queue||"inprogress"===f.queue(n)[0]||f.dequeue(n)}var s,l,h,v,g,b,x=arguments[0]&&(arguments[0].p||f.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||p.isString(arguments[0].properties));if(p.isWrapped(this)?(s=!1,h=0,v=this,l=this):(s=!0,h=1,v=x?arguments[0].elements||arguments[0].e:arguments[0]),v=n(v)){x?(g=arguments[0].properties||arguments[0].p,b=arguments[0].options||arguments[0].o):(g=arguments[h],b=arguments[h+1]);var S=v.length,C=0;if(!/^(stop|finish)$/i.test(g)&&!f.isPlainObject(b)){var M=h+1;b={};for(var P=M;P<arguments.length;P++)p.isArray(arguments[P])||!/^(fast|normal|slow)$/i.test(arguments[P])&&!/^\d/.test(arguments[P])?p.isString(arguments[P])||p.isArray(arguments[P])?b.easing=arguments[P]:p.isFunction(arguments[P])&&(b.complete=arguments[P]):b.duration=arguments[P]}var A={promise:null,resolver:null,rejecter:null};s&&y.Promise&&(A.promise=new y.Promise(function(e,t){A.resolver=e,A.rejecter
313=t}));var I;switch(g){case"scroll":I="scroll";break;case"reverse":I="reverse";break;case"finish":case"stop":f.each(v,function(e,t){o(t)&&o(t).delayTimer&&(clearTimeout(o(t).delayTimer.setTimeout),o(t).delayTimer.next&&o(t).delayTimer.next(),delete o(t).delayTimer)});var _=[];return f.each(y.State.calls,function(e,t){t&&f.each(t[1],function(a,i){var n=b===r?"":b;return n===!0||t[2].queue===n||b===r&&t[2].queue===!1?void f.each(v,function(a,r){r===i&&((b===!0||p.isString(b))&&(f.each(f.queue(r,p.isString(b)?b:""),function(e,t){p.isFunction(t)&&t(null,!0)}),f.queue(r,p.isString(b)?b:"",[])),"stop"===g?(o(r)&&o(r).tweensContainer&&n!==!1&&f.each(o(r).tweensContainer,function(e,t){t.endValue=t.currentValue}),_.push(e)):"finish"===g&&(t[2].duration=1))}):!0})}),"stop"===g&&(f.each(_,function(e,t){c(t,!0)}),A.promise&&A.resolver(v)),e();default:if(!f.isPlainObject(g)||p.isEmptyObject(g)){if(p.isString(g)&&y.Redirects[g]){var T=f.extend({},b),D=T.duration,V=T.delay||0;return T.backwards===!0&&(v=f.extend(!0,[],v).reverse()),f.each(v,function(e,t){parseFloat(T.stagger)?T.delay=V+parseFloat(T.stagger)*e:p.isFunction(T.stagger)&&(T.delay=V+T.stagger.call(t,e,S)),T.drag&&(T.duration=parseFloat(D)||(/^(callout|transition)/.test(g)?1e3:m),T.duration=Math.max(T.duration*(T.backwards?1-e/S:(e+1)/S),.75*T.duration,200)),y.Redirects[g].call(t,t,T||{},e,S,v,A.promise?A:r)}),e()}var F="Velocity: First argument ("+g+") was not a property map, a known action, or a registered redirect. Aborting.";return A.promise?A.rejecter(new Error(F)):console.log(F),e()}I="start"}var L={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},O=[];f.each(v,function(e,t){p.isNode(t)&&i.call(t)});var R,T=f.extend({},y.defaults,b);if(T.loop=parseInt(T.loop),R=2*T.loop-1,T.loop)for(var W=0;R>W;W++){var E={delay:T.delay,progress:T.progress};W===R-1&&(E.display=T.display,E.visibility=T.visibility,E.complete=T.complete),k(v,"reverse",E)}return e()}};y=f.extend(k,y),y.animate=k;var S=t.requestAnimationFrame||v;return y.State.isMobile||a.hidden===r||a.addEventListener("visibilitychange",function(){a.hidden?(S=function(e){return setTimeout(function(){e(!0)},16)},d()):S=t.requestAnimationFrame||v}),e.Velocity=y,e!==t&&(e.fn.velocity=k,e.fn.velocity.defaults=y.defaults),f.each(["Down","Up"],function(e,t){y.Redirects["slide"+t]=function(e,a,i,n,o,s){var l=f.extend({},a),u=l.begin,d=l.complete,c={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},h={};l.display===r&&(l.display="Down"===t?"inline"===y.CSS.Values.getDisplayType(e)?"inline-block":"block":"none"),l.begin=function(){u&&u.call(o,o);for(var a in c){h[a]=e.style[a];var r=y.CSS.getPropertyValue(e,a);c[a]="Down"===t?[r,0]:[0,r]}h.overflow=e.style.overflow,e.style.overflow="hidden"},l.complete=function(){for(var t in h)e.style[t]=h[t];d&&d.call(o,o),s&&s.resolver(o)},y(e,c,l)}}),f.each(["In","Out"],function(e,t){y.Redirects["fade"+t]=function(e,a,i,n,o,s){var l=f.extend({},a),u={opacity:"In"===t?1:0},d=l.complete;l.complete=i!==n-1?l.begin=null:function(){d&&d.call(o,o),s&&s.resolver(o)},l.display===r&&(l.display="In"===t?"auto":"none"),y(this,u,l)}}),y}(window.jQuery||window.Zepto||window,window,document)})),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Chart=e()}}(function(){return function i(e,t,a){function r(o,s){if(!t[o]){if(!e[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(n)return n(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var d=t[o]={exports:{}};e[o][0].call(d.exports,function(t){var a=e[o][1][t];return r(a?a:t)},d,d.exports,i,e,t,a)}return t[o].exports}for(var n="function"==typeof require&&require,o=0;o<a.length;o++)r(a[o]);return r}({1:[function(e,t,a){},{}],2:[function(e,t,a){function i(e){if(e){var t=/^#([a-fA-F0-9]{3})$/,a=/^#([a-fA-F0-9]{6})$/,i=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,n=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,o=/(\w+)/,s=[0,0,0],l=1,u=e.match(t);if(u){u=u[1];for(var d=0;d<s.length;d++)s[d]=parseInt(u[d]+u[d],16)}else if(u=e.match(a)){u=u[1];for(var d=0;d<s.length;d++)s[d]=parseInt(u.slice(2*d,2*d+2),16)}else if(u=e.match(i)){for(var d=0;d<s.length;d++)s[d]=parseInt(u[d+1]);l=parseFloat(u[4])}else if(u=e.match(n)){for(var d=0;d<s.length;d++)s[d]=Math.round(2.55*parseFloat(u[d+1]));l=parseFloat(u[4])}
313else if(u=e.match(o)){if("transparent"==u[1])return[0,0,0,0];if(s=r[u[1]],!s)return}for(var d=0;d<s.length;d++)s[d]=y(s[d],0,255);return l=l||0==l?y(l,0,1):1,s[3]=l,s}}function n(e){if(e){var t=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,a=e.match(t);if(a){var r=parseFloat(a[4]),i=y(parseInt(a[1]),0,360),n=y(parseFloat(a[2]),0,100),o=y(parseFloat(a[3]),0,100),s=y(isNaN(r)?1:r,0,1);return[i,n,o,s]}}}function o(e){if(e){var t=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,a=e.match(t);if(a){var r=parseFloat(a[4]),i=y(parseInt(a[1]),0,360),n=y(parseFloat(a[2]),0,100),o=y(parseFloat(a[3]),0,100),s=y(isNaN(r)?1:r,0,1);return[i,n,o,s]}}}function s(e){var t=i(e);return t&&t.slice(0,3)}function l(e){var t=n(e);return t&&t.slice(0,3)}function u(e){var t=i(e);return t?t[3]:(t=n(e))?t[3]:(t=o(e))?t[3]:void 0}function d(e){return"#"+x(e[0])+x(e[1])+x(e[2])}function c(e,t){return 1>t||e[3]&&e[3]<1?f(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"}function f(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function h(e,t){if(1>t||e[3]&&e[3]<1)return v(e,t);var a=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return"rgb("+a+"%, "+r+"%, "+i+"%)"}function v(e,t){var a=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return"rgba("+a+"%, "+r+"%, "+i+"%, "+(t||e[3]||1)+")"}function p(e,t){return 1>t||e[3]&&e[3]<1?g(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"}function g(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function m(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:"")+")"}function b(e){return w[e.slice(0,3)]}function y(e,t,a){return Math.min(Math.max(t,e),a)}function x(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var r=e(6);t.exports={getRgba:i,getHsla:n,getRgb:s,getHsl:l,getHwb:o,getAlpha:u,hexString:d,rgbString:c,rgbaString:f,percentString:h,percentaString:v,hslString:p,hslaString:g,hwbString:m,keyword:b};var w={};for(var k in r)w[r[k]]=k},{6:6}],3:[function(e,t,a){var r=e(5),i=e(2),n=function(e){if(e instanceof n)return e;if(!(this instanceof n))return new n(e);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};var t;"string"==typeof e?(t=i.getRgba(e),t?this.setValues("rgb",t):(t=i.getHsla(e))?this.setValues("hsl",t):(t=i.getHwb(e))&&this.setValues("hwb",t)):"object"==typeof e&&(t=e,void 0!==t.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))};n.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%=360,e=0>e?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 i.hexString(this.values.rgb)},rgbString:function(){return i.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return i.rgbaString(this.values.rgb,this.values.alpha)}
313,percentString:function(){return i.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return i.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return i.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return i.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return i.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=[],a=0;a<e.length;a++){var r=e[a]/255;t[a]=.03928>=r?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),a=e.luminosity();return t>a?(t+.05)/(a+.05):(a+.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,t=(299*e[0]+587*e[1]+114*e[2])/1e3;return 128>t},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;3>t;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,a=(t[0]+e)%360;return t[0]=0>a?360+a:a,this.setValues("hsl",t),this},mix:function(e,t){var a=this,r=e,i=void 0===t?.5:t,n=2*i-1,o=a.alpha()-r.alpha(),s=((n*o===-1?n:(n+o)/(1+n*o))+1)/2,l=1-s;return this.rgb(s*a.red()+l*r.red(),s*a.green()+l*r.green(),s*a.blue()+l*r.blue()).alpha(a.alpha()*i+r.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var r,i,e=new n,t=this.values,a=e.values;for(var o in t)t.hasOwnProperty(o)&&(r=t[o],i={}.toString.call(r),"[object Array]"===i?a[o]=r.slice(0):"[object Number]"===i?a[o]=r:console.error("unexpected color value:",r));return e}},n.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},n.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},n.prototype.getValues=function(e){for(var t=this.values,a={},r=0;r<e.length;r++)a[e.charAt(r)]=t[e][r];return 1!==t.alpha&&(a.a=t.alpha),a},n.prototype.setValues=function(e,t){var s,a=this.values,i=this.spaces,n=this.maxes,o=1;if(this.valid=!0,"alpha"===e)o=t;else if(t.length)a[e]=t.slice(0,e.length),o=t[e.length];else if(void 0!==t[e.charAt(0)]){for(s=0;s<e.length;s++)a[e][s]=t[e.charAt(s)];o=t.a}else if(void 0!==t[i[e][0]]){var l=i[e];for(s=0;s<e.length;s++)a[e][s]=t[l[s]];o=t.alpha}if(a.alpha=Math.max(0,Math.min(1,void 0===o?a.alpha:o)),"alpha"===e)return!1;var u;for(s=0;s<e.length;s++)u=Math.max(0,Math.min(n[e][s],a[e][s])),a[e][s]=Math.round(u);for(var d in i)d!==e&&(a[d]=r[e][d](a[e]));return!0},n.prototype.setSpace=function(e,t){var a=t[0];return void 0===a?this.getValues(e):("number"==typeof a&&(a=Array.prototype.slice.call(t)),this.setValues(e,a),this)},n.prototype.setChannel=function(e,t,a){var r=this.values[e];return void 0===a?r[t]:a===r[t]?this:(r[t]=a,this.setValues(e,r),this)},"undefined"!=typeof window&&(window.Color=n),t.exports=n},{2:2,5:5}],4:[function(e,t,a){function i(e){var s,l,u,t=e[0]/255,a=e[1]/255,r=e[2]/255,i=Math.min(t,a,r),n=Math.max(t,a,r),o=n-i;return n==i?s=0:t==n?s=(a-r)/o:a==n?s=2+(r-t)/o:r==n&&(s=4+(t-a)/o),s=Math.min(60*s,360),0>s&&(s+=360),u=(i+n)/2,l=n==i?0:.5>=u?o/(n+i):o/(2-n-i),[s,100*l,100*u]}function n(e){var s,l,u,t=e[0],a=e[1],r=e[2],i=Math.min(t,a,r),n=Math.max(t,a,r),o=n-i;
313return l=0==n?0:o/n*1e3/10,n==i?s=0:t==n?s=(a-r)/o:a==n?s=2+(r-t)/o:r==n&&(s=4+(t-a)/o),s=Math.min(60*s,360),0>s&&(s+=360),u=n/255*1e3/10,[s,l,u]}function o(e){var t=e[0],a=e[1],r=e[2],n=i(e)[0],o=1/255*Math.min(t,Math.min(a,r)),r=1-1/255*Math.max(t,Math.max(a,r));return[n,100*o,100*r]}function s(e){var i,n,o,s,t=e[0]/255,a=e[1]/255,r=e[2]/255;return s=Math.min(1-t,1-a,1-r),i=(1-t-s)/(1-s)||0,n=(1-a-s)/(1-s)||0,o=(1-r-s)/(1-s)||0,[100*i,100*n,100*o,100*s]}function l(e){return Z[JSON.stringify(e)]}function u(e){var t=e[0]/255,a=e[1]/255,r=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var i=.4124*t+.3576*a+.1805*r,n=.2126*t+.7152*a+.0722*r,o=.0193*t+.1192*a+.9505*r;return[100*i,100*n,100*o]}function d(e){var n,o,s,t=u(e),a=t[0],r=t[1],i=t[2];return a/=95.047,r/=100,i/=108.883,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,n=116*r-16,o=500*(a-r),s=200*(r-i),[n,o,s]}function c(e){return E(d(e))}function f(e){var i,n,o,s,l,t=e[0]/360,a=e[1]/100,r=e[2]/100;if(0==a)return l=255*r,[l,l,l];n=.5>r?r*(1+a):r+a-r*a,i=2*r-n,s=[0,0,0];for(var u=0;3>u;u++)o=t+1/3*-(u-1),0>o&&o++,o>1&&o--,l=1>6*o?i+6*(n-i)*o:1>2*o?n:2>3*o?i+(n-i)*(2/3-o)*6:i,s[u]=255*l;return s}function h(e){var i,n,t=e[0],a=e[1]/100,r=e[2]/100;return 0===r?[0,0,0]:(r*=2,a*=1>=r?r:2-r,n=(r+a)/2,i=2*a/(r+a),[t,100*i,100*n])}function v(e){return o(f(e))}function p(e){return s(f(e))}function m(e){return l(f(e))}function y(e){var t=e[0]/60,a=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,n=t-Math.floor(t),o=255*r*(1-a),s=255*r*(1-a*n),l=255*r*(1-a*(1-n)),r=255*r;switch(i){case 0:return[r,l,o];case 1:return[s,r,o];case 2:return[o,r,l];case 3:return[o,s,r];case 4:return[l,o,r];case 5:return[r,o,s]}}function x(e){var i,n,t=e[0],a=e[1]/100,r=e[2]/100;return n=(2-a)*r,i=a*r,i/=1>=n?n:2-n,i=i||0,n/=2,[t,100*i,100*n]}function w(e){return o(y(e))}function k(e){return s(y(e))}function S(e){return l(y(e))}function C(e){var o,s,l,u,t=e[0]/360,a=e[1]/100,i=e[2]/100,n=a+i;switch(n>1&&(a/=n,i/=n),o=Math.floor(6*t),s=1-i,l=6*t-o,0!=(1&o)&&(l=1-l),u=a+l*(s-a),o){default:case 6:case 0:r=s,g=u,b=a;break;case 1:r=u,g=s,b=a;break;case 2:r=a,g=s,b=u;break;case 3:r=a,g=u,b=s;break;case 4:r=u,g=a,b=s;break;case 5:r=s,g=a,b=u}return[255*r,255*g,255*b]}function M(e){return i(C(e))}function P(e){return n(C(e))}function A(e){return s(C(e))}function I(e){return l(C(e))}function _(e){var n,o,s,t=e[0]/100,a=e[1]/100,r=e[2]/100,i=e[3]/100;return n=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,a*(1-i)+i),s=1-Math.min(1,r*(1-i)+i),[255*n,255*o,255*s]}function T(e){return i(_(e))}function D(e){return n(_(e))}function V(e){return o(_(e))}function F(e){return l(_(e))}function L(e){var i,n,o,t=e[0]/100,a=e[1]/100,r=e[2]/100;return i=3.2406*t+-1.5372*a+r*-.4986,n=t*-.9689+1.8758*a+.0415*r,o=.0557*t+a*-.204+1.057*r,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i=12.92*i,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n=12.92*n,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o=12.92*o,i=Math.min(Math.max(0,i),1),n=Math.min(Math.max(0,n),1),o=Math.min(Math.max(0,o),1),[255*i,255*n,255*o]}function O(e){var i,n,o,t=e[0],a=e[1],r=e[2];return t/=95.047,a/=100,r/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,i=116*a-16,n=500*(t-a),o=200*(a-r),[i,n,o]}function R(e){return E(O(e))}function W(e){var i,n,o,s,t=e[0],a=e[1],r=e[2];return 8>=t?(n=100*t/903.3,s=7.787*(n/100)+16/116):(n=100*Math.pow((t+16)/116,3),s=Math.pow(n/100,1/3)),i=.008856>=i/95.047?i=95.047*(a/500+s-16/116)/7.787:95.047*Math.pow(a/500+s,3),o=.008859>=o/108.883?o=108.883*(s-r/200-16/116)/7.787:108.883*Math.pow(s-r/200,3),[i,n,o]}function E(e){var i,n,o,t=e[0],a=e[1],r=e[2];return i=Math.atan2(r,a),n=360*i/2/Math.PI,0>n&&(n+=360),o=Math.sqrt(a*a+r*r),[t,o,n]}function B(e){return L(W(e))}function z(e){var i,n,o,t=e[0],a=e[1],r=e[2];return o=r/360*2*Math.PI,i=a*Math.cos(o),n=a*Math.sin(o),[t,i,n]}function N(e){return W(z(e))}function H(e){return B(z(e))}function j(e){return $[e]}function q(e){return i(j(e))}function Y(e){return n(j(e))}function Q(e){return o(j(e))}function X(e){return s(j(e))}function U(e){return d(j(e))}function G(e){return u(j(e))}t.exports={rgb2hsl:i,rgb2hsv:n,rgb2hwb:o,rgb2cmyk:s,rgb2keyword:l,rgb2xyz:u,rgb2lab:d,rgb2lch:c,hsl2rgb:f,hsl2hsv:h,hsl2hwb:v,hsl2cmyk:p,hsl2keyword:m,hsv2rgb:y,hsv2hsl:x,hsv2hwb:w,hsv2cmyk:k,hsv2keyword:S,hwb2rgb:C,hwb2hsl:M,hwb2hsv:P,hwb2cmyk:A,hwb2keyword:I,cmyk2rgb:_,cmyk2hsl:T,cmyk2hsv:D,cmyk2hwb:V,cmyk2keyword:F,keyword2rgb:j,keyword2hsl:q,keyword2hsv:Y,keyword2hwb:Q,keyword2cmyk:X,keyword2lab:U,keyword2xyz:G,xyz2rgb:L,xyz2lab:O,xyz2lch:R,lab2xyz:W,lab2rgb:B,lab2l
vendor: 6,966 bytes, line 313
313ch:E,lch2lab:z,lch2xyz:N,lch2rgb:H};var $={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={};for(var K in $)Z[JSON.stringify($[K])]=K},{}],5:[function(e,t,a){var r=e(4),i=function(){return new u};for(var n in r){i[n+"Raw"]=function(e){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),r[e](t)}}(n);var o=/(\w+)2(\w+)/.exec(n),s=o[1],l=o[2];i[s]=i[s]||{},i[s][l]=i[n]=function(e){return function(t){"number"==typeof t&&(t=Array.prototype.slice.call(arguments));var a=r[e](t);if("string"==typeof a||void 0===a)return a;for(var i=0;i<a.length;i++)a[i]=Math.round(a[i]);return a}}(n)}var u=function(){this.convs={}};u.prototype.routeSpace=function(e,t){var a=t[0];return void 0===a?this.getValues(e):("number"==typeof a&&(a=Array.prototype.slice.call(t)),this.setValues(e,a))},u.prototype.setValues=function(e,t){return this.space=e,this.convs={},this.convs[e]=t,this},u.prototype.getValues=function(e){var t=this.convs[e];if(!t){var a=this.space,r=this.convs[a];t=i[a][e](r),this.convs[e]=t}return t},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(e){u.prototype[e]=function(t){return this.routeSpace(e,arguments)}}),t.exports=i},{4:4}],6:[function(e,t,a){t.exports={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
313ive:[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]}},{}],7:[function(e,t,a){var r=e(28)();e(26)(r),e(40)(r),e(22)(r),e(25)(r),e(30)(r),e(21)(r),e(23)(r),e(24)(r),e(29)(r),e(32)(r),e(33)(r),e(31)(r),e(27)(r),e(34)(r),e(35)(r),e(36)(r),e(37)(r),e(38)(r),e(46)(r),e(44)(r),e(45)(r),e(47)(r),e(48)(r),e(49)(r),e(15)(r),e(16)(r),e(17)(r),e(18)(r),e(19)(r),e(20)(r),e(8)(r),e(9)(r),e(10)(r),e(11)(r),e(12)(r),e(13)(r),e(14)(r);var i=[];i.push(e(41)(r),e(42)(r),e(43)(r)),r.plugins.register(i),t.exports=r,"undefined"!=typeof window&&(window.Chart=r)},{10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,29:29,30:30,31:31,32:32,33:33,34:34,35:35,36:36,37:37,38:38,40:40,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,8:8,9:9}],8:[function(e,t,a){"use strict";t.exports=function(e){e.Bar=function(t,a){return a.type="bar",new e(t,a)}}},{}],9:[function(e,t,a){"use strict";t.exports=function(e){e.Bubble=function(t,a){return a.type="bubble",new e(t,a)}}},{}],10:[function(e,t,a){"use strict";t.exports=function(e){e.Doughnut=function(t,a){return a.type="doughnut",new e(t,a)}}},{}],11:[function(e,t,a){"use strict";t.exports=function(e){e.Line=function(t,a){return a.type="line",new e(t,a)}}},{}],12:[function(e,t,a){"use strict";t.exports=function(e){e.PolarArea=function(t,a){return a.type="polarArea",new e(t,a)}}},{}],13:[function(e,t,a){"use strict";t.exports=function(e){e.Radar=function(t,a){return a.type="radar",new e(t,a)}}},{}],14:[function(e,t,a){"use strict";t.exports=function(e){var t={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-1"}],yAxes:[{type:"linear",position:"left",id:"y-axis-1"}]},tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}};e.defaults.scatter=t,e.controllers.scatter=e.controllers.line,e.Scatter=function(t,a){return a.type="scatter",new e(t,a)}}},{}],15:[function(e,t,a){"use strict";t.exports=function(e){var t=e.helpers;e.defaults.bar={hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}},e.controllers.bar=e.DatasetController.extend({dataElementType:e.elements.Rectangle,initialize:function(){var a,t=this;e.DatasetController.prototype.initialize.apply(t,arguments),a=t.getMeta(),a.stack=t.getDataset().stack,a.bar=!0},update:function(e){var r,i,t=this,a=t.getMeta().data;for(t._ruler=t.getRuler(),r=0,i=a.length;i>r;++r)t.updateElement(a[r],r,e)},updateElement:function(e,a,r){var i=this,n=i.chart,o=i.getMeta(),s=i.getDataset(),l=e.custom||{},u=n.options.elements.rectangle;e._xScale=i.getScaleForId(o.xAxisID),e._yScale=i.getScaleForId(o.yAxisID),e._datasetIndex=i.index,e._index=a,
314e._model={datasetLabel:s.label,label:n.data.labels[a],borderSkipped:l.borderSkipped?l.borderSkipped:u.borderSkipped,backgroundColor:l.backgroundColor?l.backgroundColor:t.getValueAtIndexOrDefault(s.backgroundColor,a,u.backgroundColor),borderColor:l.borderColor?l.borderColor:t.getValueAtIndexOrDefault(s.borderColor,a,u.borderColor),borderWidth:l.borderWidth?l.borderWidth:t.getValueAtIndexOrDefault(s.borderWidth,a,u.borderWidth)},i.updateElementGeometry(e,a,r),e.pivot()},updateElementGeometry:function(e,t,a){var r=this,i=e._model,n=r.getValueScale(),o=n.getBasePixel(),s=n.isHorizontal(),l=r._ruler||r.getRuler(),u=r.calculateBarValuePixels(r.index,t),d=r.calculateBarIndexPixels(r.index,t,l);i.horizontal=s,i.base=a?o:u.base,i.x=s?a?o:u.head:d.center,i.y=s?d.center:a?o:u.head,i.height=s?d.size:void 0,i.width=s?void 0:d.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID}
314,getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId())},getStackCount:function(e){var s,l,t=this,a=t.chart,r=t.getIndexScale(),i=r.options.stacked,n=void 0===e?a.data.datasets.length:e+1,o=[];for(s=0;n>s;++s)l=a.getDatasetMeta(s),l.bar&&a.isDatasetVisible(s)&&(i===!1||i===!0&&-1===o.indexOf(l.stack)||void 0===i&&(void 0===l.stack||-1===o.indexOf(l.stack)))&&o.push(l.stack);return o.length},getStackIndex:function(e){return this.getStackCount(e)-1},getRuler:function(){var e=this,a=e.getIndexScale(),r=a.options,i=e.getStackCount(),n=a.isHorizontal()?a.width:a.height,o=n/a.ticks.length,s=o*r.categoryPercentage,l=s/i,u=l*r.barPercentage;return u=Math.min(t.getValueOrDefault(r.barThickness,u),t.getValueOrDefault(r.maxBarThickness,1/0)),{stackCount:i,tickSize:o,categorySize:s,categorySpacing:o-s,fullBarSize:l,barSize:u,barSpacing:l-u,scale:a}},calculateBarValuePixels:function(e,t){var c,f,h,v,p,g,a=this,r=a.chart,i=a.getMeta(),n=a.getValueScale(),o=r.data.datasets,s=Number(o[e].data[t]),l=n.options.stacked,u=i.stack,d=0;if(l||void 0===l&&void 0!==u)for(c=0;e>c;++c)f=r.getDatasetMeta(c),f.bar&&f.stack===u&&f.controller.getValueScaleId()===n.id&&r.isDatasetVisible(c)&&(h=Number(o[c].data[t]),(0>s&&0>h||s>=0&&h>0)&&(d+=h));return v=n.getPixelForValue(d),p=n.getPixelForValue(d+s),g=(p-v)/2,{size:g,base:v,head:p,center:p+g/2}},calculateBarIndexPixels:function(e,t,a){var r=this,i=a.scale,n=r.chart.isCombo,o=r.getStackIndex(e),s=i.getPixelForValue(null,t,e,n),l=a.barSize;return s-=n?a.tickSize/2:0,s+=a.fullBarSize*o,s+=a.categorySpacing/2,s+=a.barSpacing/2,{size:l,base:s,head:s+l,center:s+l/2}},draw:function(){var s,e=this,a=e.chart,r=e.getMeta().data,i=e.getDataset(),n=r.length,o=0;for(t.canvas.clipArea(a.ctx,a.chartArea);n>o;++o)s=i.data[o],null===s||void 0===s||isNaN(s)||r[o].draw();t.canvas.unclipArea(a.ctx)},setHoverStyle:function(e){var a=this.chart.data.datasets[e._datasetIndex],r=e._index,i=e.custom||{},n=e._model;n.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:t.getValueAtIndexOrDefault(a.hoverBackgroundColor,r,t.getHoverColor(n.backgroundColor)),n.borderColor=i.hoverBorderColor?i.hoverBorderColor:t.getValueAtIndexOrDefault(a.hoverBorderColor,r,t.getHoverColor(n.borderColor)),n.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:t.getValueAtIndexOrDefault(a.hoverBorderWidth,r,n.borderWidth)},removeHoverStyle:function(e){var a=this.chart.data.datasets[e._datasetIndex],r=e._index,i=e.custom||{},n=e._model,o=this.chart.options.elements.rectangle;n.backgroundColor=i.backgroundColor?i.backgroundColor:t.getValueAtIndexOrDefault(a.backgroundColor,r,o.backgroundColor),n.borderColor=i.borderColor?i.borderColor:t.getValueAtIndexOrDefault(a.borderColor,r,o.borderColor),n.borderWidth=i.borderWidth?i.borderWidth:t.getValueAtIndexOrDefault(a.borderWidth,r,o.borderWidth)}}),e.defaults.horizontalBar={hover:{mode:"label"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(e,t){var a="";return e.length>0&&(e[0].yLabel?a=e[0].yLabel:t.labels.length>0&&e[0].index<t.labels.length&&(a=t.labels[e[0].index])),a},label:function(e,t){var a=t.datasets[e.datasetIndex].label||"";return a+": "+e.xLabel}}}},e.controllers.horizontalBar=e.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},{}],16:[function(e,t,a){"use strict";t.exports=function(e){var t=e.helpers;e.defaults.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){var a=t.datasets[e.datasetIndex].label||"",r=t.datasets[e.datasetIndex].data[e.index];return a+": ("+e.xLabel+", "+e.yLabel+", "+r.r+")"}}}},e.controllers.bubble=e.DatasetController.extend({dataElementType:e.elements.Point,update:function(e){var a=this,r=a.getMeta(),i=r.data;t.each(i,function(t,r){a.updateElement(t,r,e)})},updateElement:function(a,r,i){var n=this,o=n.getMeta(),s=n.getScaleForId(o.xAxisID),l=n.getScaleForId(o.yAxisID),u=a.custom||{},d=n.getDataset(),c=d.data[r],f=n.chart.options.elements.point,h=n.index;t.extend(a,{_xScale:s,_yScale:l,_datasetIndex:h,_index:r,_model:{x:i?s.getPixelForDecimal(.5):s.getPixelForValue("object"==typeof c?c:NaN,r,h,n.chart.isCombo),y:i?l.getBasePixel():l.getPixelForValue(c,r,h),radius:i?0:u.radius?u.radius:n.getRadius(c),hitRadius:u.hitRadius?u.hitRadius:t.getValueAtIndexOrDefault(d.hitRadius,r,f.hitRadius)}}),e.DatasetController.prototype.removeHoverStyle.call(n,a,f);var v=a._model;
314v.skip=u.skip?u.skip:isNaN(v.x)||isNaN(v.y),a.pivot()},getRadius:function(e){return e.r||this.chart.options.elements.point.radius},setHoverStyle:function(a){var r=this;e.DatasetController.prototype.setHoverStyle.call(r,a);var i=r.chart.data.datasets[a._datasetIndex],n=a._index,o=a.custom||{},s=a._model;s.radius=o.hoverRadius?o.hoverRadius:t.getValueAtIndexOrDefault(i.hoverRadius,n,r.chart.options.elements.point.hoverRadius)+r.getRadius(i.data[n])},removeHoverStyle:function(t){var a=this;e.DatasetController.prototype.removeHoverStyle.call(a,t,a.chart.options.elements.point);var r=a.chart.data.datasets[t._datasetIndex].data[t._index],i=t.custom||{},n=t._model;n.radius=i.radius?i.radius:a.getRadius(r)}})}},{}],17:[function(e,t,a){"use strict";t.exports=function(e){var t=e.helpers,a=e.defaults;a.doughnut={animation:{animateRotate:!0,animateScale:!1},aspectRatio:1,hover:{mode:"single"},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');var a=e.data,r=a.datasets,i=a.labels;if(r.length)for(var n=0;n<r[0].data.length;++n)t.push('<li><span style="background-color:'+r[0].backgroundColor[n]+'"></span>'),i[n]&&t.push(i[n]),t.push("</li>");return t.push("</ul>"),t.join("")},legend:{labels:{generateLabels:function(e){var a=e.data;return a.labels.length&&a.datasets.length?a.labels.map(function(r,i){var n=e.getDatasetMeta(0),o=a.datasets[0],s=n.data[i],l=s&&s.custom||{},u=t.getValueAtIndexOrDefault,d=e.options.elements.arc,c=l.backgroundColor?l.backgroundColor:u(o.backgroundColor,i,d.backgroundColor),f=l.borderColor?l.borderColor:u(o.borderColor,i,d.borderColor),h=l.borderWidth?l.borderWidth:u(o.borderWidth,i,d.borderWidth);return{text:r,fillStyle:c,strokeStyle:f,lineWidth:h,hidden:isNaN(o.data[i])||n.data[i].hidden,index:i}}):[]}},onClick:function(e,t){var i,n,o,a=t.index,r=this.chart;for(i=0,n=(r.data.datasets||[]).length;n>i;++i)o=r.getDatasetMeta(i),o.data[a]&&(o.data[a].hidden=!o.data[a].hidden);r.update()}},cutoutPercentage:50,rotation:Math.PI*-.5,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(e,a){var r=a.labels[e.index],i=": "+a.datasets[e.datasetIndex].data[e.index];return t.isArray(r)?(r=r.slice(),r[0]+=i):r+=i,r}}}},a.pie=t.clone(a.doughnut),t.extend(a.pie,{cutoutPercentage:0}),e.controllers.doughnut=e.controllers.pie=e.DatasetController.extend({dataElementType:e.elements.Arc,linkScales:t.noop,getRingIndex:function(e){for(var t=0,a=0;e>a;++a)this.chart.isDatasetVisible(a)&&++t;return t},update:function(e){var a=this,r=a.chart,i=r.chartArea,n=r.options,o=n.elements.arc,s=i.right-i.left-o.borderWidth,l=i.bottom-i.top-o.borderWidth,u=Math.min(s,l),d={x:0,y:0},c=a.getMeta(),f=n.cutoutPercentage,h=n.circumference;if(h<2*Math.PI){var v=n.rotation%(2*Math.PI);v+=2*Math.PI*(v>=Math.PI?-1:v<-Math.PI?1:0);var p=v+h,g={x:Math.cos(v),y:Math.sin(v)},m={x:Math.cos(p),y:Math.sin(p)},b=0>=v&&p>=0||v<=2*Math.PI&&2*Math.PI<=p,y=v<=.5*Math.PI&&.5*Math.PI<=p||v<=2.5*Math.PI&&2.5*Math.PI<=p,x=v<=-Math.PI&&-Math.PI<=p||v<=Math.PI&&Math.PI<=p,w=v<=.5*-Math.PI&&.5*-Math.PI<=p||v<=1.5*Math.PI&&1.5*Math.PI<=p,k=f/100,S={x:x?-1:Math.min(g.x*(g.x<0?1:k),m.x*(m.x<0?1:k)),y:w?-1:Math.min(g.y*(g.y<0?1:k),m.y*(m.y<0?1:k))},C={x:b?1:Math.max(g.x*(g.x>0?1:k),m.x*(m.x>0?1:k)),y:y?1:Math.max(g.y*(g.y>0?1:k),m.y*(m.y>0?1:k))},M={width:.5*(C.x-S.x),height:.5*(C.y-S.y)};u=Math.min(s/M.width,l/M.height),d={x:(C.x+S.x)*-.5,y:(C.y+S.y)*-.5}}r.borderWidth=a.getMaxBorderWidth(c.data),r.outerRadius=Math.max((u-r.borderWidth)/2,0),r.innerRadius=Math.max(f?r.outerRadius/100*f:0,0),r.radiusLength=(r.outerRadius-r.innerRadius)/r.getVisibleDatasetCount(),r.offsetX=d.x*r.outerRadius,r.offsetY=d.y*r.outerRadius,c.total=a.c
314alculateTotal(),a.outerRadius=r.outerRadius-r.radiusLength*a.getRingIndex(a.index),a.innerRadius=Math.max(a.outerRadius-r.radiusLength,0),t.each(c.data,function(t,r){a.updateElement(t,r,e)})},updateElement:function(e,a,r){var i=this,n=i.chart,o=n.chartArea,s=n.options,l=s.animation,u=(o.left+o.right)/2,d=(o.top+o.bottom)/2,c=s.rotation,f=s.rotation,h=i.getDataset(),v=r&&l.animateRotate?0:e.hidden?0:i.calculateCircumference(h.data[a])*(s.circumference/(2*Math.PI)),p=r&&l.animateScale?0:i.innerRadius,g=r&&l.animateScale?0:i.outerRadius,m=t.getValueAtIndexOrDefault;t.extend(e,{_datasetIndex:i.index,_index:a,_model:{x:u+n.offsetX,y:d+n.offsetY,startAngle:c,endAngle:f,circumference:v,outerRadius:g,innerRadius:p,label:m(h.label,a,n.data.labels[a])}});var b=e._model;this.removeHoverStyle(e),r&&l.animateRotate||(0===a?b.startAngle=s.rotation:b.startAngle=i.getMeta().data[a-1]._model.endAngle,b.endAngle=b.startAngle+b.circumference),e.pivot()},removeHoverStyle:function(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},calculateTotal:function(){var i,e=this.getDataset(),a=this.getMeta(),r=0;return t.each(a.data,function(t,a){i=e.data[a],isNaN(i)||t.hidden||(r+=Math.abs(i))}),r},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?2*Math.PI*(e/t):0},getMaxBorderWidth:function(e){for(var i,n,t=0,a=this.index,r=e.length,o=0;r>o;o++)i=e[o]._model?e[o]._model.borderWidth:0,n=e[o]._chart?e[o]._chart.config.data.datasets[a].hoverBorderWidth:0,t=i>t?i:t,t=n>t?n:t;return t}})}},{}],18:[function(e,t,a){"use strict";t.exports=function(e){function a(e,a){return t.getValueOrDefault(e.showLine,a.showLines)}var t=e.helpers;e.defaults.line={showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}},e.controllers.line=e.DatasetController.extend({datasetElementType:e.elements.Line,dataElementType:e.elements.Point,update:function(e){var d,c,f,r=this,i=r.getMeta(),n=i.dataset,o=i.data||[],s=r.chart.options,l=s.elements.line,u=r.getScaleForId(i.yAxisID),h=r.getDataset(),v=a(h,s);for(v&&(f=n.custom||{},void 0!==h.tension&&void 0===h.lineTension&&(h.lineTension=h.tension),n._scale=u,n._datasetIndex=r.index,n._children=o,n._model={spanGaps:h.spanGaps?h.spanGaps:s.spanGaps,tension:f.tension?f.tension:t.getValueOrDefault(h.lineTension,l.tension),backgroundColor:f.backgroundColor?f.backgroundColor:h.backgroundColor||l.backgroundColor,borderWidth:f.borderWidth?f.borderWidth:h.borderWidth||l.borderWidth,borderColor:f.borderColor?f.borderColor:h.borderColor||l.borderColor,borderCapStyle:f.borderCapStyle?f.borderCapStyle:h.borderCapStyle||l.borderCapStyle,borderDash:f.borderDash?f.borderDash:h.borderDash||l.borderDash,borderDashOffset:f.borderDashOffset?f.borderDashOffset:h.borderDashOffset||l.borderDashOffset,borderJoinStyle:f.borderJoinStyle?f.borderJoinStyle:h.borderJoinStyle||l.borderJoinStyle,fill:f.fill?f.fill:void 0!==h.fill?h.fill:l.fill,steppedLine:f.steppedLine?f.steppedLine:t.getValueOrDefault(h.steppedLine,l.stepped),cubicInterpolationMode:f.cubicInterpolationMode?f.cubicInterpolationMode:t.getValueOrDefault(h.cubicInterpolationMode,l.cubicInterpolationMode)},n.pivot()),d=0,c=o.length;c>d;++d)r.updateElement(o[d],d,e);for(v&&0!==n._model.tension&&r.updateBezierControlPoints(),d=0,c=o.length;c>d;++d)o[d].pivot()}
314,getPointBackgroundColor:function(e,a){var r=this.chart.options.elements.point.backgroundColor,i=this.getDataset(),n=e.custom||{};return n.backgroundColor?r=n.backgroundColor:i.pointBackgroundColor?r=t.getValueAtIndexOrDefault(i.pointBackgroundColor,a,r):i.backgroundColor&&(r=i.backgroundColor),r},getPointBorderColor:function(e,a){var r=this.chart.options.elements.point.borderColor,i=this.getDataset(),n=e.custom||{};return n.borderColor?r=n.borderColor:i.pointBorderColor?r=t.getValueAtIndexOrDefault(i.pointBorderColor,a,r):i.borderColor&&(r=i.borderColor),r},getPointBorderWidth:function(e,a){var r=this.chart.options.elements.point.borderWidth,i=this.getDataset(),n=e.custom||{};return isNaN(n.borderWidth)?isNaN(i.pointBorderWidth)?isNaN(i.borderWidth)||(r=i.borderWidth):r=t.getValueAtIndexOrDefault(i.pointBorderWidth,a,r):r=n.borderWidth,r},updateElement:function(e,a,r){var h,v,i=this,n=i.getMeta(),o=e.custom||{},s=i.getDataset(),l=i.index,u=s.data[a],d=i.getScaleForId(n.yAxisID),c=i.getScaleForId(n.xAxisID),f=i.chart.options.elements.point,p=i.chart.data.labels||[],g=1===p.length||1===s.data.length||i.chart.isCombo;void 0!==s.radius&&void 0===s.pointRadius&&(s.pointRadius=s.radius),void 0!==s.hitRadius&&void 0===s.pointHitRadius&&(s.pointHitRadius=s.hitRadius),h=c.getPixelForValue("object"==typeof u?u:NaN,a,l,g),v=r?d.getBasePixel():i.calculatePointY(u,a,l),e._xScale=c,e._yScale=d,e._datasetIndex=l,e._index=a,e._model={x:h,y:v,skip:o.skip||isNaN(h)||isNaN(v),radius:o.radius||t.getValueAtIndexOrDefault(s.pointRadius,a,f.radius),pointStyle:o.pointStyle||t.getValueAtIndexOrDefault(s.pointStyle,a,f.pointStyle),backgroundColor:i.getPointBackgroun
314dColor(e,a),borderColor:i.getPointBorderColor(e,a),borderWidth:i.getPointBorderWidth(e,a),tension:n.dataset._model?n.dataset._model.tension:0,steppedLine:n.dataset._model?n.dataset._model.steppedLine:!1,hitRadius:o.hitRadius||t.getValueAtIndexOrDefault(s.pointHitRadius,a,f.hitRadius)}},calculatePointY:function(e,t,a){var u,d,c,r=this,i=r.chart,n=r.getMeta(),o=r.getScaleForId(n.yAxisID),s=0,l=0;if(o.options.stacked){for(u=0;a>u;u++)if(d=i.data.datasets[u],c=i.getDatasetMeta(u),"line"===c.type&&c.yAxisID===o.id&&i.isDatasetVisible(u)){var f=Number(o.getRightValue(d.data[t]));0>f?l+=f||0:s+=f||0}var h=Number(o.getRightValue(e));return 0>h?o.getPixelForValue(l+h):o.getPixelForValue(s+h)}return o.getPixelForValue(e)},updateBezierControlPoints:function(){function d(e,t,a){return Math.max(Math.min(e,a),t)}var n,o,s,l,u,e=this,a=e.getMeta(),r=e.chart.chartArea,i=a.data||[];if(a.dataset._model.spanGaps&&(i=i.filter(function(e){return!e._model.skip})),"monotone"===a.dataset._model.cubicInterpolationMode)t.splineCurveMonotone(i);else for(n=0,o=i.length;o>n;++n)s=i[n],l=s._model,u=t.splineCurve(t.previousItem(i,n)._model,l,t.nextItem(i,n)._model,a.dataset._model.tension),l.controlPointPreviousX=u.previous.x,l.controlPointPreviousY=u.previous.y,l.controlPointNextX=u.next.x,l.controlPointNextY=u.next.y;if(e.chart.options.elements.line.capBezierPoints)for(n=0,o=i.length;o>n;++n)l=i[n]._model,l.controlPointPreviousX=d(l.controlPointPreviousX,r.left,r.right),l.controlPointPreviousY=d(l.controlPointPreviousY,r.top,r.bottom),l.controlPointNextX=d(l.controlPointNextX,r.left,r.right),l.controlPointNextY=d(l.controlPointNextY,r.top,r.bottom)},draw:function(){var t=this,r=t.chart,i=t.getMeta(),n=i.data||[],o=r.chartArea,s=n.length,l=0;for(e.canvasHelpers.clipArea(r.ctx,o),a(t.getDataset(),r.options)&&i.dataset.draw(),e.canvasHelpers.unclipArea(r.ctx);s>l;++l)n[l].draw(o)},setHoverStyle:function(e){var a=this.chart.data.datasets[e._datasetIndex],r=e._index,i=e.custom||{},n=e._model;n.radius=i.hoverRadius||t.getValueAtIndexOrDefault(a.pointHoverRadius,r,this.chart.options.elements.point.hoverRadius),n.backgroundColor=i.hoverBackgroundColor||t.getValueAtIndexOrDefault(a.pointHoverBackgroundColor,r,t.getHoverColor(n.backgroundColor)),n.borderColor=i.hoverBorderColor||t.getValueAtIndexOrDefault(a.pointHoverBorderColor,r,t.getHoverColor(n.borderColor)),n.borderWidth=i.hoverBorderWidth||t.getValueAtIndexOrDefault(a.pointHoverBorderWidth,r,n.borderWidth)},removeHoverStyle:function(e){var a=this,r=a.chart.data.datasets[e._datasetIndex],i=e._index,n=e.custom||{},o=e._model;void 0!==r.radius&&void 0===r.pointRadius&&(r.pointRadius=r.radius),o.radius=n.radius||t.getValueAtIndexOrDefault(r.pointRadius,i,a.chart.options.elements.point.radius),o.backgroundColor=a.getPointBackgroun
314dColor(e,i),o.borderColor=a.getPointBorderColor(e,i),o.borderWidth=a.getPointBorderWidth(e,i)}})}},{}],19:[function(e,t,a){"use strict";t.exports=function(e){var t=e.helpers;e.defaults.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,aspectRatio:1,legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');var a=e.data,r=a.datasets,i=a.labels;if(r.length)for(var n=0;n<r[0].data.length;++n)t.push('<li><span style="background-color:'+r[0].backgroundColor[n]+'"></span>'),i[n]&&t.push(i[n]),t.push("</li>");return t.push("</ul>"),t.join("")},legend:{labels:{generateLabels:function(e){var a=e.data;return a.labels.length&&a.datasets.length?a.labels.map(function(r,i){var n=e.getDatasetMeta(0),o=a.datasets[0],s=n.data[i],l=s.custom||{},u=t.getValueAtIndexOrDefault,d=e.options.elements.arc,c=l.backgroundColor?l.backgroundColor:u(o.backgroundColor,i,d.backgroundColor),f=l.borderColor?l.borderColor:u(o.borderColor,i,d.borderColor),h=l.borderWidth?l.borderWidth:u(o.borderWidth,i,d.borderWidth);return{text:r,fillStyle:c,strokeStyle:f,lineWidth:h,hidden:isNaN(o.data[i])||n.data[i].hidden,index:i}}):[]}},onClick:function(e,t){var i,n,o,a=t.index,r=this.chart;for(i=0,n=(r.data.datasets||[]).length;n>i;++i)o=r.getDatasetMeta(i),o.data[a].hidden=!o.data[a].hidden;r.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}},e.controllers.polarArea=e.DatasetController.extend({dataElementType:e.elements.Arc,linkScales:t.noop,update:function(e){var a=this,r=a.chart,i=r.chartArea,n=a.getMeta(),o=r.options,s=o.elements.arc,l=Math.min(i.right-i.left,i.bottom-i.top);r.outerRadius=Math.max((l-s.borderWidth/2)/2,0),r.innerRadius=Math.max(o.cutoutPercentage?r.outerRadius/100*o.cutoutPercentage:1,0),r.radiusLength=(r.outerRadius-r.innerRadius)/r.getVisibleDatasetCount(),a.outerRadius=r.outerRadius-r.radiusLength*a.index,a.innerRadius=a.outerRadius-r.radiusLength,n.count=a.countVisibleElements(),t.each(n.data,function(t,r){a.updateElement(t,r,e)})},updateElement:function(e,a,r){for(var i=this,n=i.chart,o=i.getDataset(),s=n.options,l=s.animation,u=n.scale,d=t.getValueAtIndexOrDefault,c=n.data.labels,f=i.calculateCircumference(o.data[a]),h=u.xCenter,v=u.yCenter,p=0,g=i.getMeta(),m=0;a>m;++m)isNaN(o.data[m])||g.data[m].hidden||++p;var b=s.startAngle,y=e.hidden?0:u.getDistanceFromCenterForValue(o.data[a]),x=b+f*p,w=x+(e.hidden?0:f),k=l.animateScale?0:u.getDistanceFromCenterForValue(o.data[a]);t.extend(e,{_datasetIndex:i.index,_index:a,_scale:u,_model:{x:h,y:v,innerRadius:0,outerRadius:r?k:y,startAngle:r&&l.animateRotate?b:x,endAngle:r&&l.animateRotate?b:w,label:d(c,a,c[a])}}),i.removeHoverStyle(e),e.pivot()},removeHoverStyle:function(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},countVisibleElements:function(){var e=this.getDataset(),a=this.getMeta(),r=0;return t.each(a.data,function(t,a){isNaN(e.data[a])||t.hidden||r++}),r},calculateCircumference:function(e){var t=this.getMeta().count;return t>0&&!isNaN(e)?2*Math.PI/t:0}})}},{}],20:[function(e,t,a){"use strict";t.exports=function(e){var t=e.helpers;e.defaults.radar={aspectRatio:1,scale:{type:"radialLinear"},elements:{line:{tension:0}}},e.controllers.radar=e.DatasetController.extend({datasetElementType:e.elements.Line,dataElementType:e.elements.Point,linkScales:t.noop,update:function(e){var a=this,r=a.getMeta(),i=r.dataset,n=r.data,o=i.custom||{},s=a.getDataset(),l=a.chart.options.elements.line,u=a.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),t.extend(r.dataset,{_datasetIndex:a.index,_scale:u,_children:n,_loop:!0,_model:{tension:o.tension?o.tension:t.getValueOrDefault(s.lineTension,l.tension),backgroundColor:o.backgroundColor?o.backgroundColor:s.backgroundColor||l.backgroundColor,borderWidth:o.borderWidth?o.borderWidth:s.borderWidth||l.borderWidth,borderColor:o.borderColor?o.borderColor:s.borderColor||l.borderColor,fill:o.fill?o.fill:void 0!==s.fill?s.fill:l.fill,borderCapStyle:o.borderCapStyle?o.borderCapStyle:s.borderCapStyle||l.borderCapStyle,borderDash:o.borderDash?o.borderDash:s.borderDash||l.borderDash,borderDashOffset:o.borderDashOffset?o.borderDashOffset:s.borderDashOffset||l.borderDashOffset,borderJoinStyle:o.borderJoinStyle?o.borderJoinStyle:s.borderJoinStyle||l.borderJoinStyle}}),r.dataset.pivot(),t.each(n,function(t,r){a.updateElement(t,r,e)},a),a.updateBezierControlPoints()},updateElement:function(e,a,r){var i=this,n=e.custom||{},o=i.getDataset(),s=i.chart.scale,l=i.chart.options.elements.point,u=s.getPointPositionForValue(a,o.data[a]);void 0!==o.radius&&void 0===o.pointRadius&&(o.pointRadius=o.radius),void 0!==o.hitRadius&&void 0===o.pointHitRadius&&(o.pointHitRadius=o.hitRadius),t.extend(e,{_datasetIndex:i.index,_index:a,_scale:s,_model:{x:r?s.xCenter:u.x,y:r?s.yCenter:u.y,tension:n.tension?n.tension:t.getValueOrDefault(o.lineTension,i.chart.options.elements.line.tension),radius:n.radius?n.radius:t.getValueAtIndexOrDefault(o.pointRadius,a,l.radius),backgroundColor:n.backgroundColor?n.backgroundColor:t.getValueAtIndexOrDefault(o.pointBackgroun
vendor: 1,978 bytes, line 314
314dColor,a,l.backgroundColor),borderColor:n.borderColor?n.borderColor:t.getValueAtIndexOrDefault(o.pointBorderColor,a,l.borderColor),borderWidth:n.borderWidth?n.borderWidth:t.getValueAtIndexOrDefault(o.pointBorderWidth,a,l.borderWidth),pointStyle:n.pointStyle?n.pointStyle:t.getValueAtIndexOrDefault(o.pointStyle,a,l.pointStyle),hitRadius:n.hitRadius?n.hitRadius:t.getValueAtIndexOrDefault(o.pointHitRadius,a,l.hitRadius)}}),e._model.skip=n.skip?n.skip:isNaN(e._model.x)||isNaN(e._model.y)},updateBezierControlPoints:function(){var e=this.chart.chartArea,a=this.getMeta();t.each(a.data,function(r,i){var n=r._model,o=t.splineCurve(t.previousItem(a.data,i,!0)._model,n,t.nextItem(a.data,i,!0)._model,n.tension);n.controlPointPreviousX=Math.max(Math.min(o.previous.x,e.right),e.left),n.controlPointPreviousY=Math.max(Math.min(o.previous.y,e.bottom),e.top),n.controlPointNextX=Math.max(Math.min(o.next.x,e.right),e.left),n.controlPointNextY=Math.max(Math.min(o.next.y,e.bottom),e.top),r.pivot()})},setHoverStyle:function(e){var a=this.chart.data.datasets[e._datasetIndex],r=e.custom||{},i=e._index,n=e._model;n.radius=r.hoverRadius?r.hoverRadius:t.getValueAtIndexOrDefault(a.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),n.backgroundColor=r.hoverBackgroundColor?r.hoverBackgroundColor:t.getValueAtIndexOrDefault(a.pointHoverBackgroundColor,i,t.getHoverColor(n.backgroundColor)),n.borderColor=r.hoverBorderColor?r.hoverBorderColor:t.getValueAtIndexOrDefault(a.pointHoverBorderColor,i,t.getHoverColor(n.borderColor)),n.borderWidth=r.hoverBorderWidth?r.hoverBorderWidth:t.getValueAtIndexOrDefault(a.pointHoverBorderWidth,i,n.borderWidth)},removeHoverStyle:function(e){var a=this.chart.data.datasets[e._datasetIndex],r=e.custom||{},i=e._index,n=e._model,o=this.chart.options.elements.point;n.radius=r.radius?r.radius:t.getValueAtIndexOrDefault(a.pointRadius,i,o.radius),n.backgroundColor=r.backgroundColor?r.backgroundColor:t.getValueAtIndexOrDefault(a.pointBackgroun
314dColor,i,o.backgroundColor),n.borderColor=r.borderColor?r.borderColor:t.getValueAtIndexOrDefault(a.pointBorderColor,i,o.borderColor),n.borderWidth=r.borderWidth?r.borderWidth:t.getValueAtIndexOrDefault(a.pointBorderWidth,i,o.borderWidth)}})}},{}],21:[function(e,t,a){"use strict";t.exports=function(e){var t=e.helpers;e.defaults.global.animation={duration:1e3,easing:"easeOutQuart",onProgress:t.noop,onComplete:t.noop},e.Animation=e.Element.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),e.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(e,t,a,r){var n,o,i=this.animations;for(t.chart=e,r||(e.animating=!0),n=0,o=i.length;o>n;++n)if(i[n].chart===e)return void(i[n]=t);i.push(t),1===i.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var a=t.findIndex(this.animations,function(t){return t.chart===e});-1!==a&&(this.animations.splice(a,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=t.requestAnimFrame.call(window,function(){e.request=null,e.startDigest()}))},startDigest:function(){var e=this,t=Date.now(),a=0;e.dropFrames>1&&(a=Math.floor(e.dropFrames),e.dropFrames=e.dropFrames%1),e.advance(1+a);var r=Date.now();e.dropFrames+=(r-t)/e.frameDuration,e.animations.length>0&&e.requestAnimationFrame()},advance:function(e){for(var r,i,a=this.animations,n=0;n<a.length;)r=a[n],i=r.chart,r.currentStep=(r.currentStep||0)+e,r.currentStep=Math.min(r.currentStep,r.numSteps),t.callback(r.render,[i,r],i),t.callback(r.onAnimationProgress,[r],i),r.currentStep>=r.numSteps?(t.callback(r.onAnimationComplete,[r],i),i.animating=!1,a.splice(n,1)):++n}},Object.defineProperty(e.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(e.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}})}},{}],22:[function(e,t,a){"use strict";t.exports=function(e){var t=e.canvasHelpers={};t.drawPoint=function(t,a,r,i,n){var o,s,l,u,d,c;if("object"==typeof a&&(o=a.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return void t.drawImage(a,i-a.width/2,n-a.height/2,a.width,a.height);if(!(isNaN(r)||0>=r)){switch(a){default:t.beginPath(),t.arc(i,n,r,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),s=3*r/Math.sqrt(3),d=s*Math.sqrt(3)/2,t.moveTo(i-s/2,n+d/3),t.lineTo(i+s/2,n+d/3),t.lineTo(i,n-2*d/3),t.closePath(),t.fill();break;case"rect":c=1/Math.SQRT2*r,t.beginPath(),t.fillRect(i-c,n-c,2*c,2*c),t.strokeRect(i-c,n-c,2*c,2*c);break;case"rectRounded":var f=r/Math.SQRT2,h=i-f,v=n-f,p=Math.SQRT2*r;e.helpers.drawRoundedRectangle(t,h,v,p,p,r/2),t.fill();break;case"rectRot":c=1/Math.SQRT2*r,t.beginPath(),t.moveTo(i-c,n),t.lineTo(i,n+c),t.lineTo(i+c,n),t.lineTo(i,n-c),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(i,n+r),t.lineTo(i,n-r),t.moveTo(i-r,n),t.lineTo(i+r,n),t.closePath();break;case"crossRot":t.beginPath(),l=Math.cos(Math.PI/4)*r,u=Math.sin(Math.PI/4)*r,t.moveTo(i-l,n-u),t.lineTo(i+l,n+u),t.moveTo(i-l,n+u),t.lineTo(i+l,n-u),t.closePath();break;case"star":t.beginPath(),t.moveTo(i,n+r),t.lineTo(i,n-r),t.moveTo(i-r,n),t.lineTo(i+r,n),l=Math.cos(Math.PI/4)*r,u=Math.sin(Math.PI/4)*r,t.moveTo(i-l,n-u),t.lineTo(i+l,n+u),t.moveTo(i-l,n+u),t.lineTo(i+l,n-u),t.closePath();break;case"line":t.beginPath(),t.moveTo(i-r,n),t.lineTo(i+r,n),t.closePath();break;case"dash":t.beginPath(),t.moveTo(i,n),t.lineTo(i+r,n),t.closePath()}t.stroke()}},t.clipArea=function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},t.unclipArea=function(e){e.restore()},t.lineTo=function(e,t,a,r){return a.steppedLine?("after"===a.steppedLine?e.lineTo(t.x,a.y):e.lineTo(a.x,t.y),void e.lineTo(a.x,a.y)):a.tension?void e.bezierCurveTo(r?t.controlPointPreviousX:t.controlPointNextX,r?t.controlPointPreviousY:t.controlPointNextY,r?a.controlPointNextX:a.controlPointPreviousX,r?a.controlPointNextY:a.controlPointPreviousY,a.x,a.y):void e.lineTo(a.x,a.y)},e.helpers.canvas=t}},{}],23:[function(e,t,a){"use strict";
314t.exports=function(e){function i(a){a=a||{};var r=a.data=a.data||{};return r.datasets=r.datasets||[],r.labels=r.labels||[],a.options=t.configMerge(e.defaults.global,e.defaults[a.type],a.options||{}),a}function n(e){var t=e.options;t.scale?e.scale.options=t.scale:t.scales&&t.scales.xAxes.concat(t.scales.yAxes).forEach(function(t){e.scales[t.id].options=t}),e.tooltip._options=t.tooltips}function o(e){return"top"===e||"bottom"===e}var t=e.helpers,a=e.plugins,r=e.platform;e.types={},e.instances={},e.controllers={},t.extend(e.prototype,{construct:function(a,n){var o=this;n=i(n);var s=r.acquireContext(a,n),l=s&&s.canvas,u=l&&l.height,d=l&&l.width;return o.id=t.uid(),o.ctx=s,o.canvas=l,o.config=n,o.width=d,o.height=u,o.aspectRatio=u?d/u:null,o.options=n.options,o._bufferedRender=!1,o.chart=o,o.controller=o,e.instances[o.id]=o,Object.defineProperty(o,"data",{get:function(){return o.config.data},set:function(e){o.config.data=e}}),s&&l?(o.initialize(),void o.update()):void console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return a.notify(e,"beforeInit"),t.retinaScale(e),e.bindEvents(),e.options.responsive&&e.resize(!0),e.ensureScalesHaveIDs(),e.buildScales(),e.initToolTip(),a.notify(e,"afterInit"),e},clear:function(){return t.clear(this),this},stop:function(){return e.animationService.cancelAnimation(this),this},resize:function(e){var r=this,i=r.options,n=r.canvas,o=i.maintainAspectRatio&&r.aspectRatio||null,s=Math.floor(t.getMaximumWidth(n)),l=Math.floor(o?s/o:t.getMaximumHeight(n));if((r.width!==s||r.height!==l)&&(n.width=r.width=s,n.height=r.height=l,n.style.width=s+"px",n.style.height=l+"px",t.retinaScale(r),!e)){var u={width:s,height:l};a.notify(r,"resize",[u]),r.options.onResize&&r.options.onResize(r,u),r.stop(),r.update(r.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var e=this.options,a=e.scales||{},r=e.scale;t.each(a.xAxes,function(e,t){e.id=e.id||"x-axis-"+t}),t.each(a.yAxes,function(e,t){e.id=e.id||"y-axis-"+t}),r&&(r.id=r.id||"scale")},buildScales:function(){var a=this,r=a.options,i=a.scales={},n=[];r.scales&&(n=n.concat((r.scales.xAxes||[]).map(function(e){return{options:e,dtype:"category",dposition:"bottom"}}),(r.scales.yAxes||[]).map(function(e){return{options:e,dtype:"linear",dposition:"left"}}))),r.scale&&n.push({options:r.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),t.each(n,function(r){var n=r.options,s=t.getValueOrDefault(n.type,r.dtype),l=e.scaleService.getScaleConstructor(s);if(l){o(n.position)!==o(r.dposition)&&(n.position=r.dposition);var u=new l({id:n.id,options:n,ctx:a.ctx,chart:a});i[u.id]=u,r.isDefault&&(a.scale=u)}}),e.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var a=this,r=[],i=[];if(t.each(a.data.datasets,function(t,n){var o=a.getDatasetMeta(n);if(o.type||(o.type=t.type||a.config.type),r.push(o.type),o.controller)o.controller.updateIndex(n);else{var s=e.controllers[o.type];if(void 0===s)throw new Error('"'+o.type+'" is not a chart type.');o.controller=new s(a,n),i.push(o.controller)}},a),r.length>1)for(var n=1;n<r.length;n++)if(r[n]!==r[n-1]){a.isCombo=!0;break}return i},resetElements:function(){var e=this;t.each(e.data.datasets,function(t,a){
315e.getDatasetMeta(a).controller.reset()},e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e,r){var i=this;if(n(i),a.notify(i,"beforeUpdate")!==!1){i.tooltip._data=i.data;var o=i.buildOrUpdateControllers();t.each(i.data.datasets,function(e,t){i.getDatasetMeta(t).controller.buildOrUpdateElements()},i),i.updateLayout(),t.each(o,function(e){e.reset()}),i.updateDatasets(),a.notify(i,"afterUpdate"),i._bufferedRender?i._bufferedRequest={lazy:r,duration:e}:i.render(e,r)}},updateLayout:function(){var t=this;a.notify(t,"beforeLayout")!==!1&&(e.layoutService.update(this,this.width,this.height),a.notify(t,"afterScaleUpdate"),a.notify(t,"afterLayout"))},updateDatasets:function(){var e=this;if(a.notify(e,"beforeDatasetsUpdate")!==!1){for(var t=0,r=e.data.datasets.length;r>t;++t)e.updateDataset(t);a.notify(e,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this,r=t.getDatasetMeta(e),i={meta:r,index:e};a.notify(t,"beforeDatasetUpdate",[i])!==!1&&(r.controller.update(
315),a.notify(t,"afterDatasetUpdate",[i]))},render:function(r,i){var n=this;if(a.notify(n,"beforeRender")!==!1){var o=n.options.animation,s=function(e){a.notify(n,"afterRender"),t.callback(o&&o.onComplete,[e],n)};if(o&&("undefined"!=typeof r&&0!==r||"undefined"==typeof r&&0!==o.duration)){var l=new e.Animation({numSteps:(r||o.duration)/16.66,easing:o.easing,render:function(e,a){var r=t.easingEffects[a.easing],i=a.currentStep,n=i/a.numSteps;e.draw(r(n),n,i)},onAnimationProgress:o.onProgress,onAnimationComplete:s});e.animationService.addAnimation(n,l,r,i)}else n.draw(),s(new e.Animation({numSteps:0,chart:n}));return n}},draw:function(e){var r=this;r.clear(),(void 0===e||null===e)&&(e=1),r.transition(e),a.notify(r,"beforeDraw",[e])!==!1&&(t.each(r.boxes,function(e){e.draw(r.chartArea)},r),r.scale&&r.scale.draw(),r.drawDatasets(e),r.tooltip.draw(),a.notify(r,"afterDraw",[e]))},transition:function(e){for(var t=this,a=0,r=(t.data.datasets||[]).length;r>a;++a)t.isDatasetVisible(a)&&t.getDatasetMeta(a).controller.transition(e);t.tooltip.transition(e)},drawDatasets:function(e){var t=this;if(a.notify(t,"beforeDatasetsDraw",[e])!==!1){for(var r=(t.data.datasets||[]).length-1;r>=0;--r)t.isDatasetVisible(r)&&t.drawDataset(r,e);a.notify(t,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var r=this,i=r.getDatasetMeta(e),n={meta:i,index:e,easingValue:t};a.notify(r,"beforeDatasetDraw",[n])!==!1&&(i.controller.draw(t),a.notify(r,"afterDatasetDraw",[n]))},getElementAtEvent:function(t){return e.Interaction.modes.single(this,t)},getElementsAtEvent:function(t){return e.Interaction.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return e.Interaction.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,a,r){var i=e.Interaction.modes[a];return"function"==typeof i?i(this,t,r):[]},getDatasetAtEvent:function(t){return e.Interaction.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(e){var t=this,a=t.data.datasets[e];a._meta||(a._meta={});var r=a._meta[t.id];return r||(r=a._meta[t.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),r},getVisibleDatasetCount:function(){for(var e=0,t=0,a=this.data.datasets.length;a>t;++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)},destroy:function(){var o,s,l,i=this,n=i.canvas;for(i.stop(),s=0,l=i.data.datasets.length;l>s;++s)o=i.getDatasetMeta(s),o.controller&&(o.controller.destroy(),o.controller=null);n&&(i.unbindEvents(),t.clear(i),r.releaseContext(i.ctx),i.canvas=null,i.ctx=null),a.notify(i,"destroy"),delete e.instances[i.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new e.Tooltip({_chart:t,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t),t.tooltip.initialize()},bindEvents:function(){var e=this,a=e._listeners={},i=function(){e.eventHandler.apply(e,arguments)};t.each(e.options.events,function(t){r.addEventListener(e,t,i),a[t]=i}),e.options.responsive&&(i=function(){e.resize()},r.addEventListener(e,"resize",i),a.resize=i)},unbindEvents:function(){var e=this,a=e._listeners;a&&(delete e._listeners,t.each(a,function(t,a){r.removeEventListener(e,a,t)}))},updateHoverStyle:function(e,t,a){var i,n,o,r=a?"setHoverStyle":"removeHoverStyle";for(n=0,o=e.length;o>n;++n)i=e[n],i&&this.getDatasetMeta(i._datasetIndex).controller[r](i)},eventHandler:function(e){var t=this,r=t.tooltip;if(a.notify(t,"beforeEvent",[e])!==!1){t._bufferedRender=!0,t._bufferedRequest=null;var i=t.handleEvent(e);i|=r&&r.handleEvent(e),a.notify(t,"afterEvent",[e]);var n=t._bufferedRequest;return n?t.render(n.duration,n.lazy):i&&!t.animating&&(t.stop(),t.render(t.options.hover.animationDuration,!0)),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var a=this,r=a.options||{},i=r.hover,n=!1;return a.lastActive=a.lastActive||[],"mouseout"===e.type?a.active=[]:a.active=a.getElementsAtEventForMode(e,i.mode,i),i.onHover&&i.onHover.call(a,e["native"],a.active),("mouseup"===e.type||"click"===e.type)&&r.onClick&&r.onClick.call(a,e["native"],a.active),a.lastActive.length&&a.updateHoverStyle(a.lastActive,i.mode,!1),a.active.length&&i.mode&&a.updateHoverStyle(a.active,i.mode,!0),n=!t.arrayEquals(a.active,a.lastActive),a.lastActive=a.active,n}}),e.Controller=e}},{}],24:[function(e,t,a){"use strict";
315t.exports=function(e){function r(e,r){return e._chartjs?void e._chartjs.listeners.push(r):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[r]}}),void a.forEach(function(a){var r="onData"+a.charAt(0).toUpperCase()+a.slice(1),i=e[a];Object.defineProperty(e,a,{configurable:!0,enumerable:!1,value:function(){var a=Array.prototype.slice.call(arguments),n=i.apply(this,a);return t.each(e._chartjs.listeners,function(e){"function"==typeof e[r]&&e[r].apply(e,a)}),n}})}))}function i(e,t){var r=e._chartjs;if(r){var i=r.listeners,n=i.indexOf(t);-1!==n&&i.splice(n,1),i.length>0||(a.forEach(function(t){delete e[t]}),delete e._chartjs)}}var t=e.helpers,a=["push","pop","shift","splice","unshift"];e.DatasetController=function(e,t){this.initialize(e,t)},t.extend(e.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(e,t){var a=this;a.chart=e,a.index=t,a.linkScales(),a.addElements()},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),a=e.getDataset();null===t.xAxisID&&(t.xAxisID=a.xAxisID||e.chart.options.scales.xAxes[0].id),null===t.yAxisID&&(t.yAxisID=a.yAxisID||e.chart.options.scales.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]},reset:function(){this.update(!0)},destroy:function(){this._data&&i(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,a=t.dataElementType;return a&&new a({_chart:t.chart,_datasetIndex:t.index,_index:e})},addElements:function(){var i,n,e=this,t=e.getMeta(),a=e.getDataset().data||[],r=t.data;for(i=0,n=a.length;n>i;++i)r[i]=r[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(),a=t.data||(t.data=[]);e._data!==a&&(e._data&&i(e._data,e),r(a,e),e._data=a),e.resyncElements()},update:t.noop,transition:function(e){for(var t=this.getMeta(),a=t.data||[],r=a.length,i=0;r>i;++i)a[i].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],a=t.length,r=0;for(e.dataset&&e.dataset.draw();a>r;++r)t[r].draw()},removeHoverStyle:function(e,a){var r=this.chart.data.datasets[e._datasetIndex],i=e._index,n=e.custom||{},o=t.getValueAtIndexOrDefault,s=e._model;s.backgroundColor=n.backgroundColor?n.backgroundColor:o(r.backgroundColor,i,a.backgroundColor),s.borderColor=n.borderColor?n.borderColor:o(r.borderColor,i,a.borderColor),s.borderWidth=n.borderWidth?n.borderWidth:o(r.borderWidth,i,a.borderWidth)},setHoverStyle:function(e){var a=this.chart.data.datasets[e._datasetIndex],r=e._index,i=e.custom||{},n=t.getValueAtIndexOrDefault,o=t.getHoverColor,s=e._model;s.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:n(a.hoverBackgroundColor,r,o(s.backgroundColor)),s.borderColor=i.hoverBorderColor?i.hoverBorderColor:n(a.hoverBorderColor,r,o(s.borderColor)),s.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:n(a.hoverBorderWidth,r,s.borderWidth)},resyncElements:function(){var e=this,t=e.getMeta(),a=e.getDataset().data,r=t.data.length,i=a.length;r>i?t.data.splice(i,r-i):i>r&&e.insertElements(r,i-r)},insertElements:function(e,t){for(var a=0;t>a;++a)this.addElementAndReset(e+a)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},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)}}),e.DatasetController.extend=t.inherits}},{}],25:[function(e,t,a){"use strict";var r=e(3);t.exports=function(e){function a(e,t,a,i){var o,s,l,u,d,c,f,h,v,n=Object.keys(a);for(o=0,s=n.length;s>o;++o)if(l=n[o],c=a[l],t.hasOwnProperty(l)||(t[l]=c),u=t[l],u!==c&&"_"!==l[0]){if(e.hasOwnProperty(l)||(e[l]=u),d=e[l],f=typeof c,f===typeof d)if("string"===f){if(h=r(d),h.valid&&(v=r(c),v.valid)){t[l]=v.mix(h,i).rgbString();continue}}else if("number"===f&&isFinite(d)&&isFinite(c)){t[l]=d+(c-d)*i;continue}t[l]=c}}var t=e.helpers;e.elements={},e.Element=function(e){t.extend(this,e),this.initialize.apply(this,arguments)},t.extend(e.Element.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=t.clone(e._model)),e._start={},e},transition:function(e){var t=this,r=t._model,i=t._start,n=t._view;
315return r&&1!==e?(n||(n=t._view={}),i||(i=t._start={}),a(i,n,r,e),t):(t._view=r,t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return t.isNumber(this._model.x)&&t.isNumber(this._model.y)}}),e.Element.extend=t.inherits}},{3:3}],26:[function(e,t,a){"use strict";var r=e(3);t.exports=function(e){function i(e,t,a){var r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[a])):r=e,r}function n(e){return void 0!==e&&null!==e&&"none"!==e}function o(e,t,a){var r=document.defaultView,o=e.parentNode,s=r.getComputedStyle(e)[t],l=r.getComputedStyle(o)[t],u=n(s),d=n(l),c=Number.POSITIVE_INFINITY;return u||d?Math.min(u?i(s,e,a):c,d?i(l,o,a):c):"none"}var t=e.helpers={};t.each=function(e,a,r,i){var n,o;if(t.isArray(e))if(o=e.length,i)for(n=o-1;n>=0;n--)a.call(r,e[n],n);else for(n=0;o>n;n++)a.call(r,e[n],n);else if("object"==typeof e){var s=Object.keys(e);for(o=s.length,n=0;o>n;n++)a.call(r,e[s[n]],s[n])}},t.clone=function(e){var a={};return t.each(e,function(e,r){t.isArray(e)?a[r]=e.slice(0):"object"==typeof e&&null!==e?a[r]=t.clone(e):a[r]=e}),a},t.extend=function(e){for(var a=function(t,a){e[a]=t},r=1,i=arguments.length;i>r;r++)t.each(arguments[r],a);return e},t.configMerge=function(a){var r=t.clone(a);return t.each(Array.prototype.slice.call(arguments,1),function(a){t.each(a,function(a,i){var n=r.hasOwnProperty(i),o=n?r[i]:{};"scales"===i?r[i]=t.scaleMerge(o,a):"scale"===i?r[i]=t.configMerge(o,e.scaleService.getScaleDefaults(a.type),a):!n||"object"!=typeof o||t.isArray(o)||null===o||"object"!=typeof a||t.isArray(a)?r[i]=a:r[i]=t.configMerge(o,a)})}),r},t.scaleMerge=function(a,r){var i=t.clone(a);return t.each(r,function(a,r){"xAxes"===r||"yAxes"===r?i.hasOwnProperty(r)?t.each(a,function(a,n){var o=t.getValueOrDefault(a.type,"xAxes"===r?"category":"linear"),s=e.scaleService.getScaleDefaults(o);n>=i[r].length||!i[r][n].type?i[r].push(t.configMerge(s,a)):a.type&&a.type!==i[r][n].type?i[r][n]=t.configMerge(i[r][n],s,a):i[r][n]=t.configMerge(i[r][n],a)}):(i[r]=[],t.each(a,function(a){var n=t.getValueOrDefault(a.type,"xAxes"===r?"category":"linear");i[r].push(t.configMerge(e.scaleService.getScaleDefaults(n),a))})):i.hasOwnProperty(r)&&"object"==typeof i[r]&&null!==i[r]&&"object"==typeof a?i[r]=t.configMerge(i[r],a):i[r]=a}),i},t.getValueAtIndexOrDefault=function(e,a,r){return void 0===e||null===e?r:t.isArray(e)?a<e.length?e[a]:r:e},t.getValueOrDefault=function(e,t){return void 0===e?t:e},t.indexOf=Array.prototype.indexOf?function(e,t){return e.indexOf(t)}:function(e,t){for(var a=0,r=e.length;r>a;++a)if(e[a]===t)return a;return-1},t.where=function(e,a){if(t.isArray(e)&&Array.prototype.filter)return e.filter(a);var r=[];return t.each(e,function(e){a(e)&&r.push(e)}),r},t.findIndex=Array.prototype.findIndex?function(e,t,a){return e.findIndex(t,a)}:function(e,t,a){a=void 0===a?e:a;for(var r=0,i=e.length;i>r;++r)if(t.call(a,e[r],r,e))return r;return-1},t.findNextWhere=function(e,t,a){(void 0===a||null===a)&&(a=-1);for(var r=a+1;r<e.length;r++){var i=e[r];if(t(i))return i}},t.findPreviousWhere=function(e,t,a){(void 0===a||null===a)&&(a=e.length);for(var r=a-1;r>=0;r--){var i=e[r];if(t(i))return i}},t.inherits=function(e){var a=this,r=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return a.apply(this,arguments)},i=function(){this.constructor=r};return i.prototype=a.prototype,r.prototype=new i,r.extend=t.inherits,e&&t.extend(r.prototype,e),r.__super__=a.prototype,r},t.noop=function(){},t.uid=function(){var e=0;return function(){return e++}}(),t.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},t.almostEquals=function(e,t,a){return Math.abs(e-t)<a},t.almostWhole=function(e,t){var a=Math.round(e);return e>a-t&&a+t>e},t.max=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.max(e,t)},Number.NEGATIVE_INFINITY)},t.min=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.min(e,t)},Number.POSITIVE_INFINITY)},t.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return e=+e,0===e||isNaN(e)?e:e>0?1:-1},t.log10=Math.log10?function(e){return Math.log10(e)}:function(e){return Math.log(e)/Math.LN10},t.toRadians=function(e){return e*(Math.PI/180)},t.toDegrees=function(e){return e*(180/Math.PI)},t.getAngleFromPoint=function(e,t){var a=t.x-e.x,r=t.y-e.y,i=Math.sqrt(a*a+r*r),n=Math.atan2(r,a);return n<-.5*Math.PI&&(n+=2*Math.PI),{angle:n,distance:i}},t.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},t.aliasPixel=function(e){return e%2===0?0:.5},t.splineCurve=function(e,t,a,r){var i=e.skip?t:e,n=t,o=a.skip?t:a,s=Math.sqrt(Math.pow(n.x-i.x,2)+Math.pow(n.y-i.y,2)),l=Math.sqrt(Math.pow(o.x-n.x,2)+Math.pow(o.y-n.y,2)),u=s/(s+l),d=l/(s+l);u=isNaN(u)?0:u,d=isNaN(d)?0:d;var c=r*u,f=r*d;return{previous:{x:n.x-c*(o.x-i.x),y:n.y-c*(o.y-i.y)},next:{x:n.x+f*(o.x-i.x),y:n.y+f*(o.y-i.y)}}},t.EPSILON=Number.EPSILON||1e-14,t.splineCurveMonotone=function(e){var i,n,o,s,a=(e||[]).map(function(e){return{model:e._model,deltaK:0,mK:0}}),r=a.length;for(i=0;r>i;
315++i)if(o=a[i],!o.model.skip){if(n=i>0?a[i-1]:null,s=r-1>i?a[i+1]:null,s&&!s.model.skip){var l=s.model.x-o.model.x;o.deltaK=0!==l?(s.model.y-o.model.y)/l:0}!n||n.model.skip?o.mK=o.deltaK:!s||s.model.skip?o.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(o.deltaK)?o.mK=0:o.mK=(n.deltaK+o.deltaK)/2}var u,d,c,f;for(i=0;r-1>i;++i)o=a[i],s=a[i+1],o.model.skip||s.model.skip||(t.almostEquals(o.deltaK,0,this.EPSILON)?o.mK=s.mK=0:(u=o.mK/o.deltaK,d=s.mK/o.deltaK,f=Math.pow(u,2)+Math.pow(d,2),9>=f||(c=3/Math.sqrt(f),o.mK=u*c*o.deltaK,s.mK=d*c*o.deltaK)));var h;for(i=0;r>i;++i)o=a[i],o.model.skip||(n=i>0?a[i-1]:null,s=r-1>i?a[i+1]:null,n&&!n.model.skip&&(h=(o.model.x-n.model.x)/3,o.model.controlPointPreviousX=o.model.x-h,o.model.controlPointPreviousY=o.model.y-h*o.mK),s&&!s.model.skip&&(h=(s.model.x-o.model.x)/3,o.model.controlPointNextX=o.model.x+h,o.model.controlPointNextY=o.model.y+h*o.mK))},t.nextItem=function(e,t,a){return a?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},t.previousItem=function(e,t,a){return a?0>=t?e[e.length-1]:e[t-1]:0>=t?e[0]:e[t-1]},t.niceNum=function(e,a){var n,r=Math.floor(t.log10(e)),i=e/Math.pow(10,r);return n=a?1.5>i?1:3>i?2:7>i?5:10:1>=i?1:2>=i?2:5>=i?5:10,n*Math.pow(10,r)};var a=t.easingEffects={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-1*e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-0.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return 1*((e=e/1-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-1*((e=e/1-1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-0.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return 1*(e/=1)*e*e*e*e},easeOutQuint:function(e){return 1*((e=e/1-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/1*(Math.PI/2))+1},easeOutSine:function(e){return 1*Math.sin(e/1*(Math.PI/2))},easeInOutSine:function(e){return-0.5*(Math.cos(Math.PI*e/1)-1)},easeInExpo:function(e){return 0===e?1:1*Math.pow(2,10*(e/1-1))},easeOutExpo:function(e){return 1===e?1:1*(-Math.pow(2,-10*e/1)+1)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(-Math.pow(2,-10*--e)+2)},easeInCirc:function(e){return e>=1?e:-1*(Math.sqrt(1-(e/=1)*e)-1)},easeOutCirc:function(e){return 1*Math.sqrt(1-(e=e/1-1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-0.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,a=0,r=1;return 0===e?0:1===(e/=1)?1:(a||(a=.3),r<Math.abs(1)?(r=1,t=a/4):t=a/(2*Math.PI)*Math.asin(1/r),-(r*Math.pow(2,10*(e-=1))*Math.sin((1*e-t)*(2*Math.PI)/a)))},easeOutElastic:function(e){var t=1.70158,a=0,r=1;return 0===e?0:1===(e/=1)?1:(a||(a=.3),r<Math.abs(1)?(r=1,t=a/4):t=a/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*e)*Math.sin((1*e-t)*(2*Math.PI)/a)+1)},easeInOutElastic:function(e){var t=1.70158,a=0,r=1;return 0===e?0:2===(e/=.5)?1:(a||(a=1*(.3*1.5)),r<Math.abs(1)?(r=1,t=a/4):t=a/(2*Math.PI)*Math.asin(1/r),1>e?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((1*e-t)*(2*Math.PI)/a)):r*Math.pow(2,-10*(e-=1))*Math.sin((1*e-t)*(2*Math.PI)/a)*.5+1)},easeInBack:function(e){var t=1.70158;return 1*(e/=1)*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return 1*((e=e/1-1)*e*((t+1)*e+t)+1)},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:function(e){return 1-a.easeOutBounce(1-e)},easeOutBounce:function(e){return(e/=1)<1/2.75?1*(7.5625*e*e):2/2.75>e?1*(7.5625*(e-=1.5/2.75)*e+.75):2.5/2.75>e?1*(7.5625*(e-=2.25/2.75)*e+.9375):1*(7.5625*(e-=2.625/2.75)*e+.984375)},easeInOutBounce:function(e){return.5>e?.5*a.easeInBounce(2*e):.5*a.easeOutBounce(2*e-1)+.5}};t.requestAnimFrame=function(){return"undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)}}(),t.getRelativePosition=function(e,a){var r,i,n=e.originalEvent||e,o=e.currentTarget||e.srcElement,s=o.getBoundingClientRect(),l=n.touches;l&&l.length>0?(r=l[0].clientX,i=l[0].clientY):(r=n.clientX,i=n.clientY);var u=parseFloat(t.getStyle(o,"padding-left")),d=parseFloat(t.getStyle(o,"padding-top")),c=p
315arseFloat(t.getStyle(o,"padding-right")),f=parseFloat(t.getStyle(o,"padding-bottom")),h=s.right-s.left-u-c,v=s.bottom-s.top-d-f;return r=Math.round((r-s.left-u)/h*o.width/a.currentDevicePixelRatio),i=Math.round((i-s.top-d)/v*o.height/a.currentDevicePixelRatio),{x:r,y:i}},t.addEvent=function(e,t,a){e.addEventListener?e.addEventListener(t,a):e.attachEvent?e.attachEvent("on"+t,a):e["on"+t]=a},t.removeEvent=function(e,a,r){e.removeEventListener?e.removeEventListener(a,r,!1):e.detachEvent?e.detachEvent("on"+a,r):e["on"+a]=t.noop},t.getConstraintWidth=function(e){return o(e,"max-width","clientWidth")},t.getConstraintHeight=function(e){return o(e,"max-height","clientHeight")},t.getMaximumWidth=function(e){var a=e.parentNode,r=parseInt(t.getStyle(a,"padding-left"),10),i=parseInt(t.getStyle(a,"padding-right"),10),n=a.clientWidth-r-i,o=t.getConstraintWidth(e);return isNaN(o)?n:Math.min(n,o)},t.getMaximumHeight=function(e){var a=e.parentNode,r=parseInt(t.getStyle(a,"padding-top"),10),i=parseInt(t.getStyle(a,"padding-bottom"),10),n=a.clientHeight-r-i,o=t.getConstraintHeight(e);return isNaN(o)?n:Math.min(n,o)},t.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},t.retinaScale=function(e){var t=e.currentDevicePixelRatio=window.devicePixelRatio||1;if(1!==t){var a=e.canvas,r=e.height,i=e.width;a.height=r*t,a.width=i*t,e.ctx.scale(t,t),a.style.height=r+"px",a.style.width=i+"px"}},t.clear=function(e){e.ctx.clearRect(0,0,e.width,e.height)},t.fontString=function(e,t,a){return t+" "+e+"px "+a},t.longestText=function(e,a,r,i){i=i||{};var n=i.data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==a&&(n=i.data={},o=i.garbageCollect=[],i.font=a),e.font=a;var s=0;t.each(r,function(a){void 0!==a&&null!==a&&t.isArray(a)!==!0?s=t.measureText(e,n,o,s,a):t.isArray(a)&&t.each(a,function(a){void 0===a||null===a||t.isArray(a)||(s=t.measureText(e,n,o,s,a))})});var l=o.length/2;if(l>r.length){for(var u=0;l>u;u++)delete n[o[u]];o.splice(0,l)}return s},t.measureText=function(e,t,a,r,i){var n=t[i];return n||(n=t[i]=e.measureText(i).width,a.push(i)),n>r&&(r=n),r},t.numberOfLabelLines=function(e){var a=1;return t.each(e,function(e){t.isArray(e)&&e.length>a&&(a=e.length)}),a},t.drawRoundedRectangle=function(e,t,a,r,i,n){e.beginPath(),e.moveTo(t+n,a),e.lineTo(t+r-n,a),e.quadraticCurveTo(t+r,a,t+r,a+n),e.lineTo(t+r,a+i-n),e.quadraticCurveTo(t+r,a+i,t+r-n,a+i),e.lineTo(t+n,a+i),e.quadraticCurveTo(t,a+i,t,a+i-n),e.lineTo(t,a+n),e.quadraticCurveTo(t,a,t+n,a),e.closePath()},t.color=r?function(t){return t instanceof CanvasGradient&&(t=e.defaults.global.defaultColor),r(t)}:function(e){return console.error("Color.js not found!"),e},t.isArray=Array.isArray?function(e){return Array.isArray(e)}:function(e){return"[object Array]"===Object.prototype.toString.call(e)},t.arrayEquals=function(e,a){var r,i,n,o;if(!e||!a||e.length!==a.length)return!1;for(r=0,i=e.length;i>r;++r)if(n=e[r],o=a[r],n instanceof Array&&o instanceof Array){if(!t.arrayEquals(n,o))return!1}else if(n!==o)return!1;return!0},t.callback=function(e,t,a){e&&"function"==typeof e.call&&e.apply(a,t)},t.getHoverColor=function(e){return e instanceof CanvasPattern?e:t.color(e).saturate(.5).darken(.1).rgbString()},t.callCallback=t.callback}},{3:3}],27:[function(e,t,a){"use strict";t.exports=function(e){function a(e,a){return e["native"]?{x:e.x,y:e.y}:t.getRelativePosition(e,a)}function r(e,t){var r,i,n,o,s,a=e.data.datasets;for(i=0,o=a.length;o>i;++i)if(e.isDatasetVisible(i))for(r=e.getDatasetMeta(i),n=0,s=r.data.length;s>n;++n){var l=r.data[n];l._view.skip||t(l)}}function i(e,t){var a=[];return r(e,function(e){e.inRange(t.x,t.y)&&a.push(e)}),a}function n(e,a,i,n){var o=Number.POSITIVE_INFINITY,s=[];return n||(n=t.distanceBetweenPoints),r(e,function(e){if(!i||e.inRange(a.x,a.y)){var t=e.getCenterPoint(),r=n(a,t);o>r?(s=[e],o=r):r===o&&s.push(e)}}),s}function o(e,t,r){var o=a(t,e),s=function(e,t){return Math.abs(e.x-t.x)},l=r.intersect?i(e,o):n(e,o,!1,s),u=[];return l.length?(e.data.datasets.forEach(function(t,a){if(e.isDatasetVisible(a)){var r=e.getDatasetMeta(a),i=r.data[l[0]._index];i&&!i._view.skip&&u.push(i)}}),u):[]}var t=e.helpers;e.Interaction={modes:{single:function(e,t){var i=a(t,e),n=[];return r(e,function(e){return e.inRange(i.x,i.y)?(n.push(e),n):void 0}),n.slice(0,1)},label:o,index:o,dataset:function(e,t,r){var o=a(t,e),s=r.intersect?i(e,o):n(e,o,!1);return s.length>0&&(s=e.getDatasetMeta(s[0]._datasetIndex).data),s},"x-axis":function(e,t){return o(e,t,!0)},point:function(e,t){var r=a(t,e);return i(e,r)},nearest:function(e,t,r){var i=a(t,e),o=n(e,i,r.intersect);return o.length>1&&o.sort(function(e,t){var a=e.getArea(),r=t.getArea(),i=a-r;return 0===i&&(i=e._datasetIndex-t._datasetIndex),i}),o.slice(0,1)},x:function(e,t,i){var n=a(t,e),o=[],s=!1;return r(e,function(e){e.inXRange(n.x)&&o.push(e),e.inRange(n.x,n.y)&&(s=!0)}),i.intersect&&!s&&(o=[]),o},y:function(e,t,i){var n=a(t,e),o=[],s=!1;return r(e,function(e){e.inYRange(n.y)&&o.push(e),e.inRange(n.x,n.y)&&(s=!0)}),i.intersect&&!s&&(o=[]),o}}}}},{}],28:[function(e,t,a){"use strict";
315t.exports=function(){var e=function(e,t){return this.construct(e,t),this};return e.defaults={global:{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');for(var a=0;a<e.data.datasets.length;a++)t.push('<li><span style="background-color:'+e.data.datasets[a].backgroundColor+'"></span>'),e.data.datasets[a].label&&t.push(e.data.datasets[a].label),t.push("</li>");return t.push("</ul>"),t.join("")}}},e.Chart=e,e}},{}],29:[function(e,t,a){"use strict";t.exports=function(e){function a(e,a){return t.where(e,function(e){return e.position===a})}function r(e,t){e.forEach(function(e,t){return e._tmpIndex_=t,e}),e.sort(function(e,a){var r=t?a:e,i=t?e:a;return r.weight===i.weight?r._tmpIndex_-i._tmpIndex_:r.weight-i.weight}),e.forEach(function(e){delete e._tmpIndex_})}var t=e.helpers;e.layoutService={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,e.boxes.push(t)},removeBox:function(e,t){var a=e.boxes?e.boxes.indexOf(t):-1;-1!==a&&e.boxes.splice(a,1)},configure:function(e,t,a){for(var o,r=["fullWidth","position","weight"],i=r.length,n=0;i>n;++n)o=r[n],a.hasOwnProperty(o)&&(t[o]=a[o])},update:function(e,i,n){function P(e){var t,a=e.isHorizontal();a?(t=e.update(e.fullWidth?m:S,k),C-=t.height):(t=e.update(w,x),S-=t.width),M.push({horizontal:a,minSize:t,box:e})}function O(e){var a=t.findNextWhere(M,function(t){return t.box===e});if(a)if(e.isHorizontal()){var r={left:Math.max(D,A),right:Math.max(V,I),top:0,bottom:0};e.update(e.fullWidth?m:S,b/2,r)}else e.update(a.minSize.width,C)}function R(e){var a=t.findNextWhere(M,function(t){return t.box===e}),r={left:0,right:0,top:F,bottom:L};a&&e.update(a.minSize.width,C,r)}function j(e){e.isHorizontal()?(e.left=e.fullWidth?l:D,e.right=e.fullWidth?i-u:D+S,e.top=H,e.bottom=H+e.height,H=e.bottom):(e.left=N,e.right=N+e.width,e.top=F,e.bottom=F+C,N=e.right)}if(e){var o=e.options.layout,s=o?o.padding:null,l=0,u=0,d=0,c=0;isNaN(s)?(l=s.left||0,u=s.right||0,d=s.top||0,c=s.bottom||0):(l=s,u=s,d=s,c=s);var f=a(e.boxes,"left"),h=a(e.boxes,"right"),v=a(e.boxes,"top"),p=a(e.boxes,"bottom"),g=a(e.boxes,"chartArea");r(f,!0),r(h,!1),r(v,!0),r(p,!1);var m=i-l-u,b=n-d-c,y=m/2,x=b/2,w=(i-y)/(f.length+h.length),k=(n-x)/(v.length+p.length),S=m,C=b,M=[];t.each(f.concat(h,v,p),P);var A=0,I=0,_=0,T=0;t.each(v.concat(p),function(e){if(e.getPadding){var t=e.getPadding();A=Math.max(A,t.left),I=Math.max(I,t.right)}}),t.each(f.concat(h),function(e){if(e.getPadding){var t=e.getPadding();_=Math.max(_,t.top),T=Math.max(T,t.bottom)}});var D=l,V=u,F=d,L=c;t.each(f.concat(h),O),t.each(f,function(e){D+=e.width}),t.each(h,function(e){V+=e.width}),t.each(v.concat(p),O),t.each(v,function(e){F+=e.height}),t.each(p,function(e){L+=e.height}),t.each(f.concat(h),R),D=l,V=u,F=d,L=c,t.each(f,function(e){D+=e.width}),t.each(h,function(e){V+=e.width}),t.each(v,function(e){F+=e.height}),t.each(p,function(e){L+=e.height});var W=Math.max(A-D,0);D+=W,V+=Math.max(I-V,0);var E=Math.max(_-F,0);F+=E,L+=Math.max(T-L,0);var B=n-F-L,z=i-D-V;(z!==S||B!==C)&&(t.each(f,function(e){e.height=B}),t.each(h,function(e){e.height=B}),t.each(v,function(e){e.fullWidth||(e.width=z)}),t.each(p,function(e){e.fullWidth||(e.width=z)}),C=B,S=z);var N=l+W,H=d+E;t.each(f.concat(v),j),N+=S,H+=C,t.each(h,j),t.each(p,j),e.chartArea={left:D,top:F,right:D+S,bottom:F+C},t.each(g,function(t){t.left=e.chartArea.left,t.top=e.chartArea.top,t.right=e.chartArea.right,t.bottom=e.chartArea.bottom,t.update(S,C)})}}}}},{}],30:[function(e,t,a){"use strict";t.exports=function(e){var t=e.helpers;e.defaults.global.plugins={},e.plugins={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach(function(e){var a=t.indexOf(e);-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,a){var n,o,s,l,u,r=this.descriptors(e),i=r.length;for(n=0;i>n;++n)if(o=r[n],s=o.plugin,u=s[t],"function"==typeof u&&(l=[e].concat(a||[]),l.push(o.options),u.apply(s,l)===!1))return!1;return!0},descriptors:function(a){var r=a._plugins||(a._plugins={});if(r.id===this._cacheId)return r.descriptors;var i=[],n=[],o=a&&a.config||{},s=e.defaults.global.plugins,l=o.options&&o.options.plugins||{};
315return this._plugins.concat(o.plugins||[]).forEach(function(e){var a=i.indexOf(e);if(-1===a){var r=e.id,o=l[r];o!==!1&&(o===!0&&(o=t.clone(s[r])),i.push(e),n.push({plugin:e,options:o||{}}))}}),r.descriptors=n,r.id=this._cacheId,n}},e.pluginService=e.plugins,e.PluginBase=e.Element.extend({})}},{}],31:[function(e,t,a){"use strict";t.exports=function(e){function a(e,a,r){return t.isArray(a)?t.longestText(e,r,a):e.measureText(a).width}function r(a){var r=t.getValueOrDefault,i=e.defaults.global,n=r(a.fontSize,i.defaultFontSize),o=r(a.fontStyle,i.defaultFontStyle),s=r(a.fontFamily,i.defaultFontFamily);return{size:n,style:o,family:s,font:t.fontString(n,o,s)}}var t=e.helpers;e.defaults.scale={display:!0,position:"left",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:{labelString:"",display:!1},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:e.Ticks.formatters.values}},e.Scale=e.Element.extend({getPadding:function(){var e=this;return{left:e.paddingLeft||0,top:e.paddingTop||0,right:e.paddingRight||0,bottom:e.paddingBottom||0}},beforeUpdate:function(){t.callback(this.options.beforeUpdate,[this])},update:function(e,a,r){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=a,i.margins=t.extend({left:0,right:0,top:0,bottom:0},r),i.longestTextCache=i.longestTextCache||{},i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeDataLimits(),i.determineDataLimits(),i.afterDataLimits(),i.beforeBuildTicks(),i.buildTicks(),i.afterBuildTicks(),i.beforeTickToLabelConversion(),i.convertTicksToLabels(),i.afterTickToLabelConversion(),i.beforeCalculateTickRotation(),i.calculateTickRotation(),i.afterCalculateTickRotation(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:function(){t.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){
316t.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(){t.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){t.callback(this.options.beforeDataLimits,[this])},determineDataLimits:t.noop,afterDataLimits:function(){t.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){t.callback(this.options.beforeBuildTicks,[this])},buildTicks:t.noop,afterBuildTicks:function(){t.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){t.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this,t=e.options.ticks;e.ticks=e.ticks.map(t.userCallback||t.callback)},afterTickToLabelConversion:function(){t.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){t.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e=this,a=e.ctx,i=e.options.ticks,n=r(i);a.font=n.font;var o=i.minRotation||0;if(e.options.display&&e.isHorizontal())for(var u,d,s=t.longestText(a,n.font,e.ticks,e.longestTextCache),l=s,c=e.getPixelForTick(1)-e.getPixelForTick(0)-6;l>c&&o<i.maxRotation;){var f=t.toRadians(o);if(u=Math.cos(f),d=Math.sin(f),d*s>e.maxHeight){o--;break}o++,l=u*s}e.labelRotation=o},afterCalculateTickRotation:function(){t.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){t.callback(this.options.beforeFit,[this])},fit:function(){var e=this,i=e.minSize={width:0,height:0},n=e.options,o=n.ticks,s=n.scaleLabel,l=n.gridLines,u=n.display,d=e.isHorizontal(),c=r(o),f=1.5*r(s).size,h=n.gridLines.tickMarkLength;if(d?i.width=e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:i.width=u&&l.drawTicks?h:0,d?i.height=u&&l.drawTicks?h:0:i.height=e.maxHeight,s.display&&u&&(d?i.height+=f:i.width+=f),o.display&&u){var v=t.longestText(e.ctx,c.font,e.ticks,e.longestTextCache),p=t.numberOfLabelLines(e.ticks),g=.5*c.size;if(d){e.longestLabelWidth=v;var m=t.toRadians(e.labelRotation),b=Math.cos(m),y=Math.sin(m),x=y*v+c.size*p+g*p;
316i.height=Math.min(e.maxHeight,i.height+x),e.ctx.font=c.font;var w=e.ticks[0],k=a(e.ctx,w,c.font),S=e.ticks[e.ticks.length-1],C=a(e.ctx,S,c.font);0!==e.labelRotation?(e.paddingLeft="bottom"===n.position?b*k+3:b*g+3,e.paddingRight="bottom"===n.position?b*g+3:b*C+3):(e.paddingLeft=k/2+3,e.paddingRight=C/2+3)}else o.mirror?v=0:v+=e.options.ticks.padding,i.width=Math.min(e.maxWidth,i.width+v),e.paddingTop=c.size/2,e.paddingBottom=c.size/2}e.handleMargins(),e.width=i.width,e.height=i.height},handleMargins:function(){var e=this;e.margins&&(e.paddingLeft=Math.max(e.paddingLeft-e.margins.left,0),e.paddingTop=Math.max(e.paddingTop-e.margins.top,0),e.paddingRight=Math.max(e.paddingRight-e.margins.right,0),e.paddingBottom=Math.max(e.paddingBottom-e.margins.bottom,0))},afterFit:function(){t.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){return null===e||"undefined"==typeof e?NaN:"number"!=typeof e||isFinite(e)?"object"==typeof e?e instanceof Date||e.isValid?e:this.getRightValue(this.isHorizontal()?e.x:e.y):e:NaN},getLabelForIndex:t.noop,getPixelForValue:t.noop,getValueForPixel:t.noop,getPixelForTick:function(e,t){var a=this;if(a.isHorizontal()){var r=a.width-(a.paddingLeft+a.paddingRight),i=r/Math.max(a.ticks.length-(a.options.gridLines.offsetGridLines?0:1),1),n=i*e+a.paddingLeft;t&&(n+=i/2);var o=a.left+Math.round(n);return o+=a.isFullWidth()?a.margins.left:0}var s=a.height-(a.paddingTop+a.paddingBottom);return a.top+e*(s/(a.ticks.length-1))},getPixelForDecimal:function(e){var t=this;if(t.isHorizontal()){var a=t.width-(t.paddingLeft+t.paddingRight),r=a*e+t.paddingLeft,i=t.left+Math.round(r);return i+=t.isFullWidth()?t.margins.left:0}return t.top+e*t.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this,t=e.min,a=e.max;return e.beginAtZero?0:0>t&&0>a?a:t>0&&a>0?t:0},draw:function(a){var i=this,n=i.options;if(n.display){var f,p,o=i.ctx,s=e.defaults.global,l=n.ticks,u=n.gridLines,d=n.scaleLabel,c=0!==i.labelRotation,h=l.autoSkip,v=i.isHorizontal();l.maxTicksLimit&&(p=l.maxTicksLimit);var g=t.getValueOrDefault(l.fontColor,s.defaultFontColor),m=r(l),b=u.drawTicks?u.tickMarkLength:0,y=t.getValueOrDefault(d.fontColor,s.defaultFontColor),x=r(d),w=t.toRadians(i.labelRotation),k=Math.cos(w),S=i.longestLabelWidth*k;o.fillStyle=g;var C=[];if(v){if(f=!1,(S+l.autoSkipPadding)*i.ticks.length>i.width-(i.paddingLeft+i.paddingRight)&&(f=1+Math.floor((S+l.autoSkipPadding)*i.ticks.length/(i.width-(i.paddingLeft+i.paddingRight)))),p&&i.ticks.length>p)for(;!f||i.ticks.length/(f||1)>p;)f||(f=1),f+=1;h||(f=!1)}var M="right"===n.position?i.left:i.right-b,P="right"===n.position?i.left+b:i.right,A="bottom"===n.position?i.top:i.bottom-b,I="bottom"===n.position?i.top+b:i.bottom;if(t.each(i.ticks,function(e,r){if(void 0!==e&&null!==e){var o=i.ticks.length===r+1,d=f>1&&r%f>0||r%f===0&&r+f>=i.ticks.length;if((!d||o)&&void 0!==e&&null!==e){var h,p,g,m;r===("undefined"!=typeof i.zeroLineIndex?i.zeroLineIndex:0)?(h=u.zeroLineWidth,p=u.zeroLineColor,g=u.zeroLineBorderDash,m=u.zeroLineBorderDashOffset):(h=t.getValueAtIndexOrDefault(u.lineWidth,r),p=t.getValueAtIndexOrDefault(u.color,r),g=t.getValueOrDefault(u.borderDash,s.borderDash),m=t.getValueOrDefault(u.borderDashOffset,s.borderDashOffset));var y,x,k,S,_,T,D,V,F,L,O="middle",R="middle";if(v){"bottom"===n.position?(R=c?"middle":"top",O=c?"right":"center",L=i.top+b):(R=c?"middle":"bottom",O=c?"left":"center",L=i.bottom-b);var W=i.getPixelForTick(r)+t.aliasPixel(h);F=i.getPixelForTick(r,u.offsetGridLines)+l.labelOffset,y=k=_=D=W,x=A,S=I,T=a.top,V=a.bottom}else{var z,E="left"===n.position,B=l.padding;l.mirror?(O=E?"left":"right",z=B):(O=E?"right":"left",z=b+B),F=E?i.right-z:i.left+z;var N=i.getPixelForTick(r);N+=t.aliasPixel(h),L=i.getPixelForTick(r,u.offsetGridLines),y=M,k=P,_=a.left,D=a.right,x=S=T=V=N}C.push({tx1:y,ty1:x,tx2:k,ty2:S,x1:_,y1:T,x2:D,y2:V,labelX:F,labelY:L,glWidth:h,glColor:p,glBorderDash:g,glBorderDashOffset:m,rotation:-1*w,label:e,textBaseline:R,textAlign:O})}}}),t.each(C,function(e){if(u.display&&(o.save(),o.lineWidth=e.glWidth,o.strokeStyle=e.glColor,o.setLineDash&&(o.setLineDash(e.glBorderDash),o.lineDashOffset=e.glBorderDashOffset),o.beginPath(),u.drawTicks&&(o.moveTo(e.tx1,e.ty1),o.lineTo(e.tx2,e.ty2)),u.drawOnChartArea&&(o.moveTo(e.x1,e.y1),o.lineTo(e.x2,e.y2)),o.stroke(),o.restore(
316)),l.display){o.save(),o.translate(e.labelX,e.labelY),o.rotate(e.rotation),o.font=m.font,o.textBaseline=e.textBaseline,o.textAlign=e.textAlign;var a=e.label;if(t.isArray(a))for(var r=0,i=0;r<a.length;++r)o.fillText(""+a[r],0,i),i+=1.5*m.size;else o.fillText(a,0,0);o.restore()}}),d.display){var _,T,D=0;if(v)_=i.left+(i.right-i.left)/2,T="bottom"===n.position?i.bottom-x.size/2:i.top+x.size/2;else{var V="left"===n.position;_=V?i.left+x.size/2:i.right-x.size/2,T=i.top+(i.bottom-i.top)/2,D=V?-.5*Math.PI:.5*Math.PI}o.save(),o.translate(_,T),o.rotate(D),o.textAlign="center",o.textBaseline="middle",o.fillStyle=y,o.font=x.font,o.fillText(d.labelString,0,0),o.restore()}if(u.drawBorder){o.lineWidth=t.getValueAtIndexOrDefault(u.lineWidth,0),o.strokeStyle=t.getValueAtIndexOrDefault(u.color,0);var F=i.left,L=i.right,O=i.top,R=i.bottom,W=t.aliasPixel(o.lineWidth);v?(O=R="top"===n.position?i.bottom:i.top,O+=W,R+=W):(F=L="left"===n.position?i.right:i.left,F+=W,L+=W),o.beginPath(),o.moveTo(F,O),o.lineTo(L,R),o.stroke()}}}})}},{}],32:[function(e,t,a){"use strict";t.exports=function(e){var t=e.helpers;e.scaleService={constructors:{},defaults:{},registerScaleType:function(e,a,r){this.constructors[e]=a,this.defaults[e]=t.clone(r)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(a){return this.defaults.hasOwnProperty(a)?t.scaleMerge(e.defaults.scale,this.defaults[a]):{}},updateScaleDefaults:function(e,a){var r=this.defaults;r.hasOwnProperty(e)&&(r[e]=t.extend(r[e],a))},addScalesToLayout:function(a){t.each(a.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,e.layoutService.addBox(a,t)})}}}},{}],33:[function(e,t,a){"use strict";t.exports=function(e){var t=e.helpers;e.Ticks={generators:{linear:function(e,a){var i,r=[];if(e.stepSize&&e.stepSize>0)i=e.stepSize;else{var n=t.niceNum(a.max-a.min,!1);i=t.niceNum(n/(e.maxTicks-1),!0)}var o=Math.floor(a.min/i)*i,s=Math.ceil(a.max/i)*i;e.min&&e.max&&e.stepSize&&t.almostWhole((e.max-e.min)/e.stepSize,i/1e3)&&(o=e.min,s=e.max);var l=(s-o)/i;l=t.almostEquals(l,Math.round(l),i/1e3)?Math.round(l):Math.ceil(l),r.push(void 0!==e.min?e.min:o);for(var u=1;l>u;++u)r.push(o+u*i);return r.push(void 0!==e.max?e.max:s),r},logarithmic:function(e,a){var l,u,r=[],i=t.getValueOrDefault,n=i(e.min,Math.pow(10,Math.floor(t.log10(a.min)))),o=Math.floor(t.log10(a.max)),s=Math.ceil(a.max/Math.pow(10,o));0===n?(l=Math.floor(t.log10(a.minNotZero)),u=Math.floor(a.minNotZero/Math.pow(10,l)),r.push(n),n=u*Math.pow(10,l)):(l=Math.floor(t.log10(n)),u=Math.floor(n/Math.pow(10,l)));do r.push(n),++u,10===u&&(u=1,++l),n=u*Math.pow(10,l);while(o>l||l===o&&s>u);var d=i(e.max,n);return r.push(d),r}},formatters:{values:function(e){return t.isArray(e)?e:""+e},linear:function(e,a,r){var i=r.length>3?r[2]-r[1]:r[1]-r[0];Math.abs(i)>1&&e!==Math.floor(e)&&(i=e-Math.floor(e));var n=t.log10(Math.abs(i)),o="";if(0!==e){var s=-1*Math.floor(n);s=Math.max(Math.min(s,20),0),o=e.toFixed(s)}else o="0";return o},logarithmic:function(e,a,r){var i=e/Math.pow(10,Math.floor(t.log10(e)));return 0===e?"0":1===i||2===i||5===i||0===a||a===r.length-1?e.toExponential():""}}}}},{}],34:[function(e,t,a){"use strict";t.exports=function(e){function a(e,a){var r=t.color(e);return r.alpha(a*r.alpha()).rgbaString()}function r(e,a){return a&&(t.isArray(a)?Array.prototype.push.apply(e,a):e.push(a)),e}function i(e){var t=e._xScale,a=e._yScale||e._scale,r=e._index,i=e._datasetIndex;return{xLabel:t?t.getLabelForIndex(r,i):"",yLabel:a?a.getLabelForIndex(r,i):"",index:r,datasetIndex:i,x:e._model.x,y:e._model.y}}function n(a){var r=e.defaults.global,i=t.getValueOrDefault;return{xPadding:a.xPadding,yPadding:a.yPadding,xAlign:a.xAlign,yAlign:a.yAlign,bodyFontColor:a.bodyFontColor,_bodyFontFamily:i(a.bodyFontFamily,r.defaultFontFamily),_bodyFontStyle:i(a.bodyFontStyle,r.defaultFontStyle),_bodyAlign:a.bodyAlign,bodyFontSize:i(a.bodyFontSize,r.defaultFontSize),bodySpacing:a.bodySpacing,titleFontColor:a.titleFontColor,_titleFontFamily:i(a.titleFontFamily,r.defaultFontFamily),_titleFontStyle:i(a.titleFontStyle,r.defaultFontStyle),titleFontSize:i(a.titleFontSize,r.defaultFontSize),_titleAlign:a.titleAlign,titleSpacing:a.titleSpacing,titleMarginBottom:a.titleMarginBottom,footerFontColor:a.footerFontColor,_footerFontFamily:i(a.footerFontFamily,r.defaultFontFamily),_footerFontStyle:i(a.footerFontStyle,r.defaultFontStyle),footerFontSize:i(a.footerFontSize,r.defaultFontSize),_footerAlign:a.footerAlign,footerSpacing:a.footerSpacing,footerMarginTop:a.footerMarginTop,caretSize:a.caretSize,cornerRadius:a.cornerRadius,backgroundColor:a.backgroundColor,opacity:0,legendColorBackgroun
316d:a.multiKeyBackground,displayColors:a.displayColors,borderColor:a.borderColor,borderWidth:a.borderWidth}}function o(e,a){var r=e._chart.ctx,i=2*a.yPadding,n=0,o=a.body,s=o.reduce(function(e,t){return e+t.before.length+t.lines.length+t.after.length},0);s+=a.beforeBody.length+a.afterBody.length;var l=a.title.length,u=a.footer.length,d=a.titleFontSize,c=a.bodyFontSize,f=a.footerFontSize;i+=l*d,i+=l?(l-1)*a.titleSpacing:0,i+=l?a.titleMarginBottom:0,i+=s*c,i+=s?(s-1)*a.bodySpacing:0,i+=u?a.footerMarginTop:0,i+=u*f,i+=u?(u-1)*a.footerSpacing:0;var h=0,v=function(e){n=Math.max(n,r.measureText(e).width+h)};return r.font=t.fontString(d,a._titleFontStyle,a._titleFontFamily),t.each(a.title,v),r.font=t.fontString(c,a._bodyFontStyle,a._bodyFontFamily),t.each(a.beforeBody.concat(a.afterBody),v),h=a.displayColors?c+2:0,t.each(o,function(e){t.each(e.before,v),t.each(e.lines,v),t.each(e.after,v)}),h=0,r.font=t.fontString(f,a._footerFontStyle,a._footerFontFamily),t.each(a.footer,v),n+=2*a.xPadding,{width:n,height:i}}function s(e,t){var a=e._model,r=e._chart,i=e._chart.chartArea,n="center",o="center";a.y<t.height?o="top":a.y>r.height-t.height&&(o="bottom");var s,l,u,d,c,f=(i.left+i.right)/2,h=(i.top+i.bottom)/2;"center"===o?(s=function(e){return f>=e},l=function(e){return e>f}):(s=function(e){return e<=t.width/2},l=function(e){return e>=r.width-t.width/2}),u=function(e){return e+t.width>r.width},d=function(e){return e-t.width<0},c=function(e){return h>=e?"top":"bottom"},s(a.x)?(n="left",u(a.x)&&(n="center",o=c(a.y))):l(a.x)&&(n="right",d(a.x)&&(n="center",o=c(a.y)));var v=e._options;return{xAlign:v.xAlign?v.xAlign:n,yAlign:v.yAlign?v.yAlign:o}}function l(e,t,a){var r=e.x,i=e.y,n=e.caretSize,o=e.caretPadding,s=e.cornerRadius,l=a.xAlign,u=a.yAlign,d=n+o,c=s+o;return"right"===l?r-=t.width:"center"===l&&(r-=t.width/2),"top"===u?i+=d:i-="bottom"===u?t.height+d:t.height/2,"center"===u?"left"===l?r+=d:"right"===l&&(r-=d):"left"===l?r-=c:"right"===l&&(r+=c),{x:r,y:i}}var t=e.helpers;e.defaults.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:t.noop,title:function(e,t){var a="",r=t.labels,i=r?r.length:0;if(e.length>0){var n=e[0];n.xLabel?a=n.xLabel:i>0&&n.index<i&&(a=r[n.index])}return a},afterTitle:t.noop,beforeBody:t.noop,beforeLabel:t.noop,label:function(e,t){var a=t.datasets[e.datasetIndex].label||"";return a&&(a+=": "),a+=e.yLabel},labelColor:function(e,t){var a=t.getDatasetMeta(e.datasetIndex),r=a.data[e.index],i=r._view;return{borderColor:i.borderColor,backgroundColor:i.backgroundColor}},afterLabel:t.noop,afterBody:t.noop,beforeFooter:t.noop,footer:t.noop,afterFooter:t.noop}},e.Tooltip=e.Element.extend({initialize:function(){this._model=n(this._options)},getTitle:function(){var e=this,t=e._options,a=t.callbacks,i=a.beforeTitle.apply(e,arguments),n=a.title.apply(e,arguments),o=a.afterTitle.apply(e,arguments),s=[];return s=r(s,i),s=r(s,n),s=r(s,o)},getBeforeBody:function(){var e=this._options.callbacks.beforeBody.apply(this,arguments);return t.isArray(e)?e:void 0!==e?[e]:[]},getBody:function(e,a){var i=this,n=i._options.callbacks,o=[];return t.each(e,function(e){var t={before:[],lines:[],after:[]};r(t.before,n.beforeLabel.call(i,e,a)),r(t.lines,n.label.call(i,e,a)),r(t.after,n.afterLabel.call(i,e,a)),o.push(t)}),o},getAfterBody:function(){var e=this._options.callbacks.afterBody.apply(this,arguments);return t.isArray(e)?e:void 0!==e?[e]:[]},getFooter:function(){var e=this,t=e._options.callbacks,a=t.beforeFooter.apply(e,arguments),i=t.footer.apply(e,arguments),n=t.afterFooter.apply(e,arguments),o=[];return o=r(o,a),o=r(o,i),o=r(o,n)},update:function(a){var b,y,r=this,u=r._options,d=r._model,c=r._model=n(u),f=r._active,h=r._data,v={xAlign:d.xAlign,yAlign:d.yAlign},p={x:d.x,y:d.y},g={width:d.width,height:d.height},m={x:d.caretX,y:d.caretY};
316if(f.length){c.opacity=1;var x=[];m=e.Tooltip.positioners[u.position](f,r._eventPosition);var w=[];for(b=0,y=f.length;y>b;++b)w.push(i(f[b]));u.filter&&(w=w.filter(function(e){return u.filter(e,h)})),u.itemSort&&(w=w.sort(function(e,t){return u.itemSort(e,t,h)})),t.each(w,function(e){x.push(u.callbacks.labelColor.call(r,e,r._chart))}),c.title=r.getTitle(w,h),c.beforeBody=r.getBeforeBody(w,h),c.body=r.getBody(w,h),c.afterBody=r.getAfterBody(w,h),c.footer=r.getFooter(w,h),c.x=Math.round(m.x),c.y=Math.round(m.y),c.caretPadding=u.caretPadding,c.labelColors=x,c.dataPoints=w,g=o(this,c),v=s(this,g),p=l(c,g,v)}else c.opacity=0;return c.xAlign=v.xAlign,c.yAlign=v.yAlign,c.x=p.x,c.y=p.y,c.width=g.width,c.height=g.height,c.caretX=m.x,c.caretY=m.y,r._model=c,a&&u.custom&&u.custom.call(r,c),r},drawCaret:function(e,t){var a=this._chart.ctx,r=this._view,i=this.getCaretPosition(e,t,r);a.lineTo(i.x1,i.y1),a.lineTo(i.x2,i.y2),a.lineTo(i.x3,i.y3)},getCaretPosition:function(e,t,a){var r,i,n,o,s,l,u=a.caretSize,d=a.cornerRadius,c=a.xAlign,f=a.yAlign,h=e.x,v=e.y,p=t.width,g=t.height;if("center"===f)s=v+g/2,"left"===c?(r=h,i=r-u,n=r,o=s+u,l=s-u):(r=h+p,i=r+u,n=r,o=s-u,l=s+u);else if("left"===c?(i=h+d+u,r=i-u,n=i+u):"right"===c?(i=h+p-d-u,r=i-u,n=i+u):(i=h+p/2,r=i-u,n=i+u),"top"===f)o=v,s=o-u,l=o;else{o=v+g,s=o+u,l=o;var m=n;n=r,r=m}return{x1:r,x2:i,x3:n,y1:o,y2:s,y3:l}},drawTitle:function(e,r,i,n){var o=r.title;if(o.length){i.textAlign=r._titleAlign,i.textBaseline="top";var s=r.titleFontSize,l=r.titleSpacing;i.fillStyle=a(r.titleFontColor,n),i.font=t.fontString(s,r._titleFontStyle,r._titleFontFamily);var u,d;for(u=0,d=o.length;d>u;++u)i.fillText(o[u],e.x,e.y),e.y+=s+l,u+1===o.length&&(e.y+=r.titleMarginBottom-l)}},drawBody:function(e,r,i,n){var o=r.bodyFontSize,s=r.bodySpacing,l=r.body;i.textAlign=r._bodyAlign,i.textBaseline="top";var u=a(r.bodyFontColor,n);i.fillStyle=u,i.font=t.fontString(o,r._bodyFontStyle,r._bodyFontFamily);var d=0,c=function(t){i.fillText(t,e.x+d,e.y),e.y+=o+s};t.each(r.beforeBody,c);var f=r.displayColors;d=f?o+2:0,t.each(l,function(s,l){t.each(s.before,c),t.each(s.lines,function(t){f&&(i.fillStyle=a(r.legendColorBackground,n),i.fillRect(e.x,e.y,o,o),i.strokeStyle=a(r.labelColors[l].borderColor,n),i.strokeRect(e.x,e.y,o,o),i.fillStyle=a(r.labelColors[l].backgroundColor,n),i.fillRect(e.x+1,e.y+1,o-2,o-2),i.fillStyle=u),c(t)}),t.each(s.after,c)}),d=0,t.each(r.afterBody,c),e.y-=s},drawFooter:function(e,r,i,n){var o=r.footer;o.length&&(e.y+=r.footerMarginTop,i.textAlign=r._footerAlign,i.textBaseline="top",i.fillStyle=a(r.footerFontColor,n),i.font=t.fontString(r.footerFontSize,r._footerFontStyle,r._footerFontFamily),t.each(o,function(t){i.fillText(t,e.x,e.y),e.y+=r.footerFontSize+r.footerSpacing}))},drawBackground:function(e,t,r,i,n){r.fillStyle=a(t.backgroundColor,n),r.strokeStyle=a(t.borderColor,n),r.lineWidth=t.borderWidth;var o=t.xAlign,s=t.yAlign,l=e.x,u=e.y,d=i.width,c=i.height,f=t.cornerRadius;r.beginPath(),r.moveTo(l+f,u),"top"===s&&this.drawCaret(e,i),r.lineTo(l+d-f,u),r.quadraticCurveTo(l+d,u,l+d,u+f),"center"===s&&"right"===o&&this.drawCaret(e,i),r.lineTo(l+d,u+c-f),r.quadraticCurveTo(l+d,u+c,l+d-f,u+c),"bottom"===s&&this.drawCaret(e,i),r.lineTo(l+f,u+c),r.quadraticCurveTo(l,u+c,l,u+c-f),"center"===s&&"left"===o&&this.drawCaret(e,i),r.lineTo(l,u+f),r.quadraticCurveTo(l,u,l+f,u),r.closePath(),r.fill(),t.borderWidth>0&&r.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var a={width:t.width,height:t.height},r={x:t.x,y:t.y},i=Math.abs(t.opacity<.001)?0:t.opacity,n=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&n&&(this.drawBackground(r,t,e,a,i),r.x+=t.xPadding,r.y+=t.yPadding,this.drawTitle(r,t,e,i),this.drawBody(r,t,e,i),this.drawFooter(r,t,e,i))}},handleEvent:function(e){var a=this,r=a._options,i=!1;if(a._lastActive=a._lastActive||[],"mouseout"===e.type?a._active=[]:a._active=a._chart.getElementsAtEventForMode(e,r.mode,r),i=!t.arrayEquals(a._active,a._lastActive),!i)return!1;if(a._lastActive=a._active,r.enabled||r.custom){a._eventPosition={x:e.x,y:e.y};var n=a._model;a.update(!0),a.pivot(),i|=n.x!==a._model.x||n.y!==a._model.y}return i}}),e.Tooltip.positioners={average:function(e){if(!e.length)return!1;var t,a,r=0,i=0,n=0;for(t=0,a=e.length;a>t;++t){var o=e[t];if(o&&o.hasValue()){var s=o.tooltipPosition();r+=s.x,i+=s.y,++n}}return{x:Math.round(r/n),y:Math.round(i/n)}},nearest:function(e,a){var n,s,l,r=a.x,i=a.y,o=Number.POSITIVE_INFINITY;for(s=0,l=e.length;l>s;++s){var u=e[s];if(u&&u.hasValue()){var d=u.getCenterPoint(),c=t.distanceBetweenPoints(a,d);o>c&&(o=c,n=u)}}if(n){var f=n.tooltipPosition();r=f.x,i=f.y}return{x:r,y:i}}}}},{}],35:[function(e,t,a){"use strict";
316t.exports=function(e){var t=e.helpers,a=e.defaults.global;a.elements.arc={backgroundColor:a.defaultColor,borderColor:"#fff",borderWidth:2},e.elements.Arc=e.Element.extend({inLabelRange:function(e){var t=this._view;return t?Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2):!1},inRange:function(e,a){var r=this._view;if(r){for(var i=t.getAngleFromPoint(r,{x:e,y:a}),n=i.angle,o=i.distance,s=r.startAngle,l=r.endAngle;s>l;)l+=2*Math.PI;for(;n>l;)n-=2*Math.PI;for(;s>n;)n+=2*Math.PI;var u=n>=s&&l>=n,d=o>=r.innerRadius&&o<=r.outerRadius;return u&&d}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,a=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*a,y:e.y+Math.sin(t)*a}},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,a=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*a,y:e.y+Math.sin(t)*a}},draw:function(){var e=this._chart.ctx,t=this._view,a=t.startAngle,r=t.endAngle;e.beginPath(),e.arc(t.x,t.y,t.outerRadius,a,r),e.arc(t.x,t.y,t.innerRadius,r,a,!0),e.closePath(),e.strokeStyle=t.borderColor,e.lineWidth=t.borderWidth,e.fillStyle=t.backgroundColor,e.fill(),e.lineJoin="bevel",t.borderWidth&&e.stroke()}})}},{}],36:[function(e,t,a){"use strict";t.exports=function(e){var t=e.helpers,a=e.defaults.global;e.defaults.global.elements.line={tension:.4,backgroundColor:a.defaultColor,borderWidth:3,borderColor:a.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},e.elements.Line=e.Element.extend({draw:function(){var u,d,c,f,e=this,r=e._view,i=e._chart.ctx,n=r.spanGaps,o=e._children.slice(),s=a.elements.line,l=-1;for(e._loop&&o.length&&o.push(o[0]),i.save(),i.lineCap=r.borderCapStyle||s.borderCapStyle,i.setLineDash&&i.setLineDash(r.borderDash||s.borderDash),i.lineDashOffset=r.borderDashOffset||s.borderDashOffset,i.lineJoin=r.borderJoinStyle||s.borderJoinStyle,i.lineWidth=r.borderWidth||s.borderWidth,i.strokeStyle=r.borderColor||a.defaultColor,i.beginPath(),l=-1,u=0;u<o.length;++u)d=o[u],c=t.previousItem(o,u),f=d._view,0===u?f.skip||(i.moveTo(f.x,f.y),l=u):(c=-1===l?c:o[l],f.skip||(l!==u-1&&!n||-1===l?i.moveTo(f.x,f.y):t.canvas.lineTo(i,c._view,d._view),l=u));i.stroke(),i.restore()}})}},{}],37:[function(e,t,a){"use strict";t.exports=function(e){function i(e){var t=this._view;return t?Math.pow(e-t.x,2)<Math.pow(t.radius+t.hitRadius,2):!1}function n(e){var t=this._view;return t?Math.pow(e-t.y,2)<Math.pow(t.radius+t.hitRadius,2):!1}var t=e.helpers,a=e.defaults.global,r=a.defaultColor;a.elements.point={radius:3,pointStyle:"circle",backgroundColor:r,borderWidth:1,borderColor:r,hitRadius:1,hoverRadius:4,hoverBorderWidth:1},e.elements.Point=e.Element.extend({inRange:function(e,t){var a=this._view;return a?Math.pow(e-a.x,2)+Math.pow(t-a.y,2)<Math.pow(a.hitRadius+a.radius,2):!1},inLabelRange:i,inXRange:i,inYRange:n,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;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(i){var n=this._view,o=this._model,s=this._chart.ctx,l=n.pointStyle,u=n.radius,d=n.x,c=n.y,f=e.helpers.color,h=1.01,v=0;n.skip||(s.strokeStyle=n.borderColor||r,s.lineWidth=t.getValueOrDefault(n.borderWidth,a.elements.point.borderWidth),s.fillStyle=n.backgroundColor||r,void 0!==i&&(o.x<i.left||i.right*h<o.x||o.y<i.top||i.bottom*h<o.y)&&(o.x<i.left?v=(d-o.x)/(i.left-o.x):i.right*h<o.x?v=(o.x-d)/(o.x-i.right):o.y<i.top?v=(c-o.y)/(i.top-o.y):i.bottom*h<o.y&&(v=(o.y-c)/(o.y-i.bottom)),v=Math.round(100*v)/100,s.strokeStyle=f(s.strokeStyle).alpha(v).rgbString(),s.fillStyle=f(s.fillStyle).alpha(v).rgbString()),e.canvasHelpers.drawPoint(s,l,u,d,c))}})}},{}],38:[function(e,t,a){"use strict";t.exports=function(e){function a(e){return void 0!==e._view.width}function r(e){var r,i,n,o,t=e._view;
316if(a(e)){var s=t.width/2;r=t.x-s,i=t.x+s,n=Math.min(t.y,t.base),o=Math.max(t.y,t.base)}else{var l=t.height/2;r=Math.min(t.x,t.base),i=Math.max(t.x,t.base),n=t.y-l,o=t.y+l}return{left:r,top:n,right:i,bottom:o}}var t=e.defaults.global;t.elements.rectangle={backgroundColor:t.defaultColor,borderWidth:0,borderColor:t.defaultColor,borderSkipped:"bottom"},e.elements.Rectangle=e.Element.extend({draw:function(){function y(e){return g[(b+e)%4]}var a,r,i,n,o,s,l,e=this._chart.ctx,t=this._view,u=t.borderWidth;if(t.horizontal?(a=t.base,r=t.x,i=t.y-t.height/2,n=t.y+t.height/2,o=r>a?1:-1,s=1,l=t.borderSkipped||"left"):(a=t.x-t.width/2,r=t.x+t.width/2,i=t.y,n=t.base,o=1,s=n>i?1:-1,l=t.borderSkipped||"bottom"),u){var d=Math.min(Math.abs(a-r),Math.abs(i-n));u=u>d?d:u;var c=u/2,f=a+("left"!==l?c*o:0),h=r+("right"!==l?-c*o:0),v=i+("top"!==l?c*s:0),p=n+("bottom"!==l?-c*s:0);f!==h&&(i=v,n=p),v!==p&&(a=f,r=h)}e.beginPath(),e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,e.lineWidth=u;var g=[[a,n],[a,i],[r,i],[r,n]],m=["bottom","left","top","right"],b=m.indexOf(l,0);-1===b&&(b=0);var x=y(0);e.moveTo(x[0],x[1]);for(var w=1;4>w;w++)x=y(w),e.lineTo(x[0],x[1]);e.fill(),u&&e.stroke()},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){var a=!1;if(this._view){var i=r(this);a=e>=i.left&&e<=i.right&&t>=i.top&&t<=i.bottom}return a},inLabelRange:function(e,t){var i=this;if(!i._view)return!1;var n=!1,o=r(i);return n=a(i)?e>=o.left&&e<=o.right:t>=o.top&&t<=o.bottom},inXRange:function(e){var t=r(this);return e>=t.left&&e<=t.right},inYRange:function(e){var t=r(this);return e>=t.top&&e<=t.bottom},getCenterPoint:function(){var t,r,e=this._view;return a(this)?(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 e.width*Math.abs(e.y-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}})}},{}],39:[function(e,t,a){"use strict";t.exports=function(e){function r(e,a){var r=t.getStyle(e,a),i=r&&r.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}function i(e,t){var a=e.style,i=e.getAttribute("height"),n=e.getAttribute("width");if(e._chartjs={initial:{height:i,width:n,style:{display:a.display,height:a.height,width:a.width}}},a.display=a.display||"block",null===n||""===n){var o=r(e,"width");void 0!==o&&(e.width=o)}if(null===i||""===i)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var s=r(e,"height");void 0!==o&&(e.height=s)}return e}function n(e,t,a,r,i){return{type:e,chart:t,"native":i||null,x:void 0!==a?a:null,y:void 0!==r?r:null}}function o(e,r){var i=a[e.type]||e.type,o=t.getRelativePosition(e,r);return n(i,r,o.x,o.y,e)}function s(e){var a=document.createElement("iframe");return a.className="chartjs-hidden-iframe",a.style.cssText="display:block;overflow:hidden;border:0;margin:0;top:0;left:0;bottom:0;right:0;height:100%;width:100%;position:absolute;pointer-events:none;z-index:-1;",a.tabIndex=-1,t.addEvent(a,"load",function(){t.addEvent(a.contentWindow||a,"resize",e),e()}),a}function l(e,a,r){var i=e._chartjs={ticking:!1},o=function(){i.ticking||(i.ticking=!0,t.requestAnimFrame.call(window,function(){return i.resizer?(i.ticking=!1,a(n("resize",r))):void 0}))};i.resizer=s(o),e.insertBefore(i.resizer,e.firstChild)}function u(e){if(e&&e._chartjs){var t=e._chartjs.resizer;t&&(t.parentNode.removeChild(t),e._chartjs.resizer=null),delete e._chartjs}}var t=e.helpers,a={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};return{acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var a=e&&e.getContext&&e.getContext("2d");return a&&a.canvas===e?(i(e,t),a):null},releaseContext:function(e){var a=e.canvas;if(a._chartjs){var r=a._chartjs.initial;["height","width"].forEach(function(e){var t=r[e];void 0===t||null===t?a.removeAttribute(e):a.setAttribute(e,t)}),t.each(r.style||{},function(e,t){a.style[t]=e}),a.width=a.width,delete a._chartjs}},addEventListener:function(e,a,r){var i=e.canvas;if("resize"===a)return void l(i.parentNode,r,e);var n=r._chartjs||(r._chartjs={}),s=n.proxies||(n.proxies={}),u=s[e.id+"_"+a]=function(t){r(o(t,e))};t.addEvent(i,a,u)},removeEventListener:function(e,a,r){var i=e.canvas;if("resize"===a)return void u(i.parentNode,r);var n=r._chartjs||{},o=n.proxies||{},s=o[e.id+"_"+a];s&&t.removeEvent(i,a,s)}}}},{}],40:[function(e,t,a){"use strict";var r=e(39);t.exports=function(e){e.platform={acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},e.helpers.extend(e.platform,r(e))}},{39:39}],41:[function(e,t,a){"use strict";
316t.exports=function(e){function i(e,t,a){var n,r=e._model||{},i=r.fill;if(void 0===i&&(i=!!r.backgroundColor),i===!1||null===i)return!1;if(i===!0)return"origin";if(n=parseFloat(i,10),isFinite(n)&&Math.floor(n)===n)return("-"===i[0]||"+"===i[0])&&(n=t+n),n===t||0>n||n>=a?!1:n;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 n(e){var n,t=e.el._model||{},a=e.el._scale||{},r=e.fill,i=null;if(isFinite(r))return null;if("start"===r?i=void 0===t.scaleBottom?a.bottom:t.scaleBottom:"end"===r?i=void 0===t.scaleTop?a.top:t.scaleTop:void 0!==t.scaleZero?i=t.scaleZero:a.getBasePosition?i=a.getBasePosition():a.getBasePixel&&(i=a.getBasePixel()),void 0!==i&&null!==i){if(void 0!==i.x&&void 0!==i.y)return i;if("number"==typeof i&&isFinite(i))return n=a.isHorizontal(),{x:n?i:null,y:n?null:i}}return null}function o(e,t,a){var o,r=e[t],i=r.fill,n=[t];if(!a)return i;for(;i!==!1&&-1===n.indexOf(i);){if(!isFinite(i))return i;if(o=e[i],!o)return!1;if(o.visible)return i;n.push(i),i=o.fill}return!1}function s(e){var t=e.fill,a="dataset";return t===!1?null:(isFinite(t)||(a="boundary"),r[a](e))}function l(e){return e&&!e.skip}function u(e,t,r,i,n){var o;if(i&&n){for(e.moveTo(t[0].x,t[0].y),o=1;i>o;++o)a.canvas.lineTo(e,t[o-1],t[o]);for(e.lineTo(r[n-1].x,r[n-1].y),o=n-1;o>0;--o)a.canvas.lineTo(e,r[o],r[o-1],!0)}}function d(e,t,a,r,i,n){var v,p,g,m,b,y,x,o=t.length,s=r.spanGaps,d=[],c=[],f=0,h=0;for(e.beginPath(),v=0,p=o+!!n;p>v;++v)g=v%o,m=t[g]._view,b=a(m,g,r),y=l(m),x=l(b),y&&x?(f=d.push(m),h=c.push(b)):f&&h&&(s?(y&&d.push(m),x&&c.push(b)):(u(e,d,c,f,h),f=h=0,d=[],c=[]));u(e,d,c,f,h),e.closePath(),e.fillStyle=i,e.fill()}e.defaults.global.plugins.filler={propagate:!0};var t=e.defaults,a=e.helpers,r={dataset:function(e){var t=e.fill,a=e.chart,r=a.getDatasetMeta(t),i=r&&a.isDatasetVisible(t),n=i&&r.dataset._children||[];return n.length?function(e,t){return n[t]._view||null}:null},boundary:function(e){var t=e.boundary,a=t?t.x:null,r=t?t.y:null;return function(e){return{x:null===a?e.x:a,y:null===r?e.y:r}}}};return{id:"filler",afterDatasetsUpdate:function(t,a){var d,c,f,h,r=(t.data.datasets||[]).length,l=a.propagate,u=[];for(c=0;r>c;++c)d=t.getDatasetMeta(c),f=d.dataset,h=null,f&&f._model&&f instanceof e.elements.Line&&(h={visible:t.isDatasetVisible(c),fill:i(f,c,r),chart:t,el:f}),d.$filler=h,u.push(h);for(c=0;r>c;++c)h=u[c],h&&(h.fill=o(u,c,l),h.boundary=n(h),h.mapper=s(h))},beforeDatasetDraw:function(e,a){var r=a.meta.$filler;if(r){var i=r.el,n=i._view,o=i._children||[],s=r.mapper,l=n.backgroundColor||t.global.defaultColor;
317s&&l&&o.length&&d(e.ctx,o,s,n,l,i._loop)}}}}},{}],42:[function(e,t,a){"use strict";t.exports=function(e){function i(e,t){return e.usePointStyle?t*Math.SQRT2:e.boxWidth}function n(t,r){var i=new e.Legend({ctx:t.ctx,options:r,chart:t});a.configure(t,i,r),a.addBox(t,i),t.legend=i}var t=e.helpers,a=e.layoutService,r=t.noop;return e.defaults.global.legend={display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var a=t.datasetIndex,r=this.chart,i=r.getDatasetMeta(a);i.hidden=null===i.hidden?!r.data.datasets[a].hidden:null,r.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var a=e.data;return t.isArray(a.datasets)?a.datasets.map(function(a,r){return{text:a.label,fillStyle:t.isArray(a.backgroundColor)?a.backgroundColor[0]:a.backgroundColor,hidden:!e.isDatasetVisible(r),lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:a.borderWidth,strokeStyle:a.borderColor,pointStyle:a.pointStyle,datasetIndex:r}},this):[]}}},e.Legend=e.Element.extend({initialize:function(e){t.extend(this,e),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:r,update:function(e,t,a){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=a,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:r,beforeSetDimensions:r,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:r,beforeBuildLabels:r,buildLabels:function(){var e=this,t=e.options.labels,a=t.generateLabels.call(e,e.chart);
317t.filter&&(a=a.filter(function(a){return t.filter(a,e.chart.data)})),e.options.reverse&&a.reverse(),e.legendItems=a},afterBuildLabels:r,beforeFit:r,fit:function(){var a=this,r=a.options,n=r.labels,o=r.display,s=a.ctx,l=e.defaults.global,u=t.getValueOrDefault,d=u(n.fontSize,l.defaultFontSize),c=u(n.fontStyle,l.defaultFontStyle),f=u(n.fontFamily,l.defaultFontFamily),h=t.fontString(d,c,f),v=a.legendHitBoxes=[],p=a.minSize,g=a.isHorizontal();if(g?(p.width=a.maxWidth,p.height=o?10:0):(p.width=o?10:0,p.height=a.maxHeight),o)if(s.font=h,g){var m=a.lineWidths=[0],b=a.legendItems.length?d+n.padding:0;s.textAlign="left",s.textBaseline="top",t.each(a.legendItems,function(e,t){var r=i(n,d),o=r+d/2+s.measureText(e.text).width;m[m.length-1]+o+n.padding>=a.width&&(b+=d+n.padding,m[m.length]=a.left),v[t]={left:0,top:0,width:o,height:d},m[m.length-1]+=o+n.padding}),p.height+=b}else{var y=n.padding,x=a.columnWidths=[],w=n.padding,k=0,S=0,C=d+y;t.each(a.legendItems,function(e,t){var a=i(n,d),r=a+d/2+s.measureText(e.text).width;S+C>p.height&&(w+=k+n.padding,x.push(k),k=0,S=0),k=Math.max(k,r),S+=C,v[t]={left:0,top:0,width:r,height:d}}),w+=k,x.push(k),p.width+=w}a.width=p.width,a.height=p.height},afterFit:r,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var a=this,r=a.options,n=r.labels,o=e.defaults.global,s=o.elements.line,l=a.width,u=a.lineWidths;if(r.display){var c,d=a.ctx,f=t.getValueOrDefault,h=f(n.fontColor,o.defaultFontColor),v=f(n.fontSize,o.defaultFontSize),p=f(n.fontStyle,o.defaultFontStyle),g=f(n.fontFamily,o.defaultFontFamily),m=t.fontString(v,p,g);d.textAlign="left",d.textBaseline="top",d.lineWidth=.5,d.strokeStyle=h,d.fillStyle=h,d.font=m;var b=i(n,v),y=a.legendHitBoxes,x=function(t,a,i){if(!(isNaN(b)||0>=b)){d.save(),d.fillStyle=f(i.fillStyle,o.defaultColor),d.lineCap=f(i.lineCap,s.borderCapStyle),d.lineDashOffset=f(i.lineDashOffset,s.borderDashOffset),d.lineJoin=f(i.lineJoin,s.borderJoinStyle),d.lineWidth=f(i.lineWidth,s.borderWidth),d.strokeStyle=f(i.strokeStyle,o.defaultColor);var n=0===f(i.lineWidth,s.borderWidth);if(d.setLineDash&&d.setLineDash(f(i.lineDash,s.borderDash)),r.labels&&r.labels.usePointStyle){var l=v*Math.SQRT2/2,u=l/Math.SQRT2,c=t+u,h=a+u;e.canvasHelpers.drawPoint(d,i.pointStyle,l,c,h)}else n||d.strokeRect(t,a,b,v),d.fillRect(t,a,b,v);d.restore()}},w=function(e,t,a,r){d.fillText(a.text,b+v/2+e,t),a.hidden&&(d.beginPath(),d.lineWidth=2,d.moveTo(b+v/2+e,t+v/2),d.lineTo(b+v/2+e+r,t+v/2),d.stroke())},k=a.isHorizontal();c=k?{x:a.left+(l-u[0])/2,y:a.top+n.padding,line:0}:{x:a.left+n.padding,y:a.top+n.padding,line:0};var S=v+n.padding;t.each(a.legendItems,function(e,t){var r=d.measureText(e.text).width,i=b+v/2+r,o=c.x,s=c.y;k?o+i>=l&&(s=c.y+=S,c.line++,o=c.x=a.left+(l-u[c.line])/2):s+S>a.bottom&&(o=c.x=o+a.columnWidths[c.line]+n.padding,s=c.y=a.top+n.padding,c.line++),x(o,s,e),y[t].left=o,y[t].top=s,w(o,s,e,r),k?c.x+=i+n.padding:c.y+=S})}},handleEvent:function(e){var t=this,a=t.options,r="mouseup"===e.type?"click":e.type,i=!1;if("mousemove"===r){if(!a.onHover)return}else{if("click"!==r)return;if(!a.onClick)return}var n=e.x,o=e.y;if(n>=t.left&&n<=t.right&&o>=t.top&&o<=t.bottom)for(var s=t.legendHitBoxes,l=0;l<s.length;++l){var u=s[l];if(n>=u.left&&n<=u.left+u.width&&o>=u.top&&o<=u.top+u.height){if("click"===r){a.onClick.call(t,e["native"],t.legendItems[l]),i=!0;break}if("mousemove"===r){a.onHover.call(t,e["native"],t.legendItems[l]),i=!0;break}}}return i}}),{id:"legend",beforeInit:function(e){var t=e.options.legend;t&&n(e,t)},beforeUpdate:function(r){var i=r.options.legend,o=r.legend;i?(i=t.configMerge(e.defaults.global.legend,i),o?(a.configure(r,o,i),o.options=i):n(r,i)):o&&(a.removeBox(r,o),delete r.legend)},afterEvent:function(e,t){var a=e.legend;a&&a.handleEvent(t)}}}},{}],43:[function(e,t,a){"use strict";t.exports=function(e){function i(t,r){var i=new e.Title({ctx:t.ctx,options:r,chart:t});a.configure(t,i,r),a.addBox(t,i),t.titleBlock=i}var t=e.helpers,a=e.layoutService,r=t.noop;return e.defaults.global.title={display:!1,position:"top",fullWidth:!0,weight:2e3,fontStyle:"bold",padding:10,text:""},e.Title=e.Element.extend({initialize:function(e){var a=this;t.extend(a,e),a.legendHitBoxes=[]},beforeUpdate:r,update:function(e,t,a){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=a,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:r,beforeSetDimensions:r,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:r,beforeBuildLabels:r,buildLabels:r,afterBuildLabels:r,beforeFit:r,fit:function(){var a=this,r=t.getValueOrDefault,i=a.options,n=e.defaults.global,o=i.display,s=r(i.fontSize,n.defaultFontSize),l=a.minSize;a.isHorizontal()?(l.width=a.maxWidth,l.height=o?s+2*i.padding:0):(l.width=o?s+2*i.padding:0,l.height=a.maxHeight),a.width=l.width,a.height=l.height},afterFit:r,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var a=this,r=a.ctx,i=t.getValueOrDefault,n=a.options,o=e.defaults.global;if(n.display){var f,h,b,s=i(n.fontSize,o.defaultFontSize),l=i(n.fontStyle,o.defaultFontStyle),u=i(n.fontFamily,o.defaultFontFamily),d=t.fontString(s,l,u),c=0,v=a.top,p=a.left,g=a.bottom,m=a.right;r.fillStyle=i(n.fontColor,o.defaultFontColor),r.font=d,a.isHorizontal()?(f=p+(m-p)/2,h=v+(g-v)/2,b=m-p):(f="left"
317===n.position?p+s/2:m-s/2,h=v+(g-v)/2,b=g-v,c=Math.PI*("left"===n.position?-.5:.5)),r.save(),r.translate(f,h),r.rotate(c),r.textAlign="center",r.textBaseline="middle",r.fillText(n.text,0,0,b),r.restore()}}}),{id:"title",beforeInit:function(e){var t=e.options.title;t&&i(e,t)},beforeUpdate:function(r){var n=r.options.title,o=r.titleBlock;n?(n=t.configMerge(e.defaults.global.title,n),o?(a.configure(r,o,n),o.options=n):i(r,n)):o&&(e.layoutService.removeBox(r,o),delete r.titleBlock)}}}},{}],44:[function(e,t,a){"use strict";t.exports=function(e){var t=e.helpers,a={position:"bottom"},r=e.Scale.extend({getLabels:function(){var e=this.chart.data;return(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels},determineDataLimits:function(){var e=this,a=e.getLabels();e.minIndex=0,e.maxIndex=a.length-1;var r;void 0!==e.options.ticks.min&&(r=t.indexOf(a,e.options.ticks.min),e.minIndex=-1!==r?r:e.minIndex),void 0!==e.options.ticks.max&&(r=t.indexOf(a,e.options.ticks.max),e.maxIndex=-1!==r?r:e.maxIndex),e.min=a[e.minIndex],e.max=a[e.maxIndex]},buildTicks:function(){var e=this,t=e.getLabels();e.ticks=0===e.minIndex&&e.maxIndex===t.length-1?t:t.slice(e.minIndex,e.maxIndex+1)},getLabelForIndex:function(e,t){var a=this,r=a.chart.data,i=a.isHorizontal();return r.yLabels&&!i?a.getRightValue(r.datasets[t].data[e]):a.ticks[e-a.minIndex]},getPixelForValue:function(e,t,a,r){var o,i=this,n=Math.max(i.maxIndex+1-i.minIndex-(i.options.gridLines.offsetGridLines?0:1),1);if(void 0!==e&&null!==e&&(o=i.isHorizontal()?e.x:e.y),void 0!==o||void 0!==e&&isNaN(t)){var s=i.getLabels();e=o||e;var l=s.indexOf(e);t=-1!==l?l:t}if(i.isHorizontal()){var u=i.width/n,d=u*(t-i.minIndex);return(i.options.gridLines.offsetGridLines&&r||i.maxIndex===i.minIndex&&r)&&(d+=u/2),i.left+Math.round(d)}var c=i.height/n,f=c*(t-i.minIndex);return i.options.gridLines.offsetGridLines&&r&&(f+=c/2),i.top+Math.round(f)},getPixelForTick:function(e,t){return this.getPixelForValue(this.ticks[e],e+this.minIndex,null,t)},getValueForPixel:function(e){var a,t=this,r=Math.max(t.ticks.length-(t.options.gridLines.offsetGridLines?0:1),1),i=t.isHorizontal(),n=(i?t.width:t.height)/r;return e-=i?t.left:t.top,t.options.gridLines.offsetGridLines&&(e-=n/2),a=0>=e?0:Math.round(e/n)},getBasePixel:function(){return this.bottom}});e.scaleService.registerScaleType("category",r,a)}},{}],45:[function(e,t,a){"use strict";t.exports=function(e){var t=e.helpers,a={position:"left",ticks:{callback:e.Ticks.formatters.linear}},r=e.LinearScaleBase.extend({determineDataLimits:function(){function u(t){return o?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,a=e.options,r=e.chart,i=r.data,n=i.datasets,o=e.isHorizontal(),s=0,l=1;e.min=null,e.max=null;var d=a.stacked;if(void 0===d&&t.each(n,function(e,t){if(!d){var a=r.getDatasetMeta(t);r.isDatasetVisible(t)&&u(a)&&void 0!==a.stack&&(d=!0)}}),a.stacked||d){var c={};t.each(n,function(i,n){var o=r.getDatasetMeta(n),s=[o.type,void 0===a.stacked&&void 0===o.stack?n:"",o.stack].join(".");void 0===c[s]&&(c[s]={positiveValues:[],negativeValues:[]});var l=c[s].positiveValues,d=c[s].negativeValues;r.isDatasetVisible(n)&&u(o)&&t.each(i.data,function(t,r){var i=+e.getRightValue(t);isNaN(i)||o.data[r].hidden||(l[r]=l[r]||0,d[r]=d[r]||0,a.relativePoints?l[r]=100:0>i?d[r]+=i:l[r]+=i)})}),t.each(c,function(a){var r=a.positiveValues.concat(a.negativeValues),i=t.min(r),n=t.max(r);e.min=null===e.min?i:Math.min(e.min,i),e.max=null===e.max?n:Math.max(e.max,n)})}else t.each(n,function(a,i){var n=r.getDatasetMeta(i);r.isDatasetVisible(i)&&u(n)&&t.each(a.data,function(t,a){var r=+e.getRightValue(t);isNaN(r)||n.data[a].hidden||(null===e.min?e.min=r:r<e.min&&(e.min=r),null===e.max?e.max=r:r>e.max&&(e.max=r))})});e.min=isFinite(e.min)?e.min:s,e.max=isFinite(e.max)?e.max:l,this.handleTickRangeOptions()},getTickLimit:function(){var a,r=this,i=r.options.ticks;if(r.isHorizontal())a=Math.min(i.maxTicksLimit?i.maxTicksLimit:11,Math.ceil(r.width/50));else{var n=t.getValueOrDefault(i.fontSize,e.defaults.global.defaultFontSize);a=Math.min(i.maxTicksLimit?i.maxTicksLimit:11,Math.ceil(r.height/(2*n)))}return a},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var i,t=this,a=t.start,r=+t.getRightValue(e),n=t.end-a;return t.isHorizontal()?(i=t.left+t.width/n*(r-a),Math.round(i)):(i=t.bottom-t.height/n*(r-a),Math.round(i))},getValueForPixel:function(e){var t=this,a=t.isHorizontal(),r=a?t.width:t.height,i=(a?e-t.left:t.bottom-e)/r;return t.start+(t.end-t.start)*i},getPixelForTick:function(e){return this.getPixelForValue(this.ticksAsNumbers[e])}});e.scaleService.registerScaleType("linear",r,a)}},{}],46:[function(e,t,a){"use strict";
317t.exports=function(e){var t=e.helpers,a=t.noop;e.LinearScaleBase=e.Scale.extend({handleTickRangeOptions:function(){var e=this,a=e.options,r=a.ticks;if(r.beginAtZero){var i=t.sign(e.min),n=t.sign(e.max);0>i&&0>n?e.max=0:i>0&&n>0&&(e.min=0)}void 0!==r.min?e.min=r.min:void 0!==r.suggestedMin&&(null===e.min?e.min=r.suggestedMin:e.min=Math.min(e.min,r.suggestedMin)),void 0!==r.max?e.max=r.max:void 0!==r.suggestedMax&&(null===e.max?e.max=r.suggestedMax:e.max=Math.max(e.max,r.suggestedMax)),e.min===e.max&&(e.max++,r.beginAtZero||e.min--)},getTickLimit:a,handleDirectionalChanges:a,buildTicks:function(){var a=this,r=a.options,i=r.ticks,n=a.getTickLimit();n=Math.max(2,n);var o={maxTicks:n,min:i.min,max:i.max,stepSize:t.getValueOrDefault(i.fixedStepSize,i.stepSize)},s=a.ticks=e.Ticks.generators.linear(o,a);a.handleDirectionalChanges(),a.max=t.max(s),a.min=t.min(s),i.reverse?(s.reverse(),a.start=a.max,a.end=a.min):(a.start=a.min,a.end=a.max)},convertTicksToLabels:function(){var t=this;t.ticksAsNumbers=t.ticks.slice(),t.zeroLineIndex=t.ticks.indexOf(0),e.Scale.prototype.convertTicksToLabels.call(t)}})}},{}],47:[function(e,t,a){"use strict";t.exports=function(e){var t=e.helpers,a={position:"left",ticks:{callback:e.Ticks.formatters.logarithmic}},r=e.Scale.extend({determineDataLimits:function(){function u(t){return l?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,a=e.options,r=a.ticks,i=e.chart,n=i.data,o=n.datasets,s=t.getValueOrDefault,l=e.isHorizontal();e.min=null,e.max=null,e.minNotZero=null;var d=a.stacked;if(void 0===d&&t.each(o,function(e,t){if(!d){var a=i.getDatasetMeta(t);i.isDatasetVisible(t)&&u(a)&&void 0!==a.stack&&(d=!0)}}),a.stacked||d){var c={};t.each(o,function(r,n){var o=i.getDatasetMeta(n),s=[o.type,void 0===a.stacked&&void 0===o.stack?n:"",o.stack].join(".");i.isDatasetVisible(n)&&u(o)&&(void 0===c[s]&&(c[s]=[]),t.each(r.data,function(t,r){var i=c[s],n=+e.getRightValue(t);isNaN(n)||o.data[r].hidden||(i[r]=i[r]||0,a.relativePoints?i[r]=100:i[r]+=n)}))}),t.each(c,function(a){var r=t.min(a),i=t.max(a);e.min=null===e.min?r:Math.min(e.min,r),e.max=null===e.max?i:Math.max(e.max,i)})}else t.each(o,function(a,r){var n=i.getDatasetMeta(r);i.isDatasetVisible(r)&&u(n)&&t.each(a.data,function(t,a){var r=+e.getRightValue(t);isNaN(r)||n.data[a].hidden||(null===e.min?e.min=r:r<e.min&&(e.min=r),null===e.max?e.max=r:r>e.max&&(e.max=r),0!==r&&(null===e.minNotZero||r<e.minNotZero)&&(e.minNotZero=r))})});e.min=s(r.min,e.min),e.max=s(r.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(t.log10(e.min))-1),e.max=Math.pow(10,Math.floor(t.log10(e.max))+1)):(e.min=1,e.max=10))},buildTicks:function(){var a=this,r=a.options,i=r.ticks,n={min:i.min,max:i.max},o=a.ticks=e.Ticks.generators.logarithmic(n,a);a.isHorizontal()||o.reverse(),a.max=t.max(o),a.min=t.min(o),i.reverse?(o.reverse(),a.start=a.max,a.end=a.min):(a.start=a.min,a.end=a.max)},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),e.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){return this.getPixelForValue(this.tickValues[e])},getPixelForValue:function(e){var r,i,s,a=this,n=a.start,o=+a.getRightValue(e),l=a.options,u=l.ticks;return a.isHorizontal()?(s=t.log10(a.end)-t.log10(n),0===o?i=a.left:(r=a.width,i=a.left+r/s*(t.log10(o)-t.log10(n)))):(r=a.height,0!==n||u.reverse?0===a.end&&u.reverse?(s=t.log10(a.start)-t.log10(a.minNotZero),i=o===a.end?a.top:o===a.minNotZero?a.top+.02*r:a.top+.02*r+.98*r/s*(t.log10(o)-t.log10(a.minNotZero))):0===o?i=u.reverse?a.top:a.bottom:(s=t.log10(a.end)-t.log10(n),r=a.height,i=a.bottom-r/s*(t.log10(o)-t.log10(n))):(s=t.log10(a.end)-t.log10(a.minNotZero),i=o===n?a.bottom:o===a.minNotZero?a.bottom-.02*r:a.bottom-.02*r-.98*r/s*(t.log10(o)-t.log10(a.minNotZero)))),i},getValueForPixel:function(e){var i,n,a=this,r=t.log10(a.end)-t.log10(a.start);return a.isHorizontal()?(n=a.width,i=a.start*Math.pow(10,(e-a.left)*r/n)):(n=a.height,i=Math.pow(10,(a.bottom-e)*r/n)/a.start),i}});e.scaleService.registerScaleType("logarithmic",r,a)}},{}],48:[function(e,t,a){"use strict";
317t.exports=function(e){function i(e){var t=e.options;return t.angleLines.display||t.pointLabels.display?e.chart.data.labels.length:0}function n(e){var r=e.options.pointLabels,i=t.getValueOrDefault(r.fontSize,a.defaultFontSize),n=t.getValueOrDefault(r.fontStyle,a.defaultFontStyle),o=t.getValueOrDefault(r.fontFamily,a.defaultFontFamily),s=t.fontString(i,n,o);return{size:i,style:n,family:o,font:s}}function o(e,a,r){return t.isArray(r)?{w:t.longestText(e,e.font,r),h:r.length*a+1.5*(r.length-1)*a}:{w:e.measureText(r).width,h:a}}function s(e,t,a,r,i){return e===r||e===i?{start:t-a/2,end:t+a/2}:r>e||e>i?{start:t-a-5,end:t}:{start:t,end:t+a+5}}function l(e){var d,c,f,a=n(e),r=Math.min(e.height/2,e.width/2),l={r:e.width,l:0,t:e.height,b:0},u={};e.ctx.font=a.font,e._pointLabelSizes=[];var h=i(e);for(d=0;h>d;d++){f=e.getPointPosition(d,r),c=o(e.ctx,a.size,e.pointLabels[d]||""),e._pointLabelSizes[d]=c;var v=e.getIndexAngle(d),p=t.toDegrees(v)%360,g=s(p,f.x,c.w,0,180),m=s(p,f.y,c.h,90,270);g.start<l.l&&(l.l=g.start,u.l=v),g.end>l.r&&(l.r=g.end,u.r=v),m.start<l.t&&(l.t=m.start,u.t=v),m.end>l.b&&(l.b=m.end,u.b=v)}e.setReductions(r,l,u)}function u(e){var t=Math.min(e.height/2,e.width/2);e.drawingArea=Math.round(t),e.setCenterPoint(0,0,0,0)}function d(e){return 0===e||180===e?"center":180>e?"left":"right"}function c(e,a,r,i){if(t.isArray(a))for(var n=r.y,o=1.5*i,s=0;s<a.length;++s)e.fillText(a[s],r.x,n),n+=o;else e.fillText(a,r.x,r.y)}function f(e,t,a){90===e||270===e?a.y-=t.h/2:(e>270||90>e)&&(a.y-=t.h)}function h(e){var r=e.ctx,o=t.getValueOrDefault,s=e.options,l=s.angleLines,u=s.pointLabels;r.lineWidth=l.lineWidth,r.strokeStyle=l.color;var h=e.getDistanceFromCenterForValue(s.reverse?e.min:e.max),v=n(e);r.textBaseline="top";for(var p=i(e)-1;p>=0;p--){if(l.display){var g=e.getPointPosition(p,h);r.beginPath(),r.moveTo(e.xCenter,e.yCenter),r.lineTo(g.x,g.y),r.stroke(),r.closePath()}if(u.display){var m=e.getPointPosition(p,h+5),b=o(u.fontColor,a.defaultFontColor);r.font=v.font,r.fillStyle=b;var y=e.getIndexAngle(p),x=t.toDegrees(y);r.textAlign=d(x),f(x,e._pointLabelSizes[p],m),c(r,e.pointLabels[p]||"",m,v.size)}}}function v(e,a,r,n){var o=e.ctx;if(o.strokeStyle=t.getValueAtIndexOrDefault(a.color,n-1),o.lineWidth=t.getValueAtIndexOrDefault(a.lineWidth,n-1),e.options.gridLines.circular)o.beginPath(),o.arc(e.xCenter,e.yCenter,r,0,2*Math.PI),o.closePath(),o.stroke();else{var s=i(e);if(0===s)return;o.beginPath();var l=e.getPointPosition(0,r);o.moveTo(l.x,l.y);for(var u=1;s>u;u++)l=e.getPointPosition(u,r),o.lineTo(l.x,l.y);o.closePath(),o.stroke()}}function p(e){return t.isNumber(e)?e:0}var t=e.helpers,a=e.defaults.global,r={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:e.Ticks.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}},g=e.LinearScaleBase.extend({setDimensions:function(){var e=this,r=e.options,i=r.ticks;e.width=e.maxWidth,e.height=e.maxHeight,e.xCenter=Math.round(e.width/2),e.yCenter=Math.round(e.height/2);var n=t.min([e.height,e.width]),o=t.getValueOrDefault(i.fontSize,a.defaultFontSize);e.drawingArea=r.display?n/2-(o/2+i.backdropPaddingY):n/2},determineDataLimits:function(){var e=this,a=e.chart,r=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;t.each(a.data.datasets,function(n,o){if(a.isDatasetVisible(o)){var s=a.getDatasetMeta(o);t.each(n.data,function(t,a){var n=+e.getRightValue(t);isNaN(n)||s.data[a].hidden||(r=Math.min(n,r),i=Math.max(n,i))})}}),e.min=r===Number.POSITIVE_INFINITY?0:r,e.max=i===Number.NEGATIVE_INFINITY?0:i,e.handleTickRangeOptions()},getTickLimit:function(){var e=this.options.ticks,r=t.getValueOrDefault(e.fontSize,a.defaultFontSize);return Math.min(e.maxTicksLimit?e.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*r)))},convertTicksToLabels:function(){var t=this;e.LinearScaleBase.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map(t.options.pointLabels.callback,t)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){this.options.pointLabels.display?l(this):u(this)},setReductions:function(e,t,a){var r=this,i=t.l/Math.sin(a.l),n=Math.max(t.r-r.width,0)/Math.sin(a.r),o=-t.t/Math.cos(a.t),s=-Math.max(t.b-r.height,0)/Math.cos(a.b);i=p(i),n=p(n),o=p(o),s=p(s),r.drawingArea=Math.min(Math.round(e-(i+n)/2),Math.round(e-(o+s)/2)),r.setCenterPoint(i,n,o,s)},setCenterPoint:function(e,t,a,r){var i=this,n=i.width-t-i.drawingArea,o=e+i.drawingArea,s=a+i.drawingArea,l=i.height-r-i.drawingArea;i.xCenter=Math.round((o+n)/2+i.left),i.yCenter=Math.round((s+l)/2+i.top)},getIndexAngle:function(e){var t=2*Math.PI/i(this),a=this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0,r=a*Math.PI*2/360;return e*t+r},getDistanceFromCenterForValue:function(e){var t=this;if(null===e)return 0;var a=t.drawingArea/(t.max-t.min);return t.options.reverse?(t.max-e)*a:(e-t.min)*a},getPointPosition:function(e,t){var a=this,r=a.getIndexAngle(e)-Math.PI/2;return{x:Math.round(Math.cos(r)*t)+a.xCenter,y:Math.round(Math.sin(r)*t)+a.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(){var e=this,t=e.min,a=e.max;return e.getPointPositionForValue(0,e.beginAtZero?0:0>t&&0>a?a:t>0&&a>0?t:0)},draw:function(){var e=this,r=e.options,i=r.gridLines,n=r.ticks,o=t.getValueOrDefault;if(r.display){var s=e.ctx,l=o(n.fontSize,a.defaultFontSize),u=o(n.fontStyle,a.defaultFontStyle),d=o(n.fontFamily,a.defaultFontFamily),c=t.fontString(l,u,d);t.each(e.ticks,function(t,u){if(u>0||r.reverse){var d=e.getDistanceFromCenterForValue(e.ticksAsNumbers[u]),f=e.yCenter-d;if(i.display&&0!==u&&v(e,i,d,u),n.display){var h=o(n.fontColor,a.defaultFontColor);if(s.font=c,n.showLabelBackdrop){var p=s.measureText(t).width;s.fillStyle=n.backdropColor,s.fillRect(e.xCenter-p/2-n.backdropPaddingX,f-l/2-n.backdropPaddingY,p+2*n.backdropPaddingX,l+2*n.backdropPaddingY)}s.textAlign="center",s.textBaseline="middle",s.fillStyle=h,s.fillText(t,e.xCenter,f)}}}),(r.angleLines.display||r.pointLabels.display)&&h(e)}}});e.scaleService.registerScaleType("radialLinear",g,r)}},{}],49:[function(e,t,a){"use strict";var r=e(1);r="function"==typeof r?r:window.moment,t.exports=function(e){function n(e,t){var a=e.options.time;if("string"==typeof a.parser)return r(t,a.parser);if("function"==typeof a.parser)return a.parser(t);if("function"==typeof t.getMonth||"number"==typeof t)return r(t);if(t.isValid&&t.isValid())return t;var i=a.format;return"string"!=typeof i&&i.call?(console.warn("options.time.format is deprecated and replaced by options.time.parser."),i(t)):r(t,i)}function o(e,t,r,i){for(var o,n=Object.keys(a),s=n.length,l=n.indexOf(e);s>l;l++){o=n[l];var u=a[o],d=u.steps&&u.steps[u.steps.length-1]||u.maxStep;if(void 0===d||Math.ceil((r-t)/(d*u.size))<=i)break}return o}function s(e,t,r,i){var n=a[r],o=n.size,s=Math.ceil((t-e)/o),l=1,u=t-e;if(n.steps)for(var d=n.steps.length,c=0;d>c&&s>i;c++)l=n.steps[c],s=Math.ceil(u/(o*l));else for(;s>i&&i>0;)++l,s=Math.ceil(u/(o*l));return l}function l(e,t,a){var i=[];if(e.maxTicks){var n=e.stepSize;i.push(void 0!==e.min?e.min:a.min);for(var o=r(a.min);o.add(n,e.unit).valueOf()<a.max;)i.push(o.valueOf());var s=e.max||a.max;i[i.length-1]!==s&&i.push(s)}return i}var t=e.helpers,a={millisecond:{size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{size:1e3,steps:[1,2,5,10,30]},minute:{size:6e4,steps:[1,2,5,10,30]},hour:{size:36e5,steps:[1,2,3,6,12]},day:{size:864e5,steps:[1,2,5]},week:{size:6048e5,maxStep:4},month:{size:2628e6,maxStep:3},quarter:{size:7884e6,maxStep:4},year:{size:3154e7,maxStep:!1}},i={position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}};e.Ticks.generators.time=function(e,t){var a,i,n=e.isoWeekday;return"week"===e.unit&&n!==!1?(a=r(t.min).startOf("isoWeek").isoWeekday(n).valueOf(),i=r(t.max).startOf("isoWeek").isoWeekday(n),t.max-i>0&&i.add(1,"week"),i=i.valueOf()):(a=r(t.min).startOf(e.unit).valueOf(),i=r(t.max).startOf(e.unit),t.max-i>0&&i.add(1,e.unit),i=i.valueOf()),l(e,t,{min:a,max:i})};var u=e.Scale.extend({initialize:function(){if(!r)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");e.Scale.prototype.initialize.call(this)},determineDataLimits:function(){var l,e=this,a=e.options.time,r=Number.MAX_SAFE_INTEGER,i=Number.MIN_SAFE_INTEGER,o=e.chart.data,s={labels:[],datasets:[]};t.each(o.labels,function(t,o){var u=n(e,t);u.isValid()&&(a.round&&u.startOf(a.round),l=u.valueOf(),r=Math.min(l,r),i=Math.max(l,i),s.labels[o]=l)}),t.each(o.datasets,function(o,u){var d=[];"object"==typeof o.data[0]&&null!==o.data[0]&&e.chart.isDatasetVisible(u)?t.each(o.data,function(t,o){var s=n(e,e.getRightValue(t));s.isValid()&&(a.round&&s.startOf(a.round),l=s.valueOf(),r=Math.min(l,r),i=Math.max(l,i),d[o]=l)}):d=s.labels.slice(),s.datasets[u]=d}),e.dataMin=r,e.dataMax=i,e._parsedData=s},buildTicks:function(){var i,l,a=this,r=a.options.time,u=a.dataMin,d=a.dataMax;if(r.min){var c=n(a,r.min);r.round&&c.round(r.round),i=c.valueOf()}r.max&&(l=n(a,r.max).valueOf());var f=a.getLabelCapacity(i||u),h=r.unit||o(r.minUnit,i||u,l||d,f);a.displayFormat=r.displayFormats[h];var v=r.stepSize||s(i||u,l||d,h,f);a.ticks=e.Ticks.generators.time({maxTicks:f,min:i,max:l,stepSize:v,unit:h,isoWeekday:r.isoWeekday},{min:u,max:d}),a.max=t.max(a.ticks),a.min=t.min(a.ticks)},getLabelForIndex:function(e,t){var a=this,r=a.chart.data.labels&&e<a.chart.data.labels.length?a.chart.data.labels[e]:"",i=a.chart.data.datasets[t].data[e];return null!==i&&"object"==typeof i&&(r=a.getRightValue(i)),a.options.time.tooltipFormat&&(r=n(a,r).format(a.options.time.tooltipFormat)),r},tickFormatFunction:function(e,a,r){var i=e.format(this.displayFormat),n=this.options.ticks,o=t.getValueOrDefault(n.callback,n.userCallback);return o?o(i,a,r):i},convertTicksToLabels:function(){var e=this;e.ticksAsTimestamps=e.ticks,e.ticks=e.ticks.map(function(e){return r(e)}).map(e.tickFormatFunction,e)},getPixelForOffset:function(e){var t=this,a=t.max-t.min,r=a?(e-t.min)/a:0;if(t.isHorizontal()){var i=t.width*r;return t.left+Math.round(i)}var n=t.height*r;return t.top+Math.round(n)},getPixelForValue:function(e,t,a){var r=this,i=null;return void 0!==t&&void 0!==a&&(i=r._parsedData.datasets[a][t]),null===i&&(e&&e.isValid||(e=n(r,r.getRightValue(e))),e&&e.isValid&&e.isValid()&&(i=e.valueOf())),null!==i?r.getPixelForOffset(i):void 0},getPixelForTick:function(e){return this.getPixelForOffset(this.ticksAsTimestamps[e])},getValueForPixel:function(e){var t=this,a=t.isHorizontal()?t.width:t.height,i=(e-(t.isHorizontal()?t.left:t.top))/a;return r(t.min+i*(t.max-t.min))},getLabelWidth:function(a){var r=this,i=r.options.ticks,n=r.ctx.measureText(a).width,o=Math.cos(t.toRadians(i.maxRotation)),s=Math.sin(t.toRadians(i.maxRotation)),l=t.getValueOrDefault(i.fontSize,e.defaults.global.defaultFontSize);return n*o+l*s},getLabelCapacity:function(e){var t=this;t.displayFormat=t.options.time.displayFormats.millisecond;var a=t.tickFormatFunction(r(e),0,[]),i=t.getLabelWidth(a),n=t.isHorizontal()?t.width:t.height,o=n/i;return o}});e.scaleService.registerScaleType("time",u,i)}},{1:1}]},{},[7])(7)});var WOW=function(e){var t=e||{};
317this._boxClass=t.boxClass||"wow",this._animateClass=t.animateClass||"animated",this._offset=t.offset||0,this._mobile=void 0===t.mobile?!0:!1,this._live=void 0===t.live?!0:!1,this._seoFixEnabled=void 0===t.seoFixEnabled?!0:!1,this._animationDuration=t.animationDuration||"1s",this._animationDelay=t.animationDelay||"0s",this._initStorageVariables()};WOW.prototype._initStorageVariables=function(){this._animation=[],this._boxes=[],this._cleanupBoxListener=[],this._cleanupBoxVisibleListener=[]},WOW.prototype.init=function(){(this._mobile||!this._isMobile())&&(this._eachBoxInit(this._prepareBox.bind(this)),this._startWow())},WOW.prototype._isMobile=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},WOW.prototype._eachBoxInit=function(e){for(var t=document.getElementsByClassName(this._boxClass),a=0;a<t.length;a++)!function(a){e(t[a],a)}(a)},WOW.prototype._prepareBox=function(e){var t=this._boxes.push(e)-1;this._animation[t]={animationName:e.style.animationName||window.getComputedStyle(e,null).animationName},e.style.animationName="none",e.style.visibility="hidden"},WOW.prototype._startWow=function(){this._live&&this._checkForChanges(),0===window.scrollY&&this._seoFixEnabled&&this._seoFix(),this._appearInView(),this._scrollHandler()},WOW.prototype._seoFix=function(){this._showNotInView()},WOW.prototype._appear=function(e,t){e.style.animationPlayState||e.style.WebkitAnimationPlayState;-1===e.className.indexOf(this._animateClass)&&(delete this._boxes[t],this._onStartAnimation(e,t),this._onStopAnimation(e,t),this._animate(e,t,this._getAnimationConfig(e)))},WOW.prototype._onStartAnimation=function(e,t){this._cleanupBoxVisibleListener[t]=this._boxVisible.bind(this,e,t),e.addEventListener("animationstart",this._cleanupBoxVisibleListener[t]),e.addEventListener("webkitAnimationStart",this._cleanupBoxVisibleListener[t])},WOW.prototype._onStopAnimation=function(e,t){this._cleanupBoxListener[t]=this._cleanupBox.bind(this,e,t),e.addEventListener("animationend",this._cleanupBoxListener[t]),e.addEventListener("webkitAnimationEnd",this._cleanupBoxListener[t])},WOW.prototype._getAnimationConfig=function(e){return{delay:this._getDelay(e),duration:this._getDuration(e),iterations:this._getIterations(e)}},WOW.prototype._getDelay=function(e){return e.getAttribute("data-wow-delay")||this._animationDelay},WOW.prototype._getDuration=function(e){return e.getAttribute("data-wow-duration")||this._animationDuration},WOW.prototype._getIterations=function(e){return e.getAttribute("data-wow-iteration")||e.style.animationIterationCount||window.getComputedStyle(e,null).animationIterationCount||1},WOW.prototype._animate=function(e,t,a){e.style.animationDelay=a.delay,e.style.animationDuration=a.duration,e.style.animationIterationCount=a.iterations,e.style.animationName=this._animation[t].animationName,e.className+=" "+this._animateClass},WOW.prototype._boxVisible=function(e,t){e.style.visibility="visible",e.removeEventListener("animationstart",this._cleanupBoxVisibleListener[t]),e.removeEventListener("webkitAnimationStart",this._cleanupBoxVisibleListener[t]),delete this._cleanupBoxVisibleListener[t]},WOW.prototype._cleanupBox=function(e,t){e.style.animationDelay="",e.style.animationDuration="",e.style.animationIterationCount="",e.style.animationName="none",this._cleanupClass(e),e.removeEventListener("animationend",this._cleanupBoxListener[t]),e.removeEventListener("webkitAnimationEnd",this._cleanupBoxListener[t]),delete this._cleanupBoxListener[t]},WOW.prototype._cleanupClass=function(e){var t=e.className.split(" "),a=t.indexOf(this._animateClass);-1!==a&&(t.splice(a,1),e.className=t.join(" "))},WOW.prototype._eachBox=function(e){for(var t=0;t<this._boxes.length;t++){var a=this._boxes[t];a&&function(t){e(this._boxes[t],t)}.bind(this)(t)}},WOW.prototype._scrollHandler=function(){
318this._hideSeoFixListener=this._hideSeoFix.bind(this),window.addEventListener("scroll",this._hideSeoFixListener),window.addEventListener("scroll",this._appearInView.bind(this)),window.addEventListener("resize",this._appearInView.bind(this))},WOW.prototype._hideSeoFix=function(){window.removeEventListener("scroll",this._hideSeoFixListener),delete this._hideSeoFixListener,this._eachBox(function(e,t){this._isInView(e)||(e.style.visibility="hidden")}.bind(this))},WOW.prototype._appearInView=function(){this._eachBox(function(e,t){this._animateBox(e,t)}.bind(this))},WOW.prototype._animateBox=function(e,t){this._isInView(e)&&(delete this._boxes[t],this._appear(e,t))},WOW.prototype._showNotInView=function(){this._eachBox(function(e,t){this._makeVisible(e,t)}.bind(this))},WOW.prototype._makeVisible=function(e,t){this._isInView(e)||(this._boxes[t].style.visibility="visible")},WOW.prototype._isInView=function(e){var t=e.getAttribute("data-wow-offset")||this._offset,a=this._getElementOffset(e),r=a+~~t,i=window.innerHeight+window.scrollY;return i>=r&&(0===r?10:r)>=window.scrollY},WOW.prototype._getElementOffset=function(e){var t=e.getBoundingClientRect(),a=document.body,r=window.pageYOffset||document.documentElement.scrollTop||a.scrollTop,i=document.documentElement.clientTop||a.clientTop||0,n=t.top+r-i;return Math.round(n)},WOW.prototype._checkForChanges=function(){var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,t=new e(this._mutations.bind(this)),a={childList:!0,subtree:!0};t.observe(document.body,a)},WOW.prototype._mutations=function(e){e.forEach(function(e){for(var t=0;t<e.addedNodes.length;t++)this.doSync(e.addedNodes[t])}.bind(this))},WOW.prototype.doSync=function(e){if(e.className){var t=e.className.split(" ");-1!==t.indexOf(this._boxClass)&&this._prepareBox(e)}},function(e,t){"use strict";"function"==typeof define&&define.amd?define([],function(){return t.apply(e)}):"object"==typeof exports?module.exports=t.call(e):e.Waves=t.call(e)}("object"==typeof global?global:this,function(){"use strict";function i(e){return null!==e&&e===e.window}
318function n(e){return i(e)?e:9===e.nodeType&&e.defaultView}function o(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function s(e){return o(e)&&e.nodeType>0}function l(e){var r=a.call(e);return"[object String]"===r?t(e):o(e)&&/^\[object (Array|HTMLCollection|NodeList|Object)\]$/.test(r)&&e.hasOwnProperty("length")?e:s(e)?[e]:[]}function u(e){var t,a,r={top:0,left:0},i=e&&e.ownerDocument;return t=i.documentElement,"undefined"!=typeof e.getBoundingClientRect&&(r=e.getBoundingClientRect()),a=n(i),{top:r.top+a.pageYOffset-t.clientTop,left:r.left+a.pageXOffset-t.clientLeft}}function d(e){var t="";for(var a in e)e.hasOwnProperty(a)&&(t+=a+":"+e[a]+";");return t}function h(e,t,a){if(a){a.classList.remove("waves-rippling");var r=a.getAttribute("data-x"),i=a.getAttribute("data-y"),n=a.getAttribute("data-scale"),o=a.getAttribute("data-translate"),s=Date.now()-Number(a.getAttribute("data-hold")),l=350-s;0>l&&(l=0),"mousemove"===e.type&&(l=150);var u="mousemove"===e.type?2500:c.duration;setTimeout(function(){var e={top:i+"px",left:r+"px",opacity:"0","-webkit-transition-duration":u+"ms","-moz-transition-duration":u+"ms","-o-transition-duration":u+"ms","transition-duration":u+"ms","-webkit-transform":n+" "+o,"-moz-transform":n+" "+o,"-ms-transform":n+" "+o,"-o-transform":n+" "+o,transform:n+" "+o};a.setAttribute("style",d(e)),setTimeout(function(){try{t.removeChild(a)}catch(e){return!1}},u)},l)}}function p(e){if(v.allowEvent(e)===!1)return null;for(var t=null,a=e.target||e.srcElement;null!==a.parentElement;){if(a.classList.contains("waves-effect")&&!(a instanceof SVGElement)){t=a;break}a=a.parentElement}return t}function g(e){var t=p(e);if(null!==t){if(t.disabled||t.getAttribute("disabled")||t.classList.contains("disabled"))return;if(v.registerEvent(e),"touchstart"===e.type&&c.delay){var a=!1,i=setTimeout(function(){i=null,c.show(e,t)},c.delay),n=function(r){i&&(clearTimeout(i),i=null,c.show(e,t)),a||(a=!0,c.hide(r,t))},o=function(e){i&&(clearTimeout(i),i=null),n(e)};t.addEventListener("touchmove",o,!1),t.addEventListener("touchend",n,!1),t.addEventListener("touchcancel",n,!1)}else c.show(e,t),r&&(t.addEventListener("touchend",c.hide,!1),t.addEventListener("touchcancel",c.hide,!1)),t.addEventListener("mouseup",c.hide,!1),t.addEventListener("mouseleave",c.hide,!1)}}var e=e||{},t=document.querySelectorAll.bind(document),a=Object.prototype.toString,r="ontouchstart"in window,c={duration:750,delay:200,show:function(e,t,a){if(2===e.button)return!1;t=t||this;var r=document.createElement("div");r.className="waves-ripple waves-rippling",t.appendChild(r);var i=u(t),n=0,o=0;"touches"in e&&e.touches.length?(n=e.touches[0].pageY-i.top,o=e.touches[0].pageX-i.left):(n=e.pageY-i.top,o=e.pageX-i.left),o=o>=0?o:0,n=n>=0?n:0;var s="scale("+t.clientWidth/100*3+")",l="translate(0,0)";a&&(l="translate("+a.x+"px, "+a.y+"px)"),r.setAttribute("data-hold",Date.now()),r.setAttribute("data-x",o),r.setAttribute("data-y",n),r.setAttribute("data-scale",s),r.setAttribute("data-translate",l);var f={top:n+"px",left:o+"px"};r.classList.add("waves-notransition"),r.setAttribute("style",d(f)),r.classList.remove("waves-notransition"),f["-webkit-transform"]=s+" "+l,f["-moz-transform"]=s+" "+l,f["-ms-transform"]=s+" "+l,f["-o-transform"]=s+" "+l,f.transform=s+" "+l,f.opacity="1";var h="mousemove"===e.type?2500:c.duration;f["-webkit-transition-duration"]=h+"ms",f["-moz-transition-duration"]=h+"ms",f["-o-transition-duration"]=h+"ms",f["transition-duration"]=h+"ms",r.setAttribute("style",d(f))},hide:function(e,t){t=t||this;for(var a=t.getElementsByClassName("waves-rippling"),r=0,i=a.length;i>r;r++)h(e,t,a[r])}},f={input:function(e){var t=e.parentNode,a=document.createElement("div");a.className="waves-input-wrapper",t.replaceChild(a,e),a.appendChild(e)},img:function(e){var t=e.parentNode;if("i"!==t.tagName.toLowerCase()||!t.classList.contains("waves-effect")){var a=document.createElement("i");t.replaceChild(a,e),a.appendChild(e)}}},v={touches:0,allowEvent:function(e){var t=!0;return/^(mousedown|mousemove)$/.test(e.type)&&v.touches&&(t=!1),t},registerEvent:function(e){var t=e.type;"touchstart"===t?v.touches+=1:/^(touchend|touchcancel)$/.test(t)&&setTimeout(function(){v.touches&&(v.touches-=1)},500)}};return e.init=function(e){var t=document.body;e=e||{},"duration"in e&&(c.duration=e.duration),"delay"in e&&(c.delay=e.delay),r&&(t.addEventListener("touchstart",g,!1),t.addEventListener("touchcancel",v.registerEvent,!1),t.addEventListener("touchend",v.registerEvent,!1)),t.addEventListener("mousedown",g,!1)},e.attach=function(e,t){e=l(e),"[object Array]"===a.call(t)&&(t=t.join(" ")),t=t?" "+t:"";for(var r,i,n=0,o=e.length;o>n;n++)r=e[n],i=r.tagName.toLowerCase(),-1!==["input","img"].indexOf(i)&&(f[i](r),r=r.parentElement),-1===r.className.indexOf("waves-effect")&&(r.className+=" waves-effect"+t)},e.ripple=function(e,t){e=l(e);var a=e.length;if(t=t||{},t.wait=t.wait||0,t.position=t.position||null,a)for(var r,i,n,o={},s=0,d={type:"mousedown",button:1},f=function(e,t){return function(){c.hide(e,t)}};a>s;s++)if(r=e[s],i=t.position||{x:r.clientWidth/2,y:r.clientHeight/2},n=u(r),o.x=n.left+i.x,o.y=n.top+i.y,d.pageX=o.x,d.pageY=o.y,c.show(d,r),t.wait>=0&&null!==t.wait){var h={type:"mouseup",button:1};setTimeout(f(h,r),t.wait)}},e.calm=function(e){e=l(e);for(var t={type:"mouseup",button:1},a=0,r=e.length;r>a;a++)c.hide(t,e[a])},e.displayEffect=function(t){console.error("Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect"),e.init(t)},e}
318),Waves.attach(".btn:not(.btn-flat), .btn-floating",["waves-light"]),Waves.attach(".btn-flat",["waves-effect"]),Waves.attach(".view .mask",["waves-light"]),Waves.attach(".waves-light",["waves-light"]),Waves.attach(".waves-effect",["waves-effect"]),Waves.attach(".navbar-nav a:not(.navbar-brand), .nav-icons li a, .navbar form, .nav-tabs .nav-item",["waves-light"]),Waves.attach(".pager li a",["waves-light"]),Waves.attach(".pagination .page-item .page-link",["waves-effect"]),Waves.init(),function(e){e(document).ready(function(){var t=["text","password","email","url","tel","number","search","search-md"].map(function(e){return"input[type="+e+"]"}).join(", ")+", textarea",a=".materialize-textarea",r=function(e){var t=e.siblings("label, i"),a=e.val().length,r=e.attr("placeholder"),i=(a||r?"add":"remove")+"Class";t[i]("active")},i=function(e){if(e.hasClass("validate")){var t=e.val(),a=!t.length,r=!e[0].validity.badInput;if(a&&r)e.removeClass("valid").removeClass("invalid");else{var i=e.is(":valid"),n=+e.attr("length")||0;i&&(!n||n>t.length)?e.removeClass("invalid").addClass("valid"):e.removeClass("valid").addClass("invalid")}}},n=function(){var t=e(void 0);if(t.val().length){var a=e(".hiddendiv"),r=t.css("font-family"),i=t.css("font-size");i&&hiddenDiv.css("font-size",i),r&&hiddenDiv.css("font-family",r),"off"===t.attr("wrap")&&hiddenDiv.css("overflow-wrap","normal").css("white-space","pre"),a.text(t.val()+"\n");var n=hiddenDiv.html().replace(/\n/g,"<br>");a.html(n),a.css("width",t.is(":visible")?t.width():e(window).width()/2),t.css("height",a.height())}};e(t).each(function(t,a){var i=e(a),n=i.siblings("label, i");r(i);var o=a.validity.badInput;o&&n.addClass("active")}),e(document).on("focus",t,function(t){e(t.target).siblings("label, i").addClass("active")}),e(document).on("blur",t,function(t){var a=e(t.target),r=!a.val(),n=!t.target.validity.badInput,o=void 0===a.attr("placeholder");r&&n&&o&&a.siblings("label, i").removeClass("active"),i(a)}),e(document).on("change",t,function(t){var a=e(t.target);r(a),i(a)}),e("input[autofocus]").siblings("label, i").addClass("active"),e(document).on("reset",function(a){var r=e(a.target);if(r.is("form")){var i=r.find(t);i.removeClass("valid").removeClass("invalid").each(function(t,a){var r=e(a),i=!r.val(),n=!r.attr("placeholder");i&&n&&r.siblings("label, i").removeClass("active")}),r.find("select.initialized").each(function(t,a){var r=e(a),i=r.siblings("input.select-dropdown"),n=r.children("[selected]").val();r.val(n),i.val(n)})}}),e(".hiddendiv").first().length||($hiddenDiv=e('<div class="hiddendiv common"></div>'),e("body").append($hiddenDiv)),e(a).each(n),e("body").on("keyup keydown",a,n)})}(jQuery);
319(function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],function($){return factory($)})}else if(typeof module==="object"&&typeof module.exports==="object"){exports=factory(require("jquery"))}else{factory(jQuery)}})(function($){$.easing.jswing=$.easing.swing;var pow=Math.pow,sqrt=Math.sqrt,sin=Math.sin,cos=Math.cos,PI=Math.PI,c1=1.70158,c2=c1*1.525,c3=c1+1,c4=2*PI/3,c5=2*PI/4.5;function bounceOut(x){var n1=7.5625,d1=2.75;if(x<1/d1){return n1*x*x}else if(x<2/d1){return n1*(x-=1.5/d1)*x+.75}else if(x<2.5/d1){return n1*(x-=2.25/d1)*x+.9375}else{return n1*(x-=2.625/d1)*x+.984375}}$.extend($.easing,{def:"easeOutQuad",swing:function(x){return $.easing[$.easing.def](x)},easeInQuad:function(x){return x*x},easeOutQuad:function(x){return 1-(1-x)*(1-x)},easeInOutQuad:function(x){return x<.5?2*x*x:1-pow(-2*x+2,2)/2},easeInCubic:function(x){return x*x*x},easeOutCubic:function(x){return 1-pow(1-x,3)},easeInOutCubic:function(x){return x<.5?4*x*x*x:1-pow(-2*x+2,3)/2},easeInQuart:function(x){return x*x*x*x},easeOutQuart:function(x){return 1-pow(1-x,4)},easeInOutQuart:function(x){return x<.5?8*x*x*x*x:1-pow(-2*x+2,4)/2},easeInQuint:function(x){return x*x*x*x*x},easeOutQuint:function(x){return 1-pow(1-x,5)},easeInOutQuint:function(x){return x<.5?16*x*x*x*x*x:1-pow(-2*x+2,5)/2},easeInSine:function(x){return 1-cos(x*PI/2)},easeOutSine:function(x){return sin(x*PI/2)},easeInOutSine:function(x){return-(cos(PI*x)-1)/2},easeInExpo:function(x){return x===0?0:pow(2,10*x-10)},easeOutExpo:function(x){return x===1?1:1-pow(2,-10*x)},easeInOutExpo:function(x){return x===0?0:x===1?1:x<.5?pow(2,20*x-10)/2:(2-pow(2,-20*x+10))/2},easeInCirc:function(x){return 1-sqrt(1-pow(x,2))},easeOutCirc:function(x){return sqrt(1-pow(x-1,2))},easeInOutCirc:function(x){return x<.5?(1-sqrt(1-pow(2*x,2)))/2:(sqrt(1-pow(-2*x+2,2))+1)/2},easeInElastic:function(x){return x===0?0:x===1?1:-pow(2,10*x-10)*sin((x*10-10.75)*c4)},easeOutElastic:function(x){return x===0?0:x===1?1:pow(2,-10*x)*sin((x*10-.75)*c4)+1},easeInOutElastic:function(x){return x===0?0:x===1?1:x<.5?-(pow(2,20*x-10)*sin((20*x-11.125)*c5))/2:pow(2,-20*x+10)*sin((20*x-11.125)*c5)/2+1},easeInBack:function(x){return c3*x*x*x-c1*x*x},easeOutBack:function(x){return 1+c3*pow(x-1,3)+c1*pow(x-1,2)},easeInOutBack:function(x){return x<.5?pow(2*x,2)*((c2+1)*2*x-c2)/2:(pow(2*x-2,2)*((c2+1)*(x*2-2)+c2)+2)/2},easeInBounce:function(x){return 1-bounceOut(1-x)},easeOutBounce:bounceOut,easeInOutBounce:function(x){return x<.5?(1-bounceOut(1-2*x))/2:(1+bounceOut(2*x-1))/2}})});

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.