!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=21)}([function(e,t,n){var i;
/*!
 * jQuery JavaScript Library v3.6.0
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2021-03-02T17:08Z
 */!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(n,r){"use strict";var o=[],A=Object.getPrototypeOf,a=o.slice,s=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},l=o.push,c=o.indexOf,u={},d=u.toString,f=u.hasOwnProperty,h=f.toString,p=h.call(Object),g={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},v=function(e){return null!=e&&e===e.window},y=n.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function x(e,t,n){var i,r,o=(n=n||y).createElement("script");if(o.text=e,t)for(i in b)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[d.call(e)]||"object":typeof e}var _=function(e,t){return new _.fn.init(e,t)};function k(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}_.fn=_.prototype={jquery:"3.6.0",constructor:_,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=_.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return _.each(this,e)},map:function(e){return this.pushStack(_.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(_.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:o.sort,splice:o.splice},_.extend=_.fn.extend=function(){var e,t,n,i,r,o,A=arguments[0]||{},a=1,s=arguments.length,l=!1;for("boolean"==typeof A&&(l=A,A=arguments[a]||{},a++),"object"==typeof A||m(A)||(A={}),a===s&&(A=this,a--);a<s;a++)if(null!=(e=arguments[a]))for(t in e)i=e[t],"__proto__"!==t&&A!==i&&(l&&i&&(_.isPlainObject(i)||(r=Array.isArray(i)))?(n=A[t],o=r&&!Array.isArray(n)?[]:r||_.isPlainObject(n)?n:{},r=!1,A[t]=_.extend(l,o,i)):void 0!==i&&(A[t]=i));return A},_.extend({expando:"jQuery"+("3.6.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==d.call(e))&&(!(t=A(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&h.call(n)===p)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){x(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(k(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(k(Object(e))?_.merge(n,"string"==typeof e?[e]:e):l.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:c.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,A=!n;r<o;r++)!t(e[r],r)!==A&&i.push(e[r]);return i},map:function(e,t,n){var i,r,o=0,A=[];if(k(e))for(i=e.length;o<i;o++)null!=(r=t(e[o],o,n))&&A.push(r);else for(o in e)null!=(r=t(e[o],o,n))&&A.push(r);return s(A)},guid:1,support:g}),"function"==typeof Symbol&&(_.fn[Symbol.iterator]=o[Symbol.iterator]),_.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){u["[object "+t+"]"]=t.toLowerCase()}));var S=
/*!
 * Sizzle CSS Selector Engine v2.3.6
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://js.foundation/
 *
 * Date: 2021-02-16
 */
function(e){var t,n,i,r,o,A,a,s,l,c,u,d,f,h,p,g,m,v,y,b="sizzle"+1*new Date,x=e.document,w=0,_=0,k=se(),S=se(),T=se(),M=se(),C=function(e,t){return e===t&&(u=!0),0},D={}.hasOwnProperty,P=[],E=P.pop,O=P.push,I=P.push,N=P.slice,F=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",j="(?:\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",z="\\["+R+"*("+j+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+R+"*\\]",B=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",W=new RegExp(R+"+","g"),H=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),V=new RegExp("^"+R+"*,"+R+"*"),Y=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),q=new RegExp(R+"|>"),U=new RegExp(B),Q=new RegExp("^"+j+"$"),X={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){d()},Ae=be((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{I.apply(P=N.call(x.childNodes),x.childNodes),P[x.childNodes.length].nodeType}catch(e){I={apply:P.length?function(e,t){O.apply(e,N.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function ae(e,t,i,r){var o,a,l,c,u,h,m,v=t&&t.ownerDocument,x=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return i;if(!r&&(d(t),t=t||f,p)){if(11!==x&&(u=$.exec(e)))if(o=u[1]){if(9===x){if(!(l=t.getElementById(o)))return i;if(l.id===o)return i.push(l),i}else if(v&&(l=v.getElementById(o))&&y(t,l)&&l.id===o)return i.push(l),i}else{if(u[2])return I.apply(i,t.getElementsByTagName(e)),i;if((o=u[3])&&n.getElementsByClassName&&t.getElementsByClassName)return I.apply(i,t.getElementsByClassName(o)),i}if(n.qsa&&!M[e+" "]&&(!g||!g.test(e))&&(1!==x||"object"!==t.nodeName.toLowerCase())){if(m=e,v=t,1===x&&(q.test(e)||Y.test(e))){for((v=ee.test(e)&&me(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(ie,re):t.setAttribute("id",c=b)),a=(h=A(e)).length;a--;)h[a]=(c?"#"+c:":scope")+" "+ye(h[a]);m=h.join(",")}try{return I.apply(i,v.querySelectorAll(m)),i}catch(t){M(e,!0)}finally{c===b&&t.removeAttribute("id")}}}return s(e.replace(H,"$1"),t,i,r)}function se(){var e=[];return function t(n,r){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function le(e){return e[b]=!0,e}function ce(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=t}function de(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function pe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return le((function(t){return t=+t,le((function(n,i){for(var r,o=e([],n.length,t),A=o.length;A--;)n[r=o[A]]&&(n[r]=!(i[r]=n[r]))}))}))}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ae.support={},o=ae.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!G.test(t||n&&n.nodeName||"HTML")},d=ae.setDocument=function(e){var t,r,A=e?e.ownerDocument||e:x;return A!=f&&9===A.nodeType&&A.documentElement?(h=(f=A).documentElement,p=!o(f),x!=f&&(r=f.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",oe,!1):r.attachEvent&&r.attachEvent("onunload",oe)),n.scope=ce((function(e){return h.appendChild(e).appendChild(f.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(f.getElementsByClassName),n.getById=ce((function(e){return h.appendChild(e).id=b,!f.getElementsByName||!f.getElementsByName(b).length})),n.getById?(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&p){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&p){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&p)return t.getElementsByClassName(e)},m=[],g=[],(n.qsa=J.test(f.querySelectorAll))&&(ce((function(e){var t;h.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+R+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+R+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+b+"-]").length||g.push("~="),(t=f.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+R+"*name"+R+"*="+R+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ce((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+R+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=J.test(v=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),m.push("!=",B)})),g=g.length&&new RegExp(g.join("|")),m=m.length&&new RegExp(m.join("|")),t=J.test(h.compareDocumentPosition),y=t||J.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},C=t?function(e,t){if(e===t)return u=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e==f||e.ownerDocument==x&&y(x,e)?-1:t==f||t.ownerDocument==x&&y(x,t)?1:c?F(c,e)-F(c,t):0:4&i?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,A=[e],a=[t];if(!r||!o)return e==f?-1:t==f?1:r?-1:o?1:c?F(c,e)-F(c,t):0;if(r===o)return de(e,t);for(n=e;n=n.parentNode;)A.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;A[i]===a[i];)i++;return i?de(A[i],a[i]):A[i]==x?-1:a[i]==x?1:0},f):f},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(d(e),n.matchesSelector&&p&&!M[t+" "]&&(!m||!m.test(t))&&(!g||!g.test(t)))try{var i=v.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){M(t,!0)}return ae(t,f,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!=f&&d(e),y(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!=f&&d(e);var r=i.attrHandle[t.toLowerCase()],o=r&&D.call(i.attrHandle,t.toLowerCase())?r(e,t,!p):void 0;return void 0!==o?o:n.attributes||!p?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},ae.escape=function(e){return(e+"").replace(ie,re)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,i=[],r=0,o=0;if(u=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(C),u){for(;t=e[o++];)t===e[o]&&(r=i.push(o));for(;r--;)e.splice(i[r],1)}return c=null,e},r=ae.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=r(t);return n},(i=ae.selectors={cacheLength:50,createPseudo:le,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&U.test(n)&&(t=A(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return t||(t=new RegExp("(^|"+R+")"+e+"("+R+"|$)"))&&k(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var r=ae.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(W," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),A="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,s){var l,c,u,d,f,h,p=o!==A?"nextSibling":"previousSibling",g=t.parentNode,m=a&&t.nodeName.toLowerCase(),v=!s&&!a,y=!1;if(g){if(o){for(;p;){for(d=t;d=d[p];)if(a?d.nodeName.toLowerCase()===m:1===d.nodeType)return!1;h=p="only"===e&&!h&&"nextSibling"}return!0}if(h=[A?g.firstChild:g.lastChild],A&&v){for(y=(f=(l=(c=(u=(d=g)[b]||(d[b]={}))[d.uniqueID]||(u[d.uniqueID]={}))[e]||[])[0]===w&&l[1])&&l[2],d=f&&g.childNodes[f];d=++f&&d&&d[p]||(y=f=0)||h.pop();)if(1===d.nodeType&&++y&&d===t){c[e]=[w,f,y];break}}else if(v&&(y=f=(l=(c=(u=(d=t)[b]||(d[b]={}))[d.uniqueID]||(u[d.uniqueID]={}))[e]||[])[0]===w&&l[1]),!1===y)for(;(d=++f&&d&&d[p]||(y=f=0)||h.pop())&&((a?d.nodeName.toLowerCase()!==m:1!==d.nodeType)||!++y||(v&&((c=(u=d[b]||(d[b]={}))[d.uniqueID]||(u[d.uniqueID]={}))[e]=[w,y]),d!==t)););return(y-=r)===i||y%i==0&&y/i>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?le((function(e,n){for(var i,o=r(e,t),A=o.length;A--;)e[i=F(e,o[A])]=!(n[i]=o[A])})):function(e){return r(e,0,n)}):r}},pseudos:{not:le((function(e){var t=[],n=[],i=a(e.replace(H,"$1"));return i[b]?le((function(e,t,n,r){for(var o,A=i(e,null,r,[]),a=e.length;a--;)(o=A[a])&&(e[a]=!(t[a]=o))})):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}})),has:le((function(e){return function(t){return ae(e,t).length>0}})),contains:le((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||r(t)).indexOf(e)>-1}})),lang:le((function(e){return Q.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=p?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:pe(!1),disabled:pe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return Z.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,n){return[n<0?n+t:n]})),even:ge((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ge((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ge((function(e,t,n){for(var i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:ge((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=fe(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=he(t);function ve(){}function ye(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function be(e,t,n){var i=t.dir,r=t.next,o=r||i,A=n&&"parentNode"===o,a=_++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||A)return e(t,n,r);return!1}:function(t,n,s){var l,c,u,d=[w,a];if(s){for(;t=t[i];)if((1===t.nodeType||A)&&e(t,n,s))return!0}else for(;t=t[i];)if(1===t.nodeType||A)if(c=(u=t[b]||(t[b]={}))[t.uniqueID]||(u[t.uniqueID]={}),r&&r===t.nodeName.toLowerCase())t=t[i]||t;else{if((l=c[o])&&l[0]===w&&l[1]===a)return d[2]=l[2];if(c[o]=d,d[2]=e(t,n,s))return!0}return!1}}function xe(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function we(e,t,n,i,r){for(var o,A=[],a=0,s=e.length,l=null!=t;a<s;a++)(o=e[a])&&(n&&!n(o,i,r)||(A.push(o),l&&t.push(a)));return A}function _e(e,t,n,i,r,o){return i&&!i[b]&&(i=_e(i)),r&&!r[b]&&(r=_e(r,o)),le((function(o,A,a,s){var l,c,u,d=[],f=[],h=A.length,p=o||function(e,t,n){for(var i=0,r=t.length;i<r;i++)ae(e,t[i],n);return n}(t||"*",a.nodeType?[a]:a,[]),g=!e||!o&&t?p:we(p,d,e,a,s),m=n?r||(o?e:h||i)?[]:A:g;if(n&&n(g,m,a,s),i)for(l=we(m,f),i(l,[],a,s),c=l.length;c--;)(u=l[c])&&(m[f[c]]=!(g[f[c]]=u));if(o){if(r||e){if(r){for(l=[],c=m.length;c--;)(u=m[c])&&l.push(g[c]=u);r(null,m=[],l,s)}for(c=m.length;c--;)(u=m[c])&&(l=r?F(o,u):d[c])>-1&&(o[l]=!(A[l]=u))}}else m=we(m===A?m.splice(h,m.length):m),r?r(null,A,m,s):I.apply(A,m)}))}function ke(e){for(var t,n,r,o=e.length,A=i.relative[e[0].type],a=A||i.relative[" "],s=A?1:0,c=be((function(e){return e===t}),a,!0),u=be((function(e){return F(t,e)>-1}),a,!0),d=[function(e,n,i){var r=!A&&(i||n!==l)||((t=n).nodeType?c(e,n,i):u(e,n,i));return t=null,r}];s<o;s++)if(n=i.relative[e[s].type])d=[be(xe(d),n)];else{if((n=i.filter[e[s].type].apply(null,e[s].matches))[b]){for(r=++s;r<o&&!i.relative[e[r].type];r++);return _e(s>1&&xe(d),s>1&&ye(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(H,"$1"),n,s<r&&ke(e.slice(s,r)),r<o&&ke(e=e.slice(r)),r<o&&ye(e))}d.push(n)}return xe(d)}return ve.prototype=i.filters=i.pseudos,i.setFilters=new ve,A=ae.tokenize=function(e,t){var n,r,o,A,a,s,l,c=S[e+" "];if(c)return t?0:c.slice(0);for(a=e,s=[],l=i.preFilter;a;){for(A in n&&!(r=V.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(o=[])),n=!1,(r=Y.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(H," ")}),a=a.slice(n.length)),i.filter)!(r=X[A].exec(a))||l[A]&&!(r=l[A](r))||(n=r.shift(),o.push({value:n,type:A,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ae.error(e):S(e,s).slice(0)},a=ae.compile=function(e,t){var n,r=[],o=[],a=T[e+" "];if(!a){for(t||(t=A(e)),n=t.length;n--;)(a=ke(t[n]))[b]?r.push(a):o.push(a);(a=T(e,function(e,t){var n=t.length>0,r=e.length>0,o=function(o,A,a,s,c){var u,h,g,m=0,v="0",y=o&&[],b=[],x=l,_=o||r&&i.find.TAG("*",c),k=w+=null==x?1:Math.random()||.1,S=_.length;for(c&&(l=A==f||A||c);v!==S&&null!=(u=_[v]);v++){if(r&&u){for(h=0,A||u.ownerDocument==f||(d(u),a=!p);g=e[h++];)if(g(u,A||f,a)){s.push(u);break}c&&(w=k)}n&&((u=!g&&u)&&m--,o&&y.push(u))}if(m+=v,n&&v!==m){for(h=0;g=t[h++];)g(y,b,A,a);if(o){if(m>0)for(;v--;)y[v]||b[v]||(b[v]=E.call(s));b=we(b)}I.apply(s,b),c&&!o&&b.length>0&&m+t.length>1&&ae.uniqueSort(s)}return c&&(w=k,l=x),y};return n?le(o):o}(o,r))).selector=e}return a},s=ae.select=function(e,t,n,r){var o,s,l,c,u,d="function"==typeof e&&e,f=!r&&A(e=d.selector||e);if(n=n||[],1===f.length){if((s=f[0]=f[0].slice(0)).length>2&&"ID"===(l=s[0]).type&&9===t.nodeType&&p&&i.relative[s[1].type]){if(!(t=(i.find.ID(l.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(o=X.needsContext.test(e)?0:s.length;o--&&(l=s[o],!i.relative[c=l.type]);)if((u=i.find[c])&&(r=u(l.matches[0].replace(te,ne),ee.test(s[0].type)&&me(t.parentNode)||t))){if(s.splice(o,1),!(e=r.length&&ye(s)))return I.apply(n,r),n;break}}return(d||a(e,f))(r,t,!p,n,!t||ee.test(e)&&me(t.parentNode)||t),n},n.sortStable=b.split("").sort(C).join("")===b,n.detectDuplicates=!!u,d(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))})),ce((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||ue("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||ue("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||ue(L,(function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null})),ae}(n);_.find=S,_.expr=S.selectors,_.expr[":"]=_.expr.pseudos,_.uniqueSort=_.unique=S.uniqueSort,_.text=S.getText,_.isXMLDoc=S.isXML,_.contains=S.contains,_.escapeSelector=S.escape;var T=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&_(e).is(n))break;i.push(e)}return i},M=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},C=_.expr.match.needsContext;function D(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var P=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function E(e,t,n){return m(t)?_.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?_.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?_.grep(e,(function(e){return c.call(t,e)>-1!==n})):_.filter(t,e,n)}_.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?_.find.matchesSelector(i,e)?[i]:[]:_.find.matches(e,_.grep(t,(function(e){return 1===e.nodeType})))},_.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(_(e).filter((function(){for(t=0;t<i;t++)if(_.contains(r[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)_.find(e,r[t],n);return i>1?_.uniqueSort(n):n},filter:function(e){return this.pushStack(E(this,e||[],!1))},not:function(e){return this.pushStack(E(this,e||[],!0))},is:function(e){return!!E(this,"string"==typeof e&&C.test(e)?_(e):e||[],!1).length}});var O,I=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||O,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:I.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof _?t[0]:t,_.merge(this,_.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),P.test(i[1])&&_.isPlainObject(t))for(i in t)m(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=y.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(_):_.makeArray(e,this)}).prototype=_.fn,O=_(y);var N=/^(?:parents|prev(?:Until|All))/,F={children:!0,contents:!0,next:!0,prev:!0};function L(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}_.fn.extend({has:function(e){var t=_(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(_.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,r=this.length,o=[],A="string"!=typeof e&&_(e);if(!C.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(A?A.index(n)>-1:1===n.nodeType&&_.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?_.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?c.call(_(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),_.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return L(e,"nextSibling")},prev:function(e){return L(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return M((e.parentNode||{}).firstChild,e)},children:function(e){return M(e.firstChild)},contents:function(e){return null!=e.contentDocument&&A(e.contentDocument)?e.contentDocument:(D(e,"template")&&(e=e.content||e),_.merge([],e.childNodes))}},(function(e,t){_.fn[e]=function(n,i){var r=_.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=_.filter(i,r)),this.length>1&&(F[e]||_.uniqueSort(r),N.test(e)&&r.reverse()),this.pushStack(r)}}));var R=/[^\x20\t\r\n\f]+/g;function j(e){return e}function z(e){throw e}function B(e,t,n,i){var r;try{e&&m(r=e.promise)?r.call(e).done(t).fail(n):e&&m(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}_.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return _.each(e.match(R)||[],(function(e,n){t[n]=!0})),t}(e):_.extend({},e);var t,n,i,r,o=[],A=[],a=-1,s=function(){for(r=r||e.once,i=t=!0;A.length;a=-1)for(n=A.shift();++a<o.length;)!1===o[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=o.length,n=!1);e.memory||(n=!1),t=!1,r&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(a=o.length-1,A.push(n)),function t(n){_.each(n,(function(n,i){m(i)?e.unique&&l.has(i)||o.push(i):i&&i.length&&"string"!==w(i)&&t(i)}))}(arguments),n&&!t&&s()),this},remove:function(){return _.each(arguments,(function(e,t){for(var n;(n=_.inArray(t,o,n))>-1;)o.splice(n,1),n<=a&&a--})),this},has:function(e){return e?_.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=A=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=A=[],n||t||(o=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],A.push(n),t||s()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!i}};return l},_.extend({Deferred:function(e){var t=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return _.Deferred((function(n){_.each(t,(function(t,i){var r=m(e[i[4]])&&e[i[4]];o[i[1]]((function(){var e=r&&r.apply(this,arguments);e&&m(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(e,i,r){var o=0;function A(e,t,i,r){return function(){var a=this,s=arguments,l=function(){var n,l;if(!(e<o)){if((n=i.apply(a,s))===t.promise())throw new TypeError("Thenable self-resolution");l=n&&("object"==typeof n||"function"==typeof n)&&n.then,m(l)?r?l.call(n,A(o,t,j,r),A(o,t,z,r)):(o++,l.call(n,A(o,t,j,r),A(o,t,z,r),A(o,t,j,t.notifyWith))):(i!==j&&(a=void 0,s=[n]),(r||t.resolveWith)(a,s))}},c=r?l:function(){try{l()}catch(n){_.Deferred.exceptionHook&&_.Deferred.exceptionHook(n,c.stackTrace),e+1>=o&&(i!==z&&(a=void 0,s=[n]),t.rejectWith(a,s))}};e?c():(_.Deferred.getStackHook&&(c.stackTrace=_.Deferred.getStackHook()),n.setTimeout(c))}}return _.Deferred((function(n){t[0][3].add(A(0,n,m(r)?r:j,n.notifyWith)),t[1][3].add(A(0,n,m(e)?e:j)),t[2][3].add(A(0,n,m(i)?i:z))})).promise()},promise:function(e){return null!=e?_.extend(e,r):r}},o={};return _.each(t,(function(e,n){var A=n[2],a=n[5];r[n[1]]=A.add,a&&A.add((function(){i=a}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),A.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=A.fireWith})),r.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,i=Array(n),r=a.call(arguments),o=_.Deferred(),A=function(e){return function(n){i[e]=this,r[e]=arguments.length>1?a.call(arguments):n,--t||o.resolveWith(i,r)}};if(t<=1&&(B(e,o.done(A(n)).resolve,o.reject,!t),"pending"===o.state()||m(r[n]&&r[n].then)))return o.then();for(;n--;)B(r[n],A(n),o.reject);return o.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&W.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},_.readyException=function(e){n.setTimeout((function(){throw e}))};var H=_.Deferred();function V(){y.removeEventListener("DOMContentLoaded",V),n.removeEventListener("load",V),_.ready()}_.fn.ready=function(e){return H.then(e).catch((function(e){_.readyException(e)})),this},_.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--_.readyWait:_.isReady)||(_.isReady=!0,!0!==e&&--_.readyWait>0||H.resolveWith(y,[_]))}}),_.ready.then=H.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?n.setTimeout(_.ready):(y.addEventListener("DOMContentLoaded",V),n.addEventListener("load",V));var Y=function(e,t,n,i,r,o,A){var a=0,s=e.length,l=null==n;if("object"===w(n))for(a in r=!0,n)Y(e,t,a,n[a],!0,o,A);else if(void 0!==i&&(r=!0,m(i)||(A=!0),l&&(A?(t.call(e,i),t=null):(l=t,t=function(e,t,n){return l.call(_(e),n)})),t))for(;a<s;a++)t(e[a],n,A?i:i.call(e[a],a,t(e[a],n)));return r?e:l?t.call(e):s?t(e[0],n):o},q=/^-ms-/,U=/-([a-z])/g;function Q(e,t){return t.toUpperCase()}function X(e){return e.replace(q,"ms-").replace(U,Q)}var G=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Z(){this.expando=_.expando+Z.uid++}Z.uid=1,Z.prototype={cache:function(e){var t=e[this.expando];return t||(t={},G(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[X(t)]=n;else for(i in t)r[X(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in i?[t]:t.match(R)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||_.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!_.isEmptyObject(t)}};var K=new Z,J=new Z,$=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ee=/[A-Z]/g;function te(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(ee,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:$.test(e)?JSON.parse(e):e)}(n)}catch(e){}J.set(e,t,n)}else n=void 0;return n}_.extend({hasData:function(e){return J.hasData(e)||K.hasData(e)},data:function(e,t,n){return J.access(e,t,n)},removeData:function(e,t){J.remove(e,t)},_data:function(e,t,n){return K.access(e,t,n)},_removeData:function(e,t){K.remove(e,t)}}),_.fn.extend({data:function(e,t){var n,i,r,o=this[0],A=o&&o.attributes;if(void 0===e){if(this.length&&(r=J.get(o),1===o.nodeType&&!K.get(o,"hasDataAttrs"))){for(n=A.length;n--;)A[n]&&0===(i=A[n].name).indexOf("data-")&&(i=X(i.slice(5)),te(o,i,r[i]));K.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each((function(){J.set(this,e)})):Y(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=J.get(o,e))||void 0!==(n=te(o,e))?n:void 0;this.each((function(){J.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){J.remove(this,e)}))}}),_.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=K.get(e,t),n&&(!i||Array.isArray(n)?i=K.access(e,t,_.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=_.queue(e,t),i=n.length,r=n.shift(),o=_._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,(function(){_.dequeue(e,t)}),o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return K.get(e,n)||K.access(e,n,{empty:_.Callbacks("once memory").add((function(){K.remove(e,[t+"queue",n])}))})}}),_.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?_.queue(this[0],e):void 0===t?this:this.each((function(){var n=_.queue(this,e,t);_._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&_.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){_.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=_.Deferred(),o=this,A=this.length,a=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";A--;)(n=K.get(o[A],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(t)}});var ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ie=new RegExp("^(?:([+-])=|)("+ne+")([a-z%]*)$","i"),re=["Top","Right","Bottom","Left"],oe=y.documentElement,Ae=function(e){return _.contains(e.ownerDocument,e)},ae={composed:!0};oe.getRootNode&&(Ae=function(e){return _.contains(e.ownerDocument,e)||e.getRootNode(ae)===e.ownerDocument});var se=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&Ae(e)&&"none"===_.css(e,"display")};function le(e,t,n,i){var r,o,A=20,a=i?function(){return i.cur()}:function(){return _.css(e,t,"")},s=a(),l=n&&n[3]||(_.cssNumber[t]?"":"px"),c=e.nodeType&&(_.cssNumber[t]||"px"!==l&&+s)&&ie.exec(_.css(e,t));if(c&&c[3]!==l){for(s/=2,l=l||c[3],c=+s||1;A--;)_.style(e,t,c+l),(1-o)*(1-(o=a()/s||.5))<=0&&(A=0),c/=o;c*=2,_.style(e,t,c+l),n=n||[]}return n&&(c=+c||+s||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=l,i.start=c,i.end=r)),r}var ce={};function ue(e){var t,n=e.ownerDocument,i=e.nodeName,r=ce[i];return r||(t=n.body.appendChild(n.createElement(i)),r=_.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),ce[i]=r,r)}function de(e,t){for(var n,i,r=[],o=0,A=e.length;o<A;o++)(i=e[o]).style&&(n=i.style.display,t?("none"===n&&(r[o]=K.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&se(i)&&(r[o]=ue(i))):"none"!==n&&(r[o]="none",K.set(i,"display",n)));for(o=0;o<A;o++)null!=r[o]&&(e[o].style.display=r[o]);return e}_.fn.extend({show:function(){return de(this,!0)},hide:function(){return de(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){se(this)?_(this).show():_(this).hide()}))}});var fe,he,pe=/^(?:checkbox|radio)$/i,ge=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,me=/^$|^module$|\/(?:java|ecma)script/i;fe=y.createDocumentFragment().appendChild(y.createElement("div")),(he=y.createElement("input")).setAttribute("type","radio"),he.setAttribute("checked","checked"),he.setAttribute("name","t"),fe.appendChild(he),g.checkClone=fe.cloneNode(!0).cloneNode(!0).lastChild.checked,fe.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!fe.cloneNode(!0).lastChild.defaultValue,fe.innerHTML="<option></option>",g.option=!!fe.lastChild;var ve={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ye(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&D(e,t)?_.merge([e],n):n}function be(e,t){for(var n=0,i=e.length;n<i;n++)K.set(e[n],"globalEval",!t||K.get(t[n],"globalEval"))}ve.tbody=ve.tfoot=ve.colgroup=ve.caption=ve.thead,ve.th=ve.td,g.option||(ve.optgroup=ve.option=[1,"<select multiple='multiple'>","</select>"]);var xe=/<|&#?\w+;/;function we(e,t,n,i,r){for(var o,A,a,s,l,c,u=t.createDocumentFragment(),d=[],f=0,h=e.length;f<h;f++)if((o=e[f])||0===o)if("object"===w(o))_.merge(d,o.nodeType?[o]:o);else if(xe.test(o)){for(A=A||u.appendChild(t.createElement("div")),a=(ge.exec(o)||["",""])[1].toLowerCase(),s=ve[a]||ve._default,A.innerHTML=s[1]+_.htmlPrefilter(o)+s[2],c=s[0];c--;)A=A.lastChild;_.merge(d,A.childNodes),(A=u.firstChild).textContent=""}else d.push(t.createTextNode(o));for(u.textContent="",f=0;o=d[f++];)if(i&&_.inArray(o,i)>-1)r&&r.push(o);else if(l=Ae(o),A=ye(u.appendChild(o),"script"),l&&be(A),n)for(c=0;o=A[c++];)me.test(o.type||"")&&n.push(o);return u}var _e=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Te(e,t){return e===function(){try{return y.activeElement}catch(e){}}()==("focus"===t)}function Me(e,t,n,i,r,o){var A,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)Me(e,a,n,i,t[a],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Se;else if(!r)return e;return 1===o&&(A=r,(r=function(e){return _().off(e),A.apply(this,arguments)}).guid=A.guid||(A.guid=_.guid++)),e.each((function(){_.event.add(this,t,r,i,n)}))}function Ce(e,t,n){n?(K.set(e,t,!1),_.event.add(e,t,{namespace:!1,handler:function(e){var i,r,o=K.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(_.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=a.call(arguments),K.set(this,t,o),i=n(this,t),this[t](),o!==(r=K.get(this,t))||i?K.set(this,t,!1):r={},o!==r)return e.stopImmediatePropagation(),e.preventDefault(),r&&r.value}else o.length&&(K.set(this,t,{value:_.event.trigger(_.extend(o[0],_.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===K.get(e,t)&&_.event.add(e,t,ke)}_.event={global:{},add:function(e,t,n,i,r){var o,A,a,s,l,c,u,d,f,h,p,g=K.get(e);if(G(e))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&_.find.matchesSelector(oe,r),n.guid||(n.guid=_.guid++),(s=g.events)||(s=g.events=Object.create(null)),(A=g.handle)||(A=g.handle=function(t){return void 0!==_&&_.event.triggered!==t.type?_.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(R)||[""]).length;l--;)f=p=(a=_e.exec(t[l])||[])[1],h=(a[2]||"").split(".").sort(),f&&(u=_.event.special[f]||{},f=(r?u.delegateType:u.bindType)||f,u=_.event.special[f]||{},c=_.extend({type:f,origType:p,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&_.expr.match.needsContext.test(r),namespace:h.join(".")},o),(d=s[f])||((d=s[f]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,i,h,A)||e.addEventListener&&e.addEventListener(f,A)),u.add&&(u.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,c):d.push(c),_.event.global[f]=!0)},remove:function(e,t,n,i,r){var o,A,a,s,l,c,u,d,f,h,p,g=K.hasData(e)&&K.get(e);if(g&&(s=g.events)){for(l=(t=(t||"").match(R)||[""]).length;l--;)if(f=p=(a=_e.exec(t[l])||[])[1],h=(a[2]||"").split(".").sort(),f){for(u=_.event.special[f]||{},d=s[f=(i?u.delegateType:u.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),A=o=d.length;o--;)c=d[o],!r&&p!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,u.remove&&u.remove.call(e,c));A&&!d.length&&(u.teardown&&!1!==u.teardown.call(e,h,g.handle)||_.removeEvent(e,f,g.handle),delete s[f])}else for(f in s)_.event.remove(e,f+t[l],n,i,!0);_.isEmptyObject(s)&&K.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,A,a=new Array(arguments.length),s=_.event.fix(e),l=(K.get(this,"events")||Object.create(null))[s.type]||[],c=_.event.special[s.type]||{};for(a[0]=s,t=1;t<arguments.length;t++)a[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(A=_.event.handlers.call(this,s,l),t=0;(r=A[t++])&&!s.isPropagationStopped();)for(s.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==o.namespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(i=((_.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a))&&!1===(s.result=i)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,i,r,o,A,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],A={},n=0;n<s;n++)void 0===A[r=(i=t[n]).selector+" "]&&(A[r]=i.needsContext?_(r,this).index(l)>-1:_.find(r,this,null,[l]).length),A[r]&&o.push(i);o.length&&a.push({elem:l,handlers:o})}return l=this,s<t.length&&a.push({elem:l,handlers:t.slice(s)}),a},addProp:function(e,t){Object.defineProperty(_.Event.prototype,e,{enumerable:!0,configurable:!0,get:m(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[_.expando]?e:new _.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&D(t,"input")&&Ce(t,"click",ke),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&D(t,"input")&&Ce(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&D(t,"input")&&K.get(t,"click")||D(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},_.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},_.Event=function(e,t){if(!(this instanceof _.Event))return new _.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ke:Se,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&_.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[_.expando]=!0},_.Event.prototype={constructor:_.Event,isDefaultPrevented:Se,isPropagationStopped:Se,isImmediatePropagationStopped:Se,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ke,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ke,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ke,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},_.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},_.event.addProp),_.each({focus:"focusin",blur:"focusout"},(function(e,t){_.event.special[e]={setup:function(){return Ce(this,e,Te),!1},trigger:function(){return Ce(this,e),!0},_default:function(){return!0},delegateType:t}})),_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){_.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,r=e.relatedTarget,o=e.handleObj;return r&&(r===i||_.contains(i,r))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),_.fn.extend({on:function(e,t,n,i){return Me(this,e,t,n,i)},one:function(e,t,n,i){return Me(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,_(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Se),this.each((function(){_.event.remove(this,e,n,t)}))}});var De=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Ee=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Oe(e,t){return D(e,"table")&&D(11!==t.nodeType?t:t.firstChild,"tr")&&_(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ne(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,i,r,o,A,a;if(1===t.nodeType){if(K.hasData(e)&&(a=K.get(e).events))for(r in K.remove(t,"handle events"),a)for(n=0,i=a[r].length;n<i;n++)_.event.add(t,r,a[r][n]);J.hasData(e)&&(o=J.access(e),A=_.extend({},o),J.set(t,A))}}function Le(e,t){var n=t.nodeName.toLowerCase();"input"===n&&pe.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Re(e,t,n,i){t=s(t);var r,o,A,a,l,c,u=0,d=e.length,f=d-1,h=t[0],p=m(h);if(p||d>1&&"string"==typeof h&&!g.checkClone&&Pe.test(h))return e.each((function(r){var o=e.eq(r);p&&(t[0]=h.call(this,r,o.html())),Re(o,t,n,i)}));if(d&&(o=(r=we(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(a=(A=_.map(ye(r,"script"),Ie)).length;u<d;u++)l=r,u!==f&&(l=_.clone(l,!0,!0),a&&_.merge(A,ye(l,"script"))),n.call(e[u],l,u);if(a)for(c=A[A.length-1].ownerDocument,_.map(A,Ne),u=0;u<a;u++)l=A[u],me.test(l.type||"")&&!K.access(l,"globalEval")&&_.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?_._evalUrl&&!l.noModule&&_._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):x(l.textContent.replace(Ee,""),l,c))}return e}function je(e,t,n){for(var i,r=t?_.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||_.cleanData(ye(i)),i.parentNode&&(n&&Ae(i)&&be(ye(i,"script")),i.parentNode.removeChild(i));return e}_.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,r,o,A,a=e.cloneNode(!0),s=Ae(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||_.isXMLDoc(e)))for(A=ye(a),i=0,r=(o=ye(e)).length;i<r;i++)Le(o[i],A[i]);if(t)if(n)for(o=o||ye(e),A=A||ye(a),i=0,r=o.length;i<r;i++)Fe(o[i],A[i]);else Fe(e,a);return(A=ye(a,"script")).length>0&&be(A,!s&&ye(e,"script")),a},cleanData:function(e){for(var t,n,i,r=_.event.special,o=0;void 0!==(n=e[o]);o++)if(G(n)){if(t=n[K.expando]){if(t.events)for(i in t.events)r[i]?_.event.remove(n,i):_.removeEvent(n,i,t.handle);n[K.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),_.fn.extend({detach:function(e){return je(this,e,!0)},remove:function(e){return je(this,e)},text:function(e){return Y(this,(function(e){return void 0===e?_.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Re(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Oe(this,e).appendChild(e)}))},prepend:function(){return Re(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Oe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Re(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Re(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(_.cleanData(ye(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return _.clone(this,e,t)}))},html:function(e){return Y(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!De.test(e)&&!ve[(ge.exec(e)||["",""])[1].toLowerCase()]){e=_.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(_.cleanData(ye(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Re(this,arguments,(function(t){var n=this.parentNode;_.inArray(this,e)<0&&(_.cleanData(ye(this)),n&&n.replaceChild(t,this))}),e)}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){_.fn[e]=function(e){for(var n,i=[],r=_(e),o=r.length-1,A=0;A<=o;A++)n=A===o?this:this.clone(!0),_(r[A])[t](n),l.apply(i,n.get());return this.pushStack(i)}}));var ze=new RegExp("^("+ne+")(?!px)[a-z%]+$","i"),Be=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},We=function(e,t,n){var i,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in i=n.call(e),t)e.style[r]=o[r];return i},He=new RegExp(re.join("|"),"i");function Ve(e,t,n){var i,r,o,A,a=e.style;return(n=n||Be(e))&&(""!==(A=n.getPropertyValue(t)||n[t])||Ae(e)||(A=_.style(e,t)),!g.pixelBoxStyles()&&ze.test(A)&&He.test(t)&&(i=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=A,A=n.width,a.width=i,a.minWidth=r,a.maxWidth=o)),void 0!==A?A+"":A}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",oe.appendChild(l).appendChild(c);var e=n.getComputedStyle(c);i="1%"!==e.top,s=12===t(e.marginLeft),c.style.right="60%",A=36===t(e.right),r=36===t(e.width),c.style.position="absolute",o=12===t(c.offsetWidth/3),oe.removeChild(l),c=null}}function t(e){return Math.round(parseFloat(e))}var i,r,o,A,a,s,l=y.createElement("div"),c=y.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===c.style.backgroundClip,_.extend(g,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),A},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,i,r;return null==a&&(e=y.createElement("table"),t=y.createElement("tr"),i=y.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",i.style.height="9px",i.style.display="block",oe.appendChild(e).appendChild(t).appendChild(i),r=n.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,oe.removeChild(e)),a}}))}();var qe=["Webkit","Moz","ms"],Ue=y.createElement("div").style,Qe={};function Xe(e){var t=_.cssProps[e]||Qe[e];return t||(e in Ue?e:Qe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=qe.length;n--;)if((e=qe[n]+t)in Ue)return e}(e)||e)}var Ge=/^(none|table(?!-c[ea]).+)/,Ze=/^--/,Ke={position:"absolute",visibility:"hidden",display:"block"},Je={letterSpacing:"0",fontWeight:"400"};function $e(e,t,n){var i=ie.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function et(e,t,n,i,r,o){var A="width"===t?1:0,a=0,s=0;if(n===(i?"border":"content"))return 0;for(;A<4;A+=2)"margin"===n&&(s+=_.css(e,n+re[A],!0,r)),i?("content"===n&&(s-=_.css(e,"padding"+re[A],!0,r)),"margin"!==n&&(s-=_.css(e,"border"+re[A]+"Width",!0,r))):(s+=_.css(e,"padding"+re[A],!0,r),"padding"!==n?s+=_.css(e,"border"+re[A]+"Width",!0,r):a+=_.css(e,"border"+re[A]+"Width",!0,r));return!i&&o>=0&&(s+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-s-a-.5))||0),s}function tt(e,t,n){var i=Be(e),r=(!g.boxSizingReliable()||n)&&"border-box"===_.css(e,"boxSizing",!1,i),o=r,A=Ve(e,t,i),a="offset"+t[0].toUpperCase()+t.slice(1);if(ze.test(A)){if(!n)return A;A="auto"}return(!g.boxSizingReliable()&&r||!g.reliableTrDimensions()&&D(e,"tr")||"auto"===A||!parseFloat(A)&&"inline"===_.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===_.css(e,"boxSizing",!1,i),(o=a in e)&&(A=e[a])),(A=parseFloat(A)||0)+et(e,t,n||(r?"border":"content"),o,i,A)+"px"}function nt(e,t,n,i,r){return new nt.prototype.init(e,t,n,i,r)}_.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ve(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,A,a=X(t),s=Ze.test(t),l=e.style;if(s||(t=Xe(a)),A=_.cssHooks[t]||_.cssHooks[a],void 0===n)return A&&"get"in A&&void 0!==(r=A.get(e,!1,i))?r:l[t];"string"===(o=typeof n)&&(r=ie.exec(n))&&r[1]&&(n=le(e,t,r),o="number"),null!=n&&n==n&&("number"!==o||s||(n+=r&&r[3]||(_.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),A&&"set"in A&&void 0===(n=A.set(e,n,i))||(s?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,i){var r,o,A,a=X(t);return Ze.test(t)||(t=Xe(a)),(A=_.cssHooks[t]||_.cssHooks[a])&&"get"in A&&(r=A.get(e,!0,n)),void 0===r&&(r=Ve(e,t,i)),"normal"===r&&t in Je&&(r=Je[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),_.each(["height","width"],(function(e,t){_.cssHooks[t]={get:function(e,n,i){if(n)return!Ge.test(_.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?tt(e,t,i):We(e,Ke,(function(){return tt(e,t,i)}))},set:function(e,n,i){var r,o=Be(e),A=!g.scrollboxSize()&&"absolute"===o.position,a=(A||i)&&"border-box"===_.css(e,"boxSizing",!1,o),s=i?et(e,t,i,a,o):0;return a&&A&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-et(e,t,"border",!1,o)-.5)),s&&(r=ie.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=_.css(e,t)),$e(0,n,s)}}})),_.cssHooks.marginLeft=Ye(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ve(e,"marginLeft"))||e.getBoundingClientRect().left-We(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),_.each({margin:"",padding:"",border:"Width"},(function(e,t){_.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+re[i]+t]=o[i]||o[i-2]||o[0];return r}},"margin"!==e&&(_.cssHooks[e+t].set=$e)})),_.fn.extend({css:function(e,t){return Y(this,(function(e,t,n){var i,r,o={},A=0;if(Array.isArray(t)){for(i=Be(e),r=t.length;A<r;A++)o[t[A]]=_.css(e,t[A],!1,i);return o}return void 0!==n?_.style(e,t,n):_.css(e,t)}),e,t,arguments.length>1)}}),_.Tween=nt,nt.prototype={constructor:nt,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||_.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(_.cssNumber[n]?"":"px")},cur:function(){var e=nt.propHooks[this.prop];return e&&e.get?e.get(this):nt.propHooks._default.get(this)},run:function(e){var t,n=nt.propHooks[this.prop];return this.options.duration?this.pos=t=_.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):nt.propHooks._default.set(this),this}},nt.prototype.init.prototype=nt.prototype,nt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=_.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){_.fx.step[e.prop]?_.fx.step[e.prop](e):1!==e.elem.nodeType||!_.cssHooks[e.prop]&&null==e.elem.style[Xe(e.prop)]?e.elem[e.prop]=e.now:_.style(e.elem,e.prop,e.now+e.unit)}}},nt.propHooks.scrollTop=nt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},_.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},_.fx=nt.prototype.init,_.fx.step={};var it,rt,ot=/^(?:toggle|show|hide)$/,At=/queueHooks$/;function at(){rt&&(!1===y.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(at):n.setTimeout(at,_.fx.interval),_.fx.tick())}function st(){return n.setTimeout((function(){it=void 0})),it=Date.now()}function lt(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=re[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function ct(e,t,n){for(var i,r=(ut.tweeners[t]||[]).concat(ut.tweeners["*"]),o=0,A=r.length;o<A;o++)if(i=r[o].call(n,t,e))return i}function ut(e,t,n){var i,r,o=0,A=ut.prefilters.length,a=_.Deferred().always((function(){delete s.elem})),s=function(){if(r)return!1;for(var t=it||st(),n=Math.max(0,l.startTime+l.duration-t),i=1-(n/l.duration||0),o=0,A=l.tweens.length;o<A;o++)l.tweens[o].run(i);return a.notifyWith(e,[l,i,n]),i<1&&A?n:(A||a.notifyWith(e,[l,1,0]),a.resolveWith(e,[l]),!1)},l=a.promise({elem:e,props:_.extend({},t),opts:_.extend(!0,{specialEasing:{},easing:_.easing._default},n),originalProperties:t,originalOptions:n,startTime:it||st(),duration:n.duration,tweens:[],createTween:function(t,n){var i=_.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(i),i},stop:function(t){var n=0,i=t?l.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)l.tweens[n].run(1);return t?(a.notifyWith(e,[l,1,0]),a.resolveWith(e,[l,t])):a.rejectWith(e,[l,t]),this}}),c=l.props;for(!function(e,t){var n,i,r,o,A;for(n in e)if(r=t[i=X(n)],o=e[n],Array.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(A=_.cssHooks[i])&&"expand"in A)for(n in o=A.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}(c,l.opts.specialEasing);o<A;o++)if(i=ut.prefilters[o].call(l,e,c,l.opts))return m(i.stop)&&(_._queueHooks(l.elem,l.opts.queue).stop=i.stop.bind(i)),i;return _.map(c,ct,l),m(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),_.fx.timer(_.extend(s,{elem:e,anim:l,queue:l.opts.queue})),l}_.Animation=_.extend(ut,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return le(n.elem,e,ie.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(R);for(var n,i=0,r=e.length;i<r;i++)n=e[i],ut.tweeners[n]=ut.tweeners[n]||[],ut.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,r,o,A,a,s,l,c,u="width"in t||"height"in t,d=this,f={},h=e.style,p=e.nodeType&&se(e),g=K.get(e,"fxshow");for(i in n.queue||(null==(A=_._queueHooks(e,"fx")).unqueued&&(A.unqueued=0,a=A.empty.fire,A.empty.fire=function(){A.unqueued||a()}),A.unqueued++,d.always((function(){d.always((function(){A.unqueued--,_.queue(e,"fx").length||A.empty.fire()}))}))),t)if(r=t[i],ot.test(r)){if(delete t[i],o=o||"toggle"===r,r===(p?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;p=!0}f[i]=g&&g[i]||_.style(e,i)}if((s=!_.isEmptyObject(t))||!_.isEmptyObject(f))for(i in u&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=g&&g.display)&&(l=K.get(e,"display")),"none"===(c=_.css(e,"display"))&&(l?c=l:(de([e],!0),l=e.style.display||l,c=_.css(e,"display"),de([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===_.css(e,"float")&&(s||(d.done((function(){h.display=l})),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),s=!1,f)s||(g?"hidden"in g&&(p=g.hidden):g=K.access(e,"fxshow",{display:l}),o&&(g.hidden=!p),p&&de([e],!0),d.done((function(){for(i in p||de([e]),K.remove(e,"fxshow"),f)_.style(e,i,f[i])}))),s=ct(p?g[i]:0,i,d),i in g||(g[i]=s.start,p&&(s.end=s.start,s.start=0))}],prefilter:function(e,t){t?ut.prefilters.unshift(e):ut.prefilters.push(e)}}),_.speed=function(e,t,n){var i=e&&"object"==typeof e?_.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return _.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in _.fx.speeds?i.duration=_.fx.speeds[i.duration]:i.duration=_.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){m(i.old)&&i.old.call(this),i.queue&&_.dequeue(this,i.queue)},i},_.fn.extend({fadeTo:function(e,t,n,i){return this.filter(se).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=_.isEmptyObject(e),o=_.speed(t,n,i),A=function(){var t=ut(this,_.extend({},e),o);(r||K.get(this,"finish"))&&t.stop(!0)};return A.finish=A,r||!1===o.queue?this.each(A):this.queue(o.queue,A)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",o=_.timers,A=K.get(this);if(r)A[r]&&A[r].stop&&i(A[r]);else for(r in A)A[r]&&A[r].stop&&At.test(r)&&i(A[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(n),t=!1,o.splice(r,1));!t&&n||_.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=K.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],o=_.timers,A=i?i.length:0;for(n.finish=!0,_.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<A;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),_.each(["toggle","show","hide"],(function(e,t){var n=_.fn[t];_.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(lt(t,!0),e,i,r)}})),_.each({slideDown:lt("show"),slideUp:lt("hide"),slideToggle:lt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){_.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),_.timers=[],_.fx.tick=function(){var e,t=0,n=_.timers;for(it=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||_.fx.stop(),it=void 0},_.fx.timer=function(e){_.timers.push(e),_.fx.start()},_.fx.interval=13,_.fx.start=function(){rt||(rt=!0,at())},_.fx.stop=function(){rt=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(e,t){return e=_.fx&&_.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,i){var r=n.setTimeout(t,e);i.stop=function(){n.clearTimeout(r)}}))},function(){var e=y.createElement("input"),t=y.createElement("select").appendChild(y.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=y.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var dt,ft=_.expr.attrHandle;_.fn.extend({attr:function(e,t){return Y(this,_.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){_.removeAttr(this,e)}))}}),_.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?_.prop(e,t,n):(1===o&&_.isXMLDoc(e)||(r=_.attrHooks[t.toLowerCase()]||(_.expr.match.bool.test(t)?dt:void 0)),void 0!==n?null===n?void _.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=_.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&D(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(R);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),dt={set:function(e,t,n){return!1===t?_.removeAttr(e,n):e.setAttribute(n,n),n}},_.each(_.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=ft[t]||_.find.attr;ft[t]=function(e,t,i){var r,o,A=t.toLowerCase();return i||(o=ft[A],ft[A]=r,r=null!=n(e,t,i)?A:null,ft[A]=o),r}}));var ht=/^(?:input|select|textarea|button)$/i,pt=/^(?:a|area)$/i;function gt(e){return(e.match(R)||[]).join(" ")}function mt(e){return e.getAttribute&&e.getAttribute("class")||""}function vt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(R)||[]}_.fn.extend({prop:function(e,t){return Y(this,_.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[_.propFix[e]||e]}))}}),_.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&_.isXMLDoc(e)||(t=_.propFix[t]||t,r=_.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=_.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||pt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(_.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){_.propFix[this.toLowerCase()]=this})),_.fn.extend({addClass:function(e){var t,n,i,r,o,A,a,s=0;if(m(e))return this.each((function(t){_(this).addClass(e.call(this,t,mt(this)))}));if((t=vt(e)).length)for(;n=this[s++];)if(r=mt(n),i=1===n.nodeType&&" "+gt(r)+" "){for(A=0;o=t[A++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(a=gt(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,r,o,A,a,s=0;if(m(e))return this.each((function(t){_(this).removeClass(e.call(this,t,mt(this)))}));if(!arguments.length)return this.attr("class","");if((t=vt(e)).length)for(;n=this[s++];)if(r=mt(n),i=1===n.nodeType&&" "+gt(r)+" "){for(A=0;o=t[A++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");r!==(a=gt(i))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e,i="string"===n||Array.isArray(e);return"boolean"==typeof t&&i?t?this.addClass(e):this.removeClass(e):m(e)?this.each((function(n){_(this).toggleClass(e.call(this,n,mt(this),t),t)})):this.each((function(){var t,r,o,A;if(i)for(r=0,o=_(this),A=vt(e);t=A[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=mt(this))&&K.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":K.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+gt(mt(n))+" ").indexOf(t)>-1)return!0;return!1}});var yt=/\r/g;_.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=m(e),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,_(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=_.map(r,(function(e){return null==e?"":e+""}))),(t=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=_.valHooks[r.type]||_.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(yt,""):null==n?"":n:void 0}}),_.extend({valHooks:{option:{get:function(e){var t=_.find.attr(e,"value");return null!=t?t:gt(_.text(e))}},select:{get:function(e){var t,n,i,r=e.options,o=e.selectedIndex,A="select-one"===e.type,a=A?null:[],s=A?o+1:r.length;for(i=o<0?s:A?o:0;i<s;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!D(n.parentNode,"optgroup"))){if(t=_(n).val(),A)return t;a.push(t)}return a},set:function(e,t){for(var n,i,r=e.options,o=_.makeArray(t),A=r.length;A--;)((i=r[A]).selected=_.inArray(_.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),_.each(["radio","checkbox"],(function(){_.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=_.inArray(_(e).val(),t)>-1}},g.checkOn||(_.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),g.focusin="onfocusin"in n;var bt=/^(?:focusinfocus|focusoutblur)$/,xt=function(e){e.stopPropagation()};_.extend(_.event,{trigger:function(e,t,i,r){var o,A,a,s,l,c,u,d,h=[i||y],p=f.call(e,"type")?e.type:e,g=f.call(e,"namespace")?e.namespace.split("."):[];if(A=d=a=i=i||y,3!==i.nodeType&&8!==i.nodeType&&!bt.test(p+_.event.triggered)&&(p.indexOf(".")>-1&&(g=p.split("."),p=g.shift(),g.sort()),l=p.indexOf(":")<0&&"on"+p,(e=e[_.expando]?e:new _.Event(p,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:_.makeArray(t,[e]),u=_.event.special[p]||{},r||!u.trigger||!1!==u.trigger.apply(i,t))){if(!r&&!u.noBubble&&!v(i)){for(s=u.delegateType||p,bt.test(s+p)||(A=A.parentNode);A;A=A.parentNode)h.push(A),a=A;a===(i.ownerDocument||y)&&h.push(a.defaultView||a.parentWindow||n)}for(o=0;(A=h[o++])&&!e.isPropagationStopped();)d=A,e.type=o>1?s:u.bindType||p,(c=(K.get(A,"events")||Object.create(null))[e.type]&&K.get(A,"handle"))&&c.apply(A,t),(c=l&&A[l])&&c.apply&&G(A)&&(e.result=c.apply(A,t),!1===e.result&&e.preventDefault());return e.type=p,r||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(h.pop(),t)||!G(i)||l&&m(i[p])&&!v(i)&&((a=i[l])&&(i[l]=null),_.event.triggered=p,e.isPropagationStopped()&&d.addEventListener(p,xt),i[p](),e.isPropagationStopped()&&d.removeEventListener(p,xt),_.event.triggered=void 0,a&&(i[l]=a)),e.result}},simulate:function(e,t,n){var i=_.extend(new _.Event,n,{type:e,isSimulated:!0});_.event.trigger(i,null,t)}}),_.fn.extend({trigger:function(e,t){return this.each((function(){_.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return _.event.trigger(e,t,n,!0)}}),g.focusin||_.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){_.event.simulate(t,e.target,_.event.fix(e))};_.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,r=K.access(i,t);r||i.addEventListener(e,n,!0),K.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=K.access(i,t)-1;r?K.access(i,t,r):(i.removeEventListener(e,n,!0),K.remove(i,t))}}}));var wt=n.location,_t={guid:Date.now()},kt=/\?/;_.parseXML=function(e){var t,i;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){}return i=t&&t.getElementsByTagName("parsererror")[0],t&&!i||_.error("Invalid XML: "+(i?_.map(i.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var St=/\[\]$/,Tt=/\r?\n/g,Mt=/^(?:submit|button|image|reset|file)$/i,Ct=/^(?:input|select|textarea|keygen)/i;function Dt(e,t,n,i){var r;if(Array.isArray(t))_.each(t,(function(t,r){n||St.test(e)?i(e,r):Dt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)}));else if(n||"object"!==w(t))i(e,t);else for(r in t)Dt(e+"["+r+"]",t[r],n,i)}_.param=function(e,t){var n,i=[],r=function(e,t){var n=m(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!_.isPlainObject(e))_.each(e,(function(){r(this.name,this.value)}));else for(n in e)Dt(n,e[n],t,r);return i.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=_.prop(this,"elements");return e?_.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!_(this).is(":disabled")&&Ct.test(this.nodeName)&&!Mt.test(e)&&(this.checked||!pe.test(e))})).map((function(e,t){var n=_(this).val();return null==n?null:Array.isArray(n)?_.map(n,(function(e){return{name:t.name,value:e.replace(Tt,"\r\n")}})):{name:t.name,value:n.replace(Tt,"\r\n")}})).get()}});var Pt=/%20/g,Et=/#.*$/,Ot=/([?&])_=[^&]*/,It=/^(.*?):[ \t]*([^\r\n]*)$/gm,Nt=/^(?:GET|HEAD)$/,Ft=/^\/\//,Lt={},Rt={},jt="*/".concat("*"),zt=y.createElement("a");function Bt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match(R)||[];if(m(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Wt(e,t,n,i){var r={},o=e===Rt;function A(a){var s;return r[a]=!0,_.each(e[a]||[],(function(e,a){var l=a(t,n,i);return"string"!=typeof l||o||r[l]?o?!(s=l):void 0:(t.dataTypes.unshift(l),A(l),!1)})),s}return A(t.dataTypes[0])||!r["*"]&&A("*")}function Ht(e,t){var n,i,r=_.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&_.extend(!0,e,i),e}zt.href=wt.href,_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:wt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(wt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":jt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ht(Ht(e,_.ajaxSettings),t):Ht(_.ajaxSettings,e)},ajaxPrefilter:Bt(Lt),ajaxTransport:Bt(Rt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,r,o,A,a,s,l,c,u,d,f=_.ajaxSetup({},t),h=f.context||f,p=f.context&&(h.nodeType||h.jquery)?_(h):_.event,g=_.Deferred(),m=_.Callbacks("once memory"),v=f.statusCode||{},b={},x={},w="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(l){if(!A)for(A={};t=It.exec(o);)A[t[1].toLowerCase()+" "]=(A[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=A[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(e,t){return null==l&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==l&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)k.always(e[k.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||w;return i&&i.abort(t),S(0,t),this}};if(g.promise(k),f.url=((e||f.url||wt.href)+"").replace(Ft,wt.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(R)||[""],null==f.crossDomain){s=y.createElement("a");try{s.href=f.url,s.href=s.href,f.crossDomain=zt.protocol+"//"+zt.host!=s.protocol+"//"+s.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=_.param(f.data,f.traditional)),Wt(Lt,f,t,k),l)return k;for(u in(c=_.event&&f.global)&&0==_.active++&&_.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Nt.test(f.type),r=f.url.replace(Et,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Pt,"+")):(d=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(kt.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(Ot,"$1"),d=(kt.test(r)?"&":"?")+"_="+_t.guid+++d),f.url=r+d),f.ifModified&&(_.lastModified[r]&&k.setRequestHeader("If-Modified-Since",_.lastModified[r]),_.etag[r]&&k.setRequestHeader("If-None-Match",_.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&k.setRequestHeader("Content-Type",f.contentType),k.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+jt+"; q=0.01":""):f.accepts["*"]),f.headers)k.setRequestHeader(u,f.headers[u]);if(f.beforeSend&&(!1===f.beforeSend.call(h,k,f)||l))return k.abort();if(w="abort",m.add(f.complete),k.done(f.success),k.fail(f.error),i=Wt(Rt,f,t,k)){if(k.readyState=1,c&&p.trigger("ajaxSend",[k,f]),l)return k;f.async&&f.timeout>0&&(a=n.setTimeout((function(){k.abort("timeout")}),f.timeout));try{l=!1,i.send(b,S)}catch(e){if(l)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,A,s){var u,d,y,b,x,w=t;l||(l=!0,a&&n.clearTimeout(a),i=void 0,o=s||"",k.readyState=e>0?4:0,u=e>=200&&e<300||304===e,A&&(b=function(e,t,n){for(var i,r,o,A,a=e.contents,s=e.dataTypes;"*"===s[0];)s.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){s.unshift(r);break}if(s[0]in n)o=s[0];else{for(r in n){if(!s[0]||e.converters[r+" "+s[0]]){o=r;break}A||(A=r)}o=o||A}if(o)return o!==s[0]&&s.unshift(o),n[o]}(f,k,A)),!u&&_.inArray("script",f.dataTypes)>-1&&_.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),b=function(e,t,n,i){var r,o,A,a,s,l={},c=e.dataTypes.slice();if(c[1])for(A in e.converters)l[A.toLowerCase()]=e.converters[A];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!s&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),s=o,o=c.shift())if("*"===o)o=s;else if("*"!==s&&s!==o){if(!(A=l[s+" "+o]||l["* "+o]))for(r in l)if((a=r.split(" "))[1]===o&&(A=l[s+" "+a[0]]||l["* "+a[0]])){!0===A?A=l[r]:!0!==l[r]&&(o=a[0],c.unshift(a[1]));break}if(!0!==A)if(A&&e.throws)t=A(t);else try{t=A(t)}catch(e){return{state:"parsererror",error:A?e:"No conversion from "+s+" to "+o}}}return{state:"success",data:t}}(f,b,k,u),u?(f.ifModified&&((x=k.getResponseHeader("Last-Modified"))&&(_.lastModified[r]=x),(x=k.getResponseHeader("etag"))&&(_.etag[r]=x)),204===e||"HEAD"===f.type?w="nocontent":304===e?w="notmodified":(w=b.state,d=b.data,u=!(y=b.error))):(y=w,!e&&w||(w="error",e<0&&(e=0))),k.status=e,k.statusText=(t||w)+"",u?g.resolveWith(h,[d,w,k]):g.rejectWith(h,[k,w,y]),k.statusCode(v),v=void 0,c&&p.trigger(u?"ajaxSuccess":"ajaxError",[k,f,u?d:y]),m.fireWith(h,[k,w]),c&&(p.trigger("ajaxComplete",[k,f]),--_.active||_.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return _.get(e,t,n,"json")},getScript:function(e,t){return _.get(e,void 0,t,"script")}}),_.each(["get","post"],(function(e,t){_[t]=function(e,n,i,r){return m(n)&&(r=r||i,i=n,n=void 0),_.ajax(_.extend({url:e,type:t,dataType:r,data:n,success:i},_.isPlainObject(e)&&e))}})),_.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),_._evalUrl=function(e,t,n){return _.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){_.globalEval(e,t,n)}})},_.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=_(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return m(e)?this.each((function(t){_(this).wrapInner(e.call(this,t))})):this.each((function(){var t=_(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=m(e);return this.each((function(n){_(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){_(this).replaceWith(this.childNodes)})),this}}),_.expr.pseudos.hidden=function(e){return!_.expr.pseudos.visible(e)},_.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},Yt=_.ajaxSettings.xhr();g.cors=!!Yt&&"withCredentials"in Yt,g.ajax=Yt=!!Yt,_.ajaxTransport((function(e){var t,i;if(g.cors||Yt&&!e.crossDomain)return{send:function(r,o){var A,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(A in e.xhrFields)a[A]=e.xhrFields[A];for(A in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(A,r[A]);t=function(e){return function(){t&&(t=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Vt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),i=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout((function(){t&&i()}))},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),_.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return _.globalEval(e),e}}}),_.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),_.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,r){t=_("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),y.head.appendChild(t[0])},abort:function(){n&&n()}}}));var qt,Ut=[],Qt=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ut.pop()||_.expando+"_"+_t.guid++;return this[e]=!0,e}}),_.ajaxPrefilter("json jsonp",(function(e,t,i){var r,o,A,a=!1!==e.jsonp&&(Qt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Qt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Qt,"$1"+r):!1!==e.jsonp&&(e.url+=(kt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return A||_.error(r+" was not called"),A[0]},e.dataTypes[0]="json",o=n[r],n[r]=function(){A=arguments},i.always((function(){void 0===o?_(n).removeProp(r):n[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,Ut.push(r)),A&&m(o)&&o(A[0]),A=o=void 0})),"script"})),g.createHTMLDocument=((qt=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===qt.childNodes.length),_.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((i=(t=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,t.head.appendChild(i)):t=y),o=!n&&[],(r=P.exec(e))?[t.createElement(r[1])]:(r=we([e],t,o),o&&o.length&&_(o).remove(),_.merge([],r.childNodes)));var i,r,o},_.fn.load=function(e,t,n){var i,r,o,A=this,a=e.indexOf(" ");return a>-1&&(i=gt(e.slice(a)),e=e.slice(0,a)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),A.length>0&&_.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){o=arguments,A.html(i?_("<div>").append(_.parseHTML(e)).find(i):e)})).always(n&&function(e,t){A.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},_.expr.pseudos.animated=function(e){return _.grep(_.timers,(function(t){return e===t.elem})).length},_.offset={setOffset:function(e,t,n){var i,r,o,A,a,s,l=_.css(e,"position"),c=_(e),u={};"static"===l&&(e.style.position="relative"),a=c.offset(),o=_.css(e,"top"),s=_.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+s).indexOf("auto")>-1?(A=(i=c.position()).top,r=i.left):(A=parseFloat(o)||0,r=parseFloat(s)||0),m(t)&&(t=t.call(e,n,_.extend({},a))),null!=t.top&&(u.top=t.top-a.top+A),null!=t.left&&(u.left=t.left-a.left+r),"using"in t?t.using.call(e,u):c.css(u)}},_.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){_.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===_.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===_.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=_(e).offset()).top+=_.css(e,"borderTopWidth",!0),r.left+=_.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-_.css(i,"marginTop",!0),left:t.left-r.left-_.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===_.css(e,"position");)e=e.offsetParent;return e||oe}))}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;_.fn[e]=function(i){return Y(this,(function(e,i,r){var o;if(v(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===r)return o?o[t]:e[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):e[i]=r}),e,i,arguments.length)}})),_.each(["top","left"],(function(e,t){_.cssHooks[t]=Ye(g.pixelPosition,(function(e,n){if(n)return n=Ve(e,t),ze.test(n)?_(e).position()[t]+"px":n}))})),_.each({Height:"height",Width:"width"},(function(e,t){_.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){_.fn[i]=function(r,o){var A=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===o?"margin":"border");return Y(this,(function(t,n,r){var o;return v(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?_.css(t,n,a):_.style(t,n,r,a)}),t,A?r:void 0,A)}}))})),_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){_.fn[t]=function(e){return this.on(t,e)}})),_.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),_.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){_.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Xt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;_.proxy=function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return i=a.call(arguments,2),(r=function(){return e.apply(t||this,i.concat(a.call(arguments)))}).guid=e.guid=e.guid||_.guid++,r},_.holdReady=function(e){e?_.readyWait++:_.ready(!0)},_.isArray=Array.isArray,_.parseJSON=JSON.parse,_.nodeName=D,_.isFunction=m,_.isWindow=v,_.camelCase=X,_.type=w,_.now=Date.now,_.isNumeric=function(e){var t=_.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},_.trim=function(e){return null==e?"":(e+"").replace(Xt,"")},void 0===(i=function(){return _}.apply(t,[]))||(e.exports=i);var Gt=n.jQuery,Zt=n.$;return _.noConflict=function(e){return n.$===_&&(n.$=Zt),e&&n.jQuery===_&&(n.jQuery=Gt),_},void 0===r&&(n.jQuery=n.$=_),_}))},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,n;function i(){return t.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(A(e,t))return!1;return!0}function s(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function d(e,t){for(var n in t)A(t,n)&&(e[n]=t[n]);return A(t,"toString")&&(e.toString=t.toString),A(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,i){return kt(e,t,n,i,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function p(e){if(null==e._isValid){var t=h(e),i=n.call(t.parsedDateParts,(function(e){return null!=e})),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function g(e){var t=f(NaN);return null!=e?d(h(t),e):h(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),i=n.length>>>0;for(t=0;t<i;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var m=i.momentProperties=[],v=!1;function y(e,t){var n,i,r;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=h(t)),s(t._locale)||(e._locale=t._locale),m.length>0)for(n=0;n<m.length;n++)s(r=t[i=m[n]])||(e[i]=r);return e}function b(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,i.updateOffset(this),v=!1)}function x(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function w(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function _(e,t){var n=!0;return d((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){var r,o,a,s=[];for(o=0;o<arguments.length;o++){if(r="","object"==typeof arguments[o]){for(a in r+="\n["+o+"] ",arguments[0])A(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[o];s.push(r)}w(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var k,S={};function T(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),S[e]||(w(t),S[e]=!0)}function M(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function C(e,t){var n,i=d({},e);for(n in t)A(t,n)&&(o(e[n])&&o(t[n])?(i[n]={},d(i[n],e[n]),d(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)A(e,n)&&!A(t,n)&&o(e[n])&&(i[n]=d({},i[n]));return i}function D(e){null!=e&&this.set(e)}function P(e,t,n){var i=""+Math.abs(e),r=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,k=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)A(e,t)&&n.push(t);return n};var E=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},N={};function F(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(N[e]=r),t&&(N[t[0]]=function(){return P(r.apply(this,arguments),t[1],t[2])}),n&&(N[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function L(e,t){return e.isValid()?(t=R(t,e.localeData()),I[t]=I[t]||function(e){var t,n,i,r=e.match(E);for(t=0,n=r.length;t<n;t++)N[r[t]]?r[t]=N[r[t]]:r[t]=(i=r[t]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(t){var i,o="";for(i=0;i<n;i++)o+=M(r[i])?r[i].call(t,e):r[i];return o}}(t),I[t](e)):e.localeData().invalidDate()}function R(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(O.lastIndex=0;n>=0&&O.test(e);)e=e.replace(O,i),O.lastIndex=0,n-=1;return e}var j={};function z(e,t){var n=e.toLowerCase();j[n]=j[n+"s"]=j[t]=e}function B(e){return"string"==typeof e?j[e]||j[e.toLowerCase()]:void 0}function W(e){var t,n,i={};for(n in e)A(e,n)&&(t=B(n))&&(i[t]=e[n]);return i}var H={};function V(e,t){H[e]=t}function Y(e){return e%4==0&&e%100!=0||e%400==0}function q(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function U(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=q(t)),n}function Q(e,t){return function(n){return null!=n?(G(this,e,n),i.updateOffset(this,t),this):X(this,e)}}function X(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function G(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Y(e.year())&&1===e.month()&&29===e.date()?(n=U(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),xe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Z,K=/\d/,J=/\d\d/,$=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,ne=/\d\d?/,ie=/\d\d\d\d?/,re=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,Ae=/\d{1,4}/,ae=/[+-]?\d{1,6}/,se=/\d+/,le=/[+-]?\d+/,ce=/Z|[+-]\d\d:?\d\d/gi,ue=/Z|[+-]\d\d(?::?\d\d)?/gi,de=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function fe(e,t,n){Z[e]=M(t)?t:function(e,i){return e&&n?n:t}}function he(e,t){return A(Z,e)?Z[e](t._strict,t._locale):new RegExp(pe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,r){return t||n||i||r}))))}function pe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Z={};var ge,me={};function ve(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),l(t)&&(i=function(e,n){n[t]=U(e)}),n=0;n<e.length;n++)me[e[n]]=i}function ye(e,t){ve(e,(function(e,n,i,r){i._w=i._w||{},t(e,i._w,i,r)}))}function be(e,t,n){null!=t&&A(me,e)&&me[e](t,n._a,n,e)}function xe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,i=(t%(n=12)+n)%n;return e+=(t-i)/12,1===i?Y(e)?29:28:31-i%7%2}ge=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},F("M",["MM",2],"Mo",(function(){return this.month()+1})),F("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),F("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),z("month","M"),V("month",8),fe("M",ne),fe("MM",ne,J),fe("MMM",(function(e,t){return t.monthsShortRegex(e)})),fe("MMMM",(function(e,t){return t.monthsRegex(e)})),ve(["M","MM"],(function(e,t){t[1]=U(e)-1})),ve(["MMM","MMMM"],(function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[1]=r:h(n).invalidMonth=e}));var we="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),_e="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ke=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Se=de,Te=de;function Me(e,t,n){var i,r,o,A=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=ge.call(this._shortMonthsParse,A))?r:null:-1!==(r=ge.call(this._longMonthsParse,A))?r:null:"MMM"===t?-1!==(r=ge.call(this._shortMonthsParse,A))||-1!==(r=ge.call(this._longMonthsParse,A))?r:null:-1!==(r=ge.call(this._longMonthsParse,A))||-1!==(r=ge.call(this._shortMonthsParse,A))?r:null}function Ce(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=U(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),xe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function De(e){return null!=e?(Ce(this,e),i.updateOffset(this,!0),this):X(this,"Month")}function Pe(){function e(e,t){return t.length-e.length}var t,n,i=[],r=[],o=[];for(t=0;t<12;t++)n=f([2e3,t]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(i.sort(e),r.sort(e),o.sort(e),t=0;t<12;t++)i[t]=pe(i[t]),r[t]=pe(r[t]);for(t=0;t<24;t++)o[t]=pe(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ee(e){return Y(e)?366:365}F("Y",0,0,(function(){var e=this.year();return e<=9999?P(e,4):"+"+e})),F(0,["YY",2],0,(function(){return this.year()%100})),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),z("year","y"),V("year",1),fe("Y",le),fe("YY",ne,J),fe("YYYY",Ae,ee),fe("YYYYY",ae,te),fe("YYYYYY",ae,te),ve(["YYYYY","YYYYYY"],0),ve("YYYY",(function(e,t){t[0]=2===e.length?i.parseTwoDigitYear(e):U(e)})),ve("YY",(function(e,t){t[0]=i.parseTwoDigitYear(e)})),ve("Y",(function(e,t){t[0]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return U(e)+(U(e)>68?1900:2e3)};var Oe=Q("FullYear",!0);function Ie(e,t,n,i,r,o,A){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,i,r,o,A),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,i,r,o,A),a}function Ne(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Fe(e,t,n){var i=7+t-n;return-(7+Ne(e,0,i).getUTCDay()-t)%7+i-1}function Le(e,t,n,i,r){var o,A,a=1+7*(t-1)+(7+n-i)%7+Fe(e,i,r);return a<=0?A=Ee(o=e-1)+a:a>Ee(e)?(o=e+1,A=a-Ee(e)):(o=e,A=a),{year:o,dayOfYear:A}}function Re(e,t,n){var i,r,o=Fe(e.year(),t,n),A=Math.floor((e.dayOfYear()-o-1)/7)+1;return A<1?i=A+je(r=e.year()-1,t,n):A>je(e.year(),t,n)?(i=A-je(e.year(),t,n),r=e.year()+1):(r=e.year(),i=A),{week:i,year:r}}function je(e,t,n){var i=Fe(e,t,n),r=Fe(e+1,t,n);return(Ee(e)-i+r)/7}function ze(e,t){return e.slice(t,7).concat(e.slice(0,t))}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),z("week","w"),z("isoWeek","W"),V("week",5),V("isoWeek",5),fe("w",ne),fe("ww",ne,J),fe("W",ne),fe("WW",ne,J),ye(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=U(e)})),F("d",0,"do","day"),F("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),F("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),F("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),z("day","d"),z("weekday","e"),z("isoWeekday","E"),V("day",11),V("weekday",11),V("isoWeekday",11),fe("d",ne),fe("e",ne),fe("E",ne),fe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),fe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),fe("dddd",(function(e,t){return t.weekdaysRegex(e)})),ye(["dd","ddd","dddd"],(function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:h(n).invalidWeekday=e})),ye(["d","e","E"],(function(e,t,n,i){t[i]=U(e)}));var Be="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),We="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),He="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ve=de,Ye=de,qe=de;function Ue(e,t,n){var i,r,o,A=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=ge.call(this._weekdaysParse,A))?r:null:"ddd"===t?-1!==(r=ge.call(this._shortWeekdaysParse,A))?r:null:-1!==(r=ge.call(this._minWeekdaysParse,A))?r:null:"dddd"===t?-1!==(r=ge.call(this._weekdaysParse,A))||-1!==(r=ge.call(this._shortWeekdaysParse,A))||-1!==(r=ge.call(this._minWeekdaysParse,A))?r:null:"ddd"===t?-1!==(r=ge.call(this._shortWeekdaysParse,A))||-1!==(r=ge.call(this._weekdaysParse,A))||-1!==(r=ge.call(this._minWeekdaysParse,A))?r:null:-1!==(r=ge.call(this._minWeekdaysParse,A))||-1!==(r=ge.call(this._weekdaysParse,A))||-1!==(r=ge.call(this._shortWeekdaysParse,A))?r:null}function Qe(){function e(e,t){return t.length-e.length}var t,n,i,r,o,A=[],a=[],s=[],l=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),i=pe(this.weekdaysMin(n,"")),r=pe(this.weekdaysShort(n,"")),o=pe(this.weekdays(n,"")),A.push(i),a.push(r),s.push(o),l.push(i),l.push(r),l.push(o);A.sort(e),a.sort(e),s.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+A.join("|")+")","i")}function Xe(){return this.hours()%12||12}function Ge(e,t){F(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ze(e,t){return t._meridiemParse}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Xe),F("k",["kk",2],0,(function(){return this.hours()||24})),F("hmm",0,0,(function(){return""+Xe.apply(this)+P(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+Xe.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+P(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)})),Ge("a",!0),Ge("A",!1),z("hour","h"),V("hour",13),fe("a",Ze),fe("A",Ze),fe("H",ne),fe("h",ne),fe("k",ne),fe("HH",ne,J),fe("hh",ne,J),fe("kk",ne,J),fe("hmm",ie),fe("hmmss",re),fe("Hmm",ie),fe("Hmmss",re),ve(["H","HH"],3),ve(["k","kk"],(function(e,t,n){var i=U(e);t[3]=24===i?0:i})),ve(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ve(["h","hh"],(function(e,t,n){t[3]=U(e),h(n).bigHour=!0})),ve("hmm",(function(e,t,n){var i=e.length-2;t[3]=U(e.substr(0,i)),t[4]=U(e.substr(i)),h(n).bigHour=!0})),ve("hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=U(e.substr(0,i)),t[4]=U(e.substr(i,2)),t[5]=U(e.substr(r)),h(n).bigHour=!0})),ve("Hmm",(function(e,t,n){var i=e.length-2;t[3]=U(e.substr(0,i)),t[4]=U(e.substr(i))})),ve("Hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=U(e.substr(0,i)),t[4]=U(e.substr(i,2)),t[5]=U(e.substr(r))}));var Ke,Je=Q("Hours",!0),$e={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:we,monthsShort:_e,week:{dow:0,doy:6},weekdays:Be,weekdaysMin:He,weekdaysShort:We,meridiemParse:/[ap]\.?m?\.?/i},et={},tt={};function nt(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}function it(e){return e?e.toLowerCase().replace("_","-"):e}function rt(t){var n=null;if(void 0===et[t]&&void 0!==e&&e&&e.exports)try{n=Ke._abbr,function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),ot(n)}catch(e){et[t]=null}return et[t]}function ot(e,t){var n;return e&&((n=s(t)?at(e):At(e,t))?Ke=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ke._abbr}function At(e,t){if(null!==t){var n,i=$e;if(t.abbr=e,null!=et[e])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=et[e]._config;else if(null!=t.parentLocale)if(null!=et[t.parentLocale])i=et[t.parentLocale]._config;else{if(null==(n=rt(t.parentLocale)))return tt[t.parentLocale]||(tt[t.parentLocale]=[]),tt[t.parentLocale].push({name:e,config:t}),null;i=n._config}return et[e]=new D(C(i,t)),tt[e]&&tt[e].forEach((function(e){At(e.name,e.config)})),ot(e),et[e]}return delete et[e],null}function at(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ke;if(!r(e)){if(t=rt(e))return t;e=[e]}return function(e){for(var t,n,i,r,o=0;o<e.length;){for(t=(r=it(e[o]).split("-")).length,n=(n=it(e[o+1]))?n.split("-"):null;t>0;){if(i=rt(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&nt(r,n)>=t-1)break;t--}o++}return Ke}(e)}function st(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>xe(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,h(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),h(e)._overflowWeeks&&-1===t&&(t=7),h(e)._overflowWeekday&&-1===t&&(t=8),h(e).overflow=t),e}var lt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ct=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ut=/Z|[+-]\d\d(?::?\d\d)?/,dt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ft=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ht=/^\/?Date\((-?\d+)/i,pt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,gt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function mt(e){var t,n,i,r,o,A,a=e._i,s=lt.exec(a)||ct.exec(a);if(s){for(h(e).iso=!0,t=0,n=dt.length;t<n;t++)if(dt[t][1].exec(s[1])){r=dt[t][0],i=!1!==dt[t][2];break}if(null==r)return void(e._isValid=!1);if(s[3]){for(t=0,n=ft.length;t<n;t++)if(ft[t][1].exec(s[3])){o=(s[2]||" ")+ft[t][0];break}if(null==o)return void(e._isValid=!1)}if(!i&&null!=o)return void(e._isValid=!1);if(s[4]){if(!ut.exec(s[4]))return void(e._isValid=!1);A="Z"}e._f=r+(o||"")+(A||""),wt(e)}else e._isValid=!1}function vt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function yt(e){var t,n,i,r,o,A,a,s,l=pt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){if(n=l[4],i=l[3],r=l[2],o=l[5],A=l[6],a=l[7],s=[vt(n),_e.indexOf(i),parseInt(r,10),parseInt(o,10),parseInt(A,10)],a&&s.push(parseInt(a,10)),t=s,!function(e,t,n){return!e||We.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(h(n).weekdayMismatch=!0,n._isValid=!1,!1)}(l[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return gt[e];if(t)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(l[8],l[9],l[10]),e._d=Ne.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function bt(e,t,n){return null!=e?e:null!=t?t:n}function xt(e){var t,n,r,o,A,a=[];if(!e._d){for(r=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,i,r,o,A,a,s,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,A=4,n=bt(t.GG,e._a[0],Re(St(),1,4).year),i=bt(t.W,1),((r=bt(t.E,1))<1||r>7)&&(s=!0)):(o=e._locale._week.dow,A=e._locale._week.doy,l=Re(St(),o,A),n=bt(t.gg,e._a[0],l.year),i=bt(t.w,l.week),null!=t.d?((r=t.d)<0||r>6)&&(s=!0):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(s=!0)):r=o),i<1||i>je(n,o,A)?h(e)._overflowWeeks=!0:null!=s?h(e)._overflowWeekday=!0:(a=Le(n,i,r,o,A),e._a[0]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(A=bt(e._a[0],r[0]),(e._dayOfYear>Ee(A)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Ne(A,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ne:Ie).apply(null,a),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(h(e).weekdayMismatch=!0)}}function wt(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],h(e).empty=!0;var t,n,r,o,A,a,s=""+e._i,l=s.length,c=0;for(r=R(e._f,e._locale).match(E)||[],t=0;t<r.length;t++)o=r[t],(n=(s.match(he(o,e))||[])[0])&&((A=s.substr(0,s.indexOf(n))).length>0&&h(e).unusedInput.push(A),s=s.slice(s.indexOf(n)+n.length),c+=n.length),N[o]?(n?h(e).empty=!1:h(e).unusedTokens.push(o),be(o,n,e)):e._strict&&!n&&h(e).unusedTokens.push(o);h(e).charsLeftOver=l-c,s.length>0&&h(e).unusedInput.push(s),e._a[3]<=12&&!0===h(e).bigHour&&e._a[3]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(a=h(e).era)&&(e._a[0]=e._locale.erasConvertYear(a,e._a[0])),xt(e),st(e)}else yt(e);else mt(e)}function _t(e){var t=e._i,n=e._f;return e._locale=e._locale||at(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),x(t)?new b(st(t)):(c(t)?e._d=t:r(n)?function(e){var t,n,i,r,o,A,a=!1;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)o=0,A=!1,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],wt(t),p(t)&&(A=!0),o+=h(t).charsLeftOver,o+=10*h(t).unusedTokens.length,h(t).score=o,a?o<i&&(i=o,n=t):(null==i||o<i||A)&&(i=o,n=t,A&&(a=!0));d(e,n||t)}(e):n?wt(e):function(e){var t=e._i;s(t)?e._d=new Date(i.now()):c(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=ht.exec(e._i);null===t?(mt(e),!1===e._isValid&&(delete e._isValid,yt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):r(t)?(e._a=u(t.slice(0),(function(e){return parseInt(e,10)})),xt(e)):o(t)?function(e){if(!e._d){var t=W(e._i),n=void 0===t.day?t.date:t.day;e._a=u([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),xt(e)}}(e):l(t)?e._d=new Date(t):i.createFromInputFallback(e)}(e),p(e)||(e._d=null),e))}function kt(e,t,n,i,A){var s,l={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(o(e)&&a(e)||r(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=A,l._l=n,l._i=e,l._f=t,l._strict=i,(s=new b(st(_t(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function St(e,t,n,i){return kt(e,t,n,i,!1)}i.createFromInputFallback=_("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Tt=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()})),Mt=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}));function Ct(e,t){var n,i;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return St();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}var Dt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pt(e){var t=W(e),n=t.year||0,i=t.quarter||0,r=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=function(e){var t,n,i=!1;for(t in e)if(A(e,t)&&(-1===ge.call(Dt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<Dt.length;++n)if(e[Dt[n]]){if(i)return!1;parseFloat(e[Dt[n]])!==U(e[Dt[n]])&&(i=!0)}return!0}(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+a+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=at(),this._bubble()}function Et(e){return e instanceof Pt}function Ot(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function It(e,t){F(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+P(~~(e/60),2)+t+P(~~e%60,2)}))}It("Z",":"),It("ZZ",""),fe("Z",ue),fe("ZZ",ue),ve(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Ft(ue,e)}));var Nt=/([\+\-]|\d\d)/gi;function Ft(e,t){var n,i,r=(t||"").match(e);return null===r?null:0===(i=60*(n=((r[r.length-1]||[])+"").match(Nt)||["-",0,0])[1]+U(n[2]))?0:"+"===n[0]?i:-i}function Lt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(x(e)||c(e)?e.valueOf():St(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):St(e).local()}function Rt(e){return-Math.round(e._d.getTimezoneOffset())}function jt(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var zt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Wt(e,t){var n,i,r,o,a,s,c=e,u=null;return Et(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(c={},t?c[t]=+e:c.milliseconds=+e):(u=zt.exec(e))?(n="-"===u[1]?-1:1,c={y:0,d:U(u[2])*n,h:U(u[3])*n,m:U(u[4])*n,s:U(u[5])*n,ms:U(Ot(1e3*u[6]))*n}):(u=Bt.exec(e))?(n="-"===u[1]?-1:1,c={y:Ht(u[2],n),M:Ht(u[3],n),w:Ht(u[4],n),d:Ht(u[5],n),h:Ht(u[6],n),m:Ht(u[7],n),s:Ht(u[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(o=St(c.from),a=St(c.to),r=o.isValid()&&a.isValid()?(a=Lt(a,o),o.isBefore(a)?s=Vt(o,a):((s=Vt(a,o)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(c={}).ms=r.milliseconds,c.M=r.months),i=new Pt(c),Et(e)&&A(e,"_locale")&&(i._locale=e._locale),Et(e)&&A(e,"_isValid")&&(i._isValid=e._isValid),i}function Ht(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Vt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Yt(e,t){return function(n,i){var r;return null===i||isNaN(+i)||(T(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),qt(this,Wt(n,i),e),this}}function qt(e,t,n,r){var o=t._milliseconds,A=Ot(t._days),a=Ot(t._months);e.isValid()&&(r=null==r||r,a&&Ce(e,X(e,"Month")+a*n),A&&G(e,"Date",X(e,"Date")+A*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&i.updateOffset(e,A||a))}Wt.fn=Pt.prototype,Wt.invalid=function(){return Wt(NaN)};var Ut=Yt(1,"add"),Qt=Yt(-1,"subtract");function Xt(e){return"string"==typeof e||e instanceof String}function Gt(e){return x(e)||c(e)||Xt(e)||l(e)||function(e){var t=r(e),n=!1;return t&&(n=0===e.filter((function(t){return!l(t)&&Xt(e)})).length),t&&n}(e)||function(e){var t,n,i=o(e)&&!a(e),r=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<s.length;t+=1)n=s[t],r=r||A(e,n);return i&&r}(e)||null==e}function Zt(e){var t,n=o(e)&&!a(e),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<r.length;t+=1)i=i||A(e,r[t]);return n&&i}function Kt(e,t){if(e.date()<t.date())return-Kt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function Jt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=at(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var $t=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function en(){return this._locale}function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function An(){var e,t,n=[],i=[],r=[],o=[],A=this.eras();for(e=0,t=A.length;e<t;++e)i.push(pe(A[e].name)),n.push(pe(A[e].abbr)),r.push(pe(A[e].narrow)),o.push(pe(A[e].name)),o.push(pe(A[e].abbr)),o.push(pe(A[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function an(e,t){F(0,[e,e.length],0,t)}function sn(e,t,n,i,r){var o;return null==e?Re(this,i,r).year:(t>(o=je(e,i,r))&&(t=o),ln.call(this,e,t,n,i,r))}function ln(e,t,n,i,r){var o=Le(e,t,n,i,r),A=Ne(o.year,0,o.dayOfYear);return this.year(A.getUTCFullYear()),this.month(A.getUTCMonth()),this.date(A.getUTCDate()),this}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),fe("N",on),fe("NN",on),fe("NNN",on),fe("NNNN",(function(e,t){return t.erasNameRegex(e)})),fe("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ve(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,i){var r=n._locale.erasParse(e,i,n._strict);r?h(n).era=r:h(n).invalidEra=e})),fe("y",se),fe("yy",se),fe("yyy",se),fe("yyyy",se),fe("yo",(function(e,t){return t._eraYearOrdinalRegex||se})),ve(["y","yy","yyy","yyyy"],0),ve(["yo"],(function(e,t,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,r):t[0]=parseInt(e,10)})),F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),z("weekYear","gg"),z("isoWeekYear","GG"),V("weekYear",1),V("isoWeekYear",1),fe("G",le),fe("g",le),fe("GG",ne,J),fe("gg",ne,J),fe("GGGG",Ae,ee),fe("gggg",Ae,ee),fe("GGGGG",ae,te),fe("ggggg",ae,te),ye(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=U(e)})),ye(["gg","GG"],(function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)})),F("Q",0,"Qo","quarter"),z("quarter","Q"),V("quarter",7),fe("Q",K),ve("Q",(function(e,t){t[1]=3*(U(e)-1)})),F("D",["DD",2],"Do","date"),z("date","D"),V("date",9),fe("D",ne),fe("DD",ne,J),fe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ve(["D","DD"],2),ve("Do",(function(e,t){t[2]=U(e.match(ne)[0])}));var cn=Q("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),z("dayOfYear","DDD"),V("dayOfYear",4),fe("DDD",oe),fe("DDDD",$),ve(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=U(e)})),F("m",["mm",2],0,"minute"),z("minute","m"),V("minute",14),fe("m",ne),fe("mm",ne,J),ve(["m","mm"],4);var un=Q("Minutes",!1);F("s",["ss",2],0,"second"),z("second","s"),V("second",15),fe("s",ne),fe("ss",ne,J),ve(["s","ss"],5);var dn,fn,hn=Q("Seconds",!1);for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),z("millisecond","ms"),V("millisecond",16),fe("S",oe,K),fe("SS",oe,J),fe("SSS",oe,$),dn="SSSS";dn.length<=9;dn+="S")fe(dn,se);function pn(e,t){t[6]=U(1e3*("0."+e))}for(dn="S";dn.length<=9;dn+="S")ve(dn,pn);fn=Q("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var gn=b.prototype;function mn(e){return e}gn.add=Ut,gn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Gt(arguments[0])?(e=arguments[0],t=void 0):Zt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||St(),r=Lt(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",A=t&&(M(t[o])?t[o].call(this,n):t[o]);return this.format(A||this.localeData().calendar(o,this,St(n)))},gn.clone=function(){return new b(this)},gn.diff=function(e,t,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=Lt(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=B(t)){case"year":o=Kt(this,i)/12;break;case"month":o=Kt(this,i);break;case"quarter":o=Kt(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:q(o)},gn.endOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}return this._d.setTime(t),i.updateOffset(this,!0),this},gn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=L(this,e);return this.localeData().postformat(t)},gn.from=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||St(e).isValid())?Wt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},gn.fromNow=function(e){return this.from(St(),e)},gn.to=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||St(e).isValid())?Wt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},gn.toNow=function(e){return this.to(St(),e)},gn.get=function(e){return M(this[e=B(e)])?this[e]():this},gn.invalidAt=function(){return h(this).overflow},gn.isAfter=function(e,t){var n=x(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},gn.isBefore=function(e,t){var n=x(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},gn.isBetween=function(e,t,n,i){var r=x(e)?e:St(e),o=x(t)?t:St(t);return!!(this.isValid()&&r.isValid()&&o.isValid())&&(("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(o,n):!this.isAfter(o,n)))},gn.isSame=function(e,t){var n,i=x(e)?e:St(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},gn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},gn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},gn.isValid=function(){return p(this)},gn.lang=$t,gn.locale=Jt,gn.localeData=en,gn.max=Mt,gn.min=Tt,gn.parsingFlags=function(){return d({},h(this))},gn.set=function(e,t){if("object"==typeof e){var n,i=function(e){var t,n=[];for(t in e)A(e,t)&&n.push({unit:t,priority:H[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=W(e));for(n=0;n<i.length;n++)this[i[n].unit](e[i[n].unit])}else if(M(this[e=B(e)]))return this[e](t);return this},gn.startOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}return this._d.setTime(t),i.updateOffset(this,!0),this},gn.subtract=Qt,gn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},gn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},gn.toDate=function(){return new Date(this.valueOf())},gn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?L(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):M(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",L(n,"Z")):L(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},gn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,i="moment",r="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=r+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(gn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),gn.toJSON=function(){return this.isValid()?this.toISOString():null},gn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},gn.unix=function(){return Math.floor(this.valueOf()/1e3)},gn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},gn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},gn.eraName=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].name;if(i[e].until<=n&&n<=i[e].since)return i[e].name}return""},gn.eraNarrow=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].narrow;if(i[e].until<=n&&n<=i[e].since)return i[e].narrow}return""},gn.eraAbbr=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].abbr;if(i[e].until<=n&&n<=i[e].since)return i[e].abbr}return""},gn.eraYear=function(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-i(o[e].since).year())*n+o[e].offset;return this.year()},gn.year=Oe,gn.isLeapYear=function(){return Y(this.year())},gn.weekYear=function(e){return sn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},gn.isoWeekYear=function(e){return sn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},gn.quarter=gn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},gn.month=De,gn.daysInMonth=function(){return xe(this.year(),this.month())},gn.week=gn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},gn.isoWeek=gn.isoWeeks=function(e){var t=Re(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},gn.weeksInYear=function(){var e=this.localeData()._week;return je(this.year(),e.dow,e.doy)},gn.weeksInWeekYear=function(){var e=this.localeData()._week;return je(this.weekYear(),e.dow,e.doy)},gn.isoWeeksInYear=function(){return je(this.year(),1,4)},gn.isoWeeksInISOWeekYear=function(){return je(this.isoWeekYear(),1,4)},gn.date=cn,gn.day=gn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},gn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},gn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},gn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},gn.hour=gn.hours=Je,gn.minute=gn.minutes=un,gn.second=gn.seconds=hn,gn.millisecond=gn.milliseconds=fn,gn.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ft(ue,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Rt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?qt(this,Wt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Rt(this)},gn.utc=function(e){return this.utcOffset(0,e)},gn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Rt(this),"m")),this},gn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ft(ce,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},gn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?St(e).utcOffset():0,(this.utcOffset()-e)%60==0)},gn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},gn.isLocal=function(){return!!this.isValid()&&!this._isUTC},gn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},gn.isUtc=jt,gn.isUTC=jt,gn.zoneAbbr=function(){return this._isUTC?"UTC":""},gn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},gn.dates=_("dates accessor is deprecated. Use date instead.",cn),gn.months=_("months accessor is deprecated. Use month instead",De),gn.years=_("years accessor is deprecated. Use year instead",Oe),gn.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),gn.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e,t={};return y(t,this),(t=_t(t))._a?(e=t._isUTC?f(t._a):St(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var i,r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),A=0;for(i=0;i<r;i++)(n&&e[i]!==t[i]||!n&&U(e[i])!==U(t[i]))&&A++;return A+o}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var vn=D.prototype;function yn(e,t,n,i){var r=at(),o=f().set(i,t);return r[n](o,e)}function bn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return yn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=yn(e,i,n,"month");return r}function xn(e,t,n,i){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var r,o=at(),A=e?o._week.dow:0,a=[];if(null!=n)return yn(t,(n+A)%7,i,"day");for(r=0;r<7;r++)a[r]=yn(t,(r+A)%7,i,"day");return a}vn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return M(i)?i.call(t,n):i},vn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(E).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},vn.invalidDate=function(){return this._invalidDate},vn.ordinal=function(e){return this._ordinal.replace("%d",e)},vn.preparse=mn,vn.postformat=mn,vn.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return M(r)?r(e,t,n,i):r.replace(/%d/i,e)},vn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return M(n)?n(t):n.replace(/%s/i,t)},vn.set=function(e){var t,n;for(n in e)A(e,n)&&(M(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},vn.eras=function(e,t){var n,r,o,A=this._eras||at("en")._eras;for(n=0,r=A.length;n<r;++n){switch(typeof A[n].since){case"string":o=i(A[n].since).startOf("day"),A[n].since=o.valueOf()}switch(typeof A[n].until){case"undefined":A[n].until=1/0;break;case"string":o=i(A[n].until).startOf("day").valueOf(),A[n].until=o.valueOf()}}return A},vn.erasParse=function(e,t,n){var i,r,o,A,a,s=this.eras();for(e=e.toUpperCase(),i=0,r=s.length;i<r;++i)if(o=s[i].name.toUpperCase(),A=s[i].abbr.toUpperCase(),a=s[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(A===e)return s[i];break;case"NNNN":if(o===e)return s[i];break;case"NNNNN":if(a===e)return s[i]}else if([o,A,a].indexOf(e)>=0)return s[i]},vn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*n},vn.erasAbbrRegex=function(e){return A(this,"_erasAbbrRegex")||An.call(this),e?this._erasAbbrRegex:this._erasRegex},vn.erasNameRegex=function(e){return A(this,"_erasNameRegex")||An.call(this),e?this._erasNameRegex:this._erasRegex},vn.erasNarrowRegex=function(e){return A(this,"_erasNarrowRegex")||An.call(this),e?this._erasNarrowRegex:this._erasRegex},vn.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ke).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone},vn.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ke.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},vn.monthsParse=function(e,t,n){var i,r,o;if(this._monthsParseExact)return Me.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},vn.monthsRegex=function(e){return this._monthsParseExact?(A(this,"_monthsRegex")||Pe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(A(this,"_monthsRegex")||(this._monthsRegex=Te),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},vn.monthsShortRegex=function(e){return this._monthsParseExact?(A(this,"_monthsRegex")||Pe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(A(this,"_monthsShortRegex")||(this._monthsShortRegex=Se),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},vn.week=function(e){return Re(e,this._week.dow,this._week.doy).week},vn.firstDayOfYear=function(){return this._week.doy},vn.firstDayOfWeek=function(){return this._week.dow},vn.weekdays=function(e,t){var n=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?ze(n,this._week.dow):e?n[e.day()]:n},vn.weekdaysMin=function(e){return!0===e?ze(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},vn.weekdaysShort=function(e){return!0===e?ze(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},vn.weekdaysParse=function(e,t,n){var i,r,o;if(this._weekdaysParseExact)return Ue.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},vn.weekdaysRegex=function(e){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(A(this,"_weekdaysRegex")||(this._weekdaysRegex=Ve),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},vn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(A(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ye),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},vn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(A(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},vn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},vn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===U(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=_("moment.lang is deprecated. Use moment.locale instead.",ot),i.langData=_("moment.langData is deprecated. Use moment.localeData instead.",at);var wn=Math.abs;function _n(e,t,n,i){var r=Wt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function kn(e){return e<0?Math.floor(e):Math.ceil(e)}function Sn(e){return 4800*e/146097}function Tn(e){return 146097*e/4800}function Mn(e){return function(){return this.as(e)}}var Cn=Mn("ms"),Dn=Mn("s"),Pn=Mn("m"),En=Mn("h"),On=Mn("d"),In=Mn("w"),Nn=Mn("M"),Fn=Mn("Q"),Ln=Mn("y");function Rn(e){return function(){return this.isValid()?this._data[e]:NaN}}var jn=Rn("milliseconds"),zn=Rn("seconds"),Bn=Rn("minutes"),Wn=Rn("hours"),Hn=Rn("days"),Vn=Rn("months"),Yn=Rn("years"),qn=Math.round,Un={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Qn(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}var Xn=Math.abs;function Gn(e){return(e>0)-(e<0)||+e}function Zn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,r,o,A,a,s=Xn(this._milliseconds)/1e3,l=Xn(this._days),c=Xn(this._months),u=this.asSeconds();return u?(e=q(s/60),t=q(e/60),s%=60,e%=60,n=q(c/12),c%=12,i=s?s.toFixed(3).replace(/\.?0+$/,""):"",r=u<0?"-":"",o=Gn(this._months)!==Gn(u)?"-":"",A=Gn(this._days)!==Gn(u)?"-":"",a=Gn(this._milliseconds)!==Gn(u)?"-":"",r+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(l?A+l+"D":"")+(t||e||s?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(s?a+i+"S":"")):"P0D"}var Kn=Pt.prototype;return Kn.isValid=function(){return this._isValid},Kn.abs=function(){var e=this._data;return this._milliseconds=wn(this._milliseconds),this._days=wn(this._days),this._months=wn(this._months),e.milliseconds=wn(e.milliseconds),e.seconds=wn(e.seconds),e.minutes=wn(e.minutes),e.hours=wn(e.hours),e.months=wn(e.months),e.years=wn(e.years),this},Kn.add=function(e,t){return _n(this,e,t,1)},Kn.subtract=function(e,t){return _n(this,e,t,-1)},Kn.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+Sn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Tn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},Kn.asMilliseconds=Cn,Kn.asSeconds=Dn,Kn.asMinutes=Pn,Kn.asHours=En,Kn.asDays=On,Kn.asWeeks=In,Kn.asMonths=Nn,Kn.asQuarters=Fn,Kn.asYears=Ln,Kn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*U(this._months/12):NaN},Kn._bubble=function(){var e,t,n,i,r,o=this._milliseconds,A=this._days,a=this._months,s=this._data;return o>=0&&A>=0&&a>=0||o<=0&&A<=0&&a<=0||(o+=864e5*kn(Tn(a)+A),A=0,a=0),s.milliseconds=o%1e3,e=q(o/1e3),s.seconds=e%60,t=q(e/60),s.minutes=t%60,n=q(t/60),s.hours=n%24,A+=q(n/24),r=q(Sn(A)),a+=r,A-=kn(Tn(r)),i=q(a/12),a%=12,s.days=A,s.months=a,s.years=i,this},Kn.clone=function(){return Wt(this)},Kn.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},Kn.milliseconds=jn,Kn.seconds=zn,Kn.minutes=Bn,Kn.hours=Wn,Kn.days=Hn,Kn.weeks=function(){return q(this.days()/7)},Kn.months=Vn,Kn.years=Yn,Kn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,o=Un;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(o=Object.assign({},Un,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=this.localeData(),i=function(e,t,n,i){var r=Wt(e).abs(),o=qn(r.as("s")),A=qn(r.as("m")),a=qn(r.as("h")),s=qn(r.as("d")),l=qn(r.as("M")),c=qn(r.as("w")),u=qn(r.as("y")),d=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||A<=1&&["m"]||A<n.m&&["mm",A]||a<=1&&["h"]||a<n.h&&["hh",a]||s<=1&&["d"]||s<n.d&&["dd",s];return null!=n.w&&(d=d||c<=1&&["w"]||c<n.w&&["ww",c]),(d=d||l<=1&&["M"]||l<n.M&&["MM",l]||u<=1&&["y"]||["yy",u])[2]=t,d[3]=+e>0,d[4]=i,Qn.apply(null,d)}(this,!r,o,n),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},Kn.toISOString=Zn,Kn.toString=Zn,Kn.toJSON=Zn,Kn.locale=Jt,Kn.localeData=en,Kn.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Zn),Kn.lang=$t,F("X",0,0,"unix"),F("x",0,0,"valueOf"),fe("x",le),fe("X",/[+-]?\d+(\.\d{1,3})?/),ve("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ve("x",(function(e,t,n){n._d=new Date(U(e))})),
//! moment.js
i.version="2.29.1",t=St,i.fn=gn,i.min=function(){var e=[].slice.call(arguments,0);return Ct("isBefore",e)},i.max=function(){var e=[].slice.call(arguments,0);return Ct("isAfter",e)},i.now=function(){return Date.now?Date.now():+new Date},i.utc=f,i.unix=function(e){return St(1e3*e)},i.months=function(e,t){return bn(e,t,"months")},i.isDate=c,i.locale=ot,i.invalid=g,i.duration=Wt,i.isMoment=x,i.weekdays=function(e,t,n){return xn(e,t,n,"weekdays")},i.parseZone=function(){return St.apply(null,arguments).parseZone()},i.localeData=at,i.isDuration=Et,i.monthsShort=function(e,t){return bn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return xn(e,t,n,"weekdaysMin")},i.defineLocale=At,i.updateLocale=function(e,t){if(null!=t){var n,i,r=$e;null!=et[e]&&null!=et[e].parentLocale?et[e].set(C(et[e]._config,t)):(null!=(i=rt(e))&&(r=i._config),t=C(r,t),null==i&&(t.abbr=e),(n=new D(t)).parentLocale=et[e],et[e]=n),ot(e)}else null!=et[e]&&(null!=et[e].parentLocale?(et[e]=et[e].parentLocale,e===ot()&&ot(e)):null!=et[e]&&delete et[e]);return et[e]},i.locales=function(){return k(et)},i.weekdaysShort=function(e,t,n){return xn(e,t,n,"weekdaysShort")},i.normalizeUnits=B,i.relativeTimeRounding=function(e){return void 0===e?qn:"function"==typeof e&&(qn=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==Un[e]&&(void 0===t?Un[e]:(Un[e]=t,"s"===e&&(Un.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=gn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,n(9)(e))},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var r=(A=i,a=btoa(unescape(encodeURIComponent(JSON.stringify(A)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(s," */")),o=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(o).concat([r]).join("\n")}var A,a,s;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var A=this[o][0];null!=A&&(r[A]=!0)}for(var a=0;a<e.length;a++){var s=[].concat(e[a]);i&&r[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},function(e,t,n){"use strict";n.r(t),t.default="data:font/woff;base64,d09GRgABAAAAAAmUAA0AAAAAECgABAAlAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAJeAAAABoAAAAchqL27UdERUYAAAlcAAAAHAAAAB4AJwAaT1MvMgAAAZwAAAA/AAAAYPUgCNFjbWFwAAACCAAAAIAAAAGqeXFvLWdhc3AAAAlUAAAACAAAAAgAAAAQZ2x5ZgAAArQAAAUyAAAJPJT0Hl5oZWFkAAABMAAAADEAAAA2E+xUSWhoZWEAAAFkAAAAHAAAACQHwgPFaG10eAAAAdwAAAArAAAAMBVWBXJsb2NhAAACiAAAACoAAAAqFtoTZG1heHAAAAGAAAAAGgAAACAAHADMbmFtZQAAB+gAAAD7AAACCiCr5Oxwb3N0AAAI5AAAAHAAAADaiBdXf3icY2BkYGBgiduxq2+fRzy/zVcGeRYGELgRdWMWgv7/gIWBuQHI5WBgAokCAIZRDOQAAAB4nGNgZGBgPvD/AAMDCwMIAElGBlTAAgBMVgKReJxjYGRgYBBhmMPAzgACTAwIoAciABNAAOkAAHicY2BmYWCcwMDKwMA0k+kMAwNDP4RmfM1gzMjJgAoYBdAEGBye8b1exnzg/wEGB2YgBqlBklVgYAQATBsL5QB4nGNhYFBiYWBwAGIGFgZGIGT4xxgIxA1AAQeGUCDUAtIQVjQjAwB4sAXeAHicY2BgYGaAYBkGRgYQWALkMYL5LAwdQFqOQQAowgdk8T7jeybwTPqZ3rN5L8Ve6ryse9nzcsLLTa+X/f8P1gmRlwDLiwLla5HkGf9/lfwq+UXyreRtyRyxb2IPxSaKtYg1iiWI5ELtxQMY2RjgihiZgAQTugJCJgx9AABc2y9kAAAAKgCKAIoAngCyANIA8gEQATABqAHYAjQCXANEA2QDxAPiBE4EYgSeAAB4nNVVzW8TRxSfN7M76zW7sTf+Yo2IWW/iDQ61k/XHJk4KSxBQGqQEtQ6i9FCJqlUvYP6C7qES4m/oAVr1UCWHikjcqtZCvSSKBD0Al0pF3Hpo1XKLFC99s45DXIHaazfS85vfvK95+b0ZQkmREHDpGmFEIZV7QKoLG4pEfnfvcfmXhQ1GUSX3mIBlAW8oHHYXNkDgNcMynJphFyH5x/Y2XeutFuknhFDiE8K6LCA1Mo/RFa7kuOLwBPBiFUqOUnK8Eir1U9D0nKaXa6LiFiCb87I5JYtKWnKb9VKRp9n3t7TspYnp66VyxmpamXLp+vTEpax2S5LetNH7806nc6cDX/wX46GNbzrCEwsGgocQ9XNcHIKaUTNo99mzrk8JBGEQ4gnF92Y7YQUBJWHfjoRgMEp9ksRFLptWRB9QOKIFlOyoqnpE3d5Goao71N+JFFwLeEfkuUR+oAF9EPkP/FB4oms0GLaH7n68fFyN/DG/j/lvkAQuBn4oRCkH0gtzGM6OuQPM/d1e7r5PYv8M8K+5o05JJOrRexjBPgK2YU+UwS45FazFLnKlAnZRGcGDZdK5MYxda0ENNxv1Zs1FNngnoeZGG6jj1hhk0sgl1Nxmo16yKen33AcAbh6+ODMze/Fz51BOa1Qr59L4natUG3IyXnn305vLMSNezhU+npsqleZTKVlpAYP6hdPTlXhSXul0VsAPuxiJ+M1K9Ww6fWGBsn6AfrBF+frS8k1KlfFpL5Fojk+UWwBL9Zl35MXOykpHHNUnAXKfRPN0iOQJSVmZ/T8w0nwKGjo0RPFGnyjkZUQr5qf0uyL73clZ6vt+1/dpEN7VU+J4s5PwkWglI20U66xNjpAT5G3saDpqnV2M2tmoY7e85l6/Um42gwltq1hqGNhNq2EVOSLZmiWyi949ThotxzlxwnFaRvKgHoya5mhvVUgx2OOuO07XhIT1yAC/PeM5oc85DryPDm3DNA26PmqWXbvXtl3Xpuu2K3gwqDtBslj1PwpJiSoNi7UPZFLMUZy0KdY+GKlHDJOWCfa2/PIZe4y8SmMfFskVcoPcIl9iZDywAiNIqZIDpaYHyB7Ls2ZhphjhORgTxBF4wwDEeLqwB52EKiAXZ5QhdOb18AAFN5uLGKn0c0a8Ff+EokByA2NH2LL1GA+rPBFTkzz8WQMNnip6DFbLYZA8qoXH82BCRT9mJMd0eKSPhERSJM4fsZgkxRgH5aEUkz6UFKa8woQmvw6jI7Ek51hxP11fU5MF3YTDIkVBM6mpH0uydvg1WoYnhQlM67YOP3E+pWnh/OHzZvhQ1zUNHmjHDLgd/sYYH+VPJBb9PmXsykB5IwAXMG8ypiZ4VEJCjTQMb543RWjzXF7XI14P3gwxN4h4OC0mXqkpLweG5bNgN8CRwOno4WiIFcN7uBvgOhBz8b9/c/bnYwRvjAyS7Ch4gknQsNpII2vNwoneXWPtIPxxbLnca39bXh6D0wE5OFuT5CwhExG363vX69DFKnjv7VMShi6LzPBFwr6C8EXBzpuXW60zi63W5bxp5lFf9K5N4hhxXUHWaBDf/TWbXaq5cy23tpTNRnprLtLPAujHrzXPoK+JXz/O/GretAvhC5BlzjVLg0dDjjW3r7u1OdGTq+Qzdps+JzIhKjiKCqwazt//ABK0QJ+HC/evhn/RQvQO441Lu2QieqPqTqmYwDMUo3FF0Z/CU4NpRAP61paqxvPxzc24eKi2cCVrWJC8udn/xZew+2pvYCnJsrS1JSQu/gaAQqfTAAB4nJ2QMWrDMBiFnxzHpWkIHUsn0QN4iSFzKBRCyeKhzmbsWJiQRALZGbL0LDlBoefoBXKWTHl2/xNYIPH9T+89gQDM8AOFbik84004wAPehUfUj8Ih+SI8xhR/whH1m/AEr2rJlAofqei+oeOAb82FR9Q/hUPyt/AYL/gVjqhfhSdI1BMyVDBosEeOFbZwsJxybFDC4wBklWn2+WrrbJNvSk8lZaDGiZcFLUhNfToUhAFVAyJfDHiadr1ZI0HML1jwwvhm56xO4vliUPNHb2rZWTNq+3cKzoZVmrEzz/+qNXfnjRlyttW1scYXral0edasXDtnY9wBckpbWAB4nF3NSw6CQBCE4fkHFRDfehBmEkZ6ySCHcePO+4N2L4y1+dKVStp59xvcf25L6Z2nYMWaDSUVNVsaduw5cOTEmQvX8v16tks+Tqmd1GB36E0xBzOr0faiSujMpMZRvT9M2/XWi/6RHL/mIc3xrilZAAEAAf//AA94nGNgZGBg4AFiMSBmYmAEQmEgZgHzGAAEbwBCeJxjYGBgZACCq29dd4DoG1E3ZsFoAFYSCAkAAA=="},function(e,t,n){var i,r;
/**
 * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9
 * Copyright (C) 2020 Oliver Nightingale
 * @license MIT
 */!function(){var o,A,a,s,l,c,u,d,f,h,p,g,m,v,y,b,x,w,_,k,S,T,M,C,D,P,E=function(e){var t=new E.Builder;return t.pipeline.add(E.trimmer,E.stopWordFilter,E.stemmer),t.searchPipeline.add(E.stemmer),e.call(t,t),t.build()};E.version="2.3.9"
/*!
 * lunr.utils
 * Copyright (C) 2020 Oliver Nightingale
 */,E.utils={},E.utils.warn=(o=this,function(e){o.console&&console.warn&&console.warn(e)}),E.utils.asString=function(e){return null==e?"":e.toString()},E.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),n=Object.keys(e),i=0;i<n.length;i++){var r=n[i],o=e[r];if(Array.isArray(o))t[r]=o.slice();else{if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o)throw new TypeError("clone is not deep and does not support nested objects");t[r]=o}}return t},E.FieldRef=function(e,t,n){this.docRef=e,this.fieldName=t,this._stringValue=n},E.FieldRef.joiner="/",E.FieldRef.fromString=function(e){var t=e.indexOf(E.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var n=e.slice(0,t),i=e.slice(t+1);return new E.FieldRef(i,n,e)},E.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+E.FieldRef.joiner+this.docRef),this._stringValue}
/*!
 * lunr.Set
 * Copyright (C) 2020 Oliver Nightingale
 */,E.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},E.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},E.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},E.Set.prototype.contains=function(e){return!!this.elements[e]},E.Set.prototype.intersect=function(e){var t,n,i,r=[];if(e===E.Set.complete)return this;if(e===E.Set.empty)return e;this.length<e.length?(t=this,n=e):(t=e,n=this),i=Object.keys(t.elements);for(var o=0;o<i.length;o++){var A=i[o];A in n.elements&&r.push(A)}return new E.Set(r)},E.Set.prototype.union=function(e){return e===E.Set.complete?E.Set.complete:e===E.Set.empty?this:new E.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},E.idf=function(e,t){var n=0;for(var i in e)"_index"!=i&&(n+=Object.keys(e[i]).length);var r=(t-n+.5)/(n+.5);return Math.log(1+Math.abs(r))},E.Token=function(e,t){this.str=e||"",this.metadata=t||{}},E.Token.prototype.toString=function(){return this.str},E.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},E.Token.prototype.clone=function(e){return e=e||function(e){return e},new E.Token(e(this.str,this.metadata),this.metadata)}
/*!
 * lunr.tokenizer
 * Copyright (C) 2020 Oliver Nightingale
 */,E.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map((function(e){return new E.Token(E.utils.asString(e).toLowerCase(),E.utils.clone(t))}));for(var n=e.toString().toLowerCase(),i=n.length,r=[],o=0,A=0;o<=i;o++){var a=o-A;if(n.charAt(o).match(E.tokenizer.separator)||o==i){if(a>0){var s=E.utils.clone(t)||{};s.position=[A,a],s.index=r.length,r.push(new E.Token(n.slice(A,o),s))}A=o+1}}return r},E.tokenizer.separator=/[\s\-]+/
/*!
 * lunr.Pipeline
 * Copyright (C) 2020 Oliver Nightingale
 */,E.Pipeline=function(){this._stack=[]},E.Pipeline.registeredFunctions=Object.create(null),E.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&E.utils.warn("Overwriting existing registered function: "+t),e.label=t,E.Pipeline.registeredFunctions[e.label]=e},E.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||E.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},E.Pipeline.load=function(e){var t=new E.Pipeline;return e.forEach((function(e){var n=E.Pipeline.registeredFunctions[e];if(!n)throw new Error("Cannot load unregistered function: "+e);t.add(n)})),t},E.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach((function(e){E.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},E.Pipeline.prototype.after=function(e,t){E.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,t)},E.Pipeline.prototype.before=function(e,t){E.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,t)},E.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},E.Pipeline.prototype.run=function(e){for(var t=this._stack.length,n=0;n<t;n++){for(var i=this._stack[n],r=[],o=0;o<e.length;o++){var A=i(e[o],o,e);if(null!=A&&""!==A)if(Array.isArray(A))for(var a=0;a<A.length;a++)r.push(A[a]);else r.push(A)}e=r}return e},E.Pipeline.prototype.runString=function(e,t){var n=new E.Token(e,t);return this.run([n]).map((function(e){return e.toString()}))},E.Pipeline.prototype.reset=function(){this._stack=[]},E.Pipeline.prototype.toJSON=function(){return this._stack.map((function(e){return E.Pipeline.warnIfFunctionNotRegistered(e),e.label}))}
/*!
 * lunr.Vector
 * Copyright (C) 2020 Oliver Nightingale
 */,E.Vector=function(e){this._magnitude=0,this.elements=e||[]},E.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,n=this.elements.length/2,i=n-t,r=Math.floor(i/2),o=this.elements[2*r];i>1&&(o<e&&(t=r),o>e&&(n=r),o!=e);)i=n-t,r=t+Math.floor(i/2),o=this.elements[2*r];return o==e||o>e?2*r:o<e?2*(r+1):void 0},E.Vector.prototype.insert=function(e,t){this.upsert(e,t,(function(){throw"duplicate index"}))},E.Vector.prototype.upsert=function(e,t,n){this._magnitude=0;var i=this.positionForIndex(e);this.elements[i]==e?this.elements[i+1]=n(this.elements[i+1],t):this.elements.splice(i,0,e,t)},E.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,n=1;n<t;n+=2){var i=this.elements[n];e+=i*i}return this._magnitude=Math.sqrt(e)},E.Vector.prototype.dot=function(e){for(var t=0,n=this.elements,i=e.elements,r=n.length,o=i.length,A=0,a=0,s=0,l=0;s<r&&l<o;)(A=n[s])<(a=i[l])?s+=2:A>a?l+=2:A==a&&(t+=n[s+1]*i[l+1],s+=2,l+=2);return t},E.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},E.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,n=0;t<this.elements.length;t+=2,n++)e[n]=this.elements[t];return e},E.Vector.prototype.toJSON=function(){return this.elements}
/*!
 * lunr.stemmer
 * Copyright (C) 2020 Oliver Nightingale
 * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt
 */,E.stemmer=(A={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},a={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},s="[aeiouy]",l="[^aeiou][^aeiouy]*",c=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),u=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),d=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*([aeiouy][aeiou]*)?$"),f=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy]"),h=/^(.+?)(ss|i)es$/,p=/^(.+?)([^s])s$/,g=/^(.+?)eed$/,m=/^(.+?)(ed|ing)$/,v=/.$/,y=/(at|bl|iz)$/,b=new RegExp("([^aeiouylsz])\\1$"),x=new RegExp("^"+l+s+"[^aeiouwxy]$"),w=/^(.+?[^aeiou])y$/,_=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,k=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,S=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,T=/^(.+?)(s|t)(ion)$/,M=/^(.+?)e$/,C=/ll$/,D=new RegExp("^"+l+s+"[^aeiouwxy]$"),P=function(e){var t,n,i,r,o,s,l;if(e.length<3)return e;if("y"==(i=e.substr(0,1))&&(e=i.toUpperCase()+e.substr(1)),o=p,(r=h).test(e)?e=e.replace(r,"$1$2"):o.test(e)&&(e=e.replace(o,"$1$2")),o=m,(r=g).test(e)){var P=r.exec(e);(r=c).test(P[1])&&(r=v,e=e.replace(r,""))}else o.test(e)&&(t=(P=o.exec(e))[1],(o=f).test(t)&&(s=b,l=x,(o=y).test(e=t)?e+="e":s.test(e)?(r=v,e=e.replace(r,"")):l.test(e)&&(e+="e")));return(r=w).test(e)&&(e=(t=(P=r.exec(e))[1])+"i"),(r=_).test(e)&&(t=(P=r.exec(e))[1],n=P[2],(r=c).test(t)&&(e=t+A[n])),(r=k).test(e)&&(t=(P=r.exec(e))[1],n=P[2],(r=c).test(t)&&(e=t+a[n])),o=T,(r=S).test(e)?(t=(P=r.exec(e))[1],(r=u).test(t)&&(e=t)):o.test(e)&&(t=(P=o.exec(e))[1]+P[2],(o=u).test(t)&&(e=t)),(r=M).test(e)&&(t=(P=r.exec(e))[1],o=d,s=D,((r=u).test(t)||o.test(t)&&!s.test(t))&&(e=t)),o=u,(r=C).test(e)&&o.test(e)&&(r=v,e=e.replace(r,"")),"y"==i&&(e=i.toLowerCase()+e.substr(1)),e},function(e){return e.update(P)}),E.Pipeline.registerFunction(E.stemmer,"stemmer")
/*!
 * lunr.stopWordFilter
 * Copyright (C) 2020 Oliver Nightingale
 */,E.generateStopWordFilter=function(e){var t=e.reduce((function(e,t){return e[t]=t,e}),{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},E.stopWordFilter=E.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),E.Pipeline.registerFunction(E.stopWordFilter,"stopWordFilter")
/*!
 * lunr.trimmer
 * Copyright (C) 2020 Oliver Nightingale
 */,E.trimmer=function(e){return e.update((function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")}))},E.Pipeline.registerFunction(E.trimmer,"trimmer")
/*!
 * lunr.TokenSet
 * Copyright (C) 2020 Oliver Nightingale
 */,E.TokenSet=function(){this.final=!1,this.edges={},this.id=E.TokenSet._nextId,E.TokenSet._nextId+=1},E.TokenSet._nextId=1,E.TokenSet.fromArray=function(e){for(var t=new E.TokenSet.Builder,n=0,i=e.length;n<i;n++)t.insert(e[n]);return t.finish(),t.root},E.TokenSet.fromClause=function(e){return"editDistance"in e?E.TokenSet.fromFuzzyString(e.term,e.editDistance):E.TokenSet.fromString(e.term)},E.TokenSet.fromFuzzyString=function(e,t){for(var n=new E.TokenSet,i=[{node:n,editsRemaining:t,str:e}];i.length;){var r=i.pop();if(r.str.length>0){var o,A=r.str.charAt(0);A in r.node.edges?o=r.node.edges[A]:(o=new E.TokenSet,r.node.edges[A]=o),1==r.str.length&&(o.final=!0),i.push({node:o,editsRemaining:r.editsRemaining,str:r.str.slice(1)})}if(0!=r.editsRemaining){if("*"in r.node.edges)var a=r.node.edges["*"];else{a=new E.TokenSet;r.node.edges["*"]=a}if(0==r.str.length&&(a.final=!0),i.push({node:a,editsRemaining:r.editsRemaining-1,str:r.str}),r.str.length>1&&i.push({node:r.node,editsRemaining:r.editsRemaining-1,str:r.str.slice(1)}),1==r.str.length&&(r.node.final=!0),r.str.length>=1){if("*"in r.node.edges)var s=r.node.edges["*"];else{s=new E.TokenSet;r.node.edges["*"]=s}1==r.str.length&&(s.final=!0),i.push({node:s,editsRemaining:r.editsRemaining-1,str:r.str.slice(1)})}if(r.str.length>1){var l,c=r.str.charAt(0),u=r.str.charAt(1);u in r.node.edges?l=r.node.edges[u]:(l=new E.TokenSet,r.node.edges[u]=l),1==r.str.length&&(l.final=!0),i.push({node:l,editsRemaining:r.editsRemaining-1,str:c+r.str.slice(2)})}}}return n},E.TokenSet.fromString=function(e){for(var t=new E.TokenSet,n=t,i=0,r=e.length;i<r;i++){var o=e[i],A=i==r-1;if("*"==o)t.edges[o]=t,t.final=A;else{var a=new E.TokenSet;a.final=A,t.edges[o]=a,t=a}}return n},E.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var n=t.pop(),i=Object.keys(n.node.edges),r=i.length;n.node.final&&(n.prefix.charAt(0),e.push(n.prefix));for(var o=0;o<r;o++){var A=i[o];t.push({prefix:n.prefix.concat(A),node:n.node.edges[A]})}}return e},E.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),n=t.length,i=0;i<n;i++){var r=t[i];e=e+r+this.edges[r].id}return e},E.TokenSet.prototype.intersect=function(e){for(var t=new E.TokenSet,n=void 0,i=[{qNode:e,output:t,node:this}];i.length;){n=i.pop();for(var r=Object.keys(n.qNode.edges),o=r.length,A=Object.keys(n.node.edges),a=A.length,s=0;s<o;s++)for(var l=r[s],c=0;c<a;c++){var u=A[c];if(u==l||"*"==l){var d=n.node.edges[u],f=n.qNode.edges[l],h=d.final&&f.final,p=void 0;u in n.output.edges?(p=n.output.edges[u]).final=p.final||h:((p=new E.TokenSet).final=h,n.output.edges[u]=p),i.push({qNode:f,output:p,node:d})}}}return t},E.TokenSet.Builder=function(){this.previousWord="",this.root=new E.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},E.TokenSet.Builder.prototype.insert=function(e){var t,n=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var i=0;i<e.length&&i<this.previousWord.length&&e[i]==this.previousWord[i];i++)n++;this.minimize(n),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(i=n;i<e.length;i++){var r=new E.TokenSet,o=e[i];t.edges[o]=r,this.uncheckedNodes.push({parent:t,char:o,child:r}),t=r}t.final=!0,this.previousWord=e},E.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},E.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var n=this.uncheckedNodes[t],i=n.child.toString();i in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[i]:(n.child._str=i,this.minimizedNodes[i]=n.child),this.uncheckedNodes.pop()}}
/*!
 * lunr.Index
 * Copyright (C) 2020 Oliver Nightingale
 */,E.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},E.Index.prototype.search=function(e){return this.query((function(t){new E.QueryParser(e,t).parse()}))},E.Index.prototype.query=function(e){for(var t=new E.Query(this.fields),n=Object.create(null),i=Object.create(null),r=Object.create(null),o=Object.create(null),A=Object.create(null),a=0;a<this.fields.length;a++)i[this.fields[a]]=new E.Vector;e.call(t,t);for(a=0;a<t.clauses.length;a++){var s=t.clauses[a],l=null,c=E.Set.empty;l=s.usePipeline?this.pipeline.runString(s.term,{fields:s.fields}):[s.term];for(var u=0;u<l.length;u++){var d=l[u];s.term=d;var f=E.TokenSet.fromClause(s),h=this.tokenSet.intersect(f).toArray();if(0===h.length&&s.presence===E.Query.presence.REQUIRED){for(var p=0;p<s.fields.length;p++){o[O=s.fields[p]]=E.Set.empty}break}for(var g=0;g<h.length;g++){var m=h[g],v=this.invertedIndex[m],y=v._index;for(p=0;p<s.fields.length;p++){var b=v[O=s.fields[p]],x=Object.keys(b),w=m+"/"+O,_=new E.Set(x);if(s.presence==E.Query.presence.REQUIRED&&(c=c.union(_),void 0===o[O]&&(o[O]=E.Set.complete)),s.presence!=E.Query.presence.PROHIBITED){if(i[O].upsert(y,s.boost,(function(e,t){return e+t})),!r[w]){for(var k=0;k<x.length;k++){var S,T=x[k],M=new E.FieldRef(T,O),C=b[T];void 0===(S=n[M])?n[M]=new E.MatchData(m,O,C):S.add(m,O,C)}r[w]=!0}}else void 0===A[O]&&(A[O]=E.Set.empty),A[O]=A[O].union(_)}}}if(s.presence===E.Query.presence.REQUIRED)for(p=0;p<s.fields.length;p++){o[O=s.fields[p]]=o[O].intersect(c)}}var D=E.Set.complete,P=E.Set.empty;for(a=0;a<this.fields.length;a++){var O;o[O=this.fields[a]]&&(D=D.intersect(o[O])),A[O]&&(P=P.union(A[O]))}var I=Object.keys(n),N=[],F=Object.create(null);if(t.isNegated()){I=Object.keys(this.fieldVectors);for(a=0;a<I.length;a++){M=I[a];var L=E.FieldRef.fromString(M);n[M]=new E.MatchData}}for(a=0;a<I.length;a++){var R=(L=E.FieldRef.fromString(I[a])).docRef;if(D.contains(R)&&!P.contains(R)){var j,z=this.fieldVectors[L],B=i[L.fieldName].similarity(z);if(void 0!==(j=F[R]))j.score+=B,j.matchData.combine(n[L]);else{var W={ref:R,score:B,matchData:n[L]};F[R]=W,N.push(W)}}}return N.sort((function(e,t){return t.score-e.score}))},E.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map((function(e){return[e,this.invertedIndex[e]]}),this),t=Object.keys(this.fieldVectors).map((function(e){return[e,this.fieldVectors[e].toJSON()]}),this);return{version:E.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},E.Index.load=function(e){var t={},n={},i=e.fieldVectors,r=Object.create(null),o=e.invertedIndex,A=new E.TokenSet.Builder,a=E.Pipeline.load(e.pipeline);e.version!=E.version&&E.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+E.version+"' does not match serialized index '"+e.version+"'");for(var s=0;s<i.length;s++){var l=(u=i[s])[0],c=u[1];n[l]=new E.Vector(c)}for(s=0;s<o.length;s++){var u,d=(u=o[s])[0],f=u[1];A.insert(d),r[d]=f}return A.finish(),t.fields=e.fields,t.fieldVectors=n,t.invertedIndex=r,t.tokenSet=A.root,t.pipeline=a,new E.Index(t)}
/*!
 * lunr.Builder
 * Copyright (C) 2020 Oliver Nightingale
 */,E.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=E.tokenizer,this.pipeline=new E.Pipeline,this.searchPipeline=new E.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},E.Builder.prototype.ref=function(e){this._ref=e},E.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},E.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},E.Builder.prototype.k1=function(e){this._k1=e},E.Builder.prototype.add=function(e,t){var n=e[this._ref],i=Object.keys(this._fields);this._documents[n]=t||{},this.documentCount+=1;for(var r=0;r<i.length;r++){var o=i[r],A=this._fields[o].extractor,a=A?A(e):e[o],s=this.tokenizer(a,{fields:[o]}),l=this.pipeline.run(s),c=new E.FieldRef(n,o),u=Object.create(null);this.fieldTermFrequencies[c]=u,this.fieldLengths[c]=0,this.fieldLengths[c]+=l.length;for(var d=0;d<l.length;d++){var f=l[d];if(null==u[f]&&(u[f]=0),u[f]+=1,null==this.invertedIndex[f]){var h=Object.create(null);h._index=this.termIndex,this.termIndex+=1;for(var p=0;p<i.length;p++)h[i[p]]=Object.create(null);this.invertedIndex[f]=h}null==this.invertedIndex[f][o][n]&&(this.invertedIndex[f][o][n]=Object.create(null));for(var g=0;g<this.metadataWhitelist.length;g++){var m=this.metadataWhitelist[g],v=f.metadata[m];null==this.invertedIndex[f][o][n][m]&&(this.invertedIndex[f][o][n][m]=[]),this.invertedIndex[f][o][n][m].push(v)}}}},E.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,n={},i={},r=0;r<t;r++){var o=E.FieldRef.fromString(e[r]),A=o.fieldName;i[A]||(i[A]=0),i[A]+=1,n[A]||(n[A]=0),n[A]+=this.fieldLengths[o]}var a=Object.keys(this._fields);for(r=0;r<a.length;r++){var s=a[r];n[s]=n[s]/i[s]}this.averageFieldLength=n},E.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),n=t.length,i=Object.create(null),r=0;r<n;r++){for(var o=E.FieldRef.fromString(t[r]),A=o.fieldName,a=this.fieldLengths[o],s=new E.Vector,l=this.fieldTermFrequencies[o],c=Object.keys(l),u=c.length,d=this._fields[A].boost||1,f=this._documents[o.docRef].boost||1,h=0;h<u;h++){var p,g,m,v=c[h],y=l[v],b=this.invertedIndex[v]._index;void 0===i[v]?(p=E.idf(this.invertedIndex[v],this.documentCount),i[v]=p):p=i[v],g=p*((this._k1+1)*y)/(this._k1*(1-this._b+this._b*(a/this.averageFieldLength[A]))+y),g*=d,g*=f,m=Math.round(1e3*g)/1e3,s.insert(b,m)}e[o]=s}this.fieldVectors=e},E.Builder.prototype.createTokenSet=function(){this.tokenSet=E.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},E.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new E.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},E.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},E.MatchData=function(e,t,n){for(var i=Object.create(null),r=Object.keys(n||{}),o=0;o<r.length;o++){var A=r[o];i[A]=n[A].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=i)},E.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),n=0;n<t.length;n++){var i=t[n],r=Object.keys(e.metadata[i]);null==this.metadata[i]&&(this.metadata[i]=Object.create(null));for(var o=0;o<r.length;o++){var A=r[o],a=Object.keys(e.metadata[i][A]);null==this.metadata[i][A]&&(this.metadata[i][A]=Object.create(null));for(var s=0;s<a.length;s++){var l=a[s];null==this.metadata[i][A][l]?this.metadata[i][A][l]=e.metadata[i][A][l]:this.metadata[i][A][l]=this.metadata[i][A][l].concat(e.metadata[i][A][l])}}}},E.MatchData.prototype.add=function(e,t,n){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=n);if(t in this.metadata[e])for(var i=Object.keys(n),r=0;r<i.length;r++){var o=i[r];o in this.metadata[e][t]?this.metadata[e][t][o]=this.metadata[e][t][o].concat(n[o]):this.metadata[e][t][o]=n[o]}else this.metadata[e][t]=n},E.Query=function(e){this.clauses=[],this.allFields=e},E.Query.wildcard=new String("*"),E.Query.wildcard.NONE=0,E.Query.wildcard.LEADING=1,E.Query.wildcard.TRAILING=2,E.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},E.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=E.Query.wildcard.NONE),e.wildcard&E.Query.wildcard.LEADING&&e.term.charAt(0)!=E.Query.wildcard&&(e.term="*"+e.term),e.wildcard&E.Query.wildcard.TRAILING&&e.term.slice(-1)!=E.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=E.Query.presence.OPTIONAL),this.clauses.push(e),this},E.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=E.Query.presence.PROHIBITED)return!1;return!0},E.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach((function(e){this.term(e,E.utils.clone(t))}),this),this;var n=t||{};return n.term=e.toString(),this.clause(n),this},E.QueryParseError=function(e,t,n){this.name="QueryParseError",this.message=e,this.start=t,this.end=n},E.QueryParseError.prototype=new Error,E.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},E.QueryLexer.prototype.run=function(){for(var e=E.QueryLexer.lexText;e;)e=e(this)},E.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,n=this.pos,i=0;i<this.escapeCharPositions.length;i++)n=this.escapeCharPositions[i],e.push(this.str.slice(t,n)),t=n+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},E.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},E.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},E.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return E.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},E.QueryLexer.prototype.width=function(){return this.pos-this.start},E.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},E.QueryLexer.prototype.backup=function(){this.pos-=1},E.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=E.QueryLexer.EOS&&this.backup()},E.QueryLexer.prototype.more=function(){return this.pos<this.length},E.QueryLexer.EOS="EOS",E.QueryLexer.FIELD="FIELD",E.QueryLexer.TERM="TERM",E.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",E.QueryLexer.BOOST="BOOST",E.QueryLexer.PRESENCE="PRESENCE",E.QueryLexer.lexField=function(e){return e.backup(),e.emit(E.QueryLexer.FIELD),e.ignore(),E.QueryLexer.lexText},E.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(E.QueryLexer.TERM)),e.ignore(),e.more())return E.QueryLexer.lexText},E.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(E.QueryLexer.EDIT_DISTANCE),E.QueryLexer.lexText},E.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(E.QueryLexer.BOOST),E.QueryLexer.lexText},E.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(E.QueryLexer.TERM)},E.QueryLexer.termSeparator=E.tokenizer.separator,E.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==E.QueryLexer.EOS)return E.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return E.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(E.QueryLexer.TERM),E.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(E.QueryLexer.TERM),E.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(E.QueryLexer.PRESENCE),E.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(E.QueryLexer.PRESENCE),E.QueryLexer.lexText;if(t.match(E.QueryLexer.termSeparator))return E.QueryLexer.lexTerm}else e.escapeCharacter()}},E.QueryParser=function(e,t){this.lexer=new E.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},E.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=E.QueryParser.parseClause;e;)e=e(this);return this.query},E.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},E.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},E.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},E.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case E.QueryLexer.PRESENCE:return E.QueryParser.parsePresence;case E.QueryLexer.FIELD:return E.QueryParser.parseField;case E.QueryLexer.TERM:return E.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(n+=" with value '"+t.str+"'"),new E.QueryParseError(n,t.start,t.end)}},E.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=E.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=E.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+t.str+"'";throw new E.QueryParseError(n,t.start,t.end)}var i=e.peekLexeme();if(null==i){n="expecting term or field, found nothing";throw new E.QueryParseError(n,t.start,t.end)}switch(i.type){case E.QueryLexer.FIELD:return E.QueryParser.parseField;case E.QueryLexer.TERM:return E.QueryParser.parseTerm;default:n="expecting term or field, found '"+i.type+"'";throw new E.QueryParseError(n,i.start,i.end)}}},E.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var n=e.query.allFields.map((function(e){return"'"+e+"'"})).join(", "),i="unrecognised field '"+t.str+"', possible fields: "+n;throw new E.QueryParseError(i,t.start,t.end)}e.currentClause.fields=[t.str];var r=e.peekLexeme();if(null==r){i="expecting term, found nothing";throw new E.QueryParseError(i,t.start,t.end)}switch(r.type){case E.QueryLexer.TERM:return E.QueryParser.parseTerm;default:i="expecting term, found '"+r.type+"'";throw new E.QueryParseError(i,r.start,r.end)}}},E.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(null!=n)switch(n.type){case E.QueryLexer.TERM:return e.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return e.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return e.nextClause(),E.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+n.type+"'";throw new E.QueryParseError(i,n.start,n.end)}else e.nextClause()}},E.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var i="edit distance must be numeric";throw new E.QueryParseError(i,t.start,t.end)}e.currentClause.editDistance=n;var r=e.peekLexeme();if(null!=r)switch(r.type){case E.QueryLexer.TERM:return e.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return e.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return e.nextClause(),E.QueryParser.parsePresence;default:i="Unexpected lexeme type '"+r.type+"'";throw new E.QueryParseError(i,r.start,r.end)}else e.nextClause()}},E.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var i="boost must be numeric";throw new E.QueryParseError(i,t.start,t.end)}e.currentClause.boost=n;var r=e.peekLexeme();if(null!=r)switch(r.type){case E.QueryLexer.TERM:return e.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return e.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return e.nextClause(),E.QueryParser.parsePresence;default:i="Unexpected lexeme type '"+r.type+"'";throw new E.QueryParseError(i,r.start,r.end)}else e.nextClause()}},void 0===(r="function"==typeof(i=function(){return E})?i.call(t,n,t,e):i)||(e.exports=r)}()},function(e,t,n){
/*!
 * Chart.js v2.9.4
 * https://www.chartjs.org
 * (c) 2020 Chart.js Contributors
 * Released under the MIT License
 */
e.exports=function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},n=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[t[i]]=i);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var o in r)if(r.hasOwnProperty(o)){if(!("channels"in r[o]))throw new Error("missing channels property: "+o);if(!("labels"in r[o]))throw new Error("missing channel labels property: "+o);if(r[o].labels.length!==r[o].channels)throw new Error("channel and label counts mismatch: "+o);var A=r[o].channels,a=r[o].labels;delete r[o].channels,delete r[o].labels,Object.defineProperty(r[o],"channels",{value:A}),Object.defineProperty(r[o],"labels",{value:a})}r.rgb.hsl=function(e){var t,n,i=e[0]/255,r=e[1]/255,o=e[2]/255,A=Math.min(i,r,o),a=Math.max(i,r,o),s=a-A;return a===A?t=0:i===a?t=(r-o)/s:r===a?t=2+(o-i)/s:o===a&&(t=4+(i-r)/s),(t=Math.min(60*t,360))<0&&(t+=360),n=(A+a)/2,[t,100*(a===A?0:n<=.5?s/(a+A):s/(2-a-A)),100*n]},r.rgb.hsv=function(e){var t,n,i,r,o,A=e[0]/255,a=e[1]/255,s=e[2]/255,l=Math.max(A,a,s),c=l-Math.min(A,a,s),u=function(e){return(l-e)/6/c+.5};return 0===c?r=o=0:(o=c/l,t=u(A),n=u(a),i=u(s),A===l?r=i-n:a===l?r=1/3+t-i:s===l&&(r=2/3+n-t),r<0?r+=1:r>1&&(r-=1)),[360*r,100*o,100*l]},r.rgb.hwb=function(e){var t=e[0],n=e[1],i=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,i))*100,100*(i=1-1/255*Math.max(t,Math.max(n,i)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,i=e[1]/255,r=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-i,1-r)))/(1-t)||0),100*((1-i-t)/(1-t)||0),100*((1-r-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var i=n[e];if(i)return i;var r,o,A,a=1/0;for(var s in t)if(t.hasOwnProperty(s)){var l=t[s],c=(o=e,A=l,Math.pow(o[0]-A[0],2)+Math.pow(o[1]-A[1],2)+Math.pow(o[2]-A[2],2));c<a&&(a=c,r=s)}return r},r.keyword.rgb=function(e){return t[e]},r.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*t+.7152*n+.0722*i),100*(.0193*t+.1192*n+.9505*i)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],i=t[1],o=t[2];return i/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},r.hsl.rgb=function(e){var t,n,i,r,o,A=e[0]/360,a=e[1]/100,s=e[2]/100;if(0===a)return[o=255*s,o,o];t=2*s-(n=s<.5?s*(1+a):s+a-s*a),r=[0,0,0];for(var l=0;l<3;l++)(i=A+1/3*-(l-1))<0&&i++,i>1&&i--,o=6*i<1?t+6*(n-t)*i:2*i<1?n:3*i<2?t+(n-t)*(2/3-i)*6:t,r[l]=255*o;return r},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,i=e[2]/100,r=n,o=Math.max(i,.01);return n*=(i*=2)<=1?i:2-i,r*=o<=1?o:2-o,[t,100*(0===i?2*r/(o+r):2*n/(i+n)),(i+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,i=e[2]/100,r=Math.floor(t)%6,o=t-Math.floor(t),A=255*i*(1-n),a=255*i*(1-n*o),s=255*i*(1-n*(1-o));switch(i*=255,r){case 0:return[i,s,A];case 1:return[a,i,A];case 2:return[A,i,s];case 3:return[A,a,i];case 4:return[s,A,i];case 5:return[i,A,a]}},r.hsv.hsl=function(e){var t,n,i,r=e[0],o=e[1]/100,A=e[2]/100,a=Math.max(A,.01);return i=(2-o)*A,n=o*a,[r,100*(n=(n/=(t=(2-o)*a)<=1?t:2-t)||0),100*(i/=2)]},r.hwb.rgb=function(e){var t,n,i,r,o,A,a,s=e[0]/360,l=e[1]/100,c=e[2]/100,u=l+c;switch(u>1&&(l/=u,c/=u),i=6*s-(t=Math.floor(6*s)),0!=(1&t)&&(i=1-i),r=l+i*((n=1-c)-l),t){default:case 6:case 0:o=n,A=r,a=l;break;case 1:o=r,A=n,a=l;break;case 2:o=l,A=n,a=r;break;case 3:o=l,A=r,a=n;break;case 4:o=r,A=l,a=n;break;case 5:o=n,A=l,a=r}return[255*o,255*A,255*a]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,i=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,i*(1-r)+r))]},r.xyz.rgb=function(e){var t,n,i,r=e[0]/100,o=e[1]/100,A=e[2]/100;return n=-.9689*r+1.8758*o+.0415*A,i=.0557*r+-.204*o+1.057*A,t=(t=3.2406*r+-1.5372*o+-.4986*A)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:12.92*i,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],i=e[2];return n/=100,i/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},r.lab.xyz=function(e){var t,n,i,r=e[0];t=e[1]/500+(n=(r+16)/116),i=n-e[2]/200;var o=Math.pow(n,3),A=Math.pow(t,3),a=Math.pow(i,3);return n=o>.008856?o:(n-16/116)/7.787,t=A>.008856?A:(t-16/116)/7.787,i=a>.008856?a:(i-16/116)/7.787,[t*=95.047,n*=100,i*=108.883]},r.lab.lch=function(e){var t,n=e[0],i=e[1],r=e[2];return(t=360*Math.atan2(r,i)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(i*i+r*r),t]},r.lch.lab=function(e){var t,n=e[0],i=e[1];return t=e[2]/360*2*Math.PI,[n,i*Math.cos(t),i*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],i=e[2],o=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var A=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(A+=60),A},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],i=e[2];return t===n&&n===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},r.rgb.hcg=function(e){var t,n=e[0]/255,i=e[1]/255,r=e[2]/255,o=Math.max(Math.max(n,i),r),A=Math.min(Math.min(n,i),r),a=o-A;return t=a<=0?0:o===n?(i-r)/a%6:o===i?2+(r-n)/a:4+(n-i)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?A/(1-a):0)]},r.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,i=1,r=0;return(i=n<.5?2*t*n:2*t*(1-n))<1&&(r=(n-.5*i)/(1-i)),[e[0],100*i,100*r]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,i=t*n,r=0;return i<1&&(r=(n-i)/(1-i)),[e[0],100*i,100*r]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,i=e[2]/100;if(0===n)return[255*i,255*i,255*i];var r,o=[0,0,0],A=t%1*6,a=A%1,s=1-a;switch(Math.floor(A)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return r=(1-n)*i,[255*(n*o[0]+r),255*(n*o[1]+r),255*(n*o[2]+r)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),i=0;return n>0&&(i=t/n),[e[0],100*i,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],100*i,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,i=n-t,r=0;return i<1&&(r=(n-i)/(1-i)),[e[0],100*i,100*r]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function i(e){var t=function(){for(var e={},t=Object.keys(n),i=t.length,r=0;r<i;r++)e[t[r]]={distance:-1,parent:null};return e}(),i=[e];for(t[e].distance=0;i.length;)for(var r=i.pop(),o=Object.keys(n[r]),A=o.length,a=0;a<A;a++){var s=o[a],l=t[s];-1===l.distance&&(l.distance=t[r].distance+1,l.parent=r,i.unshift(s))}return t}function r(e,t){return function(n){return t(e(n))}}function o(e,t){for(var i=[t[e].parent,e],o=n[t[e].parent][e],A=t[e].parent;t[A].parent;)i.unshift(t[A].parent),o=r(n[t[A].parent][A],o),A=t[A].parent;return o.conversion=i,o}n.rgb,n.hsl,n.hsv,n.hwb,n.cmyk,n.xyz,n.lab,n.lch,n.hex,n.keyword,n.ansi16,n.ansi256,n.hcg,n.apple,n.gray;var A={};Object.keys(n).forEach((function(e){A[e]={},Object.defineProperty(A[e],"channels",{value:n[e].channels}),Object.defineProperty(A[e],"labels",{value:n[e].labels});var t=function(e){for(var t=i(e),n={},r=Object.keys(t),A=r.length,a=0;a<A;a++){var s=r[a];null!==t[s].parent&&(n[s]=o(s,t))}return n}(e);Object.keys(t).forEach((function(n){var i=t[n];A[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var i=n.length,r=0;r<i;r++)n[r]=Math.round(n[r]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(i),A[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(i)}))}));var a=A,s={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},l={getRgba:c,getHsla:u,getRgb:function(e){var t=c(e);return t&&t.slice(0,3)},getHsl:function(e){var t=u(e);return t&&t.slice(0,3)},getHwb:d,getAlpha:function(e){var t=c(e);return t||(t=u(e))||(t=d(e))?t[3]:void 0},hexString:function(e,t){return t=void 0!==t&&3===e.length?t:e[3],"#"+m(e[0])+m(e[1])+m(e[2])+(t>=0&&t<1?m(Math.round(255*t)):"")},rgbString:function(e,t){return t<1||e[3]&&e[3]<1?f(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:f,percentString:function(e,t){if(t<1||e[3]&&e[3]<1)return h(e,t);var n=Math.round(e[0]/255*100),i=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return"rgb("+n+"%, "+i+"%, "+r+"%)"},percentaString:h,hslString:function(e,t){return t<1||e[3]&&e[3]<1?p(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:p,hwbString:function(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return v[e.slice(0,3)]}};function c(e){if(e){var t=[0,0,0],n=1,i=e.match(/^#([a-fA-F0-9]{3,4})$/i),r="";if(i){r=(i=i[1])[3];for(var o=0;o<t.length;o++)t[o]=parseInt(i[o]+i[o],16);r&&(n=Math.round(parseInt(r+r,16)/255*100)/100)}else if(i=e.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){for(r=i[2],i=i[1],o=0;o<t.length;o++)t[o]=parseInt(i.slice(2*o,2*o+2),16);r&&(n=Math.round(parseInt(r,16)/255*100)/100)}else if(i=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<t.length;o++)t[o]=parseInt(i[o+1]);n=parseFloat(i[4])}else if(i=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<t.length;o++)t[o]=Math.round(2.55*parseFloat(i[o+1]));n=parseFloat(i[4])}else if(i=e.match(/(\w+)/)){if("transparent"==i[1])return[0,0,0,0];if(!(t=s[i[1]]))return}for(o=0;o<t.length;o++)t[o]=g(t[o],0,255);return n=n||0==n?g(n,0,1):1,t[3]=n,t}}function u(e){if(e){var t=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[g(parseInt(t[1]),0,360),g(parseFloat(t[2]),0,100),g(parseFloat(t[3]),0,100),g(isNaN(n)?1:n,0,1)]}}}function d(e){if(e){var t=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[g(parseInt(t[1]),0,360),g(parseFloat(t[2]),0,100),g(parseFloat(t[3]),0,100),g(isNaN(n)?1:n,0,1)]}}}function f(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function h(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function p(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function g(e,t,n){return Math.min(Math.max(t,e),n)}function m(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var v={};for(var y in s)v[s[y]]=y;var b=function(e){return e instanceof b?e:this instanceof b?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof e?(t=l.getRgba(e))?this.setValues("rgb",t):(t=l.getHsla(e))?this.setValues("hsl",t):(t=l.getHwb(e))&&this.setValues("hwb",t):"object"==typeof e&&(void 0!==(t=e).r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t)))):new b(e);var t};b.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return l.hexString(this.values.rgb)},rgbString:function(){return l.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return l.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return l.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return l.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return l.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return l.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return l.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;n<e.length;n++){var i=e[n]/255;t[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=e,i=void 0===t?.5:t,r=2*i-1,o=this.alpha()-n.alpha(),A=((r*o==-1?r:(r+o)/(1+r*o))+1)/2,a=1-A;return this.rgb(A*this.red()+a*n.red(),A*this.green()+a*n.green(),A*this.blue()+a*n.blue()).alpha(this.alpha()*i+n.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new b,i=this.values,r=n.values;for(var o in i)i.hasOwnProperty(o)&&(e=i[o],"[object Array]"===(t={}.toString.call(e))?r[o]=e.slice(0):"[object Number]"===t?r[o]=e:console.error("unexpected color value:",e));return n}},b.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},b.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},b.prototype.getValues=function(e){for(var t=this.values,n={},i=0;i<e.length;i++)n[e.charAt(i)]=t[e][i];return 1!==t.alpha&&(n.a=t.alpha),n},b.prototype.setValues=function(e,t){var n,i,r=this.values,o=this.spaces,A=this.maxes,s=1;if(this.valid=!0,"alpha"===e)s=t;else if(t.length)r[e]=t.slice(0,e.length),s=t[e.length];else if(void 0!==t[e.charAt(0)]){for(n=0;n<e.length;n++)r[e][n]=t[e.charAt(n)];s=t.a}else if(void 0!==t[o[e][0]]){var l=o[e];for(n=0;n<e.length;n++)r[e][n]=t[l[n]];s=t.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===s?r.alpha:s)),"alpha"===e)return!1;for(n=0;n<e.length;n++)i=Math.max(0,Math.min(A[e][n],r[e][n])),r[e][n]=Math.round(i);for(var c in o)c!==e&&(r[c]=a[e][c](r[e]));return!0},b.prototype.setSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n),this)},b.prototype.setChannel=function(e,t,n){var i=this.values[e];return void 0===n?i[t]:(n===i[t]||(i[t]=n,this.setValues(e,i)),this)},"undefined"!=typeof window&&(window.Color=b);var x=b;function w(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}var _={noop:function(){},uid:function(){var e=0;return function(){return e++}}(),isNullOrUndef:function(e){return null==e},isArray:function(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},isFinite:function(e){return("number"==typeof e||e instanceof Number)&&isFinite(e)},valueOrDefault:function(e,t){return void 0===e?t:e},valueAtIndexOrDefault:function(e,t,n){return _.valueOrDefault(_.isArray(e)?e[t]:e,n)},callback:function(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)},each:function(e,t,n,i){var r,o,A;if(_.isArray(e))if(o=e.length,i)for(r=o-1;r>=0;r--)t.call(n,e[r],r);else for(r=0;r<o;r++)t.call(n,e[r],r);else if(_.isObject(e))for(o=(A=Object.keys(e)).length,r=0;r<o;r++)t.call(n,e[A[r]],A[r])},arrayEquals:function(e,t){var n,i,r,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(r=e[n],o=t[n],r instanceof Array&&o instanceof Array){if(!_.arrayEquals(r,o))return!1}else if(r!==o)return!1;return!0},clone:function(e){if(_.isArray(e))return e.map(_.clone);if(_.isObject(e)){for(var t=Object.create(e),n=Object.keys(e),i=n.length,r=0;r<i;++r)t[n[r]]=_.clone(e[n[r]]);return t}return e},_merger:function(e,t,n,i){if(w(e)){var r=t[e],o=n[e];_.isObject(r)&&_.isObject(o)?_.merge(r,o,i):t[e]=_.clone(o)}},_mergerIf:function(e,t,n){if(w(e)){var i=t[e],r=n[e];_.isObject(i)&&_.isObject(r)?_.mergeIf(i,r):t.hasOwnProperty(e)||(t[e]=_.clone(r))}},merge:function(e,t,n){var i,r,o,A,a,s=_.isArray(t)?t:[t],l=s.length;if(!_.isObject(e))return e;for(i=(n=n||{}).merger||_._merger,r=0;r<l;++r)if(t=s[r],_.isObject(t))for(a=0,A=(o=Object.keys(t)).length;a<A;++a)i(o[a],e,t,n);return e},mergeIf:function(e,t){return _.merge(e,t,{merger:_._mergerIf})},extend:Object.assign||function(e){return _.merge(e,[].slice.call(arguments,1),{merger:function(e,t,n){t[e]=n[e]}})},inherits:function(e){var t=this,n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},i=function(){this.constructor=n};return i.prototype=t.prototype,n.prototype=new i,n.extend=_.inherits,e&&_.extend(n.prototype,e),n.__super__=t.prototype,n},_deprecated:function(e,t,n,i){void 0!==t&&console.warn(e+': "'+n+'" is deprecated. Please use "'+i+'" instead')}},k=_;_.callCallback=_.callback,_.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},_.getValueOrDefault=_.valueOrDefault,_.getValueAtIndexOrDefault=_.valueAtIndexOrDefault;var S={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:1===e?1:(n||(n=.3),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:1===e?1:(n||(n=.3),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),e<1?i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-S.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*S.easeInBounce(2*e):.5*S.easeOutBounce(2*e-1)+.5}},T={effects:S};k.easingEffects=S;var M=Math.PI,C=M/180,D=2*M,P=M/2,E=M/4,O=2*M/3,I={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,i,r,o){if(o){var A=Math.min(o,r/2,i/2),a=t+A,s=n+A,l=t+i-A,c=n+r-A;e.moveTo(t,s),a<l&&s<c?(e.arc(a,s,A,-M,-P),e.arc(l,s,A,-P,0),e.arc(l,c,A,0,P),e.arc(a,c,A,P,M)):a<l?(e.moveTo(a,n),e.arc(l,s,A,-P,P),e.arc(a,s,A,P,M+P)):s<c?(e.arc(a,s,A,-M,0),e.arc(a,c,A,0,M)):e.arc(a,s,A,-M,M),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,i,r)},drawPoint:function(e,t,n,i,r,o){var A,a,s,l,c,u=(o||0)*C;if(t&&"object"==typeof t&&("[object HTMLImageElement]"===(A=t.toString())||"[object HTMLCanvasElement]"===A))return e.save(),e.translate(i,r),e.rotate(u),e.drawImage(t,-t.width/2,-t.height/2,t.width,t.height),void e.restore();if(!(isNaN(n)||n<=0)){switch(e.beginPath(),t){default:e.arc(i,r,n,0,D),e.closePath();break;case"triangle":e.moveTo(i+Math.sin(u)*n,r-Math.cos(u)*n),u+=O,e.lineTo(i+Math.sin(u)*n,r-Math.cos(u)*n),u+=O,e.lineTo(i+Math.sin(u)*n,r-Math.cos(u)*n),e.closePath();break;case"rectRounded":l=n-(c=.516*n),a=Math.cos(u+E)*l,s=Math.sin(u+E)*l,e.arc(i-a,r-s,c,u-M,u-P),e.arc(i+s,r-a,c,u-P,u),e.arc(i+a,r+s,c,u,u+P),e.arc(i-s,r+a,c,u+P,u+M),e.closePath();break;case"rect":if(!o){l=Math.SQRT1_2*n,e.rect(i-l,r-l,2*l,2*l);break}u+=E;case"rectRot":a=Math.cos(u)*n,s=Math.sin(u)*n,e.moveTo(i-a,r-s),e.lineTo(i+s,r-a),e.lineTo(i+a,r+s),e.lineTo(i-s,r+a),e.closePath();break;case"crossRot":u+=E;case"cross":a=Math.cos(u)*n,s=Math.sin(u)*n,e.moveTo(i-a,r-s),e.lineTo(i+a,r+s),e.moveTo(i+s,r-a),e.lineTo(i-s,r+a);break;case"star":a=Math.cos(u)*n,s=Math.sin(u)*n,e.moveTo(i-a,r-s),e.lineTo(i+a,r+s),e.moveTo(i+s,r-a),e.lineTo(i-s,r+a),u+=E,a=Math.cos(u)*n,s=Math.sin(u)*n,e.moveTo(i-a,r-s),e.lineTo(i+a,r+s),e.moveTo(i+s,r-a),e.lineTo(i-s,r+a);break;case"line":a=Math.cos(u)*n,s=Math.sin(u)*n,e.moveTo(i-a,r-s),e.lineTo(i+a,r+s);break;case"dash":e.moveTo(i,r),e.lineTo(i+Math.cos(u)*n,r+Math.sin(u)*n)}e.fill(),e.stroke()}},_isPointInArea:function(e,t){return e.x>t.left-1e-6&&e.x<t.right+1e-6&&e.y>t.top-1e-6&&e.y<t.bottom+1e-6},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,i){var r=n.steppedLine;if(r){if("middle"===r){var o=(t.x+n.x)/2;e.lineTo(o,i?n.y:t.y),e.lineTo(o,i?t.y:n.y)}else"after"===r&&!i||"after"!==r&&i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}else n.tension?e.bezierCurveTo(i?t.controlPointPreviousX:t.controlPointNextX,i?t.controlPointPreviousY:t.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):e.lineTo(n.x,n.y)}},N=I;k.clear=I.clear,k.drawRoundedRectangle=function(e){e.beginPath(),I.roundedRect.apply(I,arguments)};var F={_set:function(e,t){return k.merge(this[e]||(this[e]={}),t)}};F._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var L=F,R=k.valueOrDefault,j={toLineHeight:function(e,t){var n=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,n,i,r;return k.isObject(e)?(t=+e.top||0,n=+e.right||0,i=+e.bottom||0,r=+e.left||0):t=n=i=r=+e||0,{top:t,right:n,bottom:i,left:r,height:t+i,width:r+n}},_parseFont:function(e){var t=L.global,n=R(e.fontSize,t.defaultFontSize),i={family:R(e.fontFamily,t.defaultFontFamily),lineHeight:k.options.toLineHeight(R(e.lineHeight,t.defaultLineHeight),n),size:n,style:R(e.fontStyle,t.defaultFontStyle),weight:null,string:""};return i.string=function(e){return!e||k.isNullOrUndef(e.size)||k.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(i),i},resolve:function(e,t,n,i){var r,o,A,a=!0;for(r=0,o=e.length;r<o;++r)if(void 0!==(A=e[r])&&(void 0!==t&&"function"==typeof A&&(A=A(t),a=!1),void 0!==n&&k.isArray(A)&&(A=A[n],a=!1),void 0!==A))return i&&!a&&(i.cacheable=!1),A}},z={_factorize:function(e){var t,n=[],i=Math.sqrt(e);for(t=1;t<i;t++)e%t==0&&(n.push(t),n.push(e/t));return i===(0|i)&&n.push(i),n.sort((function(e,t){return e-t})).pop(),n},log10:Math.log10||function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t}},B=z;k.log10=z.log10;var W=k,H=T,V=N,Y=j,q=B,U={getRtlAdapter:function(e,t,n){return e?function(e,t){return{x:function(n){return e+e+t-n},setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}}(t,n):{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}},overrideTextDirection:function(e,t){var n,i;"ltr"!==t&&"rtl"!==t||(i=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)},restoreTextDirection:function(e){var t=e.prevTextDirection;void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}};W.easing=H,W.canvas=V,W.options=Y,W.math=q,W.rtl=U;var Q=function(e){W.extend(this,e),this.initialize.apply(this,arguments)};W.extend(Q.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=W.extend({},e._model)),e._start={},e},transition:function(e){var t=this,n=t._model,i=t._start,r=t._view;return n&&1!==e?(r||(r=t._view={}),i||(i=t._start={}),function(e,t,n,i){var r,o,A,a,s,l,c,u,d,f=Object.keys(n);for(r=0,o=f.length;r<o;++r)if(l=n[A=f[r]],t.hasOwnProperty(A)||(t[A]=l),(a=t[A])!==l&&"_"!==A[0]){if(e.hasOwnProperty(A)||(e[A]=a),(c=typeof l)==typeof(s=e[A]))if("string"===c){if((u=x(s)).valid&&(d=x(l)).valid){t[A]=d.mix(u,i).rgbString();continue}}else if(W.isFinite(s)&&W.isFinite(l)){t[A]=s+(l-s)*i;continue}t[A]=l}}(i,r,n,e),t):(t._view=W.extend({},n),t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return W.isNumber(this._model.x)&&W.isNumber(this._model.y)}}),Q.extend=W.inherits;var X=Q,G=X.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),Z=G;Object.defineProperty(G.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(G.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),L._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:W.noop,onComplete:W.noop}});var K={animations:[],request:null,addAnimation:function(e,t,n,i){var r,o,A=this.animations;for(t.chart=e,t.startTime=Date.now(),t.duration=n,i||(e.animating=!0),r=0,o=A.length;r<o;++r)if(A[r].chart===e)return void(A[r]=t);A.push(t),1===A.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=W.findIndex(this.animations,(function(t){return t.chart===e}));-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=W.requestAnimFrame.call(window,(function(){e.request=null,e.startDigest()})))},startDigest:function(){this.advance(),this.animations.length>0&&this.requestAnimationFrame()},advance:function(){for(var e,t,n,i,r=this.animations,o=0;o<r.length;)t=(e=r[o]).chart,n=e.numSteps,i=Math.floor((Date.now()-e.startTime)/e.duration*n)+1,e.currentStep=Math.min(i,n),W.callback(e.render,[t,e],t),W.callback(e.onAnimationProgress,[e],t),e.currentStep>=n?(W.callback(e.onAnimationComplete,[e],t),t.animating=!1,r.splice(o,1)):++o}},J=W.options.resolve,$=["push","pop","shift","splice","unshift"];function ee(e,t){var n=e._chartjs;if(n){var i=n.listeners,r=i.indexOf(t);-1!==r&&i.splice(r,1),i.length>0||($.forEach((function(t){delete e[t]})),delete e._chartjs)}}var te=function(e,t){this.initialize(e,t)};W.extend(te.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this.getMeta(),t=this.chart,n=t.scales,i=this.getDataset(),r=t.options.scales;null!==e.xAxisID&&e.xAxisID in n&&!i.xAxisID||(e.xAxisID=i.xAxisID||r.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in n&&!i.yAxisID||(e.yAxisID=i.yAxisID||r.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&ee(this._data,this)},createMetaDataset:function(){var e=this.datasetElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(e){var t=this.dataElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index,_index:e})},addElements:function(){var e,t,n=this.getMeta(),i=this.getDataset().data||[],r=n.data;for(e=0,t=i.length;e<t;++e)r[e]=r[e]||this.createMetaData(e);n.dataset=n.dataset||this.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e,t,n=this,i=n.getDataset(),r=i.data||(i.data=[]);n._data!==r&&(n._data&&ee(n._data,n),r&&Object.isExtensible(r)&&(t=n,(e=r)._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),$.forEach((function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),i=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),r=i.apply(this,t);return W.each(e._chartjs.listeners,(function(e){"function"==typeof e[n]&&e[n].apply(e,t)})),r}})})))),n._data=r),n.resyncElements()},_configure:function(){this._config=W.merge(Object.create(null),[this.chart.options.datasets[this._type],this.getDataset()],{merger:function(e,t,n){"_meta"!==e&&"data"!==e&&W._merger(e,t,n)}})},_update:function(e){this._configure(),this._cachedDataOpts=null,this.update(e)},update:W.noop,transition:function(e){for(var t=this.getMeta(),n=t.data||[],i=n.length,r=0;r<i;++r)n[r].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],n=t.length,i=0;for(e.dataset&&e.dataset.draw();i<n;++i)t[i].draw()},getStyle:function(e){var t,n=this.getMeta(),i=n.dataset;return this._configure(),i&&void 0===e?t=this._resolveDatasetElementOptions(i||{}):(e=e||0,t=this._resolveDataElementOptions(n.data[e]||{},e)),!1!==t.fill&&null!==t.fill||(t.backgroundColor=t.borderColor),t},_resolveDatasetElementOptions:function(e,t){var n,i,r,o,A=this,a=A.chart,s=A._config,l=e.custom||{},c=a.options.elements[A.datasetElementType.prototype._type]||{},u=A._datasetElementOptions,d={},f={chart:a,dataset:A.getDataset(),datasetIndex:A.index,hover:t};for(n=0,i=u.length;n<i;++n)r=u[n],o=t?"hover"+r.charAt(0).toUpperCase()+r.slice(1):r,d[r]=J([l[o],s[o],c[o]],f);return d},_resolveDataElementOptions:function(e,t){var n=this,i=e&&e.custom,r=n._cachedDataOpts;if(r&&!i)return r;var o,A,a,s,l=n.chart,c=n._config,u=l.options.elements[n.dataElementType.prototype._type]||{},d=n._dataElementOptions,f={},h={chart:l,dataIndex:t,dataset:n.getDataset(),datasetIndex:n.index},p={cacheable:!i};if(i=i||{},W.isArray(d))for(A=0,a=d.length;A<a;++A)f[s=d[A]]=J([i[s],c[s],u[s]],h,t,p);else for(A=0,a=(o=Object.keys(d)).length;A<a;++A)f[s=o[A]]=J([i[s],c[d[s]],c[s],u[s]],h,t,p);return p.cacheable&&(n._cachedDataOpts=Object.freeze(f)),f},removeHoverStyle:function(e){W.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,i=e.custom||{},r=e._model,o=W.getHoverColor;e.$previousStyle={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:r.borderWidth},r.backgroundColor=J([i.hoverBackgroundColor,t.hoverBackgroundColor,o(r.backgroundColor)],void 0,n),r.borderColor=J([i.hoverBorderColor,t.hoverBorderColor,o(r.borderColor)],void 0,n),r.borderWidth=J([i.hoverBorderWidth,t.hoverBorderWidth,r.borderWidth],void 0,n)},_removeDatasetHoverStyle:function(){var e=this.getMeta().dataset;e&&this.removeHoverStyle(e)},_setDatasetHoverStyle:function(){var e,t,n,i,r,o,A=this.getMeta().dataset,a={};if(A){for(o=A._model,r=this._resolveDatasetElementOptions(A,!0),e=0,t=(i=Object.keys(r)).length;e<t;++e)a[n=i[e]]=o[n],o[n]=r[n];A.$previousStyle=a}},resyncElements:function(){var e=this.getMeta(),t=this.getDataset().data,n=e.data.length,i=t.length;i<n?e.data.splice(i,n-i):i>n&&this.insertElements(n,i-n)},insertElements:function(e,t){for(var n=0;n<t;++n)this.addElementAndReset(e+n)},onDataPush:function(){var e=arguments.length;this.insertElements(this.getDataset().data.length-e,e)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),te.extend=W.inherits;var ne=te,ie=2*Math.PI;function re(e,t){var n=t.startAngle,i=t.endAngle,r=t.pixelMargin,o=r/t.outerRadius,A=t.x,a=t.y;e.beginPath(),e.arc(A,a,t.outerRadius,n-o,i+o),t.innerRadius>r?(o=r/t.innerRadius,e.arc(A,a,t.innerRadius-r,i+o,n-o,!0)):e.arc(A,a,r,i+Math.PI/2,n-Math.PI/2),e.closePath(),e.clip()}function oe(e,t,n){var i="inner"===t.borderAlign;i?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),n.fullCircles&&function(e,t,n,i){var r,o=n.endAngle;for(i&&(n.endAngle=n.startAngle+ie,re(e,n),n.endAngle=o,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=ie,n.fullCircles--)),e.beginPath(),e.arc(n.x,n.y,n.innerRadius,n.startAngle+ie,n.startAngle,!0),r=0;r<n.fullCircles;++r)e.stroke();for(e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.startAngle+ie),r=0;r<n.fullCircles;++r)e.stroke()}(e,t,n,i),i&&re(e,n),e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.endAngle),e.arc(n.x,n.y,n.innerRadius,n.endAngle,n.startAngle,!0),e.closePath(),e.stroke()}L._set("global",{elements:{arc:{backgroundColor:L.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var Ae=X.extend({_type:"arc",inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var n=this._view;if(n){for(var i=W.getAngleFromPoint(n,{x:e,y:t}),r=i.angle,o=i.distance,A=n.startAngle,a=n.endAngle;a<A;)a+=ie;for(;r>a;)r-=ie;for(;r<A;)r+=ie;var s=r>=A&&r<=a,l=o>=n.innerRadius&&o<=n.outerRadius;return s&&l}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e,t=this._chart.ctx,n=this._view,i="inner"===n.borderAlign?.33:0,r={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-i,0),pixelMargin:i,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/ie)};if(t.save(),t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,r.fullCircles){for(r.endAngle=r.startAngle+ie,t.beginPath(),t.arc(r.x,r.y,r.outerRadius,r.startAngle,r.endAngle),t.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),t.closePath(),e=0;e<r.fullCircles;++e)t.fill();r.endAngle=r.startAngle+n.circumference%ie}t.beginPath(),t.arc(r.x,r.y,r.outerRadius,r.startAngle,r.endAngle),t.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),t.closePath(),t.fill(),n.borderWidth&&oe(t,n,r),t.restore()}}),ae=W.valueOrDefault,se=L.global.defaultColor;L._set("global",{elements:{line:{tension:.4,backgroundColor:se,borderWidth:3,borderColor:se,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var le=X.extend({_type:"line",draw:function(){var e,t,n,i=this,r=i._view,o=i._chart.ctx,A=r.spanGaps,a=i._children.slice(),s=L.global,l=s.elements.line,c=-1,u=i._loop;if(a.length){if(i._loop){for(e=0;e<a.length;++e)if(t=W.previousItem(a,e),!a[e]._view.skip&&t._view.skip){a=a.slice(e).concat(a.slice(0,e)),u=A;break}u&&a.push(a[0])}for(o.save(),o.lineCap=r.borderCapStyle||l.borderCapStyle,o.setLineDash&&o.setLineDash(r.borderDash||l.borderDash),o.lineDashOffset=ae(r.borderDashOffset,l.borderDashOffset),o.lineJoin=r.borderJoinStyle||l.borderJoinStyle,o.lineWidth=ae(r.borderWidth,l.borderWidth),o.strokeStyle=r.borderColor||s.defaultColor,o.beginPath(),(n=a[0]._view).skip||(o.moveTo(n.x,n.y),c=0),e=1;e<a.length;++e)n=a[e]._view,t=-1===c?W.previousItem(a,e):a[c],n.skip||(c!==e-1&&!A||-1===c?o.moveTo(n.x,n.y):W.canvas.lineTo(o,t._view,n),c=e);u&&o.closePath(),o.stroke(),o.restore()}}}),ce=W.valueOrDefault,ue=L.global.defaultColor;function de(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}L._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:ue,borderColor:ue,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var fe=X.extend({_type:"point",inRange:function(e,t){var n=this._view;return!!n&&Math.pow(e-n.x,2)+Math.pow(t-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:de,inXRange:de,inYRange:function(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius},getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,n=this._chart.ctx,i=t.pointStyle,r=t.rotation,o=t.radius,A=t.x,a=t.y,s=L.global,l=s.defaultColor;t.skip||(void 0===e||W.canvas._isPointInArea(t,e))&&(n.strokeStyle=t.borderColor||l,n.lineWidth=ce(t.borderWidth,s.elements.point.borderWidth),n.fillStyle=t.backgroundColor||l,W.canvas.drawPoint(n,i,o,A,a,r))}}),he=L.global.defaultColor;function pe(e){return e&&void 0!==e.width}function ge(e){var t,n,i,r,o;return pe(e)?(o=e.width/2,t=e.x-o,n=e.x+o,i=Math.min(e.y,e.base),r=Math.max(e.y,e.base)):(o=e.height/2,t=Math.min(e.x,e.base),n=Math.max(e.x,e.base),i=e.y-o,r=e.y+o),{left:t,top:i,right:n,bottom:r}}function me(e,t,n){return e===t?n:e===n?t:e}function ve(e,t,n){var i,r,o,A,a=e.borderWidth,s=function(e){var t=e.borderSkipped,n={};return t?(e.horizontal?e.base>e.x&&(t=me(t,"left","right")):e.base<e.y&&(t=me(t,"bottom","top")),n[t]=!0,n):n}(e);return W.isObject(a)?(i=+a.top||0,r=+a.right||0,o=+a.bottom||0,A=+a.left||0):i=r=o=A=+a||0,{t:s.top||i<0?0:i>n?n:i,r:s.right||r<0?0:r>t?t:r,b:s.bottom||o<0?0:o>n?n:o,l:s.left||A<0?0:A>t?t:A}}function ye(e,t,n){var i=null===t,r=null===n,o=!(!e||i&&r)&&ge(e);return o&&(i||t>=o.left&&t<=o.right)&&(r||n>=o.top&&n<=o.bottom)}L._set("global",{elements:{rectangle:{backgroundColor:he,borderColor:he,borderSkipped:"bottom",borderWidth:0}}});var be=X.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,n=function(e){var t=ge(e),n=t.right-t.left,i=t.bottom-t.top,r=ve(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b}}}(t),i=n.outer,r=n.inner;e.fillStyle=t.backgroundColor,e.fillRect(i.x,i.y,i.w,i.h),i.w===r.w&&i.h===r.h||(e.save(),e.beginPath(),e.rect(i.x,i.y,i.w,i.h),e.clip(),e.fillStyle=t.borderColor,e.rect(r.x,r.y,r.w,r.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return ye(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return pe(n)?ye(n,e,null):ye(n,null,t)},inXRange:function(e){return ye(this._view,e,null)},inYRange:function(e){return ye(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return pe(n)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return pe(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),xe={},we=Ae,_e=le,ke=fe,Se=be;xe.Arc=we,xe.Line=_e,xe.Point=ke,xe.Rectangle=Se;var Te=W._deprecated,Me=W.valueOrDefault;function Ce(e,t,n){var i,r,o=n.barThickness,A=t.stackCount,a=t.pixels[e],s=W.isNullOrUndef(o)?function(e,t){var n,i,r,o,A=e._length;for(r=1,o=t.length;r<o;++r)A=Math.min(A,Math.abs(t[r]-t[r-1]));for(r=0,o=e.getTicks().length;r<o;++r)i=e.getPixelForTick(r),A=r>0?Math.min(A,Math.abs(i-n)):A,n=i;return A}(t.scale,t.pixels):-1;return W.isNullOrUndef(o)?(i=s*n.categoryPercentage,r=n.barPercentage):(i=o*A,r=1),{chunk:i/A,ratio:r,start:a-i/2}}L._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),L._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var De=ne.extend({dataElementType:xe.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t,n=this;ne.prototype.initialize.apply(n,arguments),(e=n.getMeta()).stack=n.getDataset().stack,e.bar=!0,t=n._getIndexScale().options,Te("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Te("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Te("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Te("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Te("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t,n,i=this.getMeta().data;for(this._ruler=this.getRuler(),t=0,n=i.length;t<n;++t)this.updateElement(i[t],t,e)},updateElement:function(e,t,n){var i=this,r=i.getMeta(),o=i.getDataset(),A=i._resolveDataElementOptions(e,t);e._xScale=i.getScaleForId(r.xAxisID),e._yScale=i.getScaleForId(r.yAxisID),e._datasetIndex=i.index,e._index=t,e._model={backgroundColor:A.backgroundColor,borderColor:A.borderColor,borderSkipped:A.borderSkipped,borderWidth:A.borderWidth,datasetLabel:o.label,label:i.chart.data.labels[t]},W.isArray(o.data[t])&&(e._model.borderSkipped=null),i._updateElementGeometry(e,t,n,A),e.pivot()},_updateElementGeometry:function(e,t,n,i){var r=this,o=e._model,A=r._getValueScale(),a=A.getBasePixel(),s=A.isHorizontal(),l=r._ruler||r.getRuler(),c=r.calculateBarValuePixels(r.index,t,i),u=r.calculateBarIndexPixels(r.index,t,l,i);o.horizontal=s,o.base=n?a:c.base,o.x=s?n?a:c.head:u.center,o.y=s?u.center:n?a:c.head,o.height=s?u.size:void 0,o.width=s?void 0:u.size},_getStacks:function(e){var t,n,i=this._getIndexScale(),r=i._getMatchingVisibleMetas(this._type),o=i.options.stacked,A=r.length,a=[];for(t=0;t<A&&(n=r[t],(!1===o||-1===a.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&a.push(n.stack),n.index!==e);++t);return a},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var n=this._getStacks(e),i=void 0!==t?n.indexOf(t):-1;return-1===i?n.length-1:i},getRuler:function(){var e,t,n=this._getIndexScale(),i=[];for(e=0,t=this.getMeta().data.length;e<t;++e)i.push(n.getPixelForValue(null,e,this.index));return{pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this.getStackCount(),scale:n}},calculateBarValuePixels:function(e,t,n){var i,r,o,A,a,s,l,c=this.chart,u=this._getValueScale(),d=u.isHorizontal(),f=c.data.datasets,h=u._getMatchingVisibleMetas(this._type),p=u._parseValue(f[e].data[t]),g=n.minBarLength,m=u.options.stacked,v=this.getMeta().stack,y=void 0===p.start?0:p.max>=0&&p.min>=0?p.min:p.max,b=void 0===p.start?p.end:p.max>=0&&p.min>=0?p.max-p.min:p.min-p.max,x=h.length;if(m||void 0===m&&void 0!==v)for(i=0;i<x&&(r=h[i]).index!==e;++i)r.stack===v&&(o=void 0===(l=u._parseValue(f[r.index].data[t])).start?l.end:l.min>=0&&l.max>=0?l.max:l.min,(p.min<0&&o<0||p.max>=0&&o>0)&&(y+=o));return A=u.getPixelForValue(y),s=(a=u.getPixelForValue(y+b))-A,void 0!==g&&Math.abs(s)<g&&(s=g,a=b>=0&&!d||b<0&&d?A-g:A+g),{size:s,base:A,head:a,center:a+s/2}},calculateBarIndexPixels:function(e,t,n,i){var r="flex"===i.barThickness?function(e,t,n){var i,r=t.pixels,o=r[e],A=e>0?r[e-1]:null,a=e<r.length-1?r[e+1]:null,s=n.categoryPercentage;return null===A&&(A=o-(null===a?t.end-t.start:a-o)),null===a&&(a=o+o-A),i=o-(o-Math.min(A,a))/2*s,{chunk:Math.abs(a-A)/2*s/t.stackCount,ratio:n.barPercentage,start:i}}(t,n,i):Ce(t,n,i),o=this.getStackIndex(e,this.getMeta().stack),A=r.start+r.chunk*o+r.chunk/2,a=Math.min(Me(i.maxBarThickness,1/0),r.chunk*r.ratio);return{base:A-a/2,head:A+a/2,center:A,size:a}},draw:function(){var e=this.chart,t=this._getValueScale(),n=this.getMeta().data,i=this.getDataset(),r=n.length,o=0;for(W.canvas.clipArea(e.ctx,e.chartArea);o<r;++o){var A=t._parseValue(i.data[o]);isNaN(A.min)||isNaN(A.max)||n[o].draw()}W.canvas.unclipArea(e.ctx)},_resolveDataElementOptions:function(){var e=this,t=W.extend({},ne.prototype._resolveDataElementOptions.apply(e,arguments)),n=e._getIndexScale().options,i=e._getValueScale().options;return t.barPercentage=Me(n.barPercentage,t.barPercentage),t.barThickness=Me(n.barThickness,t.barThickness),t.categoryPercentage=Me(n.categoryPercentage,t.categoryPercentage),t.maxBarThickness=Me(n.maxBarThickness,t.maxBarThickness),t.minBarLength=Me(i.minBarLength,t.minBarLength),t}}),Pe=W.valueOrDefault,Ee=W.options.resolve;L._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.datasets[e.datasetIndex].label||"",i=t.datasets[e.datasetIndex].data[e.index];return n+": ("+e.xLabel+", "+e.yLabel+", "+i.r+")"}}}});var Oe=ne.extend({dataElementType:xe.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(e){var t=this,n=t.getMeta().data;W.each(n,(function(n,i){t.updateElement(n,i,e)}))},updateElement:function(e,t,n){var i=this,r=i.getMeta(),o=e.custom||{},A=i.getScaleForId(r.xAxisID),a=i.getScaleForId(r.yAxisID),s=i._resolveDataElementOptions(e,t),l=i.getDataset().data[t],c=i.index,u=n?A.getPixelForDecimal(.5):A.getPixelForValue("object"==typeof l?l:NaN,t,c),d=n?a.getBasePixel():a.getPixelForValue(l,t,c);e._xScale=A,e._yScale=a,e._options=s,e._datasetIndex=c,e._index=t,e._model={backgroundColor:s.backgroundColor,borderColor:s.borderColor,borderWidth:s.borderWidth,hitRadius:s.hitRadius,pointStyle:s.pointStyle,rotation:s.rotation,radius:n?0:s.radius,skip:o.skip||isNaN(u)||isNaN(d),x:u,y:d},e.pivot()},setHoverStyle:function(e){var t=e._model,n=e._options,i=W.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Pe(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Pe(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Pe(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveDataElementOptions:function(e,t){var n=this,i=n.chart,r=n.getDataset(),o=e.custom||{},A=r.data[t]||{},a=ne.prototype._resolveDataElementOptions.apply(n,arguments),s={chart:i,dataIndex:t,dataset:r,datasetIndex:n.index};return n._cachedDataOpts===a&&(a=W.extend({},a)),a.radius=Ee([o.radius,A.r,n._config.radius,i.options.elements.point.radius],s,t),a}}),Ie=W.valueOrDefault,Ne=Math.PI,Fe=2*Ne,Le=Ne/2;L._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t,n,i,r=document.createElement("ul"),o=e.data,A=o.datasets,a=o.labels;if(r.setAttribute("class",e.id+"-legend"),A.length)for(t=0,n=A[0].data.length;t<n;++t)(i=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=A[0].backgroundColor[t],a[t]&&i.appendChild(document.createTextNode(a[t]));return r.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(n,i){var r=e.getDatasetMeta(0),o=r.controller.getStyle(i);return{text:n,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,hidden:isNaN(t.datasets[0].data[i])||r.data[i].hidden,index:i}})):[]}},onClick:function(e,t){var n,i,r,o=t.index,A=this.chart;for(n=0,i=(A.data.datasets||[]).length;n<i;++n)(r=A.getDatasetMeta(n)).data[o]&&(r.data[o].hidden=!r.data[o].hidden);A.update()}},cutoutPercentage:50,rotation:-Le,circumference:Fe,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],i=": "+t.datasets[e.datasetIndex].data[e.index];return W.isArray(n)?(n=n.slice())[0]+=i:n+=i,n}}}});var Re=ne.extend({dataElementType:xe.Arc,linkScales:W.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&++t;return t},update:function(e){var t,n,i,r,o=this,A=o.chart,a=A.chartArea,s=A.options,l=1,c=1,u=0,d=0,f=o.getMeta(),h=f.data,p=s.cutoutPercentage/100||0,g=s.circumference,m=o._getRingWeight(o.index);if(g<Fe){var v=s.rotation%Fe,y=(v+=v>=Ne?-Fe:v<-Ne?Fe:0)+g,b=Math.cos(v),x=Math.sin(v),w=Math.cos(y),_=Math.sin(y),k=v<=0&&y>=0||y>=Fe,S=v<=Le&&y>=Le||y>=Fe+Le,T=v<=-Le&&y>=-Le||y>=Ne+Le,M=v===-Ne||y>=Ne?-1:Math.min(b,b*p,w,w*p),C=T?-1:Math.min(x,x*p,_,_*p),D=k?1:Math.max(b,b*p,w,w*p),P=S?1:Math.max(x,x*p,_,_*p);l=(D-M)/2,c=(P-C)/2,u=-(D+M)/2,d=-(P+C)/2}for(i=0,r=h.length;i<r;++i)h[i]._options=o._resolveDataElementOptions(h[i],i);for(A.borderWidth=o.getMaxBorderWidth(),t=(a.right-a.left-A.borderWidth)/l,n=(a.bottom-a.top-A.borderWidth)/c,A.outerRadius=Math.max(Math.min(t,n)/2,0),A.innerRadius=Math.max(A.outerRadius*p,0),A.radiusLength=(A.outerRadius-A.innerRadius)/(o._getVisibleDatasetWeightTotal()||1),A.offsetX=u*A.outerRadius,A.offsetY=d*A.outerRadius,f.total=o.calculateTotal(),o.outerRadius=A.outerRadius-A.radiusLength*o._getRingWeightOffset(o.index),o.innerRadius=Math.max(o.outerRadius-A.radiusLength*m,0),i=0,r=h.length;i<r;++i)o.updateElement(h[i],i,e)},updateElement:function(e,t,n){var i=this,r=i.chart,o=r.chartArea,A=r.options,a=A.animation,s=(o.left+o.right)/2,l=(o.top+o.bottom)/2,c=A.rotation,u=A.rotation,d=i.getDataset(),f=n&&a.animateRotate||e.hidden?0:i.calculateCircumference(d.data[t])*(A.circumference/Fe),h=n&&a.animateScale?0:i.innerRadius,p=n&&a.animateScale?0:i.outerRadius,g=e._options||{};W.extend(e,{_datasetIndex:i.index,_index:t,_model:{backgroundColor:g.backgroundColor,borderColor:g.borderColor,borderWidth:g.borderWidth,borderAlign:g.borderAlign,x:s+r.offsetX,y:l+r.offsetY,startAngle:c,endAngle:u,circumference:f,outerRadius:p,innerRadius:h,label:W.valueAtIndexOrDefault(d.label,t,r.data.labels[t])}});var m=e._model;n&&a.animateRotate||(m.startAngle=0===t?A.rotation:i.getMeta().data[t-1]._model.endAngle,m.endAngle=m.startAngle+m.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),i=0;return W.each(n.data,(function(n,r){e=t.data[r],isNaN(e)||n.hidden||(i+=Math.abs(e))})),i},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?Fe*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,i,r,o,A,a,s,l=0,c=this.chart;if(!e)for(t=0,n=c.data.datasets.length;t<n;++t)if(c.isDatasetVisible(t)){e=(i=c.getDatasetMeta(t)).data,t!==this.index&&(o=i.controller);break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)r=e[t],o?(o._configure(),A=o._resolveDataElementOptions(r,t)):A=r._options,"inner"!==A.borderAlign&&(a=A.borderWidth,l=(s=A.hoverBorderWidth)>(l=a>l?a:l)?s:l);return l},setHoverStyle:function(e){var t=e._model,n=e._options,i=W.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=Ie(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Ie(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Ie(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t},_getRingWeight:function(e){return Math.max(Ie(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});L._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),L._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var je=De.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),ze=W.valueOrDefault,Be=W.options.resolve,We=W.canvas._isPointInArea;function He(e,t){var n=e&&e.options.ticks||{},i=n.reverse,r=void 0===n.min?t:0,o=void 0===n.max?t:0;return{start:i?o:r,end:i?r:o}}function Ve(e,t,n){var i=n/2,r=He(e,i),o=He(t,i);return{top:o.end,right:r.end,bottom:o.start,left:r.start}}function Ye(e){var t,n,i,r;return W.isObject(e)?(t=e.top,n=e.right,i=e.bottom,r=e.left):t=n=i=r=e,{top:t,right:n,bottom:i,left:r}}L._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var qe=ne.extend({datasetElementType:xe.Line,dataElementType:xe.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(e){var t,n,i=this,r=i.getMeta(),o=r.dataset,A=r.data||[],a=i.chart.options,s=i._config,l=i._showLine=ze(s.showLine,a.showLines);for(i._xScale=i.getScaleForId(r.xAxisID),i._yScale=i.getScaleForId(r.yAxisID),l&&(void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),o._scale=i._yScale,o._datasetIndex=i.index,o._children=A,o._model=i._resolveDatasetElementOptions(o),o.pivot()),t=0,n=A.length;t<n;++t)i.updateElement(A[t],t,e);for(l&&0!==o._model.tension&&i.updateBezierControlPoints(),t=0,n=A.length;t<n;++t)A[t].pivot()},updateElement:function(e,t,n){var i,r,o=this,A=o.getMeta(),a=e.custom||{},s=o.getDataset(),l=o.index,c=s.data[t],u=o._xScale,d=o._yScale,f=A.dataset._model,h=o._resolveDataElementOptions(e,t);i=u.getPixelForValue("object"==typeof c?c:NaN,t,l),r=n?d.getBasePixel():o.calculatePointY(c,t,l),e._xScale=u,e._yScale=d,e._options=h,e._datasetIndex=l,e._index=t,e._model={x:i,y:r,skip:a.skip||isNaN(i)||isNaN(r),radius:h.radius,pointStyle:h.pointStyle,rotation:h.rotation,backgroundColor:h.backgroundColor,borderColor:h.borderColor,borderWidth:h.borderWidth,tension:ze(a.tension,f?f.tension:0),steppedLine:!!f&&f.steppedLine,hitRadius:h.hitRadius}},_resolveDatasetElementOptions:function(e){var t=this,n=t._config,i=e.custom||{},r=t.chart.options,o=r.elements.line,A=ne.prototype._resolveDatasetElementOptions.apply(t,arguments);return A.spanGaps=ze(n.spanGaps,r.spanGaps),A.tension=ze(n.lineTension,o.tension),A.steppedLine=Be([i.steppedLine,n.steppedLine,o.stepped]),A.clip=Ye(ze(n.clip,Ve(t._xScale,t._yScale,A.borderWidth))),A},calculatePointY:function(e,t,n){var i,r,o,A,a,s,l,c=this.chart,u=this._yScale,d=0,f=0;if(u.options.stacked){for(a=+u.getRightValue(e),l=(s=c._getSortedVisibleDatasetMetas()).length,i=0;i<l&&(o=s[i]).index!==n;++i)r=c.data.datasets[o.index],"line"===o.type&&o.yAxisID===u.id&&((A=+u.getRightValue(r.data[t]))<0?f+=A||0:d+=A||0);return a<0?u.getPixelForValue(f+a):u.getPixelForValue(d+a)}return u.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,n,i,r=this.chart,o=this.getMeta(),A=o.dataset._model,a=r.chartArea,s=o.data||[];function l(e,t,n){return Math.max(Math.min(e,n),t)}if(A.spanGaps&&(s=s.filter((function(e){return!e._model.skip}))),"monotone"===A.cubicInterpolationMode)W.splineCurveMonotone(s);else for(e=0,t=s.length;e<t;++e)n=s[e]._model,i=W.splineCurve(W.previousItem(s,e)._model,n,W.nextItem(s,e)._model,A.tension),n.controlPointPreviousX=i.previous.x,n.controlPointPreviousY=i.previous.y,n.controlPointNextX=i.next.x,n.controlPointNextY=i.next.y;if(r.options.elements.line.capBezierPoints)for(e=0,t=s.length;e<t;++e)n=s[e]._model,We(n,a)&&(e>0&&We(s[e-1]._model,a)&&(n.controlPointPreviousX=l(n.controlPointPreviousX,a.left,a.right),n.controlPointPreviousY=l(n.controlPointPreviousY,a.top,a.bottom)),e<s.length-1&&We(s[e+1]._model,a)&&(n.controlPointNextX=l(n.controlPointNextX,a.left,a.right),n.controlPointNextY=l(n.controlPointNextY,a.top,a.bottom)))},draw:function(){var e,t=this.chart,n=this.getMeta(),i=n.data||[],r=t.chartArea,o=t.canvas,A=0,a=i.length;for(this._showLine&&(e=n.dataset._model.clip,W.canvas.clipArea(t.ctx,{left:!1===e.left?0:r.left-e.left,right:!1===e.right?o.width:r.right+e.right,top:!1===e.top?0:r.top-e.top,bottom:!1===e.bottom?o.height:r.bottom+e.bottom}),n.dataset.draw(),W.canvas.unclipArea(t.ctx));A<a;++A)i[A].draw(r)},setHoverStyle:function(e){var t=e._model,n=e._options,i=W.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=ze(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=ze(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=ze(n.hoverBorderWidth,n.borderWidth),t.radius=ze(n.hoverRadius,n.radius)}}),Ue=W.options.resolve;L._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t,n,i,r=document.createElement("ul"),o=e.data,A=o.datasets,a=o.labels;if(r.setAttribute("class",e.id+"-legend"),A.length)for(t=0,n=A[0].data.length;t<n;++t)(i=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=A[0].backgroundColor[t],a[t]&&i.appendChild(document.createTextNode(a[t]));return r.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(n,i){var r=e.getDatasetMeta(0),o=r.controller.getStyle(i);return{text:n,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,hidden:isNaN(t.datasets[0].data[i])||r.data[i].hidden,index:i}})):[]}},onClick:function(e,t){var n,i,r,o=t.index,A=this.chart;for(n=0,i=(A.data.datasets||[]).length;n<i;++n)(r=A.getDatasetMeta(n)).data[o].hidden=!r.data[o].hidden;A.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}});var Qe=ne.extend({dataElementType:xe.Arc,linkScales:W.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,i,r=this,o=r.getDataset(),A=r.getMeta(),a=r.chart.options.startAngle||0,s=r._starts=[],l=r._angles=[],c=A.data;for(r._updateRadius(),A.count=r.countVisibleElements(),t=0,n=o.data.length;t<n;t++)s[t]=a,i=r._computeAngle(t),l[t]=i,a+=i;for(t=0,n=c.length;t<n;++t)c[t]._options=r._resolveDataElementOptions(c[t],t),r.updateElement(c[t],t,e)},_updateRadius:function(){var e=this,t=e.chart,n=t.chartArea,i=t.options,r=Math.min(n.right-n.left,n.bottom-n.top);t.outerRadius=Math.max(r/2,0),t.innerRadius=Math.max(i.cutoutPercentage?t.outerRadius/100*i.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,n){var i=this,r=i.chart,o=i.getDataset(),A=r.options,a=A.animation,s=r.scale,l=r.data.labels,c=s.xCenter,u=s.yCenter,d=A.startAngle,f=e.hidden?0:s.getDistanceFromCenterForValue(o.data[t]),h=i._starts[t],p=h+(e.hidden?0:i._angles[t]),g=a.animateScale?0:s.getDistanceFromCenterForValue(o.data[t]),m=e._options||{};W.extend(e,{_datasetIndex:i.index,_index:t,_scale:s,_model:{backgroundColor:m.backgroundColor,borderColor:m.borderColor,borderWidth:m.borderWidth,borderAlign:m.borderAlign,x:c,y:u,innerRadius:0,outerRadius:n?g:f,startAngle:n&&a.animateRotate?d:h,endAngle:n&&a.animateRotate?d:p,label:W.valueAtIndexOrDefault(l,t,l[t])}}),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),n=0;return W.each(t.data,(function(t,i){isNaN(e.data[i])||t.hidden||n++})),n},setHoverStyle:function(e){var t=e._model,n=e._options,i=W.getHoverColor,r=W.valueOrDefault;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=r(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=r(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=r(n.hoverBorderWidth,n.borderWidth)},_computeAngle:function(e){var t=this,n=this.getMeta().count,i=t.getDataset(),r=t.getMeta();if(isNaN(i.data[e])||r.data[e].hidden)return 0;var o={chart:t.chart,dataIndex:e,dataset:i,datasetIndex:t.index};return Ue([t.chart.options.elements.arc.angle,2*Math.PI/n],o,e)}});L._set("pie",W.clone(L.doughnut)),L._set("pie",{cutoutPercentage:0});var Xe=Re,Ge=W.valueOrDefault;L._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var Ze=ne.extend({datasetElementType:xe.Line,dataElementType:xe.Point,linkScales:W.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,i=this,r=i.getMeta(),o=r.dataset,A=r.data||[],a=i.chart.scale,s=i._config;for(void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),o._scale=a,o._datasetIndex=i.index,o._children=A,o._loop=!0,o._model=i._resolveDatasetElementOptions(o),o.pivot(),t=0,n=A.length;t<n;++t)i.updateElement(A[t],t,e);for(i.updateBezierControlPoints(),t=0,n=A.length;t<n;++t)A[t].pivot()},updateElement:function(e,t,n){var i=this,r=e.custom||{},o=i.getDataset(),A=i.chart.scale,a=A.getPointPositionForValue(t,o.data[t]),s=i._resolveDataElementOptions(e,t),l=i.getMeta().dataset._model,c=n?A.xCenter:a.x,u=n?A.yCenter:a.y;e._scale=A,e._options=s,e._datasetIndex=i.index,e._index=t,e._model={x:c,y:u,skip:r.skip||isNaN(c)||isNaN(u),radius:s.radius,pointStyle:s.pointStyle,rotation:s.rotation,backgroundColor:s.backgroundColor,borderColor:s.borderColor,borderWidth:s.borderWidth,tension:Ge(r.tension,l?l.tension:0),hitRadius:s.hitRadius}},_resolveDatasetElementOptions:function(){var e=this,t=e._config,n=e.chart.options,i=ne.prototype._resolveDatasetElementOptions.apply(e,arguments);return i.spanGaps=Ge(t.spanGaps,n.spanGaps),i.tension=Ge(t.lineTension,n.elements.line.tension),i},updateBezierControlPoints:function(){var e,t,n,i,r=this.getMeta(),o=this.chart.chartArea,A=r.data||[];function a(e,t,n){return Math.max(Math.min(e,n),t)}for(r.dataset._model.spanGaps&&(A=A.filter((function(e){return!e._model.skip}))),e=0,t=A.length;e<t;++e)n=A[e]._model,i=W.splineCurve(W.previousItem(A,e,!0)._model,n,W.nextItem(A,e,!0)._model,n.tension),n.controlPointPreviousX=a(i.previous.x,o.left,o.right),n.controlPointPreviousY=a(i.previous.y,o.top,o.bottom),n.controlPointNextX=a(i.next.x,o.left,o.right),n.controlPointNextY=a(i.next.y,o.top,o.bottom)},setHoverStyle:function(e){var t=e._model,n=e._options,i=W.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Ge(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Ge(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Ge(n.hoverBorderWidth,n.borderWidth),t.radius=Ge(n.hoverRadius,n.radius)}});L._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),L._set("global",{datasets:{scatter:{showLine:!1}}});var Ke={bar:De,bubble:Oe,doughnut:Re,horizontalBar:je,line:qe,polarArea:Qe,pie:Xe,radar:Ze,scatter:qe};function Je(e,t){return e.native?{x:e.x,y:e.y}:W.getRelativePosition(e,t)}function $e(e,t){var n,i,r,o,A,a,s=e._getSortedVisibleDatasetMetas();for(i=0,o=s.length;i<o;++i)for(r=0,A=(n=s[i].data).length;r<A;++r)(a=n[r])._view.skip||t(a)}function et(e,t){var n=[];return $e(e,(function(e){e.inRange(t.x,t.y)&&n.push(e)})),n}function tt(e,t,n,i){var r=Number.POSITIVE_INFINITY,o=[];return $e(e,(function(e){if(!n||e.inRange(t.x,t.y)){var A=e.getCenterPoint(),a=i(t,A);a<r?(o=[e],r=a):a===r&&o.push(e)}})),o}function nt(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,i){var r=t?Math.abs(e.x-i.x):0,o=n?Math.abs(e.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(o,2))}}function it(e,t,n){var i=Je(t,e);n.axis=n.axis||"x";var r=nt(n.axis),o=n.intersect?et(e,i):tt(e,i,!1,r),A=[];return o.length?(e._getSortedVisibleDatasetMetas().forEach((function(e){var t=e.data[o[0]._index];t&&!t._view.skip&&A.push(t)})),A):[]}var rt={modes:{single:function(e,t){var n=Je(t,e),i=[];return $e(e,(function(e){if(e.inRange(n.x,n.y))return i.push(e),i})),i.slice(0,1)},label:it,index:it,dataset:function(e,t,n){var i=Je(t,e);n.axis=n.axis||"xy";var r=nt(n.axis),o=n.intersect?et(e,i):tt(e,i,!1,r);return o.length>0&&(o=e.getDatasetMeta(o[0]._datasetIndex).data),o},"x-axis":function(e,t){return it(e,t,{intersect:!1})},point:function(e,t){return et(e,Je(t,e))},nearest:function(e,t,n){var i=Je(t,e);n.axis=n.axis||"xy";var r=nt(n.axis);return tt(e,i,n.intersect,r)},x:function(e,t,n){var i=Je(t,e),r=[],o=!1;return $e(e,(function(e){e.inXRange(i.x)&&r.push(e),e.inRange(i.x,i.y)&&(o=!0)})),n.intersect&&!o&&(r=[]),r},y:function(e,t,n){var i=Je(t,e),r=[],o=!1;return $e(e,(function(e){e.inYRange(i.y)&&r.push(e),e.inRange(i.x,i.y)&&(o=!0)})),n.intersect&&!o&&(r=[]),r}}},ot=W.extend;function At(e,t){return W.where(e,(function(e){return e.pos===t}))}function at(e,t){return e.sort((function(e,n){var i=t?n:e,r=t?e:n;return i.weight===r.weight?i.index-r.index:i.weight-r.weight}))}function st(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function lt(e,t,n){var i,r,o=n.box,A=e.maxPadding;if(n.size&&(e[n.pos]-=n.size),n.size=n.horizontal?o.height:o.width,e[n.pos]+=n.size,o.getPadding){var a=o.getPadding();A.top=Math.max(A.top,a.top),A.left=Math.max(A.left,a.left),A.bottom=Math.max(A.bottom,a.bottom),A.right=Math.max(A.right,a.right)}if(i=t.outerWidth-st(A,e,"left","right"),r=t.outerHeight-st(A,e,"top","bottom"),i!==e.w||r!==e.h){e.w=i,e.h=r;var s=n.horizontal?[i,e.w]:[r,e.h];return!(s[0]===s[1]||isNaN(s[0])&&isNaN(s[1]))}}function ct(e,t){var n=t.maxPadding;function i(e){var i={left:0,top:0,right:0,bottom:0};return e.forEach((function(e){i[e]=Math.max(t[e],n[e])})),i}return i(e?["left","right"]:["top","bottom"])}function ut(e,t,n){var i,r,o,A,a,s,l=[];for(i=0,r=e.length;i<r;++i)(A=(o=e[i]).box).update(o.width||t.w,o.height||t.h,ct(o.horizontal,t)),lt(t,n,o)&&(s=!0,l.length&&(a=!0)),A.fullWidth||l.push(o);return a&&ut(l,t,n)||s}function dt(e,t,n){var i,r,o,A,a=n.padding,s=t.x,l=t.y;for(i=0,r=e.length;i<r;++i)A=(o=e[i]).box,o.horizontal?(A.left=A.fullWidth?a.left:t.left,A.right=A.fullWidth?n.outerWidth-a.right:t.left+t.w,A.top=l,A.bottom=l+A.height,A.width=A.right-A.left,l=A.bottom):(A.left=s,A.right=s+A.width,A.top=t.top,A.bottom=t.top+t.h,A.height=A.bottom-A.top,s=A.right);t.x=s,t.y=l}L._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var ft,ht={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(){t.draw.apply(t,arguments)}}]},e.boxes.push(t)},removeBox:function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure:function(e,t,n){for(var i,r=["fullWidth","position","weight"],o=r.length,A=0;A<o;++A)i=r[A],n.hasOwnProperty(i)&&(t[i]=n[i])},update:function(e,t,n){if(e){var i=e.options.layout||{},r=W.options.toPadding(i.padding),o=t-r.width,A=n-r.height,a=function(e){var t=function(e){var t,n,i,r=[];for(t=0,n=(e||[]).length;t<n;++t)i=e[t],r.push({index:t,box:i,pos:i.position,horizontal:i.isHorizontal(),weight:i.weight});return r}(e),n=at(At(t,"left"),!0),i=at(At(t,"right")),r=at(At(t,"top"),!0),o=at(At(t,"bottom"));return{leftAndTop:n.concat(r),rightAndBottom:i.concat(o),chartArea:At(t,"chartArea"),vertical:n.concat(i),horizontal:r.concat(o)}}(e.boxes),s=a.vertical,l=a.horizontal,c=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:o,vBoxMaxWidth:o/2/s.length,hBoxMaxHeight:A/2}),u=ot({maxPadding:ot({},r),w:o,h:A,x:r.left,y:r.top},r);!function(e,t){var n,i,r;for(n=0,i=e.length;n<i;++n)(r=e[n]).width=r.horizontal?r.box.fullWidth&&t.availableWidth:t.vBoxMaxWidth,r.height=r.horizontal&&t.hBoxMaxHeight}(s.concat(l),c),ut(s,u,c),ut(l,u,c)&&ut(s,u,c),function(e){var t=e.maxPadding;function n(n){var i=Math.max(t[n]-e[n],0);return e[n]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(u),dt(a.leftAndTop,u,c),u.x+=u.w,u.y+=u.h,dt(a.rightAndBottom,u,c),e.chartArea={left:u.left,top:u.top,right:u.left+u.w,bottom:u.top+u.h},W.each(a.chartArea,(function(t){var n=t.box;ot(n,e.chartArea),n.update(u.w,u.h)}))}}},pt=(ft=Object.freeze({__proto__:null,default:"/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n"}))&&ft.default||ft,gt=["animationstart","webkitAnimationStart"],mt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function vt(e,t){var n=W.getStyle(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}var yt=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(e){}return e}()&&{passive:!0};function bt(e,t,n){e.addEventListener(t,n,yt)}function xt(e,t,n){e.removeEventListener(t,n,yt)}function wt(e,t,n,i,r){return{type:e,chart:t,native:r||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function _t(e){var t=document.createElement("div");return t.className=e||"",t}function kt(e,t,n){var i,r,o,A,a=e.$chartjs||(e.$chartjs={}),s=a.resizer=function(e){var t=_t("chartjs-size-monitor"),n=_t("chartjs-size-monitor-expand"),i=_t("chartjs-size-monitor-shrink");n.appendChild(_t()),i.appendChild(_t()),t.appendChild(n),t.appendChild(i),t._reset=function(){n.scrollLeft=1e6,n.scrollTop=1e6,i.scrollLeft=1e6,i.scrollTop=1e6};var r=function(){t._reset(),e()};return bt(n,"scroll",r.bind(n,"expand")),bt(i,"scroll",r.bind(i,"shrink")),t}((i=function(){if(a.resizer){var i=n.options.maintainAspectRatio&&e.parentNode,r=i?i.clientWidth:0;t(wt("resize",n)),i&&i.clientWidth<r&&n.canvas&&t(wt("resize",n))}},o=!1,A=[],function(){A=Array.prototype.slice.call(arguments),r=r||this,o||(o=!0,W.requestAnimFrame.call(window,(function(){o=!1,i.apply(r,A)})))}));!function(e,t){var n=e.$chartjs||(e.$chartjs={}),i=n.renderProxy=function(e){"chartjs-render-animation"===e.animationName&&t()};W.each(gt,(function(t){bt(e,t,i)})),n.reflow=!!e.offsetParent,e.classList.add("chartjs-render-monitor")}(e,(function(){if(a.resizer){var t=e.parentNode;t&&t!==s.parentNode&&t.insertBefore(s,t.firstChild),s._reset()}}))}function St(e){var t=e.$chartjs||{},n=t.resizer;delete t.resizer,function(e){var t=e.$chartjs||{},n=t.renderProxy;n&&(W.each(gt,(function(t){xt(e,t,n)})),delete t.renderProxy),e.classList.remove("chartjs-render-monitor")}(e),n&&n.parentNode&&n.parentNode.removeChild(n)}var Tt={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(e){if(!this.disableCSSInjection){var t=e.getRootNode?e.getRootNode():document;!function(e,t){var n=e.$chartjs||(e.$chartjs={});if(!n.containsStyles){n.containsStyles=!0,t="/* Chart.js */\n"+t;var i=document.createElement("style");i.setAttribute("type","text/css"),i.appendChild(document.createTextNode(t)),e.appendChild(i)}}(t.host?t:document.head,pt)}},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(this._ensureLoaded(e),function(e,t){var n=e.style,i=e.getAttribute("height"),r=e.getAttribute("width");if(e.$chartjs={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===r||""===r){var o=vt(e,"width");void 0!==o&&(e.width=o)}if(null===i||""===i)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var A=vt(e,"height");void 0!==o&&(e.height=A)}}(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t.$chartjs){var n=t.$chartjs.initial;["height","width"].forEach((function(e){var i=n[e];W.isNullOrUndef(i)?t.removeAttribute(e):t.setAttribute(e,i)})),W.each(n.style||{},(function(e,n){t.style[n]=e})),t.width=t.width,delete t.$chartjs}},addEventListener:function(e,t,n){var i=e.canvas;if("resize"!==t){var r=n.$chartjs||(n.$chartjs={});bt(i,t,(r.proxies||(r.proxies={}))[e.id+"_"+t]=function(t){n(function(e,t){var n=mt[e.type]||e.type,i=W.getRelativePosition(e,t);return wt(n,t,i.x,i.y,e)}(t,e))})}else kt(i,n,e)},removeEventListener:function(e,t,n){var i=e.canvas;if("resize"!==t){var r=((n.$chartjs||{}).proxies||{})[e.id+"_"+t];r&&xt(i,t,r)}else St(i)}};W.addEvent=bt,W.removeEvent=xt;var Mt=Tt._enabled?Tt:{acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}},Ct=W.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},Mt);L._set("global",{plugins:{}});var Dt={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach((function(e){-1===t.indexOf(e)&&t.push(e)})),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach((function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)})),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var i,r,o,A,a,s=this.descriptors(e),l=s.length;for(i=0;i<l;++i)if("function"==typeof(a=(o=(r=s[i]).plugin)[t])&&((A=[e].concat(n||[])).push(r.options),!1===a.apply(o,A)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var n=[],i=[],r=e&&e.config||{},o=r.options&&r.options.plugins||{};return this._plugins.concat(r.plugins||[]).forEach((function(e){if(-1===n.indexOf(e)){var t=e.id,r=o[t];!1!==r&&(!0===r&&(r=W.clone(L.global.plugins[t])),n.push(e),i.push({plugin:e,options:r||{}}))}})),t.descriptors=i,t.id=this._cacheId,i},_invalidate:function(e){delete e.$plugins}},Pt={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=W.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?W.merge(Object.create(null),[L.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){this.defaults.hasOwnProperty(e)&&(this.defaults[e]=W.extend(this.defaults[e],t))},addScalesToLayout:function(e){W.each(e.scales,(function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,ht.addBox(e,t)}))}},Et=W.valueOrDefault,Ot=W.rtl.getRtlAdapter;L._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:W.noop,title:function(e,t){var n="",i=t.labels,r=i?i.length:0;if(e.length>0){var o=e[0];o.label?n=o.label:o.xLabel?n=o.xLabel:r>0&&o.index<r&&(n=i[o.index])}return n},afterTitle:W.noop,beforeBody:W.noop,beforeLabel:W.noop,label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),W.isNullOrUndef(e.value)?n+=e.yLabel:n+=e.value,n},labelColor:function(e,t){var n=t.getDatasetMeta(e.datasetIndex).data[e.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:W.noop,afterBody:W.noop,beforeFooter:W.noop,footer:W.noop,afterFooter:W.noop}}});var It={average:function(e){if(!e.length)return!1;var t,n,i=0,r=0,o=0;for(t=0,n=e.length;t<n;++t){var A=e[t];if(A&&A.hasValue()){var a=A.tooltipPosition();i+=a.x,r+=a.y,++o}}return{x:i/o,y:r/o}},nearest:function(e,t){var n,i,r,o=t.x,A=t.y,a=Number.POSITIVE_INFINITY;for(n=0,i=e.length;n<i;++n){var s=e[n];if(s&&s.hasValue()){var l=s.getCenterPoint(),c=W.distanceBetweenPoints(t,l);c<a&&(a=c,r=s)}}if(r){var u=r.tooltipPosition();o=u.x,A=u.y}return{x:o,y:A}}};function Nt(e,t){return t&&(W.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Ft(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Lt(e){var t=L.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Et(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Et(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Et(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Et(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Et(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Et(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Et(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Et(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Et(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function Rt(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function jt(e){return Nt([],Ft(e))}var zt=X.extend({initialize:function(){this._model=Lt(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options,n=t.callbacks,i=n.beforeTitle.apply(e,arguments),r=n.title.apply(e,arguments),o=n.afterTitle.apply(e,arguments),A=[];return A=Nt(A,Ft(i)),A=Nt(A,Ft(r)),A=Nt(A,Ft(o))},getBeforeBody:function(){return jt(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,i=n._options.callbacks,r=[];return W.each(e,(function(e){var o={before:[],lines:[],after:[]};Nt(o.before,Ft(i.beforeLabel.call(n,e,t))),Nt(o.lines,i.label.call(n,e,t)),Nt(o.after,Ft(i.afterLabel.call(n,e,t))),r.push(o)})),r},getAfterBody:function(){return jt(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,n=t.beforeFooter.apply(e,arguments),i=t.footer.apply(e,arguments),r=t.afterFooter.apply(e,arguments),o=[];return o=Nt(o,Ft(n)),o=Nt(o,Ft(i)),o=Nt(o,Ft(r))},update:function(e){var t,n,i,r,o,A,a,s,l,c,u=this,d=u._options,f=u._model,h=u._model=Lt(d),p=u._active,g=u._data,m={xAlign:f.xAlign,yAlign:f.yAlign},v={x:f.x,y:f.y},y={width:f.width,height:f.height},b={x:f.caretX,y:f.caretY};if(p.length){h.opacity=1;var x=[],w=[];b=It[d.position].call(u,p,u._eventPosition);var _=[];for(t=0,n=p.length;t<n;++t)_.push((i=p[t],r=void 0,o=void 0,A=void 0,a=void 0,s=void 0,l=void 0,c=void 0,r=i._xScale,o=i._yScale||i._scale,A=i._index,a=i._datasetIndex,s=i._chart.getDatasetMeta(a).controller,l=s._getIndexScale(),c=s._getValueScale(),{xLabel:r?r.getLabelForIndex(A,a):"",yLabel:o?o.getLabelForIndex(A,a):"",label:l?""+l.getLabelForIndex(A,a):"",value:c?""+c.getLabelForIndex(A,a):"",index:A,datasetIndex:a,x:i._model.x,y:i._model.y}));d.filter&&(_=_.filter((function(e){return d.filter(e,g)}))),d.itemSort&&(_=_.sort((function(e,t){return d.itemSort(e,t,g)}))),W.each(_,(function(e){x.push(d.callbacks.labelColor.call(u,e,u._chart)),w.push(d.callbacks.labelTextColor.call(u,e,u._chart))})),h.title=u.getTitle(_,g),h.beforeBody=u.getBeforeBody(_,g),h.body=u.getBody(_,g),h.afterBody=u.getAfterBody(_,g),h.footer=u.getFooter(_,g),h.x=b.x,h.y=b.y,h.caretPadding=d.caretPadding,h.labelColors=x,h.labelTextColors=w,h.dataPoints=_,y=function(e,t){var n=e._chart.ctx,i=2*t.yPadding,r=0,o=t.body,A=o.reduce((function(e,t){return e+t.before.length+t.lines.length+t.after.length}),0);A+=t.beforeBody.length+t.afterBody.length;var a=t.title.length,s=t.footer.length,l=t.titleFontSize,c=t.bodyFontSize,u=t.footerFontSize;i+=a*l,i+=a?(a-1)*t.titleSpacing:0,i+=a?t.titleMarginBottom:0,i+=A*c,i+=A?(A-1)*t.bodySpacing:0,i+=s?t.footerMarginTop:0,i+=s*u,i+=s?(s-1)*t.footerSpacing:0;var d=0,f=function(e){r=Math.max(r,n.measureText(e).width+d)};return n.font=W.fontString(l,t._titleFontStyle,t._titleFontFamily),W.each(t.title,f),n.font=W.fontString(c,t._bodyFontStyle,t._bodyFontFamily),W.each(t.beforeBody.concat(t.afterBody),f),d=t.displayColors?c+2:0,W.each(o,(function(e){W.each(e.before,f),W.each(e.lines,f),W.each(e.after,f)})),d=0,n.font=W.fontString(u,t._footerFontStyle,t._footerFontFamily),W.each(t.footer,f),{width:r+=2*t.xPadding,height:i}}(this,h),v=function(e,t,n,i){var r=e.x,o=e.y,A=e.caretSize,a=e.caretPadding,s=e.cornerRadius,l=n.xAlign,c=n.yAlign,u=A+a,d=s+a;return"right"===l?r-=t.width:"center"===l&&((r-=t.width/2)+t.width>i.width&&(r=i.width-t.width),r<0&&(r=0)),"top"===c?o+=u:o-="bottom"===c?t.height+u:t.height/2,"center"===c?"left"===l?r+=u:"right"===l&&(r-=u):"left"===l?r-=d:"right"===l&&(r+=d),{x:r,y:o}}(h,y,m=function(e,t){var n,i,r,o,A,a=e._model,s=e._chart,l=e._chart.chartArea,c="center",u="center";a.y<t.height?u="top":a.y>s.height-t.height&&(u="bottom");var d=(l.left+l.right)/2,f=(l.top+l.bottom)/2;"center"===u?(n=function(e){return e<=d},i=function(e){return e>d}):(n=function(e){return e<=t.width/2},i=function(e){return e>=s.width-t.width/2}),r=function(e){return e+t.width+a.caretSize+a.caretPadding>s.width},o=function(e){return e-t.width-a.caretSize-a.caretPadding<0},A=function(e){return e<=f?"top":"bottom"},n(a.x)?(c="left",r(a.x)&&(c="center",u=A(a.y))):i(a.x)&&(c="right",o(a.x)&&(c="center",u=A(a.y)));var h=e._options;return{xAlign:h.xAlign?h.xAlign:c,yAlign:h.yAlign?h.yAlign:u}}(this,y),u._chart)}else h.opacity=0;return h.xAlign=m.xAlign,h.yAlign=m.yAlign,h.x=v.x,h.y=v.y,h.width=y.width,h.height=y.height,h.caretX=b.x,h.caretY=b.y,u._model=h,e&&d.custom&&d.custom.call(u,h),u},drawCaret:function(e,t){var n=this._chart.ctx,i=this._view,r=this.getCaretPosition(e,t,i);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)},getCaretPosition:function(e,t,n){var i,r,o,A,a,s,l=n.caretSize,c=n.cornerRadius,u=n.xAlign,d=n.yAlign,f=e.x,h=e.y,p=t.width,g=t.height;if("center"===d)a=h+g/2,"left"===u?(r=(i=f)-l,o=i,A=a+l,s=a-l):(r=(i=f+p)+l,o=i,A=a-l,s=a+l);else if("left"===u?(i=(r=f+c+l)-l,o=r+l):"right"===u?(i=(r=f+p-c-l)-l,o=r+l):(i=(r=n.caretX)-l,o=r+l),"top"===d)a=(A=h)-l,s=A;else{a=(A=h+g)+l,s=A;var m=o;o=i,i=m}return{x1:i,x2:r,x3:o,y1:A,y2:a,y3:s}},drawTitle:function(e,t,n){var i,r,o,A=t.title,a=A.length;if(a){var s=Ot(t.rtl,t.x,t.width);for(e.x=Rt(t,t._titleAlign),n.textAlign=s.textAlign(t._titleAlign),n.textBaseline="middle",i=t.titleFontSize,r=t.titleSpacing,n.fillStyle=t.titleFontColor,n.font=W.fontString(i,t._titleFontStyle,t._titleFontFamily),o=0;o<a;++o)n.fillText(A[o],s.x(e.x),e.y+i/2),e.y+=i+r,o+1===a&&(e.y+=t.titleMarginBottom-r)}},drawBody:function(e,t,n){var i,r,o,A,a,s,l,c,u=t.bodyFontSize,d=t.bodySpacing,f=t._bodyAlign,h=t.body,p=t.displayColors,g=0,m=p?Rt(t,"left"):0,v=Ot(t.rtl,t.x,t.width),y=function(t){n.fillText(t,v.x(e.x+g),e.y+u/2),e.y+=u+d},b=v.textAlign(f);for(n.textAlign=f,n.textBaseline="middle",n.font=W.fontString(u,t._bodyFontStyle,t._bodyFontFamily),e.x=Rt(t,b),n.fillStyle=t.bodyFontColor,W.each(t.beforeBody,y),g=p&&"right"!==b?"center"===f?u/2+1:u+2:0,a=0,l=h.length;a<l;++a){for(i=h[a],r=t.labelTextColors[a],o=t.labelColors[a],n.fillStyle=r,W.each(i.before,y),s=0,c=(A=i.lines).length;s<c;++s){if(p){var x=v.x(m);n.fillStyle=t.legendColorBackground,n.fillRect(v.leftForLtr(x,u),e.y,u,u),n.lineWidth=1,n.strokeStyle=o.borderColor,n.strokeRect(v.leftForLtr(x,u),e.y,u,u),n.fillStyle=o.backgroundColor,n.fillRect(v.leftForLtr(v.xPlus(x,1),u-2),e.y+1,u-2,u-2),n.fillStyle=r}y(A[s])}W.each(i.after,y)}g=0,W.each(t.afterBody,y),e.y-=d},drawFooter:function(e,t,n){var i,r,o=t.footer,A=o.length;if(A){var a=Ot(t.rtl,t.x,t.width);for(e.x=Rt(t,t._footerAlign),e.y+=t.footerMarginTop,n.textAlign=a.textAlign(t._footerAlign),n.textBaseline="middle",i=t.footerFontSize,n.fillStyle=t.footerFontColor,n.font=W.fontString(i,t._footerFontStyle,t._footerFontFamily),r=0;r<A;++r)n.fillText(o[r],a.x(e.x),e.y+i/2),e.y+=i+t.footerSpacing}},drawBackground:function(e,t,n,i){n.fillStyle=t.backgroundColor,n.strokeStyle=t.borderColor,n.lineWidth=t.borderWidth;var r=t.xAlign,o=t.yAlign,A=e.x,a=e.y,s=i.width,l=i.height,c=t.cornerRadius;n.beginPath(),n.moveTo(A+c,a),"top"===o&&this.drawCaret(e,i),n.lineTo(A+s-c,a),n.quadraticCurveTo(A+s,a,A+s,a+c),"center"===o&&"right"===r&&this.drawCaret(e,i),n.lineTo(A+s,a+l-c),n.quadraticCurveTo(A+s,a+l,A+s-c,a+l),"bottom"===o&&this.drawCaret(e,i),n.lineTo(A+c,a+l),n.quadraticCurveTo(A,a+l,A,a+l-c),"center"===o&&"left"===r&&this.drawCaret(e,i),n.lineTo(A,a+c),n.quadraticCurveTo(A,a,A+c,a),n.closePath(),n.fill(),t.borderWidth>0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},i={x:t.x,y:t.y},r=Math.abs(t.opacity<.001)?0:t.opacity,o=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&o&&(e.save(),e.globalAlpha=r,this.drawBackground(i,t,e,n),i.y+=t.yPadding,W.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(i,t,e),this.drawBody(i,t,e),this.drawFooter(i,t,e),W.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t,n=this,i=n._options;return n._lastActive=n._lastActive||[],"mouseout"===e.type?n._active=[]:(n._active=n._chart.getElementsAtEventForMode(e,i.mode,i),i.reverse&&n._active.reverse()),(t=!W.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(i.enabled||i.custom)&&(n._eventPosition={x:e.x,y:e.y},n.update(!0),n.pivot())),t}}),Bt=It,Wt=zt;Wt.positioners=Bt;var Ht=W.valueOrDefault;function Vt(){return W.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,i){if("xAxes"===e||"yAxes"===e){var r,o,A,a=n[e].length;for(t[e]||(t[e]=[]),r=0;r<a;++r)A=n[e][r],o=Ht(A.type,"xAxes"===e?"category":"linear"),r>=t[e].length&&t[e].push({}),!t[e][r].type||A.type&&A.type!==t[e][r].type?W.merge(t[e][r],[Pt.getScaleDefaults(o),A]):W.merge(t[e][r],A)}else W._merger(e,t,n,i)}})}function Yt(){return W.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,i){var r=t[e]||Object.create(null),o=n[e];"scales"===e?t[e]=Vt(r,o):"scale"===e?t[e]=W.merge(r,[Pt.getScaleDefaults(o.type),o]):W._merger(e,t,n,i)}})}function qt(e){var t=e.options;W.each(e.scales,(function(t){ht.removeBox(e,t)})),t=Yt(L.global,L[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}function Ut(e,t,n){var i,r=function(e){return e.id===i};do{i=t+n++}while(W.findIndex(e,r)>=0);return i}function Qt(e){return"top"===e||"bottom"===e}function Xt(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}L._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Gt=function(e,t){return this.construct(e,t),this};W.extend(Gt.prototype,{construct:function(e,t){var n=this;t=function(e){var t=(e=e||Object.create(null)).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Yt(L.global,L[e.type],e.options||{}),e}(t);var i=Ct.acquireContext(e,t),r=i&&i.canvas,o=r&&r.height,A=r&&r.width;n.id=W.uid(),n.ctx=i,n.canvas=r,n.config=t,n.width=A,n.height=o,n.aspectRatio=o?A/o:null,n.options=t.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Gt.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),i&&r?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return Dt.notify(e,"beforeInit"),W.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),Dt.notify(e,"afterInit"),e},clear:function(){return W.canvas.clear(this),this},stop:function(){return K.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,i=t.canvas,r=n.maintainAspectRatio&&t.aspectRatio||null,o=Math.max(0,Math.floor(W.getMaximumWidth(i))),A=Math.max(0,Math.floor(r?o/r:W.getMaximumHeight(i)));if((t.width!==o||t.height!==A)&&(i.width=t.width=o,i.height=t.height=A,i.style.width=o+"px",i.style.height=A+"px",W.retinaScale(t,n.devicePixelRatio),!e)){var a={width:o,height:A};Dt.notify(t,"resize",[a]),n.onResize&&n.onResize(t,a),t.stop(),t.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;W.each(t.xAxes,(function(e,n){e.id||(e.id=Ut(t.xAxes,"x-axis-",n))})),W.each(t.yAxes,(function(e,n){e.id||(e.id=Ut(t.yAxes,"y-axis-",n))})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,n=e.scales||{},i=[],r=Object.keys(n).reduce((function(e,t){return e[t]=!1,e}),{});t.scales&&(i=i.concat((t.scales.xAxes||[]).map((function(e){return{options:e,dtype:"category",dposition:"bottom"}})),(t.scales.yAxes||[]).map((function(e){return{options:e,dtype:"linear",dposition:"left"}})))),t.scale&&i.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),W.each(i,(function(t){var i=t.options,o=i.id,A=Ht(i.type,t.dtype);Qt(i.position)!==Qt(t.dposition)&&(i.position=t.dposition),r[o]=!0;var a=null;if(o in n&&n[o].type===A)(a=n[o]).options=i,a.ctx=e.ctx,a.chart=e;else{var s=Pt.getScaleConstructor(A);if(!s)return;a=new s({id:o,type:A,options:i,ctx:e.ctx,chart:e}),n[a.id]=a}a.mergeTicksOptions(),t.isDefault&&(e.scale=a)})),W.each(r,(function(e,t){e||delete n[t]})),e.scales=n,Pt.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,n=this,i=[],r=n.data.datasets;for(e=0,t=r.length;e<t;e++){var o=r[e],A=n.getDatasetMeta(e),a=o.type||n.config.type;if(A.type&&A.type!==a&&(n.destroyDatasetMeta(e),A=n.getDatasetMeta(e)),A.type=a,A.order=o.order||0,A.index=e,A.controller)A.controller.updateIndex(e),A.controller.linkScales();else{var s=Ke[A.type];if(void 0===s)throw new Error('"'+A.type+'" is not a chart type.');A.controller=new s(n,e),i.push(A.controller)}}return i},resetElements:function(){var e=this;W.each(e.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.reset()}),e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var t,n,i=this;if(e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]}),qt(i),Dt._invalidate(i),!1!==Dt.notify(i,"beforeUpdate")){i.tooltip._data=i.data;var r=i.buildOrUpdateControllers();for(t=0,n=i.data.datasets.length;t<n;t++)i.getDatasetMeta(t).controller.buildOrUpdateElements();i.updateLayout(),i.options.animation&&i.options.animation.duration&&W.each(r,(function(e){e.reset()})),i.updateDatasets(),i.tooltip.initialize(),i.lastActive=[],Dt.notify(i,"afterUpdate"),i._layers.sort(Xt("z","_idx")),i._bufferedRender?i._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:i.render(e)}},updateLayout:function(){var e=this;!1!==Dt.notify(e,"beforeLayout")&&(ht.update(this,this.width,this.height),e._layers=[],W.each(e.boxes,(function(t){t._configure&&t._configure(),e._layers.push.apply(e._layers,t._layers())}),e),e._layers.forEach((function(e,t){e._idx=t})),Dt.notify(e,"afterScaleUpdate"),Dt.notify(e,"afterLayout"))},updateDatasets:function(){if(!1!==Dt.notify(this,"beforeDatasetsUpdate")){for(var e=0,t=this.data.datasets.length;e<t;++e)this.updateDataset(e);Dt.notify(this,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this.getDatasetMeta(e),n={meta:t,index:e};!1!==Dt.notify(this,"beforeDatasetUpdate",[n])&&(t.controller._update(),Dt.notify(this,"afterDatasetUpdate",[n]))},render:function(e){var t=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]});var n=t.options.animation,i=Ht(e.duration,n&&n.duration),r=e.lazy;if(!1!==Dt.notify(t,"beforeRender")){var o=function(e){Dt.notify(t,"afterRender"),W.callback(n&&n.onComplete,[e],t)};if(n&&i){var A=new Z({numSteps:i/16.66,easing:e.easing||n.easing,render:function(e,t){var n=W.easing.effects[t.easing],i=t.currentStep,r=i/t.numSteps;e.draw(n(r),r,i)},onAnimationProgress:n.onProgress,onAnimationComplete:o});K.addAnimation(t,A,i,r)}else t.draw(),o(new Z({numSteps:0,chart:t}));return t}},draw:function(e){var t,n,i=this;if(i.clear(),W.isNullOrUndef(e)&&(e=1),i.transition(e),!(i.width<=0||i.height<=0)&&!1!==Dt.notify(i,"beforeDraw",[e])){for(n=i._layers,t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(i.chartArea);for(i.drawDatasets(e);t<n.length;++t)n[t].draw(i.chartArea);i._drawTooltip(e),Dt.notify(i,"afterDraw",[e])}},transition:function(e){for(var t=0,n=(this.data.datasets||[]).length;t<n;++t)this.isDatasetVisible(t)&&this.getDatasetMeta(t).controller.transition(e);this.tooltip.transition(e)},_getSortedDatasetMetas:function(e){var t,n,i=[];for(t=0,n=(this.data.datasets||[]).length;t<n;++t)e&&!this.isDatasetVisible(t)||i.push(this.getDatasetMeta(t));return i.sort(Xt("order","index")),i},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(e){var t,n;if(!1!==Dt.notify(this,"beforeDatasetsDraw",[e])){for(n=(t=this._getSortedVisibleDatasetMetas()).length-1;n>=0;--n)this.drawDataset(t[n],e);Dt.notify(this,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n={meta:e,index:e.index,easingValue:t};!1!==Dt.notify(this,"beforeDatasetDraw",[n])&&(e.controller.draw(t),Dt.notify(this,"afterDatasetDraw",[n]))},_drawTooltip:function(e){var t=this.tooltip,n={tooltip:t,easingValue:e};!1!==Dt.notify(this,"beforeTooltipDraw",[n])&&(t.draw(),Dt.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(e){return rt.modes.single(this,e)},getElementsAtEvent:function(e){return rt.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return rt.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var i=rt.modes[t];return"function"==typeof i?i(this,e,n):[]},getDatasetAtEvent:function(e){return rt.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this.data.datasets[e];t._meta||(t._meta={});var n=t._meta[this.id];return n||(n=t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t.order||0,index:e}),n},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t<n;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,n=this.data.datasets[e],i=n._meta&&n._meta[t];i&&(i.controller.destroy(),delete n._meta[t])},destroy:function(){var e,t,n=this,i=n.canvas;for(n.stop(),e=0,t=n.data.datasets.length;e<t;++e)n.destroyDatasetMeta(e);i&&(n.unbindEvents(),W.canvas.clear(n),Ct.releaseContext(n.ctx),n.canvas=null,n.ctx=null),Dt.notify(n,"destroy"),delete Gt.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new Wt({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},n=function(){e.eventHandler.apply(e,arguments)};W.each(e.options.events,(function(i){Ct.addEventListener(e,i,n),t[i]=n})),e.options.responsive&&(n=function(){e.resize()},Ct.addEventListener(e,"resize",n),t.resize=n)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,W.each(t,(function(t,n){Ct.removeEventListener(e,n,t)})))},updateHoverStyle:function(e,t,n){var i,r,o,A=n?"set":"remove";for(r=0,o=e.length;r<o;++r)(i=e[r])&&this.getDatasetMeta(i._datasetIndex).controller[A+"HoverStyle"](i);"dataset"===t&&this.getDatasetMeta(e[0]._datasetIndex).controller["_"+A+"DatasetHoverStyle"]()},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==Dt.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var i=t.handleEvent(e);n&&(i=n._start?n.handleEvent(e):i|n.handleEvent(e)),Dt.notify(t,"afterEvent",[e]);var r=t._bufferedRequest;return r?t.render(r):i&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t,n=this,i=n.options||{},r=i.hover;return n.lastActive=n.lastActive||[],"mouseout"===e.type?n.active=[]:n.active=n.getElementsAtEventForMode(e,r.mode,r),W.callback(i.onHover||i.hover.onHover,[e.native,n.active],n),"mouseup"!==e.type&&"click"!==e.type||i.onClick&&i.onClick.call(n,e.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,r.mode,!1),n.active.length&&r.mode&&n.updateHoverStyle(n.active,r.mode,!0),t=!W.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,t}}),Gt.instances={};var Zt=Gt;function Kt(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function Jt(e){this.options=e||{}}Gt.Controller=Gt,Gt.types={},W.configMerge=Yt,W.scaleMerge=Vt,W.extend(Jt.prototype,{formats:Kt,parse:Kt,format:Kt,add:Kt,diff:Kt,startOf:Kt,endOf:Kt,_create:function(e){return e}}),Jt.override=function(e){W.extend(Jt.prototype,e)};var $t={_date:Jt},en={formatters:{values:function(e){return W.isArray(e)?e:""+e},linear:function(e,t,n){var i=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(i)>1&&e!==Math.floor(e)&&(i=e-Math.floor(e));var r=W.log10(Math.abs(i)),o="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var A=W.log10(Math.abs(e)),a=Math.floor(A)-Math.floor(r);a=Math.max(Math.min(a,20),0),o=e.toExponential(a)}else{var s=-1*Math.floor(r);s=Math.max(Math.min(s,20),0),o=e.toFixed(s)}else o="0";return o},logarithmic:function(e,t,n){var i=e/Math.pow(10,Math.floor(W.log10(e)));return 0===e?"0":1===i||2===i||5===i||0===t||t===n.length-1?e.toExponential():""}}},tn=W.isArray,nn=W.isNullOrUndef,rn=W.valueOrDefault,on=W.valueAtIndexOrDefault;function An(e,t,n){var i,r=e.getTicks().length,o=Math.min(t,r-1),A=e.getPixelForTick(o),a=e._startPixel,s=e._endPixel;if(!(n&&(i=1===r?Math.max(A-a,s-A):0===t?(e.getPixelForTick(1)-A)/2:(A-e.getPixelForTick(o-1))/2,(A+=o<t?i:-i)<a-1e-6||A>s+1e-6)))return A}function an(e,t,n,i){var r,o,A,a,s,l,c,u,d,f,h,p,g,m=n.length,v=[],y=[],b=[],x=0,w=0;for(r=0;r<m;++r){if(a=n[r].label,s=n[r].major?t.major:t.minor,e.font=l=s.string,c=i[l]=i[l]||{data:{},gc:[]},u=s.lineHeight,d=f=0,nn(a)||tn(a)){if(tn(a))for(o=0,A=a.length;o<A;++o)h=a[o],nn(h)||tn(h)||(d=W.measureText(e,c.data,c.gc,d,h),f+=u)}else d=W.measureText(e,c.data,c.gc,d,a),f=u;v.push(d),y.push(f),b.push(u/2),x=Math.max(d,x),w=Math.max(f,w)}function _(e){return{width:v[e]||0,height:y[e]||0,offset:b[e]||0}}return function(e,t){W.each(e,(function(e){var n,i=e.gc,r=i.length/2;if(r>t){for(n=0;n<r;++n)delete e.data[i[n]];i.splice(0,r)}}))}(i,m),p=v.indexOf(x),g=y.indexOf(w),{first:_(0),last:_(m-1),widest:_(p),highest:_(g)}}function sn(e){return e.drawTicks?e.tickMarkLength:0}function ln(e){var t,n;return e.display?(t=W.options._parseFont(e),n=W.options.toPadding(e.padding),t.lineHeight+n.height):0}function cn(e,t){return W.extend(W.options._parseFont({fontFamily:rn(t.fontFamily,e.fontFamily),fontSize:rn(t.fontSize,e.fontSize),fontStyle:rn(t.fontStyle,e.fontStyle),lineHeight:rn(t.lineHeight,e.lineHeight)}),{color:W.options.resolve([t.fontColor,e.fontColor,L.global.defaultFontColor])})}function un(e){var t=cn(e,e.minor);return{minor:t,major:e.major.enabled?cn(e,e.major):t}}function dn(e){var t,n,i,r=[];for(n=0,i=e.length;n<i;++n)void 0!==(t=e[n])._index&&r.push(t);return r}function fn(e,t,n,i){var r,o,A,a,s=rn(n,0),l=Math.min(rn(i,e.length),e.length),c=0;for(t=Math.ceil(t),i&&(t=(r=i-n)/Math.floor(r/t)),a=s;a<0;)c++,a=Math.round(s+c*t);for(o=Math.max(s,0);o<l;o++)A=e[o],o===a?(A._index=o,c++,a=Math.round(s+c*t)):delete A.label}L._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:en.formatters.values,minor:{},major:{}}});var hn=X.extend({zeroLineIndex:0,getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){W.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var i,r,o,A,a,s=this,l=s.options.ticks,c=l.sampleSize;if(s.beforeUpdate(),s.maxWidth=e,s.maxHeight=t,s.margins=W.extend({left:0,right:0,top:0,bottom:0},n),s._ticks=null,s.ticks=null,s._labelSizes=null,s._maxLabelLines=0,s.longestLabelWidth=0,s.longestTextCache=s.longestTextCache||{},s._gridLineItems=null,s._labelItems=null,s.beforeSetDimensions(),s.setDimensions(),s.afterSetDimensions(),s.beforeDataLimits(),s.determineDataLimits(),s.afterDataLimits(),s.beforeBuildTicks(),A=s.buildTicks()||[],(!(A=s.afterBuildTicks(A)||A)||!A.length)&&s.ticks)for(A=[],i=0,r=s.ticks.length;i<r;++i)A.push({value:s.ticks[i],major:!1});return s._ticks=A,a=c<A.length,o=s._convertTicksToLabels(a?function(e,t){for(var n=[],i=e.length/t,r=0,o=e.length;r<o;r+=i)n.push(e[Math.floor(r)]);return n}(A,c):A),s._configure(),s.beforeCalculateTickRotation(),s.calculateTickRotation(),s.afterCalculateTickRotation(),s.beforeFit(),s.fit(),s.afterFit(),s._ticksToDraw=l.display&&(l.autoSkip||"auto"===l.source)?s._autoSkip(A):A,a&&(o=s._convertTicksToLabels(s._ticksToDraw)),s.ticks=o,s.afterUpdate(),s.minSize},_configure:function(){var e,t,n=this,i=n.options.ticks.reverse;n.isHorizontal()?(e=n.left,t=n.right):(e=n.top,t=n.bottom,i=!i),n._startPixel=e,n._endPixel=t,n._reversePixels=i,n._length=t-e},afterUpdate:function(){W.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){W.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){W.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){W.callback(this.options.beforeDataLimits,[this])},determineDataLimits:W.noop,afterDataLimits:function(){W.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){W.callback(this.options.beforeBuildTicks,[this])},buildTicks:W.noop,afterBuildTicks:function(e){var t=this;return tn(e)&&e.length?W.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=W.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){W.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this.options.ticks;this.ticks=this.ticks.map(e.userCallback||e.callback,this)},afterTickToLabelConversion:function(){W.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){W.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e,t,n,i,r,o,A,a=this,s=a.options,l=s.ticks,c=a.getTicks().length,u=l.minRotation||0,d=l.maxRotation,f=u;!a._isVisible()||!l.display||u>=d||c<=1||!a.isHorizontal()?a.labelRotation=u:(t=(e=a._getLabelSizes()).widest.width,n=e.highest.height-e.highest.offset,i=Math.min(a.maxWidth,a.chart.width-t),t+6>(r=s.offset?a.maxWidth/c:i/(c-1))&&(r=i/(c-(s.offset?.5:1)),o=a.maxHeight-sn(s.gridLines)-l.padding-ln(s.scaleLabel),A=Math.sqrt(t*t+n*n),f=W.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/r,1)),Math.asin(Math.min(o/A,1))-Math.asin(n/A))),f=Math.max(u,Math.min(d,f))),a.labelRotation=f)},afterCalculateTickRotation:function(){W.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){W.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=e.chart,i=e.options,r=i.ticks,o=i.scaleLabel,A=i.gridLines,a=e._isVisible(),s="bottom"===i.position,l=e.isHorizontal();if(l?t.width=e.maxWidth:a&&(t.width=sn(A)+ln(o)),l?a&&(t.height=sn(A)+ln(o)):t.height=e.maxHeight,r.display&&a){var c=un(r),u=e._getLabelSizes(),d=u.first,f=u.last,h=u.widest,p=u.highest,g=.4*c.minor.lineHeight,m=r.padding;if(l){var v=0!==e.labelRotation,y=W.toRadians(e.labelRotation),b=Math.cos(y),x=Math.sin(y),w=x*h.width+b*(p.height-(v?p.offset:0))+(v?0:g);t.height=Math.min(e.maxHeight,t.height+w+m);var _,k,S=e.getPixelForTick(0)-e.left,T=e.right-e.getPixelForTick(e.getTicks().length-1);v?(_=s?b*d.width+x*d.offset:x*(d.height-d.offset),k=s?x*(f.height-f.offset):b*f.width+x*f.offset):(_=d.width/2,k=f.width/2),e.paddingLeft=Math.max((_-S)*e.width/(e.width-S),0)+3,e.paddingRight=Math.max((k-T)*e.width/(e.width-T),0)+3}else{var M=r.mirror?0:h.width+m+g;t.width=Math.min(e.maxWidth,t.width+M),e.paddingTop=d.height/2,e.paddingBottom=f.height/2}}e.handleMargins(),l?(e.width=e._length=n.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){W.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(nn(e))return NaN;if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var t,n,i,r=this;for(r.ticks=e.map((function(e){return e.value})),r.beforeTickToLabelConversion(),t=r.convertTicksToLabels(e)||r.ticks,r.afterTickToLabelConversion(),n=0,i=e.length;n<i;++n)e[n].label=t[n];return t},_getLabelSizes:function(){var e=this,t=e._labelSizes;return t||(e._labelSizes=t=an(e.ctx,un(e.options.ticks),e.getTicks(),e.longestTextCache),e.longestLabelWidth=t.widest.width),t},_parseValue:function(e){var t,n,i,r;return tn(e)?(t=+this.getRightValue(e[0]),n=+this.getRightValue(e[1]),i=Math.min(t,n),r=Math.max(t,n)):(t=void 0,n=e=+this.getRightValue(e),i=e,r=e),{min:i,max:r,start:t,end:n}},_getScaleLabel:function(e){var t=this._parseValue(e);return void 0!==t.start?"["+t.start+", "+t.end+"]":+this.getRightValue(e)},getLabelForIndex:W.noop,getPixelForValue:W.noop,getValueForPixel:W.noop,getPixelForTick:function(e){var t=this.options.offset,n=this._ticks.length,i=1/Math.max(n-(t?0:1),1);return e<0||e>n-1?null:this.getPixelForDecimal(e*i+(t?i/2:0))},getPixelForDecimal:function(e){return this._reversePixels&&(e=1-e),this._startPixel+e*this._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this.min,t=this.max;return this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0},_autoSkip:function(e){var t,n,i,r,o=this.options.ticks,A=this._length,a=o.maxTicksLimit||A/this._tickSize()+1,s=o.major.enabled?function(e){var t,n,i=[];for(t=0,n=e.length;t<n;t++)e[t].major&&i.push(t);return i}(e):[],l=s.length,c=s[0],u=s[l-1];if(l>a)return function(e,t,n){var i,r,o=0,A=t[0];for(n=Math.ceil(n),i=0;i<e.length;i++)r=e[i],i===A?(r._index=i,A=t[++o*n]):delete r.label}(e,s,l/a),dn(e);if(i=function(e,t,n,i){var r,o,A,a,s=function(e){var t,n,i=e.length;if(i<2)return!1;for(n=e[0],t=1;t<i;++t)if(e[t]-e[t-1]!==n)return!1;return n}(e),l=(t.length-1)/i;if(!s)return Math.max(l,1);for(A=0,a=(r=W.math._factorize(s)).length-1;A<a;A++)if((o=r[A])>l)return o;return Math.max(l,1)}(s,e,0,a),l>0){for(t=0,n=l-1;t<n;t++)fn(e,i,s[t],s[t+1]);return r=l>1?(u-c)/(l-1):null,fn(e,i,W.isNullOrUndef(r)?0:c-r,c),fn(e,i,u,W.isNullOrUndef(r)?e.length:u+r),dn(e)}return fn(e,i),dn(e)},_tickSize:function(){var e=this.options.ticks,t=W.toRadians(this.labelRotation),n=Math.abs(Math.cos(t)),i=Math.abs(Math.sin(t)),r=this._getLabelSizes(),o=e.autoSkipPadding||0,A=r?r.widest.width+o:0,a=r?r.highest.height+o:0;return this.isHorizontal()?a*n>A*i?A/n:a/i:a*i<A*n?a/n:A/i},_isVisible:function(){var e,t,n,i=this.chart,r=this.options.display;if("auto"!==r)return!!r;for(e=0,t=i.data.datasets.length;e<t;++e)if(i.isDatasetVisible(e)&&((n=i.getDatasetMeta(e)).xAxisID===this.id||n.yAxisID===this.id))return!0;return!1},_computeGridLineItems:function(e){var t,n,i,r,o,A,a,s,l,c,u,d,f,h,p,g,m,v=this,y=v.chart,b=v.options,x=b.gridLines,w=b.position,_=x.offsetGridLines,k=v.isHorizontal(),S=v._ticksToDraw,T=S.length+(_?1:0),M=sn(x),C=[],D=x.drawBorder?on(x.lineWidth,0,0):0,P=D/2,E=W._alignPixel,O=function(e){return E(y,e,D)};for("top"===w?(t=O(v.bottom),a=v.bottom-M,l=t-P,u=O(e.top)+P,f=e.bottom):"bottom"===w?(t=O(v.top),u=e.top,f=O(e.bottom)-P,a=t+P,l=v.top+M):"left"===w?(t=O(v.right),A=v.right-M,s=t-P,c=O(e.left)+P,d=e.right):(t=O(v.left),c=e.left,d=O(e.right)-P,A=t+P,s=v.left+M),n=0;n<T;++n)i=S[n]||{},nn(i.label)&&n<S.length||(n===v.zeroLineIndex&&b.offset===_?(h=x.zeroLineWidth,p=x.zeroLineColor,g=x.zeroLineBorderDash||[],m=x.zeroLineBorderDashOffset||0):(h=on(x.lineWidth,n,1),p=on(x.color,n,"rgba(0,0,0,0.1)"),g=x.borderDash||[],m=x.borderDashOffset||0),void 0!==(r=An(v,i._index||n,_))&&(o=E(y,r,h),k?A=s=c=d=o:a=l=u=f=o,C.push({tx1:A,ty1:a,tx2:s,ty2:l,x1:c,y1:u,x2:d,y2:f,width:h,color:p,borderDash:g,borderDashOffset:m})));return C.ticksLength=T,C.borderValue=t,C},_computeLabelItems:function(){var e,t,n,i,r,o,A,a,s,l,c,u,d=this,f=d.options,h=f.ticks,p=f.position,g=h.mirror,m=d.isHorizontal(),v=d._ticksToDraw,y=un(h),b=h.padding,x=sn(f.gridLines),w=-W.toRadians(d.labelRotation),_=[];for("top"===p?(o=d.bottom-x-b,A=w?"left":"center"):"bottom"===p?(o=d.top+x+b,A=w?"right":"center"):"left"===p?(r=d.right-(g?0:x)-b,A=g?"left":"right"):(r=d.left+(g?0:x)+b,A=g?"right":"left"),e=0,t=v.length;e<t;++e)i=(n=v[e]).label,nn(i)||(a=d.getPixelForTick(n._index||e)+h.labelOffset,l=(s=n.major?y.major:y.minor).lineHeight,c=tn(i)?i.length:1,m?(r=a,u="top"===p?((w?1:.5)-c)*l:(w?0:.5)*l):(o=a,u=(1-c)*l/2),_.push({x:r,y:o,rotation:w,label:i,font:s,textOffset:u,textAlign:A}));return _},_drawGrid:function(e){var t=this,n=t.options.gridLines;if(n.display){var i,r,o,A,a,s=t.ctx,l=t.chart,c=W._alignPixel,u=n.drawBorder?on(n.lineWidth,0,0):0,d=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e));for(o=0,A=d.length;o<A;++o)i=(a=d[o]).width,r=a.color,i&&r&&(s.save(),s.lineWidth=i,s.strokeStyle=r,s.setLineDash&&(s.setLineDash(a.borderDash),s.lineDashOffset=a.borderDashOffset),s.beginPath(),n.drawTicks&&(s.moveTo(a.tx1,a.ty1),s.lineTo(a.tx2,a.ty2)),n.drawOnChartArea&&(s.moveTo(a.x1,a.y1),s.lineTo(a.x2,a.y2)),s.stroke(),s.restore());if(u){var f,h,p,g,m=u,v=on(n.lineWidth,d.ticksLength-1,1),y=d.borderValue;t.isHorizontal()?(f=c(l,t.left,m)-m/2,h=c(l,t.right,v)+v/2,p=g=y):(p=c(l,t.top,m)-m/2,g=c(l,t.bottom,v)+v/2,f=h=y),s.lineWidth=u,s.strokeStyle=on(n.color,0),s.beginPath(),s.moveTo(f,p),s.lineTo(h,g),s.stroke()}}},_drawLabels:function(){var e=this;if(e.options.ticks.display){var t,n,i,r,o,A,a,s,l=e.ctx,c=e._labelItems||(e._labelItems=e._computeLabelItems());for(t=0,i=c.length;t<i;++t){if(A=(o=c[t]).font,l.save(),l.translate(o.x,o.y),l.rotate(o.rotation),l.font=A.string,l.fillStyle=A.color,l.textBaseline="middle",l.textAlign=o.textAlign,a=o.label,s=o.textOffset,tn(a))for(n=0,r=a.length;n<r;++n)l.fillText(""+a[n],0,s),s+=A.lineHeight;else l.fillText(a,0,s);l.restore()}}},_drawTitle:function(){var e=this,t=e.ctx,n=e.options,i=n.scaleLabel;if(i.display){var r,o,A=rn(i.fontColor,L.global.defaultFontColor),a=W.options._parseFont(i),s=W.options.toPadding(i.padding),l=a.lineHeight/2,c=n.position,u=0;if(e.isHorizontal())r=e.left+e.width/2,o="bottom"===c?e.bottom-l-s.bottom:e.top+l+s.top;else{var d="left"===c;r=d?e.left+l+s.top:e.right-l-s.top,o=e.top+e.height/2,u=d?-.5*Math.PI:.5*Math.PI}t.save(),t.translate(r,o),t.rotate(u),t.textAlign="center",t.textBaseline="middle",t.fillStyle=A,t.font=a.string,t.fillText(i.labelString,0,0),t.restore()}},draw:function(e){this._isVisible()&&(this._drawGrid(e),this._drawTitle(),this._drawLabels())},_layers:function(){var e=this,t=e.options,n=t.ticks&&t.ticks.z||0,i=t.gridLines&&t.gridLines.z||0;return e._isVisible()&&n!==i&&e.draw===e._draw?[{z:i,draw:function(){e._drawGrid.apply(e,arguments),e._drawTitle.apply(e,arguments)}},{z:n,draw:function(){e._drawLabels.apply(e,arguments)}}]:[{z:n,draw:function(){e.draw.apply(e,arguments)}}]},_getMatchingVisibleMetas:function(e){var t=this,n=t.isHorizontal();return t.chart._getSortedVisibleDatasetMetas().filter((function(i){return(!e||i.type===e)&&(n?i.xAxisID===t.id:i.yAxisID===t.id)}))}});hn.prototype._draw=hn.prototype.draw;var pn=hn,gn=W.isNullOrUndef,mn=pn.extend({determineDataLimits:function(){var e,t=this,n=t._getLabels(),i=t.options.ticks,r=i.min,o=i.max,A=0,a=n.length-1;void 0!==r&&(e=n.indexOf(r))>=0&&(A=e),void 0!==o&&(e=n.indexOf(o))>=0&&(a=e),t.minIndex=A,t.maxIndex=a,t.min=n[A],t.max=n[a]},buildTicks:function(){var e=this._getLabels(),t=this.minIndex,n=this.maxIndex;this.ticks=0===t&&n===e.length-1?e:e.slice(t,n+1)},getLabelForIndex:function(e,t){var n=this.chart;return n.getDatasetMeta(t).controller._getValueScaleId()===this.id?this.getRightValue(n.data.datasets[t].data[e]):this._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,n=e.ticks;pn.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),n&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(n.length-(t?0:1),1))},getPixelForValue:function(e,t,n){var i,r,o,A=this;return gn(t)||gn(n)||(e=A.chart.data.datasets[n].data[t]),gn(e)||(i=A.isHorizontal()?e.x:e.y),(void 0!==i||void 0!==e&&isNaN(t))&&(r=A._getLabels(),e=W.valueOrDefault(i,e),t=-1!==(o=r.indexOf(e))?o:t,isNaN(t)&&(t=e)),A.getPixelForDecimal((t-A._startValue)/A._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange);return Math.min(Math.max(t,0),this.ticks.length-1)},getBasePixel:function(){return this.bottom}}),vn={position:"bottom"};mn._defaults=vn;var yn=W.noop,bn=W.isNullOrUndef,xn=pn.extend({getRightValue:function(e){return"string"==typeof e?+e:pn.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=W.sign(e.min),i=W.sign(e.max);n<0&&i<0?e.max=0:n>0&&i>0&&(e.min=0)}var r=void 0!==t.min||void 0!==t.suggestedMin,o=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),r!==o&&e.min>=e.max&&(r?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this.options.ticks,n=t.stepSize,i=t.maxTicksLimit;return n?e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1:(e=this._computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:yn,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),i={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:W.valueOrDefault(t.fixedStepSize,t.stepSize)},r=e.ticks=function(e,t){var n,i,r,o,A=[],a=e.stepSize,s=a||1,l=e.maxTicks-1,c=e.min,u=e.max,d=e.precision,f=t.min,h=t.max,p=W.niceNum((h-f)/l/s)*s;if(p<1e-14&&bn(c)&&bn(u))return[f,h];(o=Math.ceil(h/p)-Math.floor(f/p))>l&&(p=W.niceNum(o*p/l/s)*s),a||bn(d)?n=Math.pow(10,W._decimalPlaces(p)):(n=Math.pow(10,d),p=Math.ceil(p*n)/n),i=Math.floor(f/p)*p,r=Math.ceil(h/p)*p,a&&(!bn(c)&&W.almostWhole(c/p,p/1e3)&&(i=c),!bn(u)&&W.almostWhole(u/p,p/1e3)&&(r=u)),o=(r-i)/p,o=W.almostEquals(o,Math.round(o),p/1e3)?Math.round(o):Math.ceil(o),i=Math.round(i*n)/n,r=Math.round(r*n)/n,A.push(bn(c)?i:c);for(var g=1;g<o;++g)A.push(Math.round((i+g*p)*n)/n);return A.push(bn(u)?r:u),A}(i,e);e.handleDirectionalChanges(),e.max=W.max(r),e.min=W.min(r),t.reverse?(r.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),pn.prototype.convertTicksToLabels.call(e)},_configure:function(){var e,t=this,n=t.getTicks(),i=t.min,r=t.max;pn.prototype._configure.call(t),t.options.offset&&n.length&&(i-=e=(r-i)/Math.max(n.length-1,1)/2,r+=e),t._startValue=i,t._endValue=r,t._valueRange=r-i}}),wn={position:"left",ticks:{callback:en.formatters.linear}};function _n(e,t,n,i){var r,o,A=e.options,a=function(e,t,n){var i=[n.type,void 0===t&&void 0===n.stack?n.index:"",n.stack].join(".");return void 0===e[i]&&(e[i]={pos:[],neg:[]}),e[i]}(t,A.stacked,n),s=a.pos,l=a.neg,c=i.length;for(r=0;r<c;++r)o=e._parseValue(i[r]),isNaN(o.min)||isNaN(o.max)||n.data[r].hidden||(s[r]=s[r]||0,l[r]=l[r]||0,A.relativePoints?s[r]=100:o.min<0||o.max<0?l[r]+=o.min:s[r]+=o.max)}function kn(e,t,n){var i,r,o=n.length;for(i=0;i<o;++i)r=e._parseValue(n[i]),isNaN(r.min)||isNaN(r.max)||t.data[i].hidden||(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}var Sn=xn.extend({determineDataLimits:function(){var e,t,n,i,r=this,o=r.options,A=r.chart.data.datasets,a=r._getMatchingVisibleMetas(),s=o.stacked,l={},c=a.length;if(r.min=Number.POSITIVE_INFINITY,r.max=Number.NEGATIVE_INFINITY,void 0===s)for(e=0;!s&&e<c;++e)s=void 0!==(t=a[e]).stack;for(e=0;e<c;++e)n=A[(t=a[e]).index].data,s?_n(r,l,t,n):kn(r,t,n);W.each(l,(function(e){i=e.pos.concat(e.neg),r.min=Math.min(r.min,W.min(i)),r.max=Math.max(r.max,W.max(i))})),r.min=W.isFinite(r.min)&&!isNaN(r.min)?r.min:0,r.max=W.isFinite(r.max)&&!isNaN(r.max)?r.max:1,r.handleTickRangeOptions()},_computeTickLimit:function(){var e;return this.isHorizontal()?Math.ceil(this.width/40):(e=W.options._parseFont(this.options.ticks),Math.ceil(this.height/e.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){return this.getPixelForDecimal((+this.getRightValue(e)-this._startValue)/this._valueRange)},getValueForPixel:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange},getPixelForTick:function(e){var t=this.ticksAsNumbers;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])}}),Tn=wn;Sn._defaults=Tn;var Mn=W.valueOrDefault,Cn=W.math.log10,Dn={position:"left",ticks:{callback:en.formatters.logarithmic}};function Pn(e,t){return W.isFinite(e)&&e>=0?e:t}var En=pn.extend({determineDataLimits:function(){var e,t,n,i,r,o,A=this,a=A.options,s=A.chart,l=s.data.datasets,c=A.isHorizontal();function u(e){return c?e.xAxisID===A.id:e.yAxisID===A.id}A.min=Number.POSITIVE_INFINITY,A.max=Number.NEGATIVE_INFINITY,A.minNotZero=Number.POSITIVE_INFINITY;var d=a.stacked;if(void 0===d)for(e=0;e<l.length;e++)if(t=s.getDatasetMeta(e),s.isDatasetVisible(e)&&u(t)&&void 0!==t.stack){d=!0;break}if(a.stacked||d){var f={};for(e=0;e<l.length;e++){var h=[(t=s.getDatasetMeta(e)).type,void 0===a.stacked&&void 0===t.stack?e:"",t.stack].join(".");if(s.isDatasetVisible(e)&&u(t))for(void 0===f[h]&&(f[h]=[]),r=0,o=(i=l[e].data).length;r<o;r++){var p=f[h];n=A._parseValue(i[r]),isNaN(n.min)||isNaN(n.max)||t.data[r].hidden||n.min<0||n.max<0||(p[r]=p[r]||0,p[r]+=n.max)}}W.each(f,(function(e){if(e.length>0){var t=W.min(e),n=W.max(e);A.min=Math.min(A.min,t),A.max=Math.max(A.max,n)}}))}else for(e=0;e<l.length;e++)if(t=s.getDatasetMeta(e),s.isDatasetVisible(e)&&u(t))for(r=0,o=(i=l[e].data).length;r<o;r++)n=A._parseValue(i[r]),isNaN(n.min)||isNaN(n.max)||t.data[r].hidden||n.min<0||n.max<0||(A.min=Math.min(n.min,A.min),A.max=Math.max(n.max,A.max),0!==n.min&&(A.minNotZero=Math.min(n.min,A.minNotZero)));A.min=W.isFinite(A.min)?A.min:null,A.max=W.isFinite(A.max)?A.max:null,A.minNotZero=W.isFinite(A.minNotZero)?A.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;e.min=Pn(t.min,e.min),e.max=Pn(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(Cn(e.min))-1),e.max=Math.pow(10,Math.floor(Cn(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(Cn(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(Cn(e.min))+1):10),null===e.minNotZero&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(Cn(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),i={min:Pn(t.min),max:Pn(t.max)},r=e.ticks=function(e,t){var n,i,r=[],o=Mn(e.min,Math.pow(10,Math.floor(Cn(t.min)))),A=Math.floor(Cn(t.max)),a=Math.ceil(t.max/Math.pow(10,A));0===o?(n=Math.floor(Cn(t.minNotZero)),i=Math.floor(t.minNotZero/Math.pow(10,n)),r.push(o),o=i*Math.pow(10,n)):(n=Math.floor(Cn(o)),i=Math.floor(o/Math.pow(10,n)));var s=n<0?Math.pow(10,Math.abs(n)):1;do{r.push(o),10==++i&&(i=1,s=++n>=0?1:s),o=Math.round(i*Math.pow(10,n)*s)/s}while(n<A||n===A&&i<a);var l=Mn(e.max,o);return r.push(l),r}(i,e);e.max=W.max(r),e.min=W.min(r),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&r.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),pn.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){var t=this.tickValues;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(Cn(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,n=0;pn.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),n=Mn(e.options.ticks.fontSize,L.global.defaultFontSize)/e._length),e._startValue=Cn(t),e._valueOffset=n,e._valueRange=(Cn(e.max)-Cn(t))/(1-n)},getPixelForValue:function(e){var t=this,n=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(n=(Cn(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(n)},getValueForPixel:function(e){var t=this,n=t.getDecimalForPixel(e);return 0===n&&0===t.min?0:Math.pow(10,t._startValue+(n-t._valueOffset)*t._valueRange)}}),On=Dn;En._defaults=On;var In=W.valueOrDefault,Nn=W.valueAtIndexOrDefault,Fn=W.options.resolve,Ln={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:en.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function Rn(e){var t=e.ticks;return t.display&&e.display?In(t.fontSize,L.global.defaultFontSize)+2*t.backdropPaddingY:0}function jn(e,t,n,i,r){return e===i||e===r?{start:t-n/2,end:t+n/2}:e<i||e>r?{start:t-n,end:t}:{start:t,end:t+n}}function zn(e){return 0===e||180===e?"center":e<180?"left":"right"}function Bn(e,t,n,i){var r,o,A=n.y+i/2;if(W.isArray(t))for(r=0,o=t.length;r<o;++r)e.fillText(t[r],n.x,A),A+=i;else e.fillText(t,n.x,A)}function Wn(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function Hn(e){return W.isNumber(e)?e:0}var Vn=xn.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=Rn(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;W.each(t.data.datasets,(function(r,o){if(t.isDatasetVisible(o)){var A=t.getDatasetMeta(o);W.each(r.data,(function(t,r){var o=+e.getRightValue(t);isNaN(o)||A.data[r].hidden||(n=Math.min(o,n),i=Math.max(o,i))}))}})),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=i===Number.NEGATIVE_INFINITY?0:i,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Rn(this.options))},convertTicksToLabels:function(){var e=this;xn.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map((function(){var t=W.callback(e.options.pointLabels.callback,arguments,e);return t||0===t?t:""}))},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this.options;e.display&&e.pointLabels.display?function(e){var t,n,i,r=W.options._parseFont(e.options.pointLabels),o={l:0,r:e.width,t:0,b:e.height-e.paddingTop},A={};e.ctx.font=r.string,e._pointLabelSizes=[];var a,s,l,c=e.chart.data.labels.length;for(t=0;t<c;t++){i=e.getPointPosition(t,e.drawingArea+5),a=e.ctx,s=r.lineHeight,l=e.pointLabels[t],n=W.isArray(l)?{w:W.longestText(a,a.font,l),h:l.length*s}:{w:a.measureText(l).width,h:s},e._pointLabelSizes[t]=n;var u=e.getIndexAngle(t),d=W.toDegrees(u)%360,f=jn(d,i.x,n.w,0,180),h=jn(d,i.y,n.h,90,270);f.start<o.l&&(o.l=f.start,A.l=u),f.end>o.r&&(o.r=f.end,A.r=u),h.start<o.t&&(o.t=h.start,A.t=u),h.end>o.b&&(o.b=h.end,A.b=u)}e.setReductions(e.drawingArea,o,A)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var i=this,r=t.l/Math.sin(n.l),o=Math.max(t.r-i.width,0)/Math.sin(n.r),A=-t.t/Math.cos(n.t),a=-Math.max(t.b-(i.height-i.paddingTop),0)/Math.cos(n.b);r=Hn(r),o=Hn(o),A=Hn(A),a=Hn(a),i.drawingArea=Math.min(Math.floor(e-(r+o)/2),Math.floor(e-(A+a)/2)),i.setCenterPoint(r,o,A,a)},setCenterPoint:function(e,t,n,i){var r=this,o=r.width-t-r.drawingArea,A=e+r.drawingArea,a=n+r.drawingArea,s=r.height-r.paddingTop-i-r.drawingArea;r.xCenter=Math.floor((A+o)/2+r.left),r.yCenter=Math.floor((a+s)/2+r.top+r.paddingTop)},getIndexAngle:function(e){var t=this.chart,n=(e*(360/t.data.labels.length)+((t.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(W.isNullOrUndef(e))return NaN;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(n)*t+this.xCenter,y:Math.sin(n)*t+this.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this.min,n=this.max;return this.getPointPositionForValue(e||0,this.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0)},_drawGrid:function(){var e,t,n,i=this,r=i.ctx,o=i.options,A=o.gridLines,a=o.angleLines,s=In(a.lineWidth,A.lineWidth),l=In(a.color,A.color);if(o.pointLabels.display&&function(e){var t=e.ctx,n=e.options,i=n.pointLabels,r=Rn(n),o=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),A=W.options._parseFont(i);t.save(),t.font=A.string,t.textBaseline="middle";for(var a=e.chart.data.labels.length-1;a>=0;a--){var s=0===a?r/2:0,l=e.getPointPosition(a,o+s+5),c=Nn(i.fontColor,a,L.global.defaultFontColor);t.fillStyle=c;var u=e.getIndexAngle(a),d=W.toDegrees(u);t.textAlign=zn(d),Wn(d,e._pointLabelSizes[a],l),Bn(t,e.pointLabels[a],l,A.lineHeight)}t.restore()}(i),A.display&&W.each(i.ticks,(function(e,n){0!==n&&(t=i.getDistanceFromCenterForValue(i.ticksAsNumbers[n]),function(e,t,n,i){var r,o=e.ctx,A=t.circular,a=e.chart.data.labels.length,s=Nn(t.color,i-1),l=Nn(t.lineWidth,i-1);if((A||a)&&s&&l){if(o.save(),o.strokeStyle=s,o.lineWidth=l,o.setLineDash&&(o.setLineDash(t.borderDash||[]),o.lineDashOffset=t.borderDashOffset||0),o.beginPath(),A)o.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{r=e.getPointPosition(0,n),o.moveTo(r.x,r.y);for(var c=1;c<a;c++)r=e.getPointPosition(c,n),o.lineTo(r.x,r.y)}o.closePath(),o.stroke(),o.restore()}}(i,A,t,n))})),a.display&&s&&l){for(r.save(),r.lineWidth=s,r.strokeStyle=l,r.setLineDash&&(r.setLineDash(Fn([a.borderDash,A.borderDash,[]])),r.lineDashOffset=Fn([a.borderDashOffset,A.borderDashOffset,0])),e=i.chart.data.labels.length-1;e>=0;e--)t=i.getDistanceFromCenterForValue(o.ticks.reverse?i.min:i.max),n=i.getPointPosition(e,t),r.beginPath(),r.moveTo(i.xCenter,i.yCenter),r.lineTo(n.x,n.y),r.stroke();r.restore()}},_drawLabels:function(){var e=this,t=e.ctx,n=e.options.ticks;if(n.display){var i,r,o=e.getIndexAngle(0),A=W.options._parseFont(n),a=In(n.fontColor,L.global.defaultFontColor);t.save(),t.font=A.string,t.translate(e.xCenter,e.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",W.each(e.ticks,(function(o,s){(0!==s||n.reverse)&&(i=e.getDistanceFromCenterForValue(e.ticksAsNumbers[s]),n.showLabelBackdrop&&(r=t.measureText(o).width,t.fillStyle=n.backdropColor,t.fillRect(-r/2-n.backdropPaddingX,-i-A.size/2-n.backdropPaddingY,r+2*n.backdropPaddingX,A.size+2*n.backdropPaddingY)),t.fillStyle=a,t.fillText(o,0,-i))})),t.restore()}},_drawTitle:W.noop}),Yn=Ln;Vn._defaults=Yn;var qn=W._deprecated,Un=W.options.resolve,Qn=W.valueOrDefault,Xn=Number.MIN_SAFE_INTEGER||-9007199254740991,Gn=Number.MAX_SAFE_INTEGER||9007199254740991,Zn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Kn=Object.keys(Zn);function Jn(e,t){return e-t}function $n(e){return W.valueOrDefault(e.time.min,e.ticks.min)}function ei(e){return W.valueOrDefault(e.time.max,e.ticks.max)}function ti(e,t,n,i){var r=function(e,t,n){for(var i,r,o,A=0,a=e.length-1;A>=0&&A<=a;){if(r=e[(i=A+a>>1)-1]||null,o=e[i],!r)return{lo:null,hi:o};if(o[t]<n)A=i+1;else{if(!(r[t]>n))return{lo:r,hi:o};a=i-1}}return{lo:o,hi:null}}(e,t,n),o=r.lo?r.hi?r.lo:e[e.length-2]:e[0],A=r.lo?r.hi?r.hi:e[e.length-1]:e[1],a=A[t]-o[t],s=a?(n-o[t])/a:0,l=(A[i]-o[i])*s;return o[i]+l}function ni(e,t){var n=e._adapter,i=e.options.time,r=i.parser,o=r||i.format,A=t;return"function"==typeof r&&(A=r(A)),W.isFinite(A)||(A="string"==typeof o?n.parse(A,o):n.parse(A)),null!==A?+A:(r||"function"!=typeof o||(A=o(t),W.isFinite(A)||(A=n.parse(A))),A)}function ii(e,t){if(W.isNullOrUndef(t))return null;var n=e.options.time,i=ni(e,e.getRightValue(t));return null===i||n.round&&(i=+e._adapter.startOf(i,n.round)),i}function ri(e,t,n,i){var r,o,A,a=Kn.length;for(r=Kn.indexOf(e);r<a-1;++r)if(A=(o=Zn[Kn[r]]).steps?o.steps:Gn,o.common&&Math.ceil((n-t)/(A*o.size))<=i)return Kn[r];return Kn[a-1]}function oi(e,t,n){var i,r,o=[],A={},a=t.length;for(i=0;i<a;++i)A[r=t[i]]=i,o.push({value:r,major:!1});return 0!==a&&n?function(e,t,n,i){var r,o,A=e._adapter,a=+A.startOf(t[0].value,i),s=t[t.length-1].value;for(r=a;r<=s;r=+A.add(r,1,i))(o=n[r])>=0&&(t[o].major=!0);return t}(e,o,A,n):o}var Ai=pn.extend({initialize:function(){this.mergeTicksOptions(),pn.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,n=t.time||(t.time={}),i=e._adapter=new $t._date(t.adapters.date);return qn("time scale",n.format,"time.format","time.parser"),qn("time scale",n.min,"time.min","ticks.min"),qn("time scale",n.max,"time.max","ticks.max"),W.mergeIf(n.displayFormats,i.formats()),pn.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),pn.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,i,r,o,A,a=this,s=a.chart,l=a._adapter,c=a.options,u=c.time.unit||"day",d=Gn,f=Xn,h=[],p=[],g=[],m=a._getLabels();for(e=0,n=m.length;e<n;++e)g.push(ii(a,m[e]));for(e=0,n=(s.data.datasets||[]).length;e<n;++e)if(s.isDatasetVisible(e))if(r=s.data.datasets[e].data,W.isObject(r[0]))for(p[e]=[],t=0,i=r.length;t<i;++t)o=ii(a,r[t]),h.push(o),p[e][t]=o;else p[e]=g.slice(0),A||(h=h.concat(g),A=!0);else p[e]=[];g.length&&(d=Math.min(d,g[0]),f=Math.max(f,g[g.length-1])),h.length&&(h=n>1?function(e){var t,n,i,r={},o=[];for(t=0,n=e.length;t<n;++t)r[i=e[t]]||(r[i]=!0,o.push(i));return o}(h).sort(Jn):h.sort(Jn),d=Math.min(d,h[0]),f=Math.max(f,h[h.length-1])),d=ii(a,$n(c))||d,f=ii(a,ei(c))||f,d=d===Gn?+l.startOf(Date.now(),u):d,f=f===Xn?+l.endOf(Date.now(),u)+1:f,a.min=Math.min(d,f),a.max=Math.max(d+1,f),a._table=[],a._timestamps={data:h,datasets:p,labels:g}},buildTicks:function(){var e,t,n,i=this,r=i.min,o=i.max,A=i.options,a=A.ticks,s=A.time,l=i._timestamps,c=[],u=i.getLabelCapacity(r),d=a.source,f=A.distribution;for(l="data"===d||"auto"===d&&"series"===f?l.data:"labels"===d?l.labels:function(e,t,n,i){var r,o=e._adapter,A=e.options,a=A.time,s=a.unit||ri(a.minUnit,t,n,i),l=Un([a.stepSize,a.unitStepSize,1]),c="week"===s&&a.isoWeekday,u=t,d=[];if(c&&(u=+o.startOf(u,"isoWeek",c)),u=+o.startOf(u,c?"day":s),o.diff(n,t,s)>1e5*l)throw t+" and "+n+" are too far apart with stepSize of "+l+" "+s;for(r=u;r<n;r=+o.add(r,l,s))d.push(r);return r!==n&&"ticks"!==A.bounds||d.push(r),d}(i,r,o,u),"ticks"===A.bounds&&l.length&&(r=l[0],o=l[l.length-1]),r=ii(i,$n(A))||r,o=ii(i,ei(A))||o,e=0,t=l.length;e<t;++e)(n=l[e])>=r&&n<=o&&c.push(n);return i.min=r,i.max=o,i._unit=s.unit||(a.autoSkip?ri(s.minUnit,i.min,i.max,u):function(e,t,n,i,r){var o,A;for(o=Kn.length-1;o>=Kn.indexOf(n);o--)if(A=Kn[o],Zn[A].common&&e._adapter.diff(r,i,A)>=t-1)return A;return Kn[n?Kn.indexOf(n):0]}(i,c.length,s.minUnit,i.min,i.max)),i._majorUnit=a.major.enabled&&"year"!==i._unit?function(e){for(var t=Kn.indexOf(e)+1,n=Kn.length;t<n;++t)if(Zn[Kn[t]].common)return Kn[t]}(i._unit):void 0,i._table=function(e,t,n,i){if("linear"===i||!e.length)return[{time:t,pos:0},{time:n,pos:1}];var r,o,A,a,s,l=[],c=[t];for(r=0,o=e.length;r<o;++r)(a=e[r])>t&&a<n&&c.push(a);for(c.push(n),r=0,o=c.length;r<o;++r)s=c[r+1],A=c[r-1],a=c[r],void 0!==A&&void 0!==s&&Math.round((s+A)/2)===a||l.push({time:a,pos:r/(o-1)});return l}(i._timestamps.data,r,o,f),i._offsets=function(e,t,n,i,r){var o,A,a=0,s=0;return r.offset&&t.length&&(o=ti(e,"time",t[0],"pos"),a=1===t.length?1-o:(ti(e,"time",t[1],"pos")-o)/2,A=ti(e,"time",t[t.length-1],"pos"),s=1===t.length?A:(A-ti(e,"time",t[t.length-2],"pos"))/2),{start:a,end:s,factor:1/(a+1+s)}}(i._table,c,0,0,A),a.reverse&&c.reverse(),oi(i,c,i._majorUnit)},getLabelForIndex:function(e,t){var n=this,i=n._adapter,r=n.chart.data,o=n.options.time,A=r.labels&&e<r.labels.length?r.labels[e]:"",a=r.datasets[t].data[e];return W.isObject(a)&&(A=n.getRightValue(a)),o.tooltipFormat?i.format(ni(n,A),o.tooltipFormat):"string"==typeof A?A:i.format(ni(n,A),o.displayFormats.datetime)},tickFormatFunction:function(e,t,n,i){var r=this._adapter,o=this.options,A=o.time.displayFormats,a=A[this._unit],s=this._majorUnit,l=A[s],c=n[t],u=o.ticks,d=s&&l&&c&&c.major,f=r.format(e,i||(d?l:a)),h=d?u.major:u.minor,p=Un([h.callback,h.userCallback,u.callback,u.userCallback]);return p?p(f,t,n):f},convertTicksToLabels:function(e){var t,n,i=[];for(t=0,n=e.length;t<n;++t)i.push(this.tickFormatFunction(e[t].value,t,e));return i},getPixelForOffset:function(e){var t=this._offsets,n=ti(this._table,"time",e,"pos");return this.getPixelForDecimal((t.start+n)*t.factor)},getPixelForValue:function(e,t,n){var i=null;if(void 0!==t&&void 0!==n&&(i=this._timestamps.datasets[n][t]),null===i&&(i=ii(this,e)),null!==i)return this.getPixelForOffset(i)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end,i=ti(this._table,"pos",n,"time");return this._adapter._create(i)},_getLabelSize:function(e){var t=this.options.ticks,n=this.ctx.measureText(e).width,i=W.toRadians(this.isHorizontal()?t.maxRotation:t.minRotation),r=Math.cos(i),o=Math.sin(i),A=Qn(t.fontSize,L.global.defaultFontSize);return{w:n*r+A*o,h:n*o+A*r}},getLabelWidth:function(e){return this._getLabelSize(e).w},getLabelCapacity:function(e){var t=this,n=t.options.time,i=n.displayFormats,r=i[n.unit]||i.millisecond,o=t.tickFormatFunction(e,0,oi(t,[e],t._majorUnit),r),A=t._getLabelSize(o),a=Math.floor(t.isHorizontal()?t.width/A.w:t.height/A.h);return t.options.offset&&a--,a>0?a:1}}),ai={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};Ai._defaults=ai;var si={category:mn,linear:Sn,logarithmic:En,radialLinear:Vn,time:Ai},li={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};$t._date.override("function"==typeof e?{_id:"moment",formats:function(){return li},parse:function(t,n){return"string"==typeof t&&"string"==typeof n?t=e(t,n):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,n){return e(t).format(n)},add:function(t,n,i){return e(t).add(n,i).valueOf()},diff:function(t,n,i){return e(t).diff(e(n),i)},startOf:function(t,n,i){return t=e(t),"isoWeek"===n?t.isoWeekday(i).valueOf():t.startOf(n).valueOf()},endOf:function(t,n){return e(t).endOf(n).valueOf()},_create:function(t){return e(t)}}:{}),L._set("global",{plugins:{filler:{propagate:!0}}});var ci={dataset:function(e){var t=e.fill,n=e.chart,i=n.getDatasetMeta(t),r=i&&n.isDatasetVisible(t)&&i.dataset._children||[],o=r.length||0;return o?function(e,t){return t<o&&r[t]._view||null}:null},boundary:function(e){var t=e.boundary,n=t?t.x:null,i=t?t.y:null;return W.isArray(t)?function(e,n){return t[n]}:function(e){return{x:null===n?e.x:n,y:null===i?e.y:i}}}};function ui(e,t,n){var i,r=e._model||{},o=r.fill;if(void 0===o&&(o=!!r.backgroundColor),!1===o||null===o)return!1;if(!0===o)return"origin";if(i=parseFloat(o,10),isFinite(i)&&Math.floor(i)===i)return"-"!==o[0]&&"+"!==o[0]||(i=t+i),!(i===t||i<0||i>=n)&&i;switch(o){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return o;default:return!1}}function di(e){return(e.el._scale||{}).getPointPositionForValue?function(e){var t,n,i,r,o,A=e.el._scale,a=A.options,s=A.chart.data.labels.length,l=e.fill,c=[];if(!s)return null;for(t=a.ticks.reverse?A.max:A.min,n=a.ticks.reverse?A.min:A.max,i=A.getPointPositionForValue(0,t),r=0;r<s;++r)o="start"===l||"end"===l?A.getPointPositionForValue(r,"start"===l?t:n):A.getBasePosition(r),a.gridLines.circular&&(o.cx=i.x,o.cy=i.y,o.angle=A.getIndexAngle(r)-Math.PI/2),c.push(o);return c}(e):function(e){var t,n=e.el._model||{},i=e.el._scale||{},r=e.fill,o=null;if(isFinite(r))return null;if("start"===r?o=void 0===n.scaleBottom?i.bottom:n.scaleBottom:"end"===r?o=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?o=n.scaleZero:i.getBasePixel&&(o=i.getBasePixel()),null!=o){if(void 0!==o.x&&void 0!==o.y)return o;if(W.isFinite(o))return{x:(t=i.isHorizontal())?o:null,y:t?null:o}}return null}(e)}function fi(e,t,n){var i,r=e[t].fill,o=[t];if(!n)return r;for(;!1!==r&&-1===o.indexOf(r);){if(!isFinite(r))return r;if(!(i=e[r]))return!1;if(i.visible)return r;o.push(r),r=i.fill}return!1}function hi(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),ci[n](e))}function pi(e){return e&&!e.skip}function gi(e,t,n,i,r){var o,A,a,s;if(i&&r){for(e.moveTo(t[0].x,t[0].y),o=1;o<i;++o)W.canvas.lineTo(e,t[o-1],t[o]);if(void 0===n[0].angle)for(e.lineTo(n[r-1].x,n[r-1].y),o=r-1;o>0;--o)W.canvas.lineTo(e,n[o],n[o-1],!0);else for(A=n[0].cx,a=n[0].cy,s=Math.sqrt(Math.pow(n[0].x-A,2)+Math.pow(n[0].y-a,2)),o=r-1;o>0;--o)e.arc(A,a,s,n[o].angle,n[o-1].angle,!0)}}function mi(e,t,n,i,r,o){var A,a,s,l,c,u,d,f,h=t.length,p=i.spanGaps,g=[],m=[],v=0,y=0;for(e.beginPath(),A=0,a=h;A<a;++A)c=n(l=t[s=A%h]._view,s,i),u=pi(l),d=pi(c),o&&void 0===f&&u&&(a=h+(f=A+1)),u&&d?(v=g.push(l),y=m.push(c)):v&&y&&(p?(u&&g.push(l),d&&m.push(c)):(gi(e,g,m,v,y),v=y=0,g=[],m=[]));gi(e,g,m,v,y),e.closePath(),e.fillStyle=r,e.fill()}var vi={id:"filler",afterDatasetsUpdate:function(e,t){var n,i,r,o,A=(e.data.datasets||[]).length,a=t.propagate,s=[];for(i=0;i<A;++i)o=null,(r=(n=e.getDatasetMeta(i)).dataset)&&r._model&&r instanceof xe.Line&&(o={visible:e.isDatasetVisible(i),fill:ui(r,i,A),chart:e,el:r}),n.$filler=o,s.push(o);for(i=0;i<A;++i)(o=s[i])&&(o.fill=fi(s,i,a),o.boundary=di(o),o.mapper=hi(o))},beforeDatasetsDraw:function(e){var t,n,i,r,o,A,a,s=e._getSortedVisibleDatasetMetas(),l=e.ctx;for(n=s.length-1;n>=0;--n)(t=s[n].$filler)&&t.visible&&(r=(i=t.el)._view,o=i._children||[],A=t.mapper,a=r.backgroundColor||L.global.defaultColor,A&&a&&o.length&&(W.canvas.clipArea(l,e.chartArea),mi(l,o,A,r,a,i._loop),W.canvas.unclipArea(l)))}},yi=W.rtl.getRtlAdapter,bi=W.noop,xi=W.valueOrDefault;function wi(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}L._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,i=this.chart,r=i.getDatasetMeta(n);r.hidden=null===r.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.options.legend||{},i=n.labels&&n.labels.usePointStyle;return e._getSortedDatasetMetas().map((function(n){var r=n.controller.getStyle(i?0:void 0);return{text:t[n.index].label,fillStyle:r.backgroundColor,hidden:!e.isDatasetVisible(n.index),lineCap:r.borderCapStyle,lineDash:r.borderDash,lineDashOffset:r.borderDashOffset,lineJoin:r.borderJoinStyle,lineWidth:r.borderWidth,strokeStyle:r.borderColor,pointStyle:r.pointStyle,rotation:r.rotation,datasetIndex:n.index}}),this)}}},legendCallback:function(e){var t,n,i,r=document.createElement("ul"),o=e.data.datasets;for(r.setAttribute("class",e.id+"-legend"),t=0,n=o.length;t<n;t++)(i=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[t].backgroundColor,o[t].label&&i.appendChild(document.createTextNode(o[t].label));return r.outerHTML}});var _i=X.extend({initialize:function(e){W.extend(this,e),this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1},beforeUpdate:bi,update:function(e,t,n){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:bi,beforeSetDimensions:bi,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:bi,beforeBuildLabels:bi,buildLabels:function(){var e=this,t=e.options.labels||{},n=W.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter((function(n){return t.filter(n,e.chart.data)}))),e.options.reverse&&n.reverse(),e.legendItems=n},afterBuildLabels:bi,beforeFit:bi,fit:function(){var e=this,t=e.options,n=t.labels,i=t.display,r=e.ctx,o=W.options._parseFont(n),A=o.size,a=e.legendHitBoxes=[],s=e.minSize,l=e.isHorizontal();if(l?(s.width=e.maxWidth,s.height=i?10:0):(s.width=i?10:0,s.height=e.maxHeight),i){if(r.font=o.string,l){var c=e.lineWidths=[0],u=0;r.textAlign="left",r.textBaseline="middle",W.each(e.legendItems,(function(e,t){var i=wi(n,A)+A/2+r.measureText(e.text).width;(0===t||c[c.length-1]+i+2*n.padding>s.width)&&(u+=A+n.padding,c[c.length-(t>0?0:1)]=0),a[t]={left:0,top:0,width:i,height:A},c[c.length-1]+=i+n.padding})),s.height+=u}else{var d=n.padding,f=e.columnWidths=[],h=e.columnHeights=[],p=n.padding,g=0,m=0;W.each(e.legendItems,(function(e,t){var i=wi(n,A)+A/2+r.measureText(e.text).width;t>0&&m+A+2*d>s.height&&(p+=g+n.padding,f.push(g),h.push(m),g=0,m=0),g=Math.max(g,i),m+=A+d,a[t]={left:0,top:0,width:i,height:A}})),p+=g,f.push(g),h.push(m),s.width+=p}e.width=s.width,e.height=s.height}else e.width=s.width=e.height=s.height=0},afterFit:bi,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,i=L.global,r=i.defaultColor,o=i.elements.line,A=e.height,a=e.columnHeights,s=e.width,l=e.lineWidths;if(t.display){var c,u=yi(t.rtl,e.left,e.minSize.width),d=e.ctx,f=xi(n.fontColor,i.defaultFontColor),h=W.options._parseFont(n),p=h.size;d.textAlign=u.textAlign("left"),d.textBaseline="middle",d.lineWidth=.5,d.strokeStyle=f,d.fillStyle=f,d.font=h.string;var g=wi(n,p),m=e.legendHitBoxes,v=function(e,i){switch(t.align){case"start":return n.padding;case"end":return e-i;default:return(e-i+n.padding)/2}},y=e.isHorizontal();c=y?{x:e.left+v(s,l[0]),y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+v(A,a[0]),line:0},W.rtl.overrideTextDirection(e.ctx,t.textDirection);var b=p+n.padding;W.each(e.legendItems,(function(t,i){var f=d.measureText(t.text).width,h=g+p/2+f,x=c.x,w=c.y;u.setWidth(e.minSize.width),y?i>0&&x+h+n.padding>e.left+e.minSize.width&&(w=c.y+=b,c.line++,x=c.x=e.left+v(s,l[c.line])):i>0&&w+b>e.top+e.minSize.height&&(x=c.x=x+e.columnWidths[c.line]+n.padding,c.line++,w=c.y=e.top+v(A,a[c.line]));var _=u.x(x);!function(e,t,i){if(!(isNaN(g)||g<=0)){d.save();var A=xi(i.lineWidth,o.borderWidth);if(d.fillStyle=xi(i.fillStyle,r),d.lineCap=xi(i.lineCap,o.borderCapStyle),d.lineDashOffset=xi(i.lineDashOffset,o.borderDashOffset),d.lineJoin=xi(i.lineJoin,o.borderJoinStyle),d.lineWidth=A,d.strokeStyle=xi(i.strokeStyle,r),d.setLineDash&&d.setLineDash(xi(i.lineDash,o.borderDash)),n&&n.usePointStyle){var a=g*Math.SQRT2/2,s=u.xPlus(e,g/2),l=t+p/2;W.canvas.drawPoint(d,i.pointStyle,a,s,l,i.rotation)}else d.fillRect(u.leftForLtr(e,g),t,g,p),0!==A&&d.strokeRect(u.leftForLtr(e,g),t,g,p);d.restore()}}(_,w,t),m[i].left=u.leftForLtr(_,m[i].width),m[i].top=w,function(e,t,n,i){var r=p/2,o=u.xPlus(e,g+r),A=t+r;d.fillText(n.text,o,A),n.hidden&&(d.beginPath(),d.lineWidth=2,d.moveTo(o,A),d.lineTo(u.xPlus(o,i),A),d.stroke())}(_,w,t,f),y?c.x+=h+n.padding:c.y+=b})),W.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var n,i,r,o=this;if(e>=o.left&&e<=o.right&&t>=o.top&&t<=o.bottom)for(r=o.legendHitBoxes,n=0;n<r.length;++n)if(e>=(i=r[n]).left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height)return o.legendItems[n];return null},handleEvent:function(e){var t,n=this,i=n.options,r="mouseup"===e.type?"click":e.type;if("mousemove"===r){if(!i.onHover&&!i.onLeave)return}else{if("click"!==r)return;if(!i.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===r?t&&i.onClick&&i.onClick.call(n,e.native,t):(i.onLeave&&t!==n._hoveredItem&&(n._hoveredItem&&i.onLeave.call(n,e.native,n._hoveredItem),n._hoveredItem=t),i.onHover&&t&&i.onHover.call(n,e.native,t))}});function ki(e,t){var n=new _i({ctx:e.ctx,options:t,chart:e});ht.configure(e,n,t),ht.addBox(e,n),e.legend=n}var Si={id:"legend",_element:_i,beforeInit:function(e){var t=e.options.legend;t&&ki(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(W.mergeIf(t,L.global.legend),n?(ht.configure(e,n,t),n.options=t):ki(e,t)):n&&(ht.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},Ti=W.noop;L._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Mi=X.extend({initialize:function(e){W.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:Ti,update:function(e,t,n){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:Ti,beforeSetDimensions:Ti,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Ti,beforeBuildLabels:Ti,buildLabels:Ti,afterBuildLabels:Ti,beforeFit:Ti,fit:function(){var e,t=this,n=t.options,i=t.minSize={},r=t.isHorizontal();n.display?(e=(W.isArray(n.text)?n.text.length:1)*W.options._parseFont(n).lineHeight+2*n.padding,t.width=i.width=r?t.maxWidth:e,t.height=i.height=r?e:t.maxHeight):t.width=i.width=t.height=i.height=0},afterFit:Ti,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var i,r,o,A=W.options._parseFont(n),a=A.lineHeight,s=a/2+n.padding,l=0,c=e.top,u=e.left,d=e.bottom,f=e.right;t.fillStyle=W.valueOrDefault(n.fontColor,L.global.defaultFontColor),t.font=A.string,e.isHorizontal()?(r=u+(f-u)/2,o=c+s,i=f-u):(r="left"===n.position?u+s:f-s,o=c+(d-c)/2,i=d-c,l=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(r,o),t.rotate(l),t.textAlign="center",t.textBaseline="middle";var h=n.text;if(W.isArray(h))for(var p=0,g=0;g<h.length;++g)t.fillText(h[g],0,p,i),p+=a;else t.fillText(h,0,0,i);t.restore()}}});function Ci(e,t){var n=new Mi({ctx:e.ctx,options:t,chart:e});ht.configure(e,n,t),ht.addBox(e,n),e.titleBlock=n}var Di={},Pi=vi,Ei=Si,Oi={id:"title",_element:Mi,beforeInit:function(e){var t=e.options.title;t&&Ci(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(W.mergeIf(t,L.global.title),n?(ht.configure(e,n,t),n.options=t):Ci(e,t)):n&&(ht.removeBox(e,n),delete e.titleBlock)}};for(var Ii in Di.filler=Pi,Di.legend=Ei,Di.title=Oi,Zt.helpers=W,function(){function e(e,t,n){var i;return"string"==typeof e?(i=parseInt(e,10),-1!==e.indexOf("%")&&(i=i/100*t.parentNode[n])):i=e,i}function t(e){return null!=e&&"none"!==e}function n(n,i,r){var o=document.defaultView,A=W._getParentNode(n),a=o.getComputedStyle(n)[i],s=o.getComputedStyle(A)[i],l=t(a),c=t(s),u=Number.POSITIVE_INFINITY;return l||c?Math.min(l?e(a,n,r):u,c?e(s,A,r):u):"none"}W.where=function(e,t){if(W.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return W.each(e,(function(e){t(e)&&n.push(e)})),n},W.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var i=0,r=e.length;i<r;++i)if(t.call(n,e[i],i,e))return i;return-1},W.findNextWhere=function(e,t,n){W.isNullOrUndef(n)&&(n=-1);for(var i=n+1;i<e.length;i++){var r=e[i];if(t(r))return r}},W.findPreviousWhere=function(e,t,n){W.isNullOrUndef(n)&&(n=e.length);for(var i=n-1;i>=0;i--){var r=e[i];if(t(r))return r}},W.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},W.almostEquals=function(e,t,n){return Math.abs(e-t)<n},W.almostWhole=function(e,t){var n=Math.round(e);return n-t<=e&&n+t>=e},W.max=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.max(e,t)}),Number.NEGATIVE_INFINITY)},W.min=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.min(e,t)}),Number.POSITIVE_INFINITY)},W.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},W.toRadians=function(e){return e*(Math.PI/180)},W.toDegrees=function(e){return e*(180/Math.PI)},W._decimalPlaces=function(e){if(W.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},W.getAngleFromPoint=function(e,t){var n=t.x-e.x,i=t.y-e.y,r=Math.sqrt(n*n+i*i),o=Math.atan2(i,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:r}},W.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},W.aliasPixel=function(e){return e%2==0?0:.5},W._alignPixel=function(e,t,n){var i=e.currentDevicePixelRatio,r=n/2;return Math.round((t-r)*i)/i+r},W.splineCurve=function(e,t,n,i){var r=e.skip?t:e,o=t,A=n.skip?t:n,a=Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),s=Math.sqrt(Math.pow(A.x-o.x,2)+Math.pow(A.y-o.y,2)),l=a/(a+s),c=s/(a+s),u=i*(l=isNaN(l)?0:l),d=i*(c=isNaN(c)?0:c);return{previous:{x:o.x-u*(A.x-r.x),y:o.y-u*(A.y-r.y)},next:{x:o.x+d*(A.x-r.x),y:o.y+d*(A.y-r.y)}}},W.EPSILON=Number.EPSILON||1e-14,W.splineCurveMonotone=function(e){var t,n,i,r,o,A,a,s,l,c=(e||[]).map((function(e){return{model:e._model,deltaK:0,mK:0}})),u=c.length;for(t=0;t<u;++t)if(!(i=c[t]).model.skip){if(n=t>0?c[t-1]:null,(r=t<u-1?c[t+1]:null)&&!r.model.skip){var d=r.model.x-i.model.x;i.deltaK=0!==d?(r.model.y-i.model.y)/d:0}!n||n.model.skip?i.mK=i.deltaK:!r||r.model.skip?i.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(i.deltaK)?i.mK=0:i.mK=(n.deltaK+i.deltaK)/2}for(t=0;t<u-1;++t)i=c[t],r=c[t+1],i.model.skip||r.model.skip||(W.almostEquals(i.deltaK,0,this.EPSILON)?i.mK=r.mK=0:(o=i.mK/i.deltaK,A=r.mK/i.deltaK,(s=Math.pow(o,2)+Math.pow(A,2))<=9||(a=3/Math.sqrt(s),i.mK=o*a*i.deltaK,r.mK=A*a*i.deltaK)));for(t=0;t<u;++t)(i=c[t]).model.skip||(n=t>0?c[t-1]:null,r=t<u-1?c[t+1]:null,n&&!n.model.skip&&(l=(i.model.x-n.model.x)/3,i.model.controlPointPreviousX=i.model.x-l,i.model.controlPointPreviousY=i.model.y-l*i.mK),r&&!r.model.skip&&(l=(r.model.x-i.model.x)/3,i.model.controlPointNextX=i.model.x+l,i.model.controlPointNextY=i.model.y+l*i.mK))},W.nextItem=function(e,t,n){return n?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},W.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},W.niceNum=function(e,t){var n=Math.floor(W.log10(e)),i=e/Math.pow(10,n);return(t?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},W.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},W.getRelativePosition=function(e,t){var n,i,r=e.originalEvent||e,o=e.target||e.srcElement,A=o.getBoundingClientRect(),a=r.touches;a&&a.length>0?(n=a[0].clientX,i=a[0].clientY):(n=r.clientX,i=r.clientY);var s=parseFloat(W.getStyle(o,"padding-left")),l=parseFloat(W.getStyle(o,"padding-top")),c=parseFloat(W.getStyle(o,"padding-right")),u=parseFloat(W.getStyle(o,"padding-bottom")),d=A.right-A.left-s-c,f=A.bottom-A.top-l-u;return{x:n=Math.round((n-A.left-s)/d*o.width/t.currentDevicePixelRatio),y:i=Math.round((i-A.top-l)/f*o.height/t.currentDevicePixelRatio)}},W.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},W.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},W._calculatePadding=function(e,t,n){return(t=W.getStyle(e,t)).indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},W._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},W.getMaximumWidth=function(e){var t=W._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,i=n-W._calculatePadding(t,"padding-left",n)-W._calculatePadding(t,"padding-right",n),r=W.getConstraintWidth(e);return isNaN(r)?i:Math.min(i,r)},W.getMaximumHeight=function(e){var t=W._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,i=n-W._calculatePadding(t,"padding-top",n)-W._calculatePadding(t,"padding-bottom",n),r=W.getConstraintHeight(e);return isNaN(r)?i:Math.min(i,r)},W.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},W.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var i=e.canvas,r=e.height,o=e.width;i.height=r*n,i.width=o*n,e.ctx.scale(n,n),i.style.height||i.style.width||(i.style.height=r+"px",i.style.width=o+"px")}},W.fontString=function(e,t,n){return t+" "+e+"px "+n},W.longestText=function(e,t,n,i){var r=(i=i||{}).data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(r=i.data={},o=i.garbageCollect=[],i.font=t),e.font=t;var A,a,s,l,c,u=0,d=n.length;for(A=0;A<d;A++)if(null!=(l=n[A])&&!0!==W.isArray(l))u=W.measureText(e,r,o,u,l);else if(W.isArray(l))for(a=0,s=l.length;a<s;a++)null==(c=l[a])||W.isArray(c)||(u=W.measureText(e,r,o,u,c));var f=o.length/2;if(f>n.length){for(A=0;A<f;A++)delete r[o[A]];o.splice(0,f)}return u},W.measureText=function(e,t,n,i,r){var o=t[r];return o||(o=t[r]=e.measureText(r).width,n.push(r)),o>i&&(i=o),i},W.numberOfLabelLines=function(e){var t=1;return W.each(e,(function(e){W.isArray(e)&&e.length>t&&(t=e.length)})),t},W.color=x?function(e){return e instanceof CanvasGradient&&(e=L.global.defaultColor),x(e)}:function(e){return console.error("Color.js not found!"),e},W.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:W.color(e).saturate(.5).darken(.1).rgbString()}}(),Zt._adapters=$t,Zt.Animation=Z,Zt.animationService=K,Zt.controllers=Ke,Zt.DatasetController=ne,Zt.defaults=L,Zt.Element=X,Zt.elements=xe,Zt.Interaction=rt,Zt.layouts=ht,Zt.platform=Ct,Zt.plugins=Dt,Zt.Scale=pn,Zt.scaleService=Pt,Zt.Ticks=en,Zt.Tooltip=Wt,Zt.helpers.each(si,(function(e,t){Zt.scaleService.registerScaleType(t,e,e._defaults)})),Di)Di.hasOwnProperty(Ii)&&Zt.plugins.register(Di[Ii]);Zt.platform.initialize();var Ni=Zt;return"undefined"!=typeof window&&(window.Chart=Zt),Zt.Chart=Zt,Zt.Legend=Di.legend._element,Zt.Title=Di.title._element,Zt.pluginService=Zt.plugins,Zt.PluginBase=Zt.Element.extend({}),Zt.canvasHelpers=Zt.helpers.canvas,Zt.layoutService=Zt.layouts,Zt.LinearScaleBase=xn,Zt.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(e){Zt[e]=function(t,n){return new Zt(t,Zt.helpers.merge(n||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}})),Ni}(function(){try{return n(1)}catch(e){}}())},function(e,t,n){e.exports=function(){var e={};Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(e){return!(!e||!e.Window)&&e instanceof e.Window};var t={};Object.defineProperty(t,"__esModule",{value:!0}),t.init=r,t.getWindow=function(t){return(0,e.default)(t)?t:(t.ownerDocument||t).defaultView||i.window},t.window=t.realWindow=void 0;var n=void 0;t.realWindow=n;var i=void 0;function r(e){t.realWindow=n=e;var r=e.document.createTextNode("");r.ownerDocument!==e.document&&"function"==typeof e.wrap&&e.wrap(r)===r&&(e=e.wrap(e)),t.window=i=e}t.window=i,"undefined"!=typeof window&&window&&r(window);var o={};function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var a=function(e){return!!e&&"object"===A(e)},s=function(e){return"function"==typeof e},l={window:function(n){return n===t.window||(0,e.default)(n)},docFrag:function(e){return a(e)&&11===e.nodeType},object:a,func:s,number:function(e){return"number"==typeof e},bool:function(e){return"boolean"==typeof e},string:function(e){return"string"==typeof e},element:function(e){if(!e||"object"!==A(e))return!1;var n=t.getWindow(e)||t.window;return/object|function/.test(A(n.Element))?e instanceof n.Element:1===e.nodeType&&"string"==typeof e.nodeName},plainObject:function(e){return a(e)&&!!e.constructor&&/function Object\b/.test(e.constructor.toString())},array:function(e){return a(e)&&void 0!==e.length&&s(e.splice)}};o.default=l;var c={};function u(e){var t=e.interaction;if("drag"===t.prepared.name){var n=t.prepared.axis;"x"===n?(t.coords.cur.page.y=t.coords.start.page.y,t.coords.cur.client.y=t.coords.start.client.y,t.coords.velocity.client.y=0,t.coords.velocity.page.y=0):"y"===n&&(t.coords.cur.page.x=t.coords.start.page.x,t.coords.cur.client.x=t.coords.start.client.x,t.coords.velocity.client.x=0,t.coords.velocity.page.x=0)}}function d(e){var t=e.iEvent,n=e.interaction;if("drag"===n.prepared.name){var i=n.prepared.axis;if("x"===i||"y"===i){var r="x"===i?"y":"x";t.page[r]=n.coords.start.page[r],t.client[r]=n.coords.start.client[r],t.delta[r]=0}}}Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var f={id:"actions/drag",install:function(e){var t=e.actions,n=e.Interactable,i=e.defaults;n.prototype.draggable=f.draggable,t.map.drag=f,t.methodDict.drag="draggable",i.actions.drag=f.defaults},listeners:{"interactions:before-action-move":u,"interactions:action-resume":u,"interactions:action-move":d,"auto-start:check":function(e){var t=e.interaction,n=e.interactable,i=e.buttons,r=n.options.drag;if(r&&r.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||0!=(i&n.options.drag.mouseButtons)))return e.action={name:"drag",axis:"start"===r.lockAxis?r.startAxis:r.lockAxis},!1}},draggable:function(e){return o.default.object(e)?(this.options.drag.enabled=!1!==e.enabled,this.setPerAction("drag",e),this.setOnEvents("drag",e),/^(xy|x|y|start)$/.test(e.lockAxis)&&(this.options.drag.lockAxis=e.lockAxis),/^(xy|x|y)$/.test(e.startAxis)&&(this.options.drag.startAxis=e.startAxis),this):o.default.bool(e)?(this.options.drag.enabled=e,this):this.options.drag},beforeMove:u,move:d,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"}},h=f;c.default=h;var p={};Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;var g={init:function(e){var t=e;g.document=t.document,g.DocumentFragment=t.DocumentFragment||m,g.SVGElement=t.SVGElement||m,g.SVGSVGElement=t.SVGSVGElement||m,g.SVGElementInstance=t.SVGElementInstance||m,g.Element=t.Element||m,g.HTMLElement=t.HTMLElement||g.Element,g.Event=t.Event,g.Touch=t.Touch||m,g.PointerEvent=t.PointerEvent||t.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function m(){}var v=g;p.default=v;var y={};Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var b={init:function(e){var t=p.default.Element,n=e.navigator||{};b.supportsTouch="ontouchstart"in e||o.default.func(e.DocumentTouch)&&p.default.document instanceof e.DocumentTouch,b.supportsPointerEvent=!1!==n.pointerEnabled&&!!p.default.PointerEvent,b.isIOS=/iP(hone|od|ad)/.test(n.platform),b.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),b.isIe9=/MSIE 9/.test(n.userAgent),b.isOperaMobile="Opera"===n.appName&&b.supportsTouch&&/Presto/.test(n.userAgent),b.prefixedMatchesSelector="matches"in t.prototype?"matches":"webkitMatchesSelector"in t.prototype?"webkitMatchesSelector":"mozMatchesSelector"in t.prototype?"mozMatchesSelector":"oMatchesSelector"in t.prototype?"oMatchesSelector":"msMatchesSelector",b.pEventTypes=b.supportsPointerEvent?p.default.PointerEvent===e.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,b.wheelEvent=p.default.document&&"onmousewheel"in p.default.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},x=b;y.default=x;var w={};function _(e){var t=e.parentNode;if(o.default.docFrag(t)){for(;(t=t.host)&&o.default.docFrag(t););return t}return t}function k(e,n){return t.window!==t.realWindow&&(n=n.replace(/\/deep\//g," ")),e[y.default.prefixedMatchesSelector](n)}Object.defineProperty(w,"__esModule",{value:!0}),w.nodeContains=function(e,t){if(e.contains)return e.contains(t);for(;t;){if(t===e)return!0;t=t.parentNode}return!1},w.closest=function(e,t){for(;o.default.element(e);){if(k(e,t))return e;e=_(e)}return null},w.parentNode=_,w.matchesSelector=k,w.indexOfDeepestElement=function(e){for(var n,i=[],r=0;r<e.length;r++){var o=e[r],A=e[n];if(o&&r!==n)if(A){var a=S(o),s=S(A);if(a!==o.ownerDocument)if(s!==o.ownerDocument)if(a!==s){i=i.length?i:T(A);var l=void 0;if(A instanceof p.default.HTMLElement&&o instanceof p.default.SVGElement&&!(o instanceof p.default.SVGSVGElement)){if(o===s)continue;l=o.ownerSVGElement}else l=o;for(var c=T(l,A.ownerDocument),u=0;c[u]&&c[u]===i[u];)u++;var d=[c[u-1],c[u],i[u]];if(d[0])for(var f=d[0].lastChild;f;){if(f===d[1]){n=r,i=c;break}if(f===d[2])break;f=f.previousSibling}}else h=o,g=A,(parseInt(t.getWindow(h).getComputedStyle(h).zIndex,10)||0)>=(parseInt(t.getWindow(g).getComputedStyle(g).zIndex,10)||0)&&(n=r);else n=r}else n=r}var h,g;return n},w.matchesUpTo=function(e,t,n){for(;o.default.element(e);){if(k(e,t))return!0;if((e=_(e))===n)return k(e,t)}return!1},w.getActualElement=function(e){return e.correspondingUseElement||e},w.getScrollXY=M,w.getElementClientRect=C,w.getElementRect=function(e){var n=C(e);if(!y.default.isIOS7&&n){var i=M(t.getWindow(e));n.left+=i.x,n.right+=i.x,n.top+=i.y,n.bottom+=i.y}return n},w.getPath=function(e){for(var t=[];e;)t.push(e),e=_(e);return t},w.trySelector=function(e){return!!o.default.string(e)&&(p.default.document.querySelector(e),!0)};var S=function(e){return e.parentNode||e.host};function T(e,t){for(var n,i=[],r=e;(n=S(r))&&r!==t&&n!==r.ownerDocument;)i.unshift(r),r=n;return i}function M(e){return{x:(e=e||t.window).scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop}}function C(e){var t=e instanceof p.default.SVGElement?e.getBoundingClientRect():e.getClientRects()[0];return t&&{left:t.left,right:t.right,top:t.top,bottom:t.bottom,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top}}var D={};Object.defineProperty(D,"__esModule",{value:!0}),D.default=function(e,t){for(var n in t)e[n]=t[n];return e};var P={};function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function O(e,t,n){return"parent"===e?(0,w.parentNode)(n):"self"===e?t.getRect(n):(0,w.closest)(n,e)}Object.defineProperty(P,"__esModule",{value:!0}),P.getStringOptionResult=O,P.resolveRectLike=function(e,t,n,i){var r,A=e;return o.default.string(A)?A=O(A,t,n):o.default.func(A)&&(A=A.apply(void 0,function(e){if(Array.isArray(e))return E(e)}(r=i)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),o.default.element(A)&&(A=(0,w.getElementRect)(A)),A},P.rectToXY=function(e){return e&&{x:"x"in e?e.x:e.left,y:"y"in e?e.y:e.top}},P.xywhToTlbr=function(e){return!e||"left"in e&&"top"in e||((e=(0,D.default)({},e)).left=e.x||0,e.top=e.y||0,e.right=e.right||e.left+e.width,e.bottom=e.bottom||e.top+e.height),e},P.tlbrToXywh=function(e){return!e||"x"in e&&"y"in e||((e=(0,D.default)({},e)).x=e.left||0,e.y=e.top||0,e.width=e.width||(e.right||0)-e.x,e.height=e.height||(e.bottom||0)-e.y),e},P.addEdges=function(e,t,n){e.left&&(t.left+=n.x),e.right&&(t.right+=n.x),e.top&&(t.top+=n.y),e.bottom&&(t.bottom+=n.y),t.width=t.right-t.left,t.height=t.bottom-t.top};var I={};Object.defineProperty(I,"__esModule",{value:!0}),I.default=function(e,t,n){var i=e.options[n],r=i&&i.origin||e.options.origin,o=(0,P.resolveRectLike)(r,e,t,[e&&t]);return(0,P.rectToXY)(o)||{x:0,y:0}};var N={};function F(e){return e.trim().split(/ +/)}Object.defineProperty(N,"__esModule",{value:!0}),N.default=function e(t,n,i){if(i=i||{},o.default.string(t)&&-1!==t.search(" ")&&(t=F(t)),o.default.array(t))return t.reduce((function(t,r){return(0,D.default)(t,e(r,n,i))}),i);if(o.default.object(t)&&(n=t,t=""),o.default.func(n))i[t]=i[t]||[],i[t].push(n);else if(o.default.array(n))for(var r=0;r<n.length;r++){var A;A=n[r],e(t,A,i)}else if(o.default.object(n))for(var a in n){var s=F(a).map((function(e){return"".concat(t).concat(e)}));e(s,n[a],i)}return i};var L={};Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0,L.default=function(e,t){return Math.sqrt(e*e+t*t)};var R={};function j(e,t){for(var n in t){var i=j.prefixedPropREs,r=!1;for(var o in i)if(0===n.indexOf(o)&&i[o].test(n)){r=!0;break}r||"function"==typeof t[n]||(e[n]=t[n])}return e}Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0,j.prefixedPropREs={webkit:/(Movement[XY]|Radius[XY]|RotationAngle|Force)$/,moz:/(Pressure)$/};var z=j;R.default=z;var B={};function W(e){return e instanceof p.default.Event||e instanceof p.default.Touch}function H(e,t,n){return e=e||"page",(n=n||{}).x=t[e+"X"],n.y=t[e+"Y"],n}function V(e,t){return t=t||{x:0,y:0},y.default.isOperaMobile&&W(e)?(H("screen",e,t),t.x+=window.scrollX,t.y+=window.scrollY):H("page",e,t),t}function Y(e,t){return t=t||{},y.default.isOperaMobile&&W(e)?H("screen",e,t):H("client",e,t),t}function q(e){var t=[];return o.default.array(e)?(t[0]=e[0],t[1]=e[1]):"touchend"===e.type?1===e.touches.length?(t[0]=e.touches[0],t[1]=e.changedTouches[0]):0===e.touches.length&&(t[0]=e.changedTouches[0],t[1]=e.changedTouches[1]):(t[0]=e.touches[0],t[1]=e.touches[1]),t}function U(e){for(var t={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n<e.length;n++){var i=e[n];for(var r in t)t[r]+=i[r]}for(var o in t)t[o]/=e.length;return t}Object.defineProperty(B,"__esModule",{value:!0}),B.copyCoords=function(e,t){e.page=e.page||{},e.page.x=t.page.x,e.page.y=t.page.y,e.client=e.client||{},e.client.x=t.client.x,e.client.y=t.client.y,e.timeStamp=t.timeStamp},B.setCoordDeltas=function(e,t,n){e.page.x=n.page.x-t.page.x,e.page.y=n.page.y-t.page.y,e.client.x=n.client.x-t.client.x,e.client.y=n.client.y-t.client.y,e.timeStamp=n.timeStamp-t.timeStamp},B.setCoordVelocity=function(e,t){var n=Math.max(t.timeStamp/1e3,.001);e.page.x=t.page.x/n,e.page.y=t.page.y/n,e.client.x=t.client.x/n,e.client.y=t.client.y/n,e.timeStamp=n},B.setZeroCoords=function(e){e.page.x=0,e.page.y=0,e.client.x=0,e.client.y=0},B.isNativePointer=W,B.getXY=H,B.getPageXY=V,B.getClientXY=Y,B.getPointerId=function(e){return o.default.number(e.pointerId)?e.pointerId:e.identifier},B.setCoords=function(e,t,n){var i=t.length>1?U(t):t[0];V(i,e.page),Y(i,e.client),e.timeStamp=n},B.getTouchPair=q,B.pointerAverage=U,B.touchBBox=function(e){if(!e.length)return null;var t=q(e),n=Math.min(t[0].pageX,t[1].pageX),i=Math.min(t[0].pageY,t[1].pageY),r=Math.max(t[0].pageX,t[1].pageX),o=Math.max(t[0].pageY,t[1].pageY);return{x:n,y:i,left:n,top:i,right:r,bottom:o,width:r-n,height:o-i}},B.touchDistance=function(e,t){var n=t+"X",i=t+"Y",r=q(e),o=r[0][n]-r[1][n],A=r[0][i]-r[1][i];return(0,L.default)(o,A)},B.touchAngle=function(e,t){var n=t+"X",i=t+"Y",r=q(e),o=r[1][n]-r[0][n],A=r[1][i]-r[0][i];return 180*Math.atan2(A,o)/Math.PI},B.getPointerType=function(e){return o.default.string(e.pointerType)?e.pointerType:o.default.number(e.pointerType)?[void 0,void 0,"touch","pen","mouse"][e.pointerType]:/touch/.test(e.type||"")||e instanceof p.default.Touch?"touch":"mouse"},B.getEventTargets=function(e){var t=o.default.func(e.composedPath)?e.composedPath():e.path;return[w.getActualElement(t?t[0]:e.target),w.getActualElement(e.currentTarget)]},B.newCoords=function(){return{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},B.coordsToEvent=function(e){return{coords:e,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}},Object.defineProperty(B,"pointerExtend",{enumerable:!0,get:function(){return R.default}});var Q={};function X(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(Q,"__esModule",{value:!0}),Q.BaseEvent=void 0;var G=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),X(this,"type",void 0),X(this,"target",void 0),X(this,"currentTarget",void 0),X(this,"interactable",void 0),X(this,"_interaction",void 0),X(this,"timeStamp",void 0),X(this,"immediatePropagationStopped",!1),X(this,"propagationStopped",!1),this._interaction=t}var t;return(t=[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(e.prototype,t),e}();Q.BaseEvent=G,Object.defineProperty(G.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Z={};Object.defineProperty(Z,"__esModule",{value:!0}),Z.find=Z.findIndex=Z.from=Z.merge=Z.remove=Z.contains=void 0,Z.contains=function(e,t){return-1!==e.indexOf(t)},Z.remove=function(e,t){return e.splice(e.indexOf(t),1)};var K=function(e,t){for(var n=0;n<t.length;n++){var i=t[n];e.push(i)}return e};Z.merge=K,Z.from=function(e){return K([],e)};var J=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1};Z.findIndex=J,Z.find=function(e,t){return e[J(e,t)]};var $={};function ee(e){return(ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function te(e,t){return(te=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ne(e,t){return!t||"object"!==ee(t)&&"function"!=typeof t?ie(e):t}function ie(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function re(e){return(re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty($,"__esModule",{value:!0}),$.DropEvent=void 0;var Ae=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&te(e,t)}(o,e);var t,n,i,r=(n=o,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=re(n);if(i){var r=re(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return ne(this,e)});function o(e,t,n){var i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),oe(ie(i=r.call(this,t._interaction)),"target",void 0),oe(ie(i),"dropzone",void 0),oe(ie(i),"dragEvent",void 0),oe(ie(i),"relatedTarget",void 0),oe(ie(i),"draggable",void 0),oe(ie(i),"timeStamp",void 0),oe(ie(i),"propagationStopped",!1),oe(ie(i),"immediatePropagationStopped",!1);var A="dragleave"===n?e.prev:e.cur,a=A.element,s=A.dropzone;return i.type=n,i.target=a,i.currentTarget=a,i.dropzone=s,i.dragEvent=t,i.relatedTarget=t.target,i.draggable=t.interactable,i.timeStamp=t.timeStamp,i}return(t=[{key:"reject",value:function(){var e=this,t=this._interaction.dropState;if("dropactivate"===this.type||this.dropzone&&t.cur.dropzone===this.dropzone&&t.cur.element===this.target)if(t.prev.dropzone=this.dropzone,t.prev.element=this.target,t.rejected=!0,t.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){var n=t.activeDrops,i=Z.findIndex(n,(function(t){var n=t.dropzone,i=t.element;return n===e.dropzone&&i===e.target}));t.activeDrops.splice(i,1);var r=new o(t,this.dragEvent,"dropdeactivate");r.dropzone=this.dropzone,r.target=this.target,this.dropzone.fire(r)}else this.dropzone.fire(new o(t,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(o.prototype,t),o}(Q.BaseEvent);$.DropEvent=Ae;var ae={};function se(e,t){for(var n=0;n<e.slice().length;n++){var i=e.slice()[n],r=i.dropzone,o=i.element;t.dropzone=r,t.target=o,r.fire(t),t.propagationStopped=t.immediatePropagationStopped=!1}}function le(e,t){for(var n=function(e,t){for(var n=e.interactables,i=[],r=0;r<n.list.length;r++){var A=n.list[r];if(A.options.drop.enabled){var a=A.options.drop.accept;if(!(o.default.element(a)&&a!==t||o.default.string(a)&&!w.matchesSelector(t,a)||o.default.func(a)&&!a({dropzone:A,draggableElement:t})))for(var s=o.default.string(A.target)?A._context.querySelectorAll(A.target):o.default.array(A.target)?A.target:[A.target],l=0;l<s.length;l++){var c=s[l];c!==t&&i.push({dropzone:A,element:c,rect:A.getRect(c)})}}}return i}(e,t),i=0;i<n.length;i++){var r=n[i];r.rect=r.dropzone.getRect(r.element)}return n}function ce(e,t,n){for(var i=e.dropState,r=e.interactable,o=e.element,A=[],a=0;a<i.activeDrops.length;a++){var s=i.activeDrops[a],l=s.dropzone,c=s.element,u=s.rect;A.push(l.dropCheck(t,n,r,o,c,u)?c:null)}var d=w.indexOfDeepestElement(A);return i.activeDrops[d]||null}function ue(e,t,n){var i=e.dropState,r={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return"dragstart"===n.type&&(r.activate=new $.DropEvent(i,n,"dropactivate"),r.activate.target=null,r.activate.dropzone=null),"dragend"===n.type&&(r.deactivate=new $.DropEvent(i,n,"dropdeactivate"),r.deactivate.target=null,r.deactivate.dropzone=null),i.rejected||(i.cur.element!==i.prev.element&&(i.prev.dropzone&&(r.leave=new $.DropEvent(i,n,"dragleave"),n.dragLeave=r.leave.target=i.prev.element,n.prevDropzone=r.leave.dropzone=i.prev.dropzone),i.cur.dropzone&&(r.enter=new $.DropEvent(i,n,"dragenter"),n.dragEnter=i.cur.element,n.dropzone=i.cur.dropzone)),"dragend"===n.type&&i.cur.dropzone&&(r.drop=new $.DropEvent(i,n,"drop"),n.dropzone=i.cur.dropzone,n.relatedTarget=i.cur.element),"dragmove"===n.type&&i.cur.dropzone&&(r.move=new $.DropEvent(i,n,"dropmove"),r.move.dragmove=n,n.dropzone=i.cur.dropzone)),r}function de(e,t){var n=e.dropState,i=n.activeDrops,r=n.cur,o=n.prev;t.leave&&o.dropzone.fire(t.leave),t.enter&&r.dropzone.fire(t.enter),t.move&&r.dropzone.fire(t.move),t.drop&&r.dropzone.fire(t.drop),t.deactivate&&se(i,t.deactivate),n.prev.dropzone=r.dropzone,n.prev.element=r.element}function fe(e,t){var n=e.interaction,i=e.iEvent,r=e.event;if("dragmove"===i.type||"dragend"===i.type){var o=n.dropState;t.dynamicDrop&&(o.activeDrops=le(t,n.element));var A=i,a=ce(n,A,r);o.rejected=o.rejected&&!!a&&a.dropzone===o.cur.dropzone&&a.element===o.cur.element,o.cur.dropzone=a&&a.dropzone,o.cur.element=a&&a.element,o.events=ue(n,0,A)}}Object.defineProperty(ae,"__esModule",{value:!0}),ae.default=void 0;var he={id:"actions/drop",install:function(e){var t=e.actions,n=e.interactStatic,i=e.Interactable,r=e.defaults;e.usePlugin(c.default),i.prototype.dropzone=function(e){return function(e,t){if(o.default.object(t)){if(e.options.drop.enabled=!1!==t.enabled,t.listeners){var n=(0,N.default)(t.listeners),i=Object.keys(n).reduce((function(e,t){return e[/^(enter|leave)/.test(t)?"drag".concat(t):/^(activate|deactivate|move)/.test(t)?"drop".concat(t):t]=n[t],e}),{});e.off(e.options.drop.listeners),e.on(i),e.options.drop.listeners=i}return o.default.func(t.ondrop)&&e.on("drop",t.ondrop),o.default.func(t.ondropactivate)&&e.on("dropactivate",t.ondropactivate),o.default.func(t.ondropdeactivate)&&e.on("dropdeactivate",t.ondropdeactivate),o.default.func(t.ondragenter)&&e.on("dragenter",t.ondragenter),o.default.func(t.ondragleave)&&e.on("dragleave",t.ondragleave),o.default.func(t.ondropmove)&&e.on("dropmove",t.ondropmove),/^(pointer|center)$/.test(t.overlap)?e.options.drop.overlap=t.overlap:o.default.number(t.overlap)&&(e.options.drop.overlap=Math.max(Math.min(1,t.overlap),0)),"accept"in t&&(e.options.drop.accept=t.accept),"checker"in t&&(e.options.drop.checker=t.checker),e}return o.default.bool(t)?(e.options.drop.enabled=t,e):e.options.drop}(this,e)},i.prototype.dropCheck=function(e,t,n,i,r,A){return function(e,t,n,i,r,A,a){var s=!1;if(!(a=a||e.getRect(A)))return!!e.options.drop.checker&&e.options.drop.checker(t,n,s,e,A,i,r);var l=e.options.drop.overlap;if("pointer"===l){var c=(0,I.default)(i,r,"drag"),u=B.getPageXY(t);u.x+=c.x,u.y+=c.y;var d=u.x>a.left&&u.x<a.right,f=u.y>a.top&&u.y<a.bottom;s=d&&f}var h=i.getRect(r);if(h&&"center"===l){var p=h.left+h.width/2,g=h.top+h.height/2;s=p>=a.left&&p<=a.right&&g>=a.top&&g<=a.bottom}return h&&o.default.number(l)&&(s=Math.max(0,Math.min(a.right,h.right)-Math.max(a.left,h.left))*Math.max(0,Math.min(a.bottom,h.bottom)-Math.max(a.top,h.top))/(h.width*h.height)>=l),e.options.drop.checker&&(s=e.options.drop.checker(t,n,s,e,A,i,r)),s}(this,e,t,n,i,r,A)},n.dynamicDrop=function(t){return o.default.bool(t)?(e.dynamicDrop=t,n):e.dynamicDrop},(0,D.default)(t.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),t.methodDict.drop="dropzone",e.dynamicDrop=!1,r.actions.drop=he.defaults},listeners:{"interactions:before-action-start":function(e){var t=e.interaction;"drag"===t.prepared.name&&(t.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(e,t){var n=e.interaction,i=(e.event,e.iEvent);if("drag"===n.prepared.name){var r=n.dropState;r.activeDrops=null,r.events=null,r.activeDrops=le(t,n.element),r.events=ue(n,0,i),r.events.activate&&(se(r.activeDrops,r.events.activate),t.fire("actions/drop:start",{interaction:n,dragEvent:i}))}},"interactions:action-move":fe,"interactions:after-action-move":function(e,t){var n=e.interaction,i=e.iEvent;"drag"===n.prepared.name&&(de(n,n.dropState.events),t.fire("actions/drop:move",{interaction:n,dragEvent:i}),n.dropState.events={})},"interactions:action-end":function(e,t){if("drag"===e.interaction.prepared.name){var n=e.interaction,i=e.iEvent;fe(e,t),de(n,n.dropState.events),t.fire("actions/drop:end",{interaction:n,dragEvent:i})}},"interactions:stop":function(e){var t=e.interaction;if("drag"===t.prepared.name){var n=t.dropState;n&&(n.activeDrops=null,n.events=null,n.cur.dropzone=null,n.cur.element=null,n.prev.dropzone=null,n.prev.element=null,n.rejected=!1)}}},getActiveDrops:le,getDrop:ce,getDropEvents:ue,fireDropEvents:de,defaults:{enabled:!1,accept:null,overlap:"pointer"}},pe=he;ae.default=pe;var ge={};function me(e){var t=e.interaction,n=e.iEvent,i=e.phase;if("gesture"===t.prepared.name){var r=t.pointers.map((function(e){return e.pointer})),A="start"===i,a="end"===i,s=t.interactable.options.deltaSource;if(n.touches=[r[0],r[1]],A)n.distance=B.touchDistance(r,s),n.box=B.touchBBox(r),n.scale=1,n.ds=0,n.angle=B.touchAngle(r,s),n.da=0,t.gesture.startDistance=n.distance,t.gesture.startAngle=n.angle;else if(a){var l=t.prevEvent;n.distance=l.distance,n.box=l.box,n.scale=l.scale,n.ds=0,n.angle=l.angle,n.da=0}else n.distance=B.touchDistance(r,s),n.box=B.touchBBox(r),n.scale=n.distance/t.gesture.startDistance,n.angle=B.touchAngle(r,s),n.ds=n.scale-t.gesture.scale,n.da=n.angle-t.gesture.angle;t.gesture.distance=n.distance,t.gesture.angle=n.angle,o.default.number(n.scale)&&n.scale!==1/0&&!isNaN(n.scale)&&(t.gesture.scale=n.scale)}}Object.defineProperty(ge,"__esModule",{value:!0}),ge.default=void 0;var ve={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(e){var t=e.actions,n=e.Interactable,i=e.defaults;n.prototype.gesturable=function(e){return o.default.object(e)?(this.options.gesture.enabled=!1!==e.enabled,this.setPerAction("gesture",e),this.setOnEvents("gesture",e),this):o.default.bool(e)?(this.options.gesture.enabled=e,this):this.options.gesture},t.map.gesture=ve,t.methodDict.gesture="gesturable",i.actions.gesture=ve.defaults},listeners:{"interactions:action-start":me,"interactions:action-move":me,"interactions:action-end":me,"interactions:new":function(e){e.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(e){if(!(e.interaction.pointers.length<2)){var t=e.interactable.options.gesture;if(t&&t.enabled)return e.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""}},ye=ve;ge.default=ye;var be={};function xe(e,t,n,i,r,A,a){if(!t)return!1;if(!0===t){var s=o.default.number(A.width)?A.width:A.right-A.left,l=o.default.number(A.height)?A.height:A.bottom-A.top;if(a=Math.min(a,Math.abs(("left"===e||"right"===e?s:l)/2)),s<0&&("left"===e?e="right":"right"===e&&(e="left")),l<0&&("top"===e?e="bottom":"bottom"===e&&(e="top")),"left"===e)return n.x<(s>=0?A.left:A.right)+a;if("top"===e)return n.y<(l>=0?A.top:A.bottom)+a;if("right"===e)return n.x>(s>=0?A.right:A.left)-a;if("bottom"===e)return n.y>(l>=0?A.bottom:A.top)-a}return!!o.default.element(i)&&(o.default.element(t)?t===i:w.matchesUpTo(i,t,r))}function we(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.resizeAxes){var i=t;n.interactable.options.resize.square?("y"===n.resizeAxes?i.delta.x=i.delta.y:i.delta.y=i.delta.x,i.axes="xy"):(i.axes=n.resizeAxes,"x"===n.resizeAxes?i.delta.y=0:"y"===n.resizeAxes&&(i.delta.x=0))}}Object.defineProperty(be,"__esModule",{value:!0}),be.default=void 0;var _e={id:"actions/resize",before:["actions/drag"],install:function(e){var t=e.actions,n=e.browser,i=e.Interactable,r=e.defaults;_e.cursors=function(e){return e.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(n),_e.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,i.prototype.resizable=function(t){return function(e,t,n){return o.default.object(t)?(e.options.resize.enabled=!1!==t.enabled,e.setPerAction("resize",t),e.setOnEvents("resize",t),o.default.string(t.axis)&&/^x$|^y$|^xy$/.test(t.axis)?e.options.resize.axis=t.axis:null===t.axis&&(e.options.resize.axis=n.defaults.actions.resize.axis),o.default.bool(t.preserveAspectRatio)?e.options.resize.preserveAspectRatio=t.preserveAspectRatio:o.default.bool(t.square)&&(e.options.resize.square=t.square),e):o.default.bool(t)?(e.options.resize.enabled=t,e):e.options.resize}(this,t,e)},t.map.resize=_e,t.methodDict.resize="resizable",r.actions.resize=_e.defaults},listeners:{"interactions:new":function(e){e.interaction.resizeAxes="xy"},"interactions:action-start":function(e){!function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=t,r=n.rect;n._rects={start:(0,D.default)({},r),corrected:(0,D.default)({},r),previous:(0,D.default)({},r),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},i.edges=n.prepared.edges,i.rect=n._rects.corrected,i.deltaRect=n._rects.delta}}(e),we(e)},"interactions:action-move":function(e){!function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=t,r=n.interactable.options.resize.invert,o="reposition"===r||"negate"===r,A=n.rect,a=n._rects,s=a.start,l=a.corrected,c=a.delta,u=a.previous;if((0,D.default)(u,l),o){if((0,D.default)(l,A),"reposition"===r){if(l.top>l.bottom){var d=l.top;l.top=l.bottom,l.bottom=d}if(l.left>l.right){var f=l.left;l.left=l.right,l.right=f}}}else l.top=Math.min(A.top,s.bottom),l.bottom=Math.max(A.bottom,s.top),l.left=Math.min(A.left,s.right),l.right=Math.max(A.right,s.left);for(var h in l.width=l.right-l.left,l.height=l.bottom-l.top,l)c[h]=l[h]-u[h];i.edges=n.prepared.edges,i.rect=l,i.deltaRect=c}}(e),we(e)},"interactions:action-end":function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=t;i.edges=n.prepared.edges,i.rect=n._rects.corrected,i.deltaRect=n._rects.delta}},"auto-start:check":function(e){var t=e.interaction,n=e.interactable,i=e.element,r=e.rect,A=e.buttons;if(r){var a=(0,D.default)({},t.coords.cur.page),s=n.options.resize;if(s&&s.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||0!=(A&s.mouseButtons))){if(o.default.object(s.edges)){var l={left:!1,right:!1,top:!1,bottom:!1};for(var c in l)l[c]=xe(c,s.edges[c],a,t._latestPointer.eventTarget,i,r,s.margin||_e.defaultMargin);l.left=l.left&&!l.right,l.top=l.top&&!l.bottom,(l.left||l.right||l.top||l.bottom)&&(e.action={name:"resize",edges:l})}else{var u="y"!==s.axis&&a.x>r.right-_e.defaultMargin,d="x"!==s.axis&&a.y>r.bottom-_e.defaultMargin;(u||d)&&(e.action={name:"resize",axes:(u?"x":"")+(d?"y":"")})}return!e.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(e){var t=e.edges,n=e.axis,i=e.name,r=_e.cursors,o=null;if(n)o=r[i+n];else if(t){for(var A="",a=["top","bottom","left","right"],s=0;s<a.length;s++){var l=a[s];t[l]&&(A+=l)}o=r[A]}return o},defaultMargin:null},ke=_e;be.default=ke;var Se={};Object.defineProperty(Se,"__esModule",{value:!0}),Se.default=void 0;var Te={id:"actions",install:function(e){e.usePlugin(ge.default),e.usePlugin(be.default),e.usePlugin(c.default),e.usePlugin(ae.default)}};Se.default=Te;var Me={};Object.defineProperty(Me,"__esModule",{value:!0}),Me.default=void 0;var Ce,De,Pe=0,Ee={request:function(e){return Ce(e)},cancel:function(e){return De(e)},init:function(e){if(Ce=e.requestAnimationFrame,De=e.cancelAnimationFrame,!Ce)for(var t=["ms","moz","webkit","o"],n=0;n<t.length;n++){var i=t[n];Ce=e["".concat(i,"RequestAnimationFrame")],De=e["".concat(i,"CancelAnimationFrame")]||e["".concat(i,"CancelRequestAnimationFrame")]}Ce=Ce&&Ce.bind(e),De=De&&De.bind(e),Ce||(Ce=function(t){var n=Date.now(),i=Math.max(0,16-(n-Pe)),r=e.setTimeout((function(){t(n+i)}),i);return Pe=n+i,r},De=function(e){return clearTimeout(e)})}};Me.default=Ee;var Oe={};Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.getContainer=Ne,Oe.getScroll=Fe,Oe.getScrollSize=function(e){return o.default.window(e)&&(e=window.document.body),{x:e.scrollWidth,y:e.scrollHeight}},Oe.getScrollSizeDelta=function(e,t){var n=e.interaction,i=e.element,r=n&&n.interactable.options[n.prepared.name].autoScroll;if(!r||!r.enabled)return t(),{x:0,y:0};var o=Ne(r.container,n.interactable,i),A=Fe(o);t();var a=Fe(o);return{x:a.x-A.x,y:a.y-A.y}},Oe.default=void 0;var Ie={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(e){Ie.isScrolling=!0,Me.default.cancel(Ie.i),e.autoScroll=Ie,Ie.interaction=e,Ie.prevTime=Ie.now(),Ie.i=Me.default.request(Ie.scroll)},stop:function(){Ie.isScrolling=!1,Ie.interaction&&(Ie.interaction.autoScroll=null),Me.default.cancel(Ie.i)},scroll:function(){var e=Ie.interaction,t=e.interactable,n=e.element,i=e.prepared.name,r=t.options[i].autoScroll,A=Ne(r.container,t,n),a=Ie.now(),s=(a-Ie.prevTime)/1e3,l=r.speed*s;if(l>=1){var c={x:Ie.x*l,y:Ie.y*l};if(c.x||c.y){var u=Fe(A);o.default.window(A)?A.scrollBy(c.x,c.y):A&&(A.scrollLeft+=c.x,A.scrollTop+=c.y);var d=Fe(A),f={x:d.x-u.x,y:d.y-u.y};(f.x||f.y)&&t.fire({type:"autoscroll",target:n,interactable:t,delta:f,interaction:e,container:A})}Ie.prevTime=a}Ie.isScrolling&&(Me.default.cancel(Ie.i),Ie.i=Me.default.request(Ie.scroll))},check:function(e,t){var n;return null==(n=e.options[t].autoScroll)?void 0:n.enabled},onInteractionMove:function(e){var t=e.interaction,n=e.pointer;if(t.interacting()&&Ie.check(t.interactable,t.prepared.name))if(t.simulation)Ie.x=Ie.y=0;else{var i,r,A,a,s=t.interactable,l=t.element,c=t.prepared.name,u=s.options[c].autoScroll,d=Ne(u.container,s,l);if(o.default.window(d))a=n.clientX<Ie.margin,i=n.clientY<Ie.margin,r=n.clientX>d.innerWidth-Ie.margin,A=n.clientY>d.innerHeight-Ie.margin;else{var f=w.getElementClientRect(d);a=n.clientX<f.left+Ie.margin,i=n.clientY<f.top+Ie.margin,r=n.clientX>f.right-Ie.margin,A=n.clientY>f.bottom-Ie.margin}Ie.x=r?1:a?-1:0,Ie.y=A?1:i?-1:0,Ie.isScrolling||(Ie.margin=u.margin,Ie.speed=u.speed,Ie.start(t))}}};function Ne(e,n,i){return(o.default.string(e)?(0,P.getStringOptionResult)(e,n,i):e)||(0,t.getWindow)(i)}function Fe(e){return o.default.window(e)&&(e=window.document.body),{x:e.scrollLeft,y:e.scrollTop}}var Le={id:"auto-scroll",install:function(e){var t=e.defaults,n=e.actions;e.autoScroll=Ie,Ie.now=function(){return e.now()},n.phaselessTypes.autoscroll=!0,t.perAction.autoScroll=Ie.defaults},listeners:{"interactions:new":function(e){e.interaction.autoScroll=null},"interactions:destroy":function(e){e.interaction.autoScroll=null,Ie.stop(),Ie.interaction&&(Ie.interaction=null)},"interactions:stop":Ie.stop,"interactions:action-move":function(e){return Ie.onInteractionMove(e)}}};Oe.default=Le;var Re={};Object.defineProperty(Re,"__esModule",{value:!0}),Re.warnOnce=function(e,n){var i=!1;return function(){return i||(t.window.console.warn(n),i=!0),e.apply(this,arguments)}},Re.copyAction=function(e,t){return e.name=t.name,e.axis=t.axis,e.edges=t.edges,e},Re.sign=void 0,Re.sign=function(e){return e>=0?1:-1};var je={};function ze(e){return o.default.bool(e)?(this.options.styleCursor=e,this):null===e?(delete this.options.styleCursor,this):this.options.styleCursor}function Be(e){return o.default.func(e)?(this.options.actionChecker=e,this):null===e?(delete this.options.actionChecker,this):this.options.actionChecker}Object.defineProperty(je,"__esModule",{value:!0}),je.default=void 0;var We={id:"auto-start/interactableMethods",install:function(e){var t=e.Interactable;t.prototype.getAction=function(t,n,i,r){var o=function(e,t,n,i,r){var o=e.getRect(i),A={action:null,interactable:e,interaction:n,element:i,rect:o,buttons:t.buttons||{0:1,1:4,3:8,4:16}[t.button]};return r.fire("auto-start:check",A),A.action}(this,n,i,r,e);return this.options.actionChecker?this.options.actionChecker(t,n,o,this,r,i):o},t.prototype.ignoreFrom=(0,Re.warnOnce)((function(e){return this._backCompatOption("ignoreFrom",e)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),t.prototype.allowFrom=(0,Re.warnOnce)((function(e){return this._backCompatOption("allowFrom",e)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),t.prototype.actionChecker=Be,t.prototype.styleCursor=ze}};je.default=We;var He={};function Ve(e,t,n,i,r){return t.testIgnoreAllow(t.options[e.name],n,i)&&t.options[e.name].enabled&&Qe(t,n,e,r)?e:null}function Ye(e,t,n,i,r,o,A){for(var a=0,s=i.length;a<s;a++){var l=i[a],c=r[a],u=l.getAction(t,n,e,c);if(u){var d=Ve(u,l,c,o,A);if(d)return{action:d,interactable:l,element:c}}}return{action:null,interactable:null,element:null}}function qe(e,t,n,i,r){var A=[],a=[],s=i;function l(e){A.push(e),a.push(s)}for(;o.default.element(s);){A=[],a=[],r.interactables.forEachMatch(s,l);var c=Ye(e,t,n,A,a,i,r);if(c.action&&!c.interactable.options[c.action.name].manualStart)return c;s=w.parentNode(s)}return{action:null,interactable:null,element:null}}function Ue(e,t,n){var i=t.action,r=t.interactable,o=t.element;i=i||{name:null},e.interactable=r,e.element=o,(0,Re.copyAction)(e.prepared,i),e.rect=r&&i.name?r.getRect(o):null,Ze(e,n),n.fire("autoStart:prepared",{interaction:e})}function Qe(e,t,n,i){var r=e.options,o=r[n.name].max,A=r[n.name].maxPerElement,a=i.autoStart.maxInteractions,s=0,l=0,c=0;if(!(o&&A&&a))return!1;for(var u=0;u<i.interactions.list.length;u++){var d=i.interactions.list[u],f=d.prepared.name;if(d.interacting()){if(++s>=a)return!1;if(d.interactable===e){if((l+=f===n.name?1:0)>=o)return!1;if(d.element===t&&(c++,f===n.name&&c>=A))return!1}}}return a>0}function Xe(e,t){return o.default.number(e)?(t.autoStart.maxInteractions=e,this):t.autoStart.maxInteractions}function Ge(e,t,n){var i=n.autoStart.cursorElement;i&&i!==e&&(i.style.cursor=""),e.ownerDocument.documentElement.style.cursor=t,e.style.cursor=t,n.autoStart.cursorElement=t?e:null}function Ze(e,t){var n=e.interactable,i=e.element,r=e.prepared;if("mouse"===e.pointerType&&n&&n.options.styleCursor){var A="";if(r.name){var a=n.options[r.name].cursorChecker;A=o.default.func(a)?a(r,n,i,e._interacting):t.actions.map[r.name].getCursor(r)}Ge(e.element,A||"",t)}else t.autoStart.cursorElement&&Ge(t.autoStart.cursorElement,"",t)}Object.defineProperty(He,"__esModule",{value:!0}),He.default=void 0;var Ke={id:"auto-start/base",before:["actions"],install:function(e){var t=e.interactStatic,n=e.defaults;e.usePlugin(je.default),n.base.actionChecker=null,n.base.styleCursor=!0,(0,D.default)(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),t.maxInteractions=function(t){return Xe(t,e)},e.autoStart={maxInteractions:1/0,withinInteractionLimit:Qe,cursorElement:null}},listeners:{"interactions:down":function(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget;n.interacting()||Ue(n,qe(n,i,r,o,t),t)},"interactions:move":function(e,t){!function(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget;"mouse"!==n.pointerType||n.pointerIsDown||n.interacting()||Ue(n,qe(n,i,r,o,t),t)}(e,t),function(e,t){var n=e.interaction;if(n.pointerIsDown&&!n.interacting()&&n.pointerWasMoved&&n.prepared.name){t.fire("autoStart:before-start",e);var i=n.interactable,r=n.prepared.name;r&&i&&(i.options[r].manualStart||!Qe(i,n.element,n.prepared,t)?n.stop():(n.start(n.prepared,i,n.element),Ze(n,t)))}}(e,t)},"interactions:stop":function(e,t){var n=e.interaction,i=n.interactable;i&&i.options.styleCursor&&Ge(n.element,"",t)}},maxInteractions:Xe,withinInteractionLimit:Qe,validateAction:Ve};He.default=Ke;var Je={};Object.defineProperty(Je,"__esModule",{value:!0}),Je.default=void 0;var $e={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(e,t){var n=e.interaction,i=e.eventTarget,r=e.dx,A=e.dy;if("drag"===n.prepared.name){var a=Math.abs(r),s=Math.abs(A),l=n.interactable.options.drag,c=l.startAxis,u=a>s?"x":a<s?"y":"xy";if(n.prepared.axis="start"===l.lockAxis?u[0]:l.lockAxis,"xy"!==u&&"xy"!==c&&c!==u){n.prepared.name=null;for(var d=i,f=function(e){if(e!==n.interactable){var r=n.interactable.options.drag;if(!r.manualStart&&e.testIgnoreAllow(r,d,i)){var o=e.getAction(n.downPointer,n.downEvent,n,d);if(o&&"drag"===o.name&&function(e,t){if(!t)return!1;var n=t.options.drag.startAxis;return"xy"===e||"xy"===n||n===e}(u,e)&&He.default.validateAction(o,e,d,i,t))return e}}};o.default.element(d);){var h=t.interactables.forEachMatch(d,f);if(h){n.prepared.name="drag",n.interactable=h,n.element=d;break}d=(0,w.parentNode)(d)}}}}}};Je.default=$e;var et={};function tt(e){var t=e.prepared&&e.prepared.name;if(!t)return null;var n=e.interactable.options;return n[t].hold||n[t].delay}Object.defineProperty(et,"__esModule",{value:!0}),et.default=void 0;var nt={id:"auto-start/hold",install:function(e){var t=e.defaults;e.usePlugin(He.default),t.perAction.hold=0,t.perAction.delay=0},listeners:{"interactions:new":function(e){e.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(e){var t=e.interaction,n=tt(t);n>0&&(t.autoStartHoldTimer=setTimeout((function(){t.start(t.prepared,t.interactable,t.element)}),n))},"interactions:move":function(e){var t=e.interaction,n=e.duplicate;t.autoStartHoldTimer&&t.pointerWasMoved&&!n&&(clearTimeout(t.autoStartHoldTimer),t.autoStartHoldTimer=null)},"autoStart:before-start":function(e){var t=e.interaction;tt(t)>0&&(t.prepared.name=null)}},getHoldDuration:tt};et.default=nt;var it={};Object.defineProperty(it,"__esModule",{value:!0}),it.default=void 0;var rt={id:"auto-start",install:function(e){e.usePlugin(He.default),e.usePlugin(et.default),e.usePlugin(Je.default)}};it.default=rt;var ot={};function At(e){return/^(always|never|auto)$/.test(e)?(this.options.preventDefault=e,this):o.default.bool(e)?(this.options.preventDefault=e?"always":"never",this):this.options.preventDefault}function at(e){var t=e.interaction,n=e.event;t.interactable&&t.interactable.checkAndPreventDefault(n)}function st(e){var n=e.Interactable;n.prototype.preventDefault=At,n.prototype.checkAndPreventDefault=function(n){return function(e,n,i){var r=e.options.preventDefault;if("never"!==r)if("always"!==r){if(n.events.supportsPassive&&/^touch(start|move)$/.test(i.type)){var A=(0,t.getWindow)(i.target).document,a=n.getDocOptions(A);if(!a||!a.events||!1!==a.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(i.type)||o.default.element(i.target)&&(0,w.matchesSelector)(i.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||i.preventDefault()}else i.preventDefault()}(this,e,n)},e.interactions.docEvents.push({type:"dragstart",listener:function(t){for(var n=0;n<e.interactions.list.length;n++){var i=e.interactions.list[n];if(i.element&&(i.element===t.target||(0,w.nodeContains)(i.element,t.target)))return void i.interactable.checkAndPreventDefault(t)}}})}Object.defineProperty(ot,"__esModule",{value:!0}),ot.install=st,ot.default=void 0;var lt={id:"core/interactablePreventDefault",install:st,listeners:["down","move","up","cancel"].reduce((function(e,t){return e["interactions:".concat(t)]=at,e}),{})};ot.default=lt;var ct={};Object.defineProperty(ct,"__esModule",{value:!0}),ct.default=void 0,ct.default={};var ut,dt={};Object.defineProperty(dt,"__esModule",{value:!0}),dt.default=void 0,function(e){e.touchAction="touchAction",e.boxSizing="boxSizing",e.noListeners="noListeners"}(ut||(ut={})),ut.touchAction,ut.boxSizing,ut.noListeners,dt.default={id:"dev-tools",install:function(){}};var ft={};Object.defineProperty(ft,"__esModule",{value:!0}),ft.default=function e(t){var n={};for(var i in t){var r=t[i];o.default.plainObject(r)?n[i]=e(r):o.default.array(r)?n[i]=Z.from(r):n[i]=r}return n};var ht={};function pt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0;try{for(var A,a=e[Symbol.iterator]();!(i=(A=a.next()).done)&&(n.push(A.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{i||null==a.return||a.return()}finally{if(r)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return gt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(ht,"__esModule",{value:!0}),ht.getRectOffset=bt,ht.default=void 0;var vt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),mt(this,"states",[]),mt(this,"startOffset",{left:0,right:0,top:0,bottom:0}),mt(this,"startDelta",void 0),mt(this,"result",void 0),mt(this,"endResult",void 0),mt(this,"edges",void 0),mt(this,"interaction",void 0),this.interaction=t,this.result=yt()}var t;return(t=[{key:"start",value:function(e,t){var n=e.phase,i=this.interaction,r=function(e){var t=e.interactable.options[e.prepared.name],n=t.modifiers;return n&&n.length?n:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map((function(e){var n=t[e];return n&&n.enabled&&{options:n,methods:n._methods}})).filter((function(e){return!!e}))}(i);this.prepareStates(r),this.edges=(0,D.default)({},i.edges),this.startOffset=bt(i.rect,t),this.startDelta={x:0,y:0};var o=this.fillArg({phase:n,pageCoords:t,preEnd:!1});return this.result=yt(),this.startAll(o),this.result=this.setAll(o)}},{key:"fillArg",value:function(e){var t=this.interaction;return e.interaction=t,e.interactable=t.interactable,e.element=t.element,e.rect=e.rect||t.rect,e.edges=this.edges,e.startOffset=this.startOffset,e}},{key:"startAll",value:function(e){for(var t=0;t<this.states.length;t++){var n=this.states[t];n.methods.start&&(e.state=n,n.methods.start(e))}}},{key:"setAll",value:function(e){var t=e.phase,n=e.preEnd,i=e.skipModifiers,r=e.rect;e.coords=(0,D.default)({},e.pageCoords),e.rect=(0,D.default)({},r);for(var o=i?this.states.slice(i):this.states,A=yt(e.coords,e.rect),a=0;a<o.length;a++){var s,l=o[a],c=l.options,u=(0,D.default)({},e.coords),d=null;null!=(s=l.methods)&&s.set&&this.shouldDo(c,n,t)&&(e.state=l,d=l.methods.set(e),P.addEdges(this.interaction.edges,e.rect,{x:e.coords.x-u.x,y:e.coords.y-u.y})),A.eventProps.push(d)}A.delta.x=e.coords.x-e.pageCoords.x,A.delta.y=e.coords.y-e.pageCoords.y,A.rectDelta.left=e.rect.left-r.left,A.rectDelta.right=e.rect.right-r.right,A.rectDelta.top=e.rect.top-r.top,A.rectDelta.bottom=e.rect.bottom-r.bottom;var f=this.result.coords,h=this.result.rect;if(f&&h){var p=A.rect.left!==h.left||A.rect.right!==h.right||A.rect.top!==h.top||A.rect.bottom!==h.bottom;A.changed=p||f.x!==A.coords.x||f.y!==A.coords.y}return A}},{key:"applyToInteraction",value:function(e){var t=this.interaction,n=e.phase,i=t.coords.cur,r=t.coords.start,o=this.result,A=this.startDelta,a=o.delta;"start"===n&&(0,D.default)(this.startDelta,o.delta);for(var s=0;s<[[r,A],[i,a]].length;s++){var l=pt([[r,A],[i,a]][s],2),c=l[0],u=l[1];c.page.x+=u.x,c.page.y+=u.y,c.client.x+=u.x,c.client.y+=u.y}var d=this.result.rectDelta,f=e.rect||t.rect;f.left+=d.left,f.right+=d.right,f.top+=d.top,f.bottom+=d.bottom,f.width=f.right-f.left,f.height=f.bottom-f.top}},{key:"setAndApply",value:function(e){var t=this.interaction,n=e.phase,i=e.preEnd,r=e.skipModifiers,o=this.setAll(this.fillArg({preEnd:i,phase:n,pageCoords:e.modifiedCoords||t.coords.cur.page}));if(this.result=o,!o.changed&&(!r||r<this.states.length)&&t.interacting())return!1;if(e.modifiedCoords){var A=t.coords.cur.page,a={x:e.modifiedCoords.x-A.x,y:e.modifiedCoords.y-A.y};o.coords.x+=a.x,o.coords.y+=a.y,o.delta.x+=a.x,o.delta.y+=a.y}this.applyToInteraction(e)}},{key:"beforeEnd",value:function(e){var t=e.interaction,n=e.event,i=this.states;if(i&&i.length){for(var r=!1,o=0;o<i.length;o++){var A=i[o];e.state=A;var a=A.options,s=A.methods,l=s.beforeEnd&&s.beforeEnd(e);if(l)return this.endResult=l,!1;r=r||!r&&this.shouldDo(a,!0,e.phase,!0)}r&&t.move({event:n,preEnd:!0})}}},{key:"stop",value:function(e){var t=e.interaction;if(this.states&&this.states.length){var n=(0,D.default)({states:this.states,interactable:t.interactable,element:t.element,rect:null},e);this.fillArg(n);for(var i=0;i<this.states.length;i++){var r=this.states[i];n.state=r,r.methods.stop&&r.methods.stop(n)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(e){this.states=[];for(var t=0;t<e.length;t++){var n=e[t],i=n.options,r=n.methods,o=n.name;this.states.push({options:i,methods:r,index:t,name:o})}return this.states}},{key:"restoreInteractionCoords",value:function(e){var t=e.interaction,n=t.coords,i=t.rect,r=t.modification;if(r.result){for(var o=r.startDelta,A=r.result,a=A.delta,s=A.rectDelta,l=[[n.start,o],[n.cur,a]],c=0;c<l.length;c++){var u=pt(l[c],2),d=u[0],f=u[1];d.page.x-=f.x,d.page.y-=f.y,d.client.x-=f.x,d.client.y-=f.y}i.left-=s.left,i.right-=s.right,i.top-=s.top,i.bottom-=s.bottom}}},{key:"shouldDo",value:function(e,t,n,i){return!(!e||!1===e.enabled||i&&!e.endOnly||e.endOnly&&!t||"start"===n&&!e.setStart)}},{key:"copyFrom",value:function(e){this.startOffset=e.startOffset,this.startDelta=e.startDelta,this.edges=e.edges,this.states=e.states.map((function(e){return(0,ft.default)(e)})),this.result=yt((0,D.default)({},e.result.coords),(0,D.default)({},e.result.rect))}},{key:"destroy",value:function(){for(var e in this)this[e]=null}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(e.prototype,t),e}();function yt(e,t){return{rect:t,coords:e,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function bt(e,t){return e?{left:t.x-e.left,top:t.y-e.top,right:e.right-t.x,bottom:e.bottom-t.y}:{left:0,top:0,right:0,bottom:0}}ht.default=vt;var xt={};function wt(e){var t=e.iEvent,n=e.interaction.modification.result;n&&(t.modifiers=n.eventProps)}Object.defineProperty(xt,"__esModule",{value:!0}),xt.makeModifier=function(e,t){var n=e.defaults,i={start:e.start,set:e.set,beforeEnd:e.beforeEnd,stop:e.stop},r=function(e){var r=e||{};for(var o in r.enabled=!1!==r.enabled,n)o in r||(r[o]=n[o]);var A={options:r,methods:i,name:t,enable:function(){return r.enabled=!0,A},disable:function(){return r.enabled=!1,A}};return A};return t&&"string"==typeof t&&(r._defaults=n,r._methods=i),r},xt.addEventModifiers=wt,xt.default=void 0;var _t={id:"modifiers/base",before:["actions"],install:function(e){e.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(e){var t=e.interaction;t.modification=new ht.default(t)},"interactions:before-action-start":function(e){var t=e.interaction.modification;t.start(e,e.interaction.coords.start.page),e.interaction.edges=t.edges,t.applyToInteraction(e)},"interactions:before-action-move":function(e){return e.interaction.modification.setAndApply(e)},"interactions:before-action-end":function(e){return e.interaction.modification.beforeEnd(e)},"interactions:action-start":wt,"interactions:action-move":wt,"interactions:action-end":wt,"interactions:after-action-start":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:after-action-move":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:stop":function(e){return e.interaction.modification.stop(e)}}};xt.default=_t;var kt={};Object.defineProperty(kt,"__esModule",{value:!0}),kt.defaults=void 0,kt.defaults={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}};var St={};function Tt(e){return(Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mt(e,t){return(Mt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ct(e,t){return!t||"object"!==Tt(t)&&"function"!=typeof t?Dt(e):t}function Dt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pt(e){return(Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(St,"__esModule",{value:!0}),St.InteractEvent=void 0;var Ot=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mt(e,t)}(o,e);var t,n,i,r=(n=o,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Pt(n);if(i){var r=Pt(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Ct(this,e)});function o(e,t,n,i,A,a,s){var l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),Et(Dt(l=r.call(this,e)),"target",void 0),Et(Dt(l),"currentTarget",void 0),Et(Dt(l),"relatedTarget",null),Et(Dt(l),"screenX",void 0),Et(Dt(l),"screenY",void 0),Et(Dt(l),"button",void 0),Et(Dt(l),"buttons",void 0),Et(Dt(l),"ctrlKey",void 0),Et(Dt(l),"shiftKey",void 0),Et(Dt(l),"altKey",void 0),Et(Dt(l),"metaKey",void 0),Et(Dt(l),"page",void 0),Et(Dt(l),"client",void 0),Et(Dt(l),"delta",void 0),Et(Dt(l),"rect",void 0),Et(Dt(l),"x0",void 0),Et(Dt(l),"y0",void 0),Et(Dt(l),"t0",void 0),Et(Dt(l),"dt",void 0),Et(Dt(l),"duration",void 0),Et(Dt(l),"clientX0",void 0),Et(Dt(l),"clientY0",void 0),Et(Dt(l),"velocity",void 0),Et(Dt(l),"speed",void 0),Et(Dt(l),"swipe",void 0),Et(Dt(l),"timeStamp",void 0),Et(Dt(l),"axes",void 0),Et(Dt(l),"preEnd",void 0),A=A||e.element;var c=e.interactable,u=(c&&c.options||kt.defaults).deltaSource,d=(0,I.default)(c,A,n),f="start"===i,h="end"===i,p=f?Dt(l):e.prevEvent,g=f?e.coords.start:h?{page:p.page,client:p.client,timeStamp:e.coords.cur.timeStamp}:e.coords.cur;return l.page=(0,D.default)({},g.page),l.client=(0,D.default)({},g.client),l.rect=(0,D.default)({},e.rect),l.timeStamp=g.timeStamp,h||(l.page.x-=d.x,l.page.y-=d.y,l.client.x-=d.x,l.client.y-=d.y),l.ctrlKey=t.ctrlKey,l.altKey=t.altKey,l.shiftKey=t.shiftKey,l.metaKey=t.metaKey,l.button=t.button,l.buttons=t.buttons,l.target=A,l.currentTarget=A,l.preEnd=a,l.type=s||n+(i||""),l.interactable=c,l.t0=f?e.pointers[e.pointers.length-1].downTime:p.t0,l.x0=e.coords.start.page.x-d.x,l.y0=e.coords.start.page.y-d.y,l.clientX0=e.coords.start.client.x-d.x,l.clientY0=e.coords.start.client.y-d.y,l.delta=f||h?{x:0,y:0}:{x:l[u].x-p[u].x,y:l[u].y-p[u].y},l.dt=e.coords.delta.timeStamp,l.duration=l.timeStamp-l.t0,l.velocity=(0,D.default)({},e.coords.velocity[u]),l.speed=(0,L.default)(l.velocity.x,l.velocity.y),l.swipe=h||"inertiastart"===i?l.getSwipe():null,l}return(t=[{key:"getSwipe",value:function(){var e=this._interaction;if(e.prevEvent.speed<600||this.timeStamp-e.prevEvent.timeStamp>150)return null;var t=180*Math.atan2(e.prevEvent.velocityY,e.prevEvent.velocityX)/Math.PI;t<0&&(t+=360);var n=112.5<=t&&t<247.5,i=202.5<=t&&t<337.5;return{up:i,down:!i&&22.5<=t&&t<157.5,left:n,right:!n&&(292.5<=t||t<67.5),angle:t,speed:e.prevEvent.speed,velocity:{x:e.prevEvent.velocityX,y:e.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(o.prototype,t),o}(Q.BaseEvent);St.InteractEvent=Ot,Object.defineProperties(Ot.prototype,{pageX:{get:function(){return this.page.x},set:function(e){this.page.x=e}},pageY:{get:function(){return this.page.y},set:function(e){this.page.y=e}},clientX:{get:function(){return this.client.x},set:function(e){this.client.x=e}},clientY:{get:function(){return this.client.y},set:function(e){this.client.y=e}},dx:{get:function(){return this.delta.x},set:function(e){this.delta.x=e}},dy:{get:function(){return this.delta.y},set:function(e){this.delta.y=e}},velocityX:{get:function(){return this.velocity.x},set:function(e){this.velocity.x=e}},velocityY:{get:function(){return this.velocity.y},set:function(e){this.velocity.y=e}}});var It={};function Nt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(It,"__esModule",{value:!0}),It.PointerInfo=void 0,It.PointerInfo=function e(t,n,i,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Nt(this,"id",void 0),Nt(this,"pointer",void 0),Nt(this,"event",void 0),Nt(this,"downTime",void 0),Nt(this,"downTarget",void 0),this.id=t,this.pointer=n,this.event=i,this.downTime=r,this.downTarget=o};var Ft,Lt,Rt={};function jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(Rt,"__esModule",{value:!0}),Object.defineProperty(Rt,"PointerInfo",{enumerable:!0,get:function(){return It.PointerInfo}}),Rt.default=Rt.Interaction=Rt._ProxyMethods=Rt._ProxyValues=void 0,Rt._ProxyValues=Ft,function(e){e.interactable="",e.element="",e.prepared="",e.pointerIsDown="",e.pointerWasMoved="",e._proxy=""}(Ft||(Rt._ProxyValues=Ft={})),Rt._ProxyMethods=Lt,function(e){e.start="",e.move="",e.end="",e.stop="",e.interacting=""}(Lt||(Rt._ProxyMethods=Lt={}));var zt=0,Bt=function(){function e(t){var n=this,i=t.pointerType,r=t.scopeFire;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),jt(this,"interactable",null),jt(this,"element",null),jt(this,"rect",void 0),jt(this,"_rects",void 0),jt(this,"edges",void 0),jt(this,"_scopeFire",void 0),jt(this,"prepared",{name:null,axis:null,edges:null}),jt(this,"pointerType",void 0),jt(this,"pointers",[]),jt(this,"downEvent",null),jt(this,"downPointer",{}),jt(this,"_latestPointer",{pointer:null,event:null,eventTarget:null}),jt(this,"prevEvent",null),jt(this,"pointerIsDown",!1),jt(this,"pointerWasMoved",!1),jt(this,"_interacting",!1),jt(this,"_ending",!1),jt(this,"_stopped",!0),jt(this,"_proxy",null),jt(this,"simulation",null),jt(this,"doMove",(0,Re.warnOnce)((function(e){this.move(e)}),"The interaction.doMove() method has been renamed to interaction.move()")),jt(this,"coords",{start:B.newCoords(),prev:B.newCoords(),cur:B.newCoords(),delta:B.newCoords(),velocity:B.newCoords()}),jt(this,"_id",zt++),this._scopeFire=r,this.pointerType=i;var o=this;this._proxy={};var A=function(e){Object.defineProperty(n._proxy,e,{get:function(){return o[e]}})};for(var a in Ft)A(a);var s=function(e){Object.defineProperty(n._proxy,e,{value:function(){return o[e].apply(o,arguments)}})};for(var l in Lt)s(l);this._scopeFire("interactions:new",{interaction:this})}var t;return(t=[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(e,t,n){var i=this.updatePointer(e,t,n,!0),r=this.pointers[i];this._scopeFire("interactions:down",{pointer:e,event:t,eventTarget:n,pointerIndex:i,pointerInfo:r,type:"down",interaction:this})}},{key:"start",value:function(e,t,n){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===e.name?2:1)||!t.options[e.name].enabled)&&((0,Re.copyAction)(this.prepared,e),this.interactable=t,this.element=n,this.rect=t.getRect(n),this.edges=this.prepared.edges?(0,D.default)({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(e,t,n){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(e,t,n,!1);var i,r,o=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(i=this.coords.cur.client.x-this.coords.start.client.x,r=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=(0,L.default)(i,r)>this.pointerMoveTolerance);var A=this.getPointerIndex(e),a={pointer:e,pointerIndex:A,pointerInfo:this.pointers[A],event:t,type:"move",eventTarget:n,dx:i,dy:r,duplicate:o,interaction:this};o||B.setCoordVelocity(this.coords.velocity,this.coords.delta),this._scopeFire("interactions:move",a),o||this.simulation||(this.interacting()&&(a.type=null,this.move(a)),this.pointerWasMoved&&B.copyCoords(this.coords.prev,this.coords.cur))}},{key:"move",value:function(e){e&&e.event||B.setZeroCoords(this.coords.delta),(e=(0,D.default)({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},e||{})).phase="move",this._doPhase(e)}},{key:"pointerUp",value:function(e,t,n,i){var r=this.getPointerIndex(e);-1===r&&(r=this.updatePointer(e,t,n,!1));var o=/cancel$/i.test(t.type)?"cancel":"up";this._scopeFire("interactions:".concat(o),{pointer:e,pointerIndex:r,pointerInfo:this.pointers[r],event:t,eventTarget:n,type:o,curEventTarget:i,interaction:this}),this.simulation||this.end(t),this.removePointer(e,t)}},{key:"documentBlur",value:function(e){this.end(e),this._scopeFire("interactions:blur",{event:e,type:"blur",interaction:this})}},{key:"end",value:function(e){var t;this._ending=!0,e=e||this._latestPointer.event,this.interacting()&&(t=this._doPhase({event:e,interaction:this,phase:"end"})),this._ending=!1,!0===t&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(e){var t=B.getPointerId(e);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:Z.findIndex(this.pointers,(function(e){return e.id===t}))}},{key:"getPointerInfo",value:function(e){return this.pointers[this.getPointerIndex(e)]}},{key:"updatePointer",value:function(e,t,n,i){var r=B.getPointerId(e),o=this.getPointerIndex(e),A=this.pointers[o];return i=!1!==i&&(i||/(down|start)$/i.test(t.type)),A?A.pointer=e:(A=new It.PointerInfo(r,e,t,null,null),o=this.pointers.length,this.pointers.push(A)),B.setCoords(this.coords.cur,this.pointers.map((function(e){return e.pointer})),this._now()),B.setCoordDeltas(this.coords.delta,this.coords.prev,this.coords.cur),i&&(this.pointerIsDown=!0,A.downTime=this.coords.cur.timeStamp,A.downTarget=n,B.pointerExtend(this.downPointer,e),this.interacting()||(B.copyCoords(this.coords.start,this.coords.cur),B.copyCoords(this.coords.prev,this.coords.cur),this.downEvent=t,this.pointerWasMoved=!1)),this._updateLatestPointer(e,t,n),this._scopeFire("interactions:update-pointer",{pointer:e,event:t,eventTarget:n,down:i,pointerInfo:A,pointerIndex:o,interaction:this}),o}},{key:"removePointer",value:function(e,t){var n=this.getPointerIndex(e);if(-1!==n){var i=this.pointers[n];this._scopeFire("interactions:remove-pointer",{pointer:e,event:t,eventTarget:null,pointerIndex:n,pointerInfo:i,interaction:this}),this.pointers.splice(n,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(e,t,n){this._latestPointer.pointer=e,this._latestPointer.event=t,this._latestPointer.eventTarget=n}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(e,t,n,i){return new St.InteractEvent(this,e,this.prepared.name,t,this.element,n,i)}},{key:"_fireEvent",value:function(e){this.interactable.fire(e),(!this.prevEvent||e.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=e)}},{key:"_doPhase",value:function(e){var t=e.event,n=e.phase,i=e.preEnd,r=e.type,o=this.rect;if(o&&"move"===n&&(P.addEdges(this.edges,o,this.coords.delta[this.interactable.options.deltaSource]),o.width=o.right-o.left,o.height=o.bottom-o.top),!1===this._scopeFire("interactions:before-action-".concat(n),e))return!1;var A=e.iEvent=this._createPreparedEvent(t,n,i,r);return this._scopeFire("interactions:action-".concat(n),e),"start"===n&&(this.prevEvent=A),this._fireEvent(A),this._scopeFire("interactions:after-action-".concat(n),e),!0}},{key:"_now",value:function(){return Date.now()}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(e.prototype,t),e}();Rt.Interaction=Bt;var Wt=Bt;Rt.default=Wt;var Ht={};function Vt(e){e.pointerIsDown&&(Qt(e.coords.cur,e.offset.total),e.offset.pending.x=0,e.offset.pending.y=0)}function Yt(e){qt(e.interaction)}function qt(e){if(!function(e){return!(!e.offset.pending.x&&!e.offset.pending.y)}(e))return!1;var t=e.offset.pending;return Qt(e.coords.cur,t),Qt(e.coords.delta,t),P.addEdges(e.edges,e.rect,t),t.x=0,t.y=0,!0}function Ut(e){var t=e.x,n=e.y;this.offset.pending.x+=t,this.offset.pending.y+=n,this.offset.total.x+=t,this.offset.total.y+=n}function Qt(e,t){var n=e.page,i=e.client,r=t.x,o=t.y;n.x+=r,n.y+=o,i.x+=r,i.y+=o}Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.addTotal=Vt,Ht.applyPending=qt,Ht.default=void 0,Rt._ProxyMethods.offsetBy="";var Xt={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(e){e.Interaction.prototype.offsetBy=Ut},listeners:{"interactions:new":function(e){e.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(e){return Vt(e.interaction)},"interactions:before-action-start":Yt,"interactions:before-action-move":Yt,"interactions:before-action-end":function(e){var t=e.interaction;if(qt(t))return t.move({offset:!0}),t.end(),!1},"interactions:stop":function(e){var t=e.interaction;t.offset.total.x=0,t.offset.total.y=0,t.offset.pending.x=0,t.offset.pending.y=0}}};Ht.default=Xt;var Gt={};function Zt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.default=Gt.InertiaState=void 0;var Kt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Zt(this,"active",!1),Zt(this,"isModified",!1),Zt(this,"smoothEnd",!1),Zt(this,"allowResume",!1),Zt(this,"modification",void 0),Zt(this,"modifierCount",0),Zt(this,"modifierArg",void 0),Zt(this,"startCoords",void 0),Zt(this,"t0",0),Zt(this,"v0",0),Zt(this,"te",0),Zt(this,"targetOffset",void 0),Zt(this,"modifiedOffset",void 0),Zt(this,"currentOffset",void 0),Zt(this,"lambda_v0",0),Zt(this,"one_ve_v0",0),Zt(this,"timeout",void 0),Zt(this,"interaction",void 0),this.interaction=t}var t;return(t=[{key:"start",value:function(e){var t=this.interaction,n=Jt(t);if(!n||!n.enabled)return!1;var i=t.coords.velocity.client,r=(0,L.default)(i.x,i.y),o=this.modification||(this.modification=new ht.default(t));if(o.copyFrom(t.modification),this.t0=t._now(),this.allowResume=n.allowResume,this.v0=r,this.currentOffset={x:0,y:0},this.startCoords=t.coords.cur.page,this.modifierArg=o.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-t.coords.cur.timeStamp<50&&r>n.minSpeed&&r>n.endSpeed)this.startInertia();else{if(o.result=o.setAll(this.modifierArg),!o.result.changed)return!1;this.startSmoothEnd()}return t.modification.result.rect=null,t.offsetBy(this.targetOffset),t._doPhase({interaction:t,event:e,phase:"inertiastart"}),t.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),t.modification.result.rect=null,this.active=!0,t.simulation=this,!0}},{key:"startInertia",value:function(){var e=this,t=this.interaction.coords.velocity.client,n=Jt(this.interaction),i=n.resistance,r=-Math.log(n.endSpeed/this.v0)/i;this.targetOffset={x:(t.x-r)/i,y:(t.y-r)/i},this.te=r,this.lambda_v0=i/this.v0,this.one_ve_v0=1-n.endSpeed/this.v0;var o=this.modification,A=this.modifierArg;A.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},o.result=o.setAll(A),o.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+o.result.delta.x,y:this.targetOffset.y+o.result.delta.y}),this.onNextFrame((function(){return e.inertiaTick()}))}},{key:"startSmoothEnd",value:function(){var e=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame((function(){return e.smoothEndTick()}))}},{key:"onNextFrame",value:function(e){var t=this;this.timeout=Me.default.request((function(){t.active&&e()}))}},{key:"inertiaTick",value:function(){var e,t,n,i,r,o=this,A=this.interaction,a=Jt(A).resistance,s=(A._now()-this.t0)/1e3;if(s<this.te){var l,c=1-(Math.exp(-a*s)-this.lambda_v0)/this.one_ve_v0;this.isModified?(e=this.targetOffset.x,t=this.targetOffset.y,n=this.modifiedOffset.x,i=this.modifiedOffset.y,l={x:$t(r=c,0,e,n),y:$t(r,0,t,i)}):l={x:this.targetOffset.x*c,y:this.targetOffset.y*c};var u={x:l.x-this.currentOffset.x,y:l.y-this.currentOffset.y};this.currentOffset.x+=u.x,this.currentOffset.y+=u.y,A.offsetBy(u),A.move(),this.onNextFrame((function(){return o.inertiaTick()}))}else A.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var e=this,t=this.interaction,n=t._now()-this.t0,i=Jt(t).smoothEndDuration;if(n<i){var r={x:en(n,0,this.targetOffset.x,i),y:en(n,0,this.targetOffset.y,i)},o={x:r.x-this.currentOffset.x,y:r.y-this.currentOffset.y};this.currentOffset.x+=o.x,this.currentOffset.y+=o.y,t.offsetBy(o),t.move({skipModifiers:this.modifierCount}),this.onNextFrame((function(){return e.smoothEndTick()}))}else t.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(e){var t=e.pointer,n=e.event,i=e.eventTarget,r=this.interaction;r.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),r.updatePointer(t,n,i,!0),r._doPhase({interaction:r,event:n,phase:"resume"}),(0,B.copyCoords)(r.coords.prev,r.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,Me.default.cancel(this.timeout)}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(e.prototype,t),e}();function Jt(e){var t=e.interactable,n=e.prepared;return t&&t.options&&n.name&&t.options[n.name].inertia}function $t(e,t,n,i){var r=1-e;return r*r*t+2*r*e*n+e*e*i}function en(e,t,n,i){return-n*(e/=i)*(e-2)+t}Gt.InertiaState=Kt;var tn={id:"inertia",before:["modifiers","actions"],install:function(e){var t=e.defaults;e.usePlugin(Ht.default),e.usePlugin(xt.default),e.actions.phases.inertiastart=!0,e.actions.phases.resume=!0,t.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(e){var t=e.interaction;t.inertia=new Kt(t)},"interactions:before-action-end":function(e){var t=e.interaction,n=e.event;return(!t._interacting||t.simulation||!t.inertia.start(n))&&null},"interactions:down":function(e){var t=e.interaction,n=e.eventTarget,i=t.inertia;if(i.active)for(var r=n;o.default.element(r);){if(r===t.element){i.resume(e);break}r=w.parentNode(r)}},"interactions:stop":function(e){var t=e.interaction.inertia;t.active&&t.stop()},"interactions:before-action-resume":function(e){var t=e.interaction.modification;t.stop(e),t.start(e,e.interaction.coords.cur.page),t.applyToInteraction(e)},"interactions:before-action-inertiastart":function(e){return e.interaction.modification.setAndApply(e)},"interactions:action-resume":xt.addEventModifiers,"interactions:action-inertiastart":xt.addEventModifiers,"interactions:after-action-inertiastart":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:after-action-resume":function(e){return e.interaction.modification.restoreInteractionCoords(e)}}};Gt.default=tn;var nn={};function rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function on(e,t){for(var n=0;n<t.length;n++){var i=t[n];if(e.immediatePropagationStopped)break;i(e)}}Object.defineProperty(nn,"__esModule",{value:!0}),nn.Eventable=void 0;var An=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rn(this,"options",void 0),rn(this,"types",{}),rn(this,"propagationStopped",!1),rn(this,"immediatePropagationStopped",!1),rn(this,"global",void 0),this.options=(0,D.default)({},t||{})}var t;return(t=[{key:"fire",value:function(e){var t,n=this.global;(t=this.types[e.type])&&on(e,t),!e.propagationStopped&&n&&(t=n[e.type])&&on(e,t)}},{key:"on",value:function(e,t){var n=(0,N.default)(e,t);for(e in n)this.types[e]=Z.merge(this.types[e]||[],n[e])}},{key:"off",value:function(e,t){var n=(0,N.default)(e,t);for(e in n){var i=this.types[e];if(i&&i.length)for(var r=0;r<n[e].length;r++){var o=n[e][r],A=i.indexOf(o);-1!==A&&i.splice(A,1)}}}},{key:"getRect",value:function(e){return null}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(e.prototype,t),e}();nn.Eventable=An;var an={};Object.defineProperty(an,"__esModule",{value:!0}),an.default=function(e,t){if(t.phaselessTypes[e])return!0;for(var n in t.map)if(0===e.indexOf(n)&&e.substr(n.length)in t.phases)return!0;return!1};var sn={};Object.defineProperty(sn,"__esModule",{value:!0}),sn.createInteractStatic=function(e){var t=function t(n,i){var r=e.interactables.get(n,i);return r||((r=e.interactables.new(n,i)).events.global=t.globalEvents),r};return t.getPointerAverage=B.pointerAverage,t.getTouchBBox=B.touchBBox,t.getTouchDistance=B.touchDistance,t.getTouchAngle=B.touchAngle,t.getElementRect=w.getElementRect,t.getElementClientRect=w.getElementClientRect,t.matchesSelector=w.matchesSelector,t.closest=w.closest,t.globalEvents={},t.version="1.10.11",t.scope=e,t.use=function(e,t){return this.scope.usePlugin(e,t),this},t.isSet=function(e,t){return!!this.scope.interactables.get(e,t&&t.context)},t.on=(0,Re.warnOnce)((function(e,t,n){if(o.default.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),o.default.array(e)){for(var i=0;i<e.length;i++){var r=e[i];this.on(r,t,n)}return this}if(o.default.object(e)){for(var A in e)this.on(A,e[A],t);return this}return(0,an.default)(e,this.scope.actions)?this.globalEvents[e]?this.globalEvents[e].push(t):this.globalEvents[e]=[t]:this.scope.events.add(this.scope.document,e,t,{options:n}),this}),"The interact.on() method is being deprecated"),t.off=(0,Re.warnOnce)((function(e,t,n){if(o.default.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),o.default.array(e)){for(var i=0;i<e.length;i++){var r=e[i];this.off(r,t,n)}return this}if(o.default.object(e)){for(var A in e)this.off(A,e[A],t);return this}var a;return(0,an.default)(e,this.scope.actions)?e in this.globalEvents&&-1!==(a=this.globalEvents[e].indexOf(t))&&this.globalEvents[e].splice(a,1):this.scope.events.remove(this.scope.document,e,t,n),this}),"The interact.off() method is being deprecated"),t.debug=function(){return this.scope},t.supportsTouch=function(){return y.default.supportsTouch},t.supportsPointerEvent=function(){return y.default.supportsPointerEvent},t.stop=function(){for(var e=0;e<this.scope.interactions.list.length;e++)this.scope.interactions.list[e].stop();return this},t.pointerMoveTolerance=function(e){return o.default.number(e)?(this.scope.interactions.pointerMoveTolerance=e,this):this.scope.interactions.pointerMoveTolerance},t.addDocument=function(e,t){this.scope.addDocument(e,t)},t.removeDocument=function(e){this.scope.removeDocument(e)},t};var ln={};function cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(ln,"__esModule",{value:!0}),ln.Interactable=void 0;var un=function(){function e(n,i,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),cn(this,"options",void 0),cn(this,"_actions",void 0),cn(this,"target",void 0),cn(this,"events",new nn.Eventable),cn(this,"_context",void 0),cn(this,"_win",void 0),cn(this,"_doc",void 0),cn(this,"_scopeEvents",void 0),cn(this,"_rectChecker",void 0),this._actions=i.actions,this.target=n,this._context=i.context||r,this._win=(0,t.getWindow)((0,w.trySelector)(n)?this._context:n),this._doc=this._win.document,this._scopeEvents=o,this.set(i)}var n;return(n=[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(e,t){return o.default.func(t.onstart)&&this.on("".concat(e,"start"),t.onstart),o.default.func(t.onmove)&&this.on("".concat(e,"move"),t.onmove),o.default.func(t.onend)&&this.on("".concat(e,"end"),t.onend),o.default.func(t.oninertiastart)&&this.on("".concat(e,"inertiastart"),t.oninertiastart),this}},{key:"updatePerActionListeners",value:function(e,t,n){(o.default.array(t)||o.default.object(t))&&this.off(e,t),(o.default.array(n)||o.default.object(n))&&this.on(e,n)}},{key:"setPerAction",value:function(e,t){var n=this._defaults;for(var i in t){var r=i,A=this.options[e],a=t[r];"listeners"===r&&this.updatePerActionListeners(e,A.listeners,a),o.default.array(a)?A[r]=Z.from(a):o.default.plainObject(a)?(A[r]=(0,D.default)(A[r]||{},(0,ft.default)(a)),o.default.object(n.perAction[r])&&"enabled"in n.perAction[r]&&(A[r].enabled=!1!==a.enabled)):o.default.bool(a)&&o.default.object(n.perAction[r])?A[r].enabled=a:A[r]=a}}},{key:"getRect",value:function(e){return e=e||(o.default.element(this.target)?this.target:null),o.default.string(this.target)&&(e=e||this._context.querySelector(this.target)),(0,w.getElementRect)(e)}},{key:"rectChecker",value:function(e){var t=this;return o.default.func(e)?(this._rectChecker=e,this.getRect=function(e){var n=(0,D.default)({},t._rectChecker(e));return"width"in n||(n.width=n.right-n.left,n.height=n.bottom-n.top),n},this):null===e?(delete this.getRect,delete this._rectChecker,this):this.getRect}},{key:"_backCompatOption",value:function(e,t){if((0,w.trySelector)(t)||o.default.object(t)){for(var n in this.options[e]=t,this._actions.map)this.options[n][e]=t;return this}return this.options[e]}},{key:"origin",value:function(e){return this._backCompatOption("origin",e)}},{key:"deltaSource",value:function(e){return"page"===e||"client"===e?(this.options.deltaSource=e,this):this.options.deltaSource}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(e){return this._context===e.ownerDocument||(0,w.nodeContains)(this._context,e)}},{key:"testIgnoreAllow",value:function(e,t,n){return!this.testIgnore(e.ignoreFrom,t,n)&&this.testAllow(e.allowFrom,t,n)}},{key:"testAllow",value:function(e,t,n){return!e||!!o.default.element(n)&&(o.default.string(e)?(0,w.matchesUpTo)(n,e,t):!!o.default.element(e)&&(0,w.nodeContains)(e,n))}},{key:"testIgnore",value:function(e,t,n){return!(!e||!o.default.element(n))&&(o.default.string(e)?(0,w.matchesUpTo)(n,e,t):!!o.default.element(e)&&(0,w.nodeContains)(e,n))}},{key:"fire",value:function(e){return this.events.fire(e),this}},{key:"_onOff",value:function(e,t,n,i){o.default.object(t)&&!o.default.array(t)&&(i=n,n=null);var r="on"===e?"add":"remove",A=(0,N.default)(t,n);for(var a in A){"wheel"===a&&(a=y.default.wheelEvent);for(var s=0;s<A[a].length;s++){var l=A[a][s];(0,an.default)(a,this._actions)?this.events[e](a,l):o.default.string(this.target)?this._scopeEvents["".concat(r,"Delegate")](this.target,this._context,a,l,i):this._scopeEvents[r](this.target,a,l,i)}}return this}},{key:"on",value:function(e,t,n){return this._onOff("on",e,t,n)}},{key:"off",value:function(e,t,n){return this._onOff("off",e,t,n)}},{key:"set",value:function(e){var t=this._defaults;for(var n in o.default.object(e)||(e={}),this.options=(0,ft.default)(t.base),this._actions.methodDict){var i=n,r=this._actions.methodDict[i];this.options[i]={},this.setPerAction(i,(0,D.default)((0,D.default)({},t.perAction),t.actions[i])),this[r](e[i])}for(var A in e)o.default.func(this[A])&&this[A](e[A]);return this}},{key:"unset",value:function(){if(o.default.string(this.target))for(var e in this._scopeEvents.delegatedEvents)for(var t=this._scopeEvents.delegatedEvents[e],n=t.length-1;n>=0;n--){var i=t[n],r=i.selector,A=i.context,a=i.listeners;r===this.target&&A===this._context&&t.splice(n,1);for(var s=a.length-1;s>=0;s--)this._scopeEvents.removeDelegate(this.target,this._context,e,a[s][0],a[s][1])}else this._scopeEvents.remove(this.target,"all")}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(e.prototype,n),e}();ln.Interactable=un;var dn={};function fn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(dn,"__esModule",{value:!0}),dn.InteractableSet=void 0;var hn=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),fn(this,"list",[]),fn(this,"selectorMap",{}),fn(this,"scope",void 0),this.scope=t,t.addListeners({"interactable:unset":function(e){var t=e.interactable,i=t.target,r=t._context,A=o.default.string(i)?n.selectorMap[i]:i[n.scope.id],a=Z.findIndex(A,(function(e){return e.context===r}));A[a]&&(A[a].context=null,A[a].interactable=null),A.splice(a,1)}})}var t;return(t=[{key:"new",value:function(e,t){t=(0,D.default)(t||{},{actions:this.scope.actions});var n=new this.scope.Interactable(e,t,this.scope.document,this.scope.events),i={context:n._context,interactable:n};return this.scope.addDocument(n._doc),this.list.push(n),o.default.string(e)?(this.selectorMap[e]||(this.selectorMap[e]=[]),this.selectorMap[e].push(i)):(n.target[this.scope.id]||Object.defineProperty(e,this.scope.id,{value:[],configurable:!0}),e[this.scope.id].push(i)),this.scope.fire("interactable:new",{target:e,options:t,interactable:n,win:this.scope._win}),n}},{key:"get",value:function(e,t){var n=t&&t.context||this.scope.document,i=o.default.string(e),r=i?this.selectorMap[e]:e[this.scope.id];if(!r)return null;var A=Z.find(r,(function(t){return t.context===n&&(i||t.interactable.inContext(e))}));return A&&A.interactable}},{key:"forEachMatch",value:function(e,t){for(var n=0;n<this.list.length;n++){var i=this.list[n],r=void 0;if((o.default.string(i.target)?o.default.element(e)&&w.matchesSelector(e,i.target):e===i.target)&&i.inContext(e)&&(r=t(i)),void 0!==r)return r}}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(e.prototype,t),e}();dn.InteractableSet=hn;var pn={};function gn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0;try{for(var A,a=e[Symbol.iterator]();!(i=(A=a.next()).done)&&(n.push(A.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{i||null==a.return||a.return()}finally{if(r)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}Object.defineProperty(pn,"__esModule",{value:!0}),pn.default=void 0;var yn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),gn(this,"currentTarget",void 0),gn(this,"originalEvent",void 0),gn(this,"type",void 0),this.originalEvent=t,(0,R.default)(this,t)}var t;return(t=[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(e.prototype,t),e}();function bn(e){if(!o.default.object(e))return{capture:!!e,passive:!1};var t=(0,D.default)({},e);return t.capture=!!e.capture,t.passive=!!e.passive,t}var xn={id:"events",install:function(e){var t,n=[],i={},r=[],A={add:a,remove:s,addDelegate:function(e,t,n,o,A){var s=bn(A);if(!i[n]){i[n]=[];for(var u=0;u<r.length;u++){var d=r[u];a(d,n,l),a(d,n,c,!0)}}var f=i[n],h=Z.find(f,(function(n){return n.selector===e&&n.context===t}));h||(h={selector:e,context:t,listeners:[]},f.push(h)),h.listeners.push([o,s])},removeDelegate:function(e,t,n,r,o){var A,a=bn(o),u=i[n],d=!1;if(u)for(A=u.length-1;A>=0;A--){var f=u[A];if(f.selector===e&&f.context===t){for(var h=f.listeners,p=h.length-1;p>=0;p--){var g=mn(h[p],2),m=g[0],v=g[1],y=v.capture,b=v.passive;if(m===r&&y===a.capture&&b===a.passive){h.splice(p,1),h.length||(u.splice(A,1),s(t,n,l),s(t,n,c,!0)),d=!0;break}}if(d)break}}},delegateListener:l,delegateUseCapture:c,delegatedEvents:i,documents:r,targets:n,supportsOptions:!1,supportsPassive:!1};function a(e,t,i,r){var o=bn(r),a=Z.find(n,(function(t){return t.eventTarget===e}));a||(a={eventTarget:e,events:{}},n.push(a)),a.events[t]||(a.events[t]=[]),e.addEventListener&&!Z.contains(a.events[t],i)&&(e.addEventListener(t,i,A.supportsOptions?o:o.capture),a.events[t].push(i))}function s(e,t,i,r){var o=bn(r),a=Z.findIndex(n,(function(t){return t.eventTarget===e})),l=n[a];if(l&&l.events)if("all"!==t){var c=!1,u=l.events[t];if(u){if("all"===i){for(var d=u.length-1;d>=0;d--)s(e,t,u[d],o);return}for(var f=0;f<u.length;f++)if(u[f]===i){e.removeEventListener(t,i,A.supportsOptions?o:o.capture),u.splice(f,1),0===u.length&&(delete l.events[t],c=!0);break}}c&&!Object.keys(l.events).length&&n.splice(a,1)}else for(t in l.events)l.events.hasOwnProperty(t)&&s(e,t,"all")}function l(e,t){for(var n=bn(t),r=new yn(e),A=i[e.type],a=mn(B.getEventTargets(e),1)[0],s=a;o.default.element(s);){for(var l=0;l<A.length;l++){var c=A[l],u=c.selector,d=c.context;if(w.matchesSelector(s,u)&&w.nodeContains(d,a)&&w.nodeContains(d,s)){var f=c.listeners;r.currentTarget=s;for(var h=0;h<f.length;h++){var p=mn(f[h],2),g=p[0],m=p[1],v=m.capture,y=m.passive;v===n.capture&&y===n.passive&&g(r)}}}s=w.parentNode(s)}}function c(e){return l(e,!0)}return null==(t=e.document)||t.createElement("div").addEventListener("test",null,{get capture(){return A.supportsOptions=!0},get passive(){return A.supportsPassive=!0}}),e.events=A,A}};pn.default=xn;var wn={};Object.defineProperty(wn,"__esModule",{value:!0}),wn.default=void 0;var _n={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(e){for(var t=0;t<_n.methodOrder.length;t++){var n;n=_n.methodOrder[t];var i=_n[n](e);if(i)return i}return null},simulationResume:function(e){var t=e.pointerType,n=e.eventType,i=e.eventTarget,r=e.scope;if(!/down|start/i.test(n))return null;for(var o=0;o<r.interactions.list.length;o++){var A=r.interactions.list[o],a=i;if(A.simulation&&A.simulation.allowResume&&A.pointerType===t)for(;a;){if(a===A.element)return A;a=w.parentNode(a)}}return null},mouseOrPen:function(e){var t,n=e.pointerId,i=e.pointerType,r=e.eventType,o=e.scope;if("mouse"!==i&&"pen"!==i)return null;for(var A=0;A<o.interactions.list.length;A++){var a=o.interactions.list[A];if(a.pointerType===i){if(a.simulation&&!kn(a,n))continue;if(a.interacting())return a;t||(t=a)}}if(t)return t;for(var s=0;s<o.interactions.list.length;s++){var l=o.interactions.list[s];if(!(l.pointerType!==i||/down/i.test(r)&&l.simulation))return l}return null},hasPointer:function(e){for(var t=e.pointerId,n=e.scope,i=0;i<n.interactions.list.length;i++){var r=n.interactions.list[i];if(kn(r,t))return r}return null},idle:function(e){for(var t=e.pointerType,n=e.scope,i=0;i<n.interactions.list.length;i++){var r=n.interactions.list[i];if(1===r.pointers.length){var o=r.interactable;if(o&&(!o.options.gesture||!o.options.gesture.enabled))continue}else if(r.pointers.length>=2)continue;if(!r.interacting()&&t===r.pointerType)return r}return null}};function kn(e,t){return e.pointers.some((function(e){return e.id===t}))}var Sn=_n;wn.default=Sn;var Tn={};function Mn(e){return(Mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0;try{for(var A,a=e[Symbol.iterator]();!(i=(A=a.next()).done)&&(n.push(A.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{i||null==a.return||a.return()}finally{if(r)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Dn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Pn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function En(e,t){return(En=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function On(e,t){return!t||"object"!==Mn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function In(e){return(In=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.default=void 0;var Nn=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Fn(e,t){return function(n){var i=t.interactions.list,r=B.getPointerType(n),o=Cn(B.getEventTargets(n),2),A=o[0],a=o[1],s=[];if(/^touch/.test(n.type)){t.prevTouchTime=t.now();for(var l=0;l<n.changedTouches.length;l++){var c=n.changedTouches[l],u={pointer:c,pointerId:B.getPointerId(c),pointerType:r,eventType:n.type,eventTarget:A,curEventTarget:a,scope:t},d=Ln(u);s.push([u.pointer,u.eventTarget,u.curEventTarget,d])}}else{var f=!1;if(!y.default.supportsPointerEvent&&/mouse/.test(n.type)){for(var h=0;h<i.length&&!f;h++)f="mouse"!==i[h].pointerType&&i[h].pointerIsDown;f=f||t.now()-t.prevTouchTime<500||0===n.timeStamp}if(!f){var p={pointer:n,pointerId:B.getPointerId(n),pointerType:r,eventType:n.type,curEventTarget:a,eventTarget:A,scope:t},g=Ln(p);s.push([p.pointer,p.eventTarget,p.curEventTarget,g])}}for(var m=0;m<s.length;m++){var v=Cn(s[m],4),b=v[0],x=v[1],w=v[2];v[3][e](b,n,x,w)}}}function Ln(e){var t=e.pointerType,n=e.scope,i={interaction:wn.default.search(e),searchDetails:e};return n.fire("interactions:find",i),i.interaction||n.interactions.new({pointerType:t})}function Rn(e,t){var n=e.doc,i=e.scope,r=e.options,o=i.interactions.docEvents,A=i.events,a=A[t];for(var s in i.browser.isIOS&&!r.events&&(r.events={passive:!1}),A.delegatedEvents)a(n,s,A.delegateListener),a(n,s,A.delegateUseCapture,!0);for(var l=r&&r.events,c=0;c<o.length;c++){var u=o[c];a(n,u.type,u.listener,l)}}var jn={id:"core/interactions",install:function(e){for(var t={},n=0;n<Nn.length;n++){var i=Nn[n];t[i]=Fn(i,e)}var r,o=y.default.pEventTypes;function A(){for(var t=0;t<e.interactions.list.length;t++){var n=e.interactions.list[t];if(n.pointerIsDown&&"touch"===n.pointerType&&!n._interacting)for(var i=function(){var t=n.pointers[r];e.documents.some((function(e){var n=e.doc;return(0,w.nodeContains)(n,t.downTarget)}))||n.removePointer(t.pointer,t.event)},r=0;r<n.pointers.length;r++)i()}}(r=p.default.PointerEvent?[{type:o.down,listener:A},{type:o.down,listener:t.pointerDown},{type:o.move,listener:t.pointerMove},{type:o.up,listener:t.pointerUp},{type:o.cancel,listener:t.pointerUp}]:[{type:"mousedown",listener:t.pointerDown},{type:"mousemove",listener:t.pointerMove},{type:"mouseup",listener:t.pointerUp},{type:"touchstart",listener:A},{type:"touchstart",listener:t.pointerDown},{type:"touchmove",listener:t.pointerMove},{type:"touchend",listener:t.pointerUp},{type:"touchcancel",listener:t.pointerUp}]).push({type:"blur",listener:function(t){for(var n=0;n<e.interactions.list.length;n++)e.interactions.list[n].documentBlur(t)}}),e.prevTouchTime=0,e.Interaction=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&En(e,t)}(A,t);var n,i,r,o=(i=A,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=In(i);if(r){var n=In(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return On(this,e)});function A(){return Pn(this,A),o.apply(this,arguments)}return(n=[{key:"pointerMoveTolerance",get:function(){return e.interactions.pointerMoveTolerance},set:function(t){e.interactions.pointerMoveTolerance=t}},{key:"_now",value:function(){return e.now()}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(A.prototype,n),A}(Rt.default),e.interactions={list:[],new:function(t){t.scopeFire=function(t,n){return e.fire(t,n)};var n=new e.Interaction(t);return e.interactions.list.push(n),n},listeners:t,docEvents:r,pointerMoveTolerance:1},e.usePlugin(ot.default)},listeners:{"scope:add-document":function(e){return Rn(e,"add")},"scope:remove-document":function(e){return Rn(e,"remove")},"interactable:unset":function(e,t){for(var n=e.interactable,i=t.interactions.list.length-1;i>=0;i--){var r=t.interactions.list[i];r.interactable===n&&(r.stop(),t.fire("interactions:destroy",{interaction:r}),r.destroy(),t.interactions.list.length>2&&t.interactions.list.splice(i,1))}}},onDocSignal:Rn,doOnInteractions:Fn,methodNames:Nn};Tn.default=jn;var zn={};function Bn(e){return(Bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wn(e,t,n){return(Wn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Yn(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function Hn(e,t){return(Hn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vn(e,t){return!t||"object"!==Bn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Yn(e){return(Yn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Un(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Qn(e,t,n){return t&&Un(e.prototype,t),n&&Un(e,n),e}function Xn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(zn,"__esModule",{value:!0}),zn.initScope=Zn,zn.Scope=void 0;var Gn=function(){function e(){var t=this;qn(this,e),Xn(this,"id","__interact_scope_".concat(Math.floor(100*Math.random()))),Xn(this,"isInitialized",!1),Xn(this,"listenerMaps",[]),Xn(this,"browser",y.default),Xn(this,"defaults",(0,ft.default)(kt.defaults)),Xn(this,"Eventable",nn.Eventable),Xn(this,"actions",{map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}}),Xn(this,"interactStatic",(0,sn.createInteractStatic)(this)),Xn(this,"InteractEvent",St.InteractEvent),Xn(this,"Interactable",void 0),Xn(this,"interactables",new dn.InteractableSet(this)),Xn(this,"_win",void 0),Xn(this,"document",void 0),Xn(this,"window",void 0),Xn(this,"documents",[]),Xn(this,"_plugins",{list:[],map:{}}),Xn(this,"onWindowUnload",(function(e){return t.removeDocument(e.target)}));var n=this;this.Interactable=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hn(e,t)}(o,e);var t,i,r=(t=o,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=Yn(t);if(i){var r=Yn(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Vn(this,e)});function o(){return qn(this,o),r.apply(this,arguments)}return Qn(o,[{key:"_defaults",get:function(){return n.defaults}},{key:"set",value:function(e){return Wn(Yn(o.prototype),"set",this).call(this,e),n.fire("interactable:set",{options:e,interactable:this}),this}},{key:"unset",value:function(){Wn(Yn(o.prototype),"unset",this).call(this),n.interactables.list.splice(n.interactables.list.indexOf(this),1),n.fire("interactable:unset",{interactable:this})}}]),o}(ln.Interactable)}return Qn(e,[{key:"addListeners",value:function(e,t){this.listenerMaps.push({id:t,map:e})}},{key:"fire",value:function(e,t){for(var n=0;n<this.listenerMaps.length;n++){var i=this.listenerMaps[n].map[e];if(i&&!1===i(t,this,e))return!1}}},{key:"init",value:function(e){return this.isInitialized?this:Zn(this,e)}},{key:"pluginIsInstalled",value:function(e){return this._plugins.map[e.id]||-1!==this._plugins.list.indexOf(e)}},{key:"usePlugin",value:function(e,t){if(!this.isInitialized)return this;if(this.pluginIsInstalled(e))return this;if(e.id&&(this._plugins.map[e.id]=e),this._plugins.list.push(e),e.install&&e.install(this,t),e.listeners&&e.before){for(var n=0,i=this.listenerMaps.length,r=e.before.reduce((function(e,t){return e[t]=!0,e[Kn(t)]=!0,e}),{});n<i;n++){var o=this.listenerMaps[n].id;if(r[o]||r[Kn(o)])break}this.listenerMaps.splice(n,0,{id:e.id,map:e.listeners})}else e.listeners&&this.listenerMaps.push({id:e.id,map:e.listeners});return this}},{key:"addDocument",value:function(e,n){if(-1!==this.getDocIndex(e))return!1;var i=t.getWindow(e);n=n?(0,D.default)({},n):{},this.documents.push({doc:e,options:n}),this.events.documents.push(e),e!==this.document&&this.events.add(i,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:e,window:i,scope:this,options:n})}},{key:"removeDocument",value:function(e){var n=this.getDocIndex(e),i=t.getWindow(e),r=this.documents[n].options;this.events.remove(i,"unload",this.onWindowUnload),this.documents.splice(n,1),this.events.documents.splice(n,1),this.fire("scope:remove-document",{doc:e,window:i,scope:this,options:r})}},{key:"getDocIndex",value:function(e){for(var t=0;t<this.documents.length;t++)if(this.documents[t].doc===e)return t;return-1}},{key:"getDocOptions",value:function(e){var t=this.getDocIndex(e);return-1===t?null:this.documents[t].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),e}();function Zn(e,n){return e.isInitialized=!0,o.default.window(n)&&t.init(n),p.default.init(n),y.default.init(n),Me.default.init(n),e.window=n,e.document=n.document,e.usePlugin(Tn.default),e.usePlugin(pn.default),e}function Kn(e){return e&&e.replace(/\/.*$/,"")}zn.Scope=Gn;var Jn={};Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.default=void 0;var $n=new zn.Scope,ei=$n.interactStatic;Jn.default=ei;var ti="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0;$n.init(ti);var ni={};Object.defineProperty(ni,"__esModule",{value:!0}),ni.default=void 0,ni.default=function(){};var ii={};Object.defineProperty(ii,"__esModule",{value:!0}),ii.default=void 0,ii.default=function(){};var ri={};function oi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0;try{for(var A,a=e[Symbol.iterator]();!(i=(A=a.next()).done)&&(n.push(A.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{i||null==a.return||a.return()}finally{if(r)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ai(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ai(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ai(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}Object.defineProperty(ri,"__esModule",{value:!0}),ri.default=void 0,ri.default=function(e){var t=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter((function(t){var n=oi(t,2),i=n[0],r=n[1];return i in e||r in e})),n=function(n,i){for(var r=e.range,o=e.limits,A=void 0===o?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:o,a=e.offset,s=void 0===a?{x:0,y:0}:a,l={range:r,grid:e,x:null,y:null},c=0;c<t.length;c++){var u=oi(t[c],2),d=u[0],f=u[1],h=Math.round((n-s.x)/e[d]),p=Math.round((i-s.y)/e[f]);l[d]=Math.max(A.left,Math.min(A.right,h*e[d]+s.x)),l[f]=Math.max(A.top,Math.min(A.bottom,p*e[f]+s.y))}return l};return n.grid=e,n.coordFields=t,n};var ai={};Object.defineProperty(ai,"__esModule",{value:!0}),Object.defineProperty(ai,"edgeTarget",{enumerable:!0,get:function(){return ni.default}}),Object.defineProperty(ai,"elements",{enumerable:!0,get:function(){return ii.default}}),Object.defineProperty(ai,"grid",{enumerable:!0,get:function(){return ri.default}});var si={};Object.defineProperty(si,"__esModule",{value:!0}),si.default=void 0;var li={id:"snappers",install:function(e){var t=e.interactStatic;t.snappers=(0,D.default)(t.snappers||{},ai),t.createSnapGrid=t.snappers.grid}};si.default=li;var ci={};function ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function di(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ui(Object(n),!0).forEach((function(t){fi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ui(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(ci,"__esModule",{value:!0}),ci.aspectRatio=ci.default=void 0;var hi={start:function(e){var t=e.state,n=e.rect,i=e.edges,r=e.pageCoords,o=t.options.ratio,A=t.options,a=A.equalDelta,s=A.modifiers;"preserve"===o&&(o=n.width/n.height),t.startCoords=(0,D.default)({},r),t.startRect=(0,D.default)({},n),t.ratio=o,t.equalDelta=a;var l=t.linkedEdges={top:i.top||i.left&&!i.bottom,left:i.left||i.top&&!i.right,bottom:i.bottom||i.right&&!i.top,right:i.right||i.bottom&&!i.left};if(t.xIsPrimaryAxis=!(!i.left&&!i.right),t.equalDelta)t.edgeSign=(l.left?1:-1)*(l.top?1:-1);else{var c=t.xIsPrimaryAxis?l.top:l.left;t.edgeSign=c?-1:1}if((0,D.default)(e.edges,l),s&&s.length){var u=new ht.default(e.interaction);u.copyFrom(e.interaction.modification),u.prepareStates(s),t.subModification=u,u.startAll(di({},e))}},set:function(e){var t=e.state,n=e.rect,i=e.coords,r=(0,D.default)({},i),o=t.equalDelta?pi:gi;if(o(t,t.xIsPrimaryAxis,i,n),!t.subModification)return null;var A=(0,D.default)({},n);(0,P.addEdges)(t.linkedEdges,A,{x:i.x-r.x,y:i.y-r.y});var a=t.subModification.setAll(di(di({},e),{},{rect:A,edges:t.linkedEdges,pageCoords:i,prevCoords:i,prevRect:A})),s=a.delta;return a.changed&&(o(t,Math.abs(s.x)>Math.abs(s.y),a.coords,a.rect),(0,D.default)(i,a.coords)),a.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function pi(e,t,n){var i=e.startCoords,r=e.edgeSign;t?n.y=i.y+(n.x-i.x)*r:n.x=i.x+(n.y-i.y)*r}function gi(e,t,n,i){var r=e.startRect,o=e.startCoords,A=e.ratio,a=e.edgeSign;if(t){var s=i.width/A;n.y=o.y+(s-r.height)*a}else{var l=i.height*A;n.x=o.x+(l-r.width)*a}}ci.aspectRatio=hi;var mi=(0,xt.makeModifier)(hi,"aspectRatio");ci.default=mi;var vi={};Object.defineProperty(vi,"__esModule",{value:!0}),vi.default=void 0;var yi=function(){};yi._defaults={};var bi=yi;vi.default=bi;var xi={};Object.defineProperty(xi,"__esModule",{value:!0}),Object.defineProperty(xi,"default",{enumerable:!0,get:function(){return vi.default}});var wi={};function _i(e,t,n){return o.default.func(e)?P.resolveRectLike(e,t.interactable,t.element,[n.x,n.y,t]):P.resolveRectLike(e,t.interactable,t.element)}Object.defineProperty(wi,"__esModule",{value:!0}),wi.getRestrictionRect=_i,wi.restrict=wi.default=void 0;var ki={start:function(e){var t=e.rect,n=e.startOffset,i=e.state,r=e.interaction,o=e.pageCoords,A=i.options,a=A.elementRect,s=(0,D.default)({left:0,top:0,right:0,bottom:0},A.offset||{});if(t&&a){var l=_i(A.restriction,r,o);if(l){var c=l.right-l.left-t.width,u=l.bottom-l.top-t.height;c<0&&(s.left+=c,s.right+=c),u<0&&(s.top+=u,s.bottom+=u)}s.left+=n.left-t.width*a.left,s.top+=n.top-t.height*a.top,s.right+=n.right-t.width*(1-a.right),s.bottom+=n.bottom-t.height*(1-a.bottom)}i.offset=s},set:function(e){var t=e.coords,n=e.interaction,i=e.state,r=i.options,o=i.offset,A=_i(r.restriction,n,t);if(A){var a=P.xywhToTlbr(A);t.x=Math.max(Math.min(a.right-o.right,t.x),a.left+o.left),t.y=Math.max(Math.min(a.bottom-o.bottom,t.y),a.top+o.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}};wi.restrict=ki;var Si=(0,xt.makeModifier)(ki,"restrict");wi.default=Si;var Ti={};Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.restrictEdges=Ti.default=void 0;var Mi={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Ci={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Di(e,t){for(var n=["top","left","bottom","right"],i=0;i<n.length;i++){var r=n[i];r in e||(e[r]=t[r])}return e}var Pi={noInner:Mi,noOuter:Ci,start:function(e){var t,n=e.interaction,i=e.startOffset,r=e.state,o=r.options;if(o){var A=(0,wi.getRestrictionRect)(o.offset,n,n.coords.start.page);t=P.rectToXY(A)}t=t||{x:0,y:0},r.offset={top:t.y+i.top,left:t.x+i.left,bottom:t.y-i.bottom,right:t.x-i.right}},set:function(e){var t=e.coords,n=e.edges,i=e.interaction,r=e.state,o=r.offset,A=r.options;if(n){var a=(0,D.default)({},t),s=(0,wi.getRestrictionRect)(A.inner,i,a)||{},l=(0,wi.getRestrictionRect)(A.outer,i,a)||{};Di(s,Mi),Di(l,Ci),n.top?t.y=Math.min(Math.max(l.top+o.top,a.y),s.top+o.top):n.bottom&&(t.y=Math.max(Math.min(l.bottom+o.bottom,a.y),s.bottom+o.bottom)),n.left?t.x=Math.min(Math.max(l.left+o.left,a.x),s.left+o.left):n.right&&(t.x=Math.max(Math.min(l.right+o.right,a.x),s.right+o.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}};Ti.restrictEdges=Pi;var Ei=(0,xt.makeModifier)(Pi,"restrictEdges");Ti.default=Ei;var Oi={};Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.restrictRect=Oi.default=void 0;var Ii=(0,D.default)({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(e){}},wi.restrict.defaults),Ni={start:wi.restrict.start,set:wi.restrict.set,defaults:Ii};Oi.restrictRect=Ni;var Fi=(0,xt.makeModifier)(Ni,"restrictRect");Oi.default=Fi;var Li={};Object.defineProperty(Li,"__esModule",{value:!0}),Li.restrictSize=Li.default=void 0;var Ri={width:-1/0,height:-1/0},ji={width:1/0,height:1/0},zi={start:function(e){return Ti.restrictEdges.start(e)},set:function(e){var t=e.interaction,n=e.state,i=e.rect,r=e.edges,o=n.options;if(r){var A=P.tlbrToXywh((0,wi.getRestrictionRect)(o.min,t,e.coords))||Ri,a=P.tlbrToXywh((0,wi.getRestrictionRect)(o.max,t,e.coords))||ji;n.options={endOnly:o.endOnly,inner:(0,D.default)({},Ti.restrictEdges.noInner),outer:(0,D.default)({},Ti.restrictEdges.noOuter)},r.top?(n.options.inner.top=i.bottom-A.height,n.options.outer.top=i.bottom-a.height):r.bottom&&(n.options.inner.bottom=i.top+A.height,n.options.outer.bottom=i.top+a.height),r.left?(n.options.inner.left=i.right-A.width,n.options.outer.left=i.right-a.width):r.right&&(n.options.inner.right=i.left+A.width,n.options.outer.right=i.left+a.width),Ti.restrictEdges.set(e),n.options=o}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}};Li.restrictSize=zi;var Bi=(0,xt.makeModifier)(zi,"restrictSize");Li.default=Bi;var Wi={};Object.defineProperty(Wi,"__esModule",{value:!0}),Object.defineProperty(Wi,"default",{enumerable:!0,get:function(){return vi.default}});var Hi={};Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.snap=Hi.default=void 0;var Vi={start:function(e){var t,n=e.interaction,i=e.interactable,r=e.element,o=e.rect,A=e.state,a=e.startOffset,s=A.options,l=s.offsetWithOrigin?function(e){var t=e.interaction.element;return(0,P.rectToXY)((0,P.resolveRectLike)(e.state.options.origin,null,null,[t]))||(0,I.default)(e.interactable,t,e.interaction.prepared.name)}(e):{x:0,y:0};if("startCoords"===s.offset)t={x:n.coords.start.page.x,y:n.coords.start.page.y};else{var c=(0,P.resolveRectLike)(s.offset,i,r,[n]);(t=(0,P.rectToXY)(c)||{x:0,y:0}).x+=l.x,t.y+=l.y}var u=s.relativePoints;A.offsets=o&&u&&u.length?u.map((function(e,n){return{index:n,relativePoint:e,x:a.left-o.width*e.x+t.x,y:a.top-o.height*e.y+t.y}})):[{index:0,relativePoint:null,x:t.x,y:t.y}]},set:function(e){var t=e.interaction,n=e.coords,i=e.state,r=i.options,A=i.offsets,a=(0,I.default)(t.interactable,t.element,t.prepared.name),s=(0,D.default)({},n),l=[];r.offsetWithOrigin||(s.x-=a.x,s.y-=a.y);for(var c=0;c<A.length;c++)for(var u=A[c],d=s.x-u.x,f=s.y-u.y,h=0,p=r.targets.length;h<p;h++){var g,m=r.targets[h];(g=o.default.func(m)?m(d,f,t._proxy,u,h):m)&&l.push({x:(o.default.number(g.x)?g.x:d)+u.x,y:(o.default.number(g.y)?g.y:f)+u.y,range:o.default.number(g.range)?g.range:r.range,source:m,index:h,offset:u})}for(var v={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},y=0;y<l.length;y++){var b=l[y],x=b.range,w=b.x-s.x,_=b.y-s.y,k=(0,L.default)(w,_),S=k<=x;x===1/0&&v.inRange&&v.range!==1/0&&(S=!1),v.target&&!(S?v.inRange&&x!==1/0?k/x<v.distance/v.range:x===1/0&&v.range!==1/0||k<v.distance:!v.inRange&&k<v.distance)||(v.target=b,v.distance=k,v.range=x,v.inRange=S,v.delta.x=w,v.delta.y=_)}return v.inRange&&(n.x=v.target.x,n.y=v.target.y),i.closest=v,v},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}};Hi.snap=Vi;var Yi=(0,xt.makeModifier)(Vi,"snap");Hi.default=Yi;var qi={};function Ui(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}Object.defineProperty(qi,"__esModule",{value:!0}),qi.snapSize=qi.default=void 0;var Qi={start:function(e){var t=e.state,n=e.edges,i=t.options;if(!n)return null;e.state={options:{targets:null,relativePoints:[{x:n.left?0:1,y:n.top?0:1}],offset:i.offset||"self",origin:{x:0,y:0},range:i.range}},t.targetFields=t.targetFields||[["width","height"],["x","y"]],Hi.snap.start(e),t.offsets=e.state.offsets,e.state=t},set:function(e){var t,n=e.interaction,i=e.state,r=e.coords,A=i.options,a=i.offsets,s={x:r.x-a[0].x,y:r.y-a[0].y};i.options=(0,D.default)({},A),i.options.targets=[];for(var l=0;l<(A.targets||[]).length;l++){var c=(A.targets||[])[l],u=void 0;if(u=o.default.func(c)?c(s.x,s.y,n):c){for(var d=0;d<i.targetFields.length;d++){var f=function(e){if(Array.isArray(e))return e}(t=i.targetFields[d])||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0;try{for(var A,a=e[Symbol.iterator]();!(i=(A=a.next()).done)&&(n.push(A.value),2!==n.length);i=!0);}catch(e){r=!0,o=e}finally{try{i||null==a.return||a.return()}finally{if(r)throw o}}return n}}(t)||function(e,t){if(e){if("string"==typeof e)return Ui(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ui(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),h=f[0],p=f[1];if(h in u||p in u){u.x=u[h],u.y=u[p];break}}i.options.targets.push(u)}}var g=Hi.snap.set(e);return i.options=A,g},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}};qi.snapSize=Qi;var Xi=(0,xt.makeModifier)(Qi,"snapSize");qi.default=Xi;var Gi={};Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.snapEdges=Gi.default=void 0;var Zi={start:function(e){var t=e.edges;return t?(e.state.targetFields=e.state.targetFields||[[t.left?"left":"right",t.top?"top":"bottom"]],qi.snapSize.start(e)):null},set:qi.snapSize.set,defaults:(0,D.default)((0,ft.default)(qi.snapSize.defaults),{targets:null,range:null,offset:{x:0,y:0}})};Gi.snapEdges=Zi;var Ki=(0,xt.makeModifier)(Zi,"snapEdges");Gi.default=Ki;var Ji={};Object.defineProperty(Ji,"__esModule",{value:!0}),Object.defineProperty(Ji,"default",{enumerable:!0,get:function(){return vi.default}});var $i={};Object.defineProperty($i,"__esModule",{value:!0}),Object.defineProperty($i,"default",{enumerable:!0,get:function(){return vi.default}});var er={};Object.defineProperty(er,"__esModule",{value:!0}),er.default=void 0;var tr={aspectRatio:ci.default,restrictEdges:Ti.default,restrict:wi.default,restrictRect:Oi.default,restrictSize:Li.default,snapEdges:Gi.default,snap:Hi.default,snapSize:qi.default,spring:Ji.default,avoid:xi.default,transform:$i.default,rubberband:Wi.default};er.default=tr;var nr={};Object.defineProperty(nr,"__esModule",{value:!0}),nr.default=void 0;var ir={id:"modifiers",install:function(e){var t=e.interactStatic;for(var n in e.usePlugin(xt.default),e.usePlugin(si.default),t.modifiers=er.default,er.default){var i=er.default[n],r=i._defaults,o=i._methods;r._methods=o,e.defaults.perAction[n]=r}}};nr.default=ir;var rr={};function or(e){return(or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ar(e,t){return(Ar=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ar(e,t){return!t||"object"!==or(t)&&"function"!=typeof t?sr(e):t}function sr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lr(e){return(lr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function cr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(rr,"__esModule",{value:!0}),rr.PointerEvent=rr.default=void 0;var ur=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ar(e,t)}(o,e);var t,n,i,r=(n=o,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=lr(n);if(i){var r=lr(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return ar(this,e)});function o(e,t,n,i,A,a){var s;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),cr(sr(s=r.call(this,A)),"type",void 0),cr(sr(s),"originalEvent",void 0),cr(sr(s),"pointerId",void 0),cr(sr(s),"pointerType",void 0),cr(sr(s),"double",void 0),cr(sr(s),"pageX",void 0),cr(sr(s),"pageY",void 0),cr(sr(s),"clientX",void 0),cr(sr(s),"clientY",void 0),cr(sr(s),"dt",void 0),cr(sr(s),"eventable",void 0),B.pointerExtend(sr(s),n),n!==t&&B.pointerExtend(sr(s),t),s.timeStamp=a,s.originalEvent=n,s.type=e,s.pointerId=B.getPointerId(t),s.pointerType=B.getPointerType(t),s.target=i,s.currentTarget=null,"tap"===e){var l=A.getPointerIndex(t);s.dt=s.timeStamp-A.pointers[l].downTime;var c=s.timeStamp-A.tapTime;s.double=!!(A.prevTap&&"doubletap"!==A.prevTap.type&&A.prevTap.target===s.target&&c<500)}else"doubletap"===e&&(s.dt=t.timeStamp-A.tapTime);return s}return(t=[{key:"_subtractOrigin",value:function(e){var t=e.x,n=e.y;return this.pageX-=t,this.pageY-=n,this.clientX-=t,this.clientY-=n,this}},{key:"_addOrigin",value:function(e){var t=e.x,n=e.y;return this.pageX+=t,this.pageY+=n,this.clientX+=t,this.clientY+=n,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(o.prototype,t),o}(Q.BaseEvent);rr.PointerEvent=rr.default=ur;var dr={};Object.defineProperty(dr,"__esModule",{value:!0}),dr.default=void 0;var fr={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(e){e.pointerEvents=fr,e.defaults.actions.pointerEvents=fr.defaults,(0,D.default)(e.actions.phaselessTypes,fr.types)},listeners:{"interactions:new":function(e){var t=e.interaction;t.prevTap=null,t.tapTime=0},"interactions:update-pointer":function(e){var t=e.down,n=e.pointerInfo;!t&&n.hold||(n.hold={duration:1/0,timeout:null})},"interactions:move":function(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget;e.duplicate||n.pointerIsDown&&!n.pointerWasMoved||(n.pointerIsDown&&gr(e),hr({interaction:n,pointer:i,event:r,eventTarget:o,type:"move"},t))},"interactions:down":function(e,t){!function(e,t){for(var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget,A=e.pointerIndex,a=n.pointers[A].hold,s=w.getPath(o),l={interaction:n,pointer:i,event:r,eventTarget:o,type:"hold",targets:[],path:s,node:null},c=0;c<s.length;c++){var u=s[c];l.node=u,t.fire("pointerEvents:collect-targets",l)}if(l.targets.length){for(var d=1/0,f=0;f<l.targets.length;f++){var h=l.targets[f].eventable.options.holdDuration;h<d&&(d=h)}a.duration=d,a.timeout=setTimeout((function(){hr({interaction:n,eventTarget:o,pointer:i,event:r,type:"hold"},t)}),d)}}(e,t),hr(e,t)},"interactions:up":function(e,t){gr(e),hr(e,t),function(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget;n.pointerWasMoved||hr({interaction:n,eventTarget:o,pointer:i,event:r,type:"tap"},t)}(e,t)},"interactions:cancel":function(e,t){gr(e),hr(e,t)}},PointerEvent:rr.PointerEvent,fire:hr,collectEventTargets:pr,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function hr(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget,A=e.type,a=e.targets,s=void 0===a?pr(e,t):a,l=new rr.PointerEvent(A,i,r,o,n,t.now());t.fire("pointerEvents:new",{pointerEvent:l});for(var c={interaction:n,pointer:i,event:r,eventTarget:o,targets:s,type:A,pointerEvent:l},u=0;u<s.length;u++){var d=s[u];for(var f in d.props||{})l[f]=d.props[f];var h=(0,I.default)(d.eventable,d.node);if(l._subtractOrigin(h),l.eventable=d.eventable,l.currentTarget=d.node,d.eventable.fire(l),l._addOrigin(h),l.immediatePropagationStopped||l.propagationStopped&&u+1<s.length&&s[u+1].node!==l.currentTarget)break}if(t.fire("pointerEvents:fired",c),"tap"===A){var p=l.double?hr({interaction:n,pointer:i,event:r,eventTarget:o,type:"doubletap"},t):l;n.prevTap=p,n.tapTime=p.timeStamp}return l}function pr(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget,A=e.type,a=n.getPointerIndex(i),s=n.pointers[a];if("tap"===A&&(n.pointerWasMoved||!s||s.downTarget!==o))return[];for(var l=w.getPath(o),c={interaction:n,pointer:i,event:r,eventTarget:o,type:A,path:l,targets:[],node:null},u=0;u<l.length;u++){var d=l[u];c.node=d,t.fire("pointerEvents:collect-targets",c)}return"hold"===A&&(c.targets=c.targets.filter((function(e){var t;return e.eventable.options.holdDuration===(null==(t=n.pointers[a])?void 0:t.hold.duration)}))),c.targets}function gr(e){var t=e.interaction,n=e.pointerIndex,i=t.pointers[n].hold;i&&i.timeout&&(clearTimeout(i.timeout),i.timeout=null)}var mr=fr;dr.default=mr;var vr={};function yr(e){var t=e.interaction;t.holdIntervalHandle&&(clearInterval(t.holdIntervalHandle),t.holdIntervalHandle=null)}Object.defineProperty(vr,"__esModule",{value:!0}),vr.default=void 0;var br={id:"pointer-events/holdRepeat",install:function(e){e.usePlugin(dr.default);var t=e.pointerEvents;t.defaults.holdRepeatInterval=0,t.types.holdrepeat=e.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce((function(e,t){return e["pointerEvents:".concat(t)]=yr,e}),{"pointerEvents:new":function(e){var t=e.pointerEvent;"hold"===t.type&&(t.count=(t.count||0)+1)},"pointerEvents:fired":function(e,t){var n=e.interaction,i=e.pointerEvent,r=e.eventTarget,o=e.targets;if("hold"===i.type&&o.length){var A=o[0].eventable.options.holdRepeatInterval;A<=0||(n.holdIntervalHandle=setTimeout((function(){t.pointerEvents.fire({interaction:n,eventTarget:r,type:"hold",pointer:i,event:i},t)}),A))}}})};vr.default=br;var xr={};function wr(e){return(0,D.default)(this.events.options,e),this}Object.defineProperty(xr,"__esModule",{value:!0}),xr.default=void 0;var _r={id:"pointer-events/interactableTargets",install:function(e){var t=e.Interactable;t.prototype.pointerEvents=wr;var n=t.prototype._backCompatOption;t.prototype._backCompatOption=function(e,t){var i=n.call(this,e,t);return i===this&&(this.events.options[e]=t),i}},listeners:{"pointerEvents:collect-targets":function(e,t){var n=e.targets,i=e.node,r=e.type,o=e.eventTarget;t.interactables.forEachMatch(i,(function(e){var t=e.events,A=t.options;t.types[r]&&t.types[r].length&&e.testIgnoreAllow(A,i,o)&&n.push({node:i,eventable:t,props:{interactable:e}})}))},"interactable:new":function(e){var t=e.interactable;t.events.getRect=function(e){return t.getRect(e)}},"interactable:set":function(e,t){var n=e.interactable,i=e.options;(0,D.default)(n.events.options,t.pointerEvents.defaults),(0,D.default)(n.events.options,i.pointerEvents||{})}}};xr.default=_r;var kr={};Object.defineProperty(kr,"__esModule",{value:!0}),kr.default=void 0;var Sr={id:"pointer-events",install:function(e){e.usePlugin(dr),e.usePlugin(vr.default),e.usePlugin(xr.default)}};kr.default=Sr;var Tr={};function Mr(e){var t=e.Interactable;e.actions.phases.reflow=!0,t.prototype.reflow=function(t){return function(e,t,n){for(var i=o.default.string(e.target)?Z.from(e._context.querySelectorAll(e.target)):[e.target],r=n.window.Promise,A=r?[]:null,a=function(){var o=i[s],a=e.getRect(o);if(!a)return"break";var l=Z.find(n.interactions.list,(function(n){return n.interacting()&&n.interactable===e&&n.element===o&&n.prepared.name===t.name})),c=void 0;if(l)l.move(),A&&(c=l._reflowPromise||new r((function(e){l._reflowResolve=e})));else{var u=(0,P.tlbrToXywh)(a),d={page:{x:u.x,y:u.y},client:{x:u.x,y:u.y},timeStamp:n.now()},f=B.coordsToEvent(d);c=function(e,t,n,i,r){var o=e.interactions.new({pointerType:"reflow"}),A={interaction:o,event:r,pointer:r,eventTarget:n,phase:"reflow"};o.interactable=t,o.element=n,o.prevEvent=r,o.updatePointer(r,r,n,!0),B.setZeroCoords(o.coords.delta),(0,Re.copyAction)(o.prepared,i),o._doPhase(A);var a=e.window.Promise,s=a?new a((function(e){o._reflowResolve=e})):void 0;return o._reflowPromise=s,o.start(i,t,n),o._interacting?(o.move(A),o.end(r)):(o.stop(),o._reflowResolve()),o.removePointer(r,r),s}(n,e,o,t,f)}A&&A.push(c)},s=0;s<i.length&&"break"!==a();s++);return A&&r.all(A).then((function(){return e}))}(this,t,e)}}Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.install=Mr,Tr.default=void 0;var Cr={id:"reflow",install:Mr,listeners:{"interactions:stop":function(e,t){var n=e.interaction;"reflow"===n.pointerType&&(n._reflowResolve&&n._reflowResolve(),Z.remove(t.interactions.list,n))}}};Tr.default=Cr;var Dr={exports:{}};function Pr(e){return(Pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(Dr.exports,"__esModule",{value:!0}),Dr.exports.default=void 0,Jn.default.use(ot.default),Jn.default.use(Ht.default),Jn.default.use(kr.default),Jn.default.use(Gt.default),Jn.default.use(nr.default),Jn.default.use(it.default),Jn.default.use(Se.default),Jn.default.use(Oe.default),Jn.default.use(Tr.default);var Er=Jn.default;if(Dr.exports.default=Er,"object"===Pr(Dr)&&Dr)try{Dr.exports=Jn.default}catch(e){}Jn.default.default=Jn.default,Dr=Dr.exports;var Or={exports:{}};function Ir(e){return(Ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(Or.exports,"__esModule",{value:!0}),Or.exports.default=void 0;var Nr=Dr.default;if(Or.exports.default=Nr,"object"===Ir(Or)&&Or)try{Or.exports=Dr.default}catch(e){}return Dr.default.default=Dr.default,Or.exports}()},function(e,t,n){"use strict";var i;function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(o){var A,a,s,l=arguments,c=(A=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,a=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,s=/[^-+\dA-Z]/g,function(e,t,n,i){if(1!==l.length||"string"!==p(e)||/\d/.test(e)||(t=e,e=void 0),(e=e||0===e?e:new Date)instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");var r=(t=String(c.masks[t]||t||c.masks.default)).slice(0,4);"UTC:"!==r&&"GMT:"!==r||(t=t.slice(4),n=!0,"GMT:"===r&&(i=!0));var o=function(){return n?"getUTC":"get"},g=function(){return e[o()+"Date"]()},m=function(){return e[o()+"Day"]()},v=function(){return e[o()+"Month"]()},y=function(){return e[o()+"FullYear"]()},b=function(){return e[o()+"Hours"]()},x=function(){return e[o()+"Minutes"]()},w=function(){return e[o()+"Seconds"]()},_=function(){return e[o()+"Milliseconds"]()},k=function(){return n?0:e.getTimezoneOffset()},S=function(){return f(e)},T={d:function(){return g()},dd:function(){return u(g())},ddd:function(){return c.i18n.dayNames[m()]},DDD:function(){return d({y:y(),m:v(),d:g(),_:o(),dayName:c.i18n.dayNames[m()],short:!0})},dddd:function(){return c.i18n.dayNames[m()+7]},DDDD:function(){return d({y:y(),m:v(),d:g(),_:o(),dayName:c.i18n.dayNames[m()+7]})},m:function(){return v()+1},mm:function(){return u(v()+1)},mmm:function(){return c.i18n.monthNames[v()]},mmmm:function(){return c.i18n.monthNames[v()+12]},yy:function(){return String(y()).slice(2)},yyyy:function(){return u(y(),4)},h:function(){return b()%12||12},hh:function(){return u(b()%12||12)},H:function(){return b()},HH:function(){return u(b())},M:function(){return x()},MM:function(){return u(x())},s:function(){return w()},ss:function(){return u(w())},l:function(){return u(_(),3)},L:function(){return u(Math.floor(_()/10))},t:function(){return b()<12?c.i18n.timeNames[0]:c.i18n.timeNames[1]},tt:function(){return b()<12?c.i18n.timeNames[2]:c.i18n.timeNames[3]},T:function(){return b()<12?c.i18n.timeNames[4]:c.i18n.timeNames[5]},TT:function(){return b()<12?c.i18n.timeNames[6]:c.i18n.timeNames[7]},Z:function(){return i?"GMT":n?"UTC":(String(e).match(a)||[""]).pop().replace(s,"").replace(/GMT\+0000/g,"UTC")},o:function(){return(k()>0?"-":"+")+u(100*Math.floor(Math.abs(k())/60)+Math.abs(k())%60,4)},p:function(){return(k()>0?"-":"+")+u(Math.floor(Math.abs(k())/60),2)+":"+u(Math.floor(Math.abs(k())%60),2)},S:function(){return["th","st","nd","rd"][g()%10>3?0:(g()%100-g()%10!=10)*g()%10]},W:function(){return S()},WW:function(){return u(S())},N:function(){return h(e)}};return t.replace(A,(function(e){return e in T?T[e]():e.slice(1,e.length-1)}))});c.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},c.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var u=function(e,t){for(e=String(e),t=t||2;e.length<t;)e="0"+e;return e},d=function(e){var t=e.y,n=e.m,i=e.d,r=e._,o=e.dayName,A=e.short,a=void 0!==A&&A,s=new Date,l=new Date;l.setDate(l[r+"Date"]()-1);var c=new Date;c.setDate(c[r+"Date"]()+1);return s[r+"FullYear"]()===t&&s[r+"Month"]()===n&&s[r+"Date"]()===i?a?"Tdy":"Today":l[r+"FullYear"]()===t&&l[r+"Month"]()===n&&l[r+"Date"]()===i?a?"Ysd":"Yesterday":c[r+"FullYear"]()===t&&c[r+"Month"]()===n&&c[r+"Date"]()===i?a?"Tmw":"Tomorrow":o},f=function(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);var n=new Date(t.getFullYear(),0,4);n.setDate(n.getDate()-(n.getDay()+6)%7+3);var i=t.getTimezoneOffset()-n.getTimezoneOffset();t.setHours(t.getHours()-i);var r=(t-n)/6048e5;return 1+Math.floor(r)},h=function(e){var t=e.getDay();return 0===t&&(t=7),t},p=function(e){return null===e?"null":void 0===e?"undefined":"object"!==r(e)?r(e):Array.isArray(e)?"array":{}.toString.call(e).slice(8,-1).toLowerCase()};void 0===(i=function(){return c}.call(t,n,t,e))||(e.exports=i)}(void 0)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){
/*!
  * Bootstrap tooltip.js v4.6.1 (https://getbootstrap.com/)
  * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
  */
e.exports=function(e,t,n){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=i(e),o=i(t),A=i(n);function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var l=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],c={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},u=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,d=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function f(e,t,n){if(0===e.length)return e;if(n&&"function"==typeof n)return n(e);for(var i=(new window.DOMParser).parseFromString(e,"text/html"),r=Object.keys(t),o=[].slice.call(i.body.querySelectorAll("*")),A=function(e,n){var i=o[e],A=i.nodeName.toLowerCase();if(-1===r.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";var a=[].slice.call(i.attributes),s=[].concat(t["*"]||[],t[A]||[]);a.forEach((function(e){(function(e,t){var n=e.nodeName.toLowerCase();if(-1!==t.indexOf(n))return-1===l.indexOf(n)||Boolean(u.test(e.nodeValue)||d.test(e.nodeValue));for(var i=t.filter((function(e){return e instanceof RegExp})),r=0,o=i.length;r<o;r++)if(i[r].test(n))return!0;return!1})(e,s)||i.removeAttribute(e.nodeName)}))},a=0,s=o.length;a<s;a++)A(a);return i.body.innerHTML}var h="tooltip",p=".bs.tooltip",g=r.default.fn[h],m=new RegExp("(^|\\s)bs-tooltip\\S+","g"),v=["sanitize","whiteList","sanitizeFn"],y={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},b={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:c,popperConfig:null},x={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},w={HIDE:"hide"+p,HIDDEN:"hidden"+p,SHOW:"show"+p,SHOWN:"shown"+p,INSERTED:"inserted"+p,CLICK:"click"+p,FOCUSIN:"focusin"+p,FOCUSOUT:"focusout"+p,MOUSEENTER:"mouseenter"+p,MOUSELEAVE:"mouseleave"+p},_=function(){function e(e,t){if(void 0===o.default)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var t,n,i,l=e.prototype;return l.enable=function(){this._isEnabled=!0},l.disable=function(){this._isEnabled=!1},l.toggleEnabled=function(){this._isEnabled=!this._isEnabled},l.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=r.default(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),r.default(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(r.default(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},l.dispose=function(){clearTimeout(this._timeout),r.default.removeData(this.element,this.constructor.DATA_KEY),r.default(this.element).off(this.constructor.EVENT_KEY),r.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&r.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},l.show=function(){var e=this;if("none"===r.default(this.element).css("display"))throw new Error("Please use show on visible elements");var t=r.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){r.default(this.element).trigger(t);var n=A.default.findShadowRoot(this.element),i=r.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!i)return;var a=this.getTipElement(),s=A.default.getUID(this.constructor.NAME);a.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&r.default(a).addClass("fade");var l="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,c=this._getAttachment(l);this.addAttachmentClass(c);var u=this._getContainer();r.default(a).data(this.constructor.DATA_KEY,this),r.default.contains(this.element.ownerDocument.documentElement,this.tip)||r.default(a).appendTo(u),r.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new o.default(this.element,a,this._getPopperConfig(c)),r.default(a).addClass("show"),r.default(a).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&r.default(document.body).children().on("mouseover",null,r.default.noop);var d=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,r.default(e.element).trigger(e.constructor.Event.SHOWN),"out"===t&&e._leave(null,e)};if(r.default(this.tip).hasClass("fade")){var f=A.default.getTransitionDurationFromElement(this.tip);r.default(this.tip).one(A.default.TRANSITION_END,d).emulateTransitionEnd(f)}else d()}},l.hide=function(e){var t=this,n=this.getTipElement(),i=r.default.Event(this.constructor.Event.HIDE),o=function(){"show"!==t._hoverState&&n.parentNode&&n.parentNode.removeChild(n),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),r.default(t.element).trigger(t.constructor.Event.HIDDEN),null!==t._popper&&t._popper.destroy(),e&&e()};if(r.default(this.element).trigger(i),!i.isDefaultPrevented()){if(r.default(n).removeClass("show"),"ontouchstart"in document.documentElement&&r.default(document.body).children().off("mouseover",null,r.default.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,r.default(this.tip).hasClass("fade")){var a=A.default.getTransitionDurationFromElement(n);r.default(n).one(A.default.TRANSITION_END,o).emulateTransitionEnd(a)}else o();this._hoverState=""}},l.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},l.isWithContent=function(){return Boolean(this.getTitle())},l.addAttachmentClass=function(e){r.default(this.getTipElement()).addClass("bs-tooltip-"+e)},l.getTipElement=function(){return this.tip=this.tip||r.default(this.config.template)[0],this.tip},l.setContent=function(){var e=this.getTipElement();this.setElementContent(r.default(e.querySelectorAll(".tooltip-inner")),this.getTitle()),r.default(e).removeClass("fade show")},l.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=f(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?r.default(t).parent().is(e)||e.empty().append(t):e.text(r.default(t).text())},l.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},l._getPopperConfig=function(e){var t=this;return s({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},this.config.popperConfig)},l._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=s({},t.offsets,e.config.offset(t.offsets,e.element)),t}:t.offset=this.config.offset,t},l._getContainer=function(){return!1===this.config.container?document.body:A.default.isElement(this.config.container)?r.default(this.config.container):r.default(document).find(this.config.container)},l._getAttachment=function(e){return y[e.toUpperCase()]},l._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach((function(t){if("click"===t)r.default(e.element).on(e.constructor.Event.CLICK,e.config.selector,(function(t){return e.toggle(t)}));else if("manual"!==t){var n="hover"===t?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,i="hover"===t?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;r.default(e.element).on(n,e.config.selector,(function(t){return e._enter(t)})).on(i,e.config.selector,(function(t){return e._leave(t)}))}})),this._hideModalHandler=function(){e.element&&e.hide()},r.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=s({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},l._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},l._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||r.default(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),r.default(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?"focus":"hover"]=!0),r.default(t.getTipElement()).hasClass("show")||"show"===t._hoverState?t._hoverState="show":(clearTimeout(t._timeout),t._hoverState="show",t.config.delay&&t.config.delay.show?t._timeout=setTimeout((function(){"show"===t._hoverState&&t.show()}),t.config.delay.show):t.show())},l._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||r.default(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),r.default(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?"focus":"hover"]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState="out",t.config.delay&&t.config.delay.hide?t._timeout=setTimeout((function(){"out"===t._hoverState&&t.hide()}),t.config.delay.hide):t.hide())},l._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},l._getConfig=function(e){var t=r.default(this.element).data();return Object.keys(t).forEach((function(e){-1!==v.indexOf(e)&&delete t[e]})),"number"==typeof(e=s({},this.constructor.Default,t,"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),A.default.typeCheckConfig(h,e,this.constructor.DefaultType),e.sanitize&&(e.template=f(e.template,e.whiteList,e.sanitizeFn)),e},l._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},l._cleanTipClass=function(){var e=r.default(this.getTipElement()),t=e.attr("class").match(m);null!==t&&t.length&&e.removeClass(t.join(""))},l._handlePopperPlacementChange=function(e){this.tip=e.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},l._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(r.default(e).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},e._jQueryInterface=function(t){return this.each((function(){var n=r.default(this),i=n.data("bs.tooltip"),o="object"==typeof t&&t;if((i||!/dispose|hide/.test(t))&&(i||(i=new e(this,o),n.data("bs.tooltip",i)),"string"==typeof t)){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t]()}}))},t=e,i=[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return b}},{key:"NAME",get:function(){return h}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return w}},{key:"EVENT_KEY",get:function(){return p}},{key:"DefaultType",get:function(){return x}}],(n=null)&&a(t.prototype,n),i&&a(t,i),e}();return r.default.fn[h]=_._jQueryInterface,r.default.fn[h].Constructor=_,r.default.fn[h].noConflict=function(){return r.default.fn[h]=g,_._jQueryInterface},_}(n(0),n(11),n(13))},function(e,t,n){"use strict";n.r(t),function(e){for(
/**!
 * @fileOverview Kickass library to create and place poppers near their reference elements.
 * @version 1.15.0
 * @license
 * Copyright (c) 2016 Federico Zivolo and contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,i=["Edge","Trident","Firefox"],r=0,o=0;o<i.length;o+=1)if(n&&navigator.userAgent.indexOf(i[o])>=0){r=1;break}var A=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function a(e){return e&&"[object Function]"==={}.toString.call(e)}function s(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function l(e){return"HTML"===e.nodeName||"html"===e.nodeName?e:e.parentNode||e.host}function c(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"html":case"BODY":case"body":return e.ownerDocument.body;case"#document":return e.body}var t=s(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+i)?e:c(l(e))}function u(e){return e&&e.referenceNode?e.referenceNode:e}var d=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function h(e){return 11===e?d:10===e?f:d||f}function p(e){if(!e)return document.documentElement;for(var t=h(10)?e.ownerDocument.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName.toUpperCase();return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(i)&&"static"===s(n,"position")?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function g(e){return null!==e.parentNode?g(e.parentNode):e}function m(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,r=n?t:e,o=e.ownerDocument.createRange();o.setStart(i,0),o.setEnd(r,0);var A,a,s=o.commonAncestorContainer;if(e!==s&&t!==s||i.contains(r))return"BODY"===(a=(A=s).nodeName)||"body"===a||"HTML"===a||"html"===a||p(A.firstElementChild)===A?s:p(s);var l=g(e);return l.host?m(l.host,t):m(e,g(t).host)}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"===i||"body"===i||"HTML"===i||"html"===i){var r=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||r;return o[n]}return e[n]}function y(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=v(t,"top"),r=v(t,"left"),o=n?-1:1;return e.top+=i*o,e.bottom+=i*o,e.left+=r*o,e.right+=r*o,e}function b(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+i+"Width"],10)}function x(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],h(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function w(e){var t=e.body,n=e.documentElement,i=h(10)&&getComputedStyle(n);return{height:x("Height",t,n,i),width:x("Width",t,n,i)}}var _=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},k=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),S=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function M(e){return T({},e,{right:e.left+e.width,bottom:e.top+e.height})}function C(e){var t={};try{if(h(10)){t=e.getBoundingClientRect();var n=v(e,"top"),i=v(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}else t=e.getBoundingClientRect()}catch(e){}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName||"html"===e.nodeName?w(e.ownerDocument):{},A=o.width||e.clientWidth||r.width,a=o.height||e.clientHeight||r.height,l=e.offsetWidth-A,c=e.offsetHeight-a;if(l||c){var u=s(e);"inline"!==u.display&&(l-=b(u,"x"),c-=b(u,"y"),r.width-=l,r.height-=c)}return M(r)}function D(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=h(10),r="HTML"===t.nodeName||"html"===t.nodeName,o=C(e),A=C(t),a=c(e),l=s(t),u=parseFloat(l.borderTopWidth,10),d=parseFloat(l.borderLeftWidth,10);n&&r&&(A.top=Math.max(A.top,0),A.left=Math.max(A.left,0));var f=M({top:o.top-A.top-u,left:o.left-A.left-d,width:o.width,height:o.height});if(f.marginTop=0,f.marginLeft=0,!i&&r){var p=parseFloat(l.marginTop,10),g=parseFloat(l.marginLeft,10);f.top-=u-p,f.bottom-=u-p,f.left-=d-g,f.right-=d-g,f.marginTop=p,f.marginLeft=g}return(i&&!n?t.contains(a):t===a&&"BODY"!==a.nodeName&&"body"!==a.nodeName)&&(f=y(f,t)),f}function P(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,i=D(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),A=t?0:v(n),a=t?0:v(n,"left"),s={top:A-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:r,height:o};return M(s)}function E(e){var t=e.nodeName;if("BODY"===t||"body"===t||"HTML"===t||"html"===t)return!1;if("fixed"===s(e,"position"))return!0;var n=l(e);return!!n&&E(n)}function O(e){if(!e||!e.parentElement||h())return document.documentElement;for(var t=e.parentElement;t&&"none"===s(t,"transform");)t=t.parentElement;return t||e.ownerDocument.documentElement}function I(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},A=r?O(e):m(e,u(t));if("viewport"===i)o=P(A,r);else{var a=void 0;"scrollParent"===i?"BODY"!==(a=c(l(t))).nodeName&&"body"!==a.nodeName||(a=e.ownerDocument.documentElement):a="window"===i?e.ownerDocument.documentElement:i;var s=D(a,A,r);if("HTML"!==a.nodeName&&"html"!==a.nodeName||E(A))o=s;else{var d=w(e.ownerDocument),f=d.height,h=d.width;o.top+=s.top-s.marginTop,o.bottom=f+s.top,o.left+=s.left-s.marginLeft,o.right=h+s.left}}var p="number"==typeof(n=n||0);return o.left+=p?n:n.left||0,o.top+=p?n:n.top||0,o.right-=p?n:n.right||0,o.bottom-=p?n:n.bottom||0,o}function N(e){return e.width*e.height}function F(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var A=I(n,i,o,r),a={top:{width:A.width,height:t.top-A.top},right:{width:A.right-t.right,height:A.height},bottom:{width:A.width,height:A.bottom-t.bottom},left:{width:t.left-A.left,height:A.height}},s=Object.keys(a).map((function(e){return T({key:e},a[e],{area:N(a[e])})})).sort((function(e,t){return t.area-e.area})),l=s.filter((function(e){var t=e.width,i=e.height;return t>=n.clientWidth&&i>=n.clientHeight})),c=l.length>0?l[0].key:s[0].key,u=e.split("-")[1];return c+(u?"-"+u:"")}function L(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=i?O(t):m(t,u(n));return D(n,r,i)}function R(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function j(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function z(e,t,n){n=n.split("-")[0];var i=R(e),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),A=o?"top":"left",a=o?"left":"top",s=o?"height":"width",l=o?"width":"height";return r[A]=t[A]+t[s]/2-i[s]/2,r[a]=n===a?t[a]-i[l]:t[j(a)],r}function B(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function W(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var i=B(e,(function(e){return e[t]===n}));return e.indexOf(i)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&a(n)&&(t.offsets.popper=M(t.offsets.popper),t.offsets.reference=M(t.offsets.reference),t=n(t,e))})),t}function H(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=L(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=F(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=z(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=W(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function V(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function Y(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var r=t[i],o=r?""+r+n:e;if(void 0!==document.body.style[o])return o}return null}function q(){return this.state.isDestroyed=!0,V(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Y("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function U(e){var t=e.ownerDocument;return t?t.defaultView:window}function Q(e,t,n,i){n.updateBound=i,U(e).addEventListener("resize",n.updateBound,{passive:!0});var r=c(e);return function e(t,n,i,r){var o="BODY"===t.nodeName||"body"===t.nodeName,A=o?t.ownerDocument.defaultView:t;A.addEventListener(n,i,{passive:!0}),o||e(c(A.parentNode),n,i,r),r.push(A)}(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function X(){this.state.eventsEnabled||(this.state=Q(this.reference,this.options,this.state,this.scheduleUpdate))}function G(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,U(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function Z(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function K(e,t){Object.keys(t).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Z(t[n])&&(i="px"),e.style[n]=t[n]+i}))}var J=n&&/Firefox/i.test(navigator.userAgent);function $(e,t,n){var i=B(e,(function(e){return e.name===t})),r=!!i&&e.some((function(e){return e.name===n&&e.enabled&&e.order<i.order}));if(!r){var o="`"+t+"`",A="`"+n+"`";console.warn(A+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}var ee=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],te=ee.slice(3);function ne(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=te.indexOf(e),i=te.slice(n+1).concat(te.slice(0,n));return t?i.reverse():i}var ie="flip",re="clockwise",oe="counterclockwise";function Ae(e,t,n,i){var r=[0,0],o=-1!==["right","left"].indexOf(i),A=e.split(/(\+|\-)/).map((function(e){return e.trim()})),a=A.indexOf(B(A,(function(e){return-1!==e.search(/,|\s/)})));A[a]&&-1===A[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,l=-1!==a?[A.slice(0,a).concat([A[a].split(s)[0]]),[A[a].split(s)[1]].concat(A.slice(a+1))]:[A];return(l=l.map((function(e,i){var r=(1===i?!o:o)?"height":"width",A=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,A=!0,e):A?(e[e.length-1]+=t,A=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],A=r[2];if(!o)return e;if(0===A.indexOf("%")){var a=void 0;switch(A){case"%p":a=n;break;case"%":case"%r":default:a=i}return M(a)[t]/100*o}if("vh"===A||"vw"===A){return("vh"===A?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}(e,r,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,i){Z(n)&&(r[t]+=n*("-"===e[i-1]?-1:1))}))})),r}var ae={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets,o=r.reference,A=r.popper,a=-1!==["bottom","top"].indexOf(n),s=a?"left":"top",l=a?"width":"height",c={start:S({},s,o[s]),end:S({},s,o[s]+o[l]-A[l])};e.offsets.popper=T({},A,c[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,i=e.placement,r=e.offsets,o=r.popper,A=r.reference,a=i.split("-")[0],s=void 0;return s=Z(+n)?[+n,0]:Ae(n,o,A,a),"left"===a?(o.top+=s[0],o.left-=s[1]):"right"===a?(o.top+=s[0],o.left+=s[1]):"top"===a?(o.left+=s[0],o.top-=s[1]):"bottom"===a&&(o.left+=s[0],o.top+=s[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||p(e.instance.popper);e.instance.reference===n&&(n=p(n));var i=Y("transform"),r=e.instance.popper.style,o=r.top,A=r.left,a=r[i];r.top="",r.left="",r[i]="";var s=I(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=o,r.left=A,r[i]=a,t.boundaries=s;var l=t.priority,c=e.offsets.popper,u={primary:function(e){var n=c[e];return c[e]<s[e]&&!t.escapeWithReference&&(n=Math.max(c[e],s[e])),S({},e,n)},secondary:function(e){var n="right"===e?"left":"top",i=c[n];return c[e]>s[e]&&!t.escapeWithReference&&(i=Math.min(c[n],s[e]-("right"===e?c.width:c.height))),S({},n,i)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=T({},c,u[t](e))})),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,r=e.placement.split("-")[0],o=Math.floor,A=-1!==["top","bottom"].indexOf(r),a=A?"right":"bottom",s=A?"left":"top",l=A?"width":"height";return n[a]<o(i[s])&&(e.offsets.popper[s]=o(i[s])-n[l]),n[s]>o(i[a])&&(e.offsets.popper[s]=o(i[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!$(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],o=e.offsets,A=o.popper,a=o.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),f=l?"left":"top",h=l?"bottom":"right",p=R(i)[c];a[h]-p<A[d]&&(e.offsets.popper[d]-=A[d]-(a[h]-p)),a[d]+p>A[h]&&(e.offsets.popper[d]+=a[d]+p-A[h]),e.offsets.popper=M(e.offsets.popper);var g=a[d]+a[c]/2-p/2,m=s(e.instance.popper),v=parseFloat(m["margin"+u],10),y=parseFloat(m["border"+u+"Width"],10),b=g-e.offsets.popper[d]-v-y;return b=Math.max(Math.min(A[c]-p,b),0),e.arrowElement=i,e.offsets.arrow=(S(n={},d,Math.round(b)),S(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(V(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=I(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],r=j(i),o=e.placement.split("-")[1]||"",A=[];switch(t.behavior){case ie:A=[i,r];break;case re:A=ne(i);break;case oe:A=ne(i,!0);break;default:A=t.behavior}return A.forEach((function(a,s){if(i!==a||A.length===s+1)return e;i=e.placement.split("-")[0],r=j(i);var l=e.offsets.popper,c=e.offsets.reference,u=Math.floor,d="left"===i&&u(l.right)>u(c.left)||"right"===i&&u(l.left)<u(c.right)||"top"===i&&u(l.bottom)>u(c.top)||"bottom"===i&&u(l.top)<u(c.bottom),f=u(l.left)<u(n.left),h=u(l.right)>u(n.right),p=u(l.top)<u(n.top),g=u(l.bottom)>u(n.bottom),m="left"===i&&f||"right"===i&&h||"top"===i&&p||"bottom"===i&&g,v=-1!==["top","bottom"].indexOf(i),y=!!t.flipVariations&&(v&&"start"===o&&f||v&&"end"===o&&h||!v&&"start"===o&&p||!v&&"end"===o&&g),b=!!t.flipVariationsByContent&&(v&&"start"===o&&h||v&&"end"===o&&f||!v&&"start"===o&&g||!v&&"end"===o&&p),x=y||b;(d||m||x)&&(e.flipped=!0,(d||m)&&(i=A[s+1]),x&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=i+(o?"-"+o:""),e.offsets.popper=T({},e.offsets.popper,z(e.instance.popper,e.offsets.reference,e.placement)),e=W(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,r=i.popper,o=i.reference,A=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return r[A?"left":"top"]=o[n]-(a?r[A?"width":"height"]:0),e.placement=j(t),e.offsets.popper=M(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!$(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=B(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,i=t.y,r=e.offsets.popper,o=B(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var A=void 0!==o?o:t.gpuAcceleration,a=p(e.instance.popper),s=C(a),l={position:r.position},c=function(e,t){var n=e.offsets,i=n.popper,r=n.reference,o=Math.round,A=Math.floor,a=function(e){return e},s=o(r.width),l=o(i.width),c=-1!==["left","right"].indexOf(e.placement),u=-1!==e.placement.indexOf("-"),d=t?c||u||s%2==l%2?o:A:a,f=t?o:a;return{left:d(s%2==1&&l%2==1&&!u&&t?i.left-1:i.left),top:f(i.top),bottom:f(i.bottom),right:d(i.right)}}(e,window.devicePixelRatio<2||!J),u="bottom"===n?"top":"bottom",d="right"===i?"left":"right",f=Y("transform"),h=void 0,g=void 0;if(g="bottom"===u?"HTML"===a.nodeName?-a.clientHeight+c.bottom:-s.height+c.bottom:c.top,h="right"===d?"HTML"===a.nodeName?-a.clientWidth+c.right:-s.width+c.right:c.left,A&&f)l[f]="translate3d("+h+"px, "+g+"px, 0)",l[u]=0,l[d]=0,l.willChange="transform";else{var m="bottom"===u?-1:1,v="right"===d?-1:1;l[u]=g*m,l[d]=h*v,l.willChange=u+", "+d}var y={"x-placement":e.placement};return e.attributes=T({},y,e.attributes),e.styles=T({},l,e.styles),e.arrowStyles=T({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return K(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&K(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,i,r){var o=L(r,t,e,n.positionFixed),A=F(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",A),K(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},se=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=A(this.update.bind(this)),this.options=T({},e.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(T({},e.Defaults.modifiers,r.modifiers)).forEach((function(t){i.options.modifiers[t]=T({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return T({name:e},i.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&a(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return k(e,[{key:"update",value:function(){return H.call(this)}},{key:"destroy",value:function(){return q.call(this)}},{key:"enableEventListeners",value:function(){return X.call(this)}},{key:"disableEventListeners",value:function(){return G.call(this)}}]),e}();se.Utils=("undefined"!=typeof window?window:e).PopperUtils,se.placements=ee,se.Defaults=ae,t.default=se}.call(this,n(12))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){
/*!
  * Bootstrap util.js v4.6.1 (https://getbootstrap.com/)
  * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
  */
e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e);function i(e){var t=this,i=!1;return n.default(this).one(r.TRANSITION_END,(function(){i=!0})),setTimeout((function(){i||r.triggerTransitionEnd(t)}),e),this}var r={TRANSITION_END:"bsTransitionEnd",getUID:function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");if(!t||"#"===t){var n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var t=n.default(e).css("transition-duration"),i=n.default(e).css("transition-delay"),r=parseFloat(t),o=parseFloat(i);return r||o?(t=t.split(",")[0],i=i.split(",")[0],1e3*(parseFloat(t)+parseFloat(i))):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){n.default(e).trigger("transitionend")},supportsTransitionEnd:function(){return Boolean("transitionend")},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],A=t[i],a=A&&r.isElement(A)?"element":null==(s=A)?""+s:{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(a))throw new Error(e.toUpperCase()+': Option "'+i+'" provided type "'+a+'" but expected type "'+o+'".')}var s},findShadowRoot:function(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){var t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?r.findShadowRoot(e.parentNode):null},jQueryDetection:function(){if(void 0===n.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=n.default.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||e[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};return r.jQueryDetection(),n.default.fn.emulateTransitionEnd=i,n.default.event.special[r.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(e){if(n.default(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}},r}(n(0))},function(e,t,n){var i=n(2),r=n(3),o=n(4);t=i(!1);var A=r(o);t.push([e.i,'@font-face {\n  font-family: "viewericons";\n  src: url('+A+');\n  font-weight: normal;\n  font-style: normal;\n}\n/* Styles common to both inspector and highlighting used within iframe */\n.linked-highlight-text {\n  outline: dashed 2px #007bff;\n  outline-offset: 1px;\n}\n.linked-highlight-cell {\n  outline: dashed 2px #007bff;\n  outline-offset: 1px;\n  outline-offset: -1px;\n}\n.tooltip {\n  position: absolute;\n  z-index: 1070;\n  display: block;\n  margin: 0;\n  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n  font-style: normal;\n  font-weight: 400;\n  line-height: 1.5;\n  text-align: left;\n  text-align: start;\n  text-decoration: none;\n  text-shadow: none;\n  text-transform: none;\n  letter-spacing: normal;\n  word-break: normal;\n  word-spacing: normal;\n  white-space: normal;\n  line-break: auto;\n  font-size: 0.875rem;\n  word-wrap: break-word;\n  opacity: 0;\n}\n.tooltip.show {\n  opacity: 0.9;\n}\n.tooltip .arrow {\n  position: absolute;\n  display: block;\n  width: 0.8rem;\n  height: 0.4rem;\n}\n.tooltip .arrow::before {\n  position: absolute;\n  content: "";\n  border-color: transparent;\n  border-style: solid;\n}\n.bs-tooltip-top,\n.bs-tooltip-auto[x-placement^="top"] {\n  padding: 0.4rem 0;\n}\n.bs-tooltip-top .arrow,\n.bs-tooltip-auto[x-placement^="top"] .arrow {\n  bottom: 0;\n}\n.bs-tooltip-top .arrow::before,\n.bs-tooltip-auto[x-placement^="top"] .arrow::before {\n  top: 0;\n  border-width: 0.4rem 0.4rem 0;\n  border-top-color: #000;\n}\n.bs-tooltip-right,\n.bs-tooltip-auto[x-placement^="right"] {\n  padding: 0 0.4rem;\n}\n.bs-tooltip-right .arrow,\n.bs-tooltip-auto[x-placement^="right"] .arrow {\n  left: 0;\n  width: 0.4rem;\n  height: 0.8rem;\n}\n.bs-tooltip-right .arrow::before,\n.bs-tooltip-auto[x-placement^="right"] .arrow::before {\n  right: 0;\n  border-width: 0.4rem 0.4rem 0.4rem 0;\n  border-right-color: #000;\n}\n.bs-tooltip-bottom,\n.bs-tooltip-auto[x-placement^="bottom"] {\n  padding: 0.4rem 0;\n}\n.bs-tooltip-bottom .arrow,\n.bs-tooltip-auto[x-placement^="bottom"] .arrow {\n  top: 0;\n}\n.bs-tooltip-bottom .arrow::before,\n.bs-tooltip-auto[x-placement^="bottom"] .arrow::before {\n  bottom: 0;\n  border-width: 0 0.4rem 0.4rem;\n  border-bottom-color: #000;\n}\n.bs-tooltip-left,\n.bs-tooltip-auto[x-placement^="left"] {\n  padding: 0 0.4rem;\n}\n.bs-tooltip-left .arrow,\n.bs-tooltip-auto[x-placement^="left"] .arrow {\n  right: 0;\n  width: 0.4rem;\n  height: 0.8rem;\n}\n.bs-tooltip-left .arrow::before,\n.bs-tooltip-auto[x-placement^="left"] .arrow::before {\n  left: 0;\n  border-width: 0.4rem 0 0.4rem 0.4rem;\n  border-left-color: #000;\n}\n.tooltip-inner {\n  max-width: 200px;\n  padding: 0.25rem 0.5rem;\n  color: #fff;\n  text-align: center;\n  background-color: #000;\n  border-radius: 0.25rem;\n}\n.iv-ixbrl-fact {\n  background-color: yellow;\n  cursor: pointer;\n}\n.ixbrl-highlight {\n  background-color: hsl(90 69% 85%) !important;\n}\n.ixbrl-highlight.ixbrl-highlight-1 {\n  background-color: hsl(48 100% 85%) !important;\n}\n.ixbrl-highlight.ixbrl-highlight-2 {\n  background-color: #eaa8ff !important;\n}\n.ixbrl-highlight.ixbrl-highlight-missing {\n  background-color: rebeccapurple !important;\n}\n.ixbrl-highlight.ixbrl-element-nonnumeric span {\n  background-color: #eaa8ff !important;\n}\nspan.ixbrl-highlight.ixbrl-element-nonnumeric {\n  background-color: #eaa8ff !important;\n}\n.ixbrl-highlight.ixbrl-continuation span {\n  background-color: #eaa8ff !important;\n}\nspan.ixbrl-highlight.ixbrl-continuation {\n  background-color: #eaa8ff !important;\n}\np.ixbrl-cellblock.ixbrl-highlight span {\n  background-color: hsl(90 69% 85%) !important;\n}\np.ixbrl-cellblock.ixbrl-highlight-1 span {\n  background-color: hsl(48 100% 85%) !important;\n}\np.ixbrl-cellblock.ixbrl-highlight-2 span {\n  background-color: #eaa8ff !important;\n}\np.ixbrl-cellblock.ixbrl-highlight-missing span {\n  background-color: mediumpurple !important;\n}\ndiv.ixbrl-selected:not(.ixbrl-element-nonnumeric),\nspan.ixbrl-selected:not(.ixbrl-element-nonnumeric) {\n  outline: solid 3px #0094ff;\n  outline-offset: 0;\n}\ndiv.ixbrl-element:hover:not(.ixbrl-selected):not(.ixbrl-element-nonnumeric),\nspan.ixbrl-element:hover:not(.ixbrl-selected):not(.ixbrl-element-nonnumeric) {\n  outline: solid 2px #0094ff;\n  outline-offset: 0;\n}\ndiv.ixbrl-selected.ixbrl-element-nonnumeric span {\n  outline: solid 2px #007bff;\n  outline-offset: 1px;\n}\ndiv.ixbrl-element.ixbrl-element-nonnumeric:not(.ixbrl-selected) span:hover {\n  outline: dashed 2px #007bff;\n  outline-offset: 1px;\n}\nspan.ixbrl-selected.ixbrl-element-nonnumeric {\n  outline: solid 2px #007bff;\n  outline-offset: 1px;\n}\nspan.ixbrl-element.ixbrl-element-nonnumeric:not(.ixbrl-selected):hover {\n  outline: dashed 2px #007bff;\n  outline-offset: 1px;\n}\n.ixbrl-element {\n  cursor: pointer;\n  z-index: 1;\n}\n.inline-fact-with-message.ixbrl-highlight {\n  color: red !important;\n  border: solid 2px red !important;\n}\n.ixbrl-related {\n  outline: dashed 2px #0eb30e;\n  outline-offset: 1px;\n}\ntd.ixbrl-selected,\nth.ixbrl-selected {\n  outline: solid 2px #0094ff !important;\n  outline-offset: -1px !important;\n}\ntd.ixbrl-element:hover:not(.ixbrl-selected),\nth.ixbrl-element:hover:not(.ixbrl-selected) {\n  outline: dashed 2px #0094ff !important;\n  outline-offset: -1px !important;\n}\ntd.ixbrl-related,\nth.ixbrl-related {\n  outline-offset: -1px;\n}\n.ixbrl-related.ixbrl-linked-highlight,\n.ixbrl-linked-highlight {\n  outline: dashed 2px #007bff;\n  outline-offset: 1px;\n}\ntd.ixbrl-related.ixbrl-linked-highlight,\ntd.ixbrl-linked-highlight {\n  outline: dashed 2px #007bff;\n  outline-offset: 1px;\n  outline-offset: -1px;\n}\ndiv.ixbrl-table-handle {\n  position: absolute;\n  left: 0;\n  cursor: pointer;\n  width: 0;\n  height: 0;\n  border: 0.4rem solid transparent;\n  border-bottom-color: #4472c4;\n  top: -0.8rem;\n}\ndiv.ixbrl-table-handle::after {\n  content: \'\';\n  position: absolute;\n  left: -0.4rem;\n  top: 0.4rem;\n  width: 0;\n  height: 0;\n  border: 0.4rem solid transparent;\n  border-top-color: #4472c4;\n}\ndiv.ixbrl-table-handle > span {\n  display: none;\n  white-space: nowrap;\n}\ndiv.ixbrl-table-handle:hover {\n  border: none;\n  color: #fff;\n  transition: width 0.3s;\n  width: 9rem;\n  height: initial;\n  left: -0.1rem;\n  padding: 0.7rem 0 0 0;\n}\ndiv.ixbrl-table-handle:hover::after {\n  display: none;\n}\ndiv.ixbrl-table-handle:hover > span {\n  border: solid 0.1rem #fff;\n  font-family: sans-serif;\n  display: block;\n  background-color: #4472c4;\n  padding: 0.7rem 1.5rem 0.7rem 2.5rem;\n}\ndiv.ixbrl-table-handle:hover > span::before {\n  font-family: "viewericons";\n  content: "\\e62e";\n  position: absolute;\n  left: 0.8rem;\n  font-size: 1.2rem;\n}\n',""]),e.exports=t},function(e,t,n){e.exports=' <div id="ixv" xmlns="http://www.w3.org/1999/xhtml"> <div class="loader loading"> <span class="text">Loading iXBRL Viewer</span> </div> <div id="top-bar"> <div class="header"> <img src="'+n(16)+'"/> </div> <div class="document-title"></div> <div class="top-bar-controls toolbar-menu" id="toolbar-highlight-menu"> <b>Highlight:</b><span class="content"></span> </div> </div> <div id="inspector"> <div id="inspector-head"> <div class="title"> <h1 class="footnote-mode-off">Fact Properties</h1> <h1 class="footnote-mode-only">Footnote Properties</h1> <div class="back search-mode-only"> </div> <div class="menu" id="display-options-menu"> <div class="menu-title"></div> <div class="content-container"> <div class="content"></div> </div> </div> </div> <div class="controls"> <div class="search-button"> <span class="icon-search"></span> </div> <div class="next-prev"> <span class="ixbrl-prev-tag"></span><span class="ixbrl-next-tag"></span> </div> </div> <div class="search-controls search-mode-only"> <div class="search-input"> <input id="ixbrl-search" type="text"/> <div class="filter-toggle"></div> </div> <div class="search-filters"> <div class="reset">Reset</div> <h3>Filter</h3> <div class="control-label"> Concept Type </div> <select id="search-filter-concept-type"> <option value="*">ALL</option> <option value="numeric">Numeric</option> <option value="text">Text</option> </select> <div class="control-label"> Period </div> <select id="search-filter-period"> </select> <div class="checkboxes"> <div> <label class="checkbox"> <input id="search-hidden-fact-filter" type="checkbox" checked="checked"/> Hidden Facts <span class="checkmark"></span> </label> </div> <div> <label class="checkbox"> <input id="search-visible-fact-filter" type="checkbox" checked="checked"/> Visible Facts <span class="checkmark"></span> </label> </div> </div> </div> </div> </div> <div class="inspector-body"> <div class="fact-mode-only inspector-body-fact"> <div class="no-fact-overlay"> <div class="no-fact-overlay-icon"></div> <p class="title">No Fact Selected</p>  </div> <div class="fact-selected-only"> <div class="hidden-fact-tag">Hidden Fact</div> <div class="collapsible-section"> <div class="fact-inspector collapsible-body"> </div> </div> <div class="footnote-mode-off"> <div class="collapsible-section anchoring"> <h3 class="collapsible-header">Anchoring</h3> <div class="collapsible-body"> <h4>Wider anchor</h4> <div class="anchors-wider"> </div> <h4>Narrower anchors</h4> <div class="anchors-narrower"> </div> </div> </div> <div class="collapsible-section"> <h3 class="collapsible-header">Validation</h3> <div class="collapsible-body fact-validation-results"> </div> </div> <div class="collapsible-section"> <h3 class="collapsible-header">Calculations</h3> <div class="collapsible-body calculations"> <div class="tree"></div> </div> </div> <div class="collapsible-section"> <h3 class="collapsible-header">Footnotes</h3> <div class="collapsible-body footnotes"> </div> </div> </div> <div class="footnote-details footnote-mode-only"> <div class="collapsible-section"> <h3 class="collapsible-header">Associated facts</h3> <div class="collapsible-body footnote-facts fact-list"> </div> </div> </div> <div class="collapsible-section"> <h3 class="collapsible-header">References</h3> <div class="collapsible-body references"> </div> </div> </div> </div> <div class="search-results search-mode-only"> <div class="results fact-list"> </div> <div class="search-overlay"> <div class="search-overlay-icon"></div> <div class="search-overlay-text"> <p class="title">Fact Search</p> <p class="text">Please enter some search terms</p> </div> </div> </div> </div> </div> <div class="dialog-mask"> </div> <div id="chart" class="dialog"> <div class="close"></div> <div class="contents"> <div class="chart-container"><canvas id="chart-canvas"></canvas></div> <div class="other-aspects"></div> </div> </div> <div id="viewer-pane"> <div class="ixds-tabs"> <div class="tab-area"></div> </div> <div id="iframe-container"> <div class="zoom-in">+</div> <div class="zoom-out">-</div> </div> <div class="resize"></div> <div class="resize-spacer"></div> </div> </div>'},function(e,t,n){"use strict";n.r(t),t.default="data:image/png;base64, "},function(e,t,n){var i=n(2),r=n(3),o=n(4);t=i(!1);var A=r(o);t.push([e.i,'html {\n  font-size: 62.5%;\n}\nbody {\n  margin: 0;\n}\n@font-face {\n  font-family: "viewericons";\n  src: url('+A+');\n  font-weight: normal;\n  font-style: normal;\n}\n/* Styles common to both inspector and highlighting used within iframe */\n.linked-highlight-text {\n  outline: dashed 2px #026dce;\n  outline-offset: 1px;\n}\n.linked-highlight-cell {\n  outline: dashed 2px #026dce;\n  outline-offset: 1px;\n  outline-offset: -1px;\n}\ninput[type=text],\nselect,\nbutton {\n  padding: 7px 5px 7px 5px;\n  border: solid 1px #cbcbcb;\n  border-radius: 5px;\n  color: #595959;\n  background-color: #fff;\n  box-sizing: border-box;\n}\n.square-button-bare {\n  width: 3.2rem;\n  height: 3.2rem;\n  text-align: center;\n  color: #595959;\n  box-sizing: border-box;\n  cursor: pointer;\n  padding: 0;\n  font-size: 2.2rem;\n  line-height: 3.2rem;\n  user-select: none;\n}\n.square-button {\n  width: 3.2rem;\n  height: 3.2rem;\n  text-align: center;\n  color: #595959;\n  box-sizing: border-box;\n  cursor: pointer;\n  font-size: 2.2rem;\n  line-height: 3.2rem;\n  user-select: none;\n  padding: 0;\n  border-radius: 3px;\n  border: solid 0.1rem #cbcbcb;\n  background-color: #f8f8f8;\n  line-height: 3rem;\n  margin: 0 0.5rem;\n}\n.square-button:last-of-type {\n  margin-right: 0;\n}\n.square-button:first-of-type {\n  margin-left: 0;\n}\n.square-button.primary {\n  color: #fff;\n  border-color: #0085e6;\n  background-color: #0094ff;\n}\n.wk-checkbox,\nlabel.checkbox {\n  position: relative;\n  padding-left: 2.2rem;\n  cursor: pointer;\n  user-select: none;\n  line-height: 1.6rem;\n}\n.wk-checkbox input,\nlabel.checkbox input {\n  position: absolute;\n  opacity: 0;\n  cursor: pointer;\n  height: 0;\n  width: 0;\n}\n.wk-checkbox .checkmark,\nlabel.checkbox .checkmark {\n  position: absolute;\n  box-sizing: border-box;\n  top: 0;\n  left: 0;\n  width: 1.6rem;\n  height: 1.6rem;\n  border-radius: 0.4rem;\n  border: solid 0.1rem #cbcbcb;\n}\n.wk-checkbox input:checked ~ .checkmark::before,\nlabel.checkbox input:checked ~ .checkmark::before {\n  content: "";\n  position: absolute;\n  top: -0.1rem;\n  left: 0.4rem;\n  width: 0.4rem;\n  height: 1.1rem;\n  border: solid #026dce;\n  border-width: 0 0.2rem 0.2rem 0;\n  transform: rotate(45deg);\n}\n#ixv #chart {\n  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n  color: #595959;\n}\n#ixv #chart .chart-container {\n  position: relative;\n  width: 100%;\n}\n#ixv #chart .other-aspects {\n  width: 100%;\n  position: absolute;\n  bottom: 0;\n}\n#ixv #chart .other-aspects .other-aspect {\n  display: inline-block;\n  padding: 5px 10px;\n  margin: 10px;\n}\n#ixv #chart .other-aspects .other-aspect.selected,\n#ixv #chart .other-aspects .other-aspect.addable {\n  cursor: pointer;\n}\n#ixv #chart .other-aspects .other-aspect.addable {\n  color: #026dce;\n}\n#ixv #chart .other-aspects .other-aspect.addable:hover {\n  color: #0094ff;\n  text-decoration: underline;\n}\n#ixv #chart .other-aspects .other-aspect.selected {\n  background-color: #0094ff;\n  border-radius: 0.4rem;\n  border: 0.1rem solid #0085e6;\n  /* border: solid 1px #399; */\n  color: #fff;\n}\n.dialog {\n  z-index: 15;\n  position: absolute;\n  top: 5rem;\n  left: 5rem;\n  bottom: 5rem;\n  right: 5rem;\n  border: solid 1px #000;\n  background-color: #fff;\n  display: none;\n}\n.dialog .contents {\n  position: absolute;\n  left: 2rem;\n  right: 2rem;\n  top: 2rem;\n  bottom: 2rem;\n}\n.dialog .close {\n  position: absolute;\n  top: 0;\n  right: 0;\n  padding: 1.8rem 2rem 0;\n  font-size: 2.6rem;\n  z-index: 20;\n  cursor: pointer;\n  line-height: 2.2rem;\n  opacity: 0.2;\n}\n.dialog .close::before {\n  content: "\\00d7";\n}\n.dialog .close:hover {\n  opacity: 1;\n}\n#ixv .menu {\n  position: absolute;\n  right: 0;\n  top: 0;\n  line-height: 3.5rem;\n  cursor: pointer;\n}\n#ixv .menu .menu-title {\n  padding-right: 3.2rem;\n  position: relative;\n}\n#ixv .menu .menu-title::after {\n  font-family: "viewericons";\n  content: "\\e61a";\n  font-size: 1.8rem;\n  position: absolute;\n  right: 1rem;\n}\n#ixv .menu .content-container {\n  position: fixed;\n  top: 8.3rem;\n  right: 0;\n  bottom: 0;\n  display: none;\n  z-index: 5;\n}\n#ixv .menu .content-container .content {\n  line-height: initial;\n  background: #fff;\n  border: solid 1px #cbcbcb;\n  max-height: 100%;\n  overflow-y: auto;\n}\n#ixv .menu .content-container .content .group {\n  border-bottom: solid 1px #cbcbcb;\n  border-top: solid 1px #cbcbcb;\n}\n#ixv .menu .content-container .content .item {\n  position: relative;\n  padding: 10px 25px 10px 30px;\n  white-space: nowrap;\n  text-align: left;\n}\n#ixv .menu .content-container .content .item:hover {\n  background: #cbcbcb;\n}\n#ixv .menu .content-container .content .item.menu-checkbox {\n  cursor: pointer;\n  user-select: none;\n  position: relative;\n  display: block;\n}\n#ixv .menu .content-container .content .item.menu-checkbox input {\n  position: absolute;\n  opacity: 0;\n  cursor: pointer;\n  height: 0;\n  width: 0;\n}\n#ixv .menu .content-container .content .item.menu-checkbox input:checked ~ .checkmark::before {\n  font-family: "viewericons";\n  content: "\\e9b2";\n  position: absolute;\n  top: 1.1rem;\n  left: 1rem;\n}\n#ixv .toolbar-menu .menu-checkbox {\n  position: relative;\n  padding-left: 2.2rem;\n  cursor: pointer;\n  user-select: none;\n  line-height: 1.6rem;\n  margin-left: 1.8rem;\n}\n#ixv .toolbar-menu .menu-checkbox input {\n  position: absolute;\n  opacity: 0;\n  cursor: pointer;\n  height: 0;\n  width: 0;\n}\n#ixv .toolbar-menu .menu-checkbox .checkmark {\n  position: absolute;\n  box-sizing: border-box;\n  top: 0;\n  left: 0;\n  width: 1.6rem;\n  height: 1.6rem;\n  border-radius: 0.4rem;\n  border: solid 0.1rem #cbcbcb;\n}\n#ixv .toolbar-menu .menu-checkbox input:checked ~ .checkmark::before {\n  content: "";\n  position: absolute;\n  top: -0.1rem;\n  left: 0.4rem;\n  width: 0.4rem;\n  height: 1.1rem;\n  border: solid #026dce;\n  border-width: 0 0.2rem 0.2rem 0;\n  transform: rotate(45deg);\n}\n.accordian .card {\n  margin-top: 0.4rem;\n  background-color: #f8f8f8;\n}\n.accordian .card .body {\n  display: none;\n  padding-left: 1.6rem;\n  padding-right: 1.6rem;\n  padding-bottom: 0.8rem;\n}\n.accordian .card .body > h4:first-child {\n  margin-top: 0.8rem;\n}\n.accordian .card .title {\n  padding: 1.2rem 1.6rem;\n  cursor: pointer;\n  line-height: 1.8rem;\n}\n.accordian .card .title:hover {\n  background-color: #f3f3f3;\n}\n.accordian .card.active {\n  background-color: #f3f3f3;\n}\n.accordian .card.active .title {\n  font-weight: bold;\n}\n.accordian .card.active .body {\n  display: block;\n}\n#ixv .loader {\n  position: fixed;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  background-color: rgba(0, 0, 0, 0.85);\n  z-index: 10;\n}\n#ixv .loader .text {\n  padding-top: 80px;\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  transform: translateX(-50%) translateY(-50%);\n  color: #fff;\n  font-size: large;\n  font-family: sans-serif;\n}\n#ixv .loader.loading .text::after,\n#ixv .loader.loading .text::before {\n  margin: 0 0 0 -30px;\n  height: 60px;\n  width: 60px;\n  position: absolute;\n  content: \'\';\n  top: 0;\n  left: 50%;\n  border-radius: 500rem;\n  border-style: solid;\n  border-width: 3px;\n  box-shadow: 0 0 0 1px transparent;\n}\n#ixv .loader.loading .text::before {\n  border: 3px solid rgba(255, 255, 255, 0.1);\n}\n#ixv .loader.loading .text::after {\n  -webkit-animation: loader 0.6s linear;\n  animation: loader 0.6s linear;\n  -webkit-animation-iteration-count: infinite;\n  animation-iteration-count: infinite;\n  border-color: #fff transparent transparent;\n}\n@keyframes loader {\n  0% {\n    transform: rotate(0deg);\n  }\n  100% {\n    transform: rotate(360deg);\n  }\n}\n.tab-area {\n  background-color: #e3e3e3;\n  width: 100%;\n  box-sizing: border-box;\n  border-bottom: solid 0.1rem #cbcbcb;\n  display: flex;\n}\n.tab-area::after {\n  content: "";\n  clear: both;\n  display: table;\n}\n.tab-area .tab {\n  float: left;\n  padding: 1.2rem;\n  cursor: pointer;\n  color: #444;\n  border: solid 0.1rem #cbcbcb;\n  border-top-left-radius: 0.6rem;\n  border-top-right-radius: 0.6rem;\n  margin-bottom: -0.1rem;\n  flex-shrink: 1;\n  text-overflow: ellipsis;\n  overflow: hidden;\n  white-space: nowrap;\n  width: 20em;\n}\n.tab-area .tab.active {\n  padding: 1.2rem;\n  border-bottom-color: #fff;\n  background-color: #fff;\n  border-top: solid 0.4rem #0085e6;\n}\n.tab-area .tab:not(.active) {\n  padding-top: 1.5rem;\n}\n.block-list-item {\n  margin: 0.5rem 0;\n  padding: 0.3rem 0.9rem;\n  background-color: #f8f8f8;\n  cursor: pointer;\n  position: relative;\n  border-left: solid 0.4rem #f8f8f8;\n}\n.block-list-item > * {\n  margin: 0.8rem 0;\n}\n.block-list-item:hover {\n  background-color: #f3f3f3;\n}\n.block-list-item.selected {\n  border-left: solid 0.4rem #0085e6;\n  background-color: #f3f3f3;\n}\n.block-list-item.linked-highlight {\n  outline: dashed 2px #026dce;\n  outline-offset: 1px;\n  outline-offset: -1px;\n}\n#ixv {\n  /* Specify these here, not on body in case the iXBRL document has its own\n   * style attribute */\n}\n#ixv,\n#ixv table {\n  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n  color: #595959;\n  font-size: 1.4rem;\n}\n#ixv #ixv-progress {\n  position: fixed;\n  top: 20px;\n  left: 20px;\n  width: 500px;\n  height: 200px;\n  background-color: #fff;\n  border: solid #000 1px;\n  text-align: center;\n}\n#ixv #viewer-pane {\n  width: 75%;\n  box-sizing: border-box;\n  position: fixed;\n  left: 0;\n  top: 3.5rem;\n  bottom: 0;\n  z-index: 0;\n  /* This spacer stops drag events getting lost to the iframe */\n}\n#ixv #viewer-pane .ixds-tabs {\n  display: none;\n}\n#ixv #viewer-pane #iframe-container {\n  position: relative;\n  height: 100%;\n}\n#ixv #viewer-pane #iframe-container > iframe {\n  width: 100%;\n  height: 100%;\n  box-sizing: border-box;\n  border: none;\n}\n#ixv #viewer-pane #iframe-container .zoom-in,\n#ixv #viewer-pane #iframe-container .zoom-out {\n  position: absolute;\n  right: 30px;\n  width: 20px;\n  height: 20px;\n  border: solid 1px #bbb;\n  background-color: rgba(225, 225, 225, 0.7);\n  justify-content: center;\n  display: flex;\n  align-items: center;\n  color: #777;\n  cursor: pointer;\n  user-select: none;\n}\n#ixv #viewer-pane #iframe-container .zoom-in {\n  top: 15px;\n}\n#ixv #viewer-pane #iframe-container .zoom-out {\n  top: 40px;\n}\n#ixv #viewer-pane #iframe-container .zoom-in:hover,\n#ixv #viewer-pane #iframe-container .zoom-out:hover {\n  background-color: rgba(128, 128, 128, 0.7);\n}\n#ixv #viewer-pane .resize {\n  position: absolute;\n  top: 0;\n  width: 5px;\n  right: -5px;\n  bottom: 0;\n  z-index: 20;\n}\n#ixv #viewer-pane .resize-spacer {\n  position: absolute;\n  top: 0;\n  width: 3px;\n  right: 0;\n  bottom: 0;\n  z-index: 20;\n}\n#ixv #top-bar {\n  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n  font-size: 1.4rem;\n  color: #595959;\n  position: fixed;\n  top: 0;\n  left: 0;\n  right: 0;\n  height: 3.5rem;\n  border-bottom: solid 1px #ccc;\n  z-index: 5;\n}\n#ixv #top-bar .header {\n  position: absolute;\n  top: 0;\n  left: 0;\n  bottom: 0;\n}\n#ixv #top-bar .header img {\n  height: 100%;\n}\n#ixv #top-bar .document-title {\n  box-sizing: border-box;\n  width: 100%;\n  padding: 0 250px;\n  text-align: center;\n  line-height: 3.5rem;\n  height: 3.5rem;\n  overflow: hidden;\n}\n#ixv #top-bar .top-bar-controls {\n  position: absolute;\n  right: 1.8rem;\n  top: 0;\n  line-height: 3.5rem;\n}\n#ixv #inspector {\n  display: flex;\n  flex-direction: column;\n  /* inspector body */\n  width: 25%;\n  position: absolute;\n  top: 3.5rem;\n  right: 0;\n  bottom: 0;\n  box-sizing: border-box;\n  overflow: hidden;\n  border-left: solid 0.1rem #cbcbcb;\n}\n#ixv #inspector h1,\n#ixv #inspector h2,\n#ixv #inspector h3 {\n  font-weight: normal;\n  border-bottom: solid 1px #cbcbcb;\n  width: 100%;\n  box-sizing: border-box;\n  padding-bottom: 5px;\n  color: #444444;\n}\n#ixv #inspector h2 {\n  text-align: center;\n}\n#ixv #inspector h3 {\n  font-size: 1.4rem;\n}\n#ixv #inspector h4 {\n  font-weight: bold;\n  color: #444444;\n  margin-bottom: 1.4em;\n}\n#ixv #inspector #inspector-head {\n  padding: 0;\n  position: relative;\n  border-bottom: solid 1px #cbcbcb;\n}\n#ixv #inspector #inspector-head .title {\n  text-align: center;\n  position: relative;\n  border-bottom: solid 0.1rem #cbcbcb;\n}\n#ixv #inspector #inspector-head .title h1 {\n  margin: 0.8rem 0;\n  border: none;\n  padding: 0;\n  font-size: 1.8rem;\n  line-height: 3.2rem;\n}\n#ixv #inspector #inspector-head .title .back {\n  width: 3.2rem;\n  height: 3.2rem;\n  text-align: center;\n  color: #595959;\n  box-sizing: border-box;\n  cursor: pointer;\n  padding: 0;\n  font-size: 2.2rem;\n  line-height: 3.2rem;\n  user-select: none;\n  top: 0;\n  left: 0;\n  position: absolute;\n}\n#ixv #inspector #inspector-head .title .back::before {\n  font-family: "viewericons";\n  content: "\\e61b";\n  position: relative;\n  left: -0.1rem;\n}\n#ixv #inspector #inspector-head .title .menu {\n  top: 0;\n  right: 0;\n  position: absolute;\n}\n#ixv #inspector #inspector-head .title .menu .menu-title::before {\n  font-family: "viewericons";\n  content: "\\e97e";\n  font-size: 2rem;\n}\n#ixv #inspector #inspector-head .controls {\n  position: relative;\n  height: 3.2rem;\n  margin: 0.8rem 0.9rem;\n}\n#ixv #inspector #inspector-head .controls .search-button {\n  width: 3.2rem;\n  height: 3.2rem;\n  text-align: center;\n  color: #595959;\n  box-sizing: border-box;\n  cursor: pointer;\n  font-size: 2.2rem;\n  line-height: 3.2rem;\n  user-select: none;\n  padding: 0;\n  border-radius: 3px;\n  border: solid 0.1rem #cbcbcb;\n  background-color: #f8f8f8;\n  line-height: 3rem;\n  margin: 0 0.5rem;\n  position: absolute;\n  top: 0;\n  left: 0;\n}\n#ixv #inspector #inspector-head .controls .search-button:last-of-type {\n  margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .search-button:first-of-type {\n  margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .search-button::before {\n  font-family: "viewericons";\n  content: "\\e990";\n  position: relative;\n}\n#ixv #inspector #inspector-head .controls .next-prev {\n  position: absolute;\n  top: 0;\n  right: 0;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-next-tag,\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-prev-tag {\n  width: 3.2rem;\n  height: 3.2rem;\n  text-align: center;\n  color: #595959;\n  box-sizing: border-box;\n  cursor: pointer;\n  font-size: 2.2rem;\n  line-height: 3.2rem;\n  user-select: none;\n  padding: 0;\n  border-radius: 3px;\n  border: solid 0.1rem #cbcbcb;\n  background-color: #f8f8f8;\n  line-height: 3rem;\n  margin: 0 0.5rem;\n  position: relative;\n  display: inline-block;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-next-tag:last-of-type,\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-prev-tag:last-of-type {\n  margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-next-tag:first-of-type,\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-prev-tag:first-of-type {\n  margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-next-tag::before {\n  font-family: "viewericons";\n  content: "\\e619";\n  position: relative;\n  left: 0.1rem;\n}\n#ixv #inspector #inspector-head .controls .next-prev .ixbrl-prev-tag::before {\n  font-family: "viewericons";\n  content: "\\e61b";\n  position: relative;\n  left: -0.1rem;\n}\n#ixv #inspector #inspector-head .search-controls {\n  margin: 0.8rem 0.9rem;\n}\n#ixv #inspector #inspector-head .search-controls .search-input {\n  display: flex;\n  padding: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-input input#ixbrl-search {\n  flex-grow: 1;\n  margin-right: 1rem;\n}\n#ixv #inspector #inspector-head .search-controls .search-input .filter-toggle {\n  width: 3.2rem;\n  height: 3.2rem;\n  text-align: center;\n  color: #595959;\n  box-sizing: border-box;\n  cursor: pointer;\n  font-size: 2.2rem;\n  line-height: 3.2rem;\n  user-select: none;\n  padding: 0;\n  border-radius: 3px;\n  border: solid 0.1rem #cbcbcb;\n  background-color: #f8f8f8;\n  line-height: 3rem;\n  margin: 0 0.5rem;\n}\n#ixv #inspector #inspector-head .search-controls .search-input .filter-toggle:last-of-type {\n  margin-right: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-input .filter-toggle:first-of-type {\n  margin-left: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-input .filter-toggle::before {\n  font-family: "viewericons";\n  content: "\\e98c";\n}\n#ixv #inspector #inspector-head .search-controls:not(.show-filters) .search-filters {\n  display: none;\n}\n#ixv #inspector #inspector-head .search-controls.show-filters .filter-toggle {\n  color: #026dce;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters {\n  position: relative;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .reset {\n  cursor: pointer;\n  color: #026dce;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters h3 {\n  border: none;\n  font-weight: bold;\n  padding-bottom: 0;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .control-label {\n  font-weight: bold;\n  margin-bottom: 0.6em;\n  margin-top: 0.8em;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters select {\n  width: 100%;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .checkboxes {\n  display: flex;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .checkboxes > div {\n  margin: 1.2rem 0;\n  flex-grow: 1;\n}\n#ixv #inspector #inspector-head .search-controls .search-filters .checkboxes > div input {\n  vertical-align: middle;\n}\n#ixv #inspector .inspector-body {\n  flex-grow: 1;\n  width: 100%;\n  position: relative;\n  overflow: hidden;\n  /* search results */\n}\n#ixv #inspector .inspector-body .no-fact-overlay {\n  display: block;\n  top: 100px;\n  width: 100%;\n  text-align: center;\n  color: #b2b2b2;\n  overflow-y: auto;\n}\n#ixv #inspector .inspector-body .no-fact-overlay .no-fact-overlay-icon::before {\n  font-family: "viewericons";\n  content: "\\e92c";\n  font-size: 400%;\n}\n#ixv #inspector .inspector-body .no-fact-overlay .collapsible-section {\n  text-align: left;\n  color: #595959;\n  overflow: hidden;\n}\n#ixv #inspector .inspector-body .no-fact-overlay .collapsible-section .collapsible-body {\n  width: inherit;\n}\n#ixv #inspector .inspector-body .no-fact-overlay .title {\n  font-size: large;\n  padding: 8px 15px;\n}\n#ixv #inspector .inspector-body .inspector-body-fact {\n  overflow-y: auto;\n  height: 100%;\n}\n#ixv #inspector .inspector-body .search-results {\n  overflow-y: auto;\n  height: 100%;\n}\n#ixv #inspector .inspector-body .search-results .search-overlay {\n  transform: translate(-50%, -50%);\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  color: #b2b2b2;\n  width: 85%;\n}\n#ixv #inspector .inspector-body .search-results .search-overlay .search-overlay-icon {\n  text-align: center;\n  font-size: 10rem;\n}\n#ixv #inspector .inspector-body .search-results .search-overlay .search-overlay-icon::before {\n  font-family: "viewericons";\n  content: "\\e990";\n}\n#ixv #inspector .inspector-body .search-results .search-overlay .search-overlay-text {\n  text-align: center;\n  font-size: medium;\n}\n#ixv #inspector .inspector-body .search-results .search-overlay .search-overlay-text .title {\n  font-size: x-large;\n}\n#ixv #inspector .inspector-body .search-results .select-icon {\n  float: right;\n  width: 3.2rem;\n  height: 3.2rem;\n  text-align: center;\n  color: #595959;\n  box-sizing: border-box;\n  font-size: 2.2rem;\n  line-height: 3.2rem;\n  user-select: none;\n  padding: 0;\n  border-radius: 3px;\n  border: solid 0.1rem #cbcbcb;\n  background-color: #f8f8f8;\n  line-height: 3rem;\n  margin: 0 0.5rem;\n  cursor: pointer;\n  color: #026dce;\n}\n#ixv #inspector .inspector-body .search-results .select-icon:last-of-type {\n  margin-right: 0;\n}\n#ixv #inspector .inspector-body .search-results .select-icon:first-of-type {\n  margin-left: 0;\n}\n#ixv #inspector .inspector-body .search-results .select-icon:first-of-type {\n  margin-left: 0.5rem;\n}\n#ixv #inspector .inspector-body .search-results .select-icon::before {\n  font-family: "viewericons";\n  content: "\\e69e";\n}\n#ixv #inspector .inspector-body .search-results .more-results {\n  cursor: pointer;\n  color: #026dce;\n  padding: 1rem;\n  text-align: center;\n}\n#ixv #inspector .std-label {\n  margin-left: 30px;\n  min-height: 20px;\n  position: relative;\n}\n#ixv #inspector .std-label::before {\n  color: #026dce;\n  content: "\\2022";\n  position: absolute;\n  top: -5px;\n  left: -20px;\n  font-size: x-large;\n}\n#ixv #inspector #concept {\n  margin-top: 20px;\n  font-size: small;\n  min-height: 25px;\n}\n#ixv #inspector #dimensions {\n  margin-left: 2rem;\n  margin-right: 2rem;\n  margin-bottom: 1rem;\n}\n#ixv #inspector #dimensions .dimension {\n  position: relative;\n  margin: 1.5rem 0 1.5rem 1rem;\n}\n#ixv #inspector #dimensions .dimension::before {\n  font-family: "viewericons";\n  content: "\\e916";\n  color: #026dce;\n  position: absolute;\n  top: 0;\n  left: -2.3rem;\n  font-size: 120%;\n}\n#ixv #inspector #dimensions .dimension-value {\n  position: relative;\n  margin: 1.5rem 0 1.5rem 3.5rem;\n}\n#ixv #inspector #dimensions .dimension-value::before {\n  font-family: "viewericons";\n  content: "\\e915";\n  position: absolute;\n  color: #026dce;\n  top: 0;\n  left: -2.3rem;\n  font-size: 120%;\n}\n#ixv #inspector .analyse {\n  cursor: pointer;\n  padding-left: 0.7rem;\n  color: #026dce;\n}\n#ixv #inspector .analyse::before {\n  font-family: "viewericons";\n  content: "\\e97d";\n  position: relative;\n  top: 1px;\n}\n#ixv #inspector .hidden-fact-tag {\n  display: table;\n  text-transform: uppercase;\n  font-weight: bold;\n  background-color: #8a8a8a;\n  padding: 0.15em 0.5em;\n  color: #fff;\n  border-radius: 0.3em;\n  position: absolute;\n  top: 1.33rem;\n  right: 0.9rem;\n}\n#ixv #inspector table.fact-properties {\n  table-layout: fixed;\n  width: 100%;\n}\n#ixv #inspector table.fact-properties th {\n  width: 100px;\n  text-align: right;\n  padding-right: 20px;\n  color: #444444;\n}\n#ixv #inspector table.fact-properties th,\n#ixv #inspector table.fact-properties td {\n  padding-top: 7px;\n  padding-bottom: 7px;\n}\n#ixv #inspector table.fact-properties tr.value .show-all {\n  color: #026dce;\n  cursor: pointer;\n}\n#ixv #inspector table.fact-properties tr.value:not(.truncated) .show-all {\n  display: none;\n}\n#ixv #inspector table.fact-properties td {\n  overflow: hidden;\n  text-overflow: ellipsis;\n  color: #7d7d7d;\n}\n#ixv #inspector table.fact-properties tr.uri > td {\n  white-space: nowrap;\n}\n#ixv #inspector .duplicates {\n  text-align: center;\n  width: 100%;\n  height: 3.2rem;\n  line-height: 3.2rem;\n}\n#ixv #inspector .duplicates > * {\n  vertical-align: middle;\n}\n#ixv #inspector .duplicates .text {\n  margin: 0 5px;\n}\n#ixv #inspector .duplicates .next,\n#ixv #inspector .duplicates .prev {\n  width: 3.2rem;\n  height: 3.2rem;\n  text-align: center;\n  color: #595959;\n  box-sizing: border-box;\n  cursor: pointer;\n  padding: 0;\n  font-size: 2.2rem;\n  line-height: 3.2rem;\n  user-select: none;\n  position: relative;\n  display: inline-block;\n}\n#ixv #inspector .duplicates .prev::before {\n  font-family: "viewericons";\n  content: "\\e61b";\n  position: relative;\n  left: -0.1rem;\n}\n#ixv #inspector .duplicates .next::before {\n  font-family: "viewericons";\n  content: "\\e619";\n  position: relative;\n  left: 0.1rem;\n}\n#ixv #inspector .documentation {\n  margin-top: 10px;\n  margin-left: 30px;\n  font-style: italic;\n  font-family: serif;\n}\n#ixv #inspector .anchor-label {\n  font-size: 95%;\n  word-break: break-all;\n}\n#ixv #inspector a {\n  text-decoration: none;\n  color: #026dce;\n}\n#ixv #inspector a:hover {\n  text-decoration: underline;\n}\n#ixv #inspector .inspector-section {\n  padding-left: 0.9rem;\n  padding-right: 0.9rem;\n}\n#ixv #inspector .collapsible-section .collapsible-body {\n  padding-left: 0.9rem;\n  padding-right: 0.9rem;\n}\n#ixv #inspector .collapsible-section .collapsible-header {\n  position: relative;\n  padding-left: 12px;\n  cursor: pointer;\n  user-select: none;\n}\n#ixv #inspector .collapsible-section .collapsible-header::before {\n  font-family: "viewericons";\n  content: "\\e619";\n  left: 0.1rem;\n  font-size: 1.8rem;\n  position: relative;\n  top: 0.4rem;\n  left: -0.3rem;\n  transform: rotate(90deg);\n  transition: all 0.25s ease;\n  display: inline-block;\n}\n#ixv #inspector .collapsible-section.collapsed .collapsible-header::before {\n  transform: rotate(0);\n  top: 0.3rem;\n  left: -0.2rem;\n}\n#ixv #inspector .collapsible-section .footnote-details {\n  display: none;\n}\n#ixv #inspector .collapsible-section .no-fact-selected {\n  width: 100%;\n  padding: 50px 0;\n  text-align: center;\n}\n#ixv #inspector .collapsible-section .no-fact-selected span {\n  font-size: large;\n}\n#ixv #inspector .collapsible-section .validation-result {\n  width: 100%;\n  padding-bottom: 50px;\n}\n#ixv #inspector .collapsible-section .calculations .item {\n  padding: 5px 0;\n  position: relative;\n  line-height: 1.8rem;\n}\n#ixv #inspector .collapsible-section .calculations .item:not(.calc-fact-link, .total) .concept-name {\n  color: #777;\n}\n#ixv #inspector .collapsible-section .calculations .item .concept-name {\n  display: block;\n  margin-left: 15px;\n}\n#ixv #inspector .collapsible-section .calculations .item.calc-fact-link {\n  cursor: pointer;\n}\n#ixv #inspector .collapsible-section .calculations .item.calc-fact-link .concept-name {\n  color: #026dce;\n}\n#ixv #inspector .collapsible-section .calculations .item .weight {\n  display: block;\n  position: absolute;\n}\n#ixv #inspector .collapsible-section .calculations .item.linked-highlight,\n#ixv #inspector .collapsible-section .calculations .item.calc-fact-link:hover {\n  outline: dashed 2px #026dce;\n  outline-offset: 1px;\n}\n#ixv #inspector .collapsible-section .calculations .item.total {\n  border-top: solid 1px #cbcbcb;\n  padding-bottom: 1.2rem;\n}\n#ixv #inspector:not(.no-fact-selected) .no-fact-overlay {\n  display: none;\n}\n#ixv #inspector.no-fact-selected .fact-selected-only {\n  display: none;\n}\n#ixv #inspector:not(.hidden-fact) .hidden-fact-tag {\n  display: none;\n}\n#ixv #inspector.search-mode #inspector-head .controls .search-button {\n  color: #fff;\n  border-color: #0085e6;\n  background-color: #0094ff;\n}\n#ixv #inspector .powered-by {\n  font-size: 1.2rem;\n  text-align: center;\n  flex-shrink: 0;\n  background: #fff;\n  width: 100%;\n  height: 3rem;\n  padding-top: 5px;\n  margin: 0;\n  box-sizing: border-box;\n  border-top: solid 0.1rem #cbcbcb;\n}\n#ixv #inspector .powered-by img {\n  height: 14px;\n}\n#ixv #inspector:not(.search-mode) .search-mode-only {\n  display: none;\n}\n#ixv #inspector.search-mode .fact-mode-only {\n  display: none;\n}\n#ixv #inspector:not(.footnote-mode) .footnote-mode-only {\n  display: none;\n}\n#ixv #inspector.footnote-mode .footnote-mode-off {\n  display: none;\n}\n#ixv .fact-link {\n  cursor: pointer;\n  color: #026dce;\n}\n#ixv .fact-link:hover {\n  outline: solid 2px #026dce;\n  outline-offset: 1px;\n}\n#ixv .fact-list {\n  margin-left: 0.9rem;\n  margin-right: 0.9rem;\n}\n#ixv .fact-list .fact-list-item {\n  margin: 0.5rem 0;\n  padding: 0.3rem 0.9rem;\n  background-color: #f8f8f8;\n  cursor: pointer;\n  position: relative;\n  border-left: solid 0.4rem #f8f8f8;\n}\n#ixv .fact-list .fact-list-item > * {\n  margin: 0.8rem 0;\n}\n#ixv .fact-list .fact-list-item:hover {\n  background-color: #f3f3f3;\n}\n#ixv .fact-list .fact-list-item.selected {\n  border-left: solid 0.4rem #0085e6;\n  background-color: #f3f3f3;\n}\n#ixv .fact-list .fact-list-item.linked-highlight {\n  outline: dashed 2px #026dce;\n  outline-offset: 1px;\n  outline-offset: -1px;\n}\n#ixv .fact-list .fact-list-item .title {\n  color: #444444;\n  font-weight: bold;\n}\n#ixv .fact-list .fact-list-item .dimension {\n  color: #595959;\n  margin: 0.6rem 0;\n}\n#ixv .fact-list .fact-list-item .hidden {\n  display: table;\n  text-transform: uppercase;\n  font-weight: bold;\n  background-color: #8a8a8a;\n  padding: 0.15em 0.5em;\n  color: #fff;\n  border-radius: 0.3em;\n}\n#ixv .fact-list .fact-list-item.selected .title {\n  font-weight: bold;\n}\n#ixv .fact-list .fact-list-item.selected .dimension {\n  color: #595959;\n}\n#ixv .dialog-mask {\n  background-color: rgba(0, 0, 0, 0.6);\n  position: fixed;\n  top: 0;\n  bottom: 0;\n  right: 0;\n  left: 0;\n  z-index: 10;\n  display: none;\n}\n/* https://codepen.io/iraycd/pen/dHrxv *\n * FAB */\n.fab {\n  position: relative;\n  display: inline-block;\n  vertical-align: middle;\n  margin-right: 8px;\n  width: 6px;\n  height: 6px;\n  border-radius: 50%;\n  color: #fff;\n  overflow: hidden;\n  transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n  transition-delay: 0.2s;\n  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);\n}\n.fab.red {\n  background-color: #d23f31;\n}\n.fab.blue {\n  background-color: #4285f4;\n}\n.fab.green {\n  background-color: #0f9d58;\n}\n.fab.yellow {\n  background-color: yellow;\n}\n.fab-container {\n  padding: 2px 0;\n  text-align: left;\n}\n.fab-container::before {\n  content: "\\a0";\n  display: block;\n  padding: 2px 0;\n  line-height: 1px;\n  border-top: 0.25px solid rgba(255, 255, 255, 0.8);\n}\n',""]),e.exports=t},function(e,t,n){"use strict";n.r(t),t.default="data:image/vnd.microsoft.icon;base64, "},function(e,t){e.exports=' <div class="fact-details"> <h4>Concept</h4> <div class="std-label"></div> <div class="documentation"></div> <h4>Dimensions</h4> <div id="dimensions"></div> <table class="fact-properties"> <tr class="period"> <th>Date</th> <td></td> </tr> <tr class="value"> <th>Fact Value</th> <td><span class="value"></span> <span class="show-all">[...]</span></td> </tr> <tr class="accuracy"> <th>Accuracy</th> <td></td> </tr> <tr class="change"> <th>Change</th> <td></td> </tr> <tr class="entity-identifier"> <th>Entity</th> <td></td> </tr> <tr class="concept"> <th>Concept</th> <td></td> </tr> </table> <div class="duplicates"> <span class="prev"></span> <span class="text"></span> <span class="next"></span> </div> </div> '},function(e,t){e.exports='<div> <table class="fact-properties"> <tr class="value"> <th>Footnote</th> <td><span class="value"></span> <span class="show-all">[...]</span></td> </tr> </table> </div> '},function(e,t,n){"use strict";n.r(t);var i=n(0),r=n.n(i),o=n(7),A=n.n(o),a=(n(8),n(1)),s=n.n(a);function l(e,t){return e.hours()+e.minutes()+e.seconds()==0?(t&&(e=e.clone().subtract(1,"day")),e.format("D MMM Y")):e.format("D MMM Y HH:mm:ss")}function c(e,t){var n=Number(e).toFixed(t).split("."),i="";return n.forEach((function(e,t){i=0==t?e.replace(/(\d)(?=(\d{3})+(?:\.\d+)?$)/g,"$1,"):i+"."+e})),i}function u(e,t){var n=[],i=e.split(" "),r="";return i.forEach((function(e,o){if(r.length>0){var A=r+" "+e;if(!(A.length>t))return o==i.length-1?void n.push(A):void(r=A);n.push(r),r=""}o!=i.length-1&&e.length<t?r=e:n.push(e)})),n}function d(e){return e=e.replace(/^(\d{4,}-\d{2}-\d{2})(?!T|$)/,(function(e,t){return t+"T00:00:00"})),s.a.utc(e)}function f(e){return null==e?"":e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function h(e,t){if(1!==e.nodeType)return[];const n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function p(e,t,n){return e.hasOwnProperty(t)||(e[t]=n),e[t]}function g(e,t){var n=t.split(":",2);this.localname=n[1],this.prefix=n[0],this.namespace=e[n[0]],this.qname=t}function m(e){this._p=e}m.prototype.type=function(){if(this._p)return"f"==this._p?"f":this._p.includes("/")?"d":"i"},m.prototype.toString=function(){return this._p?"f"==this._p?"None":this._p.includes("/")?l(this.from(),!1)+" to "+l(this.to(),!0):l(this.to(),!0):"Undefined"},m.prototype.to=function(){return this._p&&"f"!=this._p?this._p.includes("/")?d(this._p.split("/")[1]):d(this._p):null},m.prototype.from=function(){return this._p&&this._p.includes("/")?d(this._p.split("/")[0]):null},m.prototype.isEquivalentDuration=function(e){var t=e.type(),n=this.type();if(!t||!n)return!1;if(t!==n)return!1;if("d"!=t)return!0;var i=e.to().toDate()-e.from().toDate(),r=this.to().toDate()-this.from().toDate();return Math.abs(i-r)<.1*(i+r)},m.prototype.key=function(){return this._p};var v={"http://standards.iso.org/iso/17442":{name:"LEI",url:"https://search.gleif.org/#/record/%s"},"http://www.sec.gov/CIK":{name:"CIK",url:"https://www.sec.gov/cgi-bin/browse-edgar?CIK=%s"},"http://www.companieshouse.gov.uk/":{name:"UK CRN",url:"https://beta.companieshouse.gov.uk/company/%08d"}};function y(){}function b(e,t,n){this._aspect=e,this._value=t,this._report=n}function x(e){this._aspectSet=e||[]}function w(e,t,n){this.id=t,this.facts=[],this.title=n,this._ixNode=e.getIXNodeForItemId(t)}function _(e,t){this.f=e.data.facts[t],this._ixNode=e.getIXNodeForItemId(t),this._report=e,this.id=t}function k(e,t){this._report=e,this.name=t,this._c=e.data.concepts[t]}function S(){this.showPrefixes=!0,this.language=null}function T(e){this.data=e,this._items={},this._ixNodeMap={},this._viewerOptions=new S,this._reverseRelationshipCache={}}y.identifierURLForFact=function(e){var t=v[e.identifier().namespace];if(void 0!==t){var n=t.url.replace("%s",e.identifier().localname);return n=n.replace(/%0(\d+)d/,(function(t,n){return e.identifier().localname.padStart(n,"0")}))}},y.identifierNameForFact=function(e){var t=v[e.identifier().namespace];if(void 0!==t)return t.name},y.readableName=function(e){var t=v[e.namespace];return void 0!==t?"["+t.name+"] "+e.localname:e.qname},b.prototype.name=function(){return this._aspect},b.prototype.label=function(){return"c"==this._aspect?"Concept":"p"==this._aspect?"Period":"u"==this._aspect?"Unit":"e"==this._aspect?"Entity":this._report.getLabel(this._aspect)},b.prototype.value=function(){return this._value},b.prototype.equalTo=function(e){return void 0!==e&&this._aspect==e._aspect&&this._value==e._value},b.prototype.isTaxonomyDefined=function(){return this._aspect.indexOf(":")>-1},b.prototype.isNil=function(){return null===this._value},b.prototype.valueLabel=function(e){if("c"==this._aspect)return this._report.getLabel(this._value,e)||this._value;if(this.isTaxonomyDefined())return this._report.getConcept(this._aspect).isTypedDimension()?null===this._value?"nil":this._value:this._report.getLabel(this._value,e)||this._value;if("u"==this._aspect){if(null===this._value)return"<NOUNIT>";var t=this._report.qname(this._value);if("http://www.xbrl.org/2003/iso4217"==t.namespace){if("GBP"==t.localname)return"£";if("USD"==t.localname)return"US $";if("EUR"==t.localname)return"€"}return this._value}return"p"==this._aspect?new m(this._value).toString():"e"==this._aspect?y.readableName(this._report.qname(this._value)):this._value},x.prototype.add=function(e){this._aspectSet.push(e)},x.prototype.uniqueValues=function(){var e={};return r.a.each(this._aspectSet,(function(t,n){e[n.value()]=n})),Object.values(e)},w.prototype.addFact=function(e){this.facts.push(e)},w.prototype.textContent=function(){return this._ixNode.textContent()},w.prototype.readableValue=function(){return this.textContent()},_.prototype.report=function(){return this._report},_.prototype.getLabel=function(e,t){return this._report.getLabel(this.f.a.c,e,t)},_.prototype.conceptName=function(){return this.f.a.c},_.prototype.concept=function(){return this._report.getConcept(this.f.a.c)},_.prototype.conceptQName=function(){return this._report.qname(this.f.a.c)},_.prototype.period=function(){return new m(this.f.a.p)},_.prototype.periodString=function(){return this.period().toString()},_.prototype.periodTo=function(){return this.period().to()},_.prototype.periodFrom=function(){return this.period().from()},_.prototype.value=function(){return this.f.v},_.prototype.hasValidationResults=function(){return"zv"in this.f},_.prototype.getValidationResults=function(){return this.f.zv.map((function(e){return{ruleId:e.ri,rule:e.r,message:e.m,type:e.t,severity:e.i}}))},_.prototype.readableValue=function(){var e=this.f.v;if(this.isNumeric()){var t,n=this.decimals();this.isNil()?t="nil":void 0===n?t=e:(n<0&&(n=0),t=c(e,n)),e=this.isMonetaryValue()?this.unit().valueLabel()+" "+t:t+" "+this.unit().valueLabel()}else if(this.isNil())e="nil";else if(this.escaped()){var i=r()("<div>").append(r()(r.a.parseHTML(e,null,!1)));i.find("p, td, th, h1, h2, h3, h4, ol, ul, pre, blockquote, dl, div").append(document.createTextNode(" ")).prepend(document.createTextNode(" ")),e=i.text().replace(/[\u00a0\s]+/g," ").trim()}return e},_.prototype.unit=function(){return this.isNumeric()?this.aspect("u"):void 0},_.prototype.isNumeric=function(){return void 0!==this.f.a.u},_.prototype.dimensions=function(){var e={};return r.a.each(this.f.a,(function(t,n){t.indexOf(":")>-1&&(e[t]=n)})),e},_.prototype.isMonetaryValue=function(){var e=this.unit();return!(!e||null===e.value())&&"http://www.xbrl.org/2003/iso4217"==this.report().qname(e.value()).namespace},_.prototype.aspects=function(){return Object.keys(this.f.a).map(e=>this.aspect(e))},_.prototype.aspect=function(e){if(void 0!==this.f.a[e])return new b(e,this.f.a[e],this._report)},_.prototype.isAligned=function(e,t){if(Object.keys(this.f.a).length!=Object.keys(e.f.a).length)return!1;for(var n in this.f.a)if(t.hasOwnProperty(n)){if(null!==t[n])if(t[n].constructor===Array){if(-1==r.a.inArray(this.f.a[n],t[n]))return!1}else if(this.f.a[n]!=t[n])return!1}else if(this.f.a[n]!=e.f.a[n])return!1;return!0},_.prototype.isEquivalentDuration=function(e){return this.period().isEquivalentDuration(e.period())},_.prototype.decimals=function(){return this.f.d},_.prototype.duplicates=function(){return this._report.getAlignedFacts(this)},_.prototype.isNil=function(){return null===this.f.v},_.prototype.readableAccuracy=function(){if(!this.isNumeric()||this.isNil())return"n/a";var e=this.decimals();if(void 0===e)return"Infinite precision";if(null===e)return"Unspecified";var t={3:"thousandths",2:"hundredths",0:"ones","-1":"tens","-2":"hundreds","-3":"thousands","-6":"millions","-9":"billions"}[e];if(this.isMonetaryValue()){var n=this.report().qname(this.unit().value()).localname;2==e&&("USD"==n||"EUR"==n||"AUD"==n||"ZAR"==n?t="cents":"GBP"==n&&(t="pence"))}return e+=t?" ("+t+")":""},_.prototype.identifier=function(){return this._report.qname(this.f.a.e)},_.prototype.escaped=function(){return this._ixNode.escaped},_.prototype.footnotes=function(){return r.a.map(this.f.fn||[],(e,t)=>this._report.getItemById(e))},_.prototype.isHidden=function(){return 0==this._ixNode.wrapperNode.length},_.prototype.widerConcepts=function(){var e=[];const t=this._report.getParentRelationships(this.conceptName(),"w-n");for(const n in t)e.push(...r.a.map(t[n],e=>e.src));return e},_.prototype.narrowerConcepts=function(){var e=[];const t=this._report.getChildRelationships(this.conceptName(),"w-n");for(const n in t)e.push(...r.a.map(t[n],e=>e.t));return e},_.prototype.scale=function(){var e=this._ixNode.wrapperNode.find("[scale]").attr("scale");if(e)return parseInt(e)},k.prototype.referenceValuesAsString=function(){return this._c.r?r.a.map(this._c.r,(function(e,t){return r.a.map(e,(function(e,t){return e[1]})).join(" ")})).join(" "):""},k.prototype.references=function(){return this._c.r?r.a.map(this._c.r,(function(e,t){return[r.a.map(e,(function(e,t){return{part:e[0],value:e[1]}}))]})):[]},k.prototype.isTypedDimension=function(){return"t"==this._c.d},k.prototype.isTaxonomyExtension=function(){return this._c&&this._c.hasOwnProperty("e")&&1===this._c.e},k.prototype.getLabel=function(e,t){return this._report.getLabel(this.name,e,t)},T.prototype.setIXNodeMap=function(e){this._ixNodeMap=e,this._initialize()},T.prototype._initialize=function(){var e=Object.keys(this._ixNodeMap).filter(e=>this._ixNodeMap[e].footnote);for(var t in e.sort((e,t)=>this._ixNodeMap[e].docOrderindex-this._ixNodeMap[t].docOrderindex),this.data.facts){var n=new _(this,t);this._items[t]=n,(this.data.facts[t].fn||[]).forEach(t=>{var i=this._items[t];void 0===i&&(i=new w(this,t,"Footnote "+(e.indexOf(t)+1)),this._items[t]=i),i.addFact(n)})}},T.prototype.getLabel=function(e,t,n,i){t=t||"std";var r=this._viewerOptions.language;const o=this.data.concepts[e];if(void 0===o)return console.log("Attempt to get label for undefined concept: "+e),"<no label>";const A=o.labels[t];var a;if(void 0!==A&&(a=r&&A[r]?A[r]:A.en||A["en-us"],1==Object.keys(A).length&&(a=A[Object.keys(A)]),void 0!==a)){var s="";return n&&this._viewerOptions.showPrefixes&&(s="("+this.qname(e).prefix+") "),s+=a}},T.prototype.availableLanguages=function(){if(!this._availableLanguages){var e={};r.a.each(this.data.concepts,(function(t,n){r.a.each(n.labels,(function(t,n){r.a.each(n,(function(t,n){e[t]=1}))}))})),this._availableLanguages=Object.keys(e)}return this._availableLanguages},T.prototype.languageNames=function(){return this.data.languages},T.prototype.getItemById=function(e){return this._items[e]},T.prototype.getIXNodeForItemId=function(e){return this._ixNodeMap[e]||{}},T.prototype.facts=function(){var e=[],t=this;return r.a.each(this.data.facts,(function(n,i){e.push(t.getItemById(n))})),e},T.prototype.prefixMap=function(){return this.data.prefixes},T.prototype.qname=function(e){return new g(this.prefixMap(),e)},T.prototype.getChildRelationships=function(e,t){var n={};const i=this.data.rels[t]||{};for(const t in i)e in i[t]&&(n[t]=i[t][e]);return n},T.prototype.getAnchors=function(e){var t=[],n=this;return this.data.rels.hasOwnProperty("w-n")&&r.a.each(this.data.rels["w-n"],(function(i,o){r.a.each(o,(function(i,o){e.name==i?r.a.each(o,(function(e,i){t.push({concept:n.getConcept(i.t),wide:0})})):r.a.each(o,(function(r,o){o.t==e.name&&t.push({concept:n.getConcept(i),wide:1})}))}))})),t},T.prototype.hasValidationResults=function(){return"errors"in this.data},T.prototype.getValidationResults=function(){return this.data.errors.map((function(e){return{ruleId:e.ri,rule:e.r,message:e.m,type:e.t,severity:e.i}}))},T.prototype._reverseRelationships=function(e){if(!(e in this._reverseRelationshipCache)){const t={},n=this.data.rels[e]||{};for(const[e,i]of Object.entries(n))for(const[n,r]of Object.entries(i))for(const i of r)i.src=n,p(p(t,e,{}),i.t,[]).push(i);this._reverseRelationshipCache[e]=t}return this._reverseRelationshipCache[e]},T.prototype.getParentRelationships=function(e,t){var n={};for(const[i,r]of Object.entries(this._reverseRelationships(t)))e in r&&(n[i]=r[e]);return n},T.prototype.getAlignedFacts=function(e,t){var n=this.facts(),i=[];return t||(t={}),r.a.each(n,(function(n,r){r.isAligned(e,t)&&i.push(r)})),i},T.prototype.deduplicate=function(e){var t=[];return r.a.each(e,(function(e,n){var i=!1;r.a.each(t,(function(e,t){t.isAligned(n,{})&&(i=!0)})),i||t.push(n)})),t},T.prototype.setViewerOptions=function(e){this._viewerOptions=e},T.prototype.namespaceGroups=function(){var e={};r.a.each(this.facts(),(function(t,n){e[n.conceptQName().prefix]=e[n.conceptQName().prefix]||0,e[n.conceptQName().prefix]++}));var t=Object.keys(e);return t.sort((function(t,n){return e[n]-e[t]})),t},T.prototype.getConcept=function(e){return new k(this,e)},T.prototype.getRoleLabel=function(e,t){return this.data.roleDefs[e].en},T.prototype.documentSetFiles=function(){return this.data.docSetFiles},T.prototype.isDocumentSet=function(){return void 0!==this.data.docSetFiles},T.prototype.usesAnchoring=function(){return void 0!==this.data.rels["w-n"]};var M=0;function C(e,t,n){this.wrapperNode=t,this.escaped=!1,this.continuations=[],this.docIndex=n,this.footnote=!1,this.id=e,this.docOrderindex=M++}C.prototype.continuationIds=function(){return this.continuations.map(e=>e.id)},C.prototype.textContent=function(){return[this].concat(this.continuations).map(e=>e.wrapperNode.text()).join(" ")};n(10);function D(e,t,n){this._iv=e,this._report=n,this._iframes=t,this._contents=t.contents(),this.onSelect=r.a.Callbacks(),this.onMouseEnter=r.a.Callbacks(),this.onMouseLeave=r.a.Callbacks(),this._ixNodeMap={},this._continuedAtMap={},this._currentShowElement=null}function P(e){return-1==e.indexOf(":")?e.toUpperCase():e.substring(e.indexOf(":")+1).toUpperCase()}D.prototype.initialize=function(){return new Promise((e,t)=>{var n=this;n._iframes.each((function(e){n._preProcessiXBRL(r()(this).contents().find("body").get(0),e)})),async function(){for(var e=0;e<n._iframes.length;e++)await n._iv.pluginPromise("preProcessiXBRL",n._iframes.eq(e).contents().find("body").get(0),e)}().then(()=>n._iv.setProgress("Preparing document")).then(()=>{this._buildContinuationMap(),this._report.setIXNodeMap(this._ixNodeMap),this._applyStyles(),this._bindHandlers(),this.scale=1,this._setTitle(0),this._addDocumentSetTabs(),e()}).then(()=>{n._iframes.each((function(e){n._postProcessiXBRL(r()(this).contents().find("body").get(0),e)}))})})},D.prototype._buildContinuationMap=function(){for(var e=Object.keys(this._continuedAtMap),t=0;t<e.length;t++){var n=e[t];if(this._continuedAtMap[n].isFact){for(var i=[],r=n;void 0!==this._continuedAtMap[r].continuedAt;){if(r=this._continuedAtMap[r].continuedAt,void 0===this._ixNodeMap[r]){console.log("Unresolvable continuedAt reference: "+r);break}this._continuedAtMap[r]=this._continuedAtMap[r]||{},this._continuedAtMap[r].continuationOf=n,i.push(this._ixNodeMap[r])}this._ixNodeMap[n].continuations=i}}},D.prototype._addDocumentSetTabs=function(){if(this._report.isDocumentSet()){r()("#ixv .ixds-tabs").show();for(var e=this._report.documentSetFiles(),t=this,n=0;n<e.length;n++)r()('<div class="tab">').text(e[n]).prop("title",e[n]).data("ix-doc-id",n).click((function(){t.selectDocument(r()(this).data("ix-doc-id"))})).appendTo(r()("#ixv #viewer-pane .ixds-tabs .tab-area"));r()("#ixv #viewer-pane .ixds-tabs .tab-area .tab").eq(0).addClass("active")}},D.prototype._preProcessiXBRL=function(e,t,n){var i=P(e.nodeName).toUpperCase(),o="FOOTNOTE"==i;if(1!=e.nodeType||"NONNUMERIC"!=i&&"NONFRACTION"!=i&&"CONTINUATION"!=i&&!o){if(1==e.nodeType&&"HIDDEN"==i)n=!0;else if(1==e.nodeType&&e.hasAttribute("style")){const n=/(?:^|\s|;)-(?:sec|esef)-ix-hidden:\s*([^\s;]+)/;var A=e.getAttribute("style").match(n);if(A){l=A[1];(s=r()(e)).addClass("ixbrl-element").data("ivid",[l]),(a=this._ixNodeMap[l])?(a.wrapperNode=s,a.docIndex=t):this._ixNodeMap[l]=new C(l,s,t)}}}else{var a,s=r()(),l=e.getAttribute("id");if(!n){s=r()(e).closest("td,th").eq(0);const t=r()(e).text();if(1==s.length&&t.length>0){const e=r()(s).text(),n=e.indexOf(t),i=e.substring(0,n)+e.substring(n+t.length);/[0-9A-Za-z]/.test(i)&&(s=r()())}if(0==s.length){for(var c="<span>",u=e.getElementsByTagName("*"),d=0;d<u.length;d++)if("block"===r()(u[d]).css("display")){c="<div>";break}r()(e).wrap(c),s=r()(e).parent()}var f=s.data("ivid")||[];f.push(l),s.addClass("ixbrl-element").data("ivid",f)}(a=this._ixNodeMap[l])||(a=new C(l,s,t),this._ixNodeMap[l]=a),e.getAttribute("continuedAt")&&(this._continuedAtMap[l]={isFact:"CONTINUATION"!=i,continuedAt:e.getAttribute("continuedAt")}),"CONTINUATION"==i&&r()(s).addClass("ixbrl-continuation"),"NONFRACTION"==i&&r()(s).addClass("ixbrl-element-nonfraction"),"NONNUMERIC"==i&&(r()(s).addClass("ixbrl-element-nonnumeric"),e.hasAttribute("escape")&&e.getAttribute("escape").match(/^(true|1)$/)&&(a.escaped=!0)),o&&(r()(s).addClass("ixbrl-element-footnote"),a.footnote=!0)}for(d=0;d<e.childNodes.length;d++)this._preProcessiXBRL(e.childNodes[d],t,n)},D.prototype._postProcessiXBRL=function(e){var t=this;r()(e).find(".ixbrl-element").each((function(n,i){var o=r()(i).data("ivid"),A=t._report.getItemById(o);A&&(t._postProcessiXBRLNode(e,i,A),A._ixNode.continuations.forEach(n=>t._postProcessiXBRLNode(e,n.wrapperNode[0],A)))}))},D.prototype._postProcessiXBRLNode=function(e,t,n){var i;if(n&&n.hasValidationResults()&&r()(t).addClass("inline-fact-with-message"),n){var o=n.getLabel("std")||n.conceptName();n.concept().isTaxonomyExtension()?(r()(t).attr("ix-title",`<i>${f(o)}</i> (Extension)`),i=!0):(r()(t).attr("ix-title",o),i=!1)}else console.log(`Fact with id '${id}' is not found in the report data`);var A=r()("span,div",t);"SPAN"!==P(t.nodeName)&&0!==A.length||(A=r()(t)),A.tooltip({html:i,container:e,title:function(){return r()(this).attr("ix-title")||r()(this).parents(".ixbrl-element").attr("ix-title")}})},D.prototype._applyStyles=function(){var e=r()("<style>").prop("type","text/css").text(n(14).toString()).appendTo(this._iframes.contents().find("head"));this._iv.callPluginMethod("updateViewerStyleElements",e)},D.prototype.contents=function(){return this._iframes.contents()},D.prototype._selectAdjacentTag=function(e){var t,n=r()(".ixbrl-element:not(.ixbrl-continuation)",this._contents),i=r()(".ixbrl-selected:not(.ixbrl-continuation)",this._contents);t=1==i.length?n.eq((n.index(i.first())+e)%n.length):e>0?n.first():n.last(),this.showDocumentForItemId(t.data("ivid")[0]),this.showElement(t),this.selectElement(t,this._ixIdsForElement(t))},D.prototype._bindHandlers=function(){var e=this;r()(".ixbrl-element",this._contents).click((function(t){t.stopPropagation(),e.selectElementByClick(r()(this))})).mouseenter((function(t){e._mouseEnter(r()(this))})).mouseleave((function(t){e._mouseLeave(r()(this))})),r()("body",this._contents).click((function(t){e.selectElement(null)})),r()("#iframe-container .zoom-in").click((function(){e.zoomIn()})),r()("#iframe-container .zoom-out").click((function(){e.zoomOut()}))},D.prototype.selectNextTag=function(){this._selectAdjacentTag(1)},D.prototype.selectPrevTag=function(){this._selectAdjacentTag(-1)},D.prototype.showElement=function(e){if(e[0]!=this._currentShowElement){this._currentShowElement=e[0];var t=e.find("span").first();t.length?this.scrollIntoViewIfNeeded(t):this.scrollIntoViewIfNeeded(e)}},D.prototype.scrollIntoViewIfNeeded=function(e){if(Element.prototype.scrollIntoViewIfNeeded)e[0].scrollIntoViewIfNeeded(!0);else{var t=this._iframes.contents().scrollTop(),n=t+this._iframes.height(),i=e.offset().top,o=i+e.height();if(i<t||o>n){var A=function e(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"html":case"BODY":case"body":return t.ownerDocument.body;case"#document":return t.body}const{overflow:n,overflowX:i,overflowY:r}=h(t);return/(auto|scroll|overlay)/.test(n+r+i)?t:e(function(e){return"HTML"===e.nodeName||"html"===e.nodeName?e:e.parentNode||e.host}(t))}(e[0]);"absolute"!==h(A,"position")&&(A=this._iframes.contents()),r()(A).scrollTop(e.offset().top-this._iframes.height()/2)}}},D.prototype.showAndSelectElement=function(e){this.scrollIfNotVisible(e)},D.prototype.clearHighlighting=function(){r()("body",this._iframes.contents()).find(".ixbrl-element").removeClass("ixbrl-selected").removeClass("ixbrl-related").removeClass("ixbrl-linked-highlight")},D.prototype.highlightElements=function(e){this.clearHighlighting(),e.addClass("ixbrl-selected")},D.prototype._ixIdsForElement=function(e){var t=e.data("ivid");if(e.hasClass("ixbrl-continuation")){t=[...t];for(var n=0;n<t.length;n++){const e=this._continuedAtMap[t[n]];void 0!==e&&(t[n]=e.continuationOf)}}return t},D.prototype.selectElement=function(e,t){if(null!==e){var n=this._ixIdsForElement(e)[0];this.onSelect.fire(n,t)}else this.onSelect.fire(null)},D.prototype.selectElementByClick=function(e){var t=[],n=this;e.parents(".ixbrl-element").addBack().each((function(){t=t.concat(n._ixIdsForElement(r()(this)))})),this.selectElement(e,t)},D.prototype._mouseEnter=function(e){var t=e.data("ivid")[0];this.onMouseEnter.fire(t)},D.prototype._mouseLeave=function(e){var t=e.data("ivid")[0];this.onMouseLeave.fire(t)},D.prototype.highlightRelatedFact=function(e){this.elementForFact(e).addClass("ixbrl-related")},D.prototype.highlightRelatedFacts=function(e){this.elementsForFacts(e).addClass("ixbrl-related")},D.prototype.clearRelatedHighlighting=function(e){r()(".ixbrl-related",this._contents).removeClass("ixbrl-related")},D.prototype.elementForFact=function(e){return this.elementForItemId(e.id)},D.prototype.elementForItemId=function(e){return this._ixNodeMap[e].wrapperNode},D.prototype.elementsForItemIds=function(e){var t=this;return r()(r.a.map(e,(function(e,n){return t._ixNodeMap[e].wrapperNode.get()})))},D.prototype.elementsForFacts=function(e){return this.elementsForItemIds(r.a.map(e,(function(e){return e.id})))},D.prototype.highlightItem=function(e){var t=this._ixNodeMap[e].continuationIds();this.highlightElements(this.elementsForItemIds([e].concat(t)))},D.prototype.showItemById=function(e){if(null!==e){let t=this.elementForItemId(e);this.showDocumentForItemId(e),t.length>0&&this.showElement(t)}},D.prototype.highlightAllTags=function(e,t){var n={};r.a.each(t,(function(e,t){n[t]=e}));var i=this._report,o=this;e?r()(".ixbrl-element:not(.ixbrl-continuation)",this._contents).each((function(){var e=r()(this).data("ivid")[0],t=o._ixNodeMap[e],A=o.elementsForItemIds([e].concat(t.continuationIds()));if(A.addClass("ixbrl-highlight"),!t.footnote){var a=i.getItemById(e);if(a){var s=n[a.conceptQName().prefix];void 0!==s&&A.addClass("ixbrl-highlight-"+s)}else r()(this).addClass("ixbrl-highlight-missing")}})):r()(".ixbrl-element",this._contents).removeClass((function(e,t){return(t.match(/(^|\s)ixbrl-highlight\S*/g)||[]).join(" ")}))},D.prototype._zoom=function(){var e=this._contents.scrollTop(),t=r()("html",this._contents).height();r()("body",this._contents).css("zoom",this.scale);var n=r()("html",this._contents).height();this._contents.scrollTop(n*e/t)},D.prototype.zoomIn=function(){this.scale*=1.1,this._zoom()},D.prototype.zoomOut=function(){this.scale/=1.1,this._zoom()},D.prototype.factsInSameTable=function(e){var t=this.elementForFact(e),n=[];return t.closest("table").find(".ixbrl-element").each((function(e,t){n=n.concat(r()(this).data("ivid"))})),n},D.prototype.linkedHighlightFact=function(e){this.elementForFact(e).addClass("ixbrl-linked-highlight")},D.prototype.clearLinkedHighlightFact=function(e){this.elementForFact(e).removeClass("ixbrl-linked-highlight")},D.prototype._setTitle=function(e){r()("#top-bar .document-title").text(r()("head title",this._iframes.eq(e).contents()).text())},D.prototype.showDocumentForItemId=function(e){this.selectDocument(this._ixNodeMap[e].docIndex)},D.prototype.selectDocument=function(e){r()("#ixv #viewer-pane .ixds-tabs .tab").removeClass("active").eq(e).addClass("active"),this._iframes.height(0).eq(e).height("100%"),this._setTitle(e)};var E=n(5),O=n.n(E);function I(e){this._report=e,this.buildSearchIndex()}function N(e){this._fact=e}I.prototype.buildSearchIndex=function(){var e=[],t={},n=this._report.facts();this.periods={};for(var i=0;i<n.length;i++){var r=n[i],o={id:r.id},A=r.getLabel("std");o.concept=r.conceptQName().localname,o.doc=r.getLabel("doc"),o.date=r.periodTo(),o.startDate=r.periodFrom();t=r.dimensions();for(var a in t)this._report.getConcept(a).isTypedDimension?null!==t[a]&&(A+=" "+t[a]):A+=" "+this._report.getLabel(t[a],"std");o.label=A,o.ref=r.concept().referenceValuesAsString();const l=r.widerConcepts();l.length>0&&(o.widerConcept=this._report.qname(l[0]).localname,o.widerLabel=this._report.getLabel(l[0],"std"),o.widerDoc=this._report.getLabel(l[0],"doc")),e.push(o);var s=r.period();s&&(this.periods[s.key()]=s.toString())}this._searchIndex=O()((function(){this.ref("id"),this.field("label"),this.field("concept"),this.field("startDate"),this.field("date"),this.field("doc"),this.field("ref"),this.field("widerLabel"),this.field("widerDoc"),this.field("widerConcept"),e.forEach((function(e){this.add(e)}),this)}))},I.prototype.search=function(e){var t=this._searchIndex.search(e.searchString),n=[],i=this;return t.forEach((t,r)=>{try{var o=i._report.getItemById(t.ref);!(o.isHidden()?e.showHiddenFacts:e.showVisibleFacts)||"*"!=e.periodFilter&&o.period().key()!=e.periodFilter||"*"!=e.conceptTypeFilter&&e.conceptTypeFilter!=(o.isNumeric()?"numeric":"text")||n.push({fact:o,score:t.score})}catch(e){console.error(e)}}),n},N.prototype.calculationFacts=function(){var e=this._fact,t=e.report();if(!this._conceptToFact){var n=t.getChildRelationships(e.conceptName(),"calc"),i={};r.a.each(n,(function(n,o){if(i[n]={},o.length>0){var A=t.getAlignedFacts(e,{c:r.a.map(o,(e,t)=>e.t)});r.a.each(A,(e,t)=>p(i[n],t.conceptName(),{})[t.id]=t)}})),this._conceptToFact=i}return this._conceptToFact},N.prototype.hasCalculations=function(){var e=this.calculationFacts();return Object.keys(e).length>0},N.prototype.elrs=function(){var e=this.calculationFacts(),t={};return r.a.each(e,(function(e,n){Object.keys(n).length>0&&(t[e]=e.match(/[^\/]*$/)[0])})),t},N.prototype.bestELRForFactSet=function(e){var t=this.calculationFacts(),n="",i=-1;return r.a.each(t,(function(t,o){var A=0;r.a.each(o,(function(t,n){var i=0;r.a.each(n,(function(t,n){r.a.inArray(t,e)>-1&&(i=1)})),A+=i})),A/Object.keys(o).length>i&&(i=A/Object.keys(o).length,n=t)})),n},N.prototype.resolvedCalculation=function(e){var t=[],n=this.calculationFacts()[e],i=this._fact.report().getChildRelationships(this._fact.conceptName(),"calc")[e];return r.a.each(i,(function(e,i){var r;r=1==i.w?"+":-1==i.w?"-":i.w,t.push({weightSign:r,weight:i.w,facts:n[i.t],concept:i.t})})),t};var F=n(6),L=n.n(F);function R(){this._chart=r()("#ixv #chart");var e=this;r()(".close",this._chart).click((function(){e.close()})),r()(document).bind("keyup",(function(t){27===t.keyCode&&e.close()}))}function j(e,t){this._elt=e;var n=this;t=t||{},this.type=t.type||"dropdown",e.find(".menu-title").click((function(t){e.find(".content-container").toggle(),t.stopPropagation()})),r()("html").click((function(t){0===r()(".content",e).find(r()(t.target)).length&&n.close()}))}function z(e){this._contents=r()('<div class="accordian"></div>'),this.onSelect=r.a.Callbacks(),this.options=e||{},this.options.onSelect&&this.onSelect.add(e.onSelect)}function B(e){this._items=e}R.prototype.close=function(){r()(".dialog-mask").hide(),this._chart.hide()},R.prototype._multiplierDescription=function(e){return{0:"",3:"'000s",6:"millions",9:"billions"}[e]},R.prototype._chooseMultiplier=function(e){var t=0;r.a.each(e,(function(e,n){var i=Number(n.value());i>t&&(t=i)}));for(var n=0;t>1e3&&n<9;)t/=1e3,n+=3;return n},R.prototype.dataSetColour=function(e){return["#66cc00","#0094ff","#fbad17"][e]},R.prototype.addAspect=function(e){this._analyseDims.push(e),this._showAnalyseDimensionChart()},R.prototype.removeAspect=function(e){var t=[];r.a.each(this._analyseDims,(function(n,i){i!=e&&t.push(i)})),this._analyseDims=t,this._showAnalyseDimensionChart()},R.prototype.analyseDimension=function(e,t){this._analyseFact=e,this._analyseDims=t,this._showAnalyseDimensionChart()},R.prototype._showAnalyseDimensionChart=function(){var e=this._analyseFact,t=this._analyseDims,n=this,i=this._chart;r()("canvas",i).remove(),r()("<canvas>").appendTo(r()(".chart-container",i)),r()(".dialog-mask").show(),i.show();var o={};t[0]&&(o[t[0]]=null),t[1]&&(o[t[1]]=null);var A=e.report().deduplicate(e.report().getAlignedFacts(e,o)),a=new x,s=new x;r.a.each(A,(function(e,n){t[0]&&a.add(n.aspect(t[0])),t[1]&&s.add(n.aspect(t[1]))}));for(var l=a.uniqueValues(),c=s.uniqueValues(),d=this._chooseMultiplier(A),f=e.unit().valueLabel()+" "+this._multiplierDescription(d),h=[],p=[],g=0;g<(t[0]?l.length:1);g++){h.push(t[0]?u(l[g].valueLabel("std")||"",40):"");for(var m=0;m<(t[1]?c.length:1);m++){p[m]=p[m]||{label:t[1]?c[m].valueLabel():"",data:[],backgroundColor:this.dataSetColour(m),borderColor:this.dataSetColour(m)};o={};t[0]&&(o[t[0]]=l[g].value()),t[1]&&(o[t[1]]=c[m].value());var v=e.report().getAlignedFacts(e,o);v.length>0?p[m].data[g]=v[0].value()/10**d:p[m].data[g]=0}}r()(".other-aspects",i).empty();var y=[];for(const o of e.aspects())if("c"!=o.name()){var b=r()("<div>").addClass("other-aspect").appendTo(r()(".other-aspects",i));r.a.inArray(o.name(),t)>-1?b.addClass("selected").text(o.label()+": *").click((function(){n.removeAspect(o.name())})):("u"!=o.name()&&y.push(o.valueLabel()),b.text(o.label()+": "+o.valueLabel()),t.length<2&&b.addClass("addable").click((function(){n.addAspect(o.name())})))}t[1]||(t[0]||(h[0]=y.join(", ")),p[0].label=y.join(", ")),n.setChartSize();var w=r()("canvas",i),_=new L.a(w,{type:"bar",data:{labels:h,datasets:p},options:{responsive:!0,maintainAspectRatio:!1,scales:{yAxes:[{ticks:{beginAtZero:!0},scaleLabel:{display:!0,labelString:f}}],xAxes:[{ticks:{autoSkip:!1}}]}}});r()(window).resize((function(){n.setChartSize(),_.resize()}))},R.prototype.setChartSize=function(){var e=this._chart,t=e.height()-r()(".other-aspects").height()-16;r()(".chart-container",e).height(t),r()("canvas",e).attr("height",t).height(t)},j.prototype.reset=function(){this._elt.find(".content").empty()},j.prototype.close=function(){"dropdown"==this.type&&this._elt.find(".content-container").hide()},j.prototype._add=function(e,t){var n;void 0!==t&&(n=this._elt.find(".content > div").filter((function(){return r()(this).data("iv-menu-item-name")==t}))),void 0!==n&&n.length>0?n.after(e):e.appendTo(this._elt.find(".content"))},j.prototype.addCheckboxItem=function(e,t,n,i){var o=this,A=r()("<label></label>").addClass("menu-checkbox").addClass("item").text(e).data("iv-menu-item-name",n).prepend(r()('<input type="checkbox"></input>').change((function(){t(r()(this).prop("checked")),o.close()}))).append(r()("<span></span>").addClass("checkmark"));this._add(A,i)},j.prototype.addCheckboxGroup=function(e,t,n,i,o,A){var a=this,s=r()('<div class="group"></div>').data("iv-menu-item-name",o);this._add(s,A),r.a.each(e,(function(e,A){var l=r()("<label></label>").addClass("menu-checkbox").addClass("item").text(t[A]).prepend(r()('<input type="radio"></input>').attr({name:o,value:A}).change((function(){i(r()(this).val()),a.close()}))).append(r()("<span></span>").addClass("checkmark")).appendTo(s);A==n&&l.find("input").prop("checked",!0)}))},z.prototype.addCard=function(e,t,n,i){var o=this,A=r()('<div class="card"></div>').append(r()('<div class="title"></div>').append(e).click((function(){var e=r()(this).closest(".card");e.hasClass("active")?o.options.alwaysOpen||e.removeClass("active"):(e.closest(".accordian").find(".card").removeClass("active"),e.addClass("active"),o.onSelect.fire(e.data("accordian-card-id")))}))).append(r()('<div class="body"></div>').append(t)).appendTo(this._contents);null!==i&&A.data("accordian-card-id",i),n&&A.addClass("active")},z.prototype.contents=function(){return this.options.alwaysOpen&&0==this._contents.find(".card.active").length&&this._contents.find(".card").first().addClass("active"),this.options.dissolveSingle&&1==this._contents.children().length?this._contents.children().first().find(".body"):this._contents},B.prototype._allDimensions=function(){for(var e={},t=this._items.filter(e=>e instanceof _),n=0;n<t.length;n++)for(var i=Object.keys(t[n].dimensions()),r=0;r<i.length;r++)e[i[r]]=!0;return Object.keys(e)},B.prototype.minimallyUniqueLabel=function(e){if(!this._minimallyUniqueLabels){for(var t=this._items.filter(e=>e instanceof _),n={},i=["c","p"].concat(this._allDimensions()),r=0;r<t.length;r++){var o=t[r];n[o.id]=[];for(var A=0;A<i.length;A++){var a=o.aspect(i[A]);n[o.id].push(a?a.valueLabel():null)}}var s={};for(A=0;A<i.length;A++){var l={};for(r=0;r<t.length;r++)l[n[t[r].id][A]]=!0;var c={};if(Object.keys(l).length>1){for(r=0;r<t.length;r++){var u=n[f=t[r].id][A],d=s[f]||[];null!==u&&d.push(u),d.length>0&&(s[f]=d,c[d.join(", ")]=!0)}if(Object.keys(c).length==t.length)break}}if(Object.keys(s).length<t.length)for(r=0;r<t.length;r++){var f=t[r].id;(d=s[f]||[]).unshift(n[f][0]),s[f]=d}this._items.filter(e=>e instanceof w).forEach(e=>{s[e.id]=[e.title]}),this._minimallyUniqueLabels=s}return this._minimallyUniqueLabels[e.id].join(", ")};function W(e){r()(n(15)).prependTo("body");var t=n(17).toString();r()('<style id="ixv-style"></style>').prop("type","text/css").text(t).appendTo("head"),r()('<link id="ixv-favicon" type="image/x-icon" rel="shortcut icon" />').attr("href",n(18)).appendTo("head"),this._iv=e,this._chart=new R,this._viewerOptions=new S,r()("#inspector .controls .search-button").click((function(){r()(this).closest("#inspector").toggleClass("search-mode")})),r()("#inspector-head .back").click((function(){r()(this).closest("#inspector").removeClass("search-mode")})),this._toolbarMenu=new j(r()("#toolbar-highlight-menu")),this.buildToolbarHighlightMenu(),this._optionsMenu=new j(r()("#display-options-menu")),this.buildDisplayOptionsMenu();var i=this;r()(window).on("message",(function(e){i.handleMessage(e)}))}function H(e){var t=r()(e);t.click((function(){var e=t.closest(".collapsible-section");e.toggleClass("collapsed"),e.hasClass("collapsed")?e.find(".collapsible-body").first().slideUp(250):e.find(".collapsible-body").first().slideDown(250)}))}function V(e,t,n){if(t.length>0){var i=r()('<div class="collapsible-section"></div>'),o=(n=r()('<h4 class="collapsible-header"></h4>').text(n),r()('<div class="collapsible-body validation-result"></div>').html(function(e){let t="";return r.a.each(e,(function(e,n){let i="";switch(n.severity){case 0:i="green";break;case 1:i="yellow";break;case 2:i="red"}t+=`<p class='fab-container'><div class='fab ${i}'></div><span class='fab-text'>${f(n.rule)} : ${f(n.message.trim())}</span></p>\n`})),t}(t)));i.append(n),i.append(o),e.append(i),H(i)}}function Y(){this._plugins=[],this.inspector=new W(this),this.viewer=null,this._width=void 0}W.prototype.initialize=function(e){var t=this;return new Promise((function(n,i){t._report=e,e.setViewerOptions(t._viewerOptions),t._iv.setProgress("Building search index").then(()=>{t._search=new I(e),t.setupSearchControls(),t.buildDisplayOptionsMenu(),t.buildGeneralErrors(),r.a.each(r()(".collapsible-header"),(function(e,t){H(t)})),t.buildToolbarHighlightMenu(),n()})}))},W.prototype.setViewer=function(e){this._viewer=e,e.onSelect.add((e,t)=>this.selectItem(e,t)),e.onMouseEnter.add(e=>this.viewerMouseEnter(e)),e.onMouseLeave.add(e=>this.viewerMouseLeave(e)),r()(".ixbrl-next-tag").click(()=>e.selectNextTag()),r()(".ixbrl-prev-tag").click(()=>e.selectPrevTag()),this.search()},W.prototype.handleFactDeepLink=function(){location.hash.startsWith("#f-")&&this.selectItem(location.hash.slice(3))},W.prototype.handleMessage=function(e){var t=e.originalEvent.data,n=JSON.parse(t);"SHOW_FACT"==n.task?this.selectItem(n.factId):console.log("Not handling unsupported task message: "+t)},W.prototype.updateURLFragment=function(){this._currentItem?location.hash="#f-"+this._currentItem.id:location.hash=""},W.prototype.buildDisplayOptionsMenu=function(){if(this._optionsMenu.reset(),this._report){var e=this.selectDefaultLanguage();this._optionsMenu.addCheckboxGroup(this._report.availableLanguages(),this._report.languageNames(),e,e=>{this.setLanguage(e),this.update()},"select-language"),this.setLanguage(e)}this._iv.callPluginMethod("extendDisplayOptionsMenu",this._optionsMenu)},W.prototype.buildToolbarHighlightMenu=function(){this._toolbarMenu.reset(),this._toolbarMenu.addCheckboxItem("XBRL Elements",e=>this.highlightAllTags(e),"highlight-tags"),this._iv.callPluginMethod("extendToolbarHighlightMenu",this._toolbarMenu)},W.prototype.buildGeneralErrors=function(){var e=r()("#inspector .validation-results");if(e.empty(),this._report.hasValidationResults()){var t=this._report.getValidationResults().filter(e=>"xbrl"==e.type),n=this._report.getValidationResults().filter(e=>"bestPractices"==e.type),i=this._report.getValidationResults().filter(e=>"calculation"==e.type),o=this._report.getValidationResults().filter(e=>"formula"==e.type);V(e,t,"XBRL Errors"),V(e,n,"Best Practices warnings"),V(e,i,"Calculation"),V(e,o,"Formula results")}else r()('<div class="no-fact-selected"><span>No issues</span></div>').appendTo("#inspector .validation-results")},W.prototype.highlightAllTags=function(e){this._viewer.highlightAllTags(e,this._report.namespaceGroups())},W.prototype.factListRow=function(e){var t=r()('<div class="fact-list-item"></div>').click(()=>this.selectItem(e.id)).dblclick(()=>r()("#inspector").removeClass("search-mode")).mousedown((function(e){e.detail>1&&e.preventDefault()})).mouseenter(()=>this._viewer.linkedHighlightFact(e)).mouseleave(()=>this._viewer.clearLinkedHighlightFact(e)).data("ivid",e.id);r()('<div class="select-icon"></div>').click(()=>{this.selectItem(e.id),r()("#inspector").removeClass("search-mode")}).appendTo(t),r()('<div class="title"></div>').text(e.getLabel("std")||e.conceptName()).appendTo(t),r()('<div class="dimension"></div>').text(e.period().toString()).appendTo(t);for(const n of e.aspects())n.isTaxonomyDefined()&&!n.isNil()&&r()('<div class="dimension"></div>').text(n.valueLabel()).appendTo(t);return e.isHidden()&&r()('<div class="hidden">Hidden fact</div>').appendTo(t),t},W.prototype.addResults=function(e,t,n){r()(".more-results",e).remove();for(var i=n;i<t.length;i++){if(i-n>=100){r()('<div class="more-results"></div>').text("Show more results").click(()=>this.addResults(e,t,i)).appendTo(e);break}this.factListRow(t[i].fact).appendTo(e)}},W.prototype.searchSpec=function(){var e={};return e.searchString=r()("#ixbrl-search").val(),e.showVisibleFacts=r()("#search-visible-fact-filter").prop("checked"),e.showHiddenFacts=r()("#search-hidden-fact-filter").prop("checked"),e.periodFilter=r()("#search-filter-period").val(),e.conceptTypeFilter=r()("#search-filter-concept-type").val(),e},W.prototype.setupSearchControls=function(e){r()(".search-controls input, .search-controls select").change(()=>this.search()),r()(".search-controls div.filter-toggle").click(()=>r()(".search-controls").toggleClass("show-filters")),r()(".search-controls .search-filters .reset").click(()=>this.resetSearchFilters()),r()("#search-filter-period").empty().append(r()('<option value="*">ALL</option>'));for(const e in this._search.periods)r()("<option>").attr("value",e).text(this._search.periods[e]).appendTo("#search-filter-period")},W.prototype.resetSearchFilters=function(){r()("#search-filter-period").val("*"),r()("#search-filter-concept-type").val("*"),r()("#search-hidden-fact-filter").prop("checked",!0),r()("#search-visible-fact-filter").prop("checked",!0),this.search()},W.prototype.search=function(){var e=this.searchSpec(),t=this._search.search(e),n=this._viewer,i=r()("#inspector .search-results .results");r()("div",i).remove(),n.clearRelatedHighlighting();var o=r()("#inspector .search-results .search-overlay");t.length>0?(o.hide(),this.addResults(i,t,0)):(r()(".title",o).text("No Match Found"),r()(".text",o).text("Try again with different keywords"),o.show()),""!=e.searchString&&n.highlightRelatedFacts(r.a.map(t,e=>e.fact))},W.prototype.updateCalculation=function(e,t){r()(".calculations .tree").empty().append(this._calculationHTML(e,t))},W.prototype.updateValidationResults=function(e){if(r()("#inspector .fact-validation-results").empty(),e.hasValidationResults()){var t=e.getValidationResults().filter(e=>"xbrl"==e.type),n=e.getValidationResults().filter(e=>"bestPractices"==e.type),i=e.getValidationResults().filter(e=>"calculation"==e.type),o=e.getValidationResults().filter(e=>"formula"==e.type),A=r()("#inspector .fact-validation-results");V(A,t,"XBRL Errors"),V(A,n,"Best Practices warnings"),V(A,i,"Calculation"),V(A,o,"Formula results")}else r()('<div class="no-fact-selected"><span>No issues</span></div>').appendTo("#inspector .fact-validation-results")},W.prototype.updateFootnotes=function(e){r()(".footnotes").empty().append(this._footnotesHTML(e))},W.prototype._anchorList=function(e,t){var n=r()("<ul></ul>");if(t.length>0)for(const i of t){const t=this._report.getAlignedFacts(e,{c:i}),o=this._report.getLabel(i,"std",!0);r()("<li></li>").appendTo(n).append(this.factLinkHTML(o,t))}else r()("<li><i>None</i></li>").appendTo(n);return n},W.prototype.updateAnchoring=function(e){this._report.usesAnchoring()?(r()(".anchoring").show(),r()(".anchoring .collapsible-body .anchors-wider").empty().append(this._anchorList(e,e.widerConcepts())),r()(".anchoring .collapsible-body .anchors-narrower").empty().append(this._anchorList(e,e.narrowerConcepts()))):r()(".anchoring").hide()},W.prototype._referencesHTML=function(e){e.concept();var t=new z;return r.a.each(e.concept().references(),(function(e,n){var i=r()("<span></span>").text(n[0].value),o=r()('<table class="fact-properties"><tbody></tbody></table>'),A=o.find("tbody");r.a.each(n,(function(e,t){var n=r()("<tr>").append(r()("<th></th>").text(t.part)).append(r()("<td></td>").text(t.value)).appendTo(A);"URI"==t.part&&(n.addClass("uri"),n.find("td").wrapInner(r()("<a>").attr("href",t.value)))})),t.addCard(i,o,0==e)})),t.contents()},W.prototype._calculationHTML=function(e,t){var n=new N(e);if(!n.hasCalculations())return"";var i=this._viewer.factsInSameTable(e);t||(t=n.bestELRForFactSet(i));var o=this._report,A=this._viewer,a=this,s=new z;return r.a.each(n.elrs(),(function(i,l){var c=o.getRoleLabel(l,a._viewerOptions),u=n.resolvedCalculation(i),d=r()("<div></div>");r.a.each(u,(function(e,t){var n=r()("<div></div>").addClass("item").append(r()("<span></span>").addClass("weight").text(t.weightSign+" ")).append(r()("<span></span>").addClass("concept-name").text(o.getLabel(t.concept,"std"))).appendTo(d);t.facts&&(n.addClass("calc-fact-link"),n.data("ivid",t.facts),n.click((function(){a.selectItem(Object.values(t.facts)[0].id)})),n.mouseenter((function(){r.a.each(t.facts,(function(e,t){A.linkedHighlightFact(t)}))})),n.mouseleave((function(){r.a.each(t.facts,(function(e,t){A.clearLinkedHighlightFact(t)}))})),r.a.each(t.facts,(function(e,t){A.highlightRelatedFact(t)})))})),r()("<div></div>").addClass("item").addClass("total").append(r()("<span></span>").addClass("weight")).append(r()("<span></span>").addClass("concept-name").text(e.getLabel("std"))).appendTo(d),s.addCard(r()("<span></span>").text(c),d,i==t)})),s.contents()},W.prototype._footnotesHTML=function(e){var t=r()("<div></div>");return r.a.each(e.footnotes(),(e,n)=>{var i,o,A,a;r()("<div></div>").addClass("block-list-item").appendTo(t).text((i=n.textContent(),o=120,A=u(i,o),a=A[0],A.length>1&&(a+=" …"),a)).mouseenter(()=>this._viewer.linkedHighlightFact(n)).mouseleave(()=>this._viewer.clearLinkedHighlightFact(n)).click(()=>this.selectItem(n.id))}),t},W.prototype.viewerMouseEnter=function(e){r()(".calculations .item").filter((function(){return r.a.inArray(e,r.a.map(r()(this).data("ivid"),(function(e){return e.id})))>-1})).addClass("linked-highlight"),r()("#inspector .search .results tr").filter((function(){return r()(this).data("ivid")==e})).addClass("linked-highlight")},W.prototype.viewerMouseLeave=function(e){r()(".calculations .item").removeClass("linked-highlight"),r()("#inspector .search .results tr").removeClass("linked-highlight")},W.prototype.describeChange=function(e,t){if(t.value()>0==e.value()>0&&Math.abs(e.value())+Math.abs(t.value())>0){var n=100*(t.value()-e.value())/e.value();return n>=0?c(n,1)+"% increase on ":c(-1*n,1)+"% decrease on "}return"From "+e.readableValue()+" in "},W.prototype.factLinkHTML=function(e,t){var n=r()("<span></span>").text(e);return t.length>0&&n.addClass("fact-link").click(()=>this.selectItem(t[0].id)).mouseenter(()=>r.a.each(t,(e,t)=>this._viewer.linkedHighlightFact(t))).mouseleave(()=>r.a.each(t,(e,t)=>this._viewer.clearLinkedHighlightFact(t))),n},W.prototype.getPeriodIncrease=function(e){this._viewer;if(e.isNumeric()){var t,n=this._report.getAlignedFacts(e,{p:null});e.periodTo()&&r.a.each(n,(function(n,i){i.periodTo()&&i.periodTo()<e.periodTo()&&(!t||i.periodTo()>t.periodTo())&&e.isEquivalentDuration(i)&&(t=i)}));var i="";if(t){var o=this._report.getAlignedFacts(t);i=r()("<span></span>").text(this.describeChange(t,e)).append(this.factLinkHTML(t.periodString(),o))}else i=r()("<i>").text("No prior fact")}else i=r()("<i>").text("n/a").attr("title","non-numeric fact");r()(".fact-properties tr.change td").html(i)},W.prototype._updateValue=function(e,t,n){const i=e.readableValue();var o=i;if(t)r()("tr.value",n).removeClass("truncated");else{var A=u(i,120);A.length>1?(r()("tr.value",n).addClass("truncated"),r()("tr.value .show-all",n).off().click(()=>this._updateValue(i,!0,n))):r()("tr.value",n).removeClass("truncated"),o=A[0]}var a=r()("tr.value td .value",n).empty().text(o);e instanceof _&&e.isNil()&&a.wrapInner("<i></i>")},W.prototype._updateEntityIdentifier=function(e,t){var n=y.identifierURLForFact(e),i=r()("tr.entity-identifier td",t);i.empty(),n?(r()("<span></span>").text("["+y.identifierNameForFact(e)+"] ").appendTo(i),r()('<a target="_blank"></a>').attr("href",n).text(e.identifier().localname).appendTo(i)):i.text(e.f.a.e)},W.prototype._footnoteFactsHTML=function(){var e=r()("<div></div>");return this._currentItem.facts.forEach(t=>{e.append(this.factListRow(t))}),e},W.prototype._selectionSummaryAccordian=function(){var e=this._currentItem,t=new z({onSelect:e=>this.switchItem(e),alwaysOpen:!0,dissolveSingle:!0}),i=new B(this._currentItemList);return r.a.each(this._currentItemList,(o,A)=>{var a,s=i.minimallyUniqueLabel(A);if(A instanceof _){a=r()(n(19)),r()(".std-label",a).text(A.getLabel("std",!0)||A.conceptName()),r()(".documentation",a).text(A.getLabel("doc")||""),r()("tr.concept td",a).text(A.conceptName()),r()("tr.period td",a).text(A.periodString()),A.isNumeric()&&r()("tr.period td",a).append(r()("<span></span>").addClass("analyse").text("").click(()=>this._chart.analyseDimension(A,["p"]))),this._updateEntityIdentifier(A,a),this._updateValue(A,!1,a);var l=r()("tr.accuracy td",a).empty().append(A.readableAccuracy());A.isNumeric()&&!A.isNil()||l.wrapInner("<i></i>"),r()("#dimensions",a).empty();for(const e of A.aspects())if(e.isTaxonomyDefined()){var c=r()('<div class="dimension"></div>').text(e.label()).appendTo(r()("#dimensions",a));A.isNumeric()&&c.append(r()("<span></span>").addClass("analyse").text("").click(()=>this._chart.analyseDimension(A,[t])));var u=r()('<div class="dimension-value"></div>').text(e.valueLabel()).appendTo(c);e.isNil()&&u.wrapInner("<i></i>")}}else A instanceof w&&(a=r()(n(20)),this._updateValue(A.textContent(),!1,a));t.addCard(s,a,A.id==e.id,A.id)}),t},W.prototype.update=function(){var e=this,t=e._currentItem;if(t)if(r()("#inspector").removeClass("no-fact-selected").removeClass("hidden-fact"),r()("#inspector .fact-inspector").empty().append(this._selectionSummaryAccordian().contents()),t instanceof _){r()("#inspector").removeClass("footnote-mode"),this.updateCalculation(t),this.updateFootnotes(t),this.updateAnchoring(t),r()("div.references").empty().append(this._referencesHTML(t)),r()("#inspector .search-results .fact-list-item").removeClass("selected"),r()("#inspector .search-results .fact-list-item").filter((function(){return r()(this).data("ivid")==t.id})).addClass("selected");for(var n=t.duplicates(),i=0,o=n.length,A=0;A<o;A++)t.id==n[A].id&&(i=A);r()(".duplicates .text").text(i+1+" of "+o);this._viewer;r()(".duplicates .prev").off().click(()=>e.selectItem(n[(i+o-1)%o].id)),r()(".duplicates .next").off().click(()=>e.selectItem(n[(i+1)%o].id)),this.getPeriodIncrease(t),this.updateValidationResults(t),t.isHidden()&&r()("#inspector").addClass("hidden-fact")}else t instanceof w&&(r()("#inspector").addClass("footnote-mode"),r()("#inspector .footnote-details .footnote-facts").empty().append(this._footnoteFactsHTML()));else r()("#inspector").removeClass("footnote-mode"),r()("#inspector").addClass("no-fact-selected");this.updateURLFragment()},W.prototype.selectItem=function(e,t){if(void 0===t)this._currentItemList=[this._report.getItemById(e)];else{this._currentItemList=[];for(var n=0;n<t.length;n++)this._currentItemList.push(this._report.getItemById(t[n]))}this.switchItem(e)},W.prototype.switchItem=function(e){null!==e?(this._currentItem=this._report.getItemById(e),this._viewer.showItemById(e),this._viewer.highlightItem(e)):(this._currentItem=null,this._viewer.clearHighlighting()),this.update(),this.update()},W.prototype.preferredLanguages=function(){var e=new URLSearchParams(window.location.search);if(e.has("lang"))return[e.get("lang")];var t=window.navigator.languages||[window.navigator.language||window.navigator.userLanguage];return 0!=t.length&&t[0]?t:["en"]},W.prototype.selectDefaultLanguage=function(){var e=this._report.availableLanguages();for(var t of this.preferredLanguages())for(var n of e)if(n.toLowerCase()==t.toLowerCase())return n;return this._report.availableLanguages()[0]},W.prototype.setLanguage=function(e){this._viewerOptions.language=e,this.update(),this._search.buildSearchIndex()},Y.prototype.registerPlugin=function(e){this._plugins.push(e)},Y.prototype.callPluginMethod=function(e,...t){r.a.each(this._plugins,(function(n,i){"function"==typeof i[e]&&i[e](...t)}))},Y.prototype.pluginPromise=function(e,...t){var n=this;return new Promise((function(i,r){(async function(){for(var i=0;i<n._plugins.length;i++){var r=n._plugins[i];"function"==typeof r[e]&&await r[e](...t)}})().then(()=>{i()})}))},Y.prototype._reparentDocument=function(){var e=r()("#ixv #iframe-container"),t=r()("<iframe />").appendTo(e)[0],n=t.contentDocument||t.contentWindow.document;return n.open(),n.write("<!DOCTYPE html><html><head><title></title></head><body></body></html>"),n.close(),r()("head").children().not("script").not("style#ixv-style").not("link#ixv-favicon").appendTo(r()(t).contents().find("head")),r()("body script").appendTo(r()("body")),r()("body").children().not("script").not("#ixv").not(e).appendTo(r()(t).contents().find("body")),r()("body").removeAttr("style"),t},Y.prototype._getTaxonomyData=function(){for(var e=document.body.children.length-1;e>=0;e--){var t=document.body.children[e];if("SCRIPT"==t.tagName.toUpperCase()&&"application/x.ixbrl-viewer+json"==t.getAttribute("type"))return t.innerText}return null},Y.prototype._checkDocumentSetBrowserSupport=function(){"file:"==document.location.protocol&&alert("Displaying iXBRL document sets from local files is not supported.  Please view the viewer files using a web server.")},Y.prototype.load=function(){var e=this,t=this.inspector;setTimeout((function(){var n=r()(e._reparentDocument());if(window.hasOwnProperty("xbrldata__"))o=new T(window.xbrldata__);else{var i=e._getTaxonomyData();if(null===i)return r()("#ixv .loader .text").text("Error: Could not find viewer data"),void r()("#ixv .loader").removeClass("loading");var o=new T(JSON.parse(i))}if(o.isDocumentSet()){for(var a=o.documentSetFiles(),s=1;s<a.length;s++){var l=r()("<iframe />").attr("src",a[s]).appendTo("#ixv #iframe-container");n=n.add(l)}e._checkDocumentSetBrowserSupport()}var c=setInterval((function(){var i=!0;if(n.each((function(e){var t=this.contentDocument||this.contentWindow.document;("complete"!=t.readyState&&"interactive"!=t.readyState||0==r()(this).contents().find("body").children().length)&&(i=!1)})),i){clearInterval(c);var a=e.viewer=new D(e,n,o);a.initialize().then(()=>t.initialize(o)).then(()=>{t.setViewer(a),A()("#viewer-pane").resizable({edges:{left:!1,right:".resize",bottom:!1,top:!1},restrictEdges:{outer:"parent",endOnly:!0},restrictSize:{min:{width:100}}}).on("resizestart",(function(e){r()("#ixv").css("pointer-events","none")})).on("resizemove",(function(e){var t=e.target,n=100*e.rect.width/r()(t).parent().width();t.style.width=n+"%",r()("#inspector").css("width",100-n+"%")})).on("resizeend",(function(e){r()("#ixv").css("pointer-events","auto")})),r()("#ixv .loader").remove(),r()(window).on("resize",(function(){e._width&&r()("#viewer-pane").css("width",window.innerWidth-e._width+"px")})),t.handleFactDeepLink()})}}))}),0)},Y.prototype.setProgress=function(e){return new Promise((t,n)=>{window.requestAnimationFrame((function(){r()("#ixv .loader .text").text(e),window.requestAnimationFrame((function(){t()}))}))})},r()((function(){(new Y).load()}))}]);