1/*! modernizr 3.11.2 (Custom Build) | MIT * 2 * https://modernizr.com/download/?-cssanimations-csscolumns-customelements-flexbox-history-picture-pointerevents-postmessage-sizes-srcset-webgl-websockets-webworkers-addtest-domprefixes-hasevent-mq-prefixedcssvalue-prefixes-setclasses-testallprops-testprop-teststyles !*/ 3!function(e,t,n,r){function o(e,t){return typeof e===t}function i(e){var t=_.className,n=Modernizr._config.classPrefix||"";if(S&&(t=t.baseVal),Modernizr._config.enableJSClass){var r=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(r,"$1"+n+"js$2")}Modernizr._config.enableClasses&&(e.length>0&&(t+=" "+n+e.join(" "+n)),S?_.className.baseVal=t:_.className=t)}function s(e,t){if("object"==typeof e)for(var n in e)k(e,n)&&s(n,e[n]);else{e=e.toLowerCase();var r=e.split("."),o=Modernizr[r[0]];if(2===r.length&&(o=o[r[1]]),void 0!==o)return Modernizr;t="function"==typeof t?t():t,1===r.length?Modernizr[r[0]]=t:(!Modernizr[r[0]]||Modernizr[r[0]]instanceof Boolean||(Modernizr[r[0]]=new Boolean(Modernizr[r[0]])),Modernizr[r[0]][r[1]]=t),i([(t&&!1!==t?"":"no-")+r.join("-")]),Modernizr._trigger(e,t)}return Modernizr}function a(){return"function"!=typeof n.createElement?n.createElement(arguments[0]):S?n.createElementNS.call(n,"http://www.w3.org/2000/svg",arguments[0]):n.createElement.apply(n,arguments)}function l(){var e=n.body;return e||(e=a(S?"svg":"body"),e.fake=!0),e}function u(e,t,r,o){var i,s,u,f,c="modernizr",d=a("div"),p=l();if(parseInt(r,10))for(;r--;)u=a("div"),u.id=o?o[r]:c+(r+1),d.appendChild(u);return i=a("style"),i.type="text/css",i.id="s"+c,(p.fake?p:d).appendChild(i),p.appendChild(d),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(n.createTextNode(e)),d.id=c,p.fake&&(p.style.background="",p.style.overflow="hidden",f=_.style.overflow,_.style.overflow="hidden",_.appendChild(p)),s=t(d,e),p.fake?(p.parentNode.removeChild(p),_.style.overflow=f,_.offsetHeight):d.parentNode.removeChild(d),!!s}function f(e,n,r){var o;if("getComputedStyle"in t){o=getComputedStyle.call(t,e,n);var i=t.console;if(null!==o)r&&(o=o.getPropertyValue(r));else if(i){var s=i.error?"error":"log";i[s].call(i,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else o=!n&&e.currentStyle&&e.currentStyle[r];return o}function c(e,t){return!!~(""+e).indexOf(t)}function d(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function p(e,n){var o=e.length;if("CSS"in t&&"supports"in t.CSS){for(;o--;)if(t.CSS.supports(d(e[o]),n))return!0;return!1}if("CSSSupportsRule"in t){for(var i=[];o--;)i.push("("+d(e[o])+":"+n+")");return i=i.join(" or "),u("@supports ("+i+") { #modernizr { position: absolute; } }",function(e){return"absolute"===f(e,null,"position")})}return r}function m(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function h(e,t,n,i){function s(){u&&(delete N.style,delete N.modElem)}if(i=!o(i,"undefined")&&i,!o(n,"undefined")){var l=p(e,n);if(!o(l,"undefined"))return l}for(var u,f,d,h,A,v=["modernizr","tspan","samp"];!N.style&&v.length;)u=!0,N.modElem=a(v.shift()),N.style=N.modElem.style;for(d=e.length,f=0;f<d;f++)if(h=e[f],A=N.style[h],c(h,"-")&&(h=m(h)),N.style[h]!==r){if(i||o(n,"undefined"))return s(),"pfx"!==t||h;try{N.style[h]=n}catch(e){}if(N.style[h]!==A)return s(),"pfx"!==t||h}return s(),!1}function A(e,t){return function(){return e.apply(t,arguments)}}function v(e,t,n){var r;for(var i in e)if(e[i]in t)return!1===n?e[i]:(r=t[e[i]],o(r,"function")?A(r,n||t):r);return!1}function g(e,t,n,r,i){var s=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+O.join(s+" ")+s).split(" ");return o(t,"string")||o(t,"undefined")?h(a,t,r,i):(a=(e+" "+T.join(s+" ")+s).split(" "),v(a,t,n))}function y(e,t,n){return g(e,r,r,t,n)}var w=[],C={_version:"3.11.2",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){w.push({name:e,fn:t,options:n})},addAsyncTest:function(e){w.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=C,Modernizr=new Modernizr;var b=[],_=n.documentElement,S="svg"===_.nodeName.toLowerCase(),x="Moz O ms Webkit",T=C._config.usePrefixes?x.toLowerCase().split(" "):[];C._domPrefixes=T;var P=C._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];C._prefixes=P;var k;!function(){var e={}.hasOwnProperty;k=o(e,"undefined")||o(e.call,"undefined")?function(e,t){return t in e&&o(e.constructor.prototype[t],"undefined")}:function(t,n){return e.call(t,n)}}(),C._l={},C.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),Modernizr.hasOwnProperty(e)&&setTimeout(function(){Modernizr._trigger(e,Modernizr[e])},0)},C._trigger=function(e,t){if(this._l[e]){var n=this._l[e];setTimeout(function(){var e;
3for(e=0;e<n.length;e++)(0,n[e])(t)},0),delete this._l[e]}},Modernizr._q.push(function(){C.addTest=s});var E=function(){function e(e,n){var o;return!!e&&(n&&"string"!=typeof n||(n=a(n||"div")),e="on"+e,o=e in n,!o&&t&&(n.setAttribute||(n=a("div")),n.setAttribute(e,""),o="function"==typeof n[e],n[e]!==r&&(n[e]=r),n.removeAttribute(e)),o)}var t=!("onblur"in _);return e}();C.hasEvent=E;var B=function(){var e=t.matchMedia||t.msMatchMedia;return e?function(t){var n=e(t);return n&&n.matches||!1}:function(e){var t=!1;return u("@media "+e+" { #modernizr { position: absolute; } }",function(e){t="absolute"===f(e,null,"position")}),t}}();C.mq=B;var z=function(e,t){var n=!1,r=a("div"),o=r.style;if(e in o){var i=T.length;for(o[e]=t,n=o[e];i--&&!n;)o[e]="-"+T[i]+"-"+t,n=o[e]}return""===n&&(n=!1),n};C.prefixedCSSValue=z;var O=C._config.usePrefixes?x.split(" "):[];C._cssomPrefixes=O;var L={elem:a("modernizr")};Modernizr._q.push(function(){delete L.elem});var N={style:L.elem.style};Modernizr._q.unshift(function(){delete N.style}),C.testAllProps=g,C.testAllProps=y;C.testProp=function(e,t,n){return h([e],r,t,n)},C.testStyles=u;Modernizr.addTest("customelements","customElements"in t),Modernizr.addTest("history",function(){var e=navigator.userAgent;return!!e&&((-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone")||"file:"===location.protocol)&&(t.history&&"pushState"in t.history))});var R=[""].concat(T);C._domPrefixesAll=R,Modernizr.addTest("pointerevents",function(){for(var e=0,t=R.length;e<t;e++)if(E(R[e]+"pointerdown"))return!0;return!1});var j=!0;try{t.postMessage({toString:function(){j=!1}},"*")}catch(e){}Modernizr.addTest("postmessage",new Boolean("postMessage"in t)),Modernizr.addTest("postmessage.structuredclones",j),Modernizr.addTest("webgl",function(){return"WebGLRenderingContext"in t});var M=!1;try{M="WebSocket"in t&&2===t.WebSocket.CLOSING}catch(e){}Modernizr.addTest("websockets",M),Modernizr.addTest("cssanimations",y("animationName","a",!0)),function(){Modernizr.addTest("csscolumns",function(){var e=!1,t=y("columnCount");try{e=!!t,e&&(e=new Boolean(e))}catch(e){}return e});for(var e,t,n=["Width","Span","Fill","Gap","Rule","RuleColor","RuleStyle","RuleWidth","BreakBefore","BreakAfter","BreakInside"],r=0;r<n.length;r++)e=n[r].toLowerCase(),t=y("column"+n[r]),"breakbefore"!==e&&"breakafter"!==e&&"breakinside"!==e||(t=t||y(n[r])),Modernizr.addTest("csscolumns."+e,t)}(),Modernizr.addTest("flexbox",y("flexBasis","1px",!0)),Modernizr.addTest("picture","HTMLPictureElement"in t),Modernizr.addAsyncTest(function(){var e,t,n,r=a("img"),o="sizes"in r;!o&&"srcset"in r?(t="data:image/gif;base64,R0lGODlhAgABAPAAAP///wAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==",e="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",n=function(){s("sizes",2===r.width)},r.onload=n,r.onerror=n,r.setAttribute("sizes","9px"),r.srcset=e+" 1w,"+t+" 8w",r.src=e):s("sizes",o)}),Modernizr.addTest("srcset","srcset"in a("img")),Modernizr.addTest("webworkers","Worker"in t),function(){var e,t,n,r,i,s,a;for(var l in w)if(w.hasOwnProperty(l)){if(e=[],t=w[l],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(r=o(t.fn,"function")?t.fn():t.fn,i=0;i<e.length;i++)s=e[i],a=s.split("."),1===a.length?Modernizr[a[0]]=r:(Modernizr[a[0]]&&(!Modernizr[a[0]]||Modernizr[a[0]]instanceof Boolean)||(Modernizr[a[0]]=new Boolean(Modernizr[a[0]])),Modernizr[a[0]][a[1]]=r),b.push((r?"":"no-")+a.join("-"))}}(),i(b),delete C.addTest,delete C.addAsyncTest;for(var W=0;W<Modernizr._q.length;W++)Modernizr._q[W]();e.Modernizr=Modernizr}(window,window,document); 4"use strict" 5/*! jquery-fracs v1.0.2 - https://larsjung.de/jquery-fracs/ */ 6;function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){function r(t,n){return _typeof(t)===n}function s(t,n){return t instanceof n}function l(t){return t&&t.nodeType}function h(t){return l(t)?t:s(t,c)?t[0]:void 0}function n(t,n,e){if(t===n)return!0;
6if(!t||!n||t.constructor!==n.constructor)return!1;for(var i=0,o=e.length;i<o;i+=1){var r=e[i];if(t[r]&&v(t[r].equals)&&!t[r].equals(n[r]))return!1;if(t[r]!==n[r])return!1}return!0}var e,i,o=window,u=o.document,c=o.jQuery,f=c(o),a=c(u),p=c.extend,v=c.isFunction,d=Math.max,w=Math.min,b=Math.round,m=(e={},i=1,function(t){return t?(e[t]||(e[t]=i,i+=1),e[t]):0});function g(t,n,e,i){this.left=b(t),this.top=b(n),this.width=b(e),this.height=b(i),this.right=this.left+this.width,this.bottom=this.top+this.height}function y(t,n,e,i){this.visible=t||0,this.viewport=n||0,this.possible=e||0,this.rects=i&&p({},i)||null}function T(t,n){this.els=t,this.viewport=n}p(g.prototype,{equals:function(t){return n(this,t,["left","top","width","height"])},area:function(){return this.width*this.height},relativeTo:function(t){return new g(this.left-t.left,this.top-t.top,this.width,this.height)},intersection:function(t){if(!s(t,g))return null;var n=d(this.left,t.left),e=w(this.right,t.right),i=d(this.top,t.top),o=e-n,r=w(this.bottom,t.bottom)-i;return 0<=o&&0<=r?new g(n,i,o,r):null},envelope:function(t){if(!s(t,g))return this;var n=w(this.left,t.left),e=d(this.right,t.right),i=w(this.top,t.top);return new g(n,i,e-n,d(this.bottom,t.bottom)-i)}}),p(g,{ofContent:function(t,n){return t&&t!==u&&t!==o?n?new g(0,0,t.scrollWidth,t.scrollHeight):new g(t.offsetLeft-t.scrollLeft,t.offsetTop-t.scrollTop,t.scrollWidth,t.scrollHeight):new g(0,0,a.width(),a.height())},ofViewport:function(t,n){return t&&t!==u&&t!==o?n?new g(t.scrollLeft,t.scrollTop,t.clientWidth,t.clientHeight):new g(t.offsetLeft,t.offsetTop,t.clientWidth,t.clientHeight):new g(f.scrollLeft(),f.scrollTop(),f.width(),f.height())},ofElement:function(t){var n=c(t);if(!n.is(":visible"))return null;var e=n.offset();return new g(e.left,e.top,n.outerWidth(),n.outerHeight())}}),p(y.prototype,{equals:function(t){return this.fracsEqual(t)&&this.rectsEqual(t)},fracsEqual:function(t){return n(this,t,["visible","viewport","possible"])},rectsEqual:function(t){return n(this.rects,t.rects,["document","element","viewport"])}}),p(y,{of:function(t,n){if(t=l(t)&&g.ofElement(t)||t,n=l(n)&&g.ofViewport(n)||n||g.ofViewport(),!s(t,g))return new y;var e=t.intersection(n);if(!e)return new y;var i=e.area(),o=w(t.width,n.width)*w(t.height,n.height);return new y(i/t.area(),i/n.area(),i/o,{document:e,element:e.relativeTo(t),viewport:e.relativeTo(n)})}});function k(t,n){return t.val-n.val}function S(t,n){return n.val-t.val}var E=["width","height","left","right","top","bottom"],_=["possible","visible","viewport"];function q(t){var n=g.ofContent(t,!0),e=g.ofViewport(t,!0),i=n.width-e.width,o=n.height-e.height;this.content=n,this.viewport=e,this.width=i<=0?null:e.left/i,this.height=o<=0?null:e.top/o,this.left=e.left,this.top=e.top,this.right=n.right-e.right,this.bottom=n.bottom-e.bottom}function x(t){this.el=t||o}p(T.prototype,{sorted:function(r,t){var s=this.viewport;return c.map(this.els,function(t){return{el:t,val:(n=t,e=s,i=r,E.includes(i)?o=g.ofElement(n):_.includes(i)&&(o=y.of(n,e)),o?o[i]:0)};var n,e,i,o}).sort(t?S:k)},best:function(t,n){return this.els.length?this.sorted(t,n)[0]:null}}),p(q.prototype,{equals:function(t){return n(this,t,["width","height","left","top","right","bottom","content","viewport"])}}),p(x.prototype,{equals:function(t){return n(this,t,["el"])},scrollState:function(){return new q(this.el)},scrollTo:function(t,n,e){var i=this.el===o?c("html,body"):c(this.el);t=t||0,n=n||0,e=isNaN(e)?1e3:e,i.stop(!0).animate({scrollLeft:t,scrollTop:n},e)},scrollToRect:function(t,n,e,i){n=n||0,e=e||0,this.scrollTo(t.left-n,t.top-e,i)},scrollToElement:function(t,n,e,i){var o=g.ofElement(t).relativeTo(g.ofContent(this.el));this.scrollToRect(o,n,e,i)}});var t={context:null,updatedValue:function(){return null},init:function(t){this.callbacks=c.Callbacks("memory unique"),this.curr_val=null,this.prev_val=null,c(t||o).on("load resize scroll",c.proxy(this.check,this))},bind:function(t){this.callbacks.add(t)},unbind:function(t){t?this.callbacks.remove(t):this.callbacks.empty()},check:function(t){var n=this.updatedValue(t);return void 0!==n&&(this.prev_val=this.curr_val,this.curr_val=n,this.callbacks.fireWith(this.context,[this.curr_val,this.prev_val]),!0)}};function V(t,n){this.context=t,this.viewport=n,this.init()}function C(t,n,e,i){this.context=new T(t,n),this.property=e,this.descending=i,this.init()}function L(t){this.context=t&&t!==o&&t!==u?t:o,this.init(this.context)}p(V.prototype,t,{updatedValue:function(){var t=y.of(this.context,this.viewport);if(!t.equals(this.curr_val))return t}}),p(C.prototype,t,{updatedValue:function(){var t=this.context.best(this.property,this.descending);if(t&&(t=0<t.val?t.el:null,this.curr_val!==t))return t}}),p(L.prototype,t,{updatedValue:function(){var t=new q(this.context);if(!t.equals(this.curr_val))return t}});var W={content:function(t){return this.length?g.ofContent(this[0],t):null},envelope:function(){var i;return c.each(this,function(t,n){var e=g.ofElement(n);i=i?i.envelope(e):e}),i}
6,fracs:function(t,e,i){r(t,"string")||(i=e,e=t,t=null),v(e)||(i=e,e=null),i=h(i);var o="fracs."+m(i);return"unbind"===t?this.each(function(){var t=c(this).data(o);t&&t.unbind(e)}):"check"===t?this.each(function(){var t=c(this).data(o);t&&t.check()}):v(e)?this.each(function(){var t=c(this),n=t.data(o);n||(n=new V(this,i),t.data(o,n)),n.bind(e)}):this.length?y.of(this[0],i):null},intersection:function(){var i;return c.each(this,function(t,n){var e=g.ofElement(n);i=i?i.intersection(e):e}),i},max:function(t,n,e){return v(n)||(e=n,n=null),e=h(e),n?(new C(this,e,t,!0).bind(n),this):this.pushStack(new T(this,e).best(t,!0).el)},min:function(t,n,e){return v(n)||(e=n,n=null),e=h(e),n?(new C(this,e,t).bind(n),this):this.pushStack(new T(this,e).best(t).el)},rect:function(){return this.length?g.ofElement(this[0]):null},scrollState:function(t,e){var i="fracs.scrollState";return r(t,"string")||(e=t,t=null),"unbind"===t?this.each(function(){var t=c(this).data(i);t&&t.unbind(e)}):"check"===t?this.each(function(){var t=c(this).data(i);t&&t.check()}):v(e)?this.each(function(){var t=c(this),n=t.data(i);n||(n=new L(this),t.data(i,n)),n.bind(e)}):this.length?new q(this[0]):null},scroll:function(t,n,e){return this.each(function(){new x(this).scroll(t,n,e)})},scrollTo:function(t,n,e,i){return c.isNumeric(t)&&(i=e,e=n,n=t,t=null),t=h(t),this.each(function(){t?new x(this).scrollToElement(t,n,e,i):new x(this).scrollTo(n,e,i)})},scrollToThis:function(t,n,e,i){return(i=new x(h(i))).scrollToElement(this[0],t,n,e),this},sort:function(t,n,e){return r(n,"boolean")||(e=n,n=null),e=h(e),this.pushStack(c.map(new T(this,e).sorted(t,!n),function(t){return t.el}))},viewport:function(t){return this.length?g.ofViewport(this[0],t):null}};c.fracs=function(t,n){return y.of(t,n)},c.fracs._={Rect:g,Fractions:y,Group:T,ScrollState:q,Viewport:x,FracsCallbacks:V,GroupCallbacks:C,ScrollStateCallbacks:L},c.fn.fracs=function(){for(var t=W.fracs,n=arguments.length,e=new Array(n),i=0;i<n;i++)e[i]=arguments[i];return v(W[e[0]])&&(t=W[e.shift()]),Reflect.apply(t,this,e)}}(); 7(function($){$(window).on('load',function(){isidi=getSpireCookie('isidi');if(isidi===""){hutk=getSpireCookie('hubspotutk');if(typeof FS!=='undefined'&&typeof hutk!=='undefined'){getUserDetailsByUTK(hutk);}} 8window.addEventListener("message",function(event){if(typeof event!=='undefined'&&event.data!=='undefined'&&event.data.eventName!=='undefined'&&event.data.eventName=='onFormSubmit'&&event.data.data!=='undefined'){userObj={'email':'','displayName':'','company':''};firstname=false;lastname=false;$.each(event.data.data,function(key,valueObj){if(valueObj.name=='email')userObj.email=valueObj.value;if(valueObj.name=='firstname')firstname=valueObj.value;if(valueObj.name=='lastname')lastname=valueObj.value;if(valueObj.name=='company')userObj.company=valueObj.value;});if(firstname||lastname)userObj.displayName=(firstname?firstname:'')+(firstname&&lastname?' ':'')+(lastname?lastname:'');utk=getSpireCookie('hubspotutk');if(typeof FS!=='undefined')FS.identify(utk,userObj);setSpireCookie('isidi',JSON.stringify(userObj),30);}});});})(jQuery);function getSpireCookie(cname){var name=cname+"=";var decodedCookie=decodeURIComponent(document.cookie);var ca=decodedCookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' '){c=c.substring(1);} 9if(c.indexOf(name)==0){return c.substring(name.length,c.length);}} 10return"";} 11function setSpireCookie(cname,cvalue,exdays){var d=new Date();d.setTime(d.getTime()+(exdays*24*60*60*1000));var expires="expires="+d.toUTCString();document.cookie=cname+"="+cvalue+";"+expires+";path=/";} 12function getUserDetailsByUTK(utk){jQuery.ajax({url:'https://dataexchange.spire.com/wp-admin/admin-ajax.php',type:'post',data:{utk:utk,action:'utk_details'},success:function(response){userdetails={};if(typeof response.callsuccess!=='undefined'&&response.callsuccess==1){delete response.callsuccess;userdetails=response;if(typeof response.vid!=='undefined'){utk=response.vid;delete response.vid;}} 13if(typeof FS!=='undefined')FS.identify(utk,userdetails);setSpireCookie('isidi',JSON.stringify(userdetails),30);}});}; 14(function($){$.urlParam=function(name,url){var results=new RegExp('[\?&]'+name+'=([^&#]*)').exec(url);if(results==null){return null;} 15return decodeURI(results[1])||0;} 16$('a[href*="?popup"]').magnificPopup({type:'ajax',closeBtnInside:true,callbacks:{ajaxContentAdded:function(){maybeInitializeHSTargets();},elementParse:function(item){var mp=$.magnificPopup.instance;mp.st.ajax.settings.data.popup=$.urlParam('popup',item.el.attr('href'));}},ajax:{settings:{type:'POST',url:ajaxurl,data:{action:'getpopup'},}}});$('.magnific.video').magnificPopup({type:'iframe',iframe:{patterns:{youtube:{index:'youtube.com',id:'v=',src:'https://www.youtube.com/embed/%id%?rel=0&autoplay=1'}}},});$('.magnific:not(.video)').magnificPopup({callbacks:{open:function(){maybeInitializeHSTargets();}}});if(window.location.href.indexOf('90poe-customer-video')>-1){$('html').append('<script type="text/javascript" async src="https://play.vidyard.com/embed/v4.js">');$(window).on('load',function(){$.magnificPopup.open({mainClass:'popvideo',items:{src:'<div class="wrapper clearfix"><style>.popvideo .mfp-close{color:white;opacity:1;}</style><img style="width: 100%; margin: auto; display: block;" class="vidyard-player-embed" src="https://play.vidyard.com/opJkjiKh8PU3DfeQ4jCbB5.jpg" data-uuid="opJkjiKh8PU3DfeQ4jCbB5" data-v="4" data-type="inline" /></div>',type:'inline'}});});} 17$('#maritimetriggervideo').click(function(e){e.preventDefault();$('html').append('<script type="text/javascript" async src="https://play.vidyard.com/embed/v4.js">');$.magnificPopup.open({mainClass:'popvideo',items:{src:'<div class="wrapper clearfix"><style>.popvideo .mfp-close{color:white;opacity:1;}</style><img style="width: 100%; margin: auto; display: block;" class="vidyard-player-embed" src="https://play.vidyard.com/opJkjiKh8PU3DfeQ4jCbB5.jpg" data-uuid="opJkjiKh8PU3DfeQ4jCbB5" data-v="4" data-type="inline" data-autoplay="1" /></div>',type:'inline'}});});})(jQuery); 18(function($){function shareOnLinkedin(url,text){if(text!==''){text='&summary='+text;} 19window.open('https://www.linkedin.com/sharing/share-offsite/?mini=true&url='+encodeURI(url)+text,'','menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');} 20function shareOnTwitter(url,text){if(text!==''){text='&text='+text;} 21window.open('http://twitter.com/share?url='+encodeURI(url)+text,'twitterwindow','height=450, width=550, top='+($(window).height()/2-225)+', left
21='+$(window).width()/2+', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0');} 22function shareOnFacebook(url,text){if(text!==''){text='&title='+text;} 23window.open('https://www.facebook.com/sharer.php?u='+encodeURI(url)+text,'sharer','height=450, width=550, top='+($(window).height()/2-225)+', left='+$(window).width()/2+', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0');} 24$('.fbshare').on('click',function(e){e.preventDefault();shareOnFacebook($(this).attr('href'),'');sendShareToDatalayer('facebook');});$('.twshare').on('click',function(e){e.preventDefault();shareOnTwitter($(this).attr('href'),'');sendShareToDatalayer('twitter');});$('.lishare').on('click',function(e){e.preventDefault();shareOnLinkedin($(this).attr('href'),'');sendShareToDatalayer('linkedin');});function sendShareToDatalayer(medium){window.dataLayer=window.dataLayer||[];window.dataLayer.push({'event':'Shared post','eventCategory':'Sharing','eventAction':'Shared post','shareMedium':medium});} 25$('.sharethis.twitter').on('click',function(e){e.preventDefault();shareOnTwitter($(this).attr('href'),$(this).data('text'));sendQuotationShareToDatalayer('twitter',$(this).data('text'));});$('.sharethis.linkedin').on('click',function(e){e.preventDefault();shareOnLinkedin($(this).attr('href'),$(this).data('text'));sendQuotationShareToDatalayer('linkedin',$(this).data('text'));});function sendQuotationShareToDatalayer(medium,quotation){window.dataLayer=window.dataLayer||[];window.dataLayer.push({'event':'Shared quotation','eventCategory':'Sharing','eventAction':'Shared quotation','shareQuotation':quotation});}})(jQuery); 26(function($){$('#topmenu *[data-class]').hover(function(){},function(){$(this).parent().parent().removeClass($(this).data('class'));}) 27$('#mobiletoggle').click(function(e){e.preventDefault();if($(this).hasClass('active')){$(this).removeClass('active');gsap.fromTo('#topmenu',{left:0,opacity:1},{left:'100%',opacity:0,ease:Power4.easeIn,duration:.5,onComplete:function(){$('#topmenu li').removeClass('active');$('.backbt, .youarehere').remove();$('.menuwrapper').removeClass('active');}});}else{$('.menuwrapper').addClass('active');$(this).addClass('active');gsap.fromTo('#topmenu',{left:'100%',opacity:0}
27,{left:0,opacity:1,ease:Power4.easeOut,duration:.5});}});$('#topmenu li a').click(function(e){if($(window).width()<=1000&&$(this).parent().hasClass('menu-item-has-children')){e.preventDefault();thistext=$(this).text();$(this).parent().addClass('active');targetmenu=$(this).parent().find('.sub-menu:first');myclass=($(this).data('class'));targetmenu.prepend('<li class="backbt"><a href="#">Back</a></li>');targetmenu.prepend('<li class="youarehere '+(myclass!==undefined?myclass+' bu':'')+'"><a href="#">'+thistext+'</a></li>');applyBackBts();gsap.fromTo(targetmenu,{left:'100%',opacity:0},{left:0,opacity:1,ease:Power4.easeOut,duration:.5});}});function applyBackBts(){$('.youarehere a').unbind('click').on('click',function(e){e.preventDefault();});$('.backbt a').unbind('click').on('click',function(e){e.preventDefault();targetli=$(this).closest('.menu-item-has-children.active');targetmenu=$(this).closest('.sub-menu');thisbt=$(this).parent();gsap.fromTo(targetmenu,{left:0,opacity:1},{left:'100%',opacity:0,ease:Power4.easeIn,duration:.5,onComplete:function(){targetli.removeClass('active');thisbt.parent().find('.youarehere').remove();thisbt.remove();}});});}})(jQuery); 28function isIE8orLess(){if(navigator.appName.indexOf("Internet Explorer")!=-1){var badBrowser=(navigator.appVersion.indexOf("MSIE 8")==-1&&navigator.appVersion.indexOf("MSIE 1")==-1);if(badBrowser){return true;}else return false;}else{return false;}} 29var abtestexperiment='';var abtestversion='';function setABTestfield(){if(jQuery('input[name="ab_test_version"]').length&&abtestexperiment!==''&&abtestversion!==''){jQuery('input[name="ab_test_version"]').val(abtestexperiment+'__'+abtestversion);}} 30if(typeof gtag=='undefined'){function gtag(){dataLayer.push(arguments)}} 31function implementManyExperiments(value,name){abtestexperiment=name;abtestversion=value;setABTestfield();} 32gtag('event','optimize.callback',{callback:implementManyExperiments});var hsscriptisloaded=0;var hsscript='//js.hsforms.net/forms/v2.js';if(isIE8orLess())hsscript='//js.hsforms.net/forms/v2-legacy.js';var useremail='';var userfirstname='';var userlastname='';var efirstname;var elastname;var eemail;var ecompany;function SpireGetQueryParams(name,url){if(!url)url=location.href;name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(url);return results==null?null:results[1];} 33function runHSContainers(targets){targets.each(function(e){targetEl='#'+jQuery(this).attr('id');formId=jQuery(this).attr('id').replace('container-','').replace('container2-','');hsargs={portalId:"6779491",formId:formId,target:targetEl,onFormReady:function($form){var gclid=SpireGetQueryParams('gclid',window.location.href);if(typeof gclid!=='undefined'&&gclid!=null&&jQuery('input[name="gclid"]').length){jQuery('input[name="gclid"]').val(gclid);} 34if(jQuery('input[name="product_slug"]').length&&typeof resourceslug!=='undefined'){jQuery('input[name="product_slug"]').val(resourceslug).change();} 35jQuery('.hs-fieldtype-intl-phone option').each(function(){disabledCountries=['CU','KP','IR','SY'];if(disabledCountries.indexOf(jQuery(this).val())>-1){jQuery(this).remove();}}) 36if(jQuery('input[name="resource_slug"]').length&&typeof resourceslug!=='undefined'&&resourceslug!=='thank-you-from-spire-maritime'){jQuery('input[name="resource_slug"]').val(resourceslug).change();} 37else if(jQuery('input[name="data_sample_download_thank_you_page"]').length&&typeof resourceslug!=='undefined'&&resourceslug=='thank-you-from-spire-maritime'){jQuery('input[name="data_sample_download_thank_you_page"]').val('1').change();} 38if(jQuery('input[name="sample_name"]').length&&typeof sample_name!=='undefined'){jQuery('input[name="sample_name"]').val(sample_name).change();} 39if(jQuery('input[name="data_sample_download_link"]').length&&typeof pdk!=='undefined'){jQuery('input[name="data_sample_download_link"]').val(pdk).change();} 40if(jQuery('input[name="resource_category"]').length&&typeof business1!=='undefined'){jQuery('input[name="resource_category"]').val(primarycat);} 41if(jQuery('input[name="secondary_resource_category"]').length&&typeof business2!=='undefined'){if(primarycat==business1){jQuery('input[name="secondary_resource_category"]').val(business2);}else{jQuery('input[name="secondary_resource_category"]').val(business1);}} 42setABTestfield();},onFormSubmit:function($form){bookedConsultation=0;if(jQuery('#i_would_like_to_book_a_demo-'+$form[0].dataset.formId+'.hs-input').is(':checked')){bookedConsultation=1;} 43formid=($form.data('form-id'));efirstname=jQuery('#firstname-'+formid).val();elastname=jQuery('#lastname-'+formid).val();eemail=jQuery('#email-'+formid).val();ecompany=jQuery('#company-'+formid).val();if($form[0].dataset.formId=='753dfdb2-8994-4546-906d-f87274741185'){useremail=jQuery('#email-753dfdb2-8994-4546-906d-f87274741185').val();userfirstname=jQuery('#firstname-753dfdb2-8994-4546-906d-f87274741185').val();userlastname=jQuery('#lastname-753dfdb2-8994-4546-906d-f87274741185').val();} 44window.dataLayer=window.dataLayer||[];window.dataLayer.push({'event':'Submitted Hubspot Form','eventCategory':'Submission','eventAction':'Submitted Hubspot Form','hs-form-guid':$form[0].dataset.formId,'bookedConsultation':bookedConsultation});if($form[0].dataset.formId=='a85bc0bd-a373-43fd-b136-d37b4a34a381'){allowViz($form);}},onFormSubmitted:function($form){fid=(jQuery($form[0]).parent().attr('id').replace('container-',''));if(jQuery($form[0]).parent().data('eventid')&&jQuery($form[0]).parent().data('eventkey')){eventid=jQuery($form[0]).parent().data('eventid');eventkey=jQuery($form[0]).parent().data('eventkey');url='https://event.on24.com/interface/registration/autoreg/index.html?eventid='+eventid+'&sessionid=1&key='
44+eventkey+'&firstname='+efirstname+'&lastname='+elastname+'&email='+eemail+'&company='+ecompany;window.location=url;} 45if(fid=="753dfdb2-8994-4546-906d-f87274741185"){jQuery.ajax({url:'https://dataexchange.spire.com/wp-admin/admin-ajax.php',type:'post',data:{'action':'register_analytics_trial','email':useremail,'firstname':userfirstname,'lastname':userlastname}});}}};if(jQuery(this).data('webinar')){hsargs.goToWebinarWebinarKey=jQuery(this).data('webinar');} 46hbspt.forms.create(hsargs);jQuery(this).removeClass('not_loaded');});} 47function maybeInitializeHSTargets(){var hstargets=jQuery('.hubspot_form_lazyloader.not_loaded:visible, .hubspot_form_lazyloader#container-4f517ef3-508d-4568-9f6b-ca40806a7271.not_loaded, .hubspot_form_lazyloader#container-cd9a8fd0-9151-4396-9699-96666e675474.not_loaded');if(hstargets.length){if(hsscriptisloaded==1){runHSContainers(hstargets);}else{jQuery.getScript(hsscript,function(){runHSContainers(hstargets);hsscriptisloaded=1;});}}else if(jQuery('.hubspot_form_lazyloader.not_loaded').length){jQuery.getScript(hsscript,function(){hsscriptisloaded=1;});}} 48(function($){$(window).on('load',maybeInitializeHSTargets);})(jQuery); 49(function($){$('.scrolltoelement').click(function(e){e.preventDefault();target=$(this).attr('href');gsap.to(window,{duration:1,ease:Power4.easeInOut,scrollTo:{y:$(target).offset().top-$('header').outerHeight()-10,}});});})(jQuery); 50function tryParseJSON(jsonString){try{var o=JSON.parse(jsonString);if(o&&typeof o==="object"){return o;}} 51catch(e){return false;} 52return false;} 53(function($){$(window).on('load',function(){if(typeof HubSpotConversations!=='undefined'){HubSpotConversations.on('conversationStarted',function(){window.dataLayer.push({'event':'Chat event','eventCategory':'Hubspot chat','hubspotAction':'Conversation started'});});HubSpotConversations.on('conversationClosed',function(){window.dataLayer.push({'event':'Chat event','eventCategory':'Hubspot chat','hubspotAction':'Conversation closed'});});HubSpotConversations.on('unreadConversationCountChanged',function(){window.dataLayer.push({'event':'Chat event','eventCategory':'Hubspot chat','hubspotAction':'Unread message count changed'});});}});window.addEventListener("message",function(event){window.dataLayer=window.dataLayer||[];if(event.origin=="https://app.hubspot.com"){if(obj=tryParseJSON(event.data)){if(obj.type==="closed-welcome-message"){window.dataLayer.push({'event':'Chat event','eventCategory':'Hubspot chat','hubspotAction':'Welcome message closed'});} 54if(obj.type==="open-change"){if(obj.data==true){window.dataLayer.push({'event':'Chat event','eventCategory':'Hubspot chat','hubspotAction':'Open'});} 55if(obj.data==false){window.dataLayer.push({'event':'Chat event','eventCategory':'Hubspot chat','hubspotAction':'Close'});}}}}});})(jQuery); 56var stickyheader=document.querySelector('header');function throttle(fn,delay){var last=undefined;var timer=undefined;return function(){var now=+new Date();if(last&&now<last+delay){clearTimeout(timer);timer=setTimeout(function(){last=now;fn();},delay);}else{last=now;fn();}};} 57function onScroll(){if(window.pageYOffset){stickyheader.classList.add('sticky');}else{stickyheader.classList.remove('sticky');}} 58(function($){$(window).on('scroll load',throttle(onScroll,25));throttle(onScroll,25);})(jQuery); 59function msieversion(){var ua=window.navigator.userAgent;var msie=ua.indexOf("MSIE ");if(msie>0||!!navigator.userAgent.match(/Trident.*rv\:11\./)){return ua.substring(msie+5,ua.indexOf(".",msie));} 60else{return false;} 61return false;} 62(function(){if(!('IntersectionObserver'in window))return;var run=function(){document.querySelectorAll('main .wrapper.clearfix').forEach(function(w){var r=w.getBoundingClientRect();if(r.top<window.innerHeight*0.8)return;w.classList.add('will-animate');});};if(document.readyState!=='loading')run();else document.addEventListener('DOMContentLoaded',run);})();function triggerFracs(){if(!('IntersectionObserver'in window))return;var obs=new IntersectionObserver(function(entries){entries.forEach(function(e){if(e.isIntersecting){e.target.classList.remove('will-animate');e.target.classList.add('in-view');obs.unobserve(e.target);}});},{threshold:0,rootMargin:'0px'});document.querySelectorAll('main .wrapper.clearfix.will-animate').forEach(function(w){obs.observe(w);});} 63(function($){if($('#idle_video').length&&!$('#idle_video source').length&&$(window).width()>1000){console.log('load');$('#idle_video').html('<source src="'+$('#idle_video').data('url')+'" t
63ype="video/mp4">');} 64if($('#idle_video').length){var myVid=document.getElementById("idle_video");myVid.addEventListener('play',fadeHeroVideo);myVid.addEventListener('canplay',fadeHeroVideo);myVid.addEventListener('loadeddata',fadeHeroVideo);$(window).on('load',function(){gsap.delayedCall(1,fadeHeroVideo);});} 65function fadeHeroVideo(){$('.visual .grad').css({'width':$('.visual video').width(),'height':$('.visual video').height()});$('#idle_video, .visual .grad').addClass('active');$(window).on('resize',function(){$('.visual .grad').css({'width':$('.visual video').width(),'height':$('.visual video').height()});});} 66if(msieversion()===false){$(document).ready(function(){triggerFracs();});}else{console.log(msieversion());gsap.set('main .clearfix.wrapper .col, main .clearfix.wrapper .visual',{opacity:1});}})(jQuery); 67(function($){$('#searchtrigger').click(function(e){e.preventDefault();$('#searchform').addClass('active');$('#search_text').focus();$('header').addClass('sticky');$('header').on('mouseleave',function(){$('#searchform').removeClass('active');});});$('#searchform').on('submit',function(e){if(!$('#search_text').val()){e.preventDefault();$('#search_text').removeClass('error');gsap.delayedCall(.05,function(){$('#search_text').addClass('error');});}});})(jQuery); 68(function($){$('.copyClipboard').click(function(){let theButton=$(this);var clipboard=new ClipboardJS('.copyClipboard');clipboard.on('success',function(e){theButton.text('Copied');console.info('Action:',e.action);console.info('Text:',e.text);console.info('Trigger:',e.trigger);e.clearSelection();setTimeout(function(){},2000);});clipboard.on('error',function(e){console.error('Action:',e.action);console.error('Trigger:',e.trigger);});});})(jQuery); 69(function($){var totalDelay=10;if((window.location.href.indexOf('triggerpop')>-1||window.location.href.indexOf('utm_source=exactearth')>-1)&&(typeof getSpireCookie('seenmigpopup')=='undefined'||!getSpireCookie('seenmigpopup'))){$('body').append('<div class="migrationpop"><div><p><strong style="font-weight:900;">Spire has acquired exactEarth</strong></p><p style="font-size:20px;">exactEarth customers will have<br/>no disruption of their service.</p><div class="autoclose">This message will auto-close in <span>'+totalDelay+'</span> seconds</div><a href="#" class="closebt">×</a></div></div>');if(window.location.href.indexOf('utm_source=exactearth')>-1)setSpireCookie('seenmigpopup',1,30);$('.migrationpop .closebt').on('click',function(e){e.preventDefault();$('.migrationpop').remove();});gsap.set(changeDelayLabel,{delay:1,onRepeat:changeDelayLabel,repeat:totalDelay+1,repeatDelay:1});gsap.delayedCall(13,function(){$('.migrationpop').remove();});} 70function changeDelayLabel(val){if(totalDelay==0)$('.migrationpop').remove();else{$('.autoclose span').html(totalDelay);totalDelay=totalDelay-1;}}})(jQuery); 71var DisclosureMenu=function(){"use strict";function e(t){return(e="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})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function o(e,t,o){return t&&n(e.prototype,t),o&&n(e,o),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?u(e):t}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=l(e);if(t){var s=l(this).constructor;n=Reflect.construct(o,arguments,s)}else n=o.apply(this,arguments);return c(this,n)}}function m(e,t,n){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(o){var s=Object.getOwnPropertyDescriptor(o,t);return s.get?s.get.call(n):s.value}})(e,t,n||e)}function h(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function d(t,n){try{if("object"!==e(n)){var o=e(n);throw new TypeError("AccessibleMenu: Elements given to isValidInstance() must be inside of an object. ".concat(o," given."))}for(var s in n)if(!(n[s]instanceof t)){var r=e(n[s]);throw new TypeError("AccessibleMenu: ".concat(s," must be an instance of ").concat(t.name,". ").concat(r," given."))}return!0}catch(e){return console.error(e),!1}}function p(t,n){try{if("object"!==e(n)){var o=e(n);throw new TypeError("AccessibleMenu: Values given to isValidType() must be inside of an object. ".concat(o," given."))}for(var s in n){var r=e(n[s]);if(r!==t)throw new TypeError("AccessibleMenu: ".concat(s," must be a ").concat(t,". ").concat(r," given."))}return!0}catch(e){return console.error(e),!1}}function v(t){try{if("object"!==e(t)){var n=e(t);throw new TypeError("AccessibleMenu: Values given to isCSSSelector() must be inside of an object. ".concat(n," given."))}for(var o in t)try{if(null===t[o])throw new Error;document.querySelector(t[o])}catch(e){throw new TypeError("AccessibleMenu: ".concat(o,' must be a valid CSS selector. "').concat(t[o],'" given.'))}return!0}catch(e){return console.error(e),!1}}function y(t){try{if("object"!==e(t)||Array.isArray(t)){var n=e(t);throw new TypeError("AccessibleMenu: Values given to isValidClassList() must be inside of an object. ".concat(n," given."))}var o=function(n){var o=e(t[n]);if("string"!==o){if(!Array.isArray(t[n]))throw new TypeError("AccessibleMenu: ".concat(n," must be a string or an array of str
71ings. ").concat(o," given."));t[n].forEach((function(e){if("string"!=typeof e)throw new TypeError("AccessibleMenu: ".concat(n," must be a string or an array of strings. An array containing non-strings given."))}))}else{var s={};s[n]=t[n],v(s)}};for(var s in t)o(s);return!0}catch(e){return console.error(e),!1}}function g(t){try{if("object"!==e(t)){var n=e(t);throw new TypeError("AccessibleMenu: Values given to isValidHoverType() must be inside of an object. ".concat(n," given."))}var o=["off","on","dynamic"];for(var s in t)if(!o.includes(t[s]))throw new TypeError("AccessibleMenu: ".concat(s," must be one of the following values: ").concat(o.join(", "),'. "').concat(t[s],'" given.'));return!0}catch(e){return console.error(e),!1}}function b(e,t){return!(!p("string",{event:e})||!d(HTMLElement,{element:t}))&&void 0!==t["on".concat(e)]}var _=function(){function e(n){var o=n.menuToggleElement,r=n.parentElement,l=n.controlledMenu,i=n.parentMenu,u=void 0===i?null:i;t(this,e),s(this,"_dom",{toggle:null,parent:null}),s(this,"_elements",{controlledMenu:null,parentMenu:null}),s(this,"_open",!1),s(this,"_expandEvent",new CustomEvent("accessibleMenuExpand",{bubbles:!0,detail:{toggle:this}})),s(this,"_collapseEvent",new CustomEvent("accessibleMenuCollapse",{bubbles:!0,detail:{toggle:this}})),this._dom.toggle=o,this._dom.parent=r,this._elements.controlledMenu=l,this._elements.parentMenu=u}return o(e,[{key:"initialize",value:function(){if(this.dom.toggle.setAttribute("aria-haspopup","true"),this.dom.toggle.setAttribute("aria-expanded","false"),function(e,t){if(p("string",{tagName:e})&&d(HTMLElement,t)){var n=e.toLowerCase(),o=!0;for(var s in t)t[s].tagName.toLowerCase()!==n&&(o=!1);return o}return!1}("button",{toggle:this.dom.toggle})||this.dom.toggle.setAttribute("role","button"),""===this.dom.toggle.id||""===this.elements.controlledMenu.dom.menu.id){var e=Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,10),t=this.dom.toggle.innerText.replace(/[^a-zA-Z0-9\s]/g,""),n=e;!t.replace(/\s/g,"").length&&this.dom.toggle.getAttribute("aria-label")&&(t=this.dom.toggle.getAttribute("aria-label").replace(/[^a-zA-Z0-9\s]/g,"")),t.replace(/\s/g,"").length>0&&((t=t.toLowerCase().replace(/\s+/g,"-")).startsWith("-")&&(t=t.substring(1)),t.endsWith("-")&&(t=t.slice(0,-1)),n="".concat(t,"-").concat(n)),this.dom.toggle.id=this.dom.toggle.id||"".concat(n,"-menu-button"),this.elements.controlledMenu.dom.menu.id=this.elements.controlledMenu.dom.menu.id||"".concat(n,"-menu")}this.elements.controlledMenu.dom.menu.setAttribute("aria-labelledby",this.dom.toggle.id),this.dom.toggle.setAttribute("aria-controls",this.elements.controlledMenu.dom.menu.id),this._collapse(!1)}},{key:"dom",get:function(){return this._dom}},{key:"elements",get:function(){return this._elements}},{key:"isOpen",get:function(){return this._open},set:function(e){p("boolean",{value:e}),this._open=e}},{key:"_expand",value:function(){var e,t,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=this.elements.controlledMenu,s=o.closeClass,r=o.openClass;(this.dom.toggle.setAttribute("aria-expanded","true"),""!==r)&&("string"==typeof r?this.elements.controlledMenu.dom.menu.classList.add(r):(e=this.elements.controlledMenu.dom.menu.classList).add.apply(e,h(r)));""!==s&&("string"==typeof s?this.elements.controlledMenu.dom.menu.classList.remove(s):(t=this.elements.controlledMenu.dom.menu.classList).remove.apply(t,h(s)));n&&this.dom.toggle.dispatchEvent(this._expandEvent)}},{key:"_collapse",value:function(){var e,t,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=this.elements.controlledMenu,s=o.closeClass,r=o.openClass;(this.dom.toggle.setAttribute("aria-expanded","false"),""!==s)&&("string"==typeof s?this.elements.controlledMenu.dom.menu.classList.add(s):(e=this.elements.controlledMenu.dom.menu.classList).add.apply(e,h(s)));""!==r&&("string"==typeof r?this.elements.controlledMenu.dom.menu.classList.remove(r):(t=this.elements.controlledMenu.dom.menu.classList).remove.apply(t,h(r)));n&&this.dom.toggle.dispatchEvent(this._collapseEvent)}}
71,{key:"open",value:function(){this.elements.controlledMenu.focusState="self",this._expand(),this.isOpen=!0}},{key:"preview",value:function(){this.elements.parentMenu&&(this.elements.parentMenu.focusState="self"),this._expand(),this.isOpen=!0}},{key:"close",value:function(){this.isOpen&&(this.elements.controlledMenu.currentChild=0,this.elements.controlledMenu.blur(),this.elements.parentMenu&&(this.elements.parentMenu.focusState="self"),this._collapse(),this.isOpen=!1)}},{key:"toggle",value:function(){this.isOpen?this.close():this.open()}},{key:"closeSiblings",value:function(){var e=this;this.elements.parentMenu&&this.elements.parentMenu.elements.submenuToggles.forEach((function(t){t!==e&&t.close()}))}},{key:"closeChildren",value:function(){this.elements.controlledMenu.elements.submenuToggles.forEach((function(e){return e.close()}))}}]),e}(),M=function(){function e(n){var o=n.menuItemElement,r=n.menuLinkElement,l=n.parentMenu,i=n.isSubmenuItem,u=void 0!==i&&i,c=n.childMenu,a=void 0===c?null:c,m=n.toggle,h=void 0===m?null:m;t(this,e),s(this,"_dom",{item:null,link:null}),s(this,"_elements",{parentMenu:null,childMenu:null,toggle:null}),s(this,"_submenu",!1),this._dom.item=o,this._dom.link=r,this._elements.parentMenu=l,this._elements.childMenu=a,this._elements.toggle=h,this._submenu=u}return o(e,[{key:"initialize",value:function(){}},{key:"dom",get:function(){return this._dom}},{key:"elements",get:function(){return this._elements}},{key:"isSubmenuItem",get:function(){return this._submenu}},{key:"focus",value:function(){this.elements.parentMenu.shouldFocus&&this.dom.link.focus()}},{key:"blur",value:function(){this.elements.parentMenu.shouldFocus&&this.dom.link.blur()}}]),e}();function E(e){try{var t=e.key||e.keyCode,n={Enter:"Enter"===t||13===t,Space:" "===t||"Spacebar"===t||32===t,Escape:"Escape"===t||"Esc"===t||27===t,ArrowUp:"ArrowUp"===t||"Up"===t||38===t,ArrowRight:"ArrowRight"===t||"Right"===t||39===t,ArrowDown:"ArrowDown"===t||"Down"===t||40===t,ArrowLeft:"ArrowLeft"===t||"Left"===t||37===t,Home:"Home"===t||36===t,End:"End"===t||35===t,Character:isNaN(t)&&!!t.match(/^[a-zA-Z]{1}$/),Tab:"Tab"===t||9===t,Asterisk:"*"===t||56===t};return Object.keys(n).find((function(e){return!0===n[e]}))||""}catch(e){return""}}function C(e){e.preventDefault(),e.stopPropagation()}var T=function(){function n(e){var o=e.menuElement,r=e.menuItemSelector,l=void 0===r?"li":r,i=e.menuLinkSelector,u=void 0===i?"a":i,c=e.submenuItemSelector,a=void 0===c?"":c,m=e.submenuToggleSelector,h=void 0===m?"a":m,f=e.submenuSelector,d=void 0===f?"ul":f,p=e.controllerElement,v=void 0===p?null:p,y=e.containerElement,g=void 0===y?null:y,b=e.openClass,E=void 0===b?"show":b,C=e.closeClass,T=void 0===C?"hide":C,k=e.isTopLevel,w=void 0===k||k,S=e.parentMenu,I=void 0===S?null:S,L=e.hoverType,A=void 0===L?"off":L,O=e.hoverDelay,D=void 0===O?250:O;t(this,n),s(this,"_MenuType",n),s(this,"_MenuItemType",M),s(this,"_MenuToggleType",_),s(this,"_dom",{menu:null,menuItems:[],submenuItems:[],submenuToggles:[],submenus:[],controller:null,container:null}),s(this,"_selectors",{menuItems:"",menuLinks:"",submenuItems:"",submenuToggles:"",submenus:""}),s(this,"_elements",{menuItems:[],submenuToggles:[],controller:null,parentMenu:null,rootMenu:null}),s(this,"_openClass","show"),s(this,"_closeClass","hide"),s(this,"_root",!0),s(this,"_currentChild",0),s(this,"_focusState","none"),s(this,"_currentEvent","none"),s(this,"_hoverType","off"),s(this,"_hoverDelay",250),this._dom.menu=o,this._dom.controller=v,this._dom.container=g,this._selectors.menuItems=l,this._selectors.menuLinks=u,this._selectors.submenuItems=a,this._selectors.submenuToggles=h,this._selectors.submenus=d,this._elements.menuItems=[],this._elements.submenuToggles=[],this._elements.controller=null,this._elements.parentMenu=I,this._elements.rootMenu=w?this:null,this._openClass=E||"",this._closeClass=T||"",this._root=w,this._hoverType=A,this._hoverDelay=D}return o(n,[{key:"initialize",value:function(){if(!this._validate())throw new Error("AccesibleMenu: cannot initialize menu. See other error messages for more information.");
71if(null===this.elements.rootMenu&&this._findRootMenu(this),this._setDOMElements(),this.isTopLevel&&this.dom.controller&&this.dom.container){var e=new this._MenuToggleType({menuToggleElement:this.dom.controller,parentElement:this.dom.container,controlledMenu:this});this._elements.controller=e}this._createChildElements()}},{key:"dom",get:function(){return this._dom}},{key:"selectors",get:function(){return this._selectors}},{key:"elements",get:function(){return this._elements}},{key:"isTopLevel",get:function(){return this._root}},{key:"openClass",get:function(){return this.isTopLevel?this._openClass:this.elements.rootMenu.openClass},set:function(e){y({openClass:e}),this._openClass!==e&&(this._openClass=e)}},{key:"closeClass",get:function(){return this.isTopLevel?this._closeClass:this.elements.rootMenu.closeClass},set:function(e){y({closeClass:e}),this._closeClass!==e&&(this._closeClass=e)}},{key:"currentChild",get:function(){return this._currentChild},set:function(e){function t(e){if(["mouse","character"].includes(e.currentEvent)&&e.elements.parentMenu)for(var t=0,n=!1;!n&&t<e.elements.parentMenu.elements.menuItems.length;){var o=e.elements.parentMenu.elements.menuItems[t];o.isSubmenuItem&&o.elements.toggle.elements.controlledMenu===e&&(n=!0,e.elements.parentMenu.currentEvent=e.currentEvent,e.elements.parentMenu.currentChild=t),t++}}p("number",{value:e}),e<-1?(this._currentChild=-1,t(this)):e>=this.elements.menuItems.length?(this._currentChild=this.elements.menuItems.length-1,t(this)):this.focusChild!==e&&(this._currentChild=e,t(this))}},{key:"focusState",get:function(){return this._focusState},set:function(t){!function(t){try{if("object"!==e(t)){var n=e(t);throw new TypeError("AccessibleMenu: Values given to isValidState() must be inside of an object. ".concat(n," given."))}var o=["none","self","child"];for(var s in t)if(!o.includes(t[s]))throw new TypeError("AccessibleMenu: ".concat(s," must be one of the following values: ").concat(o.join(", "),'. "').concat(t[s],'" given.'))}catch(e){return console.error(e),!1}}({value:t}),this._focusState!==t&&(this._focusState=t),this.elements.submenuToggles.length>0&&("self"===t||"none"===t)&&this.elements.submenuToggles.forEach((function(e){e.elements.controlledMenu.focusState="none"})),!this.elements.parentMenu||"self"!==t&&"child"!==t||(this.elements.parentMenu.focusState="child")}},{key:"currentEvent",get:function(){return this._currentEvent},set:function(t){!function(t){try{if("object"!==e(t)){var n=e(t);throw new TypeError("AccessibleMenu: Values given to isValidEvent() must be inside of an object. ".concat(n," given."))}var o=["none","mouse","keyboard","character"];for(var s in t)if(!o.includes(t[s]))throw new TypeError("AccessibleMenu: ".concat(s," must be one of the following values: ").concat(o.join(", "),'. "').concat(t[s],'" given.'))}catch(e){return console.error(e),!1}}({value:t}),this._currentEvent!==t&&(this._currentEvent=t,this.elements.submenuToggles.length>0&&this.elements.submenuToggles.forEach((function(e){e.elements.controlledMenu.currentEvent=t})))}},{key:"currentMenuItem",get:function(){return this.elements.menuItems[this.currentChild]}},{key:"hoverType",get:function(){return this._root?this._hoverType:this.elements.rootMenu.hoverType},set:function(e){g({value:e}),this._hoverType!==e&&(this._hoverType=e)}},{key:"hoverDelay",get:function(){return this._root?this._hoverDelay:this.elements.rootMenu.hoverDelay},set:function(e){p("number",{value:e}),this._hoverDelay!==e&&(this._hoverDelay=e)}},{key:"shouldFocus",get:function(){var e=!1;return"keyboard"!==this.currentEvent&&"character"!==this.currentEvent||(e=!0),"mouse"===this.currentEvent&&"dynamic"===this.hoverType&&(e=!0),e}},{key:"_validate",value:function(){var e=!0;return null!==this._dom.container||null!==this._dom.controller?d(HTMLElement,{menuElement:this._dom.menu,controllerElement:this._dom.controller,containerElement:this._dom.container})||(e=!1):d(HTMLElement,{menuElement:this._dom.menu})||(e=!1),""!==this._selectors.submenuItems?v({menuItemSelector:this._selectors.menuItems,menuLinkSelector:this._selectors.menuLinks,submenuItemSelector:this._selectors.submenuItems,submenuToggleSelector:this._selectors.submenuToggles,submenuSelector:this._selectors.submenus})||(e=!1):v({menuItemSelector:this._selectors.menuItems,menuLinkSelector:this._selectors.menuLinks})||(e=!1),""===this._openClass||y({openClass:this._openClass})||(e=!1),""===this._closeClass||y({closeClass:this._closeClass})||(e=!1),p("boolean",{isTopLevel:this._root})||(e=!1),null===this._elements.parentMenu||d(n,{parentMenu:this._elements.parentMenu})||(e=!1),g({hoverType:this._hoverType})||(e=!1),p("number",{hoverDelay:this._hoverDelay})||(e=!1),e}},{key:"_setDOMElementType",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.dom.menu,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if("string"!=typeof this.selectors[e])throw new Error('AccessibleMenu: "'.concat(e,'" is not a valid element type within the menu.'));if(!Array.isArray(this.dom[e]))throw new Error('AccessibleMenu: The "'.concat(e,'" element cannot be set through _setDOMElementType.'));t!==this.dom.menu&&d(HTMLElement,{base:t});var o=Array.from(t.querySelectorAll(this.selectors[e])),s=o.filter((function(e){return e.parentElement===t}));this._dom[e]=n?s:[].concat(h(this._dom[e]),h(s))}},{key:"_resetDOMElementType",value:function(e){if(void 0===this.dom[e])throw new Error('AccessibleMenu: "'.concat(e,'" is not a valid element type within the menu.'));if(!Array.isArray(this.dom[e]))throw new Error('AccessibleMenu: The "'.concat(e,'" element cannot be reset through _resetDOMElementType.'));this._dom[e]=[]}},{key:"_setDOMElements",value:function(){var e=this;this._setDOMElementType("menuItems"),""!==this.selectors.submenuItems&&(this._setDOMElementType("submenuItems"),this._resetDOMElementType("submenuToggles"),this._resetDOMElementType("submenus"),this.dom.submenuItems.forEac
71h((function(t){e._setDOMElementType("submenuToggles",t,!1),e._setDOMElementType("submenus",t,!1)})))}},{key:"_findRootMenu",value:function(e){if(e.isTopLevel)this._elements.rootMenu=e;else{if(null===e.elements.parentMenu)throw new Error("Cannot find root menu.");this._findRootMenu(e.elements.parentMenu)}}},{key:"_createChildElements",value:function(){var e=this;this.dom.menuItems.forEach((function(t){var n;if(e.dom.submenuItems.includes(t)){var o=t.querySelector(e.selectors.submenuToggles),s=t.querySelector(e.selectors.submenus),r=new e._MenuType({menuElement:s,menuItemSelector:e.selectors.menuItems,menuLinkSelector:e.selectors.menuLinks,submenuItemSelector:e.selectors.submenuItems,submenuToggleSelector:e.selectors.submenuToggles,submenuSelector:e.selectors.submenus,openClass:e.openClass,closeClass:e.closeClass,isTopLevel:!1,parentMenu:e,hoverType:e.hoverType,hoverDelay:e.hoverDelay}),l=new e._MenuToggleType({menuToggleElement:o,parentElement:t,controlledMenu:r,parentMenu:e});e._elements.submenuToggles.push(l),n=new e._MenuItemType({menuItemElement:t,menuLinkElement:o,parentMenu:e,isSubmenuItem:!0,childMenu:r,toggle:l})}else{var i=t.querySelector(e.selectors.menuLinks);n=new e._MenuItemType({menuItemElement:t,menuLinkElement:i,parentMenu:e})}e._elements.menuItems.push(n)}))}},{key:"_handleFocus",value:function(){var e=this;this.elements.menuItems.forEach((function(t,n){t.dom.link.addEventListener("focus",(function(){e.focusState="self",e.currentChild=n}))}))}},{key:"_handleClick",value:function(){var e=this,t=b("touchstart",this.dom.menu)?"touchstart":"mousedown",n=b("touchend",this.dom.menu)?"touchend":"mouseup";function o(e,t,n){C(n),t.toggle(),t.isOpen&&(e.focusState="self",t.elements.controlledMenu.focusState="none")}this.elements.menuItems.forEach((function(s,r){s.dom.link.addEventListener(t,(function(){e.currentEvent="mouse",e.elements.rootMenu.blurChildren(),e.focusChild(r)})),s.isSubmenuItem&&(s.elements.toggle.dom.toggle["on".concat(n)]=function(t){e.currentEvent="mouse",o(e,s.elements.toggle,t)})})),this.isTopLevel&&this.elements.controller&&(this.elements.controller.dom.toggle["on".concat(n)]=function(t){e.currentEvent="mouse",o(e,e.elements.controller,t)})}},{key:"_handleHover",value:function(){var e=this;this.elements.menuItems.forEach((function(t,n){t.dom.link.addEventListener("mouseenter",(function(){if("on"===e.hoverType)e.currentEvent="mouse",e.currentChild=n,t.isSubmenuItem&&t.elements.toggle.preview();else if("dynamic"===e.hoverType){var o=e.elements.submenuToggles.some((function(e){return e.isOpen}));e.currentChild=n,e.isTopLevel&&"none"===e.focusState||(e.currentEvent="mouse",e.focusCurrentChild()),!t.isSubmenuItem||e.isTopLevel&&!o||(e.currentEvent="mouse",t.elements.toggle.preview())}})),t.isSubmenuItem&&t.dom.item.addEventListener("mouseleave",(function(){"on"===e.hoverType?e.hoverDelay>0?setTimeout((function(){e.currentEvent="mouse",t.elements.toggle.close()}),e.hoverDelay):(e.currentEvent="mouse",t.elements.toggle.close()):"dynamic"===e.hoverType&&(e.isTopLevel||(e.hoverDelay>0?setTimeout((function(){e.currentEvent="mouse",t.elements.toggle.close(),e.focusCurrentChild()}),e.hoverDelay):(e.currentEvent="mouse",t.elements.toggle.close(),e.focusCurrentChild())))}))}))}},{key:"_handleKeydown",value:function(){var e=this;this.isTopLevel&&this.elements.controller&&this.elements.controller.dom.toggle.addEventListener("keydown",(function(t){e.currentEvent="keyboard";var n=E(t);"Space"!==n&&"Enter"!==n||C(t)}))}},{key:"_handleKeyup",value:function(){var e=this;this.isTopLevel&&this.elements.controller&&this.elements.controller.dom.toggle.addEventListener("keyup",(function(t){e.currentEvent="keyboard";var n=E(t);"Space"!==n&&"Enter"!==n||(C(t),e.elements.controller.open(),e.focusFirstChild())}))}},{key:"focus",value:function(){this.focusState="self",this.shouldFocus&&this.dom.menu.focus()}},{key:"blur",value:function(){this.focusState="none",this.shouldFocus&&this.dom.menu.blur()}},{key:"focusCurrentChild",value:function(){this.focusState="self",-1!==this.currentChild&&this.currentMenuItem.focus()}},{key:"focusChild",value:function(e){this.blurCurrentChild(),this.currentChild=e,this.focusCurrentChild()}},{key:"focusFirstChild",value:function(){this.focusChild(0)}},{key:"focusLastChild",value:function(){this.focusChild(this.elements.menuItems.length-1)}},{key:"focusNextChild",value:function(){this.currentChild<this.elements.menuItems.length-1?this.focusChild(this.currentChild+1):this.focusCurrentChild()}},{key:"focusPreviousChild",value:function(){this.currentChild>0?this.focusChild(this.currentChild-1):this.focusCurrentChild()}},{key:"blurCurrentChild",value:function(){this.focusState="none",-1!==this.currentChild&&this.currentMenuItem.blur()}},{key:"focusController",value:function(){this.dom.controller&&(this.shouldFocus&&this.dom.controller.focus(),this.focusState="none")}},{key:"focusContainer",value:function(){this.dom.container&&(this.shouldFocus&&this.dom.container.focus(),this.focusState="none")}},{key:"closeChildren",value:function(){this.elements.submenuToggles.forEac
71h((function(e){return e.close()}))}},{key:"blurChildren",value:function(){this.elements.menuItems.forEach((function(e){e.blur(),e.isSubmenuItem&&e.elements.childMenu.blurChildren()}))}}]),n}(),k=function(e){r(o,e);var n=a(o);function o(e){var s,r=e.menuItemElement,l=e.menuLinkElement,i=e.parentMenu,u=e.isSubmenuItem,c=void 0!==u&&u,a=e.childMenu,m=void 0===a?null:a,h=e.toggle,f=void 0===h?null:h,d=e.initialize,p=void 0===d||d;return t(this,o),s=n.call(this,{menuItemElement:r,menuLinkElement:l,parentMenu:i,isSubmenuItem:c,childMenu:m,toggle:f}),p&&s.initialize(),s}return o}(M),w=function(e){r(s,e);var n=a(s);function s(e){var o,r=e.menuToggleElement,l=e.parentElement,i=e.controlledMenu,u=e.parentMenu,c=void 0===u?null:u,a=e.initialize,m=void 0===a||a;return t(this,s),o=n.call(this,{menuToggleElement:r,parentElement:l,controlledMenu:i,parentMenu:c}),m&&o.initialize(),o}return o(s,[{key:"open",value:function(){this.closeSiblings(),m(l(s.prototype),"open",this).call(this)}},{key:"preview",value:function(){this.closeSiblings(),m(l(s.prototype),"preview",this).call(this)}},{key:"close",value:function(){this.isOpen&&this.closeChildren(),m(l(s.prototype),"close",this).call(this)}}]),s}(_);return function(e){r(i,e);var n=a(i);function i(e){var o,r=e.menuElement,l=e.menuItemSelector,c=void 0===l?"li":l,a=e.menuLinkSelector,m=void 0===a?"a":a,h=e.submenuItemSelector,f=void 0===h?"":h,d=e.submenuToggleSelector,p=void 0===d?"a":d,v=e.submenuSelector,y=void 0===v?"ul":v,g=e.controllerElement,b=void 0===g?null:g,_=e.containerElement,M=void 0===_?null:_,E=e.openClass,C=void 0===E?"show":E,T=e.closeClass,S=void 0===T?"hide":T,I=e.isTopLevel,L=void 0===I||I,A=e.parentMenu,O=void 0===A?null:A,D=e.hoverType,j=void 0===D?"off":D,R=e.hoverDelay,z=void 0===R?250:R,K=e.optionalKeySupport,x=void 0!==K&&K,F=e.initialize,H=void 0===F||F;return t(this,i),s(u(o=n.call(this,{menuElement:r,menuItemSelector:c,menuLinkSelector:m,submenuItemSelector:f,submenuToggleSelector:p,submenuSelector:y,controllerElement:b,containerElement:M,openClass:C,closeClass:S,isTopLevel:L,parentMenu:O,hoverType:j,hoverDelay:z})),"_MenuType",i),s(u(o),"_MenuItemType",k),s(u(o),"_MenuToggleType",w),s(u(o),"_currentChild",-1),s(u(o),"_optionalSupport",!1),o._optionalSupport=x,H&&o.initialize(),o}return o(i,[{key:"initialize",value:function(){try{m(l(i.prototype),"initialize",this).call(this),this._handleFocus(),this._handleClick(),this._handleHover(),this._handleKeydown(),this._handleKeyup()}catch(e){console.error(e)}}},{key:"optionalKeySupport",get:function(){return this.isTopLevel?this._optionalSupport:this.elements.rootMenu.optionalKeySupport},set:function(e){p("boolean",{optionalKeySupport:e}),this._optionalSupport=e}},{key:"_validate",value:function(){var e=m(l(i.prototype),"_validate",this).call(this);return p("boolean",{optionalKeySupport:this._optionalSupport})||(e=!1),e}},{key:"_handleClick",value:function(){var e=this;m(l(i.prototype),"_handleClick",this).call(this);var t=b("touchend",this.dom.menu)?"touchend":"mouseup";document.addEventListener(t,(function(t){"none"!==e.focusState&&(e.currentEvent="mouse",e.dom.menu.contains(t.target)||!e.dom.menu===t.target||(e.closeChildren(),e.blur(),e.elements.controller&&e.elements.controller.close()))}))}},{key:"_handleKeydown",value:function(){var e=this;m(l(i.prototype),"_handleKeydown",this).call(this),this.dom.menu.addEventListener("keydown",(function(t){e.currentEvent="keyboard";var n=E(t);if("self"===e.focusState){if(e.optionalKeySupport){["ArrowUp","ArrowRight","ArrowDown","ArrowLeft","Home","End"].includes(n)&&C(t)}else(e.currentMenuItem.isSubmenuItem&&["Space","Enter"].includes(n)||e.elements.controller&&["Escape"].includes(n)||e.elements.parentMenu&&["Escape"].includes(n))&&C(t)}}))}},{key:"_handleKeyup",value:function(){var e=this;m(l(i.prototype),"_handleKeyup",this).call(this),this.dom.menu.addEventListener("keyup",(function(t){e.currentEvent="keyboard";var n=E(t);if("self"===e.focusState)if("Space"===n||"Enter"===n)e.currentMenuItem.isSubmenuItem?(C(t),e.currentMenuItem.elements.toggle.preview()):e.currentMenuItem.dom.link.click();else if("Escape"===n){e.elements.submenuToggles.some((function(e){return e.isOpen}))?(C(t),e.closeChildren()):e.elements.parentMenu?(C(t),e.elements.parentMenu.currentEvent=e.currentEvent,e.elements.parentMenu.closeChildren(),e.elements.parentMenu.focu
71sCurrentChild()):e.isTopLevel&&e.elements.controller&&e.elements.controller.isOpen&&(e.elements.controller.close(),e.focusController())}else e.optionalKeySupport&&("ArrowDown"===n||"ArrowRight"===n?(C(t),e.currentMenuItem.isSubmenuItem&&e.currentMenuItem.elements.toggle.isOpen?(e.currentMenuItem.elements.childMenu.currentEvent="keyboard",e.currentMenuItem.elements.childMenu.focusFirstChild()):e.focusNextChild()):"ArrowUp"===n||"ArrowLeft"===n?(C(t),e.focusPreviousChild()):"Home"===n?(C(t),e.focusFirstChild()):"End"===n&&(C(t),e.focusLastChild()))}))}}]),i}(T)}(); 72; 73document.addEventListener("DOMContentLoaded",()=>{const containerElement=document.querySelector("nav");const controllerElement=containerElement.querySelector("button");const menuElement=containerElement.querySelector("ul");const menu=new DisclosureMenu({menuElement,submenuItemSelector:".menu-item-has-children",containerElement,controllerElement,optionalKeySupport:true,});});jQuery('nav#main-nav a[href="#"]').click(function(e){e.preventDefault();});jQuery("body").click(function(event){if(jQuery('nav#main-nav ul > li > ul').hasClass('show')){jQuery(this).addClass("menu-open");event.stopPropagation();}else{jQuery(this).removeClass("menu-open");}}); 74var isAPILoaded=false;if(typeof loadVidyardApi==="undefined"){function loadVidyardApi(){var tag=document.createElement('script');tag.id='vidyard-api';tag.src='https://play.vidyard.com/embed/v4.js';var firstScriptTag=document.getElementsByTagName('script')[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag);}} 75(function($){$('.tabbedblock, .markets').find('.tabs a').click(function(e){e.preventDefault();currentblock=$(this).closest('.tabbedblock, .markets');if(!isAPILoaded)loadVidyardApi();targetindex=($(this).parent().index());currentblock.find('.market, .tabcontent, .tabs li').removeClass('active');currentblock.find('.tabcontent .embed-container').each(function(){thisuuid=($(this).data('uuid'));if(typeof VidyardV4!=='undefined'){var players=VidyardV4.players;for(i in players){if(players[i].uuid==thisuuid)players[i].pause();}}});currentblock.find('.market:eq('+targetindex+'), .tabcontent:eq('+targetindex+'), .tabs li:eq('+targetindex+')').addClass('active');gsap.fromTo(currentblock.find('.market:eq('+targetindex+') .col, .market:eq('+targetindex+') .visual, .tabcontent:eq('+targetindex+') .col, .tabcontent:eq('+targetindex+') .visual'),{opacity:0,y:30},{opacity:1,y:0,ease:Power4.easeOut,duration:1,stagger:.1});currentblock.find('.market:eq('+targetindex+'), .tabcontent:eq('+targetindex+')').fracs('unbind');});$('.tabbedblock, .markets').find('.prev-slide').unbind('click').click(function(e){e.preventDefault();currentblock=$(this).closest('.tabbedblock, .markets');console.log(currentblock);nextindex=currentblock.find('.tabs li.active').index()-1;console.log(nextindex);if(nextindex<0)nextindex=currentblock.find('.tabs li').length-1;currentblock.find('.tabs li:eq('+nextindex+') a').trigger('click');});$('.tabbedblock, .markets').find('.next-slide').unbind('click').click(function(e){e.preventDefault();currentblock=$(this).closest('.tabbedblock, .markets');console.log(currentblock);nextindex=currentblock.find('.tabs li.active').index()+1;console.log(nextindex);if(nextindex>=currentblock.find('.tabs li').length)nextindex=0;currentblock.find('.tabs li:eq('+nextindex+') a').trigger('click');});$('.tabbedblock .videotrigger').click(function(e){e.preventDefault();if(!isAPILoaded)loadVidyardApi();$(this).parent().addClass('playing');$(this).parent().html($(this).parent().html().replace().replace('<!--','').replace('-->',''));});})(jQuery); 76(function($){function recalcEqualizers(){pricingcontainers.each(function(){pricingtables=$(this).find('.plantable, .adcol');pricingtables.css('min-height','');var maxval=0;pricingtables.each(function(){if($(this).outerHeight()>maxval)maxval=$(this).outerHeight();});pricingtables.css('min-height',maxval+'px');});} 77var pricingcontainers=$('.equalizecontainer');if(pricingcontainers.length){$(window).on('load resize',recalcEqualizers);recalcEqualizers();} 78$('.acc_toggle').click(function(e){e.preventDefault();$(this).closest('.pricingcontent').find('.acc_detail').toggleClass('active');$(this).closest('.pricingcontent').find('.acc_toggle').toggleClass('active');});})(jQuery);
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.