!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,(function(e,t){"use strict";var n=[],r=Object.getPrototypeOf,i=n.slice,a=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},o=n.push,s=n.indexOf,l={},c=l.toString,u=l.hasOwnProperty,h=u.toString,f=h.call(Object),d={},p=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},g=function(e){return null!=e&&e===e.window},m=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,a=(n=n||m).createElement("script");if(a.text=e,t)for(r in v)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&a.setAttribute(r,i);n.head.appendChild(a).parentNode.removeChild(a)}function y(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var w="3.7.1",_=/HTML$/i,S=function(e,t){return new S.fn.init(e,t)};function x(e){var t=!!e&&"length"in e&&e.length,n=y(e);return!p(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+E+")"+E+"*"),q=new RegExp(E+"|>"),z=new RegExp(F),H=new RegExp("^"+O+"$"),W={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+E+"*(even|odd|(([+-]|)(\\d*)n|)"+E+"*(?:([+-]|)"+E+"*(\\d+)|))"+E+"*\\)|)","i"),bool:new RegExp("^(?:"+D+")$","i"),needsContext:new RegExp("^"+E+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+E+"*((?:-\\d)?\\d*)"+E+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,$=new RegExp("\\\\[\\da-fA-F]{1,6}"+E+"?|\\\\([^\\r\\n\\f])","g"),K=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))},J=function(){le()},Q=fe((function(e){return!0===e.disabled&&C(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(n=i.call(M.childNodes),M.childNodes),n[M.childNodes.length].nodeType}catch(t){m={apply:function(e,t){L.apply(e,i.call(t))},call:function(e){L.apply(e,i.call(arguments,1))}}}function Z(e,t,n,r){var i,a,o,s,l,u,h,g=t&&t.ownerDocument,b=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==b&&9!==b&&11!==b)return n;if(!r&&(le(t),t=t||c,f)){if(11!==b&&(l=X.exec(e)))if(i=l[1]){if(9===b){if(!(o=t.getElementById(i)))return n;if(o.id===i)return m.call(n,o),n}else if(g&&(o=g.getElementById(i))&&Z.contains(t,o)&&o.id===i)return m.call(n,o),n}else{if(l[2])return m.apply(n,t.getElementsByTagName(e)),n;if((i=l[3])&&t.getElementsByClassName)return m.apply(n,t.getElementsByClassName(i)),n}if(!(I[e+" "]||p&&p.test(e))){if(h=e,g=t,1===b&&(q.test(e)||U.test(e))){for((g=Y.test(e)&&se(t.parentNode)||t)==t&&d.scope||((s=t.getAttribute("id"))?s=S.escapeSelector(s):t.setAttribute("id",s=v)),a=(u=ue(e)).length;a--;)u[a]=(s?"#"+s:":scope")+" "+he(u[a]);h=u.join(",")}try{return m.apply(n,g.querySelectorAll(h)),n}catch(t){I(e,!0)}finally{s===v&&t.removeAttribute("id")}}}return be(e.replace(P,"$1"),t,n,r)}function ee(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function te(e){return e[v]=!0,e}function ne(e){var t=c.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(t){return C(t,"input")&&t.type===e}}function ie(e){return function(t){return(C(t,"input")||C(t,"button"))&&t.type===e}}function ae(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&&Q(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function oe(e){return te((function(t){return t=+t,te((function(n,r){for(var i,a=e([],n.length,t),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))}))}))}function se(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var t,n=e?e.ownerDocument||e:M;return n!=c&&9===n.nodeType&&n.documentElement&&(h=(c=n).documentElement,f=!S.isXMLDoc(c),g=h.matches||h.webkitMatchesSelector||h.msMatchesSelector,h.msMatchesSelector&&M!=c&&(t=c.defaultView)&&t.top!==t&&t.addEventListener("unload",J),d.getById=ne((function(e){return h.appendChild(e).id=S.expando,!c.getElementsByName||!c.getElementsByName(S.expando).length})),d.disconnectedMatch=ne((function(e){return g.call(e,"*")})),d.scope=ne((function(){return c.querySelectorAll(":scope")})),d.cssHas=ne((function(){try{return c.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),d.getById?(r.filter.ID=function(e){var t=e.replace($,K);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace($,K);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var n,r,i,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(i=t.getElementsByName(e),r=0;a=i[r++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),r.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},r.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&f)return t.getElementsByClassName(e)},p=[],ne((function(e){var t;h.appendChild(e).innerHTML="",e.querySelectorAll("[selected]").length||p.push("\\["+E+"*(?:value|"+D+")"),e.querySelectorAll("[id~="+v+"-]").length||p.push("~="),e.querySelectorAll("a#"+v+"+*").length||p.push(".#.+[+~]"),e.querySelectorAll(":checked").length||p.push(":checked"),(t=c.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),(t=c.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||p.push("\\["+E+"*name"+E+"*="+E+"*(?:''|\"\")")})),d.cssHas||p.push(":has"),p=p.length&&new RegExp(p.join("|")),R=function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===c||e.ownerDocument==M&&Z.contains(M,e)?-1:t===c||t.ownerDocument==M&&Z.contains(M,t)?1:o?s.call(o,e)-s.call(o,t):0:4&n?-1:1)}),c}for(t in Z.matches=function(e,t){return Z(e,null,null,t)},Z.matchesSelector=function(e,t){if(le(e),f&&!I[t+" "]&&(!p||!p.test(t)))try{var n=g.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){I(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace($,K),e[3]=(e[3]||e[4]||e[5]||"").replace($,K),"~="===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]||Z.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]&&Z.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return W.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&z.test(n)&&(t=ue(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($,K).toLowerCase();return"*"===e?function(){return!0}:function(e){return C(e,t)}},CLASS:function(e){var t=w[e+" "];return t||(t=new RegExp("(^|"+E+")"+e+"("+E+"|$)"))&&w(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(r){var i=Z.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function B(e,t,n){return p(t)?S.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?S.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?S.grep(e,(function(e){return-1)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:U.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:m,!0)),F.test(r[1])&&S.isPlainObject(t))for(r in t)p(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=m.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):p(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,j=S(m);var q=/^(?:parents|prev(?:Until|All))/,z={children:!0,contents:!0,next:!0,prev:!0};function H(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter((function(){for(var e=0;e\x20\t\r\n\f]*)/i,xe=/^$|^module$|\/(?:java|ecma)script/i;ye=m.createDocumentFragment().appendChild(m.createElement("div")),(we=m.createElement("input")).setAttribute("type","radio"),we.setAttribute("checked","checked"),we.setAttribute("name","t"),ye.appendChild(we),d.checkClone=ye.cloneNode(!0).cloneNode(!0).lastChild.checked,ye.innerHTML="",d.noCloneChecked=!!ye.cloneNode(!0).lastChild.defaultValue,ye.innerHTML="",d.option=!!ye.lastChild;var Ce={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ke(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&C(e,t)?S.merge([e],n):n}function Ae(e,t){for(var n=0,r=e.length;n",""]);var Te=/<|&#?\w+;/;function Ee(e,t,n,r,i){for(var a,o,s,l,c,u,h=t.createDocumentFragment(),f=[],d=0,p=e.length;d\s*$/g;function Fe(e,t){return C(e,"table")&&C(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Be(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function je(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ue(e,t){var n,r,i,a,o,s;if(1===t.nodeType){if(ie.hasData(e)&&(s=ie.get(e).events))for(i in ie.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),m.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Jt,Qt=[],Zt=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Qt.pop()||S.expando+"_"+Tt.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",(function(t,n,r){var i,a,o,s=!1!==t.jsonp&&(Zt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=p(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Zt,"$1"+i):!1!==t.jsonp&&(t.url+=(Et.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||S.error(i+" was not called"),o[0]},t.dataTypes[0]="json",a=e[i],e[i]=function(){o=arguments},r.always((function(){void 0===a?S(e).removeProp(i):e[i]=a,t[i]&&(t.jsonpCallback=n.jsonpCallback,Qt.push(i)),o&&p(a)&&a(o[0]),o=a=void 0})),"script"})),d.createHTMLDocument=((Jt=m.implementation.createHTMLDocument("").body).innerHTML="
",2===Jt.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(d.createHTMLDocument?((r=(t=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,t.head.appendChild(r)):t=m),a=!n&&[],(i=F.exec(e))?[t.createElement(i[1])]:(i=Ee([e],t,a),a&&a.length&&S(a).remove(),S.merge([],i.childNodes)));var r,i,a},S.fn.load=function(e,t,n){var r,i,a,o=this,s=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,a||[e.responseText,t,e])}))}),this},S.expr.pseudos.animated=function(e){return S.grep(S.timers,(function(t){return e===t.elem})).length},S.offset={setOffset:function(e,t,n){var r,i,a,o,s,l,c=S.css(e,"position"),u=S(e),h={};"static"===c&&(e.style.position="relative"),s=u.offset(),a=S.css(e,"top"),l=S.css(e,"left"),("absolute"===c||"fixed"===c)&&-1<(a+l).indexOf("auto")?(o=(r=u.position()).top,i=r.left):(o=parseFloat(a)||0,i=parseFloat(l)||0),p(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(h.top=t.top-s.top+o),null!=t.left&&(h.left=t.left-s.left+i),"using"in t?t.using.call(e,h):u.css(h)}},S.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){S.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.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,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===S.css(e,"position");)e=e.offsetParent;return e||fe}))}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;S.fn[e]=function(r){return J(this,(function(e,r,i){var a;if(g(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===i)return a?a[t]:e[r];a?a.scrollTo(n?a.pageXOffset:i,n?i:a.pageYOffset):e[r]=i}),e,r,arguments.length)}})),S.each(["top","left"],(function(e,t){S.cssHooks[t]=$e(d.pixelPosition,(function(e,n){if(n)return n=Ye(e,t),He.test(n)?S(e).position()[t]+"px":n}))})),S.each({Height:"height",Width:"width"},(function(e,t){S.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){S.fn[r]=function(i,a){var o=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===a?"margin":"border");return J(this,(function(t,n,i){var a;return g(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===i?S.css(t,n,s):S.style(t,n,i,s)}),t,o?i:void 0,o)}}))})),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){S.fn[t]=function(e){return this.on(t,e)}})),S.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,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),S.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){S.fn[t]=function(e,n){return 0=n.clientWidth&&r>=n.clientHeight})),u=0c[e]&&!t.escapeWithReference&&(r=z(h[n],c[e]-("right"===e?h.width:h.height))),Z({},n,r)}};return u.forEach((function(e){var t=-1===["left","top"].indexOf(e)?"secondary":"primary";h=ee({},h,f[t](e))})),e.offsets.popper=h,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,r=t.reference,i=e.placement.split("-")[0],a=H,o=-1!==["top","bottom"].indexOf(i),s=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return n[s]a(r[s])&&(e.offsets.popper[l]=a(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,n){var r;if(!j(e.instance.modifiers,"arrow","keepTogether"))return e;var i=n.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 a=e.placement.split("-")[0],o=e.offsets,s=o.popper,l=o.reference,c=-1!==["left","right"].indexOf(a),u=c?"height":"width",h=c?"Top":"Left",f=h.toLowerCase(),d=c?"left":"top",g=c?"bottom":"right",m=C(i)[u];l[g]-ms[g]&&(e.offsets.popper[f]+=l[f]+m-s[g]),e.offsets.popper=p(e.offsets.popper);var v=l[f]+l[u]/2-m/2,b=t(e.instance.popper),y=parseFloat(b["margin"+h]),w=parseFloat(b["border"+h+"Width"]),_=v-e.offsets.popper[f]-y-w;return _=V(z(s[u]-m,_),0),e.arrowElement=i,e.offsets.arrow=(Z(r={},f,W(_)),Z(r,d,""),r),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(I(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=w(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=k(r),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case ie:o=[r,i];break;case ae:o=U(r);break;case oe:o=U(r,!0);break;default:o=t.behavior}return o.forEach((function(s,l){if(r!==s||o.length===l+1)return e;r=e.placement.split("-")[0],i=k(r);var c=e.offsets.popper,u=e.offsets.reference,h=H,f="left"===r&&h(c.right)>h(u.left)||"right"===r&&h(c.left)h(u.top)||"bottom"===r&&h(c.top)h(n.right),g=h(c.top)h(n.bottom),v="left"===r&&d||"right"===r&&p||"top"===r&&g||"bottom"===r&&m,b=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(b&&"start"===a&&d||b&&"end"===a&&p||!b&&"start"===a&&g||!b&&"end"===a&&m),w=!!t.flipVariationsByContent&&(b&&"start"===a&&p||b&&"end"===a&&d||!b&&"start"===a&&m||!b&&"end"===a&&g),_=y||w;(f||v||_)&&(e.flipped=!0,(f||v)&&(r=o[l+1]),_&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=ee({},e.offsets.popper,A(e.instance.popper,e.offsets.reference,e.placement)),e=E(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],r=e.offsets,i=r.popper,a=r.reference,o=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[o?"left":"top"]=a[n]-(s?i[o?"width":"height"]:0),e.placement=k(t),e.offsets.popper=p(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!j(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=T(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.rightwindow.devicePixelRatio||!te),p="bottom"===n?"top":"bottom",m="right"===r?"left":"right",v=R("transform");if(l="bottom"==p?"HTML"===u.nodeName?-u.clientHeight+d.bottom:-h.height+d.bottom:d.top,s="right"==m?"HTML"===u.nodeName?-u.clientWidth+d.right:-h.width+d.right:d.left,c&&v)f[v]="translate3d("+s+"px, "+l+"px, 0)",f[p]=0,f[m]=0,f.willChange="transform";else{var b="bottom"==p?-1:1,y="right"==m?-1:1;f[p]=l*b,f[m]=s*y,f.willChange=p+", "+m}var w={"x-placement":e.placement};return e.attributes=ee({},w,e.attributes),e.styles=ee({},f,e.styles),e.arrowStyles=ee({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){return B(e.instance.popper,e.styles),function(e,t){Object.keys(t).forEach((function(n){!1===t[n]?e.removeAttribute(n):e.setAttribute(n,t[n])}))}(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&B(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var a=x(i,t,e,n.positionFixed),o=S(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),B(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},se})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap={},e.jQuery,e.Popper)}(this,(function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=r(t),a=r(n);function o(e,t){for(var n=0;n=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};h.jQueryDetection(),i.default.fn.emulateTransitionEnd=function(e){var t=this,n=!1;return i.default(this).one(h.TRANSITION_END,(function(){n=!0})),setTimeout((function(){n||h.triggerTransitionEnd(t)}),e),this},i.default.event.special[h.TRANSITION_END]={bindType:u,delegateType:u,handle:function(e){if(i.default(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}};var f="bs.alert",d=i.default.fn.alert,p=function(){function e(e){this._element=e}var t=e.prototype;return t.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},t.dispose=function(){i.default.removeData(this._element,f),this._element=null},t._getRootElement=function(e){var t=h.getSelectorFromElement(e),n=!1;return t&&(n=document.querySelector(t)),n||(n=i.default(e).closest(".alert")[0]),n},t._triggerCloseEvent=function(e){var t=i.default.Event("close.bs.alert");return i.default(e).trigger(t),t},t._removeElement=function(e){var t=this;if(i.default(e).removeClass("show"),i.default(e).hasClass("fade")){var n=h.getTransitionDurationFromElement(e);i.default(e).one(h.TRANSITION_END,(function(n){return t._destroyElement(e,n)})).emulateTransitionEnd(n)}else this._destroyElement(e)},t._destroyElement=function(e){i.default(e).detach().trigger("closed.bs.alert").remove()},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this),r=n.data(f);r||(r=new e(this),n.data(f,r)),"close"===t&&r[t](this)}))},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},s(e,null,[{key:"VERSION",get:function(){return"4.6.2"}}]),e}();i.default(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',p._handleDismiss(new p)),i.default.fn.alert=p._jQueryInterface,i.default.fn.alert.Constructor=p,i.default.fn.alert.noConflict=function(){return i.default.fn.alert=d,p._jQueryInterface};var g="bs.button",m=i.default.fn.button,v="active",b='[data-toggle^="button"]',y='input:not([type="hidden"])',w=".btn",_=function(){function e(e){this._element=e,this.shouldAvoidTriggerChange=!1}var t=e.prototype;return t.toggle=function(){var e=!0,t=!0,n=i.default(this._element).closest('[data-toggle="buttons"]')[0];if(n){var r=this._element.querySelector(y);if(r){if("radio"===r.type)if(r.checked&&this._element.classList.contains(v))e=!1;else{var a=n.querySelector(".active");a&&i.default(a).removeClass(v)}e&&("checkbox"!==r.type&&"radio"!==r.type||(r.checked=!this._element.classList.contains(v)),this.shouldAvoidTriggerChange||i.default(r).trigger("change")),r.focus(),t=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(t&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(v)),e&&i.default(this._element).toggleClass(v))},t.dispose=function(){i.default.removeData(this._element,g),this._element=null},e._jQueryInterface=function(t,n){return this.each((function(){var r=i.default(this),a=r.data(g);a||(a=new e(this),r.data(g,a)),a.shouldAvoidTriggerChange=n,"toggle"===t&&a[t]()}))},s(e,null,[{key:"VERSION",get:function(){return"4.6.2"}}]),e}();i.default(document).on("click.bs.button.data-api",b,(function(e){var t=e.target,n=t;if(i.default(t).hasClass("btn")||(t=i.default(t).closest(w)[0]),!t||t.hasAttribute("disabled")||t.classList.contains("disabled"))e.preventDefault();else{var r=t.querySelector(y);if(r&&(r.hasAttribute("disabled")||r.classList.contains("disabled")))return void e.preventDefault();"INPUT"!==n.tagName&&"LABEL"===t.tagName||_._jQueryInterface.call(i.default(t),"toggle","INPUT"===n.tagName)}})).on("focus.bs.button.data-api blur.bs.button.data-api",b,(function(e){var t=i.default(e.target).closest(w)[0];i.default(t).toggleClass("focus",/^focus(in)?$/.test(e.type))})),i.default(window).on("load.bs.button.data-api",(function(){for(var e=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),t=0,n=e.length;t0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var t=e.prototype;return t.next=function(){this._isSliding||this._slide(A)},t.nextWhenVisible=function(){var e=i.default(this._element);!document.hidden&&e.is(":visible")&&"hidden"!==e.css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide(T)},t.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(h.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.to=function(e){var t=this;this._activeElement=this._element.querySelector(P);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)i.default(this._element).one(E,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var r=e>n?A:T;this._slide(r,this._items[e])}},t.dispose=function(){i.default(this._element).off(".bs.carousel"),i.default.removeData(this._element,x),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(e){return e=l({},I,e),h.typeCheckConfig(S,e,R),e},t._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t>0&&this.prev(),t<0&&this.next()}},t._addEventListeners=function(){var e=this;this._config.keyboard&&i.default(this._element).on("keydown.bs.carousel",(function(t){return e._keydown(t)})),"hover"===this._config.pause&&i.default(this._element).on("mouseenter.bs.carousel",(function(t){return e.pause(t)})).on("mouseleave.bs.carousel",(function(t){return e.cycle(t)})),this._config.touch&&this._addTouchEventListeners()},t._addTouchEventListeners=function(){var e=this;if(this._touchSupported){var t=function(t){e._pointerEvent&&M[t.originalEvent.pointerType.toUpperCase()]?e.touchStartX=t.originalEvent.clientX:e._pointerEvent||(e.touchStartX=t.originalEvent.touches[0].clientX)},n=function(t){e._pointerEvent&&M[t.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=t.originalEvent.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};i.default(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",(function(e){return e.preventDefault()})),this._pointerEvent?(i.default(this._element).on("pointerdown.bs.carousel",(function(e){return t(e)})),i.default(this._element).on("pointerup.bs.carousel",(function(e){return n(e)})),this._element.classList.add("pointer-event")):(i.default(this._element).on("touchstart.bs.carousel",(function(e){return t(e)})),i.default(this._element).on("touchmove.bs.carousel",(function(t){return function(t){e.touchDeltaX=t.originalEvent.touches&&t.originalEvent.touches.length>1?0:t.originalEvent.touches[0].clientX-e.touchStartX}(t)})),i.default(this._element).on("touchend.bs.carousel",(function(e){return n(e)})))}},t._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},t._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(e)},t._getItemByDirection=function(e,t){var n=e===A,r=e===T,i=this._getItemIndex(t),a=this._items.length-1;if((r&&0===i||n&&i===a)&&!this._config.wrap)return t;var o=(i+(e===T?-1:1))%this._items.length;return-1===o?this._items[this._items.length-1]:this._items[o]},t._triggerSlideEvent=function(e,t){var n=this._getItemIndex(e),r=this._getItemIndex(this._element.querySelector(P)),a=i.default.Event("slide.bs.carousel",{relatedTarget:e,direction:t,from:r,to:n});return i.default(this._element).trigger(a),a},t._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var t=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));i.default(t).removeClass(k);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&i.default(n).addClass(k)}},t._updateInterval=function(){var e=this._activeElement||this._element.querySelector(P);if(e){var t=parseInt(e.getAttribute("data-interval"),10);t?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=t):this._config.interval=this._config.defaultInterval||this._config.interval}},t._slide=function(e,t){var n,r,a,o=this,s=this._element.querySelector(P),l=this._getItemIndex(s),c=t||s&&this._getItemByDirection(e,s),u=this._getItemIndex(c),f=Boolean(this._interval);if(e===A?(n="carousel-item-left",r="carousel-item-next",a="left"):(n="carousel-item-right",r="carousel-item-prev",a="right"),c&&i.default(c).hasClass(k))this._isSliding=!1;else if(!this._triggerSlideEvent(c,a).isDefaultPrevented()&&s&&c){this._isSliding=!0,f&&this.pause(),this._setActiveIndicatorElement(c),this._activeElement=c;var d=i.default.Event(E,{relatedTarget:c,direction:a,from:l,to:u});if(i.default(this._element).hasClass("slide")){i.default(c).addClass(r),h.reflow(c),i.default(s).addClass(n),i.default(c).addClass(n);var p=h.getTransitionDurationFromElement(s);i.default(s).one(h.TRANSITION_END,(function(){i.default(c).removeClass(n+" "+r).addClass(k),i.default(s).removeClass("active "+r+" "+n),o._isSliding=!1,setTimeout((function(){return i.default(o._element).trigger(d)}),0)})).emulateTransitionEnd(p)}else i.default(s).removeClass(k),i.default(c).addClass(k),this._isSliding=!1,i.default(this._element).trigger(d);f&&this.cycle()}},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this).data(x),r=l({},I,i.default(this).data());"object"==typeof t&&(r=l({},r,t));var a="string"==typeof t?t:r.slide;if(n||(n=new e(this,r),i.default(this).data(x,n)),"number"==typeof t)n.to(t);else if("string"==typeof a){if(void 0===n[a])throw new TypeError('No method named "'+a+'"');n[a]()}else r.interval&&r.ride&&(n.pause(),n.cycle())}))},e._dataApiClickHandler=function(t){var n=h.getSelectorFromElement(this);if(n){var r=i.default(n)[0];if(r&&i.default(r).hasClass("carousel")){var a=l({},i.default(r).data(),i.default(this).data()),o=this.getAttribute("data-slide-to");o&&(a.interval=!1),e._jQueryInterface.call(i.default(r),a),o&&i.default(r).data(x).to(o),t.preventDefault()}}},s(e,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return I}}]),e}();i.default(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",L._dataApiClickHandler),i.default(window).on("load.bs.carousel.data-api",(function(){for(var e=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),t=0,n=e.length;t0&&(this._selector=o,this._triggerArray.push(a))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=e.prototype;return t.toggle=function(){i.default(this._element).hasClass(F)?this.hide():this.show()},t.show=function(){var t,n,r=this;if(!(this._isTransitioning||i.default(this._element).hasClass(F)||(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(e){return"string"==typeof r._config.parent?e.getAttribute("data-parent")===r._config.parent:e.classList.contains(B)}))).length&&(t=null),t&&(n=i.default(t).not(this._selector).data(O))&&n._isTransitioning))){var a=i.default.Event("show.bs.collapse");if(i.default(this._element).trigger(a),!a.isDefaultPrevented()){t&&(e._jQueryInterface.call(i.default(t).not(this._selector),"hide"),n||i.default(t).data(O,null));var o=this._getDimension();i.default(this._element).removeClass(B).addClass(j),this._element.style[o]=0,this._triggerArray.length&&i.default(this._triggerArray).removeClass(U).attr("aria-expanded",!0),this.setTransitioning(!0);var s="scroll"+(o[0].toUpperCase()+o.slice(1)),l=h.getTransitionDurationFromElement(this._element);i.default(this._element).one(h.TRANSITION_END,(function(){i.default(r._element).removeClass(j).addClass("collapse show"),r._element.style[o]="",r.setTransitioning(!1),i.default(r._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(l),this._element.style[o]=this._element[s]+"px"}}},t.hide=function(){var e=this;if(!this._isTransitioning&&i.default(this._element).hasClass(F)){var t=i.default.Event("hide.bs.collapse");if(i.default(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",h.reflow(this._element),i.default(this._element).addClass(j).removeClass("collapse show");var r=this._triggerArray.length;if(r>0)for(var a=0;a0},t._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e._config.offset(t.offsets,e._element)),t}:t.offset=this._config.offset,t},t._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),l({},e,this._config.popperConfig)},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this).data(X);if(n||(n=new e(this,"object"==typeof t?t:null),i.default(this).data(X,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},e._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var n=[].slice.call(document.querySelectorAll(re)),r=0,a=n.length;r0&&o--,40===t.which&&odocument.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add(de);var r=h.getTransitionDurationFromElement(this._dialog);i.default(this._element).off(h.TRANSITION_END),i.default(this._element).one(h.TRANSITION_END,(function(){e._element.classList.remove(de),n||i.default(e._element).one(h.TRANSITION_END,(function(){e._element.style.overflowY=""})).emulateTransitionEnd(e._element,r)})).emulateTransitionEnd(r),this._element.focus()}},t._showElement=function(e){var t=this,n=i.default(this._element).hasClass(he),r=this._dialog?this._dialog.querySelector(".modal-body"):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),i.default(this._dialog).hasClass("modal-dialog-scrollable")&&r?r.scrollTop=0:this._element.scrollTop=0,n&&h.reflow(this._element),i.default(this._element).addClass(fe),this._config.focus&&this._enforceFocus();var a=i.default.Event("shown.bs.modal",{relatedTarget:e}),o=function(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,i.default(t._element).trigger(a)};if(n){var s=h.getTransitionDurationFromElement(this._dialog);i.default(this._dialog).one(h.TRANSITION_END,o).emulateTransitionEnd(s)}else o()},t._enforceFocus=function(){var e=this;i.default(document).off(me).on(me,(function(t){document!==t.target&&e._element!==t.target&&0===i.default(e._element).has(t.target).length&&e._element.focus()}))},t._setEscapeEvent=function(){var e=this;this._isShown?i.default(this._element).on(ye,(function(t){e._config.keyboard&&27===t.which?(t.preventDefault(),e.hide()):e._config.keyboard||27!==t.which||e._triggerBackdropTransition()})):this._isShown||i.default(this._element).off(ye)},t._setResizeEvent=function(){var e=this;this._isShown?i.default(window).on(ve,(function(t){return e.handleUpdate(t)})):i.default(window).off(ve)},t._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){i.default(document.body).removeClass(ue),e._resetAdjustments(),e._resetScrollbar(),i.default(e._element).trigger(pe)}))},t._removeBackdrop=function(){this._backdrop&&(i.default(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(e){var t=this,n=i.default(this._element).hasClass(he)?he:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",n&&this._backdrop.classList.add(n),i.default(this._backdrop).appendTo(document.body),i.default(this._element).on(be,(function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"===t._config.backdrop?t._triggerBackdropTransition():t.hide())})),n&&h.reflow(this._backdrop),i.default(this._backdrop).addClass(fe),!e)return;if(!n)return void e();var r=h.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(h.TRANSITION_END,e).emulateTransitionEnd(r)}else if(!this._isShown&&this._backdrop){i.default(this._backdrop).removeClass(fe);var a=function(){t._removeBackdrop(),e&&e()};if(i.default(this._element).hasClass(he)){var o=h.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(h.TRANSITION_END,a).emulateTransitionEnd(o)}else a()}else e&&e()},t._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(e.left+e.right)
',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:{"*":["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:[]},popperConfig:null},Ue={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)"},qe={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},ze=function(){function e(e,t){if(void 0===a.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=e.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=i.default(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),i.default(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(i.default(this.getTipElement()).hasClass(Oe))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),i.default.removeData(this.element,this.constructor.DATA_KEY),i.default(this.element).off(this.constructor.EVENT_KEY),i.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&i.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},t.show=function(){var e=this;if("none"===i.default(this.element).css("display"))throw new Error("Please use show on visible elements");var t=i.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){i.default(this.element).trigger(t);var n=h.findShadowRoot(this.element),r=i.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!r)return;var o=this.getTipElement(),s=h.getUID(this.constructor.NAME);o.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&i.default(o).addClass(De);var l="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,c=this._getAttachment(l);this.addAttachmentClass(c);var u=this._getContainer();i.default(o).data(this.constructor.DATA_KEY,this),i.default.contains(this.element.ownerDocument.documentElement,this.tip)||i.default(o).appendTo(u),i.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new a.default(this.element,o,this._getPopperConfig(c)),i.default(o).addClass(Oe),i.default(o).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&i.default(document.body).children().on("mouseover",null,i.default.noop);var f=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,i.default(e.element).trigger(e.constructor.Event.SHOWN),"out"===t&&e._leave(null,e)};if(i.default(this.tip).hasClass(De)){var d=h.getTransitionDurationFromElement(this.tip);i.default(this.tip).one(h.TRANSITION_END,f).emulateTransitionEnd(d)}else f()}},t.hide=function(e){var t=this,n=this.getTipElement(),r=i.default.Event(this.constructor.Event.HIDE),a=function(){t._hoverState!==Ne&&n.parentNode&&n.parentNode.removeChild(n),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),i.default(t.element).trigger(t.constructor.Event.HIDDEN),null!==t._popper&&t._popper.destroy(),e&&e()};if(i.default(this.element).trigger(r),!r.isDefaultPrevented()){if(i.default(n).removeClass(Oe),"ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,i.default(this.tip).hasClass(De)){var o=h.getTransitionDurationFromElement(n);i.default(n).one(h.TRANSITION_END,a).emulateTransitionEnd(o)}else a();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(e){i.default(this.getTipElement()).addClass("bs-tooltip-"+e)},t.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},t.setContent=function(){var e=this.getTipElement();this.setElementContent(i.default(e.querySelectorAll(".tooltip-inner")),this.getTitle()),i.default(e).removeClass("fade show")},t.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=Ee(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?i.default(t).parent().is(e)||e.empty().append(t):e.text(i.default(t).text())},t.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},t._getPopperConfig=function(e){var t=this;return l({},{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)},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e.config.offset(t.offsets,e.element)),t}:t.offset=this.config.offset,t},t._getContainer=function(){return!1===this.config.container?document.body:h.isElement(this.config.container)?i.default(this.config.container):i.default(document).find(this.config.container)},t._getAttachment=function(e){return Be[e.toUpperCase()]},t._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach((function(t){if("click"===t)i.default(e.element).on(e.constructor.Event.CLICK,e.config.selector,(function(t){return e.toggle(t)}));else if("manual"!==t){var n=t===Fe?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,r=t===Fe?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;i.default(e.element).on(n,e.config.selector,(function(t){return e._enter(t)})).on(r,e.config.selector,(function(t){return e._leave(t)}))}})),this._hideModalHandler=function(){e.element&&e.hide()},i.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._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",""))},t._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||i.default(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),i.default(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?"focus":Fe]=!0),i.default(t.getTipElement()).hasClass(Oe)||t._hoverState===Ne?t._hoverState=Ne:(clearTimeout(t._timeout),t._hoverState=Ne,t.config.delay&&t.config.delay.show?t._timeout=setTimeout((function(){t._hoverState===Ne&&t.show()}),t.config.delay.show):t.show())},t._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||i.default(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),i.default(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?"focus":Fe]=!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())},t._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},t._getConfig=function(e){var t=i.default(this.element).data();return Object.keys(t).forEach((function(e){-1!==Le.indexOf(e)&&delete t[e]})),"number"==typeof(e=l({},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()),h.typeCheckConfig(Pe,e,this.constructor.DefaultType),e.sanitize&&(e.template=Ee(e.template,e.whiteList,e.sanitizeFn)),e},t._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},t._cleanTipClass=function(){var e=i.default(this.getTipElement()),t=e.attr("class").match(Me);null!==t&&t.length&&e.removeClass(t.join(""))},t._handlePopperPlacementChange=function(e){this.tip=e.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},t._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(i.default(e).removeClass(De),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this),r=n.data(Ie),a="object"==typeof t&&t;if((r||!/dispose|hide/.test(t))&&(r||(r=new e(this,a),n.data(Ie,r)),"string"==typeof t)){if(void 0===r[t])throw new TypeError('No method named "'+t+'"');r[t]()}}))},s(e,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return je}},{key:"NAME",get:function(){return Pe}},{key:"DATA_KEY",get:function(){return Ie}},{key:"Event",get:function(){return qe}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return Ue}}]),e}();i.default.fn.tooltip=ze._jQueryInterface,i.default.fn.tooltip.Constructor=ze,i.default.fn.tooltip.noConflict=function(){return i.default.fn.tooltip=Re,ze._jQueryInterface};var He="bs.popover",We=i.default.fn.popover,Ve=new RegExp("(^|\\s)bs-popover\\S+","g"),Ge=l({},ze.Default,{placement:"right",trigger:"click",content:"",template:''}),Xe=l({},ze.DefaultType,{content:"(string|element|function)"}),Ye={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},$e=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,c(t,n);var a=r.prototype;return a.isWithContent=function(){return this.getTitle()||this._getContent()},a.addAttachmentClass=function(e){i.default(this.getTipElement()).addClass("bs-popover-"+e)},a.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},a.setContent=function(){var e=i.default(this.getTipElement());this.setElementContent(e.find(".popover-header"),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(".popover-body"),t),e.removeClass("fade show")},a._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},a._cleanTipClass=function(){var e=i.default(this.getTipElement()),t=e.attr("class").match(Ve);null!==t&&t.length>0&&e.removeClass(t.join(""))},r._jQueryInterface=function(e){return this.each((function(){var t=i.default(this).data(He),n="object"==typeof e?e:null;if((t||!/dispose|hide/.test(e))&&(t||(t=new r(this,n),i.default(this).data(He,t)),"string"==typeof e)){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}}))},s(r,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return Ge}},{key:"NAME",get:function(){return"popover"}},{key:"DATA_KEY",get:function(){return He}},{key:"Event",get:function(){return Ye}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return Xe}}]),r}(ze);i.default.fn.popover=$e._jQueryInterface,i.default.fn.popover.Constructor=$e,i.default.fn.popover.noConflict=function(){return i.default.fn.popover=We,$e._jQueryInterface};var Ke="scrollspy",Je="bs.scrollspy",Qe=i.default.fn[Ke],Ze="active",et="position",tt=".nav, .list-group",nt={offset:10,method:"auto",target:""},rt={offset:"number",method:"string",target:"(string|element)"},it=function(){function e(e,t){var n=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" .nav-link,"+this._config.target+" .list-group-item,"+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,i.default(this._scrollElement).on("scroll.bs.scrollspy",(function(e){return n._process(e)})),this.refresh(),this._process()}var t=e.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?"offset":et,n="auto"===this._config.method?t:this._config.method,r=n===et?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(e){var t,a=h.getSelectorFromElement(e);if(a&&(t=document.querySelector(a)),t){var o=t.getBoundingClientRect();if(o.width||o.height)return[i.default(t)[n]().top+r,a]}return null})).filter(Boolean).sort((function(e,t){return e[0]-t[0]})).forEach((function(t){e._offsets.push(t[0]),e._targets.push(t[1])}))},t.dispose=function(){i.default.removeData(this._element,Je),i.default(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(e){if("string"!=typeof(e=l({},nt,"object"==typeof e&&e?e:{})).target&&h.isElement(e.target)){var t=i.default(e.target).attr("id");t||(t=h.getUID(Ke),i.default(e.target).attr("id",t)),e.target="#"+t}return h.typeCheckConfig(Ke,e,rt),e},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&e0)return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;)this._activeTarget!==this._targets[i]&&e>=this._offsets[i]&&(void 0===this._offsets[i+1]||e li > .active",ut=function(){function e(e){this._element=e}var t=e.prototype;return t.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&i.default(this._element).hasClass(st)||i.default(this._element).hasClass("disabled")||this._element.hasAttribute("disabled"))){var t,n,r=i.default(this._element).closest(".nav, .list-group")[0],a=h.getSelectorFromElement(this._element);if(r){var o="UL"===r.nodeName||"OL"===r.nodeName?ct:lt;n=(n=i.default.makeArray(i.default(r).find(o)))[n.length-1]}var s=i.default.Event("hide.bs.tab",{relatedTarget:this._element}),l=i.default.Event("show.bs.tab",{relatedTarget:n});if(n&&i.default(n).trigger(s),i.default(this._element).trigger(l),!l.isDefaultPrevented()&&!s.isDefaultPrevented()){a&&(t=document.querySelector(a)),this._activate(this._element,r);var c=function(){var t=i.default.Event("hidden.bs.tab",{relatedTarget:e._element}),r=i.default.Event("shown.bs.tab",{relatedTarget:n});i.default(n).trigger(t),i.default(e._element).trigger(r)};t?this._activate(t,t.parentNode,c):c()}}},t.dispose=function(){i.default.removeData(this._element,at),this._element=null},t._activate=function(e,t,n){var r=this,a=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?i.default(t).children(lt):i.default(t).find(ct))[0],o=n&&a&&i.default(a).hasClass("fade"),s=function(){return r._transitionComplete(e,a,n)};if(a&&o){var l=h.getTransitionDurationFromElement(a);i.default(a).removeClass("show").one(h.TRANSITION_END,s).emulateTransitionEnd(l)}else s()},t._transitionComplete=function(e,t,n){if(t){i.default(t).removeClass(st);var r=i.default(t.parentNode).find("> .dropdown-menu .active")[0];r&&i.default(r).removeClass(st),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}i.default(e).addClass(st),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),h.reflow(e),e.classList.contains("fade")&&e.classList.add("show");var a=e.parentNode;if(a&&"LI"===a.nodeName&&(a=a.parentNode),a&&i.default(a).hasClass("dropdown-menu")){var o=i.default(e).closest(".dropdown")[0];if(o){var s=[].slice.call(o.querySelectorAll(".dropdown-toggle"));i.default(s).addClass(st)}e.setAttribute("aria-expanded",!0)}n&&n()},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this),r=n.data(at);if(r||(r=new e(this),n.data(at,r)),"string"==typeof t){if(void 0===r[t])throw new TypeError('No method named "'+t+'"');r[t]()}}))},s(e,null,[{key:"VERSION",get:function(){return"4.6.2"}}]),e}();i.default(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(e){e.preventDefault(),ut._jQueryInterface.call(i.default(this),"show")})),i.default.fn.tab=ut._jQueryInterface,i.default.fn.tab.Constructor=ut,i.default.fn.tab.noConflict=function(){return i.default.fn.tab=ot,ut._jQueryInterface};var ht="bs.toast",ft=i.default.fn.toast,dt="show",pt="showing",gt="click.dismiss.bs.toast",mt={animation:!0,autohide:!0,delay:500},vt={animation:"boolean",autohide:"boolean",delay:"number"},bt=function(){function e(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var t=e.prototype;return t.show=function(){var e=this,t=i.default.Event("show.bs.toast");if(i.default(this._element).trigger(t),!t.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var n=function(){e._element.classList.remove(pt),e._element.classList.add(dt),i.default(e._element).trigger("shown.bs.toast"),e._config.autohide&&(e._timeout=setTimeout((function(){e.hide()}),e._config.delay))};if(this._element.classList.remove("hide"),h.reflow(this._element),this._element.classList.add(pt),this._config.animation){var r=h.getTransitionDurationFromElement(this._element);i.default(this._element).one(h.TRANSITION_END,n).emulateTransitionEnd(r)}else n()}},t.hide=function(){if(this._element.classList.contains(dt)){var e=i.default.Event("hide.bs.toast");i.default(this._element).trigger(e),e.isDefaultPrevented()||this._close()}},t.dispose=function(){this._clearTimeout(),this._element.classList.contains(dt)&&this._element.classList.remove(dt),i.default(this._element).off(gt),i.default.removeData(this._element,ht),this._element=null,this._config=null},t._getConfig=function(e){return e=l({},mt,i.default(this._element).data(),"object"==typeof e&&e?e:{}),h.typeCheckConfig("toast",e,this.constructor.DefaultType),e},t._setListeners=function(){var e=this;i.default(this._element).on(gt,'[data-dismiss="toast"]',(function(){return e.hide()}))},t._close=function(){var e=this,t=function(){e._element.classList.add("hide"),i.default(e._element).trigger("hidden.bs.toast")};if(this._element.classList.remove(dt),this._config.animation){var n=h.getTransitionDurationFromElement(this._element);i.default(this._element).one(h.TRANSITION_END,t).emulateTransitionEnd(n)}else t()},t._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this),r=n.data(ht);if(r||(r=new e(this,"object"==typeof t&&t),n.data(ht,r)),"string"==typeof t){if(void 0===r[t])throw new TypeError('No method named "'+t+'"');r[t](this)}}))},s(e,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"DefaultType",get:function(){return vt}},{key:"Default",get:function(){return mt}}]),e}();i.default.fn.toast=bt._jQueryInterface,i.default.fn.toast.Constructor=bt,i.default.fn.toast.noConflict=function(){return i.default.fn.toast=ft,bt._jQueryInterface},e.Alert=p,e.Button=_,e.Carousel=L,e.Collapse=V,e.Dropdown=se,e.Modal=Ce,e.Popover=$e,e.Scrollspy=it,e.Tab=ut,e.Toast=bt,e.Tooltip=ze,e.Util=h,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).metisMenu=t(e.$)}(this,(function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e);const n=(e=>{const t="transitionend",n={TRANSITION_END:"mmTransitionEnd",triggerTransitionEnd(n){e(n).trigger(t)},supportsTransitionEnd:()=>Boolean(t)};return e.fn.mmEmulateTransitionEnd=function(t){let r=!1;return e(this).one(n.TRANSITION_END,()=>{r=!0}),setTimeout(()=>{r||n.triggerTransitionEnd(this)},t),this},e.event.special[n.TRANSITION_END]={bindType:t,delegateType:t,handle(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}},n})(t.default),r="metisMenu",i="metisMenu",a=t.default.fn[r],o={toggle:!0,preventDefault:!0,triggerElement:"a",parentTrigger:"li",subMenu:"ul"},s="show.metisMenu",l="shown.metisMenu",c="hide.metisMenu",u="hidden.metisMenu",h="click.metisMenu.data-api",f="mm-active",d="mm-show",p="mm-collapse",g="mm-collapsing";class m{constructor(e,t){this.element=e,this.config={...o,...t},this.transitioning=null,this.init()}init(){const e=this,n=this.config,r=t.default(this.element);r.addClass("metismenu"),r.find(`${n.parentTrigger}.${f}`).children(n.triggerElement).attr("aria-expanded","true"),r.find(`${n.parentTrigger}.${f}`).parents(n.parentTrigger).addClass(f),r.find(`${n.parentTrigger}.${f}`).parents(n.parentTrigger).children(n.triggerElement).attr("aria-expanded","true"),r.find(`${n.parentTrigger}.${f}`).has(n.subMenu).children(n.subMenu).addClass(`${p} ${d}`),r.find(n.parentTrigger).not("."+f).has(n.subMenu).children(n.subMenu).addClass(p),r.find(n.parentTrigger).children(n.triggerElement).on(h,(function(r){const i=t.default(this);if("true"===i.attr("aria-disabled"))return;n.preventDefault&&"#"===i.attr("href")&&r.preventDefault();const a=i.parent(n.parentTrigger),o=a.siblings(n.parentTrigger),s=o.children(n.triggerElement);a.hasClass(f)?(i.attr("aria-expanded","false"),e.removeActive(a)):(i.attr("aria-expanded","true"),e.setActive(a),n.toggle&&(e.removeActive(o),s.attr("aria-expanded","false"))),n.onTransitionStart&&n.onTransitionStart(r)}))}setActive(e){t.default(e).addClass(f);const n=t.default(e).children(this.config.subMenu);n.length>0&&!n.hasClass(d)&&this.show(n)}removeActive(e){t.default(e).removeClass(f);const n=t.default(e).children(`${this.config.subMenu}.${d}`);n.length>0&&this.hide(n)}show(e){if(this.transitioning||t.default(e).hasClass(g))return;const r=t.default(e),i=t.default.Event(s);if(r.trigger(i),!i.isDefaultPrevented()){if(r.parent(this.config.parentTrigger).addClass(f),this.config.toggle){const e=r.parent(this.config.parentTrigger).siblings().children(`${this.config.subMenu}.${d}`);this.hide(e)}r.removeClass(p).addClass(g).height(0),this.setTransitioning(!0),r.height(e[0].scrollHeight).one(n.TRANSITION_END,()=>{this.config&&this.element&&(r.removeClass(g).addClass(`${p} ${d}`).height(""),this.setTransitioning(!1),r.trigger(l))}).mmEmulateTransitionEnd(350)}}hide(e){if(this.transitioning||!t.default(e).hasClass(d))return;const r=t.default(e),i=t.default.Event(c);if(r.trigger(i),i.isDefaultPrevented())return;r.parent(this.config.parentTrigger).removeClass(f),r.height(r.height())[0].offsetHeight,r.addClass(g).removeClass(p).removeClass(d),this.setTransitioning(!0);const a=()=>{this.config&&this.element&&(this.transitioning&&this.config.onTransitionEnd&&this.config.onTransitionEnd(),this.setTransitioning(!1),r.trigger(u),r.removeClass(g).addClass(p))};0===r.height()||"none"===r.css("display")?a():r.height(0).one(n.TRANSITION_END,a).mmEmulateTransitionEnd(350)}setTransitioning(e){this.transitioning=e}dispose(){t.default.removeData(this.element,i),t.default(this.element).find(this.config.parentTrigger).children(this.config.triggerElement).off(h),this.transitioning=null,this.config=null,this.element=null}static jQueryInterface(e){return this.each((function(){const n=t.default(this);let r=n.data(i);const a={...o,...n.data(),..."object"==typeof e&&e?e:{}};if(r||(r=new m(this,a),n.data(i,r)),"string"==typeof e){if(void 0===r[e])throw new Error(`No method named "${e}"`);r[e]()}}))}}return t.default.fn[r]=m.jQueryInterface,t.default.fn[r].Constructor=m,t.default.fn[r].noConflict=()=>(t.default.fn[r]=a,m.jQueryInterface),m})),function(e,t){"use strict";"function"==typeof define&&define.amd?define([],(function(){return e.Waves=t.call(e),e.Waves})):"object"==typeof exports?module.exports=t.call(e):e.Waves=t.call(e)}("object"==typeof global?global:this,(function(){"use strict";function e(e){return function(e){return null!==e&&e===e.window}(e)?e:9===e.nodeType&&e.defaultView}function t(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function n(e){var n=c.call(e);return"[object String]"===n?l(e):t(e)&&/^\[object (Array|HTMLCollection|NodeList|Object)\]$/.test(n)&&e.hasOwnProperty("length")?e:function(e){return t(e)&&e.nodeType>0}(e)?[e]:[]}function r(t){var n,r,i={top:0,left:0},a=t&&t.ownerDocument;return n=a.documentElement,void 0!==t.getBoundingClientRect&&(i=t.getBoundingClientRect()),r=e(a),{top:i.top+r.pageYOffset-n.clientTop,left:i.left+r.pageXOffset-n.clientLeft}}function i(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+=n+":"+e[n]+";");return t}function a(e,t,n){if(n){n.classList.remove("waves-rippling");var r=n.getAttribute("data-x"),a=n.getAttribute("data-y"),o=n.getAttribute("data-scale"),s=n.getAttribute("data-translate"),l=350-(Date.now()-Number(n.getAttribute("data-hold")));l<0&&(l=0),"mousemove"===e.type&&(l=150);var c="mousemove"===e.type?2500:h.duration;setTimeout((function(){var e={top:a+"px",left:r+"px",opacity:"0","-webkit-transition-duration":c+"ms","-moz-transition-duration":c+"ms","-o-transition-duration":c+"ms","transition-duration":c+"ms","-webkit-transform":o+" "+s,"-moz-transform":o+" "+s,"-ms-transform":o+" "+s,"-o-transform":o+" "+s,transform:o+" "+s};n.setAttribute("style",i(e)),setTimeout((function(){try{t.removeChild(n)}catch(e){return!1}}),c)}),l)}}function o(e){var t=function(e){if(!1===d.allowEvent(e))return null;for(var t=null,n=e.target||e.srcElement;n.parentElement;){if(!(n instanceof SVGElement)&&n.classList.contains("waves-effect")){t=n;break}n=n.parentElement}return t}(e);if(null!==t){if(t.disabled||t.getAttribute("disabled")||t.classList.contains("disabled"))return;if(d.registerEvent(e),"touchstart"===e.type&&h.delay){var n=!1,r=setTimeout((function(){r=null,h.show(e,t)}),h.delay),i=function(i){r&&(clearTimeout(r),r=null,h.show(e,t)),n||(n=!0,h.hide(i,t)),o()},a=function(e){r&&(clearTimeout(r),r=null),i(e),o()};t.addEventListener("touchmove",a,!1),t.addEventListener("touchend",i,!1),t.addEventListener("touchcancel",i,!1);var o=function(){t.removeEventListener("touchmove",a),t.removeEventListener("touchend",i),t.removeEventListener("touchcancel",i)}}else h.show(e,t),u&&(t.addEventListener("touchend",h.hide,!1),t.addEventListener("touchcancel",h.hide,!1)),t.addEventListener("mouseup",h.hide,!1),t.addEventListener("mouseleave",h.hide,!1)}}var s=s||{},l=document.querySelectorAll.bind(document),c=Object.prototype.toString,u="ontouchstart"in window,h={duration:750,delay:200,show:function(e,t,n){if(2===e.button)return!1;t=t||this;var a=document.createElement("div");a.className="waves-ripple waves-rippling",t.appendChild(a);var o=r(t),s=0,l=0;"touches"in e&&e.touches.length?(s=e.touches[0].pageY-o.top,l=e.touches[0].pageX-o.left):(s=e.pageY-o.top,l=e.pageX-o.left),l=l>=0?l:0,s=s>=0?s:0;var c="scale("+t.clientWidth/100*3+")",u="translate(0,0)";n&&(u="translate("+n.x+"px, "+n.y+"px)"),a.setAttribute("data-hold",Date.now()),a.setAttribute("data-x",l),a.setAttribute("data-y",s),a.setAttribute("data-scale",c),a.setAttribute("data-translate",u);var f={top:s+"px",left:l+"px"};a.classList.add("waves-notransition"),a.setAttribute("style",i(f)),a.classList.remove("waves-notransition"),f["-webkit-transform"]=c+" "+u,f["-moz-transform"]=c+" "+u,f["-ms-transform"]=c+" "+u,f["-o-transform"]=c+" "+u,f.transform=c+" "+u,f.opacity="1";var d="mousemove"===e.type?2500:h.duration;f["-webkit-transition-duration"]=d+"ms",f["-moz-transition-duration"]=d+"ms",f["-o-transition-duration"]=d+"ms",f["transition-duration"]=d+"ms",a.setAttribute("style",i(f))},hide:function(e,t){for(var n=(t=t||this).getElementsByClassName("waves-rippling"),r=0,i=n.length;r=0&&null!==t.wait){setTimeout(function(e,t){return function(){h.hide(e,t)}}({type:"mouseup",button:1},a),t.wait)}},s.calm=function(e){for(var t={type:"mouseup",button:1},r=0,i=(e=n(e)).length;r").css({position:"fixed",top:0,left:-1*e(t).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(e("
").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(e("
").css({width:"100%",height:10}))).appendTo("body"),a=i.children(),o=a.children();r.barWidth=a[0].offsetWidth-a[0].clientWidth,r.bScrollOversize=100===o[0].offsetWidth&&100!==a[0].clientWidth,r.bScrollbarLeft=1!==Math.round(o.offset().left),r.bBounding=!!i[0].getBoundingClientRect().width,i.remove()}e.extend(n.oBrowser,Ge.__browser),n.oScroll.iBarWidth=Ge.__browser.barWidth}function u(e,t,n,i,a,o){var s,l=!1;for(n!==r&&(s=n,l=!0);i!==a;)e.hasOwnProperty(i)&&(s=l?t(s,e[i],i,e):e[i],l=!0,i+=o);return s}function h(t,r){var i=Ge.defaults.column,a=t.aoColumns.length;i=e.extend({},Ge.models.oColumn,i,{nTh:r||n.createElement("th"),sTitle:i.sTitle?i.sTitle:r?r.innerHTML:"",aDataSort:i.aDataSort?i.aDataSort:[a],mData:i.mData?i.mData:a,idx:a});t.aoColumns.push(i),(i=t.aoPreSearchCols)[a]=e.extend({},Ge.models.oSearch,i[a]),f(t,a,e(r).data())}function f(t,n,i){n=t.aoColumns[n];var o=t.oClasses,s=e(n.nTh);if(!n.sWidthOrig){n.sWidthOrig=s.attr("width")||null;var c=(s.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);c&&(n.sWidthOrig=c[1])}i!==r&&null!==i&&(l(i),a(Ge.defaults.column,i),i.mDataProp!==r&&!i.mData&&(i.mData=i.mDataProp),i.sType&&(n._sManualType=i.sType),i.className&&!i.sClass&&(i.sClass=i.className),i.sClass&&s.addClass(i.sClass),e.extend(n,i),Re(n,i,"sWidth","sWidthOrig"),i.iDataSort!==r&&(n.aDataSort=[i.iDataSort]),Re(n,i,"aDataSort"));var u=n.mData,h=k(u),f=n.mRender?k(n.mRender):null;i=function(e){return"string"==typeof e&&-1!==e.indexOf("@")};n._bAttrSrc=e.isPlainObject(u)&&(i(u.sort)||i(u.type)||i(u.filter)),n._setter=null,n.fnGetData=function(e,t,n){var i=h(e,t,r,n);return f&&t?f(i,t,e,n):i},n.fnSetData=function(e,t,n){return A(u)(e,t,n)},"number"!=typeof u&&(t._rowReadObject=!0),t.oFeatures.bSort||(n.bSortable=!1,s.addClass(o.sSortableNone)),t=-1!==e.inArray("asc",n.asSorting),i=-1!==e.inArray("desc",n.asSorting),n.bSortable&&(t||i)?t&&!i?(n.sSortingClass=o.sSortableAsc,n.sSortingClassJUI=o.sSortJUIAscAllowed):!t&&i?(n.sSortingClass=o.sSortableDesc,n.sSortingClassJUI=o.sSortJUIDescAllowed):(n.sSortingClass=o.sSortable,n.sSortingClassJUI=o.sSortJUI):(n.sSortingClass=o.sSortableNone,n.sSortingClassJUI="")}function d(e){if(!1!==e.oFeatures.bAutoWidth){var t=e.aoColumns;ge(e);for(var n=0,r=t.length;np[s])a(d.length+p[s],f);else if("string"==typeof p[s])for(c=0,u=d.length;ct&&e[a]--;-1!=i&&n===r&&e.splice(i,1)}function I(e,t,n,i){var a,o=e.aoData[t],s=function(n,r){for(;n.childNodes.length;)n.removeChild(n.firstChild);n.innerHTML=S(e,t,r,"display")};if("dom"!==n&&(n&&"auto"!==n||"dom"!==o.src)){var l=o.anCells;if(l)if(i!==r)s(l[i],i);else for(n=0,a=l.length;n").appendTo(s)),n=0,r=h.length;ntr").attr("role","row"),e(s).find(">tr>th, >tr>td").addClass(u.sHeaderTH),e(l).find(">tr>th, >tr>td").addClass(u.sFooterTH),null!==l)for(n=0,r=(t=t.aoFooter[0]).length;n=t.fnRecordsDisplay()?0:l,t.iInitDisplayStart=-1);l=t._iDisplayStart;var h=t.fnDisplayEnd();if(t.bDeferLoading)t.bDeferLoading=!1,t.iDraw++,he(t,!1);else if(c){if(!t.bDestroying&&!z(t))return}else t.iDraw++;if(0!==u.length)for(s=c?t.aoData.length:h,c=c?0:l;c",{class:o?a[0]:""}).append(e("",{valign:"top",colSpan:m(t),class:t.oClasses.sRowEmpty}).html(i))[0];Oe(t,"aoHeaderCallback","header",[e(t.nTHead).children("tr")[0],T(t),l,h,u]),Oe(t,"aoFooterCallback","footer",[e(t.nTFoot).children("tr")[0],T(t),l,h,u]),(a=e(t.nTBody)).children().detach(),a.append(e(n)),Oe(t,"aoDrawCallback","draw",[t]),t.bSorted=!1,t.bFiltered=!1,t.bDrawing=!1}}function F(e,t){var n=e.oFeatures,r=n.bFilter;n.bSort&&_e(e),r?X(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice(),!0!==t&&(e._iDisplayStart=0),e._drawHold=t,N(e),e._drawHold=!1}function B(t){var n=t.oClasses,r=e(t.nTable),i=(r=e("
").insertBefore(r),t.oFeatures),a=e("
",{id:t.sTableId+"_wrapper",class:n.sWrapper+(t.nTFoot?"":" "+n.sNoFooter)});t.nHolding=r[0],t.nTableWrapper=a[0],t.nTableReinsertBefore=t.nTable.nextSibling;for(var o,s,l,c,u,h,f=t.sDom.split(""),d=0;d")[0],"'"==(c=f[d+1])||'"'==c){for(u="",h=2;f[d+h]!=c;)u+=f[d+h],h++;"H"==u?u=n.sJUIHeader:"F"==u&&(u=n.sJUIFooter),-1!=u.indexOf(".")?(c=u.split("."),l.id=c[0].substr(1,c[0].length-1),l.className=c[1]):"#"==u.charAt(0)?l.id=u.substr(1,u.length-1):l.className=u,d+=h}a.append(l),a=e(l)}else if(">"==s)a=a.parent();else if("l"==s&&i.bPaginate&&i.bLengthChange)o=se(t);else if("f"==s&&i.bFilter)o=G(t);else if("r"==s&&i.bProcessing)o=ue(t);else if("t"==s)o=fe(t);else if("i"==s&&i.bInfo)o=te(t);else if("p"==s&&i.bPaginate)o=le(t);else if(0!==Ge.ext.feature.length)for(h=0,c=(l=Ge.ext.feature).length;h',c=(c=a.sSearch).match(/_INPUT_/)?c.replace("_INPUT_",l):c+l,u=(r=e("
",{id:s.f?null:i+"_filter",class:r.sFilter}).append(e("
").addClass(n.sLength);return t.aanFeatures.l||(c[0].id=r+"_length"),c.children().append(t.oLanguage.sLengthMenu.replace("_MENU_",o[0].outerHTML)),e("select",c).val(t._iDisplayLength).on("change.DT",(function(){oe(t,e(this).val()),N(t)})),e(t.nTable).on("length.dt.DT",(function(n,r,i){t===r&&e("select",c).val(i)})),c[0]}function le(t){var n=t.sPaginationType,r=Ge.ext.pager[n],i="function"==typeof r,a=function(e){N(e)},o=(n=e("
").addClass(t.oClasses.sPaging+n)[0],t.aanFeatures);return i||r.fnInit(t,n,a),o.p||(n.id=t.sTableId+"_paginate",t.aoDrawCallback.push({fn:function(e){if(i){var t,n=e._iDisplayStart,s=e._iDisplayLength,l=e.fnRecordsDisplay(),c=(n=(c=-1===s)?0:Math.ceil(n/s),s=c?1:Math.ceil(l/s),l=r(n,s),0);for(t=o.p.length;ca&&(r=0):"first"==t?r=0:"previous"==t?0>(r=0<=i?r-i:0)&&(r=0):"next"==t?r+i",{id:t.aanFeatures.r?null:t.sTableId+"_processing",class:t.oClasses.sProcessing}).html(t.oLanguage.sProcessing).insertBefore(t.nTable)[0]}function he(t,n){t.oFeatures.bProcessing&&e(t.aanFeatures.r).css("display",n?"block":"none"),Oe(t,null,"processing",[t,n])}function fe(t){(h=e(t.nTable)).attr("role","grid");var n=t.oScroll;if(""===n.sX&&""===n.sY)return t.nTable;var r=n.sX,i=n.sY,a=t.oClasses,o=h.children("caption"),s=o.length?o[0]._captionSide:null,l=e(h[0].cloneNode(!1)),c=e(h[0].cloneNode(!1)),u=h.children("tfoot");u.length||(u=null),l=e("
",{class:a.sScrollWrapper}).append(e("
",{class:a.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:r?r?ye(r):null:"100%"}).append(e("
",{class:a.sScrollHeadInner}).css({"box-sizing":"content-box",width:n.sXInner||"100%"}).append(l.removeAttr("id").css("margin-left",0).append("top"===s?o:null).append(h.children("thead"))))).append(e("
",{class:a.sScrollBody}).css({position:"relative",overflow:"auto",width:r?ye(r):null}).append(h)),u&&l.append(e("
",{class:a.sScrollFoot}).css({overflow:"hidden",border:0,width:r?r?ye(r):null:"100%"}).append(e("
",{class:a.sScrollFootInner}).append(c.removeAttr("id").css("margin-left",0).append("bottom"===s?o:null).append(h.children("tfoot")))));var h,f=(h=l.children())[0],d=(a=h[1],u?h[2]:null);return r&&e(a).on("scroll.DT",(function(){var e=this.scrollLeft;f.scrollLeft=e,u&&(d.scrollLeft=e)})),e(a).css(i&&n.bCollapse?"max-height":"height",i),t.nScrollHead=f,t.nScrollBody=a,t.nScrollFoot=d,t.aoDrawCallback.push({fn:de,sName:"scrolling"}),l[0]}function de(t){var n,i,a,o,s,l=(h=t.oScroll).sX,c=h.sXInner,u=h.sY,h=h.iBarWidth,f=e(t.nScrollHead),g=f[0].style,m=(b=f.children("div"))[0].style,v=b.children("table"),b=t.nScrollBody,y=e(b),w=b.style,_=e(t.nScrollFoot).children("div"),S=_.children("table"),x=e(t.nTHead),C=e(t.nTable),k=C[0],A=k.style,T=t.nTFoot?e(t.nTFoot):null,E=t.oBrowser,P=E.bScrollOversize,I=it(t.aoColumns,"nTh"),R=[],M=[],L=[],D=[],O=function(e){(e=e.style).paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0};i=b.scrollHeight>b.clientHeight,t.scrollBarVis!==i&&t.scrollBarVis!==r?(t.scrollBarVis=i,d(t)):(t.scrollBarVis=i,C.children("thead, tfoot").remove(),T&&(a=T.clone().prependTo(C),n=T.find("tr"),a=a.find("tr")),o=x.clone().prependTo(C),x=x.find("tr"),i=o.find("tr"),o.find("th, td").removeAttr("tabindex"),l||(w.width="100%",f[0].style.width="100%"),e.each(U(t,o),(function(e,n){s=p(t,e),n.style.width=t.aoColumns[s].sWidth})),T&&pe((function(e){e.style.width=""}),a),f=C.outerWidth(),""===l?(A.width="100%",P&&(C.find("tbody").height()>b.offsetHeight||"scroll"==y.css("overflow-y"))&&(A.width=ye(C.outerWidth()-h)),f=C.outerWidth()):""!==c&&(A.width=ye(c),f=C.outerWidth()),pe(O,i),pe((function(t){L.push(t.innerHTML),R.push(ye(e(t).css("width")))}),i),pe((function(t,n){-1!==e.inArray(t,I)&&(t.style.width=R[n])}),x),e(i).height(0),T&&(pe(O,a),pe((function(t){D.push(t.innerHTML),M.push(ye(e(t).css("width")))}),a),pe((function(e,t){e.style.width=M[t]}),n),e(a).height(0)),pe((function(e,t){e.innerHTML='
'+L[t]+"
",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=R[t]}),i),T&&pe((function(e,t){e.innerHTML='
'+D[t]+"
",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=M[t]}),a),C.outerWidth()b.offsetHeight||"scroll"==y.css("overflow-y")?f+h:f,P&&(b.scrollHeight>b.offsetHeight||"scroll"==y.css("overflow-y"))&&(A.width=ye(n-h)),(""===l||""!==c)&&Ie(t,1,"Possible column misalignment",6)):n="100%",w.width=ye(n),g.width=ye(n),T&&(t.nScrollFoot.style.width=ye(n)),!u&&P&&(w.height=ye(k.offsetHeight+h)),l=C.outerWidth(),v[0].style.width=ye(l),m.width=ye(l),c=C.height()>b.clientHeight||"scroll"==y.css("overflow-y"),m[u="padding"+(E.bScrollbarLeft?"Left":"Right")]=c?h+"px":"0px",T&&(S[0].style.width=ye(l),_[0].style.width=ye(l),_[0].style[u]=c?h+"px":"0px"),C.children("colgroup").insertBefore(C.children("thead")),y.scroll(),!t.bSorted&&!t.bFiltered||t._drawHold||(b.scrollTop=0))}function pe(e,t,n){for(var r,i,a=0,o=0,s=t.length;o").appendTo(u.find("tbody"));for(u.find("thead, tfoot").remove(),u.append(e(n.nTHead).clone()).append(e(n.nTFoot).clone()),u.find("tfoot th, tfoot td").css("width",""),f=U(n,u.find("thead")[0]),r=0;r").css({width:i.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(n.aoData.length)for(r=0;r").css(l||s?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(u).appendTo(b),l&&c?u.width(c):l?(u.css("width","auto"),u.removeAttr("width"),u.width()").css("width",ye(t)).appendTo(r||n.body),a=i[0].offsetWidth;return i.remove(),a}function ve(t,n){var r=be(t,n);if(0>r)return null;var i=t.aoData[r];return i.nTr?i.anCells[n]:e("").html(S(t,r,n,"display"))[0]}function be(e,t){for(var n,r=-1,i=-1,a=0,o=e.aoData.length;ar&&(r=n.length,i=a);return i}function ye(e){return null===e?"0px":"number"==typeof e?0>e?"0px":e+"px":e.match(/\d$/)?e+"px":e}function we(t){var n,i,a,o,s,l,c=[],u=t.aoColumns;n=t.aaSortingFixed,i=e.isPlainObject(n);var h=[];for(a=function(t){t.length&&!e.isArray(t[0])?h.push(t):e.merge(h,t)},e.isArray(n)&&a(n),i&&n.pre&&a(n.pre),a(t.aaSorting),i&&n.post&&a(n.post),t=0;tr?1:0))return"asc"===l.dir?n:-n;return(n=a[e])<(r=a[t])?-1:n>r?1:0})):c.sort((function(e,t){var n,r,l,c,u=i.length,h=s[e]._aSortData,f=s[t]._aSortData;for(l=0;lr?1:0}))}e.bSorted=!0}function Se(e){for(var t,n,r=e.aoColumns,i=we(e),a=(e=e.oLanguage.oAria,0),o=r.length;a/g,"");var l=n.nTh;l.removeAttribute("aria-sort"),n.bSortable&&(0s?s+1:3));for(s=0,n=o.length;ss?s+1:3))}t.aLastSort=o}function Ae(e,t){var n,r=e.aoColumns[t],i=Ge.ext.order[r.sSortDataType];i&&(n=i.call(e.oInstance,e,t,g(e,t)));for(var a,o=Ge.ext.type.order[r.sType+"-pre"],s=0,l=e.aoData.length;s=s.length?[0,n[1]]:n)}))),n.search!==r&&e.extend(t.oPreviousSearch,ee(n.search)),n.columns)for(a=0,o=n.columns.length;a=n&&(t=n-r),t-=t%r,(-1===r||0>t)&&(t=0),e._iDisplayStart=t}function Fe(t,n){var r=t.renderer,i=Ge.ext.renderer[n];return e.isPlainObject(r)&&r[n]?i[r[n]]||i._:"string"==typeof r&&i[r]||i._}function Be(e){return e.oFeatures.bServerSide?"ssp":e.ajax||e.sAjaxSource?"ajax":"dom"}function je(e,t){var n=[],r=(n=Et.numbers_length,Math.floor(n/2));return t<=n?n=ot(0,t):e<=r?((n=ot(0,n-2)).push("ellipsis"),n.push(t-1)):(e>=t-1-r?n=ot(t-(n-2),t):((n=ot(e-r+2,e+r-1)).push("ellipsis"),n.push(t-1)),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}function Ue(t){e.each({num:function(e){return Pt(e,t)},"num-fmt":function(e){return Pt(e,t,Qe)},"html-num":function(e){return Pt(e,t,$e)},"html-num-fmt":function(e){return Pt(e,t,$e,Qe)}},(function(e,n){ze.type.order[e+t+"-pre"]=n,e.match(/^html\-/)&&(ze.type.search[e+t]=ze.type.search.html)}))}function qe(e){return function(){var t=[Pe(this[Ge.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return Ge.ext.internal[e].apply(this,t)}}var ze,He,We,Ve,Ge=function(t){this.$=function(e,t){return this.api(!0).$(e,t)},this._=function(e,t){return this.api(!0).rows(e,t).data()},this.api=function(e){return new He(e?Pe(this[ze.iApiIndex]):this)},this.fnAddData=function(t,n){var i=this.api(!0),a=e.isArray(t)&&(e.isArray(t[0])||e.isPlainObject(t[0]))?i.rows.add(t):i.row.add(t);return(n===r||n)&&i.draw(),a.flatten().toArray()},this.fnAdjustColumnSizing=function(e){var t=this.api(!0).columns.adjust(),n=t.settings()[0],i=n.oScroll;e===r||e?t.draw(!1):(""!==i.sX||""!==i.sY)&&de(n)},this.fnClearTable=function(e){var t=this.api(!0).clear();(e===r||e)&&t.draw()},this.fnClose=function(e){this.api(!0).row(e).child.hide()},this.fnDeleteRow=function(e,t,n){var i=this.api(!0),a=(e=i.rows(e)).settings()[0],o=a.aoData[e[0][0]];return e.remove(),t&&t.call(this,a,o),(n===r||n)&&i.draw(),o},this.fnDestroy=function(e){this.api(!0).destroy(e)},this.fnDraw=function(e){this.api(!0).draw(e)},this.fnFilter=function(e,t,n,i,a,o){a=this.api(!0),null===t||t===r?a.search(e,n,i,o):a.column(t).search(e,n,i,o),a.draw()},this.fnGetData=function(e,t){var n=this.api(!0);if(e!==r){var i=e.nodeName?e.nodeName.toLowerCase():"";return t!==r||"td"==i||"th"==i?n.cell(e,t).data():n.row(e).data()||null}return n.data().toArray()},this.fnGetNodes=function(e){var t=this.api(!0);return e!==r?t.row(e).node():t.rows().nodes().flatten().toArray()},this.fnGetPosition=function(e){var t=this.api(!0),n=e.nodeName.toUpperCase();return"TR"==n?t.row(e).index():"TD"==n||"TH"==n?[(e=t.cell(e).index()).row,e.columnVisible,e.column]:null},this.fnIsOpen=function(e){return this.api(!0).row(e).child.isShown()},this.fnOpen=function(e,t,n){return this.api(!0).row(e).child(t,n).show().child()[0]},this.fnPageChange=function(e,t){var n=this.api(!0).page(e);(t===r||t)&&n.draw(!1)},this.fnSetColumnVis=function(e,t,n){e=this.api(!0).column(e).visible(t),(n===r||n)&&e.columns.adjust().draw()},this.fnSettings=function(){return Pe(this[ze.iApiIndex])},this.fnSort=function(e){this.api(!0).order(e).draw()},this.fnSortListener=function(e,t,n){this.api(!0).order.listener(e,t,n)},this.fnUpdate=function(e,t,n,i,a){var o=this.api(!0);return n===r||null===n?o.row(t).data(e):o.cell(t,n).data(e),(a===r||a)&&o.columns.adjust(),(i===r||i)&&o.draw(),0},this.fnVersionCheck=ze.fnVersionCheck;var n=this,i=t===r,u=this.length;for(var d in i&&(t={}),this.oApi=this.internal=ze.internal,Ge.ext.internal)d&&(this[d]=qe(d));return this.each((function(){var d,p={},g=1").appendTo(S)),T.nTHead=n[0],0===(n=S.children("tbody")).length&&(n=e("").appendTo(S)),T.nTBody=n[0],0===(n=S.children("tfoot")).length&&t.length>0&&(""!==T.oScroll.sX||""!==T.oScroll.sY)&&(n=e("").appendTo(S)),0===n.length||0===n.children().length?S.addClass(E.sNoFooter):n.length>0&&(T.nTFoot=n[0],j(T.aoFooter,T.nTFoot)),g.aaData)for(m=0;m/g,Ke=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,Je=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Qe=/[',$\xa3\u20ac\xa5%\u2009\u202F\u20BD\u20a9\u20BArfk\u0243\u039e]/gi,Ze=function(e){return!e||!0===e||"-"===e},et=function(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null},tt=function(e,t){return Xe[t]||(Xe[t]=RegExp(ft(t),"g")),"string"==typeof e&&"."!==t?e.replace(/\./g,"").replace(Xe[t],"."):e},nt=function(e,t,n){var r="string"==typeof e;return!!Ze(e)||(t&&r&&(e=tt(e,t)),n&&r&&(e=e.replace(Qe,"")),!isNaN(parseFloat(e))&&isFinite(e))},rt=function(e,t,n){return!!Ze(e)||((Ze(e)||"string"==typeof e)&&!!nt(e.replace($e,""),t,n)||null)},it=function(e,t,n){var i=[],a=0,o=e.length;if(n!==r)for(;ae.length))for(var n=(t=e.slice().sort())[0],r=1,i=t.length;r")[0],pt=dt.textContent!==r,gt=/<.*?>/g,mt=Ge.util.throttle,vt=[],bt=Array.prototype;He=function(t,n){if(!(this instanceof He))return new He(t,n);var r=[],i=function(t){(t=function(t){var n,r,i=Ge.settings,a=e.map(i,(function(e){return e.nTable}));return t?t.nTable&&t.oApi?[t]:t.nodeName&&"table"===t.nodeName.toLowerCase()?-1!==(n=e.inArray(t,a))?[i[n]]:null:t&&"function"==typeof t.settings?t.settings().toArray():("string"==typeof t?r=e(t):t instanceof e&&(r=t),r?r.map((function(){return-1!==(n=e.inArray(this,a))?i[n]:null})).toArray():void 0):[]}(t))&&(r=r.concat(t))};if(e.isArray(t))for(var a=0,o=t.length;ae?new He(t[e],this[e]):null},filter:function(e){var t=[];if(bt.filter)t=bt.filter.call(this,e,this);else for(var n=0,r=this.length;n").addClass(n),e("td",r).addClass(n).html(t)[0].colSpan=m(a),o.push(r[0]))};s(t,n),i._details&&i._details.detach(),i._details=e(o),i._detailsShow&&i._details.insertAfter(i.nTr)}return this})),We(["row().child.show()","row().child().show()"],(function(){return kt(this,!0),this})),We(["row().child.hide()","row().child().hide()"],(function(){return kt(this,!1),this})),We(["row().child.remove()","row().child().remove()"],(function(){return Ct(this),this})),We("row().child.isShown()",(function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]]._detailsShow||!1}));var At=/^([^:]+):(name|visIdx|visible)$/,Tt=function(e,t,n,r,i){n=[],r=0;for(var a=i.length;r=0?n:o.length+n];if("function"==typeof t){var i=xt(r,a);return e.map(o,(function(e,n){return t(n,Tt(r,n,0,0,i),l[n])?n:null}))}var c="string"==typeof t?t.match(At):"";if(c)switch(c[2]){case"visIdx":case"visible":if((n=parseInt(c[1],10))<0){var u=e.map(o,(function(e,t){return e.bVisible?t:null}));return[u[u.length+n]]}return[p(r,n)];case"name":return e.map(s,(function(e,t){return e===c[1]?t:null}));default:return[]}return t.nodeName&&t._DT_CellIndex?[t._DT_CellIndex.column]:(n=e(l).filter(t).map((function(){return e.inArray(this,l)})).toArray()).length||!t.nodeName?n:(n=e(t).closest("*[data-dt-column]")).length?[n.data("dt-column")]:[]}),r,a)}),1);return i.selector.cols=t,i.selector.opts=n,i})),Ve("columns().header()","column().header()",(function(){return this.iterator("column",(function(e,t){return e.aoColumns[t].nTh}),1)})),Ve("columns().footer()","column().footer()",(function(){return this.iterator("column",(function(e,t){return e.aoColumns[t].nTf}),1)})),Ve("columns().data()","column().data()",(function(){return this.iterator("column-rows",Tt,1)})),Ve("columns().dataSrc()","column().dataSrc()",(function(){return this.iterator("column",(function(e,t){return e.aoColumns[t].mData}),1)})),Ve("columns().cache()","column().cache()",(function(e){return this.iterator("column-rows",(function(t,n,r,i,a){return at(t.aoData,a,"search"===e?"_aFilterData":"_aSortData",n)}),1)})),Ve("columns().nodes()","column().nodes()",(function(){return this.iterator("column-rows",(function(e,t,n,r,i){return at(e.aoData,i,"anCells",t)}),1)})),Ve("columns().visible()","column().visible()",(function(t,n){var i=this.iterator("column",(function(n,i){if(t===r)return n.aoColumns[i].bVisible;var a,o,s,l=n.aoColumns,c=l[i],u=n.aoData;if(t!==r&&c.bVisible!==t){if(t){var h=e.inArray(!0,it(l,"bVisible"),i+1);for(a=0,o=u.length;an;return!0},Ge.isDataTable=Ge.fnIsDataTable=function(t){var n=e(t).get(0),r=!1;return t instanceof Ge.Api||(e.each(Ge.settings,(function(t,i){var a=i.nScrollHead?e("table",i.nScrollHead)[0]:null,o=i.nScrollFoot?e("table",i.nScrollFoot)[0]:null;i.nTable!==n&&a!==n&&o!==n||(r=!0)})),r)},Ge.tables=Ge.fnTables=function(t){var n=!1;e.isPlainObject(t)&&(n=t.api,t=t.visible);var r=e.map(Ge.settings,(function(n){if(!t||t&&e(n.nTable).is(":visible"))return n.nTable}));return n?new He(r):r},Ge.camelToHungarian=a,We("$()",(function(t,n){var r=this.rows(n).nodes();r=e(r);return e([].concat(r.filter(t).toArray(),r.find(t).toArray()))})),e.each(["on","one","off"],(function(t,n){We(n+"()",(function(){var t=Array.prototype.slice.call(arguments);t[0]=e.map(t[0].split(/\s/),(function(e){return e.match(/\.dt\b/)?e:e+".dt"})).join(" ");var r=e(this.tables().nodes());return r[n].apply(r,t),this}))})),We("clear()",(function(){return this.iterator("table",(function(e){E(e)}))})),We("settings()",(function(){return new He(this.context,this.context)})),We("init()",(function(){var e=this.context;return e.length?e[0].oInit:null})),We("data()",(function(){return this.iterator("table",(function(e){return it(e.aoData,"_aData")})).flatten()})),We("destroy()",(function(n){return n=n||!1,this.iterator("table",(function(r){var i,a=r.nTableWrapper.parentNode,o=r.oClasses,s=r.nTable,l=r.nTBody,c=r.nTHead,u=r.nTFoot,h=e(s),f=(l=e(l),e(r.nTableWrapper)),d=e.map(r.aoData,(function(e){return e.nTr}));r.bDestroying=!0,Oe(r,"aoDestroyCallback","destroy",[r]),n||new He(r).columns().visible(!0),f.off(".DT").find(":not(tbody *)").off(".DT"),e(t).off(".DT-"+r.sInstance),s!=c.parentNode&&(h.children("thead").detach(),h.append(c)),u&&s!=u.parentNode&&(h.children("tfoot").detach(),h.append(u)),r.aaSorting=[],r.aaSortingFixed=[],ke(r),e(d).removeClass(r.asStripeClasses.join(" ")),e("th, td",c).removeClass(o.sSortable+" "+o.sSortableAsc+" "+o.sSortableDesc+" "+o.sSortableNone),l.children().detach(),l.append(d),h[c=n?"remove":"detach"](),f[c](),!n&&a&&(a.insertBefore(s,r.nTableReinsertBefore),h.css("width",r.sDestroyWidth).removeClass(o.sTable),(i=r.asDestroyStripes.length)&&l.children().each((function(t){e(this).addClass(r.asDestroyStripes[t%i])}))),-1!==(a=e.inArray(r,Ge.settings))&&Ge.settings.splice(a,1)}))})),e.each(["column","row","cell"],(function(e,t){We(t+"s().every()",(function(e){var n=this.selector.opts,i=this;return this.iterator(t,(function(a,o,s,l,c){e.call(i[t](o,"cell"===t?s:n,"cell"===t?n:r),o,s,l,c)}))}))})),We("i18n()",(function(t,n,i){var a=this.context[0];return(t=k(t)(a.oLanguage))===r&&(t=n),i!==r&&e.isPlainObject(t)&&(t=t[i]!==r?t[i]:t._),t.replace("%d",i)})),Ge.version="1.10.19",Ge.settings=[],Ge.models={},Ge.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},Ge.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},Ge.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},Ge.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(e){try{return JSON.parse((-1===e.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+e.sInstance+"_"+location.pathname))}catch(t){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(e,t){try{(-1===e.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+e.sInstance+"_"+location.pathname,JSON.stringify(t))}catch(n){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:e.extend({},Ge.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},i(Ge.defaults),Ge.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},i(Ge.defaults.column),Ge.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:r,oAjaxData:r,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Be(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Be(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var e=this._iDisplayLength,t=this._iDisplayStart,n=t+e,r=this.aiDisplay.length,i=this.oFeatures,a=i.bPaginate;return i.bServerSide?!1===a||-1===e?t+r:Math.min(t+e,this._iRecordsDisplay):!a||n>r||-1===e?r:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},Ge.ext=ze={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:Ge.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:Ge.version},e.extend(ze,{afnFiltering:ze.search,aTypes:ze.type.detect,ofnSearch:ze.type.search,oSort:ze.type.order,afnSortData:ze.order,aoFeatures:ze.feature,oApi:ze.internal,oStdClasses:ze.classes,oPagination:ze.pager}),e.extend(Ge.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Et=Ge.ext.pager;e.extend(Et,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(e,t){return[je(e,t)]},simple_numbers:function(e,t){return["previous",je(e,t),"next"]},full_numbers:function(e,t){return["first","previous",je(e,t),"next","last"]},first_last_numbers:function(e,t){return["first",je(e,t),"last"]},_numbers:je,numbers_length:7}),e.extend(!0,Ge.ext.renderer,{pageButton:{_:function(t,i,a,o,s,l){var c,u,h,f=t.oClasses,d=t.oLanguage.oPaginate,p=t.oLanguage.oAria.paginate||{},g=0,m=function(n,r){var i,o,h,v,b=function(e){ce(t,e.data.action,!0)};for(i=0,o=r.length;i").appendTo(n),m(h,v);else{switch(c=null,u="",v){case"ellipsis":n.append('');break;case"first":c=d.sFirst,u=v+(s>0?"":" "+f.sPageButtonDisabled);break;case"previous":c=d.sPrevious,u=v+(s>0?"":" "+f.sPageButtonDisabled);break;case"next":c=d.sNext,u=v+(s",{class:f.sPageButton+" "+u,"aria-controls":t.sTableId,"aria-label":p[v],"data-dt-idx":g,tabindex:t.iTabIndex,id:0===a&&"string"==typeof v?t.sTableId+"_"+v:null}).html(c).appendTo(n),{action:v},b),g++)}};try{h=e(i).find(n.activeElement).data("dt-idx")}catch(Ve){}m(e(i).empty(),o),h!==r&&e(i).find("[data-dt-idx="+h+"]").focus()}}}),e.extend(Ge.ext.type.detect,[function(e,t){var n=t.oLanguage.sDecimal;return nt(e,n)?"num"+n:null},function(e){if(e&&!(e instanceof Date)&&!Ke.test(e))return null;var t=Date.parse(e);return null!==t&&!isNaN(t)||Ze(e)?"date":null},function(e,t){var n=t.oLanguage.sDecimal;return nt(e,n,!0)?"num-fmt"+n:null},function(e,t){var n=t.oLanguage.sDecimal;return rt(e,n)?"html-num"+n:null},function(e,t){var n=t.oLanguage.sDecimal;return rt(e,n,!0)?"html-num-fmt"+n:null},function(e){return Ze(e)||"string"==typeof e&&-1!==e.indexOf("<")?"html":null}]),e.extend(Ge.ext.type.search,{html:function(e){return Ze(e)?e:"string"==typeof e?e.replace(Ye," ").replace($e,""):""},string:function(e){return Ze(e)?e:"string"==typeof e?e.replace(Ye," "):e}});var Pt=function(e,t,n,r){return 0===e||e&&"-"!==e?(t&&(e=tt(e,t)),e.replace&&(n&&(e=e.replace(n,"")),r&&(e=e.replace(r,""))),1*e):-1/0};e.extend(ze.type.order,{"date-pre":function(e){return e=Date.parse(e),isNaN(e)?-1/0:e},"html-pre":function(e){return Ze(e)?"":e.replace?e.replace(/<.*?>/g,"").toLowerCase():e+""},"string-pre":function(e){return Ze(e)?"":"string"==typeof e?e.toLowerCase():e.toString?e.toString():""},"string-asc":function(e,t){return et?1:0},"string-desc":function(e,t){return et?-1:0}}),Ue(""),e.extend(!0,Ge.ext.renderer,{header:{_:function(t,n,r,i){e(t.nTable).on("order.dt.DT",(function(e,a,o,s){t===a&&(e=r.idx,n.removeClass(r.sSortingClass+" "+i.sSortAsc+" "+i.sSortDesc).addClass("asc"==s[e]?i.sSortAsc:"desc"==s[e]?i.sSortDesc:r.sSortingClass))}))},jqueryui:function(t,n,r,i){e("
").addClass(i.sSortJUIWrapper).append(n.contents()).append(e("").addClass(i.sSortIcon+" "+r.sSortingClassJUI)).appendTo(n),e(t.nTable).on("order.dt.DT",(function(e,a,o,s){t===a&&(e=r.idx,n.removeClass(i.sSortAsc+" "+i.sSortDesc).addClass("asc"==s[e]?i.sSortAsc:"desc"==s[e]?i.sSortDesc:r.sSortingClass),n.find("span."+i.sSortIcon).removeClass(i.sSortJUIAsc+" "+i.sSortJUIDesc+" "+i.sSortJUI+" "+i.sSortJUIAscAllowed+" "+i.sSortJUIDescAllowed).addClass("asc"==s[e]?i.sSortJUIAsc:"desc"==s[e]?i.sSortJUIDesc:r.sSortingClassJUI))}))}}});var It=function(e){return"string"==typeof e?e.replace(//g,">").replace(/"/g,"""):e};return Ge.render={number:function(e,t,n,r,i){return{display:function(a){if("number"!=typeof a&&"string"!=typeof a)return a;var o=0>a?"-":"",s=parseFloat(a);return isNaN(s)?It(a):(s=s.toFixed(n),a=Math.abs(s),s=parseInt(a,10),a=n?t+(a-s).toFixed(n).substring(2):"",o+(r||"")+s.toString().replace(/\B(?=(\d{3})+(?!\d))/g,e)+a+(i||""))}}},text:function(){return{display:It,filter:It}}},e.extend(Ge.ext.internal,{_fnExternApiFunc:qe,_fnBuildAjax:q,_fnAjaxUpdate:z,_fnAjaxParameters:H,_fnAjaxUpdateDraw:W,_fnAjaxDataSrc:V,_fnAddColumn:h,_fnColumnOptions:f,_fnAdjustColumnSizing:d,_fnVisibleToColumnIndex:p,_fnColumnIndexToVisible:g,_fnVisbleColumns:m,_fnGetColumns:v,_fnColumnTypes:b,_fnApplyColumnDefs:y,_fnHungarianMap:i,_fnCamelToHungarian:a,_fnLanguageCompat:o,_fnBrowserDetect:c,_fnAddData:w,_fnAddTr:_,_fnNodeToDataIndex:function(e,t){return t._DT_RowIndex!==r?t._DT_RowIndex:null},_fnNodeToColumnIndex:function(t,n,r){return e.inArray(r,t.aoData[n].anCells)},_fnGetCellData:S,_fnSetCellData:x,_fnSplitObjNotation:C,_fnGetObjectDataFn:k,_fnSetObjectDataFn:A,_fnGetDataMaster:T,_fnClearTable:E,_fnDeleteIndex:P,_fnInvalidate:I,_fnGetRowElements:R,_fnCreateTr:M,_fnBuildHead:D,_fnDrawHead:O,_fnDraw:N,_fnReDraw:F,_fnAddOptionsHtml:B,_fnDetectHeader:j,_fnGetUniqueThs:U,_fnFeatureHtmlFilter:G,_fnFilterComplete:X,_fnFilterCustom:Y,_fnFilterColumn:$,_fnFilter:K,_fnFilterCreateSearch:J,_fnEscapeRegex:ft,_fnFilterData:Q,_fnFeatureHtmlInfo:te,_fnUpdateInfo:ne,_fnInfoMacros:re,_fnInitialise:ie,_fnInitComplete:ae,_fnLengthChange:oe,_fnFeatureHtmlLength:se,_fnFeatureHtmlPaginate:le,_fnPageChange:ce,_fnFeatureHtmlProcessing:ue,_fnProcessingDisplay:he,_fnFeatureHtmlTable:fe,_fnScrollDraw:de,_fnApplyToChildren:pe,_fnCalculateColumnWidths:ge,_fnThrottle:mt,_fnConvertToWidth:me,_fnGetWidestNode:ve,_fnGetMaxLenString:be,_fnStringToCss:ye,_fnSortFlatten:we,_fnSort:_e,_fnSortAria:Se,_fnSortListener:xe,_fnSortAttachListener:Ce,_fnSortingClasses:ke,_fnSortData:Ae,_fnSaveState:Te,_fnLoadState:Ee,_fnSettingsFromNode:Pe,_fnLog:Ie,_fnMap:Re,_fnBindAction:Le,_fnCallbackReg:De,_fnCallbackFire:Oe,_fnLengthOverflow:Ne,_fnRenderer:Fe,_fnDataSource:Be,_fnRowAttributes:L,_fnExtend:Me,_fnCalculateEnd:function(){}}),e.fn.dataTable=Ge,Ge.$=e,e.fn.dataTableSettings=Ge.settings,e.fn.dataTableExt=Ge.ext,e.fn.DataTable=function(t){return e(this).dataTable(t).api()},e.each(Ge,(function(t,n){e.fn.DataTable[t]=n})),e.fn.dataTable})),function(e){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],(function(t){return e(t,window,document)})):"object"==typeof exports?module.exports=function(t,n){return t||(t=window),n&&n.fn.dataTable||(n=require("datatables.net")(t,n).$),e(n,t,t.document)}:e(jQuery,window,document)}((function(e,t,n,r){var i=e.fn.dataTable;return e.extend(!0,i.defaults,{dom:"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",renderer:"bootstrap"}),e.extend(i.ext.classes,{sWrapper:"dataTables_wrapper dt-bootstrap4",sFilterInput:"form-control form-control-sm",sLengthSelect:"custom-select custom-select-sm form-control form-control-sm",sProcessing:"dataTables_processing card",sPageButton:"paginate_button page-item"}),i.ext.renderer.pageButton.bootstrap=function(t,a,o,s,l,c){var u,h,f,d=new i.Api(t),p=t.oClasses,g=t.oLanguage.oPaginate,m=t.oLanguage.oAria.paginate||{},v=0,b=function(n,r){var i,a,s,f,y=function(t){t.preventDefault(),!e(t.currentTarget).hasClass("disabled")&&d.page()!=t.data.action&&d.page(t.data.action).draw("page")};for(i=0,a=r.length;i",{class:p.sPageButton+" "+h,id:0===o&&"string"==typeof f?t.sTableId+"_"+f:null}).append(e("",{href:"#","aria-controls":t.sTableId,"aria-label":m[f],"data-dt-idx":v,tabindex:t.iTabIndex,class:"page-link"}).html(u)).appendTo(n),t.oApi._fnBindAction(s,{action:f},y),v++)}};try{f=e(a).find(n.activeElement).data("dt-idx")}catch(y){}b(e(a).empty().html('
    ').children("ul"),s),f!==r&&e(a).find("[data-dt-idx="+f+"]").focus()},i})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).d3=e.d3||{})}(this,(function(e){"use strict";function t(e,t){return et?1:e>=t?0:NaN}function n(e){var n;return 1===e.length&&(n=e,e=function(e,r){return t(n(e),r)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;e(t[a],n)<0?r=a+1:i=a}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;e(t[a],n)>0?i=a:r=a+1}return r}}}var r=n(t),i=r.right,a=r.left;function o(e,t){return[e,t]}function s(e){return null===e?NaN:+e}function l(e,t){var n,r,i=e.length,a=0,o=-1,l=0,c=0;if(null==t)for(;++o1)return c/(a-1)}function c(e,t){var n=l(e,t);return n?Math.sqrt(n):n}function u(e,t){var n,r,i,a=e.length,o=-1;if(null==t){for(;++o=n)for(r=i=n;++on&&(r=n),i=n)for(r=i=n;++on&&(r=n),i0)return[e];if((r=t0)for(e=Math.ceil(e/o),t=Math.floor(t/o),a=new Array(i=Math.ceil(t-e+1));++s=0?(a>=v?10:a>=b?5:a>=y?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=v?10:a>=b?5:a>=y?2:1)}function S(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=v?i*=10:a>=b?i*=5:a>=y&&(i*=2),t=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e);return o+(+n(e[a+1],a+1,e)-o)*(i-a)}}function k(e,t){var n,r,i=e.length,a=-1;if(null==t){for(;++a=n)for(r=n;++ar&&(r=n)}else for(;++a=n)for(r=n;++ar&&(r=n);return r}function A(e){for(var t,n,r,i=e.length,a=-1,o=0;++a=0;)for(t=(r=e[i]).length;--t>=0;)n[--o]=r[t];return n}function T(e,t){var n,r,i=e.length,a=-1;if(null==t){for(;++a=n)for(r=n;++an&&(r=n)}else for(;++a=n)for(r=n;++an&&(r=n);return r}function E(e){if(!(i=e.length))return[];for(var t=-1,n=T(e,P),r=new Array(n);++t=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function q(e,t){for(var n,r=0,i=e.length;r0)for(var n,r,i=new Array(n),a=0;a=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),W.hasOwnProperty(t)?{space:W[t],local:e}:e}function G(e){var t=V(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===H&&t.documentElement.namespaceURI===H?t.createElement(e):t.createElementNS(n,e)}})(t)}function X(){}function Y(e){return null==e?X:function(){return this.querySelector(e)}}function $(){return[]}function K(e){return null==e?$:function(){return this.querySelectorAll(e)}}function J(e){return function(){return this.matches(e)}}function Q(e){return new Array(e.length)}function Z(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Z.prototype={constructor:Z,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function ee(e,t,n,r,i,a){for(var o,s=0,l=t.length,c=a.length;st?1:e>=t?0:NaN}function re(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function ie(e,t){return e.style.getPropertyValue(t)||re(e).getComputedStyle(e,null).getPropertyValue(t)}function ae(e){return e.trim().split(/^|\s+/)}function oe(e){return e.classList||new se(e)}function se(e){this._node=e,this._names=ae(e.getAttribute("class")||"")}function le(e,t){for(var n=oe(e),r=-1,i=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var be={};function ye(e,t,n){return e=we(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function we(t,n,r){return function(i){var a=e.event;e.event=i;try{t.call(this,this.__data__,n,r)}finally{e.event=a}}}function _e(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,a=t.length;r=w&&(w=y+1);!(b=m[w])&&++w=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=ne);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):ie(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=ae(e+"");if(arguments.length<2){for(var r=oe(this.node()),i=-1,a=n.length;++i=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),o=a.length;if(!(arguments.length<2)){for(s=t?Se:_e,null==n&&(n=!1),r=0;r>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ut(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ut(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Ze.exec(e))?new dt(t[1],t[2],t[3],1):(t=et.exec(e))?new dt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=tt.exec(e))?ut(t[1],t[2],t[3],t[4]):(t=nt.exec(e))?ut(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=rt.exec(e))?vt(t[1],t[2]/100,t[3]/100,1):(t=it.exec(e))?vt(t[1],t[2]/100,t[3]/100,t[4]):at.hasOwnProperty(e)?ct(at[e]):"transparent"===e?new dt(NaN,NaN,NaN,0):null}function ct(e){return new dt(e>>16&255,e>>8&255,255&e,1)}function ut(e,t,n,r){return r<=0&&(e=t=n=NaN),new dt(e,t,n,r)}function ht(e){return e instanceof Ye||(e=lt(e)),e?new dt((e=e.rgb()).r,e.g,e.b,e.opacity):new dt}function ft(e,t,n,r){return 1===arguments.length?ht(e):new dt(e,t,n,null==r?1:r)}function dt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function pt(){return"#"+mt(this.r)+mt(this.g)+mt(this.b)}function gt(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function mt(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function vt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new wt(e,t,n,r)}function bt(e){if(e instanceof wt)return new wt(e.h,e.s,e.l,e.opacity);if(e instanceof Ye||(e=lt(e)),!e)return new wt;if(e instanceof wt)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(o=t===a?(n-r)/s+6*(n0&&l<1?0:o,new wt(o,s,l,e.opacity)}function yt(e,t,n,r){return 1===arguments.length?bt(e):new wt(e,t,n,null==r?1:r)}function wt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function _t(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ge(Ye,lt,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:ot,formatHex:ot,formatHsl:function(){return bt(this).formatHsl()},formatRgb:st,toString:st}),Ge(dt,ft,Xe(Ye,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new dt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new dt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:pt,formatHex:pt,formatRgb:gt,toString:gt})),Ge(wt,yt,Xe(Ye,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new wt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new wt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new dt(_t(e>=240?e-240:e+120,i,r),_t(e,i,r),_t(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var St=Math.PI/180,xt=180/Math.PI,Ct=6/29,kt=3*Ct*Ct;function At(e){if(e instanceof Et)return new Et(e.l,e.a,e.b,e.opacity);if(e instanceof Ot)return Nt(e);e instanceof dt||(e=ht(e));var t,n,r=Mt(e.r),i=Mt(e.g),a=Mt(e.b),o=Pt((.2225045*r+.7168786*i+.0606169*a)/1);return r===i&&i===a?t=n=o:(t=Pt((.4360747*r+.3850649*i+.1430804*a)/.96422),n=Pt((.0139322*r+.0971045*i+.7141733*a)/.82521)),new Et(116*o-16,500*(t-o),200*(o-n),e.opacity)}function Tt(e,t,n,r){return 1===arguments.length?At(e):new Et(e,t,n,null==r?1:r)}function Et(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Pt(e){return e>.008856451679035631?Math.pow(e,1/3):e/kt+4/29}function It(e){return e>Ct?e*e*e:kt*(e-4/29)}function Rt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Mt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Lt(e){if(e instanceof Ot)return new Ot(e.h,e.c,e.l,e.opacity);if(e instanceof Et||(e=At(e)),0===e.a&&0===e.b)return new Ot(NaN,0=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=r180||n<-180?n-360*Math.round(n/360):n):$t(isNaN(e)?t:e)}function Qt(e,t){var n=t-e;return n?Kt(e,n):$t(isNaN(e)?t:e)}Ge(Vt,Wt,Xe(Ye,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Vt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Vt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*St,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new dt(255*(t+n*(-.14861*r+Ft*i)),255*(t+n*(Bt*r+jt*i)),255*(t+n*(Ut*r)),this.opacity)}}));var Zt=function e(t){var n=function(e){return 1==(e=+e)?Qt:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):$t(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=ft(e)).r,(t=ft(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Qt(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+""}}return r.gamma=e,r}(1);function en(e){return function(t){var n,r,i=t.length,a=new Array(i),o=new Array(i),s=new Array(i);for(n=0;na&&(i=t.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,l.push({i:o,x:ln(n,r)})),a=hn.lastIndex;return a180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:ln(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(a.rotate,o.rotate,s,l),function(e,t,n,a){e!==t?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:ln(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(a.skewX,o.skewX,s,l),function(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:ln(e,n)},{i:s-2,x:ln(t,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(e){for(var t,n=-1,r=l.length;++n=0&&t._call.call(null,e),t=t._next;--jn}function Qn(){Hn=(zn=Vn.now())+Wn,jn=Un=0;try{Jn()}finally{jn=0,function(){for(var e,t,n=On,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:On=t);Nn=e,er(r)}(),Hn=0}}function Zn(){var e=Vn.now(),t=e-zn;t>1e3&&(Wn-=t,zn=e)}function er(e){jn||(Un&&(Un=clearTimeout(Un)),e-Hn>24?(e<1/0&&(Un=setTimeout(Qn,e-Vn.now()-Wn)),qn&&(qn=clearInterval(qn))):(qn||(zn=Vn.now(),qn=setInterval(Zn,1e3)),jn=1,Gn(Qn)))}function tr(e,t,n){var r=new $n;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r}$n.prototype=Kn.prototype={constructor:$n,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?Xn():+n)+(null==t?0:+t),this._next||Nn===this||(Nn?Nn._next=this:On=this,Nn=this),this._call=e,this._time=n,er()},stop:function(){this._call&&(this._call=null,this._time=1/0,er())}};var nr=B("start","end","cancel","interrupt"),rr=[];function ir(e,t,n,r,i,a){var o=e.__transition;if(o){if(n in o)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function a(l){var c,u,h,f;if(1!==n.state)return s();for(c in i)if((f=i[c]).name===n.name){if(3===f.state)return tr(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[c]):+c0)throw new Error("too late; already scheduled");return n}function or(e,t){var n=sr(e,t);if(n.state>3)throw new Error("too late; already running");return n}function sr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function lr(e,t){var n,r,i,a=e.__transition,o=!0;if(a){for(i in t=null==t?null:t+"",a)(n=a[i]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete e.__transition}}function cr(e,t,n){var r=e._id;return e.each((function(){var e=or(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return sr(e,r).value[t]}}function ur(e,t){var n;return("number"==typeof t?ln:t instanceof lt?Zt:(n=lt(t))?(t=n,Zt):fn)(e,t)}var hr=Te.prototype.constructor;function fr(e){return function(){this.style.removeProperty(e)}}var dr=0;function pr(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function gr(e){return Te().transition(e)}function mr(){return++dr}var vr=Te.prototype;function br(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function yr(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}pr.prototype=gr.prototype={constructor:pr,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Y(e));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?ar:or;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}(n,e,t))},attr:function(e,t){var n=V(e),r="transform"===n?Cn:ur;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,i,a;return function(){var o,s,l=n(this);if(null!=l)return(o=this.getAttributeNS(e.space,e.local))===(s=l+"")?null:o===r&&s===i?a:(i=s,a=t(r=o,l));this.removeAttributeNS(e.space,e.local)}}:function(e,t,n){var r,i,a;return function(){var o,s,l=n(this);if(null!=l)return(o=this.getAttribute(e))===(s=l+"")?null:o===r&&s===i?a:(i=s,a=t(r=o,l));this.removeAttribute(e)}})(n,r,cr(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,i,a=n+"";return function(){var o=this.getAttributeNS(e.space,e.local);return o===a?null:o===r?i:i=t(r=o,n)}}:function(e,t,n){var r,i,a=n+"";return function(){var o=this.getAttribute(e);return o===a?null:o===r?i:i=t(r=o,n)}})(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=V(e);return this.tween(n,(r.local?function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,i)),n}return i._value=t,i}:function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,i)),n}return i._value=t,i})(r,t))},style:function(e,t,n){var r="transform"==(e+="")?xn:ur;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var a=ie(this,e),o=(this.style.removeProperty(e),ie(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}(e,r)).on("end.style."+e,fr(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,i,a;return function(){var o=ie(this,e),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(e),l=s=ie(this,e)),o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s))}}(e,r,cr(this,"style."+e,t))).each(function(e,t){var n,r,i,a,o="style."+t,s="end."+o;return function(){var l=or(this,e),c=l.on,u=null==l.value[o]?a||(a=fr(t)):void 0;c===n&&i===u||(r=(n=c).copy()).on(s,i=u),l.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,a=n+"";return function(){var o=ie(this,e);return o===a?null:o===r?i:i=t(r=o,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,a,n)),r}return a._value=t,a}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(cr(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=sr(this.node(),n).tween,a=0,o=i.length;a0&&(r=a-R),x<0?d=p-M:x>0&&(s=l-M),_=Vr,j.attr("cursor",Zr.selection),z());break;default:return}Hr()}),!0).on("keyup.brush",(function(){switch(e.event.keyCode){case 16:L&&(m=v=L=!1,z());break;case 18:_===Xr&&(S<0?c=f:S>0&&(r=a),x<0?d=p:x>0&&(s=l),_=Gr,z());break;case 32:_===Vr&&(e.event.altKey?(S&&(c=f-R*S,r=a+R*S),x&&(d=p-M*x,s=l+M*x),_=Xr):(S<0?c=f:S>0&&(r=a),x<0?d=p:x>0&&(s=l),_=Gr),j.attr("cursor",Zr[w]),z());break;default:return}Hr()}),!0),Be(e.event.view)}zr(),lr(y),u.call(y),F.start()}function q(){var e=D(y);!L||m||v||(Math.abs(e[0]-N[0])>Math.abs(e[1]-N[1])?v=!0:m=!0),N=e,g=!0,Hr(),z()}function z(){var e;switch(R=N[0]-O[0],M=N[1]-O[1],_){case Vr:case Wr:S&&(R=Math.max(T-r,Math.min(P-c,R)),a=r+R,f=c+R),x&&(M=Math.max(E-s,Math.min(I-d,M)),l=s+M,p=d+M);break;case Gr:S<0?(R=Math.max(T-r,Math.min(P-r,R)),a=r+R,f=c):S>0&&(R=Math.max(T-c,Math.min(P-c,R)),a=r,f=c+R),x<0?(M=Math.max(E-s,Math.min(I-s,M)),l=s+M,p=d):x>0&&(M=Math.max(E-d,Math.min(I-d,M)),l=s,p=d+M);break;case Xr:S&&(a=Math.max(T,Math.min(P,r-R*S)),f=Math.max(T,Math.min(P,c+R*S))),x&&(l=Math.max(E,Math.min(I,s-M*x)),p=Math.max(E,Math.min(I,d+M*x)))}f1e-6)if(Math.abs(u*s-l*c)>1e-6&&i){var f=n-a,d=r-o,p=s*s+l*l,g=f*f+d*d,m=Math.sqrt(p),v=Math.sqrt(h),b=i*Math.tan((yi-Math.acos((p+h-g)/(2*m*v)))/2),y=b/v,w=b/m;Math.abs(y-1)>1e-6&&(this._+="L"+(e+y*c)+","+(t+y*u)),this._+="A"+i+","+i+",0,0,"+ +(u*f>c*d)+","+(this._x1=e+w*s)+","+(this._y1=t+w*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},arc:function(e,t,n,r,i,a){e=+e,t=+t,a=!!a;var o=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+o,c=t+s,u=1^a,h=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+l+","+c),n&&(h<0&&(h=h%wi+wi),h>_i?this._+="A"+n+","+n+",0,1,"+u+","+(e-o)+","+(t-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):h>1e-6&&(this._+="A"+n+","+n+",0,"+ +(h>=yi)+","+u+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},Pi.prototype=Ii.prototype={constructor:Pi,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var Ni=Ii.prototype;function Fi(e,t){var n=new Oi;if(e instanceof Oi)e.each((function(e){n.add(e)}));else if(e){var r=-1,i=e.length;if(null==t)for(;++rr!=d>r&&n<(f-c)*(r-u)/(d-u)+c&&(i=-i)}return i}function Hi(e,t,n){var r,i,a,o;return function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])==(n[0]-e[0])*(t[1]-e[1])}(e,t,n)&&(i=e[r=+(e[0]===t[0])],a=n[r],o=t[r],i<=a&&a<=o||o<=a&&a<=i)}function Wi(){}var Vi=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Gi(){var e=1,t=1,n=x,r=s;function i(e){var t=n(e);if(Array.isArray(t))t=t.slice().sort(ji);else{var r=u(e),i=r[0],o=r[1];t=S(i,o,t),t=m(Math.floor(i/t)*t,Math.floor(o/t)*t,t)}return t.map((function(t){return a(e,t)}))}function a(n,i){var a=[],s=[];return function(n,r,i){var a,s,l,c,u,h,f=new Array,d=new Array;for(a=s=-1,c=n[0]>=r,Vi[c<<1].forEach(p);++a=r,Vi[l|c<<1].forEach(p);for(Vi[c<<0].forEach(p);++s=r,u=n[s*e]>=r,Vi[c<<1|u<<2].forEach(p);++a=r,h=u,u=n[s*e+a+1]>=r,Vi[l|c<<1|u<<2|h<<3].forEach(p);Vi[c|u<<3].forEach(p)}for(a=-1,u=n[s*e]>=r,Vi[u<<2].forEach(p);++a=r,Vi[u<<2|h<<3].forEach(p);function p(e){var t,n,r=[e[0][0]+a,e[0][1]+s],l=[e[1][0]+a,e[1][1]+s],c=o(r),u=o(l);(t=d[c])?(n=f[u])?(delete d[t.end],delete f[n.start],t===n?(t.ring.push(l),i(t.ring)):f[t.start]=d[n.end]={start:t.start,end:n.end,ring:t.ring.concat(n.ring)}):(delete d[t.end],t.ring.push(l),d[t.end=u]=t):(t=f[u])?(n=d[c])?(delete f[t.start],delete d[n.end],t===n?(t.ring.push(l),i(t.ring)):f[n.start]=d[t.end]={start:n.start,end:t.end,ring:n.ring.concat(t.ring)}):(delete f[t.start],t.ring.unshift(r),f[t.start=c]=t):f[c]=d[u]={start:c,end:u,ring:[r,l]}}Vi[u<<3].forEach(p)}(n,i,(function(e){r(e,n,i),function(e){for(var t=0,n=e.length,r=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++t0?a.push([e]):s.push(e)})),s.forEach((function(e){for(var t,n=0,r=a.length;n0&&o0&&s0&&a>0))throw new Error("invalid size");return e=r,t=a,i},i.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?Ui(Bi.call(e)):Ui(e),i):n},i.smooth=function(e){return arguments.length?(r=e?s:Wi,i):r===s},i}function Xi(e,t,n){for(var r=e.width,i=e.height,a=1+(n<<1),o=0;o=n&&(s>=a&&(l-=e.data[s-a+o*r]),t.data[s-n+o*r]=l/Math.min(s+1,r-1+a-s,a))}function Yi(e,t,n){for(var r=e.width,i=e.height,a=1+(n<<1),o=0;o=n&&(s>=a&&(l-=e.data[o+(s-a)*r]),t.data[o+(s-n)*r]=l/Math.min(s+1,i-1+a-s,a))}function $i(e){return e[0]}function Ki(e){return e[1]}function Ji(){return 1}var Qi={},Zi={};function ea(e){return new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+'] || ""'})).join(",")+"}")}function ta(e){var t=Object.create(null),n=[];return e.forEach((function(e){for(var r in e)r in t||n.push(t[r]=r)})),n}function na(e,t){var n=e+"",r=n.length;return r=a?l=!0:10===(r=e.charCodeAt(o++))?c=!0:13===r&&(c=!0,10===e.charCodeAt(o)&&++o),e.slice(i+1,t-1).replace(/""/g,'"')}for(;o9999?"+"+na(e,6):na(e,4)}(e.getUTCFullYear())+"-"+na(e.getUTCMonth()+1,2)+"-"+na(e.getUTCDate(),2)+(i?"T"+na(t,2)+":"+na(n,2)+":"+na(r,2)+"."+na(i,3)+"Z":r?"T"+na(t,2)+":"+na(n,2)+":"+na(r,2)+"Z":n||t?"T"+na(t,2)+":"+na(n,2)+"Z":"")}(e):t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:function(e,t){var n,i,a=r(e,(function(e,r){if(n)return n(e,r-1);i=e,n=t?function(e,t){var n=ea(e);return function(r,i){return t(n(r),i,e)}}(e,t):ea(e)}));return a.columns=i||[],a},parseRows:r,format:function(t,n){return null==n&&(n=ta(t)),[n.map(o).join(e)].concat(i(t,n)).join("\n")},formatBody:function(e,t){return null==t&&(t=ta(e)),i(e,t).join("\n")},formatRows:function(e){return e.map(a).join("\n")},formatRow:a,formatValue:o}}var ia=ra(","),aa=ia.parse,oa=ia.parseRows,sa=ia.format,la=ia.formatBody,ca=ia.formatRows,ua=ia.formatRow,ha=ia.formatValue,fa=ra("\t"),da=fa.parse,pa=fa.parseRows,ga=fa.format,ma=fa.formatBody,va=fa.formatRows,ba=fa.formatRow,ya=fa.formatValue,wa=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function _a(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.blob()}function Sa(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.arrayBuffer()}function xa(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}function Ca(e,t){return fetch(e,t).then(xa)}function ka(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=void 0),Ca(t,n).then((function(t){return e(t,r)}))}}var Aa=ka(aa),Ta=ka(da);function Ea(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.json()}function Pa(e){return function(t,n){return Ca(t,n).then((function(t){return(new DOMParser).parseFromString(t,e)}))}}var Ia=Pa("application/xml"),Ra=Pa("text/html"),Ma=Pa("image/svg+xml");function La(e){return function(){return e}}function Da(){return 1e-6*(Math.random()-.5)}function Oa(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,a,o,s,l,c,u,h,f,d=e._root,p={data:r},g=e._x0,m=e._y0,v=e._x1,b=e._y1;if(!d)return e._root=p,e;for(;d.length;)if((c=t>=(a=(g+v)/2))?g=a:v=a,(u=n>=(o=(m+b)/2))?m=o:b=o,i=d,!(d=d[h=u<<1|c]))return i[h]=p,e;if(s=+e._x.call(null,d.data),l=+e._y.call(null,d.data),t===s&&n===l)return p.next=d,i?i[h]=p:e._root=p,e;do{i=i?i[h]=new Array(4):e._root=new Array(4),(c=t>=(a=(g+v)/2))?g=a:v=a,(u=n>=(o=(m+b)/2))?m=o:b=o}while((h=u<<1|c)==(f=(l>=o)<<1|s>=a));return i[f]=d,i[h]=p,e}function Na(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function Fa(e){return e[0]}function Ba(e){return e[1]}function ja(e,t,n){var r=new Ua(null==t?Fa:t,null==n?Ba:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function Ua(e,t,n,r,i,a){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function qa(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var za=ja.prototype=Ua.prototype;function Ha(e){return e.x+e.vx}function Wa(e){return e.y+e.vy}function Va(e){return e.index}function Ga(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function Xa(e){return e.x}function Ya(e){return e.y}za.copy=function(){var e,t,n=new Ua(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=qa(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var i=0;i<4;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(4)}):r.target[i]=qa(t));return n},za.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return Oa(this.cover(t,n),t,n,e)},za.addAll=function(e){var t,n,r,i,a=e.length,o=new Array(a),s=new Array(a),l=1/0,c=1/0,u=-1/0,h=-1/0;for(n=0;nu&&(u=r),ih&&(h=i));if(l>u||c>h)return this;for(this.cover(l,c).cover(u,h),n=0;ne||e>=i||r>t||t>=a;)switch(s=(tf||(a=l.y0)>d||(o=l.x1)=v)<<1|e>=m)&&(l=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=l)}else{var b=e-+this._x.call(null,g.data),y=t-+this._y.call(null,g.data),w=b*b+y*y;if(w=(s=(p+m)/2))?p=s:m=s,(u=o>=(l=(g+v)/2))?g=l:v=l,t=d,!(d=d[h=u<<1|c]))return this;if(!d.length)break;(t[h+1&3]||t[h+2&3]||t[h+3&3])&&(n=t,f=h)}for(;d.data!==e;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):t?(i?t[h]=i:delete t[h],(d=t[0]||t[1]||t[2]||t[3])&&d===(t[3]||t[2]||t[1]||t[0])&&!d.length&&(n?n[f]=d:this._root=d),this):(this._root=i,this)},za.removeAll=function(e){for(var t=0,n=e.length;t1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ja(e){return(e=Ka(Math.abs(e)))?e[1]:NaN}var Qa,Za=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function eo(e){if(!(t=Za.exec(e)))throw new Error("invalid format: "+e);var t;return new to({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function to(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function no(e,t){var n=Ka(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}eo.prototype=to.prototype,to.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var ro={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return no(100*e,t)},r:no,s:function(e,t){var n=Ka(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(Qa=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Ka(e,Math.max(0,t+a-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function io(e){return e}var ao,oo=Array.prototype.map,so=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function lo(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?io:(t=oo.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,a=[],o=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[o=(o+1)%t.length];return a.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",o=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?io:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(oo.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"-":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function h(e){var t=(e=eo(e)).fill,n=e.align,h=e.sign,f=e.symbol,d=e.zero,p=e.width,g=e.comma,m=e.precision,v=e.trim,b=e.type;"n"===b?(g=!0,b="g"):ro[b]||(void 0===m&&(m=12),v=!0,b="g"),(d||"0"===t&&"="===n)&&(d=!0,t="0",n="=");var y="$"===f?i:"#"===f&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===f?a:/[%p]/.test(b)?l:"",_=ro[b],S=/[defgprs%]/.test(b);function x(e){var i,a,l,f=y,x=w;if("c"===b)x=_(e)+x,e="";else{var C=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:_(Math.abs(e),m),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),C&&0==+e&&"+"!==h&&(C=!1),f=(C?"("===h?h:c:"-"===h||"("===h?"":h)+f,x=("s"===b?so[8+Qa/3]:"")+x+(C&&"("===h?")":""),S)for(i=-1,a=e.length;++i(l=e.charCodeAt(i))||l>57){x=(46===l?o+e.slice(i+1):e.slice(i))+x,e=e.slice(0,i);break}}g&&!d&&(e=r(e,1/0));var k=f.length+e.length+x.length,A=k>1)+f+e+x+A.slice(k);break;default:e=A+f+e+x}return s(e)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),x.toString=function(){return e+""},x}return{format:h,formatPrefix:function(e,t){var n=h(((e=eo(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Ja(t)/3))),i=Math.pow(10,-r),a=so[8+r/3];return function(e){return n(i*e)+a}}}}function co(t){return ao=lo(t),e.format=ao.format,e.formatPrefix=ao.formatPrefix,ao}function uo(e){return Math.max(0,-Ja(Math.abs(e)))}function ho(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ja(t)/3)))-Ja(Math.abs(e)))}function fo(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ja(t)-Ja(e))+1}function po(){return new go}function go(){this.reset()}co({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),go.prototype={constructor:go,reset:function(){this.s=this.t=0},add:function(e){vo(mo,e,this.t),vo(this,mo.s,this.s),this.s?this.t+=mo.t:this.s=mo.t},valueOf:function(){return this.s}};var mo=new go;function vo(e,t,n){var r=e.s=t+n,i=r-t,a=r-i;e.t=t-a+(n-i)}var bo=1e-6,yo=1e-12,wo=Math.PI,_o=wo/2,So=wo/4,xo=2*wo,Co=180/wo,ko=wo/180,Ao=Math.abs,To=Math.atan,Eo=Math.atan2,Po=Math.cos,Io=Math.ceil,Ro=Math.exp,Mo=Math.log,Lo=Math.pow,Do=Math.sin,Oo=Math.sign||function(e){return e>0?1:e<0?-1:0},No=Math.sqrt,Fo=Math.tan;function Bo(e){return e>1?0:e<-1?wo:Math.acos(e)}function jo(e){return e>1?_o:e<-1?-_o:Math.asin(e)}function Uo(e){return(e=Do(e/2))*e}function qo(){}function zo(e,t){e&&Wo.hasOwnProperty(e.type)&&Wo[e.type](e,t)}var Ho={Feature:function(e,t){zo(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r=0?1:-1,i=r*n,a=Po(t=(t*=ko)/2+So),o=Do(t),s=Qo*o,l=Jo*a+s*Po(i),c=s*r*Do(i);Zo.add(Eo(c,l)),Ko=e,Jo=a,Qo=o}function os(e){return[Eo(e[1],e[0]),jo(e[2])]}function ss(e){var t=e[0],n=e[1],r=Po(n);return[r*Po(t),r*Do(t),Do(n)]}function ls(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function cs(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function us(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function hs(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function fs(e){var t=No(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var ds,ps,gs,ms,vs,bs,ys,ws,_s,Ss,xs,Cs,ks,As,Ts,Es,Ps,Is,Rs,Ms,Ls,Ds,Os,Ns,Fs,Bs,js=po(),Us={point:qs,lineStart:Hs,lineEnd:Ws,polygonStart:function(){Us.point=Vs,Us.lineStart=Gs,Us.lineEnd=Xs,js.reset(),ts.polygonStart()},polygonEnd:function(){ts.polygonEnd(),Us.point=qs,Us.lineStart=Hs,Us.lineEnd=Ws,Zo<0?(ds=-(gs=180),ps=-(ms=90)):js>bo?ms=90:js<-bo&&(ps=-90),Ss[0]=ds,Ss[1]=gs},sphere:function(){ds=-(gs=180),ps=-(ms=90)}};function qs(e,t){_s.push(Ss=[ds=e,gs=e]),tms&&(ms=t)}function zs(e,t){var n=ss([e*ko,t*ko]);if(ws){var r=cs(ws,n),i=cs([r[1],-r[0],0],r);fs(i),i=os(i);var a,o=e-vs,s=o>0?1:-1,l=i[0]*Co*s,c=Ao(o)>180;c^(s*vsms&&(ms=a):c^(s*vs<(l=(l+360)%360-180)&&lms&&(ms=t)),c?eYs(ds,gs)&&(gs=e):Ys(e,gs)>Ys(ds,gs)&&(ds=e):gs>=ds?(egs&&(gs=e)):e>vs?Ys(ds,e)>Ys(ds,gs)&&(gs=e):Ys(e,gs)>Ys(ds,gs)&&(ds=e)}else _s.push(Ss=[ds=e,gs=e]);tms&&(ms=t),ws=n,vs=e}function Hs(){Us.point=zs}function Ws(){Ss[0]=ds,Ss[1]=gs,Us.point=qs,ws=null}function Vs(e,t){if(ws){var n=e-vs;js.add(Ao(n)>180?n+(n>0?360:-360):n)}else bs=e,ys=t;ts.point(e,t),zs(e,t)}function Gs(){ts.lineStart()}function Xs(){Vs(bs,ys),ts.lineEnd(),Ao(js)>bo&&(ds=-(gs=180)),Ss[0]=ds,Ss[1]=gs,ws=null}function Ys(e,t){return(t-=e)<0?t+360:t}function $s(e,t){return e[0]-t[0]}function Ks(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:two?e+Math.round(-e/xo)*xo:e,t]}function hl(e,t,n){return(e%=xo)?t||n?cl(dl(e),pl(t,n)):dl(e):t||n?pl(t,n):ul}function fl(e){return function(t,n){return[(t+=e)>wo?t-xo:t<-wo?t+xo:t,n]}}function dl(e){var t=fl(e);return t.invert=fl(-e),t}function pl(e,t){var n=Po(e),r=Do(e),i=Po(t),a=Do(t);function o(e,t){var o=Po(t),s=Po(e)*o,l=Do(e)*o,c=Do(t),u=c*n+s*r;return[Eo(l*i-u*a,s*n-c*r),jo(u*i+l*a)]}return o.invert=function(e,t){var o=Po(t),s=Po(e)*o,l=Do(e)*o,c=Do(t),u=c*i-l*a;return[Eo(l*i+c*a,s*n+u*r),jo(u*n-s*r)]},o}function gl(e){function t(t){return(t=e(t[0]*ko,t[1]*ko))[0]*=Co,t[1]*=Co,t}return e=hl(e[0]*ko,e[1]*ko,e.length>2?e[2]*ko:0),t.invert=function(t){return(t=e.invert(t[0]*ko,t[1]*ko))[0]*=Co,t[1]*=Co,t},t}function ml(e,t,n,r,i,a){if(n){var o=Po(t),s=Do(t),l=r*n;null==i?(i=t+r*xo,a=t-l/2):(i=vl(o,i),a=vl(o,a),(r>0?ia)&&(i+=r*xo));for(var c,u=i;r>0?u>a:u1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function yl(e,t){return Ao(e[0]-t[0])=0;--a)i.point((u=c[a])[0],u[1]);else r(f.x,f.p.x,-1,i);f=f.p}c=(f=f.o).z,d=!d}while(!f.v);i.lineEnd()}}}function Sl(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r=0?1:-1,k=C*x,A=k>wo,T=g*_;if(xl.add(Eo(T*C*Do(k),m*S+T*Po(k))),o+=A?x+C*xo:x,A^d>=n^y>=n){var E=cs(ss(f),ss(b));fs(E);var P=cs(a,E);fs(P);var I=(A^x>=0?-1:1)*jo(P[2]);(r>I||r===I&&(E[0]||E[1]))&&(s+=A^x>=0?1:-1)}}return(o<-bo||o0){for(h||(i.polygonStart(),h=!0),i.lineStart(),e=0;e1&&2&l&&f.push(f.pop().concat(f.shift())),o.push(f.filter(Tl))}return f}}function Tl(e){return e.length>1}function El(e,t){return((e=e.x)[0]<0?e[1]-_o-bo:_o-e[1])-((t=t.x)[0]<0?t[1]-_o-bo:_o-t[1])}var Pl=Al((function(){return!0}),(function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(a,o){var s=a>0?wo:-wo,l=Ao(a-n);Ao(l-wo)0?_o:-_o),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(a,r),t=0):i!==s&&l>=wo&&(Ao(n-i)bo?To((Do(t)*(a=Po(r))*Do(n)-Do(r)*(i=Po(t))*Do(e))/(i*a*o)):(t+r)/2}(n,r,a,o),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=a,r=o),i=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}),(function(e,t,n,r){var i;if(null==e)i=n*_o,r.point(-wo,i),r.point(0,i),r.point(wo,i),r.point(wo,0),r.point(wo,-i),r.point(0,-i),r.point(-wo,-i),r.point(-wo,0),r.point(-wo,i);else if(Ao(e[0]-t[0])>bo){var a=e[0]0,i=Ao(t)>bo;function a(e,n){return Po(e)*Po(n)>t}function o(e,n,r){var i=[1,0,0],a=cs(ss(e),ss(n)),o=ls(a,a),s=a[0],l=o-s*s;if(!l)return!r&&e;var c=t*o/l,u=-t*s/l,h=cs(i,a),f=hs(i,c);us(f,hs(a,u));var d=h,p=ls(f,d),g=ls(d,d),m=p*p-g*(ls(f,f)-1);if(!(m<0)){var v=No(m),b=hs(d,(-p-v)/g);if(us(b,f),b=os(b),!r)return b;var y,w=e[0],_=n[0],S=e[1],x=n[1];_0^b[1]<(Ao(b[0]-w)wo^(w<=b[0]&&b[0]<=_)){var A=hs(d,(-p+v)/g);return us(A,f),[b,os(A)]}}}function s(t,n){var i=r?e:wo-e,a=0;return t<-i?a|=1:t>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return Al(a,(function(e){var t,n,l,c,u;return{lineStart:function(){c=l=!1,u=1},point:function(h,f){var d,p=[h,f],g=a(h,f),m=r?g?0:s(h,f):g?s(h+(h<0?wo:-wo),f):0;if(!t&&(c=l=g)&&e.lineStart(),g!==l&&(!(d=o(t,p))||yl(t,d)||yl(p,d))&&(p[0]+=bo,p[1]+=bo,g=a(p[0],p[1])),g!==l)u=0,g?(e.lineStart(),d=o(p,t),e.point(d[0],d[1])):(d=o(t,p),e.point(d[0],d[1]),e.lineEnd()),t=d;else if(i&&t&&r^g){var v;m&n||!(v=o(p,t,!0))||(u=0,r?(e.lineStart(),e.point(v[0][0],v[0][1]),e.point(v[1][0],v[1][1]),e.lineEnd()):(e.point(v[1][0],v[1][1]),e.lineEnd(),e.lineStart(),e.point(v[0][0],v[0][1])))}!g||t&&yl(t,p)||e.point(p[0],p[1]),t=p,l=g,n=m},lineEnd:function(){l&&e.lineEnd(),t=null},clean:function(){return u|(c&&l)<<1}}}),(function(t,r,i,a){ml(a,e,n,i,t,r)}),r?[0,-e]:[-wo,e-wo])}var Rl=1e9,Ml=-Rl;function Ll(e,t,n,r){function i(i,a){return e<=i&&i<=n&&t<=a&&a<=r}function a(i,a,s,c){var u=0,h=0;if(null==i||(u=o(i,s))!==(h=o(a,s))||l(i,a)<0^s>0)do{c.point(0===u||3===u?e:n,u>1?r:t)}while((u=(u+s+4)%4)!==h);else c.point(a[0],a[1])}function o(r,i){return Ao(r[0]-e)0?0:3:Ao(r[0]-n)0?2:1:Ao(r[1]-t)0?1:0:i>0?3:2}function s(e,t){return l(e.x,t.x)}function l(e,t){var n=o(e,1),r=o(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(o){var l,c,u,h,f,d,p,g,m,v,b,y=o,w=bl(),_={point:S,lineStart:function(){_.point=x,c&&c.push(u=[]),v=!0,m=!1,p=g=NaN},lineEnd:function(){l&&(x(h,f),d&&m&&w.rejoin(),l.push(w.result())),_.point=S,m&&y.lineEnd()},polygonStart:function(){y=w,l=[],c=[],b=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,i=c.length;nr&&(f-a)*(r-o)>(d-o)*(e-a)&&++t:d<=r&&(f-a)*(r-o)<(d-o)*(e-a)&&--t;return t}(),n=b&&t,i=(l=A(l)).length;(n||i)&&(o.polygonStart(),n&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),i&&_l(l,s,t,a,o),o.polygonEnd()),y=o,l=c=u=null}};function S(e,t){i(e,t)&&y.point(e,t)}function x(a,o){var s=i(a,o);if(c&&u.push([a,o]),v)h=a,f=o,d=s,v=!1,s&&(y.lineStart(),y.point(a,o));else if(s&&m)y.point(a,o);else{var l=[p=Math.max(Ml,Math.min(Rl,p)),g=Math.max(Ml,Math.min(Rl,g))],w=[a=Math.max(Ml,Math.min(Rl,a)),o=Math.max(Ml,Math.min(Rl,o))];!function(e,t,n,r,i,a){var o,s=e[0],l=e[1],c=0,u=1,h=t[0]-s,f=t[1]-l;if(o=n-s,h||!(o>0)){if(o/=h,h<0){if(o0){if(o>u)return;o>c&&(c=o)}if(o=i-s,h||!(o<0)){if(o/=h,h<0){if(o>u)return;o>c&&(c=o)}else if(h>0){if(o0)){if(o/=f,f<0){if(o0){if(o>u)return;o>c&&(c=o)}if(o=a-l,f||!(o<0)){if(o/=f,f<0){if(o>u)return;o>c&&(c=o)}else if(f>0){if(o0&&(e[0]=s+c*h,e[1]=l+c*f),u<1&&(t[0]=s+u*h,t[1]=l+u*f),!0}}}}}(l,w,e,t,n,r)?s&&(y.lineStart(),y.point(a,o),b=!1):(m||(y.lineStart(),y.point(l[0],l[1])),y.point(w[0],w[1]),s||y.lineEnd(),b=!1)}p=a,g=o,m=s}return _}}var Dl,Ol,Nl,Fl=po(),Bl={sphere:qo,point:qo,lineStart:function(){Bl.point=Ul,Bl.lineEnd=jl},lineEnd:qo,polygonStart:qo,polygonEnd:qo};function jl(){Bl.point=Bl.lineEnd=qo}function Ul(e,t){Dl=e*=ko,Ol=Do(t*=ko),Nl=Po(t),Bl.point=ql}function ql(e,t){e*=ko;var n=Do(t*=ko),r=Po(t),i=Ao(e-Dl),a=Po(i),o=r*Do(i),s=Nl*n-Ol*r*a,l=Ol*n+Nl*r*a;Fl.add(Eo(No(o*o+s*s),l)),Dl=e,Ol=n,Nl=r}function zl(e){return Fl.reset(),Xo(e,Bl),+Fl}var Hl=[null,null],Wl={type:"LineString",coordinates:Hl};function Vl(e,t){return Hl[0]=e,Hl[1]=t,zl(Wl)}var Gl={Feature:function(e,t){return Yl(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r0&&(i=Vl(e[a],e[a-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))bo})).map(l)).concat(m(Io(a/d)*d,i,d).filter((function(e){return Ao(e%g)>bo})).map(c))}return b.lines=function(){return y().map((function(e){return{type:"LineString",coordinates:e}}))},b.outline=function(){return{type:"Polygon",coordinates:[u(r).concat(h(o).slice(1),u(n).reverse().slice(1),h(s).reverse().slice(1))]}},b.extent=function(e){return arguments.length?b.extentMajor(e).extentMinor(e):b.extentMinor()},b.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],o=+e[1][1],r>n&&(e=r,r=n,n=e),s>o&&(e=s,s=o,o=e),b.precision(v)):[[r,s],[n,o]]},b.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],a=+n[0][1],i=+n[1][1],t>e&&(n=t,t=e,e=n),a>i&&(n=a,a=i,i=n),b.precision(v)):[[t,a],[e,i]]},b.step=function(e){return arguments.length?b.stepMajor(e).stepMinor(e):b.stepMinor()},b.stepMajor=function(e){return arguments.length?(p=+e[0],g=+e[1],b):[p,g]},b.stepMinor=function(e){return arguments.length?(f=+e[0],d=+e[1],b):[f,d]},b.precision=function(f){return arguments.length?(v=+f,l=ec(a,i,90),c=tc(t,e,v),u=ec(s,o,90),h=tc(r,n,v),b):v},b.extentMajor([[-180,-90+bo],[180,90-bo]]).extentMinor([[-180,-80-bo],[180,80+bo]])}function rc(e){return e}var ic,ac,oc,sc,lc=po(),cc=po(),uc={point:qo,lineStart:qo,lineEnd:qo,polygonStart:function(){uc.lineStart=hc,uc.lineEnd=pc},polygonEnd:function(){uc.lineStart=uc.lineEnd=uc.point=qo,lc.add(Ao(cc)),cc.reset()},result:function(){var e=lc/2;return lc.reset(),e}};function hc(){uc.point=fc}function fc(e,t){uc.point=dc,ic=oc=e,ac=sc=t}function dc(e,t){cc.add(sc*e-oc*t),oc=e,sc=t}function pc(){dc(ic,ac)}var gc,mc,vc,bc,yc=1/0,wc=yc,_c=-yc,Sc=_c,xc={point:function(e,t){e_c&&(_c=e),tSc&&(Sc=t)},lineStart:qo,lineEnd:qo,polygonStart:qo,polygonEnd:qo,result:function(){var e=[[yc,wc],[_c,Sc]];return _c=Sc=-(wc=yc=1/0),e}},Cc=0,kc=0,Ac=0,Tc=0,Ec=0,Pc=0,Ic=0,Rc=0,Mc=0,Lc={point:Dc,lineStart:Oc,lineEnd:Bc,polygonStart:function(){Lc.lineStart=jc,Lc.lineEnd=Uc},polygonEnd:function(){Lc.point=Dc,Lc.lineStart=Oc,Lc.lineEnd=Bc},result:function(){var e=Mc?[Ic/Mc,Rc/Mc]:Pc?[Tc/Pc,Ec/Pc]:Ac?[Cc/Ac,kc/Ac]:[NaN,NaN];return Cc=kc=Ac=Tc=Ec=Pc=Ic=Rc=Mc=0,e}};function Dc(e,t){Cc+=e,kc+=t,++Ac}function Oc(){Lc.point=Nc}function Nc(e,t){Lc.point=Fc,Dc(vc=e,bc=t)}function Fc(e,t){var n=e-vc,r=t-bc,i=No(n*n+r*r);Tc+=i*(vc+e)/2,Ec+=i*(bc+t)/2,Pc+=i,Dc(vc=e,bc=t)}function Bc(){Lc.point=Dc}function jc(){Lc.point=qc}function Uc(){zc(gc,mc)}function qc(e,t){Lc.point=zc,Dc(gc=vc=e,mc=bc=t)}function zc(e,t){var n=e-vc,r=t-bc,i=No(n*n+r*r);Tc+=i*(vc+e)/2,Ec+=i*(bc+t)/2,Pc+=i,Ic+=(i=bc*e-vc*t)*(vc+e),Rc+=i*(bc+t),Mc+=3*i,Dc(vc=e,bc=t)}function Hc(e){this._context=e}Hc.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,xo)}},result:qo};var Wc,Vc,Gc,Xc,Yc,$c=po(),Kc={point:qo,lineStart:function(){Kc.point=Jc},lineEnd:function(){Wc&&Qc(Vc,Gc),Kc.point=qo},polygonStart:function(){Wc=!0},polygonEnd:function(){Wc=null},result:function(){var e=+$c;return $c.reset(),e}};function Jc(e,t){Kc.point=Qc,Vc=Xc=e,Gc=Yc=t}function Qc(e,t){Xc-=e,Yc-=t,$c.add(No(Xc*Xc+Yc*Yc)),Xc=e,Yc=t}function Zc(){this._string=[]}function eu(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function tu(e){return function(t){var n=new nu;for(var r in e)n[r]=e[r];return n.stream=t,n}}function nu(){}function ru(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),Xo(n,e.stream(xc)),t(xc.result()),null!=r&&e.clipExtent(r),e}function iu(e,t,n){return ru(e,(function(n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],a=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+t[0][0]+(r-a*(n[1][0]+n[0][0]))/2,s=+t[0][1]+(i-a*(n[1][1]+n[0][1]))/2;e.scale(150*a).translate([o,s])}),n)}function au(e,t,n){return iu(e,[[0,0],t],n)}function ou(e,t,n){return ru(e,(function(n){var r=+t,i=r/(n[1][0]-n[0][0]),a=(r-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];e.scale(150*i).translate([a,o])}),n)}function su(e,t,n){return ru(e,(function(n){var r=+t,i=r/(n[1][1]-n[0][1]),a=-i*n[0][0],o=(r-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([a,o])}),n)}Zc.prototype={_radius:4.5,_circle:eu(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=eu(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}},nu.prototype={constructor:nu,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var lu=Po(30*ko);function cu(e,t){return+t?function(e,t){function n(r,i,a,o,s,l,c,u,h,f,d,p,g,m){var v=c-r,b=u-i,y=v*v+b*b;if(y>4*t&&g--){var w=o+f,_=s+d,S=l+p,x=No(w*w+_*_+S*S),C=jo(S/=x),k=Ao(Ao(S)-1)t||Ao((v*P+b*I)/y-.5)>.3||o*f+s*d+l*p2?e[2]%360*ko:0,P()):[m*Co,v*Co,b*Co]},T.angle=function(e){return arguments.length?(y=e%360*ko,P()):y*Co},T.reflectX=function(e){return arguments.length?(w=e?-1:1,P()):w<0},T.reflectY=function(e){return arguments.length?(_=e?-1:1,P()):_<0},T.precision=function(e){return arguments.length?(o=cu(s,A=e*e),I()):No(A)},T.fitExtent=function(e,t){return iu(T,e,t)},T.fitSize=function(e,t){return au(T,e,t)},T.fitWidth=function(e,t){return ou(T,e,t)},T.fitHeight=function(e,t){return su(T,e,t)},function(){return t=e.apply(this,arguments),T.invert=t.invert&&E,P()}}function pu(e){var t=0,n=wo/3,r=du(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*ko,n=e[1]*ko):[t*Co,n*Co]},i}function gu(e,t){var n=Do(e),r=(n+Do(t))/2;if(Ao(r)0?t<-_o+bo&&(t=-_o+bo):t>_o-bo&&(t=_o-bo);var n=i/Lo(Cu(t),r);return[n*Do(r*e),i-n*Po(r*e)]}return a.invert=function(e,t){var n=i-t,a=Oo(r)*No(e*e+n*n),o=Eo(e,Ao(n))*Oo(n);return n*r<0&&(o-=wo*Oo(e)*Oo(n)),[o/r,2*To(Lo(i/a,1/r))-_o]},a}function Au(e,t){return[e,t]}function Tu(e,t){var n=Po(e),r=e===t?Do(e):(n-Po(t))/(t-e),i=n/r+e;if(Ao(r)=0;)t+=n[r].value;else t=1;e.value=t}function Hu(e,t){var n,r,i,a,o,s=new Xu(e),l=+e.value&&(s.value=e.value),c=[s];for(null==t&&(t=Wu);n=c.pop();)if(l&&(n.value=+n.data.value),(i=t(n.data))&&(o=i.length))for(n.children=new Array(o),a=o-1;a>=0;--a)c.push(r=n.children[a]=new Xu(i[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Gu)}function Wu(e){return e.children}function Vu(e){e.data=e.data.data}function Gu(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Xu(e){this.data=e,this.depth=this.height=0,this.parent=null}Lu.invert=function(e,t){for(var n,r=t,i=r*r,a=i*i*i,o=0;o<12&&(a=(i=(r-=n=(r*(Eu+Pu*i+a*(Iu+Ru*i))-t)/(Eu+3*Pu*i+a*(7*Iu+9*Ru*i)))*r)*i*i,!(Ao(n)bo&&--i>0);return[e/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]},Nu.invert=yu(jo),Fu.invert=yu((function(e){return 2*To(e)})),Bu.invert=function(e,t){return[-t,2*To(Ro(e))-_o]},Xu.prototype=Hu.prototype={constructor:Xu,count:function(){return this.eachAfter(zu)},each:function(e){var t,n,r,i,a=this,o=[a];do{for(t=o.reverse(),o=[];a=t.pop();)if(e(a),n=a.children)for(r=0,i=n.length;r=0;--n)i.push(t[n]);return this},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each((function(t){e.push(t)})),e},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Hu(this).eachBefore(Vu)}};var Yu=Array.prototype.slice;function $u(e){for(var t,n,r=0,i=(e=function(e){for(var t,n,r=e.length;r;)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e}(Yu.call(e))).length,a=[];r0&&n*n>r*r+i*i}function Zu(e,t){for(var n=0;n(o*=o)?(r=(c+o-i)/(2*c),a=Math.sqrt(Math.max(0,o/c-r*r)),n.x=e.x-r*s-a*l,n.y=e.y-r*l+a*s):(r=(c+i-o)/(2*c),a=Math.sqrt(Math.max(0,i/c-r*r)),n.x=t.x+r*s-a*l,n.y=t.y+r*l+a*s)):(n.x=t.x+n.r,n.y=t.y)}function ih(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function ah(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,a=(t.y*n.r+n.y*t.r)/r;return i*i+a*a}function oh(e){this._=e,this.next=null,this.previous=null}function sh(e){if(!(i=e.length))return 0;var t,n,r,i,a,o,s,l,c,u,h;if((t=e[0]).x=0,t.y=0,!(i>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(i>2))return t.r+n.r;rh(n,t,r=e[2]),t=new oh(t),n=new oh(n),r=new oh(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;sf&&(f=s),m=u*u*g,(d=Math.max(f/m,m/h))>p){u-=s;break}p=d}v.push(o={value:u,dice:l1?t:1)},n}(Ph),Mh=function e(t){function n(e,n,r,i,a){if((o=e._squarify)&&o.ratio===t)for(var o,s,l,c,u,h=-1,f=o.length,d=e.value;++h1?t:1)},n}(Ph);function Lh(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function Dh(e,t){return e[0]-t[0]||e[1]-t[1]}function Oh(e){for(var t=e.length,n=[0,1],r=2,i=2;i1&&Lh(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function Nh(){return Math.random()}var Fh=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,1===arguments.length?(n=e,e=0):n-=e,function(){return t()*n+e}}return n.source=e,n}(Nh),Bh=function e(t){function n(e,n){var r,i;return e=null==e?0:+e,n=null==n?1:+n,function(){var a;if(null!=r)a=r,r=null;else do{r=2*t()-1,a=2*t()-1,i=r*r+a*a}while(!i||i>1);return e+n*a*Math.sqrt(-2*Math.log(i)/i)}}return n.source=e,n}(Nh),jh=function e(t){function n(){var e=Bh.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return n.source=e,n}(Nh),Uh=function e(t){function n(e){return function(){for(var n=0,r=0;rr&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function nf(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i2?rf:nf,i=a=null,h}function h(t){return isNaN(t=+t)?n:(i||(i=r(o.map(e),s,l)))(e(c(t)))}return h.invert=function(n){return c(t((a||(a=r(s,o.map(e),ln)))(n)))},h.domain=function(e){return arguments.length?(o=Gh.call(e,Jh),c===Zh||(c=tf(o)),u()):o.slice()},h.range=function(e){return arguments.length?(s=Xh.call(e),u()):s.slice()},h.rangeRound=function(e){return s=Xh.call(e),l=pn,u()},h.clamp=function(e){return arguments.length?(c=e?tf(o):Zh,h):c!==Zh},h.interpolate=function(e){return arguments.length?(l=e,u()):l},h.unknown=function(e){return arguments.length?(n=e,h):n},function(n,r){return e=n,t=r,u()}}function sf(e,t){return of()(e,t)}function lf(t,n,r,i){var a,o=S(t,n,r);switch((i=eo(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(t),Math.abs(n));return null!=i.precision||isNaN(a=ho(o,s))||(i.precision=a),e.formatPrefix(i,s);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(a=fo(o,Math.max(Math.abs(t),Math.abs(n))))||(i.precision=a-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(a=uo(o))||(i.precision=a-2*("%"===i.type))}return e.format(i)}function cf(e){var t=e.domain;return e.ticks=function(e){var n=t();return w(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return lf(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),a=0,o=i.length-1,s=i[a],l=i[o];return l0?r=_(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=_(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(i[a]=Math.floor(s/r)*r,i[o]=Math.ceil(l/r)*r,t(i)):r<0&&(i[a]=Math.ceil(s*r)/r,i[o]=Math.floor(l*r)/r,t(i)),e},e}function uf(e,t){var n,r=0,i=(e=e.slice()).length-1,a=e[r],o=e[i];return o0){for(;fl)break;g.push(h)}}else for(;f=1;--u)if(!((h=c*u)l)break;g.push(h)}}else g=w(f,d,Math.min(d-f,p)).map(r);return t?g.reverse():g},i.tickFormat=function(t,a){if(null==a&&(a=10===o?".0e":","),"function"!=typeof a&&(a=e.format(a)),t===1/0)return a;null==t&&(t=10);var s=Math.max(1,o*t/i.ticks().length);return function(e){var t=e/r(Math.round(n(e)));return t*o0))return s;do{s.push(o=new Date(+n)),t(n,a),e(n)}while(o=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return Af.setTime(+t),Tf.setTime(+r),e(Af),e(Tf),Math.floor(n(Af,Tf))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var Pf=Ef((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Pf.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Ef((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Pf:null};var If=Pf.range,Rf=6e4,Mf=6048e5,Lf=Ef((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()})),Df=Lf.range,Of=Ef((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+t*Rf)}),(function(e,t){return(t-e)/Rf}),(function(e){return e.getMinutes()})),Nf=Of.range,Ff=Ef((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-e.getMinutes()*Rf)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()})),Bf=Ff.range,jf=Ef((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Rf)/864e5}),(function(e){return e.getDate()-1})),Uf=jf.range;function qf(e){return Ef((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Rf)/Mf}))}var zf=qf(0),Hf=qf(1),Wf=qf(2),Vf=qf(3),Gf=qf(4),Xf=qf(5),Yf=qf(6),$f=zf.range,Kf=Hf.range,Jf=Wf.range,Qf=Vf.range,Zf=Gf.range,ed=Xf.range,td=Yf.range,nd=Ef((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})),rd=nd.range,id=Ef((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));id.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Ef((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var ad=id.range,od=Ef((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Rf)}),(function(e,t){return(t-e)/Rf}),(function(e){return e.getUTCMinutes()})),sd=od.range,ld=Ef((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getUTCHours()})),cd=ld.range,ud=Ef((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1})),hd=ud.range;function fd(e){return Ef((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Mf}))}var dd=fd(0),pd=fd(1),gd=fd(2),md=fd(3),vd=fd(4),bd=fd(5),yd=fd(6),wd=dd.range,_d=pd.range,Sd=gd.range,xd=md.range,Cd=vd.range,kd=bd.range,Ad=yd.range,Td=Ef((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})),Ed=Td.range,Pd=Ef((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));Pd.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Ef((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var Id=Pd.range;function Rd(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Md(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ld(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Dd(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,c=zd(i),u=Hd(i),h=zd(a),f=Hd(a),d=zd(o),p=Hd(o),g=zd(s),m=Hd(s),v=zd(l),b=Hd(l),y={a:function(e){return o[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:up,e:up,f:gp,H:hp,I:fp,j:dp,L:pp,m:mp,M:vp,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Vp,s:Gp,S:bp,u:yp,U:wp,V:_p,w:Sp,W:xp,x:null,X:null,y:Cp,Y:kp,Z:Ap,"%":Wp},w={a:function(e){return o[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Tp,e:Tp,f:Mp,H:Ep,I:Pp,j:Ip,L:Rp,m:Lp,M:Dp,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Vp,s:Gp,S:Op,u:Np,U:Fp,V:Bp,w:jp,W:Up,x:null,X:null,y:qp,Y:zp,Z:Hp,"%":Wp},_={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=b[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return C(e,t,n,r)},d:ep,e:ep,f:op,H:np,I:np,j:tp,L:ap,m:Zd,M:rp,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},q:Qd,Q:lp,s:cp,S:ip,u:Vd,U:Gd,V:Xd,w:Wd,W:Yd,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:Kd,Y:$d,Z:Jd,"%":sp};function S(e,t){return function(n){var r,i,a,o=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=Md(Ld(a.y,0,1))).getUTCDay(),r=i>4||0===i?pd.ceil(r):pd(r),r=ud.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=Rd(Ld(a.y,0,1))).getDay(),r=i>4||0===i?Hf.ceil(r):Hf(r),r=jf.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?Md(Ld(a.y,0,1)).getUTCDay():Rd(Ld(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Md(a)):Rd(a)}}function C(e,t,n,r){for(var i,a,o=0,s=t.length,l=n.length;o=l)return-1;if(37===(i=t.charCodeAt(o++))){if(i=t.charAt(o++),!(a=_[i in Nd?t.charAt(o++):i])||(r=a(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),w.x=S(n,w),w.X=S(r,w),w.c=S(t,w),{format:function(e){var t=S(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=x(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=x(e+="",!0);return t.toString=function(){return e},t}}}var Od,Nd={"-":"",_:" ",0:"0"},Fd=/^\s*\d+/,Bd=/^%/,jd=/[\\^$*+?|[\]().{}]/g;function Ud(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a68?1900:2e3),n+r[0].length):-1}function Jd(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Qd(e,t,n){var r=Fd.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function Zd(e,t,n){var r=Fd.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ep(e,t,n){var r=Fd.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function tp(e,t,n){var r=Fd.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function np(e,t,n){var r=Fd.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function rp(e,t,n){var r=Fd.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ip(e,t,n){var r=Fd.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ap(e,t,n){var r=Fd.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function op(e,t,n){var r=Fd.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function sp(e,t,n){var r=Bd.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function lp(e,t,n){var r=Fd.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function cp(e,t,n){var r=Fd.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function up(e,t){return Ud(e.getDate(),t,2)}function hp(e,t){return Ud(e.getHours(),t,2)}function fp(e,t){return Ud(e.getHours()%12||12,t,2)}function dp(e,t){return Ud(1+jf.count(id(e),e),t,3)}function pp(e,t){return Ud(e.getMilliseconds(),t,3)}function gp(e,t){return pp(e,t)+"000"}function mp(e,t){return Ud(e.getMonth()+1,t,2)}function vp(e,t){return Ud(e.getMinutes(),t,2)}function bp(e,t){return Ud(e.getSeconds(),t,2)}function yp(e){var t=e.getDay();return 0===t?7:t}function wp(e,t){return Ud(zf.count(id(e)-1,e),t,2)}function _p(e,t){var n=e.getDay();return e=n>=4||0===n?Gf(e):Gf.ceil(e),Ud(Gf.count(id(e),e)+(4===id(e).getDay()),t,2)}function Sp(e){return e.getDay()}function xp(e,t){return Ud(Hf.count(id(e)-1,e),t,2)}function Cp(e,t){return Ud(e.getFullYear()%100,t,2)}function kp(e,t){return Ud(e.getFullYear()%1e4,t,4)}function Ap(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ud(t/60|0,"0",2)+Ud(t%60,"0",2)}function Tp(e,t){return Ud(e.getUTCDate(),t,2)}function Ep(e,t){return Ud(e.getUTCHours(),t,2)}function Pp(e,t){return Ud(e.getUTCHours()%12||12,t,2)}function Ip(e,t){return Ud(1+ud.count(Pd(e),e),t,3)}function Rp(e,t){return Ud(e.getUTCMilliseconds(),t,3)}function Mp(e,t){return Rp(e,t)+"000"}function Lp(e,t){return Ud(e.getUTCMonth()+1,t,2)}function Dp(e,t){return Ud(e.getUTCMinutes(),t,2)}function Op(e,t){return Ud(e.getUTCSeconds(),t,2)}function Np(e){var t=e.getUTCDay();return 0===t?7:t}function Fp(e,t){return Ud(dd.count(Pd(e)-1,e),t,2)}function Bp(e,t){var n=e.getUTCDay();return e=n>=4||0===n?vd(e):vd.ceil(e),Ud(vd.count(Pd(e),e)+(4===Pd(e).getUTCDay()),t,2)}function jp(e){return e.getUTCDay()}function Up(e,t){return Ud(pd.count(Pd(e)-1,e),t,2)}function qp(e,t){return Ud(e.getUTCFullYear()%100,t,2)}function zp(e,t){return Ud(e.getUTCFullYear()%1e4,t,4)}function Hp(){return"+0000"}function Wp(){return"%"}function Vp(e){return+e}function Gp(e){return Math.floor(+e/1e3)}function Xp(t){return Od=Dd(t),e.timeFormat=Od.format,e.timeParse=Od.parse,e.utcFormat=Od.utcFormat,e.utcParse=Od.utcParse,Od}Xp({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Yp=Date.prototype.toISOString?function(e){return e.toISOString()}:e.utcFormat("%Y-%m-%dT%H:%M:%S.%LZ"),$p=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:e.utcParse("%Y-%m-%dT%H:%M:%S.%LZ"),Kp=1e3,Jp=6e4,Qp=60*Jp,Zp=24*Qp,eg=30*Zp,tg=365*Zp;function ng(e){return new Date(e)}function rg(e){return e instanceof Date?+e:+new Date(+e)}function ig(e,t,r,i,a,o,s,l,c){var u=sf(Zh,Zh),h=u.invert,f=u.domain,d=c(".%L"),p=c(":%S"),g=c("%I:%M"),m=c("%I %p"),v=c("%a %d"),b=c("%b %d"),y=c("%B"),w=c("%Y"),_=[[s,1,Kp],[s,5,5e3],[s,15,15e3],[s,30,3e4],[o,1,Jp],[o,5,5*Jp],[o,15,15*Jp],[o,30,30*Jp],[a,1,Qp],[a,3,3*Qp],[a,6,6*Qp],[a,12,12*Qp],[i,1,Zp],[i,2,2*Zp],[r,1,6048e5],[t,1,eg],[t,3,3*eg],[e,1,tg]];function x(n){return(s(n)=1?Wm:e<=-1?-Wm:Math.asin(e)}function Xm(e){return e.innerRadius}function Ym(e){return e.outerRadius}function $m(e){return e.startAngle}function Km(e){return e.endAngle}function Jm(e){return e&&e.padAngle}function Qm(e,t,n,r,i,a,o){var s=e-n,l=t-r,c=(o?a:-a)/qm(s*s+l*l),u=c*l,h=-c*s,f=e+u,d=t+h,p=n+u,g=r+h,m=(f+p)/2,v=(d+g)/2,b=p-f,y=g-d,w=b*b+y*y,_=i-a,S=f*g-p*d,x=(y<0?-1:1)*qm(Bm(0,_*_*w-S*S)),C=(S*y-b*x)/w,k=(-S*b-y*x)/w,A=(S*y+b*x)/w,T=(-S*b+y*x)/w,E=C-m,P=k-v,I=A-m,R=T-v;return E*E+P*P>I*I+R*R&&(C=A,k=T),{cx:C,cy:k,x01:-u,y01:-h,x11:C*(i/_-1),y11:k*(i/_-1)}}function Zm(e){this._context=e}function ev(e){return new Zm(e)}function tv(e){return e[0]}function nv(e){return e[1]}function rv(){var e=tv,t=nv,n=Dm(!0),r=null,i=ev,a=null;function o(o){var s,l,c,u=o.length,h=!1;for(null==r&&(a=i(c=xi())),s=0;s<=u;++s)!(s=u;--h)s.point(m[h],v[h]);s.lineEnd(),s.areaEnd()}g&&(m[c]=+e(f,c,l),v[c]=+n(f,c,l),s.point(t?+t(f,c,l):m[c],r?+r(f,c,l):v[c]))}if(d)return s=null,d+""||null}function c(){return rv().defined(i).curve(o).context(a)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:Dm(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:Dm(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:Dm(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:Dm(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:Dm(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Dm(+e),l):r},l.lineX0=l.lineY0=function(){return c().x(e).y(n)},l.lineY1=function(){return c().x(e).y(r)},l.lineX1=function(){return c().x(t).y(n)},l.defined=function(e){return arguments.length?(i="function"==typeof e?e:Dm(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,null!=a&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(null==e?a=s=null:s=o(a=e),l):a},l}function av(e,t){return te?1:t>=e?0:NaN}function ov(e){return e}Zm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var sv=cv(ev);function lv(e){this._curve=e}function cv(e){function t(t){return new lv(e(t))}return t._curve=e,t}function uv(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(cv(e)):t()._curve},e}function hv(){return uv(rv().curve(sv))}function fv(){var e=iv().curve(sv),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,a=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return uv(n())},delete e.lineX0,e.lineEndAngle=function(){return uv(r())},delete e.lineX1,e.lineInnerRadius=function(){return uv(i())},delete e.lineY0,e.lineOuterRadius=function(){return uv(a())},delete e.lineY1,e.curve=function(e){return arguments.length?t(cv(e)):t()._curve},e}function dv(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}lv.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var pv=Array.prototype.slice;function gv(e){return e.source}function mv(e){return e.target}function vv(e){var t=gv,n=mv,r=tv,i=nv,a=null;function o(){var o,s=pv.call(arguments),l=t.apply(this,s),c=n.apply(this,s);if(a||(a=o=xi()),e(a,+r.apply(this,(s[0]=l,s)),+i.apply(this,s),+r.apply(this,(s[0]=c,s)),+i.apply(this,s)),o)return a=null,o+""||null}return o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(e){return arguments.length?(n=e,o):n},o.x=function(e){return arguments.length?(r="function"==typeof e?e:Dm(+e),o):r},o.y=function(e){return arguments.length?(i="function"==typeof e?e:Dm(+e),o):i},o.context=function(e){return arguments.length?(a=null==e?null:e,o):a},o}function bv(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function yv(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function wv(e,t,n,r,i){var a=dv(t,n),o=dv(t,n=(n+i)/2),s=dv(r,n),l=dv(r,i);e.moveTo(a[0],a[1]),e.bezierCurveTo(o[0],o[1],s[0],s[1],l[0],l[1])}var _v={draw:function(e,t){var n=Math.sqrt(t/Hm);e.moveTo(n,0),e.arc(0,0,n,0,Vm)}},Sv={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},xv=Math.sqrt(1/3),Cv=2*xv,kv={draw:function(e,t){var n=Math.sqrt(t/Cv),r=n*xv;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Av=Math.sin(Hm/10)/Math.sin(7*Hm/10),Tv=Math.sin(Vm/10)*Av,Ev=-Math.cos(Vm/10)*Av,Pv={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=Tv*n,i=Ev*n;e.moveTo(0,-n),e.lineTo(r,i);for(var a=1;a<5;++a){var o=Vm*a/5,s=Math.cos(o),l=Math.sin(o);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},Iv={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},Rv=Math.sqrt(3),Mv={draw:function(e,t){var n=-Math.sqrt(t/(3*Rv));e.moveTo(0,2*n),e.lineTo(-Rv*n,-n),e.lineTo(Rv*n,-n),e.closePath()}},Lv=Math.sqrt(3)/2,Dv=1/Math.sqrt(12),Ov=3*(Dv/2+1),Nv={draw:function(e,t){var n=Math.sqrt(t/Ov),r=n/2,i=n*Dv,a=r,o=n*Dv+n,s=-a,l=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(-.5*r-Lv*i,Lv*r+-.5*i),e.lineTo(-.5*a-Lv*o,Lv*a+-.5*o),e.lineTo(-.5*s-Lv*l,Lv*s+-.5*l),e.lineTo(-.5*r+Lv*i,-.5*i-Lv*r),e.lineTo(-.5*a+Lv*o,-.5*o-Lv*a),e.lineTo(-.5*s+Lv*l,-.5*l-Lv*s),e.closePath()}},Fv=[_v,Sv,kv,Iv,Pv,Mv,Nv];function Bv(){}function jv(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Uv(e){this._context=e}function qv(e){this._context=e}function zv(e){this._context=e}function Hv(e,t){this._basis=new Uv(e),this._beta=t}Uv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:jv(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:jv(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},qv.prototype={areaStart:Bv,areaEnd:Bv,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:jv(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},zv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:jv(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Hv.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],a=t[0],o=e[n]-i,s=t[n]-a,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*o),this._beta*t[l]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Wv=function e(t){function n(e){return 1===t?new Uv(e):new Hv(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function Vv(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Gv(e,t){this._context=e,this._k=(1-t)/6}Gv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Vv(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Vv(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Xv=function e(t){function n(e){return new Gv(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Yv(e,t){this._context=e,this._k=(1-t)/6}Yv.prototype={areaStart:Bv,areaEnd:Bv,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Vv(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var $v=function e(t){function n(e){return new Yv(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Kv(e,t){this._context=e,this._k=(1-t)/6}Kv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Vv(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Jv=function e(t){function n(e){return new Kv(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Qv(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>zm){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>zm){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function Zv(e,t){this._context=e,this._alpha=t}Zv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Qv(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var eb=function e(t){function n(e){return t?new Zv(e,t):new Gv(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function tb(e,t){this._context=e,this._alpha=t}tb.prototype={areaStart:Bv,areaEnd:Bv,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Qv(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var nb=function e(t){function n(e){return t?new tb(e,t):new Yv(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function rb(e,t){this._context=e,this._alpha=t}rb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Qv(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ib=function e(t){function n(e){return t?new rb(e,t):new Kv(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function ab(e){this._context=e}function ob(e){return e<0?-1:1}function sb(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(ob(a)+ob(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function lb(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function cb(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function ub(e){this._context=e}function hb(e){this._context=new fb(e)}function fb(e){this._context=e}function db(e){this._context=e}function pb(e){var t,n,r=e.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t1)for(var n,r,i,a=1,o=e[t[0]],s=o.length;a=0;)n[t]=t;return n}function bb(e,t){return e[t]}function yb(e){var t=e.map(wb);return vb(e).sort((function(e,n){return t[e]-t[n]}))}function wb(e){for(var t,n=-1,r=0,i=e.length,a=-1/0;++na&&(a=t,r=n);return r}function _b(e){var t=e.map(Sb);return vb(e).sort((function(e,n){return t[e]-t[n]}))}function Sb(e){for(var t,n=0,r=-1,i=e.length;++r0)){if(a/=f,f<0){if(a0){if(a>h)return;a>u&&(u=a)}if(a=r-l,f||!(a<0)){if(a/=f,f<0){if(a>h)return;a>u&&(u=a)}else if(f>0){if(a0)){if(a/=d,d<0){if(a0){if(a>h)return;a>u&&(u=a)}if(a=i-c,d||!(a<0)){if(a/=d,d<0){if(a>h)return;a>u&&(u=a)}else if(d>0){if(a0||h<1)||(u>0&&(e[0]=[l+u*f,c+u*d]),h<1&&(e[1]=[l+h*f,c+h*d]),!0)}}}}}function Ob(e,t,n,r,i){var a=e[1];if(a)return!0;var o,s,l=e[0],c=e.left,u=e.right,h=c[0],f=c[1],d=u[0],p=u[1],g=(h+d)/2,m=(f+p)/2;if(p===f){if(g=r)return;if(h>d){if(l){if(l[1]>=i)return}else l=[g,n];a=[g,i]}else{if(l){if(l[1]1)if(h>d){if(l){if(l[1]>=i)return}else l=[(n-s)/o,n];a=[(i-s)/o,i]}else{if(l){if(l[1]=r)return}else l=[t,o*t+s];a=[r,o*r+s]}else{if(l){if(l[0]=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}},Ab.prototype={constructor:Ab,insert:function(e,t){var n,r,i;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=Ib(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.R&&(Eb(this,n),n=(e=n).U),n.C=!1,r.C=!0,Pb(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.L&&(Pb(this,n),n=(e=n).U),n.C=!1,r.C=!0,Eb(this,r)),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,i=e.U,a=e.L,o=e.R;if(n=a?o?Ib(o):a:o,i?i.L===e?i.L=n:i.R=n:this._=n,a&&o?(r=n.C,n.C=e.C,n.L=a,a.U=n,n!==o?(i=n.U,n.U=e.U,e=n.R,i.L=e,n.R=o,o.U=n):(n.U=i,i=n,e=n.R)):(r=e.C,e=n),e&&(e.U=i),!r)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===i.L){if((t=i.R).C&&(t.C=!1,i.C=!0,Eb(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,Pb(this,t),t=i.R),t.C=i.C,i.C=t.R.C=!1,Eb(this,i),e=this._;break}}else if((t=i.L).C&&(t.C=!1,i.C=!0,Pb(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,Eb(this,t),t=i.L),t.C=i.C,i.C=t.L.C=!1,Pb(this,i),e=this._;break}t.C=!0,e=i,i=i.U}while(!e.C);e&&(e.C=!1)}}};var jb,Ub=[];function qb(){Tb(this),this.x=this.y=this.arc=this.site=this.cy=null}function zb(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,i=e.site,a=n.site;if(r!==a){var o=i[0],s=i[1],l=r[0]-o,c=r[1]-s,u=a[0]-o,h=a[1]-s,f=2*(l*h-c*u);if(!(f>=-ry)){var d=l*l+c*c,p=u*u+h*h,g=(h*d-c*p)/f,m=(l*p-u*d)/f,v=Ub.pop()||new qb;v.arc=e,v.site=i,v.x=g+o,v.y=(v.cy=m+s)+Math.sqrt(g*g+m*m),e.circle=v;for(var b=null,y=ey._;y;)if(v.yny)s=s.L;else{if(!((i=a-Jb(s,o))>ny)){r>-ny?(t=s.P,n=s):i>-ny?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}!function(e){Zb[e.index]={site:e,halfedges:[]}}(e);var l=Gb(e);if(Qb.insert(t,l),t||n){if(t===n)return Hb(t),n=Gb(t.site),Qb.insert(l,n),l.edge=n.edge=Rb(t.site,l.site),zb(t),void zb(n);if(n){Hb(t),Hb(n);var c=t.site,u=c[0],h=c[1],f=e[0]-u,d=e[1]-h,p=n.site,g=p[0]-u,m=p[1]-h,v=2*(f*m-d*g),b=f*f+d*d,y=g*g+m*m,w=[(m*b-d*y)/v+u,(f*y-g*b)/v+h];Lb(n.edge,c,p,w),l.edge=Rb(c,e,null,w),n.edge=Rb(e,p,null,w),zb(t),zb(n)}else l.edge=Rb(t.site,l.site)}}function Kb(e,t){var n=e.site,r=n[0],i=n[1],a=i-t;if(!a)return r;var o=e.P;if(!o)return-1/0;var s=(n=o.site)[0],l=n[1],c=l-t;if(!c)return s;var u=s-r,h=1/a-1/c,f=u/c;return h?(-f+Math.sqrt(f*f-2*h*(u*u/(-2*c)-l+c/2+i-a/2)))/h+r:(r+s)/2}function Jb(e,t){var n=e.N;if(n)return Kb(n,t);var r=e.site;return r[1]===t?r[0]:1/0}var Qb,Zb,ey,ty,ny=1e-6,ry=1e-12;function iy(e,t,n){return(e[0]-n[0])*(t[1]-e[1])-(e[0]-t[0])*(n[1]-e[1])}function ay(e,t){return t[1]-e[1]||t[0]-e[0]}function oy(e,t){var n,r,i,a=e.sort(ay).pop();for(ty=[],Zb=new Array(e.length),Qb=new Ab,ey=new Ab;;)if(i=jb,a&&(!i||a[1]ny||Math.abs(i[0][1]-i[1][1])>ny)||delete ty[a]}(o,s,l,c),function(e,t,n,r){var i,a,o,s,l,c,u,h,f,d,p,g,m=Zb.length,v=!0;for(i=0;iny||Math.abs(g-f)>ny)&&(l.splice(s,0,ty.push(Mb(o,d,Math.abs(p-e)ny?[e,Math.abs(h-e)ny?[Math.abs(f-r)ny?[n,Math.abs(h-n)ny?[Math.abs(f-t)=s)return null;var l=e-i.site[0],c=t-i.site[1],u=l*l+c*c;do{i=a.cells[r=o],o=null,i.halfedges.forEach((function(n){var r=a.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var l=e-s[0],c=t-s[1],h=l*l+c*c;hr?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}hy.prototype=cy.prototype,e.FormatSpecifier=to,e.active=function(e,t){var n,r,i=e.__transition;if(i)for(r in t=null==t?null:t+"",i)if((n=i[r]).state>1&&n.name===t)return new pr([[e]],jr,t,+r);return null},e.arc=function(){var e=Xm,t=Ym,n=Dm(0),r=null,i=$m,a=Km,o=Jm,s=null;function l(){var l,c,u=+e.apply(this,arguments),h=+t.apply(this,arguments),f=i.apply(this,arguments)-Wm,d=a.apply(this,arguments)-Wm,p=Om(d-f),g=d>f;if(s||(s=l=xi()),hzm)if(p>Vm-zm)s.moveTo(h*Fm(f),h*Um(f)),s.arc(0,0,h,f,d,!g),u>zm&&(s.moveTo(u*Fm(d),u*Um(d)),s.arc(0,0,u,d,f,g));else{var m,v,b=f,y=d,w=f,_=d,S=p,x=p,C=o.apply(this,arguments)/2,k=C>zm&&(r?+r.apply(this,arguments):qm(u*u+h*h)),A=jm(Om(h-u)/2,+n.apply(this,arguments)),T=A,E=A;if(k>zm){var P=Gm(k/u*Um(C)),I=Gm(k/h*Um(C));(S-=2*P)>zm?(w+=P*=g?1:-1,_-=P):(S=0,w=_=(f+d)/2),(x-=2*I)>zm?(b+=I*=g?1:-1,y-=I):(x=0,b=y=(f+d)/2)}var R=h*Fm(b),M=h*Um(b),L=u*Fm(_),D=u*Um(_);if(A>zm){var O,N=h*Fm(y),F=h*Um(y),B=u*Fm(w),j=u*Um(w);if(p1?0:e<-1?Hm:Math.acos(e)}((U*z+q*H)/(qm(U*U+q*q)*qm(z*z+H*H)))/2),V=qm(O[0]*O[0]+O[1]*O[1]);T=jm(A,(u-V)/(W-1)),E=jm(A,(h-V)/(W+1))}}x>zm?E>zm?(m=Qm(B,j,R,M,h,E,g),v=Qm(N,F,L,D,h,E,g),s.moveTo(m.cx+m.x01,m.cy+m.y01),Ezm&&S>zm?T>zm?(m=Qm(L,D,N,F,u,-T,g),v=Qm(R,M,B,j,u,-T,g),s.lineTo(m.cx+m.x01,m.cy+m.y01),T>o,c=i+2*s>>o,u=Ui(20);function h(r){var i=new Float32Array(l*c),h=new Float32Array(l*c);r.forEach((function(r,a,u){var h=+e(r,a,u)+s>>o,f=+t(r,a,u)+s>>o,d=+n(r,a,u);h>=0&&h=0&&f>o),Yi({width:l,height:c,data:h},{width:l,height:c,data:i},a>>o),Xi({width:l,height:c,data:i},{width:l,height:c,data:h},a>>o),Yi({width:l,height:c,data:h},{width:l,height:c,data:i},a>>o),Xi({width:l,height:c,data:i},{width:l,height:c,data:h},a>>o),Yi({width:l,height:c,data:h},{width:l,height:c,data:i},a>>o);var d=u(i);if(!Array.isArray(d)){var p=k(i);d=S(0,p,d),(d=m(0,Math.floor(p/d)*d,d)).shift()}return Gi().thresholds(d).size([l,c])(i).map(f)}function f(e){return e.value*=Math.pow(2,-2*o),e.coordinates.forEach(d),e}function d(e){e.forEach(p)}function p(e){e.forEach(g)}function g(e){e[0]=e[0]*Math.pow(2,o)-s,e[1]=e[1]*Math.pow(2,o)-s}function v(){return l=r+2*(s=3*a)>>o,c=i+2*s>>o,h}return h.x=function(t){return arguments.length?(e="function"==typeof t?t:Ui(+t),h):e},h.y=function(e){return arguments.length?(t="function"==typeof e?e:Ui(+e),h):t},h.weight=function(e){return arguments.length?(n="function"==typeof e?e:Ui(+e),h):n},h.size=function(e){if(!arguments.length)return[r,i];var t=Math.ceil(e[0]),n=Math.ceil(e[1]);if(!(t>=0||t>=0))throw new Error("invalid size");return r=t,i=n,v()},h.cellSize=function(e){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return o=Math.floor(Math.log(e)/Math.LN2),v()},h.thresholds=function(e){return arguments.length?(u="function"==typeof e?e:Array.isArray(e)?Ui(Bi.call(e)):Ui(e),h):u},h.bandwidth=function(e){if(!arguments.length)return Math.sqrt(a*(a+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return a=Math.round((Math.sqrt(4*e*e+1)-1)/2),v()},h},e.contours=Gi,e.create=function(e){return Ee(G(e).call(document.documentElement))},e.creator=G,e.cross=function(e,t,n){var r,i,a,s,l=e.length,c=t.length,u=new Array(l*c);for(null==n&&(n=o),r=a=0;re?1:t>=e?0:NaN},e.deviation=c,e.dispatch=B,e.drag=function(){var t,n,r,i,a=ze,o=He,s=We,l=Ve,c={},u=B("start","drag","end"),h=0,f=0;function d(e){e.on("mousedown.drag",p).filter(l).on("touchstart.drag",v).on("touchmove.drag",b).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(){if(!i&&a.apply(this,arguments)){var s=w("mouse",o.apply(this,arguments),De,this,arguments);s&&(Ee(e.event.view).on("mousemove.drag",g,!0).on("mouseup.drag",m,!0),Be(e.event.view),Ne(),r=!1,t=e.event.clientX,n=e.event.clientY,s("start"))}}function g(){if(Fe(),!r){var i=e.event.clientX-t,a=e.event.clientY-n;r=i*i+a*a>f}c.mouse("drag")}function m(){Ee(e.event.view).on("mousemove.drag mouseup.drag",null),je(e.event.view,r),Fe(),c.mouse("end")}function v(){if(a.apply(this,arguments)){var t,n,r=e.event.changedTouches,i=o.apply(this,arguments),s=r.length;for(t=0;tl+d||ic+d||as.index){var p=l-o.x-o.vx,g=c-o.y-o.vy,m=p*p+g*g;me.r&&(e.r=e[t].r)}function s(){if(t){var r,i,a=t.length;for(n=new Array(a),r=0;r=o)){(e.data!==t||e.next)&&(0===u&&(d+=(u=Da())*u),0===h&&(d+=(h=Da())*h),d1?(null==n?s.remove(e):s.set(e,d(n)),t):s.get(e)},find:function(t,n,r){var i,a,o,s,l,c=0,u=e.length;for(null==r?r=1/0:r*=r,c=0;c1?(c.on(e,n),t):c.on(e)}}},e.forceX=function(e){var t,n,r,i=La(.1);function a(e){for(var i,a=0,o=t.length;a=.12&&i<.234&&r>=-.425&&r<-.214?s:i>=.166&&i<.234&&r>=-.214&&r<-.115?l:o).invert(e)},u.stream=function(n){return e&&t===n?e:(r=[o.stream(t=n),s.stream(n),l.stream(n)],i=r.length,e={point:function(e,t){for(var n=-1;++nYs(r[0],r[1])&&(r[1]=i[1]),Ys(i[0],r[1])>Ys(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-1/0,t=0,r=a[n=a.length-1];t<=n;r=i,++t)i=a[t],(s=Ys(r[1],i[0]))>o&&(o=s,ds=i[0],gs=r[1])}return _s=Ss=null,ds===1/0||ps===1/0?[[NaN,NaN],[NaN,NaN]]:[[ds,ps],[gs,ms]]},e.geoCentroid=function(e){xs=Cs=ks=As=Ts=Es=Ps=Is=Rs=Ms=Ls=0,Xo(e,Js);var t=Rs,n=Ms,r=Ls,i=t*t+n*n+r*r;return i2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)},e.geoTransverseMercatorRaw=Bu,e.gray=function(e,t){return new Et(e,0,0,null==t?1:t)},e.hcl=Dt,e.hierarchy=Hu,e.histogram=function(){var e=g,t=u,n=x;function r(r){var a,o,s=r.length,l=new Array(s);for(a=0;ah;)f.pop(),--d;var p,g=new Array(d+1);for(a=0;a<=d;++a)(p=g[a]=[]).x0=a>0?f[a-1]:u,p.x1=a1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return km.h=360*e-100,km.s=1.5-1.5*t,km.l=.8-.9*t,km+""},e.interpolateRdBu=Rg,e.interpolateRdGy=Lg,e.interpolateRdPu=tm,e.interpolateRdYlBu=Og,e.interpolateRdYlGn=Fg,e.interpolateReds=ym,e.interpolateRgb=Zt,e.interpolateRgbBasis=tn,e.interpolateRgbBasisClosed=nn,e.interpolateRound=pn,e.interpolateSinebow=function(e){var t;return e=(.5-e)*Math.PI,Am.r=255*(t=Math.sin(e))*t,Am.g=255*(t=Math.sin(e+Tm))*t,Am.b=255*(t=Math.sin(e+Em))*t,Am+""},e.interpolateSpectral=jg,e.interpolateString=fn,e.interpolateTransformCss=xn,e.interpolateTransformSvg=Cn,e.interpolateTurbo=function(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-14825.05*e)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+707.56*e)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-6838.66*e)))))))+")"},e.interpolateViridis=Im,e.interpolateWarm=xm,e.interpolateYlGn=am,e.interpolateYlGnBu=rm,e.interpolateYlOrBr=sm,e.interpolateYlOrRd=cm,e.interpolateZoom=Tn,e.interrupt=lr,e.interval=function(e,t,n){var r=new $n,i=t;return null==t?(r.restart(e,t,n),r):(t=+t,n=null==n?Xn():+n,r.restart((function a(o){o+=i,r.restart(a,i+=t,n),e(o)}),t,n),r)},e.isoFormat=Yp,e.isoParse=$p,e.json=function(e,t){return fetch(e,t).then(Ea)},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t},e.lab=Tt,e.lch=function(e,t,n,r){return 1===arguments.length?Lt(e):new Ot(n,t,e,null==r?1:r)},e.line=rv,e.lineRadial=hv,e.linkHorizontal=function(){return vv(bv)},e.linkRadial=function(){var e=vv(wv);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e},e.linkVertical=function(){return vv(yv)},e.local=Ie,e.map=Ii,e.matcher=J,e.max=k,e.mean=function(e,t){var n,r=e.length,i=r,a=-1,o=0;if(null==t)for(;++a=r.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var l,c,u,h=-1,f=n.length,d=r[i++],p=Ii(),g=o();++hr.length)return n;var o,s=i[a-1];return null!=t&&a>=r.length?o=n.entries():(o=[],n.each((function(t,n){o.push({key:n,values:e(t,a)})}))),null!=s?o.sort((function(e,t){return s(e.key,t.key)})):o}(a(e,0,Li,Di),0)},key:function(e){return r.push(e),n},sortKeys:function(e){return i[r.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}},e.now=Xn,e.pack=function(){var e=null,t=1,n=1,r=uh;function i(i){return i.x=t/2,i.y=n/2,e?i.eachBefore(dh(e)).eachAfter(ph(r,.5)).eachBefore(gh(1)):i.eachBefore(dh(fh)).eachAfter(ph(uh,1)).eachAfter(ph(r,i.r/Math.min(t,n))).eachBefore(gh(Math.min(t,n)/(2*i.r))),i}return i.radius=function(t){return arguments.length?(e=lh(t),i):e},i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.padding=function(e){return arguments.length?(r="function"==typeof e?e:hh(+e),i):r},i},e.packEnclose=$u,e.packSiblings=function(e){return sh(e),e},e.pairs=function(e,t){null==t&&(t=o);for(var n=0,r=e.length-1,i=e[0],a=new Array(r<0?0:r);n0&&(d+=h);for(null!=t?p.sort((function(e,n){return t(g[e],g[n])})):null!=n&&p.sort((function(e,t){return n(o[e],o[t])})),s=0,c=d?(v-f*y)/d:0;s0?h*c:0)+y,g[l]={data:o[l],index:s,value:h,startAngle:m,endAngle:u,padAngle:b};return g}return o.value=function(t){return arguments.length?(e="function"==typeof t?t:Dm(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:Dm(+e),o):r},o.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:Dm(+e),o):i},o.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:Dm(+e),o):a},o},e.piecewise=function(e,t){for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);ns!=c>s&&o<(l-n)*(s-r)/(c-r)+n&&(u=!u),l=n,c=r;return u},e.polygonHull=function(e){if((n=e.length)<3)return null;var t,n,r=new Array(n),i=new Array(n);for(t=0;t=0;--t)c.push(e[r[a[t]][2]]);for(t=+s;t0?o[t-1]:r[0],t=a?[o[a-1],r]:[o[t-1],o[t]]},l.unknown=function(e){return arguments.length?(t=e,l):l},l.thresholds=function(){return o.slice()},l.copy=function(){return e().domain([n,r]).range(s).unknown(t)},Hh.apply(cf(l),arguments)},e.scaleSequential=function e(){var t=cf(ag()(Zh));return t.copy=function(){return og(t,e())},Wh.apply(t,arguments)},e.scaleSequentialLog=function e(){var t=vf(ag()).domain([1,10]);return t.copy=function(){return og(t,e()).base(t.base())},Wh.apply(t,arguments)},e.scaleSequentialPow=sg,e.scaleSequentialQuantile=function e(){var n=[],r=Zh;function a(e){if(!isNaN(e=+e))return r((i(n,e)-1)/(n.length-1))}return a.domain=function(e){if(!arguments.length)return n.slice();n=[];for(var r,i=0,o=e.length;i0)for(var n,r,i,a,o,s,l=0,c=e[t[0]].length;l0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=i):(r[0]=0,r[1]=i)},e.stackOffsetExpand=function(e,t){if((r=e.length)>0){for(var n,r,i,a=0,o=e[0].length;a0){for(var n,r=0,i=e[t[0]],a=i.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,a=0,o=1;o0)throw new Error("cycle");return a}return n.id=function(t){return arguments.length?(e=ch(t),n):e},n.parentId=function(e){return arguments.length?(t=ch(e),n):t},n},e.style=ie,e.sum=function(e,t){var n,r=e.length,i=-1,a=0;if(null==t)for(;++i=0;--i)s.push(n=t.children[i]=new Th(r[i],i)),n.parent=t;return(o.parent=new Th(null,0)).children=[o],o}(i);if(l.eachAfter(a),l.parent.m=-l.z,l.eachBefore(o),r)i.eachBefore(s);else{var c=i,u=i,h=i;i.eachBefore((function(e){e.xu.x&&(u=e),e.depth>h.depth&&(h=e)}));var f=c===u?1:e(c,u)/2,d=f-c.x,p=t/(u.x+f+d),g=n/(h.depth||1);i.eachBefore((function(e){e.x=(e.x+d)*p,e.y=e.depth*g}))}return i}function a(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,i=e.children,a=i.length;--a>=0;)(t=i[a]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var a=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-a):t.z=a}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,a=t,o=t,s=n,l=a.parent.children[0],c=a.m,u=o.m,h=s.m,f=l.m;s=Ch(s),a=xh(a),s&&a;)l=xh(l),(o=Ch(o)).a=t,(i=s.z+h-a.z-c+e(s._,a._))>0&&(kh(Ah(s,t,r),t,i),c+=i,u+=i),h+=s.m,c+=a.m,f+=l.m,u+=o.m;s&&!Ch(o)&&(o.t=s,o.m+=h-u),a&&!xh(l)&&(l.t=a,l.m+=c-f,r=t)}return r}(t,i,t.parent.A||r[0])}function o(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i},e.treemap=function(){var e=Rh,t=!1,n=1,r=1,i=[0],a=uh,o=uh,s=uh,l=uh,c=uh;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(h),i=[0],t&&e.eachBefore(mh),e}function h(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,h=t.x1-n,f=t.y1-n;h=n-1){var u=s[t];return u.x0=i,u.y0=a,u.x1=o,void(u.y1=l)}for(var h=c[t],f=r/2+h,d=t+1,p=n-1;d>>1;c[g]l-a){var b=(i*v+o*m)/r;e(t,d,m,i,a,b,l),e(d,n,v,b,a,o,l)}else{var y=(a*v+l*m)/r;e(t,d,m,i,a,o,y),e(d,n,v,i,y,o,l)}}(0,l,e.value,t,n,r,i)},e.treemapDice=vh,e.treemapResquarify=Mh,e.treemapSlice=Eh,e.treemapSliceDice=function(e,t,n,r,i){(1&e.depth?Eh:vh)(e,t,n,r,i)},e.treemapSquarify=Rh,e.tsv=Ta,e.tsvFormat=ga,e.tsvFormatBody=ma,e.tsvFormatRow=ba,e.tsvFormatRows=va,e.tsvFormatValue=ya,e.tsvParse=da,e.tsvParseRows=pa,e.utcDay=ud,e.utcDays=hd,e.utcFriday=bd,e.utcFridays=kd,e.utcHour=ld,e.utcHours=cd,e.utcMillisecond=Pf,e.utcMilliseconds=If,e.utcMinute=od,e.utcMinutes=sd,e.utcMonday=pd,e.utcMondays=_d,e.utcMonth=Td,e.utcMonths=Ed,e.utcSaturday=yd,e.utcSaturdays=Ad,e.utcSecond=Lf,e.utcSeconds=Df,e.utcSunday=dd,e.utcSundays=wd,e.utcThursday=vd,e.utcThursdays=Cd,e.utcTuesday=gd,e.utcTuesdays=Sd,e.utcWednesday=md,e.utcWednesdays=xd,e.utcWeek=dd,e.utcWeeks=wd,e.utcYear=Pd,e.utcYears=Id,e.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},e.variance=l,e.version="5.16.0",e.voronoi=function(){var e=Cb,t=kb,n=null;function r(r){return new oy(r.map((function(n,i){var a=[Math.round(e(n,i,r)/ny)*ny,Math.round(t(n,i,r)/ny)*ny];return a.index=i,a.data=n,a})),n)}return r.polygons=function(e){return r(e).polygons()},r.links=function(e){return r(e).links()},r.triangles=function(e){return r(e).triangles()},r.x=function(t){return arguments.length?(e="function"==typeof t?t:xb(+t),r):e},r.y=function(e){return arguments.length?(t="function"==typeof e?e:xb(+e),r):t},r.extent=function(e){return arguments.length?(n=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],r):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},r.size=function(e){return arguments.length?(n=null==e?null:[[0,0],[+e[0],+e[1]]],r):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},r},e.window=re,e.xml=Ia,e.zip=function(){return E(arguments)},e.zoom=function(){var t,n,r=py,i=gy,a=yy,o=vy,s=by,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],u=250,h=Tn,f=B("start","zoom","end"),d=500,p=0;function g(e){e.property("__zoom",my).on("wheel.zoom",S).on("mousedown.zoom",x).on("dblclick.zoom",C).filter(s).on("touchstart.zoom",k).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",T).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new cy(t,e.x,e.y)}function v(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new cy(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function y(e,t,n){e.on("start.zoom",(function(){w(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){w(this,arguments).end()})).tween("zoom",(function(){var e=this,r=arguments,a=w(e,r),o=i.apply(e,r),s=null==n?b(o):"function"==typeof n?n.apply(e,r):n,l=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),c=e.__zoom,u="function"==typeof t?t.apply(e,r):t,f=h(c.invert(s).concat(l/c.k),u.invert(s).concat(l/u.k));return function(e){if(1===e)e=u;else{var t=f(e),n=l/t[2];e=new cy(n,s[0]-t[0]*n,s[1]-t[1]*n)}a.zoom(null,e)}}))}function w(e,t,n){return!n&&e.__zooming||new _(e,t)}function _(e,t){this.that=e,this.args=t,this.active=0,this.extent=i.apply(e,t),this.taps=0}function S(){if(r.apply(this,arguments)){var e=w(this,arguments),t=this.__zoom,n=Math.max(l[0],Math.min(l[1],t.k*Math.pow(2,o.apply(this,arguments)))),i=De(this);if(e.wheel)e.mouse[0][0]===i[0]&&e.mouse[0][1]===i[1]||(e.mouse[1]=t.invert(e.mouse[0]=i)),clearTimeout(e.wheel);else{if(t.k===n)return;e.mouse=[i,t.invert(i)],lr(this),e.start()}dy(),e.wheel=setTimeout((function(){e.wheel=null,e.end()}),150),e.zoom("mouse",a(v(m(t,n),e.mouse[0],e.mouse[1]),e.extent,c))}}function x(){if(!n&&r.apply(this,arguments)){var t=w(this,arguments,!0),i=Ee(e.event.view).on("mousemove.zoom",(function(){if(dy(),!t.moved){var n=e.event.clientX-s,r=e.event.clientY-l;t.moved=n*n+r*r>p}t.zoom("mouse",a(v(t.that.__zoom,t.mouse[0]=De(t.that),t.mouse[1]),t.extent,c))}),!0).on("mouseup.zoom",(function(){i.on("mousemove.zoom mouseup.zoom",null),je(e.event.view,t.moved),dy(),t.end()}),!0),o=De(this),s=e.event.clientX,l=e.event.clientY;Be(e.event.view),fy(),t.mouse=[o,this.__zoom.invert(o)],lr(this),t.start()}}function C(){if(r.apply(this,arguments)){var t=this.__zoom,n=De(this),o=t.invert(n),s=t.k*(e.event.shiftKey?.5:2),l=a(v(m(t,s),n,o),i.apply(this,arguments),c);dy(),u>0?Ee(this).transition().duration(u).call(y,l,n):Ee(this).call(g.transform,l)}}function k(){if(r.apply(this,arguments)){var n,i,a,o,s=e.event.touches,l=s.length,c=w(this,arguments,e.event.changedTouches.length===l);for(fy(),i=0;i
'),this.$.wrap(this.$div).before(this.$c),this.$div=this.$.parent(),"undefined"!=typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(this.$c[0]),this.c=this.$c[0].getContext?this.$c[0].getContext("2d"):null,!this.c)throw{name:"CanvasNotSupportedException",message:"Canvas not supported. Please use excanvas on IE8.0.",toString:function(){return this.name+": "+this.message}};return this.scale=(window.devicePixelRatio||1)/(this.c.webkitBackingStorePixelRatio||this.c.mozBackingStorePixelRatio||this.c.msBackingStorePixelRatio||this.c.oBackingStorePixelRatio||this.c.backingStorePixelRatio||1),this.relativeWidth=this.o.width%1!=0&&this.o.width.indexOf("%"),this.relativeHeight=this.o.height%1!=0&&this.o.height.indexOf("%"),this.relative=this.relativeWidth||this.relativeHeight,this._carve(),this.v instanceof Object?(this.cv={},this.copy(this.v,this.cv)):this.cv=this.v,this.$.bind("configure",t).parent().bind("configure",t),this._listen()._configure()._xy().init(),this.isInit=!0,this.$.val(this.o.format(this.v)),this._draw(),this}},this._carve=function(){if(this.relative){var e=this.relativeWidth?this.$div.parent().width()*parseInt(this.o.width)/100:this.$div.parent().width(),t=this.relativeHeight?this.$div.parent().height()*parseInt(this.o.height)/100:this.$div.parent().height();this.w=this.h=Math.min(e,t)}else this.w=this.o.width,this.h=this.o.height;return this.$div.css({width:this.w+"px",height:this.h+"px"}),this.$c.attr({width:this.w,height:this.h}),1!==this.scale&&(this.$c[0].width=this.$c[0].width*this.scale,this.$c[0].height=this.$c[0].height*this.scale,this.$c.width(this.w),this.$c.height(this.h)),this},this._draw=function(){var e=!0;n.g=n.c,n.clear(),n.dH&&(e=n.dH()),!1!==e&&n.draw()},this._touch=function(e){var r=function(e){var t=n.xy2val(e.originalEvent.touches[n.t].pageX,e.originalEvent.touches[n.t].pageY);t!=n.cv&&(n.cH&&!1===n.cH(t)||(n.change(n._validate(t)),n._draw()))};return this.t=t.c.t(e),r(e),t.c.d.bind("touchmove.k",r).bind("touchend.k",(function(){t.c.d.unbind("touchmove.k touchend.k"),n.val(n.cv)})),this},this._mouse=function(e){var r=function(e){var t=n.xy2val(e.pageX,e.pageY);t!=n.cv&&(n.cH&&!1===n.cH(t)||(n.change(n._validate(t)),n._draw()))};return r(e),t.c.d.bind("mousemove.k",r).bind("keyup.k",(function(e){if(27===e.keyCode){if(t.c.d.unbind("mouseup.k mousemove.k keyup.k"),n.eH&&!1===n.eH())return;n.cancel()}})).bind("mouseup.k",(function(e){t.c.d.unbind("mousemove.k mouseup.k keyup.k"),n.val(n.cv)})),this},this._xy=function(){var e=this.$c.offset();return this.x=e.left,this.y=e.top,this},this._listen=function(){return this.o.readOnly?this.$.attr("readonly","readonly"):(this.$c.bind("mousedown",(function(e){e.preventDefault(),n._xy()._mouse(e)})).bind("touchstart",(function(e){e.preventDefault(),n._xy()._touch(e)})),this.listen()),this.relative&&e(window).resize((function(){n._carve().init(),n._draw()})),this},this._configure=function(){return this.o.draw&&(this.dH=this.o.draw),this.o.change&&(this.cH=this.o.change),this.o.cancel&&(this.eH=this.o.cancel),this.o.release&&(this.rH=this.o.release),this.o.displayPrevious?(this.pColor=this.h2rgba(this.o.fgColor,"0.4"),this.fgColor=this.h2rgba(this.o.fgColor,"0.6")):this.fgColor=this.o.fgColor,this},this._clear=function(){this.$c[0].width=this.$c[0].width},this._validate=function(e){var t=~~((e<0?-.5:.5)+e/this.o.step)*this.o.step;return Math.round(100*t)/100},this.listen=function(){},this.extend=function(){},this.init=function(){},this.change=function(e){},this.val=function(e){},this.xy2val=function(e,t){},this.draw=function(){},this.clear=function(){this._clear()},this.h2rgba=function(e,t){var n;return e=e.substring(1,7),"rgba("+(n=[parseInt(e.substring(0,2),16),parseInt(e.substring(2,4),16),parseInt(e.substring(4,6),16)])[0]+","+n[1]+","+n[2]+","+t+")"},this.copy=function(e,t){for(var n in e)t[n]=e[n]}},t.Dial=function(){t.o.call(this),this.startAngle=null,this.xy=null,this.radius=null,this.lineWidth=null,this.cursorExt=null,this.w2=null,this.PI2=2*Math.PI,this.extend=function(){this.o=e.extend({bgColor:this.$.data("bgcolor")||"#EEEEEE",angleOffset:this.$.data("angleoffset")||0,angleArc:this.$.data("anglearc")||360,inline:!0},this.o)},this.val=function(e,t){if(null==e)return this.v;e=this.o.parse(e),!1!==t&&e!=this.v&&this.rH&&!1===this.rH(e)||(this.cv=this.o.stopper?n(r(e,this.o.max),this.o.min):e,this.v=this.cv,this.$.val(this.o.format(this.v)),this._draw())},this.xy2val=function(e,t){var i,a;return i=Math.atan2(e-(this.x+this.w2),-(t-this.y-this.w2))-this.angleOffset,this.o.flip&&(i=this.angleArc-i-this.PI2),this.angleArc!=this.PI2&&i<0&&i>-.5?i=0:i<0&&(i+=this.PI2),a=i*(this.o.max-this.o.min)/this.angleArc+this.o.min,this.o.stopper&&(a=n(r(a,this.o.max),this.o.min)),a},this.listen=function(){var t,i,a,o,s=this,l=function(e){e.preventDefault();var a=e.originalEvent,o=a.detail||a.wheelDeltaX,l=a.detail||a.wheelDeltaY,c=s._validate(s.o.parse(s.$.val()))+(o>0||l>0?s.o.step:o<0||l<0?-s.o.step:0);c=n(r(c,s.o.max),s.o.min),s.val(c,!1),s.rH&&(clearTimeout(t),t=setTimeout((function(){s.rH(c),t=null}),100),i||(i=setTimeout((function(){t&&s.rH(c),i=null}),200)))},c=1,u={37:-s.o.step,38:s.o.step,39:s.o.step,40:-s.o.step};this.$.bind("keydown",(function(t){var i=t.keyCode;if(i>=96&&i<=105&&(i=t.keyCode=i-48),a=parseInt(String.fromCharCode(i)),isNaN(a)&&(13!==i&&8!==i&&9!==i&&189!==i&&(190!==i||s.$.val().match(/\./))&&t.preventDefault(),e.inArray(i,[37,38,39,40])>-1)){t.preventDefault();var l=s.o.parse(s.$.val())+u[i]*c;s.o.stopper&&(l=n(r(l,s.o.max),s.o.min)),s.change(s._validate(l)),s._draw(),o=window.setTimeout((function(){c*=2}),30)}})).bind("keyup",(function(e){isNaN(a)?o&&(window.clearTimeout(o),o=null,c=1,s.val(s.$.val())):s.$.val()>s.o.max&&s.$.val(s.o.max)||s.$.val()this.o.max)&&(this.v=this.o.min),this.$.val(this.v),this.w2=this.w/2,this.cursorExt=this.o.cursor/100,this.xy=this.w2*this.scale,this.lineWidth=this.xy*this.o.thickness,this.lineCap=this.o.lineCap,this.radius=this.xy-this.lineWidth/2,this.o.angleOffset&&(this.o.angleOffset=isNaN(this.o.angleOffset)?0:this.o.angleOffset),this.o.angleArc&&(this.o.angleArc=isNaN(this.o.angleArc)?this.PI2:this.o.angleArc),this.angleOffset=this.o.angleOffset*Math.PI/180,this.angleArc=this.o.angleArc*Math.PI/180,this.startAngle=1.5*Math.PI+this.angleOffset,this.endAngle=1.5*Math.PI+this.angleOffset+this.angleArc;var e=n(String(Math.abs(this.o.max)).length,String(Math.abs(this.o.min)).length,2)+2;this.o.displayInput&&this.i.css({width:(this.w/2+4>>0)+"px",height:(this.w/3>>0)+"px",position:"absolute","vertical-align":"middle","margin-top":(this.w/3>>0)+"px","margin-left":"-"+(3*this.w/4+2>>0)+"px",border:0,background:"none",font:this.o.fontWeight+" "+(this.w/e>>0)+"px "+this.o.font,"text-align":"center",color:this.o.inputColor||this.o.fgColor,padding:"0px","-webkit-appearance":"none"})||this.i.css({width:"0px",visibility:"hidden"})},this.change=function(e){this.cv=e,this.$.val(this.o.format(e))},this.angle=function(e){return(e-this.o.min)*this.angleArc/(this.o.max-this.o.min)},this.arc=function(e){var t,n;return e=this.angle(e),n=this.o.flip?(t=this.endAngle+1e-5)-e-1e-5:(t=this.startAngle-1e-5)+e+1e-5,this.o.cursor&&(t=n-this.cursorExt)&&(n+=this.cursorExt),{s:t,e:n,d:this.o.flip&&!this.o.cursor}},this.draw=function(){var e,t=this.g,n=this.arc(this.cv),r=1;t.lineWidth=this.lineWidth,t.lineCap=this.lineCap,"none"!==this.o.bgColor&&(t.beginPath(),t.strokeStyle=this.o.bgColor,t.arc(this.xy,this.xy,this.radius,this.endAngle-1e-5,this.startAngle+1e-5,!0),t.stroke()),this.o.displayPrevious&&(e=this.arc(this.v),t.beginPath(),t.strokeStyle=this.pColor,t.arc(this.xy,this.xy,this.radius,e.s,e.e,e.d),t.stroke(),r=this.cv==this.v),t.beginPath(),t.strokeStyle=r?this.o.fgColor:this.fgColor,t.arc(this.xy,this.xy,this.radius,n.s,n.e,n.d),t.stroke()},this.cancel=function(){this.val(this.v)}},e.fn.dial=e.fn.knob=function(n){return this.each((function(){var r=new t.Dial;r.o=n,r.$=e(this),r.run()})).parent()}})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Sweetalert2=t()}(this,(function(){"use strict";function e(t){return(e="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})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n\n
\n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n \n

    \n \n
    \n
    \n
    \n \n \n
    \n \n \n
    \n \n
    \n \n \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n').replace(/(^|\n)\s*/g,""),ce=function(e,t){if(e.innerHTML="",0 in t)for(var n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},ue=function(){if(ee())return!1;var e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&void 0!==e.style[n])return t[n];return!1}();function he(e,t,n){M(e,n["showC"+t.substring(1)+"Button"],"inline-block"),e.innerHTML=n[t+"ButtonText"],e.setAttribute("aria-label",n[t+"ButtonAriaLabel"]),e.className=x[t],v(e,n.customClass,t+"Button"),ie(e,n[t+"ButtonClass"])}function fe(e,t){e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)}var de={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},pe=["input","file","range","select","radio","checkbox","textarea"],ge=function(e){var t=x[e]?x[e]:x.input;return oe(z(),t)},me={};function ve(e,t){var n=z().querySelector("#"+x.content);t.html?(ne(t.html,n),I(n,"block")):t.text?(n.textContent=t.text,I(n,"block")):R(n),function(e,t){var n=z(),r=de.innerParams.get(e),i=!r||t.input!==r.input;pe.forEach((function(e){var r=x[e],a=oe(n,r);(function(e,t){var n=A(z(),e);if(n)for(var r in function(e){for(var t=0;t=t.progressSteps.length&&y("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach((function(e,i){var a=function(e){var t=document.createElement("li");return ie(t,x["progress-step"]),t.innerHTML=e,t}(e);if(n.appendChild(a),i===r&&ie(a,x["active-progress-step"]),i!==t.progressSteps.length-1){var o=function(e){var t=document.createElement("li");return ie(t,x["progress-step-line"]),e.progressStepsDistance&&(t.style.width=e.progressStepsDistance),t}(e);n.appendChild(o)}}))}function ye(e,t){!function(e,t){var n=B();P(n,"width",t.width),P(n,"padding",t.padding),t.background&&(n.style.background=t.background),n.className=x.popup,t.toast?(ie([document.documentElement,document.body],x["toast-shown"]),ie(n,x.toast)):ie(n,x.modal),v(n,t.customClass,"popup"),"string"==typeof t.customClass&&ie(n,t.customClass),E(n,x.noanimation,!t.animation)}(0,t),function(e,t){var n=O();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||ie([document.documentElement,document.body],x["no-backdrop"])}(n,t.backdrop),!t.backdrop&&t.allowOutsideClick&&y('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),function(e,t){t in x?ie(e,x[t]):(y('The "position" parameter is not valid, defaulting to "center"'),ie(e,x.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){var n="grow-"+t;n in x&&ie(e,x[n])}}(n,t.grow),v(n,t.customClass,"container"),t.customContainerClass&&ie(n,t.customContainerClass))}(0,t),function(e,t){v($(),t.customClass,"header"),be(0,t),function(e,t){var n=de.innerParams.get(e);if(n&&t.type===n.type&&U())v(U(),t.customClass,"icon");else if(_e(),t.type)if(Se(),-1!==Object.keys(C).indexOf(t.type)){var r=N(".".concat(x.icon,".").concat(C[t.type]));I(r),v(r,t.customClass,"icon"),E(r,"swal2-animate-".concat(t.type,"-icon"),t.animation)}else f('Unknown type! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.type,'"'))}(e,t),function(e,t){var n=H();if(!t.imageUrl)return R(n);I(n),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt),P(n,"width",t.imageWidth),P(n,"height",t.imageHeight),n.className=x.image,v(n,t.customClass,"image"),t.imageClass&&ie(n,t.imageClass)}(0,t),function(e,t){var n=q();M(n,t.title||t.titleText),t.title&&ne(t.title,n),t.titleText&&(n.innerText=t.titleText),v(n,t.customClass,"title")}(0,t),function(e,t){var n=J();n.innerHTML=t.closeButtonHtml,v(n,t.customClass,"closeButton"),M(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel)}(0,t)}(e,t),ve(e,t),function(e,t){var n=Y(),r=G(),i=X();t.showConfirmButton||t.showCancelButton||R(n),v(n,t.customClass,"actions"),he(r,"confirm",t),he(i,"cancel",t),t.buttonsStyling?function(e,t,n){ie([e,t],x.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor),n.cancelButtonColor&&(t.style.backgroundColor=n.cancelButtonColor);var r=window.getComputedStyle(e).getPropertyValue("background-color");e.style.borderLeftColor=r,e.style.borderRightColor=r}(r,i,t):(ae([r,i],x.styled),r.style.backgroundColor=r.style.borderLeftColor=r.style.borderRightColor="",i.style.backgroundColor=i.style.borderLeftColor=i.style.borderRightColor=""),t.reverseButtons&&r.parentNode.insertBefore(i,r)}(0,t),function(e,t){var n=K();M(n,t.footer),t.footer&&ne(t.footer,n),v(n,t.customClass,"footer")}(0,t),"function"==typeof t.onRender&&t.onRender(B())}function we(){return G()&&G().click()}me.text=me.email=me.password=me.number=me.tel=me.url=function(t,n){return"string"==typeof n.inputValue||"number"==typeof n.inputValue?t.value=n.inputValue:p(n.inputValue)||y('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(e(n.inputValue),'"')),fe(t,n),t.type=n.input,t},me.file=function(e,t){return fe(e,t),e},me.range=function(e,t){var n=e.querySelector("input"),r=e.querySelector("output");return n.value=t.inputValue,n.type=t.input,r.value=t.inputValue,e},me.select=function(e,t){if(e.innerHTML="",t.inputPlaceholder){var n=document.createElement("option");n.innerHTML=t.inputPlaceholder,n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return e},me.radio=function(e){return e.innerHTML="",e},me.checkbox=function(e,t){var n=A(z(),"checkbox");return n.value=1,n.id=x.checkbox,n.checked=Boolean(t.inputValue),e.querySelector("span").innerHTML=t.inputPlaceholder,e},me.textarea=function(e,t){if(e.value=t.inputValue,fe(e,t),"MutationObserver"in window){var n=parseInt(window.getComputedStyle(B()).width),r=parseInt(window.getComputedStyle(B()).paddingLeft)+parseInt(window.getComputedStyle(B()).paddingRight);new MutationObserver((function(){var t=e.offsetWidth+r;B().style.width=n")),function(e){if(function(){var e=O();e&&(e.parentNode.removeChild(e),ae([document.documentElement,document.body],[x["no-backdrop"],x["toast-shown"],x["has-column"]]))}(),ee())f("SweetAlert2 requires document to initialize");else{var t=document.createElement("div");t.className=x.container,t.innerHTML=le;var n=function(e){return"string"==typeof e?document.querySelector(e):e}(e.target);n.appendChild(t),function(e){var t=B();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")}(e),function(e){"rtl"===window.getComputedStyle(e).direction&&ie(O(),x.rtl)}(n),function(){var e=z(),t=oe(e,x.input),n=oe(e,x.file),r=e.querySelector(".".concat(x.range," input")),i=e.querySelector(".".concat(x.range," output")),a=oe(e,x.select),o=e.querySelector(".".concat(x.checkbox," input")),s=oe(e,x.textarea);t.oninput=te,n.onchange=te,a.onchange=te,o.onchange=te,s.oninput=te,r.oninput=function(e){te(e),i.value=r.value},r.onchange=function(e){te(e),r.nextSibling.value=r.value}}()}}(e)}function Xe(e,t){e.removeEventListener(ue,Xe),t.style.overflowY="auto"}function Ye(e,t){e.closePopup({value:t})}function $e(e,t,n){for(var r=Q(),i=0;ie.clientHeight)}(t)&&"INPUT"!==n.target.tagName},t.ontouchmove=function(t){e&&(t.preventDefault(),t.stopPropagation())}}()}}(),"undefined"!=typeof window&&De()&&(Oe(),window.addEventListener("resize",Oe)),h(document.body.children).forEach((function(e){e===O()||function(e,t){if("function"==typeof e.contains)return e.contains(t)}(e,O())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})),t&&(null===k.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(k.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=k.previousBodyPadding+function(){if("ontouchstart"in window||navigator.msMaxTouchPoints)return 0;var e=document.createElement("div");e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}()+"px")),setTimeout((function(){e.scrollTop=0}))},Ze=function(e,t,n){n.animation&&ie(t,x.show),I(t),ie([document.documentElement,document.body,e],x.shown),n.heightAuto&&n.backdrop&&!n.toast&&ie([document.documentElement,document.body],x["height-auto"])},et=function(t,n){function r(e){return nt[n.input](i,rt(e),n)}var i=z();p(n.inputOptions)?(xe(),n.inputOptions.then((function(e){t.hideLoading(),r(e)}))):"object"===e(n.inputOptions)?r(n.inputOptions):f("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(e(n.inputOptions)))},tt=function(e,t){var n=e.getInput();R(n),t.inputValue.then((function(r){n.value="number"===t.input?parseFloat(r)||0:r+"",I(n),n.focus(),e.hideLoading()})).catch((function(t){f("Error in inputValue promise: "+t),n.value="",I(n),n.focus(),e.hideLoading()}))},nt={select:function(e,t,n){var r=oe(e,x.select);t.forEach((function(e){var t=e[0],i=e[1],a=document.createElement("option");a.value=t,a.innerHTML=i,n.inputValue.toString()===t.toString()&&(a.selected=!0),r.appendChild(a)})),r.focus()},radio:function(e,t,n){var r=oe(e,x.radio);t.forEach((function(e){var t=e[0],i=e[1],a=document.createElement("input"),o=document.createElement("label");a.type="radio",a.name=x.radio,a.value=t,n.inputValue.toString()===t.toString()&&(a.checked=!0);var s=document.createElement("span");s.innerHTML=i,s.className=x.label,o.appendChild(a),o.appendChild(s),r.appendChild(o)}));var i=r.querySelectorAll("input");i.length&&i[0].focus()}},rt=function(e){var t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach((function(e,n){t.push([n,e])})):Object.keys(e).forEach((function(n){t.push([n,e[n]])})),t},it=function(e,t){var n=function(e,t){var n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return function(e){return e.checked?1:0}(n);case"radio":return function(e){return e.checked?e.value:null}(n);case"file":return function(e){return e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null}(n);default:return t.inputAutoTrim?n.value.trim():n.value}}(e,t);t.inputValidator?(e.disableInput(),Promise.resolve().then((function(){return t.inputValidator(n,t.validationMessage)})).then((function(r){e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):at(e,t,n)}))):e.getInput().checkValidity()?at(e,t,n):(e.enableButtons(),e.showValidationMessage(t.validationMessage))},at=function(e,t,n){t.showLoaderOnConfirm&&xe(),t.preConfirm?(e.resetValidationMessage(),Promise.resolve().then((function(){return t.preConfirm(n,t.validationMessage)})).then((function(t){L(V())||!1===t?e.hideLoading():Ye(e,void 0===t?n:t)}))):Ye(e,n)},ot=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Left","Right","Up","Down"],st=["Escape","Esc"],lt=function(e,t,n,r){n.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?ct(e,t,n):"Tab"===t.key?ut(t,n):-1!==ot.indexOf(t.key)?ht():-1!==st.indexOf(t.key)&&ft(t,n,r)},ct=function(e,t,n){if(!t.isComposing&&t.target&&e.getInput()&&t.target.outerHTML===e.getInput().outerHTML){if(-1!==["textarea","file"].indexOf(n.input))return;we(),t.preventDefault()}},ut=function(e,t){for(var n=e.target,r=Q(),i=-1,a=0;anew e(t))}else{let e,t=n(202).PDFNetworkStream;s.isFetchSupported()&&(e=n(203).PDFFetchStream),i.setPDFNetworkStreamFactory(n=>e&&s.isValidFetchUrl(n.url)?new e(n):new t(n))}t.build=i.build,t.version=i.version,t.getDocument=i.getDocument,t.LoopbackPort=i.LoopbackPort,t.PDFDataRangeTransport=i.PDFDataRangeTransport,t.PDFWorker=i.PDFWorker,t.renderTextLayer=a.renderTextLayer,t.AnnotationLayer=o.AnnotationLayer,t.createPromiseCapability=r.createPromiseCapability,t.PasswordResponses=r.PasswordResponses,t.InvalidPDFException=r.InvalidPDFException,t.MissingPDFException=r.MissingPDFException,t.SVGGraphics=l.SVGGraphics,t.NativeImageDecoding=r.NativeImageDecoding,t.CMapCompressionType=r.CMapCompressionType,t.PermissionFlag=r.PermissionFlag,t.UnexpectedResponseException=r.UnexpectedResponseException,t.OPS=r.OPS,t.VerbosityLevel=r.VerbosityLevel,t.UNSUPPORTED_FEATURES=r.UNSUPPORTED_FEATURES,t.createValidAbsoluteUrl=r.createValidAbsoluteUrl,t.createObjectURL=r.createObjectURL,t.removeNullCharacters=r.removeNullCharacters,t.shadow=r.shadow,t.Util=r.Util,t.ReadableStream=r.ReadableStream,t.RenderingCancelledException=s.RenderingCancelledException,t.getFilenameFromUrl=s.getFilenameFromUrl,t.LinkTarget=s.LinkTarget,t.addLinkAttributes=s.addLinkAttributes,t.loadScript=s.loadScript,t.PDFDateString=s.PDFDateString,t.GlobalWorkerOptions=c.GlobalWorkerOptions,t.apiCompatibilityParams=u.apiCompatibilityParams},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=f,t.arraysToBytes=function(e){const t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];let n=0;for(let a=0;at}),e.promise=new Promise((function(n,r){e.resolve=function(e){t=!0,n(e)},e.reject=function(e){t=!0,r(e)}})),e},t.getVerbosityLevel=function(){return a},t.info=function(e){a>=i.INFOS&&console.log("Info: "+e)},t.isArrayBuffer=function(e){return"object"==typeof e&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;return e.every((function(e,n){return e===t[n]}))},t.isBool=function(e){return"boolean"==typeof e},t.isEmptyObj=function(e){for(let t in e)return!1;return!0},t.isNum=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSpace=function(e){return 32===e||9===e||13===e||10===e},t.isSameOrigin=function(e,t){let n;try{if(n=new URL(e),!n.origin||"null"===n.origin)return!1}catch(i){return!1}const r=new URL(t,n);return n.origin===r.origin},t.createValidAbsoluteUrl=function(e,t){if(!e)return null;try{const n=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(n))return n}catch(n){}return null},t.isLittleEndian=function(){const e=new Uint8Array(4);e[0]=1;return 1===new Uint32Array(e.buffer,0,1)[0]},t.isEvalSupported=function(){try{return new Function(""),!0}catch(e){return!1}},t.log2=function(e){if(e<=0)return 0;return Math.ceil(Math.log2(e))},t.readInt8=function(e,t){return e[t]<<24>>24},t.readUint16=function(e,t){return e[t]<<8|e[t+1]},t.readUint32=function(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0},t.removeNullCharacters=function(e){if("string"!=typeof e)return o("The argument for removeNullCharacters must be a string."),e;return e.replace(u,"")},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(a=e)},t.shadow=function(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!1}),n},t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=h,t.stringToPDFString=function(e){const t=e.length,n=[];if("\xfe"===e[0]&&"\xff"===e[1])for(let r=2;r=i.WARNINGS&&console.log("Warning: "+e)}function s(e){throw new Error(e)}function l(e,t){e||s(t)}const c=function(){function e(t){this.constructor===e&&s("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=c;t.PasswordException=class extends c{constructor(e,t){super(e),this.code=t}};t.UnknownErrorException=class extends c{constructor(e,t){super(e),this.details=t}};t.InvalidPDFException=class extends c{};t.MissingPDFException=class extends c{};t.UnexpectedResponseException=class extends c{constructor(e,t){super(e),this.status=t}};t.FormatError=class extends c{};t.AbortException=class extends c{};const u=/\x00/g;function h(e){l("string"==typeof e,"Invalid argument for stringToBytes");const t=e.length,n=new Uint8Array(t);for(let r=0;re[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){function n(e,t){return e-t}const r=[e[0],e[2],t[0],t[2]].sort(n),i=[e[1],e[3],t[1],t[3]].sort(n),a=[];return e=p.normalizeRect(e),t=p.normalizeRect(t),r[0]===e[0]&&r[1]===t[0]||r[0]===t[0]&&r[1]===e[0]?(a[0]=r[1],a[2]=r[2],i[0]===e[1]&&i[1]===t[1]||i[0]===t[1]&&i[1]===e[1]?(a[1]=i[1],a[3]=i[2],a):null):null}}t.Util=p;const g=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];const m=function(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(t,n,r=!1){if(!r&&URL.createObjectURL){const e=new Blob([t],{type:n});return URL.createObjectURL(e)}let i=`data:${n};base64,`;for(let a=0,o=t.length;a>4,c=a+1>6:64,u=a+2>2]+e[l]+e[c]+e[u]}return i}}();t.createObjectURL=m},function(e,t,n){"use strict";const r=n(3);if(!r._pdfjsCompatibilityChecked){r._pdfjsCompatibilityChecked=!0;const e=n(4),t="object"==typeof window&&"object"==typeof document;!r.btoa&&e()&&(r.btoa=function(e){return Buffer.from(e,"binary").toString("base64")}),!r.atob&&e()&&(r.atob=function(e){return Buffer.from(e,"base64").toString("binary")}),t&&void 0===Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),function(){if(!t||e())return;const n=document.createElement("div");if(n.classList.add("testOne","testTwo"),!0===n.classList.contains("testOne")&&!0===n.classList.contains("testTwo"))return;const r=DOMTokenList.prototype.add,i=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(...e){for(let t of e)r.call(this,t)},DOMTokenList.prototype.remove=function(...e){for(let t of e)i.call(this,t)}}(),function(){if(!t||e())return;!1!==document.createElement("div").classList.toggle("test",0)&&(DOMTokenList.prototype.toggle=function(e){let t=arguments.length>1?!!arguments[1]:!this.contains(e);return this[t?"add":"remove"](e),t})}(),String.prototype.startsWith||n(5),String.prototype.endsWith||n(59),String.prototype.includes||n(61),Array.prototype.includes||n(63),Array.from||n(70),Object.assign||n(92),Math.log2||(Math.log2=n(95)),Number.isNaN||(Number.isNaN=n(97)),Number.isInteger||(Number.isInteger=n(99)),r.Promise&&r.Promise.prototype&&r.Promise.prototype.finally||(r.Promise=n(102)),r.URL=n(126),r.WeakMap||(r.WeakMap=n(133)),r.WeakSet||(r.WeakSet=n(143)),String.prototype.codePointAt||n(145),String.fromCodePoint||(String.fromCodePoint=n(147)),r.Symbol||n(149),String.prototype.padStart||n(172),String.prototype.padEnd||n(177),Object.values||(Object.values=n(179))}},function(e,t,n){"use strict";e.exports="undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:{}},function(e,t,n){"use strict";e.exports=function(){return"object"==typeof process&&process+""=="[object process]"&&!process.versions.nw&&!process.versions.electron}},function(e,t,n){n(6);var r=n(56);e.exports=r("String","startsWith")},function(e,t,n){"use strict";var r,i=n(7),a=n(9).f,o=n(44),s=n(50),l=n(17),c=n(55),u=n(34),h="".startsWith,f=Math.min,d=c("startsWith");i({target:"String",proto:!0,forced:!!(u||d||(r=a(String.prototype,"startsWith"),!r||r.writable))&&!d},{startsWith:function(e){var t=String(l(this));s(e);var n=o(f(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return h?h.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){var r=n(8),i=n(9).f,a=n(23),o=n(26),s=n(27),l=n(37),c=n(49);e.exports=function(e,t){var n,u,h,f,d,p=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[p]||s(p,{}):(r[p]||{}).prototype)for(u in t){if(f=t[u],h=e.noTargetGet?(d=i(n,u))&&d.value:n[u],!c(g?u:p+(m?".":"#")+u,e.forced)&&void 0!==h){if(typeof f==typeof h)continue;l(f,h)}(e.sham||h&&h.sham)&&a(f,"sham",!0),o(n,u,f,e)}}},function(e,t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||Function("return this")()},function(e,t,n){var r=n(10),i=n(12),a=n(13),o=n(14),s=n(18),l=n(20),c=n(21),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=o(e),t=s(t,!0),c)try{return u(e,t)}catch(n){}if(l(e,t))return a(!i.f.call(e,t),e[t])}},function(e,t,n){var r=n(11);e.exports=!r((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!r.call({1:2},1);t.f=a?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(15),i=n(17);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(11),i=n(16),a="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a.call(e,""):Object(e)}:Object},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(19);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(10),i=n(11),a=n(22);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(8),i=n(19),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},function(e,t,n){var r=n(10),i=n(24),a=n(13);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(10),i=n(21),a=n(25),o=n(18),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=o(t,!0),a(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(19);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r=n(8),i=n(23),a=n(20),o=n(27),s=n(28),l=n(30),c=l.get,u=l.enforce,h=String(String).split("String");(e.exports=function(e,t,n,s){var l=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||i(n,"name",t),u(n).source=h.join("string"==typeof t?t:"")),e!==r?(l?!f&&e[t]&&(c=!0):delete e[t],c?e[t]=n:i(e,t,n)):c?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},function(e,t,n){var r=n(8),i=n(23);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(29),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(8),i=n(27),a=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=a},function(e,t,n){var r,i,a,o=n(31),s=n(8),l=n(19),c=n(23),u=n(20),h=n(32),f=n(36),d=s.WeakMap;if(o){var p=new d,g=p.get,m=p.has,v=p.set;r=function(e,t){return v.call(p,e,t),t},i=function(e){return g.call(p,e)||{}},a=function(e){return m.call(p,e)}}else{var b=h("state");f[b]=!0,r=function(e,t){return c(e,b,t),t},i=function(e){return u(e,b)?e[b]:{}},a=function(e){return u(e,b)}}e.exports={set:r,get:i,has:a,enforce:function(e){return a(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(8),i=n(28),a=r.WeakMap;e.exports="function"==typeof a&&/native code/.test(i(a))},function(e,t,n){var r=n(33),i=n(35),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},function(e,t,n){var r=n(34),i=n(29);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.5.0",mode:r?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t){e.exports={}},function(e,t,n){var r=n(20),i=n(38),a=n(9),o=n(24);e.exports=function(e,t){for(var n=i(t),s=o.f,l=a.f,c=0;cl;)r(s,n=t[l++])&&(~a(c,n)||c.push(n));return c}},function(e,t,n){var r=n(14),i=n(44),a=n(46),o=function(e){return function(t,n,o){var s,l=r(t),c=i(l.length),u=a(o,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,n){var r=n(45),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(45),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(11),i=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},o=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},function(e,t,n){var r=n(51);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(19),i=n(16),a=n(52)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},function(e,t,n){var r=n(8),i=n(33),a=n(20),o=n(35),s=n(53),l=n(54),c=i("wks"),u=r.Symbol,h=l?u:o;e.exports=function(e){return a(c,e)||(s&&a(u,e)?c[e]=u[e]:c[e]=h("Symbol."+e)),c[e]}},function(e,t,n){var r=n(11);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(e,t,n){var r=n(53);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol()},function(e,t,n){var r=n(52)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(i){}}return!1}},function(e,t,n){var r=n(8),i=n(57),a=Function.call;e.exports=function(e,t,n){return i(a,r[e].prototype[t],n)}},function(e,t,n){var r=n(58);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){n(60);var r=n(56);e.exports=r("String","endsWith")},function(e,t,n){"use strict";var r,i=n(7),a=n(9).f,o=n(44),s=n(50),l=n(17),c=n(55),u=n(34),h="".endsWith,f=Math.min,d=c("endsWith");i({target:"String",proto:!0,forced:!!(u||d||(r=a(String.prototype,"endsWith"),!r||r.writable))&&!d},{endsWith:function(e){var t=String(l(this));s(e);var n=arguments.length>1?arguments[1]:void 0,r=o(t.length),i=void 0===n?r:f(o(n),r),a=String(e);return h?h.call(t,a,i):t.slice(i-a.length,i)===a}})},function(e,t,n){n(62);var r=n(56);e.exports=r("String","includes")},function(e,t,n){"use strict";var r=n(7),i=n(50),a=n(17);r({target:"String",proto:!0,forced:!n(55)("includes")},{includes:function(e){return!!~String(a(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){n(64);var r=n(56);e.exports=r("Array","includes")},function(e,t,n){"use strict";var r=n(7),i=n(43).includes,a=n(65);r({target:"Array",proto:!0},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},function(e,t,n){var r=n(52),i=n(66),a=n(23),o=r("unscopables"),s=Array.prototype;null==s[o]&&a(s,o,i(null)),e.exports=function(e){s[o][e]=!0}},function(e,t,n){var r=n(25),i=n(67),a=n(47),o=n(36),s=n(69),l=n(22),c=n(32)("IE_PROTO"),u=function(){},h=function(){var e,t=l("iframe"),n=a.length;for(t.style.display="none",s.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("