diff options
Diffstat (limited to '')
-rw-r--r-- | web/gui/v2/3495.b3c7dc78377628c8115a.js | 2 | ||||
-rw-r--r-- | web/gui/v2/8099.4838cb5caf85574b5c9d.js.LICENSE.txt (renamed from web/gui/v2/3495.b3c7dc78377628c8115a.js.LICENSE.txt) | 0 |
2 files changed, 0 insertions, 2 deletions
diff --git a/web/gui/v2/3495.b3c7dc78377628c8115a.js b/web/gui/v2/3495.b3c7dc78377628c8115a.js deleted file mode 100644 index 188f27942..000000000 --- a/web/gui/v2/3495.b3c7dc78377628c8115a.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 3495.b3c7dc78377628c8115a.js.LICENSE.txt */ -!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0c805a85-6931-44c5-905e-43cd51ad0328",e._sentryDebugIdIdentifier="sentry-dbid-0c805a85-6931-44c5-905e-43cd51ad0328")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"0c0a7a41a0e7ecb4870dbce38dbd7d5e0913bb7f"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[3495],{33877:function(e,t,n){"use strict";const r=n(67294).createContext(null);t.Z=r},6890:function(e,t,n){"use strict";n.d(t,{Z:function(){return de}});var r={};n.r(r),n.d(r,{a11yNotify:function(){return te},addFilter:function(){return j},clearFilters:function(){return U},removeFilter:function(){return G},reset:function(){return V},setCurrent:function(){return X},setFilter:function(){return z},setResultsPerPage:function(){return Z},setSearchTerm:function(){return B},setSort:function(){return W},trackAutocompleteClickThrough:function(){return Y},trackAutocompleteSuggestionClickThrough:function(){return ne},trackClickThrough:function(){return $}});var i=n(67294),a=n(87462),o=n(78273),s=n(38776);function l(e){return"/"===e.charAt(0)?e:"/"+e}function c(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function u(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function d(e,t,n,r){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=(0,a.Z)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=(0,o.Z)(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function p(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var a="function"===typeof e?e(t,n):e;"string"===typeof a?"function"===typeof r?r(a,i):i(!0):i(!1!==a)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var f=!("undefined"===typeof window||!window.document||!window.document.createElement);function g(e,t){t(window.confirm(e))}var v="popstate",y="hashchange";function m(){try{return window.history.state||{}}catch(e){return{}}}function _(e){void 0===e&&(e={}),f||(0,s.Z)(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,o=i.forceRefresh,_=void 0!==o&&o,x=i.getUserConfirmation,b=void 0===x?g:x,w=i.keyLength,O=void 0===w?6:w,A=e.basename?u(l(e.basename)):"";function S(e){var t=e||{},n=t.key,r=t.state,i=window.location,a=i.pathname+i.search+i.hash;return A&&(a=c(a,A)),d(a,r,n)}function C(){return Math.random().toString(36).substr(2,O)}var k=p();function P(e){(0,a.Z)(Y,e),Y.length=t.length,k.notifyListeners(Y.location,Y.action)}function T(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||E(S(e.state))}function L(){E(S(m()))}var R=!1;function E(e){if(R)R=!1,P();else{k.confirmTransitionTo(e,"POP",b,(function(t){t?P({action:"POP",location:e}):function(e){var t=Y.location,n=N.indexOf(t.key);-1===n&&(n=0);var r=N.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(R=!0,F(i))}(e)}))}}var D=S(m()),N=[D.key];function M(e){return A+h(e)}function F(e){t.go(e)}var I=0;function H(e){1===(I+=e)&&1===e?(window.addEventListener(v,T),r&&window.addEventListener(y,L)):0===I&&(window.removeEventListener(v,T),r&&window.removeEventListener(y,L))}var j=!1;var Y={length:t.length,action:"POP",location:D,createHref:M,push:function(e,r){var i="PUSH",a=d(e,r,C(),Y.location);k.confirmTransitionTo(a,i,b,(function(e){if(e){var r=M(a),o=a.key,s=a.state;if(n)if(t.pushState({key:o,state:s},null,r),_)window.location.href=r;else{var l=N.indexOf(Y.location.key),c=N.slice(0,l+1);c.push(a.key),N=c,P({action:i,location:a})}else window.location.href=r}}))},replace:function(e,r){var i="REPLACE",a=d(e,r,C(),Y.location);k.confirmTransitionTo(a,i,b,(function(e){if(e){var r=M(a),o=a.key,s=a.state;if(n)if(t.replaceState({key:o,state:s},null,r),_)window.location.replace(r);else{var l=N.indexOf(Y.location.key);-1!==l&&(N[l]=a.key),P({action:i,location:a})}else window.location.replace(r)}}))},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},block:function(e){void 0===e&&(e=!1);var t=k.setPrompt(e);return j||(H(1),j=!0),function(){return j&&(j=!1,H(-1)),t()}},listen:function(e){var t=k.appendListener(e);return H(1),function(){H(-1),t()}}};return Y}function x(e,t,n){return Math.min(Math.max(e,t),n)}var b=n(33644),w=n.n(b);var O={encode(e,t){return function(e){return void 0!==e&&null!==e&&"number"===typeof e}(e)?`n_${e}_n`:function(e){return e&&"boolean"===typeof e}(e)?`b_${e}_b`:t(e)},decode(e,t){if(/n_-?[\d\.]*_n/.test(e)){const t=e.substring(2,e.length-2);return Number(t)}if(/^b_(true|false)*_b$/.test(e)){return function(e){if("true"===e)return!0;if("false"===e)return!1;throw"Invalid type parsed as Boolean value"}(e.substring(2,e.length-2))}return t(e)}},A={parse(e){return w().parse(e,{ignoreQueryPrefix:!0,decoder:O.decode,arrayLimit:1e3})},stringify(e){return w().stringify(e,{encoder:O.encode})}};function S(e){return Array.isArray(e)?e[e.length-1]:e}function C(e){return function(e){if(!function(e){return!isNaN(e)}(e))return;return parseInt(e,10)}(S(e))}function k(e){return e.filters}function P(e){return C(e.current)}function T(e){return S(e.q)}function L(e){const t=S(e["sort-field"]),n=S(e["sort-direction"]);return t?[t,n]:[]}function R(e){return C(e.size)}function E(e){return e.sort}class D{constructor(e={}){this.routingOptions={readUrl:e.readUrl||this.readUrl.bind(this),writeUrl:e.writeUrl||this.writeUrl.bind(this),urlToState:e.urlToState||this.urlToState.bind(this),stateToUrl:e.stateToUrl||this.stateToUrl.bind(this),routeChangeHandler:e.routeChangeHandler||this.routeChangeHandler.bind(this)},this.history="undefined"!==typeof window?_():function(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,i=void 0===r?["/"]:r,o=t.initialIndex,s=void 0===o?0:o,l=t.keyLength,c=void 0===l?6:l,u=p();function f(e){(0,a.Z)(b,e),b.length=b.entries.length,u.notifyListeners(b.location,b.action)}function g(){return Math.random().toString(36).substr(2,c)}var v=x(s,0,i.length-1),y=i.map((function(e){return d(e,void 0,"string"===typeof e?g():e.key||g())})),m=h;function _(e){var t=x(b.index+e,0,b.entries.length-1),r=b.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var b={length:y.length,action:"POP",location:y[v],index:v,entries:y,createHref:m,push:function(e,t){var r="PUSH",i=d(e,t,g(),b.location);u.confirmTransitionTo(i,r,n,(function(e){if(e){var t=b.index+1,n=b.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),f({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=d(e,t,g(),b.location);u.confirmTransitionTo(i,r,n,(function(e){e&&(b.entries[b.index]=i,f({action:r,location:i}))}))},go:_,goBack:function(){_(-1)},goForward:function(){_(1)},canGo:function(e){var t=b.index+e;return t>=0&&t<b.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return b}(),this.lastPushSearchString=""}readUrl(){return this.history?this.history.location.search:""}writeUrl(e,{replaceUrl:t=!1}={}){(t?this.history.replace:this.history.push)(`?${e}`)}urlToState(e){return function(e){const t={current:P(e),filters:k(e),searchTerm:T(e),resultsPerPage:R(e),sortField:L(e)[0],sortDirection:L(e)[1],sortList:E(e)};return Object.keys(t).reduce(((e,n)=>{const r=t[n];return r&&(e[n]=r),e}),{})}(A.parse(e))}stateToUrl(e){return`${function(e){return A.stringify(function({searchTerm:e,current:t,filters:n,resultsPerPage:r,sortDirection:i,sortField:a,sortList:o}){const s={};return t>1&&(s.current=t),e&&(s.q=e),r&&(s.size=r),n&&n.length>0&&(s.filters=n),o&&o.length>0?s.sort=o:a&&(s["sort-field"]=a,s["sort-direction"]=i),s}(e))}(e)}`}getStateFromURL(){return this.routingOptions.urlToState(this.routingOptions.readUrl())}pushStateToURL(e,{replaceUrl:t=!1}={}){const n=this.routingOptions.stateToUrl(e);this.lastPushSearchString=n,this.routingOptions.writeUrl(n,{replaceUrl:t})}onURLStateChange(e){this.unlisten=this.routingOptions.routeChangeHandler((t=>{`?${this.lastPushSearchString}`!==t&&(this.lastPushSearchString="",e(this.routingOptions.urlToState(t)))}).bind(this))}routeChangeHandler(e){return this.history.listen((t=>{e(t.search)}))}tearDown(){this.unlisten()}}class N{constructor(){this.requestSequence=0,this.lastCompleted=0}next(){return++this.requestSequence}isOldRequest(e){return e<this.lastCompleted}completed(e){this.lastCompleted=e}}function M(e,t){let n;const r=function(){const r=arguments;clearTimeout(n),n=setTimeout((()=>{e.apply(null,r)}),t)};return r.cancel=()=>{n&&(clearTimeout(n),n=null)},r}class F{constructor(){this.debounceCache={}}runWithDebounce(e,t,n,...r){if(!e)return n(...r);const i=`${t}|${e.toString()}`;let a=this.debounceCache[i];a||(this.debounceCache[i]=M(n,e),a=this.debounceCache[i]),a(...r)}cancelByName(e){Object.entries(this.debounceCache).filter((([t])=>t.startsWith(`${e}|`))).forEach((([e,t])=>t.cancel()))}}F.debounce=(e,t)=>M(t,e);var I=F,H=n(70008);function j(e,t,n="all"){this.debug&&console.log("Search UI: Action","addFilter",...arguments);const{filters:r}=this.state,i=r.find((t=>t.field===e&&t.type===n))||null,a=r.filter((t=>t.field!==e||t.type!==n))||[],o=(null===i||void 0===i?void 0:i.values)||[],s=o.find((e=>(0,H.doFilterValuesMatch)(e,t)))?o:o.concat(t);this._updateSearchResults({current:1,filters:[...a,{field:e,values:s,type:n}]});this.events.emit({type:"FacetFilterSelected",field:e,value:(0,H.serialiseFilter)(s),query:this.state.searchTerm})}function Y(e,t=[]){this.debug&&console.log("Search UI: Action","trackAutocompleteClickThrough",...arguments);const{autocompletedResultsRequestId:n,searchTerm:r,autocompletedResults:i,current:a,resultsPerPage:o,totalResults:s,filters:l}=this.state,c=i.findIndex((t=>t._meta.id===e)),u=i[c],h=this.events;h.autocompleteResultClick({query:r,documentId:e,requestId:n,tags:t,result:u,resultIndex:c}),h.emit({type:"ResultSelected",documentId:e,query:r,position:c,origin:"autocomplete",tags:t,totalResults:s,filters:l,currentPage:a,resultsPerPage:o})}function U(e=[]){this.debug&&console.log("Search UI: Action","clearFilters",...arguments);const{filters:t}=this.state,n=t.filter((t=>{const n=t.field;return e.includes(n)}));this._updateSearchResults({current:1,filters:n})}function G(e,t,n){this.debug&&console.log("Search UI: Action","removeFilter",...arguments);const{filters:r}=this.state;let i=r;i=!t&&n?r.filter((t=>!(t.field===e&&t.type===n))):t?(0,H.removeSingleFilterValue)(r,e,t,n):r.filter((t=>t.field!==e)),this._updateSearchResults({current:1,filters:i});this.events.emit({type:"FacetFilterRemoved",field:e,value:t&&(0,H.serialiseFilter)([t]),query:this.state.searchTerm})}function V(){this.debug&&console.log("Search UI: Action","reset",...arguments),this._setState(this.startingState),this.trackUrlState&&this.URLManager.pushStateToURL(this.state)}function X(e){this.debug&&console.log("Search UI: Action","setCurrent",...arguments),this._updateSearchResults({current:e})}function z(e,t,n="all"){this.debug&&console.log("Search UI: Action","setFilter",...arguments);let{filters:r}=this.state;r=r.filter((t=>t.field!==e||t.type!==n)),this._updateSearchResults({current:1,filters:[...r,{field:e,values:[t],type:n}]});this.events.emit({type:"FacetFilterSelected",field:e,value:t&&(0,H.serialiseFilter)([t]),query:this.state.searchTerm})}function Z(e){this.debug&&console.log("Search UI: Action","setResultsPerPage",...arguments),this._updateSearchResults({current:1,resultsPerPage:e})}function B(e,{autocompleteMinimumCharacters:t=0,autocompleteResults:n=!1,autocompleteSuggestions:r=!1,shouldClearFilters:i=!0,refresh:a=!0,debounce:o=0}={}){this.debug&&console.log("Search UI: Action","setSearchTerm",...arguments),this._setState({searchTerm:e}),a&&this.debounceManager.runWithDebounce(o,"_updateSearchResults",this._updateSearchResults,Object.assign({current:1},i&&{filters:[]})),(n||r)&&e.length>=t&&this.debounceManager.runWithDebounce(o,"_updateAutocomplete",this._updateAutocomplete,e,{autocompleteResults:n,autocompleteSuggestions:r})}function W(e,t){this.debug&&console.log("Search UI: Action","setSort",...arguments);const n={current:1,sortList:null,sortField:null,sortDirection:null};Array.isArray(e)?n.sortList=e:(n.sortField=e,n.sortDirection=t),this._updateSearchResults(n)}function $(e,t=[]){this.debug&&console.log("Search UI: Action","trackClickThrough",...arguments);const{requestId:n,searchTerm:r,results:i,current:a,resultsPerPage:o,totalResults:s,filters:l}=this.state,c=i.findIndex((t=>t._meta.id===e)),u=i[c],h=this.events;this.events.resultClick({query:r,documentId:e,requestId:n,tags:t,result:u,page:a,resultsPerPage:o,resultIndexOnPage:c}),h.emit({type:"ResultSelected",documentId:e,query:r,origin:"results",position:c,tags:t,totalResults:s,filters:l,currentPage:a,resultsPerPage:o})}const q="search-ui-screen-reader-notifications",Q="undefined"!==typeof document,K=()=>{if(!Q)return null;let e=document.getElementById(q);return e||(e=document.createElement("div"),e.id=q,e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.style.position="absolute",e.style.width="1px",e.style.height="1px",e.style.margin="-1px",e.style.padding="0",e.style.border="0",e.style.overflow="hidden",e.style.clip="rect(0 0 0 0)",document.body.appendChild(e),e)},J=e=>{const t=K();t&&(t.textContent=e)},ee={searchResults:({start:e,end:t,totalResults:n,searchTerm:r})=>{let i=`Showing ${e} to ${t} results out of ${n}`;return r&&(i+=`, searching for "${r}".`),i}};function te(e,t){if(!this.hasA11yNotifications)return;const n=this.a11yNotificationMessages[e];if(!n){const t=`Could not find corresponding message function in a11yNotificationMessages: "${e}"`;return void console.warn("Action","a11yNotify",t)}const r=n(t);J(r),this.debug&&console.log("Search UI: Action","a11yNotify",{messageFunc:e,messageArgs:t,message:r})}function ne(e,t,n=[]){this.debug&&console.log("Search UI: Action","trackAutocompleteSuggestionClickThrough",...arguments);const{searchTerm:r}=this.state;this.events.emit({type:"AutocompleteSuggestionSelected",position:t,query:r,tags:n,suggestion:e})}function re(e,t,n){if(n){if(t){const r=t[e].bind(t);return(...e)=>n(...e,r)}return n}return t&&t[e]?t[e].bind(t):()=>{throw`No ${e} handler provided and no Connector provided. You must configure one or the other.`}}var ie=class{constructor({apiConnector:e,onSearch:t,onAutocomplete:n,onResultClick:r,onAutocompleteResultClick:i,plugins:a=[]}={}){this.search=re("onSearch",e,t),this.autocomplete=re("onAutocomplete",e,n),this.resultClick=re("onResultClick",e,r),this.autocompleteResultClick=re("onAutocompleteResultClick",e,i),this.plugins=a}emit(e){this.plugins.forEach((t=>{t.subscribe(e)}))}};var ae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function oe({current:e,filters:t,resultsPerPage:n,searchTerm:r,sortDirection:i,sortField:a,sortList:o}){return{current:e,filters:t,resultsPerPage:n,searchTerm:r,sortDirection:i,sortField:a,sortList:o}}const se={current:1,filters:[],resultsPerPage:20,searchTerm:"",sortDirection:"",sortField:"",sortList:[],autocompletedResults:[],autocompletedResultsRequestId:"",autocompletedSuggestions:{},autocompletedSuggestionsRequestId:"",error:"",isLoading:!1,facets:{},requestId:"",results:[],resultSearchTerm:"",totalPages:0,totalResults:0,pagingStart:0,pagingEnd:0,wasSearched:!1,rawResponse:{}};function le(e={},t={},n=[]){return Object.entries(e).reduce(((e,[r,i])=>(t[r]&&"function"===typeof t[r]&&!t[r]({filters:n})||(e[r]=i),e)),{})}var ce=class{constructor({apiConnector:e,autocompleteQuery:t={},plugins:n=[],debug:i,initialState:a,onSearch:o,onAutocomplete:s,onResultClick:l,onAutocompleteResultClick:c,searchQuery:u={},trackUrlState:h=!0,routingOptions:d={},urlPushDebounceLength:p=500,hasA11yNotifications:f=!1,a11yNotificationMessages:g={},alwaysSearchOnInitialLoad:v=!1}){let y;this.state=se,this._updateAutocomplete=(e,{autocompleteResults:t,autocompleteSuggestions:n}={})=>{const r=this.autocompleteRequestSequencer.next(),i=Object.assign(Object.assign({},t&&{results:this.autocompleteQuery.results||{}}),n&&{suggestions:this.autocompleteQuery.suggestions||{}});return this.events.autocomplete({searchTerm:e},i).then((e=>{this.autocompleteRequestSequencer.isOldRequest(r)||(this.autocompleteRequestSequencer.completed(r),this._setState(e))}))},this._updateSearchResults=(e,{skipPushToUrl:t=!1,replaceUrl:n=!1}={})=>{const{current:r,filters:i,resultsPerPage:a,searchTerm:o,sortDirection:s,sortField:l,sortList:c}=Object.assign(Object.assign({},this.state),e);this.debounceManager.cancelByName("_updateSearchResults"),this._setState({current:r,error:"",filters:i,resultsPerPage:a,searchTerm:o,sortDirection:s,sortField:l,sortList:c}),this._makeSearchRequest({skipPushToUrl:t,replaceUrl:n})},this._makeSearchRequest=I.debounce(0,(({skipPushToUrl:e,replaceUrl:t})=>{const{current:n,filters:r,resultsPerPage:i,searchTerm:a,sortDirection:o,sortField:s,sortList:l}=this.state;this._setState({isLoading:!0});const c=this.searchRequestSequencer.next(),u=this.searchQuery,{conditionalFacets:h}=u,d=ae(u,["conditionalFacets"]),p=Object.assign(Object.assign({},d),{facets:le(this.searchQuery.facets,h,r)}),f=Object.assign(Object.assign({},oe(this.state)),{filters:(0,H.mergeFilters)(r,this.searchQuery.filters)});return this.events.search(f,p).then((u=>{if(this.searchRequestSequencer.isOldRequest(c))return;this.searchRequestSequencer.completed(c);const{totalResults:h}=u;this.events.emit({type:"SearchQuery",filters:this.state.filters,query:this.state.searchTerm,currentPage:f.current,resultsPerPage:f.resultsPerPage,totalResults:h});const d=0===h?0:(n-1)*i+1,p=h<d+i?h:d+i-1;if(this._setState(Object.assign(Object.assign({isLoading:!1,resultSearchTerm:a,pagingStart:d,pagingEnd:p},u),{wasSearched:!0})),this.hasA11yNotifications){const e={start:d,end:p,totalResults:h,searchTerm:a};this.actions.a11yNotify("searchResults",e)}!e&&this.trackUrlState&&this.debounceManager.runWithDebounce(this.urlPushDebounceLength,"pushStateToURL",this.URLManager.pushStateToURL.bind(this.URLManager),{current:n,filters:r,resultsPerPage:i,searchTerm:a,sortDirection:o,sortField:s,sortList:l},{replaceUrl:t})}),(e=>{var t;"Invalid credentials"!==e.message?this._setState({error:`An unexpected error occurred: ${e.message}`}):this._setState(Object.assign({},(null===(t=this.apiConnector)||void 0===t?void 0:t.state)&&Object.assign({},this.apiConnector.state)))}))})),this.actions=Object.entries(r).reduce(((e,[t,n])=>Object.assign(Object.assign({},e),{[t]:n.bind(this)})),{}),this.actions=Object.assign(Object.assign({},this.actions),(null===e||void 0===e?void 0:e.actions)&&Object.assign({},e.actions)),Object.assign(this,this.actions),this.events=new ie({apiConnector:e,onSearch:o,onAutocomplete:s,onResultClick:l,onAutocompleteResultClick:c,plugins:n}),this.debug=i,this.debug&&(console.warn("Search UI Debugging is enabled. This should be turned off in production deployments."),"undefined"!==typeof window&&(window.searchUI=this)),this.autocompleteRequestSequencer=new N,this.searchRequestSequencer=new N,this.debounceManager=new I,this.autocompleteQuery=t,this.searchQuery=u,this.subscriptions=[],this.trackUrlState=h,this.urlPushDebounceLength=p,this.alwaysSearchOnInitialLoad=v,this.apiConnector=e,h?(this.URLManager=new D(d),y=this.URLManager.getStateFromURL(),this.URLManager.onURLStateChange((e=>{this._updateSearchResults(Object.assign(Object.assign({},se),e),{skipPushToUrl:!0})}))):y={},this.hasA11yNotifications=f,this.hasA11yNotifications&&K(),this.a11yNotificationMessages=Object.assign(Object.assign({},ee),g),this.startingState=Object.assign(Object.assign({},this.state),a);const m=oe(Object.assign(Object.assign({},this.startingState),y));this.state=Object.assign(Object.assign(Object.assign({},this.state),(null===e||void 0===e?void 0:e.state)&&Object.assign({},e.state)),m),(m.searchTerm||m.filters.length>0||this.alwaysSearchOnInitialLoad)&&this._updateSearchResults(m,{replaceUrl:!0})}_setState(e){const t=Object.assign(Object.assign({},this.state),e);this.debug&&console.log("Search UI: State Update",e,t),this.state=t,this.subscriptions.forEach((e=>e(t)))}setSearchQuery(e){this.searchQuery=e,this._updateSearchResults({})}setAutocompleteQuery(e){this.autocompleteQuery=e}subscribeToStateChanges(e){this.subscriptions.push(e)}unsubscribeToStateChanges(e){this.subscriptions=this.subscriptions.filter((t=>t!==e))}tearDown(){this.subscriptions=[],this.URLManager&&this.URLManager.tearDown(),this.debounceManager.cancelByName("pushStateToURL")}getActions(){return this.actions}getState(){return Object.assign({},this.state)}},ue=n(33877);var he={moreFilters:({visibleOptionsCount:e,showingAll:t})=>{let n=t?"All ":"";return n+=`${e} options shown.`,n}};var de=({children:e,config:t,driver:n})=>{const[r,a]=(0,i.useState)(null);if((0,i.useEffect)((()=>{const e=n||new ce(Object.assign(Object.assign({},t),{a11yNotificationMessages:Object.assign(Object.assign({},he),t.a11yNotificationMessages)}));return a(e),()=>{e.tearDown()}}),[]),(0,i.useEffect)((()=>{r&&r.setSearchQuery(t.searchQuery)}),[t.searchQuery]),(0,i.useEffect)((()=>{r&&r.setAutocompleteQuery(t.autocompleteQuery)}),[t.autocompleteQuery]),!r)return null;const o={driver:r};return i.createElement(ue.Z.Provider,{value:o},e)}},50483:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(67294),i=n(33877),a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function o(e,t,n){return(n.mapContextToProps||t)(e,n)||{}}var s=function(e){if(!e)throw"withSearch requires a function to be provided which returns an object with at least one value.";return function(t){class n extends r.PureComponent{constructor(t,n){super(t),this.subscription=t=>{this.mounted&&this.setState((n=>o(Object.assign(Object.assign({},n),t),e,this.props)))},this.mounted=!1,this.state=Object.assign({},o(function(e){return Object.assign(Object.assign({},e.driver.getState()),e.driver.getActions())}(n),e,t))}componentDidMount(){this.mounted=!0,this.context.driver.subscribeToStateChanges(this.subscription)}componentWillUnmount(){this.mounted=!1,this.context.driver.unsubscribeToStateChanges(this.subscription)}render(){const e=a(this.props,[]);return r.createElement(t,Object.assign({},this.state,e))}}return n.contextType=i.Z,n}},l=n(45697),c=n.n(l);function u({mapContextToProps:e,children:t}){const n=s(e)((e=>t(e)));return r.createElement(n,null)}u.propTypes={mapContextToProps:c().func,children:c().func.isRequired};var h=u},64787:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(70008);const i=Object.assign({},r);var a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function o(e,t,n){const{disjunctiveFacets:r,disjunctiveFacetsAnalyticsTags:o}=t;r&&console.warn("search-ui-site-search-connector: disjunctiveFacets is not supported by Site Search"),o&&console.warn("search-ui-site-search-connector: disjunctiveFacetsAnalyticsTags is not supported by Site Search");const s=function(e){if(!e)return;const t=Object.entries(e).map((([e,t])=>{if("value"==t.type)return t.sort&&console.warn("search-ui-site-search-connector: Site Search does not support 'sort' on facets"),t.size&&console.warn("search-ui-site-search-connector: Site Search does not support 'size' on facets"),[e,t];console.warn(`search-ui-site-search-connector: Dropping ${e} facet, only value facets are supported in Site Search`)})).filter((e=>e)).map((([e])=>e));return t.length?t:void 0}(t.facets),l=function(e){if(e&&0!==Object.keys(e).length)return e.reduce(((e,t)=>{const n=t.field,r=t.values;if(e[n])return console.warn("search-ui-site-search-connector: More than one filter found for a single field"),e;if(t.type&&"all"!==t.type&&"any"!==t.type)return console.warn(`search-ui-site-search-connector: Unsupported filter type "${t.type}" found, only "all" and "any" are currently supported`),e;if(void 0!==r.find((e=>"object"===typeof e))){if(r.length>1)return console.warn("search-ui-site-search-connector: Cannot apply more than 1 none-value filters to a single field"),e;const t=r[0];if(i.isFilterValueRange(t)){const{name:r}=t,i=a(t,["name"]);return e[n]=Object.assign({type:"range"},i),e}return e}return e[n]=Object.assign(Object.assign({},"any"===t.type?{}:{type:"and"}),{values:r}),e}),{})}(void 0!==t.filters?t.filters:e.filters),c=void 0!==t.current?t.current:e.current,u=void 0!==t.resultsPerPage?t.resultsPerPage:e.resultsPerPage,h=void 0!==t.sortDirection?t.sortDirection:e.sortDirection,d=void 0!==t.sortField?t.sortField:e.sortField,p=void 0!==t.sortList?t.sortList:e.sortList,[f,g]=(v=t.result_fields)?[Object.keys(v),Object.entries(v).reduce(((e,[t,n])=>n.snippet?Object.assign(Object.assign({},e),{[t]:n.snippet}):e),{})]:[];var v;const y=(m=t.search_fields)?Object.keys(m):[];var m;const _=e.searchTerm;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u&&{per_page:u}),c&&{page:c}),h&&{sort_direction:{[n]:h}}),d&&{sort_field:{[n]:d}}),p&&{sort_list:{[n]:p}}),l&&{filters:{[n]:l}}),s&&{facets:{[n]:s}}),f&&{fetch_fields:{[n]:f}}),g&&{highlight_fields:{[n]:g}}),y&&!!y.length&&{search_fields:{[n]:y}}),{q:_})}var s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const l=(e,[t,n])=>Object.assign(Object.assign({},e),{[t]:n});function c(e,t){const n=function(e,t){return e[t].map((e=>{const{highlight:t,sort:n}=e,r=s(e,["highlight","sort"]),i=Object.entries(r).filter((([e])=>!e.startsWith("_"))).map((([e,t])=>{return[e,(n=t,{raw:n})];var n})).reduce(l,{});return Object.entries(t).forEach((([e,t])=>{i[e].snippet=t})),i}))}(e.records,t),r=e.info[t].num_pages,i=e.info[t].total_result_count,a=(o=e.info[t]).facets?Object.entries(o.facets).map((([e,t])=>[e,[{field:e,data:Object.entries(t).map((([e,t])=>({value:e,count:t}))),type:"value"}]])).reduce(l,{}):{};var o;return Object.assign({rawResponse:e,results:n,totalPages:r,totalResults:i,requestId:""},Object.keys(a).length>0&&{facets:a})}var u=function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(t){a(t)}}function s(e){try{l(r.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))};function h(e,t,n,r){return u(this,void 0,void 0,(function*(){const i=new Headers({"Content-Type":"application/json"}),a=yield fetch(`https://search-api.swiftype.com/api/v1/public/${n}`,{method:t,headers:i,body:JSON.stringify(Object.assign({engine_key:e},r)),credentials:"include"});let o;try{o=yield a.json()}catch(s){}if(a.status>=200&&a.status<300)return o;{const e=o&&o.errors&&Object.entries(o.errors).length>0?JSON.stringify(o.errors):a.status;throw new Error(`${e}`)}}))}var d=function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(t){a(t)}}function s(e){try{l(r.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))};function p(e,t,n){const r=Object.entries(Object.assign({engine_key:e},n)).map((([e,t])=>`${e}=${encodeURIComponent(t)}`)).join("&");return fetch(`https://search-api.swiftype.com/api/v1/public/${t}?${r}`,{method:"GET",credentials:"include"})}var f=class{constructor({documentType:e,engineKey:t,beforeSearchCall:n=((e,t)=>t(e)),beforeAutocompleteResultsCall:r=((e,t)=>t(e))}){this.documentType=e,this.engineKey=t,this.beforeSearchCall=n,this.beforeAutocompleteResultsCall=r,this.request=h.bind(this,t),this._get=p.bind(this,t)}onResultClick({query:e,documentId:t,tags:n}){n&&n.length>0&&console.warn("search-ui-site-search-connector: Site Search does not support tags on click"),this._get("analytics/pc",{t:(new Date).getTime(),q:e,doc_id:t})}onAutocompleteResultClick({query:e,documentId:t,tags:n}){n&&console.warn("search-ui-site-search-connector: Site Search does not support tags on autocompleteClick"),this._get("analytics/pas",{t:(new Date).getTime(),q:e,doc_id:t})}onSearch(e,t){const n=o(e,t,this.documentType);return this.beforeSearchCall(n,(e=>this.request("POST","engines/search.json",e).then((e=>c(e,this.documentType)))))}onAutocomplete({searchTerm:e},t){return d(this,void 0,void 0,(function*(){if(t.results){const n=o({searchTerm:e},t.results,this.documentType);return this.beforeAutocompleteResultsCall(n,(e=>this.request("POST","engines/suggest.json",e).then((e=>({autocompletedResults:c(e,this.documentType).results})))))}t.suggestions&&console.warn("search-ui-site-search-connector: Site Search does support query suggestions on autocomplete")}))}}},70008:function(e,t,n){"use strict";n.r(t),n.d(t,{doFilterValuesMatch:function(){return c},findFilterValues:function(){return o},isFilterValueRange:function(){return h},markSelectedFacetValuesFromFilters:function(){return l},mergeFilters:function(){return u},removeSingleFilterValue:function(){return s},serialiseFilter:function(){return d}});var r=n(78081),i=n.n(r),a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function o(e,t,n){const r=e.find((e=>e.field===t&&e.type===n));return r?r.values:[]}function s(e,t,n,r){return e.reduce(((e,i)=>{const{field:o,values:s,type:l}=i,u=a(i,["field","values","type"]);if(o===t&&(!r||l===r)){const t=s.filter((e=>!c(e,n)));return t.length>0?e.concat(Object.assign({field:o,values:t,type:l},u)):e}return e.concat(i)}),[])}function l(e,t,n,r){const i=e.data,a=o(t,n,r)||[];return Object.assign(Object.assign({},e),{data:i.map((e=>Object.assign(Object.assign({},e),{selected:a.some((t=>c(t,e.value)))})))})}function c(e,t){return!!(e&&e.name&&t&&t.name&&e.name===t.name)||i()(e,t,{strict:!0})}function u(e,t){return t?t.reduce(((e,t)=>e.find((e=>e.type===t.type&&e.field===t.field))?e:[...e,t]),e):e}function h(e){return"object"===typeof e&&void 0!==e.name}const d=e=>e.reduce(((e,t)=>(h(t)?e.push(t.name):e.push(t.toString()),e)),[]).join(",")},78081:function(e,t,n){var r=n(82215),i=n(82584),a=n(20609),o=n(98420),s=n(20738),l=n(18923),c=Date.prototype.getTime;function u(e,t,n){var p=n||{};return!!(p.strict?a(e,t):e===t)||(!e||!t||"object"!==typeof e&&"object"!==typeof t?p.strict?a(e,t):e==t:function(e,t,n){var a,p;if(typeof e!==typeof t)return!1;if(h(e)||h(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e)!==i(t))return!1;var f=o(e),g=o(t);if(f!==g)return!1;if(f||g)return e.source===t.source&&s(e)===s(t);if(l(e)&&l(t))return c.call(e)===c.call(t);var v=d(e),y=d(t);if(v!==y)return!1;if(v||y){if(e.length!==t.length)return!1;for(a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}if(typeof e!==typeof t)return!1;try{var m=r(e),_=r(t)}catch(x){return!1}if(m.length!==_.length)return!1;for(m.sort(),_.sort(),a=m.length-1;a>=0;a--)if(m[a]!=_[a])return!1;for(a=m.length-1;a>=0;a--)if(!u(e[p=m[a]],t[p],n))return!1;return!0}(e,t,p))}function h(e){return null===e||void 0===e}function d(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&("function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0]))}e.exports=u},21782:function(e,t,n){"use strict";var r=n(82215),i="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),a=Object.prototype.toString,o=Array.prototype.concat,s=Object.defineProperty,l=n(31044)(),c=s&&l,u=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!==typeof(i=r)||"[object Function]"!==a.call(i)||!r())return;var i;c?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n},h=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);i&&(a=o.call(a,Object.getOwnPropertySymbols(t)));for(var s=0;s<a.length;s+=1)u(e,a[s],t[a[s]],n[a[s]])};h.supportsDescriptors=!!c,e.exports=h},34474:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:i}},33644:function(e,t,n){"use strict";var r=n(62267),i=n(25048),a=n(34474);e.exports={formats:a,parse:i,stringify:r}},25048:function(e,t,n){"use strict";var r=n(74872),i=Object.prototype.hasOwnProperty,a=Array.isArray,o={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(a),c=s?a.slice(0,s.index):a,u=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var h=0;n.depth>0&&null!==(s=o.exec(a))&&h<n.depth;){if(h+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+a.slice(s.index)+"]"),function(e,t,n,r){for(var i=r?t:l(t,n),a=e.length-1;a>=0;--a){var o,s=e[a];if("[]"===s&&n.parseArrays)o=[].concat(i);else{o=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(o=[])[u]=i:"__proto__"!==c&&(o[c]=i):o={0:i}}i=o}return i}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return o;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?o.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:o.comma,decoder:"function"===typeof e.decoder?e.decoder:o.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var u="string"===typeof e?function(e,t){var n,c={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,h=t.parameterLimit===1/0?void 0:t.parameterLimit,d=u.split(t.delimiter,h),p=-1,f=t.charset;if(t.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?f="utf-8":"utf8=%26%2310003%3B"===d[n]&&(f="iso-8859-1"),p=n,n=d.length);for(n=0;n<d.length;++n)if(n!==p){var g,v,y=d[n],m=y.indexOf("]="),_=-1===m?y.indexOf("="):m+1;-1===_?(g=t.decoder(y,o.decoder,f,"key"),v=t.strictNullHandling?null:""):(g=t.decoder(y.slice(0,_),o.decoder,f,"key"),v=r.maybeMap(l(y.slice(_+1),t),(function(e){return t.decoder(e,o.decoder,f,"value")}))),v&&t.interpretNumericEntities&&"iso-8859-1"===f&&(v=s(v)),y.indexOf("[]=")>-1&&(v=a(v)?[v]:v),i.call(c,g)?c[g]=r.combine(c[g],v):c[g]=v}return c}(e,n):e,h=n.plainObjects?Object.create(null):{},d=Object.keys(u),p=0;p<d.length;++p){var f=d[p],g=c(f,u[f],n,"string"===typeof e);h=r.merge(h,g,n)}return!0===n.allowSparse?h:r.compact(h)}},62267:function(e,t,n){"use strict";var r=n(37478),i=n(74872),a=n(34474),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},h=Date.prototype.toISOString,d=a.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:d,formatter:a.formatters[d],indices:!1,serializeDate:function(e){return h.call(e)},skipNulls:!1,strictNullHandling:!1},f={},g=function e(t,n,a,o,s,c,h,d,g,v,y,m,_,x,b,w){for(var O,A=t,S=w,C=0,k=!1;void 0!==(S=S.get(f))&&!k;){var P=S.get(t);if(C+=1,"undefined"!==typeof P){if(P===C)throw new RangeError("Cyclic object value");k=!0}"undefined"===typeof S.get(f)&&(C=0)}if("function"===typeof d?A=d(n,A):A instanceof Date?A=y(A):"comma"===a&&l(A)&&(A=i.maybeMap(A,(function(e){return e instanceof Date?y(e):e}))),null===A){if(s)return h&&!x?h(n,p.encoder,b,"key",m):n;A=""}if("string"===typeof(O=A)||"number"===typeof O||"boolean"===typeof O||"symbol"===typeof O||"bigint"===typeof O||i.isBuffer(A))return h?[_(x?n:h(n,p.encoder,b,"key",m))+"="+_(h(A,p.encoder,b,"value",m))]:[_(n)+"="+_(String(A))];var T,L=[];if("undefined"===typeof A)return L;if("comma"===a&&l(A))x&&h&&(A=i.maybeMap(A,h)),T=[{value:A.length>0?A.join(",")||null:void 0}];else if(l(d))T=d;else{var R=Object.keys(A);T=g?R.sort(g):R}for(var E=o&&l(A)&&1===A.length?n+"[]":n,D=0;D<T.length;++D){var N=T[D],M="object"===typeof N&&"undefined"!==typeof N.value?N.value:A[N];if(!c||null!==M){var F=l(A)?"function"===typeof a?a(E,N):E:E+(v?"."+N:"["+N+"]");w.set(t,C);var I=r();I.set(f,w),u(L,e(M,F,a,o,s,c,"comma"===a&&x&&l(A)?null:h,d,g,v,y,m,_,x,b,I))}}return L};e.exports=function(e,t){var n,i=e,c=function(e){if(!e)return p;if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=a.default;if("undefined"!==typeof e.format){if(!o.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=a.formatters[n],i=p.filter;return("function"===typeof e.filter||l(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?p.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:p.encode,encoder:"function"===typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"===typeof c.filter?i=(0,c.filter)("",i):l(c.filter)&&(n=c.filter);var h,d=[];if("object"!==typeof i||null===i)return"";h=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var f=s[h];if(t&&"commaRoundTrip"in t&&"boolean"!==typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var v="comma"===f&&t&&t.commaRoundTrip;n||(n=Object.keys(i)),c.sort&&n.sort(c.sort);for(var y=r(),m=0;m<n.length;++m){var _=n[m];c.skipNulls&&null===i[_]||u(d,g(i[_],_,f,v,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,y))}var x=d.join(c.delimiter),b=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),x.length>0?b+x:""}},74872:function(e,t,n){"use strict";var r=n(34474),i=Object.prototype.hasOwnProperty,a=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],o=i.obj[i.prop],s=Object.keys(o),l=0;l<s.length;++l){var c=s[l],u=o[c];"object"===typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:o,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var r=[],i=0;i<n.length;++i)"undefined"!==typeof n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(e,t,n,i,a){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",c=0;c<s.length;++c){var u=s.charCodeAt(c);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||a===r.RFC1738&&(40===u||41===u)?l+=s.charAt(c):u<128?l+=o[u]:u<2048?l+=o[192|u>>6]+o[128|63&u]:u<55296||u>=57344?l+=o[224|u>>12]+o[128|u>>6&63]+o[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(c)),l+=o[240|u>>18]+o[128|u>>12&63]+o[128|u>>6&63]+o[128|63&u])}return l},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(a(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var o=t;return a(t)&&!a(n)&&(o=s(t,r)),a(t)&&a(n)?(n.forEach((function(n,a){if(i.call(t,a)){var o=t[a];o&&"object"===typeof o&&n&&"object"===typeof n?t[a]=e(o,n,r):t.push(n)}else t[a]=n})),t):Object.keys(n).reduce((function(t,a){var o=n[a];return i.call(t,a)?t[a]=e(t[a],o,r):t[a]=o,t}),o)}}},25663:function(e,t,n){"use strict";var r=n(25972).functionsHaveConfigurableNames(),i=Object,a=TypeError;e.exports=function(){if(null!=this&&this!==i(this))throw new a("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e},r&&Object.defineProperty&&Object.defineProperty(e.exports,"name",{value:"get flags"})},20738:function(e,t,n){"use strict";var r=n(21782),i=n(55559),a=n(25663),o=n(64879),s=n(5353),l=i(o());r(l,{getPolyfill:o,implementation:a,shim:s}),e.exports=l},64879:function(e,t,n){"use strict";var r=n(25663),i=n(21782).supportsDescriptors,a=Object.getOwnPropertyDescriptor;e.exports=function(){if(i&&"gim"===/a/gim.flags){var e=a(RegExp.prototype,"flags");if(e&&"function"===typeof e.get&&"boolean"===typeof RegExp.prototype.dotAll&&"boolean"===typeof RegExp.prototype.hasIndices){var t="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(n,"sticky",{get:function(){t+="y"}}),"dy"===t)return e.get}}return r}},5353:function(e,t,n){"use strict";var r=n(21782).supportsDescriptors,i=n(64879),a=Object.getOwnPropertyDescriptor,o=Object.defineProperty,s=TypeError,l=Object.getPrototypeOf,c=/a/;e.exports=function(){if(!r||!l)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=i(),t=l(c),n=a(t,"flags");return n&&n.get===e||o(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},63394:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),i=n(46411),a=n(26686),o=n(27563),s=n(20211),l=n(88160),c=n(92190),u=function(e,t,n){for(var r=0,a=0;r=a,a=(0,i.fj)(),38===r&&12===a&&(t[n]=1),!(0,i.r)(a);)(0,i.lp)();return(0,i.tP)(e,i.FK)},h=function(e,t){return(0,i.cE)(function(e,t){var n=-1,r=44;do{switch((0,i.r)(r)){case 0:38===r&&12===(0,i.fj)()&&(t[n]=1),e[n]+=u(i.FK-1,t,n);break;case 2:e[n]+=(0,i.iF)(r);break;case 4:if(44===r){e[++n]=58===(0,i.fj)()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=(0,a.Dp)(r)}}while(r=(0,i.lp)());return e}((0,i.un)(e),t))},d=new WeakMap,p=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||d.get(n))&&!r){d.set(e,!0);for(var i=[],a=h(t,i),o=n.props,s=0,l=0;s<a.length;s++)for(var c=0;c<o.length;c++,l++)e.props[l]=i[s]?a[s].replace(/&\f/g,o[c]):o[c]+" "+a[s]}}},f=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function g(e,t){switch((0,a.vp)(e,t)){case 5103:return o.G$+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return o.G$+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return o.G$+e+o.uj+e+o.MS+e+e;case 6828:case 4268:return o.G$+e+o.MS+e+e;case 6165:return o.G$+e+o.MS+"flex-"+e+e;case 5187:return o.G$+e+(0,a.gx)(e,/(\w+).+(:[^]+)/,o.G$+"box-$1$2"+o.MS+"flex-$1$2")+e;case 5443:return o.G$+e+o.MS+"flex-item-"+(0,a.gx)(e,/flex-|-self/,"")+e;case 4675:return o.G$+e+o.MS+"flex-line-pack"+(0,a.gx)(e,/align-content|flex-|-self/,"")+e;case 5548:return o.G$+e+o.MS+(0,a.gx)(e,"shrink","negative")+e;case 5292:return o.G$+e+o.MS+(0,a.gx)(e,"basis","preferred-size")+e;case 6060:return o.G$+"box-"+(0,a.gx)(e,"-grow","")+o.G$+e+o.MS+(0,a.gx)(e,"grow","positive")+e;case 4554:return o.G$+(0,a.gx)(e,/([^-])(transform)/g,"$1"+o.G$+"$2")+e;case 6187:return(0,a.gx)((0,a.gx)((0,a.gx)(e,/(zoom-|grab)/,o.G$+"$1"),/(image-set)/,o.G$+"$1"),e,"")+e;case 5495:case 3959:return(0,a.gx)(e,/(image-set\([^]*)/,o.G$+"$1$`$1");case 4968:return(0,a.gx)((0,a.gx)(e,/(.+:)(flex-)?(.*)/,o.G$+"box-pack:$3"+o.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+o.G$+e+e;case 4095:case 3583:case 4068:case 2532:return(0,a.gx)(e,/(.+)-inline(.+)/,o.G$+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,a.to)(e)-1-t>6)switch((0,a.uO)(e,t+1)){case 109:if(45!==(0,a.uO)(e,t+4))break;case 102:return(0,a.gx)(e,/(.+:)(.+)-([^]+)/,"$1"+o.G$+"$2-$3$1"+o.uj+(108==(0,a.uO)(e,t+3)?"$3":"$2-$3"))+e;case 115:return~(0,a.Cw)(e,"stretch")?g((0,a.gx)(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==(0,a.uO)(e,t+1))break;case 6444:switch((0,a.uO)(e,(0,a.to)(e)-3-(~(0,a.Cw)(e,"!important")&&10))){case 107:return(0,a.gx)(e,":",":"+o.G$)+e;case 101:return(0,a.gx)(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+o.G$+(45===(0,a.uO)(e,14)?"inline-":"")+"box$3$1"+o.G$+"$2$3$1"+o.MS+"$2box$3")+e}break;case 5936:switch((0,a.uO)(e,t+11)){case 114:return o.G$+e+o.MS+(0,a.gx)(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return o.G$+e+o.MS+(0,a.gx)(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return o.G$+e+o.MS+(0,a.gx)(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return o.G$+e+o.MS+e+e}return e}var v=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case o.h5:e.return=g(e.value,e.length);break;case o.lK:return(0,s.q)([(0,i.JG)(e,{value:(0,a.gx)(e.value,"@","@"+o.G$)})],r);case o.Fr:if(e.length)return(0,a.$e)(e.props,(function(t){switch((0,a.EQ)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,s.q)([(0,i.JG)(e,{props:[(0,a.gx)(t,/:(read-\w+)/,":"+o.uj+"$1")]})],r);case"::placeholder":return(0,s.q)([(0,i.JG)(e,{props:[(0,a.gx)(t,/:(plac\w+)/,":"+o.G$+"input-$1")]}),(0,i.JG)(e,{props:[(0,a.gx)(t,/:(plac\w+)/,":"+o.uj+"$1")]}),(0,i.JG)(e,{props:[(0,a.gx)(t,/:(plac\w+)/,o.MS+"input-$1")]})],r)}return""}))}}],y=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||v;var a,o,u={},h=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)u[t[n]]=!0;h.push(e)}));var d=[p,f];var g,y=[s.P,(0,l.cD)((function(e){g.insert(e)}))],m=(0,l.qR)(d.concat(i,y));o=function(e,t,n,r){var i;g=n,i=e?e+"{"+t.styles+"}":t.styles,(0,s.q)((0,c.MY)(i),m),r&&(_.inserted[t.name]=!0)};var _={key:t,sheet:new r({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:u,registered:{},insert:o};return _.sheet.hydrate(h),_}},71068:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(45042),i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=(0,r.Z)((function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},45042:function(e,t,n){"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:function(){return r}})},42849:function(e,t,n){"use strict";n.d(t,{iv:function(){return T},tZ:function(){return P},F4:function(){return L}});var r=n(67294),i=n.t(r,2),a=n(63394);var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};var s={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},l=n(45042),c=/[A-Z]|^ms/g,u=/_EMO_([^_]+?)_([^]*?)_EMO_/g,h=function(e){return 45===e.charCodeAt(1)},d=function(e){return null!=e&&"boolean"!==typeof e},p=(0,l.Z)((function(e){return h(e)?e:e.replace(c,"-$&").toLowerCase()})),f=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(u,(function(e,t,n){return v={name:t,styles:n,next:v},t}))}return 1===s[e]||h(e)||"number"!==typeof t||0===t?t:t+"px"};function g(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return v={name:n.name,styles:n.styles,next:v},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)v={name:r.name,styles:r.styles,next:v},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=g(e,t,n[i])+";";else for(var a in n){var o=n[a];if("object"!==typeof o)null!=t&&void 0!==t[o]?r+=a+"{"+t[o]+"}":d(o)&&(r+=p(a)+":"+f(a,o)+";");else if(!Array.isArray(o)||"string"!==typeof o[0]||null!=t&&void 0!==t[o[0]]){var s=g(e,t,o);switch(a){case"animation":case"animationName":r+=p(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var l=0;l<o.length;l++)d(o[l])&&(r+=p(a)+":"+f(a,o[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=v,a=n(e);return v=i,g(e,t,a)}}if(null==t)return n;var o=t[n];return void 0!==o?o:n}var v,y=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var m=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";v=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,i+=g(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=g(n,t,e[o]),r&&(i+=a[o]);y.lastIndex=0;for(var s,l="";null!==(s=y.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:v}},_=!!i.useInsertionEffect&&i.useInsertionEffect,x=_||function(e){return e()},b=(_||r.useLayoutEffect,{}.hasOwnProperty),w=r.createContext("undefined"!==typeof HTMLElement?(0,a.Z)({key:"css"}):null);w.Provider;var O=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(w);return e(t,i,n)}))};var A=r.createContext({});var S="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",C=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return o(t,n,r),x((function(){return function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}(t,n,r)})),null};var k=O((function(e,t,n){var i=e.css;"string"===typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var a=e[S],o=[i],s="";"string"===typeof e.className?s=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,o,e.className):null!=e.className&&(s=e.className+" ");var l=m(o,void 0,r.useContext(A));s+=t.key+"-"+l.name;var c={};for(var u in e)b.call(e,u)&&"css"!==u&&u!==S&&(c[u]=e[u]);return c.ref=n,c.className=s,r.createElement(r.Fragment,null,r.createElement(C,{cache:t,serialized:l,isStringTag:"string"===typeof a}),r.createElement(a,c))})),P=(n(8679),function(e,t){var n=arguments;if(null==t||!b.call(t,"css"))return r.createElement.apply(void 0,n);var i=n.length,a=new Array(i);a[0]=k,a[1]=function(e,t){var n={};for(var r in t)b.call(t,r)&&(n[r]=t[r]);return n[S]=e,n}(e,t);for(var o=2;o<i;o++)a[o]=n[o];return r.createElement.apply(null,a)});function T(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m(t)}var L=function(){var e=T.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},48285:function(e,t){"use strict";t.Z=function(e){function t(e,r,l,c,d){for(var p,f,g,v,x,w=0,O=0,A=0,S=0,C=0,E=0,N=g=p=0,F=0,I=0,H=0,j=0,Y=l.length,U=Y-1,G="",V="",X="",z="";F<Y;){if(f=l.charCodeAt(F),F===U&&0!==O+S+A+w&&(0!==O&&(f=47===O?10:47),S=A=w=0,Y++,U++),0===O+S+A+w){if(F===U&&(0<I&&(G=G.replace(h,"")),0<G.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:G+=l.charAt(F)}f=59}switch(f){case 123:for(p=(G=G.trim()).charCodeAt(0),g=1,j=++F;F<Y;){switch(f=l.charCodeAt(F)){case 123:g++;break;case 125:g--;break;case 47:switch(f=l.charCodeAt(F+1)){case 42:case 47:e:{for(N=F+1;N<U;++N)switch(l.charCodeAt(N)){case 47:if(42===f&&42===l.charCodeAt(N-1)&&F+2!==N){F=N+1;break e}break;case 10:if(47===f){F=N+1;break e}}F=N}}break;case 91:f++;case 40:f++;case 34:case 39:for(;F++<U&&l.charCodeAt(F)!==f;);}if(0===g)break;F++}if(g=l.substring(j,F),0===p&&(p=(G=G.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<I&&(G=G.replace(h,"")),f=G.charCodeAt(1)){case 100:case 109:case 115:case 45:I=r;break;default:I=R}if(j=(g=t(r,I,g,f,d+1)).length,0<D&&(x=s(3,g,I=n(R,G,H),r,P,k,j,f,d,c),G=I.join(""),void 0!==x&&0===(j=(g=x.trim()).length)&&(f=0,g="")),0<j)switch(f){case 115:G=G.replace(b,o);case 100:case 109:case 45:g=G+"{"+g+"}";break;case 107:g=(G=G.replace(y,"$1 $2"))+"{"+g+"}",g=1===L||2===L&&a("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=G+g,112===c&&(V+=g,g="")}else g=""}else g=t(r,n(r,G,H),g,c,d+1);X+=g,g=H=I=N=p=0,G="",f=l.charCodeAt(++F);break;case 125:case 59:if(1<(j=(G=(0<I?G.replace(h,""):G).trim()).length))switch(0===N&&(p=G.charCodeAt(0),45===p||96<p&&123>p)&&(j=(G=G.replace(" ",":")).length),0<D&&void 0!==(x=s(1,G,r,e,P,k,V.length,c,d,c))&&0===(j=(G=x.trim()).length)&&(G="\0\0"),p=G.charCodeAt(0),f=G.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){z+=G+l.charAt(F);break}default:58!==G.charCodeAt(j-1)&&(V+=i(G,p,f,G.charCodeAt(2)))}H=I=N=p=0,G="",f=l.charCodeAt(++F)}}switch(f){case 13:case 10:47===O?O=0:0===1+p&&107!==c&&0<G.length&&(I=1,G+="\0"),0<D*M&&s(0,G,r,e,P,k,V.length,c,d,c),k=1,P++;break;case 59:case 125:if(0===O+S+A+w){k++;break}default:switch(k++,v=l.charAt(F),f){case 9:case 32:if(0===S+w+O)switch(C){case 44:case 58:case 9:case 32:v="";break;default:32!==f&&(v=" ")}break;case 0:v="\\0";break;case 12:v="\\f";break;case 11:v="\\v";break;case 38:0===S+O+w&&(I=H=1,v="\f"+v);break;case 108:if(0===S+O+w+T&&0<N)switch(F-N){case 2:112===C&&58===l.charCodeAt(F-3)&&(T=C);case 8:111===E&&(T=E)}break;case 58:0===S+O+w&&(N=F);break;case 44:0===O+A+S+w&&(I=1,v+="\r");break;case 34:case 39:0===O&&(S=S===f?0:0===S?f:S);break;case 91:0===S+O+A&&w++;break;case 93:0===S+O+A&&w--;break;case 41:0===S+O+w&&A--;break;case 40:if(0===S+O+w){if(0===p)if(2*C+3*E===533);else p=1;A++}break;case 64:0===O+A+S+w+N+g&&(g=1);break;case 42:case 47:if(!(0<S+w+A))switch(O){case 0:switch(2*f+3*l.charCodeAt(F+1)){case 235:O=47;break;case 220:j=F,O=42}break;case 42:47===f&&42===C&&j+2!==F&&(33===l.charCodeAt(j+2)&&(V+=l.substring(j,F+1)),v="",O=0)}}0===O&&(G+=v)}E=C,C=f,F++}if(0<(j=V.length)){if(I=r,0<D&&(void 0!==(x=s(2,V,I,e,P,k,j,c,d,c))&&0===(V=x).length))return z+V+X;if(V=I.join(",")+"{"+V+"}",0!==L*T){switch(2!==L||a(V,2)||(T=0),T){case 111:V=V.replace(_,":-moz-$1")+V;break;case 112:V=V.replace(m,"::-webkit-input-$1")+V.replace(m,"::-moz-$1")+V.replace(m,":-ms-input-$1")+V}T=0}}return z+V+X}function n(e,t,n){var i=t.trim().split(g);t=i;var a=i.length,o=e.length;switch(o){case 0:case 1:var s=0;for(e=0===o?"":e[0]+" ";s<a;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<a;++s)for(var c=0;c<o;++c)t[l++]=r(e[c]+" ",i[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(v,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var o=e+";",s=2*t+3*n+4*r;if(944===s){e=o.indexOf(":",9)+1;var l=o.substring(e,o.length-1).trim();return l=o.substring(0,e).trim()+l+";",1===L||2===L&&a(l,1)?"-webkit-"+l+l:l}if(0===L||2===L&&!a(o,1))return o;switch(s){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(C,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(l=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+l+o;case 1005:return p.test(o)?o.replace(d,":-webkit-")+o.replace(d,":-moz-")+o:o;case 1e3:switch(t=(l=o.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=o.replace(x,"tb");break;case 232:l=o.replace(x,"tb-rl");break;case 220:l=o.replace(x,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+l+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,s=(l=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:o=o.replace(l,"-webkit-"+l)+";"+o;break;case 207:case 102:o=o.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+o.replace(l,"-webkit-"+l)+";"+o.replace(l,"-ms-"+l+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return l=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+l+"-ms-flex-"+l+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(O,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(O,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):o.replace(l,"-webkit-"+l)+o.replace(l,"-moz-"+l.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===n+r&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+o}return o}function a(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),N(2!==t?r:r.replace(A,"$1"),n,t)}function o(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,i,a,o,s,l,u){for(var h,d=0,p=t;d<D;++d)switch(h=E[d].call(c,e,p,n,r,i,a,o,s,l,u)){case void 0:case!1:case!0:case null:break;default:p=h}if(p!==t)return p}function l(e){return void 0!==(e=e.prefix)&&(N=null,e?"function"!==typeof e?L=1:(L=2,N=e):L=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<D){var i=s(-1,n,r,r,P,k,0,0,0,0);void 0!==i&&"string"===typeof i&&(n=i)}var a=t(R,r,n,0,0);return 0<D&&(void 0!==(i=s(-2,a,r,r,P,k,a.length,0,0,0))&&(a=i)),"",T=0,k=P=1,a}var u=/^\0+/g,h=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,g=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,m=/::(place)/g,_=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,b=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,O=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,k=1,P=1,T=0,L=1,R=[],E=[],D=0,N=null,M=0;return c.use=function e(t){switch(t){case void 0:case null:D=E.length=0;break;default:if("function"===typeof t)E[D++]=t;else if("object"===typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else M=0|!!t}return e},c.set=l,void 0!==e&&l(e),c}},40351:function(e,t){"use strict";t.Z={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},7494:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.default}});var r=n(95984)},74321:function(e,t,n){"use strict";n.d(t,{Dv:function(){return a},He:function(){return s},JL:function(){return i},XX:function(){return x},cc:function(){return o}});var r=n(72247),i=function(e,t,n,r,i,o){return a(e,t,n,(function(e){return"logscale"!==e&&r(e)}),i,o)},a=function(e,t,n,i,a,o){var s,l,c,u,h=i("pixelsPerLabel"),d=[];if(o)for(s=0;s<o.length;s++)d.push({v:o[s]});else{if(i("logscale")){u=Math.floor(n/h);var p=r.binarySearch(e,y,1),f=r.binarySearch(t,y,-1);-1==p&&(p=0),-1==f&&(f=y.length-1);var g=null;if(f-p>=u/4){for(var v=f;v>=p;v--){var m=y[v],_=Math.log(m/e)/Math.log(t/e)*n,x={v:m};null===g||Math.abs(_-g.pixel_coord)>=h?g={tickValue:m,pixel_coord:_}:x.label="",d.push(x)}d.reverse()}}if(0===d.length){var b,w;i("labelsKMG2")?(b=[1,2,4,8,16,32,64,128,256],w=16):(b=[1,2,5,10,20,50,100],w=10);var O,A,S,C=Math.ceil(n/h),k=Math.abs(t-e)/C,P=Math.floor(Math.log(k)/Math.log(w)),T=Math.pow(w,P);for(l=0;l<b.length&&(O=T*b[l],A=Math.floor(e/O)*O,S=Math.ceil(t/O)*O,!(n/(u=Math.abs(S-A)/O)>h));l++);for(A>S&&(O*=-1),s=0;s<=u;s++)c=A+s*O,d.push({v:c})}}var L=i("axisLabelFormatter");for(s=0;s<d.length;s++)void 0===d[s].label&&(d[s].label=L.call(a,d[s].v,0,i,a));return d},o=function(e,t,n,r,i,a){var o=m(e,t,n,r);return o>=0?x(e,t,o,r,i):[]},s={MILLISECONDLY:0,TWO_MILLISECONDLY:1,FIVE_MILLISECONDLY:2,TEN_MILLISECONDLY:3,FIFTY_MILLISECONDLY:4,HUNDRED_MILLISECONDLY:5,FIVE_HUNDRED_MILLISECONDLY:6,SECONDLY:7,TWO_SECONDLY:8,FIVE_SECONDLY:9,TEN_SECONDLY:10,THIRTY_SECONDLY:11,MINUTELY:12,TWO_MINUTELY:13,FIVE_MINUTELY:14,TEN_MINUTELY:15,THIRTY_MINUTELY:16,HOURLY:17,TWO_HOURLY:18,SIX_HOURLY:19,DAILY:20,TWO_DAILY:21,WEEKLY:22,MONTHLY:23,QUARTERLY:24,BIANNUAL:25,ANNUAL:26,DECADAL:27,CENTENNIAL:28,NUM_GRANULARITIES:29},l=0,c=1,u=2,h=3,d=4,p=5,f=6,g=7,v=[];v[s.MILLISECONDLY]={datefield:f,step:1,spacing:1},v[s.TWO_MILLISECONDLY]={datefield:f,step:2,spacing:2},v[s.FIVE_MILLISECONDLY]={datefield:f,step:5,spacing:5},v[s.TEN_MILLISECONDLY]={datefield:f,step:10,spacing:10},v[s.FIFTY_MILLISECONDLY]={datefield:f,step:50,spacing:50},v[s.HUNDRED_MILLISECONDLY]={datefield:f,step:100,spacing:100},v[s.FIVE_HUNDRED_MILLISECONDLY]={datefield:f,step:500,spacing:500},v[s.SECONDLY]={datefield:p,step:1,spacing:1e3},v[s.TWO_SECONDLY]={datefield:p,step:2,spacing:2e3},v[s.FIVE_SECONDLY]={datefield:p,step:5,spacing:5e3},v[s.TEN_SECONDLY]={datefield:p,step:10,spacing:1e4},v[s.THIRTY_SECONDLY]={datefield:p,step:30,spacing:3e4},v[s.MINUTELY]={datefield:d,step:1,spacing:6e4},v[s.TWO_MINUTELY]={datefield:d,step:2,spacing:12e4},v[s.FIVE_MINUTELY]={datefield:d,step:5,spacing:3e5},v[s.TEN_MINUTELY]={datefield:d,step:10,spacing:6e5},v[s.THIRTY_MINUTELY]={datefield:d,step:30,spacing:18e5},v[s.HOURLY]={datefield:h,step:1,spacing:36e5},v[s.TWO_HOURLY]={datefield:h,step:2,spacing:72e5},v[s.SIX_HOURLY]={datefield:h,step:6,spacing:216e5},v[s.DAILY]={datefield:u,step:1,spacing:864e5},v[s.TWO_DAILY]={datefield:u,step:2,spacing:1728e5},v[s.WEEKLY]={datefield:u,step:7,spacing:6048e5},v[s.MONTHLY]={datefield:c,step:1,spacing:2629746e3},v[s.QUARTERLY]={datefield:c,step:3,spacing:7889238e3},v[s.BIANNUAL]={datefield:c,step:6,spacing:15778476e3},v[s.ANNUAL]={datefield:l,step:1,spacing:31556952e3},v[s.DECADAL]={datefield:l,step:10,spacing:31556952e4},v[s.CENTENNIAL]={datefield:l,step:100,spacing:31556952e5};var y=function(){for(var e=[],t=-39;t<=39;t++)for(var n=Math.pow(10,t),r=1;r<=9;r++){var i=n*r;e.push(i)}return e}(),m=function(e,t,n,r){for(var i=r("pixelsPerLabel"),a=0;a<s.NUM_GRANULARITIES;a++){if(n/_(e,t,a)>=i)return a}return-1},_=function(e,t,n){var r=v[n].spacing;return Math.round(1*(t-e)/r)},x=function(e,t,n,i,a){var o=i("axisLabelFormatter"),y=i("labelsUTC")?r.DateAccessorsUTC:r.DateAccessorsLocal,m=v[n].datefield,_=v[n].step,x=v[n].spacing,b=new Date(e),w=[];w[l]=y.getFullYear(b),w[c]=y.getMonth(b),w[u]=y.getDate(b),w[h]=y.getHours(b),w[d]=y.getMinutes(b),w[p]=y.getSeconds(b),w[f]=y.getMilliseconds(b);var O=w[m]%_;n==s.WEEKLY&&(O=y.getDay(b)),w[m]-=O;for(var A=m+1;A<g;A++)w[A]=A===u?1:0;var S=[],C=y.makeDate.apply(null,w),k=C.getTime();if(n<=s.HOURLY)for(k<e&&(k+=x,C=new Date(k));k<=t;)S.push({v:k,label:o.call(a,C,n,i,a)}),k+=x,C=new Date(k);else for(k<e&&(w[m]+=_,k=(C=y.makeDate.apply(null,w)).getTime());k<=t;)(n>=s.DAILY||y.getHours(C)%_===0)&&S.push({v:k,label:o.call(a,C,n,i,a)}),w[m]+=_,k=(C=y.makeDate.apply(null,w)).getTime();return S}},72247:function(e,t,n){"use strict";n.r(t),n.d(t,{Circles:function(){return Q},DASHED_LINE:function(){return u},DOTTED_LINE:function(){return c},DOT_DASH_LINE:function(){return h},DateAccessorsLocal:function(){return P},DateAccessorsUTC:function(){return T},HORIZONTAL:function(){return d},Iterator:function(){return z},LN_TEN:function(){return o},LOG_SCALE:function(){return a},VERTICAL:function(){return p},addEvent:function(){return g},binarySearch:function(){return D},cancelEvent:function(){return y},clone:function(){return G},createCanvas:function(){return V},createIterator:function(){return Z},dateAxisLabelFormatter:function(){return ve},dateParser:function(){return N},dateStrToMillis:function(){return M},dateString_:function(){return R},dateValueFormatter:function(){return ye},detectLineDelimiter:function(){return K},dragGetX_:function(){return w},dragGetY_:function(){return O},findPos:function(){return _},floatFormat:function(){return C},getContext:function(){return f},getContextPixelRatio:function(){return X},hmsString_:function(){return L},hsvToRGB:function(){return m},isArrayLike:function(){return Y},isCanvasSupported:function(){return ae},isDateLike:function(){return U},isNodeContainedBy:function(){return J},isOK:function(){return A},isPixelChangingOptionList:function(){return q},isValidPoint:function(){return S},log10:function(){return s},logRangeFraction:function(){return l},numberAxisLabelFormatter:function(){return fe},numberValueFormatter:function(){return pe},pageX:function(){return x},pageY:function(){return b},parseFloat_:function(){return oe},pow:function(){return ee},removeEvent:function(){return v},repeatAndCleanup:function(){return W},requestAnimFrame:function(){return B},round_:function(){return E},setupDOMready_:function(){return be},toRGB_:function(){return ie},type:function(){return i},typeArrayLike:function(){return j},update:function(){return F},updateDeep:function(){return H},zeropad:function(){return k}});var r=n(74321);function i(e){return null===e?"null":typeof e}var a=10,o=Math.log(a),s=function(e){return Math.log(e)/o},l=function(e,t,n){var r=s(e),i=r+n*(s(t)-r);return Math.pow(a,i)},c=[2,2],u=[7,3],h=[7,2,2,2],d=1,p=2,f=function(e){return e.getContext("2d")},g=function(e,t,n){e.addEventListener(t,n,!1)};function v(e,t,n){e.removeEventListener(t,n,!1)}function y(e){return(e=e||window.event).stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,e.cancel=!0,e.returnValue=!1,!1}function m(e,t,n){var r,i,a;if(0===t)r=n,i=n,a=n;else{var o=Math.floor(6*e),s=6*e-o,l=n*(1-t),c=n*(1-t*s),u=n*(1-t*(1-s));switch(o){case 1:r=c,i=n,a=l;break;case 2:r=l,i=n,a=u;break;case 3:r=l,i=c,a=n;break;case 4:r=u,i=l,a=n;break;case 5:r=n,i=l,a=c;break;case 6:case 0:r=n,i=u,a=l}}return"rgb("+(r=Math.floor(255*r+.5))+","+(i=Math.floor(255*i+.5))+","+(a=Math.floor(255*a+.5))+")"}function _(e){var t=e.getBoundingClientRect(),n=window,r=document.documentElement;return{x:t.left+(n.pageXOffset||r.scrollLeft),y:t.top+(n.pageYOffset||r.scrollTop)}}function x(e){return!e.pageX||e.pageX<0?0:e.pageX}function b(e){return!e.pageY||e.pageY<0?0:e.pageY}function w(e,t){return x(e)-t.px}function O(e,t){return b(e)-t.py}function A(e){return!!e&&!isNaN(e)}function S(e,t){return!!e&&(null!==e.yval&&(null!==e.x&&void 0!==e.x&&(null!==e.y&&void 0!==e.y&&!(isNaN(e.x)||!t&&isNaN(e.y)))))}function C(e,t){var n=Math.min(Math.max(1,t||2),21);return Math.abs(e)<.001&&0!==e?e.toExponential(n-1):e.toPrecision(n)}function k(e){return e<10?"0"+e:""+e}var P={getFullYear:e=>e.getFullYear(),getMonth:e=>e.getMonth(),getDate:e=>e.getDate(),getHours:e=>e.getHours(),getMinutes:e=>e.getMinutes(),getSeconds:e=>e.getSeconds(),getMilliseconds:e=>e.getMilliseconds(),getDay:e=>e.getDay(),makeDate:function(e,t,n,r,i,a,o){return new Date(e,t,n,r,i,a,o)}},T={getFullYear:e=>e.getUTCFullYear(),getMonth:e=>e.getUTCMonth(),getDate:e=>e.getUTCDate(),getHours:e=>e.getUTCHours(),getMinutes:e=>e.getUTCMinutes(),getSeconds:e=>e.getUTCSeconds(),getMilliseconds:e=>e.getUTCMilliseconds(),getDay:e=>e.getUTCDay(),makeDate:function(e,t,n,r,i,a,o){return new Date(Date.UTC(e,t,n,r,i,a,o))}};function L(e,t,n,r){var i=k(e)+":"+k(t);if(n&&(i+=":"+k(n),r)){var a=""+r;i+="."+("000"+a).substring(a.length)}return i}function R(e,t){var n=t?T:P,r=new Date(e),i=n.getFullYear(r),a=n.getMonth(r),o=n.getDate(r),s=n.getHours(r),l=n.getMinutes(r),c=n.getSeconds(r),u=n.getMilliseconds(r),h=""+i+"/"+k(a+1)+"/"+k(o);return 3600*s+60*l+c+.001*u&&(h+=" "+L(s,l,c,u)),h}function E(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}function D(e,t,n,r,i){if(null!==r&&void 0!==r&&null!==i&&void 0!==i||(r=0,i=t.length-1),r>i)return-1;null!==n&&void 0!==n||(n=0);var a,o=function(e){return e>=0&&e<t.length},s=parseInt((r+i)/2,10),l=t[s];return l==e?s:l>e?n>0&&o(a=s-1)&&t[a]<e?s:D(e,t,n,r,s-1):l<e?n<0&&o(a=s+1)&&t[a]>e?s:D(e,t,n,s+1,i):-1}function N(e){var t,n;if((-1==e.search("-")||-1!=e.search("T")||-1!=e.search("Z"))&&(n=M(e))&&!isNaN(n))return n;if(-1!=e.search("-")){for(t=e.replace("-","/","g");-1!=t.search("-");)t=t.replace("-","/");n=M(t)}else n=M(e);return n&&!isNaN(n)||console.error("Couldn't parse "+e+" as a date"),n}function M(e){return new Date(e).getTime()}function F(e,t){if("undefined"!=typeof t&&null!==t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var I="undefined"!==typeof Node&&null!==Node&&"object"===typeof Node?function(e){return e instanceof Node}:function(e){return"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName};function H(e,t){if("undefined"!=typeof t&&null!==t)for(var n in t)if(t.hasOwnProperty(n)){const r=t[n];null===r?e[n]=null:Y(r)?e[n]=r.slice():I(r)?e[n]=r:"object"==typeof r?("object"==typeof e[n]&&null!==e[n]||(e[n]={}),H(e[n],r)):e[n]=r}return e}function j(e){if(null===e)return"null";const t=typeof e;return("object"===t||"function"===t&&"function"===typeof e.item)&&"number"===typeof e.length&&3!==e.nodeType&&4!==e.nodeType?"array":t}function Y(e){const t=typeof e;return null!==e&&("object"===t||"function"===t&&"function"===typeof e.item)&&"number"===typeof e.length&&3!==e.nodeType&&4!==e.nodeType}function U(e){return null!==e&&"object"===typeof e&&"function"===typeof e.getTime}function G(e){for(var t=[],n=0;n<e.length;n++)Y(e[n])?t.push(G(e[n])):t.push(e[n]);return t}function V(){return document.createElement("canvas")}function X(e){try{var t=window.devicePixelRatio,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return void 0!==t?t/n:1}catch(r){return 1}}function z(e,t,n,r){t=t||0,n=n||e.length,this.hasNext=!0,this.peek=null,this.start_=t,this.array_=e,this.predicate_=r,this.end_=Math.min(e.length,t+n),this.nextIdx_=t-1,this.next()}function Z(e,t,n,r){return new z(e,t,n,r)}z.prototype.next=function(){if(!this.hasNext)return null;for(var e=this.peek,t=this.nextIdx_+1,n=!1;t<this.end_;){if(!this.predicate_||this.predicate_(this.array_,t)){this.peek=this.array_[t],n=!0;break}t++}return this.nextIdx_=t,n||(this.hasNext=!1,this.peek=null),e};var B=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)};function W(e,t,n,r){var i,a=0,o=(new Date).getTime();if(e(a),1!=t){var s=t-1;!function l(){a>=t||B.call(window,(function(){var t=(new Date).getTime()-o;i=a;var c=(a=Math.floor(t/n))-i;a+c>s||a>=s?(e(s),r()):(0!==c&&e(a),l())}))}()}else r()}var $={annotationClickHandler:!0,annotationDblClickHandler:!0,annotationMouseOutHandler:!0,annotationMouseOverHandler:!0,axisLineColor:!0,axisLineWidth:!0,clickCallback:!0,drawCallback:!0,drawHighlightPointCallback:!0,drawPoints:!0,drawPointCallback:!0,drawGrid:!0,fillAlpha:!0,gridLineColor:!0,gridLineWidth:!0,hideOverlayOnMouseOut:!0,highlightCallback:!0,highlightCircleSize:!0,interactionModel:!0,labelsDiv:!0,labelsKMB:!0,labelsKMG2:!0,labelsSeparateLines:!0,labelsShowZeroValues:!0,legend:!0,panEdgeFraction:!0,pixelsPerYLabel:!0,pointClickCallback:!0,pointSize:!0,rangeSelectorPlotFillColor:!0,rangeSelectorPlotFillGradientColor:!0,rangeSelectorPlotStrokeColor:!0,rangeSelectorBackgroundStrokeColor:!0,rangeSelectorBackgroundLineWidth:!0,rangeSelectorPlotLineWidth:!0,rangeSelectorForegroundStrokeColor:!0,rangeSelectorForegroundLineWidth:!0,rangeSelectorAlpha:!0,showLabelsOnHighlight:!0,showRoller:!0,strokeWidth:!0,underlayCallback:!0,unhighlightCallback:!0,zoomCallback:!0};function q(e,t){var n={};if(e)for(var r=1;r<e.length;r++)n[e[r]]=!0;var i=function(e){for(var t in e)if(e.hasOwnProperty(t)&&!$[t])return!0;return!1};for(var a in t)if(t.hasOwnProperty(a))if("highlightSeriesOpts"==a||n[a]&&!t.series){if(i(t[a]))return!0}else if("series"==a||"axes"==a){var o=t[a];for(var s in o)if(o.hasOwnProperty(s)&&i(o[s]))return!0}else if(!$[a])return!0;return!1}var Q={DEFAULT:function(e,t,n,r,i,a,o){n.beginPath(),n.fillStyle=a,n.arc(r,i,o,0,2*Math.PI,!1),n.fill()}};function K(e){for(var t=0;t<e.length;t++){var n=e.charAt(t);if("\r"===n)return t+1<e.length&&"\n"===e.charAt(t+1)?"\r\n":n;if("\n"===n)return t+1<e.length&&"\r"===e.charAt(t+1)?"\n\r":n}return null}function J(e,t){if(null===t||null===e)return!1;for(var n=e;n&&n!==t;)n=n.parentNode;return n===t}function ee(e,t){return t<0?1/Math.pow(e,-t):Math.pow(e,t)}var te=/^#([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})?$/,ne=/^rgba?\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(?:,\s*([01](?:\.\d+)?))?\)$/;function re(e){var t,n,r,i,a=null;if(t=te.exec(e))n=parseInt(t[1],16),r=parseInt(t[2],16),i=parseInt(t[3],16),t[4]&&(a=parseInt(t[4],16));else{if(!(t=ne.exec(e)))return null;n=parseInt(t[1],10),r=parseInt(t[2],10),i=parseInt(t[3],10),t[4]&&(a=parseFloat(t[4]))}return null!==a?{r:n,g:r,b:i,a:a}:{r:n,g:r,b:i}}function ie(e){var t=re(e);if(t)return t;var n=document.createElement("div");n.style.backgroundColor=e,n.style.visibility="hidden",document.body.appendChild(n);var r=window.getComputedStyle(n,null).backgroundColor;return document.body.removeChild(n),re(r)}function ae(e){try{(e||document.createElement("canvas")).getContext("2d")}catch(t){return!1}return!0}function oe(e,t,n){var r=parseFloat(e);if(!isNaN(r))return r;if(/^ *$/.test(e))return null;if(/^ *nan *$/i.test(e))return NaN;var i="Unable to parse '"+e+"' as a number";return void 0!==n&&void 0!==t&&(i+=" on line "+(1+(t||0))+" ('"+n+"') of CSV."),console.error(i),null}var se=["k","M","G","T","P","E","Z","Y"],le=["m","\xb5","n","p","f","a","z","y"],ce=["Ki","Mi","Gi","Ti","Pi","Ei","Zi","Yi"],ue=["p-10","p-20","p-30","p-40","p-50","p-60","p-70","p-80"],he=["K","M","G","T","P","E","Z","Y"],de=le;function pe(e,t){var n=t("sigFigs");if(null!==n)return C(e,n);if(0===e)return"0";var r=t("digitsAfterDecimal"),i=t("maxNumberWidth"),a=t("labelsKMB"),o=t("labelsKMG2"),s=Math.abs(e);if(a||o){var l,c,u,h=[],d=[];if(a&&(l=1e3,h=se,d=le),o&&(l=1024,h=ce,d=ue,a&&(h=he,d=de)),s>=l){for(u=h.length;u>0;)if(c=ee(l,u),--u,s>=c)return s/c>=Math.pow(10,i)?e.toExponential(r):E(e/c,r)+h[u]}else if(s<1){for(u=0;u<d.length&&!(s*(c=ee(l,++u))>=1););return s*c<Math.pow(10,-r)?e.toExponential(r):E(e*c,r)+d[u-1]}}return s>=Math.pow(10,i)||s<Math.pow(10,-r)?e.toExponential(r):""+E(e,r)}function fe(e,t,n){return pe.call(this,e,n)}var ge=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ve(e,t,n){var i=n("labelsUTC")?T:P,a=i.getFullYear(e),o=i.getMonth(e),s=i.getDate(e),l=i.getHours(e),c=i.getMinutes(e),u=i.getSeconds(e),h=i.getMilliseconds(e);if(t>=r.He.DECADAL)return""+a;if(t>=r.He.MONTHLY)return ge[o]+" "+a;if(0===3600*l+60*c+u+.001*h||t>=r.He.DAILY)return k(s)+" "+ge[o];if(t<r.He.SECONDLY){var d=""+h;return k(u)+"."+("000"+d).substring(d.length)}return t>r.He.MINUTELY?L(l,c,u,0):L(l,c,u,h)}function ye(e,t){return R(e,t("labelsUTC"))}var me=[],_e=!1;function xe(e){return"function"===typeof e&&e(),!0}function be(e){if("undefined"!==typeof document){const t=function(){if(!_e){_e=!0,e.onDOMready=xe,document.removeEventListener("DOMContentLoaded",t,!1),window.removeEventListener("load",t,!1);for(let e=0;e<me.length;++e)me[e]();me=null}};e.onDOMready=function(n){if("complete"===document.readyState)return e.onDOMready=xe,xe(n);const r=function(e){return"function"===typeof e&&me.push(e),!1};return e.onDOMready=r,document.addEventListener("DOMContentLoaded",t,!1),window.addEventListener("load",t,!1),"complete"===document.readyState?(t(),e.onDOMready=xe,xe(n)):r(n)}}}},95984:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Q}});var r=n(72247),i=function(e){this.dygraph_=e,this.points=[],this.setNames=[],this.annotations=[],this.yAxes_=null,this.xTicks_=null,this.yTicks_=null};i.prototype.addDataset=function(e,t){this.points.push(t),this.setNames.push(e)},i.prototype.getPlotArea=function(){return this.area_},i.prototype.computePlotArea=function(){var e={x:0,y:0};e.w=this.dygraph_.width_-e.x-this.dygraph_.getOption("rightGap"),e.h=this.dygraph_.height_;var t={chart_div:this.dygraph_.graphDiv,reserveSpaceLeft:function(t){var n={x:e.x,y:e.y,w:t,h:e.h};return e.x+=t,e.w-=t,n},reserveSpaceRight:function(t){var n={x:e.x+e.w-t,y:e.y,w:t,h:e.h};return e.w-=t,n},reserveSpaceTop:function(t){var n={x:e.x,y:e.y,w:e.w,h:t};return e.y+=t,e.h-=t,n},reserveSpaceBottom:function(t){var n={x:e.x,y:e.y+e.h-t,w:e.w,h:t};return e.h-=t,n},chartRect:function(){return{x:e.x,y:e.y,w:e.w,h:e.h}}};this.dygraph_.cascadeEvents_("layout",t),this.area_=e},i.prototype.setAnnotations=function(e){this.annotations=[];for(var t=this.dygraph_.getOption("xValueParser")||function(e){return e},n=0;n<e.length;n++){var i={};if(!e[n].xval&&void 0===e[n].x)return void console.error("Annotations must have an 'x' property");if(e[n].icon&&(!e[n].hasOwnProperty("width")||!e[n].hasOwnProperty("height")))return void console.error("Must set width and height when setting annotation.icon property");r.update(i,e[n]),i.xval||(i.xval=t(i.x)),this.annotations.push(i)}},i.prototype.setXTicks=function(e){this.xTicks_=e},i.prototype.setYAxes=function(e){this.yAxes_=e},i.prototype.evaluate=function(){this._xAxis={},this._evaluateLimits(),this._evaluateLineCharts(),this._evaluateLineTicks(),this._evaluateAnnotations()},i.prototype._evaluateLimits=function(){var e=this.dygraph_.xAxisRange();this._xAxis.minval=e[0],this._xAxis.maxval=e[1];var t=e[1]-e[0];this._xAxis.scale=0!==t?1/t:1,this.dygraph_.getOptionForAxis("logscale","x")&&(this._xAxis.xlogrange=r.log10(this._xAxis.maxval)-r.log10(this._xAxis.minval),this._xAxis.xlogscale=0!==this._xAxis.xlogrange?1/this._xAxis.xlogrange:1);for(var n=0;n<this.yAxes_.length;n++){var i=this.yAxes_[n];i.minyval=i.computedValueRange[0],i.maxyval=i.computedValueRange[1],i.yrange=i.maxyval-i.minyval,i.yscale=0!==i.yrange?1/i.yrange:1,(this.dygraph_.getOption("logscale")||i.logscale)&&(i.ylogrange=r.log10(i.maxyval)-r.log10(i.minyval),i.ylogscale=0!==i.ylogrange?1/i.ylogrange:1,isFinite(i.ylogrange)&&!isNaN(i.ylogrange)||console.error("axis "+n+" of graph at "+i.g+" can't be displayed in log scale for range ["+i.minyval+" - "+i.maxyval+"]"))}},i.calcXNormal_=function(e,t,n){return n?(r.log10(e)-r.log10(t.minval))*t.xlogscale:(e-t.minval)*t.scale},i.calcYNormal_=function(e,t,n){if(n){var i=1-(r.log10(t)-r.log10(e.minyval))*e.ylogscale;return isFinite(i)?i:NaN}return 1-(t-e.minyval)*e.yscale},i.prototype._evaluateLineCharts=function(){for(var e=this.dygraph_.getOption("stackedGraph"),t=this.dygraph_.getOptionForAxis("logscale","x"),n=0;n<this.points.length;n++){for(var r=this.points[n],a=this.setNames[n],o=this.dygraph_.getOption("connectSeparatedPoints",a),s=this.dygraph_.axisPropertiesForSeries(a),l=this.dygraph_.attributes_.getForSeries("logscale",a),c=0;c<r.length;c++){var u=r[c];u.x=i.calcXNormal_(u.xval,this._xAxis,t);var h=u.yval;e&&(u.y_stacked=i.calcYNormal_(s,u.yval_stacked,l),null===h||isNaN(h)||(h=u.yval_stacked)),null===h&&(h=NaN,o||(u.yval=NaN)),u.y=i.calcYNormal_(s,h,l)}this.dygraph_.dataHandler_.onLineEvaluated(r,s,l)}},i.prototype._evaluateLineTicks=function(){var e,t,n,r,i,a;for(this.xticks=[],e=0;e<this.xTicks_.length;e++)n=(t=this.xTicks_[e]).label,i=(a=!("label_v"in t))?t.v:t.label_v,(r=this.dygraph_.toPercentXCoord(i))>=0&&r<1&&this.xticks.push({pos:r,label:n,has_tick:a});for(this.yticks=[],e=0;e<this.yAxes_.length;e++)for(var o=this.yAxes_[e],s=0;s<o.ticks.length;s++)n=(t=o.ticks[s]).label,i=(a=!("label_v"in t))?t.v:t.label_v,(r=this.dygraph_.toPercentYCoord(i,e))>0&&r<=1&&this.yticks.push({axis:e,pos:r,label:n,has_tick:a})},i.prototype._evaluateAnnotations=function(){var e,t={};for(e=0;e<this.annotations.length;e++){var n=this.annotations[e];t[n.xval+","+n.series]=n}if(this.annotated_points=[],this.annotations&&this.annotations.length)for(var r=0;r<this.points.length;r++){var i=this.points[r];for(e=0;e<i.length;e++){var a=i[e],o=a.xval+","+a.name;o in t&&(a.annotation=t[o],this.annotated_points.push(a),delete t[o])}}},i.prototype.removeAllDatasets=function(){delete this.points,delete this.setNames,delete this.setPointsLengths,delete this.setPointsOffsets,this.points=[],this.setNames=[],this.setPointsLengths=[],this.setPointsOffsets=[]};var a=i,o=function(e,t,n,i){if(this.dygraph_=e,this.layout=i,this.element=t,this.elementContext=n,this.height=e.height_,this.width=e.width_,!r.isCanvasSupported(this.element))throw"Canvas is not supported.";this.area=i.getPlotArea();var a=this.dygraph_.canvas_ctx_;a.beginPath(),a.rect(this.area.x,this.area.y,this.area.w,this.area.h),a.clip(),(a=this.dygraph_.hidden_ctx_).beginPath(),a.rect(this.area.x,this.area.y,this.area.w,this.area.h),a.clip()};o.prototype.clear=function(){this.elementContext.clearRect(0,0,this.width,this.height)},o.prototype.render=function(){this._updatePoints(),this._renderLineChart()},o._getIteratorPredicate=function(e){return e?o._predicateThatSkipsEmptyPoints:null},o._predicateThatSkipsEmptyPoints=function(e,t){return null!==e[t].yval},o._drawStyledLine=function(e,t,n,i,a,s,l){var c=e.dygraph,u=c.getBooleanOption("stepPlot",e.setName);r.isArrayLike(i)||(i=null);var h=c.getBooleanOption("drawGapEdgePoints",e.setName),d=e.points,p=e.setName,f=r.createIterator(d,0,d.length,o._getIteratorPredicate(c.getBooleanOption("connectSeparatedPoints",p))),g=i&&i.length>=2,v=e.drawingContext;v.save(),g&&v.setLineDash&&v.setLineDash(i);var y=o._drawSeries(e,f,n,l,a,h,u,t);o._drawPointsOnLine(e,y,s,t,l),g&&v.setLineDash&&v.setLineDash([]),v.restore()},o._drawSeries=function(e,t,n,r,i,a,o,s){var l,c,u=null,h=null,d=null,p=[],f=!0,g=e.drawingContext;g.beginPath(),g.strokeStyle=s,g.lineWidth=n;for(var v=t.array_,y=t.end_,m=t.predicate_,_=t.start_;_<y;_++){if(c=v[_],m){for(;_<y&&!m(v,_);)_++;if(_==y)break;c=v[_]}if(null===c.canvasy||c.canvasy!=c.canvasy)o&&null!==u&&(g.moveTo(u,h),g.lineTo(c.canvasx,h)),u=h=null;else{if(l=!1,a||null===u){t.nextIdx_=_,t.next();var x=null===(d=t.hasNext?t.peek.canvasy:null)||d!=d;l=null===u&&x,a&&(!f&&null===u||t.hasNext&&x)&&(l=!0)}null!==u?n&&(o&&(g.moveTo(u,h),g.lineTo(c.canvasx,h)),g.lineTo(c.canvasx,c.canvasy)):g.moveTo(c.canvasx,c.canvasy),(i||l)&&p.push([c.canvasx,c.canvasy,c.idx]),u=c.canvasx,h=c.canvasy}f=!1}return g.stroke(),p},o._drawPointsOnLine=function(e,t,n,r,i){for(var a=e.drawingContext,o=0;o<t.length;o++){var s=t[o];a.save(),n.call(e.dygraph,e.dygraph,e.setName,a,s[0],s[1],r,i,s[2]),a.restore()}},o.prototype._updatePoints=function(){for(var e=this.layout.points,t=e.length;t--;)for(var n=e[t],r=n.length;r--;){var i=n[r];i.canvasx=this.area.w*i.x+this.area.x,i.canvasy=this.area.h*i.y+this.area.y}},o.prototype._renderLineChart=function(e,t){var n,i,a=t||this.elementContext,o=this.layout.points,s=this.layout.setNames;this.colors=this.dygraph_.colorsMap_;var l=this.dygraph_.getOption("plotter"),c=l;r.isArrayLike(c)||(c=[c]);var u={};for(n=0;n<s.length;n++){i=s[n];var h=this.dygraph_.getOption("plotter",i);h!=l&&(u[i]=h)}for(n=0;n<c.length;n++)for(var d=c[n],p=n==c.length-1,f=0;f<o.length;f++)if(i=s[f],!e||i==e){var g=o[f],v=d;if(i in u){if(!p)continue;v=u[i]}var y=this.colors[i],m=this.dygraph_.getOption("strokeWidth",i);a.save(),a.strokeStyle=y,a.lineWidth=m,v({points:g,setName:i,drawingContext:a,color:y,strokeWidth:m,dygraph:this.dygraph_,axis:this.dygraph_.axisPropertiesForSeries(i),plotArea:this.area,seriesIndex:f,seriesCount:o.length,singleSeriesName:e,allSeriesPoints:o}),a.restore()}},o._Plotters={linePlotter:function(e){o._linePlotter(e)},fillPlotter:function(e){o._fillPlotter(e)},errorPlotter:function(e){o._errorPlotter(e)}},o._linePlotter=function(e){var t=e.dygraph,n=e.setName,i=e.strokeWidth,a=t.getNumericOption("strokeBorderWidth",n),s=t.getOption("drawPointCallback",n)||r.Circles.DEFAULT,l=t.getOption("strokePattern",n),c=t.getBooleanOption("drawPoints",n),u=t.getNumericOption("pointSize",n);a&&i&&o._drawStyledLine(e,t.getOption("strokeBorderColor",n),i+2*a,l,c,s,u),o._drawStyledLine(e,e.color,i,l,c,s,u)},o._errorPlotter=function(e){var t=e.dygraph,n=e.setName;if(t.getBooleanOption("errorBars")||t.getBooleanOption("customBars")){t.getBooleanOption("fillGraph",n)&&console.warn("Can't use fillGraph option with customBars or errorBars option");var i,a=e.drawingContext,s=e.color,l=t.getNumericOption("fillAlpha",n),c=t.getBooleanOption("stepPlot",n),u=e.points,h=r.createIterator(u,0,u.length,o._getIteratorPredicate(t.getBooleanOption("connectSeparatedPoints",n))),d=NaN,p=NaN,f=[-1,-1],g=r.toRGB_(s),v="rgba("+g.r+","+g.g+","+g.b+","+l+")";a.fillStyle=v,a.beginPath();for(var y=function(e){return null===e||void 0===e||isNaN(e)};h.hasNext;){var m=h.next();!c&&y(m.y)||c&&!isNaN(p)&&y(p)?d=NaN:(i=[m.y_bottom,m.y_top],c&&(p=m.y),isNaN(i[0])&&(i[0]=m.y),isNaN(i[1])&&(i[1]=m.y),i[0]=e.plotArea.h*i[0]+e.plotArea.y,i[1]=e.plotArea.h*i[1]+e.plotArea.y,isNaN(d)||(c?(a.moveTo(d,f[0]),a.lineTo(m.canvasx,f[0]),a.lineTo(m.canvasx,f[1])):(a.moveTo(d,f[0]),a.lineTo(m.canvasx,i[0]),a.lineTo(m.canvasx,i[1])),a.lineTo(d,f[1]),a.closePath()),f=i,d=m.canvasx)}a.fill()}},o._fastCanvasProxy=function(e){var t=[],n=null,r=null,i=0,a=function(n){!function(e){if(!(t.length<=1)){for(var n=t.length-1;n>0;n--)if(2==(s=t[n])[0]){var r=t[n-1];r[1]==s[1]&&r[2]==s[2]&&t.splice(n,1)}for(n=0;n<t.length-1;)2==(s=t[n])[0]&&2==t[n+1][0]?t.splice(n,1):n++;if(t.length>2&&!e){var i=0;2==t[0][0]&&i++;var a=null,o=null;for(n=i;n<t.length;n++){var s;if(1==(s=t[n])[0])if(null===a&&null===o)a=n,o=n;else{var l=s[2];l<t[a][2]?a=n:l>t[o][2]&&(o=n)}}var c=t[a],u=t[o];t.splice(i,t.length-i),a<o?(t.push(c),t.push(u)):a>o?(t.push(u),t.push(c)):t.push(c)}}}(n);for(var a=0,o=t.length;a<o;a++){var s=t[a];1==s[0]?e.lineTo(s[1],s[2]):2==s[0]&&e.moveTo(s[1],s[2])}t.length&&(r=t[t.length-1][1]),i+=t.length,t=[]},o=function(e,i,o){var s=Math.round(i);null!==n&&s==n||(a(n-r>1||s-n>1),n=s);t.push([e,i,o])};return{moveTo:function(e,t){o(2,e,t)},lineTo:function(e,t){o(1,e,t)},stroke:function(){a(!0),e.stroke()},fill:function(){a(!0),e.fill()},beginPath:function(){a(!0),e.beginPath()},closePath:function(){a(!0),e.closePath()},_count:function(){return i}}},o._fillPlotter=function(e){if(!e.singleSeriesName&&0===e.seriesIndex){for(var t=e.dygraph,n=t.getLabels().slice(1),i=n.length;i>=0;i--)t.visibility()[i]||n.splice(i,1);var a=function(){for(var e=0;e<n.length;e++)if(t.getBooleanOption("fillGraph",n[e]))return!0;return!1}();if(a)for(var s,l,c=e.plotArea,u=e.allSeriesPoints,h=u.length,d=t.getBooleanOption("stackedGraph"),p=t.getColors(),f={},g=function(e,t,n,r){if(e.lineTo(t,n),d)for(var i=r.length-1;i>=0;i--){var a=r[i];e.lineTo(a[0],a[1])}},v=h-1;v>=0;v--){var y=e.drawingContext,m=n[v];if(t.getBooleanOption("fillGraph",m)){var _=t.getNumericOption("fillAlpha",m),x=t.getBooleanOption("stepPlot",m),b=p[v],w=t.axisPropertiesForSeries(m),O=1+w.minyval*w.yscale;O<0?O=0:O>1&&(O=1),O=c.h*O+c.y;var A,S=u[v],C=r.createIterator(S,0,S.length,o._getIteratorPredicate(t.getBooleanOption("connectSeparatedPoints",m))),k=NaN,P=[-1,-1],T=r.toRGB_(b),L="rgba("+T.r+","+T.g+","+T.b+","+_+")";y.fillStyle=L,y.beginPath();var R,E=!0;(S.length>2*t.width_||Q.FORCE_FAST_PROXY)&&(y=o._fastCanvasProxy(y));for(var D,N=[];C.hasNext;)if(D=C.next(),r.isOK(D.y)||x){if(d){if(!E&&R==D.xval)continue;var M;E=!1,R=D.xval,M=void 0===(s=f[D.canvasx])?O:l?s[0]:s,A=[D.canvasy,M],x?-1===P[0]?f[D.canvasx]=[D.canvasy,O]:f[D.canvasx]=[D.canvasy,P[0]]:f[D.canvasx]=D.canvasy}else A=isNaN(D.canvasy)&&x?[c.y+c.h,O]:[D.canvasy,O];isNaN(k)?(y.moveTo(D.canvasx,A[1]),y.lineTo(D.canvasx,A[0])):(x?(y.lineTo(D.canvasx,P[0]),y.lineTo(D.canvasx,A[0])):y.lineTo(D.canvasx,A[0]),d&&(N.push([k,P[1]]),l&&s?N.push([D.canvasx,s[1]]):N.push([D.canvasx,A[1]]))),P=A,k=D.canvasx}else g(y,k,P[1],N),N=[],k=NaN,null===D.y_stacked||isNaN(D.y_stacked)||(f[D.canvasx]=c.h*D.y_stacked+c.y);l=x,A&&D&&(g(y,D.canvasx,A[1],N),N=[]),y.fill()}}}};var s=o,l=n(74321),c={maybeTreatMouseOpAsClick:function(e,t,n){n.dragEndX=r.dragGetX_(e,n),n.dragEndY=r.dragGetY_(e,n);var i=Math.abs(n.dragEndX-n.dragStartX),a=Math.abs(n.dragEndY-n.dragStartY);i<2&&a<2&&void 0!==t.lastx_&&null!==t.lastx_&&c.treatMouseOpAsClick(t,e,n),n.regionWidth=i,n.regionHeight=a},startPan:function(e,t,n){var i,a;n.isPanning=!0;var o=t.xAxisRange();if(t.getOptionForAxis("logscale","x")?(n.initialLeftmostDate=r.log10(o[0]),n.dateRange=r.log10(o[1])-r.log10(o[0])):(n.initialLeftmostDate=o[0],n.dateRange=o[1]-o[0]),n.xUnitsPerPixel=n.dateRange/(t.plotter_.area.w-1),t.getNumericOption("panEdgeFraction")){var s=t.width_*t.getNumericOption("panEdgeFraction"),l=t.xAxisExtremes(),c=t.toDomXCoord(l[0])-s,u=t.toDomXCoord(l[1])+s,h=t.toDataXCoord(c),d=t.toDataXCoord(u);n.boundedDates=[h,d];var p=[],f=t.height_*t.getNumericOption("panEdgeFraction");for(i=0;i<t.axes_.length;i++){var g=(a=t.axes_[i]).extremeRange,v=t.toDomYCoord(g[0],i)+f,y=t.toDomYCoord(g[1],i)-f,m=t.toDataYCoord(v,i),_=t.toDataYCoord(y,i);p[i]=[m,_]}n.boundedValues=p}else n.boundedDates=null,n.boundedValues=null;for(n.is2DPan=!1,n.axes=[],i=0;i<t.axes_.length;i++){a=t.axes_[i];var x={},b=t.yAxisRange(i);t.attributes_.getForAxis("logscale",i)?(x.initialTopValue=r.log10(b[1]),x.dragValueRange=r.log10(b[1])-r.log10(b[0])):(x.initialTopValue=b[1],x.dragValueRange=b[1]-b[0]),x.unitsPerPixel=x.dragValueRange/(t.plotter_.area.h-1),n.axes.push(x),a.valueRange&&(n.is2DPan=!0)}},movePan:function(e,t,n){n.dragEndX=r.dragGetX_(e,n),n.dragEndY=r.dragGetY_(e,n);var i=n.initialLeftmostDate-(n.dragEndX-n.dragStartX)*n.xUnitsPerPixel;n.boundedDates&&(i=Math.max(i,n.boundedDates[0]));var a=i+n.dateRange;if(n.boundedDates&&a>n.boundedDates[1]&&(a=(i-=a-n.boundedDates[1])+n.dateRange),t.getOptionForAxis("logscale","x")?t.dateWindow_=[Math.pow(r.LOG_SCALE,i),Math.pow(r.LOG_SCALE,a)]:t.dateWindow_=[i,a],n.is2DPan)for(var o=n.dragEndY-n.dragStartY,s=0;s<t.axes_.length;s++){var l=t.axes_[s],c=n.axes[s],u=o*c.unitsPerPixel,h=n.boundedValues?n.boundedValues[s]:null,d=c.initialTopValue+u;h&&(d=Math.min(d,h[1]));var p=d-c.dragValueRange;h&&p<h[0]&&(p=(d-=p-h[0])-c.dragValueRange),t.attributes_.getForAxis("logscale",s)?l.valueRange=[Math.pow(r.LOG_SCALE,p),Math.pow(r.LOG_SCALE,d)]:l.valueRange=[p,d]}t.drawGraph_(!1)}};c.endPan=c.maybeTreatMouseOpAsClick,c.startZoom=function(e,t,n){n.isZooming=!0,n.zoomMoved=!1},c.moveZoom=function(e,t,n){n.zoomMoved=!0,n.dragEndX=r.dragGetX_(e,n),n.dragEndY=r.dragGetY_(e,n);var i=Math.abs(n.dragStartX-n.dragEndX),a=Math.abs(n.dragStartY-n.dragEndY);n.dragDirection=i<a/2?r.VERTICAL:r.HORIZONTAL,t.drawZoomRect_(n.dragDirection,n.dragStartX,n.dragEndX,n.dragStartY,n.dragEndY,n.prevDragDirection,n.prevEndX,n.prevEndY),n.prevEndX=n.dragEndX,n.prevEndY=n.dragEndY,n.prevDragDirection=n.dragDirection},c.treatMouseOpAsClick=function(e,t,n){for(var r=e.getFunctionOption("clickCallback"),i=e.getFunctionOption("pointClickCallback"),a=null,o=-1,s=Number.MAX_VALUE,l=0;l<e.selPoints_.length;l++){var c=e.selPoints_[l],u=Math.pow(c.canvasx-n.dragEndX,2)+Math.pow(c.canvasy-n.dragEndY,2);!isNaN(u)&&(-1==o||u<s)&&(s=u,o=l)}var h=e.getNumericOption("highlightCircleSize")+2;if(s<=h*h&&(a=e.selPoints_[o]),a){var d={cancelable:!0,point:a,canvasx:n.dragEndX,canvasy:n.dragEndY};if(e.cascadeEvents_("pointClick",d))return;i&&i.call(e,t,a)}d={cancelable:!0,xval:e.lastx_,pts:e.selPoints_,canvasx:n.dragEndX,canvasy:n.dragEndY};e.cascadeEvents_("click",d)||r&&r.call(e,t,e.lastx_,e.selPoints_)},c.endZoom=function(e,t,n){t.clearZoomRect_(),n.isZooming=!1,c.maybeTreatMouseOpAsClick(e,t,n);var i=t.getArea();if(n.regionWidth>=10&&n.dragDirection==r.HORIZONTAL){var a=Math.min(n.dragStartX,n.dragEndX),o=Math.max(n.dragStartX,n.dragEndX);(a=Math.max(a,i.x))<(o=Math.min(o,i.x+i.w))&&t.doZoomX_(a,o),n.cancelNextDblclick=!0}else if(n.regionHeight>=10&&n.dragDirection==r.VERTICAL){var s=Math.min(n.dragStartY,n.dragEndY),l=Math.max(n.dragStartY,n.dragEndY);(s=Math.max(s,i.y))<(l=Math.min(l,i.y+i.h))&&t.doZoomY_(s,l),n.cancelNextDblclick=!0}n.dragStartX=null,n.dragStartY=null},c.startTouch=function(e,t,n){e.preventDefault(),e.touches.length>1&&(n.startTimeForDoubleTapMs=null);for(var r=[],i=0;i<e.touches.length;i++){var a=e.touches[i],o=a.target.getBoundingClientRect();r.push({pageX:a.pageX,pageY:a.pageY,dataX:t.toDataXCoord(a.clientX-o.left),dataY:t.toDataYCoord(a.clientY-o.top)})}if(n.initialTouches=r,1==r.length)n.initialPinchCenter=r[0],n.touchDirections={x:!0,y:!0};else if(r.length>=2){n.initialPinchCenter={pageX:.5*(r[0].pageX+r[1].pageX),pageY:.5*(r[0].pageY+r[1].pageY),dataX:.5*(r[0].dataX+r[1].dataX),dataY:.5*(r[0].dataY+r[1].dataY)};var s=180/Math.PI*Math.atan2(n.initialPinchCenter.pageY-r[0].pageY,r[0].pageX-n.initialPinchCenter.pageX);(s=Math.abs(s))>90&&(s=90-s),n.touchDirections={x:s<67.5,y:s>22.5}}n.initialRange={x:t.xAxisRange(),y:t.yAxisRange()}},c.moveTouch=function(e,t,n){n.startTimeForDoubleTapMs=null;var r,i=[];for(r=0;r<e.touches.length;r++){var a=e.touches[r];i.push({pageX:a.pageX,pageY:a.pageY})}var o,s,l,c=n.initialTouches,u=n.initialPinchCenter,h={pageX:(o=1==i.length?i[0]:{pageX:.5*(i[0].pageX+i[1].pageX),pageY:.5*(i[0].pageY+i[1].pageY)}).pageX-u.pageX,pageY:o.pageY-u.pageY},d=n.initialRange.x[1]-n.initialRange.x[0],p=n.initialRange.y[0]-n.initialRange.y[1];if(h.dataX=h.pageX/t.plotter_.area.w*d,h.dataY=h.pageY/t.plotter_.area.h*p,1==i.length)s=1,l=1;else if(i.length>=2){var f=c[1].pageX-u.pageX;s=(i[1].pageX-o.pageX)/f;var g=c[1].pageY-u.pageY;l=(i[1].pageY-o.pageY)/g}s=Math.min(8,Math.max(.125,s)),l=Math.min(8,Math.max(.125,l));var v=!1;if(n.touchDirections.x){var y=u.dataX-h.dataX/s;t.dateWindow_=[y+(n.initialRange.x[0]-u.dataX)/s,y+(n.initialRange.x[1]-u.dataX)/s],v=!0}if(n.touchDirections.y)for(r=0;r<1;r++){var m=t.axes_[r];if(t.attributes_.getForAxis("logscale",r));else{y=u.dataY-h.dataY/l;m.valueRange=[y+(n.initialRange.y[0]-u.dataY)/l,y+(n.initialRange.y[1]-u.dataY)/l],v=!0}}if(t.drawGraph_(!1),v&&i.length>1&&t.getFunctionOption("zoomCallback")){var _=t.xAxisRange();t.getFunctionOption("zoomCallback").call(t,_[0],_[1],t.yAxisRanges())}},c.endTouch=function(e,t,n){if(0!==e.touches.length)c.startTouch(e,t,n);else if(1==e.changedTouches.length){var r=(new Date).getTime(),i=e.changedTouches[0];n.startTimeForDoubleTapMs&&r-n.startTimeForDoubleTapMs<500&&n.doubleTapX&&Math.abs(n.doubleTapX-i.screenX)<50&&n.doubleTapY&&Math.abs(n.doubleTapY-i.screenY)<50?t.resetZoom():(n.startTimeForDoubleTapMs=r,n.doubleTapX=i.screenX,n.doubleTapY=i.screenY)}};var u=function(e,t,n){return e<t?t-e:e>n?e-n:0};c.defaultModel={mousedown:function(e,t,n){if(!e.button||2!=e.button){n.initializeMouseDown(e,t,n),e.altKey||e.shiftKey?c.startPan(e,t,n):c.startZoom(e,t,n);var i=function(e){if(n.isZooming){var i=function(e,t){var n=r.findPos(t.canvas_),i={left:n.x,right:n.x+t.canvas_.offsetWidth,top:n.y,bottom:n.y+t.canvas_.offsetHeight},a={x:r.pageX(e),y:r.pageY(e)},o=u(a.x,i.left,i.right),s=u(a.y,i.top,i.bottom);return Math.max(o,s)}(e,t);i<100?c.moveZoom(e,t,n):null!==n.dragEndX&&(n.dragEndX=null,n.dragEndY=null,t.clearZoomRect_())}else n.isPanning&&c.movePan(e,t,n)},a=function(e){n.isZooming?null!==n.dragEndX?c.endZoom(e,t,n):c.maybeTreatMouseOpAsClick(e,t,n):n.isPanning&&c.endPan(e,t,n),r.removeEvent(document,"mousemove",i),r.removeEvent(document,"mouseup",a),n.destroy()};t.addAndTrackEvent(document,"mousemove",i),t.addAndTrackEvent(document,"mouseup",a)}},willDestroyContextMyself:!0,touchstart:function(e,t,n){c.startTouch(e,t,n)},touchmove:function(e,t,n){c.moveTouch(e,t,n)},touchend:function(e,t,n){c.endTouch(e,t,n)},dblclick:function(e,t,n){if(n.cancelNextDblclick)n.cancelNextDblclick=!1;else{var r={canvasx:n.dragEndX,canvasy:n.dragEndY,cancelable:!0};t.cascadeEvents_("dblclick",r)||e.altKey||e.shiftKey||t.resetZoom()}}},c.nonInteractiveModel_={mousedown:function(e,t,n){n.initializeMouseDown(e,t,n)},mouseup:c.maybeTreatMouseOpAsClick},c.dragIsPanInteractionModel={mousedown:function(e,t,n){n.initializeMouseDown(e,t,n),c.startPan(e,t,n)},mousemove:function(e,t,n){n.isPanning&&c.movePan(e,t,n)},mouseup:function(e,t,n){n.isPanning&&c.endPan(e,t,n)}};var h=c,d={highlightCircleSize:3,highlightSeriesOpts:null,highlightSeriesBackgroundAlpha:.5,highlightSeriesBackgroundColor:"rgb(255, 255, 255)",labelsSeparateLines:!1,labelsShowZeroValues:!0,labelsKMB:!1,labelsKMG2:!1,showLabelsOnHighlight:!0,digitsAfterDecimal:2,maxNumberWidth:6,sigFigs:null,strokeWidth:1,strokeBorderWidth:0,strokeBorderColor:"white",axisTickSize:3,axisLabelFontSize:14,rightGap:5,showRoller:!1,xValueParser:void 0,delimiter:",",sigma:2,errorBars:!1,fractions:!1,wilsonInterval:!0,customBars:!1,fillGraph:!1,fillAlpha:.15,connectSeparatedPoints:!1,stackedGraph:!1,stackedGraphNaNFill:"all",hideOverlayOnMouseOut:!0,resizable:"no",legend:"onmouseover",legendFollowOffsetX:50,legendFollowOffsetY:-50,stepPlot:!1,xRangePad:0,yRangePad:null,drawAxesAtZero:!1,titleHeight:28,xLabelHeight:18,yLabelWidth:18,axisLineColor:"black",axisLineWidth:.3,gridLineWidth:.3,axisLabelWidth:50,gridLineColor:"rgb(128,128,128)",interactionModel:h.defaultModel,animatedZooms:!1,animateBackgroundFade:!0,showRangeSelector:!1,rangeSelectorHeight:40,rangeSelectorPlotStrokeColor:"#808FAB",rangeSelectorPlotFillGradientColor:"white",rangeSelectorPlotFillColor:"#A7B1C4",rangeSelectorBackgroundStrokeColor:"gray",rangeSelectorBackgroundLineWidth:1,rangeSelectorPlotLineWidth:1.5,rangeSelectorForegroundStrokeColor:"black",rangeSelectorForegroundLineWidth:1,rangeSelectorAlpha:.6,showInRangeSelector:null,plotter:[s._fillPlotter,s._errorPlotter,s._linePlotter],plugins:[],axes:{x:{pixelsPerLabel:70,axisLabelWidth:60,axisLabelFormatter:r.dateAxisLabelFormatter,valueFormatter:r.dateValueFormatter,drawGrid:!0,drawAxis:!0,independentTicks:!0,ticker:l.cc},y:{axisLabelWidth:50,pixelsPerLabel:30,valueFormatter:r.numberValueFormatter,axisLabelFormatter:r.numberAxisLabelFormatter,drawGrid:!0,drawAxis:!0,independentTicks:!0,ticker:l.Dv},y2:{axisLabelWidth:50,pixelsPerLabel:30,valueFormatter:r.numberValueFormatter,axisLabelFormatter:r.numberAxisLabelFormatter,drawAxis:!0,drawGrid:!1,independentTicks:!1,ticker:l.Dv}}},p=function(e){this.dygraph_=e,this.yAxes_=[],this.xAxis_={},this.series_={},this.global_=this.dygraph_.attrs_,this.user_=this.dygraph_.user_attrs_||{},this.labels_=[],this.highlightSeries_=this.get("highlightSeriesOpts")||{},this.reparseSeries()};p.AXIS_STRING_MAPPINGS_={y:0,Y:0,y1:0,Y1:0,y2:1,Y2:1},p.axisToIndex_=function(e){if("string"==typeof e){if(p.AXIS_STRING_MAPPINGS_.hasOwnProperty(e))return p.AXIS_STRING_MAPPINGS_[e];throw"Unknown axis : "+e}if("number"==typeof e){if(0===e||1===e)return e;throw"Dygraphs only supports two y-axes, indexed from 0-1."}if(e)throw"Unknown axis : "+e;return 0},p.prototype.reparseSeries=function(){var e=this.get("labels");if(e){this.labels_=e.slice(1),this.yAxes_=[{series:[],options:{}}],this.xAxis_={options:{}},this.series_={};for(var t=this.user_.series||{},n=0;n<this.labels_.length;n++){var i=this.labels_[n],a=t[i]||{},o=p.axisToIndex_(a.axis);this.series_[i]={idx:n,yAxis:o,options:a},this.yAxes_[o]?this.yAxes_[o].series.push(i):this.yAxes_[o]={series:[i],options:{}}}var s=this.user_.axes||{};r.update(this.yAxes_[0].options,s.y||{}),this.yAxes_.length>1&&r.update(this.yAxes_[1].options,s.y2||{}),r.update(this.xAxis_.options,s.x||{})}},p.prototype.get=function(e){var t=this.getGlobalUser_(e);return null!==t?t:this.getGlobalDefault_(e)},p.prototype.getGlobalUser_=function(e){return this.user_.hasOwnProperty(e)?this.user_[e]:null},p.prototype.getGlobalDefault_=function(e){return this.global_.hasOwnProperty(e)?this.global_[e]:d.hasOwnProperty(e)?d[e]:null},p.prototype.getForAxis=function(e,t){var n,r;if("number"==typeof t)r=0===(n=t)?"y":"y2";else{if("y1"==t&&(t="y"),"y"==t)n=0;else if("y2"==t)n=1;else{if("x"!=t)throw"Unknown axis "+t;n=-1}r=t}var i=-1==n?this.xAxis_:this.yAxes_[n];if(i){var a=i.options;if(a.hasOwnProperty(e))return a[e]}if("x"!==t||"logscale"!==e){var o=this.getGlobalUser_(e);if(null!==o)return o}var s=d.axes[r];return s.hasOwnProperty(e)?s[e]:this.getGlobalDefault_(e)},p.prototype.getForSeries=function(e,t){if(t===this.dygraph_.getHighlightSeries()&&this.highlightSeries_.hasOwnProperty(e))return this.highlightSeries_[e];if(!this.series_.hasOwnProperty(t))throw"Unknown series: "+t;var n=this.series_[t],r=n.options;return r.hasOwnProperty(e)?r[e]:this.getForAxis(e,n.yAxis)},p.prototype.numAxes=function(){return this.yAxes_.length},p.prototype.axisForSeries=function(e){return this.series_[e].yAxis},p.prototype.axisOptions=function(e){return this.yAxes_[e].options},p.prototype.seriesForAxis=function(e){return this.yAxes_[e].series},p.prototype.seriesNames=function(){return this.labels_};var f=p;function g(){this.tarps=[]}g.prototype.cover=function(){for(var e=document.getElementsByTagName("iframe"),t=0;t<e.length;t++){var n=e[t],i=r.findPos(n),a=i.x,o=i.y,s=n.offsetWidth,l=n.offsetHeight,c=document.createElement("div");c.style.position="absolute",c.style.left=a+"px",c.style.top=o+"px",c.style.width=s+"px",c.style.height=l+"px",c.style.zIndex=999,document.body.appendChild(c),this.tarps.push(c)}},g.prototype.uncover=function(){for(var e=0;e<this.tarps.length;e++)this.tarps[e].parentNode.removeChild(this.tarps[e]);this.tarps=[]};var v=g,y=function(){},m=y;m.X=0,m.Y=1,m.EXTRAS=2,m.prototype.extractSeries=function(e,t,n){},m.prototype.seriesToPoints=function(e,t,n){for(var r=[],i=0;i<e.length;++i){var a=e[i],o=a[1],s=null===o?null:m.parseFloat(o),l={x:NaN,y:NaN,xval:m.parseFloat(a[0]),yval:s,name:t,idx:i+n,canvasx:NaN,canvasy:NaN};r.push(l)}return this.onPointsCreated_(e,r),r},m.prototype.onPointsCreated_=function(e,t){},m.prototype.rollingAverage=function(e,t,n,r){},m.prototype.getExtremeYValues=function(e,t,n){},m.prototype.onLineEvaluated=function(e,t,n){},m.parseFloat=function(e){return null===e?NaN:e};var _=y,x=function(){};(x.prototype=new _).extractSeries=function(e,t,n){var r=[];const i=n.get("labels")[t],a=n.getForSeries("logscale",i);for(var o=0;o<e.length;o++){var s=e[o][0],l=e[o][t];a&&l<=0&&(l=null),r.push([s,l])}return r},x.prototype.rollingAverage=function(e,t,n,r){var i,a,o,s,l=[];if(1==(t=Math.min(t,e.length)))return e;for(r=0;r<e.length;r++){for(o=0,s=0,i=Math.max(0,r-t+1);i<r+1;i++)null===(a=e[i][1])||isNaN(a)||(s++,o+=e[i][1]);l[r]=s?[e[r][0],o/s]:[e[r][0],null]}return l},x.prototype.getExtremeYValues=function(e,t,n){for(var r,i=null,a=null,o=e.length-1,s=0;s<=o;s++)null===(r=e[s][1])||isNaN(r)||((null===a||r>a)&&(a=r),(null===i||r<i)&&(i=r));return[i,a]};var b=x,w=function(){_.call(this)};(w.prototype=new _).extractSeries=function(e,t,n){},w.prototype.rollingAverage=function(e,t,n,r){},w.prototype.onPointsCreated_=function(e,t){for(var n=0;n<e.length;++n){var r=e[n],i=t[n];i.y_top=NaN,i.y_bottom=NaN,i.yval_minus=_.parseFloat(r[2][0]),i.yval_plus=_.parseFloat(r[2][1])}},w.prototype.getExtremeYValues=function(e,t,n){for(var r,i=null,a=null,o=e.length-1,s=0;s<=o;s++)if(null!==(r=e[s][1])&&!isNaN(r)){var l=e[s][2][0],c=e[s][2][1];l>r&&(l=r),c<r&&(c=r),(null===a||c>a)&&(a=c),(null===i||l<i)&&(i=l)}return[i,a]},w.prototype.onLineEvaluated=function(e,t,n){for(var r,i=0;i<e.length;i++)(r=e[i]).y_top=a.calcYNormal_(t,r.yval_minus,n),r.y_bottom=a.calcYNormal_(t,r.yval_plus,n)};var O=w,A=function(){};(A.prototype=new O).extractSeries=function(e,t,n){var r,i,a,o,s=[];const l=n.get("labels")[t],c=n.getForSeries("logscale",l),u=n.getForSeries("sigma",l);for(var h=0;h<e.length;h++)r=e[h][0],o=e[h][t],c&&null!==o&&(o[0]<=0||o[0]-u*o[1]<=0)&&(o=null),null!==o?null===(i=o[0])||isNaN(i)?s.push([r,i,[i,i,i]]):(a=u*o[1],s.push([r,i,[i-a,i+a,o[1]]])):s.push([r,null,[null,null,null]]);return s},A.prototype.rollingAverage=function(e,t,n,r){t=Math.min(t,e.length);var i=[];const a=n.get("labels")[r],o=n.getForSeries("sigma",a);var s,l,c,u,h,d,p,f;for(r=0;r<e.length;r++){for(u=0,p=0,h=0,s=Math.max(0,r-t+1);s<r+1;s++)null===(l=e[s][1])||isNaN(l)||(h++,u+=l,p+=Math.pow(e[s][2][2],2));h?(d=Math.sqrt(p)/h,f=u/h,i[r]=[e[r][0],f,[f-o*d,f+o*d]]):(c=1==t?e[r][1]:null,i[r]=[e[r][0],c,[c,c]])}return i};var S=A,C=function(){};(C.prototype=new O).extractSeries=function(e,t,n){var r,i,a,o=[];const s=n.get("labels")[t],l=n.getForSeries("logscale",s);for(var c=0;c<e.length;c++)r=e[c][0],a=e[c][t],l&&null!==a&&(a[0]<=0||a[1]<=0||a[2]<=0)&&(a=null),null!==a?null===(i=a[1])||isNaN(i)?o.push([r,i,[i,i]]):o.push([r,i,[a[0],a[2]]]):o.push([r,null,[null,null]]);return o},C.prototype.rollingAverage=function(e,t,n,r){t=Math.min(t,e.length);var i,a,o,s,l,c,u=[];for(a=0,s=0,o=0,l=0,r=0;r<e.length;r++){if(i=e[r][1],c=e[r][2],u[r]=e[r],null===i||isNaN(i)||(a+=c[0],s+=i,o+=c[1],l+=1),r-t>=0){var h=e[r-t];null===h[1]||isNaN(h[1])||(a-=h[2][0],s-=h[1],o-=h[2][1],l-=1)}u[r]=l?[e[r][0],1*s/l,[1*a/l,1*o/l]]:[e[r][0],null,[null,null]]}return u};var k=C,P=function(){};(P.prototype=new b).extractSeries=function(e,t,n){var r,i,a,o,s,l=[];const c=n.get("labels")[t],u=n.getForSeries("logscale",c);for(var h=0;h<e.length;h++)r=e[h][0],a=e[h][t],u&&null!==a&&(a[0]<=0||a[1]<=0)&&(a=null),null!==a?(o=a[0],s=a[1],null===o||isNaN(o)?l.push([r,o,[o,s]]):(i=100*(s?o/s:0),l.push([r,i,[o,s]]))):l.push([r,null,[null,null]]);return l},P.prototype.rollingAverage=function(e,t,n,r){t=Math.min(t,e.length);var i=[],a=0,o=0;for(r=0;r<e.length;r++){a+=e[r][2][0],o+=e[r][2][1],r-t>=0&&(a-=e[r-t][2][0],o-=e[r-t][2][1]);var s=e[r][0],l=o?a/o:0;i[r]=[s,100*l]}return i};var T=P,L=function(){};(L.prototype=new O).extractSeries=function(e,t,n){var r,i,a,o,s,l,c,u=[];const h=n.get("labels")[t],d=n.getForSeries("logscale",h),p=n.getForSeries("sigma",h);for(var f=0;f<e.length;f++)r=e[f][0],a=e[f][t],d&&null!==a&&(a[0]<=0||a[1]<=0)&&(a=null),null!==a?(o=a[0],s=a[1],null===o||isNaN(o)?u.push([r,o,[o,o,o,s]]):(l=s?o/s:0,c=100*(s?p*Math.sqrt(l*(1-l)/s):1),i=100*l,u.push([r,i,[i-c,i+c,o,s]]))):u.push([r,null,[null,null,null,null]]);return u},L.prototype.rollingAverage=function(e,t,n,r){t=Math.min(t,e.length);var i=[];const a=n.get("labels")[r],o=n.getForSeries("sigma",a),s=n.getForSeries("wilsonInterval",a);var l,c,u,h=0,d=0,p=100;for(r=0;r<e.length;r++){h+=e[r][2][2],d+=e[r][2][3],r-t>=0&&(h-=e[r-t][2][2],d-=e[r-t][2][3]);var f=e[r][0],g=d?h/d:0;if(s)if(d){var v=g<0?0:g,y=d,m=o*Math.sqrt(v*(1-v)/y+o*o/(4*y*y)),_=1+o*o/d;l=(v+o*o/(2*d)-m)/_,c=(v+o*o/(2*d)+m)/_,i[r]=[f,v*p,[l*p,c*p]]}else i[r]=[f,0,[0,0]];else u=d?o*Math.sqrt(g*(1-g)/d):1,i[r]=[f,p*g,[p*(g-u),p*(g+u)]]}return i};var R=L,E=function(){this.annotations_=[]};E.prototype.toString=function(){return"Annotations Plugin"},E.prototype.activate=function(e){return{clearChart:this.clearChart,didDrawChart:this.didDrawChart}},E.prototype.detachLabels=function(){for(var e=0;e<this.annotations_.length;e++){var t=this.annotations_[e];t.parentNode&&t.parentNode.removeChild(t),this.annotations_[e]=null}this.annotations_=[]},E.prototype.clearChart=function(e){this.detachLabels()},E.prototype.didDrawChart=function(e){var t=e.dygraph,n=t.layout_.annotated_points;if(n&&0!==n.length)for(var r=e.canvas.parentNode,i=function(e,n,r){return function(i){var a=r.annotation;a.hasOwnProperty(e)?a[e](a,r,t,i):t.getOption(n)&&t.getOption(n)(a,r,t,i)}},a=e.dygraph.getArea(),o={},s=0;s<n.length;s++){var l=n[s];if(!(l.canvasx<a.x||l.canvasx>a.x+a.w||l.canvasy<a.y||l.canvasy>a.y+a.h)){var c=l.annotation,u=6;c.hasOwnProperty("tickHeight")&&(u=c.tickHeight);var h=document.createElement("div");h.style.fontSize=t.getOption("axisLabelFontSize")+"px";var d="dygraph-annotation";c.hasOwnProperty("icon")||(d+=" dygraphDefaultAnnotation dygraph-default-annotation"),c.hasOwnProperty("cssClass")&&(d+=" "+c.cssClass),h.className=d;var p=c.hasOwnProperty("width")?c.width:16,f=c.hasOwnProperty("height")?c.height:16;if(c.hasOwnProperty("icon")){var g=document.createElement("img");g.src=c.icon,g.width=p,g.height=f,h.appendChild(g)}else l.annotation.hasOwnProperty("shortText")&&h.appendChild(document.createTextNode(l.annotation.shortText));var v=l.canvasx-p/2;h.style.left=v+"px";var y=0;if(c.attachAtBottom){var m=a.y+a.h-f-u;o[v]?m-=o[v]:o[v]=0,o[v]+=u+f,y=m}else y=l.canvasy-f-u;h.style.top=y+"px",h.style.width=p+"px",h.style.height=f+"px",h.title=l.annotation.text,h.style.color=t.colorsMap_[l.name],h.style.borderColor=t.colorsMap_[l.name],c.div=h,t.addAndTrackEvent(h,"click",i("clickHandler","annotationClickHandler",l)),t.addAndTrackEvent(h,"mouseover",i("mouseOverHandler","annotationMouseOverHandler",l)),t.addAndTrackEvent(h,"mouseout",i("mouseOutHandler","annotationMouseOutHandler",l)),t.addAndTrackEvent(h,"dblclick",i("dblClickHandler","annotationDblClickHandler",l)),r.appendChild(h),this.annotations_.push(h);var _=e.drawingContext;if(_.save(),_.strokeStyle=c.hasOwnProperty("tickColor")?c.tickColor:t.colorsMap_[l.name],_.lineWidth=c.hasOwnProperty("tickWidth")?c.tickWidth:t.getOption("strokeWidth"),_.beginPath(),c.attachAtBottom){m=y+f;_.moveTo(l.canvasx,m),_.lineTo(l.canvasx,m+u)}else _.moveTo(l.canvasx,l.canvasy),_.lineTo(l.canvasx,l.canvasy-2-u);_.closePath(),_.stroke(),_.restore()}}},E.prototype.destroy=function(){this.detachLabels()};var D=E,N=function(){this.xlabels_=[],this.ylabels_=[]};N.prototype.toString=function(){return"Axes Plugin"},N.prototype.activate=function(e){return{layout:this.layout,clearChart:this.clearChart,willDrawChart:this.willDrawChart}},N.prototype.layout=function(e){var t,n=e.dygraph;if(n.getOptionForAxis("drawAxis","y")){var r=n.getOptionForAxis("axisLabelWidth","y")+2*n.getOptionForAxis("axisTickSize","y");e.reserveSpaceLeft(r)}n.getOptionForAxis("drawAxis","x")&&(t=n.getOption("xAxisHeight")?n.getOption("xAxisHeight"):n.getOptionForAxis("axisLabelFontSize","x")+2*n.getOptionForAxis("axisTickSize","x"),e.reserveSpaceBottom(t));if(2==n.numAxes()){if(n.getOptionForAxis("drawAxis","y2")){r=n.getOptionForAxis("axisLabelWidth","y2")+2*n.getOptionForAxis("axisTickSize","y2");e.reserveSpaceRight(r)}}else n.numAxes()>2&&n.error("Only two y-axes are supported at this time. (Trying to use "+n.numAxes()+")")},N.prototype.detachLabels=function(){function e(e){for(var t=0;t<e.length;t++){var n=e[t];n.parentNode&&n.parentNode.removeChild(n)}}e(this.xlabels_),e(this.ylabels_),this.xlabels_=[],this.ylabels_=[]},N.prototype.clearChart=function(e){this.detachLabels()},N.prototype.willDrawChart=function(e){var t=e.dygraph;if(!t.getOptionForAxis("drawAxis","x")&&!t.getOptionForAxis("drawAxis","y")&&!t.getOptionForAxis("drawAxis","y2"))return;function n(e){return Math.round(e)+.5}function i(e){return Math.round(e)-.5}var a,o,s,l=e.drawingContext,c=e.canvas.parentNode,u=t.width_,h=t.height_,d=function(e){return{position:"absolute",fontSize:t.getOptionForAxis("axisLabelFontSize",e)+"px",width:t.getOptionForAxis("axisLabelWidth",e)+"px"}},p={x:d("x"),y:d("y"),y2:d("y2")},f=function(e,t,n){var i=document.createElement("div"),a=p["y2"==n?"y2":t];r.update(i.style,a);var o=document.createElement("div");return o.className="dygraph-axis-label dygraph-axis-label-"+t+(n?" dygraph-axis-label-"+n:""),o.innerHTML=e,i.appendChild(o),i};l.save();var g=t.layout_,v=e.dygraph.plotter_.area,y=function(e){return function(n){return t.getOptionForAxis(n,e)}};const m=this;if(t.getOptionForAxis("drawAxis","y")||2==t.numAxes()&&t.getOptionForAxis("drawAxis","y2")){if(g.yticks&&g.yticks.length>0){var _=t.numAxes(),x=[y("y"),y("y2")];g.yticks.forEach((function(e){if(void 0!==e.label){o=v.x;var t="y1",n=x[0];if(1==e.axis&&(o=v.x+v.w,-1,t="y2",n=x[1]),n("drawAxis")){var r=n("axisLabelFontSize");s=v.y+e.pos*v.h,a=f(e.label,"y",2==_?t:null);var i=s-r/2;i<0&&(i=0),i+r+3>h?a.style.bottom="0":a.style.top=Math.min(i,h-2*r)+"px",0===e.axis?(a.style.left=v.x-n("axisLabelWidth")-n("axisTickSize")+"px",a.style.textAlign="right"):1==e.axis&&(a.style.left=v.x+v.w+n("axisTickSize")+"px",a.style.textAlign="left"),a.style.width=n("axisLabelWidth")+"px",c.appendChild(a),m.ylabels_.push(a)}}}))}var b;if(t.getOption("drawAxesAtZero"))((A=t.toPercentXCoord(0))>1||A<0||isNaN(A))&&(A=0),b=n(v.x+A*v.w);else b=n(v.x);l.strokeStyle=t.getOptionForAxis("axisLineColor","y"),l.lineWidth=t.getOptionForAxis("axisLineWidth","y"),l.beginPath(),l.moveTo(b,i(v.y)),l.lineTo(b,i(v.y+v.h)),l.closePath(),l.stroke(),2==t.numAxes()&&t.getOptionForAxis("drawAxis","y2")&&(l.strokeStyle=t.getOptionForAxis("axisLineColor","y2"),l.lineWidth=t.getOptionForAxis("axisLineWidth","y2"),l.beginPath(),l.moveTo(i(v.x+v.w),i(v.y)),l.lineTo(i(v.x+v.w),i(v.y+v.h)),l.closePath(),l.stroke())}if(t.getOptionForAxis("drawAxis","x")){if(g.xticks){var w=y("x");g.xticks.forEach((function(e){if(void 0!==e.label){o=v.x+e.pos*v.w,s=v.y+v.h,(a=f(e.label,"x")).style.textAlign="center",a.style.top=s+w("axisTickSize")+"px";var t=o-w("axisLabelWidth")/2;t+w("axisLabelWidth")>u&&(t=u-w("axisLabelWidth"),a.style.textAlign="right"),t<0&&(t=0,a.style.textAlign="left"),a.style.left=t+"px",a.style.width=w("axisLabelWidth")+"px",c.appendChild(a),m.xlabels_.push(a)}}))}var O,A;if(l.strokeStyle=t.getOptionForAxis("axisLineColor","x"),l.lineWidth=t.getOptionForAxis("axisLineWidth","x"),l.beginPath(),t.getOption("drawAxesAtZero"))((A=t.toPercentYCoord(0,0))>1||A<0)&&(A=1),O=i(v.y+A*v.h);else O=i(v.y+v.h);l.moveTo(n(v.x),O),l.lineTo(n(v.x+v.w),O),l.closePath(),l.stroke()}l.restore()};var M=N,F=function(){this.title_div_=null,this.xlabel_div_=null,this.ylabel_div_=null,this.y2label_div_=null};F.prototype.toString=function(){return"ChartLabels Plugin"},F.prototype.activate=function(e){return{layout:this.layout,didDrawChart:this.didDrawChart}};var I=function(e){var t=document.createElement("div");return t.style.position="absolute",t.style.left=e.x+"px",t.style.top=e.y+"px",t.style.width=e.w+"px",t.style.height=e.h+"px",t};F.prototype.detachLabels_=function(){for(var e=[this.title_div_,this.xlabel_div_,this.ylabel_div_,this.y2label_div_],t=0;t<e.length;t++){var n=e[t];n&&(n.parentNode&&n.parentNode.removeChild(n))}this.title_div_=null,this.xlabel_div_=null,this.ylabel_div_=null,this.y2label_div_=null};var H=function(e,t,n,r,i){var a=document.createElement("div");a.style.position="absolute",a.style.left=1==n?"0px":t.x+"px",a.style.top=t.y+"px",a.style.width=t.w+"px",a.style.height=t.h+"px",a.style.fontSize=e.getOption("yLabelWidth")-2+"px";var o=document.createElement("div");o.style.position="absolute",o.style.width=t.h+"px",o.style.height=t.w+"px",o.style.top=t.h/2-t.w/2+"px",o.style.left=t.w/2-t.h/2+"px",o.className="dygraph-label-rotate-"+(1==n?"right":"left");var s=document.createElement("div");return s.className=r,s.innerHTML=i,o.appendChild(s),a.appendChild(o),a};F.prototype.layout=function(e){this.detachLabels_();var t=e.dygraph,n=e.chart_div;if(t.getOption("title")){var r=e.reserveSpaceTop(t.getOption("titleHeight"));this.title_div_=I(r),this.title_div_.style.fontSize=t.getOption("titleHeight")-8+"px",(i=document.createElement("div")).className="dygraph-label dygraph-title",i.innerHTML=t.getOption("title"),this.title_div_.appendChild(i),n.appendChild(this.title_div_)}if(t.getOption("xlabel")){var i,a=e.reserveSpaceBottom(t.getOption("xLabelHeight"));this.xlabel_div_=I(a),this.xlabel_div_.style.fontSize=t.getOption("xLabelHeight")-2+"px",(i=document.createElement("div")).className="dygraph-label dygraph-xlabel",i.innerHTML=t.getOption("xlabel"),this.xlabel_div_.appendChild(i),n.appendChild(this.xlabel_div_)}if(t.getOption("ylabel")){var o=e.reserveSpaceLeft(0);this.ylabel_div_=H(t,o,1,"dygraph-label dygraph-ylabel",t.getOption("ylabel")),n.appendChild(this.ylabel_div_)}if(t.getOption("y2label")&&2==t.numAxes()){var s=e.reserveSpaceRight(0);this.y2label_div_=H(t,s,2,"dygraph-label dygraph-y2label",t.getOption("y2label")),n.appendChild(this.y2label_div_)}},F.prototype.didDrawChart=function(e){var t=e.dygraph;this.title_div_&&(this.title_div_.children[0].innerHTML=t.getOption("title")),this.xlabel_div_&&(this.xlabel_div_.children[0].innerHTML=t.getOption("xlabel")),this.ylabel_div_&&(this.ylabel_div_.children[0].children[0].innerHTML=t.getOption("ylabel")),this.y2label_div_&&(this.y2label_div_.children[0].children[0].innerHTML=t.getOption("y2label"))},F.prototype.clearChart=function(){},F.prototype.destroy=function(){this.detachLabels_()};var j=F,Y=function(){};Y.prototype.toString=function(){return"Gridline Plugin"},Y.prototype.activate=function(e){return{willDrawChart:this.willDrawChart}},Y.prototype.willDrawChart=function(e){var t,n,r,i=e.dygraph,a=e.drawingContext,o=i.layout_,s=e.dygraph.plotter_.area;function l(e){return Math.round(e)+.5}function c(e){return Math.round(e)-.5}if(i.getOptionForAxis("drawGrid","y")){for(var u=["y","y2"],h=[],d=[],p=[],f=[],g=[],v=0;v<u.length;v++)p[v]=i.getOptionForAxis("drawGrid",u[v]),p[v]&&(h[v]=i.getOptionForAxis("gridLineColor",u[v]),d[v]=i.getOptionForAxis("gridLineWidth",u[v]),g[v]=i.getOptionForAxis("gridLinePattern",u[v]),f[v]=g[v]&&g[v].length>=2);r=o.yticks,a.save(),r.forEach((e=>{if(e.has_tick){var r=e.axis;p[r]&&(a.save(),f[r]&&a.setLineDash&&a.setLineDash(g[r]),a.strokeStyle=h[r],a.lineWidth=d[r],t=l(s.x),n=c(s.y+e.pos*s.h),a.beginPath(),a.moveTo(t,n),a.lineTo(t+s.w,n),a.stroke(),a.restore())}})),a.restore()}if(i.getOptionForAxis("drawGrid","x")){r=o.xticks,a.save();g=i.getOptionForAxis("gridLinePattern","x");(f=g&&g.length>=2)&&a.setLineDash&&a.setLineDash(g),a.strokeStyle=i.getOptionForAxis("gridLineColor","x"),a.lineWidth=i.getOptionForAxis("gridLineWidth","x"),r.forEach((e=>{e.has_tick&&(t=l(s.x+e.pos*s.w),n=c(s.y+s.h),a.beginPath(),a.moveTo(t,n),a.lineTo(t,s.y),a.stroke())})),f&&a.setLineDash&&a.setLineDash([]),a.restore()}},Y.prototype.destroy=function(){};var U=Y,G=function(){this.legend_div_=null,this.is_generated_div_=!1};G.prototype.toString=function(){return"Legend Plugin"},G.prototype.activate=function(e){var t,n=e.getOption("labelsDiv");return n&&null!==n?t="string"==typeof n||n instanceof String?document.getElementById(n):n:((t=document.createElement("div")).className="dygraph-legend",e.graphDiv.appendChild(t),this.is_generated_div_=!0),this.legend_div_=t,this.one_em_width_=10,{select:this.select,deselect:this.deselect,predraw:this.predraw,didDrawChart:this.didDrawChart}};function V(e,t,n){if(!e||e.length<=1)return`<div class="dygraph-legend-line" style="border-bottom-color: ${t};"></div>`;var r,i,a,o,s=0,l=0,c=[];for(r=0;r<=e.length;r++)s+=e[r%e.length];if((o=Math.floor(n/(s-e[0])))>1){for(r=0;r<e.length;r++)c[r]=e[r]/n;l=c.length}else{for(o=1,r=0;r<e.length;r++)c[r]=e[r]/s;l=c.length+1}var u="";for(i=0;i<o;i++)for(r=0;r<l;r+=2)a=c[r%c.length],u+=`<div class="dygraph-legend-dash" style="margin-right: ${r<e.length?c[(r+1)%c.length]:0}em; padding-left: ${a}em;"></div>`;return u}G.prototype.select=function(e){var t=e.selectedX,n=e.selectedPoints,r=e.selectedRow,i=e.dygraph.getOption("legend");if("never"!==i){var a=G.generateLegendHTML(e.dygraph,t,n,this.one_em_width_,r);if(a instanceof Node&&a.nodeType===Node.DOCUMENT_FRAGMENT_NODE?(this.legend_div_.innerHTML="",this.legend_div_.appendChild(a)):this.legend_div_.innerHTML=a,this.legend_div_.style.display="","follow"===i){var o,s=e.dygraph.plotter_.area,l=this.legend_div_.offsetWidth,c=e.dygraph.getOptionForAxis("axisLabelWidth","y"),u=e.dygraph.getHighlightSeries();u&&(o=n.find((e=>e.name===u)))||(o=n[0]);const t=e.dygraph.getNumericOption("legendFollowOffsetX"),r=e.dygraph.getNumericOption("legendFollowOffsetY");var h=o.x*s.w+t,d=o.y*s.h+r;h+l+1>s.w&&(h=h-2*t-l-(c-s.x)),this.legend_div_.style.left=c+h+"px",this.legend_div_.style.top=d+"px"}else if("onmouseover"===i&&this.is_generated_div_){s=e.dygraph.plotter_.area,l=this.legend_div_.offsetWidth;this.legend_div_.style.left=s.x+s.w-l-1+"px",this.legend_div_.style.top=s.y+"px"}}else this.legend_div_.style.display="none"},G.prototype.deselect=function(e){"always"!==e.dygraph.getOption("legend")&&(this.legend_div_.style.display="none");var t=function(e){var t=document.createElement("span");t.setAttribute("style","margin: 0; padding: 0 0 0 1em; border: 0;"),e.appendChild(t);var n=t.offsetWidth;return e.removeChild(t),n}(this.legend_div_);this.one_em_width_=t;var n=G.generateLegendHTML(e.dygraph,void 0,void 0,t,null);n instanceof Node&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE?(this.legend_div_.innerHTML="",this.legend_div_.appendChild(n)):this.legend_div_.innerHTML=n},G.prototype.didDrawChart=function(e){this.deselect(e)},G.prototype.predraw=function(e){if(this.is_generated_div_){e.dygraph.graphDiv.appendChild(this.legend_div_);var t=e.dygraph.plotter_.area,n=this.legend_div_.offsetWidth;this.legend_div_.style.left=t.x+t.w-n-1+"px",this.legend_div_.style.top=t.y+"px"}},G.prototype.destroy=function(){this.legend_div_=null},G.generateLegendHTML=function(e,t,n,i,a){var o,s={dygraph:e,x:t,i:a,series:[]},l={},c=e.getLabels();if(c)for(var u=1;u<c.length;u++){var h=e.getPropertiesForSeries(c[u]),d={dashHTML:V(e.getOption("strokePattern",c[u]),h.color,i),label:c[u],labelHTML:(o=c[u],o.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")),isVisible:h.visible,color:h.color};s.series.push(d),l[c[u]]=d}if("undefined"!==typeof t){var p=e.optionsViewForAxis_("x"),f=p("valueFormatter");s.xHTML=f.call(e,t,p,c[0],e,a,0);var g=[],v=e.numAxes();for(u=0;u<v;u++)g[u]=e.optionsViewForAxis_("y"+(u?1+u:""));var y=e.getOption("labelsShowZeroValues"),m=e.getHighlightSeries();for(u=0;u<n.length;u++){var _=n[u];if((d=l[_.name]).y=_.yval,0===_.yval&&!y||isNaN(_.canvasy))d.isVisible=!1;else{var x=g[(h=e.getPropertiesForSeries(_.name)).axis-1],b=x("valueFormatter").call(e,_.yval,x,_.name,e,a,c.indexOf(_.name));r.update(d,{yHTML:b}),_.name==m&&(d.isHighlighted=!0)}}}return(e.getOption("legendFormatter")||G.defaultFormatter).call(e,s)},G.defaultFormatter=function(e){var t=e.dygraph;if(!0!==t.getOption("showLabelsOnHighlight"))return"";var n,r=t.getOption("labelsSeparateLines");if("undefined"===typeof e.x){if("always"!=t.getOption("legend"))return"";n="";for(var i=0;i<e.series.length;i++){(a=e.series[i]).isVisible&&(""!==n&&(n+=r?"<br />":" "),n+=`<span style='font-weight: bold; color: ${a.color};'>${a.dashHTML} ${a.labelHTML}</span>`)}return n}n=e.xHTML+":";for(i=0;i<e.series.length;i++){var a;if((a=e.series[i]).y||a.yHTML)if(a.isVisible)r&&(n+="<br>"),n+=`<span${a.isHighlighted?' class="highlight"':""}> <b><span style='color: ${a.color};'>${a.labelHTML}</span></b>: ${a.yHTML}</span>`}return n};var X=G,z=function(){this.hasTouchInterface_="undefined"!=typeof TouchEvent,this.isMobileDevice_=/mobile|android/gi.test(navigator.appVersion),this.interfaceCreated_=!1};z.prototype.toString=function(){return"RangeSelector Plugin"},z.prototype.activate=function(e){return this.dygraph_=e,this.getOption_("showRangeSelector")&&this.createInterface_(),{layout:this.reserveSpace_,predraw:this.renderStaticLayer_,didDrawChart:this.renderInteractiveLayer_}},z.prototype.destroy=function(){this.bgcanvas_=null,this.fgcanvas_=null,this.leftZoomHandle_=null,this.rightZoomHandle_=null},z.prototype.getOption_=function(e,t){return this.dygraph_.getOption(e,t)},z.prototype.setDefaultOption_=function(e,t){this.dygraph_.attrs_[e]=t},z.prototype.createInterface_=function(){this.createCanvases_(),this.createZoomHandles_(),this.initInteraction_(),this.getOption_("animatedZooms")&&(console.warn("Animated zooms and range selector are not compatible; disabling animatedZooms."),this.dygraph_.updateOptions({animatedZooms:!1},!0)),this.interfaceCreated_=!0,this.addToGraph_()},z.prototype.addToGraph_=function(){var e=this.graphDiv_=this.dygraph_.graphDiv;e.appendChild(this.bgcanvas_),e.appendChild(this.fgcanvas_),e.appendChild(this.leftZoomHandle_),e.appendChild(this.rightZoomHandle_)},z.prototype.removeFromGraph_=function(){var e=this.graphDiv_;e.removeChild(this.bgcanvas_),e.removeChild(this.fgcanvas_),e.removeChild(this.leftZoomHandle_),e.removeChild(this.rightZoomHandle_),this.graphDiv_=null},z.prototype.reserveSpace_=function(e){this.getOption_("showRangeSelector")&&e.reserveSpaceBottom(this.getOption_("rangeSelectorHeight")+4)},z.prototype.renderStaticLayer_=function(){this.updateVisibility_()&&(this.resize_(),this.drawStaticLayer_())},z.prototype.renderInteractiveLayer_=function(){this.updateVisibility_()&&!this.isChangingRange_&&(this.placeZoomHandles_(),this.drawInteractiveLayer_())},z.prototype.updateVisibility_=function(){var e=this.getOption_("showRangeSelector");if(e)this.interfaceCreated_?this.graphDiv_&&this.graphDiv_.parentNode||this.addToGraph_():this.createInterface_();else if(this.graphDiv_){this.removeFromGraph_();var t=this.dygraph_;setTimeout((function(){t.width_=0,t.resize()}),1)}return e},z.prototype.resize_=function(){function e(e,t,n,i){var a=i||r.getContextPixelRatio(t);e.style.top=n.y+"px",e.style.left=n.x+"px",e.width=n.w*a,e.height=n.h*a,e.style.width=n.w+"px",e.style.height=n.h+"px",1!=a&&t.scale(a,a)}var t=this.dygraph_.layout_.getPlotArea(),n=0;this.dygraph_.getOptionForAxis("drawAxis","x")&&(n=this.getOption_("xAxisHeight")||this.getOption_("axisLabelFontSize")+2*this.getOption_("axisTickSize")),this.canvasRect_={x:t.x,y:t.y+t.h+n+4,w:t.w,h:this.getOption_("rangeSelectorHeight")};var i=this.dygraph_.getNumericOption("pixelRatio");e(this.bgcanvas_,this.bgcanvas_ctx_,this.canvasRect_,i),e(this.fgcanvas_,this.fgcanvas_ctx_,this.canvasRect_,i)},z.prototype.createCanvases_=function(){this.bgcanvas_=r.createCanvas(),this.bgcanvas_.className="dygraph-rangesel-bgcanvas",this.bgcanvas_.style.position="absolute",this.bgcanvas_.style.zIndex=9,this.bgcanvas_ctx_=r.getContext(this.bgcanvas_),this.fgcanvas_=r.createCanvas(),this.fgcanvas_.className="dygraph-rangesel-fgcanvas",this.fgcanvas_.style.position="absolute",this.fgcanvas_.style.zIndex=9,this.fgcanvas_.style.cursor="default",this.fgcanvas_ctx_=r.getContext(this.fgcanvas_)},z.prototype.createZoomHandles_=function(){var e=new Image;e.className="dygraph-rangesel-zoomhandle",e.style.position="absolute",e.style.zIndex=10,e.style.visibility="hidden",e.style.cursor="col-resize",e.width=9,e.height=16,e.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAQCAYAAADESFVDAAAAAXNSR0IArs4c6QAAAAZiS0dEANAAzwDP4Z7KegAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAAd0SU1FB9sHGw0cMqdt1UwAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAaElEQVQoz+3SsRFAQBCF4Z9WJM8KCDVwownl6YXsTmCUsyKGkZzcl7zkz3YLkypgAnreFmDEpHkIwVOMfpdi9CEEN2nGpFdwD03yEqDtOgCaun7sqSTDH32I1pQA2Pb9sZecAxc5r3IAb21d6878xsAAAAAASUVORK5CYII=",this.isMobileDevice_&&(e.width*=2,e.height*=2),this.leftZoomHandle_=e,this.rightZoomHandle_=e.cloneNode(!1)},z.prototype.initInteraction_=function(){var e,t,n,i,a,o,s,l,c,u,d,p,f,g,y=this,m=document,_=0,x=null,b=!1,w=!1,O=!this.isMobileDevice_,A=new v;e=function(e){var t=y.dygraph_.xAxisExtremes(),n=(t[1]-t[0])/y.canvasRect_.w;return[t[0]+(e.leftHandlePos-y.canvasRect_.x)*n,t[0]+(e.rightHandlePos-y.canvasRect_.x)*n]},t=function(e){return r.cancelEvent(e),b=!0,_=e.clientX,x=e.target?e.target:e.srcElement,"mousedown"!==e.type&&"dragstart"!==e.type||(r.addEvent(m,"mousemove",n),r.addEvent(m,"mouseup",i)),y.fgcanvas_.style.cursor="col-resize",A.cover(),!0},n=function(e){if(!b)return!1;r.cancelEvent(e);var t=e.clientX-_;if(Math.abs(t)<4)return!0;_=e.clientX;var n,i=y.getZoomHandleStatus_();x==y.leftZoomHandle_?(n=i.leftHandlePos+t,n=Math.min(n,i.rightHandlePos-x.width-3),n=Math.max(n,y.canvasRect_.x)):(n=i.rightHandlePos+t,n=Math.min(n,y.canvasRect_.x+y.canvasRect_.w),n=Math.max(n,i.leftHandlePos+x.width+3));var o=x.width/2;return x.style.left=n-o+"px",y.drawInteractiveLayer_(),O&&a(),!0},i=function(e){return!!b&&(b=!1,A.uncover(),r.removeEvent(m,"mousemove",n),r.removeEvent(m,"mouseup",i),y.fgcanvas_.style.cursor="default",O||a(),!0)},a=function(){try{var t=y.getZoomHandleStatus_();if(y.isChangingRange_=!0,t.isZoomed){var n=e(t);y.dygraph_.doZoomXDates_(n[0],n[1])}else y.dygraph_.resetZoom()}finally{y.isChangingRange_=!1}},o=function(e){var t=y.leftZoomHandle_.getBoundingClientRect(),n=t.left+t.width/2,r=(t=y.rightZoomHandle_.getBoundingClientRect()).left+t.width/2;return e.clientX>n&&e.clientX<r},s=function(e){return!(w||!o(e)||!y.getZoomHandleStatus_().isZoomed)&&(r.cancelEvent(e),w=!0,_=e.clientX,"mousedown"===e.type&&(r.addEvent(m,"mousemove",l),r.addEvent(m,"mouseup",c)),!0)},l=function(e){if(!w)return!1;r.cancelEvent(e);var t=e.clientX-_;if(Math.abs(t)<4)return!0;_=e.clientX;var n=y.getZoomHandleStatus_(),i=n.leftHandlePos,a=n.rightHandlePos,o=a-i;i+t<=y.canvasRect_.x?a=(i=y.canvasRect_.x)+o:a+t>=y.canvasRect_.x+y.canvasRect_.w?i=(a=y.canvasRect_.x+y.canvasRect_.w)-o:(i+=t,a+=t);var s=y.leftZoomHandle_.width/2;return y.leftZoomHandle_.style.left=i-s+"px",y.rightZoomHandle_.style.left=a-s+"px",y.drawInteractiveLayer_(),O&&u(),!0},c=function(e){return!!w&&(w=!1,r.removeEvent(m,"mousemove",l),r.removeEvent(m,"mouseup",c),O||u(),!0)},u=function(){try{y.isChangingRange_=!0,y.dygraph_.dateWindow_=e(y.getZoomHandleStatus_()),y.dygraph_.drawGraph_(!1)}finally{y.isChangingRange_=!1}},d=function(e){if(!b&&!w){var t=o(e)?"move":"default";t!=y.fgcanvas_.style.cursor&&(y.fgcanvas_.style.cursor=t)}},p=function(e){"touchstart"==e.type&&1==e.targetTouches.length?t(e.targetTouches[0])&&r.cancelEvent(e):"touchmove"==e.type&&1==e.targetTouches.length?n(e.targetTouches[0])&&r.cancelEvent(e):i(e)},f=function(e){"touchstart"==e.type&&1==e.targetTouches.length?s(e.targetTouches[0])&&r.cancelEvent(e):"touchmove"==e.type&&1==e.targetTouches.length?l(e.targetTouches[0])&&r.cancelEvent(e):c(e)},g=function(e,t){for(var n=["touchstart","touchend","touchmove","touchcancel"],r=0;r<n.length;r++)y.dygraph_.addAndTrackEvent(e,n[r],t)},this.setDefaultOption_("interactionModel",h.dragIsPanInteractionModel),this.setDefaultOption_("panEdgeFraction",1e-4);var S=window.opera?"mousedown":"dragstart";this.dygraph_.addAndTrackEvent(this.leftZoomHandle_,S,t),this.dygraph_.addAndTrackEvent(this.rightZoomHandle_,S,t),this.dygraph_.addAndTrackEvent(this.fgcanvas_,"mousedown",s),this.dygraph_.addAndTrackEvent(this.fgcanvas_,"mousemove",d),this.hasTouchInterface_&&(g(this.leftZoomHandle_,p),g(this.rightZoomHandle_,p),g(this.fgcanvas_,f))},z.prototype.drawStaticLayer_=function(){var e=this.bgcanvas_ctx_;e.clearRect(0,0,this.canvasRect_.w,this.canvasRect_.h);try{this.drawMiniPlot_()}catch(n){console.warn(n)}var t=.5;this.bgcanvas_ctx_.lineWidth=this.getOption_("rangeSelectorBackgroundLineWidth"),e.strokeStyle=this.getOption_("rangeSelectorBackgroundStrokeColor"),e.beginPath(),e.moveTo(t,t),e.lineTo(t,this.canvasRect_.h-t),e.lineTo(this.canvasRect_.w-t,this.canvasRect_.h-t),e.lineTo(this.canvasRect_.w-t,t),e.stroke()},z.prototype.drawMiniPlot_=function(){var e=this.getOption_("rangeSelectorPlotFillColor"),t=this.getOption_("rangeSelectorPlotFillGradientColor"),n=this.getOption_("rangeSelectorPlotStrokeColor");if(e||n){var r=this.getOption_("stepPlot"),i=this.computeCombinedSeriesAndLimits_(),a=i.yMax-i.yMin,o=this.bgcanvas_ctx_,s=.5,l=this.dygraph_.xAxisExtremes(),c=Math.max(l[1]-l[0],1e-30),u=(this.canvasRect_.w-s)/c,h=(this.canvasRect_.h-s)/a,d=this.canvasRect_.w-s,p=this.canvasRect_.h-s,f=null,g=null;o.beginPath(),o.moveTo(s,p);for(var v=0;v<i.data.length;v++){var y=i.data[v],m=null!==y[0]?(y[0]-l[0])*u:NaN,_=null!==y[1]?p-(y[1]-i.yMin)*h:NaN;(r||null===f||Math.round(m)!=Math.round(f))&&(isFinite(m)&&isFinite(_)?(null===f?o.lineTo(m,p):r&&o.lineTo(m,g),o.lineTo(m,_),f=m,g=_):(null!==f&&(r?(o.lineTo(m,g),o.lineTo(m,p)):o.lineTo(f,p)),f=g=null))}if(o.lineTo(d,p),o.closePath(),e){var x=this.bgcanvas_ctx_.createLinearGradient(0,0,0,p);t&&x.addColorStop(0,t),x.addColorStop(1,e),this.bgcanvas_ctx_.fillStyle=x,o.fill()}n&&(this.bgcanvas_ctx_.strokeStyle=n,this.bgcanvas_ctx_.lineWidth=this.getOption_("rangeSelectorPlotLineWidth"),o.stroke())}},z.prototype.computeCombinedSeriesAndLimits_=function(){var e,t=this.dygraph_,n=this.getOption_("logscale"),i=t.numColumns(),a=t.getLabels(),o=new Array(i),s=!1,l=t.visibility(),c=[];for(e=1;e<i;e++){var u=this.getOption_("showInRangeSelector",a[e]);c.push(u),null!==u&&(s=!0)}if(s)for(e=1;e<i;e++)o[e]=c[e-1];else for(e=1;e<i;e++)o[e]=l[e-1];var h=[],d=t.dataHandler_,p=t.attributes_;for(e=1;e<t.numColumns();e++)if(o[e]){var f=d.extractSeries(t.rawData_,e,p);t.rollPeriod()>1&&(f=d.rollingAverage(f,t.rollPeriod(),p,e)),h.push(f)}var g=[];for(e=0;e<h[0].length;e++){for(var v=0,y=0,m=0;m<h.length;m++){var _=h[m][e][1];null===_||isNaN(_)||(y++,v+=_)}g.push([h[0][e][0],v/y])}var x=Number.MAX_VALUE,b=-Number.MAX_VALUE;for(e=0;e<g.length;e++){var w=g[e][1];null!==w&&isFinite(w)&&(!n||w>0)&&(x=Math.min(x,w),b=Math.max(b,w))}var O=.25;if(n)for(b=r.log10(b),b+=b*O,x=r.log10(x),e=0;e<g.length;e++)g[e][1]=r.log10(g[e][1]);else{var A,S=b-x;b+=A=S<=Number.MIN_VALUE?b*O:S*O,x-=A}return{data:g,yMin:x,yMax:b}},z.prototype.placeZoomHandles_=function(){var e=this.dygraph_.xAxisExtremes(),t=this.dygraph_.xAxisRange(),n=e[1]-e[0],r=Math.max(0,(t[0]-e[0])/n),i=Math.max(0,(e[1]-t[1])/n),a=this.canvasRect_.x+this.canvasRect_.w*r,o=this.canvasRect_.x+this.canvasRect_.w*(1-i),s=Math.max(this.canvasRect_.y,this.canvasRect_.y+(this.canvasRect_.h-this.leftZoomHandle_.height)/2),l=this.leftZoomHandle_.width/2;this.leftZoomHandle_.style.left=a-l+"px",this.leftZoomHandle_.style.top=s+"px",this.rightZoomHandle_.style.left=o-l+"px",this.rightZoomHandle_.style.top=this.leftZoomHandle_.style.top,this.leftZoomHandle_.style.visibility="visible",this.rightZoomHandle_.style.visibility="visible"},z.prototype.drawInteractiveLayer_=function(){var e=this.fgcanvas_ctx_;e.clearRect(0,0,this.canvasRect_.w,this.canvasRect_.h);var t=this.canvasRect_.w-1,n=this.canvasRect_.h-1,r=this.getZoomHandleStatus_();if(e.strokeStyle=this.getOption_("rangeSelectorForegroundStrokeColor"),e.lineWidth=this.getOption_("rangeSelectorForegroundLineWidth"),r.isZoomed){var i=Math.max(1,r.leftHandlePos-this.canvasRect_.x),a=Math.min(t,r.rightHandlePos-this.canvasRect_.x);const o=this.getOption_("rangeSelectorVeilColour");e.fillStyle=o||"rgba(240, 240, 240, "+this.getOption_("rangeSelectorAlpha").toString()+")",e.fillRect(0,0,i,this.canvasRect_.h),e.fillRect(a,0,this.canvasRect_.w-a,this.canvasRect_.h),e.beginPath(),e.moveTo(1,1),e.lineTo(i,1),e.lineTo(i,n),e.lineTo(a,n),e.lineTo(a,1),e.lineTo(t,1),e.stroke()}else e.beginPath(),e.moveTo(1,1),e.lineTo(1,n),e.lineTo(t,n),e.lineTo(t,1),e.stroke()},z.prototype.getZoomHandleStatus_=function(){var e=this.leftZoomHandle_.width/2,t=parseFloat(this.leftZoomHandle_.style.left)+e,n=parseFloat(this.rightZoomHandle_.style.left)+e;return{leftHandlePos:t,rightHandlePos:n,isZoomed:t-1>this.canvasRect_.x||n+1<this.canvasRect_.x+this.canvasRect_.w}};var Z=z,B=function(e){this.container=e};B.prototype.draw=function(e,t){this.container.innerHTML="","undefined"!=typeof this.date_graph&&this.date_graph.destroy(),this.date_graph=new Q(this.container,e,t)},B.prototype.setSelection=function(e){var t=!1;e.length&&(t=e[0].row),this.date_graph.setSelection(t)},B.prototype.getSelection=function(){var e=[],t=this.date_graph.getSelection();if(t<0)return e;for(var n=this.date_graph.layout_.points,r=0;r<n.length;++r)e.push({row:t,column:r+1});return e};var W=B,$=function(e,t,n){this.__init__(e,t,n)};$.NAME="Dygraph",$.VERSION="2.2.1";var q={};($._require=function(e){return e in q?q[e]:$._require._b(e)})._b=null,$._require.add=function(e,t){q[e]=t},$.DEFAULT_ROLL_PERIOD=1,$.DEFAULT_WIDTH=480,$.DEFAULT_HEIGHT=320,$.ANIMATION_STEPS=12,$.ANIMATION_DURATION=200,$.Plotters=s._Plotters,$.addedAnnotationCSS=!1,$.prototype.__init__=function(e,t,n){if(this.is_initial_draw_=!0,this.readyFns_=[],null!==n&&void 0!==n||(n={}),n=$.copyUserAttrs_(n),"string"==typeof e&&(e=document.getElementById(e)),!e)throw new Error("Constructing dygraph with a non-existent div!");this.maindiv_=e,this.file_=t,this.rollPeriod_=n.rollPeriod||$.DEFAULT_ROLL_PERIOD,this.previousVerticalX_=-1,this.fractions_=n.fractions||!1,this.dateWindow_=n.dateWindow||null,this.annotations_=[],e.innerHTML="";const i=window.getComputedStyle(e,null);"0px"===i.paddingLeft&&"0px"===i.paddingRight&&"0px"===i.paddingTop&&"0px"===i.paddingBottom||console.error("Main div contains padding; graph will misbehave"),""===e.style.width&&n.width&&(e.style.width=n.width+"px"),""===e.style.height&&n.height&&(e.style.height=n.height+"px"),""===e.style.height&&0===e.clientHeight&&(e.style.height=$.DEFAULT_HEIGHT+"px",""===e.style.width&&(e.style.width=$.DEFAULT_WIDTH+"px")),this.width_=e.clientWidth||n.width||0,this.height_=e.clientHeight||n.height||0,n.stackedGraph&&(n.fillGraph=!0),this.user_attrs_={},r.update(this.user_attrs_,n),this.attrs_={},r.updateDeep(this.attrs_,d),this.boundaryIds_=[],this.setIndexByName_={},this.datasetIndex_=[],this.registeredEvents_=[],this.eventListeners_={},this.attributes_=new f(this),this.createInterface_(),this.plugins_=[];for(var a=$.PLUGINS.concat(this.getOption("plugins")),o=0;o<a.length;o++){var s,l=a[o],c={plugin:s="undefined"!==typeof l.activate?l:new l,events:{},options:{},pluginOptions:{}},u=s.activate(this);for(var h in u)u.hasOwnProperty(h)&&(c.events[h]=u[h]);this.plugins_.push(c)}for(o=0;o<this.plugins_.length;o++){var p=this.plugins_[o];for(var h in p.events)if(p.events.hasOwnProperty(h)){var g=p.events[h],v=[p.plugin,g];h in this.eventListeners_?this.eventListeners_[h].push(v):this.eventListeners_[h]=[v]}}this.createDragInterface_(),this.start_()},$.prototype.cascadeEvents_=function(e,t){if(!(e in this.eventListeners_))return!1;var n={dygraph:this,cancelable:!1,defaultPrevented:!1,preventDefault:function(){if(!n.cancelable)throw"Cannot call preventDefault on non-cancelable event.";n.defaultPrevented=!0},propagationStopped:!1,stopPropagation:function(){n.propagationStopped=!0}};r.update(n,t);var i=this.eventListeners_[e];if(i)for(var a=i.length-1;a>=0;a--){var o=i[a][0];if(i[a][1].call(o,n),n.propagationStopped)break}return n.defaultPrevented},$.prototype.getPluginInstance_=function(e){for(var t=0;t<this.plugins_.length;t++){var n=this.plugins_[t];if(n.plugin instanceof e)return n.plugin}return null},$.prototype.isZoomed=function(e){const t=!!this.dateWindow_;if("x"===e)return t;const n=this.axes_.map((e=>!!e.valueRange)).indexOf(!0)>=0;if(null===e||void 0===e)return t||n;if("y"===e)return n;throw new Error(`axis parameter is [${e}] must be null, 'x' or 'y'.`)},$.prototype.toString=function(){var e=this.maindiv_;return"[Dygraph "+(e&&e.id?e.id:e)+"]"},$.prototype.attr_=function(e,t){return t?this.attributes_.getForSeries(e,t):this.attributes_.get(e)},$.prototype.getOption=function(e,t){return this.attr_(e,t)},$.prototype.getNumericOption=function(e,t){return this.getOption(e,t)},$.prototype.getStringOption=function(e,t){return this.getOption(e,t)},$.prototype.getBooleanOption=function(e,t){return this.getOption(e,t)},$.prototype.getFunctionOption=function(e,t){return this.getOption(e,t)},$.prototype.getOptionForAxis=function(e,t){return this.attributes_.getForAxis(e,t)},$.prototype.optionsViewForAxis_=function(e){var t=this;return function(n){var r=t.user_attrs_.axes;return r&&r[e]&&r[e].hasOwnProperty(n)?r[e][n]:("x"!==e||"logscale"!==n)&&("undefined"!=typeof t.user_attrs_[n]?t.user_attrs_[n]:(r=t.attrs_.axes)&&r[e]&&r[e].hasOwnProperty(n)?r[e][n]:"y"==e&&t.axes_[0].hasOwnProperty(n)?t.axes_[0][n]:"y2"==e&&t.axes_[1].hasOwnProperty(n)?t.axes_[1][n]:t.attr_(n))}},$.prototype.rollPeriod=function(){return this.rollPeriod_},$.prototype.xAxisRange=function(){return this.dateWindow_?this.dateWindow_:this.xAxisExtremes()},$.prototype.xAxisExtremes=function(){var e=this.getNumericOption("xRangePad")/this.plotter_.area.w;if(0===this.numRows())return[0-e,1+e];var t=this.rawData_[0][0],n=this.rawData_[this.rawData_.length-1][0];if(e){var r=n-t;t-=r*e,n+=r*e}return[t,n]},$.prototype.yAxisExtremes=function(){const e=this.gatherDatasets_(this.rolledSeries_,null),{extremes:t}=e,n=this.axes_;this.computeYAxisRanges_(t);const r=this.axes_;return this.axes_=n,r.map((e=>e.extremeRange))},$.prototype.yAxisRange=function(e){if("undefined"==typeof e&&(e=0),e<0||e>=this.axes_.length)return null;var t=this.axes_[e];return[t.computedValueRange[0],t.computedValueRange[1]]},$.prototype.yAxisRanges=function(){for(var e=[],t=0;t<this.axes_.length;t++)e.push(this.yAxisRange(t));return e},$.prototype.toDomCoords=function(e,t,n){return[this.toDomXCoord(e),this.toDomYCoord(t,n)]},$.prototype.toDomXCoord=function(e){if(null===e)return null;var t=this.plotter_.area,n=this.xAxisRange();return t.x+(e-n[0])/(n[1]-n[0])*t.w},$.prototype.toDomYCoord=function(e,t){var n=this.toPercentYCoord(e,t);if(null===n)return null;var r=this.plotter_.area;return r.y+n*r.h},$.prototype.toDataCoords=function(e,t,n){return[this.toDataXCoord(e),this.toDataYCoord(t,n)]},$.prototype.toDataXCoord=function(e){if(null===e)return null;var t=this.plotter_.area,n=this.xAxisRange();if(this.attributes_.getForAxis("logscale","x")){var i=(e-t.x)/t.w;return r.logRangeFraction(n[0],n[1],i)}return n[0]+(e-t.x)/t.w*(n[1]-n[0])},$.prototype.toDataYCoord=function(e,t){if(null===e)return null;var n=this.plotter_.area,i=this.yAxisRange(t);if("undefined"==typeof t&&(t=0),this.attributes_.getForAxis("logscale",t)){var a=(e-n.y)/n.h;return r.logRangeFraction(i[1],i[0],a)}return i[0]+(n.y+n.h-e)/n.h*(i[1]-i[0])},$.prototype.toPercentYCoord=function(e,t){if(null===e)return null;"undefined"==typeof t&&(t=0);var n,i=this.yAxisRange(t);if(this.attributes_.getForAxis("logscale",t)){var a=r.log10(i[0]),o=r.log10(i[1]);n=(o-r.log10(e))/(o-a)}else n=(i[1]-e)/(i[1]-i[0]);return n},$.prototype.toPercentXCoord=function(e){if(null===e)return null;var t,n=this.xAxisRange();if(!0===this.attributes_.getForAxis("logscale","x")){var i=r.log10(n[0]),a=r.log10(n[1]);t=(r.log10(e)-i)/(a-i)}else t=(e-n[0])/(n[1]-n[0]);return t},$.prototype.numColumns=function(){return this.rawData_?this.rawData_[0]?this.rawData_[0].length:this.attr_("labels").length:0},$.prototype.numRows=function(){return this.rawData_?this.rawData_.length:0},$.prototype.getValue=function(e,t){return e<0||e>=this.rawData_.length||t<0||t>=this.rawData_[e].length?null:this.rawData_[e][t]},$.prototype.createInterface_=function(){var e=this.maindiv_;this.graphDiv=document.createElement("div"),this.graphDiv.style.textAlign="left",this.graphDiv.style.position="relative",e.appendChild(this.graphDiv),this.canvas_=r.createCanvas(),this.canvas_.style.position="absolute",this.canvas_.style.top=0,this.canvas_.style.left=0,this.hidden_=this.createPlotKitCanvas_(this.canvas_),this.canvas_ctx_=r.getContext(this.canvas_),this.hidden_ctx_=r.getContext(this.hidden_),this.resizeElements_(),this.graphDiv.appendChild(this.hidden_),this.graphDiv.appendChild(this.canvas_),this.mouseEventElement_=this.createMouseEventElement_(),this.layout_=new a(this);var t=this;if(this.mouseMoveHandler_=function(e){t.mouseMove_(e)},this.mouseOutHandler_=function(e){var n=e.target||e.fromElement,i=e.relatedTarget||e.toElement;r.isNodeContainedBy(n,t.graphDiv)&&!r.isNodeContainedBy(i,t.graphDiv)&&t.mouseOut_(e)},this.addAndTrackEvent(window,"mouseout",this.mouseOutHandler_),this.addAndTrackEvent(this.mouseEventElement_,"mousemove",this.mouseMoveHandler_),!this.resizeHandler_){this.resizeHandler_=function(e){t.resize()},this.addAndTrackEvent(window,"resize",this.resizeHandler_),this.resizeObserver_=null;var n=this.getStringOption("resizable");if("undefined"===typeof ResizeObserver&&"no"!==n&&(console.error("ResizeObserver unavailable; ignoring resizable property"),n="no"),"horizontal"===n||"vertical"===n||"both"===n?e.style.resize=n:"passive"!==n&&(n="no"),"no"!==n){window.getComputedStyle(e).overflow;"visible"===window.getComputedStyle(e).overflow&&(e.style.overflow="hidden"),this.resizeObserver_=new ResizeObserver(this.resizeHandler_),this.resizeObserver_.observe(e)}}},$.prototype.resizeElements_=function(){this.graphDiv.style.width=this.width_+"px",this.graphDiv.style.height=this.height_+"px";var e=this.getNumericOption("pixelRatio"),t=e||r.getContextPixelRatio(this.canvas_ctx_);this.canvas_.width=this.width_*t,this.canvas_.height=this.height_*t,this.canvas_.style.width=this.width_+"px",this.canvas_.style.height=this.height_+"px",1!==t&&this.canvas_ctx_.scale(t,t);var n=e||r.getContextPixelRatio(this.hidden_ctx_);this.hidden_.width=this.width_*n,this.hidden_.height=this.height_*n,this.hidden_.style.width=this.width_+"px",this.hidden_.style.height=this.height_+"px",1!==n&&this.hidden_ctx_.scale(n,n)},$.prototype.destroy=function(){this.canvas_ctx_.restore(),this.hidden_ctx_.restore();for(var e=this.plugins_.length-1;e>=0;e--){var t=this.plugins_.pop();t.plugin.destroy&&t.plugin.destroy()}var n=function(e){for(;e.hasChildNodes();)n(e.firstChild),e.removeChild(e.firstChild)};this.removeTrackedEvents_(),r.removeEvent(window,"mouseout",this.mouseOutHandler_),r.removeEvent(this.mouseEventElement_,"mousemove",this.mouseMoveHandler_),this.resizeObserver_&&(this.resizeObserver_.disconnect(),this.resizeObserver_=null),r.removeEvent(window,"resize",this.resizeHandler_),this.resizeHandler_=null,n(this.maindiv_);var i=function(e){for(var t in e)"object"===typeof e[t]&&(e[t]=null)};i(this.layout_),i(this.plotter_),i(this)},$.prototype.createPlotKitCanvas_=function(e){var t=r.createCanvas();return t.style.position="absolute",t.style.top=e.style.top,t.style.left=e.style.left,t.width=this.width_,t.height=this.height_,t.style.width=this.width_+"px",t.style.height=this.height_+"px",t},$.prototype.createMouseEventElement_=function(){return this.canvas_},$.prototype.setColors_=function(){var e=this.getLabels(),t=e.length-1;this.colors_=[],this.colorsMap_={};for(var n=this.getNumericOption("colorSaturation")||1,i=this.getNumericOption("colorValue")||.5,a=Math.ceil(t/2),o=this.getOption("colors"),s=this.visibility(),l=0;l<t;l++)if(s[l]){var c=e[l+1],u=this.attributes_.getForSeries("color",c);if(!u)if(o)u=o[l%o.length];else{var h=1*(l%2?a+(l+1)/2:Math.ceil((l+1)/2))/(1+t);u=r.hsvToRGB(h,n,i)}this.colors_.push(u),this.colorsMap_[c]=u}},$.prototype.getColors=function(){return this.colors_},$.prototype.getPropertiesForSeries=function(e){for(var t=-1,n=this.getLabels(),r=1;r<n.length;r++)if(n[r]==e){t=r;break}return-1==t?null:{name:e,column:t,visible:this.visibility()[t-1],color:this.colorsMap_[e],axis:1+this.attributes_.axisForSeries(e)}},$.prototype.createRollInterface_=function(){var e=this.roller_;e||(this.roller_=e=document.createElement("input"),e.type="text",e.style.display="none",e.className="dygraph-roller",this.graphDiv.appendChild(e));var t=this.getBooleanOption("showRoller")?"block":"none",n=this.getArea(),i={top:n.y+n.h-25+"px",left:n.x+1+"px",display:t};e.size="2",e.value=this.rollPeriod_,r.update(e.style,i);const a=this;e.onchange=function(){return a.adjustRoll(e.value)}},$.prototype.createDragInterface_=function(){var e={isZooming:!1,isPanning:!1,is2DPan:!1,dragStartX:null,dragStartY:null,dragEndX:null,dragEndY:null,dragDirection:null,prevEndX:null,prevEndY:null,prevDragDirection:null,cancelNextDblclick:!1,initialLeftmostDate:null,xUnitsPerPixel:null,dateRange:null,px:0,py:0,boundedDates:null,boundedValues:null,tarp:new v,initializeMouseDown:function(e,t,n){e.preventDefault?e.preventDefault():(e.returnValue=!1,e.cancelBubble=!0);var i=r.findPos(t.canvas_);n.px=i.x,n.py=i.y,n.dragStartX=r.dragGetX_(e,n),n.dragStartY=r.dragGetY_(e,n),n.cancelNextDblclick=!1,n.tarp.cover()},destroy:function(){var e=this;if((e.isZooming||e.isPanning)&&(e.isZooming=!1,e.dragStartX=null,e.dragStartY=null),e.isPanning){e.isPanning=!1,e.draggingDate=null,e.dateRange=null;for(var t=0;t<n.axes_.length;t++)delete n.axes_[t].draggingValue,delete n.axes_[t].dragValueRange}e.tarp.uncover()}},t=this.getOption("interactionModel"),n=this,i=function(t){return function(r){t(r,n,e)}};for(var a in t)t.hasOwnProperty(a)&&this.addAndTrackEvent(this.mouseEventElement_,a,i(t[a]));if(!t.willDestroyContextMyself){this.addAndTrackEvent(document,"mouseup",(function(t){e.destroy()}))}},$.prototype.drawZoomRect_=function(e,t,n,i,a,o,s,l){var c=this.canvas_ctx_;o==r.HORIZONTAL?c.clearRect(Math.min(t,s),this.layout_.getPlotArea().y,Math.abs(t-s),this.layout_.getPlotArea().h):o==r.VERTICAL&&c.clearRect(this.layout_.getPlotArea().x,Math.min(i,l),this.layout_.getPlotArea().w,Math.abs(i-l)),e==r.HORIZONTAL?n&&t&&(c.fillStyle="rgba(128,128,128,0.33)",c.fillRect(Math.min(t,n),this.layout_.getPlotArea().y,Math.abs(n-t),this.layout_.getPlotArea().h)):e==r.VERTICAL&&a&&i&&(c.fillStyle="rgba(128,128,128,0.33)",c.fillRect(this.layout_.getPlotArea().x,Math.min(i,a),this.layout_.getPlotArea().w,Math.abs(a-i)))},$.prototype.clearZoomRect_=function(){this.currentZoomRectArgs_=null,this.canvas_ctx_.clearRect(0,0,this.width_,this.height_)},$.prototype.doZoomX_=function(e,t){this.currentZoomRectArgs_=null;var n=this.toDataXCoord(e),r=this.toDataXCoord(t);this.doZoomXDates_(n,r)},$.prototype.doZoomXDates_=function(e,t){var n=this.xAxisRange(),r=[e,t];const i=this.getFunctionOption("zoomCallback"),a=this;this.doAnimatedZoom(n,r,null,null,(function(){i&&i.call(a,e,t,a.yAxisRanges())}))},$.prototype.doZoomY_=function(e,t){this.currentZoomRectArgs_=null;for(var n=this.yAxisRanges(),r=[],i=0;i<this.axes_.length;i++){var a=this.toDataYCoord(e,i),o=this.toDataYCoord(t,i);r.push([o,a])}const s=this.getFunctionOption("zoomCallback"),l=this;this.doAnimatedZoom(null,null,n,r,(function(){if(s){const[e,t]=l.xAxisRange();s.call(l,e,t,l.yAxisRanges())}}))},$.zoomAnimationFunction=function(e,t){return(1-Math.pow(1.5,-e))/(1-Math.pow(1.5,-t))},$.prototype.resetZoom=function(){const e=this.isZoomed("x"),t=this.isZoomed("y"),n=e||t;if(this.clearSelection(),!n)return;const[r,i]=this.xAxisExtremes(),a=this.getBooleanOption("animatedZooms"),o=this.getFunctionOption("zoomCallback");if(!a)return this.dateWindow_=null,this.axes_.forEach((e=>{e.valueRange&&delete e.valueRange})),this.drawGraph_(),void(o&&o.call(this,r,i,this.yAxisRanges()));var s=null,l=null,c=null,u=null;e&&(s=this.xAxisRange(),l=[r,i]),t&&(c=this.yAxisRanges(),u=this.yAxisExtremes());const h=this;this.doAnimatedZoom(s,l,c,u,(function(){h.dateWindow_=null,h.axes_.forEach((e=>{e.valueRange&&delete e.valueRange})),o&&o.call(h,r,i,h.yAxisRanges())}))},$.prototype.doAnimatedZoom=function(e,t,n,i,a){var o,s,l=this.getBooleanOption("animatedZooms")?$.ANIMATION_STEPS:1,c=[],u=[];if(null!==e&&null!==t)for(o=1;o<=l;o++)s=$.zoomAnimationFunction(o,l),c[o-1]=[e[0]*(1-s)+s*t[0],e[1]*(1-s)+s*t[1]];if(null!==n&&null!==i)for(o=1;o<=l;o++){s=$.zoomAnimationFunction(o,l);for(var h=[],d=0;d<this.axes_.length;d++)h.push([n[d][0]*(1-s)+s*i[d][0],n[d][1]*(1-s)+s*i[d][1]]);u[o-1]=h}const p=this;r.repeatAndCleanup((function(e){if(u.length)for(var t=0;t<p.axes_.length;t++){var n=u[e][t];p.axes_[t].valueRange=[n[0],n[1]]}c.length&&(p.dateWindow_=c[e]),p.drawGraph_()}),l,$.ANIMATION_DURATION/l,a)},$.prototype.getArea=function(){return this.plotter_.area},$.prototype.eventToDomCoords=function(e){if(e.offsetX&&e.offsetY)return[e.offsetX,e.offsetY];var t=r.findPos(this.mouseEventElement_);return[r.pageX(e)-t.x,r.pageY(e)-t.y]},$.prototype.findClosestRow=function(e){for(var t=1/0,n=-1,i=this.layout_.points,a=0;a<i.length;a++)for(var o=i[a],s=o.length,l=0;l<s;l++){var c=o[l];if(r.isValidPoint(c,!0)){var u=Math.abs(c.canvasx-e);u<t&&(t=u,n=c.idx)}}return n},$.prototype.findClosestPoint=function(e,t){for(var n,i,a,o,s,l,c,u=1/0,h=this.layout_.points.length-1;h>=0;--h)for(var d=this.layout_.points[h],p=0;p<d.length;++p)o=d[p],r.isValidPoint(o)&&(n=(i=o.canvasx-e)*i+(a=o.canvasy-t)*a)<u&&(u=n,s=o,l=h,c=o.idx);return{row:c,seriesName:this.layout_.setNames[l],point:s}},$.prototype.findStackedPoint=function(e,t){for(var n,i,a=this.findClosestRow(e),o=0;o<this.layout_.points.length;++o){var s=a-this.getLeftBoundary_(o),l=this.layout_.points[o];if(!(s>=l.length)){var c=l[s];if(r.isValidPoint(c)){var u=c.canvasy;if(e>c.canvasx&&s+1<l.length){var h=l[s+1];if(r.isValidPoint(h))if((d=h.canvasx-c.canvasx)>0)u+=(e-c.canvasx)/d*(h.canvasy-c.canvasy)}else if(e<c.canvasx&&s>0){var d,p=l[s-1];if(r.isValidPoint(p))if((d=c.canvasx-p.canvasx)>0)u+=(c.canvasx-e)/d*(p.canvasy-c.canvasy)}(0===o||u<t)&&(n=c,i=o)}}}return{row:a,seriesName:this.layout_.setNames[i],point:n}},$.prototype.mouseMove_=function(e){var t=this.layout_.points;if(void 0!==t&&null!==t){var n=this.eventToDomCoords(e),r=n[0],i=n[1],a=!1;if(this.getOption("highlightSeriesOpts")&&!this.isSeriesLocked()){var o;o=this.getBooleanOption("stackedGraph")?this.findStackedPoint(r,i):this.findClosestPoint(r,i),a=this.setSelection(o.row,o.seriesName)}else{var s=this.findClosestRow(r);a=this.setSelection(s)}var l=this.getFunctionOption("highlightCallback");l&&a&&l.call(this,e,this.lastx_,this.selPoints_,this.lastRow_,this.highlightSet_)}},$.prototype.getLeftBoundary_=function(e){if(this.boundaryIds_[e])return this.boundaryIds_[e][0];for(var t=0;t<this.boundaryIds_.length;t++)if(void 0!==this.boundaryIds_[t])return this.boundaryIds_[t][0];return 0},$.prototype.animateSelection_=function(e){void 0===this.fadeLevel&&(this.fadeLevel=0),void 0===this.animateId&&(this.animateId=0);var t=this.fadeLevel,n=e<0?t:10-t;if(n<=0)this.fadeLevel&&this.updateSelection_(1);else{var i=++this.animateId,a=this;r.repeatAndCleanup((function(t){a.animateId==i&&(a.fadeLevel+=e,0===a.fadeLevel?a.clearSelection():a.updateSelection_(a.fadeLevel/10))}),n,30,(function(){0!==a.fadeLevel&&e<0&&(a.fadeLevel=0,a.clearSelection())}))}},$.prototype.updateSelection_=function(e){var t;this.cascadeEvents_("select",{selectedRow:-1===this.lastRow_?void 0:this.lastRow_,selectedX:null===this.lastx_?void 0:this.lastx_,selectedPoints:this.selPoints_});var n=this.canvas_ctx_;if(this.getOption("highlightSeriesOpts")){n.clearRect(0,0,this.width_,this.height_);var i=1-this.getNumericOption("highlightSeriesBackgroundAlpha"),a=r.toRGB_(this.getOption("highlightSeriesBackgroundColor"));if(i){if(this.getBooleanOption("animateBackgroundFade")){if(void 0===e)return void this.animateSelection_(1);i*=e}n.fillStyle="rgba("+a.r+","+a.g+","+a.b+","+i+")",n.fillRect(0,0,this.width_,this.height_)}this.plotter_._renderLineChart(this.highlightSet_,n)}else if(this.previousVerticalX_>=0){var o=0,s=this.attr_("labels");for(t=1;t<s.length;t++){var l=this.getNumericOption("highlightCircleSize",s[t]);l>o&&(o=l)}var c=this.previousVerticalX_;n.clearRect(c-o-1,0,2*o+2,this.height_)}if(this.selPoints_.length>0){var u=this.selPoints_[0].canvasx;for(n.save(),t=0;t<this.selPoints_.length;t++){var h=this.selPoints_[t];if(!isNaN(h.canvasy)){var d=this.getNumericOption("highlightCircleSize",h.name),p=this.getFunctionOption("drawHighlightPointCallback",h.name),f=this.plotter_.colors[h.name];p||(p=r.Circles.DEFAULT),n.lineWidth=this.getNumericOption("strokeWidth",h.name),n.strokeStyle=f,n.fillStyle=f,p.call(this,this,h.name,n,u,h.canvasy,f,d,h.idx)}}n.restore(),this.previousVerticalX_=u}},$.prototype.setSelection=function(e,t,n,r){this.selPoints_=[];var i=!1;if(!1!==e&&e>=0){e!=this.lastRow_&&(i=!0),this.lastRow_=e;for(var a=0;a<this.layout_.points.length;++a){var o=this.layout_.points[a],s=e-this.getLeftBoundary_(a);if(s>=0&&s<o.length&&o[s].idx==e)null!==(c=o[s]).yval&&this.selPoints_.push(c);else for(var l=0;l<o.length;++l){var c;if((c=o[l]).idx==e){null!==c.yval&&this.selPoints_.push(c);break}}}}else this.lastRow_>=0&&(i=!0),this.lastRow_=-1;if(this.selPoints_.length?this.lastx_=this.selPoints_[0].xval:this.lastx_=null,void 0!==t&&(this.highlightSet_!==t&&(i=!0),this.highlightSet_=t),void 0!==n&&(this.lockedSet_=n),i&&(this.updateSelection_(void 0),r)){var u=this.getFunctionOption("highlightCallback");if(u){u.call(this,{},this.lastx_,this.selPoints_,this.lastRow_,this.highlightSet_)}}return i},$.prototype.mouseOut_=function(e){this.getFunctionOption("unhighlightCallback")&&this.getFunctionOption("unhighlightCallback").call(this,e),this.getBooleanOption("hideOverlayOnMouseOut")&&!this.lockedSet_&&this.clearSelection()},$.prototype.clearSelection=function(){this.cascadeEvents_("deselect",{}),this.lockedSet_=!1,this.fadeLevel?this.animateSelection_(-1):(this.canvas_ctx_.clearRect(0,0,this.width_,this.height_),this.fadeLevel=0,this.selPoints_=[],this.lastx_=null,this.lastRow_=-1,this.highlightSet_=null)},$.prototype.getSelection=function(){if(!this.selPoints_||this.selPoints_.length<1)return-1;for(var e=0;e<this.layout_.points.length;e++)for(var t=this.layout_.points[e],n=0;n<t.length;n++)if(t[n].x==this.selPoints_[0].x)return t[n].idx;return-1},$.prototype.getHighlightSeries=function(){return this.highlightSet_},$.prototype.isSeriesLocked=function(){return this.lockedSet_},$.prototype.loadedEvent_=function(e){this.rawData_=this.parseCSV_(e),this.cascadeDataDidUpdateEvent_(),this.predraw_()},$.prototype.addXTicks_=function(){var e;e=this.dateWindow_?[this.dateWindow_[0],this.dateWindow_[1]]:this.xAxisExtremes();var t=this.optionsViewForAxis_("x"),n=t("ticker")(e[0],e[1],this.plotter_.area.w,t,this);this.layout_.setXTicks(n)},$.prototype.getHandlerClass_=function(){return this.attr_("dataHandler")?this.attr_("dataHandler"):this.fractions_?this.getBooleanOption("errorBars")?R:T:this.getBooleanOption("customBars")?k:this.getBooleanOption("errorBars")?S:b},$.prototype.predraw_=function(){var e=new Date;this.dataHandler_=new(this.getHandlerClass_()),this.layout_.computePlotArea(),this.computeYAxes_(),this.is_initial_draw_||(this.canvas_ctx_.restore(),this.hidden_ctx_.restore()),this.canvas_ctx_.save(),this.hidden_ctx_.save(),this.plotter_=new s(this,this.hidden_,this.hidden_ctx_,this.layout_),this.createRollInterface_(),this.cascadeEvents_("predraw"),this.rolledSeries_=[null];for(var t=1;t<this.numColumns();t++){var n=this.dataHandler_.extractSeries(this.rawData_,t,this.attributes_);this.rollPeriod_>1&&(n=this.dataHandler_.rollingAverage(n,this.rollPeriod_,this.attributes_,t)),this.rolledSeries_.push(n)}this.drawGraph_();var r=new Date;this.drawingTimeMs_=r-e},$.PointType=void 0,$.stackPoints_=function(e,t,n,r){for(var i=null,a=null,o=null,s=-1,l=function(t){if(!(s>=t))for(var n=t;n<e.length;++n)if(o=null,!isNaN(e[n].yval)&&null!==e[n].yval){s=n,o=e[n];break}},c=0;c<e.length;++c){var u=e[c],h=u.xval;void 0===t[h]&&(t[h]=0);var d=u.yval;isNaN(d)||null===d?"none"==r?d=0:(l(c),d=a&&o&&"none"!=r?a.yval+(o.yval-a.yval)*((h-a.xval)/(o.xval-a.xval)):a&&"all"==r?a.yval:o&&"all"==r?o.yval:0):a=u;var p=t[h];i!=h&&(p+=d,t[h]=p),i=h,u.yval_stacked=p,p>n[1]&&(n[1]=p),p<n[0]&&(n[0]=p)}},$.prototype.gatherDatasets_=function(e,t){var n,r,i,a,o,s,l=[],c=[],u=[],h={};for(n=e.length-1;n>=1;n--)if(this.visibility()[n-1]){if(t){s=e[n];var d=t[0],p=t[1];for(i=null,a=null,r=0;r<s.length;r++)s[r][0]>=d&&null===i&&(i=r),s[r][0]<=p&&(a=r);null===i&&(i=0);for(var f=i,g=!0;g&&f>0;)g=null===s[--f][1];null===a&&(a=s.length-1);var v=a;for(g=!0;g&&v<s.length-1;)g=null===s[++v][1];f!==i&&(i=f),v!==a&&(a=v),l[n-1]=[i,a],s=s.slice(i,a+1)}else s=e[n],l[n-1]=[0,s.length-1];var y=this.attr_("labels")[n],m=this.dataHandler_.getExtremeYValues(s,t,this.getBooleanOption("stepPlot",y)),_=this.dataHandler_.seriesToPoints(s,y,l[n-1][0]);this.getBooleanOption("stackedGraph")&&(void 0===u[o=this.attributes_.axisForSeries(y)]&&(u[o]=[]),$.stackPoints_(_,u[o],m,this.getBooleanOption("stackedGraphNaNFill"))),h[y]=m,c[n]=_}return{points:c,extremes:h,boundaryIds:l}},$.prototype.drawGraph_=function(){var e=new Date,t=this.is_initial_draw_;this.is_initial_draw_=!1,this.layout_.removeAllDatasets(),this.setColors_(),this.attrs_.pointSize=.5*this.getNumericOption("highlightCircleSize");var n=this.gatherDatasets_(this.rolledSeries_,this.dateWindow_),r=n.points,i=n.extremes;this.boundaryIds_=n.boundaryIds,this.setIndexByName_={};for(var a=this.attr_("labels"),o=0,s=1;s<r.length;s++)this.visibility()[s-1]&&(this.layout_.addDataset(a[s],r[s]),this.datasetIndex_[s]=o++);for(s=0;s<a.length;s++)this.setIndexByName_[a[s]]=s;if(this.computeYAxisRanges_(i),this.layout_.setYAxes(this.axes_),this.addXTicks_(),this.layout_.evaluate(),this.renderGraph_(t),this.getStringOption("timingName")){var l=new Date;console.log(this.getStringOption("timingName")+" - drawGraph: "+(l-e)+"ms")}},$.prototype.renderGraph_=function(e){this.cascadeEvents_("clearChart"),this.plotter_.clear();const t=this.getFunctionOption("underlayCallback");t&&t.call(this,this.hidden_ctx_,this.layout_.getPlotArea(),this,this);var n={canvas:this.hidden_,drawingContext:this.hidden_ctx_};this.cascadeEvents_("willDrawChart",n),this.plotter_.render(),this.cascadeEvents_("didDrawChart",n),this.lastRow_=-1,this.canvas_.getContext("2d").clearRect(0,0,this.width_,this.height_);const r=this.getFunctionOption("drawCallback");if(null!==r&&r.call(this,this,e),e)for(this.readyFired_=!0;this.readyFns_.length>0;){this.readyFns_.pop()(this)}},$.prototype.computeYAxes_=function(){var e,t,n;for(this.axes_=[],e=0;e<this.attributes_.numAxes();e++)t={g:this},r.update(t,this.attributes_.axisOptions(e)),this.axes_[e]=t;for(e=0;e<this.axes_.length;e++)if(0===e)(n=(t=this.optionsViewForAxis_("y"+(e?"2":"")))("valueRange"))&&(this.axes_[e].valueRange=n);else{var i=this.user_attrs_.axes;i&&i.y2&&(n=i.y2.valueRange)&&(this.axes_[e].valueRange=n)}},$.prototype.numAxes=function(){return this.attributes_.numAxes()},$.prototype.axisPropertiesForSeries=function(e){return this.axes_[this.attributes_.axisForSeries(e)]},$.prototype.computeYAxisRanges_=function(e){for(var t,n,i,a,o,s=function(e){return isNaN(parseFloat(e))},l=this.attributes_.numAxes(),c=0;c<l;c++){var u=this.axes_[c],h=this.attributes_.getForAxis("logscale",c),d=this.attributes_.getForAxis("includeZero",c),p=this.attributes_.getForAxis("independentTicks",c);i=this.attributes_.seriesForAxis(c),t=!0,a=.1;const l=this.getNumericOption("yRangePad");if(null!==l&&(t=!1,a=l/this.plotter_.area.h),0===i.length)u.extremeRange=[0,1];else{for(var f,g,v=1/0,y=-1/0,m=0;m<i.length;m++)e.hasOwnProperty(i[m])&&(null!==(f=e[i[m]][0])&&(v=Math.min(f,v)),null!==(g=e[i[m]][1])&&(y=Math.max(g,y)));d&&!h&&(v>0&&(v=0),y<0&&(y=0)),v==1/0&&(v=0),y==-1/0&&(y=1),0===(n=y-v)&&(0!==y?n=Math.abs(y):(y=1,n=1));var _=y,x=v;t&&(h?(_=y+a*n,x=v):((x=v-a*n)<0&&v>=0&&(x=0),(_=y+a*n)>0&&y<=0&&(_=0))),u.extremeRange=[x,_]}if(u.valueRange){var b=s(u.valueRange[0])?u.extremeRange[0]:u.valueRange[0],w=s(u.valueRange[1])?u.extremeRange[1]:u.valueRange[1];u.computedValueRange=[b,w]}else u.computedValueRange=u.extremeRange;if(!t){if((b=u.computedValueRange[0])===(w=u.computedValueRange[1]))if(0===b)w=1;else{var O=Math.abs(b/10);b-=O,w+=O}if(h){var A=a/(2*a-1),S=(a-1)/(2*a-1);u.computedValueRange[0]=r.logRangeFraction(b,w,A),u.computedValueRange[1]=r.logRangeFraction(b,w,S)}else n=w-b,u.computedValueRange[0]=b-n*a,u.computedValueRange[1]=w+n*a}if(p){u.independentTicks=p;var C=(k=this.optionsViewForAxis_("y"+(c?"2":"")))("ticker");u.ticks=C(u.computedValueRange[0],u.computedValueRange[1],this.plotter_.area.h,k,this),o||(o=u)}}if(void 0===o)throw'Configuration Error: At least one axis has to have the "independentTicks" option activated.';for(c=0;c<l;c++){if(!(u=this.axes_[c]).independentTicks){C=(k=this.optionsViewForAxis_("y"+(c?"2":"")))("ticker");for(var k,P=o.ticks,T=o.computedValueRange[1]-o.computedValueRange[0],L=u.computedValueRange[1]-u.computedValueRange[0],R=[],E=0;E<P.length;E++){var D=(P[E].v-o.computedValueRange[0])/T,N=u.computedValueRange[0]+D*L;R.push(N)}u.ticks=C(u.computedValueRange[0],u.computedValueRange[1],this.plotter_.area.h,k,this,R)}}},$.prototype.detectTypeFromString_=function(e){var t=!1,n=e.indexOf("-");(n>0&&"e"!=e[n-1]&&"E"!=e[n-1]||e.indexOf("/")>=0||isNaN(parseFloat(e)))&&(t=!0),this.setXAxisOptions_(t)},$.prototype.setXAxisOptions_=function(e){e?(this.attrs_.xValueParser=r.dateParser,this.attrs_.axes.x.valueFormatter=r.dateValueFormatter,this.attrs_.axes.x.ticker=l.cc,this.attrs_.axes.x.axisLabelFormatter=r.dateAxisLabelFormatter):(this.attrs_.xValueParser=function(e){return parseFloat(e)},this.attrs_.axes.x.valueFormatter=function(e){return e},this.attrs_.axes.x.ticker=l.Dv,this.attrs_.axes.x.axisLabelFormatter=this.attrs_.axes.x.valueFormatter)},$.prototype.parseCSV_=function(e){var t,n,i=[],a=r.detectLineDelimiter(e),o=e.split(a||"\n"),s=this.getStringOption("delimiter");-1==o[0].indexOf(s)&&o[0].indexOf("\t")>=0&&(s="\t");var l=0;"labels"in this.user_attrs_||(l=1,this.attrs_.labels=o[0].split(s),this.attributes_.reparseSeries());for(var c,u=!1,h=this.attr_("labels").length,d=!1,p=l;p<o.length;p++){var f=o[p];if(p,0!==f.length&&"#"!=f[0]){var g=f.split(s);if(!(g.length<2)){var v=[];if(u||(this.detectTypeFromString_(g[0]),c=this.getFunctionOption("xValueParser"),u=!0),v[0]=c(g[0],this),this.fractions_)for(n=1;n<g.length;n++)2!=(t=g[n].split("/")).length?(console.error('Expected fractional "num/den" values in CSV data but found a value \''+g[n]+"' on line "+(1+p)+" ('"+f+"') which is not of this form."),v[n]=[0,0]):v[n]=[r.parseFloat_(t[0],p,f),r.parseFloat_(t[1],p,f)];else if(this.getBooleanOption("errorBars"))for(g.length%2!=1&&console.error("Expected alternating (value, stdev.) pairs in CSV data but line "+(1+p)+" has an odd number of values ("+(g.length-1)+"): '"+f+"'"),n=1;n<g.length;n+=2)v[(n+1)/2]=[r.parseFloat_(g[n],p,f),r.parseFloat_(g[n+1],p,f)];else if(this.getBooleanOption("customBars"))for(n=1;n<g.length;n++){var y=g[n];/^ *$/.test(y)?v[n]=[null,null,null]:3==(t=y.split(";")).length?v[n]=[r.parseFloat_(t[0],p,f),r.parseFloat_(t[1],p,f),r.parseFloat_(t[2],p,f)]:console.warn('When using customBars, values must be either blank or "low;center;high" tuples (got "'+y+'" on line '+(1+p)+")")}else for(n=1;n<g.length;n++)v[n]=r.parseFloat_(g[n],p,f);if(i.length>0&&v[0]<i[i.length-1][0]&&(d=!0),v.length!=h&&console.error("Number of columns in line "+p+" ("+v.length+") does not agree with number of labels ("+h+") "+f),0===p&&this.attr_("labels")){var m=!0;for(n=0;m&&n<v.length;n++)v[n]&&(m=!1);if(m){console.warn("The dygraphs 'labels' option is set, but the first row of CSV data ('"+f+"') appears to also contain labels. Will drop the CSV labels and use the option labels.");continue}}i.push(v)}}}return d&&(console.warn("CSV is out of order; order it correctly to speed loading."),i.sort((function(e,t){return e[0]-t[0]}))),i},$.prototype.parseArray_=function(e){if(0===e.length&&(e=[[0]]),0===e[0].length)return console.error("Data set cannot contain an empty row"),null;var t;if(function(e){const t=e[0],n=t[0];if("number"!==typeof n&&!r.isDateLike(n))throw new Error(`Expected number or date but got ${typeof n}: ${n}.`);for(let i=1;i<t.length;i++){const e=t[i];if(null!==e&&void 0!==e&&"number"!==typeof e&&!r.isArrayLike(e))throw new Error(`Expected number or array but got ${typeof e}: ${e}.`)}}(e),null===this.attr_("labels")){for(console.warn("Using default labels. Set labels explicitly via 'labels' in the options parameter"),this.attrs_.labels=["X"],t=1;t<e[0].length;t++)this.attrs_.labels.push("Y"+t);this.attributes_.reparseSeries()}else{var n=this.attr_("labels");if(n.length!=e[0].length)return console.error("Mismatch between number of labels ("+n+") and number of columns in array ("+e[0].length+")"),null}if(r.isDateLike(e[0][0])){this.attrs_.axes.x.valueFormatter=r.dateValueFormatter,this.attrs_.axes.x.ticker=l.cc,this.attrs_.axes.x.axisLabelFormatter=r.dateAxisLabelFormatter;var i=r.clone(e);for(t=0;t<e.length;t++){if(0===i[t].length)return console.error("Row "+(1+t)+" of data is empty"),null;if(null===i[t][0]||"function"!=typeof i[t][0].getTime||isNaN(i[t][0].getTime()))return console.error("x value in row "+(1+t)+" is not a Date"),null;i[t][0]=i[t][0].getTime()}return i}return this.attrs_.axes.x.valueFormatter=function(e){return e},this.attrs_.axes.x.ticker=l.Dv,this.attrs_.axes.x.axisLabelFormatter=r.numberAxisLabelFormatter,e},$.prototype.parseDataTable_=function(e){var t=function(e){var t=String.fromCharCode(65+e%26);for(e=Math.floor(e/26);e>0;)t=String.fromCharCode(65+(e-1)%26)+t.toLowerCase(),e=Math.floor((e-1)/26);return t},n=e.getNumberOfColumns(),i=e.getNumberOfRows(),a=e.getColumnType(0);if("date"==a||"datetime"==a)this.attrs_.xValueParser=r.dateParser,this.attrs_.axes.x.valueFormatter=r.dateValueFormatter,this.attrs_.axes.x.ticker=l.cc,this.attrs_.axes.x.axisLabelFormatter=r.dateAxisLabelFormatter;else{if("number"!=a)throw new Error("only 'date', 'datetime' and 'number' types are supported for column 1 of DataTable input (Got '"+a+"')");this.attrs_.xValueParser=function(e){return parseFloat(e)},this.attrs_.axes.x.valueFormatter=function(e){return e},this.attrs_.axes.x.ticker=l.Dv,this.attrs_.axes.x.axisLabelFormatter=this.attrs_.axes.x.valueFormatter}var o,s,c=[],u={},h=!1;for(o=1;o<n;o++){var d=e.getColumnType(o);if("number"==d)c.push(o);else{if("string"!=d||!this.getBooleanOption("displayAnnotations"))throw new Error("Only 'number' is supported as a dependent type with Gviz. 'string' is only supported if displayAnnotations is true");var p=c[c.length-1];u.hasOwnProperty(p)?u[p].push(o):u[p]=[o],h=!0}}var f=[e.getColumnLabel(0)];for(o=0;o<c.length;o++)f.push(e.getColumnLabel(c[o])),this.getBooleanOption("errorBars")&&(o+=1);this.attrs_.labels=f,n=f.length;var g=[],v=!1,y=[];for(o=0;o<i;o++){var m=[];if("undefined"!==typeof e.getValue(o,0)&&null!==e.getValue(o,0)){if("date"==a||"datetime"==a?m.push(e.getValue(o,0).getTime()):m.push(e.getValue(o,0)),this.getBooleanOption("errorBars"))for(s=0;s<n-1;s++)m.push([e.getValue(o,1+2*s),e.getValue(o,2+2*s)]);else{for(s=0;s<c.length;s++){var _=c[s];if(m.push(e.getValue(o,_)),h&&u.hasOwnProperty(_)&&null!==e.getValue(o,u[_][0])){var x={};x.series=e.getColumnLabel(_),x.xval=m[0],x.shortText=t(y.length),x.text="";for(var b=0;b<u[_].length;b++)b&&(x.text+="\n"),x.text+=e.getValue(o,u[_][b]);y.push(x)}}for(s=0;s<m.length;s++)isFinite(m[s])||(m[s]=null)}g.length>0&&m[0]<g[g.length-1][0]&&(v=!0),g.push(m)}else console.warn("Ignoring row "+o+" of DataTable because of undefined or null first column.")}v&&(console.warn("DataTable is out of order; order it correctly to speed loading."),g.sort((function(e,t){return e[0]-t[0]}))),this.rawData_=g,y.length>0&&this.setAnnotations(y,!0),this.attributes_.reparseSeries()},$.prototype.cascadeDataDidUpdateEvent_=function(){this.cascadeEvents_("dataDidUpdate",{})},$.prototype.start_=function(){var e=this.file_;"function"==typeof e&&(e=e());const t=r.typeArrayLike(e);if("array"==t)this.rawData_=this.parseArray_(e),this.cascadeDataDidUpdateEvent_(),this.predraw_();else if("object"==t&&"function"==typeof e.getColumnRange)this.parseDataTable_(e),this.cascadeDataDidUpdateEvent_(),this.predraw_();else if("string"==t){if(r.detectLineDelimiter(e))this.loadedEvent_(e);else{var n;n=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");var i=this;n.onreadystatechange=function(){4==n.readyState&&(200!==n.status&&0!==n.status||i.loadedEvent_(n.responseText))},n.open("GET",e,!0),n.send(null)}}else console.error("Unknown data format: "+t)},$.prototype.updateOptions=function(e,t){"undefined"==typeof t&&(t=!1);var n=e.file,i=$.copyUserAttrs_(e),a=this.attributes_.numAxes();"rollPeriod"in i&&(this.rollPeriod_=i.rollPeriod),"dateWindow"in i&&(this.dateWindow_=i.dateWindow);var o=r.isPixelChangingOptionList(this.attr_("labels"),i);r.updateDeep(this.user_attrs_,i),this.attributes_.reparseSeries(),a<this.attributes_.numAxes()&&this.plotter_.clear(),n?(this.cascadeEvents_("dataWillUpdate",{}),this.file_=n,t||this.start_()):t||(o?this.predraw_():this.renderGraph_(!1))},$.copyUserAttrs_=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&"file"!=n&&e.hasOwnProperty(n)&&(t[n]=e[n]);return t},$.prototype.resize=function(e,t){if(!this.resize_lock){this.resize_lock=!0,null===e!=(null===t)&&(console.warn("Dygraph.resize() should be called with zero parameters or two non-NULL parameters. Pretending it was zero."),e=t=null);var n=this.width_,r=this.height_;e?(this.maindiv_.style.width=e+"px",this.maindiv_.style.height=t+"px",this.width_=e,this.height_=t):(this.width_=this.maindiv_.clientWidth,this.height_=this.maindiv_.clientHeight),n==this.width_&&r==this.height_||(this.resizeElements_(),this.predraw_()),this.resize_lock=!1}},$.prototype.adjustRoll=function(e){this.rollPeriod_=e,this.predraw_()},$.prototype.visibility=function(){for(this.getOption("visibility")||(this.attrs_.visibility=[]);this.getOption("visibility").length<this.numColumns()-1;)this.attrs_.visibility.push(!0);return this.getOption("visibility")},$.prototype.setVisibility=function(e,t){var n=this.visibility(),r=!1;if(Array.isArray(e)||(null!==e&&"object"===typeof e?r=!0:e=[e]),r)for(var i in e)e.hasOwnProperty(i)&&(i<0||i>=n.length?console.warn("Invalid series number in setVisibility: "+i):n[i]=e[i]);else for(i=0;i<e.length;i++)"boolean"===typeof e[i]?i>=n.length?console.warn("Invalid series number in setVisibility: "+i):n[i]=e[i]:e[i]<0||e[i]>=n.length?console.warn("Invalid series number in setVisibility: "+e[i]):n[e[i]]=t;this.predraw_()},$.prototype.size=function(){return{width:this.width_,height:this.height_}},$.prototype.setAnnotations=function(e,t){this.annotations_=e,this.layout_?(this.layout_.setAnnotations(this.annotations_),t||this.predraw_()):console.warn("Tried to setAnnotations before dygraph was ready. Try setting them in a ready() block. See dygraphs.com/tests/annotation.html")},$.prototype.annotations=function(){return this.annotations_},$.prototype.getLabels=function(){var e=this.attr_("labels");return e?e.slice():null},$.prototype.indexFromSetName=function(e){return this.setIndexByName_[e]},$.prototype.getRowForX=function(e){for(var t=0,n=this.numRows()-1;t<=n;){var r=n+t>>1,i=this.getValue(r,0);if(i<e)t=r+1;else if(i>e)n=r-1;else{if(t==r)return r;n=r}}return null},$.prototype.ready=function(e){this.is_initial_draw_?this.readyFns_.push(e):e.call(this,this)},$.prototype.addAndTrackEvent=function(e,t,n){r.addEvent(e,t,n),this.registeredEvents_.push({elem:e,type:t,fn:n})},$.prototype.removeTrackedEvents_=function(){if(this.registeredEvents_)for(var e=0;e<this.registeredEvents_.length;e++){var t=this.registeredEvents_[e];r.removeEvent(t.elem,t.type,t.fn)}this.registeredEvents_=[]},$.PLUGINS=[X,M,Z,j,D,U],$.GVizChart=W,$.DASHED_LINE=r.DASHED_LINE,$.DOT_DASH_LINE=r.DOT_DASH_LINE,$.dateAxisLabelFormatter=r.dateAxisLabelFormatter,$.toRGB_=r.toRGB_,$.findPos=r.findPos,$.pageX=r.pageX,$.pageY=r.pageY,$.dateString_=r.dateString_,$.defaultInteractionModel=h.defaultModel,$.nonInteractiveModel=$.nonInteractiveModel_=h.nonInteractiveModel_,$.Circles=r.Circles,$.Plugins={Legend:X,Axes:M,Annotations:D,ChartLabels:j,Grid:U,RangeSelector:Z},$.DataHandlers={DefaultHandler:b,BarsHandler:O,CustomBarsHandler:k,DefaultFractionHandler:T,ErrorBarsHandler:S,FractionsBarsHandler:R},$.startPan=h.startPan,$.startZoom=h.startZoom,$.movePan=h.movePan,$.moveZoom=h.moveZoom,$.endPan=h.endPan,$.endZoom=h.endZoom,$.numericLinearTicks=l.JL,$.numericTicks=l.Dv,$.dateTicker=l.cc,$.Granularity=l.He,$.getDateAxis=l.XX,$.floatFormat=r.floatFormat,r.setupDOMready_($);var Q=$},86929:function(e,t,n){!function(){"use strict";var e;function t(e,t,n,r,i){var a=void 0!==r?r:1/3,o=i||!1;if(!n)return[t.x,t.y,null,null];var s=(1-a)*t.x+a*e.x,l=(1-a)*t.y+a*e.y,c=(1-a)*t.x+a*n.x,u=(1-a)*t.y+a*n.y;if(s!=c){var h=t.y-u-(t.x-c)*(l-u)/(s-c);l+=h,u+=h}return o||(l>e.y&&l>t.y?(l=Math.max(e.y,t.y),u=2*t.y-l):l<e.y&&l<t.y&&(l=Math.min(e.y,t.y),u=2*t.y-l),u>t.y&&u>n.y?(u=Math.max(t.y,n.y),l=2*t.y-u):u<t.y&&u<n.y&&(u=Math.min(t.y,n.y),l=2*t.y-u)),[s,l,c,u]}function r(e){return!!e&&!isNaN(e)}function i(e){var n=e.drawingContext,a=e.points;n.beginPath(),n.moveTo(a[0].canvasx,a[0].canvasy);for(var o=a[0].canvasx,s=a[0].canvasy,l=1;l<a.length;l++){var c=a[l-1],u=a[l],h=a[l+1];if(c=c&&r(c.canvasy)?c:null,u=u&&r(u.canvasy)?u:null,h=h&&r(h.canvasy)?h:null,c&&u){var d=t({x:c.canvasx,y:c.canvasy},{x:u.canvasx,y:u.canvasy},h&&{x:h.canvasx,y:h.canvasy},i.smoothing);o=null!==o?o:c.canvasx,s=null!==s?s:c.canvasy,n.bezierCurveTo(o,s,d[0],d[1],u.canvasx,u.canvasy),o=d[2],s=d[3]}else u?(n.moveTo(u.canvasx,u.canvasy),o=u.canvasx,s=u.canvasy):o=s=null}n.stroke()}window.Dygraph?e=window.Dygraph:"undefined"===typeof(e=n(95984)).NAME&&"undefined"!==typeof e.default&&(e=e.default),i.smoothing=1/3,i._getControlPoints=t,window.smoothPlotter=i,e.smoothPlotter=i,e._require.add("dygraphs/src/extras/smooth-plotter.js",{})}()},26712:function(e,t){var n,r;r=this,void 0===(n=function(){return r.EasyPieChart=function(){var e=function(e,t){var n,r=document.createElement("canvas");e.appendChild(r),"object"===typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(r);var i=r.getContext("2d");r.width=r.height=t.size;var a=1;window.devicePixelRatio>1&&(a=window.devicePixelRatio,r.style.width=r.style.height=[t.size,"px"].join(""),r.width=r.height=t.size*a,i.scale(a,a)),i.translate(t.size/2,t.size/2),i.rotate((t.rotate/180-.5)*Math.PI);var o=(t.size-t.lineWidth)/2;t.scaleColor&&t.scaleLength&&(o-=t.scaleLength+2),Date.now=Date.now||function(){return+new Date};var s=function(e,t,n){var r=(n=Math.min(Math.max(-1,n||0),1))<=0;i.beginPath(),i.arc(0,0,o,0,2*Math.PI*n,r),i.strokeStyle=e,i.lineWidth=t,i.stroke()},l=function(){var e,n;i.lineWidth=1,i.fillStyle=t.scaleColor,i.save();for(var r=24;r>0;--r)r%6===0?(n=t.scaleLength,e=0):(n=.6*t.scaleLength,e=t.scaleLength-n),i.fillRect(-t.size/2+e,0,n,1),i.rotate(Math.PI/12);i.restore()},c=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},u=function(){t.scaleColor&&l(),t.trackColor&&s(t.trackColor,t.trackWidth||t.lineWidth,1)};this.getCanvas=function(){return r},this.getCtx=function(){return i},this.clear=function(){i.clearRect(t.size/-2,t.size/-2,t.size,t.size)},this.draw=function(e){var r;t.scaleColor||t.trackColor?i.getImageData&&i.putImageData?n?i.putImageData(n,0,0):(u(),n=i.getImageData(0,0,t.size*a,t.size*a)):(this.clear(),u()):this.clear(),i.lineCap=t.lineCap,r="function"===typeof t.barColor?t.barColor(e):t.barColor,s(r,t.lineWidth,e/100)}.bind(this),this.animate=function(e,n){var r=Date.now();t.onStart(e,n);var i=function(){var a=Math.min(Date.now()-r,t.animate.duration),o=t.easing(this,a,e,n-e,t.animate.duration);this.draw(o),t.onStep(e,n,o),a>=t.animate.duration?t.onStop(e,n):c(i)}.bind(this);c(i)}.bind(this)};return function(t,n){var r={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,trackWidth:void 0,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t+n:-r/2*(--t*(t-2)-1)+n},onStart:function(e,t){},onStep:function(e,t,n){},onStop:function(e,t){}};if("undefined"!==typeof e)r.renderer=e;else{if("undefined"===typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");r.renderer=SVGRenderer}var i={},a=0,o=function(){for(var e in this.el=t,this.options=i,r)r.hasOwnProperty(e)&&(i[e]=n&&"undefined"!==typeof n[e]?n[e]:r[e],"function"===typeof i[e]&&(i[e]=i[e].bind(this)));"string"===typeof i.easing&&"undefined"!==typeof jQuery&&jQuery.isFunction(jQuery.easing[i.easing])?i.easing=jQuery.easing[i.easing]:i.easing=r.easing,"number"===typeof i.animate&&(i.animate={duration:i.animate,enabled:!0}),"boolean"!==typeof i.animate||i.animate||(i.animate={duration:1e3,enabled:i.animate}),this.renderer=new i.renderer(t,i),this.renderer.draw(a),t.dataset&&t.dataset.percent?this.update(parseFloat(t.dataset.percent)):t.getAttribute&&t.getAttribute("data-percent")&&this.update(parseFloat(t.getAttribute("data-percent")))}.bind(this);this.update=function(e){return e=parseFloat(e),i.animate.enabled?this.renderer.animate(a,e):this.renderer.draw(e),a=e,this}.bind(this),this.disableAnimation=function(){return i.animate.enabled=!1,this},this.enableAnimation=function(){return i.animate.enabled=!0,this},o()}}()}.apply(t,[]))||(e.exports=n)},92806:function(e){"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),a=0;a<r.length;a++){var o=r[a],s=e[o];(i?-1!==t.indexOf(o):t(o,s,e))&&(n[o]=s)}return n}}}]);
\ No newline at end of file diff --git a/web/gui/v2/3495.b3c7dc78377628c8115a.js.LICENSE.txt b/web/gui/v2/8099.4838cb5caf85574b5c9d.js.LICENSE.txt index 1d685db67..1d685db67 100644 --- a/web/gui/v2/3495.b3c7dc78377628c8115a.js.LICENSE.txt +++ b/web/gui/v2/8099.4838cb5caf85574b5c9d.js.LICENSE.txt |