"use strict";function removeGciCartCookies(){Cookies.remove("gci_cart")}function getCurrentTime(){var n=new Date;return n.getTime()}function getBeforeYouGoOrNot(){var n=!0,t;return Cookies.get("gci_beforeYouGo")?(t=JSON.parse(Cookies.get("gci_beforeYouGo")),n=t.pop):n=!0,n}function setBeforeYouGoOrNot(){var n=new Date,t;n.setDate(n.getDate()+30);t={};t.pop=!1;Cookies.set("gci_beforeYouGo",t,{expires:n,path:"/"})}function getReferenceNumber(){var t="",n;return Cookies.get("gci_cart")&&(n=JSON.parse(Cookies.get("gci_cart")),n.referenceNumber!==undefined&&(t=n.referenceNumber)),t}function checkReferenceNumber(){return getReferenceNumber()==""?getCurrentTime():getReferenceNumber()}function setReferenceNumber(n){var i=new Date,t;i.setDate(i.getDate()+30);t={};Cookies.get("gci_cart")&&(t=JSON.parse(Cookies.get("gci_cart")));t.referenceNumber=n;Cookies.set("gci_cart",t,{expires:i,path:"/"})}function getGeoCity(){var t="";if(Cookies.get("gci_geolocation")){var n=JSON.parse(Cookies.get("gci_geolocation")),i=n.city,r=n.zip,u=n.state,f=n.country;t=n.city;JSON.parse(Cookies.get("gci_geolocation")).city!=="Your Location"?($(".location-popup").addClass("active"),$(".update-location").removeClass("active")):($(".location-popup").removeClass("active"),$(".update-location").addClass("active"))}else t="",$(".location-popup").addClass("active"),$(".update-location").removeClass("active");return t}function showValidCityName(n){n=n||!1;getGeoCity()&&$(".geocitytext").text(getGeoCity());$(".updateCityMobile").val("");$(".updateCityDesk").val("");$("#locationUpdated").slideDown("slow");n&&location.reload()}function setLocationToAnchorage(){setGeoLocation("99504","Anchorage")}function setGeoLocation(n,t,i,r,u,f){var o,e;u=u||!1;i=i||"AK";r=r||"USA";t=t||"Anchorage";o=new Date;o.setDate(o.getDate()+30);e={};e.city=capitalize(t);e.zip=n;e.state=i;e.country=r;e.availability=f&&f.length>0?f:[];Cookies.set("gci_geolocation",e,{expires:o,path:"/"});showValidCityName(u)}function setGeoCookie(n,t,i,r,u,f){var o,e;u=u||!1;i=i||"AK";r=r||"USA";o=new Date;o.setDate(o.getDate()+30);e={};e.city=capitalize(t);e.zip=n;e.state=i;e.country=r;e.availability=f&&f.length>0?f:[];Cookies.set("gci_geolocation",e,{expires:o,path:"/"});showValidCityName(u)}function geoFindMe(){function i(n){var t=n.coords.latitude,i=n.coords.longitude;try{ga("gtm1.send","event","BrowserLocationEnablement","Allow")}catch(r){console.log("ga error")}reverseGeo(t,i)}function n(){if(n.code==n.PERMISSION_DENIED)try{ga("gtm1.send","event","BrowserLocationEnablement","Block")}catch(t){console.log("ga error")}setGeoCookie("","Your Location")}var t=document.getElementById("locationFailed");navigator.geolocation||(t.innerHTML="

Geolocation is not supported by your browser<\/p>",$("#locationFailed").slideDown("slow"));t.innerHTML="

Locating…<\/p>";navigator.geolocation.getCurrentPosition(i,n)}function reverseGeo(n,t){$.get("/AvailabilityAPI/SelfMadeGeocoding?input="+n+","+t,function(n){if(n=="")console.log("Set location via internal API failed");else{var t=n.split(","),r=t[2],i=t[0],u=t[1];/^[a-zA-Z]+(?:[\s-][a-zA-Z]+)*$/.test(i)&&(LookupLocation(i,!0),console.log("Set location via internal API"))}}).fail(function(){console.log("Set location via internal API failed");setLocationToAnchorage()})}function isValidUSZip(n){return/^\d{5}(-\d{4})?$/.test(n)}function capitalize(n){return n.replace(/\w\S*/g,function(n){return n.charAt(0).toUpperCase()+n.substr(1).toLowerCase()})}function LookupLocation(n,t){return t=t||!1,n!=""&&$.getJSON("/AvailabilityAPI/getGeo?search="+n,function(){}).done(function(i){i.zip!=""&&i.cityName!=""?setGeoLocation(i.zip,i.cityName,"AK","USA",t,i.availability):GoogleAddressAPI(n,t)}).fail(function(){console.log(":>");GoogleAddressAPI(n,t)}),!0}function GoogleAddressAPI(n,t){t=t||!1;$.getJSON("/AvailabilityAPI/getFullAddress?input="+n,function(n){var i;try{n.results.forEach(function(n){if(n.address_components.filter(function(n){return n.types.indexOf("administrative_area_level_1")>=0})[0].short_name==="AK"){i=n.address_components;return}});i===undefined&&(i=n.results[0].address_components);var u=i.filter(function(n){return n.types.indexOf("country")>=0})[0].short_name,r=i.filter(function(n){return n.types.indexOf("locality")>=0})[0].short_name,f=i.filter(function(n){return n.types.indexOf("administrative_area_level_1")>=0})[0].short_name;r.length!==0&&setGeoLocation("00000",r,f,u,t)}catch(e){$("#locationFailed").html($("#locationFailed").attr("data-plan-not-available-message"));$("#locationFailed").slideDown("slow")}})}function notFoundLocationHandle(){$("#locationFailed").html($("#locationFailed").attr("data-location-not-found-message"));$("#locationFailed").slideDown("slow")}function noServiceLocationHandle(){$("#locationFailed").html($("#locationFailed").attr("data-plan-not-available-message"));$("#locationFailed").slideDown("slow")}function requiredLocationHandle(){$("#locationFailed").html($("#locationFailed").attr("data-required-message"));$("#locationFailed").slideDown("slow")}function outOfStateLocationHandle(){$("#locationFailed").html($("#locationFailed").attr("data-out-of-state-message"));$("#locationFailed").slideDown("slow")}(function(){$(".mega-dropdown").on("hide.bs.dropdown",function(n){(n.clickEvent!=null&&n.clickEvent.target.className.indexOf("sub-link")>-1||n.clickEvent!=null&&n.clickEvent.target.className.indexOf("fa-angle")>-1)&&n.preventDefault()});$(".main-menu .tabs-vertical-left .submenu-content").on("hidden.bs.collapse",function(n){n.stopPropagation()});$(".horizontal-tabs-slide").slick({responsive:[{breakpoint:1024,settings:"slick"},{breakpoint:5e3,settings:"unslick"}],infinite:!1,variableWidth:!0,slidesToShow:1,dots:!1,arrows:!1,centerMode:!1});$(".horizontal-tabs-slide.slick-slider .nav-link.sub-link").on("show.bs.tab",function(){var n=$(this);$(".horizontal-tabs-slide.slick-slider .nav-link.sub-link").removeClass("active").removeClass("show");n.addClass("active").addClass("show")})})();$(window).ready(function(){});$(window).scroll(function(){}),function(){function n(n){var t=function(t){var r=$(t.target);!r.closest(n).length&&$(n).is(":visible")&&($(n).removeClass("show"),i())},i=function(){document.removeEventListener("click",t)};document.addEventListener("click",t)}$(".mega-dropdown").on("show.bs.dropdown",function(){$(".mega-dropdown, .mega-dropdown .mega-dropdown-menu, .mega-dropdown .simple-dropdown-menu").removeClass("show");var t=$(this);t.addClass("show");t.find(".mega-dropdown-menu, .simple-dropdown-menu").addClass("show");n($(".mega-dropdown, .mega-dropdown-menu, .simple-dropdown-menu"))});$(".quick-links-dropdown").on("show.bs.dropdown",function(){var n=$(this);n.addClass("show");n.find(".dropdown-menu").addClass("show")});$(".quick-links-dropdown").on("hide.bs.dropdown",function(){var n=$(this);n.removeClass("show");n.find(".dropdown-menu").removeClass("show")})}(),function(n){function u(){i!==null&&clearTimeout(i);t.each(function(){n(this).css("height","")})}function f(){if(u(),!(n(window).width()>1183)){var r=0;i=setTimeout(function(){t.each(function(){n(this).outerHeight()>r&&(r=n(this).outerHeight())});t.each(function(){n(this).css("height",r)})},20)}}var r=n(".cta-card-grid"),t=n(".cta-card .cta-card-body",r),i=null;n(window).on("resize",function(){f()})}(jQuery),function(n){n("#dropdownIndustry").parent().on("show.bs.dropdown",function(){n(this).closest(".feature-content").css("zIndex",10)});n("#dropdownIndustry").parent().on("hide.bs.dropdown",function(){n(this).closest(".feature-content").css("zIndex","")})}(jQuery),function(n){function o(){t.css({left:0});r.children().removeClass("disabled");r.children(".left").addClass("disabled");var i=0;e.each(function(){i+=parseInt(n(this).outerWidth(!0),10)});t.width(i)}var u=".info-card-carousel",t=n(u+" .scrollable .card-deck"),e=n(u+" .scrollable .card"),i=e.outerWidth(!0),f=-900,r=n(u+" .arrows");n(u+" .arrows > .left").on("click",function(){if(!n(this).hasClass("animating")&&!n(this).hasClass("disabled")){i=e.outerWidth(!0);var u=parseInt(t.css("left"));r.children().removeClass("disabled");u<0&&(u+i>=0&&(i=-u,r.children(".left").addClass("disabled")),r.children().addClass("animating"),t.stop(!1,!0).animate({left:"+="+i},{duration:400,complete:function(){r.children().removeClass("animating")}}))}});n(u+" .arrows > .right").on("click",function(){var o,s,u;n(this).hasClass("animating")||n(this).hasClass("disabled")||(i=e.outerWidth(!0),f=t.parent().outerWidth(!0)-t.outerWidth(!0),i>t.outerWidth()-t.parent().width()&&(i=Math.ceil(t.outerWidth(!0)-t.parent().width()),f=-i),o=parseInt(t.css("left")),r.children().removeClass("disabled"),o>f&&(r.children().addClass("animating"),s=t.outerWidth()+(o-i),u=t.parent().outerWidth()-s,u>0&&(console.log("too much: "+u),i=Math.ceil(i-u)),console.log("sliderLimit: "+f),console.log("move: "+i),t.stop(!1,!0).animate({left:"-="+i},{duration:400,complete:function(){r.children().removeClass("animating");parseInt(t.css("left"))<=f&&r.children(".right").addClass("disabled")}})))});o();n(window).on("resize",function(){o()})}(jQuery),function(n){function u(){i!==null&&clearTimeout(i);t.each(function(){n(this).css("height","")})}function f(){if(u(),!(n(window).width()>1183)){var r=0;i=setTimeout(function(){t.each(function(){n(this).outerHeight()>r&&(r=n(this).outerHeight())});t.each(function(){n(this).css("height",r)})},20)}}var r=n(".info-card-grid"),t=n(".card .card-body",r),i=null;n(window).on("resize",function(){f()})}(jQuery),function(n){function u(){t!==null&&clearTimeout(t);n(".teaser-card-group .card").each(function(){n(this).css("height","")})}function i(){if(u(),!(n(window).width()>1183)){var i=0;t=setTimeout(function(){n(".teaser-card-group .card").each(function(){n(this).outerHeight()>i&&(i=n(this).outerHeight())});n(".teaser-card-group .card").each(function(){n(this).css("height",i)})},20)}}var r=n(".info-card-grid"),f=n(".card .card-body",r),t=null;n(window).on("resize",function(){i()});n(window).on("load",function(){i()})}(jQuery),function(n){n(document).ready(function(){var t='

<\/div>