{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./node_modules/@stimulus/core/dist/src/event_listener.js","webpack:///./node_modules/@stimulus/core/dist/src/dispatcher.js","webpack:///./node_modules/@stimulus/core/dist/src/action_descriptor.js","webpack:///./node_modules/@stimulus/core/dist/src/action.js","webpack:///./node_modules/@stimulus/core/dist/src/binding.js","webpack:///./node_modules/@stimulus/mutation-observers/dist/src/element_observer.js","webpack:///./node_modules/@stimulus/mutation-observers/dist/src/attribute_observer.js","webpack:///./node_modules/@stimulus/multimap/dist/src/set_operations.js","webpack:///./node_modules/@stimulus/multimap/dist/src/multimap.js","webpack:///./node_modules/@stimulus/multimap/dist/src/indexed_multimap.js","webpack:///./node_modules/@stimulus/mutation-observers/dist/src/token_list_observer.js","webpack:///./node_modules/@stimulus/mutation-observers/dist/src/value_list_observer.js","webpack:///./node_modules/@stimulus/core/dist/src/binding_observer.js","webpack:///./node_modules/@stimulus/core/dist/src/context.js","webpack:///./node_modules/@stimulus/core/dist/src/definition.js","webpack:///./node_modules/@stimulus/core/dist/src/module.js","webpack:///./node_modules/@stimulus/core/dist/src/data_map.js","webpack:///./node_modules/@stimulus/core/dist/src/selectors.js","webpack:///./node_modules/@stimulus/core/dist/src/target_set.js","webpack:///./node_modules/@stimulus/core/dist/src/scope.js","webpack:///./node_modules/@stimulus/core/dist/src/scope_observer.js","webpack:///./node_modules/@stimulus/core/dist/src/router.js","webpack:///./node_modules/@stimulus/core/dist/src/schema.js","webpack:///./node_modules/@stimulus/core/dist/src/application.js","webpack:///./node_modules/@stimulus/core/dist/src/target_properties.js","webpack:///./node_modules/@stimulus/core/dist/src/controller.js","webpack:///./node_modules/velocity-animate/velocity.js","webpack:///(webpack)/buildin/module.js","webpack:///(webpack)/buildin/global.js","webpack:///./node_modules/slideout/dist/slideout.min.js","webpack:///./node_modules/smooth-scroll/dist/smooth-scroll.min.js","webpack:///./node_modules/popper.js/dist/esm/popper.js","webpack:///./node_modules/@rails/ujs/lib/assets/compiled/rails-ujs.js","webpack:///./node_modules/turbolinks/dist/turbolinks.js","webpack:///./app/javascript/controllers sync _controller\\.js$","webpack:///./app/javascript/controllers/accordion_controller.js","webpack:///./app/javascript/controllers/application_controller.js","webpack:///./app/javascript/controllers/expandable_controller.js","webpack:///./app/javascript/controllers/locations_controller.js","webpack:///./app/javascript/controllers/navigation_controller.js","webpack:///./app/javascript/controllers/index.js","webpack:///./node_modules/@stimulus/webpack-helpers/dist/index.js","webpack:///./app/javascript/packs/application.js","webpack:///./node_modules/tippy.js/esm/index.all.js","webpack:///./app/javascript/controllers/pixel_map_controller.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","EventListener","eventTarget","eventName","this","unorderedBindings","Set","connect","addEventListener","disconnect","removeEventListener","bindingConnected","binding","add","bindingDisconnected","delete","handleEvent","event","extendedEvent","stopImmediatePropagation_1","stopImmediatePropagation","assign","immediatePropagationStopped","extendEvent","_i","_a","bindings","length","Array","from","sort","left","right","leftIndex","index","rightIndex","configurable","Dispatcher","application","eventListenerMaps","Map","started","start","eventListeners","forEach","eventListener","stop","values","reduce","listeners","map","concat","fetchEventListenerForBinding","handleError","error","message","detail","fetchEventListener","eventListenerMap","fetchEventListenerMapForEventTarget","createEventListener","set","descriptorPattern","parseEventTarget","eventTargetName","window","document","Action","element","descriptor","tagName","toLowerCase","defaultEventNames","getDefaultEventNameForElement","identifier","methodName","forToken","token","descriptorString","content","matches","trim","match","toString","eventNameSuffix","e","getAttribute","Error","Binding","context","action","willBeInvokedByEvent","invokeWithEvent","method","controller","target","Element","contains","scope","containsElement","ElementObserver","delegate","_this","elements","mutationObserver","MutationObserver","mutations","processMutations","observe","attributes","childList","subtree","refresh","takeRecords","matchElementsInTree","has","removeElement","_b","_c","addElement","mutations_1","mutation","processMutation","type","processAttributeChange","attributeName","processRemovedNodes","removedNodes","processAddedNodes","addedNodes","node","elementAttributeChanged","matchElement","nodes","elementFromNode","processTree","elementIsActive","tree","processor","nodeType","Node","ELEMENT_NODE","isConnected","elementMatched","elementUnmatched","AttributeObserver","elementObserver","hasAttribute","querySelectorAll","selector","elementMatchedAttribute","elementUnmatchedAttribute","elementAttributeValueChanged","fetch","del","size","prune","extendStatics","Multimap","valuesByKey","hasKey","hasValue","some","getValuesForKey","getKeysForValue","filter","__extends","setPrototypeOf","__proto__","b","__","constructor","_super","IndexedMultimap","keysByValue","keys","TokenListObserver","attributeObserver","tokensByElement","tokensMatched","readTokensForElement","refreshTokensForElement","unmatchedTokens","matchedTokens","tokensUnmatched","tokens","tokenMatched","tokenUnmatched","previousTokens","currentTokens","firstDifferingIndex","Math","max","_","findIndex","tokensAreEqual","slice","tokenString","split","parseTokenString","ValueListObserver","tokenListObserver","parseResultsByToken","WeakMap","valuesByTokenByElement","fetchParseResultForToken","fetchValuesByTokenForElement","elementMatchedValue","elementUnmatchedValue","parseResult","parseToken","valuesByToken","parseValueForToken","BindingObserver","bindingsByAction","valueListObserver","actionAttribute","disconnectAllActions","schema","connectAction","disconnectAction","clear","Context","controllerConstructor","bindingObserver","dispatcher","initialize","parentElement","blessControllerConstructor","extend","bless","extendWithReflect","Controller","_newTarget","Reflect","construct","arguments","a","apply","Module","definition","blessDefinition","contextsByScope","connectedContexts","connectContextForScope","fetchContextForScope","disconnectContextForScope","DataMap","getFormattedKey","setAttribute","removeAttribute","replace","char","attributeValueContainsToken","TargetSet","targetName","find","targetNames","getSelectorForTargetNames","findElement","findAll","findAllElements","getSelectorForTargetName","join","targetDescriptor","targetAttribute","Scope","targets","data","head","tail","filterElements","closest","controllerSelector","controllerAttribute","ScopeObserver","scopesByIdentifierByElement","scopeReferenceCounts","scopesByIdentifier","fetchScopesByIdentifierForElement","referenceCount","scopeConnected","scopeDisconnected","Router","scopeObserver","modulesByIdentifier","contexts","loadDefinition","unloadIdentifier","connectModule","disconnectModule","getContextForElementAndIdentifier","defaultSchema","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","step","next","rejected","result","done","then","__generator","body","f","y","g","label","sent","trys","ops","verb","iterator","v","op","TypeError","pop","push","Application","documentElement","router","readyState","register","load","rest","definitions","isArray","unload","identifiers","getControllerForElementAndIdentifier","console","defineTargetProperties","ancestors","getPrototypeOf","getAncestorsForConstructor","getOwnTargetNamesForConstructor","getTargetNamesForConstructor","properties","charAt","toUpperCase","capitalize","_typeof","obj","jQuery","$","fn","init","isWindow","class2type","isPlainObject","hasOwn","undefined","each","callback","args","isArraylike","getId","expando","store","cache","setId","uuid","removeData","id","src","copyIsArray","copy","options","clone","deep","queue","elem","arr","results","ret","q","first","second","len","j","dequeue","elems","shift","unshift","offset","box","getBoundingClientRect","top","pageYOffset","scrollTop","clientTop","pageXOffset","scrollLeft","clientLeft","position","offsetParent","nodeName","style","offsetParentFn","parentOffset","test","parseFloat","marginTop","marginLeft","borderTopWidth","borderLeftWidth","Date","getTime","types","Velocity","Utilities","factory","global","timeLast","IE","documentMode","div","createElement","innerHTML","getElementsByTagName","rAFShim","webkitRequestAnimationFrame","mozRequestAnimationFrame","timeDelta","timeCurrent","setTimeout","performance","perf","now","nowOffset","timing","navigationStart","_slice","begin","end","cloned","min","_inArray","includes","val","indexOf","sanitizeElements","Type","isWrapped","isNode","isNumber","variable","isString","isFunction","isSVG","SVGElement","isEmptyObject","isJQuery","jquery","DURATION_DEFAULT","EASING_DEFAULT","State","isMobile","navigator","userAgent","isAndroid","isGingerbread","isChrome","chrome","isFirefox","prefixElement","prefixMatches","scrollAnchor","scrollPropertyLeft","scrollPropertyTop","isTicking","calls","delayedElements","count","CSS","Redirects","Easings","defaults","duration","easing","complete","progress","display","visibility","loop","delay","mobileHA","_cacheValues","promiseRejectEmpty","isAnimating","computedStyle","tweensContainer","rootPropertyValueCache","transformCache","hook","mock","version","major","minor","patch","debug","timestamp","pauseAll","queueName","currentTime","activeCall","resume","k","pauseDelayOnElement","resumeAll","resumeDelayOnElement","parentNode","generateSpringRK4","springAccelerationForState","state","tension","x","friction","springEvaluateStateWithDerivative","initialState","dt","derivative","dx","dv","springIntegrateState","dxdt","dvdt","springRK4Factory","have_duration","last_state","initState","path","time_lapsed","tolerance","abs","percentComplete","linear","swing","cos","PI","spring","exp","easingArray","generateBezier","RegEx","isHex","valueUnwrap","wrappedValueAlreadyExtracted","valueSplit","Lists","colors","transformsBase","transforms3D","units","colorNames","Hooks","templates","registered","rgbComponents","rootProperty","hookTemplate","hookNames","defaultValues","fullHookName","hookPosition","getRoot","hookData","getUnit","str","unit","substr","fixColors","$0","$1","$2","cleanRootPropertyValue","rootPropertyValue","Values","isCSSNullValue","extractValue","hookRoot","injectValue","hookValue","rootPropertyValueParts","Normalizations","clip","propertyValue","extracted","blur","blurComponent","opacity","zoom","parseInt","transformName","Data","invalid","colorName","converted","black","blue","gray","green","red","white","hexToRgb","augmentDimension","wantInner","getPropertyValue","augment","sides","fields","isNaN","getDimension","innerWidth","innerHeight","outerWidth","outerHeight","Names","camelCase","subMatch","SVGAttribute","SVGAttributes","RegExp","prefixCheck","vendors","vendorsLength","propertyPrefixed","hex","rgbParts","exec","getUnitType","getDisplayType","addClass","className","classList","currentClass","removeClass","remove","forceStyleLookup","computePropertyValue","computedValue","css","toggleDisplay","setPropertyValue","revertDisplay","contentBoxHeight","offsetHeight","contentBoxWidth","offsetWidth","getComputedStyle","normalizedPropertyName","normalizedPropertyValue","getBBox","log","scrollData","propertyName","container","direction","scrollTo","alternateValue","hookName","flushTransformCache","transformString","getTransformFloat","transformProperty","SVGTransforms","translate","skewX","skewY","scale","rotate","transformValue","perspective","arg2","arg3","adjustedSet","animate","opts","getChain","isUtility","promiseData","promise","elementsWrapped","argumentIndex","propertiesMap","syntacticSugar","names","resolver","rejecter","elementsLength","elementsIndex","startingArgumentPosition","found","activeElement","delayTimer","clearTimeout","item","callsToStop","activeTween","endValue","currentValue","completeCall","durationOriginal","delayOriginal","backwards","reverse","elementIndex","stagger","drag","abortError","callUnitConversionData","lastParent","lastPosition","lastFontSize","lastPercentToPxWidth","lastPercentToPxHeight","lastEmToPx","remToPx","vwToPx","vhToPx","processElement","reverseCallsCount","reverseOptions","elementArrayIndex","elementUnitConversionData","clearQueue","velocityQueueEntryFlag","callIndex","delayComplete","delayBegin","buildQueue","lastTweensContainer","scrollPositionCurrent","scrollPositionCurrentAlternate","scrollPositionEnd","scrollDirection","axis","scrollOffset","scroll","startValue","unitType","lastTween","lastStartValue","JSON","stringify","parsePropertyValue","valueData","skipResolvingEasing","getEasing","fixPropertyValue","pattern","separatedValue","endValueUnitType","startValueUnitType","operator","separateValue","numericValue","iStart","iEnd","aStart","aEnd","inCalc","inRGB","inRGBA","cStart","cEnd","tStart","tEnd","dotStart","dotEnd","uStart","uEnd","nStart","nEnd","sameRatioIndicators","myParent","fontSize","samePercentRatio","sameEmRatio","measurement","unitRatios","emToPx","percentToPxWidth","percentToPxHeight","dummy","createElementNS","appendChild","removeChild","calculateUnitRatios","colorComponents","endValueRGB","startValueRGB","dataArray","tick","ticker","requestAnimationFrame","hidden","updateTicker","velocity","elementsSize","inlineValues","computedValues","height","marginBottom","paddingTop","paddingBottom","overflow","response","delayPaused","delayRemaining","generateStep","steps","round","mX1","mY1","mX2","mY2","NEWTON_ITERATIONS","NEWTON_MIN_SLOPE","SUBDIVISION_PRECISION","SUBDIVISION_MAX_ITERATIONS","kSplineTableSize","kSampleStepSize","float32ArraySupported","isFinite","mSampleValues","Float32Array","A","aA1","aA2","B","C","calcBezier","aT","getSlope","newtonRaphsonIterate","aX","aGuessT","currentSlope","calcSampleValues","binarySubdivide","aA","aB","currentX","currentT","getTForX","intervalStart","currentSample","lastSample","guessForT","initialSlope","_precomputed","precompute","getControlPoints","callsLength","array","compactSparseArray","callContainer","timeStart","firstTick","tweenDummyValue","pauseObject","millisecondsEllapsed","callLength","transformPropertyExists","flexValue","tween","patternReplace","tweenDelta","adjustedSetData","translate3d","isStopped","remainingCallsExist","transformHAPropertyExists","defaultValue","tweenContainer","oldStartValue","Zepto","webpackPolyfill","deprecate","paths","children","Function","code","u","msPointerEnabled","move","h","_startOffsetX","_currentOffsetX","_opening","_moved","_opened","_preventOpen","_touch","touch","_side","side","panel","menu","_fx","fx","_duration","_tolerance","_padding","_translateTo","padding","_orientation","_initTouchEvents","open","emit","_setTransition","_translateXTo","transition","close","isOpen","transform","toggle","_onScrollFn","_preventMove","preventDefault","_resetTouchFn","touches","pageX","clientWidth","_onTouchCancelFn","_onTouchEndFn","_onTouchMoveFn","clientX","enableTouch","disableTouch","destroy","decouple","emitter","on","_eventCollection","once","off","listener","splice","w","ignore","header","topOnEmptyHash","speed","speedAsDuration","durationMax","durationMin","customEasing","updateURL","popstate","emitEvents","L","String","charCodeAt","InvalidCharacterError","H","scrollHeight","clientHeight","offsetTop","focus","outline","Q","CustomEvent","bubbles","anchor","dispatchEvent","O","I","M","cancelAnimationFrame","cancelScroll","querySelector","S","E","floor","history","pushState","smoothScroll","title","matchMedia","defaultPrevented","button","metaKey","ctrlKey","shiftKey","hostname","location","pathname","href","decodeURIComponent","hash","replaceState","animateScroll","isBrowser","timeoutDuration","longerTimeoutBrowsers","debounce","called","scheduled","functionToCheck","getStyleComputedProperty","ownerDocument","defaultView","getParentNode","host","getScrollParent","_getStyleComputedProp","overflowX","overflowY","getReferenceNode","reference","referenceNode","isIE11","MSInputMethodContext","isIE10","isIE","getOffsetParent","noOffsetParent","nextElementSibling","findCommonOffsetParent","element1","element2","order","compareDocumentPosition","DOCUMENT_POSITION_FOLLOWING","range","createRange","setStart","setEnd","commonAncestorContainer","firstElementChild","element1root","getScroll","upperSide","html","scrollingElement","includeScroll","rect","subtract","modifier","bottom","getBordersSize","styles","sideA","sideB","getSize","getWindowSizes","width","classCallCheck","instance","Constructor","createClass","defineProperties","props","writable","protoProps","staticProps","_extends","source","getClientRect","offsets","sizes","horizScrollbar","vertScrollbar","getOffsetRectRelativeToArbitraryNode","parent","fixedPosition","isHTML","childrenRect","parentRect","scrollParent","getViewportOffsetRectRelativeToArtbitraryNode","excludeScroll","relativeOffset","isFixed","getFixedPositionOffsetParent","el","getBoundaries","popper","boundariesElement","boundaries","boundariesNode","_getWindowSizes","isPaddingNumber","getArea","_ref","computeAutoPlacement","placement","refRect","rects","sortedAreas","area","filteredAreas","_ref2","computedPlacement","variation","getReferenceOffsets","commonOffsetParent","getOuterSizes","marginRight","getOppositePlacement","matched","getPopperOffsets","referenceOffsets","popperRect","popperOffsets","isHoriz","mainSide","secondarySide","secondaryMeasurement","check","runModifiers","modifiers","ends","prop","cur","warn","enabled","update","isDestroyed","arrowStyles","flipped","positionFixed","flip","originalPlacement","isCreated","onUpdate","onCreate","isModifierEnabled","modifierName","getSupportedPropertyName","prefixes","upperProp","prefix","toCheck","willChange","disableEventListeners","removeOnDestroy","getWindow","attachToScrollParents","scrollParents","isBody","passive","setupEventListeners","updateBound","scrollElement","eventsEnabled","enableEventListeners","scheduleUpdate","isNumeric","setStyles","isModifierRequired","requestingName","requestedName","requesting","isRequired","_requesting","requested","placements","validPlacements","clockwise","counter","BEHAVIORS","parseOffset","basePlacement","useHeight","fragments","frag","divider","search","splitRegex","mergeWithPrevious","toValue","index2","shiftvariation","_data$offsets","isVertical","shiftOffsets","preventOverflow","transformProp","popperStyles","priority","primary","escapeWithReference","secondary","keepTogether","opSide","arrow","_data$offsets$arrow","arrowElement","sideCapitalized","altSide","arrowElementSize","center","popperMarginSide","popperBorderSide","sideValue","placementOpposite","flipOrder","behavior","refOffsets","overlapsRef","overflowsLeft","overflowsRight","overflowsTop","overflowsBottom","overflowsBoundaries","flippedVariationByRef","flipVariations","flippedVariationByContent","flipVariationsByContent","flippedVariation","getOppositeVariation","inner","subtractLength","hide","bound","computeStyle","legacyGpuAccelerationOption","gpuAcceleration","offsetParentRect","shouldRound","noRound","referenceWidth","popperWidth","isVariation","horizontalToInteger","verticalToInteger","getRoundedOffsets","devicePixelRatio","prefixedProperty","invertTop","invertLeft","applyStyle","onLoad","modifierOptions","Defaults","Popper","Utils","PopperUtils","Rails","linkClickSelector","buttonClickSelector","exclude","inputChangeSelector","formSubmitSelector","formInputClickSelector","formDisableSelector","formEnableSelector","fileInputSelector","linkDisableSelector","buttonDisableSelector","nonce","loadCSPNonce","ref","cspNonce","matchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","webkitMatchesSelector","getData","setData","csrfParam","csrfToken","meta","CSRFProtection","xhr","setRequestHeader","refreshCSRFTokens","param","input","fire","params","evt","createEvent","initCustomEvent","cancelable","Event","stopEverything","stopPropagation","eventType","handler","AcceptHeaders","createXHR","prepareOptions","processResponse","text","xml","json","script","ajax","responseText","getResponseHeader","status","success","statusText","beforeSend","XMLHttpRequest","OPENED","send","url","dataType","accept","crossDomain","withCredentials","onreadystatechange","DONE","parser","parse","DOMParser","parseFromString","isCrossDomain","originAnchor","urlAnchor","protocol","toArray","serializeElement","additionalParam","inputs","disabled","option","selected","checked","encodeURIComponent","formElements","form","allowAction","handleConfirm","confirm","answer","disableFormElement","disableFormElements","disableLinkElement","enableFormElement","enableFormElements","enableLinkElement","isXhrRedirect","handleDisabledElement","enableElement","disableElement","replacement","originalText","handleMethod","formContent","link","click","isRemote","handleRemote","enctype","FormData","append","formSubmitButtonClick","formNoValidate","preventInsignificantClick","insignificantMetaClick","rails","ajaxPrefilter","originalOptions","_rails_loaded","Turbolinks","supported","visit","clearCache","setProgressBarDelay","copyObject","defer","throttle","dispatch","initEvent","random","Location","absoluteURL","requestURL","wrap","getOrigin","getPath","getPathComponents","getLastPathComponent","getExtension","isPrefixedBy","isEqualTo","toCacheKey","toJSON","valueOf","_t","HttpRequest","requestCanceled","requestTimedOut","requestFailed","requestLoaded","requestProgressed","referrer","NETWORK_FAILURE","TIMEOUT_FAILURE","timeout","notifyApplicationBeforeRequestStart","setProgress","requestStarted","cancel","abort","lengthComputable","loaded","total","endRequest","requestCompletedWithResponse","failed","requestFailedWithStatusCode","notifyApplicationAfterRequestEnd","onprogress","onload","onerror","ontimeout","onabort","requestFinished","ProgressBar","trickle","_t2","stylesheetElement","createStylesheetElement","progressElement","createProgressElement","defaultCSS","show","visible","installStylesheetElement","installProgressElement","startTrickling","hiding","fadeProgressElement","uninstallProgressElement","stopTrickling","setValue","insertBefore","firstChild","trickleInterval","setInterval","clearInterval","textContent","BrowserAdapter","showProgressBar","_t3","progressBar","visitProposedToLocationWithAction","startVisitToLocationWithAction","visitStarted","issueRequest","changeHistory","loadCachedSnapshot","visitRequestStarted","hasCachedSnapshot","showProgressBarAfterDelay","visitRequestProgressed","visitRequestCompleted","loadResponse","visitRequestFailedWithStatusCode","reload","visitRequestFinished","hideProgressBar","visitCompleted","followRedirect","pageInvalidated","progressBarTimeout","progressBarDelay","_t4","History","onPageLoad","onPopState","shouldHandlePopState","turbolinks","restorationIdentifier","historyPoppedToLocationWithRestorationIdentifier","pageLoaded","pageIsLoaded","HeadDetails","outerHTML","tracked","fromHeadElement","childNodes","hasElementWithKey","getTrackedElementSignature","getScriptElementsNotInDetails","getElementsMatchingTypeNotInDetails","getStylesheetElementsNotInDetails","getProvisionalElements","getMetaValue","findMetaElementByName","_e","Snapshot","headDetails","bodyElement","fromHTMLString","fromHTMLElement","cloneNode","getRootLocation","getSetting","getCacheControlValue","getElementForAnchor","getPermanentElements","getPermanentElementById","getPermanentElementsPresentInSnapshot","findFirstAutofocusableElement","hasAnchor","isPreviewable","isCacheable","isVisitable","Renderer","render","renderView","viewWillRender","newBody","viewRendered","invalidateView","viewInvalidated","createScriptElement","async","__super__","SnapshotRenderer","currentSnapshot","newSnapshot","isPreview","currentHeadDetails","newHeadDetails","currentBody","shouldRender","mergeHead","replaceBody","focusFirstAutofocusableElement","copyNewHeadStylesheetElements","copyNewHeadScriptElements","removeCurrentHeadProvisionalElements","copyNewHeadProvisionalElements","relocateCurrentBodyPermanentElements","activateNewBodyScriptElements","assignNewBody","replacePlaceholderElementsWithClonedPermanentElements","trackedElementsAreIdentical","getNewHeadStylesheetElements","getNewHeadScriptElements","getCurrentHeadProvisionalElements","getNewHeadProvisionalElements","getCurrentBodyPermanentElements","permanentElement","getNewBodyScriptElements","_t5","replaceChild","_t6","ErrorRenderer","newHead","replaceHeadAndBody","activateBodyScriptElements","getScriptElements","View","htmlElement","getSnapshot","snapshot","markAsPreview","renderSnapshot","renderError","ScrollManager","onScroll","_t7","scrollToElement","scrollIntoView","scrollToPosition","updatePosition","scrollPositionChanged","SnapshotCache","snapshots","read","put","write","Visit","performScroll","_t8","adapter","timingMetrics","recordTimingMetric","request","cancelRender","fail","visitFailed","historyChanged","shouldIssueRequest","getCachedSnapshot","getCachedSnapshotForLocation","cacheSnapshot","visitRendered","redirectedToLocation","followedRedirect","replaceHistoryWithLocationAndRestorationIdentifier","scrolled","scrollToRestoredPosition","scrollToTop","scrollToAnchor","restorationData","scrollPosition","getTimingMetrics","snapshotCached","frame","_t9","clickBubbled","clickCaptured","view","scrollManager","startHistory","disable","stopHistory","applicationAllowsVisitingLocation","locationIsVisitable","getRestorationDataForIdentifier","startVisit","pushHistoryWithLocationAndRestorationIdentifier","shouldCacheSnapshot","notifyApplicationBeforeCachingSnapshot","lastRenderedLocation","getCurrentRestorationData","notifyApplicationBeforeRender","currentVisit","notifyApplicationAfterRender","notifyApplicationAfterPageLoad","clickEventIsSignificant","getVisitableLinkForNode","getVisitableLocationForLink","applicationAllowsFollowingLinkToLocation","getActionForLink","notifyApplicationAfterClickingLinkToLocation","notifyApplicationBeforeVisitingLocation","notifyApplicationAfterVisitingLocation","createVisit","isContentEditable","which","altKey","nodeIsVisitable","currentScript","webpackContext","req","webpackContextResolve","itemBody","slideDir","_takashi","init_form","itemTarget","dataset","expandText","collapseText","locations","pixels","visible_pixels","filters","filterTargets","search_string","currentTarget","txtValue","innerText","location_id","locationId","update_map","searchTarget","URLSearchParams","reset","product_key","product_keys","products","eve","slideout","Slideout","offset_items","toggle_offset_item","SmoothScroll","subnav","subnavTarget","require","controllers","teardown","logicalName","identifierForContextKey","default","definitionForModuleAndIdentifier","definitionForModuleWithContextAndKey","definitionsFromContext","ua","isUCBrowser","isIOS","platform","MSStream","defaultProps","a11y","allowHTML","animateFill","animation","appendTo","aria","arrowType","boundary","distance","flipBehavior","flipOnUpdate","followCursor","hideOnClick","ignoreAttributes","inertia","interactive","interactiveBorder","interactiveDebounce","lazy","maxWidth","multiple","onHidden","onHide","onMount","onShow","onShown","onTrigger","popperOptions","role","showOnInit","sticky","theme","touchHold","trigger","triggerTarget","updateDuration","wait","zIndex","POPPER_INSTANCE_DEPENDENCIES","elementProto","arrayFrom","closestCallback","PASSIVE","PLACEMENT_ATTRIBUTE","OUT_OF_BOUNDARIES_ATTRIBUTE","IOS_CLASS","ACTIVE_CLASS","POPPER_CLASS","TOOLTIP_CLASS","CONTENT_CLASS","BACKDROP_CLASS","ARROW_CLASS","ROUND_ARROW_CLASS","POPPER_SELECTOR","TOOLTIP_SELECTOR","CONTENT_SELECTOR","BACKDROP_SELECTOR","ARROW_SELECTOR","ROUND_ARROW_SELECTOR","isUsingTouch","onDocumentTouch","onDocumentMouseMove","lastMouseMoveTime","onWindowBlur","_tippy","isReferenceElement","getValue","ms","arg","getModifier","isRealElement","isSingular","invokeWithArgsOrReturn","setFlipModifierEnabled","setTransitionDuration","els","transitionDuration","setVisibilityState","evaluateProps","out","acc","valueAsString","getDataAttributeOptions","validateOptions","setInnerHTML","contentEl","getChildren","tooltip","backdrop","addInertia","createArrowElement","createBackdropElement","addInteractive","updateTransitionEndListener","webkitTransition","getBasicPlacement","fullPlacement","updateTheme","themeName","idCounter","mouseMoveListeners","createTippy","collectionProps","lastTriggerEventType","lastMouseMoveEvent","showTimeoutId","hideTimeoutId","scheduleHideAnimationFrameId","previousPlacement","currentMountCallback","currentTransitionEndListener","currentComputedPadding","isScheduledToShow","isBeingDestroyed","wasVisibleDuringPreviousUpdate","hasMountCallbackRun","debouncedOnMouseMove","onMouseMove","createPopperElement","popperChildren","popperInstance","isEnabled","isVisible","isMounted","isShown","clearDelayTimeouts","setContent","enable","destroyTargetInstances","removeTriggersFromReference","child","addTriggersToReference","createPopperInstance","scheduleShow","getEventListenersTarget","removeFollowCursorListener","positionVirtualReferenceNearCursor","cleanupInteractiveMouseListeners","scheduleHide","addDocumentClickListener","onDocumentClick","removeDocumentClickListener","getTransitionableElements","getIsInLooseFollowCursorMode","makeSticky","prevRefRect","currentRefRect","onTransitionedOut","onTransitionEnd","onTransitionedIn","onMouseLeave","onDelegateShow","onDelegateHide","onBlur","_lastMouseMoveEvent","clientY","isCursorOverReference","isHorizontal","isVerticalPlacement","halfSize","verticalIncrease","horizontalIncrease","isEventListenerStopped","MouseEvent","isCursorOverPopper","popperPlacement","exceedsTop","exceedsBottom","exceedsLeft","exceedsRight","isCursorOutsideInteractiveBorder","relatedTarget","supportsTouch","isTouchEvent","runMountCallback","reflow","_instance$popperChild","preventOverflowModifier","applyMutations","basicPlacement","computedPadding","config","mount","isInLooseFollowCursorMode","shouldAvoidCallingOnTrigger","targetEl","createDelegateChildTippy","prevProps","nextProps","_getChildren","removeInteractive","removeInertia","updatePopperElement","transitionableElements","transitionDelay","globalEventListenersBound","tippy","virtualReference","polyfills","isVirtual","classNames","polyfillElementPrototypeProperties","instances","NodeList","getArrayOfElements","setDefaults","partialDefaults","hideAll","excludedReferenceOrInstance","isExcluded","group","_ref$delay","_ref$duration","isAnyTippyOpen","setIsAnyTippyOpen","updateInstances","_originalProps","firstStyleOrLinkTag","injectCSS","title_text","createTextNode","address","info"],"mappings":";aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxB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B+2D,EAAKpmC,YAAYiM,GACjBm6B,EAAKpmC,YAAYmmC,GAEjBnjB,EAAKhjB,YAAY82B,GACjB9T,EAAKhjB,YAAYomC,GAEjB9rC,EAAK0F,YAAYgjB,GACjBlrB,EAAUkI,YAAY1F,MAGxBxC,EAAUtB,UAAUnnB,IAAI,wBACjByoB,GAETuiC,MAAO,QACPhB,aAAa,EACbngB,OAAO,M,sBAeX,WACExmC,SAASkF,iBAAiB,iBAAiBxG,SAAQ,SAASwB,GAC1DA,EAAQ+jB,iB,mFA1Ee3Z,K,GACpBmC,QAAU","file":"js/application-24881db0ca66433f46ec.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/packs/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 17);\n","var EventListener =\n/** @class */\nfunction () {\n function EventListener(eventTarget, eventName) {\n this.eventTarget = eventTarget;\n this.eventName = eventName;\n this.unorderedBindings = new Set();\n }\n\n EventListener.prototype.connect = function () {\n this.eventTarget.addEventListener(this.eventName, this, false);\n };\n\n EventListener.prototype.disconnect = function () {\n this.eventTarget.removeEventListener(this.eventName, this, false);\n }; // Binding observer delegate\n\n /** @hidden */\n\n\n EventListener.prototype.bindingConnected = function (binding) {\n this.unorderedBindings.add(binding);\n };\n /** @hidden */\n\n\n EventListener.prototype.bindingDisconnected = function (binding) {\n this.unorderedBindings.delete(binding);\n };\n\n EventListener.prototype.handleEvent = function (event) {\n var extendedEvent = extendEvent(event);\n\n for (var _i = 0, _a = this.bindings; _i < _a.length; _i++) {\n var binding = _a[_i];\n\n if (extendedEvent.immediatePropagationStopped) {\n break;\n } else {\n binding.handleEvent(extendedEvent);\n }\n }\n };\n\n Object.defineProperty(EventListener.prototype, \"bindings\", {\n get: function get() {\n return Array.from(this.unorderedBindings).sort(function (left, right) {\n var leftIndex = left.index,\n rightIndex = right.index;\n return leftIndex < rightIndex ? -1 : leftIndex > rightIndex ? 1 : 0;\n });\n },\n enumerable: true,\n configurable: true\n });\n return EventListener;\n}();\n\nexport { EventListener };\n\nfunction extendEvent(event) {\n if (\"immediatePropagationStopped\" in event) {\n return event;\n } else {\n var stopImmediatePropagation_1 = event.stopImmediatePropagation;\n return Object.assign(event, {\n immediatePropagationStopped: false,\n stopImmediatePropagation: function stopImmediatePropagation() {\n this.immediatePropagationStopped = true;\n stopImmediatePropagation_1.call(this);\n }\n });\n }\n}","import { EventListener } from \"./event_listener\";\n\nvar Dispatcher =\n/** @class */\nfunction () {\n function Dispatcher(application) {\n this.application = application;\n this.eventListenerMaps = new Map();\n this.started = false;\n }\n\n Dispatcher.prototype.start = function () {\n if (!this.started) {\n this.started = true;\n this.eventListeners.forEach(function (eventListener) {\n return eventListener.connect();\n });\n }\n };\n\n Dispatcher.prototype.stop = function () {\n if (this.started) {\n this.started = false;\n this.eventListeners.forEach(function (eventListener) {\n return eventListener.disconnect();\n });\n }\n };\n\n Object.defineProperty(Dispatcher.prototype, \"eventListeners\", {\n get: function get() {\n return Array.from(this.eventListenerMaps.values()).reduce(function (listeners, map) {\n return listeners.concat(Array.from(map.values()));\n }, []);\n },\n enumerable: true,\n configurable: true\n }); // Binding observer delegate\n\n /** @hidden */\n\n Dispatcher.prototype.bindingConnected = function (binding) {\n this.fetchEventListenerForBinding(binding).bindingConnected(binding);\n };\n /** @hidden */\n\n\n Dispatcher.prototype.bindingDisconnected = function (binding) {\n this.fetchEventListenerForBinding(binding).bindingDisconnected(binding);\n }; // Error handling\n\n\n Dispatcher.prototype.handleError = function (error, message, detail) {\n if (detail === void 0) {\n detail = {};\n }\n\n this.application.handleError(error, \"Error \" + message, detail);\n };\n\n Dispatcher.prototype.fetchEventListenerForBinding = function (binding) {\n var eventTarget = binding.eventTarget,\n eventName = binding.eventName;\n return this.fetchEventListener(eventTarget, eventName);\n };\n\n Dispatcher.prototype.fetchEventListener = function (eventTarget, eventName) {\n var eventListenerMap = this.fetchEventListenerMapForEventTarget(eventTarget);\n var eventListener = eventListenerMap.get(eventName);\n\n if (!eventListener) {\n eventListener = this.createEventListener(eventTarget, eventName);\n eventListenerMap.set(eventName, eventListener);\n }\n\n return eventListener;\n };\n\n Dispatcher.prototype.createEventListener = function (eventTarget, eventName) {\n var eventListener = new EventListener(eventTarget, eventName);\n\n if (this.started) {\n eventListener.connect();\n }\n\n return eventListener;\n };\n\n Dispatcher.prototype.fetchEventListenerMapForEventTarget = function (eventTarget) {\n var eventListenerMap = this.eventListenerMaps.get(eventTarget);\n\n if (!eventListenerMap) {\n eventListenerMap = new Map();\n this.eventListenerMaps.set(eventTarget, eventListenerMap);\n }\n\n return eventListenerMap;\n };\n\n return Dispatcher;\n}();\n\nexport { Dispatcher };","// capture nos.: 12 23 4 43 1 5 56 7 76\nvar descriptorPattern = /^((.+?)(@(window|document))?->)?(.+?)(#(.+))?$/;\nexport function parseDescriptorString(descriptorString) {\n var source = descriptorString.trim();\n var matches = source.match(descriptorPattern) || [];\n return {\n eventTarget: parseEventTarget(matches[4]),\n eventName: matches[2],\n identifier: matches[5],\n methodName: matches[7]\n };\n}\n\nfunction parseEventTarget(eventTargetName) {\n if (eventTargetName == \"window\") {\n return window;\n } else if (eventTargetName == \"document\") {\n return document;\n }\n}\n\nexport function stringifyEventTarget(eventTarget) {\n if (eventTarget == window) {\n return \"window\";\n } else if (eventTarget == document) {\n return \"document\";\n }\n}","import { parseDescriptorString, stringifyEventTarget } from \"./action_descriptor\";\n\nvar Action =\n/** @class */\nfunction () {\n function Action(element, index, descriptor) {\n this.element = element;\n this.index = index;\n this.eventTarget = descriptor.eventTarget || element;\n this.eventName = descriptor.eventName || getDefaultEventNameForElement(element) || error(\"missing event name\");\n this.identifier = descriptor.identifier || error(\"missing identifier\");\n this.methodName = descriptor.methodName || error(\"missing method name\");\n }\n\n Action.forToken = function (token) {\n return new this(token.element, token.index, parseDescriptorString(token.content));\n };\n\n Action.prototype.toString = function () {\n var eventNameSuffix = this.eventTargetName ? \"@\" + this.eventTargetName : \"\";\n return \"\" + this.eventName + eventNameSuffix + \"->\" + this.identifier + \"#\" + this.methodName;\n };\n\n Object.defineProperty(Action.prototype, \"eventTargetName\", {\n get: function get() {\n return stringifyEventTarget(this.eventTarget);\n },\n enumerable: true,\n configurable: true\n });\n return Action;\n}();\n\nexport { Action };\nvar defaultEventNames = {\n \"a\": function a(e) {\n return \"click\";\n },\n \"button\": function button(e) {\n return \"click\";\n },\n \"form\": function form(e) {\n return \"submit\";\n },\n \"input\": function input(e) {\n return e.getAttribute(\"type\") == \"submit\" ? \"click\" : \"change\";\n },\n \"select\": function select(e) {\n return \"change\";\n },\n \"textarea\": function textarea(e) {\n return \"change\";\n }\n};\nexport function getDefaultEventNameForElement(element) {\n var tagName = element.tagName.toLowerCase();\n\n if (tagName in defaultEventNames) {\n return defaultEventNames[tagName](element);\n }\n}\n\nfunction error(message) {\n throw new Error(message);\n}","var Binding =\n/** @class */\nfunction () {\n function Binding(context, action) {\n this.context = context;\n this.action = action;\n }\n\n Object.defineProperty(Binding.prototype, \"index\", {\n get: function get() {\n return this.action.index;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Binding.prototype, \"eventTarget\", {\n get: function get() {\n return this.action.eventTarget;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Binding.prototype, \"identifier\", {\n get: function get() {\n return this.context.identifier;\n },\n enumerable: true,\n configurable: true\n });\n\n Binding.prototype.handleEvent = function (event) {\n if (this.willBeInvokedByEvent(event)) {\n this.invokeWithEvent(event);\n }\n };\n\n Object.defineProperty(Binding.prototype, \"eventName\", {\n get: function get() {\n return this.action.eventName;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Binding.prototype, \"method\", {\n get: function get() {\n var method = this.controller[this.methodName];\n\n if (typeof method == \"function\") {\n return method;\n }\n\n throw new Error(\"Action \\\"\" + this.action + \"\\\" references undefined method \\\"\" + this.methodName + \"\\\"\");\n },\n enumerable: true,\n configurable: true\n });\n\n Binding.prototype.invokeWithEvent = function (event) {\n try {\n this.method.call(this.controller, event);\n } catch (error) {\n var _a = this,\n identifier = _a.identifier,\n controller = _a.controller,\n element = _a.element,\n index = _a.index;\n\n var detail = {\n identifier: identifier,\n controller: controller,\n element: element,\n index: index,\n event: event\n };\n this.context.handleError(error, \"invoking action \\\"\" + this.action + \"\\\"\", detail);\n }\n };\n\n Binding.prototype.willBeInvokedByEvent = function (event) {\n var eventTarget = event.target;\n\n if (this.element === eventTarget) {\n return true;\n } else if (eventTarget instanceof Element && this.element.contains(eventTarget)) {\n return this.scope.containsElement(eventTarget);\n } else {\n return true;\n }\n };\n\n Object.defineProperty(Binding.prototype, \"controller\", {\n get: function get() {\n return this.context.controller;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Binding.prototype, \"methodName\", {\n get: function get() {\n return this.action.methodName;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Binding.prototype, \"element\", {\n get: function get() {\n return this.scope.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Binding.prototype, \"scope\", {\n get: function get() {\n return this.context.scope;\n },\n enumerable: true,\n configurable: true\n });\n return Binding;\n}();\n\nexport { Binding };","var ElementObserver =\n/** @class */\nfunction () {\n function ElementObserver(element, delegate) {\n var _this = this;\n\n this.element = element;\n this.started = false;\n this.delegate = delegate;\n this.elements = new Set();\n this.mutationObserver = new MutationObserver(function (mutations) {\n return _this.processMutations(mutations);\n });\n }\n\n ElementObserver.prototype.start = function () {\n if (!this.started) {\n this.started = true;\n this.mutationObserver.observe(this.element, {\n attributes: true,\n childList: true,\n subtree: true\n });\n this.refresh();\n }\n };\n\n ElementObserver.prototype.stop = function () {\n if (this.started) {\n this.mutationObserver.takeRecords();\n this.mutationObserver.disconnect();\n this.started = false;\n }\n };\n\n ElementObserver.prototype.refresh = function () {\n if (this.started) {\n var matches = new Set(this.matchElementsInTree());\n\n for (var _i = 0, _a = Array.from(this.elements); _i < _a.length; _i++) {\n var element = _a[_i];\n\n if (!matches.has(element)) {\n this.removeElement(element);\n }\n }\n\n for (var _b = 0, _c = Array.from(matches); _b < _c.length; _b++) {\n var element = _c[_b];\n this.addElement(element);\n }\n }\n }; // Mutation record processing\n\n\n ElementObserver.prototype.processMutations = function (mutations) {\n if (this.started) {\n for (var _i = 0, mutations_1 = mutations; _i < mutations_1.length; _i++) {\n var mutation = mutations_1[_i];\n this.processMutation(mutation);\n }\n }\n };\n\n ElementObserver.prototype.processMutation = function (mutation) {\n if (mutation.type == \"attributes\") {\n this.processAttributeChange(mutation.target, mutation.attributeName);\n } else if (mutation.type == \"childList\") {\n this.processRemovedNodes(mutation.removedNodes);\n this.processAddedNodes(mutation.addedNodes);\n }\n };\n\n ElementObserver.prototype.processAttributeChange = function (node, attributeName) {\n var element = node;\n\n if (this.elements.has(element)) {\n if (this.delegate.elementAttributeChanged && this.matchElement(element)) {\n this.delegate.elementAttributeChanged(element, attributeName);\n } else {\n this.removeElement(element);\n }\n } else if (this.matchElement(element)) {\n this.addElement(element);\n }\n };\n\n ElementObserver.prototype.processRemovedNodes = function (nodes) {\n for (var _i = 0, _a = Array.from(nodes); _i < _a.length; _i++) {\n var node = _a[_i];\n var element = this.elementFromNode(node);\n\n if (element) {\n this.processTree(element, this.removeElement);\n }\n }\n };\n\n ElementObserver.prototype.processAddedNodes = function (nodes) {\n for (var _i = 0, _a = Array.from(nodes); _i < _a.length; _i++) {\n var node = _a[_i];\n var element = this.elementFromNode(node);\n\n if (element && this.elementIsActive(element)) {\n this.processTree(element, this.addElement);\n }\n }\n }; // Element matching\n\n\n ElementObserver.prototype.matchElement = function (element) {\n return this.delegate.matchElement(element);\n };\n\n ElementObserver.prototype.matchElementsInTree = function (tree) {\n if (tree === void 0) {\n tree = this.element;\n }\n\n return this.delegate.matchElementsInTree(tree);\n };\n\n ElementObserver.prototype.processTree = function (tree, processor) {\n for (var _i = 0, _a = this.matchElementsInTree(tree); _i < _a.length; _i++) {\n var element = _a[_i];\n processor.call(this, element);\n }\n };\n\n ElementObserver.prototype.elementFromNode = function (node) {\n if (node.nodeType == Node.ELEMENT_NODE) {\n return node;\n }\n };\n\n ElementObserver.prototype.elementIsActive = function (element) {\n if (element.isConnected != this.element.isConnected) {\n return false;\n } else {\n return this.element.contains(element);\n }\n }; // Element tracking\n\n\n ElementObserver.prototype.addElement = function (element) {\n if (!this.elements.has(element)) {\n if (this.elementIsActive(element)) {\n this.elements.add(element);\n\n if (this.delegate.elementMatched) {\n this.delegate.elementMatched(element);\n }\n }\n }\n };\n\n ElementObserver.prototype.removeElement = function (element) {\n if (this.elements.has(element)) {\n this.elements.delete(element);\n\n if (this.delegate.elementUnmatched) {\n this.delegate.elementUnmatched(element);\n }\n }\n };\n\n return ElementObserver;\n}();\n\nexport { ElementObserver };","import { ElementObserver } from \"./element_observer\";\n\nvar AttributeObserver =\n/** @class */\nfunction () {\n function AttributeObserver(element, attributeName, delegate) {\n this.attributeName = attributeName;\n this.delegate = delegate;\n this.elementObserver = new ElementObserver(element, this);\n }\n\n Object.defineProperty(AttributeObserver.prototype, \"element\", {\n get: function get() {\n return this.elementObserver.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AttributeObserver.prototype, \"selector\", {\n get: function get() {\n return \"[\" + this.attributeName + \"]\";\n },\n enumerable: true,\n configurable: true\n });\n\n AttributeObserver.prototype.start = function () {\n this.elementObserver.start();\n };\n\n AttributeObserver.prototype.stop = function () {\n this.elementObserver.stop();\n };\n\n AttributeObserver.prototype.refresh = function () {\n this.elementObserver.refresh();\n };\n\n Object.defineProperty(AttributeObserver.prototype, \"started\", {\n get: function get() {\n return this.elementObserver.started;\n },\n enumerable: true,\n configurable: true\n }); // Element observer delegate\n\n AttributeObserver.prototype.matchElement = function (element) {\n return element.hasAttribute(this.attributeName);\n };\n\n AttributeObserver.prototype.matchElementsInTree = function (tree) {\n var match = this.matchElement(tree) ? [tree] : [];\n var matches = Array.from(tree.querySelectorAll(this.selector));\n return match.concat(matches);\n };\n\n AttributeObserver.prototype.elementMatched = function (element) {\n if (this.delegate.elementMatchedAttribute) {\n this.delegate.elementMatchedAttribute(element, this.attributeName);\n }\n };\n\n AttributeObserver.prototype.elementUnmatched = function (element) {\n if (this.delegate.elementUnmatchedAttribute) {\n this.delegate.elementUnmatchedAttribute(element, this.attributeName);\n }\n };\n\n AttributeObserver.prototype.elementAttributeChanged = function (element, attributeName) {\n if (this.delegate.elementAttributeValueChanged && this.attributeName == attributeName) {\n this.delegate.elementAttributeValueChanged(element, attributeName);\n }\n };\n\n return AttributeObserver;\n}();\n\nexport { AttributeObserver };","export function add(map, key, value) {\n fetch(map, key).add(value);\n}\nexport function del(map, key, value) {\n fetch(map, key).delete(value);\n prune(map, key);\n}\nexport function fetch(map, key) {\n var values = map.get(key);\n\n if (!values) {\n values = new Set();\n map.set(key, values);\n }\n\n return values;\n}\nexport function prune(map, key) {\n var values = map.get(key);\n\n if (values != null && values.size == 0) {\n map.delete(key);\n }\n}","import { add, del } from \"./set_operations\";\n\nvar Multimap =\n/** @class */\nfunction () {\n function Multimap() {\n this.valuesByKey = new Map();\n }\n\n Object.defineProperty(Multimap.prototype, \"values\", {\n get: function get() {\n var sets = Array.from(this.valuesByKey.values());\n return sets.reduce(function (values, set) {\n return values.concat(Array.from(set));\n }, []);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Multimap.prototype, \"size\", {\n get: function get() {\n var sets = Array.from(this.valuesByKey.values());\n return sets.reduce(function (size, set) {\n return size + set.size;\n }, 0);\n },\n enumerable: true,\n configurable: true\n });\n\n Multimap.prototype.add = function (key, value) {\n add(this.valuesByKey, key, value);\n };\n\n Multimap.prototype.delete = function (key, value) {\n del(this.valuesByKey, key, value);\n };\n\n Multimap.prototype.has = function (key, value) {\n var values = this.valuesByKey.get(key);\n return values != null && values.has(value);\n };\n\n Multimap.prototype.hasKey = function (key) {\n return this.valuesByKey.has(key);\n };\n\n Multimap.prototype.hasValue = function (value) {\n var sets = Array.from(this.valuesByKey.values());\n return sets.some(function (set) {\n return set.has(value);\n });\n };\n\n Multimap.prototype.getValuesForKey = function (key) {\n var values = this.valuesByKey.get(key);\n return values ? Array.from(values) : [];\n };\n\n Multimap.prototype.getKeysForValue = function (value) {\n return Array.from(this.valuesByKey).filter(function (_a) {\n var key = _a[0],\n values = _a[1];\n return values.has(value);\n }).map(function (_a) {\n var key = _a[0],\n values = _a[1];\n return key;\n });\n };\n\n return Multimap;\n}();\n\nexport { Multimap };","var __extends = this && this.__extends || function () {\n var extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return function (d, b) {\n extendStatics(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nimport { Multimap } from \"./multimap\";\nimport { add, del } from \"./set_operations\";\n\nvar IndexedMultimap =\n/** @class */\nfunction (_super) {\n __extends(IndexedMultimap, _super);\n\n function IndexedMultimap() {\n var _this = _super.call(this) || this;\n\n _this.keysByValue = new Map();\n return _this;\n }\n\n Object.defineProperty(IndexedMultimap.prototype, \"values\", {\n get: function get() {\n return Array.from(this.keysByValue.keys());\n },\n enumerable: true,\n configurable: true\n });\n\n IndexedMultimap.prototype.add = function (key, value) {\n _super.prototype.add.call(this, key, value);\n\n add(this.keysByValue, value, key);\n };\n\n IndexedMultimap.prototype.delete = function (key, value) {\n _super.prototype.delete.call(this, key, value);\n\n del(this.keysByValue, value, key);\n };\n\n IndexedMultimap.prototype.hasValue = function (value) {\n return this.keysByValue.has(value);\n };\n\n IndexedMultimap.prototype.getKeysForValue = function (value) {\n var set = this.keysByValue.get(value);\n return set ? Array.from(set) : [];\n };\n\n return IndexedMultimap;\n}(Multimap);\n\nexport { IndexedMultimap };","import { AttributeObserver } from \"./attribute_observer\";\nimport { Multimap } from \"@stimulus/multimap\";\n\nvar TokenListObserver =\n/** @class */\nfunction () {\n function TokenListObserver(element, attributeName, delegate) {\n this.attributeObserver = new AttributeObserver(element, attributeName, this);\n this.delegate = delegate;\n this.tokensByElement = new Multimap();\n }\n\n Object.defineProperty(TokenListObserver.prototype, \"started\", {\n get: function get() {\n return this.attributeObserver.started;\n },\n enumerable: true,\n configurable: true\n });\n\n TokenListObserver.prototype.start = function () {\n this.attributeObserver.start();\n };\n\n TokenListObserver.prototype.stop = function () {\n this.attributeObserver.stop();\n };\n\n TokenListObserver.prototype.refresh = function () {\n this.attributeObserver.refresh();\n };\n\n Object.defineProperty(TokenListObserver.prototype, \"element\", {\n get: function get() {\n return this.attributeObserver.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TokenListObserver.prototype, \"attributeName\", {\n get: function get() {\n return this.attributeObserver.attributeName;\n },\n enumerable: true,\n configurable: true\n }); // Attribute observer delegate\n\n TokenListObserver.prototype.elementMatchedAttribute = function (element) {\n this.tokensMatched(this.readTokensForElement(element));\n };\n\n TokenListObserver.prototype.elementAttributeValueChanged = function (element) {\n var _a = this.refreshTokensForElement(element),\n unmatchedTokens = _a[0],\n matchedTokens = _a[1];\n\n this.tokensUnmatched(unmatchedTokens);\n this.tokensMatched(matchedTokens);\n };\n\n TokenListObserver.prototype.elementUnmatchedAttribute = function (element) {\n this.tokensUnmatched(this.tokensByElement.getValuesForKey(element));\n };\n\n TokenListObserver.prototype.tokensMatched = function (tokens) {\n var _this = this;\n\n tokens.forEach(function (token) {\n return _this.tokenMatched(token);\n });\n };\n\n TokenListObserver.prototype.tokensUnmatched = function (tokens) {\n var _this = this;\n\n tokens.forEach(function (token) {\n return _this.tokenUnmatched(token);\n });\n };\n\n TokenListObserver.prototype.tokenMatched = function (token) {\n this.delegate.tokenMatched(token);\n this.tokensByElement.add(token.element, token);\n };\n\n TokenListObserver.prototype.tokenUnmatched = function (token) {\n this.delegate.tokenUnmatched(token);\n this.tokensByElement.delete(token.element, token);\n };\n\n TokenListObserver.prototype.refreshTokensForElement = function (element) {\n var previousTokens = this.tokensByElement.getValuesForKey(element);\n var currentTokens = this.readTokensForElement(element);\n var firstDifferingIndex = zip(previousTokens, currentTokens).findIndex(function (_a) {\n var previousToken = _a[0],\n currentToken = _a[1];\n return !tokensAreEqual(previousToken, currentToken);\n });\n\n if (firstDifferingIndex == -1) {\n return [[], []];\n } else {\n return [previousTokens.slice(firstDifferingIndex), currentTokens.slice(firstDifferingIndex)];\n }\n };\n\n TokenListObserver.prototype.readTokensForElement = function (element) {\n var attributeName = this.attributeName;\n var tokenString = element.getAttribute(attributeName) || \"\";\n return parseTokenString(tokenString, element, attributeName);\n };\n\n return TokenListObserver;\n}();\n\nexport { TokenListObserver };\n\nfunction parseTokenString(tokenString, element, attributeName) {\n return tokenString.trim().split(/\\s+/).filter(function (content) {\n return content.length;\n }).map(function (content, index) {\n return {\n element: element,\n attributeName: attributeName,\n content: content,\n index: index\n };\n });\n}\n\nfunction zip(left, right) {\n var length = Math.max(left.length, right.length);\n return Array.from({\n length: length\n }, function (_, index) {\n return [left[index], right[index]];\n });\n}\n\nfunction tokensAreEqual(left, right) {\n return left && right && left.index == right.index && left.content == right.content;\n}","import { TokenListObserver } from \"./token_list_observer\";\n\nvar ValueListObserver =\n/** @class */\nfunction () {\n function ValueListObserver(element, attributeName, delegate) {\n this.tokenListObserver = new TokenListObserver(element, attributeName, this);\n this.delegate = delegate;\n this.parseResultsByToken = new WeakMap();\n this.valuesByTokenByElement = new WeakMap();\n }\n\n Object.defineProperty(ValueListObserver.prototype, \"started\", {\n get: function get() {\n return this.tokenListObserver.started;\n },\n enumerable: true,\n configurable: true\n });\n\n ValueListObserver.prototype.start = function () {\n this.tokenListObserver.start();\n };\n\n ValueListObserver.prototype.stop = function () {\n this.tokenListObserver.stop();\n };\n\n ValueListObserver.prototype.refresh = function () {\n this.tokenListObserver.refresh();\n };\n\n Object.defineProperty(ValueListObserver.prototype, \"element\", {\n get: function get() {\n return this.tokenListObserver.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ValueListObserver.prototype, \"attributeName\", {\n get: function get() {\n return this.tokenListObserver.attributeName;\n },\n enumerable: true,\n configurable: true\n });\n\n ValueListObserver.prototype.tokenMatched = function (token) {\n var element = token.element;\n var value = this.fetchParseResultForToken(token).value;\n\n if (value) {\n this.fetchValuesByTokenForElement(element).set(token, value);\n this.delegate.elementMatchedValue(element, value);\n }\n };\n\n ValueListObserver.prototype.tokenUnmatched = function (token) {\n var element = token.element;\n var value = this.fetchParseResultForToken(token).value;\n\n if (value) {\n this.fetchValuesByTokenForElement(element).delete(token);\n this.delegate.elementUnmatchedValue(element, value);\n }\n };\n\n ValueListObserver.prototype.fetchParseResultForToken = function (token) {\n var parseResult = this.parseResultsByToken.get(token);\n\n if (!parseResult) {\n parseResult = this.parseToken(token);\n this.parseResultsByToken.set(token, parseResult);\n }\n\n return parseResult;\n };\n\n ValueListObserver.prototype.fetchValuesByTokenForElement = function (element) {\n var valuesByToken = this.valuesByTokenByElement.get(element);\n\n if (!valuesByToken) {\n valuesByToken = new Map();\n this.valuesByTokenByElement.set(element, valuesByToken);\n }\n\n return valuesByToken;\n };\n\n ValueListObserver.prototype.parseToken = function (token) {\n try {\n var value = this.delegate.parseValueForToken(token);\n return {\n value: value\n };\n } catch (error) {\n return {\n error: error\n };\n }\n };\n\n return ValueListObserver;\n}();\n\nexport { ValueListObserver };","import { Action } from \"./action\";\nimport { Binding } from \"./binding\";\nimport { ValueListObserver } from \"@stimulus/mutation-observers\";\n\nvar BindingObserver =\n/** @class */\nfunction () {\n function BindingObserver(context, delegate) {\n this.context = context;\n this.delegate = delegate;\n this.bindingsByAction = new Map();\n }\n\n BindingObserver.prototype.start = function () {\n if (!this.valueListObserver) {\n this.valueListObserver = new ValueListObserver(this.element, this.actionAttribute, this);\n this.valueListObserver.start();\n }\n };\n\n BindingObserver.prototype.stop = function () {\n if (this.valueListObserver) {\n this.valueListObserver.stop();\n delete this.valueListObserver;\n this.disconnectAllActions();\n }\n };\n\n Object.defineProperty(BindingObserver.prototype, \"element\", {\n get: function get() {\n return this.context.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BindingObserver.prototype, \"identifier\", {\n get: function get() {\n return this.context.identifier;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BindingObserver.prototype, \"actionAttribute\", {\n get: function get() {\n return this.schema.actionAttribute;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BindingObserver.prototype, \"schema\", {\n get: function get() {\n return this.context.schema;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BindingObserver.prototype, \"bindings\", {\n get: function get() {\n return Array.from(this.bindingsByAction.values());\n },\n enumerable: true,\n configurable: true\n });\n\n BindingObserver.prototype.connectAction = function (action) {\n var binding = new Binding(this.context, action);\n this.bindingsByAction.set(action, binding);\n this.delegate.bindingConnected(binding);\n };\n\n BindingObserver.prototype.disconnectAction = function (action) {\n var binding = this.bindingsByAction.get(action);\n\n if (binding) {\n this.bindingsByAction.delete(action);\n this.delegate.bindingDisconnected(binding);\n }\n };\n\n BindingObserver.prototype.disconnectAllActions = function () {\n var _this = this;\n\n this.bindings.forEach(function (binding) {\n return _this.delegate.bindingDisconnected(binding);\n });\n this.bindingsByAction.clear();\n }; // Value observer delegate\n\n\n BindingObserver.prototype.parseValueForToken = function (token) {\n var action = Action.forToken(token);\n\n if (action.identifier == this.identifier) {\n return action;\n }\n };\n\n BindingObserver.prototype.elementMatchedValue = function (element, action) {\n this.connectAction(action);\n };\n\n BindingObserver.prototype.elementUnmatchedValue = function (element, action) {\n this.disconnectAction(action);\n };\n\n return BindingObserver;\n}();\n\nexport { BindingObserver };","import { BindingObserver } from \"./binding_observer\";\n\nvar Context =\n/** @class */\nfunction () {\n function Context(module, scope) {\n this.module = module;\n this.scope = scope;\n this.controller = new module.controllerConstructor(this);\n this.bindingObserver = new BindingObserver(this, this.dispatcher);\n\n try {\n this.controller.initialize();\n } catch (error) {\n this.handleError(error, \"initializing controller\");\n }\n }\n\n Context.prototype.connect = function () {\n this.bindingObserver.start();\n\n try {\n this.controller.connect();\n } catch (error) {\n this.handleError(error, \"connecting controller\");\n }\n };\n\n Context.prototype.disconnect = function () {\n try {\n this.controller.disconnect();\n } catch (error) {\n this.handleError(error, \"disconnecting controller\");\n }\n\n this.bindingObserver.stop();\n };\n\n Object.defineProperty(Context.prototype, \"application\", {\n get: function get() {\n return this.module.application;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Context.prototype, \"identifier\", {\n get: function get() {\n return this.module.identifier;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Context.prototype, \"schema\", {\n get: function get() {\n return this.application.schema;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Context.prototype, \"dispatcher\", {\n get: function get() {\n return this.application.dispatcher;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Context.prototype, \"element\", {\n get: function get() {\n return this.scope.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Context.prototype, \"parentElement\", {\n get: function get() {\n return this.element.parentElement;\n },\n enumerable: true,\n configurable: true\n }); // Error handling\n\n Context.prototype.handleError = function (error, message, detail) {\n if (detail === void 0) {\n detail = {};\n }\n\n var _a = this,\n identifier = _a.identifier,\n controller = _a.controller,\n element = _a.element;\n\n detail = Object.assign({\n identifier: identifier,\n controller: controller,\n element: element\n }, detail);\n this.application.handleError(error, \"Error \" + message, detail);\n };\n\n return Context;\n}();\n\nexport { Context };","var __extends = this && this.__extends || function () {\n var extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return function (d, b) {\n extendStatics(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n/** @hidden */\n\n\nexport function blessDefinition(definition) {\n return {\n identifier: definition.identifier,\n controllerConstructor: blessControllerConstructor(definition.controllerConstructor)\n };\n}\n\nfunction blessControllerConstructor(controllerConstructor) {\n var constructor = extend(controllerConstructor);\n constructor.bless();\n return constructor;\n}\n\nvar extend = function () {\n function extendWithReflect(constructor) {\n function Controller() {\n var _newTarget = this && this instanceof Controller ? this.constructor : void 0;\n\n return Reflect.construct(constructor, arguments, _newTarget);\n }\n\n Controller.prototype = Object.create(constructor.prototype, {\n constructor: {\n value: Controller\n }\n });\n Reflect.setPrototypeOf(Controller, constructor);\n return Controller;\n }\n\n function testReflectExtension() {\n var a = function a() {\n this.a.call(this);\n };\n\n var b = extendWithReflect(a);\n\n b.prototype.a = function () {};\n\n return new b();\n }\n\n try {\n testReflectExtension();\n return extendWithReflect;\n } catch (error) {\n return function (constructor) {\n return (\n /** @class */\n function (_super) {\n __extends(Controller, _super);\n\n function Controller() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n return Controller;\n }(constructor)\n );\n };\n }\n}();","import { Context } from \"./context\";\nimport { blessDefinition } from \"./definition\";\n\nvar Module =\n/** @class */\nfunction () {\n function Module(application, definition) {\n this.application = application;\n this.definition = blessDefinition(definition);\n this.contextsByScope = new WeakMap();\n this.connectedContexts = new Set();\n }\n\n Object.defineProperty(Module.prototype, \"identifier\", {\n get: function get() {\n return this.definition.identifier;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Module.prototype, \"controllerConstructor\", {\n get: function get() {\n return this.definition.controllerConstructor;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Module.prototype, \"contexts\", {\n get: function get() {\n return Array.from(this.connectedContexts);\n },\n enumerable: true,\n configurable: true\n });\n\n Module.prototype.connectContextForScope = function (scope) {\n var context = this.fetchContextForScope(scope);\n this.connectedContexts.add(context);\n context.connect();\n };\n\n Module.prototype.disconnectContextForScope = function (scope) {\n var context = this.contextsByScope.get(scope);\n\n if (context) {\n this.connectedContexts.delete(context);\n context.disconnect();\n }\n };\n\n Module.prototype.fetchContextForScope = function (scope) {\n var context = this.contextsByScope.get(scope);\n\n if (!context) {\n context = new Context(this, scope);\n this.contextsByScope.set(scope, context);\n }\n\n return context;\n };\n\n return Module;\n}();\n\nexport { Module };","var DataMap =\n/** @class */\nfunction () {\n function DataMap(scope) {\n this.scope = scope;\n }\n\n Object.defineProperty(DataMap.prototype, \"element\", {\n get: function get() {\n return this.scope.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DataMap.prototype, \"identifier\", {\n get: function get() {\n return this.scope.identifier;\n },\n enumerable: true,\n configurable: true\n });\n\n DataMap.prototype.get = function (key) {\n key = this.getFormattedKey(key);\n return this.element.getAttribute(key);\n };\n\n DataMap.prototype.set = function (key, value) {\n key = this.getFormattedKey(key);\n this.element.setAttribute(key, value);\n return this.get(key);\n };\n\n DataMap.prototype.has = function (key) {\n key = this.getFormattedKey(key);\n return this.element.hasAttribute(key);\n };\n\n DataMap.prototype.delete = function (key) {\n if (this.has(key)) {\n key = this.getFormattedKey(key);\n this.element.removeAttribute(key);\n return true;\n } else {\n return false;\n }\n };\n\n DataMap.prototype.getFormattedKey = function (key) {\n return \"data-\" + this.identifier + \"-\" + dasherize(key);\n };\n\n return DataMap;\n}();\n\nexport { DataMap };\n\nfunction dasherize(value) {\n return value.replace(/([A-Z])/g, function (_, char) {\n return \"-\" + char.toLowerCase();\n });\n}","/** @hidden */\nexport function attributeValueContainsToken(attributeName, token) {\n return \"[\" + attributeName + \"~=\\\"\" + token + \"\\\"]\";\n}","import { attributeValueContainsToken } from \"./selectors\";\n\nvar TargetSet =\n/** @class */\nfunction () {\n function TargetSet(scope) {\n this.scope = scope;\n }\n\n Object.defineProperty(TargetSet.prototype, \"element\", {\n get: function get() {\n return this.scope.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TargetSet.prototype, \"identifier\", {\n get: function get() {\n return this.scope.identifier;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TargetSet.prototype, \"schema\", {\n get: function get() {\n return this.scope.schema;\n },\n enumerable: true,\n configurable: true\n });\n\n TargetSet.prototype.has = function (targetName) {\n return this.find(targetName) != null;\n };\n\n TargetSet.prototype.find = function () {\n var targetNames = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n targetNames[_i] = arguments[_i];\n }\n\n var selector = this.getSelectorForTargetNames(targetNames);\n return this.scope.findElement(selector);\n };\n\n TargetSet.prototype.findAll = function () {\n var targetNames = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n targetNames[_i] = arguments[_i];\n }\n\n var selector = this.getSelectorForTargetNames(targetNames);\n return this.scope.findAllElements(selector);\n };\n\n TargetSet.prototype.getSelectorForTargetNames = function (targetNames) {\n var _this = this;\n\n return targetNames.map(function (targetName) {\n return _this.getSelectorForTargetName(targetName);\n }).join(\", \");\n };\n\n TargetSet.prototype.getSelectorForTargetName = function (targetName) {\n var targetDescriptor = this.identifier + \".\" + targetName;\n return attributeValueContainsToken(this.schema.targetAttribute, targetDescriptor);\n };\n\n return TargetSet;\n}();\n\nexport { TargetSet };","import { DataMap } from \"./data_map\";\nimport { TargetSet } from \"./target_set\";\nimport { attributeValueContainsToken } from \"./selectors\";\n\nvar Scope =\n/** @class */\nfunction () {\n function Scope(schema, identifier, element) {\n this.schema = schema;\n this.identifier = identifier;\n this.element = element;\n this.targets = new TargetSet(this);\n this.data = new DataMap(this);\n }\n\n Scope.prototype.findElement = function (selector) {\n return this.findAllElements(selector)[0];\n };\n\n Scope.prototype.findAllElements = function (selector) {\n var head = this.element.matches(selector) ? [this.element] : [];\n var tail = this.filterElements(Array.from(this.element.querySelectorAll(selector)));\n return head.concat(tail);\n };\n\n Scope.prototype.filterElements = function (elements) {\n var _this = this;\n\n return elements.filter(function (element) {\n return _this.containsElement(element);\n });\n };\n\n Scope.prototype.containsElement = function (element) {\n return element.closest(this.controllerSelector) === this.element;\n };\n\n Object.defineProperty(Scope.prototype, \"controllerSelector\", {\n get: function get() {\n return attributeValueContainsToken(this.schema.controllerAttribute, this.identifier);\n },\n enumerable: true,\n configurable: true\n });\n return Scope;\n}();\n\nexport { Scope };","import { Scope } from \"./scope\";\nimport { ValueListObserver } from \"@stimulus/mutation-observers\";\n\nvar ScopeObserver =\n/** @class */\nfunction () {\n function ScopeObserver(element, schema, delegate) {\n this.element = element;\n this.schema = schema;\n this.delegate = delegate;\n this.valueListObserver = new ValueListObserver(this.element, this.controllerAttribute, this);\n this.scopesByIdentifierByElement = new WeakMap();\n this.scopeReferenceCounts = new WeakMap();\n }\n\n ScopeObserver.prototype.start = function () {\n this.valueListObserver.start();\n };\n\n ScopeObserver.prototype.stop = function () {\n this.valueListObserver.stop();\n };\n\n Object.defineProperty(ScopeObserver.prototype, \"controllerAttribute\", {\n get: function get() {\n return this.schema.controllerAttribute;\n },\n enumerable: true,\n configurable: true\n }); // Value observer delegate\n\n /** @hidden */\n\n ScopeObserver.prototype.parseValueForToken = function (token) {\n var element = token.element,\n identifier = token.content;\n var scopesByIdentifier = this.fetchScopesByIdentifierForElement(element);\n var scope = scopesByIdentifier.get(identifier);\n\n if (!scope) {\n scope = new Scope(this.schema, identifier, element);\n scopesByIdentifier.set(identifier, scope);\n }\n\n return scope;\n };\n /** @hidden */\n\n\n ScopeObserver.prototype.elementMatchedValue = function (element, value) {\n var referenceCount = (this.scopeReferenceCounts.get(value) || 0) + 1;\n this.scopeReferenceCounts.set(value, referenceCount);\n\n if (referenceCount == 1) {\n this.delegate.scopeConnected(value);\n }\n };\n /** @hidden */\n\n\n ScopeObserver.prototype.elementUnmatchedValue = function (element, value) {\n var referenceCount = this.scopeReferenceCounts.get(value);\n\n if (referenceCount) {\n this.scopeReferenceCounts.set(value, referenceCount - 1);\n\n if (referenceCount == 1) {\n this.delegate.scopeDisconnected(value);\n }\n }\n };\n\n ScopeObserver.prototype.fetchScopesByIdentifierForElement = function (element) {\n var scopesByIdentifier = this.scopesByIdentifierByElement.get(element);\n\n if (!scopesByIdentifier) {\n scopesByIdentifier = new Map();\n this.scopesByIdentifierByElement.set(element, scopesByIdentifier);\n }\n\n return scopesByIdentifier;\n };\n\n return ScopeObserver;\n}();\n\nexport { ScopeObserver };","import { Module } from \"./module\";\nimport { Multimap } from \"@stimulus/multimap\";\nimport { ScopeObserver } from \"./scope_observer\";\n\nvar Router =\n/** @class */\nfunction () {\n function Router(application) {\n this.application = application;\n this.scopeObserver = new ScopeObserver(this.element, this.schema, this);\n this.scopesByIdentifier = new Multimap();\n this.modulesByIdentifier = new Map();\n }\n\n Object.defineProperty(Router.prototype, \"element\", {\n get: function get() {\n return this.application.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Router.prototype, \"schema\", {\n get: function get() {\n return this.application.schema;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Router.prototype, \"controllerAttribute\", {\n get: function get() {\n return this.schema.controllerAttribute;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Router.prototype, \"modules\", {\n get: function get() {\n return Array.from(this.modulesByIdentifier.values());\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Router.prototype, \"contexts\", {\n get: function get() {\n return this.modules.reduce(function (contexts, module) {\n return contexts.concat(module.contexts);\n }, []);\n },\n enumerable: true,\n configurable: true\n });\n\n Router.prototype.start = function () {\n this.scopeObserver.start();\n };\n\n Router.prototype.stop = function () {\n this.scopeObserver.stop();\n };\n\n Router.prototype.loadDefinition = function (definition) {\n this.unloadIdentifier(definition.identifier);\n var module = new Module(this.application, definition);\n this.connectModule(module);\n };\n\n Router.prototype.unloadIdentifier = function (identifier) {\n var module = this.modulesByIdentifier.get(identifier);\n\n if (module) {\n this.disconnectModule(module);\n }\n };\n\n Router.prototype.getContextForElementAndIdentifier = function (element, identifier) {\n var module = this.modulesByIdentifier.get(identifier);\n\n if (module) {\n return module.contexts.find(function (context) {\n return context.element == element;\n });\n }\n }; // Error handler delegate\n\n /** @hidden */\n\n\n Router.prototype.handleError = function (error, message, detail) {\n this.application.handleError(error, message, detail);\n }; // Scope observer delegate\n\n /** @hidden */\n\n\n Router.prototype.scopeConnected = function (scope) {\n this.scopesByIdentifier.add(scope.identifier, scope);\n var module = this.modulesByIdentifier.get(scope.identifier);\n\n if (module) {\n module.connectContextForScope(scope);\n }\n };\n /** @hidden */\n\n\n Router.prototype.scopeDisconnected = function (scope) {\n this.scopesByIdentifier.delete(scope.identifier, scope);\n var module = this.modulesByIdentifier.get(scope.identifier);\n\n if (module) {\n module.disconnectContextForScope(scope);\n }\n }; // Modules\n\n\n Router.prototype.connectModule = function (module) {\n this.modulesByIdentifier.set(module.identifier, module);\n var scopes = this.scopesByIdentifier.getValuesForKey(module.identifier);\n scopes.forEach(function (scope) {\n return module.connectContextForScope(scope);\n });\n };\n\n Router.prototype.disconnectModule = function (module) {\n this.modulesByIdentifier.delete(module.identifier);\n var scopes = this.scopesByIdentifier.getValuesForKey(module.identifier);\n scopes.forEach(function (scope) {\n return module.disconnectContextForScope(scope);\n });\n };\n\n return Router;\n}();\n\nexport { Router };","export var defaultSchema = {\n controllerAttribute: \"data-controller\",\n actionAttribute: \"data-action\",\n targetAttribute: \"data-target\"\n};","var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n\n function step(result) {\n result.done ? resolve(result.value) : new P(function (resolve) {\n resolve(result.value);\n }).then(fulfilled, rejected);\n }\n\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\nvar __generator = this && this.__generator || function (thisArg, body) {\n var _ = {\n label: 0,\n sent: function sent() {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n },\n f,\n y,\n t,\n g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function () {\n return this;\n }), g;\n\n function verb(n) {\n return function (v) {\n return step([n, v]);\n };\n }\n\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n\n while (_) {\n try {\n if (f = 1, y && (t = y[op[0] & 2 ? \"return\" : op[0] ? \"throw\" : \"next\"]) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [0, t.value];\n\n switch (op[0]) {\n case 0:\n case 1:\n t = op;\n break;\n\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n\n case 5:\n _.label++;\n y = op[1];\n op = [0];\n continue;\n\n case 7:\n op = _.ops.pop();\n\n _.trys.pop();\n\n continue;\n\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n\n if (t && _.label < t[2]) {\n _.label = t[2];\n\n _.ops.push(op);\n\n break;\n }\n\n if (t[2]) _.ops.pop();\n\n _.trys.pop();\n\n continue;\n }\n\n op = body.call(thisArg, _);\n } catch (e) {\n op = [6, e];\n y = 0;\n } finally {\n f = t = 0;\n }\n }\n\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n};\n\nimport { Dispatcher } from \"./dispatcher\";\nimport { Router } from \"./router\";\nimport { defaultSchema } from \"./schema\";\n\nvar Application =\n/** @class */\nfunction () {\n function Application(element, schema) {\n if (element === void 0) {\n element = document.documentElement;\n }\n\n if (schema === void 0) {\n schema = defaultSchema;\n }\n\n this.element = element;\n this.schema = schema;\n this.dispatcher = new Dispatcher(this);\n this.router = new Router(this);\n }\n\n Application.start = function (element, schema) {\n var application = new Application(element, schema);\n application.start();\n return application;\n };\n\n Application.prototype.start = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n return [4\n /*yield*/\n , domReady()];\n\n case 1:\n _a.sent();\n\n this.router.start();\n this.dispatcher.start();\n return [2\n /*return*/\n ];\n }\n });\n });\n };\n\n Application.prototype.stop = function () {\n this.router.stop();\n this.dispatcher.stop();\n };\n\n Application.prototype.register = function (identifier, controllerConstructor) {\n this.load({\n identifier: identifier,\n controllerConstructor: controllerConstructor\n });\n };\n\n Application.prototype.load = function (head) {\n var _this = this;\n\n var rest = [];\n\n for (var _i = 1; _i < arguments.length; _i++) {\n rest[_i - 1] = arguments[_i];\n }\n\n var definitions = Array.isArray(head) ? head : [head].concat(rest);\n definitions.forEach(function (definition) {\n return _this.router.loadDefinition(definition);\n });\n };\n\n Application.prototype.unload = function (head) {\n var _this = this;\n\n var rest = [];\n\n for (var _i = 1; _i < arguments.length; _i++) {\n rest[_i - 1] = arguments[_i];\n }\n\n var identifiers = Array.isArray(head) ? head : [head].concat(rest);\n identifiers.forEach(function (identifier) {\n return _this.router.unloadIdentifier(identifier);\n });\n };\n\n Object.defineProperty(Application.prototype, \"controllers\", {\n // Controllers\n get: function get() {\n return this.router.contexts.map(function (context) {\n return context.controller;\n });\n },\n enumerable: true,\n configurable: true\n });\n\n Application.prototype.getControllerForElementAndIdentifier = function (element, identifier) {\n var context = this.router.getContextForElementAndIdentifier(element, identifier);\n return context ? context.controller : null;\n }; // Error handling\n\n\n Application.prototype.handleError = function (error, message, detail) {\n console.error(\"%s\\n\\n%o\\n\\n%o\", message, error, detail);\n };\n\n return Application;\n}();\n\nexport { Application };\n\nfunction domReady() {\n return new Promise(function (resolve) {\n if (document.readyState == \"loading\") {\n document.addEventListener(\"DOMContentLoaded\", resolve);\n } else {\n resolve();\n }\n });\n}","/** @hidden */\nexport function defineTargetProperties(constructor) {\n var prototype = constructor.prototype;\n var targetNames = getTargetNamesForConstructor(constructor);\n targetNames.forEach(function (name) {\n var _a;\n\n return defineLinkedProperties(prototype, (_a = {}, _a[name + \"Target\"] = {\n get: function get() {\n var target = this.targets.find(name);\n\n if (target) {\n return target;\n } else {\n throw new Error(\"Missing target element \\\"\" + this.identifier + \".\" + name + \"\\\"\");\n }\n }\n }, _a[name + \"Targets\"] = {\n get: function get() {\n return this.targets.findAll(name);\n }\n }, _a[\"has\" + capitalize(name) + \"Target\"] = {\n get: function get() {\n return this.targets.has(name);\n }\n }, _a));\n });\n}\n\nfunction getTargetNamesForConstructor(constructor) {\n var ancestors = getAncestorsForConstructor(constructor);\n return Array.from(ancestors.reduce(function (targetNames, constructor) {\n getOwnTargetNamesForConstructor(constructor).forEach(function (name) {\n return targetNames.add(name);\n });\n return targetNames;\n }, new Set()));\n}\n\nfunction getAncestorsForConstructor(constructor) {\n var ancestors = [];\n\n while (constructor) {\n ancestors.push(constructor);\n constructor = Object.getPrototypeOf(constructor);\n }\n\n return ancestors;\n}\n\nfunction getOwnTargetNamesForConstructor(constructor) {\n var definition = constructor[\"targets\"];\n return Array.isArray(definition) ? definition : [];\n}\n\nfunction defineLinkedProperties(object, properties) {\n Object.keys(properties).forEach(function (name) {\n if (!(name in object)) {\n var descriptor = properties[name];\n Object.defineProperty(object, name, descriptor);\n }\n });\n}\n\nfunction capitalize(name) {\n return name.charAt(0).toUpperCase() + name.slice(1);\n}","import { defineTargetProperties } from \"./target_properties\";\n\nvar Controller =\n/** @class */\nfunction () {\n function Controller(context) {\n this.context = context;\n }\n\n Controller.bless = function () {\n defineTargetProperties(this);\n };\n\n Object.defineProperty(Controller.prototype, \"application\", {\n get: function get() {\n return this.context.application;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Controller.prototype, \"scope\", {\n get: function get() {\n return this.context.scope;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Controller.prototype, \"element\", {\n get: function get() {\n return this.scope.element;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Controller.prototype, \"identifier\", {\n get: function get() {\n return this.scope.identifier;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Controller.prototype, \"targets\", {\n get: function get() {\n return this.scope.targets;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Controller.prototype, \"data\", {\n get: function get() {\n return this.scope.data;\n },\n enumerable: true,\n configurable: true\n });\n\n Controller.prototype.initialize = function () {// Override in your subclass to set up initial controller state\n };\n\n Controller.prototype.connect = function () {// Override in your subclass to respond when the controller is connected to the DOM\n };\n\n Controller.prototype.disconnect = function () {// Override in your subclass to respond when the controller is disconnected from the DOM\n };\n\n Controller.targets = [];\n return Controller;\n}();\n\nexport { Controller };","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\n/*! VelocityJS.org (1.5.2). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */\n\n/*************************\r\n Velocity jQuery Shim\r\n *************************/\n\n/*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */\n\n/* This file contains the jQuery functions that Velocity relies on, thereby removing Velocity's dependency on a full copy of jQuery, and allowing it to work in any environment. */\n\n/* These shimmed functions are only used if jQuery isn't present. If both this shim and jQuery are loaded, Velocity defaults to jQuery proper. */\n\n/* Browser support: Using this shim instead of jQuery proper removes support for IE8. */\n(function (window) {\n \"use strict\";\n /***************\r\n Setup\r\n ***************/\n\n /* If jQuery is already loaded, there's no point in loading this shim. */\n\n if (window.jQuery) {\n return;\n }\n /* jQuery base. */\n\n\n var $ = function $(selector, context) {\n return new $.fn.init(selector, context);\n };\n /********************\r\n Private Methods\r\n ********************/\n\n /* jQuery */\n\n\n $.isWindow = function (obj) {\n /* jshint eqeqeq: false */\n return obj && obj === obj.window;\n };\n /* jQuery */\n\n\n $.type = function (obj) {\n if (!obj) {\n return obj + \"\";\n }\n\n return _typeof(obj) === \"object\" || typeof obj === \"function\" ? class2type[toString.call(obj)] || \"object\" : _typeof(obj);\n };\n /* jQuery */\n\n\n $.isArray = Array.isArray || function (obj) {\n return $.type(obj) === \"array\";\n };\n /* jQuery */\n\n\n function isArraylike(obj) {\n var length = obj.length,\n type = $.type(obj);\n\n if (type === \"function\" || $.isWindow(obj)) {\n return false;\n }\n\n if (obj.nodeType === 1 && length) {\n return true;\n }\n\n return type === \"array\" || length === 0 || typeof length === \"number\" && length > 0 && length - 1 in obj;\n }\n /***************\r\n $ Methods\r\n ***************/\n\n /* jQuery: Support removed for IE<9. */\n\n\n $.isPlainObject = function (obj) {\n var key;\n\n if (!obj || $.type(obj) !== \"object\" || obj.nodeType || $.isWindow(obj)) {\n return false;\n }\n\n try {\n if (obj.constructor && !hasOwn.call(obj, \"constructor\") && !hasOwn.call(obj.constructor.prototype, \"isPrototypeOf\")) {\n return false;\n }\n } catch (e) {\n return false;\n }\n\n for (key in obj) {}\n\n return key === undefined || hasOwn.call(obj, key);\n };\n /* jQuery */\n\n\n $.each = function (obj, callback, args) {\n var value,\n i = 0,\n length = obj.length,\n isArray = isArraylike(obj);\n\n if (args) {\n if (isArray) {\n for (; i < length; i++) {\n value = callback.apply(obj[i], args);\n\n if (value === false) {\n break;\n }\n }\n } else {\n for (i in obj) {\n if (!obj.hasOwnProperty(i)) {\n continue;\n }\n\n value = callback.apply(obj[i], args);\n\n if (value === false) {\n break;\n }\n }\n }\n } else {\n if (isArray) {\n for (; i < length; i++) {\n value = callback.call(obj[i], i, obj[i]);\n\n if (value === false) {\n break;\n }\n }\n } else {\n for (i in obj) {\n if (!obj.hasOwnProperty(i)) {\n continue;\n }\n\n value = callback.call(obj[i], i, obj[i]);\n\n if (value === false) {\n break;\n }\n }\n }\n }\n\n return obj;\n };\n /* Custom */\n\n\n $.data = function (node, key, value) {\n /* $.getData() */\n if (value === undefined) {\n var getId = node[$.expando],\n store = getId && cache[getId];\n\n if (key === undefined) {\n return store;\n } else if (store) {\n if (key in store) {\n return store[key];\n }\n }\n /* $.setData() */\n\n } else if (key !== undefined) {\n var setId = node[$.expando] || (node[$.expando] = ++$.uuid);\n cache[setId] = cache[setId] || {};\n cache[setId][key] = value;\n return value;\n }\n };\n /* Custom */\n\n\n $.removeData = function (node, keys) {\n var id = node[$.expando],\n store = id && cache[id];\n\n if (store) {\n // Cleanup the entire store if no keys are provided.\n if (!keys) {\n delete cache[id];\n } else {\n $.each(keys, function (_, key) {\n delete store[key];\n });\n }\n }\n };\n /* jQuery */\n\n\n $.extend = function () {\n var src,\n copyIsArray,\n copy,\n name,\n options,\n clone,\n target = arguments[0] || {},\n i = 1,\n length = arguments.length,\n deep = false;\n\n if (typeof target === \"boolean\") {\n deep = target;\n target = arguments[i] || {};\n i++;\n }\n\n if (_typeof(target) !== \"object\" && $.type(target) !== \"function\") {\n target = {};\n }\n\n if (i === length) {\n target = this;\n i--;\n }\n\n for (; i < length; i++) {\n if (options = arguments[i]) {\n for (name in options) {\n if (!options.hasOwnProperty(name)) {\n continue;\n }\n\n src = target[name];\n copy = options[name];\n\n if (target === copy) {\n continue;\n }\n\n if (deep && copy && ($.isPlainObject(copy) || (copyIsArray = $.isArray(copy)))) {\n if (copyIsArray) {\n copyIsArray = false;\n clone = src && $.isArray(src) ? src : [];\n } else {\n clone = src && $.isPlainObject(src) ? src : {};\n }\n\n target[name] = $.extend(deep, clone, copy);\n } else if (copy !== undefined) {\n target[name] = copy;\n }\n }\n }\n }\n\n return target;\n };\n /* jQuery 1.4.3 */\n\n\n $.queue = function (elem, type, data) {\n function $makeArray(arr, results) {\n var ret = results || [];\n\n if (arr) {\n if (isArraylike(Object(arr))) {\n /* $.merge */\n (function (first, second) {\n var len = +second.length,\n j = 0,\n i = first.length;\n\n while (j < len) {\n first[i++] = second[j++];\n }\n\n if (len !== len) {\n while (second[j] !== undefined) {\n first[i++] = second[j++];\n }\n }\n\n first.length = i;\n return first;\n })(ret, typeof arr === \"string\" ? [arr] : arr);\n } else {\n [].push.call(ret, arr);\n }\n }\n\n return ret;\n }\n\n if (!elem) {\n return;\n }\n\n type = (type || \"fx\") + \"queue\";\n var q = $.data(elem, type);\n\n if (!data) {\n return q || [];\n }\n\n if (!q || $.isArray(data)) {\n q = $.data(elem, type, $makeArray(data));\n } else {\n q.push(data);\n }\n\n return q;\n };\n /* jQuery 1.4.3 */\n\n\n $.dequeue = function (elems, type) {\n /* Custom: Embed element iteration. */\n $.each(elems.nodeType ? [elems] : elems, function (i, elem) {\n type = type || \"fx\";\n var queue = $.queue(elem, type),\n fn = queue.shift();\n\n if (fn === \"inprogress\") {\n fn = queue.shift();\n }\n\n if (fn) {\n if (type === \"fx\") {\n queue.unshift(\"inprogress\");\n }\n\n fn.call(elem, function () {\n $.dequeue(elem, type);\n });\n }\n });\n };\n /******************\r\n $.fn Methods\r\n ******************/\n\n /* jQuery */\n\n\n $.fn = $.prototype = {\n init: function init(selector) {\n /* Just return the element wrapped inside an array; don't proceed with the actual jQuery node wrapping process. */\n if (selector.nodeType) {\n this[0] = selector;\n return this;\n } else {\n throw new Error(\"Not a DOM node.\");\n }\n },\n offset: function offset() {\n /* jQuery altered code: Dropped disconnected DOM node checking. */\n var box = this[0].getBoundingClientRect ? this[0].getBoundingClientRect() : {\n top: 0,\n left: 0\n };\n return {\n top: box.top + (window.pageYOffset || document.scrollTop || 0) - (document.clientTop || 0),\n left: box.left + (window.pageXOffset || document.scrollLeft || 0) - (document.clientLeft || 0)\n };\n },\n position: function position() {\n /* jQuery */\n function offsetParentFn(elem) {\n var offsetParent = elem.offsetParent;\n\n while (offsetParent && offsetParent.nodeName.toLowerCase() !== \"html\" && offsetParent.style && offsetParent.style.position.toLowerCase() === \"static\") {\n offsetParent = offsetParent.offsetParent;\n }\n\n return offsetParent || document;\n }\n /* Zepto */\n\n\n var elem = this[0],\n offsetParent = offsetParentFn(elem),\n offset = this.offset(),\n parentOffset = /^(?:body|html)$/i.test(offsetParent.nodeName) ? {\n top: 0,\n left: 0\n } : $(offsetParent).offset();\n offset.top -= parseFloat(elem.style.marginTop) || 0;\n offset.left -= parseFloat(elem.style.marginLeft) || 0;\n\n if (offsetParent.style) {\n parentOffset.top += parseFloat(offsetParent.style.borderTopWidth) || 0;\n parentOffset.left += parseFloat(offsetParent.style.borderLeftWidth) || 0;\n }\n\n return {\n top: offset.top - parentOffset.top,\n left: offset.left - parentOffset.left\n };\n }\n };\n /**********************\r\n Private Variables\r\n **********************/\n\n /* For $.data() */\n\n var cache = {};\n $.expando = \"velocity\" + new Date().getTime();\n $.uuid = 0;\n /* For $.queue() */\n\n var class2type = {},\n hasOwn = class2type.hasOwnProperty,\n toString = class2type.toString;\n var types = \"Boolean Number String Function Array Date RegExp Object Error\".split(\" \");\n\n for (var i = 0; i < types.length; i++) {\n class2type[\"[object \" + types[i] + \"]\"] = types[i].toLowerCase();\n }\n /* Makes $(node) possible, without having to call init. */\n\n\n $.fn.init.prototype = $.fn;\n /* Globalize Velocity onto the window, and assign its Utilities property. */\n\n window.Velocity = {\n Utilities: $\n };\n})(window);\n/******************\r\n Velocity.js\r\n ******************/\n\n\n(function (factory) {\n \"use strict\";\n /* CommonJS module. */\n\n if ((typeof module === \"undefined\" ? \"undefined\" : _typeof(module)) === \"object\" && _typeof(module.exports) === \"object\") {\n module.exports = factory();\n /* AMD module. */\n } else if (typeof define === \"function\" && define.amd) {\n define(factory);\n /* Browser globals. */\n } else {\n factory();\n }\n})(function () {\n \"use strict\";\n\n return function (global, window, document, undefined) {\n /***************\r\n Summary\r\n ***************/\n\n /*\r\n - CSS: CSS stack that works independently from the rest of Velocity.\r\n - animate(): Core animation method that iterates over the targeted elements and queues the incoming call onto each element individually.\r\n - Pre-Queueing: Prepare the element for animation by instantiating its data cache and processing the call's options.\r\n - Queueing: The logic that runs once the call has reached its point of execution in the element's $.queue() stack.\r\n Most logic is placed here to avoid risking it becoming stale (if the element's properties have changed).\r\n - Pushing: Consolidation of the tween data followed by its push onto the global in-progress calls container.\r\n - tick(): The single requestAnimationFrame loop responsible for tweening all in-progress calls.\r\n - completeCall(): Handles the cleanup process for each Velocity call.\r\n */\n\n /*********************\r\n Helper Functions\r\n *********************/\n\n /* IE detection. Gist: https://gist.github.com/julianshapiro/9098609 */\n var IE = function () {\n if (document.documentMode) {\n return document.documentMode;\n } else {\n for (var i = 7; i > 4; i--) {\n var div = document.createElement(\"div\");\n div.innerHTML = \"\";\n\n if (div.getElementsByTagName(\"span\").length) {\n div = null;\n return i;\n }\n }\n }\n\n return undefined;\n }();\n /* rAF shim. Gist: https://gist.github.com/julianshapiro/9497513 */\n\n\n var rAFShim = function () {\n var timeLast = 0;\n return window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function (callback) {\n var timeCurrent = new Date().getTime(),\n timeDelta;\n /* Dynamically set delay on a per-tick basis to match 60fps. */\n\n /* Technique by Erik Moller. MIT license: https://gist.github.com/paulirish/1579671 */\n\n timeDelta = Math.max(0, 16 - (timeCurrent - timeLast));\n timeLast = timeCurrent + timeDelta;\n return setTimeout(function () {\n callback(timeCurrent + timeDelta);\n }, timeDelta);\n };\n }();\n\n var performance = function () {\n var perf = window.performance || {};\n\n if (typeof perf.now !== \"function\") {\n var nowOffset = perf.timing && perf.timing.navigationStart ? perf.timing.navigationStart : new Date().getTime();\n\n perf.now = function () {\n return new Date().getTime() - nowOffset;\n };\n }\n\n return perf;\n }();\n /* Array compacting. Copyright Lo-Dash. MIT License: https://github.com/lodash/lodash/blob/master/LICENSE.txt */\n\n\n function compactSparseArray(array) {\n var index = -1,\n length = array ? array.length : 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n\n if (value) {\n result.push(value);\n }\n }\n\n return result;\n }\n /**\r\n * Shim for \"fixing\" IE's lack of support (IE < 9) for applying slice\r\n * on host objects like NamedNodeMap, NodeList, and HTMLCollection\r\n * (technically, since host objects have been implementation-dependent,\r\n * at least before ES2015, IE hasn't needed to work this way).\r\n * Also works on strings, fixes IE < 9 to allow an explicit undefined\r\n * for the 2nd argument (as in Firefox), and prevents errors when\r\n * called on other DOM objects.\r\n */\n\n\n var _slice = function () {\n var slice = Array.prototype.slice;\n\n try {\n // Can't be used with DOM elements in IE < 9\n slice.call(document.documentElement);\n return slice;\n } catch (e) {\n // Fails in IE < 9\n // This will work for genuine arrays, array-like objects, \n // NamedNodeMap (attributes, entities, notations),\n // NodeList (e.g., getElementsByTagName), HTMLCollection (e.g., childNodes),\n // and will not fail on other DOM objects (as do DOM elements in IE < 9)\n return function (begin, end) {\n var len = this.length;\n\n if (typeof begin !== \"number\") {\n begin = 0;\n } // IE < 9 gets unhappy with an undefined end argument\n\n\n if (typeof end !== \"number\") {\n end = len;\n } // For native Array objects, we use the native slice function\n\n\n if (this.slice) {\n return slice.call(this, begin, end);\n } // For array like object we handle it ourselves.\n\n\n var i,\n cloned = [],\n // Handle negative value for \"begin\"\n start = begin >= 0 ? begin : Math.max(0, len + begin),\n // Handle negative value for \"end\"\n upTo = end < 0 ? len + end : Math.min(end, len),\n // Actual expected size of the slice\n size = upTo - start;\n\n if (size > 0) {\n cloned = new Array(size);\n\n if (this.charAt) {\n for (i = 0; i < size; i++) {\n cloned[i] = this.charAt(start + i);\n }\n } else {\n for (i = 0; i < size; i++) {\n cloned[i] = this[start + i];\n }\n }\n }\n\n return cloned;\n };\n }\n }();\n /* .indexOf doesn't exist in IE<9 */\n\n\n var _inArray = function _inArray() {\n if (Array.prototype.includes) {\n return function (arr, val) {\n return arr.includes(val);\n };\n }\n\n if (Array.prototype.indexOf) {\n return function (arr, val) {\n return arr.indexOf(val) >= 0;\n };\n }\n\n return function (arr, val) {\n for (var i = 0; i < arr.length; i++) {\n if (arr[i] === val) {\n return true;\n }\n }\n\n return false;\n };\n };\n\n function sanitizeElements(elements) {\n /* Unwrap jQuery/Zepto objects. */\n if (Type.isWrapped(elements)) {\n elements = _slice.call(elements);\n /* Wrap a single element in an array so that $.each() can iterate with the element instead of its node's children. */\n } else if (Type.isNode(elements)) {\n elements = [elements];\n }\n\n return elements;\n }\n\n var Type = {\n isNumber: function isNumber(variable) {\n return typeof variable === \"number\";\n },\n isString: function isString(variable) {\n return typeof variable === \"string\";\n },\n isArray: Array.isArray || function (variable) {\n return Object.prototype.toString.call(variable) === \"[object Array]\";\n },\n isFunction: function isFunction(variable) {\n return Object.prototype.toString.call(variable) === \"[object Function]\";\n },\n isNode: function isNode(variable) {\n return variable && variable.nodeType;\n },\n\n /* Determine if variable is an array-like wrapped jQuery, Zepto or similar element, or even a NodeList etc. */\n\n /* NOTE: HTMLFormElements also have a length. */\n isWrapped: function isWrapped(variable) {\n return variable && variable !== window && Type.isNumber(variable.length) && !Type.isString(variable) && !Type.isFunction(variable) && !Type.isNode(variable) && (variable.length === 0 || Type.isNode(variable[0]));\n },\n isSVG: function isSVG(variable) {\n return window.SVGElement && variable instanceof window.SVGElement;\n },\n isEmptyObject: function isEmptyObject(variable) {\n for (var name in variable) {\n if (variable.hasOwnProperty(name)) {\n return false;\n }\n }\n\n return true;\n }\n };\n /*****************\r\n Dependencies\r\n *****************/\n\n var $,\n isJQuery = false;\n\n if (global.fn && global.fn.jquery) {\n $ = global;\n isJQuery = true;\n } else {\n $ = window.Velocity.Utilities;\n }\n\n if (IE <= 8 && !isJQuery) {\n throw new Error(\"Velocity: IE8 and below require jQuery to be loaded before Velocity.\");\n } else if (IE <= 7) {\n /* Revert to jQuery's $.animate(), and lose Velocity's extra features. */\n jQuery.fn.velocity = jQuery.fn.animate;\n /* Now that $.fn.velocity is aliased, abort this Velocity declaration. */\n\n return;\n }\n /*****************\r\n Constants\r\n *****************/\n\n\n var DURATION_DEFAULT = 400,\n EASING_DEFAULT = \"swing\";\n /*************\r\n State\r\n *************/\n\n var Velocity = {\n /* Container for page-wide Velocity state data. */\n State: {\n /* Detect mobile devices to determine if mobileHA should be turned on. */\n isMobile: /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(window.navigator.userAgent),\n\n /* The mobileHA option's behavior changes on older Android devices (Gingerbread, versions 2.3.3-2.3.7). */\n isAndroid: /Android/i.test(window.navigator.userAgent),\n isGingerbread: /Android 2\\.3\\.[3-7]/i.test(window.navigator.userAgent),\n isChrome: window.chrome,\n isFirefox: /Firefox/i.test(window.navigator.userAgent),\n\n /* Create a cached element for re-use when checking for CSS property prefixes. */\n prefixElement: document.createElement(\"div\"),\n\n /* Cache every prefix match to avoid repeating lookups. */\n prefixMatches: {},\n\n /* Cache the anchor used for animating window scrolling. */\n scrollAnchor: null,\n\n /* Cache the browser-specific property names associated with the scroll anchor. */\n scrollPropertyLeft: null,\n scrollPropertyTop: null,\n\n /* Keep track of whether our RAF tick is running. */\n isTicking: false,\n\n /* Container for every in-progress call to Velocity. */\n calls: [],\n delayedElements: {\n count: 0\n }\n },\n\n /* Velocity's custom CSS stack. Made global for unit testing. */\n CSS: {\n /* Defined below. */\n },\n\n /* A shim of the jQuery utility functions used by Velocity -- provided by Velocity's optional jQuery shim. */\n Utilities: $,\n\n /* Container for the user's custom animation redirects that are referenced by name in place of the properties map argument. */\n Redirects: {\n /* Manually registered by the user. */\n },\n Easings: {\n /* Defined below. */\n },\n\n /* Attempt to use ES6 Promises by default. Users can override this with a third-party promises library. */\n Promise: window.Promise,\n\n /* Velocity option defaults, which can be overriden by the user. */\n defaults: {\n queue: \"\",\n duration: DURATION_DEFAULT,\n easing: EASING_DEFAULT,\n begin: undefined,\n complete: undefined,\n progress: undefined,\n display: undefined,\n visibility: undefined,\n loop: false,\n delay: false,\n mobileHA: true,\n\n /* Advanced: Set to false to prevent property values from being cached between consecutive Velocity-initiated chain calls. */\n _cacheValues: true,\n\n /* Advanced: Set to false if the promise should always resolve on empty element lists. */\n promiseRejectEmpty: true\n },\n\n /* A design goal of Velocity is to cache data wherever possible in order to avoid DOM requerying. Accordingly, each element has a data cache. */\n init: function init(element) {\n $.data(element, \"velocity\", {\n /* Store whether this is an SVG element, since its properties are retrieved and updated differently than standard HTML elements. */\n isSVG: Type.isSVG(element),\n\n /* Keep track of whether the element is currently being animated by Velocity.\r\n This is used to ensure that property values are not transferred between non-consecutive (stale) calls. */\n isAnimating: false,\n\n /* A reference to the element's live computedStyle object. Learn more here: https://developer.mozilla.org/en/docs/Web/API/window.getComputedStyle */\n computedStyle: null,\n\n /* Tween data is cached for each animation on the element so that data can be passed across calls --\r\n in particular, end values are used as subsequent start values in consecutive Velocity calls. */\n tweensContainer: null,\n\n /* The full root property values of each CSS hook being animated on this element are cached so that:\r\n 1) Concurrently-animating hooks sharing the same root can have their root values' merged into one while tweening.\r\n 2) Post-hook-injection root values can be transferred over to consecutively chained Velocity calls as starting root values. */\n rootPropertyValueCache: {},\n\n /* A cache for transform updates, which must be manually flushed via CSS.flushTransformCache(). */\n transformCache: {}\n });\n },\n\n /* A parallel to jQuery's $.css(), used for getting/setting Velocity's hooked CSS properties. */\n hook: null,\n\n /* Defined below. */\n\n /* Velocity-wide animation time remapping for testing purposes. */\n mock: false,\n version: {\n major: 1,\n minor: 5,\n patch: 2\n },\n\n /* Set to 1 or 2 (most verbose) to output debug info to console. */\n debug: false,\n\n /* Use rAF high resolution timestamp when available */\n timestamp: true,\n\n /* Pause all animations */\n pauseAll: function pauseAll(queueName) {\n var currentTime = new Date().getTime();\n $.each(Velocity.State.calls, function (i, activeCall) {\n if (activeCall) {\n /* If we have a queueName and this call is not on that queue, skip */\n if (queueName !== undefined && (activeCall[2].queue !== queueName || activeCall[2].queue === false)) {\n return true;\n }\n /* Set call to paused */\n\n\n activeCall[5] = {\n resume: false\n };\n }\n });\n /* Pause timers on any currently delayed calls */\n\n $.each(Velocity.State.delayedElements, function (k, element) {\n if (!element) {\n return;\n }\n\n pauseDelayOnElement(element, currentTime);\n });\n },\n\n /* Resume all animations */\n resumeAll: function resumeAll(queueName) {\n var currentTime = new Date().getTime();\n $.each(Velocity.State.calls, function (i, activeCall) {\n if (activeCall) {\n /* If we have a queueName and this call is not on that queue, skip */\n if (queueName !== undefined && (activeCall[2].queue !== queueName || activeCall[2].queue === false)) {\n return true;\n }\n /* Set call to resumed if it was paused */\n\n\n if (activeCall[5]) {\n activeCall[5].resume = true;\n }\n }\n });\n /* Resume timers on any currently delayed calls */\n\n $.each(Velocity.State.delayedElements, function (k, element) {\n if (!element) {\n return;\n }\n\n resumeDelayOnElement(element, currentTime);\n });\n }\n };\n /* Retrieve the appropriate scroll anchor and property name for the browser: https://developer.mozilla.org/en-US/docs/Web/API/Window.scrollY */\n\n if (window.pageYOffset !== undefined) {\n Velocity.State.scrollAnchor = window;\n Velocity.State.scrollPropertyLeft = \"pageXOffset\";\n Velocity.State.scrollPropertyTop = \"pageYOffset\";\n } else {\n Velocity.State.scrollAnchor = document.documentElement || document.body.parentNode || document.body;\n Velocity.State.scrollPropertyLeft = \"scrollLeft\";\n Velocity.State.scrollPropertyTop = \"scrollTop\";\n }\n /* Shorthand alias for jQuery's $.data() utility. */\n\n\n function Data(element) {\n /* Hardcode a reference to the plugin name. */\n var response = $.data(element, \"velocity\");\n /* jQuery <=1.4.2 returns null instead of undefined when no match is found. We normalize this behavior. */\n\n return response === null ? undefined : response;\n }\n /**************\r\n Delay Timer\r\n **************/\n\n\n function pauseDelayOnElement(element, currentTime) {\n /* Check for any delay timers, and pause the set timeouts (while preserving time data)\r\n to be resumed when the \"resume\" command is issued */\n var data = Data(element);\n\n if (data && data.delayTimer && !data.delayPaused) {\n data.delayRemaining = data.delay - currentTime + data.delayBegin;\n data.delayPaused = true;\n clearTimeout(data.delayTimer.setTimeout);\n }\n }\n\n function resumeDelayOnElement(element, currentTime) {\n /* Check for any paused timers and resume */\n var data = Data(element);\n\n if (data && data.delayTimer && data.delayPaused) {\n /* If the element was mid-delay, re initiate the timeout with the remaining delay */\n data.delayPaused = false;\n data.delayTimer.setTimeout = setTimeout(data.delayTimer.next, data.delayRemaining);\n }\n }\n /**************\r\n Easing\r\n **************/\n\n /* Step easing generator. */\n\n\n function generateStep(steps) {\n return function (p) {\n return Math.round(p * steps) * (1 / steps);\n };\n }\n /* Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License */\n\n\n function generateBezier(mX1, mY1, mX2, mY2) {\n var NEWTON_ITERATIONS = 4,\n NEWTON_MIN_SLOPE = 0.001,\n SUBDIVISION_PRECISION = 0.0000001,\n SUBDIVISION_MAX_ITERATIONS = 10,\n kSplineTableSize = 11,\n kSampleStepSize = 1.0 / (kSplineTableSize - 1.0),\n float32ArraySupported = (\"Float32Array\" in window);\n /* Must contain four arguments. */\n\n if (arguments.length !== 4) {\n return false;\n }\n /* Arguments must be numbers. */\n\n\n for (var i = 0; i < 4; ++i) {\n if (typeof arguments[i] !== \"number\" || isNaN(arguments[i]) || !isFinite(arguments[i])) {\n return false;\n }\n }\n /* X values must be in the [0, 1] range. */\n\n\n mX1 = Math.min(mX1, 1);\n mX2 = Math.min(mX2, 1);\n mX1 = Math.max(mX1, 0);\n mX2 = Math.max(mX2, 0);\n var mSampleValues = float32ArraySupported ? new Float32Array(kSplineTableSize) : new Array(kSplineTableSize);\n\n function A(aA1, aA2) {\n return 1.0 - 3.0 * aA2 + 3.0 * aA1;\n }\n\n function B(aA1, aA2) {\n return 3.0 * aA2 - 6.0 * aA1;\n }\n\n function C(aA1) {\n return 3.0 * aA1;\n }\n\n function calcBezier(aT, aA1, aA2) {\n return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT;\n }\n\n function getSlope(aT, aA1, aA2) {\n return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1);\n }\n\n function newtonRaphsonIterate(aX, aGuessT) {\n for (var i = 0; i < NEWTON_ITERATIONS; ++i) {\n var currentSlope = getSlope(aGuessT, mX1, mX2);\n\n if (currentSlope === 0.0) {\n return aGuessT;\n }\n\n var currentX = calcBezier(aGuessT, mX1, mX2) - aX;\n aGuessT -= currentX / currentSlope;\n }\n\n return aGuessT;\n }\n\n function calcSampleValues() {\n for (var i = 0; i < kSplineTableSize; ++i) {\n mSampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2);\n }\n }\n\n function binarySubdivide(aX, aA, aB) {\n var currentX,\n currentT,\n i = 0;\n\n do {\n currentT = aA + (aB - aA) / 2.0;\n currentX = calcBezier(currentT, mX1, mX2) - aX;\n\n if (currentX > 0.0) {\n aB = currentT;\n } else {\n aA = currentT;\n }\n } while (Math.abs(currentX) > SUBDIVISION_PRECISION && ++i < SUBDIVISION_MAX_ITERATIONS);\n\n return currentT;\n }\n\n function getTForX(aX) {\n var intervalStart = 0.0,\n currentSample = 1,\n lastSample = kSplineTableSize - 1;\n\n for (; currentSample !== lastSample && mSampleValues[currentSample] <= aX; ++currentSample) {\n intervalStart += kSampleStepSize;\n }\n\n --currentSample;\n var dist = (aX - mSampleValues[currentSample]) / (mSampleValues[currentSample + 1] - mSampleValues[currentSample]),\n guessForT = intervalStart + dist * kSampleStepSize,\n initialSlope = getSlope(guessForT, mX1, mX2);\n\n if (initialSlope >= NEWTON_MIN_SLOPE) {\n return newtonRaphsonIterate(aX, guessForT);\n } else if (initialSlope === 0.0) {\n return guessForT;\n } else {\n return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize);\n }\n }\n\n var _precomputed = false;\n\n function precompute() {\n _precomputed = true;\n\n if (mX1 !== mY1 || mX2 !== mY2) {\n calcSampleValues();\n }\n }\n\n var f = function f(aX) {\n if (!_precomputed) {\n precompute();\n }\n\n if (mX1 === mY1 && mX2 === mY2) {\n return aX;\n }\n\n if (aX === 0) {\n return 0;\n }\n\n if (aX === 1) {\n return 1;\n }\n\n return calcBezier(getTForX(aX), mY1, mY2);\n };\n\n f.getControlPoints = function () {\n return [{\n x: mX1,\n y: mY1\n }, {\n x: mX2,\n y: mY2\n }];\n };\n\n var str = \"generateBezier(\" + [mX1, mY1, mX2, mY2] + \")\";\n\n f.toString = function () {\n return str;\n };\n\n return f;\n }\n /* Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */\n\n /* Given a tension, friction, and duration, a simulation at 60FPS will first run without a defined duration in order to calculate the full path. A second pass\r\n then adjusts the time delta -- using the relation between actual time and duration -- to calculate the path for the duration-constrained animation. */\n\n\n var generateSpringRK4 = function () {\n function springAccelerationForState(state) {\n return -state.tension * state.x - state.friction * state.v;\n }\n\n function springEvaluateStateWithDerivative(initialState, dt, derivative) {\n var state = {\n x: initialState.x + derivative.dx * dt,\n v: initialState.v + derivative.dv * dt,\n tension: initialState.tension,\n friction: initialState.friction\n };\n return {\n dx: state.v,\n dv: springAccelerationForState(state)\n };\n }\n\n function springIntegrateState(state, dt) {\n var a = {\n dx: state.v,\n dv: springAccelerationForState(state)\n },\n b = springEvaluateStateWithDerivative(state, dt * 0.5, a),\n c = springEvaluateStateWithDerivative(state, dt * 0.5, b),\n d = springEvaluateStateWithDerivative(state, dt, c),\n dxdt = 1.0 / 6.0 * (a.dx + 2.0 * (b.dx + c.dx) + d.dx),\n dvdt = 1.0 / 6.0 * (a.dv + 2.0 * (b.dv + c.dv) + d.dv);\n state.x = state.x + dxdt * dt;\n state.v = state.v + dvdt * dt;\n return state;\n }\n\n return function springRK4Factory(tension, friction, duration) {\n var initState = {\n x: -1,\n v: 0,\n tension: null,\n friction: null\n },\n path = [0],\n time_lapsed = 0,\n tolerance = 1 / 10000,\n DT = 16 / 1000,\n have_duration,\n dt,\n last_state;\n tension = parseFloat(tension) || 500;\n friction = parseFloat(friction) || 20;\n duration = duration || null;\n initState.tension = tension;\n initState.friction = friction;\n have_duration = duration !== null;\n /* Calculate the actual time it takes for this animation to complete with the provided conditions. */\n\n if (have_duration) {\n /* Run the simulation without a duration. */\n time_lapsed = springRK4Factory(tension, friction);\n /* Compute the adjusted time delta. */\n\n dt = time_lapsed / duration * DT;\n } else {\n dt = DT;\n }\n\n while (true) {\n /* Next/step function .*/\n last_state = springIntegrateState(last_state || initState, dt);\n /* Store the position. */\n\n path.push(1 + last_state.x);\n time_lapsed += 16;\n /* If the change threshold is reached, break. */\n\n if (!(Math.abs(last_state.x) > tolerance && Math.abs(last_state.v) > tolerance)) {\n break;\n }\n }\n /* If duration is not defined, return the actual time required for completing this animation. Otherwise, return a closure that holds the\r\n computed path and returns a snapshot of the position according to a given percentComplete. */\n\n\n return !have_duration ? time_lapsed : function (percentComplete) {\n return path[percentComplete * (path.length - 1) | 0];\n };\n };\n }();\n /* jQuery easings. */\n\n\n Velocity.Easings = {\n linear: function linear(p) {\n return p;\n },\n swing: function swing(p) {\n return 0.5 - Math.cos(p * Math.PI) / 2;\n },\n\n /* Bonus \"spring\" easing, which is a less exaggerated version of easeInOutElastic. */\n spring: function spring(p) {\n return 1 - Math.cos(p * 4.5 * Math.PI) * Math.exp(-p * 6);\n }\n };\n /* CSS3 and Robert Penner easings. */\n\n $.each([[\"ease\", [0.25, 0.1, 0.25, 1.0]], [\"ease-in\", [0.42, 0.0, 1.00, 1.0]], [\"ease-out\", [0.00, 0.0, 0.58, 1.0]], [\"ease-in-out\", [0.42, 0.0, 0.58, 1.0]], [\"easeInSine\", [0.47, 0, 0.745, 0.715]], [\"easeOutSine\", [0.39, 0.575, 0.565, 1]], [\"easeInOutSine\", [0.445, 0.05, 0.55, 0.95]], [\"easeInQuad\", [0.55, 0.085, 0.68, 0.53]], [\"easeOutQuad\", [0.25, 0.46, 0.45, 0.94]], [\"easeInOutQuad\", [0.455, 0.03, 0.515, 0.955]], [\"easeInCubic\", [0.55, 0.055, 0.675, 0.19]], [\"easeOutCubic\", [0.215, 0.61, 0.355, 1]], [\"easeInOutCubic\", [0.645, 0.045, 0.355, 1]], [\"easeInQuart\", [0.895, 0.03, 0.685, 0.22]], [\"easeOutQuart\", [0.165, 0.84, 0.44, 1]], [\"easeInOutQuart\", [0.77, 0, 0.175, 1]], [\"easeInQuint\", [0.755, 0.05, 0.855, 0.06]], [\"easeOutQuint\", [0.23, 1, 0.32, 1]], [\"easeInOutQuint\", [0.86, 0, 0.07, 1]], [\"easeInExpo\", [0.95, 0.05, 0.795, 0.035]], [\"easeOutExpo\", [0.19, 1, 0.22, 1]], [\"easeInOutExpo\", [1, 0, 0, 1]], [\"easeInCirc\", [0.6, 0.04, 0.98, 0.335]], [\"easeOutCirc\", [0.075, 0.82, 0.165, 1]], [\"easeInOutCirc\", [0.785, 0.135, 0.15, 0.86]]], function (i, easingArray) {\n Velocity.Easings[easingArray[0]] = generateBezier.apply(null, easingArray[1]);\n });\n /* Determine the appropriate easing type given an easing input. */\n\n function getEasing(value, duration) {\n var easing = value;\n /* The easing option can either be a string that references a pre-registered easing,\r\n or it can be a two-/four-item array of integers to be converted into a bezier/spring function. */\n\n if (Type.isString(value)) {\n /* Ensure that the easing has been assigned to jQuery's Velocity.Easings object. */\n if (!Velocity.Easings[value]) {\n easing = false;\n }\n } else if (Type.isArray(value) && value.length === 1) {\n easing = generateStep.apply(null, value);\n } else if (Type.isArray(value) && value.length === 2) {\n /* springRK4 must be passed the animation's duration. */\n\n /* Note: If the springRK4 array contains non-numbers, generateSpringRK4() returns an easing\r\n function generated with default tension and friction values. */\n easing = generateSpringRK4.apply(null, value.concat([duration]));\n } else if (Type.isArray(value) && value.length === 4) {\n /* Note: If the bezier array contains non-numbers, generateBezier() returns false. */\n easing = generateBezier.apply(null, value);\n } else {\n easing = false;\n }\n /* Revert to the Velocity-wide default easing type, or fall back to \"swing\" (which is also jQuery's default)\r\n if the Velocity-wide default has been incorrectly modified. */\n\n\n if (easing === false) {\n if (Velocity.Easings[Velocity.defaults.easing]) {\n easing = Velocity.defaults.easing;\n } else {\n easing = EASING_DEFAULT;\n }\n }\n\n return easing;\n }\n /*****************\r\n CSS Stack\r\n *****************/\n\n /* The CSS object is a highly condensed and performant CSS stack that fully replaces jQuery's.\r\n It handles the validation, getting, and setting of both standard CSS properties and CSS property hooks. */\n\n /* Note: A \"CSS\" shorthand is aliased so that our code is easier to read. */\n\n\n var CSS = Velocity.CSS = {\n /*************\r\n RegEx\r\n *************/\n RegEx: {\n isHex: /^#([A-f\\d]{3}){1,2}$/i,\n\n /* Unwrap a property value's surrounding text, e.g. \"rgba(4, 3, 2, 1)\" ==> \"4, 3, 2, 1\" and \"rect(4px 3px 2px 1px)\" ==> \"4px 3px 2px 1px\". */\n valueUnwrap: /^[A-z]+\\((.*)\\)$/i,\n wrappedValueAlreadyExtracted: /[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,\n\n /* Split a multi-value property into an array of subvalues, e.g. \"rgba(4, 3, 2, 1) 4px 3px 2px 1px\" ==> [ \"rgba(4, 3, 2, 1)\", \"4px\", \"3px\", \"2px\", \"1px\" ]. */\n valueSplit: /([A-z]+\\(.+\\))|(([A-z0-9#-.]+?)(?=\\s|$))/ig\n },\n\n /************\r\n Lists\r\n ************/\n Lists: {\n colors: [\"fill\", \"stroke\", \"stopColor\", \"color\", \"backgroundColor\", \"borderColor\", \"borderTopColor\", \"borderRightColor\", \"borderBottomColor\", \"borderLeftColor\", \"outlineColor\"],\n transformsBase: [\"translateX\", \"translateY\", \"scale\", \"scaleX\", \"scaleY\", \"skewX\", \"skewY\", \"rotateZ\"],\n transforms3D: [\"transformPerspective\", \"translateZ\", \"scaleZ\", \"rotateX\", \"rotateY\"],\n units: [\"%\", // relative\n \"em\", \"ex\", \"ch\", \"rem\", // font relative\n \"vw\", \"vh\", \"vmin\", \"vmax\", // viewport relative\n \"cm\", \"mm\", \"Q\", \"in\", \"pc\", \"pt\", \"px\", // absolute lengths\n \"deg\", \"grad\", \"rad\", \"turn\", // angles\n \"s\", \"ms\" // time\n ],\n colorNames: {\n \"aliceblue\": \"240,248,255\",\n \"antiquewhite\": \"250,235,215\",\n \"aquamarine\": \"127,255,212\",\n \"aqua\": \"0,255,255\",\n \"azure\": \"240,255,255\",\n \"beige\": \"245,245,220\",\n \"bisque\": \"255,228,196\",\n \"black\": \"0,0,0\",\n \"blanchedalmond\": \"255,235,205\",\n \"blueviolet\": \"138,43,226\",\n \"blue\": \"0,0,255\",\n \"brown\": \"165,42,42\",\n \"burlywood\": \"222,184,135\",\n \"cadetblue\": \"95,158,160\",\n \"chartreuse\": \"127,255,0\",\n \"chocolate\": \"210,105,30\",\n \"coral\": \"255,127,80\",\n \"cornflowerblue\": \"100,149,237\",\n \"cornsilk\": \"255,248,220\",\n \"crimson\": \"220,20,60\",\n \"cyan\": \"0,255,255\",\n \"darkblue\": \"0,0,139\",\n \"darkcyan\": \"0,139,139\",\n \"darkgoldenrod\": \"184,134,11\",\n \"darkgray\": \"169,169,169\",\n \"darkgrey\": \"169,169,169\",\n \"darkgreen\": \"0,100,0\",\n \"darkkhaki\": \"189,183,107\",\n \"darkmagenta\": \"139,0,139\",\n \"darkolivegreen\": \"85,107,47\",\n \"darkorange\": \"255,140,0\",\n \"darkorchid\": \"153,50,204\",\n \"darkred\": \"139,0,0\",\n \"darksalmon\": \"233,150,122\",\n \"darkseagreen\": \"143,188,143\",\n \"darkslateblue\": \"72,61,139\",\n \"darkslategray\": \"47,79,79\",\n \"darkturquoise\": \"0,206,209\",\n \"darkviolet\": \"148,0,211\",\n \"deeppink\": \"255,20,147\",\n \"deepskyblue\": \"0,191,255\",\n \"dimgray\": \"105,105,105\",\n \"dimgrey\": \"105,105,105\",\n \"dodgerblue\": \"30,144,255\",\n \"firebrick\": \"178,34,34\",\n \"floralwhite\": \"255,250,240\",\n \"forestgreen\": \"34,139,34\",\n \"fuchsia\": \"255,0,255\",\n \"gainsboro\": \"220,220,220\",\n \"ghostwhite\": \"248,248,255\",\n \"gold\": \"255,215,0\",\n \"goldenrod\": \"218,165,32\",\n \"gray\": \"128,128,128\",\n \"grey\": \"128,128,128\",\n \"greenyellow\": \"173,255,47\",\n \"green\": \"0,128,0\",\n \"honeydew\": \"240,255,240\",\n \"hotpink\": \"255,105,180\",\n \"indianred\": \"205,92,92\",\n \"indigo\": \"75,0,130\",\n \"ivory\": \"255,255,240\",\n \"khaki\": \"240,230,140\",\n \"lavenderblush\": \"255,240,245\",\n \"lavender\": \"230,230,250\",\n \"lawngreen\": \"124,252,0\",\n \"lemonchiffon\": \"255,250,205\",\n \"lightblue\": \"173,216,230\",\n \"lightcoral\": \"240,128,128\",\n \"lightcyan\": \"224,255,255\",\n \"lightgoldenrodyellow\": \"250,250,210\",\n \"lightgray\": \"211,211,211\",\n \"lightgrey\": \"211,211,211\",\n \"lightgreen\": \"144,238,144\",\n \"lightpink\": \"255,182,193\",\n \"lightsalmon\": \"255,160,122\",\n \"lightseagreen\": \"32,178,170\",\n \"lightskyblue\": \"135,206,250\",\n \"lightslategray\": \"119,136,153\",\n \"lightsteelblue\": \"176,196,222\",\n \"lightyellow\": \"255,255,224\",\n \"limegreen\": \"50,205,50\",\n \"lime\": \"0,255,0\",\n \"linen\": \"250,240,230\",\n \"magenta\": \"255,0,255\",\n \"maroon\": \"128,0,0\",\n \"mediumaquamarine\": \"102,205,170\",\n \"mediumblue\": \"0,0,205\",\n \"mediumorchid\": \"186,85,211\",\n \"mediumpurple\": \"147,112,219\",\n \"mediumseagreen\": \"60,179,113\",\n \"mediumslateblue\": \"123,104,238\",\n \"mediumspringgreen\": \"0,250,154\",\n \"mediumturquoise\": \"72,209,204\",\n \"mediumvioletred\": \"199,21,133\",\n \"midnightblue\": \"25,25,112\",\n \"mintcream\": \"245,255,250\",\n \"mistyrose\": \"255,228,225\",\n \"moccasin\": \"255,228,181\",\n \"navajowhite\": \"255,222,173\",\n \"navy\": \"0,0,128\",\n \"oldlace\": \"253,245,230\",\n \"olivedrab\": \"107,142,35\",\n \"olive\": \"128,128,0\",\n \"orangered\": \"255,69,0\",\n \"orange\": \"255,165,0\",\n \"orchid\": \"218,112,214\",\n \"palegoldenrod\": \"238,232,170\",\n \"palegreen\": \"152,251,152\",\n \"paleturquoise\": \"175,238,238\",\n \"palevioletred\": \"219,112,147\",\n \"papayawhip\": \"255,239,213\",\n \"peachpuff\": \"255,218,185\",\n \"peru\": \"205,133,63\",\n \"pink\": \"255,192,203\",\n \"plum\": \"221,160,221\",\n \"powderblue\": \"176,224,230\",\n \"purple\": \"128,0,128\",\n \"red\": \"255,0,0\",\n \"rosybrown\": \"188,143,143\",\n \"royalblue\": \"65,105,225\",\n \"saddlebrown\": \"139,69,19\",\n \"salmon\": \"250,128,114\",\n \"sandybrown\": \"244,164,96\",\n \"seagreen\": \"46,139,87\",\n \"seashell\": \"255,245,238\",\n \"sienna\": \"160,82,45\",\n \"silver\": \"192,192,192\",\n \"skyblue\": \"135,206,235\",\n \"slateblue\": \"106,90,205\",\n \"slategray\": \"112,128,144\",\n \"snow\": \"255,250,250\",\n \"springgreen\": \"0,255,127\",\n \"steelblue\": \"70,130,180\",\n \"tan\": \"210,180,140\",\n \"teal\": \"0,128,128\",\n \"thistle\": \"216,191,216\",\n \"tomato\": \"255,99,71\",\n \"turquoise\": \"64,224,208\",\n \"violet\": \"238,130,238\",\n \"wheat\": \"245,222,179\",\n \"whitesmoke\": \"245,245,245\",\n \"white\": \"255,255,255\",\n \"yellowgreen\": \"154,205,50\",\n \"yellow\": \"255,255,0\"\n }\n },\n\n /************\r\n Hooks\r\n ************/\n\n /* Hooks allow a subproperty (e.g. \"boxShadowBlur\") of a compound-value CSS property\r\n (e.g. \"boxShadow: X Y Blur Spread Color\") to be animated as if it were a discrete property. */\n\n /* Note: Beyond enabling fine-grained property animation, hooking is necessary since Velocity only\r\n tweens properties with single numeric values; unlike CSS transitions, Velocity does not interpolate compound-values. */\n Hooks: {\n /********************\r\n Registration\r\n ********************/\n\n /* Templates are a concise way of indicating which subproperties must be individually registered for each compound-value CSS property. */\n\n /* Each template consists of the compound-value's base name, its constituent subproperty names, and those subproperties' default values. */\n templates: {\n \"textShadow\": [\"Color X Y Blur\", \"black 0px 0px 0px\"],\n \"boxShadow\": [\"Color X Y Blur Spread\", \"black 0px 0px 0px 0px\"],\n \"clip\": [\"Top Right Bottom Left\", \"0px 0px 0px 0px\"],\n \"backgroundPosition\": [\"X Y\", \"0% 0%\"],\n \"transformOrigin\": [\"X Y Z\", \"50% 50% 0px\"],\n \"perspectiveOrigin\": [\"X Y\", \"50% 50%\"]\n },\n\n /* A \"registered\" hook is one that has been converted from its template form into a live,\r\n tweenable property. It contains data to associate it with its root property. */\n registered: {\n /* Note: A registered hook looks like this ==> textShadowBlur: [ \"textShadow\", 3 ],\r\n which consists of the subproperty's name, the associated root property's name,\r\n and the subproperty's position in the root's value. */\n },\n\n /* Convert the templates into individual hooks then append them to the registered object above. */\n register: function register() {\n /* Color hooks registration: Colors are defaulted to white -- as opposed to black -- since colors that are\r\n currently set to \"transparent\" default to their respective template below when color-animated,\r\n and white is typically a closer match to transparent than black is. An exception is made for text (\"color\"),\r\n which is almost always set closer to black than white. */\n for (var i = 0; i < CSS.Lists.colors.length; i++) {\n var rgbComponents = CSS.Lists.colors[i] === \"color\" ? \"0 0 0 1\" : \"255 255 255 1\";\n CSS.Hooks.templates[CSS.Lists.colors[i]] = [\"Red Green Blue Alpha\", rgbComponents];\n }\n\n var rootProperty, hookTemplate, hookNames;\n /* In IE, color values inside compound-value properties are positioned at the end the value instead of at the beginning.\r\n Thus, we re-arrange the templates accordingly. */\n\n if (IE) {\n for (rootProperty in CSS.Hooks.templates) {\n if (!CSS.Hooks.templates.hasOwnProperty(rootProperty)) {\n continue;\n }\n\n hookTemplate = CSS.Hooks.templates[rootProperty];\n hookNames = hookTemplate[0].split(\" \");\n var defaultValues = hookTemplate[1].match(CSS.RegEx.valueSplit);\n\n if (hookNames[0] === \"Color\") {\n /* Reposition both the hook's name and its default value to the end of their respective strings. */\n hookNames.push(hookNames.shift());\n defaultValues.push(defaultValues.shift());\n /* Replace the existing template for the hook's root property. */\n\n CSS.Hooks.templates[rootProperty] = [hookNames.join(\" \"), defaultValues.join(\" \")];\n }\n }\n }\n /* Hook registration. */\n\n\n for (rootProperty in CSS.Hooks.templates) {\n if (!CSS.Hooks.templates.hasOwnProperty(rootProperty)) {\n continue;\n }\n\n hookTemplate = CSS.Hooks.templates[rootProperty];\n hookNames = hookTemplate[0].split(\" \");\n\n for (var j in hookNames) {\n if (!hookNames.hasOwnProperty(j)) {\n continue;\n }\n\n var fullHookName = rootProperty + hookNames[j],\n hookPosition = j;\n /* For each hook, register its full name (e.g. textShadowBlur) with its root property (e.g. textShadow)\r\n and the hook's position in its template's default value string. */\n\n CSS.Hooks.registered[fullHookName] = [rootProperty, hookPosition];\n }\n }\n },\n\n /*****************************\r\n Injection and Extraction\r\n *****************************/\n\n /* Look up the root property associated with the hook (e.g. return \"textShadow\" for \"textShadowBlur\"). */\n\n /* Since a hook cannot be set directly (the browser won't recognize it), style updating for hooks is routed through the hook's root property. */\n getRoot: function getRoot(property) {\n var hookData = CSS.Hooks.registered[property];\n\n if (hookData) {\n return hookData[0];\n } else {\n /* If there was no hook match, return the property name untouched. */\n return property;\n }\n },\n getUnit: function getUnit(str, start) {\n var unit = (str.substr(start || 0, 5).match(/^[a-z%]+/) || [])[0] || \"\";\n\n if (unit && _inArray(CSS.Lists.units, unit)) {\n return unit;\n }\n\n return \"\";\n },\n fixColors: function fixColors(str) {\n return str.replace(/(rgba?\\(\\s*)?(\\b[a-z]+\\b)/g, function ($0, $1, $2) {\n if (CSS.Lists.colorNames.hasOwnProperty($2)) {\n return ($1 ? $1 : \"rgba(\") + CSS.Lists.colorNames[$2] + ($1 ? \"\" : \",1)\");\n }\n\n return $1 + $2;\n });\n },\n\n /* Convert any rootPropertyValue, null or otherwise, into a space-delimited list of hook values so that\r\n the targeted hook can be injected or extracted at its standard position. */\n cleanRootPropertyValue: function cleanRootPropertyValue(rootProperty, rootPropertyValue) {\n /* If the rootPropertyValue is wrapped with \"rgb()\", \"clip()\", etc., remove the wrapping to normalize the value before manipulation. */\n if (CSS.RegEx.valueUnwrap.test(rootPropertyValue)) {\n rootPropertyValue = rootPropertyValue.match(CSS.RegEx.valueUnwrap)[1];\n }\n /* If rootPropertyValue is a CSS null-value (from which there's inherently no hook value to extract),\r\n default to the root's default value as defined in CSS.Hooks.templates. */\n\n /* Note: CSS null-values include \"none\", \"auto\", and \"transparent\". They must be converted into their\r\n zero-values (e.g. textShadow: \"none\" ==> textShadow: \"0px 0px 0px black\") for hook manipulation to proceed. */\n\n\n if (CSS.Values.isCSSNullValue(rootPropertyValue)) {\n rootPropertyValue = CSS.Hooks.templates[rootProperty][1];\n }\n\n return rootPropertyValue;\n },\n\n /* Extracted the hook's value from its root property's value. This is used to get the starting value of an animating hook. */\n extractValue: function extractValue(fullHookName, rootPropertyValue) {\n var hookData = CSS.Hooks.registered[fullHookName];\n\n if (hookData) {\n var hookRoot = hookData[0],\n hookPosition = hookData[1];\n rootPropertyValue = CSS.Hooks.cleanRootPropertyValue(hookRoot, rootPropertyValue);\n /* Split rootPropertyValue into its constituent hook values then grab the desired hook at its standard position. */\n\n return rootPropertyValue.toString().match(CSS.RegEx.valueSplit)[hookPosition];\n } else {\n /* If the provided fullHookName isn't a registered hook, return the rootPropertyValue that was passed in. */\n return rootPropertyValue;\n }\n },\n\n /* Inject the hook's value into its root property's value. This is used to piece back together the root property\r\n once Velocity has updated one of its individually hooked values through tweening. */\n injectValue: function injectValue(fullHookName, hookValue, rootPropertyValue) {\n var hookData = CSS.Hooks.registered[fullHookName];\n\n if (hookData) {\n var hookRoot = hookData[0],\n hookPosition = hookData[1],\n rootPropertyValueParts,\n rootPropertyValueUpdated;\n rootPropertyValue = CSS.Hooks.cleanRootPropertyValue(hookRoot, rootPropertyValue);\n /* Split rootPropertyValue into its individual hook values, replace the targeted value with hookValue,\r\n then reconstruct the rootPropertyValue string. */\n\n rootPropertyValueParts = rootPropertyValue.toString().match(CSS.RegEx.valueSplit);\n rootPropertyValueParts[hookPosition] = hookValue;\n rootPropertyValueUpdated = rootPropertyValueParts.join(\" \");\n return rootPropertyValueUpdated;\n } else {\n /* If the provided fullHookName isn't a registered hook, return the rootPropertyValue that was passed in. */\n return rootPropertyValue;\n }\n }\n },\n\n /*******************\r\n Normalizations\r\n *******************/\n\n /* Normalizations standardize CSS property manipulation by pollyfilling browser-specific implementations (e.g. opacity)\r\n and reformatting special properties (e.g. clip, rgba) to look like standard ones. */\n Normalizations: {\n /* Normalizations are passed a normalization target (either the property's name, its extracted value, or its injected value),\r\n the targeted element (which may need to be queried), and the targeted property value. */\n registered: {\n clip: function clip(type, element, propertyValue) {\n switch (type) {\n case \"name\":\n return \"clip\";\n\n /* Clip needs to be unwrapped and stripped of its commas during extraction. */\n\n case \"extract\":\n var extracted;\n /* If Velocity also extracted this value, skip extraction. */\n\n if (CSS.RegEx.wrappedValueAlreadyExtracted.test(propertyValue)) {\n extracted = propertyValue;\n } else {\n /* Remove the \"rect()\" wrapper. */\n extracted = propertyValue.toString().match(CSS.RegEx.valueUnwrap);\n /* Strip off commas. */\n\n extracted = extracted ? extracted[1].replace(/,(\\s+)?/g, \" \") : propertyValue;\n }\n\n return extracted;\n\n /* Clip needs to be re-wrapped during injection. */\n\n case \"inject\":\n return \"rect(\" + propertyValue + \")\";\n }\n },\n blur: function blur(type, element, propertyValue) {\n switch (type) {\n case \"name\":\n return Velocity.State.isFirefox ? \"filter\" : \"-webkit-filter\";\n\n case \"extract\":\n var extracted = parseFloat(propertyValue);\n /* If extracted is NaN, meaning the value isn't already extracted. */\n\n if (!(extracted || extracted === 0)) {\n var blurComponent = propertyValue.toString().match(/blur\\(([0-9]+[A-z]+)\\)/i);\n /* If the filter string had a blur component, return just the blur value and unit type. */\n\n if (blurComponent) {\n extracted = blurComponent[1];\n /* If the component doesn't exist, default blur to 0. */\n } else {\n extracted = 0;\n }\n }\n\n return extracted;\n\n /* Blur needs to be re-wrapped during injection. */\n\n case \"inject\":\n /* For the blur effect to be fully de-applied, it needs to be set to \"none\" instead of 0. */\n if (!parseFloat(propertyValue)) {\n return \"none\";\n } else {\n return \"blur(\" + propertyValue + \")\";\n }\n\n }\n },\n\n /* <=IE8 do not support the standard opacity property. They use filter:alpha(opacity=INT) instead. */\n opacity: function opacity(type, element, propertyValue) {\n if (IE <= 8) {\n switch (type) {\n case \"name\":\n return \"filter\";\n\n case \"extract\":\n /* <=IE8 return a \"filter\" value of \"alpha(opacity=\\d{1,3})\".\r\n Extract the value and convert it to a decimal value to match the standard CSS opacity property's formatting. */\n var extracted = propertyValue.toString().match(/alpha\\(opacity=(.*)\\)/i);\n\n if (extracted) {\n /* Convert to decimal value. */\n propertyValue = extracted[1] / 100;\n } else {\n /* When extracting opacity, default to 1 since a null value means opacity hasn't been set. */\n propertyValue = 1;\n }\n\n return propertyValue;\n\n case \"inject\":\n /* Opacified elements are required to have their zoom property set to a non-zero value. */\n element.style.zoom = 1;\n /* Setting the filter property on elements with certain font property combinations can result in a\r\n highly unappealing ultra-bolding effect. There's no way to remedy this throughout a tween, but dropping the\r\n value altogether (when opacity hits 1) at leasts ensures that the glitch is gone post-tweening. */\n\n if (parseFloat(propertyValue) >= 1) {\n return \"\";\n } else {\n /* As per the filter property's spec, convert the decimal value to a whole number and wrap the value. */\n return \"alpha(opacity=\" + parseInt(parseFloat(propertyValue) * 100, 10) + \")\";\n }\n\n }\n /* With all other browsers, normalization is not required; return the same values that were passed in. */\n\n } else {\n switch (type) {\n case \"name\":\n return \"opacity\";\n\n case \"extract\":\n return propertyValue;\n\n case \"inject\":\n return propertyValue;\n }\n }\n }\n },\n\n /*****************************\r\n Batched Registrations\r\n *****************************/\n\n /* Note: Batched normalizations extend the CSS.Normalizations.registered object. */\n register: function register() {\n /*****************\r\n Transforms\r\n *****************/\n\n /* Transforms are the subproperties contained by the CSS \"transform\" property. Transforms must undergo normalization\r\n so that they can be referenced in a properties map by their individual names. */\n\n /* Note: When transforms are \"set\", they are actually assigned to a per-element transformCache. When all transform\r\n setting is complete complete, CSS.flushTransformCache() must be manually called to flush the values to the DOM.\r\n Transform setting is batched in this way to improve performance: the transform style only needs to be updated\r\n once when multiple transform subproperties are being animated simultaneously. */\n\n /* Note: IE9 and Android Gingerbread have support for 2D -- but not 3D -- transforms. Since animating unsupported\r\n transform properties results in the browser ignoring the *entire* transform string, we prevent these 3D values\r\n from being normalized for these browsers so that tweening skips these properties altogether\r\n (since it will ignore them as being unsupported by the browser.) */\n if ((!IE || IE > 9) && !Velocity.State.isGingerbread) {\n /* Note: Since the standalone CSS \"perspective\" property and the CSS transform \"perspective\" subproperty\r\n share the same name, the latter is given a unique token within Velocity: \"transformPerspective\". */\n CSS.Lists.transformsBase = CSS.Lists.transformsBase.concat(CSS.Lists.transforms3D);\n }\n\n for (var i = 0; i < CSS.Lists.transformsBase.length; i++) {\n /* Wrap the dynamically generated normalization function in a new scope so that transformName's value is\r\n paired with its respective function. (Otherwise, all functions would take the final for loop's transformName.) */\n (function () {\n var transformName = CSS.Lists.transformsBase[i];\n\n CSS.Normalizations.registered[transformName] = function (type, element, propertyValue) {\n switch (type) {\n /* The normalized property name is the parent \"transform\" property -- the property that is actually set in CSS. */\n case \"name\":\n return \"transform\";\n\n /* Transform values are cached onto a per-element transformCache object. */\n\n case \"extract\":\n /* If this transform has yet to be assigned a value, return its null value. */\n if (Data(element) === undefined || Data(element).transformCache[transformName] === undefined) {\n /* Scale CSS.Lists.transformsBase default to 1 whereas all other transform properties default to 0. */\n return /^scale/i.test(transformName) ? 1 : 0;\n /* When transform values are set, they are wrapped in parentheses as per the CSS spec.\r\n Thus, when extracting their values (for tween calculations), we strip off the parentheses. */\n }\n\n return Data(element).transformCache[transformName].replace(/[()]/g, \"\");\n\n case \"inject\":\n var invalid = false;\n /* If an individual transform property contains an unsupported unit type, the browser ignores the *entire* transform property.\r\n Thus, protect users from themselves by skipping setting for transform values supplied with invalid unit types. */\n\n /* Switch on the base transform type; ignore the axis by removing the last letter from the transform's name. */\n\n switch (transformName.substr(0, transformName.length - 1)) {\n /* Whitelist unit types for each transform. */\n case \"translate\":\n invalid = !/(%|px|em|rem|vw|vh|\\d)$/i.test(propertyValue);\n break;\n\n /* Since an axis-free \"scale\" property is supported as well, a little hack is used here to detect it by chopping off its last letter. */\n\n case \"scal\":\n case \"scale\":\n /* Chrome on Android has a bug in which scaled elements blur if their initial scale\r\n value is below 1 (which can happen with forcefeeding). Thus, we detect a yet-unset scale property\r\n and ensure that its first value is always 1. More info: http://stackoverflow.com/questions/10417890/css3-animations-with-transform-causes-blurred-elements-on-webkit/10417962#10417962 */\n if (Velocity.State.isAndroid && Data(element).transformCache[transformName] === undefined && propertyValue < 1) {\n propertyValue = 1;\n }\n\n invalid = !/(\\d)$/i.test(propertyValue);\n break;\n\n case \"skew\":\n invalid = !/(deg|\\d)$/i.test(propertyValue);\n break;\n\n case \"rotate\":\n invalid = !/(deg|\\d)$/i.test(propertyValue);\n break;\n }\n\n if (!invalid) {\n /* As per the CSS spec, wrap the value in parentheses. */\n Data(element).transformCache[transformName] = \"(\" + propertyValue + \")\";\n }\n /* Although the value is set on the transformCache object, return the newly-updated value for the calling code to process as normal. */\n\n\n return Data(element).transformCache[transformName];\n }\n };\n })();\n }\n /*************\r\n Colors\r\n *************/\n\n /* Since Velocity only animates a single numeric value per property, color animation is achieved by hooking the individual RGBA components of CSS color properties.\r\n Accordingly, color values must be normalized (e.g. \"#ff0000\", \"red\", and \"rgb(255, 0, 0)\" ==> \"255 0 0 1\") so that their components can be injected/extracted by CSS.Hooks logic. */\n\n\n for (var j = 0; j < CSS.Lists.colors.length; j++) {\n /* Wrap the dynamically generated normalization function in a new scope so that colorName's value is paired with its respective function.\r\n (Otherwise, all functions would take the final for loop's colorName.) */\n (function () {\n var colorName = CSS.Lists.colors[j];\n /* Note: In IE<=8, which support rgb but not rgba, color properties are reverted to rgb by stripping off the alpha component. */\n\n CSS.Normalizations.registered[colorName] = function (type, element, propertyValue) {\n switch (type) {\n case \"name\":\n return colorName;\n\n /* Convert all color values into the rgb format. (Old IE can return hex values and color names instead of rgb/rgba.) */\n\n case \"extract\":\n var extracted;\n /* If the color is already in its hookable form (e.g. \"255 255 255 1\") due to having been previously extracted, skip extraction. */\n\n if (CSS.RegEx.wrappedValueAlreadyExtracted.test(propertyValue)) {\n extracted = propertyValue;\n } else {\n var converted,\n colorNames = {\n black: \"rgb(0, 0, 0)\",\n blue: \"rgb(0, 0, 255)\",\n gray: \"rgb(128, 128, 128)\",\n green: \"rgb(0, 128, 0)\",\n red: \"rgb(255, 0, 0)\",\n white: \"rgb(255, 255, 255)\"\n };\n /* Convert color names to rgb. */\n\n if (/^[A-z]+$/i.test(propertyValue)) {\n if (colorNames[propertyValue] !== undefined) {\n converted = colorNames[propertyValue];\n } else {\n /* If an unmatched color name is provided, default to black. */\n converted = colorNames.black;\n }\n /* Convert hex values to rgb. */\n\n } else if (CSS.RegEx.isHex.test(propertyValue)) {\n converted = \"rgb(\" + CSS.Values.hexToRgb(propertyValue).join(\" \") + \")\";\n /* If the provided color doesn't match any of the accepted color formats, default to black. */\n } else if (!/^rgba?\\(/i.test(propertyValue)) {\n converted = colorNames.black;\n }\n /* Remove the surrounding \"rgb/rgba()\" string then replace commas with spaces and strip\r\n repeated spaces (in case the value included spaces to begin with). */\n\n\n extracted = (converted || propertyValue).toString().match(CSS.RegEx.valueUnwrap)[1].replace(/,(\\s+)?/g, \" \");\n }\n /* So long as this isn't <=IE8, add a fourth (alpha) component if it's missing and default it to 1 (visible). */\n\n\n if ((!IE || IE > 8) && extracted.split(\" \").length === 3) {\n extracted += \" 1\";\n }\n\n return extracted;\n\n case \"inject\":\n /* If we have a pattern then it might already have the right values */\n if (/^rgb/.test(propertyValue)) {\n return propertyValue;\n }\n /* If this is IE<=8 and an alpha component exists, strip it off. */\n\n\n if (IE <= 8) {\n if (propertyValue.split(\" \").length === 4) {\n propertyValue = propertyValue.split(/\\s+/).slice(0, 3).join(\" \");\n }\n /* Otherwise, add a fourth (alpha) component if it's missing and default it to 1 (visible). */\n\n } else if (propertyValue.split(\" \").length === 3) {\n propertyValue += \" 1\";\n }\n /* Re-insert the browser-appropriate wrapper(\"rgb/rgba()\"), insert commas, and strip off decimal units\r\n on all values but the fourth (R, G, and B only accept whole numbers). */\n\n\n return (IE <= 8 ? \"rgb\" : \"rgba\") + \"(\" + propertyValue.replace(/\\s+/g, \",\").replace(/\\.(\\d)+(?=,)/g, \"\") + \")\";\n }\n };\n })();\n }\n /**************\r\n Dimensions\r\n **************/\n\n\n function augmentDimension(name, element, wantInner) {\n var isBorderBox = CSS.getPropertyValue(element, \"boxSizing\").toString().toLowerCase() === \"border-box\";\n\n if (isBorderBox === (wantInner || false)) {\n /* in box-sizing mode, the CSS width / height accessors already give the outerWidth / outerHeight. */\n var i,\n value,\n augment = 0,\n sides = name === \"width\" ? [\"Left\", \"Right\"] : [\"Top\", \"Bottom\"],\n fields = [\"padding\" + sides[0], \"padding\" + sides[1], \"border\" + sides[0] + \"Width\", \"border\" + sides[1] + \"Width\"];\n\n for (i = 0; i < fields.length; i++) {\n value = parseFloat(CSS.getPropertyValue(element, fields[i]));\n\n if (!isNaN(value)) {\n augment += value;\n }\n }\n\n return wantInner ? -augment : augment;\n }\n\n return 0;\n }\n\n function getDimension(name, wantInner) {\n return function (type, element, propertyValue) {\n switch (type) {\n case \"name\":\n return name;\n\n case \"extract\":\n return parseFloat(propertyValue) + augmentDimension(name, element, wantInner);\n\n case \"inject\":\n return parseFloat(propertyValue) - augmentDimension(name, element, wantInner) + \"px\";\n }\n };\n }\n\n CSS.Normalizations.registered.innerWidth = getDimension(\"width\", true);\n CSS.Normalizations.registered.innerHeight = getDimension(\"height\", true);\n CSS.Normalizations.registered.outerWidth = getDimension(\"width\");\n CSS.Normalizations.registered.outerHeight = getDimension(\"height\");\n }\n },\n\n /************************\r\n CSS Property Names\r\n ************************/\n Names: {\n /* Camelcase a property name into its JavaScript notation (e.g. \"background-color\" ==> \"backgroundColor\").\r\n Camelcasing is used to normalize property names between and across calls. */\n camelCase: function camelCase(property) {\n return property.replace(/-(\\w)/g, function (match, subMatch) {\n return subMatch.toUpperCase();\n });\n },\n\n /* For SVG elements, some properties (namely, dimensional ones) are GET/SET via the element's HTML attributes (instead of via CSS styles). */\n SVGAttribute: function SVGAttribute(property) {\n var SVGAttributes = \"width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2\";\n /* Certain browsers require an SVG transform to be applied as an attribute. (Otherwise, application via CSS is preferable due to 3D support.) */\n\n if (IE || Velocity.State.isAndroid && !Velocity.State.isChrome) {\n SVGAttributes += \"|transform\";\n }\n\n return new RegExp(\"^(\" + SVGAttributes + \")$\", \"i\").test(property);\n },\n\n /* Determine whether a property should be set with a vendor prefix. */\n\n /* If a prefixed version of the property exists, return it. Otherwise, return the original property name.\r\n If the property is not at all supported by the browser, return a false flag. */\n prefixCheck: function prefixCheck(property) {\n /* If this property has already been checked, return the cached value. */\n if (Velocity.State.prefixMatches[property]) {\n return [Velocity.State.prefixMatches[property], true];\n } else {\n var vendors = [\"\", \"Webkit\", \"Moz\", \"ms\", \"O\"];\n\n for (var i = 0, vendorsLength = vendors.length; i < vendorsLength; i++) {\n var propertyPrefixed;\n\n if (i === 0) {\n propertyPrefixed = property;\n } else {\n /* Capitalize the first letter of the property to conform to JavaScript vendor prefix notation (e.g. webkitFilter). */\n propertyPrefixed = vendors[i] + property.replace(/^\\w/, function (match) {\n return match.toUpperCase();\n });\n }\n /* Check if the browser supports this property as prefixed. */\n\n\n if (Type.isString(Velocity.State.prefixElement.style[propertyPrefixed])) {\n /* Cache the match. */\n Velocity.State.prefixMatches[property] = propertyPrefixed;\n return [propertyPrefixed, true];\n }\n }\n /* If the browser doesn't support this property in any form, include a false flag so that the caller can decide how to proceed. */\n\n\n return [property, false];\n }\n }\n },\n\n /************************\r\n CSS Property Values\r\n ************************/\n Values: {\n /* Hex to RGB conversion. Copyright Tim Down: http://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb */\n hexToRgb: function hexToRgb(hex) {\n var shortformRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i,\n longformRegex = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i,\n rgbParts;\n hex = hex.replace(shortformRegex, function (m, r, g, b) {\n return r + r + g + g + b + b;\n });\n rgbParts = longformRegex.exec(hex);\n return rgbParts ? [parseInt(rgbParts[1], 16), parseInt(rgbParts[2], 16), parseInt(rgbParts[3], 16)] : [0, 0, 0];\n },\n isCSSNullValue: function isCSSNullValue(value) {\n /* The browser defaults CSS values that have not been set to either 0 or one of several possible null-value strings.\r\n Thus, we check for both falsiness and these special strings. */\n\n /* Null-value checking is performed to default the special strings to 0 (for the sake of tweening) or their hook\r\n templates as defined as CSS.Hooks (for the sake of hook injection/extraction). */\n\n /* Note: Chrome returns \"rgba(0, 0, 0, 0)\" for an undefined color whereas IE returns \"transparent\". */\n return !value || /^(none|auto|transparent|(rgba\\(0, ?0, ?0, ?0\\)))$/i.test(value);\n },\n\n /* Retrieve a property's default unit type. Used for assigning a unit type when one is not supplied by the user. */\n getUnitType: function getUnitType(property) {\n if (/^(rotate|skew)/i.test(property)) {\n return \"deg\";\n } else if (/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(property)) {\n /* The above properties are unitless. */\n return \"\";\n } else {\n /* Default to px for all other properties. */\n return \"px\";\n }\n },\n\n /* HTML elements default to an associated display type when they're not set to display:none. */\n\n /* Note: This function is used for correctly setting the non-\"none\" display value in certain Velocity redirects, such as fadeIn/Out. */\n getDisplayType: function getDisplayType(element) {\n var tagName = element && element.tagName.toString().toLowerCase();\n\n if (/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(tagName)) {\n return \"inline\";\n } else if (/^(li)$/i.test(tagName)) {\n return \"list-item\";\n } else if (/^(tr)$/i.test(tagName)) {\n return \"table-row\";\n } else if (/^(table)$/i.test(tagName)) {\n return \"table\";\n } else if (/^(tbody)$/i.test(tagName)) {\n return \"table-row-group\";\n /* Default to \"block\" when no match is found. */\n } else {\n return \"block\";\n }\n },\n\n /* The class add/remove functions are used to temporarily apply a \"velocity-animating\" class to elements while they're animating. */\n addClass: function addClass(element, className) {\n if (element) {\n if (element.classList) {\n element.classList.add(className);\n } else if (Type.isString(element.className)) {\n // Element.className is around 15% faster then set/getAttribute\n element.className += (element.className.length ? \" \" : \"\") + className;\n } else {\n // Work around for IE strict mode animating SVG - and anything else that doesn't behave correctly - the same way jQuery does it\n var currentClass = element.getAttribute(IE <= 7 ? \"className\" : \"class\") || \"\";\n element.setAttribute(\"class\", currentClass + (currentClass ? \" \" : \"\") + className);\n }\n }\n },\n removeClass: function removeClass(element, className) {\n if (element) {\n if (element.classList) {\n element.classList.remove(className);\n } else if (Type.isString(element.className)) {\n // Element.className is around 15% faster then set/getAttribute\n // TODO: Need some jsperf tests on performance - can we get rid of the regex and maybe use split / array manipulation?\n element.className = element.className.toString().replace(new RegExp(\"(^|\\\\s)\" + className.split(\" \").join(\"|\") + \"(\\\\s|$)\", \"gi\"), \" \");\n } else {\n // Work around for IE strict mode animating SVG - and anything else that doesn't behave correctly - the same way jQuery does it\n var currentClass = element.getAttribute(IE <= 7 ? \"className\" : \"class\") || \"\";\n element.setAttribute(\"class\", currentClass.replace(new RegExp(\"(^|\\s)\" + className.split(\" \").join(\"|\") + \"(\\s|$)\", \"gi\"), \" \"));\n }\n }\n }\n },\n\n /****************************\r\n Style Getting & Setting\r\n ****************************/\n\n /* The singular getPropertyValue, which routes the logic for all normalizations, hooks, and standard CSS properties. */\n getPropertyValue: function getPropertyValue(element, property, rootPropertyValue, forceStyleLookup) {\n /* Get an element's computed property value. */\n\n /* Note: Retrieving the value of a CSS property cannot simply be performed by checking an element's\r\n style attribute (which only reflects user-defined values). Instead, the browser must be queried for a property's\r\n *computed* value. You can read more about getComputedStyle here: https://developer.mozilla.org/en/docs/Web/API/window.getComputedStyle */\n function computePropertyValue(element, property) {\n /* When box-sizing isn't set to border-box, height and width style values are incorrectly computed when an\r\n element's scrollbars are visible (which expands the element's dimensions). Thus, we defer to the more accurate\r\n offsetHeight/Width property, which includes the total dimensions for interior, border, padding, and scrollbar.\r\n We subtract border and padding to get the sum of interior + scrollbar. */\n var computedValue = 0;\n /* IE<=8 doesn't support window.getComputedStyle, thus we defer to jQuery, which has an extensive array\r\n of hacks to accurately retrieve IE8 property values. Re-implementing that logic here is not worth bloating the\r\n codebase for a dying browser. The performance repercussions of using jQuery here are minimal since\r\n Velocity is optimized to rarely (and sometimes never) query the DOM. Further, the $.css() codepath isn't that slow. */\n\n if (IE <= 8) {\n computedValue = $.css(element, property);\n /* GET */\n\n /* All other browsers support getComputedStyle. The returned live object reference is cached onto its\r\n associated element so that it does not need to be refetched upon every GET. */\n } else {\n /* Browsers do not return height and width values for elements that are set to display:\"none\". Thus, we temporarily\r\n toggle display to the element type's default value. */\n var toggleDisplay = false;\n\n if (/^(width|height)$/.test(property) && CSS.getPropertyValue(element, \"display\") === 0) {\n toggleDisplay = true;\n CSS.setPropertyValue(element, \"display\", CSS.Values.getDisplayType(element));\n }\n\n var revertDisplay = function revertDisplay() {\n if (toggleDisplay) {\n CSS.setPropertyValue(element, \"display\", \"none\");\n }\n };\n\n if (!forceStyleLookup) {\n if (property === \"height\" && CSS.getPropertyValue(element, \"boxSizing\").toString().toLowerCase() !== \"border-box\") {\n var contentBoxHeight = element.offsetHeight - (parseFloat(CSS.getPropertyValue(element, \"borderTopWidth\")) || 0) - (parseFloat(CSS.getPropertyValue(element, \"borderBottomWidth\")) || 0) - (parseFloat(CSS.getPropertyValue(element, \"paddingTop\")) || 0) - (parseFloat(CSS.getPropertyValue(element, \"paddingBottom\")) || 0);\n revertDisplay();\n return contentBoxHeight;\n } else if (property === \"width\" && CSS.getPropertyValue(element, \"boxSizing\").toString().toLowerCase() !== \"border-box\") {\n var contentBoxWidth = element.offsetWidth - (parseFloat(CSS.getPropertyValue(element, \"borderLeftWidth\")) || 0) - (parseFloat(CSS.getPropertyValue(element, \"borderRightWidth\")) || 0) - (parseFloat(CSS.getPropertyValue(element, \"paddingLeft\")) || 0) - (parseFloat(CSS.getPropertyValue(element, \"paddingRight\")) || 0);\n revertDisplay();\n return contentBoxWidth;\n }\n }\n\n var computedStyle;\n /* For elements that Velocity hasn't been called on directly (e.g. when Velocity queries the DOM on behalf\r\n of a parent of an element its animating), perform a direct getComputedStyle lookup since the object isn't cached. */\n\n if (Data(element) === undefined) {\n computedStyle = window.getComputedStyle(element, null);\n /* GET */\n\n /* If the computedStyle object has yet to be cached, do so now. */\n } else if (!Data(element).computedStyle) {\n computedStyle = Data(element).computedStyle = window.getComputedStyle(element, null);\n /* GET */\n\n /* If computedStyle is cached, use it. */\n } else {\n computedStyle = Data(element).computedStyle;\n }\n /* IE and Firefox do not return a value for the generic borderColor -- they only return individual values for each border side's color.\r\n Also, in all browsers, when border colors aren't all the same, a compound value is returned that Velocity isn't setup to parse.\r\n So, as a polyfill for querying individual border side colors, we just return the top border's color and animate all borders from that value. */\n\n\n if (property === \"borderColor\") {\n property = \"borderTopColor\";\n }\n /* IE9 has a bug in which the \"filter\" property must be accessed from computedStyle using the getPropertyValue method\r\n instead of a direct property lookup. The getPropertyValue method is slower than a direct lookup, which is why we avoid it by default. */\n\n\n if (IE === 9 && property === \"filter\") {\n computedValue = computedStyle.getPropertyValue(property);\n /* GET */\n } else {\n computedValue = computedStyle[property];\n }\n /* Fall back to the property's style value (if defined) when computedValue returns nothing,\r\n which can happen when the element hasn't been painted. */\n\n\n if (computedValue === \"\" || computedValue === null) {\n computedValue = element.style[property];\n }\n\n revertDisplay();\n }\n /* For top, right, bottom, and left (TRBL) values that are set to \"auto\" on elements of \"fixed\" or \"absolute\" position,\r\n defer to jQuery for converting \"auto\" to a numeric value. (For elements with a \"static\" or \"relative\" position, \"auto\" has the same\r\n effect as being set to 0, so no conversion is necessary.) */\n\n /* An example of why numeric conversion is necessary: When an element with \"position:absolute\" has an untouched \"left\"\r\n property, which reverts to \"auto\", left's value is 0 relative to its parent element, but is often non-zero relative\r\n to its *containing* (not parent) element, which is the nearest \"position:relative\" ancestor or the viewport (and always the viewport in the case of \"position:fixed\"). */\n\n\n if (computedValue === \"auto\" && /^(top|right|bottom|left)$/i.test(property)) {\n var position = computePropertyValue(element, \"position\");\n /* GET */\n\n /* For absolute positioning, jQuery's $.position() only returns values for top and left;\r\n right and bottom will have their \"auto\" value reverted to 0. */\n\n /* Note: A jQuery object must be created here since jQuery doesn't have a low-level alias for $.position().\r\n Not a big deal since we're currently in a GET batch anyway. */\n\n if (position === \"fixed\" || position === \"absolute\" && /top|left/i.test(property)) {\n /* Note: jQuery strips the pixel unit from its returned values; we re-add it here to conform with computePropertyValue's behavior. */\n computedValue = $(element).position()[property] + \"px\";\n /* GET */\n }\n }\n\n return computedValue;\n }\n\n var propertyValue;\n /* If this is a hooked property (e.g. \"clipLeft\" instead of the root property of \"clip\"),\r\n extract the hook's value from a normalized rootPropertyValue using CSS.Hooks.extractValue(). */\n\n if (CSS.Hooks.registered[property]) {\n var hook = property,\n hookRoot = CSS.Hooks.getRoot(hook);\n /* If a cached rootPropertyValue wasn't passed in (which Velocity always attempts to do in order to avoid requerying the DOM),\r\n query the DOM for the root property's value. */\n\n if (rootPropertyValue === undefined) {\n /* Since the browser is now being directly queried, use the official post-prefixing property name for this lookup. */\n rootPropertyValue = CSS.getPropertyValue(element, CSS.Names.prefixCheck(hookRoot)[0]);\n /* GET */\n }\n /* If this root has a normalization registered, peform the associated normalization extraction. */\n\n\n if (CSS.Normalizations.registered[hookRoot]) {\n rootPropertyValue = CSS.Normalizations.registered[hookRoot](\"extract\", element, rootPropertyValue);\n }\n /* Extract the hook's value. */\n\n\n propertyValue = CSS.Hooks.extractValue(hook, rootPropertyValue);\n /* If this is a normalized property (e.g. \"opacity\" becomes \"filter\" in <=IE8) or \"translateX\" becomes \"transform\"),\r\n normalize the property's name and value, and handle the special case of transforms. */\n\n /* Note: Normalizing a property is mutually exclusive from hooking a property since hook-extracted values are strictly\r\n numerical and therefore do not require normalization extraction. */\n } else if (CSS.Normalizations.registered[property]) {\n var normalizedPropertyName, normalizedPropertyValue;\n normalizedPropertyName = CSS.Normalizations.registered[property](\"name\", element);\n /* Transform values are calculated via normalization extraction (see below), which checks against the element's transformCache.\r\n At no point do transform GETs ever actually query the DOM; initial stylesheet values are never processed.\r\n This is because parsing 3D transform matrices is not always accurate and would bloat our codebase;\r\n thus, normalization extraction defaults initial transform values to their zero-values (e.g. 1 for scaleX and 0 for translateX). */\n\n if (normalizedPropertyName !== \"transform\") {\n normalizedPropertyValue = computePropertyValue(element, CSS.Names.prefixCheck(normalizedPropertyName)[0]);\n /* GET */\n\n /* If the value is a CSS null-value and this property has a hook template, use that zero-value template so that hooks can be extracted from it. */\n\n if (CSS.Values.isCSSNullValue(normalizedPropertyValue) && CSS.Hooks.templates[property]) {\n normalizedPropertyValue = CSS.Hooks.templates[property][1];\n }\n }\n\n propertyValue = CSS.Normalizations.registered[property](\"extract\", element, normalizedPropertyValue);\n }\n /* If a (numeric) value wasn't produced via hook extraction or normalization, query the DOM. */\n\n\n if (!/^[\\d-]/.test(propertyValue)) {\n /* For SVG elements, dimensional properties (which SVGAttribute() detects) are tweened via\r\n their HTML attribute values instead of their CSS style values. */\n var data = Data(element);\n\n if (data && data.isSVG && CSS.Names.SVGAttribute(property)) {\n /* Since the height/width attribute values must be set manually, they don't reflect computed values.\r\n Thus, we use use getBBox() to ensure we always get values for elements with undefined height/width attributes. */\n if (/^(height|width)$/i.test(property)) {\n /* Firefox throws an error if .getBBox() is called on an SVG that isn't attached to the DOM. */\n try {\n propertyValue = element.getBBox()[property];\n } catch (error) {\n propertyValue = 0;\n }\n /* Otherwise, access the attribute value directly. */\n\n } else {\n propertyValue = element.getAttribute(property);\n }\n } else {\n propertyValue = computePropertyValue(element, CSS.Names.prefixCheck(property)[0]);\n /* GET */\n }\n }\n /* Since property lookups are for animation purposes (which entails computing the numeric delta between start and end values),\r\n convert CSS null-values to an integer of value 0. */\n\n\n if (CSS.Values.isCSSNullValue(propertyValue)) {\n propertyValue = 0;\n }\n\n if (Velocity.debug >= 2) {\n console.log(\"Get \" + property + \": \" + propertyValue);\n }\n\n return propertyValue;\n },\n\n /* The singular setPropertyValue, which routes the logic for all normalizations, hooks, and standard CSS properties. */\n setPropertyValue: function setPropertyValue(element, property, propertyValue, rootPropertyValue, scrollData) {\n var propertyName = property;\n /* In order to be subjected to call options and element queueing, scroll animation is routed through Velocity as if it were a standard CSS property. */\n\n if (property === \"scroll\") {\n /* If a container option is present, scroll the container instead of the browser window. */\n if (scrollData.container) {\n scrollData.container[\"scroll\" + scrollData.direction] = propertyValue;\n /* Otherwise, Velocity defaults to scrolling the browser window. */\n } else {\n if (scrollData.direction === \"Left\") {\n window.scrollTo(propertyValue, scrollData.alternateValue);\n } else {\n window.scrollTo(scrollData.alternateValue, propertyValue);\n }\n }\n } else {\n /* Transforms (translateX, rotateZ, etc.) are applied to a per-element transformCache object, which is manually flushed via flushTransformCache().\r\n Thus, for now, we merely cache transforms being SET. */\n if (CSS.Normalizations.registered[property] && CSS.Normalizations.registered[property](\"name\", element) === \"transform\") {\n /* Perform a normalization injection. */\n\n /* Note: The normalization logic handles the transformCache updating. */\n CSS.Normalizations.registered[property](\"inject\", element, propertyValue);\n propertyName = \"transform\";\n propertyValue = Data(element).transformCache[property];\n } else {\n /* Inject hooks. */\n if (CSS.Hooks.registered[property]) {\n var hookName = property,\n hookRoot = CSS.Hooks.getRoot(property);\n /* If a cached rootPropertyValue was not provided, query the DOM for the hookRoot's current value. */\n\n rootPropertyValue = rootPropertyValue || CSS.getPropertyValue(element, hookRoot);\n /* GET */\n\n propertyValue = CSS.Hooks.injectValue(hookName, propertyValue, rootPropertyValue);\n property = hookRoot;\n }\n /* Normalize names and values. */\n\n\n if (CSS.Normalizations.registered[property]) {\n propertyValue = CSS.Normalizations.registered[property](\"inject\", element, propertyValue);\n property = CSS.Normalizations.registered[property](\"name\", element);\n }\n /* Assign the appropriate vendor prefix before performing an official style update. */\n\n\n propertyName = CSS.Names.prefixCheck(property)[0];\n /* A try/catch is used for IE<=8, which throws an error when \"invalid\" CSS values are set, e.g. a negative width.\r\n Try/catch is avoided for other browsers since it incurs a performance overhead. */\n\n if (IE <= 8) {\n try {\n element.style[propertyName] = propertyValue;\n } catch (error) {\n if (Velocity.debug) {\n console.log(\"Browser does not support [\" + propertyValue + \"] for [\" + propertyName + \"]\");\n }\n }\n /* SVG elements have their dimensional properties (width, height, x, y, cx, etc.) applied directly as attributes instead of as styles. */\n\n /* Note: IE8 does not support SVG elements, so it's okay that we skip it for SVG animation. */\n\n } else {\n var data = Data(element);\n\n if (data && data.isSVG && CSS.Names.SVGAttribute(property)) {\n /* Note: For SVG attributes, vendor-prefixed property names are never used. */\n\n /* Note: Not all CSS properties can be animated via attributes, but the browser won't throw an error for unsupported properties. */\n element.setAttribute(property, propertyValue);\n } else {\n element.style[propertyName] = propertyValue;\n }\n }\n\n if (Velocity.debug >= 2) {\n console.log(\"Set \" + property + \" (\" + propertyName + \"): \" + propertyValue);\n }\n }\n }\n /* Return the normalized property name and value in case the caller wants to know how these values were modified before being applied to the DOM. */\n\n\n return [propertyName, propertyValue];\n },\n\n /* To increase performance by batching transform updates into a single SET, transforms are not directly applied to an element until flushTransformCache() is called. */\n\n /* Note: Velocity applies transform properties in the same order that they are chronogically introduced to the element's CSS styles. */\n flushTransformCache: function flushTransformCache(element) {\n var transformString = \"\",\n data = Data(element);\n /* Certain browsers require that SVG transforms be applied as an attribute. However, the SVG transform attribute takes a modified version of CSS's transform string\r\n (units are dropped and, except for skewX/Y, subproperties are merged into their master property -- e.g. scaleX and scaleY are merged into scale(X Y). */\n\n if ((IE || Velocity.State.isAndroid && !Velocity.State.isChrome) && data && data.isSVG) {\n /* Since transform values are stored in their parentheses-wrapped form, we use a helper function to strip out their numeric values.\r\n Further, SVG transform properties only take unitless (representing pixels) values, so it's okay that parseFloat() strips the unit suffixed to the float value. */\n var getTransformFloat = function getTransformFloat(transformProperty) {\n return parseFloat(CSS.getPropertyValue(element, transformProperty));\n };\n /* Create an object to organize all the transforms that we'll apply to the SVG element. To keep the logic simple,\r\n we process *all* transform properties -- even those that may not be explicitly applied (since they default to their zero-values anyway). */\n\n\n var SVGTransforms = {\n translate: [getTransformFloat(\"translateX\"), getTransformFloat(\"translateY\")],\n skewX: [getTransformFloat(\"skewX\")],\n skewY: [getTransformFloat(\"skewY\")],\n\n /* If the scale property is set (non-1), use that value for the scaleX and scaleY values\r\n (this behavior mimics the result of animating all these properties at once on HTML elements). */\n scale: getTransformFloat(\"scale\") !== 1 ? [getTransformFloat(\"scale\"), getTransformFloat(\"scale\")] : [getTransformFloat(\"scaleX\"), getTransformFloat(\"scaleY\")],\n\n /* Note: SVG's rotate transform takes three values: rotation degrees followed by the X and Y values\r\n defining the rotation's origin point. We ignore the origin values (default them to 0). */\n rotate: [getTransformFloat(\"rotateZ\"), 0, 0]\n };\n /* Iterate through the transform properties in the user-defined property map order.\r\n (This mimics the behavior of non-SVG transform animation.) */\n\n $.each(Data(element).transformCache, function (transformName) {\n /* Except for with skewX/Y, revert the axis-specific transform subproperties to their axis-free master\r\n properties so that they match up with SVG's accepted transform properties. */\n if (/^translate/i.test(transformName)) {\n transformName = \"translate\";\n } else if (/^scale/i.test(transformName)) {\n transformName = \"scale\";\n } else if (/^rotate/i.test(transformName)) {\n transformName = \"rotate\";\n }\n /* Check that we haven't yet deleted the property from the SVGTransforms container. */\n\n\n if (SVGTransforms[transformName]) {\n /* Append the transform property in the SVG-supported transform format. As per the spec, surround the space-delimited values in parentheses. */\n transformString += transformName + \"(\" + SVGTransforms[transformName].join(\" \") + \")\" + \" \";\n /* After processing an SVG transform property, delete it from the SVGTransforms container so we don't\r\n re-insert the same master property if we encounter another one of its axis-specific properties. */\n\n delete SVGTransforms[transformName];\n }\n });\n } else {\n var transformValue, perspective;\n /* Transform properties are stored as members of the transformCache object. Concatenate all the members into a string. */\n\n $.each(Data(element).transformCache, function (transformName) {\n transformValue = Data(element).transformCache[transformName];\n /* Transform's perspective subproperty must be set first in order to take effect. Store it temporarily. */\n\n if (transformName === \"transformPerspective\") {\n perspective = transformValue;\n return true;\n }\n /* IE9 only supports one rotation type, rotateZ, which it refers to as \"rotate\". */\n\n\n if (IE === 9 && transformName === \"rotateZ\") {\n transformName = \"rotate\";\n }\n\n transformString += transformName + transformValue + \" \";\n });\n /* If present, set the perspective subproperty first. */\n\n if (perspective) {\n transformString = \"perspective\" + perspective + \" \" + transformString;\n }\n }\n\n CSS.setPropertyValue(element, \"transform\", transformString);\n }\n };\n /* Register hooks and normalizations. */\n\n CSS.Hooks.register();\n CSS.Normalizations.register();\n /* Allow hook setting in the same fashion as jQuery's $.css(). */\n\n Velocity.hook = function (elements, arg2, arg3) {\n var value;\n elements = sanitizeElements(elements);\n $.each(elements, function (i, element) {\n /* Initialize Velocity's per-element data cache if this element hasn't previously been animated. */\n if (Data(element) === undefined) {\n Velocity.init(element);\n }\n /* Get property value. If an element set was passed in, only return the value for the first element. */\n\n\n if (arg3 === undefined) {\n if (value === undefined) {\n value = CSS.getPropertyValue(element, arg2);\n }\n /* Set property value. */\n\n } else {\n /* sPV returns an array of the normalized propertyName/propertyValue pair used to update the DOM. */\n var adjustedSet = CSS.setPropertyValue(element, arg2, arg3);\n /* Transform properties don't automatically set. They have to be flushed to the DOM. */\n\n if (adjustedSet[0] === \"transform\") {\n Velocity.CSS.flushTransformCache(element);\n }\n\n value = adjustedSet;\n }\n });\n return value;\n };\n /*****************\r\n Animation\r\n *****************/\n\n\n var animate = function animate() {\n var opts;\n /******************\r\n Call Chain\r\n ******************/\n\n /* Logic for determining what to return to the call stack when exiting out of Velocity. */\n\n function getChain() {\n /* If we are using the utility function, attempt to return this call's promise. If no promise library was detected,\r\n default to null instead of returning the targeted elements so that utility function's return value is standardized. */\n if (isUtility) {\n return promiseData.promise || null;\n /* Otherwise, if we're using $.fn, return the jQuery-/Zepto-wrapped element set. */\n } else {\n return elementsWrapped;\n }\n }\n /*************************\r\n Arguments Assignment\r\n *************************/\n\n /* To allow for expressive CoffeeScript code, Velocity supports an alternative syntax in which \"elements\" (or \"e\"), \"properties\" (or \"p\"), and \"options\" (or \"o\")\r\n objects are defined on a container object that's passed in as Velocity's sole argument. */\n\n /* Note: Some browsers automatically populate arguments with a \"properties\" object. We detect it by checking for its default \"names\" property. */\n\n\n var syntacticSugar = arguments[0] && (arguments[0].p || $.isPlainObject(arguments[0].properties) && !arguments[0].properties.names || Type.isString(arguments[0].properties)),\n\n /* Whether Velocity was called via the utility function (as opposed to on a jQuery/Zepto object). */\n isUtility,\n\n /* When Velocity is called via the utility function ($.Velocity()/Velocity()), elements are explicitly\r\n passed in as the first parameter. Thus, argument positioning varies. We normalize them here. */\n elementsWrapped,\n argumentIndex;\n var elements, propertiesMap, options;\n /* Detect jQuery/Zepto elements being animated via the $.fn method. */\n\n if (Type.isWrapped(this)) {\n isUtility = false;\n argumentIndex = 0;\n elements = this;\n elementsWrapped = this;\n /* Otherwise, raw elements are being animated via the utility function. */\n } else {\n isUtility = true;\n argumentIndex = 1;\n elements = syntacticSugar ? arguments[0].elements || arguments[0].e : arguments[0];\n }\n /***************\r\n Promises\r\n ***************/\n\n\n var promiseData = {\n promise: null,\n resolver: null,\n rejecter: null\n };\n /* If this call was made via the utility function (which is the default method of invocation when jQuery/Zepto are not being used), and if\r\n promise support was detected, create a promise object for this call and store references to its resolver and rejecter methods. The resolve\r\n method is used when a call completes naturally or is prematurely stopped by the user. In both cases, completeCall() handles the associated\r\n call cleanup and promise resolving logic. The reject method is used when an invalid set of arguments is passed into a Velocity call. */\n\n /* Note: Velocity employs a call-based queueing architecture, which means that stopping an animating element actually stops the full call that\r\n triggered it -- not that one element exclusively. Similarly, there is one promise per call, and all elements targeted by a Velocity call are\r\n grouped together for the purposes of resolving and rejecting a promise. */\n\n if (isUtility && Velocity.Promise) {\n promiseData.promise = new Velocity.Promise(function (resolve, reject) {\n promiseData.resolver = resolve;\n promiseData.rejecter = reject;\n });\n }\n\n if (syntacticSugar) {\n propertiesMap = arguments[0].properties || arguments[0].p;\n options = arguments[0].options || arguments[0].o;\n } else {\n propertiesMap = arguments[argumentIndex];\n options = arguments[argumentIndex + 1];\n }\n\n elements = sanitizeElements(elements);\n\n if (!elements) {\n if (promiseData.promise) {\n if (!propertiesMap || !options || options.promiseRejectEmpty !== false) {\n promiseData.rejecter();\n } else {\n promiseData.resolver();\n }\n }\n\n return;\n }\n /* The length of the element set (in the form of a nodeList or an array of elements) is defaulted to 1 in case a\r\n single raw DOM element is passed in (which doesn't contain a length property). */\n\n\n var elementsLength = elements.length,\n elementsIndex = 0;\n /***************************\r\n Argument Overloading\r\n ***************************/\n\n /* Support is included for jQuery's argument overloading: $.animate(propertyMap [, duration] [, easing] [, complete]).\r\n Overloading is detected by checking for the absence of an object being passed into options. */\n\n /* Note: The stop/finish/pause/resume actions do not accept animation options, and are therefore excluded from this check. */\n\n if (!/^(stop|finish|finishAll|pause|resume)$/i.test(propertiesMap) && !$.isPlainObject(options)) {\n /* The utility function shifts all arguments one position to the right, so we adjust for that offset. */\n var startingArgumentPosition = argumentIndex + 1;\n options = {};\n /* Iterate through all options arguments */\n\n for (var i = startingArgumentPosition; i < arguments.length; i++) {\n /* Treat a number as a duration. Parse it out. */\n\n /* Note: The following RegEx will return true if passed an array with a number as its first item.\r\n Thus, arrays are skipped from this check. */\n if (!Type.isArray(arguments[i]) && (/^(fast|normal|slow)$/i.test(arguments[i]) || /^\\d/.test(arguments[i]))) {\n options.duration = arguments[i];\n /* Treat strings and arrays as easings. */\n } else if (Type.isString(arguments[i]) || Type.isArray(arguments[i])) {\n options.easing = arguments[i];\n /* Treat a function as a complete callback. */\n } else if (Type.isFunction(arguments[i])) {\n options.complete = arguments[i];\n }\n }\n }\n /*********************\r\n Action Detection\r\n *********************/\n\n /* Velocity's behavior is categorized into \"actions\": Elements can either be specially scrolled into view,\r\n or they can be started, stopped, paused, resumed, or reversed . If a literal or referenced properties map is passed in as Velocity's\r\n first argument, the associated action is \"start\". Alternatively, \"scroll\", \"reverse\", \"pause\", \"resume\" or \"stop\" can be passed in \r\n instead of a properties map. */\n\n\n var action;\n\n switch (propertiesMap) {\n case \"scroll\":\n action = \"scroll\";\n break;\n\n case \"reverse\":\n action = \"reverse\";\n break;\n\n case \"pause\":\n /*******************\r\n Action: Pause\r\n *******************/\n var currentTime = new Date().getTime();\n /* Handle delay timers */\n\n $.each(elements, function (i, element) {\n pauseDelayOnElement(element, currentTime);\n });\n /* Pause and Resume are call-wide (not on a per element basis). Thus, calling pause or resume on a \r\n single element will cause any calls that containt tweens for that element to be paused/resumed\r\n as well. */\n\n /* Iterate through all calls and pause any that contain any of our elements */\n\n $.each(Velocity.State.calls, function (i, activeCall) {\n var found = false;\n /* Inactive calls are set to false by the logic inside completeCall(). Skip them. */\n\n if (activeCall) {\n /* Iterate through the active call's targeted elements. */\n $.each(activeCall[1], function (k, activeElement) {\n var queueName = options === undefined ? \"\" : options;\n\n if (queueName !== true && activeCall[2].queue !== queueName && !(options === undefined && activeCall[2].queue === false)) {\n return true;\n }\n /* Iterate through the calls targeted by the stop command. */\n\n\n $.each(elements, function (l, element) {\n /* Check that this call was applied to the target element. */\n if (element === activeElement) {\n /* Set call to paused */\n activeCall[5] = {\n resume: false\n };\n /* Once we match an element, we can bounce out to the next call entirely */\n\n found = true;\n return false;\n }\n });\n /* Proceed to check next call if we have already matched */\n\n if (found) {\n return false;\n }\n });\n }\n });\n /* Since pause creates no new tweens, exit out of Velocity. */\n\n return getChain();\n\n case \"resume\":\n /*******************\r\n Action: Resume\r\n *******************/\n\n /* Handle delay timers */\n $.each(elements, function (i, element) {\n resumeDelayOnElement(element, currentTime);\n });\n /* Pause and Resume are call-wide (not on a per elemnt basis). Thus, calling pause or resume on a \r\n single element will cause any calls that containt tweens for that element to be paused/resumed\r\n as well. */\n\n /* Iterate through all calls and pause any that contain any of our elements */\n\n $.each(Velocity.State.calls, function (i, activeCall) {\n var found = false;\n /* Inactive calls are set to false by the logic inside completeCall(). Skip them. */\n\n if (activeCall) {\n /* Iterate through the active call's targeted elements. */\n $.each(activeCall[1], function (k, activeElement) {\n var queueName = options === undefined ? \"\" : options;\n\n if (queueName !== true && activeCall[2].queue !== queueName && !(options === undefined && activeCall[2].queue === false)) {\n return true;\n }\n /* Skip any calls that have never been paused */\n\n\n if (!activeCall[5]) {\n return true;\n }\n /* Iterate through the calls targeted by the stop command. */\n\n\n $.each(elements, function (l, element) {\n /* Check that this call was applied to the target element. */\n if (element === activeElement) {\n /* Flag a pause object to be resumed, which will occur during the next tick. In\r\n addition, the pause object will at that time be deleted */\n activeCall[5].resume = true;\n /* Once we match an element, we can bounce out to the next call entirely */\n\n found = true;\n return false;\n }\n });\n /* Proceed to check next call if we have already matched */\n\n if (found) {\n return false;\n }\n });\n }\n });\n /* Since resume creates no new tweens, exit out of Velocity. */\n\n return getChain();\n\n case \"finish\":\n case \"finishAll\":\n case \"stop\":\n /*******************\r\n Action: Stop\r\n *******************/\n\n /* Clear the currently-active delay on each targeted element. */\n $.each(elements, function (i, element) {\n if (Data(element) && Data(element).delayTimer) {\n /* Stop the timer from triggering its cached next() function. */\n clearTimeout(Data(element).delayTimer.setTimeout);\n /* Manually call the next() function so that the subsequent queue items can progress. */\n\n if (Data(element).delayTimer.next) {\n Data(element).delayTimer.next();\n }\n\n delete Data(element).delayTimer;\n }\n /* If we want to finish everything in the queue, we have to iterate through it\r\n and call each function. This will make them active calls below, which will\r\n cause them to be applied via the duration setting. */\n\n\n if (propertiesMap === \"finishAll\" && (options === true || Type.isString(options))) {\n /* Iterate through the items in the element's queue. */\n $.each($.queue(element, Type.isString(options) ? options : \"\"), function (_, item) {\n /* The queue array can contain an \"inprogress\" string, which we skip. */\n if (Type.isFunction(item)) {\n item();\n }\n });\n /* Clearing the $.queue() array is achieved by resetting it to []. */\n\n $.queue(element, Type.isString(options) ? options : \"\", []);\n }\n });\n var callsToStop = [];\n /* When the stop action is triggered, the elements' currently active call is immediately stopped. The active call might have\r\n been applied to multiple elements, in which case all of the call's elements will be stopped. When an element\r\n is stopped, the next item in its animation queue is immediately triggered. */\n\n /* An additional argument may be passed in to clear an element's remaining queued calls. Either true (which defaults to the \"fx\" queue)\r\n or a custom queue string can be passed in. */\n\n /* Note: The stop command runs prior to Velocity's Queueing phase since its behavior is intended to take effect *immediately*,\r\n regardless of the element's current queue state. */\n\n /* Iterate through every active call. */\n\n $.each(Velocity.State.calls, function (i, activeCall) {\n /* Inactive calls are set to false by the logic inside completeCall(). Skip them. */\n if (activeCall) {\n /* Iterate through the active call's targeted elements. */\n $.each(activeCall[1], function (k, activeElement) {\n /* If true was passed in as a secondary argument, clear absolutely all calls on this element. Otherwise, only\r\n clear calls associated with the relevant queue. */\n\n /* Call stopping logic works as follows:\r\n - options === true --> stop current default queue calls (and queue:false calls), including remaining queued ones.\r\n - options === undefined --> stop current queue:\"\" call and all queue:false calls.\r\n - options === false --> stop only queue:false calls.\r\n - options === \"custom\" --> stop current queue:\"custom\" call, including remaining queued ones (there is no functionality to only clear the currently-running queue:\"custom\" call). */\n var queueName = options === undefined ? \"\" : options;\n\n if (queueName !== true && activeCall[2].queue !== queueName && !(options === undefined && activeCall[2].queue === false)) {\n return true;\n }\n /* Iterate through the calls targeted by the stop command. */\n\n\n $.each(elements, function (l, element) {\n /* Check that this call was applied to the target element. */\n if (element === activeElement) {\n /* Optionally clear the remaining queued calls. If we're doing \"finishAll\" this won't find anything,\r\n due to the queue-clearing above. */\n if (options === true || Type.isString(options)) {\n /* Iterate through the items in the element's queue. */\n $.each($.queue(element, Type.isString(options) ? options : \"\"), function (_, item) {\n /* The queue array can contain an \"inprogress\" string, which we skip. */\n if (Type.isFunction(item)) {\n /* Pass the item's callback a flag indicating that we want to abort from the queue call.\r\n (Specifically, the queue will resolve the call's associated promise then abort.) */\n item(null, true);\n }\n });\n /* Clearing the $.queue() array is achieved by resetting it to []. */\n\n $.queue(element, Type.isString(options) ? options : \"\", []);\n }\n\n if (propertiesMap === \"stop\") {\n /* Since \"reverse\" uses cached start values (the previous call's endValues), these values must be\r\n changed to reflect the final value that the elements were actually tweened to. */\n\n /* Note: If only queue:false/queue:\"custom\" animations are currently running on an element, it won't have a tweensContainer\r\n object. Also, queue:false/queue:\"custom\" animations can't be reversed. */\n var data = Data(element);\n\n if (data && data.tweensContainer && (queueName === true || queueName === \"\")) {\n $.each(data.tweensContainer, function (m, activeTween) {\n activeTween.endValue = activeTween.currentValue;\n });\n }\n\n callsToStop.push(i);\n } else if (propertiesMap === \"finish\" || propertiesMap === \"finishAll\") {\n /* To get active tweens to finish immediately, we forcefully shorten their durations to 1ms so that\r\n they finish upon the next rAf tick then proceed with normal call completion logic. */\n activeCall[2].duration = 1;\n }\n }\n });\n });\n }\n });\n /* Prematurely call completeCall() on each matched active call. Pass an additional flag for \"stop\" to indicate\r\n that the complete callback and display:none setting should be skipped since we're completing prematurely. */\n\n if (propertiesMap === \"stop\") {\n $.each(callsToStop, function (i, j) {\n completeCall(j, true);\n });\n\n if (promiseData.promise) {\n /* Immediately resolve the promise associated with this stop call since stop runs synchronously. */\n promiseData.resolver(elements);\n }\n }\n /* Since we're stopping, and not proceeding with queueing, exit out of Velocity. */\n\n\n return getChain();\n\n default:\n /* Treat a non-empty plain object as a literal properties map. */\n if ($.isPlainObject(propertiesMap) && !Type.isEmptyObject(propertiesMap)) {\n action = \"start\";\n /****************\r\n Redirects\r\n ****************/\n\n /* Check if a string matches a registered redirect (see Redirects above). */\n } else if (Type.isString(propertiesMap) && Velocity.Redirects[propertiesMap]) {\n opts = $.extend({}, options);\n var durationOriginal = opts.duration,\n delayOriginal = opts.delay || 0;\n /* If the backwards option was passed in, reverse the element set so that elements animate from the last to the first. */\n\n if (opts.backwards === true) {\n elements = $.extend(true, [], elements).reverse();\n }\n /* Individually trigger the redirect for each element in the set to prevent users from having to handle iteration logic in their redirect. */\n\n\n $.each(elements, function (elementIndex, element) {\n /* If the stagger option was passed in, successively delay each element by the stagger value (in ms). Retain the original delay value. */\n if (parseFloat(opts.stagger)) {\n opts.delay = delayOriginal + parseFloat(opts.stagger) * elementIndex;\n } else if (Type.isFunction(opts.stagger)) {\n opts.delay = delayOriginal + opts.stagger.call(element, elementIndex, elementsLength);\n }\n /* If the drag option was passed in, successively increase/decrease (depending on the presense of opts.backwards)\r\n the duration of each element's animation, using floors to prevent producing very short durations. */\n\n\n if (opts.drag) {\n /* Default the duration of UI pack effects (callouts and transitions) to 1000ms instead of the usual default duration of 400ms. */\n opts.duration = parseFloat(durationOriginal) || (/^(callout|transition)/.test(propertiesMap) ? 1000 : DURATION_DEFAULT);\n /* For each element, take the greater duration of: A) animation completion percentage relative to the original duration,\r\n B) 75% of the original duration, or C) a 200ms fallback (in case duration is already set to a low value).\r\n The end result is a baseline of 75% of the redirect's duration that increases/decreases as the end of the element set is approached. */\n\n opts.duration = Math.max(opts.duration * (opts.backwards ? 1 - elementIndex / elementsLength : (elementIndex + 1) / elementsLength), opts.duration * 0.75, 200);\n }\n /* Pass in the call's opts object so that the redirect can optionally extend it. It defaults to an empty object instead of null to\r\n reduce the opts checking logic required inside the redirect. */\n\n\n Velocity.Redirects[propertiesMap].call(element, element, opts || {}, elementIndex, elementsLength, elements, promiseData.promise ? promiseData : undefined);\n });\n /* Since the animation logic resides within the redirect's own code, abort the remainder of this call.\r\n (The performance overhead up to this point is virtually non-existant.) */\n\n /* Note: The jQuery call chain is kept intact by returning the complete element set. */\n\n return getChain();\n } else {\n var abortError = \"Velocity: First argument (\" + propertiesMap + \") was not a property map, a known action, or a registered redirect. Aborting.\";\n\n if (promiseData.promise) {\n promiseData.rejecter(new Error(abortError));\n } else if (window.console) {\n console.log(abortError);\n }\n\n return getChain();\n }\n\n }\n /**************************\r\n Call-Wide Variables\r\n **************************/\n\n /* A container for CSS unit conversion ratios (e.g. %, rem, and em ==> px) that is used to cache ratios across all elements\r\n being animated in a single Velocity call. Calculating unit ratios necessitates DOM querying and updating, and is therefore\r\n avoided (via caching) wherever possible. This container is call-wide instead of page-wide to avoid the risk of using stale\r\n conversion metrics across Velocity animations that are not immediately consecutively chained. */\n\n\n var callUnitConversionData = {\n lastParent: null,\n lastPosition: null,\n lastFontSize: null,\n lastPercentToPxWidth: null,\n lastPercentToPxHeight: null,\n lastEmToPx: null,\n remToPx: null,\n vwToPx: null,\n vhToPx: null\n };\n /* A container for all the ensuing tween data and metadata associated with this call. This container gets pushed to the page-wide\r\n Velocity.State.calls array that is processed during animation ticking. */\n\n var call = [];\n /************************\r\n Element Processing\r\n ************************/\n\n /* Element processing consists of three parts -- data processing that cannot go stale and data processing that *can* go stale (i.e. third-party style modifications):\r\n 1) Pre-Queueing: Element-wide variables, including the element's data storage, are instantiated. Call options are prepared. If triggered, the Stop action is executed.\r\n 2) Queueing: The logic that runs once this call has reached its point of execution in the element's $.queue() stack. Most logic is placed here to avoid risking it becoming stale.\r\n 3) Pushing: Consolidation of the tween data followed by its push onto the global in-progress calls container.\r\n `elementArrayIndex` allows passing index of the element in the original array to value functions.\r\n If `elementsIndex` were used instead the index would be determined by the elements' per-element queue.\r\n */\n\n function processElement(element, elementArrayIndex) {\n /*************************\r\n Part I: Pre-Queueing\r\n *************************/\n\n /***************************\r\n Element-Wide Variables\r\n ***************************/\n var\n /* The runtime opts object is the extension of the current call's options and Velocity's page-wide option defaults. */\n opts = $.extend({}, Velocity.defaults, options),\n\n /* A container for the processed data associated with each property in the propertyMap.\r\n (Each property in the map produces its own \"tween\".) */\n tweensContainer = {},\n elementUnitConversionData;\n /******************\r\n Element Init\r\n ******************/\n\n if (Data(element) === undefined) {\n Velocity.init(element);\n }\n /******************\r\n Option: Delay\r\n ******************/\n\n /* Since queue:false doesn't respect the item's existing queue, we avoid injecting its delay here (it's set later on). */\n\n /* Note: Velocity rolls its own delay function since jQuery doesn't have a utility alias for $.fn.delay()\r\n (and thus requires jQuery element creation, which we avoid since its overhead includes DOM querying). */\n\n\n if (parseFloat(opts.delay) && opts.queue !== false) {\n $.queue(element, opts.queue, function (next, clearQueue) {\n if (clearQueue === true) {\n /* Do not continue with animation queueing. */\n return true;\n }\n /* This is a flag used to indicate to the upcoming completeCall() function that this queue entry was initiated by Velocity. See completeCall() for further details. */\n\n\n Velocity.velocityQueueEntryFlag = true;\n /* The ensuing queue item (which is assigned to the \"next\" argument that $.queue() automatically passes in) will be triggered after a setTimeout delay.\r\n The setTimeout is stored so that it can be subjected to clearTimeout() if this animation is prematurely stopped via Velocity's \"stop\" command, and\r\n delayBegin/delayTime is used to ensure we can \"pause\" and \"resume\" a tween that is still mid-delay. */\n\n /* Temporarily store delayed elements to facilite access for global pause/resume */\n\n var callIndex = Velocity.State.delayedElements.count++;\n Velocity.State.delayedElements[callIndex] = element;\n\n var delayComplete = function (index) {\n return function () {\n /* Clear the temporary element */\n Velocity.State.delayedElements[index] = false;\n /* Finally, issue the call */\n\n next();\n };\n }(callIndex);\n\n Data(element).delayBegin = new Date().getTime();\n Data(element).delay = parseFloat(opts.delay);\n Data(element).delayTimer = {\n setTimeout: setTimeout(next, parseFloat(opts.delay)),\n next: delayComplete\n };\n });\n }\n /*********************\r\n Option: Duration\r\n *********************/\n\n /* Support for jQuery's named durations. */\n\n\n switch (opts.duration.toString().toLowerCase()) {\n case \"fast\":\n opts.duration = 200;\n break;\n\n case \"normal\":\n opts.duration = DURATION_DEFAULT;\n break;\n\n case \"slow\":\n opts.duration = 600;\n break;\n\n default:\n /* Remove the potential \"ms\" suffix and default to 1 if the user is attempting to set a duration of 0 (in order to produce an immediate style change). */\n opts.duration = parseFloat(opts.duration) || 1;\n }\n /************************\r\n Global Option: Mock\r\n ************************/\n\n\n if (Velocity.mock !== false) {\n /* In mock mode, all animations are forced to 1ms so that they occur immediately upon the next rAF tick.\r\n Alternatively, a multiplier can be passed in to time remap all delays and durations. */\n if (Velocity.mock === true) {\n opts.duration = opts.delay = 1;\n } else {\n opts.duration *= parseFloat(Velocity.mock) || 1;\n opts.delay *= parseFloat(Velocity.mock) || 1;\n }\n }\n /*******************\r\n Option: Easing\r\n *******************/\n\n\n opts.easing = getEasing(opts.easing, opts.duration);\n /**********************\r\n Option: Callbacks\r\n **********************/\n\n /* Callbacks must functions. Otherwise, default to null. */\n\n if (opts.begin && !Type.isFunction(opts.begin)) {\n opts.begin = null;\n }\n\n if (opts.progress && !Type.isFunction(opts.progress)) {\n opts.progress = null;\n }\n\n if (opts.complete && !Type.isFunction(opts.complete)) {\n opts.complete = null;\n }\n /*********************************\r\n Option: Display & Visibility\r\n *********************************/\n\n /* Refer to Velocity's documentation (VelocityJS.org/#displayAndVisibility) for a description of the display and visibility options' behavior. */\n\n /* Note: We strictly check for undefined instead of falsiness because display accepts an empty string value. */\n\n\n if (opts.display !== undefined && opts.display !== null) {\n opts.display = opts.display.toString().toLowerCase();\n /* Users can pass in a special \"auto\" value to instruct Velocity to set the element to its default display value. */\n\n if (opts.display === \"auto\") {\n opts.display = Velocity.CSS.Values.getDisplayType(element);\n }\n }\n\n if (opts.visibility !== undefined && opts.visibility !== null) {\n opts.visibility = opts.visibility.toString().toLowerCase();\n }\n /**********************\r\n Option: mobileHA\r\n **********************/\n\n /* When set to true, and if this is a mobile device, mobileHA automatically enables hardware acceleration (via a null transform hack)\r\n on animating elements. HA is removed from the element at the completion of its animation. */\n\n /* Note: Android Gingerbread doesn't support HA. If a null transform hack (mobileHA) is in fact set, it will prevent other tranform subproperties from taking effect. */\n\n /* Note: You can read more about the use of mobileHA in Velocity's documentation: VelocityJS.org/#mobileHA. */\n\n\n opts.mobileHA = opts.mobileHA && Velocity.State.isMobile && !Velocity.State.isGingerbread;\n /***********************\r\n Part II: Queueing\r\n ***********************/\n\n /* When a set of elements is targeted by a Velocity call, the set is broken up and each element has the current Velocity call individually queued onto it.\r\n In this way, each element's existing queue is respected; some elements may already be animating and accordingly should not have this current Velocity call triggered immediately. */\n\n /* In each queue, tween data is processed for each animating property then pushed onto the call-wide calls array. When the last element in the set has had its tweens processed,\r\n the call array is pushed to Velocity.State.calls for live processing by the requestAnimationFrame tick. */\n\n function buildQueue(next) {\n var data, lastTweensContainer;\n /*******************\r\n Option: Begin\r\n *******************/\n\n /* The begin callback is fired once per call -- not once per elemenet -- and is passed the full raw DOM element set as both its context and its first argument. */\n\n if (opts.begin && elementsIndex === 0) {\n /* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\n try {\n opts.begin.call(elements, elements);\n } catch (error) {\n setTimeout(function () {\n throw error;\n }, 1);\n }\n }\n /*****************************************\r\n Tween Data Construction (for Scroll)\r\n *****************************************/\n\n /* Note: In order to be subjected to chaining and animation options, scroll's tweening is routed through Velocity as if it were a standard CSS property animation. */\n\n\n if (action === \"scroll\") {\n /* The scroll action uniquely takes an optional \"offset\" option -- specified in pixels -- that offsets the targeted scroll position. */\n var scrollDirection = /^x$/i.test(opts.axis) ? \"Left\" : \"Top\",\n scrollOffset = parseFloat(opts.offset) || 0,\n scrollPositionCurrent,\n scrollPositionCurrentAlternate,\n scrollPositionEnd;\n /* Scroll also uniquely takes an optional \"container\" option, which indicates the parent element that should be scrolled --\r\n as opposed to the browser window itself. This is useful for scrolling toward an element that's inside an overflowing parent element. */\n\n if (opts.container) {\n /* Ensure that either a jQuery object or a raw DOM element was passed in. */\n if (Type.isWrapped(opts.container) || Type.isNode(opts.container)) {\n /* Extract the raw DOM element from the jQuery wrapper. */\n opts.container = opts.container[0] || opts.container;\n /* Note: Unlike other properties in Velocity, the browser's scroll position is never cached since it so frequently changes\r\n (due to the user's natural interaction with the page). */\n\n scrollPositionCurrent = opts.container[\"scroll\" + scrollDirection];\n /* GET */\n\n /* $.position() values are relative to the container's currently viewable area (without taking into account the container's true dimensions\r\n -- say, for example, if the container was not overflowing). Thus, the scroll end value is the sum of the child element's position *and*\r\n the scroll container's current scroll position. */\n\n scrollPositionEnd = scrollPositionCurrent + $(element).position()[scrollDirection.toLowerCase()] + scrollOffset;\n /* GET */\n\n /* If a value other than a jQuery object or a raw DOM element was passed in, default to null so that this option is ignored. */\n } else {\n opts.container = null;\n }\n } else {\n /* If the window itself is being scrolled -- not a containing element -- perform a live scroll position lookup using\r\n the appropriate cached property names (which differ based on browser type). */\n scrollPositionCurrent = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + scrollDirection]];\n /* GET */\n\n /* When scrolling the browser window, cache the alternate axis's current value since window.scrollTo() doesn't let us change only one value at a time. */\n\n scrollPositionCurrentAlternate = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + (scrollDirection === \"Left\" ? \"Top\" : \"Left\")]];\n /* GET */\n\n /* Unlike $.position(), $.offset() values are relative to the browser window's true dimensions -- not merely its currently viewable area --\r\n and therefore end values do not need to be compounded onto current values. */\n\n scrollPositionEnd = $(element).offset()[scrollDirection.toLowerCase()] + scrollOffset;\n /* GET */\n }\n /* Since there's only one format that scroll's associated tweensContainer can take, we create it manually. */\n\n\n tweensContainer = {\n scroll: {\n rootPropertyValue: false,\n startValue: scrollPositionCurrent,\n currentValue: scrollPositionCurrent,\n endValue: scrollPositionEnd,\n unitType: \"\",\n easing: opts.easing,\n scrollData: {\n container: opts.container,\n direction: scrollDirection,\n alternateValue: scrollPositionCurrentAlternate\n }\n },\n element: element\n };\n\n if (Velocity.debug) {\n console.log(\"tweensContainer (scroll): \", tweensContainer.scroll, element);\n }\n /******************************************\r\n Tween Data Construction (for Reverse)\r\n ******************************************/\n\n /* Reverse acts like a \"start\" action in that a property map is animated toward. The only difference is\r\n that the property map used for reverse is the inverse of the map used in the previous call. Thus, we manipulate\r\n the previous call to construct our new map: use the previous map's end values as our new map's start values. Copy over all other data. */\n\n /* Note: Reverse can be directly called via the \"reverse\" parameter, or it can be indirectly triggered via the loop option. (Loops are composed of multiple reverses.) */\n\n /* Note: Reverse calls do not need to be consecutively chained onto a currently-animating element in order to operate on cached values;\r\n there is no harm to reverse being called on a potentially stale data cache since reverse's behavior is simply defined\r\n as reverting to the element's values as they were prior to the previous *Velocity* call. */\n\n } else if (action === \"reverse\") {\n data = Data(element);\n /* Abort if there is no prior animation data to reverse to. */\n\n if (!data) {\n return;\n }\n\n if (!data.tweensContainer) {\n /* Dequeue the element so that this queue entry releases itself immediately, allowing subsequent queue entries to run. */\n $.dequeue(element, opts.queue);\n return;\n } else {\n /*********************\r\n Options Parsing\r\n *********************/\n\n /* If the element was hidden via the display option in the previous call,\r\n revert display to \"auto\" prior to reversal so that the element is visible again. */\n if (data.opts.display === \"none\") {\n data.opts.display = \"auto\";\n }\n\n if (data.opts.visibility === \"hidden\") {\n data.opts.visibility = \"visible\";\n }\n /* If the loop option was set in the previous call, disable it so that \"reverse\" calls aren't recursively generated.\r\n Further, remove the previous call's callback options; typically, users do not want these to be refired. */\n\n\n data.opts.loop = false;\n data.opts.begin = null;\n data.opts.complete = null;\n /* Since we're extending an opts object that has already been extended with the defaults options object,\r\n we remove non-explicitly-defined properties that are auto-assigned values. */\n\n if (!options.easing) {\n delete opts.easing;\n }\n\n if (!options.duration) {\n delete opts.duration;\n }\n /* The opts object used for reversal is an extension of the options object optionally passed into this\r\n reverse call plus the options used in the previous Velocity call. */\n\n\n opts = $.extend({}, data.opts, opts);\n /*************************************\r\n Tweens Container Reconstruction\r\n *************************************/\n\n /* Create a deepy copy (indicated via the true flag) of the previous call's tweensContainer. */\n\n lastTweensContainer = $.extend(true, {}, data ? data.tweensContainer : null);\n /* Manipulate the previous tweensContainer by replacing its end values and currentValues with its start values. */\n\n for (var lastTween in lastTweensContainer) {\n /* In addition to tween data, tweensContainers contain an element property that we ignore here. */\n if (lastTweensContainer.hasOwnProperty(lastTween) && lastTween !== \"element\") {\n var lastStartValue = lastTweensContainer[lastTween].startValue;\n lastTweensContainer[lastTween].startValue = lastTweensContainer[lastTween].currentValue = lastTweensContainer[lastTween].endValue;\n lastTweensContainer[lastTween].endValue = lastStartValue;\n /* Easing is the only option that embeds into the individual tween data (since it can be defined on a per-property basis).\r\n Accordingly, every property's easing value must be updated when an options object is passed in with a reverse call.\r\n The side effect of this extensibility is that all per-property easing values are forcefully reset to the new value. */\n\n if (!Type.isEmptyObject(options)) {\n lastTweensContainer[lastTween].easing = opts.easing;\n }\n\n if (Velocity.debug) {\n console.log(\"reverse tweensContainer (\" + lastTween + \"): \" + JSON.stringify(lastTweensContainer[lastTween]), element);\n }\n }\n }\n\n tweensContainer = lastTweensContainer;\n }\n /*****************************************\r\n Tween Data Construction (for Start)\r\n *****************************************/\n\n } else if (action === \"start\") {\n /*************************\r\n Value Transferring\r\n *************************/\n\n /* If this queue entry follows a previous Velocity-initiated queue entry *and* if this entry was created\r\n while the element was in the process of being animated by Velocity, then this current call is safe to use\r\n the end values from the prior call as its start values. Velocity attempts to perform this value transfer\r\n process whenever possible in order to avoid requerying the DOM. */\n\n /* If values aren't transferred from a prior call and start values were not forcefed by the user (more on this below),\r\n then the DOM is queried for the element's current values as a last resort. */\n\n /* Note: Conversely, animation reversal (and looping) *always* perform inter-call value transfers; they never requery the DOM. */\n data = Data(element);\n /* The per-element isAnimating flag is used to indicate whether it's safe (i.e. the data isn't stale)\r\n to transfer over end values to use as start values. If it's set to true and there is a previous\r\n Velocity call to pull values from, do so. */\n\n if (data && data.tweensContainer && data.isAnimating === true) {\n lastTweensContainer = data.tweensContainer;\n }\n /***************************\r\n Tween Data Calculation\r\n ***************************/\n\n /* This function parses property data and defaults endValue, easing, and startValue as appropriate. */\n\n /* Property map values can either take the form of 1) a single value representing the end value,\r\n or 2) an array in the form of [ endValue, [, easing] [, startValue] ].\r\n The optional third parameter is a forcefed startValue to be used instead of querying the DOM for\r\n the element's current value. Read Velocity's docmentation to learn more about forcefeeding: VelocityJS.org/#forcefeeding */\n\n\n var parsePropertyValue = function parsePropertyValue(valueData, skipResolvingEasing) {\n var endValue, easing, startValue;\n /* If we have a function as the main argument then resolve it first, in case it returns an array that needs to be split */\n\n if (Type.isFunction(valueData)) {\n valueData = valueData.call(element, elementArrayIndex, elementsLength);\n }\n /* Handle the array format, which can be structured as one of three potential overloads:\r\n A) [ endValue, easing, startValue ], B) [ endValue, easing ], or C) [ endValue, startValue ] */\n\n\n if (Type.isArray(valueData)) {\n /* endValue is always the first item in the array. Don't bother validating endValue's value now\r\n since the ensuing property cycling logic does that. */\n endValue = valueData[0];\n /* Two-item array format: If the second item is a number, function, or hex string, treat it as a\r\n start value since easings can only be non-hex strings or arrays. */\n\n if (!Type.isArray(valueData[1]) && /^[\\d-]/.test(valueData[1]) || Type.isFunction(valueData[1]) || CSS.RegEx.isHex.test(valueData[1])) {\n startValue = valueData[1];\n /* Two or three-item array: If the second item is a non-hex string easing name or an array, treat it as an easing. */\n } else if (Type.isString(valueData[1]) && !CSS.RegEx.isHex.test(valueData[1]) && Velocity.Easings[valueData[1]] || Type.isArray(valueData[1])) {\n easing = skipResolvingEasing ? valueData[1] : getEasing(valueData[1], opts.duration);\n /* Don't bother validating startValue's value now since the ensuing property cycling logic inherently does that. */\n\n startValue = valueData[2];\n } else {\n startValue = valueData[1] || valueData[2];\n }\n /* Handle the single-value format. */\n\n } else {\n endValue = valueData;\n }\n /* Default to the call's easing if a per-property easing type was not defined. */\n\n\n if (!skipResolvingEasing) {\n easing = easing || opts.easing;\n }\n /* If functions were passed in as values, pass the function the current element as its context,\r\n plus the element's index and the element set's size as arguments. Then, assign the returned value. */\n\n\n if (Type.isFunction(endValue)) {\n endValue = endValue.call(element, elementArrayIndex, elementsLength);\n }\n\n if (Type.isFunction(startValue)) {\n startValue = startValue.call(element, elementArrayIndex, elementsLength);\n }\n /* Allow startValue to be left as undefined to indicate to the ensuing code that its value was not forcefed. */\n\n\n return [endValue || 0, easing, startValue];\n };\n\n var fixPropertyValue = function fixPropertyValue(property, valueData) {\n /* In case this property is a hook, there are circumstances where we will intend to work on the hook's root property and not the hooked subproperty. */\n var rootProperty = CSS.Hooks.getRoot(property),\n rootPropertyValue = false,\n\n /* Parse out endValue, easing, and startValue from the property's data. */\n endValue = valueData[0],\n easing = valueData[1],\n startValue = valueData[2],\n pattern;\n /**************************\r\n Start Value Sourcing\r\n **************************/\n\n /* Other than for the dummy tween property, properties that are not supported by the browser (and do not have an associated normalization) will\r\n inherently produce no style changes when set, so they are skipped in order to decrease animation tick overhead.\r\n Property support is determined via prefixCheck(), which returns a false flag when no supported is detected. */\n\n /* Note: Since SVG elements have some of their properties directly applied as HTML attributes,\r\n there is no way to check for their explicit browser support, and so we skip skip this check for them. */\n\n if ((!data || !data.isSVG) && rootProperty !== \"tween\" && CSS.Names.prefixCheck(rootProperty)[1] === false && CSS.Normalizations.registered[rootProperty] === undefined) {\n if (Velocity.debug) {\n console.log(\"Skipping [\" + rootProperty + \"] due to a lack of browser support.\");\n }\n\n return;\n }\n /* If the display option is being set to a non-\"none\" (e.g. \"block\") and opacity (filter on IE<=8) is being\r\n animated to an endValue of non-zero, the user's intention is to fade in from invisible, thus we forcefeed opacity\r\n a startValue of 0 if its startValue hasn't already been sourced by value transferring or prior forcefeeding. */\n\n\n if ((opts.display !== undefined && opts.display !== null && opts.display !== \"none\" || opts.visibility !== undefined && opts.visibility !== \"hidden\") && /opacity|filter/.test(property) && !startValue && endValue !== 0) {\n startValue = 0;\n }\n /* If values have been transferred from the previous Velocity call, extract the endValue and rootPropertyValue\r\n for all of the current call's properties that were *also* animated in the previous call. */\n\n /* Note: Value transferring can optionally be disabled by the user via the _cacheValues option. */\n\n\n if (opts._cacheValues && lastTweensContainer && lastTweensContainer[property]) {\n if (startValue === undefined) {\n startValue = lastTweensContainer[property].endValue + lastTweensContainer[property].unitType;\n }\n /* The previous call's rootPropertyValue is extracted from the element's data cache since that's the\r\n instance of rootPropertyValue that gets freshly updated by the tweening process, whereas the rootPropertyValue\r\n attached to the incoming lastTweensContainer is equal to the root property's value prior to any tweening. */\n\n\n rootPropertyValue = data.rootPropertyValueCache[rootProperty];\n /* If values were not transferred from a previous Velocity call, query the DOM as needed. */\n } else {\n /* Handle hooked properties. */\n if (CSS.Hooks.registered[property]) {\n if (startValue === undefined) {\n rootPropertyValue = CSS.getPropertyValue(element, rootProperty);\n /* GET */\n\n /* Note: The following getPropertyValue() call does not actually trigger a DOM query;\r\n getPropertyValue() will extract the hook from rootPropertyValue. */\n\n startValue = CSS.getPropertyValue(element, property, rootPropertyValue);\n /* If startValue is already defined via forcefeeding, do not query the DOM for the root property's value;\r\n just grab rootProperty's zero-value template from CSS.Hooks. This overwrites the element's actual\r\n root property value (if one is set), but this is acceptable since the primary reason users forcefeed is\r\n to avoid DOM queries, and thus we likewise avoid querying the DOM for the root property's value. */\n } else {\n /* Grab this hook's zero-value template, e.g. \"0px 0px 0px black\". */\n rootPropertyValue = CSS.Hooks.templates[rootProperty][1];\n }\n /* Handle non-hooked properties that haven't already been defined via forcefeeding. */\n\n } else if (startValue === undefined) {\n startValue = CSS.getPropertyValue(element, property);\n /* GET */\n }\n }\n /**************************\r\n Value Data Extraction\r\n **************************/\n\n\n var separatedValue,\n endValueUnitType,\n startValueUnitType,\n operator = false;\n /* Separates a property value into its numeric value and its unit type. */\n\n var separateValue = function separateValue(property, value) {\n var unitType, numericValue;\n numericValue = (value || \"0\").toString().toLowerCase()\n /* Match the unit type at the end of the value. */\n .replace(/[%A-z]+$/, function (match) {\n /* Grab the unit type. */\n unitType = match;\n /* Strip the unit type off of value. */\n\n return \"\";\n });\n /* If no unit type was supplied, assign one that is appropriate for this property (e.g. \"deg\" for rotateZ or \"px\" for width). */\n\n if (!unitType) {\n unitType = CSS.Values.getUnitType(property);\n }\n\n return [numericValue, unitType];\n };\n\n if (startValue !== endValue && Type.isString(startValue) && Type.isString(endValue)) {\n pattern = \"\";\n var iStart = 0,\n // index in startValue\n iEnd = 0,\n // index in endValue\n aStart = [],\n // array of startValue numbers\n aEnd = [],\n // array of endValue numbers\n inCalc = 0,\n // Keep track of being inside a \"calc()\" so we don't duplicate it\n inRGB = 0,\n // Keep track of being inside an RGB as we can't use fractional values\n inRGBA = 0; // Keep track of being inside an RGBA as we must pass fractional for the alpha channel\n\n startValue = CSS.Hooks.fixColors(startValue);\n endValue = CSS.Hooks.fixColors(endValue);\n\n while (iStart < startValue.length && iEnd < endValue.length) {\n var cStart = startValue[iStart],\n cEnd = endValue[iEnd];\n\n if (/[\\d\\.-]/.test(cStart) && /[\\d\\.-]/.test(cEnd)) {\n var tStart = cStart,\n // temporary character buffer\n tEnd = cEnd,\n // temporary character buffer\n dotStart = \".\",\n // Make sure we can only ever match a single dot in a decimal\n dotEnd = \".\"; // Make sure we can only ever match a single dot in a decimal\n\n while (++iStart < startValue.length) {\n cStart = startValue[iStart];\n\n if (cStart === dotStart) {\n dotStart = \"..\"; // Can never match two characters\n } else if (!/\\d/.test(cStart)) {\n break;\n }\n\n tStart += cStart;\n }\n\n while (++iEnd < endValue.length) {\n cEnd = endValue[iEnd];\n\n if (cEnd === dotEnd) {\n dotEnd = \"..\"; // Can never match two characters\n } else if (!/\\d/.test(cEnd)) {\n break;\n }\n\n tEnd += cEnd;\n }\n\n var uStart = CSS.Hooks.getUnit(startValue, iStart),\n // temporary unit type\n uEnd = CSS.Hooks.getUnit(endValue, iEnd); // temporary unit type\n\n iStart += uStart.length;\n iEnd += uEnd.length;\n\n if (uStart === uEnd) {\n // Same units\n if (tStart === tEnd) {\n // Same numbers, so just copy over\n pattern += tStart + uStart;\n } else {\n // Different numbers, so store them\n pattern += \"{\" + aStart.length + (inRGB ? \"!\" : \"\") + \"}\" + uStart;\n aStart.push(parseFloat(tStart));\n aEnd.push(parseFloat(tEnd));\n }\n } else {\n // Different units, so put into a \"calc(from + to)\" and animate each side to/from zero\n var nStart = parseFloat(tStart),\n nEnd = parseFloat(tEnd);\n pattern += (inCalc < 5 ? \"calc\" : \"\") + \"(\" + (nStart ? \"{\" + aStart.length + (inRGB ? \"!\" : \"\") + \"}\" : \"0\") + uStart + \" + \" + (nEnd ? \"{\" + (aStart.length + (nStart ? 1 : 0)) + (inRGB ? \"!\" : \"\") + \"}\" : \"0\") + uEnd + \")\";\n\n if (nStart) {\n aStart.push(nStart);\n aEnd.push(0);\n }\n\n if (nEnd) {\n aStart.push(0);\n aEnd.push(nEnd);\n }\n }\n } else if (cStart === cEnd) {\n pattern += cStart;\n iStart++;\n iEnd++; // Keep track of being inside a calc()\n\n if (inCalc === 0 && cStart === \"c\" || inCalc === 1 && cStart === \"a\" || inCalc === 2 && cStart === \"l\" || inCalc === 3 && cStart === \"c\" || inCalc >= 4 && cStart === \"(\") {\n inCalc++;\n } else if (inCalc && inCalc < 5 || inCalc >= 4 && cStart === \")\" && --inCalc < 5) {\n inCalc = 0;\n } // Keep track of being inside an rgb() / rgba()\n\n\n if (inRGB === 0 && cStart === \"r\" || inRGB === 1 && cStart === \"g\" || inRGB === 2 && cStart === \"b\" || inRGB === 3 && cStart === \"a\" || inRGB >= 3 && cStart === \"(\") {\n if (inRGB === 3 && cStart === \"a\") {\n inRGBA = 1;\n }\n\n inRGB++;\n } else if (inRGBA && cStart === \",\") {\n if (++inRGBA > 3) {\n inRGB = inRGBA = 0;\n }\n } else if (inRGBA && inRGB < (inRGBA ? 5 : 4) || inRGB >= (inRGBA ? 4 : 3) && cStart === \")\" && --inRGB < (inRGBA ? 5 : 4)) {\n inRGB = inRGBA = 0;\n }\n } else {\n inCalc = 0; // TODO: changing units, fixing colours\n\n break;\n }\n }\n\n if (iStart !== startValue.length || iEnd !== endValue.length) {\n if (Velocity.debug) {\n console.error(\"Trying to pattern match mis-matched strings [\\\"\" + endValue + \"\\\", \\\"\" + startValue + \"\\\"]\");\n }\n\n pattern = undefined;\n }\n\n if (pattern) {\n if (aStart.length) {\n if (Velocity.debug) {\n console.log(\"Pattern found \\\"\" + pattern + \"\\\" -> \", aStart, aEnd, \"[\" + startValue + \",\" + endValue + \"]\");\n }\n\n startValue = aStart;\n endValue = aEnd;\n endValueUnitType = startValueUnitType = \"\";\n } else {\n pattern = undefined;\n }\n }\n }\n\n if (!pattern) {\n /* Separate startValue. */\n separatedValue = separateValue(property, startValue);\n startValue = separatedValue[0];\n startValueUnitType = separatedValue[1];\n /* Separate endValue, and extract a value operator (e.g. \"+=\", \"-=\") if one exists. */\n\n separatedValue = separateValue(property, endValue);\n endValue = separatedValue[0].replace(/^([+-\\/*])=/, function (match, subMatch) {\n operator = subMatch;\n /* Strip the operator off of the value. */\n\n return \"\";\n });\n endValueUnitType = separatedValue[1];\n /* Parse float values from endValue and startValue. Default to 0 if NaN is returned. */\n\n startValue = parseFloat(startValue) || 0;\n endValue = parseFloat(endValue) || 0;\n /***************************************\r\n Property-Specific Value Conversion\r\n ***************************************/\n\n /* Custom support for properties that don't actually accept the % unit type, but where pollyfilling is trivial and relatively foolproof. */\n\n if (endValueUnitType === \"%\") {\n /* A %-value fontSize/lineHeight is relative to the parent's fontSize (as opposed to the parent's dimensions),\r\n which is identical to the em unit's behavior, so we piggyback off of that. */\n if (/^(fontSize|lineHeight)$/.test(property)) {\n /* Convert % into an em decimal value. */\n endValue = endValue / 100;\n endValueUnitType = \"em\";\n /* For scaleX and scaleY, convert the value into its decimal format and strip off the unit type. */\n } else if (/^scale/.test(property)) {\n endValue = endValue / 100;\n endValueUnitType = \"\";\n /* For RGB components, take the defined percentage of 255 and strip off the unit type. */\n } else if (/(Red|Green|Blue)$/i.test(property)) {\n endValue = endValue / 100 * 255;\n endValueUnitType = \"\";\n }\n }\n }\n /***************************\r\n Unit Ratio Calculation\r\n ***************************/\n\n /* When queried, the browser returns (most) CSS property values in pixels. Therefore, if an endValue with a unit type of\r\n %, em, or rem is animated toward, startValue must be converted from pixels into the same unit type as endValue in order\r\n for value manipulation logic (increment/decrement) to proceed. Further, if the startValue was forcefed or transferred\r\n from a previous call, startValue may also not be in pixels. Unit conversion logic therefore consists of two steps:\r\n 1) Calculating the ratio of %/em/rem/vh/vw relative to pixels\r\n 2) Converting startValue into the same unit of measurement as endValue based on these ratios. */\n\n /* Unit conversion ratios are calculated by inserting a sibling node next to the target node, copying over its position property,\r\n setting values with the target unit type then comparing the returned pixel value. */\n\n /* Note: Even if only one of these unit types is being animated, all unit ratios are calculated at once since the overhead\r\n of batching the SETs and GETs together upfront outweights the potential overhead\r\n of layout thrashing caused by re-querying for uncalculated ratios for subsequently-processed properties. */\n\n /* Todo: Shift this logic into the calls' first tick instance so that it's synced with RAF. */\n\n\n var calculateUnitRatios = function calculateUnitRatios() {\n /************************\r\n Same Ratio Checks\r\n ************************/\n\n /* The properties below are used to determine whether the element differs sufficiently from this call's\r\n previously iterated element to also differ in its unit conversion ratios. If the properties match up with those\r\n of the prior element, the prior element's conversion ratios are used. Like most optimizations in Velocity,\r\n this is done to minimize DOM querying. */\n var sameRatioIndicators = {\n myParent: element.parentNode || document.body,\n\n /* GET */\n position: CSS.getPropertyValue(element, \"position\"),\n\n /* GET */\n fontSize: CSS.getPropertyValue(element, \"fontSize\")\n /* GET */\n\n },\n\n /* Determine if the same % ratio can be used. % is based on the element's position value and its parent's width and height dimensions. */\n samePercentRatio = sameRatioIndicators.position === callUnitConversionData.lastPosition && sameRatioIndicators.myParent === callUnitConversionData.lastParent,\n\n /* Determine if the same em ratio can be used. em is relative to the element's fontSize. */\n sameEmRatio = sameRatioIndicators.fontSize === callUnitConversionData.lastFontSize;\n /* Store these ratio indicators call-wide for the next element to compare against. */\n\n callUnitConversionData.lastParent = sameRatioIndicators.myParent;\n callUnitConversionData.lastPosition = sameRatioIndicators.position;\n callUnitConversionData.lastFontSize = sameRatioIndicators.fontSize;\n /***************************\r\n Element-Specific Units\r\n ***************************/\n\n /* Note: IE8 rounds to the nearest pixel when returning CSS values, thus we perform conversions using a measurement\r\n of 100 (instead of 1) to give our ratios a precision of at least 2 decimal values. */\n\n var measurement = 100,\n unitRatios = {};\n\n if (!sameEmRatio || !samePercentRatio) {\n var dummy = data && data.isSVG ? document.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\") : document.createElement(\"div\");\n Velocity.init(dummy);\n sameRatioIndicators.myParent.appendChild(dummy);\n /* To accurately and consistently calculate conversion ratios, the element's cascaded overflow and box-sizing are stripped.\r\n Similarly, since width/height can be artificially constrained by their min-/max- equivalents, these are controlled for as well. */\n\n /* Note: Overflow must be also be controlled for per-axis since the overflow property overwrites its per-axis values. */\n\n $.each([\"overflow\", \"overflowX\", \"overflowY\"], function (i, property) {\n Velocity.CSS.setPropertyValue(dummy, property, \"hidden\");\n });\n Velocity.CSS.setPropertyValue(dummy, \"position\", sameRatioIndicators.position);\n Velocity.CSS.setPropertyValue(dummy, \"fontSize\", sameRatioIndicators.fontSize);\n Velocity.CSS.setPropertyValue(dummy, \"boxSizing\", \"content-box\");\n /* width and height act as our proxy properties for measuring the horizontal and vertical % ratios. */\n\n $.each([\"minWidth\", \"maxWidth\", \"width\", \"minHeight\", \"maxHeight\", \"height\"], function (i, property) {\n Velocity.CSS.setPropertyValue(dummy, property, measurement + \"%\");\n });\n /* paddingLeft arbitrarily acts as our proxy property for the em ratio. */\n\n Velocity.CSS.setPropertyValue(dummy, \"paddingLeft\", measurement + \"em\");\n /* Divide the returned value by the measurement to get the ratio between 1% and 1px. Default to 1 since working with 0 can produce Infinite. */\n\n unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth = (parseFloat(CSS.getPropertyValue(dummy, \"width\", null, true)) || 1) / measurement;\n /* GET */\n\n unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight = (parseFloat(CSS.getPropertyValue(dummy, \"height\", null, true)) || 1) / measurement;\n /* GET */\n\n unitRatios.emToPx = callUnitConversionData.lastEmToPx = (parseFloat(CSS.getPropertyValue(dummy, \"paddingLeft\")) || 1) / measurement;\n /* GET */\n\n sameRatioIndicators.myParent.removeChild(dummy);\n } else {\n unitRatios.emToPx = callUnitConversionData.lastEmToPx;\n unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth;\n unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight;\n }\n /***************************\r\n Element-Agnostic Units\r\n ***************************/\n\n /* Whereas % and em ratios are determined on a per-element basis, the rem unit only needs to be checked\r\n once per call since it's exclusively dependant upon document.body's fontSize. If this is the first time\r\n that calculateUnitRatios() is being run during this call, remToPx will still be set to its default value of null,\r\n so we calculate it now. */\n\n\n if (callUnitConversionData.remToPx === null) {\n /* Default to browsers' default fontSize of 16px in the case of 0. */\n callUnitConversionData.remToPx = parseFloat(CSS.getPropertyValue(document.body, \"fontSize\")) || 16;\n /* GET */\n }\n /* Similarly, viewport units are %-relative to the window's inner dimensions. */\n\n\n if (callUnitConversionData.vwToPx === null) {\n callUnitConversionData.vwToPx = parseFloat(window.innerWidth) / 100;\n /* GET */\n\n callUnitConversionData.vhToPx = parseFloat(window.innerHeight) / 100;\n /* GET */\n }\n\n unitRatios.remToPx = callUnitConversionData.remToPx;\n unitRatios.vwToPx = callUnitConversionData.vwToPx;\n unitRatios.vhToPx = callUnitConversionData.vhToPx;\n\n if (Velocity.debug >= 1) {\n console.log(\"Unit ratios: \" + JSON.stringify(unitRatios), element);\n }\n\n return unitRatios;\n };\n /********************\r\n Unit Conversion\r\n ********************/\n\n /* The * and / operators, which are not passed in with an associated unit, inherently use startValue's unit. Skip value and unit conversion. */\n\n\n if (/[\\/*]/.test(operator)) {\n endValueUnitType = startValueUnitType;\n /* If startValue and endValue differ in unit type, convert startValue into the same unit type as endValue so that if endValueUnitType\r\n is a relative unit (%, em, rem), the values set during tweening will continue to be accurately relative even if the metrics they depend\r\n on are dynamically changing during the course of the animation. Conversely, if we always normalized into px and used px for setting values, the px ratio\r\n would become stale if the original unit being animated toward was relative and the underlying metrics change during the animation. */\n\n /* Since 0 is 0 in any unit type, no conversion is necessary when startValue is 0 -- we just start at 0 with endValueUnitType. */\n } else if (startValueUnitType !== endValueUnitType && startValue !== 0) {\n /* Unit conversion is also skipped when endValue is 0, but *startValueUnitType* must be used for tween values to remain accurate. */\n\n /* Note: Skipping unit conversion here means that if endValueUnitType was originally a relative unit, the animation won't relatively\r\n match the underlying metrics if they change, but this is acceptable since we're animating toward invisibility instead of toward visibility,\r\n which remains past the point of the animation's completion. */\n if (endValue === 0) {\n endValueUnitType = startValueUnitType;\n } else {\n /* By this point, we cannot avoid unit conversion (it's undesirable since it causes layout thrashing).\r\n If we haven't already, we trigger calculateUnitRatios(), which runs once per element per call. */\n elementUnitConversionData = elementUnitConversionData || calculateUnitRatios();\n /* The following RegEx matches CSS properties that have their % values measured relative to the x-axis. */\n\n /* Note: W3C spec mandates that all of margin and padding's properties (even top and bottom) are %-relative to the *width* of the parent element. */\n\n var axis = /margin|padding|left|right|width|text|word|letter/i.test(property) || /X$/.test(property) || property === \"x\" ? \"x\" : \"y\";\n /* In order to avoid generating n^2 bespoke conversion functions, unit conversion is a two-step process:\r\n 1) Convert startValue into pixels. 2) Convert this new pixel value into endValue's unit type. */\n\n switch (startValueUnitType) {\n case \"%\":\n /* Note: translateX and translateY are the only properties that are %-relative to an element's own dimensions -- not its parent's dimensions.\r\n Velocity does not include a special conversion process to account for this behavior. Therefore, animating translateX/Y from a % value\r\n to a non-% value will produce an incorrect start value. Fortunately, this sort of cross-unit conversion is rarely done by users in practice. */\n startValue *= axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight;\n break;\n\n case \"px\":\n /* px acts as our midpoint in the unit conversion process; do nothing. */\n break;\n\n default:\n startValue *= elementUnitConversionData[startValueUnitType + \"ToPx\"];\n }\n /* Invert the px ratios to convert into to the target unit. */\n\n\n switch (endValueUnitType) {\n case \"%\":\n startValue *= 1 / (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n break;\n\n case \"px\":\n /* startValue is already in px, do nothing; we're done. */\n break;\n\n default:\n startValue *= 1 / elementUnitConversionData[endValueUnitType + \"ToPx\"];\n }\n }\n }\n /*********************\r\n Relative Values\r\n *********************/\n\n /* Operator logic must be performed last since it requires unit-normalized start and end values. */\n\n /* Note: Relative *percent values* do not behave how most people think; while one would expect \"+=50%\"\r\n to increase the property 1.5x its current value, it in fact increases the percent units in absolute terms:\r\n 50 points is added on top of the current % value. */\n\n\n switch (operator) {\n case \"+\":\n endValue = startValue + endValue;\n break;\n\n case \"-\":\n endValue = startValue - endValue;\n break;\n\n case \"*\":\n endValue = startValue * endValue;\n break;\n\n case \"/\":\n endValue = startValue / endValue;\n break;\n }\n /**************************\r\n tweensContainer Push\r\n **************************/\n\n /* Construct the per-property tween object, and push it to the element's tweensContainer. */\n\n\n tweensContainer[property] = {\n rootPropertyValue: rootPropertyValue,\n startValue: startValue,\n currentValue: startValue,\n endValue: endValue,\n unitType: endValueUnitType,\n easing: easing\n };\n\n if (pattern) {\n tweensContainer[property].pattern = pattern;\n }\n\n if (Velocity.debug) {\n console.log(\"tweensContainer (\" + property + \"): \" + JSON.stringify(tweensContainer[property]), element);\n }\n };\n /* Create a tween out of each property, and append its associated data to tweensContainer. */\n\n\n for (var property in propertiesMap) {\n if (!propertiesMap.hasOwnProperty(property)) {\n continue;\n }\n /* The original property name's format must be used for the parsePropertyValue() lookup,\r\n but we then use its camelCase styling to normalize it for manipulation. */\n\n\n var propertyName = CSS.Names.camelCase(property),\n valueData = parsePropertyValue(propertiesMap[property]);\n /* Find shorthand color properties that have been passed a hex string. */\n\n /* Would be quicker to use CSS.Lists.colors.includes() if possible */\n\n if (_inArray(CSS.Lists.colors, propertyName)) {\n /* Parse the value data for each shorthand. */\n var endValue = valueData[0],\n easing = valueData[1],\n startValue = valueData[2];\n\n if (CSS.RegEx.isHex.test(endValue)) {\n /* Convert the hex strings into their RGB component arrays. */\n var colorComponents = [\"Red\", \"Green\", \"Blue\"],\n endValueRGB = CSS.Values.hexToRgb(endValue),\n startValueRGB = startValue ? CSS.Values.hexToRgb(startValue) : undefined;\n /* Inject the RGB component tweens into propertiesMap. */\n\n for (var i = 0; i < colorComponents.length; i++) {\n var dataArray = [endValueRGB[i]];\n\n if (easing) {\n dataArray.push(easing);\n }\n\n if (startValueRGB !== undefined) {\n dataArray.push(startValueRGB[i]);\n }\n\n fixPropertyValue(propertyName + colorComponents[i], dataArray);\n }\n /* If we have replaced a shortcut color value then don't update the standard property name */\n\n\n continue;\n }\n }\n\n fixPropertyValue(propertyName, valueData);\n }\n /* Along with its property data, store a reference to the element itself onto tweensContainer. */\n\n\n tweensContainer.element = element;\n }\n /*****************\r\n Call Push\r\n *****************/\n\n /* Note: tweensContainer can be empty if all of the properties in this call's property map were skipped due to not\r\n being supported by the browser. The element property is used for checking that the tweensContainer has been appended to. */\n\n\n if (tweensContainer.element) {\n /* Apply the \"velocity-animating\" indicator class. */\n CSS.Values.addClass(element, \"velocity-animating\");\n /* The call array houses the tweensContainers for each element being animated in the current call. */\n\n call.push(tweensContainer);\n data = Data(element);\n\n if (data) {\n /* Store the tweensContainer and options if we're working on the default effects queue, so that they can be used by the reverse command. */\n if (opts.queue === \"\") {\n data.tweensContainer = tweensContainer;\n data.opts = opts;\n }\n /* Switch on the element's animating flag. */\n\n\n data.isAnimating = true;\n }\n /* Once the final element in this call's element set has been processed, push the call array onto\r\n Velocity.State.calls for the animation tick to immediately begin processing. */\n\n\n if (elementsIndex === elementsLength - 1) {\n /* Add the current call plus its associated metadata (the element set and the call's options) onto the global call container.\r\n Anything on this call container is subjected to tick() processing. */\n Velocity.State.calls.push([call, elements, opts, null, promiseData.resolver, null, 0]);\n /* If the animation tick isn't running, start it. (Velocity shuts it off when there are no active calls to process.) */\n\n if (Velocity.State.isTicking === false) {\n Velocity.State.isTicking = true;\n /* Start the tick loop. */\n\n tick();\n }\n } else {\n elementsIndex++;\n }\n }\n }\n /* When the queue option is set to false, the call skips the element's queue and fires immediately. */\n\n\n if (opts.queue === false) {\n /* Since this buildQueue call doesn't respect the element's existing queue (which is where a delay option would have been appended),\r\n we manually inject the delay property here with an explicit setTimeout. */\n if (opts.delay) {\n /* Temporarily store delayed elements to facilitate access for global pause/resume */\n var callIndex = Velocity.State.delayedElements.count++;\n Velocity.State.delayedElements[callIndex] = element;\n\n var delayComplete = function (index) {\n return function () {\n /* Clear the temporary element */\n Velocity.State.delayedElements[index] = false;\n /* Finally, issue the call */\n\n buildQueue();\n };\n }(callIndex);\n\n Data(element).delayBegin = new Date().getTime();\n Data(element).delay = parseFloat(opts.delay);\n Data(element).delayTimer = {\n setTimeout: setTimeout(buildQueue, parseFloat(opts.delay)),\n next: delayComplete\n };\n } else {\n buildQueue();\n }\n /* Otherwise, the call undergoes element queueing as normal. */\n\n /* Note: To interoperate with jQuery, Velocity uses jQuery's own $.queue() stack for queuing logic. */\n\n } else {\n $.queue(element, opts.queue, function (next, clearQueue) {\n /* If the clearQueue flag was passed in by the stop command, resolve this call's promise. (Promises can only be resolved once,\r\n so it's fine if this is repeatedly triggered for each element in the associated call.) */\n if (clearQueue === true) {\n if (promiseData.promise) {\n promiseData.resolver(elements);\n }\n /* Do not continue with animation queueing. */\n\n\n return true;\n }\n /* This flag indicates to the upcoming completeCall() function that this queue entry was initiated by Velocity.\r\n See completeCall() for further details. */\n\n\n Velocity.velocityQueueEntryFlag = true;\n buildQueue(next);\n });\n }\n /*********************\r\n Auto-Dequeuing\r\n *********************/\n\n /* As per jQuery's $.queue() behavior, to fire the first non-custom-queue entry on an element, the element\r\n must be dequeued if its queue stack consists *solely* of the current call. (This can be determined by checking\r\n for the \"inprogress\" item that jQuery prepends to active queue stack arrays.) Regardless, whenever the element's\r\n queue is further appended with additional items -- including $.delay()'s or even $.animate() calls, the queue's\r\n first entry is automatically fired. This behavior contrasts that of custom queues, which never auto-fire. */\n\n /* Note: When an element set is being subjected to a non-parallel Velocity call, the animation will not begin until\r\n each one of the elements in the set has reached the end of its individually pre-existing queue chain. */\n\n /* Note: Unfortunately, most people don't fully grasp jQuery's powerful, yet quirky, $.queue() function.\r\n Lean more here: http://stackoverflow.com/questions/1058158/can-somebody-explain-jquery-queue-to-me */\n\n\n if ((opts.queue === \"\" || opts.queue === \"fx\") && $.queue(element)[0] !== \"inprogress\") {\n $.dequeue(element);\n }\n }\n /**************************\r\n Element Set Iteration\r\n **************************/\n\n /* If the \"nodeType\" property exists on the elements variable, we're animating a single element.\r\n Place it in an array so that $.each() can iterate over it. */\n\n\n $.each(elements, function (i, element) {\n /* Ensure each element in a set has a nodeType (is a real element) to avoid throwing errors. */\n if (Type.isNode(element)) {\n processElement(element, i);\n }\n });\n /******************\r\n Option: Loop\r\n ******************/\n\n /* The loop option accepts an integer indicating how many times the element should loop between the values in the\r\n current call's properties map and the element's property values prior to this call. */\n\n /* Note: The loop option's logic is performed here -- after element processing -- because the current call needs\r\n to undergo its queue insertion prior to the loop option generating its series of constituent \"reverse\" calls,\r\n which chain after the current call. Two reverse calls (two \"alternations\") constitute one loop. */\n\n opts = $.extend({}, Velocity.defaults, options);\n opts.loop = parseInt(opts.loop, 10);\n var reverseCallsCount = opts.loop * 2 - 1;\n\n if (opts.loop) {\n /* Double the loop count to convert it into its appropriate number of \"reverse\" calls.\r\n Subtract 1 from the resulting value since the current call is included in the total alternation count. */\n for (var x = 0; x < reverseCallsCount; x++) {\n /* Since the logic for the reverse action occurs inside Queueing and therefore this call's options object\r\n isn't parsed until then as well, the current call's delay option must be explicitly passed into the reverse\r\n call so that the delay logic that occurs inside *Pre-Queueing* can process it. */\n var reverseOptions = {\n delay: opts.delay,\n progress: opts.progress\n };\n /* If a complete callback was passed into this call, transfer it to the loop redirect's final \"reverse\" call\r\n so that it's triggered when the entire redirect is complete (and not when the very first animation is complete). */\n\n if (x === reverseCallsCount - 1) {\n reverseOptions.display = opts.display;\n reverseOptions.visibility = opts.visibility;\n reverseOptions.complete = opts.complete;\n }\n\n animate(elements, \"reverse\", reverseOptions);\n }\n }\n /***************\r\n Chaining\r\n ***************/\n\n /* Return the elements back to the call chain, with wrapped elements taking precedence in case Velocity was called via the $.fn. extension. */\n\n\n return getChain();\n };\n /* Turn Velocity into the animation function, extended with the pre-existing Velocity object. */\n\n\n Velocity = $.extend(animate, Velocity);\n /* For legacy support, also expose the literal animate method. */\n\n Velocity.animate = animate;\n /**************\r\n Timing\r\n **************/\n\n /* Ticker function. */\n\n var ticker = window.requestAnimationFrame || rAFShim;\n /* Inactive browser tabs pause rAF, which results in all active animations immediately sprinting to their completion states when the tab refocuses.\r\n To get around this, we dynamically switch rAF to setTimeout (which the browser *doesn't* pause) when the tab loses focus. We skip this for mobile\r\n devices to avoid wasting battery power on inactive tabs. */\n\n /* Note: Tab focus detection doesn't work on older versions of IE, but that's okay since they don't support rAF to begin with. */\n\n if (!Velocity.State.isMobile && document.hidden !== undefined) {\n var updateTicker = function updateTicker() {\n /* Reassign the rAF function (which the global tick() function uses) based on the tab's focus state. */\n if (document.hidden) {\n ticker = function ticker(callback) {\n /* The tick function needs a truthy first argument in order to pass its internal timestamp check. */\n return setTimeout(function () {\n callback(true);\n }, 16);\n };\n /* The rAF loop has been paused by the browser, so we manually restart the tick. */\n\n\n tick();\n } else {\n ticker = window.requestAnimationFrame || rAFShim;\n }\n };\n /* Page could be sitting in the background at this time (i.e. opened as new tab) so making sure we use correct ticker from the start */\n\n\n updateTicker();\n /* And then run check again every time visibility changes */\n\n document.addEventListener(\"visibilitychange\", updateTicker);\n }\n /************\r\n Tick\r\n ************/\n\n /* Note: All calls to Velocity are pushed to the Velocity.State.calls array, which is fully iterated through upon each tick. */\n\n\n function tick(timestamp) {\n /* An empty timestamp argument indicates that this is the first tick occurence since ticking was turned on.\r\n We leverage this metadata to fully ignore the first tick pass since RAF's initial pass is fired whenever\r\n the browser's next tick sync time occurs, which results in the first elements subjected to Velocity\r\n calls being animated out of sync with any elements animated immediately thereafter. In short, we ignore\r\n the first RAF tick pass so that elements being immediately consecutively animated -- instead of simultaneously animated\r\n by the same Velocity call -- are properly batched into the same initial RAF tick and consequently remain in sync thereafter. */\n if (timestamp) {\n /* We normally use RAF's high resolution timestamp but as it can be significantly offset when the browser is\r\n under high stress we give the option for choppiness over allowing the browser to drop huge chunks of frames.\r\n We use performance.now() and shim it if it doesn't exist for when the tab is hidden. */\n var timeCurrent = Velocity.timestamp && timestamp !== true ? timestamp : performance.now();\n /********************\r\n Call Iteration\r\n ********************/\n\n var callsLength = Velocity.State.calls.length;\n /* To speed up iterating over this array, it is compacted (falsey items -- calls that have completed -- are removed)\r\n when its length has ballooned to a point that can impact tick performance. This only becomes necessary when animation\r\n has been continuous with many elements over a long period of time; whenever all active calls are completed, completeCall() clears Velocity.State.calls. */\n\n if (callsLength > 10000) {\n Velocity.State.calls = compactSparseArray(Velocity.State.calls);\n callsLength = Velocity.State.calls.length;\n }\n /* Iterate through each active call. */\n\n\n for (var i = 0; i < callsLength; i++) {\n /* When a Velocity call is completed, its Velocity.State.calls entry is set to false. Continue on to the next call. */\n if (!Velocity.State.calls[i]) {\n continue;\n }\n /************************\r\n Call-Wide Variables\r\n ************************/\n\n\n var callContainer = Velocity.State.calls[i],\n call = callContainer[0],\n opts = callContainer[2],\n timeStart = callContainer[3],\n firstTick = !timeStart,\n tweenDummyValue = null,\n pauseObject = callContainer[5],\n millisecondsEllapsed = callContainer[6];\n /* If timeStart is undefined, then this is the first time that this call has been processed by tick().\r\n We assign timeStart now so that its value is as close to the real animation start time as possible.\r\n (Conversely, had timeStart been defined when this call was added to Velocity.State.calls, the delay\r\n between that time and now would cause the first few frames of the tween to be skipped since\r\n percentComplete is calculated relative to timeStart.) */\n\n /* Further, subtract 16ms (the approximate resolution of RAF) from the current time value so that the\r\n first tick iteration isn't wasted by animating at 0% tween completion, which would produce the\r\n same style value as the element's current value. */\n\n if (!timeStart) {\n timeStart = Velocity.State.calls[i][3] = timeCurrent - 16;\n }\n /* If a pause object is present, skip processing unless it has been set to resume */\n\n\n if (pauseObject) {\n if (pauseObject.resume === true) {\n /* Update the time start to accomodate the paused completion amount */\n timeStart = callContainer[3] = Math.round(timeCurrent - millisecondsEllapsed - 16);\n /* Remove pause object after processing */\n\n callContainer[5] = null;\n } else {\n continue;\n }\n }\n\n millisecondsEllapsed = callContainer[6] = timeCurrent - timeStart;\n /* The tween's completion percentage is relative to the tween's start time, not the tween's start value\r\n (which would result in unpredictable tween durations since JavaScript's timers are not particularly accurate).\r\n Accordingly, we ensure that percentComplete does not exceed 1. */\n\n var percentComplete = Math.min(millisecondsEllapsed / opts.duration, 1);\n /**********************\r\n Element Iteration\r\n **********************/\n\n /* For every call, iterate through each of the elements in its set. */\n\n for (var j = 0, callLength = call.length; j < callLength; j++) {\n var tweensContainer = call[j],\n element = tweensContainer.element;\n /* Check to see if this element has been deleted midway through the animation by checking for the\r\n continued existence of its data cache. If it's gone, or the element is currently paused, skip animating this element. */\n\n if (!Data(element)) {\n continue;\n }\n\n var transformPropertyExists = false;\n /**********************************\r\n Display & Visibility Toggling\r\n **********************************/\n\n /* If the display option is set to non-\"none\", set it upfront so that the element can become visible before tweening begins.\r\n (Otherwise, display's \"none\" value is set in completeCall() once the animation has completed.) */\n\n if (opts.display !== undefined && opts.display !== null && opts.display !== \"none\") {\n if (opts.display === \"flex\") {\n var flexValues = [\"-webkit-box\", \"-moz-box\", \"-ms-flexbox\", \"-webkit-flex\"];\n $.each(flexValues, function (i, flexValue) {\n CSS.setPropertyValue(element, \"display\", flexValue);\n });\n }\n\n CSS.setPropertyValue(element, \"display\", opts.display);\n }\n /* Same goes with the visibility option, but its \"none\" equivalent is \"hidden\". */\n\n\n if (opts.visibility !== undefined && opts.visibility !== \"hidden\") {\n CSS.setPropertyValue(element, \"visibility\", opts.visibility);\n }\n /************************\r\n Property Iteration\r\n ************************/\n\n /* For every element, iterate through each property. */\n\n\n for (var property in tweensContainer) {\n /* Note: In addition to property tween data, tweensContainer contains a reference to its associated element. */\n if (tweensContainer.hasOwnProperty(property) && property !== \"element\") {\n var tween = tweensContainer[property],\n currentValue,\n\n /* Easing can either be a pre-genereated function or a string that references a pre-registered easing\r\n on the Velocity.Easings object. In either case, return the appropriate easing *function*. */\n easing = Type.isString(tween.easing) ? Velocity.Easings[tween.easing] : tween.easing;\n /******************************\r\n Current Value Calculation\r\n ******************************/\n\n if (Type.isString(tween.pattern)) {\n var patternReplace = percentComplete === 1 ? function ($0, index, round) {\n var result = tween.endValue[index];\n return round ? Math.round(result) : result;\n } : function ($0, index, round) {\n var startValue = tween.startValue[index],\n tweenDelta = tween.endValue[index] - startValue,\n result = startValue + tweenDelta * easing(percentComplete, opts, tweenDelta);\n return round ? Math.round(result) : result;\n };\n currentValue = tween.pattern.replace(/{(\\d+)(!)?}/g, patternReplace);\n } else if (percentComplete === 1) {\n /* If this is the last tick pass (if we've reached 100% completion for this tween),\r\n ensure that currentValue is explicitly set to its target endValue so that it's not subjected to any rounding. */\n currentValue = tween.endValue;\n } else {\n /* Otherwise, calculate currentValue based on the current delta from startValue. */\n var tweenDelta = tween.endValue - tween.startValue;\n currentValue = tween.startValue + tweenDelta * easing(percentComplete, opts, tweenDelta);\n /* If no value change is occurring, don't proceed with DOM updating. */\n }\n\n if (!firstTick && currentValue === tween.currentValue) {\n continue;\n }\n\n tween.currentValue = currentValue;\n /* If we're tweening a fake 'tween' property in order to log transition values, update the one-per-call variable so that\r\n it can be passed into the progress callback. */\n\n if (property === \"tween\") {\n tweenDummyValue = currentValue;\n } else {\n /******************\r\n Hooks: Part I\r\n ******************/\n var hookRoot;\n /* For hooked properties, the newly-updated rootPropertyValueCache is cached onto the element so that it can be used\r\n for subsequent hooks in this call that are associated with the same root property. If we didn't cache the updated\r\n rootPropertyValue, each subsequent update to the root property in this tick pass would reset the previous hook's\r\n updates to rootPropertyValue prior to injection. A nice performance byproduct of rootPropertyValue caching is that\r\n subsequently chained animations using the same hookRoot but a different hook can use this cached rootPropertyValue. */\n\n if (CSS.Hooks.registered[property]) {\n hookRoot = CSS.Hooks.getRoot(property);\n var rootPropertyValueCache = Data(element).rootPropertyValueCache[hookRoot];\n\n if (rootPropertyValueCache) {\n tween.rootPropertyValue = rootPropertyValueCache;\n }\n }\n /*****************\r\n DOM Update\r\n *****************/\n\n /* setPropertyValue() returns an array of the property name and property value post any normalization that may have been performed. */\n\n /* Note: To solve an IE<=8 positioning bug, the unit type is dropped when setting a property value of 0. */\n\n\n var adjustedSetData = CSS.setPropertyValue(element,\n /* SET */\n property, tween.currentValue + (IE < 9 && parseFloat(currentValue) === 0 ? \"\" : tween.unitType), tween.rootPropertyValue, tween.scrollData);\n /*******************\r\n Hooks: Part II\r\n *******************/\n\n /* Now that we have the hook's updated rootPropertyValue (the post-processed value provided by adjustedSetData), cache it onto the element. */\n\n if (CSS.Hooks.registered[property]) {\n /* Since adjustedSetData contains normalized data ready for DOM updating, the rootPropertyValue needs to be re-extracted from its normalized form. ?? */\n if (CSS.Normalizations.registered[hookRoot]) {\n Data(element).rootPropertyValueCache[hookRoot] = CSS.Normalizations.registered[hookRoot](\"extract\", null, adjustedSetData[1]);\n } else {\n Data(element).rootPropertyValueCache[hookRoot] = adjustedSetData[1];\n }\n }\n /***************\r\n Transforms\r\n ***************/\n\n /* Flag whether a transform property is being animated so that flushTransformCache() can be triggered once this tick pass is complete. */\n\n\n if (adjustedSetData[0] === \"transform\") {\n transformPropertyExists = true;\n }\n }\n }\n }\n /****************\r\n mobileHA\r\n ****************/\n\n /* If mobileHA is enabled, set the translate3d transform to null to force hardware acceleration.\r\n It's safe to override this property since Velocity doesn't actually support its animation (hooks are used in its place). */\n\n\n if (opts.mobileHA) {\n /* Don't set the null transform hack if we've already done so. */\n if (Data(element).transformCache.translate3d === undefined) {\n /* All entries on the transformCache object are later concatenated into a single transform string via flushTransformCache(). */\n Data(element).transformCache.translate3d = \"(0px, 0px, 0px)\";\n transformPropertyExists = true;\n }\n }\n\n if (transformPropertyExists) {\n CSS.flushTransformCache(element);\n }\n }\n /* The non-\"none\" display value is only applied to an element once -- when its associated call is first ticked through.\r\n Accordingly, it's set to false so that it isn't re-processed by this call in the next tick. */\n\n\n if (opts.display !== undefined && opts.display !== \"none\") {\n Velocity.State.calls[i][2].display = false;\n }\n\n if (opts.visibility !== undefined && opts.visibility !== \"hidden\") {\n Velocity.State.calls[i][2].visibility = false;\n }\n /* Pass the elements and the timing data (percentComplete, msRemaining, timeStart, tweenDummyValue) into the progress callback. */\n\n\n if (opts.progress) {\n opts.progress.call(callContainer[1], callContainer[1], percentComplete, Math.max(0, timeStart + opts.duration - timeCurrent), timeStart, tweenDummyValue);\n }\n /* If this call has finished tweening, pass its index to completeCall() to handle call cleanup. */\n\n\n if (percentComplete === 1) {\n completeCall(i);\n }\n }\n }\n /* Note: completeCall() sets the isTicking flag to false when the last call on Velocity.State.calls has completed. */\n\n\n if (Velocity.State.isTicking) {\n ticker(tick);\n }\n }\n /**********************\r\n Call Completion\r\n **********************/\n\n /* Note: Unlike tick(), which processes all active calls at once, call completion is handled on a per-call basis. */\n\n\n function completeCall(callIndex, isStopped) {\n /* Ensure the call exists. */\n if (!Velocity.State.calls[callIndex]) {\n return false;\n }\n /* Pull the metadata from the call. */\n\n\n var call = Velocity.State.calls[callIndex][0],\n elements = Velocity.State.calls[callIndex][1],\n opts = Velocity.State.calls[callIndex][2],\n resolver = Velocity.State.calls[callIndex][4];\n var remainingCallsExist = false;\n /*************************\r\n Element Finalization\r\n *************************/\n\n for (var i = 0, callLength = call.length; i < callLength; i++) {\n var element = call[i].element;\n /* If the user set display to \"none\" (intending to hide the element), set it now that the animation has completed. */\n\n /* Note: display:none isn't set when calls are manually stopped (via Velocity(\"stop\"). */\n\n /* Note: Display gets ignored with \"reverse\" calls and infinite loops, since this behavior would be undesirable. */\n\n if (!isStopped && !opts.loop) {\n if (opts.display === \"none\") {\n CSS.setPropertyValue(element, \"display\", opts.display);\n }\n\n if (opts.visibility === \"hidden\") {\n CSS.setPropertyValue(element, \"visibility\", opts.visibility);\n }\n }\n /* If the element's queue is empty (if only the \"inprogress\" item is left at position 0) or if its queue is about to run\r\n a non-Velocity-initiated entry, turn off the isAnimating flag. A non-Velocity-initiatied queue entry's logic might alter\r\n an element's CSS values and thereby cause Velocity's cached value data to go stale. To detect if a queue entry was initiated by Velocity,\r\n we check for the existence of our special Velocity.queueEntryFlag declaration, which minifiers won't rename since the flag\r\n is assigned to jQuery's global $ object and thus exists out of Velocity's own scope. */\n\n\n var data = Data(element);\n\n if (opts.loop !== true && ($.queue(element)[1] === undefined || !/\\.velocityQueueEntryFlag/i.test($.queue(element)[1]))) {\n /* The element may have been deleted. Ensure that its data cache still exists before acting on it. */\n if (data) {\n data.isAnimating = false;\n /* Clear the element's rootPropertyValueCache, which will become stale. */\n\n data.rootPropertyValueCache = {};\n var transformHAPropertyExists = false;\n /* If any 3D transform subproperty is at its default value (regardless of unit type), remove it. */\n\n $.each(CSS.Lists.transforms3D, function (i, transformName) {\n var defaultValue = /^scale/.test(transformName) ? 1 : 0,\n currentValue = data.transformCache[transformName];\n\n if (data.transformCache[transformName] !== undefined && new RegExp(\"^\\\\(\" + defaultValue + \"[^.]\").test(currentValue)) {\n transformHAPropertyExists = true;\n delete data.transformCache[transformName];\n }\n });\n /* Mobile devices have hardware acceleration removed at the end of the animation in order to avoid hogging the GPU's memory. */\n\n if (opts.mobileHA) {\n transformHAPropertyExists = true;\n delete data.transformCache.translate3d;\n }\n /* Flush the subproperty removals to the DOM. */\n\n\n if (transformHAPropertyExists) {\n CSS.flushTransformCache(element);\n }\n /* Remove the \"velocity-animating\" indicator class. */\n\n\n CSS.Values.removeClass(element, \"velocity-animating\");\n }\n }\n /*********************\r\n Option: Complete\r\n *********************/\n\n /* Complete is fired once per call (not once per element) and is passed the full raw DOM element set as both its context and its first argument. */\n\n /* Note: Callbacks aren't fired when calls are manually stopped (via Velocity(\"stop\"). */\n\n\n if (!isStopped && opts.complete && !opts.loop && i === callLength - 1) {\n /* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\n try {\n opts.complete.call(elements, elements);\n } catch (error) {\n setTimeout(function () {\n throw error;\n }, 1);\n }\n }\n /**********************\r\n Promise Resolving\r\n **********************/\n\n /* Note: Infinite loops don't return promises. */\n\n\n if (resolver && opts.loop !== true) {\n resolver(elements);\n }\n /****************************\r\n Option: Loop (Infinite)\r\n ****************************/\n\n\n if (data && opts.loop === true && !isStopped) {\n /* If a rotateX/Y/Z property is being animated by 360 deg with loop:true, swap tween start/end values to enable\r\n continuous iterative rotation looping. (Otherise, the element would just rotate back and forth.) */\n $.each(data.tweensContainer, function (propertyName, tweenContainer) {\n if (/^rotate/.test(propertyName) && (parseFloat(tweenContainer.startValue) - parseFloat(tweenContainer.endValue)) % 360 === 0) {\n var oldStartValue = tweenContainer.startValue;\n tweenContainer.startValue = tweenContainer.endValue;\n tweenContainer.endValue = oldStartValue;\n }\n\n if (/^backgroundPosition/.test(propertyName) && parseFloat(tweenContainer.endValue) === 100 && tweenContainer.unitType === \"%\") {\n tweenContainer.endValue = 0;\n tweenContainer.startValue = 100;\n }\n });\n Velocity(element, \"reverse\", {\n loop: true,\n delay: opts.delay\n });\n }\n /***************\r\n Dequeueing\r\n ***************/\n\n /* Fire the next call in the queue so long as this call's queue wasn't set to false (to trigger a parallel animation),\r\n which would have already caused the next call to fire. Note: Even if the end of the animation queue has been reached,\r\n $.dequeue() must still be called in order to completely clear jQuery's animation queue. */\n\n\n if (opts.queue !== false) {\n $.dequeue(element, opts.queue);\n }\n }\n /************************\r\n Calls Array Cleanup\r\n ************************/\n\n /* Since this call is complete, set it to false so that the rAF tick skips it. This array is later compacted via compactSparseArray().\r\n (For performance reasons, the call is set to false instead of being deleted from the array: http://www.html5rocks.com/en/tutorials/speed/v8/) */\n\n\n Velocity.State.calls[callIndex] = false;\n /* Iterate through the calls array to determine if this was the final in-progress animation.\r\n If so, set a flag to end ticking and clear the calls array. */\n\n for (var j = 0, callsLength = Velocity.State.calls.length; j < callsLength; j++) {\n if (Velocity.State.calls[j] !== false) {\n remainingCallsExist = true;\n break;\n }\n }\n\n if (remainingCallsExist === false) {\n /* tick() will detect this flag upon its next iteration and subsequently turn itself off. */\n Velocity.State.isTicking = false;\n /* Clear the calls array so that its length is reset. */\n\n delete Velocity.State.calls;\n Velocity.State.calls = [];\n }\n }\n /******************\r\n Frameworks\r\n ******************/\n\n /* Both jQuery and Zepto allow their $.fn object to be extended to allow wrapped elements to be subjected to plugin calls.\r\n If either framework is loaded, register a \"velocity\" extension pointing to Velocity's core animate() method. Velocity\r\n also registers itself onto a global container (window.jQuery || window.Zepto || window) so that certain features are\r\n accessible beyond just a per-element scope. This master object contains an .animate() method, which is later assigned to $.fn\r\n (if jQuery or Zepto are present). Accordingly, Velocity can both act on wrapped DOM elements and stand alone for targeting raw DOM elements. */\n\n\n global.Velocity = Velocity;\n\n if (global !== window) {\n /* Assign the element function to Velocity's core animate() method. */\n global.fn.velocity = animate;\n /* Assign the object function's defaults to Velocity's global defaults object. */\n\n global.fn.velocity.defaults = Velocity.defaults;\n }\n /***********************\r\n Packaged Redirects\r\n ***********************/\n\n /* slideUp, slideDown */\n\n\n $.each([\"Down\", \"Up\"], function (i, direction) {\n Velocity.Redirects[\"slide\" + direction] = function (element, options, elementsIndex, elementsSize, elements, promiseData) {\n var opts = $.extend({}, options),\n begin = opts.begin,\n complete = opts.complete,\n inlineValues = {},\n computedValues = {\n height: \"\",\n marginTop: \"\",\n marginBottom: \"\",\n paddingTop: \"\",\n paddingBottom: \"\"\n };\n\n if (opts.display === undefined) {\n /* Show the element before slideDown begins and hide the element after slideUp completes. */\n\n /* Note: Inline elements cannot have dimensions animated, so they're reverted to inline-block. */\n opts.display = direction === \"Down\" ? Velocity.CSS.Values.getDisplayType(element) === \"inline\" ? \"inline-block\" : \"block\" : \"none\";\n }\n\n opts.begin = function () {\n /* If the user passed in a begin callback, fire it now. */\n if (elementsIndex === 0 && begin) {\n begin.call(elements, elements);\n }\n /* Cache the elements' original vertical dimensional property values so that we can animate back to them. */\n\n\n for (var property in computedValues) {\n if (!computedValues.hasOwnProperty(property)) {\n continue;\n }\n\n inlineValues[property] = element.style[property];\n /* For slideDown, use forcefeeding to animate all vertical properties from 0. For slideUp,\r\n use forcefeeding to start from computed values and animate down to 0. */\n\n var propertyValue = CSS.getPropertyValue(element, property);\n computedValues[property] = direction === \"Down\" ? [propertyValue, 0] : [0, propertyValue];\n }\n /* Force vertical overflow content to clip so that sliding works as expected. */\n\n\n inlineValues.overflow = element.style.overflow;\n element.style.overflow = \"hidden\";\n };\n\n opts.complete = function () {\n /* Reset element to its pre-slide inline values once its slide animation is complete. */\n for (var property in inlineValues) {\n if (inlineValues.hasOwnProperty(property)) {\n element.style[property] = inlineValues[property];\n }\n }\n /* If the user passed in a complete callback, fire it now. */\n\n\n if (elementsIndex === elementsSize - 1) {\n if (complete) {\n complete.call(elements, elements);\n }\n\n if (promiseData) {\n promiseData.resolver(elements);\n }\n }\n };\n\n Velocity(element, computedValues, opts);\n };\n });\n /* fadeIn, fadeOut */\n\n $.each([\"In\", \"Out\"], function (i, direction) {\n Velocity.Redirects[\"fade\" + direction] = function (element, options, elementsIndex, elementsSize, elements, promiseData) {\n var opts = $.extend({}, options),\n complete = opts.complete,\n propertiesMap = {\n opacity: direction === \"In\" ? 1 : 0\n };\n /* Since redirects are triggered individually for each element in the animated set, avoid repeatedly triggering\r\n callbacks by firing them only when the final element has been reached. */\n\n if (elementsIndex !== 0) {\n opts.begin = null;\n }\n\n if (elementsIndex !== elementsSize - 1) {\n opts.complete = null;\n } else {\n opts.complete = function () {\n if (complete) {\n complete.call(elements, elements);\n }\n\n if (promiseData) {\n promiseData.resolver(elements);\n }\n };\n }\n /* If a display was passed in, use it. Otherwise, default to \"none\" for fadeOut or the element-specific default for fadeIn. */\n\n /* Note: We allow users to pass in \"null\" to skip display setting altogether. */\n\n\n if (opts.display === undefined) {\n opts.display = direction === \"In\" ? \"auto\" : \"none\";\n }\n\n Velocity(this, propertiesMap, opts);\n };\n });\n return Velocity;\n }(window.jQuery || window.Zepto || window, window, window ? window.document : undefined);\n});\n/******************\r\n Known Issues\r\n ******************/\n\n/* The CSS spec mandates that the translateX/Y/Z transforms are %-relative to the element itself -- not its parent.\r\n Velocity, however, doesn't make this distinction. Thus, converting to or from the % unit with these subproperties\r\n will produce an inaccurate conversion value. The same issue exists with the cx/cy attributes of SVG circles and ellipses. */","module.exports = function (module) {\n if (!module.webpackPolyfill) {\n module.deprecate = function () {};\n\n module.paths = []; // module.parent = undefined by default\n\n if (!module.children) module.children = [];\n Object.defineProperty(module, \"loaded\", {\n enumerable: true,\n get: function get() {\n return module.l;\n }\n });\n Object.defineProperty(module, \"id\", {\n enumerable: true,\n get: function get() {\n return module.i;\n }\n });\n module.webpackPolyfill = 1;\n }\n\n return module;\n};","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nvar g; // This works in non-strict mode\n\ng = function () {\n return this;\n}();\n\ntry {\n // This works if eval is allowed (see CSP)\n g = g || new Function(\"return this\")();\n} catch (e) {\n // This works if the window reference is available\n if ((typeof window === \"undefined\" ? \"undefined\" : _typeof(window)) === \"object\") g = window;\n} // g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\n\nmodule.exports = g;","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\n!function (t) {\n if (\"object\" == (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) && \"undefined\" != typeof module) module.exports = t();else if (\"function\" == typeof define && define.amd) define([], t);else {\n var e;\n \"undefined\" != typeof window ? e = window : \"undefined\" != typeof global ? e = global : \"undefined\" != typeof self && (e = self), e.Slideout = t();\n }\n}(function () {\n var t, e, n;\n return function i(t, e, n) {\n function o(r, a) {\n if (!e[r]) {\n if (!t[r]) {\n var u = typeof require == \"function\" && require;\n if (!a && u) return u(r, !0);\n if (s) return s(r, !0);\n var l = new Error(\"Cannot find module '\" + r + \"'\");\n throw l.code = \"MODULE_NOT_FOUND\", l;\n }\n\n var f = e[r] = {\n exports: {}\n };\n t[r][0].call(f.exports, function (e) {\n var n = t[r][1][e];\n return o(n ? n : e);\n }, f, f.exports, i, t, e, n);\n }\n\n return e[r].exports;\n }\n\n var s = typeof require == \"function\" && require;\n\n for (var r = 0; r < n.length; r++) {\n o(n[r]);\n }\n\n return o;\n }({\n 1: [function (t, e, n) {\n \"use strict\";\n\n var i = t(\"decouple\");\n var o = t(\"emitter\");\n var s;\n var r = false;\n var a = window.document;\n var u = a.documentElement;\n var l = window.navigator.msPointerEnabled;\n var f = {\n start: l ? \"MSPointerDown\" : \"touchstart\",\n move: l ? \"MSPointerMove\" : \"touchmove\",\n end: l ? \"MSPointerUp\" : \"touchend\"\n };\n\n var h = function v() {\n var t = /^(Webkit|Khtml|Moz|ms|O)(?=[A-Z])/;\n var e = a.getElementsByTagName(\"script\")[0].style;\n\n for (var n in e) {\n if (t.test(n)) {\n return \"-\" + n.match(t)[0].toLowerCase() + \"-\";\n }\n }\n\n if (\"WebkitOpacity\" in e) {\n return \"-webkit-\";\n }\n\n if (\"KhtmlOpacity\" in e) {\n return \"-khtml-\";\n }\n\n return \"\";\n }();\n\n function c(t, e) {\n for (var n in e) {\n if (e[n]) {\n t[n] = e[n];\n }\n }\n\n return t;\n }\n\n function p(t, e) {\n t.prototype = c(t.prototype || {}, e.prototype);\n }\n\n function d(t) {\n while (t.parentNode) {\n if (t.getAttribute(\"data-slideout-ignore\") !== null) {\n return t;\n }\n\n t = t.parentNode;\n }\n\n return null;\n }\n\n function _(t) {\n t = t || {};\n this._startOffsetX = 0;\n this._currentOffsetX = 0;\n this._opening = false;\n this._moved = false;\n this._opened = false;\n this._preventOpen = false;\n this._touch = t.touch === undefined ? true : t.touch && true;\n this._side = t.side || \"left\";\n this.panel = t.panel;\n this.menu = t.menu;\n\n if (!this.panel.classList.contains(\"slideout-panel\")) {\n this.panel.classList.add(\"slideout-panel\");\n }\n\n if (!this.panel.classList.contains(\"slideout-panel-\" + this._side)) {\n this.panel.classList.add(\"slideout-panel-\" + this._side);\n }\n\n if (!this.menu.classList.contains(\"slideout-menu\")) {\n this.menu.classList.add(\"slideout-menu\");\n }\n\n if (!this.menu.classList.contains(\"slideout-menu-\" + this._side)) {\n this.menu.classList.add(\"slideout-menu-\" + this._side);\n }\n\n this._fx = t.fx || \"ease\";\n this._duration = parseInt(t.duration, 10) || 300;\n this._tolerance = parseInt(t.tolerance, 10) || 70;\n this._padding = this._translateTo = parseInt(t.padding, 10) || 256;\n this._orientation = this._side === \"right\" ? -1 : 1;\n this._translateTo *= this._orientation;\n\n if (this._touch) {\n this._initTouchEvents();\n }\n }\n\n p(_, o);\n\n _.prototype.open = function () {\n var t = this;\n this.emit(\"beforeopen\");\n\n if (!u.classList.contains(\"slideout-open\")) {\n u.classList.add(\"slideout-open\");\n }\n\n this._setTransition();\n\n this._translateXTo(this._translateTo);\n\n this._opened = true;\n setTimeout(function () {\n t.panel.style.transition = t.panel.style[\"-webkit-transition\"] = \"\";\n t.emit(\"open\");\n }, this._duration + 50);\n return this;\n };\n\n _.prototype.close = function () {\n var t = this;\n\n if (!this.isOpen() && !this._opening) {\n return this;\n }\n\n this.emit(\"beforeclose\");\n\n this._setTransition();\n\n this._translateXTo(0);\n\n this._opened = false;\n setTimeout(function () {\n u.classList.remove(\"slideout-open\");\n t.panel.style.transition = t.panel.style[\"-webkit-transition\"] = t.panel.style[h + \"transform\"] = t.panel.style.transform = \"\";\n t.emit(\"close\");\n }, this._duration + 50);\n return this;\n };\n\n _.prototype.toggle = function () {\n return this.isOpen() ? this.close() : this.open();\n };\n\n _.prototype.isOpen = function () {\n return this._opened;\n };\n\n _.prototype._translateXTo = function (t) {\n this._currentOffsetX = t;\n this.panel.style[h + \"transform\"] = this.panel.style.transform = \"translateX(\" + t + \"px)\";\n return this;\n };\n\n _.prototype._setTransition = function () {\n this.panel.style[h + \"transition\"] = this.panel.style.transition = h + \"transform \" + this._duration + \"ms \" + this._fx;\n return this;\n };\n\n _.prototype._initTouchEvents = function () {\n var t = this;\n this._onScrollFn = i(a, \"scroll\", function () {\n if (!t._moved) {\n clearTimeout(s);\n r = true;\n s = setTimeout(function () {\n r = false;\n }, 250);\n }\n });\n\n this._preventMove = function (e) {\n if (t._moved) {\n e.preventDefault();\n }\n };\n\n a.addEventListener(f.move, this._preventMove);\n\n this._resetTouchFn = function (e) {\n if (typeof e.touches === \"undefined\") {\n return;\n }\n\n t._moved = false;\n t._opening = false;\n t._startOffsetX = e.touches[0].pageX;\n t._preventOpen = !t._touch || !t.isOpen() && t.menu.clientWidth !== 0;\n };\n\n this.panel.addEventListener(f.start, this._resetTouchFn);\n\n this._onTouchCancelFn = function () {\n t._moved = false;\n t._opening = false;\n };\n\n this.panel.addEventListener(\"touchcancel\", this._onTouchCancelFn);\n\n this._onTouchEndFn = function () {\n if (t._moved) {\n t.emit(\"translateend\");\n t._opening && Math.abs(t._currentOffsetX) > t._tolerance ? t.open() : t.close();\n }\n\n t._moved = false;\n };\n\n this.panel.addEventListener(f.end, this._onTouchEndFn);\n\n this._onTouchMoveFn = function (e) {\n if (r || t._preventOpen || typeof e.touches === \"undefined\" || d(e.target)) {\n return;\n }\n\n var n = e.touches[0].clientX - t._startOffsetX;\n var i = t._currentOffsetX = n;\n\n if (Math.abs(i) > t._padding) {\n return;\n }\n\n if (Math.abs(n) > 20) {\n t._opening = true;\n var o = n * t._orientation;\n\n if (t._opened && o > 0 || !t._opened && o < 0) {\n return;\n }\n\n if (!t._moved) {\n t.emit(\"translatestart\");\n }\n\n if (o <= 0) {\n i = n + t._padding * t._orientation;\n t._opening = false;\n }\n\n if (!(t._moved && u.classList.contains(\"slideout-open\"))) {\n u.classList.add(\"slideout-open\");\n }\n\n t.panel.style[h + \"transform\"] = t.panel.style.transform = \"translateX(\" + i + \"px)\";\n t.emit(\"translate\", i);\n t._moved = true;\n }\n };\n\n this.panel.addEventListener(f.move, this._onTouchMoveFn);\n return this;\n };\n\n _.prototype.enableTouch = function () {\n this._touch = true;\n return this;\n };\n\n _.prototype.disableTouch = function () {\n this._touch = false;\n return this;\n };\n\n _.prototype.destroy = function () {\n this.close();\n a.removeEventListener(f.move, this._preventMove);\n this.panel.removeEventListener(f.start, this._resetTouchFn);\n this.panel.removeEventListener(\"touchcancel\", this._onTouchCancelFn);\n this.panel.removeEventListener(f.end, this._onTouchEndFn);\n this.panel.removeEventListener(f.move, this._onTouchMoveFn);\n a.removeEventListener(\"scroll\", this._onScrollFn);\n\n this.open = this.close = function () {};\n\n return this;\n };\n\n e.exports = _;\n }, {\n decouple: 2,\n emitter: 3\n }],\n 2: [function (t, e, n) {\n \"use strict\";\n\n var i = function () {\n return window.requestAnimationFrame || window.webkitRequestAnimationFrame || function (t) {\n window.setTimeout(t, 1e3 / 60);\n };\n }();\n\n function o(t, e, n) {\n var o,\n s = false;\n\n function r(t) {\n o = t;\n a();\n }\n\n function a() {\n if (!s) {\n i(u);\n s = true;\n }\n }\n\n function u() {\n n.call(t, o);\n s = false;\n }\n\n t.addEventListener(e, r, false);\n return r;\n }\n\n e.exports = o;\n }, {}],\n 3: [function (t, e, n) {\n \"use strict\";\n\n var i = function i(t, e) {\n if (!(t instanceof e)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n };\n\n n.__esModule = true;\n\n var o = function () {\n function t() {\n i(this, t);\n }\n\n t.prototype.on = function e(t, n) {\n this._eventCollection = this._eventCollection || {};\n this._eventCollection[t] = this._eventCollection[t] || [];\n\n this._eventCollection[t].push(n);\n\n return this;\n };\n\n t.prototype.once = function n(t, e) {\n var n = this;\n\n function i() {\n n.off(t, i);\n e.apply(this, arguments);\n }\n\n i.listener = e;\n this.on(t, i);\n return this;\n };\n\n t.prototype.off = function o(t, e) {\n var n = undefined;\n\n if (!this._eventCollection || !(n = this._eventCollection[t])) {\n return this;\n }\n\n n.forEach(function (t, i) {\n if (t === e || t.listener === e) {\n n.splice(i, 1);\n }\n });\n\n if (n.length === 0) {\n delete this._eventCollection[t];\n }\n\n return this;\n };\n\n t.prototype.emit = function s(t) {\n var e = this;\n\n for (var n = arguments.length, i = Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++) {\n i[o - 1] = arguments[o];\n }\n\n var s = undefined;\n\n if (!this._eventCollection || !(s = this._eventCollection[t])) {\n return this;\n }\n\n s = s.slice(0);\n s.forEach(function (t) {\n return t.apply(e, i);\n });\n return this;\n };\n\n return t;\n }();\n\n n[\"default\"] = o;\n e.exports = n[\"default\"];\n }, {}]\n }, {}, [1])(1);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\n/*! smooth-scroll v16.1.3 | (c) 2020 Chris Ferdinandi | MIT License | http://github.com/cferdinandi/smooth-scroll */\n!function (e, t) {\n \"function\" == typeof define && define.amd ? define([], function () {\n return t(e);\n }) : \"object\" == (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) ? module.exports = t(e) : e.SmoothScroll = t(e);\n}(\"undefined\" != typeof global ? global : \"undefined\" != typeof window ? window : this, function (C) {\n \"use strict\";\n\n var w = {\n ignore: \"[data-scroll-ignore]\",\n header: null,\n topOnEmptyHash: !0,\n speed: 500,\n speedAsDuration: !1,\n durationMax: null,\n durationMin: null,\n clip: !0,\n offset: 0,\n easing: \"easeInOutCubic\",\n customEasing: null,\n updateURL: !0,\n popstate: !0,\n emitEvents: !0\n },\n L = function L() {\n var n = {};\n return Array.prototype.forEach.call(arguments, function (e) {\n for (var t in e) {\n if (!e.hasOwnProperty(t)) return;\n n[t] = e[t];\n }\n }), n;\n },\n r = function r(e) {\n \"#\" === e.charAt(0) && (e = e.substr(1));\n\n for (var t, n = String(e), o = n.length, a = -1, r = \"\", i = n.charCodeAt(0); ++a < o;) {\n if (0 === (t = n.charCodeAt(a))) throw new InvalidCharacterError(\"Invalid character: the input contains U+0000.\");\n 1 <= t && t <= 31 || 127 == t || 0 === a && 48 <= t && t <= 57 || 1 === a && 48 <= t && t <= 57 && 45 === i ? r += \"\\\\\" + t.toString(16) + \" \" : r += 128 <= t || 45 === t || 95 === t || 48 <= t && t <= 57 || 65 <= t && t <= 90 || 97 <= t && t <= 122 ? n.charAt(a) : \"\\\\\" + n.charAt(a);\n }\n\n return \"#\" + r;\n },\n H = function H() {\n return Math.max(document.body.scrollHeight, document.documentElement.scrollHeight, document.body.offsetHeight, document.documentElement.offsetHeight, document.body.clientHeight, document.documentElement.clientHeight);\n },\n q = function q(e) {\n return e ? (t = e, parseInt(C.getComputedStyle(t).height, 10) + e.offsetTop) : 0;\n var t;\n },\n x = function x(e, t, n) {\n 0 === e && document.body.focus(), n || (e.focus(), document.activeElement !== e && (e.setAttribute(\"tabindex\", \"-1\"), e.focus(), e.style.outline = \"none\"), C.scrollTo(0, t));\n },\n Q = function Q(e, t, n, o) {\n if (t.emitEvents && \"function\" == typeof C.CustomEvent) {\n var a = new CustomEvent(e, {\n bubbles: !0,\n detail: {\n anchor: n,\n toggle: o\n }\n });\n document.dispatchEvent(a);\n }\n };\n\n return function (o, e) {\n var O,\n a,\n I,\n M,\n A = {};\n A.cancelScroll = function (e) {\n cancelAnimationFrame(M), M = null, e || Q(\"scrollCancel\", O);\n }, A.animateScroll = function (a, r, e) {\n A.cancelScroll();\n var i = L(O || w, e || {}),\n s = \"[object Number]\" === Object.prototype.toString.call(a),\n t = s || !a.tagName ? null : a;\n\n if (s || t) {\n var c = C.pageYOffset;\n i.header && !I && (I = document.querySelector(i.header));\n\n var n,\n o,\n u,\n l,\n d,\n f,\n m,\n h,\n p = q(I),\n g = s ? a : function (e, t, n, o) {\n var a = 0;\n if (e.offsetParent) for (; a += e.offsetTop, e = e.offsetParent;) {\n ;\n }\n return a = Math.max(a - t - n, 0), o && (a = Math.min(a, H() - C.innerHeight)), a;\n }(t, p, parseInt(\"function\" == typeof i.offset ? i.offset(a, r) : i.offset, 10), i.clip),\n y = g - c,\n v = H(),\n S = 0,\n E = (n = y, u = (o = i).speedAsDuration ? o.speed : Math.abs(n / 1e3 * o.speed), o.durationMax && u > o.durationMax ? o.durationMax : o.durationMin && u < o.durationMin ? o.durationMin : parseInt(u, 10)),\n b = function b(e) {\n var t, n, o;\n l || (l = e), S += e - l, f = c + y * (n = d = 1 < (d = 0 === E ? 0 : S / E) ? 1 : d, \"easeInQuad\" === (t = i).easing && (o = n * n), \"easeOutQuad\" === t.easing && (o = n * (2 - n)), \"easeInOutQuad\" === t.easing && (o = n < .5 ? 2 * n * n : (4 - 2 * n) * n - 1), \"easeInCubic\" === t.easing && (o = n * n * n), \"easeOutCubic\" === t.easing && (o = --n * n * n + 1), \"easeInOutCubic\" === t.easing && (o = n < .5 ? 4 * n * n * n : (n - 1) * (2 * n - 2) * (2 * n - 2) + 1), \"easeInQuart\" === t.easing && (o = n * n * n * n), \"easeOutQuart\" === t.easing && (o = 1 - --n * n * n * n), \"easeInOutQuart\" === t.easing && (o = n < .5 ? 8 * n * n * n * n : 1 - 8 * --n * n * n * n), \"easeInQuint\" === t.easing && (o = n * n * n * n * n), \"easeOutQuint\" === t.easing && (o = 1 + --n * n * n * n * n), \"easeInOutQuint\" === t.easing && (o = n < .5 ? 16 * n * n * n * n * n : 1 + 16 * --n * n * n * n * n), t.customEasing && (o = t.customEasing(n)), o || n), C.scrollTo(0, Math.floor(f)), function (e, t) {\n var n = C.pageYOffset;\n if (e == t || n == t || (c < t && C.innerHeight + n) >= v) return A.cancelScroll(!0), x(a, t, s), Q(\"scrollStop\", i, a, r), !(M = l = null);\n }(f, g) || (M = C.requestAnimationFrame(b), l = e);\n };\n\n 0 === C.pageYOffset && C.scrollTo(0, 0), m = a, h = i, s || history.pushState && h.updateURL && history.pushState({\n smoothScroll: JSON.stringify(h),\n anchor: m.id\n }, document.title, m === document.documentElement ? \"#top\" : \"#\" + m.id), \"matchMedia\" in C && C.matchMedia(\"(prefers-reduced-motion)\").matches ? x(a, Math.floor(g), !1) : (Q(\"scrollStart\", i, a, r), A.cancelScroll(!0), C.requestAnimationFrame(b));\n }\n };\n\n var t = function t(e) {\n if (!e.defaultPrevented && !(0 !== e.button || e.metaKey || e.ctrlKey || e.shiftKey) && \"closest\" in e.target && (a = e.target.closest(o)) && \"a\" === a.tagName.toLowerCase() && !e.target.closest(O.ignore) && a.hostname === C.location.hostname && a.pathname === C.location.pathname && /#/.test(a.href)) {\n var t, n;\n\n try {\n t = r(decodeURIComponent(a.hash));\n } catch (e) {\n t = r(a.hash);\n }\n\n if (\"#\" === t) {\n if (!O.topOnEmptyHash) return;\n n = document.documentElement;\n } else n = document.querySelector(t);\n\n (n = n || \"#top\" !== t ? n : document.documentElement) && (e.preventDefault(), function (e) {\n if (history.replaceState && e.updateURL && !history.state) {\n var t = C.location.hash;\n t = t || \"\", history.replaceState({\n smoothScroll: JSON.stringify(e),\n anchor: t || C.pageYOffset\n }, document.title, t || C.location.href);\n }\n }(O), A.animateScroll(n, a));\n }\n },\n n = function n(e) {\n if (null !== history.state && history.state.smoothScroll && history.state.smoothScroll === JSON.stringify(O)) {\n var t = history.state.anchor;\n \"string\" == typeof t && t && !(t = document.querySelector(r(history.state.anchor))) || A.animateScroll(t, null, {\n updateURL: !1\n });\n }\n };\n\n A.destroy = function () {\n O && (document.removeEventListener(\"click\", t, !1), C.removeEventListener(\"popstate\", n, !1), A.cancelScroll(), M = I = a = O = null);\n };\n\n return function () {\n if (!(\"querySelector\" in document && \"addEventListener\" in C && \"requestAnimationFrame\" in C && \"closest\" in C.Element.prototype)) throw \"Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.\";\n A.destroy(), O = L(w, e || {}), I = O.header ? document.querySelector(O.header) : null, document.addEventListener(\"click\", t, !1), O.updateURL && O.popstate && C.addEventListener(\"popstate\", n, !1);\n }(), A;\n };\n});","/**!\n * @fileOverview Kickass library to create and place poppers near their reference elements.\n * @version 1.16.1\n * @license\n * Copyright (c) 2016 Federico Zivolo and contributors\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nvar isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined';\n\nvar timeoutDuration = function () {\n var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];\n\n for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) {\n if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {\n return 1;\n }\n }\n\n return 0;\n}();\n\nfunction microtaskDebounce(fn) {\n var called = false;\n return function () {\n if (called) {\n return;\n }\n\n called = true;\n window.Promise.resolve().then(function () {\n called = false;\n fn();\n });\n };\n}\n\nfunction taskDebounce(fn) {\n var scheduled = false;\n return function () {\n if (!scheduled) {\n scheduled = true;\n setTimeout(function () {\n scheduled = false;\n fn();\n }, timeoutDuration);\n }\n };\n}\n\nvar supportsMicroTasks = isBrowser && window.Promise;\n/**\n* Create a debounced version of a method, that's asynchronously deferred\n* but called in the minimum time possible.\n*\n* @method\n* @memberof Popper.Utils\n* @argument {Function} fn\n* @returns {Function}\n*/\n\nvar debounce = supportsMicroTasks ? microtaskDebounce : taskDebounce;\n/**\n * Check if the given variable is a function\n * @method\n * @memberof Popper.Utils\n * @argument {Any} functionToCheck - variable to check\n * @returns {Boolean} answer to: is a function?\n */\n\nfunction isFunction(functionToCheck) {\n var getType = {};\n return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';\n}\n/**\n * Get CSS computed property of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Eement} element\n * @argument {String} property\n */\n\n\nfunction getStyleComputedProperty(element, property) {\n if (element.nodeType !== 1) {\n return [];\n } // NOTE: 1 DOM access here\n\n\n var window = element.ownerDocument.defaultView;\n var css = window.getComputedStyle(element, null);\n return property ? css[property] : css;\n}\n/**\n * Returns the parentNode or the host of the element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} parent\n */\n\n\nfunction getParentNode(element) {\n if (element.nodeName === 'HTML') {\n return element;\n }\n\n return element.parentNode || element.host;\n}\n/**\n * Returns the scrolling parent of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} scroll parent\n */\n\n\nfunction getScrollParent(element) {\n // Return body, `getScroll` will take care to get the correct `scrollTop` from it\n if (!element) {\n return document.body;\n }\n\n switch (element.nodeName) {\n case 'HTML':\n case 'BODY':\n return element.ownerDocument.body;\n\n case '#document':\n return element.body;\n } // Firefox want us to check `-x` and `-y` variations as well\n\n\n var _getStyleComputedProp = getStyleComputedProperty(element),\n overflow = _getStyleComputedProp.overflow,\n overflowX = _getStyleComputedProp.overflowX,\n overflowY = _getStyleComputedProp.overflowY;\n\n if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) {\n return element;\n }\n\n return getScrollParent(getParentNode(element));\n}\n/**\n * Returns the reference node of the reference object, or the reference object itself.\n * @method\n * @memberof Popper.Utils\n * @param {Element|Object} reference - the reference element (the popper will be relative to this)\n * @returns {Element} parent\n */\n\n\nfunction getReferenceNode(reference) {\n return reference && reference.referenceNode ? reference.referenceNode : reference;\n}\n\nvar isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode);\nvar isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent);\n/**\n * Determines if the browser is Internet Explorer\n * @method\n * @memberof Popper.Utils\n * @param {Number} version to check\n * @returns {Boolean} isIE\n */\n\nfunction isIE(version) {\n if (version === 11) {\n return isIE11;\n }\n\n if (version === 10) {\n return isIE10;\n }\n\n return isIE11 || isIE10;\n}\n/**\n * Returns the offset parent of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} offset parent\n */\n\n\nfunction getOffsetParent(element) {\n if (!element) {\n return document.documentElement;\n }\n\n var noOffsetParent = isIE(10) ? document.body : null; // NOTE: 1 DOM access here\n\n var offsetParent = element.offsetParent || null; // Skip hidden elements which don't have an offsetParent\n\n while (offsetParent === noOffsetParent && element.nextElementSibling) {\n offsetParent = (element = element.nextElementSibling).offsetParent;\n }\n\n var nodeName = offsetParent && offsetParent.nodeName;\n\n if (!nodeName || nodeName === 'BODY' || nodeName === 'HTML') {\n return element ? element.ownerDocument.documentElement : document.documentElement;\n } // .offsetParent will return the closest TH, TD or TABLE in case\n // no offsetParent is present, I hate this job...\n\n\n if (['TH', 'TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') {\n return getOffsetParent(offsetParent);\n }\n\n return offsetParent;\n}\n\nfunction isOffsetContainer(element) {\n var nodeName = element.nodeName;\n\n if (nodeName === 'BODY') {\n return false;\n }\n\n return nodeName === 'HTML' || getOffsetParent(element.firstElementChild) === element;\n}\n/**\n * Finds the root node (document, shadowDOM root) of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} node\n * @returns {Element} root node\n */\n\n\nfunction getRoot(node) {\n if (node.parentNode !== null) {\n return getRoot(node.parentNode);\n }\n\n return node;\n}\n/**\n * Finds the offset parent common to the two provided nodes\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element1\n * @argument {Element} element2\n * @returns {Element} common offset parent\n */\n\n\nfunction findCommonOffsetParent(element1, element2) {\n // This check is needed to avoid errors in case one of the elements isn't defined for any reason\n if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) {\n return document.documentElement;\n } // Here we make sure to give as \"start\" the element that comes first in the DOM\n\n\n var order = element1.compareDocumentPosition(element2) & Node.DOCUMENT_POSITION_FOLLOWING;\n var start = order ? element1 : element2;\n var end = order ? element2 : element1; // Get common ancestor container\n\n var range = document.createRange();\n range.setStart(start, 0);\n range.setEnd(end, 0);\n var commonAncestorContainer = range.commonAncestorContainer; // Both nodes are inside #document\n\n if (element1 !== commonAncestorContainer && element2 !== commonAncestorContainer || start.contains(end)) {\n if (isOffsetContainer(commonAncestorContainer)) {\n return commonAncestorContainer;\n }\n\n return getOffsetParent(commonAncestorContainer);\n } // one of the nodes is inside shadowDOM, find which one\n\n\n var element1root = getRoot(element1);\n\n if (element1root.host) {\n return findCommonOffsetParent(element1root.host, element2);\n } else {\n return findCommonOffsetParent(element1, getRoot(element2).host);\n }\n}\n/**\n * Gets the scroll value of the given element in the given side (top and left)\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @argument {String} side `top` or `left`\n * @returns {number} amount of scrolled pixels\n */\n\n\nfunction getScroll(element) {\n var side = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top';\n var upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft';\n var nodeName = element.nodeName;\n\n if (nodeName === 'BODY' || nodeName === 'HTML') {\n var html = element.ownerDocument.documentElement;\n var scrollingElement = element.ownerDocument.scrollingElement || html;\n return scrollingElement[upperSide];\n }\n\n return element[upperSide];\n}\n/*\n * Sum or subtract the element scroll values (left and top) from a given rect object\n * @method\n * @memberof Popper.Utils\n * @param {Object} rect - Rect object you want to change\n * @param {HTMLElement} element - The element from the function reads the scroll values\n * @param {Boolean} subtract - set to true if you want to subtract the scroll values\n * @return {Object} rect - The modifier rect object\n */\n\n\nfunction includeScroll(rect, element) {\n var subtract = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var scrollTop = getScroll(element, 'top');\n var scrollLeft = getScroll(element, 'left');\n var modifier = subtract ? -1 : 1;\n rect.top += scrollTop * modifier;\n rect.bottom += scrollTop * modifier;\n rect.left += scrollLeft * modifier;\n rect.right += scrollLeft * modifier;\n return rect;\n}\n/*\n * Helper to detect borders of a given element\n * @method\n * @memberof Popper.Utils\n * @param {CSSStyleDeclaration} styles\n * Result of `getStyleComputedProperty` on the given element\n * @param {String} axis - `x` or `y`\n * @return {number} borders - The borders size of the given axis\n */\n\n\nfunction getBordersSize(styles, axis) {\n var sideA = axis === 'x' ? 'Left' : 'Top';\n var sideB = sideA === 'Left' ? 'Right' : 'Bottom';\n return parseFloat(styles['border' + sideA + 'Width']) + parseFloat(styles['border' + sideB + 'Width']);\n}\n\nfunction getSize(axis, body, html, computedStyle) {\n return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? parseInt(html['offset' + axis]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')]) : 0);\n}\n\nfunction getWindowSizes(document) {\n var body = document.body;\n var html = document.documentElement;\n var computedStyle = isIE(10) && getComputedStyle(html);\n return {\n height: getSize('Height', body, html, computedStyle),\n width: getSize('Width', body, html, computedStyle)\n };\n}\n\nvar classCallCheck = function classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\nvar createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar defineProperty = function defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n};\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n/**\n * Given element offsets, generate an output similar to getBoundingClientRect\n * @method\n * @memberof Popper.Utils\n * @argument {Object} offsets\n * @returns {Object} ClientRect like output\n */\n\n\nfunction getClientRect(offsets) {\n return _extends({}, offsets, {\n right: offsets.left + offsets.width,\n bottom: offsets.top + offsets.height\n });\n}\n/**\n * Get bounding client rect of given element\n * @method\n * @memberof Popper.Utils\n * @param {HTMLElement} element\n * @return {Object} client rect\n */\n\n\nfunction getBoundingClientRect(element) {\n var rect = {}; // IE10 10 FIX: Please, don't ask, the element isn't\n // considered in DOM in some circumstances...\n // This isn't reproducible in IE10 compatibility mode of IE11\n\n try {\n if (isIE(10)) {\n rect = element.getBoundingClientRect();\n var scrollTop = getScroll(element, 'top');\n var scrollLeft = getScroll(element, 'left');\n rect.top += scrollTop;\n rect.left += scrollLeft;\n rect.bottom += scrollTop;\n rect.right += scrollLeft;\n } else {\n rect = element.getBoundingClientRect();\n }\n } catch (e) {}\n\n var result = {\n left: rect.left,\n top: rect.top,\n width: rect.right - rect.left,\n height: rect.bottom - rect.top\n }; // subtract scrollbar size from sizes\n\n var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {};\n var width = sizes.width || element.clientWidth || result.width;\n var height = sizes.height || element.clientHeight || result.height;\n var horizScrollbar = element.offsetWidth - width;\n var vertScrollbar = element.offsetHeight - height; // if an hypothetical scrollbar is detected, we must be sure it's not a `border`\n // we make this check conditional for performance reasons\n\n if (horizScrollbar || vertScrollbar) {\n var styles = getStyleComputedProperty(element);\n horizScrollbar -= getBordersSize(styles, 'x');\n vertScrollbar -= getBordersSize(styles, 'y');\n result.width -= horizScrollbar;\n result.height -= vertScrollbar;\n }\n\n return getClientRect(result);\n}\n\nfunction getOffsetRectRelativeToArbitraryNode(children, parent) {\n var fixedPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var isIE10 = isIE(10);\n var isHTML = parent.nodeName === 'HTML';\n var childrenRect = getBoundingClientRect(children);\n var parentRect = getBoundingClientRect(parent);\n var scrollParent = getScrollParent(children);\n var styles = getStyleComputedProperty(parent);\n var borderTopWidth = parseFloat(styles.borderTopWidth);\n var borderLeftWidth = parseFloat(styles.borderLeftWidth); // In cases where the parent is fixed, we must ignore negative scroll in offset calc\n\n if (fixedPosition && isHTML) {\n parentRect.top = Math.max(parentRect.top, 0);\n parentRect.left = Math.max(parentRect.left, 0);\n }\n\n var offsets = getClientRect({\n top: childrenRect.top - parentRect.top - borderTopWidth,\n left: childrenRect.left - parentRect.left - borderLeftWidth,\n width: childrenRect.width,\n height: childrenRect.height\n });\n offsets.marginTop = 0;\n offsets.marginLeft = 0; // Subtract margins of documentElement in case it's being used as parent\n // we do this only on HTML because it's the only element that behaves\n // differently when margins are applied to it. The margins are included in\n // the box of the documentElement, in the other cases not.\n\n if (!isIE10 && isHTML) {\n var marginTop = parseFloat(styles.marginTop);\n var marginLeft = parseFloat(styles.marginLeft);\n offsets.top -= borderTopWidth - marginTop;\n offsets.bottom -= borderTopWidth - marginTop;\n offsets.left -= borderLeftWidth - marginLeft;\n offsets.right -= borderLeftWidth - marginLeft; // Attach marginTop and marginLeft because in some circumstances we may need them\n\n offsets.marginTop = marginTop;\n offsets.marginLeft = marginLeft;\n }\n\n if (isIE10 && !fixedPosition ? parent.contains(scrollParent) : parent === scrollParent && scrollParent.nodeName !== 'BODY') {\n offsets = includeScroll(offsets, parent);\n }\n\n return offsets;\n}\n\nfunction getViewportOffsetRectRelativeToArtbitraryNode(element) {\n var excludeScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var html = element.ownerDocument.documentElement;\n var relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html);\n var width = Math.max(html.clientWidth, window.innerWidth || 0);\n var height = Math.max(html.clientHeight, window.innerHeight || 0);\n var scrollTop = !excludeScroll ? getScroll(html) : 0;\n var scrollLeft = !excludeScroll ? getScroll(html, 'left') : 0;\n var offset = {\n top: scrollTop - relativeOffset.top + relativeOffset.marginTop,\n left: scrollLeft - relativeOffset.left + relativeOffset.marginLeft,\n width: width,\n height: height\n };\n return getClientRect(offset);\n}\n/**\n * Check if the given element is fixed or is inside a fixed parent\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @argument {Element} customContainer\n * @returns {Boolean} answer to \"isFixed?\"\n */\n\n\nfunction isFixed(element) {\n var nodeName = element.nodeName;\n\n if (nodeName === 'BODY' || nodeName === 'HTML') {\n return false;\n }\n\n if (getStyleComputedProperty(element, 'position') === 'fixed') {\n return true;\n }\n\n var parentNode = getParentNode(element);\n\n if (!parentNode) {\n return false;\n }\n\n return isFixed(parentNode);\n}\n/**\n * Finds the first parent of an element that has a transformed property defined\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} first transformed parent or documentElement\n */\n\n\nfunction getFixedPositionOffsetParent(element) {\n // This check is needed to avoid errors in case one of the elements isn't defined for any reason\n if (!element || !element.parentElement || isIE()) {\n return document.documentElement;\n }\n\n var el = element.parentElement;\n\n while (el && getStyleComputedProperty(el, 'transform') === 'none') {\n el = el.parentElement;\n }\n\n return el || document.documentElement;\n}\n/**\n * Computed the boundaries limits and return them\n * @method\n * @memberof Popper.Utils\n * @param {HTMLElement} popper\n * @param {HTMLElement} reference\n * @param {number} padding\n * @param {HTMLElement} boundariesElement - Element used to define the boundaries\n * @param {Boolean} fixedPosition - Is in fixed position mode\n * @returns {Object} Coordinates of the boundaries\n */\n\n\nfunction getBoundaries(popper, reference, padding, boundariesElement) {\n var fixedPosition = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false; // NOTE: 1 DOM access here\n\n var boundaries = {\n top: 0,\n left: 0\n };\n var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference)); // Handle viewport case\n\n if (boundariesElement === 'viewport') {\n boundaries = getViewportOffsetRectRelativeToArtbitraryNode(offsetParent, fixedPosition);\n } else {\n // Handle other cases based on DOM element used as boundaries\n var boundariesNode = void 0;\n\n if (boundariesElement === 'scrollParent') {\n boundariesNode = getScrollParent(getParentNode(reference));\n\n if (boundariesNode.nodeName === 'BODY') {\n boundariesNode = popper.ownerDocument.documentElement;\n }\n } else if (boundariesElement === 'window') {\n boundariesNode = popper.ownerDocument.documentElement;\n } else {\n boundariesNode = boundariesElement;\n }\n\n var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition); // In case of HTML, we need a different computation\n\n if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) {\n var _getWindowSizes = getWindowSizes(popper.ownerDocument),\n height = _getWindowSizes.height,\n width = _getWindowSizes.width;\n\n boundaries.top += offsets.top - offsets.marginTop;\n boundaries.bottom = height + offsets.top;\n boundaries.left += offsets.left - offsets.marginLeft;\n boundaries.right = width + offsets.left;\n } else {\n // for all the other DOM elements, this one is good\n boundaries = offsets;\n }\n } // Add paddings\n\n\n padding = padding || 0;\n var isPaddingNumber = typeof padding === 'number';\n boundaries.left += isPaddingNumber ? padding : padding.left || 0;\n boundaries.top += isPaddingNumber ? padding : padding.top || 0;\n boundaries.right -= isPaddingNumber ? padding : padding.right || 0;\n boundaries.bottom -= isPaddingNumber ? padding : padding.bottom || 0;\n return boundaries;\n}\n\nfunction getArea(_ref) {\n var width = _ref.width,\n height = _ref.height;\n return width * height;\n}\n/**\n * Utility used to transform the `auto` placement to the placement with more\n * available space.\n * @method\n * @memberof Popper.Utils\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) {\n var padding = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;\n\n if (placement.indexOf('auto') === -1) {\n return placement;\n }\n\n var boundaries = getBoundaries(popper, reference, padding, boundariesElement);\n var rects = {\n top: {\n width: boundaries.width,\n height: refRect.top - boundaries.top\n },\n right: {\n width: boundaries.right - refRect.right,\n height: boundaries.height\n },\n bottom: {\n width: boundaries.width,\n height: boundaries.bottom - refRect.bottom\n },\n left: {\n width: refRect.left - boundaries.left,\n height: boundaries.height\n }\n };\n var sortedAreas = Object.keys(rects).map(function (key) {\n return _extends({\n key: key\n }, rects[key], {\n area: getArea(rects[key])\n });\n }).sort(function (a, b) {\n return b.area - a.area;\n });\n var filteredAreas = sortedAreas.filter(function (_ref2) {\n var width = _ref2.width,\n height = _ref2.height;\n return width >= popper.clientWidth && height >= popper.clientHeight;\n });\n var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key;\n var variation = placement.split('-')[1];\n return computedPlacement + (variation ? '-' + variation : '');\n}\n/**\n * Get offsets to the reference element\n * @method\n * @memberof Popper.Utils\n * @param {Object} state\n * @param {Element} popper - the popper element\n * @param {Element} reference - the reference element (the popper will be relative to this)\n * @param {Element} fixedPosition - is in fixed position mode\n * @returns {Object} An object containing the offsets which will be applied to the popper\n */\n\n\nfunction getReferenceOffsets(state, popper, reference) {\n var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;\n var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));\n return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition);\n}\n/**\n * Get the outer sizes of the given element (offset size + margins)\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Object} object containing width and height properties\n */\n\n\nfunction getOuterSizes(element) {\n var window = element.ownerDocument.defaultView;\n var styles = window.getComputedStyle(element);\n var x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0);\n var y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0);\n var result = {\n width: element.offsetWidth + y,\n height: element.offsetHeight + x\n };\n return result;\n}\n/**\n * Get the opposite placement of the given one\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement\n * @returns {String} flipped placement\n */\n\n\nfunction getOppositePlacement(placement) {\n var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n };\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}\n/**\n * Get offsets to the popper\n * @method\n * @memberof Popper.Utils\n * @param {Object} position - CSS position the Popper will get applied\n * @param {HTMLElement} popper - the popper element\n * @param {Object} referenceOffsets - the reference offsets (the popper will be relative to this)\n * @param {String} placement - one of the valid placement options\n * @returns {Object} popperOffsets - An object containing the offsets which will be applied to the popper\n */\n\n\nfunction getPopperOffsets(popper, referenceOffsets, placement) {\n placement = placement.split('-')[0]; // Get popper node sizes\n\n var popperRect = getOuterSizes(popper); // Add position, width and height to our offsets object\n\n var popperOffsets = {\n width: popperRect.width,\n height: popperRect.height\n }; // depending by the popper placement we have to compute its offsets slightly differently\n\n var isHoriz = ['right', 'left'].indexOf(placement) !== -1;\n var mainSide = isHoriz ? 'top' : 'left';\n var secondarySide = isHoriz ? 'left' : 'top';\n var measurement = isHoriz ? 'height' : 'width';\n var secondaryMeasurement = !isHoriz ? 'height' : 'width';\n popperOffsets[mainSide] = referenceOffsets[mainSide] + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2;\n\n if (placement === secondarySide) {\n popperOffsets[secondarySide] = referenceOffsets[secondarySide] - popperRect[secondaryMeasurement];\n } else {\n popperOffsets[secondarySide] = referenceOffsets[getOppositePlacement(secondarySide)];\n }\n\n return popperOffsets;\n}\n/**\n * Mimics the `find` method of Array\n * @method\n * @memberof Popper.Utils\n * @argument {Array} arr\n * @argument prop\n * @argument value\n * @returns index or -1\n */\n\n\nfunction find(arr, check) {\n // use native find if supported\n if (Array.prototype.find) {\n return arr.find(check);\n } // use `filter` to obtain the same behavior of `find`\n\n\n return arr.filter(check)[0];\n}\n/**\n * Return the index of the matching object\n * @method\n * @memberof Popper.Utils\n * @argument {Array} arr\n * @argument prop\n * @argument value\n * @returns index or -1\n */\n\n\nfunction findIndex(arr, prop, value) {\n // use native findIndex if supported\n if (Array.prototype.findIndex) {\n return arr.findIndex(function (cur) {\n return cur[prop] === value;\n });\n } // use `find` + `indexOf` if `findIndex` isn't supported\n\n\n var match = find(arr, function (obj) {\n return obj[prop] === value;\n });\n return arr.indexOf(match);\n}\n/**\n * Loop trough the list of modifiers and run them in order,\n * each of them will then edit the data object.\n * @method\n * @memberof Popper.Utils\n * @param {dataObject} data\n * @param {Array} modifiers\n * @param {String} ends - Optional modifier name used as stopper\n * @returns {dataObject}\n */\n\n\nfunction runModifiers(modifiers, data, ends) {\n var modifiersToRun = ends === undefined ? modifiers : modifiers.slice(0, findIndex(modifiers, 'name', ends));\n modifiersToRun.forEach(function (modifier) {\n if (modifier['function']) {\n // eslint-disable-line dot-notation\n console.warn('`modifier.function` is deprecated, use `modifier.fn`!');\n }\n\n var fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation\n\n if (modifier.enabled && isFunction(fn)) {\n // Add properties to offsets to make them a complete clientRect object\n // we do this before each modifier to make sure the previous one doesn't\n // mess with these values\n data.offsets.popper = getClientRect(data.offsets.popper);\n data.offsets.reference = getClientRect(data.offsets.reference);\n data = fn(data, modifier);\n }\n });\n return data;\n}\n/**\n * Updates the position of the popper, computing the new offsets and applying\n * the new style.
\n * Prefer `scheduleUpdate` over `update` because of performance reasons.\n * @method\n * @memberof Popper\n */\n\n\nfunction update() {\n // if popper is destroyed, don't perform any further update\n if (this.state.isDestroyed) {\n return;\n }\n\n var data = {\n instance: this,\n styles: {},\n arrowStyles: {},\n attributes: {},\n flipped: false,\n offsets: {}\n }; // compute reference element offsets\n\n data.offsets.reference = getReferenceOffsets(this.state, this.popper, this.reference, this.options.positionFixed); // compute auto placement, store placement inside the data object,\n // modifiers will be able to edit `placement` if needed\n // and refer to originalPlacement to know the original value\n\n data.placement = computeAutoPlacement(this.options.placement, data.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding); // store the computed placement inside `originalPlacement`\n\n data.originalPlacement = data.placement;\n data.positionFixed = this.options.positionFixed; // compute the popper offsets\n\n data.offsets.popper = getPopperOffsets(this.popper, data.offsets.reference, data.placement);\n data.offsets.popper.position = this.options.positionFixed ? 'fixed' : 'absolute'; // run the modifiers\n\n data = runModifiers(this.modifiers, data); // the first `update` will call `onCreate` callback\n // the other ones will call `onUpdate` callback\n\n if (!this.state.isCreated) {\n this.state.isCreated = true;\n this.options.onCreate(data);\n } else {\n this.options.onUpdate(data);\n }\n}\n/**\n * Helper used to know if the given modifier is enabled.\n * @method\n * @memberof Popper.Utils\n * @returns {Boolean}\n */\n\n\nfunction isModifierEnabled(modifiers, modifierName) {\n return modifiers.some(function (_ref) {\n var name = _ref.name,\n enabled = _ref.enabled;\n return enabled && name === modifierName;\n });\n}\n/**\n * Get the prefixed supported property name\n * @method\n * @memberof Popper.Utils\n * @argument {String} property (camelCase)\n * @returns {String} prefixed property (camelCase or PascalCase, depending on the vendor prefix)\n */\n\n\nfunction getSupportedPropertyName(property) {\n var prefixes = [false, 'ms', 'Webkit', 'Moz', 'O'];\n var upperProp = property.charAt(0).toUpperCase() + property.slice(1);\n\n for (var i = 0; i < prefixes.length; i++) {\n var prefix = prefixes[i];\n var toCheck = prefix ? '' + prefix + upperProp : property;\n\n if (typeof document.body.style[toCheck] !== 'undefined') {\n return toCheck;\n }\n }\n\n return null;\n}\n/**\n * Destroys the popper.\n * @method\n * @memberof Popper\n */\n\n\nfunction destroy() {\n this.state.isDestroyed = true; // touch DOM only if `applyStyle` modifier is enabled\n\n if (isModifierEnabled(this.modifiers, 'applyStyle')) {\n this.popper.removeAttribute('x-placement');\n this.popper.style.position = '';\n this.popper.style.top = '';\n this.popper.style.left = '';\n this.popper.style.right = '';\n this.popper.style.bottom = '';\n this.popper.style.willChange = '';\n this.popper.style[getSupportedPropertyName('transform')] = '';\n }\n\n this.disableEventListeners(); // remove the popper if user explicitly asked for the deletion on destroy\n // do not use `remove` because IE11 doesn't support it\n\n if (this.options.removeOnDestroy) {\n this.popper.parentNode.removeChild(this.popper);\n }\n\n return this;\n}\n/**\n * Get the window associated with the element\n * @argument {Element} element\n * @returns {Window}\n */\n\n\nfunction getWindow(element) {\n var ownerDocument = element.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView : window;\n}\n\nfunction attachToScrollParents(scrollParent, event, callback, scrollParents) {\n var isBody = scrollParent.nodeName === 'BODY';\n var target = isBody ? scrollParent.ownerDocument.defaultView : scrollParent;\n target.addEventListener(event, callback, {\n passive: true\n });\n\n if (!isBody) {\n attachToScrollParents(getScrollParent(target.parentNode), event, callback, scrollParents);\n }\n\n scrollParents.push(target);\n}\n/**\n * Setup needed event listeners used to update the popper position\n * @method\n * @memberof Popper.Utils\n * @private\n */\n\n\nfunction setupEventListeners(reference, options, state, updateBound) {\n // Resize event listener on window\n state.updateBound = updateBound;\n getWindow(reference).addEventListener('resize', state.updateBound, {\n passive: true\n }); // Scroll event listener on scroll parents\n\n var scrollElement = getScrollParent(reference);\n attachToScrollParents(scrollElement, 'scroll', state.updateBound, state.scrollParents);\n state.scrollElement = scrollElement;\n state.eventsEnabled = true;\n return state;\n}\n/**\n * It will add resize/scroll events and start recalculating\n * position of the popper element when they are triggered.\n * @method\n * @memberof Popper\n */\n\n\nfunction enableEventListeners() {\n if (!this.state.eventsEnabled) {\n this.state = setupEventListeners(this.reference, this.options, this.state, this.scheduleUpdate);\n }\n}\n/**\n * Remove event listeners used to update the popper position\n * @method\n * @memberof Popper.Utils\n * @private\n */\n\n\nfunction removeEventListeners(reference, state) {\n // Remove resize event listener on window\n getWindow(reference).removeEventListener('resize', state.updateBound); // Remove scroll event listener on scroll parents\n\n state.scrollParents.forEach(function (target) {\n target.removeEventListener('scroll', state.updateBound);\n }); // Reset state\n\n state.updateBound = null;\n state.scrollParents = [];\n state.scrollElement = null;\n state.eventsEnabled = false;\n return state;\n}\n/**\n * It will remove resize/scroll events and won't recalculate popper position\n * when they are triggered. It also won't trigger `onUpdate` callback anymore,\n * unless you call `update` method manually.\n * @method\n * @memberof Popper\n */\n\n\nfunction disableEventListeners() {\n if (this.state.eventsEnabled) {\n cancelAnimationFrame(this.scheduleUpdate);\n this.state = removeEventListeners(this.reference, this.state);\n }\n}\n/**\n * Tells if a given input is a number\n * @method\n * @memberof Popper.Utils\n * @param {*} input to check\n * @return {Boolean}\n */\n\n\nfunction isNumeric(n) {\n return n !== '' && !isNaN(parseFloat(n)) && isFinite(n);\n}\n/**\n * Set the style to the given popper\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element - Element to apply the style to\n * @argument {Object} styles\n * Object with a list of properties and values which will be applied to the element\n */\n\n\nfunction setStyles(element, styles) {\n Object.keys(styles).forEach(function (prop) {\n var unit = ''; // add unit if the value is numeric and is one of the following\n\n if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && isNumeric(styles[prop])) {\n unit = 'px';\n }\n\n element.style[prop] = styles[prop] + unit;\n });\n}\n/**\n * Set the attributes to the given popper\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element - Element to apply the attributes to\n * @argument {Object} styles\n * Object with a list of properties and values which will be applied to the element\n */\n\n\nfunction setAttributes(element, attributes) {\n Object.keys(attributes).forEach(function (prop) {\n var value = attributes[prop];\n\n if (value !== false) {\n element.setAttribute(prop, attributes[prop]);\n } else {\n element.removeAttribute(prop);\n }\n });\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} data.styles - List of style properties - values to apply to popper element\n * @argument {Object} data.attributes - List of attribute properties - values to apply to popper element\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The same data object\n */\n\n\nfunction applyStyle(data) {\n // any property present in `data.styles` will be applied to the popper,\n // in this way we can make the 3rd party modifiers add custom styles to it\n // Be aware, modifiers could override the properties defined in the previous\n // lines of this modifier!\n setStyles(data.instance.popper, data.styles); // any property present in `data.attributes` will be applied to the popper,\n // they will be set as HTML attributes of the element\n\n setAttributes(data.instance.popper, data.attributes); // if arrowElement is defined and arrowStyles has some properties\n\n if (data.arrowElement && Object.keys(data.arrowStyles).length) {\n setStyles(data.arrowElement, data.arrowStyles);\n }\n\n return data;\n}\n/**\n * Set the x-placement attribute before everything else because it could be used\n * to add margins to the popper margins needs to be calculated to get the\n * correct popper offsets.\n * @method\n * @memberof Popper.modifiers\n * @param {HTMLElement} reference - The reference element used to position the popper\n * @param {HTMLElement} popper - The HTML element used as popper\n * @param {Object} options - Popper.js options\n */\n\n\nfunction applyStyleOnLoad(reference, popper, options, modifierOptions, state) {\n // compute reference element offsets\n var referenceOffsets = getReferenceOffsets(state, popper, reference, options.positionFixed); // compute auto placement, store placement inside the data object,\n // modifiers will be able to edit `placement` if needed\n // and refer to originalPlacement to know the original value\n\n var placement = computeAutoPlacement(options.placement, referenceOffsets, popper, reference, options.modifiers.flip.boundariesElement, options.modifiers.flip.padding);\n popper.setAttribute('x-placement', placement); // Apply `position` to popper before anything else because\n // without the position applied we can't guarantee correct computations\n\n setStyles(popper, {\n position: options.positionFixed ? 'fixed' : 'absolute'\n });\n return options;\n}\n/**\n * @function\n * @memberof Popper.Utils\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Boolean} shouldRound - If the offsets should be rounded at all\n * @returns {Object} The popper's position offsets rounded\n *\n * The tale of pixel-perfect positioning. It's still not 100% perfect, but as\n * good as it can be within reason.\n * Discussion here: https://github.com/FezVrasta/popper.js/pull/715\n *\n * Low DPI screens cause a popper to be blurry if not using full pixels (Safari\n * as well on High DPI screens).\n *\n * Firefox prefers no rounding for positioning and does not have blurriness on\n * high DPI screens.\n *\n * Only horizontal placement and left/right values need to be considered.\n */\n\n\nfunction getRoundedOffsets(data, shouldRound) {\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n var round = Math.round,\n floor = Math.floor;\n\n var noRound = function noRound(v) {\n return v;\n };\n\n var referenceWidth = round(reference.width);\n var popperWidth = round(popper.width);\n var isVertical = ['left', 'right'].indexOf(data.placement) !== -1;\n var isVariation = data.placement.indexOf('-') !== -1;\n var sameWidthParity = referenceWidth % 2 === popperWidth % 2;\n var bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1;\n var horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity ? round : floor;\n var verticalToInteger = !shouldRound ? noRound : round;\n return {\n left: horizontalToInteger(bothOddWidth && !isVariation && shouldRound ? popper.left - 1 : popper.left),\n top: verticalToInteger(popper.top),\n bottom: verticalToInteger(popper.bottom),\n right: horizontalToInteger(popper.right)\n };\n}\n\nvar isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent);\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\nfunction computeStyle(data, options) {\n var x = options.x,\n y = options.y;\n var popper = data.offsets.popper; // Remove this legacy support in Popper.js v2\n\n var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) {\n return modifier.name === 'applyStyle';\n }).gpuAcceleration;\n\n if (legacyGpuAccelerationOption !== undefined) {\n console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');\n }\n\n var gpuAcceleration = legacyGpuAccelerationOption !== undefined ? legacyGpuAccelerationOption : options.gpuAcceleration;\n var offsetParent = getOffsetParent(data.instance.popper);\n var offsetParentRect = getBoundingClientRect(offsetParent); // Styles\n\n var styles = {\n position: popper.position\n };\n var offsets = getRoundedOffsets(data, window.devicePixelRatio < 2 || !isFirefox);\n var sideA = x === 'bottom' ? 'top' : 'bottom';\n var sideB = y === 'right' ? 'left' : 'right'; // if gpuAcceleration is set to `true` and transform is supported,\n // we use `translate3d` to apply the position to the popper we\n // automatically use the supported prefixed version if needed\n\n var prefixedProperty = getSupportedPropertyName('transform'); // now, let's make a step back and look at this code closely (wtf?)\n // If the content of the popper grows once it's been positioned, it\n // may happen that the popper gets misplaced because of the new content\n // overflowing its reference element\n // To avoid this problem, we provide two options (x and y), which allow\n // the consumer to define the offset origin.\n // If we position a popper on top of a reference element, we can set\n // `x` to `top` to make the popper grow towards its top instead of\n // its bottom.\n\n var left = void 0,\n top = void 0;\n\n if (sideA === 'bottom') {\n // when offsetParent is the positioning is relative to the bottom of the screen (excluding the scrollbar)\n // and not the bottom of the html element\n if (offsetParent.nodeName === 'HTML') {\n top = -offsetParent.clientHeight + offsets.bottom;\n } else {\n top = -offsetParentRect.height + offsets.bottom;\n }\n } else {\n top = offsets.top;\n }\n\n if (sideB === 'right') {\n if (offsetParent.nodeName === 'HTML') {\n left = -offsetParent.clientWidth + offsets.right;\n } else {\n left = -offsetParentRect.width + offsets.right;\n }\n } else {\n left = offsets.left;\n }\n\n if (gpuAcceleration && prefixedProperty) {\n styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)';\n styles[sideA] = 0;\n styles[sideB] = 0;\n styles.willChange = 'transform';\n } else {\n // othwerise, we use the standard `top`, `left`, `bottom` and `right` properties\n var invertTop = sideA === 'bottom' ? -1 : 1;\n var invertLeft = sideB === 'right' ? -1 : 1;\n styles[sideA] = top * invertTop;\n styles[sideB] = left * invertLeft;\n styles.willChange = sideA + ', ' + sideB;\n } // Attributes\n\n\n var attributes = {\n 'x-placement': data.placement\n }; // Update `data` attributes, styles and arrowStyles\n\n data.attributes = _extends({}, attributes, data.attributes);\n data.styles = _extends({}, styles, data.styles);\n data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);\n return data;\n}\n/**\n * Helper used to know if the given modifier depends from another one.
\n * It checks if the needed modifier is listed and enabled.\n * @method\n * @memberof Popper.Utils\n * @param {Array} modifiers - list of modifiers\n * @param {String} requestingName - name of requesting modifier\n * @param {String} requestedName - name of requested modifier\n * @returns {Boolean}\n */\n\n\nfunction isModifierRequired(modifiers, requestingName, requestedName) {\n var requesting = find(modifiers, function (_ref) {\n var name = _ref.name;\n return name === requestingName;\n });\n var isRequired = !!requesting && modifiers.some(function (modifier) {\n return modifier.name === requestedName && modifier.enabled && modifier.order < requesting.order;\n });\n\n if (!isRequired) {\n var _requesting = '`' + requestingName + '`';\n\n var requested = '`' + requestedName + '`';\n console.warn(requested + ' modifier is required by ' + _requesting + ' modifier in order to work, be sure to include it before ' + _requesting + '!');\n }\n\n return isRequired;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction arrow(data, options) {\n var _data$offsets$arrow; // arrow depends on keepTogether in order to work\n\n\n if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) {\n return data;\n }\n\n var arrowElement = options.element; // if arrowElement is a string, suppose it's a CSS selector\n\n if (typeof arrowElement === 'string') {\n arrowElement = data.instance.popper.querySelector(arrowElement); // if arrowElement is not found, don't run the modifier\n\n if (!arrowElement) {\n return data;\n }\n } else {\n // if the arrowElement isn't a query selector we must check that the\n // provided DOM node is child of its popper node\n if (!data.instance.popper.contains(arrowElement)) {\n console.warn('WARNING: `arrow.element` must be child of its popper element!');\n return data;\n }\n }\n\n var placement = data.placement.split('-')[0];\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n var isVertical = ['left', 'right'].indexOf(placement) !== -1;\n var len = isVertical ? 'height' : 'width';\n var sideCapitalized = isVertical ? 'Top' : 'Left';\n var side = sideCapitalized.toLowerCase();\n var altSide = isVertical ? 'left' : 'top';\n var opSide = isVertical ? 'bottom' : 'right';\n var arrowElementSize = getOuterSizes(arrowElement)[len]; //\n // extends keepTogether behavior making sure the popper and its\n // reference have enough pixels in conjunction\n //\n // top/left side\n\n if (reference[opSide] - arrowElementSize < popper[side]) {\n data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowElementSize);\n } // bottom/right side\n\n\n if (reference[side] + arrowElementSize > popper[opSide]) {\n data.offsets.popper[side] += reference[side] + arrowElementSize - popper[opSide];\n }\n\n data.offsets.popper = getClientRect(data.offsets.popper); // compute center of the popper\n\n var center = reference[side] + reference[len] / 2 - arrowElementSize / 2; // Compute the sideValue using the updated popper offsets\n // take popper margin in account because we don't have this info available\n\n var css = getStyleComputedProperty(data.instance.popper);\n var popperMarginSide = parseFloat(css['margin' + sideCapitalized]);\n var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width']);\n var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide; // prevent arrowElement from being placed not contiguously to its popper\n\n sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0);\n data.arrowElement = arrowElement;\n data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty(_data$offsets$arrow, altSide, ''), _data$offsets$arrow);\n return data;\n}\n/**\n * Get the opposite placement variation of the given one\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement variation\n * @returns {String} flipped placement variation\n */\n\n\nfunction getOppositeVariation(variation) {\n if (variation === 'end') {\n return 'start';\n } else if (variation === 'start') {\n return 'end';\n }\n\n return variation;\n}\n/**\n * List of accepted placements to use as values of the `placement` option.
\n * Valid placements are:\n * - `auto`\n * - `top`\n * - `right`\n * - `bottom`\n * - `left`\n *\n * Each placement can have a variation from this list:\n * - `-start`\n * - `-end`\n *\n * Variations are interpreted easily if you think of them as the left to right\n * written languages. Horizontally (`top` and `bottom`), `start` is left and `end`\n * is right.
\n * Vertically (`left` and `right`), `start` is top and `end` is bottom.\n *\n * Some valid examples are:\n * - `top-end` (on top of reference, right aligned)\n * - `right-start` (on right of reference, top aligned)\n * - `bottom` (on bottom, centered)\n * - `auto-end` (on the side with more space available, alignment depends by placement)\n *\n * @static\n * @type {Array}\n * @enum {String}\n * @readonly\n * @method placements\n * @memberof Popper\n */\n\n\nvar placements = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start']; // Get rid of `auto` `auto-start` and `auto-end`\n\nvar validPlacements = placements.slice(3);\n/**\n * Given an initial placement, returns all the subsequent placements\n * clockwise (or counter-clockwise).\n *\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement - A valid placement (it accepts variations)\n * @argument {Boolean} counter - Set to true to walk the placements counterclockwise\n * @returns {Array} placements including their variations\n */\n\nfunction clockwise(placement) {\n var counter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var index = validPlacements.indexOf(placement);\n var arr = validPlacements.slice(index + 1).concat(validPlacements.slice(0, index));\n return counter ? arr.reverse() : arr;\n}\n\nvar BEHAVIORS = {\n FLIP: 'flip',\n CLOCKWISE: 'clockwise',\n COUNTERCLOCKWISE: 'counterclockwise'\n};\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\nfunction flip(data, options) {\n // if `inner` modifier is enabled, we can't use the `flip` modifier\n if (isModifierEnabled(data.instance.modifiers, 'inner')) {\n return data;\n }\n\n if (data.flipped && data.placement === data.originalPlacement) {\n // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides\n return data;\n }\n\n var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, options.boundariesElement, data.positionFixed);\n var placement = data.placement.split('-')[0];\n var placementOpposite = getOppositePlacement(placement);\n var variation = data.placement.split('-')[1] || '';\n var flipOrder = [];\n\n switch (options.behavior) {\n case BEHAVIORS.FLIP:\n flipOrder = [placement, placementOpposite];\n break;\n\n case BEHAVIORS.CLOCKWISE:\n flipOrder = clockwise(placement);\n break;\n\n case BEHAVIORS.COUNTERCLOCKWISE:\n flipOrder = clockwise(placement, true);\n break;\n\n default:\n flipOrder = options.behavior;\n }\n\n flipOrder.forEach(function (step, index) {\n if (placement !== step || flipOrder.length === index + 1) {\n return data;\n }\n\n placement = data.placement.split('-')[0];\n placementOpposite = getOppositePlacement(placement);\n var popperOffsets = data.offsets.popper;\n var refOffsets = data.offsets.reference; // using floor because the reference offsets may contain decimals we are not going to consider here\n\n var floor = Math.floor;\n var overlapsRef = placement === 'left' && floor(popperOffsets.right) > floor(refOffsets.left) || placement === 'right' && floor(popperOffsets.left) < floor(refOffsets.right) || placement === 'top' && floor(popperOffsets.bottom) > floor(refOffsets.top) || placement === 'bottom' && floor(popperOffsets.top) < floor(refOffsets.bottom);\n var overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left);\n var overflowsRight = floor(popperOffsets.right) > floor(boundaries.right);\n var overflowsTop = floor(popperOffsets.top) < floor(boundaries.top);\n var overflowsBottom = floor(popperOffsets.bottom) > floor(boundaries.bottom);\n var overflowsBoundaries = placement === 'left' && overflowsLeft || placement === 'right' && overflowsRight || placement === 'top' && overflowsTop || placement === 'bottom' && overflowsBottom; // flip the variation if required\n\n var isVertical = ['top', 'bottom'].indexOf(placement) !== -1; // flips variation if reference element overflows boundaries\n\n var flippedVariationByRef = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom); // flips variation if popper content overflows boundaries\n\n var flippedVariationByContent = !!options.flipVariationsByContent && (isVertical && variation === 'start' && overflowsRight || isVertical && variation === 'end' && overflowsLeft || !isVertical && variation === 'start' && overflowsBottom || !isVertical && variation === 'end' && overflowsTop);\n var flippedVariation = flippedVariationByRef || flippedVariationByContent;\n\n if (overlapsRef || overflowsBoundaries || flippedVariation) {\n // this boolean to detect any flip loop\n data.flipped = true;\n\n if (overlapsRef || overflowsBoundaries) {\n placement = flipOrder[index + 1];\n }\n\n if (flippedVariation) {\n variation = getOppositeVariation(variation);\n }\n\n data.placement = placement + (variation ? '-' + variation : ''); // this object contains `position`, we want to preserve it along with\n // any additional property we may add in the future\n\n data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));\n data = runModifiers(data.instance.modifiers, data, 'flip');\n }\n });\n return data;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction keepTogether(data) {\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n var placement = data.placement.split('-')[0];\n var floor = Math.floor;\n var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;\n var side = isVertical ? 'right' : 'bottom';\n var opSide = isVertical ? 'left' : 'top';\n var measurement = isVertical ? 'width' : 'height';\n\n if (popper[side] < floor(reference[opSide])) {\n data.offsets.popper[opSide] = floor(reference[opSide]) - popper[measurement];\n }\n\n if (popper[opSide] > floor(reference[side])) {\n data.offsets.popper[opSide] = floor(reference[side]);\n }\n\n return data;\n}\n/**\n * Converts a string containing value + unit into a px value number\n * @function\n * @memberof {modifiers~offset}\n * @private\n * @argument {String} str - Value + unit string\n * @argument {String} measurement - `height` or `width`\n * @argument {Object} popperOffsets\n * @argument {Object} referenceOffsets\n * @returns {Number|String}\n * Value in pixels, or original string if no values were extracted\n */\n\n\nfunction toValue(str, measurement, popperOffsets, referenceOffsets) {\n // separate value from unit\n var split = str.match(/((?:\\-|\\+)?\\d*\\.?\\d*)(.*)/);\n var value = +split[1];\n var unit = split[2]; // If it's not a number it's an operator, I guess\n\n if (!value) {\n return str;\n }\n\n if (unit.indexOf('%') === 0) {\n var element = void 0;\n\n switch (unit) {\n case '%p':\n element = popperOffsets;\n break;\n\n case '%':\n case '%r':\n default:\n element = referenceOffsets;\n }\n\n var rect = getClientRect(element);\n return rect[measurement] / 100 * value;\n } else if (unit === 'vh' || unit === 'vw') {\n // if is a vh or vw, we calculate the size based on the viewport\n var size = void 0;\n\n if (unit === 'vh') {\n size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);\n } else {\n size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);\n }\n\n return size / 100 * value;\n } else {\n // if is an explicit pixel unit, we get rid of the unit and keep the value\n // if is an implicit unit, it's px, and we return just the value\n return value;\n }\n}\n/**\n * Parse an `offset` string to extrapolate `x` and `y` numeric offsets.\n * @function\n * @memberof {modifiers~offset}\n * @private\n * @argument {String} offset\n * @argument {Object} popperOffsets\n * @argument {Object} referenceOffsets\n * @argument {String} basePlacement\n * @returns {Array} a two cells array with x and y offsets in numbers\n */\n\n\nfunction parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) {\n var offsets = [0, 0]; // Use height if placement is left or right and index is 0 otherwise use width\n // in this way the first offset will use an axis and the second one\n // will use the other one\n\n var useHeight = ['right', 'left'].indexOf(basePlacement) !== -1; // Split the offset string to obtain a list of values and operands\n // The regex addresses values with the plus or minus sign in front (+10, -20, etc)\n\n var fragments = offset.split(/(\\+|\\-)/).map(function (frag) {\n return frag.trim();\n }); // Detect if the offset string contains a pair of values or a single one\n // they could be separated by comma or space\n\n var divider = fragments.indexOf(find(fragments, function (frag) {\n return frag.search(/,|\\s/) !== -1;\n }));\n\n if (fragments[divider] && fragments[divider].indexOf(',') === -1) {\n console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');\n } // If divider is found, we divide the list of values and operands to divide\n // them by ofset X and Y.\n\n\n var splitRegex = /\\s*,\\s*|\\s+/;\n var ops = divider !== -1 ? [fragments.slice(0, divider).concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider + 1))] : [fragments]; // Convert the values with units to absolute pixels to allow our computations\n\n ops = ops.map(function (op, index) {\n // Most of the units rely on the orientation of the popper\n var measurement = (index === 1 ? !useHeight : useHeight) ? 'height' : 'width';\n var mergeWithPrevious = false;\n return op // This aggregates any `+` or `-` sign that aren't considered operators\n // e.g.: 10 + +5 => [10, +, +5]\n .reduce(function (a, b) {\n if (a[a.length - 1] === '' && ['+', '-'].indexOf(b) !== -1) {\n a[a.length - 1] = b;\n mergeWithPrevious = true;\n return a;\n } else if (mergeWithPrevious) {\n a[a.length - 1] += b;\n mergeWithPrevious = false;\n return a;\n } else {\n return a.concat(b);\n }\n }, []) // Here we convert the string values into number values (in px)\n .map(function (str) {\n return toValue(str, measurement, popperOffsets, referenceOffsets);\n });\n }); // Loop trough the offsets arrays and execute the operations\n\n ops.forEach(function (op, index) {\n op.forEach(function (frag, index2) {\n if (isNumeric(frag)) {\n offsets[index] += frag * (op[index2 - 1] === '-' ? -1 : 1);\n }\n });\n });\n return offsets;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @argument {Number|String} options.offset=0\n * The offset value as described in the modifier description\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction offset(data, _ref) {\n var offset = _ref.offset;\n var placement = data.placement,\n _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n var basePlacement = placement.split('-')[0];\n var offsets = void 0;\n\n if (isNumeric(+offset)) {\n offsets = [+offset, 0];\n } else {\n offsets = parseOffset(offset, popper, reference, basePlacement);\n }\n\n if (basePlacement === 'left') {\n popper.top += offsets[0];\n popper.left -= offsets[1];\n } else if (basePlacement === 'right') {\n popper.top += offsets[0];\n popper.left += offsets[1];\n } else if (basePlacement === 'top') {\n popper.left += offsets[0];\n popper.top -= offsets[1];\n } else if (basePlacement === 'bottom') {\n popper.left += offsets[0];\n popper.top += offsets[1];\n }\n\n data.popper = popper;\n return data;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction preventOverflow(data, options) {\n var boundariesElement = options.boundariesElement || getOffsetParent(data.instance.popper); // If offsetParent is the reference element, we really want to\n // go one step up and use the next offsetParent as reference to\n // avoid to make this modifier completely useless and look like broken\n\n if (data.instance.reference === boundariesElement) {\n boundariesElement = getOffsetParent(boundariesElement);\n } // NOTE: DOM access here\n // resets the popper's position so that the document size can be calculated excluding\n // the size of the popper element itself\n\n\n var transformProp = getSupportedPropertyName('transform');\n var popperStyles = data.instance.popper.style; // assignment to help minification\n\n var top = popperStyles.top,\n left = popperStyles.left,\n transform = popperStyles[transformProp];\n popperStyles.top = '';\n popperStyles.left = '';\n popperStyles[transformProp] = '';\n var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, boundariesElement, data.positionFixed); // NOTE: DOM access here\n // restores the original style properties after the offsets have been computed\n\n popperStyles.top = top;\n popperStyles.left = left;\n popperStyles[transformProp] = transform;\n options.boundaries = boundaries;\n var order = options.priority;\n var popper = data.offsets.popper;\n var check = {\n primary: function primary(placement) {\n var value = popper[placement];\n\n if (popper[placement] < boundaries[placement] && !options.escapeWithReference) {\n value = Math.max(popper[placement], boundaries[placement]);\n }\n\n return defineProperty({}, placement, value);\n },\n secondary: function secondary(placement) {\n var mainSide = placement === 'right' ? 'left' : 'top';\n var value = popper[mainSide];\n\n if (popper[placement] > boundaries[placement] && !options.escapeWithReference) {\n value = Math.min(popper[mainSide], boundaries[placement] - (placement === 'right' ? popper.width : popper.height));\n }\n\n return defineProperty({}, mainSide, value);\n }\n };\n order.forEach(function (placement) {\n var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary';\n popper = _extends({}, popper, check[side](placement));\n });\n data.offsets.popper = popper;\n return data;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction shift(data) {\n var placement = data.placement;\n var basePlacement = placement.split('-')[0];\n var shiftvariation = placement.split('-')[1]; // if shift shiftvariation is specified, run the modifier\n\n if (shiftvariation) {\n var _data$offsets = data.offsets,\n reference = _data$offsets.reference,\n popper = _data$offsets.popper;\n var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1;\n var side = isVertical ? 'left' : 'top';\n var measurement = isVertical ? 'width' : 'height';\n var shiftOffsets = {\n start: defineProperty({}, side, reference[side]),\n end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])\n };\n data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]);\n }\n\n return data;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction hide(data) {\n if (!isModifierRequired(data.instance.modifiers, 'hide', 'preventOverflow')) {\n return data;\n }\n\n var refRect = data.offsets.reference;\n var bound = find(data.instance.modifiers, function (modifier) {\n return modifier.name === 'preventOverflow';\n }).boundaries;\n\n if (refRect.bottom < bound.top || refRect.left > bound.right || refRect.top > bound.bottom || refRect.right < bound.left) {\n // Avoid unnecessary DOM access if visibility hasn't changed\n if (data.hide === true) {\n return data;\n }\n\n data.hide = true;\n data.attributes['x-out-of-boundaries'] = '';\n } else {\n // Avoid unnecessary DOM access if visibility hasn't changed\n if (data.hide === false) {\n return data;\n }\n\n data.hide = false;\n data.attributes['x-out-of-boundaries'] = false;\n }\n\n return data;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction inner(data) {\n var placement = data.placement;\n var basePlacement = placement.split('-')[0];\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1;\n var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1;\n popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0);\n data.placement = getOppositePlacement(placement);\n data.offsets.popper = getClientRect(popper);\n return data;\n}\n/**\n * Modifier function, each modifier can have a function of this type assigned\n * to its `fn` property.
\n * These functions will be called on each update, this means that you must\n * make sure they are performant enough to avoid performance bottlenecks.\n *\n * @function ModifierFn\n * @argument {dataObject} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {dataObject} The data object, properly modified\n */\n\n/**\n * Modifiers are plugins used to alter the behavior of your poppers.
\n * Popper.js uses a set of 9 modifiers to provide all the basic functionalities\n * needed by the library.\n *\n * Usually you don't want to override the `order`, `fn` and `onLoad` props.\n * All the other properties are configurations that could be tweaked.\n * @namespace modifiers\n */\n\n\nvar modifiers = {\n /**\n * Modifier used to shift the popper on the start or end of its reference\n * element.
\n * It will read the variation of the `placement` property.
\n * It can be one either `-end` or `-start`.\n * @memberof modifiers\n * @inner\n */\n shift: {\n /** @prop {number} order=100 - Index used to define the order of execution */\n order: 100,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: shift\n },\n\n /**\n * The `offset` modifier can shift your popper on both its axis.\n *\n * It accepts the following units:\n * - `px` or unit-less, interpreted as pixels\n * - `%` or `%r`, percentage relative to the length of the reference element\n * - `%p`, percentage relative to the length of the popper element\n * - `vw`, CSS viewport width unit\n * - `vh`, CSS viewport height unit\n *\n * For length is intended the main axis relative to the placement of the popper.
\n * This means that if the placement is `top` or `bottom`, the length will be the\n * `width`. In case of `left` or `right`, it will be the `height`.\n *\n * You can provide a single value (as `Number` or `String`), or a pair of values\n * as `String` divided by a comma or one (or more) white spaces.
\n * The latter is a deprecated method because it leads to confusion and will be\n * removed in v2.
\n * Additionally, it accepts additions and subtractions between different units.\n * Note that multiplications and divisions aren't supported.\n *\n * Valid examples are:\n * ```\n * 10\n * '10%'\n * '10, 10'\n * '10%, 10'\n * '10 + 10%'\n * '10 - 5vh + 3%'\n * '-10px + 5vh, 5px - 6%'\n * ```\n * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap\n * > with their reference element, unfortunately, you will have to disable the `flip` modifier.\n * > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373).\n *\n * @memberof modifiers\n * @inner\n */\n offset: {\n /** @prop {number} order=200 - Index used to define the order of execution */\n order: 200,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: offset,\n\n /** @prop {Number|String} offset=0\n * The offset value as described in the modifier description\n */\n offset: 0\n },\n\n /**\n * Modifier used to prevent the popper from being positioned outside the boundary.\n *\n * A scenario exists where the reference itself is not within the boundaries.
\n * We can say it has \"escaped the boundaries\" — or just \"escaped\".
\n * In this case we need to decide whether the popper should either:\n *\n * - detach from the reference and remain \"trapped\" in the boundaries, or\n * - if it should ignore the boundary and \"escape with its reference\"\n *\n * When `escapeWithReference` is set to`true` and reference is completely\n * outside its boundaries, the popper will overflow (or completely leave)\n * the boundaries in order to remain attached to the edge of the reference.\n *\n * @memberof modifiers\n * @inner\n */\n preventOverflow: {\n /** @prop {number} order=300 - Index used to define the order of execution */\n order: 300,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: preventOverflow,\n\n /**\n * @prop {Array} [priority=['left','right','top','bottom']]\n * Popper will try to prevent overflow following these priorities by default,\n * then, it could overflow on the left and on top of the `boundariesElement`\n */\n priority: ['left', 'right', 'top', 'bottom'],\n\n /**\n * @prop {number} padding=5\n * Amount of pixel used to define a minimum distance between the boundaries\n * and the popper. This makes sure the popper always has a little padding\n * between the edges of its container\n */\n padding: 5,\n\n /**\n * @prop {String|HTMLElement} boundariesElement='scrollParent'\n * Boundaries used by the modifier. Can be `scrollParent`, `window`,\n * `viewport` or any DOM element.\n */\n boundariesElement: 'scrollParent'\n },\n\n /**\n * Modifier used to make sure the reference and its popper stay near each other\n * without leaving any gap between the two. Especially useful when the arrow is\n * enabled and you want to ensure that it points to its reference element.\n * It cares only about the first axis. You can still have poppers with margin\n * between the popper and its reference element.\n * @memberof modifiers\n * @inner\n */\n keepTogether: {\n /** @prop {number} order=400 - Index used to define the order of execution */\n order: 400,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: keepTogether\n },\n\n /**\n * This modifier is used to move the `arrowElement` of the popper to make\n * sure it is positioned between the reference element and its popper element.\n * It will read the outer size of the `arrowElement` node to detect how many\n * pixels of conjunction are needed.\n *\n * It has no effect if no `arrowElement` is provided.\n * @memberof modifiers\n * @inner\n */\n arrow: {\n /** @prop {number} order=500 - Index used to define the order of execution */\n order: 500,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: arrow,\n\n /** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */\n element: '[x-arrow]'\n },\n\n /**\n * Modifier used to flip the popper's placement when it starts to overlap its\n * reference element.\n *\n * Requires the `preventOverflow` modifier before it in order to work.\n *\n * **NOTE:** this modifier will interrupt the current update cycle and will\n * restart it if it detects the need to flip the placement.\n * @memberof modifiers\n * @inner\n */\n flip: {\n /** @prop {number} order=600 - Index used to define the order of execution */\n order: 600,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: flip,\n\n /**\n * @prop {String|Array} behavior='flip'\n * The behavior used to change the popper's placement. It can be one of\n * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid\n * placements (with optional variations)\n */\n behavior: 'flip',\n\n /**\n * @prop {number} padding=5\n * The popper will flip if it hits the edges of the `boundariesElement`\n */\n padding: 5,\n\n /**\n * @prop {String|HTMLElement} boundariesElement='viewport'\n * The element which will define the boundaries of the popper position.\n * The popper will never be placed outside of the defined boundaries\n * (except if `keepTogether` is enabled)\n */\n boundariesElement: 'viewport',\n\n /**\n * @prop {Boolean} flipVariations=false\n * The popper will switch placement variation between `-start` and `-end` when\n * the reference element overlaps its boundaries.\n *\n * The original placement should have a set variation.\n */\n flipVariations: false,\n\n /**\n * @prop {Boolean} flipVariationsByContent=false\n * The popper will switch placement variation between `-start` and `-end` when\n * the popper element overlaps its reference boundaries.\n *\n * The original placement should have a set variation.\n */\n flipVariationsByContent: false\n },\n\n /**\n * Modifier used to make the popper flow toward the inner of the reference element.\n * By default, when this modifier is disabled, the popper will be placed outside\n * the reference element.\n * @memberof modifiers\n * @inner\n */\n inner: {\n /** @prop {number} order=700 - Index used to define the order of execution */\n order: 700,\n\n /** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */\n enabled: false,\n\n /** @prop {ModifierFn} */\n fn: inner\n },\n\n /**\n * Modifier used to hide the popper when its reference element is outside of the\n * popper boundaries. It will set a `x-out-of-boundaries` attribute which can\n * be used to hide with a CSS selector the popper when its reference is\n * out of boundaries.\n *\n * Requires the `preventOverflow` modifier before it in order to work.\n * @memberof modifiers\n * @inner\n */\n hide: {\n /** @prop {number} order=800 - Index used to define the order of execution */\n order: 800,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: hide\n },\n\n /**\n * Computes the style that will be applied to the popper element to gets\n * properly positioned.\n *\n * Note that this modifier will not touch the DOM, it just prepares the styles\n * so that `applyStyle` modifier can apply it. This separation is useful\n * in case you need to replace `applyStyle` with a custom implementation.\n *\n * This modifier has `850` as `order` value to maintain backward compatibility\n * with previous versions of Popper.js. Expect the modifiers ordering method\n * to change in future major versions of the library.\n *\n * @memberof modifiers\n * @inner\n */\n computeStyle: {\n /** @prop {number} order=850 - Index used to define the order of execution */\n order: 850,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: computeStyle,\n\n /**\n * @prop {Boolean} gpuAcceleration=true\n * If true, it uses the CSS 3D transformation to position the popper.\n * Otherwise, it will use the `top` and `left` properties\n */\n gpuAcceleration: true,\n\n /**\n * @prop {string} [x='bottom']\n * Where to anchor the X axis (`bottom` or `top`). AKA X offset origin.\n * Change this if your popper should grow in a direction different from `bottom`\n */\n x: 'bottom',\n\n /**\n * @prop {string} [x='left']\n * Where to anchor the Y axis (`left` or `right`). AKA Y offset origin.\n * Change this if your popper should grow in a direction different from `right`\n */\n y: 'right'\n },\n\n /**\n * Applies the computed styles to the popper element.\n *\n * All the DOM manipulations are limited to this modifier. This is useful in case\n * you want to integrate Popper.js inside a framework or view library and you\n * want to delegate all the DOM manipulations to it.\n *\n * Note that if you disable this modifier, you must make sure the popper element\n * has its position set to `absolute` before Popper.js can do its work!\n *\n * Just disable this modifier and define your own to achieve the desired effect.\n *\n * @memberof modifiers\n * @inner\n */\n applyStyle: {\n /** @prop {number} order=900 - Index used to define the order of execution */\n order: 900,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: applyStyle,\n\n /** @prop {Function} */\n onLoad: applyStyleOnLoad,\n\n /**\n * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier\n * @prop {Boolean} gpuAcceleration=true\n * If true, it uses the CSS 3D transformation to position the popper.\n * Otherwise, it will use the `top` and `left` properties\n */\n gpuAcceleration: undefined\n }\n};\n/**\n * The `dataObject` is an object containing all the information used by Popper.js.\n * This object is passed to modifiers and to the `onCreate` and `onUpdate` callbacks.\n * @name dataObject\n * @property {Object} data.instance The Popper.js instance\n * @property {String} data.placement Placement applied to popper\n * @property {String} data.originalPlacement Placement originally defined on init\n * @property {Boolean} data.flipped True if popper has been flipped by flip modifier\n * @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper\n * @property {HTMLElement} data.arrowElement Node used as arrow by arrow modifier\n * @property {Object} data.styles Any CSS property defined here will be applied to the popper. It expects the JavaScript nomenclature (eg. `marginBottom`)\n * @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow. It expects the JavaScript nomenclature (eg. `marginBottom`)\n * @property {Object} data.boundaries Offsets of the popper boundaries\n * @property {Object} data.offsets The measurements of popper, reference and arrow elements\n * @property {Object} data.offsets.popper `top`, `left`, `width`, `height` values\n * @property {Object} data.offsets.reference `top`, `left`, `width`, `height` values\n * @property {Object} data.offsets.arrow] `top` and `left` offsets, only one of them will be different from 0\n */\n\n/**\n * Default options provided to Popper.js constructor.
\n * These can be overridden using the `options` argument of Popper.js.
\n * To override an option, simply pass an object with the same\n * structure of the `options` object, as the 3rd argument. For example:\n * ```\n * new Popper(ref, pop, {\n * modifiers: {\n * preventOverflow: { enabled: false }\n * }\n * })\n * ```\n * @type {Object}\n * @static\n * @memberof Popper\n */\n\nvar Defaults = {\n /**\n * Popper's placement.\n * @prop {Popper.placements} placement='bottom'\n */\n placement: 'bottom',\n\n /**\n * Set this to true if you want popper to position it self in 'fixed' mode\n * @prop {Boolean} positionFixed=false\n */\n positionFixed: false,\n\n /**\n * Whether events (resize, scroll) are initially enabled.\n * @prop {Boolean} eventsEnabled=true\n */\n eventsEnabled: true,\n\n /**\n * Set to true if you want to automatically remove the popper when\n * you call the `destroy` method.\n * @prop {Boolean} removeOnDestroy=false\n */\n removeOnDestroy: false,\n\n /**\n * Callback called when the popper is created.
\n * By default, it is set to no-op.
\n * Access Popper.js instance with `data.instance`.\n * @prop {onCreate}\n */\n onCreate: function onCreate() {},\n\n /**\n * Callback called when the popper is updated. This callback is not called\n * on the initialization/creation of the popper, but only on subsequent\n * updates.
\n * By default, it is set to no-op.
\n * Access Popper.js instance with `data.instance`.\n * @prop {onUpdate}\n */\n onUpdate: function onUpdate() {},\n\n /**\n * List of modifiers used to modify the offsets before they are applied to the popper.\n * They provide most of the functionalities of Popper.js.\n * @prop {modifiers}\n */\n modifiers: modifiers\n};\n/**\n * @callback onCreate\n * @param {dataObject} data\n */\n\n/**\n * @callback onUpdate\n * @param {dataObject} data\n */\n// Utils\n// Methods\n\nvar Popper = function () {\n /**\n * Creates a new Popper.js instance.\n * @class Popper\n * @param {Element|referenceObject} reference - The reference element used to position the popper\n * @param {Element} popper - The HTML / XML element used as the popper\n * @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults)\n * @return {Object} instance - The generated Popper.js instance\n */\n function Popper(reference, popper) {\n var _this = this;\n\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n classCallCheck(this, Popper);\n\n this.scheduleUpdate = function () {\n return requestAnimationFrame(_this.update);\n }; // make update() debounced, so that it only runs at most once-per-tick\n\n\n this.update = debounce(this.update.bind(this)); // with {} we create a new object with the options inside it\n\n this.options = _extends({}, Popper.Defaults, options); // init state\n\n this.state = {\n isDestroyed: false,\n isCreated: false,\n scrollParents: []\n }; // get reference and popper elements (allow jQuery wrappers)\n\n this.reference = reference && reference.jquery ? reference[0] : reference;\n this.popper = popper && popper.jquery ? popper[0] : popper; // Deep merge modifiers options\n\n this.options.modifiers = {};\n Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) {\n _this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});\n }); // Refactoring modifiers' list (Object => Array)\n\n this.modifiers = Object.keys(this.options.modifiers).map(function (name) {\n return _extends({\n name: name\n }, _this.options.modifiers[name]);\n }) // sort the modifiers by order\n .sort(function (a, b) {\n return a.order - b.order;\n }); // modifiers have the ability to execute arbitrary code when Popper.js get inited\n // such code is executed in the same order of its modifier\n // they could add new properties to their options configuration\n // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`!\n\n this.modifiers.forEach(function (modifierOptions) {\n if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) {\n modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state);\n }\n }); // fire the first update to position the popper in the right place\n\n this.update();\n var eventsEnabled = this.options.eventsEnabled;\n\n if (eventsEnabled) {\n // setup event listeners, they will take care of update the position in specific situations\n this.enableEventListeners();\n }\n\n this.state.eventsEnabled = eventsEnabled;\n } // We can't use class properties because they don't get listed in the\n // class prototype and break stuff like Sinon stubs\n\n\n createClass(Popper, [{\n key: 'update',\n value: function update$$1() {\n return update.call(this);\n }\n }, {\n key: 'destroy',\n value: function destroy$$1() {\n return destroy.call(this);\n }\n }, {\n key: 'enableEventListeners',\n value: function enableEventListeners$$1() {\n return enableEventListeners.call(this);\n }\n }, {\n key: 'disableEventListeners',\n value: function disableEventListeners$$1() {\n return disableEventListeners.call(this);\n }\n /**\n * Schedules an update. It will run on the next UI update available.\n * @method scheduleUpdate\n * @memberof Popper\n */\n\n /**\n * Collection of utilities useful when writing custom modifiers.\n * Starting from version 1.7, this method is available only if you\n * include `popper-utils.js` before `popper.js`.\n *\n * **DEPRECATION**: This way to access PopperUtils is deprecated\n * and will be removed in v2! Use the PopperUtils module directly instead.\n * Due to the high instability of the methods contained in Utils, we can't\n * guarantee them to follow semver. Use them at your own risk!\n * @static\n * @private\n * @type {Object}\n * @deprecated since version 1.8\n * @member Utils\n * @memberof Popper\n */\n\n }]);\n return Popper;\n}();\n/**\n * The `referenceObject` is an object that provides an interface compatible with Popper.js\n * and lets you use it as replacement of a real DOM node.
\n * You can use this method to position a popper relatively to a set of coordinates\n * in case you don't have a DOM node to use as reference.\n *\n * ```\n * new Popper(referenceObject, popperNode);\n * ```\n *\n * NB: This feature isn't supported in Internet Explorer 10.\n * @name referenceObject\n * @property {Function} data.getBoundingClientRect\n * A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method.\n * @property {number} data.clientWidth\n * An ES6 getter that will return the width of the virtual reference element.\n * @property {number} data.clientHeight\n * An ES6 getter that will return the height of the virtual reference element.\n */\n\n\nPopper.Utils = (typeof window !== 'undefined' ? window : global).PopperUtils;\nPopper.placements = placements;\nPopper.Defaults = Defaults;\nexport default Popper;","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\n/*\nUnobtrusive JavaScript\nhttps://github.com/rails/rails/blob/main/actionview/app/assets/javascripts\nReleased under the MIT license\n */\n;\n(function () {\n var context = this;\n (function () {\n (function () {\n this.Rails = {\n linkClickSelector: 'a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]',\n buttonClickSelector: {\n selector: 'button[data-remote]:not([form]), button[data-confirm]:not([form])',\n exclude: 'form button'\n },\n inputChangeSelector: 'select[data-remote], input[data-remote], textarea[data-remote]',\n formSubmitSelector: 'form',\n formInputClickSelector: 'form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])',\n formDisableSelector: 'input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled',\n formEnableSelector: 'input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled',\n fileInputSelector: 'input[name][type=file]:not([disabled])',\n linkDisableSelector: 'a[data-disable-with], a[data-disable]',\n buttonDisableSelector: 'button[data-remote][data-disable-with], button[data-remote][data-disable]'\n };\n }).call(this);\n }).call(context);\n var Rails = context.Rails;\n (function () {\n (function () {\n var nonce;\n nonce = null;\n\n Rails.loadCSPNonce = function () {\n var ref;\n return nonce = (ref = document.querySelector(\"meta[name=csp-nonce]\")) != null ? ref.content : void 0;\n };\n\n Rails.cspNonce = function () {\n return nonce != null ? nonce : Rails.loadCSPNonce();\n };\n }).call(this);\n (function () {\n var expando, m;\n m = Element.prototype.matches || Element.prototype.matchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.oMatchesSelector || Element.prototype.webkitMatchesSelector;\n\n Rails.matches = function (element, selector) {\n if (selector.exclude != null) {\n return m.call(element, selector.selector) && !m.call(element, selector.exclude);\n } else {\n return m.call(element, selector);\n }\n };\n\n expando = '_ujsData';\n\n Rails.getData = function (element, key) {\n var ref;\n return (ref = element[expando]) != null ? ref[key] : void 0;\n };\n\n Rails.setData = function (element, key, value) {\n if (element[expando] == null) {\n element[expando] = {};\n }\n\n return element[expando][key] = value;\n };\n\n Rails.$ = function (selector) {\n return Array.prototype.slice.call(document.querySelectorAll(selector));\n };\n }).call(this);\n (function () {\n var $, csrfParam, csrfToken;\n $ = Rails.$;\n\n csrfToken = Rails.csrfToken = function () {\n var meta;\n meta = document.querySelector('meta[name=csrf-token]');\n return meta && meta.content;\n };\n\n csrfParam = Rails.csrfParam = function () {\n var meta;\n meta = document.querySelector('meta[name=csrf-param]');\n return meta && meta.content;\n };\n\n Rails.CSRFProtection = function (xhr) {\n var token;\n token = csrfToken();\n\n if (token != null) {\n return xhr.setRequestHeader('X-CSRF-Token', token);\n }\n };\n\n Rails.refreshCSRFTokens = function () {\n var param, token;\n token = csrfToken();\n param = csrfParam();\n\n if (token != null && param != null) {\n return $('form input[name=\"' + param + '\"]').forEach(function (input) {\n return input.value = token;\n });\n }\n };\n }).call(this);\n (function () {\n var CustomEvent, fire, matches, preventDefault;\n matches = Rails.matches;\n CustomEvent = window.CustomEvent;\n\n if (typeof CustomEvent !== 'function') {\n CustomEvent = function CustomEvent(event, params) {\n var evt;\n evt = document.createEvent('CustomEvent');\n evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);\n return evt;\n };\n\n CustomEvent.prototype = window.Event.prototype;\n preventDefault = CustomEvent.prototype.preventDefault;\n\n CustomEvent.prototype.preventDefault = function () {\n var result;\n result = preventDefault.call(this);\n\n if (this.cancelable && !this.defaultPrevented) {\n Object.defineProperty(this, 'defaultPrevented', {\n get: function get() {\n return true;\n }\n });\n }\n\n return result;\n };\n }\n\n fire = Rails.fire = function (obj, name, data) {\n var event;\n event = new CustomEvent(name, {\n bubbles: true,\n cancelable: true,\n detail: data\n });\n obj.dispatchEvent(event);\n return !event.defaultPrevented;\n };\n\n Rails.stopEverything = function (e) {\n fire(e.target, 'ujs:everythingStopped');\n e.preventDefault();\n e.stopPropagation();\n return e.stopImmediatePropagation();\n };\n\n Rails.delegate = function (element, selector, eventType, handler) {\n return element.addEventListener(eventType, function (e) {\n var target;\n target = e.target;\n\n while (!(!(target instanceof Element) || matches(target, selector))) {\n target = target.parentNode;\n }\n\n if (target instanceof Element && handler.call(target, e) === false) {\n e.preventDefault();\n return e.stopPropagation();\n }\n });\n };\n }).call(this);\n (function () {\n var AcceptHeaders, CSRFProtection, createXHR, cspNonce, fire, prepareOptions, processResponse;\n cspNonce = Rails.cspNonce, CSRFProtection = Rails.CSRFProtection, fire = Rails.fire;\n AcceptHeaders = {\n '*': '*/*',\n text: 'text/plain',\n html: 'text/html',\n xml: 'application/xml, text/xml',\n json: 'application/json, text/javascript',\n script: 'text/javascript, application/javascript, application/ecmascript, application/x-ecmascript'\n };\n\n Rails.ajax = function (options) {\n var xhr;\n options = prepareOptions(options);\n xhr = createXHR(options, function () {\n var ref, response;\n response = processResponse((ref = xhr.response) != null ? ref : xhr.responseText, xhr.getResponseHeader('Content-Type'));\n\n if (Math.floor(xhr.status / 100) === 2) {\n if (typeof options.success === \"function\") {\n options.success(response, xhr.statusText, xhr);\n }\n } else {\n if (typeof options.error === \"function\") {\n options.error(response, xhr.statusText, xhr);\n }\n }\n\n return typeof options.complete === \"function\" ? options.complete(xhr, xhr.statusText) : void 0;\n });\n\n if (options.beforeSend != null && !options.beforeSend(xhr, options)) {\n return false;\n }\n\n if (xhr.readyState === XMLHttpRequest.OPENED) {\n return xhr.send(options.data);\n }\n };\n\n prepareOptions = function prepareOptions(options) {\n options.url = options.url || location.href;\n options.type = options.type.toUpperCase();\n\n if (options.type === 'GET' && options.data) {\n if (options.url.indexOf('?') < 0) {\n options.url += '?' + options.data;\n } else {\n options.url += '&' + options.data;\n }\n }\n\n if (AcceptHeaders[options.dataType] == null) {\n options.dataType = '*';\n }\n\n options.accept = AcceptHeaders[options.dataType];\n\n if (options.dataType !== '*') {\n options.accept += ', */*; q=0.01';\n }\n\n return options;\n };\n\n createXHR = function createXHR(options, done) {\n var xhr;\n xhr = new XMLHttpRequest();\n xhr.open(options.type, options.url, true);\n xhr.setRequestHeader('Accept', options.accept);\n\n if (typeof options.data === 'string') {\n xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');\n }\n\n if (!options.crossDomain) {\n xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');\n CSRFProtection(xhr);\n }\n\n xhr.withCredentials = !!options.withCredentials;\n\n xhr.onreadystatechange = function () {\n if (xhr.readyState === XMLHttpRequest.DONE) {\n return done(xhr);\n }\n };\n\n return xhr;\n };\n\n processResponse = function processResponse(response, type) {\n var parser, script;\n\n if (typeof response === 'string' && typeof type === 'string') {\n if (type.match(/\\bjson\\b/)) {\n try {\n response = JSON.parse(response);\n } catch (error) {}\n } else if (type.match(/\\b(?:java|ecma)script\\b/)) {\n script = document.createElement('script');\n script.setAttribute('nonce', cspNonce());\n script.text = response;\n document.head.appendChild(script).parentNode.removeChild(script);\n } else if (type.match(/\\b(xml|html|svg)\\b/)) {\n parser = new DOMParser();\n type = type.replace(/;.+/, '');\n\n try {\n response = parser.parseFromString(response, type);\n } catch (error) {}\n }\n }\n\n return response;\n };\n\n Rails.href = function (element) {\n return element.href;\n };\n\n Rails.isCrossDomain = function (url) {\n var e, originAnchor, urlAnchor;\n originAnchor = document.createElement('a');\n originAnchor.href = location.href;\n urlAnchor = document.createElement('a');\n\n try {\n urlAnchor.href = url;\n return !((!urlAnchor.protocol || urlAnchor.protocol === ':') && !urlAnchor.host || originAnchor.protocol + '//' + originAnchor.host === urlAnchor.protocol + '//' + urlAnchor.host);\n } catch (error) {\n e = error;\n return true;\n }\n };\n }).call(this);\n (function () {\n var matches, toArray;\n matches = Rails.matches;\n\n toArray = function toArray(e) {\n return Array.prototype.slice.call(e);\n };\n\n Rails.serializeElement = function (element, additionalParam) {\n var inputs, params;\n inputs = [element];\n\n if (matches(element, 'form')) {\n inputs = toArray(element.elements);\n }\n\n params = [];\n inputs.forEach(function (input) {\n if (!input.name || input.disabled) {\n return;\n }\n\n if (matches(input, 'fieldset[disabled] *')) {\n return;\n }\n\n if (matches(input, 'select')) {\n return toArray(input.options).forEach(function (option) {\n if (option.selected) {\n return params.push({\n name: input.name,\n value: option.value\n });\n }\n });\n } else if (input.checked || ['radio', 'checkbox', 'submit'].indexOf(input.type) === -1) {\n return params.push({\n name: input.name,\n value: input.value\n });\n }\n });\n\n if (additionalParam) {\n params.push(additionalParam);\n }\n\n return params.map(function (param) {\n if (param.name != null) {\n return encodeURIComponent(param.name) + \"=\" + encodeURIComponent(param.value);\n } else {\n return param;\n }\n }).join('&');\n };\n\n Rails.formElements = function (form, selector) {\n if (matches(form, 'form')) {\n return toArray(form.elements).filter(function (el) {\n return matches(el, selector);\n });\n } else {\n return toArray(form.querySelectorAll(selector));\n }\n };\n }).call(this);\n (function () {\n var allowAction, fire, stopEverything;\n fire = Rails.fire, stopEverything = Rails.stopEverything;\n\n Rails.handleConfirm = function (e) {\n if (!allowAction(this)) {\n return stopEverything(e);\n }\n };\n\n Rails.confirm = function (message, element) {\n return confirm(message);\n };\n\n allowAction = function allowAction(element) {\n var answer, callback, message;\n message = element.getAttribute('data-confirm');\n\n if (!message) {\n return true;\n }\n\n answer = false;\n\n if (fire(element, 'confirm')) {\n try {\n answer = Rails.confirm(message, element);\n } catch (error) {}\n\n callback = fire(element, 'confirm:complete', [answer]);\n }\n\n return answer && callback;\n };\n }).call(this);\n (function () {\n var disableFormElement, disableFormElements, disableLinkElement, enableFormElement, enableFormElements, enableLinkElement, formElements, getData, isXhrRedirect, matches, setData, stopEverything;\n matches = Rails.matches, getData = Rails.getData, setData = Rails.setData, stopEverything = Rails.stopEverything, formElements = Rails.formElements;\n\n Rails.handleDisabledElement = function (e) {\n var element;\n element = this;\n\n if (element.disabled) {\n return stopEverything(e);\n }\n };\n\n Rails.enableElement = function (e) {\n var element;\n\n if (e instanceof Event) {\n if (isXhrRedirect(e)) {\n return;\n }\n\n element = e.target;\n } else {\n element = e;\n }\n\n if (matches(element, Rails.linkDisableSelector)) {\n return enableLinkElement(element);\n } else if (matches(element, Rails.buttonDisableSelector) || matches(element, Rails.formEnableSelector)) {\n return enableFormElement(element);\n } else if (matches(element, Rails.formSubmitSelector)) {\n return enableFormElements(element);\n }\n };\n\n Rails.disableElement = function (e) {\n var element;\n element = e instanceof Event ? e.target : e;\n\n if (matches(element, Rails.linkDisableSelector)) {\n return disableLinkElement(element);\n } else if (matches(element, Rails.buttonDisableSelector) || matches(element, Rails.formDisableSelector)) {\n return disableFormElement(element);\n } else if (matches(element, Rails.formSubmitSelector)) {\n return disableFormElements(element);\n }\n };\n\n disableLinkElement = function disableLinkElement(element) {\n var replacement;\n\n if (getData(element, 'ujs:disabled')) {\n return;\n }\n\n replacement = element.getAttribute('data-disable-with');\n\n if (replacement != null) {\n setData(element, 'ujs:enable-with', element.innerHTML);\n element.innerHTML = replacement;\n }\n\n element.addEventListener('click', stopEverything);\n return setData(element, 'ujs:disabled', true);\n };\n\n enableLinkElement = function enableLinkElement(element) {\n var originalText;\n originalText = getData(element, 'ujs:enable-with');\n\n if (originalText != null) {\n element.innerHTML = originalText;\n setData(element, 'ujs:enable-with', null);\n }\n\n element.removeEventListener('click', stopEverything);\n return setData(element, 'ujs:disabled', null);\n };\n\n disableFormElements = function disableFormElements(form) {\n return formElements(form, Rails.formDisableSelector).forEach(disableFormElement);\n };\n\n disableFormElement = function disableFormElement(element) {\n var replacement;\n\n if (getData(element, 'ujs:disabled')) {\n return;\n }\n\n replacement = element.getAttribute('data-disable-with');\n\n if (replacement != null) {\n if (matches(element, 'button')) {\n setData(element, 'ujs:enable-with', element.innerHTML);\n element.innerHTML = replacement;\n } else {\n setData(element, 'ujs:enable-with', element.value);\n element.value = replacement;\n }\n }\n\n element.disabled = true;\n return setData(element, 'ujs:disabled', true);\n };\n\n enableFormElements = function enableFormElements(form) {\n return formElements(form, Rails.formEnableSelector).forEach(enableFormElement);\n };\n\n enableFormElement = function enableFormElement(element) {\n var originalText;\n originalText = getData(element, 'ujs:enable-with');\n\n if (originalText != null) {\n if (matches(element, 'button')) {\n element.innerHTML = originalText;\n } else {\n element.value = originalText;\n }\n\n setData(element, 'ujs:enable-with', null);\n }\n\n element.disabled = false;\n return setData(element, 'ujs:disabled', null);\n };\n\n isXhrRedirect = function isXhrRedirect(event) {\n var ref, xhr;\n xhr = (ref = event.detail) != null ? ref[0] : void 0;\n return (xhr != null ? xhr.getResponseHeader(\"X-Xhr-Redirect\") : void 0) != null;\n };\n }).call(this);\n (function () {\n var stopEverything;\n stopEverything = Rails.stopEverything;\n\n Rails.handleMethod = function (e) {\n var csrfParam, csrfToken, form, formContent, href, link, method;\n link = this;\n method = link.getAttribute('data-method');\n\n if (!method) {\n return;\n }\n\n href = Rails.href(link);\n csrfToken = Rails.csrfToken();\n csrfParam = Rails.csrfParam();\n form = document.createElement('form');\n formContent = \"\";\n\n if (csrfParam != null && csrfToken != null && !Rails.isCrossDomain(href)) {\n formContent += \"\";\n }\n\n formContent += '';\n form.method = 'post';\n form.action = href;\n form.target = link.target;\n form.innerHTML = formContent;\n form.style.display = 'none';\n document.body.appendChild(form);\n form.querySelector('[type=\"submit\"]').click();\n return stopEverything(e);\n };\n }).call(this);\n (function () {\n var ajax,\n fire,\n getData,\n isCrossDomain,\n isRemote,\n matches,\n serializeElement,\n setData,\n stopEverything,\n slice = [].slice;\n matches = Rails.matches, getData = Rails.getData, setData = Rails.setData, fire = Rails.fire, stopEverything = Rails.stopEverything, ajax = Rails.ajax, isCrossDomain = Rails.isCrossDomain, serializeElement = Rails.serializeElement;\n\n isRemote = function isRemote(element) {\n var value;\n value = element.getAttribute('data-remote');\n return value != null && value !== 'false';\n };\n\n Rails.handleRemote = function (e) {\n var button, data, dataType, element, method, url, withCredentials;\n element = this;\n\n if (!isRemote(element)) {\n return true;\n }\n\n if (!fire(element, 'ajax:before')) {\n fire(element, 'ajax:stopped');\n return false;\n }\n\n withCredentials = element.getAttribute('data-with-credentials');\n dataType = element.getAttribute('data-type') || 'script';\n\n if (matches(element, Rails.formSubmitSelector)) {\n button = getData(element, 'ujs:submit-button');\n method = getData(element, 'ujs:submit-button-formmethod') || element.method;\n url = getData(element, 'ujs:submit-button-formaction') || element.getAttribute('action') || location.href;\n\n if (method.toUpperCase() === 'GET') {\n url = url.replace(/\\?.*$/, '');\n }\n\n if (element.enctype === 'multipart/form-data') {\n data = new FormData(element);\n\n if (button != null) {\n data.append(button.name, button.value);\n }\n } else {\n data = serializeElement(element, button);\n }\n\n setData(element, 'ujs:submit-button', null);\n setData(element, 'ujs:submit-button-formmethod', null);\n setData(element, 'ujs:submit-button-formaction', null);\n } else if (matches(element, Rails.buttonClickSelector) || matches(element, Rails.inputChangeSelector)) {\n method = element.getAttribute('data-method');\n url = element.getAttribute('data-url');\n data = serializeElement(element, element.getAttribute('data-params'));\n } else {\n method = element.getAttribute('data-method');\n url = Rails.href(element);\n data = element.getAttribute('data-params');\n }\n\n ajax({\n type: method || 'GET',\n url: url,\n data: data,\n dataType: dataType,\n beforeSend: function beforeSend(xhr, options) {\n if (fire(element, 'ajax:beforeSend', [xhr, options])) {\n return fire(element, 'ajax:send', [xhr]);\n } else {\n fire(element, 'ajax:stopped');\n return false;\n }\n },\n success: function success() {\n var args;\n args = 1 <= arguments.length ? slice.call(arguments, 0) : [];\n return fire(element, 'ajax:success', args);\n },\n error: function error() {\n var args;\n args = 1 <= arguments.length ? slice.call(arguments, 0) : [];\n return fire(element, 'ajax:error', args);\n },\n complete: function complete() {\n var args;\n args = 1 <= arguments.length ? slice.call(arguments, 0) : [];\n return fire(element, 'ajax:complete', args);\n },\n crossDomain: isCrossDomain(url),\n withCredentials: withCredentials != null && withCredentials !== 'false'\n });\n return stopEverything(e);\n };\n\n Rails.formSubmitButtonClick = function (e) {\n var button, form;\n button = this;\n form = button.form;\n\n if (!form) {\n return;\n }\n\n if (button.name) {\n setData(form, 'ujs:submit-button', {\n name: button.name,\n value: button.value\n });\n }\n\n setData(form, 'ujs:formnovalidate-button', button.formNoValidate);\n setData(form, 'ujs:submit-button-formaction', button.getAttribute('formaction'));\n return setData(form, 'ujs:submit-button-formmethod', button.getAttribute('formmethod'));\n };\n\n Rails.preventInsignificantClick = function (e) {\n var data, insignificantMetaClick, link, metaClick, method, nonPrimaryMouseClick;\n link = this;\n method = (link.getAttribute('data-method') || 'GET').toUpperCase();\n data = link.getAttribute('data-params');\n metaClick = e.metaKey || e.ctrlKey;\n insignificantMetaClick = metaClick && method === 'GET' && !data;\n nonPrimaryMouseClick = e.button != null && e.button !== 0;\n\n if (nonPrimaryMouseClick || insignificantMetaClick) {\n return e.stopImmediatePropagation();\n }\n };\n }).call(this);\n (function () {\n var $, CSRFProtection, delegate, disableElement, enableElement, fire, formSubmitButtonClick, getData, handleConfirm, handleDisabledElement, handleMethod, handleRemote, loadCSPNonce, preventInsignificantClick, refreshCSRFTokens;\n fire = Rails.fire, delegate = Rails.delegate, getData = Rails.getData, $ = Rails.$, refreshCSRFTokens = Rails.refreshCSRFTokens, CSRFProtection = Rails.CSRFProtection, loadCSPNonce = Rails.loadCSPNonce, enableElement = Rails.enableElement, disableElement = Rails.disableElement, handleDisabledElement = Rails.handleDisabledElement, handleConfirm = Rails.handleConfirm, preventInsignificantClick = Rails.preventInsignificantClick, handleRemote = Rails.handleRemote, formSubmitButtonClick = Rails.formSubmitButtonClick, handleMethod = Rails.handleMethod;\n\n if (typeof jQuery !== \"undefined\" && jQuery !== null && jQuery.ajax != null) {\n if (jQuery.rails) {\n throw new Error('If you load both jquery_ujs and rails-ujs, use rails-ujs only.');\n }\n\n jQuery.rails = Rails;\n jQuery.ajaxPrefilter(function (options, originalOptions, xhr) {\n if (!options.crossDomain) {\n return CSRFProtection(xhr);\n }\n });\n }\n\n Rails.start = function () {\n if (window._rails_loaded) {\n throw new Error('rails-ujs has already been loaded!');\n }\n\n window.addEventListener('pageshow', function () {\n $(Rails.formEnableSelector).forEach(function (el) {\n if (getData(el, 'ujs:disabled')) {\n return enableElement(el);\n }\n });\n return $(Rails.linkDisableSelector).forEach(function (el) {\n if (getData(el, 'ujs:disabled')) {\n return enableElement(el);\n }\n });\n });\n delegate(document, Rails.linkDisableSelector, 'ajax:complete', enableElement);\n delegate(document, Rails.linkDisableSelector, 'ajax:stopped', enableElement);\n delegate(document, Rails.buttonDisableSelector, 'ajax:complete', enableElement);\n delegate(document, Rails.buttonDisableSelector, 'ajax:stopped', enableElement);\n delegate(document, Rails.linkClickSelector, 'click', preventInsignificantClick);\n delegate(document, Rails.linkClickSelector, 'click', handleDisabledElement);\n delegate(document, Rails.linkClickSelector, 'click', handleConfirm);\n delegate(document, Rails.linkClickSelector, 'click', disableElement);\n delegate(document, Rails.linkClickSelector, 'click', handleRemote);\n delegate(document, Rails.linkClickSelector, 'click', handleMethod);\n delegate(document, Rails.buttonClickSelector, 'click', preventInsignificantClick);\n delegate(document, Rails.buttonClickSelector, 'click', handleDisabledElement);\n delegate(document, Rails.buttonClickSelector, 'click', handleConfirm);\n delegate(document, Rails.buttonClickSelector, 'click', disableElement);\n delegate(document, Rails.buttonClickSelector, 'click', handleRemote);\n delegate(document, Rails.inputChangeSelector, 'change', handleDisabledElement);\n delegate(document, Rails.inputChangeSelector, 'change', handleConfirm);\n delegate(document, Rails.inputChangeSelector, 'change', handleRemote);\n delegate(document, Rails.formSubmitSelector, 'submit', handleDisabledElement);\n delegate(document, Rails.formSubmitSelector, 'submit', handleConfirm);\n delegate(document, Rails.formSubmitSelector, 'submit', handleRemote);\n delegate(document, Rails.formSubmitSelector, 'submit', function (e) {\n return setTimeout(function () {\n return disableElement(e);\n }, 13);\n });\n delegate(document, Rails.formSubmitSelector, 'ajax:send', disableElement);\n delegate(document, Rails.formSubmitSelector, 'ajax:complete', enableElement);\n delegate(document, Rails.formInputClickSelector, 'click', preventInsignificantClick);\n delegate(document, Rails.formInputClickSelector, 'click', handleDisabledElement);\n delegate(document, Rails.formInputClickSelector, 'click', handleConfirm);\n delegate(document, Rails.formInputClickSelector, 'click', formSubmitButtonClick);\n document.addEventListener('DOMContentLoaded', refreshCSRFTokens);\n document.addEventListener('DOMContentLoaded', loadCSPNonce);\n return window._rails_loaded = true;\n };\n\n if (window.Rails === Rails && fire(document, 'rails:attachBindings')) {\n Rails.start();\n }\n }).call(this);\n }).call(this);\n\n if ((typeof module === \"undefined\" ? \"undefined\" : _typeof(module)) === \"object\" && module.exports) {\n module.exports = Rails;\n } else if (typeof define === \"function\" && define.amd) {\n define(Rails);\n }\n}).call(this);","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\n/*\nTurbolinks 5.2.0\nCopyright © 2018 Basecamp, LLC\n */\n(function () {\n var t = this;\n (function () {\n (function () {\n this.Turbolinks = {\n supported: function () {\n return null != window.history.pushState && null != window.requestAnimationFrame && null != window.addEventListener;\n }(),\n visit: function visit(t, r) {\n return e.controller.visit(t, r);\n },\n clearCache: function clearCache() {\n return e.controller.clearCache();\n },\n setProgressBarDelay: function setProgressBarDelay(t) {\n return e.controller.setProgressBarDelay(t);\n }\n };\n }).call(this);\n }).call(t);\n var e = t.Turbolinks;\n (function () {\n (function () {\n var t,\n r,\n n,\n o = [].slice;\n e.copyObject = function (t) {\n var e, r, n;\n r = {};\n\n for (e in t) {\n n = t[e], r[e] = n;\n }\n\n return r;\n }, e.closest = function (e, r) {\n return t.call(e, r);\n }, t = function () {\n var t, e;\n return t = document.documentElement, null != (e = t.closest) ? e : function (t) {\n var e;\n\n for (e = this; e;) {\n if (e.nodeType === Node.ELEMENT_NODE && r.call(e, t)) return e;\n e = e.parentNode;\n }\n };\n }(), e.defer = function (t) {\n return setTimeout(t, 1);\n }, e.throttle = function (t) {\n var e;\n return e = null, function () {\n var r;\n return r = 1 <= arguments.length ? o.call(arguments, 0) : [], null != e ? e : e = requestAnimationFrame(function (n) {\n return function () {\n return e = null, t.apply(n, r);\n };\n }(this));\n };\n }, e.dispatch = function (t, e) {\n var r, o, i, s, a, u;\n return a = null != e ? e : {}, u = a.target, r = a.cancelable, o = a.data, i = document.createEvent(\"Events\"), i.initEvent(t, !0, r === !0), i.data = null != o ? o : {}, i.cancelable && !n && (s = i.preventDefault, i.preventDefault = function () {\n return this.defaultPrevented || Object.defineProperty(this, \"defaultPrevented\", {\n get: function get() {\n return !0;\n }\n }), s.call(this);\n }), (null != u ? u : document).dispatchEvent(i), i;\n }, n = function () {\n var t;\n return t = document.createEvent(\"Events\"), t.initEvent(\"test\", !0, !0), t.preventDefault(), t.defaultPrevented;\n }(), e.match = function (t, e) {\n return r.call(t, e);\n }, r = function () {\n var t, e, r, n;\n return t = document.documentElement, null != (e = null != (r = null != (n = t.matchesSelector) ? n : t.webkitMatchesSelector) ? r : t.msMatchesSelector) ? e : t.mozMatchesSelector;\n }(), e.uuid = function () {\n var t, e, r;\n\n for (r = \"\", t = e = 1; 36 >= e; t = ++e) {\n r += 9 === t || 14 === t || 19 === t || 24 === t ? \"-\" : 15 === t ? \"4\" : 20 === t ? (Math.floor(4 * Math.random()) + 8).toString(16) : Math.floor(15 * Math.random()).toString(16);\n }\n\n return r;\n };\n }).call(this), function () {\n e.Location = function () {\n function t(t) {\n var e, r;\n null == t && (t = \"\"), r = document.createElement(\"a\"), r.href = t.toString(), this.absoluteURL = r.href, e = r.hash.length, 2 > e ? this.requestURL = this.absoluteURL : (this.requestURL = this.absoluteURL.slice(0, -e), this.anchor = r.hash.slice(1));\n }\n\n var e, r, n, o;\n return t.wrap = function (t) {\n return t instanceof this ? t : new this(t);\n }, t.prototype.getOrigin = function () {\n return this.absoluteURL.split(\"/\", 3).join(\"/\");\n }, t.prototype.getPath = function () {\n var t, e;\n return null != (t = null != (e = this.requestURL.match(/\\/\\/[^\\/]*(\\/[^?;]*)/)) ? e[1] : void 0) ? t : \"/\";\n }, t.prototype.getPathComponents = function () {\n return this.getPath().split(\"/\").slice(1);\n }, t.prototype.getLastPathComponent = function () {\n return this.getPathComponents().slice(-1)[0];\n }, t.prototype.getExtension = function () {\n var t, e;\n return null != (t = null != (e = this.getLastPathComponent().match(/\\.[^.]*$/)) ? e[0] : void 0) ? t : \"\";\n }, t.prototype.isHTML = function () {\n return this.getExtension().match(/^(?:|\\.(?:htm|html|xhtml))$/);\n }, t.prototype.isPrefixedBy = function (t) {\n var e;\n return e = r(t), this.isEqualTo(t) || o(this.absoluteURL, e);\n }, t.prototype.isEqualTo = function (t) {\n return this.absoluteURL === (null != t ? t.absoluteURL : void 0);\n }, t.prototype.toCacheKey = function () {\n return this.requestURL;\n }, t.prototype.toJSON = function () {\n return this.absoluteURL;\n }, t.prototype.toString = function () {\n return this.absoluteURL;\n }, t.prototype.valueOf = function () {\n return this.absoluteURL;\n }, r = function r(t) {\n return e(t.getOrigin() + t.getPath());\n }, e = function e(t) {\n return n(t, \"/\") ? t : t + \"/\";\n }, o = function o(t, e) {\n return t.slice(0, e.length) === e;\n }, n = function n(t, e) {\n return t.slice(-e.length) === e;\n }, t;\n }();\n }.call(this), function () {\n var t = function t(_t, e) {\n return function () {\n return _t.apply(e, arguments);\n };\n };\n\n e.HttpRequest = function () {\n function r(r, n, o) {\n this.delegate = r, this.requestCanceled = t(this.requestCanceled, this), this.requestTimedOut = t(this.requestTimedOut, this), this.requestFailed = t(this.requestFailed, this), this.requestLoaded = t(this.requestLoaded, this), this.requestProgressed = t(this.requestProgressed, this), this.url = e.Location.wrap(n).requestURL, this.referrer = e.Location.wrap(o).absoluteURL, this.createXHR();\n }\n\n return r.NETWORK_FAILURE = 0, r.TIMEOUT_FAILURE = -1, r.timeout = 60, r.prototype.send = function () {\n var t;\n return this.xhr && !this.sent ? (this.notifyApplicationBeforeRequestStart(), this.setProgress(0), this.xhr.send(), this.sent = !0, \"function\" == typeof (t = this.delegate).requestStarted ? t.requestStarted() : void 0) : void 0;\n }, r.prototype.cancel = function () {\n return this.xhr && this.sent ? this.xhr.abort() : void 0;\n }, r.prototype.requestProgressed = function (t) {\n return t.lengthComputable ? this.setProgress(t.loaded / t.total) : void 0;\n }, r.prototype.requestLoaded = function () {\n return this.endRequest(function (t) {\n return function () {\n var e;\n return 200 <= (e = t.xhr.status) && 300 > e ? t.delegate.requestCompletedWithResponse(t.xhr.responseText, t.xhr.getResponseHeader(\"Turbolinks-Location\")) : (t.failed = !0, t.delegate.requestFailedWithStatusCode(t.xhr.status, t.xhr.responseText));\n };\n }(this));\n }, r.prototype.requestFailed = function () {\n return this.endRequest(function (t) {\n return function () {\n return t.failed = !0, t.delegate.requestFailedWithStatusCode(t.constructor.NETWORK_FAILURE);\n };\n }(this));\n }, r.prototype.requestTimedOut = function () {\n return this.endRequest(function (t) {\n return function () {\n return t.failed = !0, t.delegate.requestFailedWithStatusCode(t.constructor.TIMEOUT_FAILURE);\n };\n }(this));\n }, r.prototype.requestCanceled = function () {\n return this.endRequest();\n }, r.prototype.notifyApplicationBeforeRequestStart = function () {\n return e.dispatch(\"turbolinks:request-start\", {\n data: {\n url: this.url,\n xhr: this.xhr\n }\n });\n }, r.prototype.notifyApplicationAfterRequestEnd = function () {\n return e.dispatch(\"turbolinks:request-end\", {\n data: {\n url: this.url,\n xhr: this.xhr\n }\n });\n }, r.prototype.createXHR = function () {\n return this.xhr = new XMLHttpRequest(), this.xhr.open(\"GET\", this.url, !0), this.xhr.timeout = 1e3 * this.constructor.timeout, this.xhr.setRequestHeader(\"Accept\", \"text/html, application/xhtml+xml\"), this.xhr.setRequestHeader(\"Turbolinks-Referrer\", this.referrer), this.xhr.onprogress = this.requestProgressed, this.xhr.onload = this.requestLoaded, this.xhr.onerror = this.requestFailed, this.xhr.ontimeout = this.requestTimedOut, this.xhr.onabort = this.requestCanceled;\n }, r.prototype.endRequest = function (t) {\n return this.xhr ? (this.notifyApplicationAfterRequestEnd(), null != t && t.call(this), this.destroy()) : void 0;\n }, r.prototype.setProgress = function (t) {\n var e;\n return this.progress = t, \"function\" == typeof (e = this.delegate).requestProgressed ? e.requestProgressed(this.progress) : void 0;\n }, r.prototype.destroy = function () {\n var t;\n return this.setProgress(1), \"function\" == typeof (t = this.delegate).requestFinished && t.requestFinished(), this.delegate = null, this.xhr = null;\n }, r;\n }();\n }.call(this), function () {\n var t = function t(_t2, e) {\n return function () {\n return _t2.apply(e, arguments);\n };\n };\n\n e.ProgressBar = function () {\n function e() {\n this.trickle = t(this.trickle, this), this.stylesheetElement = this.createStylesheetElement(), this.progressElement = this.createProgressElement();\n }\n\n var r;\n return r = 300, e.defaultCSS = \".turbolinks-progress-bar {\\n position: fixed;\\n display: block;\\n top: 0;\\n left: 0;\\n height: 3px;\\n background: #0076ff;\\n z-index: 9999;\\n transition: width \" + r + \"ms ease-out, opacity \" + r / 2 + \"ms \" + r / 2 + \"ms ease-in;\\n transform: translate3d(0, 0, 0);\\n}\", e.prototype.show = function () {\n return this.visible ? void 0 : (this.visible = !0, this.installStylesheetElement(), this.installProgressElement(), this.startTrickling());\n }, e.prototype.hide = function () {\n return this.visible && !this.hiding ? (this.hiding = !0, this.fadeProgressElement(function (t) {\n return function () {\n return t.uninstallProgressElement(), t.stopTrickling(), t.visible = !1, t.hiding = !1;\n };\n }(this))) : void 0;\n }, e.prototype.setValue = function (t) {\n return this.value = t, this.refresh();\n }, e.prototype.installStylesheetElement = function () {\n return document.head.insertBefore(this.stylesheetElement, document.head.firstChild);\n }, e.prototype.installProgressElement = function () {\n return this.progressElement.style.width = 0, this.progressElement.style.opacity = 1, document.documentElement.insertBefore(this.progressElement, document.body), this.refresh();\n }, e.prototype.fadeProgressElement = function (t) {\n return this.progressElement.style.opacity = 0, setTimeout(t, 1.5 * r);\n }, e.prototype.uninstallProgressElement = function () {\n return this.progressElement.parentNode ? document.documentElement.removeChild(this.progressElement) : void 0;\n }, e.prototype.startTrickling = function () {\n return null != this.trickleInterval ? this.trickleInterval : this.trickleInterval = setInterval(this.trickle, r);\n }, e.prototype.stopTrickling = function () {\n return clearInterval(this.trickleInterval), this.trickleInterval = null;\n }, e.prototype.trickle = function () {\n return this.setValue(this.value + Math.random() / 100);\n }, e.prototype.refresh = function () {\n return requestAnimationFrame(function (t) {\n return function () {\n return t.progressElement.style.width = 10 + 90 * t.value + \"%\";\n };\n }(this));\n }, e.prototype.createStylesheetElement = function () {\n var t;\n return t = document.createElement(\"style\"), t.type = \"text/css\", t.textContent = this.constructor.defaultCSS, t;\n }, e.prototype.createProgressElement = function () {\n var t;\n return t = document.createElement(\"div\"), t.className = \"turbolinks-progress-bar\", t;\n }, e;\n }();\n }.call(this), function () {\n var t = function t(_t3, e) {\n return function () {\n return _t3.apply(e, arguments);\n };\n };\n\n e.BrowserAdapter = function () {\n function r(r) {\n this.controller = r, this.showProgressBar = t(this.showProgressBar, this), this.progressBar = new e.ProgressBar();\n }\n\n var n, o, i;\n return i = e.HttpRequest, n = i.NETWORK_FAILURE, o = i.TIMEOUT_FAILURE, r.prototype.visitProposedToLocationWithAction = function (t, e) {\n return this.controller.startVisitToLocationWithAction(t, e);\n }, r.prototype.visitStarted = function (t) {\n return t.issueRequest(), t.changeHistory(), t.loadCachedSnapshot();\n }, r.prototype.visitRequestStarted = function (t) {\n return this.progressBar.setValue(0), t.hasCachedSnapshot() || \"restore\" !== t.action ? this.showProgressBarAfterDelay() : this.showProgressBar();\n }, r.prototype.visitRequestProgressed = function (t) {\n return this.progressBar.setValue(t.progress);\n }, r.prototype.visitRequestCompleted = function (t) {\n return t.loadResponse();\n }, r.prototype.visitRequestFailedWithStatusCode = function (t, e) {\n switch (e) {\n case n:\n case o:\n return this.reload();\n\n default:\n return t.loadResponse();\n }\n }, r.prototype.visitRequestFinished = function (t) {\n return this.hideProgressBar();\n }, r.prototype.visitCompleted = function (t) {\n return t.followRedirect();\n }, r.prototype.pageInvalidated = function () {\n return this.reload();\n }, r.prototype.showProgressBarAfterDelay = function () {\n return this.progressBarTimeout = setTimeout(this.showProgressBar, this.controller.progressBarDelay);\n }, r.prototype.showProgressBar = function () {\n return this.progressBar.show();\n }, r.prototype.hideProgressBar = function () {\n return this.progressBar.hide(), clearTimeout(this.progressBarTimeout);\n }, r.prototype.reload = function () {\n return window.location.reload();\n }, r;\n }();\n }.call(this), function () {\n var t = function t(_t4, e) {\n return function () {\n return _t4.apply(e, arguments);\n };\n };\n\n e.History = function () {\n function r(e) {\n this.delegate = e, this.onPageLoad = t(this.onPageLoad, this), this.onPopState = t(this.onPopState, this);\n }\n\n return r.prototype.start = function () {\n return this.started ? void 0 : (addEventListener(\"popstate\", this.onPopState, !1), addEventListener(\"load\", this.onPageLoad, !1), this.started = !0);\n }, r.prototype.stop = function () {\n return this.started ? (removeEventListener(\"popstate\", this.onPopState, !1), removeEventListener(\"load\", this.onPageLoad, !1), this.started = !1) : void 0;\n }, r.prototype.push = function (t, r) {\n return t = e.Location.wrap(t), this.update(\"push\", t, r);\n }, r.prototype.replace = function (t, r) {\n return t = e.Location.wrap(t), this.update(\"replace\", t, r);\n }, r.prototype.onPopState = function (t) {\n var r, n, o, i;\n return this.shouldHandlePopState() && (i = null != (n = t.state) ? n.turbolinks : void 0) ? (r = e.Location.wrap(window.location), o = i.restorationIdentifier, this.delegate.historyPoppedToLocationWithRestorationIdentifier(r, o)) : void 0;\n }, r.prototype.onPageLoad = function (t) {\n return e.defer(function (t) {\n return function () {\n return t.pageLoaded = !0;\n };\n }(this));\n }, r.prototype.shouldHandlePopState = function () {\n return this.pageIsLoaded();\n }, r.prototype.pageIsLoaded = function () {\n return this.pageLoaded || \"complete\" === document.readyState;\n }, r.prototype.update = function (t, e, r) {\n var n;\n return n = {\n turbolinks: {\n restorationIdentifier: r\n }\n }, history[t + \"State\"](n, null, e);\n }, r;\n }();\n }.call(this), function () {\n e.HeadDetails = function () {\n function t(t) {\n var e, r, n, s, a, u;\n\n for (this.elements = {}, n = 0, a = t.length; a > n; n++) {\n u = t[n], u.nodeType === Node.ELEMENT_NODE && (s = u.outerHTML, r = null != (e = this.elements)[s] ? e[s] : e[s] = {\n type: i(u),\n tracked: o(u),\n elements: []\n }, r.elements.push(u));\n }\n }\n\n var e, r, n, o, i;\n return t.fromHeadElement = function (t) {\n var e;\n return new this(null != (e = null != t ? t.childNodes : void 0) ? e : []);\n }, t.prototype.hasElementWithKey = function (t) {\n return t in this.elements;\n }, t.prototype.getTrackedElementSignature = function () {\n var t, e;\n return function () {\n var r, n;\n r = this.elements, n = [];\n\n for (t in r) {\n e = r[t].tracked, e && n.push(t);\n }\n\n return n;\n }.call(this).join(\"\");\n }, t.prototype.getScriptElementsNotInDetails = function (t) {\n return this.getElementsMatchingTypeNotInDetails(\"script\", t);\n }, t.prototype.getStylesheetElementsNotInDetails = function (t) {\n return this.getElementsMatchingTypeNotInDetails(\"stylesheet\", t);\n }, t.prototype.getElementsMatchingTypeNotInDetails = function (t, e) {\n var r, n, o, i, s, a;\n o = this.elements, s = [];\n\n for (n in o) {\n i = o[n], a = i.type, r = i.elements, a !== t || e.hasElementWithKey(n) || s.push(r[0]);\n }\n\n return s;\n }, t.prototype.getProvisionalElements = function () {\n var t, e, r, n, o, i, s;\n r = [], n = this.elements;\n\n for (e in n) {\n o = n[e], s = o.type, i = o.tracked, t = o.elements, null != s || i ? t.length > 1 && r.push.apply(r, t.slice(1)) : r.push.apply(r, t);\n }\n\n return r;\n }, t.prototype.getMetaValue = function (t) {\n var e;\n return null != (e = this.findMetaElementByName(t)) ? e.getAttribute(\"content\") : void 0;\n }, t.prototype.findMetaElementByName = function (t) {\n var r, n, o, i;\n r = void 0, i = this.elements;\n\n for (o in i) {\n n = i[o].elements, e(n[0], t) && (r = n[0]);\n }\n\n return r;\n }, i = function i(t) {\n return r(t) ? \"script\" : n(t) ? \"stylesheet\" : void 0;\n }, o = function o(t) {\n return \"reload\" === t.getAttribute(\"data-turbolinks-track\");\n }, r = function r(t) {\n var e;\n return e = t.tagName.toLowerCase(), \"script\" === e;\n }, n = function n(t) {\n var e;\n return e = t.tagName.toLowerCase(), \"style\" === e || \"link\" === e && \"stylesheet\" === t.getAttribute(\"rel\");\n }, e = function e(t, _e) {\n var r;\n return r = t.tagName.toLowerCase(), \"meta\" === r && t.getAttribute(\"name\") === _e;\n }, t;\n }();\n }.call(this), function () {\n e.Snapshot = function () {\n function t(t, e) {\n this.headDetails = t, this.bodyElement = e;\n }\n\n return t.wrap = function (t) {\n return t instanceof this ? t : \"string\" == typeof t ? this.fromHTMLString(t) : this.fromHTMLElement(t);\n }, t.fromHTMLString = function (t) {\n var e;\n return e = document.createElement(\"html\"), e.innerHTML = t, this.fromHTMLElement(e);\n }, t.fromHTMLElement = function (t) {\n var r, n, o, i;\n return o = t.querySelector(\"head\"), r = null != (i = t.querySelector(\"body\")) ? i : document.createElement(\"body\"), n = e.HeadDetails.fromHeadElement(o), new this(n, r);\n }, t.prototype.clone = function () {\n return new this.constructor(this.headDetails, this.bodyElement.cloneNode(!0));\n }, t.prototype.getRootLocation = function () {\n var t, r;\n return r = null != (t = this.getSetting(\"root\")) ? t : \"/\", new e.Location(r);\n }, t.prototype.getCacheControlValue = function () {\n return this.getSetting(\"cache-control\");\n }, t.prototype.getElementForAnchor = function (t) {\n try {\n return this.bodyElement.querySelector(\"[id='\" + t + \"'], a[name='\" + t + \"']\");\n } catch (e) {}\n }, t.prototype.getPermanentElements = function () {\n return this.bodyElement.querySelectorAll(\"[id][data-turbolinks-permanent]\");\n }, t.prototype.getPermanentElementById = function (t) {\n return this.bodyElement.querySelector(\"#\" + t + \"[data-turbolinks-permanent]\");\n }, t.prototype.getPermanentElementsPresentInSnapshot = function (t) {\n var e, r, n, o, i;\n\n for (o = this.getPermanentElements(), i = [], r = 0, n = o.length; n > r; r++) {\n e = o[r], t.getPermanentElementById(e.id) && i.push(e);\n }\n\n return i;\n }, t.prototype.findFirstAutofocusableElement = function () {\n return this.bodyElement.querySelector(\"[autofocus]\");\n }, t.prototype.hasAnchor = function (t) {\n return null != this.getElementForAnchor(t);\n }, t.prototype.isPreviewable = function () {\n return \"no-preview\" !== this.getCacheControlValue();\n }, t.prototype.isCacheable = function () {\n return \"no-cache\" !== this.getCacheControlValue();\n }, t.prototype.isVisitable = function () {\n return \"reload\" !== this.getSetting(\"visit-control\");\n }, t.prototype.getSetting = function (t) {\n return this.headDetails.getMetaValue(\"turbolinks-\" + t);\n }, t;\n }();\n }.call(this), function () {\n var t = [].slice;\n\n e.Renderer = function () {\n function e() {}\n\n var r;\n return e.render = function () {\n var e, r, n, o;\n return n = arguments[0], r = arguments[1], e = 3 <= arguments.length ? t.call(arguments, 2) : [], o = function (t, e, r) {\n r.prototype = t.prototype;\n var n = new r(),\n o = t.apply(n, e);\n return Object(o) === o ? o : n;\n }(this, e, function () {}), o.delegate = n, o.render(r), o;\n }, e.prototype.renderView = function (t) {\n return this.delegate.viewWillRender(this.newBody), t(), this.delegate.viewRendered(this.newBody);\n }, e.prototype.invalidateView = function () {\n return this.delegate.viewInvalidated();\n }, e.prototype.createScriptElement = function (t) {\n var e;\n return \"false\" === t.getAttribute(\"data-turbolinks-eval\") ? t : (e = document.createElement(\"script\"), e.textContent = t.textContent, e.async = !1, r(e, t), e);\n }, r = function r(t, e) {\n var r, n, o, i, s, a, u;\n\n for (i = e.attributes, a = [], r = 0, n = i.length; n > r; r++) {\n s = i[r], o = s.name, u = s.value, a.push(t.setAttribute(o, u));\n }\n\n return a;\n }, e;\n }();\n }.call(this), function () {\n var t,\n r,\n n = function n(t, e) {\n function r() {\n this.constructor = t;\n }\n\n for (var n in e) {\n o.call(e, n) && (t[n] = e[n]);\n }\n\n return r.prototype = e.prototype, t.prototype = new r(), t.__super__ = e.prototype, t;\n },\n o = {}.hasOwnProperty;\n\n e.SnapshotRenderer = function (e) {\n function o(t, e, r) {\n this.currentSnapshot = t, this.newSnapshot = e, this.isPreview = r, this.currentHeadDetails = this.currentSnapshot.headDetails, this.newHeadDetails = this.newSnapshot.headDetails, this.currentBody = this.currentSnapshot.bodyElement, this.newBody = this.newSnapshot.bodyElement;\n }\n\n return n(o, e), o.prototype.render = function (t) {\n return this.shouldRender() ? (this.mergeHead(), this.renderView(function (e) {\n return function () {\n return e.replaceBody(), e.isPreview || e.focusFirstAutofocusableElement(), t();\n };\n }(this))) : this.invalidateView();\n }, o.prototype.mergeHead = function () {\n return this.copyNewHeadStylesheetElements(), this.copyNewHeadScriptElements(), this.removeCurrentHeadProvisionalElements(), this.copyNewHeadProvisionalElements();\n }, o.prototype.replaceBody = function () {\n var t;\n return t = this.relocateCurrentBodyPermanentElements(), this.activateNewBodyScriptElements(), this.assignNewBody(), this.replacePlaceholderElementsWithClonedPermanentElements(t);\n }, o.prototype.shouldRender = function () {\n return this.newSnapshot.isVisitable() && this.trackedElementsAreIdentical();\n }, o.prototype.trackedElementsAreIdentical = function () {\n return this.currentHeadDetails.getTrackedElementSignature() === this.newHeadDetails.getTrackedElementSignature();\n }, o.prototype.copyNewHeadStylesheetElements = function () {\n var t, e, r, n, o;\n\n for (n = this.getNewHeadStylesheetElements(), o = [], e = 0, r = n.length; r > e; e++) {\n t = n[e], o.push(document.head.appendChild(t));\n }\n\n return o;\n }, o.prototype.copyNewHeadScriptElements = function () {\n var t, e, r, n, o;\n\n for (n = this.getNewHeadScriptElements(), o = [], e = 0, r = n.length; r > e; e++) {\n t = n[e], o.push(document.head.appendChild(this.createScriptElement(t)));\n }\n\n return o;\n }, o.prototype.removeCurrentHeadProvisionalElements = function () {\n var t, e, r, n, o;\n\n for (n = this.getCurrentHeadProvisionalElements(), o = [], e = 0, r = n.length; r > e; e++) {\n t = n[e], o.push(document.head.removeChild(t));\n }\n\n return o;\n }, o.prototype.copyNewHeadProvisionalElements = function () {\n var t, e, r, n, o;\n\n for (n = this.getNewHeadProvisionalElements(), o = [], e = 0, r = n.length; r > e; e++) {\n t = n[e], o.push(document.head.appendChild(t));\n }\n\n return o;\n }, o.prototype.relocateCurrentBodyPermanentElements = function () {\n var e, n, o, i, s, a, u;\n\n for (a = this.getCurrentBodyPermanentElements(), u = [], e = 0, n = a.length; n > e; e++) {\n i = a[e], s = t(i), o = this.newSnapshot.getPermanentElementById(i.id), r(i, s.element), r(o, i), u.push(s);\n }\n\n return u;\n }, o.prototype.replacePlaceholderElementsWithClonedPermanentElements = function (t) {\n var e, n, o, i, s, a, u;\n\n for (u = [], o = 0, i = t.length; i > o; o++) {\n a = t[o], n = a.element, s = a.permanentElement, e = s.cloneNode(!0), u.push(r(n, e));\n }\n\n return u;\n }, o.prototype.activateNewBodyScriptElements = function () {\n var t, e, n, o, i, s;\n\n for (i = this.getNewBodyScriptElements(), s = [], e = 0, o = i.length; o > e; e++) {\n n = i[e], t = this.createScriptElement(n), s.push(r(n, t));\n }\n\n return s;\n }, o.prototype.assignNewBody = function () {\n return document.body = this.newBody;\n }, o.prototype.focusFirstAutofocusableElement = function () {\n var t;\n return null != (t = this.newSnapshot.findFirstAutofocusableElement()) ? t.focus() : void 0;\n }, o.prototype.getNewHeadStylesheetElements = function () {\n return this.newHeadDetails.getStylesheetElementsNotInDetails(this.currentHeadDetails);\n }, o.prototype.getNewHeadScriptElements = function () {\n return this.newHeadDetails.getScriptElementsNotInDetails(this.currentHeadDetails);\n }, o.prototype.getCurrentHeadProvisionalElements = function () {\n return this.currentHeadDetails.getProvisionalElements();\n }, o.prototype.getNewHeadProvisionalElements = function () {\n return this.newHeadDetails.getProvisionalElements();\n }, o.prototype.getCurrentBodyPermanentElements = function () {\n return this.currentSnapshot.getPermanentElementsPresentInSnapshot(this.newSnapshot);\n }, o.prototype.getNewBodyScriptElements = function () {\n return this.newBody.querySelectorAll(\"script\");\n }, o;\n }(e.Renderer), t = function t(_t5) {\n var e;\n return e = document.createElement(\"meta\"), e.setAttribute(\"name\", \"turbolinks-permanent-placeholder\"), e.setAttribute(\"content\", _t5.id), {\n element: e,\n permanentElement: _t5\n };\n }, r = function r(t, e) {\n var r;\n return (r = t.parentNode) ? r.replaceChild(e, t) : void 0;\n };\n }.call(this), function () {\n var t = function t(_t6, e) {\n function n() {\n this.constructor = _t6;\n }\n\n for (var o in e) {\n r.call(e, o) && (_t6[o] = e[o]);\n }\n\n return n.prototype = e.prototype, _t6.prototype = new n(), _t6.__super__ = e.prototype, _t6;\n },\n r = {}.hasOwnProperty;\n\n e.ErrorRenderer = function (e) {\n function r(t) {\n var e;\n e = document.createElement(\"html\"), e.innerHTML = t, this.newHead = e.querySelector(\"head\"), this.newBody = e.querySelector(\"body\");\n }\n\n return t(r, e), r.prototype.render = function (t) {\n return this.renderView(function (e) {\n return function () {\n return e.replaceHeadAndBody(), e.activateBodyScriptElements(), t();\n };\n }(this));\n }, r.prototype.replaceHeadAndBody = function () {\n var t, e;\n return e = document.head, t = document.body, e.parentNode.replaceChild(this.newHead, e), t.parentNode.replaceChild(this.newBody, t);\n }, r.prototype.activateBodyScriptElements = function () {\n var t, e, r, n, o, i;\n\n for (n = this.getScriptElements(), i = [], e = 0, r = n.length; r > e; e++) {\n o = n[e], t = this.createScriptElement(o), i.push(o.parentNode.replaceChild(t, o));\n }\n\n return i;\n }, r.prototype.getScriptElements = function () {\n return document.documentElement.querySelectorAll(\"script\");\n }, r;\n }(e.Renderer);\n }.call(this), function () {\n e.View = function () {\n function t(t) {\n this.delegate = t, this.htmlElement = document.documentElement;\n }\n\n return t.prototype.getRootLocation = function () {\n return this.getSnapshot().getRootLocation();\n }, t.prototype.getElementForAnchor = function (t) {\n return this.getSnapshot().getElementForAnchor(t);\n }, t.prototype.getSnapshot = function () {\n return e.Snapshot.fromHTMLElement(this.htmlElement);\n }, t.prototype.render = function (t, e) {\n var r, n, o;\n return o = t.snapshot, r = t.error, n = t.isPreview, this.markAsPreview(n), null != o ? this.renderSnapshot(o, n, e) : this.renderError(r, e);\n }, t.prototype.markAsPreview = function (t) {\n return t ? this.htmlElement.setAttribute(\"data-turbolinks-preview\", \"\") : this.htmlElement.removeAttribute(\"data-turbolinks-preview\");\n }, t.prototype.renderSnapshot = function (t, r, n) {\n return e.SnapshotRenderer.render(this.delegate, n, this.getSnapshot(), e.Snapshot.wrap(t), r);\n }, t.prototype.renderError = function (t, r) {\n return e.ErrorRenderer.render(this.delegate, r, t);\n }, t;\n }();\n }.call(this), function () {\n var t = function t(_t7, e) {\n return function () {\n return _t7.apply(e, arguments);\n };\n };\n\n e.ScrollManager = function () {\n function r(r) {\n this.delegate = r, this.onScroll = t(this.onScroll, this), this.onScroll = e.throttle(this.onScroll);\n }\n\n return r.prototype.start = function () {\n return this.started ? void 0 : (addEventListener(\"scroll\", this.onScroll, !1), this.onScroll(), this.started = !0);\n }, r.prototype.stop = function () {\n return this.started ? (removeEventListener(\"scroll\", this.onScroll, !1), this.started = !1) : void 0;\n }, r.prototype.scrollToElement = function (t) {\n return t.scrollIntoView();\n }, r.prototype.scrollToPosition = function (t) {\n var e, r;\n return e = t.x, r = t.y, window.scrollTo(e, r);\n }, r.prototype.onScroll = function (t) {\n return this.updatePosition({\n x: window.pageXOffset,\n y: window.pageYOffset\n });\n }, r.prototype.updatePosition = function (t) {\n var e;\n return this.position = t, null != (e = this.delegate) ? e.scrollPositionChanged(this.position) : void 0;\n }, r;\n }();\n }.call(this), function () {\n e.SnapshotCache = function () {\n function t(t) {\n this.size = t, this.keys = [], this.snapshots = {};\n }\n\n var r;\n return t.prototype.has = function (t) {\n var e;\n return e = r(t), e in this.snapshots;\n }, t.prototype.get = function (t) {\n var e;\n if (this.has(t)) return e = this.read(t), this.touch(t), e;\n }, t.prototype.put = function (t, e) {\n return this.write(t, e), this.touch(t), e;\n }, t.prototype.read = function (t) {\n var e;\n return e = r(t), this.snapshots[e];\n }, t.prototype.write = function (t, e) {\n var n;\n return n = r(t), this.snapshots[n] = e;\n }, t.prototype.touch = function (t) {\n var e, n;\n return n = r(t), e = this.keys.indexOf(n), e > -1 && this.keys.splice(e, 1), this.keys.unshift(n), this.trim();\n }, t.prototype.trim = function () {\n var t, e, r, n, o;\n\n for (n = this.keys.splice(this.size), o = [], t = 0, r = n.length; r > t; t++) {\n e = n[t], o.push(delete this.snapshots[e]);\n }\n\n return o;\n }, r = function r(t) {\n return e.Location.wrap(t).toCacheKey();\n }, t;\n }();\n }.call(this), function () {\n var t = function t(_t8, e) {\n return function () {\n return _t8.apply(e, arguments);\n };\n };\n\n e.Visit = function () {\n function r(r, n, o) {\n this.controller = r, this.action = o, this.performScroll = t(this.performScroll, this), this.identifier = e.uuid(), this.location = e.Location.wrap(n), this.adapter = this.controller.adapter, this.state = \"initialized\", this.timingMetrics = {};\n }\n\n var n;\n return r.prototype.start = function () {\n return \"initialized\" === this.state ? (this.recordTimingMetric(\"visitStart\"), this.state = \"started\", this.adapter.visitStarted(this)) : void 0;\n }, r.prototype.cancel = function () {\n var t;\n return \"started\" === this.state ? (null != (t = this.request) && t.cancel(), this.cancelRender(), this.state = \"canceled\") : void 0;\n }, r.prototype.complete = function () {\n var t;\n return \"started\" === this.state ? (this.recordTimingMetric(\"visitEnd\"), this.state = \"completed\", \"function\" == typeof (t = this.adapter).visitCompleted && t.visitCompleted(this), this.controller.visitCompleted(this)) : void 0;\n }, r.prototype.fail = function () {\n var t;\n return \"started\" === this.state ? (this.state = \"failed\", \"function\" == typeof (t = this.adapter).visitFailed ? t.visitFailed(this) : void 0) : void 0;\n }, r.prototype.changeHistory = function () {\n var t, e;\n return this.historyChanged ? void 0 : (t = this.location.isEqualTo(this.referrer) ? \"replace\" : this.action, e = n(t), this.controller[e](this.location, this.restorationIdentifier), this.historyChanged = !0);\n }, r.prototype.issueRequest = function () {\n return this.shouldIssueRequest() && null == this.request ? (this.progress = 0, this.request = new e.HttpRequest(this, this.location, this.referrer), this.request.send()) : void 0;\n }, r.prototype.getCachedSnapshot = function () {\n var t;\n return !(t = this.controller.getCachedSnapshotForLocation(this.location)) || null != this.location.anchor && !t.hasAnchor(this.location.anchor) || \"restore\" !== this.action && !t.isPreviewable() ? void 0 : t;\n }, r.prototype.hasCachedSnapshot = function () {\n return null != this.getCachedSnapshot();\n }, r.prototype.loadCachedSnapshot = function () {\n var t, e;\n return (e = this.getCachedSnapshot()) ? (t = this.shouldIssueRequest(), this.render(function () {\n var r;\n return this.cacheSnapshot(), this.controller.render({\n snapshot: e,\n isPreview: t\n }, this.performScroll), \"function\" == typeof (r = this.adapter).visitRendered && r.visitRendered(this), t ? void 0 : this.complete();\n })) : void 0;\n }, r.prototype.loadResponse = function () {\n return null != this.response ? this.render(function () {\n var t, e;\n return this.cacheSnapshot(), this.request.failed ? (this.controller.render({\n error: this.response\n }, this.performScroll), \"function\" == typeof (t = this.adapter).visitRendered && t.visitRendered(this), this.fail()) : (this.controller.render({\n snapshot: this.response\n }, this.performScroll), \"function\" == typeof (e = this.adapter).visitRendered && e.visitRendered(this), this.complete());\n }) : void 0;\n }, r.prototype.followRedirect = function () {\n return this.redirectedToLocation && !this.followedRedirect ? (this.location = this.redirectedToLocation, this.controller.replaceHistoryWithLocationAndRestorationIdentifier(this.redirectedToLocation, this.restorationIdentifier), this.followedRedirect = !0) : void 0;\n }, r.prototype.requestStarted = function () {\n var t;\n return this.recordTimingMetric(\"requestStart\"), \"function\" == typeof (t = this.adapter).visitRequestStarted ? t.visitRequestStarted(this) : void 0;\n }, r.prototype.requestProgressed = function (t) {\n var e;\n return this.progress = t, \"function\" == typeof (e = this.adapter).visitRequestProgressed ? e.visitRequestProgressed(this) : void 0;\n }, r.prototype.requestCompletedWithResponse = function (t, r) {\n return this.response = t, null != r && (this.redirectedToLocation = e.Location.wrap(r)), this.adapter.visitRequestCompleted(this);\n }, r.prototype.requestFailedWithStatusCode = function (t, e) {\n return this.response = e, this.adapter.visitRequestFailedWithStatusCode(this, t);\n }, r.prototype.requestFinished = function () {\n var t;\n return this.recordTimingMetric(\"requestEnd\"), \"function\" == typeof (t = this.adapter).visitRequestFinished ? t.visitRequestFinished(this) : void 0;\n }, r.prototype.performScroll = function () {\n return this.scrolled ? void 0 : (\"restore\" === this.action ? this.scrollToRestoredPosition() || this.scrollToTop() : this.scrollToAnchor() || this.scrollToTop(), this.scrolled = !0);\n }, r.prototype.scrollToRestoredPosition = function () {\n var t, e;\n return t = null != (e = this.restorationData) ? e.scrollPosition : void 0, null != t ? (this.controller.scrollToPosition(t), !0) : void 0;\n }, r.prototype.scrollToAnchor = function () {\n return null != this.location.anchor ? (this.controller.scrollToAnchor(this.location.anchor), !0) : void 0;\n }, r.prototype.scrollToTop = function () {\n return this.controller.scrollToPosition({\n x: 0,\n y: 0\n });\n }, r.prototype.recordTimingMetric = function (t) {\n var e;\n return null != (e = this.timingMetrics)[t] ? e[t] : e[t] = new Date().getTime();\n }, r.prototype.getTimingMetrics = function () {\n return e.copyObject(this.timingMetrics);\n }, n = function n(t) {\n switch (t) {\n case \"replace\":\n return \"replaceHistoryWithLocationAndRestorationIdentifier\";\n\n case \"advance\":\n case \"restore\":\n return \"pushHistoryWithLocationAndRestorationIdentifier\";\n }\n }, r.prototype.shouldIssueRequest = function () {\n return \"restore\" === this.action ? !this.hasCachedSnapshot() : !0;\n }, r.prototype.cacheSnapshot = function () {\n return this.snapshotCached ? void 0 : (this.controller.cacheSnapshot(), this.snapshotCached = !0);\n }, r.prototype.render = function (t) {\n return this.cancelRender(), this.frame = requestAnimationFrame(function (e) {\n return function () {\n return e.frame = null, t.call(e);\n };\n }(this));\n }, r.prototype.cancelRender = function () {\n return this.frame ? cancelAnimationFrame(this.frame) : void 0;\n }, r;\n }();\n }.call(this), function () {\n var t = function t(_t9, e) {\n return function () {\n return _t9.apply(e, arguments);\n };\n };\n\n e.Controller = function () {\n function r() {\n this.clickBubbled = t(this.clickBubbled, this), this.clickCaptured = t(this.clickCaptured, this), this.pageLoaded = t(this.pageLoaded, this), this.history = new e.History(this), this.view = new e.View(this), this.scrollManager = new e.ScrollManager(this), this.restorationData = {}, this.clearCache(), this.setProgressBarDelay(500);\n }\n\n return r.prototype.start = function () {\n return e.supported && !this.started ? (addEventListener(\"click\", this.clickCaptured, !0), addEventListener(\"DOMContentLoaded\", this.pageLoaded, !1), this.scrollManager.start(), this.startHistory(), this.started = !0, this.enabled = !0) : void 0;\n }, r.prototype.disable = function () {\n return this.enabled = !1;\n }, r.prototype.stop = function () {\n return this.started ? (removeEventListener(\"click\", this.clickCaptured, !0), removeEventListener(\"DOMContentLoaded\", this.pageLoaded, !1), this.scrollManager.stop(), this.stopHistory(), this.started = !1) : void 0;\n }, r.prototype.clearCache = function () {\n return this.cache = new e.SnapshotCache(10);\n }, r.prototype.visit = function (t, r) {\n var n, o;\n return null == r && (r = {}), t = e.Location.wrap(t), this.applicationAllowsVisitingLocation(t) ? this.locationIsVisitable(t) ? (n = null != (o = r.action) ? o : \"advance\", this.adapter.visitProposedToLocationWithAction(t, n)) : window.location = t : void 0;\n }, r.prototype.startVisitToLocationWithAction = function (t, r, n) {\n var o;\n return e.supported ? (o = this.getRestorationDataForIdentifier(n), this.startVisit(t, r, {\n restorationData: o\n })) : window.location = t;\n }, r.prototype.setProgressBarDelay = function (t) {\n return this.progressBarDelay = t;\n }, r.prototype.startHistory = function () {\n return this.location = e.Location.wrap(window.location), this.restorationIdentifier = e.uuid(), this.history.start(), this.history.replace(this.location, this.restorationIdentifier);\n }, r.prototype.stopHistory = function () {\n return this.history.stop();\n }, r.prototype.pushHistoryWithLocationAndRestorationIdentifier = function (t, r) {\n return this.restorationIdentifier = r, this.location = e.Location.wrap(t), this.history.push(this.location, this.restorationIdentifier);\n }, r.prototype.replaceHistoryWithLocationAndRestorationIdentifier = function (t, r) {\n return this.restorationIdentifier = r, this.location = e.Location.wrap(t), this.history.replace(this.location, this.restorationIdentifier);\n }, r.prototype.historyPoppedToLocationWithRestorationIdentifier = function (t, r) {\n var n;\n return this.restorationIdentifier = r, this.enabled ? (n = this.getRestorationDataForIdentifier(this.restorationIdentifier), this.startVisit(t, \"restore\", {\n restorationIdentifier: this.restorationIdentifier,\n restorationData: n,\n historyChanged: !0\n }), this.location = e.Location.wrap(t)) : this.adapter.pageInvalidated();\n }, r.prototype.getCachedSnapshotForLocation = function (t) {\n var e;\n return null != (e = this.cache.get(t)) ? e.clone() : void 0;\n }, r.prototype.shouldCacheSnapshot = function () {\n return this.view.getSnapshot().isCacheable();\n }, r.prototype.cacheSnapshot = function () {\n var t, r;\n return this.shouldCacheSnapshot() ? (this.notifyApplicationBeforeCachingSnapshot(), r = this.view.getSnapshot(), t = this.lastRenderedLocation, e.defer(function (e) {\n return function () {\n return e.cache.put(t, r.clone());\n };\n }(this))) : void 0;\n }, r.prototype.scrollToAnchor = function (t) {\n var e;\n return (e = this.view.getElementForAnchor(t)) ? this.scrollToElement(e) : this.scrollToPosition({\n x: 0,\n y: 0\n });\n }, r.prototype.scrollToElement = function (t) {\n return this.scrollManager.scrollToElement(t);\n }, r.prototype.scrollToPosition = function (t) {\n return this.scrollManager.scrollToPosition(t);\n }, r.prototype.scrollPositionChanged = function (t) {\n var e;\n return e = this.getCurrentRestorationData(), e.scrollPosition = t;\n }, r.prototype.render = function (t, e) {\n return this.view.render(t, e);\n }, r.prototype.viewInvalidated = function () {\n return this.adapter.pageInvalidated();\n }, r.prototype.viewWillRender = function (t) {\n return this.notifyApplicationBeforeRender(t);\n }, r.prototype.viewRendered = function () {\n return this.lastRenderedLocation = this.currentVisit.location, this.notifyApplicationAfterRender();\n }, r.prototype.pageLoaded = function () {\n return this.lastRenderedLocation = this.location, this.notifyApplicationAfterPageLoad();\n }, r.prototype.clickCaptured = function () {\n return removeEventListener(\"click\", this.clickBubbled, !1), addEventListener(\"click\", this.clickBubbled, !1);\n }, r.prototype.clickBubbled = function (t) {\n var e, r, n;\n return this.enabled && this.clickEventIsSignificant(t) && (r = this.getVisitableLinkForNode(t.target)) && (n = this.getVisitableLocationForLink(r)) && this.applicationAllowsFollowingLinkToLocation(r, n) ? (t.preventDefault(), e = this.getActionForLink(r), this.visit(n, {\n action: e\n })) : void 0;\n }, r.prototype.applicationAllowsFollowingLinkToLocation = function (t, e) {\n var r;\n return r = this.notifyApplicationAfterClickingLinkToLocation(t, e), !r.defaultPrevented;\n }, r.prototype.applicationAllowsVisitingLocation = function (t) {\n var e;\n return e = this.notifyApplicationBeforeVisitingLocation(t), !e.defaultPrevented;\n }, r.prototype.notifyApplicationAfterClickingLinkToLocation = function (t, r) {\n return e.dispatch(\"turbolinks:click\", {\n target: t,\n data: {\n url: r.absoluteURL\n },\n cancelable: !0\n });\n }, r.prototype.notifyApplicationBeforeVisitingLocation = function (t) {\n return e.dispatch(\"turbolinks:before-visit\", {\n data: {\n url: t.absoluteURL\n },\n cancelable: !0\n });\n }, r.prototype.notifyApplicationAfterVisitingLocation = function (t) {\n return e.dispatch(\"turbolinks:visit\", {\n data: {\n url: t.absoluteURL\n }\n });\n }, r.prototype.notifyApplicationBeforeCachingSnapshot = function () {\n return e.dispatch(\"turbolinks:before-cache\");\n }, r.prototype.notifyApplicationBeforeRender = function (t) {\n return e.dispatch(\"turbolinks:before-render\", {\n data: {\n newBody: t\n }\n });\n }, r.prototype.notifyApplicationAfterRender = function () {\n return e.dispatch(\"turbolinks:render\");\n }, r.prototype.notifyApplicationAfterPageLoad = function (t) {\n return null == t && (t = {}), e.dispatch(\"turbolinks:load\", {\n data: {\n url: this.location.absoluteURL,\n timing: t\n }\n });\n }, r.prototype.startVisit = function (t, e, r) {\n var n;\n return null != (n = this.currentVisit) && n.cancel(), this.currentVisit = this.createVisit(t, e, r), this.currentVisit.start(), this.notifyApplicationAfterVisitingLocation(t);\n }, r.prototype.createVisit = function (t, r, n) {\n var o, i, s, a, u;\n return i = null != n ? n : {}, a = i.restorationIdentifier, s = i.restorationData, o = i.historyChanged, u = new e.Visit(this, t, r), u.restorationIdentifier = null != a ? a : e.uuid(), u.restorationData = e.copyObject(s), u.historyChanged = o, u.referrer = this.location, u;\n }, r.prototype.visitCompleted = function (t) {\n return this.notifyApplicationAfterPageLoad(t.getTimingMetrics());\n }, r.prototype.clickEventIsSignificant = function (t) {\n return !(t.defaultPrevented || t.target.isContentEditable || t.which > 1 || t.altKey || t.ctrlKey || t.metaKey || t.shiftKey);\n }, r.prototype.getVisitableLinkForNode = function (t) {\n return this.nodeIsVisitable(t) ? e.closest(t, \"a[href]:not([target]):not([download])\") : void 0;\n }, r.prototype.getVisitableLocationForLink = function (t) {\n var r;\n return r = new e.Location(t.getAttribute(\"href\")), this.locationIsVisitable(r) ? r : void 0;\n }, r.prototype.getActionForLink = function (t) {\n var e;\n return null != (e = t.getAttribute(\"data-turbolinks-action\")) ? e : \"advance\";\n }, r.prototype.nodeIsVisitable = function (t) {\n var r;\n return (r = e.closest(t, \"[data-turbolinks]\")) ? \"false\" !== r.getAttribute(\"data-turbolinks\") : !0;\n }, r.prototype.locationIsVisitable = function (t) {\n return t.isPrefixedBy(this.view.getRootLocation()) && t.isHTML();\n }, r.prototype.getCurrentRestorationData = function () {\n return this.getRestorationDataForIdentifier(this.restorationIdentifier);\n }, r.prototype.getRestorationDataForIdentifier = function (t) {\n var e;\n return null != (e = this.restorationData)[t] ? e[t] : e[t] = {};\n }, r;\n }();\n }.call(this), function () {\n !function () {\n var t, e;\n if ((t = e = document.currentScript) && !e.hasAttribute(\"data-turbolinks-suppress-warning\")) for (; t = t.parentNode;) {\n if (t === document.body) return console.warn(\"You are loading Turbolinks from a