jekyll-theme-chirpy-g 1.0.4 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/_data/locales/ar.yml +7 -1
  3. data/_data/locales/bg-BG.yml +7 -1
  4. data/_data/locales/ca-ES.yml +7 -1
  5. data/_data/locales/cs-CZ.yml +7 -1
  6. data/_data/locales/da-DK.yml +7 -1
  7. data/_data/locales/de-DE.yml +7 -1
  8. data/_data/locales/dv/342/200/221MV.yml +7 -1
  9. data/_data/locales/el-GR.yml +7 -1
  10. data/_data/locales/en.yml +7 -1
  11. data/_data/locales/es-ES.yml +7 -1
  12. data/_data/locales/fa-IR.yml +7 -1
  13. data/_data/locales/fi-FI.yml +7 -1
  14. data/_data/locales/fr-FR.yml +7 -1
  15. data/_data/locales/hu-HU.yml +7 -1
  16. data/_data/locales/id-ID.yml +7 -1
  17. data/_data/locales/it-IT.yml +7 -1
  18. data/_data/locales/ja-JP.yml +7 -1
  19. data/_data/locales/ko-KR.yml +7 -1
  20. data/_data/locales/ku-IQ.yml +7 -1
  21. data/_data/locales/my-MM.yml +7 -1
  22. data/_data/locales/nl-NL.yml +7 -1
  23. data/_data/locales/ps/342/200/221AF.yml +7 -1
  24. data/_data/locales/pt-BR.yml +7 -1
  25. data/_data/locales/ru-RU.yml +7 -1
  26. data/_data/locales/sl-SI.yml +7 -1
  27. data/_data/locales/sv-SE.yml +7 -1
  28. data/_data/locales/th.yml +7 -1
  29. data/_data/locales/tr-TR.yml +7 -1
  30. data/_data/locales/uk-UA.yml +7 -1
  31. data/_data/locales/ur-PK.yml +7 -1
  32. data/_data/locales/vi-VN.yml +7 -1
  33. data/_data/locales/zh-CN.yml +7 -1
  34. data/_data/locales/zh-TW.yml +7 -1
  35. data/_data/origin/cors.yml +18 -15
  36. data/_includes/comments/disqus.html +2 -2
  37. data/_includes/comments/giscus.html +17 -7
  38. data/_includes/comments/utterances.html +4 -4
  39. data/_includes/datetime.html +2 -2
  40. data/_includes/head.html +2 -4
  41. data/_includes/js-selector.html +0 -1
  42. data/_includes/language-alias.html +7 -9
  43. data/_includes/media-url.html +1 -1
  44. data/_includes/notification.html +13 -9
  45. data/_includes/post-edit.html +23 -0
  46. data/_includes/post-paginator.html +1 -1
  47. data/_includes/refactor-content.html +1 -1
  48. data/_includes/sidebar.html +48 -6
  49. data/_layouts/default.html +6 -5
  50. data/_layouts/graph.html +12 -1
  51. data/_layouts/post.html +16 -13
  52. data/_sass/abstracts/_mixins.scss +6 -0
  53. data/_sass/abstracts/_variables.scss +6 -0
  54. data/_sass/base/_base.scss +28 -20
  55. data/_sass/base/_syntax.scss +89 -82
  56. data/_sass/components/_popups.scss +17 -28
  57. data/_sass/layout/_sidebar.scss +97 -9
  58. data/_sass/pages/_archives.scss +1 -1
  59. data/_sass/pages/_graph.scss +91 -0
  60. data/_sass/pages/_post.scss +10 -0
  61. data/_sass/themes/_dark.scss +20 -13
  62. data/_sass/themes/_light.scss +18 -11
  63. data/_sass/vendors/_bootstrap.scss +1 -1
  64. data/assets/css/jekyll-theme-chirpy-g.scss +4 -0
  65. data/assets/img/favicons/site.webmanifest +1 -1
  66. data/assets/js/data/graph.json +12 -9
  67. data/assets/js/data/mathjax.js +4 -0
  68. data/assets/js/dist/app.min.js +2 -2
  69. data/assets/js/dist/categories.min.js +2 -2
  70. data/assets/js/dist/commons.min.js +2 -2
  71. data/assets/js/dist/graph.min.js +2 -2
  72. data/assets/js/dist/home.min.js +2 -2
  73. data/assets/js/dist/misc.min.js +2 -2
  74. data/assets/js/dist/page.min.js +2 -2
  75. data/assets/js/dist/post.min.js +2 -2
  76. data/assets/js/dist/sw.min.js +1 -1
  77. data/assets/js/dist/theme.min.js +2 -2
  78. metadata +3 -2
@@ -1,4 +1,4 @@
1
1
  /*!
2
- * jekyll-theme-chirpy-g v1.0.3 | © 2025 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
2
+ * jekyll-theme-chirpy-g v1.2.0 | © 2025 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
3
3
  */
4
- !function(){"use strict";const t=new Map;var e={set(e,n,r){t.has(e)||t.set(e,new Map);const i=t.get(e);i.has(n)||0===i.size?i.set(n,r):console.error("Bootstrap doesn't allow more than one instance per element. Bound instance: ".concat(Array.from(i.keys())[0],"."))},get:(e,n)=>t.has(e)&&t.get(e).get(n)||null,remove(e,n){if(!t.has(e))return;const r=t.get(e);r.delete(n),0===r.size&&t.delete(e)}};const n="transitionend",r=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(t,e)=>"#".concat(CSS.escape(e)))),t),i=t=>null==t?"".concat(t):Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),o=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),s=t=>o(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(r(t)):null,a=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?a(t.parentNode):null},c=()=>{},l=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,u=[],f=()=>"rtl"===document.documentElement.dir,h=t=>{var e;e=()=>{const e=l();if(e){const n=t.NAME,r=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=r,t.jQueryInterface)}},"loading"===document.readyState?(u.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of u)t()}),u.push(e)):e()},p=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;return"function"==typeof t?t.call(...e):n},d=function(t,e){if(!(!(arguments.length>2&&void 0!==arguments[2])||arguments[2]))return void p(t);const r=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const r=Number.parseFloat(e),i=Number.parseFloat(n);return r||i?(e=e.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(n))):0})(e)+5;let i=!1;const o=r=>{let{target:s}=r;s===e&&(i=!0,e.removeEventListener(n,o),p(t))};e.addEventListener(n,o),setTimeout(()=>{i||e.dispatchEvent(new Event(n))},r)},g=/[^.]*(?=\..*)\.|.*/,m=/\..*/,v=/::\d+$/,y={};let _=1;const w={mouseenter:"mouseover",mouseleave:"mouseout"},b=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function x(t,e){return e&&"".concat(e,"::").concat(_++)||t.uidEvent||_++}function E(t){const e=x(t);return t.uidEvent=e,y[e]=y[e]||{},y[e]}function A(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===n)}function k(t,e,n){const r="string"==typeof e,i=r?n:e||n;let o=T(t);return b.has(o)||(o=t),[r,i,o]}function O(t,e,n,r,i){if("string"!=typeof e||!t)return;let[o,s,a]=k(e,n,r);if(e in w){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};s=t(s)}const c=E(t),l=c[a]||(c[a]={}),u=A(l,s,o?n:null);if(u)return void(u.oneOff=u.oneOff&&i);const f=x(s,e.replace(g,"")),h=o?function(t,e,n){return function r(i){const o=t.querySelectorAll(e);for(let{target:s}=i;s&&s!==this;s=s.parentNode)for(const a of o)if(a===s)return S(i,{delegateTarget:s}),r.oneOff&&M.off(t,i.type,e,n),n.apply(s,[i])}}(t,n,s):function(t,e){return function n(r){return S(r,{delegateTarget:t}),n.oneOff&&M.off(t,r.type,e),e.apply(t,[r])}}(t,s);h.delegationSelector=o?n:null,h.callable=s,h.oneOff=i,h.uidEvent=f,l[f]=h,t.addEventListener(a,h,o)}function C(t,e,n,r,i){const o=A(e[n],r,i);o&&(t.removeEventListener(n,o,Boolean(i)),delete e[n][o.uidEvent])}function N(t,e,n,r){const i=e[n]||{};for(const[o,s]of Object.entries(i))o.includes(r)&&C(t,e,n,s.callable,s.delegationSelector)}function T(t){return t=t.replace(m,""),w[t]||t}const M={on(t,e,n,r){O(t,e,n,r,!1)},one(t,e,n,r){O(t,e,n,r,!0)},off(t,e,n,r){if("string"!=typeof e||!t)return;const[i,o,s]=k(e,n,r),a=s!==e,c=E(t),l=c[s]||{},u=e.startsWith(".");if(void 0===o){if(u)for(const n of Object.keys(c))N(t,c,n,e.slice(1));for(const[n,r]of Object.entries(l)){const i=n.replace(v,"");a&&!e.includes(i)||C(t,c,s,r.callable,r.delegationSelector)}}else{if(!Object.keys(l).length)return;C(t,c,s,o,i?n:null)}},trigger(t,e,n){if("string"!=typeof e||!t)return null;const r=l();let i=null,o=!0,s=!0,a=!1;e!==T(e)&&r&&(i=r.Event(e,n),r(t).trigger(i),o=!i.isPropagationStopped(),s=!i.isImmediatePropagationStopped(),a=i.isDefaultPrevented());const c=S(new Event(e,{bubbles:o,cancelable:!0}),n);return a&&c.preventDefault(),s&&t.dispatchEvent(c),c.defaultPrevented&&i&&i.preventDefault(),c}};function S(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const[n,r]of Object.entries(e))try{t[n]=r}catch(e){Object.defineProperty(t,n,{configurable:!0,get:()=>r})}return t}function L(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function j(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function P(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function D(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?P(Object(n),!0).forEach(function(e){j(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function z(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function B(t){return t.replace(/[A-Z]/g,t=>"-".concat(t.toLowerCase()))}const I={setDataAttribute(t,e,n){t.setAttribute("data-bs-".concat(B(e)),n)},removeDataAttribute(t,e){t.removeAttribute("data-bs-".concat(B(e)))},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"));for(const r of n){let n=r.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1),e[n]=z(t.dataset[r])}return e},getDataAttribute:(t,e)=>z(t.getAttribute("data-bs-".concat(B(e))))};class q{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const n=o(e)?I.getDataAttribute(e,"config"):{};return D(D(D(D({},this.constructor.Default),"object"==typeof n?n:{}),o(e)?I.getDataAttributes(e):{}),"object"==typeof t?t:{})}_typeCheckConfig(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.constructor.DefaultType;for(const[n,r]of Object.entries(e)){const e=t[n],s=o(e)?"element":i(e);if(!new RegExp(r).test(s))throw new TypeError("".concat(this.constructor.NAME.toUpperCase(),': Option "').concat(n,'" provided type "').concat(s,'" but expected type "').concat(r,'".'))}}}class H extends q{constructor(t,n){super(),(t=s(t))&&(this._element=t,this._config=this._getConfig(n),e.set(this._element,this.constructor.DATA_KEY,this))}dispose(){e.remove(this._element,this.constructor.DATA_KEY),M.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e){d(t,e,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return e.get(s(t),this.DATA_KEY)}static getOrCreateInstance(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.3.8"}static get DATA_KEY(){return"bs.".concat(this.NAME)}static get EVENT_KEY(){return".".concat(this.DATA_KEY)}static eventName(t){return"".concat(t).concat(this.EVENT_KEY)}}const R=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#".concat(n.split("#")[1])),e=n&&"#"!==n?n.trim():null}return e?e.split(",").map(t=>r(t)).join(","):null},F={find(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(e,t)},children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const n=[];let r=t.parentNode.closest(e);for(;r;)n.push(r),r=r.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>"".concat(t,':not([tabindex^="-"])')).join(",");return this.find(e,t).filter(t=>!(t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")))(t)&&(t=>{if(!o(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const e=t.closest("summary");if(e&&e.parentNode!==n)return!1;if(null===e)return!1}return e})(t))},getSelectorFromElement(t){const e=R(t);return e&&F.findOne(e)?e:null},getElementFromSelector(t){const e=R(t);return e?F.findOne(e):null},getMultipleElementsFromSelector(t){const e=R(t);return e?F.find(e):[]}},V=".".concat("bs.collapse"),Y="show".concat(V),W="shown".concat(V),X="hide".concat(V),U="hidden".concat(V),K="click".concat(V).concat(".data-api"),$="show",Q="collapse",G="collapsing",J=":scope .".concat(Q," .").concat(Q),Z='[data-bs-toggle="collapse"]',tt={parent:null,toggle:!0},et={parent:"(null|element)",toggle:"boolean"};class nt extends H{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const n=F.find(Z);for(const t of n){const e=F.getSelectorFromElement(t),n=F.find(e).filter(t=>t===this._element);null!==e&&n.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return tt}static get DefaultType(){return et}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(t=>t!==this._element).map(t=>nt.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning)return;if(M.trigger(this._element,Y).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(Q),this._element.classList.add(G),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=e[0].toUpperCase()+e.slice(1),r="scroll".concat(n);this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(G),this._element.classList.add(Q,$),this._element.style[e]="",M.trigger(this._element,W)},this._element,!0),this._element.style[e]="".concat(this._element[r],"px")}hide(){if(this._isTransitioning||!this._isShown())return;if(M.trigger(this._element,X).defaultPrevented)return;const t=this._getDimension();this._element.style[t]="".concat(this._element.getBoundingClientRect()[t],"px"),this._element.offsetHeight,this._element.classList.add(G),this._element.classList.remove(Q,$);for(const t of this._triggerArray){const e=F.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0;this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(G),this._element.classList.add(Q),M.trigger(this._element,U)},this._element,!0)}_isShown(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._element).classList.contains($)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=s(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Z);for(const e of t){const t=F.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=F.find(J,this._config.parent);return F.find(t,this._config.parent).filter(t=>!e.includes(t))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const n of t)n.classList.toggle("collapsed",!e),n.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){const n=nt.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'.concat(t,'"'));n[t]()}})}}M.on(document,K,Z,function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of F.getMultipleElementsFromSelector(this))nt.getOrCreateInstance(t,{toggle:!1}).toggle()}),h(nt),document.getElementsByClassName("collapse");var rt="top",it="bottom",ot="right",st="left",at="auto",ct=[rt,it,ot,st],lt="start",ut="end",ft="clippingParents",ht="viewport",pt="popper",dt="reference",gt=ct.reduce(function(t,e){return t.concat([e+"-"+lt,e+"-"+ut])},[]),mt=[].concat(ct,[at]).reduce(function(t,e){return t.concat([e,e+"-"+lt,e+"-"+ut])},[]),vt="beforeRead",yt="read",_t="afterRead",wt="beforeMain",bt="main",xt="afterMain",Et="beforeWrite",At="write",kt="afterWrite",Ot=[vt,yt,_t,wt,bt,xt,Et,At,kt];function Ct(t){return t?(t.nodeName||"").toLowerCase():null}function Nt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Tt(t){return t instanceof Nt(t).Element||t instanceof Element}function Mt(t){return t instanceof Nt(t).HTMLElement||t instanceof HTMLElement}function St(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Nt(t).ShadowRoot||t instanceof ShadowRoot)}var Lt={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];Mt(i)&&Ct(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(t){var e=r[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(t){var r=e.elements[t],i=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce(function(t,e){return t[e]="",t},{});Mt(r)&&Ct(r)&&(Object.assign(r.style,o),Object.keys(i).forEach(function(t){r.removeAttribute(t)}))})}},requires:["computeStyles"]};function jt(t){return t.split("-")[0]}var Pt=Math.max,Dt=Math.min,zt=Math.round;function Bt(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function It(){return!/^((?!chrome|android).)*safari/i.test(Bt())}function qt(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t.getBoundingClientRect(),i=1,o=1;e&&Mt(t)&&(i=t.offsetWidth>0&&zt(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&zt(r.height)/t.offsetHeight||1);var s=(Tt(t)?Nt(t):window).visualViewport,a=!It()&&n,c=(r.left+(a&&s?s.offsetLeft:0))/i,l=(r.top+(a&&s?s.offsetTop:0))/o,u=r.width/i,f=r.height/o;return{width:u,height:f,top:l,right:c+u,bottom:l+f,left:c,x:c,y:l}}function Ht(t){var e=qt(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function Rt(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&St(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ft(t){return Nt(t).getComputedStyle(t)}function Vt(t){return["table","td","th"].indexOf(Ct(t))>=0}function Yt(t){return((Tt(t)?t.ownerDocument:t.document)||window.document).documentElement}function Wt(t){return"html"===Ct(t)?t:t.assignedSlot||t.parentNode||(St(t)?t.host:null)||Yt(t)}function Xt(t){return Mt(t)&&"fixed"!==Ft(t).position?t.offsetParent:null}function Ut(t){for(var e=Nt(t),n=Xt(t);n&&Vt(n)&&"static"===Ft(n).position;)n=Xt(n);return n&&("html"===Ct(n)||"body"===Ct(n)&&"static"===Ft(n).position)?e:n||function(t){var e=/firefox/i.test(Bt());if(/Trident/i.test(Bt())&&Mt(t)&&"fixed"===Ft(t).position)return null;var n=Wt(t);for(St(n)&&(n=n.host);Mt(n)&&["html","body"].indexOf(Ct(n))<0;){var r=Ft(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||e&&"filter"===r.willChange||e&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(t)||e}function Kt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function $t(t,e,n){return Pt(t,Dt(e,n))}function Qt(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Gt(t,e){return e.reduce(function(e,n){return e[n]=t,e},{})}var Jt={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=jt(n.placement),c=Kt(a),l=[st,ot].indexOf(a)>=0?"height":"width";if(o&&s){var u=function(t,e){return Qt("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Gt(t,ct))}(i.padding,n),f=Ht(o),h="y"===c?rt:st,p="y"===c?it:ot,d=n.rects.reference[l]+n.rects.reference[c]-s[c]-n.rects.popper[l],g=s[c]-n.rects.reference[c],m=Ut(o),v=m?"y"===c?m.clientHeight||0:m.clientWidth||0:0,y=d/2-g/2,_=u[h],w=v-f[l]-u[p],b=v/2-f[l]/2+y,x=$t(_,b,w),E=c;n.modifiersData[r]=((e={})[E]=x,e.centerOffset=x-b,e)}},effect:function(t){var e=t.state,n=t.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r)))&&Rt(e.elements.popper,r)&&(e.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zt(t){return t.split("-")[1]}var te={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ee(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,s=t.offsets,a=t.position,c=t.gpuAcceleration,l=t.adaptive,u=t.roundOffsets,f=t.isFixed,h=s.x,p=void 0===h?0:h,d=s.y,g=void 0===d?0:d,m="function"==typeof u?u({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),_=st,w=rt,b=window;if(l){var x=Ut(n),E="clientHeight",A="clientWidth";if(x===Nt(n)&&"static"!==Ft(x=Yt(n)).position&&"absolute"===a&&(E="scrollHeight",A="scrollWidth"),i===rt||(i===st||i===ot)&&o===ut)w=it,g-=(f&&x===b&&b.visualViewport?b.visualViewport.height:x[E])-r.height,g*=c?1:-1;if(i===st||(i===rt||i===it)&&o===ut)_=ot,p-=(f&&x===b&&b.visualViewport?b.visualViewport.width:x[A])-r.width,p*=c?1:-1}var k,O=Object.assign({position:a},l&&te),C=!0===u?function(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:zt(n*i)/i||0,y:zt(r*i)/i||0}}({x:p,y:g},Nt(n)):{x:p,y:g};return p=C.x,g=C.y,c?Object.assign({},O,((k={})[w]=y?"0":"",k[_]=v?"0":"",k.transform=(b.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",k)):Object.assign({},O,((e={})[w]=y?g+"px":"",e[_]=v?p+"px":"",e.transform="",e))}var ne={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,c=void 0===a||a,l={placement:jt(e.placement),variation:Zt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,ee(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,ee(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},re={passive:!0};var ie={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=void 0===i||i,s=r.resize,a=void 0===s||s,c=Nt(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&l.forEach(function(t){t.addEventListener("scroll",n.update,re)}),a&&c.addEventListener("resize",n.update,re),function(){o&&l.forEach(function(t){t.removeEventListener("scroll",n.update,re)}),a&&c.removeEventListener("resize",n.update,re)}},data:{}},oe={left:"right",right:"left",bottom:"top",top:"bottom"};function se(t){return t.replace(/left|right|bottom|top/g,function(t){return oe[t]})}var ae={start:"end",end:"start"};function ce(t){return t.replace(/start|end/g,function(t){return ae[t]})}function le(t){var e=Nt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ue(t){return qt(Yt(t)).left+le(t).scrollLeft}function fe(t){var e=Ft(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function he(t){return["html","body","#document"].indexOf(Ct(t))>=0?t.ownerDocument.body:Mt(t)&&fe(t)?t:he(Wt(t))}function pe(t,e){var n;void 0===e&&(e=[]);var r=he(t),i=r===(null==(n=t.ownerDocument)?void 0:n.body),o=Nt(r),s=i?[o].concat(o.visualViewport||[],fe(r)?r:[]):r,a=e.concat(s);return i?a:a.concat(pe(Wt(s)))}function de(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ge(t,e,n){return e===ht?de(function(t,e){var n=Nt(t),r=Yt(t),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,c=0;if(i){o=i.width,s=i.height;var l=It();(l||!l&&"fixed"===e)&&(a=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:a+ue(t),y:c}}(t,n)):Tt(e)?function(t,e){var n=qt(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):de(function(t){var e,n=Yt(t),r=le(t),i=null==(e=t.ownerDocument)?void 0:e.body,o=Pt(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Pt(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+ue(t),c=-r.scrollTop;return"rtl"===Ft(i||n).direction&&(a+=Pt(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:c}}(Yt(t)))}function me(t,e,n,r){var i="clippingParents"===e?function(t){var e=pe(Wt(t)),n=["absolute","fixed"].indexOf(Ft(t).position)>=0&&Mt(t)?Ut(t):t;return Tt(n)?e.filter(function(t){return Tt(t)&&Rt(t,n)&&"body"!==Ct(t)}):[]}(t):[].concat(e),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(e,n){var i=ge(t,n,r);return e.top=Pt(i.top,e.top),e.right=Dt(i.right,e.right),e.bottom=Dt(i.bottom,e.bottom),e.left=Pt(i.left,e.left),e},ge(t,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ve(t){var e,n=t.reference,r=t.element,i=t.placement,o=i?jt(i):null,s=i?Zt(i):null,a=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(o){case rt:e={x:a,y:n.y-r.height};break;case it:e={x:a,y:n.y+n.height};break;case ot:e={x:n.x+n.width,y:c};break;case st:e={x:n.x-r.width,y:c};break;default:e={x:n.x,y:n.y}}var l=o?Kt(o):null;if(null!=l){var u="y"===l?"height":"width";switch(s){case lt:e[l]=e[l]-(n[u]/2-r[u]/2);break;case ut:e[l]=e[l]+(n[u]/2-r[u]/2)}}return e}function ye(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=void 0===r?t.placement:r,o=n.strategy,s=void 0===o?t.strategy:o,a=n.boundary,c=void 0===a?ft:a,l=n.rootBoundary,u=void 0===l?ht:l,f=n.elementContext,h=void 0===f?pt:f,p=n.altBoundary,d=void 0!==p&&p,g=n.padding,m=void 0===g?0:g,v=Qt("number"!=typeof m?m:Gt(m,ct)),y=h===pt?dt:pt,_=t.rects.popper,w=t.elements[d?y:h],b=me(Tt(w)?w:w.contextElement||Yt(t.elements.popper),c,u,s),x=qt(t.elements.reference),E=ve({reference:x,element:_,placement:i}),A=de(Object.assign({},_,E)),k=h===pt?A:x,O={top:b.top-k.top+v.top,bottom:k.bottom-b.bottom+v.bottom,left:b.left-k.left+v.left,right:k.right-b.right+v.right},C=t.modifiersData.offset;if(h===pt&&C){var N=C[i];Object.keys(O).forEach(function(t){var e=[ot,it].indexOf(t)>=0?1:-1,n=[rt,it].indexOf(t)>=0?"y":"x";O[t]+=N[n]*e})}return O}function _e(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?mt:c,u=Zt(r),f=u?a?gt:gt.filter(function(t){return Zt(t)===u}):ct,h=f.filter(function(t){return l.indexOf(t)>=0});0===h.length&&(h=f);var p=h.reduce(function(e,n){return e[n]=ye(t,{placement:n,boundary:i,rootBoundary:o,padding:s})[jt(n)],e},{});return Object.keys(p).sort(function(t,e){return p[t]-p[e]})}var we={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0===s||s,c=n.fallbackPlacements,l=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,d=void 0===p||p,g=n.allowedAutoPlacements,m=e.options.placement,v=jt(m),y=c||(v===m||!d?[se(m)]:function(t){if(jt(t)===at)return[];var e=se(t);return[ce(t),e,ce(e)]}(m)),_=[m].concat(y).reduce(function(t,n){return t.concat(jt(n)===at?_e(e,{placement:n,boundary:u,rootBoundary:f,padding:l,flipVariations:d,allowedAutoPlacements:g}):n)},[]),w=e.rects.reference,b=e.rects.popper,x=new Map,E=!0,A=_[0],k=0;k<_.length;k++){var O=_[k],C=jt(O),N=Zt(O)===lt,T=[rt,it].indexOf(C)>=0,M=T?"width":"height",S=ye(e,{placement:O,boundary:u,rootBoundary:f,altBoundary:h,padding:l}),L=T?N?ot:st:N?it:rt;w[M]>b[M]&&(L=se(L));var j=se(L),P=[];if(o&&P.push(S[C]<=0),a&&P.push(S[L]<=0,S[j]<=0),P.every(function(t){return t})){A=O,E=!1;break}x.set(O,P)}if(E)for(var D=function(t){var e=_.find(function(e){var n=x.get(e);if(n)return n.slice(0,t).every(function(t){return t})});if(e)return A=e,"break"},z=d?3:1;z>0;z--){if("break"===D(z))break}e.placement!==A&&(e.modifiersData[r]._skip=!0,e.placement=A,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function be(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function xe(t){return[rt,ot,it,st].some(function(e){return t[e]>=0})}var Ee={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,s=ye(e,{elementContext:"reference"}),a=ye(e,{altBoundary:!0}),c=be(s,r),l=be(a,i,o),u=xe(c),f=xe(l);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}};var Ae={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=void 0===i?[0,0]:i,s=mt.reduce(function(t,n){return t[n]=function(t,e,n){var r=jt(t),i=[st,rt].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[st,ot].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,e.rects,o),t},{}),a=s[e.placement],c=a.x,l=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=l),e.modifiersData[r]=s}};var ke={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=ve({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})},data:{}};var Oe={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0!==s&&s,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,p=void 0===h||h,d=n.tetherOffset,g=void 0===d?0:d,m=ye(e,{boundary:c,rootBoundary:l,padding:f,altBoundary:u}),v=jt(e.placement),y=Zt(e.placement),_=!y,w=Kt(v),b="x"===w?"y":"x",x=e.modifiersData.popperOffsets,E=e.rects.reference,A=e.rects.popper,k="function"==typeof g?g(Object.assign({},e.rects,{placement:e.placement})):g,O="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),C=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,N={x:0,y:0};if(x){if(o){var T,M="y"===w?rt:st,S="y"===w?it:ot,L="y"===w?"height":"width",j=x[w],P=j+m[M],D=j-m[S],z=p?-A[L]/2:0,B=y===lt?E[L]:A[L],I=y===lt?-A[L]:-E[L],q=e.elements.arrow,H=p&&q?Ht(q):{width:0,height:0},R=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=R[M],V=R[S],Y=$t(0,E[L],H[L]),W=_?E[L]/2-z-Y-F-O.mainAxis:B-Y-F-O.mainAxis,X=_?-E[L]/2+z+Y+V+O.mainAxis:I+Y+V+O.mainAxis,U=e.elements.arrow&&Ut(e.elements.arrow),K=U?"y"===w?U.clientTop||0:U.clientLeft||0:0,$=null!=(T=null==C?void 0:C[w])?T:0,Q=j+X-$,G=$t(p?Dt(P,j+W-$-K):P,j,p?Pt(D,Q):D);x[w]=G,N[w]=G-j}if(a){var J,Z="x"===w?rt:st,tt="x"===w?it:ot,et=x[b],nt="y"===b?"height":"width",at=et+m[Z],ct=et-m[tt],ut=-1!==[rt,st].indexOf(v),ft=null!=(J=null==C?void 0:C[b])?J:0,ht=ut?at:et-E[nt]-A[nt]-ft+O.altAxis,pt=ut?et+E[nt]+A[nt]-ft-O.altAxis:ct,dt=p&&ut?function(t,e,n){var r=$t(t,e,n);return r>n?n:r}(ht,et,pt):$t(p?ht:at,et,p?pt:ct);x[b]=dt,N[b]=dt-et}e.modifiersData[r]=N}},requiresIfExists:["offset"]};function Ce(t,e,n){void 0===n&&(n=!1);var r,i,o=Mt(e),s=Mt(e)&&function(t){var e=t.getBoundingClientRect(),n=zt(e.width)/t.offsetWidth||1,r=zt(e.height)/t.offsetHeight||1;return 1!==n||1!==r}(e),a=Yt(e),c=qt(t,s,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==Ct(e)||fe(a))&&(l=(r=e)!==Nt(r)&&Mt(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:le(r)),Mt(e)?((u=qt(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=ue(a))),{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function Ne(t){var e=new Map,n=new Set,r=[];function i(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!n.has(t)){var r=e.get(t);r&&i(r)}}),r.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){n.has(t.name)||i(t)}),r}var Te={placement:"bottom",modifiers:[],strategy:"absolute"};function Me(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function Se(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,r=void 0===n?[]:n,i=e.defaultOptions,o=void 0===i?Te:i;return function(t,e,n){void 0===n&&(n=o);var i,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Te,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],l=!1,u={state:a,setOptions:function(n){var i="function"==typeof n?n(a.options):n;f(),a.options=Object.assign({},o,a.options,i),a.scrollParents={reference:Tt(t)?pe(t):t.contextElement?pe(t.contextElement):[],popper:pe(e)};var s,l,h=function(t){var e=Ne(t);return Ot.reduce(function(t,n){return t.concat(e.filter(function(t){return t.phase===n}))},[])}((s=[].concat(r,a.options.modifiers),l=s.reduce(function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t},{}),Object.keys(l).map(function(t){return l[t]})));return a.orderedModifiers=h.filter(function(t){return t.enabled}),a.orderedModifiers.forEach(function(t){var e=t.name,n=t.options,r=void 0===n?{}:n,i=t.effect;if("function"==typeof i){var o=i({state:a,name:e,instance:u,options:r}),s=function(){};c.push(o||s)}}),u.update()},forceUpdate:function(){if(!l){var t=a.elements,e=t.reference,n=t.popper;if(Me(e,n)){a.rects={reference:Ce(e,Ut(n),"fixed"===a.options.strategy),popper:Ht(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(t){return a.modifiersData[t.name]=Object.assign({},t.data)});for(var r=0;r<a.orderedModifiers.length;r++)if(!0!==a.reset){var i=a.orderedModifiers[r],o=i.fn,s=i.options,c=void 0===s?{}:s,f=i.name;"function"==typeof o&&(a=o({state:a,options:c,name:f,instance:u})||a)}else a.reset=!1,r=-1}}},update:(i=function(){return new Promise(function(t){u.forceUpdate(),t(a)})},function(){return s||(s=new Promise(function(t){Promise.resolve().then(function(){s=void 0,t(i())})})),s}),destroy:function(){f(),l=!0}};if(!Me(t,e))return u;function f(){c.forEach(function(t){return t()}),c=[]}return u.setOptions(n).then(function(t){!l&&n.onFirstUpdate&&n.onFirstUpdate(t)}),u}}var Le=Se({defaultModifiers:[ie,ke,ne,Lt,Ae,we,Oe,Jt,Ee]}),je=Object.freeze({__proto__:null,afterMain:xt,afterRead:_t,afterWrite:kt,applyStyles:Lt,arrow:Jt,auto:at,basePlacements:ct,beforeMain:wt,beforeRead:vt,beforeWrite:Et,bottom:it,clippingParents:ft,computeStyles:ne,createPopper:Le,detectOverflow:ye,end:ut,eventListeners:ie,flip:we,hide:Ee,left:st,main:bt,modifierPhases:Ot,offset:Ae,placements:mt,popper:pt,popperGenerator:Se,popperOffsets:ke,preventOverflow:Oe,read:yt,reference:dt,right:ot,start:lt,top:rt,variationPlacements:gt,viewport:ht,write:At});const Pe={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],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:[]},De=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),ze=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Be=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?!De.has(n)||Boolean(ze.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(n))};const Ie={allowList:Pe,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},qe={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},He={entry:"(string|element|function|null)",selector:"(string|element)"};class Re extends q{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Ie}static get DefaultType(){return qe}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content=D(D({},this._config.content),t),this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,n]of Object.entries(this._config.content))this._setContent(t,n,e);const e=t.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&e.classList.add(...n.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,n]of Object.entries(t))super._typeCheckConfig({selector:e,entry:n},He)}_setContent(t,e,n){const r=F.findOne(n,t);r&&((e=this._resolvePossibleFunction(e))?o(e)?this._putElementInTemplate(s(e),r):this._config.html?r.innerHTML=this._maybeSanitize(e):r.textContent=e:r.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,n){if(!t.length)return t;if(n&&"function"==typeof n)return n(t);const r=(new window.DOMParser).parseFromString(t,"text/html"),i=[].concat(...r.body.querySelectorAll("*"));for(const t of i){const n=t.nodeName.toLowerCase();if(!Object.keys(e).includes(n)){t.remove();continue}const r=[].concat(...t.attributes),i=[].concat(e["*"]||[],e[n]||[]);for(const e of r)Be(e,i)||t.removeAttribute(e.nodeName)}return r.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return p(t,[void 0,this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const Fe=new Set(["sanitize","allowList","sanitizeFn"]),Ve="fade",Ye="show",We=".tooltip-inner",Xe=".".concat("modal"),Ue="hide.bs.modal",Ke="hover",$e="focus",Qe="click",Ge={AUTO:"auto",TOP:"top",RIGHT:f()?"left":"right",BOTTOM:"bottom",LEFT:f()?"right":"left"},Je={allowList:Pe,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Ze={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class tn extends H{constructor(t,e){if(void 0===je)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Je}static get DefaultType(){return Ze}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),M.off(this._element.closest(Xe),Ue,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=M.trigger(this._element,this.constructor.eventName("show")),e=(a(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),M.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(Ye),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))M.on(t,"mouseover",c);this._queueCallback(()=>{M.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(M.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(Ye),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))M.off(t,"mouseover",c);this._activeTrigger[Qe]=!1,this._activeTrigger[$e]=!1,this._activeTrigger[Ke]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),M.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Ve,Ye),e.classList.add("bs-".concat(this.constructor.NAME,"-auto"));const n=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",n),this._isAnimated()&&e.classList.add(Ve),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Re(D(D({},this._config),{},{content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)})),this._templateFactory}_getContentForTemplate(){return{[We]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Ve)}_isShown(){return this.tip&&this.tip.classList.contains(Ye)}_createPopper(t){const e=p(this._config.placement,[this,t,this._element]),n=Ge[e.toUpperCase()];return Le(this._element,t,this._getPopperConfig(n))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return p(t,[this._element,this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:".".concat(this.constructor.NAME,"-arrow")}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return D(D({},e),p(this._config.popperConfig,[void 0,e]))}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)M.on(this._element,this.constructor.eventName("click"),this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger[Qe]=!(e._isShown()&&e._activeTrigger[Qe]),e.toggle()});else if("manual"!==e){const t=e===Ke?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=e===Ke?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");M.on(this._element,t,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?$e:Ke]=!0,e._enter()}),M.on(this._element,n,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?$e:Ke]=e._element.contains(t.relatedTarget),e._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},M.on(this._element.closest(Xe),Ue,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=I.getDataAttributes(this._element);for(const t of Object.keys(e))Fe.has(t)&&delete e[t];return t=D(D({},e),"object"==typeof t&&t?t:{}),t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:s(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,n]of Object.entries(this._config))this.constructor.Default[e]!==n&&(t[e]=n);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const e=tn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'.concat(t,'"'));e[t]()}})}}var en;h(tn);const nn=document.getElementById("toc-bar"),rn=document.getElementById("toc-solo-trigger"),on=document.getElementsByClassName("toc-trigger"),sn=document.getElementById("toc-popup"),an=document.getElementById("toc-popup-close"),cn="overflow-hidden",ln="closing";class un{static initBar(){new IntersectionObserver(t=>{t.forEach(t=>{nn.classList.toggle("invisible",t.isIntersecting)})},{rootMargin:"-".concat(L(un,this,hn)._,"px 0px 0px 0px")}).observe(rn),fn._=L(un,this,!1)}static listenAnchors(){[...document.getElementsByClassName("toc-link")].forEach(t=>{t.onclick=()=>this.hidePopup()})}static refresh(){L(un,this,fn)._&&this.initComponents(),tocbot.refresh(this.options),this.listenAnchors()}static get popupOpened(){return sn.open}static showPopup(){this.lockScroll(!0),sn.showModal();sn.querySelector("li.is-active-li").scrollIntoView({block:"center"})}static hidePopup(){sn.toggleAttribute(ln),sn.addEventListener("animationend",()=>{sn.toggleAttribute(ln),sn.close()},{once:!0}),this.lockScroll(!1)}static lockScroll(t){document.documentElement.classList.toggle(cn,t),document.body.classList.toggle(cn,t)}static clickBackdrop(t){if(sn.hasAttribute(ln))return;const e=t.target.getBoundingClientRect();(t.clientX<e.left||t.clientX>e.right||t.clientY<e.top||t.clientY>e.bottom)&&this.hidePopup()}static initComponents(){this.initBar(),[...on].forEach(t=>{t.onclick=()=>this.showPopup()}),sn.onclick=t=>this.clickBackdrop(t),an.onclick=()=>this.hidePopup(),sn.oncancel=t=>{t.preventDefault(),this.hidePopup()}}static init(){tocbot.init(this.options),this.listenAnchors(),this.initComponents()}}var fn={_:!0},hn={_:48};j(un,"options",{tocSelector:"#toc-popup-content",contentSelector:".content",ignoreSelector:"[data-toc-skip]",headingSelector:"h2, h3, h4",orderedList:!1,scrollSmooth:!1,collapseDepth:4,headingsOffset:L(en=un,en,hn)._});j(class{static refresh(){tocbot.refresh(this.options)}static init(){tocbot.init(this.options)}},"options",{tocSelector:"#toc",contentSelector:".content",ignoreSelector:"[data-toc-skip]",headingSelector:"h2, h3, h4",orderedList:!1,scrollSmooth:!1,headingsOffset:32}),matchMedia("(min-width: 1200px)"),Theme.getThemeMapper("default","dark");const pn=document.getElementById("mode-toggle");const dn=document.getElementById("sidebar"),gn=document.getElementById("sidebar-trigger"),mn=document.getElementById("mask");class vn{static toggle(){yn._=L(vn,this,!L(vn,this,yn)._),document.body.toggleAttribute("sidebar-display",L(vn,this,yn)._),dn.classList.toggle("z-2",L(vn,this,yn)._),mn.classList.toggle("d-none",!L(vn,this,yn)._)}}var yn={_:!1};const _n=document.getElementById("sidebar-trigger"),wn=document.getElementById("search-trigger"),bn=document.getElementById("search-cancel"),xn=document.querySelectorAll("#main-wrapper>.container>.row"),En=document.getElementById("topbar-title"),An=document.getElementById("search"),kn=document.getElementById("search-result-wrapper"),On=document.getElementById("search-results"),Cn=document.getElementById("search-input"),Nn=document.getElementById("search-hints"),Tn="d-block",Mn="d-none",Sn="input-focus",Ln="d-flex";class jn{static on(){_n.classList.add(Mn),En.classList.add(Mn),wn.classList.add(Mn),An.classList.add(Ln),bn.classList.add(Tn)}static off(){bn.classList.remove(Tn),An.classList.remove(Ln),_n.classList.remove(Mn),En.classList.remove(Mn),wn.classList.remove(Mn)}}class Pn{static on(){this.resultVisible||(kn.classList.remove(Mn),xn.forEach(t=>{t.classList.add(Mn)}),this.resultVisible=!0)}static off(){this.resultVisible&&(On.innerHTML="",Nn.classList.contains(Mn)&&Nn.classList.remove(Mn),kn.classList.add(Mn),xn.forEach(t=>{t.classList.remove(Mn)}),Cn.textContent="",this.resultVisible=!1)}}function Dn(){return bn.classList.contains(Tn)}j(Pn,"resultVisible",!1);var zn={value:()=>{}};function Bn(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new In(r)}function In(t){this._=t}function qn(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function Hn(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=zn,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}In.prototype=Bn.prototype={constructor:In,on:function(t,e){var n,r,i=this._,o=(r=i,(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),s=-1,a=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++s<a;)if(n=(t=o[s]).type)i[n]=Hn(i[n],t.name,e);else if(null==e)for(n in i)i[n]=Hn(i[n],t.name,null);return this}for(;++s<a;)if((n=(t=o[s]).type)&&(n=qn(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new In(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};var Rn="http://www.w3.org/1999/xhtml",Fn={svg:"http://www.w3.org/2000/svg",xhtml:Rn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Vn(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Fn.hasOwnProperty(e)?{space:Fn[e],local:t}:t}function Yn(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Rn&&e.documentElement.namespaceURI===Rn?e.createElement(t):e.createElementNS(n,t)}}function Wn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Xn(t){var e=Vn(t);return(e.local?Wn:Yn)(e)}function Un(){}function Kn(t){return null==t?Un:function(){return this.querySelector(t)}}function $n(){return[]}function Qn(t){return null==t?$n:function(){return this.querySelectorAll(t)}}function Gn(t){return function(){return function(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}(t.apply(this,arguments))}}function Jn(t){return function(){return this.matches(t)}}function Zn(t){return function(e){return e.matches(t)}}var tr=Array.prototype.find;function er(){return this.firstElementChild}var nr=Array.prototype.filter;function rr(){return Array.from(this.children)}function ir(t){return new Array(t.length)}function or(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function sr(t,e,n,r,i,o){for(var s,a=0,c=e.length,l=o.length;a<l;++a)(s=e[a])?(s.__data__=o[a],r[a]=s):n[a]=new or(t,o[a]);for(;a<c;++a)(s=e[a])&&(i[a]=s)}function ar(t,e,n,r,i,o,s){var a,c,l,u=new Map,f=e.length,h=o.length,p=new Array(f);for(a=0;a<f;++a)(c=e[a])&&(p[a]=l=s.call(c,c.__data__,a,e)+"",u.has(l)?i[a]=c:u.set(l,c));for(a=0;a<h;++a)l=s.call(t,o[a],a,o)+"",(c=u.get(l))?(r[a]=c,c.__data__=o[a],u.delete(l)):n[a]=new or(t,o[a]);for(a=0;a<f;++a)(c=e[a])&&u.get(p[a])===c&&(i[a]=c)}function cr(t){return t.__data__}function lr(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function ur(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function fr(t){return function(){this.removeAttribute(t)}}function hr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function pr(t,e){return function(){this.setAttribute(t,e)}}function dr(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function gr(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function mr(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function vr(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function yr(t){return function(){this.style.removeProperty(t)}}function _r(t,e,n){return function(){this.style.setProperty(t,e,n)}}function wr(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function br(t,e){return t.style.getPropertyValue(e)||vr(t).getComputedStyle(t,null).getPropertyValue(e)}function xr(t){return function(){delete this[t]}}function Er(t,e){return function(){this[t]=e}}function Ar(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function kr(t){return t.trim().split(/^|\s+/)}function Or(t){return t.classList||new Cr(t)}function Cr(t){this._node=t,this._names=kr(t.getAttribute("class")||"")}function Nr(t,e){for(var n=Or(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Tr(t,e){for(var n=Or(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function Mr(t){return function(){Nr(this,t)}}function Sr(t){return function(){Tr(this,t)}}function Lr(t,e){return function(){(e.apply(this,arguments)?Nr:Tr)(this,t)}}function jr(){this.textContent=""}function Pr(t){return function(){this.textContent=t}}function Dr(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function zr(){this.innerHTML=""}function Br(t){return function(){this.innerHTML=t}}function Ir(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function qr(){this.nextSibling&&this.parentNode.appendChild(this)}function Hr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Rr(){return null}function Fr(){var t=this.parentNode;t&&t.removeChild(this)}function Vr(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Yr(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Wr(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function Xr(t,e,n){return function(){var r,i=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var s=0,a=i.length;s<a;++s)if((r=i[s]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=e);this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function Ur(t,e,n){var r=vr(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function Kr(t,e){return function(){return Ur(this,t,e)}}function $r(t,e){return function(){return Ur(this,t,e.apply(this,arguments))}}or.prototype={constructor:or,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},Cr.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Qr=[null];function Gr(t,e){this._groups=t,this._parents=e}function Jr(){return new Gr([[document.documentElement]],Qr)}function Zr(t){return"string"==typeof t?new Gr([[document.querySelector(t)]],[document.documentElement]):new Gr([[t]],Qr)}function ti(t,e){if(t=function(t){let e;for(;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}Gr.prototype=Jr.prototype={constructor:Gr,select:function(t){"function"!=typeof t&&(t=Kn(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,s,a=e[i],c=a.length,l=r[i]=new Array(c),u=0;u<c;++u)(o=a[u])&&(s=t.call(o,o.__data__,u,a))&&("__data__"in o&&(s.__data__=o.__data__),l[u]=s);return new Gr(r,this._parents)},selectAll:function(t){t="function"==typeof t?Gn(t):Qn(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var s,a=e[o],c=a.length,l=0;l<c;++l)(s=a[l])&&(r.push(t.call(s,s.__data__,l,a)),i.push(s));return new Gr(r,i)},selectChild:function(t){return this.select(null==t?er:function(t){return function(){return tr.call(this.children,t)}}("function"==typeof t?t:Zn(t)))},selectChildren:function(t){return this.selectAll(null==t?rr:function(t){return function(){return nr.call(this.children,t)}}("function"==typeof t?t:Zn(t)))},filter:function(t){"function"!=typeof t&&(t=Jn(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,s=e[i],a=s.length,c=r[i]=[],l=0;l<a;++l)(o=s[l])&&t.call(o,o.__data__,l,s)&&c.push(o);return new Gr(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,cr);var n=e?ar:sr,r=this._parents,i=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var o=i.length,s=new Array(o),a=new Array(o),c=new Array(o),l=0;l<o;++l){var u=r[l],f=i[l],h=f.length,p=lr(t.call(u,u&&u.__data__,l,r)),d=p.length,g=a[l]=new Array(d),m=s[l]=new Array(d);n(u,f,g,m,c[l]=new Array(h),p,e);for(var v,y,_=0,w=0;_<d;++_)if(v=g[_]){for(_>=w&&(w=_+1);!(y=m[w])&&++w<d;);v._next=y||null}}return(s=new Gr(s,r))._enter=a,s._exit=c,s},enter:function(){return new Gr(this._enter||this._groups.map(ir),this._parents)},exit:function(){return new Gr(this._exit||this._groups.map(ir),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,s=Math.min(i,o),a=new Array(i),c=0;c<s;++c)for(var l,u=n[c],f=r[c],h=u.length,p=a[c]=new Array(h),d=0;d<h;++d)(l=u[d]||f[d])&&(p[d]=l);for(;c<i;++c)a[c]=n[c];return new Gr(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,s=i[o];--o>=0;)(r=i[o])&&(s&&4^r.compareDocumentPosition(s)&&s.parentNode.insertBefore(r,s),s=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=ur);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s,a=n[o],c=a.length,l=i[o]=new Array(c),u=0;u<c;++u)(s=a[u])&&(l[u]=s);l.sort(e)}return new Gr(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],s=0,a=o.length;s<a;++s)(i=o[s])&&t.call(i,i.__data__,s,o);return this},attr:function(t,e){var n=Vn(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?hr:fr:"function"==typeof e?n.local?mr:gr:n.local?dr:pr)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?yr:"function"==typeof e?wr:_r)(t,e,null==n?"":n)):br(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?xr:"function"==typeof e?Ar:Er)(t,e)):this.node()[t]},classed:function(t,e){var n=kr(t+"");if(arguments.length<2){for(var r=Or(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?Lr:e?Mr:Sr)(n,e))},text:function(t){return arguments.length?this.each(null==t?jr:("function"==typeof t?Dr:Pr)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?zr:("function"==typeof t?Ir:Br)(t)):this.node().innerHTML},raise:function(){return this.each(qr)},lower:function(){return this.each(Hr)},append:function(t){var e="function"==typeof t?t:Xn(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:Xn(t),r=null==e?Rr:"function"==typeof e?e:Kn(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(Fr)},clone:function(t){return this.select(t?Yr:Vr)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=function(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}(t+""),s=o.length;if(!(arguments.length<2)){for(a=e?Xr:Wr,r=0;r<s;++r)this.each(a(o[r],e,n));return this}var a=this.node().__on;if(a)for(var c,l=0,u=a.length;l<u;++l)for(r=0,c=a[l];r<s;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,e){return this.each(("function"==typeof e?$r:Kr)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,s=i.length;o<s;++o)(r=i[o])&&(yield r)}};const ei={passive:!1},ni={capture:!0,passive:!1};function ri(t){t.stopImmediatePropagation()}function ii(t){t.preventDefault(),t.stopImmediatePropagation()}function oi(t){var e=t.document.documentElement,n=Zr(t).on("dragstart.drag",ii,ni);"onselectstart"in e?n.on("selectstart.drag",ii,ni):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function si(t,e){var n=t.document.documentElement,r=Zr(t).on("dragstart.drag",null);e&&(r.on("click.drag",ii,ni),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var ai=t=>()=>t;function ci(t,e){let{sourceEvent:n,subject:r,target:i,identifier:o,active:s,x:a,y:c,dx:l,dy:u,dispatch:f}=e;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:s,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:c,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:f}})}function li(t){return!t.ctrlKey&&!t.button}function ui(){return this.parentNode}function fi(t,e){return null==e?{x:t.x,y:t.y}:e}function hi(){return navigator.maxTouchPoints||"ontouchstart"in this}function pi(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function di(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function gi(){}ci.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var mi=.7,vi=1/mi,yi="\\s*([+-]?\\d+)\\s*",_i="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",bi=/^#([0-9a-f]{3,8})$/,xi=new RegExp("^rgb\\(".concat(yi,",").concat(yi,",").concat(yi,"\\)$")),Ei=new RegExp("^rgb\\(".concat(wi,",").concat(wi,",").concat(wi,"\\)$")),Ai=new RegExp("^rgba\\(".concat(yi,",").concat(yi,",").concat(yi,",").concat(_i,"\\)$")),ki=new RegExp("^rgba\\(".concat(wi,",").concat(wi,",").concat(wi,",").concat(_i,"\\)$")),Oi=new RegExp("^hsl\\(".concat(_i,",").concat(wi,",").concat(wi,"\\)$")),Ci=new RegExp("^hsla\\(".concat(_i,",").concat(wi,",").concat(wi,",").concat(_i,"\\)$")),Ni={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ti(){return this.rgb().formatHex()}function Mi(){return this.rgb().formatRgb()}function Si(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=bi.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Li(e):3===n?new Di(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ji(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ji(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=xi.exec(t))?new Di(e[1],e[2],e[3],1):(e=Ei.exec(t))?new Di(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Ai.exec(t))?ji(e[1],e[2],e[3],e[4]):(e=ki.exec(t))?ji(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Oi.exec(t))?Ri(e[1],e[2]/100,e[3]/100,1):(e=Ci.exec(t))?Ri(e[1],e[2]/100,e[3]/100,e[4]):Ni.hasOwnProperty(t)?Li(Ni[t]):"transparent"===t?new Di(NaN,NaN,NaN,0):null}function Li(t){return new Di(t>>16&255,t>>8&255,255&t,1)}function ji(t,e,n,r){return r<=0&&(t=e=n=NaN),new Di(t,e,n,r)}function Pi(t,e,n,r){return 1===arguments.length?((i=t)instanceof gi||(i=Si(i)),i?new Di((i=i.rgb()).r,i.g,i.b,i.opacity):new Di):new Di(t,e,n,null==r?1:r);var i}function Di(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function zi(){return"#".concat(Hi(this.r)).concat(Hi(this.g)).concat(Hi(this.b))}function Bi(){const t=Ii(this.opacity);return"".concat(1===t?"rgb(":"rgba(").concat(qi(this.r),", ").concat(qi(this.g),", ").concat(qi(this.b)).concat(1===t?")":", ".concat(t,")"))}function Ii(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function qi(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Hi(t){return((t=qi(t))<16?"0":"")+t.toString(16)}function Ri(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Vi(t,e,n,r)}function Fi(t){if(t instanceof Vi)return new Vi(t.h,t.s,t.l,t.opacity);if(t instanceof gi||(t=Si(t)),!t)return new Vi;if(t instanceof Vi)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,a=o-i,c=(o+i)/2;return a?(s=e===o?(n-r)/a+6*(n<r):n===o?(r-e)/a+2:(e-n)/a+4,a/=c<.5?o+i:2-o-i,s*=60):a=c>0&&c<1?0:s,new Vi(s,a,c,t.opacity)}function Vi(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Yi(t){return(t=(t||0)%360)<0?t+360:t}function Wi(t){return Math.max(0,Math.min(1,t||0))}function Xi(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}pi(gi,Si,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Ti,formatHex:Ti,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Fi(this).formatHsl()},formatRgb:Mi,toString:Mi}),pi(Di,Pi,di(gi,{brighter(t){return t=null==t?vi:Math.pow(vi,t),new Di(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?mi:Math.pow(mi,t),new Di(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Di(qi(this.r),qi(this.g),qi(this.b),Ii(this.opacity))},displayable(){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:zi,formatHex:zi,formatHex8:function(){return"#".concat(Hi(this.r)).concat(Hi(this.g)).concat(Hi(this.b)).concat(Hi(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:Bi,toString:Bi})),pi(Vi,function(t,e,n,r){return 1===arguments.length?Fi(t):new Vi(t,e,n,null==r?1:r)},di(gi,{brighter(t){return t=null==t?vi:Math.pow(vi,t),new Vi(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?mi:Math.pow(mi,t),new Vi(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Di(Xi(t>=240?t-240:t+120,i,r),Xi(t,i,r),Xi(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Vi(Yi(this.h),Wi(this.s),Wi(this.l),Ii(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Ii(this.opacity);return"".concat(1===t?"hsl(":"hsla(").concat(Yi(this.h),", ").concat(100*Wi(this.s),"%, ").concat(100*Wi(this.l),"%").concat(1===t?")":", ".concat(t,")"))}}));var Ui=t=>()=>t;function Ki(t){return 1===(t=+t)?$i:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Ui(isNaN(e)?n:e)}}function $i(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Ui(isNaN(t)?e:t)}var Qi=function t(e){var n=Ki(e);function r(t,e){var r=n((t=Pi(t)).r,(e=Pi(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),s=$i(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=s(e),t+""}}return r.gamma=t,r}(1);function Gi(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var Ji=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zi=new RegExp(Ji.source,"g");function to(t,e){var n,r,i,o=Ji.lastIndex=Zi.lastIndex=0,s=-1,a=[],c=[];for(t+="",e+="";(n=Ji.exec(t))&&(r=Zi.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),a[s]?a[s]+=i:a[++s]=i),(n=n[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,c.push({i:s,x:Gi(n,r)})),o=Zi.lastIndex;return o<e.length&&(i=e.slice(o),a[s]?a[s]+=i:a[++s]=i),a.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,r=0;r<e;++r)a[(n=c[r]).i]=n.x(t);return a.join("")})}var eo,no=180/Math.PI,ro={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function io(t,e,n,r,i,o){var s,a,c;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,c/=a),t*r<e*n&&(t=-t,e=-e,c=-c,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*no,skewX:Math.atan(c)*no,scaleX:s,scaleY:a}}function oo(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,s){var a=[],c=[];return o=t(o),s=t(s),function(t,r,i,o,s,a){if(t!==i||r!==o){var c=s.push("translate(",null,e,null,n);a.push({i:c-4,x:Gi(t,i)},{i:c-2,x:Gi(r,o)})}else(i||o)&&s.push("translate("+i+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,a,c),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Gi(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,s.rotate,a,c),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Gi(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,s.skewX,a,c),function(t,e,n,r,o,s){if(t!==n||e!==r){var a=o.push(i(o)+"scale(",null,",",null,")");s.push({i:a-4,x:Gi(t,n)},{i:a-2,x:Gi(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,a,c),o=s=null,function(t){for(var e,n=-1,r=c.length;++n<r;)a[(e=c[n]).i]=e.x(t);return a.join("")}}}var so=oo(function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?ro:io(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),ao=oo(function(t){return null==t?ro:(eo||(eo=document.createElementNS("http://www.w3.org/2000/svg","g")),eo.setAttribute("transform",t),(t=eo.transform.baseVal.consolidate())?io((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):ro)},", ",")",")");function co(t){return((t=Math.exp(t))+1/t)/2}var lo,uo,fo=function t(e,n,r){function i(t,i){var o,s,a=t[0],c=t[1],l=t[2],u=i[0],f=i[1],h=i[2],p=u-a,d=f-c,g=p*p+d*d;if(g<1e-12)s=Math.log(h/l)/e,o=function(t){return[a+t*p,c+t*d,l*Math.exp(e*t*s)]};else{var m=Math.sqrt(g),v=(h*h-l*l+r*g)/(2*l*n*m),y=(h*h-l*l-r*g)/(2*h*n*m),_=Math.log(Math.sqrt(v*v+1)-v),w=Math.log(Math.sqrt(y*y+1)-y);s=(w-_)/e,o=function(t){var r=t*s,i=co(_),o=l/(n*m)*(i*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(e*r+_)-function(t){return((t=Math.exp(t))-1/t)/2}(_));return[a+o*p,c+o*d,l*i/co(e*r+_)]}}return o.duration=1e3*s*e/Math.SQRT2,o}return i.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},i}(Math.SQRT2,2,4),ho=0,po=0,go=0,mo=0,vo=0,yo=0,_o="object"==typeof performance&&performance.now?performance:Date,wo="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function bo(){return vo||(wo(xo),vo=_o.now()+yo)}function xo(){vo=0}function Eo(){this._call=this._time=this._next=null}function Ao(t,e,n){var r=new Eo;return r.restart(t,e,n),r}function ko(){vo=(mo=_o.now())+yo,ho=po=0;try{!function(){bo(),++ho;for(var t,e=lo;e;)(t=vo-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ho}()}finally{ho=0,function(){var t,e,n=lo,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:lo=e);uo=t,Co(r)}(),vo=0}}function Oo(){var t=_o.now(),e=t-mo;e>1e3&&(yo-=e,mo=t)}function Co(t){ho||(po&&(po=clearTimeout(po)),t-vo>24?(t<1/0&&(po=setTimeout(ko,t-_o.now()-yo)),go&&(go=clearInterval(go))):(go||(mo=_o.now(),go=setInterval(Oo,1e3)),ho=1,wo(ko)))}function No(t,e,n){var r=new Eo;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r}Eo.prototype=Ao.prototype={constructor:Eo,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?bo():+n)+(null==e?0:+e),this._next||uo===this||(uo?uo._next=this:lo=this,uo=this),this._call=t,this._time=n,Co()},stop:function(){this._call&&(this._call=null,this._time=1/0,Co())}};var To=Bn("start","end","cancel","interrupt"),Mo=[];function So(t,e,n,r,i,o){var s=t.__transition;if(s){if(n in s)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(t){n.state=1,n.timer.restart(s,n.delay,n.time),n.delay<=t&&s(t-n.delay)}function s(o){var l,u,f,h;if(1!==n.state)return c();for(l in i)if((h=i[l]).name===n.name){if(3===h.state)return No(s);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[l]):+l<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[l])}if(No(function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(o))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(f=n.tween.length),l=0,u=-1;l<f;++l)(h=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(r[++u]=h);r.length=u+1}}function a(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(c),n.state=5,1),o=-1,s=r.length;++o<s;)r[o].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Ao(o,0,n.time)}(t,n,{name:e,index:r,group:i,on:To,tween:Mo,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function Lo(t,e){var n=Po(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function jo(t,e){var n=Po(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Po(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Do(t,e){var n,r,i,o=t.__transition,s=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):s=!1;s&&delete t.__transition}}function zo(t,e){var n,r;return function(){var i=jo(this,t),o=i.tween;if(o!==n)for(var s=0,a=(r=n=o).length;s<a;++s)if(r[s].name===e){(r=r.slice()).splice(s,1);break}i.tween=r}}function Bo(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=jo(this,t),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:e,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===e){i[c]=a;break}c===l&&i.push(a)}o.tween=i}}function Io(t,e,n){var r=t._id;return t.each(function(){var t=jo(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return Po(t,r).value[e]}}function qo(t,e){var n;return("number"==typeof e?Gi:e instanceof Si?Qi:(n=Si(e))?(e=n,Qi):to)(t,e)}function Ho(t){return function(){this.removeAttribute(t)}}function Ro(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Fo(t,e,n){var r,i,o=n+"";return function(){var s=this.getAttribute(t);return s===o?null:s===r?i:i=e(r=s,n)}}function Vo(t,e,n){var r,i,o=n+"";return function(){var s=this.getAttributeNS(t.space,t.local);return s===o?null:s===r?i:i=e(r=s,n)}}function Yo(t,e,n){var r,i,o;return function(){var s,a,c=n(this);if(null!=c)return(s=this.getAttribute(t))===(a=c+"")?null:s===r&&a===i?o:(i=a,o=e(r=s,c));this.removeAttribute(t)}}function Wo(t,e,n){var r,i,o;return function(){var s,a,c=n(this);if(null!=c)return(s=this.getAttributeNS(t.space,t.local))===(a=c+"")?null:s===r&&a===i?o:(i=a,o=e(r=s,c));this.removeAttributeNS(t.space,t.local)}}function Xo(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,i)),n}return i._value=e,i}function Uo(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,i)),n}return i._value=e,i}function Ko(t,e){return function(){Lo(this,t).delay=+e.apply(this,arguments)}}function $o(t,e){return e=+e,function(){Lo(this,t).delay=e}}function Qo(t,e){return function(){jo(this,t).duration=+e.apply(this,arguments)}}function Go(t,e){return e=+e,function(){jo(this,t).duration=e}}var Jo=Jr.prototype.constructor;function Zo(t){return function(){this.style.removeProperty(t)}}var ts=0;function es(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function ns(){return++ts}var rs=Jr.prototype;es.prototype={constructor:es,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Kn(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a,c,l=r[s],u=l.length,f=o[s]=new Array(u),h=0;h<u;++h)(a=l[h])&&(c=t.call(a,a.__data__,h,l))&&("__data__"in a&&(c.__data__=a.__data__),f[h]=c,So(f[h],e,n,h,f,Po(a,n)));return new es(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Qn(t));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var c,l=r[a],u=l.length,f=0;f<u;++f)if(c=l[f]){for(var h,p=t.call(c,c.__data__,f,l),d=Po(c,n),g=0,m=p.length;g<m;++g)(h=p[g])&&So(h,e,n,g,p,d);o.push(p),s.push(c)}return new es(o,s,e,n)},selectChild:rs.selectChild,selectChildren:rs.selectChildren,filter:function(t){"function"!=typeof t&&(t=Jn(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,s=e[i],a=s.length,c=r[i]=[],l=0;l<a;++l)(o=s[l])&&t.call(o,o.__data__,l,s)&&c.push(o);return new es(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var c,l=e[a],u=n[a],f=l.length,h=s[a]=new Array(f),p=0;p<f;++p)(c=l[p]||u[p])&&(h[p]=c);for(;a<r;++a)s[a]=e[a];return new es(s,this._parents,this._name,this._id)},selection:function(){return new Jo(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=ns(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],c=a.length,l=0;l<c;++l)if(s=a[l]){var u=Po(s,e);So(s,t,n,l,a,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new es(r,this._parents,t,n)},call:rs.call,nodes:rs.nodes,node:rs.node,size:rs.size,empty:rs.empty,each:rs.each,on:function(t,e){var n=this._id;return arguments.length<2?Po(this.node(),n).on.on(t):this.each(function(t,e,n){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?Lo:jo;return function(){var s=o(this,t),a=s.on;a!==r&&(i=(r=a).copy()).on(e,n),s.on=i}}(n,t,e))},attr:function(t,e){var n=Vn(t),r="transform"===n?ao:qo;return this.attrTween(t,"function"==typeof e?(n.local?Wo:Yo)(n,r,Io(this,"attr."+t,e)):null==e?(n.local?Ro:Ho)(n):(n.local?Vo:Fo)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=Vn(t);return this.tween(n,(r.local?Xo:Uo)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?so:qo;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=br(this,t),s=(this.style.removeProperty(t),br(this,t));return o===s?null:o===n&&s===r?i:i=e(n=o,r=s)}}(t,r)).on("end.style."+t,Zo(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,o;return function(){var s=br(this,t),a=n(this),c=a+"";return null==a&&(this.style.removeProperty(t),c=a=br(this,t)),s===c?null:s===r&&c===i?o:(i=c,o=e(r=s,a))}}(t,r,Io(this,"style."+t,e))).each(function(t,e){var n,r,i,o,s="style."+e,a="end."+s;return function(){var c=jo(this,t),l=c.on,u=null==c.value[s]?o||(o=Zo(e)):void 0;l===n&&i===u||(r=(n=l).copy()).on(a,i=u),c.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,o=n+"";return function(){var s=br(this,t);return s===o?null:s===r?i:i=e(r=s,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}(t,o,n)),r}return o._value=e,o}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Io(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){return function(e){this.textContent=t.call(this,e)}}(r)),e}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Po(this.node(),n).tween,o=0,s=i.length;o<s;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?zo:Bo)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Ko:$o)(e,t)):Po(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Qo:Go)(e,t)):Po(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){jo(this,t).ease=e}}(e,t)):Po(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;jo(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var a={value:s},c={value:function(){0===--i&&o()}};n.each(function(){var n=jo(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(c)),n.on=e}),0===i&&o()})},[Symbol.iterator]:rs[Symbol.iterator]};var is={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function os(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error("transition ".concat(e," not found"));return n}function ss(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o,s,a,c,l,u,f,h,p=t._root,d={data:r},g=t._x0,m=t._y0,v=t._x1,y=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((l=e>=(o=(g+v)/2))?g=o:v=o,(u=n>=(s=(m+y)/2))?m=s:y=s,i=p,!(p=p[f=u<<1|l]))return i[f]=d,t;if(a=+t._x.call(null,p.data),c=+t._y.call(null,p.data),e===a&&n===c)return d.next=p,i?i[f]=d:t._root=d,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(l=e>=(o=(g+v)/2))?g=o:v=o,(u=n>=(s=(m+y)/2))?m=s:y=s}while((f=u<<1|l)==(h=(c>=s)<<1|a>=o));return i[h]=p,i[f]=d,t}function as(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function cs(t){return t[0]}function ls(t){return t[1]}function us(t,e,n){var r=new fs(null==e?cs:e,null==n?ls:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function fs(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function hs(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}Jr.prototype.interrupt=function(t){return this.each(function(){Do(this,t)})},Jr.prototype.transition=function(t){var e,n;t instanceof es?(e=t._id,t=t._name):(e=ns(),(n=is).time=bo(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],c=a.length,l=0;l<c;++l)(s=a[l])&&So(s,t,e,l,a,n||os(s,e));return new es(r,this._parents,t,e)};var ps=us.prototype=fs.prototype;function ds(t){return function(){return t}}function gs(t){return 1e-6*(t()-.5)}function ms(t){return t.index}function vs(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}ps.copy=function(){var t,e,n=new fs(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=hs(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=hs(e));return n},ps.add=function(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return ss(this.cover(e,n),e,n,t)},ps.addAll=function(t){var e,n,r,i,o=t.length,s=new Array(o),a=new Array(o),c=1/0,l=1/0,u=-1/0,f=-1/0;for(n=0;n<o;++n)isNaN(r=+this._x.call(null,e=t[n]))||isNaN(i=+this._y.call(null,e))||(s[n]=r,a[n]=i,r<c&&(c=r),r>u&&(u=r),i<l&&(l=i),i>f&&(f=i));if(c>u||l>f)return this;for(this.cover(c,l).cover(u,f),n=0;n<o;++n)ss(this,s[n],a[n],t[n]);return this},ps.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{for(var s,a,c=i-n||1,l=this._root;n>t||t>=i||r>e||e>=o;)switch(a=(e<r)<<1|t<n,(s=new Array(4))[a]=l,l=s,c*=2,a){case 0:i=n+c,o=r+c;break;case 1:n=i-c,o=r+c;break;case 2:i=n+c,r=o-c;break;case 3:n=i-c,r=o-c}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},ps.data=function(){var t=[];return this.visit(function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)}),t},ps.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},ps.find=function(t,e,n){var r,i,o,s,a,c,l,u=this._x0,f=this._y0,h=this._x1,p=this._y1,d=[],g=this._root;for(g&&d.push(new as(g,u,f,h,p)),null==n?n=1/0:(u=t-n,f=e-n,h=t+n,p=e+n,n*=n);c=d.pop();)if(!(!(g=c.node)||(i=c.x0)>h||(o=c.y0)>p||(s=c.x1)<u||(a=c.y1)<f))if(g.length){var m=(i+s)/2,v=(o+a)/2;d.push(new as(g[3],m,v,s,a),new as(g[2],i,v,m,a),new as(g[1],m,o,s,v),new as(g[0],i,o,m,v)),(l=(e>=v)<<1|t>=m)&&(c=d[d.length-1],d[d.length-1]=d[d.length-1-l],d[d.length-1-l]=c)}else{var y=t-+this._x.call(null,g.data),_=e-+this._y.call(null,g.data),w=y*y+_*_;if(w<n){var b=Math.sqrt(n=w);u=t-b,f=e-b,h=t+b,p=e+b,r=g.data}}return r},ps.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(s=+this._y.call(null,t)))return this;var e,n,r,i,o,s,a,c,l,u,f,h,p=this._root,d=this._x0,g=this._y0,m=this._x1,v=this._y1;if(!p)return this;if(p.length)for(;;){if((l=o>=(a=(d+m)/2))?d=a:m=a,(u=s>=(c=(g+v)/2))?g=c:v=c,e=p,!(p=p[f=u<<1|l]))return this;if(!p.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(n=e,h=f)}for(;p.data!==t;)if(r=p,!(p=p.next))return this;return(i=p.next)&&delete p.next,r?(i?r.next=i:delete r.next,this):e?(i?e[f]=i:delete e[f],(p=e[0]||e[1]||e[2]||e[3])&&p===(e[3]||e[2]||e[1]||e[0])&&!p.length&&(n?n[h]=p:this._root=p),this):(this._root=i,this)},ps.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},ps.root=function(){return this._root},ps.size=function(){var t=0;return this.visit(function(e){if(!e.length)do{++t}while(e=e.next)}),t},ps.visit=function(t){var e,n,r,i,o,s,a=[],c=this._root;for(c&&a.push(new as(c,this._x0,this._y0,this._x1,this._y1));e=a.pop();)if(!t(c=e.node,r=e.x0,i=e.y0,o=e.x1,s=e.y1)&&c.length){var l=(r+o)/2,u=(i+s)/2;(n=c[3])&&a.push(new as(n,l,u,o,s)),(n=c[2])&&a.push(new as(n,r,u,l,s)),(n=c[1])&&a.push(new as(n,l,i,o,u)),(n=c[0])&&a.push(new as(n,r,i,l,u))}return this},ps.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new as(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var i=e.node;if(i.length){var o,s=e.x0,a=e.y0,c=e.x1,l=e.y1,u=(s+c)/2,f=(a+l)/2;(o=i[0])&&n.push(new as(o,s,a,u,f)),(o=i[1])&&n.push(new as(o,u,a,c,f)),(o=i[2])&&n.push(new as(o,s,f,u,l)),(o=i[3])&&n.push(new as(o,u,f,c,l))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},ps.x=function(t){return arguments.length?(this._x=t,this):this._x},ps.y=function(t){return arguments.length?(this._y=t,this):this._y};const ys=4294967296;function _s(t){return t.x}function ws(t){return t.y}var bs=Math.PI*(3-Math.sqrt(5));var xs=t=>()=>t;function Es(t,e){let{sourceEvent:n,target:r,transform:i,dispatch:o}=e;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function As(t,e,n){this.k=t,this.x=e,this.y=n}As.prototype={constructor:As,scale:function(t){return 1===t?this:new As(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new As(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ks=new As(1,0,0);function Os(t){t.stopImmediatePropagation()}function Cs(t){t.preventDefault(),t.stopImmediatePropagation()}function Ns(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function Ts(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function Ms(){return this.__zoom||ks}function Ss(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Ls(){return navigator.maxTouchPoints||"ontouchstart"in this}function js(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],s=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}As.prototype;const Ps={select:Zr,zoom:function(){var t,e,n,r=Ns,i=Ts,o=js,s=Ss,a=Ls,c=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],u=250,f=fo,h=Bn("start","zoom","end"),p=0,d=10;function g(t){t.property("__zoom",Ms).on("wheel.zoom",x,{passive:!1}).on("mousedown.zoom",E).on("dblclick.zoom",A).filter(a).on("touchstart.zoom",k).on("touchmove.zoom",O).on("touchend.zoom touchcancel.zoom",C).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(t,e){return(e=Math.max(c[0],Math.min(c[1],e)))===t.k?t:new As(e,t.x,t.y)}function v(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new As(t.k,r,i)}function y(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function _(t,e,n,r){t.on("start.zoom",function(){w(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){w(this,arguments).event(r).end()}).tween("zoom",function(){var t=this,o=arguments,s=w(t,o).event(r),a=i.apply(t,o),c=null==n?y(a):"function"==typeof n?n.apply(t,o):n,l=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),u=t.__zoom,h="function"==typeof e?e.apply(t,o):e,p=f(u.invert(c).concat(l/u.k),h.invert(c).concat(l/h.k));return function(t){if(1===t)t=h;else{var e=p(t),n=l/e[2];t=new As(n,c[0]-e[0]*n,c[1]-e[1]*n)}s.zoom(null,t)}})}function w(t,e,n){return!n&&t.__zooming||new b(t,e)}function b(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,e),this.taps=0}function x(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];if(r.apply(this,arguments)){var a=w(this,n).event(t),u=this.__zoom,f=Math.max(c[0],Math.min(c[1],u.k*Math.pow(2,s.apply(this,arguments)))),h=ti(t);if(a.wheel)a.mouse[0][0]===h[0]&&a.mouse[0][1]===h[1]||(a.mouse[1]=u.invert(a.mouse[0]=h)),clearTimeout(a.wheel);else{if(u.k===f)return;a.mouse=[h,u.invert(h)],Do(this),a.start()}Cs(t),a.wheel=setTimeout(function(){a.wheel=null,a.end()},150),a.zoom("mouse",o(v(m(u,f),a.mouse[0],a.mouse[1]),a.extent,l))}}function E(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];if(!n&&r.apply(this,arguments)){var a=t.currentTarget,c=w(this,i,!0).event(t),u=Zr(t.view).on("mousemove.zoom",function(t){if(Cs(t),!c.moved){var e=t.clientX-h,n=t.clientY-d;c.moved=e*e+n*n>p}c.event(t).zoom("mouse",o(v(c.that.__zoom,c.mouse[0]=ti(t,a),c.mouse[1]),c.extent,l))},!0).on("mouseup.zoom",function(t){u.on("mousemove.zoom mouseup.zoom",null),si(t.view,c.moved),Cs(t),c.event(t).end()},!0),f=ti(t,a),h=t.clientX,d=t.clientY;oi(t.view),Os(t),c.mouse=[f,this.__zoom.invert(f)],Do(this),c.start()}}function A(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),s=1;s<e;s++)n[s-1]=arguments[s];if(r.apply(this,arguments)){var a=this.__zoom,c=ti(t.changedTouches?t.changedTouches[0]:t,this),f=a.invert(c),h=a.k*(t.shiftKey?.5:2),p=o(v(m(a,h),c,f),i.apply(this,n),l);Cs(t),u>0?Zr(this).transition().duration(u).call(_,p,c,t):Zr(this).call(g.transform,p,c,t)}}function k(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];if(r.apply(this,arguments)){var a,c,l,u,f=n.touches,h=f.length,p=w(this,o,n.changedTouches.length===h).event(n);for(Os(n),c=0;c<h;++c)u=[u=ti(l=f[c],this),this.__zoom.invert(u),l.identifier],p.touch0?p.touch1||p.touch0[2]===u[2]||(p.touch1=u,p.taps=0):(p.touch0=u,a=!0,p.taps=1+!!t);t&&(t=clearTimeout(t)),a&&(p.taps<2&&(e=u[0],t=setTimeout(function(){t=null},500)),Do(this),p.start())}}function O(t){if(this.__zooming){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i,s,a,c,u=w(this,n).event(t),f=t.changedTouches,h=f.length;for(Cs(t),i=0;i<h;++i)a=ti(s=f[i],this),u.touch0&&u.touch0[2]===s.identifier?u.touch0[0]=a:u.touch1&&u.touch1[2]===s.identifier&&(u.touch1[0]=a);if(s=u.that.__zoom,u.touch1){var p=u.touch0[0],d=u.touch0[1],g=u.touch1[0],y=u.touch1[1],_=(_=g[0]-p[0])*_+(_=g[1]-p[1])*_,b=(b=y[0]-d[0])*b+(b=y[1]-d[1])*b;s=m(s,Math.sqrt(_/b)),a=[(p[0]+g[0])/2,(p[1]+g[1])/2],c=[(d[0]+y[0])/2,(d[1]+y[1])/2]}else{if(!u.touch0)return;a=u.touch0[0],c=u.touch0[1]}u.zoom("touch",o(v(s,a,c),u.extent,l))}}function C(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.__zooming){var s,a,c=w(this,i).event(t),l=t.changedTouches,u=l.length;for(Os(t),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),s=0;s<u;++s)a=l[s],c.touch0&&c.touch0[2]===a.identifier?delete c.touch0:c.touch1&&c.touch1[2]===a.identifier&&delete c.touch1;if(c.touch1&&!c.touch0&&(c.touch0=c.touch1,delete c.touch1),c.touch0)c.touch0[1]=this.__zoom.invert(c.touch0[0]);else if(c.end(),2===c.taps&&(a=ti(a,this),Math.hypot(e[0]-a[0],e[1]-a[1])<d)){var f=Zr(this).on("dblclick.zoom");f&&f.apply(this,arguments)}}}return g.transform=function(t,e,n,r){var i=t.selection?t.selection():t;i.property("__zoom",Ms),t!==i?_(t,e,n,r):i.interrupt().each(function(){w(this,arguments).event(r).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})},g.scaleBy=function(t,e,n,r){g.scaleTo(t,function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)},n,r)},g.scaleTo=function(t,e,n,r){g.transform(t,function(){var t=i.apply(this,arguments),r=this.__zoom,s=null==n?y(t):"function"==typeof n?n.apply(this,arguments):n,a=r.invert(s),c="function"==typeof e?e.apply(this,arguments):e;return o(v(m(r,c),s,a),t,l)},n,r)},g.translateBy=function(t,e,n,r){g.transform(t,function(){return o(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),l)},null,r)},g.translateTo=function(t,e,n,r,s){g.transform(t,function(){var t=i.apply(this,arguments),s=this.__zoom,a=null==r?y(t):"function"==typeof r?r.apply(this,arguments):r;return o(ks.translate(a[0],a[1]).scale(s.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,l)},r,s)},b.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1===++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0===--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=Zr(this.that).datum();h.call(t,this.that,new Es(t,{sourceEvent:this.sourceEvent,target:g,transform:this.that.__zoom,dispatch:h}),e)}},g.wheelDelta=function(t){return arguments.length?(s="function"==typeof t?t:xs(+t),g):s},g.filter=function(t){return arguments.length?(r="function"==typeof t?t:xs(!!t),g):r},g.touchable=function(t){return arguments.length?(a="function"==typeof t?t:xs(!!t),g):a},g.extent=function(t){return arguments.length?(i="function"==typeof t?t:xs([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),g):i},g.scaleExtent=function(t){return arguments.length?(c[0]=+t[0],c[1]=+t[1],g):[c[0],c[1]]},g.translateExtent=function(t){return arguments.length?(l[0][0]=+t[0][0],l[1][0]=+t[1][0],l[0][1]=+t[0][1],l[1][1]=+t[1][1],g):[[l[0][0],l[0][1]],[l[1][0],l[1][1]]]},g.constrain=function(t){return arguments.length?(o=t,g):o},g.duration=function(t){return arguments.length?(u=+t,g):u},g.interpolate=function(t){return arguments.length?(f=t,g):f},g.on=function(){var t=h.on.apply(h,arguments);return t===h?g:t},g.clickDistance=function(t){return arguments.length?(p=(t=+t)*t,g):Math.sqrt(p)},g.tapDistance=function(t){return arguments.length?(d=+t,g):d},g},drag:function(){var t,e,n,r,i=li,o=ui,s=fi,a=hi,c={},l=Bn("start","drag","end"),u=0,f=0;function h(t){t.on("mousedown.drag",p).filter(a).on("touchstart.drag",m).on("touchmove.drag",v,ei).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(s,a){if(!r&&i.call(this,s,a)){var c=_(this,o.call(this,s,a),s,a,"mouse");c&&(Zr(s.view).on("mousemove.drag",d,ni).on("mouseup.drag",g,ni),oi(s.view),ri(s),n=!1,t=s.clientX,e=s.clientY,c("start",s))}}function d(r){if(ii(r),!n){var i=r.clientX-t,o=r.clientY-e;n=i*i+o*o>f}c.mouse("drag",r)}function g(t){Zr(t.view).on("mousemove.drag mouseup.drag",null),si(t.view,n),ii(t),c.mouse("end",t)}function m(t,e){if(i.call(this,t,e)){var n,r,s=t.changedTouches,a=o.call(this,t,e),c=s.length;for(n=0;n<c;++n)(r=_(this,a,t,e,s[n].identifier,s[n]))&&(ri(t),r("start",t,s[n]))}}function v(t){var e,n,r=t.changedTouches,i=r.length;for(e=0;e<i;++e)(n=c[r[e].identifier])&&(ii(t),n("drag",t,r[e]))}function y(t){var e,n,i=t.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout(function(){r=null},500),e=0;e<o;++e)(n=c[i[e].identifier])&&(ri(t),n("end",t,i[e]))}function _(t,e,n,r,i,o){var a,f,p,d=l.copy(),g=ti(o||n,e);if(null!=(p=s.call(t,new ci("beforestart",{sourceEvent:n,target:h,identifier:i,active:u,x:g[0],y:g[1],dx:0,dy:0,dispatch:d}),r)))return a=p.x-g[0]||0,f=p.y-g[1]||0,function n(o,s,l){var m,v=g;switch(o){case"start":c[i]=n,m=u++;break;case"end":delete c[i],--u;case"drag":g=ti(l||s,e),m=u}d.call(o,t,new ci(o,{sourceEvent:s,subject:p,target:h,identifier:i,active:m,x:g[0]+a,y:g[1]+f,dx:g[0]-v[0],dy:g[1]-v[1],dispatch:d}),r)}}return h.filter=function(t){return arguments.length?(i="function"==typeof t?t:ai(!!t),h):i},h.container=function(t){return arguments.length?(o="function"==typeof t?t:ai(t),h):o},h.subject=function(t){return arguments.length?(s="function"==typeof t?t:ai(t),h):s},h.touchable=function(t){return arguments.length?(a="function"==typeof t?t:ai(!!t),h):a},h.on=function(){var t=l.on.apply(l,arguments);return t===l?h:t},h.clickDistance=function(t){return arguments.length?(f=(t=+t)*t,h):Math.sqrt(f)},h},forceSimulation:function(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,s=.6,a=new Map,c=Ao(f),l=Bn("tick","end"),u=function(){let t=1;return()=>(t=(1664525*t+1013904223)%ys)/ys}();function f(){h(),l.call("tick",e),n<r&&(c.stop(),l.call("end",e))}function h(r){var c,l,u=t.length;void 0===r&&(r=1);for(var f=0;f<r;++f)for(n+=(o-n)*i,a.forEach(function(t){t(n)}),c=0;c<u;++c)null==(l=t[c]).fx?l.x+=l.vx*=s:(l.x=l.fx,l.vx=0),null==l.fy?l.y+=l.vy*=s:(l.y=l.fy,l.vy=0);return e}function p(){for(var e,n=0,r=t.length;n<r;++n){if((e=t[n]).index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=10*Math.sqrt(.5+n),o=n*bs;e.x=i*Math.cos(o),e.y=i*Math.sin(o)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function d(e){return e.initialize&&e.initialize(t,u),e}return null==t&&(t=[]),p(),e={tick:h,restart:function(){return c.restart(f),e},stop:function(){return c.stop(),e},nodes:function(n){return arguments.length?(t=n,p(),a.forEach(d),e):t},alpha:function(t){return arguments.length?(n=+t,e):n},alphaMin:function(t){return arguments.length?(r=+t,e):r},alphaDecay:function(t){return arguments.length?(i=+t,e):+i},alphaTarget:function(t){return arguments.length?(o=+t,e):o},velocityDecay:function(t){return arguments.length?(s=1-t,e):1-s},randomSource:function(t){return arguments.length?(u=t,a.forEach(d),e):u},force:function(t,n){return arguments.length>1?(null==n?a.delete(t):a.set(t,d(n)),e):a.get(t)},find:function(e,n,r){var i,o,s,a,c,l=0,u=t.length;for(null==r?r=1/0:r*=r,l=0;l<u;++l)(s=(i=e-(a=t[l]).x)*i+(o=n-a.y)*o)<r&&(c=a,r=s);return c},on:function(t,n){return arguments.length>1?(l.on(t,n),e):l.on(t)}}},forceLink:function(t){var e,n,r,i,o,s,a=ms,c=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},l=ds(30),u=1;function f(r){for(var i=0,a=t.length;i<u;++i)for(var c,l,f,h,p,d,g,m=0;m<a;++m)l=(c=t[m]).source,h=(f=c.target).x+f.vx-l.x-l.vx||gs(s),p=f.y+f.vy-l.y-l.vy||gs(s),h*=d=((d=Math.sqrt(h*h+p*p))-n[m])/d*r*e[m],p*=d,f.vx-=h*(g=o[m]),f.vy-=p*g,l.vx+=h*(g=1-g),l.vy+=p*g}function h(){if(r){var s,c,l=r.length,u=t.length,f=new Map(r.map((t,e)=>[a(t,e,r),t]));for(s=0,i=new Array(l);s<u;++s)(c=t[s]).index=s,"object"!=typeof c.source&&(c.source=vs(f,c.source)),"object"!=typeof c.target&&(c.target=vs(f,c.target)),i[c.source.index]=(i[c.source.index]||0)+1,i[c.target.index]=(i[c.target.index]||0)+1;for(s=0,o=new Array(u);s<u;++s)c=t[s],o[s]=i[c.source.index]/(i[c.source.index]+i[c.target.index]);e=new Array(u),p(),n=new Array(u),d()}}function p(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+c(t[n],n,t)}function d(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+l(t[e],e,t)}return null==t&&(t=[]),f.initialize=function(t,e){r=t,s=e,h()},f.links=function(e){return arguments.length?(t=e,h(),f):t},f.id=function(t){return arguments.length?(a=t,f):a},f.iterations=function(t){return arguments.length?(u=+t,f):u},f.strength=function(t){return arguments.length?(c="function"==typeof t?t:ds(+t),p(),f):c},f.distance=function(t){return arguments.length?(l="function"==typeof t?t:ds(+t),d(),f):l},f},forceManyBody:function(){var t,e,n,r,i,o=ds(-30),s=1,a=1/0,c=.81;function l(n){var i,o=t.length,s=us(t,_s,ws).visitAfter(f);for(r=n,i=0;i<o;++i)e=t[i],s.visit(h)}function u(){if(t){var e,n,r=t.length;for(i=new Array(r),e=0;e<r;++e)n=t[e],i[n.index]=+o(n,e,t)}}function f(t){var e,n,r,o,s,a=0,c=0;if(t.length){for(r=o=s=0;s<4;++s)(e=t[s])&&(n=Math.abs(e.value))&&(a+=e.value,c+=n,r+=n*e.x,o+=n*e.y);t.x=r/c,t.y=o/c}else{(e=t).x=e.data.x,e.y=e.data.y;do{a+=i[e.data.index]}while(e=e.next)}t.value=a}function h(t,o,l,u){if(!t.value)return!0;var f=t.x-e.x,h=t.y-e.y,p=u-o,d=f*f+h*h;if(p*p/c<d)return d<a&&(0===f&&(d+=(f=gs(n))*f),0===h&&(d+=(h=gs(n))*h),d<s&&(d=Math.sqrt(s*d)),e.vx+=f*t.value*r/d,e.vy+=h*t.value*r/d),!0;if(!(t.length||d>=a)){(t.data!==e||t.next)&&(0===f&&(d+=(f=gs(n))*f),0===h&&(d+=(h=gs(n))*h),d<s&&(d=Math.sqrt(s*d)));do{t.data!==e&&(p=i[t.data.index]*r/d,e.vx+=f*p,e.vy+=h*p)}while(t=t.next)}}return l.initialize=function(e,r){t=e,n=r,u()},l.strength=function(t){return arguments.length?(o="function"==typeof t?t:ds(+t),u(),l):o},l.distanceMin=function(t){return arguments.length?(s=t*t,l):Math.sqrt(s)},l.distanceMax=function(t){return arguments.length?(a=t*t,l):Math.sqrt(a)},l.theta=function(t){return arguments.length?(c=t*t,l):Math.sqrt(c)},l},forceCenter:function(t,e){var n,r=1;function i(){var i,o,s=n.length,a=0,c=0;for(i=0;i<s;++i)a+=(o=n[i]).x,c+=o.y;for(a=(a/s-t)*r,c=(c/s-e)*r,i=0;i<s;++i)(o=n[i]).x-=a,o.y-=c}return null==t&&(t=0),null==e&&(e=0),i.initialize=function(t){n=t},i.x=function(e){return arguments.length?(t=+e,i):t},i.y=function(t){return arguments.length?(e=+t,i):e},i.strength=function(t){return arguments.length?(r=+t,i):r},i},zoomIdentity:ks},Ds=[],zs=[],Bs=new Set;gn.onclick=mn.onclick=()=>vn.toggle(),wn.addEventListener("click",()=>{jn.on(),Pn.on(),Cn.focus()}),bn.addEventListener("click",()=>{jn.off(),Pn.off()}),Cn.addEventListener("focus",()=>{An.classList.add(Sn)}),Cn.addEventListener("focusout",()=>{An.classList.remove(Sn)}),Cn.addEventListener("input",()=>{""===Cn.value?Dn()?Nn.classList.remove(Mn):Pn.off():(Pn.on(),Dn()&&Nn.classList.add(Mn))}),pn&&pn.addEventListener("click",()=>{Theme.flip()}),function(){const t=document.getElementById("back-to-top");window.addEventListener("scroll",()=>{window.scrollY>50?t.classList.add("show"):t.classList.remove("show")}),t.addEventListener("click",()=>{window.scrollTo({top:0})})}(),[...document.querySelectorAll('[data-bs-toggle="tooltip"]')].map(t=>new tn(t)),fetch("/assets/js/data/graph.json").then(t=>t.json()).then(t=>{t.forEach(t=>{Ds.push({id:t.id,type:"post",url:t.url}),t.tags.forEach(e=>{Bs.has(e)||(Ds.push({id:e,type:"tag"}),Bs.add(e)),zs.push({source:t.id,target:e,label:e})})}),function(){const t=Ps.select("svg"),e=t.node().getBoundingClientRect().width,n=t.node().getBoundingClientRect().height,r=Ps.zoom().scaleExtent([.3,5]).on("zoom",t=>{i.attr("transform",t.transform)});t.call(r);const i=t.append("g"),o=Ps.forceSimulation(Ds).force("link",Ps.forceLink(zs).id(t=>t.id).distance(100)).force("charge",Ps.forceManyBody().strength(-200)).force("center",Ps.forceCenter(e/2,n/2)),s=i.append("g").attr("class","links").selectAll("line").data(zs).enter().append("line").attr("class","link"),a=i.append("g").attr("class","nodes").selectAll("circle").data(Ds).enter().append("circle").attr("class",t=>"post"===t.type?"post-node":"tag-node").attr("r",t=>"post"===t.type?8:4).call(Ps.drag().on("start",l).on("drag",u).on("end",f)).on("click",(t,e)=>{"post"===e.type&&e.url&&(window.location.href=e.url),"tag"===e.type&&(window.location.href=function(t){const e=function(t){return encodeURIComponent(t)}(t.toString().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-"));return"/tags/".concat(e,"/")}(e.id))}),c=i.append("g").attr("class","node-labels").selectAll("text").data(Ds).enter().append("text").attr("class",t=>"post"===t.type?"post-label":"tag-label").attr("dy","-10px").text(t=>t.id);function l(t,e){t.active||o.alphaTarget(.3).restart(),e.fx=e.x,e.fy=e.y}function u(t,e){e.fx=t.x,e.fy=t.y}function f(t,e){t.active||o.alphaTarget(0),e.fx=null,e.fy=null}function h(e,n){const o=i.node().getBBox(),s=o.width,a=o.height,c=o.x+s/2,l=o.y+a/2;if(0===s||0===a)return;const u=.9/Math.max(s/e,a/n),f=Ps.zoomIdentity.translate(e/2-u*c,n/2-u*l).scale(u);t.transition().duration(500).call(r.transform,f)}o.on("tick",()=>{s.attr("x1",t=>t.source.x).attr("y1",t=>t.source.y).attr("x2",t=>t.target.x).attr("y2",t=>t.target.y),a.attr("cx",t=>t.x).attr("cy",t=>t.y),c.attr("x",t=>t.x).attr("y",t=>t.y)}),o.on("end",()=>{h(e,n)}),window.addEventListener("resize",()=>{const e=t.node().getBoundingClientRect().width,n=t.node().getBoundingClientRect().height;o.force("center",Ps.forceCenter(e/2,n/2)),t.transition().duration(500).call(r.transform,ks.translate(e/2,n/2).scale(1)),h(e,n)}),t.on("touchstart",function(t){t.preventDefault()})}()}).catch(t=>console.error("Error loading JSON:",t))}();
4
+ !function(){"use strict";const t=new Map;var e={set(e,n,r){t.has(e)||t.set(e,new Map);const i=t.get(e);i.has(n)||0===i.size?i.set(n,r):console.error("Bootstrap doesn't allow more than one instance per element. Bound instance: ".concat(Array.from(i.keys())[0],"."))},get:(e,n)=>t.has(e)&&t.get(e).get(n)||null,remove(e,n){if(!t.has(e))return;const r=t.get(e);r.delete(n),0===r.size&&t.delete(e)}};function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function r(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function i(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,s,a=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const c="transitionend",l=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(t,e)=>"#".concat(CSS.escape(e)))),t),u=t=>null==t?"".concat(t):Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),f=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),h=t=>f(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(l(t)):null,p=t=>{if(!f(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const e=t.closest("summary");if(e&&e.parentNode!==n)return!1;if(null===e)return!1}return e},d=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),g=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?g(t.parentNode):null},m=()=>{},v=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,y=[],_=()=>"rtl"===document.documentElement.dir,b=t=>{var e;e=()=>{const e=v();if(e){const n=t.NAME,r=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=r,t.jQueryInterface)}},"loading"===document.readyState?(y.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of y)t()}),y.push(e)):e()},w=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;return"function"==typeof t?t.call(...e):n},x=function(t,e){if(!(!(arguments.length>2&&void 0!==arguments[2])||arguments[2]))return void w(t);const n=(t=>{if(!t)return 0;let e=window.getComputedStyle(t),n=e.transitionDuration,r=e.transitionDelay;const i=Number.parseFloat(n),o=Number.parseFloat(r);return i||o?(n=n.split(",")[0],r=r.split(",")[0],1e3*(Number.parseFloat(n)+Number.parseFloat(r))):0})(e)+5;let r=!1;const i=n=>{n.target===e&&(r=!0,e.removeEventListener(c,i),w(t))};e.addEventListener(c,i),setTimeout(()=>{r||e.dispatchEvent(new Event(c))},n)},E=/[^.]*(?=\..*)\.|.*/,A=/\..*/,k=/::\d+$/,O={};let C=1;const T={mouseenter:"mouseover",mouseleave:"mouseout"},N=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function M(t,e){return e&&"".concat(e,"::").concat(C++)||t.uidEvent||C++}function S(t){const e=M(t);return t.uidEvent=e,O[e]=O[e]||{},O[e]}function L(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===n)}function j(t,e,n){const r="string"==typeof e,i=r?n:e||n;let o=B(t);return N.has(o)||(o=t),[r,i,o]}function P(t,e,n,r,i){if("string"!=typeof e||!t)return;let o=a(j(e,n,r),3),s=o[0],c=o[1],l=o[2];if(e in T){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};c=t(c)}const u=S(t),f=u[l]||(u[l]={}),h=L(f,c,s?n:null);if(h)return void(h.oneOff=h.oneOff&&i);const p=M(c,e.replace(E,"")),d=s?function(t,e,n){return function r(i){const o=t.querySelectorAll(e);for(let s=i.target;s&&s!==this;s=s.parentNode)for(const a of o)if(a===s)return q(i,{delegateTarget:s}),r.oneOff&&I.off(t,i.type,e,n),n.apply(s,[i])}}(t,n,c):function(t,e){return function n(r){return q(r,{delegateTarget:t}),n.oneOff&&I.off(t,r.type,e),e.apply(t,[r])}}(t,c);d.delegationSelector=s?n:null,d.callable=c,d.oneOff=i,d.uidEvent=p,f[p]=d,t.addEventListener(l,d,s)}function D(t,e,n,r,i){const o=L(e[n],r,i);o&&(t.removeEventListener(n,o,Boolean(i)),delete e[n][o.uidEvent])}function z(t,e,n,r){const i=e[n]||{};for(const s of Object.entries(i)){var o=a(s,2);const i=o[0],c=o[1];i.includes(r)&&D(t,e,n,c.callable,c.delegationSelector)}}function B(t){return t=t.replace(A,""),T[t]||t}const I={on(t,e,n,r){P(t,e,n,r,!1)},one(t,e,n,r){P(t,e,n,r,!0)},off(t,e,n,r){if("string"!=typeof e||!t)return;const i=a(j(e,n,r),3),o=i[0],s=i[1],c=i[2],l=c!==e,u=S(t),f=u[c]||{},h=e.startsWith(".");if(void 0===s){if(h)for(const n of Object.keys(u))z(t,u,n,e.slice(1));for(const n of Object.entries(f)){var p=a(n,2);const r=p[0],i=p[1],o=r.replace(k,"");l&&!e.includes(o)||D(t,u,c,i.callable,i.delegationSelector)}}else{if(!Object.keys(f).length)return;D(t,u,c,s,o?n:null)}},trigger(t,e,n){if("string"!=typeof e||!t)return null;const r=v();let i=null,o=!0,s=!0,a=!1;e!==B(e)&&r&&(i=r.Event(e,n),r(t).trigger(i),o=!i.isPropagationStopped(),s=!i.isImmediatePropagationStopped(),a=i.isDefaultPrevented());const c=q(new Event(e,{bubbles:o,cancelable:!0}),n);return a&&c.preventDefault(),s&&t.dispatchEvent(c),c.defaultPrevented&&i&&i.preventDefault(),c}};function q(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const r of Object.entries(e)){var n=a(r,2);const e=n[0],i=n[1];try{t[e]=i}catch(n){Object.defineProperty(t,e,{configurable:!0,get:()=>i})}}return t}function H(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function R(t){return t.replace(/[A-Z]/g,t=>"-".concat(t.toLowerCase()))}const F={setDataAttribute(t,e,n){t.setAttribute("data-bs-".concat(R(e)),n)},removeDataAttribute(t,e){t.removeAttribute("data-bs-".concat(R(e)))},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"));for(const r of n){let n=r.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1),e[n]=H(t.dataset[r])}return e},getDataAttribute:(t,e)=>H(t.getAttribute("data-bs-".concat(R(e))))};class Y{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const n=f(e)?F.getDataAttribute(e,"config"):{};return s(s(s(s({},this.constructor.Default),"object"==typeof n?n:{}),f(e)?F.getDataAttributes(e):{}),"object"==typeof t?t:{})}_typeCheckConfig(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.constructor.DefaultType;for(const r of Object.entries(e)){var n=a(r,2);const e=n[0],i=n[1],o=t[e],s=f(o)?"element":u(o);if(!new RegExp(i).test(s))throw new TypeError("".concat(this.constructor.NAME.toUpperCase(),': Option "').concat(e,'" provided type "').concat(s,'" but expected type "').concat(i,'".'))}}}class V extends Y{constructor(t,n){super(),(t=h(t))&&(this._element=t,this._config=this._getConfig(n),e.set(this._element,this.constructor.DATA_KEY,this))}dispose(){e.remove(this._element,this.constructor.DATA_KEY),I.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e){x(t,e,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return e.get(h(t),this.DATA_KEY)}static getOrCreateInstance(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.3.8"}static get DATA_KEY(){return"bs.".concat(this.NAME)}static get EVENT_KEY(){return".".concat(this.DATA_KEY)}static eventName(t){return"".concat(t).concat(this.EVENT_KEY)}}const X=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#".concat(n.split("#")[1])),e=n&&"#"!==n?n.trim():null}return e?e.split(",").map(t=>l(t)).join(","):null},W={find(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(e,t)},children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const n=[];let r=t.parentNode.closest(e);for(;r;)n.push(r),r=r.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>"".concat(t,':not([tabindex^="-"])')).join(",");return this.find(e,t).filter(t=>!d(t)&&p(t))},getSelectorFromElement(t){const e=X(t);return e&&W.findOne(e)?e:null},getElementFromSelector(t){const e=X(t);return e?W.findOne(e):null},getMultipleElementsFromSelector(t){const e=X(t);return e?W.find(e):[]}},U=".".concat("bs.collapse"),K="show".concat(U),$="shown".concat(U),Q="hide".concat(U),G="hidden".concat(U),J="click".concat(U).concat(".data-api"),Z="show",tt="collapse",et="collapsing",nt=":scope .".concat(tt," .").concat(tt),rt='[data-bs-toggle="collapse"]',it={parent:null,toggle:!0},ot={parent:"(null|element)",toggle:"boolean"};class st extends V{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const n=W.find(rt);for(const t of n){const e=W.getSelectorFromElement(t),n=W.find(e).filter(t=>t===this._element);null!==e&&n.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return it}static get DefaultType(){return ot}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(t=>t!==this._element).map(t=>st.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning)return;if(I.trigger(this._element,K).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(tt),this._element.classList.add(et),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=e[0].toUpperCase()+e.slice(1),r="scroll".concat(n);this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(et),this._element.classList.add(tt,Z),this._element.style[e]="",I.trigger(this._element,$)},this._element,!0),this._element.style[e]="".concat(this._element[r],"px")}hide(){if(this._isTransitioning||!this._isShown())return;if(I.trigger(this._element,Q).defaultPrevented)return;const t=this._getDimension();this._element.style[t]="".concat(this._element.getBoundingClientRect()[t],"px"),this._element.offsetHeight,this._element.classList.add(et),this._element.classList.remove(tt,Z);for(const t of this._triggerArray){const e=W.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0;this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(et),this._element.classList.add(tt),I.trigger(this._element,G)},this._element,!0)}_isShown(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._element).classList.contains(Z)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=h(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(rt);for(const e of t){const t=W.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=W.find(nt,this._config.parent);return W.find(t,this._config.parent).filter(t=>!e.includes(t))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const n of t)n.classList.toggle("collapsed",!e),n.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){const n=st.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'.concat(t,'"'));n[t]()}})}}I.on(document,J,rt,function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of W.getMultipleElementsFromSelector(this))st.getOrCreateInstance(t,{toggle:!1}).toggle()}),b(st),document.getElementsByClassName("collapse");var at="top",ct="bottom",lt="right",ut="left",ft="auto",ht=[at,ct,lt,ut],pt="start",dt="end",gt="clippingParents",mt="viewport",vt="popper",yt="reference",_t=ht.reduce(function(t,e){return t.concat([e+"-"+pt,e+"-"+dt])},[]),bt=[].concat(ht,[ft]).reduce(function(t,e){return t.concat([e,e+"-"+pt,e+"-"+dt])},[]),wt="beforeRead",xt="read",Et="afterRead",At="beforeMain",kt="main",Ot="afterMain",Ct="beforeWrite",Tt="write",Nt="afterWrite",Mt=[wt,xt,Et,At,kt,Ot,Ct,Tt,Nt];function St(t){return t?(t.nodeName||"").toLowerCase():null}function Lt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function jt(t){return t instanceof Lt(t).Element||t instanceof Element}function Pt(t){return t instanceof Lt(t).HTMLElement||t instanceof HTMLElement}function Dt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Lt(t).ShadowRoot||t instanceof ShadowRoot)}var zt={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];Pt(i)&&St(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(t){var e=r[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(t){var r=e.elements[t],i=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce(function(t,e){return t[e]="",t},{});Pt(r)&&St(r)&&(Object.assign(r.style,o),Object.keys(i).forEach(function(t){r.removeAttribute(t)}))})}},requires:["computeStyles"]};function Bt(t){return t.split("-")[0]}var It=Math.max,qt=Math.min,Ht=Math.round;function Rt(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ft(){return!/^((?!chrome|android).)*safari/i.test(Rt())}function Yt(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t.getBoundingClientRect(),i=1,o=1;e&&Pt(t)&&(i=t.offsetWidth>0&&Ht(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&Ht(r.height)/t.offsetHeight||1);var s=(jt(t)?Lt(t):window).visualViewport,a=!Ft()&&n,c=(r.left+(a&&s?s.offsetLeft:0))/i,l=(r.top+(a&&s?s.offsetTop:0))/o,u=r.width/i,f=r.height/o;return{width:u,height:f,top:l,right:c+u,bottom:l+f,left:c,x:c,y:l}}function Vt(t){var e=Yt(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function Xt(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Dt(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Wt(t){return Lt(t).getComputedStyle(t)}function Ut(t){return["table","td","th"].indexOf(St(t))>=0}function Kt(t){return((jt(t)?t.ownerDocument:t.document)||window.document).documentElement}function $t(t){return"html"===St(t)?t:t.assignedSlot||t.parentNode||(Dt(t)?t.host:null)||Kt(t)}function Qt(t){return Pt(t)&&"fixed"!==Wt(t).position?t.offsetParent:null}function Gt(t){for(var e=Lt(t),n=Qt(t);n&&Ut(n)&&"static"===Wt(n).position;)n=Qt(n);return n&&("html"===St(n)||"body"===St(n)&&"static"===Wt(n).position)?e:n||function(t){var e=/firefox/i.test(Rt());if(/Trident/i.test(Rt())&&Pt(t)&&"fixed"===Wt(t).position)return null;var n=$t(t);for(Dt(n)&&(n=n.host);Pt(n)&&["html","body"].indexOf(St(n))<0;){var r=Wt(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||e&&"filter"===r.willChange||e&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(t)||e}function Jt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Zt(t,e,n){return It(t,qt(e,n))}function te(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function ee(t,e){return e.reduce(function(e,n){return e[n]=t,e},{})}var ne={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Bt(n.placement),c=Jt(a),l=[ut,lt].indexOf(a)>=0?"height":"width";if(o&&s){var u=function(t,e){return te("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:ee(t,ht))}(i.padding,n),f=Vt(o),h="y"===c?at:ut,p="y"===c?ct:lt,d=n.rects.reference[l]+n.rects.reference[c]-s[c]-n.rects.popper[l],g=s[c]-n.rects.reference[c],m=Gt(o),v=m?"y"===c?m.clientHeight||0:m.clientWidth||0:0,y=d/2-g/2,_=u[h],b=v-f[l]-u[p],w=v/2-f[l]/2+y,x=Zt(_,w,b),E=c;n.modifiersData[r]=((e={})[E]=x,e.centerOffset=x-w,e)}},effect:function(t){var e=t.state,n=t.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r)))&&Xt(e.elements.popper,r)&&(e.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function re(t){return t.split("-")[1]}var ie={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oe(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,s=t.offsets,a=t.position,c=t.gpuAcceleration,l=t.adaptive,u=t.roundOffsets,f=t.isFixed,h=s.x,p=void 0===h?0:h,d=s.y,g=void 0===d?0:d,m="function"==typeof u?u({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),_=ut,b=at,w=window;if(l){var x=Gt(n),E="clientHeight",A="clientWidth";if(x===Lt(n)&&"static"!==Wt(x=Kt(n)).position&&"absolute"===a&&(E="scrollHeight",A="scrollWidth"),i===at||(i===ut||i===lt)&&o===dt)b=ct,g-=(f&&x===w&&w.visualViewport?w.visualViewport.height:x[E])-r.height,g*=c?1:-1;if(i===ut||(i===at||i===ct)&&o===dt)_=lt,p-=(f&&x===w&&w.visualViewport?w.visualViewport.width:x[A])-r.width,p*=c?1:-1}var k,O=Object.assign({position:a},l&&ie),C=!0===u?function(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:Ht(n*i)/i||0,y:Ht(r*i)/i||0}}({x:p,y:g},Lt(n)):{x:p,y:g};return p=C.x,g=C.y,c?Object.assign({},O,((k={})[b]=y?"0":"",k[_]=v?"0":"",k.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",k)):Object.assign({},O,((e={})[b]=y?g+"px":"",e[_]=v?p+"px":"",e.transform="",e))}var se={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,c=void 0===a||a,l={placement:Bt(e.placement),variation:re(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,oe(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,oe(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},ae={passive:!0};var ce={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=void 0===i||i,s=r.resize,a=void 0===s||s,c=Lt(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&l.forEach(function(t){t.addEventListener("scroll",n.update,ae)}),a&&c.addEventListener("resize",n.update,ae),function(){o&&l.forEach(function(t){t.removeEventListener("scroll",n.update,ae)}),a&&c.removeEventListener("resize",n.update,ae)}},data:{}},le={left:"right",right:"left",bottom:"top",top:"bottom"};function ue(t){return t.replace(/left|right|bottom|top/g,function(t){return le[t]})}var fe={start:"end",end:"start"};function he(t){return t.replace(/start|end/g,function(t){return fe[t]})}function pe(t){var e=Lt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function de(t){return Yt(Kt(t)).left+pe(t).scrollLeft}function ge(t){var e=Wt(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function me(t){return["html","body","#document"].indexOf(St(t))>=0?t.ownerDocument.body:Pt(t)&&ge(t)?t:me($t(t))}function ve(t,e){var n;void 0===e&&(e=[]);var r=me(t),i=r===(null==(n=t.ownerDocument)?void 0:n.body),o=Lt(r),s=i?[o].concat(o.visualViewport||[],ge(r)?r:[]):r,a=e.concat(s);return i?a:a.concat(ve($t(s)))}function ye(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function _e(t,e,n){return e===mt?ye(function(t,e){var n=Lt(t),r=Kt(t),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,c=0;if(i){o=i.width,s=i.height;var l=Ft();(l||!l&&"fixed"===e)&&(a=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:a+de(t),y:c}}(t,n)):jt(e)?function(t,e){var n=Yt(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):ye(function(t){var e,n=Kt(t),r=pe(t),i=null==(e=t.ownerDocument)?void 0:e.body,o=It(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=It(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+de(t),c=-r.scrollTop;return"rtl"===Wt(i||n).direction&&(a+=It(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:c}}(Kt(t)))}function be(t,e,n,r){var i="clippingParents"===e?function(t){var e=ve($t(t)),n=["absolute","fixed"].indexOf(Wt(t).position)>=0&&Pt(t)?Gt(t):t;return jt(n)?e.filter(function(t){return jt(t)&&Xt(t,n)&&"body"!==St(t)}):[]}(t):[].concat(e),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(e,n){var i=_e(t,n,r);return e.top=It(i.top,e.top),e.right=qt(i.right,e.right),e.bottom=qt(i.bottom,e.bottom),e.left=It(i.left,e.left),e},_e(t,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function we(t){var e,n=t.reference,r=t.element,i=t.placement,o=i?Bt(i):null,s=i?re(i):null,a=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(o){case at:e={x:a,y:n.y-r.height};break;case ct:e={x:a,y:n.y+n.height};break;case lt:e={x:n.x+n.width,y:c};break;case ut:e={x:n.x-r.width,y:c};break;default:e={x:n.x,y:n.y}}var l=o?Jt(o):null;if(null!=l){var u="y"===l?"height":"width";switch(s){case pt:e[l]=e[l]-(n[u]/2-r[u]/2);break;case dt:e[l]=e[l]+(n[u]/2-r[u]/2)}}return e}function xe(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=void 0===r?t.placement:r,o=n.strategy,s=void 0===o?t.strategy:o,a=n.boundary,c=void 0===a?gt:a,l=n.rootBoundary,u=void 0===l?mt:l,f=n.elementContext,h=void 0===f?vt:f,p=n.altBoundary,d=void 0!==p&&p,g=n.padding,m=void 0===g?0:g,v=te("number"!=typeof m?m:ee(m,ht)),y=h===vt?yt:vt,_=t.rects.popper,b=t.elements[d?y:h],w=be(jt(b)?b:b.contextElement||Kt(t.elements.popper),c,u,s),x=Yt(t.elements.reference),E=we({reference:x,element:_,placement:i}),A=ye(Object.assign({},_,E)),k=h===vt?A:x,O={top:w.top-k.top+v.top,bottom:k.bottom-w.bottom+v.bottom,left:w.left-k.left+v.left,right:k.right-w.right+v.right},C=t.modifiersData.offset;if(h===vt&&C){var T=C[i];Object.keys(O).forEach(function(t){var e=[lt,ct].indexOf(t)>=0?1:-1,n=[at,ct].indexOf(t)>=0?"y":"x";O[t]+=T[n]*e})}return O}function Ee(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?bt:c,u=re(r),f=u?a?_t:_t.filter(function(t){return re(t)===u}):ht,h=f.filter(function(t){return l.indexOf(t)>=0});0===h.length&&(h=f);var p=h.reduce(function(e,n){return e[n]=xe(t,{placement:n,boundary:i,rootBoundary:o,padding:s})[Bt(n)],e},{});return Object.keys(p).sort(function(t,e){return p[t]-p[e]})}var Ae={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0===s||s,c=n.fallbackPlacements,l=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,d=void 0===p||p,g=n.allowedAutoPlacements,m=e.options.placement,v=Bt(m),y=c||(v===m||!d?[ue(m)]:function(t){if(Bt(t)===ft)return[];var e=ue(t);return[he(t),e,he(e)]}(m)),_=[m].concat(y).reduce(function(t,n){return t.concat(Bt(n)===ft?Ee(e,{placement:n,boundary:u,rootBoundary:f,padding:l,flipVariations:d,allowedAutoPlacements:g}):n)},[]),b=e.rects.reference,w=e.rects.popper,x=new Map,E=!0,A=_[0],k=0;k<_.length;k++){var O=_[k],C=Bt(O),T=re(O)===pt,N=[at,ct].indexOf(C)>=0,M=N?"width":"height",S=xe(e,{placement:O,boundary:u,rootBoundary:f,altBoundary:h,padding:l}),L=N?T?lt:ut:T?ct:at;b[M]>w[M]&&(L=ue(L));var j=ue(L),P=[];if(o&&P.push(S[C]<=0),a&&P.push(S[L]<=0,S[j]<=0),P.every(function(t){return t})){A=O,E=!1;break}x.set(O,P)}if(E)for(var D=function(t){var e=_.find(function(e){var n=x.get(e);if(n)return n.slice(0,t).every(function(t){return t})});if(e)return A=e,"break"},z=d?3:1;z>0;z--){if("break"===D(z))break}e.placement!==A&&(e.modifiersData[r]._skip=!0,e.placement=A,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ke(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Oe(t){return[at,lt,ct,ut].some(function(e){return t[e]>=0})}var Ce={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,s=xe(e,{elementContext:"reference"}),a=xe(e,{altBoundary:!0}),c=ke(s,r),l=ke(a,i,o),u=Oe(c),f=Oe(l);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}};var Te={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=void 0===i?[0,0]:i,s=bt.reduce(function(t,n){return t[n]=function(t,e,n){var r=Bt(t),i=[ut,at].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[ut,lt].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,e.rects,o),t},{}),a=s[e.placement],c=a.x,l=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=l),e.modifiersData[r]=s}};var Ne={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=we({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})},data:{}};var Me={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0!==s&&s,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,p=void 0===h||h,d=n.tetherOffset,g=void 0===d?0:d,m=xe(e,{boundary:c,rootBoundary:l,padding:f,altBoundary:u}),v=Bt(e.placement),y=re(e.placement),_=!y,b=Jt(v),w="x"===b?"y":"x",x=e.modifiersData.popperOffsets,E=e.rects.reference,A=e.rects.popper,k="function"==typeof g?g(Object.assign({},e.rects,{placement:e.placement})):g,O="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),C=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,T={x:0,y:0};if(x){if(o){var N,M="y"===b?at:ut,S="y"===b?ct:lt,L="y"===b?"height":"width",j=x[b],P=j+m[M],D=j-m[S],z=p?-A[L]/2:0,B=y===pt?E[L]:A[L],I=y===pt?-A[L]:-E[L],q=e.elements.arrow,H=p&&q?Vt(q):{width:0,height:0},R=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=R[M],Y=R[S],V=Zt(0,E[L],H[L]),X=_?E[L]/2-z-V-F-O.mainAxis:B-V-F-O.mainAxis,W=_?-E[L]/2+z+V+Y+O.mainAxis:I+V+Y+O.mainAxis,U=e.elements.arrow&&Gt(e.elements.arrow),K=U?"y"===b?U.clientTop||0:U.clientLeft||0:0,$=null!=(N=null==C?void 0:C[b])?N:0,Q=j+W-$,G=Zt(p?qt(P,j+X-$-K):P,j,p?It(D,Q):D);x[b]=G,T[b]=G-j}if(a){var J,Z="x"===b?at:ut,tt="x"===b?ct:lt,et=x[w],nt="y"===w?"height":"width",rt=et+m[Z],it=et-m[tt],ot=-1!==[at,ut].indexOf(v),st=null!=(J=null==C?void 0:C[w])?J:0,ft=ot?rt:et-E[nt]-A[nt]-st+O.altAxis,ht=ot?et+E[nt]+A[nt]-st-O.altAxis:it,dt=p&&ot?function(t,e,n){var r=Zt(t,e,n);return r>n?n:r}(ft,et,ht):Zt(p?ft:rt,et,p?ht:it);x[w]=dt,T[w]=dt-et}e.modifiersData[r]=T}},requiresIfExists:["offset"]};function Se(t,e,n){void 0===n&&(n=!1);var r,i,o=Pt(e),s=Pt(e)&&function(t){var e=t.getBoundingClientRect(),n=Ht(e.width)/t.offsetWidth||1,r=Ht(e.height)/t.offsetHeight||1;return 1!==n||1!==r}(e),a=Kt(e),c=Yt(t,s,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==St(e)||ge(a))&&(l=(r=e)!==Lt(r)&&Pt(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:pe(r)),Pt(e)?((u=Yt(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=de(a))),{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function Le(t){var e=new Map,n=new Set,r=[];function i(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!n.has(t)){var r=e.get(t);r&&i(r)}}),r.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){n.has(t.name)||i(t)}),r}var je={placement:"bottom",modifiers:[],strategy:"absolute"};function Pe(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function De(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,r=void 0===n?[]:n,i=e.defaultOptions,o=void 0===i?je:i;return function(t,e,n){void 0===n&&(n=o);var i,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},je,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],l=!1,u={state:a,setOptions:function(n){var i="function"==typeof n?n(a.options):n;f(),a.options=Object.assign({},o,a.options,i),a.scrollParents={reference:jt(t)?ve(t):t.contextElement?ve(t.contextElement):[],popper:ve(e)};var s,l,h=function(t){var e=Le(t);return Mt.reduce(function(t,n){return t.concat(e.filter(function(t){return t.phase===n}))},[])}((s=[].concat(r,a.options.modifiers),l=s.reduce(function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t},{}),Object.keys(l).map(function(t){return l[t]})));return a.orderedModifiers=h.filter(function(t){return t.enabled}),a.orderedModifiers.forEach(function(t){var e=t.name,n=t.options,r=void 0===n?{}:n,i=t.effect;if("function"==typeof i){var o=i({state:a,name:e,instance:u,options:r}),s=function(){};c.push(o||s)}}),u.update()},forceUpdate:function(){if(!l){var t=a.elements,e=t.reference,n=t.popper;if(Pe(e,n)){a.rects={reference:Se(e,Gt(n),"fixed"===a.options.strategy),popper:Vt(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(t){return a.modifiersData[t.name]=Object.assign({},t.data)});for(var r=0;r<a.orderedModifiers.length;r++)if(!0!==a.reset){var i=a.orderedModifiers[r],o=i.fn,s=i.options,c=void 0===s?{}:s,f=i.name;"function"==typeof o&&(a=o({state:a,options:c,name:f,instance:u})||a)}else a.reset=!1,r=-1}}},update:(i=function(){return new Promise(function(t){u.forceUpdate(),t(a)})},function(){return s||(s=new Promise(function(t){Promise.resolve().then(function(){s=void 0,t(i())})})),s}),destroy:function(){f(),l=!0}};if(!Pe(t,e))return u;function f(){c.forEach(function(t){return t()}),c=[]}return u.setOptions(n).then(function(t){!l&&n.onFirstUpdate&&n.onFirstUpdate(t)}),u}}var ze=De({defaultModifiers:[ce,Ne,se,zt,Te,Ae,Me,ne,Ce]}),Be=Object.freeze({__proto__:null,afterMain:Ot,afterRead:Et,afterWrite:Nt,applyStyles:zt,arrow:ne,auto:ft,basePlacements:ht,beforeMain:At,beforeRead:wt,beforeWrite:Ct,bottom:ct,clippingParents:gt,computeStyles:se,createPopper:ze,detectOverflow:xe,end:dt,eventListeners:ce,flip:Ae,hide:Ce,left:ut,main:kt,modifierPhases:Mt,offset:Te,placements:bt,popper:vt,popperGenerator:De,popperOffsets:Ne,preventOverflow:Me,read:xt,reference:yt,right:lt,start:pt,top:at,variationPlacements:_t,viewport:mt,write:Tt});const Ie={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],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:[]},qe=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),He=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Re=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?!qe.has(n)||Boolean(He.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(n))};const Fe={allowList:Ie,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Ye={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Ve={entry:"(string|element|function|null)",selector:"(string|element)"};class Xe extends Y{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Fe}static get DefaultType(){return Ye}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content=s(s({},this._config.content),t),this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const n of Object.entries(this._config.content)){var e=a(n,2);const r=e[0],i=e[1];this._setContent(t,i,r)}const n=t.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&n.classList.add(...r.split(" ")),n}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const n of Object.entries(t)){var e=a(n,2);const t=e[0],r=e[1];super._typeCheckConfig({selector:t,entry:r},Ve)}}_setContent(t,e,n){const r=W.findOne(n,t);r&&((e=this._resolvePossibleFunction(e))?f(e)?this._putElementInTemplate(h(e),r):this._config.html?r.innerHTML=this._maybeSanitize(e):r.textContent=e:r.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,n){if(!t.length)return t;if(n&&"function"==typeof n)return n(t);const r=(new window.DOMParser).parseFromString(t,"text/html"),i=[].concat(...r.body.querySelectorAll("*"));for(const t of i){const n=t.nodeName.toLowerCase();if(!Object.keys(e).includes(n)){t.remove();continue}const r=[].concat(...t.attributes),i=[].concat(e["*"]||[],e[n]||[]);for(const e of r)Re(e,i)||t.removeAttribute(e.nodeName)}return r.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return w(t,[void 0,this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const We=new Set(["sanitize","allowList","sanitizeFn"]),Ue="fade",Ke="show",$e=".tooltip-inner",Qe=".".concat("modal"),Ge="hide.bs.modal",Je="hover",Ze="focus",tn="click",en={AUTO:"auto",TOP:"top",RIGHT:_()?"left":"right",BOTTOM:"bottom",LEFT:_()?"right":"left"},nn={allowList:Ie,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},rn={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class on extends V{constructor(t,e){if(void 0===Be)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return nn}static get DefaultType(){return rn}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),I.off(this._element.closest(Qe),Ge,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=I.trigger(this._element,this.constructor.eventName("show")),e=(g(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const r=this._config.container;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),I.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(Ke),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))I.on(t,"mouseover",m);this._queueCallback(()=>{I.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(I.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(Ke),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))I.off(t,"mouseover",m);this._activeTrigger[tn]=!1,this._activeTrigger[Ze]=!1,this._activeTrigger[Je]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),I.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Ue,Ke),e.classList.add("bs-".concat(this.constructor.NAME,"-auto"));const n=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",n),this._isAnimated()&&e.classList.add(Ue),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Xe(s(s({},this._config),{},{content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)})),this._templateFactory}_getContentForTemplate(){return{[$e]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Ue)}_isShown(){return this.tip&&this.tip.classList.contains(Ke)}_createPopper(t){const e=w(this._config.placement,[this,t,this._element]),n=en[e.toUpperCase()];return ze(this._element,t,this._getPopperConfig(n))}_getOffset(){const t=this._config.offset;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return w(t,[this._element,this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:".".concat(this.constructor.NAME,"-arrow")}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return s(s({},e),w(this._config.popperConfig,[void 0,e]))}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)I.on(this._element,this.constructor.eventName("click"),this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger[tn]=!(e._isShown()&&e._activeTrigger[tn]),e.toggle()});else if("manual"!==e){const t=e===Je?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=e===Je?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");I.on(this._element,t,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?Ze:Je]=!0,e._enter()}),I.on(this._element,n,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?Ze:Je]=e._element.contains(t.relatedTarget),e._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},I.on(this._element.closest(Qe),Ge,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=F.getDataAttributes(this._element);for(const t of Object.keys(e))We.has(t)&&delete e[t];return t=s(s({},e),"object"==typeof t&&t?t:{}),t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:h(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const n of Object.entries(this._config)){var e=a(n,2);const r=e[0],i=e[1];this.constructor.Default[r]!==i&&(t[r]=i)}return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const e=on.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'.concat(t,'"'));e[t]()}})}}b(on);var sn;i(class{static get locale(){return document.documentElement.getAttribute("lang").substring(0,2)}static getDatetime(t){return t.getAttribute(this.datetimeAttr)}},"datetimeAttr","datetime");const an=document.getElementById("toc-bar"),cn=document.getElementById("toc-solo-trigger"),ln=document.getElementsByClassName("toc-trigger"),un=document.getElementById("toc-popup"),fn=document.getElementById("toc-popup-close"),hn="overflow-hidden",pn="closing";class dn{static initBar(){new IntersectionObserver(t=>{t.forEach(t=>{an.classList.toggle("invisible",t.isIntersecting)})},{rootMargin:"-".concat(r(dn,this,mn)._,"px 0px 0px 0px")}).observe(cn),gn._=r(dn,this,!1)}static listenAnchors(){[...document.getElementsByClassName("toc-link")].forEach(t=>{t.onclick=()=>this.hidePopup()})}static refresh(){r(dn,this,gn)._&&this.initComponents(),tocbot.refresh(this.options),this.listenAnchors()}static get popupOpened(){return un.open}static showPopup(){this.lockScroll(!0),un.showModal(),fn.blur();un.querySelector("li.is-active-li").scrollIntoView({block:"center"})}static hidePopup(){un.toggleAttribute(pn),un.addEventListener("animationend",()=>{un.toggleAttribute(pn),un.close()},{once:!0}),this.lockScroll(!1)}static lockScroll(t){document.documentElement.classList.toggle(hn,t),document.body.classList.toggle(hn,t)}static clickBackdrop(t){if(un.hasAttribute(pn))return;const e=t.target.getBoundingClientRect();(t.clientX<e.left||t.clientX>e.right||t.clientY<e.top||t.clientY>e.bottom)&&this.hidePopup()}static initComponents(){this.initBar(),[...ln].forEach(t=>{t.onclick=()=>this.showPopup()}),un.onclick=t=>this.clickBackdrop(t),fn.onclick=()=>this.hidePopup(),un.oncancel=t=>{t.preventDefault(),this.hidePopup()}}static init(){tocbot.init(this.options),this.listenAnchors(),this.initComponents()}}var gn={_:!0},mn={_:48};i(dn,"options",{tocSelector:"#toc-popup-content",contentSelector:".content",ignoreSelector:"[data-toc-skip]",headingSelector:"h2, h3, h4",orderedList:!1,scrollSmooth:!1,collapseDepth:4,headingsOffset:r(sn=dn,sn,mn)._});i(class{static refresh(){tocbot.refresh(this.options)}static init(){tocbot.init(this.options)}},"options",{tocSelector:"#toc",contentSelector:".content",ignoreSelector:"[data-toc-skip]",headingSelector:"h2, h3, h4",orderedList:!1,scrollSmooth:!1,headingsOffset:32}),matchMedia("(min-width: 1200px)"),Theme.newThemeMap("default","dark");const vn="dropdown",yn=".".concat("bs.dropdown"),_n=".data-api",bn="ArrowUp",wn="ArrowDown",xn="hide".concat(yn),En="hidden".concat(yn),An="show".concat(yn),kn="shown".concat(yn),On="click".concat(yn).concat(_n),Cn="keydown".concat(yn).concat(_n),Tn="keyup".concat(yn).concat(_n),Nn="show",Mn='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Sn="".concat(Mn,".").concat(Nn),Ln=".dropdown-menu",jn=_()?"top-end":"top-start",Pn=_()?"top-start":"top-end",Dn=_()?"bottom-end":"bottom-start",zn=_()?"bottom-start":"bottom-end",Bn=_()?"left-start":"right-start",In=_()?"right-start":"left-start",qn={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Hn={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Rn extends V{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=W.next(this._element,Ln)[0]||W.prev(this._element,Ln)[0]||W.findOne(Ln,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return qn}static get DefaultType(){return Hn}static get NAME(){return vn}toggle(){return this._isShown()?this.hide():this.show()}show(){if(d(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!I.trigger(this._element,An,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))I.on(t,"mouseover",m);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Nn),this._element.classList.add(Nn),I.trigger(this._element,kn,t)}}hide(){if(d(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!I.trigger(this._element,xn,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))I.off(t,"mouseover",m);this._popper&&this._popper.destroy(),this._menu.classList.remove(Nn),this._element.classList.remove(Nn),this._element.setAttribute("aria-expanded","false"),F.removeDataAttribute(this._menu,"popper"),I.trigger(this._element,En,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!f(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError("".concat(vn.toUpperCase(),': Option "reference" provided type "object" without a required "getBoundingClientRect" method.'));return t}_createPopper(){if(void 0===Be)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;"parent"===this._config.reference?t=this._parent:f(this._config.reference)?t=h(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=ze(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Nn)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Bn;if(t.classList.contains("dropstart"))return In;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Pn:jn:e?zn:Dn}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const t=this._config.offset;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(F.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),s(s({},t),w(this._config.popperConfig,[void 0,t]))}_selectMenuItem(t){let e=t.key,n=t.target;const r=W.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(t=>p(t));r.length&&((t,e,n,r)=>{const i=t.length;let o=t.indexOf(e);return-1===o?!n&&r?t[i-1]:t[0]:(o+=n?1:-1,r&&(o=(o+i)%i),t[Math.max(0,Math.min(o,i-1))])})(r,n,e===wn,!r.includes(n)).focus()}static jQueryInterface(t){return this.each(function(){const e=Rn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'.concat(t,'"'));e[t]()}})}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=W.find(Sn);for(const n of e){const e=Rn.getInstance(n);if(!e||!1===e._config.autoClose)continue;const r=t.composedPath(),i=r.includes(e._menu);if(r.includes(e._element)||"inside"===e._config.autoClose&&!i||"outside"===e._config.autoClose&&i)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:e._element};"click"===t.type&&(o.clickEvent=t),e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),n="Escape"===t.key,r=[bn,wn].includes(t.key);if(!r&&!n)return;if(e&&!n)return;t.preventDefault();const i=this.matches(Mn)?this:W.prev(this,Mn)[0]||W.next(this,Mn)[0]||W.findOne(Mn,t.delegateTarget.parentNode),o=Rn.getOrCreateInstance(i);if(r)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),i.focus())}}I.on(document,Cn,Mn,Rn.dataApiKeydownHandler),I.on(document,Cn,Ln,Rn.dataApiKeydownHandler),I.on(document,On,Rn.clearMenus),I.on(document,Tn,Rn.clearMenus),I.on(document,On,Mn,function(t){t.preventDefault(),Rn.getOrCreateInstance(this).toggle()}),b(Rn);const Fn="active",Yn=document.querySelector("#mode-toggle + .dropdown-menu"),Vn=Theme.isSystemTheme?Theme.Mode.SYSTEM:Theme.resolvedTheme;const Xn=document.getElementById("sidebar"),Wn=document.getElementById("sidebar-trigger"),Un=document.getElementById("mask");class Kn{static toggle(){$n._=r(Kn,this,!r(Kn,this,$n)._),document.body.toggleAttribute("sidebar-display",r(Kn,this,$n)._),Xn.classList.toggle("z-2",r(Kn,this,$n)._),Un.classList.toggle("d-none",!r(Kn,this,$n)._)}}var $n={_:!1};const Qn=document.getElementById("sidebar-trigger"),Gn=document.getElementById("search-trigger"),Jn=document.getElementById("search-cancel"),Zn=document.querySelectorAll("#main-wrapper>.container>.row"),tr=document.getElementById("topbar-title"),er=document.getElementById("search"),nr=document.getElementById("search-result-wrapper"),rr=document.getElementById("search-results"),ir=document.getElementById("search-input"),or=document.getElementById("search-hints"),sr="d-block",ar="d-none",cr="input-focus",lr="d-flex";class ur{static on(){Qn.classList.add(ar),tr.classList.add(ar),Gn.classList.add(ar),er.classList.add(lr),Jn.classList.add(sr)}static off(){Jn.classList.remove(sr),er.classList.remove(lr),Qn.classList.remove(ar),tr.classList.remove(ar),Gn.classList.remove(ar)}}class fr{static on(){this.resultVisible||(nr.classList.remove(ar),Zn.forEach(t=>{t.classList.add(ar)}),this.resultVisible=!0)}static off(){this.resultVisible&&(rr.innerHTML="",or.classList.contains(ar)&&or.classList.remove(ar),nr.classList.add(ar),Zn.forEach(t=>{t.classList.remove(ar)}),ir.textContent="",this.resultVisible=!1)}}function hr(){return Jn.classList.contains(sr)}i(fr,"resultVisible",!1);var pr={value:()=>{}};function dr(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new gr(r)}function gr(t){this._=t}function mr(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function vr(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=pr,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}gr.prototype=dr.prototype={constructor:gr,on:function(t,e){var n,r,i=this._,o=(r=i,(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),s=-1,a=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++s<a;)if(n=(t=o[s]).type)i[n]=vr(i[n],t.name,e);else if(null==e)for(n in i)i[n]=vr(i[n],t.name,null);return this}for(;++s<a;)if((n=(t=o[s]).type)&&(n=mr(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new gr(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};var yr="http://www.w3.org/1999/xhtml",_r={svg:"http://www.w3.org/2000/svg",xhtml:yr,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function br(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),_r.hasOwnProperty(e)?{space:_r[e],local:t}:t}function wr(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===yr&&e.documentElement.namespaceURI===yr?e.createElement(t):e.createElementNS(n,t)}}function xr(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Er(t){var e=br(t);return(e.local?xr:wr)(e)}function Ar(){}function kr(t){return null==t?Ar:function(){return this.querySelector(t)}}function Or(){return[]}function Cr(t){return null==t?Or:function(){return this.querySelectorAll(t)}}function Tr(t){return function(){return function(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}(t.apply(this,arguments))}}function Nr(t){return function(){return this.matches(t)}}function Mr(t){return function(e){return e.matches(t)}}var Sr=Array.prototype.find;function Lr(){return this.firstElementChild}var jr=Array.prototype.filter;function Pr(){return Array.from(this.children)}function Dr(t){return new Array(t.length)}function zr(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Br(t,e,n,r,i,o){for(var s,a=0,c=e.length,l=o.length;a<l;++a)(s=e[a])?(s.__data__=o[a],r[a]=s):n[a]=new zr(t,o[a]);for(;a<c;++a)(s=e[a])&&(i[a]=s)}function Ir(t,e,n,r,i,o,s){var a,c,l,u=new Map,f=e.length,h=o.length,p=new Array(f);for(a=0;a<f;++a)(c=e[a])&&(p[a]=l=s.call(c,c.__data__,a,e)+"",u.has(l)?i[a]=c:u.set(l,c));for(a=0;a<h;++a)l=s.call(t,o[a],a,o)+"",(c=u.get(l))?(r[a]=c,c.__data__=o[a],u.delete(l)):n[a]=new zr(t,o[a]);for(a=0;a<f;++a)(c=e[a])&&u.get(p[a])===c&&(i[a]=c)}function qr(t){return t.__data__}function Hr(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Rr(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Fr(t){return function(){this.removeAttribute(t)}}function Yr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Vr(t,e){return function(){this.setAttribute(t,e)}}function Xr(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Wr(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Ur(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Kr(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function $r(t){return function(){this.style.removeProperty(t)}}function Qr(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Gr(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Jr(t,e){return t.style.getPropertyValue(e)||Kr(t).getComputedStyle(t,null).getPropertyValue(e)}function Zr(t){return function(){delete this[t]}}function ti(t,e){return function(){this[t]=e}}function ei(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function ni(t){return t.trim().split(/^|\s+/)}function ri(t){return t.classList||new ii(t)}function ii(t){this._node=t,this._names=ni(t.getAttribute("class")||"")}function oi(t,e){for(var n=ri(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function si(t,e){for(var n=ri(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function ai(t){return function(){oi(this,t)}}function ci(t){return function(){si(this,t)}}function li(t,e){return function(){(e.apply(this,arguments)?oi:si)(this,t)}}function ui(){this.textContent=""}function fi(t){return function(){this.textContent=t}}function hi(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function pi(){this.innerHTML=""}function di(t){return function(){this.innerHTML=t}}function gi(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function mi(){this.nextSibling&&this.parentNode.appendChild(this)}function vi(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function yi(){return null}function _i(){var t=this.parentNode;t&&t.removeChild(this)}function bi(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function wi(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function xi(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function Ei(t,e,n){return function(){var r,i=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var s=0,a=i.length;s<a;++s)if((r=i[s]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=e);this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function Ai(t,e,n){var r=Kr(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function ki(t,e){return function(){return Ai(this,t,e)}}function Oi(t,e){return function(){return Ai(this,t,e.apply(this,arguments))}}zr.prototype={constructor:zr,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},ii.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Ci=[null];function Ti(t,e){this._groups=t,this._parents=e}function Ni(){return new Ti([[document.documentElement]],Ci)}function Mi(t){return"string"==typeof t?new Ti([[document.querySelector(t)]],[document.documentElement]):new Ti([[t]],Ci)}function Si(t,e){if(t=function(t){let e;for(;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}Ti.prototype=Ni.prototype={constructor:Ti,select:function(t){"function"!=typeof t&&(t=kr(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,s,a=e[i],c=a.length,l=r[i]=new Array(c),u=0;u<c;++u)(o=a[u])&&(s=t.call(o,o.__data__,u,a))&&("__data__"in o&&(s.__data__=o.__data__),l[u]=s);return new Ti(r,this._parents)},selectAll:function(t){t="function"==typeof t?Tr(t):Cr(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var s,a=e[o],c=a.length,l=0;l<c;++l)(s=a[l])&&(r.push(t.call(s,s.__data__,l,a)),i.push(s));return new Ti(r,i)},selectChild:function(t){return this.select(null==t?Lr:function(t){return function(){return Sr.call(this.children,t)}}("function"==typeof t?t:Mr(t)))},selectChildren:function(t){return this.selectAll(null==t?Pr:function(t){return function(){return jr.call(this.children,t)}}("function"==typeof t?t:Mr(t)))},filter:function(t){"function"!=typeof t&&(t=Nr(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,s=e[i],a=s.length,c=r[i]=[],l=0;l<a;++l)(o=s[l])&&t.call(o,o.__data__,l,s)&&c.push(o);return new Ti(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,qr);var n=e?Ir:Br,r=this._parents,i=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var o=i.length,s=new Array(o),a=new Array(o),c=new Array(o),l=0;l<o;++l){var u=r[l],f=i[l],h=f.length,p=Hr(t.call(u,u&&u.__data__,l,r)),d=p.length,g=a[l]=new Array(d),m=s[l]=new Array(d);n(u,f,g,m,c[l]=new Array(h),p,e);for(var v,y,_=0,b=0;_<d;++_)if(v=g[_]){for(_>=b&&(b=_+1);!(y=m[b])&&++b<d;);v._next=y||null}}return(s=new Ti(s,r))._enter=a,s._exit=c,s},enter:function(){return new Ti(this._enter||this._groups.map(Dr),this._parents)},exit:function(){return new Ti(this._exit||this._groups.map(Dr),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,s=Math.min(i,o),a=new Array(i),c=0;c<s;++c)for(var l,u=n[c],f=r[c],h=u.length,p=a[c]=new Array(h),d=0;d<h;++d)(l=u[d]||f[d])&&(p[d]=l);for(;c<i;++c)a[c]=n[c];return new Ti(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,s=i[o];--o>=0;)(r=i[o])&&(s&&4^r.compareDocumentPosition(s)&&s.parentNode.insertBefore(r,s),s=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Rr);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s,a=n[o],c=a.length,l=i[o]=new Array(c),u=0;u<c;++u)(s=a[u])&&(l[u]=s);l.sort(e)}return new Ti(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],s=0,a=o.length;s<a;++s)(i=o[s])&&t.call(i,i.__data__,s,o);return this},attr:function(t,e){var n=br(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?Yr:Fr:"function"==typeof e?n.local?Ur:Wr:n.local?Xr:Vr)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?$r:"function"==typeof e?Gr:Qr)(t,e,null==n?"":n)):Jr(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Zr:"function"==typeof e?ei:ti)(t,e)):this.node()[t]},classed:function(t,e){var n=ni(t+"");if(arguments.length<2){for(var r=ri(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?li:e?ai:ci)(n,e))},text:function(t){return arguments.length?this.each(null==t?ui:("function"==typeof t?hi:fi)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?pi:("function"==typeof t?gi:di)(t)):this.node().innerHTML},raise:function(){return this.each(mi)},lower:function(){return this.each(vi)},append:function(t){var e="function"==typeof t?t:Er(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:Er(t),r=null==e?yi:"function"==typeof e?e:kr(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(_i)},clone:function(t){return this.select(t?wi:bi)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=function(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}(t+""),s=o.length;if(!(arguments.length<2)){for(a=e?Ei:xi,r=0;r<s;++r)this.each(a(o[r],e,n));return this}var a=this.node().__on;if(a)for(var c,l=0,u=a.length;l<u;++l)for(r=0,c=a[l];r<s;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,e){return this.each(("function"==typeof e?Oi:ki)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,s=i.length;o<s;++o)(r=i[o])&&(yield r)}};const Li={passive:!1},ji={capture:!0,passive:!1};function Pi(t){t.stopImmediatePropagation()}function Di(t){t.preventDefault(),t.stopImmediatePropagation()}function zi(t){var e=t.document.documentElement,n=Mi(t).on("dragstart.drag",Di,ji);"onselectstart"in e?n.on("selectstart.drag",Di,ji):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function Bi(t,e){var n=t.document.documentElement,r=Mi(t).on("dragstart.drag",null);e&&(r.on("click.drag",Di,ji),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var Ii=t=>()=>t;function qi(t,e){let n=e.sourceEvent,r=e.subject,i=e.target,o=e.identifier,s=e.active,a=e.x,c=e.y,l=e.dx,u=e.dy,f=e.dispatch;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:s,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:c,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:f}})}function Hi(t){return!t.ctrlKey&&!t.button}function Ri(){return this.parentNode}function Fi(t,e){return null==e?{x:t.x,y:t.y}:e}function Yi(){return navigator.maxTouchPoints||"ontouchstart"in this}function Vi(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Xi(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Wi(){}qi.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Ui=.7,Ki=1/Ui,$i="\\s*([+-]?\\d+)\\s*",Qi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ji=/^#([0-9a-f]{3,8})$/,Zi=new RegExp("^rgb\\(".concat($i,",").concat($i,",").concat($i,"\\)$")),to=new RegExp("^rgb\\(".concat(Gi,",").concat(Gi,",").concat(Gi,"\\)$")),eo=new RegExp("^rgba\\(".concat($i,",").concat($i,",").concat($i,",").concat(Qi,"\\)$")),no=new RegExp("^rgba\\(".concat(Gi,",").concat(Gi,",").concat(Gi,",").concat(Qi,"\\)$")),ro=new RegExp("^hsl\\(".concat(Qi,",").concat(Gi,",").concat(Gi,"\\)$")),io=new RegExp("^hsla\\(".concat(Qi,",").concat(Gi,",").concat(Gi,",").concat(Qi,"\\)$")),oo={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function so(){return this.rgb().formatHex()}function ao(){return this.rgb().formatRgb()}function co(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Ji.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?lo(e):3===n?new ho(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?uo(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?uo(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Zi.exec(t))?new ho(e[1],e[2],e[3],1):(e=to.exec(t))?new ho(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=eo.exec(t))?uo(e[1],e[2],e[3],e[4]):(e=no.exec(t))?uo(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ro.exec(t))?_o(e[1],e[2]/100,e[3]/100,1):(e=io.exec(t))?_o(e[1],e[2]/100,e[3]/100,e[4]):oo.hasOwnProperty(t)?lo(oo[t]):"transparent"===t?new ho(NaN,NaN,NaN,0):null}function lo(t){return new ho(t>>16&255,t>>8&255,255&t,1)}function uo(t,e,n,r){return r<=0&&(t=e=n=NaN),new ho(t,e,n,r)}function fo(t,e,n,r){return 1===arguments.length?((i=t)instanceof Wi||(i=co(i)),i?new ho((i=i.rgb()).r,i.g,i.b,i.opacity):new ho):new ho(t,e,n,null==r?1:r);var i}function ho(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function po(){return"#".concat(yo(this.r)).concat(yo(this.g)).concat(yo(this.b))}function go(){const t=mo(this.opacity);return"".concat(1===t?"rgb(":"rgba(").concat(vo(this.r),", ").concat(vo(this.g),", ").concat(vo(this.b)).concat(1===t?")":", ".concat(t,")"))}function mo(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function vo(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function yo(t){return((t=vo(t))<16?"0":"")+t.toString(16)}function _o(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new wo(t,e,n,r)}function bo(t){if(t instanceof wo)return new wo(t.h,t.s,t.l,t.opacity);if(t instanceof Wi||(t=co(t)),!t)return new wo;if(t instanceof wo)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,a=o-i,c=(o+i)/2;return a?(s=e===o?(n-r)/a+6*(n<r):n===o?(r-e)/a+2:(e-n)/a+4,a/=c<.5?o+i:2-o-i,s*=60):a=c>0&&c<1?0:s,new wo(s,a,c,t.opacity)}function wo(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function xo(t){return(t=(t||0)%360)<0?t+360:t}function Eo(t){return Math.max(0,Math.min(1,t||0))}function Ao(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Vi(Wi,co,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:so,formatHex:so,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return bo(this).formatHsl()},formatRgb:ao,toString:ao}),Vi(ho,fo,Xi(Wi,{brighter(t){return t=null==t?Ki:Math.pow(Ki,t),new ho(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Ui:Math.pow(Ui,t),new ho(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ho(vo(this.r),vo(this.g),vo(this.b),mo(this.opacity))},displayable(){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:po,formatHex:po,formatHex8:function(){return"#".concat(yo(this.r)).concat(yo(this.g)).concat(yo(this.b)).concat(yo(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:go,toString:go})),Vi(wo,function(t,e,n,r){return 1===arguments.length?bo(t):new wo(t,e,n,null==r?1:r)},Xi(Wi,{brighter(t){return t=null==t?Ki:Math.pow(Ki,t),new wo(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Ui:Math.pow(Ui,t),new wo(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new ho(Ao(t>=240?t-240:t+120,i,r),Ao(t,i,r),Ao(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new wo(xo(this.h),Eo(this.s),Eo(this.l),mo(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=mo(this.opacity);return"".concat(1===t?"hsl(":"hsla(").concat(xo(this.h),", ").concat(100*Eo(this.s),"%, ").concat(100*Eo(this.l),"%").concat(1===t?")":", ".concat(t,")"))}}));var ko=t=>()=>t;function Oo(t){return 1===(t=+t)?Co:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):ko(isNaN(e)?n:e)}}function Co(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):ko(isNaN(t)?e:t)}var To=function t(e){var n=Oo(e);function r(t,e){var r=n((t=fo(t)).r,(e=fo(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),s=Co(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=s(e),t+""}}return r.gamma=t,r}(1);function No(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var Mo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,So=new RegExp(Mo.source,"g");function Lo(t,e){var n,r,i,o=Mo.lastIndex=So.lastIndex=0,s=-1,a=[],c=[];for(t+="",e+="";(n=Mo.exec(t))&&(r=So.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),a[s]?a[s]+=i:a[++s]=i),(n=n[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,c.push({i:s,x:No(n,r)})),o=So.lastIndex;return o<e.length&&(i=e.slice(o),a[s]?a[s]+=i:a[++s]=i),a.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,r=0;r<e;++r)a[(n=c[r]).i]=n.x(t);return a.join("")})}var jo,Po=180/Math.PI,Do={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function zo(t,e,n,r,i,o){var s,a,c;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,c/=a),t*r<e*n&&(t=-t,e=-e,c=-c,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*Po,skewX:Math.atan(c)*Po,scaleX:s,scaleY:a}}function Bo(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,s){var a=[],c=[];return o=t(o),s=t(s),function(t,r,i,o,s,a){if(t!==i||r!==o){var c=s.push("translate(",null,e,null,n);a.push({i:c-4,x:No(t,i)},{i:c-2,x:No(r,o)})}else(i||o)&&s.push("translate("+i+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,a,c),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:No(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,s.rotate,a,c),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:No(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,s.skewX,a,c),function(t,e,n,r,o,s){if(t!==n||e!==r){var a=o.push(i(o)+"scale(",null,",",null,")");s.push({i:a-4,x:No(t,n)},{i:a-2,x:No(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,a,c),o=s=null,function(t){for(var e,n=-1,r=c.length;++n<r;)a[(e=c[n]).i]=e.x(t);return a.join("")}}}var Io=Bo(function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Do:zo(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),qo=Bo(function(t){return null==t?Do:(jo||(jo=document.createElementNS("http://www.w3.org/2000/svg","g")),jo.setAttribute("transform",t),(t=jo.transform.baseVal.consolidate())?zo((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Do)},", ",")",")");function Ho(t){return((t=Math.exp(t))+1/t)/2}var Ro,Fo,Yo=function t(e,n,r){function i(t,i){var o,s,a=t[0],c=t[1],l=t[2],u=i[0],f=i[1],h=i[2],p=u-a,d=f-c,g=p*p+d*d;if(g<1e-12)s=Math.log(h/l)/e,o=function(t){return[a+t*p,c+t*d,l*Math.exp(e*t*s)]};else{var m=Math.sqrt(g),v=(h*h-l*l+r*g)/(2*l*n*m),y=(h*h-l*l-r*g)/(2*h*n*m),_=Math.log(Math.sqrt(v*v+1)-v),b=Math.log(Math.sqrt(y*y+1)-y);s=(b-_)/e,o=function(t){var r=t*s,i=Ho(_),o=l/(n*m)*(i*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(e*r+_)-function(t){return((t=Math.exp(t))-1/t)/2}(_));return[a+o*p,c+o*d,l*i/Ho(e*r+_)]}}return o.duration=1e3*s*e/Math.SQRT2,o}return i.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},i}(Math.SQRT2,2,4),Vo=0,Xo=0,Wo=0,Uo=0,Ko=0,$o=0,Qo="object"==typeof performance&&performance.now?performance:Date,Go="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Jo(){return Ko||(Go(Zo),Ko=Qo.now()+$o)}function Zo(){Ko=0}function ts(){this._call=this._time=this._next=null}function es(t,e,n){var r=new ts;return r.restart(t,e,n),r}function ns(){Ko=(Uo=Qo.now())+$o,Vo=Xo=0;try{!function(){Jo(),++Vo;for(var t,e=Ro;e;)(t=Ko-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Vo}()}finally{Vo=0,function(){var t,e,n=Ro,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Ro=e);Fo=t,is(r)}(),Ko=0}}function rs(){var t=Qo.now(),e=t-Uo;e>1e3&&($o-=e,Uo=t)}function is(t){Vo||(Xo&&(Xo=clearTimeout(Xo)),t-Ko>24?(t<1/0&&(Xo=setTimeout(ns,t-Qo.now()-$o)),Wo&&(Wo=clearInterval(Wo))):(Wo||(Uo=Qo.now(),Wo=setInterval(rs,1e3)),Vo=1,Go(ns)))}function os(t,e,n){var r=new ts;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r}ts.prototype=es.prototype={constructor:ts,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Jo():+n)+(null==e?0:+e),this._next||Fo===this||(Fo?Fo._next=this:Ro=this,Fo=this),this._call=t,this._time=n,is()},stop:function(){this._call&&(this._call=null,this._time=1/0,is())}};var ss=dr("start","end","cancel","interrupt"),as=[];function cs(t,e,n,r,i,o){var s=t.__transition;if(s){if(n in s)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(t){n.state=1,n.timer.restart(s,n.delay,n.time),n.delay<=t&&s(t-n.delay)}function s(o){var l,u,f,h;if(1!==n.state)return c();for(l in i)if((h=i[l]).name===n.name){if(3===h.state)return os(s);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[l]):+l<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[l])}if(os(function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(o))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(f=n.tween.length),l=0,u=-1;l<f;++l)(h=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(r[++u]=h);r.length=u+1}}function a(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(c),n.state=5,1),o=-1,s=r.length;++o<s;)r[o].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=es(o,0,n.time)}(t,n,{name:e,index:r,group:i,on:ss,tween:as,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function ls(t,e){var n=fs(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function us(t,e){var n=fs(t,e);if(n.state>3)throw new Error("too late; already running");return n}function fs(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function hs(t,e){var n,r,i,o=t.__transition,s=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):s=!1;s&&delete t.__transition}}function ps(t,e){var n,r;return function(){var i=us(this,t),o=i.tween;if(o!==n)for(var s=0,a=(r=n=o).length;s<a;++s)if(r[s].name===e){(r=r.slice()).splice(s,1);break}i.tween=r}}function ds(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=us(this,t),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:e,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===e){i[c]=a;break}c===l&&i.push(a)}o.tween=i}}function gs(t,e,n){var r=t._id;return t.each(function(){var t=us(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return fs(t,r).value[e]}}function ms(t,e){var n;return("number"==typeof e?No:e instanceof co?To:(n=co(e))?(e=n,To):Lo)(t,e)}function vs(t){return function(){this.removeAttribute(t)}}function ys(t){return function(){this.removeAttributeNS(t.space,t.local)}}function _s(t,e,n){var r,i,o=n+"";return function(){var s=this.getAttribute(t);return s===o?null:s===r?i:i=e(r=s,n)}}function bs(t,e,n){var r,i,o=n+"";return function(){var s=this.getAttributeNS(t.space,t.local);return s===o?null:s===r?i:i=e(r=s,n)}}function ws(t,e,n){var r,i,o;return function(){var s,a,c=n(this);if(null!=c)return(s=this.getAttribute(t))===(a=c+"")?null:s===r&&a===i?o:(i=a,o=e(r=s,c));this.removeAttribute(t)}}function xs(t,e,n){var r,i,o;return function(){var s,a,c=n(this);if(null!=c)return(s=this.getAttributeNS(t.space,t.local))===(a=c+"")?null:s===r&&a===i?o:(i=a,o=e(r=s,c));this.removeAttributeNS(t.space,t.local)}}function Es(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,i)),n}return i._value=e,i}function As(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,i)),n}return i._value=e,i}function ks(t,e){return function(){ls(this,t).delay=+e.apply(this,arguments)}}function Os(t,e){return e=+e,function(){ls(this,t).delay=e}}function Cs(t,e){return function(){us(this,t).duration=+e.apply(this,arguments)}}function Ts(t,e){return e=+e,function(){us(this,t).duration=e}}var Ns=Ni.prototype.constructor;function Ms(t){return function(){this.style.removeProperty(t)}}var Ss=0;function Ls(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function js(){return++Ss}var Ps=Ni.prototype;Ls.prototype={constructor:Ls,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=kr(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a,c,l=r[s],u=l.length,f=o[s]=new Array(u),h=0;h<u;++h)(a=l[h])&&(c=t.call(a,a.__data__,h,l))&&("__data__"in a&&(c.__data__=a.__data__),f[h]=c,cs(f[h],e,n,h,f,fs(a,n)));return new Ls(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Cr(t));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var c,l=r[a],u=l.length,f=0;f<u;++f)if(c=l[f]){for(var h,p=t.call(c,c.__data__,f,l),d=fs(c,n),g=0,m=p.length;g<m;++g)(h=p[g])&&cs(h,e,n,g,p,d);o.push(p),s.push(c)}return new Ls(o,s,e,n)},selectChild:Ps.selectChild,selectChildren:Ps.selectChildren,filter:function(t){"function"!=typeof t&&(t=Nr(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,s=e[i],a=s.length,c=r[i]=[],l=0;l<a;++l)(o=s[l])&&t.call(o,o.__data__,l,s)&&c.push(o);return new Ls(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var c,l=e[a],u=n[a],f=l.length,h=s[a]=new Array(f),p=0;p<f;++p)(c=l[p]||u[p])&&(h[p]=c);for(;a<r;++a)s[a]=e[a];return new Ls(s,this._parents,this._name,this._id)},selection:function(){return new Ns(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=js(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],c=a.length,l=0;l<c;++l)if(s=a[l]){var u=fs(s,e);cs(s,t,n,l,a,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Ls(r,this._parents,t,n)},call:Ps.call,nodes:Ps.nodes,node:Ps.node,size:Ps.size,empty:Ps.empty,each:Ps.each,on:function(t,e){var n=this._id;return arguments.length<2?fs(this.node(),n).on.on(t):this.each(function(t,e,n){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?ls:us;return function(){var s=o(this,t),a=s.on;a!==r&&(i=(r=a).copy()).on(e,n),s.on=i}}(n,t,e))},attr:function(t,e){var n=br(t),r="transform"===n?qo:ms;return this.attrTween(t,"function"==typeof e?(n.local?xs:ws)(n,r,gs(this,"attr."+t,e)):null==e?(n.local?ys:vs)(n):(n.local?bs:_s)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=br(t);return this.tween(n,(r.local?Es:As)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?Io:ms;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=Jr(this,t),s=(this.style.removeProperty(t),Jr(this,t));return o===s?null:o===n&&s===r?i:i=e(n=o,r=s)}}(t,r)).on("end.style."+t,Ms(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,o;return function(){var s=Jr(this,t),a=n(this),c=a+"";return null==a&&(this.style.removeProperty(t),c=a=Jr(this,t)),s===c?null:s===r&&c===i?o:(i=c,o=e(r=s,a))}}(t,r,gs(this,"style."+t,e))).each(function(t,e){var n,r,i,o,s="style."+e,a="end."+s;return function(){var c=us(this,t),l=c.on,u=null==c.value[s]?o||(o=Ms(e)):void 0;l===n&&i===u||(r=(n=l).copy()).on(a,i=u),c.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,o=n+"";return function(){var s=Jr(this,t);return s===o?null:s===r?i:i=e(r=s,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}(t,o,n)),r}return o._value=e,o}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(gs(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){return function(e){this.textContent=t.call(this,e)}}(r)),e}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=fs(this.node(),n).tween,o=0,s=i.length;o<s;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?ps:ds)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?ks:Os)(e,t)):fs(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Cs:Ts)(e,t)):fs(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){us(this,t).ease=e}}(e,t)):fs(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;us(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var a={value:s},c={value:function(){0===--i&&o()}};n.each(function(){var n=us(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(c)),n.on=e}),0===i&&o()})},[Symbol.iterator]:Ps[Symbol.iterator]};var Ds={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function zs(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error("transition ".concat(e," not found"));return n}function Bs(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o,s,a,c,l,u,f,h,p=t._root,d={data:r},g=t._x0,m=t._y0,v=t._x1,y=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((l=e>=(o=(g+v)/2))?g=o:v=o,(u=n>=(s=(m+y)/2))?m=s:y=s,i=p,!(p=p[f=u<<1|l]))return i[f]=d,t;if(a=+t._x.call(null,p.data),c=+t._y.call(null,p.data),e===a&&n===c)return d.next=p,i?i[f]=d:t._root=d,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(l=e>=(o=(g+v)/2))?g=o:v=o,(u=n>=(s=(m+y)/2))?m=s:y=s}while((f=u<<1|l)==(h=(c>=s)<<1|a>=o));return i[h]=p,i[f]=d,t}function Is(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function qs(t){return t[0]}function Hs(t){return t[1]}function Rs(t,e,n){var r=new Fs(null==e?qs:e,null==n?Hs:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Fs(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Ys(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}Ni.prototype.interrupt=function(t){return this.each(function(){hs(this,t)})},Ni.prototype.transition=function(t){var e,n;t instanceof Ls?(e=t._id,t=t._name):(e=js(),(n=Ds).time=Jo(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],c=a.length,l=0;l<c;++l)(s=a[l])&&cs(s,t,e,l,a,n||zs(s,e));return new Ls(r,this._parents,t,e)};var Vs=Rs.prototype=Fs.prototype;function Xs(t){return function(){return t}}function Ws(t){return 1e-6*(t()-.5)}function Us(t){return t.x+t.vx}function Ks(t){return t.y+t.vy}function $s(t){return t.index}function Qs(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}Vs.copy=function(){var t,e,n=new Fs(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=Ys(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=Ys(e));return n},Vs.add=function(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return Bs(this.cover(e,n),e,n,t)},Vs.addAll=function(t){var e,n,r,i,o=t.length,s=new Array(o),a=new Array(o),c=1/0,l=1/0,u=-1/0,f=-1/0;for(n=0;n<o;++n)isNaN(r=+this._x.call(null,e=t[n]))||isNaN(i=+this._y.call(null,e))||(s[n]=r,a[n]=i,r<c&&(c=r),r>u&&(u=r),i<l&&(l=i),i>f&&(f=i));if(c>u||l>f)return this;for(this.cover(c,l).cover(u,f),n=0;n<o;++n)Bs(this,s[n],a[n],t[n]);return this},Vs.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{for(var s,a,c=i-n||1,l=this._root;n>t||t>=i||r>e||e>=o;)switch(a=(e<r)<<1|t<n,(s=new Array(4))[a]=l,l=s,c*=2,a){case 0:i=n+c,o=r+c;break;case 1:n=i-c,o=r+c;break;case 2:i=n+c,r=o-c;break;case 3:n=i-c,r=o-c}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},Vs.data=function(){var t=[];return this.visit(function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)}),t},Vs.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Vs.find=function(t,e,n){var r,i,o,s,a,c,l,u=this._x0,f=this._y0,h=this._x1,p=this._y1,d=[],g=this._root;for(g&&d.push(new Is(g,u,f,h,p)),null==n?n=1/0:(u=t-n,f=e-n,h=t+n,p=e+n,n*=n);c=d.pop();)if(!(!(g=c.node)||(i=c.x0)>h||(o=c.y0)>p||(s=c.x1)<u||(a=c.y1)<f))if(g.length){var m=(i+s)/2,v=(o+a)/2;d.push(new Is(g[3],m,v,s,a),new Is(g[2],i,v,m,a),new Is(g[1],m,o,s,v),new Is(g[0],i,o,m,v)),(l=(e>=v)<<1|t>=m)&&(c=d[d.length-1],d[d.length-1]=d[d.length-1-l],d[d.length-1-l]=c)}else{var y=t-+this._x.call(null,g.data),_=e-+this._y.call(null,g.data),b=y*y+_*_;if(b<n){var w=Math.sqrt(n=b);u=t-w,f=e-w,h=t+w,p=e+w,r=g.data}}return r},Vs.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(s=+this._y.call(null,t)))return this;var e,n,r,i,o,s,a,c,l,u,f,h,p=this._root,d=this._x0,g=this._y0,m=this._x1,v=this._y1;if(!p)return this;if(p.length)for(;;){if((l=o>=(a=(d+m)/2))?d=a:m=a,(u=s>=(c=(g+v)/2))?g=c:v=c,e=p,!(p=p[f=u<<1|l]))return this;if(!p.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(n=e,h=f)}for(;p.data!==t;)if(r=p,!(p=p.next))return this;return(i=p.next)&&delete p.next,r?(i?r.next=i:delete r.next,this):e?(i?e[f]=i:delete e[f],(p=e[0]||e[1]||e[2]||e[3])&&p===(e[3]||e[2]||e[1]||e[0])&&!p.length&&(n?n[h]=p:this._root=p),this):(this._root=i,this)},Vs.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},Vs.root=function(){return this._root},Vs.size=function(){var t=0;return this.visit(function(e){if(!e.length)do{++t}while(e=e.next)}),t},Vs.visit=function(t){var e,n,r,i,o,s,a=[],c=this._root;for(c&&a.push(new Is(c,this._x0,this._y0,this._x1,this._y1));e=a.pop();)if(!t(c=e.node,r=e.x0,i=e.y0,o=e.x1,s=e.y1)&&c.length){var l=(r+o)/2,u=(i+s)/2;(n=c[3])&&a.push(new Is(n,l,u,o,s)),(n=c[2])&&a.push(new Is(n,r,u,l,s)),(n=c[1])&&a.push(new Is(n,l,i,o,u)),(n=c[0])&&a.push(new Is(n,r,i,l,u))}return this},Vs.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new Is(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var i=e.node;if(i.length){var o,s=e.x0,a=e.y0,c=e.x1,l=e.y1,u=(s+c)/2,f=(a+l)/2;(o=i[0])&&n.push(new Is(o,s,a,u,f)),(o=i[1])&&n.push(new Is(o,u,a,c,f)),(o=i[2])&&n.push(new Is(o,s,f,u,l)),(o=i[3])&&n.push(new Is(o,u,f,c,l))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},Vs.x=function(t){return arguments.length?(this._x=t,this):this._x},Vs.y=function(t){return arguments.length?(this._y=t,this):this._y};const Gs=4294967296;function Js(t){return t.x}function Zs(t){return t.y}var ta=Math.PI*(3-Math.sqrt(5));var ea=t=>()=>t;function na(t,e){let n=e.sourceEvent,r=e.target,i=e.transform,o=e.dispatch;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function ra(t,e,n){this.k=t,this.x=e,this.y=n}ra.prototype={constructor:ra,scale:function(t){return 1===t?this:new ra(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new ra(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ia=new ra(1,0,0);function oa(t){t.stopImmediatePropagation()}function sa(t){t.preventDefault(),t.stopImmediatePropagation()}function aa(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function ca(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function la(){return this.__zoom||ia}function ua(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function fa(){return navigator.maxTouchPoints||"ontouchstart"in this}function ha(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],s=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}ra.prototype;const pa={select:Mi,zoom:function(){var t,e,n,r=aa,i=ca,o=ha,s=ua,a=fa,c=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],u=250,f=Yo,h=dr("start","zoom","end"),p=0,d=10;function g(t){t.property("__zoom",la).on("wheel.zoom",x,{passive:!1}).on("mousedown.zoom",E).on("dblclick.zoom",A).filter(a).on("touchstart.zoom",k).on("touchmove.zoom",O).on("touchend.zoom touchcancel.zoom",C).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(t,e){return(e=Math.max(c[0],Math.min(c[1],e)))===t.k?t:new ra(e,t.x,t.y)}function v(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new ra(t.k,r,i)}function y(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function _(t,e,n,r){t.on("start.zoom",function(){b(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){b(this,arguments).event(r).end()}).tween("zoom",function(){var t=this,o=arguments,s=b(t,o).event(r),a=i.apply(t,o),c=null==n?y(a):"function"==typeof n?n.apply(t,o):n,l=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),u=t.__zoom,h="function"==typeof e?e.apply(t,o):e,p=f(u.invert(c).concat(l/u.k),h.invert(c).concat(l/h.k));return function(t){if(1===t)t=h;else{var e=p(t),n=l/e[2];t=new ra(n,c[0]-e[0]*n,c[1]-e[1]*n)}s.zoom(null,t)}})}function b(t,e,n){return!n&&t.__zooming||new w(t,e)}function w(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,e),this.taps=0}function x(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];if(r.apply(this,arguments)){var a=b(this,n).event(t),u=this.__zoom,f=Math.max(c[0],Math.min(c[1],u.k*Math.pow(2,s.apply(this,arguments)))),h=Si(t);if(a.wheel)a.mouse[0][0]===h[0]&&a.mouse[0][1]===h[1]||(a.mouse[1]=u.invert(a.mouse[0]=h)),clearTimeout(a.wheel);else{if(u.k===f)return;a.mouse=[h,u.invert(h)],hs(this),a.start()}sa(t),a.wheel=setTimeout(function(){a.wheel=null,a.end()},150),a.zoom("mouse",o(v(m(u,f),a.mouse[0],a.mouse[1]),a.extent,l))}}function E(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];if(!n&&r.apply(this,arguments)){var a=t.currentTarget,c=b(this,i,!0).event(t),u=Mi(t.view).on("mousemove.zoom",function(t){if(sa(t),!c.moved){var e=t.clientX-h,n=t.clientY-d;c.moved=e*e+n*n>p}c.event(t).zoom("mouse",o(v(c.that.__zoom,c.mouse[0]=Si(t,a),c.mouse[1]),c.extent,l))},!0).on("mouseup.zoom",function(t){u.on("mousemove.zoom mouseup.zoom",null),Bi(t.view,c.moved),sa(t),c.event(t).end()},!0),f=Si(t,a),h=t.clientX,d=t.clientY;zi(t.view),oa(t),c.mouse=[f,this.__zoom.invert(f)],hs(this),c.start()}}function A(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),s=1;s<e;s++)n[s-1]=arguments[s];if(r.apply(this,arguments)){var a=this.__zoom,c=Si(t.changedTouches?t.changedTouches[0]:t,this),f=a.invert(c),h=a.k*(t.shiftKey?.5:2),p=o(v(m(a,h),c,f),i.apply(this,n),l);sa(t),u>0?Mi(this).transition().duration(u).call(_,p,c,t):Mi(this).call(g.transform,p,c,t)}}function k(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];if(r.apply(this,arguments)){var a,c,l,u,f=n.touches,h=f.length,p=b(this,o,n.changedTouches.length===h).event(n);for(oa(n),c=0;c<h;++c)u=[u=Si(l=f[c],this),this.__zoom.invert(u),l.identifier],p.touch0?p.touch1||p.touch0[2]===u[2]||(p.touch1=u,p.taps=0):(p.touch0=u,a=!0,p.taps=1+!!t);t&&(t=clearTimeout(t)),a&&(p.taps<2&&(e=u[0],t=setTimeout(function(){t=null},500)),hs(this),p.start())}}function O(t){if(this.__zooming){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i,s,a,c,u=b(this,n).event(t),f=t.changedTouches,h=f.length;for(sa(t),i=0;i<h;++i)a=Si(s=f[i],this),u.touch0&&u.touch0[2]===s.identifier?u.touch0[0]=a:u.touch1&&u.touch1[2]===s.identifier&&(u.touch1[0]=a);if(s=u.that.__zoom,u.touch1){var p=u.touch0[0],d=u.touch0[1],g=u.touch1[0],y=u.touch1[1],_=(_=g[0]-p[0])*_+(_=g[1]-p[1])*_,w=(w=y[0]-d[0])*w+(w=y[1]-d[1])*w;s=m(s,Math.sqrt(_/w)),a=[(p[0]+g[0])/2,(p[1]+g[1])/2],c=[(d[0]+y[0])/2,(d[1]+y[1])/2]}else{if(!u.touch0)return;a=u.touch0[0],c=u.touch0[1]}u.zoom("touch",o(v(s,a,c),u.extent,l))}}function C(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.__zooming){var s,a,c=b(this,i).event(t),l=t.changedTouches,u=l.length;for(oa(t),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),s=0;s<u;++s)a=l[s],c.touch0&&c.touch0[2]===a.identifier?delete c.touch0:c.touch1&&c.touch1[2]===a.identifier&&delete c.touch1;if(c.touch1&&!c.touch0&&(c.touch0=c.touch1,delete c.touch1),c.touch0)c.touch0[1]=this.__zoom.invert(c.touch0[0]);else if(c.end(),2===c.taps&&(a=Si(a,this),Math.hypot(e[0]-a[0],e[1]-a[1])<d)){var f=Mi(this).on("dblclick.zoom");f&&f.apply(this,arguments)}}}return g.transform=function(t,e,n,r){var i=t.selection?t.selection():t;i.property("__zoom",la),t!==i?_(t,e,n,r):i.interrupt().each(function(){b(this,arguments).event(r).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})},g.scaleBy=function(t,e,n,r){g.scaleTo(t,function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)},n,r)},g.scaleTo=function(t,e,n,r){g.transform(t,function(){var t=i.apply(this,arguments),r=this.__zoom,s=null==n?y(t):"function"==typeof n?n.apply(this,arguments):n,a=r.invert(s),c="function"==typeof e?e.apply(this,arguments):e;return o(v(m(r,c),s,a),t,l)},n,r)},g.translateBy=function(t,e,n,r){g.transform(t,function(){return o(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),l)},null,r)},g.translateTo=function(t,e,n,r,s){g.transform(t,function(){var t=i.apply(this,arguments),s=this.__zoom,a=null==r?y(t):"function"==typeof r?r.apply(this,arguments):r;return o(ia.translate(a[0],a[1]).scale(s.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,l)},r,s)},w.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1===++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0===--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=Mi(this.that).datum();h.call(t,this.that,new na(t,{sourceEvent:this.sourceEvent,target:g,transform:this.that.__zoom,dispatch:h}),e)}},g.wheelDelta=function(t){return arguments.length?(s="function"==typeof t?t:ea(+t),g):s},g.filter=function(t){return arguments.length?(r="function"==typeof t?t:ea(!!t),g):r},g.touchable=function(t){return arguments.length?(a="function"==typeof t?t:ea(!!t),g):a},g.extent=function(t){return arguments.length?(i="function"==typeof t?t:ea([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),g):i},g.scaleExtent=function(t){return arguments.length?(c[0]=+t[0],c[1]=+t[1],g):[c[0],c[1]]},g.translateExtent=function(t){return arguments.length?(l[0][0]=+t[0][0],l[1][0]=+t[1][0],l[0][1]=+t[0][1],l[1][1]=+t[1][1],g):[[l[0][0],l[0][1]],[l[1][0],l[1][1]]]},g.constrain=function(t){return arguments.length?(o=t,g):o},g.duration=function(t){return arguments.length?(u=+t,g):u},g.interpolate=function(t){return arguments.length?(f=t,g):f},g.on=function(){var t=h.on.apply(h,arguments);return t===h?g:t},g.clickDistance=function(t){return arguments.length?(p=(t=+t)*t,g):Math.sqrt(p)},g.tapDistance=function(t){return arguments.length?(d=+t,g):d},g},drag:function(){var t,e,n,r,i=Hi,o=Ri,s=Fi,a=Yi,c={},l=dr("start","drag","end"),u=0,f=0;function h(t){t.on("mousedown.drag",p).filter(a).on("touchstart.drag",m).on("touchmove.drag",v,Li).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(s,a){if(!r&&i.call(this,s,a)){var c=_(this,o.call(this,s,a),s,a,"mouse");c&&(Mi(s.view).on("mousemove.drag",d,ji).on("mouseup.drag",g,ji),zi(s.view),Pi(s),n=!1,t=s.clientX,e=s.clientY,c("start",s))}}function d(r){if(Di(r),!n){var i=r.clientX-t,o=r.clientY-e;n=i*i+o*o>f}c.mouse("drag",r)}function g(t){Mi(t.view).on("mousemove.drag mouseup.drag",null),Bi(t.view,n),Di(t),c.mouse("end",t)}function m(t,e){if(i.call(this,t,e)){var n,r,s=t.changedTouches,a=o.call(this,t,e),c=s.length;for(n=0;n<c;++n)(r=_(this,a,t,e,s[n].identifier,s[n]))&&(Pi(t),r("start",t,s[n]))}}function v(t){var e,n,r=t.changedTouches,i=r.length;for(e=0;e<i;++e)(n=c[r[e].identifier])&&(Di(t),n("drag",t,r[e]))}function y(t){var e,n,i=t.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout(function(){r=null},500),e=0;e<o;++e)(n=c[i[e].identifier])&&(Pi(t),n("end",t,i[e]))}function _(t,e,n,r,i,o){var a,f,p,d=l.copy(),g=Si(o||n,e);if(null!=(p=s.call(t,new qi("beforestart",{sourceEvent:n,target:h,identifier:i,active:u,x:g[0],y:g[1],dx:0,dy:0,dispatch:d}),r)))return a=p.x-g[0]||0,f=p.y-g[1]||0,function n(o,s,l){var m,v=g;switch(o){case"start":c[i]=n,m=u++;break;case"end":delete c[i],--u;case"drag":g=Si(l||s,e),m=u}d.call(o,t,new qi(o,{sourceEvent:s,subject:p,target:h,identifier:i,active:m,x:g[0]+a,y:g[1]+f,dx:g[0]-v[0],dy:g[1]-v[1],dispatch:d}),r)}}return h.filter=function(t){return arguments.length?(i="function"==typeof t?t:Ii(!!t),h):i},h.container=function(t){return arguments.length?(o="function"==typeof t?t:Ii(t),h):o},h.subject=function(t){return arguments.length?(s="function"==typeof t?t:Ii(t),h):s},h.touchable=function(t){return arguments.length?(a="function"==typeof t?t:Ii(!!t),h):a},h.on=function(){var t=l.on.apply(l,arguments);return t===l?h:t},h.clickDistance=function(t){return arguments.length?(f=(t=+t)*t,h):Math.sqrt(f)},h},forceSimulation:function(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,s=.6,a=new Map,c=es(f),l=dr("tick","end"),u=function(){let t=1;return()=>(t=(1664525*t+1013904223)%Gs)/Gs}();function f(){h(),l.call("tick",e),n<r&&(c.stop(),l.call("end",e))}function h(r){var c,l,u=t.length;void 0===r&&(r=1);for(var f=0;f<r;++f)for(n+=(o-n)*i,a.forEach(function(t){t(n)}),c=0;c<u;++c)null==(l=t[c]).fx?l.x+=l.vx*=s:(l.x=l.fx,l.vx=0),null==l.fy?l.y+=l.vy*=s:(l.y=l.fy,l.vy=0);return e}function p(){for(var e,n=0,r=t.length;n<r;++n){if((e=t[n]).index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=10*Math.sqrt(.5+n),o=n*ta;e.x=i*Math.cos(o),e.y=i*Math.sin(o)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function d(e){return e.initialize&&e.initialize(t,u),e}return null==t&&(t=[]),p(),e={tick:h,restart:function(){return c.restart(f),e},stop:function(){return c.stop(),e},nodes:function(n){return arguments.length?(t=n,p(),a.forEach(d),e):t},alpha:function(t){return arguments.length?(n=+t,e):n},alphaMin:function(t){return arguments.length?(r=+t,e):r},alphaDecay:function(t){return arguments.length?(i=+t,e):+i},alphaTarget:function(t){return arguments.length?(o=+t,e):o},velocityDecay:function(t){return arguments.length?(s=1-t,e):1-s},randomSource:function(t){return arguments.length?(u=t,a.forEach(d),e):u},force:function(t,n){return arguments.length>1?(null==n?a.delete(t):a.set(t,d(n)),e):a.get(t)},find:function(e,n,r){var i,o,s,a,c,l=0,u=t.length;for(null==r?r=1/0:r*=r,l=0;l<u;++l)(s=(i=e-(a=t[l]).x)*i+(o=n-a.y)*o)<r&&(c=a,r=s);return c},on:function(t,n){return arguments.length>1?(l.on(t,n),e):l.on(t)}}},forceLink:function(t){var e,n,r,i,o,s,a=$s,c=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},l=Xs(30),u=1;function f(r){for(var i=0,a=t.length;i<u;++i)for(var c,l,f,h,p,d,g,m=0;m<a;++m)l=(c=t[m]).source,h=(f=c.target).x+f.vx-l.x-l.vx||Ws(s),p=f.y+f.vy-l.y-l.vy||Ws(s),h*=d=((d=Math.sqrt(h*h+p*p))-n[m])/d*r*e[m],p*=d,f.vx-=h*(g=o[m]),f.vy-=p*g,l.vx+=h*(g=1-g),l.vy+=p*g}function h(){if(r){var s,c,l=r.length,u=t.length,f=new Map(r.map((t,e)=>[a(t,e,r),t]));for(s=0,i=new Array(l);s<u;++s)(c=t[s]).index=s,"object"!=typeof c.source&&(c.source=Qs(f,c.source)),"object"!=typeof c.target&&(c.target=Qs(f,c.target)),i[c.source.index]=(i[c.source.index]||0)+1,i[c.target.index]=(i[c.target.index]||0)+1;for(s=0,o=new Array(u);s<u;++s)c=t[s],o[s]=i[c.source.index]/(i[c.source.index]+i[c.target.index]);e=new Array(u),p(),n=new Array(u),d()}}function p(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+c(t[n],n,t)}function d(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+l(t[e],e,t)}return null==t&&(t=[]),f.initialize=function(t,e){r=t,s=e,h()},f.links=function(e){return arguments.length?(t=e,h(),f):t},f.id=function(t){return arguments.length?(a=t,f):a},f.iterations=function(t){return arguments.length?(u=+t,f):u},f.strength=function(t){return arguments.length?(c="function"==typeof t?t:Xs(+t),p(),f):c},f.distance=function(t){return arguments.length?(l="function"==typeof t?t:Xs(+t),d(),f):l},f},forceManyBody:function(){var t,e,n,r,i,o=Xs(-30),s=1,a=1/0,c=.81;function l(n){var i,o=t.length,s=Rs(t,Js,Zs).visitAfter(f);for(r=n,i=0;i<o;++i)e=t[i],s.visit(h)}function u(){if(t){var e,n,r=t.length;for(i=new Array(r),e=0;e<r;++e)n=t[e],i[n.index]=+o(n,e,t)}}function f(t){var e,n,r,o,s,a=0,c=0;if(t.length){for(r=o=s=0;s<4;++s)(e=t[s])&&(n=Math.abs(e.value))&&(a+=e.value,c+=n,r+=n*e.x,o+=n*e.y);t.x=r/c,t.y=o/c}else{(e=t).x=e.data.x,e.y=e.data.y;do{a+=i[e.data.index]}while(e=e.next)}t.value=a}function h(t,o,l,u){if(!t.value)return!0;var f=t.x-e.x,h=t.y-e.y,p=u-o,d=f*f+h*h;if(p*p/c<d)return d<a&&(0===f&&(d+=(f=Ws(n))*f),0===h&&(d+=(h=Ws(n))*h),d<s&&(d=Math.sqrt(s*d)),e.vx+=f*t.value*r/d,e.vy+=h*t.value*r/d),!0;if(!(t.length||d>=a)){(t.data!==e||t.next)&&(0===f&&(d+=(f=Ws(n))*f),0===h&&(d+=(h=Ws(n))*h),d<s&&(d=Math.sqrt(s*d)));do{t.data!==e&&(p=i[t.data.index]*r/d,e.vx+=f*p,e.vy+=h*p)}while(t=t.next)}}return l.initialize=function(e,r){t=e,n=r,u()},l.strength=function(t){return arguments.length?(o="function"==typeof t?t:Xs(+t),u(),l):o},l.distanceMin=function(t){return arguments.length?(s=t*t,l):Math.sqrt(s)},l.distanceMax=function(t){return arguments.length?(a=t*t,l):Math.sqrt(a)},l.theta=function(t){return arguments.length?(c=t*t,l):Math.sqrt(c)},l},forceCenter:function(t,e){var n,r=1;function i(){var i,o,s=n.length,a=0,c=0;for(i=0;i<s;++i)a+=(o=n[i]).x,c+=o.y;for(a=(a/s-t)*r,c=(c/s-e)*r,i=0;i<s;++i)(o=n[i]).x-=a,o.y-=c}return null==t&&(t=0),null==e&&(e=0),i.initialize=function(t){n=t},i.x=function(e){return arguments.length?(t=+e,i):t},i.y=function(t){return arguments.length?(e=+t,i):e},i.strength=function(t){return arguments.length?(r=+t,i):r},i},forceCollide:function(t){var e,n,r,i=1,o=1;function s(){for(var t,s,c,l,u,f,h,p=e.length,d=0;d<o;++d)for(s=Rs(e,Us,Ks).visitAfter(a),t=0;t<p;++t)c=e[t],f=n[c.index],h=f*f,l=c.x+c.vx,u=c.y+c.vy,s.visit(g);function g(t,e,n,o,s){var a=t.data,p=t.r,d=f+p;if(!a)return e>l+d||o<l-d||n>u+d||s<u-d;if(a.index>c.index){var g=l-a.x-a.vx,m=u-a.y-a.vy,v=g*g+m*m;v<d*d&&(0===g&&(v+=(g=Ws(r))*g),0===m&&(v+=(m=Ws(r))*m),v=(d-(v=Math.sqrt(v)))/v*i,c.vx+=(g*=v)*(d=(p*=p)/(h+p)),c.vy+=(m*=v)*d,a.vx-=g*(d=1-d),a.vy-=m*d)}}}function a(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function c(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;r<o;++r)i=e[r],n[i.index]=+t(i,r,e)}}return"function"!=typeof t&&(t=Xs(null==t?1:+t)),s.initialize=function(t,n){e=t,r=n,c()},s.iterations=function(t){return arguments.length?(o=+t,s):o},s.strength=function(t){return arguments.length?(i=+t,s):i},s.radius=function(e){return arguments.length?(t="function"==typeof e?e:Xs(+e),c(),s):t},s},forceX:function(t){var e,n,r,i=Xs(.1);function o(t){for(var i,o=0,s=e.length;o<s;++o)(i=e[o]).vx+=(r[o]-i.x)*n[o]*t}function s(){if(e){var o,s=e.length;for(n=new Array(s),r=new Array(s),o=0;o<s;++o)n[o]=isNaN(r[o]=+t(e[o],o,e))?0:+i(e[o],o,e)}}return"function"!=typeof t&&(t=Xs(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:Xs(+t),s(),o):i},o.x=function(e){return arguments.length?(t="function"==typeof e?e:Xs(+e),s(),o):t},o},forceY:function(t){var e,n,r,i=Xs(.1);function o(t){for(var i,o=0,s=e.length;o<s;++o)(i=e[o]).vy+=(r[o]-i.y)*n[o]*t}function s(){if(e){var o,s=e.length;for(n=new Array(s),r=new Array(s),o=0;o<s;++o)n[o]=isNaN(r[o]=+t(e[o],o,e))?0:+i(e[o],o,e)}}return"function"!=typeof t&&(t=Xs(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:Xs(+t),s(),o):i},o.y=function(e){return arguments.length?(t="function"==typeof e?e:Xs(+e),s(),o):t},o},zoomIdentity:ia},da=[],ga=[],ma=new Set,va={},ya={};Wn.onclick=Un.onclick=()=>Kn.toggle(),Gn.addEventListener("click",()=>{ur.on(),fr.on(),ir.focus()}),Jn.addEventListener("click",()=>{ur.off(),fr.off()}),ir.addEventListener("focus",()=>{er.classList.add(cr)}),ir.addEventListener("focusout",()=>{er.classList.remove(cr)}),ir.addEventListener("input",()=>{""===ir.value?hr()?or.classList.remove(ar):fr.off():(fr.on(),hr()&&or.classList.add(ar))}),Theme.isToggleable&&(Yn.querySelectorAll(".dropdown-item").forEach(t=>{t.dataset.themeMode!==Vn||t.classList.add(Fn)}),Yn.addEventListener("click",t=>{const e=t.target.closest(".dropdown-item");if(!e)return;const n=Yn.querySelector(".".concat(Fn));n!==e&&(n.classList.remove(Fn),e.classList.add(Fn),Theme.update(e.dataset.themeMode))})),function(){const t=document.getElementById("back-to-top");window.addEventListener("scroll",()=>{window.scrollY>50?t.classList.add("show"):t.classList.remove("show")}),t.addEventListener("click",()=>{window.scrollTo({top:0})})}(),[...document.querySelectorAll('[data-bs-toggle="tooltip"]')].map(t=>new on(t)),fetch("/assets/js/data/graph.json").then(t=>t.json()).then(t=>{t.posts.forEach(t=>{ya[t.id]={tags:t.tags,date:t.date,url:t.url},da.push({id:t.id,type:"post",url:t.url,tags:t.tags,date:t.date}),t.tags.forEach(e=>{va[e]=(va[e]||0)+1,ma.has(e)||(da.push({id:e,type:"tag",count:0}),ma.add(e)),ga.push({source:t.id,target:e,label:e})})}),da.forEach(t=>{"tag"===t.type&&(t.count=va[t.id]||0)}),function(){const t=pa.select("svg"),e=t.node().getBoundingClientRect().width,n=t.node().getBoundingClientRect().height,r=pa.zoom().scaleExtent([.3,5]).on("zoom",t=>{i.attr("transform",t.transform)});t.call(r);const i=t.append("g"),o=pa.forceSimulation(da).force("link",pa.forceLink(ga).id(t=>t.id).distance(90)).force("charge",pa.forceManyBody().strength(-300)).force("center",pa.forceCenter(e/2,n/2)).force("collide",pa.forceCollide().radius(t=>"post"===t.type?25:18)).force("x",pa.forceX(e/2).strength(.05)).force("y",pa.forceY(n/2).strength(.05)),s=i.append("g").attr("class","links").selectAll("line").data(ga).enter().append("line").attr("class","link"),a=i.append("g").attr("class","nodes").selectAll("g").data(da).enter().append("g").attr("class","node-group").call(pa.drag().on("start",l).on("drag",u).on("end",f)),c=pa.select("#graph-tooltip");function l(t,e){t.active||o.alphaTarget(.3).restart(),e.fx=e.x,e.fy=e.y}function u(t,e){e.fx=t.x,e.fy=t.y}function f(t,e){t.active||o.alphaTarget(0),e.fx=null,e.fy=null}function h(e,n){const o=i.node().getBBox(),s=o.width,a=o.height,c=o.x+s/2,l=o.y+a/2;if(0===s||0===a)return;const u=.9/Math.max(s/e,a/n),f=pa.zoomIdentity.translate(e/2-u*c,n/2-u*l).scale(u);t.transition().duration(500).call(r.transform,f)}a.append("circle").attr("class",t=>"post"===t.type?"post-node":"tag-node").attr("r",t=>"post"===t.type?8:4).on("click",(t,e)=>{"post"===e.type&&e.url?window.location.href=e.url:"tag"===e.type&&(window.location.href=function(t){const e=function(t){return encodeURIComponent(t)}(t.toString().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-"));return"/tags/".concat(e,"/")}(e.id))}).on("mouseover",function(t,e){const n=new Set;n.add(e.id),ga.forEach(t=>{const r="object"==typeof t.source?t.source.id:t.source,i="object"==typeof t.target?t.target.id:t.target;r===e.id&&n.add(i),i===e.id&&n.add(r)}),a.classed("dimmed",t=>!n.has(t.id)),s.classed("dimmed",t=>{const n="object"==typeof t.source?t.source.id:t.source,r="object"==typeof t.target?t.target.id:t.target;return n!==e.id&&r!==e.id}),c.style("opacity",1).html("post"===e.type?"<strong>".concat(e.id,'</strong><br><span class="tooltip-date">').concat(e.date||"",'</span><br><span class="tooltip-tags">').concat(e.tags?e.tags.join(", "):"",'</span><br><span class="tooltip-hint">Click to view</span>'):"<strong>".concat(e.id,'</strong><br><span class="tooltip-count">').concat(e.count," post").concat(1!==e.count?"s":"","</span>")).style("left",t.pageX+10+"px").style("top",t.pageY-10+"px")}).on("mouseout",()=>{a.classed("dimmed",!1),s.classed("dimmed",!1),c.style("opacity",0)}),a.append("text").attr("class",t=>"post"===t.type?"post-label":"tag-label").attr("dy","-12px").text(t=>t.id),o.on("tick",()=>{s.attr("x1",t=>t.source.x).attr("y1",t=>t.source.y).attr("x2",t=>t.target.x).attr("y2",t=>t.target.y),a.attr("transform",t=>"translate(".concat(t.x,",").concat(t.y,")"))}),o.on("end",()=>{h(e,n)}),window.addEventListener("resize",()=>{const e=t.node().getBoundingClientRect().width,n=t.node().getBoundingClientRect().height;o.force("center",pa.forceCenter(e/2,n/2)),t.transition().duration(500).call(r.transform,ia.translate(e/2,n/2).scale(1)),h(e,n)}),t.on("touchstart",function(t){t.preventDefault()})}()}).catch(t=>console.error("Error loading JSON:",t))}();