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AAE,EAAE;MAC1CJ,OAAO,CAAC,IAAI,EAAEE,OAAO,EAAEC,SAAS,EAAEC,EAAE,CAAC;IACvC,CAAC;IAEDgB,UAAU,EAAE,SAAAA,WAASlB,OAAO,EAAEC,SAAS,EAAEC,EAAE,EAAE;MAC3CJ,OAAO,CAAC,KAAK,EAAEE,OAAO,EAAEC,SAAS,EAAEC,EAAE,CAAC;IACxC;EACF,CAAC;EAED,OAAOpC,QAAQ;AACf,CAAC,CAAC;;;;;;;;;;;ACpHF;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;UEtBA;UACA;UACA;UACA","sources":["webpack://peceful/./node_modules/motion-ui/dist/motion-ui.js","webpack://peceful/external var \"jQuery\"","webpack://peceful/webpack/bootstrap","webpack://peceful/webpack/before-startup","webpack://peceful/webpack/startup","webpack://peceful/webpack/after-startup"],"sourcesContent":[";(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n define(['jquery'], factory);\n } else if (typeof exports === 'object') {\n module.exports = factory(require('jquery'));\n } else {\n root.MotionUI = factory(root.jQuery);\n }\n}(this, function($) {\n'use strict';\n\n// Polyfill for requestAnimationFrame\n(function() {\n if (!Date.now)\n Date.now = function() { return new Date().getTime(); };\n\n var vendors = ['webkit', 'moz'];\n for (var i = 0; i < vendors.length && !window.requestAnimationFrame; ++i) {\n var vp = vendors[i];\n window.requestAnimationFrame = window[vp+'RequestAnimationFrame'];\n window.cancelAnimationFrame = (window[vp+'CancelAnimationFrame']\n || window[vp+'CancelRequestAnimationFrame']);\n }\n if (/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)\n || !window.requestAnimationFrame || !window.cancelAnimationFrame) {\n var lastTime = 0;\n window.requestAnimationFrame = function(callback) {\n var now = Date.now();\n var nextTime = Math.max(lastTime + 16, now);\n return setTimeout(function() { callback(lastTime = nextTime); },\n nextTime - now);\n };\n window.cancelAnimationFrame = clearTimeout;\n }\n})();\n\nvar initClasses = ['mui-enter', 'mui-leave'];\nvar activeClasses = ['mui-enter-active', 'mui-leave-active'];\n\n// Find the right \"transitionend\" event for this browser\nvar endEvent = (function() {\n var transitions = {\n 'transition': 'transitionend',\n 'WebkitTransition': 'webkitTransitionEnd',\n 'MozTransition': 'transitionend',\n 'OTransition': 'otransitionend'\n }\n var elem = window.document.createElement('div');\n\n for (var t in transitions) {\n if (typeof elem.style[t] !== 'undefined') {\n return transitions[t];\n }\n }\n\n return null;\n})();\n\nfunction animate(isIn, element, animation, cb) {\n element = $(element).eq(0);\n\n if (!element.length) return;\n\n if (endEvent === null) {\n isIn ? element.show() : element.hide();\n cb();\n return;\n }\n\n var initClass = isIn ? initClasses[0] : initClasses[1];\n var activeClass = isIn ? activeClasses[0] : activeClasses[1];\n\n // Set up the animation\n reset();\n element.addClass(animation);\n element.css('transition', 'none');\n requestAnimationFrame(function() {\n element.addClass(initClass);\n if (isIn) element.show();\n });\n\n // Start the animation\n requestAnimationFrame(function() {\n element[0].offsetWidth;\n element.css('transition', '');\n element.addClass(activeClass);\n });\n\n // Clean up the animation when it finishes\n element.one('transitionend', finish);\n\n // Hides the element (for out animations), resets the element, and runs a callback\n function finish() {\n if (!isIn) element.hide();\n reset();\n if (cb) cb.apply(element);\n }\n\n // Resets transitions and removes motion-specific classes\n function reset() {\n element[0].style.transitionDuration = 0;\n element.removeClass(initClass + ' ' + activeClass + ' ' + animation);\n }\n}\n\nvar MotionUI = {\n animateIn: function(element, animation, cb) {\n animate(true, element, animation, cb);\n },\n\n animateOut: function(element, animation, cb) {\n animate(false, element, animation, cb);\n }\n};\n\nreturn MotionUI;\n}));\n","module.exports = jQuery;","// 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].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(\"./node_modules/motion-ui/dist/motion-ui.js\");\n",""],"names":["root","factory","define","amd","exports","_typeof","module","require","MotionUI","jQuery","$","Date","now","getTime","vendors","i","length","window","requestAnimationFrame","vp","cancelAnimationFrame","test","navigator","userAgent","lastTime","callback","nextTime","Math","max","setTimeout","clearTimeout","initClasses","activeClasses","endEvent","transitions","elem","document","createElement","t","style","animate","isIn","element","animation","cb","eq","show","hide","initClass","activeClass","reset","addClass","css","offsetWidth","one","finish","apply","transitionDuration","removeClass","animateIn","animateOut"],"sourceRoot":""} |