1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2!function(){var e=document.querySelector(".vernova-navigation");if(e){var t=window.innerWidth,n=e.querySelector("ul.navbar-nav"),o=(e.querySelector(".dropdown-l1"),e.querySelectorAll(".dropdown-l1")),i=e.querySelector(".dropdown-menu-list"),r=e.querySelectorAll(".dropdown-toggle");if(e.querySelectorAll(".menu-level-one .has-megamenu"),window.addEventListener("resize",(function(){t=window.innerWidth;})),t<=1024){var l=e.querySelector(".navbar-toggler"),a=document.querySelector("body");document.querySelectorAll(".remove-link-mob").forEach((function(e){if(e&&"A"===e.tagName){for(var t=document.createElement("span"),n=0;n<e.attributes.length;n++){var o=e.attributes[n];"class"!==o.name&&"title"!==o.name||t.setAttribute(o.name,o.value);}for(;e.firstChild;)t.appendChild(e.firstChild);e.parentNode.replaceChild(t,e);}})),document.querySelector(".vernova-navigation").classList.remove("vernova-navigation-light"),l.addEventListener("click",(function(){l.classList.toggle("nav-toggled"),e.classList.toggle("mobile-nav-active"),a.classList.toggle("mobile-menu-overlay");})),Array.from(document.querySelectorAll(".menu-level-one > .dropdown-toggle")).map((function(e,t){0!==t&&e.nextElementSibling.querySelector(".navitems-overflow .dropdown-navitems").classList.add("about-dropdown"),e.addEventListener("click",(function(){i.classList.add("l2-is-active"),e.nextElementSibling.classList.add("dropdown-l2-active");}));})),Array.from(i.querySelectorAll("li.menu-level-one .dropdown-navitems .dropdown-toggle-l2")).map((function(e){e.addEventListener("click",(function(){e.classList.toggle("minus-icon"),e.nextElementSibling.classList.toggle("dropdown-active");}));}));}if(document.querySelectorAll(".dropdown-l1 .title-and-back .back-step").forEach((function(e){e.addEventListener("click",(function(){document.querySelectorAll(".dropdown-l1").forEach((function(e){e.classList.remove("dropdown-l2-active");})),i.classList.remove("l2-is-active"),document.querySelectorAll(".dropdown-l2").forEach((function(e){e.classList.remove("dropdown-active");})),document.querySelectorAll(".dropdown-toggle-l2").forEach((function(e){e.classList.remove("minus-icon");}));}));})),t>1024){var c=function(e){Array.from(document.querySelectorAll(".vernova-navigation .padding-for-drop")).forEach((function(t){t.style.width="".concat(e,"px");}));};document.querySelector(".vernova-navigation").addEventListener("mouseenter",(function(){document.querySelector(".vernova-navigation").classList.remove("vernova-navigation-light");})),document.querySelector(".vernova-navigation").addEventListener("mouseleave",(function(){document.querySelector(".vernova-navigation").classList.add("vernova-navigation-light");})),document.querySelectorAll(".dropdown-l2-nav").forEach((function(e){e.querySelectorAll(".col-lg-6 a").length>4&&(e.classList.add("overflow-content"),function(e,t){for(;e;){if(e.classList&&e.classList.contains(t))return e;e=e.parentElement;}return null;}(e,"mid-col-l1").parentElement.classList.add("added-icon"));}));var d=window.innerWidth-document.documentElement.clientWidth,s=document.documentElement.clientWidth;c(s),window.addEventListener("resize",(function(){s=document.documentElement.clientWidth,c(s);})),Array.from(o).forEach((function(e){document.querySelector(".dropdown-l1").classList.add("zindex3"),e.addEventListener("mouseenter",(function(o){n.classList.add("green-menu-items"),document.body.classList.add("dropmenu-overlay"),e.classList.add("active"),e.style.zIndex=-1,document.body.style.marginRight="".concat(d,"px"),t>1600?document.querySelector("nav.vernova-navigation").style.setProperty("padding-right",d+"px","important"):document.querySelector(".vernova-navigation>.container-fluid").style.marginRight="".concat(d,"px");})),e.addEventListener("mouseleave",(function(){e.classList.remove("active"),e.style.zIndex=-4,n.classList.remove("green-menu-items"),document.body.classList.remove("dropmenu-overlay"),document.body.style.marginRight="",t>1600?document.querySelector("nav.vernova-navigation").style.paddingRight="":document.querySelector(".vernova-navigation>.container-fluid").style.marginRight="";}));})),Array.from(r).forEach((function(e){e.addEventListener("mouseenter",(function(o){n.classList.add("green-menu-items"),document.body.classList.add("dropmenu
2-overlay"),document.body.style.marginRight="".concat(d,"px"),t>1600?document.querySelector("nav.vernova-navigation").style.setProperty("padding-right",d+"px","important"):document.querySelector(".vernova-navigation>.container-fluid").style.marginRight="".concat(d,"px"),e.nextElementSibling.style.zIndex=-1,e&&(e.nextElementSibling.classList.add("active"),e.parentElement.previousElementSibling&&e.parentElement.previousElementSibling.querySelector(".dropdown-toggle")&&e.parentElement.previousElementSibling.querySelector(".dropdown-toggle + .dropdown-menu").classList.add("active"),e.parentElement.nextElementSibling&&e.parentElement.nextElementSibling.querySelector(".dropdown-toggle")&&e.parentElement.nextElementSibling.querySelector(".dropdown-toggle + .dropdown-menu").classList.add("active"));})),e.addEventListener("mouseleave",(function(){n.classList.remove("green-menu-items"),document.body.classList.remove("dropmenu-overlay"),document.body.style.marginRight="",t>1600?document.querySelector("nav.vernova-navigation").style.paddingRight="":document.querySelector(".vernova-navigation>.container-fluid").style.marginRight="",e.nextElementSibling.style.zIndex=-4,e&&(e.nextElementSibling.classList.remove("active"),e.parentElement.previousElementSibling&&e.parentElement.previousElementSibling.querySelector(".dropdown-toggle")&&e.parentElement.previousElementSibling.querySelector(".dropdown-toggle + .dropdown-menu").classList.remove("active"),e.parentElement.nextElementSibling&&e.parentElement.nextElementSibling.querySelector(".dropdown-toggle")&&e.parentElement.nextElementSibling.querySelector(".dropdown-toggle + .dropdown-menu").classList.remove("active"));}));})),o.forEach((function(e){var t;t=e.querySelectorAll(".dropdown-navitems li"),Array.from(t).forEach((function(e){e.querySelector(".dropdown-l2")&&(e.addEventListener("mouseenter",(function(){t.forEach((function(e){e.classList.remove("active-item");})),e.classList.add("active-item");})),e.addEventListener("mouseleave",(function(){t.forEach((function(e){e.classList.remove("active-item");})),Array.from(t)[0].classList.add("active-item");})));}));}));}t<=1024&&e.classList.add("fixed-top-mob"),window.onscroll=function(n){t>1024?(this.oldScroll>this.scrollY?(e.classList.add("fixed-top"),this.scrollY>85?e.classList.add("hide-sticky-nav"):e.classList.remove("hide-sticky-nav")):this.scrollY>85&&e.classList.remove("fixed-top"),this.oldScroll=this.scrollY):this.scrollY>100?e.classList.add("bg-white"):e.classList.remove("bg-white");};}window.addEventListener("load",(function(){var e=0;document.querySelector(".block--ge-vernova-unified-local-tasks")&&(e=document.querySelector(".block--ge-vernova-unified-local-tasks").offsetTop+document.querySelector(".block--ge-vernova-unified-local-tasks").offsetHeight+16),document.querySelector(".vernova-navigation.fixed-top")&&(document.querySelector(".vernova-navigation.fixed-top").style.top=e+"px");var t=document.querySelector("button.navbar-toggler");t.addEventListener("click",(function(n){t.classList.contains("nav-toggled")&&document.querySelector(".vernova-navigation.mobile-nav-active .navbar-wrapper")&&(document.querySelector(".vernova-navigation.mobile-nav-active .navbar-wrapper").style.top=e+"px");}),!1);}),!1);}();; 3!function(){var e=document.querySelector(".vernova-navigation-ar");if(e){var o=window.innerWidth;if(o<=1024){var t=e.querySelector(".navbar-toggler"),a=document.querySelector("body");e.classList.add("fixed-top-mob"),t.addEventListener("click",(function(){t.classList.toggle("nav-toggled"),e.classList.toggle("mobile-nav-active"),a.classList.toggle("mobile-menu-overlay");}));}window.onscroll=function(t){o>1024?(this.oldScroll>this.scrollY?(e.classList.add("fixed-top"),this.scrollY>10?e.classList.add("hide-sticky-nav"):e.classList.remove("hide-sticky-nav")):e.classList.remove("fixed-top"),this.oldScroll=this.scrollY):this.scrollY>100?e.classList.add("bg-white"):e.classList.remove("bg-white");};}window.addEventListener("load",(function(){var e=0;document.querySelector(".block--ge-vernova-unified-local-tasks")&&(e=document.querySelector(".block--ge-vernova-unified-local-tasks").offsetTop+document.querySelector(".block--ge-vernova-unified-local-tasks").offsetHeight+16),document.querySelector(".vernova-navigation-ar.fixed-top")&&(document.querySelector(".vernova-navigation-ar.fixed-top").style.top=e+"px");var o=document.querySelector("button.navbar-toggler");o.addEventListener("click",(function(t){o.classList.contains("nav-toggled")&&document.querySelector(".vernova-navigation-ar.mobile-nav-active .navbar-wrapper")&&(document.querySelector(".vernova-navigation-ar.mobile-nav-active .navbar-wrapper").style.top=e+"px");}),!1);}),!1);}();; 4!function(){var e=document.querySelector(".vernova-navigation-fs");if(e){var o=window.innerWidth;if(o<=1024){var t=e.querySelector(".navbar-toggler"),a=document.querySelector("body");e.classList.add("fixed-top-mob"),t.addEventListener("click",(function(){t.classList.toggle("nav-toggled"),e.classList.toggle("mobile-nav-active"),a.classList.toggle("mobile-menu-overlay");}));}window.onscroll=function(t){o>1024?(this.oldScroll>this.scrollY?(e.classList.add("fixed-top"),this.scrollY>10?e.classList.add("hide-sticky-nav"):e.classList.remove("hide-sticky-nav")):e.classList.remove("fixed-top"),this.oldScroll=this.scrollY):this.scrollY>100?e.classList.add("bg-white"):e.classList.remove("bg-white");};}window.addEventListener("load",(function(){var e=0;document.querySelector(".block--ge-vernova-unified-local-tasks")&&(e=document.querySelector(".block--ge-vernova-unified-local-tasks").offsetTop+document.querySelector(".block--ge-vernova-unified-local-tasks").offsetHeight+16),document.querySelector(".vernova-navigation-fs.fixed-top")&&(document.querySelector(".vernova-navigation-fs.fixed-top").style.top=e+"px");var o=document.querySelector("button.navbar-toggler");o.addEventListener("click",(function(t){o.classList.contains("nav-toggled")&&document.querySelector(".vernova-navigation-fs.mobile-nav-active .navbar-wrapper")&&(document.querySelector(".vernova-navigation-fs.mobile-nav-active .navbar-wrapper").style.top=e+"px");}),!1);}),!1);}();; 5(function($,Drupal,debounce){const cache={right:0,left:0,bottom:0,top:0};const cssVarPrefix='--drupal-displace-offset';const documentStyle=document.documentElement.style;const offsetKeys=Object.keys(cache);const offsetProps={};offsetKeys.forEach((edge)=>{offsetProps[edge]={enumerable:true,get(){return cache[edge];},set(value){if(value!==cache[edge])documentStyle.setProperty(`${cssVarPrefix}-${edge}`,`${value}px`);cache[edge]=value;}};});
5const offsets=Object.seal(Object.defineProperties({},offsetProps));function getRawOffset(el,edge){const $el=$(el);const documentElement=document.documentElement;let displacement=0;const horizontal=edge==='left'||edge==='right';let placement=$el.offset()[horizontal?'left':'top'];placement-=window[`scroll${horizontal?'X':'Y'}`]||document.documentElement[`scroll${horizontal?'Left':'Top'}`]||0;switch(edge){case 'top':displacement=placement+$el.outerHeight();break;case 'left':displacement=placement+$el.outerWidth();break;case 'bottom':displacement=documentElement.clientHeight-placement;break;case 'right':displacement=documentElement.clientWidth-placement;break;default:displacement=0;}return displacement;}function calculateOffset(edge){let edgeOffset=0;document.querySelectorAll(`[data-offset-${edge}]`).forEach((el)=>{if(el.style.display==='none')return;let displacement=parseInt(el.getAttribute(`data-offset-${edge}`),10);if(isNaN(displacement))displacement=getRawOffset(el,edge);edgeOffset=Math.max(edgeOffset,displacement);});return edgeOffset;}function displace(broadcast=true){const newOffsets={};offsetKeys.forEach((edge)=>{newOffsets[edge]=calculateOffset(edge);});offsetKeys.forEach((edge)=>{offsets[edge]=newOffsets[edge];});if(broadcast)$(document).trigger('drupalViewportOffsetChange',offsets);return offsets;}Drupal.behaviors.drupalDisplace={attach(){if(this.displaceProcessed)return;this.displaceProcessed=true;$(window).on('resize.drupalDisplace',debounce(displace,200));}};Drupal.displace=displace;Object.defineProperty(Drupal.displace,'offsets',{value:offsets,writable:false});Drupal.displace.calculateOffset=calculateOffset;})(jQuery,Drupal,Drupal.debounce);; 6(($)=>{let cachedScrollbarWidth=null;const {max,abs}=Math;const regexHorizontal=/left|center|right/;const regexVertical=/top|center|bottom/;const regexOffset=/[+-]\d+(\.[\d]+)?%?/;const regexPosition=/^\w+/;const _position=$.fn.position;function getOffsets(offsets,width,height){return [parseFloat(offsets[0])*(typeof offsets[0]==='string'&&offsets[0].endsWith('%')?width/100:1),parseFloat(offsets[1])*(typeof offsets[1]==='string'&&offsets[1].endsWith('%')?height/100:1)];}function parseCss(element,property){return parseInt(window.getComputedStyle(element)[property],10)||0;}function getDimensions(elem){const raw=elem[0];if(raw.nodeType===Node.DOCUMENT_NODE)return {width:elem.width(),height:elem.height(),offset:{top:0,left:0}};if(!!raw&&raw===raw.window)return {width:elem.width(),height:elem.height(),offset:{top:elem.scrollTop(),left:elem.scrollLeft()}};if(raw.preventDefault)return {width:0,height:0,offset:{top:raw.pageY,left:raw.pageX}};return {width:elem.outerWidth(),height:elem.outerHeight(),offset:elem.offset()};}const collisions={fit:{left(position,data){const {within}=data;const withinOffset=within.isWindow?within.scrollLeft:within.offset.left;const outerWidth=within.width;const collisionPosLeft=position.left-data.collisionPosition.marginLeft;const overLeft=withinOffset-collisionPosLeft;const overRight=collisionPosLeft+data.collisionWidth-outerWidth-withinOffset;let newOverRight;if(data.collisionWidth>outerWidth)if(overLeft>0&&overRight<=0){newOverRight=position.left+overLeft+data.collisionWidth-outerWidth-withinOffset;position.left+=overLeft-newOverRight;}else if(overRight>0&&overLeft<=0)position.left=withinOffset;else if(overLeft>overRight)position.left=withinOffset+outerWidth-data.collisionWidth;else position.left=withinOffset;else if(overLeft>0)position.left+=overLeft;else if(overRight>0)position.left-=overRight;else position.left=max(position.left-collisionPosLeft,position.left);},top(position,data){const {within}=data;const withinOffset=within.isWindow?within.scrollTop:within.offset.top;const outerHeight=data.within.height;const collisionPosTop=position.top-data.collisionPosition.marginTop;const overTop=withinOffset-collisionPosTop;const overBottom=collisionPosTop+data.collisionHeight-outerHeight-withinOffset;let newOverBottom;if(data.collisionHeight>outerHeight)if(overTop>0&&overBottom<=0){newOverBottom=position.top+overTop+data.collisionHeight-outerHeight-withinOffset;position.top+=overTop-newOverBottom;}else if(overBottom>0&&overTop<=0)position.top=withinOffset;else if(overTop>overBottom)position.top=withinOffset+outerHeight-data.collisionHeight;else position.top=withinOffset;else if(overTop>0)position.top+=overTop;else if(overBottom>0)position.top-=overBottom;else position.top=max(position.top-collisionPosTop,position.top);}},flip:{left(position,data){const {within}=data;const withinOffset=within.offset.left+within.scrollLeft;const outerWidth=within.width;const offsetLeft=within.isWindow?within.scrollLeft:within.offset.left;const collisionPosLeft=position.left-data.collisionPosition.marginLeft;const overLeft=collisionPosLeft-offsetLeft;const overRight=collisionPosLeft+data.collisionWidth-outerWidth-offsetLeft;const myOffset=data.my[0]==='left'?-data.elemWidth:data.my[0]==='right'?data.elemWidth:0;const atOffset=data.at[0]==='left'?data.targetWidth:data.at[0]==='right'?-data.targetWidth:0;const offset=-2*data.offset[0];let newOverRight;let newOverLeft;if(overLeft<0){newOverRight=position.left+myOffset+atOffset+offset+data.collisionWidth-outerWidth-withinOffset;if(newOverRight<0||newOverRight<abs(overLeft))position.left+=myOffset+atOffset+offset;}else{if(overRight>0){newOverLeft=position.left-data.collisionPosition.marginLeft+myOffset+atOffset+offset-offsetLeft;if(newOverLeft>0||abs(newOverLeft)<overRight)position.left+=myOffset+atOffset+offset;}}},top(position,data){const {within}=data;const withinOffset=within.offset.top+within.scrollTop;const outerHeight=within.height;const offsetTop=within.isWindow?within.scrollTop:within.offset.top;const collisionPosTop=position.top-data.collisionPosition.marginTop;const overTop=collisionPosTop-offsetTop;const overBottom=collisionPosTop+data.collisionHeight-outerHeight-offsetTop;const top=data.my[1]==='top';const myOffset=top?-data.elemHeight:data.my[1]==='bottom'?data.elemHeight:0;const atOffset=data.at[1]==='top'?data.targetHeight:data.at[1]==='bottom'?-data.targetHeight:0;const offset=-2*data.offset[1];let newOverTop;let newOverBottom;if(overTop<0){newOverBottom=position.top+myOffset+atOffset+offset+data.collisionHeight-outerHeight-withinOffset;if(newOverBottom<0||newOverBottom<abs(overTop))position.top+=myOffset+atOffset+offset;}else{if(overBottom>0){newOverTop=position.top-data.collisionPosition.marginTop+myOffset+atOffset+offset-offsetTop;if(newOverTop>0||abs(newOverTop)<overBottom)position.top+=myOffset+atOffset+offset;}}}},flipfit:{left(...args){collisions.flip.left.apply(this,args);collisions.fit.left.apply(this,args);},top(...args){collisions.flip.top.apply(this,args);collisions.fit.top.apply(this,args);}}};$.position={scrollbarWidth(){if(cachedScrollbarWidth!==undefined)return cachedScrollbarWidth;const div=$('<div '+"style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'>"+"<div style='height:100px;width:auto;'></div></div>");const innerDiv=div.children()[0];$('body').append(div);const w1=innerDiv.offsetWidth;div[0].style.overflow='scroll';let w2=innerDiv.offsetWidth;if(w1===w2)w2=div[0].clientWidth;div.remove();cachedScrollbarWidth=w1-w2;return cachedScrollbarWidth;},getScrollInfo(within){const overflowX=within.isWindow||within.isDocument?'':window.getComputedStyle(within.element[0])['overflow-x'];const overflowY=within.isWindow||within.isDocument?'':window.getComputedStyle(within.element[0])['overflow-y'];const hasOverflowX=overflowX==='scroll'||(overflowX==='auto'&&within.width<within.element[0].scrollWidth);const hasOverflowY=overflowY==='scroll'||(overflowY==='auto'&&within.height<within.element[0].scrollHeight);return {width:hasOverflowY?$.position.scrollbarWidth():0,height:hasOverflowX?$.position.scrollbarWidth():0};},getWithinInfo(element){const withinElement=$(element||window);const isWindow=!!withinElement[0]&&withinElement[0]===withinElement[0].window;const isDocument=!!withinElement[0]&&withinElement[0].nodeType===Node.DOCUMENT_NODE;const hasOffset=!isWindow&&!isDocument;return {element:withinElement,isWindow,isDocument,offset:hasOffset?$(element).offset():{left:0,top:0},scrollLeft:withinElement.scrollLeft(),scrollTop:withinElement.scrollTop(),width:withinElement.outerWidth(),height:withinElement.outerHeight()};}};$.fn.position=function(options){if(!options||!options.of)return _position.apply(this,arguments);options=$.extend({},options);const within=$.position.getWithinInfo(options.within);const scrollInfo=$.position.getScrollInfo(within);const collision=(options.collision||'flip').split(' ');const offsets={};const target=typeof options.of==='string'?$(document).find(options.of):$(options.of);const dimensions=getDimensions(target);const targetWidth=dimensions.width;const targetHeight=dimensions.height;const targetOffset=dimensions.offset;if(target[0].preventDefault)options.at='left top';const basePosition=$.extend({},targetOffset);$.each(['my','at'],function(){let pos=(options[this]||'').split(' ');
6if(pos.length===1)pos=regexHorizontal.test(pos[0])?pos.concat(['center']):regexVertical.test(pos[0])?['center'].concat(pos):['center','center'];pos[0]=regexHorizontal.test(pos[0])?pos[0]:'center';pos[1]=regexVertical.test(pos[1])?pos[1]:'center';const horizontalOffset=regexOffset.exec(pos[0]);const verticalOffset=regexOffset.exec(pos[1]);offsets[this]=[horizontalOffset?horizontalOffset[0]:0,verticalOffset?verticalOffset[0]:0];options[this]=[regexPosition.exec(pos[0])[0],regexPosition.exec(pos[1])[0]];});if(collision.length===1)collision[1]=collision[0];if(options.at[0]==='right')basePosition.left+=targetWidth;else{if(options.at[0]==='center')basePosition.left+=targetWidth/2;}if(options.at[1]==='bottom')basePosition.top+=targetHeight;else{if(options.at[1]==='center')basePosition.top+=targetHeight/2;}const atOffset=getOffsets(offsets.at,targetWidth,targetHeight);basePosition.left+=atOffset[0];basePosition.top+=atOffset[1];return this.each(function(){let using;const elem=$(this);const elemWidth=elem.outerWidth();const elemHeight=elem.outerHeight();const marginLeft=parseCss(this,'marginLeft');const marginTop=parseCss(this,'marginTop');const collisionWidth=elemWidth+marginLeft+parseCss(this,'marginRight')+scrollInfo.width;const collisionHeight=elemHeight+marginTop+parseCss(this,'marginBottom')+scrollInfo.height;const position=$.extend({},basePosition);const myOffset=getOffsets(offsets.my,elem.outerWidth(),elem.outerHeight());if(options.my[0]==='right')position.left-=elemWidth;else{if(options.my[0]==='center')position.left-=elemWidth/2;}if(options.my[1]==='bottom')position.top-=elemHeight;else{if(options.my[1]==='center')position.top-=elemHeight/2;}position.left+=myOffset[0];position.top+=myOffset[1];const collisionPosition={marginLeft,marginTop};$.each(['left','top'],function(i,dir){if(collisions[collision[i]])collisions[collision[i]][dir](position,{targetWidth,targetHeight,elemWidth,elemHeight,collisionPosition,collisionWidth,collisionHeight,offset:[atOffset[0]+myOffset[0],atOffset[1]+myOffset[1]],my:options.my,at:options.at,within,elem});});if(options.using)using=function(props){const left=targetOffset.left-position.left;const right=left+targetWidth-elemWidth;const top=targetOffset.top-position.top;const bottom=top+targetHeight-elemHeight;const feedback={target:{element:target,left:targetOffset.left,top:targetOffset.top,width:targetWidth,height:targetHeight},element:{element:elem,left:position.left,top:position.top,width:elemWidth,height:elemHeight},horizontal:right<0?'left':left>0?'right':'center',vertical:bottom<0?'top':top>0?'bottom':'middle'};if(targetWidth<elemWidth&&abs(left+right)<targetWidth)feedback.horizontal='center';if(targetHeight<elemHeight&&abs(top+bottom)<targetHeight)feedback.vertical='middle';if(max(abs(left),abs(right))>max(abs(top),abs(bottom)))feedback.important='horizontal';else feedback.important='vertical';options.using.call(this,props,feedback);};elem.offset($.extend(position,{using}));});};if(!$.hasOwnProperty('ui'))$.ui={};$.ui.position=collisions;})(jQuery);; 7(function($,Drupal,once){if(once('drupal-dialog-deprecation-listener','html').length){const eventSpecial={handle($event){const $element=$($event.target);const event=$event.originalEvent;const dialog=event.dialog;const dialogArguments=[$event,dialog,$element,event?.settings];$event.handleObj.handler.apply(this,dialogArguments);}};$.event.special['dialog:beforecreate']=eventSpecial;$.event.special['dialog:aftercreate']=eventSpecial;$.event.special['dialog:beforeclose']=eventSpecial;$.event.special['dialog:afterclose']=eventSpecial;const listenDialogEvent=(event)=>{const windowEvents=$._data(window,'events');const isWindowHasDialogListener=windowEvents[event.type];if(isWindowHasDialogListener)Drupal.deprecationError({message:`jQuery event ${event.type} is deprecated in 10.3.0 and is removed from Drupal:12.0.0. See https://www.drupal.org/node/3422670`});};['dialog:beforecreate','dialog:aftercreate','dialog:beforeclose','dialog:afterclose'].forEach((e)=>window.addEventListener(e,listenDialogEvent));window.addEventListener('dialog:beforecreate',(event)=>{const dialog=event.target;$(dialog).on('dialogButtonsChange.dialogDeprecation',(e)=>{if(!e?.originalEvent){Drupal.deprecationError({message:`jQuery event dialogButtonsChange is deprecated
7in 11.2.0 and is removed from Drupal:12.0.0. See https://www.drupal.org/node/3464202`});dialog.dispatchEvent(new CustomEvent('dialogButtonsChange'));}});});window.addEventListener('dialog:beforeclose',(event)=>{const dialog=event.target;$(dialog).off(`dialogButtonsChange.dialogDeprecation`);});}})(jQuery,Drupal,once);; 8class DrupalDialogEvent extends Event{constructor(type,dialog,settings=null){super(`dialog:${type}`,{bubbles:true});this.dialog=dialog;this.settings=settings;}}(function($,Drupal,drupalSettings,bodyScrollLock){drupalSettings.dialog={autoOpen:true,buttonClass:'button',buttonPrimaryClass:'button--primary',close(event){Drupal.dialog(event.target).close();Drupal.detachBehaviors(event.target,null,'unload');}};Drupal.dialog=function(element,options){let undef;const $element=$(element);const domElement=$element.get(0);const dialog={open:false,returnValue:undef};function openDialog(settings){settings=$.extend({},drupalSettings.dialog,options,settings);if(settings.dialogClass)Drupal.deprecationError({message:'dialogClass is deprecated in drupal:10.4.x and will be removed from drupal:12.0.0.'});const event=new DrupalDialogEvent('beforecreate',dialog,settings);domElement.dispatchEvent(event);$element.dialog(event.settings);dialog.open=true;if(event.settings.modal)bodyScrollLock.lock(domElement);domElement.dispatchEvent(new DrupalDialogEvent('aftercreate',dialog,event.settings));}function closeDialog(value){domElement.dispatchEvent(new DrupalDialogEvent('beforeclose',dialog));bodyScrollLock.clearBodyLocks();$element.dialog('close');dialog.returnValue=value;dialog.open=false;domElement.dispatchEvent(new DrupalDialogEvent('afterclose',dialog));}dialog.show=()=>{openDialog({modal:false,uiDialogTitleHeadingLevel:2});};dialog.showModal=()=>{openDialog({modal:true,uiDialogTitleHeadingLevel:1});};dialog.close=closeDialog;return dialog;};})(jQuery,Drupal,drupalSettings,bodyScrollLock);; 9(function($,Drupal,drupalSettings,debounce,displace){drupalSettings.dialog=$.extend({autoResize:true,maxHeight:'95%'},drupalSettings.dialog);function resetPosition(options){const offsets=displace.offsets;const left=offsets.left-offsets.right;const top=offsets.top-offsets.bottom;const leftString=`${(left>0?'+':'-')+Math.abs(Math.round(left/2))}px`;const topString=`${(top>0?'+':'-')+Math.abs(Math.round(top/2))}px`;options.position={my:`center${left!==0?leftString:''} center${top!==0?topString:''}`,of:window};return options;}function resetSize(event){const positionOptions=['width','height','minWidth','minHeight','maxHeight','maxWidth','position'];let adjustedOptions={};let windowHeight=$(window).height();let option;let optionValue;let adjustedValue;for(let n=0;n<positionOptions.length;n++){option=positionOptions[n];optionValue=event.data.settings[option];if(optionValue)if(typeof optionValue==='string'&&optionValue.endsWith('%')&&/height/i.test(option)){windowHeight-=displace.offsets.top+displace.offsets.bottom;adjustedValue=parseInt(0.01*parseInt(optionValue,10)*windowHeight,10);if(option==='height'&&Math.round(event.data.$element.parent().outerHeight())<adjustedValue)adjustedValue='auto';adjustedOptions[option]=adjustedValue;}}if(!event.data.settings.modal)adjustedOptions=resetPosition(adjustedOptions);event.data.$element.dialog('option',adjustedOptions);event.data.$element?.get(0)?.dispatchEvent(new CustomEvent('dialogContentResize',{bubbles:true}));}window.addEventListener('dialog:aftercreate',(e)=>{const autoResize=debounce(resetSize,20);const $element=$(e.target);const {settings}=e;const eventData={settings,$element};if(settings.autoResize===true||settings.autoResize==='true'){const uiDialog=$element.dialog('option',{resizable:false,draggable:false}).dialog('widget');uiDialog[0].style.position='fixed';$(window).on('resize.dialogResize scroll.dialogResize',eventData,autoResize).trigger('resize.dialogResize');$(document).on('drupalViewportOffsetChange.dialogResize',eventData,autoResize);}});window.addEventListener('dialog:beforeclose',()=>{$(window).off('.dialogResize');$(document).off('.dialogResize');});})(jQuery,Drupal,drupalSettings,Drupal.debounce,Drupal.displace);; 10(function($,{tabbable,isTabbable}){$.widget('ui.dialog',$.ui.dialog,{options:{buttonClass:'button',buttonPrimaryClass:'button--primary'},_createButtons(){const opts=this.options;let primaryIndex;let index;const il=opts.buttons.length;for(index=0;index<il;index++)if(opts.buttons[index].primary&&opts.buttons[index].primary===true){primaryIndex=index;delete opts.buttons[index].primary;break;}this._super();const $buttons=this.uiButtonSet.children().addClass(opts.buttonClass);if(typeof primaryIndex!=='undefined')$buttons.eq(index).addClass(opts.buttonPrimaryClass);},_createWrapper(){this.uiDialog=$('<div>
10').hide().attr({tabIndex:-1,role:'dialog','aria-modal':this.options.modal?'true':null}).appendTo(this._appendTo());this._addClass(this.uiDialog,'ui-dialog','ui-widget ui-widget-content ui-front');this._on(this.uiDialog,{keydown(event){if(this.options.closeOnEscape&&!event.isDefaultPrevented()&&event.keyCode&&event.keyCode===$.ui.keyCode.ESCAPE){event.preventDefault();this.close(event);return;}if(event.keyCode!==$.ui.keyCode.TAB||event.isDefaultPrevented())return;const tabbableElements=tabbable(this.uiDialog[0]);if(tabbableElements.length){const first=tabbableElements[0];const last=tabbableElements[tabbableElements.length-1];if((event.target===last||event.target===this.uiDialog[0])&&!event.shiftKey){this._delay(function(){$(first).trigger('focus');});event.preventDefault();}else{if((event.target===first||event.target===this.uiDialog[0])&&event.shiftKey){this._delay(function(){$(last).trigger('focus');});event.preventDefault();}}}},mousedown(event){if(this._moveToTop(event))this._focusTabbable();}});if(!this.element.find('[aria-describedby]').length)this.uiDialog.attr({'aria-describedby':this.element.uniqueId().attr('id')});},_focusTabbable(){let hasFocus=this._focusedElement?this._focusedElement.get(0):null;if(!hasFocus)hasFocus=this.element.find('[autofocus]').get(0);if(!hasFocus){const $elements=[this.element,this.uiDialogButtonPane];for(let i=0;i<$elements.length;i++){const element=$elements[i].get(0);if(element){const elementTabbable=tabbable(element);hasFocus=elementTabbable.length?elementTabbable[0]:null;}if(hasFocus)break;}}if(!hasFocus){const closeBtn=this.uiDialogTitlebarClose.get(0);hasFocus=closeBtn&&isTabbable(closeBtn)?closeBtn:null;}if(!hasFocus)hasFocus=this.uiDialog.get(0);$(hasFocus).eq(0).trigger('focus');}});})(jQuery,window.tabbable);; 11(($)=>{$.widget('ui.dialog',$.ui.dialog,{_allowInteraction(event){if(event.target.classList===undefined)return this._super(event);return event.target.classList.contains('ck')||this._super(event);}});})(jQuery);; 12(function($,Drupal,{focusable}){Drupal.behaviors.dialog={attach(context,settings){if(!document.querySelector('#drupal-modal'))document.body.insertAdjacentHTML('beforeend','<div id="drupal-modal" class="ui-front" style="display:none"></div>');if(context!==document){const dialog=context.closest('.ui-dialog-content');if(dialog){if($(dialog).dialog('option','drupalAutoButtons'))dialog.dispatchEvent(new CustomEvent('dialogButtonsChange'));setTimeout(function(){if(!dialog.contains(document.activeElement)){const autoFocusElement=dialog?.querySelector('[autofocus]');if(autoFocusElement){autoFocusElement.focus();return;}const focusableElements=focusable(dialog);if(focusableElements.length>0){focusableElements[0].focus();return;}const dialogWrapper=dialog.closest('.ui-dialog');const buttonPane=dialogWrapper?.querySelector('.ui-dialog-buttonpane');const focusableButtons=focusable(buttonPane);if(focusableButtons.length>0){focusableButtons[0].focus();return;}const closeButton=dialogWrapper?.querySelector('.ui-dialog-titlebar-close');if(closeButton){closeButton.focus();return;}dialog.focus();}},0);}}const originalClose=settings.dialog.close;settings.dialog.close=function(event,...args){originalClose.apply(settings.dialog,[event,...args]);const $element=$(event.target);const ajaxContainer=$element.data('uiDialog')?$element.data('uiDialog').opener.closest('[data-drupal-ajax-container]'):[];if(ajaxContainer.length&&(document.activeElement===document.body||$(document.activeElement).not(':visible'))){const focusableChildren=focusable(ajaxContainer[0]);if(focusableChildren.length>0)setTimeout(()=>{focusableChildren[0].focus();},0);}$(event.target).remove();};},prepareDialogButtons($dialog){const buttons=[];const buttonSelectors='.form-actions input[type=submit], .form-actions a.button, .form-actions a.action-link';const buttonElements=$dialog[0].querySelectorAll(buttonSelectors);buttonElements.forEach((button)=>{button.style.display='none';buttons.push({text:button.innerHTML||button.getAttribute('value'),class:button.getAttribute('class'),'data-once':button.dataset.once,click(e){if(button.tagName==='A')button.click();else ['mousedown','mouseup','click'].forEach((event)=>button.dispatchEvent(new MouseEvent(event)));e.preventDefault();}});});return buttons;}};Drupal.AjaxCommands.prototype.openDialog=function(ajax,response,status){if(!response.selector)return false;let dialog=document.querySelector(response.selector);if(!dialog){dialog=document.createElement('div');dialog.id=response.selector.replace(/^#/,'');dialog.classList.add('ui-front');document.body.appendChild(dialog);}if(!ajax.wrapper)ajax.wrapper=dialog.id;response.command='insert';response.method='html';ajax.commands.insert(ajax,response,status);response.dialogOptions=response.dialogOptions||{};if(typeof response.dialogOptions.drupalAutoButtons==='undefined')response.dialogOptions.drupalAutoButtons=true;else if(response.dialogOptions.drupalAutoButtons==='false')response.dialogOptions.drupalAutoButtons=false;else response.dialogOptions.drupalAutoButtons=!!response.dialogOptions.drupalAutoButtons;if(!response.dialogOptions.buttons&&response.dialogOptions.drupalAutoButtons)response.dialogOptions.buttons=Drupal.behaviors.dialog.prepareDialogButtons($(dialog));const dialogButtonsChange=()=>{const buttons=Drupal.behaviors.dialog.prepareDialogButtons($(dialog));$(dialog).dialog('option','buttons',buttons);};dialog.addEventListener('dialogButtonsChange',dialogButtonsChange);dialog.addEventListener('dialog:beforeclose',(event)=>{dialog.removeEventListener('dialogButtonsChange',dialogButtonsChange);});const createdDialog=Drupal.dialog(dialog,response.dialogOptions);if(response.dialogOptions.modal)createdDialog.showModal();else createdDialog.show();dialog.parentElement?.querySelector('.ui-dialog-buttonset')?.classList.add('form-actions');};Drupal.AjaxCommands.prototype.closeDialog=function(ajax,response,status){const dialog=document.querySelector(response.selector);if(dialog){Drupal.dialog(dialog).close();if(!response.persist)dialog.remove();}};Drupal.AjaxCommands.prototype.setDialogOption=function(ajax,response,status){const dialog=document.querySelector(response.selector);if(dialog)$(dialog).dialog('option',response.optionName,response.optionValue);};window.addEventListener('dialog:aftercreate',(event)=>{const dialog=event.dialog;const cancelButton=event.target.querySelector('.dialog-cancel');const cancelClick=(e)=>{dialog.close('cancel');e.preventDefault();e.stopPropagation();};cancelButton?.removeEventListener('click',cancelClick);cancelButton?.addEventListener('click',cancelClick);});Drupal.AjaxCommands.prototype.openModalDialogWithUrl=function(ajax,response){const dialogOptions=response.dialogOptions||{};const elementSettings={progress:{type:'throbber'},dialogType:'modal',dialog:dialogOptions,url:response.url,httpMethod:'GET'};Drupal.ajax(elementSettings).execute();};})(jQuery,Drupal,window.tabbable);; 13!function(){var e,t={980:function(e,t,i){"use strict";i.r(t),i.d(t,{afterMain:function(){return k;},afterRead:function(){return b;},afterWrite:function(){return S;},applyStyles:function(){return q;},arrow:function(){return Z;},auto:function(){return a;},basePlacements:function(){return l;},beforeMain:function(){return y;},beforeRead:function(){return v;},beforeWrite:function(){return E;},bottom:function(){return s;},clippingParents:function(){return u;},computeStyles:function(){return ne;},createPopper:function(){return Pe;},createPopperBase:function(){return qe;},createPopperLite:function(){return je;},detectOverflow:function(){return be;},end:function(){return d;},eventListeners:function(){return oe;},flip:function(){return ye;},hide:function(){return Ee;},left:function(){return r;},main:function(){return w;},modifierPhases:function(){return L;},offset:function(){return Ae;},placements:function(){return m;},popper:function(){return h;},popperGenerator:function(){return De;},popperOffsets:function(){return Se;},preventOverflow:function(){return Le;},read:function(){return _;},reference:function(){return p;},right:function(){return o;},start:function(){return c;},top:function(){return n;},variationPlacements:function(){return g;},viewport:function(){return f;},write:function(){return A;}});var n="top",s="bottom",o="right",r="left",a="auto",l=[n,s,o,r],c="start",d="end",u="clippingParents",f="viewport",h="popper",p="reference",g=l.reduce((function(e,t){return e.concat([t+"-"+c,t+"-"+d]);}),[]),m=[].concat(l,[a]).reduce((function(e,t){return e.concat([t,t+"-"+c,t+"-"+d]);}),[]),v="beforeRead",_="read",b="afterRead",y="beforeMain",w="main",k="afterMain",E="beforeWrite",A="write",S="afterWrite",L=[v,_,b,y,w,k,E,A,S];function C(e){return e?(e.nodeName||"").toLowerCase():null;}function T(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window;}return e;}function x(e){return e instanceof T(e).Element||e instanceof Element;}function O(e){return e instanceof T(e).HTMLElement||e instanceof HTMLElement;}function D(e){return "undefined"!=typeof ShadowRoot&&(e instanceof T(e).ShadowRoot||e instanceof ShadowRoot);}var q={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;
13Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},s=t.elements[e];O(s)&&C(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(e){var t=n[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t);})));}));},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],s=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e;}),{});O(n)&&C(n)&&(Object.assign(n.style,o),Object.keys(s).forEach((function(e){n.removeAttribute(e);})));}));};},requires:["computeStyles"]};function P(e){return e.split("-")[0];}var j=Math.max,N=Math.min,M=Math.round;function $(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version;})).join(" "):navigator.userAgent;}function I(){return !/^((?!chrome|android).)*safari/i.test($());}function H(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),s=1,o=1;t&&O(e)&&(s=e.offsetWidth>0&&M(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&M(n.height)/e.offsetHeight||1);var r=(x(e)?T(e):window).visualViewport,a=!I()&&i,l=(n.left+(a&&r?r.offsetLeft:0))/s,c=(n.top+(a&&r?r.offsetTop:0))/o,d=n.width/s,u=n.height/o;return {width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c};}function F(e){var t=H(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n};}function R(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return !0;if(i&&D(i)){var n=t;do{if(n&&e.isSameNode(n))return !0;n=n.parentNode||n.host;}while(n);}return !1;}function B(e){return T(e).getComputedStyle(e);}function W(e){return ["table","td","th"].indexOf(C(e))>=0;}function z(e){return ((x(e)?e.ownerDocument:e.document)||window.document).documentElement;}function V(e){return "html"===C(e)?e:e.assignedSlot||e.parentNode||(D(e)?e.host:null)||z(e);}function Q(e){return O(e)&&"fixed"!==B(e).position?e.offsetParent:null;}function Y(e){for(var t=T(e),i=Q(e);i&&W(i)&&"static"===B(i).position;)i=Q(i);return i&&("html"===C(i)||"body"===C(i)&&"static"===B(i).position)?t:i||function(e){var t=/firefox/i.test($());if(/Trident/i.test($())&&O(e)&&"fixed"===B(e).position)return null;var i=V(e);for(D(i)&&(i=i.host);O(i)&&["html","body"].indexOf(C(i))<0;){var n=B(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode;}return null;}(e)||t;}function U(e){return ["top","bottom"].indexOf(e)>=0?"x":"y";}function K(e,t,i){return j(e,N(t,i));}function X(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e);}function J(e,t){return t.reduce((function(t,i){return t[i]=e,t;}),{});}var G=function(e,t){return X("number"!=typeof (e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:J(e,l));};var Z={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,a=e.name,l=e.options,c=i.elements.arrow,d=i.modifiersData.popperOffsets,u=P(i.placement),f=U(u),h=[r,o].indexOf(u)>=0?"height":"width";if(c&&d){var p=G(l.padding,i),g=F(c),m="y"===f?n:r,v="y"===f?s:o,_=i.rects.reference[h]+i.rects.reference[f]-d[f]-i.rects.popper[h],b=d[f]-i.rects.reference[f],y=Y(c),w=y?"y"===f?y.clientHeight||0:y.clientWidth||0:0,k=_/2-b/2,E=p[m],A=w-g[h]-p[v],S=w/2-g[h]/2+k,L=K(E,S,A),C=f;i.modifiersData[a]=((t={})[C]=L,t.centerOffset=L-S,t);}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&R(t.elements.popper,n)&&(t.elements.arrow=n);},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ee(e){return e.split("-")[1];}var te={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ie(e){var t,i=e.popper,a=e.popperRect,l=e.placement,c=e.variation,u=e.offsets,f=e.position,h=e.gpuAcceleration,p=e.adaptive,g=e.roundOffsets,m=e.isFixed,v=u.x,_=void 0===v?0:v,b=u.y,y=void 0===b?0:b,w="function"==typeof g?g({x:_,y}):{x:_,y};_=w.x,y=w.y;var k=u.hasOwnProperty("x"),E=u.hasOwnProperty("y"),A=r,S=n,L=window;if(p){var C=Y(i),x="clientHeight",O="clientWidth";if(C===T(i)&&"static"!==B(C=z(i)).position&&"absolute"===f&&(x="scrollHeight",O="scrollWidth"),l===n||(l===r||l===o)&&c===d)S=s,y-=(m&&C===L&&L.visualVie
13wport?L.visualViewport.height:C[x])-a.height,y*=h?1:-1;if(l===r||(l===n||l===s)&&c===d)A=o,_-=(m&&C===L&&L.visualViewport?L.visualViewport.width:C[O])-a.width,_*=h?1:-1;}var D,q=Object.assign({position:f},p&&te),P=!0===g?function(e){var t=e.x,i=e.y,n=window.devicePixelRatio||1;return {x:M(t*n)/n||0,y:M(i*n)/n||0};}({x:_,y}):{x:_,y};return _=P.x,y=P.y,h?Object.assign({},q,((D={})[S]=E?"0":"",D[A]=k?"0":"",D.transform=(L.devicePixelRatio||1)<=1?"translate("+_+"px, "+y+"px)":"translate3d("+_+"px, "+y+"px, 0)",D)):Object.assign({},q,((t={})[S]=E?y+"px":"",t[A]=k?_+"px":"",t.transform="",t));}var ne={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:P(t.placement),variation:ee(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ie(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ie(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement});},data:{}},se={passive:!0};var oe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=T(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",i.update,se);})),a&&l.addEventListener("resize",i.update,se),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",i.update,se);})),a&&l.removeEventListener("resize",i.update,se);};},data:{}},re={left:"right",right:"left",bottom:"top",top:"bottom"};function ae(e){return e.replace(/left|right|bottom|top/g,(function(e){return re[e];}));}var le={start:"end",end:"start"};function ce(e){return e.replace(/start|end/g,(function(e){return le[e];}));}function de(e){var t=T(e);return {scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset};}function ue(e){return H(z(e)).left+de(e).scrollLeft;}function fe(e){var t=B(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return /auto|scroll|overlay|hidden/.test(i+s+n);}function he(e){return ["html","body","#document"].indexOf(C(e))>=0?e.ownerDocument.body:O(e)&&fe(e)?e:he(V(e));}function pe(e,t){var i;void 0===t&&(t=[]);var n=he(e),s=n===(null==(i=e.ownerDocument)?void 0:i.body),o=T(n),r=s?[o].concat(o.visualViewport||[],fe(n)?n:[]):n,a=t.concat(r);return s?a:a.concat(pe(V(r)));}function ge(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height});}function me(e,t,i){return t===f?ge(function(e,t){var i=T(e),n=z(e),s=i.visualViewport,o=n.clientWidth,r=n.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=I();(c||!c&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop);}return {width:o,height:r,x:a+ue(e),y:l};}(e,i)):x(t)?function(e,t){var i=H(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i;}(t,i):ge(function(e){var t,i=z(e),n=de(e),s=null==(t=e.ownerDocument)?void 0:t.body,o=j(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=j(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+ue(e),l=-n.scrollTop;return "rtl"===B(s||i).direction&&(a+=j(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l};}(z(e)));}function ve(e,t,i,n){var s="clippingParents"===t?function(e){var t=pe(V(e)),i=["absolute","fixed"].indexOf(B(e).position)>=0&&O(e)?Y(e):e;return x(i)?t.filter((function(e){return x(e)&&R(e,i)&&"body"!==C(e);})):[];}(e):[].concat(t),o=[].concat(s,[i]),r=o[0],a=o.reduce((function(t,i){var s=me(e,i,n);return t.top=j(s.top,t.top),t.right=N(s.right,t.right),t.bottom=N(s.bottom,t.bottom),t.left=j(s.left,t.left),t;}),me(e,r,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a;}function _e(e){var t,i=e.reference,a=e.element,l=e.placement,u=l?P(l):null,f=l?ee(l):null,h=i.x+i.width/2-a.width/2,p=i.y+i.height/2-a.height/2;switch(u){case n:t={x:h,y:i.y-a.height};break;case s:t={x:h,y:i.y+i.height};break;case o:t={x:i.x+i.width,y:p};break;case r:t={x:i.x-a.width,y:p};break;default:t={x:i.x,y:i.y};}var g=u?U(u):null;if(null!=g){var m="y"===g?"height":"width";switch(f){case c:t[g]=t[g]-(i[m]/2-a[m]/2);break;case d:t[g]=t[g]+(i[m]/2-a[m]/2);}}return t;}function be(e,t){void 0===t&&(t={});var i=t,r=i.placement,a=void 0===r?e.placement:r,c=i.strategy,d=void 0===c?e.
13strategy:c,g=i.boundary,m=void 0===g?u:g,v=i.rootBoundary,_=void 0===v?f:v,b=i.elementContext,y=void 0===b?h:b,w=i.altBoundary,k=void 0!==w&&w,E=i.padding,A=void 0===E?0:E,S=X("number"!=typeof A?A:J(A,l)),L=y===h?p:h,C=e.rects.popper,T=e.elements[k?L:y],O=ve(x(T)?T:T.contextElement||z(e.elements.popper),m,_,d),D=H(e.elements.reference),q=_e({reference:D,element:C,strategy:"absolute",placement:a}),P=ge(Object.assign({},C,q)),j=y===h?P:D,N={top:O.top-j.top+S.top,bottom:j.bottom-O.bottom+S.bottom,left:O.left-j.left+S.left,right:j.right-O.right+S.right},M=e.modifiersData.offset;if(y===h&&M){var $=M[a];Object.keys(N).forEach((function(e){var t=[o,s].indexOf(e)>=0?1:-1,i=[n,s].indexOf(e)>=0?"y":"x";N[e]+=$[i]*t;}));}return N;}var ye={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,d=e.name;if(!t.modifiersData[d]._skip){for(var u=i.mainAxis,f=void 0===u||u,h=i.altAxis,p=void 0===h||h,v=i.fallbackPlacements,_=i.padding,b=i.boundary,y=i.rootBoundary,w=i.altBoundary,k=i.flipVariations,E=void 0===k||k,A=i.allowedAutoPlacements,S=t.options.placement,L=P(S),C=v||(L===S||!E?[ae(S)]:function(e){if(P(e)===a)return [];var t=ae(e);return [ce(e),t,ce(t)];}(S)),T=[S].concat(C).reduce((function(e,i){return e.concat(P(i)===a?function(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,c=i.allowedAutoPlacements,d=void 0===c?m:c,u=ee(n),f=u?a?g:g.filter((function(e){return ee(e)===u;})):l,h=f.filter((function(e){return d.indexOf(e)>=0;}));0===h.length&&(h=f);var p=h.reduce((function(t,i){return t[i]=be(e,{placement:i,boundary:s,rootBoundary:o,padding:r})[P(i)],t;}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t];}));}(t,{placement:i,boundary:b,rootBoundary:y,padding:_,flipVariations:E,allowedAutoPlacements:A}):i);}),[]),x=t.rects.reference,O=t.rects.popper,D=new Map(),q=!0,j=T[0],N=0;N<T.length;N++){var M=T[N],$=P(M),I=ee(M)===c,H=[n,s].indexOf($)>=0,F=H?"width":"height",R=be(t,{placement:M,boundary:b,rootBoundary:y,altBoundary:w,padding:_}),B=H?I?o:r:I?s:n;x[F]>O[F]&&(B=ae(B));var W=ae(B),z=[];if(f&&z.push(R[$]<=0),p&&z.push(R[B]<=0,R[W]<=0),z.every((function(e){return e;}))){j=M,q=!1;break;}D.set(M,z);}if(q)for(var V=function(e){var t=T.find((function(t){var i=D.get(t);if(i)return i.slice(0,e).every((function(e){return e;}));}));if(t)return j=t,"break";},Q=E?3:1;Q>0;Q--)if("break"===V(Q))break;t.placement!==j&&(t.modifiersData[d]._skip=!0,t.placement=j,t.reset=!0);}},requiresIfExists:["offset"],data:{_skip:!1}};function we(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x};}function ke(e){return [n,o,s,r].some((function(t){return e[t]>=0;}));}var Ee={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=be(t,{elementContext:"reference"}),a=be(t,{altBoundary:!0}),l=we(r,n),c=we(a,s,o),d=ke(l),u=ke(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u});}};var Ae={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,s=e.name,a=i.offset,l=void 0===a?[0,0]:a,c=m.reduce((function(e,i){return e[i]=function(e,t,i){var s=P(e),a=[r,n].indexOf(s)>=0?-1:1,l="function"==typeof i?i(Object.assign({},t,{placement:e})):i,c=l[0],d=l[1];return c=c||0,d=(d||0)*a,[r,o].indexOf(s)>=0?{x:d,y:c}:{x:c,y:d};}(i,t.rects,l),e;}),{}),d=c[t.placement],u=d.x,f=d.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=f),t.modifiersData[s]=c;}};var Se={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=_e({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement});},data:{}};var Le={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,a=e.name,l=i.mainAxis,d=void 0===l||l,u=i.altAxis,f=void 0!==u&&u,h=i.boundary,p=i.rootBoundary,g=i.altBoundary,m=i.padding,v=i.tether,_=void 0===v||v,b=i.tetherOffset,y=void 0===b?0:b,w=be(t,{boundary:h,rootBoundary:p,padding:m,altBoundary:g}),k=P(t.placement),E=ee(t.placement),A=!E,S=U(k),L="x"===S?"y":"x",C=t.modifiersData.popperOffsets,T=t.rects.reference,x=t.rects.popper,O="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,D="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),q=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(C){if(d){var $,I="y"===S?n:r,H="y"===S?s:o,R="y"===S?"height":"width",B=C[S],W=B+w[I],z=B-w[H],V=_?-x[R]/2:0,Q=E===c?T[R]:x[R],X=E===c?-x[R]:-T[R],J=t.elements.arrow,G=_&&J?F(J):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},te=Z[I],ie=Z[H],ne=K(0,T[R],G[R]),se=A?T[R]/2-V-ne-te-D.mainAxis:Q-ne-te-D.mainAxis,oe=A?-T[R]/2+V+ne+ie+D.mainAxis:X+ne+ie+D.mainAxis,re=t.elements.arrow&&Y(t.elements.arrow),ae=re?"
13y"===S?re.clientTop||0:re.clientLeft||0:0,le=null!=($=null==q?void 0:q[S])?$:0,ce=B+oe-le,de=K(_?N(W,B+se-le-ae):W,B,_?j(z,ce):z);C[S]=de,M[S]=de-B;}if(f){var ue,fe="x"===S?n:r,he="x"===S?s:o,pe=C[L],ge="y"===L?"height":"width",me=pe+w[fe],ve=pe-w[he],_e=-1!==[n,r].indexOf(k),ye=null!=(ue=null==q?void 0:q[L])?ue:0,we=_e?me:pe-T[ge]-x[ge]-ye+D.altAxis,ke=_e?pe+T[ge]+x[ge]-ye-D.altAxis:ve,Ee=_&&_e?function(e,t,i){var n=K(e,t,i);return n>i?i:n;}(we,pe,ke):K(_?we:me,pe,_?ke:ve);C[L]=Ee,M[L]=Ee-pe;}t.modifiersData[a]=M;}},requiresIfExists:["offset"]};function Ce(e,t,i){void 0===i&&(i=!1);var n,s,o=O(t),r=O(t)&&function(e){var t=e.getBoundingClientRect(),i=M(t.width)/e.offsetWidth||1,n=M(t.height)/e.offsetHeight||1;return 1!==i||1!==n;}(t),a=z(t),l=H(e,r,i),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return (o||!o&&!i)&&(("body"!==C(t)||fe(a))&&(c=(n=t)!==T(n)&&O(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:de(n)),O(t)?((d=H(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=ue(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height};}function Te(e){var t=new Map(),i=new Set(),n=[];function s(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var n=t.get(e);n&&s(n);}})),n.push(e);}return e.forEach((function(e){t.set(e.name,e);})),e.forEach((function(e){i.has(e.name)||s(e);})),n;}var xe={placement:"bottom",modifiers:[],strategy:"absolute"};function Oe(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return !t.some((function(e){return !(e&&"function"==typeof e.getBoundingClientRect);}));}function De(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,s=t.defaultOptions,o=void 0===s?xe:s;return function(e,t,i){void 0===i&&(i=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},xe,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(i){var s="function"==typeof i?i(a.options):i;u(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:x(e)?pe(e):e.contextElement?pe(e.contextElement):[],popper:pe(t)};var r=function(e){var t=Te(e);return L.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i;})));}),[]);}(function(e){var t=e.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e;}),{});return Object.keys(t).map((function(e){return t[e];}));}([].concat(n,a.options.modifiers)));return a.orderedModifiers=r.filter((function(e){return e.enabled;})),a.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,s=e.effect;if("function"==typeof s){var o=s({state:a,name:t,instance:d,options:n}),r=function(){};l.push(o||r);}})),d.update();},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,i=e.popper;if(Oe(t,i)){a.rects={reference:Ce(t,Y(i),"fixed"===a.options.strategy),popper:F(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data);}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var s=a.orderedModifiers[n],o=s.fn,r=s.options,l=void 0===r?{}:r,u=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:u,instance:d})||a);}else a.reset=!1,n=-1;}}},update:(s=function(){return new Promise((function(e){d.forceUpdate(),e(a);}));},function(){return r||(r=new Promise((function(e){Promise.resolve().then((function(){r=void 0,e(s());}));}))),r;}),destroy:function(){u(),c=!0;}};if(!Oe(e,t))return d;function u(){l.forEach((function(e){return e();})),l=[];}return d.setOptions(i).then((function(e){!c&&i.onFirstUpdate&&i.onFirstUpdate(e);})),d;};}var qe=De(),Pe=De({defaultModifiers:[oe,Se,ne,q,Ae,ye,Le,Z,Ee]}),je=De({defaultModifiers:[oe,Se,ne,q]});},511:function(e,t,i){e.exports=function(e,t,i,n){"use strict";const s=(e)=>e&&"object"==typeof e&&"default" in e?e:{default:e},o=s(t),r=s(i),a="alert",l=".bs.alert",c=`close${l}`,d=`closed${l}`,u="fade",f="show";class h extends r.default{static get NAME(){return a;}close(){if(o.default.trigger(this._element,c).defaultPrevented)return;this._element.classList.remove(f);const e=this._element.classList.contains(u);this._queueCallback((()=>this._destroyElement()),this._element,e);}_destroyElement(){this._element.remove(),o.default.trigger(this._element,d),this.dispose();}static jQueryInterface(e){return this.each((function(){const t=h.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method n
13amed "${e}"`);t[e](this);}}));}}return n.enableDismissTrigger(h,"close"),e.defineJQueryPlugin(h),h;}(i(72),i(286),i(695),i(127));},695:function(e,t,i){e.exports=function(e,t,i,n){"use strict";const s=(e)=>e&&"object"==typeof e&&"default" in e?e:{default:e},o=s(e),r=s(i),a=s(n),l="5.2.3";class c extends a.default{constructor(e,i){super(),(e=t.getElement(e))&&(this._element=e,this._config=this._getConfig(i),o.default.set(this._element,this.constructor.DATA_KEY,this));}dispose(){o.default.remove(this._element,this.constructor.DATA_KEY),r.default.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null;}_queueCallback(e,i,n=!0){t.executeAfterTransition(e,i,n);}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e;}static getInstance(e){return o.default.get(t.getElement(e),this.DATA_KEY);}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null);}static get VERSION(){return l;}static get DATA_KEY(){return `bs.${this.NAME}`;}static get EVENT_KEY(){return `.${this.DATA_KEY}`;}static eventName(e){return `${e}${this.EVENT_KEY}`;}}return c;}(i(493),i(72),i(286),i(705));},331:function(e,t,i){e.exports=function(e,t,i){"use strict";const n=(e)=>e&&"object"==typeof e&&"default" in e?e:{default:e},s=n(t),o=n(i),r="button",a="active",l='[data-bs-toggle="button"]',c="click.bs.button.data-api";class d extends o.default{static get NAME(){return r;}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(a));}static jQueryInterface(e){return this.each((function(){const t=d.getOrCreateInstance(this);"toggle"===e&&t[e]();}));}}return s.default.on(document,c,l,((e)=>{e.preventDefault();const t=e.target.closest(l);d.getOrCreateInstance(t).toggle();})),e.defineJQueryPlugin(d),d;}(i(72),i(286),i(695));},48:function(e,t,i){e.exports=function(e,t,i,n,s,o){"use strict";const r=(e)=>e&&"object"==typeof e&&"default" in e?e:{default:e},a=r(t),l=r(i),c=r(n),d=r(s),u=r(o),f="carousel",h=".bs.carousel",p=".data-api",g=500,m="next",v="prev",_="left",b="right",y=`slide${h}`,w=`slid${h}`,k=`keydown${h}`,E=`mouseenter${h}`,A=`mouseleave${h}`,S=`dragstart${h}`,L=`load${h}${p}`,C=`click${h}${p}`,T="carousel",x="active",O="slide",D="carousel-item-end",q="carousel-item-start",P="carousel-item-next",j="carousel-item-prev",N=".active",M=".carousel-item",$=N+M,I=".carousel-item img",H=".carousel-indicators",F="[data-bs-slide], [data-bs-slide-to]",R='[data-bs-ride="carousel"]',B={ArrowLeft:b,ArrowRight:_},W={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},z={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class V extends u.default{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=c.default.findOne(H,this._element),this._addEventListeners(),this._config.ride===T&&this.cycle();}static get Default(){return W;}static get DefaultType(){return z;}static get NAME(){return f;}next(){this._slide(m);}nextWhenVisible(){!document.hidden&&e.isVisible(this._element)&&this.next();}prev(){this._slide(v);}pause(){this._isSliding&&e.triggerTransitionEnd(this._element),this._clearInterval();}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval);}_maybeEnableCycle(){this._config.ride&&(this._isSliding?a.default.one(this._element,w,(()=>this.cycle())):this.cycle());}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void a.default.one(this._element,w,(()=>this.to(e)));const i=this._getItemIndex(this._getActive());if(i===e)return;const n=e>i?m:v;this._slide(n,t[e]);}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose();}_configAfterMerge(e){return e.defaultInterval=e.interval,e;}_addEventListeners(){this._config.keyboard&&a.default.on(this._element,k,((e)=>this._keydown(e))),"hover"===this._config.pause&&(a.default.on(this._element,E,(()=>this.pause())),a.default.on(this._element,A,(()=>this._maybeEnableCycle()))),this._config.touch&&d.default.isSupported()&&this._addTouchEventListeners();}_addTouchEventListeners(){for(const e of c.default.find(I,this._element))a.default.on(e,S,((e)=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(_)),rightCallback:()=>this._slide(this._directionToOrder(b)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),g+this._config.interval));}};this._swipeHelper=new d.default(this._element,e);}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=B[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)));}_getItemIndex(e){return this._getItems().indexOf(e);}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=c.default.findOne(N,this._indicatorsElement);t.classList.remove(x),t.removeAttribute("aria-current");const i=c.default.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);i&&(i.classList.add(x),i.setAttribute("aria-current","true"));}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval;}_slide(t,i=null){if(this._isSliding)return;const n=this._getActive(),s=t===m,o=i||e.getNextActiveElement(this._getItems(),n,s,this._config.wrap);if(o===n)return;const r=this._getItemIndex(o),l=(e)=>a.default.trigger(this._element,e,{relatedTarget:o,direction:this._orderToDirection(t),from:this._getItemIndex(n),to:r});if(l(y).defaultPrevented)return;if(!n||!o)return;const c=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=o;const d=s?q:D,u=s?P:j;o.classList.add(u),e.reflow(o),n.classList.add(d),o.classList.add(d);const f=()=>{o.classList.remove(d,u),o.classList.add(x),n.classList.remove(x,u,d),this._isSliding=!1,l(w);};this._queueCallback(f,n,this._isAnimated()),c&&this.cycle();}_isAnimated(){return this._element.classList.contains(O);}_getActive(){return c.default.findOne($,this._element);}_getItems(){return c.default.find(M,this._element);}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null);}_directionToOrder(t){return e.isRTL()?t===_?v:m:t===_?m:v;}_orderToDirection(t){return e.isRTL()?t===v?_:b:t===v?b:_;}static jQueryInterface(e){return this.each((function(){const t=V.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method n
13amed "${e}"`);t[e]();}}else t.to(e);}));}}return a.default.on(document,C,F,(function(t){const i=e.getElementFromSelector(this);if(!i||!i.classList.contains(T))return;t.preventDefault();const n=V.getOrCreateInstance(i),s=this.getAttribute("data-bs-slide-to");return s?(n.to(s),void n._maybeEnableCycle()):"next"===l.default.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle());})),a.default.on(window,L,(()=>{const e=c.default.find(R);for(const t of e)V.getOrCreateInstance(t);})),e.defineJQueryPlugin(V),V;}(i(72),i(286),i(175),i(737),i(814),i(695));},863:function(e,t,i){e.exports=function(e,t,i,n){"use strict";const s=(e)=>e&&"object"==typeof e&&"default" in e?e:{default:e},o=s(t),r=s(i),a=s(n),l="collapse",c=".bs.collapse",d=`show${c}`,u=`shown${c}`,f=`hide${c}`,h=`hidden${c}`,p=`click${c}.data-api`,g="show",m="collapse",v="collapsing",_="collapsed",b=`:scope .${m} .${m}`,y="collapse-horizontal",w="width",k="height",E=".collapse.show, .collapse.collapsing",A='[data-bs-toggle="collapse"]',S={parent:null,toggle:!0},L={parent:"(null|element)",toggle:"boolean"};class C extends a.default{constructor(t,i){super(t,i),this._isTransitioning=!1,this._triggerArray=[];const n=r.default.find(A);for(const t of n){const i=e.getSelectorFromElement(t),n=r.default.find(i).filter(((e)=>e===this._element));null!==i&&n.length&&this._triggerArray.push(t);}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle();}static get Default(){return S;}static get DefaultType(){return L;}static get NAME(){return l;}toggle(){this._isShown()?this.hide():this.show();}show(){if(this._isTransitioning||this._isShown())return;let e=[];
13if(this._config.parent&&(e=this._getFirstLevelChildren(E).filter(((e)=>e!==this._element)).map(((e)=>C.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(o.default.trigger(this._element,d).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(m),this._element.classList.add(v),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(v),this._element.classList.add(m,g),this._element.style[t]="",o.default.trigger(this._element,u);},n=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[t]=`${this._element[n]}px`;}hide(){if(this._isTransitioning||!this._isShown())return;if(o.default.trigger(this._element,f).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,e.reflow(this._element),this._element.classList.add(v),this._element.classList.remove(m,g);for(const t of this._triggerArray){const i=e.getElementFromSelector(t);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([t],!1);}this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(v),this._element.classList.add(m),o.default.trigger(this._element,h);};this._element.style[t]="",this._queueCallback(i,this._element,!0);}_isShown(e=this._element){return e.classList.contains(g);}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=e.getElement(t.parent),t;}_getDimension(){return this._element.classList.contains(y)?w:k;}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(A);for(const i of t){const t=e.getElementFromSelector(i);t&&this._addAriaAndCollapsedClass([i],this._isShown(t));}}_getFirstLevelChildren(e){const t=r.default.find(b,this._config.parent);return r.default.find(e,this._config.parent).filter(((e)=>!t.includes(e)));}_addAriaAndCollapsedClass(e,t){if(e.length){for(const i of e)i.classList.toggle(_,!t),i.setAttribute("aria-expanded",t);}}static jQueryInterface(e){const t={};return "string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const i=C.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]();}}));}}return o.default.on(document,p,A,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const i=e.getSelectorFromElement(this),n=r.default.find(i);for(const e of n)C.getOrCreateInstance(e,{toggle:!1}).toggle();})),e.defineJQueryPlugin(C),C;}(i(72),i(286),i(737),i(695));},493:function(e){e.exports=function(){"use strict";const e=new Map();return {set(t,i,n){e.has(t)||e.set(t,new Map());const s=e.get(t);s.has(i)||0===s.size?s.set(i,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`);},get(t,i){return e.has(t)&&e.get(t).get(i)||null;},remove(t,i){if(!e.has(t))return;const n=e.get(t);n.delete(i),0===n.size&&e.delete(t);}};}();},286:function(e,t,i){e.exports=function(e){"use strict";const t=/[^.]*(?=\..*)\.|.*/,i=/\..*/,n=/::\d+$/,s={};let o=1;
13const r={mouseenter:"mouseover",mouseleave:"mouseout"},a=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function l(e,t){return t&&`${t}::${o++}`||e.uidEvent||o++;}function c(e){const t=l(e);return e.uidEvent=t,s[t]=s[t]||{},s[t];}function d(e,t){return function i(n){return b(n,{delegateTarget:e}),i.oneOff&&_.off(e,n.type,t),t.apply(e,[n]);};}function u(e,t,i){return function n(s){const o=e.querySelectorAll(t);for(let {target:r}=s;r&&r!==this;r=r.parentNode){for(const a of o)if(a===r)return b(s,{delegateTarget:r}),n.oneOff&&_.off(e,s.type,t,i),i.apply(r,[s]);}};}function f(e,t,i=null){return Object.values(e).find(((e)=>e.callable===t&&e.delegationSelector===i));}function h(e,t,i){const n="string"==typeof t,s=n?i:t||i;let o=v(e);return a.has(o)||(o=e),[n,s,o];}function p(e,i,n,s,o){if("string"!=typeof i||!e)return;let [a,p,g]=h(i,n,s);if(i in r){const e=(e)=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t);};p=e(p);}const m=c(e),v=m[g]||(m[g]={}),_=f(v,p,a?n:null);if(_)return void (_.oneOff=_.oneOff&&o);const b=l(p,i.replace(t,"")),y=a?u(e,n,p):d(e,p);y.delegationSelector=a?n:null,y.callable=p,y.oneOff=o,y.uidEvent=b,v[b]=y,e.addEventListener(g,y,a);}function g(e,t,i,n,s){const o=f(t[i],n,s);o&&(e.removeEventListener(i,o,Boolean(s)),delete t[i][o.uidEvent]);}function m(e,t,i,n){const s=t[i]||{};for(const o of Object.keys(s))if(o.includes(n)){const n=s[o];g(e,t,i,n.callable,n.delegationSelector);}}function v(e){return e=e.replace(i,""),r[e]||e;}const _={on(e,t,i,n){p(e,t,i,n,!1);},one(e,t,i,n){p(e,t,i,n,!0);},off(e,t,i,s){if("string"!=typeof t||!e)return;const [o,r,a]=h(t,i,s),l=a!==t,d=c(e),u=d[a]||{},f=t.startsWith(".");if(void 0===r){if(f){for(const i of Object.keys(d))m(e,d,i,t.slice(1));}for(const i of Object.keys(u)){const s=i.replace(n,"");if(!l||t.includes(s)){const t=u[i];g(e,d,a,t.callable,t.delegationSelector);}}}else{if(!Object.keys(u).length)return;g(e,d,a,r,o?i:null);}},trigger(t,i,n){if("string"!=typeof i||!t)return null;const s=e.getjQuery();let o=null,r=!0,a=!0,l=!1;i!==v(i)&&s&&(o=s.Event(i,n),s(t).trigger(o),r=!o.isPropagationStopped(),a=!o.isImmediatePropagationStopped(),l=o.isDefaultPrevented());let c=new Event(i,{bubbles:r,cancelable:!0});return c=b(c,n),l&&c.preventDefault(),a&&t.dispatchEvent(c),c.defaultPrevented&&o&&o.preventDefault(),c;}};function b(e,t){for(const [i,n] of Object.entries(t||{}))try{e[i]=n;}catch(t){Object.defineProperty(e,i,{configurable:!0,get(){return n;}});}return e;}return _;}(i(72));},175:function(e){e.exports=function(){"use strict";function e(e){if("true"===e)return !0;if("false"===e)return !1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e));}catch(t){return e;}}function t(e){return e.replace(/[A-Z]/g,((e)=>`-${e.toLowerCase()}`));}return {setDataAttribute(e,i,n){e.setAttribute(`data-bs-${t(i)}`,n);},removeDataAttribute(e,i){e.removeAttribute(`data-bs-${t(i)}`);},getDataAttributes(t){if(!t)return {};const i={},n=Object.keys(t.dataset).filter(((e)=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const s of n){let n=s.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),i[n]=e(t.dataset[s]);}return i;},getDataAttribute(i,n){return e(i.getAttribute(`data-bs-${t(n)}`));}};}();},737:function(e,t,i){e.exports=function(e){"use strict";return {find(e,t=document.documentElement){return [].concat(...Element.prototype.querySelectorAll.call(t,e));},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e);},children(e,t){return [].concat(...e.children).filter(((e)=>e.matches(t)));},parents(e,t){const i=[];let n=e.parentNode.closest(t);for(;n;)i.push(n),n=n.parentNode.closest(t);return i;},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return [i];i=i.previousElementSibling;}return [];},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return [i];i=i.nextElementSibling;}return [];},focusableChildren(t){const i=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(((e)=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(i,t).filter(((t)=>!e.isDisabled(t)&&e.isVisible(t)));}};}(i(72));},872:function(e,t,i){e.exports=function(e,t,i,n,s,o){"use strict";const r=(e)=>e&&"object"==typeof e&&"default" in e?e:{default:e};
13function a(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if("default"!==i){const n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:()=>e[i]});}}return t.default=e,Object.freeze(t);}const l=a(e),c=r(i),d=r(n),u=r(s),f=r(o),h="dropdown",p=".bs.dropdown",g=".data-api",m="Escape",v="Tab",_="ArrowUp",b="ArrowDown",y=2,w=`hide${p}`,k=`hidden${p}`,E=`show${p}`,A=`shown${p}`,S=`click${p}${g}`,L=`keydown${p}${g}`,C=`keyup${p}${g}`,T="show",x="dropup",O="dropend",D="dropstart",q="dropup-center",P="dropdown-center",j='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',N=`${j}.${T}`,M=".dropdown-menu",$=".navbar",I=".navbar-nav",H=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",F=t.isRTL()?"top-end":"top-start",R=t.isRTL()?"top-start":"top-end",B=t.isRTL()?"bottom-end":"bottom-start",W=t.isRTL()?"bottom-start":"bottom-end",z=t.isRTL()?"left-start":"right-start",V=t.isRTL()?"right-start":"left-start",Q="top",Y="bottom",U={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},K={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class X extends f.default{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=u.default.next(this._element,M)[0]||u.default.prev(this._element,M)[0]||u.default.findOne(M,this._parent),this._inNavbar=this._detectNavbar();}static get Default(){return U;}static get DefaultType(){return K;}static get NAME(){return h;}toggle(){return this._isShown()?this.hide():this.show();}show(){if(t.isDisabled(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!c.default.trigger(this._element,E,e).defaultPrevented){if(this._createPopper(),"ontouchstart" in document.documentElement&&!this._parent.closest(I)){for(const e of [].concat(...document.body.children))c.default.on(e,"mouseover",t.noop);}this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(T),this._element.classList.add(T),c.default.trigger(this._element,A,e);}}hide(){if(t.isDisabled(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e);}dispose(){this._popper&&this._popper.destroy(),super.dispose();}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update();}_completeHide(e){if(!c.default.trigger(this._element,w,e).defaultPrevented){if("ontouchstart" in document.documentElement){for(const e of [].concat(...document.body.children))c.default.off(e,"mouseover",t.noop);}this._popper&&this._popper.destroy(),this._menu.classList.remove(T),this._element.classList.remove(T),this._element.setAttribute("aria-expanded","false"),d.default.removeDataAttribute(this._menu,"popper"),c.default.trigger(this._element,k,e);}}_getConfig(e){if("object"==typeof (e=super._getConfig(e)).reference&&!t.isElement(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${h.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e;}_createPopper(){if(void 0===l)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:t.isElement(this._config.reference)?e=t.getElement(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const i=this._getPopperConfig();this._popper=l.createPopper(e,this._menu,i);}_isShown(){return this._menu.classList.contains(T);}_getPlacement(){const e=this._parent;if(e.classList.contains(O))return z;if(e.classList.contains(D))return V;if(e.classList.contains(q))return Q;if(e.classList.contains(P))return Y;const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains(x)?t?R:F:t?W:B;}_detectNavbar(){return null!==this._element.closest($);}_getOffset(){const {offset:e}=this._config;return "string"==typeof e?e.split(",").map(((e)=>Number.parseInt(e,10))):"function"==typeof e?(t)=>e(t,this._element):e;}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boun
13dary}},{name:"offset",options:{offset:this._getOffset()}}]};return (this._inNavbar||"static"===this._config.display)&&(d.default.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig};}_selectMenuItem({key:e,target:i}){const n=u.default.find(H,this._menu).filter(((e)=>t.isVisible(e)));n.length&&t.getNextActiveElement(n,i,e===b,!n.includes(i)).focus();}static jQueryInterface(e){return this.each((function(){const t=X.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]();}}));}static clearMenus(e){if(e.button===y||"keyup"===e.type&&e.key!==v)return;const t=u.default.find(N);for(const i of t){const t=X.getInstance(i);if(!t||!1===t._config.autoClose)continue;const n=e.composedPath(),s=n.includes(t._menu);if(n.includes(t._element)||"inside"===t._config.autoClose&&!s||"outside"===t._config.autoClose&&s)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&e.key===v||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const o={relatedTarget:t._element};"click"===e.type&&(o.clickEvent=e),t._completeHide(o);}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),i=e.key===m,n=[_,b].includes(e.key);if(!n&&!i)return;if(t&&!i)return;e.preventDefault();const s=this.matches(j)?this:u.default.prev(this,j)[0]||u.default.next(this,j)[0]||u.default.findOne(j,e.delegateTarget.parentNode),o=X.getOrCreateInstance(s);if(n)return e.stopPropagation(),o.show(),void o._selectMenuItem(e);o._isShown()&&(e.stopPropagation(),o.hide(),s.focus());}}return c.default.on(document,L,j,X.dataApiKeydownHandler),c.default.on(document,L,M,X.dataApiKeydownHandler),c.default.on(document,S,X.clearMenus),c.default.on(document,C,X.clearMenus),c.default.on(document,S,j,(function(e){e.preventDefault(),X.getOrCreateInstance(this).toggle();})),t.defineJQueryPlugin(X),X;}(i(980),i(72),i(286),i(175),i(737),i(695));},424:function(e,t,i){e.exports=function(e,t,i,n,s,o,r,a){"use strict";const l=(e)=>e&&"object"==typeof e&&"default" in e?e:{default:e},c=l(t),d=l(i),u=l(n),f=l(s),h=l(o),p=l(r),g="modal",m=".bs.modal",v="Escape",_=`hide${m}`,b=`hidePrevented${m}`,y=`hidden${m}`,w=`show${m}`,k=`shown${m}`,E=`resize${m}`,A=`click.dismiss${m}`,S=`mousedown.dismiss${m}`,L=`keydown.dismiss${m}`,C=`click${m}.data-api`,T="modal-open",x="fade",O="show",D="modal-static",q=".modal.show",P=".modal-dialog",j=".modal-body",N='[data-bs-toggle="modal"]',M={backdrop:!0,focus:!0,keyboard:!0},$={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class I extends f.default{constructor(e,t){super(e,t),this._dialog=d.default.findOne(P,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new u.default(),this._addEventListeners();}static get Default(){return M;}static get DefaultType(){return $;}static get NAME(){return g;}toggle(e){return this._isShown?this.hide():this.show(e);}show(e){this._isShown||this._isTransitioning||c.default.trigger(this._element,w,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(T),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))));}hide(){this._isShown&&!this._isTransitioning&&(c.default.trigger(this._element,_).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(O),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())));}dispose(){for(const e of [window,this._dialog])c.default.off(e,m);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose();}handleUpdate(){this._adjustDialog();}_initializeBackDrop(){return new h.default({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()});}_initializeFocusTrap(){return new p.default({trapElement:this._element});}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const i=d.default.findOne(j,this._dialog);
13i&&(i.scrollTop=0),e.reflow(this._element),this._element.classList.add(O);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,c.default.trigger(this._element,k,{relatedTarget:t});};this._queueCallback(n,this._dialog,this._isAnimated());}_addEventListeners(){c.default.on(this._element,L,((e)=>{if(e.key===v)return this._config.keyboard?(e.preventDefault(),void this.hide()):void this._triggerBackdropTransition();})),c.default.on(window,E,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog();})),c.default.on(this._element,S,((e)=>{c.default.one(this._element,A,((t)=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition());}));}));}_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._backdrop.hide((()=>{document.body.classList.remove(T),this._resetAdjustments(),this._scrollBar.reset(),c.default.trigger(this._element,y);}));}_isAnimated(){return this._element.classList.contains(x);}_triggerBackdropTransition(){if(c.default.trigger(this._element,b).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(D)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(D),this._queueCallback((()=>{this._element.classList.remove(D),this._queueCallback((()=>{this._element.style.overflowY=t;}),this._dialog);}),this._dialog),this._element.focus());}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,i=this._scrollBar.getWidth(),n=i>0;if(n&&!t){const t=e.isRTL()?"paddingLeft":"paddingRight";this._element.style[t]=`${i}px`;}if(!n&&t){const t=e.isRTL()?"paddingRight":"paddingLeft";this._element.style[t]=`${i}px`;}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight="";}static jQueryInterface(e,t){return this.each((function(){const i=I.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e](t);}}));}}return c.default.on(document,C,N,(function(t){const i=e.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),c.default.one(i,w,((t)=>{t.defaultPrevented||c.default.one(i,y,(()=>{e.isVisible(this)&&this.focus();}));}));const n=d.default.findOne(q);n&&I.getInstance(n).hide(),I.getOrCreateInstance(i).toggle(this);})),a.enableDismissTrigger(I),e.defineJQueryPlugin(I),I;}(i(72),i(286),i(737),i(810),i(695),i(358),i(744),i(127));},169:function(e,t,i){e.exports=function(e,t,i,n,s,o,r,a){"use strict";const l=(e)=>e&&"object"==typeof e&&"default" in e?e:{default:e},c=l(t),d=l(i),u=l(n),f=l(s),h=l(o),p=l(r),g="offcanvas",m=".bs.offcanvas",v=".data-api",_=`load${m}${v}`,b="Escape",y="show",w="showing",k="hiding",E="offcanvas-backdrop",A=".offcanvas.show",S=`show${m}`,L=`shown${m}`,C=`hide${m}`,T=`hidePrevented${m}`,x=`hidden${m}`,O=`resize${m}`,D=`click${m}${v}`,q=`keydown.dismiss${m}`,P='[data-bs-toggle="offcanvas"]',j={backdrop:!0,keyboard:!0,scroll:!1},N={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class M extends u.default{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners();}static get Default(){return j;}static get DefaultType(){return N;}static get NAME(){return g;}toggle(e){return this._isShown?this.hide():this.show(e);}show(e){if(this._isShown)return;if(d.default.trigger(this._element,S,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new c.default()).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(w);const t=()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(y),this._element.classList.remove(w),d.default.trigger(this._element,L,{relatedTarget:e});};this._queueCallback(t,this._element,!0);}
13hide(){if(!this._isShown)return;if(d.default.trigger(this._element,C).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(k),this._backdrop.hide();const e=()=>{this._element.classList.remove(y,k),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new c.default()).reset(),d.default.trigger(this._element,x);};this._queueCallback(e,this._element,!0);}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose();}_initializeBackDrop(){const e=()=>{"static"!==this._config.backdrop?this.hide():d.default.trigger(this._element,T);},t=Boolean(this._config.backdrop);return new h.default({className:E,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null});}_initializeFocusTrap(){return new p.default({trapElement:this._element});}_addEventListeners(){d.default.on(this._element,q,((e)=>{e.key===b&&(this._config.keyboard?this.hide():d.default.trigger(this._element,T));}));}static jQueryInterface(e){return this.each((function(){const t=M.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this);}}));}}return d.default.on(document,D,P,(function(t){const i=e.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),e.isDisabled(this))return;d.default.one(i,x,(()=>{e.isVisible(this)&&this.focus();}));const n=f.default.findOne(A);n&&n!==i&&M.getInstance(n).hide(),M.getOrCreateInstance(i).toggle(this);})),d.default.on(window,_,(()=>{for(const e of f.default.find(A))M.getOrCreateInstance(e).show();})),d.default.on(window,O,(()=>{for(const e of f.default.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&M.getOrCreateInstance(e).hide();})),a.enableDismissTrigger(M),e.defineJQueryPlugin(M),M;}(i(72),i(810),i(286),i(695),i(737),i(358),i(744),i(127));},101:function(e,t,i){e.exports=function(e,t){"use strict";const i=((e)=>e&&"object"==typeof e&&"default" in e?e:{default:e})(t),n="popover",s=".popover-header",o=".popover-body",r={...i.default.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},a={...i.default.DefaultType,content:"(null|string|element|function)"};class l extends i.default{static get Default(){return r;}static get DefaultType(){return a;}static get NAME(){return n;}_isWithContent(){return this._getTitle()||this._getContent();}_getContentForTemplate(){return {[s]:this._getTitle(),[o]:this._getContent()};}_getContent(){return this._resolvePossibleFunction(this._config.content);}static jQueryInterface(e){return this.each((function(){const t=l.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]();}}));}}return e.defineJQueryPlugin(l),l;}(i(72),i(824));},369:function(e,t,i){e.exports=function(e,t,i,n){"use strict";const s=(e)=>e&&"object"==typeof e&&"default" in e?e:{default:e},o=s(t),r=s(i),a=s(n),l="scrollspy",c=".bs.scrollspy",d=`activate${c}`,u=`click${c}`,f=`load${c}.data-api`,h="dropdown-item",p="active",g='[data-bs-spy="scroll"]',m="[href]",v=".nav, .list-group",_=".nav-link",b=`${_}, .nav-item > ${_}, .list-group-item`,y=".dropdown",w=".dropdown-toggle",k={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},E={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class A extends a.default{constructor(e,t){super(e,t),this._targetLinks=new Map(),this._observableSections=new Map(),this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh();}static get Default(){return k;}static get DefaultType(){return E;}static get NAME(){return l;}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e);}dispose(){this._observer.disconnect(),super.dispose();}_configAfterMerge(t){return t.target=e.getElement(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map(((e)=>Number.parseFloat(e)))),t;}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(o.default.off(this._config.target,u),o.default.on(this._config.target,u,m,((e)=>
13{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const i=this._rootElement||window,n=t.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n;}})));}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(((e)=>this._observerCallback(e)),e);}_observerCallback(e){const t=(e)=>this._targetLinks.get(`#${e.target.id}`),i=(e)=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e));},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const o of e){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(o));continue;}const e=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&e){if(i(o),!n)return;}else s||e||i(o);}}_initializeTargetsAndObservables(){this._targetLinks=new Map(),this._observableSections=new Map();const t=r.default.find(m,this._config.target);for(const i of t){if(!i.hash||e.isDisabled(i))continue;const t=r.default.findOne(i.hash,this._element);e.isVisible(t)&&(this._targetLinks.set(i.hash,i),this._observableSections.set(i.hash,t));}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(p),this._activateParents(e),o.default.trigger(this._element,d,{relatedTarget:e}));}_activateParents(e){if(e.classList.contains(h))r.default.findOne(w,e.closest(y)).classList.add(p);else{for(const t of r.default.parents(e,v)){for(const e of r.default.prev(t,b))e.classList.add(p);}}}_clearActiveClass(e){e.classList.remove(p);const t=r.default.find(`${m}.${p}`,e);for(const e of t)e.classList.remove(p);}static jQueryInterface(e){return this.each((function(){const t=A.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]();}}));}}return o.default.on(window,f,(()=>{for(const e of r.default.find(g))A.getOrCreateInstance(e);})),e.defineJQueryPlugin(A),A;}(i(72),i(286),i(737),i(695));},471:function(e,t,i){e.exports=function(e,t,i,n){"use strict";const s=(e)=>e&&"object"==typeof e&&"default" in e?e:{default:e},o=s(t),r=s(i),a=s(n),l="tab",c=".bs.tab",d=`hide${c}`,u=`hidden${c}`,f=`show${c}`,h=`shown${c}`,p=`click${c}`,g=`keydown${c}`,m=`load${c}`,v="ArrowLeft",_="ArrowRight",b="ArrowUp",y="ArrowDown",w="active",k="fade",E="show",A="dropdown",S=".dropdown-toggle",L=".dropdown-menu",C=":not(.dropdown-toggle)",T='.list-group, .nav, [role="tablist"]',x=".nav-item, .list-group-item",O='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',D=`.nav-link${C}, .list-group-item${C}, [role="tab"]${C}, ${O}`,q=`.${w}[data-bs-toggle="tab"], .${w}[data-bs-toggle="pill"], .${w}[data-bs-toggle="list"]`;class P extends a.default{constructor(e){super(e),this._parent=this._element.closest(T),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),o.default.on(this._element,g,((e)=>this._keydown(e))));}static get NAME(){return l;}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),i=t?o.default.trigger(t,d,{relatedTarget:e}):null;o.default.trigger(e,f,{relatedTarget:t}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(t,e),this._activate(e,t));}_activate(t,i){if(!t)return;t.classList.add(w),this._activate(e.getElementFromSelector(t));const n=()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),o.default.trigger(t,h,{relatedTarget:i})):t.classList.add(E);};this._queueCallback(n,t,t.classList.contains(k));}_deactivate(t,i){if(!t)return;t.classList.remove(w),t.blur(),this._deactivate(e.getElementFromSelector(t));const n=()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),o.default.trigger(t,u,{relatedTarget:i})):t.classList.remove(E);};this._queueCallback(n,t,t.classList.contains(k));}_keydown(t){if(![v,_,b,y].includes(t.key))return;t.stopPropagation(),t.preventDefault();const i=[_,y].includes(t.key),n=e.getNextActiveElement(this._getChildren().filter(((t)=>!e.isDisabled(t))),t.target,i,!0);n&&(n.focus({preventScroll:!0}),P.getOrCreateInstance(n).show());}_getChildren(){return r.default.find(D,this._parent);}_getActiveElem(){return this._getChildren().find(((e)=>this._elemIsActive(e)))||null;}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e);}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),i=this._getOuterElement(e);e.setAttribute("aria-selected",t),i!==e&&this._setAttributeIfNotExists(i,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e);}_setInitialAttributesOnTargetPanel(t){const i=e.getElementFromSelector(t);i&&(this._setAttributeIfNotExists(i,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(i,"aria-labelledby",`#${t.id}`));}_toggleDropDown(e,t){const i=this._getOuterElement(e);
13if(!i.classList.contains(A))return;const n=(e,n)=>{const s=r.default.findOne(e,i);s&&s.classList.toggle(n,t);};n(S,w),n(L,E),i.setAttribute("aria-expanded",t);}_setAttributeIfNotExists(e,t,i){e.hasAttribute(t)||e.setAttribute(t,i);}_elemIsActive(e){return e.classList.contains(w);}_getInnerElement(e){return e.matches(D)?e:r.default.findOne(D,e);}_getOuterElement(e){return e.closest(x)||e;}static jQueryInterface(e){return this.each((function(){const t=P.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]();}}));}}return o.default.on(document,p,O,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),e.isDisabled(this)||P.getOrCreateInstance(this).show();})),o.default.on(window,m,(()=>{for(const e of r.default.find(q))P.getOrCreateInstance(e);})),e.defineJQueryPlugin(P),P;}(i(72),i(286),i(737),i(695));},776:function(e,t,i){e.exports=function(e,t,i,n){"use strict";const s=(e)=>e&&"object"==typeof e&&"default" in e?e:{default:e},o=s(t),r=s(i),a="toast",l=".bs.toast",c=`mouseover${l}`,d=`mouseout${l}`,u=`focusin${l}`,f=`focusout${l}`,h=`hide${l}`,p=`hidden${l}`,g=`show${l}`,m=`shown${l}`,v="fade",_="hide",b="show",y="showing",w={animation:"boolean",autohide:"boolean",delay:"number"},k={animation:!0,autohide:!0,delay:5e3};class E extends r.default{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners();}static get Default(){return k;}static get DefaultType(){return w;}static get NAME(){return a;}show(){if(o.default.trigger(this._element,g).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(v);const t=()=>{this._element.classList.remove(y),o.default.trigger(this._element,m),this._maybeScheduleHide();};this._element.classList.remove(_),e.reflow(this._element),this._element.classList.add(b,y),this._queueCallback(t,this._element,this._config.animation);}hide(){if(!this.isShown())return;if(o.default.trigger(this._element,h).defaultPrevented)return;const e=()=>{this._element.classList.add(_),this._element.classList.remove(y,b),o.default.trigger(this._element,p);};this._element.classList.add(y),this._queueCallback(e,this._element,this._config.animation);}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(b),super.dispose();}isShown(){return this._element.classList.contains(b);}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide();}),this._config.delay)));}_onInteraction(e,t){switch(e.type){case "mouseover":case "mouseout":this._hasMouseInteraction=t;break;case "focusin":case "focusout":this._hasKeyboardInteraction=t;}if(t)return void this._clearTimeout();const i=e.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide();}_setListeners(){o.default.on(this._element,c,((e)=>this._onInteraction(e,!0))),o.default.on(this._element,d,((e)=>this._onInteraction(e,!1))),o.default.on(this._element,u,((e)=>this._onInteraction(e,!0))),o.default.on(this._element,f,((e)=>this._onInteraction(e,!1)));}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null;}static jQueryInterface(e){return this.each((function(){const t=E.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this);}}));}}return n.enableDismissTrigger(E),e.defineJQueryPlugin(E),E;}(i(72),i(286),i(695),i(127));},824:function(e,t,i){e.exports=function(e,t,i,n,s,o,r){"use strict";const a=(e)=>e&&"object"==typeof e&&"default" in e?e:{default:e};function l(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if("default"!==i){const n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:()=>e[i]});}}return t.default=e,Object.freeze(t);}const c=l(e),d=a(n),u=a(s),f=a(o),h=a(r),p="tooltip",g=new Set(["sanitize","allowList","sanitizeFn"]),m="fade",v="show",_=".tooltip-inner",b=".modal",y="hide.bs.modal",w="hover",k="focus",E="click",A="manual",S="hide",L="hidden",C="show",T="shown",x="inserted",O="click",D="focusin",q="focusout",P="mouseenter",j="mouseleave",N={AUTO:"auto",TOP:"top",RIGHT:t.isRTL()?"left":"right",BOTTOM:"bottom",LEFT:t.isRTL()?"right":"left"},M={allowList:i.DefaultAllowlist,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"}
13,$={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class I extends f.default{constructor(e,t){if(void 0===c)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle();}static get Default(){return M;}static get DefaultType(){return $;}static get NAME(){return p;}enable(){this._isEnabled=!0;}disable(){this._isEnabled=!1;}toggleEnabled(){this._isEnabled=!this._isEnabled;}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter());}dispose(){clearTimeout(this._timeout),d.default.off(this._element.closest(b),y,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose();}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=d.default.trigger(this._element,this.constructor.eventName(C)),i=(t.findShadowRoot(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!i)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const {container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(n),d.default.trigger(this._element,this.constructor.eventName(x))),this._popper=this._createPopper(n),n.classList.add(v),"ontouchstart" in document.documentElement){for(const e of [].concat(...document.body.children))d.default.on(e,"mouseover",t.noop);}const o=()=>{d.default.trigger(this._element,this.constructor.eventName(T)),!1===this._isHovered&&this._leave(),this._isHovered=!1;};this._queueCallback(o,this.tip,this._isAnimated());}hide(){if(!this._isShown())return;if(d.default.trigger(this._element,this.constructor.eventName(S)).defaultPrevented)return;if(this._getTipElement().classList.remove(v),"ontouchstart" in document.documentElement){for(const e of [].concat(...document.body.children))d.default.off(e,"mouseover",t.noop);}this._activeTrigger[E]=!1,this._activeTrigger[k]=!1,this._activeTrigger[w]=!1,this._isHovered=null;const e=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),d.default.trigger(this._element,this.constructor.eventName(L)));};this._queueCallback(e,this.tip,this._isAnimated());}update(){this._popper&&this._popper.update();}_isWithContent(){return Boolean(this._getTitle());}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip;}_createTipElement(e){const i=this._getTemplateFactory(e).toHtml();if(!i)return null;i.classList.remove(m,v),i.classList.add(`bs-${this.constructor.NAME}-auto`);const n=t.getUID(this.constructor.NAME).toString();return i.setAttribute("id",n),this._isAnimated()&&i.classList.add(m),i;}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show());}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new h.default({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory;}_getContentForTemplate(){return {[_]:this._getTitle()};}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title");}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig());}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(m);}_isShown(){return this.tip&&this.tip.classList.contains(v);}_createPopper(e){const t="function"==typeof this._config.placement?this._config.placement.call(this,e,this._element):this._config.placement,i=N[t.toUpperCase()];return c.createPopper(this._element,e,this._getPopperConfig(i));}_getOffset(){const {offset:e}=this._config;return "string"==typeof e?e.split(",").map(((e)=>Number.parseInt(e,10))):"function"==typeof e?(t)=>e(t,this._element):e;}_resolvePossibleFunction(e){return "function"==typeof e?e.call(this._element):e;}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}}
13,{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:(e)=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement);}}]};return {...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig};}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)d.default.on(this._element,this.constructor.eventName(O),this._config.selector,((e)=>{this._initializeOnDelegatedTarget(e).toggle();}));else{if(t!==A){const e=t===w?this.constructor.eventName(P):this.constructor.eventName(D),i=t===w?this.constructor.eventName(j):this.constructor.eventName(q);d.default.on(this._element,e,this._config.selector,((e)=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?k:w]=!0,t._enter();})),d.default.on(this._element,i,this._config.selector,((e)=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?k:w]=t._element.contains(e.relatedTarget),t._leave();}));}}this._hideModalHandler=()=>{this._element&&this.hide();},d.default.on(this._element.closest(b),y,this._hideModalHandler);}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"));}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show();}),this._config.delay.show));}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide();}),this._config.delay.hide));}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t);}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0);}_getConfig(e){const t=u.default.getDataAttributes(this._element);for(const e of Object.keys(t))g.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e;}_configAfterMerge(e){return e.container=!1===e.container?document.body:t.getElement(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e;}_getDelegateConfig(){const e={};for(const t in this._config)this.constructor.Default[t]!==this._config[t]&&(e[t]=this._config[t]);return e.selector=!1,e.trigger="manual",e;}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null);}static jQueryInterface(e){return this.each((function(){const t=I.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]();}}));}}return t.defineJQueryPlugin(I),I;}(i(980),i(72),i(551),i(286),i(175),i(695),i(968));},358:function(e,t,i){e.exports=function(e,t,i){"use strict";const n=(e)=>e&&"object"==typeof e&&"default" in e?e:{default:e},s=n(e),o=n(i),r="backdrop",a="fade",l="show",c=`mousedown.bs.${r}`,d={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},u={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class f extends o.default{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null;}static get Default(){return d;}static get DefaultType(){return u;}static get NAME(){return r;}show(e){if(!this._config.isVisible)return void t.execute(e);this._append();const i=this._getElement();this._config.isAnimated&&t.reflow(i),i.classList.add(l),this._emulateAnimation((()=>{t.execute(e);}));}hide(e){this._config.isVisible?(this._getElement().classList.remove(l),this._emulateAnimation((()=>{this.dispose(),t.execute(e);}))):t.execute(e);}dispose(){this._isAppended&&(s.default.off(this._element,c),this._element.remove(),this._isAppended=!1);}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(a),this._element=e;}return this._element;}_configAfterMerge(e){return e.rootElement=t.getElement(e.rootElement),e;}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),s.default.on(e,c,(()=>{t.execute(this._config.clickCallback);})),this._isAppended=!0;}_emulateAnimation(e){t.executeAfterTransition(e,this._getElement(),this._config.isAnimated);}}return f;}(i(286),i(72),i(705));},127:function(e,t,i){!function(e,t,i){"use strict";const n=((e)=>e&&"object"==typeof e&&"default" in e?e:{default:e})(t),s=(e,t="hide")=>{const s=`click.dismiss${e.EVENT_KEY}`,o=e.NAME;n.default.on(document,s,`[data-bs-dismiss="${o}"]`,(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),i.isDisabled(this))return;const s=i.getElementFromSelector(this)||this.closest(`.${o}`);e.getOrCreateInstance(s)[t]();}));};e.enableDismissTrigger=s,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});}(t,i(286),i(72));},705:function(e,t,i){e.exports=function(e,t){"use strict";const i=((e)=>e&&"object"==typeof e&&"default" in e?e:{default:e})(t);class n{static get Default(){return {};}static get DefaultType(){return {};}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!');}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e;}_configAfterMerge(e){return e;}_mergeConfigObj(t,n){const s=e.isElement(n)?i.default.getDataAttribute(n,"config"):{};return {...this.constructor.Default,..."object"==typeof s?s:{},...e.isElement(n)?i.default.getDataAttributes(n):{},..."object"==typeof t?t:{}};}_typeCheckConfig(t,i=this.constructor.DefaultType){for(const n of Object.keys(i)){const s=i[n],o=t[n],r=e.isElement(o)?"element":e.toType(o);if(!new RegExp(s).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${r}" but expected type "${s}".`);}}}return n;}(i(72),i(175));},744:function(e,t,i){e.exports=function(e,t,i){"use strict";const n=(e)=>e&&"object"==typeof e&&"default" in e?e:{default:e},s=n(e),o=n(t),r=n(i),a="focustrap",l=".bs.focustrap",c=`focusin${l}`,d=`keydown.tab${l}`,u="Tab",f="forward",h="backward",p={autofocus:!0,trapElement:null},g={autofocus:"boolean",trapElement:"element"};class m extends r.default{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null;}static get Default(){return p;}static get DefaultType(){return g;}static get NAME(){return a;}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),s.default.off(document,l),s.default.on(document,c,((e)=>this._handleFocusin(e))),s.default.on(document,d,((e)=>this._handleKeydown(e))),this._isActive=!0);}deactivate(){this._isActive&&(this._isActive=!1,s.default.off(document,l));}_handleFocusin(e){const {trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;
13const i=o.default.focusableChildren(t);0===i.length?t.focus():this._lastTabNavDirection===h?i[i.length-1].focus():i[0].focus();}_handleKeydown(e){e.key===u&&(this._lastTabNavDirection=e.shiftKey?h:f);}}return m;}(i(286),i(737),i(705));},72:function(e,t){!function(e){"use strict";const t=1e6,i=1e3,n="transitionend",s=(e)=>null==e?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),o=(e)=>{do e+=Math.floor(Math.random()*t);while(document.getElementById(e));return e;},r=(e)=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&"#"!==i?i.trim():null;}return t;},a=(e)=>{const t=r(e);return t&&document.querySelector(t)?t:null;},l=(e)=>{const t=r(e);return t?document.querySelector(t):null;},c=(e)=>{if(!e)return 0;let {transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const s=Number.parseFloat(t),o=Number.parseFloat(n);return s||o?(t=t.split(",")[0],n=n.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(n))*i):0;},d=(e)=>{e.dispatchEvent(new Event(n));},u=(e)=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),f=(e)=>u(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(e):null,h=(e)=>{if(!u(e)||0===e.getClientRects().length)return !1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(!i)return t;if(i!==e){const t=e.closest("summary");if(t&&t.parentNode!==i)return !1;if(null===t)return !1;}return t;},p=(e)=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),g=(e)=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null;}return e instanceof ShadowRoot?e:e.parentNode?g(e.parentNode):null;},m=()=>{},v=(e)=>{e.offsetHeight;},_=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,b=[],y=(e)=>{"loading"===document.readyState?(b.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of b)e();})),b.push(e)):e();},w=()=>"rtl"===document.documentElement.dir,k=(e)=>{y((()=>{const t=_();if(t){const i=e.NAME,n=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=n,e.jQueryInterface);}}));},E=(e)=>{"function"==typeof e&&e();},A=(e,t,i=!0)=>{if(!i)return void E(e);const s=5,o=c(t)+s;let r=!1;const a=({target:i})=>{i===t&&(r=!0,t.removeEventListener(n,a),E(e));};t.addEventListener(n,a),setTimeout((()=>{r||d(t);}),o);},S=(e,t,i,n)=>{const s=e.length;let o=e.indexOf(t);return -1===o?!i&&n?e[s-1]:e[0]:(o+=i?1:-1,n&&(o=(o+s)%s),e[Math.max(0,Math.min(o,s-1))]);};e.defineJQueryPlugin=k,e.execute=E,e.executeAfterTransition=A,e.findShadowRoot=g,e.getElement=f,e.getElementFromSelector=l,e.getNextActiveElement=S,e.getSelectorFromElement=a,e.getTransitionDurationFromElement=c,e.getUID=o,e.getjQuery=_,e.isDisabled=p,e.isElement=u,e.isRTL=w,e.isVisible=h,e.noop=m,e.onDOMContentLoaded=y,e.reflow=v,e.toType=s,e.triggerTransitionEnd=d,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});}(t);},551:function(e,t){!function(e){"use strict";const t=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),i=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,n=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,s=(e,s)=>{const o=e.nodeName.toLowerCase();return s.includes(o)?!t.has(o)||Boolean(i.test(e.nodeValue)||n.test(e.nodeValue)):s.filter(((e)=>e instanceof RegExp)).some(((e)=>e.test(o)));},o={"*":["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:[]};function r(e,t,i){if(!e.length)return e;if(i&&"function"==typeof i)return i(e);const n=(new window.DOMParser()).parseFromString(e,"text/html"),o=[].concat(...n.body.querySelectorAll("*"));for(const e of o){const i=e.nodeName.toLowerCase();if(!Object.keys(t).includes(i)){e.remove();continue;}const n=[].concat(...e.attributes),o=[].concat(t["*"]||[],t[i]||[]);for(const t of n)s(t,o)||e.removeAttribute(t.nodeName);}return n.body.innerHTML;}e.DefaultAllowlist=o,e.sanitizeHtml=r,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});}(t);},810:function(e,t,i){e.exports=function(e,t,i){"use strict";const n=(e)=>e&&"object"==typeof e&&"default" in e?e:{default:e},s=n(e),o=n(t),r=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",a=".sticky-top",l="padding-right",c="margin-right";class d{constructor(){this._element=document.body;}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e);}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,l,((t)=>t+e)),this._setElementAttributes(r,l,((t)=>t+e)),this._setElementAttributes(a,c,((t)=>t-e));}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,l),this._resetElementAttributes(r,l),this._resetElementAttributes(a,c);}isOverflowing(){return this.getWidth()>0;}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden";}_setElementAttributes(e,t,i){const n=this.getWidth(),s=(e)=>{if(e!==this._element&&window.innerWidth>e.clientWidth+n)return;this._saveInitialAttribute(e,t);const s=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${i(Number.parseFloat(s))}px`);};this._applyManipulationCallback(e,s);}_saveInitialAttribute(e,t){const i=e.style.getPropertyValue(t);i&&o.default.setDataAttribute(e,t,i);}_resetElementAttributes(e,t){const i=(e)=>{const i=o.default.getDataAttribute(e,t);null!==i?(o.default.removeDataAttribute(e,t),e.style.setProperty(t,i)):e.style.removeProperty(t);};this._applyManipulationCallback(e,i);}
13_applyManipulationCallback(e,t){if(i.isElement(e))t(e);else{for(const i of s.default.find(e,this._element))t(i);}}}return d;}(i(737),i(175),i(72));},814:function(e,t,i){e.exports=function(e,t,i){"use strict";const n=(e)=>e&&"object"==typeof e&&"default" in e?e:{default:e},s=n(e),o=n(t),r="swipe",a=".bs.swipe",l=`touchstart${a}`,c=`touchmove${a}`,d=`touchend${a}`,u=`pointerdown${a}`,f=`pointerup${a}`,h="touch",p="pen",g="pointer-event",m=40,v={endCallback:null,leftCallback:null,rightCallback:null},_={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class b extends s.default{constructor(e,t){super(),this._element=e,e&&b.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents());}static get Default(){return v;}static get DefaultType(){return _;}static get NAME(){return r;}dispose(){o.default.off(this._element,a);}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX;}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),i.execute(this._config.endCallback);}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX;}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=m)return;const t=e/this._deltaX;this._deltaX=0,t&&i.execute(t>0?this._config.rightCallback:this._config.leftCallback);}_initEvents(){this._supportPointerEvents?(o.default.on(this._element,u,((e)=>this._start(e))),o.default.on(this._element,f,((e)=>this._end(e))),this._element.classList.add(g)):(o.default.on(this._element,l,((e)=>this._start(e))),o.default.on(this._element,c,((e)=>this._move(e))),o.default.on(this._element,d,((e)=>this._end(e))));}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===p||e.pointerType===h);}static isSupported(){return "ontouchstart" in document.documentElement||navigator.maxTouchPoints>0;}}return b;}(i(705),i(286),i(72));},968:function(e,t,i){e.exports=function(e,t,i,n){"use strict";const s=(e)=>e&&"object"==typeof e&&"default" in e?e:{default:e},o=s(i),r=s(n),a="TemplateFactory",l={allowList:e.DefaultAllowlist,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},c={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},d={entry:"(string|element|function|null)",selector:"(string|element)"};class u extends r.default{constructor(e){super(),this._config=this._getConfig(e);}static get Default(){return l;}static get DefaultType(){return c;}static get NAME(){return a;}getContent(){return Object.values(this._config.content).map(((e)=>this._resolvePossibleFunction(e))).filter(Boolean);}hasContent(){return this.getContent().length>0;}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this;}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const [t,i] of Object.entries(this._config.content))this._setContent(e,i,t);const t=e.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&t.classList.add(...i.split(" ")),t;}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content);}_checkContent(e){for(const [t,i] of Object.entries(e))super._typeCheckConfig({selector:t,entry:i},d);}_setContent(e,i,n){const s=o.default.findOne(n,e);s&&((i=this._resolvePossibleFunction(i))?t.isElement(i)?this._putElementInTemplate(t.getElement(i),s):this._config.html?s.innerHTML=this._maybeSanitize(i):s.textContent=i:s.remove());}_maybeSanitize(t){return this._config.sanitize?e.sanitizeHtml(t,this._config.allowList,this._config.sanitizeFn):t;}_resolvePossibleFunction(e){return "function"==typeof e?e(this):e;}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent;}}return u;}(i(551),i(72),i(737),i(705));},285:function(e,t,i){"use strict";i(511),i(331),i(48),i(863),i(872),i(169),i(424),i(101),i(369),i(471);var n=i(776),s=i.n(n),o=i(824),r=i.n(o);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e;}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e;},a(e);}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}function c(e,t){for(var i=0;i<t.length;i++){var n=t[i];
13n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n);}}function d(e,t,i){return t&&c(e.prototype,t),i&&c(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;}function u(e,t,i){return (t=f(t)) in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e;}function f(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===t?String:Number)(e);}(e,"string");return "symbol"===a(t)?t:String(t);}!function(e){document.querySelectorAll('[data-toggle="tooltip"]').forEach((function(e){return new (r())(e);})),document.querySelectorAll(".toast").forEach((function(e){return new (s())(e);})),function(){var e=document.querySelectorAll(".ge-btn, .ge-links");if(e.length)for(var t=0;t<e.length;t++)e[t].querySelector("a")&&e[t].classList.add("ge-btn-with-link");var i=document.querySelectorAll(".button-icon.button-primary:not(.btn-small), .button-icon.button-primary-light:not(.btn-small)");i.length&&i.forEach((function(e){var t=document.createElement("span");t.classList.add("hover-style"),e.appendChild(t);})),document.querySelectorAll(".ge-links").forEach((function(e){e.addEventListener("mouseenter",(function(){e.classList.remove("hover-out"),e.offsetWidth,e.classList.add("hover-in");})),e.addEventListener("mouseleave",(function(){e.classList.remove("hover-in"),e.offsetWidth,e.classList.add("hover-out");}));}));}(),function(){(e(".latestInsights").length>0||e(".investors-carousel").length>0)&&e(".latestInsights, .investors-carousel").slick({dots:!1,infinite:!1,speed:300,slidesToShow:2.9,slidesToScroll:3,responsive:[{breakpoint:1100,settings:{slidesToShow:2,slidesToScroll:2,infinite:!1,dots:!1}},{breakpoint:767,settings:{slidesToShow:1.1,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:1.1,slidesToScroll:1}}]});var t;e(".innovation-slider").length>0&&e(".innovation-slider").slick((u(t={dots:!1,infinite:!1,variableWidth:!1,speed:1e3,slidesToShow:1,slidesToScroll:1},"variableWidth",!1),u(t,"fade",!0),t));}(),e(document).ready((function(){var t=e(".latest-insights .wrapper .container");if(t){var i=t.css("marginLeft"),n=t.css("paddingLeft"),s=e(".wrapper .container.wrapper");s.css("margin-left",i),s.css("padding-left",n);}})),e(document).ready((function(){var e=document.querySelectorAll(".contact-us-container .filter-block .ge-btn");if(e.length){var t=window.location.href.split("#");if(Array.from(e).some((function(e){return e.getAttribute("data-filter-id").split("-")[0]==t[1];}))){document.querySelector(".filter-block .ge-btn.active").classList.remove("active");for(var i=0;i<e.length;i++)e[i].getAttribute("data-filter-id")==t[1]+"-content"?(e[i].classList.add("active"),document.querySelector("[data-id="+e[i].getAttribute("data-filter-id")+"]").classList.remove("d-none")):document.querySelector("[data-id="+e[i].getAttribute("data-filter-id")+"]").classList.add("d-none");var n=window.location.href.split("#")[0];window.history.replaceState({path:n},"",n);}}}));var t=document.querySelectorAll(".contact-us-container .filter-block .ge-btn");t.length&&t.forEach((function(e){e.addEventListener("click",(function(e){var t=this.getAttribute("data-filter-id");document.querySelector(".filter-block .ge-btn.active").classList.remove("active"),this.classList.add("active"),document.querySelectorAll(".contact-detail-block").forEach((function(e){e.classList.add("d-none");})),document.querySelector("[data-id="+t+"]").classList.remove("d-none");}));}));var i=document.querySelectorAll(".js-scroll"),n=function(){i.forEach((function(e){!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.getBoundingClientRect().top<=(window.innerHeight||document.documentElement.clientHeight)/t;}(e,1.25)?function(e){return e.getBoundingClientRect().top>(window.innerHeight||document.documentElement.clientHeight);}(e)&&function(e){e.classList.remove("scrolled");}(e):e.classList.add("scrolled");}));};window.addEventListener("scroll",(function(){n();}));var o=document.querySelector(".ge-vernova-hero-video .bg-video"),a=document.querySelector(".ge-vernova-hero-video .playPause");if(o)a.addEventListener("click",(function(){o.paused?(o.play(),a.classList.add("svg-icon-menu"),a.classList.remove("svg-icon-play")):(o.pause(),a.classList.add("svg-icon-play"),a.classList.remove("svg-icon-menu"));}));document.querySelector(".about_us-careers_main .careers_main-container")&&e(window).on("scroll",(function(){e(".about_us-careers_main .careers_image-container").each((function(){var t=e(window).scrollTop(),i=e(".careers_image-container").offset().top,n=Math.floor((t-i)/5.6),s=Math.floor((t-i)/7.5),o=Math.floor((t-i)/8),r=Math.floor((t-i)/10);e(this).find(".parallax_ani-layer").css({top:-n}),e(this).find(".right_parallax-layer").css({top:-s}),e(window).width()>=768&&e(window).width()<=991&&(e(this).find(".parallax_ani-layer").css({top:-o}),e(this).find(".right_parallax-layer").css({top:-r}));}));}));var c=document.querySelectorAll(".leadership_landing_page-main.landing_page-main .leadership_team-section .leadership_landing-leader_section section[id]");if(c.length){window.addEventListener("scroll",(function(){var e=window.pageYOffset;
13c.forEach((function(t){var i=t.offsetHeight,n=t.getBoundingClientRect().top+window.pageYOffset-150,s=t.getAttribute("id"),o=document.querySelector(".leadership_landing_page-main.landing_page-main .leadership_landing-navigation_section a[href*="+s+"]");e>n&&e<=n+i?o.classList.add("active_li-item"):o.classList.remove("active_li-item");var r=document.querySelector(".leadership_landing_page-main.landing_page-main li.nav_down-arrow"),a=document.querySelector(".leadership_landing_page-main.landing_page-main .leadership_landing-navigation_section");document.querySelector(".leadership_landing_page-main.landing_page-main .leadership_landing-navigation_section li a.active_li-item")?(r.classList.add("down-arrow_show"),a.classList.add("top_nav-pos"),a.nextElementSibling.classList.add("leader_sec-pos")):(r.classList.remove("down-arrow_show"),a.classList.remove("top_nav-pos"),a.nextElementSibling.classList.remove("leader_sec-pos"));var l=document.querySelector(".leadership_landing-leader_section .leadership_landing-backg_blur.black--bg-backg_blur");a.classList.contains("open-navg")&&(a.classList.remove("open-navg"),l.classList.remove("black--bg-backg_blur"));}));}));var f=document.querySelector(".leadership_landing_page-main.landing_page-main .leadership_landing-navigation_section"),h=document.querySelector(".leadership_landing_page-main.landing_page-main .leadership_landing-navigation_section li.nav_content_icon .leadership--close_icon"),p=document.querySelector(".leadership_landing_page-main.landing_page-main .leadership_landing-navigation_section .nav_content-list .nav_content_icon .leadership--arrow_icon"),g=document.querySelector(".leadership_landing_page-main.landing_page-main .leadership_landing-navigation_section .navbar-nav.nav_content-list"),m=document.querySelector(".leadership_landing_page-main.landing_page-main .leadership_landing-leader_section .leadership_landing-backg_blur");p.addEventListener("click",(function(){f.classList.add("open-navg"),m.classList.add("black--bg-backg_blur"),g.style.maxHeight=g.scrollHeight+"px";})),h.addEventListener("click",(function(){f.classList.remove("open-navg"),m.classList.remove("black--bg-backg_blur"),g.style.maxHeight=null;}));}if(e(document).ready((function(){e('a[target="_blank"]:not([href]), a[target="_blank"][href=""]').each((function(){e(this).removeAttr("target");})),e('a[target="_blank"]').each((function(){var t=e(this).attr("href");if(t){var i=t.match(/\.(pdf|docx?|xlsx?|pptx?)$/i),n=e(this).attr("title")||"";if(i){var s=" (opening a "+i[1].toUpperCase()+" file in new tab)";n.includes("Opens")||e(this).attr("title",n+s);}else n.includes("Opens")||e(this).attr("title",n+" (Opens in a new browser/tab)");}}));})),e(document).ready((function(){var t={pdf:"PDF",doc:"Word",docx:"Word",xls:"Excel",xlsx:"Excel",ppt:"PowerPoint",pptx:"PowerPoint",zip:"ZIP",rar:"RAR",mp3:"Audio",mp4:"Video",csv:"CSV",txt:"Text"};e("a[href]").each((function(){var i=e(this),n=i.attr("href"),s=n.toLowerCase().match(/\.(\w+)(?:\?.*)?$/);if(s){var o=s[1],r=t[o];r&&(!function(e){var t=document.createElement("a");return t.href=e,t.hostname===location.hostname&&t.protocol===location.protocol&&t.port===location.port;}(n)?i.append(' <span class="file-type-access">('.concat(r,")</span>")):e.ajax({type:"HEAD",url:n,success:function(e,t,n){var s=n.getResponseHeader("Content-Length");if(s){var o=function(e){if(0===e)return "0 B";var t=1024,i=["B","KB","MB","GB","TB"],n=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,n)).toFixed(1))+" "+i[n];}(parseInt(s));i.append(' <span class="file-type-access">('.concat(r,", ").concat(o,")</span>"));}else i.append(' <span class="file-type-access">('.concat(r,")</span>"));},error:function(){i.append(' <span class="file-type-access">('.concat(r,")</span>"));}}));}}));})),document.querySelector(".ge-vernova-innovation")&&window.innerWidth>991){var v=function(){b.forEach((function(e){var t=window.scrollY+window.innerHeight,i=_((t-y)/500,.55,.97);e.style.transitionTimingFunction="ease-in",e.style.transitionDuration="".concat(800,"ms"),e.style.transform="scale(".concat(i,")");}));},_=function(e,t,i){return e<=t?t:e>=i?i:e;},b=document.querySelectorAll(".innovation-item .desktop-img img"),y=document.querySelector(".ge-vernova-innovation").offsetTop,w=document.querySelector(".ge-vernova-innovation").offsetHeight,k=y+w;window.addEventListener("scroll",(function(){var e=window.pageYOffset,t=e+window.innerHeight;(e<=y&&t>=y||e<=k&&t>=k||e<=y&&t>=y&&e<=k&&t>=k||e>=y&&t>=y&&e<=k&&t<=k)&&window.requestAnimationFrame(v);}));}var E=document.querySelectorAll(".event-list");
13E.length&&E.forEach((function(e){var t=!1,i=e.querySelectorAll(".acco-title");i.forEach((function(e){e.addEventListener("click",(function(e){this.classList.contains("active")&&(t=!0);var n=this.nextElementSibling;!function(e){for(var t=0;t<e.length;t++)e[t].querySelector("i").classList.remove("svg-icon-minus"),e[t].querySelector("i").classList.add("svg-icon-add"),e[t].nextElementSibling.style.height=null,e[t].classList.add("active");}(i),t?(n.style.height=n.scrollHeight+"px",this.classList.remove("active"),this.querySelector("i").classList.remove("svg-icon-add"),this.querySelector("i").classList.add("svg-icon-minus")):(n.style.height=null,this.querySelector("i").classList.remove("svg-icon-minus"),this.querySelector("i").classList.add("svg-icon-add"),this.classList.add("active")),t=!1;}));}));}));var A=document.querySelector(".col-2-banner-section .read-more-btn");A&&A.addEventListener("click",(function(e){document.querySelector(".col-2-banner-section .desc-col").classList.add("show"),this.classList.add("d-none");}));var S=function(){function e(t){l(this,e),this.el=t,this.tabElem=this.el.querySelectorAll(".tab-btn-block"),this.dropdownMobileElem=this.el.querySelectorAll(".dropdown-item"),this.tab(this.tabElem),this.dropdown(this.dropdownMobileElem);}return d(e,[{key:"tab",value:function(e){e.forEach((function(e){e.addEventListener("click",(function(e){var t=this.getAttribute("data-tab");this.classList.contains("active")||(document.querySelector(".tab-btn-block.active").classList.remove("active"),this.classList.add("active"),document.querySelector(".tab-desc-container").setAttribute("data-tab-active","active-"+t),document.querySelectorAll(".tab-desc-block").forEach((function(e){e.classList.add("d-none");})),document.querySelector("[data-tab-detail="+t+"]").classList.remove("d-none"));}));}));}},{key:"dropdown",value:function(e){e.forEach((function(e){e.addEventListener("click",(function(e){var t=this.getAttribute("data-tab"),i=this.innerText;this.classList.contains("active")||(document.querySelector(".dropdown-item.active").classList.remove("active"),this.classList.add("active"),document.querySelector(".tab-btn-block.active").classList.remove("active"),document.querySelector(".tab-btn-block[data-tab="+t+"]").classList.add("active"),document.querySelector(".tab-desc-container").setAttribute("data-tab-active","active-"+t),document.querySelectorAll(".tab-desc-block").forEach((function(e){e.classList.add("d-none");})),document.querySelector(".mobile-dd-btn .dd-heading").innerText=i,document.querySelector("[data-tab-detail="+t+"]").classList.remove("d-none"));}));}));}}]),e;}(),L=document.querySelector(".timeline-section");L&&new S(L),e(document).ready((function(){e(".sustainability-section").each((function(t,i){var n=(i=e(i)).find(".sustainability-carousel .slider-for"),s=i.find(".prev-btn"),o=i.find(".next-btn");n.slick({slidesToShow:2.4,slidesToScroll:1,arrows:!0,infinite:!1,autoplay:!1,variableWidth:!0,swipeToSlide:!0,responsive:[{breakpoint:1241,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:992,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:1.2,slidesToScroll:1}}]}),s.click((function(){n.slick("slickPrev");})),o.click((function(){n.slick("slickNext");})),s.addClass("ctrl-disabled"),n.on("afterChange",(function(){i.find(".slick-prev").hasClass("slick-disabled")?s.addClass("ctrl-disabled"):s.removeClass("ctrl-disabled"),i.find(".slick-next").hasClass("slick-disabled")?o.addClass("ctrl-disabled"):o.removeClass("ctrl-disabled");}));}));}));document.querySelector(".sustainability-carousel .slider-for");for(var C=document.querySelectorAll(".sustainability-carousel .slider-for .card-animation"),T=document.querySelectorAll(".sustainability-carousel .slider-for .slide-card"),x="",O="",D=function(e){(x=C[e].querySelector(".slide-card-btn-turn-to-back")).style.visibility="visible",x.onclick=function(){T[e].classList.toggle("expand");},(O=C[e].querySelector(".slide-card-btn-turn-to-front")).style.visibility="visible",O.onclick=function(){T[e].classList.toggle("expand");};},q=0;q<C.length;q++)D(q);if(e(document).ready((function(){var t;e(".video-btn").click((function(){t=e(this).data("src");})),e(".ge-vernova-modal").on("shown.bs.modal",(function(i){e(".ge-vernova-modal iframe").attr("src",t+"?autoplay=1&rel=0&modestbranding=1&showinfo=0");})),e(".ge-vernova-modal").on("hide.bs.modal",(function(i){e(".ge-vernova-modal iframe").attr("src",t);}));})),e(document).ready((function(){var e=document.querySelector("#right-content"),t=document.querySelector("#scroll-arrow");e&&document.addEventListener("scroll",(function(){e.getBoundingClientRect().top<40?document.getElementById("left-contact").classList.add("fixedContact"):document.getElementById("left-contact").classList.remove("fixedContact");})),t&&(document.addEventListener("scroll",(function(){e.getBoundingClientRect().top<40?document.getElementById("scroll-arrow").classList.add("scroll-sh
13ow"):document.getElementById("scroll-arrow").classList.remove("scroll-show");})),t.addEventListener("click",(function(e){window.scrollTo(0,0);})));})),document.querySelectorAll(".event-carousel-section"))document.querySelectorAll(".event-carousel-section .bottom-section .resource-icon").forEach((function(e){e.addEventListener("click",(function(){if(e.classList.toggle("svg-ficon-plus"),e.classList.toggle("svg-ficon-minus"),null!=this&&this.parentNode){var t,i,n=null==this||null===(t=this.parentNode)||void 0===t||null===(i=t.parentNode)||void 0===i?void 0:i.parentNode;n&&n.classList&&n.classList.toggle("bottom-to-top");}}));})),e(".event-carousel-section .slide-for").length>0&&e(".slide-for").slick({dots:!0,slidesToScroll:1,arrows:!0,infinite:!1,autoplay:!1,variableWidth:!0,swipeToSlide:!0,responsive:[]});if(document.querySelectorAll(".reports-filling-carousel-section"))document.querySelectorAll(".reports-filling-carousel-section .bottom-section .resource-icon").forEach((function(e){e.addEventListener("click",(function(){e.classList.toggle("svg-ficon-plus"),e.classList.toggle("svg-ficon-minus");var t=this.closest(".slider-card");t&&t.classList&&t.classList.toggle("bottom-to-top");}));})),e(".reports-filling-carousel-section .slide-for").length>0&&e(".reports-filling-carousel-section .slide-for").slick({dots:!0,slidesToScroll:1,arrows:!0,infinite:!1,autoplay:!1,variableWidth:!0,swipeToSlide:!0});if(document.querySelectorAll(".img-event-carousel-section").length)e(".event-img-carousel").length>0&&e(".event-img-carousel").slick({dots:!0,slidesToScroll:1,arrows:!0,infinite:!1,autoplay:!1,variableWidth:!0,swipeToSlide:!0}),document.querySelectorAll(".img-event-carousel-section .bottom-section .resource-icon").forEach((function(e){var t=e.parentNode.parentNode.parentNode,i=t.querySelector(".img-event-carousel-section .card-desc"),n=t.querySelector(".img-event-carousel-section .desc-text"),s=i.getBoundingClientRect(),o=n.getBoundingClientRect();i.style.setProperty("--truncate-height","".concat(s.height,"px")),e.addEventListener("click",(function(){if(e.classList.toggle("svg-ficon-plus"),e.classList.toggle("svg-ficon-minus"),null!=this&&this.parentNode){var t,s,r=null==this||null===(t=this.parentNode)||void 0===t||null===(s=t.parentNode)||void 0===s?void 0:s.parentNode;r&&r.classList&&r.classList.toggle("bottom-to-top");}i.classList.contains("truncate--expanded")?(i.classList.remove("truncate--expanded"),setTimeout((function(){i.classList.add("truncate--line-clamped");}),300)):(i.classList.remove("truncate--line-clamped"),window.requestAnimationFrame((function(){o=n.getBoundingClientRect(),i.style.setProperty("--truncate-height-expanded","".concat(o.height,"px")),i.classList.add("truncate--expanded");})));})),e.addEventListener("mouseover",(function(){if(null!=this&&this.parentNode){var e,t,i=null==this||null===(e=this.parentNode)||void 0===e||null===(t=e.parentNode)||void 0===t?void 0:t.parentNode;i&&i.classList&&i.classList.add("card-hover");}})),e.addEventListener("mouseout",(function(){if(null!=this&&this.parentNode){var e,t,i=null==this||null===(e=this.parentNode)||void 0===e||null===(t=e.parentNode)||void 0===t?void 0:t.parentNode;i&&i.classList&&i.classList.remove("card-hover");}}));}));if(document.querySelectorAll(".list-container"))e(".list-container").length>0&&e(".list-container").each((function(t,i){var n,s=e(this),o=s.find(".filter-list-button"),r=s.find(".filter-list-button .filter-button");o.not(".slick-initialized").slick({slidesToShow:1,slidesToScroll:1,arrows:!0,infinite:!1,autoplay:!1,variableWidth:!0,prevArrow:s.find(".prev-arrow"),nextArrow:s.find(".next-arrow"),swipeToSlide:!0,responsive:[{breakpoint:1240,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:992,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:1,slidesToScroll:1}}]}),e(window).innerWidth()<768&&(o.slick("unslick"),o.not(".slick-initialized").slick((u(n={slidesToShow:1,slidesToScroll:1,arrows:!0,infinite:!1,autoplay:!1,swipeToSlide:!0,variableWidth:!1,adaptiveHeight:!0},"infinite",!1),u(n,"prevArrow",s.find(".prev-arrow")),u(n,"nextArrow",s.find(".next-arrow")),n)),e(o).on("afterChange",(function(t,i){var n=e(this).find(".slick-current"),r=e(n).attr("data-slick-index"),a=Number(r)+1,l=s.find(".list-content");e(l).hide();var c=s.find(".list-content[data-id="+a+"]");e(c).show();var d=e(o).find(".filter-button");e(d).removeClass("active");var u=e(o).find(".slick-current");e(u).addClass("active");}))),e(".list-content").hide(),e(".list-content[data-id=1]").show(),e(r).click((function(t,i){var n=t.currentTarget.closest(".slick-slide"),s=e(n).attr("data-slick-index"),r=Number(s)+1,a=t.currentTarget.closest(".list-container"),l=e(a).find(".list-content");e(l).hide();var c=e(a).find(".list-content[data-id="+r+"]");e(c).show();var d=e(o).find(".filter-button");e(d).removeClass("active"),e(this).addClass("active");}));}));document.querySelectorAll(".informative-content-card").length&&e(".informative-content-card .heading").click((function(){e(this).hasClass("active")?(e(".informative-content-card .heading").addClass("active"),e(".informative-content-card .heading").find("i").removeClass("svg-ficon-minus"),e(".informative-content-card .heading").find("i").addClass("svg-ficon-plus"),e(this).removeClass("active"),e(this).find("i").removeClass("svg-ficon-plus"),e(this).find("i").addClass("svg-ficon-minus"),e(".informative-content-card .heading").next().css("height","0"),e(this).next().css("height",e(this).next().prop("scrollHeight"))):(e(this).addClass("active"),e(this).find("i").removeClass("svg-ficon-minus"),e(this).find("i").addClass("svg-ficon-plus"),e(this).next().css("height","0"));})),e(document).ready((function(){e("#IntegrityGuidePdf").change((function(){window.open(e(this).val(),"_blank");}));}));var P,j,N=document.querySelectorAll(".past-event-item-accordion .accordion-header");
13if(N.length&&N.forEach((function(e){e.addEventListener("click",(function(e){var t=this.parentElement,i=t.parentElement.querySelectorAll(".active"),n=t.querySelector("i"),s=t.querySelector(".accordion-content");t.classList.contains("active")?(t.classList.remove("active"),s.style.height=0,n.classList.remove("svg-ficon-minus"),n.classList.add("svg-ficon-plus")):(i.forEach((function(e){e.classList.remove("active"),e.querySelector(".accordion-content").style.height=0,e.querySelector("i").classList.remove("svg-ficon-minus"),e.querySelector("i").classList.add("svg-ficon-plus");})),t.classList.add("active"),s.style.height=s.scrollHeight+"px",n.classList.remove("svg-ficon-plus"),n.classList.add("svg-ficon-minus"));}));})),jQuery,Drupal.behaviors.ge_helper_module={attach:function(e,t){var i=e.querySelectorAll(".past-event-archive-item-accordion");i.length&&i.forEach((function(e){e.hasAttribute("data-accordion-initialized")||(e.setAttribute("data-accordion-initialized",!0),e.addEventListener("click",(function(e){var t=this.parentElement.querySelectorAll(".active"),i=this.querySelector("i"),n=this.querySelector(".accordion-content");this.classList.contains("active")?(this.classList.remove("active"),n.style.height=0,i.classList.remove("svg-ficon-minus"),i.classList.add("svg-ficon-plus")):(t.forEach((function(e){e.classList.remove("active"),e.querySelector(".accordion-content").style.height=0,e.querySelector("i").classList.remove("svg-ficon-minus"),e.querySelector("i").classList.add("svg-ficon-plus");})),this.classList.add("active"),n.style.height=n.scrollHeight+"px",i.classList.remove("svg-ficon-plus"),i.classList.add("svg-ficon-minus"));})));}));}},document.querySelectorAll(".ar-carousel-section"))e(".ar-carousel-section").length>0&&e(".ar-carousel-section").each((function(t,i){var n=(i=e(i)).find(".ar-carousel-container .slider-for"),s=i.find(".prev-btn"),o=i.find(".next-btn");n.not(".slick-initialized").slick({dots:!0,slidesToShow:2,slidesToScroll:1,arrows:!0,infinite:!1,autoplay:!1,variableWidth:!1,swipeToSlide:!0,responsive:[{breakpoint:1239,settings:{slidesToShow:1,slidesToScroll:1}}]}),s.click((function(){n.slick("slickPrev");})),o.click((function(){n.slick("slickNext");})),s.addClass("ctrl-disabled"),n.on("afterChange",(function(){i.find(".slick-prev").hasClass("slick-disabled")?s.addClass("ctrl-disabled"):s.removeClass("ctrl-disabled"),i.find(".slick-next").hasClass("slick-disabled")?o.addClass("ctrl-disabled"):o.removeClass("ctrl-disabled");}));}));if(document.querySelectorAll(".ar-event-carousel").length)e(".ar-event-carousel").length>0&&e(".ar-event-carousel .event-img-carousel").not(".slick-initialized").slick({dots:!0,slidesToScroll:1,arrows:!0,infinite:!1,autoplay:!1,variableWidth:!0,swipeToSlide:!0});document.querySelectorAll(".hero-slideshow-variant-2").length&&(e(".hero-slideshow-variant-2").length>0&&e(".hero-slideshow-variant-2").each((function(t,i){var n=(i=e(i)).find(".hero-slide-v2-container"),s=(i.find(".hero-slideshow-slide"),i.find(".prev-btn")),o=i.find(".next-btn"),r=i.find(".hero-carousel-tiles"),a=i.find(".hero-carousel-ctrls-wrapper"),l=i.find(".hero-carousel-dot-wrapper");n.not(".slick-initialized").slick({dots:!0,slidesToShow:1,slidesToScroll:1,fade:!0,infinite:!0,autoplay:!0,autoplaySpeed:6e3,speed:700,variableWidth:!1,swipeToSlide:!0,pauseOnDotsHover:!0,prevArrow:'<button type="button" class="slick-prev svg-ficon-chevron-left">Previous</button>',nextArrow:'<button type="button" class="slick-next svg-ficon-chevron-right">Next</button>',appendArrows:a,appendDots:l}),i.find(".slick-dots li").on("click",(function(e){n.slick("slickPause");})),s.click((function(){n.slick("slickPrev"),n.slick("slickPause");})),o.click((function(){n.slick("slickNext"),n.slick("slickPause");})),r.click((function(){n.slick("slickPause");})),s.addClass("ctrl-disabled"),n.on("beforeChange",(function(t,i,n,s){r.removeClass("active"),e("[data-slide-no="+s+"]").addClass("active"),0==s&&(e("[data-slide-no='0']").css("order",1),e("[data-slide-no='1']").css("order",2),e("[data-slide-no='2']").css("order",3)),1==s&&(e("[data-slide-no='1']").css("order",1),e("[data-sli
13de-no='2']").css("order",2),e("[data-slide-no='0']").css("order",3)),2==s&&(e("[data-slide-no='2']").css("order",1),e("[data-slide-no='0']").css("order",2),e("[data-slide-no='1']").css("order",3)),setTimeout((function(){r.css("pointer-events","auto");}),800);})),n.on("afterChange",(function(){i.find(".slick-prev").hasClass("slick-disabled")?s.addClass("ctrl-disabled"):s.removeClass("ctrl-disabled"),i.find(".slick-next").hasClass("slick-disabled")?o.addClass("ctrl-disabled"):o.removeClass("ctrl-disabled");})),r.click((function(t){if(!e(this).hasClass("active")){r.css("pointer-events","none");var i=e(this).index();n.slick("slickGoTo",parseInt(i),!1),r.removeClass("active"),e(this).addClass("active");}}));})),e(".hs-video-btn").click((function(){P=e(this).data("src"),j=e(this).attr("data-bs-target");})),e(".hero-slideshow-v2-modal").on("shown.bs.modal",(function(t){e(j).find("iframe").attr("src",P+"?autoplay=1&rel=0&modestbranding=1&showinfo=0");})),e(".hero-slideshow-v2-modal").on("hide.bs.modal",(function(t){e(j).find("iframe").attr("src",P);})));document.querySelectorAll(".ir-subscribeRibbon").length&&e(".ir-subscribeRibbon").length>0&&e(".ir-subscribeRibbon").each((function(t,i){var n=(i=e(i)).find(".sub-close-icon"),s=!1;n.on("click",(function(){e(this).parents(".ir-subscribeRibbon").addClass("selected"),e(".ir-subscribeRibbon").hide(),s=!0;})),e(".ir-subscribeRibbon").hide(),window.addEventListener("scroll",(function(){s||(window.scrollY>300&&window.scrollY<4256?e(".ir-subscribeRibbon").show():e(".ir-subscribeRibbon").hide());}));}));var M=document.querySelector(".signup-container");M&&(M.querySelector(".ge-btn").setAttribute("data-bs-toggle","modal"),M.querySelector(".ge-btn").setAttribute("data-bs-target","#signUpModal")),document.querySelectorAll(".future-container").forEach((function(e){var t=e.querySelector(".ge-btn");t&&(t.setAttribute("data-bs-toggle","modal"),t.setAttribute("data-bs-target","#infoFormModal"));})),document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".future-container").forEach((function(e){var t=e.querySelector(".gev-home-card5");if(t){var i=t.querySelectorAll('a[href^="#"]');i.length>0&&i.forEach((function(e){e.setAttribute("data-bs-toggle","modal"),e.setAttribute("data-bs-target","#infoFormModal"),e.addEventListener("click",(function(e){return e.preventDefault();}));}));}}));}));var $=function(){function e(t){l(this,e),this.el=t,this.markerBlock=this.el.querySelectorAll(".imap-block"),this.businessName=this.el.querySelector(".business-filter"),this.markers=this.el.querySelectorAll(".imap-item"),this.cards=this.el.querySelectorAll(".imap-location-card"),this.cardCloseButtons=this.el.querySelectorAll(".card-close"),this.selectedMarker=null,this.showCard=null,this.onMarkerClick=this.onMarkerClick.bind(this),this.onCardClose=this.onCardClose.bind(this),this.onFilterChange=this.onFilterChange.bind(this),this.init();}return d(e,[{key:"init",value:function(){this.markerPosition(),this.locationCard(),this.cardClose(),this.mapMarkerFilter();}},{key:"markerPosition",value:function(){this.markerBlock.forEach((function(e){e.querySelectorAll(".imap-item").forEach((function(e){var t=e.getAttribute("data-top"),i=e.getAttribute("data-left");e.style.top=t,e.style.left=i;}));}));}},{key:"locationCard",value:function(){this.el.addEventListener("click",this.onMarkerClick);}},{key:"onMarkerClick",value:function(e){var t=e.target.closest(".imap-item");if(t){e.preventDefault(),this.deselectMarker(),t.querySelector(".imap-marker").classList.add("selected");var i=t.getAttribute("data-target");this.showLocationCard(i);}}},{key:"deselectMarker",value:function(){this.selectedMarker=this.el.querySelector(".imap-marker.selected"),this.selectedMarker&&this.selectedMarker.classList.remove("selected"),this.showCard&&this.showCard.classList.remove("show");}},{key:"showLocationCard",value:function(e){this.showCard=this.el.querySelector('[data-marker="'.concat(e,'"]')),this.showCard&&this.showCard.classList.add("show");}},{key:"cardClose",value:function(){this.el.addEventListener("click",this.onCardClose);}},{key:"onCardClose",value:function(e){var t=e.target.closest(".card-close");if(t){e.preventDefault();var i=t.closest(".imap-location-card"),n=t.closest(".img-wrapper").querySelector(".imap-item .
13imap-marker.selected");i.classList.remove("show"),n&&n.classList.remove("selected");}}},{key:"showMarker",value:function(e){null!==this.el.querySelector(".imap-location-card.show .card-close")&&this.el.querySelector(".imap-location-card.show .card-close").click(),this.markers.forEach((function(t){var i="default"!==e?t.getAttribute("data-filter"):"default";e===i?t.classList.remove("hide"):t.classList.add("hide");}));}},{key:"mapMarkerFilter",value:function(){this.businessName.addEventListener("change",this.onFilterChange);}},{key:"onFilterChange",value:function(){this.showMarker(this.businessName.value);}}]),e;}(),I=document.querySelectorAll(".interactive-map-section"),H=[];I.forEach((function(e){var t=new $(e);H.push(t);})),window.addEventListener("resize",(function(){H.forEach((function(e){e.markerPosition();}));})),jQuery(".wp-block-vernova-rss-feed-variant-1 .rss-items a.feed-item").ready((function(){jQuery("a.feed-item").each((function(){Url=jQuery(this).attr("href"),domain=new URL(Url),location.hostname!==domain.hostname&&jQuery("a.feed-item").attr("target","_blank");}));}));var F,R,B,W,z,V,Q=document.querySelector(".video-banner-section");if(Q)!function(){var e=Q.querySelector("video.bg-media");if(e){var t=2*e.duration*1e3;setTimeout((function(){return e.pause();}),t);}}(),F=Q.querySelector("video.vb-video-sound"),R=Q.querySelector(".btn-play-icon"),B=Q.querySelector(".btn-sound-icon"),W=!0,z=function(){F.paused?R.classList.remove("d-none"):R.classList.add("d-none");},V=function(){F.muted=!1,W=!1,B.classList.add("d-none"),setTimeout((function(){return F.setAttribute("controls","true");}),300);},R.addEventListener("click",(function(){F.paused&&(F.play(),R.classList.add("d-none"));}
13)),F.addEventListener("click",(function(){W?V():z();})),B.addEventListener("click",V),F.addEventListener("play",z),F.addEventListener("pause",z);var Y=document.querySelectorAll(".side-ribbon-scroll-section");Y.length>0&&Y.forEach((function(e){e.querySelector(".ribbon-close-icon").addEventListener("click",(function(){var t=e.querySelector(".ribbon-side-block");t&&t.classList.add("selected");}));}));var U=document.querySelector(".visible-with-scroll");if(U){var K=document.querySelector(".visible-with-scroll").getAttribute("data-banner-id");window.addEventListener("scroll",(function(){var e=document.querySelector("#"+K).offsetHeight;window.scrollY>e?U.classList.remove("d-none"):U.classList.add("d-none");}));}}(jQuery);},650:function(){},73:function(){}},i={};function n(e){var s=i[e];if(void 0!==s)return s.exports;var o=i[e]={exports:{}};return t[e].call(o.exports,o,o.exports,n),o.exports;}n.m=t,e=[],n.O=function(t,i,s,o){if(!i){var r=1/0;for(d=0;d<e.length;d++){i=e[d][0],s=e[d][1],o=e[d][2];for(var a=!0,l=0;l<i.length;l++)(!1&o||r>=o)&&Object.keys(n.O).every((function(e){return n.O[e](i[l]);}))?i.splice(l--,1):(a=!1,o<r&&(r=o));if(a){e.splice(d--,1);var c=s();void 0!==c&&(t=c);}}return t;}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[i,s,o];},n.n=function(e){var t=e&&e.__esModule?function(){return e.default;}:function(){return e;};return n.d(t,{a:t}),t;},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]});},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t);},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0});},function(){var e={707:0,650:0,756:0};n.O.j=function(t){return 0===e[t];};var t=function(t,i){var s,o,r=i[0],a=i[1],l=i[2],c=0;if(r.some((function(t){return 0!==e[t];}))){for(s in a)n.o(a,s)&&(n.m[s]=a[s]);if(l)var d=l(n);}for(t&&t(i);c<r.length;c++)o=r[c],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.O(d);},i=self.webpackChunkge_vernova_unified=self.webpackChunkge_vernova_unified||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i));}(),n.O(void 0,[650,756],(function(){return n(285);})),n.O(void 0,[650,756],(function(){return n(650);}));var s=n.O(void 0,[650,756],(function(){return n(73);}));s=n.O(s);}();; 14// Added analytics attribute for links (GES business requirement) (US1139) 15let linkAnalyticElement = document.querySelectorAll("[class*=wp-block-vernova-] a"); 16 17if (linkAnalyticElement.length) { 18 linkAnalyticElement.forEach(function (analyticElm) { 19 20 if (analyticElm.childNodes.length) { 21 22 if (analyticElm.children.length) { 23 analyticElm.setAttribute('analytics-data-without-cta', true); 24 } 25 else { 26 analyticElm.setAttribute('analytics-data', true); 27 } 28 } 29 else { 30 analyticElm.setAttribute('analytics-data-without-cta', true); 31 32 } 33 34 // Add Adobe Analytics tracking class "vernova-track" for GE Vernova 35 36 // Select buttons and within Vernova blocks 37 const buttonSelectors = [ 38 ".ge-btn", ".ge-links", ".tag-button", 39 ]; 40 41 // Select interactive elements within Vernova blocks 42 const interactiveSelectors = [ 43 ".cir-button", ".ge-ctrl", ".slick-next", ".slick-prev", ".ctrl-btn" ,".ge-btn", ".ge-links", ".video-modal-close" 44 ]; 45 46 const buttonElements = document.querySelectorAll( 47 `[class*=wp-block-vernova-] ${buttonSelectors.join(", [class*=wp-block-vernova-] ")}` 48 ); 49 50 const interactiveElements = document.querySelectorAll( 51 `[class*=wp-block-vernova-] ${interactiveSelectors.join(", [class*=wp-block-vernova-] ")}` 52 ); 53 54 // Buttons 55 buttonElements.forEach((element) => { 56 if (!element.closest("a")) { 57 element.classList.add("vernova-track"); 58 } 59 }); 60 61 // interactive elements slider modal 62 interactiveElements.forEach((element) => { 63 if (!element.closest("a")) { 64 element.classList.add("vernova-non-track"); 65 } 66 }); 67 68 // Links 69 const anchorElements = document.querySelectorAll("[class*=wp-block-vernova-] a"); 70
71 anchorElements.forEach((anchor) => { 72 // Skip anchors that contain button-like elements 73 if (!anchor.closest(buttonSelectors.join(", "))) { 74 anchor.classList.add("vernova-track"); 75 } 76 }); 77 78 }) 79}; 80/** 81 * @file 82 * Runtime href/src XSS guard for ALL VernovaBlox Gutenberg blocks. 83 * 84 * Several block save() functions serialize `<a href={...}>` verbatim from 85 * editor-supplied string attributes (URLInput / media selection / raw block 86 * JSON) â e.g. the event-accordion-content block's `fileURL` attribute 87 * (int-blox-drift.xss.02 pattern). A stored `javascript:`/`data:`/`vbscript:` 88 * URI would execute for any visitor who interacts with the link on the 89 * published page. 90 * 91 * Allowed schemes are https:, http:, mailto: and tel:; mailto/tel values are 92 * further validated (recipient/number format) before being left in place, 93 * and a `download` attribute is stripped whenever its href is blocked. 94 */ 95(function () { 96 'use strict'; 97 98 var LINK_SELECTOR = '[class*="wp-block-"] a[href]'; 99 // var FRAME_SELECTOR = '[class*="wp-block-"] iframe[src]'; 100 101 // Basic "local@domain" check for a single mailto recipient. 102 var EMAIL_PATTERN = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/; 103 // Digits plus common dialing punctuation for a tel: number. 104 var TEL_PATTERN = /^[0-9+()\-.\s]+$/; 105 106 /** 107 * Strict URL validation for a href/src target. 108 * Returns a safe absolute/relative URL string, or '#' if unsafe/unparseable. 109 * 110 * No host allowlist: blocks legitimately link/embed same-origin Drupal 111 * media or arbitrary external documents/videos, so only the scheme is 112 * restricted (this is what stops javascript:/data:/vbscript:). 113 */ 114 function safeUrl(raw) { 115 if (typeof raw !== 'string' || raw.trim() === '') { 116 return '#'; 117 } 118 119 var url; 120 try { 121 url = new URL(raw, window.location.origin); 122 } catch (e) { 123 return '#'; 124 } 125 126 if (url.protocol === 'mailto:') { 127 // Reject unless every comma-separated recipient looks like an email. 128 var recipients = url.pathname.split(','); 129 for (var i = 0; i < recipients.length; i++) { 130 if (!EMAIL_PATTERN.test(recipients[i].trim())) { 131 return '#'; 132 } 133 } 134 return url.href; 135 } 136 137 if (url.protocol === 'tel:') { 138 if (!TEL_PATTERN.test(decodeURIComponent(url.pathname))) { 139 return '#'; 140 } 141 return url.href; 142 } 143 144 // Kills javascript:, data:, vbscript:, file:, etc. 145 if (url.protocol !== 'https:' && url.protocol !== 'http:') { 146 return '#'; 147 } 148 149 return url.href; 150 } 151 152 /** 153 * Best-effort block name lookup, e.g. "wp-block-vernova-event-accordion-content", 154 * derived from the nearest ancestor (or self) carrying a "wp-block-*" class. 155 * Falls back to 'unknown-block' when no such class is found. 156 */ 157 function getBlockName(el) { 158 var wrapper = (el.matches && el.matches('[class*="wp-block-"]')) ? el : el.closest('[class*="wp-block-"]'); 159 if (!wrapper) { 160 return 'unknown-block'; 161 } 162 163 var classes = (wrapper.getAttribute('class') || '').split(/\s+/); 164 for (var i = 0; i < classes.length; i++) { 165 if (classes[i].indexOf('wp-block-') === 0) { 166 return classes[i]; 167 } 168 } 169 170 return 'unknown-block'; 171 } 172 173 function sanitizeAttr(el, attrName) { 174 if (!el || el.hasAttribute('data-xss-checked')) { 175 return; 176 } 177 178 var raw = el.getAttribute(attrName); 179 var safe = safeUrl(raw); 180 181 el.setAttribute('data-xss-checked', 'true'); 182 183 // Only touch the DOM when the stored value is actually unsafe, so 184 // legitimate relative/absolute URLs are left completely untouched. 185 if (safe === '#' && raw !== '#') { 186 el.setAttribute(attrName, '#'); 187 el.removeAttribute('target'); 188 el.setAttribute('data-xss-blocked', 'true'); 189 // eslint-disable-next-line no-console 190 console.warn('[vernova-href-guard] Blocked unsafe ' + attrName + ' on <' + el.tagName.toLowerCase() + '> in block "' + getBlockName(el) + '".'); 191 } 192 } 193 194 function sanitizeAll(root) { 195 var scope = (root && typeof root.querySelectorAll === 'function') ? root : document; 196 197 var links = scope.querySelectorAll(LINK_SELECTOR); 198 for (var i = 0; i < links.length; i++) { 199 sanitizeAttr(links[i], 'href'); 200 } 201 202 // var frames = scope.querySelectorAll(FRAME_SELECTOR); 203 // for (var j = 0; j < frames.length; j++) { 204 // sanitizeAttr(frames[j], 'src'); 205 // } 206
207 // A mutation can add the anchor itself (not just a wrapper containing 208 // one), which querySelectorAll on `root` would miss. 209 if (root && root.nodeType === 1 && typeof root.matches === 'function' && typeof root.closest === 'function') { 210 if (root.matches('a[href]') && root.closest('[class*="wp-block-"]')) { 211 sanitizeAttr(root, 'href'); 212 } 213 // if (root.matches('iframe[src]') && root.closest('[class*="wp-block-"]')) { 214 // sanitizeAttr(root, 'src'); 215 // } 216 } 217 } 218 219 function init() { 220 // 1) Validate everything already on the page. 221 sanitizeAll(document); 222 223 // 2) Keep validating anything added afterwards (AJAX/BigPipe/lazy blocks). 224 if (window.MutationObserver) { 225 var observer = new MutationObserver(function (mutations) { 226 for (var i = 0; i < mutations.length; i++) { 227 var added = mutations[i].addedNodes; 228 for (var j = 0; j < added.length; j++) { 229 var node = added[j]; 230 if (node.nodeType !== 1) { 231 continue; 232 } 233 sanitizeAll(node); 234 } 235 } 236 }); 237 observer.observe(document.body, { childList: true, subtree: true }); 238 } 239 } 240 241 if (document.readyState === 'loading') { 242 document.addEventListener('DOMContentLoaded', init); 243 } else { 244 init(); 245 } 246})(); 247 248; 249function animatedStats(container, ...statElem) { 250 let featureStatistics = document.querySelectorAll(container); 251 252 if (featureStatistics.length) { 253 class animatedNumberCount { 254 constructor(elem) { 255 this.elem = elem; 256 this.setAttrs(); 257 this.setObserver(); 258 this.initObserver(); 259 } 260 261 setAttrs() { 262 this.statVal = this.elem.querySelectorAll(statElem); 263 this.statVal.forEach((stat) => { 264 let numValue = parseFloat( 265 parseFloat(String(stat.textContent).replace(/,/g, "").match(/[+]?([0-9]*[.])?[0-9]+/)) 266 ); 267 let textCont = String(stat.textContent).replace(/,/g, ""); 268 if (!isNaN(numValue)) { 269 stat.setAttribute('numVal', numValue); 270 stat.setAttribute('textCont', textCont) 271 } 272 }); 273 } 274 275 setObserver() { 276 this.getNum = this.elem.querySelectorAll('[numVal]'); 277 this.observerOptions = { root: null, rootMargin: "0px 0px", threshold: 0 }; 278 this.observer = new IntersectionObserver((entries) => { 279 entries.forEach((entry) => { 280 281 let charString = String(entry.target.attributes.textCont.textContent).replace(/,/g, ""); 282 let extNum = parseFloat(charString.match(/[+]?([0-9]*[.])?[0-9]+/)); 283 let preFix = charString.slice(0, charString.indexOf(extNum)); 284 let suFFix = charString.split(extNum).pop(); 285 let extVal = parseFloat( 286 entry.target.attributes.numVal.textContent.replace(/,/g, "") 287 ); 288 let decimalsNum = this.countDecimalsNum(extVal); 289 if (entry.isIntersecting) { 290 this.setValue(entry.target, extVal, decimalsNum, preFix, suFFix); 291 } 292 }); 293 }, this.observerOptions); 294 } 295
296 initObserver() { 297 if (this.statVal.length > 0) { 298 this.getNum.forEach((ele) => { 299 this.observer.observe(ele); 300 }); 301 } 302 } 303 304 setValue(entry, extVal, decimalsNum, preFix, suFFix) { 305 let start = 0; 306 let duration = 2500; 307 let startTimestamp = null; 308 let fps = 12; 309 310 let step = (timestamp) => { 311 if (!startTimestamp) startTimestamp = timestamp; 312 let elapsedPercent = (timestamp - startTimestamp) / duration; 313 let easedProgress = Math.min(this.easeOutQuint(elapsedPercent), 1); 314 let interimNumber = Math.abs(easedProgress * (extVal - start) + start); 315 entry.textContent = preFix + this.formatNumber(interimNumber, decimalsNum) + suFFix; 316 if (easedProgress < 1) { 317 setTimeout(() => { 318 window.requestAnimationFrame(step); 319 }, 1000 / fps); 320 } 321 }; 322 window.requestAnimationFrame(step); 323 } 324 325 easeOutQuint(x) { 326 return 1 - Math.pow(1 - x, 5); 327 } 328 329 countDecimalsNum(extVal) { 330 if (Math.floor(extVal) === extVal) return 0; 331 if (extVal === NaN) return 0; 332 return extVal.toString().split(".")[1].length || 0; 333 } 334 335 formatNumber(val, decimalsNum) { 336 return val.toLocaleString("en-US", { 337 useGrouping: false, 338 minimumFractionDigits: decimalsNum, 339 maximumFractionDigits: decimalsNum 340 }); 341 } 342 } 343 344 const featureStats = [...document.querySelectorAll(container)]; 345
346 featureStats.forEach((element) => { 347 new animatedNumberCount(element); 348 }); 349 }; 350} 351 352animatedStats('.wp-block-vernova-statistics', ".stat-value"); 353animatedStats('.wp-block-vernova-overview-statistics', '.os-stat-container .os-number'); 354animatedStats('.wp-block-vernova-feature-statistics-image', '.stats-card .HedaingTitle', '.stats-card .statval'); 355animatedStats('.wp-block-vernova-hero-statistics', '.title', '.wp-block-vernova-statistics-data .data-title'); 356animatedStats('.wp-block-vernova-feature-statistics-image2', '.stats-card .statval'); 357animatedStats('.wp-block-vernova-feature-statistics-2', '.wp-block-vernova-feature-statistics-2-card .stat-value'); 358; 359/** 360#################################################################################################################################### 361######################### Common js file for all youtube video & HTML video popup VernovaBlox ###################################### 362### Banner Floating, Banner Image Info , Banner Wide, ############################################################################## 363### Carousel Hero Info Card, Carousel Info Cards, Carousel Slim, Carousel Video, Carousel Video Featured, Carousel Feature Card #### 364### Content List, Content Tabbed, ################################################################################################## 365### Feature Content, Feature Main Image, Feature Image Text, Feature Quote Video, ################################################## 366### GEV Overview Paragraph, ######################################################################################################## 367### Hero Content Grid, Hero Impact Story Carousel, Hero Impact Stacked, Hero Quote Video, ######################################### 368### Hero Slideshow, Hero Slideshow Variant - 2, Hero Video, Hero Highlights Carousel, Hero Video Editorial ######################## 369### Overview Paragraph ############################################################################################################ 370### Video Carousel, ################################################################################################################ 371#################################################################################################################################### 372*/ 373// Load YouTube IFrame Player API asynchronously 374const loadYouTubeAPI = () => { 375 const tag = document.createElement('script'); 376 tag.src = 'https://www.youtube.com/iframe_api'; 377 document.head.appendChild(tag); 378 // console.log('YouTube IFrame API loaded'); 379}; 380 381loadYouTubeAPI(); 382 383// YouTube API Ready Function 384window.onYouTubeIframeAPIReady = () => { 385 // console.log('Initializing YouTube Players', vernovaYoutubePlayers); 386 Object.entries(vernovaYoutubePlayers).forEach(([id, data]) => { 387 data.player = new YT.Player(data.playerId, { 388 videoId: data.videoId, 389 playerVars: { rel: 0 }, 390 // events: { onStateChange: onPlayerStateChange } 391 }); 392 }); 393}; 394 395// Modal and Video Control 396 397/** 398 * @description: Play/stop youtube video 399 * @param {*} play: flag to understand if the video has to start or pause 400 * @param {*} playerData: data for iframe API including youtube player 401 */ 402 403// Play or stop Youtube video 404const playYoutube = (play, playerData) => { 405 playerData?.player?.playVideo && setTimeout(() => play ? playerData.player.playVideo() : playerData.player.stopVideo(), 200); 406}; 407 408/** 409 * @description: Play/stop youtube video 410 * @param {*} playVideoState: flag to understand if the video has to start or pause 411 * @param {*} playerModalData: data for HTML video player 412 */ 413// Play or stop HTML video 414const playHTMLvideo = (playVideoState, playerModalData,) => { 415 const HtmlVideoModalElement = playerModalData.htmlVideoElement; 416 const video = HtmlVideoModalElement.querySelector("video"); 417 const playButton = HtmlVideoModalElement.querySelector('.html-video'); 418 419 const playVideo = (playVideoState) => { playVideoState ? video.play() : video.pause(); } 420 421 playButton.addEventListener("click", playVideo(playVideoState)); 422 423 // Trigger the click event 424 const triggerPlayButtonClick = () => { playButton.click(); } 425 setTimeout(triggerPlayButtonClick, 200); 426} 427 428const backdropElement = document.createElement('div'); 429backdropElement.classList.add('modal-backdrop', 'video-backdrop', 'fade', 'show'); 430 431/** 432 * @description we don't want to attatch event listeners to all the elements when not required, therfore 433 using event delegation to attach it only on the required element 434 it will also remove the dependency of adding a play button class when a new component is added for video 435 */ 436document.body.addEventListener('click', (event) => { 437 // console.log(event.target) 438 if (event.target.classList.contains('gev-video-play') || event.target.closest('.gev-video-play')) { 439 440 const blockInstanceIDString = (event.target.classList.contains('gev-video-play')) 441 ? event.target.getAttribute('data-instance-string') 442 : event.target.closest('.gev-video-play').getAttribute('data-instance-string'); 443 444 const eventTarget = (event.target.classList.contains('gev-video-play')) ? event.target : event.target.closest('.gev-video-play'); 445 const mainBlock = findParentWithAttributeSubstr(eventTarget, blockInstanceIDString); // refer to youtube-api-data-builder.js 446 if (!mainBlock) return; 447 448 const { element: mediaBlock, instanceName } = mainBlock; 449 const videoId = eventTarget.getAttribute('data-video') || mediaBlock.getAttribute('video-id'); 450 const instanceId = mediaBlock.getAttribute(instanceName); 451 const idPrefix = eventTarget.getAttribute('data-idprefix'); 452 const playerId = `${idPrefix}${instanceId}-${videoId}`; 453 const modal = mediaBlock.querySelector('.gev-video-modal') || document.querySelector(`[data-gev-modal-attr=gev_${idPrefix}_${instanceId}]`); 454 document.body.appendChild(backdropElement); 455 document.body.classList.add('modal-open'); 456 modal.classList.add('show'); 457 modal.style.display = 'block'; 458 modal.setAttribute(eventTarget.getAttribute('data-modalinstance'), instanceId); 459 modal.setAttribute('video-id', videoId); 460 modal.setAttribute('data-idprefix', idPrefix); 461 462 // Play correct video type 463 const isYoutubeBlock = ['yt-iframe-block', 'yt_iframe', 'media-type-yt', 'content-tabbed'] 464 .some(cls => mediaBlock.classList.contains(cls)); 465 466 if (isYoutubeBlock) { 467 // Play the Youtube Videos 468 playYoutube(true, vernovaYoutubePlayers[playerId]); 469 } else { 470 // Play the HTML Videos 471 const htmlVideoPlayerId = `${idPrefix}${instanceId}-htmlVideo`;
472 playHTMLvideo(true, vernovaHTMLVideoPlayers[htmlVideoPlayerId]); 473 } 474 475 } 476}) 477 478// Close Modal and Stop Video 479const videoCloseModal = (modalElement) => { 480 const modal = modalElement.closest('.gev-video-modal'); 481 const blockInstanceIdString = modalElement.getAttribute('data-modal-instance-string'); 482 const mainBlock = findParentWithAttributeSubstr(modalElement, blockInstanceIdString); 483 if (!mainBlock) return; 484 485 const { element: mediaBlock, instanceName } = mainBlock; 486 const instanceId = mediaBlock.getAttribute(instanceName); 487 const videoId = modal.getAttribute('video-id'); 488 const idPrefix = modal.getAttribute('data-idprefix'); 489 const playerId = `${idPrefix}${instanceId}-${videoId}`; 490 491 document.querySelector('.modal-backdrop')?.remove(); 492 document.body.classList.remove('modal-open'); 493 modal.style.display = 'none'; 494 modal.classList.remove('show'); 495 496 497 498 if (mediaBlock.classList.contains('youtube-iframe') || mediaBlock.classList.contains('yt-iframe')) { 499 // Stop the Youtube Videos 500 playYoutube(false, vernovaYoutubePlayers[playerId]); 501 } 502 else { 503 // Stop the HTML Videos 504 const htmlVideoplayerId = `${idPrefix}${instanceId}-htmlVideo`; 505 playHTMLvideo(false, vernovaHTMLVideoPlayers[htmlVideoplayerId]); 506 } 507} 508 509 510// Close modal when clicking on the close icon or outside the modal 511document.addEventListener("click", function (event) {
512 if (event.target.matches(".modal-close")) { 513 videoCloseModal(event.target.closest('.modal')); 514 } 515 else if (event.target.matches(".modal")) { 516 // Close the modal 517 videoCloseModal(event.target); 518 } 519}); 520; 521/** 522#################################################################################################################################### 523######################### Common js file for all youtube video & HTML video popup VernovaBlox ###################################### 524### Banner Floating, Banner Image Info , Banner Wide, ############################################################################## 525### Carousel Current Card, Carousel Feature Card, Carousel Featured, Carousel Hero Info Card, Carousel Info Cards, ################# 526### Carousel Priorities, Carousel Slim, Carousel Video, Carousel Video Featured, Carousel Wide Card, Video Carousel, ############## 527### Content List, Content Tabbed, ################################################################################################## 528### Feature Content, Feature Main Image, Feature Image Text, Feature Quote Video, Feature Tab 3, ################################### 529### GEV Overview Paragraph, ######################################################################################################## 530### Hero Content Grid, Hero Highlights Carousel,Hero Impact Stacked, Hero Impact Story Carousel, Hero Quote Video, ################ 531### Hero Slideshow, Hero Slideshow Variant - 2, Hero Tab, Hero Video, Hero Video Editorial, ###################################### 532### Overview Paragraph, ########################################################################################################### 533### Scroll Stats, ################################################################################################################## 534#################################################################################################################################### 535*/ 536 537let vernovaYoutubePlayers = {}; 538let vernovaHTMLVideoPlayers = {}; 539 540const createVideoPlayerReference = (playerObject) => { 541 if (!playerObject) return; 542 543 const { 544 hasParentBlock, parentBlockSelector, videoBlockSelector, instanceIdAttribute, VideoIdSelector, playButtonSelector, 545 youtubeDivSelector, instanceIdString, modalSelector, modalInstanceAttribute, youtubeVideoBlockWrapperSelector, 546 modalInstanceIdString, idPrefix, hasHtmlVideo, htmlVideoModalSelector, htmlVideoWrapperSelector, 547 } = playerObject; 548 549 const videoAttrs = ['data-video', 'data-video-id', 'content-list-data-video-id']; 550 551 document.querySelectorAll(`.${videoBlockSelector}`).forEach((mediaBlock) => { 552 const playButton = mediaBlock.querySelector(`.${playButtonSelector}`) || 553 (mediaBlock.classList.contains(playButtonSelector) ? mediaBlock : null); 554 if (!playButton) return; 555 556 const instanceId = mediaBlock.getAttribute(instanceIdAttribute); 557 const videoId = playButton?.getAttribute(VideoIdSelector) ?? 558 mediaBlock.getAttribute(VideoIdSelector) ?? 559 getAvailableAttribute(mediaBlock, videoAttrs); 560 561 const modalElement = 562 mediaBlock.querySelector(`.${modalSelector}[${modalInstanceAttribute}="${instanceId}"]`) || 563 mediaBlock.querySelector(`.${modalSelector}`) || 564 document.querySelector(`.${modalSelector}[${modalInstanceAttribute}="${instanceId}"]`); 565 566 if (!modalElement) return; 567 568 const ytVideoType = (youtubeVideoBlockWrapperSelector && hasHtmlVideo) 569 ? mediaBlock.classList.contains(youtubeVideoBlockWrapperSelector) 570 : true; 571 572 modalElement.classList.add('gev-video-modal'); 573 modalElement.setAttribute('data-gev-modal-attr', `gev_${idPrefix}_${instanceId}`); 574 modalElement.setAttribute('data-modal-instance-string', modalInstanceIdString); 575 576 const targetElement = playButton || mediaBlock; 577 578 setupTarget(targetElement, idPrefix, modalInstanceAttribute, instanceIdString); 579 580 mediaBlock.setAttribute('video-id', videoId); 581 if (!youtubeVideoBlockWrapperSelector && !hasHtmlVideo) { 582 mediaBlock.classList.add('yt-iframe-block'); 583 } 584 585 if (!hasHtmlVideo || ytVideoType) { 586 handleYoutubeVideo(mediaBlock, youtubeDivSelector, modalElement, videoId, idPrefix, instanceId); 587 } else { 588 handleHtmlVideo(mediaBlock, modalSelector, modalInstanceAttribute, instanceId, idPrefix, modalElement); 589 } 590 591 }); 592}; 593 594/** 595 It will set the class & attributes to play button 596 */ 597const setupTarget = (targetElement, idPrefix, modalInstanceAttribute, instanceIdString) => { 598 targetElement.classList.add('gev-video-play'); 599 targetElement.setAttribute('data-idprefix', idPrefix); 600 targetElement.setAttribute('data-modalinstance', modalInstanceAttribute); 601 targetElement.setAttribute('data-instance-string', instanceIdString); 602}; 603 604/** 605 It will handle the Youtube Video. 606 */ 607const handleYoutubeVideo = (mediaBlock, youtubeDivSelector, modalElement, videoId, idPrefix, instanceId) => { 608 const iframe = mediaBlock.querySelector(`.${youtubeDivSelector}`) || 609 modalElement.querySelector(`.${youtubeDivSelector}`); 610 if (iframe) { 611 const playerId = `${idPrefix}${instanceId}-${videoId}`; 612 iframe.id = playerId; 613 vernovaYoutubePlayers[playerId] = { mediaBlock, iframe, videoId, playerId }; 614 } 615 616} 617 618/** 619 It will handle the HTML Video. 620 */ 621const handleHtmlVideo = (mediaBlock, modalSelector, modalInstanceAttribute, instanceId, idPrefix, modalElement) => { 622 const htmlVideoElement = document.querySelector(`.${modalSelector}[${modalInstanceAttribute}="${instanceId}"]`); 623 const htmlVideoPlayerId = `${idPrefix}${instanceId}-htmlVideo`; 624 vernovaHTMLVideoPlayers[htmlVideoPlayerId] = { mediaBlock, instanceId, htmlVideoElement, modalElement }; 625} 626 627/** 628 * @description: It will go up the dom tree to find the element of a specific sbustring of an attribute 629 * @param {*} element: current target element 630 * @param {*} substr: attribute name substring 631 * @returns 632 */ 633const findParentWithAttributeSubstr = (element, substr) => { 634 while (element && element !== document.documentElement) { 635 for (let attr of element.attributes) { 636 if (attr.name.includes(substr)) { 637 return { element, instanceName: attr.name, instanceValue: attr.value }; 638 } 639 } 640 element = element.parentElement; 641 } 642 return null; 643}; 644 645/** 646 * @description: it will return the video-id 647 * @param {*} element: dom element where the video-id attribute is added 648 * @param {*} attributes: list of video-id attributes (some components have different attribute) 649 * @returns 650 */ 651 652const getAvailableAttribute = (element, attributes) => { 653 for (let attr of attributes) { 654 let value = element.getAttribute(attr); 655 if (value !== null) { 656 return value 657 } 658 } 659 return null; 660}; 661/** 662 * Update button ARIA + icon state 663 */ 664function setButtonState(btn, isPlaying) { 665 btn.setAttribute("aria-pressed", isPlaying); 666 btn.setAttribute("aria-label", isPlaying ? "Pause video" : "Play video"); 667 668 btn.classList.toggle("svg-icon-menu", isPlaying); 669 btn.classList.toggle("svg-icon-play", !isPlaying); 670} 671 672 673/** 674 * Toggle play / pause 675 */ 676function toggleVideo(video, btn) { 677 const shouldPlay = video.paused; 678 679 video[shouldPlay ? "play" : "pause"](); 680 setButtonState(btn, shouldPlay); 681} 682 683 684/** 685 * Pause video after N loops 686 */ 687function pauseAfterLoops(video, btn, loops) { 688 let loopCount = 0; 689 let lastTime = 0; 690 691 // Enable looping 692 video.loop = true; 693 694 const onTimeUpdate = () => { 695 // Detect a loop: currentTime resets to 0 696 if (video.currentTime < lastTime) { 697 loopCount++; 698 // console.log(loopCount) 699 if (loopCount >= loops) { 700 video.loop = false;
701 video.pause(); 702 setButtonState(btn, false); 703 video.removeEventListener("timeupdate", onTimeUpdate); 704 } 705 } 706 lastTime = video.currentTime; 707 }; 708 709 video.addEventListener("timeupdate", onTimeUpdate); 710} 711 712 713/** 714 * Button accessibility setup 715 */ 716function setupButton(btn) { 717 if (btn.tagName !== "BUTTON") { 718 btn.setAttribute("role", "button"); 719 btn.setAttribute("tabindex", "0"); 720 } 721 722 setButtonState(btn, false); 723} 724 725 726/** 727 * Initialize video 728 * Default loops = 3 729 */ 730function initBackgroundVideo(container, videoSelector, { pauseAfterLoops: loops = 3 } = {}) { 731 const video = container.querySelector(videoSelector); 732 const btn = container.querySelector(".playPause"); 733 734 if (!video || !btn) return; 735 736 setupButton(btn); 737 738 739 btn.addEventListener("click", () => toggleVideo(video, btn)); 740 741 btn.addEventListener("keydown", e => { 742 if (e.key === "Enter" || e.key === " ") { 743 e.preventDefault(); 744 toggleVideo(video, btn); 745 } 746 }); 747 748 video.addEventListener("ended", () => { 749 if (!video.loop) setButtonState(btn, false); 750 }); 751 752 // Initialize loop control AFTER video loads 753 if (loops) { 754 if (video.readyState >= 1) { 755 pauseAfterLoops(video, btn, loops); 756 } else { 757 video.addEventListener( 758 "loadedmetadata", 759 () => pauseAfterLoops(video, btn, loops), 760 { once: true } 761 ); 762 } 763 } 764} 765 766 767/* ------------------------------ 768 INIT SECTIONS 769--------------------------------*/ 770 771const initConfigs = [ 772 [".wp-block-vernova-hero-features-main", ".bg-video-player", 3], 773 [".wp-block-vernova-hero-impact-paragraph", ".bg-video", 3], 774 [".wp-block-vernova-hero-impact-stacked", ".bg-video"], 775 [".wp-block-vernova-hero-visual-card", ".bg-video-player", 3], 776]; 777 778initConfigs.forEach(([containerSel, videoSel, loops]) => { 779 document.querySelectorAll(containerSel).forEach(container => {
780 initBackgroundVideo( 781 container, 782 videoSel, 783 loops ? { pauseAfterLoops: loops } : {} // optional, but default = 3 784 ); 785 }); 786}); 787 788// Init for Carousel blocks 789document 790 .querySelectorAll(".wp-block-vernova-hero-slideshow-variant-2 .bg-video-player") 791 .forEach(video => { 792 const container = video.closest(".hero-slide-media-container"); 793 if (container) { 794 // initBackgroundVideo(container, ".bg-video-player", { 795 // pauseAfterLoops: 3, 796 // }); 797 initBackgroundVideo(container, ".bg-video-player"); // default loops = 3 798 } 799 }); 800; 801// let heroImpactStacked = document.querySelectorAll(".wp-block-vernova-hero-impact-stacked"); 802 803// if (heroImpactStacked.length) { 804// heroImpactStacked.forEach((hero) => { 805// let heroVideo = hero.querySelector(".bg-video"); 806// if (heroVideo) { 807// let heroVideoPlayBtn = hero.querySelector(".playPause"); 808 809// function videoPlayAndPause() { 810// if (heroVideo.paused) { 811// heroVideo.play(); 812// heroVideoPlayBtn.classList.add("svg-icon-menu"); 813// heroVideoPlayBtn.classList.remove("svg-icon-play"); 814// } else { 815// heroVideo.pause(); 816// heroVideoPlayBtn.classList.add("svg-icon-play"); 817// heroVideoPlayBtn.classList.remove("svg-icon-menu"); 818// } 819// } 820 821// heroVideoPlayBtn.addEventListener("click", function () { 822// videoPlayAndPause(); 823// }); 824 825// heroVideo.addEventListener('ended', videEnded); 826 827// function videEnded(e) { 828// heroVideoPlayBtn.classList.add("svg-icon-play"); 829// heroVideoPlayBtn.classList.remove("svg-icon-menu"); 830// } 831// } 832// }) 833// } 834 835createVideoPlayerReference( 836 { 837 // Video Block 838 hasParentBlock: false, 839 parentBlockSelector: null, 840 videoBlockSelector: 'wp-block-vernova-hero-impact-stacked', 841 instanceIdAttribute: 'hsimg-instance-id', 842 instanceIdString: 'nstance-id', 843 youtubeVideoBlockWrapperSelector: 'yt-iframe-block', 844 VideoIdSelector: 'data-video', 845 playButtonSelector: 'hero-stacked-play', 846 847 // Video Modal 848 modalSelector: 'hsImg-video-modal', 849 modalInstanceAttribute: 'herostackimg-modal-instance-id', 850 modalInstanceIdString: 'instance-id', 851 youtubeDivSelector: 'heroSImg-video-id', 852 idPrefix: 'videoHeroImpactStacked', 853 854 // HTML Video 855 hasHtmlVideo: false, 856 htmlVideoModalSelector: null, 857 htmlVideoWrapperSelector: null, 858 } 859); 860/** 861 * Creates an reference data to pass video block data to the YouTube API data builder (youtube-video-data-builder.js) . 862 * 863 * @param {boolean} hasParentBlock - Set to true if the video block has a parent element. 864 * @param {string} parentBlockSelector - The class name of the parent element of the video block, otherwise set to null. 865 * @param {string} videoBlockSelector - Class name of the video block element 866 * @param {string} instanceIdAttribute - Attribute name used to store the instance ID. 867 * @param {string} instanceIdString - The string value of the last word in the instanceIdAttribute. 868 * For example, if `instanceIdAttribute` is 'blockname-instance-id / blockname-instanceid', then 869 * `instanceIdString` should be 'instance-id' or 'instanceid'. 870 * @param {string} youtubeVideoBlockWrapperSelector - Wrapper class for blocks containing YouTube videos, otherwise set to null. 871 * @param {string} VideoIdSelector - Data attribute for blocks containing video ID. 872 * @param {string} playButtonSelector - Class name of the play button, otherwise set to null. 873 * 874 * 875 * @param {string} modalSelector - Class name of the modal used to display the video, otherwise set to null. 876 * @param {string} modalInstanceAttribute - Modal instance attribute name, dynamically added to the play button. 877 * @param {string} modalInstanceIdString - The string value of the last word in the modalInstanceAttribute. 878 * For example, if `modalInstanceAttribute` is 'blockname-instance-id / blockname-instanceid', then 879 * `modalInstanceIdString` should be 'instance-id' or 'instanceid'. 880 * @param {string}
880 youtubeDivSelector - Class name of the div that contains the YouTube video ID 881 * (e.g., <div id="[block-videoID]" class="[class-name]"></div>). 882 * @param {string} idPrefix - Custom prefix to be dynamically added to the play button and modal. 883 * Note: This must be a unique value. Do not use the same value in other video blocks. 884 * @param {boolean} hasHtmlVideo - Set to true if the video block contains HTML video elements. 885 * @param {string} htmlVideoModalSelector - Wrapper class for modal containing HTML videos, otherwise set to null. 886 * @param {string} htmlVideoWrapperSelector - Wrapper class for blocks containing HTML videos, otherwise set to null. 887 * 888 * @returns 889 */ 890 891// ############################################################################################################### 892// ############ Note : For Youtube api & HTML video please check ################################################ 893// ############ youtube-video-data-builder.js & youtube-api.js ################################################ 894// ############ common js file for all youtube video popup ###################################################### 895// ###############################################################################################################; 896(function(factory){"use strict";if(typeof define==="function"&&define.amd)define(["jquery"],factory);else if(typeof exports!=="undefined")module.exports=factory(require("jquery"));else factory(jQuery);})(function($){"use strict";var Slick=window.Slick||{};Slick=function(){var instanceUid=0;function Slick(element,settings){var _=this,dataSettings;_.defaults={accessibility:true,adaptiveHeight:false,appendArrows:$(element),appendDots:$(element),arrows:true,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:false,autoplaySpeed:3e3,centerMode:false,centerPadding:"50px",cssEase:"ease",customPaging:function(slider,i){return $('<button type="button" />').text(i+1);},dots:false,dotsClass:"slick-dots",draggable:true,easing:"linear",edgeFriction:.35,fade:false,focusOnSelect:false,focusOnChange:false,infinite:true,initialSlide:0,lazyLoad:"ondemand",mobileFirst:false,pauseOnHover:true,pauseOnFocus:true,pauseOnDotsHover:false,respondTo:"window",responsive:null,rows:1,rtl:false,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:true,swipeToSlide:false,touchMove:true,touchThreshold:5,useCSS:true,useTransform:true,variableWidth:false,vertical:false,verticalSwiping:false,waitForAnimate:true,zIndex:1e3};_.initials={animating:false,dragging:false,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:false,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:false,slideOffset:0,swipeLeft:null,swiping:false,$list:null,touchObject:{},transformsEnabled:false,unslicked:false};$.extend(_,_.initials);_.activeBreakpoint=null;_.animType=null;_.animProp=null;_.breakpoints=[];_.breakpointSettings=[];_.cssTransitions=false;_.focussed=false;_.interrupted=false;_.hidden="hidden";_.paused=true;_.positionProp=null;_.respondTo=null;_.rowCount=1;_.shouldClick=true;_.$slider=$(element);_.$slidesCache=null;_.transformType=null;_.transitionType=null;_.visibilityChange="visibilitychange";_.windowWidth=0;_.windowTimer=null;dataSettings=$(element).data("slick")||{};_.options=$.extend({},_.defaults,settings,dataSettings);_.currentSlide=_.options.initialSlide;_.originalSettings=_.options;if(typeof document.mozHidden!=="undefined"){_.hidden="mozHidden";_.visibilityChange="mozvisibilitychange";}else{if(typeof document.webkitHidden!=="undefined"){_.hidden="webkitHidden";_.visibilityChange="webkitvisibilitychange";}}_.autoPlay=$.proxy(_.autoPlay,_);_.autoPlayClear=$.proxy(_.autoPlayClear,_);_.autoPlayIterator=$.proxy(_.autoPlayIterator,_);_.changeSlide=$.proxy(_.changeSlide,_);_.clickHandler=$.proxy(_.clickHandler,_);_.selectHandler=$.proxy(_.selectHandler,_);_.setPosition=$.proxy(_.setPosition,_);_.swipeHandler=$.proxy(_.swipeHandler,_);_.dragHandler=$.proxy(_.dragHandler,_);_.keyHandler=$.proxy(_.keyHandler,_);_.instanceUid=instanceUid++;_.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/;_.registerBreakpoints();_.init(true);}return Slick;}();Slick.prototype.activateADA=function(){var _=this;_.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"});};Slick.prototype.addSlide=Slick.prototype.slickAdd=function(markup,index,addBefore){var _=this;if(typeof index==="boolean"){addBefore=index;index=null;}else{if(index<0||index>=_.slideCount)return false;}_.unload();if(typeof index==="number")if(index===0&&_.$slides.length===0)$(markup).appendTo(_.$slideTrack);else if(addBefore)$(markup).insertBefore(_.$slides.eq(index));else $(markup).insertAfter(_.$slides.eq(index));else if(addBefore===true)$(markup).prependTo(_.$slideTrack);else $(markup).appendTo(_.$slideTrack);_.$slides=_.$slideTrack.children(this.options.slide);_.$slideTrack.children(this.options.slide).detach();_.$slideTrack.append(_.$slides);_.$slides.each(function(index,element){$(element).attr("data-slick-index",index);});_.$slidesCache=_.$slides;_.reinit();};Slick.prototype.animateHeight=function(){var _=this;if(_.options.slidesToShow===1&&_.options.adaptiveHeight===true&&_.options.vertical===false){var targetHeight=_.$slides.eq(_.currentSlide).outerHeight(true);_.$list.animate({height:targetHeight},_.options.speed);}};Slick.prototype.animateSlide=function(targetLeft,callback){var animProps={},_=this;_.animateHeight();if(_.options.rtl===true&&_.options.vertical===false)targetLeft=-targetLeft;if(_.transformsEnabled===false)if(_.options.vertical===false)_.$slideTrack.animate({left:targetLeft},_.options.speed,_.options.easing,callback);else _.$slideTrack.animate({top:targetLeft},_.options.speed,_.options.easing,callback);else if(_.cssTransitions===false){if(_.options.rtl===true)_.currentLeft=-_.currentLeft;$({animStart:_.currentLeft}).animate({animStart:targetLeft},{duration:_.options.speed,easing:_.options.easing,step:function(now){now=Math.ceil(now);if(_.options.vertical===false){animProps[_.animType]="translate("+now+"px, 0px)";_.$slideTrack.css(animProps);}else{animProps[_.animType]="translate(0px,"+now+"px)";_.$slideTrack.css(animProps);}},complete:function(){if(callback)callback.call();}});}else{_.applyTransition();targetLeft=Math.ceil(targetLeft);if(_.options.vertical===false)animProps[_.animType]="translate3d("+targetLeft+"px, 0px, 0px)";else animProps[_.animType]="translate3d(0px,"+targetLeft+"px, 0px)";_.$slideTrack.css(animProps);if(callback)setTimeout(function(){_.disableTransition();callback.call();},_.options.speed);}};Slick.prototype.getNavTarget=function(){var _=this,asNavFor=_.options.asNavFor;if(asNavFor&&asNavFor!==null)asNavFor=$(asNavFor).not(_.$slider);return asNavFor;};Slick.prototype.asNavFor=function(index){var _=this,asNavFor=_.getNavTarget();if(asNavFor!==null&&typeof asNavFor==="object")asNavFor.each(function(){var target=$(this).slick("getSlick");
896if(!target.unslicked)target.slideHandler(index,true);});};Slick.prototype.applyTransition=function(slide){var _=this,transition={};if(_.options.fade===false)transition[_.transitionType]=_.transformType+" "+_.options.speed+"ms "+_.options.cssEase;else transition[_.transitionType]="opacity "+_.options.speed+"ms "+_.options.cssEase;if(_.options.fade===false)_.$slideTrack.css(transition);else _.$slides.eq(slide).css(transition);};Slick.prototype.autoPlay=function(){var _=this;_.autoPlayClear();if(_.slideCount>_.options.slidesToShow)_.autoPlayTimer=setInterval(_.autoPlayIterator,_.options.autoplaySpeed);};Slick.prototype.autoPlayClear=function(){var _=this;if(_.autoPlayTimer)clearInterval(_.autoPlayTimer);};Slick.prototype.autoPlayIterator=function(){var _=this,slideTo=_.currentSlide+_.options.slidesToScroll;if(!_.paused&&!_.interrupted&&!_.focussed){if(_.options.infinite===false)if(_.direction===1&&_.currentSlide+1===_.slideCount-1)_.direction=0;else{if(_.direction===0){slideTo=_.currentSlide-_.options.slidesToScroll;if(_.currentSlide-1===0)_.direction=1;}}_.slideHandler(slideTo);}};Slick.prototype.buildArrows=function(){var _=this;if(_.options.arrows===true){_.$prevArrow=$(_.options.prevArrow).addClass("slick-arrow");_.$nextArrow=$(_.options.nextArrow).addClass("slick-arrow");if(_.slideCount>_.options.slidesToShow){_.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex");_.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex");if(_.htmlExpr.test(_.options.prevArrow))_.$prevArrow.prependTo(_.options.appendArrows);if(_.htmlExpr.test(_.options.nextArrow))_.$nextArrow.appendTo(_.options.appendArrows);if(_.options.infinite!==true)_.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true");}else _.$prevArrow.add(_.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"});}};Slick.prototype.buildDots=function(){var _=this,i,dot;if(_.options.dots===true){_.$slider.addClass("slick-dotted");dot=$("<ul />").addClass(_.options.dotsClass);for(i=0;i<=_.getDotCount();i+=1)dot.append($("<li />").append(_.options.customPaging.call(this,_,i)));_.$dots=dot.appendTo(_.options.appendDots);_.$dots.find("li").first().addClass("slick-active");}};Slick.prototype.buildOut=function(){var _=this;_.$slides=_.$slider.children(_.options.slide+":not(.slick-cloned)").addClass("slick-slide");_.slideCount=_.$slides.length;_.$slides.each(function(index,element){$(element).attr("data-slick-index",index).data("originalStyling",$(element).attr("style")||"");});_.$slider.addClass("slick-slider");_.$slideTrack=_.slideCount===0?$('<div class="slick-track"/>').appendTo(_.$slider):_.$slides.wrapAll('<div class="slick-track"/>').parent();_.$list=_.$slideTrack.wrap('<div class="slick-list"/>').parent();_.$slideTrack.css("opacity",0);if(_.options.centerMode===true||_.options.swipeToSlide===true)_.options.slidesToScroll=1;$("img[data-lazy]",_.$slider).not("[src]").addClass("slick-loading");_.setupInfinite();_.buildArrows();_.buildDots();_.updateDots();_.setSlideClasses(typeof _.currentSlide==="number"?_.currentSlide:0);if(_.options.draggable===true)_.$list.addClass("draggable");};Slick.prototype.buildRows=function(){var _=this,a,b,c,newSlides,numOfSlides,originalSlides,slidesPerSection;newSlides=document.createDocumentFragment();originalSlides=_.$slider.children();if(_.options.rows>1){slidesPerSection=_.options.slidesPerRow*_.options.rows;numOfSlides=Math.ceil(originalSlides.length/slidesPerSection);for(a=0;a<numOfSlides;a++){var slide=document.createElement("div");for(b=0;b<_.options.rows;b++){var row=document.createElement("div");for(c=0;c<_.options.slidesPerRow;c++){var target=a*slidesPerSection+(b*_.options.slidesPerRow+c);if(originalSlides.get(target))row.appendChild(originalSlides.get(target));}slide.appendChild(row);}newSlides.appendChild(slide);}_.$slider.empty().append(newSlides);_.$slider.children().children().children().css({width:100/_.options.slidesPerRow+"%",display:"inline-block"});}};Slick.prototype.checkResponsive=function(initial,forceUpdate){var _=this,breakpoint,targetBreakpoint,respondToWidth,triggerBreakpoint=false;var sliderWidth=_.$slider.width();var windowWidth=window.innerWidth||$(window).width();if(_.respondTo==="window")respondToWidth=windowWidth;else if(_.respondTo==="slider")respondToWidth=sliderWidth;else{if(_.respondTo==="min")respondToWidth=Math.min(windowWidth,sliderWidth);}if(_.options.responsive&&_.options.responsive.length&&_.options.responsive!==null){targetBreakp
896oint=null;for(breakpoint in _.breakpoints)if(_.breakpoints.hasOwnProperty(breakpoint))if(_.originalSettings.mobileFirst===false){if(respondToWidth<_.breakpoints[breakpoint])targetBreakpoint=_.breakpoints[breakpoint];}else{if(respondToWidth>_.breakpoints[breakpoint])targetBreakpoint=_.breakpoints[breakpoint];}if(targetBreakpoint!==null)if(_.activeBreakpoint!==null){if(targetBreakpoint!==_.activeBreakpoint||forceUpdate){_.activeBreakpoint=targetBreakpoint;if(_.breakpointSettings[targetBreakpoint]==="unslick")_.unslick(targetBreakpoint);else{_.options=$.extend({},_.originalSettings,_.breakpointSettings[targetBreakpoint]);if(initial===true)_.currentSlide=_.options.initialSlide;_.refresh(initial);}triggerBreakpoint=targetBreakpoint;}}else{_.activeBreakpoint=targetBreakpoint;if(_.breakpointSettings[targetBreakpoint]==="unslick")_.unslick(targetBreakpoint);else{_.options=$.extend({},_.originalSettings,_.breakpointSettings[targetBreakpoint]);if(initial===true)_.currentSlide=_.options.initialSlide;_.refresh(initial);}triggerBreakpoint=targetBreakpoint;}else{if(_.activeBreakpoint!==null){_.activeBreakpoint=null;_.options=_.originalSettings;if(initial===true)_.currentSlide=_.options.initialSlide;_.refresh(initial);triggerBreakpoint=targetBreakpoint;}}if(!initial&&triggerBreakpoint!==false)_.$slider.trigger("breakpoint",[_,triggerBreakpoint]);}};Slick.prototype.changeSlide=function(event,dontAnimate){var _=this,$target=$(event.currentTarget),indexOffset,slideOffset,unevenOffset;if($target.is("a"))event.preventDefault();if(!$target.is("li"))$target=$target.closest("li");unevenOffset=_.slideCount%_.options.slidesToScroll!==0;indexOffset=unevenOffset?0:(_.slideCount-_.currentSlide)%_.options.slidesToScroll;switch(event.data.message){case "previous":slideOffset=indexOffset===0?_.options.slidesToScroll:_.options.slidesToShow-indexOffset;if(_.slideCount>_.options.slidesToShow)_.slideHandler(_.currentSlide-slideOffset,false,dontAnimate);break;case "next":slideOffset=indexOffset===0?_.options.slidesToScroll:indexOffset;if(_.slideCount>_.options.slidesToShow)_.slideHandler(_.currentSlide+slideOffset,false,dontAnimate);break;case "index":var index=event.data.index===0?0:event.data.index||$target.index()*_.options.slidesToScroll;_.slideHandler(_.checkNavigable(index),false,dontAnimate);$target.children().trigger("focus");break;default:return;}};Slick.prototype.checkNavigable=function(index){var _=this,navigables,prevNavigable;navigables=_.getNavigableIndexes();prevNavigable=0;if(index>navigables[navigables.length-1])index=navigables[navigables.length-1];else for(var n in navigables){if(index<navigables[n]){index=prevNavigable;break;}prevNavigable=navigables[n];}return index;};Slick.prototype.cleanUpEvents=function(){var _=this;if(_.options.dots&&_.$dots!==null){$("li",_.$dots).off("click.slick",_.changeSlide).off("mouseenter.slick",$.proxy(_.interrupt,_,true)).off("mouseleave.slick",$.proxy(_.interrupt,_,false));if(_.options.accessibility===true)_.$dots.off("keydown.slick",_.keyHandler);}_.$slider.off("focus.slick blur.slick");if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){_.$prevArrow&&_.$prevArrow.off("click.slick",_.changeSlide);_.$nextArrow&&_.$nextArrow.off("click.slick",_.changeSlide);if(_.options.accessibility===true){_.$prevArrow&&_.$prevArrow.off("keydown.slick",_.keyHandler);_.$nextArrow&&_.$nextArrow.off("keydown.slick",_.keyHandler);}}_.$list.off("touchstart.slick mousedown.slick",_.swipeHandler);_.$list.off("touchmove.slick mousemove.slick",_.swipeHandler);_.$list.off("touchend.slick mouseup.slick",_.swipeHandler);
896_.$list.off("touchcancel.slick mouseleave.slick",_.swipeHandler);_.$list.off("click.slick",_.clickHandler);$(document).off(_.visibilityChange,_.visibility);_.cleanUpSlideEvents();if(_.options.accessibility===true)_.$list.off("keydown.slick",_.keyHandler);if(_.options.focusOnSelect===true)$(_.$slideTrack).children().off("click.slick",_.selectHandler);$(window).off("orientationchange.slick.slick-"+_.instanceUid,_.orientationChange);$(window).off("resize.slick.slick-"+_.instanceUid,_.resize);$("[draggable!=true]",_.$slideTrack).off("dragstart",_.preventDefault);$(window).off("load.slick.slick-"+_.instanceUid,_.setPosition);};Slick.prototype.cleanUpSlideEvents=function(){var _=this;_.$list.off("mouseenter.slick",$.proxy(_.interrupt,_,true));_.$list.off("mouseleave.slick",$.proxy(_.interrupt,_,false));};Slick.prototype.cleanUpRows=function(){var _=this,originalSlides;if(_.options.rows>1){originalSlides=_.$slides.children().children();originalSlides.removeAttr("style");_.$slider.empty().append(originalSlides);}};Slick.prototype.clickHandler=function(event){var _=this;if(_.shouldClick===false){event.stopImmediatePropagation();event.stopPropagation();event.preventDefault();}};Slick.prototype.destroy=function(refresh){var _=this;_.autoPlayClear();_.touchObject={};_.cleanUpEvents();$(".slick-cloned",_.$slider).detach();if(_.$dots)_.$dots.remove();if(_.$prevArrow&&_.$prevArrow.length){_.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display","");if(_.htmlExpr.test(_.options.prevArrow))_.$prevArrow.remove();}if(_.$nextArrow&&_.$nextArrow.length){_.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display","");if(_.htmlExpr.test(_.options.nextArrow))_.$nextArrow.remove();}if(_.$slides){_.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){$(this).attr("style",$(this).data("originalStyling"));});_.$slideTrack.children(this.options.slide).detach();_.$slideTrack.detach();_.$list.detach();_.$slider.append(_.$slides);}_.cleanUpRows();_.$slider.removeClass("slick-slider");_.$slider.removeClass("slick-initialized");_.$slider.removeClass("slick-dotted");_.unslicked=true;if(!refresh)_.$slider.trigger("destroy",[_]);};Slick.prototype.disableTransition=function(slide){var _=this,transition={};transition[_.transitionType]="";if(_.options.fade===false)_.$slideTrack.css(transition);else _.$slides.eq(slide).css(transition);};Slick.prototype.fadeSlide=function(slideIndex,callback){var _=this;if(_.cssTransitions===false){_.$slides.eq(slideIndex).css({zIndex:_.options.zIndex});_.$slides.eq(slideIndex).animate({opacity:1},_.options.speed,_.options.easing,callback);}else{_.applyTransition(slideIndex);_.$slides.eq(slideIndex).css({opacity:1,zIndex:_.options.zIndex});if(callback)setTimeout(function(){_.disableTransition(slideIndex);callback.call();},_.options.speed);}};Slick.prototype.fadeSlideOut=function(slideIndex){var _=this;if(_.cssTransitions===false)_.$slides.eq(slideIndex).animate({opacity:0,zIndex:_.options.zIndex-2},_.options.speed,_.options.easing);else{_.applyTransition(slideIndex);_.$slides.eq(slideIndex).css({opacity:0,zIndex:_.options.zIndex-2});}};Slick.prototype.filterSlides=Slick.prototype.slickFilter=function(filter){var _=this;if(filter!==null){_.$slidesCache=_.$slides;_.unload();_.$slideTrack.children(this.options.slide).detach();_.$slidesCache.filter(filter).appendTo(_.$slideTrack);_.reinit();}};Slick.prototype.focusHandler=function(){var _=this;_.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(event){event.stopImmediatePropagation();var $sf=$(this);setTimeout(function(){if(_.options.pauseOnFocus){_.focussed=$sf.is(":focus");_.autoPlay();}},0);});};Slick.prototype.getCurrent=Slick.prototype.slickCurrentSlide=function(){var _=this;return _.currentSlide;};Slick.prototype.getDotCount=function(){var _=this;var breakPoint=0;var counter=0;var pagerQty=0;if(_.options.infinite===true)if(_.slideCount<=_.options.slidesToShow)++pagerQty;else while(breakPoint<_.slideCount){++pagerQty;breakPoint=counter+_.options.slidesToScroll;counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow;}else if(_.options.centerMode===true)pagerQty=_.slideCount;else if(!_.options.asNavFor)pagerQty=1+Math.ceil((_.slideCount-_.options.slidesToShow)/_.options.slidesToScroll);else while(breakPoint<_.slideCount){++pagerQty;breakPoint=counter+_.options.slidesToScroll;counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow;}return pagerQty-1;};Slick.prototype.getLeft=function(slideIndex){var _=this,targetLeft,verticalHeight,verticalOffset=0,targetSlide,coef;_.slideOffset=0;verticalHeight=_.$slides.first().outerHeight(true);if(_.options.infinite===true){if(_.slideCount>_.options.slidesToShow){_.slideOffset=_.slideWidth*_.options.slidesToShow*-1;coef=-1;if(_.options.vertical===true&&_.options.centerMode===true)if(_.options.slidesToShow===2)coef=-1.5;else{if(_.options.slidesToShow===1)coef=-2;}verticalOffset=verticalHeight*_.options.slidesToShow*coef;}if(_.slideCount%_.options.slidesToScroll!==0)if(slideIndex+_.options.slidesToScroll>_.slideCount&&_.slideCount>_.options.slidesToShow)if(slideIndex>_.slideCount){_.slideOffset=(_.options.slidesToShow-(slideIndex-_.slideCount))*_.slideWidth*-1;verticalOffset=(_.options.slidesToShow-(slideIndex-_.slideCount))*verticalHeight*-1;}else{_.slideOffset=_.slideCount%_.options.slidesToScroll*_.slideWidth*-1;verticalOffset=_.slideCount%_.options.slidesToScroll*verticalHeight*-1;}}else{if(slideIndex+_.options.slidesToShow>
896_.slideCount){_.slideOffset=(slideIndex+_.options.slidesToShow-_.slideCount)*_.slideWidth;verticalOffset=(slideIndex+_.options.slidesToShow-_.slideCount)*verticalHeight;}}if(_.slideCount<=_.options.slidesToShow){_.slideOffset=0;verticalOffset=0;}if(_.options.centerMode===true&&_.slideCount<=_.options.slidesToShow)_.slideOffset=_.slideWidth*Math.floor(_.options.slidesToShow)/2-_.slideWidth*_.slideCount/2;else if(_.options.centerMode===true&&_.options.infinite===true)_.slideOffset+=_.slideWidth*Math.floor(_.options.slidesToShow/2)-_.slideWidth;else{if(_.options.centerMode===true){_.slideOffset=0;_.slideOffset+=_.slideWidth*Math.floor(_.options.slidesToShow/2);}}if(_.options.vertical===false)targetLeft=slideIndex*_.slideWidth*-1+_.slideOffset;else targetLeft=slideIndex*verticalHeight*-1+verticalOffset;if(_.options.variableWidth===true){if(_.slideCount<=_.options.slidesToShow||_.options.infinite===false)targetSlide=_.$slideTrack.children(".slick-slide").eq(slideIndex);else targetSlide=_.$slideTrack.children(".slick-slide").eq(slideIndex+_.options.slidesToShow);if(_.options.rtl===true)if(targetSlide[0])targetLeft=(_.$slideTrack.width()-targetSlide[0].offsetLeft-targetSlide.width())*-1;else targetLeft=0;else targetLeft=targetSlide[0]?targetSlide[0].offsetLeft*-1:0;if(_.options.centerMode===true){if(_.slideCount<=_.options.slidesToShow||_.options.infinite===false)targetSlide=_.$slideTrack.children(".slick-slide").eq(slideIndex);else targetSlide=_.$slideTrack.children(".slick-slide").eq(slideIndex+_.options.slidesToShow+1);if(_.options.rtl===true)if(targetSlide[0])targetLeft=(_.$slideTrack.width()-targetSlide[0].offsetLeft-targetSlide.width())*-1;else targetLeft=0;else targetLeft=targetSlide[0]?targetSlide[0].offsetLeft*-1:0;targetLeft+=(_.$list.width()-targetSlide.outerWidth())/2;}}return targetLeft;};Slick.prototype.getOption=Slick.prototype.slickGetOption=function(option){var _=this;return _.options[option];};Slick.prototype.getNavigableIndexes=function(){var _=this,breakPoint=0,counter=0,indexes=[],max;if(_.options.infinite===false)max=_.slideCount;else{breakPoint=_.options.slidesToScroll*-1;counter=_.options.slidesToScroll*-1;max=_.slideCount*2;}while(breakPoint<max){indexes.push(breakPoint);breakPoint=counter+_.options.slidesToScroll;counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow;}return indexes;};Slick.prototype.getSlick=function(){return this;};Slick.prototype.getSlideCount=function(){var _=this,slidesTraversed,swipedSlide,centerOffset;centerOffset=_.options.centerMode===true?_.slideWidth*Math.floor(_.options.slidesToShow/2):0;if(_.options.swipeToSlide===true){_.$slideTrack.find(".slick-slide").each(function(index,slide){if(slide.offsetLeft-centerOffset+$(slide).outerWidth()/2>_.swipeLeft*-1){swipedSlide=slide;return false;}});slidesTraversed=Math.abs($(swipedSlide).attr("data-slick-index")-_.currentSlide)||1;return slidesTraversed;}else return _.options.slidesToScroll;};Slick.prototype.goTo=Slick.prototype.slickGoTo=function(slide,dontAnimate){var _=this;_.changeSlide({data:{message:"index",index:parseInt(slide)}},dontAnimate);};Slick.prototype.init=function(creation){var _=this;if(!$(_.$slider).hasClass("slick-initialized")){$(_.$slider).addClass("slick-initialized");_.buildRows();_.buildOut();_.setProps();_.startLoad();_.loadSlider();_.initializeEvents();_.updateArrows();_.updateDots();_.checkResponsive(true);_.focusHandler();}if(creation)_.$slider.trigger("init",[_]);if(_.options.accessibility===true)_.initADA();if(_.options.autoplay){_.paused=false;_.autoPlay();}};Slick.prototype.initADA=function(){var _=this,numDotGroups=Math.ceil(_.slideCount/_.options.slidesToShow),tabControlIndexes=_.getNavigableIndexes().filter(function(val){return val>=0&&val<_.slideCount;});_.$slides.add(_.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"});if(_.$dots!==null){_.$slides.not(_.$slideTrack.find(".slick-cloned")).each(function(i){var slideControlIndex=tabControlIndexes.indexOf(i);$(this).attr({role:"tabpanel",id:"slick-slide"+_.instanceUid+i,tabindex:-1});if(slideControlIndex!==-1)$(this).attr({"aria-describedby":"slick-slide-control"+_.instanceUid+slideControlIndex});});_.$dots.attr("role","tablist").find("li").each(function(i){var mappedSlideIndex=tab
896ControlIndexes[i];$(this).attr({role:"presentation"});$(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+_.instanceUid+i,"aria-controls":"slick-slide"+_.instanceUid+mappedSlideIndex,"aria-label":i+1+" of "+numDotGroups,"aria-selected":null,tabindex:"-1"});}).eq(_.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end();}for(var i=_.currentSlide,max=i+_.options.slidesToShow;i<max;i++)_.$slides.eq(i).attr("tabindex",0);_.activateADA();};Slick.prototype.initArrowEvents=function(){var _=this;if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){_.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},_.changeSlide);_.$nextArrow.off("click.slick").on("click.slick",{message:"next"},_.changeSlide);if(_.options.accessibility===true){_.$prevArrow.on("keydown.slick",_.keyHandler);_.$nextArrow.on("keydown.slick",_.keyHandler);}}};Slick.prototype.initDotEvents=function(){var _=this;if(_.options.dots===true){$("li",_.$dots).on("click.slick",{message:"index"},_.changeSlide);if(_.options.accessibility===true)_.$dots.on("keydown.slick",_.keyHandler);}if(_.options.dots===true&&_.options.pauseOnDotsHover===true)$("li",_.$dots).on("mouseenter.slick",$.proxy(_.interrupt,_,true)).on("mouseleave.slick",$.proxy(_.interrupt,_,false));};Slick.prototype.initSlideEvents=function(){var _=this;if(_.options.pauseOnHover){_.$list.on("mouseenter.slick",$.proxy(_.interrupt,_,true));_.$list.on("mouseleave.slick",$.proxy(_.interrupt,_,false));}};Slick.prototype.initializeEvents=function(){var _=this;_.initArrowEvents();_.initDotEvents();_.initSlideEvents();_.$list.on("touchstart.slick mousedown.slick",{action:"start"},_.swipeHandler);_.$list.on("touchmove.slick mousemove.slick",{action:"move"},_.swipeHandler);_.$list.on("touchend.slick mouseup.slick",{action:"end"},_.swipeHandler);
896_.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},_.swipeHandler);_.$list.on("click.slick",_.clickHandler);$(document).on(_.visibilityChange,$.proxy(_.visibility,_));if(_.options.accessibility===true)_.$list.on("keydown.slick",_.keyHandler);if(_.options.focusOnSelect===true)$(_.$slideTrack).children().on("click.slick",_.selectHandler);$(window).on("orientationchange.slick.slick-"+_.instanceUid,$.proxy(_.orientationChange,_));$(window).on("resize.slick.slick-"+_.instanceUid,$.proxy(_.resize,_));$("[draggable!=true]",_.$slideTrack).on("dragstart",_.preventDefault);$(window).on("load.slick.slick-"+_.instanceUid,_.setPosition);$(_.setPosition);};Slick.prototype.initUI=function(){var _=this;if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){_.$prevArrow.show();_.$nextArrow.show();}if(_.options.dots===true&&_.slideCount>_.options.slidesToShow)_.$dots.show();};Slick.prototype.keyHandler=function(event){var _=this;if(!event.target.tagName.match("TEXTAREA|INPUT|SELECT"))if(event.keyCode===37&&_.options.accessibility===true)_.changeSlide({data:{message:_.options.rtl===true?"next":"previous"}});else{if(event.keyCode===39&&_.options.accessibility===true)_.changeSlide({data:{message:_.options.rtl===true?"previous":"next"}});}};Slick.prototype.lazyLoad=function(){var _=this,loadRange,cloneRange,rangeStart,rangeEnd;function loadImages(imagesScope){$("img[data-lazy]",imagesScope).each(function(){var image=$(this),imageSource=$(this).attr("data-lazy"),imageSrcSet=$(this).attr("data-srcset"),imageSizes=$(this).attr("data-sizes")||_.$slider.attr("data-sizes"),imageToLoad=document.createElement("img");imageToLoad.onload=function(){image.animate({opacity:0}
vendor: 4,131 bytes, line 896
896,100,function(){if(imageSrcSet){image.attr("srcset",imageSrcSet);if(imageSizes)image.attr("sizes",imageSizes);}image.attr("src",imageSource).animate({opacity:1},200,function(){image.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading");});_.$slider.trigger("lazyLoaded",[_,image,imageSource]);});};imageToLoad.onerror=function(){image.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error");_.$slider.trigger("lazyLoadError",[_,image,imageSource]);};imageToLoad.src=imageSource;});}if(_.options.centerMode===true)if(_.options.infinite===true){rangeStart=_.currentSlide+(_.options.slidesToShow/2+1);rangeEnd=rangeStart+_.options.slidesToShow+2;}else{rangeStart=Math.max(0,_.currentSlide-(_.options.slidesToShow/2+1));rangeEnd=2+(_.options.slidesToShow/2+1)+_.currentSlide;}else{rangeStart=_.options.infinite?_.options.slidesToShow+_.currentSlide:_.currentSlide;rangeEnd=Math.ceil(rangeStart+_.options.slidesToShow);if(_.options.fade===true){if(rangeStart>0)rangeStart--;if(rangeEnd<=_.slideCount)rangeEnd++;}}loadRange=_.$slider.find(".slick-slide").slice(rangeStart,rangeEnd);if(_.options.lazyLoad==="anticipated"){var prevSlide=rangeStart-1,nextSlide=rangeEnd,$slides=_.$slider.find(".slick-slide");for(var i=0;i<_.options.slidesToScroll;i++){if(prevSlide<0)prevSlide=_.slideCount-1;loadRange=loadRange.add($slides.eq(prevSlide));loadRange=loadRange.add($slides.eq(nextSlide));prevSlide--;nextSlide++;}}loadImages(loadRange);if(_.slideCount<=_.options.slidesToShow){cloneRange=_.$slider.find(".slick-slide");loadImages(cloneRange);}else if(_.currentSlide>=_.slideCount-_.options.slidesToShow){cloneRange=_.$slider.find(".slick-cloned").slice(0,_.options.slidesToShow);loadImages(cloneRange);}else{if(_.currentSlide===0){cloneRange=_.$slider.find(".slick-cloned").slice(_.options.slidesToShow*-1);loadImages(cloneRange);}}};Slick.prototype.loadSlider=function(){var _=this;_.setPosition();_.$slideTrack.css({opacity:1});_.$slider.removeClass("slick-loading");_.initUI();if(_.options.lazyLoad==="progressive")_.progressiveLazyLoad();};Slick.prototype.next=Slick.prototype.slickNext=function(){var _=this;_.changeSlide({data:{message:"next"}});};Slick.prototype.orientationChange=function(){var _=this;_.checkResponsive();_.setPosition();};Slick.prototype.pause=Slick.prototype.slickPause=function(){var _=this;_.autoPlayClear();_.paused=true;};Slick.prototype.play=Slick.prototype.slickPlay=function(){var _=this;_.autoPlay();_.options.autoplay=true;_.paused=false;_.focussed=false;_.interrupted=false;};Slick.prototype.postSlide=function(index){var _=this;if(!_.unslicked){_.$slider.trigger("afterChange",[_,index]);_.animating=false;if(_.slideCount>_.options.slidesToShow)_.setPosition();_.swipeLeft=null;if(_.options.autoplay)_.autoPlay();if(_.options.accessibility===true){_.initADA();if(_.options.focusOnChange){var $currentSlide=$(_.$slides.get(_.currentSlide));$currentSlide.attr("tabindex",0).focus();}}}};Slick.prototype.prev=Slick.prototype.slickPrev=function(){var _=this;_.changeSlide({data:{message:"previous"}});};Slick.prototype.preventDefault=function(event){event.preventDefault();};Slick.prototype.progressiveLazyLoad=function(tryCount){tryCount=tryCount||1;var _=this,$imgsToLoad=$("img[data-lazy]",_.$slider),image,imageSource,imageSrcSet,imageSizes,imageToLoad;if($imgsToLoad.length){image=$imgsToLoad.first();imageSource=image.attr("data-lazy");imageSrcSet=image.attr("data-srcset");imageSizes=image.attr("data-sizes")||_.$slider.attr("data-sizes");imageToLoad=document.createElement("img");imageToLoad.onload=function(){if(imageSrcSet){image.attr("srcset",imageSrcSet);if(imageSizes)image.attr("sizes",imageSizes);}image.attr("src",imageSource).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading");if(_.options.adaptiveHeight===true)_.setPosition();_.$slider.trigger("lazyLoaded",[_,image,imageSource]);_.progressiveLazyLoad();};imageToLoad.onerror=function(){if(tryCount<3)setTimeout(function(){_.progressiveLazyLoad(tryCount+1);},500);else{image.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error");
896_.$slider.trigger("lazyLoadError",[_,image,imageSource]);_.progressiveLazyLoad();}};imageToLoad.src=imageSource;}else _.$slider.trigger("allImagesLoaded",[_]);};Slick.prototype.refresh=function(initializing){var _=this,currentSlide,lastVisibleIndex;lastVisibleIndex=_.slideCount-_.options.slidesToShow;if(!_.options.infinite&&_.currentSlide>lastVisibleIndex)_.currentSlide=lastVisibleIndex;if(_.slideCount<=_.options.slidesToShow)_.currentSlide=0;currentSlide=_.currentSlide;_.destroy(true);$.extend(_,_.initials,{currentSlide});_.init();if(!initializing)_.changeSlide({data:{message:"index",index:currentSlide}},false);};Slick.prototype.registerBreakpoints=function(){var _=this,breakpoint,currentBreakpoint,l,responsiveSettings=_.options.responsive||null;if(Array.isArray(responsiveSettings)&&responsiveSettings.length){_.respondTo=_.options.respondTo||"window";for(breakpoint in responsiveSettings){l=_.breakpoints.length-1;if(responsiveSettings.hasOwnProperty(breakpoint)){currentBreakpoint=responsiveSettings[breakpoint].breakpoint;while(l>=0){if(_.breakpoints[l]&&_.breakpoints[l]===currentBreakpoint)_.breakpoints.splice(l,1);l--;}_.breakpoints.push(currentBreakpoint);_.breakpointSettings[currentBreakpoint]=responsiveSettings[breakpoint].settings;}}_.breakpoints.sort(function(a,b){return _.options.mobileFirst?a-b:b-a;});}};Slick.prototype.reinit=function(){var _=this;_.$slides=_.$slideTrack.children(_.options.slide).addClass("slick-slide");_.slideCount=_.$slides.length;if(_.currentSlide>=_.slideCount&&_.currentSlide!==0)_.currentSlide=_.currentSlide-_.options.slidesToScroll;if(_.slideCount<=_.options.slidesToShow)_.currentSlide=0;_.registerBreakpoints();_.setProps();_.setupInfinite();_.buildArrows();_.updateArrows();_.initArrowEvents();_.buildDots();_.updateDots();_.initDotEvents();_.cleanUpSlideEvents();_.initSlideEvents();_.checkResponsive(false,true);if(_.options.focusOnSelect===true)$(_.$slideTrack).children().on("click.slick",_.selectHandler);_.setSlideClasses(typeof _.currentSlide==="number"?_.currentSlide:0);_.setPosition();_.focusHandler();_.paused=!_.options.autoplay;_.autoPlay();_.$slider.trigger("reInit",[_]);};Slick.prototype.resize=function(){var _=this;if($(window).width()!==_.windowWidth){clearTimeout(_.windowDelay);_.windowDelay=window.setTimeout(function(){_.windowWidth=$(window).width();_.checkResponsive();if(!_.unslicked)_.setPosition();},50);}};Slick.prototype.removeSlide=Slick.prototype.slickRemove=function(index,removeBefore,removeAll){var _=this;if(typeof index==="boolean"){removeBefore=index;index=removeBefore===true?0:_.slideCount-1;}else index=removeBefore===true?--index:index;if(_.slideCount<1||index<0||index>_.slideCount-1)return false;_.unload();if(removeAll===true)_.$slideTrack.children().remove();else _.$slideTrack.children(this.options.slide).eq(index).remove();_.$slides=_.$slideTrack.children(this.options.slide);_.$slideTrack.children(this.options.slide).detach();_.$slideTrack.append(_.$slides);_.$slidesCache=_.$slides;_.reinit();};Slick.prototype.setCSS=function(position){var _=this,positionProps={},x,y;if(_.options.rtl===true)position=-position;x=_.positionProp=="left"?Math.ceil(position)+"px":"0px";y=_.positionProp=="top"?Math.ceil(position)+"px":"0px";positionProps[_.positionProp]=position;if(_.transformsEnabled===false)_.$slideTrack.css(positionProps);else{positionProps={};if(_.cssTransitions===false){positionProps[_.animType]="translate("+x+", "+y+")";_.$slideTrack.css(positionProps);}else{positionProps[_.animType]="translate3d("+x+", "+y+", 0px)";_.$slideTrack.css(positionProps);}}};Slick.prototype.setDimensions=function(){var _=this;if(_.options.vertical===false){if(_.options.centerMode===true)_.$list.css({padding:"0px "+_.options.centerPadding});}else{_.$list.height(_.$slides.first().outerHeight(true)*_.options.slidesToShow);if(_.options.centerMode===true)_.$list.css({padding:_.options.centerPadding+" 0px"});}_.listWidth=_.$list.width();_.listHeight=_.$list.height();if(_.options.vertical===false&&_.options.variableWidth===false){_.slideWidth=Math.ceil(_.listWidth/_.options.slidesToShow);_.$slideTrack.width(Math.ceil(_.slideWidth*_.$slideTrack.children(".slick-slide").length));}else if(_.options.variableWidth===true)_.$slideTrack.width(5e3*_.slideCount);else{_.slideWidth=Math.ceil(_.listWidth);_.$slideTrack.height(Math.ceil(_.$slides.first().outerHeight(true)*_.$slideTrack.children(".slick-slide").length));}var offset=_.$slides.first().outerWidth(true)-_.$slides.first().width();if(_.options.variableWidth===false)_.$slideTrack.children(".slick-slide").width(_.slideWidth-offset);};Slick.prototype.setFade=function(){var _=this,targetLeft;_.$slides.each(function(index,element){targetLeft=_.slideWidth*index*-1;if(_.options.rtl===true)$(element).css({position:"relative",right:targetLeft,top:0,zIndex:_.options.zIndex-2,opacity:0}
896);else $(element).css({position:"relative",left:targetLeft,top:0,zIndex:_.options.zIndex-2,opacity:0});});_.$slides.eq(_.currentSlide).css({zIndex:_.options.zIndex-1,opacity:1});};Slick.prototype.setHeight=function(){var _=this;if(_.options.slidesToShow===1&&_.options.adaptiveHeight===true&&_.options.vertical===false){var targetHeight=_.$slides.eq(_.currentSlide).outerHeight(true);_.$list.css("height",targetHeight);}};Slick.prototype.setOption=Slick.prototype.slickSetOption=function(){var _=this,l,item,option,value,refresh=false,type;if(typeof arguments[0]==="object"&&arguments[0]!==null&&!Array.isArray(arguments[0])){option=arguments[0];refresh=arguments[1];type="multiple";}else{if(typeof arguments[0]==="string"){option=arguments[0];value=arguments[1];refresh=arguments[2];if(arguments[0]==="responsive"&&Array.isArray(arguments[1]))type="responsive";else{if(typeof arguments[1]!=="undefined")type="single";}}}if(type==="single")_.options[option]=value;else if(type==="multiple")$.each(option,function(opt,val){_.options[opt]=val;});else{if(type==="responsive")for(item in value)if(!Array.isArray(_.options.responsive))_.options.responsive=[value[item]];else{l=_.options.responsive.length-1;while(l>=0){if(_.options.responsive[l].breakpoint===value[item].breakpoint)_.options.responsive.splice(l,1);l--;}_.options.responsive.push(value[item]);}}if(refresh){_.unload();_.reinit();}};Slick.prototype.setPosition=function(){var _=this;_.setDimensions();_.setHeight();if(_.options.fade===false)_.setCSS(_.getLeft(_.currentSlide));else _.setFade();_.$slider.trigger("setPosition",[_]);};Slick.prototype.setProps=function(){var _=this,bodyStyle=document.body.style;_.positionProp=_.options.vertical===true?"top":"left";if(_.positionProp==="top")_.$slider.addClass("slick-vertical");else _.$slider.removeClass("slick-vertical");if(bodyStyle.WebkitTransition!==undefined||bodyStyle.MozTransition!==undefined||bodyStyle.msTransition!==undefined)if(_.options.useCSS===true)_.cssTransitions=true;if(_.options.fade)if(typeof _.options.zIndex==="number"){if(_.options.zIndex<3)_.options.zIndex=3;}else _.options.zIndex=_.defaults.zIndex;if(bodyStyle.OTransform!==undefined){_.animType="OTransform";_.transformType="-o-transform";_.transitionType="OTransition";if(bodyStyle.perspectiveProperty===undefined&&bodyStyle.webkitPerspective===undefined)_.animType=false;}if(bodyStyle.MozTransform!==undefined){_.animType="MozTransform";_.transformType="-moz-transform";_.transitionType="MozTransition";if(bodyStyle.perspectiveProperty===undefined&&bodyStyle.MozPerspective===undefined)_.animType=false;}if(bodyStyle.webkitTransform!==undefined){_.animType="webkitTransform";_.transformType="-webkit-transform";_.transitionType="webkitTransition";if(bodyStyle.perspectiveProperty===undefined&&bodyStyle.webkitPerspective===undefined)_.animType=false;}if(bodyStyle.msTransform!==undefined){_.animType="msTransform";_.transformType="-ms-transform";_.transitionType="msTransition";if(bodyStyle.msTransform===undefined)_.animType=false;}if(bodyStyle.transform!==undefined&&_.animType!==false){_.animType="transform";_.transformType="transform";_.transitionType="transition";}_.transformsEnabled=_.options.useTransform&&(_.animType!==null&&_.animType!==false);};Slick.prototype.setSlideClasses=function(index){var _=this,centerOffset,allSlides,indexOffset,remainder;allSlides=_.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");_.$slides.eq(index).addClass("slick-current");if(_.options.centerMode===true){var evenCoef=_.options.slidesToShow%2===0?1:0;centerOffset=Math.floor(_.options.slidesToShow/2);if(_.options.infinite===true){if(index>=centerOffset&&index<=_.slideCount-1-centerOffset)_.$slides.slice(index-centerOffset+evenCoef,index+centerOffset+1).addClass("slick-active").attr("aria-hidden","false");else{indexOffset=_.options.slidesToShow+index;allSlides.slice(indexOffset-centerOffset+1+evenCoef,indexOffset+centerOffset+2).addClass("slick-active").attr("aria-hidden","false");}if(index===0)allSlides.eq(allSlides.length-1-_.options.slidesToShow).addClass("slick-center");else{if(index===_.slideCount-1)allSlides.eq(_.options.slidesToShow).addClass("slick-center");}}_.$slides.eq(index).addClass("slick-center");}else if(index>=0&&index<=_.slideCount-_.options.slidesToShow)_.$slides.slice(index,index+_.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false");else if(allSlides.length<=_.options.slidesToShow)allSlides.addClass("slick-active").attr("aria-hidden","false");else{remainder=_.slideCount%_.options.slidesToShow;indexOffset=_.options.infinite===true?_.options.slidesToShow+index:index;if(_.options.slidesToShow==_.options.slidesToScroll&&_.slideCount-index<_.options.slidesToShow)allSlides.slice(indexOffset-(_.options.slidesToShow-remainder),indexOffset+remainder).addClass("slick-active").attr("aria-hidden","false");else allSlides.slice(indexOffset,indexOffset+_.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false");}if(_.options.lazyLoad==="ondemand"||_.options.lazyLoad==="anticipated")_.lazyLoad();};Slick.prototype.setupInfinite=function(){var _=this,i,slideIndex,infiniteCount;if(_.options.fade===true)_.options.centerMode=false;if(_.options.infinite===true&&_.options.fade===false){slideIndex=null;if(_.slideCount>_.options.slidesToShow){if(_.options.centerMode===true)infiniteCount=_.options.slidesToShow+1;else infiniteCount=_.options.slidesToShow;for(i=_.slideCount;i>_.slideCount-infiniteCount;i-=1){slideIndex=i-1;$(_.$slides[slideIndex]).clone(true).attr("id","").attr("data-slick-index",slideIndex-_.slideCount).prependTo(_.$slideTrack).addClass("slick-cloned");}for(i=0;i<infiniteCount+_.slideCount;i+=1){slideIndex=i;$(_.$slides[slideIndex]).clone(true).attr("id","").attr("data-slick-index",slideIndex+_.slideCount).appendTo(_.$slideTrack).addClass("slick-cloned");}_.$slideTrack.find(".slick-cloned").find("[id]").each(function(){$(this).attr("id","");});}}};Slick.prototype.interrupt=function(toggle){var _=this;if(!toggle)_.autoPlay();_.interrupted=toggle;};Slick.prototype.selectHandler=function(event){var _=this;var targetElement=$(event.target).is(".slick-slide")?$(event.target):$(event.target).parents(".slick-slide");
896var index=parseInt(targetElement.attr("data-slick-index"));if(!index)index=0;if(_.slideCount<=_.options.slidesToShow){_.slideHandler(index,false,true);return;}_.slideHandler(index);};Slick.prototype.slideHandler=function(index,sync,dontAnimate){var targetSlide,animSlide,oldSlide,slideLeft,targetLeft=null,_=this,navTarget;sync=sync||false;if(_.animating===true&&_.options.waitForAnimate===true)return;if(_.options.fade===true&&_.currentSlide===index)return;if(sync===false)_.asNavFor(index);targetSlide=index;targetLeft=_.getLeft(targetSlide);slideLeft=_.getLeft(_.currentSlide);_.currentLeft=_.swipeLeft===null?slideLeft:_.swipeLeft;if(_.options.infinite===false&&_.options.centerMode===false&&(index<0||index>_.getDotCount()*_.options.slidesToScroll)){if(_.options.fade===false){targetSlide=_.currentSlide;if(dontAnimate!==true)_.animateSlide(slideLeft,function(){_.postSlide(targetSlide);});else _.postSlide(targetSlide);}return;}else{if(_.options.infinite===false&&_.options.centerMode===true&&(index<0||index>_.slideCount-_.options.slidesToScroll)){if(_.options.fade===false){targetSlide=_.currentSlide;if(dontAnimate!==true)_.animateSlide(slideLeft,function(){_.postSlide(targetSlide);});else _.postSlide(targetSlide);}return;}}if(_.options.autoplay)clearInterval(_.autoPlayTimer);if(targetSlide<0)if(_.slideCount%_.options.slidesToScroll!==0)animSlide=_.slideCount-_.slideCount%_.options.slidesToScroll;else animSlide=_.slideCount+targetSlide;else if(targetSlide>=_.slideCount)if(_.slideCount%_.options.slidesToScroll!==0)animSlide=0;else animSlide=targetSlide-_.slideCount;else animSlide=targetSlide;_.animating=true;_.$slider.trigger("beforeChange",[_,_.currentSlide,animSlide]);oldSlide=_.currentSlide;_.currentSlide=animSlide;_.setSlideClasses(_.currentSlide);if(_.options.asNavFor){navTarget=_.getNavTarget();navTarget=navTarget.slick("getSlick");if(navTarget.slideCount<=navTarget.options.slidesToShow)navTarget.setSlideClasses(_.currentSlide);}_.updateDots();_.updateArrows();if(_.options.fade===true){if(dontAnimate!==true){_.fadeSlideOut(oldSlide);_.fadeSlide(animSlide,function(){_.postSlide(animSlide);});}else _.postSlide(animSlide);_.animateHeight();return;}if(dontAnimate!==true)_.animateSlide(targetLeft,function(){_.postSlide(animSlide);});else _.postSlide(animSlide);};Slick.prototype.startLoad=function(){var _=this;if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){_.$prevArrow.hide();_.$nextArrow.hide();}if(_.options.dots===true&&_.slideCount>_.options.slidesToShow)_.$dots.hide();_.$slider.addClass("slick-loading");};Slick.prototype.swipeDirection=function(){var xDist,yDist,r,swipeAngle,_=this;xDist=_.touchObject.startX-_.touchObject.curX;yDist=_.touchObject.startY-_.touchObject.curY;r=Math.atan2(yDist,xDist);swipeAngle=Math.round(r*180/Math.PI);if(swipeAngle<0)swipeAngle=360-Math.abs(swipeAngle);if(swipeAngle<=45&&swipeAngle>=0)return _.options.rtl===false?"left":"right";if(swipeAngle<=360&&swipeAngle>=315)return _.options.rtl===false?"left":"right";if(swipeAngle>=135&&swipeAngle<=225)return _.options.rtl===false?"right":"left";if(_.options.verticalSwiping===true)if(swipeAngle>=35&&swipeAngle<=135)return "down";else return "up";return "vertical";};Slick.prototype.swipeEnd=function(event){var _=this,slideCount,direction;_.dragging=false;_.swiping=false;if(_.scrolling){_.scrolling=false;return false;}_.interrupted=false;_.shouldClick=_.touchObject.swipeLength>10?false:true;if(_.touchObject.curX===undefined)return false;if(_.touchObject.edgeHit===true)_.$slider.trigger("edge",[_,_.swipeDirection()]);if(_.touchObject.swipeLength>=_.touchObject.minSwipe){direction=_.swipeDirection();switch(direction){case "left":case "down":slideCount=_.options.swipeToSlide?_.checkNavigable(_.currentSlide+_.getSlideCount()):_.currentSlide+_.getSlideCount();_.currentDirection=0;break;case "right":case "up":slideCount=_.options.swipeToSlide?_.checkNavigable(_.currentSlide-_.getSlideCount()):_.currentSlide-_.getSlideCount();_.currentDirection=1;break;default:}if(direction!="vertical"){_.slideHandler(slideCount);_.touchObject={};_.$slider.trigger("swipe",[_,direction]);}}else{if(_.touchObject.startX!==_.touchObject.curX){_.slideHandler(_.currentSlide);_.touchObject={};}}};Slick.prototype.swipeHandler=function(event){var _=this;if(_.options.swipe===false||"ontouchend" in document&&_.options.swipe===false)return;
896else{if(_.options.draggable===false&&event.type.indexOf("mouse")!==-1)return;}_.touchObject.fingerCount=event.originalEvent&&event.originalEvent.touches!==undefined?event.originalEvent.touches.length:1;_.touchObject.minSwipe=_.listWidth/_.options.touchThreshold;if(_.options.verticalSwiping===true)_.touchObject.minSwipe=_.listHeight/_.options.touchThreshold;switch(event.data.action){case "start":_.swipeStart(event);break;case "move":_.swipeMove(event);break;case "end":_.swipeEnd(event);break;}};Slick.prototype.swipeMove=function(event){var _=this,edgeWasHit=false,curLeft,swipeDirection,swipeLength,positionOffset,touches,verticalSwipeLength;touches=event.originalEvent!==undefined?event.originalEvent.touches:null;if(!_.dragging||_.scrolling||touches&&touches.length!==1)return false;curLeft=_.getLeft(_.currentSlide);_.touchObject.curX=touches!==undefined?touches[0].pageX:event.clientX;_.touchObject.curY=touches!==undefined?touches[0].pageY:event.clientY;_.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(_.touchObject.curX-_.touchObject.startX,2)));verticalSwipeLength=Math.round(Math.sqrt(Math.pow(_.touchObject.curY-_.touchObject.startY,2)));if(!_.options.verticalSwiping&&!_.swiping&&verticalSwipeLength>4){_.scrolling=true;return false;}if(_.options.verticalSwiping===true)_.touchObject.swipeLength=verticalSwipeLength;swipeDirection=_.swipeDirection();if(event.originalEvent!==undefined&&_.touchObject.swipeLength>4){_.swiping=true;event.preventDefault();}positionOffset=(_.options.rtl===false?1:-1)*(_.touchObject.curX>_.touchObject.startX?1:-1);if(_.options.verticalSwiping===true)positionOffset=_.touchObject.curY>_.touchObject.startY?1:-1;swipeLength=_.touchObject.swipeLength;_.touchObject.edgeHit=false;if(_.options.infinite===false)if(_.currentSlide===0&&swipeDirection==="right"||_.currentSlide>=_.getDotCount()&&swipeDirection==="left"){swipeLength=_.touchObject.swipeLength*_.options.edgeFriction;_.touchObject.edgeHit=true;}if(_.options.vertical===false)_.swipeLeft=curLeft+swipeLength*positionOffset;else _.swipeLeft=curLeft+swipeLength*(_.$list.height()/_.listWidth)*positionOffset;if(_.options.verticalSwiping===true)_.swipeLeft=curLeft+swipeLength*positionOffset;if(_.options.fade===true||_.options.touchMove===false)return false;if(_.animating===true){_.swipeLeft=null;return false;}_.setCSS(_.swipeLeft);};Slick.prototype.swipeStart=function(event){var _=this,touches;_.interrupted=true;if(_.touchObject.fingerCount!==1||_.slideCount<=_.options.slidesToShow){_.touchObject={};return false;}if(event.originalEvent!==undefined&&event.originalEvent.touches!==undefined)touches=event.originalEvent.touches[0];_.touchObject.startX=_.touchObject.curX=touches!==undefined?touches.pageX:event.clientX;_.touchObject.startY=_.touchObject.curY=touches!==undefined?touches.pageY:event.clientY;_.dragging=true;};Slick.prototype.unfilterSlides=Slick.prototype.slickUnfilter=function(){var _=this;if(_.$slidesCache!==null){_.unload();_.$slideTrack.children(this.options.slide).detach();_.$slidesCache.appendTo(_.$slideTrack);_.reinit();}};Slick.prototype.unload=function(){var _=this;$(".slick-cloned",_.$slider).remove();if(_.$dots)_.$dots.remove();if(_.$prevArrow&&_.htmlExpr.test(_.options.prevArrow))_.$prevArrow.remove();if(_.$nextArrow&&_.htmlExpr.test(_.options.nextArrow))_.$nextArrow.remove();_.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","");};Slick.prototype.unslick=function(fromBreakpoint){var _=this;_.$slider.trigger("unslick",[_,fromBreakpoint]);_.destroy();};Slick.prototype.updateArrows=function(){var _=this,centerOffset;centerOffset=Math.floor(_.options.slidesToShow/2);if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow&&!_.options.infinite){_.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false");_.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false");if(_.currentSlide===0){_.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true");_.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false");}else if(_.currentSlide>=_.slideCount-_.options.slidesToShow&&_.options.centerMode===false){_.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true");_.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false");}else{if(_.currentSlide>=_.slideCount-1&&_.options.centerMode===true){_.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true");_.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false");}}}};Slick.prototype.updateDots=function(){var _=this;if(_.$dots!==null){_.$dots.find("li").removeClass("slick-active").end();_.$dots.find("li").eq(Math.floor(_.currentSlide/_.options.slidesToScroll)).addClass("slick-active");}};Slick.prototype.visibility=function(){var _=this;if(_.options.autoplay)if(document[_.hidden])_.interrupted=true;else _.interrupted=false;};$.fn.slick=function(){var _=this,opt=arguments[0],args=Array.prototype.slice.call(arguments,1
896),l=_.length,i,ret;for(i=0;i<l;i++){if(typeof opt=="object"||typeof opt=="undefined")_[i].slick=new Slick(_[i],opt);else ret=_[i].slick[opt].apply(_[i].slick,args);if(typeof ret!="undefined")return ret;}return _;};});; 897/** 898 * vbloxVideoModal 899 * 900 * Builds and injects video modal elements into WordPress block containers. 901 * Supports YouTube iframe embeds and native HTML5 <video> elements. 902 * 903 * Security: All dynamic values are assigned via DOM properties/attributes â 904 * never via innerHTML or string concatenation â eliminating XSS injection risk. 905 * Input values originate from trusted CMS-managed block attributes. 906 * 907 * @param {string} parentBlock - CSS class of the parent block container. 908 * @param {string} prefixForInstanceAndClass - Prefix used for instance IDs and classes. 909 * @param {string} modalBlockName - CSS class of individual video card elements. 910 */ 911 912// --------------------------------------------------------------------------- 913// Sanitisation helper 914// --------------------------------------------------------------------------- 915 916/** 917 * Strips characters unsafe for use as an HTML attribute value or DOM node ID. 918 * Used only for values that contribute to composite element IDs (instanceID). 919 * videoID is assigned directly to DOM properties â no sanitisation needed there. 920 * 921 * @param {string} value - Raw attribute value. 922 * @returns {string} Sanitised value, or empty string if input is invalid. 923 */ 924function sanitizeAttributeValue(value) { 925 if (typeof value !== 'string') return ''; 926 return value.replace(/[^A-Za-z0-9_-]/g, ''); 927} 928 929// --------------------------------------------------------------------------- 930// DOM builders 931// --------------------------------------------------------------------------- 932 933/** 934 * Builds the inner player element. 935 * - YouTube: a plain <div> acting as a YT player mount point. 936 * - HTML5: a <video> element with a <source> using the raw videoID as src. 937 * 938 * videoID is assigned via .src (DOM property) or .id (DOM property) â 939 * never via innerHTML â so no sanitisation of videoID is required here. 940 * 941 * @param {string} prefixForInstanceAndClass - Prefix used for instance IDs and classes. 942 * @param {boolean} isIframe - True for YouTube iframe mode. 943 * @param {string} videoInstanceID - Composite element ID (sanitised). 944 * @param {string} videoID - Raw video source (URL, path, ID, or data URI). 945 * @returns {HTMLElement} 946 */ 947function buildPlayerElement(prefixForInstanceAndClass, isIframe, videoInstanceID, videoID) { 948 if (isIframe) { 949 const mountPoint = document.createElement('div'); 950 mountPoint.id = videoInstanceID; 951 mountPoint.className = 'modal-video-id'; 952 return mountPoint; 953 } 954 955 const video = document.createElement('video'); 956 video.className = `${prefixForInstanceAndClass}-video`; 957 video.controls = true; 958 959 const source = document.createElement('source'); 960 source.src = videoID; // DOM property assignment â not innerHTML, no XSS risk 961 video.appendChild(source); 962 963 return video; 964} 965 966/** 967 * Constructs a complete modal <div> tree using DOM APIs only. 968 * No HTML string concatenation is used anywhere in this function. 969 * 970 * @param {string} prefixForInstanceAndClass - Prefix used for instance IDs and classes. 971 * @param {string} instanceID - Sanitised instance identifier. 972 * @param {boolean} isIframe - True for YouTube iframe mode. 973 * @param {string} videoID - Raw video source value from CMS block attribute. 974 * @returns {HTMLDivElement} 975 */ 976function buildModalElement(prefixForInstanceAndClass, instanceID, isIframe, videoID) { 977 const videoInstanceID = `${prefixForInstanceAndClass}${instanceID}-${videoID}`; 978 979 // Outer modal wrapper 980 const modal = document.createElement('div'); 981 modal.className = [ 982 'ge-vernova-modal', 983 'modal', 984 'fade', 985 `${prefixForInstanceAndClass}-modal`, 986 isIframe ? 'youtube-iframe' : 'video-elm', 987 ].join(' '); 988 modal.setAttribute('tabindex', '-1'); 989 modal.setAttribute('role', 'dialog'); 990 modal.setAttribute(`${prefixForInstanceAndClass}-modal-instance-id`, instanceID); 991 992 // .modal-dialog 993 const modalDialog = document.createElement('div'); 994 modalDialog.className = 'modal-dialog'; 995 996 // .modal-content
997 const modalContent = document.createElement('div'); 998 modalContent.className = 'modal-content'; 999 1000 // .modal-header + close button 1001 const modalHeader = document.createElement('div'); 1002 modalHeader.className = 'modal-header'; 1003 1004 const closeButton = document.createElement('button'); 1005 closeButton.className = 'close video-modal-close modal-close ficon-close'; 1006 closeButton.setAttribute('data-dismiss', 'modal'); 1007 closeButton.setAttribute('aria-label', 'Close video modal'); 1008 modalHeader.appendChild(closeButton); 1009 1010 // .modal-body 1011 const modalBody = document.createElement('div'); 1012 modalBody.className = 'modal-body'; 1013 1014 const htmlVideoSpan = document.createElement('span'); 1015 htmlVideoSpan.className = 'html-video'; 1016 1017 // Player wrapper 1018 const playerWrapper = document.createElement('div'); 1019 playerWrapper.className = `${prefixForInstanceAndClass}-player ratio ratio-16x9`; 1020 playerWrapper.setAttribute('data-video', videoID); // setAttribute â not innerHTML 1021 1022 playerWrapper.appendChild(buildPlayerElement(prefixForInstanceAndClass, isIframe, videoInstanceID, videoID)); 1023 1024 modalBody.appendChild(htmlVideoSpan); 1025 modalBody.appendChild(playerWrapper); 1026 1027 // Assemble modal tree 1028 modalContent.appendChild(modalHeader); 1029 modalContent.appendChild(modalBody); 1030 modalDialog.appendChild(modalContent); 1031 modal.appendChild(modalDialog); 1032 1033 return modal; 1034} 1035 1036function vbloxVideoModal(parentBlock, prefixForInstanceAndClass, modalBlockName) { 1037 1038 // --- Input guard: all params must be non-empty strings --- 1039 if ( 1040 typeof parentBlock !== 'string' || 1041 typeof prefixForInstanceAndClass !== 'string' || 1042 typeof modalBlockName !== 'string' || 1043 !parentBlock.trim() || 1044 !prefixForInstanceAndClass.trim() || 1045 !modalBlockName.trim() 1046 ) { 1047 console.warn( 1048 '[vbloxVideoModal] Invalid arguments â all parameters must be non-empty strings.', 1049 { parentBlock } 1050 ); 1051 return; 1052 } 1053 1054 const videoBlocks = document.querySelectorAll(`.${parentBlock}`); 1055 if (!videoBlocks.length) return; 1056 1057 // --------------------------------------------------------------------------- 1058 // Main loop 1059 // --------------------------------------------------------------------------- 1060 1061 videoBlocks.forEach(videoBlock => { 1062 const videoElements = videoBlock.querySelectorAll(`.${modalBlockName}`); 1063 if (!videoElements.length) return; 1064 1065 const fragment = document.createDocumentFragment(); 1066 let modalCount = 0; 1067 1068 videoElements.forEach(videoElementDetail => { 1069 const isIframe = videoElementDetail.classList.contains('yt-iframe-block') || videoElementDetail.classList.contains('yt_iframe'); 1070 const isVideo = videoElementDetail.classList.contains('video-html-block'); 1071 1072 if (!isIframe && !isVideo) return; 1073 1074 // Sanitise instanceID â used in element .id and custom attribute values 1075 const rawInstanceID = videoElementDetail.getAttribute(`${prefixForInstanceAndClass}-instanceID`) 1076 || videoElementDetail.getAttribute(`${prefixForInstanceAndClass}-instance-id`); 1077 const instanceID = sanitizeAttributeValue(rawInstanceID); 1078 1079 // videoID is taken as-is â assigned only via DOM properties (src, setAttribute) 1080 // so no sanitisation or format validation is required 1081 const playIcon = videoElementDetail.querySelector('.ge-video-play-icon'); 1082 const videoID = (playIcon && playIcon.getAttribute('data-video')) || videoElementDetail.getAttribute('data-video') || null; 1083 1084 if (!instanceID || !videoID) { 1085 console.warn( 1086 '[vbloxVideoModal] Skipping card â missing instanceID or videoID.', 1087 { parentBlock, rawInstanceID, videoID } 1088 ); 1089 return; 1090 } 1091 1092 fragment.appendChild(buildModalElement(prefixForInstanceAndClass, instanceID, isIframe, videoID)); 1093 modalCount++; 1094 }); 1095 1096 if (modalCount > 0) { 1097 videoBlock.appendChild(fragment); 1098 } 1099 }); 1100} 1101 1102// --- Initialise all block variants --- 1103const VBLOX_VIDEO_MODAL_BLOCKS = [ 1104 ['wp-block-vernova-hero-impact-story-carousel', 'hisc', 'wp-block-vernova-hero-impact-story-slide'], 1105 ['wp-block-vernova-carousel-info-cards', 'infocard', 'infocard-video-play'], 1106 ['wp-block-vernova-carousel-hero-info-card', 'carouselHeroInfoCard', 'wp-block-vernova-carousel-hero-info-card-child'], 1107 ['wp-block-vernova-carousel-video-featured', 'carousel-video-featured', 'wp-block-vernova-carousel-video-card'], 1108 ['wp-block-vernova-carousel-video', 'carousel-video', 'wp-block-vernova-carousel-card-video'], 1109 ['wp-block-vernova-carousel-slim', 'carouselSlim', 'wp-block-vernova-carousel-slim-card'], 1110 ['wp-block-vernova-carousel-feature-card', 'carFeatureCard', 'wp-block-vernova-feature-slide'], 1111 ['wp-block-vernova-carousel-wide-cards', 'carousel-wide-cards', 'wp-block-vernova-carousel-wide-cards-slide'], 1112 ['wp-block-vernova-hero-highlights-carousel', 'hero-highlights-carousel', 'wp-block-vernova-hero-highlights-carousel-slide'], 1113 ['wp-block-vernova-hero-tab', 'hero-tab', 'wp-block-vernova-hero-tab-media'], 1114 ['wp-block-vernova-carousel-current-card', 'carousel-current-card', 'wp-block-vernova-carousel-current-card-media'], 1115 ['wp-block-vernova-carousel-featured', 'cFeaturecard', 'cFeaturecard-video-play'], 1116 ['wp-block-vernova-carousel-priorities', 'cpriorities', 'cpriorities-v
1116ideo-play'], 1117 ['wp-block-vernova-feature-tab-3', 'featureTab3card', 'featureTab3card-video-play'], 1118 ['wp-block-vernova-feature-cards', 'featureCard', 'feature-card-video-child'], 1119 ['wp-block-vernova-feature-stories', 'featureStoriesCard', 'wp-block-vernova-feature-stories-cards'], 1120 ['wp-block-vernova-feature-statistics-image2', 'featureStatisticsImage2', 'feature-statistics-image2-video-child'], 1121 ['wp-block-vernova-carousel-customer-story', 'customerStoryCard', 'wp-block-vernova-customer-story-card'], 1122 ['wp-block-vernova-hero-primary', 'heroPrimary', 'hero-primary-video-child'], 1123 ['wp-block-vernova-hero-jumplinks', 'heroJumplinks', 'hero-jumplinks-video-child'], 1124 ['wp-block-vernova-video-carousel', 'video-carousel', 'video-popup-card'], 1125]; 1126 1127VBLOX_VIDEO_MODAL_BLOCKS.forEach(([parentBlock, prefixForInstanceAndClass, modalBlockName]) => { 1128 vbloxVideoModal(parentBlock, prefixForInstanceAndClass, modalBlockName); 1129});; 1130(function ($) { 1131 if ($('.wp-block-vernova-hero-impact-story-carousel').length > 0) { 1132 1133 $('.wp-block-vernova-hero-impact-story-carousel').each(function (num, elem) { 1134 // console.log('in') 1135 elem = $(elem); 1136 let slick = elem.find('.hero-impact-story-slide-container'); 1137 let slideLength = elem.find('.wp-block-vernova-hero-impact-story-slide').length; 1138 let ctrlsWrapper = elem.find('.hero-impact-ctrls-wrapper'); 1139 let lineWrapper = elem.find('.hero-impact-line-wrapper'); 1140 let dotWrapper = elem.find('.hero-impact-dot-wrapper'); 1141 let totalSlidesIndex = slideLength - 1; 1142 1143 // Adding line element for slider 1144 let listItem = ""; 1145 1146 for (let i = 0; i < slideLength; i++) { 1147 if (i === 0) { 1148 listItem += '<li class="slick-line sl-active" role="tab" data-slick-line-index = "' + i + '"></li>'; 1149 } 1150 else { 1151 listItem += '<li class="slick-line" role="tab" data-slick-line-index = "' + i + '"></li>'; 1152 } 1153 1154 } 1155 1156 lineWrapper.append(listItem); 1157 1158 slick.not('.slick-initialized').slick({ 1159 dots: true, 1160 slidesToShow: 1, 1161 slidesToScroll: 1, 1162 fade: true, 1163 infinite: false, 1164 speed: 700, 1165 variableWidth: false, 1166 swipeToSlide: true, 1167 pauseOnDotsHover: true, 1168 prevArrow: '<button type="button" class="slick-prev svg-ficon-arrow-left arrow-disabled">Previous</button>', 1169 nextArrow: '<button type="button" class="slick-next svg-ficon-arrow-right">Next</button>', 1170 appendArrows: ctrlsWrapper, 1171 appendDots: dotWrapper, 1172 }); 1173 1174 let slicklineElem = elem.find('.hero-impact-line-wrapper .slick-line'); 1175 let prevButton = elem.find('.hero-impact-ctrls-wrapper .slick-prev'); 1176 let nextButton = elem.find('.hero-impact-ctrls-wrapper .slick-next'); 1177 1178 slick.on('beforeChange', function (event, slick, currentSlide, nextSlide) {
1179 slicklineElem.removeClass('sl-active'); 1180 // console.log(nextSlide) 1181 $("[data-slick-line-index=" + nextSlide + "]").addClass('sl-active'); 1182 }); 1183 1184 // Enable/Disable arrows 1185 slick.on("afterChange", function () { 1186 (elem.find(".slick-current").attr("data-slick-index") === "0") 1187 ? prevButton.addClass("arrow-disabled") 1188 : prevButton.removeClass("arrow-disabled"); 1189 1190 1191 (elem.find(".slick-current").attr("data-slick-index") === totalSlidesIndex.toString()) 1192 ? nextButton.addClass("arrow-disabled") 1193 : nextButton.removeClass("arrow-disabled"); 1194 1195 }); 1196 1197 if (slideLength === 1) { 1198 elem.find('.hero-impact-ctrls-container').hide(); 1199 elem.find('.hero-impact-dots-container').hide(); 1200 } 1201 1202 }); 1203 } 1204})(jQuery); 1205 1206createVideoPlayerReference( 1207 { 1208 // Video Block 1209 hasParentBlock: true, 1210 parentBlockSelector: 'wp-block-vernova-hero-impact-story-carousel', 1211 videoBlockSelector: 'wp-block-vernova-hero-impact-story-slide', 1212 instanceIdAttribute: 'hisc-instanceid', 1213 instanceIdString: 'instanceid', 1214 youtubeVideoBlockWrapperSelector: 'yt-iframe-block', 1215 VideoIdSelector: 'data-video', 1216 playButtonSelector: 'ge-video-play-icon', 1217 1218 // Video Modal 1219 modalSelector: 'hisc-modal', 1220 modalInstanceAttribute: 'hisc-modal-instance-id', 1221 modalInstanceIdString: 'instance-id', 1222 youtubeDivSelector: 'modal-video-id', 1223 idPrefix: 'heroImpactStoryCarousel', 1224 1225 // HTML Video 1226 hasHtmlVideo: true, 1227 htmlVideoModalSelector: 'video-elm', 1228 htmlVideoWrapperSelector: 'video-html-block', 1229 } 1230); 1231 1232 1233/** 1234 * Creates an reference data to pass video block data to the YouTube API data builder (youtube-video-data-builder.js) . 1235 * 1236 * @param {boolean} hasParentBlock - Set to true if the video block has a parent element. 1237 * @param {string} parentBlockSelector - The class name of the parent element of the video block, otherwise set to null. 1238 * @param {string} videoBlockSelector - Class name of the video block element 1239 * @param {string} instanceIdAttribute - Attribute name used to store the instance ID. 1240 * @param {string} instanceIdString - The string value of the last word in the instanceIdAttribute. 1241 * For example, if `instanceIdAttribute` is 'blockname-instance-id / blockname-instanceid', then 1242 * `instanceIdString` should be 'instance-id' or 'instanceid'. 1243 * @param {string} youtubeVideoBlockWrapperSelector - Wrapper class for blocks containing YouTube videos, otherwise set to null. 1244 * @param {string} VideoIdSelector - Data attribute for blocks containing video ID. 1245 * @param {string} playButtonSelector - Class name of the play button, otherwise set to null. 1246 * 1247 * 1248 * @param {string} modalSelector - Class name of the modal used to display the video, otherwise set to null. 1249 * @param {string} modalInstanceAttribute - Modal instance attribute name, dynamically added to the play button. 1250 * @param {string} modalInstanceIdString - The string value of the last word in the modalInstanceAttribute. 1251 * For example, if `modalInstanceAttribute` is 'blockname-instance-id / blockname-instanceid', then 1252 * `modalInstanceIdString` should be 'instance-id' or 'instanceid'. 1253 * @param {string} youtubeDivSelector - Class name of the div that contains the YouTube video ID 1254 * (e.g., <div id="[block-videoID]" class="[class-name]"></div>). 1255 * @param {string} idPrefix - Custom prefix to be dynamically added to the play button and modal. 1256 * Note: This must be a unique value. Do not use the same value in other video blocks. 1257 * @param {boolean} hasHtmlVideo - Set to true if the video block contains HTML video elements. 1258 * @param {string} htmlVideoModalSelector - Wrapper class for modal containing HTML videos, otherwise set to null. 1259 * @param {string} htmlVideoWrapperSelector - Wrapper class for blocks containing HTML videos, otherwise set to null. 1260 * 1261 * @returns 1262 */ 1263 1264// ############################################################################################################### 1265// ############ Note : For Youtube api, HTML video & modal please check ######################################### 1266// ############ youtube-video-data-builder.js, youtube-api.js & common-modal.js, ################################# 1267// ############ common js file for all youtube video popup and carousel Modal #################################### 1268// ###############################################################################################################; 1269function initAccordion(selector) { 1270 const headers = document.querySelectorAll(`${selector} .accordion-header`); 1271 if (!headers.length) return; 1272
1273 headers.forEach(header => { 1274 header.addEventListener('click', function () { 1275 const parent = this.parentElement; 1276 const container = parent.parentElement; 1277 const content = parent.querySelector('.accordion-content'); 1278 const icon = parent.querySelector('i'); 1279 const activeItems = container.querySelectorAll('.active'); 1280 1281 // Close all active accordions 1282 activeItems.forEach(item => { 1283 if (item !== parent) { 1284 item.classList.remove('active'); 1285 item.querySelector('.accordion-content').style.height = 0; 1286 item.querySelector('i').classList 1287 .replace('svg-ficon-minus', 'svg-ficon-plus'); 1288 } 1289 }); 1290 1291 // Toggle current accordion 1292 const isActive = parent.classList.contains('active'); 1293 1294 parent.classList.toggle('active', !isActive); 1295 content.style.height = isActive ? 0 : content.scrollHeight + 'px'; 1296 icon.classList.toggle('svg-ficon-plus', isActive); 1297 icon.classList.toggle('svg-ficon-minus', !isActive); 1298 }); 1299 }); 1300} 1301 1302/* Initialize all accordions */ 1303initAccordion('.wp-block-vernova-content-tab2-content'); 1304initAccordion('.wp-block-vernova-event-item-accordion'); 1305initAccordion('.wp-block-vernova-feature-text-accordion-cards'); 1306initAccordion('.wp-block-vernova-feature-text-accordion2-cards'); 1307initAccordion('.wp-block-vernova-overview-tab-cards'); 1308initAccordion('.wp-block-vernova-overview-accordion'); 1309; 1310// script for block 1311// let overviewAccordion = document.querySelectorAll('.wp-block-vernova-overview-accordion .accordion-header'); 1312// if (overviewAccordion.length) { 1313// overviewAccordion.forEach(function (index) { 1314// index.addEventListener('click', function (e) { 1315 1316// let parentContainer = this.parentElement; 1317// let activeAccord = parentContainer.parentElement.querySelectorAll('.active'); 1318// let iconElem = parentContainer.querySelector('i'); 1319// let collepsedElm = parentContainer.querySelector('.accordion-content'); 1320 1321// if (parentContainer.classList.contains('active')) { 1322// parentContainer.classList.remove('active'); 1323// collepsedElm.style.height = 0; 1324// iconElem.classList.remove('svg-ficon-minus'); 1325// iconElem.classList.add('svg-ficon-plus'); 1326// } 1327// else { 1328// activeAccord.forEach(function (index) { 1329// index.classList.remove('active'); 1330// index.querySelector('.accordion-content').style.height = 0; 1331// index.querySelector('i').classList.remove('svg-ficon-minus'); 1332// index.querySelector('i').classList.add('svg-ficon-plus'); 1333 1334// }) 1335 1336// parentContainer.classList.add('active'); 1337// collepsedElm.style.height = collepsedElm.scrollHeight + 'px'; 1338// iconElem.classList.remove('svg-ficon-plus'); 1339// iconElem.classList.add('svg-ficon-minus'); 1340// } 1341 1342// }) 1343// }) 1344// } 1345 1346let overviewPara = document.querySelectorAll('.wp-block-vernova-overview-paragraph'); 1347
1348if (overviewPara.length) { 1349 overviewPara.forEach(function (block, index) { 1350 let overParaHeading = block.querySelector('.heading'); 1351 let overParaContentSec = block.querySelector('.cont-sec'); 1352 let imgParent = block.querySelector('.overview-img'); 1353 let headingStyle, headingMargin; 1354 1355 if(overParaHeading){ 1356 headingStyle = getComputedStyle(overParaHeading); 1357 headingMargin = parseInt(headingStyle.marginBottom, 10); 1358 } 1359 1360 if (imgParent && overParaHeading){ 1361 overParaContentSec.style.paddingTop = `${overParaHeading.offsetHeight + headingMargin}px`; 1362 } 1363 }) 1364} 1365 1366createVideoPlayerReference( 1367 { 1368 // Video Block 1369 hasParentBlock: false, 1370 parentBlockSelector: null, 1371 videoBlockSelector: 'wp-block-vernova-overview-paragraph', 1372 instanceIdAttribute: 'overpara-instanceid', 1373 instanceIdString: 'instanceid', 1374 youtubeVideoBlockWrapperSelector: null, 1375 VideoIdSelector: 'data-video', 1376 playButtonSelector: 'op2-play-btn', 1377 1378 // Video Modal 1379 modalSelector: 'overPara-modal', 1380 modalInstanceAttribute: 'overpara-modal-instance-id', 1381 modalInstanceIdString: 'instance-id', 1382 youtubeDivSelector: 'overPara-video-id', 1383 idPrefix: 'videoOverviewParagraph', 1384 1385 // HTML Video 1386 hasHtmlVideo: false, 1387 htmlVideoModalSelector: null, 1388 htmlVideoWrapperSelector: null, 1389 } 1390); 1391 1392 1393/** 1394 * Creates an reference data to pass video block data to the YouTube API data builder (youtube-video-data-builder.js) . 1395 * 1396 * @param {boolean} hasParentBlock - Set to true if the video block has a parent element. 1397 * @param {string} parentBlockSelector - The class name of the parent element of the video block, otherwise set to null. 1398 * @param {string} videoBlockSelector - Class name of the video block element 1399 * @param {string} instanceIdAttribute - Attribute name used to store the instance ID. 1400 * @param {string} instanceIdString - The string value of the last word in the instanceIdAttribute. 1401 * For example, if `instanceIdAttribute` is 'blockname-instance-id / blockname-instanceid', then 1402 * `instanceIdString` should be 'instance-id' or 'instanceid'. 1403 * @param {string} youtubeVideoBlockWrapperSelector - Wrapper class for blocks containing YouTube videos, otherwise set to null. 1404 * @param {string} VideoIdSelector - Data attribute for blocks containing video ID. 1405 * @param {string} playButtonSelector - Class name of the play button, otherwise set to null. 1406 * 1407 * 1408 * @param {string} modalSelector - Class name of the modal used to display the video, otherwise set to null. 1409 * @param {string} modalInstanceAttribute - Modal instance attribute name, dynamically added to the play button. 1410 * @param {string} modalInstanceIdString - The string value of the last word in the modalInstanceAttribute. 1411 * For example, if `modalInstanceAttribute` is 'blockname-instance-id / blockname-instanceid', then 1412 * `modalInstanceIdString` should be 'instance-id' or 'instanceid'. 1413 * @param {string} youtubeDivSelector - Class name of the div that contains the YouTube video ID 1414 * (e.g., <div id="[block-videoID]" class="[class-name]"></div>). 1415 * @param {string} idPrefix - Custom prefix to be dynamically added to the play button and modal. 1416 * Note: This must be a unique value. Do not use the same value in other video blocks. 1417 * @param {boolean} hasHtmlVideo - Set to true if the video block contains HTML video elements. 1418 * @param {string} htmlVideoModalSelector - Wrapper class for modal containing HTML videos, otherwise set to null. 1419 * @param {string} htmlVideoWrapperSelector - Wrapper class for blocks containing HTML videos, otherwise set to null. 1420 * 1421 * @returns 1422 */ 1423 1424 1425// ############################################################################################################### 1426// ############ Note : For Youtube api & HTML video please check ################################################ 1427// ############ youtube-video-data-builder.js & youtube-api.js ################################################ 1428// ############ common js file for all youtube video popup ###################################################### 1429// ###############################################################################################################;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.