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2E,QAAwB3E,EAAM2E,UAAY3E,EACnEA,EAAQ0B,EAASgD,GAAUA,EAAQ,GAAMA,CAC3C,CACA,GAAoB,iBAAT1E,EACT,OAAiB,IAAVA,EAAcA,GAASA,EAEhCA,EAAQmE,EAASnE,GACjB,IAAI4E,EAAWN,EAAW9C,KAAKxB,GAC/B,OAAQ4E,GAAYL,EAAU/C,KAAKxB,GAC/BwE,EAAaxE,EAAMK,MAAM,GAAIuE,EAAW,EAAI,GAC3CP,EAAW7C,KAAKxB,GAvDb,KAuD6BA,CACvC,C","sources":["webpack://silverstripe-base/./themes/app/src/elements/callout-text.js","webpack://silverstripe-base/./node_modules/lodash/_Symbol.js","webpack://silverstripe-base/./node_modules/lodash/_baseGetTag.js","webpack://silverstripe-base/./node_modules/lodash/_baseTrim.js","webpack://silverstripe-base/./node_modules/lodash/_freeGlobal.js","webpack://silverstripe-base/./node_modules/lodash/_getRawTag.js","webpack://silverstripe-base/./node_modules/lodash/_objectToString.js","webpack://silverstripe-base/./node_modules/lodash/_root.js","webpack://silverstripe-base/./node_modules/lodash/_trimmedEndIndex.js","webpack://silverstripe-base/./node_modules/lodash/debounce.js","webpack://silverstripe-base/./node_modules/lodash/isObject.js","webpack://silverstripe-base/./node_modules/lodash/isObjectLike.js","webpack://silverstripe-base/./node_modules/lodash/isSymbol.js","webpack://silverstripe-base/./node_modules/lodash/now.js","webpack://silverstripe-base/./node_modules/lodash/toNumber.js"],"sourcesContent":["import { gsap } from \"gsap\";\nimport { ScrollTrigger } from \"gsap/all\";\nimport debounce from \"lodash/debounce\";\n\ngsap.registerPlugin(ScrollTrigger);\n\nfunction adjustFontSize(element) {\n const textEls = element.querySelectorAll(\".callout-item p\");\n\n let minFontSize = Infinity;\n\n textEls.forEach((element) => {\n element.style.whiteSpace = \"nowrap\";\n element.style.fontSize = \"100px\";\n });\n\n textEls.forEach((element) => {\n const containerWidth = element.parentElement.offsetWidth;\n const containerHeight = element.parentElement.offsetHeight;\n let fontSize = 100;\n\n while ((element.scrollWidth > containerWidth || element.scrollHeight > containerHeight) && fontSize > 1) {\n fontSize -= 1;\n element.style.fontSize = `${fontSize}px`;\n }\n\n minFontSize = Math.min(minFontSize, fontSize);\n\n element.style.fontSize = null;\n });\n\n element.style.setProperty(\"--font-size\", `${minFontSize}px`);\n}\n\ndocument.querySelectorAll(\".element-callouttext\").forEach((el) => {\n const marker = el.querySelector(\".callout-marker\");\n const holder = el.querySelector(\".callout-items\");\n const items = Array.from(el.querySelectorAll(\".callout-item\"));\n let isPinned = false;\n\n let activeIndex = 0;\n\n adjustFontSize(el);\n\n const resizeObserver = new ResizeObserver(\n debounce(() => {\n if (!isPinned) {\n adjustFontSize(el);\n }\n }, 125),\n );\n\n resizeObserver.observe(el);\n\n const start = () => {\n setInterval(() => {\n const nextIndex = activeIndex === items.length - 1 ? 0 : activeIndex + 1;\n\n items[activeIndex].classList.remove(\"is-active\");\n\n const markerY = Math.abs(holder.getBoundingClientRect().top - items[nextIndex].getBoundingClientRect().top);\n\n gsap.to(marker, { y: markerY, duration: 0.5, ease: \"cubic-bezier(.5,.5,0,1)\" });\n\n items[nextIndex].classList.add(\"is-active\");\n\n activeIndex = nextIndex;\n }, 2000);\n };\n\n const runTimeline = () => {\n const timeline = gsap.timeline({\n paused: true,\n scrollTrigger: {\n trigger: el.querySelector(\".element-wrapper\"),\n start: () => {\n const siteHeaderHeight = parseFloat(\n getComputedStyle(document.documentElement).getPropertyValue(\"--site-header-height\"),\n );\n const offset = siteHeaderHeight + 24;\n\n return `top ${offset}`;\n },\n end: () => {\n return `bottom+=${items.length * 100}% bottom`;\n },\n onEnter: () => {\n isPinned = true;\n },\n onLeave: function (self) {\n let start = self.start;\n self.scroll(self.start);\n self.disable(false, true);\n ScrollTrigger.refresh();\n window.scrollTo(0, start);\n },\n pin: true,\n scrub: true,\n once: true,\n markers: false,\n },\n onComplete: () => {\n setTimeout(() => {\n gsap.to(marker, {\n y: () => {\n return Math.abs(holder.getBoundingClientRect().top - items[0].getBoundingClientRect().top);\n },\n duration: 0.5,\n ease: \"cubic-bezier(.5,.5,0,1)\",\n });\n\n items[0].classList.add(\"is-active\");\n items[items.length - 1].classList.remove(\"is-active\");\n\n start();\n\n isPinned = false;\n }, 1000);\n },\n });\n\n timeline.fromTo(marker, { opacity: 0 }, { opacity: 1 });\n\n items.forEach((item, index) => {\n if (index === 0) {\n timeline.to(\n marker,\n {\n y: () => {\n return Math.abs(holder.getBoundingClientRect().top - item.getBoundingClientRect().top);\n },\n ease: \"cubic-bezier(.5,.5,0,1)\",\n onUpdate: function () {\n const progress = this.progress();\n const direction = timeline.scrollTrigger.direction;\n\n if (direction > 0 && progress > 0.5) {\n item.classList.add(\"is-active\");\n }\n\n if (direction < 0 && progress > 0.5) {\n item.classList.add(\"is-active\");\n }\n\n if (direction < 0 && progress < 0.5) {\n item.classList.remove(\"is-active\");\n }\n },\n onReverseComplete: () => {\n item.classList.remove(\"is-active\");\n },\n },\n \"<\",\n );\n } else {\n timeline.to(marker, {\n y: () => {\n return Math.abs(holder.getBoundingClientRect().top - item.getBoundingClientRect().top);\n },\n ease: \"cubic-bezier(.5,.5,0,1)\",\n onUpdate: function () {\n const progress = this.progress();\n const direction = timeline.scrollTrigger.direction;\n\n if (direction > 0 && progress > 0.5) {\n item.classList.add(\"is-active\");\n }\n\n if (direction < 0 && progress > 0.5) {\n item.classList.add(\"is-active\");\n }\n\n if (direction < 0 && progress < 0.5) {\n item.classList.remove(\"is-active\");\n }\n },\n onReverseComplete: () => {\n item.classList.remove(\"is-active\");\n },\n });\n }\n\n if (index < items.length - 1) {\n timeline.to(item, {\n duration: 1,\n onUpdate: function () {\n const direction = timeline.scrollTrigger.direction;\n if (direction < 0) {\n item.classList.add(\"is-active\");\n }\n },\n onComplete: () => item.classList.remove(\"is-active\"),\n });\n } else {\n timeline.to(item, { duration: 1 });\n }\n });\n };\n\n const rect = el.getBoundingClientRect();\n const elementBottom = rect.top + rect.height;\n const scrollY = window.scrollY;\n const windowHeight = window.innerHeight;\n const scrollIsPastElement = scrollY > elementBottom + scrollY - windowHeight;\n\n if (scrollIsPastElement || document.documentElement.classList.contains(\"is-scrolling\")) {\n start();\n } else {\n runTimeline();\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 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"],"names":["adjustFontSize","element","textEls","querySelectorAll","minFontSize","Infinity","forEach","style","whiteSpace","fontSize","containerWidth","parentElement","offsetWidth","containerHeight","offsetHeight","scrollWidth","scrollHeight","Math","min","setProperty","gsap","registerPlugin","ScrollTrigger","document","el","marker","querySelector","holder","items","Array","from","isPinned","activeIndex","ResizeObserver","debounce","observe","start","setInterval","nextIndex","length","classList","remove","markerY","abs","getBoundingClientRect","top","to","y","duration","ease","add","rect","elementBottom","height","scrollY","window","innerHeight","documentElement","contains","runTimeline","timeline","paused","scrollTrigger","trigger","parseFloat","getComputedStyle","getPropertyValue","end","onEnter","onLeave","self","scroll","disable","refresh","scrollTo","pin","scrub","once","markers","onComplete","setTimeout","fromTo","opacity","item","index","onUpdate","progress","this","direction","onReverseComplete","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","e","result","freeSelf","root","Function","reWhitespace","test","charAt","isObject","now","toNumber","nativeMax","max","nativeMin","func","wait","options","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","apply","shouldInvoke","timeSinceLastCall","timerExpired","trailingEdge","timeWaiting","remainingWait","debounced","isInvoking","arguments","leadingEdge","clearTimeout","cancel","flush","type","baseGetTag","isObjectLike","Date","baseTrim","isSymbol","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","other","valueOf","isBinary"],"sourceRoot":""}