{"version":3,"sources":["webpack://frontendplaceholder/./Src/Scripts/components/slide-in-modal.js","webpack://frontendplaceholder/./node_modules/lodash/_Symbol.js","webpack://frontendplaceholder/./node_modules/lodash/_baseGetTag.js","webpack://frontendplaceholder/./node_modules/lodash/_baseTrim.js","webpack://frontendplaceholder/./node_modules/lodash/_freeGlobal.js","webpack://frontendplaceholder/./node_modules/lodash/_getRawTag.js","webpack://frontendplaceholder/./node_modules/lodash/_objectToString.js","webpack://frontendplaceholder/./node_modules/lodash/_root.js","webpack://frontendplaceholder/./node_modules/lodash/_trimmedEndIndex.js","webpack://frontendplaceholder/./node_modules/lodash/debounce.js","webpack://frontendplaceholder/./node_modules/lodash/isObject.js","webpack://frontendplaceholder/./node_modules/lodash/isObjectLike.js","webpack://frontendplaceholder/./node_modules/lodash/isSymbol.js","webpack://frontendplaceholder/./node_modules/lodash/now.js","webpack://frontendplaceholder/./node_modules/lodash/throttle.js","webpack://frontendplaceholder/./node_modules/lodash/toNumber.js"],"names":["constructor","elem","this","self","sectionElems","querySelectorAll","sectionLinkElems","contentElem","querySelector","overlayElem","closeBtnElem","navElm","swiperWrapperElm","navInnerElm","slide","navSwiper","throttledOnWindowResize","importScrollToPromise","throttledOnContentScroll","importSwiperPromise","forEach","linkElem","sectionKey","getAttribute","addEventListener","e","preventDefault","_navigateToSection","shouldUseNavSwiper","window","innerWidth","clientWidth","initializeSwiper","then","Swiper","destroyed","direction","slidesPerView","slideToClickedSlide","freeMode","onWindowResize","destroy","leading","length","topElem","contentTop","getBoundingClientRect","top","i","seBr","Math","round","activateLink","sectionElem","classList","contains","le","remove","add","se","wrapperRect","slideRect","linkRect","offsetX","left","width","maxRight","min","max","setTranslate","updateProgress","updateActiveIndex","updateSlidesClasses","animate","removeEventListener","importResult","default","scrollTo","setTimeout","_open","document","body","_close","bind","evt","keyCode","_unload","open","close","navigateToSection","unload","Symbol","module","exports","getRawTag","objectToString","symToStringTag","toStringTag","undefined","value","Object","trimmedEndIndex","reTrimStart","string","slice","replace","freeGlobal","g","objectProto","prototype","hasOwnProperty","nativeObjectToString","toString","isOwn","call","tag","unmasked","result","freeSelf","root","Function","reWhitespace","index","test","charAt","isObject","now","toNumber","nativeMax","nativeMin","func","wait","options","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","apply","leadingEdge","timerExpired","shouldInvoke","timeSinceLastCall","trailingEdge","timeWaiting","remainingWait","debounced","isInvoking","arguments","clearTimeout","cancel","flush","type","baseGetTag","isObjectLike","Date","debounce","baseTrim","isSymbol","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","other","valueOf","isBinary"],"mappings":"6MAAA,I,EAAA,G,EAAA,U,qCAEe,MACXA,YAAYC,GACRC,KAAKD,KAAOA,EACZ,MAAME,EAAOD,KACPE,EAAeD,EAAKF,KAAKI,iBAAiB,kCAC1CC,EAAmBL,EAAKI,iBAAiB,uCACzCE,EAAcN,EAAKO,cAAc,kCACjCC,EAAcR,EAAKO,cAAc,kCACjCE,EAAeT,EAAKO,cAAc,oCAClCG,EAASV,EAAKO,cAAc,8BAC5BI,EAAmBD,aAAH,EAAGA,EAAQH,cAAc,mBACzCK,EAAcF,aAAH,EAAGA,EAAQH,cAAc,qCACpCM,EAAQH,aAAH,EAAGA,EAAQH,cAAc,iBACpCN,KAAKa,UAAY,KAEjB,IAAIC,EAGAC,EAH6BC,EAA2B,KAG7BC,EAAsB,KAoBrDb,EAAiBc,SAAQC,IACrB,MAAMC,EAAaD,EAASE,aAAa,qCACzCF,EAASG,iBAAiB,SAAUC,IAChCA,EAAEC,iBACFvB,EAAKwB,mBAAmBL,GAAY,SAI5C,MAAMM,EAAqB,WACvB,OAAOjB,GAAUkB,OAAOC,WAAa,OAAQlB,aAAA,EAAAA,EAAkBmB,cAAclB,aAAhC,EAAgCA,EAAakB,cAIxFC,EAAmB,YAtBhBb,IACDA,EAAsB,+BACjBc,MAAK,EAAGC,YACEA,KAGZf,GAkBF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G,WACR,OAAO0B,EAAK4C,KAAKrC,Q,eCnBnB,IAAIsC,EAAW,EAAQ,MACnBvC,EAAW,EAAQ,MAmEvBjC,EAAOC,QAlBP,SAAkBqC,EAAMC,EAAMC,GAC5B,IAAI1F,GAAU,EACVkG,GAAW,EAEf,GAAmB,mBAARV,EACT,MAAM,IAAIW,UAnDQ,uBAyDpB,OAJIhB,EAASO,KACX1F,EAAU,YAAa0F,IAAYA,EAAQ1F,QAAUA,EACrDkG,EAAW,aAAcR,IAAYA,EAAQQ,SAAWA,GAEnDwB,EAASlC,EAAMC,EAAM,CAC1B,QAAWzF,EACX,QAAWyF,EACX,SAAYS,M,eChEhB,IAAIyB,EAAW,EAAQ,MACnBxC,EAAW,EAAQ,MACnByC,EAAW,EAAQ,MAMnBC,EAAa,qBAGbC,EAAa,aAGbC,EAAY,cAGZC,EAAeC,SA8CnB/E,EAAOC,QArBP,SAAkBM,GAChB,GAAoB,iBAATA,EACT,OAAOA,EAET,GAAImE,EAASnE,GACX,OA1CM,IA4CR,GAAI0B,EAAS1B,GAAQ,CACnB,IAAIyE,EAAgC,mBAAjBzE,EAAM0E,QAAwB1E,EAAM0E,UAAY1E,EACnEA,EAAQ0B,EAAS+C,GAAUA,EAAQ,GAAMA,EAE3C,GAAoB,iBAATzE,EACT,OAAiB,IAAVA,EAAcA,GAASA,EAEhCA,EAAQkE,EAASlE,GACjB,IAAI2E,EAAWN,EAAW7C,KAAKxB,GAC/B,OAAQ2E,GAAYL,EAAU9C,KAAKxB,GAC/BuE,EAAavE,EAAMK,MAAM,GAAIsE,EAAW,EAAI,GAC3CP,EAAW5C,KAAKxB,GAvDb,KAuD6BA","file":"9636.58a52f69dd5da1774174.js","sourcesContent":["import throttle from 'lodash/throttle';\n\nexport default class SlideInModal {\n constructor(elem) {\n this.elem = elem;\n const self = this;\n const sectionElems = self.elem.querySelectorAll('[data-slide-in-modal__section]');\n const sectionLinkElems = elem.querySelectorAll('[data-slide-in-modal__section-link]');\n const contentElem = elem.querySelector('[data-slide-in-modal__content]');\n const overlayElem = elem.querySelector('[data-slide-in-modal__overlay]');\n const closeBtnElem = elem.querySelector('[data-slide-in-modal__close-btn]');\n const navElm = elem.querySelector('[data-slide-in-modal__nav]');\n const swiperWrapperElm = navElm?.querySelector('.swiper-wrapper');\n const navInnerElm = navElm?.querySelector('[data-slide-in-modal__nav__inner]');\n const slide = navElm?.querySelector('.swiper-slide');\n this.navSwiper = null;\n const updateActiveLinkOnScroll = true;\n let throttledOnWindowResize; let throttledOnContentScroll = null;\n\n // promise for conditionally loading functionality\n let importScrollToPromise; let importSwiperPromise = null;\n const importScrollTo = function () {\n if (!importScrollToPromise) {\n importScrollToPromise = import('../functionality/scroll-to')\n .then(importResult => {\n return importResult.default;\n });\n }\n return importScrollToPromise;\n };\n const importSwiper = function () {\n if (!importSwiperPromise) {\n importSwiperPromise = import('swiper')\n .then(({ Swiper }) => {\n return Swiper;\n });\n }\n return importSwiperPromise;\n };\n\n sectionLinkElems.forEach(linkElem => {\n const sectionKey = linkElem.getAttribute('data-slide-in-modal__section-link');\n linkElem.addEventListener('click', (e) => {\n e.preventDefault();\n self._navigateToSection(sectionKey, true);\n });\n });\n\n const shouldUseNavSwiper = function () {\n return navElm && window.innerWidth < 1400 && swiperWrapperElm?.clientWidth < navInnerElm?.clientWidth;\n };\n\n\n const initializeSwiper = function () {\n importSwiper()\n .then(Swiper => {\n if (!self.navSwiper || self.navSwiper.destroyed) {\n self.navSwiper = new Swiper(navElm, {\n direction: 'horizontal',\n slidesPerView: 'auto',\n slideToClickedSlide: true,\n freeMode: true,\n });\n }\n });\n };\n\n const onWindowResize = function () {\n if (shouldUseNavSwiper()) {\n initializeSwiper();\n } else {\n if (self.navSwiper) {\n self.navSwiper.destroy();\n }\n }\n };\n\n // Setup page nav to horizontally scroll if content is too wide\n if (navElm) {\n this.navSwiper = null;\n\n if (shouldUseNavSwiper()) {\n initializeSwiper();\n }\n throttledOnWindowResize = throttle(onWindowResize, 100, { leading: false });\n\n // add scroll event to content section to update menu\n if (sectionLinkElems.length > 1) {\n throttledOnContentScroll = throttle(function () {\n if (!updateActiveLinkOnScroll) {\n return;\n }\n\n let topElem = sectionElems[0];\n const contentTop = contentElem.getBoundingClientRect().top;\n\n // find the section that is in the top of the scrollable content\n for (let i = 0; i < sectionElems.length; i++) {\n const seBr = sectionElems[i].getBoundingClientRect();\n\n if (Math.round(seBr.top) > contentTop) {\n break;\n }\n\n topElem = sectionElems[i];\n }\n\n if (topElem) {\n const sectionKey = topElem.getAttribute('data-slide-in-modal__section');\n const linkElem = self.elem.querySelector('[data-slide-in-modal__section-link=\"' + sectionKey + '\"]');\n activateLink(linkElem);\n }\n\n }, 100, { leading: false });\n }\n }\n\n const activateLink = function (linkElem, sectionElem) {\n if (!linkElem || linkElem.classList.contains('slide-in-modal__menu__nav-link--active')) {\n return;\n }\n\n if (!sectionElem || sectionElem.classList.contains('slide-in-modal__section--active')) {\n return;\n }\n\n sectionLinkElems.forEach(le => {\n le.classList.remove('slide-in-modal__menu__nav-link--active');\n });\n\n linkElem.classList.add('slide-in-modal__menu__nav-link--active');\n\n sectionElems.forEach(se => {\n se.classList.remove('slide-in-modal__section--active');\n });\n\n sectionElem.classList.add('slide-in-modal__section--active');\n\n if (self.navSwiper) {\n const wrapperRect = swiperWrapperElm.getBoundingClientRect();\n const slideRect = slide.getBoundingClientRect();\n const linkRect = linkElem.getBoundingClientRect();\n let offsetX = linkRect.left - slideRect.left;\n const offsetToCenter = (wrapperRect.width * 0.5) - (linkRect.width * 0.5);\n offsetX -= offsetToCenter;\n const maxRight = slideRect.width - wrapperRect.width;\n offsetX = Math.min(maxRight, offsetX);\n offsetX = Math.max(0, offsetX);\n self.navSwiper.setTranslate(-offsetX);\n self.navSwiper.updateProgress();\n self.navSwiper.updateActiveIndex();\n self.navSwiper.updateSlidesClasses();\n }\n };\n\n this._navigateToSection = function (sectionKey, animate) {\n const sectionElem = this.elem.querySelector('[data-slide-in-modal__section=\"' + sectionKey + '\"]');\n const linkElem = this.elem.querySelector('[data-slide-in-modal__section-link=\"' + sectionKey + '\"]');\n activateLink(linkElem, sectionElem);\n\n if (sectionElem) {\n contentElem.removeEventListener('scroll', throttledOnContentScroll);\n importScrollTo()\n .then(scrollTo => {\n scrollTo(sectionElem, contentElem, animate);\n\n setTimeout(function () {\n contentElem.addEventListener('scroll', throttledOnContentScroll);\n }, 400);\n });\n }\n };\n\n this._open = function (sectionKey) {\n if (throttledOnWindowResize) {\n onWindowResize();\n window.addEventListener('resize', throttledOnWindowResize);\n }\n if (throttledOnContentScroll) {\n contentElem.addEventListener('scroll', throttledOnContentScroll);\n }\n\n document.body.classList.add('modal-open');\n this.elem.classList.add('slide-in-modal--open');\n if (sectionKey) {\n this._navigateToSection(sectionKey, false);\n }\n };\n\n this._close = function () {\n if (throttledOnWindowResize) {\n window.removeEventListener('resize', throttledOnWindowResize);\n }\n if (throttledOnContentScroll) {\n contentElem.removeEventListener('scroll', throttledOnContentScroll);\n }\n\n this.elem.classList.remove('slide-in-modal--open');\n document.body.classList.remove('modal-open');\n };\n\n overlayElem.addEventListener('click', this._close.bind(this));\n closeBtnElem.addEventListener('click', this._close.bind(this));\n\n document.addEventListener('keydown', (evt) => {\n if (evt.keyCode === 27) {\n this._close(self);\n }\n });\n\n this._unload = function () {\n if (throttledOnWindowResize) {\n window.removeEventListener('resize', throttledOnWindowResize);\n }\n };\n }\n\n open(sectionKey) {\n this._open(sectionKey);\n }\n\n close() {\n this._close();\n }\n\n navigateToSection(sectionKey, animate) {\n this._navigateToSection(sectionKey, animate);\n }\n\n unload() {\n this._unload();\n }\n}\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"],"sourceRoot":""}