"use strict"; [].forEach.call(document.querySelectorAll('a'), function(el) { el.addEventListener('click', artisan_ilseo_link_clicked); el.addEventListener('auxclick', artisan_ilseo_link_clicked); }); function artisan_ilseo_link_clicked(e){ // e.preventDefault(); // todo remember to remove this var link = this; var linkAnchor = ''; var hasImage = false; var imageTitle = ''; var imageTags = ['img', 'svg']; // if the click wasn't a primary or middle click, or there's no link, exit if(!(e.which == 1 || e.button == 0 ) && !(e.which == 2 || e.button == 4 ) || link.length < 1){ return; } if('1' === artisanInternalSeoFrontend.disableClicks){ return; } if(this.href === undefined || link.href === '#'){ return; } function findLinkText(link){ if(link.children.length > 0){ for(var i in link.children){ var childThis = link.children[i]; if(childThis.children !== undefined && childThis.children.length > 0 && linkAnchor === ''){ findLinkText(childThis); } if(childThis.nodeType === 1 && -1 !== imageTags.indexOf(childThis.nodeName.toLowerCase()) && imageTitle === ''){ hasImage = true; var title = (undefined !== childThis.title) ? childThis.title : ''; if(undefined !== title){ imageTitle = title.trim(); } } linkAnchor = linkAnchor.trim(); imageTitle = (imageTitle !== undefined) ? imageTitle.trim(): ''; }; } if(undefined !== link.outerText){ linkAnchor = link.outerText; } } findLinkText(link); if(linkAnchor === '' && hasImage){ if(imageTitle !== ''){ linkAnchor = artisanInternalSeoFrontend.clicksI18n.imageText + imageTitle; }else{ linkAnchor = artisanInternalSeoFrontend.clicksI18n.imageNoText; } }else if(linkAnchor === '' && !hasImage){ linkAnchor = artisanInternalSeoFrontend.clicksI18n.noText; } // ignore non-content links if(artisanInternalSeoFrontend.trackAllElementClicks === '0' && hasParentElements(link, 'header, footer, nav, [id~=header], [id~=menu], [id~=footer], [id~=widget], [id~=comment], [class~=header], [class~=menu], [class~=footer], [class~=widget], [class~=comment], #wpadminbar')){ return; } var location = getLinkLocation(link); makeAjaxCall({ action: 'artisan_ilseo_link_clicked', post_id: artisanInternalSeoFrontend.postId, post_type: artisanInternalSeoFrontend.postType, link_url: link.href, link_anchor: linkAnchor, link_location: location }); } window.addEventListener("load", openLinksInNewTab); /** * Sets non nav links on a page to open in a new tab based on the settings. **/ function openLinksInNewTab(){ // exit if non of the links are supposed to open in a new tab via JS if(artisanInternalSeoFrontend.openLinksWithJS == 0 || (artisanInternalSeoFrontend.openExternalInNewTab == 0 && artisanInternalSeoFrontend.openInternalInNewTab == 0) ){ return; } [].forEach.call(document.querySelectorAll('a'), function(element) { // if the link is not a nav link if(!hasParentElements(element, 'header, footer, nav, [id~=header], [id~=menu], [id~=footer], [id~=widget], [id~=comment], [class~=header], [class~=menu], [class~=footer], [class~=widget], [class~=comment], #wpadminbar')){ // if there is a url in the link, there isn't a target and the link isn't a jump link if(element.href && !element.target && element.href.indexOf(window.location.href) === -1){ var url = new URL(element.href); var internal = (window.location.hostname === url.hostname) ? true: false; // if the settings allow it if( (internal && parseInt(artisanInternalSeoFrontend.openInternalInNewTab)) || (!internal && parseInt(artisanInternalSeoFrontend.openExternalInNewTab)) ){ // set the link to open in a new page element.setAttribute('target', '_blank'); } } } }); } // replacement for "$(element).parents('x,y,z')" in if checks function hasParentElements(element, parentList = ''){ var tag = (!element) ? false: element.tagName.toLowerCase(); if(!element || tag === 'body' || tag === 'main' || tag === 'article'){ return false; } if(typeof parentList === 'string'){ parentList = parentList.split(','); } var found = false; for(var i in parentList){ var j = parentList[i]; if(-1 !== j.indexOf('id~=')){ var id = j.replace(/\[id~=|\]/g, '').trim(); if(undefined !== element.id && '' !== element.id && -1 !== element.id.indexOf(id)){ // if the id is set and has a match found = true; break; } }else if(-1 !== j.indexOf('class~=')){ var id = j.replace(/\[class~=|\]/g, '').trim(); if(undefined !== element.classList && '' !== element.className && -1 !== element.className.indexOf(id)){ found = true; break; } }else if(-1 !== j.indexOf('#')){ var id = j.replace(/#/g, '').trim(); if(undefined !== element.id && '' !== element.id && id === element.id){ found = true; break; } }else if(!j.match(/[^a-zA-Z]/)){ // tag match var id = j.trim(); if(element.tagName.toLowerCase() === id){ found = true; break; } } } if(found){ return true; }else if(element.parentNode !== ''){ return hasParentElements(element.parentNode, parentList); } return false; }; function makeAjaxCall(callData = {}){ if(window.jQuery){ callWithJquery(callData); }else{ callWithVanilla(callData); } } function callWithJquery(callData = {}){ jQuery.ajax({ type: 'POST', url: artisanInternalSeoFrontend.ajaxUrl, data: callData, success: function(response){ } }); } function callWithVanilla(callData = {}){ function respond(dat){ if(dat.currentTarget !== undefined){ console.log(dat.currentTarget.response); } } async function ajaxPost (data, callback) { var url = artisanInternalSeoFrontend.ajaxUrl, xhr = new XMLHttpRequest(); var params = []; for(var i in data){ params.push(encodeURIComponent(i) + '=' + encodeURIComponent(data[i])); } params = params.join('&'); xhr.open("POST", url); xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); // xhr.onload = callback.bind(xhr); xhr.send(params); } ajaxPost(callData, respond); } function getLinkLocation(element){ var location = 'Body Content'; var sections = {'Search': ['search', '[id~=search]', '[class~=search]'], 'Header': ['header', '[id~=header]', '[class~=header]'], 'Comment Section': ['[id~=comment]', '[class~=comment]'], 'Footer': ['footer', '[id~=footer]', '[class~=footer]'], 'Menu': ['[id~=menu]', '[class~=menu]'], 'Navigation': ['nav'], 'Sidebar': ['sidebar', '[id~=sidebar]', '[class~=sidebar]', '[id~=widget]', '[class~=widget]'], 'Body Content': ['main', 'article', '[class~=main]'], }; if(!element || element.tagName.toLowerCase() === 'body'){ return location; } var found = false; elementLoop: for(var section in sections){ var sectionData = sections[section]; for(var i in sectionData){ var j = sectionData[i]; if(-1 !== j.indexOf('id~=')){ var id = j.replace(/\[id~=|\]/g, '').trim(); if(undefined !== element.id && '' !== element.id && -1 !== element.id.indexOf(id)){ // if the id is set and has a match found = true; location = section; break elementLoop; } }else if(-1 !== j.indexOf('class~=')){ var id = j.replace(/\[class~=|\]/g, '').trim(); if(undefined !== element.classList && '' !== element.className && -1 !== element.className.indexOf(id)){ found = true; location = section; break elementLoop; } }else if(-1 !== j.indexOf('#')){ var id = j.replace(/#/g, '').trim(); if(undefined !== element.id && '' !== element.id && id === element.id){ found = true; location = section; break elementLoop; } }else if(!j.match(/[^a-zA-Z]/)){ // tag match var id = j.trim(); if(element.tagName.toLowerCase() === id){ found = true; location = section; break elementLoop; } } } } if(found){ return location; }else if(element.parentNode !== ''){ return getLinkLocation(element.parentNode); } return false; } ; /*! * Understrap v4.0.0 (undefined) * Copyright 2013-2022 undefined * Licensed under GPL (http://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html) */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).understrap={},t.jQuery)}(this,(function(t,e){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=n(e),o="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator; /**! * @fileOverview Kickass library to create and place poppers near their reference elements. * @version 1.16.1 * @license * Copyright (c) 2016 Federico Zivolo and contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */const s=function(){const t=["Edge","Trident","Firefox"];for(let e=0;e=0)return 1;return 0}();var r=o&&window.Promise?function(t){let e=!1;return()=>{e||(e=!0,window.Promise.resolve().then((()=>{e=!1,t()})))}}:function(t){let e=!1;return()=>{e||(e=!0,setTimeout((()=>{e=!1,t()}),s))}};function a(t){return t&&"[object Function]"==={}.toString.call(t)}function l(t,e){if(1!==t.nodeType)return[];const n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function d(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function c(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}const{overflow:e,overflowX:n,overflowY:i}=l(t);return/(auto|scroll|overlay)/.test(e+i+n)?t:c(d(t))}function f(t){return t&&t.referenceNode?t.referenceNode:t}const h=o&&!(!window.MSInputMethodContext||!document.documentMode),u=o&&/MSIE 10/.test(navigator.userAgent);function p(t){return 11===t?h:10===t?u:h||u}function m(t){if(!t)return document.documentElement;const e=p(10)?document.body:null;let n=t.offsetParent||null;for(;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;const i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===l(n,"position")?m(n):n:t?t.ownerDocument.documentElement:document.documentElement}function g(t){return null!==t.parentNode?g(t.parentNode):t}function _(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;const n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,o=n?e:t,s=document.createRange();s.setStart(i,0),s.setEnd(o,0);const{commonAncestorContainer:r}=s;if(t!==r&&e!==r||i.contains(o))return function(t){const{nodeName:e}=t;return"BODY"!==e&&("HTML"===e||m(t.firstElementChild)===t)}(r)?r:m(r);const a=g(t);return a.host?_(a.host,e):_(t,g(e).host)}function b(t,e="top"){const n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){const e=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||e)[n]}return t[n]}function v(t,e){const n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t[`border${n}Width`])+parseFloat(t[`border${i}Width`])}function y(t,e,n,i){return Math.max(e[`offset${t}`],e[`scroll${t}`],n[`client${t}`],n[`offset${t}`],n[`scroll${t}`],p(10)?parseInt(n[`offset${t}`])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function w(t){const e=t.body,n=t.documentElement,i=p(10)&&getComputedStyle(n);return{height:y("Height",e,n,i),width:y("Width",e,n,i)}}var E=Object.assign||function(t){for(var e=1;eE({key:t},a[t],{area:O(a[t])}))).sort(((t,e)=>e.area-t.area)),d=l.filter((({width:t,height:e})=>t>=n.clientWidth&&e>=n.clientHeight)),c=d.length>0?d[0].key:l[0].key,f=t.split("-")[1];return c+(f?`-${f}`:"")}function k(t,e,n,i=null){return S(n,i?N(e):_(e,f(n)),i)}function I(t){const e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function L(t){const e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(t=>e[t]))}function j(t,e,n){n=n.split("-")[0];const i=I(t),o={width:i.width,height:i.height},s=-1!==["right","left"].indexOf(n),r=s?"top":"left",a=s?"left":"top",l=s?"height":"width",d=s?"width":"height";return o[r]=e[r]+e[l]/2-i[l]/2,o[a]=n===a?e[a]-i[d]:e[L(a)],o}function F(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function P(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((t=>t[e]===n));const i=F(t,(t=>t[e]===n));return t.indexOf(i)}(t,"name",n))).forEach((t=>{t.function;const n=t.function||t.fn;t.enabled&&a(n)&&(e.offsets.popper=T(e.offsets.popper),e.offsets.reference=T(e.offsets.reference),e=n(e,t))})),e}function M(){if(this.state.isDestroyed)return;let t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=k(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=A(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=j(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=P(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}function B(t,e){return t.some((({name:t,enabled:n})=>n&&t===e))}function H(t){const e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1);for(let i=0;i{t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function V(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function Y(t,e){Object.keys(e).forEach((n=>{let i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&V(e[n])&&(i="px"),t.style[n]=e[n]+i}))}const z=o&&/Firefox/i.test(navigator.userAgent);function X(t,e,n){const i=F(t,(({name:t})=>t===e)),o=!!i&&t.some((t=>t.name===n&&t.enabled&&t.ordert.trim())),a=r.indexOf(F(r,(t=>-1!==t.search(/,|\s/))));r[a]&&r[a].indexOf(",");const l=/\s*,\s*|\s+/;let d=-1!==a?[r.slice(0,a).concat([r[a].split(l)[0]]),[r[a].split(l)[1]].concat(r.slice(a+1))]:[r];return d=d.map(((t,i)=>{const o=(1===i?!s:s)?"height":"width";let r=!1;return t.reduce(((t,e)=>""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,r=!0,t):r?(t[t.length-1]+=e,r=!1,t):t.concat(e)),[]).map((t=>function(t,e,n,i){const o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+o[1],r=o[2];if(!s)return t;if(0===r.indexOf("%")){let t;return t="%p"===r?n:i,T(t)[e]/100*s}if("vh"===r||"vw"===r){let t;return t="vh"===r?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),t/100*s}return s}(t,o,e,n)))})),d.forEach(((t,e)=>{t.forEach(((n,i)=>{V(n)&&(o[e]+=n*("-"===t[i-1]?-1:1))}))})),o}var it={shift:{order:100,enabled:!0,fn:function(t){const e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){const{reference:e,popper:o}=t.offsets,s=-1!==["bottom","top"].indexOf(n),r=s?"left":"top",a=s?"width":"height",l={start:{[r]:e[r]},end:{[r]:e[r]+e[a]-o[a]}};t.offsets.popper=E({},o,l[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,{offset:e}){const{placement:n,offsets:{popper:i,reference:o}}=t,s=n.split("-")[0];let r;return r=V(+e)?[+e,0]:nt(e,i,o,s),"left"===s?(i.top+=r[0],i.left-=r[1]):"right"===s?(i.top+=r[0],i.left+=r[1]):"top"===s?(i.left+=r[0],i.top-=r[1]):"bottom"===s&&(i.left+=r[0],i.top+=r[1]),t.popper=i,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){let n=e.boundariesElement||m(t.instance.popper);t.instance.reference===n&&(n=m(n));const i=H("transform"),o=t.instance.popper.style,{top:s,left:r,[i]:a}=o;o.top="",o.left="",o[i]="";const l=x(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=s,o.left=r,o[i]=a,e.boundaries=l;const d=e.priority;let c=t.offsets.popper;const f={primary(t){let n=c[t];return c[t]l[t]&&!e.escapeWithReference&&(i=Math.min(c[n],l[t]-("right"===t?c.width:c.height))),{[n]:i}}};return d.forEach((t=>{const e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=E({},c,f[e](t))})),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){const{popper:e,reference:n}=t.offsets,i=t.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(i),r=s?"right":"bottom",a=s?"left":"top",l=s?"width":"height";return e[r]o(n[r])&&(t.offsets.popper[a]=o(n[r])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){if(!X(t.instance.modifiers,"arrow","keepTogether"))return t;let n=e.element;if("string"==typeof n){if(n=t.instance.popper.querySelector(n),!n)return t}else if(!t.instance.popper.contains(n))return t;const i=t.placement.split("-")[0],{popper:o,reference:s}=t.offsets,r=-1!==["left","right"].indexOf(i),a=r?"height":"width",d=r?"Top":"Left",c=d.toLowerCase(),f=r?"left":"top",h=r?"bottom":"right",u=I(n)[a];s[h]-uo[h]&&(t.offsets.popper[c]+=s[c]+u-o[h]),t.offsets.popper=T(t.offsets.popper);const p=s[c]+s[a]/2-u/2,m=l(t.instance.popper),g=parseFloat(m[`margin${d}`]),_=parseFloat(m[`border${d}Width`]);let b=p-t.offsets.popper[c]-g-_;return b=Math.max(Math.min(o[a]-u,b),0),t.arrowElement=n,t.offsets.arrow={[c]:Math.round(b),[f]:""},t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(B(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;const n=x(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed);let i=t.placement.split("-")[0],o=L(i),s=t.placement.split("-")[1]||"",r=[];switch(e.behavior){case Z:r=[i,o];break;case tt:r=J(i);break;case et:r=J(i,!0);break;default:r=e.behavior}return r.forEach(((a,l)=>{if(i!==a||r.length===l+1)return t;i=t.placement.split("-")[0],o=L(i);const d=t.offsets.popper,c=t.offsets.reference,f=Math.floor,h="left"===i&&f(d.right)>f(c.left)||"right"===i&&f(d.left)f(c.top)||"bottom"===i&&f(d.top)f(n.right),m=f(d.top)f(n.bottom),_="left"===i&&u||"right"===i&&p||"top"===i&&m||"bottom"===i&&g,b=-1!==["top","bottom"].indexOf(i),v=!!e.flipVariations&&(b&&"start"===s&&u||b&&"end"===s&&p||!b&&"start"===s&&m||!b&&"end"===s&&g),y=!!e.flipVariationsByContent&&(b&&"start"===s&&p||b&&"end"===s&&u||!b&&"start"===s&&g||!b&&"end"===s&&m),w=v||y;(h||_||w)&&(t.flipped=!0,(h||_)&&(i=r[l+1]),w&&(s=function(t){return"end"===t?"start":"start"===t?"end":t}(s)),t.placement=i+(s?"-"+s:""),t.offsets.popper=E({},t.offsets.popper,j(t.instance.popper,t.offsets.reference,t.placement)),t=P(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){const e=t.placement,n=e.split("-")[0],{popper:i,reference:o}=t.offsets,s=-1!==["left","right"].indexOf(n),r=-1===["top","left"].indexOf(n);return i[s?"left":"top"]=o[n]-(r?i[s?"width":"height"]:0),t.placement=L(e),t.offsets.popper=T(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!X(t.instance.modifiers,"hide","preventOverflow"))return t;const e=t.offsets.reference,n=F(t.instance.modifiers,(t=>"preventOverflow"===t.name)).boundaries;if(e.bottomn.right||e.top>n.bottom||e.right"applyStyle"===t.name)).gpuAcceleration,r=void 0!==s?s:e.gpuAcceleration,a=m(t.instance.popper),l=C(a),d={position:o.position},c=function(t,e){const{popper:n,reference:i}=t.offsets,{round:o,floor:s}=Math,r=t=>t,a=o(i.width),l=o(n.width),d=-1!==["left","right"].indexOf(t.placement),c=-1!==t.placement.indexOf("-"),f=e?d||c||a%2==l%2?o:s:r,h=e?o:r;return{left:f(a%2==1&&l%2==1&&!c&&e?n.left-1:n.left),top:h(n.top),bottom:h(n.bottom),right:f(n.right)}}(t,window.devicePixelRatio<2||!z),f="bottom"===n?"top":"bottom",h="right"===i?"left":"right",u=H("transform");let p,g;if(g="bottom"===f?"HTML"===a.nodeName?-a.clientHeight+c.bottom:-l.height+c.bottom:c.top,p="right"===h?"HTML"===a.nodeName?-a.clientWidth+c.right:-l.width+c.right:c.left,r&&u)d[u]=`translate3d(${p}px, ${g}px, 0)`,d[f]=0,d[h]=0,d.willChange="transform";else{const t="bottom"===f?-1:1,e="right"===h?-1:1;d[f]=g*t,d[h]=p*e,d.willChange=`${f}, ${h}`}const _={"x-placement":t.placement};return t.attributes=E({},_,t.attributes),t.styles=E({},d,t.styles),t.arrowStyles=E({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return Y(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&Y(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,o){const s=k(0,e,t,n.positionFixed),r=A(n.placement,s,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",r),Y(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},ot={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:()=>{},onUpdate:()=>{},modifiers:it};class st{constructor(t,e,n={}){this.scheduleUpdate=()=>requestAnimationFrame(this.update),this.update=r(this.update.bind(this)),this.options=E({},st.Defaults,n),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=e&&e.jquery?e[0]:e,this.options.modifiers={},Object.keys(E({},st.Defaults.modifiers,n.modifiers)).forEach((t=>{this.options.modifiers[t]=E({},st.Defaults.modifiers[t]||{},n.modifiers?n.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((t=>E({name:t},this.options.modifiers[t]))).sort(((t,e)=>t.order-e.order)),this.modifiers.forEach((t=>{t.enabled&&a(t.onLoad)&&t.onLoad(this.reference,this.popper,this.options,t,this.state)})),this.update();const i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}update(){return M.call(this)}destroy(){return R.call(this)}enableEventListeners(){return $.call(this)}disableEventListeners(){return U.call(this)}}st.Utils=("undefined"!=typeof window?window:global).PopperUtils,st.placements=K,st.Defaults=ot;var rt=st;const at="transitionend";function lt(t){let e=!1;return i.default(this).one(dt.TRANSITION_END,(()=>{e=!0})),setTimeout((()=>{e||dt.triggerTransitionEnd(this)}),t),this}const dt={TRANSITION_END:"bsTransitionEnd",getUID(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement(t){let e=t.getAttribute("data-target");if(!e||"#"===e){const n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement(t){if(!t)return 0;let e=i.default(t).css("transition-duration"),n=i.default(t).css("transition-delay");const o=parseFloat(e),s=parseFloat(n);return o||s?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:t=>t.offsetHeight,triggerTransitionEnd(t){i.default(t).trigger(at)},supportsTransitionEnd:()=>Boolean(at),isElement:t=>(t[0]||t).nodeType,typeCheckConfig(t,e,n){for(const o in n)if(Object.prototype.hasOwnProperty.call(n,o)){const s=n[o],r=e[o],a=r&&dt.isElement(r)?"element":null==(i=r)?`${i}`:{}.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(a))throw new Error(`${t.toUpperCase()}: Option "${o}" provided type "${a}" but expected type "${s}".`)}var i},findShadowRoot(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?dt.findShadowRoot(t.parentNode):null},jQueryDetection(){if(void 0===i.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");const t=i.default.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};dt.jQueryDetection(),i.default.fn.emulateTransitionEnd=lt,i.default.event.special[dt.TRANSITION_END]={bindType:at,delegateType:at,handle(t){if(i.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};const ct="bs.alert",ft=i.default.fn.alert;class ht{constructor(t){this._element=t}static get VERSION(){return"4.6.2"}close(t){let e=this._element;t&&(e=this._getRootElement(t));this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)}dispose(){i.default.removeData(this._element,ct),this._element=null}_getRootElement(t){const e=dt.getSelectorFromElement(t);let n=!1;return e&&(n=document.querySelector(e)),n||(n=i.default(t).closest(".alert")[0]),n}_triggerCloseEvent(t){const e=i.default.Event("close.bs.alert");return i.default(t).trigger(e),e}_removeElement(t){if(i.default(t).removeClass("show"),!i.default(t).hasClass("fade"))return void this._destroyElement(t);const e=dt.getTransitionDurationFromElement(t);i.default(t).one(dt.TRANSITION_END,(e=>this._destroyElement(t,e))).emulateTransitionEnd(e)}_destroyElement(t){i.default(t).detach().trigger("closed.bs.alert").remove()}static _jQueryInterface(t){return this.each((function(){const e=i.default(this);let n=e.data(ct);n||(n=new ht(this),e.data(ct,n)),"close"===t&&n[t](this)}))}static _handleDismiss(t){return function(e){e&&e.preventDefault(),t.close(this)}}}i.default(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',ht._handleDismiss(new ht)),i.default.fn.alert=ht._jQueryInterface,i.default.fn.alert.Constructor=ht,i.default.fn.alert.noConflict=()=>(i.default.fn.alert=ft,ht._jQueryInterface);const ut="bs.button",pt=i.default.fn.button,mt="active",gt='[data-toggle^="button"]',_t='input:not([type="hidden"])',bt=".btn";class vt{constructor(t){this._element=t,this.shouldAvoidTriggerChange=!1}static get VERSION(){return"4.6.2"}toggle(){let t=!0,e=!0;const n=i.default(this._element).closest('[data-toggle="buttons"]')[0];if(n){const o=this._element.querySelector(_t);if(o){if("radio"===o.type)if(o.checked&&this._element.classList.contains(mt))t=!1;else{const t=n.querySelector(".active");t&&i.default(t).removeClass(mt)}t&&("checkbox"!==o.type&&"radio"!==o.type||(o.checked=!this._element.classList.contains(mt)),this.shouldAvoidTriggerChange||i.default(o).trigger("change")),o.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(mt)),t&&i.default(this._element).toggleClass(mt))}dispose(){i.default.removeData(this._element,ut),this._element=null}static _jQueryInterface(t,e){return this.each((function(){const n=i.default(this);let o=n.data(ut);o||(o=new vt(this),n.data(ut,o)),o.shouldAvoidTriggerChange=e,"toggle"===t&&o[t]()}))}}i.default(document).on("click.bs.button.data-api",gt,(t=>{let e=t.target;const n=e;if(i.default(e).hasClass("btn")||(e=i.default(e).closest(bt)[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{const o=e.querySelector(_t);if(o&&(o.hasAttribute("disabled")||o.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==n.tagName&&"LABEL"===e.tagName||vt._jQueryInterface.call(i.default(e),"toggle","INPUT"===n.tagName)}})).on("focus.bs.button.data-api blur.bs.button.data-api",gt,(t=>{const e=i.default(t.target).closest(bt)[0];i.default(e).toggleClass("focus",/^focus(in)?$/.test(t.type))})),i.default(window).on("load.bs.button.data-api",(()=>{let t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn'));for(let e=0,n=t.length;e(i.default.fn.button=pt,vt._jQueryInterface);const yt="carousel",wt="bs.carousel",Et=".bs.carousel",Tt=i.default.fn[yt],Ct="active",St="next",Dt="prev",Nt="slid.bs.carousel",xt=".active.carousel-item",Ot={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},At={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},kt={TOUCH:"touch",PEN:"pen"};class It{constructor(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}static get VERSION(){return"4.6.2"}static get Default(){return Ot}next(){this._isSliding||this._slide(St)}nextWhenVisible(){const t=i.default(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()}prev(){this._isSliding||this._slide(Dt)}pause(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(dt.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=this._element.querySelector(xt);const e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding)return void i.default(this._element).one(Nt,(()=>this.to(t)));if(e===t)return this.pause(),void this.cycle();const n=t>e?St:Dt;this._slide(n,this._items[t])}dispose(){i.default(this._element).off(Et),i.default.removeData(this._element,wt),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null}_getConfig(t){return t={...Ot,...t},dt.typeCheckConfig(yt,t,At),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=40)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}_addEventListeners(){this._config.keyboard&&i.default(this._element).on("keydown.bs.carousel",(t=>this._keydown(t))),"hover"===this._config.pause&&i.default(this._element).on("mouseenter.bs.carousel",(t=>this.pause(t))).on("mouseleave.bs.carousel",(t=>this.cycle(t))),this._config.touch&&this._addTouchEventListeners()}_addTouchEventListeners(){if(!this._touchSupported)return;const t=t=>{this._pointerEvent&&kt[t.originalEvent.pointerType.toUpperCase()]?this.touchStartX=t.originalEvent.clientX:this._pointerEvent||(this.touchStartX=t.originalEvent.touches[0].clientX)},e=t=>{this.touchDeltaX=t.originalEvent.touches&&t.originalEvent.touches.length>1?0:t.originalEvent.touches[0].clientX-this.touchStartX},n=t=>{this._pointerEvent&&kt[t.originalEvent.pointerType.toUpperCase()]&&(this.touchDeltaX=t.originalEvent.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((t=>this.cycle(t)),500+this._config.interval))};i.default(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",(t=>t.preventDefault())),this._pointerEvent?(i.default(this._element).on("pointerdown.bs.carousel",(e=>t(e))),i.default(this._element).on("pointerup.bs.carousel",(t=>n(t))),this._element.classList.add("pointer-event")):(i.default(this._element).on("touchstart.bs.carousel",(e=>t(e))),i.default(this._element).on("touchmove.bs.carousel",(t=>e(t))),i.default(this._element).on("touchend.bs.carousel",(t=>n(t))))}_keydown(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}}_getItemIndex(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)}_getItemByDirection(t,e){const n=t===St,i=t===Dt,o=this._getItemIndex(e),s=this._items.length-1;if((i&&0===o||n&&o===s)&&!this._config.wrap)return e;const r=(o+(t===Dt?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]}_triggerSlideEvent(t,e){const n=this._getItemIndex(t),o=this._getItemIndex(this._element.querySelector(xt)),s=i.default.Event("slide.bs.carousel",{relatedTarget:t,direction:e,from:o,to:n});return i.default(this._element).trigger(s),s}_setActiveIndicatorElement(t){if(this._indicatorsElement){const e=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));i.default(e).removeClass(Ct);const n=this._indicatorsElement.children[this._getItemIndex(t)];n&&i.default(n).addClass(Ct)}}_updateInterval(){const t=this._activeElement||this._element.querySelector(xt);if(!t)return;const e=parseInt(t.getAttribute("data-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(t,e){const n=this._element.querySelector(xt),o=this._getItemIndex(n),s=e||n&&this._getItemByDirection(t,n),r=this._getItemIndex(s),a=Boolean(this._interval);let l,d,c;if(t===St?(l="carousel-item-left",d="carousel-item-next",c="left"):(l="carousel-item-right",d="carousel-item-prev",c="right"),s&&i.default(s).hasClass(Ct))return void(this._isSliding=!1);if(this._triggerSlideEvent(s,c).isDefaultPrevented())return;if(!n||!s)return;this._isSliding=!0,a&&this.pause(),this._setActiveIndicatorElement(s),this._activeElement=s;const f=i.default.Event(Nt,{relatedTarget:s,direction:c,from:o,to:r});if(i.default(this._element).hasClass("slide")){i.default(s).addClass(d),dt.reflow(s),i.default(n).addClass(l),i.default(s).addClass(l);const t=dt.getTransitionDurationFromElement(n);i.default(n).one(dt.TRANSITION_END,(()=>{i.default(s).removeClass(`${l} ${d}`).addClass(Ct),i.default(n).removeClass(`active ${d} ${l}`),this._isSliding=!1,setTimeout((()=>i.default(this._element).trigger(f)),0)})).emulateTransitionEnd(t)}else i.default(n).removeClass(Ct),i.default(s).addClass(Ct),this._isSliding=!1,i.default(this._element).trigger(f);a&&this.cycle()}static _jQueryInterface(t){return this.each((function(){let e=i.default(this).data(wt),n={...Ot,...i.default(this).data()};"object"==typeof t&&(n={...n,...t});const o="string"==typeof t?t:n.slide;if(e||(e=new It(this,n),i.default(this).data(wt,e)),"number"==typeof t)e.to(t);else if("string"==typeof o){if(void 0===e[o])throw new TypeError(`No method named "${o}"`);e[o]()}else n.interval&&n.ride&&(e.pause(),e.cycle())}))}static _dataApiClickHandler(t){const e=dt.getSelectorFromElement(this);if(!e)return;const n=i.default(e)[0];if(!n||!i.default(n).hasClass("carousel"))return;const o={...i.default(n).data(),...i.default(this).data()},s=this.getAttribute("data-slide-to");s&&(o.interval=!1),It._jQueryInterface.call(i.default(n),o),s&&i.default(n).data(wt).to(s),t.preventDefault()}}i.default(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",It._dataApiClickHandler),i.default(window).on("load.bs.carousel.data-api",(()=>{const t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]'));for(let e=0,n=t.length;e(i.default.fn[yt]=Tt,It._jQueryInterface);const Lt="collapse",jt="bs.collapse",Ft=i.default.fn[Lt],Pt="show",Mt="collapse",Bt="collapsing",Ht="collapsed",Rt="width",Qt='[data-toggle="collapse"]',qt={toggle:!0,parent:""},Wt={toggle:"boolean",parent:"(string|element)"};class $t{constructor(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll(`[data-toggle="collapse"][href="#${t.id}"],[data-toggle="collapse"][data-target="#${t.id}"]`));const n=[].slice.call(document.querySelectorAll(Qt));for(let e=0,i=n.length;ee===t));null!==o&&s.length>0&&(this._selector=o,this._triggerArray.push(i))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}static get VERSION(){return"4.6.2"}static get Default(){return qt}toggle(){i.default(this._element).hasClass(Pt)?this.hide():this.show()}show(){if(this._isTransitioning||i.default(this._element).hasClass(Pt))return;let t,e;if(this._parent&&(t=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((t=>"string"==typeof this._config.parent?t.getAttribute("data-parent")===this._config.parent:t.classList.contains(Mt))),0===t.length&&(t=null)),t&&(e=i.default(t).not(this._selector).data(jt),e&&e._isTransitioning))return;const n=i.default.Event("show.bs.collapse");if(i.default(this._element).trigger(n),n.isDefaultPrevented())return;t&&($t._jQueryInterface.call(i.default(t).not(this._selector),"hide"),e||i.default(t).data(jt,null));const o=this._getDimension();i.default(this._element).removeClass(Mt).addClass(Bt),this._element.style[o]=0,this._triggerArray.length&&i.default(this._triggerArray).removeClass(Ht).attr("aria-expanded",!0),this.setTransitioning(!0);const s=`scroll${o[0].toUpperCase()+o.slice(1)}`,r=dt.getTransitionDurationFromElement(this._element);i.default(this._element).one(dt.TRANSITION_END,(()=>{i.default(this._element).removeClass(Bt).addClass("collapse show"),this._element.style[o]="",this.setTransitioning(!1),i.default(this._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(r),this._element.style[o]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!i.default(this._element).hasClass(Pt))return;const t=i.default.Event("hide.bs.collapse");if(i.default(this._element).trigger(t),t.isDefaultPrevented())return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,dt.reflow(this._element),i.default(this._element).addClass(Bt).removeClass("collapse show");const n=this._triggerArray.length;if(n>0)for(let t=0;t{this.setTransitioning(!1),i.default(this._element).removeClass(Bt).addClass(Mt).trigger("hidden.bs.collapse")})).emulateTransitionEnd(o)}setTransitioning(t){this._isTransitioning=t}dispose(){i.default.removeData(this._element,jt),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null}_getConfig(t){return(t={...qt,...t}).toggle=Boolean(t.toggle),dt.typeCheckConfig(Lt,t,Wt),t}_getDimension(){return i.default(this._element).hasClass(Rt)?Rt:"height"}_getParent(){let t;dt.isElement(this._config.parent)?(t=this._config.parent,void 0!==this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);const e=`[data-toggle="collapse"][data-parent="${this._config.parent}"]`,n=[].slice.call(t.querySelectorAll(e));return i.default(n).each(((t,e)=>{this._addAriaAndCollapsedClass($t._getTargetFromElement(e),[e])})),t}_addAriaAndCollapsedClass(t,e){const n=i.default(t).hasClass(Pt);e.length&&i.default(e).toggleClass(Ht,!n).attr("aria-expanded",n)}static _getTargetFromElement(t){const e=dt.getSelectorFromElement(t);return e?document.querySelector(e):null}static _jQueryInterface(t){return this.each((function(){const e=i.default(this);let n=e.data(jt);const o={...qt,...e.data(),..."object"==typeof t&&t?t:{}};if(!n&&o.toggle&&"string"==typeof t&&/show|hide/.test(t)&&(o.toggle=!1),n||(n=new $t(this,o),e.data(jt,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}))}}i.default(document).on("click.bs.collapse.data-api",Qt,(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();const e=i.default(this),n=dt.getSelectorFromElement(this),o=[].slice.call(document.querySelectorAll(n));i.default(o).each((function(){const t=i.default(this),n=t.data(jt)?"toggle":e.data();$t._jQueryInterface.call(t,n)}))})),i.default.fn[Lt]=$t._jQueryInterface,i.default.fn[Lt].Constructor=$t,i.default.fn[Lt].noConflict=()=>(i.default.fn[Lt]=Ft,$t._jQueryInterface); /**! * @fileOverview Kickass library to create and place poppers near their reference elements. * @version 1.16.1 * @license * Copyright (c) 2016 Federico Zivolo and contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ var Ut="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,Vt=function(){for(var t=["Edge","Trident","Firefox"],e=0;e=0)return 1;return 0}();var Yt=Ut&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),Vt))}};function zt(t){return t&&"[object Function]"==={}.toString.call(t)}function Xt(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function Kt(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function Gt(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=Xt(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?t:Gt(Kt(t))}function Jt(t){return t&&t.referenceNode?t.referenceNode:t}var Zt=Ut&&!(!window.MSInputMethodContext||!document.documentMode),te=Ut&&/MSIE 10/.test(navigator.userAgent);function ee(t){return 11===t?Zt:10===t?te:Zt||te}function ne(t){if(!t)return document.documentElement;for(var e=ee(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Xt(n,"position")?ne(n):n:t?t.ownerDocument.documentElement:document.documentElement}function ie(t){return null!==t.parentNode?ie(t.parentNode):t}function oe(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,o=n?e:t,s=document.createRange();s.setStart(i,0),s.setEnd(o,0);var r,a,l=s.commonAncestorContainer;if(t!==l&&e!==l||i.contains(o))return"BODY"===(a=(r=l).nodeName)||"HTML"!==a&&ne(r.firstElementChild)!==r?ne(l):l;var d=ie(t);return d.host?oe(d.host,e):oe(t,ie(e).host)}function se(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var o=t.ownerDocument.documentElement,s=t.ownerDocument.scrollingElement||o;return s[n]}return t[n]}function re(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=se(e,"top"),o=se(e,"left"),s=n?-1:1;return t.top+=i*s,t.bottom+=i*s,t.left+=o*s,t.right+=o*s,t}function ae(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+i+"Width"])}function le(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],ee(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function de(t){var e=t.body,n=t.documentElement,i=ee(10)&&getComputedStyle(n);return{height:le("Height",e,n,i),width:le("Width",e,n,i)}}var ce=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},fe=function(){function t(t,e){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],i=ee(10),o="HTML"===e.nodeName,s=me(t),r=me(e),a=Gt(t),l=Xt(e),d=parseFloat(l.borderTopWidth),c=parseFloat(l.borderLeftWidth);n&&o&&(r.top=Math.max(r.top,0),r.left=Math.max(r.left,0));var f=pe({top:s.top-r.top-d,left:s.left-r.left-c,width:s.width,height:s.height});if(f.marginTop=0,f.marginLeft=0,!i&&o){var h=parseFloat(l.marginTop),u=parseFloat(l.marginLeft);f.top-=d-h,f.bottom-=d-h,f.left-=c-u,f.right-=c-u,f.marginTop=h,f.marginLeft=u}return(i&&!n?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(f=re(f,e)),f}function _e(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=ge(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),s=Math.max(n.clientHeight,window.innerHeight||0),r=e?0:se(n),a=e?0:se(n,"left"),l={top:r-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:o,height:s};return pe(l)}function be(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===Xt(t,"position"))return!0;var n=Kt(t);return!!n&&be(n)}function ve(t){if(!t||!t.parentElement||ee())return document.documentElement;for(var e=t.parentElement;e&&"none"===Xt(e,"transform");)e=e.parentElement;return e||document.documentElement}function ye(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s={top:0,left:0},r=o?ve(t):oe(t,Jt(e));if("viewport"===i)s=_e(r,o);else{var a=void 0;"scrollParent"===i?"BODY"===(a=Gt(Kt(e))).nodeName&&(a=t.ownerDocument.documentElement):a="window"===i?t.ownerDocument.documentElement:i;var l=ge(a,r,o);if("HTML"!==a.nodeName||be(r))s=l;else{var d=de(t.ownerDocument),c=d.height,f=d.width;s.top+=l.top-l.marginTop,s.bottom=c+l.top,s.left+=l.left-l.marginLeft,s.right=f+l.left}}var h="number"==typeof(n=n||0);return s.left+=h?n:n.left||0,s.top+=h?n:n.top||0,s.right-=h?n:n.right||0,s.bottom-=h?n:n.bottom||0,s}function we(t){return t.width*t.height}function Ee(t,e,n,i,o){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var r=ye(n,i,s,o),a={top:{width:r.width,height:e.top-r.top},right:{width:r.right-e.right,height:r.height},bottom:{width:r.width,height:r.bottom-e.bottom},left:{width:e.left-r.left,height:r.height}},l=Object.keys(a).map((function(t){return ue({key:t},a[t],{area:we(a[t])})})).sort((function(t,e){return e.area-t.area})),d=l.filter((function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight})),c=d.length>0?d[0].key:l[0].key,f=t.split("-")[1];return c+(f?"-"+f:"")}function Te(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=i?ve(e):oe(e,Jt(n));return ge(n,o,i)}function Ce(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function Se(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function De(t,e,n){n=n.split("-")[0];var i=Ce(t),o={width:i.width,height:i.height},s=-1!==["right","left"].indexOf(n),r=s?"top":"left",a=s?"left":"top",l=s?"height":"width",d=s?"width":"height";return o[r]=e[r]+e[l]/2-i[l]/2,o[a]=n===a?e[a]-i[d]:e[Se(a)],o}function Ne(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function xe(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var i=Ne(t,(function(t){return t[e]===n}));return t.indexOf(i)}(t,"name",n))).forEach((function(t){t.function;var n=t.function||t.fn;t.enabled&&zt(n)&&(e.offsets.popper=pe(e.offsets.popper),e.offsets.reference=pe(e.offsets.reference),e=n(e,t))})),e}function Oe(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=Te(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=Ee(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=De(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=xe(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function Ae(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function ke(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i1&&void 0!==arguments[1]&&arguments[1],n=We.indexOf(t),i=We.slice(n+1).concat(We.slice(0,n));return e?i.reverse():i}var Ue="flip",Ve="clockwise",Ye="counterclockwise";function ze(t,e,n,i){var o=[0,0],s=-1!==["right","left"].indexOf(i),r=t.split(/(\+|\-)/).map((function(t){return t.trim()})),a=r.indexOf(Ne(r,(function(t){return-1!==t.search(/,|\s/)})));r[a]&&r[a].indexOf(",");var l=/\s*,\s*|\s+/,d=-1!==a?[r.slice(0,a).concat([r[a].split(l)[0]]),[r[a].split(l)[1]].concat(r.slice(a+1))]:[r];return d=d.map((function(t,i){var o=(1===i?!s:s)?"height":"width",r=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,r=!0,t):r?(t[t.length-1]+=e,r=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,i){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+o[1],r=o[2];if(!s)return t;if(0===r.indexOf("%")){return pe("%p"===r?n:i)[e]/100*s}if("vh"===r||"vw"===r)return("vh"===r?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*s;return s}(t,o,e,n)}))})),d.forEach((function(t,e){t.forEach((function(n,i){Be(n)&&(o[e]+=n*("-"===t[i-1]?-1:1))}))})),o}var Xe={shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var o=t.offsets,s=o.reference,r=o.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",d=a?"width":"height",c={start:he({},l,s[l]),end:he({},l,s[l]+s[d]-r[d])};t.offsets.popper=ue({},r,c[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,o=t.offsets,s=o.popper,r=o.reference,a=i.split("-")[0],l=void 0;return l=Be(+n)?[+n,0]:ze(n,s,r,a),"left"===a?(s.top+=l[0],s.left-=l[1]):"right"===a?(s.top+=l[0],s.left+=l[1]):"top"===a?(s.left+=l[0],s.top-=l[1]):"bottom"===a&&(s.left+=l[0],s.top+=l[1]),t.popper=s,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||ne(t.instance.popper);t.instance.reference===n&&(n=ne(n));var i=ke("transform"),o=t.instance.popper.style,s=o.top,r=o.left,a=o[i];o.top="",o.left="",o[i]="";var l=ye(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=s,o.left=r,o[i]=a,e.boundaries=l;var d=e.priority,c=t.offsets.popper,f={primary:function(t){var n=c[t];return c[t]l[t]&&!e.escapeWithReference&&(i=Math.min(c[n],l[t]-("right"===t?c.width:c.height))),he({},n,i)}};return d.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=ue({},c,f[e](t))})),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,o=t.placement.split("-")[0],s=Math.floor,r=-1!==["top","bottom"].indexOf(o),a=r?"right":"bottom",l=r?"left":"top",d=r?"width":"height";return n[a]s(i[a])&&(t.offsets.popper[l]=s(i[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!Qe(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return t;var o=t.placement.split("-")[0],s=t.offsets,r=s.popper,a=s.reference,l=-1!==["left","right"].indexOf(o),d=l?"height":"width",c=l?"Top":"Left",f=c.toLowerCase(),h=l?"left":"top",u=l?"bottom":"right",p=Ce(i)[d];a[u]-pr[u]&&(t.offsets.popper[f]+=a[f]+p-r[u]),t.offsets.popper=pe(t.offsets.popper);var m=a[f]+a[d]/2-p/2,g=Xt(t.instance.popper),_=parseFloat(g["margin"+c]),b=parseFloat(g["border"+c+"Width"]),v=m-t.offsets.popper[f]-_-b;return v=Math.max(Math.min(r[d]-p,v),0),t.arrowElement=i,t.offsets.arrow=(he(n={},f,Math.round(v)),he(n,h,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(Ae(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=ye(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],o=Se(i),s=t.placement.split("-")[1]||"",r=[];switch(e.behavior){case Ue:r=[i,o];break;case Ve:r=$e(i);break;case Ye:r=$e(i,!0);break;default:r=e.behavior}return r.forEach((function(a,l){if(i!==a||r.length===l+1)return t;i=t.placement.split("-")[0],o=Se(i);var d=t.offsets.popper,c=t.offsets.reference,f=Math.floor,h="left"===i&&f(d.right)>f(c.left)||"right"===i&&f(d.left)f(c.top)||"bottom"===i&&f(d.top)f(n.right),m=f(d.top)f(n.bottom),_="left"===i&&u||"right"===i&&p||"top"===i&&m||"bottom"===i&&g,b=-1!==["top","bottom"].indexOf(i),v=!!e.flipVariations&&(b&&"start"===s&&u||b&&"end"===s&&p||!b&&"start"===s&&m||!b&&"end"===s&&g),y=!!e.flipVariationsByContent&&(b&&"start"===s&&p||b&&"end"===s&&u||!b&&"start"===s&&g||!b&&"end"===s&&m),w=v||y;(h||_||w)&&(t.flipped=!0,(h||_)&&(i=r[l+1]),w&&(s=function(t){return"end"===t?"start":"start"===t?"end":t}(s)),t.placement=i+(s?"-"+s:""),t.offsets.popper=ue({},t.offsets.popper,De(t.instance.popper,t.offsets.reference,t.placement)),t=xe(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,o=i.popper,s=i.reference,r=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return o[r?"left":"top"]=s[n]-(a?o[r?"width":"height"]:0),t.placement=Se(e),t.offsets.popper=pe(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Qe(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=Ne(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottomn.right||e.top>n.bottom||e.right2&&void 0!==arguments[2]?arguments[2]:{};ce(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=Yt(this.update.bind(this)),this.options=ue({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(ue({},t.Defaults.modifiers,o.modifiers)).forEach((function(e){i.options.modifiers[e]=ue({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return ue({name:t},i.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&zt(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return fe(t,[{key:"update",value:function(){return Oe.call(this)}},{key:"destroy",value:function(){return Ie.call(this)}},{key:"enableEventListeners",value:function(){return Pe.call(this)}},{key:"disableEventListeners",value:function(){return Me.call(this)}}]),t}();Ge.Utils=("undefined"!=typeof window?window:global).PopperUtils,Ge.placements=qe,Ge.Defaults=Ke;var Je=Ge;const Ze="dropdown",tn="bs.dropdown",en=".bs.dropdown",nn=i.default.fn[Ze],on=new RegExp("38|40|27"),sn="disabled",rn="show",an="dropdown-menu-right",ln="hide.bs.dropdown",dn="hidden.bs.dropdown",cn="click.bs.dropdown.data-api",fn="keydown.bs.dropdown.data-api",hn='[data-toggle="dropdown"]',un=".dropdown-menu",pn={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},mn={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"};class gn{constructor(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}static get VERSION(){return"4.6.2"}static get Default(){return pn}static get DefaultType(){return mn}toggle(){if(this._element.disabled||i.default(this._element).hasClass(sn))return;const t=i.default(this._menu).hasClass(rn);gn._clearMenus(),t||this.show(!0)}show(t=!1){if(this._element.disabled||i.default(this._element).hasClass(sn)||i.default(this._menu).hasClass(rn))return;const e={relatedTarget:this._element},n=i.default.Event("show.bs.dropdown",e),o=gn._getParentFromElement(this._element);if(i.default(o).trigger(n),!n.isDefaultPrevented()){if(!this._inNavbar&&t){if(void 0===Je)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=o:dt.isElement(this._config.reference)&&(t=this._config.reference,void 0!==this._config.reference.jquery&&(t=this._config.reference[0])),"scrollParent"!==this._config.boundary&&i.default(o).addClass("position-static"),this._popper=new Je(t,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===i.default(o).closest(".navbar-nav").length&&i.default(document.body).children().on("mouseover",null,i.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),i.default(this._menu).toggleClass(rn),i.default(o).toggleClass(rn).trigger(i.default.Event("shown.bs.dropdown",e))}}hide(){if(this._element.disabled||i.default(this._element).hasClass(sn)||!i.default(this._menu).hasClass(rn))return;const t={relatedTarget:this._element},e=i.default.Event(ln,t),n=gn._getParentFromElement(this._element);i.default(n).trigger(e),e.isDefaultPrevented()||(this._popper&&this._popper.destroy(),i.default(this._menu).toggleClass(rn),i.default(n).toggleClass(rn).trigger(i.default.Event(dn,t)))}dispose(){i.default.removeData(this._element,tn),i.default(this._element).off(en),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)}update(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()}_addEventListeners(){i.default(this._element).on("click.bs.dropdown",(t=>{t.preventDefault(),t.stopPropagation(),this.toggle()}))}_getConfig(t){return t={...this.constructor.Default,...i.default(this._element).data(),...t},dt.typeCheckConfig(Ze,t,this.constructor.DefaultType),t}_getMenuElement(){if(!this._menu){const t=gn._getParentFromElement(this._element);t&&(this._menu=t.querySelector(un))}return this._menu}_getPlacement(){const t=i.default(this._element.parentNode);let e="bottom-start";return t.hasClass("dropup")?e=i.default(this._menu).hasClass(an)?"top-end":"top-start":t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":i.default(this._menu).hasClass(an)&&(e="bottom-end"),e}_detectNavbar(){return i.default(this._element).closest(".navbar").length>0}_getOffset(){const t={};return"function"==typeof this._config.offset?t.fn=t=>(t.offsets={...t.offsets,...this._config.offset(t.offsets,this._element)},t):t.offset=this._config.offset,t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),{...t,...this._config.popperConfig}}static _jQueryInterface(t){return this.each((function(){let e=i.default(this).data(tn);if(e||(e=new gn(this,"object"==typeof t?t:null),i.default(this).data(tn,e)),"string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static _clearMenus(t){if(t&&(3===t.which||"keyup"===t.type&&9!==t.which))return;const e=[].slice.call(document.querySelectorAll(hn));for(let n=0,o=e.length;ni.default(t).is(":visible")));if(0===o.length)return;let s=o.indexOf(t.target);38===t.which&&s>0&&s--,40===t.which&&s{t.stopPropagation()})),i.default.fn[Ze]=gn._jQueryInterface,i.default.fn[Ze].Constructor=gn,i.default.fn[Ze].noConflict=()=>(i.default.fn[Ze]=nn,gn._jQueryInterface);const _n="modal",bn="bs.modal",vn=".bs.modal",yn=i.default.fn.modal,wn="modal-open",En="fade",Tn="show",Cn="modal-static",Sn="hidden.bs.modal",Dn="show.bs.modal",Nn="focusin.bs.modal",xn="resize.bs.modal",On="click.dismiss.bs.modal",An="keydown.dismiss.bs.modal",kn="mousedown.dismiss.bs.modal",In=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Ln=".sticky-top",jn={backdrop:!0,keyboard:!0,focus:!0,show:!0},Fn={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"};class Pn{constructor(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}static get VERSION(){return"4.6.2"}static get Default(){return jn}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;const e=i.default.Event(Dn,{relatedTarget:t});i.default(this._element).trigger(e),e.isDefaultPrevented()||(this._isShown=!0,i.default(this._element).hasClass(En)&&(this._isTransitioning=!0),this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),i.default(this._element).on(On,'[data-dismiss="modal"]',(t=>this.hide(t))),i.default(this._dialog).on(kn,(()=>{i.default(this._element).one("mouseup.dismiss.bs.modal",(t=>{i.default(t.target).is(this._element)&&(this._ignoreBackdropClick=!0)}))})),this._showBackdrop((()=>this._showElement(t))))}hide(t){if(t&&t.preventDefault(),!this._isShown||this._isTransitioning)return;const e=i.default.Event("hide.bs.modal");if(i.default(this._element).trigger(e),!this._isShown||e.isDefaultPrevented())return;this._isShown=!1;const n=i.default(this._element).hasClass(En);if(n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),i.default(document).off(Nn),i.default(this._element).removeClass(Tn),i.default(this._element).off(On),i.default(this._dialog).off(kn),n){const t=dt.getTransitionDurationFromElement(this._element);i.default(this._element).one(dt.TRANSITION_END,(t=>this._hideModal(t))).emulateTransitionEnd(t)}else this._hideModal()}dispose(){[window,this._element,this._dialog].forEach((t=>i.default(t).off(vn))),i.default(document).off(Nn),i.default.removeData(this._element,bn),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null}handleUpdate(){this._adjustDialog()}_getConfig(t){return t={...jn,...t},dt.typeCheckConfig(_n,t,Fn),t}_triggerBackdropTransition(){const t=i.default.Event("hidePrevented.bs.modal");if(i.default(this._element).trigger(t),t.isDefaultPrevented())return;const e=this._element.scrollHeight>document.documentElement.clientHeight;e||(this._element.style.overflowY="hidden"),this._element.classList.add(Cn);const n=dt.getTransitionDurationFromElement(this._dialog);i.default(this._element).off(dt.TRANSITION_END),i.default(this._element).one(dt.TRANSITION_END,(()=>{this._element.classList.remove(Cn),e||i.default(this._element).one(dt.TRANSITION_END,(()=>{this._element.style.overflowY=""})).emulateTransitionEnd(this._element,n)})).emulateTransitionEnd(n),this._element.focus()}_showElement(t){const e=i.default(this._element).hasClass(En),n=this._dialog?this._dialog.querySelector(".modal-body"):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),i.default(this._dialog).hasClass("modal-dialog-scrollable")&&n?n.scrollTop=0:this._element.scrollTop=0,e&&dt.reflow(this._element),i.default(this._element).addClass(Tn),this._config.focus&&this._enforceFocus();const o=i.default.Event("shown.bs.modal",{relatedTarget:t}),s=()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,i.default(this._element).trigger(o)};if(e){const t=dt.getTransitionDurationFromElement(this._dialog);i.default(this._dialog).one(dt.TRANSITION_END,s).emulateTransitionEnd(t)}else s()}_enforceFocus(){i.default(document).off(Nn).on(Nn,(t=>{document!==t.target&&this._element!==t.target&&0===i.default(this._element).has(t.target).length&&this._element.focus()}))}_setEscapeEvent(){this._isShown?i.default(this._element).on(An,(t=>{this._config.keyboard&&27===t.which?(t.preventDefault(),this.hide()):this._config.keyboard||27!==t.which||this._triggerBackdropTransition()})):this._isShown||i.default(this._element).off(An)}_setResizeEvent(){this._isShown?i.default(window).on(xn,(t=>this.handleUpdate(t))):i.default(window).off(xn)}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((()=>{i.default(document.body).removeClass(wn),this._resetAdjustments(),this._resetScrollbar(),i.default(this._element).trigger(Sn)}))}_removeBackdrop(){this._backdrop&&(i.default(this._backdrop).remove(),this._backdrop=null)}_showBackdrop(t){const e=i.default(this._element).hasClass(En)?En:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",e&&this._backdrop.classList.add(e),i.default(this._backdrop).appendTo(document.body),i.default(this._element).on(On,(t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===this._config.backdrop?this._triggerBackdropTransition():this.hide())})),e&&dt.reflow(this._backdrop),i.default(this._backdrop).addClass(Tn),!t)return;if(!e)return void t();const n=dt.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(dt.TRANSITION_END,t).emulateTransitionEnd(n)}else if(!this._isShown&&this._backdrop){i.default(this._backdrop).removeClass(Tn);const e=()=>{this._removeBackdrop(),t&&t()};if(i.default(this._element).hasClass(En)){const t=dt.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(dt.TRANSITION_END,e).emulateTransitionEnd(t)}else e()}else t&&t()}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=`${this._scrollbarWidth}px`),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=`${this._scrollbarWidth}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}_checkScrollbar(){const t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right){const n=e.style.paddingRight,o=i.default(e).css("padding-right");i.default(e).data("padding-right",n).css("padding-right",`${parseFloat(o)+this._scrollbarWidth}px`)})),i.default(e).each(((t,e)=>{const n=e.style.marginRight,o=i.default(e).css("margin-right");i.default(e).data("margin-right",n).css("margin-right",parseFloat(o)-this._scrollbarWidth+"px")}));const n=document.body.style.paddingRight,o=i.default(document.body).css("padding-right");i.default(document.body).data("padding-right",n).css("padding-right",`${parseFloat(o)+this._scrollbarWidth}px`)}i.default(document.body).addClass(wn)}_resetScrollbar(){const t=[].slice.call(document.querySelectorAll(In));i.default(t).each(((t,e)=>{const n=i.default(e).data("padding-right");i.default(e).removeData("padding-right"),e.style.paddingRight=n||""}));const e=[].slice.call(document.querySelectorAll(".sticky-top"));i.default(e).each(((t,e)=>{const n=i.default(e).data("margin-right");void 0!==n&&i.default(e).css("margin-right",n).removeData("margin-right")}));const n=i.default(document.body).data("padding-right");i.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""}_getScrollbarWidth(){const t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e}static _jQueryInterface(t,e){return this.each((function(){let n=i.default(this).data(bn);const o={...jn,...i.default(this).data(),..."object"==typeof t&&t?t:{}};if(n||(n=new Pn(this,o),i.default(this).data(bn,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t](e)}else o.show&&n.show(e)}))}}i.default(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(t){let e;const n=dt.getSelectorFromElement(this);n&&(e=document.querySelector(n));const o=i.default(e).data(bn)?"toggle":{...i.default(e).data(),...i.default(this).data()};"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();const s=i.default(e).one(Dn,(t=>{t.isDefaultPrevented()||s.one(Sn,(()=>{i.default(this).is(":visible")&&this.focus()}))}));Pn._jQueryInterface.call(i.default(e),o,this)})),i.default.fn.modal=Pn._jQueryInterface,i.default.fn.modal.Constructor=Pn,i.default.fn.modal.noConflict=()=>(i.default.fn.modal=yn,Pn._jQueryInterface);const Mn=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Bn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Hn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Rn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function Qn(t,e){const n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===Mn.indexOf(n)||Boolean(Hn.test(t.nodeValue)||Rn.test(t.nodeValue));const i=e.filter((t=>t instanceof RegExp));for(let t=0,e=i.length;t{Qn(t,a)||n.removeAttribute(t.nodeName)}))}return i.body.innerHTML}const Wn="tooltip",$n="bs.tooltip",Un=".bs.tooltip",Vn=i.default.fn.tooltip,Yn=new RegExp("(^|\\s)bs-tooltip\\S+","g"),zn=["sanitize","whiteList","sanitizeFn"],Xn="fade",Kn="show",Gn="show",Jn="out",Zn="hover",ti="focus",ei={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},ni={animation:!0,template:'',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:Bn,popperConfig:null},ii={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},oi={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"};class si{constructor(t,e){if(void 0===Je)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}static get VERSION(){return"4.6.2"}static get Default(){return ni}static get NAME(){return Wn}static get DATA_KEY(){return $n}static get Event(){return oi}static get EVENT_KEY(){return Un}static get DefaultType(){return ii}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this.constructor.DATA_KEY;let n=i.default(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(i.default(this.getTipElement()).hasClass(Kn))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),i.default.removeData(this.element,this.constructor.DATA_KEY),i.default(this.element).off(this.constructor.EVENT_KEY),i.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&i.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null}show(){if("none"===i.default(this.element).css("display"))throw new Error("Please use show on visible elements");const t=i.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){i.default(this.element).trigger(t);const e=dt.findShadowRoot(this.element),n=i.default.contains(null!==e?e:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!n)return;const o=this.getTipElement(),s=dt.getUID(this.constructor.NAME);o.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&i.default(o).addClass(Xn);const r="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,a=this._getAttachment(r);this.addAttachmentClass(a);const l=this._getContainer();i.default(o).data(this.constructor.DATA_KEY,this),i.default.contains(this.element.ownerDocument.documentElement,this.tip)||i.default(o).appendTo(l),i.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Je(this.element,o,this._getPopperConfig(a)),i.default(o).addClass(Kn),i.default(o).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&i.default(document.body).children().on("mouseover",null,i.default.noop);const d=()=>{this.config.animation&&this._fixTransition();const t=this._hoverState;this._hoverState=null,i.default(this.element).trigger(this.constructor.Event.SHOWN),t===Jn&&this._leave(null,this)};if(i.default(this.tip).hasClass(Xn)){const t=dt.getTransitionDurationFromElement(this.tip);i.default(this.tip).one(dt.TRANSITION_END,d).emulateTransitionEnd(t)}else d()}}hide(t){const e=this.getTipElement(),n=i.default.Event(this.constructor.Event.HIDE),o=()=>{this._hoverState!==Gn&&e.parentNode&&e.parentNode.removeChild(e),this._cleanTipClass(),this.element.removeAttribute("aria-describedby"),i.default(this.element).trigger(this.constructor.Event.HIDDEN),null!==this._popper&&this._popper.destroy(),t&&t()};if(i.default(this.element).trigger(n),!n.isDefaultPrevented()){if(i.default(e).removeClass(Kn),"ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,i.default(this.tip).hasClass(Xn)){const t=dt.getTransitionDurationFromElement(e);i.default(e).one(dt.TRANSITION_END,o).emulateTransitionEnd(t)}else o();this._hoverState=""}}update(){null!==this._popper&&this._popper.scheduleUpdate()}isWithContent(){return Boolean(this.getTitle())}addAttachmentClass(t){i.default(this.getTipElement()).addClass(`bs-tooltip-${t}`)}getTipElement(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip}setContent(){const t=this.getTipElement();this.setElementContent(i.default(t.querySelectorAll(".tooltip-inner")),this.getTitle()),i.default(t).removeClass("fade show")}setElementContent(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=qn(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?i.default(e).parent().is(t)||t.empty().append(e):t.text(i.default(e).text())}getTitle(){let t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t}_getPopperConfig(t){return{...{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:t=>{t.originalPlacement!==t.placement&&this._handlePopperPlacementChange(t)},onUpdate:t=>this._handlePopperPlacementChange(t)},...this.config.popperConfig}}_getOffset(){const t={};return"function"==typeof this.config.offset?t.fn=t=>(t.offsets={...t.offsets,...this.config.offset(t.offsets,this.element)},t):t.offset=this.config.offset,t}_getContainer(){return!1===this.config.container?document.body:dt.isElement(this.config.container)?i.default(this.config.container):i.default(document).find(this.config.container)}_getAttachment(t){return ei[t.toUpperCase()]}_setListeners(){this.config.trigger.split(" ").forEach((t=>{if("click"===t)i.default(this.element).on(this.constructor.Event.CLICK,this.config.selector,(t=>this.toggle(t)));else if("manual"!==t){const e=t===Zn?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,n=t===Zn?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;i.default(this.element).on(e,this.config.selector,(t=>this._enter(t))).on(n,this.config.selector,(t=>this._leave(t)))}})),this._hideModalHandler=()=>{this.element&&this.hide()},i.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config={...this.config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))}_enter(t,e){const n=this.constructor.DATA_KEY;(e=e||i.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?ti:Zn]=!0),i.default(e.getTipElement()).hasClass(Kn)||e._hoverState===Gn?e._hoverState=Gn:(clearTimeout(e._timeout),e._hoverState=Gn,e.config.delay&&e.config.delay.show?e._timeout=setTimeout((()=>{e._hoverState===Gn&&e.show()}),e.config.delay.show):e.show())}_leave(t,e){const n=this.constructor.DATA_KEY;(e=e||i.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?ti:Zn]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=Jn,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((()=>{e._hoverState===Jn&&e.hide()}),e.config.delay.hide):e.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=i.default(this.element).data();return Object.keys(e).forEach((t=>{-1!==zn.indexOf(t)&&delete e[t]})),"number"==typeof(t={...this.constructor.Default,...e,..."object"==typeof t&&t?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()),dt.typeCheckConfig(Wn,t,this.constructor.DefaultType),t.sanitize&&(t.template=qn(t.template,t.whiteList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};if(this.config)for(const e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t}_cleanTipClass(){const t=i.default(this.getTipElement()),e=t.attr("class").match(Yn);null!==e&&e.length&&t.removeClass(e.join(""))}_handlePopperPlacementChange(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))}_fixTransition(){const t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(i.default(t).removeClass(Xn),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)}static _jQueryInterface(t){return this.each((function(){const e=i.default(this);let n=e.data($n);const o="object"==typeof t&&t;if((n||!/dispose|hide/.test(t))&&(n||(n=new si(this,o),e.data($n,n)),"string"==typeof t)){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}))}}i.default.fn.tooltip=si._jQueryInterface,i.default.fn.tooltip.Constructor=si,i.default.fn.tooltip.noConflict=()=>(i.default.fn.tooltip=Vn,si._jQueryInterface);const ri="popover",ai="bs.popover",li=".bs.popover",di=i.default.fn.popover,ci=new RegExp("(^|\\s)bs-popover\\S+","g"),fi={...si.Default,placement:"right",trigger:"click",content:"",template:''},hi={...si.DefaultType,content:"(string|element|function)"},ui={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class pi extends si{static get VERSION(){return"4.6.2"}static get Default(){return fi}static get NAME(){return ri}static get DATA_KEY(){return ai}static get Event(){return ui}static get EVENT_KEY(){return li}static get DefaultType(){return hi}isWithContent(){return this.getTitle()||this._getContent()}addAttachmentClass(t){i.default(this.getTipElement()).addClass(`bs-popover-${t}`)}getTipElement(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip}setContent(){const t=i.default(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());let e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")}_getContent(){return this.element.getAttribute("data-content")||this.config.content}_cleanTipClass(){const t=i.default(this.getTipElement()),e=t.attr("class").match(ci);null!==e&&e.length>0&&t.removeClass(e.join(""))}static _jQueryInterface(t){return this.each((function(){let e=i.default(this).data(ai);const n="object"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new pi(this,n),i.default(this).data(ai,e)),"string"==typeof t)){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}i.default.fn.popover=pi._jQueryInterface,i.default.fn.popover.Constructor=pi,i.default.fn.popover.noConflict=()=>(i.default.fn.popover=di,pi._jQueryInterface);const mi="scrollspy",gi="bs.scrollspy",_i=".bs.scrollspy",bi=i.default.fn[mi],vi="active",yi="position",wi=".nav, .list-group",Ei=".nav-link",Ti={offset:10,method:"auto",target:""},Ci={offset:"number",method:"string",target:"(string|element)"};class Si{constructor(t,e){this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=`${this._config.target} .nav-link,${this._config.target} .list-group-item,${this._config.target} .dropdown-item`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,i.default(this._scrollElement).on("scroll.bs.scrollspy",(t=>this._process(t))),this.refresh(),this._process()}static get VERSION(){return"4.6.2"}static get Default(){return Ti}refresh(){const t=this._scrollElement===this._scrollElement.window?"offset":yi,e="auto"===this._config.method?t:this._config.method,n=e===yi?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight();[].slice.call(document.querySelectorAll(this._selector)).map((t=>{let o;const s=dt.getSelectorFromElement(t);if(s&&(o=document.querySelector(s)),o){const t=o.getBoundingClientRect();if(t.width||t.height)return[i.default(o)[e]().top+n,s]}return null})).filter(Boolean).sort(((t,e)=>t[0]-e[0])).forEach((t=>{this._offsets.push(t[0]),this._targets.push(t[1])}))}dispose(){i.default.removeData(this._element,gi),i.default(this._scrollElement).off(_i),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null}_getConfig(t){if("string"!=typeof(t={...Ti,..."object"==typeof t&&t?t:{}}).target&&dt.isElement(t.target)){let e=i.default(t.target).attr("id");e||(e=dt.getUID(mi),i.default(t.target).attr("id",e)),t.target=`#${e}`}return dt.typeCheckConfig(mi,t,Ci),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;){this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&(void 0===this._offsets[e+1]||t`${e}[data-target="${t}"],${e}[href="${t}"]`)),n=i.default([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass("dropdown-item")?(n.closest(".dropdown").find(".dropdown-toggle").addClass(vi),n.addClass(vi)):(n.addClass(vi),n.parents(wi).prev(".nav-link, .list-group-item").addClass(vi),n.parents(wi).prev(".nav-item").children(Ei).addClass(vi)),i.default(this._scrollElement).trigger("activate.bs.scrollspy",{relatedTarget:t})}_clear(){[].slice.call(document.querySelectorAll(this._selector)).filter((t=>t.classList.contains(vi))).forEach((t=>t.classList.remove(vi)))}static _jQueryInterface(t){return this.each((function(){let e=i.default(this).data(gi);if(e||(e=new Si(this,"object"==typeof t&&t),i.default(this).data(gi,e)),"string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}i.default(window).on("load.bs.scrollspy.data-api",(()=>{const t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]'));for(let e=t.length;e--;){const n=i.default(t[e]);Si._jQueryInterface.call(n,n.data())}})),i.default.fn[mi]=Si._jQueryInterface,i.default.fn[mi].Constructor=Si,i.default.fn[mi].noConflict=()=>(i.default.fn[mi]=bi,Si._jQueryInterface);const Di="bs.tab",Ni=i.default.fn.tab,xi="active",Oi="fade",Ai="show",ki=".active",Ii="> li > .active";class Li{constructor(t){this._element=t}static get VERSION(){return"4.6.2"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&i.default(this._element).hasClass(xi)||i.default(this._element).hasClass("disabled")||this._element.hasAttribute("disabled"))return;let t,e;const n=i.default(this._element).closest(".nav, .list-group")[0],o=dt.getSelectorFromElement(this._element);if(n){const t="UL"===n.nodeName||"OL"===n.nodeName?Ii:ki;e=i.default.makeArray(i.default(n).find(t)),e=e[e.length-1]}const s=i.default.Event("hide.bs.tab",{relatedTarget:this._element}),r=i.default.Event("show.bs.tab",{relatedTarget:e});if(e&&i.default(e).trigger(s),i.default(this._element).trigger(r),r.isDefaultPrevented()||s.isDefaultPrevented())return;o&&(t=document.querySelector(o)),this._activate(this._element,n);const a=()=>{const t=i.default.Event("hidden.bs.tab",{relatedTarget:this._element}),n=i.default.Event("shown.bs.tab",{relatedTarget:e});i.default(e).trigger(t),i.default(this._element).trigger(n)};t?this._activate(t,t.parentNode,a):a()}dispose(){i.default.removeData(this._element,Di),this._element=null}_activate(t,e,n){const o=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?i.default(e).children(ki):i.default(e).find(Ii))[0],s=n&&o&&i.default(o).hasClass(Oi),r=()=>this._transitionComplete(t,o,n);if(o&&s){const t=dt.getTransitionDurationFromElement(o);i.default(o).removeClass(Ai).one(dt.TRANSITION_END,r).emulateTransitionEnd(t)}else r()}_transitionComplete(t,e,n){if(e){i.default(e).removeClass(xi);const t=i.default(e.parentNode).find("> .dropdown-menu .active")[0];t&&i.default(t).removeClass(xi),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}i.default(t).addClass(xi),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),dt.reflow(t),t.classList.contains(Oi)&&t.classList.add(Ai);let o=t.parentNode;if(o&&"LI"===o.nodeName&&(o=o.parentNode),o&&i.default(o).hasClass("dropdown-menu")){const e=i.default(t).closest(".dropdown")[0];if(e){const t=[].slice.call(e.querySelectorAll(".dropdown-toggle"));i.default(t).addClass(xi)}t.setAttribute("aria-expanded",!0)}n&&n()}static _jQueryInterface(t){return this.each((function(){const e=i.default(this);let n=e.data(Di);if(n||(n=new Li(this),e.data(Di,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}))}}i.default(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),Li._jQueryInterface.call(i.default(this),"show")})),i.default.fn.tab=Li._jQueryInterface,i.default.fn.tab.Constructor=Li,i.default.fn.tab.noConflict=()=>(i.default.fn.tab=Ni,Li._jQueryInterface);const ji="toast",Fi="bs.toast",Pi=i.default.fn.toast,Mi="hide",Bi="show",Hi="showing",Ri="click.dismiss.bs.toast",Qi={animation:!0,autohide:!0,delay:500},qi={animation:"boolean",autohide:"boolean",delay:"number"};class Wi{constructor(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}static get VERSION(){return"4.6.2"}static get DefaultType(){return qi}static get Default(){return Qi}show(){const t=i.default.Event("show.bs.toast");if(i.default(this._element).trigger(t),t.isDefaultPrevented())return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");const e=()=>{this._element.classList.remove(Hi),this._element.classList.add(Bi),i.default(this._element).trigger("shown.bs.toast"),this._config.autohide&&(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay))};if(this._element.classList.remove(Mi),dt.reflow(this._element),this._element.classList.add(Hi),this._config.animation){const t=dt.getTransitionDurationFromElement(this._element);i.default(this._element).one(dt.TRANSITION_END,e).emulateTransitionEnd(t)}else e()}hide(){if(!this._element.classList.contains(Bi))return;const t=i.default.Event("hide.bs.toast");i.default(this._element).trigger(t),t.isDefaultPrevented()||this._close()}dispose(){this._clearTimeout(),this._element.classList.contains(Bi)&&this._element.classList.remove(Bi),i.default(this._element).off(Ri),i.default.removeData(this._element,Fi),this._element=null,this._config=null}_getConfig(t){return t={...Qi,...i.default(this._element).data(),..."object"==typeof t&&t?t:{}},dt.typeCheckConfig(ji,t,this.constructor.DefaultType),t}_setListeners(){i.default(this._element).on(Ri,'[data-dismiss="toast"]',(()=>this.hide()))}_close(){const t=()=>{this._element.classList.add(Mi),i.default(this._element).trigger("hidden.bs.toast")};if(this._element.classList.remove(Bi),this._config.animation){const e=dt.getTransitionDurationFromElement(this._element);i.default(this._element).one(dt.TRANSITION_END,t).emulateTransitionEnd(e)}else t()}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static _jQueryInterface(t){return this.each((function(){const e=i.default(this);let n=e.data(Fi);if(n||(n=new Wi(this,"object"==typeof t&&t),e.data(Fi,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t](this)}}))}}var $i,Ui,Vi;i.default.fn.toast=Wi._jQueryInterface,i.default.fn.toast.Constructor=Wi,i.default.fn.toast.noConflict=()=>(i.default.fn.toast=Pi,Wi._jQueryInterface),$i=navigator.userAgent.toLowerCase().indexOf("webkit")>-1,Ui=navigator.userAgent.toLowerCase().indexOf("opera")>-1,Vi=navigator.userAgent.toLowerCase().indexOf("msie")>-1,($i||Ui||Vi)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",(function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())}),!1),jQuery(document).ready((function(){const t=jQuery('[data-ic-class="search-trigger"]'),e=jQuery('[data-ic-class="search-input"]'),n=jQuery('[data-ic-class="search-clear"]');t.click((function(){jQuery('[data-ic-class="search-trigger"]').addClass("active"),e.focus()})),e.blur((function(){if(e.val().length>0)return!1;t.removeClass("active")})),n.click((function(){e.val("")})),e.focus((function(){t.addClass("active")})),jQuery(".child-toggle-button").click((function(){jQuery(this).next(".dropdown-menu").slideToggle()})),jQuery(".sticky-menu-toggle").click((function(){jQuery("#sticky-menu").is(":visible")?jQuery("#sticky-menu").slideToggle():jQuery("#sticky-menu-mobile").slideToggle(),jQuery("#sticky-menu-wrapper").toggleClass("active")})),jQuery("#stickyMenuDropDown .child-toggle-button").click((function(t){t.preventDefault(),jQuery(this).parent().toggleClass("dropdown-active")})),jQuery("#stickyMenuDropDown-mobile .child-toggle-button").click((function(t){t.preventDefault(),jQuery(this).parent().toggleClass("dropdown-active")})),jQuery(".ng-block-accordion .wp-block-northrop-grumman-icon-list-child").length>0&&jQuery(".ng-block-accordion .wp-block-northrop-grumman-icon-list-child").each((function(){jQuery(this).find("a").appendTo(jQuery(this).find(".ng-icon-list__content-wrap"))}))})),t.Alert=ht,t.Button=vt,t.Carousel=It,t.Collapse=$t,t.Dropdown=gn,t.Modal=Pn,t.Popover=pi,t.Popper=rt,t.Scrollspy=Si,t.Tab=Li,t.Toast=Wi,t.Tooltip=si,t.Util=dt,Object.defineProperty(t,"__esModule",{value:!0})})); //# sourceMappingURL=theme.min.js.map; /** * File skip-link-focus-fix.js. * * Helps with accessibility for keyboard only users. * * Learn more: https://git.io/vWdr2 */ ( function() { var isWebkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1, isOpera = navigator.userAgent.toLowerCase().indexOf( 'opera' ) > -1, isIe = navigator.userAgent.toLowerCase().indexOf( 'msie' ) > -1; if ( ( isWebkit || isOpera || isIe ) && document.getElementById && window.addEventListener ) { window.addEventListener( 'hashchange', function() { var id = location.hash.substring( 1 ), element; if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) { return; } element = document.getElementById( id ); if ( element ) { if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) { element.tabIndex = -1; } element.focus(); } }, false ); } })(); ;