5 lines
49 KiB
JavaScript
5 lines
49 KiB
JavaScript
/*!
|
|
* jekyll-theme-chirpy v7.1.1 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
|
|
*/
|
|
!function(){"use strict";var e="top",t="bottom",n="right",i="left",o="auto",r=[e,t,n,i],s="start",a="end",l="clippingParents",c="viewport",u="popper",f="reference",d=r.reduce(function(e,t){return e.concat([t+"-"+s,t+"-"+a])},[]),p=[].concat(r,[o]).reduce(function(e,t){return e.concat([t,t+"-"+s,t+"-"+a])},[]),h="beforeRead",g="read",m="afterRead",v="beforeMain",b="main",y="afterMain",_="beforeWrite",w="write",E="afterWrite",O=[h,g,m,v,b,y,_,w,E];function x(e){return e?(e.nodeName||"").toLowerCase():null}function A(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function C(e){return e instanceof A(e).Element||e instanceof Element}function L(e){return e instanceof A(e).HTMLElement||e instanceof HTMLElement}function T(e){return"undefined"!=typeof ShadowRoot&&(e instanceof A(e).ShadowRoot||e instanceof ShadowRoot)}var S={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];L(o)&&x(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},{});L(i)&&x(i)&&(Object.assign(i.style,r),Object.keys(o).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};function j(e){return e.split("-")[0]}var k=Math.max,D=Math.min,P=Math.round;function N(){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 M(){return!/^((?!chrome|android).)*safari/i.test(N())}function B(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),o=1,r=1;t&&L(e)&&(o=e.offsetWidth>0&&P(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&P(i.height)/e.offsetHeight||1);var s=(C(e)?A(e):window).visualViewport,a=!M()&&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 I(e){var t=B(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 F(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&T(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function H(e){return A(e).getComputedStyle(e)}function $(e){return["table","td","th"].indexOf(x(e))>=0}function z(e){return((C(e)?e.ownerDocument:e.document)||window.document).documentElement}function W(e){return"html"===x(e)?e:e.assignedSlot||e.parentNode||(T(e)?e.host:null)||z(e)}function q(e){return L(e)&&"fixed"!==H(e).position?e.offsetParent:null}function R(e){for(var t=A(e),n=q(e);n&&$(n)&&"static"===H(n).position;)n=q(n);return n&&("html"===x(n)||"body"===x(n)&&"static"===H(n).position)?t:n||function(e){var t=/firefox/i.test(N());if(/Trident/i.test(N())&&L(e)&&"fixed"===H(e).position)return null;var n=W(e);for(T(n)&&(n=n.host);L(n)&&["html","body"].indexOf(x(n))<0;){var i=H(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 V(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Y(e,t,n){return k(e,D(t,n))}function U(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function K(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Q={name:"arrow",enabled:!0,phase:"main",fn:function(o){var s,a=o.state,l=o.name,c=o.options,u=a.elements.arrow,f=a.modifiersData.popperOffsets,d=j(a.placement),p=V(d),h=[i,n].indexOf(d)>=0?"height":"width";if(u&&f){var g=function(e,t){return U("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:K(e,r))}(c.padding,a),m=I(u),v="y"===p?e:i,b="y"===p?t:n,y=a.rects.reference[h]+a.rects.reference[p]-f[p]-a.rects.popper[h],_=f[p]-a.rects.reference[p],w=R(u),E=w?"y"===p?w.clientHeight||0:w.clientWidth||0:0,O=y/2-_/2,x=g[v],A=E-m[h]-g[b],C=E/2-m[h]/2+O,L=Y(x,C,A),T=p;a.modifiersData[l]=((s={})[T]=L,s.centerOffset=L-C,s)}},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)))&&F(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function X(e){return e.split("-")[1]}var G={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J(o){var r,s=o.popper,l=o.popperRect,c=o.placement,u=o.variation,f=o.offsets,d=o.position,p=o.gpuAcceleration,h=o.adaptive,g=o.roundOffsets,m=o.isFixed,v=f.x,b=void 0===v?0:v,y=f.y,_=void 0===y?0:y,w="function"==typeof g?g({x:b,y:_}):{x:b,y:_};b=w.x,_=w.y;var E=f.hasOwnProperty("x"),O=f.hasOwnProperty("y"),x=i,C=e,L=window;if(h){var T=R(s),S="clientHeight",j="clientWidth";if(T===A(s)&&"static"!==H(T=z(s)).position&&"absolute"===d&&(S="scrollHeight",j="scrollWidth"),c===e||(c===i||c===n)&&u===a)C=t,_-=(m&&T===L&&L.visualViewport?L.visualViewport.height:T[S])-l.height,_*=p?1:-1;if(c===i||(c===e||c===t)&&u===a)x=n,b-=(m&&T===L&&L.visualViewport?L.visualViewport.width:T[j])-l.width,b*=p?1:-1}var k,D=Object.assign({position:d},h&&G),N=!0===g?function(e,t){var n=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:P(n*o)/o||0,y:P(i*o)/o||0}}({x:b,y:_},A(s)):{x:b,y:_};return b=N.x,_=N.y,p?Object.assign({},D,((k={})[C]=O?"0":"",k[x]=E?"0":"",k.transform=(L.devicePixelRatio||1)<=1?"translate("+b+"px, "+_+"px)":"translate3d("+b+"px, "+_+"px, 0)",k)):Object.assign({},D,((r={})[C]=O?_+"px":"",r[x]=E?b+"px":"",r.transform="",r))}var Z={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:j(t.placement),variation:X(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,J(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,J(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:{}},ee={passive:!0};var te={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=A(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(e){e.addEventListener("scroll",n.update,ee)}),a&&l.addEventListener("resize",n.update,ee),function(){r&&c.forEach(function(e){e.removeEventListener("scroll",n.update,ee)}),a&&l.removeEventListener("resize",n.update,ee)}},data:{}},ne={left:"right",right:"left",bottom:"top",top:"bottom"};function ie(e){return e.replace(/left|right|bottom|top/g,function(e){return ne[e]})}var oe={start:"end",end:"start"};function re(e){return e.replace(/start|end/g,function(e){return oe[e]})}function se(e){var t=A(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ae(e){return B(z(e)).left+se(e).scrollLeft}function le(e){var t=H(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function ce(e){return["html","body","#document"].indexOf(x(e))>=0?e.ownerDocument.body:L(e)&&le(e)?e:ce(W(e))}function ue(e,t){var n;void 0===t&&(t=[]);var i=ce(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),r=A(i),s=o?[r].concat(r.visualViewport||[],le(i)?i:[]):i,a=t.concat(s);return o?a:a.concat(ue(W(s)))}function fe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function de(e,t,n){return t===c?fe(function(e,t){var n=A(e),i=z(e),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;var c=M();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a+ae(e),y:l}}(e,n)):C(t)?function(e,t){var n=B(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):fe(function(e){var t,n=z(e),i=se(e),o=null==(t=e.ownerDocument)?void 0:t.body,r=k(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=k(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+ae(e),l=-i.scrollTop;return"rtl"===H(o||n).direction&&(a+=k(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}(z(e)))}function pe(e,t,n,i){var o="clippingParents"===t?function(e){var t=ue(W(e)),n=["absolute","fixed"].indexOf(H(e).position)>=0&&L(e)?R(e):e;return C(n)?t.filter(function(e){return C(e)&&F(e,n)&&"body"!==x(e)}):[]}(e):[].concat(t),r=[].concat(o,[n]),s=r[0],a=r.reduce(function(t,n){var o=de(e,n,i);return t.top=k(o.top,t.top),t.right=D(o.right,t.right),t.bottom=D(o.bottom,t.bottom),t.left=k(o.left,t.left),t},de(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 he(o){var r,l=o.reference,c=o.element,u=o.placement,f=u?j(u):null,d=u?X(u):null,p=l.x+l.width/2-c.width/2,h=l.y+l.height/2-c.height/2;switch(f){case e:r={x:p,y:l.y-c.height};break;case t:r={x:p,y:l.y+l.height};break;case n:r={x:l.x+l.width,y:h};break;case i:r={x:l.x-c.width,y:h};break;default:r={x:l.x,y:l.y}}var g=f?V(f):null;if(null!=g){var m="y"===g?"height":"width";switch(d){case s:r[g]=r[g]-(l[m]/2-c[m]/2);break;case a:r[g]=r[g]+(l[m]/2-c[m]/2)}}return r}function ge(i,o){void 0===o&&(o={});var s=o,a=s.placement,d=void 0===a?i.placement:a,p=s.strategy,h=void 0===p?i.strategy:p,g=s.boundary,m=void 0===g?l:g,v=s.rootBoundary,b=void 0===v?c:v,y=s.elementContext,_=void 0===y?u:y,w=s.altBoundary,E=void 0!==w&&w,O=s.padding,x=void 0===O?0:O,A=U("number"!=typeof x?x:K(x,r)),L=_===u?f:u,T=i.rects.popper,S=i.elements[E?L:_],j=pe(C(S)?S:S.contextElement||z(i.elements.popper),m,b,h),k=B(i.elements.reference),D=he({reference:k,element:T,placement:d}),P=fe(Object.assign({},T,D)),N=_===u?P:k,M={top:j.top-N.top+A.top,bottom:N.bottom-j.bottom+A.bottom,left:j.left-N.left+A.left,right:N.right-j.right+A.right},I=i.modifiersData.offset;if(_===u&&I){var F=I[d];Object.keys(M).forEach(function(i){var o=[n,t].indexOf(i)>=0?1:-1,r=[e,t].indexOf(i)>=0?"y":"x";M[i]+=F[r]*o})}return M}function me(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?p:c,f=X(i),h=f?l?d:d.filter(function(e){return X(e)===f}):r,g=h.filter(function(e){return u.indexOf(e)>=0});0===g.length&&(g=h);var m=g.reduce(function(t,n){return t[n]=ge(e,{placement:n,boundary:o,rootBoundary:s,padding:a})[j(n)],t},{});return Object.keys(m).sort(function(e,t){return m[e]-m[t]})}var ve={name:"flip",enabled:!0,phase:"main",fn:function(r){var a=r.state,l=r.options,c=r.name;if(!a.modifiersData[c]._skip){for(var u=l.mainAxis,f=void 0===u||u,d=l.altAxis,p=void 0===d||d,h=l.fallbackPlacements,g=l.padding,m=l.boundary,v=l.rootBoundary,b=l.altBoundary,y=l.flipVariations,_=void 0===y||y,w=l.allowedAutoPlacements,E=a.options.placement,O=j(E),x=h||(O===E||!_?[ie(E)]:function(e){if(j(e)===o)return[];var t=ie(e);return[re(e),t,re(t)]}(E)),A=[E].concat(x).reduce(function(e,t){return e.concat(j(t)===o?me(a,{placement:t,boundary:m,rootBoundary:v,padding:g,flipVariations:_,allowedAutoPlacements:w}):t)},[]),C=a.rects.reference,L=a.rects.popper,T=new Map,S=!0,k=A[0],D=0;D<A.length;D++){var P=A[D],N=j(P),M=X(P)===s,B=[e,t].indexOf(N)>=0,I=B?"width":"height",F=ge(a,{placement:P,boundary:m,rootBoundary:v,altBoundary:b,padding:g}),H=B?M?n:i:M?t:e;C[I]>L[I]&&(H=ie(H));var $=ie(H),z=[];if(f&&z.push(F[N]<=0),p&&z.push(F[H]<=0,F[$]<=0),z.every(function(e){return e})){k=P,S=!1;break}T.set(P,z)}if(S)for(var W=function(e){var t=A.find(function(t){var n=T.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return k=t,"break"},q=_?3:1;q>0;q--){if("break"===W(q))break}a.placement!==k&&(a.modifiersData[c]._skip=!0,a.placement=k,a.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function be(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 ye(o){return[e,n,t,i].some(function(e){return o[e]>=0})}var _e={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=ge(t,{elementContext:"reference"}),a=ge(t,{altBoundary:!0}),l=be(s,i),c=be(a,o,r),u=ye(l),f=ye(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 we={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var o=t.state,r=t.options,s=t.name,a=r.offset,l=void 0===a?[0,0]:a,c=p.reduce(function(t,r){return t[r]=function(t,o,r){var s=j(t),a=[i,e].indexOf(s)>=0?-1:1,l="function"==typeof r?r(Object.assign({},o,{placement:t})):r,c=l[0],u=l[1];return c=c||0,u=(u||0)*a,[i,n].indexOf(s)>=0?{x:u,y:c}:{x:c,y:u}}(r,o.rects,l),t},{}),u=c[o.placement],f=u.x,d=u.y;null!=o.modifiersData.popperOffsets&&(o.modifiersData.popperOffsets.x+=f,o.modifiersData.popperOffsets.y+=d),o.modifiersData[s]=c}};var Ee={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=he({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}};var Oe={name:"preventOverflow",enabled:!0,phase:"main",fn:function(o){var r=o.state,a=o.options,l=o.name,c=a.mainAxis,u=void 0===c||c,f=a.altAxis,d=void 0!==f&&f,p=a.boundary,h=a.rootBoundary,g=a.altBoundary,m=a.padding,v=a.tether,b=void 0===v||v,y=a.tetherOffset,_=void 0===y?0:y,w=ge(r,{boundary:p,rootBoundary:h,padding:m,altBoundary:g}),E=j(r.placement),O=X(r.placement),x=!O,A=V(E),C="x"===A?"y":"x",L=r.modifiersData.popperOffsets,T=r.rects.reference,S=r.rects.popper,P="function"==typeof _?_(Object.assign({},r.rects,{placement:r.placement})):_,N="number"==typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),M=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,B={x:0,y:0};if(L){if(u){var F,H="y"===A?e:i,$="y"===A?t:n,z="y"===A?"height":"width",W=L[A],q=W+w[H],U=W-w[$],K=b?-S[z]/2:0,Q=O===s?T[z]:S[z],G=O===s?-S[z]:-T[z],J=r.elements.arrow,Z=b&&J?I(J):{width:0,height:0},ee=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},te=ee[H],ne=ee[$],ie=Y(0,T[z],Z[z]),oe=x?T[z]/2-K-ie-te-N.mainAxis:Q-ie-te-N.mainAxis,re=x?-T[z]/2+K+ie+ne+N.mainAxis:G+ie+ne+N.mainAxis,se=r.elements.arrow&&R(r.elements.arrow),ae=se?"y"===A?se.clientTop||0:se.clientLeft||0:0,le=null!=(F=null==M?void 0:M[A])?F:0,ce=W+re-le,ue=Y(b?D(q,W+oe-le-ae):q,W,b?k(U,ce):U);L[A]=ue,B[A]=ue-W}if(d){var fe,de="x"===A?e:i,pe="x"===A?t:n,he=L[C],me="y"===C?"height":"width",ve=he+w[de],be=he-w[pe],ye=-1!==[e,i].indexOf(E),_e=null!=(fe=null==M?void 0:M[C])?fe:0,we=ye?ve:he-T[me]-S[me]-_e+N.altAxis,Ee=ye?he+T[me]+S[me]-_e-N.altAxis:be,Oe=b&&ye?function(e,t,n){var i=Y(e,t,n);return i>n?n:i}(we,he,Ee):Y(b?we:ve,he,b?Ee:be);L[C]=Oe,B[C]=Oe-he}r.modifiersData[l]=B}},requiresIfExists:["offset"]};function xe(e,t,n){void 0===n&&(n=!1);var i,o,r=L(t),s=L(t)&&function(e){var t=e.getBoundingClientRect(),n=P(t.width)/e.offsetWidth||1,i=P(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=z(t),l=B(e,s,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==x(t)||le(a))&&(c=(i=t)!==A(i)&&L(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:se(i)),L(t)?((u=B(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=ae(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Ae(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 Ce={placement:"bottom",modifiers:[],strategy:"absolute"};function Le(){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 Te(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,o=t.defaultOptions,r=void 0===o?Ce:o;return function(e,t,n){void 0===n&&(n=r);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ce,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:C(e)?ue(e):e.contextElement?ue(e.contextElement):[],popper:ue(t)};var s,c,d=function(e){var t=Ae(e);return O.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(Le(t,n)){a.rects={reference:xe(t,R(n),"fixed"===a.options.strategy),popper:I(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(!Le(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 Se=Te(),je=Te({defaultModifiers:[te,Ee,Z,S]}),ke=Te({defaultModifiers:[te,Ee,Z,S,we,ve,Oe,Q,_e]}),De=Object.freeze({__proto__:null,afterMain:y,afterRead:m,afterWrite:E,applyStyles:S,arrow:Q,auto:o,basePlacements:r,beforeMain:v,beforeRead:h,beforeWrite:_,bottom:t,clippingParents:l,computeStyles:Z,createPopper:ke,createPopperBase:Se,createPopperLite:je,detectOverflow:ge,end:a,eventListeners:te,flip:ve,hide:_e,left:i,main:b,modifierPhases:O,offset:we,placements:p,popper:u,popperGenerator:Te,popperOffsets:Ee,preventOverflow:Oe,read:g,reference:f,right:n,start:s,top:e,variationPlacements:d,viewport:c,write:w});const Pe=new Map;var Ne={set(e,t,n){Pe.has(e)||Pe.set(e,new Map);const i=Pe.get(e);i.has(t)||0===i.size?i.set(t,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(e,t)=>Pe.has(e)&&Pe.get(e).get(t)||null,remove(e,t){if(!Pe.has(e))return;const n=Pe.get(e);n.delete(t),0===n.size&&Pe.delete(e)}};const Me="transitionend",Be=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),Ie=e=>null==e?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),Fe=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),He=e=>Fe(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(Be(e)):null,$e=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?$e(e.parentNode):null},ze=()=>{},We=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,qe=[],Re=()=>"rtl"===document.documentElement.dir,Ve=e=>{var t;t=()=>{const t=We();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?(qe.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of qe)e()}),qe.push(t)):t()},Ye=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},Ue=function(e,t){if(!(!(arguments.length>2&&void 0!==arguments[2])||arguments[2]))return void Ye(e);const n=(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 i=!1;const o=n=>{let{target:r}=n;r===t&&(i=!0,t.removeEventListener(Me,o),Ye(e))};t.addEventListener(Me,o),setTimeout(()=>{i||t.dispatchEvent(new Event(Me))},n)},Ke=/[^.]*(?=\..*)\.|.*/,Qe=/\..*/,Xe=/::\d+$/,Ge={};let Je=1;const Ze={mouseenter:"mouseover",mouseleave:"mouseout"},et=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 tt(e,t){return t&&`${t}::${Je++}`||e.uidEvent||Je++}function nt(e){const t=tt(e);return e.uidEvent=t,Ge[t]=Ge[t]||{},Ge[t]}function it(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 ot(e,t,n){const i="string"==typeof t,o=i?n:t||n;let r=lt(e);return et.has(r)||(r=e),[i,o,r]}function rt(e,t,n,i,o){if("string"!=typeof t||!e)return;let[r,s,a]=ot(t,n,i);if(t in Ze){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=nt(e),c=l[a]||(l[a]={}),u=it(c,s,r?n:null);if(u)return void(u.oneOff=u.oneOff&&o);const f=tt(s,t.replace(Ke,"")),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 ut(o,{delegateTarget:s}),i.oneOff&&ct.off(e,o.type,t,n),n.apply(s,[o])}}(e,n,s):function(e,t){return function n(i){return ut(i,{delegateTarget:e}),n.oneOff&&ct.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 st(e,t,n,i,o){const r=it(t[n],i,o);r&&(e.removeEventListener(n,r,Boolean(o)),delete t[n][r.uidEvent])}function at(e,t,n,i){const o=t[n]||{};for(const[r,s]of Object.entries(o))r.includes(i)&&st(e,t,n,s.callable,s.delegationSelector)}function lt(e){return e=e.replace(Qe,""),Ze[e]||e}const ct={on(e,t,n,i){rt(e,t,n,i,!1)},one(e,t,n,i){rt(e,t,n,i,!0)},off(e,t,n,i){if("string"!=typeof t||!e)return;const[o,r,s]=ot(t,n,i),a=s!==t,l=nt(e),c=l[s]||{},u=t.startsWith(".");if(void 0===r){if(u)for(const n of Object.keys(l))at(e,l,n,t.slice(1));for(const[n,i]of Object.entries(c)){const o=n.replace(Xe,"");a&&!t.includes(o)||st(e,l,s,i.callable,i.delegationSelector)}}else{if(!Object.keys(c).length)return;st(e,l,s,r,o?n:null)}},trigger(e,t,n){if("string"!=typeof t||!e)return null;const i=We();let o=null,r=!0,s=!0,a=!1;t!==lt(t)&&i&&(o=i.Event(t,n),i(e).trigger(o),r=!o.isPropagationStopped(),s=!o.isImmediatePropagationStopped(),a=o.isDefaultPrevented());const l=ut(new Event(t,{bubbles:r,cancelable:!0}),n);return a&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&o&&o.preventDefault(),l}};function ut(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 ft(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 dt(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const pt={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${dt(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${dt(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]=ft(e.dataset[i])}return t},getDataAttribute:(e,t)=>ft(e.getAttribute(`data-bs-${dt(t)}`))};class ht{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=Fe(t)?pt.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...Fe(t)?pt.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],o=Fe(t)?"element":Ie(t);if(!new RegExp(i).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${i}".`)}}}class gt extends ht{constructor(e,t){super(),(e=He(e))&&(this._element=e,this._config=this._getConfig(t),Ne.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Ne.remove(this._element,this.constructor.DATA_KEY),ct.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t){Ue(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 Ne.get(He(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.7"}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 mt={"*":["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:[]},vt=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),bt=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,yt=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?!vt.has(n)||Boolean(bt.test(e.nodeValue)):t.filter(e=>e instanceof RegExp).some(e=>e.test(n))};const _t=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=>Be(e)).join(","):null},wt={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(!Fe(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=_t(e);return t&&wt.findOne(t)?t:null},getElementFromSelector(e){const t=_t(e);return t?wt.findOne(t):null},getMultipleElementsFromSelector(e){const t=_t(e);return t?wt.find(t):[]}},Et={allowList:mt,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Ot={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},xt={entry:"(string|element|function|null)",selector:"(string|element)"};class At extends ht{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Et}static get DefaultType(){return Ot}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},xt)}_setContent(e,t,n){const i=wt.findOne(n,e);i&&((t=this._resolvePossibleFunction(t))?Fe(t)?this._putElementInTemplate(He(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)yt(t,o)||e.removeAttribute(t.nodeName)}return i.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Ye(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const Ct=new Set(["sanitize","allowList","sanitizeFn"]),Lt="fade",Tt="show",St=".tooltip-inner",jt=".modal",kt="hide.bs.modal",Dt="hover",Pt="focus",Nt="click",Mt={AUTO:"auto",TOP:"top",RIGHT:Re()?"left":"right",BOTTOM:"bottom",LEFT:Re()?"right":"left"},Bt={allowList:mt,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"},It={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 Ft extends gt{constructor(e,t){if(void 0===De)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 Bt}static get DefaultType(){return It}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),ct.off(this._element.closest(jt),kt,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=ct.trigger(this._element,this.constructor.eventName("show")),t=($e(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),ct.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(Tt),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))ct.on(e,"mouseover",ze);this._queueCallback(()=>{ct.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(ct.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(Tt),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))ct.off(e,"mouseover",ze);this._activeTrigger[Nt]=!1,this._activeTrigger[Pt]=!1,this._activeTrigger[Dt]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),ct.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(Lt,Tt),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(Lt),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new At({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[St]: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(Lt)}_isShown(){return this.tip&&this.tip.classList.contains(Tt)}_createPopper(e){const t=Ye(this._config.placement,[this,e,this._element]),n=Mt[t.toUpperCase()];return ke(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 Ye(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,...Ye(this._config.popperConfig,[void 0,t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)ct.on(this._element,this.constructor.eventName("click"),this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger[Nt]=!(t._isShown()&&t._activeTrigger[Nt]),t.toggle()});else if("manual"!==t){const e=t===Dt?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=t===Dt?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");ct.on(this._element,e,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?Pt:Dt]=!0,t._enter()}),ct.on(this._element,n,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?Pt:Dt]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},ct.on(this._element.closest(jt),kt,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=pt.getDataAttributes(this._element);for(const e of Object.keys(t))Ct.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:He(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=Ft.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}Ve(Ft);const Ht=document.getElementById("mode-toggle");function $t(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 zt(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}const Wt=document.getElementById("sidebar"),qt=document.getElementById("sidebar-trigger"),Rt=document.getElementById("mask");class Vt{static toggle(){Yt._=$t(Vt,this,!$t(Vt,this,Yt)._),document.body.toggleAttribute("sidebar-display",$t(Vt,this,Yt)._),Wt.classList.toggle("z-2",$t(Vt,this,Yt)._),Rt.classList.toggle("d-none",!$t(Vt,this,Yt)._)}}var Yt={_:!1};const Ut=document.getElementById("sidebar-trigger"),Kt=document.getElementById("search-trigger"),Qt=document.getElementById("search-cancel"),Xt=document.querySelectorAll("#main-wrapper>.container>.row"),Gt=document.getElementById("topbar-title"),Jt=document.getElementById("search"),Zt=document.getElementById("search-result-wrapper"),en=document.getElementById("search-results"),tn=document.getElementById("search-input"),nn=document.getElementById("search-hints"),on="d-block",rn="d-none",sn="input-focus",an="d-flex";class ln{static on(){Ut.classList.add(rn),Gt.classList.add(rn),Kt.classList.add(rn),Jt.classList.add(an),Qt.classList.add(on)}static off(){Qt.classList.remove(on),Jt.classList.remove(an),Ut.classList.remove(rn),Gt.classList.remove(rn),Kt.classList.remove(rn)}}class cn{static on(){this.resultVisible||(Zt.classList.remove(rn),Xt.forEach(e=>{e.classList.add(rn)}),this.resultVisible=!0)}static off(){this.resultVisible&&(en.innerHTML="",nn.classList.contains(rn)&&nn.classList.remove(rn),Zt.classList.add(rn),Xt.forEach(e=>{e.classList.remove(rn)}),tn.textContent="",this.resultVisible=!1)}}function un(){return Qt.classList.contains(on)}zt(cn,"resultVisible",!1);const fn=".bs.collapse",dn=`show${fn}`,pn=`shown${fn}`,hn=`hide${fn}`,gn=`hidden${fn}`,mn=`click${fn}.data-api`,vn="show",bn="collapse",yn="collapsing",_n=`:scope .${bn} .${bn}`,wn='[data-bs-toggle="collapse"]',En={parent:null,toggle:!0},On={parent:"(null|element)",toggle:"boolean"};class xn extends gt{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const n=wt.find(wn);for(const e of n){const t=wt.getSelectorFromElement(e),n=wt.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 En}static get DefaultType(){return On}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=>xn.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning)return;if(ct.trigger(this._element,dn).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(bn),this._element.classList.add(yn),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(yn),this._element.classList.add(bn,vn),this._element.style[t]="",ct.trigger(this._element,pn)},this._element,!0),this._element.style[t]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(ct.trigger(this._element,hn).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,this._element.offsetHeight,this._element.classList.add(yn),this._element.classList.remove(bn,vn);for(const e of this._triggerArray){const t=wt.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(yn),this._element.classList.add(bn),ct.trigger(this._element,gn)},this._element,!0)}_isShown(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._element).classList.contains(vn)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=He(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(wn);for(const t of e){const e=wt.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=wt.find(_n,this._config.parent);return wt.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=xn.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}})}}ct.on(document,mn,wn,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of wt.getMultipleElementsFromSelector(this))xn.getOrCreateInstance(e,{toggle:!1}).toggle()}),Ve(xn);const An=document.getElementsByClassName("collapse");var Cn;const Ln=document.getElementById("toc-bar"),Tn=document.getElementById("toc-solo-trigger"),Sn=document.getElementsByClassName("toc-trigger"),jn=document.getElementById("toc-popup"),kn=document.getElementById("toc-popup-close"),Dn="overflow-hidden",Pn="closing";class Nn{static initBar(){new IntersectionObserver(e=>{e.forEach(e=>{Ln.classList.toggle("invisible",e.isIntersecting)})},{rootMargin:`-${$t(Nn,this,Bn)._}px 0px 0px 0px`}).observe(Tn),Mn._=$t(Nn,this,!1)}static listenAnchors(){[...document.getElementsByClassName("toc-link")].forEach(e=>{e.onclick=()=>this.hidePopup()})}static refresh(){$t(Nn,this,Mn)._&&this.initComponents(),tocbot.refresh(this.options),this.listenAnchors()}static get popupOpened(){return jn.open}static showPopup(){this.lockScroll(!0),jn.showModal();jn.querySelector("li.is-active-li").scrollIntoView({block:"center"})}static hidePopup(){jn.toggleAttribute(Pn),jn.addEventListener("animationend",()=>{jn.toggleAttribute(Pn),jn.close()},{once:!0}),this.lockScroll(!1)}static lockScroll(e){document.documentElement.classList.toggle(Dn,e),document.body.classList.toggle(Dn,e)}static clickBackdrop(e){if(jn.hasAttribute(Pn))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(),[...Sn].forEach(e=>{e.onclick=()=>this.showPopup()}),jn.onclick=e=>this.clickBackdrop(e),kn.onclick=()=>this.hidePopup(),jn.oncancel=e=>{e.preventDefault(),this.hidePopup()}}static init(){tocbot.init(this.options),this.listenAnchors(),this.initComponents()}}var Mn={_:!0},Bn={_:48};zt(Nn,"options",{tocSelector:"#toc-popup-content",contentSelector:".content",ignoreSelector:"[data-toc-skip]",headingSelector:"h2, h3, h4",orderedList:!1,scrollSmooth:!1,collapseDepth:4,headingsOffset:$t(Cn=Nn,Cn,Bn)._});zt(class{static refresh(){tocbot.refresh(this.options)}static init(){document.getElementById("toc-wrapper")&&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)"),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 Ft(e)),Ht&&Ht.addEventListener("click",()=>{modeToggle.flipMode()}),qt.onclick=Rt.onclick=()=>Vt.toggle(),Kt.addEventListener("click",()=>{ln.on(),cn.on(),tn.focus()}),Qt.addEventListener("click",()=>{ln.off(),cn.off()}),tn.addEventListener("focus",()=>{Jt.classList.add(sn)}),tn.addEventListener("focusout",()=>{Jt.classList.remove(sn)}),tn.addEventListener("input",()=>{""===tn.value?un()?nn.classList.remove(rn):cn.off():(cn.on(),un()&&nn.classList.add(rn))}),[...An].forEach(e=>{const t="h_"+e.id.substring(2),n=document.getElementById(t);e.addEventListener("hide.bs.collapse",()=>{n&&(n.querySelector(".far.fa-folder-open").className="far fa-folder fa-fw",n.querySelector(".fas.fa-angle-down").classList.add("rotate"),n.classList.remove("hide-border-bottom"))}),e.addEventListener("show.bs.collapse",()=>{n&&(n.querySelector(".far.fa-folder").className="far fa-folder-open fa-fw",n.querySelector(".fas.fa-angle-down").classList.remove("rotate"),n.classList.add("hide-border-bottom"))})})}();
|