jekyll-theme-chirpy 7.5.0 → 7.6.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.
- checksums.yaml +4 -4
- data/README.md +33 -40
- data/_data/locales/ar.yml +7 -1
- data/_data/locales/bg-BG.yml +7 -1
- data/_data/locales/ca-ES.yml +7 -1
- data/_data/locales/cs-CZ.yml +7 -1
- data/_data/locales/da-DK.yml +7 -1
- data/_data/locales/de-DE.yml +7 -1
- data/_data/locales/dv/342/200/221MV.yml +7 -1
- data/_data/locales/el-GR.yml +7 -1
- data/_data/locales/en.yml +7 -1
- data/_data/locales/es-ES.yml +7 -1
- data/_data/locales/fa-IR.yml +7 -1
- data/_data/locales/fi-FI.yml +7 -1
- data/_data/locales/fr-FR.yml +7 -1
- data/_data/locales/hu-HU.yml +7 -1
- data/_data/locales/id-ID.yml +7 -1
- data/_data/locales/it-IT.yml +7 -1
- data/_data/locales/ja-JP.yml +7 -1
- data/_data/locales/ko-KR.yml +7 -1
- data/_data/locales/ku-IQ.yml +7 -1
- data/_data/locales/my-MM.yml +7 -1
- data/_data/locales/nl-NL.yml +7 -1
- data/_data/locales/ps/342/200/221AF.yml +7 -1
- data/_data/locales/pt-BR.yml +7 -1
- data/_data/locales/ru-RU.yml +7 -1
- data/_data/locales/sl-SI.yml +7 -1
- data/_data/locales/sv-SE.yml +7 -1
- data/_data/locales/th.yml +7 -1
- data/_data/locales/tr-TR.yml +7 -1
- data/_data/locales/uk-UA.yml +7 -1
- data/_data/locales/ur-PK.yml +7 -1
- data/_data/locales/vi-VN.yml +7 -1
- data/_data/locales/zh-CN.yml +7 -1
- data/_data/locales/zh-TW.yml +7 -1
- data/_data/origin/cors.yml +18 -15
- data/_includes/comments/disqus.html +2 -2
- data/_includes/comments/giscus.html +17 -7
- data/_includes/comments/utterances.html +4 -4
- data/_includes/head.html +1 -3
- data/_includes/js-selector.html +0 -1
- data/_includes/notification.html +13 -9
- data/_includes/post-edit.html +23 -0
- data/_includes/sidebar.html +48 -6
- data/_layouts/default.html +6 -5
- data/_layouts/post.html +16 -13
- data/_sass/abstracts/_mixins.scss +6 -0
- data/_sass/abstracts/_variables.scss +6 -0
- data/_sass/base/_base.scss +28 -20
- data/_sass/base/_syntax.scss +4 -2
- data/_sass/components/_popups.scss +17 -28
- data/_sass/layout/_sidebar.scss +97 -9
- data/_sass/pages/_post.scss +10 -0
- data/_sass/themes/_dark.scss +7 -2
- data/_sass/themes/_light.scss +7 -2
- data/_sass/vendors/_bootstrap.scss +1 -1
- data/assets/css/jekyll-theme-chirpy.scss +4 -0
- data/assets/img/favicons/site.webmanifest +1 -1
- data/assets/js/dist/app.min.js +2 -2
- data/assets/js/dist/categories.min.js +2 -2
- data/assets/js/dist/commons.min.js +2 -2
- data/assets/js/dist/home.min.js +2 -2
- data/assets/js/dist/misc.min.js +2 -2
- data/assets/js/dist/page.min.js +2 -2
- data/assets/js/dist/post.min.js +2 -2
- data/assets/js/dist/sw.min.js +1 -1
- data/assets/js/dist/theme.min.js +2 -2
- metadata +2 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* jekyll-theme-chirpy v7.
|
|
2
|
+
* jekyll-theme-chirpy v7.6.0 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
|
|
3
3
|
*/
|
|
4
|
-
!function(){"use strict";const e=new Map;var t={set(t,n,i){e.has(t)||e.set(t,new Map);const o=e.get(t);o.has(n)||0===o.size?o.set(n,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(o.keys())[0]}.`)},get:(t,n)=>e.has(t)&&e.get(t).get(n)||null,remove(t,n){if(!e.has(t))return;const i=e.get(t);i.delete(n),0===i.size&&e.delete(t)}};const n="transitionend",i=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),o=e=>null==e?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),r=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),s=e=>r(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(i(e)):null,a=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?a(e.parentNode):null},l=()=>{},c=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,u=[],f=()=>"rtl"===document.documentElement.dir,d=e=>{var t;t=()=>{const t=c();if(t){const n=e.NAME,i=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=i,e.jQueryInterface)}},"loading"===document.readyState?(u.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of u)e()}),u.push(t)):t()},p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;return"function"==typeof e?e.call(...t):n},h=function(e,t){if(!(!(arguments.length>2&&void 0!==arguments[2])||arguments[2]))return void p(e);const i=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const i=Number.parseFloat(t),o=Number.parseFloat(n);return i||o?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(t)+5;let o=!1;const r=i=>{let{target:s}=i;s===t&&(o=!0,t.removeEventListener(n,r),p(e))};t.addEventListener(n,r),setTimeout(()=>{o||t.dispatchEvent(new Event(n))},i)},g=/[^.]*(?=\..*)\.|.*/,m=/\..*/,v=/::\d+$/,b={};let _=1;const y={mouseenter:"mouseover",mouseleave:"mouseout"},w=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 E(e,t){return t&&`${t}::${_++}`||e.uidEvent||_++}function O(e){const t=E(e);return e.uidEvent=t,b[t]=b[t]||{},b[t]}function x(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function A(e,t,n){const i="string"==typeof t,o=i?n:t||n;let r=S(e);return w.has(r)||(r=e),[i,o,r]}function C(e,t,n,i,o){if("string"!=typeof t||!e)return;let[r,s,a]=A(t,n,i);if(t in y){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};s=e(s)}const l=O(e),c=l[a]||(l[a]={}),u=x(c,s,r?n:null);if(u)return void(u.oneOff=u.oneOff&&o);const f=E(s,t.replace(g,"")),d=r?function(e,t,n){return function i(o){const r=e.querySelectorAll(t);for(let{target:s}=o;s&&s!==this;s=s.parentNode)for(const a of r)if(a===s)return k(o,{delegateTarget:s}),i.oneOff&&j.off(e,o.type,t,n),n.apply(s,[o])}}(e,n,s):function(e,t){return function n(i){return k(i,{delegateTarget:e}),n.oneOff&&j.off(e,i.type,t),t.apply(e,[i])}}(e,s);d.delegationSelector=r?n:null,d.callable=s,d.oneOff=o,d.uidEvent=f,c[f]=d,e.addEventListener(a,d,r)}function T(e,t,n,i,o){const r=x(t[n],i,o);r&&(e.removeEventListener(n,r,Boolean(o)),delete t[n][r.uidEvent])}function L(e,t,n,i){const o=t[n]||{};for(const[r,s]of Object.entries(o))r.includes(i)&&T(e,t,n,s.callable,s.delegationSelector)}function S(e){return e=e.replace(m,""),y[e]||e}const j={on(e,t,n,i){C(e,t,n,i,!1)},one(e,t,n,i){C(e,t,n,i,!0)},off(e,t,n,i){if("string"!=typeof t||!e)return;const[o,r,s]=A(t,n,i),a=s!==t,l=O(e),c=l[s]||{},u=t.startsWith(".");if(void 0===r){if(u)for(const n of Object.keys(l))L(e,l,n,t.slice(1));for(const[n,i]of Object.entries(c)){const o=n.replace(v,"");a&&!t.includes(o)||T(e,l,s,i.callable,i.delegationSelector)}}else{if(!Object.keys(c).length)return;T(e,l,s,r,o?n:null)}},trigger(e,t,n){if("string"!=typeof t||!e)return null;const i=c();let o=null,r=!0,s=!0,a=!1;t!==S(t)&&i&&(o=i.Event(t,n),i(e).trigger(o),r=!o.isPropagationStopped(),s=!o.isImmediatePropagationStopped(),a=o.isDefaultPrevented());const l=k(new Event(t,{bubbles:r,cancelable:!0}),n);return a&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&o&&o.preventDefault(),l}};function k(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const[n,i]of Object.entries(t))try{e[n]=i}catch{Object.defineProperty(e,n,{configurable:!0,get:()=>i})}return e}function D(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function P(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const M={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${P(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${P(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"));for(const i of n){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1),t[n]=D(e.dataset[i])}return t},getDataAttribute:(e,t)=>D(e.getAttribute(`data-bs-${P(t)}`))};class N{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(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const n=r(t)?M.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...r(t)?M.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.constructor.DefaultType;for(const[n,i]of Object.entries(t)){const t=e[n],s=r(t)?"element":o(t);if(!new RegExp(i).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${s}" but expected type "${i}".`)}}}class B extends N{constructor(e,n){super(),(e=s(e))&&(this._element=e,this._config=this._getConfig(n),t.set(this._element,this.constructor.DATA_KEY,this))}dispose(){t.remove(this._element,this.constructor.DATA_KEY),j.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t){h(e,t,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return t.get(s(e),this.DATA_KEY)}static getOrCreateInstance(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.8"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const I=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&"#"!==n?n.trim():null}return t?t.split(",").map(e=>i(e)).join(","):null},F={find(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(t,e)},children:(e,t)=>[].concat(...e.children).filter(e=>e.matches(t)),parents(e,t){const n=[];let i=e.parentNode.closest(t);for(;i;)n.push(i),i=i.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(e=>!(e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")))(e)&&(e=>{if(!r(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const t=e.closest("summary");if(t&&t.parentNode!==n)return!1;if(null===t)return!1}return t})(e))},getSelectorFromElement(e){const t=I(e);return t&&F.findOne(t)?t:null},getElementFromSelector(e){const t=I(e);return t?F.findOne(t):null},getMultipleElementsFromSelector(e){const t=I(e);return t?F.find(t):[]}},H=".bs.collapse",$=`show${H}`,z=`shown${H}`,W=`hide${H}`,R=`hidden${H}`,q=`click${H}.data-api`,V="show",Y="collapse",U="collapsing",K=`:scope .${Y} .${Y}`,Q='[data-bs-toggle="collapse"]',X={parent:null,toggle:!0},G={parent:"(null|element)",toggle:"boolean"};class J extends B{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const n=F.find(Q);for(const e of n){const t=F.getSelectorFromElement(e),n=F.find(t).filter(e=>e===this._element);null!==t&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return X}static get DefaultType(){return G}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(e=>e!==this._element).map(e=>J.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning)return;if(j.trigger(this._element,$).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(Y),this._element.classList.add(U),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(U),this._element.classList.add(Y,V),this._element.style[t]="",j.trigger(this._element,z)},this._element,!0),this._element.style[t]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(j.trigger(this._element,W).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,this._element.offsetHeight,this._element.classList.add(U),this._element.classList.remove(Y,V);for(const e of this._triggerArray){const t=F.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(U),this._element.classList.add(Y),j.trigger(this._element,R)},this._element,!0)}_isShown(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._element).classList.contains(V)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=s(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Q);for(const t of e){const e=F.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=F.find(K,this._config.parent);return F.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const n=J.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}})}}j.on(document,q,Q,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of F.getMultipleElementsFromSelector(this))J.getOrCreateInstance(e,{toggle:!1}).toggle()}),d(J),document.getElementsByClassName("collapse");var Z="top",ee="bottom",te="right",ne="left",ie="auto",oe=[Z,ee,te,ne],re="start",se="end",ae="clippingParents",le="viewport",ce="popper",ue="reference",fe=oe.reduce(function(e,t){return e.concat([t+"-"+re,t+"-"+se])},[]),de=[].concat(oe,[ie]).reduce(function(e,t){return e.concat([t,t+"-"+re,t+"-"+se])},[]),pe="beforeRead",he="read",ge="afterRead",me="beforeMain",ve="main",be="afterMain",_e="beforeWrite",ye="write",we="afterWrite",Ee=[pe,he,ge,me,ve,be,_e,ye,we];function Oe(e){return e?(e.nodeName||"").toLowerCase():null}function xe(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ae(e){return e instanceof xe(e).Element||e instanceof Element}function Ce(e){return e instanceof xe(e).HTMLElement||e instanceof HTMLElement}function Te(e){return"undefined"!=typeof ShadowRoot&&(e instanceof xe(e).ShadowRoot||e instanceof ShadowRoot)}var Le={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},o=t.elements[e];Ce(o)&&Oe(o)&&(Object.assign(o.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],o=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Ce(i)&&Oe(i)&&(Object.assign(i.style,r),Object.keys(o).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};function Se(e){return e.split("-")[0]}var je=Math.max,ke=Math.min,De=Math.round;function Pe(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Me(){return!/^((?!chrome|android).)*safari/i.test(Pe())}function Ne(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),o=1,r=1;t&&Ce(e)&&(o=e.offsetWidth>0&&De(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&De(i.height)/e.offsetHeight||1);var s=(Ae(e)?xe(e):window).visualViewport,a=!Me()&&n,l=(i.left+(a&&s?s.offsetLeft:0))/o,c=(i.top+(a&&s?s.offsetTop:0))/r,u=i.width/o,f=i.height/r;return{width:u,height:f,top:c,right:l+u,bottom:c+f,left:l,x:l,y:c}}function Be(e){var t=Ne(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Ie(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Te(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Fe(e){return xe(e).getComputedStyle(e)}function He(e){return["table","td","th"].indexOf(Oe(e))>=0}function $e(e){return((Ae(e)?e.ownerDocument:e.document)||window.document).documentElement}function ze(e){return"html"===Oe(e)?e:e.assignedSlot||e.parentNode||(Te(e)?e.host:null)||$e(e)}function We(e){return Ce(e)&&"fixed"!==Fe(e).position?e.offsetParent:null}function Re(e){for(var t=xe(e),n=We(e);n&&He(n)&&"static"===Fe(n).position;)n=We(n);return n&&("html"===Oe(n)||"body"===Oe(n)&&"static"===Fe(n).position)?t:n||function(e){var t=/firefox/i.test(Pe());if(/Trident/i.test(Pe())&&Ce(e)&&"fixed"===Fe(e).position)return null;var n=ze(e);for(Te(n)&&(n=n.host);Ce(n)&&["html","body"].indexOf(Oe(n))<0;){var i=Fe(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function qe(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ve(e,t,n){return je(e,ke(t,n))}function Ye(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ue(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Ke={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,o=e.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Se(n.placement),l=qe(a),c=[ne,te].indexOf(a)>=0?"height":"width";if(r&&s){var u=function(e,t){return Ye("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ue(e,oe))}(o.padding,n),f=Be(r),d="y"===l?Z:ne,p="y"===l?ee:te,h=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],g=s[l]-n.rects.reference[l],m=Re(r),v=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=h/2-g/2,_=u[d],y=v-f[c]-u[p],w=v/2-f[c]/2+b,E=Ve(_,w,y),O=l;n.modifiersData[i]=((t={})[O]=E,t.centerOffset=E-w,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&Ie(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qe(e){return e.split("-")[1]}var Xe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ge(e){var t,n=e.popper,i=e.popperRect,o=e.placement,r=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=s.x,p=void 0===d?0:d,h=s.y,g=void 0===h?0:h,m="function"==typeof u?u({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var v=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),_=ne,y=Z,w=window;if(c){var E=Re(n),O="clientHeight",x="clientWidth";if(E===xe(n)&&"static"!==Fe(E=$e(n)).position&&"absolute"===a&&(O="scrollHeight",x="scrollWidth"),o===Z||(o===ne||o===te)&&r===se)y=ee,g-=(f&&E===w&&w.visualViewport?w.visualViewport.height:E[O])-i.height,g*=l?1:-1;if(o===ne||(o===Z||o===ee)&&r===se)_=te,p-=(f&&E===w&&w.visualViewport?w.visualViewport.width:E[x])-i.width,p*=l?1:-1}var A,C=Object.assign({position:a},c&&Xe),T=!0===u?function(e,t){var n=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:De(n*o)/o||0,y:De(i*o)/o||0}}({x:p,y:g},xe(n)):{x:p,y:g};return p=T.x,g=T.y,l?Object.assign({},C,((A={})[y]=b?"0":"",A[_]=v?"0":"",A.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",A)):Object.assign({},C,((t={})[y]=b?g+"px":"",t[_]=v?p+"px":"",t.transform="",t))}var Je={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,s=void 0===r||r,a=n.roundOffsets,l=void 0===a||a,c={placement:Se(t.placement),variation:Qe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ge(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ge(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Ze={passive:!0};var et={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,r=void 0===o||o,s=i.resize,a=void 0===s||s,l=xe(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(e){e.addEventListener("scroll",n.update,Ze)}),a&&l.addEventListener("resize",n.update,Ze),function(){r&&c.forEach(function(e){e.removeEventListener("scroll",n.update,Ze)}),a&&l.removeEventListener("resize",n.update,Ze)}},data:{}},tt={left:"right",right:"left",bottom:"top",top:"bottom"};function nt(e){return e.replace(/left|right|bottom|top/g,function(e){return tt[e]})}var it={start:"end",end:"start"};function ot(e){return e.replace(/start|end/g,function(e){return it[e]})}function rt(e){var t=xe(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function st(e){return Ne($e(e)).left+rt(e).scrollLeft}function at(e){var t=Fe(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function lt(e){return["html","body","#document"].indexOf(Oe(e))>=0?e.ownerDocument.body:Ce(e)&&at(e)?e:lt(ze(e))}function ct(e,t){var n;void 0===t&&(t=[]);var i=lt(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),r=xe(i),s=o?[r].concat(r.visualViewport||[],at(i)?i:[]):i,a=t.concat(s);return o?a:a.concat(ct(ze(s)))}function ut(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ft(e,t,n){return t===le?ut(function(e,t){var n=xe(e),i=$e(e),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;var c=Me();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a+st(e),y:l}}(e,n)):Ae(t)?function(e,t){var n=Ne(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ut(function(e){var t,n=$e(e),i=rt(e),o=null==(t=e.ownerDocument)?void 0:t.body,r=je(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=je(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+st(e),l=-i.scrollTop;return"rtl"===Fe(o||n).direction&&(a+=je(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}($e(e)))}function dt(e,t,n,i){var o="clippingParents"===t?function(e){var t=ct(ze(e)),n=["absolute","fixed"].indexOf(Fe(e).position)>=0&&Ce(e)?Re(e):e;return Ae(n)?t.filter(function(e){return Ae(e)&&Ie(e,n)&&"body"!==Oe(e)}):[]}(e):[].concat(t),r=[].concat(o,[n]),s=r[0],a=r.reduce(function(t,n){var o=ft(e,n,i);return t.top=je(o.top,t.top),t.right=ke(o.right,t.right),t.bottom=ke(o.bottom,t.bottom),t.left=je(o.left,t.left),t},ft(e,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function pt(e){var t,n=e.reference,i=e.element,o=e.placement,r=o?Se(o):null,s=o?Qe(o):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case Z:t={x:a,y:n.y-i.height};break;case ee:t={x:a,y:n.y+n.height};break;case te:t={x:n.x+n.width,y:l};break;case ne:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=r?qe(r):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case re:t[c]=t[c]-(n[u]/2-i[u]/2);break;case se:t[c]=t[c]+(n[u]/2-i[u]/2)}}return t}function ht(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=void 0===i?e.placement:i,r=n.strategy,s=void 0===r?e.strategy:r,a=n.boundary,l=void 0===a?ae:a,c=n.rootBoundary,u=void 0===c?le:c,f=n.elementContext,d=void 0===f?ce:f,p=n.altBoundary,h=void 0!==p&&p,g=n.padding,m=void 0===g?0:g,v=Ye("number"!=typeof m?m:Ue(m,oe)),b=d===ce?ue:ce,_=e.rects.popper,y=e.elements[h?b:d],w=dt(Ae(y)?y:y.contextElement||$e(e.elements.popper),l,u,s),E=Ne(e.elements.reference),O=pt({reference:E,element:_,placement:o}),x=ut(Object.assign({},_,O)),A=d===ce?x:E,C={top:w.top-A.top+v.top,bottom:A.bottom-w.bottom+v.bottom,left:w.left-A.left+v.left,right:A.right-w.right+v.right},T=e.modifiersData.offset;if(d===ce&&T){var L=T[o];Object.keys(C).forEach(function(e){var t=[te,ee].indexOf(e)>=0?1:-1,n=[Z,ee].indexOf(e)>=0?"y":"x";C[e]+=L[n]*t})}return C}function gt(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?de:l,u=Qe(i),f=u?a?fe:fe.filter(function(e){return Qe(e)===u}):oe,d=f.filter(function(e){return c.indexOf(e)>=0});0===d.length&&(d=f);var p=d.reduce(function(t,n){return t[n]=ht(e,{placement:n,boundary:o,rootBoundary:r,padding:s})[Se(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}var mt={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,g=n.allowedAutoPlacements,m=t.options.placement,v=Se(m),b=l||(v===m||!h?[nt(m)]:function(e){if(Se(e)===ie)return[];var t=nt(e);return[ot(e),t,ot(t)]}(m)),_=[m].concat(b).reduce(function(e,n){return e.concat(Se(n)===ie?gt(t,{placement:n,boundary:u,rootBoundary:f,padding:c,flipVariations:h,allowedAutoPlacements:g}):n)},[]),y=t.rects.reference,w=t.rects.popper,E=new Map,O=!0,x=_[0],A=0;A<_.length;A++){var C=_[A],T=Se(C),L=Qe(C)===re,S=[Z,ee].indexOf(T)>=0,j=S?"width":"height",k=ht(t,{placement:C,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),D=S?L?te:ne:L?ee:Z;y[j]>w[j]&&(D=nt(D));var P=nt(D),M=[];if(r&&M.push(k[T]<=0),a&&M.push(k[D]<=0,k[P]<=0),M.every(function(e){return e})){x=C,O=!1;break}E.set(C,M)}if(O)for(var N=function(e){var t=_.find(function(t){var n=E.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return x=t,"break"},B=h?3:1;B>0;B--){if("break"===N(B))break}t.placement!==x&&(t.modifiersData[i]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function vt(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function bt(e){return[Z,te,ee,ne].some(function(t){return e[t]>=0})}var _t={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,r=t.modifiersData.preventOverflow,s=ht(t,{elementContext:"reference"}),a=ht(t,{altBoundary:!0}),l=vt(s,i),c=vt(a,o,r),u=bt(l),f=bt(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}};var yt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.offset,r=void 0===o?[0,0]:o,s=de.reduce(function(e,n){return e[n]=function(e,t,n){var i=Se(e),o=[ne,Z].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[ne,te].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,r),e},{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=s}};var wt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=pt({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}};var Et={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,g=void 0===h?0:h,m=ht(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),v=Se(t.placement),b=Qe(t.placement),_=!b,y=qe(v),w="x"===y?"y":"x",E=t.modifiersData.popperOffsets,O=t.rects.reference,x=t.rects.popper,A="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,C="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(E){if(r){var S,j="y"===y?Z:ne,k="y"===y?ee:te,D="y"===y?"height":"width",P=E[y],M=P+m[j],N=P-m[k],B=p?-x[D]/2:0,I=b===re?O[D]:x[D],F=b===re?-x[D]:-O[D],H=t.elements.arrow,$=p&&H?Be(H):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=z[j],R=z[k],q=Ve(0,O[D],$[D]),V=_?O[D]/2-B-q-W-C.mainAxis:I-q-W-C.mainAxis,Y=_?-O[D]/2+B+q+R+C.mainAxis:F+q+R+C.mainAxis,U=t.elements.arrow&&Re(t.elements.arrow),K=U?"y"===y?U.clientTop||0:U.clientLeft||0:0,Q=null!=(S=null==T?void 0:T[y])?S:0,X=P+Y-Q,G=Ve(p?ke(M,P+V-Q-K):M,P,p?je(N,X):N);E[y]=G,L[y]=G-P}if(a){var J,ie="x"===y?Z:ne,oe="x"===y?ee:te,se=E[w],ae="y"===w?"height":"width",le=se+m[ie],ce=se-m[oe],ue=-1!==[Z,ne].indexOf(v),fe=null!=(J=null==T?void 0:T[w])?J:0,de=ue?le:se-O[ae]-x[ae]-fe+C.altAxis,pe=ue?se+O[ae]+x[ae]-fe-C.altAxis:ce,he=p&&ue?function(e,t,n){var i=Ve(e,t,n);return i>n?n:i}(de,se,pe):Ve(p?de:le,se,p?pe:ce);E[w]=he,L[w]=he-se}t.modifiersData[i]=L}},requiresIfExists:["offset"]};function Ot(e,t,n){void 0===n&&(n=!1);var i,o,r=Ce(t),s=Ce(t)&&function(e){var t=e.getBoundingClientRect(),n=De(t.width)/e.offsetWidth||1,i=De(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=$e(t),l=Ne(e,s,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==Oe(t)||at(a))&&(c=(i=t)!==xe(i)&&Ce(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:rt(i)),Ce(t)?((u=Ne(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=st(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function xt(e){var t=new Map,n=new Set,i=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&o(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),i}var At={placement:"bottom",modifiers:[],strategy:"absolute"};function Ct(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Tt(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,o=t.defaultOptions,r=void 0===o?At:o;return function(e,t,n){void 0===n&&(n=r);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},At,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(n){var o="function"==typeof n?n(a.options):n;f(),a.options=Object.assign({},r,a.options,o),a.scrollParents={reference:Ae(e)?ct(e):e.contextElement?ct(e.contextElement):[],popper:ct(t)};var s,c,d=function(e){var t=xt(e);return Ee.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((s=[].concat(i,a.options.modifiers),c=s.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return a.orderedModifiers=d.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var r=o({state:a,name:t,instance:u,options:i}),s=function(){};l.push(r||s)}}),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(Ct(t,n)){a.rects={reference:Ot(t,Re(n),"fixed"===a.options.strategy),popper:Be(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var o=a.orderedModifiers[i],r=o.fn,s=o.options,l=void 0===s?{}:s,f=o.name;"function"==typeof r&&(a=r({state:a,options:l,name:f,instance:u})||a)}else a.reset=!1,i=-1}}},update:(o=function(){return new Promise(function(e){u.forceUpdate(),e(a)})},function(){return s||(s=new Promise(function(e){Promise.resolve().then(function(){s=void 0,e(o())})})),s}),destroy:function(){f(),c=!0}};if(!Ct(e,t))return u;function f(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}}var Lt=Tt({defaultModifiers:[et,wt,Je,Le,yt,mt,Et,Ke,_t]}),St=Object.freeze({__proto__:null,afterMain:be,afterRead:ge,afterWrite:we,applyStyles:Le,arrow:Ke,auto:ie,basePlacements:oe,beforeMain:me,beforeRead:pe,beforeWrite:_e,bottom:ee,clippingParents:ae,computeStyles:Je,createPopper:Lt,detectOverflow:ht,end:se,eventListeners:et,flip:mt,hide:_t,left:ne,main:ve,modifierPhases:Ee,offset:yt,placements:de,popper:ce,popperGenerator:Tt,popperOffsets:wt,preventOverflow:Et,read:he,reference:ue,right:te,start:re,top:Z,variationPlacements:fe,viewport:le,write:ye});const jt={"*":["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:[]},kt=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Dt=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Pt=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?!kt.has(n)||Boolean(Dt.test(e.nodeValue)):t.filter(e=>e instanceof RegExp).some(e=>e.test(n))};const Mt={allowList:jt,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Nt={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Bt={entry:"(string|element|function|null)",selector:"(string|element)"};class It extends N{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Mt}static get DefaultType(){return Nt}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);const t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},Bt)}_setContent(e,t,n){const i=F.findOne(n,e);i&&((t=this._resolvePossibleFunction(t))?r(t)?this._putElementInTemplate(s(t),i):this._config.html?i.innerHTML=this._maybeSanitize(t):i.textContent=t:i.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,n){if(!e.length)return e;if(n&&"function"==typeof n)return n(e);const i=(new window.DOMParser).parseFromString(e,"text/html"),o=[].concat(...i.body.querySelectorAll("*"));for(const e of o){const n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}const i=[].concat(...e.attributes),o=[].concat(t["*"]||[],t[n]||[]);for(const t of i)Pt(t,o)||e.removeAttribute(t.nodeName)}return i.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return p(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const Ft=new Set(["sanitize","allowList","sanitizeFn"]),Ht="fade",$t="show",zt=".tooltip-inner",Wt=".modal",Rt="hide.bs.modal",qt="hover",Vt="focus",Yt="click",Ut={AUTO:"auto",TOP:"top",RIGHT:f()?"left":"right",BOTTOM:"bottom",LEFT:f()?"right":"left"},Kt={allowList:jt,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"},Qt={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 Xt extends B{constructor(e,t){if(void 0===St)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,t),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 Kt}static get DefaultType(){return Qt}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),j.off(this._element.closest(Wt),Rt,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 e=j.trigger(this._element,this.constructor.eventName("show")),t=(a(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(n),j.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add($t),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))j.on(e,"mouseover",l);this._queueCallback(()=>{j.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(j.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove($t),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))j.off(e,"mouseover",l);this._activeTrigger[Yt]=!1,this._activeTrigger[Vt]=!1,this._activeTrigger[qt]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),j.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(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Ht,$t),t.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&&t.classList.add(Ht),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new It({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[zt]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Ht)}_isShown(){return this.tip&&this.tip.classList.contains($t)}_createPopper(e){const t=p(this._config.placement,[this,e,this._element]),n=Ut[t.toUpperCase()];return Lt(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return p(e,[this._element,this._element])}_getPopperConfig(e){const t={placement:e,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:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...p(this._config.popperConfig,[void 0,t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)j.on(this._element,this.constructor.eventName("click"),this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger[Yt]=!(t._isShown()&&t._activeTrigger[Yt]),t.toggle()});else if("manual"!==t){const e=t===qt?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=t===qt?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");j.on(this._element,e,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?Vt:qt]=!0,t._enter()}),j.on(this._element,n,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?Vt:qt]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},j.on(this._element.closest(Wt),Rt,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),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(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=M.getDataAttributes(this._element);for(const e of Object.keys(t))Ft.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:s(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=Xt.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}function Gt(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function Jt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zt;d(Xt);const en=document.getElementById("toc-bar"),tn=document.getElementById("toc-solo-trigger"),nn=document.getElementsByClassName("toc-trigger"),on=document.getElementById("toc-popup"),rn=document.getElementById("toc-popup-close"),sn="overflow-hidden",an="closing";class ln{static initBar(){new IntersectionObserver(e=>{e.forEach(e=>{en.classList.toggle("invisible",e.isIntersecting)})},{rootMargin:`-${Gt(ln,this,un)._}px 0px 0px 0px`}).observe(tn),cn._=Gt(ln,this,!1)}static listenAnchors(){[...document.getElementsByClassName("toc-link")].forEach(e=>{e.onclick=()=>this.hidePopup()})}static refresh(){Gt(ln,this,cn)._&&this.initComponents(),tocbot.refresh(this.options),this.listenAnchors()}static get popupOpened(){return on.open}static showPopup(){this.lockScroll(!0),on.showModal();on.querySelector("li.is-active-li").scrollIntoView({block:"center"})}static hidePopup(){on.toggleAttribute(an),on.addEventListener("animationend",()=>{on.toggleAttribute(an),on.close()},{once:!0}),this.lockScroll(!1)}static lockScroll(e){document.documentElement.classList.toggle(sn,e),document.body.classList.toggle(sn,e)}static clickBackdrop(e){if(on.hasAttribute(an))return;const t=e.target.getBoundingClientRect();(e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom)&&this.hidePopup()}static initComponents(){this.initBar(),[...nn].forEach(e=>{e.onclick=()=>this.showPopup()}),on.onclick=e=>this.clickBackdrop(e),rn.onclick=()=>this.hidePopup(),on.oncancel=e=>{e.preventDefault(),this.hidePopup()}}static init(){tocbot.init(this.options),this.listenAnchors(),this.initComponents()}}var cn={_:!0},un={_:48};Jt(ln,"options",{tocSelector:"#toc-popup-content",contentSelector:".content",ignoreSelector:"[data-toc-skip]",headingSelector:"h2, h3, h4",orderedList:!1,scrollSmooth:!1,collapseDepth:4,headingsOffset:Gt(Zt=ln,Zt,un)._});Jt(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 fn=document.getElementById("mode-toggle");const dn=document.getElementById("sidebar"),pn=document.getElementById("sidebar-trigger"),hn=document.getElementById("mask");class gn{static toggle(){mn._=Gt(gn,this,!Gt(gn,this,mn)._),document.body.toggleAttribute("sidebar-display",Gt(gn,this,mn)._),dn.classList.toggle("z-2",Gt(gn,this,mn)._),hn.classList.toggle("d-none",!Gt(gn,this,mn)._)}}var mn={_:!1};const vn=document.getElementById("sidebar-trigger"),bn=document.getElementById("search-trigger"),_n=document.getElementById("search-cancel"),yn=document.querySelectorAll("#main-wrapper>.container>.row"),wn=document.getElementById("topbar-title"),En=document.getElementById("search"),On=document.getElementById("search-result-wrapper"),xn=document.getElementById("search-results"),An=document.getElementById("search-input"),Cn=document.getElementById("search-hints"),Tn="d-block",Ln="d-none",Sn="input-focus",jn="d-flex";class kn{static on(){vn.classList.add(Ln),wn.classList.add(Ln),bn.classList.add(Ln),En.classList.add(jn),_n.classList.add(Tn)}static off(){_n.classList.remove(Tn),En.classList.remove(jn),vn.classList.remove(Ln),wn.classList.remove(Ln),bn.classList.remove(Ln)}}class Dn{static on(){this.resultVisible||(On.classList.remove(Ln),yn.forEach(e=>{e.classList.add(Ln)}),this.resultVisible=!0)}static off(){this.resultVisible&&(xn.innerHTML="",Cn.classList.contains(Ln)&&Cn.classList.remove(Ln),On.classList.add(Ln),yn.forEach(e=>{e.classList.remove(Ln)}),An.textContent="",this.resultVisible=!1)}}function Pn(){return _n.classList.contains(Tn)}Jt(Dn,"resultVisible",!1),pn.onclick=hn.onclick=()=>gn.toggle(),bn.addEventListener("click",()=>{kn.on(),Dn.on(),An.focus()}),_n.addEventListener("click",()=>{kn.off(),Dn.off()}),An.addEventListener("focus",()=>{En.classList.add(Sn)}),An.addEventListener("focusout",()=>{En.classList.remove(Sn)}),An.addEventListener("input",()=>{""===An.value?Pn()?Cn.classList.remove(Ln):Dn.off():(Dn.on(),Pn()&&Cn.classList.add(Ln))}),fn&&fn.addEventListener("click",()=>{Theme.flip()}),function(){const e=document.getElementById("back-to-top");window.addEventListener("scroll",()=>{window.scrollY>50?e.classList.add("show"):e.classList.remove("show")}),e.addEventListener("click",()=>{window.scrollTo({top:0})})}(),[...document.querySelectorAll('[data-bs-toggle="tooltip"]')].map(e=>new Xt(e))}();
|
|
4
|
+
!function(){"use strict";const t=new Map;var e={set(e,n,o){t.has(e)||t.set(e,new Map);const i=t.get(e);i.has(n)||0===i.size?i.set(n,o):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 o=t.get(e);o.delete(n),0===o.size&&t.delete(e)}};function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function o(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 o=n.call(t,e);if("object"!=typeof o)return o;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 r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(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 o,i,r,s,a=[],c=!0,l=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=r.call(n)).done)&&(a.push(o.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 o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?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),d=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},h=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),m=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?m(t.parentNode):null},g=()=>{},v=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,b=[],_=()=>"rtl"===document.documentElement.dir,y=t=>{var e;e=()=>{const e=v();if(e){const n=t.NAME,o=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=o,t.jQueryInterface)}},"loading"===document.readyState?(b.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of b)t()}),b.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},E=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,o=e.transitionDelay;const i=Number.parseFloat(n),r=Number.parseFloat(o);return i||r?(n=n.split(",")[0],o=o.split(",")[0],1e3*(Number.parseFloat(n)+Number.parseFloat(o))):0})(e)+5;let o=!1;const i=n=>{n.target===e&&(o=!0,e.removeEventListener(c,i),w(t))};e.addEventListener(c,i),setTimeout(()=>{o||e.dispatchEvent(new Event(c))},n)},O=/[^.]*(?=\..*)\.|.*/,x=/\..*/,C=/::\d+$/,A={};let T=1;const L={mouseenter:"mouseover",mouseleave:"mouseout"},S=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 j(t,e){return e&&"".concat(e,"::").concat(T++)||t.uidEvent||T++}function k(t){const e=j(t);return t.uidEvent=e,A[e]=A[e]||{},A[e]}function P(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 D(t,e,n){const o="string"==typeof e,i=o?n:e||n;let r=I(t);return S.has(r)||(r=t),[o,i,r]}function M(t,e,n,o,i){if("string"!=typeof e||!t)return;let r=a(D(e,n,o),3),s=r[0],c=r[1],l=r[2];if(e in L){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=k(t),f=u[l]||(u[l]={}),d=P(f,c,s?n:null);if(d)return void(d.oneOff=d.oneOff&&i);const p=j(c,e.replace(O,"")),h=s?function(t,e,n){return function o(i){const r=t.querySelectorAll(e);for(let s=i.target;s&&s!==this;s=s.parentNode)for(const a of r)if(a===s)return F(i,{delegateTarget:s}),o.oneOff&&H.off(t,i.type,e,n),n.apply(s,[i])}}(t,n,c):function(t,e){return function n(o){return F(o,{delegateTarget:t}),n.oneOff&&H.off(t,o.type,e),e.apply(t,[o])}}(t,c);h.delegationSelector=s?n:null,h.callable=c,h.oneOff=i,h.uidEvent=p,f[p]=h,t.addEventListener(l,h,s)}function N(t,e,n,o,i){const r=P(e[n],o,i);r&&(t.removeEventListener(n,r,Boolean(i)),delete e[n][r.uidEvent])}function B(t,e,n,o){const i=e[n]||{};for(const s of Object.entries(i)){var r=a(s,2);const i=r[0],c=r[1];i.includes(o)&&N(t,e,n,c.callable,c.delegationSelector)}}function I(t){return t=t.replace(x,""),L[t]||t}const H={on(t,e,n,o){M(t,e,n,o,!1)},one(t,e,n,o){M(t,e,n,o,!0)},off(t,e,n,o){if("string"!=typeof e||!t)return;const i=a(D(e,n,o),3),r=i[0],s=i[1],c=i[2],l=c!==e,u=k(t),f=u[c]||{},d=e.startsWith(".");if(void 0===s){if(d)for(const n of Object.keys(u))B(t,u,n,e.slice(1));for(const n of Object.entries(f)){var p=a(n,2);const o=p[0],i=p[1],r=o.replace(C,"");l&&!e.includes(r)||N(t,u,c,i.callable,i.delegationSelector)}}else{if(!Object.keys(f).length)return;N(t,u,c,s,r?n:null)}},trigger(t,e,n){if("string"!=typeof e||!t)return null;const o=v();let i=null,r=!0,s=!0,a=!1;e!==I(e)&&o&&(i=o.Event(e,n),o(t).trigger(i),r=!i.isPropagationStopped(),s=!i.isImmediatePropagationStopped(),a=i.isDefaultPrevented());const c=F(new Event(e,{bubbles:r,cancelable:!0}),n);return a&&c.preventDefault(),s&&t.dispatchEvent(c),c.defaultPrevented&&i&&i.preventDefault(),c}};function F(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const o of Object.entries(e)){var n=a(o,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 q(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 z(t){return t.replace(/[A-Z]/g,t=>"-".concat(t.toLowerCase()))}const W={setDataAttribute(t,e,n){t.setAttribute("data-bs-".concat(z(e)),n)},removeDataAttribute(t,e){t.removeAttribute("data-bs-".concat(z(e)))},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"));for(const o of n){let n=o.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1),e[n]=q(t.dataset[o])}return e},getDataAttribute:(t,e)=>q(t.getAttribute("data-bs-".concat(z(e))))};class R{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)?W.getDataAttribute(e,"config"):{};return s(s(s(s({},this.constructor.Default),"object"==typeof n?n:{}),f(e)?W.getDataAttributes(e):{}),"object"==typeof t?t:{})}_typeCheckConfig(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.constructor.DefaultType;for(const o of Object.entries(e)){var n=a(o,2);const e=n[0],i=n[1],r=t[e],s=f(r)?"element":u(r);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 R{constructor(t,n){super(),(t=d(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),H.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e){E(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(d(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 Y=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},U={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 o=t.parentNode.closest(e);for(;o;)n.push(o),o=o.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=>!h(t)&&p(t))},getSelectorFromElement(t){const e=Y(t);return e&&U.findOne(e)?e:null},getElementFromSelector(t){const e=Y(t);return e?U.findOne(e):null},getMultipleElementsFromSelector(t){const e=Y(t);return e?U.find(e):[]}},K=".".concat("bs.collapse"),Q="show".concat(K),X="shown".concat(K),$="hide".concat(K),G="hidden".concat(K),J="click".concat(K).concat(".data-api"),Z="show",tt="collapse",et="collapsing",nt=":scope .".concat(tt," .").concat(tt),ot='[data-bs-toggle="collapse"]',it={parent:null,toggle:!0},rt={parent:"(null|element)",toggle:"boolean"};class st extends V{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const n=U.find(ot);for(const t of n){const e=U.getSelectorFromElement(t),n=U.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 rt}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(H.trigger(this._element,Q).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),o="scroll".concat(n);this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(et),this._element.classList.add(tt,Z),this._element.style[e]="",H.trigger(this._element,X)},this._element,!0),this._element.style[e]="".concat(this._element[o],"px")}hide(){if(this._isTransitioning||!this._isShown())return;if(H.trigger(this._element,$).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=U.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),H.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=d(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(ot);for(const e of t){const t=U.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=U.find(nt,this._config.parent);return U.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]()}})}}H.on(document,J,ot,function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of U.getMultipleElementsFromSelector(this))st.getOrCreateInstance(t,{toggle:!1}).toggle()}),y(st),document.getElementsByClassName("collapse");var at="top",ct="bottom",lt="right",ut="left",ft="auto",dt=[at,ct,lt,ut],pt="start",ht="end",mt="clippingParents",gt="viewport",vt="popper",bt="reference",_t=dt.reduce(function(t,e){return t.concat([e+"-"+pt,e+"-"+ht])},[]),yt=[].concat(dt,[ft]).reduce(function(t,e){return t.concat([e,e+"-"+pt,e+"-"+ht])},[]),wt="beforeRead",Et="read",Ot="afterRead",xt="beforeMain",Ct="main",At="afterMain",Tt="beforeWrite",Lt="write",St="afterWrite",jt=[wt,Et,Ot,xt,Ct,At,Tt,Lt,St];function kt(t){return t?(t.nodeName||"").toLowerCase():null}function Pt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Dt(t){return t instanceof Pt(t).Element||t instanceof Element}function Mt(t){return t instanceof Pt(t).HTMLElement||t instanceof HTMLElement}function Nt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Pt(t).ShadowRoot||t instanceof ShadowRoot)}var Bt={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]||{},o=e.attributes[t]||{},i=e.elements[t];Mt(i)&&kt(i)&&(Object.assign(i.style,n),Object.keys(o).forEach(function(t){var e=o[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 o=e.elements[t],i=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce(function(t,e){return t[e]="",t},{});Mt(o)&&kt(o)&&(Object.assign(o.style,r),Object.keys(i).forEach(function(t){o.removeAttribute(t)}))})}},requires:["computeStyles"]};function It(t){return t.split("-")[0]}var Ht=Math.max,Ft=Math.min,qt=Math.round;function zt(){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 Wt(){return!/^((?!chrome|android).)*safari/i.test(zt())}function Rt(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var o=t.getBoundingClientRect(),i=1,r=1;e&&Mt(t)&&(i=t.offsetWidth>0&&qt(o.width)/t.offsetWidth||1,r=t.offsetHeight>0&&qt(o.height)/t.offsetHeight||1);var s=(Dt(t)?Pt(t):window).visualViewport,a=!Wt()&&n,c=(o.left+(a&&s?s.offsetLeft:0))/i,l=(o.top+(a&&s?s.offsetTop:0))/r,u=o.width/i,f=o.height/r;return{width:u,height:f,top:l,right:c+u,bottom:l+f,left:c,x:c,y:l}}function Vt(t){var e=Rt(t),n=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:o}}function Yt(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Nt(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Ut(t){return Pt(t).getComputedStyle(t)}function Kt(t){return["table","td","th"].indexOf(kt(t))>=0}function Qt(t){return((Dt(t)?t.ownerDocument:t.document)||window.document).documentElement}function Xt(t){return"html"===kt(t)?t:t.assignedSlot||t.parentNode||(Nt(t)?t.host:null)||Qt(t)}function $t(t){return Mt(t)&&"fixed"!==Ut(t).position?t.offsetParent:null}function Gt(t){for(var e=Pt(t),n=$t(t);n&&Kt(n)&&"static"===Ut(n).position;)n=$t(n);return n&&("html"===kt(n)||"body"===kt(n)&&"static"===Ut(n).position)?e:n||function(t){var e=/firefox/i.test(zt());if(/Trident/i.test(zt())&&Mt(t)&&"fixed"===Ut(t).position)return null;var n=Xt(t);for(Nt(n)&&(n=n.host);Mt(n)&&["html","body"].indexOf(kt(n))<0;){var o=Ut(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||e&&"filter"===o.willChange||e&&o.filter&&"none"!==o.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 Ht(t,Ft(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,o=t.name,i=t.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,a=It(n.placement),c=Jt(a),l=[ut,lt].indexOf(a)>=0?"height":"width";if(r&&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,dt))}(i.padding,n),f=Vt(r),d="y"===c?at:ut,p="y"===c?ct:lt,h=n.rects.reference[l]+n.rects.reference[c]-s[c]-n.rects.popper[l],m=s[c]-n.rects.reference[c],g=Gt(r),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,_=u[d],y=v-f[l]-u[p],w=v/2-f[l]/2+b,E=Zt(_,w,y),O=c;n.modifiersData[o]=((e={})[O]=E,e.centerOffset=E-w,e)}},effect:function(t){var e=t.state,n=t.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=e.elements.popper.querySelector(o)))&&Yt(e.elements.popper,o)&&(e.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function oe(t){return t.split("-")[1]}var ie={top:"auto",right:"auto",bottom:"auto",left:"auto"};function re(t){var e,n=t.popper,o=t.popperRect,i=t.placement,r=t.variation,s=t.offsets,a=t.position,c=t.gpuAcceleration,l=t.adaptive,u=t.roundOffsets,f=t.isFixed,d=s.x,p=void 0===d?0:d,h=s.y,m=void 0===h?0:h,g="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),_=ut,y=at,w=window;if(l){var E=Gt(n),O="clientHeight",x="clientWidth";if(E===Pt(n)&&"static"!==Ut(E=Qt(n)).position&&"absolute"===a&&(O="scrollHeight",x="scrollWidth"),i===at||(i===ut||i===lt)&&r===ht)y=ct,m-=(f&&E===w&&w.visualViewport?w.visualViewport.height:E[O])-o.height,m*=c?1:-1;if(i===ut||(i===at||i===ct)&&r===ht)_=lt,p-=(f&&E===w&&w.visualViewport?w.visualViewport.width:E[x])-o.width,p*=c?1:-1}var C,A=Object.assign({position:a},l&&ie),T=!0===u?function(t,e){var n=t.x,o=t.y,i=e.devicePixelRatio||1;return{x:qt(n*i)/i||0,y:qt(o*i)/i||0}}({x:p,y:m},Pt(n)):{x:p,y:m};return p=T.x,m=T.y,c?Object.assign({},A,((C={})[y]=b?"0":"",C[_]=v?"0":"",C.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",C)):Object.assign({},A,((e={})[y]=b?m+"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,o=n.gpuAcceleration,i=void 0===o||o,r=n.adaptive,s=void 0===r||r,a=n.roundOffsets,c=void 0===a||a,l={placement:It(e.placement),variation:oe(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,re(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,re(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,o=t.options,i=o.scroll,r=void 0===i||i,s=o.resize,a=void 0===s||s,c=Pt(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&l.forEach(function(t){t.addEventListener("scroll",n.update,ae)}),a&&c.addEventListener("resize",n.update,ae),function(){r&&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 de(t){return t.replace(/start|end/g,function(t){return fe[t]})}function pe(t){var e=Pt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function he(t){return Rt(Qt(t)).left+pe(t).scrollLeft}function me(t){var e=Ut(t),n=e.overflow,o=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+o)}function ge(t){return["html","body","#document"].indexOf(kt(t))>=0?t.ownerDocument.body:Mt(t)&&me(t)?t:ge(Xt(t))}function ve(t,e){var n;void 0===e&&(e=[]);var o=ge(t),i=o===(null==(n=t.ownerDocument)?void 0:n.body),r=Pt(o),s=i?[r].concat(r.visualViewport||[],me(o)?o:[]):o,a=e.concat(s);return i?a:a.concat(ve(Xt(s)))}function be(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===gt?be(function(t,e){var n=Pt(t),o=Qt(t),i=n.visualViewport,r=o.clientWidth,s=o.clientHeight,a=0,c=0;if(i){r=i.width,s=i.height;var l=Wt();(l||!l&&"fixed"===e)&&(a=i.offsetLeft,c=i.offsetTop)}return{width:r,height:s,x:a+he(t),y:c}}(t,n)):Dt(e)?function(t,e){var n=Rt(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):be(function(t){var e,n=Qt(t),o=pe(t),i=null==(e=t.ownerDocument)?void 0:e.body,r=Ht(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Ht(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-o.scrollLeft+he(t),c=-o.scrollTop;return"rtl"===Ut(i||n).direction&&(a+=Ht(n.clientWidth,i?i.clientWidth:0)-r),{width:r,height:s,x:a,y:c}}(Qt(t)))}function ye(t,e,n,o){var i="clippingParents"===e?function(t){var e=ve(Xt(t)),n=["absolute","fixed"].indexOf(Ut(t).position)>=0&&Mt(t)?Gt(t):t;return Dt(n)?e.filter(function(t){return Dt(t)&&Yt(t,n)&&"body"!==kt(t)}):[]}(t):[].concat(e),r=[].concat(i,[n]),s=r[0],a=r.reduce(function(e,n){var i=_e(t,n,o);return e.top=Ht(i.top,e.top),e.right=Ft(i.right,e.right),e.bottom=Ft(i.bottom,e.bottom),e.left=Ht(i.left,e.left),e},_e(t,s,o));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,o=t.element,i=t.placement,r=i?It(i):null,s=i?oe(i):null,a=n.x+n.width/2-o.width/2,c=n.y+n.height/2-o.height/2;switch(r){case at:e={x:a,y:n.y-o.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-o.width,y:c};break;default:e={x:n.x,y:n.y}}var l=r?Jt(r):null;if(null!=l){var u="y"===l?"height":"width";switch(s){case pt:e[l]=e[l]-(n[u]/2-o[u]/2);break;case ht:e[l]=e[l]+(n[u]/2-o[u]/2)}}return e}function Ee(t,e){void 0===e&&(e={});var n=e,o=n.placement,i=void 0===o?t.placement:o,r=n.strategy,s=void 0===r?t.strategy:r,a=n.boundary,c=void 0===a?mt:a,l=n.rootBoundary,u=void 0===l?gt:l,f=n.elementContext,d=void 0===f?vt:f,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,v=te("number"!=typeof g?g:ee(g,dt)),b=d===vt?bt:vt,_=t.rects.popper,y=t.elements[h?b:d],w=ye(Dt(y)?y:y.contextElement||Qt(t.elements.popper),c,u,s),E=Rt(t.elements.reference),O=we({reference:E,element:_,placement:i}),x=be(Object.assign({},_,O)),C=d===vt?x:E,A={top:w.top-C.top+v.top,bottom:C.bottom-w.bottom+v.bottom,left:w.left-C.left+v.left,right:C.right-w.right+v.right},T=t.modifiersData.offset;if(d===vt&&T){var L=T[i];Object.keys(A).forEach(function(t){var e=[lt,ct].indexOf(t)>=0?1:-1,n=[at,ct].indexOf(t)>=0?"y":"x";A[t]+=L[n]*e})}return A}function Oe(t,e){void 0===e&&(e={});var n=e,o=n.placement,i=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?yt:c,u=oe(o),f=u?a?_t:_t.filter(function(t){return oe(t)===u}):dt,d=f.filter(function(t){return l.indexOf(t)>=0});0===d.length&&(d=f);var p=d.reduce(function(e,n){return e[n]=Ee(t,{placement:n,boundary:i,rootBoundary:r,padding:s})[It(n)],e},{});return Object.keys(p).sort(function(t,e){return p[t]-p[e]})}var xe={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var i=n.mainAxis,r=void 0===i||i,s=n.altAxis,a=void 0===s||s,c=n.fallbackPlacements,l=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=e.options.placement,v=It(g),b=c||(v===g||!h?[ue(g)]:function(t){if(It(t)===ft)return[];var e=ue(t);return[de(t),e,de(e)]}(g)),_=[g].concat(b).reduce(function(t,n){return t.concat(It(n)===ft?Oe(e,{placement:n,boundary:u,rootBoundary:f,padding:l,flipVariations:h,allowedAutoPlacements:m}):n)},[]),y=e.rects.reference,w=e.rects.popper,E=new Map,O=!0,x=_[0],C=0;C<_.length;C++){var A=_[C],T=It(A),L=oe(A)===pt,S=[at,ct].indexOf(T)>=0,j=S?"width":"height",k=Ee(e,{placement:A,boundary:u,rootBoundary:f,altBoundary:d,padding:l}),P=S?L?lt:ut:L?ct:at;y[j]>w[j]&&(P=ue(P));var D=ue(P),M=[];if(r&&M.push(k[T]<=0),a&&M.push(k[P]<=0,k[D]<=0),M.every(function(t){return t})){x=A,O=!1;break}E.set(A,M)}if(O)for(var N=function(t){var e=_.find(function(e){var n=E.get(e);if(n)return n.slice(0,t).every(function(t){return t})});if(e)return x=e,"break"},B=h?3:1;B>0;B--){if("break"===N(B))break}e.placement!==x&&(e.modifiersData[o]._skip=!0,e.placement=x,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ce(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 Ae(t){return[at,lt,ct,ut].some(function(e){return t[e]>=0})}var Te={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,o=e.rects.reference,i=e.rects.popper,r=e.modifiersData.preventOverflow,s=Ee(e,{elementContext:"reference"}),a=Ee(e,{altBoundary:!0}),c=Ce(s,o),l=Ce(a,i,r),u=Ae(c),f=Ae(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 Le={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,o=t.name,i=n.offset,r=void 0===i?[0,0]:i,s=yt.reduce(function(t,n){return t[n]=function(t,e,n){var o=It(t),i=[ut,at].indexOf(o)>=0?-1:1,r="function"==typeof n?n(Object.assign({},e,{placement:t})):n,s=r[0],a=r[1];return s=s||0,a=(a||0)*i,[ut,lt].indexOf(o)>=0?{x:a,y:s}:{x:s,y:a}}(n,e.rects,r),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[o]=s}};var Se={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 je={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,o=t.name,i=n.mainAxis,r=void 0===i||i,s=n.altAxis,a=void 0!==s&&s,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,m=void 0===h?0:h,g=Ee(e,{boundary:c,rootBoundary:l,padding:f,altBoundary:u}),v=It(e.placement),b=oe(e.placement),_=!b,y=Jt(v),w="x"===y?"y":"x",E=e.modifiersData.popperOffsets,O=e.rects.reference,x=e.rects.popper,C="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,A="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(E){if(r){var S,j="y"===y?at:ut,k="y"===y?ct:lt,P="y"===y?"height":"width",D=E[y],M=D+g[j],N=D-g[k],B=p?-x[P]/2:0,I=b===pt?O[P]:x[P],H=b===pt?-x[P]:-O[P],F=e.elements.arrow,q=p&&F?Vt(F):{width:0,height:0},z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=z[j],R=z[k],V=Zt(0,O[P],q[P]),Y=_?O[P]/2-B-V-W-A.mainAxis:I-V-W-A.mainAxis,U=_?-O[P]/2+B+V+R+A.mainAxis:H+V+R+A.mainAxis,K=e.elements.arrow&&Gt(e.elements.arrow),Q=K?"y"===y?K.clientTop||0:K.clientLeft||0:0,X=null!=(S=null==T?void 0:T[y])?S:0,$=D+U-X,G=Zt(p?Ft(M,D+Y-X-Q):M,D,p?Ht(N,$):N);E[y]=G,L[y]=G-D}if(a){var J,Z="x"===y?at:ut,tt="x"===y?ct:lt,et=E[w],nt="y"===w?"height":"width",ot=et+g[Z],it=et-g[tt],rt=-1!==[at,ut].indexOf(v),st=null!=(J=null==T?void 0:T[w])?J:0,ft=rt?ot:et-O[nt]-x[nt]-st+A.altAxis,dt=rt?et+O[nt]+x[nt]-st-A.altAxis:it,ht=p&&rt?function(t,e,n){var o=Zt(t,e,n);return o>n?n:o}(ft,et,dt):Zt(p?ft:ot,et,p?dt:it);E[w]=ht,L[w]=ht-et}e.modifiersData[o]=L}},requiresIfExists:["offset"]};function ke(t,e,n){void 0===n&&(n=!1);var o,i,r=Mt(e),s=Mt(e)&&function(t){var e=t.getBoundingClientRect(),n=qt(e.width)/t.offsetWidth||1,o=qt(e.height)/t.offsetHeight||1;return 1!==n||1!==o}(e),a=Qt(e),c=Rt(t,s,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==kt(e)||me(a))&&(l=(o=e)!==Pt(o)&&Mt(o)?{scrollLeft:(i=o).scrollLeft,scrollTop:i.scrollTop}:pe(o)),Mt(e)?((u=Rt(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=he(a))),{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function Pe(t){var e=new Map,n=new Set,o=[];function i(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!n.has(t)){var o=e.get(t);o&&i(o)}}),o.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){n.has(t.name)||i(t)}),o}var De={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 Ne(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,o=void 0===n?[]:n,i=e.defaultOptions,r=void 0===i?De:i;return function(t,e,n){void 0===n&&(n=r);var i,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},De,r),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({},r,a.options,i),a.scrollParents={reference:Dt(t)?ve(t):t.contextElement?ve(t.contextElement):[],popper:ve(e)};var s,l,d=function(t){var e=Pe(t);return jt.reduce(function(t,n){return t.concat(e.filter(function(t){return t.phase===n}))},[])}((s=[].concat(o,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=d.filter(function(t){return t.enabled}),a.orderedModifiers.forEach(function(t){var e=t.name,n=t.options,o=void 0===n?{}:n,i=t.effect;if("function"==typeof i){var r=i({state:a,name:e,instance:u,options:o}),s=function(){};c.push(r||s)}}),u.update()},forceUpdate:function(){if(!l){var t=a.elements,e=t.reference,n=t.popper;if(Me(e,n)){a.rects={reference:ke(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 o=0;o<a.orderedModifiers.length;o++)if(!0!==a.reset){var i=a.orderedModifiers[o],r=i.fn,s=i.options,c=void 0===s?{}:s,f=i.name;"function"==typeof r&&(a=r({state:a,options:c,name:f,instance:u})||a)}else a.reset=!1,o=-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 Be=Ne({defaultModifiers:[ce,Se,se,Bt,Le,xe,je,ne,Te]}),Ie=Object.freeze({__proto__:null,afterMain:At,afterRead:Ot,afterWrite:St,applyStyles:Bt,arrow:ne,auto:ft,basePlacements:dt,beforeMain:xt,beforeRead:wt,beforeWrite:Tt,bottom:ct,clippingParents:mt,computeStyles:se,createPopper:Be,detectOverflow:Ee,end:ht,eventListeners:ce,flip:xe,hide:Te,left:ut,main:Ct,modifierPhases:jt,offset:Le,placements:yt,popper:vt,popperGenerator:Ne,popperOffsets:Se,preventOverflow:je,read:Et,reference:bt,right:lt,start:pt,top:at,variationPlacements:_t,viewport:gt,write:Lt});const He={"*":["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:[]},Fe=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),qe=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,ze=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?!Fe.has(n)||Boolean(qe.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(n))};const We={allowList:He,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Re={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 Ye extends R{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return We}static get DefaultType(){return Re}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 o=e[0],i=e[1];this._setContent(t,i,o)}const n=t.children[0],o=this._resolvePossibleFunction(this._config.extraClass);return o&&n.classList.add(...o.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],o=e[1];super._typeCheckConfig({selector:t,entry:o},Ve)}}_setContent(t,e,n){const o=U.findOne(n,t);o&&((e=this._resolvePossibleFunction(e))?f(e)?this._putElementInTemplate(d(e),o):this._config.html?o.innerHTML=this._maybeSanitize(e):o.textContent=e:o.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 o=(new window.DOMParser).parseFromString(t,"text/html"),i=[].concat(...o.body.querySelectorAll("*"));for(const t of i){const n=t.nodeName.toLowerCase();if(!Object.keys(e).includes(n)){t.remove();continue}const o=[].concat(...t.attributes),i=[].concat(e["*"]||[],e[n]||[]);for(const e of o)ze(e,i)||t.removeAttribute(e.nodeName)}return o.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 Ue=new Set(["sanitize","allowList","sanitizeFn"]),Ke="fade",Qe="show",Xe=".tooltip-inner",$e=".".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:He,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"},on={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 rn extends V{constructor(t,e){if(void 0===Ie)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 on}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),H.off(this._element.closest($e),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=H.trigger(this._element,this.constructor.eventName("show")),e=(m(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 o=this._config.container;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(n),H.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(Qe),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))H.on(t,"mouseover",g);this._queueCallback(()=>{H.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(H.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(Qe),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))H.off(t,"mouseover",g);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"),H.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(Ke,Qe),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(Ke),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Ye(s(s({},this._config),{},{content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)})),this._templateFactory}_getContentForTemplate(){return{[Xe]: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(Ke)}_isShown(){return this.tip&&this.tip.classList.contains(Qe)}_createPopper(t){const e=w(this._config.placement,[this,t,this._element]),n=en[e.toUpperCase()];return Be(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)H.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");H.on(this._element,t,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?Ze:Je]=!0,e._enter()}),H.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()},H.on(this._element.closest($e),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=W.getDataAttributes(this._element);for(const t of Object.keys(e))Ue.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:d(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 o=e[0],i=e[1];this.constructor.Default[o]!==i&&(t[o]=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=rn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'.concat(t,'"'));e[t]()}})}}var sn;y(rn);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"),dn="overflow-hidden",pn="closing";class hn{static initBar(){new IntersectionObserver(t=>{t.forEach(t=>{an.classList.toggle("invisible",t.isIntersecting)})},{rootMargin:"-".concat(o(hn,this,gn)._,"px 0px 0px 0px")}).observe(cn),mn._=o(hn,this,!1)}static listenAnchors(){[...document.getElementsByClassName("toc-link")].forEach(t=>{t.onclick=()=>this.hidePopup()})}static refresh(){o(hn,this,mn)._&&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(dn,t),document.body.classList.toggle(dn,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 mn={_:!0},gn={_:48};i(hn,"options",{tocSelector:"#toc-popup-content",contentSelector:".content",ignoreSelector:"[data-toc-skip]",headingSelector:"h2, h3, h4",orderedList:!1,scrollSmooth:!1,collapseDepth:4,headingsOffset:o(sn=hn,sn,gn)._});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",bn=".".concat("bs.dropdown"),_n=".data-api",yn="ArrowUp",wn="ArrowDown",En="hide".concat(bn),On="hidden".concat(bn),xn="show".concat(bn),Cn="shown".concat(bn),An="click".concat(bn).concat(_n),Tn="keydown".concat(bn).concat(_n),Ln="keyup".concat(bn).concat(_n),Sn="show",jn='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',kn="".concat(jn,".").concat(Sn),Pn=".dropdown-menu",Dn=_()?"top-end":"top-start",Mn=_()?"top-start":"top-end",Nn=_()?"bottom-end":"bottom-start",Bn=_()?"bottom-start":"bottom-end",In=_()?"left-start":"right-start",Hn=_()?"right-start":"left-start",Fn={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},qn={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class zn extends V{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=U.next(this._element,Pn)[0]||U.prev(this._element,Pn)[0]||U.findOne(Pn,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Fn}static get DefaultType(){return qn}static get NAME(){return vn}toggle(){return this._isShown()?this.hide():this.show()}show(){if(h(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!H.trigger(this._element,xn,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))H.on(t,"mouseover",g);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Sn),this._element.classList.add(Sn),H.trigger(this._element,Cn,t)}}hide(){if(h(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(!H.trigger(this._element,En,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))H.off(t,"mouseover",g);this._popper&&this._popper.destroy(),this._menu.classList.remove(Sn),this._element.classList.remove(Sn),this._element.setAttribute("aria-expanded","false"),W.removeDataAttribute(this._menu,"popper"),H.trigger(this._element,On,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===Ie)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=d(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=Be(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Sn)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return In;if(t.classList.contains("dropstart"))return Hn;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?Mn:Dn:e?Bn:Nn}_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)&&(W.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 o=U.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(t=>p(t));o.length&&((t,e,n,o)=>{const i=t.length;let r=t.indexOf(e);return-1===r?!n&&o?t[i-1]:t[0]:(r+=n?1:-1,o&&(r=(r+i)%i),t[Math.max(0,Math.min(r,i-1))])})(o,n,e===wn,!o.includes(n)).focus()}static jQueryInterface(t){return this.each(function(){const e=zn.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=U.find(kn);for(const n of e){const e=zn.getInstance(n);if(!e||!1===e._config.autoClose)continue;const o=t.composedPath(),i=o.includes(e._menu);if(o.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 r={relatedTarget:e._element};"click"===t.type&&(r.clickEvent=t),e._completeHide(r)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),n="Escape"===t.key,o=[yn,wn].includes(t.key);if(!o&&!n)return;if(e&&!n)return;t.preventDefault();const i=this.matches(jn)?this:U.prev(this,jn)[0]||U.next(this,jn)[0]||U.findOne(jn,t.delegateTarget.parentNode),r=zn.getOrCreateInstance(i);if(o)return t.stopPropagation(),r.show(),void r._selectMenuItem(t);r._isShown()&&(t.stopPropagation(),r.hide(),i.focus())}}H.on(document,Tn,jn,zn.dataApiKeydownHandler),H.on(document,Tn,Pn,zn.dataApiKeydownHandler),H.on(document,An,zn.clearMenus),H.on(document,Ln,zn.clearMenus),H.on(document,An,jn,function(t){t.preventDefault(),zn.getOrCreateInstance(this).toggle()}),y(zn);const Wn="active",Rn=document.querySelector("#mode-toggle + .dropdown-menu"),Vn=Theme.isSystemTheme?Theme.Mode.SYSTEM:Theme.resolvedTheme;const Yn=document.getElementById("sidebar"),Un=document.getElementById("sidebar-trigger"),Kn=document.getElementById("mask");class Qn{static toggle(){Xn._=o(Qn,this,!o(Qn,this,Xn)._),document.body.toggleAttribute("sidebar-display",o(Qn,this,Xn)._),Yn.classList.toggle("z-2",o(Qn,this,Xn)._),Kn.classList.toggle("d-none",!o(Qn,this,Xn)._)}}var Xn={_:!1};const $n=document.getElementById("sidebar-trigger"),Gn=document.getElementById("search-trigger"),Jn=document.getElementById("search-cancel"),Zn=document.querySelectorAll("#main-wrapper>.container>.row"),to=document.getElementById("topbar-title"),eo=document.getElementById("search"),no=document.getElementById("search-result-wrapper"),oo=document.getElementById("search-results"),io=document.getElementById("search-input"),ro=document.getElementById("search-hints"),so="d-block",ao="d-none",co="input-focus",lo="d-flex";class uo{static on(){$n.classList.add(ao),to.classList.add(ao),Gn.classList.add(ao),eo.classList.add(lo),Jn.classList.add(so)}static off(){Jn.classList.remove(so),eo.classList.remove(lo),$n.classList.remove(ao),to.classList.remove(ao),Gn.classList.remove(ao)}}class fo{static on(){this.resultVisible||(no.classList.remove(ao),Zn.forEach(t=>{t.classList.add(ao)}),this.resultVisible=!0)}static off(){this.resultVisible&&(oo.innerHTML="",ro.classList.contains(ao)&&ro.classList.remove(ao),no.classList.add(ao),Zn.forEach(t=>{t.classList.remove(ao)}),io.textContent="",this.resultVisible=!1)}}function po(){return Jn.classList.contains(so)}i(fo,"resultVisible",!1),Un.onclick=Kn.onclick=()=>Qn.toggle(),Gn.addEventListener("click",()=>{uo.on(),fo.on(),io.focus()}),Jn.addEventListener("click",()=>{uo.off(),fo.off()}),io.addEventListener("focus",()=>{eo.classList.add(co)}),io.addEventListener("focusout",()=>{eo.classList.remove(co)}),io.addEventListener("input",()=>{""===io.value?po()?ro.classList.remove(ao):fo.off():(fo.on(),po()&&ro.classList.add(ao))}),Theme.isToggleable&&(Rn.querySelectorAll(".dropdown-item").forEach(t=>{t.dataset.themeMode!==Vn||t.classList.add(Wn)}),Rn.addEventListener("click",t=>{const e=t.target.closest(".dropdown-item");if(!e)return;const n=Rn.querySelector(".".concat(Wn));n!==e&&(n.classList.remove(Wn),e.classList.add(Wn),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 rn(t))}();
|
data/assets/js/dist/home.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* jekyll-theme-chirpy v7.
|
|
2
|
+
* jekyll-theme-chirpy v7.6.0 | © 2019 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,i){t.has(e)||t.set(e,new Map);const o=t.get(e);o.has(n)||0===o.size?o.set(n,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(o.keys())[0]}.`)},get:(e,n)=>t.has(e)&&t.get(e).get(n)||null,remove(e,n){if(!t.has(e))return;const i=t.get(e);i.delete(n),0===i.size&&t.delete(e)}};const n="transitionend",i=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),t),o=t=>null==t?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),r=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),s=t=>r(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(i(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},l=()=>{},c=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,u=[],f=()=>"rtl"===document.documentElement.dir,d=t=>{var e;e=()=>{const e=c();if(e){const n=t.NAME,i=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=i,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},h=function(t,e){if(!(!(arguments.length>2&&void 0!==arguments[2])||arguments[2]))return void p(t);const i=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const i=Number.parseFloat(e),o=Number.parseFloat(n);return i||o?(e=e.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(n))):0})(e)+5;let o=!1;const r=i=>{let{target:s}=i;s===e&&(o=!0,e.removeEventListener(n,r),p(t))};e.addEventListener(n,r),setTimeout(()=>{o||e.dispatchEvent(new Event(n))},i)},m=/[^.]*(?=\..*)\.|.*/,g=/\..*/,v=/::\d+$/,b={};let y=1;const _={mouseenter:"mouseover",mouseleave:"mouseout"},w=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 E(t,e){return e&&`${e}::${y++}`||t.uidEvent||y++}function O(t){const e=E(t);return t.uidEvent=e,b[e]=b[e]||{},b[e]}function x(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 A(t,e,n){const i="string"==typeof e,o=i?n:e||n;let r=S(t);return w.has(r)||(r=t),[i,o,r]}function C(t,e,n,i,o){if("string"!=typeof e||!t)return;let[r,s,a]=A(e,n,i);if(e in _){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 l=O(t),c=l[a]||(l[a]={}),u=x(c,s,r?n:null);if(u)return void(u.oneOff=u.oneOff&&o);const f=E(s,e.replace(m,"")),d=r?function(t,e,n){return function i(o){const r=t.querySelectorAll(e);for(let{target:s}=o;s&&s!==this;s=s.parentNode)for(const a of r)if(a===s)return k(o,{delegateTarget:s}),i.oneOff&&j.off(t,o.type,e,n),n.apply(s,[o])}}(t,n,s):function(t,e){return function n(i){return k(i,{delegateTarget:t}),n.oneOff&&j.off(t,i.type,e),e.apply(t,[i])}}(t,s);d.delegationSelector=r?n:null,d.callable=s,d.oneOff=o,d.uidEvent=f,c[f]=d,t.addEventListener(a,d,r)}function T(t,e,n,i,o){const r=x(e[n],i,o);r&&(t.removeEventListener(n,r,Boolean(o)),delete e[n][r.uidEvent])}function L(t,e,n,i){const o=e[n]||{};for(const[r,s]of Object.entries(o))r.includes(i)&&T(t,e,n,s.callable,s.delegationSelector)}function S(t){return t=t.replace(g,""),_[t]||t}const j={on(t,e,n,i){C(t,e,n,i,!1)},one(t,e,n,i){C(t,e,n,i,!0)},off(t,e,n,i){if("string"!=typeof e||!t)return;const[o,r,s]=A(e,n,i),a=s!==e,l=O(t),c=l[s]||{},u=e.startsWith(".");if(void 0===r){if(u)for(const n of Object.keys(l))L(t,l,n,e.slice(1));for(const[n,i]of Object.entries(c)){const o=n.replace(v,"");a&&!e.includes(o)||T(t,l,s,i.callable,i.delegationSelector)}}else{if(!Object.keys(c).length)return;T(t,l,s,r,o?n:null)}},trigger(t,e,n){if("string"!=typeof e||!t)return null;const i=c();let o=null,r=!0,s=!0,a=!1;e!==S(e)&&i&&(o=i.Event(e,n),i(t).trigger(o),r=!o.isPropagationStopped(),s=!o.isImmediatePropagationStopped(),a=o.isDefaultPrevented());const l=k(new Event(e,{bubbles:r,cancelable:!0}),n);return a&&l.preventDefault(),s&&t.dispatchEvent(l),l.defaultPrevented&&o&&o.preventDefault(),l}};function k(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const[n,i]of Object.entries(e))try{t[n]=i}catch{Object.defineProperty(t,n,{configurable:!0,get:()=>i})}return t}function D(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{return t}}function P(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const N={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${P(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${P(e)}`)},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"));for(const i of n){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1),e[n]=D(t.dataset[i])}return e},getDataAttribute:(t,e)=>D(t.getAttribute(`data-bs-${P(e)}`))};class M{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=r(e)?N.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...r(e)?N.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,i]of Object.entries(e)){const e=t[n],s=r(e)?"element":o(e);if(!new RegExp(i).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${s}" but expected type "${i}".`)}}}class B extends M{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),j.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e){h(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.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const F=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=`#${n.split("#")[1]}`),e=n&&"#"!==n?n.trim():null}return e?e.split(",").map(t=>i(t)).join(","):null},I={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 i=t.parentNode.closest(e);for(;i;)n.push(i),i=i.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=>`${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(!r(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=F(t);return e&&I.findOne(e)?e:null},getElementFromSelector(t){const e=F(t);return e?I.findOne(e):null},getMultipleElementsFromSelector(t){const e=F(t);return e?I.find(e):[]}},H=".bs.collapse",$=`show${H}`,z=`shown${H}`,q=`hide${H}`,W=`hidden${H}`,R=`click${H}.data-api`,V="show",Y="collapse",U="collapsing",K=`:scope .${Y} .${Y}`,Q='[data-bs-toggle="collapse"]',X={parent:null,toggle:!0},G={parent:"(null|element)",toggle:"boolean"};class J extends B{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const n=I.find(Q);for(const t of n){const e=I.getSelectorFromElement(t),n=I.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 X}static get DefaultType(){return G}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=>J.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning)return;if(j.trigger(this._element,$).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(Y),this._element.classList.add(U),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(U),this._element.classList.add(Y,V),this._element.style[e]="",j.trigger(this._element,z)},this._element,!0),this._element.style[e]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(j.trigger(this._element,q).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,this._element.offsetHeight,this._element.classList.add(U),this._element.classList.remove(Y,V);for(const t of this._triggerArray){const e=I.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(U),this._element.classList.add(Y),j.trigger(this._element,W)},this._element,!0)}_isShown(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._element).classList.contains(V)}_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(Q);for(const e of t){const t=I.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=I.find(K,this._config.parent);return I.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=J.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t]()}})}}j.on(document,R,Q,function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of I.getMultipleElementsFromSelector(this))J.getOrCreateInstance(t,{toggle:!1}).toggle()}),d(J),document.getElementsByClassName("collapse");var Z="top",tt="bottom",et="right",nt="left",it="auto",ot=[Z,tt,et,nt],rt="start",st="end",at="clippingParents",lt="viewport",ct="popper",ut="reference",ft=ot.reduce(function(t,e){return t.concat([e+"-"+rt,e+"-"+st])},[]),dt=[].concat(ot,[it]).reduce(function(t,e){return t.concat([e,e+"-"+rt,e+"-"+st])},[]),pt="beforeRead",ht="read",mt="afterRead",gt="beforeMain",vt="main",bt="afterMain",yt="beforeWrite",_t="write",wt="afterWrite",Et=[pt,ht,mt,gt,vt,bt,yt,_t,wt];function Ot(t){return t?(t.nodeName||"").toLowerCase():null}function xt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function At(t){return t instanceof xt(t).Element||t instanceof Element}function Ct(t){return t instanceof xt(t).HTMLElement||t instanceof HTMLElement}function Tt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof xt(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]||{},i=e.attributes[t]||{},o=e.elements[t];Ct(o)&&Ot(o)&&(Object.assign(o.style,n),Object.keys(i).forEach(function(t){var e=i[t];!1===e?o.removeAttribute(t):o.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 i=e.elements[t],o=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce(function(t,e){return t[e]="",t},{});Ct(i)&&Ot(i)&&(Object.assign(i.style,r),Object.keys(o).forEach(function(t){i.removeAttribute(t)}))})}},requires:["computeStyles"]};function St(t){return t.split("-")[0]}var jt=Math.max,kt=Math.min,Dt=Math.round;function Pt(){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 Nt(){return!/^((?!chrome|android).)*safari/i.test(Pt())}function Mt(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i=t.getBoundingClientRect(),o=1,r=1;e&&Ct(t)&&(o=t.offsetWidth>0&&Dt(i.width)/t.offsetWidth||1,r=t.offsetHeight>0&&Dt(i.height)/t.offsetHeight||1);var s=(At(t)?xt(t):window).visualViewport,a=!Nt()&&n,l=(i.left+(a&&s?s.offsetLeft:0))/o,c=(i.top+(a&&s?s.offsetTop:0))/r,u=i.width/o,f=i.height/r;return{width:u,height:f,top:c,right:l+u,bottom:c+f,left:l,x:l,y:c}}function Bt(t){var e=Mt(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function Ft(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Tt(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function It(t){return xt(t).getComputedStyle(t)}function Ht(t){return["table","td","th"].indexOf(Ot(t))>=0}function $t(t){return((At(t)?t.ownerDocument:t.document)||window.document).documentElement}function zt(t){return"html"===Ot(t)?t:t.assignedSlot||t.parentNode||(Tt(t)?t.host:null)||$t(t)}function qt(t){return Ct(t)&&"fixed"!==It(t).position?t.offsetParent:null}function Wt(t){for(var e=xt(t),n=qt(t);n&&Ht(n)&&"static"===It(n).position;)n=qt(n);return n&&("html"===Ot(n)||"body"===Ot(n)&&"static"===It(n).position)?e:n||function(t){var e=/firefox/i.test(Pt());if(/Trident/i.test(Pt())&&Ct(t)&&"fixed"===It(t).position)return null;var n=zt(t);for(Tt(n)&&(n=n.host);Ct(n)&&["html","body"].indexOf(Ot(n))<0;){var i=It(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}function Rt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Vt(t,e,n){return jt(t,kt(e,n))}function Yt(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Ut(t,e){return e.reduce(function(e,n){return e[n]=t,e},{})}var Kt={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,o=t.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,a=St(n.placement),l=Rt(a),c=[nt,et].indexOf(a)>=0?"height":"width";if(r&&s){var u=function(t,e){return Yt("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Ut(t,ot))}(o.padding,n),f=Bt(r),d="y"===l?Z:nt,p="y"===l?tt:et,h=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],m=s[l]-n.rects.reference[l],g=Wt(r),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,y=u[d],_=v-f[c]-u[p],w=v/2-f[c]/2+b,E=Vt(y,w,_),O=l;n.modifiersData[i]=((e={})[O]=E,e.centerOffset=E-w,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&Ft(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qt(t){return t.split("-")[1]}var Xt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Gt(t){var e,n=t.popper,i=t.popperRect,o=t.placement,r=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,f=t.isFixed,d=s.x,p=void 0===d?0:d,h=s.y,m=void 0===h?0:h,g="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),y=nt,_=Z,w=window;if(c){var E=Wt(n),O="clientHeight",x="clientWidth";if(E===xt(n)&&"static"!==It(E=$t(n)).position&&"absolute"===a&&(O="scrollHeight",x="scrollWidth"),o===Z||(o===nt||o===et)&&r===st)_=tt,m-=(f&&E===w&&w.visualViewport?w.visualViewport.height:E[O])-i.height,m*=l?1:-1;if(o===nt||(o===Z||o===tt)&&r===st)y=et,p-=(f&&E===w&&w.visualViewport?w.visualViewport.width:E[x])-i.width,p*=l?1:-1}var A,C=Object.assign({position:a},c&&Xt),T=!0===u?function(t,e){var n=t.x,i=t.y,o=e.devicePixelRatio||1;return{x:Dt(n*o)/o||0,y:Dt(i*o)/o||0}}({x:p,y:m},xt(n)):{x:p,y:m};return p=T.x,m=T.y,l?Object.assign({},C,((A={})[_]=b?"0":"",A[y]=v?"0":"",A.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",A)):Object.assign({},C,((e={})[_]=b?m+"px":"",e[y]=v?p+"px":"",e.transform="",e))}var Jt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,s=void 0===r||r,a=n.roundOffsets,l=void 0===a||a,c={placement:St(e.placement),variation:Qt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Gt(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Gt(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},Zt={passive:!0};var te={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,o=i.scroll,r=void 0===o||o,s=i.resize,a=void 0===s||s,l=xt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach(function(t){t.addEventListener("scroll",n.update,Zt)}),a&&l.addEventListener("resize",n.update,Zt),function(){r&&c.forEach(function(t){t.removeEventListener("scroll",n.update,Zt)}),a&&l.removeEventListener("resize",n.update,Zt)}},data:{}},ee={left:"right",right:"left",bottom:"top",top:"bottom"};function ne(t){return t.replace(/left|right|bottom|top/g,function(t){return ee[t]})}var ie={start:"end",end:"start"};function oe(t){return t.replace(/start|end/g,function(t){return ie[t]})}function re(t){var e=xt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function se(t){return Mt($t(t)).left+re(t).scrollLeft}function ae(t){var e=It(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function le(t){return["html","body","#document"].indexOf(Ot(t))>=0?t.ownerDocument.body:Ct(t)&&ae(t)?t:le(zt(t))}function ce(t,e){var n;void 0===e&&(e=[]);var i=le(t),o=i===(null==(n=t.ownerDocument)?void 0:n.body),r=xt(i),s=o?[r].concat(r.visualViewport||[],ae(i)?i:[]):i,a=e.concat(s);return o?a:a.concat(ce(zt(s)))}function ue(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function fe(t,e,n){return e===lt?ue(function(t,e){var n=xt(t),i=$t(t),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;var c=Nt();(c||!c&&"fixed"===e)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a+se(t),y:l}}(t,n)):At(e)?function(t,e){var n=Mt(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):ue(function(t){var e,n=$t(t),i=re(t),o=null==(e=t.ownerDocument)?void 0:e.body,r=jt(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=jt(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+se(t),l=-i.scrollTop;return"rtl"===It(o||n).direction&&(a+=jt(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}($t(t)))}function de(t,e,n,i){var o="clippingParents"===e?function(t){var e=ce(zt(t)),n=["absolute","fixed"].indexOf(It(t).position)>=0&&Ct(t)?Wt(t):t;return At(n)?e.filter(function(t){return At(t)&&Ft(t,n)&&"body"!==Ot(t)}):[]}(t):[].concat(e),r=[].concat(o,[n]),s=r[0],a=r.reduce(function(e,n){var o=fe(t,n,i);return e.top=jt(o.top,e.top),e.right=kt(o.right,e.right),e.bottom=kt(o.bottom,e.bottom),e.left=jt(o.left,e.left),e},fe(t,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function pe(t){var e,n=t.reference,i=t.element,o=t.placement,r=o?St(o):null,s=o?Qt(o):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case Z:e={x:a,y:n.y-i.height};break;case tt:e={x:a,y:n.y+n.height};break;case et:e={x:n.x+n.width,y:l};break;case nt:e={x:n.x-i.width,y:l};break;default:e={x:n.x,y:n.y}}var c=r?Rt(r):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case rt:e[c]=e[c]-(n[u]/2-i[u]/2);break;case st:e[c]=e[c]+(n[u]/2-i[u]/2)}}return e}function he(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=void 0===i?t.placement:i,r=n.strategy,s=void 0===r?t.strategy:r,a=n.boundary,l=void 0===a?at:a,c=n.rootBoundary,u=void 0===c?lt:c,f=n.elementContext,d=void 0===f?ct:f,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,v=Yt("number"!=typeof g?g:Ut(g,ot)),b=d===ct?ut:ct,y=t.rects.popper,_=t.elements[h?b:d],w=de(At(_)?_:_.contextElement||$t(t.elements.popper),l,u,s),E=Mt(t.elements.reference),O=pe({reference:E,element:y,placement:o}),x=ue(Object.assign({},y,O)),A=d===ct?x:E,C={top:w.top-A.top+v.top,bottom:A.bottom-w.bottom+v.bottom,left:w.left-A.left+v.left,right:A.right-w.right+v.right},T=t.modifiersData.offset;if(d===ct&&T){var L=T[o];Object.keys(C).forEach(function(t){var e=[et,tt].indexOf(t)>=0?1:-1,n=[Z,tt].indexOf(t)>=0?"y":"x";C[t]+=L[n]*e})}return C}function me(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?dt:l,u=Qt(i),f=u?a?ft:ft.filter(function(t){return Qt(t)===u}):ot,d=f.filter(function(t){return c.indexOf(t)>=0});0===d.length&&(d=f);var p=d.reduce(function(e,n){return e[n]=he(t,{placement:n,boundary:o,rootBoundary:r,padding:s})[St(n)],e},{});return Object.keys(p).sort(function(t,e){return p[t]-p[e]})}var ge={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=e.options.placement,v=St(g),b=l||(v===g||!h?[ne(g)]:function(t){if(St(t)===it)return[];var e=ne(t);return[oe(t),e,oe(e)]}(g)),y=[g].concat(b).reduce(function(t,n){return t.concat(St(n)===it?me(e,{placement:n,boundary:u,rootBoundary:f,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)},[]),_=e.rects.reference,w=e.rects.popper,E=new Map,O=!0,x=y[0],A=0;A<y.length;A++){var C=y[A],T=St(C),L=Qt(C)===rt,S=[Z,tt].indexOf(T)>=0,j=S?"width":"height",k=he(e,{placement:C,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),D=S?L?et:nt:L?tt:Z;_[j]>w[j]&&(D=ne(D));var P=ne(D),N=[];if(r&&N.push(k[T]<=0),a&&N.push(k[D]<=0,k[P]<=0),N.every(function(t){return t})){x=C,O=!1;break}E.set(C,N)}if(O)for(var M=function(t){var e=y.find(function(e){var n=E.get(e);if(n)return n.slice(0,t).every(function(t){return t})});if(e)return x=e,"break"},B=h?3:1;B>0;B--){if("break"===M(B))break}e.placement!==x&&(e.modifiersData[i]._skip=!0,e.placement=x,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ve(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 be(t){return[Z,et,tt,nt].some(function(e){return t[e]>=0})}var ye={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,o=e.rects.popper,r=e.modifiersData.preventOverflow,s=he(e,{elementContext:"reference"}),a=he(e,{altBoundary:!0}),l=ve(s,i),c=ve(a,o,r),u=be(l),f=be(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}};var _e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.offset,r=void 0===o?[0,0]:o,s=dt.reduce(function(t,n){return t[n]=function(t,e,n){var i=St(t),o=[nt,Z].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},e,{placement:t})):n,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[nt,et].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,e.rects,r),t},{}),a=s[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=s}};var we={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=pe({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})},data:{}};var Ee={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,m=void 0===h?0:h,g=he(e,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),v=St(e.placement),b=Qt(e.placement),y=!b,_=Rt(v),w="x"===_?"y":"x",E=e.modifiersData.popperOffsets,O=e.rects.reference,x=e.rects.popper,A="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,C="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(E){if(r){var S,j="y"===_?Z:nt,k="y"===_?tt:et,D="y"===_?"height":"width",P=E[_],N=P+g[j],M=P-g[k],B=p?-x[D]/2:0,F=b===rt?O[D]:x[D],I=b===rt?-x[D]:-O[D],H=e.elements.arrow,$=p&&H?Bt(H):{width:0,height:0},z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},q=z[j],W=z[k],R=Vt(0,O[D],$[D]),V=y?O[D]/2-B-R-q-C.mainAxis:F-R-q-C.mainAxis,Y=y?-O[D]/2+B+R+W+C.mainAxis:I+R+W+C.mainAxis,U=e.elements.arrow&&Wt(e.elements.arrow),K=U?"y"===_?U.clientTop||0:U.clientLeft||0:0,Q=null!=(S=null==T?void 0:T[_])?S:0,X=P+Y-Q,G=Vt(p?kt(N,P+V-Q-K):N,P,p?jt(M,X):M);E[_]=G,L[_]=G-P}if(a){var J,it="x"===_?Z:nt,ot="x"===_?tt:et,st=E[w],at="y"===w?"height":"width",lt=st+g[it],ct=st-g[ot],ut=-1!==[Z,nt].indexOf(v),ft=null!=(J=null==T?void 0:T[w])?J:0,dt=ut?lt:st-O[at]-x[at]-ft+C.altAxis,pt=ut?st+O[at]+x[at]-ft-C.altAxis:ct,ht=p&&ut?function(t,e,n){var i=Vt(t,e,n);return i>n?n:i}(dt,st,pt):Vt(p?dt:lt,st,p?pt:ct);E[w]=ht,L[w]=ht-st}e.modifiersData[i]=L}},requiresIfExists:["offset"]};function Oe(t,e,n){void 0===n&&(n=!1);var i,o,r=Ct(e),s=Ct(e)&&function(t){var e=t.getBoundingClientRect(),n=Dt(e.width)/t.offsetWidth||1,i=Dt(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),a=$t(e),l=Mt(t,s,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ot(e)||ae(a))&&(c=(i=e)!==xt(i)&&Ct(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:re(i)),Ct(e)?((u=Mt(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=se(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function xe(t){var e=new Map,n=new Set,i=[];function o(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!n.has(t)){var i=e.get(t);i&&o(i)}}),i.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){n.has(t.name)||o(t)}),i}var Ae={placement:"bottom",modifiers:[],strategy:"absolute"};function Ce(){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 Te(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,o=e.defaultOptions,r=void 0===o?Ae:o;return function(t,e,n){void 0===n&&(n=r);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ae,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(n){var o="function"==typeof n?n(a.options):n;f(),a.options=Object.assign({},r,a.options,o),a.scrollParents={reference:At(t)?ce(t):t.contextElement?ce(t.contextElement):[],popper:ce(e)};var s,c,d=function(t){var e=xe(t);return Et.reduce(function(t,n){return t.concat(e.filter(function(t){return t.phase===n}))},[])}((s=[].concat(i,a.options.modifiers),c=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(c).map(function(t){return c[t]})));return a.orderedModifiers=d.filter(function(t){return t.enabled}),a.orderedModifiers.forEach(function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,o=t.effect;if("function"==typeof o){var r=o({state:a,name:e,instance:u,options:i}),s=function(){};l.push(r||s)}}),u.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,n=t.popper;if(Ce(e,n)){a.rects={reference:Oe(e,Wt(n),"fixed"===a.options.strategy),popper:Bt(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 i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var o=a.orderedModifiers[i],r=o.fn,s=o.options,l=void 0===s?{}:s,f=o.name;"function"==typeof r&&(a=r({state:a,options:l,name:f,instance:u})||a)}else a.reset=!1,i=-1}}},update:(o=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(o())})})),s}),destroy:function(){f(),c=!0}};if(!Ce(t,e))return u;function f(){l.forEach(function(t){return t()}),l=[]}return u.setOptions(n).then(function(t){!c&&n.onFirstUpdate&&n.onFirstUpdate(t)}),u}}var Le=Te({defaultModifiers:[te,we,Jt,Lt,_e,ge,Ee,Kt,ye]}),Se=Object.freeze({__proto__:null,afterMain:bt,afterRead:mt,afterWrite:wt,applyStyles:Lt,arrow:Kt,auto:it,basePlacements:ot,beforeMain:gt,beforeRead:pt,beforeWrite:yt,bottom:tt,clippingParents:at,computeStyles:Jt,createPopper:Le,detectOverflow:he,end:st,eventListeners:te,flip:ge,hide:ye,left:nt,main:vt,modifierPhases:Et,offset:_e,placements:dt,popper:ct,popperGenerator:Te,popperOffsets:we,preventOverflow:Ee,read:ht,reference:ut,right:et,start:rt,top:Z,variationPlacements:ft,viewport:lt,write:_t});const je={"*":["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:[]},ke=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),De=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Pe=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?!ke.has(n)||Boolean(De.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(n))};const Ne={allowList:je,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Me={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Be={entry:"(string|element|function|null)",selector:"(string|element)"};class Fe extends M{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Ne}static get DefaultType(){return Me}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={...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},Be)}_setContent(t,e,n){const i=I.findOne(n,t);i&&((e=this._resolvePossibleFunction(e))?r(e)?this._putElementInTemplate(s(e),i):this._config.html?i.innerHTML=this._maybeSanitize(e):i.textContent=e:i.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 i=(new window.DOMParser).parseFromString(t,"text/html"),o=[].concat(...i.body.querySelectorAll("*"));for(const t of o){const n=t.nodeName.toLowerCase();if(!Object.keys(e).includes(n)){t.remove();continue}const i=[].concat(...t.attributes),o=[].concat(e["*"]||[],e[n]||[]);for(const e of i)Pe(e,o)||t.removeAttribute(e.nodeName)}return i.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 Ie=new Set(["sanitize","allowList","sanitizeFn"]),He="fade",$e="show",ze=".tooltip-inner",qe=".modal",We="hide.bs.modal",Re="hover",Ve="focus",Ye="click",Ue={AUTO:"auto",TOP:"top",RIGHT:f()?"left":"right",BOTTOM:"bottom",LEFT:f()?"right":"left"},Ke={allowList:je,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"},Qe={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 Xe extends B{constructor(t,e){if(void 0===Se)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 Ke}static get DefaultType(){return Qe}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),j.off(this._element.closest(qe),We,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=j.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:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(n),j.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add($e),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))j.on(t,"mouseover",l);this._queueCallback(()=>{j.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(j.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove($e),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))j.off(t,"mouseover",l);this._activeTrigger[Ye]=!1,this._activeTrigger[Ve]=!1,this._activeTrigger[Re]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),j.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(He,$e),e.classList.add(`bs-${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(He),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Fe({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[ze]: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(He)}_isShown(){return this.tip&&this.tip.classList.contains($e)}_createPopper(t){const e=p(this._config.placement,[this,t,this._element]),n=Ue[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:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...p(this._config.popperConfig,[void 0,e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)j.on(this._element,this.constructor.eventName("click"),this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger[Ye]=!(e._isShown()&&e._activeTrigger[Ye]),e.toggle()});else if("manual"!==e){const t=e===Re?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=e===Re?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");j.on(this._element,t,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?Ve:Re]=!0,e._enter()}),j.on(this._element,n,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?Ve:Re]=e._element.contains(t.relatedTarget),e._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},j.on(this._element.closest(qe),We,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=N.getDataAttributes(this._element);for(const t of Object.keys(e))Ie.has(t)&&delete e[t];return t={...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=Xe.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}d(Xe);const Ge="data-src",Je="data-lqip",Ze="shimmer",tn="blur";function en(t){this.parentElement.classList.remove(t)}function nn(){this.complete&&(this.hasAttribute(Je)?en.call(this,tn):en.call(this,Ze))}function on(){const t=this.getAttribute(Ge);this.setAttribute("src",encodeURI(t)),this.removeAttribute(Ge)}class rn{static get attrTimestamp(){return"data-ts"}static get attrDateFormat(){return"data-df"}static get locale(){return document.documentElement.getAttribute("lang").substring(0,2)}static getTimestamp(t){return Number(t.getAttribute(this.attrTimestamp))}static getDateFormat(t){return t.getAttribute(this.attrDateFormat)}}function sn(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 an(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 i=n.call(t,e);if("object"!=typeof i)return i;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}var ln;const cn=document.getElementById("toc-bar"),un=document.getElementById("toc-solo-trigger"),fn=document.getElementsByClassName("toc-trigger"),dn=document.getElementById("toc-popup"),pn=document.getElementById("toc-popup-close"),hn="overflow-hidden",mn="closing";class gn{static initBar(){new IntersectionObserver(t=>{t.forEach(t=>{cn.classList.toggle("invisible",t.isIntersecting)})},{rootMargin:`-${sn(gn,this,bn)._}px 0px 0px 0px`}).observe(un),vn._=sn(gn,this,!1)}static listenAnchors(){[...document.getElementsByClassName("toc-link")].forEach(t=>{t.onclick=()=>this.hidePopup()})}static refresh(){sn(gn,this,vn)._&&this.initComponents(),tocbot.refresh(this.options),this.listenAnchors()}static get popupOpened(){return dn.open}static showPopup(){this.lockScroll(!0),dn.showModal();dn.querySelector("li.is-active-li").scrollIntoView({block:"center"})}static hidePopup(){dn.toggleAttribute(mn),dn.addEventListener("animationend",()=>{dn.toggleAttribute(mn),dn.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(dn.hasAttribute(mn))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(),[...fn].forEach(t=>{t.onclick=()=>this.showPopup()}),dn.onclick=t=>this.clickBackdrop(t),pn.onclick=()=>this.hidePopup(),dn.oncancel=t=>{t.preventDefault(),this.hidePopup()}}static init(){tocbot.init(this.options),this.listenAnchors(),this.initComponents()}}var vn={_:!0},bn={_:48};an(gn,"options",{tocSelector:"#toc-popup-content",contentSelector:".content",ignoreSelector:"[data-toc-skip]",headingSelector:"h2, h3, h4",orderedList:!1,scrollSmooth:!1,collapseDepth:4,headingsOffset:sn(ln=gn,ln,bn)._});an(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 yn=document.getElementById("mode-toggle");const _n=document.getElementById("sidebar"),wn=document.getElementById("sidebar-trigger"),En=document.getElementById("mask");class On{static toggle(){xn._=sn(On,this,!sn(On,this,xn)._),document.body.toggleAttribute("sidebar-display",sn(On,this,xn)._),_n.classList.toggle("z-2",sn(On,this,xn)._),En.classList.toggle("d-none",!sn(On,this,xn)._)}}var xn={_:!1};const An=document.getElementById("sidebar-trigger"),Cn=document.getElementById("search-trigger"),Tn=document.getElementById("search-cancel"),Ln=document.querySelectorAll("#main-wrapper>.container>.row"),Sn=document.getElementById("topbar-title"),jn=document.getElementById("search"),kn=document.getElementById("search-result-wrapper"),Dn=document.getElementById("search-results"),Pn=document.getElementById("search-input"),Nn=document.getElementById("search-hints"),Mn="d-block",Bn="d-none",Fn="input-focus",In="d-flex";class Hn{static on(){An.classList.add(Bn),Sn.classList.add(Bn),Cn.classList.add(Bn),jn.classList.add(In),Tn.classList.add(Mn)}static off(){Tn.classList.remove(Mn),jn.classList.remove(In),An.classList.remove(Bn),Sn.classList.remove(Bn),Cn.classList.remove(Bn)}}class $n{static on(){this.resultVisible||(kn.classList.remove(Bn),Ln.forEach(t=>{t.classList.add(Bn)}),this.resultVisible=!0)}static off(){this.resultVisible&&(Dn.innerHTML="",Nn.classList.contains(Bn)&&Nn.classList.remove(Bn),kn.classList.add(Bn),Ln.forEach(t=>{t.classList.remove(Bn)}),Pn.textContent="",this.resultVisible=!1)}}function zn(){return Tn.classList.contains(Mn)}an($n,"resultVisible",!1),function(){const t=document.querySelectorAll("article img");if(0===t.length)return;t.forEach(t=>{t.addEventListener("load",nn)}),document.querySelectorAll('article img[loading="lazy"]').forEach(t=>{t.complete&&en.call(t,Ze)});const e=document.querySelectorAll(`article img[${Je}="true"]`);e.length&&e.forEach(t=>{on.call(t)})}(),dayjs.locale(rn.locale),dayjs.extend(window.dayjs_plugin_localizedFormat),document.querySelectorAll(`[${rn.attrTimestamp}]`).forEach(t=>{const e=dayjs.unix(rn.getTimestamp(t)),n=e.format(rn.getDateFormat(t));if(t.textContent=n,t.removeAttribute(rn.attrTimestamp),t.removeAttribute(rn.attrDateFormat),t.hasAttribute("data-bs-toggle")&&"tooltip"===t.getAttribute("data-bs-toggle")){const n=e.format("llll");t.setAttribute("data-bs-title",n)}}),wn.onclick=En.onclick=()=>On.toggle(),Cn.addEventListener("click",()=>{Hn.on(),$n.on(),Pn.focus()}),Tn.addEventListener("click",()=>{Hn.off(),$n.off()}),Pn.addEventListener("focus",()=>{jn.classList.add(Fn)}),Pn.addEventListener("focusout",()=>{jn.classList.remove(Fn)}),Pn.addEventListener("input",()=>{""===Pn.value?zn()?Nn.classList.remove(Bn):$n.off():($n.on(),zn()&&Nn.classList.add(Bn))}),yn&&yn.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 Xe(t))}();
|
|
4
|
+
!function(){"use strict";const t=new Map;var e={set(e,n,i){t.has(e)||t.set(e,new Map);const o=t.get(e);o.has(n)||0===o.size?o.set(n,i):console.error("Bootstrap doesn't allow more than one instance per element. Bound instance: ".concat(Array.from(o.keys())[0],"."))},get:(e,n)=>t.has(e)&&t.get(e).get(n)||null,remove(e,n){if(!t.has(e))return;const i=t.get(e);i.delete(n),0===i.size&&t.delete(e)}};function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function i(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 o(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 i=n.call(t,e);if("object"!=typeof i)return i;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 r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){o(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(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 i,o,r,s,a=[],c=!0,l=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(a.push(i.value),a.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?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),d=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},h=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),m=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?m(t.parentNode):null},g=()=>{},b=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,v=[],_=()=>"rtl"===document.documentElement.dir,y=t=>{var e;e=()=>{const e=b();if(e){const n=t.NAME,i=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=i,t.jQueryInterface)}},"loading"===document.readyState?(v.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of v)t()}),v.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},E=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,i=e.transitionDelay;const o=Number.parseFloat(n),r=Number.parseFloat(i);return o||r?(n=n.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(n)+Number.parseFloat(i))):0})(e)+5;let i=!1;const o=n=>{n.target===e&&(i=!0,e.removeEventListener(c,o),w(t))};e.addEventListener(c,o),setTimeout(()=>{i||e.dispatchEvent(new Event(c))},n)},O=/[^.]*(?=\..*)\.|.*/,A=/\..*/,x=/::\d+$/,C={};let T=1;const L={mouseenter:"mouseover",mouseleave:"mouseout"},S=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 j(t,e){return e&&"".concat(e,"::").concat(T++)||t.uidEvent||T++}function k(t){const e=j(t);return t.uidEvent=e,C[e]=C[e]||{},C[e]}function P(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 D(t,e,n){const i="string"==typeof e,o=i?n:e||n;let r=B(t);return S.has(r)||(r=t),[i,o,r]}function N(t,e,n,i,o){if("string"!=typeof e||!t)return;let r=a(D(e,n,i),3),s=r[0],c=r[1],l=r[2];if(e in L){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=k(t),f=u[l]||(u[l]={}),d=P(f,c,s?n:null);if(d)return void(d.oneOff=d.oneOff&&o);const p=j(c,e.replace(O,"")),h=s?function(t,e,n){return function i(o){const r=t.querySelectorAll(e);for(let s=o.target;s&&s!==this;s=s.parentNode)for(const a of r)if(a===s)return H(o,{delegateTarget:s}),i.oneOff&&F.off(t,o.type,e,n),n.apply(s,[o])}}(t,n,c):function(t,e){return function n(i){return H(i,{delegateTarget:t}),n.oneOff&&F.off(t,i.type,e),e.apply(t,[i])}}(t,c);h.delegationSelector=s?n:null,h.callable=c,h.oneOff=o,h.uidEvent=p,f[p]=h,t.addEventListener(l,h,s)}function M(t,e,n,i,o){const r=P(e[n],i,o);r&&(t.removeEventListener(n,r,Boolean(o)),delete e[n][r.uidEvent])}function I(t,e,n,i){const o=e[n]||{};for(const s of Object.entries(o)){var r=a(s,2);const o=r[0],c=r[1];o.includes(i)&&M(t,e,n,c.callable,c.delegationSelector)}}function B(t){return t=t.replace(A,""),L[t]||t}const F={on(t,e,n,i){N(t,e,n,i,!1)},one(t,e,n,i){N(t,e,n,i,!0)},off(t,e,n,i){if("string"!=typeof e||!t)return;const o=a(D(e,n,i),3),r=o[0],s=o[1],c=o[2],l=c!==e,u=k(t),f=u[c]||{},d=e.startsWith(".");if(void 0===s){if(d)for(const n of Object.keys(u))I(t,u,n,e.slice(1));for(const n of Object.entries(f)){var p=a(n,2);const i=p[0],o=p[1],r=i.replace(x,"");l&&!e.includes(r)||M(t,u,c,o.callable,o.delegationSelector)}}else{if(!Object.keys(f).length)return;M(t,u,c,s,r?n:null)}},trigger(t,e,n){if("string"!=typeof e||!t)return null;const i=b();let o=null,r=!0,s=!0,a=!1;e!==B(e)&&i&&(o=i.Event(e,n),i(t).trigger(o),r=!o.isPropagationStopped(),s=!o.isImmediatePropagationStopped(),a=o.isDefaultPrevented());const c=H(new Event(e,{bubbles:r,cancelable:!0}),n);return a&&c.preventDefault(),s&&t.dispatchEvent(c),c.defaultPrevented&&o&&o.preventDefault(),c}};function H(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const i of Object.entries(e)){var n=a(i,2);const e=n[0],o=n[1];try{t[e]=o}catch(n){Object.defineProperty(t,e,{configurable:!0,get:()=>o})}}return t}function q(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 z(t){return t.replace(/[A-Z]/g,t=>"-".concat(t.toLowerCase()))}const R={setDataAttribute(t,e,n){t.setAttribute("data-bs-".concat(z(e)),n)},removeDataAttribute(t,e){t.removeAttribute("data-bs-".concat(z(e)))},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"));for(const i of n){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1),e[n]=q(t.dataset[i])}return e},getDataAttribute:(t,e)=>q(t.getAttribute("data-bs-".concat(z(e))))};class W{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)?R.getDataAttribute(e,"config"):{};return s(s(s(s({},this.constructor.Default),"object"==typeof n?n:{}),f(e)?R.getDataAttributes(e):{}),"object"==typeof t?t:{})}_typeCheckConfig(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.constructor.DefaultType;for(const i of Object.entries(e)){var n=a(i,2);const e=n[0],o=n[1],r=t[e],s=f(r)?"element":u(r);if(!new RegExp(o).test(s))throw new TypeError("".concat(this.constructor.NAME.toUpperCase(),': Option "').concat(e,'" provided type "').concat(s,'" but expected type "').concat(o,'".'))}}}class V extends W{constructor(t,n){super(),(t=d(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),F.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e){E(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(d(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 Y=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},U={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 i=t.parentNode.closest(e);for(;i;)n.push(i),i=i.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=>!h(t)&&p(t))},getSelectorFromElement(t){const e=Y(t);return e&&U.findOne(e)?e:null},getElementFromSelector(t){const e=Y(t);return e?U.findOne(e):null},getMultipleElementsFromSelector(t){const e=Y(t);return e?U.find(e):[]}},K=".".concat("bs.collapse"),Q="show".concat(K),X="shown".concat(K),$="hide".concat(K),G="hidden".concat(K),J="click".concat(K).concat(".data-api"),Z="show",tt="collapse",et="collapsing",nt=":scope .".concat(tt," .").concat(tt),it='[data-bs-toggle="collapse"]',ot={parent:null,toggle:!0},rt={parent:"(null|element)",toggle:"boolean"};class st extends V{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const n=U.find(it);for(const t of n){const e=U.getSelectorFromElement(t),n=U.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 ot}static get DefaultType(){return rt}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(F.trigger(this._element,Q).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),i="scroll".concat(n);this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(et),this._element.classList.add(tt,Z),this._element.style[e]="",F.trigger(this._element,X)},this._element,!0),this._element.style[e]="".concat(this._element[i],"px")}hide(){if(this._isTransitioning||!this._isShown())return;if(F.trigger(this._element,$).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=U.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),F.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=d(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(it);for(const e of t){const t=U.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=U.find(nt,this._config.parent);return U.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]()}})}}F.on(document,J,it,function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of U.getMultipleElementsFromSelector(this))st.getOrCreateInstance(t,{toggle:!1}).toggle()}),y(st),document.getElementsByClassName("collapse");var at="top",ct="bottom",lt="right",ut="left",ft="auto",dt=[at,ct,lt,ut],pt="start",ht="end",mt="clippingParents",gt="viewport",bt="popper",vt="reference",_t=dt.reduce(function(t,e){return t.concat([e+"-"+pt,e+"-"+ht])},[]),yt=[].concat(dt,[ft]).reduce(function(t,e){return t.concat([e,e+"-"+pt,e+"-"+ht])},[]),wt="beforeRead",Et="read",Ot="afterRead",At="beforeMain",xt="main",Ct="afterMain",Tt="beforeWrite",Lt="write",St="afterWrite",jt=[wt,Et,Ot,At,xt,Ct,Tt,Lt,St];function kt(t){return t?(t.nodeName||"").toLowerCase():null}function Pt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Dt(t){return t instanceof Pt(t).Element||t instanceof Element}function Nt(t){return t instanceof Pt(t).HTMLElement||t instanceof HTMLElement}function Mt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Pt(t).ShadowRoot||t instanceof ShadowRoot)}var It={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]||{},i=e.attributes[t]||{},o=e.elements[t];Nt(o)&&kt(o)&&(Object.assign(o.style,n),Object.keys(i).forEach(function(t){var e=i[t];!1===e?o.removeAttribute(t):o.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 i=e.elements[t],o=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce(function(t,e){return t[e]="",t},{});Nt(i)&&kt(i)&&(Object.assign(i.style,r),Object.keys(o).forEach(function(t){i.removeAttribute(t)}))})}},requires:["computeStyles"]};function Bt(t){return t.split("-")[0]}var Ft=Math.max,Ht=Math.min,qt=Math.round;function zt(){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 Rt(){return!/^((?!chrome|android).)*safari/i.test(zt())}function Wt(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i=t.getBoundingClientRect(),o=1,r=1;e&&Nt(t)&&(o=t.offsetWidth>0&&qt(i.width)/t.offsetWidth||1,r=t.offsetHeight>0&&qt(i.height)/t.offsetHeight||1);var s=(Dt(t)?Pt(t):window).visualViewport,a=!Rt()&&n,c=(i.left+(a&&s?s.offsetLeft:0))/o,l=(i.top+(a&&s?s.offsetTop:0))/r,u=i.width/o,f=i.height/r;return{width:u,height:f,top:l,right:c+u,bottom:l+f,left:c,x:c,y:l}}function Vt(t){var e=Wt(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function Yt(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Mt(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ut(t){return Pt(t).getComputedStyle(t)}function Kt(t){return["table","td","th"].indexOf(kt(t))>=0}function Qt(t){return((Dt(t)?t.ownerDocument:t.document)||window.document).documentElement}function Xt(t){return"html"===kt(t)?t:t.assignedSlot||t.parentNode||(Mt(t)?t.host:null)||Qt(t)}function $t(t){return Nt(t)&&"fixed"!==Ut(t).position?t.offsetParent:null}function Gt(t){for(var e=Pt(t),n=$t(t);n&&Kt(n)&&"static"===Ut(n).position;)n=$t(n);return n&&("html"===kt(n)||"body"===kt(n)&&"static"===Ut(n).position)?e:n||function(t){var e=/firefox/i.test(zt());if(/Trident/i.test(zt())&&Nt(t)&&"fixed"===Ut(t).position)return null;var n=Xt(t);for(Mt(n)&&(n=n.host);Nt(n)&&["html","body"].indexOf(kt(n))<0;){var i=Ut(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.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 Ft(t,Ht(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,i=t.name,o=t.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Bt(n.placement),c=Jt(a),l=[ut,lt].indexOf(a)>=0?"height":"width";if(r&&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,dt))}(o.padding,n),f=Vt(r),d="y"===c?at:ut,p="y"===c?ct:lt,h=n.rects.reference[l]+n.rects.reference[c]-s[c]-n.rects.popper[l],m=s[c]-n.rects.reference[c],g=Gt(r),b=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,v=h/2-m/2,_=u[d],y=b-f[l]-u[p],w=b/2-f[l]/2+v,E=Zt(_,w,y),O=c;n.modifiersData[i]=((e={})[O]=E,e.centerOffset=E-w,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&Yt(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ie(t){return t.split("-")[1]}var oe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function re(t){var e,n=t.popper,i=t.popperRect,o=t.placement,r=t.variation,s=t.offsets,a=t.position,c=t.gpuAcceleration,l=t.adaptive,u=t.roundOffsets,f=t.isFixed,d=s.x,p=void 0===d?0:d,h=s.y,m=void 0===h?0:h,g="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var b=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),_=ut,y=at,w=window;if(l){var E=Gt(n),O="clientHeight",A="clientWidth";if(E===Pt(n)&&"static"!==Ut(E=Qt(n)).position&&"absolute"===a&&(O="scrollHeight",A="scrollWidth"),o===at||(o===ut||o===lt)&&r===ht)y=ct,m-=(f&&E===w&&w.visualViewport?w.visualViewport.height:E[O])-i.height,m*=c?1:-1;if(o===ut||(o===at||o===ct)&&r===ht)_=lt,p-=(f&&E===w&&w.visualViewport?w.visualViewport.width:E[A])-i.width,p*=c?1:-1}var x,C=Object.assign({position:a},l&&oe),T=!0===u?function(t,e){var n=t.x,i=t.y,o=e.devicePixelRatio||1;return{x:qt(n*o)/o||0,y:qt(i*o)/o||0}}({x:p,y:m},Pt(n)):{x:p,y:m};return p=T.x,m=T.y,c?Object.assign({},C,((x={})[y]=v?"0":"",x[_]=b?"0":"",x.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",x)):Object.assign({},C,((e={})[y]=v?m+"px":"",e[_]=b?p+"px":"",e.transform="",e))}var se={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,s=void 0===r||r,a=n.roundOffsets,c=void 0===a||a,l={placement:Bt(e.placement),variation:ie(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,re(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,re(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,i=t.options,o=i.scroll,r=void 0===o||o,s=i.resize,a=void 0===s||s,c=Pt(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&l.forEach(function(t){t.addEventListener("scroll",n.update,ae)}),a&&c.addEventListener("resize",n.update,ae),function(){r&&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 de(t){return t.replace(/start|end/g,function(t){return fe[t]})}function pe(t){var e=Pt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function he(t){return Wt(Qt(t)).left+pe(t).scrollLeft}function me(t){var e=Ut(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function ge(t){return["html","body","#document"].indexOf(kt(t))>=0?t.ownerDocument.body:Nt(t)&&me(t)?t:ge(Xt(t))}function be(t,e){var n;void 0===e&&(e=[]);var i=ge(t),o=i===(null==(n=t.ownerDocument)?void 0:n.body),r=Pt(i),s=o?[r].concat(r.visualViewport||[],me(i)?i:[]):i,a=e.concat(s);return o?a:a.concat(be(Xt(s)))}function ve(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===gt?ve(function(t,e){var n=Pt(t),i=Qt(t),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,a=0,c=0;if(o){r=o.width,s=o.height;var l=Rt();(l||!l&&"fixed"===e)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:r,height:s,x:a+he(t),y:c}}(t,n)):Dt(e)?function(t,e){var n=Wt(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):ve(function(t){var e,n=Qt(t),i=pe(t),o=null==(e=t.ownerDocument)?void 0:e.body,r=Ft(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ft(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+he(t),c=-i.scrollTop;return"rtl"===Ut(o||n).direction&&(a+=Ft(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:c}}(Qt(t)))}function ye(t,e,n,i){var o="clippingParents"===e?function(t){var e=be(Xt(t)),n=["absolute","fixed"].indexOf(Ut(t).position)>=0&&Nt(t)?Gt(t):t;return Dt(n)?e.filter(function(t){return Dt(t)&&Yt(t,n)&&"body"!==kt(t)}):[]}(t):[].concat(e),r=[].concat(o,[n]),s=r[0],a=r.reduce(function(e,n){var o=_e(t,n,i);return e.top=Ft(o.top,e.top),e.right=Ht(o.right,e.right),e.bottom=Ht(o.bottom,e.bottom),e.left=Ft(o.left,e.left),e},_e(t,s,i));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,i=t.element,o=t.placement,r=o?Bt(o):null,s=o?ie(o):null,a=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2;switch(r){case at:e={x:a,y:n.y-i.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-i.width,y:c};break;default:e={x:n.x,y:n.y}}var l=r?Jt(r):null;if(null!=l){var u="y"===l?"height":"width";switch(s){case pt:e[l]=e[l]-(n[u]/2-i[u]/2);break;case ht:e[l]=e[l]+(n[u]/2-i[u]/2)}}return e}function Ee(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=void 0===i?t.placement:i,r=n.strategy,s=void 0===r?t.strategy:r,a=n.boundary,c=void 0===a?mt:a,l=n.rootBoundary,u=void 0===l?gt:l,f=n.elementContext,d=void 0===f?bt:f,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,b=te("number"!=typeof g?g:ee(g,dt)),v=d===bt?vt:bt,_=t.rects.popper,y=t.elements[h?v:d],w=ye(Dt(y)?y:y.contextElement||Qt(t.elements.popper),c,u,s),E=Wt(t.elements.reference),O=we({reference:E,element:_,placement:o}),A=ve(Object.assign({},_,O)),x=d===bt?A:E,C={top:w.top-x.top+b.top,bottom:x.bottom-w.bottom+b.bottom,left:w.left-x.left+b.left,right:x.right-w.right+b.right},T=t.modifiersData.offset;if(d===bt&&T){var L=T[o];Object.keys(C).forEach(function(t){var e=[lt,ct].indexOf(t)>=0?1:-1,n=[at,ct].indexOf(t)>=0?"y":"x";C[t]+=L[n]*e})}return C}function Oe(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?yt:c,u=ie(i),f=u?a?_t:_t.filter(function(t){return ie(t)===u}):dt,d=f.filter(function(t){return l.indexOf(t)>=0});0===d.length&&(d=f);var p=d.reduce(function(e,n){return e[n]=Ee(t,{placement:n,boundary:o,rootBoundary:r,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,i=t.name;if(!e.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0===s||s,c=n.fallbackPlacements,l=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=e.options.placement,b=Bt(g),v=c||(b===g||!h?[ue(g)]:function(t){if(Bt(t)===ft)return[];var e=ue(t);return[de(t),e,de(e)]}(g)),_=[g].concat(v).reduce(function(t,n){return t.concat(Bt(n)===ft?Oe(e,{placement:n,boundary:u,rootBoundary:f,padding:l,flipVariations:h,allowedAutoPlacements:m}):n)},[]),y=e.rects.reference,w=e.rects.popper,E=new Map,O=!0,A=_[0],x=0;x<_.length;x++){var C=_[x],T=Bt(C),L=ie(C)===pt,S=[at,ct].indexOf(T)>=0,j=S?"width":"height",k=Ee(e,{placement:C,boundary:u,rootBoundary:f,altBoundary:d,padding:l}),P=S?L?lt:ut:L?ct:at;y[j]>w[j]&&(P=ue(P));var D=ue(P),N=[];if(r&&N.push(k[T]<=0),a&&N.push(k[P]<=0,k[D]<=0),N.every(function(t){return t})){A=C,O=!1;break}E.set(C,N)}if(O)for(var M=function(t){var e=_.find(function(e){var n=E.get(e);if(n)return n.slice(0,t).every(function(t){return t})});if(e)return A=e,"break"},I=h?3:1;I>0;I--){if("break"===M(I))break}e.placement!==A&&(e.modifiersData[i]._skip=!0,e.placement=A,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function xe(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 Ce(t){return[at,lt,ct,ut].some(function(e){return t[e]>=0})}var Te={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,o=e.rects.popper,r=e.modifiersData.preventOverflow,s=Ee(e,{elementContext:"reference"}),a=Ee(e,{altBoundary:!0}),c=xe(s,i),l=xe(a,o,r),u=Ce(c),f=Ce(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 Le={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.offset,r=void 0===o?[0,0]:o,s=yt.reduce(function(t,n){return t[n]=function(t,e,n){var i=Bt(t),o=[ut,at].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},e,{placement:t})):n,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[ut,lt].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,e.rects,r),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[i]=s}};var Se={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 je={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,m=void 0===h?0:h,g=Ee(e,{boundary:c,rootBoundary:l,padding:f,altBoundary:u}),b=Bt(e.placement),v=ie(e.placement),_=!v,y=Jt(b),w="x"===y?"y":"x",E=e.modifiersData.popperOffsets,O=e.rects.reference,A=e.rects.popper,x="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,C="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(E){if(r){var S,j="y"===y?at:ut,k="y"===y?ct:lt,P="y"===y?"height":"width",D=E[y],N=D+g[j],M=D-g[k],I=p?-A[P]/2:0,B=v===pt?O[P]:A[P],F=v===pt?-A[P]:-O[P],H=e.elements.arrow,q=p&&H?Vt(H):{width:0,height:0},z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},R=z[j],W=z[k],V=Zt(0,O[P],q[P]),Y=_?O[P]/2-I-V-R-C.mainAxis:B-V-R-C.mainAxis,U=_?-O[P]/2+I+V+W+C.mainAxis:F+V+W+C.mainAxis,K=e.elements.arrow&&Gt(e.elements.arrow),Q=K?"y"===y?K.clientTop||0:K.clientLeft||0:0,X=null!=(S=null==T?void 0:T[y])?S:0,$=D+U-X,G=Zt(p?Ht(N,D+Y-X-Q):N,D,p?Ft(M,$):M);E[y]=G,L[y]=G-D}if(a){var J,Z="x"===y?at:ut,tt="x"===y?ct:lt,et=E[w],nt="y"===w?"height":"width",it=et+g[Z],ot=et-g[tt],rt=-1!==[at,ut].indexOf(b),st=null!=(J=null==T?void 0:T[w])?J:0,ft=rt?it:et-O[nt]-A[nt]-st+C.altAxis,dt=rt?et+O[nt]+A[nt]-st-C.altAxis:ot,ht=p&&rt?function(t,e,n){var i=Zt(t,e,n);return i>n?n:i}(ft,et,dt):Zt(p?ft:it,et,p?dt:ot);E[w]=ht,L[w]=ht-et}e.modifiersData[i]=L}},requiresIfExists:["offset"]};function ke(t,e,n){void 0===n&&(n=!1);var i,o,r=Nt(e),s=Nt(e)&&function(t){var e=t.getBoundingClientRect(),n=qt(e.width)/t.offsetWidth||1,i=qt(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),a=Qt(e),c=Wt(t,s,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==kt(e)||me(a))&&(l=(i=e)!==Pt(i)&&Nt(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:pe(i)),Nt(e)?((u=Wt(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=he(a))),{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function Pe(t){var e=new Map,n=new Set,i=[];function o(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!n.has(t)){var i=e.get(t);i&&o(i)}}),i.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){n.has(t.name)||o(t)}),i}var De={placement:"bottom",modifiers:[],strategy:"absolute"};function Ne(){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 Me(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,o=e.defaultOptions,r=void 0===o?De:o;return function(t,e,n){void 0===n&&(n=r);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},De,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],l=!1,u={state:a,setOptions:function(n){var o="function"==typeof n?n(a.options):n;f(),a.options=Object.assign({},r,a.options,o),a.scrollParents={reference:Dt(t)?be(t):t.contextElement?be(t.contextElement):[],popper:be(e)};var s,l,d=function(t){var e=Pe(t);return jt.reduce(function(t,n){return t.concat(e.filter(function(t){return t.phase===n}))},[])}((s=[].concat(i,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=d.filter(function(t){return t.enabled}),a.orderedModifiers.forEach(function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,o=t.effect;if("function"==typeof o){var r=o({state:a,name:e,instance:u,options:i}),s=function(){};c.push(r||s)}}),u.update()},forceUpdate:function(){if(!l){var t=a.elements,e=t.reference,n=t.popper;if(Ne(e,n)){a.rects={reference:ke(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 i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var o=a.orderedModifiers[i],r=o.fn,s=o.options,c=void 0===s?{}:s,f=o.name;"function"==typeof r&&(a=r({state:a,options:c,name:f,instance:u})||a)}else a.reset=!1,i=-1}}},update:(o=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(o())})})),s}),destroy:function(){f(),l=!0}};if(!Ne(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 Ie=Me({defaultModifiers:[ce,Se,se,It,Le,Ae,je,ne,Te]}),Be=Object.freeze({__proto__:null,afterMain:Ct,afterRead:Ot,afterWrite:St,applyStyles:It,arrow:ne,auto:ft,basePlacements:dt,beforeMain:At,beforeRead:wt,beforeWrite:Tt,bottom:ct,clippingParents:mt,computeStyles:se,createPopper:Ie,detectOverflow:Ee,end:ht,eventListeners:ce,flip:Ae,hide:Te,left:ut,main:xt,modifierPhases:jt,offset:Le,placements:yt,popper:bt,popperGenerator:Me,popperOffsets:Se,preventOverflow:je,read:Et,reference:vt,right:lt,start:pt,top:at,variationPlacements:_t,viewport:gt,write:Lt});const Fe={"*":["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:[]},He=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),qe=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,ze=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?!He.has(n)||Boolean(qe.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(n))};const Re={allowList:Fe,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},We={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 Ye extends W{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Re}static get DefaultType(){return We}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 i=e[0],o=e[1];this._setContent(t,o,i)}const n=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&n.classList.add(...i.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],i=e[1];super._typeCheckConfig({selector:t,entry:i},Ve)}}_setContent(t,e,n){const i=U.findOne(n,t);i&&((e=this._resolvePossibleFunction(e))?f(e)?this._putElementInTemplate(d(e),i):this._config.html?i.innerHTML=this._maybeSanitize(e):i.textContent=e:i.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 i=(new window.DOMParser).parseFromString(t,"text/html"),o=[].concat(...i.body.querySelectorAll("*"));for(const t of o){const n=t.nodeName.toLowerCase();if(!Object.keys(e).includes(n)){t.remove();continue}const i=[].concat(...t.attributes),o=[].concat(e["*"]||[],e[n]||[]);for(const e of i)ze(e,o)||t.removeAttribute(e.nodeName)}return i.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 Ue=new Set(["sanitize","allowList","sanitizeFn"]),Ke="fade",Qe="show",Xe=".tooltip-inner",$e=".".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:Fe,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"},on={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 rn 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 on}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),F.off(this._element.closest($e),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=F.trigger(this._element,this.constructor.eventName("show")),e=(m(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 i=this._config.container;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(n),F.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(Qe),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))F.on(t,"mouseover",g);this._queueCallback(()=>{F.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(F.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(Qe),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))F.off(t,"mouseover",g);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"),F.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(Ke,Qe),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(Ke),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Ye(s(s({},this._config),{},{content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)})),this._templateFactory}_getContentForTemplate(){return{[Xe]: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(Ke)}_isShown(){return this.tip&&this.tip.classList.contains(Qe)}_createPopper(t){const e=w(this._config.placement,[this,t,this._element]),n=en[e.toUpperCase()];return Ie(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)F.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");F.on(this._element,t,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?Ze:Je]=!0,e._enter()}),F.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()},F.on(this._element.closest($e),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=R.getDataAttributes(this._element);for(const t of Object.keys(e))Ue.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:d(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 i=e[0],o=e[1];this.constructor.Default[i]!==o&&(t[i]=o)}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=rn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'.concat(t,'"'));e[t]()}})}}y(rn);const sn="data-src",an="data-lqip",cn="shimmer",ln="blur";function un(t){this.parentElement.classList.remove(t)}function fn(){this.complete&&(this.hasAttribute(an)?un.call(this,ln):un.call(this,cn))}function dn(){const t=this.getAttribute(sn);this.setAttribute("src",encodeURI(t)),this.removeAttribute(sn)}class pn{static get attrTimestamp(){return"data-ts"}static get attrDateFormat(){return"data-df"}static get locale(){return document.documentElement.getAttribute("lang").substring(0,2)}static getTimestamp(t){return Number(t.getAttribute(this.attrTimestamp))}static getDateFormat(t){return t.getAttribute(this.attrDateFormat)}}var hn;const mn=document.getElementById("toc-bar"),gn=document.getElementById("toc-solo-trigger"),bn=document.getElementsByClassName("toc-trigger"),vn=document.getElementById("toc-popup"),_n=document.getElementById("toc-popup-close"),yn="overflow-hidden",wn="closing";class En{static initBar(){new IntersectionObserver(t=>{t.forEach(t=>{mn.classList.toggle("invisible",t.isIntersecting)})},{rootMargin:"-".concat(i(En,this,An)._,"px 0px 0px 0px")}).observe(gn),On._=i(En,this,!1)}static listenAnchors(){[...document.getElementsByClassName("toc-link")].forEach(t=>{t.onclick=()=>this.hidePopup()})}static refresh(){i(En,this,On)._&&this.initComponents(),tocbot.refresh(this.options),this.listenAnchors()}static get popupOpened(){return vn.open}static showPopup(){this.lockScroll(!0),vn.showModal(),_n.blur();vn.querySelector("li.is-active-li").scrollIntoView({block:"center"})}static hidePopup(){vn.toggleAttribute(wn),vn.addEventListener("animationend",()=>{vn.toggleAttribute(wn),vn.close()},{once:!0}),this.lockScroll(!1)}static lockScroll(t){document.documentElement.classList.toggle(yn,t),document.body.classList.toggle(yn,t)}static clickBackdrop(t){if(vn.hasAttribute(wn))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(),[...bn].forEach(t=>{t.onclick=()=>this.showPopup()}),vn.onclick=t=>this.clickBackdrop(t),_n.onclick=()=>this.hidePopup(),vn.oncancel=t=>{t.preventDefault(),this.hidePopup()}}static init(){tocbot.init(this.options),this.listenAnchors(),this.initComponents()}}var On={_:!0},An={_:48};o(En,"options",{tocSelector:"#toc-popup-content",contentSelector:".content",ignoreSelector:"[data-toc-skip]",headingSelector:"h2, h3, h4",orderedList:!1,scrollSmooth:!1,collapseDepth:4,headingsOffset:i(hn=En,hn,An)._});o(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 xn="dropdown",Cn=".".concat("bs.dropdown"),Tn=".data-api",Ln="ArrowUp",Sn="ArrowDown",jn="hide".concat(Cn),kn="hidden".concat(Cn),Pn="show".concat(Cn),Dn="shown".concat(Cn),Nn="click".concat(Cn).concat(Tn),Mn="keydown".concat(Cn).concat(Tn),In="keyup".concat(Cn).concat(Tn),Bn="show",Fn='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Hn="".concat(Fn,".").concat(Bn),qn=".dropdown-menu",zn=_()?"top-end":"top-start",Rn=_()?"top-start":"top-end",Wn=_()?"bottom-end":"bottom-start",Vn=_()?"bottom-start":"bottom-end",Yn=_()?"left-start":"right-start",Un=_()?"right-start":"left-start",Kn={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Qn={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Xn extends V{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=U.next(this._element,qn)[0]||U.prev(this._element,qn)[0]||U.findOne(qn,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Kn}static get DefaultType(){return Qn}static get NAME(){return xn}toggle(){return this._isShown()?this.hide():this.show()}show(){if(h(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!F.trigger(this._element,Pn,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))F.on(t,"mouseover",g);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Bn),this._element.classList.add(Bn),F.trigger(this._element,Dn,t)}}hide(){if(h(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(!F.trigger(this._element,jn,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))F.off(t,"mouseover",g);this._popper&&this._popper.destroy(),this._menu.classList.remove(Bn),this._element.classList.remove(Bn),this._element.setAttribute("aria-expanded","false"),R.removeDataAttribute(this._menu,"popper"),F.trigger(this._element,kn,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!f(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError("".concat(xn.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=d(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=Ie(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Bn)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Yn;if(t.classList.contains("dropstart"))return Un;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?Rn:zn:e?Vn:Wn}_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)&&(R.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 i=U.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(t=>p(t));i.length&&((t,e,n,i)=>{const o=t.length;let r=t.indexOf(e);return-1===r?!n&&i?t[o-1]:t[0]:(r+=n?1:-1,i&&(r=(r+o)%o),t[Math.max(0,Math.min(r,o-1))])})(i,n,e===Sn,!i.includes(n)).focus()}static jQueryInterface(t){return this.each(function(){const e=Xn.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=U.find(Hn);for(const n of e){const e=Xn.getInstance(n);if(!e||!1===e._config.autoClose)continue;const i=t.composedPath(),o=i.includes(e._menu);if(i.includes(e._element)||"inside"===e._config.autoClose&&!o||"outside"===e._config.autoClose&&o)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 r={relatedTarget:e._element};"click"===t.type&&(r.clickEvent=t),e._completeHide(r)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),n="Escape"===t.key,i=[Ln,Sn].includes(t.key);if(!i&&!n)return;if(e&&!n)return;t.preventDefault();const o=this.matches(Fn)?this:U.prev(this,Fn)[0]||U.next(this,Fn)[0]||U.findOne(Fn,t.delegateTarget.parentNode),r=Xn.getOrCreateInstance(o);if(i)return t.stopPropagation(),r.show(),void r._selectMenuItem(t);r._isShown()&&(t.stopPropagation(),r.hide(),o.focus())}}F.on(document,Mn,Fn,Xn.dataApiKeydownHandler),F.on(document,Mn,qn,Xn.dataApiKeydownHandler),F.on(document,Nn,Xn.clearMenus),F.on(document,In,Xn.clearMenus),F.on(document,Nn,Fn,function(t){t.preventDefault(),Xn.getOrCreateInstance(this).toggle()}),y(Xn);const $n="active",Gn=document.querySelector("#mode-toggle + .dropdown-menu"),Jn=Theme.isSystemTheme?Theme.Mode.SYSTEM:Theme.resolvedTheme;const Zn=document.getElementById("sidebar"),ti=document.getElementById("sidebar-trigger"),ei=document.getElementById("mask");class ni{static toggle(){ii._=i(ni,this,!i(ni,this,ii)._),document.body.toggleAttribute("sidebar-display",i(ni,this,ii)._),Zn.classList.toggle("z-2",i(ni,this,ii)._),ei.classList.toggle("d-none",!i(ni,this,ii)._)}}var ii={_:!1};const oi=document.getElementById("sidebar-trigger"),ri=document.getElementById("search-trigger"),si=document.getElementById("search-cancel"),ai=document.querySelectorAll("#main-wrapper>.container>.row"),ci=document.getElementById("topbar-title"),li=document.getElementById("search"),ui=document.getElementById("search-result-wrapper"),fi=document.getElementById("search-results"),di=document.getElementById("search-input"),pi=document.getElementById("search-hints"),hi="d-block",mi="d-none",gi="input-focus",bi="d-flex";class vi{static on(){oi.classList.add(mi),ci.classList.add(mi),ri.classList.add(mi),li.classList.add(bi),si.classList.add(hi)}static off(){si.classList.remove(hi),li.classList.remove(bi),oi.classList.remove(mi),ci.classList.remove(mi),ri.classList.remove(mi)}}class _i{static on(){this.resultVisible||(ui.classList.remove(mi),ai.forEach(t=>{t.classList.add(mi)}),this.resultVisible=!0)}static off(){this.resultVisible&&(fi.innerHTML="",pi.classList.contains(mi)&&pi.classList.remove(mi),ui.classList.add(mi),ai.forEach(t=>{t.classList.remove(mi)}),di.textContent="",this.resultVisible=!1)}}function yi(){return si.classList.contains(hi)}o(_i,"resultVisible",!1),function(){const t=document.querySelectorAll("article img");if(0===t.length)return;t.forEach(t=>{t.addEventListener("load",fn)}),document.querySelectorAll('article img[loading="lazy"]').forEach(t=>{t.complete&&un.call(t,cn)});const e=document.querySelectorAll("article img[".concat(an,'="true"]'));e.length&&e.forEach(t=>{dn.call(t)})}(),dayjs.locale(pn.locale),dayjs.extend(window.dayjs_plugin_localizedFormat),document.querySelectorAll("[".concat(pn.attrTimestamp,"]")).forEach(t=>{const e=dayjs.unix(pn.getTimestamp(t)),n=e.format(pn.getDateFormat(t));if(t.textContent=n,t.removeAttribute(pn.attrTimestamp),t.removeAttribute(pn.attrDateFormat),t.hasAttribute("data-bs-toggle")&&"tooltip"===t.getAttribute("data-bs-toggle")){const n=e.format("llll");t.setAttribute("data-bs-title",n)}}),ti.onclick=ei.onclick=()=>ni.toggle(),ri.addEventListener("click",()=>{vi.on(),_i.on(),di.focus()}),si.addEventListener("click",()=>{vi.off(),_i.off()}),di.addEventListener("focus",()=>{li.classList.add(gi)}),di.addEventListener("focusout",()=>{li.classList.remove(gi)}),di.addEventListener("input",()=>{""===di.value?yi()?pi.classList.remove(mi):_i.off():(_i.on(),yi()&&pi.classList.add(mi))}),Theme.isToggleable&&(Gn.querySelectorAll(".dropdown-item").forEach(t=>{t.dataset.themeMode!==Jn||t.classList.add($n)}),Gn.addEventListener("click",t=>{const e=t.target.closest(".dropdown-item");if(!e)return;const n=Gn.querySelector(".".concat($n));n!==e&&(n.classList.remove($n),e.classList.add($n),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 rn(t))}();
|