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;;;;;;ACrBA,iBAAiB,mBAAO,CAAC,2DAAe;;AAExC;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;ACRA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;;;AClBA,eAAe,mBAAO,CAAC,qDAAY;AACnC,UAAU,mBAAO,CAAC,2CAAO;AACzB,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB,WAAW,QAAQ,WAAW;AAC9B,WAAW,SAAS;AACpB;AACA,WAAW,QAAQ;AACnB;AACA,WAAW,SAAS;AACpB;AACA,aAAa,UAAU;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,+CAA+C,iBAAiB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;AC9LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;AC5BA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,mBAAmB,mBAAO,CAAC,6DAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;AC5BA,WAAW,mBAAO,CAAC,+CAAS;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;ACtBA,eAAe,mBAAO,CAAC,qDAAY;AACnC,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB,WAAW,QAAQ,WAAW;AAC9B,WAAW,SAAS;AACpB;AACA,WAAW,SAAS;AACpB;AACA,aAAa,UAAU;AACvB;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,mBAAmB;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;;;;ACpEA,eAAe,mBAAO,CAAC,uDAAa;AACpC,eAAe,mBAAO,CAAC,qDAAY;AACnC,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;UC/DA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,GAAG;WACH;WACA;WACA,CAAC;;;;;WCPD;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;;ACNA;AACA;AAEA,IAAIS,OAAO,GAAG,KAAd;AAEAT,wDAAA;AAEAzC,MAAM,CAACyB,gBAAP,CAAwB,MAAxB,EAAgCgB,0DAAhC;AACAzC,MAAM,CAACyB,gBAAP,CAAwB,QAAxB,EAAkCwB,sDAAQ,CAACR,4DAAD,EAAsB,GAAtB,CAA1C,EAAsE;AACrEU,EAAAA,OAAO,EAAE;AAD4D,CAAtE;AAGAnD,MAAM,CAACyB,gBAAP,CAAwB,QAAxB,EAAkCwB,sDAAQ,CAACR,2DAAD,EAAqB,GAArB,CAA1C;AACAzC,MAAM,CAACyB,gBAAP,CAAwB,SAAxB,EAAmC,UAAC7B,CAAD,EAAO;AACzC6C,EAAAA,2DAAA,CAAmB7C,CAAnB;AACA,CAFD;;AAIA,IAAMwD,yBAAyB,GAAG,SAA5BA,yBAA4B,CAACxD,CAAD,EAAO;AACxC,MAAIA,CAAC,CAACyD,IAAF,KAAW,UAAf,EAA2B;AAC1BH,IAAAA,OAAO,GAAG,IAAV;AACAT,IAAAA,2DAAA,CAAmB7C,CAAnB;AACA,GAHD,MAGO,IAAIA,CAAC,CAACyD,IAAF,KAAW,SAAX,IAAwB,CAACH,OAA7B,EAAsC;AAC5CT,IAAAA,2DAAA,CAAmB7C,CAAnB;AACA,GAFM,MAEA;AACNsD,IAAAA,OAAO,GAAG,KAAV;AACA;AACD,CATD;;AAWA1E,QAAQ,CAACiD,gBAAT,CAA0B,SAA1B,EAAqC2B,yBAArC;AACA5E,QAAQ,CAACiD,gBAAT,CAA0B,UAA1B,EAAsC2B,yBAAtC,E","sources":["webpack://propel/./blocks/acf-blocks/primary-nav/controller.js","webpack://propel/./node_modules/lodash/_Symbol.js","webpack://propel/./node_modules/lodash/_baseGetTag.js","webpack://propel/./node_modules/lodash/_baseTrim.js","webpack://propel/./node_modules/lodash/_freeGlobal.js","webpack://propel/./node_modules/lodash/_getRawTag.js","webpack://propel/./node_modules/lodash/_objectToString.js","webpack://propel/./node_modules/lodash/_root.js","webpack://propel/./node_modules/lodash/_trimmedEndIndex.js","webpack://propel/./node_modules/lodash/debounce.js","webpack://propel/./node_modules/lodash/isObject.js","webpack://propel/./node_modules/lodash/isObjectLike.js","webpack://propel/./node_modules/lodash/isSymbol.js","webpack://propel/./node_modules/lodash/now.js","webpack://propel/./node_modules/lodash/throttle.js","webpack://propel/./node_modules/lodash/toNumber.js","webpack://propel/webpack/bootstrap","webpack://propel/webpack/runtime/compat get default export","webpack://propel/webpack/runtime/define property getters","webpack://propel/webpack/runtime/global","webpack://propel/webpack/runtime/hasOwnProperty shorthand","webpack://propel/webpack/runtime/make namespace object","webpack://propel/./blocks/acf-blocks/primary-nav/script.js"],"sourcesContent":["const hamburger = document.querySelector('.btn-hamburger');\nconst searchSection = document.querySelector('.main-header__search-button');\nconst searchSectionContainer = document.querySelector(\n\t'.main-header__search-container'\n);\nconst searchSectionClose = document.querySelector('.search-field__close');\nconst menuButtons = document.querySelectorAll(\n\t'.block-primary-nav-item > .wp-block-button:not(:only-child) .wp-block-button__link'\n);\nconst megaMenus = document.querySelectorAll(\n\t'.block-primary-nav-mega-menu__inner'\n);\n\nconst closeSubmenus = (delay = false, currentButton = null) => {\n\tmenuButtons.forEach((menuButton) => {\n\t\tif (\n\t\t\t!currentButton ||\n\t\t\t!currentButton.parentElement.classList.contains('active') ||\n\t\t\tcurrentButton.parentElement !== menuButton.parentElement\n\t\t) {\n\t\t\tmenuButton.parentElement.classList.remove('active');\n\t\t}\n\t});\n\n\tif (\n\t\tnull === currentButton ||\n\t\t!currentButton.parentElement.classList.contains('active')\n\t) {\n\t\tif (true === delay) {\n\t\t\tsetTimeout(function () {\n\t\t\t\tdocument.body.classList.remove('primary-submenu-open');\n\t\t\t}, 400);\n\t\t} else {\n\t\t\tdocument.body.classList.remove('primary-submenu-open');\n\t\t}\n\t}\n};\nconst clickOffMenu = (e) => {\n\tif (\n\t\t(e.key === undefined &&\n\t\t\t!hamburger.contains(e.target) &&\n\t\t\t!searchSection.contains(e.target) &&\n\t\t\t!e.target.classList.contains('wp-block-button__link')) ||\n\t\te.key === 'Escape'\n\t) {\n\t\tif (window.innerWidth >= 992) {\n\t\t\tdocument.body.classList.remove('primary-submenu-visible');\n\t\t\tdocument.body.classList.remove('overlayed');\n\t\t\tcloseSubmenus();\n\t\t\tdocument.removeEventListener('keydown', clickOffMenu);\n\t\t\tdocument.removeEventListener('click', clickOffMenu);\n\t\t\tsetMenuPosition();\n\t\t}\n\t} else if (\n\t\te.key === undefined &&\n\t\t(hamburger.contains(e.target) || searchSection.contains(e.target)) &&\n\t\t!e.target.classList.contains('wp-block-button__link')\n\t) {\n\t\tdocument.body.classList.remove('primary-submenu-visible');\n\t\tcloseSubmenus();\n\t\tdocument.removeEventListener('keydown', clickOffMenu);\n\t\tdocument.removeEventListener('click', clickOffMenu);\n\t\tsetMenuPosition();\n\t}\n};\nconst setMenuPosition = (target = null) => {\n\tif (window.innerWidth < 992) {\n\t\treturn;\n\t}\n\n\tlet megaMenuContent;\n\t//console.log('target: ' + target);\n\tif (target) {\n\t\tmegaMenuContent = target.parentElement.parentElement.querySelector(\n\t\t\t'.block-primary-nav-mega-menu__content'\n\t\t);\n\t\t//console.log('megaMenuContent: ' + megaMenuContent);\n\t}\n\n\tif (megaMenuContent) {\n\t\tdocument.body.classList.add('mega-menu-init');\n\t\tmegaMenuContent.style.removeProperty('--menuOffset');\n\n\t\tconst button = target.parentElement;\n\t\tlet menuContentRect = megaMenuContent.getBoundingClientRect();\n\t\tconst buttonRect = button.getBoundingClientRect();\n\t\tconst megaMenuRect =\n\t\t\tmegaMenuContent.parentElement.getBoundingClientRect();\n\t\tlet offset;\n\t\t//console.log('menuContentRect.left: ' + menuContentRect.left);\n\t\t//console.log('buttonRect.left: ' + buttonRect.left);\n\t\t//console.log('menuContentRect.right: ' + menuContentRect.right);\n\t\t//console.log('window: ' + window.scrollX);\n\t\tif (menuContentRect.left > buttonRect.left) {\n\t\t\toffset =\n\t\t\t\tbuttonRect.left -\n\t\t\t\tmenuContentRect.left +\n\t\t\t\tbutton.offsetWidth / 2 -\n\t\t\t\tmegaMenuContent.offsetWidth / 2;\n\n\t\t\tif (menuContentRect.left + offset < megaMenuRect.left) {\n\t\t\t\toffset = megaMenuRect.left - menuContentRect.left;\n\t\t\t}\n\t\t}\n\t\t// else if (menuContentRect.right < buttonRect.left) {\n\t\t// \toffset =\n\t\t// \t\tbuttonRect.right -\n\t\t// \t\tmenuContentRect.right -\n\t\t// \t\tbutton.offsetWidth / 2 +\n\t\t// \t\tmegaMenuContent.offsetWidth / 2;\n\n\t\t// \tif (menuContentRect.right + offset > megaMenuRect.right) {\n\t\t// \t\toffset = megaMenuRect.right - menuContentRect.right;\n\t\t// \t\tconsole.log('offset right');\n\t\t// \t}\n\t\t// \tconsole.log('right greater left');\n\t\t// }\n\t\telse if (\n\t\t\tmenuContentRect.left < buttonRect.left &&\n\t\t\tmenuContentRect.right > buttonRect.left\n\t\t) {\n\t\t\t// if (window.innerWidth > 1400) {\n\t\t\toffset = buttonRect.left - menuContentRect.left - 48;\n\t\t\t// } else {\n\t\t\t// \toffset = buttonRect.left - menuContentRect.left - 148;\n\t\t\t// }\n\t\t} else {\n\t\t\t// if (window.innerWidth > 1400) {\n\t\t\toffset = buttonRect.left - menuContentRect.left - 48;\n\t\t\t// } else {\n\t\t\t// \toffset = buttonRect.left - menuContentRect.left - 148;\n\t\t\t// }\n\t\t}\n\t\tif (offset) {\n\t\t\tmegaMenuContent.style.setProperty(\n\t\t\t\t'--menuOffset',\n\t\t\t\t`${offset / 16}rem`\n\t\t\t);\n\t\t\tmenuContentRect = megaMenuContent.getBoundingClientRect();\n\t\t}\n\n\t\tdocument.documentElement.style.setProperty(\n\t\t\t'--openMenuLeft',\n\t\t\t`${menuContentRect.left / 16}rem`\n\t\t);\n\n\t\tdocument.documentElement.style.setProperty(\n\t\t\t'--openMenuWidth',\n\t\t\t`${megaMenuContent.offsetWidth}`\n\t\t);\n\n\t\tdocument.documentElement.style.setProperty(\n\t\t\t'--openMenuBottom',\n\t\t\t`${\n\t\t\t\t(megaMenuContent.offsetTop +\n\t\t\t\t\tmegaMenuContent.offsetHeight +\n\t\t\t\t\t64) /\n\t\t\t\t16\n\t\t\t}rem`\n\t\t);\n\n\t\tdocument.body.classList.remove('mega-menu-init');\n\t}\n};\n\nconst toggleSubmenu = (e) => {\n\te.preventDefault();\n\te.currentTarget.parentElement.classList.toggle('active');\n\n\t// close other sub menus\n\tcloseSubmenus(false, e.currentTarget);\n\n\tif (!e.currentTarget.parentElement.classList.contains('active')) {\n\t\tdocument.body.classList.remove('primary-submenu-open');\n\t\tdocument.body.classList.remove('primary-submenu-visible');\n\t\tdocument.body.classList.remove('overlayed');\n\t\tdocument.removeEventListener('keydown', clickOffMenu);\n\t\tdocument.removeEventListener('click', clickOffMenu);\n\n\t\tsetMenuPosition();\n\t} else {\n\t\tdocument.body.classList.add('primary-submenu-open');\n\t\tdocument.body.classList.add('overlayed');\n\t\tdocument.addEventListener('keydown', clickOffMenu);\n\t\tdocument.addEventListener('click', clickOffMenu);\n\n\t\tsetMenuPosition(e.currentTarget);\n\n\t\tsetTimeout(function () {\n\t\t\tdocument.body.classList.add('primary-submenu-visible');\n\t\t}, 400);\n\t}\n};\nconst addMegaMenuClasses = () => {\n\tmegaMenus.forEach((megaMenu) => {\n\t\tconst content = megaMenu.querySelector(\n\t\t\t'.block-primary-nav-mega-menu__content'\n\t\t);\n\n\t\tif (content && content.children) {\n\t\t\tlet megaMenuGridTemplateColumns = '';\n\t\t\tlet columnCount = 0;\n\n\t\t\tObject.values(content.children).forEach((child) => {\n\t\t\t\tif (child.classList.contains('block-primary-nav-column')) {\n\t\t\t\t\tmegaMenuGridTemplateColumns += ' minmax(MINVALUE, 1fr)';\n\t\t\t\t\tcolumnCount++;\n\t\t\t\t} else if (\n\t\t\t\t\tchild.classList.contains('block-primary-nav-featured-page')\n\t\t\t\t) {\n\t\t\t\t\tmegaMenuGridTemplateColumns += ' auto';\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tlet minValue = '19rem';\n\t\t\tlet megaMenuClass = '';\n\n\t\t\tif (columnCount > 2) {\n\t\t\t\tminValue = '12rem';\n\t\t\t\tmegaMenuClass = 'block-primary-nav-mega-menu--wide';\n\t\t\t} else if (columnCount > 1) {\n\t\t\t\tminValue = '15rem';\n\t\t\t}\n\n\t\t\tmegaMenuGridTemplateColumns =\n\t\t\t\tmegaMenuGridTemplateColumns.replaceAll('MINVALUE', minValue);\n\n\t\t\tmegaMenu.style.setProperty(\n\t\t\t\t'--gridTemplateColumns',\n\t\t\t\t`${megaMenuGridTemplateColumns}`\n\t\t\t);\n\n\t\t\tmegaMenu.style.setProperty('--columnCount', `${columnCount}`);\n\n\t\t\tif (megaMenuClass) {\n\t\t\t\tmegaMenu.classList.add(megaMenuClass);\n\t\t\t}\n\t\t}\n\t});\n};\nconst clickOffSearch = (e) => {\n\tif (\n\t\te.key === undefined &&\n\t\t!searchSectionContainer.contains(e.target) &&\n\t\t!searchSection.contains(e.target)\n\t) {\n\t\tcloseSearch();\n\t\tif (\n\t\t\t!e.target.classList.contains('wp-block-button__link') &&\n\t\t\t!hamburger.contains(e.target)\n\t\t) {\n\t\t\tdocument.body.classList.remove('overlayed');\n\t\t\tdocument.body.classList.remove('lock-scroll');\n\t\t}\n\t} else if (e.key === 'Escape') {\n\t\tcloseSearch();\n\t\tdocument.body.classList.remove('overlayed');\n\t\tdocument.body.classList.remove('lock-scroll');\n\t}\n};\nconst closeSearch = () => {\n\tsearchSectionContainer.classList.remove('active');\n\tdocument.removeEventListener('keydown', clickOffSearch);\n\tdocument.removeEventListener('click', clickOffSearch);\n};\nconst toggleSearch = (e) => {\n\te.preventDefault();\n\n\tsearchSectionContainer.classList.toggle('active');\n\n\tif (!searchSectionContainer.classList.contains('active')) {\n\t\tdocument.body.classList.remove('overlayed');\n\t\tdocument.body.classList.remove('lock-scroll');\n\t\tdocument.removeEventListener('keydown', clickOffSearch);\n\t\tdocument.removeEventListener('click', clickOffSearch);\n\t} else {\n\t\tdocument.body.classList.add('overlayed');\n\t\tdocument.body.classList.add('lock-scroll');\n\t\tdocument.addEventListener('keydown', clickOffSearch);\n\t\tdocument.addEventListener('click', clickOffSearch);\n\t}\n};\n// GLOBAL APP CONTROLLER\nconst controller = {\n\tinit() {\n\t\tmenuButtons.forEach((menuButton) => {\n\t\t\tmenuButton.addEventListener('click', toggleSubmenu);\n\t\t});\n\n\t\tsearchSection.addEventListener('click', toggleSearch);\n\t\tsearchSectionClose.addEventListener('click', toggleSearch);\n\n\t\tif (megaMenus.length) {\n\t\t\taddMegaMenuClasses();\n\t\t}\n\t},\n\tloaded() {},\n\tresized() {},\n\tscrolled() {},\n\tkeyDown() {},\n\tmouseUp() {},\n};\n\nexport default controller;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import controller from './controller';\nimport throttle from 'lodash/throttle';\n\nlet handled = false;\n\ncontroller.init();\n\nwindow.addEventListener('load', controller.loaded);\nwindow.addEventListener('scroll', throttle(controller.scrolled, 100), {\n\tpassive: true,\n});\nwindow.addEventListener('resize', throttle(controller.resized, 100));\nwindow.addEventListener('keydown', (e) => {\n\tcontroller.keyDown(e);\n});\n\nconst handleMouseAndTouchEvents = (e) => {\n\tif (e.type === 'touchend') {\n\t\thandled = true;\n\t\tcontroller.mouseUp(e);\n\t} else if (e.type === 'mouseup' && !handled) {\n\t\tcontroller.mouseUp(e);\n\t} else {\n\t\thandled = false;\n\t}\n};\n\ndocument.addEventListener('mouseup', handleMouseAndTouchEvents);\ndocument.addEventListener('touchend', handleMouseAndTouchEvents);\n"],"names":["hamburger","document","querySelector","searchSection","searchSectionContainer","searchSectionClose","menuButtons","querySelectorAll","megaMenus","closeSubmenus","delay","currentButton","forEach","menuButton","parentElement","classList","contains","remove","setTimeout","body","clickOffMenu","e","key","undefined","target","window","innerWidth","removeEventListener","setMenuPosition","megaMenuContent","add","style","removeProperty","button","menuContentRect","getBoundingClientRect","buttonRect","megaMenuRect","offset","left","offsetWidth","right","setProperty","documentElement","offsetTop","offsetHeight","toggleSubmenu","preventDefault","currentTarget","toggle","addEventListener","addMegaMenuClasses","megaMenu","content","children","megaMenuGridTemplateColumns","columnCount","Object","values","child","minValue","megaMenuClass","replaceAll","clickOffSearch","closeSearch","toggleSearch","controller","init","length","loaded","resized","scrolled","keyDown","mouseUp","throttle","handled","passive","handleMouseAndTouchEvents","type"],"sourceRoot":""}